accessify-widget 0.2.0 → 0.2.2

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.
package/dist/widget.js CHANGED
@@ -1,2 +1,2 @@
1
- var __defProp=Object.defineProperty,__typeError=e=>{throw TypeError(e)},__defNormalProp=(e,t,n)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__publicField=(e,t,n)=>__defNormalProp(e,"symbol"!=typeof t?t+"":t,n),__accessCheck=(e,t,n)=>t.has(e)||__typeError("Cannot "+n),__privateGet=(e,t,n)=>(__accessCheck(e,t,"read from private field"),n?n.call(e):t.get(e)),__privateAdd=(e,t,n)=>t.has(e)?__typeError("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),__privateSet=(e,t,n,a)=>(__accessCheck(e,t,"write to private field"),a?a.call(e,n):t.set(e,n),n),__privateMethod=(e,t,n)=>(__accessCheck(e,t,"access private method"),n);!function(){"use strict";var e,t,n,a,i,r,o,s,c,l,d,u,f,p,g,h,m,v,y,b,x,w,k,_,S,A,C,M,E,$,z,T,I,G,L,W,B,P,j,N,O,H,K,F,D;const q=globalThis.process?.env?.NODE_ENV,R=q&&!q.toLowerCase().startsWith("prod");var U=Array.isArray,V=Array.prototype.indexOf,Y=Array.prototype.includes,J=Array.from,Z=Object.defineProperty,X=Object.getOwnPropertyDescriptor,Q=Object.getOwnPropertyDescriptors,ee=Object.prototype,te=Array.prototype,ne=Object.getPrototypeOf,ae=Object.isExtensible;const ie=()=>{};function re(){var e,t;return{promise:new Promise((n,a)=>{e=n,t=a}),resolve:e,reject:t}}const oe=32,se=512,ce=1024,le=2048,de=4096,ue=8192,fe=16384,pe=32768,ge=1<<25,he=65536,me=1<<17,ve=1<<19,ye=1<<25,be=65536,xe=1<<21,we=1<<23,ke=Symbol("$state"),_e=Symbol("legacy props"),Se=Symbol(""),Ae=Symbol("proxy path"),Ce=new class extends Error{constructor(){super(...arguments),__publicField(this,"name","StaleReactionError"),__publicField(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};function Me(e,t,n){if(R){const a=new Error(`each_key_duplicate\n${n?`Keyed each block has duplicate key \`${n}\` at indexes ${e} and ${t}`:`Keyed each block has duplicate key at indexes ${e} and ${t}`}\nhttps://svelte.dev/e/each_key_duplicate`);throw a.name="Svelte error",a}throw new Error("https://svelte.dev/e/each_key_duplicate")}function Ee(e,t,n){if(R){const a=new Error(`each_key_volatile\nKeyed each block has key that is not idempotent — the key for item at index ${e} was \`${t}\` but is now \`${n}\`. Keys must be the same each time for a given item\nhttps://svelte.dev/e/each_key_volatile`);throw a.name="Svelte error",a}throw new Error("https://svelte.dev/e/each_key_volatile")}const $e=Symbol(),ze=Symbol("filename"),Te="http://www.w3.org/1999/xhtml";var Ie="font-weight: bold",Ge="font-weight: normal";function Le(e){R?console.warn(`%c[svelte] state_proxy_equality_mismatch\n%cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${e}\` will produce unexpected results\nhttps://svelte.dev/e/state_proxy_equality_mismatch`,Ie,Ge):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}function We(e){return e===this.v}function Be(e){return n=this.v,!((t=e)!=t?n==n:t!==n||null!==t&&"object"==typeof t||"function"==typeof t);var t,n}function Pe(e,t){return e.label=t,je(e.v,t),e}function je(e,t){return e?.[Ae]?.(t),e}function Ne(e,t){if(!R)throw new Error("invariant(...) was not guarded by if (DEV)");e||function(e){if(R){const t=new Error(`invariant_violation\nAn invariant violation occurred, meaning Svelte's internal assumptions were flawed. This is a bug in Svelte, not your app — please open an issue at https://github.com/sveltejs/svelte, citing the following message: "${e}"\nhttps://svelte.dev/e/invariant_violation`);throw t.name="Svelte error",t}throw new Error("https://svelte.dev/e/invariant_violation")}(t)}let Oe=null;function He(e){Oe=e}let Ke=null;function Fe(e){Ke=e}let De=null;function qe(e){De=e}function Re(e,t=!1,n){Oe={p:Oe,i:!1,c:null,e:null,s:e,x:null,r:On,l:null},R&&(Oe.function=n,De=n)}function Ue(e){var t=Oe,n=t.e;if(null!==n)for(var a of(t.e=null,n))bn(a);return void 0!==e&&(t.x=e),t.i=!0,Oe=t.p,R&&(De=Oe?.function??null),e??{}}let Ve=[];function Ye(e){if(0===Ve.length){var t=Ve;queueMicrotask(()=>{t===Ve&&function(){var e=Ve;Ve=[],function(e){for(var t=0;t<e.length;t++)e[t]()}(e)}()})}Ve.push(e)}const Je=new WeakMap;function Ze(e){var t=On;if(null===t)return Pn.f|=we,e;if(R&&e instanceof Error&&!Je.has(e)&&Je.set(e,function(e,t){const n=X(e,"message");if(!n||n.configurable){for(var a=an?" ":"\t",i=`\n${a}in ${t.fn?.name||"<unknown>"}`,r=t.ctx;null!==r;)i+=`\n${a}in ${r.function?.[ze].split("/").pop()}`,r=r.p;return{message:e.message+`\n${i}\n`,stack:e.stack?.split("\n").filter(e=>!e.includes("svelte/src/internal")).join("\n")}}}(e,t)),0===(t.f&pe)&&!(4&t.f))throw R&&!t.parent&&e instanceof Error&&Qe(e),e;Xe(e,t)}function Xe(e,t){for(;null!==t;){if(128&t.f){if(0===(t.f&pe))throw e;try{return void t.b.error(e)}catch(n){e=n}}t=t.parent}throw R&&e instanceof Error&&Qe(e),e}function Qe(e){const t=Je.get(e);t&&(Z(e,"message",{value:t.message}),Z(e,"stack",{value:t.stack}))}const et=-7169;function tt(e,t){e.f=e.f&et|t}function nt(e){tt(e,0!==(e.f&se)||null===e.deps?ce:de)}function at(e){if(null!==e)for(const t of e)2&t.f&&0!==(t.f&be)&&(t.f^=be,at(t.deps))}function it(e,t,n){0!==(e.f&le)?t.add(e):0!==(e.f&de)&&n.add(e),at(e.deps),tt(e,ce)}let rt=!1;const ot=new Set;let st=null,ct=null,lt=null,dt=!1,ut=null,ft=null;var pt=0,gt=R?new Set:null;let ht=1;const mt=class u{constructor(){__privateAdd(this,d),__publicField(this,"id",ht++),__publicField(this,"current",new Map),__publicField(this,"previous",new Map),__privateAdd(this,e,new Set),__privateAdd(this,t,new Set),__privateAdd(this,n,0),__privateAdd(this,a,0),__privateAdd(this,i,null),__privateAdd(this,r,[]),__privateAdd(this,o,new Set),__privateAdd(this,s,new Set),__privateAdd(this,c,new Map),__publicField(this,"is_fork",!1),__privateAdd(this,l,!1)}skip_effect(e){__privateGet(this,c).has(e)||__privateGet(this,c).set(e,{d:[],m:[]})}unskip_effect(e){var t=__privateGet(this,c).get(e);if(t){for(var n of(__privateGet(this,c).delete(e),t.d))tt(n,le),this.schedule(n);for(n of t.m)tt(n,de),this.schedule(n)}}capture(e,t){t===$e||this.previous.has(e)||this.previous.set(e,t),0===(e.f&we)&&(this.current.set(e,e.v),ct?.set(e,e.v))}activate(){st=this}deactivate(){st=null,ct=null}flush(){var e=R?new Set:null;try{dt=!0,st=this,__privateMethod(this,d,f).call(this)}finally{if(pt=0,lt=null,ut=null,ft=null,dt=!1,st=null,ct=null,Nt.clear(),R)for(const t of e)t.updated=null}}discard(){for(const e of __privateGet(this,t))e(this);__privateGet(this,t).clear()}increment(e){__privateSet(this,n,__privateGet(this,n)+1),e&&__privateSet(this,a,__privateGet(this,a)+1)}decrement(e,t){__privateSet(this,n,__privateGet(this,n)-1),e&&__privateSet(this,a,__privateGet(this,a)-1),__privateGet(this,l)||t||(__privateSet(this,l,!0),Ye(()=>{__privateSet(this,l,!1),this.flush()}))}transfer_effects(e,t){for(const n of e)__privateGet(this,o).add(n);for(const n of t)__privateGet(this,s).add(n);e.clear(),t.clear()}oncommit(t){__privateGet(this,e).add(t)}ondiscard(e){__privateGet(this,t).add(e)}settled(){return(__privateGet(this,i)??__privateSet(this,i,re())).promise}static ensure(){if(null===st){const e=st=new u;dt||(ot.add(st),Ye(()=>{st===e&&e.flush()}))}return st}apply(){ct=null}schedule(e){if(lt=e,e.b?.is_pending&&16777228&e.f&&0===(e.f&pe))e.b.defer_effect(e);else{for(var t=e;null!==t.parent;){var n=(t=t.parent).f;if(!(null===ut||t!==On||null!==Pn&&2&Pn.f))return;if(96&n){if(0===(n&ce))return;t.f^=ce}}__privateGet(this,r).push(t)}}};e=new WeakMap,t=new WeakMap,n=new WeakMap,a=new WeakMap,i=new WeakMap,r=new WeakMap,o=new WeakMap,s=new WeakMap,c=new WeakMap,l=new WeakMap,d=new WeakSet,u=function(){return this.is_fork||__privateGet(this,a)>0},f=function(){var t;if(pt++>1e3&&(ot.delete(this),function(){if(R){var e=new Map;for(const n of st.current.keys())for(const[a,i]of n.updated??[]){var t=e.get(a);t||e.set(a,t={error:i.error,count:0}),t.count+=i.count}for(const t of e.values())t.error&&console.error(t.error)}try{!function(){if(R){const e=new Error("effect_update_depth_exceeded\nMaximum update depth exceeded. This typically indicates that an effect reads and writes the same piece of state\nhttps://svelte.dev/e/effect_update_depth_exceeded");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}()}catch(n){R&&Z(n,"stack",{value:""}),Xe(n,lt)}}()),!__privateMethod(this,d,u).call(this)){for(const e of __privateGet(this,o))__privateGet(this,s).delete(e),tt(e,le),this.schedule(e);for(const e of __privateGet(this,s))tt(e,de),this.schedule(e)}const a=__privateGet(this,r);__privateSet(this,r,[]),this.apply();var l=ut=[],m=[],v=ft=[];for(const e of a)try{__privateMethod(this,d,p).call(this,e,l,m)}catch(x){throw St(e),x}if(st=null,v.length>0){var y=mt.ensure();for(const e of v)y.schedule(e)}if(ut=null,ft=null,__privateMethod(this,d,u).call(this)){__privateMethod(this,d,g).call(this,m),__privateMethod(this,d,g).call(this,l);for(const[e,t]of __privateGet(this,c))_t(e,t)}else{0===__privateGet(this,n)&&ot.delete(this),__privateGet(this,o).clear(),__privateGet(this,s).clear();for(const t of __privateGet(this,e))t(this);__privateGet(this,e).clear(),bt(m),bt(l),__privateGet(this,i)?.resolve()}var b=st;if(__privateGet(this,r).length>0){const e=b??(b=this);__privateGet(e,r).push(...__privateGet(this,r).filter(t=>!__privateGet(e,r).includes(t)))}if(null!==b){if(ot.add(b),R)for(const e of this.current.keys())gt.add(e);__privateMethod(t=b,d,f).call(t)}ot.has(this)||__privateMethod(this,d,h).call(this)},p=function(e,t,n){e.f^=ce;for(var a=e.first;null!==a;){var i=a.f,r=!!(96&i);if(!(r&&0!==(i&ce)||0!==(i&ue)||__privateGet(this,c).has(a))&&null!==a.fn){r?a.f^=ce:4&i?t.push(a):Xn(a)&&(!!(16&i)&&__privateGet(this,s).add(a),aa(a));var o=a.first;if(null!==o){a=o;continue}}for(;null!==a;){var l=a.next;if(null!==l){a=l;break}a=a.parent}}},g=function(e){for(var t=0;t<e.length;t+=1)it(e[t],__privateGet(this,o),__privateGet(this,s))},h=function(){var e;for(const l of ot){var t=l.id<this.id,n=[];for(const[e,a]of this.current){if(l.current.has(e)){if(!t||a===l.current.get(e))continue;l.current.set(e,a)}n.push(e)}if(0!==n.length){var a=[...l.current.keys()].filter(e=>!this.current.has(e));if(a.length>0){R&&Ne(0===__privateGet(l,r).length,"Batch has scheduled roots"),l.activate();var i=new Set,o=new Map;for(var s of n)xt(s,a,i,o);if(__privateGet(l,r).length>0){for(var c of(l.apply(),__privateGet(l,r)))__privateMethod(e=l,d,p).call(e,c,[],[]);__privateSet(l,r,[])}l.deactivate()}}}};let vt=mt,yt=null;function bt(e){var t=e.length;if(0!==t){for(var n=0;n<t;){var a=e[n++];if(!(24576&a.f)&&Xn(a)&&(yt=new Set,aa(a),null===a.deps&&null===a.first&&null===a.nodes&&null===a.teardown&&null===a.ac&&En(a),yt?.size>0)){Nt.clear();for(const e of yt){if(24576&e.f)continue;const t=[e];let n=e.parent;for(;null!==n;)yt.has(n)&&(yt.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){const n=t[e];24576&n.f||aa(n)}}yt.clear()}}yt=null}}function xt(e,t,n,a){if(!n.has(e)&&(n.add(e),null!==e.reactions))for(const i of e.reactions){const e=i.f;2&e?xt(i,t,n,a):4194320&e&&0===(e&le)&&wt(i,t,a)&&(tt(i,le),kt(i))}}function wt(e,t,n){const a=n.get(e);if(void 0!==a)return a;if(null!==e.deps)for(const i of e.deps){if(Y.call(t,i))return!0;if(2&i.f&&wt(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function kt(e){st.schedule(e)}function _t(e,t){if(0===(e.f&oe)||0===(e.f&ce)){0!==(e.f&le)?t.d.push(e):0!==(e.f&de)&&t.m.push(e),tt(e,ce);for(var n=e.first;null!==n;)_t(n,t),n=n.next}}function St(e){tt(e,ce);for(var t=e.first;null!==t;)St(t),t=t.next}class At{constructor(e,t,n,a){__privateAdd(this,I),__publicField(this,"parent"),__publicField(this,"is_pending",!1),__publicField(this,"transform_error"),__privateAdd(this,m),__privateAdd(this,v,null),__privateAdd(this,y),__privateAdd(this,b),__privateAdd(this,x),__privateAdd(this,w,null),__privateAdd(this,k,null),__privateAdd(this,_,null),__privateAdd(this,S,null),__privateAdd(this,A,0),__privateAdd(this,C,0),__privateAdd(this,M,!1),__privateAdd(this,E,new Set),__privateAdd(this,$,new Set),__privateAdd(this,z,null),__privateAdd(this,T,function(e){let t,n=0,a=Kt(0);return R&&Pe(a,"createSubscriber version"),()=>{mn()&&(ia(a),xn(()=>(0===n&&(t=sa(()=>e())),n+=1,()=>{Ye(()=>{n-=1,0===n&&(t?.(),t=void 0,Vt(a))})})))}}(()=>(__privateSet(this,z,Kt(__privateGet(this,A))),R&&Pe(__privateGet(this,z),"$effect.pending()"),()=>{__privateSet(this,z,null)}))),__privateSet(this,m,e),__privateSet(this,y,t),__privateSet(this,b,e=>{var t=On;t.b=this,t.f|=128,n(e)}),this.parent=On.b,this.transform_error=a??this.parent?.transform_error??(e=>e),__privateSet(this,x,kn(()=>{__privateMethod(this,I,G).call(this)},589824))}defer_effect(e){it(e,__privateGet(this,E),__privateGet(this,$))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!__privateGet(this,y).pending}update_pending_count(e,t){__privateMethod(this,I,B).call(this,e,t),__privateSet(this,A,__privateGet(this,A)+e),__privateGet(this,z)&&!__privateGet(this,M)&&(__privateSet(this,M,!0),Ye(()=>{__privateSet(this,M,!1),__privateGet(this,z)&&Rt(__privateGet(this,z),__privateGet(this,A))}))}get_effect_pending(){return __privateGet(this,T).call(this),ia(__privateGet(this,z))}error(e){var t=__privateGet(this,y).onerror;let n=__privateGet(this,y).failed;if(!t&&!n)throw e;__privateGet(this,w)&&(Cn(__privateGet(this,w)),__privateSet(this,w,null)),__privateGet(this,k)&&(Cn(__privateGet(this,k)),__privateSet(this,k,null)),__privateGet(this,_)&&(Cn(__privateGet(this,_)),__privateSet(this,_,null));var a=!1,i=!1;const r=()=>{a?R?console.warn("%c[svelte] svelte_boundary_reset_noop\n%cA `<svelte:boundary>` `reset` function only resets the boundary the first time it is called\nhttps://svelte.dev/e/svelte_boundary_reset_noop",Ie,Ge):console.warn("https://svelte.dev/e/svelte_boundary_reset_noop"):(a=!0,i&&function(){if(R){const e=new Error("svelte_boundary_reset_onerror\nA `<svelte:boundary>` `reset` function cannot be called while an error is still being handled\nhttps://svelte.dev/e/svelte_boundary_reset_onerror");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}(),null!==__privateGet(this,_)&&$n(__privateGet(this,_),()=>{__privateSet(this,_,null)}),__privateMethod(this,I,W).call(this,()=>{__privateMethod(this,I,G).call(this)}))},o=e=>{try{i=!0,t?.(e,r),i=!1}catch(a){Xe(a,__privateGet(this,x)&&__privateGet(this,x).parent)}n&&__privateSet(this,_,__privateMethod(this,I,W).call(this,()=>{try{return _n(()=>{var t=On;t.b=this,t.f|=128,n(__privateGet(this,m),()=>e,()=>r)})}catch(a){return Xe(a,__privateGet(this,x).parent),null}}))};Ye(()=>{var t;try{t=this.transform_error(e)}catch(n){return void Xe(n,__privateGet(this,x)&&__privateGet(this,x).parent)}null!==t&&"object"==typeof t&&"function"==typeof t.then?t.then(o,e=>Xe(e,__privateGet(this,x)&&__privateGet(this,x).parent)):o(t)})}}function Ct(e=!0){Hn(null),Nn(null),He(null),e&&st?.deactivate(),R&&Fe(null)}function Mt(){var e=On.b,t=st,n=e.is_rendered();return e.update_pending_count(1,t),t.increment(n),(a=!1)=>{e.update_pending_count(-1,t),t.decrement(n,a)}}m=new WeakMap,v=new WeakMap,y=new WeakMap,b=new WeakMap,x=new WeakMap,w=new WeakMap,k=new WeakMap,_=new WeakMap,S=new WeakMap,A=new WeakMap,C=new WeakMap,M=new WeakMap,E=new WeakMap,$=new WeakMap,z=new WeakMap,T=new WeakMap,I=new WeakSet,G=function(){try{if(this.is_pending=this.has_pending_snippet(),__privateSet(this,C,0),__privateSet(this,A,0),__privateSet(this,w,_n(()=>{__privateGet(this,b).call(this,__privateGet(this,m))})),__privateGet(this,C)>0){var e=__privateSet(this,S,document.createDocumentFragment());Gn(__privateGet(this,w),e);const t=__privateGet(this,y).pending;__privateSet(this,k,_n(()=>t(__privateGet(this,m))))}else __privateMethod(this,I,L).call(this,st)}catch(t){this.error(t)}},L=function(e){this.is_pending=!1,e.transfer_effects(__privateGet(this,E),__privateGet(this,$))},W=function(e){var t=On,n=Pn,a=Oe;Hn(__privateGet(this,x)),Nn(__privateGet(this,x)),He(__privateGet(this,x).ctx);try{return vt.ensure(),e()}catch(i){return Ze(i),null}finally{Hn(t),Nn(n),He(a)}},B=function(e,t){var n;this.has_pending_snippet()?(__privateSet(this,C,__privateGet(this,C)+e),0===__privateGet(this,C)&&(__privateMethod(this,I,L).call(this,t),__privateGet(this,k)&&$n(__privateGet(this,k),()=>{__privateSet(this,k,null)}),__privateGet(this,S)&&(__privateGet(this,m).before(__privateGet(this,S)),__privateSet(this,S,null)))):this.parent&&__privateMethod(n=this.parent,I,B).call(n,e,t)};const Et=new Set;function $t(e){var t=null!==Pn&&2&Pn.f?Pn:null;return null!==On&&(On.f|=ve),{ctx:Oe,deps:null,effects:null,equals:We,f:2050,fn:e,reactions:null,rv:0,v:$e,wv:0,parent:t??On,ac:null}}function zt(e,t,n){let a=On;null===a&&function(){if(R){const e=new Error("async_derived_orphan\nCannot create a `$derived(...)` with an `await` expression outside of an effect tree\nhttps://svelte.dev/e/async_derived_orphan");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/async_derived_orphan")}();var i=void 0,r=Kt($e);R&&(r.label=t);var o=!Pn,s=new Map;return function(e){hn(4718592,e)}(()=>{var t=On,n=re();i=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(Ct)}catch(u){n.reject(u),Ct()}var c=st;if(o){if(0!==(t.f&pe))var l=Mt();if(a.b.is_rendered())s.get(c)?.reject(Ce),s.delete(c);else{for(const e of s.values())e.reject(Ce);s.clear()}s.set(c,n)}const d=(e,n=void 0)=>{if(l&&l(n===Ce),n!==Ce&&0===(t.f&fe)){if(c.activate(),n)r.f|=we,Rt(r,n);else{0!==(r.f&we)&&(r.f^=we),Rt(r,e);for(const[e,t]of s){if(s.delete(e),e===c)break;t.reject(Ce)}}c.deactivate()}};n.promise.then(d,e=>d(null,e||"unknown"))}),vn(()=>{for(const e of s.values())e.reject(Ce)}),R&&(r.f|=4194304),new Promise(e=>{!function t(n){function a(){n===i?e(r):t(i)}n.then(a,a)}(i)})}function Tt(e){const t=$t(e);return Fn(t),t}function It(e){const t=$t(e);return t.equals=Be,t}function Gt(e){var t=e.effects;if(null!==t){e.effects=null;for(var n=0;n<t.length;n+=1)Cn(t[n])}}let Lt=[];function Wt(e){var t,n=On;if(Hn(function(e){for(var t=e.parent;null!==t;){if(!(2&t.f))return 0===(t.f&fe)?t:null;t=t.parent}return null}(e)),R){let a=jt;Ot(new Set);try{Y.call(Lt,e)&&function(){if(R){const e=new Error("derived_references_self\nA derived value cannot reference itself recursively\nhttps://svelte.dev/e/derived_references_self");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/derived_references_self")}(),Lt.push(e),e.f&=-65537,Gt(e),t=ea(e)}finally{Hn(n),Ot(a),Lt.pop()}}else try{e.f&=-65537,Gt(e),t=ea(e)}finally{Hn(n)}return t}function Bt(e){var t=e.v,n=Wt(e);e.equals(n)||(e.wv=Zn(),st?.is_fork&&null!==e.deps||(e.v=n,st?.capture(e,t),null!==e.deps))?Wn||(null!==ct?(mn()||st?.is_fork)&&ct.set(e,n):nt(e)):tt(e,ce)}function Pt(e){if(null!==e.effects)for(const t of e.effects)t.teardown&&aa(t)}let jt=new Set;const Nt=new Map;function Ot(e){jt=e}let Ht=!1;function Kt(e,t){return{f:0,v:e,reactions:null,equals:We,rv:0,wv:0}}function Ft(e,t){const n=Kt(e);return Fn(n),n}function Dt(e,t=!1,n=!0){const a=Kt(e);return t||(a.equals=Be),a}function qt(e,t,n=!1){null===Pn||jn&&0===(Pn.f&me)||!(4325394&Pn.f)||null!==Kn&&Y.call(Kn,e)||function(){if(R){const e=new Error("state_unsafe_mutation\nUpdating state inside `$derived(...)`, `$inspect(...)` or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/state_unsafe_mutation")}();let a=n?Zt(t):t;return R&&je(a,e.label),Rt(e,a,ft)}function Rt(e,t,n=null){if(!e.equals(t)){var a=e.v;Nt.set(e,Wn?t:a),e.v=t;var i=vt.ensure();if(i.capture(e,a),R){if(null!==On){e.updated??(e.updated=new Map);const t=(e.updated.get("")?.count??0)+1;if(e.updated.set("",{error:null,count:t}),t>5){const t=function(){const e=new Error,t=function(){const e=Error.stackTraceLimit;Error.stackTraceLimit=1/0;const t=(new Error).stack;if(Error.stackTraceLimit=e,!t)return[];const n=t.split("\n"),a=[];for(let i=0;i<n.length;i++){const e=n[i],t=e.replaceAll("\\","/");if("Error"!==e.trim()){if(e.includes("validate_each_keys"))return[];t.includes("svelte/src/internal")||t.includes("node_modules/.vite")||a.push(e)}}return a}();return 0===t.length?null:(t.unshift("\n"),Z(e,"stack",{value:t.join("\n")}),Z(e,"name",{value:"updated at"}),e)}();if(null!==t){let n=e.updated.get(t.stack);n||(n={error:t,count:0},e.updated.set(t.stack,n)),n.count++}}}null!==On&&(e.set_during_effect=!0)}if(2&e.f){const t=e;0!==(e.f&le)&&Wt(t),null===ct&&nt(t)}e.wv=Zn(),Yt(e,le,n),null===On||0===(On.f&ce)||96&On.f||(null===Rn?function(e){Rn=e}([e]):Rn.push(e)),!i.is_fork&&jt.size>0&&!Ht&&Ut()}return t}function Ut(){Ht=!1;for(const e of jt)0!==(e.f&ce)&&tt(e,de),Xn(e)&&aa(e);jt.clear()}function Vt(e){qt(e,e.v+1)}function Yt(e,t,n){var a=e.reactions;if(null!==a)for(var i=a.length,r=0;r<i;r++){var o=a[r],s=o.f;if(R&&0!==(s&me))jt.add(o);else{var c=0===(s&le);if(c&&tt(o,t),2&s){var l=o;ct?.delete(l),0===(s&be)&&(s&se&&(o.f|=be),Yt(l,de,n))}else if(c){var d=o;!!(16&s)&&null!==yt&&yt.add(d),null!==n?n.push(d):kt(d)}}}}const Jt=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function Zt(e){if("object"!=typeof e||null===e||ke in e)return e;const t=ne(e);if(t!==ee&&t!==te)return e;var n=new Map,a=U(e),i=Ft(0),r=Yn,o=e=>{if(Yn===r)return e();var t=Pn,n=Yn;Nn(null),Jn(r);var a=e();return Nn(t),Jn(n),a};a&&(n.set("length",Ft(e.length)),R&&(e=new Proxy(e,{get(e,t,n){var a=Reflect.get(e,t,n);return tn.has(t)?function(...e){Ht=!0;var t=a.apply(this,e);return Ut(),t}:a}})));var s="";let c=!1;function l(e){if(!c){c=!0,Pe(i,`${s=e} version`);for(const[e,t]of n)Pe(t,Xt(s,e));c=!1}}return new Proxy(e,{defineProperty(e,t,a){"value"in a&&!1!==a.configurable&&!1!==a.enumerable&&!1!==a.writable||function(){if(R){const e=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/state_descriptors_fixed")}();var i=n.get(t);return void 0===i?o(()=>{var e=Ft(a.value);return n.set(t,e),R&&"string"==typeof t&&Pe(e,Xt(s,t)),e}):qt(i,a.value,!0),!0},deleteProperty(e,t){var a=n.get(t);if(void 0===a){if(t in e){const e=o(()=>Ft($e));n.set(t,e),Vt(i),R&&Pe(e,Xt(s,t))}}else qt(a,$e),Vt(i);return!0},get(t,a,i){if(a===ke)return e;if(R&&a===Ae)return l;var r=n.get(a),c=a in t;if(void 0!==r||c&&!X(t,a)?.writable||(r=o(()=>{var e=Ft(Zt(c?t[a]:$e));return R&&Pe(e,Xt(s,a)),e}),n.set(a,r)),void 0!==r){var d=ia(r);return d===$e?void 0:d}return Reflect.get(t,a,i)},getOwnPropertyDescriptor(e,t){var a=Reflect.getOwnPropertyDescriptor(e,t);if(a&&"value"in a){var i=n.get(t);i&&(a.value=ia(i))}else if(void 0===a){var r=n.get(t),o=r?.v;if(void 0!==r&&o!==$e)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return a},has(e,t){if(t===ke)return!0;var a=n.get(t),i=void 0!==a&&a.v!==$e||Reflect.has(e,t);return!((void 0!==a||null!==On&&(!i||X(e,t)?.writable))&&(void 0===a&&(a=o(()=>{var n=Ft(i?Zt(e[t]):$e);return R&&Pe(n,Xt(s,t)),n}),n.set(t,a)),ia(a)===$e))&&i},set(e,t,r,c){var l=n.get(t),d=t in e;if(a&&"length"===t)for(var u=r;u<l.v;u+=1){var f=n.get(u+"");void 0!==f?qt(f,$e):u in e&&(f=o(()=>Ft($e)),n.set(u+"",f),R&&Pe(f,Xt(s,u)))}void 0===l?d&&!X(e,t)?.writable||(l=o(()=>Ft(void 0)),R&&Pe(l,Xt(s,t)),qt(l,Zt(r)),n.set(t,l)):(d=l.v!==$e,qt(l,o(()=>Zt(r))));var p=Reflect.getOwnPropertyDescriptor(e,t);if(p?.set&&p.set.call(c,r),!d){if(a&&"string"==typeof t){var g=n.get("length"),h=Number(t);Number.isInteger(h)&&h>=g.v&&qt(g,h+1)}Vt(i)}return!0},ownKeys(e){ia(i);var t=Reflect.ownKeys(e).filter(e=>{var t=n.get(e);return void 0===t||t.v!==$e});for(var[a,r]of n)r.v===$e||a in e||t.push(a);return t},setPrototypeOf(){!function(){if(R){const e=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/state_prototype_fixed")}()}})}function Xt(e,t){return"symbol"==typeof t?`${e}[Symbol(${t.description??""})]`:Jt.test(t)?`${e}.${t}`:/^\d+$/.test(t)?`${e}[${t}]`:`${e}['${t}']`}function Qt(e){try{if(null!==e&&"object"==typeof e&&ke in e)return e[ke]}catch{}return e}function en(e,t){return Object.is(Qt(e),Qt(t))}const tn=new Set(["copyWithin","fill","pop","push","reverse","shift","sort","splice","unshift"]);var nn,an,rn,on;function sn(e=""){return document.createTextNode(e)}function cn(e){return rn.call(e)}function ln(e){return on.call(e)}function dn(e,t){return cn(e)}function un(e,t=!1){var n=cn(e);return n instanceof Comment&&""===n.data?ln(n):n}function fn(e,t=1,n=!1){let a=e;for(;t--;)a=ln(a);return a}function pn(e,t,n){return document.createElementNS(t??Te,e,void 0)}function gn(e){var t=Pn,n=On;Nn(null),Hn(null);try{return e()}finally{Nn(t),Hn(n)}}function hn(e,t){var n=On;if(R)for(;null!==n&&0!==(n.f&me);)n=n.parent;null!==n&&0!==(n.f&ue)&&(e|=ue);var a={ctx:Oe,deps:null,nodes:null,f:e|le|se,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};R&&(a.component_function=De);var i=a;if(4&e)null!==ut?ut.push(a):vt.ensure().schedule(a);else if(null!==t){try{aa(a)}catch(r){throw Cn(a),r}null===i.deps&&null===i.teardown&&null===i.nodes&&i.first===i.last&&0===(i.f&ve)&&(i=i.first,16&e&&0!==(e&he)&&null!==i&&(i.f|=he))}return null!==i&&(i.parent=n,null!==n&&function(e,t){var n=t.last;null===n?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}(i,n),null!==Pn&&2&Pn.f&&!(64&e))&&(Pn.effects??(Pn.effects=[])).push(i),a}function mn(){return null!==Pn&&!jn}function vn(e){const t=hn(8,null);return tt(t,ce),t.teardown=e,t}function yn(e){var t;t="$effect",null===On&&(null===Pn&&function(e){if(R){const t=new Error(`effect_orphan\n\`${e}\` can only be used inside an effect (e.g. during component initialisation)\nhttps://svelte.dev/e/effect_orphan`);throw t.name="Svelte error",t}throw new Error("https://svelte.dev/e/effect_orphan")}(t),function(){if(R){const e=new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}()),Wn&&function(e){if(R){const t=new Error(`effect_in_teardown\n\`${e}\` cannot be used inside an effect cleanup function\nhttps://svelte.dev/e/effect_in_teardown`);throw t.name="Svelte error",t}throw new Error("https://svelte.dev/e/effect_in_teardown")}(t),R&&Z(e,"name",{value:"$effect"});var n=On.f;if(Pn||0===(n&oe)||0!==(n&pe))return bn(e);(Oe.e??(Oe.e=[])).push(e)}function bn(e){return hn(1048580,e)}function xn(e,t=0){return hn(8|t,e)}function wn(e,t=[],n=[],a=[]){!function(e,t,n,a){const i=$t;var r=e.filter(e=>!e.settled);if(0!==n.length||0!==r.length){var o=On,s=function(){var e=On,t=Pn,n=Oe,a=st;if(R)var i=Ke;return function(r=!0){Hn(e),Nn(t),He(n),r&&0===(e.f&fe)&&(a?.activate(),a?.apply()),R&&Fe(i)}}(),c=1===r.length?r[0].promise:r.length>1?Promise.all(r.map(e=>e.promise)):null;if(0!==n.length){var l=Mt();c?c.then(()=>{s(),u(),Ct()}):u()}else c.then(()=>d(t.map(i)))}else a(t.map(i));function d(e){s();try{a(e)}catch(t){0===(o.f&fe)&&Xe(t,o)}Ct()}function u(){Promise.all(n.map(e=>zt(e))).then(e=>d([...t.map(i),...e])).catch(e=>Xe(e,o)).finally(()=>l())}}(a,t,n,t=>{hn(8,()=>e(...t.map(ia)))})}function kn(e,t=0){var n=hn(16|t,e);return R&&(n.dev_stack=Ke),n}function _n(e){return hn(524320,e)}function Sn(e){var t=e.teardown;if(null!==t){const e=Wn,n=Pn;Bn(!0),Nn(null);try{t.call(null)}finally{Bn(e),Nn(n)}}}function An(e,t=!1){var n=e.first;for(e.first=e.last=null;null!==n;){const e=n.ac;null!==e&&gn(()=>{e.abort(Ce)});var a=n.next;64&n.f?n.parent=null:Cn(n,t),n=a}}function Cn(e,t=!0){var n=!1;(t||262144&e.f)&&null!==e.nodes&&null!==e.nodes.end&&(Mn(e.nodes.start,e.nodes.end),n=!0),tt(e,ge),An(e,t&&!n),na(e,0);var a=e.nodes&&e.nodes.t;if(null!==a)for(const r of a)r.stop();Sn(e),e.f^=ge,e.f|=fe;var i=e.parent;null!==i&&null!==i.first&&En(e),R&&(e.component_function=null),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Mn(e,t){for(;null!==e;){var n=e===t?null:ln(e);e.remove(),e=n}}function En(e){var t=e.parent,n=e.prev,a=e.next;null!==n&&(n.next=a),null!==a&&(a.prev=n),null!==t&&(t.first===e&&(t.first=a),t.last===e&&(t.last=n))}function $n(e,t,n=!0){var a=[];zn(e,a,!0);var i=()=>{n&&Cn(e),t&&t()},r=a.length;if(r>0){var o=()=>--r||i();for(var s of a)s.out(o)}else i()}function zn(e,t,n){if(0===(e.f&ue)){e.f^=ue;var a=e.nodes&&e.nodes.t;if(null!==a)for(const e of a)(e.is_global||n)&&t.push(e);for(var i=e.first;null!==i;){var r=i.next;zn(i,t,!!(0!==(i.f&he)||0!==(i.f&oe)&&16&e.f)&&n),i=r}}}function Tn(e){In(e,!0)}function In(e,t){if(0!==(e.f&ue)){e.f^=ue,0===(e.f&ce)&&(tt(e,le),vt.ensure().schedule(e));for(var n=e.first;null!==n;){var a=n.next;In(n,!(0===(n.f&he)&&0===(n.f&oe))&&t),n=a}var i=e.nodes&&e.nodes.t;if(null!==i)for(const e of i)(e.is_global||t)&&e.in()}}function Gn(e,t){if(e.nodes)for(var n=e.nodes.start,a=e.nodes.end;null!==n;){var i=n===a?null:ln(n);t.append(n),n=i}}let Ln=!1,Wn=!1;function Bn(e){Wn=e}let Pn=null,jn=!1;function Nn(e){Pn=e}let On=null;function Hn(e){On=e}let Kn=null;function Fn(e){null!==Pn&&(null===Kn?Kn=[e]:Kn.push(e))}let Dn=null,qn=0,Rn=null,Un=1,Vn=0,Yn=Vn;function Jn(e){Yn=e}function Zn(){return++Un}function Xn(e){var t=e.f;if(0!==(t&le))return!0;if(2&t&&(e.f&=-65537),0!==(t&de)){for(var n=e.deps,a=n.length,i=0;i<a;i++){var r=n[i];if(Xn(r)&&Bt(r),r.wv>e.wv)return!0}0!==(t&se)&&null===ct&&tt(e,ce)}return!1}function Qn(e,t,n=!0){var a=e.reactions;if(null!==a&&(null===Kn||!Y.call(Kn,e)))for(var i=0;i<a.length;i++){var r=a[i];2&r.f?Qn(r,t,!1):t===r&&(n?tt(r,le):0!==(r.f&ce)&&tt(r,de),kt(r))}}function ea(e){var t,n=Dn,a=qn,i=Rn,r=Pn,o=Kn,s=Oe,c=jn,l=Yn;Dn=null,qn=0,Rn=null,Pn=96&e.f?null:e,Kn=null,He(e.ctx),jn=!1,Yn=++Vn,null!==e.ac&&(gn(()=>{e.ac.abort(Ce)}),e.ac=null);try{e.f|=xe;var d=(0,e.fn)();e.f|=pe;var u=e.deps,f=st?.is_fork;if(null!==Dn){var p;if(f||na(e,qn),null!==u&&qn>0)for(u.length=qn+Dn.length,p=0;p<Dn.length;p++)u[qn+p]=Dn[p];else e.deps=u=Dn;if(mn()&&0!==(e.f&se))for(p=qn;p<u.length;p++)((t=u[p]).reactions??(t.reactions=[])).push(e)}else!f&&null!==u&&qn<u.length&&(na(e,qn),u.length=qn);if(!(null===Rn||jn||null===u||6146&e.f))for(p=0;p<Rn.length;p++)Qn(Rn[p],e);if(null!==r&&r!==e){if(Vn++,null!==r.deps)for(let e=0;e<a;e+=1)r.deps[e].rv=Vn;if(null!==n)for(const e of n)e.rv=Vn;null!==Rn&&(null===i?i=Rn:i.push(...Rn))}return 0!==(e.f&we)&&(e.f^=we),d}catch(g){return Ze(g)}finally{e.f^=xe,Dn=n,qn=a,Rn=i,Pn=r,Kn=o,He(s),jn=c,Yn=l}}function ta(e,t){let n=t.reactions;if(null!==n){var a=V.call(n,e);if(-1!==a){var i=n.length-1;0===i?n=t.reactions=null:(n[a]=n[i],n.pop())}}if(null===n&&2&t.f&&(null===Dn||!Y.call(Dn,t))){var r=t;0!==(r.f&se)&&(r.f^=se,r.f&=-65537),nt(r),function(e){if(null!==e.effects)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(Ce),t.teardown=ie,t.ac=null,na(t,0),An(t))}(r),na(r,0)}}function na(e,t){var n=e.deps;if(null!==n)for(var a=t;a<n.length;a++)ta(e,n[a])}function aa(e){var t=e.f;if(0===(t&fe)){tt(e,ce);var n=On,a=Ln;if(On=e,Ln=!0,R){var i=De;qe(e.component_function);var r=Ke;Fe(e.dev_stack??Ke)}try{16777232&t?function(e){for(var t=e.first;null!==t;){var n=t.next;0===(t.f&oe)&&Cn(t),t=n}}(e):An(e),Sn(e);var o=ea(e);e.teardown="function"==typeof o?o:null,e.wv=Un}finally{Ln=a,On=n,R&&(qe(i),Fe(r))}}}function ia(e){var t=!!(2&e.f);if(null!==Pn&&!jn&&!(null!==On&&0!==(On.f&fe)||null!==Kn&&Y.call(Kn,e))){var n=Pn.deps;if(0!==(Pn.f&xe))e.rv<Vn&&(e.rv=Vn,null===Dn&&null!==n&&n[qn]===e?qn++:null===Dn?Dn=[e]:Dn.push(e));else{(Pn.deps??(Pn.deps=[])).push(e);var a=e.reactions;null===a?e.reactions=[Pn]:Y.call(a,Pn)||a.push(Pn)}}if(R&&Et.delete(e),Wn&&Nt.has(e))return Nt.get(e);if(t){var i=e;if(Wn){var r=i.v;return(0===(i.f&ce)&&null!==i.reactions||oa(i))&&(r=Wt(i)),Nt.set(i,r),r}var o=0===(i.f&se)&&!jn&&null!==Pn&&(Ln||0!==(Pn.f&se)),s=0===(i.f&pe);Xn(i)&&(o&&(i.f|=se),Bt(i)),o&&!s&&(Pt(i),ra(i))}if(ct?.has(e))return ct.get(e);if(0!==(e.f&we))throw e.v;return e.v}function ra(e){if(e.f|=se,null!==e.deps)for(const t of e.deps)(t.reactions??(t.reactions=[])).push(e),2&t.f&&0===(t.f&se)&&(Pt(t),ra(t))}function oa(e){if(e.v===$e)return!0;if(null===e.deps)return!1;for(const t of e.deps){if(Nt.has(t))return!0;if(2&t.f&&oa(t))return!0}return!1}function sa(e){var t=jn;try{return jn=!0,e()}finally{jn=t}}const ca=["touchstart","touchmove"];function la(e){return ca.includes(e)}const da=Symbol("events"),ua=new Set,fa=new Set;function pa(e,t,n){(t[da]??(t[da]={}))[e]=n}function ga(e){for(var t=0;t<e.length;t++)ua.add(e[t]);for(var n of fa)n(e)}let ha=null;function ma(e){var t=this,n=t.ownerDocument,a=e.type,i=e.composedPath?.()||[],r=i[0]||e.target;ha=e;var o=0,s=ha===e&&e[da];if(s){var c=i.indexOf(s);if(-1!==c&&(t===document||t===window))return void(e[da]=t);var l=i.indexOf(t);if(-1===l)return;c<=l&&(o=c)}if((r=i[o]||e.target)!==t){Z(e,"currentTarget",{configurable:!0,get:()=>r||n});var d=Pn,u=On;Nn(null),Hn(null);try{for(var f,p=[];null!==r;){var g=r.assignedSlot||r.parentNode||r.host||null;try{var h=r[da]?.[a];null==h||r.disabled&&e.target!==r||h.call(r,e)}catch(m){f?p.push(m):f=m}if(e.cancelBubble||g===t||null===g)break;r=g}if(f){for(let e of p)queueMicrotask(()=>{throw e});throw f}}finally{e[da]=t,delete e.currentTarget,Nn(d),Hn(u)}}}const va=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function ya(e,t){null===On.nodes&&(On.nodes={start:e,end:t,a:null,t:null})}function ba(e,t){var n,a=!!(1&t),i=!!(2&t),r=!e.startsWith("<!>");return()=>{var t,o;void 0===n&&(t=r?e:"<!>"+e,(o=pn("template")).innerHTML=function(e){return va?.createHTML(e)??e}(t.replaceAll("<!>","\x3c!----\x3e")),n=o.content,a||(n=cn(n)));var s=i||an?document.importNode(n,!0):n.cloneNode(!0);return a?ya(cn(s),s.lastChild):ya(s,s),s}}function xa(e,t){null!==e&&e.before(t)}function wa(e,t){var n=null==t?"":"object"==typeof t?`${t}`:t;n!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=n,e.nodeValue=`${n}`)}const ka=new Map;let _a=new WeakMap;class Sa{constructor(e,t=!0){__publicField(this,"anchor"),__privateAdd(this,P,new Map),__privateAdd(this,j,new Map),__privateAdd(this,N,new Map),__privateAdd(this,O,new Set),__privateAdd(this,H,!0),__privateAdd(this,K,e=>{if(__privateGet(this,P).has(e)){var t=__privateGet(this,P).get(e),n=__privateGet(this,j).get(t);if(n)Tn(n),__privateGet(this,O).delete(t);else{var a=__privateGet(this,N).get(t);a&&(__privateGet(this,j).set(t,a.effect),__privateGet(this,N).delete(t),a.fragment.lastChild.remove(),this.anchor.before(a.fragment),n=a.effect)}for(const[t,n]of __privateGet(this,P)){if(__privateGet(this,P).delete(t),t===e)break;const a=__privateGet(this,N).get(n);a&&(Cn(a.effect),__privateGet(this,N).delete(n))}for(const[e,a]of __privateGet(this,j)){if(e===t||__privateGet(this,O).has(e))continue;const i=()=>{if(Array.from(__privateGet(this,P).values()).includes(e)){var t=document.createDocumentFragment();Gn(a,t),t.append(sn()),__privateGet(this,N).set(e,{effect:a,fragment:t})}else Cn(a);__privateGet(this,O).delete(e),__privateGet(this,j).delete(e)};__privateGet(this,H)||!n?(__privateGet(this,O).add(e),$n(a,i,!1)):i()}}}),__privateAdd(this,F,e=>{__privateGet(this,P).delete(e);const t=Array.from(__privateGet(this,P).values());for(const[n,a]of __privateGet(this,N))t.includes(n)||(Cn(a.effect),__privateGet(this,N).delete(n))}),this.anchor=e,__privateSet(this,H,t)}ensure(e,t){var n=st;!t||__privateGet(this,j).has(e)||__privateGet(this,N).has(e)||__privateGet(this,j).set(e,_n(()=>t(this.anchor))),__privateGet(this,P).set(n,e),__privateGet(this,K).call(this,n)}}function Aa(e,t,n=!1){var a=new Sa(e);function i(e,t){a.ensure(e,t)}kn(()=>{var e=!1;t((t,n=0)=>{e=!0,i(n,t)}),e||i(-1,null)},n?he:0)}function Ca(e,t){return t}function Ma(e,t,n=!0){var a;if(e.pending.size>0){a=new Set;for(const t of e.pending.values())for(const n of t)a.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var r=t[i];a?.has(r)?(r.f|=ye,Gn(r,document.createDocumentFragment())):Cn(t[i],n)}}var Ea;function $a(e,t,n,a,i,r=null){var o=e,s=new Map;!(4&t)||(o=e.appendChild(sn()));var c,l=null,d=It(()=>{var e=n();return U(e)?e:null==e?[]:J(e)}),u=new Map,f=!0,p={effect:kn(()=>{for(var e=(c=ia(d)).length,g=new Set,h=st,m=0;m<e;m+=1){var v=c[m],y=a(v,m);if(R){var b=a(v,m);y!==b&&Ee(String(m),String(y),String(b))}var x=f?null:s.get(y);x?(x.v&&Rt(x.v,v),x.i&&Rt(x.i,m)):(x=Ta(s,f?o:Ea??(Ea=sn()),v,y,m,i,t,n),f||(x.e.f|=ye),s.set(y,x)),g.add(y)}0===e&&r&&!l&&(f?l=_n(()=>r(o)):(l=_n(()=>r(Ea??(Ea=sn())))).f|=ye),e>g.size&&(R?function(e,t){const n=new Map,a=e.length;for(let i=0;i<a;i++){const a=t(e[i],i);if(n.has(a)){const e=String(n.get(a)),t=String(i);let r=String(a);r.startsWith("[object ")&&(r=null),Me(e,t,r)}n.set(a,i)}}(c,a):Me("","","")),f||(u.set(h,g),function(e){0===(p.effect.f&fe)&&(p.pending.delete(e),p.fallback=l,function(e,t,n,a,i){var r,o,s,c,l,d=!!(8&a),u=t.length,f=e.items,p=za(e.effect.first),g=null,h=[],m=[];if(d)for(l=0;l<u;l+=1)s=i(t[l],l),0===((c=f.get(s).e).f&ye)&&(c.nodes?.a?.measure(),(o??(o=new Set)).add(c));for(l=0;l<u;l+=1){if(s=i(t[l],l),c=f.get(s).e,null!==e.outrogroups)for(const t of e.outrogroups)t.pending.delete(c),t.done.delete(c);if(0!==(c.f&ye)){if(c.f^=ye,c!==p){var v=g?g.next:p;c===e.effect.last&&(e.effect.last=c.prev),c.prev&&(c.prev.next=c.next),c.next&&(c.next.prev=c.prev),Ga(e,g,c),Ga(e,c,v),Ia(c,v,n),h=[],m=[],p=za((g=c).next);continue}Ia(c,null,n)}if(0!==(c.f&ue)&&(Tn(c),d&&(c.nodes?.a?.unfix(),(o??(o=new Set)).delete(c))),c!==p){if(void 0!==r&&r.has(c)){if(h.length<m.length){var y,b=m[0];g=b.prev;var x=h[0],w=h[h.length-1];for(y=0;y<h.length;y+=1)Ia(h[y],b,n);for(y=0;y<m.length;y+=1)r.delete(m[y]);Ga(e,x.prev,w.next),Ga(e,g,x),Ga(e,w,b),p=b,g=w,l-=1,h=[],m=[]}else r.delete(c),Ia(c,p,n),Ga(e,c.prev,c.next),Ga(e,c,null===g?e.effect.first:g.next),Ga(e,g,c),g=c;continue}for(h=[],m=[];null!==p&&p!==c;)(r??(r=new Set)).add(p),m.push(p),p=za(p.next);if(null===p)continue}0===(c.f&ye)&&h.push(c),g=c,p=za(c.next)}if(null!==e.outrogroups){for(const t of e.outrogroups)0===t.pending.size&&(Ma(e,J(t.done)),e.outrogroups?.delete(t));0===e.outrogroups.size&&(e.outrogroups=null)}if(null!==p||void 0!==r){var k=[];if(void 0!==r)for(c of r)0===(c.f&ue)&&k.push(c);for(;null!==p;)0===(p.f&ue)&&p!==e.fallback&&k.push(p),p=za(p.next);var _=k.length;if(_>0){var S=4&a&&0===u?n:null;if(d){for(l=0;l<_;l+=1)k[l].nodes?.a?.measure();for(l=0;l<_;l+=1)k[l].nodes?.a?.fix()}!function(e,t,n){for(var a,i=t.length,r=t.length,o=0;o<i;o++){let n=t[o];$n(n,()=>{if(a){if(a.pending.delete(n),a.done.add(n),0===a.pending.size){var t=e.outrogroups;Ma(e,J(a.done)),t.delete(a),0===t.size&&(e.outrogroups=null)}}else r-=1},!1)}if(0===r){var s=null!==n;if(s){var c=n,l=c.parentNode;l.textContent="",l.append(c),e.items.clear()}Ma(e,t,!s)}else a={pending:new Set(t),done:new Set},(e.outrogroups??(e.outrogroups=new Set)).add(a)}(e,k,S)}}d&&Ye(()=>{if(void 0!==o)for(c of o)c.nodes?.a?.apply()})}(p,c,o,t,a),null!==l&&(0===c.length?0===(l.f&ye)?Tn(l):(l.f^=ye,Ia(l,null,o)):$n(l,()=>{l=null})))}(h)),ia(d)}),items:s,pending:u,outrogroups:null,fallback:l};f=!1}function za(e){for(;null!==e&&0===(e.f&oe);)e=e.next;return e}function Ta(e,t,n,a,i,r,o,s){var c=1&o?16&o?Kt(n):Dt(n,!1,!1):null,l=2&o?Kt(i):null;return R&&c&&(c.trace=()=>{s()}),{v:c,i:l,e:_n(()=>(r(t,c??n,l??i,s),()=>{e.delete(a)}))}}function Ia(e,t,n){if(e.nodes)for(var a=e.nodes.start,i=e.nodes.end,r=t&&0===(t.f&ye)?t.nodes.start:n;null!==a;){var o=ln(a);if(r.before(a),a===i)return;a=o}}function Ga(e,t,n){null===t?e.effect.first=n:t.next=n,null===n?e.effect.last=t:n.prev=t}function La(e,t,n=!1,a=!1,i=!1,r=!1){var o=e,s="";if(n)var c=e;wn(()=>{var e=On;if(s!==(s=t()??"")){if(n)return e.nodes=null,c.innerHTML=s,void(""!==s&&ya(cn(c),c.lastChild));if(null!==e.nodes&&(Mn(e.nodes.start,e.nodes.end),e.nodes=null),""!==s){var r=pn(a?"svg":i?"math":"template",a?"http://www.w3.org/2000/svg":i?"http://www.w3.org/1998/Math/MathML":void 0);r.innerHTML=s;var l=a||i?r:r.content;if(ya(cn(l),l.lastChild),a||i)for(;cn(l);)o.before(cn(l));else o.before(l)}}})}function Wa(e,t,n=!1){if(e.multiple){if(null==t)return;if(!U(t))return void(R?console.warn("%c[svelte] select_multiple_invalid_value\n%cThe `value` property of a `<select multiple>` element should be an array, but it received a non-array value. The selection will be kept as is.\nhttps://svelte.dev/e/select_multiple_invalid_value",Ie,Ge):console.warn("https://svelte.dev/e/select_multiple_invalid_value"));for(var a of e.options)a.selected=t.includes(Ba(a))}else{for(a of e.options)if(en(Ba(a),t))return void(a.selected=!0);n&&void 0===t||(e.selectedIndex=-1)}}function Ba(e){return"__value"in e?e.__value:e.value}P=new WeakMap,j=new WeakMap,N=new WeakMap,O=new WeakMap,H=new WeakMap,K=new WeakMap,F=new WeakMap;const Pa=Symbol("is custom element"),ja=Symbol("is html");function Na(e,t,n,a){var i=function(e){return e.__attributes??(e.__attributes={[Pa]:e.nodeName.includes("-"),[ja]:e.namespaceURI===Te})}(e);i[t]!==(i[t]=n)&&("loading"===t&&(e[Se]=n),null==n?e.removeAttribute(t):"string"!=typeof n&&function(e){var t,n=e.getAttribute("is")||e.nodeName,a=Oa.get(n);if(a)return a;Oa.set(n,a=[]);for(var i=e,r=Element.prototype;r!==i;){for(var o in t=Q(i))t[o].set&&a.push(o);i=ne(i)}return a}(e).includes(t)?e[t]=n:e.setAttribute(t,n))}var Oa=new Map;function Ha(e,t){return e===t||e?.[ke]===t}function Ka(e={},t,n,a){var i=Oe.r,r=On;return hn(4,()=>{var a,o;return xn(()=>{a=o,o=[],sa(()=>{e!==n(...o)&&(t(e,...o),a&&Ha(n(...a),e)&&t(null,...a))})}),()=>{let a=r;for(;a!==i&&null!==a.parent&&a.parent.f&ge;)a=a.parent;const s=a.teardown;a.teardown=()=>{o&&Ha(n(...o),e)&&t(null,...o),s?.()}}}),e}function Fa(e,t,n,a){var i=!!(8&n),r=!!(16&n),o=a,s=!0,c=()=>(s&&(s=!1,o=r?sa(a):a),o);let l;if(i){var d=ke in e||_e in e;l=X(e,t)?.set??(d&&t in e?n=>e[t]=n:void 0)}var u,f,p=!1;if(i?[u,p]=function(){var n=rt;try{return rt=!1,[e[t],rt]}finally{rt=n}}():u=e[t],void 0===u&&void 0!==a&&(u=c(),l&&(function(e){if(R){const t=new Error(`props_invalid_value\nCannot do \`bind:${e}={undefined}\` when \`${e}\` has a fallback value\nhttps://svelte.dev/e/props_invalid_value`);throw t.name="Svelte error",t}throw new Error("https://svelte.dev/e/props_invalid_value")}(t),l(u))),f=()=>{var n=e[t];return void 0===n?c():(s=!0,n)},!(4&n))return f;if(l){var g=e.$$legacy;return function(e,t){return arguments.length>0?((!t||g||p)&&l(t?f():e),e):f()}}var h=!1,m=(1&n?$t:It)(()=>(h=!1,f()));R&&(m.label=t),i&&ia(m);var v=On;return function(e,t){if(arguments.length>0){const n=t?ia(m):i?Zt(e):e;return qt(m,n),h=!0,void 0!==o&&(o=n),e}return Wn&&h||0!==(v.f&fe)?m.v:ia(m)}}if(R){let e=function(e){if(!(e in globalThis)){let t;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(void 0!==t)return t;!function(e){if(R){const t=new Error(`rune_outside_svelte\nThe \`${e}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files\nhttps://svelte.dev/e/rune_outside_svelte`);throw t.name="Svelte error",t}throw new Error("https://svelte.dev/e/rune_outside_svelte")}(e)},set:e=>{t=e}})}};e("$state"),e("$effect"),e("$derived"),e("$inspect"),e("$props"),e("$bindable")}function Da(e){return`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">${e}</svg>`}function qa(){return Da('<circle cx="12" cy="4.5" r="1.5"/><path d="M12 7.5v5m0 0l-3 4.5m3-4.5l3 4.5"/><path d="M6.5 9.5h11"/>')}function Ra(){return Da('<path d="M11 5L6 9H3v6h3l5 4V5z"/><path d="M15 9a4 4 0 0 1 0 6"/><path d="M18 6a8 8 0 0 1 0 12"/>')}function Ua(){return Da('<path d="M12 2a5 5 0 0 1 4.65 3.2A4.5 4.5 0 0 1 20 9.5a4.5 4.5 0 0 1-1.5 3.35A5 5 0 0 1 12 18"/><path d="M12 2a5 5 0 0 0-4.65 3.2A4.5 4.5 0 0 0 4 9.5a4.5 4.5 0 0 0 1.5 3.35A5 5 0 0 0 12 18"/><path d="M12 18v4"/><path d="M8 10h.01"/><path d="M16 10h.01"/><path d="M9 14c1 1 5 1 6 0"/>')}function Va(){return Da('<rect x="3" y="3" width="18" height="18" rx="2"/><path d="M3 16l5-5 4 4 3-3 6 6"/><circle cx="8.5" cy="8.5" r="1.5"/><text x="12" y="21.5" text-anchor="middle" fill="currentColor" stroke="none" font-size="5" font-weight="bold" font-family="sans-serif">ALT</text>')}function Ya(){return Da('<path d="M18 6L6 18"/><path d="M6 6l12 12"/>')}function Ja(){return Da('<path d="M3 12a9 9 0 1 0 3-6.7"/><path d="M3 3v5.3h5.3"/>')}function Za(){return Da('<circle cx="12" cy="12" r="10"/><path d="M2 12h20"/><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/>')}"undefined"!=typeof window&&((D=window.__svelte??(window.__svelte={})).v??(D.v=new Set)).add("5");const Xa={accessibility:qa,contrast:function(){return Da('<circle cx="12" cy="12" r="9"/><path d="M12 3v18" /><path d="M12 3a9 9 0 0 1 0 18" fill="currentColor" stroke="none"/>')},"text-size":function(){return Da('<path d="M4 19l4-12h1l4 12"/><path d="M5.5 15h5"/><path d="M17 5v14"/><path d="M14 8l3-3 3 3"/><path d="M14 16l3 3 3-3"/>')},spacing:function(){return Da('<path d="M4 9h16"/><path d="M4 15h16"/><path d="M10 5l-2 2 2 2"/><path d="M14 5l2 2-2 2"/><path d="M10 17l-2-2 2-2"/><path d="M14 17l2-2-2-2"/>')},font:function(){return Da('<path d="M6 4h10a2 2 0 0 1 2 2v1"/><path d="M6 4v16"/><path d="M6 12h8"/><path d="M4 20h4"/>')},"reading-guide":function(){return Da('<path d="M3 12h18"/><path d="M3 6h18" opacity="0.3"/><path d="M3 18h18" opacity="0.3"/><rect x="1" y="10" width="22" height="4" rx="1" stroke-dasharray="4 2"/>')},focus:function(){return Da('<circle cx="12" cy="12" r="3"/><circle cx="12" cy="12" r="7"/><path d="M12 2v3"/><path d="M12 19v3"/><path d="M2 12h3"/><path d="M19 12h3"/>')},"animation-pause":function(){return Da('<circle cx="12" cy="12" r="9"/><path d="M10 8v8"/><path d="M14 8v8"/>')},cursor:function(){return Da('<path d="M5 3l1.5 16 3.5-4 5 6 2-1.5-5-6h5.5z"/><path d="M18 12h4"/><path d="M20 10v4"/>')},speaker:Ra,tts:Ra,brain:Ua,ai:Ua,image:Va,"alt-text":Va,keyboard:function(){return Da('<rect x="2" y="6" width="20" height="12" rx="2"/><path d="M6 10h.01"/><path d="M10 10h.01"/><path d="M14 10h.01"/><path d="M18 10h.01"/><path d="M8 14h8"/>')},"color-blindness":function(){return Da('<path d="M2 12s4-8 10-8 10 8 10 8-4 8-10 8-10-8-10-8z"/><circle cx="12" cy="12" r="3"/><path d="M12 9v6" stroke-dasharray="2 1"/><path d="M9 12h6" stroke-dasharray="2 1"/>')},"link-highlight":function(){return Da('<path d="M10 13a5 5 0 0 0 7.07.5l2.12-2.12a5 5 0 0 0-7.07-7.07l-1.06 1.06"/><path d="M14 11a5 5 0 0 0-7.07-.5L4.81 12.6a5 5 0 0 0 7.07 7.07l1.06-1.06"/><path d="M2 20l4-4" stroke-width="3" opacity="0.4"/>')},close:Ya,"close-x":Ya,reset:Ja,chevron:function(){return Da('<path d="M9 18l6-6-6-6"/>')},checkmark:function(){return Da('<path d="M20 6L9 17l-5-5"/>')},warning:function(){return Da('<path d="M10.3 3.2L1.7 18a2 2 0 0 0 1.7 3h17.2a2 2 0 0 0 1.7-3L13.7 3.2a2 2 0 0 0-3.4 0z"/><path d="M12 9v4"/><path d="M12 17h.01"/>')},scan:function(){return Da('<circle cx="11" cy="11" r="7"/><path d="M21 21l-4.35-4.35"/><path d="M8 9h6"/><path d="M8 11h4"/><path d="M8 13h5"/>')},"simplify-text":function(){return Da('<rect x="4" y="2" width="16" height="20" rx="2"/><path d="M8 6h8"/><path d="M8 10h8" opacity="0.35" stroke-dasharray="2 2"/><path d="M8 14h5"/><path d="M8 18h6" opacity="0.35" stroke-dasharray="2 2"/>')},eye:function(){return Da('<path d="M2 12s4-8 10-8 10 8 10 8-4 8-10 8-10-8-10-8z"/><circle cx="12" cy="12" r="3"/>')},shield:function(){return Da('<path d="M12 2l8 4v6c0 5.5-3.8 10.7-8 12-4.2-1.3-8-6.5-8-12V6l8-4z"/><path d="M9 12l2 2 4-4"/>')},saturation:function(){return Da('<path d="M12 2.7c-4.5 5-7 8.5-7 11.8a7 7 0 0 0 14 0c0-3.3-2.5-6.8-7-11.8z"/><path d="M12 9v9"/><path d="M12 9a4.5 4.5 0 0 0 0 9" fill="currentColor" stroke="none" opacity="0.3"/>')},"hide-images":function(){return Da('<rect x="3" y="3" width="18" height="18" rx="2"/><circle cx="8.5" cy="8.5" r="1.5"/><path d="M3 16l5-5 4 4 3-3 6 6"/><path d="M2 2l20 20" stroke-width="2.5"/>')},"text-align":function(){return Da('<path d="M4 6h16"/><path d="M4 10h10"/><path d="M4 14h16"/><path d="M4 18h10"/>')},"reading-mask":function(){return Da('<rect x="2" y="2" width="20" height="20" rx="2" opacity="0.3"/><rect x="4" y="8" width="16" height="8" rx="1"/><path d="M4 8h16" stroke-dasharray="3 2"/><path d="M4 16h16" stroke-dasharray="3 2"/>')},"page-structure":function(){return Da('<path d="M4 6h4"/><path d="M4 6v6"/><path d="M8 6v6"/><path d="M4 9h4"/><path d="M12 7h8" stroke-width="1.5"/><path d="M14 12h6" opacity="0.6"/><path d="M14 16h6" opacity="0.6"/><path d="M12 20h8" stroke-width="1.5"/>')},"line-height":function(){return Da('<path d="M10 6h10"/><path d="M10 12h10"/><path d="M10 18h10"/><path d="M4 4v16"/><path d="M2 7l2-3 2 3"/><path d="M2 17l2 3 2-3"/>')},globe:Za,profile:function(){return Da('<circle cx="12" cy="8" r="4"/><path d="M4 20c0-4 4-7 8-7s8 3 8 7"/>')}},Qa={"widget.title":"Accessibility","widget.open":"Open accessibility settings","widget.close":"Close","widget.reset":"Reset all","widget.resetConfirm":"All adjustments reset","widget.poweredBy":"Powered by Accessify","widget.statement":"Accessibility Statement","status.active":"{count} active","status.noActive":"No adjustments active","status.activated":"activated","status.deactivated":"deactivated","section.profiles":"Quick Profiles","category.visual":"Visual","category.motor":"Motor & Navigation","category.cognitive":"Cognitive","category.ai":"AI Features","profile.visionImpaired":"Vision Impaired","profile.visionImpaired.desc":"High contrast, larger text and cursor","profile.motorImpaired":"Motor Impaired","profile.motorImpaired.desc":"Keyboard navigation and focus aids","profile.cognitive":"Cognitive Support","profile.cognitive.desc":"Reading aids, spacing, and simpler fonts","profile.seizureSafe":"Seizure Safe","profile.seizureSafe.desc":"Stop animations and reduce stimuli","profile.adhdFriendly":"ADHD Friendly","profile.adhdFriendly.desc":"Reduce distractions and improve focus","feature.contrast":"Contrast","feature.contrast.desc":"Increase contrast for better readability","feature.textSize":"Bigger Text","feature.textSize.desc":"Increase or decrease text size","feature.spacing":"Text Spacing","feature.spacing.desc":"Adjust letter and line spacing","feature.dyslexiaFont":"Dyslexia Font","feature.dyslexiaFont.desc":"Special font for better readability","feature.readingGuide":"Reading Guide","feature.readingGuide.desc":"Horizontal ruler for line-by-line reading","feature.focusHighlight":"Focus Highlight","feature.focusHighlight.desc":"Visible outline on focused elements","feature.animationStop":"Stop Animations","feature.animationStop.desc":"Pause all animations and videos","feature.bigCursor":"Big Cursor","feature.bigCursor.desc":"Enlarged cursor for better visibility","feature.colorBlind":"Color Filter","feature.colorBlind.desc":"Color corrections for color vision deficiencies","feature.linkHighlight":"Highlight Links","feature.linkHighlight.desc":"Underline and highlight all links","feature.keyboardNav":"Keyboard Nav","feature.keyboardNav.desc":"Enhanced keyboard controls and shortcuts","feature.tts":"Read Aloud","feature.tts.desc":"Click any text to hear it spoken","feature.textSimplify":"Simplify Text","feature.textSimplify.desc":"Simplify text for easier understanding","feature.altText":"Alt-Text Generator","feature.altText.desc":"Auto-generate image descriptions","feature.autoScan":"WCAG Scan","feature.autoScan.desc":"Scan page for accessibility issues","feature.saturation":"Saturation","feature.saturation.desc":"Adjust color saturation or grayscale","feature.hideImages":"Hide Images","feature.hideImages.desc":"Remove images for distraction-free reading","feature.textAlign":"Text Align","feature.textAlign.desc":"Change text alignment across the page","feature.readingMask":"Reading Mask","feature.readingMask.desc":"Focus window that dims surrounding content","feature.pageStructure":"Page Structure","feature.pageStructure.desc":"View headings and landmarks for quick navigation","feature.lineHeight":"Line Height","feature.lineHeight.desc":"Increase space between lines of text","ai.loading":"Loading...","ai.error":"Error processing request","ai.simplify.select":"Select text to simplify","ai.simplify.level":"Simplification level","ai.simplify.einfache":"Simple language","ai.simplify.leichte":"Easy language","ai.alttext.generate":"Generate alt text","ai.alttext.apply":"Apply","ai.alttext.edit":"Edit","ai.alttext.badge":"Images missing alt text","ai.alttext.aiGenerated":"AI-generated – please review","tts.play":"Play","tts.pause":"Pause","tts.stop":"Stop","tts.speed":"Speed","footer.disclaimer":"This widget enhances accessibility but does not replace accessible web development.","footer.docs":"Documentation","footer.github":"GitHub","bfsg.notice":"Note: This overlay tool alone does not meet BFSG requirements. Full accessibility requires structural changes to the source code.","widget.subtitle":"Adjust contrast, text and navigation on this page","widget.language":"Language","widget.poweredBy":"Powered by Accessify-Widget","section.essentials":"Most used","section.essentials.desc":"Start with contrast, text size and keyboard support.","section.support":"Reading and navigation","section.support.desc":"Tools for focus, reduced motion and page structure.","section.ai":"AI assistance","section.ai.desc":"Simplify content, generate alt text and scan the current page.","control.mostUsed":"Most used","control.chooseMode":"Choose a mode","control.default":"Default","contrast.mode.light":"Light contrast","contrast.mode.dark":"Dark contrast","contrast.mode.high":"High contrast","keyboard.shortcuts":"Keyboard shortcuts","keyboard.shortcut":"Shortcut","keyboard.action":"Action","keyboard.nextHeading":"Go to the next heading","keyboard.nextLandmark":"Go to the next landmark","keyboard.toggleHelp":"Open or close this help overlay","keyboard.nextFocusable":"Move to the next focusable element","keyboard.closeOverlay":"Close this overlay","keyboard.skipToContent":"Skip to main content","pageStructure.title":"Page structure","pageStructure.headings":"Headings","pageStructure.landmarks":"Landmarks","pageStructure.empty":"No headings or landmarks found on this page."};function ei(e){return{...Qa,...e}}const ti={en:Qa,de:{"widget.title":"Barrierefreiheit","widget.open":"Barrierefreiheit-Einstellungen öffnen","widget.close":"Schließen","widget.reset":"Alle zurücksetzen","widget.resetConfirm":"Alle Anpassungen zurückgesetzt","widget.poweredBy":"Bereitgestellt von Accessify","widget.statement":"Barrierefreiheitserklärung","status.active":"{count} aktiv","status.noActive":"Keine Anpassungen aktiv","status.activated":"aktiviert","status.deactivated":"deaktiviert","section.profiles":"Schnellprofile","category.visual":"Visuell","category.motor":"Motorik & Navigation","category.cognitive":"Kognitiv","category.ai":"KI-Funktionen","profile.visionImpaired":"Sehbeeinträchtigung","profile.visionImpaired.desc":"Hoher Kontrast, größerer Text und Cursor","profile.motorImpaired":"Motorische Einschränkung","profile.motorImpaired.desc":"Tastaturnavigation und Fokus-Hilfen","profile.cognitive":"Kognitive Unterstützung","profile.cognitive.desc":"Lesehilfen, Abstände und einfachere Schrift","profile.seizureSafe":"Anfallssicher","profile.seizureSafe.desc":"Animationen stoppen und Reize reduzieren","profile.adhdFriendly":"ADHS-freundlich","profile.adhdFriendly.desc":"Ablenkungen reduzieren und Fokus verbessern","feature.contrast":"Kontrast","feature.contrast.desc":"Kontrast erhöhen für bessere Lesbarkeit","feature.textSize":"Größerer Text","feature.textSize.desc":"Text vergrößern oder verkleinern","feature.spacing":"Textabstand","feature.spacing.desc":"Abstände zwischen Buchstaben und Zeilen anpassen","feature.dyslexiaFont":"Legasthenie-Schrift","feature.dyslexiaFont.desc":"Spezielle Schriftart für bessere Lesbarkeit","feature.readingGuide":"Leselineal","feature.readingGuide.desc":"Horizontales Lineal zum zeilenweisen Lesen","feature.focusHighlight":"Fokus-Hervorhebung","feature.focusHighlight.desc":"Sichtbare Umrandung fokussierter Elemente","feature.animationStop":"Animationen stoppen","feature.animationStop.desc":"Alle Animationen und Videos pausieren","feature.bigCursor":"Großer Mauszeiger","feature.bigCursor.desc":"Vergrößerter Mauszeiger für bessere Sichtbarkeit","feature.colorBlind":"Farbfilter","feature.colorBlind.desc":"Farbkorrekturen für verschiedene Sehschwächen","feature.linkHighlight":"Links hervorheben","feature.linkHighlight.desc":"Alle Links sichtbar unterstreichen","feature.keyboardNav":"Tastaturnavigation","feature.keyboardNav.desc":"Erweiterte Tastatursteuerung und Shortcuts","feature.tts":"Vorlesen","feature.tts.desc":"Text per Klick vorlesen lassen","feature.textSimplify":"Text vereinfachen","feature.textSimplify.desc":"Text in Einfache Sprache umwandeln","feature.altText":"Alt-Text erzeugen","feature.altText.desc":"Bildbeschreibungen automatisch erstellen","feature.autoScan":"WCAG-Prüfung","feature.autoScan.desc":"Seite auf Barrierefreiheit prüfen","feature.saturation":"Sättigung","feature.saturation.desc":"Farbsättigung anpassen oder Graustufen","feature.hideImages":"Bilder ausblenden","feature.hideImages.desc":"Bilder entfernen für ablenkungsfreies Lesen","feature.textAlign":"Textausrichtung","feature.textAlign.desc":"Textausrichtung der Seite ändern","feature.readingMask":"Lesemaske","feature.readingMask.desc":"Fokus-Fenster, das die Umgebung abdunkelt","feature.pageStructure":"Seitenstruktur","feature.pageStructure.desc":"Überschriften und Bereiche zur Navigation anzeigen","feature.lineHeight":"Zeilenhöhe","feature.lineHeight.desc":"Abstand zwischen Textzeilen vergrößern","ai.loading":"Wird geladen...","ai.error":"Fehler bei der Verarbeitung","ai.simplify.select":"Text auswählen zum Vereinfachen","ai.simplify.level":"Vereinfachungsstufe","ai.simplify.einfache":"Einfache Sprache","ai.simplify.leichte":"Leichte Sprache","ai.alttext.generate":"Alt-Text erzeugen","ai.alttext.apply":"Übernehmen","ai.alttext.edit":"Bearbeiten","ai.alttext.badge":"Bilder ohne Alt-Text","ai.alttext.aiGenerated":"KI-generiert – bitte überprüfen","tts.play":"Vorlesen","tts.pause":"Pause","tts.stop":"Stopp","tts.speed":"Geschwindigkeit","footer.disclaimer":"Dieses Widget verbessert die Barrierefreiheit, ersetzt aber keine barrierefreie Webentwicklung.","footer.docs":"Dokumentation","footer.github":"GitHub","bfsg.notice":"Hinweis: Dieses Overlay-Tool allein erfüllt nicht die Anforderungen des BFSG. Professionelle Barrierefreiheit erfordert strukturelle Änderungen am Quellcode.","widget.subtitle":"Passe Kontrast, Text und Navigation auf dieser Seite an","widget.language":"Sprache","widget.poweredBy":"Bereitgestellt von Accessify-Widget","section.essentials":"Am haeufigsten genutzt","section.essentials.desc":"Starte mit Kontrast, Textgroesse und Tastaturhilfe.","section.support":"Lesen und Navigation","section.support.desc":"Hilfen fuer Fokus, reduzierte Bewegung und Seitenstruktur.","section.ai":"KI-Unterstuetzung","section.ai.desc":"Inhalte vereinfachen, Alt-Texte erzeugen und die Seite pruefen.","control.mostUsed":"Meistgenutzt","control.chooseMode":"Modus waehlen","control.default":"Standard","contrast.mode.light":"Heller Kontrast","contrast.mode.dark":"Dunkler Kontrast","contrast.mode.high":"Hoher Kontrast","keyboard.shortcuts":"Tastaturhilfe","keyboard.shortcut":"Tastaturkuerzel","keyboard.action":"Aktion","keyboard.nextHeading":"Zur naechsten Ueberschrift springen","keyboard.nextLandmark":"Zur naechsten Landmarke springen","keyboard.toggleHelp":"Diese Hilfe ein- oder ausblenden","keyboard.nextFocusable":"Zum naechsten fokussierbaren Element wechseln","keyboard.closeOverlay":"Diese Hilfe schliessen","keyboard.skipToContent":"Zum Hauptinhalt springen","pageStructure.title":"Seitenstruktur","pageStructure.headings":"Ueberschriften","pageStructure.landmarks":"Landmarken","pageStructure.empty":"Auf dieser Seite wurden keine Ueberschriften oder Landmarken gefunden."},zh:ei({"widget.title":"无障碍","widget.subtitle":"调整此页面的对比度、文字和导航","widget.open":"打开无障碍设置","widget.close":"关闭","widget.reset":"全部重置","widget.resetConfirm":"已重置所有调整","widget.poweredBy":"由 Accessify-Widget 提供支持","widget.statement":"无障碍声明","widget.language":"语言","status.active":"已启用 {count} 项","status.noActive":"当前未启用调整","status.activated":"已启用","status.deactivated":"已关闭","section.essentials":"最常用","section.essentials.desc":"先从对比度、文字大小和键盘支持开始。","section.support":"阅读与导航","section.support.desc":"用于聚焦、减少动画和查看页面结构的工具。","section.ai":"AI 辅助","section.ai.desc":"简化内容、生成替代文本并扫描当前页面。","control.mostUsed":"最常用","control.chooseMode":"选择模式","control.default":"默认","contrast.mode.light":"浅色高对比","contrast.mode.dark":"深色高对比","contrast.mode.high":"高对比","feature.contrast":"对比度","feature.textSize":"更大文字","feature.keyboardNav":"键盘导航","feature.focusHighlight":"焦点高亮","feature.linkHighlight":"突出链接","feature.animationStop":"停止动画","feature.readingGuide":"阅读指引线","feature.readingMask":"阅读遮罩","feature.hideImages":"隐藏图片","feature.bigCursor":"大号光标","feature.pageStructure":"页面结构","feature.tts":"朗读","feature.textSimplify":"简化文本","feature.altText":"生成替代文本","feature.autoScan":"WCAG 扫描"}),hi:ei({"widget.title":"सुलभता","widget.subtitle":"इस पेज पर कंट्रास्ट, टेक्स्ट और नेविगेशन समायोजित करें","widget.open":"सुलभता सेटिंग खोलें","widget.close":"बंद करें","widget.reset":"सब रीसेट करें","widget.resetConfirm":"सभी बदलाव रीसेट हो गए","widget.poweredBy":"Accessify-Widget द्वारा संचालित","widget.statement":"एक्सेसिबिलिटी स्टेटमेंट","widget.language":"भाषा","status.active":"{count} सक्रिय","status.noActive":"कोई बदलाव सक्रिय नहीं","status.activated":"सक्रिय","status.deactivated":"निष्क्रिय","section.essentials":"सबसे ज्यादा उपयोग","section.essentials.desc":"कंट्रास्ट, टेक्स्ट साइज और कीबोर्ड सहायता से शुरू करें।","section.support":"पढ़ना और नेविगेशन","section.support.desc":"फोकस, कम मोशन और पेज स्ट्रक्चर के लिए टूल।","section.ai":"AI सहायता","section.ai.desc":"कंटेंट सरल करें, ऑल्ट टेक्स्ट बनाएं और मौजूदा पेज स्कैन करें।","control.mostUsed":"सबसे उपयोगी","control.chooseMode":"मोड चुनें","control.default":"डिफ़ॉल्ट","contrast.mode.light":"लाइट कंट्रास्ट","contrast.mode.dark":"डार्क कंट्रास्ट","contrast.mode.high":"हाई कंट्रास्ट","feature.contrast":"कंट्रास्ट","feature.textSize":"बड़ा टेक्स्ट","feature.keyboardNav":"कीबोर्ड नेविगेशन","feature.focusHighlight":"फोकस हाइलाइट","feature.linkHighlight":"लिंक हाइलाइट","feature.animationStop":"एनिमेशन रोकें","feature.readingGuide":"रीडिंग गाइड","feature.readingMask":"रीडिंग मास्क","feature.hideImages":"तस्वीरें छिपाएँ","feature.bigCursor":"बड़ा कर्सर","feature.pageStructure":"पेज संरचना","feature.tts":"जोर से पढ़ें","feature.textSimplify":"टेक्स्ट सरल करें","feature.altText":"ऑल्ट-टेक्स्ट बनाएँ","feature.autoScan":"WCAG स्कैन"}),es:ei({"widget.title":"Accesibilidad","widget.subtitle":"Ajusta contraste, texto y navegacion en esta pagina","widget.open":"Abrir ajustes de accesibilidad","widget.close":"Cerrar","widget.reset":"Restablecer todo","widget.resetConfirm":"Se restablecieron todos los ajustes","widget.poweredBy":"Impulsado por Accessify-Widget","widget.statement":"Declaracion de accesibilidad","widget.language":"Idioma","status.active":"{count} activas","status.noActive":"No hay ajustes activos","status.activated":"activado","status.deactivated":"desactivado","section.essentials":"Lo mas usado","section.essentials.desc":"Empieza con contraste, tamano de texto y apoyo para teclado.","section.support":"Lectura y navegacion","section.support.desc":"Herramientas para foco, menos movimiento y estructura de pagina.","section.ai":"Asistencia de IA","section.ai.desc":"Simplifica contenido, genera texto alternativo y analiza la pagina actual.","control.mostUsed":"Mas usado","control.chooseMode":"Elegir modo","control.default":"Predeterminado","contrast.mode.light":"Contraste claro","contrast.mode.dark":"Contraste oscuro","contrast.mode.high":"Alto contraste","feature.contrast":"Contraste","feature.textSize":"Texto mas grande","feature.keyboardNav":"Navegacion por teclado","feature.focusHighlight":"Resaltar foco","feature.linkHighlight":"Resaltar enlaces","feature.animationStop":"Detener animaciones","feature.readingGuide":"Guia de lectura","feature.readingMask":"Mascara de lectura","feature.hideImages":"Ocultar imagenes","feature.bigCursor":"Cursor grande","feature.pageStructure":"Estructura de pagina","feature.tts":"Lectura en voz alta","feature.textSimplify":"Simplificar texto","feature.altText":"Generar texto alternativo","feature.autoScan":"Escaneo WCAG"}),fr:ei({"widget.title":"Accessibilite","widget.subtitle":"Ajustez le contraste, le texte et la navigation sur cette page","widget.open":"Ouvrir les reglages d'accessibilite","widget.close":"Fermer","widget.reset":"Tout reinitialiser","widget.resetConfirm":"Tous les ajustements ont ete reinitialises","widget.poweredBy":"Propulse par Accessify-Widget","widget.statement":"Declaration d'accessibilite","widget.language":"Langue","status.active":"{count} actives","status.noActive":"Aucun ajustement actif","status.activated":"active","status.deactivated":"desactive","section.essentials":"Les plus utilises","section.essentials.desc":"Commencez par le contraste, la taille du texte et le clavier.","section.support":"Lecture et navigation","section.support.desc":"Outils pour la mise au point, moins de mouvement et la structure de page.","section.ai":"Assistance IA","section.ai.desc":"Simplifiez le contenu, generez un texte alternatif et analysez la page.","control.mostUsed":"Les plus utilises","control.chooseMode":"Choisir un mode","control.default":"Par defaut","contrast.mode.light":"Contraste clair","contrast.mode.dark":"Contraste sombre","contrast.mode.high":"Contraste eleve","feature.contrast":"Contraste","feature.textSize":"Texte plus grand","feature.keyboardNav":"Navigation clavier","feature.focusHighlight":"Mise en evidence du focus","feature.linkHighlight":"Mettre les liens en evidence","feature.animationStop":"Arreter les animations","feature.readingGuide":"Guide de lecture","feature.readingMask":"Masque de lecture","feature.hideImages":"Masquer les images","feature.bigCursor":"Grand curseur","feature.pageStructure":"Structure de page","feature.tts":"Lecture audio","feature.textSimplify":"Simplifier le texte","feature.altText":"Generer un texte alternatif","feature.autoScan":"Analyse WCAG"}),ar:ei({"widget.title":"إمكانية الوصول","widget.subtitle":"اضبط التباين والنص والتنقل في هذه الصفحة","widget.open":"افتح إعدادات إمكانية الوصول","widget.close":"إغلاق","widget.reset":"إعادة ضبط الكل","widget.resetConfirm":"تمت إعادة ضبط جميع التعديلات","widget.poweredBy":"مدعوم بواسطة Accessify-Widget","widget.statement":"بيان إمكانية الوصول","widget.language":"اللغة","status.active":"{count} عناصر نشطة","status.noActive":"لا توجد تعديلات نشطة","status.activated":"مفعل","status.deactivated":"معطل","section.essentials":"الأكثر استخدامًا","section.essentials.desc":"ابدأ بالتباين وحجم النص ودعم لوحة المفاتيح.","section.support":"القراءة والتنقل","section.support.desc":"أدوات للتركيز وتقليل الحركة وبنية الصفحة.","section.ai":"مساعدة الذكاء الاصطناعي","section.ai.desc":"بسّط المحتوى وأنشئ نصًا بديلاً وافحص الصفحة الحالية.","control.mostUsed":"الأكثر استخدامًا","control.chooseMode":"اختر وضعًا","control.default":"افتراضي","contrast.mode.light":"تباين فاتح","contrast.mode.dark":"تباين داكن","contrast.mode.high":"تباين عالٍ","feature.contrast":"التباين","feature.textSize":"نص أكبر","feature.keyboardNav":"تنقل بلوحة المفاتيح","feature.focusHighlight":"إبراز التركيز","feature.linkHighlight":"إبراز الروابط","feature.animationStop":"إيقاف الرسوم المتحركة","feature.readingGuide":"دليل القراءة","feature.readingMask":"قناع القراءة","feature.hideImages":"إخفاء الصور","feature.bigCursor":"مؤشر كبير","feature.pageStructure":"بنية الصفحة","feature.tts":"القراءة بصوت عالٍ","feature.textSimplify":"تبسيط النص","feature.altText":"إنشاء نص بديل","feature.autoScan":"فحص WCAG"}),bn:ei({"widget.title":"অ্যাক্সেসিবিলিটি","widget.subtitle":"এই পাতায় কনট্রাস্ট, টেক্সট এবং নেভিগেশন ঠিক করুন","widget.open":"অ্যাক্সেসিবিলিটি সেটিংস খুলুন","widget.close":"বন্ধ করুন","widget.reset":"সব রিসেট করুন","widget.resetConfirm":"সব পরিবর্তন রিসেট হয়েছে","widget.poweredBy":"Accessify-Widget দ্বারা চালিত","widget.statement":"অ্যাক্সেসিবিলিটি বিবৃতি","widget.language":"ভাষা","status.active":"{count} টি সক্রিয়","status.noActive":"কোনও সমন্বয় সক্রিয় নেই","status.activated":"সক্রিয়","status.deactivated":"নিষ্ক্রিয়","section.essentials":"সবচেয়ে ব্যবহৃত","section.essentials.desc":"কনট্রাস্ট, টেক্সট সাইজ এবং কিবোর্ড সহায়তা দিয়ে শুরু করুন।","section.support":"পড়া ও নেভিগেশন","section.support.desc":"ফোকাস, কম মুভমেন্ট এবং পেজ স্ট্রাকচারের টুল।","section.ai":"AI সহায়তা","section.ai.desc":"কনটেন্ট সহজ করুন, অল্ট টেক্সট তৈরি করুন এবং পেজ স্ক্যান করুন।","control.mostUsed":"সবচেয়ে ব্যবহৃত","control.chooseMode":"মোড বেছে নিন","control.default":"ডিফল্ট","contrast.mode.light":"লাইট কনট্রাস্ট","contrast.mode.dark":"ডার্ক কনট্রাস্ট","contrast.mode.high":"হাই কনট্রাস্ট","feature.contrast":"কনট্রাস্ট","feature.textSize":"বড় টেক্সট","feature.keyboardNav":"কিবোর্ড নেভিগেশন","feature.focusHighlight":"ফোকাস হাইলাইট","feature.linkHighlight":"লিংক হাইলাইট","feature.animationStop":"অ্যানিমেশন বন্ধ","feature.readingGuide":"রিডিং গাইড","feature.readingMask":"রিডিং মাস্ক","feature.hideImages":"ছবি লুকান","feature.bigCursor":"বড় কার্সর","feature.pageStructure":"পেজ স্ট্রাকচার","feature.tts":"জোরে পড়া","feature.textSimplify":"টেক্সট সহজ করুন","feature.altText":"অল্ট-টেক্সট তৈরি","feature.autoScan":"WCAG স্ক্যান"}),pt:ei({"widget.title":"Acessibilidade","widget.subtitle":"Ajuste contraste, texto e navegacao nesta pagina","widget.open":"Abrir configuracoes de acessibilidade","widget.close":"Fechar","widget.reset":"Redefinir tudo","widget.resetConfirm":"Todos os ajustes foram redefinidos","widget.poweredBy":"Desenvolvido por Accessify-Widget","widget.statement":"Declaracao de acessibilidade","widget.language":"Idioma","status.active":"{count} ativas","status.noActive":"Nenhum ajuste ativo","status.activated":"ativado","status.deactivated":"desativado","section.essentials":"Mais usados","section.essentials.desc":"Comece com contraste, tamanho do texto e apoio ao teclado.","section.support":"Leitura e navegacao","section.support.desc":"Ferramentas para foco, menos movimento e estrutura da pagina.","section.ai":"Assistencia de IA","section.ai.desc":"Simplifique conteudo, gere texto alternativo e analise a pagina atual.","control.mostUsed":"Mais usados","control.chooseMode":"Escolher modo","control.default":"Padrao","contrast.mode.light":"Contraste claro","contrast.mode.dark":"Contraste escuro","contrast.mode.high":"Alto contraste","feature.contrast":"Contraste","feature.textSize":"Texto maior","feature.keyboardNav":"Navegacao por teclado","feature.focusHighlight":"Destaque de foco","feature.linkHighlight":"Destacar links","feature.animationStop":"Parar animacoes","feature.readingGuide":"Guia de leitura","feature.readingMask":"Mascara de leitura","feature.hideImages":"Ocultar imagens","feature.bigCursor":"Cursor grande","feature.pageStructure":"Estrutura da pagina","feature.tts":"Leitura em voz alta","feature.textSimplify":"Simplificar texto","feature.altText":"Gerar texto alternativo","feature.autoScan":"Varredura WCAG"}),ru:ei({"widget.title":"Доступность","widget.subtitle":"Настройте контраст, текст и навигацию на этой странице","widget.open":"Открыть настройки доступности","widget.close":"Закрыть","widget.reset":"Сбросить все","widget.resetConfirm":"Все настройки сброшены","widget.poweredBy":"Работает на Accessify-Widget","widget.statement":"Заявление о доступности","widget.language":"Язык","status.active":"Активно: {count}","status.noActive":"Нет активных настроек","status.activated":"включено","status.deactivated":"выключено","section.essentials":"Самое используемое","section.essentials.desc":"Начните с контраста, размера текста и поддержки клавиатуры.","section.support":"Чтение и навигация","section.support.desc":"Инструменты для фокуса, уменьшения движения и структуры страницы.","section.ai":"Помощь ИИ","section.ai.desc":"Упрощайте текст, создавайте alt-текст и проверяйте текущую страницу.","control.mostUsed":"Популярное","control.chooseMode":"Выберите режим","control.default":"По умолчанию","contrast.mode.light":"Светлый контраст","contrast.mode.dark":"Темный контраст","contrast.mode.high":"Высокий контраст","feature.contrast":"Контраст","feature.textSize":"Крупный текст","feature.keyboardNav":"Навигация с клавиатуры","feature.focusHighlight":"Подсветка фокуса","feature.linkHighlight":"Выделить ссылки","feature.animationStop":"Остановить анимацию","feature.readingGuide":"Линейка для чтения","feature.readingMask":"Маска чтения","feature.hideImages":"Скрыть изображения","feature.bigCursor":"Большой курсор","feature.pageStructure":"Структура страницы","feature.tts":"Озвучивание","feature.textSimplify":"Упростить текст","feature.altText":"Создать alt-текст","feature.autoScan":"Проверка WCAG"}),ur:ei({"widget.title":"رسائی","widget.subtitle":"اس صفحے پر کنٹراسٹ، متن اور نیویگیشن کو ایڈجسٹ کریں","widget.open":"رسائی کی ترتیبات کھولیں","widget.close":"بند کریں","widget.reset":"سب ری سیٹ کریں","widget.resetConfirm":"تمام تبدیلیاں ری سیٹ ہو گئیں","widget.poweredBy":"Accessify-Widget کے ذریعے","widget.statement":"رسائی کا بیان","widget.language":"زبان","status.active":"{count} فعال","status.noActive":"کوئی تبدیلی فعال نہیں","status.activated":"فعال","status.deactivated":"غیر فعال","section.essentials":"سب سے زیادہ استعمال","section.essentials.desc":"کنٹراسٹ، متن کے سائز اور کی بورڈ مدد سے شروع کریں۔","section.support":"مطالعہ اور نیویگیشن","section.support.desc":"فوکس، کم حرکت اور صفحہ ساخت کے لیے ٹولز۔","section.ai":"AI مدد","section.ai.desc":"مواد آسان کریں، آلٹ ٹیکسٹ بنائیں اور موجودہ صفحہ اسکین کریں۔","control.mostUsed":"زیادہ استعمال","control.chooseMode":"موڈ منتخب کریں","control.default":"ڈیفالٹ","contrast.mode.light":"لائٹ کنٹراسٹ","contrast.mode.dark":"ڈارک کنٹراسٹ","contrast.mode.high":"ہائی کنٹراسٹ","feature.contrast":"کنٹراسٹ","feature.textSize":"بڑا متن","feature.keyboardNav":"کی بورڈ نیویگیشن","feature.focusHighlight":"فوکس ہائی لائٹ","feature.linkHighlight":"لنکس نمایاں کریں","feature.animationStop":"اینیمیشن روکیں","feature.readingGuide":"مطالعہ گائیڈ","feature.readingMask":"مطالعہ ماسک","feature.hideImages":"تصاویر چھپائیں","feature.bigCursor":"بڑا کرسر","feature.pageStructure":"صفحہ ساخت","feature.tts":"بلند آواز میں پڑھیں","feature.textSimplify":"متن آسان کریں","feature.altText":"آلٹ ٹیکسٹ بنائیں","feature.autoScan":"WCAG اسکین"}),id:ei({"widget.title":"Aksesibilitas","widget.subtitle":"Atur kontras, teks, dan navigasi di halaman ini","widget.open":"Buka pengaturan aksesibilitas","widget.close":"Tutup","widget.reset":"Reset semua","widget.resetConfirm":"Semua penyesuaian telah direset","widget.poweredBy":"Didukung oleh Accessify-Widget","widget.statement":"Pernyataan aksesibilitas","widget.language":"Bahasa","status.active":"{count} aktif","status.noActive":"Tidak ada penyesuaian aktif","status.activated":"aktif","status.deactivated":"nonaktif","section.essentials":"Paling sering dipakai","section.essentials.desc":"Mulai dari kontras, ukuran teks, dan dukungan keyboard.","section.support":"Membaca dan navigasi","section.support.desc":"Alat untuk fokus, gerakan rendah, dan struktur halaman.","section.ai":"Bantuan AI","section.ai.desc":"Sederhanakan konten, buat alt text, dan pindai halaman saat ini.","control.mostUsed":"Paling sering","control.chooseMode":"Pilih mode","control.default":"Default","contrast.mode.light":"Kontras terang","contrast.mode.dark":"Kontras gelap","contrast.mode.high":"Kontras tinggi","feature.contrast":"Kontras","feature.textSize":"Teks lebih besar","feature.keyboardNav":"Navigasi keyboard","feature.focusHighlight":"Sorot fokus","feature.linkHighlight":"Sorot tautan","feature.animationStop":"Hentikan animasi","feature.readingGuide":"Panduan baca","feature.readingMask":"Masker baca","feature.hideImages":"Sembunyikan gambar","feature.bigCursor":"Kursor besar","feature.pageStructure":"Struktur halaman","feature.tts":"Bacakan","feature.textSimplify":"Sederhanakan teks","feature.altText":"Buat alt-text","feature.autoScan":"Pindai WCAG"}),ja:ei({"widget.title":"アクセシビリティ","widget.subtitle":"このページのコントラスト、文字、ナビゲーションを調整します","widget.open":"アクセシビリティ設定を開く","widget.close":"閉じる","widget.reset":"すべてリセット","widget.resetConfirm":"すべての調整をリセットしました","widget.poweredBy":"Accessify-Widget 提供","widget.statement":"アクセシビリティ宣言","widget.language":"言語","status.active":"{count} 件が有効","status.noActive":"有効な調整はありません","status.activated":"有効","status.deactivated":"無効","section.essentials":"よく使う設定","section.essentials.desc":"まずはコントラスト、文字サイズ、キーボード支援から始めてください。","section.support":"読みやすさとナビゲーション","section.support.desc":"フォーカス、動きの抑制、ページ構造のためのツールです。","section.ai":"AI 支援","section.ai.desc":"文章を簡単にし、代替テキストを生成し、現在のページを確認します。","control.mostUsed":"よく使う","control.chooseMode":"モードを選択","control.default":"標準","contrast.mode.light":"ライトコントラスト","contrast.mode.dark":"ダークコントラスト","contrast.mode.high":"ハイコントラスト","feature.contrast":"コントラスト","feature.textSize":"大きな文字","feature.keyboardNav":"キーボード操作","feature.focusHighlight":"フォーカス強調","feature.linkHighlight":"リンク強調","feature.animationStop":"アニメーション停止","feature.readingGuide":"読書ガイド","feature.readingMask":"読書マスク","feature.hideImages":"画像を隠す","feature.bigCursor":"大きいカーソル","feature.pageStructure":"ページ構造","feature.tts":"読み上げ","feature.textSimplify":"文章を簡単にする","feature.altText":"代替テキスト生成","feature.autoScan":"WCAG スキャン"}),pcm:ei({"widget.title":"Accessibility","widget.subtitle":"Adjust contrast, text and navigation for dis page","widget.open":"Open accessibility settings","widget.close":"Close","widget.reset":"Reset all","widget.resetConfirm":"All adjustments don reset","widget.poweredBy":"Powered by Accessify-Widget","widget.statement":"Accessibility statement","widget.language":"Language","status.active":"{count} active","status.noActive":"No adjustment dey active","status.activated":"activated","status.deactivated":"deactivated","section.essentials":"Wetin people use pass","section.essentials.desc":"Start with contrast, text size and keyboard support.","section.support":"Reading and navigation","section.support.desc":"Tools for focus, reduced motion and page structure.","section.ai":"AI help","section.ai.desc":"Simplify content, generate alt text and scan dis page.","control.mostUsed":"Most used","control.chooseMode":"Choose mode","control.default":"Default","contrast.mode.light":"Light contrast","contrast.mode.dark":"Dark contrast","contrast.mode.high":"High contrast","feature.contrast":"Contrast","feature.textSize":"Bigger text","feature.keyboardNav":"Keyboard navigation","feature.focusHighlight":"Focus highlight","feature.linkHighlight":"Highlight links","feature.animationStop":"Stop animations","feature.readingGuide":"Reading guide","feature.readingMask":"Reading mask","feature.hideImages":"Hide images","feature.bigCursor":"Big cursor","feature.pageStructure":"Page structure","feature.tts":"Read aloud","feature.textSimplify":"Simplify text","feature.altText":"Generate alt-text","feature.autoScan":"WCAG scan"}),mr:ei({"widget.title":"प्रवेशयोग्यता","widget.subtitle":"या पानावर कॉन्ट्रास्ट, मजकूर आणि नेव्हिगेशन समायोजित करा","widget.open":"प्रवेशयोग्यता सेटिंग्ज उघडा","widget.close":"बंद करा","widget.reset":"सर्व रीसेट करा","widget.resetConfirm":"सर्व बदल रीसेट झाले","widget.poweredBy":"Accessify-Widget द्वारे समर्थित","widget.statement":"प्रवेशयोग्यता निवेदन","widget.language":"भाषा","status.active":"{count} सक्रिय","status.noActive":"कोणतेही बदल सक्रिय नाहीत","status.activated":"सक्रिय","status.deactivated":"निष्क्रिय","section.essentials":"सर्वात जास्त वापरलेले","section.essentials.desc":"कॉन्ट्रास्ट, मजकूर आकार आणि कीबोर्ड सहाय्यापासून सुरुवात करा.","section.support":"वाचन आणि नेव्हिगेशन","section.support.desc":"फोकस, कमी हालचाल आणि पृष्ठरचना यासाठी साधने.","section.ai":"AI मदत","section.ai.desc":"मजकूर सोपा करा, alt-text तयार करा आणि हे पान स्कॅन करा.","control.mostUsed":"सर्वाधिक वापरलेले","control.chooseMode":"मोड निवडा","control.default":"डीफॉल्ट","contrast.mode.light":"लाईट कॉन्ट्रास्ट","contrast.mode.dark":"डार्क कॉन्ट्रास्ट","contrast.mode.high":"हाय कॉन्ट्रास्ट","feature.contrast":"कॉन्ट्रास्ट","feature.textSize":"मोठा मजकूर","feature.keyboardNav":"कीबोर्ड नेव्हिगेशन","feature.focusHighlight":"फोकस हायलाइट","feature.linkHighlight":"लिंक हायलाइट","feature.animationStop":"अ‍ॅनिमेशन थांबवा","feature.readingGuide":"वाचन मार्गदर्शक","feature.readingMask":"वाचन मास्क","feature.hideImages":"प्रतिमा लपवा","feature.bigCursor":"मोठा कर्सर","feature.pageStructure":"पृष्ठरचना","feature.tts":"मोठ्याने वाचा","feature.textSimplify":"मजकूर सोपा करा","feature.altText":"alt-text तयार करा","feature.autoScan":"WCAG स्कॅन"}),te:ei({"widget.title":"అందుబాటు","widget.subtitle":"ఈ పేజీలో కాంట్రాస్ట్, టెక్స్ట్ మరియు నావిగేషన్‌ను సర్దుబాటు చేయండి","widget.open":"అందుబాటు సెట్టింగ్స్ తెరువు","widget.close":"మూసివేయి","widget.reset":"అన్నీ రీసెట్ చేయి","widget.resetConfirm":"అన్ని మార్పులు రీసెట్ అయ్యాయి","widget.poweredBy":"Accessify-Widget ద్వారా","widget.statement":"అందుబాటు ప్రకటన","widget.language":"భాష","status.active":"{count} సక్రియం","status.noActive":"ఏ మార్పూ సక్రియంగా లేదు","status.activated":"సక్రియం","status.deactivated":"నిష్క్రియం","section.essentials":"ఎక్కువగా ఉపయోగించేవి","section.essentials.desc":"కాంట్రాస్ట్, టెక్స్ట్ సైజు మరియు కీబోర్డ్ సహాయంతో మొదలుపెట్టండి.","section.support":"చదువు మరియు నావిగేషన్","section.support.desc":"ఫోకస్, తక్కువ మోషన్ మరియు పేజీ నిర్మాణానికి టూల్స్.","section.ai":"AI సహాయం","section.ai.desc":"కంటెంట్‌ను సులభతరం చేయండి, alt-text తయారు చేయండి, ఈ పేజీని స్కాన్ చేయండి.","control.mostUsed":"ఎక్కువ ఉపయోగం","control.chooseMode":"మోడ్ ఎంచుకోండి","control.default":"డిఫాల్ట్","contrast.mode.light":"లైట్ కాంట్రాస్ట్","contrast.mode.dark":"డార్క్ కాంట్రాస్ట్","contrast.mode.high":"హై కాంట్రాస్ట్","feature.contrast":"కాంట్రాస్ట్","feature.textSize":"పెద్ద టెక్స్ట్","feature.keyboardNav":"కీబోర్డ్ నావిగేషన్","feature.focusHighlight":"ఫోకస్ హైలైట్","feature.linkHighlight":"లింక్ హైలైట్","feature.animationStop":"యానిమేషన్స్ ఆపండి","feature.readingGuide":"రీడింగ్ గైడ్","feature.readingMask":"రీడింగ్ మాస్క్","feature.hideImages":"చిత్రాలు దాచు","feature.bigCursor":"పెద్ద కర్సర్","feature.pageStructure":"పేజీ నిర్మాణం","feature.tts":"గట్టిగా చదవండి","feature.textSimplify":"టెక్స్ట్ సులభతరం చేయి","feature.altText":"alt-text రూపొందించు","feature.autoScan":"WCAG స్కాన్"}),tr:ei({"widget.title":"Erisilebilirlik","widget.subtitle":"Bu sayfada kontrast, metin ve gezinmeyi ayarlayin","widget.open":"Erisilebilirlik ayarlarini ac","widget.close":"Kapat","widget.reset":"Tumunu sifirla","widget.resetConfirm":"Tum ayarlar sifirlandi","widget.poweredBy":"Accessify-Widget ile calisir","widget.statement":"Erisilebilirlik bildirimi","widget.language":"Dil","status.active":"{count} etkin","status.noActive":"Etkin ayar yok","status.activated":"etkin","status.deactivated":"devre disi","section.essentials":"En cok kullanilanlar","section.essentials.desc":"Kontrast, yazi boyutu ve klavye destegi ile baslayin.","section.support":"Okuma ve gezinme","section.support.desc":"Odak, azaltulmis hareket ve sayfa yapisi icin araclar.","section.ai":"YZ yardimi","section.ai.desc":"Icerigi sadeletir, alt metin olusturur ve mevcut sayfayi tarar.","control.mostUsed":"En cok kullanilan","control.chooseMode":"Mod sec","control.default":"Varsayilan","contrast.mode.light":"Acik kontrast","contrast.mode.dark":"Koyu kontrast","contrast.mode.high":"Yuksek kontrast","feature.contrast":"Kontrast","feature.textSize":"Buyuk metin","feature.keyboardNav":"Klavye gezintisi","feature.focusHighlight":"Odak vurgusu","feature.linkHighlight":"Baglantilari vurgula","feature.animationStop":"Animasyonlari durdur","feature.readingGuide":"Okuma kilavuzu","feature.readingMask":"Okuma maskesi","feature.hideImages":"Gorselleri gizle","feature.bigCursor":"Buyuk imlec","feature.pageStructure":"Sayfa yapisi","feature.tts":"Sesli oku","feature.textSimplify":"Metni sadeletir","feature.altText":"Alt metin olustur","feature.autoScan":"WCAG taramasi"}),ta:ei({"widget.title":"அணுகல்திறன்","widget.subtitle":"இந்த பக்கத்தில் எதிரொலி, உரை மற்றும் வழிசெலுத்தலை மாற்றுங்கள்","widget.open":"அணுகல்திறன் அமைப்புகளை திறக்கவும்","widget.close":"மூடு","widget.reset":"அனைத்தையும் மீட்டமை","widget.resetConfirm":"அனைத்து மாற்றங்களும் மீட்டமைக்கப்பட்டன","widget.poweredBy":"Accessify-Widget மூலம்","widget.statement":"அணுகல்திறன் அறிக்கை","widget.language":"மொழி","status.active":"{count} செயலில்","status.noActive":"செயலில் மாற்றங்கள் இல்லை","status.activated":"செயலில்","status.deactivated":"செயலற்றது","section.essentials":"அதிகம் பயன்படுத்தப்படும்","section.essentials.desc":"எதிரொலி, எழுத்து அளவு மற்றும் விசைப்பலகை உதவியுடன் தொடங்குங்கள்.","section.support":"வாசிப்பு மற்றும் வழிசெலுத்தல்","section.support.desc":"கவனம், குறைந்த இயக்கம் மற்றும் பக்க அமைப்புக்கான கருவிகள்.","section.ai":"AI உதவி","section.ai.desc":"உள்ளடக்கத்தை எளிமைப்படுத்தி, alt-text உருவாக்கி, இந்த பக்கத்தை ஸ்கேன் செய்யுங்கள்.","control.mostUsed":"அதிகம் பயன்படுத்தப்படும்","control.chooseMode":"முறையை தேர்வு செய்","control.default":"இயல்புநிலை","contrast.mode.light":"ஒளி எதிரொலி","contrast.mode.dark":"இருண்ட எதிரொலி","contrast.mode.high":"உயர் எதிரொலி","feature.contrast":"எதிரொலி","feature.textSize":"பெரிய எழுத்து","feature.keyboardNav":"விசைப்பலகை வழிசெலுத்தல்","feature.focusHighlight":"கவனத்தை வெளிப்படுத்து","feature.linkHighlight":"இணைப்புகளை வெளிப்படுத்து","feature.animationStop":"அனிமேஷனை நிறுத்து","feature.readingGuide":"வாசிப்பு வழிகாட்டி","feature.readingMask":"வாசிப்பு மறைப்பு","feature.hideImages":"படங்களை மறை","feature.bigCursor":"பெரிய கர்சர்","feature.pageStructure":"பக்க அமைப்பு","feature.tts":"சத்தமாக வாசி","feature.textSimplify":"உரையை எளிமைப்படுத்து","feature.altText":"alt-text உருவாக்கு","feature.autoScan":"WCAG ஸ்கேன்"}),vi:ei({"widget.title":"Tro nang truy cap","widget.subtitle":"Dieu chinh tuong phan, van ban va dieu huong tren trang nay","widget.open":"Mo cai dat tro nang truy cap","widget.close":"Dong","widget.reset":"Dat lai tat ca","widget.resetConfirm":"Da dat lai moi dieu chinh","widget.poweredBy":"Van hanh boi Accessify-Widget","widget.statement":"Tuyen bo tro nang truy cap","widget.language":"Ngon ngu","status.active":"{count} muc dang bat","status.noActive":"Khong co dieu chinh nao dang bat","status.activated":"da bat","status.deactivated":"da tat","section.essentials":"Dung nhieu nhat","section.essentials.desc":"Bat dau voi tuong phan, co chu va ho tro ban phim.","section.support":"Doc va dieu huong","section.support.desc":"Cong cu cho tap trung, giam chuyen dong va cau truc trang.","section.ai":"Ho tro AI","section.ai.desc":"Don gian hoa noi dung, tao alt-text va quet trang hien tai.","control.mostUsed":"Pho bien","control.chooseMode":"Chon che do","control.default":"Mac dinh","contrast.mode.light":"Tuong phan sang","contrast.mode.dark":"Tuong phan toi","contrast.mode.high":"Tuong phan cao","feature.contrast":"Tuong phan","feature.textSize":"Chu lon hon","feature.keyboardNav":"Dieu huong ban phim","feature.focusHighlight":"Noi bat tieu diem","feature.linkHighlight":"Noi bat lien ket","feature.animationStop":"Dung hieu ung","feature.readingGuide":"Thuoc doc","feature.readingMask":"Mat na doc","feature.hideImages":"An hinh anh","feature.bigCursor":"Con tro lon","feature.pageStructure":"Cau truc trang","feature.tts":"Doc thanh tieng","feature.textSimplify":"Don gian hoa van ban","feature.altText":"Tao alt-text","feature.autoScan":"Quet WCAG"}),ko:ei({"widget.title":"접근성","widget.subtitle":"이 페이지의 대비, 텍스트, 내비게이션을 조정하세요","widget.open":"접근성 설정 열기","widget.close":"닫기","widget.reset":"모두 재설정","widget.resetConfirm":"모든 조정이 재설정되었습니다","widget.poweredBy":"Accessify-Widget 제공","widget.statement":"접근성 안내문","widget.language":"언어","status.active":"{count}개 활성","status.noActive":"활성화된 조정이 없습니다","status.activated":"활성화됨","status.deactivated":"비활성화됨","section.essentials":"가장 많이 사용됨","section.essentials.desc":"대비, 글자 크기, 키보드 지원부터 시작하세요.","section.support":"읽기 및 내비게이션","section.support.desc":"초점, 움직임 감소, 페이지 구조를 위한 도구입니다.","section.ai":"AI 지원","section.ai.desc":"콘텐츠를 쉽게 만들고 대체 텍스트를 생성하며 현재 페이지를 검사합니다.","control.mostUsed":"가장 많이 사용됨","control.chooseMode":"모드 선택","control.default":"기본값","contrast.mode.light":"라이트 대비","contrast.mode.dark":"다크 대비","contrast.mode.high":"고대비","feature.contrast":"대비","feature.textSize":"큰 글자","feature.keyboardNav":"키보드 내비게이션","feature.focusHighlight":"포커스 강조","feature.linkHighlight":"링크 강조","feature.animationStop":"애니메이션 중지","feature.readingGuide":"읽기 가이드","feature.readingMask":"읽기 마스크","feature.hideImages":"이미지 숨기기","feature.bigCursor":"큰 커서","feature.pageStructure":"페이지 구조","feature.tts":"소리 내어 읽기","feature.textSimplify":"텍스트 단순화","feature.altText":"대체 텍스트 생성","feature.autoScan":"WCAG 검사"})},ni=[{code:"en",label:"English"},{code:"zh",label:"中文"},{code:"hi",label:"हिन्दी"},{code:"es",label:"Español"},{code:"fr",label:"Français"},{code:"ar",label:"العربية"},{code:"bn",label:"বাংলা"},{code:"pt",label:"Português"},{code:"ru",label:"Русский"},{code:"ur",label:"اردو"},{code:"id",label:"Bahasa Indonesia"},{code:"de",label:"Deutsch"},{code:"ja",label:"日本語"},{code:"pcm",label:"Naijá"},{code:"mr",label:"मराठी"},{code:"te",label:"తెలుగు"},{code:"tr",label:"Türkçe"},{code:"ta",label:"தமிழ்"},{code:"vi",label:"Tiếng Việt"},{code:"ko",label:"한국어"}],ai=new Set(["ar","ur"]);let ii="en";function ri(e){if(!e)return"en";const t=e.toLowerCase();if(ti[t])return t;const n=t.split("-")[0];return ti[n]?n:"en"}function oi(){return ii}function si(e){return ai.has(ri(e))}function ci(e,t="en"){const n=ri(t);return ti[n]?.[e]||Qa[e]||e}var li=ba('<button class="accessify-trigger"></button>');ga(["click"]);var di=ba("<option> </option>"),ui=ba('<label class="accessify-language-picker"><span class="sr-only"> </span> <span class="accessify-language-icon" aria-hidden="true"></span> <select class="accessify-language-select"></select></label>'),fi=ba('<div class="accessify-header"><div class="accessify-header-copy"><span class="accessify-header-kicker"> </span> <div class="accessify-header-title"><h2> </h2> <p> </p></div></div> <div class="accessify-header-toolbar"><!> <div class="accessify-header-actions"><button class="accessify-header-btn"><!> <span> </span></button> <button class="accessify-header-btn accessify-header-btn--icon"></button></div></div></div>');ga(["change","click"]);var pi=ba('<button class="accessify-status-reset"> </button>'),gi=ba('<div class="accessify-status" role="status" aria-live="polite"><span class="accessify-status-count"> </span> <!></div>');ga(["click"]);const hi="https://openrouter.ai/api/v1";class mi extends Error{constructor(e){super(e),this.name="RateLimitError"}}var vi=ba('<button class="accessify-chip"> </button>'),yi=ba('<article class="accessify-control-card accessify-control-card--contrast"><div class="accessify-control-copy"><span class="accessify-card-icon" aria-hidden="true"></span> <div><h4> </h4> <p> </p></div></div> <div class="accessify-chip-group" role="group"></div></article>'),bi=ba('<button class="accessify-chip"> </button>'),xi=ba('<article class="accessify-control-card accessify-control-card--text-size"><div class="accessify-control-copy"><span class="accessify-card-icon" aria-hidden="true"></span> <div><h4> </h4> <p> </p></div></div> <div class="accessify-chip-group accessify-chip-group--sizes" role="group"></div></article>'),wi=ba('<button class="accessify-card" role="switch"><div class="accessify-card-top"><span class="accessify-card-icon" aria-hidden="true"></span></div> <span class="accessify-card-label"> </span> <span class="accessify-card-desc"> </span></button>'),ki=ba('<div class="accessify-features"></div>'),_i=ba('<section class="accessify-section accessify-section--spotlight"><div class="accessify-section-head"><div><span class="accessify-section-kicker"> </span> <h3> </h3> <p> </p></div></div> <div class="accessify-control-grid"><!> <!></div> <!></section>'),Si=ba('<button class="accessify-card" role="switch"><div class="accessify-card-top"><span class="accessify-card-icon" aria-hidden="true"></span></div> <span class="accessify-card-label"> </span> <span class="accessify-card-desc"> </span></button>'),Ai=ba('<section class="accessify-section"><div class="accessify-section-head"><div><h3> </h3> <p> </p></div></div> <div class="accessify-features"></div></section>'),Ci=ba('<div class="accessify-body"><!> <!></div>');ga(["click"]);var Mi=ba('<span aria-hidden="true">&middot;</span> <a target="_blank" rel="noopener noreferrer"> </a>',1),Ei=ba('<div class="accessify-footer"><span> </span> <!></div>'),$i=ba('<div class="sr-only" role="status" aria-live="polite" aria-atomic="true"> </div> <!> <div class="accessify-panel" role="dialog"><!> <!> <!> <!></div>',1);function zi(e,t){Re(t,!0);let n=Fa(t,"config",7),a=Ft(!1),i=Ft(Zt(new Map)),r=Ft("light"),o=Ft(null),s=Ft(null),c=Ft(""),l=Ft("en");const d="accessify-prefs";let u=Tt(()=>Array.from(ia(i).values()).filter(Boolean).length);function f(e){qt(c,""),requestAnimationFrame(()=>{qt(c,e,!0)})}function p(){try{const e=Object.fromEntries(ia(i));localStorage.setItem(d,JSON.stringify(e))}catch{}}function g(){const e=t.shadow.getElementById("accessify-mount");e&&("auto"===n().theme?e.removeAttribute("data-theme"):e.setAttribute("data-theme",ia(r)))}function h(){const e=t.shadow.getElementById("accessify-mount"),n=si(ia(l))?"rtl":"ltr";var a;e&&(e.setAttribute("lang",ia(l)),e.setAttribute("dir",n)),t.shadow.host.setAttribute("lang",ia(l)),t.shadow.host.setAttribute("dir",n),a=ia(l),ii=ri(a)}function m(){qt(a,!0),requestAnimationFrame(()=>{if(ia(o)){const e=ia(o).querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');e?.focus()}})}function v(){qt(a,!1);const e=t.shadow.querySelector(".accessify-trigger");e?.focus()}function y(){qt(i,new Map,!0),p(),window.dispatchEvent(new CustomEvent("accessify:reset")),f(ci("widget.resetConfirm",ia(l)))}var b;b=()=>{qt(l,ri(n().lang||"en"),!0),function(){if("light"===n().theme||"dark"===n().theme)return void qt(r,n().theme,!0);const e=window.matchMedia("(prefers-color-scheme: dark)");qt(r,e.matches?"dark":"light",!0),e.addEventListener("change",e=>{"auto"===n().theme&&(qt(r,e.matches?"dark":"light",!0),g())})}(),g(),function(){try{const e=localStorage.getItem(d);if(e){const t=JSON.parse(e);qt(i,new Map(Object.entries(t)),!0)}}catch{}}(),h()},null===Oe&&function(){if(R){const e=new Error("lifecycle_outside_component\n`onMount(...)` can only be used during component initialisation\nhttps://svelte.dev/e/lifecycle_outside_component");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/lifecycle_outside_component")}(),yn(()=>{const e=sa(b);if("function"==typeof e)return e});var x,w,k,_={open:m,close:v},S=$i();k=function(e,t,n,a={}){function i(e){if(a.capture||ma.call(t,e),!e.cancelBubble)return gn(()=>n?.call(this,e))}return e.startsWith("pointer")||e.startsWith("touch")||"wheel"===e?Ye(()=>{t.addEventListener(e,i,a)}):t.addEventListener(e,i,a),i}("keydown",x=nn,function(e){if("Escape"===e.key&&ia(a))return e.preventDefault(),void v();if("Tab"===e.key&&ia(a)&&ia(o)){const n=ia(o).querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');if(0===n.length)return;const a=n[0],i=n[n.length-1],r=t.shadow.activeElement||document.activeElement;e.shiftKey&&r===a?(e.preventDefault(),i.focus()):e.shiftKey||r!==i||(e.preventDefault(),a.focus())}},w={capture:void 0,passive:void 0}),(x===document.body||x===window||x===document||x instanceof HTMLMediaElement)&&vn(()=>{x.removeEventListener("keydown",k,w)});var A=un(S),C=dn(A),M=fn(A,2);!function(e,t){Re(t,!0);let n=Fa(t,"lang",3,"en"),a=Fa(t,"el",15,null);var i=li();La(i,()=>t.isOpen?Ya():qa(),!0),Ka(i,e=>a(e),()=>a()),wn(e=>{Na(i,"aria-expanded",t.isOpen),Na(i,"aria-label",e)},[()=>ci(t.isOpen?"widget.close":"widget.open",n())]),pa("click",i,function(...e){t.onclick?.apply(this,e)}),xa(e,i),Ue()}(M,{get isOpen(){return ia(a)},get lang(){return ia(l)},onclick:function(){ia(a)?v():m()},get el(){return ia(s)},set el(e){qt(s,e,!0)}});var E=fn(M,2),$=dn(E);!function(e,t){Re(t,!0);let n=Fa(t,"lang",3,"en");function a(e){const n=e.currentTarget;t.onlangchange?.(n.value)}var i=fi(),r=dn(i),o=dn(r),s=dn(o),c=dn(fn(o,2)),l=dn(c),d=dn(fn(c,2)),u=dn(fn(r,2)),f=e=>{var t=ui(),i=dn(t),r=dn(i),o=fn(i,2);La(o,Za,!0);var s,c=fn(o,2);$a(c,21,()=>ni,Ca,(e,t)=>{var n=di(),a=dn(n),i={};wn(()=>{wa(a,ia(t).label),i!==(i=ia(t).code)&&(n.value=(n.__value=ia(t).code)??"")}),xa(e,n)}),function(e){var t=new MutationObserver(()=>{Wa(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),vn(()=>{t.disconnect()})}(c),wn((e,t)=>{wa(r,e),Na(c,"aria-label",t),s!==(s=n())&&(c.value=(c.__value=n())??"",Wa(c,n()))},[()=>ci("widget.language",n()),()=>ci("widget.language",n())]),pa("change",c,a),xa(e,t)};Aa(u,e=>{t.onlangchange&&e(f)});var p=dn(fn(u,2)),g=dn(p);La(g,Ja);var h=dn(fn(g,2)),m=fn(p,2);La(m,Ya,!0),wn((e,t,n,a,i,r)=>{wa(s,e),wa(l,t),wa(d,n),Na(p,"aria-label",a),wa(h,i),Na(m,"aria-label",r)},[()=>ci("control.mostUsed",n()),()=>ci("widget.title",n()),()=>ci("widget.subtitle",n()),()=>ci("widget.reset",n()),()=>ci("widget.reset",n()),()=>ci("widget.close",n())]),pa("click",p,function(...e){t.onreset?.apply(this,e)}),pa("click",m,function(...e){t.onclose?.apply(this,e)}),xa(e,i),Ue()}($,{get lang(){return ia(l)},onclose:v,onreset:y,onlangchange:function(e){qt(l,ri(e),!0),n().lang=ia(l),h()}});var z=fn($,2);!function(e,t){Re(t,!0);let n=Fa(t,"activeCount",3,0),a=Fa(t,"lang",3,"en"),i=Tt(()=>n()>0?ci("status.active",a()).replace("{count}",String(n())):ci("status.noActive",a()));var r=gi(),o=dn(r),s=dn(o),c=fn(o,2),l=e=>{var n=pi(),i=dn(n);wn(e=>wa(i,e),[()=>ci("widget.reset",a())]),pa("click",n,function(...e){t.onreset?.apply(this,e)}),xa(e,n)};Aa(c,e=>{n()>0&&e(l)}),wn(()=>{Na(o,"data-count",n()),wa(s,ia(i))}),xa(e,r),Ue()}(z,{get activeCount(){return ia(u)},get lang(){return ia(l)},onreset:y});var T=fn(z,2);{let e=Tt(()=>({...n(),lang:ia(l)}));!function(e,t){Re(t,!0);const n={"keyboard-nav":{id:"keyboard-nav",nameKey:"feature.keyboardNav",descKey:"feature.keyboardNav.desc",iconId:"keyboard"},"focus-highlight":{id:"focus-highlight",nameKey:"feature.focusHighlight",descKey:"feature.focusHighlight.desc",iconId:"focus"},"link-highlight":{id:"link-highlight",nameKey:"feature.linkHighlight",descKey:"feature.linkHighlight.desc",iconId:"link-highlight"},"reading-guide":{id:"reading-guide",nameKey:"feature.readingGuide",descKey:"feature.readingGuide.desc",iconId:"reading-guide"},"reading-mask":{id:"reading-mask",nameKey:"feature.readingMask",descKey:"feature.readingMask.desc",iconId:"reading-mask"},"animation-stop":{id:"animation-stop",nameKey:"feature.animationStop",descKey:"feature.animationStop.desc",iconId:"animation-pause"},"hide-images":{id:"hide-images",nameKey:"feature.hideImages",descKey:"feature.hideImages.desc",iconId:"hide-images"},"big-cursor":{id:"big-cursor",nameKey:"feature.bigCursor",descKey:"feature.bigCursor.desc",iconId:"cursor"},"page-structure":{id:"page-structure",nameKey:"feature.pageStructure",descKey:"feature.pageStructure.desc",iconId:"page-structure"},tts:{id:"tts",nameKey:"feature.tts",descKey:"feature.tts.desc",iconId:"tts"},"text-simplify":{id:"text-simplify",nameKey:"feature.textSimplify",descKey:"feature.textSimplify.desc",iconId:"simplify-text"},"alt-text":{id:"alt-text",nameKey:"feature.altText",descKey:"feature.altText.desc",iconId:"alt-text"},"auto-scan":{id:"auto-scan",nameKey:"feature.autoScan",descKey:"feature.autoScan.desc",iconId:"scan"}},a=[{id:"essentials",labelKey:"section.essentials",descKey:"section.essentials.desc",featureIds:["keyboard-nav","focus-highlight","link-highlight"]},{id:"support",labelKey:"section.support",descKey:"section.support.desc",featureIds:["reading-guide","reading-mask","animation-stop","hide-images","page-structure","big-cursor","tts"]},{id:"ai",labelKey:"section.ai",descKey:"section.ai.desc",featureIds:["text-simplify","alt-text","auto-scan"]}],i=[{id:"off",labelKey:"control.default"},{id:"light",labelKey:"contrast.mode.light"},{id:"dark",labelKey:"contrast.mode.dark"},{id:"high",labelKey:"contrast.mode.high"}],r=[100,120,140,160,180],o=new Set(["text-simplify","alt-text"]),s=new Map,c={contrast:()=>Promise.resolve().then(()=>Ui),"text-size":()=>Promise.resolve().then(()=>Vi),"keyboard-nav":()=>Promise.resolve().then(()=>Yi),"focus-highlight":()=>Promise.resolve().then(()=>Ji),"link-highlight":()=>Promise.resolve().then(()=>Zi),"reading-guide":()=>Promise.resolve().then(()=>Qi),"reading-mask":()=>Promise.resolve().then(()=>er),"animation-stop":()=>Promise.resolve().then(()=>tr),"hide-images":()=>Promise.resolve().then(()=>nr),"big-cursor":()=>Promise.resolve().then(()=>ir),"page-structure":()=>Promise.resolve().then(()=>rr),tts:()=>Promise.resolve().then(()=>sr),"text-simplify":()=>Promise.resolve().then(()=>cr),"alt-text":()=>Promise.resolve().then(()=>lr),"auto-scan":()=>Promise.resolve().then(()=>ur)};let l,d=Ft(Zt(function(){if("undefined"==typeof window)return"off";const e=localStorage.getItem("accessify-contrast-mode");return"light"===e||"dark"===e||"high"===e?e:"off"}())),u=Ft(Zt(function(){if("undefined"==typeof window)return 100;const e=Number.parseInt(localStorage.getItem("accessify-text-size")||"100",10);return Number.isFinite(e)?Math.max(100,Math.min(200,e)):100}())),f=Tt(()=>new Set(t.config.features)),p=Tt(()=>m(a[0].featureIds)),g=Tt(()=>Array.from(t.activeFeatures.entries()).sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>`${e}:${t}`).join("|"));function h(e){const t=Xa[e];return t?t():""}function m(e){return e.filter(e=>ia(f).has(e)).map(e=>n[e]).filter(Boolean)}function v(e,t){if(!t)return;const n=t.getState();"contrast"===e&&qt(d,"light"===n.value||"dark"===n.value||"high"===n.value?n.value:"off",!0),"text-size"===e&&qt(u,"number"==typeof n.value?n.value:100,!0)}async function y(e){if(s.has(e))return s.get(e);const n=c[e];if(!n)return null;try{const i=await n(),r=i.default??i,c="function"==typeof r?o.has(e)?r((l||(l=(a={apiKey:t.config.openRouterKey,siteKey:t.config.siteKey,proxyUrl:t.config.proxyUrl}).siteKey?function(e,t){const n=t||"https://accessify-api.accessify.workers.dev",a={"Content-Type":"application/json","X-Site-Key":e};return{async simplifyText(e,t="einfache",i="de"){const r=await fetch(`${n}/v1/ai/simplify`,{method:"POST",headers:a,body:JSON.stringify({text:e,level:t,lang:i})});if(!r.ok){const e=await r.json().catch(()=>({error:`HTTP ${r.status}`}));if(429===r.status)throw new mi(e.error||"Rate limit reached");throw new Error(e.error||`AI proxy error: ${r.status}`)}return(await r.json()).result||""},async generateAltText(e,t){const i=await fetch(`${n}/v1/ai/alt-text`,{method:"POST",headers:a,body:JSON.stringify({imageUrl:e,context:t})});if(!i.ok){const e=await i.json().catch(()=>({error:`HTTP ${i.status}`}));if(429===i.status)throw new mi(e.error||"Rate limit reached");throw new Error(e.error||`AI proxy error: ${i.status}`)}return(await i.json()).result||""}}}(a.siteKey,a.proxyUrl):function(e){const t={"Content-Type":"application/json",...e.apiKey?{Authorization:`Bearer ${e.apiKey}`}:{},"HTTP-Referer":"undefined"!=typeof window?window.location.origin:"","X-Title":"Accessify Widget"};return{async simplifyText(n,a="einfache",i="de"){const r=i.startsWith("de")?function(e){return"leichte"===e?"Du bist ein Experte für Leichte Sprache (DIN SPEC 33429). Vereinfache den folgenden Text nach diesen Regeln:\n- Benutze kurze Sätze (maximal 8 Wörter pro Satz)\n- Ein Satz pro Zeile\n- Benutze einfache, bekannte Wörter\n- Erkläre Fremdwörter und Fachbegriffe\n- Benutze aktive Sätze (kein Passiv)\n- Benutze keine Abkürzungen\n- Benutze keine Metaphern oder bildliche Sprache\n- Schreibe in Präsens\n- Benutze positive Formulierungen\n- Zielgruppe: CEFR A1-A2\n\nGib NUR den vereinfachten Text zurück.":"Du bist ein Experte für Einfache Sprache (DIN ISO 24495-1). Vereinfache den folgenden Text:\n- Kurze, klare Sätze (maximal 15 Wörter)\n- Vermeide Fachbegriffe oder erkläre sie\n- Benutze aktive Formulierungen\n- Strukturiere den Text mit klaren Absätzen\n- Zielgruppe: CEFR B1-B2\n- Bewahre den vollständigen Inhalt\n\nGib NUR den vereinfachten Text zurück."}(a):"You are a plain language expert. Simplify the following text:\n- Use short, clear sentences (max 15 words)\n- Avoid jargon, explain technical terms\n- Use active voice\n- Target reading level: grade 6-8\n\nReturn ONLY the simplified text.",o=await fetch(`${hi}/chat/completions`,{method:"POST",headers:t,body:JSON.stringify({model:e.textModel||"qwen/qwen3-next-80b-a3b-instruct:free",messages:[{role:"system",content:r},{role:"user",content:n}],stream:!1,max_tokens:2e3})});if(!o.ok){if(429===o.status)throw new mi("Rate limit reached. Please try again later.");throw new Error(`AI service error: ${o.status}`)}const s=await o.json();return s.choices?.[0]?.message?.content?.trim()||""},async generateAltText(n,a){const i=await fetch(`${hi}/chat/completions`,{method:"POST",headers:t,body:JSON.stringify({model:e.visionModel||"meta-llama/llama-3.3-70b-instruct:free",messages:[{role:"user",content:[{type:"text",text:`Generate a concise, descriptive alt text for this image for web accessibility. ${a?"Context: "+a:""} Return ONLY the alt text, nothing else. Max 125 characters.`},{type:"image_url",image_url:{url:n}}]}],max_tokens:100})});if(!i.ok){if(429===i.status)throw new mi("Rate limit reached. Please try again later.");throw new Error(`AI vision error: ${i.status}`)}const r=await i.json();return r.choices?.[0]?.message?.content?.trim()||""}}}(a)),l),t.config.lang):r():r;return s.set(e,c),c}catch(i){return console.warn(`[Accessify] Failed to load feature module "${e}":`,i),null}var a}async function b(e){const n=!t.activeFeatures.get(e),a=await y(e);a&&(n?a.activate():a.deactivate(),v(e,a)),t.ontoggle(e,n)}"undefined"!=typeof window&&window.addEventListener("accessify:reset",function(){for(const[,e]of s)try{e.deactivate()}catch{}qt(d,"off"),qt(u,100)}),yn(()=>{t.config.features.join("|"),ia(g),async function(){const e=new Set(["contrast","text-size",...t.config.features]);for(const n of e){const e=t.activeFeatures.get(n)??!1,a=s.get(n);if(!e&&!a){"contrast"===n&&qt(d,"off"),"text-size"===n&&qt(u,100);continue}const i=e?await y(n):a;if(!i)continue;const r=i.getState().enabled;e&&!r&&i.activate(),!e&&r&&i.deactivate(),v(n,i)}}()});var x=Ci(),w=dn(x),k=e=>{var n=_i(),o=dn(n),s=dn(o),c=dn(s),l=dn(c),g=fn(c,2),m=dn(g),v=dn(fn(g,2)),x=fn(o,2),w=dn(x),k=e=>{var n=yi(),a=dn(n),r=dn(a);La(r,()=>h("contrast"),!0);var o=dn(fn(r,2)),s=dn(o),c=dn(fn(o,2)),l=fn(a,2);$a(l,21,()=>i,Ca,(e,n)=>{var a=vi(),i=dn(a);wn(e=>{Na(a,"data-active",ia(d)===ia(n).id),Na(a,"aria-pressed",ia(d)===ia(n).id),wa(i,e)},[()=>ci(ia(n).labelKey,t.config.lang)]),pa("click",a,()=>async function(e){const n=await y("contrast");if(n){if("off"===e)return n.deactivate(),qt(d,"off"),void t.ontoggle("contrast",!1);n.getState().enabled||n.activate(),n.setState?.(e),qt(d,e,!0),t.ontoggle("contrast",!0)}}(ia(n).id)),xa(e,a)}),wn((e,t,n)=>{wa(s,e),wa(c,t),Na(l,"aria-label",n)},[()=>ci("feature.contrast",t.config.lang),()=>ci("feature.contrast.desc",t.config.lang),()=>ci("control.chooseMode",t.config.lang)]),xa(e,n)},_=Tt(()=>ia(f).has("contrast"));Aa(w,e=>{ia(_)&&e(k)});var S=fn(w,2),A=e=>{var n=xi(),a=dn(n),i=dn(a);La(i,()=>h("text-size"),!0);var o=dn(fn(i,2)),s=dn(o),c=dn(fn(o,2)),l=fn(a,2);$a(l,21,()=>r,Ca,(e,n)=>{var a=bi(),i=dn(a);wn(()=>{Na(a,"data-active",ia(u)===ia(n)),Na(a,"aria-pressed",ia(u)===ia(n)),wa(i,`${ia(n)??""}%`)}),pa("click",a,()=>async function(e){const n=await y("text-size");if(n){if(100===e)return n.deactivate(),qt(u,100),void t.ontoggle("text-size",!1);n.getState().enabled||n.activate(),n.setState?.(e),qt(u,e,!0),t.ontoggle("text-size",!0)}}(ia(n))),xa(e,a)}),wn((e,t,n)=>{wa(s,e),wa(c,t),Na(l,"aria-label",n)},[()=>ci("feature.textSize",t.config.lang),()=>ci("feature.textSize.desc",t.config.lang),()=>ci("feature.textSize",t.config.lang)]),xa(e,n)},C=Tt(()=>ia(f).has("text-size"));Aa(S,e=>{ia(C)&&e(A)});var M=fn(x,2),E=e=>{var n=ki();$a(n,21,()=>ia(p),e=>e.id,(e,n)=>{const a=Tt(()=>t.activeFeatures.get(ia(n).id)??!1);var i=wi(),r=dn(i);La(dn(r),()=>h(ia(n).iconId),!0);var o=fn(r,2),s=dn(o),c=dn(fn(o,2));wn((e,t,n)=>{Na(i,"data-active",ia(a)),Na(i,"aria-checked",ia(a)),Na(i,"aria-label",e),wa(s,t),wa(c,n)},[()=>ci(ia(n).nameKey,t.config.lang),()=>ci(ia(n).nameKey,t.config.lang),()=>ci(ia(n).descKey,t.config.lang)]),pa("click",i,()=>b(ia(n).id)),xa(e,i)}),xa(e,n)};Aa(M,e=>{ia(p).length>0&&e(E)}),wn((e,t,n)=>{wa(l,e),wa(m,t),wa(v,n)},[()=>ci("control.mostUsed",t.config.lang),()=>ci(a[0].labelKey,t.config.lang),()=>ci(a[0].descKey,t.config.lang)]),xa(e,n)},_=Tt(()=>ia(f).has("contrast")||ia(f).has("text-size")||m(a[0].featureIds).length>0);Aa(w,e=>{ia(_)&&e(k)}),$a(fn(w,2),17,()=>a.slice(1),Ca,(e,n)=>{const a=Tt(()=>m(ia(n).featureIds));var i,r,o,s=(i=document.createDocumentFragment(),r=document.createComment(""),o=sn(),i.append(r,o),ya(r,o),i),c=un(s),l=e=>{var i=Ai(),r=dn(i),o=dn(r),s=dn(o),c=dn(s),l=dn(fn(s,2));$a(fn(r,2),21,()=>ia(a),e=>e.id,(e,n)=>{const a=Tt(()=>t.activeFeatures.get(ia(n).id)??!1);var i=Si(),r=dn(i);La(dn(r),()=>h(ia(n).iconId),!0);var o=fn(r,2),s=dn(o),c=dn(fn(o,2));wn((e,t,n)=>{Na(i,"data-active",ia(a)),Na(i,"aria-checked",ia(a)),Na(i,"aria-label",e),wa(s,t),wa(c,n)},[()=>ci(ia(n).nameKey,t.config.lang),()=>ci(ia(n).nameKey,t.config.lang),()=>ci(ia(n).descKey,t.config.lang)]),pa("click",i,()=>b(ia(n).id)),xa(e,i)}),wn((e,t)=>{wa(c,e),wa(l,t)},[()=>ci(ia(n).labelKey,t.config.lang),()=>ci(ia(n).descKey,t.config.lang)]),xa(e,i)};Aa(c,e=>{ia(a).length>0&&e(l)}),xa(e,s)}),xa(e,x),Ue()}(T,{get config(){return ia(e)},get activeFeatures(){return ia(i)},ontoggle:function(e,t){ia(i).set(e,t),qt(i,new Map(ia(i)),!0),p(),f(`${ci(`feature.${e.replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}`,ia(l))||e} ${ci(t?"status.activated":"status.deactivated",ia(l))}`)}})}return function(e,t){Re(t,!0);let n=Fa(t,"lang",3,"en");var a=Ei(),i=dn(a),r=dn(i),o=fn(i,2),s=e=>{var a=Mi(),i=fn(un(a),2),r=dn(i);wn(e=>{Na(i,"href",t.statementUrl),wa(r,e)},[()=>ci("widget.statement",n())]),xa(e,a)};Aa(o,e=>{t.statementUrl&&e(s)}),wn(e=>wa(r,e),[()=>ci("widget.poweredBy",n())]),xa(e,a),Ue()}(fn(T,2),{get lang(){return ia(l)},get statementUrl(){return n().statementUrl}}),Ka(E,e=>qt(o,e),()=>ia(o)),wn((e,t)=>{wa(C,ia(c)),Na(E,"aria-label",e),Na(E,"aria-hidden",!ia(a)),Na(E,"dir",t),E.dir=E.dir},[()=>ci("widget.title",ia(l)),()=>si(ia(l))?"rtl":"ltr"]),xa(e,S),Ue(_)}const Ti=encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg>'),Ii=new Set(["spacing","dyslexia-font","color-blind","color-blindness","saturation","text-align","line-height"]),Gi={position:"bottom-right",theme:"auto",lang:document.documentElement.lang||"en",features:["contrast","text-size","link-highlight","hide-images","reading-guide","reading-mask","focus-highlight","big-cursor","keyboard-nav","page-structure","animation-stop","tts","text-simplify","alt-text","auto-scan"],zIndex:999999,compact:!1};let Li=null,Wi=null,Bi={...Gi};function Pi(e={}){if(Li)return;const t=window.__accessify_dataConfig||{};Bi={...Gi,...t,...e},Bi.features=(Bi.features||Gi.features).filter(e=>!Ii.has(e)),Wi=document.createElement("div"),Wi.id="accessify-root",Wi.setAttribute("role","complementary"),Wi.setAttribute("aria-label",ci("widget.title",Bi.lang));const n=Wi.attachShadow({mode:"open",delegatesFocus:!0}),a=new CSSStyleSheet;a.replaceSync(function(e){const t=e.position||"bottom-right",n=t.includes("right"),a=t.includes("bottom"),i=e.zIndex||999999;return`\n :host {\n all: initial;\n font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", "Segoe UI", sans-serif;\n font-size: 15px;\n line-height: 1.5;\n color-scheme: light dark;\n }\n\n *, *::before, *::after {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n }\n\n #accessify-mount {\n --space-1: 4px;\n --space-2: 8px;\n --space-3: 12px;\n --space-4: 16px;\n --space-5: 20px;\n --space-6: 24px;\n --space-7: 32px;\n --radius-sm: 10px;\n --radius-md: 16px;\n --radius-lg: 24px;\n --radius-pill: 999px;\n --text-xs: 11px;\n --text-sm: 13px;\n --text-base: 15px;\n --text-lg: 18px;\n --text-xl: 24px;\n --font-medium: 500;\n --font-semibold: 600;\n --font-bold: 700;\n --surface: #f6efe4;\n --surface-strong: #fffdf9;\n --surface-muted: #ece4d8;\n --surface-tint: #e2eee8;\n --text: #17212b;\n --text-secondary: #52616f;\n --border: rgba(23, 33, 43, 0.12);\n --border-strong: rgba(23, 33, 43, 0.22);\n --accent: #0f766e;\n --accent-strong: #0b5c56;\n --accent-soft: rgba(15, 118, 110, 0.12);\n --signal: #c97a1e;\n --signal-soft: rgba(201, 122, 30, 0.14);\n --text-on-accent: #ffffff;\n --shadow-sm: 0 12px 24px rgba(16, 24, 32, 0.08);\n --shadow-lg: 0 28px 80px rgba(9, 21, 30, 0.2);\n --transition-fast: 140ms ease;\n --transition-normal: 220ms ease;\n }\n\n @media (prefers-color-scheme: dark) {\n #accessify-mount:not([data-theme="light"]) {\n --surface: #0f1a22;\n --surface-strong: #132330;\n --surface-muted: #1a2b38;\n --surface-tint: #17323a;\n --text: #f4f7fa;\n --text-secondary: #b4c3ce;\n --border: rgba(244, 247, 250, 0.12);\n --border-strong: rgba(244, 247, 250, 0.22);\n --accent: #2dd4bf;\n --accent-strong: #16b5a1;\n --accent-soft: rgba(45, 212, 191, 0.12);\n --signal: #f6ad55;\n --signal-soft: rgba(246, 173, 85, 0.16);\n --shadow-sm: 0 12px 24px rgba(0, 0, 0, 0.28);\n --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.45);\n }\n }\n\n #accessify-mount[data-theme="dark"] {\n --surface: #0f1a22;\n --surface-strong: #132330;\n --surface-muted: #1a2b38;\n --surface-tint: #17323a;\n --text: #f4f7fa;\n --text-secondary: #b4c3ce;\n --border: rgba(244, 247, 250, 0.12);\n --border-strong: rgba(244, 247, 250, 0.22);\n --accent: #2dd4bf;\n --accent-strong: #16b5a1;\n --accent-soft: rgba(45, 212, 191, 0.12);\n --signal: #f6ad55;\n --signal-soft: rgba(246, 173, 85, 0.16);\n --shadow-sm: 0 12px 24px rgba(0, 0, 0, 0.28);\n --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.45);\n }\n\n .sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n }\n\n *:focus-visible {\n outline: 3px solid var(--signal);\n outline-offset: 3px;\n border-radius: 12px;\n }\n\n .accessify-trigger {\n position: fixed;\n ${a?"bottom: 20px":"top: 20px"};\n ${n?"right: 20px":"left: 20px"};\n z-index: ${i};\n width: 64px;\n height: 64px;\n border: none;\n border-radius: 22px;\n background:\n radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.22), transparent 42%),\n linear-gradient(145deg, #0f766e 0%, #144f67 55%, #c97a1e 100%);\n color: #ffffff;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n box-shadow: 0 18px 42px rgba(12, 36, 46, 0.34);\n transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);\n }\n\n .accessify-trigger:hover {\n transform: translateY(-2px) scale(1.02);\n box-shadow: 0 22px 48px rgba(12, 36, 46, 0.42);\n filter: saturate(1.06);\n }\n\n .accessify-trigger:active {\n transform: translateY(0) scale(0.98);\n }\n\n .accessify-trigger svg {\n width: 30px;\n height: 30px;\n }\n\n .accessify-panel {\n position: fixed;\n ${a?"bottom: 96px":"top: 96px"};\n ${n?"right: 20px":"left: 20px"};\n z-index: ${i-1};\n width: 476px;\n max-height: calc(100vh - 120px);\n display: flex;\n flex-direction: column;\n overflow: hidden;\n border-radius: 28px;\n border: 1px solid var(--border);\n background:\n radial-gradient(circle at top right, rgba(201, 122, 30, 0.16), transparent 36%),\n linear-gradient(180deg, var(--surface-strong) 0%, var(--surface) 100%);\n color: var(--text);\n box-shadow: var(--shadow-lg);\n transform-origin: ${a?"bottom":"top"} ${n?"right":"left"};\n transition: opacity var(--transition-normal), transform var(--transition-normal);\n backdrop-filter: blur(18px);\n }\n\n .accessify-panel[aria-hidden="true"] {\n opacity: 0;\n transform: scale(0.96) translateY(${a?"12px":"-12px"});\n pointer-events: none;\n display: none;\n }\n\n .accessify-panel[aria-hidden="false"] {\n opacity: 1;\n transform: scale(1) translateY(0);\n }\n\n .accessify-header {\n position: relative;\n display: grid;\n gap: var(--space-4);\n padding: var(--space-5);\n background:\n radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 34%),\n linear-gradient(145deg, #0f2430 0%, #103e4c 52%, #1a5d4b 100%);\n color: #f5fbff;\n }\n\n .accessify-header-copy {\n display: grid;\n gap: var(--space-2);\n }\n\n .accessify-header-kicker {\n display: inline-flex;\n align-items: center;\n width: fit-content;\n padding: 6px 10px;\n border-radius: var(--radius-pill);\n background: rgba(255, 255, 255, 0.12);\n color: #ffe2b8;\n font-size: var(--text-xs);\n font-weight: var(--font-semibold);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n }\n\n .accessify-header-title {\n display: grid;\n gap: 6px;\n }\n\n .accessify-header h2 {\n font-size: var(--text-xl);\n font-weight: var(--font-bold);\n line-height: 1.1;\n }\n\n .accessify-header p {\n color: rgba(245, 251, 255, 0.82);\n font-size: var(--text-sm);\n max-width: 34ch;\n }\n\n .accessify-header-toolbar {\n display: flex;\n align-items: center;\n gap: var(--space-3);\n justify-content: space-between;\n flex-wrap: wrap;\n }\n\n .accessify-language-picker {\n position: relative;\n display: inline-flex;\n align-items: center;\n gap: 10px;\n min-width: 172px;\n padding: 0 14px;\n border-radius: 16px;\n border: 1px solid rgba(255, 255, 255, 0.16);\n background: rgba(10, 23, 29, 0.24);\n color: #ffffff;\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);\n }\n\n .accessify-language-icon {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n color: #9ce4da;\n }\n\n .accessify-language-icon svg {\n width: 16px;\n height: 16px;\n }\n\n .accessify-language-select {\n appearance: none;\n width: 100%;\n border: none;\n background: transparent;\n color: #ffffff;\n padding: 12px 0;\n font-size: var(--text-sm);\n font-weight: var(--font-medium);\n cursor: pointer;\n }\n\n .accessify-language-select option {\n color: #17212b;\n }\n\n .accessify-header-actions {\n display: flex;\n align-items: center;\n gap: 10px;\n flex-wrap: wrap;\n }\n\n .accessify-header-btn {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n padding: 11px 14px;\n border: 1px solid rgba(255, 255, 255, 0.16);\n border-radius: 16px;\n background: rgba(10, 23, 29, 0.24);\n color: #f5fbff;\n cursor: pointer;\n font-size: var(--text-sm);\n font-weight: var(--font-medium);\n transition: background var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast);\n }\n\n .accessify-header-btn:hover {\n background: rgba(255, 255, 255, 0.12);\n border-color: rgba(255, 255, 255, 0.24);\n transform: translateY(-1px);\n }\n\n .accessify-header-btn svg {\n width: 16px;\n height: 16px;\n }\n\n .accessify-header-btn--icon {\n width: 44px;\n padding-inline: 0;\n }\n\n .accessify-status {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--space-3);\n padding: 14px var(--space-5);\n border-bottom: 1px solid var(--border);\n background: linear-gradient(180deg, rgba(15, 118, 110, 0.06), transparent);\n }\n\n .accessify-status-count {\n display: inline-flex;\n align-items: center;\n gap: 8px;\n min-height: 36px;\n padding: 0 14px;\n border-radius: var(--radius-pill);\n background: var(--accent-soft);\n color: var(--accent-strong);\n font-size: var(--text-sm);\n font-weight: var(--font-semibold);\n }\n\n .accessify-status-count[data-count="0"] {\n background: var(--surface-muted);\n color: var(--text-secondary);\n }\n\n .accessify-status-reset {\n border: none;\n background: none;\n color: var(--text-secondary);\n cursor: pointer;\n font-size: var(--text-sm);\n font-weight: var(--font-medium);\n padding: 8px 0;\n transition: color var(--transition-fast);\n }\n\n .accessify-status-reset:hover {\n color: var(--signal);\n }\n\n .accessify-body {\n display: grid;\n gap: var(--space-4);\n padding: var(--space-4);\n overflow-y: auto;\n }\n\n .accessify-section {\n display: grid;\n gap: var(--space-4);\n padding: var(--space-4);\n border-radius: var(--radius-lg);\n border: 1px solid var(--border);\n background: rgba(255, 255, 255, 0.32);\n box-shadow: var(--shadow-sm);\n }\n\n .accessify-section--spotlight {\n background:\n linear-gradient(180deg, rgba(15, 118, 110, 0.08) 0%, rgba(255, 255, 255, 0.28) 100%);\n border-color: color-mix(in srgb, var(--accent) 24%, var(--border));\n }\n\n .accessify-section-head {\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n gap: var(--space-3);\n }\n\n .accessify-section-head h3 {\n font-size: var(--text-lg);\n font-weight: var(--font-semibold);\n line-height: 1.15;\n color: var(--text);\n }\n\n .accessify-section-head p {\n margin-top: 6px;\n color: var(--text-secondary);\n font-size: var(--text-sm);\n max-width: 46ch;\n }\n\n .accessify-section-kicker {\n display: inline-flex;\n align-items: center;\n margin-bottom: 8px;\n color: var(--signal);\n font-size: var(--text-xs);\n font-weight: var(--font-semibold);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n }\n\n .accessify-control-grid {\n display: grid;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n gap: var(--space-3);\n }\n\n .accessify-control-card {\n display: grid;\n gap: var(--space-3);\n padding: var(--space-4);\n border-radius: 22px;\n border: 1px solid var(--border);\n background: var(--surface-strong);\n }\n\n .accessify-control-copy {\n display: grid;\n grid-template-columns: auto 1fr;\n gap: var(--space-3);\n align-items: start;\n }\n\n .accessify-control-copy h4 {\n font-size: var(--text-base);\n font-weight: var(--font-semibold);\n color: var(--text);\n }\n\n .accessify-control-copy p {\n margin-top: 4px;\n color: var(--text-secondary);\n font-size: var(--text-sm);\n }\n\n .accessify-chip-group {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n }\n\n .accessify-chip {\n min-height: 40px;\n padding: 0 14px;\n border-radius: var(--radius-pill);\n border: 1px solid var(--border);\n background: var(--surface);\n color: var(--text);\n cursor: pointer;\n font-size: var(--text-sm);\n font-weight: var(--font-medium);\n transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);\n }\n\n .accessify-chip:hover {\n transform: translateY(-1px);\n border-color: var(--border-strong);\n background: var(--surface-strong);\n }\n\n .accessify-chip[data-active="true"] {\n background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);\n color: var(--text-on-accent);\n border-color: transparent;\n box-shadow: 0 12px 22px rgba(15, 118, 110, 0.24);\n }\n\n .accessify-chip-group--sizes .accessify-chip {\n min-width: 68px;\n justify-content: center;\n }\n\n .accessify-features {\n display: grid;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n gap: var(--space-3);\n }\n\n .accessify-card {\n position: relative;\n display: grid;\n gap: 10px;\n align-content: start;\n min-height: 156px;\n padding: var(--space-4);\n border-radius: 22px;\n border: 1px solid var(--border);\n background: color-mix(in srgb, var(--surface-strong) 88%, transparent);\n color: var(--text);\n cursor: pointer;\n text-align: left;\n font-family: inherit;\n font-size: inherit;\n transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);\n }\n\n .accessify-card:hover {\n transform: translateY(-2px);\n border-color: color-mix(in srgb, var(--accent) 28%, var(--border));\n box-shadow: var(--shadow-sm);\n }\n\n .accessify-card[data-active="true"] {\n border-color: color-mix(in srgb, var(--accent) 55%, var(--border));\n background:\n linear-gradient(180deg, rgba(15, 118, 110, 0.08) 0%, rgba(255, 255, 255, 0.18) 100%);\n box-shadow: 0 18px 32px rgba(15, 118, 110, 0.16);\n }\n\n .accessify-card[data-active="true"]::after {\n content: '';\n position: absolute;\n top: 14px;\n right: 14px;\n width: 20px;\n height: 20px;\n border-radius: 999px;\n background: var(--accent);\n mask-image: url("data:image/svg+xml,${Ti}");\n mask-size: 12px;\n mask-repeat: no-repeat;\n mask-position: center;\n -webkit-mask-image: url("data:image/svg+xml,${Ti}");\n -webkit-mask-size: 12px;\n -webkit-mask-repeat: no-repeat;\n -webkit-mask-position: center;\n }\n\n .accessify-card-top {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--space-2);\n }\n\n .accessify-card-icon {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 44px;\n height: 44px;\n border-radius: 16px;\n background: var(--surface-tint);\n color: var(--accent-strong);\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);\n }\n\n .accessify-card-icon svg {\n width: 20px;\n height: 20px;\n }\n\n .accessify-card-label {\n font-size: var(--text-base);\n font-weight: var(--font-semibold);\n line-height: 1.2;\n color: var(--text);\n }\n\n .accessify-card-desc {\n color: var(--text-secondary);\n font-size: var(--text-sm);\n line-height: 1.45;\n }\n\n .accessify-footer {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: var(--space-2);\n padding: 14px var(--space-5) var(--space-5);\n border-top: 1px solid var(--border);\n color: var(--text-secondary);\n font-size: var(--text-xs);\n text-align: center;\n background: linear-gradient(180deg, transparent, rgba(15, 118, 110, 0.04));\n }\n\n .accessify-footer a {\n color: var(--accent-strong);\n text-decoration: none;\n font-weight: var(--font-medium);\n }\n\n .accessify-footer a:hover {\n text-decoration: underline;\n }\n\n @media (prefers-reduced-motion: reduce) {\n *, *::before, *::after {\n animation-duration: 0.01ms !important;\n transition-duration: 0.01ms !important;\n }\n }\n\n @media (max-width: 560px) {\n .accessify-panel {\n width: calc(100vw - 24px);\n ${n?"right: 12px":"left: 12px"};\n ${a?"bottom: 86px":"top: 86px"};\n max-height: calc(100vh - 102px);\n }\n\n .accessify-header,\n .accessify-status,\n .accessify-footer {\n padding-inline: var(--space-4);\n }\n\n .accessify-body {\n padding: var(--space-3);\n }\n\n .accessify-control-grid,\n .accessify-features {\n grid-template-columns: 1fr;\n }\n\n .accessify-card {\n min-height: 0;\n }\n\n .accessify-trigger {\n ${a?"bottom: 16px":"top: 16px"};\n ${n?"right: 16px":"left: 16px"};\n width: 58px;\n height: 58px;\n border-radius: 20px;\n }\n }\n `}(Bi)),n.adoptedStyleSheets=[a];const i=document.createElement("div");function r(e){return Object.getOwnPropertySymbols(e).find(e=>"Symbol(events)"===e.toString())}i.id="accessify-mount",n.appendChild(i),Li=function(e,{target:t,anchor:n,props:a={},events:i,context:r,intro:o=!0,transformError:s}){!function(){if(void 0===nn){nn=window,an=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;rn=X(t,"firstChild").get,on=X(t,"nextSibling").get,ae(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),ae(n)&&(n.__t=void 0),R&&(e.__svelte_meta=null,function(){const e=Array.prototype,t=Array.__svelte_cleanup;t&&t();const{indexOf:n,lastIndexOf:a,includes:i}=e;e.indexOf=function(e,t){const a=n.call(this,e,t);if(-1===a)for(let n=t??0;n<this.length;n+=1)if(Qt(this[n])===e){Le("array.indexOf(...)");break}return a},e.lastIndexOf=function(e,t){const n=a.call(this,e,t??this.length-1);if(-1===n)for(let a=0;a<=(t??this.length-1);a+=1)if(Qt(this[a])===e){Le("array.lastIndexOf(...)");break}return n},e.includes=function(e,t){const n=i.call(this,e,t);if(!n)for(let a=0;a<this.length;a+=1)if(Qt(this[a])===e){Le("array.includes(...)");break}return n},Array.__svelte_cleanup=()=>{e.indexOf=n,e.lastIndexOf=a,e.includes=i}}())}}();var c=void 0,l=function(){vt.ensure();const o=hn(524352,()=>{var o=n??t.appendChild(sn());new At(o,{pending:()=>{}},t=>{Re({}),r&&(Oe.c=r),i&&(a.$$events=i),c=e(t,a)||{},Ue()},s);var l=new Set,d=e=>{for(var n=0;n<e.length;n++){var a=e[n];if(!l.has(a)){l.add(a);var i=la(a);for(const e of[t,document]){var r=ka.get(e);void 0===r&&ka.set(e,r=new Map);var o=r.get(a);void 0===o?(e.addEventListener(a,ma,{passive:i}),r.set(a,1)):r.set(a,o+1)}}}};return d(J(ua)),fa.add(d),()=>{for(var e of l)for(const n of[t,document]){var a=ka.get(n),i=a.get(e);0==--i?(n.removeEventListener(e,ma),a.delete(e),0===a.size&&ka.delete(n)):a.set(e,i)}fa.delete(d),o!==n&&o.parentNode?.removeChild(o)}});return(e={})=>new Promise(t=>{e.outro?$n(o,()=>{Cn(o),t(void 0)}):(Cn(o),t(void 0))})}();return _a.set(c,l),c}(zi,{target:i,props:{config:Bi,shadow:n}});const o=["click","input","change","keydown","keyup","focusin","focusout"];for(const s of o)n.addEventListener(s,e=>{let t=e.composedPath()[0],a=!1;for(;t&&t!==n;){const n=r(t);if(n){const i=t[n];i&&"function"==typeof i[s]&&(i[s].call(t,e),a=!0)}if(e.cancelBubble)break;t=t.assignedSlot||t.parentNode||t.host}a&&e.stopImmediatePropagation()},!0);document.body.appendChild(Wi),Bi.onReady?.()}function ji(){Li&&(function(e){const t=_a.get(e);t?(_a.delete(e),t(void 0)):(R&&(ke in e?R?console.warn("%c[svelte] state_proxy_unmount\n%cTried to unmount a state proxy, rather than a component\nhttps://svelte.dev/e/state_proxy_unmount",Ie,Ge):console.warn("https://svelte.dev/e/state_proxy_unmount"):R?console.warn("%c[svelte] lifecycle_double_unmount\n%cTried to unmount a component that was not mounted\nhttps://svelte.dev/e/lifecycle_double_unmount",Ie,Ge):console.warn("https://svelte.dev/e/lifecycle_double_unmount")),Promise.resolve())}(Li),Li=null),Wi?.remove(),Wi=null}function Ni(e,...t){const n={init:e=>Pi(e),open:()=>Li?.open?.(),close:()=>Li?.close?.(),destroy:ji};n[e]?.(...t)}window.__accessify_exec=Ni;const Oi=window.Accessify;Oi?.q&&(Oi.q.forEach(e=>Ni(...e)),Oi.q=[]),window.Accessify=function(e,...t){Ni(e,...t)},window.Accessify._loaded=!0,window.A11yPlus=window.Accessify;const Hi=document.currentScript;function Ki(){if(!Hi)return{};const e=Hi.dataset,t={};return e.openrouterKey&&(t.openRouterKey=e.openrouterKey),e.siteKey&&(t.siteKey=e.siteKey),e.proxyUrl&&(t.proxyUrl=e.proxyUrl),e.lang&&(t.lang=e.lang),e.position&&(t.position=e.position),e.theme&&(t.theme=e.theme),e.features&&(t.features=e.features.split(",").map(e=>e.trim()).filter(Boolean)),e.statementUrl&&(t.statementUrl=e.statementUrl),"true"===e.compact&&(t.compact=!0),e.zIndex&&(t.zIndex=parseInt(e.zIndex,10)),t.siteKey&&!t.proxyUrl&&(t.proxyUrl="https://accessify-api.accessify.workers.dev"),t}const Fi=[];function Di(e,...t){const n={init:e=>Pi({...Ki(),...e}),destroy:ji};n[e]?.(...t)}window.__accessify_exec=Di;const qi=function(e,...t){qi._loaded?Di(e,...t):Fi.push([e,...t])};function Ri(){qi._loaded=!0,Fi.length>0&&(Fi.forEach(e=>Di(...e)),Fi.length=0);const e=Ki(),t=Boolean(e.siteKey)||Hi?.hasAttribute("data-accessify"),n=Boolean(document.getElementById("accessify-root"));t&&!n&&(window.__accessify_dataConfig=e,Pi(e));const a=function(e,...t){Di(e,...t)};a._loaded=!0,window.Accessify=a,window.A11yPlus=a}qi.q=Fi,qi._loaded=!1,window.Accessify=qi,window.A11yPlus=qi,"complete"===document.readyState||"interactive"===document.readyState?setTimeout(Ri,1):document.addEventListener("DOMContentLoaded",Ri);const Ui=Object.freeze(Object.defineProperty({__proto__:null,default:function(){let e="off";const t="accessify-contrast",n="accessify-contrast-mode";function a(e){let n=document.getElementById(t);"off"!==e?(n||(n=document.createElement("style"),n.id=t,document.head.appendChild(n)),n.textContent=function(e){switch(e){case"light":return"\n html {\n color-scheme: light !important;\n }\n\n body,\n body :where(main, section, article, aside, nav, header, footer, div, p, li, dt, dd, blockquote, figcaption, table, thead, tbody, tr, th, td, ul, ol, form, fieldset, button, input, textarea, select, label, details, summary):not(#accessify-root):not(#accessify-root *) {\n background-color: #fbf7ef !important;\n color: #161616 !important;\n border-color: #6f675d !important;\n }\n\n body :where(h1, h2, h3, h4, h5, h6, strong, b):not(#accessify-root):not(#accessify-root *) {\n color: #0f1720 !important;\n }\n\n body :where(a, a:visited):not(#accessify-root):not(#accessify-root *) {\n color: #0047b3 !important;\n text-decoration-color: currentColor !important;\n }\n\n body :where(button, input, textarea, select):not(#accessify-root):not(#accessify-root *) {\n box-shadow: none !important;\n }\n ";case"dark":return"\n html {\n color-scheme: dark !important;\n }\n\n body,\n body :where(main, section, article, aside, nav, header, footer, div, p, li, dt, dd, blockquote, figcaption, table, thead, tbody, tr, th, td, ul, ol, form, fieldset, button, input, textarea, select, label, details, summary):not(#accessify-root):not(#accessify-root *) {\n background-color: #101418 !important;\n color: #f5f1e8 !important;\n border-color: #9bb4c7 !important;\n }\n\n body :where(h1, h2, h3, h4, h5, h6, strong, b):not(#accessify-root):not(#accessify-root *) {\n color: #ffffff !important;\n }\n\n body :where(a, a:visited):not(#accessify-root):not(#accessify-root *) {\n color: #8fd8ff !important;\n text-decoration-color: currentColor !important;\n }\n\n body :where(img, video, svg, canvas):not(#accessify-root):not(#accessify-root *) {\n filter: brightness(0.92) contrast(1.08) !important;\n }\n ";case"high":return"\n html {\n color-scheme: dark !important;\n }\n\n body,\n body :where(main, section, article, aside, nav, header, footer, div, p, li, dt, dd, blockquote, figcaption, table, thead, tbody, tr, th, td, ul, ol, form, fieldset, button, input, textarea, select, label, details, summary):not(#accessify-root):not(#accessify-root *) {\n background: #000000 !important;\n color: #ffffff !important;\n border-color: #ffffff !important;\n box-shadow: none !important;\n }\n\n body :where(a, a:visited):not(#accessify-root):not(#accessify-root *) {\n color: #fff35c !important;\n text-decoration: underline !important;\n text-decoration-thickness: 3px !important;\n text-underline-offset: 3px !important;\n }\n\n body :where(button, input, textarea, select):not(#accessify-root):not(#accessify-root *) {\n outline: 2px solid #fff35c !important;\n outline-offset: 2px !important;\n }\n\n body :where(img, video, svg, canvas):not(#accessify-root):not(#accessify-root *) {\n filter: contrast(1.25) brightness(0.95) !important;\n }\n ";default:return""}}(e)):n?.remove()}return{id:"contrast",name:()=>"Contrast",description:"Increase contrast for better readability",icon:"contrast",category:"visual",activate:function(){const t=localStorage.getItem(n);e="light"===t||"dark"===t||"high"===t?t:"dark",a(e)},deactivate:function(){e="off",a("off"),localStorage.removeItem(n)},getState:()=>({id:"contrast",enabled:"off"!==e,value:e}),setState:t=>{e="light"===t||"dark"===t||"high"===t?t:"off",a(t),"off"===e?localStorage.removeItem(n):localStorage.setItem(n,e)}}}},Symbol.toStringTag,{value:"Module"})),Vi=Object.freeze(Object.defineProperty({__proto__:null,default:function(){let e=100,t=null,n=!1;const a="accessify-text-size-styles",i="accessify-text-size",r="data-accessify-text-size-processed",o="data-accessify-original-inline-font-size",s="data-accessify-original-computed-font-size",c=new Set(["SCRIPT","STYLE","NOSCRIPT","IFRAME","SVG","PATH","G","DEFS","MASK","BR","META","LINK","HEAD"]);function l(e){if("accessify-root"===e.id||e.closest("#accessify-root"))return!1;if(c.has(e.tagName))return!1;const t=window.getComputedStyle(e),n=parseFloat(t.fontSize);return!(!Number.isFinite(n)||n<=0)&&"none"!==t.display&&"hidden"!==t.visibility&&(new Set(["INPUT","TEXTAREA","SELECT","BUTTON","LABEL","OPTION"]).has(e.tagName)||function(e){return Array.from(e.childNodes).some(e=>e.nodeType===Node.TEXT_NODE&&Boolean(e.textContent?.trim()))}(e))}function d(e){const t=e.getAttribute(o);null!==t&&(t?e.style.fontSize=t:e.style.removeProperty("font-size"),e.removeAttribute(r),e.removeAttribute(o),e.removeAttribute(s))}function u(){if(n||100===e)return;n=!0;const t=()=>{n=!1,f(e)};"function"==typeof window.requestAnimationFrame?window.requestAnimationFrame(()=>t()):window.setTimeout(t,0)}function f(e){if(100===e)return t?.disconnect(),t=null,n=!1,document.getElementById(a)?.remove(),void document.querySelectorAll(`[${r}]`).forEach(e=>{d(e)});!function(e){let t=document.getElementById(a);t||(t=document.createElement("style"),t.id=a,document.head.appendChild(t)),t.textContent=`/* accessify text-size: ${e}% */`}(e);const i=e/100,c=new Set(document.body?[document.body,...Array.from(document.body.querySelectorAll("*"))].filter(l):[]);document.querySelectorAll(`[${r}]`).forEach(e=>{c.has(e)||d(e)}),c.forEach(e=>{!function(e,t){!function(e){if(e.hasAttribute(o)||e.setAttribute(o,e.style.fontSize||""),!e.hasAttribute(s)){const t=parseFloat(window.getComputedStyle(e).fontSize);Number.isFinite(t)&&t>0&&e.setAttribute(s,String(t))}}(e);const n=parseFloat(e.getAttribute(s)||"");if(!Number.isFinite(n)||n<=0)return;const a=Math.round(n*t*100)/100;e.style.setProperty("font-size",`${a}px`,"important"),e.setAttribute(r,"true")}(e,i)}),!t&&document.body&&(t=new MutationObserver(e=>{for(const t of e)if("childList"===t.type&&(t.addedNodes.length>0||t.removedNodes.length>0))return void u()}),t.observe(document.body,{childList:!0,subtree:!0}))}function p(e){return Math.min(200,Math.max(100,10*Math.round(e/10)))}return{id:"text-size",name:()=>"Text Size",description:"Adjust text size from 100% to 200%",icon:"text-size",category:"visual",activate:function(){const t=localStorage.getItem(i);e=t?p(parseInt(t,10)):150,f(e),localStorage.setItem(i,String(e))},deactivate:function(){e=100,f(100),localStorage.removeItem(i)},getState:()=>({id:"text-size",enabled:100!==e,value:e}),setState:t=>{e=p(t),f(e),localStorage.setItem(i,String(e))}}}},Symbol.toStringTag,{value:"Module"})),Yi=Object.freeze(Object.defineProperty({__proto__:null,default:function(){let e=!1;const t="accessify-keyboard-nav",n="accessify-skip-link",a="accessify-keyboard-help",i="accessify-keyboard-nav";let r=-1,o=-1,s=[],c=[],l=!1;function d(){return oi()}function u(t){if(e){if("Escape"===t.key&&l){const e=document.getElementById(a);return e?.remove(),void(l=!1)}if(t.altKey)switch(t.key.toLowerCase()){case"h":t.preventDefault(),function(){if(s=Array.from(document.querySelectorAll("h1, h2, h3, h4, h5, h6")).filter(e=>{const t=window.getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility}),0===s.length)return;r=(r+1)%s.length;const e=s[r];e.setAttribute("tabindex","-1"),e.focus(),e.scrollIntoView({behavior:"smooth",block:"center"})}();break;case"l":t.preventDefault(),function(){if(c=Array.from(document.querySelectorAll(['header, [role="banner"]','nav, [role="navigation"]','main, [role="main"]','aside, [role="complementary"]','[role="search"]','[role="form"]','footer, [role="contentinfo"]','[role="region"][aria-label]'].join(", "))).filter(e=>{const t=window.getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility}),0===c.length)return;o=(o+1)%c.length;const e=c[o];e.setAttribute("tabindex","-1"),e.focus(),e.scrollIntoView({behavior:"smooth",block:"center"})}();break;case"k":t.preventDefault(),function(){const e=document.getElementById(a);if(e)return e.remove(),void(l=!1);l=!0;const t=document.createElement("div");t.id=a,t.setAttribute("role","dialog"),t.setAttribute("aria-label",ci("keyboard.shortcuts",d())),t.setAttribute("aria-modal","true"),t.innerHTML=`\n <div style="\n position: fixed; inset: 0; background: rgba(0,0,0,0.6);\n display: flex; align-items: center; justify-content: center;\n z-index: 2147483647;\n ">\n <div style="\n background: #fff; color: #222; border-radius: 12px; padding: 32px;\n max-width: 480px; width: 90%; max-height: 80vh; overflow-y: auto;\n box-shadow: 0 8px 32px rgba(0,0,0,0.3); font-family: system-ui, sans-serif;\n " role="document">\n <h2 style="margin: 0 0 16px; font-size: 20px; color: #1a73e8;">${ci("keyboard.shortcuts",d())}</h2>\n <table style="width: 100%; border-collapse: collapse; font-size: 14px;">\n <thead>\n <tr style="border-bottom: 2px solid #e0e0e0;">\n <th style="text-align: left; padding: 8px 12px;">${ci("keyboard.shortcut",d())}</th>\n <th style="text-align: left; padding: 8px 12px;">${ci("keyboard.action",d())}</th>\n </tr>\n </thead>\n <tbody>\n <tr style="border-bottom: 1px solid #f0f0f0;">\n <td style="padding: 8px 12px;"><kbd style="background:#f5f5f5;padding:2px 8px;border-radius:4px;border:1px solid #ccc;font-family:monospace;">Alt + H</kbd></td>\n <td style="padding: 8px 12px;">${ci("keyboard.nextHeading",d())}</td>\n </tr>\n <tr style="border-bottom: 1px solid #f0f0f0;">\n <td style="padding: 8px 12px;"><kbd style="background:#f5f5f5;padding:2px 8px;border-radius:4px;border:1px solid #ccc;font-family:monospace;">Alt + L</kbd></td>\n <td style="padding: 8px 12px;">${ci("keyboard.nextLandmark",d())}</td>\n </tr>\n <tr style="border-bottom: 1px solid #f0f0f0;">\n <td style="padding: 8px 12px;"><kbd style="background:#f5f5f5;padding:2px 8px;border-radius:4px;border:1px solid #ccc;font-family:monospace;">Alt + K</kbd></td>\n <td style="padding: 8px 12px;">${ci("keyboard.toggleHelp",d())}</td>\n </tr>\n <tr style="border-bottom: 1px solid #f0f0f0;">\n <td style="padding: 8px 12px;"><kbd style="background:#f5f5f5;padding:2px 8px;border-radius:4px;border:1px solid #ccc;font-family:monospace;">Tab</kbd></td>\n <td style="padding: 8px 12px;">${ci("keyboard.nextFocusable",d())}</td>\n </tr>\n <tr>\n <td style="padding: 8px 12px;"><kbd style="background:#f5f5f5;padding:2px 8px;border-radius:4px;border:1px solid #ccc;font-family:monospace;">Escape</kbd></td>\n <td style="padding: 8px 12px;">${ci("keyboard.closeOverlay",d())}</td>\n </tr>\n </tbody>\n </table>\n <button style="\n margin-top: 20px; padding: 8px 24px; background: #1a73e8; color: #fff;\n border: none; border-radius: 6px; cursor: pointer; font-size: 14px;\n " id="accessify-keyboard-help-close">${ci("widget.close",d())}</button>\n </div>\n </div>\n `,document.body.appendChild(t);const n=document.getElementById("accessify-keyboard-help-close");n?.focus(),n?.addEventListener("click",()=>{t.remove(),l=!1})}()}}}function f(){e=!0,r=-1,o=-1,function(){let e=document.getElementById(t);e||(e=document.createElement("style"),e.id=t,document.head.appendChild(e)),e.textContent=`\n /* accessify keyboard navigation */\n #${n} {\n position: fixed;\n top: -100px;\n left: 50%;\n transform: translateX(-50%);\n background: #1a73e8;\n color: #fff;\n padding: 12px 24px;\n border-radius: 0 0 8px 8px;\n font-size: 16px;\n font-family: system-ui, sans-serif;\n text-decoration: none;\n z-index: 2147483647;\n transition: top 0.2s ease;\n box-shadow: 0 2px 8px rgba(0,0,0,0.3);\n }\n #${n}:focus {\n top: 0;\n outline: 3px solid #ffdd00;\n outline-offset: 2px;\n }\n `}(),function(){if(function(){const e=document.querySelectorAll('a[href^="#"]');for(const t of e){const e=t.textContent?.toLowerCase()||"";if(e.includes("skip")||e.includes("main content")||e.includes("navigation"))return!0}return!1}())return;const e=document.querySelector("main")||document.getElementById("content")||document.getElementById("main-content")||document.querySelector('[role="main"]')||document.querySelector("h1");if(!e)return;e.id||(e.id="accessify-main-content");const t=document.createElement("a");t.id=n,t.href=`#${e.id}`,t.textContent=ci("keyboard.skipToContent",d()),t.addEventListener("click",t=>{t.preventDefault(),e.setAttribute("tabindex","-1"),e.focus(),e.scrollIntoView({behavior:"smooth",block:"start"})}),document.body.insertBefore(t,document.body.firstChild)}(),document.querySelectorAll(["a[href]","button","input","select","textarea",'[role="button"]','[role="link"]','[role="checkbox"]','[role="radio"]','[role="tab"]','[role="menuitem"]','[role="switch"]','[contenteditable="true"]',"summary"].join(", ")).forEach(e=>{e.hasAttribute("tabindex")||function(e){const t=e.tagName.toLowerCase();return!!["a","button","input","select","textarea"].includes(t)}(e)||(e.setAttribute("tabindex","0"),e.dataset.accessifyTabindex="true")}),document.addEventListener("keydown",u),localStorage.setItem(i,"true")}function p(){e=!1,l=!1,document.removeEventListener("keydown",u),function(){const e=document.getElementById(n);e?.remove()}(),document.querySelectorAll('[data-accessify-tabindex="true"]').forEach(e=>{e.removeAttribute("tabindex"),delete e.dataset.accessifyTabindex}),function(){const e=document.getElementById(t);e?.remove()}();const r=document.getElementById(a);r?.remove(),localStorage.removeItem(i)}return{id:"keyboard-nav",name:()=>"Keyboard Navigation",description:"Enhanced keyboard navigation with skip links, heading/landmark jumping, and shortcut help",icon:"keyboard-nav",category:"motor",activate:f,deactivate:p,getState:()=>({id:"keyboard-nav",enabled:e}),setState:e=>{e.enabled?f():p()}}}},Symbol.toStringTag,{value:"Module"})),Ji=Object.freeze(Object.defineProperty({__proto__:null,default:function(){let e=!1;const t="accessify-focus-highlight",n="accessify-focus-highlight";function a(){e=!0,function(){let e=document.getElementById(t);e||(e=document.createElement("style"),e.id=t,document.head.appendChild(e)),e.textContent='\n /* accessify focus highlight - WCAG 2.4.7 / 2.4.13 compliance */\n *:focus-visible {\n outline: 3px solid #1a73e8 !important;\n outline-offset: 2px !important;\n box-shadow: 0 0 0 6px rgba(26, 115, 232, 0.3) !important;\n }\n\n /* Override any outline:none that pages may set */\n a:focus-visible,\n button:focus-visible,\n input:focus-visible,\n select:focus-visible,\n textarea:focus-visible,\n [tabindex]:focus-visible,\n [role="button"]:focus-visible,\n [role="link"]:focus-visible,\n [role="checkbox"]:focus-visible,\n [role="radio"]:focus-visible,\n [role="tab"]:focus-visible,\n [role="menuitem"]:focus-visible,\n [role="option"]:focus-visible,\n [role="switch"]:focus-visible,\n [contenteditable="true"]:focus-visible,\n summary:focus-visible,\n details:focus-visible {\n outline: 3px solid #1a73e8 !important;\n outline-offset: 2px !important;\n box-shadow: 0 0 0 6px rgba(26, 115, 232, 0.3) !important;\n }\n\n /* High contrast mode: use yellow outline for dark backgrounds */\n @media (prefers-color-scheme: dark) {\n *:focus-visible {\n outline-color: #ffdd00 !important;\n box-shadow: 0 0 0 6px rgba(255, 221, 0, 0.3) !important;\n }\n }\n '}(),localStorage.setItem(n,"true")}function i(){e=!1,function(){const e=document.getElementById(t);e?.remove()}(),localStorage.removeItem(n)}return{id:"focus-highlight",name:()=>"Focus Highlight",description:"Add strong visible focus indicators on all focusable elements (WCAG 2.4.7/2.4.13)",icon:"focus-highlight",category:"motor",activate:a,deactivate:i,getState:()=>({id:"focus-highlight",enabled:e}),setState:e=>{e.enabled?a():i()}}}},Symbol.toStringTag,{value:"Module"})),Zi=Object.freeze(Object.defineProperty({__proto__:null,default:function(){let e=!1;const t="accessify-link-highlight",n="accessify-link-highlight";function a(){e=!0,function(){let e=document.getElementById(t);e||(e=document.createElement("style"),e.id=t,document.head.appendChild(e)),e.textContent=`\n /* accessify link highlighting */\n a[href] {\n text-decoration: underline !important;\n text-decoration-thickness: 3px !important;\n text-underline-offset: 3px !important;\n text-decoration-color: #1a73e8 !important;\n background-color: rgba(26, 115, 232, 0.1) !important;\n padding: 2px 4px !important;\n border-radius: 2px !important;\n transition: background-color 0.15s ease !important;\n }\n\n a[href]:hover {\n background-color: rgba(26, 115, 232, 0.25) !important;\n }\n\n a[href]:visited {\n text-decoration-color: #681da8 !important;\n background-color: rgba(104, 29, 168, 0.1) !important;\n }\n\n a[href]:visited:hover {\n background-color: rgba(104, 29, 168, 0.25) !important;\n }\n\n /* External link indicator */\n a[href^="http"]:not([href*="${"undefined"!=typeof window?window.location.hostname:""}"]):after {\n content: " \\2197";\n font-size: 0.8em;\n vertical-align: super;\n }\n `}(),localStorage.setItem(n,"true")}function i(){e=!1,function(){const e=document.getElementById(t);e?.remove()}(),localStorage.removeItem(n)}return{id:"link-highlight",name:()=>"Link Highlight",description:"Highlight all links with thick underlines and background colors",icon:"link-highlight",category:"visual",activate:a,deactivate:i,getState:()=>({id:"link-highlight",enabled:e}),setState:e=>{e.enabled?a():i()}}}},Symbol.toStringTag,{value:"Module"})),Xi={height:8,opacity:.3},Qi=Object.freeze(Object.defineProperty({__proto__:null,default:function(){let e=!1,t=null,n=0,a={...Xi};const i="accessify-reading-guide";function r(e){n=e.clientY,c()}function o(e){e.touches.length>0&&(n=e.touches[0].clientY,c())}function s(a){e&&t&&("ArrowUp"===a.key?(a.preventDefault(),n=Math.max(0,n-10),c()):"ArrowDown"===a.key&&(a.preventDefault(),n=Math.min(window.innerHeight,n+10),c()))}function c(){t&&(t.style.top=n-a.height/2+"px")}return{id:"reading-guide",name:()=>"Reading Guide",description:"Horizontal ruler that follows your cursor for easier reading",icon:"reading-guide",category:"cognitive",activate:function(){e=!0;const l=localStorage.getItem(i);if(l)try{const e=JSON.parse(l);a={height:Math.min(60,Math.max(2,e.height??Xi.height)),opacity:Math.min(1,Math.max(.1,e.opacity??Xi.opacity))}}catch{a={...Xi}}t=function(){const e=document.createElement("div");return e.id="accessify-reading-guide",e.setAttribute("role","presentation"),e.setAttribute("aria-hidden","true"),Object.assign(e.style,{position:"fixed",left:"0",width:"100%",height:`${a.height}px`,backgroundColor:`rgba(255, 255, 0, ${a.opacity})`,pointerEvents:"none",zIndex:"2147483646",top:"50%",transition:"top 0.05s linear",boxShadow:"0 0 4px rgba(0,0,0,0.2)"}),e}(),document.documentElement.appendChild(t),n=window.innerHeight/2,c(),document.addEventListener("mousemove",r,{passive:!0}),document.addEventListener("touchmove",o,{passive:!0}),document.addEventListener("keydown",s)},deactivate:function(){e=!1,document.removeEventListener("mousemove",r),document.removeEventListener("touchmove",o),document.removeEventListener("keydown",s),t&&(t.remove(),t=null),localStorage.removeItem(i)},getState:()=>({id:"reading-guide",enabled:e,value:{...a}}),setState:e=>{a={height:Math.min(60,Math.max(2,e.height??a.height)),opacity:Math.min(1,Math.max(.1,e.opacity??a.opacity))},localStorage.setItem(i,JSON.stringify(a)),t&&(t.style.height=`${a.height}px`,t.style.backgroundColor=`rgba(255, 255, 0, ${a.opacity})`,c())}}}},Symbol.toStringTag,{value:"Module"})),er=Object.freeze(Object.defineProperty({__proto__:null,default:function(){let e=!1,t=null,n=null,a=120;function i(e){if(!t||!n)return;const i=e.clientY,r=a/2,o=Math.max(0,i-r),s=Math.max(0,window.innerHeight-i-r);t.style.height=o+"px",n.style.height=s+"px"}function r(e){if(t&&n&&("ArrowUp"===e.key||"ArrowDown"===e.key)){const e=document.activeElement;if(!e)return;const i=e.getBoundingClientRect(),r=i.top+i.height/2,o=a/2;t.style.height=Math.max(0,r-o)+"px",n.style.height=Math.max(0,window.innerHeight-r-o)+"px"}}return{id:"reading-mask",name:()=>"Reading Mask",description:"Focus window that dims surrounding content",icon:"reading-mask",category:"motor",activate:function(){e=!0,function(){t=document.createElement("div"),n=document.createElement("div");const e="\n position: fixed; left: 0; right: 0; z-index: 999990;\n background: rgba(0, 0, 0, 0.65); pointer-events: none;\n transition: top 80ms ease, bottom 80ms ease, height 80ms ease;\n ";t.setAttribute("style",e+"top: 0;"),t.setAttribute("aria-hidden","true"),t.id="accessify-mask-top",n.setAttribute("style",e+"bottom: 0;"),n.setAttribute("aria-hidden","true"),n.id="accessify-mask-bottom",document.body.appendChild(t),document.body.appendChild(n)}(),document.addEventListener("mousemove",i),document.addEventListener("keydown",r)},deactivate:function(){e=!1,document.removeEventListener("mousemove",i),document.removeEventListener("keydown",r),t?.remove(),n?.remove(),t=null,n=null},getState:()=>({id:"reading-mask",enabled:e,value:a}),setState:e=>{a=Math.min(400,Math.max(60,e))}}}},Symbol.toStringTag,{value:"Module"})),tr=Object.freeze(Object.defineProperty({__proto__:null,default:function(){let e=!1;const t="accessify-animation-stop",n="accessify-animation-stop";let a=[];function i(){e=!0,function(){let e=document.getElementById(t);e||(e=document.createElement("style"),e.id=t,document.head.appendChild(e)),e.textContent="\n /* accessify animation stop - WCAG 2.3.1 compliance */\n *, *::before, *::after {\n animation-duration: 0.01s !important;\n animation-delay: 0s !important;\n animation-iteration-count: 1 !important;\n animation-play-state: paused !important;\n transition-duration: 0.01s !important;\n transition-delay: 0s !important;\n scroll-behavior: auto !important;\n }\n "}(),function(){const e=document.querySelectorAll("video[autoplay], video");a=[],e.forEach(e=>{e.paused||(e.pause(),a.push(e))})}(),localStorage.setItem(n,"true")}function r(){e=!1,function(){const e=document.getElementById(t);e?.remove()}(),a.forEach(e=>{try{e.play()}catch{}}),a=[],localStorage.removeItem(n)}return{id:"animation-stop",name:()=>"Stop Animations",description:"Pause all animations, transitions, and auto-playing videos (WCAG 2.3.1)",icon:"animation-stop",category:"visual",activate:i,deactivate:r,getState:()=>({id:"animation-stop",enabled:e}),setState:e=>{e.enabled?i():r()}}}},Symbol.toStringTag,{value:"Module"})),nr=Object.freeze(Object.defineProperty({__proto__:null,default:function(){let e=!1;const t="accessify-hide-images";return{id:"hide-images",name:()=>"Hide Images",description:"Remove images for distraction-free reading",icon:"hide-images",category:"visual",activate:function(){e=!0;let n=document.getElementById(t);n||(n=document.createElement("style"),n.id=t,document.head.appendChild(n)),n.textContent='\n img, picture, svg:not([aria-hidden="true"]), video, canvas,\n [role="img"], figure {\n opacity: 0 !important;\n pointer-events: none !important;\n }\n '},deactivate:function(){e=!1,document.getElementById(t)?.remove()},getState:()=>({id:"hide-images",enabled:e})}}},Symbol.toStringTag,{value:"Module"}));function ar(e){return`data:image/svg+xml;base64,${btoa(`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" viewBox="0 0 ${e} ${e}">\n <defs>\n <filter id="shadow" x="-20%" y="-20%" width="140%" height="140%">\n <feDropShadow dx="1" dy="1" stdDeviation="1" flood-color="#000" flood-opacity="0.5"/>\n </filter>\n </defs>\n <g filter="url(#shadow)">\n <path d="M ${.15*e} ${.05*e} L ${.15*e} ${.75*e} L ${.35*e} ${.6*e} L ${.55*e} ${.9*e} L ${.65*e} ${.85*e} L ${.45*e} ${.55*e} L ${.7*e} ${.5*e} Z"\n fill="white" stroke="black" stroke-width="${.04*e}" stroke-linejoin="round"/>\n </g>\n </svg>`)}`}const ir=Object.freeze(Object.defineProperty({__proto__:null,default:function(){let e=!1,t="48";const n="accessify-big-cursor",a="accessify-big-cursor",i={48:ar(48),64:ar(64)};function r(e){let t=document.getElementById(n);t||(t=document.createElement("style"),t.id=n,document.head.appendChild(t)),t.textContent=function(e){const t=parseInt(e,10),n=Math.round(.15*t);return`\n /* accessify big cursor */\n html, html * {\n cursor: url('${i[e]}') ${n} ${n}, auto !important;\n }\n html a, html a *, html button, html button *,\n html input[type="submit"], html input[type="button"],\n html [role="button"], html [role="button"] * {\n cursor: url('${i[e]}') ${n} ${n}, pointer !important;\n }\n `}(e)}return{id:"big-cursor",name:()=>"Big Cursor",description:"Enlarge the mouse cursor for easier visibility",icon:"big-cursor",category:"motor",activate:function(){e=!0;const n=localStorage.getItem(a);t="64"===n?"64":"48",r(t)},deactivate:function(){e=!1,function(){const e=document.getElementById(n);e?.remove()}(),localStorage.removeItem(a)},getState:()=>({id:"big-cursor",enabled:e,value:t}),setState:n=>{t="64"===n?"64":"48",e&&r(t),localStorage.setItem(a,t)}}}},Symbol.toStringTag,{value:"Module"})),rr=Object.freeze(Object.defineProperty({__proto__:null,default:function(){let e=!1,t=null;const n="accessify-page-structure";function a(){return oi()}function i(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function r(){e=!1,t?.remove(),t=null}return{id:"page-structure",name:()=>"Page Structure",description:"View headings and landmarks for quick navigation",icon:"page-structure",category:"motor",activate:function(){e=!0,function(){t=document.createElement("div"),t.id=n,t.setAttribute("role","dialog"),t.setAttribute("aria-label",ci("pageStructure.title",a()));const e=function(){const e=[];return document.querySelectorAll("h1, h2, h3, h4, h5, h6").forEach(t=>{if(t.closest("#accessify-root"))return;const n=t.textContent?.trim()||"";n&&e.push({tag:t.tagName.toLowerCase(),text:n,el:t})}),e}(),o=function(){const e=[];return document.querySelectorAll(["main","nav","aside","header","footer","section[aria-label]","section[aria-labelledby]",'[role="main"]','[role="navigation"]','[role="complementary"]','[role="banner"]','[role="contentinfo"]','[role="search"]'].join(",")).forEach(t=>{if(t.closest("#accessify-root"))return;const n=t.getAttribute("role")||t.tagName.toLowerCase(),a=t.getAttribute("aria-label")||t.getAttribute("aria-labelledby")||n;e.push({role:n,label:a,el:t})}),e}(),s={h1:"0",h2:"12px",h3:"24px",h4:"36px",h5:"48px",h6:"60px"};let c=`\n <style>\n #${n} {\n position: fixed; top: 50%; left: 50%;\n transform: translate(-50%, -50%);\n z-index: 999998;\n background: #fff; color: #1a1a1a;\n border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.2);\n padding: 24px; width: 400px; max-height: 80vh;\n overflow-y: auto; font-family: system-ui, sans-serif;\n font-size: 14px; line-height: 1.5;\n }\n #${n} h3 { margin: 0 0 12px; font-size: 16px; }\n #${n} .ps-section { margin-bottom: 16px; }\n #${n} .ps-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: #888; margin-bottom: 6px; }\n #${n} .ps-item {\n display: block; width: 100%; text-align: left;\n padding: 6px 8px; border: none; background: none;\n cursor: pointer; border-radius: 6px; font-size: 13px;\n color: #1a1a1a; font-family: inherit;\n }\n #${n} .ps-item:hover { background: #f0f0f2; }\n #${n} .ps-item:focus-visible { outline: 2px solid #0055CC; outline-offset: 1px; }\n #${n} .ps-tag { color: #888; font-size: 11px; margin-right: 6px; }\n #${n} .ps-close {\n position: absolute; top: 12px; right: 12px;\n background: none; border: none; cursor: pointer;\n font-size: 18px; color: #888; padding: 4px 8px; border-radius: 4px;\n }\n #${n} .ps-close:hover { background: #f0f0f2; }\n @media (prefers-color-scheme: dark) {\n #${n} { background: #1a1a1a; color: #f0f0f0; }\n #${n} .ps-item { color: #f0f0f0; }\n #${n} .ps-item:hover { background: #2a2a2e; }\n #${n} .ps-close { color: #aaa; }\n #${n} .ps-close:hover { background: #2a2a2e; }\n }\n </style>\n <button class="ps-close" aria-label="${ci("widget.close",a())}">&times;</button>\n <h3>${ci("pageStructure.title",a())}</h3>\n `;e.length>0&&(c+=`<div class="ps-section"><div class="ps-label">${ci("pageStructure.headings",a())}</div>`,e.forEach((e,t)=>{c+=`<button class="ps-item" data-type="heading" data-index="${t}" style="padding-left:${s[e.tag]||"0"}">\n <span class="ps-tag">${e.tag}</span>${i(e.text.slice(0,80))}\n </button>`}),c+="</div>"),o.length>0&&(c+=`<div class="ps-section"><div class="ps-label">${ci("pageStructure.landmarks",a())}</div>`,o.forEach((e,t)=>{c+=`<button class="ps-item" data-type="landmark" data-index="${t}">\n <span class="ps-tag">${i(e.role)}</span>${i(e.label.slice(0,60))}\n </button>`}),c+="</div>"),0===e.length&&0===o.length&&(c+=`<p style="color:#888">${ci("pageStructure.empty",a())}</p>`),t.innerHTML=c,t.addEventListener("click",t=>{const n=t.target.closest(".ps-item");if(n){const t=n.dataset.type,a=parseInt(n.dataset.index||"0",10);let i;"heading"===t?i=e[a]?.el:"landmark"===t&&(i=o[a]?.el),i&&(i.scrollIntoView({behavior:"smooth",block:"center"}),i.focus({preventScroll:!0}))}t.target.closest(".ps-close")&&r()}),document.body.appendChild(t);const l=t.querySelector(".ps-item, .ps-close");l?.focus()}()},deactivate:r,getState:()=>({id:"page-structure",enabled:e})}}},Symbol.toStringTag,{value:"Module"})),or={speed:1},sr=Object.freeze(Object.defineProperty({__proto__:null,default:function(){let e=!1,t={...or},n=null,a=null,i=!1,r=!1,o=!0,s=[],c=0,l=null,d="en";const u="accessify-tts",f="accessify-tts-controls",p="accessify-tts-styles",g="accessify-tts-highlight";function h(){l=function(e){const t=speechSynthesis.getVoices();if(0===t.length)return null;const n=e.split("-")[0];if("de"===n){const e=t.find(e=>e.lang.toLowerCase().startsWith("de-de")&&!1===e.localService);if(e)return e;const n=t.find(e=>e.lang.toLowerCase().startsWith("de-de"));if(n)return n;const a=t.find(e=>e.lang.toLowerCase().startsWith("de"));if(a)return a}return t.find(t=>t.lang.toLowerCase()===e)||t.find(e=>e.lang.toLowerCase().startsWith(n))||t[0]||null}(d)}function m(){speechSynthesis.cancel(),i=!1,r=!1,s=[],c=0,b(),k()}function v(e,n){if(m(),!e.trim())return;var o;n&&(o=n,b(),o.classList.add(g),a=o);const u=function(e){const t=e.match(/[^.!?]*[.!?]+[\s]?|[^.!?]+$/g);if(!t)return[e];const n=[];let a="";for(const i of t){const e=i.trim();e&&(a+=(a?" ":"")+e,(a.length>80||/[.!?]$/.test(a))&&(n.push(a),a=""))}return a.trim()&&n.push(a.trim()),n.length>0?n:[e]}(e);s=u.map(e=>{const n=new SpeechSynthesisUtterance(e);return n.rate=t.speed,n.lang=d,l&&(n.voice=l),n}),c=0,i=!0,r=!1,k(),y()}function y(){if(c>=s.length)return i=!1,r=!1,b(),void k();const e=s[c];e.onend=()=>{c++,c<s.length&&i?setTimeout(()=>y(),50):(i=!1,r=!1,b(),k())},e.onerror=e=>{"interrupted"!==e.error&&"canceled"!==e.error&&console.warn("[Accessify TTS] Speech error:",e.error),i=!1,r=!1,b(),k()},speechSynthesis.speak(e)}function b(){a&&(a.classList.remove(g),a=null),document.querySelectorAll(`.${g}`).forEach(e=>e.classList.remove(g))}function x(t){if(!e||!o)return;const a=t.target;if(!a)return;if(n?.contains(a))return;t.preventDefault(),t.stopPropagation();const i=function(e){if(w(e).trim().length>0)return e;let t=e;for(;t&&t!==document.body;){if(w(t).trim().length>0)return t;t=t.parentElement}return null}(a);if(!i)return;const r=w(i);r.trim()&&v(r,i)}function w(e){return(e.innerText||e.textContent||"").trim()}function k(){if(!n)return;const e=n.querySelector(".accessify-tts-play"),t=n.querySelector(".accessify-tts-hint");e&&(i&&!r?(e.innerHTML='<svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor" stroke="none" aria-hidden="true"><rect x="5" y="3" width="4" height="18"/><rect x="15" y="3" width="4" height="18"/></svg>',e.setAttribute("aria-label","Pause"),e.title="Pause"):i&&r?(e.innerHTML='<svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor" stroke="none" aria-hidden="true"><polygon points="6,3 20,12 6,21"/></svg>',e.setAttribute("aria-label","Resume"),e.title="Resume"):(e.innerHTML='<svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor" stroke="none" aria-hidden="true"><polygon points="6,3 20,12 6,21"/></svg>',e.setAttribute("aria-label","Play / Pause"),e.title="Play / Pause")),t&&(t.textContent=i&&!r?"Speaking...":r?"Paused":"Click any text to read it aloud")}function _(){localStorage.setItem(u,JSON.stringify({speed:t.speed}))}return{id:"tts",name:()=>"Text-to-Speech",description:"Click any text to hear it read aloud with adjustable speed",icon:"tts",category:"cognitive",activate:function(){e||(e=!0,function(){const e=localStorage.getItem(u);if(e)try{const n=JSON.parse(e);t.speed=Math.min(2,Math.max(.5,n.speed??or.speed))}catch{t={...or}}}(),d=function(){const e=document.documentElement.lang;if(e)return e.toLowerCase();const t=document.querySelector('meta[http-equiv="content-language"]');return t?.content?t.content.toLowerCase():"en"}(),h(),l||void 0===speechSynthesis.onvoiceschanged||(speechSynthesis.onvoiceschanged=()=>{h()}),function(){let e=document.getElementById(p);e||(e=document.createElement("style"),e.id=p,document.head.appendChild(e)),e.textContent=`\n /* accessify TTS styles */\n .${g} {\n background-color: rgba(78, 168, 222, 0.15) !important;\n outline: 2px solid rgba(78, 168, 222, 0.5) !important;\n outline-offset: 2px !important;\n border-radius: 3px !important;\n transition: background-color 0.2s ease, outline-color 0.2s ease !important;\n }\n\n #${f} .accessify-tts-btn {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 28px;\n height: 28px;\n padding: 0;\n margin: 0;\n border: 1px solid rgba(255,255,255,0.15);\n border-radius: 6px;\n background: rgba(255,255,255,0.08);\n color: #f0f0f0;\n cursor: pointer;\n transition: background 0.15s ease, border-color 0.15s ease;\n line-height: 1;\n }\n\n #${f} .accessify-tts-btn:hover {\n background: rgba(255,255,255,0.18);\n border-color: rgba(255,255,255,0.3);\n }\n\n #${f} .accessify-tts-btn:focus-visible {\n outline: 2px solid #4ea8de;\n outline-offset: 1px;\n }\n\n #${f} .accessify-tts-btn:active {\n background: rgba(255,255,255,0.25);\n }\n `}(),n=function(){const e=document.createElement("div");e.id=f,e.setAttribute("role","toolbar"),e.setAttribute("aria-label","Text-to-Speech controls"),Object.assign(e.style,{position:"fixed",top:"0",left:"50%",transform:"translateX(-50%)",zIndex:"2147483646",display:"flex",alignItems:"center",gap:"6px",padding:"6px 14px",background:"#1a1a2e",color:"#f0f0f0",borderRadius:"0 0 10px 10px",boxShadow:"0 4px 16px rgba(0,0,0,0.3)",fontFamily:"system-ui, -apple-system, sans-serif",fontSize:"13px",lineHeight:"1",userSelect:"none",transition:"opacity 0.2s ease"});const n=document.createElement("button");n.className="accessify-tts-btn accessify-tts-play",n.setAttribute("aria-label","Play / Pause"),n.title="Play / Pause",n.innerHTML='<svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor" stroke="none" aria-hidden="true"><polygon points="6,3 20,12 6,21"/></svg>',n.addEventListener("click",()=>{i&&i&&(r?(speechSynthesis.resume(),r=!1):(speechSynthesis.pause(),r=!0),k())});const a=document.createElement("button");a.className="accessify-tts-btn accessify-tts-stop",a.setAttribute("aria-label","Stop"),a.title="Stop",a.innerHTML='<svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor" stroke="none" aria-hidden="true"><rect x="4" y="4" width="16" height="16" rx="2"/></svg>',a.addEventListener("click",()=>{m()});const o=document.createElement("div");Object.assign(o.style,{display:"flex",alignItems:"center",gap:"4px",marginLeft:"4px"});const c=document.createElement("label");c.textContent="Speed",c.setAttribute("for","accessify-tts-speed"),Object.assign(c.style,{fontSize:"11px",opacity:"0.8",whiteSpace:"nowrap"});const l=document.createElement("input");l.type="range",l.id="accessify-tts-speed",l.min="0.5",l.max="2",l.step="0.1",l.value=String(t.speed),l.setAttribute("aria-label","Speech speed"),Object.assign(l.style,{width:"70px",accentColor:"#4ea8de",cursor:"pointer"});const d=document.createElement("span");d.className="accessify-tts-speed-val",d.textContent=`${t.speed.toFixed(1)}x`,Object.assign(d.style,{fontSize:"11px",minWidth:"30px",textAlign:"center",opacity:"0.8"}),l.addEventListener("input",()=>{const e=parseFloat(l.value);t.speed=e,d.textContent=`${e.toFixed(1)}x`,_();for(const t of s)t.rate=e}),o.appendChild(c),o.appendChild(l),o.appendChild(d);const u=document.createElement("div");Object.assign(u.style,{width:"1px",height:"18px",background:"rgba(255,255,255,0.2)",margin:"0 4px"});const p=document.createElement("span");p.className="accessify-tts-hint",p.textContent="Click any text to read it aloud",Object.assign(p.style,{fontSize:"11px",opacity:"0.6",whiteSpace:"nowrap"});const g=document.createElement("span");return Object.assign(g.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)",whiteSpace:"nowrap",border:"0"}),g.textContent="For full screen reader support, use NVDA, JAWS, or VoiceOver",e.appendChild(n),e.appendChild(a),e.appendChild(u),e.appendChild(o),e.appendChild(u.cloneNode(!0)),e.appendChild(p),e.appendChild(g),e}(),document.documentElement.appendChild(n),o=!0,document.addEventListener("click",x,!0))},deactivate:function(){e=!1,m(),document.removeEventListener("click",x,!0),o=!1,n&&(n.remove(),n=null),b(),function(){const e=document.getElementById(p);e?.remove()}(),void 0!==speechSynthesis.onvoiceschanged&&(speechSynthesis.onvoiceschanged=null)},getState:()=>({id:"tts",enabled:e,value:{speed:t.speed}}),setState:e=>{if(void 0!==e.speed){t.speed=Math.min(2,Math.max(.5,e.speed)),_();const a=document.getElementById("accessify-tts-speed");a&&(a.value=String(t.speed));const i=n?.querySelector(".accessify-tts-speed-val");i&&(i.textContent=`${t.speed.toFixed(1)}x`)}}}}},Symbol.toStringTag,{value:"Module"})),cr=Object.freeze(Object.defineProperty({__proto__:null,default:function(e,t="de"){let n=!1,a="einfache",i=[],r=null,o=null;const s="accessify-text-simplify",c="data-accessify-simplified",l="data-accessify-original";function d(e){e.style.opacity="0.5",e.style.transition="opacity 0.3s ease"}function u(e){e.style.opacity="",e.style.transition=""}function f(e,n){o||(o=document.createElement("div"),o.setAttribute("role","status"),o.setAttribute("aria-live","polite"),Object.assign(o.style,{position:"fixed",bottom:"80px",right:"24px",zIndex:"2147483645",padding:"10px 18px",background:"#1a1a2e",color:"#4ea8de",borderRadius:"10px",boxShadow:"0 4px 20px rgba(0,0,0,0.3)",fontFamily:"system-ui, -apple-system, sans-serif",fontSize:"13px",fontWeight:"600",display:"flex",alignItems:"center",gap:"8px"}),document.body.appendChild(o));const a=Math.round(e/n*100),i=t.startsWith("de")?`Wird vereinfacht... ${e}/${n} (${a}%)`:`Simplifying... ${e}/${n} (${a}%)`;if(o.innerHTML=`<span style="display:inline-block;width:14px;height:14px;border:2px solid rgba(78,168,222,0.3);border-top-color:#4ea8de;border-radius:50%;animation:accessify-autospin 0.6s linear infinite"></span> ${i}`,!document.getElementById("accessify-autospin-style")){const e=document.createElement("style");e.id="accessify-autospin-style",e.textContent="@keyframes accessify-autospin { to { transform: rotate(360deg); } }",document.head.appendChild(e)}}function p(){o?.remove(),o=null,document.getElementById("accessify-autospin-style")?.remove()}return{id:"text-simplify",name:()=>t.startsWith("de")?"Text vereinfachen":"Simplify Text",description:t.startsWith("de")?"Text in Einfache Sprache umwandeln":"Simplify text for easier understanding",icon:"simplify-text",category:"ai",activate:function(){n||(n=!0,function(){const e=localStorage.getItem(s);if(e)try{const t=JSON.parse(e);"einfache"!==t.level&&"leichte"!==t.level||(a=t.level)}catch{}}(),async function(){if(!e)return f(0,1),n=t.startsWith("de")?"Kein API-Key konfiguriert":"No API key configured",void(o&&(o.innerHTML=`<span style="color:#ef4444">✕</span> ${n}`,o.style.color="#ef4444",setTimeout(()=>p(),5e3)));var n;const s=function(){const e=[],t=new Set;return document.querySelectorAll("p, li, td, th, blockquote, figcaption, .hero-subtitle, h1, h2, h3, h4, h5, h6").forEach(n=>{const a=n;if(a.closest("#accessify-root"))return;if(null===a.offsetParent&&"fixed"!==a.style.display)return;if((a.textContent?.trim()||"").length<20)return;if(t.has(a))return;let i=!1;for(const e of t)if(e.contains(a)){i=!0;break}i||(t.add(a),e.push(a))}),e}();if(0===s.length)return;r=new AbortController,i=[];for(const e of s)i.push({el:e,originalText:e.textContent||""}),e.setAttribute(l,e.innerHTML),d(e);f(0,s.length);let g=0,h=0;for(const i of s){if(r.signal.aborted)break;const n=i.textContent?.trim()||"";if(n.length<20)u(i),g++,f(g,s.length);else try{const o=await e.simplifyText(n,a,t);if(r?.signal.aborted)return;o&&o!==n&&(i.textContent=o,i.setAttribute(c,"true"),h++)}catch(m){if(m?.message?.includes("429")){await new Promise(e=>setTimeout(e,8e3));try{const o=await e.simplifyText(n,a,t);if(r?.signal.aborted)return;o&&o!==n&&(i.textContent=o,i.setAttribute(c,"true"),h++)}catch{}}else console.warn("[Accessify] Failed to simplify:",m)}finally{u(i),g++,r?.signal.aborted||f(g,s.length)}}r?.signal.aborted||function(e){if(o){const n=t.startsWith("de")?`${e} Textabschnitte vereinfacht`:`${e} text sections simplified`;o.innerHTML=`<span style="color:#22c55e">✓</span> ${n}`,o.style.color="#22c55e",setTimeout(()=>p(),3e3)}}(h)}())},deactivate:function(){n=!1,r?.abort(),r=null,function(){for(const{el:e}of i){const t=e.getAttribute(l);null!==t&&(e.innerHTML=t,e.removeAttribute(l),e.removeAttribute(c),u(e))}i=[]}(),p()},getState:()=>({id:"text-simplify",enabled:n,value:{level:a}}),setState:e=>{!e.level||"einfache"!==e.level&&"leichte"!==e.level||(a=e.level,localStorage.setItem(s,JSON.stringify({level:a})))}}}},Symbol.toStringTag,{value:"Module"})),lr=Object.freeze(Object.defineProperty({__proto__:null,default:function(e,t="de"){let n=!1,a=null,i=null,r=null,o=[];const s=new Map,c="accessify-alt-text-styles",l="accessify-alt-missing",d="accessify-alt-badge",u="accessify-alt-panel";function f(){g();const e=o.filter(e=>!s.has(e)||!s.get(e).applied).length;0===e&&o.length>0?p(t.startsWith("de")?"Alle Bilder haben Alt-Text!":"All images have alt text!","#2a9d8f",0):0!==e&&p(t.startsWith("de")?`${e} ${1===e?"Bild":"Bilder"} ohne Alt-Text`:`${e} ${1===e?"image":"images"} missing alt text`,"#e63946",e)}function p(e,t,n){const a=document.createElement("div");if(a.className=d,a.setAttribute("role","status"),a.setAttribute("aria-live","polite"),n>0){const e=document.createElement("span");e.className=`${d}-count`,e.style.background=t,e.textContent=String(n),a.appendChild(e)}const r=document.createElement("span");r.textContent=e,a.appendChild(r),document.body.appendChild(a),i=a}function g(){i?.remove(),i=null}function h(e){e.preventDefault(),e.stopPropagation(),function(e){b();const n=document.createElement("div");n.className=u,n.setAttribute("role","dialog"),n.setAttribute("aria-label",t.startsWith("de")?"Alt-Text erzeugen":"Generate Alt Text");const a=e.getBoundingClientRect(),i=a.bottom+window.scrollY+8,o=Math.min(Math.max(8,a.left+window.scrollX),window.innerWidth-380);n.style.top=`${i}px`,n.style.left=`${o}px`;const c=document.createElement("div");c.className=`${u}-header`;const l=document.createElement("h3");l.textContent=t.startsWith("de")?"Alt-Text erzeugen":"Generate Alt Text";const d=document.createElement("button");d.className=`${u}-close`,d.setAttribute("aria-label",t.startsWith("de")?"Schließen":"Close"),d.innerHTML="&times;",d.addEventListener("click",()=>b()),c.appendChild(l),c.appendChild(d),n.appendChild(c);const f=document.createElement("div");f.className=`${u}-disclaimer`,f.textContent=t.startsWith("de")?"KI-generiert – bitte überprüfen":"AI-generated – please review",n.appendChild(f);const p=document.createElement("img");p.className=`${u}-preview`,p.src=e.src,p.alt="Preview of image being described",n.appendChild(p);const g=s.get(e);g&&g.generatedAlt?v(n,e,g.generatedAlt,g.applied):m(n,e),document.body.appendChild(n),r=n,d.focus();const h=e=>{"Escape"===e.key&&(b(),document.removeEventListener("keydown",h))};document.addEventListener("keydown",h)}(e.currentTarget)}async function m(n,a){if(!e)return void y(n,t.startsWith("de")?"Bitte konfigurieren Sie einen OpenRouter API-Schlüssel, um KI-generierte Bildbeschreibungen zu nutzen.":"Please configure an OpenRouter API key to use AI alt-text generation.");const i=document.createElement("div");i.className=`${u}-spinner`,i.textContent=t.startsWith("de")?"Alt-Text wird erzeugt...":"Generating alt text...",n.appendChild(i);try{const r=function(e){const t=[];e.title&&t.push(`Title: ${e.title}`);try{const n=new URL(e.src,window.location.href).pathname.split("/").pop();n&&t.push(`Filename: ${n}`)}catch{}const n=e.closest("figure");if(n){const e=n.querySelector("figcaption");e?.textContent?.trim()&&t.push(`Caption: ${e.textContent.trim()}`)}const a=e.parentElement;if(a){const e=a.querySelector("h1, h2, h3, h4, h5, h6");e?.textContent?.trim()&&t.push(`Nearby heading: ${e.textContent.trim()}`)}const i=e.getAttribute("aria-describedby");if(i){const e=document.getElementById(i);e?.textContent?.trim()&&t.push(`Description: ${e.textContent.trim()}`)}return t.join(". ")}(a),o=await e.generateAltText(a.src,r);if(i.remove(),!o)return void y(n,t.startsWith("de")?"Keine Beschreibung erhalten. Bitte versuchen Sie es erneut.":"No description received. Please try again.");s.set(a,{element:a,generatedAlt:o,applied:!1}),v(n,a,o,!1)}catch(r){i.remove(),y(n,r instanceof mi?t.startsWith("de")?"Kostenlose API-Grenze erreicht. Bitte versuchen Sie es in einer Minute erneut oder hinterlegen Sie einen eigenen API-Schlüssel.":"Free tier rate limit reached. Please try again in a minute or configure your own API key.":(r?.message||"").includes("401")?t.startsWith("de")?"OpenRouter API-Schlüssel fehlt oder ungültig. Erstellen Sie einen kostenlosen Key auf openrouter.ai und übergeben Sie ihn als openRouterKey in der Widget-Konfiguration.":"OpenRouter API key missing or invalid. Create a free key at openrouter.ai and pass it as openRouterKey in the widget config.":t.startsWith("de")?"Fehler beim Erzeugen des Alt-Texts. Bitte versuchen Sie es erneut.":"Error generating alt text. Please try again.")}}function v(e,n,a,i){e.querySelectorAll(`.${u}-textarea, .${u}-actions, .${u}-error, .${u}-spinner`).forEach(e=>e.remove());const r=document.createElement("textarea");r.className=`${u}-textarea`,r.value=a,r.readOnly=!0,r.setAttribute("aria-label",t.startsWith("de")?"Alt-Text Beschreibung":"Alt text description"),e.appendChild(r);const o=document.createElement("div");o.className=`${u}-actions`;const c=document.createElement("button");c.textContent=t.startsWith("de")?"Bearbeiten":"Edit",c.addEventListener("click",()=>{if(r.readOnly=!r.readOnly,r.readOnly){c.textContent=t.startsWith("de")?"Bearbeiten":"Edit";const e=s.get(n);e&&(e.generatedAlt=r.value)}else r.focus(),c.textContent=t.startsWith("de")?"Fertig":"Done"});const l=document.createElement("button");l.textContent=t.startsWith("de")?"Neu erzeugen":"Regenerate",l.addEventListener("click",()=>{s.delete(n),r.remove(),o.remove(),m(e,n)});const d=document.createElement("button");d.classList.add(i?"success":"primary"),d.textContent=i?t.startsWith("de")?"Angewendet":"Applied":t.startsWith("de")?"Übernehmen":"Apply",d.addEventListener("click",()=>{const e=r.value.trim();if(!e)return;n.alt=e,n.setAttribute("alt",e);const a=s.get(n)||{element:n,generatedAlt:e,applied:!1};a.applied=!0,a.generatedAlt=e,s.set(n,a),n.classList.add("accessify-alt-processed"),d.classList.remove("primary"),d.classList.add("success"),d.textContent=t.startsWith("de")?"Angewendet!":"Applied!",f(),setTimeout(()=>b(),1200)}),o.appendChild(c),o.appendChild(l),o.appendChild(d),e.appendChild(o)}function y(e,t){const n=document.createElement("div");n.className=`${u}-error`,n.setAttribute("role","alert"),n.textContent=t,e.appendChild(n)}function b(){r?.remove(),r=null}return{id:"alt-text",name:()=>t.startsWith("de")?"Alt-Text erzeugen":"Alt-Text Generator",description:t.startsWith("de")?"Bildbeschreibungen automatisch erstellen":"Auto-generate image descriptions",icon:"alt-text",category:"ai",activate:function(){n||(n=!0,document.getElementById(c)||(a=document.createElement("style"),a.id=c,a.textContent=`\n .${l} {\n outline: 3px dashed #e63946 !important;\n outline-offset: 3px !important;\n position: relative !important;\n cursor: pointer !important;\n transition: outline-color 0.2s ease !important;\n }\n .${l}:hover {\n outline-color: #f77f00 !important;\n outline-style: solid !important;\n }\n .${l}::after {\n content: 'ALT';\n position: absolute;\n top: 4px;\n left: 4px;\n padding: 2px 6px;\n background: #e63946;\n color: #fff;\n font-family: system-ui, -apple-system, sans-serif;\n font-size: 10px;\n font-weight: 700;\n border-radius: 3px;\n line-height: 1.4;\n pointer-events: none;\n z-index: 1;\n }\n\n .${l}.accessify-alt-processed {\n outline-color: #2a9d8f !important;\n outline-style: solid !important;\n }\n .${l}.accessify-alt-processed::after {\n content: '\\2713 ALT';\n background: #2a9d8f;\n }\n\n .${d} {\n position: fixed;\n top: 12px;\n right: 12px;\n z-index: 2147483646;\n display: flex;\n align-items: center;\n gap: 6px;\n padding: 8px 14px;\n background: #1a1a2e;\n color: #f0f0f0;\n border-radius: 8px;\n box-shadow: 0 4px 16px rgba(0,0,0,0.3);\n font-family: system-ui, -apple-system, sans-serif;\n font-size: 13px;\n user-select: none;\n animation: accessify-alt-fade-in 0.2s ease;\n }\n .${d}-count {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: 22px;\n height: 22px;\n padding: 0 6px;\n background: #e63946;\n color: #fff;\n font-size: 12px;\n font-weight: 700;\n border-radius: 11px;\n }\n\n .${u} {\n position: absolute;\n z-index: 2147483646;\n width: 360px;\n max-width: 90vw;\n padding: 16px;\n background: #1a1a2e;\n color: #f0f0f0;\n border-radius: 12px;\n box-shadow: 0 8px 32px rgba(0,0,0,0.4);\n font-family: system-ui, -apple-system, sans-serif;\n font-size: 14px;\n line-height: 1.5;\n animation: accessify-alt-fade-in 0.2s ease;\n }\n .${u}-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 10px;\n }\n .${u}-header h3 {\n margin: 0;\n font-size: 14px;\n font-weight: 600;\n color: #4ea8de;\n }\n .${u}-close {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n padding: 0;\n border: none;\n border-radius: 4px;\n background: transparent;\n color: #888;\n font-size: 16px;\n cursor: pointer;\n }\n .${u}-close:hover { color: #fff; background: rgba(255,255,255,0.1); }\n .${u}-close:focus-visible { outline: 2px solid #4ea8de; outline-offset: 1px; }\n\n .${u}-disclaimer {\n padding: 6px 10px;\n margin-bottom: 10px;\n background: rgba(255,193,7,0.1);\n border: 1px solid rgba(255,193,7,0.25);\n border-radius: 6px;\n font-size: 11px;\n color: #ffd166;\n }\n\n .${u}-preview {\n max-width: 100%;\n max-height: 120px;\n border-radius: 6px;\n margin-bottom: 10px;\n object-fit: contain;\n background: rgba(255,255,255,0.05);\n }\n\n .${u}-textarea {\n width: 100%;\n min-height: 60px;\n padding: 10px;\n border: 1px solid rgba(255,255,255,0.15);\n border-radius: 8px;\n background: rgba(255,255,255,0.04);\n color: #f0f0f0;\n font-family: inherit;\n font-size: 13px;\n line-height: 1.5;\n resize: vertical;\n margin-bottom: 10px;\n box-sizing: border-box;\n }\n .${u}-textarea:focus {\n border-color: #4ea8de;\n outline: none;\n }\n .${u}-textarea:read-only {\n opacity: 0.7;\n cursor: default;\n }\n\n .${u}-actions {\n display: flex;\n gap: 6px;\n justify-content: flex-end;\n }\n .${u}-actions button {\n padding: 6px 14px;\n border: 1px solid rgba(255,255,255,0.15);\n border-radius: 6px;\n background: rgba(255,255,255,0.08);\n color: #f0f0f0;\n font-size: 12px;\n cursor: pointer;\n transition: background 0.15s ease;\n }\n .${u}-actions button:hover { background: rgba(255,255,255,0.18); }\n .${u}-actions button:focus-visible { outline: 2px solid #4ea8de; outline-offset: 1px; }\n .${u}-actions button.primary {\n background: rgba(78,168,222,0.2);\n color: #4ea8de;\n border-color: rgba(78,168,222,0.3);\n }\n .${u}-actions button.primary:hover { background: rgba(78,168,222,0.35); }\n .${u}-actions button.success {\n background: rgba(42,157,143,0.2);\n color: #2a9d8f;\n border-color: rgba(42,157,143,0.3);\n }\n .${u}-actions button.success:hover { background: rgba(42,157,143,0.35); }\n\n .${u}-spinner {\n display: flex;\n align-items: center;\n gap: 10px;\n padding: 16px 0;\n justify-content: center;\n color: #888;\n font-size: 13px;\n }\n .${u}-spinner::before {\n content: '';\n width: 18px;\n height: 18px;\n border: 2px solid rgba(78,168,222,0.3);\n border-top-color: #4ea8de;\n border-radius: 50%;\n animation: accessify-alt-spin 0.6s linear infinite;\n }\n\n .${u}-error {\n padding: 10px;\n background: rgba(220,53,69,0.12);\n border: 1px solid rgba(220,53,69,0.3);\n border-radius: 8px;\n color: #f0a0a8;\n font-size: 13px;\n margin-bottom: 10px;\n }\n\n @keyframes accessify-alt-fade-in {\n from { opacity: 0; transform: translateY(4px); }\n to { opacity: 1; transform: translateY(0); }\n }\n @keyframes accessify-alt-spin {\n to { transform: rotate(360deg); }\n }\n `,document.head.appendChild(a)),o=function(){const e=document.querySelectorAll("img"),t=[];return e.forEach(e=>{if(e.closest("#accessify-root"))return;if(e.width<20||e.height<20)return;const n=e.getAttribute("alt");null!==n&&""!==n.trim()||t.push(e)}),t}(),o.forEach(e=>{e.classList.add(l),s.has(e)&&s.get(e).applied&&e.classList.add("accessify-alt-processed"),e.addEventListener("click",h)}),f())},deactivate:function(){n=!1,b(),o.forEach(e=>{e.classList.remove(l,"accessify-alt-processed"),e.removeEventListener("click",h)}),o=[],g(),a?.remove(),a=null,document.getElementById(c)?.remove()},getState:()=>({id:"alt-text",enabled:n,value:{missingCount:o.length,processedCount:s.size,appliedCount:[...s.values()].filter(e=>e.applied).length}})}}},Symbol.toStringTag,{value:"Module"}));let dr=null;const ur=Object.freeze(Object.defineProperty({__proto__:null,default:function(e="de"){let t=!1,n=null,a=null,i=null,r=!1;const o="accessify-scan-styles",s="accessify-scan-panel";function c(t){t.innerHTML="";const n=document.createElement("div");n.className=`${s}-spinner`;const a=document.createElement("span");a.textContent=e.startsWith("de")?"Seite wird auf Barrierefreiheit geprüft...":"Scanning page for accessibility issues...",n.appendChild(a);const i=document.createElement("span");i.style.fontSize="12px",i.style.color="#666",i.textContent=e.startsWith("de")?"axe-core wird geladen und analysiert die Seite":"Loading axe-core and analyzing the page",n.appendChild(i),t.appendChild(n)}async function l(t,n){r=!0;try{const a=await async function(){await async function(){if(!dr){if(!window.axe)return new Promise((e,t)=>{const n=document.createElement("script");n.src="https://cdnjs.cloudflare.com/ajax/libs/axe-core/4.10.2/axe.min.js",n.crossOrigin="anonymous",n.onload=()=>{dr=window.axe,dr?e():t(new Error("axe-core loaded but not available on window"))},n.onerror=()=>t(new Error("Failed to load axe-core")),document.head.appendChild(n)});dr=window.axe}}();const e=await dr.run(document,{exclude:["#accessify-root"],runOnly:{type:"tag",values:["wcag2a","wcag2aa","wcag21a","wcag21aa","best-practice"]}}),t={violations:e.violations.map(e=>{return{id:e.id,impact:e.impact||"minor",description:e.description,helpUrl:e.helpUrl,nodes:e.nodes.length,wcagCriteria:(t=e.tags,t.filter(e=>/^wcag\d/.test(e)||e.startsWith("best-practice")))};var t}),passes:e.passes.length,count:e.passes.length+e.violations.length,timestamp:Date.now()};return i=t,t}();r=!1,function(t,n,a){if(t.innerHTML="",0===a.violations.length){const i=document.createElement("div");return i.className=`${s}-empty`,i.innerHTML=`\n <span class="checkmark" aria-hidden="true">&#10003;</span>\n ${e.startsWith("de")?"Keine Probleme gefunden!":"No issues found!"}\n `,t.appendChild(i),d(t,a),void u(n,a)}d(t,a);const i={critical:[],serious:[],moderate:[],minor:[]};a.violations.forEach(e=>{const t=e.impact||"minor";i[t]?i[t].push(e):i.minor.push(e)});const r={critical:{de:"Kritisch",en:"Critical"},serious:{de:"Schwerwiegend",en:"Serious"},moderate:{de:"Mittel",en:"Moderate"},minor:{de:"Gering",en:"Minor"}};for(const[o,c]of Object.entries(i)){if(0===c.length)continue;const n=document.createElement("div");n.className=`${s}-group`,n.setAttribute("data-impact",o);const a=document.createElement("div");a.className=`${s}-group-header`;const i=document.createElement("span");i.textContent="▼",i.style.fontSize="10px",i.style.transition="transform 0.15s ease";const l=document.createElement("span"),d=e.startsWith("de")?"de":"en";l.textContent=r[o]?.[d]||o;const u=document.createElement("span");u.className="count",u.textContent=String(c.length),a.appendChild(i),a.appendChild(l),a.appendChild(u);const f=document.createElement("div");let p=!1;a.addEventListener("click",()=>{p=!p,f.style.display=p?"none":"block",i.style.transform=p?"rotate(-90deg)":"rotate(0)"}),c.forEach(t=>{const n=document.createElement("div");n.className=`${s}-violation`;const a=document.createElement("div");a.className=`${s}-violation-desc`,a.textContent=t.description;const i=document.createElement("div");i.className=`${s}-violation-meta`;const r=document.createElement("span");if(r.textContent=e.startsWith("de")?`${t.nodes} ${1===t.nodes?"Element":"Elemente"}`:`${t.nodes} ${1===t.nodes?"element":"elements"}`,i.appendChild(r),t.wcagCriteria.length>0){const e=document.createElement("span");e.textContent=t.wcagCriteria.join(", "),i.appendChild(e)}const o=document.createElement("a");o.href=t.helpUrl,o.target="_blank",o.rel="noopener noreferrer",o.textContent=e.startsWith("de")?"Mehr erfahren":"Learn more",i.appendChild(o),n.appendChild(a),n.appendChild(i),f.appendChild(n)}),n.appendChild(a),n.appendChild(f),t.appendChild(n)}u(n,a)}(t,n,a)}catch(a){r=!1,t.innerHTML="";const i=document.createElement("div");i.style.cssText="padding: 20px; text-align: center; color: #f0a0a8;",i.textContent=e.startsWith("de")?`Fehler beim Scannen: ${a.message}`:`Scan error: ${a.message}`,t.appendChild(i),u(n,null)}}function d(t,n){const a=document.createElement("div");a.className=`${s}-score`;const i=n.count,r=n.passes,o=i>0?Math.round(r/i*100):100;let c="#2a9d8f";o<60?c="#e63946":o<80?c="#f77f00":o<95&&(c="#ffd166");const l=document.createElement("div");l.className=`${s}-score-ring`;const d=2*Math.PI*22;l.innerHTML=`\n <svg width="56" height="56" viewBox="0 0 56 56" aria-hidden="true">\n <circle cx="28" cy="28" r="22" fill="none" stroke="rgba(255,255,255,0.08)" stroke-width="4" />\n <circle cx="28" cy="28" r="22" fill="none" stroke="${c}" stroke-width="4"\n stroke-dasharray="${d}" stroke-dashoffset="${d-o/100*d}" stroke-linecap="round" />\n </svg>\n <div class="score-text" style="color:${c}">${o}%</div>\n `;const u=document.createElement("div");u.className=`${s}-score-details`,u.innerHTML=e.startsWith("de")?`<strong>${r}</strong> von <strong>${i}</strong> Prüfungen bestanden<br>${n.violations.length} ${1===n.violations.length?"Problem":"Probleme"} gefunden`:`<strong>${r}</strong> of <strong>${i}</strong> checks passed<br>${n.violations.length} ${1===n.violations.length?"issue":"issues"} found`,a.appendChild(l),a.appendChild(u),t.insertBefore(a,t.firstChild)}function u(t,n){t.querySelector(`.${s}-footer`)?.remove();const a=document.createElement("div");a.className=`${s}-footer`;const i=document.createElement("div");i.style.display="flex",i.style.gap="6px";const r=document.createElement("button");if(r.classList.add("primary"),r.textContent=e.startsWith("de")?"Erneut prüfen":"Rescan",r.addEventListener("click",()=>{const e=t.querySelector(`.${s}-body`);e&&(c(e),l(e,t))}),i.appendChild(r),n&&n.violations.length>0){const a=n.violations.filter(e=>f[e.id]).length;if(a>0){const r=document.createElement("button");r.classList.add("fix"),r.textContent=e.startsWith("de")?`${a} automatisch beheben`:`Auto-fix ${a} ${1===a?"issue":"issues"}`,r.addEventListener("click",()=>{const a=function(t){const n={fixed:[],skipped:[]},a=e.startsWith("de")?"de":"en";return t.forEach(e=>{const t=f[e.id];if(t)try{t.fix()?n.fixed.push("de"===a?t.labelDe:t.label):n.skipped.push("de"===a?t.labelDe:t.label)}catch{n.skipped.push("de"===a?t.labelDe:t.label)}}),n}(n.violations),i=t.querySelector(`.${s}-body`);i&&function(t,n){t.querySelectorAll(`.${s}-fix-report`).forEach(e=>e.remove());const a=document.createElement("div");a.className=`${s}-fix-report`,a.setAttribute("role","status"),a.setAttribute("aria-live","polite");let i="";n.fixed.length>0&&(i+=`<strong>${e.startsWith("de")?"Behoben:":"Fixed:"}</strong><br>`,i+=n.fixed.map(e=>`&#10003; ${e}`).join("<br>")),n.skipped.length>0&&(i&&(i+="<br><br>"),i+=`<strong>${e.startsWith("de")?"Übersprungen:":"Skipped:"}</strong><br>`,i+=n.skipped.map(e=>`&#8226; ${e}`).join("<br>")),0===n.fixed.length&&0===n.skipped.length&&(i=e.startsWith("de")?"Keine automatisch behebbaren Probleme gefunden.":"No auto-fixable issues found."),a.innerHTML=i,t.insertBefore(a,t.firstChild)}(i,a)}),i.appendChild(r)}}const o=document.createElement("div");if(o.style.display="flex",o.style.gap="6px",n){const t=document.createElement("button");t.textContent=e.startsWith("de")?"JSON exportieren":"Export JSON",t.addEventListener("click",()=>{!function(e){const t={...e,url:window.location.href,generatedBy:"Accessify WCAG Scanner",exportedAt:(new Date).toISOString()},n=JSON.stringify(t,null,2),a=new Blob([n],{type:"application/json"}),i=URL.createObjectURL(a),r=document.createElement("a");r.href=i,r.download=`accessify-scan-${Date.now()}.json`,r.click(),URL.revokeObjectURL(i)}(n)}),o.appendChild(t)}const d=document.createElement("button");d.textContent=e.startsWith("de")?"Schließen":"Close",d.addEventListener("click",()=>p()),o.appendChild(d),a.appendChild(i),a.appendChild(o),t.appendChild(a)}const f={"html-has-lang":{label:"Added lang attribute to <html>",labelDe:"lang-Attribut zu <html> hinzugefügt",fix:()=>function(){const e=document.documentElement;if(e.hasAttribute("lang")&&""!==e.lang.trim())return!1;const t=function(){const e=document.querySelector('meta[http-equiv="content-language"]');if(e?.content)return e.content;const t=document.querySelector('meta[property="og:locale"]');if(t?.content)return t.content.replace("_","-");const n=(document.body.innerText||"").toLowerCase().slice(0,2e3);let a=0,i=0;return["und","der","die","das","ist","nicht","ein","eine","mit","auf"].forEach(e=>{const t=new RegExp(`\\b${e}\\b`,"gi");a+=(n.match(t)||[]).length}),["the","and","is","are","for","not","with","this","that","was"].forEach(e=>{const t=new RegExp(`\\b${e}\\b`,"gi");i+=(n.match(t)||[]).length}),a>i?"de":"en"}();return e.setAttribute("lang",t),!0}()},"document-title":{label:"Added page title",labelDe:"Seitentitel hinzugefügt",fix:()=>function(){let e=document.querySelector("title");if(e&&e.textContent?.trim())return!1;const t=document.querySelector("h1"),n=t?.textContent?.trim()||window.location.hostname||"Untitled Page";return e||(e=document.createElement("title"),document.head.appendChild(e)),e.textContent=n,!0}()},bypass:{label:"Added skip-to-content link",labelDe:"Überspringen-Link hinzugefügt",fix:()=>function(){if(document.querySelector('a[href="#main"], a[href="#content"], a[href="#main-content"], .skip-link, .skip-to-content'))return!1;const t=document.querySelector("main")||document.getElementById("main")||document.getElementById("content")||document.getElementById("main-content");if(!t){const e=document.querySelector("h1, h2");e&&!e.id&&(e.id="accessify-main-content")}const n=t?.id||(t?t.id="accessify-main-content":"accessify-main-content"),a=document.createElement("a");return a.href=`#${n}`,a.textContent=e.startsWith("de")?"Zum Inhalt springen":"Skip to content",a.className="accessify-skip-link",Object.assign(a.style,{position:"absolute",top:"-100px",left:"0",padding:"8px 16px",background:"#1a1a2e",color:"#4ea8de",fontSize:"14px",fontWeight:"600",fontFamily:"system-ui, -apple-system, sans-serif",textDecoration:"none",zIndex:"2147483647",borderRadius:"0 0 8px 0",transition:"top 0.2s ease"}),a.addEventListener("focus",()=>{a.style.top="0"}),a.addEventListener("blur",()=>{a.style.top="-100px"}),document.body.insertBefore(a,document.body.firstChild),!0}()},"link-name":{label:"Added aria-labels to empty links",labelDe:"aria-label zu leeren Links hinzugefügt",fix:()=>function(){const e=document.querySelectorAll("a:not([aria-label]):not([aria-labelledby])");let t=0;return e.forEach(e=>{const n=(e.textContent||"").trim(),a=e.querySelector("img[alt]");if(n||a&&a.alt)return;const i=e.title?.trim(),r=e.href,o=e.querySelector("img"),s=i||(o?o.alt:"")||(r?new URL(r,window.location.href).hostname:"")||"Link";e.setAttribute("aria-label",s),t++}),t>0}()},"button-name":{label:"Added aria-labels to empty buttons",labelDe:"aria-label zu leeren Buttons hinzugefügt",fix:()=>function(){const e=document.querySelectorAll("button:not([aria-label]):not([aria-labelledby])");let t=0;return e.forEach(e=>{if((e.textContent||"").trim())return;const n=e.title?.trim(),a=e.querySelector("img[alt]"),i=e.querySelector("svg"),r=n||(a?a.alt:"")||(i?function(e){const t=e.querySelector("title");if(t?.textContent?.trim())return t.textContent.trim();const n=e.getAttribute("aria-label");return n?.trim()?n.trim():""}(i):"")||function(e){if(!e)return"";const t=e.replace(/[_-]/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").split(/\s+/).filter(e=>e.length>2&&!["btn","button","icon","svg","img","cls","mod"].includes(e.toLowerCase()));return t.length>0?t.slice(0,3).join(" "):""}(e.className)||"Button";e.setAttribute("aria-label",r),t++}),t>0}()},"focus-order-semantics":{label:"Added focus indicators CSS",labelDe:"CSS-Fokus-Indikatoren hinzugefügt",fix:()=>function(){const e="accessify-focus-fix";if(document.getElementById(e))return!1;const t=document.createElement("style");return t.id=e,t.textContent="\n *:focus-visible {\n outline: 3px solid #4ea8de !important;\n outline-offset: 2px !important;\n }\n ",document.head.appendChild(t),!0}()}};function p(){a?.remove(),a=null,document.querySelector(`.${s}-backdrop`)?.remove()}return{id:"auto-scan",name:()=>e.startsWith("de")?"WCAG-Prüfung":"WCAG Scan",description:e.startsWith("de")?"Seite auf Barrierefreiheit prüfen":"Scan page for accessibility issues",icon:"scan",category:"ai",activate:function(){t||(t=!0,function(){p(),document.getElementById(o)||(n=document.createElement("style"),n.id=o,n.textContent=`\n .${s} {\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n z-index: 2147483646;\n width: 560px;\n max-width: 92vw;\n max-height: 80vh;\n background: #1a1a2e;\n color: #f0f0f0;\n border-radius: 14px;\n box-shadow: 0 12px 48px rgba(0,0,0,0.5);\n font-family: system-ui, -apple-system, sans-serif;\n font-size: 14px;\n line-height: 1.5;\n display: flex;\n flex-direction: column;\n animation: accessify-scan-fade-in 0.25s ease;\n }\n\n .${s}-backdrop {\n position: fixed;\n inset: 0;\n z-index: 2147483645;\n background: rgba(0,0,0,0.4);\n animation: accessify-scan-fade-in 0.2s ease;\n }\n\n .${s}-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 16px 20px;\n border-bottom: 1px solid rgba(255,255,255,0.08);\n flex-shrink: 0;\n }\n .${s}-header h2 {\n margin: 0;\n font-size: 16px;\n font-weight: 700;\n color: #f0f0f0;\n }\n .${s}-close {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 28px;\n height: 28px;\n padding: 0;\n border: none;\n border-radius: 6px;\n background: transparent;\n color: #888;\n font-size: 18px;\n cursor: pointer;\n }\n .${s}-close:hover { color: #fff; background: rgba(255,255,255,0.1); }\n .${s}-close:focus-visible { outline: 2px solid #4ea8de; outline-offset: 1px; }\n\n .${s}-body {\n flex: 1;\n overflow-y: auto;\n padding: 16px 20px;\n }\n\n .${s}-score {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 14px 16px;\n background: rgba(255,255,255,0.04);\n border-radius: 10px;\n margin-bottom: 16px;\n }\n .${s}-score-ring {\n position: relative;\n width: 56px;\n height: 56px;\n flex-shrink: 0;\n }\n .${s}-score-ring svg {\n transform: rotate(-90deg);\n }\n .${s}-score-ring .score-text {\n position: absolute;\n inset: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 16px;\n font-weight: 700;\n }\n .${s}-score-details {\n font-size: 13px;\n color: #aaa;\n }\n .${s}-score-details strong {\n color: #f0f0f0;\n font-weight: 600;\n }\n\n .${s}-group {\n margin-bottom: 14px;\n }\n .${s}-group-header {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 8px 12px;\n border-radius: 8px;\n font-size: 13px;\n font-weight: 600;\n margin-bottom: 6px;\n cursor: pointer;\n user-select: none;\n }\n .${s}-group-header:hover {\n opacity: 0.9;\n }\n .${s}-group-header .count {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: 20px;\n height: 20px;\n padding: 0 6px;\n border-radius: 10px;\n font-size: 11px;\n font-weight: 700;\n }\n .${s}-group[data-impact="critical"] .${s}-group-header {\n background: rgba(220,53,69,0.12);\n color: #f0a0a8;\n }\n .${s}-group[data-impact="critical"] .count {\n background: rgba(220,53,69,0.3);\n }\n .${s}-group[data-impact="serious"] .${s}-group-header {\n background: rgba(255,152,0,0.12);\n color: #ffcc80;\n }\n .${s}-group[data-impact="serious"] .count {\n background: rgba(255,152,0,0.3);\n }\n .${s}-group[data-impact="moderate"] .${s}-group-header {\n background: rgba(255,193,7,0.12);\n color: #ffd54f;\n }\n .${s}-group[data-impact="moderate"] .count {\n background: rgba(255,193,7,0.3);\n }\n .${s}-group[data-impact="minor"] .${s}-group-header {\n background: rgba(78,168,222,0.12);\n color: #81d4fa;\n }\n .${s}-group[data-impact="minor"] .count {\n background: rgba(78,168,222,0.3);\n }\n\n .${s}-violation {\n padding: 10px 14px;\n margin-bottom: 4px;\n background: rgba(255,255,255,0.03);\n border-radius: 6px;\n border-left: 3px solid rgba(255,255,255,0.1);\n }\n .${s}-violation-desc {\n font-size: 13px;\n margin-bottom: 4px;\n }\n .${s}-violation-meta {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n font-size: 11px;\n color: #888;\n }\n .${s}-violation-meta a {\n color: #4ea8de;\n text-decoration: none;\n }\n .${s}-violation-meta a:hover { text-decoration: underline; }\n .${s}-violation-meta a:focus-visible {\n outline: 2px solid #4ea8de;\n outline-offset: 1px;\n }\n\n .${s}-footer {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 12px 20px;\n border-top: 1px solid rgba(255,255,255,0.08);\n flex-shrink: 0;\n gap: 8px;\n flex-wrap: wrap;\n }\n .${s}-footer button {\n padding: 7px 16px;\n border: 1px solid rgba(255,255,255,0.15);\n border-radius: 7px;\n background: rgba(255,255,255,0.08);\n color: #f0f0f0;\n font-size: 12px;\n font-weight: 500;\n cursor: pointer;\n transition: background 0.15s ease;\n white-space: nowrap;\n }\n .${s}-footer button:hover { background: rgba(255,255,255,0.18); }\n .${s}-footer button:focus-visible { outline: 2px solid #4ea8de; outline-offset: 1px; }\n .${s}-footer button.primary {\n background: rgba(78,168,222,0.2);\n color: #4ea8de;\n border-color: rgba(78,168,222,0.3);\n }\n .${s}-footer button.primary:hover { background: rgba(78,168,222,0.35); }\n .${s}-footer button.fix {\n background: rgba(42,157,143,0.2);\n color: #2a9d8f;\n border-color: rgba(42,157,143,0.3);\n }\n .${s}-footer button.fix:hover { background: rgba(42,157,143,0.35); }\n\n .${s}-spinner {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 14px;\n padding: 40px 20px;\n color: #aaa;\n font-size: 14px;\n }\n .${s}-spinner::before {\n content: '';\n width: 28px;\n height: 28px;\n border: 3px solid rgba(78,168,222,0.2);\n border-top-color: #4ea8de;\n border-radius: 50%;\n animation: accessify-scan-spin 0.7s linear infinite;\n }\n\n .${s}-empty {\n text-align: center;\n padding: 32px 20px;\n color: #2a9d8f;\n font-size: 15px;\n font-weight: 600;\n }\n .${s}-empty .checkmark {\n display: block;\n font-size: 40px;\n margin-bottom: 8px;\n }\n\n .${s}-fix-report {\n padding: 12px 14px;\n margin: 12px 0;\n background: rgba(42,157,143,0.1);\n border: 1px solid rgba(42,157,143,0.25);\n border-radius: 8px;\n font-size: 13px;\n color: #81cec5;\n }\n .${s}-fix-report strong { color: #2a9d8f; }\n\n @keyframes accessify-scan-fade-in {\n from { opacity: 0; }\n to { opacity: 1; }\n }\n @keyframes accessify-scan-spin {\n to { transform: rotate(360deg); }\n }\n `,document.head.appendChild(n));const t=document.createElement("div");t.className=`${s}-backdrop`,t.addEventListener("click",()=>p()),document.body.appendChild(t);const i=document.createElement("div");i.className=s,i.setAttribute("role","dialog"),i.setAttribute("aria-label",e.startsWith("de")?"WCAG-Prüfergebnisse":"WCAG Scan Results"),i.setAttribute("aria-modal","true");const r=document.createElement("div");r.className=`${s}-header`;const d=document.createElement("h2");d.textContent=e.startsWith("de")?"WCAG-Prüfung":"WCAG Accessibility Scan";const u=document.createElement("button");u.className=`${s}-close`,u.setAttribute("aria-label",e.startsWith("de")?"Schließen":"Close"),u.innerHTML="&times;",u.addEventListener("click",()=>p()),r.appendChild(d),r.appendChild(u),i.appendChild(r);const f=document.createElement("div");f.className=`${s}-body`,i.appendChild(f),document.body.appendChild(i),a=i,c(f),l(f,i);const g=e=>{"Escape"===e.key&&(p(),document.removeEventListener("keydown",g))};document.addEventListener("keydown",g)}())},deactivate:function(){t=!1,p(),n?.remove(),n=null,document.getElementById(o)?.remove()},getState:()=>({id:"auto-scan",enabled:t,value:i?{violations:i.violations.length,passes:i.passes,total:i.count,timestamp:i.timestamp}:null})}}},Symbol.toStringTag,{value:"Module"}))}();
1
+ var __defProp=Object.defineProperty,__typeError=e=>{throw TypeError(e)},__defNormalProp=(e,t,n)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__publicField=(e,t,n)=>__defNormalProp(e,"symbol"!=typeof t?t+"":t,n),__accessCheck=(e,t,n)=>t.has(e)||__typeError("Cannot "+n),__privateGet=(e,t,n)=>(__accessCheck(e,t,"read from private field"),n?n.call(e):t.get(e)),__privateAdd=(e,t,n)=>t.has(e)?__typeError("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),__privateSet=(e,t,n,i)=>(__accessCheck(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),__privateMethod=(e,t,n)=>(__accessCheck(e,t,"access private method"),n);!function(){"use strict";var e,t,n,i,a,r,o,s,c,l,d,u,f,p,h,g,v,m,y,b,x,w,k,_,S,A,M,C,E,T,$,z,I,L,G,j,P,H,B,N,O,W,K,F,D;const R=globalThis.process?.env?.NODE_ENV,U=R&&!R.toLowerCase().startsWith("prod");var q=Array.isArray,V=Array.prototype.indexOf,J=Array.prototype.includes,Y=Array.from,X=Object.defineProperty,Z=Object.getOwnPropertyDescriptor,Q=Object.getOwnPropertyDescriptors,ee=Object.prototype,te=Array.prototype,ne=Object.getPrototypeOf,ie=Object.isExtensible;const ae=()=>{};function re(){var e,t;return{promise:new Promise((n,i)=>{e=n,t=i}),resolve:e,reject:t}}const oe=32,se=512,ce=1024,le=2048,de=4096,ue=8192,fe=16384,pe=32768,he=1<<25,ge=65536,ve=1<<17,me=1<<19,ye=1<<25,be=65536,xe=1<<21,we=1<<23,ke=Symbol("$state"),_e=Symbol("legacy props"),Se=Symbol(""),Ae=Symbol("proxy path"),Me=new class extends Error{constructor(){super(...arguments),__publicField(this,"name","StaleReactionError"),__publicField(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};function Ce(e,t,n){if(U){const i=new Error(`each_key_duplicate\n${n?`Keyed each block has duplicate key \`${n}\` at indexes ${e} and ${t}`:`Keyed each block has duplicate key at indexes ${e} and ${t}`}\nhttps://svelte.dev/e/each_key_duplicate`);throw i.name="Svelte error",i}throw new Error("https://svelte.dev/e/each_key_duplicate")}function Ee(e,t,n){if(U){const i=new Error(`each_key_volatile\nKeyed each block has key that is not idempotent — the key for item at index ${e} was \`${t}\` but is now \`${n}\`. Keys must be the same each time for a given item\nhttps://svelte.dev/e/each_key_volatile`);throw i.name="Svelte error",i}throw new Error("https://svelte.dev/e/each_key_volatile")}const Te=Symbol(),$e=Symbol("filename"),ze="http://www.w3.org/1999/xhtml";var Ie="font-weight: bold",Le="font-weight: normal";function Ge(e){U?console.warn(`%c[svelte] state_proxy_equality_mismatch\n%cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${e}\` will produce unexpected results\nhttps://svelte.dev/e/state_proxy_equality_mismatch`,Ie,Le):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}function je(e){return e===this.v}function Pe(e){return n=this.v,!((t=e)!=t?n==n:t!==n||null!==t&&"object"==typeof t||"function"==typeof t);var t,n}function He(e,t){return e.label=t,Be(e.v,t),e}function Be(e,t){return e?.[Ae]?.(t),e}function Ne(e,t){if(!U)throw new Error("invariant(...) was not guarded by if (DEV)");e||function(e){if(U){const t=new Error(`invariant_violation\nAn invariant violation occurred, meaning Svelte's internal assumptions were flawed. This is a bug in Svelte, not your app — please open an issue at https://github.com/sveltejs/svelte, citing the following message: "${e}"\nhttps://svelte.dev/e/invariant_violation`);throw t.name="Svelte error",t}throw new Error("https://svelte.dev/e/invariant_violation")}(t)}let Oe=null;function We(e){Oe=e}let Ke=null;function Fe(e){Ke=e}let De=null;function Re(e){De=e}function Ue(e,t=!1,n){Oe={p:Oe,i:!1,c:null,e:null,s:e,x:null,r:Nn,l:null},U&&(Oe.function=n,De=n)}function qe(e){var t=Oe,n=t.e;if(null!==n)for(var i of(t.e=null,n))yn(i);return void 0!==e&&(t.x=e),t.i=!0,Oe=t.p,U&&(De=Oe?.function??null),e??{}}let Ve=[];function Je(e){if(0===Ve.length){var t=Ve;queueMicrotask(()=>{t===Ve&&function(){var e=Ve;Ve=[],function(e){for(var t=0;t<e.length;t++)e[t]()}(e)}()})}Ve.push(e)}const Ye=new WeakMap;function Xe(e){var t=Nn;if(null===t)return Pn.f|=we,e;if(U&&e instanceof Error&&!Ye.has(e)&&Ye.set(e,function(e,t){const n=Z(e,"message");if(!n||n.configurable){for(var i=nn?" ":"\t",a=`\n${i}in ${t.fn?.name||"<unknown>"}`,r=t.ctx;null!==r;)a+=`\n${i}in ${r.function?.[$e].split("/").pop()}`,r=r.p;return{message:e.message+`\n${a}\n`,stack:e.stack?.split("\n").filter(e=>!e.includes("svelte/src/internal")).join("\n")}}}(e,t)),0===(t.f&pe)&&!(4&t.f))throw U&&!t.parent&&e instanceof Error&&Qe(e),e;Ze(e,t)}function Ze(e,t){for(;null!==t;){if(128&t.f){if(0===(t.f&pe))throw e;try{return void t.b.error(e)}catch(n){e=n}}t=t.parent}throw U&&e instanceof Error&&Qe(e),e}function Qe(e){const t=Ye.get(e);t&&(X(e,"message",{value:t.message}),X(e,"stack",{value:t.stack}))}const et=-7169;function tt(e,t){e.f=e.f&et|t}function nt(e){tt(e,0!==(e.f&se)||null===e.deps?ce:de)}function it(e){if(null!==e)for(const t of e)2&t.f&&0!==(t.f&be)&&(t.f^=be,it(t.deps))}function at(e,t,n){0!==(e.f&le)?t.add(e):0!==(e.f&de)&&n.add(e),it(e.deps),tt(e,ce)}let rt=!1;const ot=new Set;let st=null,ct=null,lt=null,dt=!1,ut=null,ft=null;var pt=0,ht=U?new Set:null;let gt=1;const vt=class u{constructor(){__privateAdd(this,d),__publicField(this,"id",gt++),__publicField(this,"current",new Map),__publicField(this,"previous",new Map),__privateAdd(this,e,new Set),__privateAdd(this,t,new Set),__privateAdd(this,n,0),__privateAdd(this,i,0),__privateAdd(this,a,null),__privateAdd(this,r,[]),__privateAdd(this,o,new Set),__privateAdd(this,s,new Set),__privateAdd(this,c,new Map),__publicField(this,"is_fork",!1),__privateAdd(this,l,!1)}skip_effect(e){__privateGet(this,c).has(e)||__privateGet(this,c).set(e,{d:[],m:[]})}unskip_effect(e){var t=__privateGet(this,c).get(e);if(t){for(var n of(__privateGet(this,c).delete(e),t.d))tt(n,le),this.schedule(n);for(n of t.m)tt(n,de),this.schedule(n)}}capture(e,t){t===Te||this.previous.has(e)||this.previous.set(e,t),0===(e.f&we)&&(this.current.set(e,e.v),ct?.set(e,e.v))}activate(){st=this}deactivate(){st=null,ct=null}flush(){var e=U?new Set:null;try{dt=!0,st=this,__privateMethod(this,d,f).call(this)}finally{if(pt=0,lt=null,ut=null,ft=null,dt=!1,st=null,ct=null,Nt.clear(),U)for(const t of e)t.updated=null}}discard(){for(const e of __privateGet(this,t))e(this);__privateGet(this,t).clear()}increment(e){__privateSet(this,n,__privateGet(this,n)+1),e&&__privateSet(this,i,__privateGet(this,i)+1)}decrement(e,t){__privateSet(this,n,__privateGet(this,n)-1),e&&__privateSet(this,i,__privateGet(this,i)-1),__privateGet(this,l)||t||(__privateSet(this,l,!0),Je(()=>{__privateSet(this,l,!1),this.flush()}))}transfer_effects(e,t){for(const n of e)__privateGet(this,o).add(n);for(const n of t)__privateGet(this,s).add(n);e.clear(),t.clear()}oncommit(t){__privateGet(this,e).add(t)}ondiscard(e){__privateGet(this,t).add(e)}settled(){return(__privateGet(this,a)??__privateSet(this,a,re())).promise}static ensure(){if(null===st){const e=st=new u;dt||(ot.add(st),Je(()=>{st===e&&e.flush()}))}return st}apply(){ct=null}schedule(e){if(lt=e,e.b?.is_pending&&16777228&e.f&&0===(e.f&pe))e.b.defer_effect(e);else{for(var t=e;null!==t.parent;){var n=(t=t.parent).f;if(!(null===ut||t!==Nn||null!==Pn&&2&Pn.f))return;if(96&n){if(0===(n&ce))return;t.f^=ce}}__privateGet(this,r).push(t)}}};e=new WeakMap,t=new WeakMap,n=new WeakMap,i=new WeakMap,a=new WeakMap,r=new WeakMap,o=new WeakMap,s=new WeakMap,c=new WeakMap,l=new WeakMap,d=new WeakSet,u=function(){return this.is_fork||__privateGet(this,i)>0},f=function(){var t;if(pt++>1e3&&(ot.delete(this),function(){if(U){var e=new Map;for(const n of st.current.keys())for(const[i,a]of n.updated??[]){var t=e.get(i);t||e.set(i,t={error:a.error,count:0}),t.count+=a.count}for(const t of e.values())t.error&&console.error(t.error)}try{!function(){if(U){const e=new Error("effect_update_depth_exceeded\nMaximum update depth exceeded. This typically indicates that an effect reads and writes the same piece of state\nhttps://svelte.dev/e/effect_update_depth_exceeded");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}()}catch(n){U&&X(n,"stack",{value:""}),Ze(n,lt)}}()),!__privateMethod(this,d,u).call(this)){for(const e of __privateGet(this,o))__privateGet(this,s).delete(e),tt(e,le),this.schedule(e);for(const e of __privateGet(this,s))tt(e,de),this.schedule(e)}const i=__privateGet(this,r);__privateSet(this,r,[]),this.apply();var l=ut=[],v=[],m=ft=[];for(const e of i)try{__privateMethod(this,d,p).call(this,e,l,v)}catch(x){throw St(e),x}if(st=null,m.length>0){var y=vt.ensure();for(const e of m)y.schedule(e)}if(ut=null,ft=null,__privateMethod(this,d,u).call(this)){__privateMethod(this,d,h).call(this,v),__privateMethod(this,d,h).call(this,l);for(const[e,t]of __privateGet(this,c))_t(e,t)}else{0===__privateGet(this,n)&&ot.delete(this),__privateGet(this,o).clear(),__privateGet(this,s).clear();for(const t of __privateGet(this,e))t(this);__privateGet(this,e).clear(),bt(v),bt(l),__privateGet(this,a)?.resolve()}var b=st;if(__privateGet(this,r).length>0){const e=b??(b=this);__privateGet(e,r).push(...__privateGet(this,r).filter(t=>!__privateGet(e,r).includes(t)))}if(null!==b){if(ot.add(b),U)for(const e of this.current.keys())ht.add(e);__privateMethod(t=b,d,f).call(t)}ot.has(this)||__privateMethod(this,d,g).call(this)},p=function(e,t,n){e.f^=ce;for(var i=e.first;null!==i;){var a=i.f,r=!!(96&a);if(!(r&&0!==(a&ce)||0!==(a&ue)||__privateGet(this,c).has(i))&&null!==i.fn){r?i.f^=ce:4&a?t.push(i):Xn(i)&&(!!(16&a)&&__privateGet(this,s).add(i),ni(i));var o=i.first;if(null!==o){i=o;continue}}for(;null!==i;){var l=i.next;if(null!==l){i=l;break}i=i.parent}}},h=function(e){for(var t=0;t<e.length;t+=1)at(e[t],__privateGet(this,o),__privateGet(this,s))},g=function(){var e;for(const l of ot){var t=l.id<this.id,n=[];for(const[e,i]of this.current){if(l.current.has(e)){if(!t||i===l.current.get(e))continue;l.current.set(e,i)}n.push(e)}if(0!==n.length){var i=[...l.current.keys()].filter(e=>!this.current.has(e));if(i.length>0){U&&Ne(0===__privateGet(l,r).length,"Batch has scheduled roots"),l.activate();var a=new Set,o=new Map;for(var s of n)xt(s,i,a,o);if(__privateGet(l,r).length>0){for(var c of(l.apply(),__privateGet(l,r)))__privateMethod(e=l,d,p).call(e,c,[],[]);__privateSet(l,r,[])}l.deactivate()}}}};let mt=vt,yt=null;function bt(e){var t=e.length;if(0!==t){for(var n=0;n<t;){var i=e[n++];if(!(24576&i.f)&&Xn(i)&&(yt=new Set,ni(i),null===i.deps&&null===i.first&&null===i.nodes&&null===i.teardown&&null===i.ac&&Cn(i),yt?.size>0)){Nt.clear();for(const e of yt){if(24576&e.f)continue;const t=[e];let n=e.parent;for(;null!==n;)yt.has(n)&&(yt.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){const n=t[e];24576&n.f||ni(n)}}yt.clear()}}yt=null}}function xt(e,t,n,i){if(!n.has(e)&&(n.add(e),null!==e.reactions))for(const a of e.reactions){const e=a.f;2&e?xt(a,t,n,i):4194320&e&&0===(e&le)&&wt(a,t,i)&&(tt(a,le),kt(a))}}function wt(e,t,n){const i=n.get(e);if(void 0!==i)return i;if(null!==e.deps)for(const a of e.deps){if(J.call(t,a))return!0;if(2&a.f&&wt(a,t,n))return n.set(a,!0),!0}return n.set(e,!1),!1}function kt(e){st.schedule(e)}function _t(e,t){if(0===(e.f&oe)||0===(e.f&ce)){0!==(e.f&le)?t.d.push(e):0!==(e.f&de)&&t.m.push(e),tt(e,ce);for(var n=e.first;null!==n;)_t(n,t),n=n.next}}function St(e){tt(e,ce);for(var t=e.first;null!==t;)St(t),t=t.next}class At{constructor(e,t,n,i){__privateAdd(this,I),__publicField(this,"parent"),__publicField(this,"is_pending",!1),__publicField(this,"transform_error"),__privateAdd(this,v),__privateAdd(this,m,null),__privateAdd(this,y),__privateAdd(this,b),__privateAdd(this,x),__privateAdd(this,w,null),__privateAdd(this,k,null),__privateAdd(this,_,null),__privateAdd(this,S,null),__privateAdd(this,A,0),__privateAdd(this,M,0),__privateAdd(this,C,!1),__privateAdd(this,E,new Set),__privateAdd(this,T,new Set),__privateAdd(this,$,null),__privateAdd(this,z,function(e){let t,n=0,i=Kt(0);return U&&He(i,"createSubscriber version"),()=>{gn()&&(ii(i),bn(()=>(0===n&&(t=oi(()=>e())),n+=1,()=>{Je(()=>{n-=1,0===n&&(t?.(),t=void 0,Vt(i))})})))}}(()=>(__privateSet(this,$,Kt(__privateGet(this,A))),U&&He(__privateGet(this,$),"$effect.pending()"),()=>{__privateSet(this,$,null)}))),__privateSet(this,v,e),__privateSet(this,y,t),__privateSet(this,b,e=>{var t=Nn;t.b=this,t.f|=128,n(e)}),this.parent=Nn.b,this.transform_error=i??this.parent?.transform_error??(e=>e),__privateSet(this,x,wn(()=>{__privateMethod(this,I,L).call(this)},589824))}defer_effect(e){at(e,__privateGet(this,E),__privateGet(this,T))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!__privateGet(this,y).pending}update_pending_count(e,t){__privateMethod(this,I,P).call(this,e,t),__privateSet(this,A,__privateGet(this,A)+e),__privateGet(this,$)&&!__privateGet(this,C)&&(__privateSet(this,C,!0),Je(()=>{__privateSet(this,C,!1),__privateGet(this,$)&&Ut(__privateGet(this,$),__privateGet(this,A))}))}get_effect_pending(){return __privateGet(this,z).call(this),ii(__privateGet(this,$))}error(e){var t=__privateGet(this,y).onerror;let n=__privateGet(this,y).failed;if(!t&&!n)throw e;__privateGet(this,w)&&(An(__privateGet(this,w)),__privateSet(this,w,null)),__privateGet(this,k)&&(An(__privateGet(this,k)),__privateSet(this,k,null)),__privateGet(this,_)&&(An(__privateGet(this,_)),__privateSet(this,_,null));var i=!1,a=!1;const r=()=>{i?U?console.warn("%c[svelte] svelte_boundary_reset_noop\n%cA `<svelte:boundary>` `reset` function only resets the boundary the first time it is called\nhttps://svelte.dev/e/svelte_boundary_reset_noop",Ie,Le):console.warn("https://svelte.dev/e/svelte_boundary_reset_noop"):(i=!0,a&&function(){if(U){const e=new Error("svelte_boundary_reset_onerror\nA `<svelte:boundary>` `reset` function cannot be called while an error is still being handled\nhttps://svelte.dev/e/svelte_boundary_reset_onerror");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}(),null!==__privateGet(this,_)&&En(__privateGet(this,_),()=>{__privateSet(this,_,null)}),__privateMethod(this,I,j).call(this,()=>{__privateMethod(this,I,L).call(this)}))},o=e=>{try{a=!0,t?.(e,r),a=!1}catch(i){Ze(i,__privateGet(this,x)&&__privateGet(this,x).parent)}n&&__privateSet(this,_,__privateMethod(this,I,j).call(this,()=>{try{return kn(()=>{var t=Nn;t.b=this,t.f|=128,n(__privateGet(this,v),()=>e,()=>r)})}catch(i){return Ze(i,__privateGet(this,x).parent),null}}))};Je(()=>{var t;try{t=this.transform_error(e)}catch(n){return void Ze(n,__privateGet(this,x)&&__privateGet(this,x).parent)}null!==t&&"object"==typeof t&&"function"==typeof t.then?t.then(o,e=>Ze(e,__privateGet(this,x)&&__privateGet(this,x).parent)):o(t)})}}function Mt(e=!0){On(null),Bn(null),We(null),e&&st?.deactivate(),U&&Fe(null)}function Ct(){var e=Nn.b,t=st,n=e.is_rendered();return e.update_pending_count(1,t),t.increment(n),(i=!1)=>{e.update_pending_count(-1,t),t.decrement(n,i)}}v=new WeakMap,m=new WeakMap,y=new WeakMap,b=new WeakMap,x=new WeakMap,w=new WeakMap,k=new WeakMap,_=new WeakMap,S=new WeakMap,A=new WeakMap,M=new WeakMap,C=new WeakMap,E=new WeakMap,T=new WeakMap,$=new WeakMap,z=new WeakMap,I=new WeakSet,L=function(){try{if(this.is_pending=this.has_pending_snippet(),__privateSet(this,M,0),__privateSet(this,A,0),__privateSet(this,w,kn(()=>{__privateGet(this,b).call(this,__privateGet(this,v))})),__privateGet(this,M)>0){var e=__privateSet(this,S,document.createDocumentFragment());In(__privateGet(this,w),e);const t=__privateGet(this,y).pending;__privateSet(this,k,kn(()=>t(__privateGet(this,v))))}else __privateMethod(this,I,G).call(this,st)}catch(t){this.error(t)}},G=function(e){this.is_pending=!1,e.transfer_effects(__privateGet(this,E),__privateGet(this,T))},j=function(e){var t=Nn,n=Pn,i=Oe;On(__privateGet(this,x)),Bn(__privateGet(this,x)),We(__privateGet(this,x).ctx);try{return mt.ensure(),e()}catch(a){return Xe(a),null}finally{On(t),Bn(n),We(i)}},P=function(e,t){var n;this.has_pending_snippet()?(__privateSet(this,M,__privateGet(this,M)+e),0===__privateGet(this,M)&&(__privateMethod(this,I,G).call(this,t),__privateGet(this,k)&&En(__privateGet(this,k),()=>{__privateSet(this,k,null)}),__privateGet(this,S)&&(__privateGet(this,v).before(__privateGet(this,S)),__privateSet(this,S,null)))):this.parent&&__privateMethod(n=this.parent,I,P).call(n,e,t)};const Et=new Set;function Tt(e){var t=null!==Pn&&2&Pn.f?Pn:null;return null!==Nn&&(Nn.f|=me),{ctx:Oe,deps:null,effects:null,equals:je,f:2050,fn:e,reactions:null,rv:0,v:Te,wv:0,parent:t??Nn,ac:null}}function $t(e,t,n){let i=Nn;null===i&&function(){if(U){const e=new Error("async_derived_orphan\nCannot create a `$derived(...)` with an `await` expression outside of an effect tree\nhttps://svelte.dev/e/async_derived_orphan");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/async_derived_orphan")}();var a=void 0,r=Kt(Te);U&&(r.label=t);var o=!Pn,s=new Map;return function(e){hn(4718592,e)}(()=>{var t=Nn,n=re();a=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(Mt)}catch(u){n.reject(u),Mt()}var c=st;if(o){if(0!==(t.f&pe))var l=Ct();if(i.b.is_rendered())s.get(c)?.reject(Me),s.delete(c);else{for(const e of s.values())e.reject(Me);s.clear()}s.set(c,n)}const d=(e,n=void 0)=>{if(l&&l(n===Me),n!==Me&&0===(t.f&fe)){if(c.activate(),n)r.f|=we,Ut(r,n);else{0!==(r.f&we)&&(r.f^=we),Ut(r,e);for(const[e,t]of s){if(s.delete(e),e===c)break;t.reject(Me)}}c.deactivate()}};n.promise.then(d,e=>d(null,e||"unknown"))}),vn(()=>{for(const e of s.values())e.reject(Me)}),U&&(r.f|=4194304),new Promise(e=>{!function t(n){function i(){n===a?e(r):t(a)}n.then(i,i)}(a)})}function zt(e){const t=Tt(e);return Kn(t),t}function It(e){const t=Tt(e);return t.equals=Pe,t}function Lt(e){var t=e.effects;if(null!==t){e.effects=null;for(var n=0;n<t.length;n+=1)An(t[n])}}let Gt=[];function jt(e){var t,n=Nn;if(On(function(e){for(var t=e.parent;null!==t;){if(!(2&t.f))return 0===(t.f&fe)?t:null;t=t.parent}return null}(e)),U){let i=Bt;Ot(new Set);try{J.call(Gt,e)&&function(){if(U){const e=new Error("derived_references_self\nA derived value cannot reference itself recursively\nhttps://svelte.dev/e/derived_references_self");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/derived_references_self")}(),Gt.push(e),e.f&=-65537,Lt(e),t=Qn(e)}finally{On(n),Ot(i),Gt.pop()}}else try{e.f&=-65537,Lt(e),t=Qn(e)}finally{On(n)}return t}function Pt(e){var t=e.v,n=jt(e);e.equals(n)||(e.wv=Yn(),st?.is_fork&&null!==e.deps||(e.v=n,st?.capture(e,t),null!==e.deps))?Gn||(null!==ct?(gn()||st?.is_fork)&&ct.set(e,n):nt(e)):tt(e,ce)}function Ht(e){if(null!==e.effects)for(const t of e.effects)t.teardown&&ni(t)}let Bt=new Set;const Nt=new Map;function Ot(e){Bt=e}let Wt=!1;function Kt(e,t){return{f:0,v:e,reactions:null,equals:je,rv:0,wv:0}}function Ft(e,t){const n=Kt(e);return Kn(n),n}function Dt(e,t=!1,n=!0){const i=Kt(e);return t||(i.equals=Pe),i}function Rt(e,t,n=!1){null===Pn||Hn&&0===(Pn.f&ve)||!(4325394&Pn.f)||null!==Wn&&J.call(Wn,e)||function(){if(U){const e=new Error("state_unsafe_mutation\nUpdating state inside `$derived(...)`, `$inspect(...)` or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/state_unsafe_mutation")}();let i=n?Xt(t):t;return U&&Be(i,e.label),Ut(e,i,ft)}function Ut(e,t,n=null){if(!e.equals(t)){var i=e.v;Nt.set(e,Gn?t:i),e.v=t;var a=mt.ensure();if(a.capture(e,i),U){if(null!==Nn){e.updated??(e.updated=new Map);const t=(e.updated.get("")?.count??0)+1;if(e.updated.set("",{error:null,count:t}),t>5){const t=function(){const e=new Error,t=function(){const e=Error.stackTraceLimit;Error.stackTraceLimit=1/0;const t=(new Error).stack;if(Error.stackTraceLimit=e,!t)return[];const n=t.split("\n"),i=[];for(let a=0;a<n.length;a++){const e=n[a],t=e.replaceAll("\\","/");if("Error"!==e.trim()){if(e.includes("validate_each_keys"))return[];t.includes("svelte/src/internal")||t.includes("node_modules/.vite")||i.push(e)}}return i}();return 0===t.length?null:(t.unshift("\n"),X(e,"stack",{value:t.join("\n")}),X(e,"name",{value:"updated at"}),e)}();if(null!==t){let n=e.updated.get(t.stack);n||(n={error:t,count:0},e.updated.set(t.stack,n)),n.count++}}}null!==Nn&&(e.set_during_effect=!0)}if(2&e.f){const t=e;0!==(e.f&le)&&jt(t),null===ct&&nt(t)}e.wv=Yn(),Jt(e,le,n),null===Nn||0===(Nn.f&ce)||96&Nn.f||(null===Rn?function(e){Rn=e}([e]):Rn.push(e)),!a.is_fork&&Bt.size>0&&!Wt&&qt()}return t}function qt(){Wt=!1;for(const e of Bt)0!==(e.f&ce)&&tt(e,de),Xn(e)&&ni(e);Bt.clear()}function Vt(e){Rt(e,e.v+1)}function Jt(e,t,n){var i=e.reactions;if(null!==i)for(var a=i.length,r=0;r<a;r++){var o=i[r],s=o.f;if(U&&0!==(s&ve))Bt.add(o);else{var c=0===(s&le);if(c&&tt(o,t),2&s){var l=o;ct?.delete(l),0===(s&be)&&(s&se&&(o.f|=be),Jt(l,de,n))}else if(c){var d=o;!!(16&s)&&null!==yt&&yt.add(d),null!==n?n.push(d):kt(d)}}}}const Yt=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function Xt(e){if("object"!=typeof e||null===e||ke in e)return e;const t=ne(e);if(t!==ee&&t!==te)return e;var n=new Map,i=q(e),a=Ft(0),r=Vn,o=e=>{if(Vn===r)return e();var t=Pn,n=Vn;Bn(null),Jn(r);var i=e();return Bn(t),Jn(n),i};i&&(n.set("length",Ft(e.length)),U&&(e=new Proxy(e,{get(e,t,n){var i=Reflect.get(e,t,n);return en.has(t)?function(...e){Wt=!0;var t=i.apply(this,e);return qt(),t}:i}})));var s="";let c=!1;function l(e){if(!c){c=!0,He(a,`${s=e} version`);for(const[e,t]of n)He(t,Zt(s,e));c=!1}}return new Proxy(e,{defineProperty(e,t,i){"value"in i&&!1!==i.configurable&&!1!==i.enumerable&&!1!==i.writable||function(){if(U){const e=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/state_descriptors_fixed")}();var a=n.get(t);return void 0===a?o(()=>{var e=Ft(i.value);return n.set(t,e),U&&"string"==typeof t&&He(e,Zt(s,t)),e}):Rt(a,i.value,!0),!0},deleteProperty(e,t){var i=n.get(t);if(void 0===i){if(t in e){const e=o(()=>Ft(Te));n.set(t,e),Vt(a),U&&He(e,Zt(s,t))}}else Rt(i,Te),Vt(a);return!0},get(t,i,a){if(i===ke)return e;if(U&&i===Ae)return l;var r=n.get(i),c=i in t;if(void 0!==r||c&&!Z(t,i)?.writable||(r=o(()=>{var e=Ft(Xt(c?t[i]:Te));return U&&He(e,Zt(s,i)),e}),n.set(i,r)),void 0!==r){var d=ii(r);return d===Te?void 0:d}return Reflect.get(t,i,a)},getOwnPropertyDescriptor(e,t){var i=Reflect.getOwnPropertyDescriptor(e,t);if(i&&"value"in i){var a=n.get(t);a&&(i.value=ii(a))}else if(void 0===i){var r=n.get(t),o=r?.v;if(void 0!==r&&o!==Te)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return i},has(e,t){if(t===ke)return!0;var i=n.get(t),a=void 0!==i&&i.v!==Te||Reflect.has(e,t);return!((void 0!==i||null!==Nn&&(!a||Z(e,t)?.writable))&&(void 0===i&&(i=o(()=>{var n=Ft(a?Xt(e[t]):Te);return U&&He(n,Zt(s,t)),n}),n.set(t,i)),ii(i)===Te))&&a},set(e,t,r,c){var l=n.get(t),d=t in e;if(i&&"length"===t)for(var u=r;u<l.v;u+=1){var f=n.get(u+"");void 0!==f?Rt(f,Te):u in e&&(f=o(()=>Ft(Te)),n.set(u+"",f),U&&He(f,Zt(s,u)))}void 0===l?d&&!Z(e,t)?.writable||(l=o(()=>Ft(void 0)),U&&He(l,Zt(s,t)),Rt(l,Xt(r)),n.set(t,l)):(d=l.v!==Te,Rt(l,o(()=>Xt(r))));var p=Reflect.getOwnPropertyDescriptor(e,t);if(p?.set&&p.set.call(c,r),!d){if(i&&"string"==typeof t){var h=n.get("length"),g=Number(t);Number.isInteger(g)&&g>=h.v&&Rt(h,g+1)}Vt(a)}return!0},ownKeys(e){ii(a);var t=Reflect.ownKeys(e).filter(e=>{var t=n.get(e);return void 0===t||t.v!==Te});for(var[i,r]of n)r.v===Te||i in e||t.push(i);return t},setPrototypeOf(){!function(){if(U){const e=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/state_prototype_fixed")}()}})}function Zt(e,t){return"symbol"==typeof t?`${e}[Symbol(${t.description??""})]`:Yt.test(t)?`${e}.${t}`:/^\d+$/.test(t)?`${e}[${t}]`:`${e}['${t}']`}function Qt(e){try{if(null!==e&&"object"==typeof e&&ke in e)return e[ke]}catch{}return e}const en=new Set(["copyWithin","fill","pop","push","reverse","shift","sort","splice","unshift"]);var tn,nn,an,rn;function on(e=""){return document.createTextNode(e)}function sn(e){return an.call(e)}function cn(e){return rn.call(e)}function ln(e,t){return sn(e)}function dn(e,t=!1){var n=sn(e);return n instanceof Comment&&""===n.data?cn(n):n}function un(e,t=1,n=!1){let i=e;for(;t--;)i=cn(i);return i}function fn(e,t,n){return document.createElementNS(t??ze,e,void 0)}function pn(e){var t=Pn,n=Nn;Bn(null),On(null);try{return e()}finally{Bn(t),On(n)}}function hn(e,t){var n=Nn;if(U)for(;null!==n&&0!==(n.f&ve);)n=n.parent;null!==n&&0!==(n.f&ue)&&(e|=ue);var i={ctx:Oe,deps:null,nodes:null,f:e|le|se,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};U&&(i.component_function=De);var a=i;if(4&e)null!==ut?ut.push(i):mt.ensure().schedule(i);else if(null!==t){try{ni(i)}catch(r){throw An(i),r}null===a.deps&&null===a.teardown&&null===a.nodes&&a.first===a.last&&0===(a.f&me)&&(a=a.first,16&e&&0!==(e&ge)&&null!==a&&(a.f|=ge))}return null!==a&&(a.parent=n,null!==n&&function(e,t){var n=t.last;null===n?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}(a,n),null!==Pn&&2&Pn.f&&!(64&e))&&(Pn.effects??(Pn.effects=[])).push(a),i}function gn(){return null!==Pn&&!Hn}function vn(e){const t=hn(8,null);return tt(t,ce),t.teardown=e,t}function mn(e){var t;t="$effect",null===Nn&&(null===Pn&&function(e){if(U){const t=new Error(`effect_orphan\n\`${e}\` can only be used inside an effect (e.g. during component initialisation)\nhttps://svelte.dev/e/effect_orphan`);throw t.name="Svelte error",t}throw new Error("https://svelte.dev/e/effect_orphan")}(t),function(){if(U){const e=new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}()),Gn&&function(e){if(U){const t=new Error(`effect_in_teardown\n\`${e}\` cannot be used inside an effect cleanup function\nhttps://svelte.dev/e/effect_in_teardown`);throw t.name="Svelte error",t}throw new Error("https://svelte.dev/e/effect_in_teardown")}(t),U&&X(e,"name",{value:"$effect"});var n=Nn.f;if(Pn||0===(n&oe)||0!==(n&pe))return yn(e);(Oe.e??(Oe.e=[])).push(e)}function yn(e){return hn(1048580,e)}function bn(e,t=0){return hn(8|t,e)}function xn(e,t=[],n=[],i=[]){!function(e,t,n,i){const a=Tt;var r=e.filter(e=>!e.settled);if(0!==n.length||0!==r.length){var o=Nn,s=function(){var e=Nn,t=Pn,n=Oe,i=st;if(U)var a=Ke;return function(r=!0){On(e),Bn(t),We(n),r&&0===(e.f&fe)&&(i?.activate(),i?.apply()),U&&Fe(a)}}(),c=1===r.length?r[0].promise:r.length>1?Promise.all(r.map(e=>e.promise)):null;if(0!==n.length){var l=Ct();c?c.then(()=>{s(),u(),Mt()}):u()}else c.then(()=>d(t.map(a)))}else i(t.map(a));function d(e){s();try{i(e)}catch(t){0===(o.f&fe)&&Ze(t,o)}Mt()}function u(){Promise.all(n.map(e=>$t(e))).then(e=>d([...t.map(a),...e])).catch(e=>Ze(e,o)).finally(()=>l())}}(i,t,n,t=>{hn(8,()=>e(...t.map(ii)))})}function wn(e,t=0){var n=hn(16|t,e);return U&&(n.dev_stack=Ke),n}function kn(e){return hn(524320,e)}function _n(e){var t=e.teardown;if(null!==t){const e=Gn,n=Pn;jn(!0),Bn(null);try{t.call(null)}finally{jn(e),Bn(n)}}}function Sn(e,t=!1){var n=e.first;for(e.first=e.last=null;null!==n;){const e=n.ac;null!==e&&pn(()=>{e.abort(Me)});var i=n.next;64&n.f?n.parent=null:An(n,t),n=i}}function An(e,t=!0){var n=!1;(t||262144&e.f)&&null!==e.nodes&&null!==e.nodes.end&&(Mn(e.nodes.start,e.nodes.end),n=!0),tt(e,he),Sn(e,t&&!n),ti(e,0);var i=e.nodes&&e.nodes.t;if(null!==i)for(const r of i)r.stop();_n(e),e.f^=he,e.f|=fe;var a=e.parent;null!==a&&null!==a.first&&Cn(e),U&&(e.component_function=null),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Mn(e,t){for(;null!==e;){var n=e===t?null:cn(e);e.remove(),e=n}}function Cn(e){var t=e.parent,n=e.prev,i=e.next;null!==n&&(n.next=i),null!==i&&(i.prev=n),null!==t&&(t.first===e&&(t.first=i),t.last===e&&(t.last=n))}function En(e,t,n=!0){var i=[];Tn(e,i,!0);var a=()=>{n&&An(e),t&&t()},r=i.length;if(r>0){var o=()=>--r||a();for(var s of i)s.out(o)}else a()}function Tn(e,t,n){if(0===(e.f&ue)){e.f^=ue;var i=e.nodes&&e.nodes.t;if(null!==i)for(const e of i)(e.is_global||n)&&t.push(e);for(var a=e.first;null!==a;){var r=a.next;Tn(a,t,!!(0!==(a.f&ge)||0!==(a.f&oe)&&16&e.f)&&n),a=r}}}function $n(e){zn(e,!0)}function zn(e,t){if(0!==(e.f&ue)){e.f^=ue,0===(e.f&ce)&&(tt(e,le),mt.ensure().schedule(e));for(var n=e.first;null!==n;){var i=n.next;zn(n,!(0===(n.f&ge)&&0===(n.f&oe))&&t),n=i}var a=e.nodes&&e.nodes.t;if(null!==a)for(const e of a)(e.is_global||t)&&e.in()}}function In(e,t){if(e.nodes)for(var n=e.nodes.start,i=e.nodes.end;null!==n;){var a=n===i?null:cn(n);t.append(n),n=a}}let Ln=!1,Gn=!1;function jn(e){Gn=e}let Pn=null,Hn=!1;function Bn(e){Pn=e}let Nn=null;function On(e){Nn=e}let Wn=null;function Kn(e){null!==Pn&&(null===Wn?Wn=[e]:Wn.push(e))}let Fn=null,Dn=0,Rn=null,Un=1,qn=0,Vn=qn;function Jn(e){Vn=e}function Yn(){return++Un}function Xn(e){var t=e.f;if(0!==(t&le))return!0;if(2&t&&(e.f&=-65537),0!==(t&de)){for(var n=e.deps,i=n.length,a=0;a<i;a++){var r=n[a];if(Xn(r)&&Pt(r),r.wv>e.wv)return!0}0!==(t&se)&&null===ct&&tt(e,ce)}return!1}function Zn(e,t,n=!0){var i=e.reactions;if(null!==i&&(null===Wn||!J.call(Wn,e)))for(var a=0;a<i.length;a++){var r=i[a];2&r.f?Zn(r,t,!1):t===r&&(n?tt(r,le):0!==(r.f&ce)&&tt(r,de),kt(r))}}function Qn(e){var t,n=Fn,i=Dn,a=Rn,r=Pn,o=Wn,s=Oe,c=Hn,l=Vn;Fn=null,Dn=0,Rn=null,Pn=96&e.f?null:e,Wn=null,We(e.ctx),Hn=!1,Vn=++qn,null!==e.ac&&(pn(()=>{e.ac.abort(Me)}),e.ac=null);try{e.f|=xe;var d=(0,e.fn)();e.f|=pe;var u=e.deps,f=st?.is_fork;if(null!==Fn){var p;if(f||ti(e,Dn),null!==u&&Dn>0)for(u.length=Dn+Fn.length,p=0;p<Fn.length;p++)u[Dn+p]=Fn[p];else e.deps=u=Fn;if(gn()&&0!==(e.f&se))for(p=Dn;p<u.length;p++)((t=u[p]).reactions??(t.reactions=[])).push(e)}else!f&&null!==u&&Dn<u.length&&(ti(e,Dn),u.length=Dn);if(!(null===Rn||Hn||null===u||6146&e.f))for(p=0;p<Rn.length;p++)Zn(Rn[p],e);if(null!==r&&r!==e){if(qn++,null!==r.deps)for(let e=0;e<i;e+=1)r.deps[e].rv=qn;if(null!==n)for(const e of n)e.rv=qn;null!==Rn&&(null===a?a=Rn:a.push(...Rn))}return 0!==(e.f&we)&&(e.f^=we),d}catch(h){return Xe(h)}finally{e.f^=xe,Fn=n,Dn=i,Rn=a,Pn=r,Wn=o,We(s),Hn=c,Vn=l}}function ei(e,t){let n=t.reactions;if(null!==n){var i=V.call(n,e);if(-1!==i){var a=n.length-1;0===a?n=t.reactions=null:(n[i]=n[a],n.pop())}}if(null===n&&2&t.f&&(null===Fn||!J.call(Fn,t))){var r=t;0!==(r.f&se)&&(r.f^=se,r.f&=-65537),nt(r),function(e){if(null!==e.effects)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(Me),t.teardown=ae,t.ac=null,ti(t,0),Sn(t))}(r),ti(r,0)}}function ti(e,t){var n=e.deps;if(null!==n)for(var i=t;i<n.length;i++)ei(e,n[i])}function ni(e){var t=e.f;if(0===(t&fe)){tt(e,ce);var n=Nn,i=Ln;if(Nn=e,Ln=!0,U){var a=De;Re(e.component_function);var r=Ke;Fe(e.dev_stack??Ke)}try{16777232&t?function(e){for(var t=e.first;null!==t;){var n=t.next;0===(t.f&oe)&&An(t),t=n}}(e):Sn(e),_n(e);var o=Qn(e);e.teardown="function"==typeof o?o:null,e.wv=Un}finally{Ln=i,Nn=n,U&&(Re(a),Fe(r))}}}function ii(e){var t=!!(2&e.f);if(null!==Pn&&!Hn&&!(null!==Nn&&0!==(Nn.f&fe)||null!==Wn&&J.call(Wn,e))){var n=Pn.deps;if(0!==(Pn.f&xe))e.rv<qn&&(e.rv=qn,null===Fn&&null!==n&&n[Dn]===e?Dn++:null===Fn?Fn=[e]:Fn.push(e));else{(Pn.deps??(Pn.deps=[])).push(e);var i=e.reactions;null===i?e.reactions=[Pn]:J.call(i,Pn)||i.push(Pn)}}if(U&&Et.delete(e),Gn&&Nt.has(e))return Nt.get(e);if(t){var a=e;if(Gn){var r=a.v;return(0===(a.f&ce)&&null!==a.reactions||ri(a))&&(r=jt(a)),Nt.set(a,r),r}var o=0===(a.f&se)&&!Hn&&null!==Pn&&(Ln||0!==(Pn.f&se)),s=0===(a.f&pe);Xn(a)&&(o&&(a.f|=se),Pt(a)),o&&!s&&(Ht(a),ai(a))}if(ct?.has(e))return ct.get(e);if(0!==(e.f&we))throw e.v;return e.v}function ai(e){if(e.f|=se,null!==e.deps)for(const t of e.deps)(t.reactions??(t.reactions=[])).push(e),2&t.f&&0===(t.f&se)&&(Ht(t),ai(t))}function ri(e){if(e.v===Te)return!0;if(null===e.deps)return!1;for(const t of e.deps){if(Nt.has(t))return!0;if(2&t.f&&ri(t))return!0}return!1}function oi(e){var t=Hn;try{return Hn=!0,e()}finally{Hn=t}}const si=["touchstart","touchmove"];function ci(e){return si.includes(e)}const li=Symbol("events"),di=new Set,ui=new Set;function fi(e,t,n){(t[li]??(t[li]={}))[e]=n}function pi(e){for(var t=0;t<e.length;t++)di.add(e[t]);for(var n of ui)n(e)}let hi=null;function gi(e){var t=this,n=t.ownerDocument,i=e.type,a=e.composedPath?.()||[],r=a[0]||e.target;hi=e;var o=0,s=hi===e&&e[li];if(s){var c=a.indexOf(s);if(-1!==c&&(t===document||t===window))return void(e[li]=t);var l=a.indexOf(t);if(-1===l)return;c<=l&&(o=c)}if((r=a[o]||e.target)!==t){X(e,"currentTarget",{configurable:!0,get:()=>r||n});var d=Pn,u=Nn;Bn(null),On(null);try{for(var f,p=[];null!==r;){var h=r.assignedSlot||r.parentNode||r.host||null;try{var g=r[li]?.[i];null==g||r.disabled&&e.target!==r||g.call(r,e)}catch(v){f?p.push(v):f=v}if(e.cancelBubble||h===t||null===h)break;r=h}if(f){for(let e of p)queueMicrotask(()=>{throw e});throw f}}finally{e[li]=t,delete e.currentTarget,Bn(d),On(u)}}}const vi=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function mi(e){var t=fn("template");return t.innerHTML=function(e){return vi?.createHTML(e)??e}(e.replaceAll("<!>","\x3c!----\x3e")),t.content}function yi(e,t){null===Nn.nodes&&(Nn.nodes={start:e,end:t,a:null,t:null})}function bi(e,t){var n,i=!!(1&t),a=!!(2&t),r=!e.startsWith("<!>");return()=>{void 0===n&&(n=mi(r?e:"<!>"+e),i||(n=sn(n)));var t=a||nn?document.importNode(n,!0):n.cloneNode(!0);return i?yi(sn(t),t.lastChild):yi(t,t),t}}function xi(e,t,n="svg"){var i,a=`<${n}>${e.startsWith("<!>")?"<!>"+e:e}</${n}>`;return()=>{if(!i){var e=mi(a);i=sn(sn(e))}var t=i.cloneNode(!0);return yi(t,t),t}}function wi(e,t){return xi(e,0,"svg")}function ki(e,t){null!==e&&e.before(t)}function _i(e,t){var n=null==t?"":"object"==typeof t?`${t}`:t;n!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=n,e.nodeValue=`${n}`)}const Si=new Map;let Ai=new WeakMap;class Mi{constructor(e,t=!0){__publicField(this,"anchor"),__privateAdd(this,H,new Map),__privateAdd(this,B,new Map),__privateAdd(this,N,new Map),__privateAdd(this,O,new Set),__privateAdd(this,W,!0),__privateAdd(this,K,e=>{if(__privateGet(this,H).has(e)){var t=__privateGet(this,H).get(e),n=__privateGet(this,B).get(t);if(n)$n(n),__privateGet(this,O).delete(t);else{var i=__privateGet(this,N).get(t);i&&(__privateGet(this,B).set(t,i.effect),__privateGet(this,N).delete(t),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[t,n]of __privateGet(this,H)){if(__privateGet(this,H).delete(t),t===e)break;const i=__privateGet(this,N).get(n);i&&(An(i.effect),__privateGet(this,N).delete(n))}for(const[e,i]of __privateGet(this,B)){if(e===t||__privateGet(this,O).has(e))continue;const a=()=>{if(Array.from(__privateGet(this,H).values()).includes(e)){var t=document.createDocumentFragment();In(i,t),t.append(on()),__privateGet(this,N).set(e,{effect:i,fragment:t})}else An(i);__privateGet(this,O).delete(e),__privateGet(this,B).delete(e)};__privateGet(this,W)||!n?(__privateGet(this,O).add(e),En(i,a,!1)):a()}}}),__privateAdd(this,F,e=>{__privateGet(this,H).delete(e);const t=Array.from(__privateGet(this,H).values());for(const[n,i]of __privateGet(this,N))t.includes(n)||(An(i.effect),__privateGet(this,N).delete(n))}),this.anchor=e,__privateSet(this,W,t)}ensure(e,t){var n=st;!t||__privateGet(this,B).has(e)||__privateGet(this,N).has(e)||__privateGet(this,B).set(e,kn(()=>t(this.anchor))),__privateGet(this,H).set(n,e),__privateGet(this,K).call(this,n)}}function Ci(e,t,n=!1){var i=new Mi(e);function a(e,t){i.ensure(e,t)}wn(()=>{var e=!1;t((t,n=0)=>{e=!0,a(n,t)}),e||a(-1,null)},n?ge:0)}function Ei(e,t){return t}function Ti(e,t,n=!0){var i;if(e.pending.size>0){i=new Set;for(const t of e.pending.values())for(const n of t)i.add(e.items.get(n).e)}for(var a=0;a<t.length;a++){var r=t[a];i?.has(r)?(r.f|=ye,In(r,document.createDocumentFragment())):An(t[a],n)}}var $i;function zi(e,t,n,i,a,r=null){var o,s=new Map;o=e.appendChild(on());var c,l=null,d=It(()=>{var e=n();return q(e)?e:null==e?[]:Y(e)}),u=new Map,f=!0,p={effect:wn(()=>{for(var e=(c=ii(d)).length,h=new Set,g=st,v=0;v<e;v+=1){var m=c[v],y=i(m,v);if(U){var b=i(m,v);y!==b&&Ee(String(v),String(y),String(b))}var x=f?null:s.get(y);x?(x.v&&Ut(x.v,m),x.i&&Ut(x.i,v)):(x=Li(s,f?o:$i??($i=on()),m,y,v,a,t,n),f||(x.e.f|=ye),s.set(y,x)),h.add(y)}0===e&&r&&!l&&(f?l=kn(()=>r(o)):(l=kn(()=>r($i??($i=on())))).f|=ye),e>h.size&&(U?function(e,t){const n=new Map,i=e.length;for(let a=0;a<i;a++){const i=t(e[a],a);if(n.has(i)){const e=String(n.get(i)),t=String(a);let r=String(i);r.startsWith("[object ")&&(r=null),Ce(e,t,r)}n.set(i,a)}}(c,i):Ce("","","")),f||(u.set(g,h),function(e){0===(p.effect.f&fe)&&(p.pending.delete(e),p.fallback=l,function(e,t,n,i,a){var r,o,s,c,l=t.length,d=e.items,u=Ii(e.effect.first),f=null,p=[],h=[];for(c=0;c<l;c+=1){if(o=a(t[c],c),s=d.get(o).e,null!==e.outrogroups)for(const t of e.outrogroups)t.pending.delete(s),t.done.delete(s);if(0!==(s.f&ye)){if(s.f^=ye,s!==u){var g=f?f.next:u;s===e.effect.last&&(e.effect.last=s.prev),s.prev&&(s.prev.next=s.next),s.next&&(s.next.prev=s.prev),ji(e,f,s),ji(e,s,g),Gi(s,g,n),p=[],h=[],u=Ii((f=s).next);continue}Gi(s,null,n)}if(0!==(s.f&ue)&&$n(s),s!==u){if(void 0!==r&&r.has(s)){if(p.length<h.length){var v,m=h[0];f=m.prev;var y=p[0],b=p[p.length-1];for(v=0;v<p.length;v+=1)Gi(p[v],m,n);for(v=0;v<h.length;v+=1)r.delete(h[v]);ji(e,y.prev,b.next),ji(e,f,y),ji(e,b,m),u=m,f=b,c-=1,p=[],h=[]}else r.delete(s),Gi(s,u,n),ji(e,s.prev,s.next),ji(e,s,null===f?e.effect.first:f.next),ji(e,f,s),f=s;continue}for(p=[],h=[];null!==u&&u!==s;)(r??(r=new Set)).add(u),h.push(u),u=Ii(u.next);if(null===u)continue}0===(s.f&ye)&&p.push(s),f=s,u=Ii(s.next)}if(null!==e.outrogroups){for(const t of e.outrogroups)0===t.pending.size&&(Ti(e,Y(t.done)),e.outrogroups?.delete(t));0===e.outrogroups.size&&(e.outrogroups=null)}if(null!==u||void 0!==r){var x=[];if(void 0!==r)for(s of r)0===(s.f&ue)&&x.push(s);for(;null!==u;)0===(u.f&ue)&&u!==e.fallback&&x.push(u),u=Ii(u.next);x.length>0&&function(e,t,n){for(var i,a=t.length,r=t.length,o=0;o<a;o++){let n=t[o];En(n,()=>{if(i){if(i.pending.delete(n),i.done.add(n),0===i.pending.size){var t=e.outrogroups;Ti(e,Y(i.done)),t.delete(i),0===t.size&&(e.outrogroups=null)}}else r-=1},!1)}if(0===r){var s=null!==n;if(s){var c=n,l=c.parentNode;l.textContent="",l.append(c),e.items.clear()}Ti(e,t,!s)}else i={pending:new Set(t),done:new Set},(e.outrogroups??(e.outrogroups=new Set)).add(i)}(e,x,0===l?n:null)}}(p,c,o,0,i),null!==l&&(0===c.length?0===(l.f&ye)?$n(l):(l.f^=ye,Gi(l,null,o)):En(l,()=>{l=null})))}(g)),ii(d)}),items:s,pending:u,outrogroups:null,fallback:l};f=!1}function Ii(e){for(;null!==e&&0===(e.f&oe);)e=e.next;return e}function Li(e,t,n,i,a,r,o,s){var c=1&o?16&o?Kt(n):Dt(n,!1,!1):null,l=2&o?Kt(a):null;return U&&c&&(c.trace=()=>{s()}),{v:c,i:l,e:kn(()=>(r(t,c??n,l??a,s),()=>{e.delete(i)}))}}function Gi(e,t,n){if(e.nodes)for(var i=e.nodes.start,a=e.nodes.end,r=t&&0===(t.f&ye)?t.nodes.start:n;null!==i;){var o=cn(i);if(r.before(i),i===a)return;i=o}}function ji(e,t,n){null===t?e.effect.first=n:t.next=n,null===n?e.effect.last=t:n.prev=t}function Pi(e,t,n=!1,i=!1,a=!1,r=!1){var o=e,s="";if(n)var c=e;xn(()=>{var e=Nn;if(s!==(s=t()??"")){if(n)return e.nodes=null,c.innerHTML=s,void(""!==s&&yi(sn(c),c.lastChild));if(null!==e.nodes&&(Mn(e.nodes.start,e.nodes.end),e.nodes=null),""!==s){var r=fn(i?"svg":a?"math":"template",i?"http://www.w3.org/2000/svg":a?"http://www.w3.org/1998/Math/MathML":void 0);r.innerHTML=s;var l=i||a?r:r.content;if(yi(sn(l),l.lastChild),i||a)for(;sn(l);)o.before(sn(l));else o.before(l)}}})}H=new WeakMap,B=new WeakMap,N=new WeakMap,O=new WeakMap,W=new WeakMap,K=new WeakMap,F=new WeakMap;const Hi=[..." \t\n\r\f \v\ufeff"];function Bi(e,t,n,i,a,r){var o=e.__className;if(o!==n||void 0===o){var s=function(e,t,n){var i=null==e?"":""+e;if(n)for(var a of Object.keys(n))if(n[a])i=i?i+" "+a:a;else if(i.length)for(var r=a.length,o=0;(o=i.indexOf(a,o))>=0;){var s=o+r;0!==o&&!Hi.includes(i[o-1])||s!==i.length&&!Hi.includes(i[s])?o=s:i=(0===o?"":i.substring(0,o))+i.substring(s+1)}return""===i?null:i}(n,0,r);null==s?e.removeAttribute("class"):t?e.className=s:e.setAttribute("class",s),e.__className=n}else if(r&&a!==r)for(var c in r){var l=!!r[c];null!=a&&l===!!a[c]||e.classList.toggle(c,l)}return r}const Ni=Symbol("is custom element"),Oi=Symbol("is html");function Wi(e,t,n,i){var a=function(e){return e.__attributes??(e.__attributes={[Ni]:e.nodeName.includes("-"),[Oi]:e.namespaceURI===ze})}(e);a[t]!==(a[t]=n)&&("loading"===t&&(e[Se]=n),null==n?e.removeAttribute(t):"string"!=typeof n&&function(e){var t,n=e.getAttribute("is")||e.nodeName,i=Ki.get(n);if(i)return i;Ki.set(n,i=[]);for(var a=e,r=Element.prototype;r!==a;){for(var o in t=Q(a))t[o].set&&i.push(o);a=ne(a)}return i}(e).includes(t)?e[t]=n:e.setAttribute(t,n))}var Ki=new Map;function Fi(e,t){return e===t||e?.[ke]===t}function Di(e={},t,n,i){var a=Oe.r,r=Nn;return hn(4,()=>{var i,o;return bn(()=>{i=o,o=[],oi(()=>{e!==n(...o)&&(t(e,...o),i&&Fi(n(...i),e)&&t(null,...i))})}),()=>{let i=r;for(;i!==a&&null!==i.parent&&i.parent.f&he;)i=i.parent;const s=i.teardown;i.teardown=()=>{o&&Fi(n(...o),e)&&t(null,...o),s?.()}}}),e}function Ri(e,t,n,i){var a=!!(8&n),r=!!(16&n),o=i,s=!0,c=()=>(s&&(s=!1,o=r?oi(i):i),o);let l;if(a){var d=ke in e||_e in e;l=Z(e,t)?.set??(d&&t in e?n=>e[t]=n:void 0)}var u,f,p=!1;if(a?[u,p]=function(){var n=rt;try{return rt=!1,[e[t],rt]}finally{rt=n}}():u=e[t],void 0===u&&void 0!==i&&(u=c(),l&&(function(e){if(U){const t=new Error(`props_invalid_value\nCannot do \`bind:${e}={undefined}\` when \`${e}\` has a fallback value\nhttps://svelte.dev/e/props_invalid_value`);throw t.name="Svelte error",t}throw new Error("https://svelte.dev/e/props_invalid_value")}(t),l(u))),f=()=>{var n=e[t];return void 0===n?c():(s=!0,n)},!(4&n))return f;if(l){var h=e.$$legacy;return function(e,t){return arguments.length>0?((!t||h||p)&&l(t?f():e),e):f()}}var g=!1,v=(1&n?Tt:It)(()=>(g=!1,f()));U&&(v.label=t),a&&ii(v);var m=Nn;return function(e,t){if(arguments.length>0){const n=t?ii(v):a?Xt(e):e;return Rt(v,n),g=!0,void 0!==o&&(o=n),e}return Gn&&g||0!==(m.f&fe)?v.v:ii(v)}}if(U){let e=function(e){if(!(e in globalThis)){let t;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(void 0!==t)return t;!function(e){if(U){const t=new Error(`rune_outside_svelte\nThe \`${e}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files\nhttps://svelte.dev/e/rune_outside_svelte`);throw t.name="Svelte error",t}throw new Error("https://svelte.dev/e/rune_outside_svelte")}(e)},set:e=>{t=e}})}};e("$state"),e("$effect"),e("$derived"),e("$inspect"),e("$props"),e("$bindable")}function Ui(e){null===Oe&&function(){if(U){const e=new Error("lifecycle_outside_component\n`onMount(...)` can only be used during component initialisation\nhttps://svelte.dev/e/lifecycle_outside_component");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/lifecycle_outside_component")}(),mn(()=>{const t=oi(e);if("function"==typeof t)return t})}function qi(e){return`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">${e}</svg>`}function Vi(){return qi('<circle cx="12" cy="4.5" r="1.5"/><path d="M12 7.5v5m0 0l-3 4.5m3-4.5l3 4.5"/><path d="M6.5 9.5h11"/>')}function Ji(){return qi('<path d="M11 5L6 9H3v6h3l5 4V5z"/><path d="M15 9a4 4 0 0 1 0 6"/><path d="M18 6a8 8 0 0 1 0 12"/>')}function Yi(){return qi('<path d="M12 2a5 5 0 0 1 4.65 3.2A4.5 4.5 0 0 1 20 9.5a4.5 4.5 0 0 1-1.5 3.35A5 5 0 0 1 12 18"/><path d="M12 2a5 5 0 0 0-4.65 3.2A4.5 4.5 0 0 0 4 9.5a4.5 4.5 0 0 0 1.5 3.35A5 5 0 0 0 12 18"/><path d="M12 18v4"/><path d="M8 10h.01"/><path d="M16 10h.01"/><path d="M9 14c1 1 5 1 6 0"/>')}function Xi(){return qi('<rect x="3" y="3" width="18" height="18" rx="2"/><path d="M3 16l5-5 4 4 3-3 6 6"/><circle cx="8.5" cy="8.5" r="1.5"/><text x="12" y="21.5" text-anchor="middle" fill="currentColor" stroke="none" font-size="5" font-weight="bold" font-family="sans-serif">ALT</text>')}function Zi(){return qi('<path d="M18 6L6 18"/><path d="M6 6l12 12"/>')}function Qi(){return qi('<path d="M3 12a9 9 0 1 0 3-6.7"/><path d="M3 3v5.3h5.3"/>')}function ea(){return qi('<circle cx="12" cy="12" r="10"/><path d="M2 12h20"/><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/>')}"undefined"!=typeof window&&((D=window.__svelte??(window.__svelte={})).v??(D.v=new Set)).add("5");const ta={accessibility:Vi,contrast:function(){return qi('<circle cx="12" cy="12" r="9"/><path d="M12 3v18" /><path d="M12 3a9 9 0 0 1 0 18" fill="currentColor" stroke="none"/>')},"text-size":function(){return qi('<path d="M4 19l4-12h1l4 12"/><path d="M5.5 15h5"/><path d="M17 5v14"/><path d="M14 8l3-3 3 3"/><path d="M14 16l3 3 3-3"/>')},spacing:function(){return qi('<path d="M4 9h16"/><path d="M4 15h16"/><path d="M10 5l-2 2 2 2"/><path d="M14 5l2 2-2 2"/><path d="M10 17l-2-2 2-2"/><path d="M14 17l2-2-2-2"/>')},font:function(){return qi('<path d="M6 4h10a2 2 0 0 1 2 2v1"/><path d="M6 4v16"/><path d="M6 12h8"/><path d="M4 20h4"/>')},"reading-guide":function(){return qi('<path d="M3 12h18"/><path d="M3 6h18" opacity="0.3"/><path d="M3 18h18" opacity="0.3"/><rect x="1" y="10" width="22" height="4" rx="1" stroke-dasharray="4 2"/>')},focus:function(){return qi('<circle cx="12" cy="12" r="3"/><circle cx="12" cy="12" r="7"/><path d="M12 2v3"/><path d="M12 19v3"/><path d="M2 12h3"/><path d="M19 12h3"/>')},"animation-pause":function(){return qi('<circle cx="12" cy="12" r="9"/><path d="M10 8v8"/><path d="M14 8v8"/>')},cursor:function(){return qi('<path d="M5 3l1.5 16 3.5-4 5 6 2-1.5-5-6h5.5z"/><path d="M18 12h4"/><path d="M20 10v4"/>')},speaker:Ji,tts:Ji,brain:Yi,ai:Yi,image:Xi,"alt-text":Xi,keyboard:function(){return qi('<rect x="2" y="6" width="20" height="12" rx="2"/><path d="M6 10h.01"/><path d="M10 10h.01"/><path d="M14 10h.01"/><path d="M18 10h.01"/><path d="M8 14h8"/>')},"color-blindness":function(){return qi('<path d="M2 12s4-8 10-8 10 8 10 8-4 8-10 8-10-8-10-8z"/><circle cx="12" cy="12" r="3"/><path d="M12 9v6" stroke-dasharray="2 1"/><path d="M9 12h6" stroke-dasharray="2 1"/>')},"link-highlight":function(){return qi('<path d="M10 13a5 5 0 0 0 7.07.5l2.12-2.12a5 5 0 0 0-7.07-7.07l-1.06 1.06"/><path d="M14 11a5 5 0 0 0-7.07-.5L4.81 12.6a5 5 0 0 0 7.07 7.07l1.06-1.06"/><path d="M2 20l4-4" stroke-width="3" opacity="0.4"/>')},close:Zi,"close-x":Zi,reset:Qi,chevron:function(){return qi('<path d="M9 18l6-6-6-6"/>')},checkmark:function(){return qi('<path d="M20 6L9 17l-5-5"/>')},warning:function(){return qi('<path d="M10.3 3.2L1.7 18a2 2 0 0 0 1.7 3h17.2a2 2 0 0 0 1.7-3L13.7 3.2a2 2 0 0 0-3.4 0z"/><path d="M12 9v4"/><path d="M12 17h.01"/>')},scan:function(){return qi('<circle cx="11" cy="11" r="7"/><path d="M21 21l-4.35-4.35"/><path d="M8 9h6"/><path d="M8 11h4"/><path d="M8 13h5"/>')},"simplify-text":function(){return qi('<rect x="4" y="2" width="16" height="20" rx="2"/><path d="M8 6h8"/><path d="M8 10h8" opacity="0.35" stroke-dasharray="2 2"/><path d="M8 14h5"/><path d="M8 18h6" opacity="0.35" stroke-dasharray="2 2"/>')},eye:function(){return qi('<path d="M2 12s4-8 10-8 10 8 10 8-4 8-10 8-10-8-10-8z"/><circle cx="12" cy="12" r="3"/>')},shield:function(){return qi('<path d="M12 2l8 4v6c0 5.5-3.8 10.7-8 12-4.2-1.3-8-6.5-8-12V6l8-4z"/><path d="M9 12l2 2 4-4"/>')},saturation:function(){return qi('<path d="M12 2.7c-4.5 5-7 8.5-7 11.8a7 7 0 0 0 14 0c0-3.3-2.5-6.8-7-11.8z"/><path d="M12 9v9"/><path d="M12 9a4.5 4.5 0 0 0 0 9" fill="currentColor" stroke="none" opacity="0.3"/>')},"hide-images":function(){return qi('<rect x="3" y="3" width="18" height="18" rx="2"/><circle cx="8.5" cy="8.5" r="1.5"/><path d="M3 16l5-5 4 4 3-3 6 6"/><path d="M2 2l20 20" stroke-width="2.5"/>')},"text-align":function(){return qi('<path d="M4 6h16"/><path d="M4 10h10"/><path d="M4 14h16"/><path d="M4 18h10"/>')},"reading-mask":function(){return qi('<rect x="2" y="2" width="20" height="20" rx="2" opacity="0.3"/><rect x="4" y="8" width="16" height="8" rx="1"/><path d="M4 8h16" stroke-dasharray="3 2"/><path d="M4 16h16" stroke-dasharray="3 2"/>')},"page-structure":function(){return qi('<path d="M4 6h4"/><path d="M4 6v6"/><path d="M8 6v6"/><path d="M4 9h4"/><path d="M12 7h8" stroke-width="1.5"/><path d="M14 12h6" opacity="0.6"/><path d="M14 16h6" opacity="0.6"/><path d="M12 20h8" stroke-width="1.5"/>')},"line-height":function(){return qi('<path d="M10 6h10"/><path d="M10 12h10"/><path d="M10 18h10"/><path d="M4 4v16"/><path d="M2 7l2-3 2 3"/><path d="M2 17l2 3 2-3"/>')},globe:ea,profile:function(){return qi('<circle cx="12" cy="8" r="4"/><path d="M4 20c0-4 4-7 8-7s8 3 8 7"/>')}},na={"widget.title":"Accessibility","widget.open":"Open accessibility settings","widget.close":"Close","widget.reset":"Reset all","widget.resetConfirm":"All adjustments reset","widget.poweredBy":"Powered by Accessify","widget.statement":"Accessibility Statement","status.active":"{count} active","status.noActive":"No adjustments active","status.activated":"activated","status.deactivated":"deactivated","section.profiles":"Quick Profiles","category.visual":"Visual","category.motor":"Motor & Navigation","category.cognitive":"Cognitive","category.ai":"AI Features","profile.visionImpaired":"Vision Impaired","profile.visionImpaired.desc":"High contrast, larger text and cursor","profile.motorImpaired":"Motor Impaired","profile.motorImpaired.desc":"Keyboard navigation and focus aids","profile.cognitive":"Cognitive Support","profile.cognitive.desc":"Reading aids, spacing, and simpler fonts","profile.seizureSafe":"Seizure Safe","profile.seizureSafe.desc":"Stop animations and reduce stimuli","profile.adhdFriendly":"ADHD Friendly","profile.adhdFriendly.desc":"Reduce distractions and improve focus","feature.contrast":"Contrast","feature.contrast.desc":"Increase contrast for better readability","feature.textSize":"Bigger Text","feature.textSize.desc":"Increase or decrease text size","feature.spacing":"Text Spacing","feature.spacing.desc":"Adjust letter and line spacing","feature.dyslexiaFont":"Dyslexia Font","feature.dyslexiaFont.desc":"Special font for better readability","feature.readingGuide":"Reading Guide","feature.readingGuide.desc":"Horizontal ruler for line-by-line reading","feature.focusHighlight":"Focus Highlight","feature.focusHighlight.desc":"Visible outline on focused elements","feature.animationStop":"Stop Animations","feature.animationStop.desc":"Pause all animations and videos","feature.bigCursor":"Big Cursor","feature.bigCursor.desc":"Enlarged cursor for better visibility","feature.colorBlind":"Color Filter","feature.colorBlind.desc":"Color corrections for color vision deficiencies","feature.linkHighlight":"Highlight Links","feature.linkHighlight.desc":"Underline and highlight all links","feature.keyboardNav":"Keyboard Nav","feature.keyboardNav.desc":"Navigate the page using only your keyboard: Skip to main content, Alt+H to jump through headings, Alt+L for page sections, Alt+K shows all shortcuts","feature.tts":"Read Aloud","feature.tts.desc":"Click any text to hear it spoken","feature.textSimplify":"Simplify Text","feature.textSimplify.desc":"Simplify text for easier understanding","feature.altText":"Alt-Text Generator","feature.altText.desc":"Auto-generate image descriptions","feature.autoScan":"WCAG Scan","feature.autoScan.desc":"Scan page for accessibility issues","feature.saturation":"Saturation","feature.saturation.desc":"Adjust color saturation or grayscale","feature.hideImages":"Hide Images","feature.hideImages.desc":"Remove images for distraction-free reading","feature.textAlign":"Text Align","feature.textAlign.desc":"Change text alignment across the page","feature.readingMask":"Reading Mask","feature.readingMask.desc":"Focus window that dims surrounding content","feature.pageStructure":"Page Structure","feature.pageStructure.desc":"View headings and landmarks for quick navigation","feature.lineHeight":"Line Height","feature.lineHeight.desc":"Increase space between lines of text","ai.loading":"Loading...","ai.error":"Error processing request","ai.simplify.select":"Select text to simplify","ai.simplify.level":"Simplification level","ai.simplify.einfache":"Simple language","ai.simplify.leichte":"Easy language","ai.alttext.generate":"Generate alt text","ai.alttext.apply":"Apply","ai.alttext.edit":"Edit","ai.alttext.badge":"Images missing alt text","ai.alttext.aiGenerated":"AI-generated – please review","tts.play":"Play","tts.pause":"Pause","tts.stop":"Stop","tts.speed":"Speed","footer.disclaimer":"This widget enhances accessibility but does not replace accessible web development.","footer.docs":"Documentation","footer.github":"GitHub","bfsg.notice":"Note: This overlay tool alone does not meet BFSG requirements. Full accessibility requires structural changes to the source code.","widget.subtitle":"Adjust contrast, text and navigation on this page","widget.language":"Language","widget.widgetLang":"Widget language","widget.moveWidget":"Move widget to other side","widget.poweredBy":"Powered by Accessify-Widget","section.essentials":"Most used","section.essentials.desc":"Start with contrast, text size and keyboard support.","section.support":"Reading and navigation","section.support.desc":"Tools for focus, reduced motion and page structure.","section.ai":"AI assistance","section.ai.desc":"Simplify content, generate alt text and scan the current page.","control.mostUsed":"Most used","control.chooseMode":"Choose a mode","control.default":"Default","contrast.mode.light":"Light contrast","contrast.mode.dark":"Dark contrast","contrast.mode.high":"High contrast","keyboard.shortcuts":"Keyboard shortcuts","keyboard.shortcut":"Shortcut","keyboard.action":"Action","keyboard.nextHeading":"Go to the next heading","keyboard.nextLandmark":"Go to the next landmark","keyboard.toggleHelp":"Open or close this help overlay","keyboard.nextFocusable":"Move to the next focusable element","keyboard.closeOverlay":"Close this overlay","keyboard.skipToContent":"Skip to main content","pageStructure.title":"Page structure","pageStructure.headings":"Headings","pageStructure.landmarks":"Landmarks","pageStructure.empty":"No headings or landmarks found on this page."};function ia(e){return{...na,...e}}const aa={en:na,de:{"widget.title":"Barrierefreiheit","widget.open":"Barrierefreiheit-Einstellungen öffnen","widget.close":"Schließen","widget.reset":"Alle zurücksetzen","widget.resetConfirm":"Alle Anpassungen zurückgesetzt","widget.poweredBy":"Bereitgestellt von Accessify","widget.statement":"Barrierefreiheitserklärung","status.active":"{count} aktiv","status.noActive":"Keine Anpassungen aktiv","status.activated":"aktiviert","status.deactivated":"deaktiviert","section.profiles":"Schnellprofile","category.visual":"Visuell","category.motor":"Motorik & Navigation","category.cognitive":"Kognitiv","category.ai":"KI-Funktionen","profile.visionImpaired":"Sehbeeinträchtigung","profile.visionImpaired.desc":"Hoher Kontrast, größerer Text und Cursor","profile.motorImpaired":"Motorische Einschränkung","profile.motorImpaired.desc":"Tastaturnavigation und Fokus-Hilfen","profile.cognitive":"Kognitive Unterstützung","profile.cognitive.desc":"Lesehilfen, Abstände und einfachere Schrift","profile.seizureSafe":"Anfallssicher","profile.seizureSafe.desc":"Animationen stoppen und Reize reduzieren","profile.adhdFriendly":"ADHS-freundlich","profile.adhdFriendly.desc":"Ablenkungen reduzieren und Fokus verbessern","feature.contrast":"Kontrast","feature.contrast.desc":"Kontrast erhöhen für bessere Lesbarkeit","feature.textSize":"Größerer Text","feature.textSize.desc":"Text vergrößern oder verkleinern","feature.spacing":"Textabstand","feature.spacing.desc":"Abstände zwischen Buchstaben und Zeilen anpassen","feature.dyslexiaFont":"Legasthenie-Schrift","feature.dyslexiaFont.desc":"Spezielle Schriftart für bessere Lesbarkeit","feature.readingGuide":"Leselineal","feature.readingGuide.desc":"Horizontales Lineal zum zeilenweisen Lesen","feature.focusHighlight":"Fokus-Hervorhebung","feature.focusHighlight.desc":"Sichtbare Umrandung fokussierter Elemente","feature.animationStop":"Animationen stoppen","feature.animationStop.desc":"Alle Animationen und Videos pausieren","feature.bigCursor":"Großer Mauszeiger","feature.bigCursor.desc":"Vergrößerter Mauszeiger für bessere Sichtbarkeit","feature.colorBlind":"Farbfilter","feature.colorBlind.desc":"Farbkorrekturen für verschiedene Sehschwächen","feature.linkHighlight":"Links hervorheben","feature.linkHighlight.desc":"Alle Links sichtbar unterstreichen","feature.keyboardNav":"Tastaturnavigation","feature.keyboardNav.desc":"Seite nur mit Tastatur bedienen: Direkt zum Inhalt springen, mit Alt+H durch Überschriften navigieren, Alt+L für Seitenbereiche, Alt+K zeigt alle Tastenkombinationen","feature.tts":"Vorlesen","feature.tts.desc":"Text per Klick vorlesen lassen","feature.textSimplify":"Text vereinfachen","feature.textSimplify.desc":"Text in Einfache Sprache umwandeln","feature.altText":"Alt-Text erzeugen","feature.altText.desc":"Bildbeschreibungen automatisch erstellen","feature.autoScan":"WCAG-Prüfung","feature.autoScan.desc":"Seite auf Barrierefreiheit prüfen","feature.saturation":"Sättigung","feature.saturation.desc":"Farbsättigung anpassen oder Graustufen","feature.hideImages":"Bilder ausblenden","feature.hideImages.desc":"Bilder entfernen für ablenkungsfreies Lesen","feature.textAlign":"Textausrichtung","feature.textAlign.desc":"Textausrichtung der Seite ändern","feature.readingMask":"Lesemaske","feature.readingMask.desc":"Fokus-Fenster, das die Umgebung abdunkelt","feature.pageStructure":"Seitenstruktur","feature.pageStructure.desc":"Überschriften und Bereiche zur Navigation anzeigen","feature.lineHeight":"Zeilenhöhe","feature.lineHeight.desc":"Abstand zwischen Textzeilen vergrößern","ai.loading":"Wird geladen...","ai.error":"Fehler bei der Verarbeitung","ai.simplify.select":"Text auswählen zum Vereinfachen","ai.simplify.level":"Vereinfachungsstufe","ai.simplify.einfache":"Einfache Sprache","ai.simplify.leichte":"Leichte Sprache","ai.alttext.generate":"Alt-Text erzeugen","ai.alttext.apply":"Übernehmen","ai.alttext.edit":"Bearbeiten","ai.alttext.badge":"Bilder ohne Alt-Text","ai.alttext.aiGenerated":"KI-generiert – bitte überprüfen","tts.play":"Vorlesen","tts.pause":"Pause","tts.stop":"Stopp","tts.speed":"Geschwindigkeit","footer.disclaimer":"Dieses Widget verbessert die Barrierefreiheit, ersetzt aber keine barrierefreie Webentwicklung.","footer.docs":"Dokumentation","footer.github":"GitHub","bfsg.notice":"Hinweis: Dieses Overlay-Tool allein erfüllt nicht die Anforderungen des BFSG. Professionelle Barrierefreiheit erfordert strukturelle Änderungen am Quellcode.","widget.subtitle":"Passe Kontrast, Text und Navigation auf dieser Seite an","widget.language":"Sprache","widget.widgetLang":"Widget-Sprache","widget.moveWidget":"Widget auf andere Seite verschieben","widget.poweredBy":"Bereitgestellt von Accessify-Widget","section.essentials":"Am haeufigsten genutzt","section.essentials.desc":"Starte mit Kontrast, Textgroesse und Tastaturhilfe.","section.support":"Lesen und Navigation","section.support.desc":"Hilfen fuer Fokus, reduzierte Bewegung und Seitenstruktur.","section.ai":"KI-Unterstuetzung","section.ai.desc":"Inhalte vereinfachen, Alt-Texte erzeugen und die Seite pruefen.","control.mostUsed":"Meistgenutzt","control.chooseMode":"Modus waehlen","control.default":"Standard","contrast.mode.light":"Heller Kontrast","contrast.mode.dark":"Dunkler Kontrast","contrast.mode.high":"Hoher Kontrast","keyboard.shortcuts":"Tastaturhilfe","keyboard.shortcut":"Tastaturkuerzel","keyboard.action":"Aktion","keyboard.nextHeading":"Zur naechsten Ueberschrift springen","keyboard.nextLandmark":"Zur naechsten Landmarke springen","keyboard.toggleHelp":"Diese Hilfe ein- oder ausblenden","keyboard.nextFocusable":"Zum naechsten fokussierbaren Element wechseln","keyboard.closeOverlay":"Diese Hilfe schliessen","keyboard.skipToContent":"Zum Hauptinhalt springen","pageStructure.title":"Seitenstruktur","pageStructure.headings":"Ueberschriften","pageStructure.landmarks":"Landmarken","pageStructure.empty":"Auf dieser Seite wurden keine Ueberschriften oder Landmarken gefunden."},zh:ia({"widget.widgetLang":"小组件语言","widget.title":"无障碍","widget.subtitle":"调整此页面的对比度、文字和导航","widget.open":"打开无障碍设置","widget.close":"关闭","widget.reset":"全部重置","widget.resetConfirm":"已重置所有调整","widget.poweredBy":"由 Accessify-Widget 提供支持","widget.statement":"无障碍声明","widget.language":"语言","status.active":"已启用 {count} 项","status.noActive":"当前未启用调整","status.activated":"已启用","status.deactivated":"已关闭","section.essentials":"最常用","section.essentials.desc":"先从对比度、文字大小和键盘支持开始。","section.support":"阅读与导航","section.support.desc":"用于聚焦、减少动画和查看页面结构的工具。","section.ai":"AI 辅助","section.ai.desc":"简化内容、生成替代文本并扫描当前页面。","control.mostUsed":"最常用","control.chooseMode":"选择模式","control.default":"默认","contrast.mode.light":"浅色高对比","contrast.mode.dark":"深色高对比","contrast.mode.high":"高对比","feature.contrast":"对比度","feature.textSize":"更大文字","feature.keyboardNav":"键盘导航","feature.focusHighlight":"焦点高亮","feature.linkHighlight":"突出链接","feature.animationStop":"停止动画","feature.readingGuide":"阅读指引线","feature.readingMask":"阅读遮罩","feature.hideImages":"隐藏图片","feature.bigCursor":"大号光标","feature.pageStructure":"页面结构","feature.tts":"朗读","feature.textSimplify":"简化文本","feature.altText":"生成替代文本","feature.autoScan":"WCAG 扫描"}),hi:ia({"widget.widgetLang":"विजेट भाषा","widget.title":"सुलभता","widget.subtitle":"इस पेज पर कंट्रास्ट, टेक्स्ट और नेविगेशन समायोजित करें","widget.open":"सुलभता सेटिंग खोलें","widget.close":"बंद करें","widget.reset":"सब रीसेट करें","widget.resetConfirm":"सभी बदलाव रीसेट हो गए","widget.poweredBy":"Accessify-Widget द्वारा संचालित","widget.statement":"एक्सेसिबिलिटी स्टेटमेंट","widget.language":"भाषा","status.active":"{count} सक्रिय","status.noActive":"कोई बदलाव सक्रिय नहीं","status.activated":"सक्रिय","status.deactivated":"निष्क्रिय","section.essentials":"सबसे ज्यादा उपयोग","section.essentials.desc":"कंट्रास्ट, टेक्स्ट साइज और कीबोर्ड सहायता से शुरू करें।","section.support":"पढ़ना और नेविगेशन","section.support.desc":"फोकस, कम मोशन और पेज स्ट्रक्चर के लिए टूल।","section.ai":"AI सहायता","section.ai.desc":"कंटेंट सरल करें, ऑल्ट टेक्स्ट बनाएं और मौजूदा पेज स्कैन करें।","control.mostUsed":"सबसे उपयोगी","control.chooseMode":"मोड चुनें","control.default":"डिफ़ॉल्ट","contrast.mode.light":"लाइट कंट्रास्ट","contrast.mode.dark":"डार्क कंट्रास्ट","contrast.mode.high":"हाई कंट्रास्ट","feature.contrast":"कंट्रास्ट","feature.textSize":"बड़ा टेक्स्ट","feature.keyboardNav":"कीबोर्ड नेविगेशन","feature.focusHighlight":"फोकस हाइलाइट","feature.linkHighlight":"लिंक हाइलाइट","feature.animationStop":"एनिमेशन रोकें","feature.readingGuide":"रीडिंग गाइड","feature.readingMask":"रीडिंग मास्क","feature.hideImages":"तस्वीरें छिपाएँ","feature.bigCursor":"बड़ा कर्सर","feature.pageStructure":"पेज संरचना","feature.tts":"जोर से पढ़ें","feature.textSimplify":"टेक्स्ट सरल करें","feature.altText":"ऑल्ट-टेक्स्ट बनाएँ","feature.autoScan":"WCAG स्कैन"}),es:ia({"widget.widgetLang":"Idioma del widget","widget.title":"Accesibilidad","widget.subtitle":"Ajusta contraste, texto y navegacion en esta pagina","widget.open":"Abrir ajustes de accesibilidad","widget.close":"Cerrar","widget.reset":"Restablecer todo","widget.resetConfirm":"Se restablecieron todos los ajustes","widget.poweredBy":"Impulsado por Accessify-Widget","widget.statement":"Declaracion de accesibilidad","widget.language":"Idioma","status.active":"{count} activas","status.noActive":"No hay ajustes activos","status.activated":"activado","status.deactivated":"desactivado","section.essentials":"Lo mas usado","section.essentials.desc":"Empieza con contraste, tamano de texto y apoyo para teclado.","section.support":"Lectura y navegacion","section.support.desc":"Herramientas para foco, menos movimiento y estructura de pagina.","section.ai":"Asistencia de IA","section.ai.desc":"Simplifica contenido, genera texto alternativo y analiza la pagina actual.","control.mostUsed":"Mas usado","control.chooseMode":"Elegir modo","control.default":"Predeterminado","contrast.mode.light":"Contraste claro","contrast.mode.dark":"Contraste oscuro","contrast.mode.high":"Alto contraste","feature.contrast":"Contraste","feature.textSize":"Texto mas grande","feature.keyboardNav":"Navegacion por teclado","feature.focusHighlight":"Resaltar foco","feature.linkHighlight":"Resaltar enlaces","feature.animationStop":"Detener animaciones","feature.readingGuide":"Guia de lectura","feature.readingMask":"Mascara de lectura","feature.hideImages":"Ocultar imagenes","feature.bigCursor":"Cursor grande","feature.pageStructure":"Estructura de pagina","feature.tts":"Lectura en voz alta","feature.textSimplify":"Simplificar texto","feature.altText":"Generar texto alternativo","feature.autoScan":"Escaneo WCAG"}),fr:ia({"widget.widgetLang":"Langue du widget","widget.title":"Accessibilite","widget.subtitle":"Ajustez le contraste, le texte et la navigation sur cette page","widget.open":"Ouvrir les reglages d'accessibilite","widget.close":"Fermer","widget.reset":"Tout reinitialiser","widget.resetConfirm":"Tous les ajustements ont ete reinitialises","widget.poweredBy":"Propulse par Accessify-Widget","widget.statement":"Declaration d'accessibilite","widget.language":"Langue","status.active":"{count} actives","status.noActive":"Aucun ajustement actif","status.activated":"active","status.deactivated":"desactive","section.essentials":"Les plus utilises","section.essentials.desc":"Commencez par le contraste, la taille du texte et le clavier.","section.support":"Lecture et navigation","section.support.desc":"Outils pour la mise au point, moins de mouvement et la structure de page.","section.ai":"Assistance IA","section.ai.desc":"Simplifiez le contenu, generez un texte alternatif et analysez la page.","control.mostUsed":"Les plus utilises","control.chooseMode":"Choisir un mode","control.default":"Par defaut","contrast.mode.light":"Contraste clair","contrast.mode.dark":"Contraste sombre","contrast.mode.high":"Contraste eleve","feature.contrast":"Contraste","feature.textSize":"Texte plus grand","feature.keyboardNav":"Navigation clavier","feature.focusHighlight":"Mise en evidence du focus","feature.linkHighlight":"Mettre les liens en evidence","feature.animationStop":"Arreter les animations","feature.readingGuide":"Guide de lecture","feature.readingMask":"Masque de lecture","feature.hideImages":"Masquer les images","feature.bigCursor":"Grand curseur","feature.pageStructure":"Structure de page","feature.tts":"Lecture audio","feature.textSimplify":"Simplifier le texte","feature.altText":"Generer un texte alternatif","feature.autoScan":"Analyse WCAG"}),ar:ia({"widget.widgetLang":"لغة الأداة","widget.title":"إمكانية الوصول","widget.subtitle":"اضبط التباين والنص والتنقل في هذه الصفحة","widget.open":"افتح إعدادات إمكانية الوصول","widget.close":"إغلاق","widget.reset":"إعادة ضبط الكل","widget.resetConfirm":"تمت إعادة ضبط جميع التعديلات","widget.poweredBy":"مدعوم بواسطة Accessify-Widget","widget.statement":"بيان إمكانية الوصول","widget.language":"اللغة","status.active":"{count} عناصر نشطة","status.noActive":"لا توجد تعديلات نشطة","status.activated":"مفعل","status.deactivated":"معطل","section.essentials":"الأكثر استخدامًا","section.essentials.desc":"ابدأ بالتباين وحجم النص ودعم لوحة المفاتيح.","section.support":"القراءة والتنقل","section.support.desc":"أدوات للتركيز وتقليل الحركة وبنية الصفحة.","section.ai":"مساعدة الذكاء الاصطناعي","section.ai.desc":"بسّط المحتوى وأنشئ نصًا بديلاً وافحص الصفحة الحالية.","control.mostUsed":"الأكثر استخدامًا","control.chooseMode":"اختر وضعًا","control.default":"افتراضي","contrast.mode.light":"تباين فاتح","contrast.mode.dark":"تباين داكن","contrast.mode.high":"تباين عالٍ","feature.contrast":"التباين","feature.textSize":"نص أكبر","feature.keyboardNav":"تنقل بلوحة المفاتيح","feature.focusHighlight":"إبراز التركيز","feature.linkHighlight":"إبراز الروابط","feature.animationStop":"إيقاف الرسوم المتحركة","feature.readingGuide":"دليل القراءة","feature.readingMask":"قناع القراءة","feature.hideImages":"إخفاء الصور","feature.bigCursor":"مؤشر كبير","feature.pageStructure":"بنية الصفحة","feature.tts":"القراءة بصوت عالٍ","feature.textSimplify":"تبسيط النص","feature.altText":"إنشاء نص بديل","feature.autoScan":"فحص WCAG"}),bn:ia({"widget.title":"অ্যাক্সেসিবিলিটি","widget.subtitle":"এই পাতায় কনট্রাস্ট, টেক্সট এবং নেভিগেশন ঠিক করুন","widget.open":"অ্যাক্সেসিবিলিটি সেটিংস খুলুন","widget.close":"বন্ধ করুন","widget.reset":"সব রিসেট করুন","widget.resetConfirm":"সব পরিবর্তন রিসেট হয়েছে","widget.poweredBy":"Accessify-Widget দ্বারা চালিত","widget.statement":"অ্যাক্সেসিবিলিটি বিবৃতি","widget.language":"ভাষা","status.active":"{count} টি সক্রিয়","status.noActive":"কোনও সমন্বয় সক্রিয় নেই","status.activated":"সক্রিয়","status.deactivated":"নিষ্ক্রিয়","section.essentials":"সবচেয়ে ব্যবহৃত","section.essentials.desc":"কনট্রাস্ট, টেক্সট সাইজ এবং কিবোর্ড সহায়তা দিয়ে শুরু করুন।","section.support":"পড়া ও নেভিগেশন","section.support.desc":"ফোকাস, কম মুভমেন্ট এবং পেজ স্ট্রাকচারের টুল।","section.ai":"AI সহায়তা","section.ai.desc":"কনটেন্ট সহজ করুন, অল্ট টেক্সট তৈরি করুন এবং পেজ স্ক্যান করুন।","control.mostUsed":"সবচেয়ে ব্যবহৃত","control.chooseMode":"মোড বেছে নিন","control.default":"ডিফল্ট","contrast.mode.light":"লাইট কনট্রাস্ট","contrast.mode.dark":"ডার্ক কনট্রাস্ট","contrast.mode.high":"হাই কনট্রাস্ট","feature.contrast":"কনট্রাস্ট","feature.textSize":"বড় টেক্সট","feature.keyboardNav":"কিবোর্ড নেভিগেশন","feature.focusHighlight":"ফোকাস হাইলাইট","feature.linkHighlight":"লিংক হাইলাইট","feature.animationStop":"অ্যানিমেশন বন্ধ","feature.readingGuide":"রিডিং গাইড","feature.readingMask":"রিডিং মাস্ক","feature.hideImages":"ছবি লুকান","feature.bigCursor":"বড় কার্সর","feature.pageStructure":"পেজ স্ট্রাকচার","feature.tts":"জোরে পড়া","feature.textSimplify":"টেক্সট সহজ করুন","feature.altText":"অল্ট-টেক্সট তৈরি","feature.autoScan":"WCAG স্ক্যান"}),pt:ia({"widget.widgetLang":"Idioma do widget","widget.title":"Acessibilidade","widget.subtitle":"Ajuste contraste, texto e navegacao nesta pagina","widget.open":"Abrir configuracoes de acessibilidade","widget.close":"Fechar","widget.reset":"Redefinir tudo","widget.resetConfirm":"Todos os ajustes foram redefinidos","widget.poweredBy":"Desenvolvido por Accessify-Widget","widget.statement":"Declaracao de acessibilidade","widget.language":"Idioma","status.active":"{count} ativas","status.noActive":"Nenhum ajuste ativo","status.activated":"ativado","status.deactivated":"desativado","section.essentials":"Mais usados","section.essentials.desc":"Comece com contraste, tamanho do texto e apoio ao teclado.","section.support":"Leitura e navegacao","section.support.desc":"Ferramentas para foco, menos movimento e estrutura da pagina.","section.ai":"Assistencia de IA","section.ai.desc":"Simplifique conteudo, gere texto alternativo e analise a pagina atual.","control.mostUsed":"Mais usados","control.chooseMode":"Escolher modo","control.default":"Padrao","contrast.mode.light":"Contraste claro","contrast.mode.dark":"Contraste escuro","contrast.mode.high":"Alto contraste","feature.contrast":"Contraste","feature.textSize":"Texto maior","feature.keyboardNav":"Navegacao por teclado","feature.focusHighlight":"Destaque de foco","feature.linkHighlight":"Destacar links","feature.animationStop":"Parar animacoes","feature.readingGuide":"Guia de leitura","feature.readingMask":"Mascara de leitura","feature.hideImages":"Ocultar imagens","feature.bigCursor":"Cursor grande","feature.pageStructure":"Estrutura da pagina","feature.tts":"Leitura em voz alta","feature.textSimplify":"Simplificar texto","feature.altText":"Gerar texto alternativo","feature.autoScan":"Varredura WCAG"}),ru:ia({"widget.widgetLang":"Язык виджета","widget.title":"Доступность","widget.subtitle":"Настройте контраст, текст и навигацию на этой странице","widget.open":"Открыть настройки доступности","widget.close":"Закрыть","widget.reset":"Сбросить все","widget.resetConfirm":"Все настройки сброшены","widget.poweredBy":"Работает на Accessify-Widget","widget.statement":"Заявление о доступности","widget.language":"Язык","status.active":"Активно: {count}","status.noActive":"Нет активных настроек","status.activated":"включено","status.deactivated":"выключено","section.essentials":"Самое используемое","section.essentials.desc":"Начните с контраста, размера текста и поддержки клавиатуры.","section.support":"Чтение и навигация","section.support.desc":"Инструменты для фокуса, уменьшения движения и структуры страницы.","section.ai":"Помощь ИИ","section.ai.desc":"Упрощайте текст, создавайте alt-текст и проверяйте текущую страницу.","control.mostUsed":"Популярное","control.chooseMode":"Выберите режим","control.default":"По умолчанию","contrast.mode.light":"Светлый контраст","contrast.mode.dark":"Темный контраст","contrast.mode.high":"Высокий контраст","feature.contrast":"Контраст","feature.textSize":"Крупный текст","feature.keyboardNav":"Навигация с клавиатуры","feature.focusHighlight":"Подсветка фокуса","feature.linkHighlight":"Выделить ссылки","feature.animationStop":"Остановить анимацию","feature.readingGuide":"Линейка для чтения","feature.readingMask":"Маска чтения","feature.hideImages":"Скрыть изображения","feature.bigCursor":"Большой курсор","feature.pageStructure":"Структура страницы","feature.tts":"Озвучивание","feature.textSimplify":"Упростить текст","feature.altText":"Создать alt-текст","feature.autoScan":"Проверка WCAG"}),ur:ia({"widget.title":"رسائی","widget.subtitle":"اس صفحے پر کنٹراسٹ، متن اور نیویگیشن کو ایڈجسٹ کریں","widget.open":"رسائی کی ترتیبات کھولیں","widget.close":"بند کریں","widget.reset":"سب ری سیٹ کریں","widget.resetConfirm":"تمام تبدیلیاں ری سیٹ ہو گئیں","widget.poweredBy":"Accessify-Widget کے ذریعے","widget.statement":"رسائی کا بیان","widget.language":"زبان","status.active":"{count} فعال","status.noActive":"کوئی تبدیلی فعال نہیں","status.activated":"فعال","status.deactivated":"غیر فعال","section.essentials":"سب سے زیادہ استعمال","section.essentials.desc":"کنٹراسٹ، متن کے سائز اور کی بورڈ مدد سے شروع کریں۔","section.support":"مطالعہ اور نیویگیشن","section.support.desc":"فوکس، کم حرکت اور صفحہ ساخت کے لیے ٹولز۔","section.ai":"AI مدد","section.ai.desc":"مواد آسان کریں، آلٹ ٹیکسٹ بنائیں اور موجودہ صفحہ اسکین کریں۔","control.mostUsed":"زیادہ استعمال","control.chooseMode":"موڈ منتخب کریں","control.default":"ڈیفالٹ","contrast.mode.light":"لائٹ کنٹراسٹ","contrast.mode.dark":"ڈارک کنٹراسٹ","contrast.mode.high":"ہائی کنٹراسٹ","feature.contrast":"کنٹراسٹ","feature.textSize":"بڑا متن","feature.keyboardNav":"کی بورڈ نیویگیشن","feature.focusHighlight":"فوکس ہائی لائٹ","feature.linkHighlight":"لنکس نمایاں کریں","feature.animationStop":"اینیمیشن روکیں","feature.readingGuide":"مطالعہ گائیڈ","feature.readingMask":"مطالعہ ماسک","feature.hideImages":"تصاویر چھپائیں","feature.bigCursor":"بڑا کرسر","feature.pageStructure":"صفحہ ساخت","feature.tts":"بلند آواز میں پڑھیں","feature.textSimplify":"متن آسان کریں","feature.altText":"آلٹ ٹیکسٹ بنائیں","feature.autoScan":"WCAG اسکین"}),id:ia({"widget.title":"Aksesibilitas","widget.subtitle":"Atur kontras, teks, dan navigasi di halaman ini","widget.open":"Buka pengaturan aksesibilitas","widget.close":"Tutup","widget.reset":"Reset semua","widget.resetConfirm":"Semua penyesuaian telah direset","widget.poweredBy":"Didukung oleh Accessify-Widget","widget.statement":"Pernyataan aksesibilitas","widget.language":"Bahasa","status.active":"{count} aktif","status.noActive":"Tidak ada penyesuaian aktif","status.activated":"aktif","status.deactivated":"nonaktif","section.essentials":"Paling sering dipakai","section.essentials.desc":"Mulai dari kontras, ukuran teks, dan dukungan keyboard.","section.support":"Membaca dan navigasi","section.support.desc":"Alat untuk fokus, gerakan rendah, dan struktur halaman.","section.ai":"Bantuan AI","section.ai.desc":"Sederhanakan konten, buat alt text, dan pindai halaman saat ini.","control.mostUsed":"Paling sering","control.chooseMode":"Pilih mode","control.default":"Default","contrast.mode.light":"Kontras terang","contrast.mode.dark":"Kontras gelap","contrast.mode.high":"Kontras tinggi","feature.contrast":"Kontras","feature.textSize":"Teks lebih besar","feature.keyboardNav":"Navigasi keyboard","feature.focusHighlight":"Sorot fokus","feature.linkHighlight":"Sorot tautan","feature.animationStop":"Hentikan animasi","feature.readingGuide":"Panduan baca","feature.readingMask":"Masker baca","feature.hideImages":"Sembunyikan gambar","feature.bigCursor":"Kursor besar","feature.pageStructure":"Struktur halaman","feature.tts":"Bacakan","feature.textSimplify":"Sederhanakan teks","feature.altText":"Buat alt-text","feature.autoScan":"Pindai WCAG"}),ja:ia({"widget.widgetLang":"ウィジェットの言語","widget.title":"アクセシビリティ","widget.subtitle":"このページのコントラスト、文字、ナビゲーションを調整します","widget.open":"アクセシビリティ設定を開く","widget.close":"閉じる","widget.reset":"すべてリセット","widget.resetConfirm":"すべての調整をリセットしました","widget.poweredBy":"Accessify-Widget 提供","widget.statement":"アクセシビリティ宣言","widget.language":"言語","status.active":"{count} 件が有効","status.noActive":"有効な調整はありません","status.activated":"有効","status.deactivated":"無効","section.essentials":"よく使う設定","section.essentials.desc":"まずはコントラスト、文字サイズ、キーボード支援から始めてください。","section.support":"読みやすさとナビゲーション","section.support.desc":"フォーカス、動きの抑制、ページ構造のためのツールです。","section.ai":"AI 支援","section.ai.desc":"文章を簡単にし、代替テキストを生成し、現在のページを確認します。","control.mostUsed":"よく使う","control.chooseMode":"モードを選択","control.default":"標準","contrast.mode.light":"ライトコントラスト","contrast.mode.dark":"ダークコントラスト","contrast.mode.high":"ハイコントラスト","feature.contrast":"コントラスト","feature.textSize":"大きな文字","feature.keyboardNav":"キーボード操作","feature.focusHighlight":"フォーカス強調","feature.linkHighlight":"リンク強調","feature.animationStop":"アニメーション停止","feature.readingGuide":"読書ガイド","feature.readingMask":"読書マスク","feature.hideImages":"画像を隠す","feature.bigCursor":"大きいカーソル","feature.pageStructure":"ページ構造","feature.tts":"読み上げ","feature.textSimplify":"文章を簡単にする","feature.altText":"代替テキスト生成","feature.autoScan":"WCAG スキャン"}),pcm:ia({"widget.title":"Accessibility","widget.subtitle":"Adjust contrast, text and navigation for dis page","widget.open":"Open accessibility settings","widget.close":"Close","widget.reset":"Reset all","widget.resetConfirm":"All adjustments don reset","widget.poweredBy":"Powered by Accessify-Widget","widget.statement":"Accessibility statement","widget.language":"Language","status.active":"{count} active","status.noActive":"No adjustment dey active","status.activated":"activated","status.deactivated":"deactivated","section.essentials":"Wetin people use pass","section.essentials.desc":"Start with contrast, text size and keyboard support.","section.support":"Reading and navigation","section.support.desc":"Tools for focus, reduced motion and page structure.","section.ai":"AI help","section.ai.desc":"Simplify content, generate alt text and scan dis page.","control.mostUsed":"Most used","control.chooseMode":"Choose mode","control.default":"Default","contrast.mode.light":"Light contrast","contrast.mode.dark":"Dark contrast","contrast.mode.high":"High contrast","feature.contrast":"Contrast","feature.textSize":"Bigger text","feature.keyboardNav":"Keyboard navigation","feature.focusHighlight":"Focus highlight","feature.linkHighlight":"Highlight links","feature.animationStop":"Stop animations","feature.readingGuide":"Reading guide","feature.readingMask":"Reading mask","feature.hideImages":"Hide images","feature.bigCursor":"Big cursor","feature.pageStructure":"Page structure","feature.tts":"Read aloud","feature.textSimplify":"Simplify text","feature.altText":"Generate alt-text","feature.autoScan":"WCAG scan"}),mr:ia({"widget.title":"प्रवेशयोग्यता","widget.subtitle":"या पानावर कॉन्ट्रास्ट, मजकूर आणि नेव्हिगेशन समायोजित करा","widget.open":"प्रवेशयोग्यता सेटिंग्ज उघडा","widget.close":"बंद करा","widget.reset":"सर्व रीसेट करा","widget.resetConfirm":"सर्व बदल रीसेट झाले","widget.poweredBy":"Accessify-Widget द्वारे समर्थित","widget.statement":"प्रवेशयोग्यता निवेदन","widget.language":"भाषा","status.active":"{count} सक्रिय","status.noActive":"कोणतेही बदल सक्रिय नाहीत","status.activated":"सक्रिय","status.deactivated":"निष्क्रिय","section.essentials":"सर्वात जास्त वापरलेले","section.essentials.desc":"कॉन्ट्रास्ट, मजकूर आकार आणि कीबोर्ड सहाय्यापासून सुरुवात करा.","section.support":"वाचन आणि नेव्हिगेशन","section.support.desc":"फोकस, कमी हालचाल आणि पृष्ठरचना यासाठी साधने.","section.ai":"AI मदत","section.ai.desc":"मजकूर सोपा करा, alt-text तयार करा आणि हे पान स्कॅन करा.","control.mostUsed":"सर्वाधिक वापरलेले","control.chooseMode":"मोड निवडा","control.default":"डीफॉल्ट","contrast.mode.light":"लाईट कॉन्ट्रास्ट","contrast.mode.dark":"डार्क कॉन्ट्रास्ट","contrast.mode.high":"हाय कॉन्ट्रास्ट","feature.contrast":"कॉन्ट्रास्ट","feature.textSize":"मोठा मजकूर","feature.keyboardNav":"कीबोर्ड नेव्हिगेशन","feature.focusHighlight":"फोकस हायलाइट","feature.linkHighlight":"लिंक हायलाइट","feature.animationStop":"अ‍ॅनिमेशन थांबवा","feature.readingGuide":"वाचन मार्गदर्शक","feature.readingMask":"वाचन मास्क","feature.hideImages":"प्रतिमा लपवा","feature.bigCursor":"मोठा कर्सर","feature.pageStructure":"पृष्ठरचना","feature.tts":"मोठ्याने वाचा","feature.textSimplify":"मजकूर सोपा करा","feature.altText":"alt-text तयार करा","feature.autoScan":"WCAG स्कॅन"}),te:ia({"widget.title":"అందుబాటు","widget.subtitle":"ఈ పేజీలో కాంట్రాస్ట్, టెక్స్ట్ మరియు నావిగేషన్‌ను సర్దుబాటు చేయండి","widget.open":"అందుబాటు సెట్టింగ్స్ తెరువు","widget.close":"మూసివేయి","widget.reset":"అన్నీ రీసెట్ చేయి","widget.resetConfirm":"అన్ని మార్పులు రీసెట్ అయ్యాయి","widget.poweredBy":"Accessify-Widget ద్వారా","widget.statement":"అందుబాటు ప్రకటన","widget.language":"భాష","status.active":"{count} సక్రియం","status.noActive":"ఏ మార్పూ సక్రియంగా లేదు","status.activated":"సక్రియం","status.deactivated":"నిష్క్రియం","section.essentials":"ఎక్కువగా ఉపయోగించేవి","section.essentials.desc":"కాంట్రాస్ట్, టెక్స్ట్ సైజు మరియు కీబోర్డ్ సహాయంతో మొదలుపెట్టండి.","section.support":"చదువు మరియు నావిగేషన్","section.support.desc":"ఫోకస్, తక్కువ మోషన్ మరియు పేజీ నిర్మాణానికి టూల్స్.","section.ai":"AI సహాయం","section.ai.desc":"కంటెంట్‌ను సులభతరం చేయండి, alt-text తయారు చేయండి, ఈ పేజీని స్కాన్ చేయండి.","control.mostUsed":"ఎక్కువ ఉపయోగం","control.chooseMode":"మోడ్ ఎంచుకోండి","control.default":"డిఫాల్ట్","contrast.mode.light":"లైట్ కాంట్రాస్ట్","contrast.mode.dark":"డార్క్ కాంట్రాస్ట్","contrast.mode.high":"హై కాంట్రాస్ట్","feature.contrast":"కాంట్రాస్ట్","feature.textSize":"పెద్ద టెక్స్ట్","feature.keyboardNav":"కీబోర్డ్ నావిగేషన్","feature.focusHighlight":"ఫోకస్ హైలైట్","feature.linkHighlight":"లింక్ హైలైట్","feature.animationStop":"యానిమేషన్స్ ఆపండి","feature.readingGuide":"రీడింగ్ గైడ్","feature.readingMask":"రీడింగ్ మాస్క్","feature.hideImages":"చిత్రాలు దాచు","feature.bigCursor":"పెద్ద కర్సర్","feature.pageStructure":"పేజీ నిర్మాణం","feature.tts":"గట్టిగా చదవండి","feature.textSimplify":"టెక్స్ట్ సులభతరం చేయి","feature.altText":"alt-text రూపొందించు","feature.autoScan":"WCAG స్కాన్"}),tr:ia({"widget.widgetLang":"Widget dili","widget.title":"Erisilebilirlik","widget.subtitle":"Bu sayfada kontrast, metin ve gezinmeyi ayarlayin","widget.open":"Erisilebilirlik ayarlarini ac","widget.close":"Kapat","widget.reset":"Tumunu sifirla","widget.resetConfirm":"Tum ayarlar sifirlandi","widget.poweredBy":"Accessify-Widget ile calisir","widget.statement":"Erisilebilirlik bildirimi","widget.language":"Dil","status.active":"{count} etkin","status.noActive":"Etkin ayar yok","status.activated":"etkin","status.deactivated":"devre disi","section.essentials":"En cok kullanilanlar","section.essentials.desc":"Kontrast, yazi boyutu ve klavye destegi ile baslayin.","section.support":"Okuma ve gezinme","section.support.desc":"Odak, azaltulmis hareket ve sayfa yapisi icin araclar.","section.ai":"YZ yardimi","section.ai.desc":"Icerigi sadeletir, alt metin olusturur ve mevcut sayfayi tarar.","control.mostUsed":"En cok kullanilan","control.chooseMode":"Mod sec","control.default":"Varsayilan","contrast.mode.light":"Acik kontrast","contrast.mode.dark":"Koyu kontrast","contrast.mode.high":"Yuksek kontrast","feature.contrast":"Kontrast","feature.textSize":"Buyuk metin","feature.keyboardNav":"Klavye gezintisi","feature.focusHighlight":"Odak vurgusu","feature.linkHighlight":"Baglantilari vurgula","feature.animationStop":"Animasyonlari durdur","feature.readingGuide":"Okuma kilavuzu","feature.readingMask":"Okuma maskesi","feature.hideImages":"Gorselleri gizle","feature.bigCursor":"Buyuk imlec","feature.pageStructure":"Sayfa yapisi","feature.tts":"Sesli oku","feature.textSimplify":"Metni sadeletir","feature.altText":"Alt metin olustur","feature.autoScan":"WCAG taramasi"}),ta:ia({"widget.title":"அணுகல்திறன்","widget.subtitle":"இந்த பக்கத்தில் எதிரொலி, உரை மற்றும் வழிசெலுத்தலை மாற்றுங்கள்","widget.open":"அணுகல்திறன் அமைப்புகளை திறக்கவும்","widget.close":"மூடு","widget.reset":"அனைத்தையும் மீட்டமை","widget.resetConfirm":"அனைத்து மாற்றங்களும் மீட்டமைக்கப்பட்டன","widget.poweredBy":"Accessify-Widget மூலம்","widget.statement":"அணுகல்திறன் அறிக்கை","widget.language":"மொழி","status.active":"{count} செயலில்","status.noActive":"செயலில் மாற்றங்கள் இல்லை","status.activated":"செயலில்","status.deactivated":"செயலற்றது","section.essentials":"அதிகம் பயன்படுத்தப்படும்","section.essentials.desc":"எதிரொலி, எழுத்து அளவு மற்றும் விசைப்பலகை உதவியுடன் தொடங்குங்கள்.","section.support":"வாசிப்பு மற்றும் வழிசெலுத்தல்","section.support.desc":"கவனம், குறைந்த இயக்கம் மற்றும் பக்க அமைப்புக்கான கருவிகள்.","section.ai":"AI உதவி","section.ai.desc":"உள்ளடக்கத்தை எளிமைப்படுத்தி, alt-text உருவாக்கி, இந்த பக்கத்தை ஸ்கேன் செய்யுங்கள்.","control.mostUsed":"அதிகம் பயன்படுத்தப்படும்","control.chooseMode":"முறையை தேர்வு செய்","control.default":"இயல்புநிலை","contrast.mode.light":"ஒளி எதிரொலி","contrast.mode.dark":"இருண்ட எதிரொலி","contrast.mode.high":"உயர் எதிரொலி","feature.contrast":"எதிரொலி","feature.textSize":"பெரிய எழுத்து","feature.keyboardNav":"விசைப்பலகை வழிசெலுத்தல்","feature.focusHighlight":"கவனத்தை வெளிப்படுத்து","feature.linkHighlight":"இணைப்புகளை வெளிப்படுத்து","feature.animationStop":"அனிமேஷனை நிறுத்து","feature.readingGuide":"வாசிப்பு வழிகாட்டி","feature.readingMask":"வாசிப்பு மறைப்பு","feature.hideImages":"படங்களை மறை","feature.bigCursor":"பெரிய கர்சர்","feature.pageStructure":"பக்க அமைப்பு","feature.tts":"சத்தமாக வாசி","feature.textSimplify":"உரையை எளிமைப்படுத்து","feature.altText":"alt-text உருவாக்கு","feature.autoScan":"WCAG ஸ்கேன்"}),vi:ia({"widget.title":"Tro nang truy cap","widget.subtitle":"Dieu chinh tuong phan, van ban va dieu huong tren trang nay","widget.open":"Mo cai dat tro nang truy cap","widget.close":"Dong","widget.reset":"Dat lai tat ca","widget.resetConfirm":"Da dat lai moi dieu chinh","widget.poweredBy":"Van hanh boi Accessify-Widget","widget.statement":"Tuyen bo tro nang truy cap","widget.language":"Ngon ngu","status.active":"{count} muc dang bat","status.noActive":"Khong co dieu chinh nao dang bat","status.activated":"da bat","status.deactivated":"da tat","section.essentials":"Dung nhieu nhat","section.essentials.desc":"Bat dau voi tuong phan, co chu va ho tro ban phim.","section.support":"Doc va dieu huong","section.support.desc":"Cong cu cho tap trung, giam chuyen dong va cau truc trang.","section.ai":"Ho tro AI","section.ai.desc":"Don gian hoa noi dung, tao alt-text va quet trang hien tai.","control.mostUsed":"Pho bien","control.chooseMode":"Chon che do","control.default":"Mac dinh","contrast.mode.light":"Tuong phan sang","contrast.mode.dark":"Tuong phan toi","contrast.mode.high":"Tuong phan cao","feature.contrast":"Tuong phan","feature.textSize":"Chu lon hon","feature.keyboardNav":"Dieu huong ban phim","feature.focusHighlight":"Noi bat tieu diem","feature.linkHighlight":"Noi bat lien ket","feature.animationStop":"Dung hieu ung","feature.readingGuide":"Thuoc doc","feature.readingMask":"Mat na doc","feature.hideImages":"An hinh anh","feature.bigCursor":"Con tro lon","feature.pageStructure":"Cau truc trang","feature.tts":"Doc thanh tieng","feature.textSimplify":"Don gian hoa van ban","feature.altText":"Tao alt-text","feature.autoScan":"Quet WCAG"}),ko:ia({"widget.widgetLang":"위젯 언어","widget.title":"접근성","widget.subtitle":"이 페이지의 대비, 텍스트, 내비게이션을 조정하세요","widget.open":"접근성 설정 열기","widget.close":"닫기","widget.reset":"모두 재설정","widget.resetConfirm":"모든 조정이 재설정되었습니다","widget.poweredBy":"Accessify-Widget 제공","widget.statement":"접근성 안내문","widget.language":"언어","status.active":"{count}개 활성","status.noActive":"활성화된 조정이 없습니다","status.activated":"활성화됨","status.deactivated":"비활성화됨","section.essentials":"가장 많이 사용됨","section.essentials.desc":"대비, 글자 크기, 키보드 지원부터 시작하세요.","section.support":"읽기 및 내비게이션","section.support.desc":"초점, 움직임 감소, 페이지 구조를 위한 도구입니다.","section.ai":"AI 지원","section.ai.desc":"콘텐츠를 쉽게 만들고 대체 텍스트를 생성하며 현재 페이지를 검사합니다.","control.mostUsed":"가장 많이 사용됨","control.chooseMode":"모드 선택","control.default":"기본값","contrast.mode.light":"라이트 대비","contrast.mode.dark":"다크 대비","contrast.mode.high":"고대비","feature.contrast":"대비","feature.textSize":"큰 글자","feature.keyboardNav":"키보드 내비게이션","feature.focusHighlight":"포커스 강조","feature.linkHighlight":"링크 강조","feature.animationStop":"애니메이션 중지","feature.readingGuide":"읽기 가이드","feature.readingMask":"읽기 마스크","feature.hideImages":"이미지 숨기기","feature.bigCursor":"큰 커서","feature.pageStructure":"페이지 구조","feature.tts":"소리 내어 읽기","feature.textSimplify":"텍스트 단순화","feature.altText":"대체 텍스트 생성","feature.autoScan":"WCAG 검사"})},ra=[{code:"de",label:"Deutsch",flag:"🇩🇪"},{code:"en",label:"English",flag:"🇺🇸"},{code:"es",label:"Español",flag:"🇪🇸"},{code:"fr",label:"Français",flag:"🇫🇷"},{code:"pt",label:"Português",flag:"🇧🇷"},{code:"tr",label:"Türkçe",flag:"🇹🇷"},{code:"ar",label:"العربية",flag:"🇸🇦"},{code:"zh",label:"中文",flag:"🇨🇳"},{code:"ja",label:"日本語",flag:"🇯🇵"},{code:"ru",label:"Русский",flag:"🇷🇺"}],oa=new Set(["ar","ur"]);let sa="en";function ca(e){if(!e)return"en";const t=e.toLowerCase();if(aa[t])return t;const n=t.split("-")[0];return aa[n]?n:"en"}function la(){return sa}function da(e){return oa.has(ca(e))}function ua(e,t="en"){const n=ca(t);return aa[n]?.[e]||na[e]||e}var fa=bi("<button></button>"),pa=bi('<header class="accessify-header"><div class="accessify-header-left"><span class="accessify-logo" aria-label="Accessify"><svg viewBox="0 0 480 80" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><text x="0" y="64" font-family="-apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif" font-size="72" font-weight="700" letter-spacing="-2">accessify</text></svg></span></div> <div class="accessify-header-actions"><button class="accessify-header-btn"></button> <button class="accessify-header-btn accessify-header-btn--icon accessify-header-btn--close"></button></div></header>');pi(["click"]);const ha=[{id:"vision-impaired",nameKey:"profile.visionImpaired",descKey:"profile.visionImpaired.desc",iconId:"eye",features:["contrast","text-size","big-cursor","link-highlight"],featureSettings:{"text-size":150,contrast:"high"}},{id:"motor-impaired",nameKey:"profile.motorImpaired",descKey:"profile.motorImpaired.desc",iconId:"keyboard",features:["keyboard-nav","big-cursor","link-highlight"]},{id:"cognitive",nameKey:"profile.cognitive",descKey:"profile.cognitive.desc",iconId:"brain",features:["reading-guide","text-size","spacing","dyslexia-font","animation-stop"],featureSettings:{"text-size":130}},{id:"seizure-safe",nameKey:"profile.seizureSafe",descKey:"profile.seizureSafe.desc",iconId:"shield",features:["animation-stop","saturation"],featureSettings:{saturation:"low"}},{id:"adhd-friendly",nameKey:"profile.adhdFriendly",descKey:"profile.adhdFriendly.desc",iconId:"focus",features:["animation-stop","reading-mask","hide-images"]}];var ga=wi('<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"></path></svg>'),va=bi('<button class="accessify-accordion-option"><span class="accessify-accordion-option-left"><span class="accessify-accordion-option-icon" aria-hidden="true"></span> <span class="accessify-accordion-option-text"><span class="accessify-accordion-option-name"> </span> <span class="accessify-accordion-option-desc"> </span></span></span> <!></button>'),ma=bi('<div class="accessify-accordion-list" role="group"></div>'),ya=bi('<div class="accessify-accordion" role="region"><button class="accessify-accordion-toggle"><span class="accessify-accordion-toggle-left"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><path d="M12 8v4l2 2"></path></svg> <span> </span></span> <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg></button> <!></div>');pi(["click"]);const ba="https://openrouter.ai/api/v1";function xa(e){const t=e.choices?.[0]?.message;if(t?.content&&"string"==typeof t.content)return t.content.trim();if(t?.reasoning&&"string"==typeof t.reasoning)return t.reasoning.trim();if(Array.isArray(t?.reasoning_details))for(const n of t.reasoning_details)if(n?.text)return n.text.trim();return""}function wa(e){const t={"Content-Type":"application/json",...e.apiKey?{Authorization:`Bearer ${e.apiKey}`}:{},"HTTP-Referer":"undefined"!=typeof window?window.location.origin:"","X-Title":"Accessify Widget"};return{async simplifyText(n,i="einfache",a="de"){const r=a.startsWith("de")?function(e){return"leichte"===e?"Du bist ein Experte für Leichte Sprache (DIN SPEC 33429). Vereinfache den folgenden Text nach diesen Regeln:\n- Benutze kurze Sätze (maximal 8 Wörter pro Satz)\n- Ein Satz pro Zeile\n- Benutze einfache, bekannte Wörter\n- Erkläre Fremdwörter und Fachbegriffe\n- Benutze aktive Sätze (kein Passiv)\n- Benutze keine Abkürzungen\n- Benutze keine Metaphern oder bildliche Sprache\n- Schreibe in Präsens\n- Benutze positive Formulierungen\n- Zielgruppe: CEFR A1-A2\n\nGib NUR den vereinfachten Text zurück.":"Du bist ein Experte für Einfache Sprache (DIN ISO 24495-1). Vereinfache den folgenden Text:\n- Kurze, klare Sätze (maximal 15 Wörter)\n- Vermeide Fachbegriffe oder erkläre sie\n- Benutze aktive Formulierungen\n- Strukturiere den Text mit klaren Absätzen\n- Zielgruppe: CEFR B1-B2\n- Bewahre den vollständigen Inhalt\n\nGib NUR den vereinfachten Text zurück."}(i):"You are a plain language expert. Simplify the following text:\n- Use short, clear sentences (max 15 words)\n- Avoid jargon, explain technical terms\n- Use active voice\n- Target reading level: grade 6-8\n\nReturn ONLY the simplified text.",o=await fetch(`${ba}/chat/completions`,{method:"POST",headers:t,body:JSON.stringify({model:e.textModel||"google/gemini-2.0-flash-001",messages:[{role:"system",content:r},{role:"user",content:n}],stream:!1,max_tokens:2e3})});if(!o.ok){if(429===o.status)throw new ka("Rate limit reached. Please try again later.");throw new Error(`AI service error: ${o.status}`)}return xa(await o.json())},async generateAltText(n,i,a){const r=a&&!a.startsWith("en")?` Generate the alt text in ${a} language.`:"",o=await fetch(`${ba}/chat/completions`,{method:"POST",headers:t,body:JSON.stringify({model:e.visionModel||"google/gemini-2.0-flash-001",messages:[{role:"user",content:[{type:"text",text:`Generate a concise, descriptive alt text for this image for web accessibility.${r} ${i?"Context: "+i:""} Return ONLY the alt text, nothing else. Max 125 characters.`},{type:"image_url",image_url:{url:n}}]}],max_tokens:300})});if(!o.ok){if(429===o.status)throw new ka("Rate limit reached. Please try again later.");throw new Error(`AI vision error: ${o.status}`)}return xa(await o.json())}}}class ka extends Error{constructor(e){super(e),this.name="RateLimitError"}}var _a=bi('<button class="accessify-chip accessify-chip--icon"><span class="accessify-chip-icon" aria-hidden="true"></span> <span> </span></button>'),Sa=bi('<div class="accessify-control-row" role="group"><div class="accessify-control-label"><span class="accessify-control-label-icon" aria-hidden="true"></span> <span class="accessify-control-label-text"> </span></div> <div class="accessify-chip-row"></div></div>'),Aa=bi('<div class="accessify-control-row" role="group"><div class="accessify-control-label"><span class="accessify-control-label-icon" aria-hidden="true"></span> <span class="accessify-control-label-text"> </span></div> <div class="accessify-stepper"><button class="accessify-stepper-btn" aria-label="Decrease text size">−</button> <span class="accessify-stepper-value" aria-live="polite"> </span> <button class="accessify-stepper-btn" aria-label="Increase text size">+</button></div></div>'),Ma=bi('<div class="accessify-card-wrap"><button class="accessify-card" role="switch"><span class="accessify-card-icon" aria-hidden="true"></span> <span class="accessify-card-label"> </span></button> <span class="accessify-card-info" tabindex="0"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="16" x2="12" y2="12"></line><line x1="12" y1="8" x2="12.01" y2="8"></line></svg> <span class="accessify-card-tooltip"> </span></span></div>'),Ca=bi('<div class="accessify-features"></div>'),Ea=bi('<!> <!> <div class="accessify-section-divider"></div> <!>',1);pi(["click"]);var Ta=bi('<span aria-hidden="true">&middot;</span> <a target="_blank" rel="noopener noreferrer"> </a>',1),$a=bi('<div class="accessify-footer"><a target="_blank" rel="noopener noreferrer">Accessify Dashboard</a> <!></div>');let za=[],Ia=null,La=!1;async function Ga(e,t,n){const i=new URLSearchParams({client:"gtx",sl:t,tl:n,dt:"t",q:e});try{const t=await fetch(`https://translate.googleapis.com/translate_a/single?${i.toString()}`);if(!t.ok)throw new Error(`HTTP ${t.status}`);const n=await t.json();if(Array.isArray(n[0])){const e=[];for(const t of n[0])Array.isArray(t)&&"string"==typeof t[0]&&e.push(t[0]);return e.join("")}return e}catch{return e}}var ja=wi('<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"></path></svg>'),Pa=bi('<button class="accessify-lang-option" role="option"><span> </span> <!></button>'),Ha=bi('<div class="accessify-lang-list" role="listbox"></div>'),Ba=bi('<div class="sr-only" role="status" aria-live="polite" aria-atomic="true"> </div> <!> <div class="accessify-panel" role="dialog"><!> <div class="accessify-body"><div class="accessify-lang-dropdown"><button class="accessify-lang-toggle"><span class="accessify-lang-toggle-left"><!> <span> </span></span> <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg></button> <!></div> <div class="accessify-section-divider"></div> <!> <div class="accessify-section-divider"></div> <!></div> <!></div>',1);function Na(e,t){Ue(t,!0);let n=Ri(t,"config",7),i=Ft(!1),a=Ft(Xt(new Map)),r=Ft("light"),o=Ft(null),s=Ft(null),c=Ft(""),l=Ft("en"),d=Ft(null),u=Ft(!1);const f={async translate(e){if(!La){La=!0;try{za.length>0&&this.restore();const t=document.documentElement.lang?.split("-")[0]||"auto",n=function(){const e=document.createTreeWalker(document.body,NodeFilter.SHOW_TEXT,{acceptNode(e){if(!e.textContent||!e.textContent.trim())return NodeFilter.FILTER_REJECT;const t=e.parentElement;return t?["SCRIPT","STYLE","NOSCRIPT","CODE","PRE","TEXTAREA","INPUT"].includes(t.tagName)||t.closest("accessify-widget")?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),t=[];let n;for(;n=e.nextNode();)t.push(n);return t}();if(0===n.length)return void(La=!1);za=n.map(e=>({node:e,original:e.textContent}));const i=[...new Set(za.map(e=>e.original.trim()).filter(Boolean))],a=await async function(e,t,n){const i=new Array(e.length);for(let a=0;a<e.length;a+=10){const r=e.slice(a,a+10),o=await Promise.all(r.map(e=>Ga(e,t,n)));for(let e=0;e<o.length;e++)i[a+e]=o[e]}return i}(i,t,e),r=new Map;i.forEach((e,t)=>{a[t]&&r.set(e,a[t])});for(const e of za){const t=e.original.trim(),n=r.get(t);if(n){const t=e.original.match(/^\s*/)?.[0]||"",i=e.original.match(/\s*$/)?.[0]||"";e.node.textContent=t+n+i}}Ia=e}finally{La=!1}}},async simplify(e,t){},restore(){for(const e of za)e.node.textContent=e.original;za=[],Ia=null},isTranslated:()=>null!==Ia,currentLang:()=>Ia},p="accessify-prefs";let h=zt(()=>Array.from(ii(a).values()).filter(Boolean).length),g=zt(()=>ra.find(e=>e.code===ii(l)));function v(e){Rt(c,""),requestAnimationFrame(()=>{Rt(c,e,!0)})}function m(){try{const e=Object.fromEntries(ii(a));localStorage.setItem(p,JSON.stringify(e))}catch{}}function y(){const e=t.shadow.getElementById("accessify-mount");e&&("auto"===n().theme?e.removeAttribute("data-theme"):e.setAttribute("data-theme",ii(r)))}function b(){const e=t.shadow.getElementById("accessify-mount"),n=da(ii(l))?"rtl":"ltr";var i;e&&(e.setAttribute("lang",ii(l)),e.setAttribute("dir",n)),t.shadow.host.setAttribute("lang",ii(l)),t.shadow.host.setAttribute("dir",n),i=ii(l),sa=ca(i)}function x(){Rt(i,!0),requestAnimationFrame(()=>{if(ii(o)){const e=ii(o).querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');e?.focus()}})}function w(){Rt(i,!1);const e=t.shadow.querySelector(".accessify-trigger");e?.focus()}Ui(()=>{Rt(l,ca(n().lang||"en"),!0),function(){if("light"===n().theme||"dark"===n().theme)return void Rt(r,n().theme,!0);const e=window.matchMedia("(prefers-color-scheme: dark)");Rt(r,e.matches?"dark":"light",!0),e.addEventListener("change",e=>{"auto"===n().theme&&(Rt(r,e.matches?"dark":"light",!0),y())})}(),y(),function(){try{const e=localStorage.getItem(p);if(e){const t=JSON.parse(e);Rt(a,new Map(Object.entries(t)),!0)}}catch{}}(),b()});var k,_,S,A={open:x,close:w},M=Ba();S=function(e,t,n,i={}){function a(e){if(i.capture||gi.call(t,e),!e.cancelBubble)return pn(()=>n?.call(this,e))}return e.startsWith("pointer")||e.startsWith("touch")||"wheel"===e?Je(()=>{t.addEventListener(e,a,i)}):t.addEventListener(e,a,i),a}("keydown",k=tn,function(e){if("Escape"===e.key&&ii(i))return e.preventDefault(),void w();if("Tab"===e.key&&ii(i)&&ii(o)){const n=ii(o).querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');if(0===n.length)return;const i=n[0],a=n[n.length-1],r=t.shadow.activeElement||document.activeElement;e.shiftKey&&r===i?(e.preventDefault(),a.focus()):e.shiftKey||r!==a||(e.preventDefault(),i.focus())}},_={capture:void 0,passive:void 0}),(k===document.body||k===window||k===document||k instanceof HTMLMediaElement)&&vn(()=>{k.removeEventListener("keydown",S,_)});var C=dn(M),E=ln(C),T=un(C,2);!function(e,t){Ue(t,!0);let n=Ri(t,"lang",3,"en"),i=Ri(t,"el",15,null),a=Ft(!1);Ui(()=>{const e=i();if(!e)return;let n=0,r=0,o=0,s=0,c=!1,l=null;function d(i){if(t.isOpen)return;const a=e.getBoundingClientRect();n=i.clientX,r=i.clientY,o=a.left,s=a.top,c=!1,l=i.pointerId,e.setPointerCapture(i.pointerId)}function u(t){if(null===l||t.pointerId!==l)return;const i=t.clientX-n,d=t.clientY-r;if(!c&&(Math.abs(i)>5||Math.abs(d)>5)&&(c=!0,Rt(a,!0),e.style.transition="none"),c){const t=Math.max(0,Math.min(window.innerWidth-60,o+i)),n=Math.max(0,Math.min(window.innerHeight-60,s+d));e.style.left=t+"px",e.style.top=n+"px",e.style.right="auto",e.style.bottom="auto"}}function f(n){null!==l&&n.pointerId===l&&(e.releasePointerCapture(n.pointerId),e.style.transition="",Rt(a,!1),c||t.onclick(),l=null)}return e.addEventListener("pointerdown",d),e.addEventListener("pointermove",u),e.addEventListener("pointerup",f),()=>{e.removeEventListener("pointerdown",d),e.removeEventListener("pointermove",u),e.removeEventListener("pointerup",f)}});var r=fa();let o;Pi(r,()=>t.isOpen?Zi():Vi(),!0),Di(r,e=>i(e),()=>i()),xn(e=>{o=Bi(r,1,"accessify-trigger",0,o,{"accessify-trigger--dragging":ii(a)}),Wi(r,"aria-expanded",t.isOpen),Wi(r,"aria-label",e)},[()=>ua(t.isOpen?"widget.close":"widget.open",n())]),ki(e,r),qe()}(T,{get isOpen(){return ii(i)},get lang(){return ii(l)},onclick:function(){ii(i)?w():x()},get el(){return ii(s)},set el(e){Rt(s,e,!0)}});var $=un(T,2),z=ln($);!function(e,t){Ue(t,!0);let n=Ri(t,"lang",3,"en");Ri(t,"activeCount",3,0);var i=pa(),a=un(ln(i),2),r=ln(a);Pi(r,Qi,!0);var o=un(r,2);Pi(o,Zi,!0),xn((e,t)=>{Wi(r,"aria-label",e),Wi(o,"aria-label",t)},[()=>ua("widget.reset",n()),()=>ua("widget.close",n())]),fi("click",r,function(...e){t.onreset?.apply(this,e)}),fi("click",o,function(...e){t.onclose?.apply(this,e)}),ki(e,i),qe()}(z,{get lang(){return ii(l)},get activeCount(){return ii(h)},onclose:w,onreset:function(){Rt(a,new Map,!0),Rt(d,null),m(),f.restore(),window.dispatchEvent(new CustomEvent("accessify:reset")),v(ua("widget.resetConfirm",ii(l)))}});var I=un(z,2),L=ln(I),G=ln(L),j=ln(G),P=ln(j);Pi(P,ea);var H=ln(un(P,2)),B=un(j,2);let N;var O=un(G,2),W=e=>{var t=Ha();zi(t,21,()=>ra,Ei,(e,t)=>{var i=Pa(),a=ln(i),r=ln(a),o=un(a,2),s=e=>{ki(e,ja())};Ci(o,e=>{ii(l)===ii(t).code&&e(s)}),xn(()=>{Wi(i,"aria-selected",ii(l)===ii(t).code),Wi(i,"data-active",ii(l)===ii(t).code),_i(r,`${(ii(t).flag||"")??""} ${ii(t).label??""}`)}),fi("click",i,()=>function(e){Rt(l,ca(e),!0),n().lang=ii(l),Rt(u,!1),b();const t=document.documentElement.lang?.split("-")[0]||"en";ii(l)!==t?f.translate(ii(l)):f.restore()}(ii(t).code)),ki(e,i)}),xn(e=>Wi(t,"aria-label",e),[()=>ua("widget.widgetLang",ii(l))]),ki(e,t)};Ci(O,e=>{ii(u)&&e(W)});var K=un(L,4);!function(e,t){Ue(t,!0);let n=Ri(t,"lang",3,"en"),i=Ri(t,"activeProfileId",3,null),a=Ft(!1),r=zt(()=>i()?ha.find(e=>e.id===i()):null);var o=ya(),s=ln(o),c=ln(s),l=un(ln(c),2),d=ln(l),u=un(c,2);let f;var p=un(s,2),h=e=>{var a=ma();zi(a,21,()=>ha,e=>e.id,(e,a)=>{var r=va(),o=ln(r),s=ln(o);Pi(s,()=>function(e){const t=ta[e];return t?t():""}(ii(a).iconId),!0);var c=ln(un(s,2)),l=ln(c),d=ln(un(c,2)),u=un(o,2),f=e=>{ki(e,ga())};Ci(u,e=>{i()===ii(a).id&&e(f)}),xn((e,t)=>{Wi(r,"aria-pressed",i()===ii(a).id),Wi(r,"data-active",i()===ii(a).id),_i(l,e),_i(d,t)},[()=>ua(ii(a).nameKey,n()),()=>ua(ii(a).descKey,n())]),fi("click",r,()=>t.onactivate(ii(a))),ki(e,r)}),xn(e=>Wi(a,"aria-label",e),[()=>ua("section.profiles",n())]),ki(e,a)};Ci(p,e=>{ii(a)&&e(h)}),xn((e,t)=>{Wi(o,"aria-label",e),Wi(s,"aria-expanded",ii(a)),_i(d,t),f=Bi(u,0,"accessify-accordion-chevron",0,f,{"accessify-accordion-chevron--open":ii(a)})},[()=>ua("section.profiles",n()),()=>ii(r)?ua(ii(r).nameKey,n()):ua("section.profiles",n())]),fi("click",s,()=>{Rt(a,!ii(a))}),ki(e,o),qe()}(K,{get lang(){return ii(l)},get activeProfileId(){return ii(d)},onactivate:function(e){if(ii(d)===e.id){Rt(d,null);for(const t of e.features)ii(a).set(t,!1);return Rt(a,new Map(ii(a)),!0),m(),window.dispatchEvent(new CustomEvent("accessify:reset")),void v(`${ua(e.nameKey,ii(l))} ${ua("status.deactivated",ii(l))}`)}Rt(d,e.id,!0);for(const t of e.features)ii(a).set(t,!0);Rt(a,new Map(ii(a)),!0),m(),v(`${ua(e.nameKey,ii(l))} ${ua("status.activated",ii(l))}`)}});var F=un(K,4);{let e=zt(()=>({...n(),lang:ii(l)}));!function(e,t){Ue(t,!0);const n={"keyboard-nav":{id:"keyboard-nav",nameKey:"feature.keyboardNav",descKey:"feature.keyboardNav.desc",iconId:"keyboard"},"link-highlight":{id:"link-highlight",nameKey:"feature.linkHighlight",descKey:"feature.linkHighlight.desc",iconId:"link-highlight"},"reading-guide":{id:"reading-guide",nameKey:"feature.readingGuide",descKey:"feature.readingGuide.desc",iconId:"reading-guide"},"reading-mask":{id:"reading-mask",nameKey:"feature.readingMask",descKey:"feature.readingMask.desc",iconId:"reading-mask"},"animation-stop":{id:"animation-stop",nameKey:"feature.animationStop",descKey:"feature.animationStop.desc",iconId:"animation-pause"},"hide-images":{id:"hide-images",nameKey:"feature.hideImages",descKey:"feature.hideImages.desc",iconId:"hide-images"},"big-cursor":{id:"big-cursor",nameKey:"feature.bigCursor",descKey:"feature.bigCursor.desc",iconId:"cursor"},"page-structure":{id:"page-structure",nameKey:"feature.pageStructure",descKey:"feature.pageStructure.desc",iconId:"page-structure"},tts:{id:"tts",nameKey:"feature.tts",descKey:"feature.tts.desc",iconId:"tts"},"text-simplify":{id:"text-simplify",nameKey:"feature.textSimplify",descKey:"feature.textSimplify.desc",iconId:"simplify-text"},"alt-text":{id:"alt-text",nameKey:"feature.altText",descKey:"feature.altText.desc",iconId:"alt-text"}},i=["keyboard-nav","link-highlight","animation-stop","hide-images","big-cursor"],a=["reading-guide","reading-mask","tts"],r=["text-simplify","alt-text"],o=[{id:"light",labelKey:"contrast.mode.light",icon:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"/><line x1="12" y1="1" x2="12" y2="3"/><line x1="12" y1="21" x2="12" y2="23"/><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/><line x1="1" y1="12" x2="3" y2="12"/><line x1="21" y1="12" x2="23" y2="12"/><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/></svg>'},{id:"dark",labelKey:"contrast.mode.dark",icon:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/></svg>'},{id:"high",labelKey:"contrast.mode.high",icon:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M12 2v20"/><path d="M12 2a10 10 0 0 1 0 20" fill="currentColor"/></svg>'}],s=new Set(["text-simplify","alt-text"]),c=new Map,l={contrast:()=>Promise.resolve().then(()=>gr),"text-size":()=>Promise.resolve().then(()=>vr),"keyboard-nav":()=>Promise.resolve().then(()=>mr),"link-highlight":()=>Promise.resolve().then(()=>yr),"reading-guide":()=>Promise.resolve().then(()=>xr),"reading-mask":()=>Promise.resolve().then(()=>wr),"animation-stop":()=>Promise.resolve().then(()=>kr),"hide-images":()=>Promise.resolve().then(()=>_r),"big-cursor":()=>Promise.resolve().then(()=>Ar),"page-structure":()=>Promise.resolve().then(()=>Mr),tts:()=>Promise.resolve().then(()=>Er),"text-simplify":()=>Promise.resolve().then(()=>Tr),"alt-text":()=>Promise.resolve().then(()=>Za)};let d,u=Ft(Xt(function(){if("undefined"==typeof window)return"off";const e=localStorage.getItem("accessify-contrast-mode");return"light"===e||"dark"===e||"high"===e?e:"off"}())),f=Ft(Xt(function(){if("undefined"==typeof window)return 100;const e=Number.parseInt(localStorage.getItem("accessify-text-size")||"100",10);return Number.isFinite(e)?Math.max(100,Math.min(200,e)):100}())),p=zt(()=>new Set(t.config.features)),h=zt(()=>Array.from(t.activeFeatures.entries()).sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>`${e}:${t}`).join("|"));function g(e){const t=ta[e];return t?t():""}function v(e){return e.filter(e=>ii(p).has(e)).map(e=>n[e]).filter(Boolean)}function m(e,t){if(!t)return;const n=t.getState();"contrast"===e&&Rt(u,"light"===n.value||"dark"===n.value||"high"===n.value?n.value:"off",!0),"text-size"===e&&Rt(f,"number"==typeof n.value?n.value:100,!0)}async function y(e){if(c.has(e))return c.get(e);const n=l[e];if(!n)return null;try{const a=await n(),r=a.default??a,o="function"==typeof r?s.has(e)?r((d||(d=(i={apiKey:t.config.openRouterKey,siteKey:t.config.siteKey,proxyUrl:t.config.proxyUrl}).apiKey?wa(i):i.siteKey?function(e,t){const n=t||"https://accessify-api.accessify.workers.dev",i={"Content-Type":"application/json","X-Site-Key":e};return{async simplifyText(e,t="einfache",a="de"){const r=`b-${function(e){let t=5381;for(let n=0;n<e.length;n++)t=(t<<5)+t+e.charCodeAt(n),t|=0;return Math.abs(t).toString(36)}(e)}`,o=a.startsWith("de")?`de-${t}`:"en-plain";try{const t=await fetch(`${n}/v1/cache/query`,{method:"POST",headers:i,body:JSON.stringify({pageUrl:"undefined"!=typeof window?window.location.href:"",feature:"simplify",variant:o,blocks:[{id:r,text:e}]})});if(t.ok){const e=await t.json();if(e.cached?.[r])return e.cached[r]}}catch{}try{const t=await fetch(`${n}/v1/cache/process`,{method:"POST",headers:i,body:JSON.stringify({pageUrl:"undefined"!=typeof window?window.location.href:"",feature:"simplify",variant:o,blocks:[{id:r,text:e}]})});if(t.ok){const e=await t.json();if(e.results?.[r])return e.results[r]}}catch{}const s=await fetch(`${n}/v1/ai/simplify`,{method:"POST",headers:i,body:JSON.stringify({text:e,level:t,lang:a})});if(!s.ok){const e=await s.json().catch(()=>({error:`HTTP ${s.status}`}));if(429===s.status)throw new ka(e.error||"Rate limit reached");throw new Error(e.error||`AI proxy error: ${s.status}`)}return(await s.json()).result||""},async generateAltText(e,t,a){const r=await fetch(`${n}/v1/ai/alt-text`,{method:"POST",headers:i,body:JSON.stringify({imageUrl:e,context:t,lang:a})});if(!r.ok){const e=await r.json().catch(()=>({error:`HTTP ${r.status}`}));if(429===r.status)throw new ka(e.error||"Rate limit reached");throw new Error(e.error||`AI proxy error: ${r.status}`)}return(await r.json()).result||""}}}(i.siteKey,i.proxyUrl):wa(i)),d),t.config.lang,{siteKey:t.config.siteKey,proxyUrl:t.config.proxyUrl}):r():r;return c.set(e,o),o}catch(a){return console.warn(`[Accessify] Failed to load feature module "${e}":`,a),null}var i}async function b(e){const n=await y("text-size");if(n){if(100===e)return n.deactivate(),Rt(f,100),void t.ontoggle("text-size",!1);n.getState().enabled||n.activate(),n.setState?.(e),Rt(f,e,!0),t.ontoggle("text-size",!0)}}"undefined"!=typeof window&&window.addEventListener("accessify:reset",function(){for(const[,e]of c)try{e.deactivate()}catch{}Rt(u,"off"),Rt(f,100)});let x=zt(()=>v(i)),w=zt(()=>v(a)),k=zt(()=>v(r));mn(()=>{t.config.features.join("|"),ii(h),async function(){const e=new Set(["contrast","text-size",...t.config.features]);for(const n of e){const e=t.activeFeatures.get(n)??!1,i=c.get(n);if(!e&&!i){"contrast"===n&&Rt(u,"off"),"text-size"===n&&Rt(f,100);continue}const a=e?await y(n):i;if(!a)continue;const r=a.getState().enabled;e&&!r&&a.activate(),!e&&r&&a.deactivate(),m(n,a)}}()});var _=Ea(),S=dn(_),A=e=>{var n=Sa(),i=ln(n),a=ln(i);Pi(a,()=>g("contrast"),!0);var r=ln(un(a,2));zi(un(i,2),21,()=>o,Ei,(e,n)=>{var i=_a(),a=ln(i);Pi(a,()=>ii(n).icon,!0);var r=ln(un(a,2));xn(e=>{Wi(i,"data-active",ii(u)===ii(n).id),Wi(i,"aria-pressed",ii(u)===ii(n).id),_i(r,e)},[()=>ua(ii(n).labelKey,t.config.lang)]),fi("click",i,()=>async function(e){const n=await y("contrast");if(n){if("off"===e)return n.deactivate(),Rt(u,"off"),void t.ontoggle("contrast",!1);n.getState().enabled||n.activate(),n.setState?.(e),Rt(u,e,!0),t.ontoggle("contrast",!0)}}(ii(u)===ii(n).id?"off":ii(n).id)),ki(e,i)}),xn((e,t)=>{Wi(n,"aria-label",e),_i(r,t)},[()=>ua("feature.contrast",t.config.lang),()=>ua("feature.contrast",t.config.lang)]),ki(e,n)},M=zt(()=>ii(p).has("contrast"));Ci(S,e=>{ii(M)&&e(A)});var C=un(S,2),E=e=>{var n=Aa(),i=ln(n),a=ln(i);Pi(a,()=>g("text-size"),!0);var r=ln(un(a,2)),o=ln(un(i,2)),s=un(o,2),c=ln(s),l=un(s,2);xn((e,t)=>{Wi(n,"aria-label",e),_i(r,t),o.disabled=ii(f)<=100,_i(c,`${ii(f)??""}%`),l.disabled=ii(f)>=200},[()=>ua("feature.textSize",t.config.lang),()=>ua("feature.textSize",t.config.lang)]),fi("click",o,()=>b(Math.max(100,ii(f)-10))),fi("click",l,()=>b(Math.min(200,ii(f)+10))),ki(e,n)},T=zt(()=>ii(p).has("text-size"));Ci(C,e=>{ii(T)&&e(E)});var $=un(C,4),z=e=>{var n=Ca();zi(n,21,()=>[...ii(x),...ii(w),...ii(k)],e=>e.id,(e,n)=>{const i=zt(()=>t.activeFeatures.get(ii(n).id)??!1);var a=Ma(),r=ln(a),o=ln(r);Pi(o,()=>g(ii(n).iconId),!0);var s=ln(un(o,2)),c=un(r,2),l=un(ln(c),2),d=ln(l);xn((e,t,n,a)=>{Wi(r,"data-active",ii(i)),Wi(r,"aria-checked",ii(i)),Wi(r,"aria-label",e),_i(s,t),Wi(c,"aria-label",n),_i(d,a)},[()=>ua(ii(n).nameKey,t.config.lang),()=>ua(ii(n).nameKey,t.config.lang),()=>ua(ii(n).descKey,t.config.lang),()=>ua(ii(n).descKey,t.config.lang)]),fi("click",r,()=>async function(e){const n=!t.activeFeatures.get(e),i=await y(e);i&&(n?i.activate():i.deactivate(),m(e,i)),t.ontoggle(e,n)}(ii(n).id)),ki(e,a)}),ki(e,n)};Ci($,e=>{(ii(x).length>0||ii(w).length>0||ii(k).length>0)&&e(z)}),ki(e,_),qe()}(F,{get config(){return ii(e)},get activeFeatures(){return ii(a)},ontoggle:function(e,t){ii(a).set(e,t),Rt(a,new Map(ii(a)),!0),m(),v(`${ua(`feature.${e.replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}`,ii(l))||e} ${ua(t?"status.activated":"status.deactivated",ii(l))}`)}})}return function(e,t){Ue(t,!0);let n=Ri(t,"lang",3,"en");var i=$a(),a=ln(i),r=un(a,2),o=e=>{var i=Ta(),a=un(dn(i),2),r=ln(a);xn(e=>{Wi(a,"href",t.statementUrl),_i(r,e)},[()=>ua("widget.statement",n())]),ki(e,i)};Ci(r,e=>{t.statementUrl&&e(o)}),xn(()=>Wi(a,"href",t.dashboardUrl||"https://accessify-dashboard.pages.dev")),ki(e,i),qe()}(un(I,2),{get lang(){return ii(l)},get statementUrl(){return n().statementUrl},get dashboardUrl(){return n().dashboardUrl}}),Di($,e=>Rt(o,e),()=>ii(o)),xn((e,t)=>{_i(E,ii(c)),Wi($,"aria-label",e),Wi($,"aria-hidden",!ii(i)),Wi($,"dir",t),Wi(G,"aria-expanded",ii(u)),_i(H,`${(ii(g)?.flag||"")??""} ${(ii(g)?.label||ii(l))??""}`),N=Bi(B,0,"accessify-lang-chevron",0,N,{"accessify-lang-chevron--open":ii(u)}),$.dir=$.dir},[()=>ua("widget.title",ii(l)),()=>da(ii(l))?"rtl":"ltr"]),fi("click",G,()=>{Rt(u,!ii(u))}),ki(e,M),qe(A)}pi(["click"]);const Oa=encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg>');function Wa(e){const t=e.position||"bottom-right",n=t.includes("right"),i=t.includes("bottom"),a=e.zIndex||999999,r=n?"20px 0 0 20px":"0 20px 20px 0",o=n?"translateX(24px)":"translateX(-24px)",s=e;return`\n :host {\n all: initial;\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;\n font-size: 15px;\n line-height: 1.5;\n color-scheme: dark;\n }\n\n *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }\n\n #accessify-mount {\n --gap: 14px;\n --pad: 18px;\n --radius: 12px;\n --radius-lg: 16px;\n --pill: 999px;\n --surface: #3d4775;\n --surface-card: #4a5387;\n --surface-dim: #353e6a;\n --surface-hover: #545d8f;\n --text: #f0f0f5;\n --text-dim: #b8bdd4;\n --border: rgba(255,255,255,0.10);\n --border-hl: rgba(255,255,255,0.20);\n --accent: #e8837c;\n --accent-soft: rgba(232,131,124,0.15);\n --accent-on: #fff;\n --shadow: 0 12px 48px rgba(0,0,0,0.35);\n --fast: 140ms ease;\n ${[s.brandPrimaryColor?`--surface: ${s.brandPrimaryColor};`:"",s.brandSurfaceColor?`--surface-dim: ${s.brandSurfaceColor};`:"",s.brandCardColor?`--surface-card: ${s.brandCardColor};`:"",s.brandHoverColor?`--surface-hover: ${s.brandHoverColor};`:"",s.brandTextColor?`--text: ${s.brandTextColor};`:"",s.brandTextDimColor?`--text-dim: ${s.brandTextDimColor};`:"",s.brandAccentColor?`--accent: ${s.brandAccentColor}; --accent-soft: ${s.brandAccentColor}26;`:"",s.brandBorderColor?`--border: ${s.brandBorderColor}; --border-hl: ${s.brandBorderColor};`:""].filter(Boolean).join("\n ")}\n }\n\n .sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }\n *:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }\n\n /* ─── Trigger ─── */\n .accessify-trigger {\n position: fixed;\n ${i?"bottom: 20px":"top: 20px"};\n ${n?"right: 20px":"left: 20px"};\n z-index: ${a};\n width: 56px; height: 56px;\n border: none; border-radius: 16px;\n background: ${s.brandTriggerColor||"linear-gradient(135deg, #545d8f, #3d4775)"};\n color: ${s.brandTriggerIconColor||"#e8837c"};\n cursor: pointer;\n display: flex; align-items: center; justify-content: center;\n box-shadow: 0 6px 20px rgba(50,60,100,0.5);\n transition: transform var(--fast), box-shadow var(--fast), opacity var(--fast);\n touch-action: none;\n }\n .accessify-trigger:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(50,60,100,0.6); }\n .accessify-trigger:active { transform: scale(0.96); }\n .accessify-trigger[aria-expanded="true"] { opacity:0; pointer-events:none; transform:scale(0.9); }\n .accessify-trigger svg { width: 26px; height: 26px; }\n .accessify-trigger--dragging { cursor: grabbing !important; opacity: 0.85; }\n\n /* ─── Panel ─── */\n .accessify-panel {\n position: fixed; top: 0; bottom: 0;\n ${n?"right: 0":"left: 0"};\n z-index: ${a-1};\n width: min(${s.panelWidth?`${s.panelWidth}px`:"420px"}, 100vw); height: 100vh;\n display: flex; flex-direction: column;\n border-radius: ${r};\n background: var(--surface);\n color: var(--text);\n box-shadow: var(--shadow);\n transition: opacity 200ms ease, transform 200ms ease;\n }\n .accessify-panel[aria-hidden="true"] { opacity:0; transform:${o}; pointer-events:none; display:none; }\n .accessify-panel[aria-hidden="false"] { opacity:1; transform:translateX(0); }\n\n /* ─── Header ─── */\n .accessify-header {\n display: flex; align-items: center; justify-content: space-between;\n padding: 14px var(--pad);\n border-bottom: 1px solid var(--border);\n background: var(--surface-dim);\n flex-shrink: 0;\n }\n .accessify-header-left { display: flex; align-items: center; gap: 10px; }\n .accessify-header-actions { display: flex; align-items: center; gap: 6px; }\n\n .accessify-logo { display: inline-flex; color: var(--accent); }\n .accessify-logo svg { height: 24px; width: auto; }\n\n .accessify-header-btn {\n display: inline-flex; align-items: center; justify-content: center;\n width: 34px; height: 34px;\n border: 1px solid var(--border); border-radius: 10px;\n background: var(--surface); color: var(--text-dim);\n cursor: pointer; transition: background var(--fast), color var(--fast);\n }\n .accessify-header-btn:hover { background: var(--surface-hover); color: var(--text); }\n .accessify-header-btn svg { width: 16px; height: 16px; }\n .accessify-header-btn--icon { padding: 0; }\n .accessify-header-btn--close { background: transparent; border-color: transparent; }\n\n /* ─── Shared Accordion (Language + Profiles) ─── */\n .accessify-lang-dropdown,\n .accessify-accordion {\n border-radius: var(--radius);\n border: 1px solid var(--border);\n overflow: clip;\n }\n\n .accessify-lang-toggle,\n .accessify-accordion-toggle {\n display: flex; align-items: center; justify-content: space-between;\n width: 100%; padding: 14px 14px;\n border: none; background: var(--surface-card);\n color: var(--text); cursor: pointer; font-family: inherit;\n font-size: 15px; font-weight: 700;\n transition: background var(--fast);\n }\n .accessify-lang-toggle:hover,\n .accessify-accordion-toggle:hover { background: var(--surface-hover); }\n\n .accessify-lang-toggle-left,\n .accessify-accordion-toggle-left {\n display: flex; align-items: center; gap: 10px;\n }\n .accessify-lang-toggle-left svg,\n .accessify-accordion-toggle-left svg { width: 20px; height: 20px; color: var(--accent); }\n\n .accessify-lang-chevron,\n .accessify-accordion-chevron {\n width: 18px; height: 18px; color: var(--text-dim);\n transition: transform 200ms ease; flex-shrink: 0;\n }\n .accessify-lang-chevron--open,\n .accessify-accordion-chevron--open { transform: rotate(180deg); }\n\n /* Shared list inside accordion */\n .accessify-lang-list,\n .accessify-accordion-list {\n display: flex; flex-direction: column;\n max-height: 280px; overflow-y: auto;\n background: var(--surface-dim);\n border-top: 1px solid var(--border);\n }\n .accessify-lang-list::-webkit-scrollbar,\n .accessify-accordion-list::-webkit-scrollbar { width: 4px; }\n .accessify-lang-list::-webkit-scrollbar-thumb,\n .accessify-accordion-list::-webkit-scrollbar-thumb { background: var(--border-hl); border-radius: 2px; }\n\n /* Language options */\n .accessify-lang-option {\n display: flex; align-items: center; justify-content: space-between;\n padding: 12px var(--pad);\n border: none; background: transparent;\n color: var(--text); cursor: pointer;\n font-size: 14px; font-weight: 500; font-family: inherit;\n transition: background var(--fast);\n }\n .accessify-lang-option:hover { background: var(--surface-hover); }\n .accessify-lang-option[data-active="true"] { color: var(--accent); font-weight: 700; }\n .accessify-lang-option svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }\n\n /* Profile options (with icon + description) */\n .accessify-accordion-option {\n display: flex; align-items: center; justify-content: space-between;\n padding: 14px var(--pad);\n border: none; background: transparent;\n color: var(--text); cursor: pointer;\n font-family: inherit; text-align: left;\n transition: background var(--fast);\n }\n .accessify-accordion-option:hover { background: var(--surface-hover); }\n .accessify-accordion-option[data-active="true"] { background: var(--accent-soft); }\n\n .accessify-accordion-option-left {\n display: flex; align-items: center; gap: 12px; min-width: 0;\n }\n .accessify-accordion-option-icon {\n display: inline-flex; align-items: center; justify-content: center;\n width: 40px; height: 40px; border-radius: 12px;\n background: var(--surface-card); color: var(--accent); flex-shrink: 0;\n }\n .accessify-accordion-option-icon svg { width: 24px; height: 24px; stroke-width: 2.5; }\n .accessify-accordion-option-text {\n display: flex; flex-direction: column; gap: 2px; min-width: 0;\n }\n .accessify-accordion-option-name {\n font-size: 14px; font-weight: 700; line-height: 1.3;\n }\n .accessify-accordion-option-desc {\n font-size: 12px; font-weight: 400; color: var(--text-dim); line-height: 1.3;\n }\n .accessify-accordion-option > svg {\n width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-left: 8px;\n }\n\n /* ─── Scrollable Body ─── */\n .accessify-body {\n flex: 1 1 auto;\n display: flex; flex-direction: column; gap: var(--gap);\n padding: var(--gap) var(--pad);\n overflow-y: auto; overscroll-behavior: contain;\n }\n\n /* ─── Contrast Row ─── */\n .accessify-control-row {\n display: flex; flex-direction: column; gap: 10px;\n padding: 14px 16px;\n border-radius: var(--radius); border: 1px solid var(--border);\n background: var(--surface-card);\n }\n .accessify-control-label {\n display: flex; align-items: center; gap: 8px;\n }\n .accessify-control-label-icon {\n display: inline-flex; align-items: center; justify-content: center;\n width: 34px; height: 34px; border-radius: 10px;\n background: var(--surface-dim); color: var(--accent); flex-shrink: 0;\n }\n .accessify-control-label-icon svg { width: 18px; height: 18px; }\n .accessify-control-label-text { font-size: 14px; font-weight: 600; }\n\n /* Contrast chips */\n .accessify-chip-row {\n display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;\n }\n .accessify-chip {\n min-height: 48px; padding: 6px 8px;\n border-radius: 10px; border: 1px solid var(--border);\n background: var(--surface-dim); color: var(--text);\n cursor: pointer; font-size: 11px; font-weight: 600; font-family: inherit;\n display: inline-flex; align-items: center; justify-content: center;\n text-align: center; line-height: 1.25;\n transition: background var(--fast), color var(--fast), border-color var(--fast);\n }\n .accessify-chip:hover { border-color: var(--border-hl); background: var(--surface-hover); }\n .accessify-chip[data-active="true"] { background: var(--accent); color: var(--accent-on); border-color: var(--accent); }\n .accessify-chip--icon { gap: 6px; }\n .accessify-chip-icon { display: inline-flex; width: 14px; height: 14px; flex-shrink: 0; }\n .accessify-chip-icon svg { width: 14px; height: 14px; }\n\n /* Text Size stepper */\n .accessify-control-row:has(.accessify-stepper) {\n flex-direction: row; align-items: center; justify-content: space-between; gap: var(--gap);\n }\n .accessify-stepper {\n display: inline-flex; align-items: center;\n border-radius: 10px; border: 1px solid var(--border);\n background: var(--surface-dim); height: 36px; overflow: hidden;\n }\n .accessify-stepper-btn {\n display: inline-flex; align-items: center; justify-content: center;\n width: 36px; height: 100%; border: none; background: transparent;\n color: var(--text); cursor: pointer; font-size: 18px; font-weight: 700;\n transition: background var(--fast); font-family: inherit;\n }\n .accessify-stepper-btn:hover:not(:disabled) { background: var(--surface-hover); }\n .accessify-stepper-btn:disabled { opacity: 0.3; cursor: default; }\n .accessify-stepper-value {\n min-width: 48px; text-align: center;\n font-size: 13px; font-weight: 600; color: var(--text); user-select: none;\n }\n\n /* ─── Feature Cards (2-column grid) ─── */\n .accessify-features {\n display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap);\n }\n .accessify-card-wrap {\n position: relative;\n overflow: visible;\n }\n .accessify-card {\n position: relative; width: 100%;\n display: flex; flex-direction: column; align-items: center; justify-content: center;\n gap: 8px; padding: 18px 10px; min-height: 105px;\n border-radius: var(--radius-lg); border: 1px solid var(--border);\n background: var(--surface-card); color: var(--text);\n cursor: pointer; text-align: center; font-family: inherit;\n transition: transform var(--fast), border-color var(--fast), background var(--fast), box-shadow var(--fast);\n }\n .accessify-card:hover { transform: translateY(-2px); border-color: var(--border-hl); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }\n .accessify-card[data-active="true"] { border-color: var(--accent); background: var(--accent-soft); }\n .accessify-card[data-active="true"]::after {\n content: ''; position: absolute; top: 8px; ${n?"right: 8px":"left: 8px"};\n width: 18px; height: 18px; border-radius: 999px; background: var(--accent);\n mask-image: url("data:image/svg+xml,${Oa}");\n mask-size: 10px; mask-repeat: no-repeat; mask-position: center;\n -webkit-mask-image: url("data:image/svg+xml,${Oa}");\n -webkit-mask-size: 10px; -webkit-mask-repeat: no-repeat; -webkit-mask-position: center;\n }\n .accessify-card-icon {\n display: inline-flex; align-items: center; justify-content: center;\n width: 48px; height: 48px; border-radius: 14px;\n background: var(--surface-dim); color: var(--accent);\n }\n .accessify-card-icon svg { width: 28px; height: 28px; stroke-width: 2.5; }\n .accessify-card-label { font-size: 12px; font-weight: 600; line-height: 1.25; }\n\n /* Info icon + tooltip */\n .accessify-card-info {\n position: absolute; top: 6px; ${n?"right: 6px":"left: 6px"}; z-index: 10;\n display: inline-flex; align-items: center; justify-content: center;\n width: 22px; height: 22px; border-radius: 999px;\n color: var(--text-dim); cursor: help; background: none; border: none;\n opacity: 0.35; transition: opacity var(--fast), color var(--fast);\n }\n .accessify-card-info svg { width: 14px; height: 14px; }\n .accessify-card-info:hover, .accessify-card-info:focus-visible { opacity: 1; color: var(--accent); }\n .accessify-card-tooltip {\n display: none; position: absolute;\n top: calc(100% + 6px); ${n?"right: 0":"left: 0"};\n width: 180px; padding: 10px 12px;\n border-radius: 10px; background: #2a3158; color: var(--text);\n font-size: 12px; font-weight: 500; line-height: 1.4;\n text-align: left; white-space: normal;\n box-shadow: 0 6px 24px rgba(0,0,0,0.5);\n pointer-events: none; z-index: 100;\n }\n .accessify-card-info:hover .accessify-card-tooltip,\n .accessify-card-info:focus-visible .accessify-card-tooltip {\n display: block;\n }\n .accessify-card-tooltip::before {\n content: ''; position: absolute; bottom: 100%; ${n?"right: 4px":"left: 4px"};\n border: 5px solid transparent; border-bottom-color: #2a3158;\n }\n\n /* ─── Section Divider ─── */\n .accessify-section-divider {\n height: 1px;\n background: var(--border);\n margin: 4px 0;\n flex-shrink: 0;\n }\n\n /* ─── Footer ─── */\n .accessify-footer {\n display: flex; align-items: center; justify-content: center; gap: 8px;\n padding: 8px var(--pad);\n border-top: 1px solid var(--border);\n color: var(--text-dim); font-size: 11px;\n background: var(--surface-dim); flex-shrink: 0;\n }\n .accessify-footer a { color: var(--accent); text-decoration: none; font-weight: 600; }\n .accessify-footer a:hover { text-decoration: underline; }\n\n /* ─── Reduced Motion ─── */\n @media (prefers-reduced-motion: reduce) {\n *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }\n }\n\n /* ─── Mobile ─── */\n @media (max-width: 640px) {\n .accessify-panel { width: 100vw; border-radius: 0; }\n .accessify-features { gap: 8px; }\n .accessify-body { padding: 8px 12px; }\n .accessify-trigger {\n ${i?"bottom: 16px":"top: 16px"};\n ${n?"right: 16px":"left: 16px"};\n width: 50px; height: 50px; border-radius: 14px;\n }\n }\n `}const Ka="alt-texts",Fa="alt-text-reports";function Da(e){let t=5381;const n=e.toLowerCase().trim();for(let i=0;i<n.length;i++)t=(t<<5)+t+n.charCodeAt(i),t|=0;return Math.abs(t).toString(36)}function Ra(){return new Promise(e=>{try{const t=indexedDB.open("accessify-alt-text-cache",2);t.onupgradeneeded=()=>{const e=t.result;e.objectStoreNames.contains(Ka)||e.createObjectStore(Ka,{keyPath:"key"}),e.objectStoreNames.contains(Fa)||e.createObjectStore(Fa,{keyPath:"key"})},t.onsuccess=()=>e(t.result),t.onerror=()=>e(null)}catch{e(null)}})}async function Ua(e){const t=await Ra();return t?new Promise(n=>{try{const i=t.transaction(Ka,"readonly").objectStore(Ka).get(Da(e));i.onsuccess=()=>n(i.result?.altText||null),i.onerror=()=>n(null)}catch{n(null)}}):null}async function qa(e,t,n){const i=await Ra();if(i)return new Promise(a=>{try{const r=i.transaction(Ka,"readwrite");r.objectStore(Ka).put({key:Da(e),src:e,altText:t,lang:n,createdAt:Date.now()}),r.oncomplete=()=>a(),r.onerror=()=>a()}catch{a()}})}const Va="https://accessify-api.accessify.workers.dev";function Ja(e,t,n,i,a){try{const r=window.location.origin+window.location.pathname;fetch(`${t||Va}/v1/cache/persist-alt-text`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({siteKey:e,pageUrl:r,imageUrl:n,altText:i,lang:a})}).catch(()=>{})}catch{}}let Ya=!1;async function Xa(){if(Ya)return 0;Ya=!0;const e=new Map,t=window.Accessify?.config,n=t?.siteKey,i=t?.proxyUrl||"",a=document.documentElement.lang?.split("-")[0]||"en";if(n){const t=await async function(e,t,n){const i=new Map;try{const a=t||Va,r=window.location.origin+window.location.pathname,o=await fetch(`${a}/v1/manifest?siteKey=${encodeURIComponent(e)}&url=${encodeURIComponent(r)}&feature=alt_text&variant=${encodeURIComponent(n)}`,{headers:{Accept:"application/json"}});if(!o.ok)return i;const s=await o.json();if(s.blocks)for(const e of s.blocks)e.selector&&e.result&&i.set(e.selector,e.result)}catch{}return i}(n,i,a);for(const[n,i]of t)e.set(n,i),qa(n,i,a).catch(()=>{})}const r=await async function(){const e=await Ra(),t=new Map;return e?new Promise(n=>{try{const i=e.transaction(Ka,"readonly").objectStore(Ka).getAll();i.onsuccess=()=>{const e=i.result;for(const n of e)t.set(n.src,n.altText);n(t)},i.onerror=()=>n(t)}catch{n(t)}}):t}();for(const[c,l]of r)e.has(c)||e.set(c,l);if(0===e.size)return 0;let o=0;document.querySelectorAll("img").forEach(t=>{if(t.closest("#accessify-root"))return;const n=t.getAttribute("alt");if(null!==n&&""!==n.trim())return;const i=e.get(t.src);i&&(t.setAttribute("alt",i),t.setAttribute("title",i),o++)});const s=new MutationObserver(t=>{for(const n of t)for(const t of n.addedNodes){const n=t instanceof HTMLImageElement?[t]:t instanceof HTMLElement?Array.from(t.querySelectorAll("img")):[];for(const t of n){if(t.closest("#accessify-root"))continue;const n=t.getAttribute("alt");if(null!==n&&""!==n.trim())continue;const i=e.get(t.src);i&&(t.setAttribute("alt",i),t.setAttribute("title",i))}}});return s.observe(document.body,{childList:!0,subtree:!0}),setTimeout(()=>s.disconnect(),3e4),o}const Za=Object.freeze(Object.defineProperty({__proto__:null,autoApplyCachedAltTexts:Xa,default:function(e,t="de",n){const i=n?.siteKey||"",a=n?.proxyUrl||"";let r=!1,o=null,s=null,c=[];const l=new Map;let d=!1,u=null;const f=new Map;let p=null;function h(){return la()||t}function g(){return h().startsWith("de")}const v="accessify-alt-text-styles",m="accessify-alt-missing",y="accessify-alt-badge";function b(){u?.remove(),u=null}function x(e){!function(e){const t=e.getAttribute("alt")||l.get(e)?.generatedAlt;if(!t)return;b();const n=document.createElement("div");n.className="accessify-alt-tooltip",n.textContent=t,document.body.appendChild(n),u=n;const i=e.getBoundingClientRect(),a=n.getBoundingClientRect();let r=i.top-a.height-8;r<4&&(r=i.bottom+8);let o=i.left+(i.width-a.width)/2;o=Math.max(4,Math.min(o,window.innerWidth-a.width-4)),n.style.top=`${r}px`,n.style.left=`${o}px`}(e.currentTarget)}function w(){b()}function k(){p?.remove(),p=null}function _(e,t){e.setAttribute("alt",t),e.setAttribute("title",t),l.set(e,{generatedAlt:t}),r&&(e.classList.add("accessify-alt-done"),e.classList.remove("accessify-alt-generating"),function(e){if(f.has(e))return;const t=e.parentElement;t&&"static"===getComputedStyle(t).position&&(t.style.position="relative");const n=document.createElement("button");n.className="accessify-alt-info-btn",n.textContent="i",n.setAttribute("aria-label",g()?"Alt-Text melden":"Report alt text"),n.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation(),function(e,t){k();const n=e.getAttribute("alt")||"",i=document.createElement("div");i.className="accessify-alt-report-panel";const a=t.getBoundingClientRect();i.style.top=`${a.bottom+6}px`,i.style.left=`${Math.min(a.left,window.innerWidth-260)}px`;const r=document.createElement("p");r.textContent=g()?"Alt-Text falsch? Melden Sie den Fehler.":"Alt text wrong? Report the error.",i.appendChild(r);const o=document.createElement("button");o.className="accessify-alt-report-btn",o.textContent=g()?"⚠ Fehler melden":"⚠ Report error",o.addEventListener("click",async()=>{await async function(e,t,n){const i=await Ra();if(i)return new Promise(a=>{try{const r=i.transaction(Fa,"readwrite");r.objectStore(Fa).put({key:Da(e)+"_"+Date.now(),src:e,pageUrl:window.location.href,altText:t,lang:n,reportedAt:Date.now()}),r.oncomplete=()=>a(),r.onerror=()=>a()}catch{a()}})}(e.src,n,h()),await async function(e){const t=await Ra();if(t)return new Promise(n=>{try{const i=t.transaction(Ka,"readwrite");i.objectStore(Ka).delete(Da(e)),i.oncomplete=()=>n(),i.onerror=()=>n()}catch{n()}})}(e.src),o.textContent=g()?"✓ Gemeldet":"✓ Reported",o.classList.add("reported")}),i.appendChild(o),document.body.appendChild(i),p=i,setTimeout(()=>{const e=n=>{i.contains(n.target)||n.target===t||(k(),document.removeEventListener("click",e))};document.addEventListener("click",e)},50);const s=e=>{"Escape"===e.key&&(k(),document.removeEventListener("keydown",s))};document.addEventListener("keydown",s)}(e,n)}),e.insertAdjacentElement("afterend",n),f.set(e,n)}(e)),e.removeEventListener("mouseenter",x),e.removeEventListener("mouseleave",w),e.addEventListener("mouseenter",x),e.addEventListener("mouseleave",w)}function S(){M();const e=c.filter(e=>!l.has(e)).length,t=c.filter(e=>e.classList.contains("accessify-alt-generating")).length;if(0===e&&c.length>0)return A(g()?`✓ ${c.length} Alt-Texte gesetzt`:`✓ ${c.length} alt texts applied`,"#2a9d8f",0),void setTimeout(()=>M(),5e3);0!==e&&(t>0?A(g()?`${t} Bilder werden analysiert…`:`Analyzing ${t} images…`,"#f77f00",t):A(g()?`${e} Bilder ohne Alt-Text`:`${e} images missing alt text`,"#e63946",e))}function A(e,t,n){const i=document.createElement("div");if(i.className=y,i.setAttribute("role","status"),i.setAttribute("aria-live","polite"),n>0){const e=document.createElement("span");e.className=`${y}-count`,e.style.background=t,e.textContent=String(n),i.appendChild(e)}const a=document.createElement("span");a.textContent=e,i.appendChild(a),document.body.appendChild(i),s=i}function M(){s?.remove(),s=null}function C(e){const t=[];try{const n=new URL(e.src,window.location.href).pathname.split("/").pop();n&&t.push(`Filename: ${n}`)}catch{}const n=e.closest("figure");if(n){const e=n.querySelector("figcaption");e?.textContent?.trim()&&t.push(`Caption: ${e.textContent.trim()}`)}const i=e.parentElement;if(i){const e=i.querySelector("h1, h2, h3, h4, h5, h6");e?.textContent?.trim()&&t.push(`Nearby heading: ${e.textContent.trim()}`)}const a=e.getAttribute("aria-describedby");if(a){const e=document.getElementById(a);e?.textContent?.trim()&&t.push(`Description: ${e.textContent.trim()}`)}return t.join(". ")}let E=null;function T(t){if(!r)return;if(t.closest("#accessify-root"))return;if(c.includes(t))return;const n=t.getAttribute("alt");function o(){r&&!c.includes(t)&&t.naturalWidth>=20&&t.naturalHeight>=20&&(t.classList.add(m),c.push(t),S(),async function(t){if(!e||!r)return;const n=await Ua(t.src);if(n)return _(t,n),void S();t.classList.add("accessify-alt-generating");try{const n=C(t),o=await e.generateAltText(t.src,n,h());o&&r&&(_(t,o),qa(t.src,o,h()).catch(()=>{}),i&&Ja(i,a,t.src,o,h()),S())}catch(o){console.warn("[Accessify] Alt-text generation failed:",t.src,o),t.classList.remove("accessify-alt-generating")}}(t))}null!==n&&""!==n.trim()||(t.complete&&t.naturalWidth>0?o():t.addEventListener("load",o,{once:!0}))}return Xa().catch(()=>{}),{id:"alt-text",name:()=>g()?"Alt-Text erzeugen":"Alt-Text Generator",description:g()?"Bildbeschreibungen automatisch erstellen":"Auto-generate image descriptions",icon:"alt-text",category:"ai",activate:function(){r||(r=!0,document.getElementById(v)||(o=document.createElement("style"),o.id=v,o.textContent=`\n .${m} {\n outline: 3px dashed #e63946 !important;\n outline-offset: 3px !important;\n position: relative !important;\n transition: outline-color 0.2s ease !important;\n }\n .${m}.accessify-alt-generating::after {\n content: '\\2026';\n position: absolute;\n top: 4px;\n left: 4px;\n padding: 2px 6px;\n background: #f77f00;\n color: #fff;\n font-family: system-ui, -apple-system, sans-serif;\n font-size: 10px;\n font-weight: 700;\n border-radius: 3px;\n line-height: 1.4;\n pointer-events: none;\n z-index: 1;\n }\n .${m}.accessify-alt-done {\n outline-color: #2a9d8f !important;\n outline-style: solid !important;\n }\n .${m}.accessify-alt-done::after {\n content: none;\n }\n\n .accessify-alt-tooltip {\n position: fixed;\n z-index: 2147483647;\n max-width: 320px;\n padding: 8px 12px;\n background: #1a1a2e;\n color: #e0e0e0;\n border-radius: 8px;\n box-shadow: 0 4px 20px rgba(0,0,0,0.4);\n font-family: system-ui, -apple-system, sans-serif;\n font-size: 13px;\n line-height: 1.5;\n pointer-events: none;\n word-break: break-word;\n opacity: 1;\n }\n\n .accessify-alt-info-btn {\n position: absolute;\n top: 6px;\n right: 6px;\n z-index: 10;\n width: 22px;\n height: 22px;\n padding: 0;\n border: none;\n border-radius: 50%;\n background: rgba(0,0,0,0.6);\n color: #ccc;\n font-family: system-ui, -apple-system, sans-serif;\n font-size: 13px;\n font-weight: 600;\n line-height: 22px;\n text-align: center;\n cursor: pointer;\n opacity: 0;\n transition: opacity 0.15s ease;\n backdrop-filter: blur(4px);\n }\n .${m}.accessify-alt-done:hover + .accessify-alt-info-btn,\n .accessify-alt-info-btn:hover {\n opacity: 1;\n }\n .accessify-alt-info-btn:hover {\n background: rgba(0,0,0,0.8);\n color: #fff;\n }\n\n .accessify-alt-report-panel {\n position: fixed;\n z-index: 2147483646;\n width: 240px;\n padding: 12px;\n background: #1a1a2e;\n color: #f0f0f0;\n border-radius: 10px;\n box-shadow: 0 8px 32px rgba(0,0,0,0.4);\n font-family: system-ui, -apple-system, sans-serif;\n font-size: 12px;\n line-height: 1.5;\n }\n .accessify-alt-report-panel p {\n margin: 0 0 8px 0;\n color: #aaa;\n }\n .accessify-alt-report-btn {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n padding: 5px 10px;\n border: 1px solid rgba(220,53,69,0.3);\n border-radius: 6px;\n background: rgba(220,53,69,0.08);\n color: #f0a0a8;\n font-size: 11px;\n cursor: pointer;\n transition: background 0.15s ease;\n }\n .accessify-alt-report-btn:hover { background: rgba(220,53,69,0.2); }\n .accessify-alt-report-btn.reported {\n border-color: rgba(42,157,143,0.3);\n background: rgba(42,157,143,0.1);\n color: #2a9d8f;\n cursor: default;\n }\n\n .${y} {\n position: fixed;\n top: 12px;\n right: 12px;\n z-index: 2147483646;\n display: flex;\n align-items: center;\n gap: 6px;\n padding: 8px 14px;\n background: #1a1a2e;\n color: #f0f0f0;\n border-radius: 8px;\n box-shadow: 0 4px 16px rgba(0,0,0,0.3);\n font-family: system-ui, -apple-system, sans-serif;\n font-size: 13px;\n user-select: none;\n }\n .${y}-count {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: 22px;\n height: 22px;\n padding: 0 6px;\n background: #e63946;\n color: #fff;\n font-size: 12px;\n font-weight: 700;\n border-radius: 11px;\n }\n `,document.head.appendChild(o)),c=function(){const e=document.querySelectorAll("img"),t=[];return e.forEach(e=>{if(e.closest("#accessify-root"))return;if(e.complete&&e.naturalWidth>0&&(e.naturalWidth<20||e.naturalHeight<20))return;const n=e.getAttribute("alt");null!==n&&""!==n.trim()||t.push(e)}),t}(),c.forEach(e=>e.classList.add(m)),S(),async function(){if(d||!r||!e)return;d=!0;const t=[];for(const e of c){if(l.has(e))continue;const n=await Ua(e.src);n?_(e,n):t.push(e)}if(S(),t.length){t.forEach(e=>e.classList.add("accessify-alt-generating"));for(let n=0;n<t.length&&r;n+=3){const o=t.slice(n,n+3);await Promise.all(o.map(async t=>{if(r)try{const n=C(t),o=await e.generateAltText(t.src,n,h());o&&r&&(_(t,o),qa(t.src,o,h()).catch(()=>{}),i&&Ja(i,a,t.src,o,h()))}catch(n){console.warn("[Accessify] Alt-text generation failed:",t.src,n),t.classList.remove("accessify-alt-generating")}})),S()}d=!1}else d=!1}(),document.querySelectorAll("img").forEach(e=>{e.complete||T(e)}),setTimeout(()=>{r&&document.querySelectorAll("img").forEach(T)},2e3),E=new MutationObserver(e=>{for(const t of e)for(const e of t.addedNodes)e instanceof HTMLImageElement?T(e):e instanceof HTMLElement&&e.querySelectorAll("img").forEach(T)}),E.observe(document.body,{childList:!0,subtree:!0}))},deactivate:function(){r=!1,d=!1,E?.disconnect(),E=null,b(),k(),f.forEach(e=>e.remove()),f.clear(),M(),c.forEach(e=>{e.classList.remove(m,"accessify-alt-done","accessify-alt-generating")}),c=[],o?.remove(),o=null,document.getElementById(v)?.remove()},getState:()=>({id:"alt-text",enabled:r,value:{missingCount:c.length,processedCount:l.size}})}}},Symbol.toStringTag,{value:"Module"})),Qa=new Set(["spacing","dyslexia-font","color-blind","color-blindness","saturation","text-align","line-height","page-structure","focus-highlight","auto-scan"]),er={position:"bottom-right",theme:"auto",lang:document.documentElement.lang||"en",features:["contrast","text-size","link-highlight","hide-images","reading-guide","reading-mask","big-cursor","keyboard-nav","animation-stop","tts","text-simplify","alt-text"],zIndex:999999,compact:!1};let tr=null,nr=null,ir={...er};async function ar(e={}){if(tr)return;const t=window.__accessify_dataConfig||{};ir={...er,...t,...e};const n=ir.siteKey||ir.siteKey,i=ir.proxyUrl||ir.proxyUrl;if(n){const a=await async function(e,t){try{const n=t||"https://accessify-api.accessify.workers.dev",i=await fetch(`${n}/v1/config/${e}`,{headers:{Accept:"application/json"}});if(!i.ok)return{};const a=await i.json(),r=a?.config||{},o={};r.features?.length&&(o.features=r.features),r.defaultLang&&(o.lang=r.defaultLang),r.position&&(o.position=r.position),r.theme&&(o.theme=r.theme),null!=r.compact&&(o.compact=r.compact);const s=["brandPrimaryColor","brandSurfaceColor","brandTextColor","brandBorderColor","brandCardColor","brandAccentColor","brandTextDimColor","brandTriggerColor","brandTriggerIconColor","brandHoverColor"];for(const e of s)r[e]&&(o[e]=r[e]);return r.panelWidth&&(o.panelWidth=r.panelWidth),o}catch{return{}}}(n,i||"");ir={...er,...a,...t,...e}}ir.features=(ir.features||er.features).filter(e=>!Qa.has(e)),nr=document.createElement("div"),nr.id="accessify-root",nr.setAttribute("role","complementary"),nr.setAttribute("aria-label",ua("widget.title",ir.lang));const a=nr.attachShadow({mode:"open",delegatesFocus:!0}),r=new CSSStyleSheet;r.replaceSync(Wa(ir)),a.adoptedStyleSheets=[r];const o=document.createElement("div");function s(e){return Object.getOwnPropertySymbols(e).find(e=>"Symbol(events)"===e.toString())}o.id="accessify-mount",a.appendChild(o),tr=function(e,{target:t,anchor:n,props:i={},events:a,context:r,intro:o=!0,transformError:s}){!function(){if(void 0===tn){tn=window,nn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;an=Z(t,"firstChild").get,rn=Z(t,"nextSibling").get,ie(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),ie(n)&&(n.__t=void 0),U&&(e.__svelte_meta=null,function(){const e=Array.prototype,t=Array.__svelte_cleanup;t&&t();const{indexOf:n,lastIndexOf:i,includes:a}=e;e.indexOf=function(e,t){const i=n.call(this,e,t);if(-1===i)for(let n=t??0;n<this.length;n+=1)if(Qt(this[n])===e){Ge("array.indexOf(...)");break}return i},e.lastIndexOf=function(e,t){const n=i.call(this,e,t??this.length-1);if(-1===n)for(let i=0;i<=(t??this.length-1);i+=1)if(Qt(this[i])===e){Ge("array.lastIndexOf(...)");break}return n},e.includes=function(e,t){const n=a.call(this,e,t);if(!n)for(let i=0;i<this.length;i+=1)if(Qt(this[i])===e){Ge("array.includes(...)");break}return n},Array.__svelte_cleanup=()=>{e.indexOf=n,e.lastIndexOf=i,e.includes=a}}())}}();var c=void 0,l=function(){mt.ensure();const o=hn(524352,()=>{var o=n??t.appendChild(on());new At(o,{pending:()=>{}},t=>{Ue({}),r&&(Oe.c=r),a&&(i.$$events=a),c=e(t,i)||{},qe()},s);var l=new Set,d=e=>{for(var n=0;n<e.length;n++){var i=e[n];if(!l.has(i)){l.add(i);var a=ci(i);for(const e of[t,document]){var r=Si.get(e);void 0===r&&Si.set(e,r=new Map);var o=r.get(i);void 0===o?(e.addEventListener(i,gi,{passive:a}),r.set(i,1)):r.set(i,o+1)}}}};return d(Y(di)),ui.add(d),()=>{for(var e of l)for(const n of[t,document]){var i=Si.get(n),a=i.get(e);0==--a?(n.removeEventListener(e,gi),i.delete(e),0===i.size&&Si.delete(n)):i.set(e,a)}ui.delete(d),o!==n&&o.parentNode?.removeChild(o)}});return(e={})=>new Promise(t=>{e.outro?En(o,()=>{An(o),t(void 0)}):(An(o),t(void 0))})}();return Ai.set(c,l),c}(Na,{target:o,props:{config:ir,shadow:a}});const c=["click","input","change","keydown","keyup","focusin","focusout"];for(const l of c)a.addEventListener(l,e=>{let t=e.composedPath()[0],n=!1;for(;t&&t!==a;){const i=s(t);if(i){const a=t[i];a&&"function"==typeof a[l]&&(a[l].call(t,e),n=!0)}if(e.cancelBubble)break;t=t.assignedSlot||t.parentNode||t.host}n&&e.stopImmediatePropagation()},!0);window.addEventListener("accessify:reposition",e=>{const t=e.detail?.position;t&&ir&&(ir.position=t,r.replaceSync(Wa(ir)))}),window.addEventListener("message",e=>{if("accessify:preview-config"===e.data?.type&&(Object.assign(ir,e.data.config||{}),r.replaceSync(Wa(ir))),"accessify:open"===e.data?.type){const e=a.querySelector(".accessify-panel"),t=a.querySelector(".accessify-trigger");e&&e.setAttribute("aria-hidden","false"),t&&t.setAttribute("aria-expanded","true")}}),document.body.appendChild(nr),Xa().catch(()=>{}),ir.onReady?.()}function rr(){tr&&(function(e){const t=Ai.get(e);t?(Ai.delete(e),t(void 0)):(U&&(ke in e?U?console.warn("%c[svelte] state_proxy_unmount\n%cTried to unmount a state proxy, rather than a component\nhttps://svelte.dev/e/state_proxy_unmount",Ie,Le):console.warn("https://svelte.dev/e/state_proxy_unmount"):U?console.warn("%c[svelte] lifecycle_double_unmount\n%cTried to unmount a component that was not mounted\nhttps://svelte.dev/e/lifecycle_double_unmount",Ie,Le):console.warn("https://svelte.dev/e/lifecycle_double_unmount")),Promise.resolve())}(tr),tr=null),nr?.remove(),nr=null}function or(e,...t){const n={init:e=>ar(e),open:()=>tr?.open?.(),close:()=>tr?.close?.(),destroy:rr};n[e]?.(...t)}window.__accessify_exec=or;const sr=window.Accessify;sr?.q&&(sr.q.forEach(e=>or(...e)),sr.q=[]);const cr=function(e,...t){or(e,...t)};cr._loaded=!0,Object.defineProperty(cr,"config",{get:()=>ir,enumerable:!0}),window.Accessify=cr,window.A11yPlus=cr;const lr=document.currentScript;function dr(){if(!lr)return{};const e=lr.dataset,t={};return e.openrouterKey&&(t.openRouterKey=e.openrouterKey),e.siteKey&&(t.siteKey=e.siteKey),e.proxyUrl&&(t.proxyUrl=e.proxyUrl),e.lang&&(t.lang=e.lang),e.position&&(t.position=e.position),e.theme&&(t.theme=e.theme),e.features&&(t.features=e.features.split(",").map(e=>e.trim()).filter(Boolean)),e.statementUrl&&(t.statementUrl=e.statementUrl),"true"===e.compact&&(t.compact=!0),e.zIndex&&(t.zIndex=parseInt(e.zIndex,10)),t.siteKey&&!t.proxyUrl&&(t.proxyUrl="https://accessify-api.accessify.workers.dev"),t}const ur=[];function fr(e,...t){const n={init:e=>ar({...dr(),...e}),destroy:rr};n[e]?.(...t)}window.__accessify_exec=fr;const pr=function(e,...t){pr._loaded?fr(e,...t):ur.push([e,...t])};function hr(){pr._loaded=!0,ur.length>0&&(ur.forEach(e=>fr(...e)),ur.length=0);const e=dr(),t=Boolean(e.siteKey)||lr?.hasAttribute("data-accessify"),n=Boolean(document.getElementById("accessify-root"));t&&!n&&(window.__accessify_dataConfig=e,ar(e));const i=window.Accessify?.config,a=function(e,...t){fr(e,...t)};a._loaded=!0,i&&(a.config=i),window.Accessify=a,window.A11yPlus=a}pr.q=ur,pr._loaded=!1,window.Accessify=pr,window.A11yPlus=pr,"complete"===document.readyState||"interactive"===document.readyState?setTimeout(hr,1):document.addEventListener("DOMContentLoaded",hr);const gr=Object.freeze(Object.defineProperty({__proto__:null,default:function(){let e="off";const t="accessify-contrast",n="accessify-contrast-mode";function i(e){let n=document.getElementById(t);"off"!==e?(n||(n=document.createElement("style"),n.id=t,document.head.appendChild(n)),n.textContent=function(e){switch(e){case"light":return"\n html {\n color-scheme: light !important;\n }\n\n body,\n body :where(main, section, article, aside, nav, header, footer, div, p, li, dt, dd, blockquote, figcaption, table, thead, tbody, tr, th, td, ul, ol, form, fieldset, button, input, textarea, select, label, details, summary):not(#accessify-root):not(#accessify-root *) {\n background-color: #fbf7ef !important;\n color: #161616 !important;\n border-color: #6f675d !important;\n }\n\n body :where(h1, h2, h3, h4, h5, h6, strong, b):not(#accessify-root):not(#accessify-root *) {\n color: #0f1720 !important;\n }\n\n body :where(a, a:visited):not(#accessify-root):not(#accessify-root *) {\n color: #0047b3 !important;\n text-decoration-color: currentColor !important;\n }\n\n body :where(button, input, textarea, select):not(#accessify-root):not(#accessify-root *) {\n box-shadow: none !important;\n }\n ";case"dark":return"\n html {\n color-scheme: dark !important;\n }\n\n body,\n body :where(main, section, article, aside, nav, header, footer, div, p, li, dt, dd, blockquote, figcaption, table, thead, tbody, tr, th, td, ul, ol, form, fieldset, button, input, textarea, select, label, details, summary):not(#accessify-root):not(#accessify-root *) {\n background-color: #101418 !important;\n color: #f5f1e8 !important;\n border-color: #9bb4c7 !important;\n }\n\n body :where(h1, h2, h3, h4, h5, h6, strong, b):not(#accessify-root):not(#accessify-root *) {\n color: #ffffff !important;\n }\n\n body :where(a, a:visited):not(#accessify-root):not(#accessify-root *) {\n color: #8fd8ff !important;\n text-decoration-color: currentColor !important;\n }\n\n body :where(img, video, svg, canvas):not(#accessify-root):not(#accessify-root *) {\n filter: brightness(0.92) contrast(1.08) !important;\n }\n ";case"high":return"\n html {\n color-scheme: dark !important;\n }\n\n body,\n body :where(main, section, article, aside, nav, header, footer, div, p, li, dt, dd, blockquote, figcaption, table, thead, tbody, tr, th, td, ul, ol, form, fieldset, button, input, textarea, select, label, details, summary):not(#accessify-root):not(#accessify-root *) {\n background: #000000 !important;\n color: #ffffff !important;\n border-color: #ffffff !important;\n box-shadow: none !important;\n }\n\n body :where(a, a:visited):not(#accessify-root):not(#accessify-root *) {\n color: #fff35c !important;\n text-decoration: underline !important;\n text-decoration-thickness: 3px !important;\n text-underline-offset: 3px !important;\n }\n\n body :where(button, input, textarea, select):not(#accessify-root):not(#accessify-root *) {\n outline: 2px solid #fff35c !important;\n outline-offset: 2px !important;\n }\n\n body :where(img, video, svg, canvas):not(#accessify-root):not(#accessify-root *) {\n filter: contrast(1.25) brightness(0.95) !important;\n }\n ";default:return""}}(e)):n?.remove()}return{id:"contrast",name:()=>"Contrast",description:"Increase contrast for better readability",icon:"contrast",category:"visual",activate:function(){const t=localStorage.getItem(n);e="light"===t||"dark"===t||"high"===t?t:"dark",i(e)},deactivate:function(){e="off",i("off"),localStorage.removeItem(n)},getState:()=>({id:"contrast",enabled:"off"!==e,value:e}),setState:t=>{e="light"===t||"dark"===t||"high"===t?t:"off",i(t),"off"===e?localStorage.removeItem(n):localStorage.setItem(n,e)}}}},Symbol.toStringTag,{value:"Module"})),vr=Object.freeze(Object.defineProperty({__proto__:null,default:function(){let e=100,t=null,n=!1;const i="accessify-text-size-styles",a="accessify-text-size",r="data-accessify-text-size-processed",o="data-accessify-original-inline-font-size",s="data-accessify-original-computed-font-size",c=new Set(["SCRIPT","STYLE","NOSCRIPT","IFRAME","SVG","PATH","G","DEFS","MASK","BR","META","LINK","HEAD"]);function l(e){if("accessify-root"===e.id||e.closest("#accessify-root"))return!1;if(c.has(e.tagName))return!1;const t=window.getComputedStyle(e),n=parseFloat(t.fontSize);return!(!Number.isFinite(n)||n<=0)&&"none"!==t.display&&"hidden"!==t.visibility&&(new Set(["INPUT","TEXTAREA","SELECT","BUTTON","LABEL","OPTION"]).has(e.tagName)||function(e){return Array.from(e.childNodes).some(e=>e.nodeType===Node.TEXT_NODE&&Boolean(e.textContent?.trim()))}(e))}function d(e){const t=e.getAttribute(o);null!==t&&(t?e.style.fontSize=t:e.style.removeProperty("font-size"),e.removeAttribute(r),e.removeAttribute(o),e.removeAttribute(s))}function u(){if(n||100===e)return;n=!0;const t=()=>{n=!1,f(e)};"function"==typeof window.requestAnimationFrame?window.requestAnimationFrame(()=>t()):window.setTimeout(t,0)}function f(e){if(100===e)return t?.disconnect(),t=null,n=!1,document.getElementById(i)?.remove(),void document.querySelectorAll(`[${r}]`).forEach(e=>{d(e)});!function(e){let t=document.getElementById(i);t||(t=document.createElement("style"),t.id=i,document.head.appendChild(t)),t.textContent=`/* accessify text-size: ${e}% */`}(e);const a=e/100,c=new Set(document.body?[document.body,...Array.from(document.body.querySelectorAll("*"))].filter(l):[]);document.querySelectorAll(`[${r}]`).forEach(e=>{c.has(e)||d(e)}),c.forEach(e=>{!function(e,t){!function(e){if(e.hasAttribute(o)||e.setAttribute(o,e.style.fontSize||""),!e.hasAttribute(s)){const t=parseFloat(window.getComputedStyle(e).fontSize);Number.isFinite(t)&&t>0&&e.setAttribute(s,String(t))}}(e);const n=parseFloat(e.getAttribute(s)||"");if(!Number.isFinite(n)||n<=0)return;const i=Math.round(n*t*100)/100;e.style.setProperty("font-size",`${i}px`,"important"),e.setAttribute(r,"true")}(e,a)}),!t&&document.body&&(t=new MutationObserver(e=>{for(const t of e)if("childList"===t.type&&(t.addedNodes.length>0||t.removedNodes.length>0))return void u()}),t.observe(document.body,{childList:!0,subtree:!0}))}function p(e){return Math.min(200,Math.max(100,10*Math.round(e/10)))}return{id:"text-size",name:()=>"Text Size",description:"Adjust text size from 100% to 200%",icon:"text-size",category:"visual",activate:function(){const t=localStorage.getItem(a);e=t?p(parseInt(t,10)):150,f(e),localStorage.setItem(a,String(e))},deactivate:function(){e=100,f(100),localStorage.removeItem(a)},getState:()=>({id:"text-size",enabled:100!==e,value:e}),setState:t=>{e=p(t),f(e),localStorage.setItem(a,String(e))}}}},Symbol.toStringTag,{value:"Module"})),mr=Object.freeze(Object.defineProperty({__proto__:null,default:function(){let e=!1;const t="accessify-keyboard-nav",n="accessify-skip-link",i="accessify-keyboard-help",a="accessify-keyboard-nav";let r=-1,o=-1,s=[],c=[],l=!1;function d(){return la()}function u(t){if(e){if("Escape"===t.key&&l){const e=document.getElementById(i);return e?.remove(),void(l=!1)}if(t.altKey)switch(t.key.toLowerCase()){case"h":t.preventDefault(),function(){if(s=Array.from(document.querySelectorAll("h1, h2, h3, h4, h5, h6")).filter(e=>{const t=window.getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility}),0===s.length)return;r=(r+1)%s.length;const e=s[r];e.setAttribute("tabindex","-1"),e.focus(),e.scrollIntoView({behavior:"smooth",block:"center"})}();break;case"l":t.preventDefault(),function(){if(c=Array.from(document.querySelectorAll(['header, [role="banner"]','nav, [role="navigation"]','main, [role="main"]','aside, [role="complementary"]','[role="search"]','[role="form"]','footer, [role="contentinfo"]','[role="region"][aria-label]'].join(", "))).filter(e=>{const t=window.getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility}),0===c.length)return;o=(o+1)%c.length;const e=c[o];e.setAttribute("tabindex","-1"),e.focus(),e.scrollIntoView({behavior:"smooth",block:"center"})}();break;case"k":t.preventDefault(),function(){const e=document.getElementById(i);if(e)return e.remove(),void(l=!1);l=!0;const t=document.createElement("div");t.id=i,t.setAttribute("role","dialog"),t.setAttribute("aria-label",ua("keyboard.shortcuts",d())),t.setAttribute("aria-modal","true"),t.innerHTML=`\n <div style="\n position: fixed; inset: 0; background: rgba(0,0,0,0.6);\n display: flex; align-items: center; justify-content: center;\n z-index: 2147483647;\n ">\n <div style="\n background: #fff; color: #222; border-radius: 12px; padding: 32px;\n max-width: 480px; width: 90%; max-height: 80vh; overflow-y: auto;\n box-shadow: 0 8px 32px rgba(0,0,0,0.3); font-family: system-ui, sans-serif;\n " role="document">\n <h2 style="margin: 0 0 16px; font-size: 20px; color: #1a73e8;">${ua("keyboard.shortcuts",d())}</h2>\n <table style="width: 100%; border-collapse: collapse; font-size: 14px;">\n <thead>\n <tr style="border-bottom: 2px solid #e0e0e0;">\n <th style="text-align: left; padding: 8px 12px;">${ua("keyboard.shortcut",d())}</th>\n <th style="text-align: left; padding: 8px 12px;">${ua("keyboard.action",d())}</th>\n </tr>\n </thead>\n <tbody>\n <tr style="border-bottom: 1px solid #f0f0f0;">\n <td style="padding: 8px 12px;"><kbd style="background:#f5f5f5;padding:2px 8px;border-radius:4px;border:1px solid #ccc;font-family:monospace;">Alt + H</kbd></td>\n <td style="padding: 8px 12px;">${ua("keyboard.nextHeading",d())}</td>\n </tr>\n <tr style="border-bottom: 1px solid #f0f0f0;">\n <td style="padding: 8px 12px;"><kbd style="background:#f5f5f5;padding:2px 8px;border-radius:4px;border:1px solid #ccc;font-family:monospace;">Alt + L</kbd></td>\n <td style="padding: 8px 12px;">${ua("keyboard.nextLandmark",d())}</td>\n </tr>\n <tr style="border-bottom: 1px solid #f0f0f0;">\n <td style="padding: 8px 12px;"><kbd style="background:#f5f5f5;padding:2px 8px;border-radius:4px;border:1px solid #ccc;font-family:monospace;">Alt + K</kbd></td>\n <td style="padding: 8px 12px;">${ua("keyboard.toggleHelp",d())}</td>\n </tr>\n <tr style="border-bottom: 1px solid #f0f0f0;">\n <td style="padding: 8px 12px;"><kbd style="background:#f5f5f5;padding:2px 8px;border-radius:4px;border:1px solid #ccc;font-family:monospace;">Tab</kbd></td>\n <td style="padding: 8px 12px;">${ua("keyboard.nextFocusable",d())}</td>\n </tr>\n <tr>\n <td style="padding: 8px 12px;"><kbd style="background:#f5f5f5;padding:2px 8px;border-radius:4px;border:1px solid #ccc;font-family:monospace;">Escape</kbd></td>\n <td style="padding: 8px 12px;">${ua("keyboard.closeOverlay",d())}</td>\n </tr>\n </tbody>\n </table>\n <button style="\n margin-top: 20px; padding: 8px 24px; background: #1a73e8; color: #fff;\n border: none; border-radius: 6px; cursor: pointer; font-size: 14px;\n " id="accessify-keyboard-help-close">${ua("widget.close",d())}</button>\n </div>\n </div>\n `,document.body.appendChild(t);const n=document.getElementById("accessify-keyboard-help-close");n?.focus(),n?.addEventListener("click",()=>{t.remove(),l=!1})}()}}}function f(){e=!0,r=-1,o=-1,function(){let e=document.getElementById(t);e||(e=document.createElement("style"),e.id=t,document.head.appendChild(e)),e.textContent=`\n /* accessify keyboard navigation */\n #${n} {\n position: fixed;\n top: -100px;\n left: 50%;\n transform: translateX(-50%);\n background: #1a73e8;\n color: #fff;\n padding: 12px 24px;\n border-radius: 0 0 8px 8px;\n font-size: 16px;\n font-family: system-ui, sans-serif;\n text-decoration: none;\n z-index: 2147483647;\n transition: top 0.2s ease;\n box-shadow: 0 2px 8px rgba(0,0,0,0.3);\n }\n #${n}:focus {\n top: 0;\n outline: 3px solid #ffdd00;\n outline-offset: 2px;\n }\n `}(),function(){if(function(){const e=document.querySelectorAll('a[href^="#"]');for(const t of e){const e=t.textContent?.toLowerCase()||"";if(e.includes("skip")||e.includes("main content")||e.includes("navigation"))return!0}return!1}())return;const e=document.querySelector("main")||document.getElementById("content")||document.getElementById("main-content")||document.querySelector('[role="main"]')||document.querySelector("h1");if(!e)return;e.id||(e.id="accessify-main-content");const t=document.createElement("a");t.id=n,t.href=`#${e.id}`,t.textContent=ua("keyboard.skipToContent",d()),t.addEventListener("click",t=>{t.preventDefault(),e.setAttribute("tabindex","-1"),e.focus(),e.scrollIntoView({behavior:"smooth",block:"start"})}),document.body.insertBefore(t,document.body.firstChild)}(),document.querySelectorAll(["a[href]","button","input","select","textarea",'[role="button"]','[role="link"]','[role="checkbox"]','[role="radio"]','[role="tab"]','[role="menuitem"]','[role="switch"]','[contenteditable="true"]',"summary"].join(", ")).forEach(e=>{e.hasAttribute("tabindex")||function(e){const t=e.tagName.toLowerCase();return!!["a","button","input","select","textarea"].includes(t)}(e)||(e.setAttribute("tabindex","0"),e.dataset.accessifyTabindex="true")}),document.addEventListener("keydown",u),localStorage.setItem(a,"true")}function p(){e=!1,l=!1,document.removeEventListener("keydown",u),function(){const e=document.getElementById(n);e?.remove()}(),document.querySelectorAll('[data-accessify-tabindex="true"]').forEach(e=>{e.removeAttribute("tabindex"),delete e.dataset.accessifyTabindex}),function(){const e=document.getElementById(t);e?.remove()}();const r=document.getElementById(i);r?.remove(),localStorage.removeItem(a)}return{id:"keyboard-nav",name:()=>"Keyboard Navigation",description:"Enhanced keyboard navigation with skip links, heading/landmark jumping, and shortcut help",icon:"keyboard-nav",category:"motor",activate:f,deactivate:p,getState:()=>({id:"keyboard-nav",enabled:e}),setState:e=>{e.enabled?f():p()}}}},Symbol.toStringTag,{value:"Module"})),yr=Object.freeze(Object.defineProperty({__proto__:null,default:function(){let e=!1;const t="accessify-link-highlight",n="accessify-link-highlight";function i(){e=!0,function(){let e=document.getElementById(t);e||(e=document.createElement("style"),e.id=t,document.head.appendChild(e)),e.textContent=`\n /* accessify link highlighting */\n a[href] {\n text-decoration: underline !important;\n text-decoration-thickness: 3px !important;\n text-underline-offset: 3px !important;\n text-decoration-color: #1a73e8 !important;\n background-color: rgba(26, 115, 232, 0.1) !important;\n padding: 2px 4px !important;\n border-radius: 2px !important;\n transition: background-color 0.15s ease !important;\n }\n\n a[href]:hover {\n background-color: rgba(26, 115, 232, 0.25) !important;\n }\n\n a[href]:visited {\n text-decoration-color: #681da8 !important;\n background-color: rgba(104, 29, 168, 0.1) !important;\n }\n\n a[href]:visited:hover {\n background-color: rgba(104, 29, 168, 0.25) !important;\n }\n\n /* External link indicator */\n a[href^="http"]:not([href*="${"undefined"!=typeof window?window.location.hostname:""}"]):after {\n content: " \\2197";\n font-size: 0.8em;\n vertical-align: super;\n }\n `}(),localStorage.setItem(n,"true")}function a(){e=!1,function(){const e=document.getElementById(t);e?.remove()}(),localStorage.removeItem(n)}return{id:"link-highlight",name:()=>"Link Highlight",description:"Highlight all links with thick underlines and background colors",icon:"link-highlight",category:"visual",activate:i,deactivate:a,getState:()=>({id:"link-highlight",enabled:e}),setState:e=>{e.enabled?i():a()}}}},Symbol.toStringTag,{value:"Module"})),br={height:8,opacity:.3},xr=Object.freeze(Object.defineProperty({__proto__:null,default:function(){let e=!1,t=null,n=0,i={...br};const a="accessify-reading-guide";function r(e){n=e.clientY,c()}function o(e){e.touches.length>0&&(n=e.touches[0].clientY,c())}function s(i){e&&t&&("ArrowUp"===i.key?(i.preventDefault(),n=Math.max(0,n-10),c()):"ArrowDown"===i.key&&(i.preventDefault(),n=Math.min(window.innerHeight,n+10),c()))}function c(){t&&(t.style.top=n-i.height/2+"px")}return{id:"reading-guide",name:()=>"Reading Guide",description:"Horizontal ruler that follows your cursor for easier reading",icon:"reading-guide",category:"cognitive",activate:function(){e=!0;const l=localStorage.getItem(a);if(l)try{const e=JSON.parse(l);i={height:Math.min(60,Math.max(2,e.height??br.height)),opacity:Math.min(1,Math.max(.1,e.opacity??br.opacity))}}catch{i={...br}}t=function(){const e=document.createElement("div");return e.id="accessify-reading-guide",e.setAttribute("role","presentation"),e.setAttribute("aria-hidden","true"),Object.assign(e.style,{position:"fixed",left:"0",width:"100%",height:`${i.height}px`,backgroundColor:`rgba(255, 255, 0, ${i.opacity})`,pointerEvents:"none",zIndex:"2147483646",top:"50%",transition:"top 0.05s linear",boxShadow:"0 0 4px rgba(0,0,0,0.2)"}),e}(),document.documentElement.appendChild(t),n=window.innerHeight/2,c(),document.addEventListener("mousemove",r,{passive:!0}),document.addEventListener("touchmove",o,{passive:!0}),document.addEventListener("keydown",s)},deactivate:function(){e=!1,document.removeEventListener("mousemove",r),document.removeEventListener("touchmove",o),document.removeEventListener("keydown",s),t&&(t.remove(),t=null),localStorage.removeItem(a)},getState:()=>({id:"reading-guide",enabled:e,value:{...i}}),setState:e=>{i={height:Math.min(60,Math.max(2,e.height??i.height)),opacity:Math.min(1,Math.max(.1,e.opacity??i.opacity))},localStorage.setItem(a,JSON.stringify(i)),t&&(t.style.height=`${i.height}px`,t.style.backgroundColor=`rgba(255, 255, 0, ${i.opacity})`,c())}}}},Symbol.toStringTag,{value:"Module"})),wr=Object.freeze(Object.defineProperty({__proto__:null,default:function(){let e=!1,t=null,n=null,i=120;function a(e){if(!t||!n)return;const a=e.clientY,r=i/2,o=Math.max(0,a-r),s=Math.max(0,window.innerHeight-a-r);t.style.height=o+"px",n.style.height=s+"px"}function r(e){if(t&&n&&("ArrowUp"===e.key||"ArrowDown"===e.key)){const e=document.activeElement;if(!e)return;const a=e.getBoundingClientRect(),r=a.top+a.height/2,o=i/2;t.style.height=Math.max(0,r-o)+"px",n.style.height=Math.max(0,window.innerHeight-r-o)+"px"}}return{id:"reading-mask",name:()=>"Reading Mask",description:"Focus window that dims surrounding content",icon:"reading-mask",category:"motor",activate:function(){e=!0,function(){t=document.createElement("div"),n=document.createElement("div");const e="\n position: fixed; left: 0; right: 0; z-index: 999990;\n background: rgba(0, 0, 0, 0.65); pointer-events: none;\n transition: top 80ms ease, bottom 80ms ease, height 80ms ease;\n ";t.setAttribute("style",e+"top: 0;"),t.setAttribute("aria-hidden","true"),t.id="accessify-mask-top",n.setAttribute("style",e+"bottom: 0;"),n.setAttribute("aria-hidden","true"),n.id="accessify-mask-bottom",document.body.appendChild(t),document.body.appendChild(n)}(),document.addEventListener("mousemove",a),document.addEventListener("keydown",r)},deactivate:function(){e=!1,document.removeEventListener("mousemove",a),document.removeEventListener("keydown",r),t?.remove(),n?.remove(),t=null,n=null},getState:()=>({id:"reading-mask",enabled:e,value:i}),setState:e=>{i=Math.min(400,Math.max(60,e))}}}},Symbol.toStringTag,{value:"Module"})),kr=Object.freeze(Object.defineProperty({__proto__:null,default:function(){let e=!1;const t="accessify-animation-stop",n="accessify-animation-stop";let i=[];function a(){e=!0,function(){let e=document.getElementById(t);e||(e=document.createElement("style"),e.id=t,document.head.appendChild(e)),e.textContent="\n /* accessify animation stop - WCAG 2.3.1 compliance */\n *, *::before, *::after {\n animation-duration: 0.01s !important;\n animation-delay: 0s !important;\n animation-iteration-count: 1 !important;\n animation-play-state: paused !important;\n transition-duration: 0.01s !important;\n transition-delay: 0s !important;\n scroll-behavior: auto !important;\n }\n "}(),function(){const e=document.querySelectorAll("video[autoplay], video");i=[],e.forEach(e=>{e.paused||(e.pause(),i.push(e))})}(),localStorage.setItem(n,"true")}function r(){e=!1,function(){const e=document.getElementById(t);e?.remove()}(),i.forEach(e=>{try{e.play()}catch{}}),i=[],localStorage.removeItem(n)}return{id:"animation-stop",name:()=>"Stop Animations",description:"Pause all animations, transitions, and auto-playing videos (WCAG 2.3.1)",icon:"animation-stop",category:"visual",activate:a,deactivate:r,getState:()=>({id:"animation-stop",enabled:e}),setState:e=>{e.enabled?a():r()}}}},Symbol.toStringTag,{value:"Module"})),_r=Object.freeze(Object.defineProperty({__proto__:null,default:function(){let e=!1;const t="accessify-hide-images";return{id:"hide-images",name:()=>"Hide Images",description:"Remove images for distraction-free reading",icon:"hide-images",category:"visual",activate:function(){e=!0;let n=document.getElementById(t);n||(n=document.createElement("style"),n.id=t,document.head.appendChild(n)),n.textContent='\n img, picture, svg:not([aria-hidden="true"]), video, canvas,\n [role="img"], figure {\n opacity: 0 !important;\n pointer-events: none !important;\n }\n '},deactivate:function(){e=!1,document.getElementById(t)?.remove()},getState:()=>({id:"hide-images",enabled:e})}}},Symbol.toStringTag,{value:"Module"}));function Sr(e){return`data:image/svg+xml;base64,${btoa(`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" viewBox="0 0 ${e} ${e}">\n <defs>\n <filter id="shadow" x="-20%" y="-20%" width="140%" height="140%">\n <feDropShadow dx="1" dy="1" stdDeviation="1" flood-color="#000" flood-opacity="0.5"/>\n </filter>\n </defs>\n <g filter="url(#shadow)">\n <path d="M ${.15*e} ${.05*e} L ${.15*e} ${.75*e} L ${.35*e} ${.6*e} L ${.55*e} ${.9*e} L ${.65*e} ${.85*e} L ${.45*e} ${.55*e} L ${.7*e} ${.5*e} Z"\n fill="white" stroke="black" stroke-width="${.04*e}" stroke-linejoin="round"/>\n </g>\n </svg>`)}`}const Ar=Object.freeze(Object.defineProperty({__proto__:null,default:function(){let e=!1,t="48";const n="accessify-big-cursor",i="accessify-big-cursor",a={48:Sr(48),64:Sr(64)};function r(e){let t=document.getElementById(n);t||(t=document.createElement("style"),t.id=n,document.head.appendChild(t)),t.textContent=function(e){const t=parseInt(e,10),n=Math.round(.15*t);return`\n /* accessify big cursor */\n html, html * {\n cursor: url('${a[e]}') ${n} ${n}, auto !important;\n }\n html a, html a *, html button, html button *,\n html input[type="submit"], html input[type="button"],\n html [role="button"], html [role="button"] * {\n cursor: url('${a[e]}') ${n} ${n}, pointer !important;\n }\n `}(e)}return{id:"big-cursor",name:()=>"Big Cursor",description:"Enlarge the mouse cursor for easier visibility",icon:"big-cursor",category:"motor",activate:function(){e=!0;const n=localStorage.getItem(i);t="64"===n?"64":"48",r(t)},deactivate:function(){e=!1,function(){const e=document.getElementById(n);e?.remove()}(),localStorage.removeItem(i)},getState:()=>({id:"big-cursor",enabled:e,value:t}),setState:n=>{t="64"===n?"64":"48",e&&r(t),localStorage.setItem(i,t)}}}},Symbol.toStringTag,{value:"Module"})),Mr=Object.freeze(Object.defineProperty({__proto__:null,default:function(){let e=!1,t=null;const n="accessify-page-structure";function i(){return la()}function a(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function r(){e=!1,t?.remove(),t=null}return{id:"page-structure",name:()=>"Page Structure",description:"View headings and landmarks for quick navigation",icon:"page-structure",category:"motor",activate:function(){e=!0,function(){t=document.createElement("div"),t.id=n,t.setAttribute("role","dialog"),t.setAttribute("aria-label",ua("pageStructure.title",i()));const e=function(){const e=[];return document.querySelectorAll("h1, h2, h3, h4, h5, h6").forEach(t=>{if(t.closest("#accessify-root"))return;const n=t.textContent?.trim()||"";n&&e.push({tag:t.tagName.toLowerCase(),text:n,el:t})}),e}(),o=function(){const e=[];return document.querySelectorAll(["main","nav","aside","header","footer","section[aria-label]","section[aria-labelledby]",'[role="main"]','[role="navigation"]','[role="complementary"]','[role="banner"]','[role="contentinfo"]','[role="search"]'].join(",")).forEach(t=>{if(t.closest("#accessify-root"))return;const n=t.getAttribute("role")||t.tagName.toLowerCase(),i=t.getAttribute("aria-label")||t.getAttribute("aria-labelledby")||n;e.push({role:n,label:i,el:t})}),e}(),s={h1:"0",h2:"12px",h3:"24px",h4:"36px",h5:"48px",h6:"60px"};let c=`\n <style>\n #${n} {\n position: fixed; top: 50%; left: 50%;\n transform: translate(-50%, -50%);\n z-index: 999998;\n background: #fff; color: #1a1a1a;\n border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.2);\n padding: 24px; width: 400px; max-height: 80vh;\n overflow-y: auto; font-family: system-ui, sans-serif;\n font-size: 14px; line-height: 1.5;\n }\n #${n} h3 { margin: 0 0 12px; font-size: 16px; }\n #${n} .ps-section { margin-bottom: 16px; }\n #${n} .ps-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: #888; margin-bottom: 6px; }\n #${n} .ps-item {\n display: block; width: 100%; text-align: left;\n padding: 6px 8px; border: none; background: none;\n cursor: pointer; border-radius: 6px; font-size: 13px;\n color: #1a1a1a; font-family: inherit;\n }\n #${n} .ps-item:hover { background: #f0f0f2; }\n #${n} .ps-item:focus-visible { outline: 2px solid #0055CC; outline-offset: 1px; }\n #${n} .ps-tag { color: #888; font-size: 11px; margin-right: 6px; }\n #${n} .ps-close {\n position: absolute; top: 12px; right: 12px;\n background: none; border: none; cursor: pointer;\n font-size: 18px; color: #888; padding: 4px 8px; border-radius: 4px;\n }\n #${n} .ps-close:hover { background: #f0f0f2; }\n @media (prefers-color-scheme: dark) {\n #${n} { background: #1a1a1a; color: #f0f0f0; }\n #${n} .ps-item { color: #f0f0f0; }\n #${n} .ps-item:hover { background: #2a2a2e; }\n #${n} .ps-close { color: #aaa; }\n #${n} .ps-close:hover { background: #2a2a2e; }\n }\n </style>\n <button class="ps-close" aria-label="${ua("widget.close",i())}">&times;</button>\n <h3>${ua("pageStructure.title",i())}</h3>\n `;e.length>0&&(c+=`<div class="ps-section"><div class="ps-label">${ua("pageStructure.headings",i())}</div>`,e.forEach((e,t)=>{c+=`<button class="ps-item" data-type="heading" data-index="${t}" style="padding-left:${s[e.tag]||"0"}">\n <span class="ps-tag">${e.tag}</span>${a(e.text.slice(0,80))}\n </button>`}),c+="</div>"),o.length>0&&(c+=`<div class="ps-section"><div class="ps-label">${ua("pageStructure.landmarks",i())}</div>`,o.forEach((e,t)=>{c+=`<button class="ps-item" data-type="landmark" data-index="${t}">\n <span class="ps-tag">${a(e.role)}</span>${a(e.label.slice(0,60))}\n </button>`}),c+="</div>"),0===e.length&&0===o.length&&(c+=`<p style="color:#888">${ua("pageStructure.empty",i())}</p>`),t.innerHTML=c,t.addEventListener("click",t=>{const n=t.target.closest(".ps-item");if(n){const t=n.dataset.type,i=parseInt(n.dataset.index||"0",10);let a;"heading"===t?a=e[i]?.el:"landmark"===t&&(a=o[i]?.el),a&&(a.scrollIntoView({behavior:"smooth",block:"center"}),a.focus({preventScroll:!0}))}t.target.closest(".ps-close")&&r()}),document.body.appendChild(t);const l=t.querySelector(".ps-item, .ps-close");l?.focus()}()},deactivate:r,getState:()=>({id:"page-structure",enabled:e})}}},Symbol.toStringTag,{value:"Module"})),Cr={speed:1},Er=Object.freeze(Object.defineProperty({__proto__:null,default:function(){let e=!1,t={...Cr},n=null,i=null,a=!1,r=!1,o=!0,s=[],c=0,l=null,d="en";const u="accessify-tts",f="accessify-tts-controls",p="accessify-tts-styles",h="accessify-tts-highlight";function g(){speechSynthesis.cancel(),a=!1,r=!1,s=[],c=0,y(),w()}function v(e,n){if(g(),!e.trim())return;var o;n&&(o=n,y(),o.classList.add(h),i=o);const u=function(e){const t=e.match(/[^.!?]*[.!?]+[\s]?|[^.!?]+$/g);if(!t)return[e];const n=[];let i="";for(const a of t){const e=a.trim();e&&(i+=(i?" ":"")+e,(i.length>80||/[.!?]$/.test(i))&&(n.push(i),i=""))}return i.trim()&&n.push(i.trim()),n.length>0?n:[e]}(e).slice(0,50);s=u.map(e=>{const n=new SpeechSynthesisUtterance(e);return n.rate=t.speed,n.lang=d,l&&(n.voice=l),n}),c=0,a=!0,r=!1,w(),m()}function m(){if(c>=s.length)return a=!1,r=!1,y(),void w();const e=s[c];let t=null,n=!1;function i(){n||(n=!0,t&&(clearTimeout(t),t=null))}t=setTimeout(()=>{n||(i(),speechSynthesis.cancel(),c++,c<s.length&&a?setTimeout(()=>m(),100):(a=!1,r=!1,y(),w()))},2e4),e.onend=()=>{i(),c++,c<s.length&&a?setTimeout(()=>m(),50):(a=!1,r=!1,y(),w())},e.onerror=e=>{i(),"interrupted"!==e.error&&"canceled"!==e.error&&(console.warn("[Accessify TTS] Speech error:",e.error),c++,c<s.length&&a)?setTimeout(()=>m(),100):(a=!1,r=!1,y(),w())},speechSynthesis.speak(e)}function y(){i&&(i.classList.remove(h),i=null),document.querySelectorAll(`.${h}`).forEach(e=>e.classList.remove(h))}function b(t){if(!e||!o)return;const i=t.target;if(!i)return;if(n?.contains(i))return;const a=document.getElementById("accessify-root");if(a&&(a===i||a.contains(i)))return;const r=i.tagName;if("A"===r||"BUTTON"===r||"INPUT"===r||"SELECT"===r||"TEXTAREA"===r||i.closest('a, button, input, select, textarea, [role="button"]'))return;t.preventDefault();const s=function(e){if(x(e).trim().length>0)return e;let t=e;for(;t&&t!==document.body;){if(x(t).trim().length>0)return t;t=t.parentElement}return null}(i);if(!s)return;const c=x(s);c.trim()&&v(c,s)}function x(e){return(e.innerText||e.textContent||"").trim()}function w(){if(!n)return;const e=n.querySelector(".accessify-tts-play"),t=n.querySelector(".accessify-tts-hint");e&&(a&&!r?(e.innerHTML='<svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor" stroke="none" aria-hidden="true"><rect x="5" y="3" width="4" height="18"/><rect x="15" y="3" width="4" height="18"/></svg>',e.setAttribute("aria-label","Pause"),e.title="Pause"):a&&r?(e.innerHTML='<svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor" stroke="none" aria-hidden="true"><polygon points="6,3 20,12 6,21"/></svg>',e.setAttribute("aria-label","Resume"),e.title="Resume"):(e.innerHTML='<svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor" stroke="none" aria-hidden="true"><polygon points="6,3 20,12 6,21"/></svg>',e.setAttribute("aria-label","Play / Pause"),e.title="Play / Pause")),t&&(t.textContent=a&&!r?"Speaking...":r?"Paused":"Click any text to read it aloud")}function k(){localStorage.setItem(u,JSON.stringify({speed:t.speed}))}return{id:"tts",name:()=>"Text-to-Speech",description:"Click any text to hear it read aloud with adjustable speed",icon:"tts",category:"cognitive",activate:function(){e||(e=!0,function(){const e=localStorage.getItem(u);if(e)try{const n=JSON.parse(e);t.speed=Math.min(2,Math.max(.5,n.speed??Cr.speed))}catch{t={...Cr}}}(),d=function(){const e=document.documentElement.lang;if(e)return e.toLowerCase();const t=document.querySelector('meta[http-equiv="content-language"]');return t?.content?t.content.toLowerCase():"en"}(),function(e=3e3){return new Promise(t=>{if(speechSynthesis.getVoices().length>0)return void t();let n=!1;const i=()=>{n||(n=!0,t())};speechSynthesis.addEventListener("voiceschanged",i,{once:!0}),setTimeout(i,e)})}().then(()=>{l=function(e){const t=speechSynthesis.getVoices();if(0===t.length)return null;const n=e.split("-")[0];if("de"===n){const e=t.find(e=>e.lang.toLowerCase().startsWith("de-de")&&!1===e.localService);if(e)return e;const n=t.find(e=>e.lang.toLowerCase().startsWith("de-de"));if(n)return n;const i=t.find(e=>e.lang.toLowerCase().startsWith("de"));if(i)return i}return t.find(t=>t.lang.toLowerCase()===e)||t.find(e=>e.lang.toLowerCase().startsWith(n))||t[0]||null}(d)}),function(){let e=document.getElementById(p);e||(e=document.createElement("style"),e.id=p,document.head.appendChild(e)),e.textContent=`\n /* accessify TTS styles */\n .${h} {\n background-color: rgba(78, 168, 222, 0.15) !important;\n outline: 2px solid rgba(78, 168, 222, 0.5) !important;\n outline-offset: 2px !important;\n border-radius: 3px !important;\n transition: background-color 0.2s ease, outline-color 0.2s ease !important;\n }\n\n #${f} .accessify-tts-btn {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 28px;\n height: 28px;\n padding: 0;\n margin: 0;\n border: 1px solid rgba(255,255,255,0.15);\n border-radius: 6px;\n background: rgba(255,255,255,0.08);\n color: #f0f0f0;\n cursor: pointer;\n transition: background 0.15s ease, border-color 0.15s ease;\n line-height: 1;\n }\n\n #${f} .accessify-tts-btn:hover {\n background: rgba(255,255,255,0.18);\n border-color: rgba(255,255,255,0.3);\n }\n\n #${f} .accessify-tts-btn:focus-visible {\n outline: 2px solid #4ea8de;\n outline-offset: 1px;\n }\n\n #${f} .accessify-tts-btn:active {\n background: rgba(255,255,255,0.25);\n }\n `}(),n=function(){const e=document.createElement("div");e.id=f,e.setAttribute("role","toolbar"),e.setAttribute("aria-label","Text-to-Speech controls"),Object.assign(e.style,{position:"fixed",top:"0",left:"50%",transform:"translateX(-50%)",zIndex:"2147483646",display:"flex",alignItems:"center",gap:"6px",padding:"6px 14px",background:"#1a1a2e",color:"#f0f0f0",borderRadius:"0 0 10px 10px",boxShadow:"0 4px 16px rgba(0,0,0,0.3)",fontFamily:"system-ui, -apple-system, sans-serif",fontSize:"13px",lineHeight:"1",userSelect:"none",transition:"opacity 0.2s ease"});const n=document.createElement("button");n.className="accessify-tts-btn accessify-tts-play",n.setAttribute("aria-label","Play / Pause"),n.title="Play / Pause",n.innerHTML='<svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor" stroke="none" aria-hidden="true"><polygon points="6,3 20,12 6,21"/></svg>',n.addEventListener("click",()=>{a&&a&&(r?(speechSynthesis.resume(),r=!1):(speechSynthesis.pause(),r=!0),w())});const i=document.createElement("button");i.className="accessify-tts-btn accessify-tts-stop",i.setAttribute("aria-label","Stop"),i.title="Stop",i.innerHTML='<svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor" stroke="none" aria-hidden="true"><rect x="4" y="4" width="16" height="16" rx="2"/></svg>',i.addEventListener("click",()=>{g()});const o=document.createElement("div");Object.assign(o.style,{display:"flex",alignItems:"center",gap:"4px",marginLeft:"4px"});const c=document.createElement("label");c.textContent="Speed",c.setAttribute("for","accessify-tts-speed"),Object.assign(c.style,{fontSize:"11px",opacity:"0.8",whiteSpace:"nowrap"});const l=document.createElement("input");l.type="range",l.id="accessify-tts-speed",l.min="0.5",l.max="2",l.step="0.1",l.value=String(t.speed),l.setAttribute("aria-label","Speech speed"),Object.assign(l.style,{width:"70px",accentColor:"#4ea8de",cursor:"pointer"});const d=document.createElement("span");d.className="accessify-tts-speed-val",d.textContent=`${t.speed.toFixed(1)}x`,Object.assign(d.style,{fontSize:"11px",minWidth:"30px",textAlign:"center",opacity:"0.8"}),l.addEventListener("input",()=>{const e=parseFloat(l.value);t.speed=e,d.textContent=`${e.toFixed(1)}x`,k();for(const t of s)t.rate=e}),o.appendChild(c),o.appendChild(l),o.appendChild(d);const u=document.createElement("div");Object.assign(u.style,{width:"1px",height:"18px",background:"rgba(255,255,255,0.2)",margin:"0 4px"});const p=document.createElement("span");p.className="accessify-tts-hint",p.textContent="Click any text to read it aloud",Object.assign(p.style,{fontSize:"11px",opacity:"0.6",whiteSpace:"nowrap"});const h=document.createElement("span");return Object.assign(h.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)",whiteSpace:"nowrap",border:"0"}),h.textContent="For full screen reader support, use NVDA, JAWS, or VoiceOver",e.appendChild(n),e.appendChild(i),e.appendChild(u),e.appendChild(o),e.appendChild(u.cloneNode(!0)),e.appendChild(p),e.appendChild(h),e}(),document.documentElement.appendChild(n),o=!0,document.addEventListener("click",b,!0))},deactivate:function(){e=!1,g(),document.removeEventListener("click",b,!0),o=!1,n&&(n.remove(),n=null),y(),function(){const e=document.getElementById(p);e?.remove()}(),l=null},getState:()=>({id:"tts",enabled:e,value:{speed:t.speed}}),setState:e=>{if(void 0!==e.speed){t.speed=Math.min(2,Math.max(.5,e.speed)),k();const i=document.getElementById("accessify-tts-speed");i&&(i.value=String(t.speed));const a=n?.querySelector(".accessify-tts-speed-val");a&&(a.textContent=`${t.speed.toFixed(1)}x`)}}}}},Symbol.toStringTag,{value:"Module"})),Tr=Object.freeze(Object.defineProperty({__proto__:null,default:function(e,t="de"){let n=!1,i="einfache",a=[],r=null,o=null,s=0,c=null,l=null;const d=new Map,u="accessify-text-simplify",f="data-accessify-simplified",p="data-accessify-original",h="data-accessify-block-hash",g="blocks";function v(){return new Promise((e,t)=>{const n=indexedDB.open("accessify-simplify-cache",1);n.onupgradeneeded=()=>{const e=n.result;e.objectStoreNames.contains(g)||e.createObjectStore(g)},n.onsuccess=()=>e(n.result),n.onerror=()=>t(n.error)})}async function m(e){try{const t=await v();return new Promise(n=>{const i=t.transaction(g,"readonly").objectStore(g).get(e);i.onsuccess=()=>n(i.result??null),i.onerror=()=>n(null)})}catch{return null}}async function y(e,t){try{(await v()).transaction(g,"readwrite").objectStore(g).put(t,e)}catch{}}function b(e){return`${window.location.origin+window.location.pathname}:simplify:${i}:${e}`}function x(e){const t=e.replace(/\s+/g," ").trim().toLowerCase();let n=5381;for(let i=0;i<t.length;i++)n=(n<<5)+n+t.charCodeAt(i)&2147483647;return n.toString(36)}function w(e){return{scrollHeight:e.scrollHeight,clientHeight:e.clientHeight}}function k(e){let t=e;for(;t&&t!==document.body;){const e=getComputedStyle(t),n=e.overflow+" "+e.overflowY,i=n.includes("hidden")||n.includes("clip"),a="none"!==e.maxHeight||"auto"!==e.height&&""!==e.height&&!e.height.includes("%");if(i&&a)return t;t=t.parentElement}return null}function _(e,t){const n=getComputedStyle(e);"none"!==n.maxHeight&&(t.push({el:e,property:"maxHeight",originalValue:e.style.maxHeight}),e.style.maxHeight="none"),(n.overflow.includes("hidden")||n.overflowY.includes("hidden"))&&(t.push({el:e,property:"overflow",originalValue:e.style.overflow}),e.style.overflow="visible");const i=w(e);return i.scrollHeight<=i.clientHeight+2?{safe:!0,patches:t}:(S(t),{safe:!1,patches:[]})}function S(e){for(const t of e)t.el.style[t.property]=t.originalValue}function A(e,t,n){const i=e.innerHTML;e.setAttribute("data-accessify-replacing","true"),function(e,t){const n=function(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null);let i;for(;i=n.nextNode();){const e=i.nodeValue?.trim();e&&e.length>0&&t.push(i)}return t}(e);if(0===n.length)return;if(1===n.length)return void(n[0].nodeValue=t);const i=t.match(/[^.!?]+[.!?]*\s*/g)||[t],a=n.reduce((e,t)=>e+(t.nodeValue?.trim().length||0),0);if(0===a){n[0].nodeValue=t;for(let e=1;e<n.length;e++)n[e].nodeValue="";return}let r=0;for(let o=0;o<n.length;o++){const e=(n[o].nodeValue?.trim().length||0)/a,t=Math.max(1,Math.round(e*i.length)),s=i.slice(r,r+t).join("");n[o].nodeValue=s||"",r+=t}if(r<i.length){const e=n[n.length-1];e.nodeValue=(e.nodeValue||"")+i.slice(r).join("")}}(e,t);const{safe:r,patches:o}=function(e){const t=[],n=w(e);if(!(n.scrollHeight>n.clientHeight+2)){const n=k(e);if(!n)return{safe:!0,patches:[]};const i=w(n);return i.scrollHeight<=i.clientHeight+2?{safe:!0,patches:[]}:_(n,t)}const i=k(e);return i?_(i,t):{safe:!0,patches:[]}}(e);return r?(e.removeAttribute("data-accessify-replacing"),e.setAttribute(f,"true"),e.setAttribute(p,i),n&&e.setAttribute(h,n),a.push({el:e,originalHtml:i,ancestorPatches:o}),c?.observe(e),!0):(e.innerHTML=i,e.removeAttribute("data-accessify-replacing"),console.warn("[Accessify] Block skipped — layout clipping detected after replacement:",e.textContent?.slice(0,60)),s++,!1)}function M(e){e.el.innerHTML=e.originalHtml,e.el.removeAttribute(f),e.el.removeAttribute(p),e.el.removeAttribute(h),S(e.ancestorPatches),c?.unobserve(e.el),a=a.filter(t=>t.el!==e.el)}function C(e,t,n,a,r){const o=window.location.origin+window.location.pathname;fetch(`${r||"https://accessify-api.accessify.workers.dev"}/v1/cache/persist`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({siteKey:e,url:o,feature:"simplify",variant:i,blockHash:t,originalText:n,result:a})}).catch(e=>{console.warn("[Accessify] Failed to persist live simplification:",e)})}function E(e){e.style.opacity="0.5",e.style.transition="opacity 0.3s ease"}function T(e){e.style.opacity="",e.style.transition=""}function $(e,n,i=0){o||(o=document.createElement("div"),o.setAttribute("role","status"),o.setAttribute("aria-live","polite"),Object.assign(o.style,{position:"fixed",bottom:"80px",right:"24px",zIndex:"2147483645",padding:"10px 18px",background:"#1a1a2e",color:"#4ea8de",borderRadius:"10px",boxShadow:"0 4px 20px rgba(0,0,0,0.3)",fontFamily:"system-ui, -apple-system, sans-serif",fontSize:"13px",fontWeight:"600",display:"flex",alignItems:"center",gap:"8px"}),document.body.appendChild(o));const a=Math.round(e/n*100),r=i>0?t.startsWith("de")?` (${i} übersprungen)`:` (${i} skipped)`:"",s=t.startsWith("de")?`Wird vereinfacht... ${e}/${n} (${a}%)${r}`:`Simplifying... ${e}/${n} (${a}%)${r}`;if(o.innerHTML=`<span style="display:inline-block;width:14px;height:14px;border:2px solid rgba(78,168,222,0.3);border-top-color:#4ea8de;border-radius:50%;animation:accessify-autospin 0.6s linear infinite"></span> ${s}`,!document.getElementById("accessify-autospin-style")){const e=document.createElement("style");e.id="accessify-autospin-style",e.textContent="@keyframes accessify-autospin { to { transform: rotate(360deg); } }",document.head.appendChild(e)}}function z(e,n){if(o){const i=n>0?t.startsWith("de")?` (${n} aus Cache)`:` (${n} from cache)`:"",a=s>0?t.startsWith("de")?`, ${s} übersprungen`:`, ${s} skipped`:"",r=t.startsWith("de")?`${e} Textabschnitte vereinfacht${i}${a}`:`${e} text sections simplified${i}${a}`;o.innerHTML=`<span style="color:#22c55e">&#x2713;</span> ${r}`,o.style.color="#22c55e",setTimeout(()=>I(),3e3)}}function I(){o?.remove(),o=null,document.getElementById("accessify-autospin-style")?.remove()}return{id:"text-simplify",name:()=>t.startsWith("de")?"Text vereinfachen":"Simplify Text",description:t.startsWith("de")?"Text in Einfache Sprache umwandeln":"Simplify text for easier understanding",icon:"simplify-text",category:"ai",activate:function(){n||(n=!0,function(){try{const e=localStorage.getItem(u);if(e){const t=JSON.parse(e);"einfache"!==t.level&&"leichte"!==t.level||(i=t.level)}}catch{}}(),async function(){const n=function(){const e=[],t=new Set;return document.querySelectorAll("p, li, td, th, blockquote, figcaption, .hero-subtitle, h1, h2, h3, h4, h5, h6").forEach(n=>{const i=n;if(i.closest("#accessify-root"))return;if(null===i.offsetParent&&"fixed"!==i.style.display)return;if((i.textContent?.trim()||"").length<20)return;if(t.has(i))return;let a=!1;for(const e of t)if(e.contains(i)){a=!0;break}a||(t.add(i),e.push(i))}),e}();if(0===n.length)return;r=new AbortController,a=[],s=0,c||(c=new ResizeObserver(e=>{for(const t of e){const e=t.target;if(!e.hasAttribute(f))continue;const n=a.find(t=>t.el===e);if(!n)continue;const i=k(e);if(i){const t=w(i);t.scrollHeight>t.clientHeight+2&&(console.warn("[Accessify] ResizeObserver detected clipping after external layout change, reverting block:",e),M(n),s++)}}})),l||(l=new MutationObserver(e=>{for(const t of e){for(const e of t.removedNodes){if(!(e instanceof HTMLElement))continue;const t=a.findIndex(t=>t.el===e||e.contains(t.el));if(-1!==t){const e=a[t];c?.unobserve(e.el),e.el.removeAttribute(f),e.el.removeAttribute(p),e.el.removeAttribute(h),S(e.ancestorPatches),a.splice(t,1)}}if("characterData"===t.type||"childList"===t.type){const e=t.target instanceof HTMLElement?t.target:t.target.parentElement;if(!e)continue;const n=e.closest(`[${f}]`);if(n){const e=a.find(e=>e.el===n);e&&!n.hasAttribute("data-accessify-replacing")&&(console.warn("[Accessify] External mutation detected on simplified block, cleaning up tracking:",n),c?.unobserve(e.el),e.el.removeAttribute(f),e.el.removeAttribute(p),e.el.removeAttribute(h),S(e.ancestorPatches),a=a.filter(e=>e.el!==n))}}}}),l.observe(document.body,{childList:!0,subtree:!0,characterData:!0}));const{siteKey:d,proxyUrl:u}=function(){const e=document.querySelector("script[data-site-key]");return{siteKey:e?.getAttribute("data-site-key")||window.Accessify?.config?.siteKey||void 0,proxyUrl:e?.getAttribute("data-proxy-url")||window.Accessify?.config?.proxyUrl||void 0}}();let g=0,v=n;if(d){$(0,n.length);const e=await async function(e,t){const n=`${t||"https://accessify-api.accessify.workers.dev"}/v1/manifest?siteKey=${e}&url=${encodeURIComponent(window.location.origin+window.location.pathname)}&feature=simplify&variant=${i}`;try{const e=await fetch(n);if(!e.ok)return null;const t=await e.json();return t.blocks?.length?t:null}catch{return null}}(d,u);if(e?.blocks?.length){const t=function(e,t){const n=[],i=[],a=new Map;for(const r of e.blocks)a.set(r.blockHash,r);for(const r of t){const e=x(r.textContent?.trim()||""),t=a.get(e);t?.result&&A(r,t.result,e)?n.push(r):i.push(r)}return{applied:n,remaining:i}}(e,n);g=t.applied.length,v=t.remaining;for(const n of e.blocks)n.result&&y(b(n.blockHash),n.result);if(0===v.length)return void z(g,g)}}{const e=[];for(const t of v){const n=t.textContent?.trim()||"";if(n.length<20){e.push(t);continue}const i=x(n),a=await m(b(i));a&&A(t,a,i)?g++:e.push(t)}if(v=e,0===v.length)return void z(g,g)}if(!e&&v.length>0)return void(g>0?z(g,g):($(0,1),_=t.startsWith("de")?"Kein API-Key konfiguriert":"No API key configured",o&&(o.innerHTML=`<span style="color:#ef4444">&#x2715;</span> ${_}`,o.style.color="#ef4444",setTimeout(()=>I(),5e3))));var _;for(const e of v)E(e);const L=n.length;let G=g,j=g;$(G,L,s);for(const a of v){if(r.signal.aborted)break;const n=a.textContent?.trim()||"";if(n.length<20){T(a),G++,$(G,L,s);continue}const o=x(n);try{const s=await e.simplifyText(n,i,t);if(r?.signal.aborted)return;s&&s!==n&&A(a,s,o)&&(j++,y(b(o),s),d&&C(d,o,n,s,u))}catch(P){if(P?.message?.includes("429")){await new Promise(e=>setTimeout(e,8e3));try{const s=await e.simplifyText(n,i,t);if(r?.signal.aborted)return;s&&s!==n&&A(a,s,o)&&(j++,y(b(o),s),d&&C(d,o,n,s,u))}catch{}}else console.warn("[Accessify] Failed to simplify:",P)}finally{T(a),G++,r?.signal.aborted||($(G,L,s),await new Promise(e=>setTimeout(e,1200)))}}r?.signal.aborted||z(j,g)}())},deactivate:function(){n=!1,r?.abort(),r=null,function(){c&&(c.disconnect(),c=null),l&&(l.disconnect(),l=null),d.clear();for(const{el:e,originalHtml:t,ancestorPatches:n}of a)e.innerHTML=t,e.removeAttribute(p),e.removeAttribute(f),e.removeAttribute(h),e.removeAttribute("data-accessify-replacing"),T(e),S(n);a=[],s=0}(),I()},getState:()=>({id:"text-simplify",enabled:n,value:{level:i}}),setState:e=>{!e.level||"einfache"!==e.level&&"leichte"!==e.level||(i=e.level,localStorage.setItem(u,JSON.stringify({level:i})))}}}},Symbol.toStringTag,{value:"Module"}))}();
2
2
  //# sourceMappingURL=widget.js.map