GameSentenceMiner 2.16.1__py3-none-any.whl → 2.16.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- GameSentenceMiner/gsm.py +0 -1
- GameSentenceMiner/web/static/js/shared.js +67 -0
- GameSentenceMiner/web/templates/anki_stats.html +4 -0
- GameSentenceMiner/web/templates/components/navigation.html +4 -1
- GameSentenceMiner/web/templates/database.html +3 -0
- GameSentenceMiner/web/templates/index.html +12 -12
- GameSentenceMiner/web/templates/search.html +3 -0
- GameSentenceMiner/web/templates/stats.html +3 -0
- GameSentenceMiner/web/texthooking_page.py +7 -1
- {gamesentenceminer-2.16.1.dist-info → gamesentenceminer-2.16.2.dist-info}/METADATA +1 -1
- {gamesentenceminer-2.16.1.dist-info → gamesentenceminer-2.16.2.dist-info}/RECORD +15 -15
- {gamesentenceminer-2.16.1.dist-info → gamesentenceminer-2.16.2.dist-info}/WHEEL +0 -0
- {gamesentenceminer-2.16.1.dist-info → gamesentenceminer-2.16.2.dist-info}/entry_points.txt +0 -0
- {gamesentenceminer-2.16.1.dist-info → gamesentenceminer-2.16.2.dist-info}/licenses/LICENSE +0 -0
- {gamesentenceminer-2.16.1.dist-info → gamesentenceminer-2.16.2.dist-info}/top_level.txt +0 -0
@@ -16,17 +16,17 @@
|
|
16
16
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
17
17
|
<title>Texthooker UI</title>
|
18
18
|
<script type="module" crossorigin>
|
19
|
-
var
|
20
|
-
`;for(let
|
21
|
-
`}const
|
22
|
-
}`,p=`__svelte_${Zu(h)}_${l}`,d=Oc(e),{stylesheet:g,rules:k}=El.get(d)||Ju(d,e);k[p]||(k[p]=!0,g.insertRule(`@keyframes ${p} ${h}`,g.cssRules.length));const S=e.style.animation||"";return e.style.animation=`${S?`${S}, `:""}${p} ${r}ms linear ${i}ms 1 both`,Ll+=1,p}function La(e,n){const t=(e.style.animation||"").split(", "),r=t.filter(n?o=>o.indexOf(n)<0:o=>o.indexOf("__svelte")===-1),i=t.length-r.length;i&&(e.style.animation=r.join(", "),Ll-=i,Ll||ef())}function ef(){Ls(()=>{Ll||(El.forEach(e=>{const{ownerNode:n}=e.stylesheet;n&&R(n)}),El.clear())})}let ao;function to(e){ao=e}function xs(){if(!ao)throw new Error("Function called outside component initialization");return ao}function Rl(e){xs().$$.on_mount.push(e)}function $c(e){xs().$$.on_destroy.push(e)}function Fr(){const e=xs();return(n,t,{cancelable:r=!1}={})=>{const i=e.$$.callbacks[n];if(i){const o=Ic(n,t,{cancelable:r});return i.slice().forEach(s=>{s.call(e,o)}),!o.defaultPrevented}return!0}}function co(e,n){const t=e.$$.callbacks[n.type];t&&t.slice().forEach(r=>r.call(this,n))}const Zi=[],dt=[],dl=[],hs=[],Nc=Promise.resolve();let ps=!1;function Hc(){ps||(ps=!0,Nc.then(Rc))}function uo(){return Hc(),Nc}function Mr(e){dl.push(e)}function Xl(e){hs.push(e)}const Zl=new Set;let sl=0;function Rc(){const e=ao;do{for(;sl<Zi.length;){const n=Zi[sl];sl++,to(n),tf(n.$$)}for(to(null),Zi.length=0,sl=0;dt.length;)dt.pop()();for(let n=0;n<dl.length;n+=1){const t=dl[n];Zl.has(t)||(Zl.add(t),t())}dl.length=0}while(Zi.length);for(;hs.length;)hs.pop()();ps=!1,Zl.clear(),to(e)}function tf(e){if(e.fragment!==null){e.update(),Tt(e.before_update);const n=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,n),e.after_update.forEach(Mr)}}let Xi;function nf(){return Xi||(Xi=Promise.resolve(),Xi.then(()=>{Xi=null})),Xi}function xa(e,n,t){e.dispatchEvent(Ic(`${n?"intro":"outro"}${t}`))}const ml=new Set;let xr;function lt(){xr={r:0,c:[],p:xr}}function st(){xr.r||Tt(xr.c),xr=xr.p}function M(e,n){e&&e.i&&(ml.delete(e),e.i(n))}function j(e,n,t,r){if(e&&e.o){if(ml.has(e))return;ml.add(e),xr.c.push(()=>{ml.delete(e),r&&(t&&e.d(1),r())}),e.o(n)}else r&&r()}const rf={duration:0};function Vc(e,n,t){const r={direction:"in"};let i=n(e,t,r),o=!1,s,l,a=0;function c(){s&&La(e,s)}function h(){const{delay:d=0,duration:g=300,easing:k=Vu,tick:S=Oe,css:F}=i||rf;F&&(s=Qu(e,0,1,g,d,k,F,a++)),S(0,1);const $=Uu()+d,A=$+g;l&&l.abort(),o=!0,Mr(()=>xa(e,!0,"start")),l=zu(T=>{if(o){if(T>=A)return S(1,0),xa(e,!0,"end"),c(),o=!1;if(T>=$){const N=k((T-$)/g);S(N,1-N)}}return o})}let p=!1;return{start(){p||(p=!0,La(e),Hl(i)?(i=i(r),nf().then(h)):h())},invalidate(){p=!1},end(){o&&(c(),o=!1)}}}const Fc=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function Vl(e,n){e.d(1),n.delete(e.key)}function Ps(e,n){j(e,1,1,()=>{n.delete(e.key)})}function Wr(e,n,t,r,i,o,s,l,a,c,h,p){let d=e.length,g=o.length,k=d;const S={};for(;k--;)S[e[k].key]=k;const F=[],$=new Map,A=new Map;for(k=g;k--;){const G=p(i,o,k),U=t(G);let W=s.get(U);W?r&&W.p(G,n):(W=c(U,G),W.c()),$.set(U,F[k]=W),U in S&&A.set(U,Math.abs(k-S[U]))}const T=new Set,N=new Set;function K(G){M(G,1),G.m(l,h),s.set(G.key,G),h=G.first,g--}for(;d&&g;){const G=F[g-1],U=e[d-1],W=G.key,x=U.key;G===U?(h=G.first,d--,g--):$.has(x)?!s.has(W)||T.has(W)?K(G):N.has(x)?d--:A.get(W)>A.get(x)?(N.add(W),K(G)):(T.add(x),d--):(a(U,s),d--)}for(;d--;){const G=e[d];$.has(G.key)||a(G,s)}for(;g;)K(F[g-1]);return F}function of(e,n){const t={},r={},i={$$scope:1};let o=e.length;for(;o--;){const s=e[o],l=n[o];if(l){for(const a in s)a in l||(r[a]=1);for(const a in l)i[a]||(t[a]=l[a],i[a]=1);e[o]=l}else for(const a in s)i[a]=1}for(const s in r)s in t||(t[s]=void 0);return t}function lf(e){return typeof e=="object"&&e!==null?e:{}}function Jl(e,n,t,r){const i=e.$$.props[n];i!==void 0&&(e.$$.bound[i]=t,r===void 0&&t(e.$$.ctx[i]))}function oe(e){e&&e.c()}function re(e,n,t,r){const{fragment:i,after_update:o}=e.$$;i&&i.m(n,t),r||Mr(()=>{const s=e.$$.on_mount.map(Ac).filter(Hl);e.$$.on_destroy?e.$$.on_destroy.push(...s):Tt(s),e.$$.on_mount=[]}),o.forEach(Mr)}function ie(e,n){const t=e.$$;t.fragment!==null&&(Tt(t.on_destroy),t.fragment&&t.fragment.d(n),t.on_destroy=t.fragment=null,t.ctx=[])}function sf(e,n){e.$$.dirty[0]===-1&&(Zi.push(e),Hc(),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31}function Bt(e,n,t,r,i,o,s,l=[-1]){const a=ao;to(e);const c=e.$$={fragment:null,ctx:[],props:o,update:Oe,not_equal:i,bound:Ea(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(a?a.$$.context:[])),callbacks:Ea(),dirty:l,skip_bound:!1,root:n.target||a.$$.root};s&&s(c.root);let h=!1;if(c.ctx=t?t(e,n.props||{},(p,d,...g)=>{const k=g.length?g[0]:d;return c.ctx&&i(c.ctx[p],c.ctx[p]=k)&&(!c.skip_bound&&c.bound[p]&&c.bound[p](k),h&&sf(e,p)),d}):[],c.update(),h=!0,Tt(c.before_update),c.fragment=r?r(c.ctx):!1,n.target){if(n.hydrate){const p=qu(n.target);c.fragment&&c.fragment.l(p),p.forEach(R)}else c.fragment&&c.fragment.c();n.intro&&M(e.$$.fragment),re(e,n.target,n.anchor,n.customElement),Rc()}to(a)}class Ut{$destroy(){ie(this,1),this.$destroy=Oe}$on(n,t){if(!Hl(t))return Oe;const r=this.$$.callbacks[n]||(this.$$.callbacks[n]=[]);return r.push(t),()=>{const i=r.indexOf(t);i!==-1&&r.splice(i,1)}}$set(n){this.$$set&&!Wu(n)&&(this.$$.skip_bound=!0,this.$$set(n),this.$$.skip_bound=!1)}}var af="M20 13.5C20 17.09 17.09 20 13.5 20H6V18H13.5C16 18 18 16 18 13.5S16 9 13.5 9H7.83L10.91 12.09L9.5 13.5L4 8L9.5 2.5L10.92 3.91L7.83 7H13.5C17.09 7 20 9.91 20 13.5Z",Wc="M12 2C17.5 2 22 6.5 22 12S17.5 22 12 22 2 17.5 2 12 6.5 2 12 2M12 4C10.1 4 8.4 4.6 7.1 5.7L18.3 16.9C19.3 15.5 20 13.8 20 12C20 7.6 16.4 4 12 4M16.9 18.3L5.7 7.1C4.6 8.4 4 10.1 4 12C4 16.4 7.6 20 12 20C13.9 20 15.6 19.4 16.9 18.3Z",cf="M22,21H2V3H4V19H6V10H10V19H12V6H16V19H18V14H22V21Z",jc="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",uf="M12,15.5A3.5,3.5 0 0,1 8.5,12A3.5,3.5 0 0,1 12,8.5A3.5,3.5 0 0,1 15.5,12A3.5,3.5 0 0,1 12,15.5M19.43,12.97C19.47,12.65 19.5,12.33 19.5,12C19.5,11.67 19.47,11.34 19.43,11L21.54,9.37C21.73,9.22 21.78,8.95 21.66,8.73L19.66,5.27C19.54,5.05 19.27,4.96 19.05,5.05L16.56,6.05C16.04,5.66 15.5,5.32 14.87,5.07L14.5,2.42C14.46,2.18 14.25,2 14,2H10C9.75,2 9.54,2.18 9.5,2.42L9.13,5.07C8.5,5.32 7.96,5.66 7.44,6.05L4.95,5.05C4.73,4.96 4.46,5.05 4.34,5.27L2.34,8.73C2.21,8.95 2.27,9.22 2.46,9.37L4.57,11C4.53,11.34 4.5,11.67 4.5,12C4.5,12.33 4.53,12.65 4.57,12.97L2.46,14.63C2.27,14.78 2.21,15.05 2.34,15.27L4.34,18.73C4.46,18.95 4.73,19.03 4.95,18.95L7.44,17.94C7.96,18.34 8.5,18.68 9.13,18.93L9.5,21.58C9.54,21.82 9.75,22 10,22H14C14.25,22 14.46,21.82 14.5,21.58L14.87,18.93C15.5,18.67 16.04,18.34 16.56,17.94L19.05,18.95C19.27,19.03 19.54,18.95 19.66,18.73L21.66,15.27C21.78,15.05 21.73,14.78 21.54,14.63L19.43,12.97Z",ff="M21.4 7.5C22.2 8.3 22.2 9.6 21.4 10.3L18.6 13.1L10.8 5.3L13.6 2.5C14.4 1.7 15.7 1.7 16.4 2.5L18.2 4.3L21.2 1.3L22.6 2.7L19.6 5.7L21.4 7.5M15.6 13.3L14.2 11.9L11.4 14.7L9.3 12.6L12.1 9.8L10.7 8.4L7.9 11.2L6.4 9.8L3.6 12.6C2.8 13.4 2.8 14.7 3.6 15.4L5.4 17.2L1.4 21.2L2.8 22.6L6.8 18.6L8.6 20.4C9.4 21.2 10.7 21.2 11.4 20.4L14.2 17.6L12.8 16.2L15.6 13.3Z",hf="M15,9H5V5H15M12,19A3,3 0 0,1 9,16A3,3 0 0,1 12,13A3,3 0 0,1 15,16A3,3 0 0,1 12,19M17,3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V7L17,3Z",ds="M19,12V13.5A4,4 0 0,1 23,17.5C23,18.32 22.75,19.08 22.33,19.71L21.24,18.62C21.41,18.28 21.5,17.9 21.5,17.5A2.5,2.5 0 0,0 19,15V16.5L16.75,14.25L19,12M19,23V21.5A4,4 0 0,1 15,17.5C15,16.68 15.25,15.92 15.67,15.29L16.76,16.38C16.59,16.72 16.5,17.1 16.5,17.5A2.5,2.5 0 0,0 19,20V18.5L21.25,20.75L19,23M12,3C16.42,3 20,4.79 20,7C20,9.21 16.42,11 12,11C7.58,11 4,9.21 4,7C4,4.79 7.58,3 12,3M4,9C4,11.21 7.58,13 12,13C13.11,13 14.17,12.89 15.14,12.68C14.19,13.54 13.5,14.67 13.18,15.96L12,16C7.58,16 4,14.21 4,12V9M20,9V11H19.5L18.9,11.03C19.6,10.43 20,9.74 20,9M4,14C4,16.21 7.58,18 12,18L13,17.97C13.09,19.03 13.42,20 13.95,20.88L12,21C7.58,21 4,19.21 4,17V14Z",no="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",pf="M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19M8.46,11.88L9.87,10.47L12,12.59L14.12,10.47L15.53,11.88L13.41,14L15.53,16.12L14.12,17.53L12,15.41L9.88,17.53L8.47,16.12L10.59,14L8.46,11.88M15.5,4L14.5,3H9.5L8.5,4H5V6H19V4H15.5Z",df="M9,1V7H5L12,14L19,7H15V1H9M5,16V18H19V16H5M5,20V22H19V20H5Z",mf="M5,3A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5.5L18.5,3H17V9A1,1 0 0,1 16,10H8A1,1 0 0,1 7,9V3H5M12,4V9H15V4H12M7,12H17A1,1 0 0,1 18,13V19H6V13A1,1 0 0,1 7,12Z",Xt="M15.07,11.25L14.17,12.17C13.45,12.89 13,13.5 13,15H11V14.5C11,13.39 11.45,12.39 12.17,11.67L13.41,10.41C13.78,10.05 14,9.55 14,9C14,7.89 13.1,7 12,7A2,2 0 0,0 10,9H8A4,4 0 0,1 12,5A4,4 0 0,1 16,9C16,9.88 15.64,10.67 15.07,11.25M13,19H11V17H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z",gf="M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",bf="M21 10V9L15 3H5C3.89 3 3 3.89 3 5V19C3 20.11 3.9 21 5 21H11V19.13L19.39 10.74C19.83 10.3 20.39 10.06 21 10M14 4.5L19.5 10H14V4.5M22.85 14.19L21.87 15.17L19.83 13.13L20.81 12.15C21 11.95 21.33 11.95 21.53 12.15L22.85 13.47C23.05 13.67 23.05 14 22.85 14.19M19.13 13.83L21.17 15.87L15.04 22H13V19.96L19.13 13.83Z",vf="M14,19H18V5H14M6,19H10V5H6V19Z",_f="M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z",wf="M8,5.14V19.14L19,12.14L8,5.14Z",Bc="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",yf="M2 12C2 16.97 6.03 21 11 21C13.39 21 15.68 20.06 17.4 18.4L15.9 16.9C14.63 18.25 12.86 19 11 19C4.76 19 1.64 11.46 6.05 7.05C10.46 2.64 18 5.77 18 12H15L19 16H19.1L23 12H20C20 7.03 15.97 3 11 3C6.03 3 2 7.03 2 12Z",kf="M15 3H9V1H15V3M12 18.5C12 19.77 12.37 20.94 13 21.94C12.67 22 12.34 22 12 22C7.03 22 3 17.97 3 13S7.03 4 12 4C14.12 4 16.07 4.74 17.62 6L19.04 4.56C19.55 5 20 5.46 20.45 5.97L19.03 7.39C20.16 8.81 20.87 10.57 21 12.5C20.22 12.18 19.38 12 18.5 12C14.91 12 12 14.91 12 18.5M13 7H11V14H13V7M23 18.5C23 21 21 23 18.5 23S14 21 14 18.5 16 14 18.5 14 23 16 23 18.5M20 21.08L15.92 17C15.65 17.42 15.5 17.94 15.5 18.5C15.5 20.16 16.84 21.5 18.5 21.5C19.06 21.5 19.58 21.35 20 21.08M21.5 18.5C21.5 16.84 20.16 15.5 18.5 15.5C17.94 15.5 17.42 15.65 17 15.92L21.08 20C21.35 19.58 21.5 19.06 21.5 18.5Z",Sf="M15 3H9V1H15V3M19.39 10.74L11 19.13V21.94C6.5 21.44 3 17.63 3 13C3 8.03 7.03 4 12 4C14.12 4 16.07 4.74 17.62 6L19.04 4.56C19.55 5 20 5.46 20.45 5.97L19.03 7.39C19.67 8.19 20.17 9.11 20.5 10.1C20.1 10.21 19.71 10.42 19.39 10.74M13 7H11V14H13V7M13 19.96V22H15.04L21.17 15.88L19.13 13.83L13 19.96M22.85 13.47L21.53 12.15C21.33 11.95 21 11.95 20.81 12.15L19.83 13.13L21.87 15.17L22.85 14.19C23.05 14 23.05 13.67 22.85 13.47Z",Cf="M17 6H7c-3.31 0-6 2.69-6 6s2.69 6 6 6h10c3.31 0 6-2.69 6-6s-2.69-6-6-6zm0 10H7c-2.21 0-4-1.79-4-4s1.79-4 4-4h10c2.21 0 4 1.79 4 4s-1.79 4-4 4zM7 9c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z",Ef="M17 6H7C3.69 6 1 8.69 1 12S3.69 18 7 18H17C20.31 18 23 15.31 23 12S20.31 6 17 6M17 16H7C4.79 16 3 14.21 3 12S4.79 8 7 8H17C19.21 8 21 9.79 21 12S19.21 16 17 16M17 9C15.34 9 14 10.34 14 12S15.34 15 17 15 20 13.66 20 12 18.66 9 17 9Z",Uc="M9,3V4H4V6H5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V6H20V4H15V3H9M7,6H17V19H7V6M9,8V17H11V8H9M13,8V17H15V8H13Z",Lf="M17.75,4.09L15.22,6.03L16.13,9.09L13.5,7.28L10.87,9.09L11.78,6.03L9.25,4.09L12.44,4L13.5,1L14.56,4L17.75,4.09M21.25,11L19.61,12.25L20.2,14.23L18.5,13.06L16.8,14.23L17.39,12.25L15.75,11L17.81,10.95L18.5,9L19.19,10.95L21.25,11M18.97,15.95C19.8,15.87 20.69,17.05 20.16,17.8C19.84,18.25 19.5,18.67 19.08,19.07C15.17,23 8.84,23 4.94,19.07C1.03,15.17 1.03,8.83 4.94,4.93C5.34,4.53 5.76,4.17 6.21,3.85C6.96,3.32 8.14,4.21 8.06,5.04C7.79,7.9 8.75,10.87 10.95,13.06C13.14,15.26 16.1,16.22 18.97,15.95M17.33,17.97C14.5,17.81 11.7,16.64 9.53,14.5C7.36,12.31 6.2,9.5 6.04,6.68C3.23,9.82 3.34,14.64 6.35,17.66C9.37,20.67 14.19,20.78 17.33,17.97Z",xf="M3.55 19.09L4.96 20.5L6.76 18.71L5.34 17.29M12 6C8.69 6 6 8.69 6 12S8.69 18 12 18 18 15.31 18 12C18 8.68 15.31 6 12 6M20 13H23V11H20M17.24 18.71L19.04 20.5L20.45 19.09L18.66 17.29M20.45 5L19.04 3.6L17.24 5.39L18.66 6.81M13 1H11V4H13M6.76 5.39L4.96 3.6L3.55 5L5.34 6.81L6.76 5.39M1 13H4V11H1M13 20H11V23H13",Pa="M4,4H20V20H4V4M6,8V18H18V8H6Z",Aa="M4,8H8V4H20V16H16V20H4V8M16,8V14H18V6H10V8H16M6,12V18H14V12H6Z",ms=function(e,n){return ms=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])},ms(e,n)};function Nn(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");ms(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}function Pf(e,n,t,r){function i(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function l(h){try{c(r.next(h))}catch(p){s(p)}}function a(h){try{c(r.throw(h))}catch(p){s(p)}}function c(h){h.done?o(h.value):i(h.value).then(l,a)}c((r=r.apply(e,n||[])).next())})}function zc(e,n){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(c){return function(h){return a([c,h])}}function a(c){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(t=0)),t;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return t.label++,{value:c[1],done:!1};case 5:t.label++,i=c[1],c=[0];continue;case 7:c=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){t.label=c[1];break}if(c[0]===6&&t.label<o[1]){t.label=o[1],o=c;break}if(o&&t.label<o[2]){t.label=o[2],t.ops.push(c);break}o[2]&&t.ops.pop(),t.trys.pop();continue}c=n.call(e,t)}catch(h){c=[6,h],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function bi(e){var n=typeof Symbol=="function"&&Symbol.iterator,t=n&&e[n],r=0;if(t)return t.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function ir(e,n){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var r=t.call(e),i,o=[],s;try{for(;(n===void 0||n-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(s)throw s.error}}return o}function $r(e,n,t){if(t||arguments.length===2)for(var r=0,i=n.length,o;r<i;r++)(o||!(r in n))&&(o||(o=Array.prototype.slice.call(n,0,r)),o[r]=n[r]);return e.concat(o||Array.prototype.slice.call(n))}function di(e){return this instanceof di?(this.v=e,this):new di(e)}function Af(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=t.apply(e,n||[]),i,o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(d){r[d]&&(i[d]=function(g){return new Promise(function(k,S){o.push([d,g,k,S])>1||l(d,g)})})}function l(d,g){try{a(r[d](g))}catch(k){p(o[0][3],k)}}function a(d){d.value instanceof di?Promise.resolve(d.value.v).then(c,h):p(o[0][2],d)}function c(d){l("next",d)}function h(d){l("throw",d)}function p(d,g){d(g),o.shift(),o.length&&l(o[0][0],o[0][1])}}function Tf(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e[Symbol.asyncIterator],t;return n?n.call(e):(e=typeof bi=="function"?bi(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[o]=e[o]&&function(s){return new Promise(function(l,a){s=e[o](s),i(l,a,s.done,s.value)})}}function i(o,s,l,a){Promise.resolve(a).then(function(c){o({value:c,done:l})},s)}}function He(e){return typeof e=="function"}function Yc(e){var n=function(r){Error.call(r),r.stack=new Error().stack},t=e(n);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var Ql=Yc(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
|
19
|
+
var Yu=Object.defineProperty;var Ku=(e,n,t)=>n in e?Yu(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var eo=(e,n,t)=>(Ku(e,typeof n!="symbol"?n+"":n,t),t);(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function t(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerpolicy&&(o.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?o.credentials="include":i.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=t(i);fetch(i.href,o)}})();function Oe(){}const Gu=e=>e;function qu(e,n){for(const t in n)e[t]=n[t];return e}function Rc(e){return e()}function Ia(){return Object.create(null)}function At(e){e.forEach(Rc)}function Ul(e){return typeof e=="function"}function Et(e,n){return e!=e?n==n:e!==n||e&&typeof e=="object"||typeof e=="function"}function Xu(e){return Object.keys(e).length===0}function Zu(e,...n){if(e==null)return Oe;const t=e.subscribe(...n);return t.unsubscribe?()=>t.unsubscribe():t}function y(e,n,t){e.$$.on_destroy.push(Zu(n,t))}function N(e,n,t){return e.set(t),n}function Ju(e){return e&&Ul(e.destroy)?e.destroy:Oe}const Vc=typeof window<"u";let Qu=Vc?()=>window.performance.now():()=>Date.now(),Is=Vc?e=>requestAnimationFrame(e):Oe;const bi=new Set;function Fc(e){bi.forEach(n=>{n.c(e)||(bi.delete(n),n.f())}),bi.size!==0&&Is(Fc)}function ef(e){let n;return bi.size===0&&Is(Fc),{promise:new Promise(t=>{bi.add(n={c:e,f:t})}),abort(){bi.delete(n)}}}function f(e,n){e.appendChild(n)}function Wc(e){if(!e)return document;const n=e.getRootNode?e.getRootNode():e.ownerDocument;return n&&n.host?n:e.ownerDocument}function tf(e){const n=g("style");return nf(Wc(e),n),n.sheet}function nf(e,n){return f(e.head||e,n),n.sheet}function F(e,n,t){e.insertBefore(n,t||null)}function R(e){e.parentNode&&e.parentNode.removeChild(e)}function g(e){return document.createElement(e)}function vs(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function dt(e){return document.createTextNode(e)}function w(){return dt(" ")}function Nn(){return dt("")}function x(e,n,t,r){return e.addEventListener(n,t,r),()=>e.removeEventListener(n,t,r)}function h(e,n,t){t==null?e.removeAttribute(n):e.getAttribute(n)!==t&&e.setAttribute(n,t)}function rf(e,n,t){const r=new Set;for(let i=0;i<e.length;i+=1)e[i].checked&&r.add(e[i].__value);return t||r.delete(n),Array.from(r)}function Dl(e){return e===""?null:+e}function of(e){return Array.from(e.childNodes)}function $t(e,n){n=""+n,e.wholeText!==n&&(e.data=n)}function wt(e,n){e.value=n??""}function be(e,n,t,r){t===null?e.style.removeProperty(n):e.style.setProperty(n,t,r?"important":"")}function wi(e,n){for(let t=0;t<e.options.length;t+=1){const r=e.options[t];if(r.__value===n){r.selected=!0;return}}e.selectedIndex=-1}function lf(e){const n=e.querySelector(":checked")||e.options[0];return n&&n.__value}function q(e,n,t){e.classList[t?"add":"remove"](n)}function jc(e,n,{bubbles:t=!1,cancelable:r=!1}={}){const i=document.createEvent("CustomEvent");return i.initCustomEvent(e,t,r,n),i}class Bc{constructor(n=!1){this.is_svg=!1,this.is_svg=n,this.e=this.n=null}c(n){this.h(n)}m(n,t,r=null){this.e||(this.is_svg?this.e=vs(t.nodeName):this.e=g(t.nodeName),this.t=t,this.c(n)),this.i(r)}h(n){this.e.innerHTML=n,this.n=Array.from(this.e.childNodes)}i(n){for(let t=0;t<this.n.length;t+=1)F(this.t,this.n[t],n)}p(n){this.d(),this.h(n),this.i(this.a)}d(){this.n.forEach(R)}}const Ol=new Map;let Il=0;function sf(e){let n=5381,t=e.length;for(;t--;)n=(n<<5)-n^e.charCodeAt(t);return n>>>0}function af(e,n){const t={stylesheet:tf(n),rules:{}};return Ol.set(e,t),t}function cf(e,n,t,r,i,o,s,l=0){const a=16.666/r;let c=`{
|
20
|
+
`;for(let V=0;V<=1;V+=a){const O=n+(t-n)*o(V);c+=V*100+`%{${s(O,1-O)}}
|
21
|
+
`}const u=c+`100% {${s(t,1-t)}}
|
22
|
+
}`,p=`__svelte_${sf(u)}_${l}`,m=Wc(e),{stylesheet:b,rules:k}=Ol.get(m)||af(m,e);k[p]||(k[p]=!0,b.insertRule(`@keyframes ${p} ${u}`,b.cssRules.length));const S=e.style.animation||"";return e.style.animation=`${S?`${S}, `:""}${p} ${r}ms linear ${i}ms 1 both`,Il+=1,p}function Ma(e,n){const t=(e.style.animation||"").split(", "),r=t.filter(n?o=>o.indexOf(n)<0:o=>o.indexOf("__svelte")===-1),i=t.length-r.length;i&&(e.style.animation=r.join(", "),Il-=i,Il||uf())}function uf(){Is(()=>{Il||(Ol.forEach(e=>{const{ownerNode:n}=e.stylesheet;n&&R(n)}),Ol.clear())})}let po;function lo(e){po=e}function Ms(){if(!po)throw new Error("Function called outside component initialization");return po}function zl(e){Ms().$$.on_mount.push(e)}function Uc(e){Ms().$$.on_destroy.push(e)}function zr(){const e=Ms();return(n,t,{cancelable:r=!1}={})=>{const i=e.$$.callbacks[n];if(i){const o=jc(n,t,{cancelable:r});return i.slice().forEach(s=>{s.call(e,o)}),!o.defaultPrevented}return!0}}function mo(e,n){const t=e.$$.callbacks[n.type];t&&t.slice().forEach(r=>r.call(this,n))}const no=[],mt=[],yl=[],_s=[],zc=Promise.resolve();let ws=!1;function Yc(){ws||(ws=!0,zc.then(Kc))}function go(){return Yc(),zc}function Rr(e){yl.push(e)}function rs(e){_s.push(e)}const is=new Set;let dl=0;function Kc(){const e=po;do{for(;dl<no.length;){const n=no[dl];dl++,lo(n),ff(n.$$)}for(lo(null),no.length=0,dl=0;mt.length;)mt.pop()();for(let n=0;n<yl.length;n+=1){const t=yl[n];is.has(t)||(is.add(t),t())}yl.length=0}while(no.length);for(;_s.length;)_s.pop()();ws=!1,is.clear(),lo(e)}function ff(e){if(e.fragment!==null){e.update(),At(e.before_update);const n=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,n),e.after_update.forEach(Rr)}}let to;function hf(){return to||(to=Promise.resolve(),to.then(()=>{to=null})),to}function $a(e,n,t){e.dispatchEvent(jc(`${n?"intro":"outro"}${t}`))}const kl=new Set;let Tr;function nt(){Tr={r:0,c:[],p:Tr}}function rt(){Tr.r||At(Tr.c),Tr=Tr.p}function $(e,n){e&&e.i&&(kl.delete(e),e.i(n))}function W(e,n,t,r){if(e&&e.o){if(kl.has(e))return;kl.add(e),Tr.c.push(()=>{kl.delete(e),r&&(t&&e.d(1),r())}),e.o(n)}else r&&r()}const pf={duration:0};function Gc(e,n,t){const r={direction:"in"};let i=n(e,t,r),o=!1,s,l,a=0;function c(){s&&Ma(e,s)}function u(){const{delay:m=0,duration:b=300,easing:k=Gu,tick:S=Oe,css:V}=i||pf;V&&(s=cf(e,0,1,b,m,k,V,a++)),S(0,1);const O=Qu()+m,D=O+b;l&&l.abort(),o=!0,Rr(()=>$a(e,!0,"start")),l=ef(P=>{if(o){if(P>=D)return S(1,0),$a(e,!0,"end"),c(),o=!1;if(P>=O){const I=k((P-O)/b);S(I,1-I)}}return o})}let p=!1;return{start(){p||(p=!0,Ma(e),Ul(i)?(i=i(r),hf().then(u)):u())},invalidate(){p=!1},end(){o&&(c(),o=!1)}}}const $s=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function Yl(e,n){e.d(1),n.delete(e.key)}function Hs(e,n){W(e,1,1,()=>{n.delete(e.key)})}function Yr(e,n,t,r,i,o,s,l,a,c,u,p){let m=e.length,b=o.length,k=m;const S={};for(;k--;)S[e[k].key]=k;const V=[],O=new Map,D=new Map;for(k=b;k--;){const J=p(i,o,k),K=t(J);let j=s.get(K);j?r&&j.p(J,n):(j=c(K,J),j.c()),O.set(K,V[k]=j),K in S&&D.set(K,Math.abs(k-S[K]))}const P=new Set,I=new Set;function Z(J){$(J,1),J.m(l,u),s.set(J.key,J),u=J.first,b--}for(;m&&b;){const J=V[b-1],K=e[m-1],j=J.key,E=K.key;J===K?(u=J.first,m--,b--):O.has(E)?!s.has(j)||P.has(j)?Z(J):I.has(E)?m--:D.get(j)>D.get(E)?(I.add(j),Z(J)):(P.add(E),m--):(a(K,s),m--)}for(;m--;){const J=e[m];O.has(J.key)||a(J,s)}for(;b;)Z(V[b-1]);return V}function df(e,n){const t={},r={},i={$$scope:1};let o=e.length;for(;o--;){const s=e[o],l=n[o];if(l){for(const a in s)a in l||(r[a]=1);for(const a in l)i[a]||(t[a]=l[a],i[a]=1);e[o]=l}else for(const a in s)i[a]=1}for(const s in r)s in t||(t[s]=void 0);return t}function mf(e){return typeof e=="object"&&e!==null?e:{}}function os(e,n,t,r){const i=e.$$.props[n];i!==void 0&&(e.$$.bound[i]=t,r===void 0&&t(e.$$.ctx[i]))}function se(e){e&&e.c()}function re(e,n,t,r){const{fragment:i,after_update:o}=e.$$;i&&i.m(n,t),r||Rr(()=>{const s=e.$$.on_mount.map(Rc).filter(Ul);e.$$.on_destroy?e.$$.on_destroy.push(...s):At(s),e.$$.on_mount=[]}),o.forEach(Rr)}function ie(e,n){const t=e.$$;t.fragment!==null&&(At(t.on_destroy),t.fragment&&t.fragment.d(n),t.on_destroy=t.fragment=null,t.ctx=[])}function gf(e,n){e.$$.dirty[0]===-1&&(no.push(e),Yc(),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31}function Bt(e,n,t,r,i,o,s,l=[-1]){const a=po;lo(e);const c=e.$$={fragment:null,ctx:[],props:o,update:Oe,not_equal:i,bound:Ia(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(a?a.$$.context:[])),callbacks:Ia(),dirty:l,skip_bound:!1,root:n.target||a.$$.root};s&&s(c.root);let u=!1;if(c.ctx=t?t(e,n.props||{},(p,m,...b)=>{const k=b.length?b[0]:m;return c.ctx&&i(c.ctx[p],c.ctx[p]=k)&&(!c.skip_bound&&c.bound[p]&&c.bound[p](k),u&&gf(e,p)),m}):[],c.update(),u=!0,At(c.before_update),c.fragment=r?r(c.ctx):!1,n.target){if(n.hydrate){const p=of(n.target);c.fragment&&c.fragment.l(p),p.forEach(R)}else c.fragment&&c.fragment.c();n.intro&&$(e.$$.fragment),re(e,n.target,n.anchor,n.customElement),Kc()}lo(a)}class Ut{$destroy(){ie(this,1),this.$destroy=Oe}$on(n,t){if(!Ul(t))return Oe;const r=this.$$.callbacks[n]||(this.$$.callbacks[n]=[]);return r.push(t),()=>{const i=r.indexOf(t);i!==-1&&r.splice(i,1)}}$set(n){this.$$set&&!Xu(n)&&(this.$$.skip_bound=!0,this.$$set(n),this.$$.skip_bound=!1)}}var bf="M20 13.5C20 17.09 17.09 20 13.5 20H6V18H13.5C16 18 18 16 18 13.5S16 9 13.5 9H7.83L10.91 12.09L9.5 13.5L4 8L9.5 2.5L10.92 3.91L7.83 7H13.5C17.09 7 20 9.91 20 13.5Z",qc="M12 2C17.5 2 22 6.5 22 12S17.5 22 12 22 2 17.5 2 12 6.5 2 12 2M12 4C10.1 4 8.4 4.6 7.1 5.7L18.3 16.9C19.3 15.5 20 13.8 20 12C20 7.6 16.4 4 12 4M16.9 18.3L5.7 7.1C4.6 8.4 4 10.1 4 12C4 16.4 7.6 20 12 20C13.9 20 15.6 19.4 16.9 18.3Z",vf="M22,21H2V3H4V19H6V10H10V19H12V6H16V19H18V14H22V21Z",Xc="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",_f="M12,15.5A3.5,3.5 0 0,1 8.5,12A3.5,3.5 0 0,1 12,8.5A3.5,3.5 0 0,1 15.5,12A3.5,3.5 0 0,1 12,15.5M19.43,12.97C19.47,12.65 19.5,12.33 19.5,12C19.5,11.67 19.47,11.34 19.43,11L21.54,9.37C21.73,9.22 21.78,8.95 21.66,8.73L19.66,5.27C19.54,5.05 19.27,4.96 19.05,5.05L16.56,6.05C16.04,5.66 15.5,5.32 14.87,5.07L14.5,2.42C14.46,2.18 14.25,2 14,2H10C9.75,2 9.54,2.18 9.5,2.42L9.13,5.07C8.5,5.32 7.96,5.66 7.44,6.05L4.95,5.05C4.73,4.96 4.46,5.05 4.34,5.27L2.34,8.73C2.21,8.95 2.27,9.22 2.46,9.37L4.57,11C4.53,11.34 4.5,11.67 4.5,12C4.5,12.33 4.53,12.65 4.57,12.97L2.46,14.63C2.27,14.78 2.21,15.05 2.34,15.27L4.34,18.73C4.46,18.95 4.73,19.03 4.95,18.95L7.44,17.94C7.96,18.34 8.5,18.68 9.13,18.93L9.5,21.58C9.54,21.82 9.75,22 10,22H14C14.25,22 14.46,21.82 14.5,21.58L14.87,18.93C15.5,18.67 16.04,18.34 16.56,17.94L19.05,18.95C19.27,19.03 19.54,18.95 19.66,18.73L21.66,15.27C21.78,15.05 21.73,14.78 21.54,14.63L19.43,12.97Z",wf="M21.4 7.5C22.2 8.3 22.2 9.6 21.4 10.3L18.6 13.1L10.8 5.3L13.6 2.5C14.4 1.7 15.7 1.7 16.4 2.5L18.2 4.3L21.2 1.3L22.6 2.7L19.6 5.7L21.4 7.5M15.6 13.3L14.2 11.9L11.4 14.7L9.3 12.6L12.1 9.8L10.7 8.4L7.9 11.2L6.4 9.8L3.6 12.6C2.8 13.4 2.8 14.7 3.6 15.4L5.4 17.2L1.4 21.2L2.8 22.6L6.8 18.6L8.6 20.4C9.4 21.2 10.7 21.2 11.4 20.4L14.2 17.6L12.8 16.2L15.6 13.3Z",yf="M15,9H5V5H15M12,19A3,3 0 0,1 9,16A3,3 0 0,1 12,13A3,3 0 0,1 15,16A3,3 0 0,1 12,19M17,3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V7L17,3Z",ys="M19,12V13.5A4,4 0 0,1 23,17.5C23,18.32 22.75,19.08 22.33,19.71L21.24,18.62C21.41,18.28 21.5,17.9 21.5,17.5A2.5,2.5 0 0,0 19,15V16.5L16.75,14.25L19,12M19,23V21.5A4,4 0 0,1 15,17.5C15,16.68 15.25,15.92 15.67,15.29L16.76,16.38C16.59,16.72 16.5,17.1 16.5,17.5A2.5,2.5 0 0,0 19,20V18.5L21.25,20.75L19,23M12,3C16.42,3 20,4.79 20,7C20,9.21 16.42,11 12,11C7.58,11 4,9.21 4,7C4,4.79 7.58,3 12,3M4,9C4,11.21 7.58,13 12,13C13.11,13 14.17,12.89 15.14,12.68C14.19,13.54 13.5,14.67 13.18,15.96L12,16C7.58,16 4,14.21 4,12V9M20,9V11H19.5L18.9,11.03C19.6,10.43 20,9.74 20,9M4,14C4,16.21 7.58,18 12,18L13,17.97C13.09,19.03 13.42,20 13.95,20.88L12,21C7.58,21 4,19.21 4,17V14Z",so="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",kf="M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19M8.46,11.88L9.87,10.47L12,12.59L14.12,10.47L15.53,11.88L13.41,14L15.53,16.12L14.12,17.53L12,15.41L9.88,17.53L8.47,16.12L10.59,14L8.46,11.88M15.5,4L14.5,3H9.5L8.5,4H5V6H19V4H15.5Z",Sf="M9,1V7H5L12,14L19,7H15V1H9M5,16V18H19V16H5M5,20V22H19V20H5Z",Cf="M5,3A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5.5L18.5,3H17V9A1,1 0 0,1 16,10H8A1,1 0 0,1 7,9V3H5M12,4V9H15V4H12M7,12H17A1,1 0 0,1 18,13V19H6V13A1,1 0 0,1 7,12Z",tn="M15.07,11.25L14.17,12.17C13.45,12.89 13,13.5 13,15H11V14.5C11,13.39 11.45,12.39 12.17,11.67L13.41,10.41C13.78,10.05 14,9.55 14,9C14,7.89 13.1,7 12,7A2,2 0 0,0 10,9H8A4,4 0 0,1 12,5A4,4 0 0,1 16,9C16,9.88 15.64,10.67 15.07,11.25M13,19H11V17H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z",Ef="M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",Lf="M21 10V9L15 3H5C3.89 3 3 3.89 3 5V19C3 20.11 3.9 21 5 21H11V19.13L19.39 10.74C19.83 10.3 20.39 10.06 21 10M14 4.5L19.5 10H14V4.5M22.85 14.19L21.87 15.17L19.83 13.13L20.81 12.15C21 11.95 21.33 11.95 21.53 12.15L22.85 13.47C23.05 13.67 23.05 14 22.85 14.19M19.13 13.83L21.17 15.87L15.04 22H13V19.96L19.13 13.83Z",xf="M14,19H18V5H14M6,19H10V5H6V19Z",Pf="M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z",Af="M8,5.14V19.14L19,12.14L8,5.14Z",Zc="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",Tf="M2 12C2 16.97 6.03 21 11 21C13.39 21 15.68 20.06 17.4 18.4L15.9 16.9C14.63 18.25 12.86 19 11 19C4.76 19 1.64 11.46 6.05 7.05C10.46 2.64 18 5.77 18 12H15L19 16H19.1L23 12H20C20 7.03 15.97 3 11 3C6.03 3 2 7.03 2 12Z",Df="M15 3H9V1H15V3M12 18.5C12 19.77 12.37 20.94 13 21.94C12.67 22 12.34 22 12 22C7.03 22 3 17.97 3 13S7.03 4 12 4C14.12 4 16.07 4.74 17.62 6L19.04 4.56C19.55 5 20 5.46 20.45 5.97L19.03 7.39C20.16 8.81 20.87 10.57 21 12.5C20.22 12.18 19.38 12 18.5 12C14.91 12 12 14.91 12 18.5M13 7H11V14H13V7M23 18.5C23 21 21 23 18.5 23S14 21 14 18.5 16 14 18.5 14 23 16 23 18.5M20 21.08L15.92 17C15.65 17.42 15.5 17.94 15.5 18.5C15.5 20.16 16.84 21.5 18.5 21.5C19.06 21.5 19.58 21.35 20 21.08M21.5 18.5C21.5 16.84 20.16 15.5 18.5 15.5C17.94 15.5 17.42 15.65 17 15.92L21.08 20C21.35 19.58 21.5 19.06 21.5 18.5Z",Of="M15 3H9V1H15V3M19.39 10.74L11 19.13V21.94C6.5 21.44 3 17.63 3 13C3 8.03 7.03 4 12 4C14.12 4 16.07 4.74 17.62 6L19.04 4.56C19.55 5 20 5.46 20.45 5.97L19.03 7.39C19.67 8.19 20.17 9.11 20.5 10.1C20.1 10.21 19.71 10.42 19.39 10.74M13 7H11V14H13V7M13 19.96V22H15.04L21.17 15.88L19.13 13.83L13 19.96M22.85 13.47L21.53 12.15C21.33 11.95 21 11.95 20.81 12.15L19.83 13.13L21.87 15.17L22.85 14.19C23.05 14 23.05 13.67 22.85 13.47Z",If="M17 6H7c-3.31 0-6 2.69-6 6s2.69 6 6 6h10c3.31 0 6-2.69 6-6s-2.69-6-6-6zm0 10H7c-2.21 0-4-1.79-4-4s1.79-4 4-4h10c2.21 0 4 1.79 4 4s-1.79 4-4 4zM7 9c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z",Mf="M17 6H7C3.69 6 1 8.69 1 12S3.69 18 7 18H17C20.31 18 23 15.31 23 12S20.31 6 17 6M17 16H7C4.79 16 3 14.21 3 12S4.79 8 7 8H17C19.21 8 21 9.79 21 12S19.21 16 17 16M17 9C15.34 9 14 10.34 14 12S15.34 15 17 15 20 13.66 20 12 18.66 9 17 9Z",Jc="M9,3V4H4V6H5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V6H20V4H15V3H9M7,6H17V19H7V6M9,8V17H11V8H9M13,8V17H15V8H13Z",$f="M18 2C17.1 2 16 3 16 4H8C8 3 6.9 2 6 2H2V11C2 12 3 13 4 13H6.2C6.6 15 7.9 16.7 11 17V19.08C8 19.54 8 22 8 22H16C16 22 16 19.54 13 19.08V17C16.1 16.7 17.4 15 17.8 13H20C21 13 22 12 22 11V2H18M6 11H4V4H6V11M20 11H18V4H20V11Z",Hf="M17.75,4.09L15.22,6.03L16.13,9.09L13.5,7.28L10.87,9.09L11.78,6.03L9.25,4.09L12.44,4L13.5,1L14.56,4L17.75,4.09M21.25,11L19.61,12.25L20.2,14.23L18.5,13.06L16.8,14.23L17.39,12.25L15.75,11L17.81,10.95L18.5,9L19.19,10.95L21.25,11M18.97,15.95C19.8,15.87 20.69,17.05 20.16,17.8C19.84,18.25 19.5,18.67 19.08,19.07C15.17,23 8.84,23 4.94,19.07C1.03,15.17 1.03,8.83 4.94,4.93C5.34,4.53 5.76,4.17 6.21,3.85C6.96,3.32 8.14,4.21 8.06,5.04C7.79,7.9 8.75,10.87 10.95,13.06C13.14,15.26 16.1,16.22 18.97,15.95M17.33,17.97C14.5,17.81 11.7,16.64 9.53,14.5C7.36,12.31 6.2,9.5 6.04,6.68C3.23,9.82 3.34,14.64 6.35,17.66C9.37,20.67 14.19,20.78 17.33,17.97Z",Nf="M3.55 19.09L4.96 20.5L6.76 18.71L5.34 17.29M12 6C8.69 6 6 8.69 6 12S8.69 18 12 18 18 15.31 18 12C18 8.68 15.31 6 12 6M20 13H23V11H20M17.24 18.71L19.04 20.5L20.45 19.09L18.66 17.29M20.45 5L19.04 3.6L17.24 5.39L18.66 6.81M13 1H11V4H13M6.76 5.39L4.96 3.6L3.55 5L5.34 6.81L6.76 5.39M1 13H4V11H1M13 20H11V23H13",Ha="M4,4H20V20H4V4M6,8V18H18V8H6Z",Na="M4,8H8V4H20V16H16V20H4V8M16,8V14H18V6H10V8H16M6,12V18H14V12H6Z",ks=function(e,n){return ks=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])},ks(e,n)};function Rn(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");ks(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}function Rf(e,n,t,r){function i(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function l(u){try{c(r.next(u))}catch(p){s(p)}}function a(u){try{c(r.throw(u))}catch(p){s(p)}}function c(u){u.done?o(u.value):i(u.value).then(l,a)}c((r=r.apply(e,n||[])).next())})}function Qc(e,n){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(c){return function(u){return a([c,u])}}function a(c){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(t=0)),t;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return t.label++,{value:c[1],done:!1};case 5:t.label++,i=c[1],c=[0];continue;case 7:c=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){t.label=c[1];break}if(c[0]===6&&t.label<o[1]){t.label=o[1],o=c;break}if(o&&t.label<o[2]){t.label=o[2],t.ops.push(c);break}o[2]&&t.ops.pop(),t.trys.pop();continue}c=n.call(e,t)}catch(u){c=[6,u],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function yi(e){var n=typeof Symbol=="function"&&Symbol.iterator,t=n&&e[n],r=0;if(t)return t.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function cr(e,n){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var r=t.call(e),i,o=[],s;try{for(;(n===void 0||n-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(s)throw s.error}}return o}function Vr(e,n,t){if(t||arguments.length===2)for(var r=0,i=n.length,o;r<i;r++)(o||!(r in n))&&(o||(o=Array.prototype.slice.call(n,0,r)),o[r]=n[r]);return e.concat(o||Array.prototype.slice.call(n))}function vi(e){return this instanceof vi?(this.v=e,this):new vi(e)}function Vf(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=t.apply(e,n||[]),i,o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(m){r[m]&&(i[m]=function(b){return new Promise(function(k,S){o.push([m,b,k,S])>1||l(m,b)})})}function l(m,b){try{a(r[m](b))}catch(k){p(o[0][3],k)}}function a(m){m.value instanceof vi?Promise.resolve(m.value.v).then(c,u):p(o[0][2],m)}function c(m){l("next",m)}function u(m){l("throw",m)}function p(m,b){m(b),o.shift(),o.length&&l(o[0][0],o[0][1])}}function Ff(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e[Symbol.asyncIterator],t;return n?n.call(e):(e=typeof yi=="function"?yi(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[o]=e[o]&&function(s){return new Promise(function(l,a){s=e[o](s),i(l,a,s.done,s.value)})}}function i(o,s,l,a){Promise.resolve(a).then(function(c){o({value:c,done:l})},s)}}function $e(e){return typeof e=="function"}function eu(e){var n=function(r){Error.call(r),r.stack=new Error().stack},t=e(n);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var ls=eu(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
|
23
23
|
`+t.map(function(r,i){return i+1+") "+r.toString()}).join(`
|
24
|
-
`):"",this.name="UnsubscriptionError",this.errors=t}});function xl(e,n){if(e){var t=e.indexOf(n);0<=t&&e.splice(t,1)}}var vo=function(){function e(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var n,t,r,i,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var l=bi(s),a=l.next();!a.done;a=l.next()){var c=a.value;c.remove(this)}}catch(S){n={error:S}}finally{try{a&&!a.done&&(t=l.return)&&t.call(l)}finally{if(n)throw n.error}}else s.remove(this);var h=this.initialTeardown;if(He(h))try{h()}catch(S){o=S instanceof Ql?S.errors:[S]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var d=bi(p),g=d.next();!g.done;g=d.next()){var k=g.value;try{Ta(k)}catch(S){o=o??[],S instanceof Ql?o=$r($r([],ir(o)),ir(S.errors)):o.push(S)}}}catch(S){r={error:S}}finally{try{g&&!g.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}}if(o)throw new Ql(o)}},e.prototype.add=function(n){var t;if(n&&n!==this)if(this.closed)Ta(n);else{if(n instanceof e){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(n)}},e.prototype._hasParent=function(n){var t=this._parentage;return t===n||Array.isArray(t)&&t.includes(n)},e.prototype._addParent=function(n){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n},e.prototype._removeParent=function(n){var t=this._parentage;t===n?this._parentage=null:Array.isArray(t)&&xl(t,n)},e.prototype.remove=function(n){var t=this._finalizers;t&&xl(t,n),n instanceof e&&n._removeParent(this)},e.EMPTY=function(){var n=new e;return n.closed=!0,n}(),e}(),Kc=vo.EMPTY;function Gc(e){return e instanceof vo||e&&"closed"in e&&He(e.remove)&&He(e.add)&&He(e.unsubscribe)}function Ta(e){He(e)?e():e.unsubscribe()}var As={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},gs={setTimeout:function(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var i=gs.delegate;return i!=null&&i.setTimeout?i.setTimeout.apply(i,$r([e,n],ir(t))):setTimeout.apply(void 0,$r([e,n],ir(t)))},clearTimeout:function(e){var n=gs.delegate;return((n==null?void 0:n.clearTimeout)||clearTimeout)(e)},delegate:void 0};function qc(e){gs.setTimeout(function(){throw e})}function bs(){}var al=null;function gl(e){if(As.useDeprecatedSynchronousErrorHandling){var n=!al;if(n&&(al={errorThrown:!1,error:null}),e(),n){var t=al,r=t.errorThrown,i=t.error;if(al=null,r)throw i}}else e()}var Ts=function(e){Nn(n,e);function n(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,Gc(t)&&t.add(r)):r.destination=Mf,r}return n.create=function(t,r,i){return new vs(t,r,i)},n.prototype.next=function(t){this.isStopped||this._next(t)},n.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},n.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},n.prototype._next=function(t){this.destination.next(t)},n.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},n.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},n}(vo),Df=Function.prototype.bind;function es(e,n){return Df.call(e,n)}var Of=function(){function e(n){this.partialObserver=n}return e.prototype.next=function(n){var t=this.partialObserver;if(t.next)try{t.next(n)}catch(r){cl(r)}},e.prototype.error=function(n){var t=this.partialObserver;if(t.error)try{t.error(n)}catch(r){cl(r)}else cl(n)},e.prototype.complete=function(){var n=this.partialObserver;if(n.complete)try{n.complete()}catch(t){cl(t)}},e}(),vs=function(e){Nn(n,e);function n(t,r,i){var o=e.call(this)||this,s;if(He(t)||!t)s={next:t??void 0,error:r??void 0,complete:i??void 0};else{var l;o&&As.useDeprecatedNextContext?(l=Object.create(t),l.unsubscribe=function(){return o.unsubscribe()},s={next:t.next&&es(t.next,l),error:t.error&&es(t.error,l),complete:t.complete&&es(t.complete,l)}):s=t}return o.destination=new Of(s),o}return n}(Ts);function cl(e){qc(e)}function If(e){throw e}var Mf={closed:!0,next:bs,error:If,complete:bs},Ds=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function _o(e){return e}function $f(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Xc(e)}function Xc(e){return e.length===0?_o:e.length===1?e[0]:function(t){return e.reduce(function(r,i){return i(r)},t)}}var At=function(){function e(n){n&&(this._subscribe=n)}return e.prototype.lift=function(n){var t=new e;return t.source=this,t.operator=n,t},e.prototype.subscribe=function(n,t,r){var i=this,o=Hf(n)?n:new vs(n,t,r);return gl(function(){var s=i,l=s.operator,a=s.source;o.add(l?l.call(o,a):a?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(n){try{return this._subscribe(n)}catch(t){n.error(t)}},e.prototype.forEach=function(n,t){var r=this;return t=Da(t),new t(function(i,o){var s=new vs({next:function(l){try{n(l)}catch(a){o(a),s.unsubscribe()}},error:o,complete:i});r.subscribe(s)})},e.prototype._subscribe=function(n){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(n)},e.prototype[Ds]=function(){return this},e.prototype.pipe=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return Xc(n)(this)},e.prototype.toPromise=function(n){var t=this;return n=Da(n),new n(function(r,i){var o;t.subscribe(function(s){return o=s},function(s){return i(s)},function(){return r(o)})})},e.create=function(n){return new e(n)},e}();function Da(e){var n;return(n=e??As.Promise)!==null&&n!==void 0?n:Promise}function Nf(e){return e&&He(e.next)&&He(e.error)&&He(e.complete)}function Hf(e){return e&&e instanceof Ts||Nf(e)&&Gc(e)}function Rf(e){return He(e==null?void 0:e.lift)}function kn(e){return function(n){if(Rf(n))return n.lift(function(t){try{return e(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function tn(e,n,t,r,i){return new Vf(e,n,t,r,i)}var Vf=function(e){Nn(n,e);function n(t,r,i,o,s,l){var a=e.call(this,t)||this;return a.onFinalize=s,a.shouldUnsubscribe=l,a._next=r?function(c){try{r(c)}catch(h){t.error(h)}}:e.prototype._next,a._error=o?function(c){try{o(c)}catch(h){t.error(h)}finally{this.unsubscribe()}}:e.prototype._error,a._complete=i?function(){try{i()}catch(c){t.error(c)}finally{this.unsubscribe()}}:e.prototype._complete,a}return n.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),!r&&((t=this.onFinalize)===null||t===void 0||t.call(this))}},n}(Ts),Ff=Yc(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Ki=function(e){Nn(n,e);function n(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return n.prototype.lift=function(t){var r=new Oa(this,this);return r.operator=t,r},n.prototype._throwIfClosed=function(){if(this.closed)throw new Ff},n.prototype.next=function(t){var r=this;gl(function(){var i,o;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=bi(r.currentObservers),l=s.next();!l.done;l=s.next()){var a=l.value;a.next(t)}}catch(c){i={error:c}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}}})},n.prototype.error=function(t){var r=this;gl(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var i=r.observers;i.length;)i.shift().error(t)}})},n.prototype.complete=function(){var t=this;gl(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var r=t.observers;r.length;)r.shift().complete()}})},n.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(n.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),n.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},n.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},n.prototype._innerSubscribe=function(t){var r=this,i=this,o=i.hasError,s=i.isStopped,l=i.observers;return o||s?Kc:(this.currentObservers=null,l.push(t),new vo(function(){r.currentObservers=null,xl(l,t)}))},n.prototype._checkFinalizedStatuses=function(t){var r=this,i=r.hasError,o=r.thrownError,s=r.isStopped;i?t.error(o):s&&t.complete()},n.prototype.asObservable=function(){var t=new At;return t.source=this,t},n.create=function(t,r){return new Oa(t,r)},n}(At),Oa=function(e){Nn(n,e);function n(t,r){var i=e.call(this)||this;return i.destination=t,i.source=r,i}return n.prototype.next=function(t){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.next)===null||i===void 0||i.call(r,t)},n.prototype.error=function(t){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.error)===null||i===void 0||i.call(r,t)},n.prototype.complete=function(){var t,r;(r=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||r===void 0||r.call(t)},n.prototype._subscribe=function(t){var r,i;return(i=(r=this.source)===null||r===void 0?void 0:r.subscribe(t))!==null&&i!==void 0?i:Kc},n}(Ki),Wf=function(e){Nn(n,e);function n(t){var r=e.call(this)||this;return r._value=t,r}return Object.defineProperty(n.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),n.prototype._subscribe=function(t){var r=e.prototype._subscribe.call(this,t);return!r.closed&&t.next(this._value),r},n.prototype.getValue=function(){var t=this,r=t.hasError,i=t.thrownError,o=t._value;if(r)throw i;return this._throwIfClosed(),o},n.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},n}(Ki),Zc={now:function(){return(Zc.delegate||Date).now()},delegate:void 0},jf=function(e){Nn(n,e);function n(t,r){return e.call(this)||this}return n.prototype.schedule=function(t,r){return this},n}(vo),Pl={setInterval:function(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var i=Pl.delegate;return i!=null&&i.setInterval?i.setInterval.apply(i,$r([e,n],ir(t))):setInterval.apply(void 0,$r([e,n],ir(t)))},clearInterval:function(e){var n=Pl.delegate;return((n==null?void 0:n.clearInterval)||clearInterval)(e)},delegate:void 0},Bf=function(e){Nn(n,e);function n(t,r){var i=e.call(this,t,r)||this;return i.scheduler=t,i.work=r,i.pending=!1,i}return n.prototype.schedule=function(t,r){var i;if(r===void 0&&(r=0),this.closed)return this;this.state=t;var o=this.id,s=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(s,o,r)),this.pending=!0,this.delay=r,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(s,this.id,r),this},n.prototype.requestAsyncId=function(t,r,i){return i===void 0&&(i=0),Pl.setInterval(t.flush.bind(t,this),i)},n.prototype.recycleAsyncId=function(t,r,i){if(i===void 0&&(i=0),i!=null&&this.delay===i&&this.pending===!1)return r;r!=null&&Pl.clearInterval(r)},n.prototype.execute=function(t,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(t,r);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},n.prototype._execute=function(t,r){var i=!1,o;try{this.work(t)}catch(s){i=!0,o=s||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o},n.prototype.unsubscribe=function(){if(!this.closed){var t=this,r=t.id,i=t.scheduler,o=i.actions;this.work=this.state=this.scheduler=null,this.pending=!1,xl(o,this),r!=null&&(this.id=this.recycleAsyncId(i,r,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},n}(jf),Ia=function(){function e(n,t){t===void 0&&(t=e.now),this.schedulerActionCtor=n,this.now=t}return e.prototype.schedule=function(n,t,r){return t===void 0&&(t=0),new this.schedulerActionCtor(this,n).schedule(r,t)},e.now=Zc.now,e}(),Uf=function(e){Nn(n,e);function n(t,r){r===void 0&&(r=Ia.now);var i=e.call(this,t,r)||this;return i.actions=[],i._active=!1,i}return n.prototype.flush=function(t){var r=this.actions;if(this._active){r.push(t);return}var i;this._active=!0;do if(i=t.execute(t.state,t.delay))break;while(t=r.shift());if(this._active=!1,i){for(;t=r.shift();)t.unsubscribe();throw i}},n}(Ia),Fl=new Uf(Bf),zf=Fl,Yf=new At(function(e){return e.complete()});function Jc(e){return e&&He(e.schedule)}function Os(e){return e[e.length-1]}function Kf(e){return He(Os(e))?e.pop():void 0}function Wl(e){return Jc(Os(e))?e.pop():void 0}function Gf(e,n){return typeof Os(e)=="number"?e.pop():n}var Is=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function Qc(e){return He(e==null?void 0:e.then)}function eu(e){return He(e[Ds])}function tu(e){return Symbol.asyncIterator&&He(e==null?void 0:e[Symbol.asyncIterator])}function nu(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function qf(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ru=qf();function iu(e){return He(e==null?void 0:e[ru])}function ou(e){return Af(this,arguments,function(){var t,r,i,o;return zc(this,function(s){switch(s.label){case 0:t=e.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,di(t.read())];case 3:return r=s.sent(),i=r.value,o=r.done,o?[4,di(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,di(i)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function lu(e){return He(e==null?void 0:e.getReader)}function Hn(e){if(e instanceof At)return e;if(e!=null){if(eu(e))return Xf(e);if(Is(e))return Zf(e);if(Qc(e))return Jf(e);if(tu(e))return su(e);if(iu(e))return Qf(e);if(lu(e))return eh(e)}throw nu(e)}function Xf(e){return new At(function(n){var t=e[Ds]();if(He(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Zf(e){return new At(function(n){for(var t=0;t<e.length&&!n.closed;t++)n.next(e[t]);n.complete()})}function Jf(e){return new At(function(n){e.then(function(t){n.closed||(n.next(t),n.complete())},function(t){return n.error(t)}).then(null,qc)})}function Qf(e){return new At(function(n){var t,r;try{for(var i=bi(e),o=i.next();!o.done;o=i.next()){var s=o.value;if(n.next(s),n.closed)return}}catch(l){t={error:l}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}n.complete()})}function su(e){return new At(function(n){th(e,n).catch(function(t){return n.error(t)})})}function eh(e){return su(ou(e))}function th(e,n){var t,r,i,o;return Pf(this,void 0,void 0,function(){var s,l;return zc(this,function(a){switch(a.label){case 0:a.trys.push([0,5,6,11]),t=Tf(e),a.label=1;case 1:return[4,t.next()];case 2:if(r=a.sent(),!!r.done)return[3,4];if(s=r.value,n.next(s),n.closed)return[2];a.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return l=a.sent(),i={error:l},[3,11];case 6:return a.trys.push([6,,9,10]),r&&!r.done&&(o=t.return)?[4,o.call(t)]:[3,8];case 7:a.sent(),a.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return n.complete(),[2]}})})}function On(e,n,t,r,i){r===void 0&&(r=0),i===void 0&&(i=!1);var o=n.schedule(function(){t(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function au(e,n){return n===void 0&&(n=0),kn(function(t,r){t.subscribe(tn(r,function(i){return On(r,e,function(){return r.next(i)},n)},function(){return On(r,e,function(){return r.complete()},n)},function(i){return On(r,e,function(){return r.error(i)},n)}))})}function cu(e,n){return n===void 0&&(n=0),kn(function(t,r){r.add(e.schedule(function(){return t.subscribe(r)},n))})}function nh(e,n){return Hn(e).pipe(cu(n),au(n))}function rh(e,n){return Hn(e).pipe(cu(n),au(n))}function ih(e,n){return new At(function(t){var r=0;return n.schedule(function(){r===e.length?t.complete():(t.next(e[r++]),t.closed||this.schedule())})})}function oh(e,n){return new At(function(t){var r;return On(t,n,function(){r=e[ru](),On(t,n,function(){var i,o,s;try{i=r.next(),o=i.value,s=i.done}catch(l){t.error(l);return}s?t.complete():t.next(o)},0,!0)}),function(){return He(r==null?void 0:r.return)&&r.return()}})}function uu(e,n){if(!e)throw new Error("Iterable cannot be null");return new At(function(t){On(t,n,function(){var r=e[Symbol.asyncIterator]();On(t,n,function(){r.next().then(function(i){i.done?t.complete():t.next(i.value)})},0,!0)})})}function lh(e,n){return uu(ou(e),n)}function sh(e,n){if(e!=null){if(eu(e))return nh(e,n);if(Is(e))return ih(e,n);if(Qc(e))return rh(e,n);if(tu(e))return uu(e,n);if(iu(e))return oh(e,n);if(lu(e))return lh(e,n)}throw nu(e)}function jl(e,n){return n?sh(e,n):Hn(e)}function ah(e){return e instanceof Date&&!isNaN(e)}function Bl(e,n){return kn(function(t,r){var i=0;t.subscribe(tn(r,function(o){r.next(e.call(n,o,i++))}))})}var ch=Array.isArray;function uh(e,n){return ch(n)?e.apply(void 0,$r([],ir(n))):e(n)}function fu(e){return Bl(function(n){return uh(e,n)})}var fh=Array.isArray,hh=Object.getPrototypeOf,ph=Object.prototype,dh=Object.keys;function mh(e){if(e.length===1){var n=e[0];if(fh(n))return{args:n,keys:null};if(gh(n)){var t=dh(n);return{args:t.map(function(r){return n[r]}),keys:t}}}return{args:e,keys:null}}function gh(e){return e&&typeof e=="object"&&hh(e)===ph}function bh(e,n){return e.reduce(function(t,r,i){return t[r]=n[i],t},{})}function vh(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=Wl(e),r=Kf(e),i=mh(e),o=i.args,s=i.keys;if(o.length===0)return jl([],t);var l=new At(_h(o,t,s?function(a){return bh(s,a)}:_o));return r?l.pipe(fu(r)):l}function _h(e,n,t){return t===void 0&&(t=_o),function(r){Ma(n,function(){for(var i=e.length,o=new Array(i),s=i,l=i,a=function(h){Ma(n,function(){var p=jl(e[h],n),d=!1;p.subscribe(tn(r,function(g){o[h]=g,d||(d=!0,l--),l||r.next(t(o.slice()))},function(){--s||r.complete()}))},r)},c=0;c<i;c++)a(c)},r)}}function Ma(e,n,t){e?On(t,e,n):n()}function wh(e,n,t,r,i,o,s,l){var a=[],c=0,h=0,p=!1,d=function(){p&&!a.length&&!c&&n.complete()},g=function(S){return c<r?k(S):a.push(S)},k=function(S){o&&n.next(S),c++;var F=!1;Hn(t(S,h++)).subscribe(tn(n,function($){i==null||i($),o?g($):n.next($)},function(){F=!0},void 0,function(){if(F)try{c--;for(var $=function(){var A=a.shift();s?On(n,s,function(){return k(A)}):k(A)};a.length&&c<r;)$();d()}catch(A){n.error(A)}}))};return e.subscribe(tn(n,g,function(){p=!0,d()})),function(){l==null||l()}}function Ms(e,n,t){return t===void 0&&(t=1/0),He(n)?Ms(function(r,i){return Bl(function(o,s){return n(r,o,i,s)})(Hn(e(r,i)))},t):(typeof n=="number"&&(t=n),kn(function(r,i){return wh(r,i,e,t)}))}function hu(e){return e===void 0&&(e=1/0),Ms(_o,e)}function yh(){return hu(1)}function $a(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return yh()(jl(e,Wl(e)))}var kh=["addListener","removeListener"],Sh=["addEventListener","removeEventListener"],Ch=["on","off"];function er(e,n,t,r){if(He(t)&&(r=t,t=void 0),r)return er(e,n,t).pipe(fu(r));var i=ir(xh(e)?Sh.map(function(l){return function(a){return e[l](n,a,t)}}):Eh(e)?kh.map(Na(e,n)):Lh(e)?Ch.map(Na(e,n)):[],2),o=i[0],s=i[1];if(!o&&Is(e))return Ms(function(l){return er(l,n,t)})(Hn(e));if(!o)throw new TypeError("Invalid event target");return new At(function(l){var a=function(){for(var c=[],h=0;h<arguments.length;h++)c[h]=arguments[h];return l.next(1<c.length?c:c[0])};return o(a),function(){return s(a)}})}function Na(e,n){return function(t){return function(r){return e[t](n,r)}}}function Eh(e){return He(e.addListener)&&He(e.removeListener)}function Lh(e){return He(e.on)&&He(e.off)}function xh(e){return He(e.addEventListener)&&He(e.removeEventListener)}function pu(e,n,t){e===void 0&&(e=0),t===void 0&&(t=zf);var r=-1;return n!=null&&(Jc(n)?t=n:r=n),new At(function(i){var o=ah(e)?+e-t.now():e;o<0&&(o=0);var s=0;return t.schedule(function(){i.closed||(i.next(s++),0<=r?this.schedule(void 0,r):i.complete())},o)})}function Ph(e,n){return e===void 0&&(e=0),n===void 0&&(n=Fl),e<0&&(e=0),pu(e,e,n)}function Ah(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=Wl(e),r=Gf(e,1/0),i=e;return i.length?i.length===1?Hn(i[0]):hu(r)(jl(i,t)):Yf}var fo=new At(bs);function Ul(e,n){return kn(function(t,r){var i=0;t.subscribe(tn(r,function(o){return e.call(n,o,i++)&&r.next(o)}))})}function $s(e,n){return n===void 0&&(n=Fl),kn(function(t,r){var i=null,o=null,s=null,l=function(){if(i){i.unsubscribe(),i=null;var c=o;o=null,r.next(c)}};function a(){var c=s+e,h=n.now();if(h<c){i=this.schedule(void 0,c-h),r.add(i);return}l()}t.subscribe(tn(r,function(c){o=c,s=n.now(),i||(i=n.schedule(a,e),r.add(i))},function(){l(),r.complete()},void 0,function(){o=i=null}))})}function Th(e){return Ul(function(n,t){return e<=t})}function Dh(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=Wl(e);return kn(function(r,i){(t?$a(e,r,t):$a(e,r)).subscribe(i)})}function ho(e,n){return kn(function(t,r){var i=null,o=0,s=!1,l=function(){return s&&!i&&r.complete()};t.subscribe(tn(r,function(a){i==null||i.unsubscribe();var c=0,h=o++;Hn(e(a,h)).subscribe(i=tn(r,function(p){return r.next(n?n(a,p,h,c++):p)},function(){i=null,l()}))},function(){s=!0,l()}))})}function Xn(e,n,t){var r=He(e)||n||t?{next:e,error:n,complete:t}:e;return r?kn(function(i,o){var s;(s=r.subscribe)===null||s===void 0||s.call(r);var l=!0;i.subscribe(tn(o,function(a){var c;(c=r.next)===null||c===void 0||c.call(r,a),o.next(a)},function(){var a;l=!1,(a=r.complete)===null||a===void 0||a.call(r),o.complete()},function(a){var c;l=!1,(c=r.error)===null||c===void 0||c.call(r,a),o.error(a)},function(){var a,c;l&&((a=r.unsubscribe)===null||a===void 0||a.call(r)),(c=r.finalize)===null||c===void 0||c.call(r)}))}):_o}var du={leading:!0,trailing:!1};function Oh(e,n){return n===void 0&&(n=du),kn(function(t,r){var i=n.leading,o=n.trailing,s=!1,l=null,a=null,c=!1,h=function(){a==null||a.unsubscribe(),a=null,o&&(g(),c&&r.complete())},p=function(){a=null,c&&r.complete()},d=function(k){return a=Hn(e(k)).subscribe(tn(r,h,p))},g=function(){if(s){s=!1;var k=l;l=null,r.next(k),!c&&d(k)}};t.subscribe(tn(r,function(k){s=!0,l=k,!(a&&!a.closed)&&(i?g():d(k))},function(){c=!0,!(o&&s&&a&&!a.closed)&&r.complete()}))})}function Ih(e,n,t){n===void 0&&(n=Fl),t===void 0&&(t=du);var r=pu(e,n);return Oh(function(){return r},t)}function Mh(e){const n=e-1;return n*n*n+1}function $h(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)}function mu(e,{delay:n=0,duration:t=400,easing:r=Mh,x:i=0,y:o=0,opacity:s=0}={}){const l=getComputedStyle(e),a=+l.opacity,c=l.transform==="none"?"":l.transform,h=a*(1-s);return{delay:n,duration:t,easing:r,css:(p,d)=>`
|
24
|
+
`):"",this.name="UnsubscriptionError",this.errors=t}});function Ml(e,n){if(e){var t=e.indexOf(n);0<=t&&e.splice(t,1)}}var Co=function(){function e(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var n,t,r,i,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var l=yi(s),a=l.next();!a.done;a=l.next()){var c=a.value;c.remove(this)}}catch(S){n={error:S}}finally{try{a&&!a.done&&(t=l.return)&&t.call(l)}finally{if(n)throw n.error}}else s.remove(this);var u=this.initialTeardown;if($e(u))try{u()}catch(S){o=S instanceof ls?S.errors:[S]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var m=yi(p),b=m.next();!b.done;b=m.next()){var k=b.value;try{Ra(k)}catch(S){o=o??[],S instanceof ls?o=Vr(Vr([],cr(o)),cr(S.errors)):o.push(S)}}}catch(S){r={error:S}}finally{try{b&&!b.done&&(i=m.return)&&i.call(m)}finally{if(r)throw r.error}}}if(o)throw new ls(o)}},e.prototype.add=function(n){var t;if(n&&n!==this)if(this.closed)Ra(n);else{if(n instanceof e){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(n)}},e.prototype._hasParent=function(n){var t=this._parentage;return t===n||Array.isArray(t)&&t.includes(n)},e.prototype._addParent=function(n){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n},e.prototype._removeParent=function(n){var t=this._parentage;t===n?this._parentage=null:Array.isArray(t)&&Ml(t,n)},e.prototype.remove=function(n){var t=this._finalizers;t&&Ml(t,n),n instanceof e&&n._removeParent(this)},e.EMPTY=function(){var n=new e;return n.closed=!0,n}(),e}(),tu=Co.EMPTY;function nu(e){return e instanceof Co||e&&"closed"in e&&$e(e.remove)&&$e(e.add)&&$e(e.unsubscribe)}function Ra(e){$e(e)?e():e.unsubscribe()}var Ns={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Ss={setTimeout:function(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var i=Ss.delegate;return i!=null&&i.setTimeout?i.setTimeout.apply(i,Vr([e,n],cr(t))):setTimeout.apply(void 0,Vr([e,n],cr(t)))},clearTimeout:function(e){var n=Ss.delegate;return((n==null?void 0:n.clearTimeout)||clearTimeout)(e)},delegate:void 0};function ru(e){Ss.setTimeout(function(){throw e})}function Cs(){}var ml=null;function Sl(e){if(Ns.useDeprecatedSynchronousErrorHandling){var n=!ml;if(n&&(ml={errorThrown:!1,error:null}),e(),n){var t=ml,r=t.errorThrown,i=t.error;if(ml=null,r)throw i}}else e()}var Rs=function(e){Rn(n,e);function n(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,nu(t)&&t.add(r)):r.destination=Uf,r}return n.create=function(t,r,i){return new Es(t,r,i)},n.prototype.next=function(t){this.isStopped||this._next(t)},n.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},n.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},n.prototype._next=function(t){this.destination.next(t)},n.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},n.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},n}(Co),Wf=Function.prototype.bind;function ss(e,n){return Wf.call(e,n)}var jf=function(){function e(n){this.partialObserver=n}return e.prototype.next=function(n){var t=this.partialObserver;if(t.next)try{t.next(n)}catch(r){gl(r)}},e.prototype.error=function(n){var t=this.partialObserver;if(t.error)try{t.error(n)}catch(r){gl(r)}else gl(n)},e.prototype.complete=function(){var n=this.partialObserver;if(n.complete)try{n.complete()}catch(t){gl(t)}},e}(),Es=function(e){Rn(n,e);function n(t,r,i){var o=e.call(this)||this,s;if($e(t)||!t)s={next:t??void 0,error:r??void 0,complete:i??void 0};else{var l;o&&Ns.useDeprecatedNextContext?(l=Object.create(t),l.unsubscribe=function(){return o.unsubscribe()},s={next:t.next&&ss(t.next,l),error:t.error&&ss(t.error,l),complete:t.complete&&ss(t.complete,l)}):s=t}return o.destination=new jf(s),o}return n}(Rs);function gl(e){ru(e)}function Bf(e){throw e}var Uf={closed:!0,next:Cs,error:Bf,complete:Cs},Vs=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Eo(e){return e}function zf(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return iu(e)}function iu(e){return e.length===0?Eo:e.length===1?e[0]:function(t){return e.reduce(function(r,i){return i(r)},t)}}var Pt=function(){function e(n){n&&(this._subscribe=n)}return e.prototype.lift=function(n){var t=new e;return t.source=this,t.operator=n,t},e.prototype.subscribe=function(n,t,r){var i=this,o=Kf(n)?n:new Es(n,t,r);return Sl(function(){var s=i,l=s.operator,a=s.source;o.add(l?l.call(o,a):a?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(n){try{return this._subscribe(n)}catch(t){n.error(t)}},e.prototype.forEach=function(n,t){var r=this;return t=Va(t),new t(function(i,o){var s=new Es({next:function(l){try{n(l)}catch(a){o(a),s.unsubscribe()}},error:o,complete:i});r.subscribe(s)})},e.prototype._subscribe=function(n){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(n)},e.prototype[Vs]=function(){return this},e.prototype.pipe=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return iu(n)(this)},e.prototype.toPromise=function(n){var t=this;return n=Va(n),new n(function(r,i){var o;t.subscribe(function(s){return o=s},function(s){return i(s)},function(){return r(o)})})},e.create=function(n){return new e(n)},e}();function Va(e){var n;return(n=e??Ns.Promise)!==null&&n!==void 0?n:Promise}function Yf(e){return e&&$e(e.next)&&$e(e.error)&&$e(e.complete)}function Kf(e){return e&&e instanceof Rs||Yf(e)&&nu(e)}function Gf(e){return $e(e==null?void 0:e.lift)}function Cn(e){return function(n){if(Gf(n))return n.lift(function(t){try{return e(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function sn(e,n,t,r,i){return new qf(e,n,t,r,i)}var qf=function(e){Rn(n,e);function n(t,r,i,o,s,l){var a=e.call(this,t)||this;return a.onFinalize=s,a.shouldUnsubscribe=l,a._next=r?function(c){try{r(c)}catch(u){t.error(u)}}:e.prototype._next,a._error=o?function(c){try{o(c)}catch(u){t.error(u)}finally{this.unsubscribe()}}:e.prototype._error,a._complete=i?function(){try{i()}catch(c){t.error(c)}finally{this.unsubscribe()}}:e.prototype._complete,a}return n.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),!r&&((t=this.onFinalize)===null||t===void 0||t.call(this))}},n}(Rs),Xf=eu(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Zi=function(e){Rn(n,e);function n(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return n.prototype.lift=function(t){var r=new Fa(this,this);return r.operator=t,r},n.prototype._throwIfClosed=function(){if(this.closed)throw new Xf},n.prototype.next=function(t){var r=this;Sl(function(){var i,o;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=yi(r.currentObservers),l=s.next();!l.done;l=s.next()){var a=l.value;a.next(t)}}catch(c){i={error:c}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}}})},n.prototype.error=function(t){var r=this;Sl(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var i=r.observers;i.length;)i.shift().error(t)}})},n.prototype.complete=function(){var t=this;Sl(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var r=t.observers;r.length;)r.shift().complete()}})},n.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(n.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),n.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},n.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},n.prototype._innerSubscribe=function(t){var r=this,i=this,o=i.hasError,s=i.isStopped,l=i.observers;return o||s?tu:(this.currentObservers=null,l.push(t),new Co(function(){r.currentObservers=null,Ml(l,t)}))},n.prototype._checkFinalizedStatuses=function(t){var r=this,i=r.hasError,o=r.thrownError,s=r.isStopped;i?t.error(o):s&&t.complete()},n.prototype.asObservable=function(){var t=new Pt;return t.source=this,t},n.create=function(t,r){return new Fa(t,r)},n}(Pt),Fa=function(e){Rn(n,e);function n(t,r){var i=e.call(this)||this;return i.destination=t,i.source=r,i}return n.prototype.next=function(t){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.next)===null||i===void 0||i.call(r,t)},n.prototype.error=function(t){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.error)===null||i===void 0||i.call(r,t)},n.prototype.complete=function(){var t,r;(r=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||r===void 0||r.call(t)},n.prototype._subscribe=function(t){var r,i;return(i=(r=this.source)===null||r===void 0?void 0:r.subscribe(t))!==null&&i!==void 0?i:tu},n}(Zi),Zf=function(e){Rn(n,e);function n(t){var r=e.call(this)||this;return r._value=t,r}return Object.defineProperty(n.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),n.prototype._subscribe=function(t){var r=e.prototype._subscribe.call(this,t);return!r.closed&&t.next(this._value),r},n.prototype.getValue=function(){var t=this,r=t.hasError,i=t.thrownError,o=t._value;if(r)throw i;return this._throwIfClosed(),o},n.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},n}(Zi),ou={now:function(){return(ou.delegate||Date).now()},delegate:void 0},Jf=function(e){Rn(n,e);function n(t,r){return e.call(this)||this}return n.prototype.schedule=function(t,r){return this},n}(Co),$l={setInterval:function(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var i=$l.delegate;return i!=null&&i.setInterval?i.setInterval.apply(i,Vr([e,n],cr(t))):setInterval.apply(void 0,Vr([e,n],cr(t)))},clearInterval:function(e){var n=$l.delegate;return((n==null?void 0:n.clearInterval)||clearInterval)(e)},delegate:void 0},Qf=function(e){Rn(n,e);function n(t,r){var i=e.call(this,t,r)||this;return i.scheduler=t,i.work=r,i.pending=!1,i}return n.prototype.schedule=function(t,r){var i;if(r===void 0&&(r=0),this.closed)return this;this.state=t;var o=this.id,s=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(s,o,r)),this.pending=!0,this.delay=r,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(s,this.id,r),this},n.prototype.requestAsyncId=function(t,r,i){return i===void 0&&(i=0),$l.setInterval(t.flush.bind(t,this),i)},n.prototype.recycleAsyncId=function(t,r,i){if(i===void 0&&(i=0),i!=null&&this.delay===i&&this.pending===!1)return r;r!=null&&$l.clearInterval(r)},n.prototype.execute=function(t,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(t,r);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},n.prototype._execute=function(t,r){var i=!1,o;try{this.work(t)}catch(s){i=!0,o=s||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o},n.prototype.unsubscribe=function(){if(!this.closed){var t=this,r=t.id,i=t.scheduler,o=i.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Ml(o,this),r!=null&&(this.id=this.recycleAsyncId(i,r,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},n}(Jf),Wa=function(){function e(n,t){t===void 0&&(t=e.now),this.schedulerActionCtor=n,this.now=t}return e.prototype.schedule=function(n,t,r){return t===void 0&&(t=0),new this.schedulerActionCtor(this,n).schedule(r,t)},e.now=ou.now,e}(),eh=function(e){Rn(n,e);function n(t,r){r===void 0&&(r=Wa.now);var i=e.call(this,t,r)||this;return i.actions=[],i._active=!1,i}return n.prototype.flush=function(t){var r=this.actions;if(this._active){r.push(t);return}var i;this._active=!0;do if(i=t.execute(t.state,t.delay))break;while(t=r.shift());if(this._active=!1,i){for(;t=r.shift();)t.unsubscribe();throw i}},n}(Wa),Kl=new eh(Qf),th=Kl,nh=new Pt(function(e){return e.complete()});function lu(e){return e&&$e(e.schedule)}function Fs(e){return e[e.length-1]}function rh(e){return $e(Fs(e))?e.pop():void 0}function Gl(e){return lu(Fs(e))?e.pop():void 0}function ih(e,n){return typeof Fs(e)=="number"?e.pop():n}var Ws=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function su(e){return $e(e==null?void 0:e.then)}function au(e){return $e(e[Vs])}function cu(e){return Symbol.asyncIterator&&$e(e==null?void 0:e[Symbol.asyncIterator])}function uu(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function oh(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var fu=oh();function hu(e){return $e(e==null?void 0:e[fu])}function pu(e){return Vf(this,arguments,function(){var t,r,i,o;return Qc(this,function(s){switch(s.label){case 0:t=e.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,vi(t.read())];case 3:return r=s.sent(),i=r.value,o=r.done,o?[4,vi(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,vi(i)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function du(e){return $e(e==null?void 0:e.getReader)}function Vn(e){if(e instanceof Pt)return e;if(e!=null){if(au(e))return lh(e);if(Ws(e))return sh(e);if(su(e))return ah(e);if(cu(e))return mu(e);if(hu(e))return ch(e);if(du(e))return uh(e)}throw uu(e)}function lh(e){return new Pt(function(n){var t=e[Vs]();if($e(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function sh(e){return new Pt(function(n){for(var t=0;t<e.length&&!n.closed;t++)n.next(e[t]);n.complete()})}function ah(e){return new Pt(function(n){e.then(function(t){n.closed||(n.next(t),n.complete())},function(t){return n.error(t)}).then(null,ru)})}function ch(e){return new Pt(function(n){var t,r;try{for(var i=yi(e),o=i.next();!o.done;o=i.next()){var s=o.value;if(n.next(s),n.closed)return}}catch(l){t={error:l}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}n.complete()})}function mu(e){return new Pt(function(n){fh(e,n).catch(function(t){return n.error(t)})})}function uh(e){return mu(pu(e))}function fh(e,n){var t,r,i,o;return Rf(this,void 0,void 0,function(){var s,l;return Qc(this,function(a){switch(a.label){case 0:a.trys.push([0,5,6,11]),t=Ff(e),a.label=1;case 1:return[4,t.next()];case 2:if(r=a.sent(),!!r.done)return[3,4];if(s=r.value,n.next(s),n.closed)return[2];a.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return l=a.sent(),i={error:l},[3,11];case 6:return a.trys.push([6,,9,10]),r&&!r.done&&(o=t.return)?[4,o.call(t)]:[3,8];case 7:a.sent(),a.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return n.complete(),[2]}})})}function In(e,n,t,r,i){r===void 0&&(r=0),i===void 0&&(i=!1);var o=n.schedule(function(){t(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function gu(e,n){return n===void 0&&(n=0),Cn(function(t,r){t.subscribe(sn(r,function(i){return In(r,e,function(){return r.next(i)},n)},function(){return In(r,e,function(){return r.complete()},n)},function(i){return In(r,e,function(){return r.error(i)},n)}))})}function bu(e,n){return n===void 0&&(n=0),Cn(function(t,r){r.add(e.schedule(function(){return t.subscribe(r)},n))})}function hh(e,n){return Vn(e).pipe(bu(n),gu(n))}function ph(e,n){return Vn(e).pipe(bu(n),gu(n))}function dh(e,n){return new Pt(function(t){var r=0;return n.schedule(function(){r===e.length?t.complete():(t.next(e[r++]),t.closed||this.schedule())})})}function mh(e,n){return new Pt(function(t){var r;return In(t,n,function(){r=e[fu](),In(t,n,function(){var i,o,s;try{i=r.next(),o=i.value,s=i.done}catch(l){t.error(l);return}s?t.complete():t.next(o)},0,!0)}),function(){return $e(r==null?void 0:r.return)&&r.return()}})}function vu(e,n){if(!e)throw new Error("Iterable cannot be null");return new Pt(function(t){In(t,n,function(){var r=e[Symbol.asyncIterator]();In(t,n,function(){r.next().then(function(i){i.done?t.complete():t.next(i.value)})},0,!0)})})}function gh(e,n){return vu(pu(e),n)}function bh(e,n){if(e!=null){if(au(e))return hh(e,n);if(Ws(e))return dh(e,n);if(su(e))return ph(e,n);if(cu(e))return vu(e,n);if(hu(e))return mh(e,n);if(du(e))return gh(e,n)}throw uu(e)}function ql(e,n){return n?bh(e,n):Vn(e)}function vh(e){return e instanceof Date&&!isNaN(e)}function Xl(e,n){return Cn(function(t,r){var i=0;t.subscribe(sn(r,function(o){r.next(e.call(n,o,i++))}))})}var _h=Array.isArray;function wh(e,n){return _h(n)?e.apply(void 0,Vr([],cr(n))):e(n)}function _u(e){return Xl(function(n){return wh(e,n)})}var yh=Array.isArray,kh=Object.getPrototypeOf,Sh=Object.prototype,Ch=Object.keys;function Eh(e){if(e.length===1){var n=e[0];if(yh(n))return{args:n,keys:null};if(Lh(n)){var t=Ch(n);return{args:t.map(function(r){return n[r]}),keys:t}}}return{args:e,keys:null}}function Lh(e){return e&&typeof e=="object"&&kh(e)===Sh}function xh(e,n){return e.reduce(function(t,r,i){return t[r]=n[i],t},{})}function Ph(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=Gl(e),r=rh(e),i=Eh(e),o=i.args,s=i.keys;if(o.length===0)return ql([],t);var l=new Pt(Ah(o,t,s?function(a){return xh(s,a)}:Eo));return r?l.pipe(_u(r)):l}function Ah(e,n,t){return t===void 0&&(t=Eo),function(r){ja(n,function(){for(var i=e.length,o=new Array(i),s=i,l=i,a=function(u){ja(n,function(){var p=ql(e[u],n),m=!1;p.subscribe(sn(r,function(b){o[u]=b,m||(m=!0,l--),l||r.next(t(o.slice()))},function(){--s||r.complete()}))},r)},c=0;c<i;c++)a(c)},r)}}function ja(e,n,t){e?In(t,e,n):n()}function Th(e,n,t,r,i,o,s,l){var a=[],c=0,u=0,p=!1,m=function(){p&&!a.length&&!c&&n.complete()},b=function(S){return c<r?k(S):a.push(S)},k=function(S){o&&n.next(S),c++;var V=!1;Vn(t(S,u++)).subscribe(sn(n,function(O){i==null||i(O),o?b(O):n.next(O)},function(){V=!0},void 0,function(){if(V)try{c--;for(var O=function(){var D=a.shift();s?In(n,s,function(){return k(D)}):k(D)};a.length&&c<r;)O();m()}catch(D){n.error(D)}}))};return e.subscribe(sn(n,b,function(){p=!0,m()})),function(){l==null||l()}}function js(e,n,t){return t===void 0&&(t=1/0),$e(n)?js(function(r,i){return Xl(function(o,s){return n(r,o,i,s)})(Vn(e(r,i)))},t):(typeof n=="number"&&(t=n),Cn(function(r,i){return Th(r,i,e,t)}))}function wu(e){return e===void 0&&(e=1/0),js(Eo,e)}function Dh(){return wu(1)}function Ba(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Dh()(ql(e,Gl(e)))}var Oh=["addListener","removeListener"],Ih=["addEventListener","removeEventListener"],Mh=["on","off"];function or(e,n,t,r){if($e(t)&&(r=t,t=void 0),r)return or(e,n,t).pipe(_u(r));var i=cr(Nh(e)?Ih.map(function(l){return function(a){return e[l](n,a,t)}}):$h(e)?Oh.map(Ua(e,n)):Hh(e)?Mh.map(Ua(e,n)):[],2),o=i[0],s=i[1];if(!o&&Ws(e))return js(function(l){return or(l,n,t)})(Vn(e));if(!o)throw new TypeError("Invalid event target");return new Pt(function(l){var a=function(){for(var c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];return l.next(1<c.length?c:c[0])};return o(a),function(){return s(a)}})}function Ua(e,n){return function(t){return function(r){return e[t](n,r)}}}function $h(e){return $e(e.addListener)&&$e(e.removeListener)}function Hh(e){return $e(e.on)&&$e(e.off)}function Nh(e){return $e(e.addEventListener)&&$e(e.removeEventListener)}function yu(e,n,t){e===void 0&&(e=0),t===void 0&&(t=th);var r=-1;return n!=null&&(lu(n)?t=n:r=n),new Pt(function(i){var o=vh(e)?+e-t.now():e;o<0&&(o=0);var s=0;return t.schedule(function(){i.closed||(i.next(s++),0<=r?this.schedule(void 0,r):i.complete())},o)})}function Rh(e,n){return e===void 0&&(e=0),n===void 0&&(n=Kl),e<0&&(e=0),yu(e,e,n)}function Vh(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=Gl(e),r=ih(e,1/0),i=e;return i.length?i.length===1?Vn(i[0]):wu(r)(ql(i,t)):nh}var bo=new Pt(Cs);function Zl(e,n){return Cn(function(t,r){var i=0;t.subscribe(sn(r,function(o){return e.call(n,o,i++)&&r.next(o)}))})}function Bs(e,n){return n===void 0&&(n=Kl),Cn(function(t,r){var i=null,o=null,s=null,l=function(){if(i){i.unsubscribe(),i=null;var c=o;o=null,r.next(c)}};function a(){var c=s+e,u=n.now();if(u<c){i=this.schedule(void 0,c-u),r.add(i);return}l()}t.subscribe(sn(r,function(c){o=c,s=n.now(),i||(i=n.schedule(a,e),r.add(i))},function(){l(),r.complete()},void 0,function(){o=i=null}))})}function Fh(e){return Zl(function(n,t){return e<=t})}function Wh(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=Gl(e);return Cn(function(r,i){(t?Ba(e,r,t):Ba(e,r)).subscribe(i)})}function vo(e,n){return Cn(function(t,r){var i=null,o=0,s=!1,l=function(){return s&&!i&&r.complete()};t.subscribe(sn(r,function(a){i==null||i.unsubscribe();var c=0,u=o++;Vn(e(a,u)).subscribe(i=sn(r,function(p){return r.next(n?n(a,p,u,c++):p)},function(){i=null,l()}))},function(){s=!0,l()}))})}function tr(e,n,t){var r=$e(e)||n||t?{next:e,error:n,complete:t}:e;return r?Cn(function(i,o){var s;(s=r.subscribe)===null||s===void 0||s.call(r);var l=!0;i.subscribe(sn(o,function(a){var c;(c=r.next)===null||c===void 0||c.call(r,a),o.next(a)},function(){var a;l=!1,(a=r.complete)===null||a===void 0||a.call(r),o.complete()},function(a){var c;l=!1,(c=r.error)===null||c===void 0||c.call(r,a),o.error(a)},function(){var a,c;l&&((a=r.unsubscribe)===null||a===void 0||a.call(r)),(c=r.finalize)===null||c===void 0||c.call(r)}))}):Eo}var ku={leading:!0,trailing:!1};function jh(e,n){return n===void 0&&(n=ku),Cn(function(t,r){var i=n.leading,o=n.trailing,s=!1,l=null,a=null,c=!1,u=function(){a==null||a.unsubscribe(),a=null,o&&(b(),c&&r.complete())},p=function(){a=null,c&&r.complete()},m=function(k){return a=Vn(e(k)).subscribe(sn(r,u,p))},b=function(){if(s){s=!1;var k=l;l=null,r.next(k),!c&&m(k)}};t.subscribe(sn(r,function(k){s=!0,l=k,!(a&&!a.closed)&&(i?b():m(k))},function(){c=!0,!(o&&s&&a&&!a.closed)&&r.complete()}))})}function Bh(e,n,t){n===void 0&&(n=Kl),t===void 0&&(t=ku);var r=yu(e,n);return jh(function(){return r},t)}function Uh(e){const n=e-1;return n*n*n+1}function zh(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)}function Su(e,{delay:n=0,duration:t=400,easing:r=Uh,x:i=0,y:o=0,opacity:s=0}={}){const l=getComputedStyle(e),a=+l.opacity,c=l.transform==="none"?"":l.transform,u=a*(1-s);return{delay:n,duration:t,easing:r,css:(p,m)=>`
|
25
25
|
transform: ${c} translate(${(1-p)*i}px, ${(1-p)*o}px);
|
26
|
-
opacity: ${a-
|
27
|
-
`))}return t}function
|
28
|
-
`;function Bh(e){let n,t,r,i;return{c(){n=fs("svg"),t=fs("path"),f(t,"d",e[1]),ge(n,"width",e[2]),ge(n,"height",e[3]),f(n,"viewBox","0 0 24 24"),f(n,"fill","currentColor"),f(n,"class",e[4])},m(o,s){V(o,n,s),u(n,t),e[7](n),r||(i=[P(n,"click",e[5]),P(n,"keyup",e[6])],r=!0)},p(o,[s]){s&2&&f(t,"d",o[1]),s&4&&ge(n,"width",o[2]),s&8&&ge(n,"height",o[3]),s&16&&f(n,"class",o[4])},i:Oe,o:Oe,d(o){o&&R(n),e[7](null),r=!1,Tt(i)}}}function Uh(e,n,t){let{path:r}=n,{width:i="1.5rem"}=n,{height:o="1.5rem"}=n,{element:s=void 0}=n,{class:l=""}=n;function a(p){co.call(this,e,p)}function c(p){co.call(this,e,p)}function h(p){dt[p?"unshift":"push"](()=>{s=p,t(0,s)})}return e.$$set=p=>{"path"in p&&t(1,r=p.path),"width"in p&&t(2,i=p.width),"height"in p&&t(3,o=p.height),"element"in p&&t(0,s=p.element),"class"in p&&t(4,l=p.class)},[s,r,i,o,l,a,c,h]}class ye extends Ut{constructor(n){super(),Bt(this,n,Uh,Bh,wt,{path:1,width:2,height:3,element:0,class:4})}}function Wa(e){let n,t;return n=new ye({props:{path:e[1]}}),{c(){oe(n.$$.fragment)},m(r,i){re(n,r,i),t=!0},p(r,i){const o={};i&2&&(o.path=r[1]),n.$set(o)},i(r){t||(M(n.$$.fragment,r),t=!0)},o(r){j(n.$$.fragment,r),t=!1},d(r){ie(n,r)}}}function zh(e){let n;return{c(){n=gt(e[2])},m(t,r){V(t,n,r)},p(t,r){r&4&&jt(n,t[2])},d(t){t&&R(n)}}}function Yh(e){let n,t=e[5]==="text"&&ja(e);return{c(){n=v("div"),t&&t.c()},m(r,i){V(r,n,i),t&&t.m(n,null)},p(r,i){r[5]==="text"?t?t.p(r,i):(t=ja(r),t.c(),t.m(n,null)):t&&(t.d(1),t=null)},d(r){r&&R(n),t&&t.d()}}}function ja(e){let n,t,r;return{c(){n=v("input"),f(n,"type",e[5]),f(n,"class","input input-bordered h-8 ml-2"),n.value=e[0]},m(i,o){V(i,n,o),t||(r=P(n,"change",e[8]),t=!0)},p(i,o){o&32&&f(n,"type",i[5]),o&1&&n.value!==i[0]&&(n.value=i[0])},d(i){i&&R(n),t=!1,r()}}}function Ba(e){let n,t,r;return{c(){n=v("button"),n.textContent="Cancel",f(n,"class","btn btn-sm btn-ghost")},m(i,o){V(i,n,o),t||(r=P(n,"click",e[9]),t=!0)},p:Oe,d(i){i&&R(n),t=!1,r()}}}function Kh(e){let n,t,r,i,o,s,l,a,c,h,p,d,g=e[1]&&Wa(e);function k(A,T){return A[5]?Yh:zh}let S=k(e),F=S(e),$=e[4]&&Ba(e);return{c(){n=v("div"),t=v("div"),r=v("div"),g&&g.c(),i=w(),o=v("span"),F.c(),s=w(),l=v("div"),$&&$.c(),a=w(),c=v("button"),c.textContent="Confirm",f(c,"class","btn btn-sm btn-primary"),f(l,"class","flex-none"),f(t,"class","alert shadow-lg max-w-xl"),ee(t,"alert-info",e[3]==="info"),ee(t,"alert-error",e[3]==="error"),f(n,"class","fixed top-12 flex justify-center w-full z-30")},m(A,T){V(A,n,T),u(n,t),u(t,r),g&&g.m(r,null),u(r,i),u(r,o),F.m(o,null),u(t,s),u(t,l),$&&$.m(l,null),u(l,a),u(l,c),h=!0,p||(d=P(c,"click",e[10]),p=!0)},p(A,[T]){A[1]?g?(g.p(A,T),T&2&&M(g,1)):(g=Wa(A),g.c(),M(g,1),g.m(r,i)):g&&(lt(),j(g,1,1,()=>{g=null}),st()),S===(S=k(A))&&F?F.p(A,T):(F.d(1),F=S(A),F&&(F.c(),F.m(o,null))),A[4]?$?$.p(A,T):($=Ba(A),$.c(),$.m(l,a)):$&&($.d(1),$=null),(!h||T&8)&&ee(t,"alert-info",A[3]==="info"),(!h||T&8)&&ee(t,"alert-error",A[3]==="error")},i(A){h||(M(g),h=!0)},o(A){j(g),h=!1},d(A){A&&R(n),g&&g.d(),F.d(),$&&$.d(),p=!1,d()}}}function Gh(e,n,t){let{icon:r}=n,{message:i}=n,{type:o="info"}=n,{showCancel:s=!0}=n,{askForData:l=""}=n,{dataValue:a}=n,{callback:c}=n;const h=Fr();function p(k){const S=k.target;t(0,a=S.value)}const d=()=>{c==null||c({canceled:!0,data:a}),h("close")},g=()=>{c==null||c({canceled:!1,data:a}),h("close")};return e.$$set=k=>{"icon"in k&&t(1,r=k.icon),"message"in k&&t(2,i=k.message),"type"in k&&t(3,o=k.type),"showCancel"in k&&t(4,s=k.showCancel),"askForData"in k&&t(5,l=k.askForData),"dataValue"in k&&t(0,a=k.dataValue),"callback"in k&&t(6,c=k.callback)},[a,r,i,o,s,l,c,h,p,d,g]}class qh extends Ut{constructor(n){super(),Bt(this,n,Gh,Kh,wt,{icon:1,message:2,type:3,showCancel:4,askForData:5,dataValue:0,callback:6})}}function Ua(e){let n,t;const r=[e[0]];let i={};for(let o=0;o<r.length;o+=1)i=Fu(i,r[o]);return n=new qh({props:i}),n.$on("close",e[1]),{c(){oe(n.$$.fragment)},m(o,s){re(n,o,s),t=!0},p(o,s){const l=s&1?of(r,[lf(o[0])]):{};n.$set(l)},i(o){t||(M(n.$$.fragment,o),t=!0)},o(o){j(n.$$.fragment,o),t=!1},d(o){ie(n,o)}}}function Xh(e){let n,t,r=e[0]&&Ua(e);return{c(){r&&r.c(),n=$n()},m(i,o){r&&r.m(i,o),V(i,n,o),t=!0},p(i,[o]){i[0]?r?(r.p(i,o),o&1&&M(r,1)):(r=Ua(i),r.c(),M(r,1),r.m(n.parentNode,n)):r&&(lt(),j(r,1,1,()=>{r=null}),st())},i(i){t||(M(r),t=!0)},o(i){j(r),t=!1},d(i){r&&r.d(i),i&&R(n)}}}function Zh(e,n,t){let r;y(e,Tl,a=>t(2,r=a));let i,o=[];const s=je.subscribe(a=>{!a||(a.message.includes("Lost Connection to")||a.message.includes("Unable to connect to"))&&((i==null?void 0:i.message)===a.message||o.find(c=>c.message===a.message))||(o.unshift(a),i||l())});function l(){t(0,i=o.pop()),H(Tl,r=!!i,r)}return $c(()=>s==null?void 0:s.unsubscribe()),[i,l]}class Jh extends Ut{constructor(n){super(),Bt(this,n,Zh,Xh,wt,{})}}function za(e){let n,t,r,i,o;return{c(){n=v("input"),f(n,"type","checkbox"),f(n,"class","multi-line-checkbox svelte-i377rk"),f(n,"id",t="multi-line-checkbox-"+e[0].id),f(n,"aria-label",r=e[0].id)},m(s,l){V(s,n,l),i||(o=P(n,"change",e[16]),i=!0)},p(s,l){l&1&&t!==(t="multi-line-checkbox-"+s[0].id)&&f(n,"id",t),l&1&&r!==(r=s[0].id)&&f(n,"aria-label",r)},d(s){s&&R(n),i=!1,o()}}}function Ya(e){let n,t,r,i,o,s,l,a;return{c(){n=v("div"),t=v("button"),t.textContent="📷",r=w(),i=v("button"),i.textContent="🔊",o=w(),s=v("button"),s.textContent="🌐",f(t,"title","Screenshot"),ge(t,"background-color","#333"),ge(t,"color","#fff"),ge(t,"border","1px solid #555"),ge(t,"padding","6px 10px"),ge(t,"font-size","10px"),ge(t,"border-radius","4px"),ge(t,"cursor","pointer"),ge(t,"transition","background-color 0.3s"),f(t,"tabindex","-1"),f(t,"class","svelte-i377rk"),f(i,"title","Audio"),ge(i,"background-color","#333"),ge(i,"color","#fff"),ge(i,"border","1px solid #555"),ge(i,"padding","6px 10px"),ge(i,"font-size","10px"),ge(i,"border-radius","4px"),ge(i,"cursor","pointer"),ge(i,"transition","background-color 0.3s"),f(i,"tabindex","-1"),f(i,"class","svelte-i377rk"),f(s,"title","Translate"),ge(s,"background-color","#333"),ge(s,"color","#fff"),ge(s,"border","1px solid #555"),ge(s,"padding","6px 10px"),ge(s,"font-size","10px"),ge(s,"border-radius","4px"),ge(s,"cursor","pointer"),ge(s,"transition","background-color 0.3s"),f(s,"tabindex","-1"),f(s,"class","svelte-i377rk"),f(n,"class","textline-buttons unselectable svelte-i377rk")},m(c,h){V(c,n,h),u(n,t),u(n,r),u(n,i),u(n,o),u(n,s),l||(a=[P(t,"click",e[18]),P(i,"click",e[19]),P(s,"click",e[20])],l=!0)},p:Oe,d(c){c&&R(n),l=!1,Tt(a)}}}function Ka(e){let n,t=e[5]&&e[5].includes(e[0].id),r,i,o=e[0].text+"",s,l,a,c=e[5]&&e[5].includes(e[0].id),h,p,d=t&&za(e),g=c&&Ya(e);return{c(){n=v("div"),d&&d.c(),r=w(),i=v("p"),s=gt(o),a=w(),g&&g.c(),f(i,"class","my-2 cursor-pointer border-2 svelte-i377rk"),f(i,"contenteditable",e[3]),ee(i,"py-4",!e[4]),ee(i,"px-2",!e[4]),ee(i,"py-2",e[4]),ee(i,"px-4",e[4]),ee(i,"border-transparent",!e[2]),ee(i,"cursor-text",e[3]),ee(i,"border-primary",e[2]),ee(i,"border-accent-focus",e[3]),ee(i,"whitespace-pre-wrap",e[7]),f(n,"class","textline2 svelte-i377rk")},m(k,S){V(k,n,S),d&&d.m(n,null),u(n,r),u(n,i),u(i,s),e[17](i),u(n,a),g&&g.m(n,null),h||(p=[P(i,"dblclick",e[8]),P(i,"keyup",Wt)],h=!0)},p(k,S){e=k,S&33&&(t=e[5]&&e[5].includes(e[0].id)),t?d?d.p(e,S):(d=za(e),d.c(),d.m(n,r)):d&&(d.d(1),d=null),S&1&&o!==(o=e[0].text+"")&&jt(s,o),S&8&&f(i,"contenteditable",e[3]),S&16&&ee(i,"py-4",!e[4]),S&16&&ee(i,"px-2",!e[4]),S&16&&ee(i,"py-2",e[4]),S&16&&ee(i,"px-4",e[4]),S&4&&ee(i,"border-transparent",!e[2]),S&8&&ee(i,"cursor-text",e[3]),S&4&&ee(i,"border-primary",e[2]),S&8&&ee(i,"border-accent-focus",e[3]),S&128&&ee(i,"whitespace-pre-wrap",e[7]),S&33&&(c=e[5]&&e[5].includes(e[0].id)),c?g?g.p(e,S):(g=Ya(e),g.c(),g.m(n,null)):g&&(g.d(1),g=null)},i(k){l||Mr(()=>{l=Vc(i,mu,{x:e[4]?100:-100,duration:e[6]?250:0}),l.start()})},o:Oe,d(k){k&&R(n),d&&d.d(),e[17](null),g&&g.d(),h=!1,Tt(p)}}}function Qh(e){let n=e[0].text,t,r,i,o=Ka(e);return{c(){o.c(),t=w(),r=new Mc(!1),i=$n(),r.a=i},m(s,l){o.m(s,l),V(s,t,l),r.m(vu,s,l),V(s,i,l)},p(s,[l]){l&1&&wt(n,n=s[0].text)?(lt(),j(o,1,1,Oe),st(),o=Ka(s),o.c(),M(o,1),o.m(t.parentNode,t)):o.p(s,l)},i(s){M(o)},o(s){j(o)},d(s){o.d(s),s&&R(t),s&&R(i),s&&r.d()}}}async function ep(e){try{const n=await fetch("/update_checkbox",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e})});if(!n.ok)throw new Error(`HTTP error! Status: ${n.status}`)}catch(n){console.error("Error updating checkbox:",n)}}function tp(e,n,t){let r,i,o,s,l,a,c,h;y(e,Ze,E=>t(22,i=E)),y(e,ys,E=>t(23,o=E)),y(e,bl,E=>t(5,s=E)),y(e,Wi,E=>t(6,l=E)),y(e,Rr,E=>t(24,a=E)),y(e,Hr,E=>t(15,c=E)),y(e,Mi,E=>t(7,h=E));let{line:p}=n,{index:d}=n,{isLast:g}=n,{pipWindow:k=void 0}=n;function S(){t(2,N=!1)}function F(E){return N||E.intersectsNode(A)?p.id:void 0}const $=Fr();let A,T="",N=!1,K=!1;Rl(()=>{g&&Dl(k||window,A.parentElement.parentElement,a,r,l?"smooth":"auto"),s&&s.includes(p.id)&&o&&W(p.id,"TL")}),$c(()=>{document.removeEventListener("click",U,!1),$("edit",{inEdit:!1})});function G(E){var I;k||((I=window.getSelection())==null||I.removeAllRanges(),E.ctrlKey||E.metaKey?N?(t(2,N=!1),$("deselected",p.id)):(t(2,N=!0),$("selected",p.id)):(T=A.innerText,t(3,K=!0),$("edit",{inEdit:!0}),document.addEventListener("click",U,!1),uo().then(()=>{A.focus()})))}function U(E){const I=E.target;A.contains(I)||(t(3,K=!1),document.removeEventListener("click",U,!1),$("edit",{inEdit:!1,data:{originalText:T,newText:A.innerText,lineIndex:d,line:p}}))}function W(E,I,te=!1){console.log(E);let le={TL:"/translate-line",Screenshot:"/get-screenshot",Audio:"/play-audio"}[I]??"";fetch(le,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:E})}).then(ue=>{if(!ue.ok)throw new Error(`HTTP error! Status: ${ue.status}`);return ue.json()}).then(ue=>{I==="TL"&&(te||t(0,p.text=p.text+`
|
29
|
-
`+ue.TL,p),H(Ze,i[d]=p,i)),console.log(`${I} action completed for event ID: ${E}`,ue)}).catch(ue=>{console.error(`Error performing ${I} action for event ID: ${E}`,ue)})}const x=()=>ep(p.id);function B(E){dt[E?"unshift":"push"](()=>{A=E,t(1,A)})}const Y=()=>W(p.id,"Screenshot"),X=()=>W(p.id,"Audio"),ve=()=>W(p.id,"TL");return e.$$set=E=>{"line"in E&&t(0,p=E.line),"index"in E&&t(10,d=E.index),"isLast"in E&&t(11,g=E.isLast),"pipWindow"in E&&t(12,k=E.pipWindow)},e.$$.update=()=>{e.$$.dirty&36864&&t(4,r=!k&&c)},[p,A,N,K,r,s,l,h,G,W,d,g,k,S,F,c,x,B,Y,X,ve]}class _u extends Ut{constructor(n){super(),Bt(this,n,tp,Qh,wt,{line:0,index:10,isLast:11,pipWindow:12,deselect:13,getIdIfSelected:14})}get deselect(){return this.$$.ctx[13]}get getIdIfSelected(){return this.$$.ctx[14]}}function np(e){let n,t,r,i,o,s,l,a;return r=new ye({props:{path:jc}}),{c(){n=v("div"),t=v("div"),oe(r.$$.fragment),i=w(),o=v("textarea"),f(t,"class","flex cursor-pointer items-end md:items-center"),f(n,"class","flex justify-end p-4"),f(o,"class","flex-1 overflow-auto ml-10 mr-2 mb-4 p-1 pb-2"),ge(o,"resize","none"),o.value=e[0]},m(c,h){V(c,n,h),u(n,t),re(r,t,null),V(c,i,h),V(c,o,h),s=!0,l||(a=[P(t,"click",e[3]),P(t,"keyup",Wt),P(o,"blur",e[2])],l=!0)},p(c,[h]){(!s||h&1)&&(o.value=c[0])},i(c){s||(M(r.$$.fragment,c),s=!0)},o(c){j(r.$$.fragment,c),s=!1},d(c){c&&R(n),ie(r),c&&R(i),c&&R(o),l=!1,Tt(a)}}}function rp(e,n,t){let r,i;y(e,bo,l=>t(0,r=l)),y(e,Al,l=>t(1,i=l));function o(l){H(bo,r=l.target.value,r)}return[r,i,o,()=>H(Al,i=!1,i)]}class ip extends Ut{constructor(n){super(),Bt(this,n,rp,np,wt,{})}}function Ga(e,n,t){const r=e.slice();return r[60]=n[t],r}function qa(e,n,t){const r=e.slice();return r[60]=n[t],r}function op(e){let n,t,r,i,o,s=[],l=new Map,a,c,h,p,d,g,k,S,F,$,A,T,N,K,G,U,W,x,B,Y,X,ve,E,I=e[2].length?e[2]:e[4];const te=Z=>Z[60].name;for(let Z=0;Z<I.length;Z+=1){let le=Ga(e,I,Z),ue=te(le);l.set(ue,s[Z]=Xa(ue,le))}return h=new ye({props:{path:hf}}),S=new ye({props:{path:ds}}),N=new ye({props:{path:yf}}),x=new ye({props:{path:no}}),{c(){n=v("details"),t=v("summary"),t.textContent="Presets",r=w(),i=v("div"),o=v("select");for(let Z=0;Z<s.length;Z+=1)s[Z].c();a=w(),c=v("div"),oe(h.$$.fragment),p=w(),d=v("span"),d.textContent="Save",g=w(),k=v("div"),oe(S.$$.fragment),F=w(),$=v("span"),$.textContent="Export/Import",A=w(),T=v("div"),oe(N.$$.fragment),K=w(),G=v("span"),G.textContent="Reload",U=w(),W=v("div"),oe(x.$$.fragment),B=w(),Y=v("span"),Y.textContent="Delete",f(o,"class","select flex-1 max-w-md"),f(d,"class","label-text"),f(c,"role","button"),f(c,"class","flex flex-col items-center hover:text-primary ml-3"),f($,"class","label-text"),f(k,"role","button"),f(k,"class","flex flex-col items-center hover:text-primary ml-3"),f(G,"class","label-text"),f(T,"role","button"),f(T,"class","flex flex-col items-center hover:text-primary ml-3"),ee(T,"invisible",!e[1]),f(Y,"class","label-text"),f(W,"role","button"),f(W,"class","flex flex-col items-center hover:text-primary ml-3"),ee(W,"invisible",!e[1]),f(i,"class","flex items-center justify-between mt-2"),f(n,"role","button"),f(n,"class","col-span-4 mb-2")},m(Z,le){V(Z,n,le),u(n,t),u(n,r),u(n,i),u(i,o);for(let ue=0;ue<s.length;ue+=1)s[ue].m(o,null);gi(o,e[1]),u(i,a),u(i,c),re(h,c,null),u(c,p),u(c,d),u(i,g),u(i,k),re(S,k,null),u(k,F),u(k,$),u(i,A),u(i,T),re(N,T,null),u(T,K),u(T,G),u(i,U),u(i,W),re(x,W,null),u(W,B),u(W,Y),X=!0,ve||(E=[P(o,"change",e[6]),P(c,"click",e[8]),P(c,"keyup",Wt),P(k,"click",e[12]),P(k,"keyup",Wt),P(T,"click",e[13]),P(T,"keyup",Wt),P(W,"click",e[9]),P(W,"keyup",Wt)],ve=!0)},p(Z,le){le[0]&20&&(I=Z[2].length?Z[2]:Z[4],s=Wr(s,le,te,1,Z,I,l,o,Vl,Xa,null,Ga)),(!X||le[0]&22)&&gi(o,Z[1]),(!X||le[0]&2)&&ee(T,"invisible",!Z[1]),(!X||le[0]&2)&&ee(W,"invisible",!Z[1])},i(Z){X||(M(h.$$.fragment,Z),M(S.$$.fragment,Z),M(N.$$.fragment,Z),M(x.$$.fragment,Z),X=!0)},o(Z){j(h.$$.fragment,Z),j(S.$$.fragment,Z),j(N.$$.fragment,Z),j(x.$$.fragment,Z),X=!1},d(Z){Z&&R(n);for(let le=0;le<s.length;le+=1)s[le].d();ie(h),ie(S),ie(N),ie(x),ve=!1,Tt(E)}}}function lp(e){let n,t=[],r=new Map,i,o,s=e[2].length?e[2]:e[4];const l=a=>a[60].name;for(let a=0;a<s.length;a+=1){let c=qa(e,s,a),h=l(c);r.set(h,t[a]=Za(h,c))}return{c(){n=v("select");for(let a=0;a<t.length;a+=1)t[a].c();f(n,"class","w-48 hidden sm:block"),ee(n,"sm:hidden",!e[3]||e[2].length<2)},m(a,c){V(a,n,c);for(let h=0;h<t.length;h+=1)t[h].m(n,null);gi(n,e[1]),i||(o=P(n,"change",e[6]),i=!0)},p(a,c){c[0]&20&&(s=a[2].length?a[2]:a[4],t=Wr(t,c,l,1,a,s,r,n,Vl,Za,null,qa)),c[0]&22&&gi(n,a[1]),c[0]&12&&ee(n,"sm:hidden",!a[3]||a[2].length<2)},i:Oe,o:Oe,d(a){a&&R(n);for(let c=0;c<t.length;c+=1)t[c].d();i=!1,o()}}}function Xa(e,n){let t,r=(n[60].name||"No Presets stored")+"",i,o,s;return{key:e,first:null,c(){t=v("option"),i=gt(r),o=w(),t.__value=s=n[60].name,t.value=t.__value,this.first=t},m(l,a){V(l,t,a),u(t,i),u(t,o)},p(l,a){n=l,a[0]&4&&r!==(r=(n[60].name||"No Presets stored")+"")&&jt(i,r),a[0]&4&&s!==(s=n[60].name)&&(t.__value=s,t.value=t.__value)},d(l){l&&R(t)}}}function Za(e,n){let t,r=n[60].name+"",i,o,s;return{key:e,first:null,c(){t=v("option"),i=gt(r),o=w(),t.__value=s=n[60].name,t.value=t.__value,this.first=t},m(l,a){V(l,t,a),u(t,i),u(t,o)},p(l,a){n=l,a[0]&4&&r!==(r=n[60].name+"")&&jt(i,r),a[0]&4&&s!==(s=n[60].name)&&(t.__value=s,t.value=t.__value)},d(l){l&&R(t)}}}function sp(e){let n,t,r,i;const o=[lp,op],s=[];function l(a,c){return a[0]?0:1}return n=l(e),t=s[n]=o[n](e),{c(){t.c(),r=$n()},m(a,c){s[n].m(a,c),V(a,r,c),i=!0},p(a,c){let h=n;n=l(a),n===h?s[n].p(a,c):(lt(),j(s[h],1,1,()=>{s[h]=null}),st(),t=s[n],t?t.p(a,c):(t=s[n]=o[n](a),t.c()),M(t,1),t.m(r.parentNode,r))},i(a){i||(M(t),i=!0)},o(a){j(t),i=!1},d(a){s[n].d(a),a&&R(r)}}}function ap(e,n,t){let r,i,o,s,l,a,c,h,p,d,g,k,S,F,$,A,T,N,K,G,U,W,x,B,Y,X,ve,E,I,te,Z,le,ue,Je,rt,Re,yt,Te,Qe,kt,Ie,bt,Be,Ue,me,ze,_e,Ve,ct;y(e,tr,_=>t(1,r=_)),y(e,bn,_=>t(2,i=_)),y(e,je,_=>t(14,o=_)),y(e,wi,_=>t(15,s=_)),y(e,Vr,_=>t(16,l=_)),y(e,Hs,_=>t(17,a=_)),y(e,Ns,_=>t(18,c=_)),y(e,zi,_=>t(19,h=_)),y(e,Ui,_=>t(20,p=_)),y(e,Bi,_=>t(21,d=_)),y(e,ji,_=>t(22,g=_)),y(e,Wi,_=>t(23,k=_)),y(e,Fi,_=>t(24,S=_)),y(e,Vi,_=>t(25,F=_)),y(e,Ri,_=>t(26,$=_)),y(e,Hi,_=>t(27,A=_)),y(e,Ni,_=>t(28,T=_)),y(e,$i,_=>t(29,N=_)),y(e,Mi,_=>t(30,K=_)),y(e,Rr,_=>t(31,G=_)),y(e,Hr,_=>t(32,U=_)),y(e,Ii,_=>t(33,W=_)),y(e,Oi,_=>t(34,x=_)),y(e,Di,_=>t(35,B=_)),y(e,Nr,_=>t(36,Y=_)),y(e,Ti,_=>t(37,X=_)),y(e,Ai,_=>t(38,ve=_)),y(e,Pi,_=>t(39,E=_)),y(e,xi,_=>t(40,I=_)),y(e,Li,_=>t(41,te=_)),y(e,Ei,_=>t(42,Z=_)),y(e,Ci,_=>t(43,le=_)),y(e,Si,_=>t(44,ue=_)),y(e,ki,_=>t(45,Je=_)),y(e,yi,_=>t(46,rt=_)),y(e,go,_=>t(3,Re=_)),y(e,mo,_=>t(47,yt=_)),y(e,_i,_=>t(48,Te=_)),y(e,rr,_=>t(49,Qe=_)),y(e,Or,_=>t(50,kt=_)),y(e,Pr,_=>t(51,Ie=_)),y(e,Dr,_=>t(52,bt=_)),y(e,vi,_=>t(53,Be=_)),y(e,Tr,_=>t(54,Ue=_)),y(e,In,_=>t(55,me=_)),y(e,or,_=>t(56,ze=_)),y(e,po,_=>t(57,_e=_)),y(e,en,_=>t(58,Ve=_)),y(e,Ar,_=>t(59,ct=_));let{isQuickSwitch:ke=!1}=n;function vt(){return{theme$:ct,replacements$:Ve,windowTitle$:_e,websocketUrl$:ze,secondaryWebsocketUrl$:me,fontSize$:Ue,onlineFont$:Be,preventLastDuplicate$:bt,maxLines$:Ie,maxPipLines$:kt,afkTimer$:Qe,adjustTimerOnAfk$:Te,enableExternalClipboardMonitor$:yt,showPresetQuickSwitch$:Re,skipResetConfirmations$:s,persistStats$:rt,persistNotes$:Je,persistLines$:ue,persistActionHistory$:le,enablePaste$:Z,blockCopyOnPage$:te,allowPasteDuringPause$:I,allowNewLineDuringPause$:E,autoStartTimerDuringPausePaste$:ve,autoStartTimerDuringPause$:X,preventGlobalDuplicate$:Y,mergeEqualLineStarts$:B,filterNonCJKLines:x,flashOnMissedLine$:W,displayVertical$:U,reverseLineOrder$:G,preserveWhitespace$:K,removeAllWhitespace$:N,showTimer$:T,showSpeed$:A,showCharacterCount$:$,showLineCount$:F,blurStats$:S,enableLineAnimation$:k,enableAfkBlur$:g,enableAfkBlurRestart$:d,continuousReconnect$:l,showConnectionErrors$:p,customCSS$:h}}function et(_,fe=!0){Ar.next(_.settings.theme$??L.theme$),en.next(_.settings.replacements$??L.replacements$),po.next(_.settings.windowTitle$??L.windowTitle$),or.next(_.settings.websocketUrl$??L.websocketUrl$),In.next(_.settings.secondaryWebsocketUrl$??""),Tr.next(_.settings.fontSize$??L.fontSize$),vi.next(_.settings.onlineFont$??L.onlineFont$),Dr.next(_.settings.preventLastDuplicate$??L.preventLastDuplicate$),Pr.next(_.settings.maxLines$??L.maxLines$),Or.next(_.settings.maxPipLines$??L.maxPipLines$),rr.next(_.settings.afkTimer$??L.afkTimer$),_i.next(_.settings.adjustTimerOnAfk$??L.adjustTimerOnAfk$),mo.next(_.settings.enableExternalClipboardMonitor$??L.enableExternalClipboardMonitor$),go.next(_.settings.showPresetQuickSwitch$??L.showPresetQuickSwitch$),wi.next(_.settings.skipResetConfirmations$??L.skipResetConfirmations$),yi.next(_.settings.persistStats$??L.persistStats$),ki.next(_.settings.persistNotes$??L.persistNotes$),Si.next(_.settings.persistLines$??L.persistLines$),Ci.next(_.settings.persistActionHistory$??L.persistActionHistory$),Ei.next(_.settings.enablePaste$??L.enablePaste$),Li.next(_.settings.blockCopyOnPage$??L.blockCopyOnPage$),xi.next(_.settings.allowPasteDuringPause$??L.allowPasteDuringPause$),Pi.next(_.settings.allowNewLineDuringPause$??L.allowNewLineDuringPause$),Ai.next(_.settings.autoStartTimerDuringPausePaste$??L.autoStartTimerDuringPausePaste$),Ti.next(_.settings.autoStartTimerDuringPause$??L.autoStartTimerDuringPause$),Nr.next(_.settings.preventGlobalDuplicate$??L.preventGlobalDuplicate$),Di.next(_.settings.mergeEqualLineStarts$??L.mergeEqualLineStarts$),Oi.next(_.settings.filterNonCJKLines??L.filterNonCJKLines),Ii.next(_.settings.flashOnMissedLine$??L.flashOnMissedLine$),Hr.next(_.settings.displayVertical$??L.displayVertical$),Rr.next(_.settings.reverseLineOrder$??L.reverseLineOrder$),Mi.next(_.settings.preserveWhitespace$??L.preserveWhitespace$),$i.next(_.settings.removeAllWhitespace$??L.removeAllWhitespace$),Ni.next(_.settings.showTimer$??L.showTimer$),Hi.next(_.settings.showSpeed$??L.showSpeed$),Ri.next(_.settings.showCharacterCount$??L.showCharacterCount$),Vi.next(_.settings.showLineCount$??L.showLineCount$),Fi.next(_.settings.blurStats$??L.blurStats$),Wi.next(_.settings.enableLineAnimation$??L.enableLineAnimation$),ji.next(_.settings.enableAfkBlur$??L.enableAfkBlur$),Bi.next(_.settings.enableAfkBlurRestart$??L.enableAfkBlurRestart$),Vr.next(_.settings.continuousReconnect$??L.continuousReconnect$),Ui.next(_.settings.showConnectionErrors$??L.showConnectionErrors$),zi.next(_.settings.customCSS$??L.customCSS$),fe&&H(tr,r=_.name,r),uo().then(()=>{Se("layoutChange"),c!==1&&l&&Yl.next(),a!==1&&l&&Kl.next()})}const ut=[{name:""}],Se=Fr();function be(_){const fe=_.target;$e(fe.selectedOptions[0].value)}function $e(_){const fe=i.find(Pe=>Pe.name===_);fe&&et(fe)}async function Ee(){const{canceled:_,data:fe}=await new Promise(Fe=>{H(je,o={icon:Xt,askForData:"text",dataValue:r||"Preset Name",message:"",callback:Fe},o)});if(_||!fe)return;const Pe=i.findIndex(Fe=>Fe.name===fe),qe={name:fe,settings:vt()};Pe>-1?H(bn,i[Pe]=qe,i):H(bn,i=[...i,qe],i),H(tr,r=fe,r)}async function we(){if(!s){const{canceled:_}=await new Promise(fe=>{H(je,o={icon:Xt,message:"Preset will be deleted",callback:fe},o)});if(_)return}H(bn,i=i.filter(_=>_.name!==r),i),H(tr,r="",r)}const St=_=>Se("exportImportPreset",_),Dt=()=>$e(r);return e.$$set=_=>{"isQuickSwitch"in _&&t(0,ke=_.isQuickSwitch)},[ke,r,i,Re,ut,Se,be,$e,Ee,we,vt,et,St,Dt]}class wu extends Ut{constructor(n){super(),Bt(this,n,ap,sp,wt,{isQuickSwitch:0,getCurrentSettings:10,updateSettingsWithPreset:11},null,[-1,-1,-1])}get getCurrentSettings(){return this.$$.ctx[10]}get updateSettingsWithPreset(){return this.$$.ctx[11]}}function cp(e,n){const t=r=>{!r.defaultPrevented&&!e.contains(r.target)&&n(r)};return document.addEventListener("click",t,!0),{destroy(){document.removeEventListener("click",t,!0)}}}function Ja(e,n,t){const r=e.slice();return r[22]=n[t],r}function Qa(e){let n,t,r,i,o;return t=new ye({props:{path:mf}}),{c(){n=v("button"),oe(t.$$.fragment),f(n,"title","Save"),f(n,"class","hover:text-primary")},m(s,l){V(s,n,l),re(t,n,null),r=!0,i||(o=P(n,"click",e[10]),i=!0)},p:Oe,i(s){r||(M(t.$$.fragment,s),r=!0)},o(s){j(t.$$.fragment,s),r=!1},d(s){s&&R(n),ie(t),i=!1,o()}}}function ec(e,n){let t,r,i,o=n[22].label+"",s,l,a,c;return{key:e,first:null,c(){t=v("label"),r=v("input"),i=w(),s=gt(o),l=w(),f(r,"type","checkbox"),r.__value=n[22].value,r.value=r.__value,n[18][0].push(r),this.first=t},m(h,p){V(h,t,p),u(t,r),r.checked=~n[0].flags.indexOf(r.__value),u(t,i),u(t,s),u(t,l),a||(c=[P(r,"change",n[17]),P(r,"change",n[9])],a=!0)},p(h,p){n=h,p&1&&(r.checked=~n[0].flags.indexOf(r.__value))},d(h){h&&R(t),n[18][0].splice(n[18][0].indexOf(r),1),a=!1,Tt(c)}}}function up(e){let n=(e[5]??"")+"",t,r,i,o,s,l,a,c,h,p,d,g,k,S,F,$,A=[],T=new Map,N,K,G,U,W=(e[4]||e[3])+"",x,B,Y,X=e[0].pattern&&Qa(e);l=new ye({props:{path:Wc}}),h=new ye({props:{path:gf}});let ve=e[7];const E=I=>I[22].value;for(let I=0;I<ve.length;I+=1){let te=Ja(e,ve,I),Z=E(te);T.set(Z,A[I]=ec(Z,te))}return{c(){t=gt(n),r=w(),i=v("div"),X&&X.c(),o=w(),s=v("button"),oe(l.$$.fragment),a=w(),c=v("button"),oe(h.$$.fragment),p=w(),d=v("div"),g=v("input"),k=w(),S=v("input"),F=w(),$=v("div");for(let I=0;I<A.length;I+=1)A[I].c();N=w(),K=v("textarea"),G=w(),U=v("div"),f(s,"title","Cancel"),f(s,"class","ml-2 hover:text-primary"),f(c,"title","Cancel"),f(c,"class","ml-2 hover:text-primary"),f(i,"class","flex justify-end my-2"),f(g,"placeholder","text pattern"),f(g,"class","w-full my-2"),f(S,"placeholder","replacement pattern"),f(S,"class","w-full my-2"),f($,"class","flex justify-between my-4"),f(K,"name","test-value"),f(K,"placeholder","test value"),f(K,"class","w-full my-4"),f(K,"rows","3"),f(U,"class","whitespace-pre-wrap break-all")},m(I,te){V(I,t,te),V(I,r,te),V(I,i,te),X&&X.m(i,null),u(i,o),u(i,s),re(l,s,null),u(i,a),u(i,c),re(h,c,null),V(I,p,te),V(I,d,te),u(d,g),mt(g,e[0].pattern),e[15](g),u(d,k),u(d,S),mt(S,e[0].replaces),u(d,F),u(d,$);for(let Z=0;Z<A.length;Z+=1)A[Z].m($,null);u(d,N),u(d,K),mt(K,e[2]),u(d,G),u(d,U),U.innerHTML=W,x=!0,B||(Y=[P(s,"click",e[12]),P(c,"click",e[13]),P(g,"input",e[14]),P(g,"input",e[9]),P(S,"input",e[16]),P(S,"input",e[9]),P(K,"input",e[19]),P(K,"input",e[9])],B=!0)},p(I,[te]){(!x||te&32)&&n!==(n=(I[5]??"")+"")&&jt(t,n),I[0].pattern?X?(X.p(I,te),te&1&&M(X,1)):(X=Qa(I),X.c(),M(X,1),X.m(i,o)):X&&(lt(),j(X,1,1,()=>{X=null}),st()),te&1&&g.value!==I[0].pattern&&mt(g,I[0].pattern),te&1&&S.value!==I[0].replaces&&mt(S,I[0].replaces),te&641&&(ve=I[7],A=Wr(A,te,E,1,I,ve,T,$,Vl,ec,null,Ja)),te&4&&mt(K,I[2]),(!x||te&24)&&W!==(W=(I[4]||I[3])+"")&&(U.innerHTML=W)},i(I){x||(M(X),M(l.$$.fragment,I),M(h.$$.fragment,I),x=!0)},o(I){j(X),j(l.$$.fragment,I),j(h.$$.fragment,I),x=!1},d(I){I&&R(t),I&&R(r),I&&R(i),X&&X.d(),ie(l),ie(h),I&&R(p),I&&R(d),e[15](null);for(let te=0;te<A.length;te+=1)A[te].d();B=!1,Tt(Y)}}}function fp(e,n,t){let r,i;y(e,en,x=>t(20,r=x));let{currentReplacement:o}=n;const s=Fr(),l=new Ki,a=o?JSON.parse(JSON.stringify(o)):{pattern:"",replaces:"",flags:[],enabled:!0},c=[{label:"global",value:"g"},{label:"multiline",value:"m"},{label:"insensitive",value:"i"},{label:"unicode",value:"u"}],h=l.pipe($s(500),Xn(()=>{try{if(t(4,k=""),!a.pattern||!d)return;t(3,g=gu(d,[a]))}catch({message:x}){t(4,k=`Error: ${x}`)}}),Jn());y(e,h,x=>t(5,i=x));let p,d="",g="",k="";function S(){p.setCustomValidity(k),l.next()}function F(){if(!o&&r.find(x=>x.pattern===a.pattern))return p.setCustomValidity("This pattern already exists"),p.reportValidity();o?H(en,r=r.map(x=>x.pattern===o.pattern?a:x),r):H(en,r=[...r,a],r),s("close")}const $=[[]],A=()=>s("close"),T=()=>window.open("https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#description","_blank");function N(){a.pattern=this.value,t(0,a)}function K(x){dt[x?"unshift":"push"](()=>{p=x,t(1,p)})}function G(){a.replaces=this.value,t(0,a)}function U(){a.flags=Gu($[0],this.__value,this.checked),t(0,a)}function W(){d=this.value,t(2,d)}return e.$$set=x=>{"currentReplacement"in x&&t(11,o=x.currentReplacement)},[a,p,d,g,k,i,s,c,h,S,F,o,A,T,N,K,G,U,$,W]}class hp extends Ut{constructor(n){super(),Bt(this,n,fp,up,wt,{currentReplacement:11})}}function tc(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function wn(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?tc(Object(t),!0).forEach(function(r){pp(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):tc(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function _l(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_l=function(n){return typeof n}:_l=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_l(e)}function pp(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function yn(){return yn=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},yn.apply(this,arguments)}function dp(e,n){if(e==null)return{};var t={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(n.indexOf(i)>=0)&&(t[i]=e[i]);return t}function mp(e,n){if(e==null)return{};var t=dp(e,n),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(n.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(t[r]=e[r])}return t}var gp="1.15.2";function Mn(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var Rn=Mn(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),ko=Mn(/Edge/i),nc=Mn(/firefox/i),ro=Mn(/safari/i)&&!Mn(/chrome/i)&&!Mn(/android/i),yu=Mn(/iP(ad|od|hone)/i),ku=Mn(/chrome/i)&&Mn(/android/i),Su={capture:!1,passive:!1};function Ae(e,n,t){e.addEventListener(n,t,!Rn&&Su)}function Ce(e,n,t){e.removeEventListener(n,t,!Rn&&Su)}function Ol(e,n){if(n){if(n[0]===">"&&(n=n.substring(1)),e)try{if(e.matches)return e.matches(n);if(e.msMatchesSelector)return e.msMatchesSelector(n);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(n)}catch{return!1}return!1}}function bp(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function an(e,n,t,r){if(e){t=t||document;do{if(n!=null&&(n[0]===">"?e.parentNode===t&&Ol(e,n):Ol(e,n))||r&&e===t)return e;if(e===t)break}while(e=bp(e))}return null}var rc=/\s+/g;function Pt(e,n,t){if(e&&n)if(e.classList)e.classList[t?"add":"remove"](n);else{var r=(" "+e.className+" ").replace(rc," ").replace(" "+n+" "," ");e.className=(r+(t?" "+n:"")).replace(rc," ")}}function ce(e,n,t){var r=e&&e.style;if(r){if(t===void 0)return document.defaultView&&document.defaultView.getComputedStyle?t=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(t=e.currentStyle),n===void 0?t:t[n];!(n in r)&&n.indexOf("webkit")===-1&&(n="-webkit-"+n),r[n]=t+(typeof t=="string"?"":"px")}}function mi(e,n){var t="";if(typeof e=="string")t=e;else do{var r=ce(e,"transform");r&&r!=="none"&&(t=r+" "+t)}while(!n&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(t)}function Cu(e,n,t){if(e){var r=e.getElementsByTagName(n),i=0,o=r.length;if(t)for(;i<o;i++)t(r[i],i);return r}return[]}function _n(){var e=document.scrollingElement;return e||document.documentElement}function at(e,n,t,r,i){if(!(!e.getBoundingClientRect&&e!==window)){var o,s,l,a,c,h,p;if(e!==window&&e.parentNode&&e!==_n()?(o=e.getBoundingClientRect(),s=o.top,l=o.left,a=o.bottom,c=o.right,h=o.height,p=o.width):(s=0,l=0,a=window.innerHeight,c=window.innerWidth,h=window.innerHeight,p=window.innerWidth),(n||t)&&e!==window&&(i=i||e.parentNode,!Rn))do if(i&&i.getBoundingClientRect&&(ce(i,"transform")!=="none"||t&&ce(i,"position")!=="static")){var d=i.getBoundingClientRect();s-=d.top+parseInt(ce(i,"border-top-width")),l-=d.left+parseInt(ce(i,"border-left-width")),a=s+o.height,c=l+o.width;break}while(i=i.parentNode);if(r&&e!==window){var g=mi(i||e),k=g&&g.a,S=g&&g.d;g&&(s/=S,l/=k,p/=k,h/=S,a=s+h,c=l+p)}return{top:s,left:l,bottom:a,right:c,width:p,height:h}}}function ic(e,n,t){for(var r=nr(e,!0),i=at(e)[n];r;){var o=at(r)[t],s=void 0;if(t==="top"||t==="left"?s=i>=o:s=i<=o,!s)return r;if(r===_n())break;r=nr(r,!1)}return!1}function Yi(e,n,t,r){for(var i=0,o=0,s=e.children;o<s.length;){if(s[o].style.display!=="none"&&s[o]!==ae.ghost&&(r||s[o]!==ae.dragged)&&an(s[o],t.draggable,e,!1)){if(i===n)return s[o];i++}o++}return null}function Rs(e,n){for(var t=e.lastElementChild;t&&(t===ae.ghost||ce(t,"display")==="none"||n&&!Ol(t,n));)t=t.previousElementSibling;return t||null}function Ft(e,n){var t=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==ae.clone&&(!n||Ol(e,n))&&t++;return t}function oc(e){var n=0,t=0,r=_n();if(e)do{var i=mi(e),o=i.a,s=i.d;n+=e.scrollLeft*o,t+=e.scrollTop*s}while(e!==r&&(e=e.parentNode));return[n,t]}function vp(e,n){for(var t in e)if(e.hasOwnProperty(t)){for(var r in n)if(n.hasOwnProperty(r)&&n[r]===e[t][r])return Number(t)}return-1}function nr(e,n){if(!e||!e.getBoundingClientRect)return _n();var t=e,r=!1;do if(t.clientWidth<t.scrollWidth||t.clientHeight<t.scrollHeight){var i=ce(t);if(t.clientWidth<t.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||t.clientHeight<t.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!t.getBoundingClientRect||t===document.body)return _n();if(r||n)return t;r=!0}}while(t=t.parentNode);return _n()}function _p(e,n){if(e&&n)for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e}function ts(e,n){return Math.round(e.top)===Math.round(n.top)&&Math.round(e.left)===Math.round(n.left)&&Math.round(e.height)===Math.round(n.height)&&Math.round(e.width)===Math.round(n.width)}var io;function Eu(e,n){return function(){if(!io){var t=arguments,r=this;t.length===1?e.call(r,t[0]):e.apply(r,t),io=setTimeout(function(){io=void 0},n)}}}function wp(){clearTimeout(io),io=void 0}function Lu(e,n,t){e.scrollLeft+=n,e.scrollTop+=t}function xu(e){var n=window.Polymer,t=window.jQuery||window.Zepto;return n&&n.dom?n.dom(e).cloneNode(!0):t?t(e).clone(!0)[0]:e.cloneNode(!0)}function Pu(e,n,t){var r={};return Array.from(e.children).forEach(function(i){var o,s,l,a;if(!(!an(i,n.draggable,e,!1)||i.animated||i===t)){var c=at(i);r.left=Math.min((o=r.left)!==null&&o!==void 0?o:1/0,c.left),r.top=Math.min((s=r.top)!==null&&s!==void 0?s:1/0,c.top),r.right=Math.max((l=r.right)!==null&&l!==void 0?l:-1/0,c.right),r.bottom=Math.max((a=r.bottom)!==null&&a!==void 0?a:-1/0,c.bottom)}}),r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}var Gt="Sortable"+new Date().getTime();function yp(){var e=[],n;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(i){if(!(ce(i,"display")==="none"||i===ae.ghost)){e.push({target:i,rect:at(i)});var o=wn({},e[e.length-1].rect);if(i.thisAnimationDuration){var s=mi(i,!0);s&&(o.top-=s.f,o.left-=s.e)}i.fromRect=o}})}},addAnimationState:function(r){e.push(r)},removeAnimationState:function(r){e.splice(vp(e,{target:r}),1)},animateAll:function(r){var i=this;if(!this.options.animation){clearTimeout(n),typeof r=="function"&&r();return}var o=!1,s=0;e.forEach(function(l){var a=0,c=l.target,h=c.fromRect,p=at(c),d=c.prevFromRect,g=c.prevToRect,k=l.rect,S=mi(c,!0);S&&(p.top-=S.f,p.left-=S.e),c.toRect=p,c.thisAnimationDuration&&ts(d,p)&&!ts(h,p)&&(k.top-p.top)/(k.left-p.left)===(h.top-p.top)/(h.left-p.left)&&(a=Sp(k,d,g,i.options)),ts(p,h)||(c.prevFromRect=h,c.prevToRect=p,a||(a=i.options.animation),i.animate(c,k,p,a)),a&&(o=!0,s=Math.max(s,a),clearTimeout(c.animationResetTimer),c.animationResetTimer=setTimeout(function(){c.animationTime=0,c.prevFromRect=null,c.fromRect=null,c.prevToRect=null,c.thisAnimationDuration=null},a),c.thisAnimationDuration=a)}),clearTimeout(n),o?n=setTimeout(function(){typeof r=="function"&&r()},s):typeof r=="function"&&r(),e=[]},animate:function(r,i,o,s){if(s){ce(r,"transition",""),ce(r,"transform","");var l=mi(this.el),a=l&&l.a,c=l&&l.d,h=(i.left-o.left)/(a||1),p=(i.top-o.top)/(c||1);r.animatingX=!!h,r.animatingY=!!p,ce(r,"transform","translate3d("+h+"px,"+p+"px,0)"),this.forRepaintDummy=kp(r),ce(r,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),ce(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){ce(r,"transition",""),ce(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},s)}}}}function kp(e){return e.offsetWidth}function Sp(e,n,t,r){return Math.sqrt(Math.pow(n.top-e.top,2)+Math.pow(n.left-e.left,2))/Math.sqrt(Math.pow(n.top-t.top,2)+Math.pow(n.left-t.left,2))*r.animation}var ci=[],ns={initializeByDefault:!0},So={mount:function(n){for(var t in ns)ns.hasOwnProperty(t)&&!(t in n)&&(n[t]=ns[t]);ci.forEach(function(r){if(r.pluginName===n.pluginName)throw"Sortable: Cannot mount plugin ".concat(n.pluginName," more than once")}),ci.push(n)},pluginEvent:function(n,t,r){var i=this;this.eventCanceled=!1,r.cancel=function(){i.eventCanceled=!0};var o=n+"Global";ci.forEach(function(s){t[s.pluginName]&&(t[s.pluginName][o]&&t[s.pluginName][o](wn({sortable:t},r)),t.options[s.pluginName]&&t[s.pluginName][n]&&t[s.pluginName][n](wn({sortable:t},r)))})},initializePlugins:function(n,t,r,i){ci.forEach(function(l){var a=l.pluginName;if(!(!n.options[a]&&!l.initializeByDefault)){var c=new l(n,t,n.options);c.sortable=n,c.options=n.options,n[a]=c,yn(r,c.defaults)}});for(var o in n.options)if(n.options.hasOwnProperty(o)){var s=this.modifyOption(n,o,n.options[o]);typeof s<"u"&&(n.options[o]=s)}},getEventProperties:function(n,t){var r={};return ci.forEach(function(i){typeof i.eventProperties=="function"&&yn(r,i.eventProperties.call(t[i.pluginName],n))}),r},modifyOption:function(n,t,r){var i;return ci.forEach(function(o){n[o.pluginName]&&o.optionListeners&&typeof o.optionListeners[t]=="function"&&(i=o.optionListeners[t].call(n[o.pluginName],r))}),i}};function Cp(e){var n=e.sortable,t=e.rootEl,r=e.name,i=e.targetEl,o=e.cloneEl,s=e.toEl,l=e.fromEl,a=e.oldIndex,c=e.newIndex,h=e.oldDraggableIndex,p=e.newDraggableIndex,d=e.originalEvent,g=e.putSortable,k=e.extraEventProperties;if(n=n||t&&t[Gt],!!n){var S,F=n.options,$="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!Rn&&!ko?S=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(S=document.createEvent("Event"),S.initEvent(r,!0,!0)),S.to=s||t,S.from=l||t,S.item=i||t,S.clone=o,S.oldIndex=a,S.newIndex=c,S.oldDraggableIndex=h,S.newDraggableIndex=p,S.originalEvent=d,S.pullMode=g?g.lastPutMode:void 0;var A=wn(wn({},k),So.getEventProperties(r,n));for(var T in A)S[T]=A[T];t&&t.dispatchEvent(S),F[$]&&F[$].call(n,S)}}var Ep=["evt"],Vt=function(n,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=r.evt,o=mp(r,Ep);So.pluginEvent.bind(ae)(n,t,wn({dragEl:z,parentEl:Xe,ghostEl:pe,rootEl:Ye,nextEl:Lr,lastDownEl:wl,cloneEl:Ge,cloneHidden:Qn,dragStarted:Ji,putSortable:_t,activeSortable:ae.active,originalEvent:i,oldIndex:hi,oldDraggableIndex:oo,newIndex:Yt,newDraggableIndex:qn,hideGhostForTarget:Ou,unhideGhostForTarget:Iu,cloneNowHidden:function(){Qn=!0},cloneNowShown:function(){Qn=!1},dispatchSortableEvent:function(l){Mt({sortable:t,name:l,originalEvent:i})}},o))};function Mt(e){Cp(wn({putSortable:_t,cloneEl:Ge,targetEl:z,rootEl:Ye,oldIndex:hi,oldDraggableIndex:oo,newIndex:Yt,newDraggableIndex:qn},e))}var z,Xe,pe,Ye,Lr,wl,Ge,Qn,hi,Yt,oo,qn,ul,_t,fi=!1,Il=!1,Ml=[],Cr,sn,rs,is,lc,sc,Ji,ui,lo,so=!1,fl=!1,yl,xt,os=[],ks=!1,$l=[],Gl=typeof document<"u",hl=yu,ac=ko||Rn?"cssFloat":"float",Lp=Gl&&!ku&&!yu&&"draggable"in document.createElement("div"),Au=function(){if(Gl){if(Rn)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),Tu=function(n,t){var r=ce(n),i=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),o=Yi(n,0,t),s=Yi(n,1,t),l=o&&ce(o),a=s&&ce(s),c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+at(o).width,h=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+at(s).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&l.float&&l.float!=="none"){var p=l.float==="left"?"left":"right";return s&&(a.clear==="both"||a.clear===p)?"vertical":"horizontal"}return o&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||c>=i&&r[ac]==="none"||s&&r[ac]==="none"&&c+h>i)?"vertical":"horizontal"},xp=function(n,t,r){var i=r?n.left:n.top,o=r?n.right:n.bottom,s=r?n.width:n.height,l=r?t.left:t.top,a=r?t.right:t.bottom,c=r?t.width:t.height;return i===l||o===a||i+s/2===l+c/2},Pp=function(n,t){var r;return Ml.some(function(i){var o=i[Gt].options.emptyInsertThreshold;if(!(!o||Rs(i))){var s=at(i),l=n>=s.left-o&&n<=s.right+o,a=t>=s.top-o&&t<=s.bottom+o;if(l&&a)return r=i}}),r},Du=function(n){function t(o,s){return function(l,a,c,h){var p=l.options.group.name&&a.options.group.name&&l.options.group.name===a.options.group.name;if(o==null&&(s||p))return!0;if(o==null||o===!1)return!1;if(s&&o==="clone")return o;if(typeof o=="function")return t(o(l,a,c,h),s)(l,a,c,h);var d=(s?l:a).options.group.name;return o===!0||typeof o=="string"&&o===d||o.join&&o.indexOf(d)>-1}}var r={},i=n.group;(!i||_l(i)!="object")&&(i={name:i}),r.name=i.name,r.checkPull=t(i.pull,!0),r.checkPut=t(i.put),r.revertClone=i.revertClone,n.group=r},Ou=function(){!Au&&pe&&ce(pe,"display","none")},Iu=function(){!Au&&pe&&ce(pe,"display","")};Gl&&!ku&&document.addEventListener("click",function(e){if(Il)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Il=!1,!1},!0);var Er=function(n){if(z){n=n.touches?n.touches[0]:n;var t=Pp(n.clientX,n.clientY);if(t){var r={};for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i]);r.target=r.rootEl=t,r.preventDefault=void 0,r.stopPropagation=void 0,t[Gt]._onDragOver(r)}}},Ap=function(n){z&&z.parentNode[Gt]._isOutsideThisEl(n.target)};function ae(e,n){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=n=yn({},n),e[Gt]=this;var t={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Tu(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,l){s.setData("Text",l.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:ae.supportPointer!==!1&&"PointerEvent"in window&&!ro,emptyInsertThreshold:5};So.initializePlugins(this,e,t);for(var r in t)!(r in n)&&(n[r]=t[r]);Du(n);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=n.forceFallback?!1:Lp,this.nativeDraggable&&(this.options.touchStartThreshold=1),n.supportPointer?Ae(e,"pointerdown",this._onTapStart):(Ae(e,"mousedown",this._onTapStart),Ae(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(Ae(e,"dragover",this),Ae(e,"dragenter",this)),Ml.push(this.el),n.store&&n.store.get&&this.sort(n.store.get(this)||[]),yn(this,yp())}ae.prototype={constructor:ae,_isOutsideThisEl:function(n){!this.el.contains(n)&&n!==this.el&&(ui=null)},_getDirection:function(n,t){return typeof this.options.direction=="function"?this.options.direction.call(this,n,t,z):this.options.direction},_onTapStart:function(n){if(n.cancelable){var t=this,r=this.el,i=this.options,o=i.preventOnFilter,s=n.type,l=n.touches&&n.touches[0]||n.pointerType&&n.pointerType==="touch"&&n,a=(l||n).target,c=n.target.shadowRoot&&(n.path&&n.path[0]||n.composedPath&&n.composedPath()[0])||a,h=i.filter;if(Hp(r),!z&&!(/mousedown|pointerdown/.test(s)&&n.button!==0||i.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&ro&&a&&a.tagName.toUpperCase()==="SELECT")&&(a=an(a,i.draggable,r,!1),!(a&&a.animated)&&wl!==a)){if(hi=Ft(a),oo=Ft(a,i.draggable),typeof h=="function"){if(h.call(this,n,a,this)){Mt({sortable:t,rootEl:c,name:"filter",targetEl:a,toEl:r,fromEl:r}),Vt("filter",t,{evt:n}),o&&n.cancelable&&n.preventDefault();return}}else if(h&&(h=h.split(",").some(function(p){if(p=an(c,p.trim(),r,!1),p)return Mt({sortable:t,rootEl:p,name:"filter",targetEl:a,fromEl:r,toEl:r}),Vt("filter",t,{evt:n}),!0}),h)){o&&n.cancelable&&n.preventDefault();return}i.handle&&!an(c,i.handle,r,!1)||this._prepareDragStart(n,l,a)}}},_prepareDragStart:function(n,t,r){var i=this,o=i.el,s=i.options,l=o.ownerDocument,a;if(r&&!z&&r.parentNode===o){var c=at(r);if(Ye=o,z=r,Xe=z.parentNode,Lr=z.nextSibling,wl=r,ul=s.group,ae.dragged=z,Cr={target:z,clientX:(t||n).clientX,clientY:(t||n).clientY},lc=Cr.clientX-c.left,sc=Cr.clientY-c.top,this._lastX=(t||n).clientX,this._lastY=(t||n).clientY,z.style["will-change"]="all",a=function(){if(Vt("delayEnded",i,{evt:n}),ae.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!nc&&i.nativeDraggable&&(z.draggable=!0),i._triggerDragStart(n,t),Mt({sortable:i,name:"choose",originalEvent:n}),Pt(z,s.chosenClass,!0)},s.ignore.split(",").forEach(function(h){Cu(z,h.trim(),ls)}),Ae(l,"dragover",Er),Ae(l,"mousemove",Er),Ae(l,"touchmove",Er),Ae(l,"mouseup",i._onDrop),Ae(l,"touchend",i._onDrop),Ae(l,"touchcancel",i._onDrop),nc&&this.nativeDraggable&&(this.options.touchStartThreshold=4,z.draggable=!0),Vt("delayStart",this,{evt:n}),s.delay&&(!s.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(ko||Rn))){if(ae.eventCanceled){this._onDrop();return}Ae(l,"mouseup",i._disableDelayedDrag),Ae(l,"touchend",i._disableDelayedDrag),Ae(l,"touchcancel",i._disableDelayedDrag),Ae(l,"mousemove",i._delayedDragTouchMoveHandler),Ae(l,"touchmove",i._delayedDragTouchMoveHandler),s.supportPointer&&Ae(l,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(a,s.delay)}else a()}},_delayedDragTouchMoveHandler:function(n){var t=n.touches?n.touches[0]:n;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){z&&ls(z),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var n=this.el.ownerDocument;Ce(n,"mouseup",this._disableDelayedDrag),Ce(n,"touchend",this._disableDelayedDrag),Ce(n,"touchcancel",this._disableDelayedDrag),Ce(n,"mousemove",this._delayedDragTouchMoveHandler),Ce(n,"touchmove",this._delayedDragTouchMoveHandler),Ce(n,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(n,t){t=t||n.pointerType=="touch"&&n,!this.nativeDraggable||t?this.options.supportPointer?Ae(document,"pointermove",this._onTouchMove):t?Ae(document,"touchmove",this._onTouchMove):Ae(document,"mousemove",this._onTouchMove):(Ae(z,"dragend",this),Ae(Ye,"dragstart",this._onDragStart));try{document.selection?kl(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(n,t){if(fi=!1,Ye&&z){Vt("dragStarted",this,{evt:t}),this.nativeDraggable&&Ae(document,"dragover",Ap);var r=this.options;!n&&Pt(z,r.dragClass,!1),Pt(z,r.ghostClass,!0),ae.active=this,n&&this._appendGhost(),Mt({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(sn){this._lastX=sn.clientX,this._lastY=sn.clientY,Ou();for(var n=document.elementFromPoint(sn.clientX,sn.clientY),t=n;n&&n.shadowRoot&&(n=n.shadowRoot.elementFromPoint(sn.clientX,sn.clientY),n!==t);)t=n;if(z.parentNode[Gt]._isOutsideThisEl(n),t)do{if(t[Gt]){var r=void 0;if(r=t[Gt]._onDragOver({clientX:sn.clientX,clientY:sn.clientY,target:n,rootEl:t}),r&&!this.options.dragoverBubble)break}n=t}while(t=t.parentNode);Iu()}},_onTouchMove:function(n){if(Cr){var t=this.options,r=t.fallbackTolerance,i=t.fallbackOffset,o=n.touches?n.touches[0]:n,s=pe&&mi(pe,!0),l=pe&&s&&s.a,a=pe&&s&&s.d,c=hl&&xt&&oc(xt),h=(o.clientX-Cr.clientX+i.x)/(l||1)+(c?c[0]-os[0]:0)/(l||1),p=(o.clientY-Cr.clientY+i.y)/(a||1)+(c?c[1]-os[1]:0)/(a||1);if(!ae.active&&!fi){if(r&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<r)return;this._onDragStart(n,!0)}if(pe){s?(s.e+=h-(rs||0),s.f+=p-(is||0)):s={a:1,b:0,c:0,d:1,e:h,f:p};var d="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");ce(pe,"webkitTransform",d),ce(pe,"mozTransform",d),ce(pe,"msTransform",d),ce(pe,"transform",d),rs=h,is=p,sn=o}n.cancelable&&n.preventDefault()}},_appendGhost:function(){if(!pe){var n=this.options.fallbackOnBody?document.body:Ye,t=at(z,!0,hl,!0,n),r=this.options;if(hl){for(xt=n;ce(xt,"position")==="static"&&ce(xt,"transform")==="none"&&xt!==document;)xt=xt.parentNode;xt!==document.body&&xt!==document.documentElement?(xt===document&&(xt=_n()),t.top+=xt.scrollTop,t.left+=xt.scrollLeft):xt=_n(),os=oc(xt)}pe=z.cloneNode(!0),Pt(pe,r.ghostClass,!1),Pt(pe,r.fallbackClass,!0),Pt(pe,r.dragClass,!0),ce(pe,"transition",""),ce(pe,"transform",""),ce(pe,"box-sizing","border-box"),ce(pe,"margin",0),ce(pe,"top",t.top),ce(pe,"left",t.left),ce(pe,"width",t.width),ce(pe,"height",t.height),ce(pe,"opacity","0.8"),ce(pe,"position",hl?"absolute":"fixed"),ce(pe,"zIndex","100000"),ce(pe,"pointerEvents","none"),ae.ghost=pe,n.appendChild(pe),ce(pe,"transform-origin",lc/parseInt(pe.style.width)*100+"% "+sc/parseInt(pe.style.height)*100+"%")}},_onDragStart:function(n,t){var r=this,i=n.dataTransfer,o=r.options;if(Vt("dragStart",this,{evt:n}),ae.eventCanceled){this._onDrop();return}Vt("setupClone",this),ae.eventCanceled||(Ge=xu(z),Ge.removeAttribute("id"),Ge.draggable=!1,Ge.style["will-change"]="",this._hideClone(),Pt(Ge,this.options.chosenClass,!1),ae.clone=Ge),r.cloneId=kl(function(){Vt("clone",r),!ae.eventCanceled&&(r.options.removeCloneOnHide||Ye.insertBefore(Ge,z),r._hideClone(),Mt({sortable:r,name:"clone"}))}),!t&&Pt(z,o.dragClass,!0),t?(Il=!0,r._loopId=setInterval(r._emulateDragOver,50)):(Ce(document,"mouseup",r._onDrop),Ce(document,"touchend",r._onDrop),Ce(document,"touchcancel",r._onDrop),i&&(i.effectAllowed="move",o.setData&&o.setData.call(r,i,z)),Ae(document,"drop",r),ce(z,"transform","translateZ(0)")),fi=!0,r._dragStartId=kl(r._dragStarted.bind(r,t,n)),Ae(document,"selectstart",r),Ji=!0,ro&&ce(document.body,"user-select","none")},_onDragOver:function(n){var t=this.el,r=n.target,i,o,s,l=this.options,a=l.group,c=ae.active,h=ul===a,p=l.sort,d=_t||c,g,k=this,S=!1;if(ks)return;function F(le,ue){Vt(le,k,wn({evt:n,isOwner:h,axis:g?"vertical":"horizontal",revert:s,dragRect:i,targetRect:o,canSort:p,fromSortable:d,target:r,completed:A,onMove:function(rt,Re){return pl(Ye,t,z,i,rt,at(rt),n,Re)},changed:T},ue))}function $(){F("dragOverAnimationCapture"),k.captureAnimationState(),k!==d&&d.captureAnimationState()}function A(le){return F("dragOverCompleted",{insertion:le}),le&&(h?c._hideClone():c._showClone(k),k!==d&&(Pt(z,_t?_t.options.ghostClass:c.options.ghostClass,!1),Pt(z,l.ghostClass,!0)),_t!==k&&k!==ae.active?_t=k:k===ae.active&&_t&&(_t=null),d===k&&(k._ignoreWhileAnimating=r),k.animateAll(function(){F("dragOverAnimationComplete"),k._ignoreWhileAnimating=null}),k!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(r===z&&!z.animated||r===t&&!r.animated)&&(ui=null),!l.dragoverBubble&&!n.rootEl&&r!==document&&(z.parentNode[Gt]._isOutsideThisEl(n.target),!le&&Er(n)),!l.dragoverBubble&&n.stopPropagation&&n.stopPropagation(),S=!0}function T(){Yt=Ft(z),qn=Ft(z,l.draggable),Mt({sortable:k,name:"change",toEl:t,newIndex:Yt,newDraggableIndex:qn,originalEvent:n})}if(n.preventDefault!==void 0&&n.cancelable&&n.preventDefault(),r=an(r,l.draggable,t,!0),F("dragOver"),ae.eventCanceled)return S;if(z.contains(n.target)||r.animated&&r.animatingX&&r.animatingY||k._ignoreWhileAnimating===r)return A(!1);if(Il=!1,c&&!l.disabled&&(h?p||(s=Xe!==Ye):_t===this||(this.lastPutMode=ul.checkPull(this,c,z,n))&&a.checkPut(this,c,z,n))){if(g=this._getDirection(n,r)==="vertical",i=at(z),F("dragOverValid"),ae.eventCanceled)return S;if(s)return Xe=Ye,$(),this._hideClone(),F("revert"),ae.eventCanceled||(Lr?Ye.insertBefore(z,Lr):Ye.appendChild(z)),A(!0);var N=Rs(t,l.draggable);if(!N||Ip(n,g,this)&&!N.animated){if(N===z)return A(!1);if(N&&t===n.target&&(r=N),r&&(o=at(r)),pl(Ye,t,z,i,r,o,n,!!r)!==!1)return $(),N&&N.nextSibling?t.insertBefore(z,N.nextSibling):t.appendChild(z),Xe=t,T(),A(!0)}else if(N&&Op(n,g,this)){var K=Yi(t,0,l,!0);if(K===z)return A(!1);if(r=K,o=at(r),pl(Ye,t,z,i,r,o,n,!1)!==!1)return $(),t.insertBefore(z,K),Xe=t,T(),A(!0)}else if(r.parentNode===t){o=at(r);var G=0,U,W=z.parentNode!==t,x=!xp(z.animated&&z.toRect||i,r.animated&&r.toRect||o,g),B=g?"top":"left",Y=ic(r,"top","top")||ic(z,"top","top"),X=Y?Y.scrollTop:void 0;ui!==r&&(U=o[B],so=!1,fl=!x&&l.invertSwap||W),G=Mp(n,r,o,g,x?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,fl,ui===r);var ve;if(G!==0){var E=Ft(z);do E-=G,ve=Xe.children[E];while(ve&&(ce(ve,"display")==="none"||ve===pe))}if(G===0||ve===r)return A(!1);ui=r,lo=G;var I=r.nextElementSibling,te=!1;te=G===1;var Z=pl(Ye,t,z,i,r,o,n,te);if(Z!==!1)return(Z===1||Z===-1)&&(te=Z===1),ks=!0,setTimeout(Dp,30),$(),te&&!I?t.appendChild(z):r.parentNode.insertBefore(z,te?I:r),Y&&Lu(Y,0,X-Y.scrollTop),Xe=z.parentNode,U!==void 0&&!fl&&(yl=Math.abs(U-at(r)[B])),T(),A(!0)}if(t.contains(z))return A(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Ce(document,"mousemove",this._onTouchMove),Ce(document,"touchmove",this._onTouchMove),Ce(document,"pointermove",this._onTouchMove),Ce(document,"dragover",Er),Ce(document,"mousemove",Er),Ce(document,"touchmove",Er)},_offUpEvents:function(){var n=this.el.ownerDocument;Ce(n,"mouseup",this._onDrop),Ce(n,"touchend",this._onDrop),Ce(n,"pointerup",this._onDrop),Ce(n,"touchcancel",this._onDrop),Ce(document,"selectstart",this)},_onDrop:function(n){var t=this.el,r=this.options;if(Yt=Ft(z),qn=Ft(z,r.draggable),Vt("drop",this,{evt:n}),Xe=z&&z.parentNode,Yt=Ft(z),qn=Ft(z,r.draggable),ae.eventCanceled){this._nulling();return}fi=!1,fl=!1,so=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Ss(this.cloneId),Ss(this._dragStartId),this.nativeDraggable&&(Ce(document,"drop",this),Ce(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),ro&&ce(document.body,"user-select",""),ce(z,"transform",""),n&&(Ji&&(n.cancelable&&n.preventDefault(),!r.dropBubble&&n.stopPropagation()),pe&&pe.parentNode&&pe.parentNode.removeChild(pe),(Ye===Xe||_t&&_t.lastPutMode!=="clone")&&Ge&&Ge.parentNode&&Ge.parentNode.removeChild(Ge),z&&(this.nativeDraggable&&Ce(z,"dragend",this),ls(z),z.style["will-change"]="",Ji&&!fi&&Pt(z,_t?_t.options.ghostClass:this.options.ghostClass,!1),Pt(z,this.options.chosenClass,!1),Mt({sortable:this,name:"unchoose",toEl:Xe,newIndex:null,newDraggableIndex:null,originalEvent:n}),Ye!==Xe?(Yt>=0&&(Mt({rootEl:Xe,name:"add",toEl:Xe,fromEl:Ye,originalEvent:n}),Mt({sortable:this,name:"remove",toEl:Xe,originalEvent:n}),Mt({rootEl:Xe,name:"sort",toEl:Xe,fromEl:Ye,originalEvent:n}),Mt({sortable:this,name:"sort",toEl:Xe,originalEvent:n})),_t&&_t.save()):Yt!==hi&&Yt>=0&&(Mt({sortable:this,name:"update",toEl:Xe,originalEvent:n}),Mt({sortable:this,name:"sort",toEl:Xe,originalEvent:n})),ae.active&&((Yt==null||Yt===-1)&&(Yt=hi,qn=oo),Mt({sortable:this,name:"end",toEl:Xe,originalEvent:n}),this.save()))),this._nulling()},_nulling:function(){Vt("nulling",this),Ye=z=Xe=pe=Lr=Ge=wl=Qn=Cr=sn=Ji=Yt=qn=hi=oo=ui=lo=_t=ul=ae.dragged=ae.ghost=ae.clone=ae.active=null,$l.forEach(function(n){n.checked=!0}),$l.length=rs=is=0},handleEvent:function(n){switch(n.type){case"drop":case"dragend":this._onDrop(n);break;case"dragenter":case"dragover":z&&(this._onDragOver(n),Tp(n));break;case"selectstart":n.preventDefault();break}},toArray:function(){for(var n=[],t,r=this.el.children,i=0,o=r.length,s=this.options;i<o;i++)t=r[i],an(t,s.draggable,this.el,!1)&&n.push(t.getAttribute(s.dataIdAttr)||Np(t));return n},sort:function(n,t){var r={},i=this.el;this.toArray().forEach(function(o,s){var l=i.children[s];an(l,this.options.draggable,i,!1)&&(r[o]=l)},this),t&&this.captureAnimationState(),n.forEach(function(o){r[o]&&(i.removeChild(r[o]),i.appendChild(r[o]))}),t&&this.animateAll()},save:function(){var n=this.options.store;n&&n.set&&n.set(this)},closest:function(n,t){return an(n,t||this.options.draggable,this.el,!1)},option:function(n,t){var r=this.options;if(t===void 0)return r[n];var i=So.modifyOption(this,n,t);typeof i<"u"?r[n]=i:r[n]=t,n==="group"&&Du(r)},destroy:function(){Vt("destroy",this);var n=this.el;n[Gt]=null,Ce(n,"mousedown",this._onTapStart),Ce(n,"touchstart",this._onTapStart),Ce(n,"pointerdown",this._onTapStart),this.nativeDraggable&&(Ce(n,"dragover",this),Ce(n,"dragenter",this)),Array.prototype.forEach.call(n.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Ml.splice(Ml.indexOf(this.el),1),this.el=n=null},_hideClone:function(){if(!Qn){if(Vt("hideClone",this),ae.eventCanceled)return;ce(Ge,"display","none"),this.options.removeCloneOnHide&&Ge.parentNode&&Ge.parentNode.removeChild(Ge),Qn=!0}},_showClone:function(n){if(n.lastPutMode!=="clone"){this._hideClone();return}if(Qn){if(Vt("showClone",this),ae.eventCanceled)return;z.parentNode==Ye&&!this.options.group.revertClone?Ye.insertBefore(Ge,z):Lr?Ye.insertBefore(Ge,Lr):Ye.appendChild(Ge),this.options.group.revertClone&&this.animate(z,Ge),ce(Ge,"display",""),Qn=!1}}};function Tp(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function pl(e,n,t,r,i,o,s,l){var a,c=e[Gt],h=c.options.onMove,p;return window.CustomEvent&&!Rn&&!ko?a=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(a=document.createEvent("Event"),a.initEvent("move",!0,!0)),a.to=n,a.from=e,a.dragged=t,a.draggedRect=r,a.related=i||n,a.relatedRect=o||at(n),a.willInsertAfter=l,a.originalEvent=s,e.dispatchEvent(a),h&&(p=h.call(c,a,s)),p}function ls(e){e.draggable=!1}function Dp(){ks=!1}function Op(e,n,t){var r=at(Yi(t.el,0,t.options,!0)),i=Pu(t.el,t.options,pe),o=10;return n?e.clientX<i.left-o||e.clientY<r.top&&e.clientX<r.right:e.clientY<i.top-o||e.clientY<r.bottom&&e.clientX<r.left}function Ip(e,n,t){var r=at(Rs(t.el,t.options.draggable)),i=Pu(t.el,t.options,pe),o=10;return n?e.clientX>i.right+o||e.clientY>r.bottom&&e.clientX>r.left:e.clientY>i.bottom+o||e.clientX>r.right&&e.clientY>r.top}function Mp(e,n,t,r,i,o,s,l){var a=r?e.clientY:e.clientX,c=r?t.height:t.width,h=r?t.top:t.left,p=r?t.bottom:t.right,d=!1;if(!s){if(l&&yl<c*i){if(!so&&(lo===1?a>h+c*o/2:a<p-c*o/2)&&(so=!0),so)d=!0;else if(lo===1?a<h+yl:a>p-yl)return-lo}else if(a>h+c*(1-i)/2&&a<p-c*(1-i)/2)return $p(n)}return d=d||s,d&&(a<h+c*o/2||a>p-c*o/2)?a>h+c/2?1:-1:0}function $p(e){return Ft(z)<Ft(e)?1:-1}function Np(e){for(var n=e.tagName+e.className+e.src+e.href+e.textContent,t=n.length,r=0;t--;)r+=n.charCodeAt(t);return r.toString(36)}function Hp(e){$l.length=0;for(var n=e.getElementsByTagName("input"),t=n.length;t--;){var r=n[t];r.checked&&$l.push(r)}}function kl(e){return setTimeout(e,0)}function Ss(e){return clearTimeout(e)}Gl&&Ae(document,"touchmove",function(e){(ae.active||fi)&&e.cancelable&&e.preventDefault()});ae.utils={on:Ae,off:Ce,css:ce,find:Cu,is:function(n,t){return!!an(n,t,n,!1)},extend:_p,throttle:Eu,closest:an,toggleClass:Pt,clone:xu,index:Ft,nextTick:kl,cancelNextTick:Ss,detectDirection:Tu,getChild:Yi};ae.get=function(e){return e[Gt]};ae.mount=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];n[0].constructor===Array&&(n=n[0]),n.forEach(function(r){if(!r.prototype||!r.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));r.utils&&(ae.utils=wn(wn({},ae.utils),r.utils)),So.mount(r)})};ae.create=function(e,n){return new ae(e,n)};ae.version=gp;var ot=[],Qi,Cs,Es=!1,ss,as,Nl,eo;function Rp(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this))}return e.prototype={dragStarted:function(t){var r=t.originalEvent;this.sortable.nativeDraggable?Ae(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Ae(document,"pointermove",this._handleFallbackAutoScroll):r.touches?Ae(document,"touchmove",this._handleFallbackAutoScroll):Ae(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var r=t.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?Ce(document,"dragover",this._handleAutoScroll):(Ce(document,"pointermove",this._handleFallbackAutoScroll),Ce(document,"touchmove",this._handleFallbackAutoScroll),Ce(document,"mousemove",this._handleFallbackAutoScroll)),cc(),Sl(),wp()},nulling:function(){Nl=Cs=Qi=Es=eo=ss=as=null,ot.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,r){var i=this,o=(t.touches?t.touches[0]:t).clientX,s=(t.touches?t.touches[0]:t).clientY,l=document.elementFromPoint(o,s);if(Nl=t,r||this.options.forceAutoScrollFallback||ko||Rn||ro){cs(t,this.options,l,r);var a=nr(l,!0);Es&&(!eo||o!==ss||s!==as)&&(eo&&cc(),eo=setInterval(function(){var c=nr(document.elementFromPoint(o,s),!0);c!==a&&(a=c,Sl()),cs(t,i.options,c,r)},10),ss=o,as=s)}else{if(!this.options.bubbleScroll||nr(l,!0)===_n()){Sl();return}cs(t,this.options,nr(l,!1),!1)}}},yn(e,{pluginName:"scroll",initializeByDefault:!0})}function Sl(){ot.forEach(function(e){clearInterval(e.pid)}),ot=[]}function cc(){clearInterval(eo)}var cs=Eu(function(e,n,t,r){if(n.scroll){var i=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,s=n.scrollSensitivity,l=n.scrollSpeed,a=_n(),c=!1,h;Cs!==t&&(Cs=t,Sl(),Qi=n.scroll,h=n.scrollFn,Qi===!0&&(Qi=nr(t,!0)));var p=0,d=Qi;do{var g=d,k=at(g),S=k.top,F=k.bottom,$=k.left,A=k.right,T=k.width,N=k.height,K=void 0,G=void 0,U=g.scrollWidth,W=g.scrollHeight,x=ce(g),B=g.scrollLeft,Y=g.scrollTop;g===a?(K=T<U&&(x.overflowX==="auto"||x.overflowX==="scroll"||x.overflowX==="visible"),G=N<W&&(x.overflowY==="auto"||x.overflowY==="scroll"||x.overflowY==="visible")):(K=T<U&&(x.overflowX==="auto"||x.overflowX==="scroll"),G=N<W&&(x.overflowY==="auto"||x.overflowY==="scroll"));var X=K&&(Math.abs(A-i)<=s&&B+T<U)-(Math.abs($-i)<=s&&!!B),ve=G&&(Math.abs(F-o)<=s&&Y+N<W)-(Math.abs(S-o)<=s&&!!Y);if(!ot[p])for(var E=0;E<=p;E++)ot[E]||(ot[E]={});(ot[p].vx!=X||ot[p].vy!=ve||ot[p].el!==g)&&(ot[p].el=g,ot[p].vx=X,ot[p].vy=ve,clearInterval(ot[p].pid),(X!=0||ve!=0)&&(c=!0,ot[p].pid=setInterval(function(){r&&this.layer===0&&ae.active._onTouchMove(Nl);var I=ot[this.layer].vy?ot[this.layer].vy*l:0,te=ot[this.layer].vx?ot[this.layer].vx*l:0;typeof h=="function"&&h.call(ae.dragged.parentNode[Gt],te,I,e,Nl,ot[this.layer].el)!=="continue"||Lu(ot[this.layer].el,te,I)}.bind({layer:p}),24))),p++}while(n.bubbleScroll&&d!==a&&(d=nr(d,!1)));Es=c}},30),Mu=function(n){var t=n.originalEvent,r=n.putSortable,i=n.dragEl,o=n.activeSortable,s=n.dispatchSortableEvent,l=n.hideGhostForTarget,a=n.unhideGhostForTarget;if(t){var c=r||o;l();var h=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,p=document.elementFromPoint(h.clientX,h.clientY);a(),c&&!c.el.contains(p)&&(s("spill"),this.onSpill({dragEl:i,putSortable:r}))}};function Vs(){}Vs.prototype={startIndex:null,dragStart:function(n){var t=n.oldDraggableIndex;this.startIndex=t},onSpill:function(n){var t=n.dragEl,r=n.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var i=Yi(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(t,i):this.sortable.el.appendChild(t),this.sortable.animateAll(),r&&r.animateAll()},drop:Mu};yn(Vs,{pluginName:"revertOnSpill"});function Fs(){}Fs.prototype={onSpill:function(n){var t=n.dragEl,r=n.putSortable,i=r||this.sortable;i.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),i.animateAll()},drop:Mu};yn(Fs,{pluginName:"removeOnSpill"});var qt;function Vp(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(t){var r=t.dragEl;qt=r},dragOverValid:function(t){var r=t.completed,i=t.target,o=t.onMove,s=t.activeSortable,l=t.changed,a=t.cancel;if(s.options.swap){var c=this.sortable.el,h=this.options;if(i&&i!==c){var p=qt;o(i)!==!1?(Pt(i,h.swapClass,!0),qt=i):qt=null,p&&p!==qt&&Pt(p,h.swapClass,!1)}l(),r(!0),a()}},drop:function(t){var r=t.activeSortable,i=t.putSortable,o=t.dragEl,s=i||this.sortable,l=this.options;qt&&Pt(qt,l.swapClass,!1),qt&&(l.swap||i&&i.options.swap)&&o!==qt&&(s.captureAnimationState(),s!==r&&r.captureAnimationState(),Fp(o,qt),s.animateAll(),s!==r&&r.animateAll())},nulling:function(){qt=null}},yn(e,{pluginName:"swap",eventProperties:function(){return{swapItem:qt}}})}function Fp(e,n){var t=e.parentNode,r=n.parentNode,i,o;!t||!r||t.isEqualNode(n)||r.isEqualNode(e)||(i=Ft(e),o=Ft(n),t.isEqualNode(r)&&i<o&&o++,t.insertBefore(n,t.children[i]),r.insertBefore(e,r.children[o]))}ae.mount(new Rp);ae.mount(Fs,Vs);function uc(e,n,t){const r=e.slice();return r[22]=n[t],r[23]=n,r[24]=t,r}function fc(e,n){let t,r,i=n[22].pattern+"",o,s,l,a,c,h,p,d,g,k,S,F,$,A,T;c=new ye({props:{path:_f,height:"1rem"}});function N(){return n[15](n[22])}d=new ye({props:{path:Uc,height:"1rem"}});function K(){return n[16](n[22])}function G(){n[17].call(k,n[23],n[24])}return{key:e,first:null,c(){t=v("div"),r=v("div"),o=gt(i),s=w(),l=v("div"),a=v("button"),oe(c.$$.fragment),h=w(),p=v("button"),oe(d.$$.fragment),g=w(),k=v("input"),S=w(),f(r,"class","break-all"),f(a,"title","Edit"),f(a,"class","hover:text-primary"),f(p,"title","Remove"),f(p,"class","hover:text-primary"),f(k,"type","checkbox"),f(k,"class","ml-1"),f(l,"class","min-w-max ml-2"),f(t,"class","border my-2 p-2 flex items-center justify-between"),f(t,"data-id",F=n[22].pattern),this.first=t},m(U,W){V(U,t,W),u(t,r),u(r,o),u(t,s),u(t,l),u(l,a),re(c,a,null),u(l,h),u(l,p),re(d,p,null),u(l,g),u(l,k),k.checked=n[22].enabled,u(t,S),$=!0,A||(T=[P(a,"click",N),P(p,"click",K),P(k,"change",G),P(k,"change",n[6])],A=!0)},p(U,W){n=U,(!$||W&2)&&i!==(i=n[22].pattern+"")&&jt(o,i),W&2&&(k.checked=n[22].enabled),(!$||W&2&&F!==(F=n[22].pattern))&&f(t,"data-id",F)},i(U){$||(M(c.$$.fragment,U),M(d.$$.fragment,U),$=!0)},o(U){j(c.$$.fragment,U),j(d.$$.fragment,U),$=!1},d(U){U&&R(t),ie(c),ie(d),A=!1,Tt(T)}}}function Wp(e){let n,t,r,i,o,s,l,a,c,h,p,d,g,k,S,F,$,A,T=[],N=new Map,K,G,U;r=new ye({props:{path:df}}),l=new ye({props:{path:Bc}}),h=new ye({props:{path:Ef}}),g=new ye({props:{path:Cf}}),F=new ye({props:{path:Uc}});let W=e[1];const x=B=>B[22].pattern;for(let B=0;B<W.length;B+=1){let Y=uc(e,W,B),X=x(Y);N.set(X,T[B]=fc(X,Y))}return{c(){n=v("div"),t=v("button"),oe(r.$$.fragment),o=w(),s=v("button"),oe(l.$$.fragment),a=w(),c=v("button"),oe(h.$$.fragment),p=w(),d=v("button"),oe(g.$$.fragment),k=w(),S=v("button"),oe(F.$$.fragment),$=w(),A=v("div");for(let B=0;B<T.length;B+=1)T[B].c();f(t,"title","Apply to current lines"),t.disabled=i=!e[2],ee(t,"hover:text-primary",e[2]),ee(t,"cursor-not-allowed",!e[2]),f(s,"title","Add replacement"),f(s,"class","ml-2 hover:text-primary"),f(c,"title","Enable all"),f(c,"class","ml-2 hover:text-primary"),f(d,"title","Disable all"),f(d,"class","ml-2 hover:text-primary"),f(S,"title","Remove all"),f(S,"class","ml-2 hover:text-primary"),f(n,"class","flex justify-end my-2"),f(A,"class","max-h-72 overflow-auto")},m(B,Y){V(B,n,Y),u(n,t),re(r,t,null),u(n,o),u(n,s),re(l,s,null),u(n,a),u(n,c),re(h,c,null),u(n,p),u(n,d),re(g,d,null),u(n,k),u(n,S),re(F,S,null),V(B,$,Y),V(B,A,Y);for(let X=0;X<T.length;X+=1)T[X].m(A,null);e[18](A),K=!0,G||(U=[P(t,"click",e[10]),P(s,"click",e[11]),P(c,"click",e[12]),P(d,"click",e[13]),P(S,"click",e[14])],G=!0)},p(B,[Y]){(!K||Y&4&&i!==(i=!B[2]))&&(t.disabled=i),(!K||Y&4)&&ee(t,"hover:text-primary",B[2]),(!K||Y&4)&&ee(t,"cursor-not-allowed",!B[2]),Y&218&&(W=B[1],lt(),T=Wr(T,Y,x,1,B,W,N,A,Ps,fc,null,uc),st())},i(B){if(!K){M(r.$$.fragment,B),M(l.$$.fragment,B),M(h.$$.fragment,B),M(g.$$.fragment,B),M(F.$$.fragment,B);for(let Y=0;Y<W.length;Y+=1)M(T[Y]);K=!0}},o(B){j(r.$$.fragment,B),j(l.$$.fragment,B),j(h.$$.fragment,B),j(g.$$.fragment,B),j(F.$$.fragment,B);for(let Y=0;Y<T.length;Y+=1)j(T[Y]);K=!1},d(B){B&&R(n),ie(r),ie(l),ie(h),ie(g),ie(F),B&&R($),B&&R(A);for(let Y=0;Y<T.length;Y+=1)T[Y].d();e[18](null),G=!1,Tt(U)}}}function jp(e,n,t){let r,i,o,s;y(e,en,x=>t(3,i=x)),y(e,ws,x=>t(8,o=x)),y(e,Ze,x=>t(9,s=x));const l=Fr();let a,c,h=JSON.parse(JSON.stringify(i));Rl(()=>{try{ae.mount(new Vp)}catch{}return a=ae.create(c,{swap:!0,swapClass:"swap",animation:150,store:{get:k,set:d}}),()=>a==null?void 0:a.destroy()});function p(x){const B=S();t(1,h=B.map(Y=>({...Y,enabled:x}))),H(en,i=h,i)}function d(){H(en,i=S(),i)}function g(x){t(1,h=x),H(en,i=x,i),a.sort(k(),!1)}function k(){return[...h.map(x=>x.pattern)]}function S(){const x=a.toArray();return h.slice().sort((B,Y)=>x.indexOf(B.pattern)-x.indexOf(Y.pattern))}const F=()=>l("applyReplacements"),$=()=>l("edit",void 0),A=()=>p(!0),T=()=>p(!1),N=()=>g([]),K=x=>l("edit",x),G=x=>g(i.filter(B=>B.pattern!==x.pattern));function U(x,B){x[B].enabled=this.checked,t(1,h)}function W(x){dt[x?"unshift":"push"](()=>{c=x,t(0,c)})}return e.$$.update=()=>{e.$$.dirty&768&&t(2,r=!!s.length&&!!o.length)},[c,h,r,i,l,p,d,g,o,s,F,$,A,T,N,K,G,U,W]}class Bp extends Ut{constructor(n){super(),Bt(this,n,jp,Wp,wt,{})}}function Up(e){let n,t,r,i,o,s,l,a;return r=new ye({props:{path:Bc}}),{c(){n=v("div"),t=v("button"),oe(r.$$.fragment),i=w(),o=v("div"),o.textContent="You have currently no replacements configured",f(t,"title","Add replacement"),f(t,"class","ml-2 hover:text-primary"),f(n,"class","flex justify-end my-2")},m(c,h){V(c,n,h),u(n,t),re(r,t,null),V(c,i,h),V(c,o,h),s=!0,l||(a=P(t,"click",e[7]),l=!0)},p:Oe,i(c){s||(M(r.$$.fragment,c),s=!0)},o(c){j(r.$$.fragment,c),s=!1},d(c){c&&R(n),ie(r),c&&R(i),c&&R(o),l=!1,a()}}}function zp(e){let n=e[0],t,r,i=hc(e);return{c(){i.c(),t=$n()},m(o,s){i.m(o,s),V(o,t,s),r=!0},p(o,s){s&1&&wt(n,n=o[0])?(lt(),j(i,1,1,Oe),st(),i=hc(o),i.c(),M(i,1),i.m(t.parentNode,t)):i.p(o,s)},i(o){r||(M(i),r=!0)},o(o){j(i),r=!1},d(o){o&&R(t),i.d(o)}}}function Yp(e){let n,t;return n=new hp({props:{currentReplacement:e[2]}}),n.$on("close",e[4]),{c(){oe(n.$$.fragment)},m(r,i){re(n,r,i),t=!0},p(r,i){const o={};i&4&&(o.currentReplacement=r[2]),n.$set(o)},i(r){t||(M(n.$$.fragment,r),t=!0)},o(r){j(n.$$.fragment,r),t=!1},d(r){ie(n,r)}}}function hc(e){let n,t;return n=new Bp({}),n.$on("edit",e[5]),n.$on("applyReplacements",e[6]),{c(){oe(n.$$.fragment)},m(r,i){re(n,r,i),t=!0},p:Oe,i(r){t||(M(n.$$.fragment,r),t=!0)},o(r){j(n.$$.fragment,r),t=!1},d(r){ie(n,r)}}}function Kp(e){let n,t,r,i,o,s,l;const a=[Yp,zp,Up],c=[];function h(p,d){return p[1]?0:p[3]?1:2}return o=h(e),s=c[o]=a[o](e),{c(){n=v("details"),t=v("summary"),t.textContent="Replacements",r=w(),i=v("div"),s.c(),f(i,"class","mb-8"),f(n,"class","col-span-4 mb-2 cursor-pointer max-w-lg")},m(p,d){V(p,n,d),u(n,t),u(n,r),u(n,i),c[o].m(i,null),l=!0},p(p,[d]){let g=o;o=h(p),o===g?c[o].p(p,d):(lt(),j(c[g],1,1,()=>{c[g]=null}),st(),s=c[o],s?s.p(p,d):(s=c[o]=a[o](p),s.c()),M(s,1),s.m(i,null))},i(p){l||(M(s),l=!0)},o(p){j(s),l=!1},d(p){p&&R(n),c[o].d()}}}function Gp(e,n,t){let r,i;y(e,en,d=>t(0,i=d));let o=!1,s;function l(d){t(1,o=!1)}const a=()=>{t(1,o=!1),t(2,s=void 0)},c=({detail:d})=>{t(2,s=d),t(1,o=!0)};function h(d){co.call(this,e,d)}const p=()=>t(1,o=!0);return e.$$.update=()=>{e.$$.dirty&1&&t(3,r=!!i.length),e.$$.dirty&1&&l()},[i,o,s,r,a,c,h,p]}class qp extends Ut{constructor(n){super(),Bt(this,n,Gp,Kp,wt,{})}}const{document:pc}=Fc;function dc(e,n,t){const r=e.slice();return r[152]=n[t],r}function mc(e){let n,t,r,i,o,s,l,a,c,h,p,d,g,k,S,F,$,A,T,N,K,G,U,W,x,B,Y,X,ve,E,I,te,Z,le,ue,Je,rt,Re,yt,Te,Qe,kt,Ie,bt,Be,Ue,me,ze,_e,Ve,ct,ke,vt,et,ut,Se,be,$e,Ee,we,St,Dt,_,fe,Pe,qe,Fe,Ke,De,Le,Sn,Ct,Cn,cn,un,tt,fn,Me,We,C,D=[],it=new Map,$t,Et,nn,ft,Lt,Ot,Br,zt,Ur,En,hn,zr,Nt,Yr,Vn,Kr,rn,Gr,Fn,qr,on,Xr,Wn,Zr,ln,b,J,ne,he,de,ht,pn,Ht,ar,Jr,Co,dn,Eo,Qr,Lo,mn,xo,ei,Po,gn,Ao,ti,To,Ln,Do,ni,Oo,xn,Io,ri,Mo,Pn,$o,ii,No,An,Ho,oi,Ro,Tn,Vo,li,Fo,Dn,Wo,si,jo,m,q,se,Ne,nt,pt,It,cr,ur,Ws,Bo,js,fr,Bs,Uo,Us,jn,zs,zo,Ys,Bn,Ks,Yo,Gs,hr,qs,Ko,Xs,Un,Zs,Go,Js,pr,Qs,qo,ea,dr,ta,Xo,na,mr,ra,Zo,ia,gr,oa,Jo,la,br,sa,Qo,aa,vr,ca,el,ua,_r,fa,tl,ha,wr,pa,nl,da,zn,ma,rl,ga,yr,ba,il,va,kr,_a,ol,wa,Sr,ya,Gi,ka,Yn,Kn,ql,Sa;p=new ye({props:{path:Sf}}),F=new ye({props:{path:kf}}),K=new ye({props:{path:no}}),B=new ye({props:{path:no}}),I=new ye({props:{path:no}}),Je=new ye({props:{path:ds}}),Qe=new ye({props:{path:ds}}),Ve=new ye({props:{class:"swap-on",path:Lf}}),ke=new ye({props:{class:"swap-off",path:xf}});let Nu={};$e=new wu({props:Nu}),e[82]($e),$e.$on("layoutChange",e[83]),$e.$on("exportImportPreset",e[84]),we=new qp({}),we.$on("applyReplacements",e[85]);let ll=e[54];const Ca=O=>O[152];for(let O=0;O<ll.length;O+=1){let Q=dc(e,ll,O),Gn=Ca(Q);it.set(Gn,D[O]=gc(Gn,Q))}let Rt=e[1]&&bc(e);return{c(){n=v("input"),t=w(),r=v("input"),i=w(),o=v("input"),s=w(),l=v("div"),a=v("div"),c=v("div"),h=v("div"),oe(p.$$.fragment),d=w(),g=v("span"),g.textContent="Set Timer",k=w(),S=v("div"),oe(F.$$.fragment),$=w(),A=v("span"),A.textContent="Reset Timer",T=w(),N=v("div"),oe(K.$$.fragment),G=w(),U=v("span"),U.textContent="Reset Lines",W=w(),x=v("div"),oe(B.$$.fragment),Y=w(),X=v("span"),X.textContent="Reset Data",ve=w(),E=v("div"),oe(I.$$.fragment),te=w(),Z=v("span"),Z.textContent="Reset All",le=w(),ue=v("div"),oe(Je.$$.fragment),rt=w(),Re=v("span"),Re.textContent="Ex-/Import Data",yt=w(),Te=v("div"),oe(Qe.$$.fragment),kt=w(),Ie=v("span"),Ie.textContent="Ex-/Import Settings",bt=w(),Be=v("div"),Ue=v("label"),me=v("input"),_e=w(),oe(Ve.$$.fragment),ct=w(),oe(ke.$$.fragment),vt=w(),et=v("span"),et.textContent="Theme",ut=w(),Se=v("details"),Se.innerHTML=`<summary>Links</summary>
|
26
|
+
opacity: ${a-u*m}`}}var rn=(e=>(e.LIGHT="light",e.DARK="dark",e.CUPCAKE="cupcake",e.BUMBLEBEE="bumblebee",e.EMERALD="emerald",e.CORPORATE="corporate",e.SYNTHWAVE="synthwave",e.RETRO="retro",e.CYBERPUNK="cyberpunk",e.VALENTINE="valentine",e.HALLOWEEN="halloween",e.GARDEN="garden",e.FOREST="forest",e.AQUA="aqua",e.LOFI="lofi",e.PASTEL="pastel",e.FANTASY="fantasy",e.WIREFRAME="wireframe",e.BLACK="black",e.LUXURY="luxury",e.DRACULA="dracula",e.CMYK="cmyk",e.AUTUMN="autumn",e.BUSINESS="business",e.ACID="acid",e.LEMONADE="lemonade",e.NIGHT="night",e.COFFEE="coffee",e.WINTER="winter",e))(rn||{}),on=(e=>(e.OFF="Off",e.NOTO="Noto Serif JP",e.KLEE="Klee One",e.SHIPPORI="Shippori Mincho",e.ACKAISYO="Ackaisyo",e.CINECAPTION226="CineCaption226",e))(on||{}),nn=(e=>(e.SOCKET="socket",e.PASTE="paste",e.EXTERNAL="external",e.EDIT="edit",e.UNDO="undo",e.RESETCHECKBOXES="resetcheckboxes",e.TL="tl",e))(nn||{});const hi=[];function Ji(e,n=Oe){let t;const r=new Set;function i(l){if(Et(e,l)&&(e=l,t)){const a=!hi.length;for(const c of r)c[1](),hi.push(c,e);if(a){for(let c=0;c<hi.length;c+=2)hi[c][0](hi[c+1]);hi.length=0}}}function o(l){i(l(e))}function s(l,a=Oe){const c=[l,a];return r.add(c),r.size===1&&(t=n(i)||Oe),l(e),()=>{r.delete(c),r.size===0&&(t(),t=null)}}return{set:i,update:o,subscribe:s}}function Yh(e){return e.set=e.next,e}function Kr(e){return Yh(new Zf(e))}function Jl(e,n){return(t,r,i)=>{const o=Kh()(t,r,e),s=Kr(o);let l=!0;return i&&i.subscribe(a=>l=a),s.pipe(Fh(1)).subscribe(a=>{l&&window.localStorage.setItem(t,n(a??r))}),s}}function Kh(){return(e,n,t)=>{const r=window.localStorage.getItem(e);return r?t(r):n}}function Ae(){return Jl(e=>!!+e,e=>e?"1":"0")}function Fn(){return Jl(e=>+e,e=>`${e}`)}function Gh(e){return Jl(n=>JSON.parse(n||e),n=>JSON.stringify(n))}function Lo(){return Gh("[]")}function ur(){return Jl(e=>e,e=>e)}const L={theme$:rn.BUSINESS,replacements$:[],windowTitle$:"",websocketUrl$:"ws://localhost:55001",secondaryWebsocketUrl$:"",fontSize$:32,characterMilestone$:0,onlineFont$:on.OFF,preventLastDuplicate$:0,maxLines$:0,maxPipLines$:1,afkTimer$:0,adjustTimerOnAfk$:!1,enableExternalClipboardMonitor$:!1,showPresetQuickSwitch$:!1,skipResetConfirmations$:!1,persistStats$:!0,persistNotes$:!0,persistLines$:!0,persistActionHistory$:!1,enablePaste$:!1,blockCopyOnPage$:!1,allowPasteDuringPause$:!1,allowNewLineDuringPause$:!0,autoStartTimerDuringPausePaste$:!1,autoStartTimerDuringPause$:!1,preventGlobalDuplicate$:!1,mergeEqualLineStarts$:!1,filterNonCJKLines:!1,flashOnMissedLine$:!0,displayVertical$:!1,reverseLineOrder$:!1,preserveWhitespace$:!0,removeAllWhitespace$:!1,showTimer$:!0,showSpeed$:!0,showCharacterCount$:!0,showLineCount$:!0,blurStats$:!1,enableLineAnimation$:!1,enableAfkBlur$:!1,enableAfkBlurRestart$:!1,continuousReconnect$:!0,showConnectionErrors$:!1,customCSS$:""},Or=ur()("bannou-texthooker-theme",L.theme$),_n=Lo()("bannou-texthooker-settingPresets",[]),ln=Lo()("bannou-texthooker-replacements",[]),_o=ur()("bannou-texthooker-windowTitle",L.windowTitle$),Mn=ur()("bannou-texthooker-websocketUrl",L.websocketUrl$),$n=ur()("bannou-texthooker-secondary-websocketUrl",L.secondaryWebsocketUrl$),Ir=Fn()("bannou-texthooker-fontSize",L.fontSize$),Mr=Fn()("bannou-texthooker-characterMilestone",L.characterMilestone$),ki=ur()("bannou-texthooker-onlineFont",L.onlineFont$),$r=Fn()("bannou-texthooker-preventLastDuplicate",L.preventLastDuplicate$),Dr=Fn()("bannou-texthooker-maxLines",L.maxLines$),Hr=Fn()("bannou-texthooker-maxPipLines",L.maxPipLines$),ar=Fn()("bannou-texthooker-afkTimer",L.afkTimer$),Si=Ae()("bannou-texthooker-adjustTimerOnAfk",L.adjustTimerOnAfk$),wo=Ae()("bannou-texthooker-enableExternalClipboardMonitor",L.enableExternalClipboardMonitor$),yo=Ae()("bannou-texthooker-showPresetQuickSwitch",L.showPresetQuickSwitch$),Ci=Ae()("bannou-texthooker-skipResetConfirmations",L.skipResetConfirmations$),Ei=Ae()("bannou-texthooker-persistStats",L.persistStats$),Li=Ae()("bannou-texthooker-persistNotes",L.persistNotes$),xi=Ae()("bannou-texthooker-persistLines",L.persistLines$),Pi=Ae()("bannou-texthooker-persistActionHistory",L.persistActionHistory$),Ai=Ae()("bannou-texthooker-enablePaste",L.enablePaste$),Ti=Ae()("bannou-texthooker-blockCopyOnPage",L.blockCopyOnPage$),Di=Ae()("bannou-texthooker-allowPasteDuringPause",L.allowPasteDuringPause$),Oi=Ae()("bannou-texthooker-allowNewLineDuringPause",L.allowNewLineDuringPause$),Ii=Ae()("bannou-texthooker-autoStartTimerDuringPausePaste",L.autoStartTimerDuringPausePaste$),Mi=Ae()("bannou-texthooker-autoStartTimerDuringPause",L.autoStartTimerDuringPause$),Fr=Ae()("bannou-texthooker-preventGlobalDuplicate",L.preventGlobalDuplicate$),$i=Ae()("bannou-texthooker-mergeEqualLineStarts",L.mergeEqualLineStarts$),Hi=Ae()("bannou-texthooker-filterNonCJKLines",L.mergeEqualLineStarts$),Ni=Ae()("bannou-texthooker-flashOnMissedLine",L.flashOnMissedLine$),Wr=Ae()("bannou-texthooker-displayVertical",L.displayVertical$),jr=Ae()("bannou-texthooker-reverseLineOrder",L.reverseLineOrder$),Ri=Ae()("bannou-texthooker-preserveWhitespace",L.preserveWhitespace$),Vi=Ae()("bannou-texthooker-removeAllWhitespace",L.removeAllWhitespace$),Fi=Ae()("bannou-texthooker-showTimer",L.showTimer$),Wi=Ae()("bannou-texthooker-showSpeed",L.showSpeed$),ji=Ae()("bannou-texthooker-showCharacterCount",L.showCharacterCount$),Bi=Ae()("bannou-texthooker-showLineCount",L.showLineCount$),Ui=Ae()("bannou-texthooker-blurStats",L.blurStats$),zi=Ae()("bannou-texthooker-enableLineAnimation",L.enableLineAnimation$),Yi=Ae()("bannou-texthooker-enableAfkBlur",L.enableAfkBlur$),Ki=Ae()("bannou-texthooker-enableAfkBlurRestart",L.enableAfkBlurRestart$),Br=Ae()("bannou-texthooker-continuousReconnect",L.continuousReconnect$),Gi=Ae()("bannou-texthooker-showConnectionErrors",L.showConnectionErrors$),qi=ur()("bannou-texthooker-customCSS",L.customCSS$),wn=Fn()("bannou-texthooker-timeValue",0,Ei),Hl=Kr(!1),ko=ur()("bannou-texthooker-userNotes","",Li),Us=Kr(-1),zs=Kr(-1),Ue=Kr(void 0),Nl=Kr(!1),lr=ur()("bannou-texthooker-lastSettingPreset",""),at=Lo()("bannou-texthooker-lineData",[],xi),Cl=Lo()("bannou-texthooker-lineIDs",[]),Ur=Ji(new Map),nr=Lo()("bannou-texthooker-actionHistory",[],Pi),Ls=Ji(void 0),Xt=Kr(!0),Nr=new Zi,Ql=new Zi,es=new Zi,El=Ji(!1),xs=Ji([]),Ps=Ji(!1),za=Ji(!1),Ya=Fn()("bannou-texthooker-lastPipHeight",0),Ka=Fn()("bannou-texthooker-lastPipWidth",0);async function qh(){if(!Ci.getValue()){const{canceled:e}=await new Promise(n=>{Ue.next({icon:tn,message:"All Settings and Data will be reset",callback:n})});if(e)return}lr.next(""),_n.next([]),Xt.next(!0),wn.next(0),ko.next(""),at.next([]),nr.next([]),Ls.set(void 0),window.localStorage.removeItem("bannou-texthooker-timeValue"),window.localStorage.removeItem("bannou-texthooker-userNotes"),window.localStorage.removeItem("bannou-texthooker-lineData"),window.localStorage.removeItem("bannou-texthooker-actionHistory"),Or.next(L.theme$),ln.next(L.replacements$),_o.next(L.windowTitle$),Mn.next(L.websocketUrl$),$n.next(L.secondaryWebsocketUrl$),Ir.next(L.fontSize$),Mr.next(L.characterMilestone$),ki.next(L.onlineFont$),$r.next(L.preventLastDuplicate$),Hr.next(L.maxPipLines$),ar.next(L.afkTimer$),Si.next(L.adjustTimerOnAfk$),wo.next(L.enableExternalClipboardMonitor$),yo.next(L.showPresetQuickSwitch$),Ci.next(L.skipResetConfirmations$),Ei.next(L.persistStats$),Li.next(L.persistNotes$),xi.next(L.persistLines$),Pi.next(L.persistActionHistory$),Ai.next(L.enablePaste$),Ti.next(L.blockCopyOnPage$),Di.next(L.allowPasteDuringPause$),Oi.next(L.allowNewLineDuringPause$),Ii.next(L.autoStartTimerDuringPausePaste$),Mi.next(L.autoStartTimerDuringPause$),Fr.next(L.preventGlobalDuplicate$),$i.next(L.mergeEqualLineStarts$),Hi.next(L.filterNonCJKLines),Ni.next(L.flashOnMissedLine$),Wr.next(L.displayVertical$),jr.next(L.reverseLineOrder$),Ri.next(L.preserveWhitespace$),Vi.next(L.removeAllWhitespace$),Fi.next(L.showTimer$),Wi.next(L.showSpeed$),ji.next(L.showCharacterCount$),Bi.next(L.showLineCount$),Ui.next(L.blurStats$),zi.next(L.enableLineAnimation$),Yi.next(L.enableAfkBlur$),Ki.next(L.enableAfkBlurRestart$),Br.next(L.continuousReconnect$),Gi.next(L.showConnectionErrors$),qi.next(L.customCSS$)}function jt(){}function rr(){return zf(Xl(()=>""),Zl((e,n)=>!n))}function Rl(e,n,t,r,i="auto"){console.log(n),n&&setTimeout(()=>{t?r?n.scrollTo({top:0,left:n.scrollWidth,behavior:i}):e.scrollTo({top:-n.scrollHeight,left:0,behavior:i}):r?n.scrollTo({top:0,left:-n.scrollWidth,behavior:i}):e.scrollTo({top:n.scrollHeight+100,left:0,behavior:i}),i==="smooth"&&setTimeout(()=>Rl(e,n,t,r),250)})}function Xh(e){const n=Math.floor(e/3600),t=Math.floor((e-n*3600)/60),r=e-n*3600-t*60;return`${`${n}`.padStart(2,"0")}:${`${t}`.padStart(2,"0")}:${`${r}`.padStart(2,"0")}`}function Zh(e){const[n,t,r]=e.split(":").map(i=>Number.parseInt(i,10));return n*60*60+t*60+r}function Jh(){const e=new Uint8Array(16);return crypto.getRandomValues(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128,Array.prototype.map.call(e,(t,r)=>(t<16?"0":"")+t.toString(16)+(r%2&&r<10&&r>2?"-":"")).join("")}function Cu(e,n){if(!e||!n.length)return e;let t=e;for(let r=0,{length:i}=n;r<i;r+=1){const o=n[r];t=t.replace(new RegExp(o.pattern,o.flags.join("")),o.replaces.replace(/\\t/gm," ").replace(/\\n/gm,`
|
27
|
+
`))}return t}function Eu(e,n){const t=e.createTextNode(n||"");let r=e.getElementById("user-css");r?r.replaceChild(t,r.firstChild):(r=e.createElement("style"),r.id="user-css",r.appendChild(t),e.head.append(r))}function Ga(e,n){n?(e.body.style.filter="blur(8px)",e.body.style.pointerEvents="none"):(e.body.style.filter=null,e.body.style.pointerEvents="auto")}const Lu=`
|
28
|
+
`;function Qh(e){let n,t,r,i;return{c(){n=vs("svg"),t=vs("path"),h(t,"d",e[1]),be(n,"width",e[2]),be(n,"height",e[3]),h(n,"viewBox","0 0 24 24"),h(n,"fill","currentColor"),h(n,"class",e[4])},m(o,s){F(o,n,s),f(n,t),e[7](n),r||(i=[x(n,"click",e[5]),x(n,"keyup",e[6])],r=!0)},p(o,[s]){s&2&&h(t,"d",o[1]),s&4&&be(n,"width",o[2]),s&8&&be(n,"height",o[3]),s&16&&h(n,"class",o[4])},i:Oe,o:Oe,d(o){o&&R(n),e[7](null),r=!1,At(i)}}}function ep(e,n,t){let{path:r}=n,{width:i="1.5rem"}=n,{height:o="1.5rem"}=n,{element:s=void 0}=n,{class:l=""}=n;function a(p){mo.call(this,e,p)}function c(p){mo.call(this,e,p)}function u(p){mt[p?"unshift":"push"](()=>{s=p,t(0,s)})}return e.$$set=p=>{"path"in p&&t(1,r=p.path),"width"in p&&t(2,i=p.width),"height"in p&&t(3,o=p.height),"element"in p&&t(0,s=p.element),"class"in p&&t(4,l=p.class)},[s,r,i,o,l,a,c,u]}class we extends Ut{constructor(n){super(),Bt(this,n,ep,Qh,Et,{path:1,width:2,height:3,element:0,class:4})}}function qa(e){let n,t;return n=new we({props:{path:e[1]}}),{c(){se(n.$$.fragment)},m(r,i){re(n,r,i),t=!0},p(r,i){const o={};i&2&&(o.path=r[1]),n.$set(o)},i(r){t||($(n.$$.fragment,r),t=!0)},o(r){W(n.$$.fragment,r),t=!1},d(r){ie(n,r)}}}function tp(e){let n;return{c(){n=dt(e[2])},m(t,r){F(t,n,r)},p(t,r){r&4&&$t(n,t[2])},d(t){t&&R(n)}}}function np(e){let n,t=e[5]==="text"&&Xa(e);return{c(){n=g("div"),t&&t.c()},m(r,i){F(r,n,i),t&&t.m(n,null)},p(r,i){r[5]==="text"?t?t.p(r,i):(t=Xa(r),t.c(),t.m(n,null)):t&&(t.d(1),t=null)},d(r){r&&R(n),t&&t.d()}}}function Xa(e){let n,t,r;return{c(){n=g("input"),h(n,"type",e[5]),h(n,"class","input input-bordered h-8 ml-2"),n.value=e[0]},m(i,o){F(i,n,o),t||(r=x(n,"change",e[8]),t=!0)},p(i,o){o&32&&h(n,"type",i[5]),o&1&&n.value!==i[0]&&(n.value=i[0])},d(i){i&&R(n),t=!1,r()}}}function Za(e){let n,t,r;return{c(){n=g("button"),n.textContent="Cancel",h(n,"class","btn btn-sm btn-ghost")},m(i,o){F(i,n,o),t||(r=x(n,"click",e[9]),t=!0)},p:Oe,d(i){i&&R(n),t=!1,r()}}}function rp(e){let n,t,r,i,o,s,l,a,c,u,p,m,b=e[1]&&qa(e);function k(D,P){return D[5]?np:tp}let S=k(e),V=S(e),O=e[4]&&Za(e);return{c(){n=g("div"),t=g("div"),r=g("div"),b&&b.c(),i=w(),o=g("span"),V.c(),s=w(),l=g("div"),O&&O.c(),a=w(),c=g("button"),c.textContent="Confirm",h(c,"class","btn btn-sm btn-primary"),h(l,"class","flex-none"),h(t,"class","alert shadow-lg max-w-xl"),q(t,"alert-info",e[3]==="info"),q(t,"alert-error",e[3]==="error"),h(n,"class","fixed top-12 flex justify-center w-full z-30")},m(D,P){F(D,n,P),f(n,t),f(t,r),b&&b.m(r,null),f(r,i),f(r,o),V.m(o,null),f(t,s),f(t,l),O&&O.m(l,null),f(l,a),f(l,c),u=!0,p||(m=x(c,"click",e[10]),p=!0)},p(D,[P]){D[1]?b?(b.p(D,P),P&2&&$(b,1)):(b=qa(D),b.c(),$(b,1),b.m(r,i)):b&&(nt(),W(b,1,1,()=>{b=null}),rt()),S===(S=k(D))&&V?V.p(D,P):(V.d(1),V=S(D),V&&(V.c(),V.m(o,null))),D[4]?O?O.p(D,P):(O=Za(D),O.c(),O.m(l,a)):O&&(O.d(1),O=null),(!u||P&8)&&q(t,"alert-info",D[3]==="info"),(!u||P&8)&&q(t,"alert-error",D[3]==="error")},i(D){u||($(b),u=!0)},o(D){W(b),u=!1},d(D){D&&R(n),b&&b.d(),V.d(),O&&O.d(),p=!1,m()}}}function ip(e,n,t){let{icon:r}=n,{message:i}=n,{type:o="info"}=n,{showCancel:s=!0}=n,{askForData:l=""}=n,{dataValue:a}=n,{callback:c}=n;const u=zr();function p(k){const S=k.target;t(0,a=S.value)}const m=()=>{c==null||c({canceled:!0,data:a}),u("close")},b=()=>{c==null||c({canceled:!1,data:a}),u("close")};return e.$$set=k=>{"icon"in k&&t(1,r=k.icon),"message"in k&&t(2,i=k.message),"type"in k&&t(3,o=k.type),"showCancel"in k&&t(4,s=k.showCancel),"askForData"in k&&t(5,l=k.askForData),"dataValue"in k&&t(0,a=k.dataValue),"callback"in k&&t(6,c=k.callback)},[a,r,i,o,s,l,c,u,p,m,b]}class op extends Ut{constructor(n){super(),Bt(this,n,ip,rp,Et,{icon:1,message:2,type:3,showCancel:4,askForData:5,dataValue:0,callback:6})}}function Ja(e){let n,t;const r=[e[0]];let i={};for(let o=0;o<r.length;o+=1)i=qu(i,r[o]);return n=new op({props:i}),n.$on("close",e[1]),{c(){se(n.$$.fragment)},m(o,s){re(n,o,s),t=!0},p(o,s){const l=s&1?df(r,[mf(o[0])]):{};n.$set(l)},i(o){t||($(n.$$.fragment,o),t=!0)},o(o){W(n.$$.fragment,o),t=!1},d(o){ie(n,o)}}}function lp(e){let n,t,r=e[0]&&Ja(e);return{c(){r&&r.c(),n=Nn()},m(i,o){r&&r.m(i,o),F(i,n,o),t=!0},p(i,[o]){i[0]?r?(r.p(i,o),o&1&&$(r,1)):(r=Ja(i),r.c(),$(r,1),r.m(n.parentNode,n)):r&&(nt(),W(r,1,1,()=>{r=null}),rt())},i(i){t||($(r),t=!0)},o(i){W(r),t=!1},d(i){r&&r.d(i),i&&R(n)}}}function sp(e,n,t){let r;y(e,Nl,a=>t(2,r=a));let i,o=[];const s=Ue.subscribe(a=>{!a||(a.message.includes("Lost Connection to")||a.message.includes("Unable to connect to"))&&((i==null?void 0:i.message)===a.message||o.find(c=>c.message===a.message))||(o.unshift(a),i||l())});function l(){t(0,i=o.pop()),N(Nl,r=!!i,r)}return Uc(()=>s==null?void 0:s.unsubscribe()),[i,l]}class ap extends Ut{constructor(n){super(),Bt(this,n,sp,lp,Et,{})}}function So(e){return window.location.port==="4173"||window.location.port==="5174"?"http://localhost:"+55e3+e:e}function Qa(e){let n,t,r,i,o;return{c(){n=g("input"),h(n,"type","checkbox"),h(n,"class","multi-line-checkbox svelte-i377rk"),h(n,"id",t="multi-line-checkbox-"+e[0].id),h(n,"aria-label",r=e[0].id)},m(s,l){F(s,n,l),i||(o=x(n,"change",e[18]),i=!0)},p(s,l){l&1&&t!==(t="multi-line-checkbox-"+s[0].id)&&h(n,"id",t),l&1&&r!==(r=s[0].id)&&h(n,"aria-label",r)},d(s){s&&R(n),i=!1,o()}}}function ec(e){let n,t,r,i,o,s,l,a;return{c(){n=g("div"),t=g("button"),t.textContent="📷",r=w(),i=g("button"),i.textContent="🔊",o=w(),s=g("button"),s.textContent="🌐",h(t,"title","Screenshot"),be(t,"background-color","#333"),be(t,"color","#fff"),be(t,"border","1px solid #555"),be(t,"padding","6px 10px"),be(t,"font-size","10px"),be(t,"border-radius","4px"),be(t,"cursor","pointer"),be(t,"transition","background-color 0.3s"),h(t,"tabindex","-1"),h(t,"class","svelte-i377rk"),h(i,"title","Audio"),be(i,"background-color","#333"),be(i,"color","#fff"),be(i,"border","1px solid #555"),be(i,"padding","6px 10px"),be(i,"font-size","10px"),be(i,"border-radius","4px"),be(i,"cursor","pointer"),be(i,"transition","background-color 0.3s"),h(i,"tabindex","-1"),h(i,"class","svelte-i377rk"),h(s,"title","Translate"),be(s,"background-color","#333"),be(s,"color","#fff"),be(s,"border","1px solid #555"),be(s,"padding","6px 10px"),be(s,"font-size","10px"),be(s,"border-radius","4px"),be(s,"cursor","pointer"),be(s,"transition","background-color 0.3s"),h(s,"tabindex","-1"),h(s,"class","svelte-i377rk"),h(n,"class","textline-buttons unselectable svelte-i377rk")},m(c,u){F(c,n,u),f(n,t),f(n,r),f(n,i),f(n,o),f(n,s),l||(a=[x(t,"click",e[20]),x(i,"click",e[21]),x(s,"click",e[22])],l=!0)},p:Oe,d(c){c&&R(n),l=!1,At(a)}}}function tc(e){let n,t=e[6]&&e[6].includes(e[0].id),r,i,o=e[0].text+"",s,l,a,c=e[6]&&e[6].includes(e[0].id),u,p,m=t&&Qa(e),b=c&&ec(e);return{c(){n=g("div"),m&&m.c(),r=w(),i=g("p"),s=dt(o),a=w(),b&&b.c(),h(i,"class","my-2 cursor-pointer border-2 svelte-i377rk"),h(i,"contenteditable",e[4]),q(i,"py-4",!e[5]),q(i,"px-2",!e[5]),q(i,"py-2",e[5]),q(i,"px-4",e[5]),q(i,"border-transparent",!e[3]),q(i,"cursor-text",e[4]),q(i,"border-primary",e[3]),q(i,"border-accent-focus",e[4]),q(i,"whitespace-pre-wrap",e[8]),h(n,"class","textline2 svelte-i377rk")},m(k,S){F(k,n,S),m&&m.m(n,null),f(n,r),f(n,i),f(i,s),e[19](i),f(n,a),b&&b.m(n,null),u||(p=[x(i,"dblclick",e[10]),x(i,"keyup",jt)],u=!0)},p(k,S){e=k,S&65&&(t=e[6]&&e[6].includes(e[0].id)),t?m?m.p(e,S):(m=Qa(e),m.c(),m.m(n,r)):m&&(m.d(1),m=null),S&1&&o!==(o=e[0].text+"")&&$t(s,o),S&16&&h(i,"contenteditable",e[4]),S&32&&q(i,"py-4",!e[5]),S&32&&q(i,"px-2",!e[5]),S&32&&q(i,"py-2",e[5]),S&32&&q(i,"px-4",e[5]),S&8&&q(i,"border-transparent",!e[3]),S&16&&q(i,"cursor-text",e[4]),S&8&&q(i,"border-primary",e[3]),S&16&&q(i,"border-accent-focus",e[4]),S&256&&q(i,"whitespace-pre-wrap",e[8]),S&65&&(c=e[6]&&e[6].includes(e[0].id)),c?b?b.p(e,S):(b=ec(e),b.c(),b.m(n,null)):b&&(b.d(1),b=null)},i(k){l||Rr(()=>{l=Gc(i,Su,{x:e[5]?100:-100,duration:e[7]?250:0}),l.start()})},o:Oe,d(k){k&&R(n),m&&m.d(),e[19](null),b&&b.d(),u=!1,At(p)}}}function nc(e){let n,t,r,i,o,s=e[9].get(e[0].id)+"",l,a;return r=new we({props:{class:e[1]?"":"mr-2",path:$f}}),{c(){n=g("div"),t=g("div"),se(r.$$.fragment),i=w(),o=g("span"),l=dt(s),q(o,"mt-2",e[1]),h(t,"class","flex items-center"),h(n,"class","flex justify-center text-xs my-2 py-2 border-primary border-dashed milestone"),q(n,"border-x-2",e[1]),q(n,"border-y-2",!e[1]),q(n,"py-4",!e[5]),q(n,"px-2",!e[5]),q(n,"py-2",e[5]),q(n,"px-4",e[5])},m(c,u){F(c,n,u),f(n,t),re(r,t,null),f(t,i),f(t,o),f(o,l),a=!0},p(c,u){const p={};u&2&&(p.class=c[1]?"":"mr-2"),r.$set(p),(!a||u&513)&&s!==(s=c[9].get(c[0].id)+"")&&$t(l,s),(!a||u&2)&&q(o,"mt-2",c[1]),(!a||u&2)&&q(n,"border-x-2",c[1]),(!a||u&2)&&q(n,"border-y-2",!c[1]),(!a||u&32)&&q(n,"py-4",!c[5]),(!a||u&32)&&q(n,"px-2",!c[5]),(!a||u&32)&&q(n,"py-2",c[5]),(!a||u&32)&&q(n,"px-4",c[5])},i(c){a||($(r.$$.fragment,c),a=!0)},o(c){W(r.$$.fragment,c),a=!1},d(c){c&&R(n),ie(r)}}}function cp(e){let n=e[0].text,t,r,i,o=e[9].has(e[0].id),s,l,a=tc(e),c=o&&nc(e);return{c(){a.c(),t=w(),r=new Bc(!1),i=w(),c&&c.c(),s=Nn(),r.a=i},m(u,p){a.m(u,p),F(u,t,p),r.m(Lu,u,p),F(u,i,p),c&&c.m(u,p),F(u,s,p),l=!0},p(u,[p]){p&1&&Et(n,n=u[0].text)?(nt(),W(a,1,1,Oe),rt(),a=tc(u),a.c(),$(a,1),a.m(t.parentNode,t)):a.p(u,p),p&513&&(o=u[9].has(u[0].id)),o?c?(c.p(u,p),p&513&&$(c,1)):(c=nc(u),c.c(),$(c,1),c.m(s.parentNode,s)):c&&(nt(),W(c,1,1,()=>{c=null}),rt())},i(u){l||($(a),$(c),l=!0)},o(u){W(a),W(c),l=!1},d(u){a.d(u),u&&R(t),u&&r.d(),u&&R(i),c&&c.d(u),u&&R(s)}}}function up(e,n,t){let r,i,o,s,l,a,c,u;y(e,Ps,A=>t(24,i=A)),y(e,Cl,A=>t(6,o=A)),y(e,zi,A=>t(7,s=A)),y(e,jr,A=>t(25,l=A)),y(e,Wr,A=>t(1,a=A)),y(e,Ri,A=>t(8,c=A)),y(e,Ur,A=>t(9,u=A));let{line:p}=n,{index:m}=n,{isLast:b}=n,{pipWindow:k=void 0}=n;function S(){t(3,I=!1)}function V(A){return I||A.intersectsNode(D)?p.id:void 0}const O=zr();let D,P="",I=!1,Z=!1;zl(()=>{b&&Rl(k||window,D.parentElement.parentElement,l,r,s?"smooth":"auto"),o&&o.includes(p.id)&&i&&E(p.id,"TL")}),Uc(()=>{document.removeEventListener("click",K,!1),O("edit",{inEdit:!1})});function J(A){var T;k||((T=window.getSelection())==null||T.removeAllRanges(),A.ctrlKey||A.metaKey?I?(t(3,I=!1),O("deselected",p.id)):(t(3,I=!0),O("selected",p.id)):(P=D.innerText,t(4,Z=!0),O("edit",{inEdit:!0}),document.addEventListener("click",K,!1),go().then(()=>{D.focus()})))}function K(A){const T=A.target;D.contains(T)||(t(4,Z=!1),document.removeEventListener("click",K,!1),O("edit",{inEdit:!1,data:{originalText:P,newText:D.innerText,lineIndex:m,line:p}}))}async function j(A){try{const T=await fetch(So("/update_checkbox"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:A})});if(!T.ok)throw new Error(`HTTP error! Status: ${T.status}`)}catch(T){console.error("Error updating checkbox:",T)}}function E(A,T,z=!1){console.log(A);let ue={TL:"/translate-line",Screenshot:"/get-screenshot",Audio:"/play-audio"}[T]??"";fetch(So(ue),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:A})}).then(_e=>{if(!_e.ok)throw new Error(`HTTP error! Status: ${_e.status}`);return _e.json()}).then(_e=>{T==="TL"&&(z||t(0,p.text=p.text+`
|
29
|
+
`+_e.TL,p)),console.log(`${T} action completed for event ID: ${A}`,_e)}).catch(_e=>{console.error(`Error performing ${T} action for event ID: ${A}`,_e)})}const B=()=>j(p.id);function U(A){mt[A?"unshift":"push"](()=>{D=A,t(2,D)})}const X=()=>E(p.id,"Screenshot"),ve=()=>E(p.id,"Audio"),ne=()=>E(p.id,"TL");return e.$$set=A=>{"line"in A&&t(0,p=A.line),"index"in A&&t(13,m=A.index),"isLast"in A&&t(14,b=A.isLast),"pipWindow"in A&&t(15,k=A.pipWindow)},e.$$.update=()=>{e.$$.dirty&32770&&t(5,r=!k&&a)},[p,a,D,I,Z,r,o,s,c,u,J,j,E,m,b,k,S,V,B,U,X,ve,ne]}class xu extends Ut{constructor(n){super(),Bt(this,n,up,cp,Et,{line:0,index:13,isLast:14,pipWindow:15,deselect:16,getIdIfSelected:17})}get deselect(){return this.$$.ctx[16]}get getIdIfSelected(){return this.$$.ctx[17]}}function fp(e){let n,t,r,i,o,s,l,a;return r=new we({props:{path:Xc}}),{c(){n=g("div"),t=g("div"),se(r.$$.fragment),i=w(),o=g("textarea"),h(t,"class","flex cursor-pointer items-end md:items-center"),h(n,"class","flex justify-end p-4"),h(o,"class","flex-1 overflow-auto ml-10 mr-2 mb-4 p-1 pb-2"),be(o,"resize","none"),o.value=e[0]},m(c,u){F(c,n,u),f(n,t),re(r,t,null),F(c,i,u),F(c,o,u),s=!0,l||(a=[x(t,"click",e[3]),x(t,"keyup",jt),x(o,"blur",e[2])],l=!0)},p(c,[u]){(!s||u&1)&&(o.value=c[0])},i(c){s||($(r.$$.fragment,c),s=!0)},o(c){W(r.$$.fragment,c),s=!1},d(c){c&&R(n),ie(r),c&&R(i),c&&R(o),l=!1,At(a)}}}function hp(e,n,t){let r,i;y(e,ko,l=>t(0,r=l)),y(e,Hl,l=>t(1,i=l));function o(l){N(ko,r=l.target.value,r)}return[r,i,o,()=>N(Hl,i=!1,i)]}class pp extends Ut{constructor(n){super(),Bt(this,n,hp,fp,Et,{})}}const{Map:Pu}=$s;function rc(e,n,t){const r=e.slice();return r[62]=n[t],r}function ic(e,n,t){const r=e.slice();return r[62]=n[t],r}function dp(e){let n,t,r,i,o,s=[],l=new Pu,a,c,u,p,m,b,k,S,V,O,D,P,I,Z,J,K,j,E,B,U,X,ve,ne,A=e[2].length?e[2]:e[4];const T=z=>z[62].name;for(let z=0;z<A.length;z+=1){let oe=rc(e,A,z),ue=T(oe);l.set(ue,s[z]=oc(ue,oe))}return u=new we({props:{path:yf}}),S=new we({props:{path:ys}}),I=new we({props:{path:Tf}}),E=new we({props:{path:so}}),{c(){n=g("details"),t=g("summary"),t.textContent="Presets",r=w(),i=g("div"),o=g("select");for(let z=0;z<s.length;z+=1)s[z].c();a=w(),c=g("div"),se(u.$$.fragment),p=w(),m=g("span"),m.textContent="Save",b=w(),k=g("div"),se(S.$$.fragment),V=w(),O=g("span"),O.textContent="Export/Import",D=w(),P=g("div"),se(I.$$.fragment),Z=w(),J=g("span"),J.textContent="Reload",K=w(),j=g("div"),se(E.$$.fragment),B=w(),U=g("span"),U.textContent="Delete",h(o,"class","select flex-1 max-w-md"),h(m,"class","label-text"),h(c,"role","button"),h(c,"class","flex flex-col items-center hover:text-primary ml-3"),h(O,"class","label-text"),h(k,"role","button"),h(k,"class","flex flex-col items-center hover:text-primary ml-3"),h(J,"class","label-text"),h(P,"role","button"),h(P,"class","flex flex-col items-center hover:text-primary ml-3"),q(P,"invisible",!e[1]),h(U,"class","label-text"),h(j,"role","button"),h(j,"class","flex flex-col items-center hover:text-primary ml-3"),q(j,"invisible",!e[1]),h(i,"class","flex items-center justify-between mt-2"),h(n,"role","button"),h(n,"class","col-span-4 mb-2")},m(z,oe){F(z,n,oe),f(n,t),f(n,r),f(n,i),f(i,o);for(let ue=0;ue<s.length;ue+=1)s[ue].m(o,null);wi(o,e[1]),f(i,a),f(i,c),re(u,c,null),f(c,p),f(c,m),f(i,b),f(i,k),re(S,k,null),f(k,V),f(k,O),f(i,D),f(i,P),re(I,P,null),f(P,Z),f(P,J),f(i,K),f(i,j),re(E,j,null),f(j,B),f(j,U),X=!0,ve||(ne=[x(o,"change",e[6]),x(c,"click",e[8]),x(c,"keyup",jt),x(k,"click",e[12]),x(k,"keyup",jt),x(P,"click",e[13]),x(P,"keyup",jt),x(j,"click",e[9]),x(j,"keyup",jt)],ve=!0)},p(z,oe){oe[0]&20&&(A=z[2].length?z[2]:z[4],s=Yr(s,oe,T,1,z,A,l,o,Yl,oc,null,rc)),(!X||oe[0]&22)&&wi(o,z[1]),(!X||oe[0]&2)&&q(P,"invisible",!z[1]),(!X||oe[0]&2)&&q(j,"invisible",!z[1])},i(z){X||($(u.$$.fragment,z),$(S.$$.fragment,z),$(I.$$.fragment,z),$(E.$$.fragment,z),X=!0)},o(z){W(u.$$.fragment,z),W(S.$$.fragment,z),W(I.$$.fragment,z),W(E.$$.fragment,z),X=!1},d(z){z&&R(n);for(let oe=0;oe<s.length;oe+=1)s[oe].d();ie(u),ie(S),ie(I),ie(E),ve=!1,At(ne)}}}function mp(e){let n,t=[],r=new Pu,i,o,s=e[2].length?e[2]:e[4];const l=a=>a[62].name;for(let a=0;a<s.length;a+=1){let c=ic(e,s,a),u=l(c);r.set(u,t[a]=lc(u,c))}return{c(){n=g("select");for(let a=0;a<t.length;a+=1)t[a].c();h(n,"class","w-48 hidden sm:block"),q(n,"sm:hidden",!e[3]||e[2].length<2)},m(a,c){F(a,n,c);for(let u=0;u<t.length;u+=1)t[u].m(n,null);wi(n,e[1]),i||(o=x(n,"change",e[6]),i=!0)},p(a,c){c[0]&20&&(s=a[2].length?a[2]:a[4],t=Yr(t,c,l,1,a,s,r,n,Yl,lc,null,ic)),c[0]&22&&wi(n,a[1]),c[0]&12&&q(n,"sm:hidden",!a[3]||a[2].length<2)},i:Oe,o:Oe,d(a){a&&R(n);for(let c=0;c<t.length;c+=1)t[c].d();i=!1,o()}}}function oc(e,n){let t,r=(n[62].name||"No Presets stored")+"",i,o,s;return{key:e,first:null,c(){t=g("option"),i=dt(r),o=w(),t.__value=s=n[62].name,t.value=t.__value,this.first=t},m(l,a){F(l,t,a),f(t,i),f(t,o)},p(l,a){n=l,a[0]&4&&r!==(r=(n[62].name||"No Presets stored")+"")&&$t(i,r),a[0]&4&&s!==(s=n[62].name)&&(t.__value=s,t.value=t.__value)},d(l){l&&R(t)}}}function lc(e,n){let t,r=n[62].name+"",i,o,s;return{key:e,first:null,c(){t=g("option"),i=dt(r),o=w(),t.__value=s=n[62].name,t.value=t.__value,this.first=t},m(l,a){F(l,t,a),f(t,i),f(t,o)},p(l,a){n=l,a[0]&4&&r!==(r=n[62].name+"")&&$t(i,r),a[0]&4&&s!==(s=n[62].name)&&(t.__value=s,t.value=t.__value)},d(l){l&&R(t)}}}function gp(e){let n,t,r,i;const o=[mp,dp],s=[];function l(a,c){return a[0]?0:1}return n=l(e),t=s[n]=o[n](e),{c(){t.c(),r=Nn()},m(a,c){s[n].m(a,c),F(a,r,c),i=!0},p(a,c){let u=n;n=l(a),n===u?s[n].p(a,c):(nt(),W(s[u],1,1,()=>{s[u]=null}),rt(),t=s[n],t?t.p(a,c):(t=s[n]=o[n](a),t.c()),$(t,1),t.m(r.parentNode,r))},i(a){i||($(t),i=!0)},o(a){W(t),i=!1},d(a){s[n].d(a),a&&R(r)}}}function bp(e,n,t){let r,i,o,s,l,a,c,u,p,m,b,k,S,V,O,D,P,I,Z,J,K,j,E,B,U,X,ve,ne,A,T,z,oe,ue,_e,Xe,Ve,Ze,Ye,He,yt,gt,Ne,ze,Fe,ye,Ie,bt,he,ut,We,Re;y(e,lr,_=>t(1,r=_)),y(e,_n,_=>t(2,i=_)),y(e,Ue,_=>t(14,o=_)),y(e,Ci,_=>t(15,s=_)),y(e,Br,_=>t(16,l=_)),y(e,zs,_=>t(17,a=_)),y(e,Us,_=>t(18,c=_)),y(e,Ur,_=>t(19,u=_)),y(e,Mr,_=>t(20,p=_)),y(e,qi,_=>t(21,m=_)),y(e,Gi,_=>t(22,b=_)),y(e,Ki,_=>t(23,k=_)),y(e,Yi,_=>t(24,S=_)),y(e,zi,_=>t(25,V=_)),y(e,Ui,_=>t(26,O=_)),y(e,Bi,_=>t(27,D=_)),y(e,ji,_=>t(28,P=_)),y(e,Wi,_=>t(29,I=_)),y(e,Fi,_=>t(30,Z=_)),y(e,Vi,_=>t(31,J=_)),y(e,Ri,_=>t(32,K=_)),y(e,jr,_=>t(33,j=_)),y(e,Wr,_=>t(34,E=_)),y(e,Ni,_=>t(35,B=_)),y(e,Hi,_=>t(36,U=_)),y(e,$i,_=>t(37,X=_)),y(e,Fr,_=>t(38,ve=_)),y(e,Mi,_=>t(39,ne=_)),y(e,Ii,_=>t(40,A=_)),y(e,Oi,_=>t(41,T=_)),y(e,Di,_=>t(42,z=_)),y(e,Ti,_=>t(43,oe=_)),y(e,Ai,_=>t(44,ue=_)),y(e,Pi,_=>t(45,_e=_)),y(e,xi,_=>t(46,Xe=_)),y(e,Li,_=>t(47,Ve=_)),y(e,Ei,_=>t(48,Ze=_)),y(e,yo,_=>t(3,Ye=_)),y(e,wo,_=>t(49,He=_)),y(e,Si,_=>t(50,yt=_)),y(e,ar,_=>t(51,gt=_)),y(e,Hr,_=>t(52,Ne=_)),y(e,Dr,_=>t(53,ze=_)),y(e,$r,_=>t(54,Fe=_)),y(e,ki,_=>t(55,ye=_)),y(e,Ir,_=>t(56,Ie=_)),y(e,$n,_=>t(57,bt=_)),y(e,Mn,_=>t(58,he=_)),y(e,_o,_=>t(59,ut=_)),y(e,ln,_=>t(60,We=_)),y(e,Or,_=>t(61,Re=_));let{isQuickSwitch:it=!1}=n;function vt(){return{theme$:Re,replacements$:We,windowTitle$:ut,websocketUrl$:he,secondaryWebsocketUrl$:bt,fontSize$:Ie,characterMilestone$:p,onlineFont$:ye,preventLastDuplicate$:Fe,maxLines$:ze,maxPipLines$:Ne,afkTimer$:gt,adjustTimerOnAfk$:yt,enableExternalClipboardMonitor$:He,showPresetQuickSwitch$:Ye,skipResetConfirmations$:s,persistStats$:Ze,persistNotes$:Ve,persistLines$:Xe,persistActionHistory$:_e,enablePaste$:ue,blockCopyOnPage$:oe,allowPasteDuringPause$:z,allowNewLineDuringPause$:T,autoStartTimerDuringPausePaste$:A,autoStartTimerDuringPause$:ne,preventGlobalDuplicate$:ve,mergeEqualLineStarts$:X,filterNonCJKLines:U,flashOnMissedLine$:B,displayVertical$:E,reverseLineOrder$:j,preserveWhitespace$:K,removeAllWhitespace$:J,showTimer$:Z,showSpeed$:I,showCharacterCount$:P,showLineCount$:D,blurStats$:O,enableLineAnimation$:V,enableAfkBlur$:S,enableAfkBlurRestart$:k,continuousReconnect$:l,showConnectionErrors$:b,customCSS$:m}}function je(_,de=!0){Or.next(_.settings.theme$??L.theme$),ln.next(_.settings.replacements$??L.replacements$),_o.next(_.settings.windowTitle$??L.windowTitle$),Mn.next(_.settings.websocketUrl$??L.websocketUrl$),$n.next(_.settings.secondaryWebsocketUrl$??""),Ir.next(_.settings.fontSize$??L.fontSize$),Mr.next(_.settings.characterMilestone$??L.characterMilestone$),ki.next(_.settings.onlineFont$??L.onlineFont$),$r.next(_.settings.preventLastDuplicate$??L.preventLastDuplicate$),Dr.next(_.settings.maxLines$??L.maxLines$),Hr.next(_.settings.maxPipLines$??L.maxPipLines$),ar.next(_.settings.afkTimer$??L.afkTimer$),Si.next(_.settings.adjustTimerOnAfk$??L.adjustTimerOnAfk$),wo.next(_.settings.enableExternalClipboardMonitor$??L.enableExternalClipboardMonitor$),yo.next(_.settings.showPresetQuickSwitch$??L.showPresetQuickSwitch$),Ci.next(_.settings.skipResetConfirmations$??L.skipResetConfirmations$),Ei.next(_.settings.persistStats$??L.persistStats$),Li.next(_.settings.persistNotes$??L.persistNotes$),xi.next(_.settings.persistLines$??L.persistLines$),Pi.next(_.settings.persistActionHistory$??L.persistActionHistory$),Ai.next(_.settings.enablePaste$??L.enablePaste$),Ti.next(_.settings.blockCopyOnPage$??L.blockCopyOnPage$),Di.next(_.settings.allowPasteDuringPause$??L.allowPasteDuringPause$),Oi.next(_.settings.allowNewLineDuringPause$??L.allowNewLineDuringPause$),Ii.next(_.settings.autoStartTimerDuringPausePaste$??L.autoStartTimerDuringPausePaste$),Mi.next(_.settings.autoStartTimerDuringPause$??L.autoStartTimerDuringPause$),Fr.next(_.settings.preventGlobalDuplicate$??L.preventGlobalDuplicate$),$i.next(_.settings.mergeEqualLineStarts$??L.mergeEqualLineStarts$),Hi.next(_.settings.filterNonCJKLines??L.filterNonCJKLines),Ni.next(_.settings.flashOnMissedLine$??L.flashOnMissedLine$),Wr.next(_.settings.displayVertical$??L.displayVertical$),jr.next(_.settings.reverseLineOrder$??L.reverseLineOrder$),Ri.next(_.settings.preserveWhitespace$??L.preserveWhitespace$),Vi.next(_.settings.removeAllWhitespace$??L.removeAllWhitespace$),Fi.next(_.settings.showTimer$??L.showTimer$),Wi.next(_.settings.showSpeed$??L.showSpeed$),ji.next(_.settings.showCharacterCount$??L.showCharacterCount$),Bi.next(_.settings.showLineCount$??L.showLineCount$),Ui.next(_.settings.blurStats$??L.blurStats$),zi.next(_.settings.enableLineAnimation$??L.enableLineAnimation$),Yi.next(_.settings.enableAfkBlur$??L.enableAfkBlur$),Ki.next(_.settings.enableAfkBlurRestart$??L.enableAfkBlurRestart$),Br.next(_.settings.continuousReconnect$??L.continuousReconnect$),Gi.next(_.settings.showConnectionErrors$??L.showConnectionErrors$),qi.next(_.settings.customCSS$??L.customCSS$),de&&N(lr,r=_.name,r),p===0&&N(Ur,u=new Map,u),go().then(()=>{Be("layoutChange"),c!==1&&l&&Ql.next(),a!==1&&l&&es.next()})}const ae=[{name:""}],Be=zr();function _t(_){const de=_.target;Se(de.selectedOptions[0].value)}function Se(_){const de=i.find(Dt=>Dt.name===_);de&&je(de)}async function ke(){const{canceled:_,data:de}=await new Promise(ot=>{N(Ue,o={icon:tn,askForData:"text",dataValue:r||"Preset Name",message:"",callback:ot},o)});if(_||!de)return;const Dt=i.findIndex(ot=>ot.name===de),Pe={name:de,settings:vt()};Dt>-1?N(_n,i[Dt]=Pe,i):N(_n,i=[...i,Pe],i),N(lr,r=de,r)}async function kt(){if(!s){const{canceled:_}=await new Promise(de=>{N(Ue,o={icon:tn,message:"Preset will be deleted",callback:de},o)});if(_)return}N(_n,i=i.filter(_=>_.name!==r),i),N(lr,r="",r)}const Tt=_=>Be("exportImportPreset",_),Ee=()=>Se(r);return e.$$set=_=>{"isQuickSwitch"in _&&t(0,it=_.isQuickSwitch)},[it,r,i,Ye,ae,Be,_t,Se,ke,kt,vt,je,Tt,Ee]}class Au extends Ut{constructor(n){super(),Bt(this,n,bp,gp,Et,{isQuickSwitch:0,getCurrentSettings:10,updateSettingsWithPreset:11},null,[-1,-1,-1])}get getCurrentSettings(){return this.$$.ctx[10]}get updateSettingsWithPreset(){return this.$$.ctx[11]}}function vp(e,n){const t=r=>{!r.defaultPrevented&&!e.contains(r.target)&&n(r)};return document.addEventListener("click",t,!0),{destroy(){document.removeEventListener("click",t,!0)}}}function sc(e,n,t){const r=e.slice();return r[22]=n[t],r}function ac(e){let n,t,r,i,o;return t=new we({props:{path:Cf}}),{c(){n=g("button"),se(t.$$.fragment),h(n,"title","Save"),h(n,"class","hover:text-primary")},m(s,l){F(s,n,l),re(t,n,null),r=!0,i||(o=x(n,"click",e[10]),i=!0)},p:Oe,i(s){r||($(t.$$.fragment,s),r=!0)},o(s){W(t.$$.fragment,s),r=!1},d(s){s&&R(n),ie(t),i=!1,o()}}}function cc(e,n){let t,r,i,o=n[22].label+"",s,l,a,c;return{key:e,first:null,c(){t=g("label"),r=g("input"),i=w(),s=dt(o),l=w(),h(r,"type","checkbox"),r.__value=n[22].value,r.value=r.__value,n[18][0].push(r),this.first=t},m(u,p){F(u,t,p),f(t,r),r.checked=~n[0].flags.indexOf(r.__value),f(t,i),f(t,s),f(t,l),a||(c=[x(r,"change",n[17]),x(r,"change",n[9])],a=!0)},p(u,p){n=u,p&1&&(r.checked=~n[0].flags.indexOf(r.__value))},d(u){u&&R(t),n[18][0].splice(n[18][0].indexOf(r),1),a=!1,At(c)}}}function _p(e){let n=(e[5]??"")+"",t,r,i,o,s,l,a,c,u,p,m,b,k,S,V,O,D=[],P=new Map,I,Z,J,K,j=(e[4]||e[3])+"",E,B,U,X=e[0].pattern&&ac(e);l=new we({props:{path:qc}}),u=new we({props:{path:Ef}});let ve=e[7];const ne=A=>A[22].value;for(let A=0;A<ve.length;A+=1){let T=sc(e,ve,A),z=ne(T);P.set(z,D[A]=cc(z,T))}return{c(){t=dt(n),r=w(),i=g("div"),X&&X.c(),o=w(),s=g("button"),se(l.$$.fragment),a=w(),c=g("button"),se(u.$$.fragment),p=w(),m=g("div"),b=g("input"),k=w(),S=g("input"),V=w(),O=g("div");for(let A=0;A<D.length;A+=1)D[A].c();I=w(),Z=g("textarea"),J=w(),K=g("div"),h(s,"title","Cancel"),h(s,"class","ml-2 hover:text-primary"),h(c,"title","Cancel"),h(c,"class","ml-2 hover:text-primary"),h(i,"class","flex justify-end my-2"),h(b,"placeholder","text pattern"),h(b,"class","w-full my-2"),h(S,"placeholder","replacement pattern"),h(S,"class","w-full my-2"),h(O,"class","flex justify-between my-4"),h(Z,"name","test-value"),h(Z,"placeholder","test value"),h(Z,"class","w-full my-4"),h(Z,"rows","3"),h(K,"class","whitespace-pre-wrap break-all")},m(A,T){F(A,t,T),F(A,r,T),F(A,i,T),X&&X.m(i,null),f(i,o),f(i,s),re(l,s,null),f(i,a),f(i,c),re(u,c,null),F(A,p,T),F(A,m,T),f(m,b),wt(b,e[0].pattern),e[15](b),f(m,k),f(m,S),wt(S,e[0].replaces),f(m,V),f(m,O);for(let z=0;z<D.length;z+=1)D[z].m(O,null);f(m,I),f(m,Z),wt(Z,e[2]),f(m,J),f(m,K),K.innerHTML=j,E=!0,B||(U=[x(s,"click",e[12]),x(c,"click",e[13]),x(b,"input",e[14]),x(b,"input",e[9]),x(S,"input",e[16]),x(S,"input",e[9]),x(Z,"input",e[19]),x(Z,"input",e[9])],B=!0)},p(A,[T]){(!E||T&32)&&n!==(n=(A[5]??"")+"")&&$t(t,n),A[0].pattern?X?(X.p(A,T),T&1&&$(X,1)):(X=ac(A),X.c(),$(X,1),X.m(i,o)):X&&(nt(),W(X,1,1,()=>{X=null}),rt()),T&1&&b.value!==A[0].pattern&&wt(b,A[0].pattern),T&1&&S.value!==A[0].replaces&&wt(S,A[0].replaces),T&641&&(ve=A[7],D=Yr(D,T,ne,1,A,ve,P,O,Yl,cc,null,sc)),T&4&&wt(Z,A[2]),(!E||T&24)&&j!==(j=(A[4]||A[3])+"")&&(K.innerHTML=j)},i(A){E||($(X),$(l.$$.fragment,A),$(u.$$.fragment,A),E=!0)},o(A){W(X),W(l.$$.fragment,A),W(u.$$.fragment,A),E=!1},d(A){A&&R(t),A&&R(r),A&&R(i),X&&X.d(),ie(l),ie(u),A&&R(p),A&&R(m),e[15](null);for(let T=0;T<D.length;T+=1)D[T].d();B=!1,At(U)}}}function wp(e,n,t){let r,i;y(e,ln,E=>t(20,r=E));let{currentReplacement:o}=n;const s=zr(),l=new Zi,a=o?JSON.parse(JSON.stringify(o)):{pattern:"",replaces:"",flags:[],enabled:!0},c=[{label:"global",value:"g"},{label:"multiline",value:"m"},{label:"insensitive",value:"i"},{label:"unicode",value:"u"}],u=l.pipe(Bs(500),tr(()=>{try{if(t(4,k=""),!a.pattern||!m)return;t(3,b=Cu(m,[a]))}catch({message:E}){t(4,k=`Error: ${E}`)}}),rr());y(e,u,E=>t(5,i=E));let p,m="",b="",k="";function S(){p.setCustomValidity(k),l.next()}function V(){if(!o&&r.find(E=>E.pattern===a.pattern))return p.setCustomValidity("This pattern already exists"),p.reportValidity();o?N(ln,r=r.map(E=>E.pattern===o.pattern?a:E),r):N(ln,r=[...r,a],r),s("close")}const O=[[]],D=()=>s("close"),P=()=>window.open("https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#description","_blank");function I(){a.pattern=this.value,t(0,a)}function Z(E){mt[E?"unshift":"push"](()=>{p=E,t(1,p)})}function J(){a.replaces=this.value,t(0,a)}function K(){a.flags=rf(O[0],this.__value,this.checked),t(0,a)}function j(){m=this.value,t(2,m)}return e.$$set=E=>{"currentReplacement"in E&&t(11,o=E.currentReplacement)},[a,p,m,b,k,i,s,c,u,S,V,o,D,P,I,Z,J,K,O,j]}class yp extends Ut{constructor(n){super(),Bt(this,n,wp,_p,Et,{currentReplacement:11})}}function uc(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function kn(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?uc(Object(t),!0).forEach(function(r){kp(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):uc(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Ll(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ll=function(n){return typeof n}:Ll=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ll(e)}function kp(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Sn(){return Sn=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Sn.apply(this,arguments)}function Sp(e,n){if(e==null)return{};var t={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(n.indexOf(i)>=0)&&(t[i]=e[i]);return t}function Cp(e,n){if(e==null)return{};var t=Sp(e,n),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(n.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(t[r]=e[r])}return t}var Ep="1.15.2";function Hn(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var Wn=Hn(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),xo=Hn(/Edge/i),fc=Hn(/firefox/i),ao=Hn(/safari/i)&&!Hn(/chrome/i)&&!Hn(/android/i),Tu=Hn(/iP(ad|od|hone)/i),Du=Hn(/chrome/i)&&Hn(/android/i),Ou={capture:!1,passive:!1};function De(e,n,t){e.addEventListener(n,t,!Wn&&Ou)}function xe(e,n,t){e.removeEventListener(n,t,!Wn&&Ou)}function Vl(e,n){if(n){if(n[0]===">"&&(n=n.substring(1)),e)try{if(e.matches)return e.matches(n);if(e.msMatchesSelector)return e.msMatchesSelector(n);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(n)}catch{return!1}return!1}}function Lp(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function fn(e,n,t,r){if(e){t=t||document;do{if(n!=null&&(n[0]===">"?e.parentNode===t&&Vl(e,n):Vl(e,n))||r&&e===t)return e;if(e===t)break}while(e=Lp(e))}return null}var hc=/\s+/g;function xt(e,n,t){if(e&&n)if(e.classList)e.classList[t?"add":"remove"](n);else{var r=(" "+e.className+" ").replace(hc," ").replace(" "+n+" "," ");e.className=(r+(t?" "+n:"")).replace(hc," ")}}function fe(e,n,t){var r=e&&e.style;if(r){if(t===void 0)return document.defaultView&&document.defaultView.getComputedStyle?t=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(t=e.currentStyle),n===void 0?t:t[n];!(n in r)&&n.indexOf("webkit")===-1&&(n="-webkit-"+n),r[n]=t+(typeof t=="string"?"":"px")}}function _i(e,n){var t="";if(typeof e=="string")t=e;else do{var r=fe(e,"transform");r&&r!=="none"&&(t=r+" "+t)}while(!n&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(t)}function Iu(e,n,t){if(e){var r=e.getElementsByTagName(n),i=0,o=r.length;if(t)for(;i<o;i++)t(r[i],i);return r}return[]}function yn(){var e=document.scrollingElement;return e||document.documentElement}function ct(e,n,t,r,i){if(!(!e.getBoundingClientRect&&e!==window)){var o,s,l,a,c,u,p;if(e!==window&&e.parentNode&&e!==yn()?(o=e.getBoundingClientRect(),s=o.top,l=o.left,a=o.bottom,c=o.right,u=o.height,p=o.width):(s=0,l=0,a=window.innerHeight,c=window.innerWidth,u=window.innerHeight,p=window.innerWidth),(n||t)&&e!==window&&(i=i||e.parentNode,!Wn))do if(i&&i.getBoundingClientRect&&(fe(i,"transform")!=="none"||t&&fe(i,"position")!=="static")){var m=i.getBoundingClientRect();s-=m.top+parseInt(fe(i,"border-top-width")),l-=m.left+parseInt(fe(i,"border-left-width")),a=s+o.height,c=l+o.width;break}while(i=i.parentNode);if(r&&e!==window){var b=_i(i||e),k=b&&b.a,S=b&&b.d;b&&(s/=S,l/=k,p/=k,u/=S,a=s+u,c=l+p)}return{top:s,left:l,bottom:a,right:c,width:p,height:u}}}function pc(e,n,t){for(var r=sr(e,!0),i=ct(e)[n];r;){var o=ct(r)[t],s=void 0;if(t==="top"||t==="left"?s=i>=o:s=i<=o,!s)return r;if(r===yn())break;r=sr(r,!1)}return!1}function Xi(e,n,t,r){for(var i=0,o=0,s=e.children;o<s.length;){if(s[o].style.display!=="none"&&s[o]!==ce.ghost&&(r||s[o]!==ce.dragged)&&fn(s[o],t.draggable,e,!1)){if(i===n)return s[o];i++}o++}return null}function Ys(e,n){for(var t=e.lastElementChild;t&&(t===ce.ghost||fe(t,"display")==="none"||n&&!Vl(t,n));)t=t.previousElementSibling;return t||null}function Wt(e,n){var t=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==ce.clone&&(!n||Vl(e,n))&&t++;return t}function dc(e){var n=0,t=0,r=yn();if(e)do{var i=_i(e),o=i.a,s=i.d;n+=e.scrollLeft*o,t+=e.scrollTop*s}while(e!==r&&(e=e.parentNode));return[n,t]}function xp(e,n){for(var t in e)if(e.hasOwnProperty(t)){for(var r in n)if(n.hasOwnProperty(r)&&n[r]===e[t][r])return Number(t)}return-1}function sr(e,n){if(!e||!e.getBoundingClientRect)return yn();var t=e,r=!1;do if(t.clientWidth<t.scrollWidth||t.clientHeight<t.scrollHeight){var i=fe(t);if(t.clientWidth<t.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||t.clientHeight<t.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!t.getBoundingClientRect||t===document.body)return yn();if(r||n)return t;r=!0}}while(t=t.parentNode);return yn()}function Pp(e,n){if(e&&n)for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e}function as(e,n){return Math.round(e.top)===Math.round(n.top)&&Math.round(e.left)===Math.round(n.left)&&Math.round(e.height)===Math.round(n.height)&&Math.round(e.width)===Math.round(n.width)}var co;function Mu(e,n){return function(){if(!co){var t=arguments,r=this;t.length===1?e.call(r,t[0]):e.apply(r,t),co=setTimeout(function(){co=void 0},n)}}}function Ap(){clearTimeout(co),co=void 0}function $u(e,n,t){e.scrollLeft+=n,e.scrollTop+=t}function Hu(e){var n=window.Polymer,t=window.jQuery||window.Zepto;return n&&n.dom?n.dom(e).cloneNode(!0):t?t(e).clone(!0)[0]:e.cloneNode(!0)}function Nu(e,n,t){var r={};return Array.from(e.children).forEach(function(i){var o,s,l,a;if(!(!fn(i,n.draggable,e,!1)||i.animated||i===t)){var c=ct(i);r.left=Math.min((o=r.left)!==null&&o!==void 0?o:1/0,c.left),r.top=Math.min((s=r.top)!==null&&s!==void 0?s:1/0,c.top),r.right=Math.max((l=r.right)!==null&&l!==void 0?l:-1/0,c.right),r.bottom=Math.max((a=r.bottom)!==null&&a!==void 0?a:-1/0,c.bottom)}}),r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}var Zt="Sortable"+new Date().getTime();function Tp(){var e=[],n;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(i){if(!(fe(i,"display")==="none"||i===ce.ghost)){e.push({target:i,rect:ct(i)});var o=kn({},e[e.length-1].rect);if(i.thisAnimationDuration){var s=_i(i,!0);s&&(o.top-=s.f,o.left-=s.e)}i.fromRect=o}})}},addAnimationState:function(r){e.push(r)},removeAnimationState:function(r){e.splice(xp(e,{target:r}),1)},animateAll:function(r){var i=this;if(!this.options.animation){clearTimeout(n),typeof r=="function"&&r();return}var o=!1,s=0;e.forEach(function(l){var a=0,c=l.target,u=c.fromRect,p=ct(c),m=c.prevFromRect,b=c.prevToRect,k=l.rect,S=_i(c,!0);S&&(p.top-=S.f,p.left-=S.e),c.toRect=p,c.thisAnimationDuration&&as(m,p)&&!as(u,p)&&(k.top-p.top)/(k.left-p.left)===(u.top-p.top)/(u.left-p.left)&&(a=Op(k,m,b,i.options)),as(p,u)||(c.prevFromRect=u,c.prevToRect=p,a||(a=i.options.animation),i.animate(c,k,p,a)),a&&(o=!0,s=Math.max(s,a),clearTimeout(c.animationResetTimer),c.animationResetTimer=setTimeout(function(){c.animationTime=0,c.prevFromRect=null,c.fromRect=null,c.prevToRect=null,c.thisAnimationDuration=null},a),c.thisAnimationDuration=a)}),clearTimeout(n),o?n=setTimeout(function(){typeof r=="function"&&r()},s):typeof r=="function"&&r(),e=[]},animate:function(r,i,o,s){if(s){fe(r,"transition",""),fe(r,"transform","");var l=_i(this.el),a=l&&l.a,c=l&&l.d,u=(i.left-o.left)/(a||1),p=(i.top-o.top)/(c||1);r.animatingX=!!u,r.animatingY=!!p,fe(r,"transform","translate3d("+u+"px,"+p+"px,0)"),this.forRepaintDummy=Dp(r),fe(r,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),fe(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){fe(r,"transition",""),fe(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},s)}}}}function Dp(e){return e.offsetWidth}function Op(e,n,t,r){return Math.sqrt(Math.pow(n.top-e.top,2)+Math.pow(n.left-e.left,2))/Math.sqrt(Math.pow(n.top-t.top,2)+Math.pow(n.left-t.left,2))*r.animation}var pi=[],cs={initializeByDefault:!0},Po={mount:function(n){for(var t in cs)cs.hasOwnProperty(t)&&!(t in n)&&(n[t]=cs[t]);pi.forEach(function(r){if(r.pluginName===n.pluginName)throw"Sortable: Cannot mount plugin ".concat(n.pluginName," more than once")}),pi.push(n)},pluginEvent:function(n,t,r){var i=this;this.eventCanceled=!1,r.cancel=function(){i.eventCanceled=!0};var o=n+"Global";pi.forEach(function(s){t[s.pluginName]&&(t[s.pluginName][o]&&t[s.pluginName][o](kn({sortable:t},r)),t.options[s.pluginName]&&t[s.pluginName][n]&&t[s.pluginName][n](kn({sortable:t},r)))})},initializePlugins:function(n,t,r,i){pi.forEach(function(l){var a=l.pluginName;if(!(!n.options[a]&&!l.initializeByDefault)){var c=new l(n,t,n.options);c.sortable=n,c.options=n.options,n[a]=c,Sn(r,c.defaults)}});for(var o in n.options)if(n.options.hasOwnProperty(o)){var s=this.modifyOption(n,o,n.options[o]);typeof s<"u"&&(n.options[o]=s)}},getEventProperties:function(n,t){var r={};return pi.forEach(function(i){typeof i.eventProperties=="function"&&Sn(r,i.eventProperties.call(t[i.pluginName],n))}),r},modifyOption:function(n,t,r){var i;return pi.forEach(function(o){n[o.pluginName]&&o.optionListeners&&typeof o.optionListeners[t]=="function"&&(i=o.optionListeners[t].call(n[o.pluginName],r))}),i}};function Ip(e){var n=e.sortable,t=e.rootEl,r=e.name,i=e.targetEl,o=e.cloneEl,s=e.toEl,l=e.fromEl,a=e.oldIndex,c=e.newIndex,u=e.oldDraggableIndex,p=e.newDraggableIndex,m=e.originalEvent,b=e.putSortable,k=e.extraEventProperties;if(n=n||t&&t[Zt],!!n){var S,V=n.options,O="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!Wn&&!xo?S=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(S=document.createEvent("Event"),S.initEvent(r,!0,!0)),S.to=s||t,S.from=l||t,S.item=i||t,S.clone=o,S.oldIndex=a,S.newIndex=c,S.oldDraggableIndex=u,S.newDraggableIndex=p,S.originalEvent=m,S.pullMode=b?b.lastPutMode:void 0;var D=kn(kn({},k),Po.getEventProperties(r,n));for(var P in D)S[P]=D[P];t&&t.dispatchEvent(S),V[O]&&V[O].call(n,S)}}var Mp=["evt"],Ft=function(n,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=r.evt,o=Cp(r,Mp);Po.pluginEvent.bind(ce)(n,t,kn({dragEl:Y,parentEl:Qe,ghostEl:me,rootEl:Ge,nextEl:Ar,lastDownEl:xl,cloneEl:qe,cloneHidden:ir,dragStarted:ro,putSortable:Ct,activeSortable:ce.active,originalEvent:i,oldIndex:gi,oldDraggableIndex:uo,newIndex:qt,newDraggableIndex:er,hideGhostForTarget:Wu,unhideGhostForTarget:ju,cloneNowHidden:function(){ir=!0},cloneNowShown:function(){ir=!1},dispatchSortableEvent:function(l){Mt({sortable:t,name:l,originalEvent:i})}},o))};function Mt(e){Ip(kn({putSortable:Ct,cloneEl:qe,targetEl:Y,rootEl:Ge,oldIndex:gi,oldDraggableIndex:uo,newIndex:qt,newDraggableIndex:er},e))}var Y,Qe,me,Ge,Ar,xl,qe,ir,gi,qt,uo,er,bl,Ct,mi=!1,Fl=!1,Wl=[],xr,un,us,fs,mc,gc,ro,di,fo,ho=!1,vl=!1,Pl,Lt,hs=[],As=!1,jl=[],ts=typeof document<"u",_l=Tu,bc=xo||Wn?"cssFloat":"float",$p=ts&&!Du&&!Tu&&"draggable"in document.createElement("div"),Ru=function(){if(ts){if(Wn)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),Vu=function(n,t){var r=fe(n),i=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),o=Xi(n,0,t),s=Xi(n,1,t),l=o&&fe(o),a=s&&fe(s),c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+ct(o).width,u=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+ct(s).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&l.float&&l.float!=="none"){var p=l.float==="left"?"left":"right";return s&&(a.clear==="both"||a.clear===p)?"vertical":"horizontal"}return o&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||c>=i&&r[bc]==="none"||s&&r[bc]==="none"&&c+u>i)?"vertical":"horizontal"},Hp=function(n,t,r){var i=r?n.left:n.top,o=r?n.right:n.bottom,s=r?n.width:n.height,l=r?t.left:t.top,a=r?t.right:t.bottom,c=r?t.width:t.height;return i===l||o===a||i+s/2===l+c/2},Np=function(n,t){var r;return Wl.some(function(i){var o=i[Zt].options.emptyInsertThreshold;if(!(!o||Ys(i))){var s=ct(i),l=n>=s.left-o&&n<=s.right+o,a=t>=s.top-o&&t<=s.bottom+o;if(l&&a)return r=i}}),r},Fu=function(n){function t(o,s){return function(l,a,c,u){var p=l.options.group.name&&a.options.group.name&&l.options.group.name===a.options.group.name;if(o==null&&(s||p))return!0;if(o==null||o===!1)return!1;if(s&&o==="clone")return o;if(typeof o=="function")return t(o(l,a,c,u),s)(l,a,c,u);var m=(s?l:a).options.group.name;return o===!0||typeof o=="string"&&o===m||o.join&&o.indexOf(m)>-1}}var r={},i=n.group;(!i||Ll(i)!="object")&&(i={name:i}),r.name=i.name,r.checkPull=t(i.pull,!0),r.checkPut=t(i.put),r.revertClone=i.revertClone,n.group=r},Wu=function(){!Ru&&me&&fe(me,"display","none")},ju=function(){!Ru&&me&&fe(me,"display","")};ts&&!Du&&document.addEventListener("click",function(e){if(Fl)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Fl=!1,!1},!0);var Pr=function(n){if(Y){n=n.touches?n.touches[0]:n;var t=Np(n.clientX,n.clientY);if(t){var r={};for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i]);r.target=r.rootEl=t,r.preventDefault=void 0,r.stopPropagation=void 0,t[Zt]._onDragOver(r)}}},Rp=function(n){Y&&Y.parentNode[Zt]._isOutsideThisEl(n.target)};function ce(e,n){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=n=Sn({},n),e[Zt]=this;var t={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Vu(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,l){s.setData("Text",l.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:ce.supportPointer!==!1&&"PointerEvent"in window&&!ao,emptyInsertThreshold:5};Po.initializePlugins(this,e,t);for(var r in t)!(r in n)&&(n[r]=t[r]);Fu(n);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=n.forceFallback?!1:$p,this.nativeDraggable&&(this.options.touchStartThreshold=1),n.supportPointer?De(e,"pointerdown",this._onTapStart):(De(e,"mousedown",this._onTapStart),De(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(De(e,"dragover",this),De(e,"dragenter",this)),Wl.push(this.el),n.store&&n.store.get&&this.sort(n.store.get(this)||[]),Sn(this,Tp())}ce.prototype={constructor:ce,_isOutsideThisEl:function(n){!this.el.contains(n)&&n!==this.el&&(di=null)},_getDirection:function(n,t){return typeof this.options.direction=="function"?this.options.direction.call(this,n,t,Y):this.options.direction},_onTapStart:function(n){if(n.cancelable){var t=this,r=this.el,i=this.options,o=i.preventOnFilter,s=n.type,l=n.touches&&n.touches[0]||n.pointerType&&n.pointerType==="touch"&&n,a=(l||n).target,c=n.target.shadowRoot&&(n.path&&n.path[0]||n.composedPath&&n.composedPath()[0])||a,u=i.filter;if(Yp(r),!Y&&!(/mousedown|pointerdown/.test(s)&&n.button!==0||i.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&ao&&a&&a.tagName.toUpperCase()==="SELECT")&&(a=fn(a,i.draggable,r,!1),!(a&&a.animated)&&xl!==a)){if(gi=Wt(a),uo=Wt(a,i.draggable),typeof u=="function"){if(u.call(this,n,a,this)){Mt({sortable:t,rootEl:c,name:"filter",targetEl:a,toEl:r,fromEl:r}),Ft("filter",t,{evt:n}),o&&n.cancelable&&n.preventDefault();return}}else if(u&&(u=u.split(",").some(function(p){if(p=fn(c,p.trim(),r,!1),p)return Mt({sortable:t,rootEl:p,name:"filter",targetEl:a,fromEl:r,toEl:r}),Ft("filter",t,{evt:n}),!0}),u)){o&&n.cancelable&&n.preventDefault();return}i.handle&&!fn(c,i.handle,r,!1)||this._prepareDragStart(n,l,a)}}},_prepareDragStart:function(n,t,r){var i=this,o=i.el,s=i.options,l=o.ownerDocument,a;if(r&&!Y&&r.parentNode===o){var c=ct(r);if(Ge=o,Y=r,Qe=Y.parentNode,Ar=Y.nextSibling,xl=r,bl=s.group,ce.dragged=Y,xr={target:Y,clientX:(t||n).clientX,clientY:(t||n).clientY},mc=xr.clientX-c.left,gc=xr.clientY-c.top,this._lastX=(t||n).clientX,this._lastY=(t||n).clientY,Y.style["will-change"]="all",a=function(){if(Ft("delayEnded",i,{evt:n}),ce.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!fc&&i.nativeDraggable&&(Y.draggable=!0),i._triggerDragStart(n,t),Mt({sortable:i,name:"choose",originalEvent:n}),xt(Y,s.chosenClass,!0)},s.ignore.split(",").forEach(function(u){Iu(Y,u.trim(),ps)}),De(l,"dragover",Pr),De(l,"mousemove",Pr),De(l,"touchmove",Pr),De(l,"mouseup",i._onDrop),De(l,"touchend",i._onDrop),De(l,"touchcancel",i._onDrop),fc&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Y.draggable=!0),Ft("delayStart",this,{evt:n}),s.delay&&(!s.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(xo||Wn))){if(ce.eventCanceled){this._onDrop();return}De(l,"mouseup",i._disableDelayedDrag),De(l,"touchend",i._disableDelayedDrag),De(l,"touchcancel",i._disableDelayedDrag),De(l,"mousemove",i._delayedDragTouchMoveHandler),De(l,"touchmove",i._delayedDragTouchMoveHandler),s.supportPointer&&De(l,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(a,s.delay)}else a()}},_delayedDragTouchMoveHandler:function(n){var t=n.touches?n.touches[0]:n;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Y&&ps(Y),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var n=this.el.ownerDocument;xe(n,"mouseup",this._disableDelayedDrag),xe(n,"touchend",this._disableDelayedDrag),xe(n,"touchcancel",this._disableDelayedDrag),xe(n,"mousemove",this._delayedDragTouchMoveHandler),xe(n,"touchmove",this._delayedDragTouchMoveHandler),xe(n,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(n,t){t=t||n.pointerType=="touch"&&n,!this.nativeDraggable||t?this.options.supportPointer?De(document,"pointermove",this._onTouchMove):t?De(document,"touchmove",this._onTouchMove):De(document,"mousemove",this._onTouchMove):(De(Y,"dragend",this),De(Ge,"dragstart",this._onDragStart));try{document.selection?Al(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(n,t){if(mi=!1,Ge&&Y){Ft("dragStarted",this,{evt:t}),this.nativeDraggable&&De(document,"dragover",Rp);var r=this.options;!n&&xt(Y,r.dragClass,!1),xt(Y,r.ghostClass,!0),ce.active=this,n&&this._appendGhost(),Mt({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(un){this._lastX=un.clientX,this._lastY=un.clientY,Wu();for(var n=document.elementFromPoint(un.clientX,un.clientY),t=n;n&&n.shadowRoot&&(n=n.shadowRoot.elementFromPoint(un.clientX,un.clientY),n!==t);)t=n;if(Y.parentNode[Zt]._isOutsideThisEl(n),t)do{if(t[Zt]){var r=void 0;if(r=t[Zt]._onDragOver({clientX:un.clientX,clientY:un.clientY,target:n,rootEl:t}),r&&!this.options.dragoverBubble)break}n=t}while(t=t.parentNode);ju()}},_onTouchMove:function(n){if(xr){var t=this.options,r=t.fallbackTolerance,i=t.fallbackOffset,o=n.touches?n.touches[0]:n,s=me&&_i(me,!0),l=me&&s&&s.a,a=me&&s&&s.d,c=_l&&Lt&&dc(Lt),u=(o.clientX-xr.clientX+i.x)/(l||1)+(c?c[0]-hs[0]:0)/(l||1),p=(o.clientY-xr.clientY+i.y)/(a||1)+(c?c[1]-hs[1]:0)/(a||1);if(!ce.active&&!mi){if(r&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<r)return;this._onDragStart(n,!0)}if(me){s?(s.e+=u-(us||0),s.f+=p-(fs||0)):s={a:1,b:0,c:0,d:1,e:u,f:p};var m="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");fe(me,"webkitTransform",m),fe(me,"mozTransform",m),fe(me,"msTransform",m),fe(me,"transform",m),us=u,fs=p,un=o}n.cancelable&&n.preventDefault()}},_appendGhost:function(){if(!me){var n=this.options.fallbackOnBody?document.body:Ge,t=ct(Y,!0,_l,!0,n),r=this.options;if(_l){for(Lt=n;fe(Lt,"position")==="static"&&fe(Lt,"transform")==="none"&&Lt!==document;)Lt=Lt.parentNode;Lt!==document.body&&Lt!==document.documentElement?(Lt===document&&(Lt=yn()),t.top+=Lt.scrollTop,t.left+=Lt.scrollLeft):Lt=yn(),hs=dc(Lt)}me=Y.cloneNode(!0),xt(me,r.ghostClass,!1),xt(me,r.fallbackClass,!0),xt(me,r.dragClass,!0),fe(me,"transition",""),fe(me,"transform",""),fe(me,"box-sizing","border-box"),fe(me,"margin",0),fe(me,"top",t.top),fe(me,"left",t.left),fe(me,"width",t.width),fe(me,"height",t.height),fe(me,"opacity","0.8"),fe(me,"position",_l?"absolute":"fixed"),fe(me,"zIndex","100000"),fe(me,"pointerEvents","none"),ce.ghost=me,n.appendChild(me),fe(me,"transform-origin",mc/parseInt(me.style.width)*100+"% "+gc/parseInt(me.style.height)*100+"%")}},_onDragStart:function(n,t){var r=this,i=n.dataTransfer,o=r.options;if(Ft("dragStart",this,{evt:n}),ce.eventCanceled){this._onDrop();return}Ft("setupClone",this),ce.eventCanceled||(qe=Hu(Y),qe.removeAttribute("id"),qe.draggable=!1,qe.style["will-change"]="",this._hideClone(),xt(qe,this.options.chosenClass,!1),ce.clone=qe),r.cloneId=Al(function(){Ft("clone",r),!ce.eventCanceled&&(r.options.removeCloneOnHide||Ge.insertBefore(qe,Y),r._hideClone(),Mt({sortable:r,name:"clone"}))}),!t&&xt(Y,o.dragClass,!0),t?(Fl=!0,r._loopId=setInterval(r._emulateDragOver,50)):(xe(document,"mouseup",r._onDrop),xe(document,"touchend",r._onDrop),xe(document,"touchcancel",r._onDrop),i&&(i.effectAllowed="move",o.setData&&o.setData.call(r,i,Y)),De(document,"drop",r),fe(Y,"transform","translateZ(0)")),mi=!0,r._dragStartId=Al(r._dragStarted.bind(r,t,n)),De(document,"selectstart",r),ro=!0,ao&&fe(document.body,"user-select","none")},_onDragOver:function(n){var t=this.el,r=n.target,i,o,s,l=this.options,a=l.group,c=ce.active,u=bl===a,p=l.sort,m=Ct||c,b,k=this,S=!1;if(As)return;function V(oe,ue){Ft(oe,k,kn({evt:n,isOwner:u,axis:b?"vertical":"horizontal",revert:s,dragRect:i,targetRect:o,canSort:p,fromSortable:m,target:r,completed:D,onMove:function(Xe,Ve){return wl(Ge,t,Y,i,Xe,ct(Xe),n,Ve)},changed:P},ue))}function O(){V("dragOverAnimationCapture"),k.captureAnimationState(),k!==m&&m.captureAnimationState()}function D(oe){return V("dragOverCompleted",{insertion:oe}),oe&&(u?c._hideClone():c._showClone(k),k!==m&&(xt(Y,Ct?Ct.options.ghostClass:c.options.ghostClass,!1),xt(Y,l.ghostClass,!0)),Ct!==k&&k!==ce.active?Ct=k:k===ce.active&&Ct&&(Ct=null),m===k&&(k._ignoreWhileAnimating=r),k.animateAll(function(){V("dragOverAnimationComplete"),k._ignoreWhileAnimating=null}),k!==m&&(m.animateAll(),m._ignoreWhileAnimating=null)),(r===Y&&!Y.animated||r===t&&!r.animated)&&(di=null),!l.dragoverBubble&&!n.rootEl&&r!==document&&(Y.parentNode[Zt]._isOutsideThisEl(n.target),!oe&&Pr(n)),!l.dragoverBubble&&n.stopPropagation&&n.stopPropagation(),S=!0}function P(){qt=Wt(Y),er=Wt(Y,l.draggable),Mt({sortable:k,name:"change",toEl:t,newIndex:qt,newDraggableIndex:er,originalEvent:n})}if(n.preventDefault!==void 0&&n.cancelable&&n.preventDefault(),r=fn(r,l.draggable,t,!0),V("dragOver"),ce.eventCanceled)return S;if(Y.contains(n.target)||r.animated&&r.animatingX&&r.animatingY||k._ignoreWhileAnimating===r)return D(!1);if(Fl=!1,c&&!l.disabled&&(u?p||(s=Qe!==Ge):Ct===this||(this.lastPutMode=bl.checkPull(this,c,Y,n))&&a.checkPut(this,c,Y,n))){if(b=this._getDirection(n,r)==="vertical",i=ct(Y),V("dragOverValid"),ce.eventCanceled)return S;if(s)return Qe=Ge,O(),this._hideClone(),V("revert"),ce.eventCanceled||(Ar?Ge.insertBefore(Y,Ar):Ge.appendChild(Y)),D(!0);var I=Ys(t,l.draggable);if(!I||jp(n,b,this)&&!I.animated){if(I===Y)return D(!1);if(I&&t===n.target&&(r=I),r&&(o=ct(r)),wl(Ge,t,Y,i,r,o,n,!!r)!==!1)return O(),I&&I.nextSibling?t.insertBefore(Y,I.nextSibling):t.appendChild(Y),Qe=t,P(),D(!0)}else if(I&&Wp(n,b,this)){var Z=Xi(t,0,l,!0);if(Z===Y)return D(!1);if(r=Z,o=ct(r),wl(Ge,t,Y,i,r,o,n,!1)!==!1)return O(),t.insertBefore(Y,Z),Qe=t,P(),D(!0)}else if(r.parentNode===t){o=ct(r);var J=0,K,j=Y.parentNode!==t,E=!Hp(Y.animated&&Y.toRect||i,r.animated&&r.toRect||o,b),B=b?"top":"left",U=pc(r,"top","top")||pc(Y,"top","top"),X=U?U.scrollTop:void 0;di!==r&&(K=o[B],ho=!1,vl=!E&&l.invertSwap||j),J=Bp(n,r,o,b,E?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,vl,di===r);var ve;if(J!==0){var ne=Wt(Y);do ne-=J,ve=Qe.children[ne];while(ve&&(fe(ve,"display")==="none"||ve===me))}if(J===0||ve===r)return D(!1);di=r,fo=J;var A=r.nextElementSibling,T=!1;T=J===1;var z=wl(Ge,t,Y,i,r,o,n,T);if(z!==!1)return(z===1||z===-1)&&(T=z===1),As=!0,setTimeout(Fp,30),O(),T&&!A?t.appendChild(Y):r.parentNode.insertBefore(Y,T?A:r),U&&$u(U,0,X-U.scrollTop),Qe=Y.parentNode,K!==void 0&&!vl&&(Pl=Math.abs(K-ct(r)[B])),P(),D(!0)}if(t.contains(Y))return D(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){xe(document,"mousemove",this._onTouchMove),xe(document,"touchmove",this._onTouchMove),xe(document,"pointermove",this._onTouchMove),xe(document,"dragover",Pr),xe(document,"mousemove",Pr),xe(document,"touchmove",Pr)},_offUpEvents:function(){var n=this.el.ownerDocument;xe(n,"mouseup",this._onDrop),xe(n,"touchend",this._onDrop),xe(n,"pointerup",this._onDrop),xe(n,"touchcancel",this._onDrop),xe(document,"selectstart",this)},_onDrop:function(n){var t=this.el,r=this.options;if(qt=Wt(Y),er=Wt(Y,r.draggable),Ft("drop",this,{evt:n}),Qe=Y&&Y.parentNode,qt=Wt(Y),er=Wt(Y,r.draggable),ce.eventCanceled){this._nulling();return}mi=!1,vl=!1,ho=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Ts(this.cloneId),Ts(this._dragStartId),this.nativeDraggable&&(xe(document,"drop",this),xe(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),ao&&fe(document.body,"user-select",""),fe(Y,"transform",""),n&&(ro&&(n.cancelable&&n.preventDefault(),!r.dropBubble&&n.stopPropagation()),me&&me.parentNode&&me.parentNode.removeChild(me),(Ge===Qe||Ct&&Ct.lastPutMode!=="clone")&&qe&&qe.parentNode&&qe.parentNode.removeChild(qe),Y&&(this.nativeDraggable&&xe(Y,"dragend",this),ps(Y),Y.style["will-change"]="",ro&&!mi&&xt(Y,Ct?Ct.options.ghostClass:this.options.ghostClass,!1),xt(Y,this.options.chosenClass,!1),Mt({sortable:this,name:"unchoose",toEl:Qe,newIndex:null,newDraggableIndex:null,originalEvent:n}),Ge!==Qe?(qt>=0&&(Mt({rootEl:Qe,name:"add",toEl:Qe,fromEl:Ge,originalEvent:n}),Mt({sortable:this,name:"remove",toEl:Qe,originalEvent:n}),Mt({rootEl:Qe,name:"sort",toEl:Qe,fromEl:Ge,originalEvent:n}),Mt({sortable:this,name:"sort",toEl:Qe,originalEvent:n})),Ct&&Ct.save()):qt!==gi&&qt>=0&&(Mt({sortable:this,name:"update",toEl:Qe,originalEvent:n}),Mt({sortable:this,name:"sort",toEl:Qe,originalEvent:n})),ce.active&&((qt==null||qt===-1)&&(qt=gi,er=uo),Mt({sortable:this,name:"end",toEl:Qe,originalEvent:n}),this.save()))),this._nulling()},_nulling:function(){Ft("nulling",this),Ge=Y=Qe=me=Ar=qe=xl=ir=xr=un=ro=qt=er=gi=uo=di=fo=Ct=bl=ce.dragged=ce.ghost=ce.clone=ce.active=null,jl.forEach(function(n){n.checked=!0}),jl.length=us=fs=0},handleEvent:function(n){switch(n.type){case"drop":case"dragend":this._onDrop(n);break;case"dragenter":case"dragover":Y&&(this._onDragOver(n),Vp(n));break;case"selectstart":n.preventDefault();break}},toArray:function(){for(var n=[],t,r=this.el.children,i=0,o=r.length,s=this.options;i<o;i++)t=r[i],fn(t,s.draggable,this.el,!1)&&n.push(t.getAttribute(s.dataIdAttr)||zp(t));return n},sort:function(n,t){var r={},i=this.el;this.toArray().forEach(function(o,s){var l=i.children[s];fn(l,this.options.draggable,i,!1)&&(r[o]=l)},this),t&&this.captureAnimationState(),n.forEach(function(o){r[o]&&(i.removeChild(r[o]),i.appendChild(r[o]))}),t&&this.animateAll()},save:function(){var n=this.options.store;n&&n.set&&n.set(this)},closest:function(n,t){return fn(n,t||this.options.draggable,this.el,!1)},option:function(n,t){var r=this.options;if(t===void 0)return r[n];var i=Po.modifyOption(this,n,t);typeof i<"u"?r[n]=i:r[n]=t,n==="group"&&Fu(r)},destroy:function(){Ft("destroy",this);var n=this.el;n[Zt]=null,xe(n,"mousedown",this._onTapStart),xe(n,"touchstart",this._onTapStart),xe(n,"pointerdown",this._onTapStart),this.nativeDraggable&&(xe(n,"dragover",this),xe(n,"dragenter",this)),Array.prototype.forEach.call(n.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Wl.splice(Wl.indexOf(this.el),1),this.el=n=null},_hideClone:function(){if(!ir){if(Ft("hideClone",this),ce.eventCanceled)return;fe(qe,"display","none"),this.options.removeCloneOnHide&&qe.parentNode&&qe.parentNode.removeChild(qe),ir=!0}},_showClone:function(n){if(n.lastPutMode!=="clone"){this._hideClone();return}if(ir){if(Ft("showClone",this),ce.eventCanceled)return;Y.parentNode==Ge&&!this.options.group.revertClone?Ge.insertBefore(qe,Y):Ar?Ge.insertBefore(qe,Ar):Ge.appendChild(qe),this.options.group.revertClone&&this.animate(Y,qe),fe(qe,"display",""),ir=!1}}};function Vp(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function wl(e,n,t,r,i,o,s,l){var a,c=e[Zt],u=c.options.onMove,p;return window.CustomEvent&&!Wn&&!xo?a=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(a=document.createEvent("Event"),a.initEvent("move",!0,!0)),a.to=n,a.from=e,a.dragged=t,a.draggedRect=r,a.related=i||n,a.relatedRect=o||ct(n),a.willInsertAfter=l,a.originalEvent=s,e.dispatchEvent(a),u&&(p=u.call(c,a,s)),p}function ps(e){e.draggable=!1}function Fp(){As=!1}function Wp(e,n,t){var r=ct(Xi(t.el,0,t.options,!0)),i=Nu(t.el,t.options,me),o=10;return n?e.clientX<i.left-o||e.clientY<r.top&&e.clientX<r.right:e.clientY<i.top-o||e.clientY<r.bottom&&e.clientX<r.left}function jp(e,n,t){var r=ct(Ys(t.el,t.options.draggable)),i=Nu(t.el,t.options,me),o=10;return n?e.clientX>i.right+o||e.clientY>r.bottom&&e.clientX>r.left:e.clientY>i.bottom+o||e.clientX>r.right&&e.clientY>r.top}function Bp(e,n,t,r,i,o,s,l){var a=r?e.clientY:e.clientX,c=r?t.height:t.width,u=r?t.top:t.left,p=r?t.bottom:t.right,m=!1;if(!s){if(l&&Pl<c*i){if(!ho&&(fo===1?a>u+c*o/2:a<p-c*o/2)&&(ho=!0),ho)m=!0;else if(fo===1?a<u+Pl:a>p-Pl)return-fo}else if(a>u+c*(1-i)/2&&a<p-c*(1-i)/2)return Up(n)}return m=m||s,m&&(a<u+c*o/2||a>p-c*o/2)?a>u+c/2?1:-1:0}function Up(e){return Wt(Y)<Wt(e)?1:-1}function zp(e){for(var n=e.tagName+e.className+e.src+e.href+e.textContent,t=n.length,r=0;t--;)r+=n.charCodeAt(t);return r.toString(36)}function Yp(e){jl.length=0;for(var n=e.getElementsByTagName("input"),t=n.length;t--;){var r=n[t];r.checked&&jl.push(r)}}function Al(e){return setTimeout(e,0)}function Ts(e){return clearTimeout(e)}ts&&De(document,"touchmove",function(e){(ce.active||mi)&&e.cancelable&&e.preventDefault()});ce.utils={on:De,off:xe,css:fe,find:Iu,is:function(n,t){return!!fn(n,t,n,!1)},extend:Pp,throttle:Mu,closest:fn,toggleClass:xt,clone:Hu,index:Wt,nextTick:Al,cancelNextTick:Ts,detectDirection:Vu,getChild:Xi};ce.get=function(e){return e[Zt]};ce.mount=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];n[0].constructor===Array&&(n=n[0]),n.forEach(function(r){if(!r.prototype||!r.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));r.utils&&(ce.utils=kn(kn({},ce.utils),r.utils)),Po.mount(r)})};ce.create=function(e,n){return new ce(e,n)};ce.version=Ep;var st=[],io,Ds,Os=!1,ds,ms,Bl,oo;function Kp(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this))}return e.prototype={dragStarted:function(t){var r=t.originalEvent;this.sortable.nativeDraggable?De(document,"dragover",this._handleAutoScroll):this.options.supportPointer?De(document,"pointermove",this._handleFallbackAutoScroll):r.touches?De(document,"touchmove",this._handleFallbackAutoScroll):De(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var r=t.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?xe(document,"dragover",this._handleAutoScroll):(xe(document,"pointermove",this._handleFallbackAutoScroll),xe(document,"touchmove",this._handleFallbackAutoScroll),xe(document,"mousemove",this._handleFallbackAutoScroll)),vc(),Tl(),Ap()},nulling:function(){Bl=Ds=io=Os=oo=ds=ms=null,st.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,r){var i=this,o=(t.touches?t.touches[0]:t).clientX,s=(t.touches?t.touches[0]:t).clientY,l=document.elementFromPoint(o,s);if(Bl=t,r||this.options.forceAutoScrollFallback||xo||Wn||ao){gs(t,this.options,l,r);var a=sr(l,!0);Os&&(!oo||o!==ds||s!==ms)&&(oo&&vc(),oo=setInterval(function(){var c=sr(document.elementFromPoint(o,s),!0);c!==a&&(a=c,Tl()),gs(t,i.options,c,r)},10),ds=o,ms=s)}else{if(!this.options.bubbleScroll||sr(l,!0)===yn()){Tl();return}gs(t,this.options,sr(l,!1),!1)}}},Sn(e,{pluginName:"scroll",initializeByDefault:!0})}function Tl(){st.forEach(function(e){clearInterval(e.pid)}),st=[]}function vc(){clearInterval(oo)}var gs=Mu(function(e,n,t,r){if(n.scroll){var i=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,s=n.scrollSensitivity,l=n.scrollSpeed,a=yn(),c=!1,u;Ds!==t&&(Ds=t,Tl(),io=n.scroll,u=n.scrollFn,io===!0&&(io=sr(t,!0)));var p=0,m=io;do{var b=m,k=ct(b),S=k.top,V=k.bottom,O=k.left,D=k.right,P=k.width,I=k.height,Z=void 0,J=void 0,K=b.scrollWidth,j=b.scrollHeight,E=fe(b),B=b.scrollLeft,U=b.scrollTop;b===a?(Z=P<K&&(E.overflowX==="auto"||E.overflowX==="scroll"||E.overflowX==="visible"),J=I<j&&(E.overflowY==="auto"||E.overflowY==="scroll"||E.overflowY==="visible")):(Z=P<K&&(E.overflowX==="auto"||E.overflowX==="scroll"),J=I<j&&(E.overflowY==="auto"||E.overflowY==="scroll"));var X=Z&&(Math.abs(D-i)<=s&&B+P<K)-(Math.abs(O-i)<=s&&!!B),ve=J&&(Math.abs(V-o)<=s&&U+I<j)-(Math.abs(S-o)<=s&&!!U);if(!st[p])for(var ne=0;ne<=p;ne++)st[ne]||(st[ne]={});(st[p].vx!=X||st[p].vy!=ve||st[p].el!==b)&&(st[p].el=b,st[p].vx=X,st[p].vy=ve,clearInterval(st[p].pid),(X!=0||ve!=0)&&(c=!0,st[p].pid=setInterval(function(){r&&this.layer===0&&ce.active._onTouchMove(Bl);var A=st[this.layer].vy?st[this.layer].vy*l:0,T=st[this.layer].vx?st[this.layer].vx*l:0;typeof u=="function"&&u.call(ce.dragged.parentNode[Zt],T,A,e,Bl,st[this.layer].el)!=="continue"||$u(st[this.layer].el,T,A)}.bind({layer:p}),24))),p++}while(n.bubbleScroll&&m!==a&&(m=sr(m,!1)));Os=c}},30),Bu=function(n){var t=n.originalEvent,r=n.putSortable,i=n.dragEl,o=n.activeSortable,s=n.dispatchSortableEvent,l=n.hideGhostForTarget,a=n.unhideGhostForTarget;if(t){var c=r||o;l();var u=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,p=document.elementFromPoint(u.clientX,u.clientY);a(),c&&!c.el.contains(p)&&(s("spill"),this.onSpill({dragEl:i,putSortable:r}))}};function Ks(){}Ks.prototype={startIndex:null,dragStart:function(n){var t=n.oldDraggableIndex;this.startIndex=t},onSpill:function(n){var t=n.dragEl,r=n.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var i=Xi(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(t,i):this.sortable.el.appendChild(t),this.sortable.animateAll(),r&&r.animateAll()},drop:Bu};Sn(Ks,{pluginName:"revertOnSpill"});function Gs(){}Gs.prototype={onSpill:function(n){var t=n.dragEl,r=n.putSortable,i=r||this.sortable;i.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),i.animateAll()},drop:Bu};Sn(Gs,{pluginName:"removeOnSpill"});var en;function Gp(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(t){var r=t.dragEl;en=r},dragOverValid:function(t){var r=t.completed,i=t.target,o=t.onMove,s=t.activeSortable,l=t.changed,a=t.cancel;if(s.options.swap){var c=this.sortable.el,u=this.options;if(i&&i!==c){var p=en;o(i)!==!1?(xt(i,u.swapClass,!0),en=i):en=null,p&&p!==en&&xt(p,u.swapClass,!1)}l(),r(!0),a()}},drop:function(t){var r=t.activeSortable,i=t.putSortable,o=t.dragEl,s=i||this.sortable,l=this.options;en&&xt(en,l.swapClass,!1),en&&(l.swap||i&&i.options.swap)&&o!==en&&(s.captureAnimationState(),s!==r&&r.captureAnimationState(),qp(o,en),s.animateAll(),s!==r&&r.animateAll())},nulling:function(){en=null}},Sn(e,{pluginName:"swap",eventProperties:function(){return{swapItem:en}}})}function qp(e,n){var t=e.parentNode,r=n.parentNode,i,o;!t||!r||t.isEqualNode(n)||r.isEqualNode(e)||(i=Wt(e),o=Wt(n),t.isEqualNode(r)&&i<o&&o++,t.insertBefore(n,t.children[i]),r.insertBefore(e,r.children[o]))}ce.mount(new Kp);ce.mount(Gs,Ks);function _c(e,n,t){const r=e.slice();return r[22]=n[t],r[23]=n,r[24]=t,r}function wc(e,n){let t,r,i=n[22].pattern+"",o,s,l,a,c,u,p,m,b,k,S,V,O,D,P;c=new we({props:{path:Pf,height:"1rem"}});function I(){return n[15](n[22])}m=new we({props:{path:Jc,height:"1rem"}});function Z(){return n[16](n[22])}function J(){n[17].call(k,n[23],n[24])}return{key:e,first:null,c(){t=g("div"),r=g("div"),o=dt(i),s=w(),l=g("div"),a=g("button"),se(c.$$.fragment),u=w(),p=g("button"),se(m.$$.fragment),b=w(),k=g("input"),S=w(),h(r,"class","break-all"),h(a,"title","Edit"),h(a,"class","hover:text-primary"),h(p,"title","Remove"),h(p,"class","hover:text-primary"),h(k,"type","checkbox"),h(k,"class","ml-1"),h(l,"class","min-w-max ml-2"),h(t,"class","border my-2 p-2 flex items-center justify-between"),h(t,"data-id",V=n[22].pattern),this.first=t},m(K,j){F(K,t,j),f(t,r),f(r,o),f(t,s),f(t,l),f(l,a),re(c,a,null),f(l,u),f(l,p),re(m,p,null),f(l,b),f(l,k),k.checked=n[22].enabled,f(t,S),O=!0,D||(P=[x(a,"click",I),x(p,"click",Z),x(k,"change",J),x(k,"change",n[6])],D=!0)},p(K,j){n=K,(!O||j&2)&&i!==(i=n[22].pattern+"")&&$t(o,i),j&2&&(k.checked=n[22].enabled),(!O||j&2&&V!==(V=n[22].pattern))&&h(t,"data-id",V)},i(K){O||($(c.$$.fragment,K),$(m.$$.fragment,K),O=!0)},o(K){W(c.$$.fragment,K),W(m.$$.fragment,K),O=!1},d(K){K&&R(t),ie(c),ie(m),D=!1,At(P)}}}function Xp(e){let n,t,r,i,o,s,l,a,c,u,p,m,b,k,S,V,O,D,P=[],I=new Map,Z,J,K;r=new we({props:{path:Sf}}),l=new we({props:{path:Zc}}),u=new we({props:{path:Mf}}),b=new we({props:{path:If}}),V=new we({props:{path:Jc}});let j=e[1];const E=B=>B[22].pattern;for(let B=0;B<j.length;B+=1){let U=_c(e,j,B),X=E(U);I.set(X,P[B]=wc(X,U))}return{c(){n=g("div"),t=g("button"),se(r.$$.fragment),o=w(),s=g("button"),se(l.$$.fragment),a=w(),c=g("button"),se(u.$$.fragment),p=w(),m=g("button"),se(b.$$.fragment),k=w(),S=g("button"),se(V.$$.fragment),O=w(),D=g("div");for(let B=0;B<P.length;B+=1)P[B].c();h(t,"title","Apply to current lines"),t.disabled=i=!e[2],q(t,"hover:text-primary",e[2]),q(t,"cursor-not-allowed",!e[2]),h(s,"title","Add replacement"),h(s,"class","ml-2 hover:text-primary"),h(c,"title","Enable all"),h(c,"class","ml-2 hover:text-primary"),h(m,"title","Disable all"),h(m,"class","ml-2 hover:text-primary"),h(S,"title","Remove all"),h(S,"class","ml-2 hover:text-primary"),h(n,"class","flex justify-end my-2"),h(D,"class","max-h-72 overflow-auto")},m(B,U){F(B,n,U),f(n,t),re(r,t,null),f(n,o),f(n,s),re(l,s,null),f(n,a),f(n,c),re(u,c,null),f(n,p),f(n,m),re(b,m,null),f(n,k),f(n,S),re(V,S,null),F(B,O,U),F(B,D,U);for(let X=0;X<P.length;X+=1)P[X].m(D,null);e[18](D),Z=!0,J||(K=[x(t,"click",e[10]),x(s,"click",e[11]),x(c,"click",e[12]),x(m,"click",e[13]),x(S,"click",e[14])],J=!0)},p(B,[U]){(!Z||U&4&&i!==(i=!B[2]))&&(t.disabled=i),(!Z||U&4)&&q(t,"hover:text-primary",B[2]),(!Z||U&4)&&q(t,"cursor-not-allowed",!B[2]),U&218&&(j=B[1],nt(),P=Yr(P,U,E,1,B,j,I,D,Hs,wc,null,_c),rt())},i(B){if(!Z){$(r.$$.fragment,B),$(l.$$.fragment,B),$(u.$$.fragment,B),$(b.$$.fragment,B),$(V.$$.fragment,B);for(let U=0;U<j.length;U+=1)$(P[U]);Z=!0}},o(B){W(r.$$.fragment,B),W(l.$$.fragment,B),W(u.$$.fragment,B),W(b.$$.fragment,B),W(V.$$.fragment,B);for(let U=0;U<P.length;U+=1)W(P[U]);Z=!1},d(B){B&&R(n),ie(r),ie(l),ie(u),ie(b),ie(V),B&&R(O),B&&R(D);for(let U=0;U<P.length;U+=1)P[U].d();e[18](null),J=!1,At(K)}}}function Zp(e,n,t){let r,i,o,s;y(e,ln,E=>t(3,i=E)),y(e,xs,E=>t(8,o=E)),y(e,at,E=>t(9,s=E));const l=zr();let a,c,u=JSON.parse(JSON.stringify(i));zl(()=>{try{ce.mount(new Gp)}catch{}return a=ce.create(c,{swap:!0,swapClass:"swap",animation:150,store:{get:k,set:m}}),()=>a==null?void 0:a.destroy()});function p(E){const B=S();t(1,u=B.map(U=>({...U,enabled:E}))),N(ln,i=u,i)}function m(){N(ln,i=S(),i)}function b(E){t(1,u=E),N(ln,i=E,i),a.sort(k(),!1)}function k(){return[...u.map(E=>E.pattern)]}function S(){const E=a.toArray();return u.slice().sort((B,U)=>E.indexOf(B.pattern)-E.indexOf(U.pattern))}const V=()=>l("applyReplacements"),O=()=>l("edit",void 0),D=()=>p(!0),P=()=>p(!1),I=()=>b([]),Z=E=>l("edit",E),J=E=>b(i.filter(B=>B.pattern!==E.pattern));function K(E,B){E[B].enabled=this.checked,t(1,u)}function j(E){mt[E?"unshift":"push"](()=>{c=E,t(0,c)})}return e.$$.update=()=>{e.$$.dirty&768&&t(2,r=!!s.length&&!!o.length)},[c,u,r,i,l,p,m,b,o,s,V,O,D,P,I,Z,J,K,j]}class Jp extends Ut{constructor(n){super(),Bt(this,n,Zp,Xp,Et,{})}}function Qp(e){let n,t,r,i,o,s,l,a;return r=new we({props:{path:Zc}}),{c(){n=g("div"),t=g("button"),se(r.$$.fragment),i=w(),o=g("div"),o.textContent="You have currently no replacements configured",h(t,"title","Add replacement"),h(t,"class","ml-2 hover:text-primary"),h(n,"class","flex justify-end my-2")},m(c,u){F(c,n,u),f(n,t),re(r,t,null),F(c,i,u),F(c,o,u),s=!0,l||(a=x(t,"click",e[7]),l=!0)},p:Oe,i(c){s||($(r.$$.fragment,c),s=!0)},o(c){W(r.$$.fragment,c),s=!1},d(c){c&&R(n),ie(r),c&&R(i),c&&R(o),l=!1,a()}}}function e1(e){let n=e[0],t,r,i=yc(e);return{c(){i.c(),t=Nn()},m(o,s){i.m(o,s),F(o,t,s),r=!0},p(o,s){s&1&&Et(n,n=o[0])?(nt(),W(i,1,1,Oe),rt(),i=yc(o),i.c(),$(i,1),i.m(t.parentNode,t)):i.p(o,s)},i(o){r||($(i),r=!0)},o(o){W(i),r=!1},d(o){o&&R(t),i.d(o)}}}function t1(e){let n,t;return n=new yp({props:{currentReplacement:e[2]}}),n.$on("close",e[4]),{c(){se(n.$$.fragment)},m(r,i){re(n,r,i),t=!0},p(r,i){const o={};i&4&&(o.currentReplacement=r[2]),n.$set(o)},i(r){t||($(n.$$.fragment,r),t=!0)},o(r){W(n.$$.fragment,r),t=!1},d(r){ie(n,r)}}}function yc(e){let n,t;return n=new Jp({}),n.$on("edit",e[5]),n.$on("applyReplacements",e[6]),{c(){se(n.$$.fragment)},m(r,i){re(n,r,i),t=!0},p:Oe,i(r){t||($(n.$$.fragment,r),t=!0)},o(r){W(n.$$.fragment,r),t=!1},d(r){ie(n,r)}}}function n1(e){let n,t,r,i,o,s,l;const a=[t1,e1,Qp],c=[];function u(p,m){return p[1]?0:p[3]?1:2}return o=u(e),s=c[o]=a[o](e),{c(){n=g("details"),t=g("summary"),t.textContent="Replacements",r=w(),i=g("div"),s.c(),h(i,"class","mb-8"),h(n,"class","col-span-4 mb-2 cursor-pointer max-w-lg")},m(p,m){F(p,n,m),f(n,t),f(n,r),f(n,i),c[o].m(i,null),l=!0},p(p,[m]){let b=o;o=u(p),o===b?c[o].p(p,m):(nt(),W(c[b],1,1,()=>{c[b]=null}),rt(),s=c[o],s?s.p(p,m):(s=c[o]=a[o](p),s.c()),$(s,1),s.m(i,null))},i(p){l||($(s),l=!0)},o(p){W(s),l=!1},d(p){p&&R(n),c[o].d()}}}function r1(e,n,t){let r,i;y(e,ln,m=>t(0,i=m));let o=!1,s;function l(m){t(1,o=!1)}const a=()=>{t(1,o=!1),t(2,s=void 0)},c=({detail:m})=>{t(2,s=m),t(1,o=!0)};function u(m){mo.call(this,e,m)}const p=()=>t(1,o=!0);return e.$$.update=()=>{e.$$.dirty&1&&t(3,r=!!i.length),e.$$.dirty&1&&l()},[i,o,s,r,a,c,u,p]}class i1 extends Ut{constructor(n){super(),Bt(this,n,r1,n1,Et,{})}}const{Map:o1,document:kc}=$s;function Sc(e,n,t){const r=e.slice();return r[156]=n[t],r}function Cc(e){let n,t,r,i,o,s,l,a,c,u,p,m,b,k,S,V,O,D,P,I,Z,J,K,j,E,B,U,X,ve,ne,A,T,z,oe,ue,_e,Xe,Ve,Ze,Ye,He,yt,gt,Ne,ze,Fe,ye,Ie,bt,he,ut,We,Re,it,vt,je,ae,Be,_t,Se,ke,kt,Tt,Ee,_,de,Dt,Pe,ot,Ce,Te,lt,hn,pn,jn,ft,zt,Ht,Ke,Le,C,H,St,et,Je=[],Jt=new o1,Ot,Nt,Qt,Yt,Gr,Bn,qr,Kt,Un,En,zn,Xr,Rt,Zr,Yn,Jr,an,Qr,Kn,ei,cn,v,Q,te,pe,ge,ht,dn,Gt,fr,ti,Ao,mn,To,ni,Do,gn,Oo,ri,Io,bn,Mo,ii,$o,vn,Ho,oi,No,Ln,Ro,li,Vo,xn,Fo,si,Wo,Pn,jo,ai,Bo,An,Uo,ci,zo,Tn,Yo,ui,Ko,Dn,Go,fi,qo,d,G,le,Me,tt,pt,It,hr,pr,qs,Xo,Xs,dr,Zs,Zo,Js,Gn,Qs,Jo,ea,qn,ta,Qo,na,mr,ra,el,ia,Xn,oa,tl,la,gr,sa,nl,aa,br,ca,rl,ua,vr,fa,il,ha,_r,pa,ol,da,wr,ma,ll,ga,yr,ba,sl,va,kr,_a,al,wa,Sr,ya,cl,ka,Zn,Sa,ul,Ca,Cr,Ea,fl,La,Er,xa,hl,Pa,Lr,Aa,Qi,Ta,Jn,On,ns,Da;p=new we({props:{path:Of}}),V=new we({props:{path:Df}}),Z=new we({props:{path:so}}),B=new we({props:{path:so}}),A=new we({props:{path:so}}),_e=new we({props:{path:ys}}),He=new we({props:{path:ys}}),he=new we({props:{class:"swap-on",path:Hf}}),We=new we({props:{class:"swap-off",path:Nf}});let zu={};Be=new Au({props:zu}),e[84](Be),Be.$on("layoutChange",e[85]),Be.$on("exportImportPreset",e[86]),Se=new i1({}),Se.$on("applyReplacements",e[87]);let pl=e[55];const Oa=M=>M[156];for(let M=0;M<pl.length;M+=1){let ee=Sc(e,pl,M),Qn=Oa(ee);Jt.set(Qn,Je[M]=Ec(Qn,ee))}let Vt=e[1]&&Lc(e);return{c(){n=g("input"),t=w(),r=g("input"),i=w(),o=g("input"),s=w(),l=g("div"),a=g("div"),c=g("div"),u=g("div"),se(p.$$.fragment),m=w(),b=g("span"),b.textContent="Set Timer",k=w(),S=g("div"),se(V.$$.fragment),O=w(),D=g("span"),D.textContent="Reset Timer",P=w(),I=g("div"),se(Z.$$.fragment),J=w(),K=g("span"),K.textContent="Reset Lines",j=w(),E=g("div"),se(B.$$.fragment),U=w(),X=g("span"),X.textContent="Reset Data",ve=w(),ne=g("div"),se(A.$$.fragment),T=w(),z=g("span"),z.textContent="Reset All",oe=w(),ue=g("div"),se(_e.$$.fragment),Xe=w(),Ve=g("span"),Ve.textContent="Ex-/Import Data",Ze=w(),Ye=g("div"),se(He.$$.fragment),yt=w(),gt=g("span"),gt.textContent="Ex-/Import Settings",Ne=w(),ze=g("div"),Fe=g("label"),ye=g("input"),bt=w(),se(he.$$.fragment),ut=w(),se(We.$$.fragment),Re=w(),it=g("span"),it.textContent="Theme",vt=w(),je=g("details"),je.innerHTML=`<summary>Links</summary>
|
30
30
|
<ul><li class="my-0.5 hover:text-primary"><a href="https://github.com/Renji-XD/texthooker-ui" target="_blank" rel="noreferrer">texthooker-ui Repository</a></li>
|
31
31
|
<li class="my-0.5 hover:text-primary"><a href="https://github.com/Artikash/Textractor" target="_blank" rel="noreferrer">Textractor</a></li>
|
32
32
|
<li class="my-0.5 hover:text-primary"><a href="https://github.com/kuroahna/textractor_websocket" target="_blank" rel="noreferrer">textractor-websocket Extension</a></li>
|
@@ -34,12 +34,12 @@ var Hu=Object.defineProperty;var Ru=(e,n,t)=>n in e?Hu(e,n,{enumerable:!0,config
|
|
34
34
|
<li class="my-0.5 hover:text-primary"><a href="https://github.com/kuroahna/mpv_websocket" target="_blank" rel="noreferrer">mpv_websocket Plugin</a></li>
|
35
35
|
<li class="my-0.5 hover:text-primary"><a href="https://github.com/0xDC00/agent" target="_blank" rel="noreferrer">Agent</a></li>
|
36
36
|
<li class="my-0.5 hover:text-primary"><a href="https://github.com/kmltml/clipboard-inserter" target="_blank" rel="noreferrer">Clipboard Inserter</a></li>
|
37
|
-
<li class="my-0.5 hover:text-primary"><a href="https://github.com/laplus-sadness/lap-clipboard-inserter" target="_blank" rel="noreferrer">lap-clipboard-inserter</a></li></ul>`,be=w(),oe($e.$$.fragment),Ee=w(),oe(we.$$.fragment),St=w(),Dt=v("span"),Dt.textContent="Window Title",_=w(),fe=v("input"),Pe=w(),qe=v("span"),qe.textContent="Primary Websocket",Fe=w(),Ke=v("input"),De=w(),Le=v("span"),Le.textContent="Secondary Websocket",Sn=w(),Ct=v("input"),Cn=w(),cn=v("span"),cn.textContent="Font Size",un=w(),tt=v("input"),fn=w(),Me=v("span"),Me.textContent="Online Font",We=w(),C=v("select");for(let O=0;O<D.length;O+=1)D[O].c();$t=w(),Et=v("span"),Et.textContent="Prevent Last Line Duplicate",nn=w(),ft=v("input"),Lt=w(),Ot=v("span"),Ot.textContent="Max lines",Br=w(),zt=v("input"),Ur=w(),Rt&&Rt.c(),En=w(),hn=v("span"),hn.textContent="AFK Timer (s)",zr=w(),Nt=v("input"),Yr=w(),Vn=v("span"),Vn.textContent="Adjust Timer after AFK",Kr=w(),rn=v("input"),Gr=w(),Fn=v("span"),Fn.textContent="Enable external Clipboard Monitor",qr=w(),on=v("input"),Xr=w(),Wn=v("span"),Wn.textContent="Show Preset Quick Switch",Zr=w(),ln=v("input"),b=w(),J=v("span"),J.textContent="Skip Reset Confirmations",ne=w(),he=v("input"),de=w(),ht=v("span"),ht.textContent="Store Stats persistently",pn=w(),Ht=v("input"),ar=w(),Jr=v("span"),Jr.textContent="Store Notes persistently",Co=w(),dn=v("input"),Eo=w(),Qr=v("span"),Qr.textContent="Store Lines persistently",Lo=w(),mn=v("input"),xo=w(),ei=v("span"),ei.textContent="Store Action History persistently",Po=w(),gn=v("input"),Ao=w(),ti=v("span"),ti.textContent="Enable Paste",To=w(),Ln=v("input"),Do=w(),ni=v("span"),ni.textContent="Block Copy from Page",Oo=w(),xn=v("input"),Io=w(),ri=v("span"),ri.textContent="Allow Paste during Pause",Mo=w(),Pn=v("input"),$o=w(),ii=v("span"),ii.textContent="Allow new Line during Pause",No=w(),An=v("input"),Ho=w(),oi=v("span"),oi.textContent="Autostart Timer by Paste during Pause",Ro=w(),Tn=v("input"),Vo=w(),li=v("span"),li.textContent="Autostart Timer by Line during Pause",Fo=w(),Dn=v("input"),Wo=w(),si=v("span"),si.textContent="Prevent Global Duplicate",jo=w(),m=v("input"),q=w(),se=v("span"),se.textContent="Merge equal Line Starts",Ne=w(),nt=v("input"),pt=w(),It=v("span"),It.textContent="Filter lines without jp content",cr=w(),ur=v("input"),Ws=w(),Bo=v("span"),Bo.textContent="Flash on missed Line",js=w(),fr=v("input"),Bs=w(),Uo=v("span"),Uo.textContent="Display Text vertically",Us=w(),jn=v("input"),zs=w(),zo=v("span"),zo.textContent="Reverse Line Order",Ys=w(),Bn=v("input"),Ks=w(),Yo=v("span"),Yo.textContent="Preserve Whitespace",Gs=w(),hr=v("input"),qs=w(),Ko=v("span"),Ko.textContent="Remove all Whitespace",Xs=w(),Un=v("input"),Zs=w(),Go=v("span"),Go.textContent="Show Timer",Js=w(),pr=v("input"),Qs=w(),qo=v("span"),qo.textContent="Show Speed",ea=w(),dr=v("input"),ta=w(),Xo=v("span"),Xo.textContent="Show Character Count",na=w(),mr=v("input"),ra=w(),Zo=v("span"),Zo.textContent="Show Line Count",ia=w(),gr=v("input"),oa=w(),Jo=v("span"),Jo.textContent="Blur Stats",la=w(),br=v("input"),sa=w(),Qo=v("span"),Qo.textContent="Enable Line Animation",aa=w(),vr=v("input"),ca=w(),el=v("span"),el.textContent="Enable AFK Blur",ua=w(),_r=v("input"),fa=w(),tl=v("span"),tl.textContent="Restart Timer after AFK Blur",ha=w(),wr=v("input"),pa=w(),nl=v("span"),nl.textContent="Continuous Reconnect",da=w(),zn=v("input"),ma=w(),rl=v("span"),rl.textContent="Show Connection Errors",ga=w(),yr=v("input"),ba=w(),il=v("span"),il.textContent="Auto Translate Lines:",va=w(),kr=v("input"),_a=w(),ol=v("span"),ol.textContent="Blur Auto Translated Lines:",wa=w(),Sr=v("input"),ya=w(),Gi=v("span"),Gi.textContent="Custom CSS",ka=w(),Yn=v("textarea"),f(n,"class","hidden"),f(n,"type","file"),f(r,"class","hidden"),f(r,"type","file"),f(o,"class","hidden"),f(o,"type","file"),f(g,"class","label-text"),f(h,"role","button"),f(h,"class","flex flex-col items-center hover:text-primary"),f(A,"class","label-text"),f(S,"role","button"),f(S,"class","flex flex-col items-center hover:text-primary"),f(U,"class","label-text"),f(N,"role","button"),f(N,"class","flex flex-col items-center hover:text-primary"),f(X,"class","label-text"),f(x,"role","button"),f(x,"class","flex flex-col items-center hover:text-primary"),f(Z,"class","label-text"),f(E,"role","button"),f(E,"class","flex flex-col items-center hover:text-primary"),f(Re,"class","label-text"),f(ue,"role","button"),f(ue,"class","flex flex-col items-center hover:text-primary"),f(Ie,"class","label-text"),f(Te,"role","button"),f(Te,"class","flex flex-col items-center hover:text-primary"),f(me,"type","checkbox"),me.checked=ze=e[5]===Jt.BUSINESS,f(Ue,"class","swap swap-rotate"),f(et,"class","label-text"),f(Be,"role","button"),f(Be,"class","flex flex-col items-center hover:text-primary"),f(c,"class","flex text-sm gap-x-5 min-[600px]:justify-between max-[600px]:flex-wrap max-[600px]:gap-y-5"),f(a,"class","mb-2"),ge(a,"grid-column","1/5"),f(Se,"role","button"),f(Se,"class","col-span-4 mb-2"),f(Dt,"class","label-text col-span-2"),f(fe,"class","input input-bordered h-8 col-span-2"),f(qe,"class","label-text col-span-2"),f(Ke,"class","input input-bordered h-8 col-span-2"),f(Le,"class","label-text col-span-2"),f(Ct,"class","input input-bordered h-8 col-span-2"),f(cn,"class","label-text col-span-2"),f(tt,"type","number"),f(tt,"class","input input-bordered h-8 col-span-2"),f(tt,"min","1"),f(Me,"class","label-text mr-4 col-span-2"),f(C,"class","select col-span-2"),e[21]===void 0&&Mr(()=>e[92].call(C)),f(Et,"class","label-text col-span-2"),f(ft,"type","number"),f(ft,"class","input input-bordered h-8 col-span-2"),f(ft,"min","0"),ft.value=e[18],f(Ot,"class","label-text col-span-2"),f(zt,"type","number"),f(zt,"class","input input-bordered h-8 mb-2 col-span-2"),f(zt,"min","0"),zt.value=e[16],f(hn,"class","label-text col-span-2"),f(Nt,"type","number"),f(Nt,"class","input input-bordered h-8 mb-2 col-span-2"),f(Nt,"min","0"),f(Vn,"class","label-text"),f(rn,"type","checkbox"),f(rn,"class","checkbox checkbox-primary ml-2"),f(Fn,"class","label-text"),f(on,"type","checkbox"),f(on,"class","checkbox checkbox-primary ml-2"),f(Wn,"class","label-text"),f(ln,"type","checkbox"),f(ln,"class","checkbox checkbox-primary ml-2"),f(J,"class","label-text"),f(he,"type","checkbox"),f(he,"class","checkbox checkbox-primary ml-2"),f(ht,"class","label-text"),f(Ht,"type","checkbox"),f(Ht,"class","checkbox checkbox-primary ml-2"),f(Jr,"class","label-text"),f(dn,"type","checkbox"),f(dn,"class","checkbox checkbox-primary ml-2"),f(Qr,"class","label-text"),f(mn,"type","checkbox"),f(mn,"class","checkbox checkbox-primary ml-2"),f(ei,"class","label-text"),f(gn,"type","checkbox"),f(gn,"class","checkbox checkbox-primary ml-2"),f(ti,"class","label-text"),f(Ln,"type","checkbox"),f(Ln,"class","checkbox checkbox-primary ml-2"),f(ni,"class","label-text"),f(xn,"type","checkbox"),f(xn,"class","checkbox checkbox-primary ml-2"),f(ri,"class","label-text"),f(Pn,"type","checkbox"),f(Pn,"class","checkbox checkbox-primary ml-2"),f(ii,"class","label-text"),f(An,"type","checkbox"),f(An,"class","checkbox checkbox-primary ml-2"),f(oi,"class","label-text"),f(Tn,"type","checkbox"),f(Tn,"class","checkbox checkbox-primary ml-2"),f(li,"class","label-text"),f(Dn,"type","checkbox"),f(Dn,"class","checkbox checkbox-primary ml-2"),f(si,"class","label-text"),f(m,"type","checkbox"),f(m,"class","checkbox checkbox-primary ml-2"),f(se,"class","label-text"),f(nt,"type","checkbox"),f(nt,"class","checkbox checkbox-primary ml-2"),f(It,"class","label-text"),f(ur,"type","checkbox"),f(ur,"class","checkbox checkbox-primary ml-2"),f(Bo,"class","label-text"),f(fr,"type","checkbox"),f(fr,"class","checkbox checkbox-primary ml-2"),f(Uo,"class","label-text"),f(jn,"type","checkbox"),f(jn,"class","checkbox checkbox-primary ml-2"),f(zo,"class","label-text"),f(Bn,"type","checkbox"),f(Bn,"class","checkbox checkbox-primary ml-2"),f(Yo,"class","label-text"),f(hr,"type","checkbox"),f(hr,"class","checkbox checkbox-primary ml-2"),f(Ko,"class","label-text"),f(Un,"type","checkbox"),f(Un,"class","checkbox checkbox-primary ml-2"),f(Go,"class","label-text"),f(pr,"type","checkbox"),f(pr,"class","checkbox checkbox-primary ml-2"),f(qo,"class","label-text"),f(dr,"type","checkbox"),f(dr,"class","checkbox checkbox-primary ml-2"),f(Xo,"class","label-text"),f(mr,"type","checkbox"),f(mr,"class","checkbox checkbox-primary ml-2"),f(Zo,"class","label-text"),f(gr,"type","checkbox"),f(gr,"class","checkbox checkbox-primary ml-2"),f(Jo,"class","label-text"),f(br,"type","checkbox"),f(br,"class","checkbox checkbox-primary ml-2"),f(Qo,"class","label-text"),f(vr,"type","checkbox"),f(vr,"class","checkbox checkbox-primary ml-2"),f(el,"class","label-text"),f(_r,"type","checkbox"),f(_r,"class","checkbox checkbox-primary ml-2"),f(tl,"class","label-text"),f(wr,"type","checkbox"),f(wr,"class","checkbox checkbox-primary ml-2"),f(nl,"class","label-text"),f(zn,"type","checkbox"),f(zn,"class","checkbox checkbox-primary ml-2"),f(rl,"class","label-text"),f(yr,"type","checkbox"),f(yr,"class","checkbox checkbox-primary ml-2"),f(il,"class","label-text"),f(kr,"type","checkbox"),f(kr,"class","checkbox checkbox-primary ml-2"),f(ol,"class","label-text"),f(Sr,"type","checkbox"),f(Sr,"class","checkbox checkbox-primary ml-2"),f(Gi,"class","label-text"),ge(Gi,"grid-column","1/5"),f(Yn,"class","p-1 min-h-[10rem] font-mono"),ge(Yn,"grid-column","1/5"),f(Yn,"rows","5"),Yn.value=e[3],f(l,"class","flex flex-col max-[800px]:w-[90vw] min-[800px]:grid grid-cols-[max-content,auto,max-content,auto] gap-3 absolute overflow-auto h-[90vh] top-11 z-10 py-4 pr-8 pl-4 border bg-base-200 overscroll-contain")},m(O,Q){V(O,n,Q),e[75](n),V(O,t,Q),V(O,r,Q),e[76](r),V(O,i,Q),V(O,o,Q),e[77](o),V(O,s,Q),V(O,l,Q),u(l,a),u(a,c),u(c,h),re(p,h,null),u(h,d),u(h,g),u(c,k),u(c,S),re(F,S,null),u(S,$),u(S,A),u(c,T),u(c,N),re(K,N,null),u(N,G),u(N,U),u(c,W),u(c,x),re(B,x,null),u(x,Y),u(x,X),u(c,ve),u(c,E),re(I,E,null),u(E,te),u(E,Z),u(c,le),u(c,ue),re(Je,ue,null),u(ue,rt),u(ue,Re),u(c,yt),u(c,Te),re(Qe,Te,null),u(Te,kt),u(Te,Ie),u(c,bt),u(c,Be),u(Be,Ue),u(Ue,me),u(Ue,_e),re(Ve,Ue,null),u(Ue,ct),re(ke,Ue,null),u(Be,vt),u(Be,et),u(l,ut),u(l,Se),u(l,be),re($e,l,null),u(l,Ee),re(we,l,null),u(l,St),u(l,Dt),u(l,_),u(l,fe),mt(fe,e[19]),u(l,Pe),u(l,qe),u(l,Fe),u(l,Ke),mt(Ke,e[12]),u(l,De),u(l,Le),u(l,Sn),u(l,Ct),mt(Ct,e[11]),u(l,Cn),u(l,cn),u(l,un),u(l,tt),mt(tt,e[20]),u(l,fn),u(l,Me),u(l,We),u(l,C);for(let Gn=0;Gn<D.length;Gn+=1)D[Gn].m(C,null);gi(C,e[21]),u(l,$t),u(l,Et),u(l,nn),u(l,ft),u(l,Lt),u(l,Ot),u(l,Br),u(l,zt),u(l,Ur),Rt&&Rt.m(l,null),u(l,En),u(l,hn),u(l,zr),u(l,Nt),mt(Nt,e[22]),u(l,Yr),u(l,Vn),u(l,Kr),u(l,rn),rn.checked=e[23],u(l,Gr),u(l,Fn),u(l,qr),u(l,on),on.checked=e[4],u(l,Xr),u(l,Wn),u(l,Zr),u(l,ln),ln.checked=e[24],u(l,b),u(l,J),u(l,ne),u(l,he),he.checked=e[13],u(l,de),u(l,ht),u(l,pn),u(l,Ht),Ht.checked=e[25],u(l,ar),u(l,Jr),u(l,Co),u(l,dn),dn.checked=e[26],u(l,Eo),u(l,Qr),u(l,Lo),u(l,mn),mn.checked=e[27],u(l,xo),u(l,ei),u(l,Po),u(l,gn),gn.checked=e[28],u(l,Ao),u(l,ti),u(l,To),u(l,Ln),Ln.checked=e[29],u(l,Do),u(l,ni),u(l,Oo),u(l,xn),xn.checked=e[30],u(l,Io),u(l,ri),u(l,Mo),u(l,Pn),Pn.checked=e[31],u(l,$o),u(l,ii),u(l,No),u(l,An),An.checked=e[32],u(l,Ho),u(l,oi),u(l,Ro),u(l,Tn),Tn.checked=e[33],u(l,Vo),u(l,li),u(l,Fo),u(l,Dn),Dn.checked=e[34],u(l,Wo),u(l,si),u(l,jo),u(l,m),m.checked=e[15],u(l,q),u(l,se),u(l,Ne),u(l,nt),nt.checked=e[35],u(l,pt),u(l,It),u(l,cr),u(l,ur),ur.checked=e[36],u(l,Ws),u(l,Bo),u(l,js),u(l,fr),fr.checked=e[37],u(l,Bs),u(l,Uo),u(l,Us),u(l,jn),jn.checked=e[38],u(l,zs),u(l,zo),u(l,Ys),u(l,Bn),Bn.checked=e[39],u(l,Ks),u(l,Yo),u(l,Gs),u(l,hr),hr.checked=e[40],u(l,qs),u(l,Ko),u(l,Xs),u(l,Un),Un.checked=e[14],u(l,Zs),u(l,Go),u(l,Js),u(l,pr),pr.checked=e[41],u(l,Qs),u(l,qo),u(l,ea),u(l,dr),dr.checked=e[42],u(l,ta),u(l,Xo),u(l,na),u(l,mr),mr.checked=e[43],u(l,ra),u(l,Zo),u(l,ia),u(l,gr),gr.checked=e[44],u(l,oa),u(l,Jo),u(l,la),u(l,br),br.checked=e[45],u(l,sa),u(l,Qo),u(l,aa),u(l,vr),vr.checked=e[46],u(l,ca),u(l,el),u(l,ua),u(l,_r),_r.checked=e[47],u(l,fa),u(l,tl),u(l,ha),u(l,wr),wr.checked=e[48],u(l,pa),u(l,nl),u(l,da),u(l,zn),zn.checked=e[49],u(l,ma),u(l,rl),u(l,ga),u(l,yr),yr.checked=e[50],u(l,ba),u(l,il),u(l,va),u(l,kr),kr.checked=e[51],u(l,_a),u(l,ol),u(l,wa),u(l,Sr),Sr.checked=e[52],u(l,ya),u(l,Gi),u(l,ka),u(l,Yn),Kn=!0,ql||(Sa=[P(n,"change",e[62]),P(r,"change",e[63]),P(o,"change",e[64]),P(h,"click",e[57]),P(h,"keyup",Wt),P(S,"click",e[58]),P(S,"keyup",Wt),P(N,"click",e[78]),P(N,"keyup",Wt),P(x,"click",e[79]),P(x,"keyup",Wt),P(E,"click",Vh),P(E,"keyup",Wt),P(ue,"click",e[59]),P(ue,"keyup",Wt),P(Te,"click",e[60]),P(Te,"keyup",Wt),P(me,"change",e[80]),P(Be,"click",e[81]),P(Be,"keyup",Wt),P(fe,"input",e[86]),P(Ke,"input",e[87]),P(Ke,"change",e[88]),P(Ct,"input",e[89]),P(Ct,"change",e[55]),P(tt,"input",e[90]),P(tt,"blur",e[91]),P(C,"change",e[92]),P(ft,"blur",e[66]),P(zt,"blur",e[67]),P(Nt,"input",e[93]),P(Nt,"blur",e[94]),P(rn,"change",e[95]),P(on,"change",e[96]),P(ln,"change",e[97]),P(he,"change",e[98]),P(Ht,"change",e[99]),P(Ht,"change",e[100]),P(dn,"change",e[101]),P(dn,"change",e[102]),P(mn,"change",e[103]),P(mn,"change",e[104]),P(gn,"change",e[105]),P(gn,"change",e[106]),P(Ln,"change",e[107]),P(xn,"change",e[108]),P(Pn,"change",e[109]),P(An,"change",e[110]),P(Tn,"change",e[111]),P(Dn,"change",e[112]),P(m,"change",e[113]),P(m,"change",e[69]),P(nt,"change",e[114]),P(ur,"change",e[115]),P(fr,"change",e[116]),P(jn,"change",e[117]),P(jn,"change",e[118]),P(Bn,"change",e[119]),P(Bn,"change",e[120]),P(hr,"change",e[121]),P(Un,"change",e[122]),P(Un,"change",e[70]),P(pr,"change",e[123]),P(dr,"change",e[124]),P(mr,"change",e[125]),P(gr,"change",e[126]),P(br,"change",e[127]),P(vr,"change",e[128]),P(_r,"change",e[129]),P(wr,"change",e[130]),P(zn,"change",e[131]),P(zn,"change",e[132]),P(yr,"change",e[133]),P(kr,"change",e[134]),P(Sr,"change",e[135]),P(Yn,"blur",e[71]),Bu(cp.call(null,l,e[56]))],ql=!0)},p(O,Q){(!Kn||Q[0]&32&&ze!==(ze=O[5]===Jt.BUSINESS))&&(me.checked=ze);const Gn={};$e.$set(Gn),Q[0]&524288&&fe.value!==O[19]&&mt(fe,O[19]),Q[0]&4096&&Ke.value!==O[12]&&mt(Ke,O[12]),Q[0]&2048&&Ct.value!==O[11]&&mt(Ct,O[11]),Q[0]&1048576&&Cl(tt.value)!==O[20]&&mt(tt,O[20]),Q[1]&8388608&&(ll=O[54],D=Wr(D,Q,Ca,1,O,ll,it,C,Vl,gc,null,dc)),Q[0]&2097152|Q[1]&8388608&&gi(C,O[21]),(!Kn||Q[0]&262144&&ft.value!==O[18])&&(ft.value=O[18]),(!Kn||Q[0]&65536&&zt.value!==O[16])&&(zt.value=O[16]),O[1]?Rt?Rt.p(O,Q):(Rt=bc(O),Rt.c(),Rt.m(l,En)):Rt&&(Rt.d(1),Rt=null),Q[0]&4194304&&Cl(Nt.value)!==O[22]&&mt(Nt,O[22]),Q[0]&8388608&&(rn.checked=O[23]),Q[0]&16&&(on.checked=O[4]),Q[0]&16777216&&(ln.checked=O[24]),Q[0]&8192&&(he.checked=O[13]),Q[0]&33554432&&(Ht.checked=O[25]),Q[0]&67108864&&(dn.checked=O[26]),Q[0]&134217728&&(mn.checked=O[27]),Q[0]&268435456&&(gn.checked=O[28]),Q[0]&536870912&&(Ln.checked=O[29]),Q[0]&1073741824&&(xn.checked=O[30]),Q[1]&1&&(Pn.checked=O[31]),Q[1]&2&&(An.checked=O[32]),Q[1]&4&&(Tn.checked=O[33]),Q[1]&8&&(Dn.checked=O[34]),Q[0]&32768&&(m.checked=O[15]),Q[1]&16&&(nt.checked=O[35]),Q[1]&32&&(ur.checked=O[36]),Q[1]&64&&(fr.checked=O[37]),Q[1]&128&&(jn.checked=O[38]),Q[1]&256&&(Bn.checked=O[39]),Q[1]&512&&(hr.checked=O[40]),Q[0]&16384&&(Un.checked=O[14]),Q[1]&1024&&(pr.checked=O[41]),Q[1]&2048&&(dr.checked=O[42]),Q[1]&4096&&(mr.checked=O[43]),Q[1]&8192&&(gr.checked=O[44]),Q[1]&16384&&(br.checked=O[45]),Q[1]&32768&&(vr.checked=O[46]),Q[1]&65536&&(_r.checked=O[47]),Q[1]&131072&&(wr.checked=O[48]),Q[1]&262144&&(zn.checked=O[49]),Q[1]&524288&&(yr.checked=O[50]),Q[1]&1048576&&(kr.checked=O[51]),Q[1]&2097152&&(Sr.checked=O[52]),(!Kn||Q[0]&8)&&(Yn.value=O[3])},i(O){Kn||(M(p.$$.fragment,O),M(F.$$.fragment,O),M(K.$$.fragment,O),M(B.$$.fragment,O),M(I.$$.fragment,O),M(Je.$$.fragment,O),M(Qe.$$.fragment,O),M(Ve.$$.fragment,O),M(ke.$$.fragment,O),M($e.$$.fragment,O),M(we.$$.fragment,O),Kn=!0)},o(O){j(p.$$.fragment,O),j(F.$$.fragment,O),j(K.$$.fragment,O),j(B.$$.fragment,O),j(I.$$.fragment,O),j(Je.$$.fragment,O),j(Qe.$$.fragment,O),j(Ve.$$.fragment,O),j(ke.$$.fragment,O),j($e.$$.fragment,O),j(we.$$.fragment,O),Kn=!1},d(O){O&&R(n),e[75](null),O&&R(t),O&&R(r),e[76](null),O&&R(i),O&&R(o),e[77](null),O&&R(s),O&&R(l),ie(p),ie(F),ie(K),ie(B),ie(I),ie(Je),ie(Qe),ie(Ve),ie(ke),e[82](null),ie($e),ie(we);for(let Q=0;Q<D.length;Q+=1)D[Q].d();Rt&&Rt.d(),ql=!1,Tt(Sa)}}}function gc(e,n){let t,r=n[152]+"",i,o;return{key:e,first:null,c(){t=v("option"),i=gt(r),o=w(),t.__value=n[152],t.value=t.__value,this.first=t},m(s,l){V(s,t,l),u(t,i),u(t,o)},p(s,l){n=s},d(s){s&&R(t)}}}function bc(e){let n,t,r,i,o;return{c(){n=v("span"),n.textContent="Max lines (floating window)",t=w(),r=v("input"),f(n,"class","label-text col-span-2"),f(r,"type","number"),f(r,"class","input input-bordered h-8 mb-2 col-span-2"),f(r,"min","0"),r.value=e[17]},m(s,l){V(s,n,l),V(s,t,l),V(s,r,l),i||(o=P(r,"blur",e[68]),i=!0)},p(s,l){l[0]&131072&&r.value!==s[17]&&(r.value=s[17])},d(s){s&&R(n),s&&R(t),s&&R(r),i=!1,o()}}}function Xp(e){let n,t,r,i;pc.title=n=e[19]||"Texthooker UI";let o=e[0]&&mc(e);return{c(){t=w(),o&&o.c(),r=$n()},m(s,l){V(s,t,l),o&&o.m(s,l),V(s,r,l),i=!0},p(s,l){(!i||l[0]&524288)&&n!==(n=s[19]||"Texthooker UI")&&(pc.title=n),s[0]?o?(o.p(s,l),l[0]&1&&M(o,1)):(o=mc(s),o.c(),M(o,1),o.m(r.parentNode,r)):o&&(lt(),j(o,1,1,()=>{o=null}),st())},i(s){i||(M(o),i=!0)},o(s){j(o),i=!1},d(s){s&&R(t),o&&o.d(s),s&&R(r)}}}function us(e,n){const t=document.createElement("a");t.href=URL.createObjectURL(new Blob([JSON.stringify(n)],{type:"application/json"})),t.rel="noopener",t.download=e,setTimeout(()=>{URL.revokeObjectURL(t.href)},1e4),setTimeout(()=>{t.click()})}function Zp(e,n,t){let r,i,o,s,l,a,c,h,p,d,g,k,S,F,$,A,T,N,K,G,U,W,x,B,Y,X,ve,E,I,te,Z,le,ue,Je,rt,Re,yt,Te,Qe,kt,Ie,bt,Be,Ue,me,ze,_e,Ve,ct,ke,vt,et,ut,Se,be,$e;y(e,je,m=>t(137,o=m)),y(e,wi,m=>t(13,s=m)),y(e,zi,m=>t(3,l=m)),y(e,Ze,m=>t(138,a=m)),y(e,$i,m=>t(14,c=m)),y(e,Nr,m=>t(15,h=m)),y(e,Pr,m=>t(16,p=m)),y(e,Or,m=>t(17,d=m)),y(e,Dr,m=>t(18,g=m)),y(e,tr,m=>t(139,k=m)),y(e,bn,m=>t(140,S=m)),y(e,Zn,m=>t(141,F=m)),y(e,bo,m=>t(142,$=m)),y(e,vn,m=>t(143,A=m)),y(e,Tl,m=>t(144,T=m)),y(e,vl,m=>t(145,N=m)),y(e,In,m=>t(74,K=m)),y(e,mo,m=>t(4,G=m)),y(e,Ar,m=>t(5,U=m)),y(e,or,m=>t(6,W=m)),y(e,po,m=>t(19,x=m)),y(e,Tr,m=>t(20,B=m)),y(e,vi,m=>t(21,Y=m)),y(e,rr,m=>t(22,X=m)),y(e,_i,m=>t(23,ve=m)),y(e,go,m=>t(24,E=m)),y(e,yi,m=>t(25,I=m)),y(e,ki,m=>t(26,te=m)),y(e,Si,m=>t(27,Z=m)),y(e,Ci,m=>t(28,le=m)),y(e,Ei,m=>t(29,ue=m)),y(e,Li,m=>t(30,Je=m)),y(e,xi,m=>t(31,rt=m)),y(e,Pi,m=>t(32,Re=m)),y(e,Ai,m=>t(33,yt=m)),y(e,Ti,m=>t(34,Te=m)),y(e,Di,m=>t(35,Qe=m)),y(e,Oi,m=>t(36,kt=m)),y(e,Ii,m=>t(37,Ie=m)),y(e,Hr,m=>t(38,bt=m)),y(e,Rr,m=>t(39,Be=m)),y(e,Mi,m=>t(40,Ue=m)),y(e,Ni,m=>t(41,me=m)),y(e,Hi,m=>t(42,ze=m)),y(e,Ri,m=>t(43,_e=m)),y(e,Vi,m=>t(44,Ve=m)),y(e,Fi,m=>t(45,ct=m)),y(e,Wi,m=>t(46,ke=m)),y(e,ji,m=>t(47,vt=m)),y(e,Bi,m=>t(48,et=m)),y(e,Vr,m=>t(49,ut=m)),y(e,Ui,m=>t(50,Se=m)),y(e,ys,m=>t(51,be=m)),y(e,Ha,m=>t(52,$e=m));let{selectedLineIds:Ee}=n,{settingsOpen:we}=n,{settingsElement:St}=n,{pipAvailable:Dt}=n;async function _(m){if(!s){const{canceled:q}=await new Promise(se=>{H(je,o={icon:Xt,message:m?"All displayed and stored Lines will be cleared":"Clear stored Lines + set Timer to 00:00:00",callback:se},o)});if(q)return}H(Ze,a=[],a),t(72,Ee=[]),window.localStorage.removeItem("bannou-texthooker-lineData"),m||H(vn,A=0,A)}const fe=Fr(),Pe=[Qt.OFF,Qt.NOTO,Qt.KLEE,Qt.SHIPPORI,Qt.ACKAISYO,Qt.CINECAPTION226];let qe,Fe,Ke,De,Le;function Sn(m){const q=m.target;q.setCustomValidity(""),i===r?(q.setCustomValidity("Duplicate Websocket"),t(11,i=""),H(In,K="",K)):H(In,K=q.value,K),q.reportValidity()}function Ct(m){m&&!Le?uo().then(()=>{Le=new MutationObserver(Cn),Le.observe(document.body,{childList:!0})}):!m&&Le&&(Le.disconnect(),Le=void 0)}function Cn(m){for(let q=0,{length:se}=m;q<se;q+=1){const{addedNodes:Ne}=m[q];for(let nt=0,{length:pt}=Ne;nt<pt;nt+=1){const It=Ne[q];(It==null?void 0:It.tagName)==="P"&&(Ir.next([It.textContent,Zt.EXTERNAL,""]),It.remove())}}}function cn(m){const q=m.target;!N&&q!==St&&q.parentElement!==St&&q!==qe&&q!==Fe&&q!==Ke&&!T&&t(0,we=!1)}async function un(){const{canceled:m,data:q}=await new Promise(se=>{H(je,o={icon:Xt,askForData:"text",dataValue:"00:00:00",message:"New Time",callback:se},o)});if(!m){if(!/^[\d]{1,}:[\d]{1,2}:[\d]{1,2}$/.test(q))return new Promise(se=>{H(je,o={icon:jc,type:"error",message:"Invalid Time value (x:xx:xx)",showCancel:!1,callback:se},o)});H(vn,A=Wh(q),A)}}async function tt(){if(!s){const{canceled:m}=await new Promise(q=>{H(je,o={icon:Xt,message:"Timer will be set to 00:00:00",callback:q},o)});if(m)return}H(vn,A=0,A)}async function fn(m){m.altKey?await En(qe,"Existing Data will be overwritten"):us("texthooker-ui_data.json",{"bannou-texthooker-timeValue":A,"bannou-texthooker-userNotes":$,"bannou-texthooker-lineData":a,"bannou-texthooker-actionHistory":F})}async function Me(m){m.altKey?await En(Fe,"Presets, Settings etc. will be overwritten"):us("texthooker-ui_settings.json",{currentSettings:De.getCurrentSettings(),settingPresets:S,lastSettingsPreset:k})}async function We(m){if(m.altKey)await En(Ke,"Preset will be overwritten or otherwise added");else if(k){const q=S.find(se=>se.name===k);q&&us("texthooker-ui_preset.json",{name:q.name,settings:q.settings})}}async function C(){const m=await hn(qe).catch(({message:q})=>{H(je,o={type:"error",message:q,showCancel:!1},o)});if(m){const q=Object.entries(m);for(let se=0,{length:Ne}=q;se<Ne;se+=1){const[nt,pt]=q[se];switch(nt){case"bannou-texthooker-timeValue":H(vn,A=pt,A);break;case"bannou-texthooker-userNotes":H(bo,$=pt,$);break;case"bannou-texthooker-lineData":H(Ze,a=pt,a);break;case"bannou-texthooker-actionHistory":H(Zn,F=pt,F);break}}}t(7,qe.value=null,qe)}async function D(){const m=await hn(Fe).catch(({message:q})=>{H(je,o={type:"error",message:q,showCancel:!1},o)});m&&(H(bn,S=m.settingPresets||[],S),H(tr,k=m.lastSettingsPreset||"",k),m.currentSettings&&De.updateSettingsWithPreset({name:"",settings:m.currentSettings},!1)),t(8,Fe.value=null,Fe)}async function it(){const m=await hn(Ke).catch(({message:q})=>{H(je,o={type:"error",message:q,showCancel:!1},o)});if(m&&m.name&&m.settings){const q=S.findIndex(se=>se.name===m.name);q>-1?(H(bn,S[q]=m,S),H(bn,S=[...S],S)):H(bn,S=[...S,m],S),H(tr,k=m.name,k),De.updateSettingsWithPreset(m)}t(9,Ke.value=null,Ke)}async function $t(m,q,se){if(m)return;const{canceled:Ne}=await new Promise(nt=>{H(je,o={icon:Xt,message:q,callback:nt},o)});Ne||window.localStorage.removeItem(se)}function Et(m){const q=m.target,se=Number.parseInt(q.value||"0"),Ne=se!==g;!se||se<0?H(Dr,g=0,g):H(Dr,g=se,g),q.value=`${g}`,Ne&&nn()}async function nn(){if(!g||a.length<2)return;const{canceled:m}=await new Promise(pt=>{H(je,o={icon:Xt,message:"Apply to current lines",callback:pt},o)});if(m)return;const q=[],se=new Set,Ne=new Set,nt=a.splice(-(g+1));for(let pt=0,{length:It}=nt;pt<It;pt+=1){const cr=nt[pt];se.has(cr.text)?Ne.add(cr.id):(q.push(cr),se.add(cr.text))}H(Ze,a=[...a,...q],a),t(72,Ee=Ee.filter(pt=>!Ne.has(pt)))}function ft(m){const q=m.target,se=Number.parseInt(q.value||"0"),Ne=se!==p;!se||se<0?H(Pr,p=0,p):H(Pr,p=se,p),q.value=`${p}`,Ne&&Ot()}function Lt(m){const q=m.target,se=Number.parseInt(q.value||"0");!se||se<0?H(Or,d=1,d):H(Or,d=se,d),q.value=`${d}`}async function Ot(){const m=a.length-p;if(!p||m<1)return;const{canceled:q}=await new Promise(se=>{H(je,o={icon:Xt,message:`This will remove the first ${m} line(s)`,callback:se},o)});q?H(Pr,p=0,p):fe("maxLinesChange")}async function Br(){if(!h||a.length<2)return;const{canceled:m}=await new Promise(q=>{H(je,o={icon:Xt,message:"Apply to current lines",callback:q},o)});if(!m){const q=new Set,se=new Set;H(Ze,a=a.filter(Ne=>q.has(Ne.text)?(se.add(Ne.id),!1):(q.add(Ne.text),!0)),a),t(72,Ee=Ee.filter(Ne=>!se.has(Ne)))}}async function zt(){if(c){const{canceled:m}=await new Promise(q=>{H(je,o={icon:Xt,message:"Apply to current Lines",callback:q},o)});m||H(Ze,a=a.map(q=>(q.text=q.text.replace(/\s/g,"").trim(),q)),a)}}function Ur(m){H(zi,l=m.target.value,l)}async function En(m,q){if(!s){const{canceled:se}=await new Promise(Ne=>{H(je,o={icon:Xt,message:q,callback:Ne},o)});if(se)return}m.click()}function hn(m){return new Promise((q,se)=>{const[Ne]=m.files,nt=new FileReader;if(!Ne)return q();if(!Ne.name.endsWith(".json"))return H(je,o={type:"error",message:"Expected json File",showCancel:!1},o),m.value=null,q();nt.addEventListener("loadend",pt=>{try{const It=JSON.parse(pt.target.result);q(It)}catch{se(new Error("Error parsing File"))}}),nt.addEventListener("error",()=>se(new Error("Failed to read File"))),nt.readAsText(Ne,"utf-8")})}function zr(m){dt[m?"unshift":"push"](()=>{qe=m,t(7,qe)})}function Nt(m){dt[m?"unshift":"push"](()=>{Fe=m,t(8,Fe)})}function Yr(m){dt[m?"unshift":"push"](()=>{Ke=m,t(9,Ke)})}const Vn=()=>_(!0),Kr=()=>_(!1),rn=()=>H(Ar,U=U===Jt.BUSINESS?Jt.GARDEN:Jt.BUSINESS,U),Gr=()=>H(Ar,U=U===Jt.BUSINESS?Jt.GARDEN:Jt.BUSINESS,U);function Fn(m){dt[m?"unshift":"push"](()=>{De=m,t(10,De)})}function qr(m){co.call(this,e,m)}const on=({detail:m})=>We(m);function Xr(m){co.call(this,e,m)}function Wn(){x=this.value,po.set(x)}function Zr(){r=this.value,t(12,r),t(6,W)}const ln=()=>H(or,W=r,W);function b(){i=this.value,t(11,i),t(74,K)}function J(){B=Cl(this.value),Tr.set(B)}const ne=()=>{(!B||B<1)&&H(Tr,B=24,B)};function he(){Y=Xu(this),vi.set(Y),t(54,Pe)}function de(){X=Cl(this.value),rr.set(X)}const ht=()=>{(X===null||X<0)&&H(rr,X=0,X)};function pn(){ve=this.checked,_i.set(ve)}function Ht(){G=this.checked,mo.set(G)}function ar(){E=this.checked,go.set(E)}function Jr(){s=this.checked,wi.set(s)}function Co(){I=this.checked,yi.set(I)}const dn=()=>$t(I,"Clear stored stats","bannou-texthooker-timeValue");function Eo(){te=this.checked,ki.set(te)}const Qr=()=>$t(te,"Clear stored notes","bannou-texthooker-userNotes");function Lo(){Z=this.checked,Si.set(Z)}const mn=()=>$t(Z,"Clear stored lines","bannou-texthooker-lineData");function xo(){le=this.checked,Ci.set(le)}const ei=()=>$t(le,"Clear action history","bannou-texthooker-actionHistory");function Po(){ue=this.checked,Ei.set(ue)}function gn(){Je=this.checked,Li.set(Je)}function Ao(){rt=this.checked,xi.set(rt)}function ti(){Re=this.checked,Pi.set(Re)}function To(){yt=this.checked,Ai.set(yt)}function Ln(){Te=this.checked,Ti.set(Te)}function Do(){h=this.checked,Nr.set(h)}function ni(){Qe=this.checked,Di.set(Qe)}function Oo(){kt=this.checked,Oi.set(kt)}function xn(){Ie=this.checked,Ii.set(Ie)}function Io(){bt=this.checked,Hr.set(bt)}const ri=()=>fe("layoutChange");function Mo(){Be=this.checked,Rr.set(Be)}const Pn=()=>fe("layoutChange");function $o(){Ue=this.checked,Mi.set(Ue)}function ii(){c=this.checked,$i.set(c)}function No(){me=this.checked,Ni.set(me)}function An(){ze=this.checked,Hi.set(ze)}function Ho(){_e=this.checked,Ri.set(_e)}function oi(){Ve=this.checked,Vi.set(Ve)}function Ro(){ct=this.checked,Fi.set(ct)}function Tn(){ke=this.checked,Wi.set(ke)}function Vo(){vt=this.checked,ji.set(vt)}function li(){et=this.checked,Bi.set(et)}function Fo(){ut=this.checked,Vr.set(ut)}const Dn=()=>{Yl.next(),Kl.next()};function Wo(){Se=this.checked,Ui.set(Se)}function si(){be=this.checked,ys.set(be)}function jo(){$e=this.checked,Ha.set($e)}return e.$$set=m=>{"selectedLineIds"in m&&t(72,Ee=m.selectedLineIds),"settingsOpen"in m&&t(0,we=m.settingsOpen),"settingsElement"in m&&t(73,St=m.settingsElement),"pipAvailable"in m&&t(1,Dt=m.pipAvailable)},e.$$.update=()=>{e.$$.dirty[0]&64&&t(12,r=W),e.$$.dirty[2]&4096&&t(11,i=K),e.$$.dirty[0]&32&&(document.body.dataset.theme=U),e.$$.dirty[0]&16&&Ct(G),e.$$.dirty[0]&8&&bu(document,l)},[we,Dt,_,l,G,U,W,qe,Fe,Ke,De,i,r,s,c,h,p,d,g,x,B,Y,X,ve,E,I,te,Z,le,ue,Je,rt,Re,yt,Te,Qe,kt,Ie,bt,Be,Ue,me,ze,_e,Ve,ct,ke,vt,et,ut,Se,be,$e,fe,Pe,Sn,cn,un,tt,fn,Me,We,C,D,it,$t,Et,ft,Lt,Br,zt,Ur,Ee,St,K,zr,Nt,Yr,Vn,Kr,rn,Gr,Fn,qr,on,Xr,Wn,Zr,ln,b,J,ne,he,de,ht,pn,Ht,ar,Jr,Co,dn,Eo,Qr,Lo,mn,xo,ei,Po,gn,Ao,ti,To,Ln,Do,ni,Oo,xn,Io,ri,Mo,Pn,$o,ii,No,An,Ho,oi,Ro,Tn,Vo,li,Fo,Dn,Wo,si,jo]}class Jp extends Ut{constructor(n){super(),Bt(this,n,Zp,Xp,wt,{selectedLineIds:72,settingsOpen:0,settingsElement:73,pipAvailable:1,handleReset:2},null,[-1,-1,-1,-1,-1])}get handleReset(){return this.$$.ctx[2]}}class Qp{constructor(n=!0){qi(this,"websocketUrl");qi(this,"socket");qi(this,"socketState");qi(this,"subscriptions",[]);this.socketState=n?Ns:Hs,this.subscriptions.push((n?or:In).subscribe(t=>{t!==this.websocketUrl&&(this.websocketUrl=t,this.reloadSocket())}),Vr.pipe(ho(t=>t?(n?Yl:Kl).pipe(Ul(()=>{var r;return((r=this.socket)==null?void 0:r.readyState)===3})):fo)).subscribe(()=>this.reloadSocket()))}getCurrentUrl(){return this.websocketUrl}connect(){var n;if(!(((n=this.socket)==null?void 0:n.readyState)<2)){if(!this.websocketUrl){this.socketState.next(3);return}this.socketState.next(0);try{this.socket=new WebSocket(this.websocketUrl),this.socket.onopen=this.updateSocketState.bind(this),this.socket.onclose=this.updateSocketState.bind(this),this.socket.onmessage=this.handleMessage.bind(this)}catch{this.socketState.next(3)}}}disconnect(){var n;((n=this.socket)==null?void 0:n.readyState)===1&&this.socket.close(1e3,"User Request")}cleanUp(){this.disconnect();for(let n=0,{length:t}=this.subscriptions;n<t;n+=1)this.subscriptions[n].unsubscribe()}reloadSocket(){this.disconnect(),this.socket=void 0,this.connect()}updateSocketState(){this.socket&&this.socketState.next(this.socket.readyState)}handleMessage(n){var i,o,s,l;let t=n.data;try{((i=JSON.parse(n.data))==null?void 0:i.event)==="reset_checkboxes"&&Ir.next(["",Zt.RESETCHECKBOXES,""]),t=((o=JSON.parse(n.data))==null?void 0:o.sentence)||n.data}catch{}console.log(n.data);const r=((l=(s=JSON.parse(n.data))==null?void 0:s.data)==null?void 0:l.id)||"";Ir.next([t,Zt.SOCKET,r])}}function e1(e){let n;return{c(){n=v("span"),f(n,"class","animate-ping relative inline-flex rounded-full h-3 w-3 mx-3 bg-primary")},m(t,r){V(t,n,r)},p:Oe,i:Oe,o:Oe,d(t){t&&R(n)}}}function t1(e){let n,t,r;return t=new ye({props:{path:ff,class:"cursor-pointer mx-2"}}),t.$on("click",e[3]),{c(){n=v("div"),oe(t.$$.fragment),f(n,"class","hover:text-primary"),f(n,"title",e[1]),ee(n,"text-red-500",e[0]!==-1),ee(n,"text-green-700",e[0]===1)},m(i,o){V(i,n,o),re(t,n,null),r=!0},p(i,o){(!r||o&2)&&f(n,"title",i[1]),(!r||o&1)&&ee(n,"text-red-500",i[0]!==-1),(!r||o&1)&&ee(n,"text-green-700",i[0]===1)},i(i){r||(M(t.$$.fragment,i),r=!0)},o(i){j(t.$$.fragment,i),r=!1},d(i){i&&R(n),ie(t)}}}function n1(e){let n,t,r,i;const o=[t1,e1],s=[];function l(a,c){return a[0]!==0?0:1}return n=l(e),t=s[n]=o[n](e),{c(){t.c(),r=$n()},m(a,c){s[n].m(a,c),V(a,r,c),i=!0},p(a,[c]){let h=n;n=l(a),n===h?s[n].p(a,c):(lt(),j(s[h],1,1,()=>{s[h]=null}),st(),t=s[n],t?t.p(a,c):(t=s[n]=o[n](a),t.c()),M(t,1),t.m(r.parentNode,r))},i(a){i||(M(t),i=!0)},o(a){j(t),i=!1},d(a){s[n].d(a),a&&R(r)}}}function r1(e,n,t){let r,i,o,s,l,a,c,h;y(e,In,N=>t(9,o=N)),y(e,or,N=>t(10,s=N)),y(e,Kt,N=>t(11,l=N)),y(e,je,N=>t(12,a=N)),y(e,Vr,N=>t(13,c=N)),y(e,Ui,N=>t(14,h=N));let{isPrimary:p=!0}=n,d,g=!1,k=!1,S=!1,F=p?Ns:Hs;y(e,F,N=>t(0,i=N)),Rl(()=>(T(),()=>{S=!0,d==null||d.cleanUp()}));function $(N){switch(N){case 0:t(5,k=!1),S=!1;break;case 1:g=!0,t(5,k=!0);break;case 3:const K=p?"primary":"secondary";h&&!S&&g&&(p?s:o)&&(k||!c)&&H(je,a={type:"error",message:k?`Lost Connection to ${K} Websocket`:`Unable to connect to ${K} Websocket`,showCancel:!1},a),H(Kt,l=!0,l),g=!0,t(5,k=!1),S||(p?Yl:Kl).next();break}t(1,r=A(k))}function A(N){return N?`Connected with ${p?s:o}`:"Not Connected"}async function T(){i===1&&d?(S=!0,d.disconnect()):(d=d||new Qp(p),d.connect())}return e.$$set=N=>{"isPrimary"in N&&t(4,p=N.isPrimary)},e.$$.update=()=>{e.$$.dirty&32&&t(1,r=A(k)),e.$$.dirty&1&&$(i)},[i,r,F,T,p,k]}class $u extends Ut{constructor(n){super(),Bt(this,n,r1,n1,wt,{isPrimary:4})}}function i1(e){let n,t,r,i,o;return{c(){n=v("div"),t=w(),r=v("div"),r.innerHTML=`<div role="status"><svg aria-hidden="true" class="w-8 h-8 text-gray-200 animate-spin dark:text-gray-600 fill-blue-600" viewBox="0 0 100 101" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z" fill="currentColor"></path><path d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z" fill="currentFill"></path></svg>
|
38
|
-
<span class="sr-only">Loading...</span></div>`,i=w(),o=v("div"),f(n,"class","tap-highlight-transparent absolute inset-0 bg-black/[.3] z-20"),f(r,"class","fixed inset-0 flex h-full w-full items-center justify-center z-50")},m(s,l){V(s,n,l),V(s,t,l),V(s,r,l),V(s,i,l),V(s,o,l)},p:Oe,i:Oe,o:Oe,d(s){s&&R(n),s&&R(t),s&&R(r),s&&R(i),s&&R(o)}}}class o1 extends Ut{constructor(n){super(),Bt(this,n,null,i1,wt,{})}}function l1(e){let n=(e[2]??"")+"",t,r,i=(e[3]??"")+"",o,s,l,a,c,h,p;return{c(){t=gt(n),r=w(),o=gt(i),s=w(),l=v("div"),a=v("div"),c=gt(e[1]),f(l,"class","text-sm timer mr-1 sm:text-base sm:mr-2 svelte-1efsh80"),ee(l,"blur",e[4])},m(d,g){V(d,t,g),V(d,r,g),V(d,o,g),V(d,s,g),V(d,l,g),u(l,a),u(a,c),e[16](l),h||(p=P(l,"pointerleave",e[7]),h=!0)},p(d,[g]){g&4&&n!==(n=(d[2]??"")+"")&&jt(t,n),g&8&&i!==(i=(d[3]??"")+"")&&jt(o,i),g&2&&jt(c,d[1]),g&16&&ee(l,"blur",d[4])},i:Oe,o:Oe,d(d){d&&R(t),d&&R(r),d&&R(o),d&&R(s),d&&R(l),e[16](null),h=!1,p()}}}const s1=/[^0-9A-Z○◯々-〇〻ぁ-ゖゝ-ゞァ-ヺー0-9A-Zヲ-ン\p{Radical}\p{Unified_Ideograph}]+/gimu;function a1(e){return e?c1(e.replace(s1,"")):0}function c1(e){return Array.from(e).length}function u1(e,n,t){let r,i,o,s,l,a,c,h,p,d,g,k,S,F;y(e,Ri,E=>t(10,r=E)),y(e,Vi,E=>t(11,i=E)),y(e,Hi,E=>t(12,o=E)),y(e,Ni,E=>t(13,s=E)),y(e,vn,E=>t(14,l=E)),y(e,Kt,E=>t(19,a=E)),y(e,Bi,E=>t(20,c=E)),y(e,ji,E=>t(21,h=E)),y(e,rr,E=>t(22,p=E)),y(e,_i,E=>t(23,d=E)),y(e,Ze,E=>t(15,g=E)),y(e,Fi,E=>t(4,F=E));let $=0,A=0;const T=Fr(),N=Kt.pipe(ho(E=>E?(A=0,fo):($=performance.now(),Ph(1e3))),Xn(Y),Jn());y(e,N,E=>t(2,k=E));const K=vh([Kt,rr]).pipe(ho(([E,I])=>E||I<1?fo:Ah(Ir,er(window,"pointermove"),er(document,"selectionchange")).pipe(Dh(!0),Ih(1e3),Xn(()=>A=performance.now()+p*1e3),$s(p*1e3))),Jn());y(e,K,E=>t(3,S=E));let G,U=0,W=0,x="";function B(){const E=window.getSelection();E!=null&&E.toString()&&E.getRangeAt(0).intersectsNode(G)&&E.removeAllRanges()}function Y(){const E=A?Math.min(A,performance.now()):performance.now(),I=Math.round((E-$+Number.EPSILON)/1e3);A&&E>=A?(H(Kt,a=!0,a),d?H(vn,l=Math.max(0,l+I-p),l):H(vn,l+=I,l),h&&(T("afkBlur",!0),document.addEventListener("dblclick",te=>{te.stopPropagation(),window.getSelection().removeAllRanges(),T("afkBlur",!1),c&&H(Kt,a=!1,a)},{once:!0,capture:!1}))):($=E,H(vn,l+=I,l))}function X(E,I,te,Z){let le="";s&&(le+=Fh(E)),o&&(le+=` (${I}/h) `),r&&(le+=` ${te}`),i&&(le+=r?" /":"",le+=` ${Z}`),t(1,x=le.replace(/[ ]+/g," ").trim())}function ve(E){dt[E?"unshift":"push"](()=>{G=E,t(0,G)})}return e.$$.update=()=>{if(e.$$.dirty&50688&&r&&g){let E=0;for(let I=0,{length:te}=g;I<te;I+=1)E+=a1(g[I].text);t(9,W=E),t(8,U=l?Math.ceil(3600*W/l):0)}e.$$.dirty&65280&&(l>-1&&(s||o||r||i)?X(l,U,W,g.length):t(1,x=""))},[G,x,k,S,F,N,K,B,U,W,r,i,o,s,l,g,ve]}class f1 extends Ut{constructor(n){super(),Bt(this,n,u1,l1,wt,{})}}const{window:h1}=Fc;function vc(e,n,t){const r=e.slice();return r[106]=n[t],r[108]=t,r}function _c(e,n,t){const r=e.slice();return r[106]=n[t],r[109]=n,r[108]=t,r}function wc(e){let n,t;return n=new o1({}),{c(){oe(n.$$.fragment)},m(r,i){re(n,r,i),t=!0},i(r){t||(M(n.$$.fragment,r),t=!0)},o(r){j(n.$$.fragment,r),t=!1},d(r){ie(n,r)}}}function yc(e){let n,t;return n=new $u({}),{c(){oe(n.$$.fragment)},m(r,i){re(n,r,i),t=!0},i(r){t||(M(n.$$.fragment,r),t=!0)},o(r){j(n.$$.fragment,r),t=!1},d(r){ie(n,r)}}}function kc(e){let n,t;return n=new $u({props:{isPrimary:!1}}),{c(){oe(n.$$.fragment)},m(r,i){re(n,r,i),t=!0},i(r){t||(M(n.$$.fragment,r),t=!0)},o(r){j(n.$$.fragment,r),t=!1},d(r){ie(n,r)}}}function p1(e){let n,t,r;return t=new ye({props:{path:vf,width:e[13],height:e[13]}}),t.$on("click",e[55]),{c(){n=v("div"),oe(t.$$.fragment),f(n,"role","button"),f(n,"title","Pause"),f(n,"class","mr-1 hover:text-primary sm:mr-2")},m(i,o){V(i,n,o),re(t,n,null),r=!0},p(i,o){const s={};o[0]&8192&&(s.width=i[13]),o[0]&8192&&(s.height=i[13]),t.$set(s)},i(i){r||(M(t.$$.fragment,i),r=!0)},o(i){j(t.$$.fragment,i),r=!1},d(i){i&&R(n),ie(t)}}}function d1(e){let n,t,r;return t=new ye({props:{path:wf,width:e[13],height:e[13]}}),t.$on("click",e[54]),{c(){n=v("div"),oe(t.$$.fragment),f(n,"role","button"),f(n,"title","Continue"),f(n,"class","mr-1 animate-[pulse_1.25s_cubic-bezier(0.4,0,0.6,1)_infinite] hover:text-primary sm:mr-2")},m(i,o){V(i,n,o),re(t,n,null),r=!0},p(i,o){const s={};o[0]&8192&&(s.width=i[13]),o[0]&8192&&(s.height=i[13]),t.$set(s)},i(i){r||(M(t.$$.fragment,i),r=!0)},o(i){j(t.$$.fragment,i),r=!1},d(i){i&&R(n),ie(t)}}}function Sc(e){let n,t,r,i,o,s;return t=new ye({props:{path:no,width:e[13],height:e[13]}}),t.$on("click",e[39]),o=new ye({props:{path:Wc,width:e[13],height:e[13]}}),o.$on("click",e[40]),{c(){n=v("div"),oe(t.$$.fragment),r=w(),i=v("div"),oe(o.$$.fragment),f(n,"role","button"),f(n,"title","Remove selected Lines"),f(n,"class","mr-1 hover:text-primary sm:mr-2"),f(i,"role","button"),f(i,"title","Deselect Lines"),f(i,"class","mr-1 hover:text-primary sm:mr-2")},m(l,a){V(l,n,a),re(t,n,null),V(l,r,a),V(l,i,a),re(o,i,null),s=!0},p(l,a){const c={};a[0]&8192&&(c.width=l[13]),a[0]&8192&&(c.height=l[13]),t.$set(c);const h={};a[0]&8192&&(h.width=l[13]),a[0]&8192&&(h.height=l[13]),o.$set(h)},i(l){s||(M(t.$$.fragment,l),M(o.$$.fragment,l),s=!0)},o(l){j(t.$$.fragment,l),j(o.$$.fragment,l),s=!1},d(l){l&&R(n),ie(t),l&&R(r),l&&R(i),ie(o)}}}function Cc(e){let n,t,r,i;return t=new ye({props:{width:e[13],height:e[13],path:e[1]?Pa:Aa}}),t.$on("click",e[41]),{c(){n=v("div"),oe(t.$$.fragment),f(n,"role","button"),f(n,"class","mr-1 hover:text-primary sm:mr-2"),f(n,"title",r=e[1]?"Close Floating Window":"Open Floating Window")},m(o,s){V(o,n,s),re(t,n,null),i=!0},p(o,s){const l={};s[0]&8192&&(l.width=o[13]),s[0]&8192&&(l.height=o[13]),s[0]&2&&(l.path=o[1]?Pa:Aa),t.$set(l),(!i||s[0]&2&&r!==(r=o[1]?"Close Floating Window":"Open Floating Window"))&&f(n,"title",r)},i(o){i||(M(t.$$.fragment,o),i=!0)},o(o){j(t.$$.fragment,o),i=!1},d(o){o&&R(n),ie(t)}}}function Ec(e,n){let t,r,i=n[108],o;const s=()=>n[66](r,i),l=()=>n[66](null,i);let a={line:n[106],index:n[108],isLast:n[3].length-1===n[108]};return r=new _u({props:a}),s(),r.$on("selected",n[67]),r.$on("deselected",n[68]),r.$on("edit",n[44]),{key:e,first:null,c(){t=$n(),oe(r.$$.fragment),this.first=t},m(c,h){V(c,t,h),re(r,c,h),o=!0},p(c,h){n=c,i!==n[108]&&(l(),i=n[108],s());const p={};h[0]&8&&(p.line=n[106]),h[0]&8&&(p.index=n[108]),h[0]&8&&(p.isLast=n[3].length-1===n[108]),r.$set(p)},i(c){o||(M(r.$$.fragment,c),o=!0)},o(c){j(r.$$.fragment,c),o=!1},d(c){c&&R(t),l(),ie(r,c)}}}function Lc(e){let n,t,r,i;return t=new ip({}),{c(){n=v("div"),oe(t.$$.fragment),f(n,"class","bg-base-200 fixed top-0 right-0 z-[60] flex h-full w-full max-w-3xl flex-col justify-between")},m(o,s){V(o,n,s),re(t,n,null),i=!0},p(o,s){},i(o){i||(M(t.$$.fragment,o),o&&(r||Mr(()=>{r=Vc(n,mu,{x:100,duration:100,easing:$h}),r.start()})),i=!0)},o(o){j(t.$$.fragment,o),i=!1},d(o){o&&R(n),ie(t)}}}function xc(e){let n=[],t=new Map,r,i,o=e[12];const s=l=>l[106].id;for(let l=0;l<o.length;l+=1){let a=vc(e,o,l),c=s(a);t.set(c,n[l]=Pc(c,a))}return{c(){for(let l=0;l<n.length;l+=1)n[l].c();r=$n()},m(l,a){for(let c=0;c<n.length;c+=1)n[c].m(l,a);V(l,r,a),i=!0},p(l,a){a[0]&4098&&(o=l[12],lt(),n=Wr(n,a,s,1,l,o,t,r.parentNode,Ps,Pc,r,vc),st())},i(l){if(!i){for(let a=0;a<o.length;a+=1)M(n[a]);i=!0}},o(l){for(let a=0;a<n.length;a+=1)j(n[a]);i=!1},d(l){for(let a=0;a<n.length;a+=1)n[a].d(l);l&&R(r)}}}function Pc(e,n){let t,r,i;return r=new _u({props:{line:n[106],index:n[108],pipWindow:n[1],isLast:n[12].length-1===n[108]}}),{key:e,first:null,c(){t=$n(),oe(r.$$.fragment),this.first=t},m(o,s){V(o,t,s),re(r,o,s),i=!0},p(o,s){n=o;const l={};s[0]&4096&&(l.line=n[106]),s[0]&4096&&(l.index=n[108]),s[0]&2&&(l.pipWindow=n[1]),s[0]&4096&&(l.isLast=n[12].length-1===n[108]),r.$set(l)},i(o){i||(M(r.$$.fragment,o),i=!0)},o(o){j(r.$$.fragment,o),i=!1},d(o){o&&R(t),ie(r,o)}}}function m1(e){let n=(e[21]??"")+"",t,r,i=(e[22]??"")+"",o,s,l=(e[23]??"")+"",a,c,h=(e[24]??"")+"",p,d,g=(e[25]??"")+"",k,S,F,$,A,T,N,K,G,U,W,x,B,Y,X,ve,E,I,te,Z,le,ue,Je,rt,Re,yt,Te,Qe,kt,Ie,bt,Be,Ue,me,ze,_e,Ve,ct,ke=[],vt=new Map,et,ut,Se,be,$e,Ee,we,St,Dt,_=e[14]&&wc();$=new Jh({}),N=new f1({}),N.$on("afkBlur",e[42]);let fe=e[26]&&yc(),Pe=e[27]&&kc();const qe=[d1,p1],Fe=[];function Ke(C,D){return C[19]?0:1}W=Ke(e),x=Fe[W]=qe[W](e),X=new ye({props:{path:pf,width:e[13],height:e[13]}}),X.$on("click",e[38]),I=new ye({props:{path:af,width:e[13],height:e[13]}}),I.$on("click",e[37]);let De=e[5].length&&Sc(e);ue=new ye({props:{path:bf,width:e[13],height:e[13]}}),ue.$on("click",e[56]);let Le=e[2]&&Cc(e);Re=new ye({props:{class:"cursor-pointer mr-1 hover:text-primary md:mr-2",path:cf,width:e[13],height:e[13]}}),Re.$on("click",e[57]);function Sn(C){e[58](C)}let Ct={class:"cursor-pointer mr-1 hover:text-primary md:mr-2",path:uf,width:e[13],height:e[13]};e[7]!==void 0&&(Ct.element=e[7]),Te=new ye({props:Ct}),dt.push(()=>Jl(Te,"element",Sn,e[7])),Te.$on("click",e[59]);function Cn(C){e[60](C)}function cn(C){e[61](C)}let un={settingsElement:e[7],pipAvailable:e[2]};e[8]!==void 0&&(un.settingsOpen=e[8]),e[5]!==void 0&&(un.selectedLineIds=e[5]),Ie=new Jp({props:un}),dt.push(()=>Jl(Ie,"settingsOpen",Cn,e[8])),dt.push(()=>Jl(Ie,"selectedLineIds",cn,e[5])),e[62](Ie),Ie.$on("applyReplacements",e[63]),Ie.$on("layoutChange",e[43]),Ie.$on("maxLinesChange",e[64]),me=new wu({props:{isQuickSwitch:!0}}),me.$on("layoutChange",e[43]);let tt=e[3];const fn=C=>C[106].id;for(let C=0;C<tt.length;C+=1){let D=_c(e,tt,C),it=fn(D);vt.set(it,ke[C]=Ec(it,D))}let Me=e[20]&&Lc(),We=e[1]&&xc(e);return{c(){t=gt(n),r=w(),o=gt(i),s=w(),a=gt(l),c=w(),p=gt(h),d=w(),k=gt(g),S=w(),_&&_.c(),F=w(),oe($.$$.fragment),A=w(),T=v("header"),oe(N.$$.fragment),K=w(),fe&&fe.c(),G=w(),Pe&&Pe.c(),U=w(),x.c(),B=w(),Y=v("div"),oe(X.$$.fragment),ve=w(),E=v("div"),oe(I.$$.fragment),te=w(),De&&De.c(),Z=w(),le=v("div"),oe(ue.$$.fragment),Je=w(),Le&&Le.c(),rt=w(),oe(Re.$$.fragment),yt=w(),oe(Te.$$.fragment),kt=w(),oe(Ie.$$.fragment),Ue=w(),oe(me.$$.fragment),ze=w(),_e=v("main"),Ve=new Mc(!1),ct=w();for(let C=0;C<ke.length;C+=1)ke[C].c();et=w(),ut=v("div"),Se=v("input"),be=w(),Me&&Me.c(),$e=w(),Ee=v("div"),We&&We.c(),f(Y,"role","button"),f(Y,"title","Delete last Line"),f(Y,"class","mr-1 hover:text-primary sm:mr-2"),ee(Y,"opacity-50",!e[3].length),ee(Y,"cursor-not-allowed",!e[3].length),ee(Y,"hover:text-primary",e[3].length),f(E,"role","button"),f(E,"title","Undo last Action"),f(E,"class","mr-1 hover:text-primary sm:mr-2"),ee(E,"opacity-50",!e[15].length),ee(E,"cursor-not-allowed",!e[15].length),ee(E,"hover:text-primary",e[15].length),f(le,"role","button"),f(le,"title","Open Notes"),f(le,"class","mr-1 hover:text-primary sm:mr-2"),f(T,"class","fixed top-0 right-0 flex justify-end items-center p-2 bg-base-100"),Ve.a=ct,f(_e,"class","flex flex-col flex-1 break-all px-4 w-full h-full overflow-auto"),ee(_e,"py-16",!e[18]),ee(_e,"py-8",e[18]),ee(_e,"opacity-50",e[20]),ee(_e,"flex-col-reverse",e[17]),ge(_e,"font-size",`${e[28]}px`),ge(_e,"font-family",e[29]!==Qt.OFF?e[29]:void 0),ge(_e,"writing-mode",e[18]?"vertical-rl":"horizontal-tb"),f(Se,"type","text"),f(Se,"placeholder","TL"),f(Se,"class","w-8 h-6 text-xs p-1 border border-gray-300 rounded text-center bg-base-100"),f(Se,"title","Press Enter to translate a number of lines"),f(ut,"class","fixed bottom-2 right-2 z-50"),f(Ee,"id","pip-container"),f(Ee,"class","flex flex-col flex-1 flex flex-col break-all px-4 w-full h-full overflow-auto"),ee(Ee,"flex-col-reverse",e[17]),ee(Ee,"hidden",!e[1]),ge(Ee,"font-size",`${e[28]}px`),ge(Ee,"font-family",e[29]!==Qt.OFF?e[29]:void 0)},m(C,D){V(C,t,D),V(C,r,D),V(C,o,D),V(C,s,D),V(C,a,D),V(C,c,D),V(C,p,D),V(C,d,D),V(C,k,D),V(C,S,D),_&&_.m(C,D),V(C,F,D),re($,C,D),V(C,A,D),V(C,T,D),re(N,T,null),u(T,K),fe&&fe.m(T,null),u(T,G),Pe&&Pe.m(T,null),u(T,U),Fe[W].m(T,null),u(T,B),u(T,Y),re(X,Y,null),u(T,ve),u(T,E),re(I,E,null),u(T,te),De&&De.m(T,null),u(T,Z),u(T,le),re(ue,le,null),u(T,Je),Le&&Le.m(T,null),u(T,rt),re(Re,T,null),u(T,yt),re(Te,T,null),u(T,kt),re(Ie,T,null),u(T,Ue),re(me,T,null),e[65](T),V(C,ze,D),V(C,_e,D),Ve.m(vu,_e),u(_e,ct);for(let it=0;it<ke.length;it+=1)ke[it].m(_e,null);e[69](_e),V(C,et,D),V(C,ut,D),u(ut,Se),mt(Se,e[11]),V(C,be,D),Me&&Me.m(C,D),V(C,$e,D),V(C,Ee,D),We&&We.m(Ee,null),e[72](Ee),we=!0,St||(Dt=[P(h1,"keyup",e[36]),P(Se,"input",e[70]),P(Se,"keydown",e[71])],St=!0)},p(C,D){(!we||D[0]&2097152)&&n!==(n=(C[21]??"")+"")&&jt(t,n),(!we||D[0]&4194304)&&i!==(i=(C[22]??"")+"")&&jt(o,i),(!we||D[0]&8388608)&&l!==(l=(C[23]??"")+"")&&jt(a,l),(!we||D[0]&16777216)&&h!==(h=(C[24]??"")+"")&&jt(p,h),(!we||D[0]&33554432)&&g!==(g=(C[25]??"")+"")&&jt(k,g),C[14]?_?D[0]&16384&&M(_,1):(_=wc(),_.c(),M(_,1),_.m(F.parentNode,F)):_&&(lt(),j(_,1,1,()=>{_=null}),st()),C[26]?fe?D[0]&67108864&&M(fe,1):(fe=yc(),fe.c(),M(fe,1),fe.m(T,G)):fe&&(lt(),j(fe,1,1,()=>{fe=null}),st()),C[27]?Pe?D[0]&134217728&&M(Pe,1):(Pe=kc(),Pe.c(),M(Pe,1),Pe.m(T,U)):Pe&&(lt(),j(Pe,1,1,()=>{Pe=null}),st());let it=W;W=Ke(C),W===it?Fe[W].p(C,D):(lt(),j(Fe[it],1,1,()=>{Fe[it]=null}),st(),x=Fe[W],x?x.p(C,D):(x=Fe[W]=qe[W](C),x.c()),M(x,1),x.m(T,B));const $t={};D[0]&8192&&($t.width=C[13]),D[0]&8192&&($t.height=C[13]),X.$set($t),(!we||D[0]&8)&&ee(Y,"opacity-50",!C[3].length),(!we||D[0]&8)&&ee(Y,"cursor-not-allowed",!C[3].length),(!we||D[0]&8)&&ee(Y,"hover:text-primary",C[3].length);const Et={};D[0]&8192&&(Et.width=C[13]),D[0]&8192&&(Et.height=C[13]),I.$set(Et),(!we||D[0]&32768)&&ee(E,"opacity-50",!C[15].length),(!we||D[0]&32768)&&ee(E,"cursor-not-allowed",!C[15].length),(!we||D[0]&32768)&&ee(E,"hover:text-primary",C[15].length),C[5].length?De?(De.p(C,D),D[0]&32&&M(De,1)):(De=Sc(C),De.c(),M(De,1),De.m(T,Z)):De&&(lt(),j(De,1,1,()=>{De=null}),st());const nn={};D[0]&8192&&(nn.width=C[13]),D[0]&8192&&(nn.height=C[13]),ue.$set(nn),C[2]?Le?(Le.p(C,D),D[0]&4&&M(Le,1)):(Le=Cc(C),Le.c(),M(Le,1),Le.m(T,rt)):Le&&(lt(),j(Le,1,1,()=>{Le=null}),st());const ft={};D[0]&8192&&(ft.width=C[13]),D[0]&8192&&(ft.height=C[13]),Re.$set(ft);const Lt={};D[0]&8192&&(Lt.width=C[13]),D[0]&8192&&(Lt.height=C[13]),!Qe&&D[0]&128&&(Qe=!0,Lt.element=C[7],Xl(()=>Qe=!1)),Te.$set(Lt);const Ot={};D[0]&128&&(Ot.settingsElement=C[7]),D[0]&4&&(Ot.pipAvailable=C[2]),!bt&&D[0]&256&&(bt=!0,Ot.settingsOpen=C[8],Xl(()=>bt=!1)),!Be&&D[0]&32&&(Be=!0,Ot.selectedLineIds=C[5],Xl(()=>Be=!1)),Ie.$set(Ot),D[0]&1064|D[1]&8192&&(tt=C[3],lt(),ke=Wr(ke,D,fn,1,C,tt,vt,_e,Ps,Ec,null,_c),st()),(!we||D[0]&262144)&&ee(_e,"py-16",!C[18]),(!we||D[0]&262144)&&ee(_e,"py-8",C[18]),(!we||D[0]&1048576)&&ee(_e,"opacity-50",C[20]),(!we||D[0]&131072)&&ee(_e,"flex-col-reverse",C[17]),D[0]&268435456&&ge(_e,"font-size",`${C[28]}px`),D[0]&536870912&&ge(_e,"font-family",C[29]!==Qt.OFF?C[29]:void 0),D[0]&262144&&ge(_e,"writing-mode",C[18]?"vertical-rl":"horizontal-tb"),D[0]&2048&&Se.value!==C[11]&&mt(Se,C[11]),C[20]?Me?D[0]&1048576&&M(Me,1):(Me=Lc(),Me.c(),M(Me,1),Me.m($e.parentNode,$e)):Me&&(lt(),j(Me,1,1,()=>{Me=null}),st()),C[1]?We?(We.p(C,D),D[0]&2&&M(We,1)):(We=xc(C),We.c(),M(We,1),We.m(Ee,null)):We&&(lt(),j(We,1,1,()=>{We=null}),st()),(!we||D[0]&131072)&&ee(Ee,"flex-col-reverse",C[17]),(!we||D[0]&2)&&ee(Ee,"hidden",!C[1]),D[0]&268435456&&ge(Ee,"font-size",`${C[28]}px`),D[0]&536870912&&ge(Ee,"font-family",C[29]!==Qt.OFF?C[29]:void 0)},i(C){if(!we){M(_),M($.$$.fragment,C),M(N.$$.fragment,C),M(fe),M(Pe),M(x),M(X.$$.fragment,C),M(I.$$.fragment,C),M(De),M(ue.$$.fragment,C),M(Le),M(Re.$$.fragment,C),M(Te.$$.fragment,C),M(Ie.$$.fragment,C),M(me.$$.fragment,C);for(let D=0;D<tt.length;D+=1)M(ke[D]);M(Me),M(We),we=!0}},o(C){j(_),j($.$$.fragment,C),j(N.$$.fragment,C),j(fe),j(Pe),j(x),j(X.$$.fragment,C),j(I.$$.fragment,C),j(De),j(ue.$$.fragment,C),j(Le),j(Re.$$.fragment,C),j(Te.$$.fragment,C),j(Ie.$$.fragment,C),j(me.$$.fragment,C);for(let D=0;D<ke.length;D+=1)j(ke[D]);j(Me),j(We),we=!1},d(C){C&&R(t),C&&R(r),C&&R(o),C&&R(s),C&&R(a),C&&R(c),C&&R(p),C&&R(d),C&&R(k),C&&R(S),_&&_.d(C),C&&R(F),ie($,C),C&&R(A),C&&R(T),ie(N),fe&&fe.d(),Pe&&Pe.d(),Fe[W].d(),ie(X),ie(I),De&&De.d(),ie(ue),Le&&Le.d(),ie(Re),ie(Te),e[62](null),ie(Ie),ie(me),e[65](null),C&&R(ze),C&&R(_e);for(let D=0;D<ke.length;D+=1)ke[D].d();e[69](null),C&&R(et),C&&R(ut),C&&R(be),Me&&Me.d(C),C&&R($e),C&&R(Ee),We&&We.d(),e[72](null),St=!1,Tt(Dt)}}}const g1=/[\p{scx=Hira}\p{scx=Kana}\p{scx=Han}]/imu;function b1(e,n,t){let r,i,o,s,l,a,c,h,p,d,g,k,S,F,$,A,T,N,K,G,U,W,x,B,Y,X,ve,E,I,te,Z,le,ue,Je,rt,Re,yt,Te,Qe,kt,Ie,bt;y(e,bl,b=>t(78,s=b)),y(e,Di,b=>t(80,a=b)),y(e,vl,b=>t(14,c=b)),y(e,Ze,b=>t(3,h=b)),y(e,je,b=>t(81,p=b)),y(e,Pr,b=>t(82,d=b)),y(e,Zn,b=>t(15,g=b)),y(e,Dr,b=>t(83,k=b)),y(e,Nr,b=>t(84,S=b)),y(e,Oi,b=>t(85,F=b)),y(e,$i,b=>t(86,$=b)),y(e,ws,b=>t(16,A=b)),y(e,Ar,b=>t(50,T=b)),y(e,_s,b=>t(87,N=b)),y(e,Rr,b=>t(17,K=b)),y(e,Hr,b=>t(18,G=b)),y(e,Va,b=>t(88,U=b)),y(e,Ra,b=>t(89,W=b)),y(e,Kt,b=>t(19,x=b)),y(e,Tl,b=>t(90,B=b)),y(e,Al,b=>t(20,Y=b)),y(e,zi,b=>t(51,X=b)),y(e,Or,b=>t(52,ve=b)),y(e,en,b=>t(53,E=b)),y(e,Ii,b=>t(91,I=b)),y(e,Ti,b=>t(92,te=b)),y(e,Ai,b=>t(93,Z=b)),y(e,Pi,b=>t(94,le=b)),y(e,xi,b=>t(95,ue=b)),y(e,or,b=>t(26,Qe=b)),y(e,In,b=>t(27,kt=b)),y(e,Tr,b=>t(28,Ie=b)),y(e,vi,b=>t(29,bt=b));let Be=!1,Ue,me=[],ze,_e,Ve=!1,ct,ke=[],vt=!1,et=!1,ut=null,Se,be,$e;Ke();const Ee="wakeLock"in navigator,we=Nr.pipe(Bl(b=>b?new Set(h.map(J=>J.text)):new Set));y(e,we,b=>t(79,l=b));const St=Ir.pipe(Ul(([b,J,ne])=>{const he=J===Zt.RESETCHECKBOXES,de=J===Zt.PASTE,ht=!de||!Y&&!B&&!Ve&&!vt,pn=et&&J===Zt.EXTERNAL;return pn&&(et=!1),he?(De(),!1):(!x||(ue||Z)&&de||(le||te)&&!de)&&ht&&!pn?(x&&(Z&&de||te&&!de)&&H(Kt,x=!1,x),!0):(!pn&&ht&&I&&D(),!1)}),Xn(b=>{const[J]=b,ne=b.at(1)||Zt.SOCKET,he=it(J,ne!==Zt.TL),de=b.at(2)||jh();ne!==Zt.TL&&H(bl,s=[...s,de],s),he&&H(Ze,h=ft([...Et(1),{id:de,text:he}]),h)}),Jn());y(e,St,b=>t(22,rt=b));const Dt=Ei.pipe(ho(b=>b?er(document,"paste"):fo),Xn(b=>Ir.next([b.clipboardData.getData("text/plain"),Zt.PASTE,""])),Jn());y(e,Dt,b=>t(23,Re=b));const _=er(document,"visibilitychange").pipe(Xn(()=>{Ee&&ut!==null&&document.visibilityState==="visible"&&(ut=navigator.wakeLock.request("screen").then(b=>b).catch(b=>(console.error(`Unable to aquire screen lock: ${b.message}`),null)))}),Jn());y(e,_,b=>t(21,Je=b));const fe=Li.pipe(ho(b=>(et=!1,b?er(document,"copy"):fo)),Xn(()=>et=!0),Jn());y(e,fe,b=>t(24,yt=b));const Pe=er(window,"resize").pipe($s(500),Xn(qe),Jn());y(e,Pe,b=>t(25,Te=b)),Rl(()=>{qe(),Ee&&(ut=navigator.wakeLock.request("screen").then(b=>b).catch(b=>(console.error(`Unable to aquire screen lock: ${b.message}`),null)))});function qe(){t(49,Be=window.matchMedia("(min-width: 640px)").matches),C()}function Fe(b){var ne,he;if(Y||B||Ve||vt)return;const J=(ne=b.key||"")==null?void 0:ne.toLowerCase();if(J==="delete"){if((he=window.getSelection())!=null&&he.toString().trim()){const de=window.getSelection().getRangeAt(0);for(let ht=0,{length:pn}=ke;ht<pn;ht+=1){const Ht=ke[ht],ar=Ht==null?void 0:Ht.getIdIfSelected(de);ar&&me.push(ar)}}me.length?Ct():b.altKey&&Sn()}else me.length&&J==="escape"?Cn():b.altKey&&J==="a"?Ue.handleReset(!1):b.altKey&&J==="q"?Ue.handleReset(!0):(b.ctrlKey||b.metaKey)&&J===" "&&H(Kt,x=!x,x)}function Ke(){setInterval(async()=>{try{const b=await fetch("/get_ids");if(!b.ok)throw new Error(`HTTP error! Status: ${b.status}`);H(bl,s=await b.json(),s)}catch(b){console.error("Failed to fetch ids:",b)}},1e3)}function De(){h.forEach(b=>{const J=document.getElementById(`multi-line-checkbox-${b.id}`);J&&typeof J.checked=="boolean"?J.checked=!1:console.warn(`Checkbox with ID 'multi-line-checkbox-${b.id}' not found or is not a valid checkbox element.`)})}async function Le(){if(!g.length)return;const b=g.pop();let J=b.pop();for(;J;){const ne=it(J.text,!1);if(ne){const{id:he,index:de}=J;de>h.length-1?h.push({id:he,text:ne}):h[de].id===he?H(Ze,h[de]={id:he,text:ne},h):h.splice(de,0,{id:he,text:ne})}J=b.pop()}await uo(),H(Ze,h=ft(Et()),h),Zn.set(g)}function Sn(){if(!h.length)return;const[b]=h.splice(h.length-1,1);t(5,me=me.filter(J=>J!==b.id)),Ze.set(h),H(Zn,g=[...g,[{...b,index:h.length}]],g),l.delete(b.text)}function Ct(){const b=new Set(me),J=[];H(Ze,h=h.filter((ne,he)=>{const de=b.has(ne.id);return b.delete(ne.id),de&&(J.push({...ne,index:he-J.length}),l.delete(ne.text)),!de}),h),t(5,me=b.size?[...b]:[]),J.length&&H(Zn,g=[...g,J],g)}function Cn(){var b;for(let J=0,{length:ne}=ke;J<ne;J+=1)(b=ke[J])==null||b.deselect();t(5,me=[])}async function cn(){if(be)return be.close();t(1,be=await window.documentPictureInPicture.requestWindow(W>0&&U>0?{height:W,width:U,preferInitialWindowPlacement:!1}:{preferInitialWindowPlacement:!1}).catch(({message:b})=>{H(je,p={message:`Error opening floating window: ${b}`,showCancel:!1},p)})),be&&(be.document.body.appendChild(Se),be.addEventListener("pagehide",un,{once:!0}),be.addEventListener("resize",tt,!1),be.addEventListener("blur",Me,!1),be.addEventListener("focus",Me,!1),[...document.styleSheets].forEach(b=>{if(!(b.ownerNode instanceof Element&&b.ownerNode.id==="user-css"))try{const J=[...b.cssRules].map(he=>he.cssText).join(""),ne=document.createElement("style");ne.textContent=J,be.document.head.appendChild(ne)}catch{const ne=document.createElement("link");ne.rel="stylesheet",ne.type=b.type,ne.media=b.media.toString(),ne.href=b.href,be.document.head.appendChild(ne)}}))}function un(){fn(),be.removeEventListener("resize",tt,!1),be.removeEventListener("blur",Me,!1),be.removeEventListener("focus",Me,!1),t(1,be=void 0)}function tt(){window.clearTimeout($e),$e=window.setTimeout(fn,500)}function fn(){be&&(H(Ra,W=be.document.body.clientHeight,W),H(Va,U=be.document.body.clientWidth,U))}function Me(b){b.type}function We({detail:b}){Fa(document,b),be&&Fa(be.document,b)}function C(){Dl(window,ct,K,G),be&&Dl(be,Se,K,!1)}function D(){clearTimeout(N),T===Jt.GARDEN&&(ze.classList.add("bg-base-200"),ze.classList.remove("bg-base-100"),document.body.classList.add("bg-base-200")),document.body.classList.add("animate-[pulse_0.5s_cubic-bezier(0.4,0,0.6,1)_1]"),H(_s,N=window.setTimeout(()=>{T===Jt.GARDEN&&(ze.classList.add("bg-base-100"),ze.classList.remove("bg-base-200"),document.body.classList.remove("bg-base-200")),document.body.classList.remove("animate-[pulse_0.5s_cubic-bezier(0.4,0,0.6,1)_1]")},500),N)}function it(b,J=!0){const ne=J?gu(b,A):b;let he=!0,de=$?ne.replace(/\s/gm,"").trim():ne;return F&&!de.match(g1)&&(de=""),de?S?(he=!l.has(de),l.add(de)):k&&h.length&&(he=h.slice(-k).every(ht=>ht.text!==de)):he=!1,he?de:void 0}function $t(b){const{inEdit:J,data:ne}=b.detail;if(ne&&ne.originalText!==ne.newText){const he=it(ne.newText);H(Ze,h[ne.lineIndex]={id:ne.line.id,text:he},h),he?(H(Zn,g=[...g,[{...ne.line,index:ne.lineIndex}]],g),l.delete(ne.originalText),l.add(he)):uo().then(()=>H(Ze,h[ne.lineIndex]={id:ne.line.id,text:ne.originalText},h))}vt=J}function Et(b=0){const J=new Set,ne=d?h.length-d+b:0,he=ne>0?h.filter((de,ht)=>ht<ne?(J.add(de.id),l.delete(de.text),!1):!0):h;return J.size&&t(5,me=me.filter(de=>!J.has(de))),he}function nn(b){if(b){H(vl,c=!0,c);try{for(let J=0,{length:ne}=h;J<ne;J+=1){const he=h[J],de=it(he.text);de&&de!==he.text&&(l.delete(he.text),H(Ze,h[J]={...he,text:de},h))}H(je,p={message:"Operation executed",showCancel:!1},p)}catch({message:J}){H(je,p={type:"error",message:`An Error occured: ${J}`,showCancel:!1},p)}H(Ze,h=ft(Et()),h),H(vl,c=!1,c)}}function ft(b){if(!a||b.length<2)return b;const J=b.length-1,ne=J-1,he=b[J],de=b[ne].text;return he.text.startsWith(de)&&(l.delete(de),t(5,me=me.filter(ht=>ht!==b[ne].id)),b.splice(ne,2,he)),b}let Lt="";async function Ot(){if(Lt.trim())try{let b=s;Number(Lt)<b.length&&(b=b.slice(-Number(Lt)));const J=await fetch("/translate-multiple",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ids:b})});if(J.ok){const ne=await J.text();Ir.next([ne,Zt.TL,""])}}catch(b){console.error("Translation failed:",b)}}const Br=()=>H(Kt,x=!1,x),zt=()=>H(Kt,x=!0,x),Ur=()=>H(Al,Y=!0,Y),En=()=>window.open("/stats","_blank");function hn(b){_e=b,t(7,_e)}const zr=()=>t(8,Ve=!Ve);function Nt(b){Ve=b,t(8,Ve)}function Yr(b){me=b,t(5,me)}function Vn(b){dt[b?"unshift":"push"](()=>{Ue=b,t(4,Ue)})}const Kr=()=>nn(!!A.length),rn=()=>H(Ze,h=Et(),h);function Gr(b){dt[b?"unshift":"push"](()=>{ze=b,t(6,ze)})}function Fn(b,J){dt[b?"unshift":"push"](()=>{ke[J]=b,t(10,ke)})}const qr=({detail:b})=>{t(5,me=[...me,b])},on=({detail:b})=>{t(5,me=me.filter(J=>J!==b))};function Xr(b){dt[b?"unshift":"push"](()=>{ct=b,t(9,ct)})}function Wn(){Lt=this.value,t(11,Lt)}const Zr=b=>b.key==="Enter"&&Ot();function ln(b){dt[b?"unshift":"push"](()=>{Se=b,t(0,Se)})}return e.$$.update=()=>{e.$$.dirty[1]&262144&&t(13,r=Be?"1.5rem":"1.25rem"),e.$$.dirty[1]&4194304&&H(ws,A=E.filter(b=>b.enabled),A),e.$$.dirty[0]&1&&t(2,i="documentPictureInPicture"in window&&!!Se),e.$$.dirty[0]&12|e.$$.dirty[1]&2097152&&t(12,o=i&&h?h.slice(-ve):[]),e.$$.dirty[0]&2|e.$$.dirty[1]&1572864&&be&&(t(1,be.document.body.dataset.theme=T,be),bu(be.document,X))},[Se,be,i,h,Ue,me,ze,_e,Ve,ct,ke,Lt,o,r,c,g,A,K,G,x,Y,Je,rt,Re,yt,Te,Qe,kt,Ie,bt,we,St,Dt,_,fe,Pe,Fe,Le,Sn,Ct,Cn,cn,We,C,$t,Et,nn,Ot,Ke,Be,T,X,ve,E,Br,zt,Ur,En,hn,zr,Nt,Yr,Vn,Kr,rn,Gr,Fn,qr,on,Xr,Wn,Zr,ln]}class v1 extends Ut{constructor(n){super(),Bt(this,n,b1,m1,wt,{startIdPolling:48},null,[-1,-1,-1,-1])}get startIdPolling(){return this.$$.ctx[48]}}new v1({target:document.body});
|
37
|
+
<li class="my-0.5 hover:text-primary"><a href="https://github.com/laplus-sadness/lap-clipboard-inserter" target="_blank" rel="noreferrer">lap-clipboard-inserter</a></li></ul>`,ae=w(),se(Be.$$.fragment),_t=w(),se(Se.$$.fragment),ke=w(),kt=g("span"),kt.textContent="Window Title",Tt=w(),Ee=g("input"),_=w(),de=g("span"),de.textContent="Primary Websocket",Dt=w(),Pe=g("input"),ot=w(),Ce=g("span"),Ce.textContent="Secondary Websocket",Te=w(),lt=g("input"),hn=w(),pn=g("span"),pn.textContent="Font Size",jn=w(),ft=g("input"),zt=w(),Ht=g("span"),Ht.textContent="Character Milestone",Ke=w(),Le=g("input"),C=w(),H=g("span"),H.textContent="Online Font",St=w(),et=g("select");for(let M=0;M<Je.length;M+=1)Je[M].c();Ot=w(),Nt=g("span"),Nt.textContent="Prevent Last Line Duplicate",Qt=w(),Yt=g("input"),Gr=w(),Bn=g("span"),Bn.textContent="Max lines",qr=w(),Kt=g("input"),Un=w(),Vt&&Vt.c(),En=w(),zn=g("span"),zn.textContent="AFK Timer (s)",Xr=w(),Rt=g("input"),Zr=w(),Yn=g("span"),Yn.textContent="Adjust Timer after AFK",Jr=w(),an=g("input"),Qr=w(),Kn=g("span"),Kn.textContent="Enable external Clipboard Monitor",ei=w(),cn=g("input"),v=w(),Q=g("span"),Q.textContent="Show Preset Quick Switch",te=w(),pe=g("input"),ge=w(),ht=g("span"),ht.textContent="Skip Reset Confirmations",dn=w(),Gt=g("input"),fr=w(),ti=g("span"),ti.textContent="Store Stats persistently",Ao=w(),mn=g("input"),To=w(),ni=g("span"),ni.textContent="Store Notes persistently",Do=w(),gn=g("input"),Oo=w(),ri=g("span"),ri.textContent="Store Lines persistently",Io=w(),bn=g("input"),Mo=w(),ii=g("span"),ii.textContent="Store Action History persistently",$o=w(),vn=g("input"),Ho=w(),oi=g("span"),oi.textContent="Enable Paste",No=w(),Ln=g("input"),Ro=w(),li=g("span"),li.textContent="Block Copy from Page",Vo=w(),xn=g("input"),Fo=w(),si=g("span"),si.textContent="Allow Paste during Pause",Wo=w(),Pn=g("input"),jo=w(),ai=g("span"),ai.textContent="Allow new Line during Pause",Bo=w(),An=g("input"),Uo=w(),ci=g("span"),ci.textContent="Autostart Timer by Paste during Pause",zo=w(),Tn=g("input"),Yo=w(),ui=g("span"),ui.textContent="Autostart Timer by Line during Pause",Ko=w(),Dn=g("input"),Go=w(),fi=g("span"),fi.textContent="Prevent Global Duplicate",qo=w(),d=g("input"),G=w(),le=g("span"),le.textContent="Merge equal Line Starts",Me=w(),tt=g("input"),pt=w(),It=g("span"),It.textContent="Filter lines without jp content",hr=w(),pr=g("input"),qs=w(),Xo=g("span"),Xo.textContent="Flash on missed Line",Xs=w(),dr=g("input"),Zs=w(),Zo=g("span"),Zo.textContent="Display Text vertically",Js=w(),Gn=g("input"),Qs=w(),Jo=g("span"),Jo.textContent="Reverse Line Order",ea=w(),qn=g("input"),ta=w(),Qo=g("span"),Qo.textContent="Preserve Whitespace",na=w(),mr=g("input"),ra=w(),el=g("span"),el.textContent="Remove all Whitespace",ia=w(),Xn=g("input"),oa=w(),tl=g("span"),tl.textContent="Show Timer",la=w(),gr=g("input"),sa=w(),nl=g("span"),nl.textContent="Show Speed",aa=w(),br=g("input"),ca=w(),rl=g("span"),rl.textContent="Show Character Count",ua=w(),vr=g("input"),fa=w(),il=g("span"),il.textContent="Show Line Count",ha=w(),_r=g("input"),pa=w(),ol=g("span"),ol.textContent="Blur Stats",da=w(),wr=g("input"),ma=w(),ll=g("span"),ll.textContent="Enable Line Animation",ga=w(),yr=g("input"),ba=w(),sl=g("span"),sl.textContent="Enable AFK Blur",va=w(),kr=g("input"),_a=w(),al=g("span"),al.textContent="Restart Timer after AFK Blur",wa=w(),Sr=g("input"),ya=w(),cl=g("span"),cl.textContent="Continuous Reconnect",ka=w(),Zn=g("input"),Sa=w(),ul=g("span"),ul.textContent="Show Connection Errors",Ca=w(),Cr=g("input"),Ea=w(),fl=g("span"),fl.textContent="Auto Translate Lines:",La=w(),Er=g("input"),xa=w(),hl=g("span"),hl.textContent="Blur Auto Translated Lines:",Pa=w(),Lr=g("input"),Aa=w(),Qi=g("span"),Qi.textContent="Custom CSS",Ta=w(),Jn=g("textarea"),h(n,"class","hidden"),h(n,"type","file"),h(r,"class","hidden"),h(r,"type","file"),h(o,"class","hidden"),h(o,"type","file"),h(b,"class","label-text"),h(u,"role","button"),h(u,"class","flex flex-col items-center hover:text-primary"),h(D,"class","label-text"),h(S,"role","button"),h(S,"class","flex flex-col items-center hover:text-primary"),h(K,"class","label-text"),h(I,"role","button"),h(I,"class","flex flex-col items-center hover:text-primary"),h(X,"class","label-text"),h(E,"role","button"),h(E,"class","flex flex-col items-center hover:text-primary"),h(z,"class","label-text"),h(ne,"role","button"),h(ne,"class","flex flex-col items-center hover:text-primary"),h(Ve,"class","label-text"),h(ue,"role","button"),h(ue,"class","flex flex-col items-center hover:text-primary"),h(gt,"class","label-text"),h(Ye,"role","button"),h(Ye,"class","flex flex-col items-center hover:text-primary"),h(ye,"type","checkbox"),ye.checked=Ie=e[6]===rn.BUSINESS,h(Fe,"class","swap swap-rotate"),h(it,"class","label-text"),h(ze,"role","button"),h(ze,"class","flex flex-col items-center hover:text-primary"),h(c,"class","flex text-sm gap-x-5 min-[600px]:justify-between max-[600px]:flex-wrap max-[600px]:gap-y-5"),h(a,"class","mb-2"),be(a,"grid-column","1/5"),h(je,"role","button"),h(je,"class","col-span-4 mb-2"),h(kt,"class","label-text col-span-2"),h(Ee,"class","input input-bordered h-8 col-span-2"),h(de,"class","label-text col-span-2"),h(Pe,"class","input input-bordered h-8 col-span-2"),h(Ce,"class","label-text col-span-2"),h(lt,"class","input input-bordered h-8 col-span-2"),h(pn,"class","label-text col-span-2"),h(ft,"type","number"),h(ft,"class","input input-bordered h-8 col-span-2"),h(ft,"min","1"),h(Ht,"class","label-text col-span-2"),h(Le,"type","number"),h(Le,"class","input input-bordered h-8 col-span-2"),h(Le,"min","0"),Le.value=e[19],h(H,"class","label-text mr-4 col-span-2"),h(et,"class","select col-span-2"),e[22]===void 0&&Rr(()=>e[94].call(et)),h(Nt,"class","label-text col-span-2"),h(Yt,"type","number"),h(Yt,"class","input input-bordered h-8 col-span-2"),h(Yt,"min","0"),Yt.value=e[18],h(Bn,"class","label-text col-span-2"),h(Kt,"type","number"),h(Kt,"class","input input-bordered h-8 mb-2 col-span-2"),h(Kt,"min","0"),Kt.value=e[16],h(zn,"class","label-text col-span-2"),h(Rt,"type","number"),h(Rt,"class","input input-bordered h-8 mb-2 col-span-2"),h(Rt,"min","0"),h(Yn,"class","label-text"),h(an,"type","checkbox"),h(an,"class","checkbox checkbox-primary ml-2"),h(Kn,"class","label-text"),h(cn,"type","checkbox"),h(cn,"class","checkbox checkbox-primary ml-2"),h(Q,"class","label-text"),h(pe,"type","checkbox"),h(pe,"class","checkbox checkbox-primary ml-2"),h(ht,"class","label-text"),h(Gt,"type","checkbox"),h(Gt,"class","checkbox checkbox-primary ml-2"),h(ti,"class","label-text"),h(mn,"type","checkbox"),h(mn,"class","checkbox checkbox-primary ml-2"),h(ni,"class","label-text"),h(gn,"type","checkbox"),h(gn,"class","checkbox checkbox-primary ml-2"),h(ri,"class","label-text"),h(bn,"type","checkbox"),h(bn,"class","checkbox checkbox-primary ml-2"),h(ii,"class","label-text"),h(vn,"type","checkbox"),h(vn,"class","checkbox checkbox-primary ml-2"),h(oi,"class","label-text"),h(Ln,"type","checkbox"),h(Ln,"class","checkbox checkbox-primary ml-2"),h(li,"class","label-text"),h(xn,"type","checkbox"),h(xn,"class","checkbox checkbox-primary ml-2"),h(si,"class","label-text"),h(Pn,"type","checkbox"),h(Pn,"class","checkbox checkbox-primary ml-2"),h(ai,"class","label-text"),h(An,"type","checkbox"),h(An,"class","checkbox checkbox-primary ml-2"),h(ci,"class","label-text"),h(Tn,"type","checkbox"),h(Tn,"class","checkbox checkbox-primary ml-2"),h(ui,"class","label-text"),h(Dn,"type","checkbox"),h(Dn,"class","checkbox checkbox-primary ml-2"),h(fi,"class","label-text"),h(d,"type","checkbox"),h(d,"class","checkbox checkbox-primary ml-2"),h(le,"class","label-text"),h(tt,"type","checkbox"),h(tt,"class","checkbox checkbox-primary ml-2"),h(It,"class","label-text"),h(pr,"type","checkbox"),h(pr,"class","checkbox checkbox-primary ml-2"),h(Xo,"class","label-text"),h(dr,"type","checkbox"),h(dr,"class","checkbox checkbox-primary ml-2"),h(Zo,"class","label-text"),h(Gn,"type","checkbox"),h(Gn,"class","checkbox checkbox-primary ml-2"),h(Jo,"class","label-text"),h(qn,"type","checkbox"),h(qn,"class","checkbox checkbox-primary ml-2"),h(Qo,"class","label-text"),h(mr,"type","checkbox"),h(mr,"class","checkbox checkbox-primary ml-2"),h(el,"class","label-text"),h(Xn,"type","checkbox"),h(Xn,"class","checkbox checkbox-primary ml-2"),h(tl,"class","label-text"),h(gr,"type","checkbox"),h(gr,"class","checkbox checkbox-primary ml-2"),h(nl,"class","label-text"),h(br,"type","checkbox"),h(br,"class","checkbox checkbox-primary ml-2"),h(rl,"class","label-text"),h(vr,"type","checkbox"),h(vr,"class","checkbox checkbox-primary ml-2"),h(il,"class","label-text"),h(_r,"type","checkbox"),h(_r,"class","checkbox checkbox-primary ml-2"),h(ol,"class","label-text"),h(wr,"type","checkbox"),h(wr,"class","checkbox checkbox-primary ml-2"),h(ll,"class","label-text"),h(yr,"type","checkbox"),h(yr,"class","checkbox checkbox-primary ml-2"),h(sl,"class","label-text"),h(kr,"type","checkbox"),h(kr,"class","checkbox checkbox-primary ml-2"),h(al,"class","label-text"),h(Sr,"type","checkbox"),h(Sr,"class","checkbox checkbox-primary ml-2"),h(cl,"class","label-text"),h(Zn,"type","checkbox"),h(Zn,"class","checkbox checkbox-primary ml-2"),h(ul,"class","label-text"),h(Cr,"type","checkbox"),h(Cr,"class","checkbox checkbox-primary ml-2"),h(fl,"class","label-text"),h(Er,"type","checkbox"),h(Er,"class","checkbox checkbox-primary ml-2"),h(hl,"class","label-text"),h(Lr,"type","checkbox"),h(Lr,"class","checkbox checkbox-primary ml-2"),h(Qi,"class","label-text"),be(Qi,"grid-column","1/5"),h(Jn,"class","p-1 min-h-[10rem] font-mono"),be(Jn,"grid-column","1/5"),h(Jn,"rows","5"),Jn.value=e[3],h(l,"class","flex flex-col max-[800px]:w-[90vw] min-[800px]:grid grid-cols-[max-content,auto,max-content,auto] gap-3 absolute overflow-auto h-[90vh] top-11 z-10 py-4 pr-8 pl-4 border bg-base-200 overscroll-contain")},m(M,ee){F(M,n,ee),e[77](n),F(M,t,ee),F(M,r,ee),e[78](r),F(M,i,ee),F(M,o,ee),e[79](o),F(M,s,ee),F(M,l,ee),f(l,a),f(a,c),f(c,u),re(p,u,null),f(u,m),f(u,b),f(c,k),f(c,S),re(V,S,null),f(S,O),f(S,D),f(c,P),f(c,I),re(Z,I,null),f(I,J),f(I,K),f(c,j),f(c,E),re(B,E,null),f(E,U),f(E,X),f(c,ve),f(c,ne),re(A,ne,null),f(ne,T),f(ne,z),f(c,oe),f(c,ue),re(_e,ue,null),f(ue,Xe),f(ue,Ve),f(c,Ze),f(c,Ye),re(He,Ye,null),f(Ye,yt),f(Ye,gt),f(c,Ne),f(c,ze),f(ze,Fe),f(Fe,ye),f(Fe,bt),re(he,Fe,null),f(Fe,ut),re(We,Fe,null),f(ze,Re),f(ze,it),f(l,vt),f(l,je),f(l,ae),re(Be,l,null),f(l,_t),re(Se,l,null),f(l,ke),f(l,kt),f(l,Tt),f(l,Ee),wt(Ee,e[20]),f(l,_),f(l,de),f(l,Dt),f(l,Pe),wt(Pe,e[12]),f(l,ot),f(l,Ce),f(l,Te),f(l,lt),wt(lt,e[11]),f(l,hn),f(l,pn),f(l,jn),f(l,ft),wt(ft,e[21]),f(l,zt),f(l,Ht),f(l,Ke),f(l,Le),f(l,C),f(l,H),f(l,St),f(l,et);for(let Qn=0;Qn<Je.length;Qn+=1)Je[Qn].m(et,null);wi(et,e[22]),f(l,Ot),f(l,Nt),f(l,Qt),f(l,Yt),f(l,Gr),f(l,Bn),f(l,qr),f(l,Kt),f(l,Un),Vt&&Vt.m(l,null),f(l,En),f(l,zn),f(l,Xr),f(l,Rt),wt(Rt,e[23]),f(l,Zr),f(l,Yn),f(l,Jr),f(l,an),an.checked=e[24],f(l,Qr),f(l,Kn),f(l,ei),f(l,cn),cn.checked=e[5],f(l,v),f(l,Q),f(l,te),f(l,pe),pe.checked=e[25],f(l,ge),f(l,ht),f(l,dn),f(l,Gt),Gt.checked=e[13],f(l,fr),f(l,ti),f(l,Ao),f(l,mn),mn.checked=e[26],f(l,To),f(l,ni),f(l,Do),f(l,gn),gn.checked=e[27],f(l,Oo),f(l,ri),f(l,Io),f(l,bn),bn.checked=e[28],f(l,Mo),f(l,ii),f(l,$o),f(l,vn),vn.checked=e[29],f(l,Ho),f(l,oi),f(l,No),f(l,Ln),Ln.checked=e[30],f(l,Ro),f(l,li),f(l,Vo),f(l,xn),xn.checked=e[31],f(l,Fo),f(l,si),f(l,Wo),f(l,Pn),Pn.checked=e[32],f(l,jo),f(l,ai),f(l,Bo),f(l,An),An.checked=e[33],f(l,Uo),f(l,ci),f(l,zo),f(l,Tn),Tn.checked=e[34],f(l,Yo),f(l,ui),f(l,Ko),f(l,Dn),Dn.checked=e[35],f(l,Go),f(l,fi),f(l,qo),f(l,d),d.checked=e[15],f(l,G),f(l,le),f(l,Me),f(l,tt),tt.checked=e[36],f(l,pt),f(l,It),f(l,hr),f(l,pr),pr.checked=e[37],f(l,qs),f(l,Xo),f(l,Xs),f(l,dr),dr.checked=e[38],f(l,Zs),f(l,Zo),f(l,Js),f(l,Gn),Gn.checked=e[39],f(l,Qs),f(l,Jo),f(l,ea),f(l,qn),qn.checked=e[40],f(l,ta),f(l,Qo),f(l,na),f(l,mr),mr.checked=e[41],f(l,ra),f(l,el),f(l,ia),f(l,Xn),Xn.checked=e[14],f(l,oa),f(l,tl),f(l,la),f(l,gr),gr.checked=e[42],f(l,sa),f(l,nl),f(l,aa),f(l,br),br.checked=e[43],f(l,ca),f(l,rl),f(l,ua),f(l,vr),vr.checked=e[44],f(l,fa),f(l,il),f(l,ha),f(l,_r),_r.checked=e[45],f(l,pa),f(l,ol),f(l,da),f(l,wr),wr.checked=e[46],f(l,ma),f(l,ll),f(l,ga),f(l,yr),yr.checked=e[47],f(l,ba),f(l,sl),f(l,va),f(l,kr),kr.checked=e[48],f(l,_a),f(l,al),f(l,wa),f(l,Sr),Sr.checked=e[49],f(l,ya),f(l,cl),f(l,ka),f(l,Zn),Zn.checked=e[50],f(l,Sa),f(l,ul),f(l,Ca),f(l,Cr),Cr.checked=e[51],f(l,Ea),f(l,fl),f(l,La),f(l,Er),Er.checked=e[52],f(l,xa),f(l,hl),f(l,Pa),f(l,Lr),Lr.checked=e[53],f(l,Aa),f(l,Qi),f(l,Ta),f(l,Jn),On=!0,ns||(Da=[x(n,"change",e[63]),x(r,"change",e[64]),x(o,"change",e[65]),x(u,"click",e[58]),x(u,"keyup",jt),x(S,"click",e[59]),x(S,"keyup",jt),x(I,"click",e[80]),x(I,"keyup",jt),x(E,"click",e[81]),x(E,"keyup",jt),x(ne,"click",qh),x(ne,"keyup",jt),x(ue,"click",e[60]),x(ue,"keyup",jt),x(Ye,"click",e[61]),x(Ye,"keyup",jt),x(ye,"change",e[82]),x(ze,"click",e[83]),x(ze,"keyup",jt),x(Ee,"input",e[88]),x(Pe,"input",e[89]),x(Pe,"change",e[90]),x(lt,"input",e[91]),x(lt,"change",e[56]),x(ft,"input",e[92]),x(ft,"blur",e[93]),x(Le,"blur",e[67]),x(et,"change",e[94]),x(Yt,"blur",e[68]),x(Kt,"blur",e[69]),x(Rt,"input",e[95]),x(Rt,"blur",e[96]),x(an,"change",e[97]),x(cn,"change",e[98]),x(pe,"change",e[99]),x(Gt,"change",e[100]),x(mn,"change",e[101]),x(mn,"change",e[102]),x(gn,"change",e[103]),x(gn,"change",e[104]),x(bn,"change",e[105]),x(bn,"change",e[106]),x(vn,"change",e[107]),x(vn,"change",e[108]),x(Ln,"change",e[109]),x(xn,"change",e[110]),x(Pn,"change",e[111]),x(An,"change",e[112]),x(Tn,"change",e[113]),x(Dn,"change",e[114]),x(d,"change",e[115]),x(d,"change",e[71]),x(tt,"change",e[116]),x(pr,"change",e[117]),x(dr,"change",e[118]),x(Gn,"change",e[119]),x(Gn,"change",e[120]),x(qn,"change",e[121]),x(qn,"change",e[122]),x(mr,"change",e[123]),x(Xn,"change",e[124]),x(Xn,"change",e[72]),x(gr,"change",e[125]),x(br,"change",e[126]),x(vr,"change",e[127]),x(_r,"change",e[128]),x(wr,"change",e[129]),x(yr,"change",e[130]),x(kr,"change",e[131]),x(Sr,"change",e[132]),x(Zn,"change",e[133]),x(Zn,"change",e[134]),x(Cr,"change",e[135]),x(Er,"change",e[136]),x(Lr,"change",e[137]),x(Jn,"blur",e[73]),Ju(vp.call(null,l,e[57]))],ns=!0)},p(M,ee){(!On||ee[0]&64&&Ie!==(Ie=M[6]===rn.BUSINESS))&&(ye.checked=Ie);const Qn={};Be.$set(Qn),ee[0]&1048576&&Ee.value!==M[20]&&wt(Ee,M[20]),ee[0]&4096&&Pe.value!==M[12]&&wt(Pe,M[12]),ee[0]&2048&<.value!==M[11]&&wt(lt,M[11]),ee[0]&2097152&&Dl(ft.value)!==M[21]&&wt(ft,M[21]),(!On||ee[0]&524288&&Le.value!==M[19])&&(Le.value=M[19]),ee[1]&16777216&&(pl=M[55],Je=Yr(Je,ee,Oa,1,M,pl,Jt,et,Yl,Ec,null,Sc)),ee[0]&4194304|ee[1]&16777216&&wi(et,M[22]),(!On||ee[0]&262144&&Yt.value!==M[18])&&(Yt.value=M[18]),(!On||ee[0]&65536&&Kt.value!==M[16])&&(Kt.value=M[16]),M[1]?Vt?Vt.p(M,ee):(Vt=Lc(M),Vt.c(),Vt.m(l,En)):Vt&&(Vt.d(1),Vt=null),ee[0]&8388608&&Dl(Rt.value)!==M[23]&&wt(Rt,M[23]),ee[0]&16777216&&(an.checked=M[24]),ee[0]&32&&(cn.checked=M[5]),ee[0]&33554432&&(pe.checked=M[25]),ee[0]&8192&&(Gt.checked=M[13]),ee[0]&67108864&&(mn.checked=M[26]),ee[0]&134217728&&(gn.checked=M[27]),ee[0]&268435456&&(bn.checked=M[28]),ee[0]&536870912&&(vn.checked=M[29]),ee[0]&1073741824&&(Ln.checked=M[30]),ee[1]&1&&(xn.checked=M[31]),ee[1]&2&&(Pn.checked=M[32]),ee[1]&4&&(An.checked=M[33]),ee[1]&8&&(Tn.checked=M[34]),ee[1]&16&&(Dn.checked=M[35]),ee[0]&32768&&(d.checked=M[15]),ee[1]&32&&(tt.checked=M[36]),ee[1]&64&&(pr.checked=M[37]),ee[1]&128&&(dr.checked=M[38]),ee[1]&256&&(Gn.checked=M[39]),ee[1]&512&&(qn.checked=M[40]),ee[1]&1024&&(mr.checked=M[41]),ee[0]&16384&&(Xn.checked=M[14]),ee[1]&2048&&(gr.checked=M[42]),ee[1]&4096&&(br.checked=M[43]),ee[1]&8192&&(vr.checked=M[44]),ee[1]&16384&&(_r.checked=M[45]),ee[1]&32768&&(wr.checked=M[46]),ee[1]&65536&&(yr.checked=M[47]),ee[1]&131072&&(kr.checked=M[48]),ee[1]&262144&&(Sr.checked=M[49]),ee[1]&524288&&(Zn.checked=M[50]),ee[1]&1048576&&(Cr.checked=M[51]),ee[1]&2097152&&(Er.checked=M[52]),ee[1]&4194304&&(Lr.checked=M[53]),(!On||ee[0]&8)&&(Jn.value=M[3])},i(M){On||($(p.$$.fragment,M),$(V.$$.fragment,M),$(Z.$$.fragment,M),$(B.$$.fragment,M),$(A.$$.fragment,M),$(_e.$$.fragment,M),$(He.$$.fragment,M),$(he.$$.fragment,M),$(We.$$.fragment,M),$(Be.$$.fragment,M),$(Se.$$.fragment,M),On=!0)},o(M){W(p.$$.fragment,M),W(V.$$.fragment,M),W(Z.$$.fragment,M),W(B.$$.fragment,M),W(A.$$.fragment,M),W(_e.$$.fragment,M),W(He.$$.fragment,M),W(he.$$.fragment,M),W(We.$$.fragment,M),W(Be.$$.fragment,M),W(Se.$$.fragment,M),On=!1},d(M){M&&R(n),e[77](null),M&&R(t),M&&R(r),e[78](null),M&&R(i),M&&R(o),e[79](null),M&&R(s),M&&R(l),ie(p),ie(V),ie(Z),ie(B),ie(A),ie(_e),ie(He),ie(he),ie(We),e[84](null),ie(Be),ie(Se);for(let ee=0;ee<Je.length;ee+=1)Je[ee].d();Vt&&Vt.d(),ns=!1,At(Da)}}}function Ec(e,n){let t,r=n[156]+"",i,o;return{key:e,first:null,c(){t=g("option"),i=dt(r),o=w(),t.__value=n[156],t.value=t.__value,this.first=t},m(s,l){F(s,t,l),f(t,i),f(t,o)},p(s,l){n=s},d(s){s&&R(t)}}}function Lc(e){let n,t,r,i,o;return{c(){n=g("span"),n.textContent="Max lines (floating window)",t=w(),r=g("input"),h(n,"class","label-text col-span-2"),h(r,"type","number"),h(r,"class","input input-bordered h-8 mb-2 col-span-2"),h(r,"min","0"),r.value=e[17]},m(s,l){F(s,n,l),F(s,t,l),F(s,r,l),i||(o=x(r,"blur",e[70]),i=!0)},p(s,l){l[0]&131072&&r.value!==s[17]&&(r.value=s[17])},d(s){s&&R(n),s&&R(t),s&&R(r),i=!1,o()}}}function l1(e){let n,t,r,i;kc.title=n=e[20]||"Texthooker UI";let o=e[0]&&Cc(e);return{c(){t=w(),o&&o.c(),r=Nn()},m(s,l){F(s,t,l),o&&o.m(s,l),F(s,r,l),i=!0},p(s,l){(!i||l[0]&1048576)&&n!==(n=s[20]||"Texthooker UI")&&(kc.title=n),s[0]?o?(o.p(s,l),l[0]&1&&$(o,1)):(o=Cc(s),o.c(),$(o,1),o.m(r.parentNode,r)):o&&(nt(),W(o,1,1,()=>{o=null}),rt())},i(s){i||($(o),i=!0)},o(s){W(o),i=!1},d(s){s&&R(t),o&&o.d(s),s&&R(r)}}}function bs(e,n){const t=document.createElement("a");t.href=URL.createObjectURL(new Blob([JSON.stringify(n)],{type:"application/json"})),t.rel="noopener",t.download=e,setTimeout(()=>{URL.revokeObjectURL(t.href)},1e4),setTimeout(()=>{t.click()})}function s1(e,n,t){let r,i,o,s,l,a,c,u,p,m,b,k,S,V,O,D,P,I,Z,J,K,j,E,B,U,X,ve,ne,A,T,z,oe,ue,_e,Xe,Ve,Ze,Ye,He,yt,gt,Ne,ze,Fe,ye,Ie,bt,he,ut,We,Re,it,vt,je,ae,Be,_t,Se;y(e,Ue,d=>t(139,o=d)),y(e,Ci,d=>t(13,s=d)),y(e,qi,d=>t(3,l=d)),y(e,at,d=>t(140,a=d)),y(e,Vi,d=>t(14,c=d)),y(e,Fr,d=>t(15,u=d)),y(e,Dr,d=>t(16,p=d)),y(e,Hr,d=>t(17,m=d)),y(e,$r,d=>t(18,b=d)),y(e,Mr,d=>t(19,k=d)),y(e,Ur,d=>t(141,S=d)),y(e,lr,d=>t(142,V=d)),y(e,_n,d=>t(143,O=d)),y(e,nr,d=>t(144,D=d)),y(e,ko,d=>t(145,P=d)),y(e,wn,d=>t(146,I=d)),y(e,Nl,d=>t(147,Z=d)),y(e,El,d=>t(148,J=d)),y(e,$n,d=>t(76,K=d)),y(e,Mn,d=>t(4,j=d)),y(e,wo,d=>t(5,E=d)),y(e,Or,d=>t(6,B=d)),y(e,_o,d=>t(20,U=d)),y(e,Ir,d=>t(21,X=d)),y(e,ki,d=>t(22,ve=d)),y(e,ar,d=>t(23,ne=d)),y(e,Si,d=>t(24,A=d)),y(e,yo,d=>t(25,T=d)),y(e,Ei,d=>t(26,z=d)),y(e,Li,d=>t(27,oe=d)),y(e,xi,d=>t(28,ue=d)),y(e,Pi,d=>t(29,_e=d)),y(e,Ai,d=>t(30,Xe=d)),y(e,Ti,d=>t(31,Ve=d)),y(e,Di,d=>t(32,Ze=d)),y(e,Oi,d=>t(33,Ye=d)),y(e,Ii,d=>t(34,He=d)),y(e,Mi,d=>t(35,yt=d)),y(e,$i,d=>t(36,gt=d)),y(e,Hi,d=>t(37,Ne=d)),y(e,Ni,d=>t(38,ze=d)),y(e,Wr,d=>t(39,Fe=d)),y(e,jr,d=>t(40,ye=d)),y(e,Ri,d=>t(41,Ie=d)),y(e,Fi,d=>t(42,bt=d)),y(e,Wi,d=>t(43,he=d)),y(e,ji,d=>t(44,ut=d)),y(e,Bi,d=>t(45,We=d)),y(e,Ui,d=>t(46,Re=d)),y(e,zi,d=>t(47,it=d)),y(e,Yi,d=>t(48,vt=d)),y(e,Ki,d=>t(49,je=d)),y(e,Br,d=>t(50,ae=d)),y(e,Gi,d=>t(51,Be=d)),y(e,Ps,d=>t(52,_t=d)),y(e,za,d=>t(53,Se=d));let{selectedLineIds:ke}=n,{settingsOpen:kt}=n,{settingsElement:Tt}=n,{pipAvailable:Ee}=n;async function _(d){if(!s){const{canceled:G}=await new Promise(le=>{N(Ue,o={icon:tn,message:d?"All displayed and stored Lines will be cleared":"Clear stored Lines + set Timer to 00:00:00",callback:le},o)});if(G)return}N(at,a=[],a),t(74,ke=[]),window.localStorage.removeItem("bannou-texthooker-lineData"),d||N(wn,I=0,I)}const de=zr(),Dt=[on.OFF,on.NOTO,on.KLEE,on.SHIPPORI,on.ACKAISYO,on.CINECAPTION226];let Pe,ot,Ce,Te,lt;function hn(d){const G=d.target;G.setCustomValidity(""),i===r?(G.setCustomValidity("Duplicate Websocket"),t(11,i=""),N($n,K="",K)):N($n,K=G.value,K),G.reportValidity()}function pn(d){d&&!lt?go().then(()=>{lt=new MutationObserver(jn),lt.observe(document.body,{childList:!0})}):!d&<&&(lt.disconnect(),lt=void 0)}function jn(d){for(let G=0,{length:le}=d;G<le;G+=1){const{addedNodes:Me}=d[G];for(let tt=0,{length:pt}=Me;tt<pt;tt+=1){const It=Me[G];(It==null?void 0:It.tagName)==="P"&&(Nr.next([It.textContent,nn.EXTERNAL,""]),It.remove())}}}function ft(d){const G=d.target;!J&&G!==Tt&&G.parentElement!==Tt&&G!==Pe&&G!==ot&&G!==Ce&&!Z&&t(0,kt=!1)}async function zt(){const{canceled:d,data:G}=await new Promise(le=>{N(Ue,o={icon:tn,askForData:"text",dataValue:"00:00:00",message:"New Time",callback:le},o)});if(!d){if(!/^[\d]{1,}:[\d]{1,2}:[\d]{1,2}$/.test(G))return new Promise(le=>{N(Ue,o={icon:Xc,type:"error",message:"Invalid Time value (x:xx:xx)",showCancel:!1,callback:le},o)});N(wn,I=Zh(G),I)}}async function Ht(){if(!s){const{canceled:d}=await new Promise(G=>{N(Ue,o={icon:tn,message:"Timer will be set to 00:00:00",callback:G},o)});if(d)return}N(wn,I=0,I)}async function Ke(d){d.altKey?await Un(Pe,"Existing Data will be overwritten"):bs("texthooker-ui_data.json",{"bannou-texthooker-timeValue":I,"bannou-texthooker-userNotes":P,"bannou-texthooker-lineData":a,"bannou-texthooker-actionHistory":D})}async function Le(d){d.altKey?await Un(ot,"Presets, Settings etc. will be overwritten"):bs("texthooker-ui_settings.json",{currentSettings:Te.getCurrentSettings(),settingPresets:O,lastSettingsPreset:V})}async function C(d){if(d.altKey)await Un(Ce,"Preset will be overwritten or otherwise added");else if(V){const G=O.find(le=>le.name===V);G&&bs("texthooker-ui_preset.json",{name:G.name,settings:G.settings})}}async function H(){const d=await En(Pe).catch(({message:G})=>{N(Ue,o={type:"error",message:G,showCancel:!1},o)});if(d){const G=Object.entries(d);for(let le=0,{length:Me}=G;le<Me;le+=1){const[tt,pt]=G[le];switch(tt){case"bannou-texthooker-timeValue":N(wn,I=pt,I);break;case"bannou-texthooker-userNotes":N(ko,P=pt,P);break;case"bannou-texthooker-lineData":N(at,a=pt,a);break;case"bannou-texthooker-actionHistory":N(nr,D=pt,D);break}}}t(7,Pe.value=null,Pe)}async function St(){const d=await En(ot).catch(({message:G})=>{N(Ue,o={type:"error",message:G,showCancel:!1},o)});d&&(N(_n,O=d.settingPresets||[],O),N(lr,V=d.lastSettingsPreset||"",V),d.currentSettings&&Te.updateSettingsWithPreset({name:"",settings:d.currentSettings},!1)),t(8,ot.value=null,ot)}async function et(){const d=await En(Ce).catch(({message:G})=>{N(Ue,o={type:"error",message:G,showCancel:!1},o)});if(d&&d.name&&d.settings){const G=O.findIndex(le=>le.name===d.name);G>-1?(N(_n,O[G]=d,O),N(_n,O=[...O],O)):N(_n,O=[...O,d],O),N(lr,V=d.name,V),Te.updateSettingsWithPreset(d)}t(9,Ce.value=null,Ce)}async function Je(d,G,le){if(d)return;const{canceled:Me}=await new Promise(tt=>{N(Ue,o={icon:tn,message:G,callback:tt},o)});Me||window.localStorage.removeItem(le)}function Jt(d){const G=d.target,le=Number.parseInt(G.value||"0");!le||le<2?N(Mr,k=0,k):N(Mr,k=le,k),k===0&&N(Ur,S=new Map,S),G.value=`${k}`}function Ot(d){const G=d.target,le=Number.parseInt(G.value||"0"),Me=le!==b;!le||le<0?N($r,b=0,b):N($r,b=le,b),G.value=`${b}`,Me&&Nt()}async function Nt(){if(!b||a.length<2)return;const{canceled:d}=await new Promise(pt=>{N(Ue,o={icon:tn,message:"Apply to current lines",callback:pt},o)});if(d)return;const G=[],le=new Set,Me=new Set,tt=a.splice(-(b+1));for(let pt=0,{length:It}=tt;pt<It;pt+=1){const hr=tt[pt];le.has(hr.text)?Me.add(hr.id):(G.push(hr),le.add(hr.text))}N(at,a=[...a,...G],a),t(74,ke=ke.filter(pt=>!Me.has(pt)))}function Qt(d){const G=d.target,le=Number.parseInt(G.value||"0"),Me=le!==p;!le||le<0?N(Dr,p=0,p):N(Dr,p=le,p),G.value=`${p}`,Me&&Gr()}function Yt(d){const G=d.target,le=Number.parseInt(G.value||"0");!le||le<0?N(Hr,m=1,m):N(Hr,m=le,m),G.value=`${m}`}async function Gr(){const d=a.length-p;if(!p||d<1)return;const{canceled:G}=await new Promise(le=>{N(Ue,o={icon:tn,message:`This will remove the first ${d} line(s)`,callback:le},o)});G?N(Dr,p=0,p):de("maxLinesChange")}async function Bn(){if(!u||a.length<2)return;const{canceled:d}=await new Promise(G=>{N(Ue,o={icon:tn,message:"Apply to current lines",callback:G},o)});if(!d){const G=new Set,le=new Set;N(at,a=a.filter(Me=>G.has(Me.text)?(le.add(Me.id),!1):(G.add(Me.text),!0)),a),t(74,ke=ke.filter(Me=>!le.has(Me)))}}async function qr(){if(c){const{canceled:d}=await new Promise(G=>{N(Ue,o={icon:tn,message:"Apply to current Lines",callback:G},o)});d||N(at,a=a.map(G=>(G.text=G.text.replace(/\s/g,"").trim(),G)),a)}}function Kt(d){N(qi,l=d.target.value,l)}async function Un(d,G){if(!s){const{canceled:le}=await new Promise(Me=>{N(Ue,o={icon:tn,message:G,callback:Me},o)});if(le)return}d.click()}function En(d){return new Promise((G,le)=>{const[Me]=d.files,tt=new FileReader;if(!Me)return G();if(!Me.name.endsWith(".json"))return N(Ue,o={type:"error",message:"Expected json File",showCancel:!1},o),d.value=null,G();tt.addEventListener("loadend",pt=>{try{const It=JSON.parse(pt.target.result);G(It)}catch{le(new Error("Error parsing File"))}}),tt.addEventListener("error",()=>le(new Error("Failed to read File"))),tt.readAsText(Me,"utf-8")})}async function zn(){try{const d=await fetch(So("/get_websocket_port"));if(!d.ok)throw new Error("Failed to fetch websocket port");return(await d.json()).port}catch(d){return console.error("Error fetching websocket port:",d),null}}function Xr(d){mt[d?"unshift":"push"](()=>{Pe=d,t(7,Pe)})}function Rt(d){mt[d?"unshift":"push"](()=>{ot=d,t(8,ot)})}function Zr(d){mt[d?"unshift":"push"](()=>{Ce=d,t(9,Ce)})}const Yn=()=>_(!0),Jr=()=>_(!1),an=()=>N(Or,B=B===rn.BUSINESS?rn.GARDEN:rn.BUSINESS,B),Qr=()=>N(Or,B=B===rn.BUSINESS?rn.GARDEN:rn.BUSINESS,B);function Kn(d){mt[d?"unshift":"push"](()=>{Te=d,t(10,Te)})}function ei(d){mo.call(this,e,d)}const cn=({detail:d})=>C(d);function v(d){mo.call(this,e,d)}function Q(){U=this.value,_o.set(U)}function te(){r=this.value,t(12,r),t(4,j)}const pe=()=>N(Mn,j=r,j);function ge(){i=this.value,t(11,i),t(76,K)}function ht(){X=Dl(this.value),Ir.set(X)}const dn=()=>{(!X||X<1)&&N(Ir,X=24,X)};function Gt(){ve=lf(this),ki.set(ve),t(55,Dt)}function fr(){ne=Dl(this.value),ar.set(ne)}const ti=()=>{(ne===null||ne<0)&&N(ar,ne=0,ne)};function Ao(){A=this.checked,Si.set(A)}function mn(){E=this.checked,wo.set(E)}function To(){T=this.checked,yo.set(T)}function ni(){s=this.checked,Ci.set(s)}function Do(){z=this.checked,Ei.set(z)}const gn=()=>Je(z,"Clear stored stats","bannou-texthooker-timeValue");function Oo(){oe=this.checked,Li.set(oe)}const ri=()=>Je(oe,"Clear stored notes","bannou-texthooker-userNotes");function Io(){ue=this.checked,xi.set(ue)}const bn=()=>Je(ue,"Clear stored lines","bannou-texthooker-lineData");function Mo(){_e=this.checked,Pi.set(_e)}const ii=()=>Je(_e,"Clear action history","bannou-texthooker-actionHistory");function $o(){Xe=this.checked,Ai.set(Xe)}function vn(){Ve=this.checked,Ti.set(Ve)}function Ho(){Ze=this.checked,Di.set(Ze)}function oi(){Ye=this.checked,Oi.set(Ye)}function No(){He=this.checked,Ii.set(He)}function Ln(){yt=this.checked,Mi.set(yt)}function Ro(){u=this.checked,Fr.set(u)}function li(){gt=this.checked,$i.set(gt)}function Vo(){Ne=this.checked,Hi.set(Ne)}function xn(){ze=this.checked,Ni.set(ze)}function Fo(){Fe=this.checked,Wr.set(Fe)}const si=()=>de("layoutChange");function Wo(){ye=this.checked,jr.set(ye)}const Pn=()=>de("layoutChange");function jo(){Ie=this.checked,Ri.set(Ie)}function ai(){c=this.checked,Vi.set(c)}function Bo(){bt=this.checked,Fi.set(bt)}function An(){he=this.checked,Wi.set(he)}function Uo(){ut=this.checked,ji.set(ut)}function ci(){We=this.checked,Bi.set(We)}function zo(){Re=this.checked,Ui.set(Re)}function Tn(){it=this.checked,zi.set(it)}function Yo(){vt=this.checked,Yi.set(vt)}function ui(){je=this.checked,Ki.set(je)}function Ko(){ae=this.checked,Br.set(ae)}const Dn=()=>{Ql.next(),es.next()};function Go(){Be=this.checked,Gi.set(Be)}function fi(){_t=this.checked,Ps.set(_t)}function qo(){Se=this.checked,za.set(Se)}return e.$$set=d=>{"selectedLineIds"in d&&t(74,ke=d.selectedLineIds),"settingsOpen"in d&&t(0,kt=d.settingsOpen),"settingsElement"in d&&t(75,Tt=d.settingsElement),"pipAvailable"in d&&t(1,Ee=d.pipAvailable)},e.$$.update=()=>{e.$$.dirty[0]&16&&zn().then(d=>{d&&j!==`ws://localhost:${d}`&&N(Mn,j=`ws://localhost:${d}`,j)}),e.$$.dirty[0]&16&&t(12,r=j),e.$$.dirty[2]&16384&&t(11,i=K),e.$$.dirty[0]&64&&(document.body.dataset.theme=B),e.$$.dirty[0]&32&&pn(E),e.$$.dirty[0]&8&&Eu(document,l)},[kt,Ee,_,l,j,E,B,Pe,ot,Ce,Te,i,r,s,c,u,p,m,b,k,U,X,ve,ne,A,T,z,oe,ue,_e,Xe,Ve,Ze,Ye,He,yt,gt,Ne,ze,Fe,ye,Ie,bt,he,ut,We,Re,it,vt,je,ae,Be,_t,Se,de,Dt,hn,ft,zt,Ht,Ke,Le,C,H,St,et,Je,Jt,Ot,Qt,Yt,Bn,qr,Kt,ke,Tt,K,Xr,Rt,Zr,Yn,Jr,an,Qr,Kn,ei,cn,v,Q,te,pe,ge,ht,dn,Gt,fr,ti,Ao,mn,To,ni,Do,gn,Oo,ri,Io,bn,Mo,ii,$o,vn,Ho,oi,No,Ln,Ro,li,Vo,xn,Fo,si,Wo,Pn,jo,ai,Bo,An,Uo,ci,zo,Tn,Yo,ui,Ko,Dn,Go,fi,qo]}class a1 extends Ut{constructor(n){super(),Bt(this,n,s1,l1,Et,{selectedLineIds:74,settingsOpen:0,settingsElement:75,pipAvailable:1,handleReset:2},null,[-1,-1,-1,-1,-1,-1])}get handleReset(){return this.$$.ctx[2]}}class c1{constructor(n=!0){eo(this,"websocketUrl");eo(this,"socket");eo(this,"socketState");eo(this,"subscriptions",[]);this.socketState=n?Us:zs,this.subscriptions.push((n?Mn:$n).subscribe(t=>{t!==this.websocketUrl&&(this.websocketUrl=t,this.reloadSocket())}),Br.pipe(vo(t=>t?(n?Ql:es).pipe(Zl(()=>{var r;return((r=this.socket)==null?void 0:r.readyState)===3})):bo)).subscribe(()=>this.reloadSocket()))}getCurrentUrl(){return this.websocketUrl}connect(){var n;if(!(((n=this.socket)==null?void 0:n.readyState)<2)){if(!this.websocketUrl){this.socketState.next(3);return}this.socketState.next(0);try{this.socket=new WebSocket(this.websocketUrl),this.socket.onopen=this.updateSocketState.bind(this),this.socket.onclose=this.updateSocketState.bind(this),this.socket.onmessage=this.handleMessage.bind(this)}catch{this.socketState.next(3)}}}disconnect(){var n;((n=this.socket)==null?void 0:n.readyState)===1&&this.socket.close(1e3,"User Request")}cleanUp(){this.disconnect();for(let n=0,{length:t}=this.subscriptions;n<t;n+=1)this.subscriptions[n].unsubscribe()}reloadSocket(){this.disconnect(),this.socket=void 0,this.connect()}updateSocketState(){this.socket&&this.socketState.next(this.socket.readyState)}handleMessage(n){var i,o,s,l;let t=n.data;try{if(((i=JSON.parse(n.data))==null?void 0:i.event)==="reset_checkboxes"){Nr.next(["",nn.RESETCHECKBOXES,""]);return}t=((o=JSON.parse(n.data))==null?void 0:o.sentence)||n.data}catch{}console.log(n.data);const r=((l=(s=JSON.parse(n.data))==null?void 0:s.data)==null?void 0:l.id)||"";Nr.next([t,nn.SOCKET,r])}}function u1(e){let n;return{c(){n=g("span"),h(n,"class","animate-ping relative inline-flex rounded-full h-3 w-3 mx-3 bg-primary")},m(t,r){F(t,n,r)},p:Oe,i:Oe,o:Oe,d(t){t&&R(n)}}}function f1(e){let n,t,r;return t=new we({props:{path:wf,class:"cursor-pointer mx-2"}}),t.$on("click",e[3]),{c(){n=g("div"),se(t.$$.fragment),h(n,"class","hover:text-primary"),h(n,"title",e[1]),q(n,"text-red-500",e[0]!==-1),q(n,"text-green-700",e[0]===1)},m(i,o){F(i,n,o),re(t,n,null),r=!0},p(i,o){(!r||o&2)&&h(n,"title",i[1]),(!r||o&1)&&q(n,"text-red-500",i[0]!==-1),(!r||o&1)&&q(n,"text-green-700",i[0]===1)},i(i){r||($(t.$$.fragment,i),r=!0)},o(i){W(t.$$.fragment,i),r=!1},d(i){i&&R(n),ie(t)}}}function h1(e){let n,t,r,i;const o=[f1,u1],s=[];function l(a,c){return a[0]!==0?0:1}return n=l(e),t=s[n]=o[n](e),{c(){t.c(),r=Nn()},m(a,c){s[n].m(a,c),F(a,r,c),i=!0},p(a,[c]){let u=n;n=l(a),n===u?s[n].p(a,c):(nt(),W(s[u],1,1,()=>{s[u]=null}),rt(),t=s[n],t?t.p(a,c):(t=s[n]=o[n](a),t.c()),$(t,1),t.m(r.parentNode,r))},i(a){i||($(t),i=!0)},o(a){W(t),i=!1},d(a){s[n].d(a),a&&R(r)}}}function p1(e,n,t){let r,i,o,s,l,a,c,u;y(e,$n,I=>t(9,o=I)),y(e,Mn,I=>t(10,s=I)),y(e,Xt,I=>t(11,l=I)),y(e,Ue,I=>t(12,a=I)),y(e,Br,I=>t(13,c=I)),y(e,Gi,I=>t(14,u=I));let{isPrimary:p=!0}=n,m,b=!1,k=!1,S=!1,V=p?Us:zs;y(e,V,I=>t(0,i=I)),zl(()=>(P(),()=>{S=!0,m==null||m.cleanUp()}));function O(I){switch(I){case 0:t(5,k=!1),S=!1;break;case 1:b=!0,t(5,k=!0);break;case 3:const Z=p?"primary":"secondary";u&&!S&&b&&(p?s:o)&&(k||!c)&&N(Ue,a={type:"error",message:k?`Lost Connection to ${Z} Websocket`:`Unable to connect to ${Z} Websocket`,showCancel:!1},a),N(Xt,l=!0,l),b=!0,t(5,k=!1),S||(p?Ql:es).next();break}t(1,r=D(k))}function D(I){return I?`Connected with ${p?s:o}`:"Not Connected"}async function P(){i===1&&m?(S=!0,m.disconnect()):(m=m||new c1(p),m.connect())}return e.$$set=I=>{"isPrimary"in I&&t(4,p=I.isPrimary)},e.$$.update=()=>{e.$$.dirty&32&&t(1,r=D(k)),e.$$.dirty&1&&O(i)},[i,r,V,P,p,k]}class Uu extends Ut{constructor(n){super(),Bt(this,n,p1,h1,Et,{isPrimary:4})}}function d1(e){let n,t,r,i,o;return{c(){n=g("div"),t=w(),r=g("div"),r.innerHTML=`<div role="status"><svg aria-hidden="true" class="w-8 h-8 text-gray-200 animate-spin dark:text-gray-600 fill-blue-600" viewBox="0 0 100 101" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z" fill="currentColor"></path><path d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z" fill="currentFill"></path></svg>
|
38
|
+
<span class="sr-only">Loading...</span></div>`,i=w(),o=g("div"),h(n,"class","tap-highlight-transparent absolute inset-0 bg-black/[.3] z-20"),h(r,"class","fixed inset-0 flex h-full w-full items-center justify-center z-50")},m(s,l){F(s,n,l),F(s,t,l),F(s,r,l),F(s,i,l),F(s,o,l)},p:Oe,i:Oe,o:Oe,d(s){s&&R(n),s&&R(t),s&&R(r),s&&R(i),s&&R(o)}}}class m1 extends Ut{constructor(n){super(),Bt(this,n,null,d1,Et,{})}}function g1(e){let n=(e[2]??"")+"",t,r,i=(e[3]??"")+"",o,s,l,a,c,u,p;return{c(){t=dt(n),r=w(),o=dt(i),s=w(),l=g("div"),a=g("div"),c=dt(e[1]),h(l,"class","text-sm timer mr-1 sm:text-base sm:mr-2 svelte-1efsh80"),q(l,"blur",e[4])},m(m,b){F(m,t,b),F(m,r,b),F(m,o,b),F(m,s,b),F(m,l,b),f(l,a),f(a,c),e[17](l),u||(p=x(l,"pointerleave",e[7]),u=!0)},p(m,[b]){b&4&&n!==(n=(m[2]??"")+"")&&$t(t,n),b&8&&i!==(i=(m[3]??"")+"")&&$t(o,i),b&2&&$t(c,m[1]),b&16&&q(l,"blur",m[4])},i:Oe,o:Oe,d(m){m&&R(t),m&&R(r),m&&R(o),m&&R(s),m&&R(l),e[17](null),u=!1,p()}}}const b1=/[^0-9A-Z○◯々-〇〻ぁ-ゖゝ-ゞァ-ヺー0-9A-Zヲ-ン\p{Radical}\p{Unified_Ideograph}]+/gimu;function v1(e){return e?_1(e.replace(b1,"")):0}function _1(e){return Array.from(e).length}function w1(e,n,t){let r,i,o,s,l,a,c,u,p,m,b,k,S,V,O,D;y(e,ji,T=>t(10,r=T)),y(e,Bi,T=>t(11,i=T)),y(e,Wi,T=>t(12,o=T)),y(e,Fi,T=>t(13,s=T)),y(e,wn,T=>t(14,l=T)),y(e,Xt,T=>t(20,a=T)),y(e,Ki,T=>t(21,c=T)),y(e,Yi,T=>t(22,u=T)),y(e,ar,T=>t(23,p=T)),y(e,Si,T=>t(24,m=T)),y(e,at,T=>t(15,b=T)),y(e,Ur,T=>t(25,k=T)),y(e,Mr,T=>t(16,S=T)),y(e,Ui,T=>t(4,D=T));let P=0,I=0;const Z=zr(),J=Xt.pipe(vo(T=>T?(I=0,bo):(P=performance.now(),Rh(1e3))),tr(ve),rr());y(e,J,T=>t(2,V=T));const K=Ph([Xt,ar]).pipe(vo(([T,z])=>T||z<1?bo:Vh(Nr,or(window,"pointermove"),or(document,"selectionchange")).pipe(Wh(!0),Bh(1e3),tr(()=>I=performance.now()+p*1e3),Bs(p*1e3))),rr());y(e,K,T=>t(3,O=T));let j,E=0,B=0,U="";function X(){const T=window.getSelection();T!=null&&T.toString()&&T.getRangeAt(0).intersectsNode(j)&&T.removeAllRanges()}function ve(){const T=I?Math.min(I,performance.now()):performance.now(),z=Math.round((T-P+Number.EPSILON)/1e3);I&&T>=I?(N(Xt,a=!0,a),m?N(wn,l=Math.max(0,l+z-p),l):N(wn,l+=z,l),u&&(Z("afkBlur",!0),document.addEventListener("dblclick",oe=>{oe.stopPropagation(),window.getSelection().removeAllRanges(),Z("afkBlur",!1),c&&N(Xt,a=!1,a)},{once:!0,capture:!1}))):(P=T,N(wn,l+=z,l))}function ne(T,z,oe,ue){let _e="";s&&(_e+=Xh(T)),o&&(_e+=` (${z}/h) `),r&&(_e+=` ${oe}`),i&&(_e+=r?" /":"",_e+=` ${ue}`),t(1,U=_e.replace(/[ ]+/g," ").trim())}function A(T){mt[T?"unshift":"push"](()=>{j=T,t(0,j)})}return e.$$.update=()=>{if(e.$$.dirty&116224&&(r||S>1)&&b){const T=new Map;let z=0,oe=S>1?S:0;for(let ue=0,{length:_e}=b;ue<_e;ue+=1)if(z+=v1(b[ue].text),oe&&z>=oe){let Xe=z,Ve=oe;for(T.set(b[ue].id,`Milestone ${Ve} (${z})`);Xe>=oe;)oe+=S}N(Ur,k=T,k),t(9,B=z),t(8,E=l?Math.ceil(3600*B/l):0)}e.$$.dirty&65280&&(l>-1&&(s||o||r||i)?ne(l,E,B,b.length):t(1,U=""))},[j,U,V,O,D,J,K,X,E,B,r,i,o,s,l,b,S,A]}class y1 extends Ut{constructor(n){super(),Bt(this,n,w1,g1,Et,{})}}const{window:k1}=$s;function xc(e,n,t){const r=e.slice();return r[106]=n[t],r[108]=t,r}function Pc(e,n,t){const r=e.slice();return r[106]=n[t],r[109]=n,r[108]=t,r}function Ac(e){let n,t;return n=new m1({}),{c(){se(n.$$.fragment)},m(r,i){re(n,r,i),t=!0},i(r){t||($(n.$$.fragment,r),t=!0)},o(r){W(n.$$.fragment,r),t=!1},d(r){ie(n,r)}}}function Tc(e){let n,t;return n=new Uu({}),{c(){se(n.$$.fragment)},m(r,i){re(n,r,i),t=!0},i(r){t||($(n.$$.fragment,r),t=!0)},o(r){W(n.$$.fragment,r),t=!1},d(r){ie(n,r)}}}function Dc(e){let n,t;return n=new Uu({props:{isPrimary:!1}}),{c(){se(n.$$.fragment)},m(r,i){re(n,r,i),t=!0},i(r){t||($(n.$$.fragment,r),t=!0)},o(r){W(n.$$.fragment,r),t=!1},d(r){ie(n,r)}}}function S1(e){let n,t,r;return t=new we({props:{path:xf,width:e[13],height:e[13]}}),t.$on("click",e[55]),{c(){n=g("div"),se(t.$$.fragment),h(n,"role","button"),h(n,"title","Pause"),h(n,"class","mr-1 hover:text-primary sm:mr-2")},m(i,o){F(i,n,o),re(t,n,null),r=!0},p(i,o){const s={};o[0]&8192&&(s.width=i[13]),o[0]&8192&&(s.height=i[13]),t.$set(s)},i(i){r||($(t.$$.fragment,i),r=!0)},o(i){W(t.$$.fragment,i),r=!1},d(i){i&&R(n),ie(t)}}}function C1(e){let n,t,r;return t=new we({props:{path:Af,width:e[13],height:e[13]}}),t.$on("click",e[54]),{c(){n=g("div"),se(t.$$.fragment),h(n,"role","button"),h(n,"title","Continue"),h(n,"class","mr-1 animate-[pulse_1.25s_cubic-bezier(0.4,0,0.6,1)_infinite] hover:text-primary sm:mr-2")},m(i,o){F(i,n,o),re(t,n,null),r=!0},p(i,o){const s={};o[0]&8192&&(s.width=i[13]),o[0]&8192&&(s.height=i[13]),t.$set(s)},i(i){r||($(t.$$.fragment,i),r=!0)},o(i){W(t.$$.fragment,i),r=!1},d(i){i&&R(n),ie(t)}}}function Oc(e){let n,t,r,i,o,s;return t=new we({props:{path:so,width:e[13],height:e[13]}}),t.$on("click",e[39]),o=new we({props:{path:qc,width:e[13],height:e[13]}}),o.$on("click",e[40]),{c(){n=g("div"),se(t.$$.fragment),r=w(),i=g("div"),se(o.$$.fragment),h(n,"role","button"),h(n,"title","Remove selected Lines"),h(n,"class","mr-1 hover:text-primary sm:mr-2"),h(i,"role","button"),h(i,"title","Deselect Lines"),h(i,"class","mr-1 hover:text-primary sm:mr-2")},m(l,a){F(l,n,a),re(t,n,null),F(l,r,a),F(l,i,a),re(o,i,null),s=!0},p(l,a){const c={};a[0]&8192&&(c.width=l[13]),a[0]&8192&&(c.height=l[13]),t.$set(c);const u={};a[0]&8192&&(u.width=l[13]),a[0]&8192&&(u.height=l[13]),o.$set(u)},i(l){s||($(t.$$.fragment,l),$(o.$$.fragment,l),s=!0)},o(l){W(t.$$.fragment,l),W(o.$$.fragment,l),s=!1},d(l){l&&R(n),ie(t),l&&R(r),l&&R(i),ie(o)}}}function Ic(e){let n,t,r,i;return t=new we({props:{width:e[13],height:e[13],path:e[1]?Ha:Na}}),t.$on("click",e[41]),{c(){n=g("div"),se(t.$$.fragment),h(n,"role","button"),h(n,"class","mr-1 hover:text-primary sm:mr-2"),h(n,"title",r=e[1]?"Close Floating Window":"Open Floating Window")},m(o,s){F(o,n,s),re(t,n,null),i=!0},p(o,s){const l={};s[0]&8192&&(l.width=o[13]),s[0]&8192&&(l.height=o[13]),s[0]&2&&(l.path=o[1]?Ha:Na),t.$set(l),(!i||s[0]&2&&r!==(r=o[1]?"Close Floating Window":"Open Floating Window"))&&h(n,"title",r)},i(o){i||($(t.$$.fragment,o),i=!0)},o(o){W(t.$$.fragment,o),i=!1},d(o){o&&R(n),ie(t)}}}function Mc(e,n){let t,r,i=n[108],o;const s=()=>n[66](r,i),l=()=>n[66](null,i);let a={line:n[106],index:n[108],isLast:n[3].length-1===n[108]};return r=new xu({props:a}),s(),r.$on("selected",n[67]),r.$on("deselected",n[68]),r.$on("edit",n[44]),{key:e,first:null,c(){t=Nn(),se(r.$$.fragment),this.first=t},m(c,u){F(c,t,u),re(r,c,u),o=!0},p(c,u){n=c,i!==n[108]&&(l(),i=n[108],s());const p={};u[0]&8&&(p.line=n[106]),u[0]&8&&(p.index=n[108]),u[0]&8&&(p.isLast=n[3].length-1===n[108]),r.$set(p)},i(c){o||($(r.$$.fragment,c),o=!0)},o(c){W(r.$$.fragment,c),o=!1},d(c){c&&R(t),l(),ie(r,c)}}}function $c(e){let n,t,r,i;return t=new pp({}),{c(){n=g("div"),se(t.$$.fragment),h(n,"class","bg-base-200 fixed top-0 right-0 z-[60] flex h-full w-full max-w-3xl flex-col justify-between")},m(o,s){F(o,n,s),re(t,n,null),i=!0},p(o,s){},i(o){i||($(t.$$.fragment,o),o&&(r||Rr(()=>{r=Gc(n,Su,{x:100,duration:100,easing:zh}),r.start()})),i=!0)},o(o){W(t.$$.fragment,o),i=!1},d(o){o&&R(n),ie(t)}}}function Hc(e){let n=[],t=new Map,r,i,o=e[12];const s=l=>l[106].id;for(let l=0;l<o.length;l+=1){let a=xc(e,o,l),c=s(a);t.set(c,n[l]=Nc(c,a))}return{c(){for(let l=0;l<n.length;l+=1)n[l].c();r=Nn()},m(l,a){for(let c=0;c<n.length;c+=1)n[c].m(l,a);F(l,r,a),i=!0},p(l,a){a[0]&4098&&(o=l[12],nt(),n=Yr(n,a,s,1,l,o,t,r.parentNode,Hs,Nc,r,xc),rt())},i(l){if(!i){for(let a=0;a<o.length;a+=1)$(n[a]);i=!0}},o(l){for(let a=0;a<n.length;a+=1)W(n[a]);i=!1},d(l){for(let a=0;a<n.length;a+=1)n[a].d(l);l&&R(r)}}}function Nc(e,n){let t,r,i;return r=new xu({props:{line:n[106],index:n[108],pipWindow:n[1],isLast:n[12].length-1===n[108]}}),{key:e,first:null,c(){t=Nn(),se(r.$$.fragment),this.first=t},m(o,s){F(o,t,s),re(r,o,s),i=!0},p(o,s){n=o;const l={};s[0]&4096&&(l.line=n[106]),s[0]&4096&&(l.index=n[108]),s[0]&2&&(l.pipWindow=n[1]),s[0]&4096&&(l.isLast=n[12].length-1===n[108]),r.$set(l)},i(o){i||($(r.$$.fragment,o),i=!0)},o(o){W(r.$$.fragment,o),i=!1},d(o){o&&R(t),ie(r,o)}}}function E1(e){let n=(e[21]??"")+"",t,r,i=(e[22]??"")+"",o,s,l=(e[23]??"")+"",a,c,u=(e[24]??"")+"",p,m,b=(e[25]??"")+"",k,S,V,O,D,P,I,Z,J,K,j,E,B,U,X,ve,ne,A,T,z,oe,ue,_e,Xe,Ve,Ze,Ye,He,yt,gt,Ne,ze,Fe,ye,Ie,bt,he,ut,We,Re=[],it=new Map,vt,je,ae,Be,_t,Se,ke,kt,Tt,Ee=e[14]&&Ac();O=new ap({}),I=new y1({}),I.$on("afkBlur",e[42]);let _=e[26]&&Tc(),de=e[27]&&Dc();const Dt=[C1,S1],Pe=[];function ot(C,H){return C[19]?0:1}j=ot(e),E=Pe[j]=Dt[j](e),X=new we({props:{path:kf,width:e[13],height:e[13]}}),X.$on("click",e[38]),A=new we({props:{path:bf,width:e[13],height:e[13]}}),A.$on("click",e[37]);let Ce=e[5].length&&Oc(e);ue=new we({props:{path:Lf,width:e[13],height:e[13]}}),ue.$on("click",e[56]);let Te=e[2]&&Ic(e);Ze=new we({props:{path:vf,width:e[13],height:e[13]}}),Ze.$on("click",e[57]);function lt(C){e[58](C)}let hn={class:"cursor-pointer mr-1 hover:text-primary md:mr-2",path:_f,width:e[13],height:e[13]};e[7]!==void 0&&(hn.element=e[7]),He=new we({props:hn}),mt.push(()=>os(He,"element",lt,e[7])),He.$on("click",e[59]);function pn(C){e[60](C)}function jn(C){e[61](C)}let ft={settingsElement:e[7],pipAvailable:e[2]};e[8]!==void 0&&(ft.settingsOpen=e[8]),e[5]!==void 0&&(ft.selectedLineIds=e[5]),Ne=new a1({props:ft}),mt.push(()=>os(Ne,"settingsOpen",pn,e[8])),mt.push(()=>os(Ne,"selectedLineIds",jn,e[5])),e[62](Ne),Ne.$on("applyReplacements",e[63]),Ne.$on("layoutChange",e[43]),Ne.$on("maxLinesChange",e[64]),Ie=new Au({props:{isQuickSwitch:!0}}),Ie.$on("layoutChange",e[43]);let zt=e[3];const Ht=C=>C[106].id;for(let C=0;C<zt.length;C+=1){let H=Pc(e,zt,C),St=Ht(H);it.set(St,Re[C]=Mc(St,H))}let Ke=e[20]&&$c(),Le=e[1]&&Hc(e);return{c(){t=dt(n),r=w(),o=dt(i),s=w(),a=dt(l),c=w(),p=dt(u),m=w(),k=dt(b),S=w(),Ee&&Ee.c(),V=w(),se(O.$$.fragment),D=w(),P=g("header"),se(I.$$.fragment),Z=w(),_&&_.c(),J=w(),de&&de.c(),K=w(),E.c(),B=w(),U=g("div"),se(X.$$.fragment),ve=w(),ne=g("div"),se(A.$$.fragment),T=w(),Ce&&Ce.c(),z=w(),oe=g("div"),se(ue.$$.fragment),_e=w(),Te&&Te.c(),Xe=w(),Ve=g("div"),se(Ze.$$.fragment),Ye=w(),se(He.$$.fragment),gt=w(),se(Ne.$$.fragment),ye=w(),se(Ie.$$.fragment),bt=w(),he=g("main"),ut=new Bc(!1),We=w();for(let C=0;C<Re.length;C+=1)Re[C].c();vt=w(),je=g("div"),ae=g("input"),Be=w(),Ke&&Ke.c(),_t=w(),Se=g("div"),Le&&Le.c(),h(U,"role","button"),h(U,"title","Delete last Line"),h(U,"class","mr-1 hover:text-primary sm:mr-2"),q(U,"opacity-50",!e[3].length),q(U,"cursor-not-allowed",!e[3].length),q(U,"hover:text-primary",e[3].length),h(ne,"role","button"),h(ne,"title","Undo last Action"),h(ne,"class","mr-1 hover:text-primary sm:mr-2"),q(ne,"opacity-50",!e[15].length),q(ne,"cursor-not-allowed",!e[15].length),q(ne,"hover:text-primary",e[15].length),h(oe,"role","button"),h(oe,"title","Open Notes"),h(oe,"class","mr-1 hover:text-primary sm:mr-2"),h(Ve,"role","button"),h(Ve,"class","mr-1 hover:text-primary sm:mr-2"),h(Ve,"title","Open Statistics Page"),h(P,"class","fixed top-0 right-0 flex justify-end items-center p-2 bg-base-100"),ut.a=We,h(he,"class","flex flex-col flex-1 break-all px-4 w-full h-full overflow-auto"),q(he,"py-16",!e[18]),q(he,"py-8",e[18]),q(he,"opacity-50",e[20]),q(he,"flex-col-reverse",e[17]),be(he,"font-size",`${e[28]}px`),be(he,"font-family",e[29]!==on.OFF?e[29]:void 0),be(he,"writing-mode",e[18]?"vertical-rl":"horizontal-tb"),h(ae,"type","text"),h(ae,"placeholder","TL"),h(ae,"class","w-8 h-6 text-xs p-1 border border-gray-300 rounded text-center bg-base-100"),h(ae,"title","Press Enter to translate a number of lines"),h(je,"class","fixed bottom-2 right-2 z-50"),h(Se,"id","pip-container"),h(Se,"class","flex flex-col flex-1 flex flex-col break-all px-4 w-full h-full overflow-auto"),q(Se,"flex-col-reverse",e[17]),q(Se,"hidden",!e[1]),be(Se,"font-size",`${e[28]}px`),be(Se,"font-family",e[29]!==on.OFF?e[29]:void 0)},m(C,H){F(C,t,H),F(C,r,H),F(C,o,H),F(C,s,H),F(C,a,H),F(C,c,H),F(C,p,H),F(C,m,H),F(C,k,H),F(C,S,H),Ee&&Ee.m(C,H),F(C,V,H),re(O,C,H),F(C,D,H),F(C,P,H),re(I,P,null),f(P,Z),_&&_.m(P,null),f(P,J),de&&de.m(P,null),f(P,K),Pe[j].m(P,null),f(P,B),f(P,U),re(X,U,null),f(P,ve),f(P,ne),re(A,ne,null),f(P,T),Ce&&Ce.m(P,null),f(P,z),f(P,oe),re(ue,oe,null),f(P,_e),Te&&Te.m(P,null),f(P,Xe),f(P,Ve),re(Ze,Ve,null),f(P,Ye),re(He,P,null),f(P,gt),re(Ne,P,null),f(P,ye),re(Ie,P,null),e[65](P),F(C,bt,H),F(C,he,H),ut.m(Lu,he),f(he,We);for(let St=0;St<Re.length;St+=1)Re[St].m(he,null);e[69](he),F(C,vt,H),F(C,je,H),f(je,ae),wt(ae,e[11]),F(C,Be,H),Ke&&Ke.m(C,H),F(C,_t,H),F(C,Se,H),Le&&Le.m(Se,null),e[72](Se),ke=!0,kt||(Tt=[x(k1,"keyup",e[36]),x(ae,"input",e[70]),x(ae,"keydown",e[71])],kt=!0)},p(C,H){(!ke||H[0]&2097152)&&n!==(n=(C[21]??"")+"")&&$t(t,n),(!ke||H[0]&4194304)&&i!==(i=(C[22]??"")+"")&&$t(o,i),(!ke||H[0]&8388608)&&l!==(l=(C[23]??"")+"")&&$t(a,l),(!ke||H[0]&16777216)&&u!==(u=(C[24]??"")+"")&&$t(p,u),(!ke||H[0]&33554432)&&b!==(b=(C[25]??"")+"")&&$t(k,b),C[14]?Ee?H[0]&16384&&$(Ee,1):(Ee=Ac(),Ee.c(),$(Ee,1),Ee.m(V.parentNode,V)):Ee&&(nt(),W(Ee,1,1,()=>{Ee=null}),rt()),C[26]?_?H[0]&67108864&&$(_,1):(_=Tc(),_.c(),$(_,1),_.m(P,J)):_&&(nt(),W(_,1,1,()=>{_=null}),rt()),C[27]?de?H[0]&134217728&&$(de,1):(de=Dc(),de.c(),$(de,1),de.m(P,K)):de&&(nt(),W(de,1,1,()=>{de=null}),rt());let St=j;j=ot(C),j===St?Pe[j].p(C,H):(nt(),W(Pe[St],1,1,()=>{Pe[St]=null}),rt(),E=Pe[j],E?E.p(C,H):(E=Pe[j]=Dt[j](C),E.c()),$(E,1),E.m(P,B));const et={};H[0]&8192&&(et.width=C[13]),H[0]&8192&&(et.height=C[13]),X.$set(et),(!ke||H[0]&8)&&q(U,"opacity-50",!C[3].length),(!ke||H[0]&8)&&q(U,"cursor-not-allowed",!C[3].length),(!ke||H[0]&8)&&q(U,"hover:text-primary",C[3].length);const Je={};H[0]&8192&&(Je.width=C[13]),H[0]&8192&&(Je.height=C[13]),A.$set(Je),(!ke||H[0]&32768)&&q(ne,"opacity-50",!C[15].length),(!ke||H[0]&32768)&&q(ne,"cursor-not-allowed",!C[15].length),(!ke||H[0]&32768)&&q(ne,"hover:text-primary",C[15].length),C[5].length?Ce?(Ce.p(C,H),H[0]&32&&$(Ce,1)):(Ce=Oc(C),Ce.c(),$(Ce,1),Ce.m(P,z)):Ce&&(nt(),W(Ce,1,1,()=>{Ce=null}),rt());const Jt={};H[0]&8192&&(Jt.width=C[13]),H[0]&8192&&(Jt.height=C[13]),ue.$set(Jt),C[2]?Te?(Te.p(C,H),H[0]&4&&$(Te,1)):(Te=Ic(C),Te.c(),$(Te,1),Te.m(P,Xe)):Te&&(nt(),W(Te,1,1,()=>{Te=null}),rt());const Ot={};H[0]&8192&&(Ot.width=C[13]),H[0]&8192&&(Ot.height=C[13]),Ze.$set(Ot);const Nt={};H[0]&8192&&(Nt.width=C[13]),H[0]&8192&&(Nt.height=C[13]),!yt&&H[0]&128&&(yt=!0,Nt.element=C[7],rs(()=>yt=!1)),He.$set(Nt);const Qt={};H[0]&128&&(Qt.settingsElement=C[7]),H[0]&4&&(Qt.pipAvailable=C[2]),!ze&&H[0]&256&&(ze=!0,Qt.settingsOpen=C[8],rs(()=>ze=!1)),!Fe&&H[0]&32&&(Fe=!0,Qt.selectedLineIds=C[5],rs(()=>Fe=!1)),Ne.$set(Qt),H[0]&1064|H[1]&8192&&(zt=C[3],nt(),Re=Yr(Re,H,Ht,1,C,zt,it,he,Hs,Mc,null,Pc),rt()),(!ke||H[0]&262144)&&q(he,"py-16",!C[18]),(!ke||H[0]&262144)&&q(he,"py-8",C[18]),(!ke||H[0]&1048576)&&q(he,"opacity-50",C[20]),(!ke||H[0]&131072)&&q(he,"flex-col-reverse",C[17]),H[0]&268435456&&be(he,"font-size",`${C[28]}px`),H[0]&536870912&&be(he,"font-family",C[29]!==on.OFF?C[29]:void 0),H[0]&262144&&be(he,"writing-mode",C[18]?"vertical-rl":"horizontal-tb"),H[0]&2048&&ae.value!==C[11]&&wt(ae,C[11]),C[20]?Ke?H[0]&1048576&&$(Ke,1):(Ke=$c(),Ke.c(),$(Ke,1),Ke.m(_t.parentNode,_t)):Ke&&(nt(),W(Ke,1,1,()=>{Ke=null}),rt()),C[1]?Le?(Le.p(C,H),H[0]&2&&$(Le,1)):(Le=Hc(C),Le.c(),$(Le,1),Le.m(Se,null)):Le&&(nt(),W(Le,1,1,()=>{Le=null}),rt()),(!ke||H[0]&131072)&&q(Se,"flex-col-reverse",C[17]),(!ke||H[0]&2)&&q(Se,"hidden",!C[1]),H[0]&268435456&&be(Se,"font-size",`${C[28]}px`),H[0]&536870912&&be(Se,"font-family",C[29]!==on.OFF?C[29]:void 0)},i(C){if(!ke){$(Ee),$(O.$$.fragment,C),$(I.$$.fragment,C),$(_),$(de),$(E),$(X.$$.fragment,C),$(A.$$.fragment,C),$(Ce),$(ue.$$.fragment,C),$(Te),$(Ze.$$.fragment,C),$(He.$$.fragment,C),$(Ne.$$.fragment,C),$(Ie.$$.fragment,C);for(let H=0;H<zt.length;H+=1)$(Re[H]);$(Ke),$(Le),ke=!0}},o(C){W(Ee),W(O.$$.fragment,C),W(I.$$.fragment,C),W(_),W(de),W(E),W(X.$$.fragment,C),W(A.$$.fragment,C),W(Ce),W(ue.$$.fragment,C),W(Te),W(Ze.$$.fragment,C),W(He.$$.fragment,C),W(Ne.$$.fragment,C),W(Ie.$$.fragment,C);for(let H=0;H<Re.length;H+=1)W(Re[H]);W(Ke),W(Le),ke=!1},d(C){C&&R(t),C&&R(r),C&&R(o),C&&R(s),C&&R(a),C&&R(c),C&&R(p),C&&R(m),C&&R(k),C&&R(S),Ee&&Ee.d(C),C&&R(V),ie(O,C),C&&R(D),C&&R(P),ie(I),_&&_.d(),de&&de.d(),Pe[j].d(),ie(X),ie(A),Ce&&Ce.d(),ie(ue),Te&&Te.d(),ie(Ze),ie(He),e[62](null),ie(Ne),ie(Ie),e[65](null),C&&R(bt),C&&R(he);for(let H=0;H<Re.length;H+=1)Re[H].d();e[69](null),C&&R(vt),C&&R(je),C&&R(Be),Ke&&Ke.d(C),C&&R(_t),C&&R(Se),Le&&Le.d(),e[72](null),kt=!1,At(Tt)}}}const L1=/[\p{scx=Hira}\p{scx=Kana}\p{scx=Han}]/imu;function x1(e,n,t){let r,i,o,s,l,a,c,u,p,m,b,k,S,V,O,D,P,I,Z,J,K,j,E,B,U,X,ve,ne,A,T,z,oe,ue,_e,Xe,Ve,Ze,Ye,He,yt,gt,Ne;y(e,Cl,v=>t(78,s=v)),y(e,$i,v=>t(80,a=v)),y(e,El,v=>t(14,c=v)),y(e,at,v=>t(3,u=v)),y(e,Ue,v=>t(81,p=v)),y(e,Dr,v=>t(82,m=v)),y(e,nr,v=>t(15,b=v)),y(e,$r,v=>t(83,k=v)),y(e,Fr,v=>t(84,S=v)),y(e,Hi,v=>t(85,V=v)),y(e,Vi,v=>t(86,O=v)),y(e,xs,v=>t(16,D=v)),y(e,Or,v=>t(50,P=v)),y(e,Ls,v=>t(87,I=v)),y(e,jr,v=>t(17,Z=v)),y(e,Wr,v=>t(18,J=v)),y(e,Ka,v=>t(88,K=v)),y(e,Ya,v=>t(89,j=v)),y(e,Xt,v=>t(19,E=v)),y(e,Nl,v=>t(90,B=v)),y(e,Hl,v=>t(20,U=v)),y(e,qi,v=>t(51,X=v)),y(e,Hr,v=>t(52,ve=v)),y(e,ln,v=>t(53,ne=v)),y(e,Ni,v=>t(91,A=v)),y(e,Mi,v=>t(92,T=v)),y(e,Ii,v=>t(93,z=v)),y(e,Oi,v=>t(94,oe=v)),y(e,Di,v=>t(95,ue=v)),y(e,Mn,v=>t(26,He=v)),y(e,$n,v=>t(27,yt=v)),y(e,Ir,v=>t(28,gt=v)),y(e,ki,v=>t(29,Ne=v));let ze=!1,Fe,ye=[],Ie,bt,he=!1,ut,We=[],Re=!1,it=!1,vt=null,je,ae,Be;Pe();const _t="wakeLock"in navigator,Se=Fr.pipe(Xl(v=>v?new Set(u.map(Q=>Q.text)):new Set));y(e,Se,v=>t(79,l=v));const ke=Nr.pipe(Zl(([v,Q,te])=>{const pe=Q===nn.RESETCHECKBOXES,ge=Q===nn.PASTE,ht=!ge||!U&&!B&&!he&&!Re,dn=it&&Q===nn.EXTERNAL;return dn&&(it=!1),pe?(ot(),!1):(!E||(ue||z)&&ge||(oe||T)&&!ge)&&ht&&!dn?(E&&(z&&ge||T&&!ge)&&N(Xt,E=!1,E),!0):(!dn&&ht&&A&&C(),!1)}),tr(v=>{const[Q]=v,te=v.at(1)||nn.SOCKET,pe=H(Q,te!==nn.TL),ge=v.at(2)||Jh();te!==nn.TL&&N(Cl,s=[...s,ge],s),pe&&N(at,u=Jt([...et(1),{id:ge,text:pe}]),u)}),rr());y(e,ke,v=>t(22,Xe=v));const kt=Ai.pipe(vo(v=>v?or(document,"paste"):bo),tr(v=>Nr.next([v.clipboardData.getData("text/plain"),nn.PASTE,""])),rr());y(e,kt,v=>t(23,Ve=v));const Tt=or(document,"visibilitychange").pipe(tr(()=>{_t&&vt!==null&&document.visibilityState==="visible"&&(vt=navigator.wakeLock.request("screen").then(v=>v).catch(v=>(console.error(`Unable to aquire screen lock: ${v.message}`),null)))}),rr());y(e,Tt,v=>t(21,_e=v));const Ee=Ti.pipe(vo(v=>(it=!1,v?or(document,"copy"):bo)),tr(()=>it=!0),rr());y(e,Ee,v=>t(24,Ze=v));const _=or(window,"resize").pipe(Bs(500),tr(de),rr());y(e,_,v=>t(25,Ye=v)),zl(()=>{de(),_t&&(vt=navigator.wakeLock.request("screen").then(v=>v).catch(v=>(console.error(`Unable to aquire screen lock: ${v.message}`),null)))});function de(){t(49,ze=window.matchMedia("(min-width: 640px)").matches),Le()}function Dt(v){var te,pe;if(U||B||he||Re)return;const Q=(te=v.key||"")==null?void 0:te.toLowerCase();if(Q==="delete"){if((pe=window.getSelection())!=null&&pe.toString().trim()){const ge=window.getSelection().getRangeAt(0);for(let ht=0,{length:dn}=We;ht<dn;ht+=1){const Gt=We[ht],fr=Gt==null?void 0:Gt.getIdIfSelected(ge);fr&&ye.push(fr)}}ye.length?lt():v.altKey&&Te()}else ye.length&&Q==="escape"?hn():v.altKey&&Q==="a"?Fe.handleReset(!1):v.altKey&&Q==="q"?Fe.handleReset(!0):(v.ctrlKey||v.metaKey)&&Q===" "&&N(Xt,E=!E,E)}function Pe(){setInterval(async()=>{try{const v=await fetch(So("/get_ids"));if(!v.ok)throw new Error(`HTTP error! Status: ${v.status}`);N(Cl,s=await v.json(),s)}catch(v){console.error("Failed to fetch ids:",v)}},1e3)}function ot(){u.forEach(v=>{const Q=document.getElementById(`multi-line-checkbox-${v.id}`);Q&&typeof Q.checked=="boolean"?Q.checked=!1:console.warn(`Checkbox with ID 'multi-line-checkbox-${v.id}' not found or is not a valid checkbox element.`)})}async function Ce(){if(!b.length)return;const v=b.pop();let Q=v.pop();for(;Q;){const te=H(Q.text,!1);if(te){const{id:pe,index:ge}=Q;ge>u.length-1?u.push({id:pe,text:te}):u[ge].id===pe?N(at,u[ge]={id:pe,text:te},u):u.splice(ge,0,{id:pe,text:te})}Q=v.pop()}await go(),N(at,u=Jt(et()),u),nr.set(b)}function Te(){if(!u.length)return;const[v]=u.splice(u.length-1,1);t(5,ye=ye.filter(Q=>Q!==v.id)),at.set(u),N(nr,b=[...b,[{...v,index:u.length}]],b),l.delete(v.text)}function lt(){const v=new Set(ye),Q=[];N(at,u=u.filter((te,pe)=>{const ge=v.has(te.id);return v.delete(te.id),ge&&(Q.push({...te,index:pe-Q.length}),l.delete(te.text)),!ge}),u),t(5,ye=v.size?[...v]:[]),Q.length&&N(nr,b=[...b,Q],b)}function hn(){var v;for(let Q=0,{length:te}=We;Q<te;Q+=1)(v=We[Q])==null||v.deselect();t(5,ye=[])}async function pn(){if(ae)return ae.close();t(1,ae=await window.documentPictureInPicture.requestWindow(j>0&&K>0?{height:j,width:K,preferInitialWindowPlacement:!1}:{preferInitialWindowPlacement:!1}).catch(({message:v})=>{N(Ue,p={message:`Error opening floating window: ${v}`,showCancel:!1},p)})),ae&&(ae.document.body.appendChild(je),ae.addEventListener("pagehide",jn,{once:!0}),ae.addEventListener("resize",ft,!1),ae.addEventListener("blur",Ht,!1),ae.addEventListener("focus",Ht,!1),[...document.styleSheets].forEach(v=>{if(!(v.ownerNode instanceof Element&&v.ownerNode.id==="user-css"))try{const Q=[...v.cssRules].map(pe=>pe.cssText).join(""),te=document.createElement("style");te.textContent=Q,ae.document.head.appendChild(te)}catch{const te=document.createElement("link");te.rel="stylesheet",te.type=v.type,te.media=v.media.toString(),te.href=v.href,ae.document.head.appendChild(te)}}))}function jn(){zt(),ae.removeEventListener("resize",ft,!1),ae.removeEventListener("blur",Ht,!1),ae.removeEventListener("focus",Ht,!1),t(1,ae=void 0)}function ft(){window.clearTimeout(Be),Be=window.setTimeout(zt,500)}function zt(){ae&&(N(Ya,j=ae.document.body.clientHeight,j),N(Ka,K=ae.document.body.clientWidth,K))}function Ht(v){v.type}function Ke({detail:v}){Ga(document,v),ae&&Ga(ae.document,v)}function Le(){Rl(window,ut,Z,J),ae&&Rl(ae,je,Z,!1)}function C(){clearTimeout(I),P===rn.GARDEN&&(Ie.classList.add("bg-base-200"),Ie.classList.remove("bg-base-100"),document.body.classList.add("bg-base-200")),document.body.classList.add("animate-[pulse_0.5s_cubic-bezier(0.4,0,0.6,1)_1]"),N(Ls,I=window.setTimeout(()=>{P===rn.GARDEN&&(Ie.classList.add("bg-base-100"),Ie.classList.remove("bg-base-200"),document.body.classList.remove("bg-base-200")),document.body.classList.remove("animate-[pulse_0.5s_cubic-bezier(0.4,0,0.6,1)_1]")},500),I)}function H(v,Q=!0){const te=Q?Cu(v,D):v;let pe=!0,ge=O?te.replace(/\s/gm,"").trim():te;return V&&!ge.match(L1)&&(ge=""),ge?S?(pe=!l.has(ge),l.add(ge)):k&&u.length&&(pe=u.slice(-k).every(ht=>ht.text!==ge)):pe=!1,pe?ge:void 0}function St(v){const{inEdit:Q,data:te}=v.detail;if(te&&te.originalText!==te.newText){const pe=H(te.newText);N(at,u[te.lineIndex]={id:te.line.id,text:pe},u),pe?(N(nr,b=[...b,[{...te.line,index:te.lineIndex}]],b),l.delete(te.originalText),l.add(pe)):go().then(()=>N(at,u[te.lineIndex]={id:te.line.id,text:te.originalText},u))}Re=Q}function et(v=0){const Q=new Set,te=m?u.length-m+v:0,pe=te>0?u.filter((ge,ht)=>ht<te?(Q.add(ge.id),l.delete(ge.text),!1):!0):u;return Q.size&&t(5,ye=ye.filter(ge=>!Q.has(ge))),pe}function Je(v){if(v){N(El,c=!0,c);try{for(let Q=0,{length:te}=u;Q<te;Q+=1){const pe=u[Q],ge=H(pe.text);ge&&ge!==pe.text&&(l.delete(pe.text),N(at,u[Q]={...pe,text:ge},u))}N(Ue,p={message:"Operation executed",showCancel:!1},p)}catch({message:Q}){N(Ue,p={type:"error",message:`An Error occured: ${Q}`,showCancel:!1},p)}N(at,u=Jt(et()),u),N(El,c=!1,c)}}function Jt(v){if(!a||v.length<2)return v;const Q=v.length-1,te=Q-1,pe=v[Q],ge=v[te].text;return pe.text.startsWith(ge)&&(l.delete(ge),t(5,ye=ye.filter(ht=>ht!==v[te].id)),v.splice(te,2,pe)),v}let Ot="";async function Nt(){if(Ot.trim())try{let v=s;Number(Ot)<v.length&&(v=v.slice(-Number(Ot)));const Q=await fetch(So("/translate-multiple"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ids:v})});if(Q.ok){const te=await Q.text();Nr.next([te,nn.TL,""])}}catch(v){console.error("Translation failed:",v)}}const Qt=()=>N(Xt,E=!1,E),Yt=()=>N(Xt,E=!0,E),Gr=()=>N(Hl,U=!0,U),Bn=()=>window.open("/stats","_blank");function qr(v){bt=v,t(7,bt)}const Kt=()=>t(8,he=!he);function Un(v){he=v,t(8,he)}function En(v){ye=v,t(5,ye)}function zn(v){mt[v?"unshift":"push"](()=>{Fe=v,t(4,Fe)})}const Xr=()=>Je(!!D.length),Rt=()=>N(at,u=et(),u);function Zr(v){mt[v?"unshift":"push"](()=>{Ie=v,t(6,Ie)})}function Yn(v,Q){mt[v?"unshift":"push"](()=>{We[Q]=v,t(10,We)})}const Jr=({detail:v})=>{t(5,ye=[...ye,v])},an=({detail:v})=>{t(5,ye=ye.filter(Q=>Q!==v))};function Qr(v){mt[v?"unshift":"push"](()=>{ut=v,t(9,ut)})}function Kn(){Ot=this.value,t(11,Ot)}const ei=v=>v.key==="Enter"&&Nt();function cn(v){mt[v?"unshift":"push"](()=>{je=v,t(0,je)})}return e.$$.update=()=>{e.$$.dirty[1]&262144&&t(13,r=ze?"1.5rem":"1.25rem"),e.$$.dirty[1]&4194304&&N(xs,D=ne.filter(v=>v.enabled),D),e.$$.dirty[0]&1&&t(2,i="documentPictureInPicture"in window&&!!je),e.$$.dirty[0]&12|e.$$.dirty[1]&2097152&&t(12,o=i&&u?u.slice(-ve):[]),e.$$.dirty[0]&2|e.$$.dirty[1]&1572864&&ae&&(t(1,ae.document.body.dataset.theme=P,ae),Eu(ae.document,X))},[je,ae,i,u,Fe,ye,Ie,bt,he,ut,We,Ot,o,r,c,b,D,Z,J,E,U,_e,Xe,Ve,Ze,Ye,He,yt,gt,Ne,Se,ke,kt,Tt,Ee,_,Dt,Ce,Te,lt,hn,pn,Ke,Le,St,et,Je,Nt,Pe,ze,P,X,ve,ne,Qt,Yt,Gr,Bn,qr,Kt,Un,En,zn,Xr,Rt,Zr,Yn,Jr,an,Qr,Kn,ei,cn]}class P1 extends Ut{constructor(n){super(),Bt(this,n,x1,E1,Et,{startIdPolling:48},null,[-1,-1,-1,-1])}get startIdPolling(){return this.$$.ctx[48]}}new P1({target:document.body});
|
39
39
|
|
40
40
|
</script>
|
41
41
|
<style>
|
42
|
-
*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root,[data-theme]{background-color:hsla(var(--b1) / var(--tw-bg-opacity, 1));color:hsla(var(--bc) / var(--tw-text-opacity, 1))}html{-webkit-tap-highlight-color:transparent}:root{color-scheme:light;--pf: 139 16% 34%;--sf: 97 37% 75%;--af: 0 68% 75%;--nf: 0 4% 28%;--b2: 0 4% 82%;--b3: 0 4% 74%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--pc: 139 100% 89%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 139 16% 43%;--s: 97 37% 93%;--sc: 96 32% 15%;--a: 0 68% 94%;--ac: 0 22% 16%;--n: 0 4% 35%;--nc: 0 4% 91%;--b1: 0 4% 91%;--bc: 0 3% 6%}[data-theme=garden]{color-scheme:light;--pf: 139 16% 34%;--sf: 97 37% 75%;--af: 0 68% 75%;--nf: 0 4% 28%;--b2: 0 4% 82%;--b3: 0 4% 74%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--pc: 139 100% 89%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 139 16% 43%;--s: 97 37% 93%;--sc: 96 32% 15%;--a: 0 68% 94%;--ac: 0 22% 16%;--n: 0 4% 35%;--nc: 0 4% 91%;--b1: 0 4% 91%;--bc: 0 3% 6%}[data-theme=business]{color-scheme:dark;--pf: 210 64% 24%;--sf: 200 13% 44%;--af: 13 80% 48%;--nf: 213 14% 13%;--b2: 0 0% 11%;--b3: 0 0% 10%;--bc: 0 0% 83%;--pc: 210 100% 86%;--sc: 200 100% 11%;--ac: 13 100% 12%;--nc: 213 28% 83%;--inc: 199 100% 88%;--suc: 144 100% 11%;--wac: 39 100% 12%;--erc: 6 100% 89%;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 210 64% 31%;--s: 200 13% 55%;--a: 13 80% 60%;--n: 213 14% 16%;--b1: 0 0% 13%;--in: 199 100% 42%;--su: 144 31% 56%;--wa: 39 64% 60%;--er: 6 56% 43%;--rounded-box: .25rem;--rounded-btn: .125rem;--rounded-badge: .125rem}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.alert{display:flex;width:100%;flex-direction:column;align-items:center;justify-content:space-between;gap:1rem;--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));padding:1rem;border-radius:var(--rounded-box, 1rem)}.alert>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}@media (min-width: 768px){.alert{flex-direction:row}.alert>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}}.alert>:where(*){display:flex;align-items:center;gap:.5rem}.avatar.placeholder>div{display:flex;align-items:center;justify-content:center}.btn{display:inline-flex;flex-shrink:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-wrap:wrap;align-items:center;justify-content:center;border-color:transparent;border-color:hsl(var(--n) / var(--tw-border-opacity));text-align:center;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);border-radius:var(--rounded-btn, .5rem);height:3rem;padding-left:1rem;padding-right:1rem;font-size:.875rem;line-height:1.25rem;line-height:1em;min-height:3rem;font-weight:600;text-transform:uppercase;text-transform:var(--btn-text-case, uppercase);text-decoration-line:none;border-width:var(--border-btn, 1px);animation:button-pop var(--animation-btn, .25s) ease-out;--tw-border-opacity: 1;--tw-bg-opacity: 1;background-color:hsl(var(--n) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--nc) / var(--tw-text-opacity))}.btn-disabled,.btn[disabled],.btn.loading,.btn.loading:hover{pointer-events:none}.btn.loading:before{margin-right:.5rem;height:1rem;width:1rem;border-radius:9999px;border-width:2px;animation:spin 2s linear infinite;content:"";border-top-color:transparent;border-left-color:transparent;border-bottom-color:currentColor;border-right-color:currentColor}@media (prefers-reduced-motion: reduce){.btn.loading:before{animation:spin 10s linear infinite}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.btn-group>input[type=radio].btn{-webkit-appearance:none;-moz-appearance:none;appearance:none}.btn-group>input[type=radio].btn:before{content:attr(data-title)}.checkbox{flex-shrink:0;--chkbg: var(--bc);--chkfg: var(--b1);height:1.5rem;width:1.5rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: .2;border-radius:var(--rounded-btn, .5rem)}.label{display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;justify-content:space-between;padding:.5rem .25rem}.input{flex-shrink:1;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);height:3rem;padding-left:1rem;padding-right:1rem;font-size:1rem;line-height:2;line-height:1.5rem;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: 0;--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));border-radius:var(--rounded-btn, .5rem)}.input-group>.input{isolation:isolate}.input-group>*,.input-group>.input,.input-group>.select{border-radius:0}.link{cursor:pointer;text-decoration-line:underline}.menu>:where(li.disabled > *:not(ul):focus){cursor:auto}.range{height:1.5rem;width:100%;cursor:pointer;-moz-appearance:none;appearance:none;-webkit-appearance:none;--range-shdw: var(--bc);overflow:hidden;background-color:transparent;border-radius:var(--rounded-box, 1rem)}.range:focus{outline:none}.select{display:inline-flex;flex-shrink:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:3rem;padding-left:1rem;padding-right:2.5rem;font-size:.875rem;line-height:1.25rem;line-height:2;min-height:3rem;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: 0;--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));font-weight:600;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);border-radius:var(--rounded-btn, .5rem);background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - 20px) calc(1px + 50%),calc(100% - 16px) calc(1px + 50%);background-size:4px 4px,4px 4px;background-repeat:no-repeat}.select[multiple]{height:auto}.stats{display:inline-grid;--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--bc) / var(--tw-text-opacity));border-radius:var(--rounded-box, 1rem)}:where(.stats){grid-auto-flow:column;overflow-x:auto}.swap{position:relative;display:inline-grid;-webkit-user-select:none;-moz-user-select:none;user-select:none;place-content:center;cursor:pointer}.swap>*{grid-column-start:1;grid-row-start:1;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-property:transform,opacity}.swap input{-webkit-appearance:none;-moz-appearance:none;appearance:none}.swap .swap-on,.swap .swap-indeterminate,.swap input:indeterminate~.swap-on{opacity:0}.swap input:checked~.swap-off,.swap.swap-active .swap-off,.swap input:indeterminate~.swap-off{opacity:0}.swap input:checked~.swap-on,.swap-active .swap-on,.swap input:indeterminate~.swap-indeterminate{opacity:1}.tab{position:relative;display:inline-flex;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-wrap:wrap;align-items:center;justify-content:center;text-align:center;height:2rem;font-size:.875rem;line-height:1.25rem;line-height:2;--tab-padding: 1rem;--tw-text-opacity: .5;--tab-color: hsla(var(--bc) / var(--tw-text-opacity, 1));--tab-bg: hsla(var(--b1) / var(--tw-bg-opacity, 1));--tab-border-color: hsla(var(--b3) / var(--tw-bg-opacity, 1));color:var(--tab-color);padding-left:var(--tab-padding, 1rem);padding-right:var(--tab-padding, 1rem)}.textarea{flex-shrink:1;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);padding:.5rem 1rem;font-size:.875rem;line-height:1.25rem;line-height:2;min-height:3rem;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: 0;--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));border-radius:var(--rounded-btn, .5rem)}.alert-info{--tw-bg-opacity: 1;background-color:hsl(var(--in) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--inc, var(--nc)) / var(--tw-text-opacity))}.alert-error{--tw-bg-opacity: 1;background-color:hsl(var(--er) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--erc, var(--nc)) / var(--tw-text-opacity))}.btn-outline.btn-primary .badge{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.btn-outline .badge.outline{--tw-border-opacity: 1;border-color:hsl(var(--nf, var(--n)) / var(--tw-border-opacity));background-color:transparent}.btn-outline.btn-primary .badge-outline{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity));background-color:transparent;--tw-text-opacity: 1;color:hsl(var(--p) / var(--tw-text-opacity))}.btn-outline:hover .badge.outline{--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity));--tw-text-opacity: 1;color:hsl(var(--nc) / var(--tw-text-opacity))}.btn-outline.btn-primary:hover .badge{--tw-border-opacity: 1;border-color:hsl(var(--pc) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--pc) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--p) / var(--tw-text-opacity))}.btn-outline.btn-primary:hover .badge.outline{--tw-border-opacity: 1;border-color:hsl(var(--pc) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--pf, var(--p)) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.btn-outline.btn-secondary:hover .badge.outline{--tw-border-opacity: 1;border-color:hsl(var(--sc) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--sf, var(--s)) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--sc) / var(--tw-text-opacity))}.btn-outline.btn-accent:hover .badge.outline{--tw-border-opacity: 1;border-color:hsl(var(--ac) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--af, var(--a)) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--ac) / var(--tw-text-opacity))}.btm-nav>*.disabled,.btm-nav>*.disabled:hover,.btm-nav>*[disabled],.btm-nav>*[disabled]:hover{pointer-events:none;--tw-border-opacity: 0;background-color:hsl(var(--n) / var(--tw-bg-opacity));--tw-bg-opacity: .1;color:hsl(var(--bc) / var(--tw-text-opacity));--tw-text-opacity: .2}.btm-nav>* .label{font-size:1rem;line-height:1.5rem}.btn:active:hover,.btn:active:focus{animation:none;transform:scale(var(--btn-focus-scale, .95))}.btn:hover,.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--nf, var(--n)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--nf, var(--n)) / var(--tw-bg-opacity))}.btn:focus-visible{outline:2px solid hsl(var(--nf));outline-offset:2px}.btn-primary{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.btn-primary:hover,.btn-primary.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--pf, var(--p)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--pf, var(--p)) / var(--tw-bg-opacity))}.btn-primary:focus-visible{outline:2px solid hsl(var(--p))}.btn.glass:hover,.btn.glass.btn-active{--glass-opacity: 25%;--glass-border-opacity: 15%}.btn.glass:focus-visible{outline:2px solid currentColor}.btn-ghost{border-width:1px;border-color:transparent;background-color:transparent;color:currentColor}.btn-ghost:hover,.btn-ghost.btn-active{--tw-border-opacity: 0;background-color:hsl(var(--bc) / var(--tw-bg-opacity));--tw-bg-opacity: .2}.btn-ghost:focus-visible{outline:2px solid currentColor}.btn-outline.btn-primary{--tw-text-opacity: 1;color:hsl(var(--p) / var(--tw-text-opacity))}.btn-outline.btn-primary:hover,.btn-outline.btn-primary.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--pf, var(--p)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--pf, var(--p)) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.btn-disabled,.btn-disabled:hover,.btn[disabled],.btn[disabled]:hover{--tw-border-opacity: 0;background-color:hsl(var(--n) / var(--tw-bg-opacity));--tw-bg-opacity: .2;color:hsl(var(--bc) / var(--tw-text-opacity));--tw-text-opacity: .2}.btn.loading.btn-square:before,.btn.loading.btn-circle:before{margin-right:0}.btn.loading.btn-xl:before,.btn.loading.btn-lg:before{height:1.25rem;width:1.25rem}.btn.loading.btn-sm:before,.btn.loading.btn-xs:before{height:.75rem;width:.75rem}.btn-group>input[type=radio]:checked.btn,.btn-group>.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.btn-group>input[type=radio]:checked.btn:focus-visible,.btn-group>.btn-active:focus-visible{outline:2px solid hsl(var(--p))}@keyframes button-pop{0%{transform:scale(var(--btn-focus-scale, .95))}40%{transform:scale(1.02)}to{transform:scale(1)}}.checkbox:focus-visible{outline:2px solid hsl(var(--bc));outline-offset:2px}.checkbox:checked,.checkbox[checked=true],.checkbox[aria-checked=true]{--tw-bg-opacity: 1;background-color:hsl(var(--bc) / var(--tw-bg-opacity));background-repeat:no-repeat;animation:checkmark var(--animation-input, .2s) ease-in-out;background-image:linear-gradient(-45deg,transparent 65%,hsl(var(--chkbg)) 65.99%),linear-gradient(45deg,transparent 75%,hsl(var(--chkbg)) 75.99%),linear-gradient(-45deg,hsl(var(--chkbg)) 40%,transparent 40.99%),linear-gradient(45deg,hsl(var(--chkbg)) 30%,hsl(var(--chkfg)) 30.99%,hsl(var(--chkfg)) 40%,transparent 40.99%),linear-gradient(-45deg,hsl(var(--chkfg)) 50%,hsl(var(--chkbg)) 50.99%)}.checkbox:indeterminate{--tw-bg-opacity: 1;background-color:hsl(var(--bc) / var(--tw-bg-opacity));background-repeat:no-repeat;animation:checkmark var(--animation-input, .2s) ease-in-out;background-image:linear-gradient(90deg,transparent 80%,hsl(var(--chkbg)) 80%),linear-gradient(-90deg,transparent 80%,hsl(var(--chkbg)) 80%),linear-gradient(0deg,hsl(var(--chkbg)) 43%,hsl(var(--chkfg)) 43%,hsl(var(--chkfg)) 57%,hsl(var(--chkbg)) 57%)}.checkbox-primary{--chkbg: var(--p);--chkfg: var(--pc);--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity))}.checkbox-primary:hover{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity))}.checkbox-primary:focus-visible{outline:2px solid hsl(var(--p))}.checkbox-primary:checked,.checkbox-primary[checked=true],.checkbox-primary[aria-checked=true]{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.checkbox:disabled{cursor:not-allowed;border-color:transparent;--tw-bg-opacity: 1;background-color:hsl(var(--bc) / var(--tw-bg-opacity));opacity:.2}@keyframes checkmark{0%{background-position-y:5px}50%{background-position-y:-2px}to{background-position-y:0}}[dir=rtl] .checkbox:checked,[dir=rtl] .checkbox[checked=true],[dir=rtl] .checkbox[aria-checked=true]{background-image:linear-gradient(45deg,transparent 65%,hsl(var(--chkbg)) 65.99%),linear-gradient(-45deg,transparent 75%,hsl(var(--chkbg)) 75.99%),linear-gradient(45deg,hsl(var(--chkbg)) 40%,transparent 40.99%),linear-gradient(-45deg,hsl(var(--chkbg)) 30%,hsl(var(--chkfg)) 30.99%,hsl(var(--chkfg)) 40%,transparent 40.99%),linear-gradient(45deg,hsl(var(--chkfg)) 50%,hsl(var(--chkbg)) 50.99%)}.drawer-toggle:focus-visible~.drawer-content .drawer-button.btn-primary{outline:2px solid hsl(var(--p))}.drawer-toggle:focus-visible~.drawer-content .drawer-button.btn-ghost{outline:2px solid currentColor}.label-text{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:hsl(var(--bc) / var(--tw-text-opacity))}.label a:hover{--tw-text-opacity: 1;color:hsl(var(--bc) / var(--tw-text-opacity))}.input[list]::-webkit-calendar-picker-indicator{line-height:1em}.input-bordered{--tw-border-opacity: .2}.input:focus{outline:2px solid hsla(var(--bc) / .2);outline-offset:2px}.input-disabled,.input[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));--tw-text-opacity: .2}.input-disabled::-moz-placeholder,.input[disabled]::-moz-placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.input-disabled::placeholder,.input[disabled]::placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.link:focus{outline:2px solid transparent;outline-offset:2px}.link:focus-visible{outline:2px solid currentColor;outline-offset:2px}.menu li.disabled>*{-webkit-user-select:none;-moz-user-select:none;user-select:none;color:hsl(var(--bc) / var(--tw-text-opacity));--tw-text-opacity: .2}.menu li.disabled>*:hover{background-color:transparent}.mockup-phone .display{overflow:hidden;border-radius:40px;margin-top:-25px}@keyframes progress-loading{50%{left:107%}}@keyframes radiomark{0%{box-shadow:0 0 0 12px hsl(var(--b1)) inset,0 0 0 12px hsl(var(--b1)) inset}50%{box-shadow:0 0 0 3px hsl(var(--b1)) inset,0 0 0 3px hsl(var(--b1)) inset}to{box-shadow:0 0 0 4px hsl(var(--b1)) inset,0 0 0 4px hsl(var(--b1)) inset}}.range:focus-visible::-webkit-slider-thumb{--focus-shadow: 0 0 0 6px hsl(var(--b1)) inset, 0 0 0 2rem hsl(var(--range-shdw)) inset}.range:focus-visible::-moz-range-thumb{--focus-shadow: 0 0 0 6px hsl(var(--b1)) inset, 0 0 0 2rem hsl(var(--range-shdw)) inset}.range::-webkit-slider-runnable-track{height:.5rem;width:100%;border-radius:var(--rounded-box, 1rem);background-color:hsla(var(--bc) / .1)}.range::-moz-range-track{height:.5rem;width:100%;border-radius:var(--rounded-box, 1rem);background-color:hsla(var(--bc) / .1)}.range::-webkit-slider-thumb{background-color:hsl(var(--b1));position:relative;height:1.5rem;width:1.5rem;border-style:none;border-radius:var(--rounded-box, 1rem);appearance:none;-webkit-appearance:none;top:50%;color:hsl(var(--range-shdw));transform:translateY(-50%);--filler-size: 100rem;--filler-offset: .6rem;box-shadow:0 0 0 3px hsl(var(--range-shdw)) inset,var(--focus-shadow, 0 0),calc(var(--filler-size) * -1 - var(--filler-offset)) 0 0 var(--filler-size)}.range::-moz-range-thumb{background-color:hsl(var(--b1));position:relative;height:1.5rem;width:1.5rem;border-style:none;border-radius:var(--rounded-box, 1rem);top:50%;color:hsl(var(--range-shdw));--filler-size: 100rem;--filler-offset: .5rem;box-shadow:0 0 0 3px hsl(var(--range-shdw)) inset,var(--focus-shadow, 0 0),calc(var(--filler-size) * -1 - var(--filler-offset)) 0 0 var(--filler-size)}@keyframes rating-pop{0%{transform:translateY(-.125em)}40%{transform:translateY(-.125em)}to{transform:translateY(0)}}.select:focus{outline:2px solid hsla(var(--bc) / .2);outline-offset:2px}.select-disabled,.select[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));--tw-text-opacity: .2}.select-disabled::-moz-placeholder,.select[disabled]::-moz-placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.select-disabled::placeholder,.select[disabled]::placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.select-multiple,.select[multiple],.select[size].select:not([size="1"]){background-image:none;padding-right:1rem}:where(.stats)>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(1px * var(--tw-divide-x-reverse));border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)));--tw-divide-y-reverse: 0;border-top-width:calc(0px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(0px * var(--tw-divide-y-reverse))}.swap-rotate .swap-on,.swap-rotate .swap-indeterminate,.swap-rotate input:indeterminate~.swap-on{--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.swap-rotate input:checked~.swap-off,.swap-rotate.swap-active .swap-off,.swap-rotate input:indeterminate~.swap-off{--tw-rotate: -45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.swap-rotate input:checked~.swap-on,.swap-rotate.swap-active .swap-on,.swap-rotate input:indeterminate~.swap-indeterminate{--tw-rotate: 0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.swap-flip .swap-on,.swap-flip .swap-indeterminate,.swap-flip input:indeterminate~.swap-on{transform:rotateY(180deg);-webkit-backface-visibility:hidden;backface-visibility:hidden;opacity:1}.swap-flip input:checked~.swap-off,.swap-flip.swap-active .swap-off,.swap-flip input:indeterminate~.swap-off{transform:rotateY(-180deg);-webkit-backface-visibility:hidden;backface-visibility:hidden;opacity:1}.swap-flip input:checked~.swap-on,.swap-flip.swap-active .swap-on,.swap-flip input:indeterminate~.swap-indeterminate{transform:rotateY(0)}.tab:hover{--tw-text-opacity: 1}.tab.tab-active{border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: 1;--tw-text-opacity: 1}.tab:focus{outline:2px solid transparent;outline-offset:2px}.tab:focus-visible{outline:2px solid currentColor;outline-offset:-3px}.tab:focus-visible.tab-lifted{border-bottom-right-radius:var(--tab-radius, .5rem);border-bottom-left-radius:var(--tab-radius, .5rem)}.textarea:focus{outline:2px solid hsla(var(--bc) / .2);outline-offset:2px}.textarea-disabled,.textarea[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));--tw-text-opacity: .2}.textarea-disabled::-moz-placeholder,.textarea[disabled]::-moz-placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.textarea-disabled::placeholder,.textarea[disabled]::placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}@keyframes toast-pop{0%{transform:scale(.9);opacity:0}to{transform:scale(1);opacity:1}}.btn-sm{height:2rem;padding-left:.75rem;padding-right:.75rem;min-height:2rem;font-size:.875rem}.btn-square:where(.btn-sm){height:2rem;width:2rem;padding:0}.btn-circle:where(.btn-sm){height:2rem;width:2rem;border-radius:9999px;padding:0}.btn-group .btn:not(:first-child):not(:last-child),.btn-group.btn-group-horizontal .btn:not(:first-child):not(:last-child){border-radius:0}.btn-group .btn:first-child:not(:last-child),.btn-group.btn-group-horizontal .btn:first-child:not(:last-child){margin-left:-1px;margin-top:-0px;border-top-left-radius:var(--rounded-btn, .5rem);border-top-right-radius:0;border-bottom-left-radius:var(--rounded-btn, .5rem);border-bottom-right-radius:0}.btn-group .btn:last-child:not(:first-child),.btn-group.btn-group-horizontal .btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:var(--rounded-btn, .5rem);border-bottom-left-radius:0;border-bottom-right-radius:var(--rounded-btn, .5rem)}.btn-group.btn-group-vertical .btn:first-child:not(:last-child){margin-left:-0px;margin-top:-1px;border-top-left-radius:var(--rounded-btn, .5rem);border-top-right-radius:var(--rounded-btn, .5rem);border-bottom-left-radius:0;border-bottom-right-radius:0}.btn-group.btn-group-vertical .btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:var(--rounded-btn, .5rem);border-bottom-right-radius:var(--rounded-btn, .5rem)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0px;right:0px;bottom:0px;left:0px}.top-0{top:0px}.right-0{right:0px}.bottom-2{bottom:.5rem}.right-2{right:.5rem}.top-12{top:3rem}.top-11{top:2.75rem}.z-50{z-index:50}.z-\[60\]{z-index:60}.z-30{z-index:30}.z-10{z-index:10}.z-20{z-index:20}.col-span-4{grid-column:span 4 / span 4}.col-span-2{grid-column:span 2 / span 2}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.my-0\.5{margin-top:.125rem;margin-bottom:.125rem}.my-0{margin-top:0;margin-bottom:0}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.mr-1{margin-right:.25rem}.ml-2{margin-left:.5rem}.ml-10{margin-left:2.5rem}.mr-2{margin-right:.5rem}.mb-4{margin-bottom:1rem}.mb-2{margin-bottom:.5rem}.mt-2{margin-top:.5rem}.ml-3{margin-left:.75rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.mr-4{margin-right:1rem}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-full{height:100%}.h-6{height:1.5rem}.h-8{height:2rem}.h-\[90vh\]{height:90vh}.h-3{height:.75rem}.max-h-72{max-height:18rem}.min-h-\[10rem\]{min-height:10rem}.w-full{width:100%}.w-8{width:2rem}.w-48{width:12rem}.w-3{width:.75rem}.min-w-max{min-width:-moz-max-content;min-width:max-content}.max-w-3xl{max-width:48rem}.max-w-xl{max-width:36rem}.max-w-md{max-width:28rem}.max-w-lg{max-width:32rem}.flex-1{flex:1 1 0%}.flex-none{flex:none}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.animate-\[pulse_0\.5s_cubic-bezier\(0\.4\,0\,0\.6\,1\)_1\]{animation:pulse .5s cubic-bezier(.4,0,.6,1) 1}@keyframes pulse{50%{opacity:.5}}.animate-\[pulse_1\.25s_cubic-bezier\(0\.4\,0\,0\.6\,1\)_infinite\]{animation:pulse 1.25s cubic-bezier(.4,0,.6,1) infinite}@keyframes ping{75%,to{transform:scale(2);opacity:0}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.resize{resize:both}.grid-cols-\[max-content\,auto\,max-content\,auto\]{grid-template-columns:max-content auto max-content auto}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-3{gap:.75rem}.gap-x-5{-moz-column-gap:1.25rem;column-gap:1.25rem}.overflow-auto{overflow:auto}.overscroll-contain{overscroll-behavior:contain}.whitespace-pre-wrap{white-space:pre-wrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-2{border-width:2px}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-primary{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity))}.border-accent-focus{--tw-border-opacity: 1;border-color:hsl(var(--af, var(--a)) / var(--tw-border-opacity))}.bg-base-200{--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity))}.bg-base-100{--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity))}.bg-primary{--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity))}.bg-black\/\[\.3\]{background-color:#0000004d}.fill-blue-600{fill:#2563eb}.p-2{padding:.5rem}.p-1{padding:.25rem}.p-4{padding:1rem}.px-4{padding-left:1rem;padding-right:1rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-8{padding-top:2rem;padding-bottom:2rem}.py-4{padding-top:1rem;padding-bottom:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.pb-2{padding-bottom:.5rem}.pr-8{padding-right:2rem}.pl-4{padding-left:1rem}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-xs{font-size:.75rem;line-height:1rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-green-700{--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity))}.text-gray-200{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.opacity-50{opacity:.5}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}@font-face{font-family:Ackaisyo;src:local(""),url(https://gsm.beangate.us/ackaisyo.ttf) format("truetype");font-display:swap}@font-face{font-family:CineCaption226;src:local(""),url(https://gsm.beangate.us/cinecaption226.ttf) format("truetype");font-display:swap}body,html{margin:0;display:flex;flex:1;min-height:100%;overflow:auto}.hover\:text-primary:hover{--tw-text-opacity: 1;color:hsl(var(--p) / var(--tw-text-opacity))}@media (prefers-color-scheme: dark){.dark\:text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}}@media (max-width: 800px){.max-\[800px\]\:w-\[90vw\]{width:90vw}}@media (max-width: 600px){.max-\[600px\]\:flex-wrap{flex-wrap:wrap}.max-\[600px\]\:gap-y-5{row-gap:1.25rem}}@media (min-width: 600px){.min-\[600px\]\:justify-between{justify-content:space-between}}@media (min-width: 640px){.sm\:mr-2{margin-right:.5rem}.sm\:block{display:block}.sm\:hidden{display:none}.sm\:text-base{font-size:1rem;line-height:1.5rem}}@media (min-width: 768px){.md\:mr-2{margin-right:.5rem}.md\:items-center{align-items:center}}@media (min-width: 800px){.min-\[800px\]\:grid{display:grid}}p.svelte-i377rk.svelte-i377rk:focus-visible{outline:none}.multi-line-checkbox.svelte-i377rk.svelte-i377rk{transform:scale(1.5);margin-right:10px;background-color:#0ff!important;border:4px solid #00ffff}.textline-buttons.svelte-i377rk>button.svelte-i377rk{background-color:#1a73e8;color:#fff;border:none;padding:8px 15px;font-size:14px;cursor:pointer;transition:background-color .3s;border-radius:5px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.textline-buttons.svelte-i377rk>button.svelte-i377rk:hover{background-color:#1669c1;cursor:pointer}.textline-buttons.svelte-i377rk.svelte-i377rk{margin-left:auto;display:flex;gap:10px}.textline2.svelte-i377rk.svelte-i377rk{margin:15px 0;padding:15px;display:flex;align-items:center;gap:15px}.unselectable.svelte-i377rk.svelte-i377rk,.unselectable.svelte-i377rk .svelte-i377rk{user-select:none!important;-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important}.timer.svelte-1efsh80{transition:.1s filter linear}.blur.svelte-1efsh80:hover{filter:blur(0)}.blur.svelte-1efsh80:not(:hover){filter:blur(.25rem)}
|
42
|
+
*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root,[data-theme]{background-color:hsla(var(--b1) / var(--tw-bg-opacity, 1));color:hsla(var(--bc) / var(--tw-text-opacity, 1))}html{-webkit-tap-highlight-color:transparent}:root{color-scheme:light;--pf: 139 16% 34%;--sf: 97 37% 75%;--af: 0 68% 75%;--nf: 0 4% 28%;--b2: 0 4% 82%;--b3: 0 4% 74%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--pc: 139 100% 89%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 139 16% 43%;--s: 97 37% 93%;--sc: 96 32% 15%;--a: 0 68% 94%;--ac: 0 22% 16%;--n: 0 4% 35%;--nc: 0 4% 91%;--b1: 0 4% 91%;--bc: 0 3% 6%}[data-theme=garden]{color-scheme:light;--pf: 139 16% 34%;--sf: 97 37% 75%;--af: 0 68% 75%;--nf: 0 4% 28%;--b2: 0 4% 82%;--b3: 0 4% 74%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--pc: 139 100% 89%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 139 16% 43%;--s: 97 37% 93%;--sc: 96 32% 15%;--a: 0 68% 94%;--ac: 0 22% 16%;--n: 0 4% 35%;--nc: 0 4% 91%;--b1: 0 4% 91%;--bc: 0 3% 6%}[data-theme=business]{color-scheme:dark;--pf: 210 64% 24%;--sf: 200 13% 44%;--af: 13 80% 48%;--nf: 213 14% 13%;--b2: 0 0% 11%;--b3: 0 0% 10%;--bc: 0 0% 83%;--pc: 210 100% 86%;--sc: 200 100% 11%;--ac: 13 100% 12%;--nc: 213 28% 83%;--inc: 199 100% 88%;--suc: 144 100% 11%;--wac: 39 100% 12%;--erc: 6 100% 89%;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 210 64% 31%;--s: 200 13% 55%;--a: 13 80% 60%;--n: 213 14% 16%;--b1: 0 0% 13%;--in: 199 100% 42%;--su: 144 31% 56%;--wa: 39 64% 60%;--er: 6 56% 43%;--rounded-box: .25rem;--rounded-btn: .125rem;--rounded-badge: .125rem}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.alert{display:flex;width:100%;flex-direction:column;align-items:center;justify-content:space-between;gap:1rem;--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));padding:1rem;border-radius:var(--rounded-box, 1rem)}.alert>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}@media (min-width: 768px){.alert{flex-direction:row}.alert>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}}.alert>:where(*){display:flex;align-items:center;gap:.5rem}.avatar.placeholder>div{display:flex;align-items:center;justify-content:center}.btn{display:inline-flex;flex-shrink:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-wrap:wrap;align-items:center;justify-content:center;border-color:transparent;border-color:hsl(var(--n) / var(--tw-border-opacity));text-align:center;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);border-radius:var(--rounded-btn, .5rem);height:3rem;padding-left:1rem;padding-right:1rem;font-size:.875rem;line-height:1.25rem;line-height:1em;min-height:3rem;font-weight:600;text-transform:uppercase;text-transform:var(--btn-text-case, uppercase);text-decoration-line:none;border-width:var(--border-btn, 1px);animation:button-pop var(--animation-btn, .25s) ease-out;--tw-border-opacity: 1;--tw-bg-opacity: 1;background-color:hsl(var(--n) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--nc) / var(--tw-text-opacity))}.btn-disabled,.btn[disabled],.btn.loading,.btn.loading:hover{pointer-events:none}.btn.loading:before{margin-right:.5rem;height:1rem;width:1rem;border-radius:9999px;border-width:2px;animation:spin 2s linear infinite;content:"";border-top-color:transparent;border-left-color:transparent;border-bottom-color:currentColor;border-right-color:currentColor}@media (prefers-reduced-motion: reduce){.btn.loading:before{animation:spin 10s linear infinite}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.btn-group>input[type=radio].btn{-webkit-appearance:none;-moz-appearance:none;appearance:none}.btn-group>input[type=radio].btn:before{content:attr(data-title)}.checkbox{flex-shrink:0;--chkbg: var(--bc);--chkfg: var(--b1);height:1.5rem;width:1.5rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: .2;border-radius:var(--rounded-btn, .5rem)}.label{display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;justify-content:space-between;padding:.5rem .25rem}.input{flex-shrink:1;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);height:3rem;padding-left:1rem;padding-right:1rem;font-size:1rem;line-height:2;line-height:1.5rem;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: 0;--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));border-radius:var(--rounded-btn, .5rem)}.input-group>.input{isolation:isolate}.input-group>*,.input-group>.input,.input-group>.select{border-radius:0}.link{cursor:pointer;text-decoration-line:underline}.menu>:where(li.disabled > *:not(ul):focus){cursor:auto}.range{height:1.5rem;width:100%;cursor:pointer;-moz-appearance:none;appearance:none;-webkit-appearance:none;--range-shdw: var(--bc);overflow:hidden;background-color:transparent;border-radius:var(--rounded-box, 1rem)}.range:focus{outline:none}.select{display:inline-flex;flex-shrink:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:3rem;padding-left:1rem;padding-right:2.5rem;font-size:.875rem;line-height:1.25rem;line-height:2;min-height:3rem;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: 0;--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));font-weight:600;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);border-radius:var(--rounded-btn, .5rem);background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - 20px) calc(1px + 50%),calc(100% - 16px) calc(1px + 50%);background-size:4px 4px,4px 4px;background-repeat:no-repeat}.select[multiple]{height:auto}.stats{display:inline-grid;--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--bc) / var(--tw-text-opacity));border-radius:var(--rounded-box, 1rem)}:where(.stats){grid-auto-flow:column;overflow-x:auto}.swap{position:relative;display:inline-grid;-webkit-user-select:none;-moz-user-select:none;user-select:none;place-content:center;cursor:pointer}.swap>*{grid-column-start:1;grid-row-start:1;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-property:transform,opacity}.swap input{-webkit-appearance:none;-moz-appearance:none;appearance:none}.swap .swap-on,.swap .swap-indeterminate,.swap input:indeterminate~.swap-on{opacity:0}.swap input:checked~.swap-off,.swap.swap-active .swap-off,.swap input:indeterminate~.swap-off{opacity:0}.swap input:checked~.swap-on,.swap-active .swap-on,.swap input:indeterminate~.swap-indeterminate{opacity:1}.textarea{flex-shrink:1;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);padding:.5rem 1rem;font-size:.875rem;line-height:1.25rem;line-height:2;min-height:3rem;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: 0;--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));border-radius:var(--rounded-btn, .5rem)}.alert-info{--tw-bg-opacity: 1;background-color:hsl(var(--in) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--inc, var(--nc)) / var(--tw-text-opacity))}.alert-error{--tw-bg-opacity: 1;background-color:hsl(var(--er) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--erc, var(--nc)) / var(--tw-text-opacity))}.btn-outline.btn-primary .badge{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.btn-outline .badge.outline{--tw-border-opacity: 1;border-color:hsl(var(--nf, var(--n)) / var(--tw-border-opacity));background-color:transparent}.btn-outline.btn-primary .badge-outline{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity));background-color:transparent;--tw-text-opacity: 1;color:hsl(var(--p) / var(--tw-text-opacity))}.btn-outline:hover .badge.outline{--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity));--tw-text-opacity: 1;color:hsl(var(--nc) / var(--tw-text-opacity))}.btn-outline.btn-primary:hover .badge{--tw-border-opacity: 1;border-color:hsl(var(--pc) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--pc) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--p) / var(--tw-text-opacity))}.btn-outline.btn-primary:hover .badge.outline{--tw-border-opacity: 1;border-color:hsl(var(--pc) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--pf, var(--p)) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.btn-outline.btn-secondary:hover .badge.outline{--tw-border-opacity: 1;border-color:hsl(var(--sc) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--sf, var(--s)) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--sc) / var(--tw-text-opacity))}.btn-outline.btn-accent:hover .badge.outline{--tw-border-opacity: 1;border-color:hsl(var(--ac) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--af, var(--a)) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--ac) / var(--tw-text-opacity))}.btm-nav>*.disabled,.btm-nav>*.disabled:hover,.btm-nav>*[disabled],.btm-nav>*[disabled]:hover{pointer-events:none;--tw-border-opacity: 0;background-color:hsl(var(--n) / var(--tw-bg-opacity));--tw-bg-opacity: .1;color:hsl(var(--bc) / var(--tw-text-opacity));--tw-text-opacity: .2}.btm-nav>* .label{font-size:1rem;line-height:1.5rem}.btn:active:hover,.btn:active:focus{animation:none;transform:scale(var(--btn-focus-scale, .95))}.btn:hover,.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--nf, var(--n)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--nf, var(--n)) / var(--tw-bg-opacity))}.btn:focus-visible{outline:2px solid hsl(var(--nf));outline-offset:2px}.btn-primary{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.btn-primary:hover,.btn-primary.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--pf, var(--p)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--pf, var(--p)) / var(--tw-bg-opacity))}.btn-primary:focus-visible{outline:2px solid hsl(var(--p))}.btn.glass:hover,.btn.glass.btn-active{--glass-opacity: 25%;--glass-border-opacity: 15%}.btn.glass:focus-visible{outline:2px solid currentColor}.btn-ghost{border-width:1px;border-color:transparent;background-color:transparent;color:currentColor}.btn-ghost:hover,.btn-ghost.btn-active{--tw-border-opacity: 0;background-color:hsl(var(--bc) / var(--tw-bg-opacity));--tw-bg-opacity: .2}.btn-ghost:focus-visible{outline:2px solid currentColor}.btn-outline.btn-primary{--tw-text-opacity: 1;color:hsl(var(--p) / var(--tw-text-opacity))}.btn-outline.btn-primary:hover,.btn-outline.btn-primary.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--pf, var(--p)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--pf, var(--p)) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.btn-disabled,.btn-disabled:hover,.btn[disabled],.btn[disabled]:hover{--tw-border-opacity: 0;background-color:hsl(var(--n) / var(--tw-bg-opacity));--tw-bg-opacity: .2;color:hsl(var(--bc) / var(--tw-text-opacity));--tw-text-opacity: .2}.btn.loading.btn-square:before,.btn.loading.btn-circle:before{margin-right:0}.btn.loading.btn-xl:before,.btn.loading.btn-lg:before{height:1.25rem;width:1.25rem}.btn.loading.btn-sm:before,.btn.loading.btn-xs:before{height:.75rem;width:.75rem}.btn-group>input[type=radio]:checked.btn,.btn-group>.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.btn-group>input[type=radio]:checked.btn:focus-visible,.btn-group>.btn-active:focus-visible{outline:2px solid hsl(var(--p))}@keyframes button-pop{0%{transform:scale(var(--btn-focus-scale, .95))}40%{transform:scale(1.02)}to{transform:scale(1)}}.checkbox:focus-visible{outline:2px solid hsl(var(--bc));outline-offset:2px}.checkbox:checked,.checkbox[checked=true],.checkbox[aria-checked=true]{--tw-bg-opacity: 1;background-color:hsl(var(--bc) / var(--tw-bg-opacity));background-repeat:no-repeat;animation:checkmark var(--animation-input, .2s) ease-in-out;background-image:linear-gradient(-45deg,transparent 65%,hsl(var(--chkbg)) 65.99%),linear-gradient(45deg,transparent 75%,hsl(var(--chkbg)) 75.99%),linear-gradient(-45deg,hsl(var(--chkbg)) 40%,transparent 40.99%),linear-gradient(45deg,hsl(var(--chkbg)) 30%,hsl(var(--chkfg)) 30.99%,hsl(var(--chkfg)) 40%,transparent 40.99%),linear-gradient(-45deg,hsl(var(--chkfg)) 50%,hsl(var(--chkbg)) 50.99%)}.checkbox:indeterminate{--tw-bg-opacity: 1;background-color:hsl(var(--bc) / var(--tw-bg-opacity));background-repeat:no-repeat;animation:checkmark var(--animation-input, .2s) ease-in-out;background-image:linear-gradient(90deg,transparent 80%,hsl(var(--chkbg)) 80%),linear-gradient(-90deg,transparent 80%,hsl(var(--chkbg)) 80%),linear-gradient(0deg,hsl(var(--chkbg)) 43%,hsl(var(--chkfg)) 43%,hsl(var(--chkfg)) 57%,hsl(var(--chkbg)) 57%)}.checkbox-primary{--chkbg: var(--p);--chkfg: var(--pc);--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity))}.checkbox-primary:hover{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity))}.checkbox-primary:focus-visible{outline:2px solid hsl(var(--p))}.checkbox-primary:checked,.checkbox-primary[checked=true],.checkbox-primary[aria-checked=true]{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.checkbox:disabled{cursor:not-allowed;border-color:transparent;--tw-bg-opacity: 1;background-color:hsl(var(--bc) / var(--tw-bg-opacity));opacity:.2}@keyframes checkmark{0%{background-position-y:5px}50%{background-position-y:-2px}to{background-position-y:0}}[dir=rtl] .checkbox:checked,[dir=rtl] .checkbox[checked=true],[dir=rtl] .checkbox[aria-checked=true]{background-image:linear-gradient(45deg,transparent 65%,hsl(var(--chkbg)) 65.99%),linear-gradient(-45deg,transparent 75%,hsl(var(--chkbg)) 75.99%),linear-gradient(45deg,hsl(var(--chkbg)) 40%,transparent 40.99%),linear-gradient(-45deg,hsl(var(--chkbg)) 30%,hsl(var(--chkfg)) 30.99%,hsl(var(--chkfg)) 40%,transparent 40.99%),linear-gradient(45deg,hsl(var(--chkfg)) 50%,hsl(var(--chkbg)) 50.99%)}.drawer-toggle:focus-visible~.drawer-content .drawer-button.btn-primary{outline:2px solid hsl(var(--p))}.drawer-toggle:focus-visible~.drawer-content .drawer-button.btn-ghost{outline:2px solid currentColor}.label-text{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:hsl(var(--bc) / var(--tw-text-opacity))}.label a:hover{--tw-text-opacity: 1;color:hsl(var(--bc) / var(--tw-text-opacity))}.input[list]::-webkit-calendar-picker-indicator{line-height:1em}.input-bordered{--tw-border-opacity: .2}.input:focus{outline:2px solid hsla(var(--bc) / .2);outline-offset:2px}.input-disabled,.input[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));--tw-text-opacity: .2}.input-disabled::-moz-placeholder,.input[disabled]::-moz-placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.input-disabled::placeholder,.input[disabled]::placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.link:focus{outline:2px solid transparent;outline-offset:2px}.link:focus-visible{outline:2px solid currentColor;outline-offset:2px}.menu li.disabled>*{-webkit-user-select:none;-moz-user-select:none;user-select:none;color:hsl(var(--bc) / var(--tw-text-opacity));--tw-text-opacity: .2}.menu li.disabled>*:hover{background-color:transparent}.mockup-phone .display{overflow:hidden;border-radius:40px;margin-top:-25px}@keyframes progress-loading{50%{left:107%}}@keyframes radiomark{0%{box-shadow:0 0 0 12px hsl(var(--b1)) inset,0 0 0 12px hsl(var(--b1)) inset}50%{box-shadow:0 0 0 3px hsl(var(--b1)) inset,0 0 0 3px hsl(var(--b1)) inset}to{box-shadow:0 0 0 4px hsl(var(--b1)) inset,0 0 0 4px hsl(var(--b1)) inset}}.range:focus-visible::-webkit-slider-thumb{--focus-shadow: 0 0 0 6px hsl(var(--b1)) inset, 0 0 0 2rem hsl(var(--range-shdw)) inset}.range:focus-visible::-moz-range-thumb{--focus-shadow: 0 0 0 6px hsl(var(--b1)) inset, 0 0 0 2rem hsl(var(--range-shdw)) inset}.range::-webkit-slider-runnable-track{height:.5rem;width:100%;border-radius:var(--rounded-box, 1rem);background-color:hsla(var(--bc) / .1)}.range::-moz-range-track{height:.5rem;width:100%;border-radius:var(--rounded-box, 1rem);background-color:hsla(var(--bc) / .1)}.range::-webkit-slider-thumb{background-color:hsl(var(--b1));position:relative;height:1.5rem;width:1.5rem;border-style:none;border-radius:var(--rounded-box, 1rem);appearance:none;-webkit-appearance:none;top:50%;color:hsl(var(--range-shdw));transform:translateY(-50%);--filler-size: 100rem;--filler-offset: .6rem;box-shadow:0 0 0 3px hsl(var(--range-shdw)) inset,var(--focus-shadow, 0 0),calc(var(--filler-size) * -1 - var(--filler-offset)) 0 0 var(--filler-size)}.range::-moz-range-thumb{background-color:hsl(var(--b1));position:relative;height:1.5rem;width:1.5rem;border-style:none;border-radius:var(--rounded-box, 1rem);top:50%;color:hsl(var(--range-shdw));--filler-size: 100rem;--filler-offset: .5rem;box-shadow:0 0 0 3px hsl(var(--range-shdw)) inset,var(--focus-shadow, 0 0),calc(var(--filler-size) * -1 - var(--filler-offset)) 0 0 var(--filler-size)}@keyframes rating-pop{0%{transform:translateY(-.125em)}40%{transform:translateY(-.125em)}to{transform:translateY(0)}}.select:focus{outline:2px solid hsla(var(--bc) / .2);outline-offset:2px}.select-disabled,.select[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));--tw-text-opacity: .2}.select-disabled::-moz-placeholder,.select[disabled]::-moz-placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.select-disabled::placeholder,.select[disabled]::placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.select-multiple,.select[multiple],.select[size].select:not([size="1"]){background-image:none;padding-right:1rem}:where(.stats)>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(1px * var(--tw-divide-x-reverse));border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)));--tw-divide-y-reverse: 0;border-top-width:calc(0px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(0px * var(--tw-divide-y-reverse))}.swap-rotate .swap-on,.swap-rotate .swap-indeterminate,.swap-rotate input:indeterminate~.swap-on{--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.swap-rotate input:checked~.swap-off,.swap-rotate.swap-active .swap-off,.swap-rotate input:indeterminate~.swap-off{--tw-rotate: -45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.swap-rotate input:checked~.swap-on,.swap-rotate.swap-active .swap-on,.swap-rotate input:indeterminate~.swap-indeterminate{--tw-rotate: 0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.swap-flip .swap-on,.swap-flip .swap-indeterminate,.swap-flip input:indeterminate~.swap-on{transform:rotateY(180deg);-webkit-backface-visibility:hidden;backface-visibility:hidden;opacity:1}.swap-flip input:checked~.swap-off,.swap-flip.swap-active .swap-off,.swap-flip input:indeterminate~.swap-off{transform:rotateY(-180deg);-webkit-backface-visibility:hidden;backface-visibility:hidden;opacity:1}.swap-flip input:checked~.swap-on,.swap-flip.swap-active .swap-on,.swap-flip input:indeterminate~.swap-indeterminate{transform:rotateY(0)}.textarea:focus{outline:2px solid hsla(var(--bc) / .2);outline-offset:2px}.textarea-disabled,.textarea[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));--tw-text-opacity: .2}.textarea-disabled::-moz-placeholder,.textarea[disabled]::-moz-placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.textarea-disabled::placeholder,.textarea[disabled]::placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}@keyframes toast-pop{0%{transform:scale(.9);opacity:0}to{transform:scale(1);opacity:1}}.btn-sm{height:2rem;padding-left:.75rem;padding-right:.75rem;min-height:2rem;font-size:.875rem}.btn-square:where(.btn-sm){height:2rem;width:2rem;padding:0}.btn-circle:where(.btn-sm){height:2rem;width:2rem;border-radius:9999px;padding:0}.btn-group .btn:not(:first-child):not(:last-child),.btn-group.btn-group-horizontal .btn:not(:first-child):not(:last-child){border-radius:0}.btn-group .btn:first-child:not(:last-child),.btn-group.btn-group-horizontal .btn:first-child:not(:last-child){margin-left:-1px;margin-top:-0px;border-top-left-radius:var(--rounded-btn, .5rem);border-top-right-radius:0;border-bottom-left-radius:var(--rounded-btn, .5rem);border-bottom-right-radius:0}.btn-group .btn:last-child:not(:first-child),.btn-group.btn-group-horizontal .btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:var(--rounded-btn, .5rem);border-bottom-left-radius:0;border-bottom-right-radius:var(--rounded-btn, .5rem)}.btn-group.btn-group-vertical .btn:first-child:not(:last-child){margin-left:-0px;margin-top:-1px;border-top-left-radius:var(--rounded-btn, .5rem);border-top-right-radius:var(--rounded-btn, .5rem);border-bottom-left-radius:0;border-bottom-right-radius:0}.btn-group.btn-group-vertical .btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:var(--rounded-btn, .5rem);border-bottom-right-radius:var(--rounded-btn, .5rem)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0px;right:0px;bottom:0px;left:0px}.top-0{top:0px}.right-0{right:0px}.bottom-2{bottom:.5rem}.right-2{right:.5rem}.top-12{top:3rem}.top-11{top:2.75rem}.z-50{z-index:50}.z-\[60\]{z-index:60}.z-30{z-index:30}.z-10{z-index:10}.z-20{z-index:20}.col-span-4{grid-column:span 4 / span 4}.col-span-2{grid-column:span 2 / span 2}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.my-0\.5{margin-top:.125rem;margin-bottom:.125rem}.my-0{margin-top:0;margin-bottom:0}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.mr-1{margin-right:.25rem}.ml-2{margin-left:.5rem}.mr-2{margin-right:.5rem}.mt-2{margin-top:.5rem}.ml-10{margin-left:2.5rem}.mb-4{margin-bottom:1rem}.mb-2{margin-bottom:.5rem}.ml-3{margin-left:.75rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.mr-4{margin-right:1rem}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-full{height:100%}.h-6{height:1.5rem}.h-8{height:2rem}.h-\[90vh\]{height:90vh}.h-3{height:.75rem}.max-h-72{max-height:18rem}.min-h-\[10rem\]{min-height:10rem}.w-full{width:100%}.w-8{width:2rem}.w-48{width:12rem}.w-3{width:.75rem}.min-w-max{min-width:-moz-max-content;min-width:max-content}.max-w-3xl{max-width:48rem}.max-w-xl{max-width:36rem}.max-w-md{max-width:28rem}.max-w-lg{max-width:32rem}.flex-1{flex:1 1 0%}.flex-none{flex:none}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.animate-\[pulse_0\.5s_cubic-bezier\(0\.4\,0\,0\.6\,1\)_1\]{animation:pulse .5s cubic-bezier(.4,0,.6,1) 1}@keyframes pulse{50%{opacity:.5}}.animate-\[pulse_1\.25s_cubic-bezier\(0\.4\,0\,0\.6\,1\)_infinite\]{animation:pulse 1.25s cubic-bezier(.4,0,.6,1) infinite}@keyframes ping{75%,to{transform:scale(2);opacity:0}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.resize{resize:both}.grid-cols-\[max-content\,auto\,max-content\,auto\]{grid-template-columns:max-content auto max-content auto}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-3{gap:.75rem}.gap-x-5{-moz-column-gap:1.25rem;column-gap:1.25rem}.overflow-auto{overflow:auto}.overscroll-contain{overscroll-behavior:contain}.whitespace-pre-wrap{white-space:pre-wrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-2{border-width:2px}.border-x-2{border-left-width:2px;border-right-width:2px}.border-y-2{border-top-width:2px;border-bottom-width:2px}.border-dashed{border-style:dashed}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-primary{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity))}.border-accent-focus{--tw-border-opacity: 1;border-color:hsl(var(--af, var(--a)) / var(--tw-border-opacity))}.bg-base-200{--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity))}.bg-base-100{--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity))}.bg-primary{--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity))}.bg-black\/\[\.3\]{background-color:#0000004d}.fill-blue-600{fill:#2563eb}.p-2{padding:.5rem}.p-1{padding:.25rem}.p-4{padding:1rem}.px-4{padding-left:1rem;padding-right:1rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-8{padding-top:2rem;padding-bottom:2rem}.py-4{padding-top:1rem;padding-bottom:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.pb-2{padding-bottom:.5rem}.pr-8{padding-right:2rem}.pl-4{padding-left:1rem}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-xs{font-size:.75rem;line-height:1rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-green-700{--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity))}.text-gray-200{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.opacity-50{opacity:.5}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}@font-face{font-family:Ackaisyo;src:local(""),url(https://gsm.beangate.us/ackaisyo.ttf) format("truetype");font-display:swap}@font-face{font-family:CineCaption226;src:local(""),url(https://gsm.beangate.us/cinecaption226.ttf) format("truetype");font-display:swap}body,html{margin:0;display:flex;flex:1;min-height:100%;overflow:auto}.hover\:text-primary:hover{--tw-text-opacity: 1;color:hsl(var(--p) / var(--tw-text-opacity))}@media (prefers-color-scheme: dark){.dark\:text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}}@media (max-width: 800px){.max-\[800px\]\:w-\[90vw\]{width:90vw}}@media (max-width: 600px){.max-\[600px\]\:flex-wrap{flex-wrap:wrap}.max-\[600px\]\:gap-y-5{row-gap:1.25rem}}@media (min-width: 600px){.min-\[600px\]\:justify-between{justify-content:space-between}}@media (min-width: 640px){.sm\:mr-2{margin-right:.5rem}.sm\:block{display:block}.sm\:hidden{display:none}.sm\:text-base{font-size:1rem;line-height:1.5rem}}@media (min-width: 768px){.md\:mr-2{margin-right:.5rem}.md\:items-center{align-items:center}}@media (min-width: 800px){.min-\[800px\]\:grid{display:grid}}p.svelte-i377rk.svelte-i377rk:focus-visible{outline:none}.multi-line-checkbox.svelte-i377rk.svelte-i377rk{transform:scale(1.5);margin-right:10px;background-color:#0ff!important;border:4px solid #00ffff}.textline-buttons.svelte-i377rk>button.svelte-i377rk{background-color:#1a73e8;color:#fff;border:none;padding:8px 15px;font-size:14px;cursor:pointer;transition:background-color .3s;border-radius:5px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.textline-buttons.svelte-i377rk>button.svelte-i377rk:hover{background-color:#1669c1;cursor:pointer}.textline-buttons.svelte-i377rk.svelte-i377rk{margin-left:auto;display:flex;gap:10px}.textline2.svelte-i377rk.svelte-i377rk{margin:15px 0;padding:15px;display:flex;align-items:center;gap:15px}.unselectable.svelte-i377rk.svelte-i377rk,.unselectable.svelte-i377rk .svelte-i377rk{user-select:none!important;-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important}.timer.svelte-1efsh80{transition:.1s filter linear}.blur.svelte-1efsh80:hover{filter:blur(0)}.blur.svelte-1efsh80:not(:hover){filter:blur(.25rem)}
|
43
43
|
|
44
44
|
</style>
|
45
45
|
</head>
|