@pie-players/pie-section-player 0.3.73 → 0.3.75
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/README.md +395 -149
- package/dist/browser/assets/evaluation-worker-CORp9m0K.js +156459 -0
- package/dist/browser/chunks/ItemToolBar-jx38w99s-58defccc.js +1 -0
- package/dist/browser/chunks/PUA-tLuTiQ7--f2b27953.js +1 -0
- package/dist/browser/chunks/ToolCoordinator-cc2dc319.js +1 -0
- package/dist/browser/chunks/accents-BTUYmhn9-cafeb96e.js +1 -0
- package/dist/browser/chunks/accents-b-i-CngHZsLL-e0eb98fd.js +1 -0
- package/dist/browser/chunks/arabic-BzEHMVZD-30ac1ade.js +1 -0
- package/dist/browser/chunks/arrows-VjxlU-jv-2e17c192.js +1 -0
- package/dist/browser/chunks/base-dfd67c41.js +1 -0
- package/dist/browser/chunks/braille-BeWC_Ruq-a3bb8ef9.js +1 -0
- package/dist/browser/chunks/braille-d-Dk6J96GO-d832bfbf.js +1 -0
- package/dist/browser/chunks/browser-a3c32178.js +37 -0
- package/dist/browser/chunks/calculator-element-271c142f.js +13 -0
- package/dist/browser/chunks/calligraphic-Cew9cU3x-04cf0735.js +1 -0
- package/dist/browser/chunks/catalog-context-46d3e50e.js +1 -0
- package/dist/browser/chunks/catalog-owner-d602f784.js +1 -0
- package/dist/browser/chunks/cherokee-Cny3FYho-4da7d2f3.js +1 -0
- package/dist/browser/chunks/classPrivateFieldGet2-338e0179.js +1 -0
- package/dist/browser/chunks/cyrillic-CfCDulXU-5550df0b.js +1 -0
- package/dist/browser/chunks/cyrillic-ss-lU7bNGG9-12eb0188.js +1 -0
- package/dist/browser/chunks/defineProperty-a20a667d.js +1 -0
- package/dist/browser/chunks/devanagari-CDIz2h-r-18c38725.js +1 -0
- package/dist/browser/chunks/dist-41b39e7f.js +1 -0
- package/dist/browser/chunks/dist-59132a53.js +1 -0
- package/dist/browser/chunks/dist-60d7afef.js +1 -0
- package/dist/browser/chunks/dist-ca9b9622.js +1 -0
- package/dist/browser/chunks/double-struck-BpJEQk8y-500ce8dd.js +1 -0
- package/dist/browser/chunks/en-5ff22e17.js +1 -0
- package/dist/browser/chunks/es-a0ba6cb6.js +1 -0
- package/dist/browser/chunks/focus-trap-44913bf3.js +1 -0
- package/dist/browser/chunks/fraktur-rLEq9DEH-44cc14d8.js +1 -0
- package/dist/browser/chunks/greek-BlraJTyL-90ce8924.js +1 -0
- package/dist/browser/chunks/greek-ss-D-EN2PK0-91610739.js +1 -0
- package/dist/browser/chunks/hebrew-GiQZeybp-b583f555.js +1 -0
- package/dist/browser/chunks/latin-b-BhEnC7R2-d13e06ff.js +1 -0
- package/dist/browser/chunks/latin-bi-DqiIKv3U-1dec8705.js +1 -0
- package/dist/browser/chunks/latin-i-B1xtwaE1-21637466.js +1 -0
- package/dist/browser/chunks/latin-xfWFlLkD-5bcea5cf.js +1 -0
- package/dist/browser/chunks/logger-8b07fb72.js +1 -0
- package/dist/browser/chunks/marrows-DD1NgMQi-15b63755.js +1 -0
- package/dist/browser/chunks/math-DpWn1mbG-38eeb914.js +1 -0
- package/dist/browser/chunks/math-rendering-ready-9a0fd90a.js +1 -0
- package/dist/browser/chunks/mathjax-BKrHE4xs-3ca05bf6.js +232 -0
- package/dist/browser/chunks/module-0191e321.js +74 -0
- package/dist/browser/chunks/module-shim-58659a86.js +0 -0
- package/dist/browser/chunks/module-shim-b4470740.js +12 -0
- package/dist/browser/chunks/monospace-D116QD2a-98d484fd.js +1 -0
- package/dist/browser/chunks/monospace-ex-DcXpouKS-456b403c.js +1 -0
- package/dist/browser/chunks/monospace-l-Ct5wkMDs-f34a4a9e.js +1 -0
- package/dist/browser/chunks/mshapes-DCp86WSX-c0055952.js +1 -0
- package/dist/browser/chunks/nl-NL-364d61b9.js +1 -0
- package/dist/browser/chunks/nl-NL-8b7e6d4b.js +1 -0
- package/dist/browser/chunks/overlay-containment-edaaff13.js +1 -0
- package/dist/browser/chunks/overlay-placement-e8058232.js +1 -0
- package/dist/browser/chunks/phonetics-BwOCw2Y9-d2e3af59.js +1 -0
- package/dist/browser/chunks/phonetics-ss-CRtMn02f-579b6135.js +1 -0
- package/dist/browser/chunks/pie-api-client-687c319a.js +1 -0
- package/dist/browser/chunks/pointer-gesture-ce75f0a7.js +1 -0
- package/dist/browser/chunks/preload-helper-6ad28da3.js +1 -0
- package/dist/browser/chunks/provider-4c704118.js +1 -0
- package/dist/browser/chunks/rolldown-runtime-1287ba31.js +1 -0
- package/dist/browser/chunks/runtime-wcU7KOFU-ac86d7b8.js +8536 -0
- package/dist/browser/chunks/sanitize-svg-icon-b9082bba.js +3 -0
- package/dist/browser/chunks/sans-serif-BYPZKlE9-2efdbcd9.js +1 -0
- package/dist/browser/chunks/sans-serif-b-B0kRKiC--b5530dce.js +1 -0
- package/dist/browser/chunks/sans-serif-bi-DXWul6mu-5370dba4.js +1 -0
- package/dist/browser/chunks/sans-serif-ex-Boux1kMP-aa178f31.js +1 -0
- package/dist/browser/chunks/sans-serif-i-676RFaSO-2db54474.js +1 -0
- package/dist/browser/chunks/sans-serif-r-DrN9xdZt-0fc72eea.js +1 -0
- package/dist/browser/chunks/script-0ohehnXc-526904f4.js +1 -0
- package/dist/browser/chunks/shapes-BG47NodJ-d59b0eca.js +1 -0
- package/dist/browser/chunks/src-BcptuNS5-ed25d7fd.js +191 -0
- package/dist/browser/chunks/sre-0162a7a9.js +53 -0
- package/dist/browser/chunks/sre-engine-ace23548.js +1 -0
- package/dist/browser/chunks/sre-engine-jd8cc08x-42d270e5.js +1 -0
- package/dist/browser/chunks/sre-locales-112320af.js +1 -0
- package/dist/browser/chunks/symbols-BqnUxf_t-83087e87.js +1 -0
- package/dist/browser/chunks/symbols-b-i-eg9k5hmF-9c461ac2.js +1 -0
- package/dist/browser/chunks/tool-annotation-toolbar-997438b4.js +249 -0
- package/dist/browser/chunks/tool-answer-eliminator-35483abd.js +13 -0
- package/dist/browser/chunks/tool-color-scheme-b7de5cdf.js +26 -0
- package/dist/browser/chunks/tool-dictionary-cecff3b4.js +7 -0
- package/dist/browser/chunks/tool-graph-cb0338e8.js +11 -0
- package/dist/browser/chunks/tool-host-contract-b93b482c.js +1 -0
- package/dist/browser/chunks/tool-instance-id-2a92deb0.js +1 -0
- package/dist/browser/chunks/tool-line-reader-f8ef3c6a.js +62 -0
- package/dist/browser/chunks/tool-periodic-table-43b133b8.js +153 -0
- package/dist/browser/chunks/tool-picture-dictionary-33721e91.js +4 -0
- package/dist/browser/chunks/tool-protractor-23f77028.js +17 -0
- package/dist/browser/chunks/tool-ruler-1d9a03a6.js +15 -0
- package/dist/browser/chunks/tool-tts-inline-98c2ce7a.js +179 -0
- package/dist/browser/chunks/tts-runtime-config-a7ab1ad4.js +194 -0
- package/dist/browser/chunks/variants-2LRNhOUP-966fc49d.js +1 -0
- package/dist/browser/chunks/versioned-tag-54a76be9.js +1 -0
- package/dist/browser/pie-section-player.js +1727 -0
- package/dist/browser.d.ts +10 -0
- package/dist/chunks/ItemToolBar-jx38w99s-1287ba31.js +28 -0
- package/dist/chunks/module-shim-58659a86.js +2129 -0
- package/dist/chunks/{nl-NL-9312c316.js → nl-NL-364d61b9.js} +9 -26
- package/dist/chunks/sre-engine-jd8cc08x-42d270e5.js +8 -0
- package/dist/components/shared/composition.d.ts +3 -2
- package/dist/components/shared/framework-error-latch.d.ts +32 -0
- package/dist/components/shared/host-element.d.ts +10 -0
- package/dist/components/shared/kernel-host-default-body.d.ts +14 -0
- package/dist/components/shared/layout-host-methods.d.ts +385 -0
- package/dist/components/shared/missing-tool-providers.d.ts +16 -0
- package/dist/components/shared/player-preload.d.ts +14 -10
- package/dist/components/shared/section-player-backend-delivery.d.ts +1 -1
- package/dist/components/shared/section-player-card-context.d.ts +5 -1
- package/dist/components/shared/section-player-host-runtime.d.ts +32 -19
- package/dist/components/shared/section-player-layout-context.d.ts +77 -0
- package/dist/components/shared/section-player-own-event.d.ts +10 -0
- package/dist/components/shared/section-player-runtime-callbacks.d.ts +1 -1
- package/dist/components/shared/section-player-shell-layout.svelte.d.ts +3 -11
- package/dist/components/shared/section-player-view-state.d.ts +6 -1
- package/dist/components/shared/toolkit-ready-wait.d.ts +16 -0
- package/dist/contracts/host-hooks.d.ts +4 -12
- package/dist/contracts/host-hooks.js +0 -0
- package/dist/contracts/runtime-host-contract.d.ts +0 -5
- package/dist/contracts/runtime-host-contract.js +0 -0
- package/dist/controllers/SectionController.d.ts +14 -0
- package/dist/controllers/toolkit-section-contracts.d.ts +1 -17
- package/dist/controllers/types.d.ts +25 -11
- package/dist/item-section/index.d.ts +22 -0
- package/dist/item-section/index.js +37 -0
- package/dist/pie-section-player.d.ts +4 -6
- package/dist/pie-section-player.js +22006 -41076
- package/dist/policies/index.d.ts +5 -16
- package/dist/policies/index.js +17 -0
- package/dist/policies/types.d.ts +0 -4
- package/package.json +33 -68
- package/dist/chunks/module-a516757f.js +0 -73997
- package/dist/chunks/nl-NL-ef6dd604.js +0 -505
- package/dist/chunks/pie-api-client-22de9d9c.js +0 -168
- package/dist/chunks/rolldown-runtime-1287ba31.js +0 -20
- package/dist/chunks/sre-0162a7a9.js +0 -17637
- package/dist/components/item-shell-element.d.ts +0 -1
- package/dist/components/shared/shell-registration.d.ts +0 -55
- package/dist/contracts/layout-contract.d.ts +0 -17
- package/dist/contracts/layout-parity-metadata.d.ts +0 -4
- package/dist/contracts/public-events.d.ts +0 -93
- package/dist/contracts/stages.d.ts +0 -10
- package/dist/policies/guards.d.ts +0 -2
- package/dist/utils/z-index.d.ts +0 -5
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import{t as q}from"./defineProperty-a20a667d.js";import{a as Vi,i as T,n as $,r as N,t as a}from"./classPrivateFieldGet2-338e0179.js";import{i as gl,m as ml,n as wl,r as bl}from"./tool-host-contract-b93b482c.js";import{i as yl}from"./provider-4c704118.js";import{r as _l}from"./tts-runtime-config-a7ab1ad4.js";import{c as kl,i as xl,t as $l}from"./catalog-context-46d3e50e.js";var Mi="pie-tts-control-handoff",Ei,Ai,Kn,$t,gn,mn,an,wt,at,qt,Ne,Sr,St,Ue,tt,Ln,cn,V,Ir,ke,Un,Oe,Vt,se,xe,ce,$e,nt,bt,ct,un,Vn,Jn,ot,Tr,J,He,Xe,be,Lt,Dn,Pn,Mr,lt,Ae;typeof window<"u"&&((Ei=(Ai=window).__svelte??(Ai.__svelte={})).v??(Ei.v=new Set)).add("5");var Yt={},G=Symbol("uninitialized"),Sl="http://www.w3.org/1999/xhtml",Ji=Array.isArray,Tl=Array.prototype.indexOf,Lr=Array.prototype.includes,ar=Array.from,Xn=Object.keys,_n=Object.defineProperty,Tt=Object.getOwnPropertyDescriptor,Yi=Object.getOwnPropertyDescriptors,Ml=Object.prototype,El=Array.prototype,Gr=Object.getPrototypeOf,Ni=Object.isExtensible,Al=()=>{};function Nl(e){for(var t=0;t<e.length;t++)e[t]()}function Gi(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var Te=1024,Ie=2048,Nt=4096,Qr=8192,Ol=16384,Qi=32768,Oi=1<<25,Xr=65536,Zt=1<<19,Cl=1<<20,wn=1<<25,Ci=1<<21,Rl=1<<22,Zn=1<<23,Mt=Symbol("$state"),Xi=Symbol("component"),Zi=Symbol("legacy props"),Wl=Symbol(""),Dr=Symbol("attributes"),Pr=Symbol("class"),jr=Symbol("style"),Yn=Symbol("text"),Sn=new class extends Error{constructor(...e){super(...e),q(this,"name","StaleReactionError"),q(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},zl=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml");function Il(){console.warn("https://svelte.dev/e/derived_inert")}function cr(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Ll(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}var W=!1;function Ce(e){W=e}var L;function ue(e){if(e===null)throw cr(),Yt;return L=e}function ur(){return ue(Ye(L))}function Ht(e){if(W){if(Ye(L)!==null)throw cr(),Yt;L=e}}function Dl(e=1){if(W){for(var t=e,n=L;t--;)n=Ye(n);L=n}}function er(e=!0){for(var t=0,n=L;;){if(n.nodeType===8){var r=n.data;if(r==="]"){if(t===0)return n;--t}else(r==="["||r==="[!"||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=Ye(n);e&&n.remove(),n=i}}function eo(e){if(!e||e.nodeType!==8)throw cr(),Yt;return e.data}function to(e){return e===this.v}function no(e,t){return e==e?e!==t||typeof e=="object"&&!!e||typeof e=="function":t==t}function ro(e){return!no(e,this.v)}function Pl(){throw Error("https://svelte.dev/e/async_derived_orphan")}function jl(e,t,n){throw Error("https://svelte.dev/e/each_key_duplicate")}function Fl(e){throw Error("https://svelte.dev/e/effect_in_teardown")}function ql(){throw Error("https://svelte.dev/e/effect_in_unowned_derived")}function Hl(e){throw Error("https://svelte.dev/e/effect_orphan")}function Bl(){throw Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Kl(){throw Error("https://svelte.dev/e/hydration_failed")}function Ul(e){throw Error("https://svelte.dev/e/props_invalid_value")}function Vl(){throw Error("https://svelte.dev/e/state_descriptors_fixed")}function Jl(){throw Error("https://svelte.dev/e/state_prototype_fixed")}function Yl(){throw Error("https://svelte.dev/e/state_unsafe_mutation")}function Gl(){throw Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}var re=null;function Gt(e){re=e}function io(e,t=!1,n){re={p:re,i:!1,c:null,e:null,s:e,x:null,r:A,l:null}}function oo(e){var t=re,n=t.e;if(n!==null){t.e=null;for(var r of n)So(r)}return e!==void 0&&(t.x=e),t.i=!0,re=t.p,Zr(e)}function Zr(e={}){return _n(e,Xi,{value:!0}),e}function Tn(){return!0}var kt=[];function lo(){var e=kt;kt=[],Nl(e)}function ut(e){if(kt.length===0&&!bn){var t=kt;queueMicrotask(()=>{t===kt&&lo()})}kt.push(e)}function Ql(){for(;kt.length>0;)lo()}var Xl=~(Ie|Nt|Te);function Y(e,t){e.f=e.f&Xl|t}function ei(e){e.f&512||e.deps===null?Y(e,Te):Y(e,Nt)}function so(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),Y(e,Te)}function fr(e){var t=O,n=A;fe(null),Ee(null);try{return e()}finally{fe(t),Ee(n)}}function Zl(e,t,n,r){let i=Tn()?kn:ti;var o=e.filter(g=>!g.settled),s=t.map(i);if(n.length===0&&o.length===0){r(s);return}var u=A,f=es(),h=o.length===1?o[0].promise:o.length>1?Promise.all(o.map(g=>g.promise)):null;function p(g){if(!(u.f&16384)){f();try{r([...s,...g])}catch(k){Je(k,u)}tr()}}var v=ao();if(n.length===0){h.then(()=>p([])).finally(v);return}function m(){Promise.all(n.map(g=>ts(g))).then(p).catch(g=>Je(g,u)).finally(v)}h?h.then(()=>{f(),m(),tr()}):m()}function es(){var e=A,t=O,n=re,r=E;return function(i=!0){Ee(e),fe(t),Gt(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function tr(e=!0){Ee(null),fe(null),Gt(null),e&&E?.deactivate()}function ao(){var e=A,t=e.b,n=E,r=!!t?.is_rendered();return t?.update_pending_count(1,n),n.increment(r,e),()=>{t?.update_pending_count(-1,n),n.decrement(r,e)}}function kn(e){var t=2|Ie;return A!==null&&(A.f|=Zt),{ctx:re,deps:null,effects:null,equals:to,f:t,fn:e,reactions:null,rv:0,v:G,wv:0,parent:A,ac:null}}var dn=Symbol("obsolete");function ts(e,t,n){let r=A;r===null&&Pl();var i=void 0,o=At(G),s=!O,u=new Set;return ms(()=>{var f=A,h=Gi();i=h.promise;try{Promise.resolve(e()).then(h.resolve,g=>{g!==Sn&&h.reject(g)}).finally(tr)}catch(g){h.reject(g),tr()}var p=E;if(s){if(f.f&32768)var v=ao();if(r.b?.is_rendered())p.async_deriveds.get(f)?.reject(dn);else for(let g of u.values())g.reject(dn);u.add(h),p.async_deriveds.set(f,h)}let m=(g,k=void 0)=>{v?.(),u.delete(h),k!==dn&&(p.activate(),k?(o.f|=Zn,Qt(o,k)):(o.f&8388608&&(o.f^=Zn),Qt(o,g)),p.deactivate())};h.promise.then(m,g=>m(null,g||"unknown"))}),ps(()=>{for(let f of u)f.reject(dn)}),new Promise(f=>{function h(p){function v(){p===i?f(o):h(i)}p.then(v,v)}h(i)})}function ne(e){let t=kn(e);return No(t),t}function ti(e){let t=kn(e);return t.equals=ro,t}function ns(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)ie(t[n])}}function ni(e){var t,n=A,r=e.parent;if(!rt&&r!==null&&e.v!==G&&r.f&24576)return Il(),e.v;Ee(r);try{ns(e),t=Wo(e)}finally{Ee(n)}return t}function co(e){var t=ni(e);if(!e.equals(t)&&(e.wv=Co(),(!E?.is_fork||e.deps===null)&&(E===null?e.v=t:(E.capture(e,t,!0),Fr?.capture(e,t,!0)),e.deps===null))){Y(e,Te);return}rt||(Re===null?ei(e):(oi()||E?.is_fork)&&Re.set(e,t))}function rs(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac!==null&&fr(()=>{t.ac.abort(Sn),t.ac=null}),t.fn!==null&&(t.teardown=Al),$n(t,0),ai(t))}function uo(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&t.fn!==null&&Xt(t)}var Bt=null,E=null,Fr=null,Re=null,qr=null,bn=!1,Er=!1,xn=null,nr=null,fo=0,is=1,en=(Kn=new WeakMap,$t=new WeakMap,gn=new WeakMap,mn=new WeakMap,an=new WeakMap,wt=new WeakMap,at=new WeakMap,qt=new WeakMap,Ne=new WeakMap,Sr=new WeakMap,St=new WeakMap,Ue=new WeakMap,tt=new WeakMap,Ln=new WeakMap,cn=new WeakMap,V=new WeakSet,Ir=class ho{constructor(){Vi(this,V),q(this,"id",is++),T(this,Kn,!1),q(this,"linked",!0),T(this,$t,null),T(this,gn,null),q(this,"async_deriveds",new Map),q(this,"current",new Map),q(this,"previous",new Map),T(this,mn,new Set),T(this,an,new Set),T(this,wt,0),T(this,at,new Map),T(this,qt,null),T(this,Ne,[]),T(this,Sr,[]),T(this,St,new Set),T(this,Ue,new Set),T(this,tt,new Map),T(this,Ln,new Set),q(this,"is_fork",!1),T(this,cn,!1),Bt===null?Bt=this:($(gn,Bt,this),$($t,this,Bt)),Bt=this}skip_effect(t){a(tt,this).has(t)||a(tt,this).set(t,{d:[],m:[]}),a(Ln,this).delete(t)}unskip_effect(t,n=r=>this.schedule(r)){var r=a(tt,this).get(t);if(r){a(tt,this).delete(t);for(var i of r.d)Y(i,Ie),n(i);for(i of r.m)Y(i,Nt),n(i)}a(Ln,this).add(t)}capture(t,n,r=!1){t.v!==G&&!this.previous.has(t)&&this.previous.set(t,t.v),t.f&8388608||(this.current.set(t,[n,r]),Re?.set(t,n)),this.is_fork||(t.v=n)}activate(){E=this}deactivate(){E=null,Re=null}flush(){try{Er=!0,E=this,N(V,this,rr).call(this)}finally{fo=0,qr=null,xn=null,nr=null,Er=!1,E=null,Re=null,Ve.clear()}}discard(){for(let t of a(an,this))t(this);a(an,this).clear();for(let t of this.async_deriveds.values())t.reject(dn);N(V,this,ir).call(this),a(qt,this)?.resolve()}register_created_effect(t){a(Sr,this).push(t)}increment(t,n){if($(wt,this,a(wt,this)+1),t){let r=a(at,this).get(n)??0;a(at,this).set(n,r+1)}}decrement(t,n){var r;if($(wt,this,(r=a(wt,this),--r)),t){let i=a(at,this).get(n)??0;i===1?a(at,this).delete(n):a(at,this).set(n,i-1)}a(cn,this)||($(cn,this,!0),ut(()=>{$(cn,this,!1),this.linked&&this.flush()}))}transfer_effects(t,n){for(let r of t)a(St,this).add(r);for(let r of n)a(Ue,this).add(r);t.clear(),n.clear()}oncommit(t){a(mn,this).add(t)}ondiscard(t){a(an,this).add(t)}settled(){return(a(qt,this)??$(qt,this,Gi())).promise}static ensure(){if(E===null){let t=E=new ho;!Er&&!bn&&ut(()=>{a(Kn,t)||t.flush()})}return E}apply(){Re=null}schedule(t){if(qr=t,t.b?.is_pending&&t.f&16777228&&!(t.f&32768)){t.b.defer_effect(t);return}a(Ne,this).push(t)}},Ir);function Ri(){if(this.is_fork)return!0;for(let n of a(at,this).keys()){for(var e=n,t=!1;e.parent!==null;){if(a(tt,this).has(e)){t=!0;break}e=e.parent}if(!t)return!0}return!1}function os(){var e=[];for(let i of a(Ne,this))if(!(i.f&16384||!(i.f&6144))){for(var t=i,n=!1;t.parent!==null;){t=t.parent;var r=t.f;if(r&96){if(!(r&1024)){n=!0;break}t.f^=Te}}n||e.push(t)}return $(Ne,this,[]),e}function rr(){$(Kn,this,!0);for(let s of a(St,this))a(Ue,this).delete(s),Y(s,Ie),this.schedule(s);for(let s of a(Ue,this))Y(s,Nt),this.schedule(s);this.apply();for(var e=xn=[],t=[],n=nr=[];a(Ne,this).length>0;){fo++>1e3&&(N(V,this,ir).call(this),cs());for(let s of N(V,this,os).call(this))try{N(V,this,ls).call(this,s,e,t)}catch(u){throw go(s),N(V,this,Ri).call(this)||this.discard(),u}}if(E=null,n.length>0){var r=Ir.ensure();for(let s of n)r.schedule(s)}if(xn=null,nr=null,N(V,this,Ri).call(this)){N(V,this,jn).call(this,t),N(V,this,jn).call(this,e);for(let[s,u]of a(tt,this))vo(s,u);n.length>0&&N(V,E,rr).call(E);return}let i=N(V,this,ss).call(this);if(i){N(V,this,jn).call(this,t),N(V,this,jn).call(this,e),N(V,i,as).call(i,this);return}a(St,this).clear(),a(Ue,this).clear();for(let s of a(mn,this))s(this);a(mn,this).clear(),Fr=this,Wi(t),Wi(e),Fr=null,a(qt,this)?.resolve();var o=E;if(a(wt,this)===0&&(a(Ne,this).length===0||o!==null)&&N(V,this,ir).call(this),a(Ne,this).length>0)if(o!==null){for(let s of a(Ne,this))a(Ne,o).push(s);$(Ne,this,[])}else o=this;o!==null&&(Ve.clear(),N(V,o,rr).call(o))}function ls(e,t,n){e.f^=Te;for(var r=e.first;r!==null;){var i=r.f,o=!!(i&96);if(!(o&&i&1024||i&8192||a(tt,this).has(r))&&r.fn!==null){o?r.f^=Te:i&4?t.push(r):Mn(r)&&(i&16&&a(Ue,this).add(r),Xt(r));var s=r.first;if(s!==null){r=s;continue}}for(;r!==null;){var u=r.next;if(u!==null){r=u;break}r=r.parent}}}function ss(){for(var e=a($t,this);e!==null;){if(!e.is_fork){for(let[t,[,n]]of this.current)if(e.current.has(t)&&!n)return e}e=a($t,e)}return null}function as(e){for(let[n,r]of e.current)!this.previous.has(n)&&e.previous.has(n)&&this.previous.set(n,e.previous.get(n)),this.current.set(n,r);for(let[n,r]of e.async_deriveds){let i=this.async_deriveds.get(n);i&&r.promise.then(i.resolve).catch(i.reject)}e.async_deriveds.clear(),this.transfer_effects(a(St,e),a(Ue,e));let t=n=>{var r=n.reactions;if(r!==null&&!(n.f&2&&!(n.f&6144)))for(let s of r){var i=s.f;if(i&2)t(s);else{var o=s;i&4194320&&!this.async_deriveds.has(o)&&(a(Ue,this).delete(o),Y(o,Ie),this.schedule(o))}}};for(let n of this.current.keys())t(n);this.oncommit(()=>e.discard()),N(V,e,ir).call(e),E=this,N(V,this,rr).call(this)}function jn(e){for(var t=0;t<e.length;t+=1)so(e[t],a(St,this),a(Ue,this))}function ir(){if(this.linked){var e=a($t,this),t=a(gn,this);e===null||$(gn,e,t),t===null?Bt=e:$($t,t,e),this.linked=!1}}function yt(e){var t=bn;bn=!0;try{var n;for(e&&(E!==null&&!E.is_fork&&E.flush(),n=e());;){if(Ql(),E===null)return n;E.flush()}}finally{bn=t}}function cs(){try{Bl()}catch(e){Je(e,qr)}}var et=null;function Wi(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Mn(r)&&(et=new Set,Xt(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Mo(r),et?.size>0)){Ve.clear();for(let i of et){if(i.f&24576)continue;let o=[i],s=i.parent;for(;s!==null;)et.has(s)&&(et.delete(s),o.push(s)),s=s.parent;for(let u=o.length-1;u>=0;u--){let f=o[u];f.f&24576||Xt(f)}}et.clear()}}et=null}}function po(e){E.schedule(e)}function vo(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),Y(e,Te);for(var n=e.first;n!==null;)vo(n,t),n=n.next}}function go(e){Y(e,Te);for(var t=e.first;t!==null;)go(t),t=t.next}var or=new Set,Ve=new Map,mo=!1;function At(e,t){return{f:0,v:e,reactions:null,equals:to,rv:0,wv:0}}function F(e,t){let n=At(e,t);return No(n),n}function wo(e,t=!1,n=!0){let r=At(e);return t||(r.equals=ro),r}function y(e,t,n=!1){return O!==null&&(!We||O.f&131072)&&Tn()&&O.f&4325394&&(ze===null||!ze.has(e))&&Yl(),Qt(e,n?Kt(t):t,nr)}var _t=null,Hr=0;function Qt(e,t,n=null){if(!e.equals(t)){rt?Ve.set(e,t):Ve.has(e)||Ve.set(e,e.v);var r=en.ensure();if(r.capture(e,t),e.f&2){let i=e;e.f&2048&&ni(i),Re===null&&ei(i)}e.wv=Co(),_t=null,Hr=0,bo(e,Ie,n),_t=null,Tn()&&A!==null&&A.f&1024&&!(A.f&96)&&(_e===null?_s([e]):_e.push(e)),!r.is_fork&&or.size>0&&!mo&&us()}return t}function us(){mo=!1;for(let e of or){e.f&1024&&Y(e,Nt);let t;try{t=Mn(e)}catch{t=!0}t&&Xt(e)}or.clear()}function yn(e){y(e,e.v+1)}function bo(e,t,n){var r=e.reactions;if(r!==null){var i=Tn(),o=r.length;if(Hr+=o,Hr>1e5&&_t===null&&(_t=new Set),_t!==null){if(_t.has(e))return;_t.add(e)}for(var s=0;s<o;s++){var u=r[s],f=u.f;if(i||u!==A){var h=(f&Ie)===0;if(h&&Y(u,t),f&131072)or.add(u);else if(f&2){var p=u;Re?.delete(p),bo(p,Nt,n)}else if(h){var v=u;f&16&&et!==null&&et.add(v),n===null?po(v):n.push(v)}}}}}function Kt(e){if(typeof e!="object"||!e||Mt in e||Xi in e)return e;let t=Gr(e);if(t!==Ml&&t!==El)return e;var n=new Map,r=Ji(e),i=F(0),o=null,s=Et,u=f=>{if(Et===s)return f();var h=O,p=Et;fe(null),Li(s);var v=f();return fe(h),Li(p),v};return r&&n.set("length",F(e.length,o)),new Proxy(e,{defineProperty(f,h,p){(!("value"in p)||p.configurable===!1||p.enumerable===!1||p.writable===!1)&&Vl();var v=n.get(h);return v===void 0?u(()=>{var m=F(p.value,o);return n.set(h,m),m}):y(v,p.value,!0),!0},deleteProperty(f,h){var p=n.get(h);if(p===void 0){if(h in f){let v=u(()=>F(G,o));n.set(h,v),yn(i)}}else y(p,G),yn(i);return!0},get(f,h,p){if(h===Mt)return e;var v=n.get(h),m=h in f;if(v===void 0&&(!m||Tt(f,h)?.writable)&&(v=u(()=>F(Kt(m?f[h]:G),o)),n.set(h,v)),v!==void 0){var g=l(v);return g===G?void 0:g}return Reflect.get(f,h,p)},getOwnPropertyDescriptor(f,h){this.has?.(f,h);var p=Reflect.getOwnPropertyDescriptor(f,h),v=n.get(h);if(v!==void 0){var m=l(v);if(m===G)return;if(p&&"value"in p)p.value=m;else return{enumerable:!0,configurable:!0,value:m,writable:!0}}return p},has(f,h){if(h===Mt)return!0;var p=n.get(h),v=p!==void 0&&p.v!==G||Reflect.has(f,h);return(p!==void 0||A!==null&&(!v||Tt(f,h)?.writable))&&(p===void 0&&(p=u(()=>F(v?Kt(f[h]):G,o)),n.set(h,p)),l(p)===G)?!1:v},set(f,h,p,v){var m=n.get(h),g=h in f;if(r&&h==="length")for(var k=p;k<m.v;k+=1){var M=n.get(k+"");M===void 0?k in f&&(M=u(()=>F(G,o)),n.set(k+"",M)):y(M,G)}if(m===void 0)(!g||Tt(f,h)?.writable)&&(m=u(()=>F(void 0,o)),y(m,Kt(p)),n.set(h,m));else{g=m.v!==G;var b=u(()=>Kt(p));y(m,b)}var _=Reflect.getOwnPropertyDescriptor(f,h);if(_?.set&&_.set.call(v,p),!g){if(r&&typeof h=="string"){var U=n.get("length"),B=Number(h);Number.isInteger(B)&&B>=U.v&&y(U,B+1)}yn(i)}return!0},ownKeys(f){l(i);var h=Reflect.ownKeys(f).filter(m=>{var g=n.get(m);return g===void 0||g.v!==G});for(var[p,v]of n)v.v!==G&&!(p in f)&&h.push(p);return h},setPrototypeOf(){Jl()}})}var zi,yo,_o,ko;function Br(){if(zi===void 0){zi=window,yo=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;_o=Tt(t,"firstChild").get,ko=Tt(t,"nextSibling").get,Ni(e)&&(e[Pr]=void 0,e[Dr]=null,e[jr]=void 0,e.__e=void 0),Ni(n)&&(n[Yn]=void 0)}}function Se(e=""){return document.createTextNode(e)}function ft(e){return _o.call(e)}function Ye(e){return ko.call(e)}function pn(e,t){if(!W)return ft(e);var n=ft(L);if(n===null)n=L.appendChild(Se());else if(t&&n.nodeType!==3){var r=Se();return n?.before(r),ue(r),r}return t&&ii(n),ue(n),n}function Fn(e,t=!1){if(!W){var n=ft(e);return n instanceof Comment&&n.data===""?Ye(n):n}if(t){if(L?.nodeType!==3){var r=Se();return L?.before(r),ue(r),r}ii(L)}return L}function Ar(e,t=!1){if(!W)return ft(e);var n=pn(e,t);return Ht(e),n}function Dt(e,t=1,n=!1){let r=W?L:e;for(var i;t--;)i=r,r=Ye(r);if(!W)return r;if(n){if(r?.nodeType!==3){var o=Se();return r===null?i?.after(o):r.before(o),ue(o),o}ii(r)}return ue(r),r}function xo(e){e.textContent=""}function $o(){return!1}function ri(e,t,n){return t==null||t==="http://www.w3.org/1999/xhtml"?n?document.createElement(e,{is:n}):document.createElement(e):n?document.createElementNS(t,e,{is:n}):document.createElementNS(t,e)}function ii(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function fs(e){var t=A;if(t===null)return O.f|=Zn,e;if(!(t.f&32768)&&!(t.f&4))throw e;Je(e,t)}function Je(e,t){if(!(t!==null&&t.f&16384)){for(;t!==null;){if(t.f&128&&!(t.f&33570816)){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}}function hs(e){A===null&&(O===null&&Hl(e),ql()),rt&&Fl(e)}function ds(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Ge(e,t){var n=A;n!==null&&n.f&8192&&(e|=Qr);var r={ctx:re,deps:null,nodes:null,f:e|Ie|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};E?.register_created_effect(r);var i=r;if(e&4)xn===null?en.ensure().schedule(r):xn.push(r);else if(t!==null){try{Xt(r)}catch(s){throw ie(r),s}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=Xr))}if(i!==null&&(i.parent=n,n!==null&&ds(i,n),O!==null&&O.f&2&&!(e&64))){var o=O;(o.effects??(o.effects=[])).push(i)}return r}function oi(){return O!==null&&!We}function ps(e){let t=Ge(8,null);return Y(t,Te),t.teardown=e,t}function Ze(e){hs("$effect");var t=A.f;if(!O&&t&32&&re!==null&&!re.i){var n=re;(n.e??(n.e=[])).push(e)}else return So(e)}function So(e){return Ge(4|Cl,e)}function vs(e){en.ensure();let t=Ge(64|Zt,e);return()=>{ie(t)}}function gs(e){en.ensure();let t=Ge(64|Zt,e);return(n={})=>new Promise(r=>{n.outro?Ot(t,()=>{ie(t),r(void 0)}):(ie(t),r(void 0))})}function li(e){return Ge(4,e)}function ms(e){return Ge(Rl|Zt,e)}function hr(e,t=0){return Ge(8|t,e)}function Be(e,t=[],n=[],r=[]){Zl(r,t,n,i=>{Ge(8,()=>{e(...i.map(l))})})}function si(e,t=0){return Ge(16|t,e)}function Me(e){return Ge(32|Zt,e)}function To(e){var t=e.teardown;if(t!==null){let n=rt,r=O;Ii(!0),fe(null);try{t.call(null)}catch(i){Je(i,e.parent)}finally{Ii(n),fe(r)}}}function ai(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let i=n.ac;i!==null&&fr(()=>{i.abort(Sn)});var r=n.next;n.f&64?n.parent=null:ie(n,t),n=r}}function ws(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||ie(t),t=n}}function ie(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(bs(e.nodes.start,e.nodes.end),n=!0),e.f|=Oi,ai(e,t&&!n),$n(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let o of r)o.stop();To(e),e.f^=Oi,e.f|=Ol;var i=e.parent;i!==null&&i.first!==null&&Mo(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function bs(e,t){for(;e!==null;){var n=e===t?null:Ye(e);e.remove(),e=n}}function Mo(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Ot(e,t,n=!0){var r=[];e.f|=256,Eo(e,r,!0);var i=()=>{n&&ie(e),t&&t()},o=r.length;if(o>0){var s=()=>--o||i();for(var u of r)u.out(s)}else i()}function Eo(e,t,n){if(!(e.f&8192)){e.f^=Qr;var r=e.nodes&&e.nodes.t;if(r!==null)for(let u of r)(u.is_global||n)&&t.push(u);for(var i=e.first;i!==null;){var o=i.next;if(!(i.f&64)){var s=!!(i.f&65536)||!!(i.f&32)&&!!(e.f&16);Eo(i,t,s?n:!1)}i=o}}}function lr(e){e.f&=-257,Ao(e,!0)}function Ao(e,t){if(!(e.f&256)&&e.f&8192){e.f^=Qr,e.f&1024||(Y(e,Ie),en.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=!!(n.f&65536)||!!(n.f&32);Ao(n,i?t:!1),n=r}var o=e.nodes&&e.nodes.t;if(o!==null)for(let s of o)(s.is_global||t)&&s.in()}}function ci(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:Ye(n);t.append(n),n=i}}var ys=null,Gn=!1,rt=!1;function Ii(e){rt=e}var O=null,We=!1;function fe(e){O=e}var A=null;function Ee(e){A=e}var ze=null;function No(e){O!==null&&(O.f&2097152||O.f&2)&&(ze??(ze=new Set)).add(e)}var ae=null,ve=0,_e=null;function _s(e){_e=e}var Oo=1,xt=0,Et=xt;function Li(e){Et=e}function Co(){return++Oo}function Mn(e){var t=e.f;if(t&2048)return!0;if(t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var o=n[i];if(Mn(o)&&co(o),o.wv>e.wv)return!0}t&512&&Re===null&&Y(e,Te)}return!1}function Ro(e,t,n=!0){var r=e.reactions;if(r!==null&&!(ze!==null&&ze.has(e)))for(var i=0;i<r.length;i++){var o=r[i];o.f&2?Ro(o,t,!1):t===o&&(n?Y(o,Ie):o.f&1024&&Y(o,Nt),po(o))}}function Wo(e){var t=ae,n=ve,r=_e,i=O,o=ze,s=re,u=We,f=Et,h=e.f;ae=null,ve=0,_e=null,O=h&96?null:e,ze=null,Gt(e.ctx),We=!1,Et=++xt,e.ac!==null&&(fr(()=>{e.ac.abort(Sn)}),e.ac=null);try{e.f|=Ci;var p=e.fn,v=p();e.f|=Qi;var m=Di(e);if(Tn()&&_e!==null&&!We&&m!==null&&!(e.f&6146))for(var g=0;g<_e.length;g++)Ro(_e[g],e);if(i!==null&&i!==e){if(xt++,i.deps!==null)for(let k=0;k<n;k+=1)i.deps[k].rv=xt;if(t!==null)for(let k of t)k.rv=xt;_e!==null&&(r===null?r=_e:r.push(..._e))}return e.f&8388608&&(e.f^=Zn),v}catch(k){return Di(e),fs(k)}finally{e.f^=Ci,ae=t,ve=n,_e=r,O=i,ze=o,Gt(s),We=u,Et=f}}function Di(e){var t=e.deps,n=E?.is_fork;if(ae!==null){var r,i;if(n||$n(e,ve),t!==null&&ve>0)for(t.length=ve+ae.length,i=0;i<ae.length;i++)t[ve+i]=ae[i];else e.deps=t=ae;if(oi()&&e.f&512)for(i=ve;i<t.length;i++)((r=t[i]).reactions??(r.reactions=[])).push(e)}else!n&&t!==null&&ve<t.length&&($n(e,ve),t.length=ve);return t}function ks(e,t){let n=t.reactions;if(n!==null){var r=Tl.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&2&&(ae===null||!Lr.call(ae,t))){var o=t;o.f&512&&(o.f^=512),o.v!==G&&ei(o),o.ac!==null&&fr(()=>{o.ac.abort(Sn),o.ac=null,Y(o,Ie)}),rs(o),$n(o,0)}}function $n(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)ks(e,n[r])}function Xt(e){var t=e.f;if(!(t&16384)){Y(e,Te);var n=A,r=Gn;A=e,Gn=!(t&96);try{t&16777232?ws(e):ai(e),To(e);var i=Wo(e);e.teardown=typeof i=="function"?i:null,e.wv=Oo}finally{Gn=r,A=n}}}function l(e){var t=!!(e.f&2);if(ys?.add(e),O!==null&&!We&&!(A!==null&&A.f&16384)&&(ze===null||!ze.has(e))){var n=O.deps;if(O.f&2097152)e.rv<xt&&(e.rv=xt,ae===null&&n!==null&&n[ve]===e?ve++:ae===null?ae=[e]:ae.push(e));else{var r;(r=O).deps??(r.deps=[]),Lr.call(O.deps,e)||O.deps.push(e);var i=e.reactions;i===null?e.reactions=[O]:Lr.call(i,O)||i.push(O)}}if(rt&&Ve.has(e))return Ve.get(e);if(t){var o=e;if(rt){var s=o.v;return(!(o.f&1024)&&o.reactions!==null||Io(o))&&(s=ni(o)),Ve.set(o,s),s}var u=!(o.f&512)&&!We&&O!==null&&(Gn||!!(O.f&512)),f=(o.f&Qi)===0;Mn(o)&&(u&&(o.f|=512),co(o)),u&&!f&&(uo(o),zo(o))}if(Re?.has(e))return Re.get(e);if(e.f&8388608)throw e.v;return e.v}function zo(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??(t.reactions=[])).push(e),t.f&2&&!(t.f&512)&&(uo(t),zo(t))}function Io(e){if(e.v===G)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(Ve.has(t)||t.f&2&&Io(t))return!0;return!1}function dr(e){var t=We;try{return We=!0,e()}finally{We=t}}function xs(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(Mt in e)Kr(e);else if(!Array.isArray(e))for(let t in e){let n=e[t];typeof n=="object"&&n&&Mt in n&&Kr(n)}}}function Kr(e,t=new Set){if(typeof e=="object"&&e&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let r in e)try{Kr(e[r],t)}catch{}let n=Gr(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){let r=Yi(n);for(let i in r){let o=r[i].get;if(o)try{o.call(e)}catch{}}}}}var Ut=Symbol("events"),Lo=new Set,Ur=new Set;function Ke(e,t,n){(t[Ut]??(t[Ut]={}))[e]=n}function $s(e){for(var t=0;t<e.length;t++)Lo.add(e[t]);for(var n of Ur)n(e)}var Nr=null,Or=!1;function Pi(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],o=i[0]||e.target;Nr=e,Or||(Or=!0,setTimeout(()=>{Or=!1,Nr=null}));var s=0,u=Nr===e&&e[Ut];if(u){var f=i.indexOf(u);if(f!==-1&&(t===document||t===window)){e[Ut]=t;return}var h=i.indexOf(t);if(h===-1)return;f<=h&&(s=f)}if(o=i[s]||e.target,o!==t){_n(e,"currentTarget",{configurable:!0,get(){return o||n}});var p=O,v=A;fe(null),Ee(null);try{for(var m,g=[];o!==null&&o!==t;){try{var k=o[Ut]?.[r];k!=null&&(!o.disabled||e.target===o)&&k.call(o,e)}catch(M){m?g.push(M):m=M}if(e.cancelBubble)break;s++,o=s<i.length?i[s]:null}if(m){for(let M of g)queueMicrotask(()=>{throw M});throw m}}finally{e[Ut]=t,delete e.currentTarget,fe(p),Ee(v)}}}var Ss=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Ts(e){return Ss?.createHTML(e)??e}function Ms(e){var t=ri("template");return t.innerHTML=Ts(e.replaceAll("<!>","<!---->")),t.content}function Jt(e,t){var n=A;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function ht(e,t){var n=!!(t&1),r=!!(t&2),i,o=!e.startsWith("<!>");return()=>{if(W)return Jt(L,null),L;i===void 0&&(i=Ms(o?e:"<!>"+e),n||(i=ft(i)));var s=r||yo?document.importNode(i,!0):i.cloneNode(!0);if(n){var u=ft(s),f=s.lastChild;Jt(u,f)}else Jt(s,s);return s}}function ji(){if(W)return Jt(L,null),L;var e=document.createDocumentFragment(),t=document.createComment(""),n=Se();return e.append(t,n),Jt(t,n),e}function ye(e,t){if(W){var n=A;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=L),ur();return}e!==null&&e.before(t)}[..."allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback".split(".")];var Es=["touchstart","touchmove"];function As(e){return Es.includes(e)}function Ns(e){let t=0,n=At(0),r;return()=>{oi()&&(l(n),hr(()=>(t===0&&(r=dr(()=>e(()=>yn(n)))),t+=1,()=>{ut(()=>{--t,t===0&&(r?.(),r=void 0,yn(n))})})))}}var Os=Xr|Zt;function Cs(e,t,n,r){new Rs(e,t,n,r)}var Rs=(ke=new WeakMap,Un=new WeakMap,Oe=new WeakMap,Vt=new WeakMap,se=new WeakMap,xe=new WeakMap,ce=new WeakMap,$e=new WeakMap,nt=new WeakMap,bt=new WeakMap,ct=new WeakMap,un=new WeakMap,Vn=new WeakMap,Jn=new WeakMap,ot=new WeakMap,Tr=new WeakMap,J=new WeakSet,class{constructor(e,t,n,r){Vi(this,J),q(this,"parent",void 0),q(this,"is_pending",!1),q(this,"transform_error",void 0),T(this,ke,void 0),T(this,Un,W?L:null),T(this,Oe,void 0),T(this,Vt,void 0),T(this,se,void 0),T(this,xe,null),T(this,ce,null),T(this,$e,null),T(this,nt,null),T(this,bt,0),T(this,ct,0),T(this,un,!1),T(this,Vn,new Set),T(this,Jn,new Set),T(this,ot,null),T(this,Tr,Ns(()=>($(ot,this,At(a(bt,this))),()=>{$(ot,this,null)}))),$(ke,this,e),$(Oe,this,t),$(Vt,this,i=>{var o=A;o.b=this,o.f|=128,n(i)}),this.parent=A.b,this.transform_error=r??this.parent?.transform_error??(i=>i),$(se,this,si(()=>{if(W){let i=a(Un,this);ur();let o=i.data==="[!";if(i.data.startsWith("[?")){let s=JSON.parse(i.data.slice(2));N(J,this,zs).call(this,s)}else o?N(J,this,Is).call(this):N(J,this,Ws).call(this)}else N(J,this,Po).call(this)},Os)),W&&$(ke,this,L)}defer_effect(e){so(e,a(Vn,this),a(Jn,this))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!a(Oe,this).pending}update_pending_count(e,t){N(J,this,jo).call(this,e,t),$(bt,this,a(bt,this)+e),a(ot,this)&&!a(un,this)&&($(un,this,!0),ut(()=>{$(un,this,!1),a(ot,this)&&Qt(a(ot,this),a(bt,this))}))}get_effect_pending(){return a(Tr,this).call(this),l(a(ot,this))}error(e){if(!a(Oe,this).onerror&&!a(Oe,this).failed)throw e;E?.is_fork?(a(xe,this)&&E.skip_effect(a(xe,this)),a(ce,this)&&E.skip_effect(a(ce,this)),a($e,this)&&E.skip_effect(a($e,this)),E.oncommit(()=>{N(J,this,Fi).call(this,e)})):N(J,this,Fi).call(this,e)}});function Ws(){try{$(xe,this,Me(()=>a(Vt,this).call(this,a(ke,this))))}catch(e){this.error(e)}}function zs(e){let t=a(Oe,this).failed,{reset:n,invoke_onerror:r}=N(J,this,Do).call(this,e);ut(r),t&&$($e,this,Me(()=>{t(a(ke,this),()=>e,()=>n)}))}function Do(e){var t=!1,n=!1;let r=()=>{if(t){Ll();return}t=!0,n&&Gl(),a($e,this)!==null&&Ot(a($e,this),()=>{$($e,this,null)}),N(J,this,ui).call(this,()=>{N(J,this,Po).call(this)})};return{reset:r,invoke_onerror:()=>{try{n=!0,a(Oe,this).onerror?.(e,r),n=!1}catch(i){Je(i,a(se,this)&&a(se,this).parent)}}}}function Is(){let e=a(Oe,this).pending;e&&(this.is_pending=!0,$(ce,this,Me(()=>e(a(ke,this)))),ut(()=>{var t=$(nt,this,document.createDocumentFragment()),n=Se(),r=!1;if(t.append(n),$(xe,this,N(J,this,ui).call(this,()=>{try{return Me(()=>a(Vt,this).call(this,n))}catch(i){try{this.error(i),r=!0}catch(o){Je(o,a(se,this).parent)}return null}})),a(xe,this)===null){$(nt,this,null),r&&N(J,this,sr).call(this,E);return}a(ct,this)===0&&(a(ke,this).before(t),$(nt,this,null),Ot(a(ce,this),()=>{$(ce,this,null)}),N(J,this,sr).call(this,E))}))}function Po(){try{if(this.is_pending=this.has_pending_snippet(),$(ct,this,0),$(bt,this,0),$(xe,this,Me(()=>{a(Vt,this).call(this,a(ke,this))})),a(ct,this)>0){var e=$(nt,this,document.createDocumentFragment());ci(a(xe,this),e);let t=a(Oe,this).pending;$(ce,this,Me(()=>t(a(ke,this))))}else N(J,this,sr).call(this,E)}catch(t){this.error(t)}}function sr(e){this.is_pending=!1,e.transfer_effects(a(Vn,this),a(Jn,this))}function ui(e){var t=A,n=O,r=re;Ee(a(se,this)),fe(a(se,this)),Gt(a(se,this).ctx);try{return en.ensure(),e()}finally{Ee(t),fe(n),Gt(r)}}function jo(e,t){if(!this.has_pending_snippet()){var n;this.parent&&N(J,n=this.parent,jo).call(n,e,t);return}$(ct,this,a(ct,this)+e),a(ct,this)===0&&(N(J,this,sr).call(this,t),a(ce,this)&&Ot(a(ce,this),()=>{$(ce,this,null)}),a(nt,this)&&$(nt,this,(a(ke,this).before(a(nt,this)),null)))}function Fi(e){a(xe,this)&&$(xe,this,(ie(a(xe,this)),null)),a(ce,this)&&$(ce,this,(ie(a(ce,this)),null)),a($e,this)&&$($e,this,(ie(a($e,this)),null)),W&&(ue(a(Un,this)),Dl(),ue(er()));let t=a(Oe,this).failed,n=r=>{let{reset:i,invoke_onerror:o}=N(J,this,Do).call(this,r);o(),t&&$($e,this,N(J,this,ui).call(this,()=>{try{return Me(()=>{var s=A;s.b=this,s.f|=128,t(a(ke,this),()=>r,()=>i)})}catch(s){return Je(s,a(se,this).parent),null}}))};ut(()=>{var r;try{r=this.transform_error(e)}catch(i){Je(i,a(se,this)&&a(se,this).parent);return}typeof r=="object"&&r&&typeof r.then=="function"?r.then(n,i=>Je(i,a(se,this)&&a(se,this).parent)):n(r)})}function qi(e,t){var n=t==null?"":typeof t=="object"?`${t}`:t;n!==(e[Yn]??(e[Yn]=e.nodeValue))&&(e[Yn]=n,e.nodeValue=`${n}`)}function Fo(e,t){return qo(e,t)}function Ls(e,t){Br(),t.intro=t.intro??!1;let n=t.target,r=W,i=L;try{for(var o=ft(n);o&&(o.nodeType!==8||o.data!=="[");)o=Ye(o);if(!o)throw Yt;Ce(!0),ue(o);let s=qo(e,{...t,anchor:o});return Ce(!1),s}catch(s){if(s instanceof Error&&s.message.split(`
|
|
2
|
+
`).some(u=>u.startsWith("https://svelte.dev/e/")))throw s;return s!==Yt&&console.warn("Failed to hydrate: ",s),t.recover===!1&&Kl(),Br(),xo(n),Ce(!1),Fo(e,t)}finally{Ce(r),ue(i)}}var qn=new Map;function qo(e,{target:t,anchor:n,props:r={},events:i,context:o,intro:s=!0,transformError:u}){Br();var f=void 0,h=gs(()=>{var p=n??t.appendChild(Se());Cs(p,{pending:()=>{}},g=>{io({});var k=re;if(o&&(k.c=o),i&&(r.$$events=i),W&&Jt(g,null),f=e(g,r)||Zr(),W&&(A.nodes.end=L,L===null||L.nodeType!==8||L.data!=="]"))throw cr(),Yt;oo()},u);var v=new Set,m=g=>{for(var k=0;k<g.length;k++){var M=g[k];if(!v.has(M)){v.add(M);var b=As(M);for(let B of[t,document]){var _=qn.get(B);_===void 0&&(_=new Map,qn.set(B,_));var U=_.get(M);U===void 0?(B.addEventListener(M,Pi,{passive:b}),_.set(M,1)):_.set(M,U+1)}}}};return m(ar(Lo)),Ur.add(m),()=>{for(var g of v)for(let b of[t,document]){var k=qn.get(b),M=k.get(g);--M==0?(b.removeEventListener(g,Pi),k.delete(g),k.size===0&&qn.delete(b)):k.set(g,M)}Ur.delete(m),p!==n&&p.parentNode?.removeChild(p)}});return Vr.set(f,h),f}var Vr=new WeakMap;function Ds(e,t){let n=Vr.get(e);return n?(Vr.delete(e),n(t)):Promise.resolve()}var Ps=(He=new WeakMap,Xe=new WeakMap,be=new WeakMap,Lt=new WeakMap,Dn=new WeakMap,Pn=new WeakMap,Mr=new WeakMap,class{constructor(e,t=!0){q(this,"anchor",void 0),T(this,He,new Map),T(this,Xe,new Map),T(this,be,new Map),T(this,Lt,new Set),T(this,Dn,!0),T(this,Pn,n=>{if(a(He,this).has(n)){var r=a(He,this).get(n),i=a(Xe,this).get(r);if(i)lr(i),a(Lt,this).delete(r);else{var o=a(be,this).get(r);o&&(lr(o.effect),a(Xe,this).set(r,o.effect),a(be,this).delete(r),o.fragment.lastChild.remove(),this.anchor.before(o.fragment),i=o.effect)}for(let[s,u]of a(He,this)){if(a(He,this).delete(s),s===n)break;let f=a(be,this).get(u);f&&(ie(f.effect),a(be,this).delete(u))}for(let[s,u]of a(Xe,this)){if(s===r||a(Lt,this).has(s))continue;let f=()=>{if(Array.from(a(He,this).values()).includes(s)){var h=document.createDocumentFragment();ci(u,h),h.append(Se()),a(be,this).set(s,{effect:u,fragment:h})}else ie(u);a(Lt,this).delete(s),a(Xe,this).delete(s)};a(Dn,this)||!i?(a(Lt,this).add(s),Ot(u,f,!1)):f()}}}),T(this,Mr,n=>{a(He,this).delete(n);let r=Array.from(a(He,this).values());for(let[i,o]of a(be,this))r.includes(i)||(ie(o.effect),a(be,this).delete(i))}),this.anchor=e,$(Dn,this,t)}ensure(e,t){var n=E,r=$o();if(t&&!a(Xe,this).has(e)&&!a(be,this).has(e))if(r){var i=document.createDocumentFragment(),o=Se();i.append(o),a(be,this).set(e,{effect:Me(()=>t(o)),fragment:i})}else a(Xe,this).set(e,Me(()=>t(this.anchor)));if(a(He,this).set(n,e),r){for(let[s,u]of a(Xe,this))s===e?n.unskip_effect(u):n.skip_effect(u);for(let[s,u]of a(be,this))s===e?n.unskip_effect(u.effect):n.skip_effect(u.effect);n.oncommit(a(Pn,this)),n.ondiscard(a(Mr,this))}else W&&(this.anchor=L),a(Pn,this).call(this,n)}});function fn(e,t,n=!1){var r;W&&(r=L,ur());var i=new Ps(e),o=n?Xr:0;function s(u,f){if(W){var h=eo(r);if(u!==parseInt(h.substring(1))){var p=er();ue(p),i.anchor=p,Ce(!1),i.ensure(u,f),Ce(!0);return}}i.ensure(u,f)}si(()=>{var u=!1;t((f,h=0)=>{u=!0,s(h,f)}),u||s(-1,null)},o)}function js(e,t,n){for(var r=[],i=t.length,o,s=t.length,u=0;u<i;u++){let v=t[u];Ot(v,()=>{if(o){if(o.pending.delete(v),o.done.add(v),o.pending.size===0){var m=e.outrogroups;Jr(e,ar(o.done)),m.delete(o),m.size===0&&(e.outrogroups=null)}}else--s},!1)}if(s===0){var f=r.length===0&&n!==null&&e.pending.size===0;if(f){var h=n,p=h.parentNode;xo(p),p.append(h),e.items.clear()}Jr(e,t,!f)}else o={pending:new Set(t),done:new Set},(e.outrogroups??(e.outrogroups=new Set)).add(o)}function Jr(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let s of e.pending.values())for(let u of s)r.add(e.items.get(u).e)}for(var i=0;i<t.length;i++){var o=t[i];r?.has(o)?(o.f|=wn,ci(o,document.createDocumentFragment())):ie(t[i],n)}}var Hn;function Fs(e,t,n,r,i,o=null){var s=e,u=new Map;if(t&4){var f=e;s=W?ue(ft(f)):f.appendChild(Se())}W&&ur();var h=null,p=ti(()=>{var _=n();return Ji(_)?_:_==null?[]:ar(_)}),v,m=new Map,g=!0;function k(_){b.effect.f&16384||(b.pending.delete(_),b.fallback=h,qs(b,v,s,t,r),h!==null&&(v.length===0?h.f&33554432?(h.f^=wn,vn(h,null,s)):lr(h):Ot(h,()=>{h=null})))}function M(_){b.pending.delete(_)}var b={effect:si(()=>{v=l(p);var _=v.length;let U=!1;W&&eo(s)==="[!"!=(_===0)&&(s=er(),ue(s),Ce(!1),U=!0);for(var B=new Set,x=E,D=$o(),H=0;H<_;H+=1){W&&L.nodeType===8&&L.data==="]"&&(s=L,U=!0,Ce(!1));var ge=v[H],C=r(ge,H),K=g?null:u.get(C);K?(K.v&&Qt(K.v,ge),K.i&&Qt(K.i,H),D&&x.unskip_effect(K.e)):(K=Hs(u,g?s:Hn??(Hn=Se()),ge,C,H,i,t,n),g||(K.e.f|=wn),u.set(C,K)),B.add(C)}if(_===0&&o&&!h&&(g?h=Me(()=>o(s)):(h=Me(()=>o(Hn??(Hn=Se()))),h.f|=wn)),_>B.size&&jl("","",""),W&&_>0&&ue(er()),!g)if(m.set(x,B),D){for(let[he,R]of u)B.has(he)||x.skip_effect(R.e);x.oncommit(k),x.ondiscard(M)}else k(x);U&&Ce(!0),l(p)}),flags:t,items:u,pending:m,outrogroups:null,fallback:h};g=!1,W&&(s=L)}function hn(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function qs(e,t,n,r,i){var o=!!(r&8),s=t.length,u=e.items,f=hn(e.effect.first),h,p=null,v,m=[],g=[],k,M,b,_;if(o)for(_=0;_<s;_+=1)k=t[_],M=i(k,_),b=u.get(M).e,b.f&33554432||(b.nodes?.a?.measure(),(v??(v=new Set)).add(b));for(_=0;_<s;_+=1){if(k=t[_],M=i(k,_),b=u.get(M).e,e.outrogroups!==null)for(let he of e.outrogroups)he.pending.delete(b),he.done.delete(b);if(b.f&8192&&(lr(b),o&&(b.nodes?.a?.unfix(),(v??(v=new Set)).delete(b))),b.f&33554432)if(b.f^=wn,b===f)vn(b,null,n);else{var U=p?p.next:f;b===e.effect.last&&(e.effect.last=b.prev),b.prev&&(b.prev.next=b.next),b.next&&(b.next.prev=b.prev),st(e,p,b),st(e,b,U),vn(b,U,n),p=b,m=[],g=[],f=hn(p.next);continue}if(b!==f){if(h!==void 0&&h.has(b)){if(m.length<g.length){var B=g[0],x;p=B.prev;var D=m[0],H=m[m.length-1];for(x=0;x<m.length;x+=1)vn(m[x],B,n);for(x=0;x<g.length;x+=1)h.delete(g[x]);st(e,D.prev,H.next),st(e,p,D),st(e,H,B),f=B,p=H,--_,m=[],g=[]}else h.delete(b),vn(b,f,n),st(e,b.prev,b.next),st(e,b,p===null?e.effect.first:p.next),st(e,p,b),p=b;continue}for(m=[],g=[];f!==null&&f!==b;)(h??(h=new Set)).add(f),g.push(f),f=hn(f.next);if(f===null)continue}b.f&33554432||m.push(b),p=b,f=hn(b.next)}if(e.outrogroups!==null){for(let he of e.outrogroups)he.pending.size===0&&(Jr(e,ar(he.done)),e.outrogroups?.delete(he));e.outrogroups.size===0&&(e.outrogroups=null)}if(f!==null||h!==void 0){var ge=[];if(h!==void 0)for(b of h)b.f&8192||ge.push(b);for(;f!==null;)!(f.f&8192)&&f!==e.fallback&&ge.push(f),f=hn(f.next);var C=ge.length;if(C>0){var K=r&4&&s===0?n:null;if(o){for(_=0;_<C;_+=1)ge[_].nodes?.a?.measure();for(_=0;_<C;_+=1)ge[_].nodes?.a?.fix()}js(e,ge,K)}}o&&ut(()=>{if(v!==void 0)for(b of v)b.nodes?.a?.apply()})}function Hs(e,t,n,r,i,o,s,u){var f=s&1?s&16?At(n):wo(n,!1,!1):null,h=s&2?At(i):null;return{v:f,i:h,e:Me(()=>(o(t,f??n,h??i,u),()=>{e.delete(r)}))}}function vn(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,o=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var s=Ye(r);if(o.before(r),r===i)return;r=s}}function st(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Bs(e,t){li(()=>{e=A?.parent?.nodes?.start??e;var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){let i=ri("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function Cr(e,t,n){li(()=>{var r=dr(()=>t(e,n?.())||{});if(n&&r?.update){var i=!1,o={};hr(()=>{var s=n();xs(s),i&&no(o,s)&&(o=s,r.update(s))}),i=!0}if(r?.destroy)return()=>r.destroy()})}var Hi=[...`
|
|
3
|
+
\r\f \v\uFEFF`];function Ks(e,t,n){var r=e==null?"":""+e;if(t&&(r=r?r+" "+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+" "+i:i;else if(r.length)for(var o=i.length,s=0;(s=r.indexOf(i,s))>=0;){var u=s+o;(s===0||Hi.includes(r[s-1]))&&(u===r.length||Hi.includes(r[u]))?r=(s===0?"":r.substring(0,s))+r.substring(u+1):s=u}}return r===""?null:r}function Bi(e,t=!1){var n=t?" !important;":";",r="";for(var i of Object.keys(e)){var o=e[i];o!=null&&o!==""&&(r+=" "+i+": "+o+n)}return r}function Rr(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function Us(e,t){if(t){var n="",r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\/\*.*?\*\//g,"").trim();var o=!1,s=0,u=!1,f=[];r&&f.push(...Object.keys(r).map(Rr)),i&&f.push(...Object.keys(i).map(Rr));var h=0,p=-1;let M=e.length;for(var v=0;v<M;v++){var m=e[v];if(u?m==="/"&&e[v-1]==="*"&&(u=!1):o?o===m&&(o=!1):m==="/"&&e[v+1]==="*"?u=!0:m==='"'||m==="'"?o=m:m==="("?s++:m===")"&&s--,!u&&o===!1&&s===0){if(m===":"&&p===-1)p=v;else if(m===";"||v===M-1){if(p!==-1){var g=Rr(e.substring(h,p).trim());if(!f.includes(g)){m!==";"&&v++;var k=e.substring(h,v).trim();n+=" "+k+";"}}h=v+1,p=-1}}}}return r&&(n+=Bi(r)),i&&(n+=Bi(i,!0)),n=n.trim(),n===""?null:n}return e==null?null:String(e)}function Pt(e,t,n,r,i,o){var s=e[Pr];if(W||s!==n||s===void 0){var u=Ks(n,r,o);(!W||u!==e.getAttribute("class"))&&(u==null?e.removeAttribute("class"):t?e.className=u:e.setAttribute("class",u)),e[Pr]=n}else if(o&&i!==o)for(var f in o){var h=!!o[f];(i==null||h!==!!i[f])&&e.classList.toggle(f,h)}return o}function Wr(e,t={},n,r){for(var i in n){var o=n[i];t[i]!==o&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,o,r))}}function Vs(e,t,n,r){var i=e[jr];if(W||i!==t){var o=Us(t,r);(!W||o!==e.getAttribute("style"))&&(o==null?e.removeAttribute("style"):e.style.cssText=o),e[jr]=t}else r&&(Array.isArray(r)?(Wr(e,n?.[0],r[0]),Wr(e,n?.[1],r[1],"important")):Wr(e,n,r));return r}var Js=Symbol("is custom element"),Ys=Symbol("is html"),Gs=zl?"link":"LINK";function ee(e,t,n,r){var i=Qs(e);W&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===Gs)||i[t]!==(i[t]=n)&&(t==="loading"&&(e[Wl]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Ho(e).has(t)?e[t]=n:e.setAttribute(t,n))}function jt(e,t,n){var r=O,i=A;let o=W;W&&Ce(!1),fe(null),Ee(null);try{t!=="style"&&(Yr.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?Ho(e).has(t):n&&typeof n=="object")?e[t]=n:ee(e,t,n==null?n:String(n))}finally{fe(r),Ee(i),o&&Ce(!0)}}function Qs(e){return e[Dr]??(e[Dr]={[Js]:e.nodeName.includes("-"),[Ys]:e.namespaceURI===Sl})}var Yr=new Map;function Ho(e){var t=e.getAttribute("is")||e.nodeName,n=Yr.get(t);if(n)return n;Yr.set(t,n=new Set);for(var r,i=e,o=Element.prototype;o!==i;){for(var s in r=Yi(i),r)r[s].set&&s!=="innerHTML"&&s!=="textContent"&&s!=="innerText"&&n.add(s);i=Gr(i)}return n}function zr(e,t){return e===t||e?.[Mt]===t}function Ki(e=Zr(),t,n,r){var i=re.r,o=A;return li(()=>{var s,u;return hr(()=>{s=u,u=r?.()||[],dr(()=>{zr(n(...u),e)||(t(e,...u),s&&zr(n(...s),e)&&t(null,...s))})}),()=>{let f=o;for(;f!==i&&f.parent!==null&&f.parent.f&33554432;)f=f.parent;let h=()=>{u&&zr(n(...u),e)&&t(null,...u)},p=f.teardown;f.teardown=()=>{h(),p?.()}}}),e}var Bn=!1;function Xs(e){var t=Bn;try{return Bn=!1,[e(),Bn]}finally{Bn=t}}function Ft(e,t,n,r){var i=!0,o=!!(n&8),s=!!(n&16),u=r,f=!0,h=void 0,p=()=>s&&i?(h??(h=kn(r)),l(h)):(f&&(f=!1,u=s?dr(r):r),u);let v;if(o){var m=Mt in e||Zi in e;v=Tt(e,t)?.set??(m&&t in e?x=>e[t]=x:void 0)}var g,k=!1;o?[g,k]=Xs(()=>e[t]):g=e[t],g===void 0&&r!==void 0&&(g=p(),v&&(i&&Ul(t),v(g)));var M=i?()=>{var x=e[t];return x===void 0?p():(f=!0,x)}:()=>{var x=e[t];return x!==void 0&&(u=void 0),x===void 0?u:x};if(i&&!(n&4))return M;if(v){var b=e.$$legacy;return(function(x,D){return arguments.length>0?((!i||!D||b||k)&&v(D?M():x),x):M()})}var _=!1,U=(n&1?kn:ti)(()=>(_=!1,M()));o&&l(U);var B=A;return(function(x,D){if(arguments.length>0){let H=D?l(U):i&&o?Kt(x):x;return y(U,H),_=!0,u!==void 0&&(u=H),x}return rt&&_||B.f&16384?U.v:l(U)})}function Zs(e){return new ea(e)}var ea=(lt=new WeakMap,Ae=new WeakMap,class{constructor(e){T(this,lt,void 0),T(this,Ae,void 0);var t=new Map,n=(i,o)=>{var s=wo(o,!1,!1);return t.set(i,s),s};let r=new Proxy({...e.props||{},$$events:{}},{get(i,o){return l(t.get(o)??n(o,Reflect.get(i,o)))},has(i,o){return o===Zi||(l(t.get(o)??n(o,Reflect.get(i,o))),Reflect.has(i,o))},set(i,o,s){return y(t.get(o)??n(o,s),s),Reflect.set(i,o,s)}});$(Ae,this,(e.hydrate?Ls:Fo)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError})),(!e?.props?.$$host||e.sync===!1)&&yt(),$(lt,this,r.$$events);for(let i of Object.keys(a(Ae,this)))i!=="$set"&&i!=="$destroy"&&i!=="$on"&&_n(this,i,{get(){return a(Ae,this)[i]},set(o){a(Ae,this)[i]=o},enumerable:!0});a(Ae,this).$set=i=>{Object.assign(r,i)},a(Ae,this).$destroy=()=>{Ds(a(Ae,this))}}$set(e){a(Ae,this).$set(e)}$on(e,t){a(lt,this)[e]=a(lt,this)[e]||[];let n=(...r)=>t.call(this,...r);return a(lt,this)[e].push(n),()=>{a(lt,this)[e]=a(lt,this)[e].filter(r=>r!==n)}}$destroy(){a(Ae,this).$destroy()}}),Bo;typeof HTMLElement=="function"&&(Bo=class extends HTMLElement{constructor(e,t,n){var r=(...i)=>(super(...i),q(this,"$$ctor",void 0),q(this,"$$s",void 0),q(this,"$$c",void 0),q(this,"$$cn",!1),q(this,"$$d",{}),q(this,"$$r",!1),q(this,"$$p_d",{}),q(this,"$$l",{}),q(this,"$$l_u",new Map),q(this,"$$me",void 0),q(this,"$$shadowRoot",null),this);r(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return i=>{let o=ri("slot");r!=="default"&&(o.name=r),ye(i,o)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;let t={},n=ta(this);for(let r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(let r of this.attributes){let i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=Qn(i,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=Zs({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=vs(()=>{hr(()=>{this.$$r=!0;for(let r of Xn(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];let i=Qn(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(let r in this.$$l)for(let i of this.$$l[r]){let o=this.$$c.$on(r,i);this.$$l_u.set(i,o)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Qn(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Xn(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Qn(e,t,n,r){let i=n[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t==null?t:+t;default:return t}}function ta(e){let t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function na(e,t,n,r,i,o){let s=class extends Bo{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Xn(t).map(u=>(t[u].attribute||u).toLowerCase())}};return Xn(t).forEach(u=>{_n(s.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(f){f=Qn(u,f,t),this.$$d[u]=f;var h=this.$$c;h&&(Tt(h,u)?.get?h[u]=f:h.$set({[u]:f}))}})}),r.forEach(u=>{_n(s.prototype,u,{get(){return this.$$c?.[u]}})}),o&&(s=o(s)),e.element=s,s}var ra=ht("<nds-icon-button></nds-icon-button>",2),ia=ht('<button type="button"><i aria-hidden="true"></i></button>'),oa=ht('<span class="pie-tool-tts-inline__trigger-zoom svelte-9msc39"><!></span>'),la=ht('<button type="button" role="radio" data-pie-tts-control="" class="pie-tool-tts-inline__control pie-tool-tts-inline__control--speed svelte-9msc39"><span class="pie-tool-tts-inline__speed-label svelte-9msc39"> </span></button>'),sa=ht('<div role="radiogroup"></div>'),aa=ht('<div role="toolbar" tabindex="-1"><!> <button type="button" data-pie-tts-control="" data-pie-tts-media="" data-pie-tts-seek="" class="pie-tool-tts-inline__control pie-tool-tts-inline__control--secondary svelte-9msc39"><i class="fa-solid fa-backward pie-tool-tts-inline__icon svelte-9msc39" aria-hidden="true"></i></button> <button type="button" data-pie-tts-control="" data-pie-tts-media="" data-pie-tts-seek="" class="pie-tool-tts-inline__control pie-tool-tts-inline__control--secondary svelte-9msc39"><i class="fa-solid fa-forward pie-tool-tts-inline__icon svelte-9msc39" aria-hidden="true"></i></button> <button type="button" data-pie-tts-control="" data-pie-tts-media="" data-pie-tts-stop="" class="pie-tool-tts-inline__control pie-tool-tts-inline__control--secondary svelte-9msc39"><i class="fa-solid fa-stop pie-tool-tts-inline__icon svelte-9msc39" aria-hidden="true"></i></button></div>'),Ui=ht("<!> <!>",1),ca=ht('<div><!> <div class="pie-sr-only svelte-9msc39" role="status" aria-live="polite" aria-atomic="true"> </div></div>'),ua={hash:"svelte-9msc39",code:`
|
|
4
|
+
/* Lay the component out as a flex box, not the default inline custom element.
|
|
5
|
+
As \`display: inline\` the host is blockified into a block flex item that
|
|
6
|
+
wraps its content in a line box, so the inline-flex root sits on the text
|
|
7
|
+
baseline — a play button then rides that baseline and drifts
|
|
8
|
+
LOW versus the calculator button (whose flex-item wrapper has no line box).
|
|
9
|
+
inline-flex + center removes the line box and keeps the trigger centered. */:host {display:inline-flex;align-items:center;}.pie-tool-tts-inline.svelte-9msc39 {position:relative;display:inline-flex;align-items:center;gap:0.5rem;}.pie-tool-tts-inline--controls-row.svelte-9msc39 {width:100%;justify-content:flex-end;}
|
|
10
|
+
|
|
11
|
+
/* The play/pause trigger and the "more" overflow control are now
|
|
12
|
+
<nds-icon-button> hosts; the NDS component owns their shape, colours,
|
|
13
|
+
hover/active/focus states, and the filled active (\`variant="primary"\`)
|
|
14
|
+
appearance. This class only drives the host's size via NDS's own size
|
|
15
|
+
custom properties (see the size variants below), so the light-DOM inner
|
|
16
|
+
button matches the toolbar's md/sm/lg dimensions. */.pie-tool-tts-inline__trigger-zoom.svelte-9msc39 {display:inline-flex;}.pie-tool-tts-inline__trigger.svelte-9msc39 {display:inline-flex;
|
|
17
|
+
/* Outer button size follows the toolbar size variants (below); the glyph
|
|
18
|
+
keeps the NDS-native icon size (size="small") so it isn't oversized. */--height-32: 2rem;
|
|
19
|
+
/* Host-settable accent: the NDS tertiary glyph colour derives from
|
|
20
|
+
--color-interactive-blue, remapped here to the same chain the panel
|
|
21
|
+
paints with. It defaults through --pie-button-color so the glyph follows
|
|
22
|
+
the active theme; the literal is the no-theme last resort. */--color-interactive-blue: var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));
|
|
23
|
+
/* NDS palette bridge — keep in sync with the copies in
|
|
24
|
+
assessment-toolkit ItemToolBar and section-player SectionItemsPane
|
|
25
|
+
(asserted by scripts/check-theme-tokens.mjs). The vendored button
|
|
26
|
+
paints its fill, its on-accent glyph, its hover ring and its focus
|
|
27
|
+
ring from the NDS design-system palette, which no PIE theme sets, so
|
|
28
|
+
a tertiary trigger kept a #f3f5f7 pill on every page — and once the
|
|
29
|
+
glyph followed the theme, a light glyph landed on that light pill. */--color-new-gray: var(--pie-background-dark, #f3f5f7);--color-primary-white: var(--pie-white, #ffffff);--color-primary-black: var(--pie-text, #000000);--color-focus-blue: var(--pie-button-focus-outline, #2b87ff);}
|
|
30
|
+
|
|
31
|
+
/* Non-NDS fallback trigger (host opted out of nds-icon-button). Inherits
|
|
32
|
+
the plain \`__control\` box; only override to keep the round trigger
|
|
33
|
+
shape and the themeable accent colour on its glyph. */.pie-tool-tts-inline__trigger--plain.svelte-9msc39 {border-radius:50%;color:var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));}
|
|
34
|
+
|
|
35
|
+
/* Active/open trigger hooks (PIE-727).
|
|
36
|
+
---------------------------------------------------------------------------
|
|
37
|
+
README documents --pie-tool-trigger-active-background / -color /
|
|
38
|
+
-border-color as the supported way to style this trigger while its panel is
|
|
39
|
+
open, instead of overriding broad tokens like --pie-primary. The component
|
|
40
|
+
had stopped honouring all three, so a host following the docs got nothing.
|
|
41
|
+
These rules restore them, matching how tool-calculator-inline-desmos wires
|
|
42
|
+
the same three hooks.
|
|
43
|
+
---------------------------------------------------------------------------
|
|
44
|
+
Every fallback is the value this element already resolves to when the hook
|
|
45
|
+
is unset, so adding these rules changes nothing by default. That is
|
|
46
|
+
deliberate: unlike the calculator, this trigger has never had a filled
|
|
47
|
+
active look, and introducing one here would restyle the control for every
|
|
48
|
+
host. Hosts opt in by setting a hook; nobody is opted in by us.
|
|
49
|
+
|
|
50
|
+
Keyed off [aria-expanded='true'], which the markup already maintains, so
|
|
51
|
+
there is no new state to keep in sync. */.pie-tool-tts-inline__trigger--plain[aria-expanded="true"].svelte-9msc39 {
|
|
52
|
+
/* All three fallbacks are \`__control\`'s chains, including the glyph colour.
|
|
53
|
+
Not \`--plain\`'s: that rule also declares \`color\`, but \`__control\` repeats
|
|
54
|
+
it further down the sheet at equal specificity, so \`__control\` wins and
|
|
55
|
+
\`--plain\`'s accent declaration never applies. Measured in Chromium: the
|
|
56
|
+
plain trigger's glyph is --pie-button-color either way. */background:var(
|
|
57
|
+
--pie-tool-trigger-active-background,
|
|
58
|
+
var(--pie-button-background-color, var(--pie-button-bg, var(--pie-background, #fff)))
|
|
59
|
+
);color:var(
|
|
60
|
+
--pie-tool-trigger-active-color,
|
|
61
|
+
var(--pie-button-color, var(--pie-text, #222))
|
|
62
|
+
);border-color:var(
|
|
63
|
+
--pie-tool-trigger-active-border-color,
|
|
64
|
+
var(--pie-button-border, var(--pie-border, #c6c6c6))
|
|
65
|
+
);}
|
|
66
|
+
|
|
67
|
+
/* NDS variant: its glyph colour derives from --color-interactive-blue, so the
|
|
68
|
+
accent is remapped rather than painted, exactly as the base rule does. Only
|
|
69
|
+
the foreground hook applies -- background and border are owned by the NDS
|
|
70
|
+
button's own internals, and setting them on this host element would paint a
|
|
71
|
+
box the tertiary button does not currently have. */.pie-tool-tts-inline__trigger:not(.pie-tool-tts-inline__trigger--plain)[aria-expanded="true"].svelte-9msc39 {--color-interactive-blue: var(
|
|
72
|
+
--pie-tool-trigger-active-color,
|
|
73
|
+
var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)))
|
|
74
|
+
);}.pie-tool-tts-inline__control.svelte-9msc39:hover:not(:disabled) {background-color:var(--pie-button-hover-bg, var(--pie-secondary-background, #f2f4f8));transform:translateY(-1px);box-shadow:0 2px 6px color-mix(in srgb, var(--pie-shadow, #000) 14%, transparent);}.pie-tool-tts-inline__control.svelte-9msc39:active:not(:disabled) {transform:translateY(0);box-shadow:none;}.pie-tool-tts-inline__control.svelte-9msc39:focus-visible {outline:2px solid var(--pie-focus-outline, var(--pie-button-focus-outline, var(--pie-primary, #0066cc)));outline-offset:2px;box-shadow:0 0 0 4px color-mix(in srgb, var(--pie-primary, #0066cc) 22%, transparent);}
|
|
75
|
+
|
|
76
|
+
/* Activating play/pause deliberately KEEPS focus on the trigger while the
|
|
77
|
+
controls panel opens beside it, so where focus sits has to stay visible —
|
|
78
|
+
including after a pointer activation, where the browser suppresses
|
|
79
|
+
:focus-visible and would paint no ring at all. Scoped to
|
|
80
|
+
\`:focus:not(:focus-visible)\` so it only fills that gap: genuine keyboard
|
|
81
|
+
focus keeps whatever the shared \`__control\` rule (plain trigger) or the NDS
|
|
82
|
+
component (nds-icon-button) already paints, untouched.
|
|
83
|
+
Two selectors because the two trigger variants focus different nodes: the
|
|
84
|
+
plain fallback IS the button, while <nds-icon-button> holds focus on an
|
|
85
|
+
inner light-DOM <button> that Lit creates — so it carries no Svelte scoping
|
|
86
|
+
class and must be reached with :global(). */.pie-tool-tts-inline__trigger.svelte-9msc39:focus:not(:focus-visible),
|
|
87
|
+
.pie-tool-tts-inline__trigger.svelte-9msc39 button:focus:not(:focus-visible) {outline:2px solid var(--pie-focus-outline, var(--pie-button-focus-outline, var(--pie-primary, #0066cc)));outline-offset:2px;}.pie-tool-tts-inline__panel.svelte-9msc39 {display:inline-flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:0.25rem;box-sizing:border-box;min-height:var(--pie-tts-controls-row-height, 2.875rem);padding:0.25rem 0.5rem;background:var(--pie-surface, var(--pie-background, #fff));border:1px solid var(--pie-border, #d0d0d0);border-radius:0.5rem;}.pie-tool-tts-inline__panel--floating.svelte-9msc39 {position:absolute;z-index:2;top:50%;right:0;left:auto;}.pie-tool-tts-inline__panel--left-aligned-inline.svelte-9msc39 {
|
|
88
|
+
/* Fixed so it escapes overflow-clipping ancestors; top / right /
|
|
89
|
+
max-width are set inline by measureLeftAlignedOverlay(). */position:fixed;}.pie-tool-tts-inline__panel--row.svelte-9msc39 {position:absolute;z-index:2;top:100%;right:0;left:auto;}.pie-tool-tts-inline__control.svelte-9msc39 {display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;border:1px solid var(--pie-button-border, var(--pie-border, #c6c6c6));border-radius:0.25rem;background:var(--pie-button-background-color, var(--pie-button-bg, var(--pie-background, #fff)));color:var(--pie-button-color, var(--pie-text, #222));cursor:pointer;transition:background-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;}
|
|
90
|
+
|
|
91
|
+
/* Icon-only panel controls (rewind / fast-forward / stop) are round to match
|
|
92
|
+
the circular NDS trigger; the pill-shaped speed radios keep square corners. */.pie-tool-tts-inline__control--secondary.svelte-9msc39 {border-radius:50%;}.pie-tool-tts-inline__speed-group.svelte-9msc39 {display:inline-flex;flex-wrap:wrap;align-items:center;gap:0.25rem;}.pie-tool-tts-inline__control--speed.svelte-9msc39 {width:auto;height:2rem;padding:0;font-size:1rem;font-weight:500;letter-spacing:0;white-space:nowrap;}.pie-tool-tts-inline__control--speed[aria-checked='true'].svelte-9msc39 {border-color:var(--pie-primary, #1565c0);background:color-mix(in srgb, var(--pie-primary, #1565c0) 14%, var(--pie-background, #fff));color:var(--pie-primary, #1565c0);font-weight:600;}.pie-tool-tts-inline__speed-label.svelte-9msc39 {line-height:1.2;
|
|
93
|
+
/* Render speed labels lowercase regardless of the configured casing.
|
|
94
|
+
Applied to the visible text only; the radio's accessible name comes
|
|
95
|
+
from aria-label (option.ariaLabel), so screen readers still hear the
|
|
96
|
+
canonical "Slow speed" / "Normal speed" / "Fast speed". */text-transform:lowercase;}
|
|
97
|
+
|
|
98
|
+
/* Reserve the bold (selected) width — stacked popper only. Switching the
|
|
99
|
+
selected speed there would otherwise change the label width and resize the
|
|
100
|
+
fit-content card. The ghost is a zero-height, hidden grid row whose bold text
|
|
101
|
+
sets the column width. The inline (roomy) row keeps its natural sizing. */.pie-tool-tts-inline__speed-group--stacked.svelte-9msc39 .pie-tool-tts-inline__speed-label:where(.svelte-9msc39) {display:inline-grid;justify-items:center;}.pie-tool-tts-inline__speed-group--stacked.svelte-9msc39 .pie-tool-tts-inline__speed-label:where(.svelte-9msc39)::before {content:attr(data-label);height:0;overflow:hidden;font-weight:700;visibility:hidden;}.pie-tool-tts-inline__control.svelte-9msc39:disabled {cursor:not-allowed;opacity:0.6;}
|
|
102
|
+
|
|
103
|
+
/* ── Overlay layouts (floating-overlay + left-aligned) ──────────────────────
|
|
104
|
+
The Knowledge-Check design keeps the controls on the surrounding
|
|
105
|
+
Question/Passage header: a low-chrome card, icon-only media glyphs, and speed
|
|
106
|
+
radios as plain text with the selected one lifted into a chip.
|
|
107
|
+
|
|
108
|
+
Shape comes from that design; colour comes from the theme. The overlay used
|
|
109
|
+
to paint literals (#146eb3 glyphs on a #fff card with a #f3f5f7 chip), which
|
|
110
|
+
left a blue-on-white panel floating over every non-default theme — a DaisyUI
|
|
111
|
+
\`valentine\` page rendered a pink player with a blue TTS panel. Each surface
|
|
112
|
+
now defaults through a canonical token and keeps its literal only as the
|
|
113
|
+
no-theme last resort.
|
|
114
|
+
|
|
115
|
+
Foregrounds resolve through --pie-button-color (DaisyUI base-content), the
|
|
116
|
+
one family whose contrast against the card is guaranteed in every shipped
|
|
117
|
+
theme: --pie-primary and --pie-tertiary are \`direct\` mappings of DaisyUI
|
|
118
|
+
slots chosen to pair with their own -content colour, so an accent glyph taken
|
|
119
|
+
from either drops to 1.37:1 on \`pastel\` and 11 of 35 themes fall under 3:1.
|
|
120
|
+
Selection is signalled by the chip and the bolder weight rather than by hue.
|
|
121
|
+
|
|
122
|
+
Host knobs, all unchanged: --pie-tts-button-color (accent),
|
|
123
|
+
--pie-tts-inline-muted-color, --pie-tts-selected-bg,
|
|
124
|
+
--pie-selected-button-background/-border, --pie-tts-menu-shadow. */.pie-tool-tts-inline__panel--floating.svelte-9msc39,
|
|
125
|
+
.pie-tool-tts-inline__panel--left-aligned-inline.svelte-9msc39 {min-height:0;height:3rem; /* Figma: 48px */justify-content:center;gap:0.375rem;
|
|
126
|
+
/* The raised surface is certified with control text and focus rings.
|
|
127
|
+
--pie-white remains the fallback for hosts with no surface token. */background:var(--pie-tts-selected-bg, var(--pie-surface, var(--pie-white, #fff)));
|
|
128
|
+
/* The Figma card is shadow-only, but the shadow is black: once the card
|
|
129
|
+
takes a dark theme's surface it has no visible edge left. A hairline
|
|
130
|
+
derived from the text colour reads on either. Not --pie-border: a host
|
|
131
|
+
that wants borderless controls sets that to transparent, which is
|
|
132
|
+
exactly the case where the shadow is the only edge. --pie-tts-card-border
|
|
133
|
+
is the opt-out (\`transparent\` restores the shadow-only card). */border:1px solid var(--pie-tts-card-border, color-mix(in srgb, var(--pie-text, #000) 15%, transparent));border-radius:0.5rem; /* Figma: --radius-8 (8px) */box-shadow:var(--pie-tts-menu-shadow, 0 1px 5px 0 rgba(0, 0, 0, 0.3));}
|
|
134
|
+
|
|
135
|
+
/* Compact: the popper card holds the media row (rewind / fast-forward / stop)
|
|
136
|
+
on top and the speed radios stacked below. The white card bg + shadow come
|
|
137
|
+
from the shared overlay rule above; this only tunes the compact layout. */.pie-tool-tts-inline__panel--compact.svelte-9msc39 {gap:0;width:fit-content;min-width:7.5rem; /* ~120px floor; grows with content beyond that */height:auto; /* stacked popper grows past the 48px roomy toolbar height */padding:0;}
|
|
138
|
+
|
|
139
|
+
/* Media controls (rewind / fast-forward / stop): accent glyph, no chrome. */.pie-tool-tts-inline__panel--floating.svelte-9msc39 .pie-tool-tts-inline__control--secondary:where(.svelte-9msc39),
|
|
140
|
+
.pie-tool-tts-inline__panel--left-aligned-inline.svelte-9msc39 .pie-tool-tts-inline__control--secondary:where(.svelte-9msc39) {border:0;background:transparent;color:var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));}.pie-tool-tts-inline__panel--floating.svelte-9msc39 .pie-tool-tts-inline__control--secondary:where(.svelte-9msc39):hover:not(:disabled),
|
|
141
|
+
.pie-tool-tts-inline__panel--left-aligned-inline.svelte-9msc39 .pie-tool-tts-inline__control--secondary:where(.svelte-9msc39):hover:not(:disabled) {transform:none;box-shadow:none;background:color-mix(in srgb, var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222))) 12%, transparent);}
|
|
142
|
+
|
|
143
|
+
/* Speed radios (inline / roomy): plain muted text with breathing room between
|
|
144
|
+
options — min-width + side padding, matching the original inline spacing. */.pie-tool-tts-inline__panel--floating.svelte-9msc39 .pie-tool-tts-inline__control--speed:where(.svelte-9msc39),
|
|
145
|
+
.pie-tool-tts-inline__panel--left-aligned-inline.svelte-9msc39 .pie-tool-tts-inline__control--speed:where(.svelte-9msc39) {min-width:2.75rem;padding:0 0.625rem;border:1px solid transparent;background:transparent;box-shadow:none;
|
|
146
|
+
/* Unselected labels are text on the card, so they take the full text colour
|
|
147
|
+
rather than a dimmed mix: the raised surface has little contrast margin
|
|
148
|
+
in \`valentine\`. Hosts that want them dimmer set --pie-tts-inline-muted-color. */color:var(--pie-tts-inline-muted-color, var(--pie-button-color, var(--pie-text, #5b6b73)));font-size:1rem;}.pie-tool-tts-inline__panel--floating.svelte-9msc39 .pie-tool-tts-inline__control--speed:where(.svelte-9msc39):hover:not(:disabled),
|
|
149
|
+
.pie-tool-tts-inline__panel--left-aligned-inline.svelte-9msc39 .pie-tool-tts-inline__control--speed:where(.svelte-9msc39):hover:not(:disabled) {transform:none;box-shadow:none;background:color-mix(in srgb, var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222))) 8%, transparent);}
|
|
150
|
+
|
|
151
|
+
/* Selected inline radio: "chip" treatment. Placed after the muted rule so it
|
|
152
|
+
wins at equal specificity. The fill is --pie-button-active-bg, which the
|
|
153
|
+
DaisyUI mapping already tunes (base-300 at 70% toward base-100) to hold
|
|
154
|
+
base-content text at 4.5:1 in every shipped theme. */.pie-tool-tts-inline__panel--floating.svelte-9msc39 .pie-tool-tts-inline__control--speed[aria-checked='true']:where(.svelte-9msc39),
|
|
155
|
+
.pie-tool-tts-inline__panel--left-aligned-inline.svelte-9msc39 .pie-tool-tts-inline__control--speed[aria-checked='true']:where(.svelte-9msc39) {border:1px solid var(--pie-selected-button-border, var(--pie-button-border, var(--pie-border, #d9dada)));border-radius:6px;background:var(--pie-selected-button-background, var(--pie-button-active-bg, #f3f5f7));color:var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));font-weight:600;}
|
|
156
|
+
|
|
157
|
+
/* ── Compact left-aligned overlay ───────────────────────────────────────────
|
|
158
|
+
Inside the popper card the media controls occupy the top row and the speed
|
|
159
|
+
radios drop onto their own full-width line below, stacked vertically.
|
|
160
|
+
\`order\` puts the speeds after the media buttons even though they are first in
|
|
161
|
+
the DOM; flex-basis:100% forces the wrap so media occupy the top line. */.pie-tool-tts-inline__speed-group--stacked.svelte-9msc39 {order:1;flex-basis:100%;flex-direction:column;align-items:center;gap:0.125rem;}
|
|
162
|
+
|
|
163
|
+
/* In the card every option reads in the accent colour; the selected one is
|
|
164
|
+
lifted into a bordered chip. Options size to their content and centre (no
|
|
165
|
+
full-width stretch), keeping the popper compact. */.pie-tool-tts-inline__speed-group--stacked.svelte-9msc39 .pie-tool-tts-inline__control--speed:where(.svelte-9msc39) {justify-content:center;width:auto;min-width:0;height:auto;padding:0.25rem 0.75rem;border:1px solid transparent;border-radius:0.5rem;background:transparent;box-shadow:none;color:var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));font-size:0.75rem;font-weight:500;}.pie-tool-tts-inline__speed-group--stacked.svelte-9msc39 .pie-tool-tts-inline__control--speed[aria-checked='true']:where(.svelte-9msc39) {border:1px solid var(--pie-selected-button-border, var(--pie-button-border, var(--pie-border, #d9dada)));border-radius:6px;background:var(--pie-selected-button-background, var(--pie-button-active-bg, #f3f5f7));color:var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));font-weight:700;}
|
|
166
|
+
|
|
167
|
+
/* Trigger size variants set the NDS outer size (--height-32); the glyph keeps
|
|
168
|
+
the NDS-native icon size (host renders size="small"). */.pie-tool-tts-inline__trigger--sm.svelte-9msc39 {--height-32: 1.75rem;}.pie-tool-tts-inline__trigger--md.svelte-9msc39 {--height-32: 2rem;}.pie-tool-tts-inline__trigger--lg.svelte-9msc39 {--height-32: 2.5rem;}.pie-tool-tts-inline__icon.svelte-9msc39 {font-size:1rem;line-height:1;color:currentColor;}
|
|
169
|
+
|
|
170
|
+
@media (max-width: 839px) {.pie-tool-tts-inline.svelte-9msc39 {gap:0.375rem;}.pie-tool-tts-inline__panel--compact.svelte-9msc39 {padding:0;}
|
|
171
|
+
|
|
172
|
+
/* Keep trigger sizes consistent with the calculator at this breakpoint. */.pie-tool-tts-inline__control.svelte-9msc39:not(.pie-tool-tts-inline__trigger) {width:1.75rem;height:1.75rem;}.pie-tool-tts-inline__control.svelte-9msc39 .pie-tool-tts-inline__icon:where(.svelte-9msc39) {font-size:1rem;}.pie-tool-tts-inline__control--speed.svelte-9msc39 {width:auto;min-width:2.5rem;height:1.75rem;padding:0 0.5rem;}
|
|
173
|
+
|
|
174
|
+
/* drop font-size on smaller screens */.pie-tool-tts-inline__panel--floating.svelte-9msc39 .pie-tool-tts-inline__control--speed:where(.svelte-9msc39),
|
|
175
|
+
.pie-tool-tts-inline__panel--left-aligned-inline.svelte-9msc39 .pie-tool-tts-inline__control--speed:where(.svelte-9msc39) {font-size:0.75rem;}
|
|
176
|
+
}.pie-sr-only.svelte-9msc39 {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;}
|
|
177
|
+
|
|
178
|
+
@media (prefers-reduced-motion: reduce) {.pie-tool-tts-inline__control.svelte-9msc39 {transition:none !important;}
|
|
179
|
+
}`};function fa(e,t){io(t,!0),Bs(e,ua);let n=Ft(t,"catalogId",7,""),r=Ft(t,"language",7,""),i=Ft(t,"size",7,"md"),o=Ft(t,"speedOptions",7,void 0),s=Ft(t,"showSingleSpeedOption",7,!1),u=Ft(t,"layoutMode",7,"left-aligned"),f=typeof window<"u",h="__pie_tts_inline_active_owner__",p="pie-tts-inline-owner-change",v=["/_fa-pro/fontawesome.min.css","/_fa-pro/light.min.css"],m=/font.?awesome|fa-?pro/i,g=c=>{if(document.querySelector(`link[href="${c}"]`))return;let d=document.createElement("link");d.rel="stylesheet",d.href=c,d.addEventListener("error",()=>{d.dataset.pieLoadFailed=""},{once:!0}),document.head.appendChild(d)},k=c=>{if(f&&(c&&!document.querySelector('link[href*="Roboto"]')&&g("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap"),!Array.from(document.querySelectorAll('link[rel="stylesheet"][href]')).some(d=>m.test(d.href))&&(g("https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.2/css/all.min.css"),c)))for(let d of v)g(d)},M="__pieFaTtsShadowInstalled",b=c=>{let d=c.getRootNode();if(!(d instanceof ShadowRoot))return;let w=d;if(w[M])return;w[M]=!0;let S=new Set,z=I=>{if(!I||S.has(I))return;S.add(I);let Z=document.createElement("link");Z.rel="stylesheet",Z.href=I,d.appendChild(Z)},P=Array.from(document.querySelectorAll('link[rel="stylesheet"][href]')).filter(I=>m.test(I.href));for(let I of P){if("pieLoadFailed"in I.dataset)continue;if(I.sheet){z(I.href);continue}let Z=It=>{I.removeEventListener("load",Z),I.removeEventListener("error",Z),It.type==="load"&&z(I.href)};I.addEventListener("load",Z),I.addEventListener("error",Z)}},_=c=>{k(!0),b(c);let d=()=>{for(let S of c.querySelectorAll("i.fa-light"))S.classList.remove("fa-light"),S.classList.add("fa-solid")};d();let w=new MutationObserver(d);return w.observe(c,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class"]}),{destroy(){w.disconnect()}}},U=(c,d)=>{let w=d,S=()=>{let P=c.querySelector("button");if(P)for(let[I,Z]of Object.entries(w))Z==null?P.removeAttribute(I):P.setAttribute(I,Z)};S();let z=new MutationObserver(S);return z.observe(c,{childList:!0,subtree:!0}),{update(P){w=P,S()},destroy(){z.disconnect()}}},B=c=>(k(!1),b(c),{}),x=F(void 0),D=F(void 0),H=F(null),ge=ne(()=>l(H)?.ndsIcons===!0),C=ne(()=>yl(l(H))),K=F(null),he=F(null),R=ne(()=>l(H)?.ttsService),Ct=ne(()=>l(H)?.highlightCoordinator),fi=ne(()=>l(he)?.scopeElement||l(K)?.scopeElement||null),de=F(!1),dt=F(!1),oe=F(!1),me=F(!1),te=F(""),Rt=F(null),En=F(null),An=F(!1),it=F(!1),pr=F(!1),tn=null,vr=ne(()=>l(An)||l(it)),Le=null,nn=ne(()=>_l(o())),rn=ne(()=>Uo(l(nn))),gr=ne(()=>l(nn).length>1||s()?l(nn):[]),on=ne(()=>l(Rt)!==null&&l(En)===l(rn)&&l(nn).some(c=>c.rate===l(Rt))?l(Rt):Vo(l(nn))),Qe=`pie-tts-inline-instance-${Math.random().toString(36).slice(2)}`,mr=`${Qe}-controls`;function wr(){if(!f)return null;let c=window[h];return typeof c=="string"?c:null}function De(){return wr()===Qe}function hi(c,d){f&&window.dispatchEvent(new CustomEvent(p,{detail:{ownerId:c,previousOwnerId:d}}))}function Ko(){if(!f)return;let c=wr();c!==Qe&&(window[h]=Qe,hi(Qe,c))}function Nn(){f&&wr()===Qe&&(delete window[h],hi(null,Qe))}function br(c="",d=!1){y(it,!1),y(oe,!1),y(me,!1),y(de,d,!0),y(te,c,!0)}function Uo(c){return c.map(d=>`${d.rate}:${d.label}:${d.ariaLabel}:${d.isDefault?"1":"0"}`).join("|")}function Vo(c){return c.find(d=>d.isDefault)?.rate??c.find(d=>d.rate===1)?.rate??c[0]?.rate??1}async function yr(c,d){if(typeof c.setPlaybackRate=="function"){await c.setPlaybackRate(d);return}await c.updateSettings({rate:d})}function _r(){if(!l(x)||!l(D))return!1;let c=l(x).getRootNode();if(!(c instanceof ShadowRoot))return!1;let d=c.activeElement;return!!(d&&l(D).contains(d))}function Jo(){if(!l(D))return!1;let c=l(D).getRootNode();if(!(c instanceof ShadowRoot))return!1;let d=c.activeElement;return!d||!l(D).contains(d)?!1:d.matches(Qo)}function Yo(){let c=l(D)?.querySelector(Xo);if(c&&!c.disabled){c.focus();return}On(!0)}function On(c){if(!l(x)||!c)return;let d=l(x).getRootNode();if(!(d instanceof ShadowRoot))return;let w=d.querySelector(".pie-tool-tts-inline__trigger");(w?.querySelector("button")??w)?.focus()}function di(c=l(C).t("tools.textToSpeech.inline.switchedSection"),d=!1){if(!l(pr)&&(l(de)||De())){y(pr,!0);try{let w=_r();De()&&Nn(),br(c),Wt(),d&&queueMicrotask(()=>{On(w)})}finally{y(pr,!1)}}}Ze(()=>{if(l(x))return bl(l(x),c=>{y(H,c,!0)})}),Ze(()=>{if(!l(x))return;let c=gl(l(x),w=>{y(K,w,!0)}),d=wl(l(x),w=>{y(he,w,!0)});return()=>{d(),c()}}),Ze(()=>{if(!l(R))return;let c=w=>{if(!l(de)||!De()){y(oe,!1),y(me,!1);return}y(oe,w==="playing"||w==="paused",!0),y(me,w==="paused")},d=l(R).onStateChange(w=>{let S=String(w),z=Jo();c(S),S==="playing"&&(l(it)&&y(te,l(C).t("tools.textToSpeech.inline.started"),!0),y(it,!1)),(S==="error"||S==="idle")&&y(it,!1),z&&!l(oe)&&queueMicrotask(Yo)});return c(l(R).getState()),d}),Ze(()=>{if(!f)return;let c=d=>{let{ownerId:w=null,previousOwnerId:S=null}=d.detail||{};S===Qe&&w!==Qe&&di(l(C).t("tools.textToSpeech.inline.switchedSection"))};return window.addEventListener(p,c),()=>{window.removeEventListener(p,c)}}),Ze(()=>{if(!f)return;let c=()=>{di(l(C).t("tools.textToSpeech.inline.switchedSection"),!0)};return window.addEventListener(Mi,c),()=>{window.removeEventListener(Mi,c)}}),Ze(()=>()=>{Nn(),Wt()});async function Go(){if(!l(R))return!1;try{return await l(H)?.toolkitCoordinator?.ensureTTSReady?.(),!0}catch(c){return console.error("[TTS Inline] Failed to initialize TTS:",c),!1}}let pi="[data-pie-tts-speed-rate]",kr="[data-pie-tts-media]",Qo="[data-pie-tts-seek]",Xo="[data-pie-tts-stop]";function vi(c){return l(D)?Array.from(l(D).querySelectorAll(c)).filter(d=>!d.disabled&&window.getComputedStyle(d).display!=="none"):[]}function xr(c,d){let w=vi(c);if(!w.length)return;let S=w[(d+w.length)%w.length];if(S.focus(),c!==pi)return;let z=Number(S.dataset.pieTtsSpeedRate),P=l(gr).find(I=>I.rate===z);P&&bi(P)}function gi(c,d){let w=vi(c);if(!w.length)return;let S=l(D)?.getRootNode(),z=S instanceof ShadowRoot?S.activeElement:null,P=z?w.indexOf(z):-1;xr(c,P===-1?0:P+d)}function Cn(c,d){switch(d.key){case"ArrowDown":case"ArrowRight":d.preventDefault(),gi(c,1);break;case"ArrowUp":case"ArrowLeft":d.preventDefault(),gi(c,-1);break;case"Home":d.preventDefault(),xr(c,0);break;case"End":d.preventDefault(),xr(c,-1)}}function Zo(){return l(fi)?xl(l(fi)):null}function el(){return l(K)?$l(l(K),l(H)):void 0}function tl(c){return Wt(),tn=l(R)?.setHighlightTargetResolverProvider?.(()=>({context:{scopeElement:l(he)?.scopeElement||c||null,kind:l(K)?.kind,itemId:l(K)?.itemId,canonicalItemId:l(K)?.canonicalItemId,contentKind:l(K)?.contentKind,regionPolicy:l(K)?.regionPolicy},resolver:l(he)?.ttsHighlightTargetResolver||null}))||null,tn}function Wt(c=tn){c?.(),c===tn&&(tn=null)}function nl(){if(!De())return!1;let c=String(l(R)?.getState?.()||"");return c==="playing"||c==="paused"||c==="loading"}function mi(c){let d=_r();br(l(C).t("tools.textToSpeech.inline.startFailed")),De()&&Nn(),l(Ct)&&l(Ct).clearTTS(),Wt(c),d&&queueMicrotask(()=>{On(!0)})}async function rl(){if(!l(R))return;let c=null,d=Zo();if(!d){console.warn("[TTS Inline] No target container found from shell scope context");return}try{if(y(de,!0),!kl(d)){console.warn("[TTS Inline] No text content found");return}l(Ct)&&l(R).setHighlightCoordinator&&l(R).setHighlightCoordinator(l(Ct)),await yr(l(R),l(on)),Le={service:l(R),choicesKey:l(rn)},c=tl(d),y(it,!0),y(te,l(C).t("tools.textToSpeech.inline.starting"),!0);let w=l(R);w.speak(d,{catalogId:n()||void 0,catalogContext:el(),language:r()||l(H)?.contentLanguage||void 0}).then(()=>{l(it)&&String(w.getState?.()||"")==="idle"&&(y(it,!1),y(te,""))}).catch(S=>{console.error("[TTS Inline] Error:",S),mi(c)}).finally(()=>{nl()||Wt(c)})}catch(w){console.error("[TTS Inline] Error:",w),mi(c)}}async function wi(){if(l(R)&&!(l(vr)||De()&&String(l(R).getState?.()||"")==="loading")){if(De()&&l(me)){l(R).resume(),y(te,l(C).t("tools.textToSpeech.inline.resumed"),!0);return}if(De()&&l(oe)&&!l(me)){l(R).pause(),y(te,l(C).t("tools.textToSpeech.inline.pausedAnnouncement"),!0);return}if(!l(An)){y(An,!0);try{if(y(te,l(C).t("tools.textToSpeech.inline.initializing"),!0),!await Go()){y(te,l(C).t("tools.textToSpeech.inline.initFailed"),!0);return}let c=String(l(R).getState?.()||"");(c==="playing"||c==="paused"||c==="loading")&&!De()&&l(R).stop(),Ko(),await rl()}finally{y(An,!1)}}}}function il(){if(!l(R))return;let c=_r();l(R).stop(),Nn(),br(l(C).t("tools.textToSpeech.inline.stopped")),l(Ct)&&l(Ct).clearTTS(),Wt(),c&&queueMicrotask(()=>{On(!0)})}async function ol(){if(l(R)&&l(oe))try{await l(R).seekForward(1),y(te,l(C).t("tools.textToSpeech.inline.skippedForward"),!0)}catch(c){console.error("[TTS Inline] Seek forward failed:",c),y(te,l(C).t("tools.textToSpeech.inline.skipForwardFailed"),!0)}}async function ll(){if(l(R)&&l(oe))try{await l(R).seekBackward(1),y(te,l(C).t("tools.textToSpeech.inline.skippedBackward"),!0)}catch(c){console.error("[TTS Inline] Seek backward failed:",c),y(te,l(C).t("tools.textToSpeech.inline.skipBackwardFailed"),!0)}}async function bi(c){let d=l(R);if(!d)return;if(l(on)===c.rate){y(te,l(C).t("tools.textToSpeech.inline.speedAnnounce",{label:c.label}),!0);return}let w=l(Rt),S=l(En);y(Rt,c.rate,!0),y(En,l(rn),!0),y(te,l(C).t("tools.textToSpeech.inline.speedAnnounce",{label:c.label}),!0);let z={service:d,choicesKey:l(rn)};Le=z;try{await yr(d,c.rate)}catch(P){Le===z&&(Le=null),console.error("[TTS Inline] Playback speed change failed:",P),y(Rt,w,!0),y(En,S,!0),y(te,l(C).t("tools.textToSpeech.inline.speedChangeFailed"),!0)}}let yi=ne(()=>i()==="sm"?"pie-tool-tts-inline__trigger--sm":i()==="lg"?"pie-tool-tts-inline__trigger--lg":"pie-tool-tts-inline__trigger--md"),_i=ne(()=>u()==="reserved-row"||u()==="expanding-row"),$r=ne(()=>u()==="floating-overlay"),zt=ne(()=>u()==="left-aligned"),sl=ne(()=>l($r)||l(zt)),ki="[data-pie-tool-overlay-boundary]",Rn=F(""),Wn=F(0);Ze(()=>{let c=l(R),d=l(rn),w=l(oe)||l(me);if(!c||!w||!De()||Le?.service===c&&Le.choicesKey===d)return;let S={service:c,choicesKey:d};Le=S;let z=!1;return queueMicrotask(()=>{if(z||Le!==S)return;let P=l(on);yr(c,P).catch(I=>{Le===S&&(Le=null),console.error("[TTS Inline] External playback speed sync failed:",I)})}),()=>{z=!0}});function xi(c,d){let w=c;for(;w;){if(w.matches?.(d))return w;w=w.parentElement??(w.getRootNode()instanceof ShadowRoot?w.getRootNode().host:null)}return null}function $i(){let c=l(x)?.getRootNode();return c instanceof ShadowRoot?c.querySelector(".pie-tool-tts-inline__trigger"):null}function al(c){let d=window.getComputedStyle(c),w=parseFloat(d.columnGap||d.gap)||0,S=(parseFloat(d.paddingLeft)||0)+(parseFloat(d.paddingRight)||0)+(parseFloat(d.borderLeftWidth)||0)+(parseFloat(d.borderRightWidth)||0),z=Array.from(c.children).filter(P=>window.getComputedStyle(P).display!=="none");return z.length?z.reduce((P,I)=>P+I.offsetWidth,0)+(z.length-1)*w+S:0}function cl(){let c=$i();if(!c||!l(D))return;let d=c.getBoundingClientRect(),w=xi(c,ki),S=w?.getBoundingClientRect().left??0,z=Math.max(0,d.left-S-16);if(!l(dt)){let Q=al(l(D));Q>0&&y(Wn,Q,!0)}y(dt,l(Wn)>0&&z<l(Wn),!0);let P=parseFloat(window.getComputedStyle(l(D)).minWidth)||0;if(l(dt)&&z<P){let Q=w?.getBoundingClientRect(),we=Math.max(0,Q?.left??0)+8,Pe=Math.min(window.innerWidth,Q?.right??window.innerWidth)-8,je=Math.max(0,Pe-we),X=Math.min(l(D).offsetWidth,je),j=Math.max(we,Math.min(d.right-X,Pe-X));y(Rn,`top: ${d.bottom+8}px; left: ${j}px; right: auto; min-width: min(7.5rem, ${je}px); max-width: min(${je}px, var(--pie-tts-left-aligned-panel-width, ${je}px));`);return}let I=l(D).offsetHeight||d.height,Z=l(dt)?d.top:d.top+d.height/2-I/2,It=d.bottom>0&&d.top<window.innerHeight?Math.max(8,Math.min(Z,window.innerHeight-I-8)):Z,le=window.innerWidth-d.left+8;y(Rn,`top: ${It}px; right: ${le}px; left: auto; max-width: min(${z}px, var(--pie-tts-left-aligned-panel-width, ${z}px));`)}Ze(()=>{if(!(l(zt)&&l(de))){let I=!1;return queueMicrotask(()=>{I||(y(Rn,""),y(dt,!1),y(Wn,0))}),()=>{I=!0}}if(typeof window>"u")return;let c=0,d=()=>{c||(c=window.requestAnimationFrame(()=>{c=0,cl()}))};d(),window.addEventListener("resize",d),window.addEventListener("scroll",d,!0);let w=$i(),S=new ResizeObserver(d);w&&S.observe(w),l(D)&&S.observe(l(D));let z=w?xi(w,ki):null;z&&S.observe(z);let P=z?.querySelector("[data-pie-tool-overlay-protect]");return P&&S.observe(P),()=>{c&&window.cancelAnimationFrame(c),window.removeEventListener("resize",d),window.removeEventListener("scroll",d,!0),S.disconnect()}});function ul(){if(!l(x))return null;let c=l(x).getRootNode();return c instanceof ShadowRoot?c.host:null}Ze(()=>{let c=ul();if(!c)return;let d=l(de)===!0;if(c.getAttribute("data-active")==="true"===d)return;let w=!1;return queueMicrotask(()=>{w||(c.setAttribute("data-active",d?"true":"false"),c.dispatchEvent(new CustomEvent("pie-tool-active-change",{detail:{active:d},bubbles:!0,composed:!0})))}),()=>{w=!0}});var fl={get catalogId(){return n()},set catalogId(c=""){n(c),yt()},get language(){return r()},set language(c=""){r(c),yt()},get size(){return i()},set size(c="md"){i(c),yt()},get speedOptions(){return o()},set speedOptions(c=void 0){o(c),yt()},get showSingleSpeedOption(){return s()},set showSingleSpeedOption(c=!1){s(c),yt()},get layoutMode(){return u()},set layoutMode(c="left-aligned"){u(c),yt()}},Si=ji(),hl=Fn(Si),dl=c=>{var d=ca();let w;{let Z=le=>{var Q=oa(),we=pn(Q),Pe=X=>{var j=ra();jt(j,"type","circle"),jt(j,"size","small"),jt(j,"variant","tertiary"),Be(()=>jt(j,"icon-name",l(oe)&&!l(me)?"pause":"play")),Be(Fe=>jt(j,"button-aria-label",Fe),[()=>l(C).t(l(oe)&&!l(me)?"tools.textToSpeech.inline.pauseA11y":l(me)?"tools.textToSpeech.inline.resumeA11y":"tools.textToSpeech.inline.playA11y")]),Be(()=>jt(j,"disabled",!l(R))),Cr(j,Fe=>_?.(Fe)),Cr(j,(Fe,pt)=>U?.(Fe,pt),()=>({"aria-expanded":l(de)?"true":"false","aria-controls":l(de)?mr:null,"aria-pressed":l(de)?"true":"false","aria-busy":l(vr)?"true":null})),Be(()=>Pt(j,1,`pie-tool-tts-inline__trigger ${l(yi)??""}`,"svelte-9msc39")),Ke("click",j,wi),ye(X,j)},je=X=>{var j=ia(),Fe=Ar(j);Cr(j,pt=>B?.(pt)),Be(pt=>{Pt(j,1,`pie-tool-tts-inline__control pie-tool-tts-inline__trigger pie-tool-tts-inline__trigger--plain ${l(yi)??""}`,"svelte-9msc39"),ee(j,"aria-expanded",l(de)?"true":"false"),ee(j,"aria-controls",l(de)?mr:void 0),ee(j,"aria-pressed",l(de)?"true":"false"),ee(j,"aria-label",pt),ee(j,"aria-busy",l(vr)?"true":void 0),j.disabled=!l(R),Pt(Fe,1,`fa-solid ${l(oe)&&!l(me)?"fa-pause":"fa-play"} pie-tool-tts-inline__icon`,"svelte-9msc39")},[()=>l(C).t(l(oe)&&!l(me)?"tools.textToSpeech.inline.pauseA11y":l(me)?"tools.textToSpeech.inline.resumeA11y":"tools.textToSpeech.inline.playA11y")]),Ke("click",j,wi),ye(X,j)};fn(we,X=>{l(ge)?X(Pe):X(je,-1)}),Ht(Q),ye(le,Q)},It=le=>{var Q=ji(),we=Fn(Q),Pe=je=>{var X=aa();let j;var Fe=pn(X),pt=pe=>{var vt=sa();let In;Fs(vt,21,()=>l(gr),gt=>gt.rate,(gt,mt)=>{var qe=la(),Ti=pn(qe),pl=Ar(Ti,!0);Ht(qe),Be(()=>{ee(qe,"data-pie-tts-speed-rate",l(mt).rate),ee(qe,"tabindex",l(on)===l(mt).rate?0:-1),ee(qe,"aria-label",l(mt).ariaLabel),ee(qe,"aria-checked",l(on)===l(mt).rate),qe.disabled=!l(R),ee(Ti,"data-label",l(mt).label),qi(pl,l(mt).label)}),Ke("click",qe,()=>bi(l(mt))),Ke("keydown",qe,vl=>Cn(pi,vl)),ye(gt,qe)}),Ht(vt),Be(gt=>{In=Pt(vt,1,"pie-tool-tts-inline__speed-group svelte-9msc39",null,In,{"pie-tool-tts-inline__speed-group--stacked":l(dt)}),ee(vt,"aria-label",gt)},[()=>l(C).t("tools.textToSpeech.inline.playbackSpeedA11y")]),ye(pe,vt)};fn(Fe,pe=>{l(gr).length>0&&pe(pt)});var ln=Dt(Fe,2),sn=Dt(ln,2),zn=Dt(sn,2);Ht(X),Ki(X,pe=>y(D,pe),()=>l(D)),Be((pe,vt,In,gt)=>{ee(X,"id",mr),j=Pt(X,1,"pie-tool-tts-inline__panel svelte-9msc39",null,j,{"pie-tool-tts-inline__panel--floating":l($r),"pie-tool-tts-inline__panel--row":l(_i),"pie-tool-tts-inline__panel--left-aligned-inline":l(zt),"pie-tool-tts-inline__panel--compact":l(zt)&&l(dt)}),Vs(X,l(zt)?l(Rn):""),ee(X,"aria-label",pe),ee(ln,"aria-label",vt),ln.disabled=!l(R)||!l(oe),ee(sn,"aria-label",In),sn.disabled=!l(R)||!l(oe),ee(zn,"aria-label",gt),zn.disabled=!l(R)},[()=>l(C).t("tools.textToSpeech.inline.controlsA11y"),()=>l(C).t("tools.textToSpeech.inline.rewindA11y"),()=>l(C).t("tools.textToSpeech.inline.fastForwardA11y"),()=>l(C).t("tools.textToSpeech.inline.stopA11y")]),Ke("click",ln,ll),Ke("keydown",ln,pe=>Cn(kr,pe)),Ke("click",sn,ol),Ke("keydown",sn,pe=>Cn(kr,pe)),Ke("click",zn,il),Ke("keydown",zn,pe=>Cn(kr,pe)),ye(je,X)};fn(we,je=>{l(de)&&je(Pe)}),ye(le,Q)};var S=pn(d),z=le=>{var Q=Ui(),we=Fn(Q);It(we);var Pe=Dt(we,2);Z(Pe),ye(le,Q)},P=le=>{var Q=Ui(),we=Fn(Q);Z(we);var Pe=Dt(we,2);It(Pe),ye(le,Q)};fn(S,le=>{l(sl)?le(z):le(P,-1)});var I=Ar(Dt(S,2),!0);Ht(d),Ki(d,le=>y(x,le),()=>l(x)),Be(()=>qi(I,l(te)))}Be(()=>w=Pt(d,1,"pie-tool-tts-inline svelte-9msc39",null,w,{"pie-tool-tts-inline--controls-row":l(_i),"pie-tool-tts-inline--floating":l($r),"pie-tool-tts-inline--left-aligned":l(zt)})),ye(c,d)};return fn(hl,c=>{f&&c(dl)}),ye(e,Si),oo(fl)}$s(["click","keydown"]),ha("pie-tool-tts-inline",na(fa,{catalogId:{attribute:"catalog-id",type:"String"},language:{attribute:"language",type:"String"},size:{attribute:"size",type:"String"},speedOptions:{attribute:"speed-options",type:"Array"},showSingleSpeedOption:{attribute:"show-single-speed-option",type:"Boolean"},layoutMode:{attribute:"layout-mode",type:"String"}},[],[],{mode:"open"},ml));function ha(e,t){customElements.get(e)||customElements.define(e,t)}export{fa as default};
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import{r as $t,t as yt}from"./logger-8b07fb72.js";import{t as gt}from"./preload-helper-6ad28da3.js";import{t as At}from"./sre-locales-112320af.js";var F,R=globalThis,I=R.ShadowRoot&&(R.ShadyCSS===void 0||R.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ht=Symbol(),J=new WeakMap,St=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==ht)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(I&&t===void 0){const r=e!==void 0&&e.length===1;r&&(t=J.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&J.set(e,t))}return t}toString(){return this.cssText}},wt=t=>new St(typeof t=="string"?t:t+"",void 0,ht),Et=(t,e)=>{if(I)t.adoptedStyleSheets=e.map((r=>r instanceof CSSStyleSheet?r:r.styleSheet));else for(const r of e){const s=document.createElement("style"),i=R.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=r.cssText,t.appendChild(s)}},K=I?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(const s of e.cssRules)r+=s.cssText;return wt(r)})(t):t,{is:xt,defineProperty:Ot,getOwnPropertyDescriptor:Tt,getOwnPropertyNames:kt,getOwnPropertySymbols:Ct,getPrototypeOf:Pt}=Object,w=globalThis,Z=w.trustedTypes,Mt=Z?Z.emptyScript:"",Rt=w.reactiveElementPolyfillSupport,T=(t,e)=>t,U={toAttribute(t,e){switch(e){case Boolean:t=t?Mt:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},q=(t,e)=>!xt(t,e),G={attribute:!0,type:String,converter:U,reflect:!1,useDefault:!1,hasChanged:q};(F=Symbol).metadata??(F.metadata=Symbol("metadata")),w.litPropertyMetadata??(w.litPropertyMetadata=new WeakMap);var S=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=G){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const r=Symbol(),s=this.getPropertyDescriptor(t,r,e);s!==void 0&&Ot(this.prototype,t,s)}}static getPropertyDescriptor(t,e,r){const{get:s,set:i}=Tt(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get:s,set(n){const o=s?.call(this);i?.call(this,n),this.requestUpdate(t,o,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??G}static _$Ei(){if(this.hasOwnProperty(T("elementProperties")))return;const t=Pt(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(T("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(T("properties"))){const e=this.properties,r=[...kt(e),...Ct(e)];for(const s of r)this.createProperty(s,e[s])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[r,s]of e)this.elementProperties.set(r,s)}this._$Eh=new Map;for(const[e,r]of this.elementProperties){const s=this._$Eu(e,r);s!==void 0&&this._$Eh.set(s,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const s of r)e.unshift(K(s))}else t!==void 0&&e.push(K(t));return e}static _$Eu(t,e){const r=e.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Et(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$ET(t,e){const r=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,r);if(s!==void 0&&r.reflect===!0){const i=(r.converter?.toAttribute!==void 0?r.converter:U).toAttribute(e,r.type);this._$Em=t,i==null?this.removeAttribute(s):this.setAttribute(s,i),this._$Em=null}}_$AK(t,e){const r=this.constructor,s=r._$Eh.get(t);if(s!==void 0&&this._$Em!==s){const i=r.getPropertyOptions(s),n=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:U;this._$Em=s;const o=n.fromAttribute(e,i.type);this[s]=o??this._$Ej?.get(s)??o,this._$Em=null}}requestUpdate(t,e,r){if(t!==void 0){const s=this.constructor,i=this[t];if(r??(r=s.getPropertyOptions(t)),!((r.hasChanged??q)(i,e)||r.useDefault&&r.reflect&&i===this._$Ej?.get(t)&&!this.hasAttribute(s._$Eu(t,r))))return;this.C(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:r,reflect:s,wrapped:i},n){r&&!(this._$Ej??(this._$Ej=new Map)).has(t)&&(this._$Ej.set(t,n??e??this[t]),i!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||r||(e=void 0),this._$AL.set(t,e)),s===!0&&this._$Em!==t&&(this._$Eq??(this._$Eq=new Set)).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[s,i]of this._$Ep)this[s]=i;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[s,i]of r){const{wrapped:n}=i,o=this[s];n!==!0||this._$AL.has(s)||o===void 0||this.C(s,void 0,i,o)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((r=>r.hostUpdate?.())),this.update(e)):this._$EM()}catch(r){throw t=!1,this._$EM(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((e=>e.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach((e=>this._$ET(e,this[e])))),this._$EM()}updated(t){}firstUpdated(t){}};S.elementStyles=[],S.shadowRootOptions={mode:"open"},S[T("elementProperties")]=new Map,S[T("finalized")]=new Map,Rt?.({ReactiveElement:S}),(w.reactiveElementVersions??(w.reactiveElementVersions=[])).push("2.1.1");var N=globalThis,D=N.trustedTypes,Q=D?D.createPolicy("lit-html",{createHTML:t=>t}):void 0,ct="$lit$",_=`lit$${Math.random().toFixed(9).slice(2)}$`,pt="?"+_,Ut=`<${pt}>`,A=document,C=()=>A.createComment(""),P=t=>t===null||typeof t!="object"&&typeof t!="function",B=Array.isArray,Nt=t=>B(t)||typeof t?.[Symbol.iterator]=="function",z=`[
|
|
2
|
+
\f\r]`,O=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Y=/-->/g,X=/>/g,y=RegExp(`>|${z}(?:([^\\s"'>=/]+)(${z}*=${z}*(?:[^
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),tt=/'/g,et=/"/g,ut=/^(?:script|style|textarea|title)$/i,Dt=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Lt=Dt(1),E=Symbol.for("lit-noChange"),c=Symbol.for("lit-nothing"),rt=new WeakMap,g=A.createTreeWalker(A,129);function vt(t,e){if(!B(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Q!==void 0?Q.createHTML(e):e}var Ht=(t,e)=>{const r=t.length-1,s=[];let i,n=e===2?"<svg>":e===3?"<math>":"",o=O;for(let a=0;a<r;a++){const l=t[a];let b,h,d=-1,v=0;for(;v<l.length&&(o.lastIndex=v,h=o.exec(l),h!==null);)v=o.lastIndex,o===O?h[1]==="!--"?o=Y:h[1]!==void 0?o=X:h[2]!==void 0?(ut.test(h[2])&&(i=RegExp("</"+h[2],"g")),o=y):h[3]!==void 0&&(o=y):o===y?h[0]===">"?(o=i??O,d=-1):h[1]===void 0?d=-2:(d=o.lastIndex-h[2].length,b=h[1],o=h[3]===void 0?y:h[3]==='"'?et:tt):o===et||o===tt?o=y:o===Y||o===X?o=O:(o=y,i=void 0);const m=o===y&&t[a+1].startsWith("/>")?" ":"";n+=o===O?l+Ut:d>=0?(s.push(b),l.slice(0,d)+ct+l.slice(d)+_+m):l+_+(d===-2?a:m)}return[vt(t,n+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),s]},j=class ft{constructor({strings:e,_$litType$:r},s){let i;this.parts=[];let n=0,o=0;const a=e.length-1,l=this.parts,[b,h]=Ht(e,r);if(this.el=ft.createElement(b,s),g.currentNode=this.el.content,r===2||r===3){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(i=g.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(const d of i.getAttributeNames())if(d.endsWith(ct)){const v=h[o++],m=i.getAttribute(d).split(_),M=/([.?@])?(.*)/.exec(v);l.push({type:1,index:n,name:M[2],strings:m,ctor:M[1]==="."?jt:M[1]==="?"?It:M[1]==="@"?qt:H}),i.removeAttribute(d)}else d.startsWith(_)&&(l.push({type:6,index:n}),i.removeAttribute(d));if(ut.test(i.tagName)){const d=i.textContent.split(_),v=d.length-1;if(v>0){i.textContent=D?D.emptyScript:"";for(let m=0;m<v;m++)i.append(d[m],C()),g.nextNode(),l.push({type:2,index:++n});i.append(d[v],C())}}}else if(i.nodeType===8)if(i.data===pt)l.push({type:2,index:n});else{let d=-1;for(;(d=i.data.indexOf(_,d+1))!==-1;)l.push({type:7,index:n}),d+=_.length-1}n++}}static createElement(e,r){const s=A.createElement("template");return s.innerHTML=e,s}};function x(t,e,r=t,s){if(e===E)return e;let i=s!==void 0?r._$Co?.[s]:r._$Cl;const n=P(e)?void 0:e._$litDirective$;return i?.constructor!==n&&(i?._$AO?.(!1),n===void 0?i=void 0:(i=new n(t),i._$AT(t,r,s)),s!==void 0?(r._$Co??(r._$Co=[]))[s]=i:r._$Cl=i),i!==void 0&&(e=x(t,i._$AS(t,e.values),i,s)),e}var zt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:r}=this._$AD,s=(t?.creationScope??A).importNode(e,!0);g.currentNode=s;let i=g.nextNode(),n=0,o=0,a=r[0];for(;a!==void 0;){if(n===a.index){let l;a.type===2?l=new V(i,i.nextSibling,this,t):a.type===1?l=new a.ctor(i,a.name,a.strings,this,t):a.type===6&&(l=new Bt(i,this,t)),this._$AV.push(l),a=r[++o]}n!==a?.index&&(i=g.nextNode(),n++)}return g.currentNode=A,s}p(t){let e=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}},V=class bt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,s,i){this.type=2,this._$AH=c,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=s,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=x(this,e,r),P(e)?e===c||e==null||e===""?(this._$AH!==c&&this._$AR(),this._$AH=c):e!==this._$AH&&e!==E&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Nt(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==c&&P(this._$AH)?this._$AA.nextSibling.data=e:this.T(A.createTextNode(e)),this._$AH=e}$(e){const{values:r,_$litType$:s}=e,i=typeof s=="number"?this._$AC(e):(s.el===void 0&&(s.el=j.createElement(vt(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(r);else{const n=new zt(i,this),o=n.u(this.options);n.p(r),this.T(o),this._$AH=n}}_$AC(e){let r=rt.get(e.strings);return r===void 0&&rt.set(e.strings,r=new j(e)),r}k(e){B(this._$AH)||(this._$AH=[],this._$AR());const r=this._$AH;let s,i=0;for(const n of e)i===r.length?r.push(s=new bt(this.O(C()),this.O(C()),this,this.options)):s=r[i],s._$AI(n),i++;i<r.length&&(this._$AR(s&&s._$AB.nextSibling,i),r.length=i)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){const s=e.nextSibling;e.remove(),e=s}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},H=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,s,i){this.type=1,this._$AH=c,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=i,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=c}_$AI(t,e=this,r,s){const i=this.strings;let n=!1;if(i===void 0)t=x(this,t,e,0),n=!P(t)||t!==this._$AH&&t!==E,n&&(this._$AH=t);else{const o=t;let a,l;for(t=i[0],a=0;a<i.length-1;a++)l=x(this,o[r+a],e,a),l===E&&(l=this._$AH[a]),n||(n=!P(l)||l!==this._$AH[a]),l===c?t=c:t!==c&&(t+=(l??"")+i[a+1]),this._$AH[a]=l}n&&!s&&this.j(t)}j(t){t===c?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},jt=class extends H{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===c?void 0:t}},It=class extends H{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==c)}},qt=class extends H{constructor(t,e,r,s,i){super(t,e,r,s,i),this.type=5}_$AI(t,e=this){if((t=x(this,t,e,0)??c)===E)return;const r=this._$AH,s=t===c&&r!==c||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,i=t!==c&&(r===c||s);s&&this.element.removeEventListener(this.name,this,r),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Bt=class{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){x(this,t)}},Vt=N.litHtmlPolyfillSupport;Vt?.(j,V),(N.litHtmlVersions??(N.litHtmlVersions=[])).push("3.3.1");var Wt=(t,e,r)=>{const s=r?.renderBefore??e;let i=s._$litPart$;if(i===void 0){const n=r?.renderBefore??null;s._$litPart$=i=new V(e.insertBefore(C(),n),n,void 0,r??{})}return i._$AI(t),i},L=globalThis,k=class extends S{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;const e=super.createRenderRoot();return(t=this.renderOptions).renderBefore??(t.renderBefore=e.firstChild),e}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Wt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return E}};k._$litElement$=!0,k.finalized=!0,L.litElementHydrateSupport?.({LitElement:k});var Ft=L.litElementPolyfillSupport;Ft?.({LitElement:k});(L.litElementVersions??(L.litElementVersions=[])).push("4.2.1");var Jt=t=>(e,r)=>{r!==void 0?r.addInitializer((()=>{customElements.get(t)||customElements.define(t,e)})):customElements.get(t)||customElements.define(t,e)},Kt={attribute:!0,type:String,converter:U,reflect:!1,hasChanged:q},Zt=(t=Kt,e,r)=>{const{kind:s,metadata:i}=r;let n=globalThis.litPropertyMetadata.get(i);if(n===void 0&&globalThis.litPropertyMetadata.set(i,n=new Map),s==="setter"&&((t=Object.create(t)).wrapped=!0),n.set(r.name,t),s==="accessor"){const{name:o}=r;return{set(a){const l=e.get.call(this);e.set.call(this,a),this.requestUpdate(o,l,t)},init(a){return a!==void 0&&this.C(o,void 0,t,a),a}}}if(s==="setter"){const{name:o}=r;return function(a){const l=this[o];e.call(this,a),this.requestUpdate(o,l,t)}}throw Error("Unsupported decorator location: "+s)};function $(t){return(e,r)=>typeof r=="object"?Zt(t,e,r):((s,i,n)=>{const o=i.hasOwnProperty(n);return i.constructor.createProperty(n,s),o?Object.getOwnPropertyDescriptor(i,n):void 0})(t,e,r)}var Gt=Object.defineProperty,Qt=Object.getOwnPropertyDescriptor,f=(t,e,r,s)=>{for(var i=s>1?void 0:s?Qt(e,r):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Gt(e,r,i),i},u=class extends k{constructor(){super(...arguments),this.variant="primary",this.size="default",this.type="circle",this.state="default",this.iconName="home",this.disabled=!1,this.buttonAriaLabel="Icon button"}createRenderRoot(){return this}connectedCallback(){if(super.connectedCallback(),!document.querySelector('link[href*="Roboto"]')){const t=document.createElement("link");t.rel="stylesheet",t.href="https://ui.renaissance.com/fonts/Roboto/style.css",document.head.appendChild(t)}}set shape(t){this.type=t}get shape(){return this.type}get buttonClasses(){return["nds-icon-button",`nds-icon-button--${this.variant}`,`nds-icon-button--${this.size}`,`nds-icon-button--${this.type}`,this.state!=="default"?`nds-icon-button--${this.state}`:"",this.disabled?"nds-icon-button--disabled":""].filter(Boolean).join(" ")}handleClick(t){if(this.disabled){t.preventDefault(),t.stopPropagation();return}this.dispatchEvent(new CustomEvent("icon-button-click",{bubbles:!0,composed:!0,detail:{originalEvent:t}}))}render(){return Lt`
|
|
4
|
+
<style>
|
|
5
|
+
nds-icon-button {
|
|
6
|
+
display: inline-block;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.nds-icon-button {
|
|
10
|
+
display: inline-flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
font-family: var(--font-family-roboto, "Roboto", sans-serif);
|
|
15
|
+
font-weight: var(--font-weight-regular, 400);
|
|
16
|
+
line-height: 1;
|
|
17
|
+
text-decoration: none;
|
|
18
|
+
background: none;
|
|
19
|
+
position: relative;
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
margin: 0;
|
|
22
|
+
padding: 0;
|
|
23
|
+
border: none;
|
|
24
|
+
transition: background-color 0.2s ease-in-out,
|
|
25
|
+
color 0.2s ease-in-out,
|
|
26
|
+
box-shadow 0.2s ease-in-out;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* ── Sizes ── */
|
|
30
|
+
.nds-icon-button--small {
|
|
31
|
+
width: var(--height-32, 32px);
|
|
32
|
+
height: var(--height-32, 32px);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.nds-icon-button--medium {
|
|
36
|
+
width: var(--height-36, 36px);
|
|
37
|
+
height: var(--height-36, 36px);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.nds-icon-button--default {
|
|
41
|
+
width: var(--height-40, 40px);
|
|
42
|
+
height: var(--height-40, 40px);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.nds-icon-button--large {
|
|
46
|
+
width: var(--height-48, 48px);
|
|
47
|
+
height: var(--height-48, 48px);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* ── Shapes ── */
|
|
51
|
+
.nds-icon-button--circle {
|
|
52
|
+
border-radius: var(--radius-circle, 50%);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.nds-icon-button--rounded {
|
|
56
|
+
border-radius: var(--radius-8, 8px);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/* ── Primary ── */
|
|
60
|
+
.nds-icon-button--primary {
|
|
61
|
+
background-color: var(--color-interactive-blue, #146eb3);
|
|
62
|
+
color: var(--color-primary-white, #ffffff);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.nds-icon-button--primary:hover:not(:disabled):not(.nds-icon-button--disabled) {
|
|
66
|
+
box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-black, #000000);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.nds-icon-button--primary:active:not(:disabled):not(.nds-icon-button--disabled) {
|
|
70
|
+
box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-black, #000000);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* ── Secondary ── */
|
|
74
|
+
.nds-icon-button--secondary {
|
|
75
|
+
background-color: var(--color-primary-white, #ffffff);
|
|
76
|
+
color: var(--color-interactive-blue, #146eb3);
|
|
77
|
+
box-shadow: inset 0 0 0 var(--stroke-1, 1px) var(--color-interactive-blue, #146eb3);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.nds-icon-button--secondary:hover:not(:disabled):not(.nds-icon-button--disabled) {
|
|
81
|
+
background-color: var(--color-interactive-blue, #146eb3);
|
|
82
|
+
color: var(--color-primary-white, #ffffff);
|
|
83
|
+
box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-black, #000000);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.nds-icon-button--secondary:active:not(:disabled):not(.nds-icon-button--disabled) {
|
|
87
|
+
background-color: var(--color-interactive-blue, #146eb3);
|
|
88
|
+
color: var(--color-primary-white, #ffffff);
|
|
89
|
+
box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-black, #000000);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* ── Tertiary ── */
|
|
93
|
+
.nds-icon-button--tertiary {
|
|
94
|
+
background-color: var(--color-new-gray, #f3f5f7);
|
|
95
|
+
color: var(--color-interactive-blue, #146eb3);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.nds-icon-button--tertiary:hover:not(:disabled):not(.nds-icon-button--disabled) {
|
|
99
|
+
box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-interactive-blue, #146eb3);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.nds-icon-button--tertiary:active:not(:disabled):not(.nds-icon-button--disabled) {
|
|
103
|
+
box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-black, #000000);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/* ── Ghost ── */
|
|
107
|
+
.nds-icon-button--ghost {
|
|
108
|
+
background-color: transparent;
|
|
109
|
+
color: var(--color-interactive-blue, #146eb3);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.nds-icon-button--ghost:hover:not(:disabled):not(.nds-icon-button--disabled) {
|
|
113
|
+
background-color: var(--color-new-gray, #f3f5f7);
|
|
114
|
+
box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-interactive-blue, #146eb3);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.nds-icon-button--ghost:active:not(:disabled):not(.nds-icon-button--disabled) {
|
|
118
|
+
background-color: var(--color-new-gray, #f3f5f7);
|
|
119
|
+
box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-black, #000000);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/* ── Dark (for dark backgrounds) ── */
|
|
123
|
+
.nds-icon-button--dark {
|
|
124
|
+
background-color: transparent;
|
|
125
|
+
color: var(--color-primary-white, #ffffff);
|
|
126
|
+
box-shadow: inset 0 0 0 var(--stroke-1, 1px) var(--color-primary-white, #ffffff);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.nds-icon-button--dark:hover:not(:disabled):not(.nds-icon-button--disabled) {
|
|
130
|
+
background-color: var(--color-interactive-blue, #146eb3);
|
|
131
|
+
box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-white, #ffffff);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.nds-icon-button--dark:active:not(:disabled):not(.nds-icon-button--disabled) {
|
|
135
|
+
background-color: var(--color-interactive-blue, #146eb3);
|
|
136
|
+
box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-white, #ffffff);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/* ── Disabled ── */
|
|
140
|
+
.nds-icon-button--disabled,
|
|
141
|
+
.nds-icon-button:disabled {
|
|
142
|
+
opacity: 0.5;
|
|
143
|
+
cursor: not-allowed;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/* ── Icon sizing ── */
|
|
147
|
+
.nds-icon-button__icon {
|
|
148
|
+
line-height: 1;
|
|
149
|
+
display: inline-flex;
|
|
150
|
+
align-items: center;
|
|
151
|
+
justify-content: center;
|
|
152
|
+
color: inherit;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.nds-icon-button--small .nds-icon-button__icon {
|
|
156
|
+
font-size: var(--nds-icon-small, 12px);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.nds-icon-button--medium .nds-icon-button__icon {
|
|
160
|
+
font-size: var(--nds-icon-medium, 14px);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.nds-icon-button--default .nds-icon-button__icon {
|
|
164
|
+
font-size: var(--nds-icon-default, 16px);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.nds-icon-button--large .nds-icon-button__icon {
|
|
168
|
+
font-size: var(--nds-icon-large, 20px);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/* ── Focus ── */
|
|
172
|
+
.nds-icon-button:focus-visible {
|
|
173
|
+
outline: 2px solid var(--color-focus-blue, #2b87ff);
|
|
174
|
+
outline-offset: 2px;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/* ── Reduced motion ── */
|
|
178
|
+
@media (prefers-reduced-motion: reduce) {
|
|
179
|
+
.nds-icon-button {
|
|
180
|
+
transition: none;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
</style>
|
|
184
|
+
<button
|
|
185
|
+
type="button"
|
|
186
|
+
class="${this.buttonClasses}"
|
|
187
|
+
?disabled="${this.disabled}"
|
|
188
|
+
aria-disabled="${this.disabled?"true":"false"}"
|
|
189
|
+
aria-label="${this.buttonAriaLabel}"
|
|
190
|
+
@click="${this.handleClick}"
|
|
191
|
+
>
|
|
192
|
+
<i class="fa-light fa-${this.iconName} nds-icon-button__icon" aria-hidden="true"></i>
|
|
193
|
+
</button>
|
|
194
|
+
`}};f([$()],u.prototype,"variant",2);f([$()],u.prototype,"size",2);f([$()],u.prototype,"type",2);f([$()],u.prototype,"state",2);f([$({attribute:"icon-name"})],u.prototype,"iconName",2);f([$({type:Boolean})],u.prototype,"disabled",2);f([$({attribute:"button-aria-label"})],u.prototype,"buttonAriaLabel",2);f([$()],u.prototype,"shape",1);u=f([Jt("nds-icon-button")],u);var st=yt("tts-math-speech",$t),de=Promise.resolve(),Yt=t=>{let e=null,r=!1;return s=>{if(!e){At(s);const i=t();e=i,i.catch(n=>{if(e===i&&(e=null),r){st.debug("speech-rule-engine failed to load again",n);return}r=!0,st.warn("speech-rule-engine failed to load; math reads as its visible text until a later read loads it.",n)})}return e}},he=Yt(()=>gt(async()=>{const{default:t}=await import("./sre-engine-ace23548.js");return{default:t}},[],import.meta.url).then(({default:t})=>{if(!t||typeof t.toSpeech!="function")throw new Error("speech-rule-engine did not expose toSpeech");return t})),it=t=>!!t&&typeof t=="object"&&!Array.isArray(t),ot=t=>typeof t=="string"&&t.trim()?t.trim():void 0,Xt=t=>{if(!it(t))return;const e=ot(t.domain),r=ot(t.style),s=it(t.engineOptions)?t.engineOptions:void 0;if(!(!e&&!r&&!s))return{...e?{domain:e}:{},...r?{style:r}:{},...s?{engineOptions:s}:{}}},te=new Set(["reserved-row","expanding-row","floating-overlay","left-aligned"]),W=t=>t&&typeof t=="object"?t:{},p=(t,e)=>t===void 0?e:t,mt=(t,e="left-aligned")=>typeof t=="string"&&te.has(t)?t:e,nt=Object.freeze([{rate:.8,label:"Slow",ariaLabel:"Slow speed"},{rate:1,label:"Normal",ariaLabel:"Normal speed",default:!0},{rate:1.25,label:"Fast",ariaLabel:"Fast speed"}]),at=t=>{if(!(typeof t!="number"||!Number.isFinite(t)||t<=0))return Math.round(t*100)/100},lt=t=>{if(typeof t!="string")return;const e=t.trim();return e.length?e:void 0},dt=t=>`${t}x`,_t=(t,e)=>t.toLowerCase()==="normal"?"Normal speed":e?`Speed ${t}`:`${t} speed`,ee=(t,e,r)=>e?e.toLowerCase().includes(t.toLowerCase())?e:`${t} ${e}`:_t(t,r),re=t=>{const e=Array.isArray(t)?t:[...nt];if(e.length===0)return[];const r=new Set,s=[];for(const o of e){const a=W(o),l=at(typeof o=="number"?o:a.rate);if(l===void 0||r.has(l))continue;r.add(l);const b=l===1?"Normal":dt(l),h=typeof o=="number"?b:lt(a.label)||b,d=typeof o=="number"?l===1?"Normal speed":_t(h,!0):ee(h,lt(a.ariaLabel),h===b);s.push({rate:l,label:h,ariaLabel:d,isDefault:!1,requestedDefault:a.default===!0||a.isDefault===!0})}if(!s.length)return re(nt);if(!r.has(1)){const o={rate:1,label:"Normal",ariaLabel:"Normal speed",isDefault:!1,requestedDefault:!1},a=s.findIndex(l=>l.rate>1);a>=0?s.splice(a,0,o):s.push(o)}const i=s.findIndex(o=>o.requestedDefault),n=i>=0?i:s.findIndex(o=>o.rate===1);return s.map(({requestedDefault:o,...a},l)=>({...a,isDefault:l===n}))},ce=Object.freeze([.8,1,1.25]),se=t=>{const e={...t,layoutMode:mt(t.layoutMode)};if(t.backend!=="server")return e;const r={...e,apiEndpoint:p(e.apiEndpoint,"/api/tts"),transportMode:p(e.transportMode,"pie"),endpointValidationMode:p(e.endpointValidationMode,"voices"),validateEndpoint:p(e.validateEndpoint,!0),includeAuthOnAssetFetch:p(e.includeAuthOnAssetFetch,!1),rate:p(e.rate,1),language:p(e.language,"en-US")};return t.serverProvider==="polly"?{...r,engine:p(r.engine,"neural"),format:p(r.format,"mp3"),speechMarksMode:p(r.speechMarksMode,"word+sentence")}:r},pe=t=>{const{enabled:e,provider:r,...s}=W(t);return se(s)},ie=t=>t.backend||"browser",ue=t=>{const e=ie(t)==="server"?t.serverProvider:void 0,r=e==="polly",s=t.transportMode||(e==="custom"?"custom":"pie"),i=Xt(t.mathSpeech);return{voice:t.defaultVoice,rate:t.rate,pitch:t.pitch,providerOptions:{...W(t.providerOptions),...t.language?{locale:t.language}:{},...r&&t.engine?{engine:t.engine}:{},...r&&typeof t.sampleRate=="number"?{sampleRate:t.sampleRate}:{},...r&&t.format?{format:t.format}:{},...r?{speechMarkTypes:t.speechMarksMode==="word+sentence"?["word","sentence"]:["word"]}:{},...s==="custom"&&typeof t.cache=="boolean"?{cache:t.cache}:{},...s==="custom"&&t.speedRate?{speedRate:t.speedRate}:{},...s==="custom"&&t.lang_id?{lang_id:t.lang_id}:{},...i?{mathSpeech:i}:{}},apiEndpoint:t.apiEndpoint,provider:e,language:t.language,transportMode:s,endpointMode:t.endpointMode,endpointValidationMode:t.endpointValidationMode,includeAuthOnAssetFetch:t.includeAuthOnAssetFetch,assetOrigins:t.assetOrigins,credentials:t.credentials,headers:t.headers,validateEndpoint:t.validateEndpoint,...typeof t.mathTokenHighlighting=="boolean"?{mathTokenHighlighting:t.mathTokenHighlighting}:{}}},oe=t=>mt(t.layoutMode),ve=t=>{switch(oe(t)){case"reserved-row":return{mount:"before-buttons",controlsRow:{reserveSpace:!0,expandWhenToolActive:!1},headerOverlay:{expandWhenToolActive:!1}};case"expanding-row":return{mount:"before-buttons",controlsRow:{reserveSpace:!1,expandWhenToolActive:!0},headerOverlay:{expandWhenToolActive:!1}};case"floating-overlay":return{mount:"before-buttons",controlsRow:{reserveSpace:!1,expandWhenToolActive:!1},headerOverlay:{expandWhenToolActive:!1}};default:return{mount:"before-buttons",controlsRow:{reserveSpace:!1,expandWhenToolActive:!1},headerOverlay:{expandWhenToolActive:!0}}}};export{oe as a,ve as i,mt as n,pe as o,re as r,ue as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as s,n as k}from"./mathjax-BKrHE4xs-3ca05bf6.js";k.dynamicSetup("","variants",s({VX:{"-tex-variant":{34:[.549,-.096,.647],39:[.549,-.096,.407],42:[.462,-.039,.5],96:[.549,-.096,.407],126:[.116,.002,.556,{ic:.001}],170:[.448,.143,.5,{c:"a̲"}],176:[.445,-.055,.5],178:[.666,0,.5,{sk:-.01}],179:[.666,.022,.5],185:[.666,0,.5],186:[.448,.143,.5,{c:"o̲"}],8212:[.278,-.256,.667],8289:[.64,.24,.96],8304:[.666,.022,.5],8305:[.657,0,.278],8308:[.677,0,.5,{sk:.103}],8309:[.666,.022,.5],8310:[.666,.022,.5,{sk:.068}],8311:[.676,.022,.5,{sk:-.147}],8312:[.666,.022,.5,{sk:.011}],8313:[.666,.022,.5],8314:[.583,.083,.778],8315:[.27,-.23,.778],8316:[.367,-.133,.778],8317:[.748,.248,.389],8318:[.748,.248,.389],8319:[.442,0,.556,{sk:.013}],8320:[.666,.022,.5],8321:[.666,0,.5],8322:[.666,0,.5,{sk:-.01}],8323:[.666,.022,.5],8324:[.677,0,.5,{sk:.103}],8325:[.666,.022,.5],8326:[.666,.022,.5,{sk:.068}],8327:[.676,.022,.5,{sk:-.147}],8328:[.666,.022,.5,{sk:.011}],8329:[.666,.022,.5],8330:[.583,.083,.778],8331:[.27,-.23,.778],8332:[.367,-.133,.778],8333:[.748,.248,.389],8334:[.748,.248,.389]}}},"NCM"),{},["MJX-NCM-VX"]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var d=/[^A-Za-z0-9\-._~@/]/gu,m=new Set([".",".."]),g=e=>{const r=e.replace(d,a=>encodeURIComponent(a)),n=r.split("/");return n.some(a=>m.has(a))?n.join("%2F"):r},T=e=>Array.from(e,g).join("+"),o=e=>{if(!e)throw new Error("Parameter is required: input");const r=e.charAt(0)==="@"?e.match(/^(@[^/]+\/[^/@]+)(?:\/([^@]+))?(?:@([\s\S]+))?/):e.match(/^([^/@]+)(?:\/([^@]+))?(?:@([\s\S]+))?/);if(!r)throw new Error(`[parse-package-name] "${e}" is not a valid string`);return{name:r[1],path:r[2]||"",version:r[3]||""}},h=e=>e.split("+").map(r=>o(r).name).join("+"),t="--version-",v="[0-9A-Za-z-]+",E=e=>e.trim().replace(/[.+]/g,"-").replace(/[^0-9A-Za-z-]/g,"-").replace(/-{2,}/g,"-");function p(e){const r=e.match(new RegExp(`${t}(${v})$`));return!r||r.index===void 0?{baseName:e}:{baseName:e.slice(0,r.index),existingEncodedVersion:r[1]}}function l(e,r,n={}){const{version:a}=o(r);if(!a.trim()&&n.preserveUnversionedTag)return e;const s=E(a),{baseName:i,existingEncodedVersion:c}=p(e);return c===s?e:`${i}${t}${s}`}export{o as a,h as i,l as n,T as r,p as t};
|