@retoo/scena 0.0.1 → 0.1.0
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 +2 -2
- package/dist/index.d.ts +99 -51
- package/dist/scena.cjs.js +7773 -6664
- package/dist/scena.css +4 -2
- package/dist/scena.css.map +1 -1
- package/dist/scena.es.js +7775 -6704
- package/dist/scena.min.cjs.js +4040 -1
- package/dist/scena.min.css +1 -1
- package/dist/scena.min.es.js +4041 -1
- package/dist/scena.min.umd.js +4044 -1
- package/dist/scena.umd.js +8070 -6961
- package/package.json +12 -15
package/dist/scena.min.es.js
CHANGED
|
@@ -1 +1,4041 @@
|
|
|
1
|
-
"undefined"!=typeof window&&((window.__svelte??={}).v??=new Set).add("5");const e=Symbol(),t="http://www.w3.org/1999/xhtml",n=!1;var r=Array.isArray,i=Array.prototype.indexOf,o=Array.prototype.includes,s=Array.from,a=Object.defineProperty,l=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyDescriptors,c=Object.prototype,f=Array.prototype,d=Object.getPrototypeOf,p=Object.isExtensible;function v(e){return"function"==typeof e}const h=()=>{};function g(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}const m=1<<24,_=16,y=32,E=64,b=512,C=1024,w=2048,S=4096,O=8192,k=16384,I=32768,D=65536,N=1<<17,T=1<<18,A=1<<19,L=65536,P=1<<21,M=1<<23,R=Symbol("$state"),x=Symbol("legacy props"),V=Symbol(""),z=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},$=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml");function H(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function j(e){return e===this.v}function B(e){return t=e,n=this.v,!(t!=t?n==n:t!==n||null!==t&&"object"==typeof t||"function"==typeof t);var t,n}let U=!1;let G=null;function F(e){G=e}function X(){const e={};return[()=>(function(e){return W().has(e)}(e)||function(){throw new Error("https://svelte.dev/e/missing_context")}(),function(e){const t=W().get(e);return t}(e)),t=>function(e,t){return W().set(e,t),t}(e,t)]}function q(e,t=!1,n){G={p:G,i:!1,c:null,e:null,s:e,x:null,l:U&&!t?{s:null,u:null,$:[]}:null}}function K(e){var t=G,n=t.e;if(null!==n)for(var r of(t.e=null,n))ot(r);return void 0!==e&&(t.x=e),t.i=!0,G=t.p,e??{}}function Y(){return!U||null!==G&&null===G.l}function W(e){return null===G&&H(),G.c??=new Map(function(e){let t=e.p;for(;null!==t;){const e=t.c;if(null!==e)return e;t=t.p}return null}(G)||void 0)}let Z=[];function Q(e){if(0===Z.length){var t=Z;queueMicrotask(()=>{t===Z&&function(){var e=Z;Z=[],function(e){for(var t=0;t<e.length;t++)e[t]()}(e)}()})}Z.push(e)}function J(e){var t=It;if(null===t)return St.f|=M,e;if(0===(t.f&I)&&!(4&t.f))throw e;ee(e,t)}function ee(e,t){for(;null!==t;){if(128&t.f){if(0===(t.f&I))throw e;try{return void t.b.error(e)}catch(t){e=t}}t=t.parent}throw e}const te=-7169;function ne(e,t){e.f=e.f&te|t}function re(e){0!==(e.f&b)||null===e.deps?ne(e,C):ne(e,S)}function ie(e){if(null!==e)for(const t of e)2&t.f&&0!==(t.f&L)&&(t.f^=L,ie(t.deps))}function oe(e,t,n){0!==(e.f&w)?t.add(e):0!==(e.f&S)&&n.add(e),ie(e.deps),ne(e,C)}const se=new Set;let ae=null,le=null,ue=[],ce=null,fe=!1;class de{current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=0;#r=0;#i=null;#o=new Set;#s=new Set;#a=new Map;is_fork=!1;#l=!1;#u(){return this.is_fork||this.#r>0}skip_effect(e){this.#a.has(e)||this.#a.set(e,{d:[],m:[]})}unskip_effect(e){var t=this.#a.get(e);if(t){for(var n of(this.#a.delete(e),t.d))ne(n,w),_e(n);for(n of t.m)ne(n,S),_e(n)}}process(e){ue=[],this.apply();var t=[],n=[];for(const r of e)this.#c(r,t,n);if(this.#u()){this.#f(n),this.#f(t);for(const[e,t]of this.#a)ye(e,t)}else{for(const e of this.#e)e();this.#e.clear(),0===this.#n&&this.#d(),ae=null,he(n),he(t),this.#o.clear(),this.#s.clear(),this.#i?.resolve()}le=null}#c(e,t,n){e.f^=C;for(var r=e.first;null!==r;){var i=r.f,o=!!(96&i);if(!(o&&0!==(i&C)||0!==(i&O)||this.#a.has(r))&&null!==r.fn){o?r.f^=C:4&i?t.push(r):$t(r)&&(0!==(i&_)&&this.#s.add(r),Gt(r));var s=r.first;if(null!==s){r=s;continue}}for(;null!==r;){var a=r.next;if(null!==a){r=a;break}r=r.parent}}}#f(e){for(var t=0;t<e.length;t+=1)oe(e[t],this.#o,this.#s)}capture(t,n){n===e||this.previous.has(t)||this.previous.set(t,n),0===(t.f&M)&&(this.current.set(t,t.v),le?.set(t,t.v))}activate(){ae=this,this.apply()}deactivate(){ae===this&&(ae=null,le=null)}flush(){if(this.activate(),ue.length>0){if(function(){fe=!0;try{for(var e=0;ue.length>0;){var t=de.ensure();if(e++>1e3)n,pe();t.process(ue),Ae.clear()}}finally{ue=[],fe=!1,ce=null}}(),null!==ae&&ae!==this)return}else 0===this.#n&&this.process([]);this.deactivate()}discard(){for(const e of this.#t)e(this);this.#t.clear()}#d(){if(se.size>1){this.previous.clear();var e=le,t=!0;for(const e of se){if(e===this){t=!1;continue}const r=[];for(const[n,i]of this.current){if(e.current.has(n)){if(!t||i===e.current.get(n))continue;e.current.set(n,i)}r.push(n)}if(0===r.length)continue;const i=[...e.current.keys()].filter(e=>!this.current.has(e));if(i.length>0){var n=ue;ue=[];const t=new Set,o=new Map;for(const e of r)ge(e,i,t,o);if(ue.length>0){ae=e,e.apply();for(const t of ue)e.#c(t,[],[]);e.deactivate()}ue=n}}ae=null,le=e}this.#a.clear(),se.delete(this)}increment(e){this.#n+=1,e&&(this.#r+=1)}decrement(e){this.#n-=1,e&&(this.#r-=1),this.#l||(this.#l=!0,Q(()=>{this.#l=!1,this.#u()?ue.length>0&&this.flush():this.revive()}))}revive(){for(const e of this.#o)this.#s.delete(e),ne(e,w),_e(e);for(const e of this.#s)ne(e,S),_e(e);this.flush()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#i??=g()).promise}static ensure(){if(null===ae){const e=ae=new de;se.add(ae),Q(()=>{ae===e&&e.flush()})}return ae}apply(){}}function pe(){try{!function(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}()}catch(e){ee(e,ce)}}let ve=null;function he(e){var t=e.length;if(0!==t){for(var n=0;n<t;){var r=e[n++];if(!(24576&r.f)&&$t(r)&&(ve=new Set,Gt(r),null===r.deps&&null===r.first&&null===r.nodes&&null===r.teardown&&null===r.ac&&ht(r),ve?.size>0)){Ae.clear();for(const e of ve){if(24576&e.f)continue;const t=[e];let n=e.parent;for(;null!==n;)ve.has(n)&&(ve.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){const n=t[e];24576&n.f||Gt(n)}}ve.clear()}}ve=null}}function ge(e,t,n,r){if(!n.has(e)&&(n.add(e),null!==e.reactions))for(const i of e.reactions){const e=i.f;2&e?ge(i,t,n,r):4194320&e&&0===(e&w)&&me(i,t,r)&&(ne(i,w),_e(i))}}function me(e,t,n){const r=n.get(e);if(void 0!==r)return r;if(null!==e.deps)for(const r of e.deps){if(o.call(t,r))return!0;if(2&r.f&&me(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function _e(e){var t=ce=e,n=t.b;if(n?.is_pending&&16777228&e.f&&0===(e.f&I))n.defer_effect(e);else{for(;null!==t.parent;){var r=(t=t.parent).f;if(fe&&t===It&&0!==(r&_)&&0===(r&T)&&0!==(r&I))return;if(96&r){if(0===(r&C))return;t.f^=C}}ue.push(t)}}function ye(e,t){if(0===(e.f&y)||0===(e.f&C)){0!==(e.f&w)?t.d.push(e):0!==(e.f&S)&&t.m.push(e),ne(e,C);for(var n=e.first;null!==n;)ye(n,t),n=n.next}}class Ee{parent;is_pending=!1;transform_error;#p;#v=null;#h;#g;#m;#_=null;#y=null;#E=null;#b=null;#C=0;#w=0;#S=!1;#o=new Set;#s=new Set;#O=null;#k=function(e){let t,n=0,r=Pe(0);return()=>{nt()&&(Ft(r),at(()=>(0===n&&(t=Kt(()=>e(()=>Ve(r)))),n+=1,()=>{Q(()=>{n-=1,0===n&&(t?.(),t=void 0,Ve(r))})})))}}(()=>(this.#O=Pe(this.#C),()=>{this.#O=null}));constructor(e,t,n,r){this.#p=e,this.#h=t,this.#g=e=>{var t=It;t.b=this,t.f|=128,n(e)},this.parent=It.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#m=ut(()=>{this.#I()},589824)}#D(){try{this.#_=ft(()=>this.#g(this.#p))}catch(e){this.error(e)}}#N(e){const t=this.#h.failed;t&&(this.#E=ft(()=>{t(this.#p,()=>e,()=>()=>{})}))}#T(){const e=this.#h.pending;e&&(this.is_pending=!0,this.#y=ft(()=>e(this.#p)),Q(()=>{var e=this.#b=document.createDocumentFragment(),t=Xe();e.append(t),this.#_=this.#A(()=>(de.ensure(),ft(()=>this.#g(t)))),0===this.#w&&(this.#p.before(e),this.#b=null,gt(this.#y,()=>{this.#y=null}),this.#L())}))}#I(){try{if(this.is_pending=this.has_pending_snippet(),this.#w=0,this.#C=0,this.#_=ft(()=>{this.#g(this.#p)}),this.#w>0){var e=this.#b=document.createDocumentFragment();Et(this.#_,e);const t=this.#h.pending;this.#y=ft(()=>t(this.#p))}else this.#L()}catch(e){this.error(e)}}#L(){this.is_pending=!1;for(const e of this.#o)ne(e,w),_e(e);for(const e of this.#s)ne(e,S),_e(e);this.#o.clear(),this.#s.clear()}defer_effect(e){oe(e,this.#o,this.#s)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#h.pending}#A(e){var t=It,n=St,r=G;Dt(this.#m),kt(this.#m),F(this.#m.ctx);try{return e()}catch(e){return J(e),null}finally{Dt(t),kt(n),F(r)}}#P(e){this.has_pending_snippet()?(this.#w+=e,0===this.#w&&(this.#L(),this.#y&>(this.#y,()=>{this.#y=null}),this.#b&&(this.#p.before(this.#b),this.#b=null))):this.parent&&this.parent.#P(e)}update_pending_count(e){this.#P(e),this.#C+=e,this.#O&&!this.#S&&(this.#S=!0,Q(()=>{this.#S=!1,this.#O&&xe(this.#O,this.#C)}))}get_effect_pending(){return this.#k(),Ft(this.#O)}error(e){var t=this.#h.onerror;let n=this.#h.failed;if(!t&&!n)throw e;this.#_&&(vt(this.#_),this.#_=null),this.#y&&(vt(this.#y),this.#y=null),this.#E&&(vt(this.#E),this.#E=null);var r=!1,i=!1;const o=()=>{r?console.warn("https://svelte.dev/e/svelte_boundary_reset_noop"):(r=!0,i&&function(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}(),null!==this.#E&>(this.#E,()=>{this.#E=null}),this.#A(()=>{de.ensure(),this.#I()}))},s=e=>{try{i=!0,t?.(e,o),i=!1}catch(e){ee(e,this.#m&&this.#m.parent)}n&&(this.#E=this.#A(()=>{de.ensure();try{return ft(()=>{var t=It;t.b=this,t.f|=128,n(this.#p,()=>e,()=>o)})}catch(e){return ee(e,this.#m.parent),null}}))};Q(()=>{var t;try{t=this.transform_error(e)}catch(e){return void ee(e,this.#m&&this.#m.parent)}null!==t&&"object"==typeof t&&"function"==typeof t.then?t.then(s,e=>ee(e,this.#m&&this.#m.parent)):s(t)})}}function be(e,t,n,r){const i=Y()?we:ke;var o=e.filter(e=>!e.settled);if(0!==n.length||0!==o.length){var s,a,l,u,c=It,f=(s=It,a=St,l=G,u=ae,function(e=!0){Dt(s),kt(a),F(l),e&&u?.activate()}),d=1===o.length?o[0].promise:o.length>1?Promise.all(o.map(e=>e.promise)):null;0!==n.length?d?d.then(v):v():d.then(()=>p(t.map(i)))}else r(t.map(i));function p(e){f();try{r(e)}catch(e){0===(c.f&k)&&ee(e,c)}Ce()}function v(){f(),Promise.all(n.map(e=>Se(e))).then(e=>p([...t.map(i),...e])).catch(e=>ee(e,c))}}function Ce(e=!0){Dt(null),kt(null),F(null),e&&ae?.deactivate()}function we(t){var n=null!==St&&2&St.f?St:null;null!==It&&(It.f|=A);return{ctx:G,deps:null,effects:null,equals:j,f:2050,fn:t,reactions:null,rv:0,v:e,wv:0,parent:n??It,ac:null}}function Se(t,n,r){null===It&&function(){throw new Error("https://svelte.dev/e/async_derived_orphan")}();var i=void 0,o=Pe(e),s=!St,a=new Map;return function(e){tt(4718592,e,!0)}(()=>{var e=g();i=e.promise;try{Promise.resolve(t()).then(e.resolve,e.reject).finally(Ce)}catch(t){e.reject(t),Ce()}var n=ae;if(s){var r=function(){var e=It.b,t=ae,n=e.is_rendered();return e.update_pending_count(1),t.increment(n),()=>{e.update_pending_count(-1),t.decrement(n)}}();a.get(n)?.reject(z),a.delete(n),a.set(n,e)}const l=(e,t=void 0)=>{if(n.activate(),t)t!==z&&(o.f|=M,xe(o,t));else{0!==(o.f&M)&&(o.f^=M),xe(o,e);for(const[e,t]of a){if(a.delete(e),e===n)break;t.reject(z)}}r&&r()};e.promise.then(l,e=>l(null,e||"unknown"))}),rt(()=>{for(const e of a.values())e.reject(z)}),new Promise(e=>{!function t(n){function r(){n===i?e(o):t(i)}n.then(r,r)}(i)})}function Oe(e){const t=we(e);return Tt(t),t}function ke(e){const t=we(e);return t.equals=B,t}function Ie(e){var t,n=It;Dt(function(e){for(var t=e.parent;null!==t;){if(!(2&t.f))return 0===(t.f&k)?t:null;t=t.parent}return null}(e));try{e.f&=-65537,function(e){var t=e.effects;if(null!==t){e.effects=null;for(var n=0;n<t.length;n+=1)vt(t[n])}}(e),t=jt(e)}finally{Dt(n)}return t}function De(e){var t=Ie(e);e.equals(t)||(e.wv=zt(),ae?.is_fork&&null!==e.deps||(e.v=t,null!==e.deps))?Ct||(null!==le?(nt()||ae?.is_fork)&&le.set(e,t):re(e)):ne(e,C)}function Ne(e){if(null!==e.effects)for(const t of e.effects)t.teardown&&Gt(t)}let Te=new Set;const Ae=new Map;let Le=!1;function Pe(e,t){return{f:0,v:e,reactions:null,equals:j,rv:0,wv:0}}function Me(e,t){const n=Pe(e);return Tt(n),n}function Re(e,t,n=!1){return null===St||Ot&&0===(St.f&N)||!Y()||!(4325394&St.f)||null!==Nt&&o.call(Nt,e)||function(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}(),xe(e,n?$e(t):t)}function xe(e,t){if(!e.equals(t)){var n=e.v;Ct?Ae.set(e,t):Ae.set(e,n),e.v=t;var r=de.ensure();if(r.capture(e,n),2&e.f){const t=e;0!==(e.f&w)&&Ie(t),re(t)}e.wv=zt(),ze(e,w),!Y()||null===It||0===(It.f&C)||96&It.f||(null===Pt?function(e){Pt=e}([e]):Pt.push(e)),!r.is_fork&&Te.size>0&&!Le&&function(){Le=!1;for(const e of Te)0!==(e.f&C)&&ne(e,S),$t(e)&&Gt(e);Te.clear()}()}return t}function Ve(e){Re(e,e.v+1)}function ze(e,t){var n=e.reactions;if(null!==n)for(var r=Y(),i=n.length,o=0;o<i;o++){var s=n[o],a=s.f;if(r||s!==It){var l=0===(a&w);if(l&&ne(s,t),2&a){var u=s;le?.delete(u),0===(a&L)&&(a&b&&(s.f|=L),ze(u,S))}else l&&(0!==(a&_)&&null!==ve&&ve.add(s),_e(s))}}}function $e(t){if("object"!=typeof t||null===t||R in t)return t;const n=d(t);if(n!==c&&n!==f)return t;var i=new Map,o=r(t),s=Me(0),a=xt,u=e=>{if(xt===a)return e();var t=St,n=xt;kt(null),Vt(a);var r=e();return kt(t),Vt(n),r};return o&&i.set("length",Me(t.length)),new Proxy(t,{defineProperty(e,t,n){"value"in n&&!1!==n.configurable&&!1!==n.enumerable&&!1!==n.writable||function(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}();var r=i.get(t);return void 0===r?u(()=>{var e=Me(n.value);return i.set(t,e),e}):Re(r,n.value,!0),!0},deleteProperty(t,n){var r=i.get(n);if(void 0===r){if(n in t){const t=u(()=>Me(e));i.set(n,t),Ve(s)}}else Re(r,e),Ve(s);return!0},get(n,r,o){if(r===R)return t;var s=i.get(r),a=r in n;if(void 0!==s||a&&!l(n,r)?.writable||(s=u(()=>Me($e(a?n[r]:e))),i.set(r,s)),void 0!==s){var c=Ft(s);return c===e?void 0:c}return Reflect.get(n,r,o)},getOwnPropertyDescriptor(t,n){var r=Reflect.getOwnPropertyDescriptor(t,n);if(r&&"value"in r){var o=i.get(n);o&&(r.value=Ft(o))}else if(void 0===r){var s=i.get(n),a=s?.v;if(void 0!==s&&a!==e)return{enumerable:!0,configurable:!0,value:a,writable:!0}}return r},has(t,n){if(n===R)return!0;var r=i.get(n),o=void 0!==r&&r.v!==e||Reflect.has(t,n);if((void 0!==r||null!==It&&(!o||l(t,n)?.writable))&&(void 0===r&&(r=u(()=>Me(o?$e(t[n]):e)),i.set(n,r)),Ft(r)===e))return!1;return o},set(t,n,r,a){var c=i.get(n),f=n in t;if(o&&"length"===n)for(var d=r;d<c.v;d+=1){var p=i.get(d+"");void 0!==p?Re(p,e):d in t&&(p=u(()=>Me(e)),i.set(d+"",p))}void 0===c?f&&!l(t,n)?.writable||(Re(c=u(()=>Me(void 0)),$e(r)),i.set(n,c)):(f=c.v!==e,Re(c,u(()=>$e(r))));var v=Reflect.getOwnPropertyDescriptor(t,n);if(v?.set&&v.set.call(a,r),!f){if(o&&"string"==typeof n){var h=i.get("length"),g=Number(n);Number.isInteger(g)&&g>=h.v&&Re(h,g+1)}Ve(s)}return!0},ownKeys(t){Ft(s);var n=Reflect.ownKeys(t).filter(t=>{var n=i.get(t);return void 0===n||n.v!==e});for(var[r,o]of i)o.v===e||r in t||n.push(r);return n},setPrototypeOf(){!function(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}()}})}function He(e){try{if(null!==e&&"object"==typeof e&&R in e)return e[R]}catch{}return e}function je(e,t){return Object.is(He(e),He(t))}var Be,Ue,Ge,Fe;function Xe(e=""){return document.createTextNode(e)}function qe(e){return Ge.call(e)}function Ke(e){return Fe.call(e)}function Ye(e,t){return qe(e)}function We(e,t=!1){var n=qe(e);return n instanceof Comment&&""===n.data?Ke(n):n}function Ze(e,t=1,n=!1){let r=e;for(;t--;)r=Ke(r);return r}function Qe(e,t){if(t){const t=document.body;e.autofocus=!0,Q(()=>{document.activeElement===t&&e.focus()})}}function Je(e){var t=St,n=It;kt(null),Dt(null);try{return e()}finally{kt(t),Dt(n)}}function et(e){null===It&&(null===St&&function(){throw new Error("https://svelte.dev/e/effect_orphan")}(),function(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}()),Ct&&function(){throw new Error("https://svelte.dev/e/effect_in_teardown")}()}function tt(e,t,n){var r=It;null!==r&&0!==(r.f&O)&&(e|=O);var i={ctx:G,deps:null,nodes:null,f:e|w|b,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};if(n)try{Gt(i)}catch(e){throw vt(i),e}else null!==t&&_e(i);var o=i;if(n&&null===o.deps&&null===o.teardown&&null===o.nodes&&o.first===o.last&&0===(o.f&A)&&(o=o.first,0!==(e&_)&&0!==(e&D)&&null!==o&&(o.f|=D)),null!==o&&(o.parent=r,null!==r&&function(e,t){var n=t.last;null===n?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}(o,r),null!==St&&2&St.f&&0===(e&E))){var s=St;(s.effects??=[]).push(o)}return i}function nt(){return null!==St&&!Ot}function rt(e){const t=tt(8,null,!1);return ne(t,C),t.teardown=e,t}function it(e){et();var t=It.f;if(!(!St&&0!==(t&y)&&0===(t&I)))return ot(e);var n=G;(n.e??=[]).push(e)}function ot(e){return tt(1048580,e,!1)}function st(e){return tt(4,e,!1)}function at(e,t=0){return tt(8|t,e,!0)}function lt(e,t=[],n=[],r=[]){be(r,t,n,t=>{tt(8,()=>e(...t.map(Ft)),!0)})}function ut(e,t=0){return tt(_|t,e,!0)}function ct(e,t=0){return tt(m|t,e,!0)}function ft(e){return tt(524320,e,!0)}function dt(e){var t=e.teardown;if(null!==t){const e=Ct,n=St;wt(!0),kt(null);try{t.call(null)}finally{wt(e),kt(n)}}}function pt(e,t=!1){var n=e.first;for(e.first=e.last=null;null!==n;){const e=n.ac;null!==e&&Je(()=>{e.abort(z)});var r=n.next;0!==(n.f&E)?n.parent=null:vt(n,t),n=r}}function vt(e,t=!0){var n=!1;!t&&0===(e.f&T)||null===e.nodes||null===e.nodes.end||(!function(e,t){for(;null!==e;){var n=e===t?null:Ke(e);e.remove(),e=n}}(e.nodes.start,e.nodes.end),n=!0),pt(e,t&&!n),Ut(e,0),ne(e,k);var r=e.nodes&&e.nodes.t;if(null!==r)for(const e of r)e.stop();dt(e);var i=e.parent;null!==i&&null!==i.first&&ht(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function ht(e){var t=e.parent,n=e.prev,r=e.next;null!==n&&(n.next=r),null!==r&&(r.prev=n),null!==t&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function gt(e,t,n=!0){var r=[];mt(e,r,!0);var i=()=>{n&&vt(e),t&&t()},o=r.length;if(o>0){var s=()=>--o||i();for(var a of r)a.out(s)}else i()}function mt(e,t,n){if(0===(e.f&O)){e.f^=O;var r=e.nodes&&e.nodes.t;if(null!==r)for(const e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;null!==i;){var o=i.next;mt(i,t,!!(0!==(i.f&D)||0!==(i.f&y)&&0!==(e.f&_))&&n),i=o}}}function _t(e){yt(e,!0)}function yt(e,t){if(0!==(e.f&O)){e.f^=O,0===(e.f&C)&&(ne(e,w),_e(e));for(var n=e.first;null!==n;){var r=n.next;yt(n,!!(0!==(n.f&D)||0!==(n.f&y))&&t),n=r}var i=e.nodes&&e.nodes.t;if(null!==i)for(const e of i)(e.is_global||t)&&e.in()}}function Et(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;null!==n;){var i=n===r?null:Ke(n);t.append(n),n=i}}let bt=!1,Ct=!1;function wt(e){Ct=e}let St=null,Ot=!1;function kt(e){St=e}let It=null;function Dt(e){It=e}let Nt=null;function Tt(e){null!==St&&(null===Nt?Nt=[e]:Nt.push(e))}let At=null,Lt=0,Pt=null;let Mt=1,Rt=0,xt=Rt;function Vt(e){xt=e}function zt(){return++Mt}function $t(e){var t=e.f;if(0!==(t&w))return!0;if(2&t&&(e.f&=-65537),0!==(t&S)){for(var n=e.deps,r=n.length,i=0;i<r;i++){var o=n[i];if($t(o)&&De(o),o.wv>e.wv)return!0}0!==(t&b)&&null===le&&ne(e,C)}return!1}function Ht(e,t,n=!0){var r=e.reactions;if(null!==r&&(null===Nt||!o.call(Nt,e)))for(var i=0;i<r.length;i++){var s=r[i];2&s.f?Ht(s,t,!1):t===s&&(n?ne(s,w):0!==(s.f&C)&&ne(s,S),_e(s))}}function jt(e){var t=At,n=Lt,r=Pt,i=St,o=Nt,s=G,a=Ot,l=xt,u=e.f;At=null,Lt=0,Pt=null,St=96&u?null:e,Nt=null,F(e.ctx),Ot=!1,xt=++Rt,null!==e.ac&&(Je(()=>{e.ac.abort(z)}),e.ac=null);try{e.f|=P;var c=(0,e.fn)();e.f|=I;var f=e.deps,d=ae?.is_fork;if(null!==At){var p;if(d||Ut(e,Lt),null!==f&&Lt>0)for(f.length=Lt+At.length,p=0;p<At.length;p++)f[Lt+p]=At[p];else e.deps=f=At;if(nt()&&0!==(e.f&b))for(p=Lt;p<f.length;p++)(f[p].reactions??=[]).push(e)}else!d&&null!==f&&Lt<f.length&&(Ut(e,Lt),f.length=Lt);if(Y()&&null!==Pt&&!Ot&&null!==f&&!(6146&e.f))for(p=0;p<Pt.length;p++)Ht(Pt[p],e);if(null!==i&&i!==e){if(Rt++,null!==i.deps)for(let e=0;e<n;e+=1)i.deps[e].rv=Rt;if(null!==t)for(const e of t)e.rv=Rt;null!==Pt&&(null===r?r=Pt:r.push(...Pt))}return 0!==(e.f&M)&&(e.f^=M),c}catch(e){return J(e)}finally{e.f^=P,At=t,Lt=n,Pt=r,St=i,Nt=o,F(s),Ot=a,xt=l}}function Bt(e,t){let n=t.reactions;if(null!==n){var r=i.call(n,e);if(-1!==r){var s=n.length-1;0===s?n=t.reactions=null:(n[r]=n[s],n.pop())}}if(null===n&&2&t.f&&(null===At||!o.call(At,t))){var a=t;0!==(a.f&b)&&(a.f^=b,a.f&=-65537),re(a),function(e){if(null!==e.effects)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(z),t.teardown=h,t.ac=null,Ut(t,0),pt(t))}(a),Ut(a,0)}}function Ut(e,t){var n=e.deps;if(null!==n)for(var r=t;r<n.length;r++)Bt(e,n[r])}function Gt(e){var t=e.f;if(0===(t&k)){ne(e,C);var n=It,r=bt;It=e,bt=!0;try{16777232&t?function(e){for(var t=e.first;null!==t;){var n=t.next;0===(t.f&y)&&vt(t),t=n}}(e):pt(e),dt(e);var i=jt(e);e.teardown="function"==typeof i?i:null,e.wv=Mt}finally{bt=r,It=n}}}function Ft(e){var t=!!(2&e.f);if(null!==St&&!Ot&&!(null!==It&&0!==(It.f&k)||null!==Nt&&o.call(Nt,e))){var n=St.deps;if(0!==(St.f&P))e.rv<Rt&&(e.rv=Rt,null===At&&null!==n&&n[Lt]===e?Lt++:null===At?At=[e]:At.push(e));else{(St.deps??=[]).push(e);var r=e.reactions;null===r?e.reactions=[St]:o.call(r,St)||r.push(St)}}if(Ct&&Ae.has(e))return Ae.get(e);if(t){var i=e;if(Ct){var s=i.v;return(0===(i.f&C)&&null!==i.reactions||qt(i))&&(s=Ie(i)),Ae.set(i,s),s}var a=0===(i.f&b)&&!Ot&&null!==St&&(bt||0!==(St.f&b)),l=0===(i.f&I);$t(i)&&(a&&(i.f|=b),De(i)),a&&!l&&(Ne(i),Xt(i))}if(le?.has(e))return le.get(e);if(0!==(e.f&M))throw e.v;return e.v}function Xt(e){if(e.f|=b,null!==e.deps)for(const t of e.deps)(t.reactions??=[]).push(e),2&t.f&&0===(t.f&b)&&(Ne(t),Xt(t))}function qt(t){if(t.v===e)return!0;if(null===t.deps)return!1;for(const e of t.deps){if(Ae.has(e))return!0;if(2&e.f&&qt(e))return!0}return!1}function Kt(e){var t=Ot;try{return Ot=!0,e()}finally{Ot=t}}const Yt=Symbol("events"),Wt=new Set,Zt=new Set;function Qt(e,t,n,r={}){function i(e){if(r.capture||rn.call(t,e),!e.cancelBubble)return Je(()=>n?.call(this,e))}return e.startsWith("pointer")||e.startsWith("touch")||"wheel"===e?Q(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Jt(e,t,n,r,i){var o={capture:r,passive:i},s=Qt(e,t,n,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&rt(()=>{t.removeEventListener(e,s,o)})}function en(e,t,n){(t[Yt]??={})[e]=n}function tn(e){for(var t=0;t<e.length;t++)Wt.add(e[t]);for(var n of Zt)n(e)}let nn=null;function rn(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],o=i[0]||e.target;nn=e;var s=0,l=nn===e&&e[Yt];if(l){var u=i.indexOf(l);if(-1!==u&&(t===document||t===window))return void(e[Yt]=t);var c=i.indexOf(t);if(-1===c)return;u<=c&&(s=u)}if((o=i[s]||e.target)!==t){a(e,"currentTarget",{configurable:!0,get:()=>o||n});var f=St,d=It;kt(null),Dt(null);try{for(var p,v=[];null!==o;){var h=o.assignedSlot||o.parentNode||o.host||null;try{var g=o[Yt]?.[r];null==g||o.disabled&&e.target!==o||g.call(o,e)}catch(e){p?v.push(e):p=e}if(e.cancelBubble||h===t||null===h)break;o=h}if(p){for(let e of v)queueMicrotask(()=>{throw e});throw p}}finally{e[Yt]=t,delete e.currentTarget,kt(f),Dt(d)}}}const on=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function sn(e){var n=function(e){let n;return document.createElementNS(t,e,n)}("template");return n.innerHTML=function(e){return on?.createHTML(e)??e}(e.replaceAll("<!>","\x3c!----\x3e")),n.content}function an(e,t){var n=It;null===n.nodes&&(n.nodes={start:e,end:t,a:null,t:null})}function ln(e,t){var n,r=!!(1&t),i=!!(2&t),o=!e.startsWith("<!>");return()=>{void 0===n&&(n=sn(o?e:"<!>"+e),r||(n=qe(n)));var t=i||Ue?document.importNode(n,!0):n.cloneNode(!0);r?an(qe(t),t.lastChild):an(t,t);return t}}function un(e,t,n="svg"){var r,i=!e.startsWith("<!>"),o=!!(1&t),s=`<${n}>${i?e:"<!>"+e}</${n}>`;return()=>{if(!r){var e=qe(sn(s));if(o)for(r=document.createDocumentFragment();qe(e);)r.appendChild(qe(e));else r=qe(e)}var t=r.cloneNode(!0);o?an(qe(t),t.lastChild):an(t,t);return t}}function cn(e,t){return un(e,t,"svg")}function fn(e=""){var t=Xe(e+"");return an(t,t),t}function dn(){var e=document.createDocumentFragment(),t=document.createComment(""),n=Xe();return e.append(t,n),an(t,n),e}function pn(e,t){null!==e&&e.before(t)}function vn(e){return e.endsWith("capture")&&"gotpointercapture"!==e&&"lostpointercapture"!==e}const hn=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function gn(e){return hn.includes(e)}const mn={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function _n(e){return e=e.toLowerCase(),mn[e]??e}const yn=["touchstart","touchmove"];function En(e){return yn.includes(e)}function bn(e,t){return function(e,{target:t,anchor:n,props:r={},events:i,context:o,intro:a=!0,transformError:u}){!function(){if(void 0===Be){Be=window,Ue=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Ge=l(t,"firstChild").get,Fe=l(t,"nextSibling").get,p(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),p(n)&&(n.__t=void 0)}}();var c=void 0,f=function(e){de.ensure();const t=tt(524352,e,!0);return(e={})=>new Promise(n=>{e.outro?gt(t,()=>{vt(t),n(void 0)}):(vt(t),n(void 0))})}(()=>{var a=n??t.appendChild(Xe());!function(e,t,n,r){new Ee(e,t,n,r)}(a,{pending:()=>{}},t=>{q({}),o&&(G.c=o),i&&(r.$$events=i),c=e(t,r)||{},K()},u);var l=new Set,f=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!l.has(r)){l.add(r);var i=En(r);for(const e of[t,document]){var o=Cn.get(e);void 0===o&&(o=new Map,Cn.set(e,o));var s=o.get(r);void 0===s?(e.addEventListener(r,rn,{passive:i}),o.set(r,1)):o.set(r,s+1)}}}};return f(s(Wt)),Zt.add(f),()=>{for(var e of l)for(const n of[t,document]){var r=Cn.get(n),i=r.get(e);0==--i?(n.removeEventListener(e,rn),r.delete(e),0===r.size&&Cn.delete(n)):r.set(e,i)}Zt.delete(f),a!==n&&a.parentNode?.removeChild(a)}});return wn.set(c,f),c}(e,t)}const Cn=new Map;let wn=new WeakMap;class Sn{anchor;#M=new Map;#R=new Map;#x=new Map;#V=new Set;#z=!0;constructor(e,t=!0){this.anchor=e,this.#z=t}#d=()=>{var e=ae;if(this.#M.has(e)){var t=this.#M.get(e),n=this.#R.get(t);if(n)_t(n),this.#V.delete(t);else{var r=this.#x.get(t);r&&(this.#R.set(t,r.effect),this.#x.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(const[t,n]of this.#M){if(this.#M.delete(t),t===e)break;const r=this.#x.get(n);r&&(vt(r.effect),this.#x.delete(n))}for(const[e,r]of this.#R){if(e===t||this.#V.has(e))continue;const i=()=>{if(Array.from(this.#M.values()).includes(e)){var t=document.createDocumentFragment();Et(r,t),t.append(Xe()),this.#x.set(e,{effect:r,fragment:t})}else vt(r);this.#V.delete(e),this.#R.delete(e)};this.#z||!n?(this.#V.add(e),gt(r,i,!1)):i()}}};#$=e=>{this.#M.delete(e);const t=Array.from(this.#M.values());for(const[e,n]of this.#x)t.includes(e)||(vt(n.effect),this.#x.delete(e))};ensure(e,t){var n=ae;!t||this.#R.has(e)||this.#x.has(e)||this.#R.set(e,ft(()=>t(this.anchor)));this.#M.set(n,e),this.#d()}}function On(e,t,...n){var r=new Sn(e);ut(()=>{const e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},D)}function kn(e){var t,n;null===G&&H(),U&&null!==G.l?(t=G,n=t.l,n.u??={a:[],b:[],m:[]}).m.push(e):it(()=>{const t=Kt(e);if("function"==typeof t)return t})}function In(e){null===G&&H(),kn(()=>()=>Kt(e))}function Dn(e,t,n=!1){var r=new Sn(e);function i(e,t){r.ensure(e,t)}ut(()=>{var e=!1;t((t,n=0)=>{e=!0,i(n,t)}),e||i(!1,null)},n?D:0)}function Nn(e,t){var n,r=void 0;ct(()=>{r!==(r=t())&&(n&&(vt(n),n=null),r&&(n=ft(()=>{st(()=>r(e))})))})}function Tn(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Tn(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function An(e){return"object"==typeof e?function(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Tn(e))&&(r&&(r+=" "),r+=t);return r}(e):e??""}const Ln=[..." \t\n\r\f \v\ufeff"];function Pn(e,t=!1){var n=t?" !important;":";",r="";for(var i of Object.keys(e)){var o=e[i];null!=o&&""!==o&&(r+=" "+i+": "+o+n)}return r}function Mn(e){return"-"!==e[0]||"-"!==e[1]?e.toLowerCase():e}function Rn(e,t,n,r,i,o){var s=e.__className;if(s!==n||void 0===s){var a=function(e,t,n){var r=null==e?"":""+e;if(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 a=s+o;0!==s&&!Ln.includes(r[s-1])||a!==r.length&&!Ln.includes(r[a])?s=a:r=(0===s?"":r.substring(0,s))+r.substring(a+1)}return""===r?null:r}(n,0,o);null==a?e.removeAttribute("class"):t?e.className=a:e.setAttribute("class",a),e.__className=n}else if(o&&i!==o)for(var l in o){var u=!!o[l];null!=i&&u===!!i[l]||e.classList.toggle(l,u)}return o}function xn(e,t={},n,r){for(var i in n){var o=n[i];t[i]!==o&&(null==n[i]?e.style.removeProperty(i):e.style.setProperty(i,o,r))}}function Vn(e,t,n,r){if(e.__style!==t){var i=function(e,t){if(t){var n,r,i="";if(Array.isArray(t)?(n=t[0],r=t[1]):n=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var o=!1,s=0,a=!1,l=[];n&&l.push(...Object.keys(n).map(Mn)),r&&l.push(...Object.keys(r).map(Mn));var u=0,c=-1;const t=e.length;for(var f=0;f<t;f++){var d=e[f];if(a?"/"===d&&"*"===e[f-1]&&(a=!1):o?o===d&&(o=!1):"/"===d&&"*"===e[f+1]?a=!0:'"'===d||"'"===d?o=d:"("===d?s++:")"===d&&s--,!a&&!1===o&&0===s)if(":"===d&&-1===c)c=f;else if(";"===d||f===t-1){if(-1!==c){var p=Mn(e.substring(u,c).trim());l.includes(p)||(";"!==d&&f++,i+=" "+e.substring(u,f).trim()+";")}u=f+1,c=-1}}}return n&&(i+=Pn(n)),r&&(i+=Pn(r,!0)),""===(i=i.trim())?null:i}return null==e?null:String(e)}(t,r);null==i?e.removeAttribute("style"):e.style.cssText=i,e.__style=t}else r&&(Array.isArray(r)?(xn(e,n?.[0],r[0]),xn(e,n?.[1],r[1],"important")):xn(e,n,r));return r}function zn(e,t,n=!1){if(e.multiple){if(null==t)return;if(!r(t))return void console.warn("https://svelte.dev/e/select_multiple_invalid_value");for(var i of e.options)i.selected=t.includes($n(i))}else{for(i of e.options){if(je($n(i),t))return void(i.selected=!0)}n&&void 0===t||(e.selectedIndex=-1)}}function $n(e){return"__value"in e?e.__value:e.value}const Hn=Symbol("class"),jn=Symbol("style"),Bn=Symbol("is custom element"),Un=Symbol("is html"),Gn=$?"option":"OPTION",Fn=$?"select":"SELECT";function Xn(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function qn(e,t,n,r){var i=Yn(e);i[t]!==(i[t]=n)&&("loading"===t&&(e[V]=n),null==n?e.removeAttribute(t):"string"!=typeof n&&Zn(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Kn(t,n,r=[],i=[],o=[],s,a=!1,l=!1){be(o,r,i,r=>{var i=void 0,o={},s=t.nodeName===Fn,u=!1;if(ct(()=>{var c=n(...r.map(Ft)),f=function(t,n,r){var i=Yn(t),o=i[Bn],s=!i[Un],a=n||{},l=t.nodeName===Gn;for(var u in n)u in r||(r[u]=null);r.class?r.class=An(r.class):r[Hn]&&(r.class=null),r[jn]&&(r.style??=null);var c=Zn(t);for(const u in r){let g=r[u];if(l&&"value"===u&&null==g)t.value=t.__value="",a[u]=g;else if("class"!==u)if("style"!==u){var f=a[u];if(g!==f||void 0===g&&t.hasAttribute(u)){a[u]=g;var d=u[0]+u[1];if("$$"!==d)if("on"===d){const e={},n="$$"+u;let r=u.slice(2);var p=gn(r);if(vn(r)&&(r=r.slice(0,-7),e.capture=!0),!p&&f){if(null!=g)continue;t.removeEventListener(r,a[n],e),a[n]=null}if(p)en(r,t,g),tn([r]);else if(null!=g){let i=function(e){a[u].call(this,e)};a[n]=Qt(r,t,i,e)}}else if("style"===u)qn(t,u,g);else if("autofocus"===u)Qe(t,Boolean(g));else if(o||"__value"!==u&&("value"!==u||null==g))if("selected"===u&&l)Xn(t,g);else{var v=u;s||(v=_n(v));var h="defaultValue"===v||"defaultChecked"===v;if(null!=g||o||h)h||c.includes(v)&&(o||"string"!=typeof g)?(t[v]=g,v in i&&(i[v]=e)):"function"!=typeof g&&qn(t,v,g);else if(i[u]=null,"value"===v||"checked"===v){let e=t;const r=void 0===n;if("value"===v){let t=e.defaultValue;e.removeAttribute(v),e.defaultValue=t,e.value=e.__value=r?t:null}else{let t=e.defaultChecked;e.removeAttribute(v),e.defaultChecked=t,e.checked=!!r&&t}}else t.removeAttribute(u)}else t.value=t.__value=g}}else Vn(t,g,n?.[jn],r[jn]),a[u]=g,a[jn]=r[jn];else Rn(t,"http://www.w3.org/1999/xhtml"===t.namespaceURI,g,0,n?.[Hn],r[Hn]),a[u]=g,a[Hn]=r[Hn]}return a}(t,i,c,0,a,l);u&&s&&"value"in c&&zn(t,c.value);for(let e of Object.getOwnPropertySymbols(o))c[e]||vt(o[e]);for(let e of Object.getOwnPropertySymbols(c)){var d=c[e];"@attach"!==e.description||i&&d===i[e]||(o[e]&&vt(o[e]),o[e]=ft(()=>Nn(t,()=>d))),f[e]=d}i=f}),s){var c=t;st(()=>{zn(c,i.value,!0),function(e){var t=new MutationObserver(()=>{zn(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),rt(()=>{t.disconnect()})}(c)})}u=!0})}function Yn(e){return e.__attributes??={[Bn]:e.nodeName.includes("-"),[Un]:e.namespaceURI===t}}var Wn=new Map;function Zn(e){var t,n=e.getAttribute("is")||e.nodeName,r=Wn.get(n);if(r)return r;Wn.set(n,r=[]);for(var i=e,o=Element.prototype;o!==i;){for(var s in t=u(i))t[s].set&&r.push(s);i=d(i)}return r}function Qn(e,t){return e===t||e?.[R]===t}function Jn(e={},t,n,r){return st(()=>{var r,i;return at(()=>{r=i,i=[],Kt(()=>{e!==n(...i)&&(t(e,...i),r&&Qn(n(...r),e)&&t(null,...r))})}),()=>{Q(()=>{i&&Qn(n(...i),e)&&t(null,...i)})}}),e}let er=!1;const tr={get(e,t){if(!e.exclude.includes(t))return e.props[t]},set:(e,t)=>!1,getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t))return t in e.props?{enumerable:!0,configurable:!0,value:e.props[t]}:void 0},has:(e,t)=>!e.exclude.includes(t)&&t in e.props,ownKeys:e=>Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))};function nr(e,t,n){return new Proxy({props:e,exclude:t},tr)}const rr={get(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(v(r)&&(r=r()),"object"==typeof r&&null!==r&&t in r)return r[t]}},set(e,t,n){let r=e.props.length;for(;r--;){let i=e.props[r];v(i)&&(i=i());const o=l(i,t);if(o&&o.set)return o.set(n),!0}return!1},getOwnPropertyDescriptor(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(v(r)&&(r=r()),"object"==typeof r&&null!==r&&t in r){const e=l(r,t);return e&&!e.configurable&&(e.configurable=!0),e}}},has(e,t){if(t===R||t===x)return!1;for(let n of e.props)if(v(n)&&(n=n()),null!=n&&t in n)return!0;return!1},ownKeys(e){const t=[];for(let n of e.props)if(v(n)&&(n=n()),n){for(const e in n)t.includes(e)||t.push(e);for(const e of Object.getOwnPropertySymbols(n))t.includes(e)||t.push(e)}return t}};function ir(...e){return new Proxy({props:e},rr)}function or(e,t,n,r){var i,o,s=!U||!!(2&n),a=!!(8&n),u=!!(16&n),c=r,f=!0,d=()=>(f&&(f=!1,c=u?Kt(r):r),c);if(a){var p=R in e||x in e;i=l(e,t)?.set??(p&&t in e?n=>e[t]=n:void 0)}var v,h=!1;if(a?[o,h]=function(e){var t=er;try{return er=!1,[e(),er]}finally{er=t}}(()=>e[t]):o=e[t],void 0===o&&void 0!==r&&(o=d(),i&&(s&&function(){throw new Error("https://svelte.dev/e/props_invalid_value")}(),i(o))),v=s?()=>{var n=e[t];return void 0===n?d():(f=!0,n)}:()=>{var n=e[t];return void 0!==n&&(c=void 0),void 0===n?c:n},s&&!(4&n))return v;if(i){var g=e.$$legacy;return function(e,t){return arguments.length>0?(s&&t&&!g&&!h||i(t?v():e),e):v()}}var m=!1,_=(1&n?we:ke)(()=>(m=!1,v()));a&&Ft(_);var y=It;return function(e,t){if(arguments.length>0){const n=t?Ft(_):s&&a?$e(e):e;return Re(_,n),m=!0,void 0!==c&&(c=n),e}return Ct&&m||0!==(y.f&k)?_.v:Ft(_)}}var sr=(e=>(e.ON_SCENA_MOUNT="scena:on-mount",e.ON_SCENA_DESTROY="scena:on-destroy",e.ON_VIDEO_READY="video:on-ready",e.ON_VIDEO_PLAY="video:on-play",e.ON_VIDEO_CAN_PLAY="video:on-can-play",e.ON_VIDEO_PAUSE="video:on-pause",e.ON_VIDEO_SEEKING="video:on-seeking",e.ON_VIDEO_SEEKED="video:on-seeked",e.ON_VIDEO_SEEK_START="video:on-seek-start",e.ON_VIDEO_SEEK_END="video:on-seek-end",e.ON_VIDEO_ENDED="video:on-ended",e.ON_VIDEO_LOAD_START="video:on-load-start",e.ON_VIDEO_LOADED="video:on-loaded",e.ON_VIDEO_TIME_UPDATE="video:on-time-update",e.ON_VIDEO_VOLUME_CHANGE="video:on-volume-change",e.ON_VIDEO_STATE_CHANGE="video:on-state-change",e.ON_VIDEO_WAITING="video:on-waiting",e.ON_VIDEO_PROGRESSED="video:on-progressed",e.ON_VIDEO_ERROR="video:on-error",e.ON_VIDEO_CONTAINER_CLICK="video-container:click",e.ON_CTA_CLICK="cta:click",e.ON_CLOSE_CLICK="close:click",e.ON_PREVIEW_START="preview:start",e.ON_PREVIEW_STOP="preview:stop",e.ON_VISIBILITY_SHOW="visibility:show",e.ON_VISIBILITY_HIDE="visibility:hide",e))(sr||{});function ar(){const e=new Map;return{on:function(t,n){e.has(t)||e.set(t,new Set),e.get(t)?.add(n)},off:function(t,n){const r=e.get(t);r&&r.delete(n)},emit:function(t,n){const r=e.get(t);r&&r.forEach(e=>e(n))},remove:function(t){e.get(t)?.clear()},clear:function(){e.clear()}}}const[lr,ur]=X();function cr({getIsHidden:e,getIsAnimated:t,getIsShownOnReady:n,classNames:r}){const i=Oe(t),o=Oe(n),s=Oe(e);let a=Me(!1),l=Me(!1);var u;u=()=>{Ft(s)?Re(l,!0):Re(a,!0)},et(),tt(1048584,u,!0);const c=Oe(()=>Ft(i)&&!Ft(s)&&(Ft(l)||Ft(o))),f=Oe(()=>Ft(i)&&Ft(s)&&Ft(a)),d=Oe(()=>[Ft(s)&&!Ft(f)&&r.hidden,Ft(c)&&r.in,Ft(f)&&r.out]);return{get isHidden(){return Ft(s)},get hasShownAnimation(){return Ft(c)},get hasHiddenAnimation(){return Ft(f)},get classes(){return Ft(d)}}}var fr=(e=>(e.XS="xs",e.SM="sm",e.MD="md",e.LG="lg",e.XL="xl",e.XXL="xxl",e))(fr||{}),dr=(e=>(e.TOP_START="top-start",e.TOP_CENTER="top-center",e.TOP_END="top-end",e.MIDDLE_START="middle-start",e.MIDDLE_CENTER="middle-center",e.MIDDLE_END="middle-end",e.BOTTOM_START="bottom-start",e.BOTTOM_CENTER="bottom-center",e.BOTTOM_END="bottom-end",e))(dr||{}),pr=(e=>(e.STATIC="static",e.RELATIVE="relative",e.ABSOLUTE="absolute",e.FIXED="fixed",e))(pr||{}),vr=(e=>(e.CIRCLE="circle",e.LANDSCAPE="landscape",e.PORTRAIT="portrait",e.SQUARE="square",e))(vr||{}),hr=(e=>(e.MIXED="mixed",e))(hr||{}),gr=(e=>(e.MENU="menu",e.TREE="tree",e.GRID="grid",e.DIALOG="dialog",e.LISTBOX="listbox",e))(gr||{}),mr=(e=>(e.RESPONSIVE="responsive",e.PREVIEW="preview",e))(mr||{});const _r=e=>{if(e)return"string"==typeof e?e:Object.entries(e).map(([e,t])=>{return`${n=e,n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}: ${t}`;var n}).join("; ")+";"},yr="undefined"!=typeof window&&"undefined"!=typeof document,Er=e=>{if("object"!=typeof e||null===e||Array.isArray(e))return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||null===t},br=e=>{if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e.source,e.flags);if(e instanceof Map)return new Map([...e].map(([e,t])=>[br(e),br(t)]));if(e instanceof Set)return new Set([...e].map(br));if(!Er(e))return e;const t={};for(const n of Object.keys(e)){const r=e[n];Array.isArray(r)?t[n]=r.map(e=>br(e)):t[n]=br(r)}return t};function Cr(e,t){if(null==t)return e;if(null==e)return t;const n={...e};for(const r of Object.keys(t)){const i=t[r],o=e[r];Er(i)&&Er(o)?n[r]=Cr(o,i):n[r]=i}return n}var wr=ln("<div><!></div>");U=!0;var Sr=cn('<path d="M9.33337 5.33337V26.6667L26.6667 16L9.33337 5.33337Z" fill="currentColor" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>');var Or=cn('<path fill="currentColor" d="M8 8.00008C8 7.64646 8.14048 7.30732 8.39052 7.05727C8.64057 6.80722 8.97971 6.66675 9.33333 6.66675H12C12.3536 6.66675 12.6928 6.80722 12.9428 7.05727C13.1929 7.30732 13.3333 7.64646 13.3333 8.00008V24.0001C13.3333 24.3537 13.1929 24.6928 12.9428 24.9429C12.6928 25.1929 12.3536 25.3334 12 25.3334H9.33333C8.97971 25.3334 8.64057 25.1929 8.39052 24.9429C8.14048 24.6928 8 24.3537 8 24.0001V8.00008Z"></path><path fill="currentColor" d="M18.6667 8.00008C18.6667 7.64646 18.8071 7.30732 19.0572 7.05727C19.3072 6.80722 19.6464 6.66675 20 6.66675H22.6667C23.0203 6.66675 23.3594 6.80722 23.6095 7.05727C23.8595 7.30732 24 7.64646 24 8.00008V24.0001C24 24.3537 23.8595 24.6928 23.6095 24.9429C23.3594 25.1929 23.0203 25.3334 22.6667 25.3334H20C19.6464 25.3334 19.3072 25.1929 19.0572 24.9429C18.8071 24.6928 18.6667 24.3537 18.6667 24.0001V8.00008Z"></path><path d="M8 8.00008C8 7.64646 8.14048 7.30732 8.39052 7.05727C8.64057 6.80722 8.97971 6.66675 9.33333 6.66675H12C12.3536 6.66675 12.6928 6.80722 12.9428 7.05727C13.1929 7.30732 13.3333 7.64646 13.3333 8.00008V24.0001C13.3333 24.3537 13.1929 24.6928 12.9428 24.9429C12.6928 25.1929 12.3536 25.3334 12 25.3334H9.33333C8.97971 25.3334 8.64057 25.1929 8.39052 24.9429C8.14048 24.6928 8 24.3537 8 24.0001V8.00008Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M18.6667 8.00008C18.6667 7.64646 18.8071 7.30732 19.0572 7.05727C19.3072 6.80722 19.6464 6.66675 20 6.66675H22.6667C23.0203 6.66675 23.3594 6.80722 23.6095 7.05727C23.8595 7.30732 24 7.64646 24 8.00008V24.0001C24 24.3537 23.8595 24.6928 23.6095 24.9429C23.3594 25.1929 23.0203 25.3334 22.6667 25.3334H20C19.6464 25.3334 19.3072 25.1929 19.0572 24.9429C18.8071 24.6928 18.6667 24.3537 18.6667 24.0001V8.00008Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>',1);var kr=cn('<path d="M11 5.62254C11.414 5.93303 11.75 6.33564 11.9814 6.79849C12.2128 7.26134 12.3333 7.77172 12.3333 8.2892C12.3333 8.80669 12.2128 9.31706 11.9814 9.77992C11.75 10.2428 11.414 10.6454 11 10.9559" fill="currentColor"></path><path d="M5 10.2892H3.66667C3.48986 10.2892 3.32029 10.219 3.19526 10.0939C3.07024 9.96892 3 9.79935 3 9.62254V6.95587C3 6.77906 3.07024 6.60949 3.19526 6.48447C3.32029 6.35944 3.48986 6.28921 3.66667 6.28921H5L7.33333 3.28921C7.3916 3.17603 7.48843 3.08742 7.60633 3.0394C7.72422 2.99138 7.8554 2.98711 7.97617 3.02737C8.09693 3.06762 8.19932 3.14975 8.26482 3.2589C8.33032 3.36805 8.35463 3.49704 8.33333 3.62254V12.9559C8.35463 13.0814 8.33032 13.2104 8.26482 13.3195C8.19932 13.4287 8.09693 13.5108 7.97617 13.551C7.8554 13.5913 7.72422 13.587 7.60633 13.539C7.48843 13.491 7.3916 13.4024 7.33333 13.2892L5 10.2892Z" fill="currentColor"></path><path d="M11 5.62254C11.414 5.93303 11.75 6.33564 11.9814 6.79849C12.2128 7.26134 12.3333 7.77172 12.3333 8.2892C12.3333 8.80669 12.2128 9.31706 11.9814 9.77992C11.75 10.2428 11.414 10.6454 11 10.9559M5 10.2892H3.66667C3.48986 10.2892 3.32029 10.219 3.19526 10.0939C3.07024 9.96892 3 9.79935 3 9.62254V6.95587C3 6.77906 3.07024 6.60949 3.19526 6.48447C3.32029 6.35944 3.48986 6.28921 3.66667 6.28921H5L7.33333 3.28921C7.3916 3.17603 7.48843 3.08742 7.60633 3.0394C7.72422 2.99138 7.8554 2.98711 7.97617 3.02737C8.09693 3.06762 8.19932 3.14975 8.26482 3.2589C8.33032 3.36805 8.35463 3.49704 8.33333 3.62254V12.9559C8.35463 13.0814 8.33032 13.2104 8.26482 13.3195C8.19932 13.4287 8.09693 13.5108 7.97617 13.551C7.8554 13.5913 7.72422 13.587 7.60633 13.539C7.48843 13.491 7.3916 13.4024 7.33333 13.2892L5 10.2892Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path>',1);var Ir=cn('<path d="M4 9.9999H2.66667C2.48986 9.9999 2.32029 9.92966 2.19526 9.80464C2.07024 9.67961 2 9.51004 2 9.33323V6.66657C2 6.48976 2.07024 6.32019 2.19526 6.19516C2.32029 6.07014 2.48986 5.9999 2.66667 5.9999H4L6.33333 2.9999C6.3916 2.88672 6.48843 2.79812 6.60633 2.7501C6.72422 2.70207 6.8554 2.69781 6.97617 2.73806C7.09693 2.77832 7.19932 2.86044 7.26482 2.96959C7.33032 3.07875 7.35463 3.20773 7.33333 3.33323V12.6666C7.35463 12.7921 7.33032 12.9211 7.26482 13.0302C7.19932 13.1394 7.09693 13.2215 6.97617 13.2617C6.8554 13.302 6.72422 13.2977 6.60633 13.2497C6.48843 13.2017 6.3916 13.1131 6.33333 12.9999L4 9.9999Z" fill="currentColor"></path><path d="M10.6667 6.66656L13.3333 9.33323ZM13.3333 6.66656L10.6667 9.33323Z" fill="currentColor"></path><path d="M10.6667 6.66656L13.3333 9.33323M13.3333 6.66656L10.6667 9.33323M4 9.9999H2.66667C2.48986 9.9999 2.32029 9.92966 2.19526 9.80464C2.07024 9.67961 2 9.51004 2 9.33323V6.66657C2 6.48976 2.07024 6.32019 2.19526 6.19516C2.32029 6.07014 2.48986 5.9999 2.66667 5.9999H4L6.33333 2.9999C6.3916 2.88672 6.48843 2.79812 6.60633 2.7501C6.72422 2.70207 6.8554 2.69781 6.97617 2.73806C7.09693 2.77832 7.19932 2.86044 7.26482 2.96959C7.33032 3.07875 7.35463 3.20773 7.33333 3.33323V12.6666C7.35463 12.7921 7.33032 12.9211 7.26482 13.0302C7.19932 13.1394 7.09693 13.2215 6.97617 13.2617C6.8554 13.302 6.72422 13.2977 6.60633 13.2497C6.48843 13.2017 6.3916 13.1131 6.33333 12.9999L4 9.9999Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path>',1);var Dr=cn('<path d="M4.45416 4.45404L11.3625 11.3624Z" fill="currentColor"></path><path d="M4.45416 11.3624L11.3625 4.45404Z" fill="currentColor"></path><path d="M4.45416 4.45404L11.3625 11.3624M4.45416 11.3624L11.3625 4.45404" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="bevel"></path>',1);var Nr=(e=>(e.MIXED="mixed",e))(Nr||{}),Tr=(e=>(e.MENU="menu",e.LISTBOX="listbox",e.TREE="tree",e.GRID="grid",e.DIALOG="dialog",e))(Tr||{}),Ar=(e=>(e.RECTANGLE="rectangle",e.CIRCLE="circle",e.SQUARE="square",e))(Ar||{}),Lr=(e=>(e.FILLED="filled",e.TEXT="text",e))(Lr||{}),Pr=(e=>(e.BUTTON="button",e.SUBMIT="submit",e.RESET="reset",e))(Pr||{}),Mr=ln("<button><!></button>");function Rr(e,t){q(t,!0);let n=or(t,"size",19,()=>fr.MD),r=or(t,"shape",19,()=>Ar.RECTANGLE),i=or(t,"variant",19,()=>Lr.FILLED),o=or(t,"type",19,()=>Pr.BUTTON),s=nr(t,["$$slots","$$events","$$legacy","id","autosize","size","shape","variant","type","aria","customClasses","customStyles","children"]);const a=Oe(()=>["rs-button",`rs-button--${r()}`,`rs-button--${i()}`,t.autosize?"rs-button--autosize":`rs-button--${n()}`,t.customClasses?.root]);let l;const u=Oe(()=>_r(t.customStyles?.root));var c={getElements:function(){return{root:l}}},f=Mr();Kn(f,()=>({id:t.id,type:o(),class:Ft(a),style:Ft(u),"aria-label":t.aria?.ariaLabel,"aria-labelledby":t.aria?.ariaLabelledby,"aria-describedby":t.aria?.ariaDescribedby,"aria-disabled":t.aria?.ariaDisabled,"aria-expanded":t.aria?.ariaExpanded,"aria-controls":t.aria?.ariaControls,"aria-haspopup":t.aria?.ariaHaspopup,"aria-pressed":t.aria?.ariaPressed,...s}));var d=Ye(f),p=e=>{var n=dn();On(We(n),()=>t.children),pn(e,n)};return Dn(d,e=>{t.children&&e(p)}),Jn(f,e=>l=e,()=>l),pn(e,f),K(c)}var xr=cn('<svg fill="none" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg"><!></svg>');function Vr(e,t){q(t,!0);let n,r=or(t,"viewBox",3,"0 0 16 16"),i=or(t,"size",19,()=>fr.MD);const o=Oe(()=>["rs-icon",`rs-icon--${i()}`,t.customClasses?.root]),s=Oe(()=>_r(t.customStyles?.root));var a={getElements:function(){return{root:n}}},l=xr();return On(Ye(l),()=>t.children??h),Jn(l,e=>n=e,()=>n),lt(()=>{qn(l,"id",t.id),Rn(l,0,An(Ft(o))),Vn(l,Ft(s)),qn(l,"viewBox",r())}),pn(e,l),K(a)}var zr=ln("<div><!></div>");function $r(e,t){q(t,!0);let n=or(t,"size",19,()=>fr.MD),r=or(t,"shape",19,()=>vr.CIRCLE),i=or(t,"aria",19,()=>({ariaLabel:"Close"}));const{eventEmitter:o,unmount:s}=lr();let a,l,u;const c=Oe(()=>["rs-close-button",`rs-close-button--${n()}`,`rs-close-button--${r()}`,t.customClasses?.root]),f=Oe(()=>_r(t.customStyles?.root));var d={getElements:function(){return{root:a,button:l?.getElements(),cross:u?.getElements()}}},p=zr(),v=Ye(p);{let e=Oe(()=>({root:t.customClasses?.button})),r=Oe(()=>({root:t.customStyles?.button}));Jn(Rr(v,{get aria(){return i()},autosize:!0,get shape(){return Ar.CIRCLE},get variant(){return Lr.FILLED},get customClasses(){return Ft(e)},get customStyles(){return Ft(r)},onclick:function(e){o.emit(sr.ON_CLOSE_CLICK,e),t.onClick?t.onClick(e):s()},children:(e,r)=>{{let r=Oe(()=>({root:t.customClasses?.cross})),i=Oe(()=>({root:t.customStyles?.cross}));Jn(Vr(e,{get size(){return n()},get customClasses(){return Ft(r)},get customStyles(){return Ft(i)},children:(e,t)=>{!function(e){pn(e,Dr())}(e)},$$slots:{default:!0}}),e=>u=e,()=>u)}},$$slots:{default:!0}}),e=>l=e,()=>l)}return Jn(p,e=>a=e,()=>a),lt(()=>{qn(p,"id",t.id),Rn(p,1,An(Ft(c))),Vn(p,Ft(f))}),pn(e,p),K(d)}var Hr=(e=>(e.INSIDE="inside",e.OUTSIDE="outside",e))(Hr||{}),jr=ln("<div><!></div>");var Br=(e=>(e.NONE="none",e.AUTO="auto",e.METADATA="metadata",e))(Br||{}),Ur=(e=>(e.ANONYMOUS="anonymous",e.USE_CREDENTIALS="use-credentials",e))(Ur||{}),Gr=(e=>(e.IDLE="idle",e.LOADING="loading",e.PLAYING="playing",e.PAUSED="paused",e.ENDED="ended",e.ERROR="error",e))(Gr||{});const[Fr,Xr]=X();function qr({getVideoElement:e,eventEmitter:t}){let n=Me($e(Gr.IDLE)),r=Me(0),i=Me(0),o=Me(0),s=Me(null),a=Me(1),l=Me(0),u=Me(null),c=Me(!1),f=Me(!1),d=Me(!1);function p(){const t=e();if(!t)throw new Error("Video element is not available");return t}function v(e,r){Ft(n)!==e&&(Re(n,e,!0),t.emit(sr.ON_VIDEO_STATE_CHANGE,{state:Ft(n),event:r}))}function h(e){Ft(d)!==e&&Re(d,e,!0)}function g(e){Ft(f)!==e&&Re(f,e,!0)}async function m(){const e=p();try{await e.play()}catch(e){t.emit(sr.ON_VIDEO_ERROR,{state:Ft(n),error:e})}}function _(){p().pause()}function y(){null!==Ft(s)&&(cancelAnimationFrame(Ft(s)),Re(s,null))}function E(){const t=e();if(t){Re(r,isFinite(t.currentTime)?t.currentTime:0,!0),Re(o,t.duration>0?Ft(r)/t.duration:0,!0);const e=t.buffered&&t.buffered.length>0?t.buffered.end(t.buffered.length-1):0;Re(l,t.duration>0?e/t.duration:0,!0),Re(s,requestAnimationFrame(E),!0)}}return In(()=>{y()}),{get state(){return Ft(n)},get currentTime(){return Ft(r)},get duration(){return Ft(i)},get progress(){return Ft(o)},get progressAnimationFrameId(){return Ft(s)},get volume(){return Ft(a)},get buffer(){return Ft(l)},get buffered(){return Ft(u)},get isBuffering(){return Ft(d)},get isSeeking(){return Ft(f)},get isMuted(){return Ft(c)},play:m,pause:_,stop:function(){const e=p();e.pause(),e.currentTime=0,y()},seek:function(e){const t=p();t.currentTime=Math.max(0,Math.min(t.duration||0,e))},mute:function(){p().muted=!0},unmute:function(){p().muted=!1},toggleMute:function(){const e=p();e.muted=!e.muted},setVolume:function(e){p().volume=Math.max(0,Math.min(1,e))},handleLoadedMetadata:function(r){const o=e();h(!1),o&&(Re(i,isFinite(o.duration)?o.duration:0,!0),Re(a,o.volume,!0),Re(c,o.muted,!0)),t.emit(sr.ON_VIDEO_READY,{state:Ft(n),event:r})},handlePlay:function(e){h(!1),v(Gr.PLAYING,e),t.emit(sr.ON_VIDEO_PLAY,{state:Ft(n),event:e}),Re(s,requestAnimationFrame(E),!0)},handlePause:function(e){v(Gr.PAUSED,e),t.emit(sr.ON_VIDEO_PAUSE,{state:Ft(n),event:e})},handleSeeking:function(e){t.emit(sr.ON_VIDEO_SEEKING,{state:Ft(n),event:e})},handleSeeked:function(e){t.emit(sr.ON_VIDEO_SEEKED,{state:Ft(n),event:e})},handleSeekStart:function(e,r){g(!0),r===Gr.PLAYING&&_(),null===Ft(s)&&Re(s,requestAnimationFrame(E),!0),t.emit(sr.ON_VIDEO_SEEK_START,{state:Ft(n),event:e})},handleSeekEnd:async function(e,r){g(!1),v(r,e),r===Gr.PLAYING?await m():y(),t.emit(sr.ON_VIDEO_SEEK_END,{state:Ft(n),event:e})},handleEnded:function(r){const i=e();i?.loop||y(),h(!1),v(Gr.ENDED,r),t.emit(sr.ON_VIDEO_ENDED,{state:Ft(n),event:r})},handleLoadStart:function(e){v(Gr.LOADING,e),t.emit(sr.ON_VIDEO_LOAD_START,{state:Ft(n),event:e})},handleLoaded:function(e){t.emit(sr.ON_VIDEO_LOADED,{state:Ft(n),event:e})},handleWaiting:function(e){h(!0),v(Gr.LOADING,e),t.emit(sr.ON_VIDEO_WAITING,{state:Ft(n),event:e})},handleCanPlay:function(r){h(!1);const i=e();if(i){if(Ft(n)===Gr.LOADING)v(i.paused?Gr.IDLE:Gr.PLAYING,r);t.emit(sr.ON_VIDEO_CAN_PLAY,{state:Ft(n),event:r})}},handleTimeUpdate:function(i){const s=e();s&&(Re(r,isFinite(s.currentTime)?s.currentTime:0,!0),Re(o,s.duration>0?Ft(r)/s.duration:0,!0)),t.emit(sr.ON_VIDEO_TIME_UPDATE,{state:Ft(n),event:i})},handleVolumeChange:function(r){const i=e();i&&(Re(a,i.volume,!0),Re(c,i.muted,!0)),t.emit(sr.ON_VIDEO_VOLUME_CHANGE,{state:Ft(n),event:r})},handleProgress:function(r){const i=e();if(i){Re(u,i.buffered,!0);const e=i.buffered&&i.buffered.length>0?i.buffered.end(i.buffered.length-1):0;Re(l,i.duration>0?e/i.duration:0,!0)}t.emit(sr.ON_VIDEO_PROGRESSED,{state:Ft(n),event:r})},handleError:function(e){y(),h(!1),v(Gr.ERROR,e),t.emit(sr.ON_VIDEO_ERROR,{state:Ft(n),event:e})}}}var Kr=ln("<div><video><source/></video> <!></div>",2);var Yr=ln('<div role="button" tabindex="0"><!></div>');tn(["click","keydown"]);var Wr=ln('<div><span role="status" aria-live="polite" aria-atomic="true" class="rs-sr-only"><!></span> <!></div>');function Zr(e,t){q(t,!0);let n=or(t,"size",19,()=>fr.MD),r=or(t,"aria",19,()=>({play:{ariaLabel:"Play"},pause:{ariaLabel:"Pause"}}));const i=Fr(),o=Oe(()=>!i.isSeeking);let s=Me(null),a=Me(null),l=Me(null),u=Me(null),c=Me(null);const f=Oe(()=>["rs-video-controls",t.customClasses?.root]),d=Oe(()=>_r(t.customStyles?.root)),p=Oe(()=>i.state),v=Oe(()=>Gr.PLAYING===Ft(p)),h=Oe(()=>[Gr.IDLE,Gr.PAUSED].includes(Ft(p)));var g={getElements:function(){return{root:Ft(s),pauseButton:Ft(a)?.getElements(),pauseIcon:Ft(l)?.getElements(),playButton:Ft(u)?.getElements(),playIcon:Ft(c)?.getElements()}}},m=dn(),_=We(m),y=e=>{var o=Wr(),p=Ye(o),g=Ye(p),m=e=>{pn(e,fn("Playing"))},_=e=>{pn(e,fn("Paused"))};Dn(g,e=>{Ft(v)?e(m):Ft(h)&&e(_,1)});var y=Ze(p,2),E=e=>{Jn(Rr(e,{get size(){return n()},get shape(){return Ar.CIRCLE},get variant(){return Lr.TEXT},get aria(){return r().pause},get onclick(){return i.pause},children:(e,r)=>{{let r=Oe(()=>({root:t.customClasses?.pause})),i=Oe(()=>({root:t.customStyles?.pause}));Jn(Vr(e,{get size(){return n()},viewBox:"0 0 32 32",get customClasses(){return Ft(r)},get customStyles(){return Ft(i)},children:(e,t)=>{!function(e){pn(e,Or())}(e)},$$slots:{default:!0}}),e=>Re(l,e,!0),()=>Ft(l))}},$$slots:{default:!0}}),e=>Re(a,e,!0),()=>Ft(a))},b=e=>{Jn(Rr(e,{get size(){return n()},get shape(){return Ar.CIRCLE},get variant(){return Lr.TEXT},get aria(){return r().play},get onclick(){return i.play},children:(e,r)=>{{let r=Oe(()=>({root:t.customClasses?.play})),i=Oe(()=>({root:t.customStyles?.play}));Jn(Vr(e,{get size(){return n()},viewBox:"0 0 32 32",get customClasses(){return Ft(r)},get customStyles(){return Ft(i)},children:(e,t)=>{!function(e){pn(e,Sr())}(e)},$$slots:{default:!0}}),e=>Re(c,e,!0),()=>Ft(c))}},$$slots:{default:!0}}),e=>Re(u,e,!0),()=>Ft(u))};Dn(y,e=>{Ft(v)?e(E):Ft(h)&&e(b,1)}),Jn(o,e=>Re(s,e),()=>Ft(s)),lt(()=>{qn(o,"id",t.id),Rn(o,1,An(Ft(f))),Vn(o,Ft(d))}),pn(e,o)};return Dn(_,e=>{Ft(o)&&e(y)}),pn(e,m),K(g)}var Qr=cn('<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z" opacity=".25"></path><path d="M12,4a8,8,0,0,1,7.89,6.7A1.53,1.53,0,0,0,21.38,12h0a1.5,1.5,0,0,0,1.48-1.75,11,11,0,0,0-21.72,0A1.5,1.5,0,0,0,2.62,12h0a1.53,1.53,0,0,0,1.49-1.3A8,8,0,0,1,12,4Z" class="rsl-line"></path></svg>');var Jr=ln("<div><!></div>");function ei(e,t){q(t,!0);let n=or(t,"size",19,()=>fr.MD);const r=Fr();let i,o=Me(null);const s=Oe(()=>["rs-video-loader",t.customClasses?.root]),a=Oe(()=>_r(t.customStyles?.root));var l={getElements:function(){return{root:i,loader:Ft(o)?.getElements()}}},u=Jr(),c=Ye(u),f=e=>{{let r=Oe(()=>({root:t.customClasses?.loader})),i=Oe(()=>({root:t.customStyles?.loader}));Jn(function(e,t){q(t,!0);let n,r=or(t,"size",19,()=>fr.MD);const i=Oe(()=>["rs-loader",`rs-loader--${r()}`,t.customClasses?.root]),o=Oe(()=>_r(t.customStyles?.root));var s={getElements:function(){return{root:n}}},a=Qr();return Jn(a,e=>n=e,()=>n),lt(()=>{qn(a,"id",t.id),Rn(a,0,An(Ft(i))),Vn(a,Ft(o))}),pn(e,a),K(s)}(e,{get size(){return n()},get customClasses(){return Ft(r)},get customStyles(){return Ft(i)}}),e=>Re(o,e,!0),()=>Ft(o))}};return Dn(c,e=>{r.state===Gr.LOADING&&e(f)}),Jn(u,e=>i=e,()=>i),lt(()=>{qn(u,"id",t.id),Rn(u,1,An(Ft(s))),Vn(u,Ft(a))}),pn(e,u),K(l)}const ti={[fr.XS]:{default:3,hover:5},[fr.SM]:{default:4,hover:5},[fr.MD]:{default:4,hover:6},[fr.LG]:{default:5,hover:7},[fr.XL]:{default:6,hover:8},[fr.XXL]:{default:7,hover:9}},ni={[fr.XS]:{default:4,hover:6},[fr.SM]:{default:4,hover:6},[fr.MD]:{default:4,hover:8},[fr.LG]:{default:6,hover:8},[fr.XL]:{default:8,hover:10},[fr.XXL]:{default:8,hover:12}};function ri({getRootElement:e,getSize:t,getProgress:n,getCustomThickness:r,onSeek:i,onSeekStart:o,onSeekEnd:s}){let a=Me(!1),l=Me(!1),u=Me(!1),c=Me(null);const f=Oe(()=>r()[t()]),d=Oe(()=>Ft(a)?Ft(f).hover:Ft(f).default),p=Oe(()=>Ft(u)?"none":void 0);function v(e,t){const n=t.getBoundingClientRect(),r=(e.clientX-n.left)/n.width;return Math.max(0,Math.min(1,r))}function h(e){e.currentTarget.releasePointerCapture(e.pointerId)}return it(()=>{const e=n();let t,r;return null!==Ft(c)&&e<Ft(c)&&(Re(u,!0),t=requestAnimationFrame(()=>{r=requestAnimationFrame(()=>{Re(u,!1)})})),Re(c,e,!0),()=>{cancelAnimationFrame(t),cancelAnimationFrame(r)}}),{get isFocused(){return Ft(a)},get isDragging(){return Ft(l)},get isDisabledTransition(){return Ft(u)},get thickness(){return Ft(d)},get transition(){return Ft(p)},events:{onpointerup:function(e){Ft(l)&&(Re(l,!1),s?.(e),h(e))},onpointermove:function(e){if(!Ft(l))return;const t=v(e,e.currentTarget);i?.(t,e),e.preventDefault()},onpointerdown:function(t){e().focus(),Re(l,!0),o?.(t),function(e){e.currentTarget.setPointerCapture(e.pointerId)}(t);const n=v(t,t.currentTarget);i?.(n,t),t.preventDefault()},onpointercancel:function(e){Ft(l)&&(Re(l,!1),s?.(e),h(e))},onmouseenter:function(){Re(a,!0)},onmouseleave:function(){Ft(l)||Re(a,!1)}}}}function ii({getRootElement:e,getSize:t,getBuffer:n,getProgress:r,getCustomThickness:i,onSeek:o,onSeekStart:s,onSeekEnd:a}){let l=Me(!1),u=Me(!1),c=Me(0),f=Me(null),d=Me(!1);const p=Oe(()=>i()[t()]),v=Oe(()=>Ft(l)?Ft(p).hover:Ft(p).default),h=Oe(()=>Math.max(Ft(p).default,Ft(p).hover)),g=Oe(()=>Math.max(3*Ft(h),20)),m=Oe(()=>(Ft(c)-Ft(h))/2),_=Oe(()=>Ft(m)*Math.PI*2),y=Oe(()=>Ft(_)*(1-r())),E=Oe(()=>Ft(_)*(1-n()));function b(e,t,n){const r=n.getBoundingClientRect(),i=r.width/2,o=r.height/2,s=e-r.left-i,a=t-r.top-o;let l=Math.atan2(a,s)+Math.PI/2;return l<0&&(l+=2*Math.PI),l/(2*Math.PI)}function C(e){if(!Ft(u))return;if(Ft(f)!==e.pointerId)return;Re(u,!1),Re(f,null),a?.(e);const t=e.currentTarget;"releasePointerCapture"in t&&t.releasePointerCapture(e.pointerId)}const w=Oe(()=>Ft(d)?"none":void 0),S=new ResizeObserver(e=>{for(const t of e)Re(c,t.contentRect.width,!0);Re(d,!0),requestAnimationFrame(()=>{requestAnimationFrame(()=>{Re(d,!1)})})});return kn(()=>{S.observe(e())}),In(()=>{S.disconnect()}),{get isFocused(){return Ft(l)},get isDragging(){return Ft(u)},get radialSize(){return Ft(c)},get radialRadius(){return Ft(m)},get radialCircumference(){return Ft(_)},get radialProgressOffset(){return Ft(y)},get radialBufferOffset(){return Ft(E)},get thickness(){return Ft(v)},get hitAreaThickness(){return Ft(g)},get transition(){return Ft(w)},events:{onclick:function(e){if(Ft(u))return;const t=e.currentTarget;o?.(b(e.clientX,e.clientY,t),e)},onpointerdown:function(t){e().focus(),Re(l,!0),Re(u,!0),Re(f,t.pointerId,!0),s?.(t);const n=t.currentTarget;"setPointerCapture"in n&&n.setPointerCapture(t.pointerId),o?.(b(t.clientX,t.clientY,n),t),t.preventDefault()},onpointermove:function(e){if(!Ft(u))return;if(Ft(f)!==e.pointerId)return;const t=e.currentTarget;o?.(b(e.clientX,e.clientY,t),e),e.preventDefault()},onpointerup:C,onpointercancel:C,onmouseenter:function(){Re(l,!0)},onmouseleave:function(){Ft(u)||Re(l,!1)}}}}var oi=cn('<circle fill="none" stroke="rgba(255, 255, 255, 0.4)" stroke-linecap="round" pointer-events="none"></circle>'),si=cn('<circle fill="none" stroke="rgba(255, 255, 255, 0.2)" pointer-events="none"></circle><!><circle fill="none" stroke="rgba(255, 255, 255, 1)" stroke-linecap="round" pointer-events="none"></circle><circle></circle>',1),ai=cn('<svg role="slider" xmlns="http://www.w3.org/2000/svg"><!></svg>');var li=ln("<div></div>"),ui=ln('<div role="slider"><div><!> <div></div></div></div>');function ci(e,t){q(t,!0);let n=or(t,"size",19,()=>fr.MD),r=or(t,"shape",19,()=>vr.CIRCLE),i=or(t,"hasBuffer",3,!0),o=Me(null);const s=Fr();let a=Me(null);const l=[vr.PORTRAIT,vr.LANDSCAPE,vr.SQUARE],u=[vr.CIRCLE],c=Oe(()=>l.includes(r())),f=Oe(()=>u.includes(r()));function d(e){const t=e*s.duration;s.seek(t)}function p(e){Re(a,s.state,!0),s.handleSeekStart(e,Ft(a))}async function v(e){Ft(a)&&(await s.handleSeekEnd(e,Ft(a)),Re(a,null))}var h={getElements:function(){return Ft(o)?.getElements()??null}},g=dn(),m=We(g),_=e=>{{let r=Oe(()=>t.customThickness?.line);Jn(function(e,t){q(t,!0);let n,r,i,o=or(t,"size",19,()=>fr.MD),s=or(t,"buffer",3,0),a=or(t,"progress",3,0),l=or(t,"aria",19,()=>({ariaLabel:"Progress"})),u=Me(null);const c=Oe(()=>["rs-progress","rs-progress--line",t.customClasses?.root]),f=Oe(()=>_r(t.customStyles?.root)),d=Oe(()=>["rs-progress__track",t.customClasses?.track]),p=Oe(()=>_r(t.customStyles?.track)),v=Oe(()=>["rs-progress__buffer",t.customClasses?.buffer]),h=Oe(()=>_r(t.customStyles?.buffer)),g=Oe(()=>["rs-progress__progress",t.customClasses?.progress]),m=Oe(()=>_r(t.customStyles?.progress)),_=ri({getRootElement:()=>n,getProgress:()=>a(),getSize:()=>o(),onSeek:(e,n)=>t.onSeek?.(e,n),onSeekStart:e=>t.onSeekStart?.(e),onSeekEnd:e=>t.onSeekEnd?.(e),getCustomThickness:()=>({...ti,...t.customThickness})});var y={getElements:function(){return{root:n,track:r,buffer:Ft(u),progress:i}}},E=ui();qn(E,"tabindex",0),qn(E,"aria-valuemin",0),qn(E,"aria-valuemax",100);var b=Ye(E);Kn(b,()=>({class:Ft(d),style:Ft(p),..._.events,[jn]:{height:`${_.thickness??""}px`}}));var C=Ye(b),w=e=>{var t=li();let n;Jn(t,e=>Re(u,e),()=>Ft(u)),lt(()=>{Rn(t,1,An(Ft(v))),n=Vn(t,Ft(h),n,{width:100*s()+"%"})}),pn(e,t)};Dn(C,e=>{t.hasBuffer&&e(w)});var S=Ze(C,2);let O;return Jn(S,e=>i=e,()=>i),Jn(b,e=>r=e,()=>r),Jn(E,e=>n=e,()=>n),lt(e=>{qn(E,"id",t.id),Rn(E,1,An(Ft(c))),Vn(E,Ft(f)),qn(E,"aria-label",l().ariaLabel),qn(E,"aria-labelledby",l().ariaLabelledby),qn(E,"aria-describedby",l().ariaDescribedby),qn(E,"aria-valuenow",100*a()),qn(E,"aria-valuetext",`${e??""}%`),Rn(S,1,An(Ft(g))),O=Vn(S,Ft(m),O,{width:100*a()+"%",transition:_.transition})},[()=>Math.round(100*a())]),pn(e,E),K(y)}(e,{get id(){return t.id},get size(){return n()},get buffer(){return s.buffer},get progress(){return s.progress},get customThickness(){return Ft(r)},get hasBuffer(){return i()},onSeek:d,onSeekStart:p,onSeekEnd:v,get customClasses(){return t.customClasses},get customStyles(){return t.customStyles},get aria(){return t.aria}}),e=>Re(o,e,!0),()=>Ft(o))}},y=e=>{{let r=Oe(()=>t.customThickness?.circle);Jn(function(e,t){q(t,!0);let n,r=or(t,"size",19,()=>fr.MD),i=or(t,"buffer",3,0),o=or(t,"progress",3,0),s=or(t,"aria",19,()=>({ariaLabel:"Progress"})),a=Me(null),l=Me(null),u=Me(null);const c=Oe(()=>["rs-progress","rs-progress--circle",t.customClasses?.root]),f=Oe(()=>_r(t.customStyles?.root)),d=Oe(()=>["rs-progress__track",t.customClasses?.track]),p=Oe(()=>_r(t.customStyles?.track)),v=Oe(()=>["rs-progress__buffer",t.customClasses?.buffer]),h=Oe(()=>_r(t.customStyles?.buffer)),g=Oe(()=>["rs-progress__progress",t.customClasses?.progress]),m=Oe(()=>_r(t.customStyles?.progress)),_=ii({getRootElement:()=>n,getProgress:()=>o(),getBuffer:()=>i(),getSize:()=>r(),onSeek:(e,n)=>t.onSeek?.(e,n),onSeekStart:e=>t.onSeekStart?.(e),onSeekEnd:e=>t.onSeekEnd?.(e),getCustomThickness:()=>({...ni,...t.customThickness})});function y(e){const t=_.transition;if(!t)return e;const n=`transition: ${t};`;return e?`${n} ${e}`:n}var E={getElements:function(){return{root:n,track:Ft(a),buffer:Ft(l),progress:Ft(u)}}},b=ai();qn(b,"tabindex",0),qn(b,"aria-valuemin",0),qn(b,"aria-valuemax",100);var C=Ye(b),w=e=>{var n=si(),r=We(n);Jn(r,e=>Re(a,e),()=>Ft(a));var i=Ze(r),o=e=>{var t=oi();Jn(t,e=>Re(l,e),()=>Ft(l)),lt(e=>{Rn(t,0,An(Ft(v))),Vn(t,e),qn(t,"cx",_.radialSize/2),qn(t,"cy",_.radialSize/2),qn(t,"r",_.radialRadius),qn(t,"stroke-width",_.thickness),qn(t,"stroke-dasharray",_.radialCircumference),qn(t,"stroke-dashoffset",_.radialBufferOffset),qn(t,"transform",`rotate(-90 ${_.radialSize/2} ${_.radialSize/2})`)},[()=>y(Ft(h))]),pn(e,t)};Dn(i,e=>{t.hasBuffer&&e(o)});var s=Ze(i);Jn(s,e=>Re(u,e),()=>Ft(u)),Kn(Ze(s),()=>({class:"rs-progress__hit-area",cx:_.radialSize/2,cy:_.radialSize/2,r:_.radialRadius,fill:"none",stroke:"transparent","stroke-width":_.hitAreaThickness,..._.events})),lt((e,t)=>{Rn(r,0,An(Ft(d))),Vn(r,e),qn(r,"cx",_.radialSize/2),qn(r,"cy",_.radialSize/2),qn(r,"r",_.radialRadius),qn(r,"stroke-width",_.thickness),Rn(s,0,An(Ft(g))),Vn(s,t),qn(s,"cx",_.radialSize/2),qn(s,"cy",_.radialSize/2),qn(s,"r",_.radialRadius),qn(s,"stroke-width",_.thickness),qn(s,"stroke-dasharray",_.radialCircumference),qn(s,"stroke-dashoffset",_.radialProgressOffset),qn(s,"transform",`rotate(-90 ${_.radialSize/2} ${_.radialSize/2})`)},[()=>y(Ft(p)),()=>y(Ft(m))]),pn(e,n)};return Dn(C,e=>{_.radialSize&&e(w)}),Jn(b,e=>n=e,()=>n),lt(e=>{qn(b,"id",t.id),Rn(b,0,An(Ft(c))),Vn(b,Ft(f)),qn(b,"viewBox",`0 0 ${_.radialSize??""} ${_.radialSize??""}`),qn(b,"aria-label",s().ariaLabel),qn(b,"aria-labelledby",s().ariaLabelledby),qn(b,"aria-describedby",s().ariaDescribedby),qn(b,"aria-valuenow",100*o()),qn(b,"aria-valuetext",`${e??""}%`)},[()=>Math.round(100*o())]),pn(e,b),K(E)}(e,{get id(){return t.id},get size(){return n()},get buffer(){return s.buffer},get progress(){return s.progress},get customThickness(){return Ft(r)},get hasBuffer(){return i()},onSeek:d,onSeekStart:p,onSeekEnd:v,get customClasses(){return t.customClasses},get customStyles(){return t.customStyles},get aria(){return t.aria}}),e=>Re(o,e,!0),()=>Ft(o))}};return Dn(m,e=>{Ft(c)?e(_):Ft(f)&&e(y,1)}),pn(e,g),K(h)}var fi=(e=>(e.LINE="line",e.CIRCLE="circle",e))(fi||{}),di=ln('<div><span role="status" aria-live="polite" aria-atomic="true" class="rs-sr-only"><!></span> <!></div>');function pi(e,t){q(t,!0);let n=or(t,"size",19,()=>fr.MD),r=or(t,"shape",19,()=>vr.CIRCLE),i=or(t,"aria",19,()=>({mute:{ariaLabel:"Mute"},unmute:{ariaLabel:"Unmute"}}));const o=Fr(),s=Oe(()=>!o.isSeeking);let a=Me(null),l=Me(null),u=Me(null),c=Me(null),f=Me(null);const d=Oe(()=>["rs-video-volume",`rs-video-volume--${r()}`,t.customClasses?.root]),p=Oe(()=>_r(t.customStyles?.root));var v={getElements:function(){return{root:Ft(a),unmuteButton:Ft(l)?.getElements(),unmuteIcon:Ft(u)?.getElements(),muteButton:Ft(c)?.getElements(),muteIcon:Ft(f)?.getElements()}}},h=dn(),g=We(h),m=e=>{var r=di(),s=Ye(r),v=Ye(s),h=e=>{pn(e,fn("Muted"))},g=e=>{pn(e,fn("Unmuted"))};Dn(v,e=>{o.isMuted?e(h):e(g,!1)});var m=Ze(s,2),_=e=>{Jn(Rr(e,{get size(){return n()},get shape(){return Ar.CIRCLE},get variant(){return Lr.TEXT},get aria(){return i().unmute},get onclick(){return o.unmute},children:(e,r)=>{{let r=Oe(()=>({root:t.customClasses?.unmute})),i=Oe(()=>({root:t.customStyles?.unmute}));Jn(Vr(e,{get size(){return n()},get customClasses(){return Ft(r)},get customStyles(){return Ft(i)},children:(e,t)=>{!function(e){pn(e,Ir())}(e)},$$slots:{default:!0}}),e=>Re(u,e,!0),()=>Ft(u))}},$$slots:{default:!0}}),e=>Re(l,e,!0),()=>Ft(l))},y=e=>{Jn(Rr(e,{get size(){return n()},get shape(){return Ar.CIRCLE},get variant(){return Lr.TEXT},get aria(){return i().mute},get onclick(){return o.mute},children:(e,r)=>{{let r=Oe(()=>({root:t.customClasses?.mute})),i=Oe(()=>({root:t.customStyles?.mute}));Jn(Vr(e,{get size(){return n()},get customClasses(){return Ft(r)},get customStyles(){return Ft(i)},children:(e,t)=>{!function(e){pn(e,kr())}(e)},$$slots:{default:!0}}),e=>Re(f,e,!0),()=>Ft(f))}},$$slots:{default:!0}}),e=>Re(c,e,!0),()=>Ft(c))};Dn(m,e=>{o.isMuted?e(_):e(y,!1)}),Jn(r,e=>Re(a,e),()=>Ft(a)),lt(()=>{qn(r,"id",t.id),Rn(r,1,An(Ft(d))),Vn(r,Ft(p))}),pn(e,r)};return Dn(g,e=>{Ft(s)&&e(m)}),pn(e,h),K(v)}var vi=ln("<!> <!> <!> <!>",1),hi=ln("<!> <!> <!>",1),gi=ln("<div><!></div>");function mi(e,t){let n,r,i;q(t,!0);let o=Me(null),s=Me(null),a=Me(null),l=Me(null),u=Me(null),c=Me(null);ur({get eventEmitter(){return t.eventEmitter},mount:()=>t.mount(),unmount:()=>t.unmount()});const f=Oe(()=>t.config.visibility?.isAnimated??!0),d=Oe(()=>t.config.visibility?.isHidden??!1),p=Oe(()=>t.config.visibility?.isShownOnReady??!1),v=cr({getIsAnimated:()=>Ft(f),getIsShownOnReady:()=>Ft(p),getIsHidden:()=>Ft(d),classNames:{hidden:"rs-container--hidden",in:"rs-pop-in",out:"rs-pop-out"}}),h=Oe(()=>t.config.size),g=Oe(()=>t.config.shape),m=Oe(()=>({...t.config.container,customClasses:{...t.config.container?.customClasses,root:[t.config.container?.customClasses?.root,v.classes]}})),_=Oe(()=>t.config.video),y=Oe(()=>t.config.videoLoader),E=Oe(()=>t.config.videoContainer),b=Oe(()=>t.config.videoControls),C=Oe(()=>t.config.videoProgress),w=Oe(()=>t.config.videoVolume),S=Oe(()=>t.config.closeButton),O=Oe(()=>t.config.ctaButton),k=Oe(()=>["rs"]),I={get controller(){return i.controller},get components(){return{container:n,video:i,videoContainer:r,videoLoader:Ft(o),videoProgress:Ft(s),videoControls:Ft(a),videoVolume:Ft(l),closeButton:Ft(u),ctaButton:Ft(c)}},get events(){return t.eventEmitter}};kn(()=>{t.mount(),t.eventEmitter.emit(sr.ON_SCENA_MOUNT)}),In(()=>{t.eventEmitter.emit(sr.ON_SCENA_DESTROY),t.eventEmitter.clear()});var D={api:I},N=gi();return Jn(function(e,t){q(t,!0);let n,r=or(t,"position",19,()=>pr.FIXED),i=or(t,"placement",19,()=>dr.BOTTOM_END);const o=[pr.ABSOLUTE,pr.FIXED],s=Oe(()=>o.includes(r())),a=Oe(()=>["rs-container",`rs-container--${r()}`,Ft(s)&&`rs-container--${i()}`,t.customClasses?.root]),l=Oe(()=>_r(t.customStyles?.root));var u={getElements:function(){return{root:n}}},c=wr(),f=Ye(c),d=e=>{var n=dn();On(We(n),()=>t.children),pn(e,n)};return Dn(f,e=>{t.children&&e(d)}),Jn(c,e=>n=e,()=>n),lt(()=>{qn(c,"id",t.id),Rn(c,1,An(Ft(a))),Vn(c,Ft(l))}),pn(e,c),K(u)}(Ye(N),ir(()=>Ft(m),{children:(e,t)=>{var n=hi(),f=We(n);Jn(function(e,t){q(t,!0);let n=or(t,"size",19,()=>fr.MD),r=or(t,"shape",19,()=>vr.CIRCLE);const{eventEmitter:i}=lr();let o;const s=Oe(()=>["rs-video-container",`rs-video-container--${n()}`,`rs-video-container--${r()}`,t.customClasses?.root]),a=Oe(()=>_r(t.customStyles?.root));var l={getElements:function(){return{root:o}}},u=Yr(),c=Ye(u),f=e=>{var n=dn();On(We(n),()=>t.children),pn(e,n)};return Dn(c,e=>{t.children&&e(f)}),Jn(u,e=>o=e,()=>o),lt(()=>{qn(u,"id",t.id),Rn(u,1,An(Ft(s))),Vn(u,Ft(a)),qn(u,"aria-label",t.aria?.ariaLabel),qn(u,"aria-labelledby",t.aria?.ariaLabelledby),qn(u,"aria-describedby",t.aria?.ariaDescribedby),qn(u,"aria-disabled",t.aria?.ariaDisabled),qn(u,"aria-expanded",t.aria?.ariaExpanded),qn(u,"aria-controls",t.aria?.ariaControls),qn(u,"aria-haspopup",t.aria?.ariaHaspopup),qn(u,"aria-pressed",t.aria?.ariaPressed)}),en("click",u,function(e){i.emit(sr.ON_VIDEO_CONTAINER_CLICK,e)}),en("keydown",u,function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),i.emit(sr.ON_VIDEO_CONTAINER_CLICK,e))}),pn(e,u),K(l)}(f,ir({get size(){return Ft(h)},get shape(){return Ft(g)}},()=>Ft(E),{children:(e,t)=>{Jn(function(e,t){q(t,!0);let n=or(t,"preload",19,()=>Br.METADATA),r=or(t,"crossorigin",19,()=>Ur.ANONYMOUS),i=or(t,"autoplay",3,!0),o=or(t,"playsinline",3,!0),s=or(t,"loop",3,!0),a=or(t,"muted",3,!0),l=or(t,"controls",3,!1),u=or(t,"volume",3,1),c=or(t,"startTime",3,0);const{eventEmitter:f}=lr();let d,p;const v=qr({getVideoElement:()=>p,eventEmitter:f});Xr(v);const h=Oe(()=>["rs-video",t.customClasses?.root]),g=Oe(()=>_r(t.customStyles?.root)),m=Oe(()=>["rs-video__media",t.customClasses?.video]),_=Oe(()=>_r(t.customStyles?.video));kn(()=>{p&&(p.currentTime=c(),p.volume=u(),p.muted=a())});var y={controller:v,getElements:function(){return{root:d,video:p}}},E=Kr(),b=Ye(E),C=Ye(b);Jn(b,e=>p=e,()=>p);var w=Ze(b,2),S=e=>{var n=dn();On(We(n),()=>t.children),pn(e,n)};return Dn(w,e=>{t.children&&e(S)}),Jn(E,e=>d=e,()=>d),lt(()=>{qn(E,"id",t.id),Rn(E,1,An(Ft(h))),Vn(E,Ft(g)),Rn(b,1,An(Ft(m))),Vn(b,Ft(_)),qn(b,"poster",t.poster),qn(b,"preload",n()),b.autoplay=i(),b.loop=s(),b.muted=a(),b.controls=l(),b.playsInline=o(),qn(b,"crossorigin",r()),qn(C,"src",t.src),qn(C,"type",t.type),qn(C,"media",t.media)}),Jt("loadedmetadata",b,function(...e){v.handleLoadedMetadata?.apply(this,e)}),Jt("play",b,function(...e){v.handlePlay?.apply(this,e)}),Jt("pause",b,function(...e){v.handlePause?.apply(this,e)}),Jt("seeking",b,function(...e){v.handleSeeking?.apply(this,e)}),Jt("seeked",b,function(...e){v.handleSeeked?.apply(this,e)}),Jt("ended",b,function(...e){v.handleEnded?.apply(this,e)}),Jt("loadstart",b,function(...e){v.handleLoadStart?.apply(this,e)}),Jt("load",b,function(...e){v.handleLoaded?.apply(this,e)}),Jt("waiting",b,function(...e){v.handleWaiting?.apply(this,e)}),Jt("canplay",b,function(...e){v.handleCanPlay?.apply(this,e)}),Jt("timeupdate",b,function(...e){v.handleTimeUpdate?.apply(this,e)}),Jt("volumechange",b,function(...e){v.handleVolumeChange?.apply(this,e)}),Jt("progress",b,function(...e){v.handleProgress?.apply(this,e)}),Jt("error",b,function(...e){v.handleError?.apply(this,e)}),pn(e,E),K(y)}(e,ir(()=>Ft(_),{children:(e,t)=>{var n=vi(),r=We(n),i=e=>{Jn(ei(e,ir({get size(){return Ft(h)}},()=>Ft(y))),e=>Re(o,e,!0),()=>Ft(o))};Dn(r,e=>{!1!==Ft(y)&&e(i)});var u=Ze(r,2),c=e=>{Jn(ci(e,ir({get size(){return Ft(h)},get shape(){return Ft(g)}},()=>Ft(C))),e=>Re(s,e,!0),()=>Ft(s))};Dn(u,e=>{!1!==Ft(C)&&e(c)});var f=Ze(u,2),d=e=>{Jn(Zr(e,ir({get size(){return Ft(h)}},()=>Ft(b))),e=>Re(a,e,!0),()=>Ft(a))};Dn(f,e=>{!1!==Ft(b)&&e(d)});var p=Ze(f,2),v=e=>{Jn(pi(e,ir({get size(){return Ft(h)},get shape(){return Ft(g)}},()=>Ft(w))),e=>Re(l,e,!0),()=>Ft(l))};Dn(p,e=>{!1!==Ft(w)&&e(v)}),pn(e,n)},$$slots:{default:!0}})),e=>i=e,()=>i)},$$slots:{default:!0}})),e=>r=e,()=>r);var d=Ze(f,2),p=e=>{Jn($r(e,ir({get size(){return Ft(h)},get shape(){return Ft(g)}},()=>Ft(S))),e=>Re(u,e,!0),()=>Ft(u))};Dn(d,e=>{!1!==Ft(S)&&e(p)});var v=Ze(d,2),m=e=>{Jn(function(e,t){q(t,!0);let n=or(t,"text",3,"Get in touch"),r=or(t,"size",19,()=>fr.MD),i=or(t,"placement",19,()=>Hr.INSIDE),o=or(t,"adaptive",19,()=>({sizes:[fr.XS,fr.SM],placement:Hr.OUTSIDE}));const{eventEmitter:s}=lr(),a=Oe(()=>o()&&o().sizes.includes(r())?o().placement:i());let l,u;const c=Oe(()=>["rs-cta-button",`rs-cta-button--${Ft(a)}`,t.customClasses?.root]),f=Oe(()=>_r(t.customStyles?.root));var d={getElements:function(){return{root:l,button:u?.getElements()}}},p=jr(),v=Ye(p);{let e=Oe(()=>({root:t.customClasses?.button})),i=Oe(()=>({root:t.customStyles?.button}));Jn(Rr(v,{get size(){return r()},get aria(){return t.aria},get shape(){return Ar.RECTANGLE},get customClasses(){return Ft(e)},get customStyles(){return Ft(i)},onclick:function(e){s.emit(sr.ON_CTA_CLICK,e),t.onClick&&t.onClick(e)},children:(e,t)=>{var r=fn();lt(()=>{return e=r,void((i=null==(t=n())?"":"object"==typeof t?`${t}`:t)!==(e.__t??=e.nodeValue)&&(e.__t=i,e.nodeValue=`${i}`));var e,t,i}),pn(e,r)},$$slots:{default:!0}}),e=>u=e,()=>u)}return Jn(p,e=>l=e,()=>l),lt(()=>{qn(p,"id",t.id),Rn(p,1,An(Ft(c))),Vn(p,Ft(f))}),pn(e,p),K(d)}(e,ir({get size(){return Ft(h)}},()=>Ft(O))),e=>Re(c,e,!0),()=>Ft(c))};Dn(v,e=>{!1!==Ft(O)&&e(m)}),pn(e,n)},$$slots:{default:!0}})),e=>n=e,()=>n),lt(()=>Rn(N,1,An(Ft(k)))),pn(e,N),K(D)}function _i(){const e=new WeakMap;async function t(t){e.get(t)?.(),e.delete(t),t.component&&await function(e,t){const n=wn.get(e);return n?(wn.delete(e),n(t)):Promise.resolve()}(t.component)}return{NAME:"@retoo/scena",VERSION:"0.0.0",mount:function(n,r=document.body){const i=new Promise(o=>{const s=yi(n),a=Ci(s),l=ar(),u=wi(s,a,l);u.apply();const c=Si(s,l);c.apply();const f=Oi(s,a);f.apply();const d=bn(mi,{target:r,props:{get config(){return a.resolved},mount:()=>{const t=d;t.api.events.on(sr.ON_VIDEO_READY,()=>{c.api.isShownOnReady&&c.api.show()}),t.api.events.on(sr.ON_VIDEO_CONTAINER_CLICK,()=>{u.api.isPreviewing&&(u.api.stop(),u.api.isKeepTimeOnExpand||t.api.controller.seek(0),u.api.isKeepMuteOnExpand||t.api.controller.unmute())});const n={api:t.api,config:s,component:d,preview:u.api,responsive:f.api,visibility:c.api};e.set(n,()=>f.destroy()),o(n)},unmount:()=>{const e=d;i.then(n=>{const r=s.getConfig().visibility?.isAnimated??!0,i=s.getConfig().visibility?.isHidden??!1;if(!r||i)return void t(n);const o=e.api.components.container?.getElements()?.root;o?(c.api.hide(),requestAnimationFrame(()=>{const e=o.getAnimations();e.length>0?Promise.allSettled(e.map(e=>e.finished)).then(()=>{t(n)}):t(n)})):t(n)})},eventEmitter:l}})});return i},unmount:t}}function yi(e){let t=Me($e(br(e)));function n(e){Re(t,br(e),!0)}return{get current(){return Ft(t)},getConfig:function(){return Ft(t)},setConfig:n,mergeConfig:function(e){n(Cr(Ft(t),e))}}}class Ei extends Map{#H=new Map;#j=Me(0);#B=Me(0);#U=xt||-1;constructor(e){if(super(),e){for(var[t,n]of e)super.set(t,n);this.#B.v=super.size}}#G(e){return xt===this.#U?Me(e):Pe(e)}has(e){var t=this.#H,n=t.get(e);if(void 0===n){if(void 0===super.get(e))return Ft(this.#j),!1;n=this.#G(0),t.set(e,n)}return Ft(n),!0}forEach(e,t){this.#F(),super.forEach(e,t)}get(e){var t=this.#H,n=t.get(e);if(void 0===n){if(void 0===super.get(e))return void Ft(this.#j);n=this.#G(0),t.set(e,n)}return Ft(n),super.get(e)}set(e,t){var n=this.#H,r=n.get(e),i=super.get(e),o=super.set(e,t),s=this.#j;if(void 0===r)r=this.#G(0),n.set(e,r),Re(this.#B,super.size),Ve(s);else if(i!==t){Ve(r);var a=null===s.reactions?null:new Set(s.reactions);(null===a||!r.reactions?.every(e=>a.has(e)))&&Ve(s)}return o}delete(e){var t=this.#H,n=t.get(e),r=super.delete(e);return void 0!==n&&(t.delete(e),Re(this.#B,super.size),Re(n,-1),Ve(this.#j)),r}clear(){if(0!==super.size){super.clear();var e=this.#H;for(var t of(Re(this.#B,0),e.values()))Re(t,-1);Ve(this.#j),e.clear()}}#F(){Ft(this.#j);var e=this.#H;if(this.#B.v!==e.size)for(var t of super.keys())if(!e.has(t)){var n=this.#G(0);e.set(t,n)}for([,n]of this.#H)Ft(n)}keys(){return Ft(this.#j),super.keys()}values(){return this.#F(),super.values()}entries(){return this.#F(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return Ft(this.#B),super.size}}const bi=[mr.RESPONSIVE,mr.PREVIEW];function Ci(e){const t=new Ei;function n(){let n=e.current;for(const e of bi){const r=t.get(e);r&&(n=Cr(n,r()))}return n}const r=Oe(n);return{get resolved(){return Ft(r)},resolve:n,set:function(e,n){null===n?t.delete(e):t.set(e,n)}}}function wi(e,t,n){let r=Me(!1);function i(){e.getConfig().preview&&(Ft(r)||(Re(r,!0),t.set(mr.PREVIEW,()=>({...e.getConfig().preview,videoContainer:{customClasses:{root:[e.getConfig().videoContainer?.customClasses?.root,"rs-video-container--preview"]}}})),n.emit(sr.ON_PREVIEW_START)))}function o(){Ft(r)&&(Re(r,!1),t.set(mr.PREVIEW,null),n.emit(sr.ON_PREVIEW_STOP))}return{apply:function(){const{preview:t}=e.getConfig();t&&i()},get api(){return{get isPreviewing(){return Ft(r)},get isKeepTimeOnExpand(){return!!e.getConfig().preview?.keepTimeOnExpand},get isKeepMuteOnExpand(){return!!e.getConfig().preview?.keepMuteOnExpand},start:i,stop:o}}}}function Si(e,t){function n(){e.mergeConfig({visibility:{isHidden:!1}}),t.emit(sr.ON_VISIBILITY_SHOW)}function r(){e.mergeConfig({visibility:{isHidden:!0}}),t.emit(sr.ON_VISIBILITY_HIDE)}return{apply:function(){const t=e.getConfig().visibility,n="boolean"==typeof t?.isAnimated,r="boolean"==typeof t?.isShownOnReady,i="boolean"==typeof t?.isHidden,o=!n||t?.isAnimated;let s=!0,a=!0;i&&r&&(s=t.isHidden,a=t.isShownOnReady),i&&!r&&(s=t.isHidden,a=!t.isHidden),!i&&r&&(a=t.isShownOnReady,s=t.isShownOnReady),e.mergeConfig({visibility:{isAnimated:o,isShownOnReady:a,isHidden:s}})},get api(){return{get isHidden(){return!!e.getConfig().visibility?.isHidden},get isShownOnReady(){return!!e.getConfig().visibility?.isShownOnReady},show:n,hide:r}}}}function Oi(e,t){let n=Me(null),r=[];function i(e,r){const i=function(e,t){for(const n of t)if(e<=n)return n;return null}(window.innerWidth,e);i!==Ft(n)&&(Re(n,i,!0),null!==i?t.set(mr.RESPONSIVE,()=>r[i]):t.set(mr.RESPONSIVE,null))}return{apply:function(){const t=e.getConfig().responsive;if(!t)return;const n=Object.keys(t).map(Number).sort((e,t)=>e-t);if(0!==n.length&&yr){for(const e of n){const o=window.matchMedia(`(max-width: ${e}px)`),s=()=>i(n,t);o.addEventListener("change",s),r.push(()=>{o.removeEventListener("change",s)})}i(n,t)}},destroy:function(){Re(n,null);for(const e of r)e();r=[],t.set(mr.RESPONSIVE,null)},get api(){return{get activeBreakpoint(){return Ft(n)}}}}}const ki="undefined"!=typeof HTMLElement?HTMLElement:class{};class Ii extends ki{static tagName="scena-video-widget";_instance=null;_scena=null;_connected=!1;_mountPending=null;_unmountPending=null;get scena(){return this._scena}get instance(){return this._instance}connectedCallback(){this._connected=!0}disconnectedCallback(){this._connected=!1,this.unmount().catch(e=>{console.error("[scena] unmount failed on disconnect:",e)})}mount(e){return this._mountPending||(this._mountPending=this._mount(e).finally(()=>{this._mountPending=null})),this._mountPending}async _mount(e){if(this._unmountPending&&await this._unmountPending,this._instance)return this._instance.config.setConfig(e),this._instance;const t=_i(),n=await t.mount(e);return this._scena=t,this._instance=n,this.dispatchEvent(new CustomEvent("scena:mount",{detail:n,bubbles:!0,composed:!0})),n}unmount(){return this._unmountPending?this._unmountPending:this._scena&&this._instance?(this._unmountPending=this._unmount().finally(()=>{this._unmountPending=null}),this._unmountPending):Promise.resolve()}async _unmount(){if(this._mountPending&&await this._mountPending,!this._scena||!this._instance)return;const e=this._scena,t=this._instance;this._scena=null,this._instance=null,await e.unmount(t),this.dispatchEvent(new CustomEvent("scena:unmount",{bubbles:!0,composed:!0}))}}function Di(){return customElements.get(Ii.tagName)}function Ni(){Di()||customElements.define(Ii.tagName,Ii)}yr&&(window.scenaWidget=_i,window.defineScenaElement=Ni);export{gr as ComponentAriaHaspopup,hr as ComponentAriaPressed,dr as ComponentPlacement,pr as ComponentPosition,vr as ComponentShape,fr as ComponentSize,mr as OverrideLayer,mi as Scena,Tr as ScenaButtonAriaHaspopup,Nr as ScenaButtonAriaPressed,Ar as ScenaButtonShape,Pr as ScenaButtonType,Lr as ScenaButtonVariant,Hr as ScenaCtaButtonPlacement,Ii as ScenaElement,sr as ScenaEvent,Ur as ScenaVideoCrossOrigin,Br as ScenaVideoPreload,fi as ScenaVideoProgressVariant,Gr as ScenaVideoState,Ni as defineScenaElement,lr as getScenaContext,Di as getScenaElement,Fr as getScenaVideoContext,ni as scenaProgressCircleThicknessMap,ti as scenaProgressLineThicknessMap,ur as setScenaContext,Xr as setScenaVideoContext,ar as useEventEmitter,ii as useProgressCircle,ri as useProgressLine,_i as useScena,yi as useScenaConfig,Ci as useScenaOverrides,wi as useScenaPreview,Oi as useScenaResponsive,Si as useScenaVisibility,qr as useVideoController};
|
|
1
|
+
"undefined" != typeof window && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add("5");
|
|
2
|
+
var e = {}, t = Symbol(), n = Array.isArray, r = Array.prototype.indexOf, i = Array.prototype.includes, o = Array.from, a = Object.defineProperty, l = Object.getOwnPropertyDescriptor, u = Object.getOwnPropertyDescriptors, c = Object.prototype, f = Array.prototype, d = Object.getPrototypeOf, h = Object.isExtensible;
|
|
3
|
+
function v(e) {
|
|
4
|
+
return "function" == typeof e;
|
|
5
|
+
}
|
|
6
|
+
var p = () => {};
|
|
7
|
+
function m() {
|
|
8
|
+
var e, t;
|
|
9
|
+
return {
|
|
10
|
+
promise: new Promise((n, r) => {
|
|
11
|
+
e = n, t = r;
|
|
12
|
+
}),
|
|
13
|
+
resolve: e,
|
|
14
|
+
reject: t
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
var g = 1024, _ = 2048, y = 4096, b = 8192, E = 32768, C = 1 << 25, w = 65536, S = 1 << 19, k = 65536, O = 1 << 21, I = 1 << 23, T = Symbol("$state"), N = Symbol("legacy props"), A = Symbol(""), D = Symbol("attributes"), L = Symbol("class"), P = Symbol("style"), M = Symbol("text"), x = Symbol("form reset"), R = new class extends Error {
|
|
18
|
+
name = "StaleReactionError";
|
|
19
|
+
message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
|
|
20
|
+
}(), V = !!globalThis.document?.contentType && globalThis.document.contentType.includes("xml");
|
|
21
|
+
function $(e) {
|
|
22
|
+
throw new Error("https://svelte.dev/e/lifecycle_outside_component");
|
|
23
|
+
}
|
|
24
|
+
function z(e) {
|
|
25
|
+
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
26
|
+
}
|
|
27
|
+
var H, j = !1;
|
|
28
|
+
function B(e) {
|
|
29
|
+
j = e;
|
|
30
|
+
}
|
|
31
|
+
function F(t) {
|
|
32
|
+
if (null === t) throw z(), e;
|
|
33
|
+
return H = t;
|
|
34
|
+
}
|
|
35
|
+
function G() {
|
|
36
|
+
return F(mt(H));
|
|
37
|
+
}
|
|
38
|
+
function U(t) {
|
|
39
|
+
if (j) {
|
|
40
|
+
if (null !== mt(H)) throw z(), e;
|
|
41
|
+
H = t;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
function X(e = 1) {
|
|
45
|
+
if (j) {
|
|
46
|
+
for (var t = e, n = H; t--;) n = mt(n);
|
|
47
|
+
H = n;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
function q(e = !0) {
|
|
51
|
+
for (var t = 0, n = H;;) {
|
|
52
|
+
if (8 === n.nodeType) {
|
|
53
|
+
var r = n.data;
|
|
54
|
+
if ("]" === r) {
|
|
55
|
+
if (0 === t) return n;
|
|
56
|
+
t -= 1;
|
|
57
|
+
} else ("[" === r || "[!" === r || "[" === r[0] && !isNaN(Number(r.slice(1)))) && (t += 1);
|
|
58
|
+
}
|
|
59
|
+
var i = mt(n);
|
|
60
|
+
e && n.remove(), n = i;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
function K(e) {
|
|
64
|
+
return e === this.v;
|
|
65
|
+
}
|
|
66
|
+
function W(e) {
|
|
67
|
+
return t = e, n = this.v, !(t != t ? n == n : t !== n || null !== t && "object" == typeof t || "function" == typeof t);
|
|
68
|
+
var t, n;
|
|
69
|
+
}
|
|
70
|
+
var Y = !1;
|
|
71
|
+
var Z = null;
|
|
72
|
+
function J(e) {
|
|
73
|
+
Z = e;
|
|
74
|
+
}
|
|
75
|
+
function Q() {
|
|
76
|
+
const e = {};
|
|
77
|
+
return [() => (function(e) {
|
|
78
|
+
return re("hasContext").has(e);
|
|
79
|
+
}(e) || function() {
|
|
80
|
+
throw new Error("https://svelte.dev/e/missing_context");
|
|
81
|
+
}(), function(e) {
|
|
82
|
+
return re("getContext").get(e);
|
|
83
|
+
}(e)), (t) => function(e, t) {
|
|
84
|
+
return re("setContext").set(e, t), t;
|
|
85
|
+
}(e, t)];
|
|
86
|
+
}
|
|
87
|
+
function ee(e, t = !1, n) {
|
|
88
|
+
Z = {
|
|
89
|
+
p: Z,
|
|
90
|
+
i: !1,
|
|
91
|
+
c: null,
|
|
92
|
+
e: null,
|
|
93
|
+
s: e,
|
|
94
|
+
x: null,
|
|
95
|
+
r: en,
|
|
96
|
+
l: Y && !t ? {
|
|
97
|
+
s: null,
|
|
98
|
+
u: null,
|
|
99
|
+
$: []
|
|
100
|
+
} : null
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
function te(e) {
|
|
104
|
+
var t = Z, n = t.e;
|
|
105
|
+
if (null !== n) for (var r of (t.e = null, n)) At(r);
|
|
106
|
+
return void 0 !== e && (t.x = e), t.i = !0, Z = t.p, e ?? {};
|
|
107
|
+
}
|
|
108
|
+
function ne() {
|
|
109
|
+
return !Y || null !== Z && null === Z.l;
|
|
110
|
+
}
|
|
111
|
+
function re(e) {
|
|
112
|
+
return null === Z && $(), Z.c ??= new Map(function(e) {
|
|
113
|
+
let t = e.p;
|
|
114
|
+
for (; null !== t;) {
|
|
115
|
+
const e = t.c;
|
|
116
|
+
if (null !== e) return e;
|
|
117
|
+
t = t.p;
|
|
118
|
+
}
|
|
119
|
+
return null;
|
|
120
|
+
}(Z) || void 0);
|
|
121
|
+
}
|
|
122
|
+
var ie = [];
|
|
123
|
+
function oe() {
|
|
124
|
+
var e = ie;
|
|
125
|
+
ie = [], function(e) {
|
|
126
|
+
for (var t = 0; t < e.length; t++) e[t]();
|
|
127
|
+
}(e);
|
|
128
|
+
}
|
|
129
|
+
function se(e) {
|
|
130
|
+
if (0 === ie.length && !Ce) {
|
|
131
|
+
var t = ie;
|
|
132
|
+
queueMicrotask(() => {
|
|
133
|
+
t === ie && oe();
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
ie.push(e);
|
|
137
|
+
}
|
|
138
|
+
function le(e) {
|
|
139
|
+
var t = en;
|
|
140
|
+
if (null === t) return Zt.f |= I, e;
|
|
141
|
+
if (!(32768 & t.f || 4 & t.f)) throw e;
|
|
142
|
+
ue(e, t);
|
|
143
|
+
}
|
|
144
|
+
function ue(e, t) {
|
|
145
|
+
for (; null !== t;) {
|
|
146
|
+
if (128 & t.f) {
|
|
147
|
+
if (!(32768 & t.f)) throw e;
|
|
148
|
+
try {
|
|
149
|
+
t.b.error(e);
|
|
150
|
+
return;
|
|
151
|
+
} catch (t) {
|
|
152
|
+
e = t;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
t = t.parent;
|
|
156
|
+
}
|
|
157
|
+
throw e;
|
|
158
|
+
}
|
|
159
|
+
var ce = -7169;
|
|
160
|
+
function fe(e, t) {
|
|
161
|
+
e.f = e.f & ce | t;
|
|
162
|
+
}
|
|
163
|
+
function de(e) {
|
|
164
|
+
512 & e.f || null === e.deps ? fe(e, g) : fe(e, y);
|
|
165
|
+
}
|
|
166
|
+
function he(e) {
|
|
167
|
+
if (null !== e) for (const t of e) 2 & t.f && 65536 & t.f && (t.f ^= k, he(t.deps));
|
|
168
|
+
}
|
|
169
|
+
function ve(e, t, n) {
|
|
170
|
+
2048 & e.f ? t.add(e) : 4096 & e.f && n.add(e), he(e.deps), fe(e, g);
|
|
171
|
+
}
|
|
172
|
+
var pe = !1;
|
|
173
|
+
var me = null, ge = null, _e = null, ye = null, be = null, Ee = null, Ce = !1, we = !1, Se = null, ke = null, Oe = 0, Ie = 1, Te = class e {
|
|
174
|
+
id = Ie++;
|
|
175
|
+
#e = !1;
|
|
176
|
+
linked = !0;
|
|
177
|
+
#t = null;
|
|
178
|
+
#n = null;
|
|
179
|
+
async_deriveds = /* @__PURE__ */ new Map();
|
|
180
|
+
current = /* @__PURE__ */ new Map();
|
|
181
|
+
previous = /* @__PURE__ */ new Map();
|
|
182
|
+
unblocked = /* @__PURE__ */ new Set();
|
|
183
|
+
#r = /* @__PURE__ */ new Set();
|
|
184
|
+
#i = /* @__PURE__ */ new Set();
|
|
185
|
+
#o = /* @__PURE__ */ new Set();
|
|
186
|
+
#s = 0;
|
|
187
|
+
#a = /* @__PURE__ */ new Map();
|
|
188
|
+
#l = null;
|
|
189
|
+
#u = [];
|
|
190
|
+
#c = [];
|
|
191
|
+
#f = /* @__PURE__ */ new Set();
|
|
192
|
+
#d = /* @__PURE__ */ new Set();
|
|
193
|
+
#h = /* @__PURE__ */ new Map();
|
|
194
|
+
#v = /* @__PURE__ */ new Set();
|
|
195
|
+
is_fork = !1;
|
|
196
|
+
#p = !1;
|
|
197
|
+
#m() {
|
|
198
|
+
if (this.is_fork) return !0;
|
|
199
|
+
for (const n of this.#a.keys()) {
|
|
200
|
+
for (var e = n, t = !1; null !== e.parent;) {
|
|
201
|
+
if (this.#h.has(e)) {
|
|
202
|
+
t = !0;
|
|
203
|
+
break;
|
|
204
|
+
}
|
|
205
|
+
e = e.parent;
|
|
206
|
+
}
|
|
207
|
+
if (!t) return !0;
|
|
208
|
+
}
|
|
209
|
+
return !1;
|
|
210
|
+
}
|
|
211
|
+
skip_effect(e) {
|
|
212
|
+
this.#h.has(e) || this.#h.set(e, {
|
|
213
|
+
d: [],
|
|
214
|
+
m: []
|
|
215
|
+
}), this.#v.delete(e);
|
|
216
|
+
}
|
|
217
|
+
unskip_effect(e, t = (e) => this.schedule(e)) {
|
|
218
|
+
var n = this.#h.get(e);
|
|
219
|
+
if (n) {
|
|
220
|
+
for (var r of (this.#h.delete(e), n.d)) fe(r, _), t(r);
|
|
221
|
+
for (r of n.m) fe(r, y), t(r);
|
|
222
|
+
}
|
|
223
|
+
this.#v.add(e);
|
|
224
|
+
}
|
|
225
|
+
#g() {
|
|
226
|
+
if (this.#e = !0, Oe++ > 1e3 && (this.#_(), function() {
|
|
227
|
+
try {
|
|
228
|
+
(function() {
|
|
229
|
+
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
230
|
+
})();
|
|
231
|
+
} catch (e) {
|
|
232
|
+
ue(e, Ee);
|
|
233
|
+
}
|
|
234
|
+
}()), !this.#m()) {
|
|
235
|
+
for (const e of this.#f) this.#d.delete(e), fe(e, _), this.schedule(e);
|
|
236
|
+
for (const e of this.#d) fe(e, y), this.schedule(e);
|
|
237
|
+
}
|
|
238
|
+
const t = this.#u;
|
|
239
|
+
this.#u = [], this.apply();
|
|
240
|
+
var n = Se = [], r = [], i = ke = [];
|
|
241
|
+
for (const e of t) try {
|
|
242
|
+
this.#y(e, n, r);
|
|
243
|
+
} catch (t) {
|
|
244
|
+
throw xe(e), t;
|
|
245
|
+
}
|
|
246
|
+
if (_e = null, i.length > 0) {
|
|
247
|
+
var o = e.ensure();
|
|
248
|
+
for (const e of i) o.schedule(e);
|
|
249
|
+
}
|
|
250
|
+
if (Se = null, ke = null, this.#m()) {
|
|
251
|
+
this.#b(r), this.#b(n);
|
|
252
|
+
for (const [e, t] of this.#h) Me(e, t);
|
|
253
|
+
i.length > 0 && _e.#g();
|
|
254
|
+
return;
|
|
255
|
+
}
|
|
256
|
+
const s = this.#E();
|
|
257
|
+
if (s) s.#C(this);
|
|
258
|
+
else {
|
|
259
|
+
this.#f.clear(), this.#d.clear();
|
|
260
|
+
for (const e of this.#r) e(this);
|
|
261
|
+
this.#r.clear(), ye = this, Ae(r), Ae(n), ye = null, this.#l?.resolve();
|
|
262
|
+
var a = _e;
|
|
263
|
+
if (this.linked && 0 === this.#s && this.#_(), this.#u.length > 0) {
|
|
264
|
+
null === a && (a = this, this.#w());
|
|
265
|
+
const e = a;
|
|
266
|
+
e.#u.push(...this.#u.filter((t) => !e.#u.includes(t)));
|
|
267
|
+
}
|
|
268
|
+
null !== a && a.#g();
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
#y(e, t, n) {
|
|
272
|
+
e.f ^= g;
|
|
273
|
+
for (var r = e.first; null !== r;) {
|
|
274
|
+
var i = r.f, o = !!(96 & i);
|
|
275
|
+
if (!(o && 1024 & i || 8192 & i || this.#h.has(r)) && null !== r.fn) {
|
|
276
|
+
o ? r.f ^= g : 4 & i ? t.push(r) : hn(r) && (16 & i && this.#d.add(r), _n(r));
|
|
277
|
+
var s = r.first;
|
|
278
|
+
if (null !== s) {
|
|
279
|
+
r = s;
|
|
280
|
+
continue;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
for (; null !== r;) {
|
|
284
|
+
var a = r.next;
|
|
285
|
+
if (null !== a) {
|
|
286
|
+
r = a;
|
|
287
|
+
break;
|
|
288
|
+
}
|
|
289
|
+
r = r.parent;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
#E() {
|
|
294
|
+
for (var e = this.#t; null !== e;) {
|
|
295
|
+
if (!e.is_fork) {
|
|
296
|
+
for (const [t, [, n]] of this.current) if (e.current.has(t) && !n) return e;
|
|
297
|
+
}
|
|
298
|
+
e = e.#t;
|
|
299
|
+
}
|
|
300
|
+
return null;
|
|
301
|
+
}
|
|
302
|
+
#C(e) {
|
|
303
|
+
for (const [t, n] of e.current) !this.previous.has(t) && e.previous.has(t) && this.previous.set(t, e.previous.get(t)), this.current.set(t, n);
|
|
304
|
+
for (const [t, n] of e.async_deriveds) {
|
|
305
|
+
const e = this.async_deriveds.get(t);
|
|
306
|
+
e && n.promise.then(e.resolve);
|
|
307
|
+
}
|
|
308
|
+
const t = (e) => {
|
|
309
|
+
var n = e.reactions;
|
|
310
|
+
if (null !== n) for (const e of n) {
|
|
311
|
+
var r = e.f;
|
|
312
|
+
if (2 & r) t(e);
|
|
313
|
+
else {
|
|
314
|
+
var i = e;
|
|
315
|
+
4194320 & r && !this.async_deriveds.has(i) && (this.#d.delete(i), fe(i, _), this.schedule(i));
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
};
|
|
319
|
+
for (const e of this.current.keys()) t(e);
|
|
320
|
+
this.oncommit(() => e.discard()), e.#_(), _e = this, this.#g();
|
|
321
|
+
}
|
|
322
|
+
#b(e) {
|
|
323
|
+
for (var t = 0; t < e.length; t += 1) ve(e[t], this.#f, this.#d);
|
|
324
|
+
}
|
|
325
|
+
capture(e, n, r = !1) {
|
|
326
|
+
e.v === t || this.previous.has(e) || this.previous.set(e, e.v), 8388608 & e.f || (this.current.set(e, [n, r]), be?.set(e, n)), this.is_fork || (e.v = n);
|
|
327
|
+
}
|
|
328
|
+
activate() {
|
|
329
|
+
_e = this;
|
|
330
|
+
}
|
|
331
|
+
deactivate() {
|
|
332
|
+
_e = null, be = null;
|
|
333
|
+
}
|
|
334
|
+
flush() {
|
|
335
|
+
try {
|
|
336
|
+
we = !0, _e = this, this.#g();
|
|
337
|
+
} finally {
|
|
338
|
+
Oe = 0, Ee = null, Se = null, ke = null, we = !1, _e = null, be = null, Ye.clear();
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
discard() {
|
|
342
|
+
for (const e of this.#i) e(this);
|
|
343
|
+
this.#i.clear(), this.#o.clear(), this.#_();
|
|
344
|
+
}
|
|
345
|
+
register_created_effect(e) {
|
|
346
|
+
this.#c.push(e);
|
|
347
|
+
}
|
|
348
|
+
#S() {
|
|
349
|
+
this.#_();
|
|
350
|
+
for (let u = me; null !== u; u = u.#n) {
|
|
351
|
+
var e = u.id < this.id, t = [];
|
|
352
|
+
for (const [r, [i, o]] of this.current) {
|
|
353
|
+
if (u.current.has(r)) {
|
|
354
|
+
var n = u.current.get(r)[0];
|
|
355
|
+
if (!e || i === n) continue;
|
|
356
|
+
u.current.set(r, [i, o]);
|
|
357
|
+
}
|
|
358
|
+
t.push(r);
|
|
359
|
+
}
|
|
360
|
+
if (e) for (const [e, t] of this.async_deriveds) {
|
|
361
|
+
const n = u.async_deriveds.get(e);
|
|
362
|
+
n && t.promise.then(n.resolve);
|
|
363
|
+
}
|
|
364
|
+
if (u.#e) {
|
|
365
|
+
var r = [...u.current.keys()].filter((e) => !this.current.has(e));
|
|
366
|
+
if (0 === r.length) e && u.discard();
|
|
367
|
+
else if (t.length > 0) {
|
|
368
|
+
if (e) for (const e of this.#v) u.unskip_effect(e, (e) => {
|
|
369
|
+
4194320 & e.f ? u.schedule(e) : u.#b([e]);
|
|
370
|
+
});
|
|
371
|
+
u.activate();
|
|
372
|
+
var i = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Map();
|
|
373
|
+
for (var s of t) De(s, r, i, o);
|
|
374
|
+
o = /* @__PURE__ */ new Map();
|
|
375
|
+
var a = [...u.current.keys()].filter((e) => !this.current.has(e) || this.current.get(e)[0] !== e.v);
|
|
376
|
+
if (a.length > 0) for (const e of this.#c) 155648 & e.f || !Le(e, a, o) || (4194320 & e.f ? (fe(e, _), u.schedule(e)) : u.#f.add(e));
|
|
377
|
+
if (u.#u.length > 0) {
|
|
378
|
+
for (var l of (u.apply(), u.#u)) u.#y(l, [], []);
|
|
379
|
+
u.#u = [];
|
|
380
|
+
}
|
|
381
|
+
u.deactivate();
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
increment(e, t) {
|
|
387
|
+
if (this.#s += 1, e) {
|
|
388
|
+
let e = this.#a.get(t) ?? 0;
|
|
389
|
+
this.#a.set(t, e + 1);
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
decrement(e, t) {
|
|
393
|
+
if (this.#s -= 1, e) {
|
|
394
|
+
let e = this.#a.get(t) ?? 0;
|
|
395
|
+
1 === e ? this.#a.delete(t) : this.#a.set(t, e - 1);
|
|
396
|
+
}
|
|
397
|
+
this.#p || (this.#p = !0, se(() => {
|
|
398
|
+
this.#p = !1, this.linked && this.flush();
|
|
399
|
+
}));
|
|
400
|
+
}
|
|
401
|
+
transfer_effects(e, t) {
|
|
402
|
+
for (const t of e) this.#f.add(t);
|
|
403
|
+
for (const e of t) this.#d.add(e);
|
|
404
|
+
e.clear(), t.clear();
|
|
405
|
+
}
|
|
406
|
+
oncommit(e) {
|
|
407
|
+
this.#r.add(e);
|
|
408
|
+
}
|
|
409
|
+
ondiscard(e) {
|
|
410
|
+
this.#i.add(e);
|
|
411
|
+
}
|
|
412
|
+
on_fork_commit(e) {
|
|
413
|
+
this.#o.add(e);
|
|
414
|
+
}
|
|
415
|
+
run_fork_commit_callbacks() {
|
|
416
|
+
for (const e of this.#o) e(this);
|
|
417
|
+
this.#o.clear();
|
|
418
|
+
}
|
|
419
|
+
settled() {
|
|
420
|
+
return (this.#l ??= m()).promise;
|
|
421
|
+
}
|
|
422
|
+
static ensure() {
|
|
423
|
+
if (null === _e) {
|
|
424
|
+
const t = _e = new e();
|
|
425
|
+
t.#w(), we || Ce || se(() => {
|
|
426
|
+
t.#e || t.flush();
|
|
427
|
+
});
|
|
428
|
+
}
|
|
429
|
+
return _e;
|
|
430
|
+
}
|
|
431
|
+
apply() {
|
|
432
|
+
be = null;
|
|
433
|
+
}
|
|
434
|
+
schedule(e) {
|
|
435
|
+
if (Ee = e, !(e.b?.is_pending && 16777228 & e.f) || 32768 & e.f) {
|
|
436
|
+
for (var t = e; null !== t.parent;) {
|
|
437
|
+
var n = (t = t.parent).f;
|
|
438
|
+
if (!(null === Se || t !== en || null !== Zt && 2 & Zt.f)) return;
|
|
439
|
+
if (96 & n) {
|
|
440
|
+
if (!(1024 & n)) return;
|
|
441
|
+
t.f ^= g;
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
this.#u.push(t);
|
|
445
|
+
} else e.b.defer_effect(e);
|
|
446
|
+
}
|
|
447
|
+
#w() {
|
|
448
|
+
null === ge ? me = ge = this : (ge.#n = this, this.#t = ge), ge = this;
|
|
449
|
+
}
|
|
450
|
+
#_() {
|
|
451
|
+
var e = this.#t, t = this.#n;
|
|
452
|
+
null === e ? me = t : e.#n = t, null === t ? ge = e : t.#t = e, this.linked = !1;
|
|
453
|
+
}
|
|
454
|
+
};
|
|
455
|
+
var Ne = null;
|
|
456
|
+
function Ae(e) {
|
|
457
|
+
var t = e.length;
|
|
458
|
+
if (0 !== t) {
|
|
459
|
+
for (var n = 0; n < t;) {
|
|
460
|
+
var r = e[n++];
|
|
461
|
+
if (!(24576 & r.f) && hn(r) && (Ne = /* @__PURE__ */ new Set(), _n(r), null === r.deps && null === r.first && null === r.nodes && null === r.teardown && null === r.ac && jt(r), Ne?.size > 0)) {
|
|
462
|
+
Ye.clear();
|
|
463
|
+
for (const e of Ne) {
|
|
464
|
+
if (24576 & e.f) continue;
|
|
465
|
+
const t = [e];
|
|
466
|
+
let n = e.parent;
|
|
467
|
+
for (; null !== n;) Ne.has(n) && (Ne.delete(n), t.push(n)), n = n.parent;
|
|
468
|
+
for (let e = t.length - 1; e >= 0; e--) {
|
|
469
|
+
const n = t[e];
|
|
470
|
+
24576 & n.f || _n(n);
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
Ne.clear();
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
Ne = null;
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
function De(e, t, n, r) {
|
|
480
|
+
if (!n.has(e) && (n.add(e), null !== e.reactions)) for (const i of e.reactions) {
|
|
481
|
+
const e = i.f;
|
|
482
|
+
2 & e ? De(i, t, n, r) : 4194320 & e && !(2048 & e) && Le(i, t, r) && (fe(i, _), Pe(i));
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
function Le(e, t, n) {
|
|
486
|
+
const r = n.get(e);
|
|
487
|
+
if (void 0 !== r) return r;
|
|
488
|
+
if (null !== e.deps) for (const r of e.deps) {
|
|
489
|
+
if (i.call(t, r)) return !0;
|
|
490
|
+
if (2 & r.f && Le(r, t, n)) return n.set(r, !0), !0;
|
|
491
|
+
}
|
|
492
|
+
return n.set(e, !1), !1;
|
|
493
|
+
}
|
|
494
|
+
function Pe(e) {
|
|
495
|
+
_e.schedule(e);
|
|
496
|
+
}
|
|
497
|
+
function Me(e, t) {
|
|
498
|
+
if (!(32 & e.f && 1024 & e.f)) {
|
|
499
|
+
2048 & e.f ? t.d.push(e) : 4096 & e.f && t.m.push(e), fe(e, g);
|
|
500
|
+
for (var n = e.first; null !== n;) Me(n, t), n = n.next;
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
function xe(e) {
|
|
504
|
+
fe(e, g);
|
|
505
|
+
for (var t = e.first; null !== t;) xe(t), t = t.next;
|
|
506
|
+
}
|
|
507
|
+
var Re = class {
|
|
508
|
+
parent;
|
|
509
|
+
is_pending = !1;
|
|
510
|
+
transform_error;
|
|
511
|
+
#k;
|
|
512
|
+
#O = j ? H : null;
|
|
513
|
+
#I;
|
|
514
|
+
#T;
|
|
515
|
+
#N;
|
|
516
|
+
#A = null;
|
|
517
|
+
#D = null;
|
|
518
|
+
#L = null;
|
|
519
|
+
#P = null;
|
|
520
|
+
#M = 0;
|
|
521
|
+
#x = 0;
|
|
522
|
+
#R = !1;
|
|
523
|
+
#f = /* @__PURE__ */ new Set();
|
|
524
|
+
#d = /* @__PURE__ */ new Set();
|
|
525
|
+
#V = null;
|
|
526
|
+
#$ = function(e) {
|
|
527
|
+
let t, n = 0, r = Je(0);
|
|
528
|
+
return () => {
|
|
529
|
+
It() && (yn(r), Lt(() => (0 === n && (t = Cn(() => e(() => it(r)))), n += 1, () => {
|
|
530
|
+
se(() => {
|
|
531
|
+
n -= 1, 0 === n && (t?.(), t = void 0, it(r));
|
|
532
|
+
});
|
|
533
|
+
})));
|
|
534
|
+
};
|
|
535
|
+
}(() => (this.#V = Je(this.#M), () => {
|
|
536
|
+
this.#V = null;
|
|
537
|
+
}));
|
|
538
|
+
constructor(e, t, n, r) {
|
|
539
|
+
this.#k = e, this.#I = t, this.#T = (e) => {
|
|
540
|
+
var t = en;
|
|
541
|
+
t.b = this, t.f |= 128, n(e);
|
|
542
|
+
}, this.parent = en.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#N = Mt(() => {
|
|
543
|
+
if (j) {
|
|
544
|
+
const e = this.#O;
|
|
545
|
+
G();
|
|
546
|
+
const t = "[!" === e.data;
|
|
547
|
+
if (e.data.startsWith("[?")) {
|
|
548
|
+
const t = JSON.parse(e.data.slice(2));
|
|
549
|
+
this.#z(t);
|
|
550
|
+
} else t ? this.#H() : this.#j();
|
|
551
|
+
} else this.#B();
|
|
552
|
+
}, 589824), j && (this.#k = H);
|
|
553
|
+
}
|
|
554
|
+
#j() {
|
|
555
|
+
try {
|
|
556
|
+
this.#A = Rt(() => this.#T(this.#k));
|
|
557
|
+
} catch (e) {
|
|
558
|
+
this.error(e);
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
#z(e) {
|
|
562
|
+
const t = this.#I.failed;
|
|
563
|
+
t && (this.#L = Rt(() => {
|
|
564
|
+
t(this.#k, () => e, () => () => {});
|
|
565
|
+
}));
|
|
566
|
+
}
|
|
567
|
+
#H() {
|
|
568
|
+
const e = this.#I.pending;
|
|
569
|
+
e && (this.is_pending = !0, this.#D = Rt(() => e(this.#k)), se(() => {
|
|
570
|
+
var e = this.#P = document.createDocumentFragment(), t = vt();
|
|
571
|
+
e.append(t), this.#A = this.#F(() => Rt(() => this.#T(t))), 0 === this.#x && (this.#k.before(e), this.#P = null, Bt(this.#D, () => {
|
|
572
|
+
this.#D = null;
|
|
573
|
+
}), this.#G(_e));
|
|
574
|
+
}));
|
|
575
|
+
}
|
|
576
|
+
#B() {
|
|
577
|
+
try {
|
|
578
|
+
if (this.is_pending = this.has_pending_snippet(), this.#x = 0, this.#M = 0, this.#A = Rt(() => {
|
|
579
|
+
this.#T(this.#k);
|
|
580
|
+
}), this.#x > 0) {
|
|
581
|
+
var e = this.#P = document.createDocumentFragment();
|
|
582
|
+
Xt(this.#A, e);
|
|
583
|
+
const t = this.#I.pending;
|
|
584
|
+
this.#D = Rt(() => t(this.#k));
|
|
585
|
+
} else this.#G(_e);
|
|
586
|
+
} catch (e) {
|
|
587
|
+
this.error(e);
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
#G(e) {
|
|
591
|
+
this.is_pending = !1, e.transfer_effects(this.#f, this.#d);
|
|
592
|
+
}
|
|
593
|
+
defer_effect(e) {
|
|
594
|
+
ve(e, this.#f, this.#d);
|
|
595
|
+
}
|
|
596
|
+
is_rendered() {
|
|
597
|
+
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
598
|
+
}
|
|
599
|
+
has_pending_snippet() {
|
|
600
|
+
return !!this.#I.pending;
|
|
601
|
+
}
|
|
602
|
+
#F(e) {
|
|
603
|
+
var t = en, n = Zt, r = Z;
|
|
604
|
+
tn(this.#N), Qt(this.#N), J(this.#N.ctx);
|
|
605
|
+
try {
|
|
606
|
+
return Te.ensure(), e();
|
|
607
|
+
} catch (e) {
|
|
608
|
+
return le(e), null;
|
|
609
|
+
} finally {
|
|
610
|
+
tn(t), Qt(n), J(r);
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
#U(e, t) {
|
|
614
|
+
this.has_pending_snippet() ? (this.#x += e, 0 === this.#x && (this.#G(t), this.#D && Bt(this.#D, () => {
|
|
615
|
+
this.#D = null;
|
|
616
|
+
}), this.#P && (this.#k.before(this.#P), this.#P = null))) : this.parent && this.parent.#U(e, t);
|
|
617
|
+
}
|
|
618
|
+
update_pending_count(e, t) {
|
|
619
|
+
this.#U(e, t), this.#M += e, this.#V && !this.#R && (this.#R = !0, se(() => {
|
|
620
|
+
this.#R = !1, this.#V && nt(this.#V, this.#M);
|
|
621
|
+
}));
|
|
622
|
+
}
|
|
623
|
+
get_effect_pending() {
|
|
624
|
+
return this.#$(), yn(this.#V);
|
|
625
|
+
}
|
|
626
|
+
error(e) {
|
|
627
|
+
if (!this.#I.onerror && !this.#I.failed) throw e;
|
|
628
|
+
_e?.is_fork ? (this.#A && _e.skip_effect(this.#A), this.#D && _e.skip_effect(this.#D), this.#L && _e.skip_effect(this.#L), _e.on_fork_commit(() => {
|
|
629
|
+
this.#X(e);
|
|
630
|
+
})) : this.#X(e);
|
|
631
|
+
}
|
|
632
|
+
#X(e) {
|
|
633
|
+
this.#A && (zt(this.#A), this.#A = null), this.#D && (zt(this.#D), this.#D = null), this.#L && (zt(this.#L), this.#L = null), j && (F(this.#O), X(), F(q()));
|
|
634
|
+
var t = this.#I.onerror;
|
|
635
|
+
let n = this.#I.failed;
|
|
636
|
+
var r = !1, i = !1;
|
|
637
|
+
const o = () => {
|
|
638
|
+
r ? console.warn("https://svelte.dev/e/svelte_boundary_reset_noop") : (r = !0, i && function() {
|
|
639
|
+
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
640
|
+
}(), null !== this.#L && Bt(this.#L, () => {
|
|
641
|
+
this.#L = null;
|
|
642
|
+
}), this.#F(() => {
|
|
643
|
+
this.#B();
|
|
644
|
+
}));
|
|
645
|
+
}, s = (e) => {
|
|
646
|
+
try {
|
|
647
|
+
i = !0, t?.(e, o), i = !1;
|
|
648
|
+
} catch (e) {
|
|
649
|
+
ue(e, this.#N && this.#N.parent);
|
|
650
|
+
}
|
|
651
|
+
n && (this.#L = this.#F(() => {
|
|
652
|
+
try {
|
|
653
|
+
return Rt(() => {
|
|
654
|
+
var t = en;
|
|
655
|
+
t.b = this, t.f |= 128, n(this.#k, () => e, () => o);
|
|
656
|
+
});
|
|
657
|
+
} catch (e) {
|
|
658
|
+
return ue(e, this.#N.parent), null;
|
|
659
|
+
}
|
|
660
|
+
}));
|
|
661
|
+
};
|
|
662
|
+
se(() => {
|
|
663
|
+
var t;
|
|
664
|
+
try {
|
|
665
|
+
t = this.transform_error(e);
|
|
666
|
+
} catch (e) {
|
|
667
|
+
ue(e, this.#N && this.#N.parent);
|
|
668
|
+
return;
|
|
669
|
+
}
|
|
670
|
+
null !== t && "object" == typeof t && "function" == typeof t.then ? t.then(s, (e) => ue(e, this.#N && this.#N.parent)) : s(t);
|
|
671
|
+
});
|
|
672
|
+
}
|
|
673
|
+
};
|
|
674
|
+
function Ve(e, t, n, r) {
|
|
675
|
+
const i = ne() ? He : Ge;
|
|
676
|
+
var o = e.filter((e) => !e.settled);
|
|
677
|
+
if (0 !== n.length || 0 !== o.length) {
|
|
678
|
+
var s = en, a = function() {
|
|
679
|
+
var e = en, t = Zt, n = Z, r = _e;
|
|
680
|
+
return function(i = !0) {
|
|
681
|
+
tn(e), Qt(t), J(n), !i || 16384 & e.f || (r?.activate(), r?.apply());
|
|
682
|
+
};
|
|
683
|
+
}(), l = 1 === o.length ? o[0].promise : o.length > 1 ? Promise.all(o.map((e) => e.promise)) : null, u = ze();
|
|
684
|
+
0 !== n.length ? l ? l.then(() => {
|
|
685
|
+
a(), f(), $e();
|
|
686
|
+
}) : f() : l.then(() => c(t.map(i))).finally(u);
|
|
687
|
+
} else r(t.map(i));
|
|
688
|
+
function c(e) {
|
|
689
|
+
if (!(16384 & s.f)) {
|
|
690
|
+
a();
|
|
691
|
+
try {
|
|
692
|
+
r(e);
|
|
693
|
+
} catch (e) {
|
|
694
|
+
ue(e, s);
|
|
695
|
+
}
|
|
696
|
+
$e();
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
function f() {
|
|
700
|
+
Promise.all(n.map((e) => Be(e))).then((e) => c([...t.map(i), ...e])).catch((e) => ue(e, s)).finally(u);
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
function $e(e = !0) {
|
|
704
|
+
tn(null), Qt(null), J(null), e && _e?.deactivate();
|
|
705
|
+
}
|
|
706
|
+
function ze() {
|
|
707
|
+
var e = en, t = e.b, n = _e, r = t.is_rendered();
|
|
708
|
+
return t.update_pending_count(1, n), n.increment(r, e), () => {
|
|
709
|
+
t.update_pending_count(-1, n), n.decrement(r, e);
|
|
710
|
+
};
|
|
711
|
+
}
|
|
712
|
+
function He(e) {
|
|
713
|
+
null !== en && (en.f |= S);
|
|
714
|
+
return {
|
|
715
|
+
ctx: Z,
|
|
716
|
+
deps: null,
|
|
717
|
+
effects: null,
|
|
718
|
+
equals: K,
|
|
719
|
+
f: 2050,
|
|
720
|
+
fn: e,
|
|
721
|
+
reactions: null,
|
|
722
|
+
rv: 0,
|
|
723
|
+
v: t,
|
|
724
|
+
wv: 0,
|
|
725
|
+
parent: en,
|
|
726
|
+
ac: null
|
|
727
|
+
};
|
|
728
|
+
}
|
|
729
|
+
var je = Symbol("obsolete");
|
|
730
|
+
function Be(e, n, r) {
|
|
731
|
+
let i = en;
|
|
732
|
+
null === i && function() {
|
|
733
|
+
throw new Error("https://svelte.dev/e/async_derived_orphan");
|
|
734
|
+
}();
|
|
735
|
+
var o = void 0, s = Je(t);
|
|
736
|
+
var a = !Zt, l = /* @__PURE__ */ new Set();
|
|
737
|
+
return function(e) {
|
|
738
|
+
Ot(4718592, e);
|
|
739
|
+
}(() => {
|
|
740
|
+
var t = en;
|
|
741
|
+
var n = m();
|
|
742
|
+
o = n.promise;
|
|
743
|
+
try {
|
|
744
|
+
Promise.resolve(e()).then(n.resolve, (e) => {
|
|
745
|
+
e !== R && n.reject(e);
|
|
746
|
+
}).finally($e);
|
|
747
|
+
} catch (e) {
|
|
748
|
+
n.reject(e), $e();
|
|
749
|
+
}
|
|
750
|
+
var r = _e;
|
|
751
|
+
if (a) {
|
|
752
|
+
if (32768 & t.f) var u = ze();
|
|
753
|
+
if (i.b.is_rendered()) r.async_deriveds.get(t)?.reject(je);
|
|
754
|
+
else for (const e of l.values()) e.reject(je);
|
|
755
|
+
l.add(n), r.async_deriveds.set(t, n);
|
|
756
|
+
}
|
|
757
|
+
const c = (e, t = void 0) => {
|
|
758
|
+
u?.(), l.delete(n), t !== je && (r.activate(), t ? (s.f |= I, nt(s, t)) : (8388608 & s.f && (s.f ^= I), nt(s, e)), r.deactivate());
|
|
759
|
+
};
|
|
760
|
+
n.promise.then(c, (e) => c(null, e || "unknown"));
|
|
761
|
+
}), Tt(() => {
|
|
762
|
+
for (const e of l) e.reject(je);
|
|
763
|
+
}), new Promise((e) => {
|
|
764
|
+
(function t(n) {
|
|
765
|
+
function r() {
|
|
766
|
+
n === o ? e(s) : t(o);
|
|
767
|
+
}
|
|
768
|
+
n.then(r, r);
|
|
769
|
+
})(o);
|
|
770
|
+
});
|
|
771
|
+
}
|
|
772
|
+
function Fe(e) {
|
|
773
|
+
const t = He(e);
|
|
774
|
+
return rn(t), t;
|
|
775
|
+
}
|
|
776
|
+
function Ge(e) {
|
|
777
|
+
const t = He(e);
|
|
778
|
+
return t.equals = W, t;
|
|
779
|
+
}
|
|
780
|
+
function Ue(e) {
|
|
781
|
+
var t = e.effects;
|
|
782
|
+
if (null !== t) {
|
|
783
|
+
e.effects = null;
|
|
784
|
+
for (var n = 0; n < t.length; n += 1) zt(t[n]);
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
function Xe(e) {
|
|
788
|
+
var t, n = en, r = e.parent;
|
|
789
|
+
if (!Wt && null !== r && 24576 & r.f) return console.warn("https://svelte.dev/e/derived_inert"), e.v;
|
|
790
|
+
tn(r);
|
|
791
|
+
try {
|
|
792
|
+
e.f &= -65537, Ue(e), t = pn(e);
|
|
793
|
+
} finally {
|
|
794
|
+
tn(n);
|
|
795
|
+
}
|
|
796
|
+
return t;
|
|
797
|
+
}
|
|
798
|
+
function qe(e) {
|
|
799
|
+
var t = Xe(e);
|
|
800
|
+
e.equals(t) || (e.wv = dn(), _e?.is_fork && null !== e.deps || (null !== _e ? (_e.capture(e, t, !0), ye?.capture(e, t, !0)) : e.v = t, null !== e.deps)) ? Wt || (null !== be ? (It() || _e?.is_fork) && be.set(e, t) : de(e)) : fe(e, g);
|
|
801
|
+
}
|
|
802
|
+
function Ke(e) {
|
|
803
|
+
if (null !== e.effects) for (const t of e.effects) t.teardown && _n(t);
|
|
804
|
+
}
|
|
805
|
+
var We = /* @__PURE__ */ new Set(), Ye = /* @__PURE__ */ new Map();
|
|
806
|
+
var Ze = !1;
|
|
807
|
+
function Je(e, t) {
|
|
808
|
+
return {
|
|
809
|
+
f: 0,
|
|
810
|
+
v: e,
|
|
811
|
+
reactions: null,
|
|
812
|
+
equals: K,
|
|
813
|
+
rv: 0,
|
|
814
|
+
wv: 0
|
|
815
|
+
};
|
|
816
|
+
}
|
|
817
|
+
function Qe(e, t) {
|
|
818
|
+
const n = Je(e);
|
|
819
|
+
return rn(n), n;
|
|
820
|
+
}
|
|
821
|
+
function tt(e, t, n = !1) {
|
|
822
|
+
null !== Zt && (!Jt || 131072 & Zt.f) && ne() && 4325394 & Zt.f && (null === nn || !i.call(nn, e)) && function() {
|
|
823
|
+
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
824
|
+
}();
|
|
825
|
+
return nt(e, n ? st(t) : t, ke);
|
|
826
|
+
}
|
|
827
|
+
function nt(e, t, n = null) {
|
|
828
|
+
if (!e.equals(t)) {
|
|
829
|
+
Ye.set(e, Wt ? t : e.v);
|
|
830
|
+
var r = Te.ensure();
|
|
831
|
+
if (r.capture(e, t), 2 & e.f) {
|
|
832
|
+
const t = e;
|
|
833
|
+
2048 & e.f && Xe(t), null === be && de(t);
|
|
834
|
+
}
|
|
835
|
+
e.wv = dn(), ot(e, _, n), ne() && null !== en && 1024 & en.f && !(96 & en.f) && (null === an ? function(e) {
|
|
836
|
+
an = e;
|
|
837
|
+
}([e]) : an.push(e)), !r.is_fork && We.size > 0 && !Ze && rt();
|
|
838
|
+
}
|
|
839
|
+
return t;
|
|
840
|
+
}
|
|
841
|
+
function rt() {
|
|
842
|
+
Ze = !1;
|
|
843
|
+
for (const e of We) {
|
|
844
|
+
let t;
|
|
845
|
+
1024 & e.f && fe(e, y);
|
|
846
|
+
try {
|
|
847
|
+
t = hn(e);
|
|
848
|
+
} catch {
|
|
849
|
+
t = !0;
|
|
850
|
+
}
|
|
851
|
+
t && _n(e);
|
|
852
|
+
}
|
|
853
|
+
We.clear();
|
|
854
|
+
}
|
|
855
|
+
function it(e) {
|
|
856
|
+
tt(e, e.v + 1);
|
|
857
|
+
}
|
|
858
|
+
function ot(e, t, n) {
|
|
859
|
+
var r = e.reactions;
|
|
860
|
+
if (null !== r) for (var i = ne(), o = r.length, s = 0; s < o; s++) {
|
|
861
|
+
var a = r[s], l = a.f;
|
|
862
|
+
if (i || a !== en) {
|
|
863
|
+
var u = 0 === (l & _);
|
|
864
|
+
if (u && fe(a, t), 131072 & l) We.add(a);
|
|
865
|
+
else if (2 & l) {
|
|
866
|
+
var c = a;
|
|
867
|
+
be?.delete(c), 65536 & l || (!(512 & l) || null !== en && 2097152 & en.f || (a.f |= k), ot(c, y, n));
|
|
868
|
+
} else if (u) {
|
|
869
|
+
var f = a;
|
|
870
|
+
16 & l && null !== Ne && Ne.add(f), null !== n ? n.push(f) : Pe(f);
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
function st(e) {
|
|
876
|
+
if ("object" != typeof e || null === e || T in e) return e;
|
|
877
|
+
const r = d(e);
|
|
878
|
+
if (r !== c && r !== f) return e;
|
|
879
|
+
var i = /* @__PURE__ */ new Map(), o = n(e), s = Qe(0), a = cn, u = (e) => {
|
|
880
|
+
if (cn === a) return e();
|
|
881
|
+
var t = Zt, n = cn;
|
|
882
|
+
Qt(null), fn(a);
|
|
883
|
+
var r = e();
|
|
884
|
+
return Qt(t), fn(n), r;
|
|
885
|
+
};
|
|
886
|
+
o && i.set("length", Qe(e.length));
|
|
887
|
+
return new Proxy(e, {
|
|
888
|
+
defineProperty(e, t, n) {
|
|
889
|
+
"value" in n && !1 !== n.configurable && !1 !== n.enumerable && !1 !== n.writable || function() {
|
|
890
|
+
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
891
|
+
}();
|
|
892
|
+
var r = i.get(t);
|
|
893
|
+
return void 0 === r ? u(() => {
|
|
894
|
+
var e = Qe(n.value);
|
|
895
|
+
return i.set(t, e), e;
|
|
896
|
+
}) : tt(r, n.value, !0), !0;
|
|
897
|
+
},
|
|
898
|
+
deleteProperty(e, n) {
|
|
899
|
+
var r = i.get(n);
|
|
900
|
+
if (void 0 === r) {
|
|
901
|
+
if (n in e) {
|
|
902
|
+
const e = u(() => Qe(t));
|
|
903
|
+
i.set(n, e), it(s);
|
|
904
|
+
}
|
|
905
|
+
} else tt(r, t), it(s);
|
|
906
|
+
return !0;
|
|
907
|
+
},
|
|
908
|
+
get(n, r, o) {
|
|
909
|
+
if (r === T) return e;
|
|
910
|
+
var s = i.get(r), a = r in n;
|
|
911
|
+
if (void 0 !== s || a && !l(n, r)?.writable || (s = u(() => {
|
|
912
|
+
return Qe(st(a ? n[r] : t));
|
|
913
|
+
}), i.set(r, s)), void 0 !== s) {
|
|
914
|
+
var c = yn(s);
|
|
915
|
+
return c === t ? void 0 : c;
|
|
916
|
+
}
|
|
917
|
+
return Reflect.get(n, r, o);
|
|
918
|
+
},
|
|
919
|
+
getOwnPropertyDescriptor(e, n) {
|
|
920
|
+
var r = Reflect.getOwnPropertyDescriptor(e, n);
|
|
921
|
+
if (r && "value" in r) {
|
|
922
|
+
var o = i.get(n);
|
|
923
|
+
o && (r.value = yn(o));
|
|
924
|
+
} else if (void 0 === r) {
|
|
925
|
+
var s = i.get(n), a = s?.v;
|
|
926
|
+
if (void 0 !== s && a !== t) return {
|
|
927
|
+
enumerable: !0,
|
|
928
|
+
configurable: !0,
|
|
929
|
+
value: a,
|
|
930
|
+
writable: !0
|
|
931
|
+
};
|
|
932
|
+
}
|
|
933
|
+
return r;
|
|
934
|
+
},
|
|
935
|
+
has(e, n) {
|
|
936
|
+
if (n === T) return !0;
|
|
937
|
+
var r = i.get(n), o = void 0 !== r && r.v !== t || Reflect.has(e, n);
|
|
938
|
+
return !((void 0 !== r || null !== en && (!o || l(e, n)?.writable)) && (void 0 === r && (r = u(() => {
|
|
939
|
+
return Qe(o ? st(e[n]) : t);
|
|
940
|
+
}), i.set(n, r)), yn(r) === t)) && o;
|
|
941
|
+
},
|
|
942
|
+
set(e, n, r, a) {
|
|
943
|
+
var c = i.get(n), f = n in e;
|
|
944
|
+
if (o && "length" === n) for (var d = r; d < c.v; d += 1) {
|
|
945
|
+
var h = i.get(d + "");
|
|
946
|
+
void 0 !== h ? tt(h, t) : d in e && (h = u(() => Qe(t)), i.set(d + "", h));
|
|
947
|
+
}
|
|
948
|
+
void 0 === c ? f && !l(e, n)?.writable || (tt(c = u(() => Qe(void 0)), st(r)), i.set(n, c)) : (f = c.v !== t, tt(c, u(() => st(r))));
|
|
949
|
+
var v = Reflect.getOwnPropertyDescriptor(e, n);
|
|
950
|
+
if (v?.set && v.set.call(a, r), !f) {
|
|
951
|
+
if (o && "string" == typeof n) {
|
|
952
|
+
var p = i.get("length"), m = Number(n);
|
|
953
|
+
Number.isInteger(m) && m >= p.v && tt(p, m + 1);
|
|
954
|
+
}
|
|
955
|
+
it(s);
|
|
956
|
+
}
|
|
957
|
+
return !0;
|
|
958
|
+
},
|
|
959
|
+
ownKeys(e) {
|
|
960
|
+
yn(s);
|
|
961
|
+
var n = Reflect.ownKeys(e).filter((e) => {
|
|
962
|
+
var n = i.get(e);
|
|
963
|
+
return void 0 === n || n.v !== t;
|
|
964
|
+
});
|
|
965
|
+
for (var [r, o] of i) o.v === t || r in e || n.push(r);
|
|
966
|
+
return n;
|
|
967
|
+
},
|
|
968
|
+
setPrototypeOf() {
|
|
969
|
+
(function() {
|
|
970
|
+
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
971
|
+
})();
|
|
972
|
+
}
|
|
973
|
+
});
|
|
974
|
+
}
|
|
975
|
+
function at(e) {
|
|
976
|
+
try {
|
|
977
|
+
if (null !== e && "object" == typeof e && T in e) return e[T];
|
|
978
|
+
} catch {}
|
|
979
|
+
return e;
|
|
980
|
+
}
|
|
981
|
+
function lt(e, t) {
|
|
982
|
+
return Object.is(at(e), at(t));
|
|
983
|
+
}
|
|
984
|
+
var ut, ct, ft, dt;
|
|
985
|
+
new Set([
|
|
986
|
+
"copyWithin",
|
|
987
|
+
"fill",
|
|
988
|
+
"pop",
|
|
989
|
+
"push",
|
|
990
|
+
"reverse",
|
|
991
|
+
"shift",
|
|
992
|
+
"sort",
|
|
993
|
+
"splice",
|
|
994
|
+
"unshift"
|
|
995
|
+
]);
|
|
996
|
+
function ht() {
|
|
997
|
+
if (void 0 === ut) {
|
|
998
|
+
ut = window, ct = /Firefox/.test(navigator.userAgent);
|
|
999
|
+
var e = Element.prototype, t = Node.prototype, n = Text.prototype;
|
|
1000
|
+
ft = l(t, "firstChild").get, dt = l(t, "nextSibling").get, h(e) && (e[L] = void 0, e[D] = null, e[P] = void 0, e.__e = void 0), h(n) && (n[M] = void 0);
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
function vt(e = "") {
|
|
1004
|
+
return document.createTextNode(e);
|
|
1005
|
+
}
|
|
1006
|
+
function pt(e) {
|
|
1007
|
+
return ft.call(e);
|
|
1008
|
+
}
|
|
1009
|
+
function mt(e) {
|
|
1010
|
+
return dt.call(e);
|
|
1011
|
+
}
|
|
1012
|
+
function gt(e, t) {
|
|
1013
|
+
if (!j) return pt(e);
|
|
1014
|
+
var n = pt(H);
|
|
1015
|
+
if (null === n) n = H.appendChild(vt());
|
|
1016
|
+
else if (t && 3 !== n.nodeType) {
|
|
1017
|
+
var r = vt();
|
|
1018
|
+
return n?.before(r), F(r), r;
|
|
1019
|
+
}
|
|
1020
|
+
return t && Et(n), F(n), n;
|
|
1021
|
+
}
|
|
1022
|
+
function _t(e, t = !1) {
|
|
1023
|
+
if (!j) {
|
|
1024
|
+
var n = pt(e);
|
|
1025
|
+
return n instanceof Comment && "" === n.data ? mt(n) : n;
|
|
1026
|
+
}
|
|
1027
|
+
if (t) {
|
|
1028
|
+
if (3 !== H?.nodeType) {
|
|
1029
|
+
var r = vt();
|
|
1030
|
+
return H?.before(r), F(r), r;
|
|
1031
|
+
}
|
|
1032
|
+
Et(H);
|
|
1033
|
+
}
|
|
1034
|
+
return H;
|
|
1035
|
+
}
|
|
1036
|
+
function yt(e, t = 1, n = !1) {
|
|
1037
|
+
let r = j ? H : e;
|
|
1038
|
+
for (var i; t--;) i = r, r = mt(r);
|
|
1039
|
+
if (!j) return r;
|
|
1040
|
+
if (n) {
|
|
1041
|
+
if (3 !== r?.nodeType) {
|
|
1042
|
+
var o = vt();
|
|
1043
|
+
return null === r ? i?.after(o) : r.before(o), F(o), o;
|
|
1044
|
+
}
|
|
1045
|
+
Et(r);
|
|
1046
|
+
}
|
|
1047
|
+
return F(r), r;
|
|
1048
|
+
}
|
|
1049
|
+
function bt(e, t, n) {
|
|
1050
|
+
let r = n ? { is: n } : void 0;
|
|
1051
|
+
return document.createElementNS(t ?? "http://www.w3.org/1999/xhtml", e, r);
|
|
1052
|
+
}
|
|
1053
|
+
function Et(e) {
|
|
1054
|
+
if (e.nodeValue.length < 65536) return;
|
|
1055
|
+
let t = e.nextSibling;
|
|
1056
|
+
for (; null !== t && 3 === t.nodeType;) t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
|
|
1057
|
+
}
|
|
1058
|
+
function Ct(e, t) {
|
|
1059
|
+
if (t) {
|
|
1060
|
+
const t = document.body;
|
|
1061
|
+
e.autofocus = !0, se(() => {
|
|
1062
|
+
document.activeElement === t && e.focus();
|
|
1063
|
+
});
|
|
1064
|
+
}
|
|
1065
|
+
}
|
|
1066
|
+
var wt = !1;
|
|
1067
|
+
function St(e) {
|
|
1068
|
+
var t = Zt, n = en;
|
|
1069
|
+
Qt(null), tn(null);
|
|
1070
|
+
try {
|
|
1071
|
+
return e();
|
|
1072
|
+
} finally {
|
|
1073
|
+
Qt(t), tn(n);
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
function kt(e) {
|
|
1077
|
+
null === en && (null === Zt && function() {
|
|
1078
|
+
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
1079
|
+
}(), function() {
|
|
1080
|
+
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
1081
|
+
}()), Wt && function() {
|
|
1082
|
+
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
1083
|
+
}();
|
|
1084
|
+
}
|
|
1085
|
+
function Ot(e, t) {
|
|
1086
|
+
var n = en;
|
|
1087
|
+
null !== n && 8192 & n.f && (e |= b);
|
|
1088
|
+
var r = {
|
|
1089
|
+
ctx: Z,
|
|
1090
|
+
deps: null,
|
|
1091
|
+
nodes: null,
|
|
1092
|
+
f: e | _ | 512,
|
|
1093
|
+
first: null,
|
|
1094
|
+
fn: t,
|
|
1095
|
+
last: null,
|
|
1096
|
+
next: null,
|
|
1097
|
+
parent: n,
|
|
1098
|
+
b: n && n.b,
|
|
1099
|
+
prev: null,
|
|
1100
|
+
teardown: null,
|
|
1101
|
+
wv: 0,
|
|
1102
|
+
ac: null
|
|
1103
|
+
};
|
|
1104
|
+
_e?.register_created_effect(r);
|
|
1105
|
+
var i = r;
|
|
1106
|
+
if (4 & e) null !== Se ? Se.push(r) : Te.ensure().schedule(r);
|
|
1107
|
+
else if (null !== t) {
|
|
1108
|
+
try {
|
|
1109
|
+
_n(r);
|
|
1110
|
+
} catch (i) {
|
|
1111
|
+
throw zt(r), i;
|
|
1112
|
+
}
|
|
1113
|
+
null !== i.deps || null !== i.teardown || null !== i.nodes || i.first !== i.last || 524288 & i.f || (i = i.first, 16 & e && 65536 & e && null !== i && (i.f |= w));
|
|
1114
|
+
}
|
|
1115
|
+
if (null !== i && (i.parent = n, null !== n && function(e, t) {
|
|
1116
|
+
var n = t.last;
|
|
1117
|
+
null === n ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
|
|
1118
|
+
}(i, n), null !== Zt && 2 & Zt.f && !(64 & e))) {
|
|
1119
|
+
var o = Zt;
|
|
1120
|
+
(o.effects ??= []).push(i);
|
|
1121
|
+
}
|
|
1122
|
+
return r;
|
|
1123
|
+
}
|
|
1124
|
+
function It() {
|
|
1125
|
+
return null !== Zt && !Jt;
|
|
1126
|
+
}
|
|
1127
|
+
function Tt(e) {
|
|
1128
|
+
const t = Ot(8, null);
|
|
1129
|
+
return fe(t, g), t.teardown = e, t;
|
|
1130
|
+
}
|
|
1131
|
+
function Nt(e) {
|
|
1132
|
+
kt();
|
|
1133
|
+
var t = en.f;
|
|
1134
|
+
if (Zt || !(32 & t) || 32768 & t) return At(e);
|
|
1135
|
+
var n = Z;
|
|
1136
|
+
(n.e ??= []).push(e);
|
|
1137
|
+
}
|
|
1138
|
+
function At(e) {
|
|
1139
|
+
return Ot(1048580, e);
|
|
1140
|
+
}
|
|
1141
|
+
function Dt(e) {
|
|
1142
|
+
return Ot(4, e);
|
|
1143
|
+
}
|
|
1144
|
+
function Lt(e, t = 0) {
|
|
1145
|
+
return Ot(8 | t, e);
|
|
1146
|
+
}
|
|
1147
|
+
function Pt(e, t = [], n = [], r = []) {
|
|
1148
|
+
Ve(r, t, n, (t) => {
|
|
1149
|
+
Ot(8, () => e(...t.map(yn)));
|
|
1150
|
+
});
|
|
1151
|
+
}
|
|
1152
|
+
function Mt(e, t = 0) {
|
|
1153
|
+
return Ot(16 | t, e);
|
|
1154
|
+
}
|
|
1155
|
+
function xt(e, t = 0) {
|
|
1156
|
+
return Ot(16777216 | t, e);
|
|
1157
|
+
}
|
|
1158
|
+
function Rt(e) {
|
|
1159
|
+
return Ot(524320, e);
|
|
1160
|
+
}
|
|
1161
|
+
function Vt(e) {
|
|
1162
|
+
var t = e.teardown;
|
|
1163
|
+
if (null !== t) {
|
|
1164
|
+
const e = Wt, n = Zt;
|
|
1165
|
+
Yt(!0), Qt(null);
|
|
1166
|
+
try {
|
|
1167
|
+
t.call(null);
|
|
1168
|
+
} finally {
|
|
1169
|
+
Yt(e), Qt(n);
|
|
1170
|
+
}
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
function $t(e, t = !1) {
|
|
1174
|
+
var n = e.first;
|
|
1175
|
+
for (e.first = e.last = null; null !== n;) {
|
|
1176
|
+
const e = n.ac;
|
|
1177
|
+
null !== e && St(() => {
|
|
1178
|
+
e.abort(R);
|
|
1179
|
+
});
|
|
1180
|
+
var r = n.next;
|
|
1181
|
+
64 & n.f ? n.parent = null : zt(n, t), n = r;
|
|
1182
|
+
}
|
|
1183
|
+
}
|
|
1184
|
+
function zt(e, t = !0) {
|
|
1185
|
+
var n = !1;
|
|
1186
|
+
(t || 262144 & e.f) && null !== e.nodes && null !== e.nodes.end && (Ht(e.nodes.start, e.nodes.end), n = !0), fe(e, C), $t(e, t && !n), gn(e, 0);
|
|
1187
|
+
var r = e.nodes && e.nodes.t;
|
|
1188
|
+
if (null !== r) for (const e of r) e.stop();
|
|
1189
|
+
Vt(e), e.f ^= C, e.f |= 16384;
|
|
1190
|
+
var i = e.parent;
|
|
1191
|
+
null !== i && null !== i.first && jt(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
|
|
1192
|
+
}
|
|
1193
|
+
function Ht(e, t) {
|
|
1194
|
+
for (; null !== e;) {
|
|
1195
|
+
var n = e === t ? null : mt(e);
|
|
1196
|
+
e.remove(), e = n;
|
|
1197
|
+
}
|
|
1198
|
+
}
|
|
1199
|
+
function jt(e) {
|
|
1200
|
+
var t = e.parent, n = e.prev, r = e.next;
|
|
1201
|
+
null !== n && (n.next = r), null !== r && (r.prev = n), null !== t && (t.first === e && (t.first = r), t.last === e && (t.last = n));
|
|
1202
|
+
}
|
|
1203
|
+
function Bt(e, t, n = !0) {
|
|
1204
|
+
var r = [];
|
|
1205
|
+
Ft(e, r, !0);
|
|
1206
|
+
var i = () => {
|
|
1207
|
+
n && zt(e), t && t();
|
|
1208
|
+
}, o = r.length;
|
|
1209
|
+
if (o > 0) {
|
|
1210
|
+
var s = () => --o || i();
|
|
1211
|
+
for (var a of r) a.out(s);
|
|
1212
|
+
} else i();
|
|
1213
|
+
}
|
|
1214
|
+
function Ft(e, t, n) {
|
|
1215
|
+
if (!(8192 & e.f)) {
|
|
1216
|
+
e.f ^= b;
|
|
1217
|
+
var r = e.nodes && e.nodes.t;
|
|
1218
|
+
if (null !== r) for (const e of r) (e.is_global || n) && t.push(e);
|
|
1219
|
+
for (var i = e.first; null !== i;) {
|
|
1220
|
+
var o = i.next;
|
|
1221
|
+
if (!(64 & i.f)) Ft(i, t, !!(!!(65536 & i.f) || !!(32 & i.f) && !!(16 & e.f)) && n);
|
|
1222
|
+
i = o;
|
|
1223
|
+
}
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1226
|
+
function Gt(e) {
|
|
1227
|
+
Ut(e, !0);
|
|
1228
|
+
}
|
|
1229
|
+
function Ut(e, t) {
|
|
1230
|
+
if (8192 & e.f) {
|
|
1231
|
+
e.f ^= b, 1024 & e.f || (fe(e, _), Te.ensure().schedule(e));
|
|
1232
|
+
for (var n = e.first; null !== n;) {
|
|
1233
|
+
var r = n.next;
|
|
1234
|
+
Ut(n, !!(!!(65536 & n.f) || !!(32 & n.f)) && t), n = r;
|
|
1235
|
+
}
|
|
1236
|
+
var i = e.nodes && e.nodes.t;
|
|
1237
|
+
if (null !== i) for (const e of i) (e.is_global || t) && e.in();
|
|
1238
|
+
}
|
|
1239
|
+
}
|
|
1240
|
+
function Xt(e, t) {
|
|
1241
|
+
if (e.nodes) for (var n = e.nodes.start, r = e.nodes.end; null !== n;) {
|
|
1242
|
+
var i = n === r ? null : mt(n);
|
|
1243
|
+
t.append(n), n = i;
|
|
1244
|
+
}
|
|
1245
|
+
}
|
|
1246
|
+
var qt = null, Kt = !1, Wt = !1;
|
|
1247
|
+
function Yt(e) {
|
|
1248
|
+
Wt = e;
|
|
1249
|
+
}
|
|
1250
|
+
var Zt = null, Jt = !1;
|
|
1251
|
+
function Qt(e) {
|
|
1252
|
+
Zt = e;
|
|
1253
|
+
}
|
|
1254
|
+
var en = null;
|
|
1255
|
+
function tn(e) {
|
|
1256
|
+
en = e;
|
|
1257
|
+
}
|
|
1258
|
+
var nn = null;
|
|
1259
|
+
function rn(e) {
|
|
1260
|
+
null !== Zt && (null === nn ? nn = [e] : nn.push(e));
|
|
1261
|
+
}
|
|
1262
|
+
var on = null, sn = 0, an = null;
|
|
1263
|
+
var ln = 1, un = 0, cn = un;
|
|
1264
|
+
function fn(e) {
|
|
1265
|
+
cn = e;
|
|
1266
|
+
}
|
|
1267
|
+
function dn() {
|
|
1268
|
+
return ++ln;
|
|
1269
|
+
}
|
|
1270
|
+
function hn(e) {
|
|
1271
|
+
var t = e.f;
|
|
1272
|
+
if (2048 & t) return !0;
|
|
1273
|
+
if (2 & t && (e.f &= -65537), 4096 & t) {
|
|
1274
|
+
for (var n = e.deps, r = n.length, i = 0; i < r; i++) {
|
|
1275
|
+
var o = n[i];
|
|
1276
|
+
if (hn(o) && qe(o), o.wv > e.wv) return !0;
|
|
1277
|
+
}
|
|
1278
|
+
512 & t && null === be && fe(e, g);
|
|
1279
|
+
}
|
|
1280
|
+
return !1;
|
|
1281
|
+
}
|
|
1282
|
+
function vn(e, t, n = !0) {
|
|
1283
|
+
var r = e.reactions;
|
|
1284
|
+
if (null !== r && (null === nn || !i.call(nn, e))) for (var o = 0; o < r.length; o++) {
|
|
1285
|
+
var s = r[o];
|
|
1286
|
+
2 & s.f ? vn(s, t, !1) : t === s && (n ? fe(s, _) : 1024 & s.f && fe(s, y), Pe(s));
|
|
1287
|
+
}
|
|
1288
|
+
}
|
|
1289
|
+
function pn(e) {
|
|
1290
|
+
var t = on, n = sn, r = an, i = Zt, o = nn, s = Z, a = Jt, l = cn, u = e.f;
|
|
1291
|
+
on = null, sn = 0, an = null, Zt = 96 & u ? null : e, nn = null, J(e.ctx), Jt = !1, cn = ++un, null !== e.ac && (St(() => {
|
|
1292
|
+
e.ac.abort(R);
|
|
1293
|
+
}), e.ac = null);
|
|
1294
|
+
try {
|
|
1295
|
+
e.f |= O;
|
|
1296
|
+
var c = (0, e.fn)();
|
|
1297
|
+
e.f |= E;
|
|
1298
|
+
var f = e.deps, d = _e?.is_fork;
|
|
1299
|
+
if (null !== on) {
|
|
1300
|
+
var h;
|
|
1301
|
+
if (d || gn(e, sn), null !== f && sn > 0) for (f.length = sn + on.length, h = 0; h < on.length; h++) f[sn + h] = on[h];
|
|
1302
|
+
else e.deps = f = on;
|
|
1303
|
+
if (It() && 512 & e.f) for (h = sn; h < f.length; h++) (f[h].reactions ??= []).push(e);
|
|
1304
|
+
} else !d && null !== f && sn < f.length && (gn(e, sn), f.length = sn);
|
|
1305
|
+
if (ne() && null !== an && !Jt && null !== f && !(6146 & e.f)) for (h = 0; h < an.length; h++) vn(an[h], e);
|
|
1306
|
+
if (null !== i && i !== e) {
|
|
1307
|
+
if (un++, null !== i.deps) for (let e = 0; e < n; e += 1) i.deps[e].rv = un;
|
|
1308
|
+
if (null !== t) for (const e of t) e.rv = un;
|
|
1309
|
+
null !== an && (null === r ? r = an : r.push(...an));
|
|
1310
|
+
}
|
|
1311
|
+
return 8388608 & e.f && (e.f ^= I), c;
|
|
1312
|
+
} catch (e) {
|
|
1313
|
+
return le(e);
|
|
1314
|
+
} finally {
|
|
1315
|
+
e.f ^= O, on = t, sn = n, an = r, Zt = i, nn = o, J(s), Jt = a, cn = l;
|
|
1316
|
+
}
|
|
1317
|
+
}
|
|
1318
|
+
function mn(e, n) {
|
|
1319
|
+
let o = n.reactions;
|
|
1320
|
+
if (null !== o) {
|
|
1321
|
+
var s = r.call(o, e);
|
|
1322
|
+
if (-1 !== s) {
|
|
1323
|
+
var a = o.length - 1;
|
|
1324
|
+
0 === a ? o = n.reactions = null : (o[s] = o[a], o.pop());
|
|
1325
|
+
}
|
|
1326
|
+
}
|
|
1327
|
+
if (null === o && 2 & n.f && (null === on || !i.call(on, n))) {
|
|
1328
|
+
var l = n;
|
|
1329
|
+
512 & l.f && (l.f ^= 512, l.f &= -65537), l.v !== t && de(l), function(e) {
|
|
1330
|
+
if (null !== e.effects) for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(R), t.teardown = p, t.ac = null, gn(t, 0), $t(t));
|
|
1331
|
+
}(l), gn(l, 0);
|
|
1332
|
+
}
|
|
1333
|
+
}
|
|
1334
|
+
function gn(e, t) {
|
|
1335
|
+
var n = e.deps;
|
|
1336
|
+
if (null !== n) for (var r = t; r < n.length; r++) mn(e, n[r]);
|
|
1337
|
+
}
|
|
1338
|
+
function _n(e) {
|
|
1339
|
+
var t = e.f;
|
|
1340
|
+
if (!(16384 & t)) {
|
|
1341
|
+
fe(e, g);
|
|
1342
|
+
var n = en, r = Kt;
|
|
1343
|
+
en = e, Kt = !0;
|
|
1344
|
+
try {
|
|
1345
|
+
16777232 & t ? function(e) {
|
|
1346
|
+
for (var t = e.first; null !== t;) {
|
|
1347
|
+
var n = t.next;
|
|
1348
|
+
32 & t.f || zt(t), t = n;
|
|
1349
|
+
}
|
|
1350
|
+
}(e) : $t(e), Vt(e);
|
|
1351
|
+
var i = pn(e);
|
|
1352
|
+
e.teardown = "function" == typeof i ? i : null, e.wv = ln;
|
|
1353
|
+
} finally {
|
|
1354
|
+
Kt = r, en = n;
|
|
1355
|
+
}
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1358
|
+
function yn(e) {
|
|
1359
|
+
var t = !!(2 & e.f);
|
|
1360
|
+
if (qt?.add(e), null !== Zt && !Jt && !(null !== en && 16384 & en.f || null !== nn && i.call(nn, e))) {
|
|
1361
|
+
var n = Zt.deps;
|
|
1362
|
+
if (2097152 & Zt.f) e.rv < un && (e.rv = un, null === on && null !== n && n[sn] === e ? sn++ : null === on ? on = [e] : on.push(e));
|
|
1363
|
+
else {
|
|
1364
|
+
(Zt.deps ??= []).push(e);
|
|
1365
|
+
var r = e.reactions;
|
|
1366
|
+
null === r ? e.reactions = [Zt] : i.call(r, Zt) || r.push(Zt);
|
|
1367
|
+
}
|
|
1368
|
+
}
|
|
1369
|
+
if (Wt && Ye.has(e)) return Ye.get(e);
|
|
1370
|
+
if (t) {
|
|
1371
|
+
var o = e;
|
|
1372
|
+
if (Wt) {
|
|
1373
|
+
var s = o.v;
|
|
1374
|
+
return (1024 & o.f || null === o.reactions) && !En(o) || (s = Xe(o)), Ye.set(o, s), s;
|
|
1375
|
+
}
|
|
1376
|
+
var a = !(512 & o.f) && !Jt && null !== Zt && (Kt || !!(512 & Zt.f)), l = 0 === (o.f & E);
|
|
1377
|
+
hn(o) && (a && (o.f |= 512), qe(o)), a && !l && (Ke(o), bn(o));
|
|
1378
|
+
}
|
|
1379
|
+
if (be?.has(e)) return be.get(e);
|
|
1380
|
+
if (8388608 & e.f) throw e.v;
|
|
1381
|
+
return e.v;
|
|
1382
|
+
}
|
|
1383
|
+
function bn(e) {
|
|
1384
|
+
if (e.f |= 512, null !== e.deps) for (const t of e.deps) (t.reactions ??= []).push(e), 2 & t.f && !(512 & t.f) && (Ke(t), bn(t));
|
|
1385
|
+
}
|
|
1386
|
+
function En(e) {
|
|
1387
|
+
if (e.v === t) return !0;
|
|
1388
|
+
if (null === e.deps) return !1;
|
|
1389
|
+
for (const t of e.deps) {
|
|
1390
|
+
if (Ye.has(t)) return !0;
|
|
1391
|
+
if (2 & t.f && En(t)) return !0;
|
|
1392
|
+
}
|
|
1393
|
+
return !1;
|
|
1394
|
+
}
|
|
1395
|
+
function Cn(e) {
|
|
1396
|
+
var t = Jt;
|
|
1397
|
+
try {
|
|
1398
|
+
return Jt = !0, e();
|
|
1399
|
+
} finally {
|
|
1400
|
+
Jt = t;
|
|
1401
|
+
}
|
|
1402
|
+
}
|
|
1403
|
+
var wn = Symbol("events"), Sn = /* @__PURE__ */ new Set(), kn = /* @__PURE__ */ new Set();
|
|
1404
|
+
function On(e, t, n, r = {}) {
|
|
1405
|
+
function i(e) {
|
|
1406
|
+
if (r.capture || An.call(t, e), !e.cancelBubble) return St(() => n?.call(this, e));
|
|
1407
|
+
}
|
|
1408
|
+
return e.startsWith("pointer") || e.startsWith("touch") || "wheel" === e ? se(() => {
|
|
1409
|
+
t.addEventListener(e, i, r);
|
|
1410
|
+
}) : t.addEventListener(e, i, r), i;
|
|
1411
|
+
}
|
|
1412
|
+
function In(e, t, n, r, i) {
|
|
1413
|
+
var o = {
|
|
1414
|
+
capture: r,
|
|
1415
|
+
passive: i
|
|
1416
|
+
}, s = On(e, t, n, o);
|
|
1417
|
+
(t === document.body || t === window || t === document || t instanceof HTMLMediaElement) && Tt(() => {
|
|
1418
|
+
t.removeEventListener(e, s, o);
|
|
1419
|
+
});
|
|
1420
|
+
}
|
|
1421
|
+
function Tn(e, t, n) {
|
|
1422
|
+
(t[wn] ??= {})[e] = n;
|
|
1423
|
+
}
|
|
1424
|
+
function Nn(e) {
|
|
1425
|
+
for (var t = 0; t < e.length; t++) Sn.add(e[t]);
|
|
1426
|
+
for (var n of kn) n(e);
|
|
1427
|
+
}
|
|
1428
|
+
function An(e) {
|
|
1429
|
+
var t = this, n = t.ownerDocument, r = e.type, i = e.composedPath?.() || [], o = i[0] || e.target, s = 0, l = e === e && e[wn];
|
|
1430
|
+
if (l) {
|
|
1431
|
+
var u = i.indexOf(l);
|
|
1432
|
+
if (-1 !== u && (t === document || t === window)) return void (e[wn] = t);
|
|
1433
|
+
var c = i.indexOf(t);
|
|
1434
|
+
if (-1 === c) return;
|
|
1435
|
+
u <= c && (s = u);
|
|
1436
|
+
}
|
|
1437
|
+
if ((o = i[s] || e.target) !== t) {
|
|
1438
|
+
a(e, "currentTarget", {
|
|
1439
|
+
configurable: !0,
|
|
1440
|
+
get: () => o || n
|
|
1441
|
+
});
|
|
1442
|
+
var f = Zt, d = en;
|
|
1443
|
+
Qt(null), tn(null);
|
|
1444
|
+
try {
|
|
1445
|
+
for (var h, v = []; null !== o;) {
|
|
1446
|
+
var p = o.assignedSlot || o.parentNode || o.host || null;
|
|
1447
|
+
try {
|
|
1448
|
+
var m = o[wn]?.[r];
|
|
1449
|
+
null == m || o.disabled && e.target !== o || m.call(o, e);
|
|
1450
|
+
} catch (e) {
|
|
1451
|
+
h ? v.push(e) : h = e;
|
|
1452
|
+
}
|
|
1453
|
+
if (e.cancelBubble || p === t || null === p) break;
|
|
1454
|
+
o = p;
|
|
1455
|
+
}
|
|
1456
|
+
if (h) {
|
|
1457
|
+
for (let e of v) queueMicrotask(() => {
|
|
1458
|
+
throw e;
|
|
1459
|
+
});
|
|
1460
|
+
throw h;
|
|
1461
|
+
}
|
|
1462
|
+
} finally {
|
|
1463
|
+
e[wn] = t, delete e.currentTarget, Qt(f), tn(d);
|
|
1464
|
+
}
|
|
1465
|
+
}
|
|
1466
|
+
}
|
|
1467
|
+
var Dn = globalThis?.window?.trustedTypes && globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
|
|
1468
|
+
function Ln(e) {
|
|
1469
|
+
var t = bt("template");
|
|
1470
|
+
return t.innerHTML = function(e) {
|
|
1471
|
+
return Dn?.createHTML(e) ?? e;
|
|
1472
|
+
}(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1473
|
+
}
|
|
1474
|
+
function Pn(e, t) {
|
|
1475
|
+
var n = en;
|
|
1476
|
+
null === n.nodes && (n.nodes = {
|
|
1477
|
+
start: e,
|
|
1478
|
+
end: t,
|
|
1479
|
+
a: null,
|
|
1480
|
+
t: null
|
|
1481
|
+
});
|
|
1482
|
+
}
|
|
1483
|
+
function Mn(e, t) {
|
|
1484
|
+
var n, r = !!(1 & t), i = !!(2 & t), o = !e.startsWith("<!>");
|
|
1485
|
+
return () => {
|
|
1486
|
+
if (j) return Pn(H, null), H;
|
|
1487
|
+
void 0 === n && (n = Ln(o ? e : "<!>" + e), r || (n = pt(n)));
|
|
1488
|
+
var t = i || ct ? document.importNode(n, !0) : n.cloneNode(!0);
|
|
1489
|
+
r ? Pn(pt(t), t.lastChild) : Pn(t, t);
|
|
1490
|
+
return t;
|
|
1491
|
+
};
|
|
1492
|
+
}
|
|
1493
|
+
function xn(e, t, n = "svg") {
|
|
1494
|
+
var r, i = !e.startsWith("<!>"), o = !!(1 & t), s = `<${n}>${i ? e : "<!>" + e}</${n}>`;
|
|
1495
|
+
return () => {
|
|
1496
|
+
if (j) return Pn(H, null), H;
|
|
1497
|
+
if (!r) {
|
|
1498
|
+
var e = pt(Ln(s));
|
|
1499
|
+
if (o) for (r = document.createDocumentFragment(); pt(e);) r.appendChild(pt(e));
|
|
1500
|
+
else r = pt(e);
|
|
1501
|
+
}
|
|
1502
|
+
var t = r.cloneNode(!0);
|
|
1503
|
+
o ? Pn(pt(t), t.lastChild) : Pn(t, t);
|
|
1504
|
+
return t;
|
|
1505
|
+
};
|
|
1506
|
+
}
|
|
1507
|
+
function Rn(e, t) {
|
|
1508
|
+
return xn(e, t, "svg");
|
|
1509
|
+
}
|
|
1510
|
+
function Vn(e = "") {
|
|
1511
|
+
if (!j) {
|
|
1512
|
+
var t = vt(e + "");
|
|
1513
|
+
return Pn(t, t), t;
|
|
1514
|
+
}
|
|
1515
|
+
var n = H;
|
|
1516
|
+
return 3 !== n.nodeType ? (n.before(n = vt()), F(n)) : Et(n), Pn(n, n), n;
|
|
1517
|
+
}
|
|
1518
|
+
function $n() {
|
|
1519
|
+
if (j) return Pn(H, null), H;
|
|
1520
|
+
var e = document.createDocumentFragment(), t = document.createComment(""), n = vt();
|
|
1521
|
+
return e.append(t, n), Pn(t, n), e;
|
|
1522
|
+
}
|
|
1523
|
+
function zn(e, t) {
|
|
1524
|
+
if (j) {
|
|
1525
|
+
var n = en;
|
|
1526
|
+
32768 & n.f && null !== n.nodes.end || (n.nodes.end = H), G();
|
|
1527
|
+
return;
|
|
1528
|
+
}
|
|
1529
|
+
null !== e && e.before(t);
|
|
1530
|
+
}
|
|
1531
|
+
function Hn(e) {
|
|
1532
|
+
return e.endsWith("capture") && "gotpointercapture" !== e && "lostpointercapture" !== e;
|
|
1533
|
+
}
|
|
1534
|
+
var jn = [
|
|
1535
|
+
"beforeinput",
|
|
1536
|
+
"click",
|
|
1537
|
+
"change",
|
|
1538
|
+
"dblclick",
|
|
1539
|
+
"contextmenu",
|
|
1540
|
+
"focusin",
|
|
1541
|
+
"focusout",
|
|
1542
|
+
"input",
|
|
1543
|
+
"keydown",
|
|
1544
|
+
"keyup",
|
|
1545
|
+
"mousedown",
|
|
1546
|
+
"mousemove",
|
|
1547
|
+
"mouseout",
|
|
1548
|
+
"mouseover",
|
|
1549
|
+
"mouseup",
|
|
1550
|
+
"pointerdown",
|
|
1551
|
+
"pointermove",
|
|
1552
|
+
"pointerout",
|
|
1553
|
+
"pointerover",
|
|
1554
|
+
"pointerup",
|
|
1555
|
+
"touchend",
|
|
1556
|
+
"touchmove",
|
|
1557
|
+
"touchstart"
|
|
1558
|
+
];
|
|
1559
|
+
function Bn(e) {
|
|
1560
|
+
return jn.includes(e);
|
|
1561
|
+
}
|
|
1562
|
+
var Fn = {
|
|
1563
|
+
formnovalidate: "formNoValidate",
|
|
1564
|
+
ismap: "isMap",
|
|
1565
|
+
nomodule: "noModule",
|
|
1566
|
+
playsinline: "playsInline",
|
|
1567
|
+
readonly: "readOnly",
|
|
1568
|
+
defaultvalue: "defaultValue",
|
|
1569
|
+
defaultchecked: "defaultChecked",
|
|
1570
|
+
srcobject: "srcObject",
|
|
1571
|
+
novalidate: "noValidate",
|
|
1572
|
+
allowfullscreen: "allowFullscreen",
|
|
1573
|
+
disablepictureinpicture: "disablePictureInPicture",
|
|
1574
|
+
disableremoteplayback: "disableRemotePlayback"
|
|
1575
|
+
};
|
|
1576
|
+
function Gn(e) {
|
|
1577
|
+
return e = e.toLowerCase(), Fn[e] ?? e;
|
|
1578
|
+
}
|
|
1579
|
+
var Un = ["touchstart", "touchmove"];
|
|
1580
|
+
function Xn(e) {
|
|
1581
|
+
return Un.includes(e);
|
|
1582
|
+
}
|
|
1583
|
+
function qn(e, t) {
|
|
1584
|
+
return Yn(e, t);
|
|
1585
|
+
}
|
|
1586
|
+
var Wn = /* @__PURE__ */ new Map();
|
|
1587
|
+
function Yn(t, { target: n, anchor: r, props: i = {}, events: s, context: a, intro: l = !0, transformError: u }) {
|
|
1588
|
+
ht();
|
|
1589
|
+
var c = void 0, f = function(e) {
|
|
1590
|
+
Te.ensure();
|
|
1591
|
+
const t = Ot(524352, e);
|
|
1592
|
+
return (e = {}) => new Promise((n) => {
|
|
1593
|
+
e.outro ? Bt(t, () => {
|
|
1594
|
+
zt(t), n(void 0);
|
|
1595
|
+
}) : (zt(t), n(void 0));
|
|
1596
|
+
});
|
|
1597
|
+
}(() => {
|
|
1598
|
+
var l = r ?? n.appendChild(vt());
|
|
1599
|
+
(function(e, t, n, r) {
|
|
1600
|
+
new Re(e, t, n, r);
|
|
1601
|
+
})(l, { pending: () => {} }, (n) => {
|
|
1602
|
+
if (ee({}), a && (Z.c = a), s && (i.$$events = s), j && Pn(n, null), c = t(n, i) || {}, j && (en.nodes.end = H, null === H || 8 !== H.nodeType || "]" !== H.data)) throw z(), e;
|
|
1603
|
+
te();
|
|
1604
|
+
}, u);
|
|
1605
|
+
var f = /* @__PURE__ */ new Set(), d = (e) => {
|
|
1606
|
+
for (var t = 0; t < e.length; t++) {
|
|
1607
|
+
var r = e[t];
|
|
1608
|
+
if (!f.has(r)) {
|
|
1609
|
+
f.add(r);
|
|
1610
|
+
var i = Xn(r);
|
|
1611
|
+
for (const e of [n, document]) {
|
|
1612
|
+
var o = Wn.get(e);
|
|
1613
|
+
void 0 === o && (o = /* @__PURE__ */ new Map(), Wn.set(e, o));
|
|
1614
|
+
var s = o.get(r);
|
|
1615
|
+
void 0 === s ? (e.addEventListener(r, An, { passive: i }), o.set(r, 1)) : o.set(r, s + 1);
|
|
1616
|
+
}
|
|
1617
|
+
}
|
|
1618
|
+
}
|
|
1619
|
+
};
|
|
1620
|
+
return d(o(Sn)), kn.add(d), () => {
|
|
1621
|
+
for (var e of f) for (const r of [n, document]) {
|
|
1622
|
+
var t = Wn.get(r), i = t.get(e);
|
|
1623
|
+
0 == --i ? (r.removeEventListener(e, An), t.delete(e), 0 === t.size && Wn.delete(r)) : t.set(e, i);
|
|
1624
|
+
}
|
|
1625
|
+
kn.delete(d), l !== r && l.parentNode?.removeChild(l);
|
|
1626
|
+
};
|
|
1627
|
+
});
|
|
1628
|
+
return Zn.set(c, f), c;
|
|
1629
|
+
}
|
|
1630
|
+
var Zn = /* @__PURE__ */ new WeakMap();
|
|
1631
|
+
function Jn(e, t) {
|
|
1632
|
+
const n = Zn.get(e);
|
|
1633
|
+
return n ? (Zn.delete(e), n(t)) : Promise.resolve();
|
|
1634
|
+
}
|
|
1635
|
+
var Qn = class {
|
|
1636
|
+
anchor;
|
|
1637
|
+
#q = /* @__PURE__ */ new Map();
|
|
1638
|
+
#K = /* @__PURE__ */ new Map();
|
|
1639
|
+
#W = /* @__PURE__ */ new Map();
|
|
1640
|
+
#Y = /* @__PURE__ */ new Set();
|
|
1641
|
+
#Z = !0;
|
|
1642
|
+
constructor(e, t = !0) {
|
|
1643
|
+
this.anchor = e, this.#Z = t;
|
|
1644
|
+
}
|
|
1645
|
+
#S = (e) => {
|
|
1646
|
+
if (this.#q.has(e)) {
|
|
1647
|
+
var t = this.#q.get(e), n = this.#K.get(t);
|
|
1648
|
+
if (n) Gt(n), this.#Y.delete(t);
|
|
1649
|
+
else {
|
|
1650
|
+
var r = this.#W.get(t);
|
|
1651
|
+
r && (this.#K.set(t, r.effect), this.#W.delete(t), r.fragment.lastChild.remove(), this.anchor.before(r.fragment), n = r.effect);
|
|
1652
|
+
}
|
|
1653
|
+
for (const [t, n] of this.#q) {
|
|
1654
|
+
if (this.#q.delete(t), t === e) break;
|
|
1655
|
+
const r = this.#W.get(n);
|
|
1656
|
+
r && (zt(r.effect), this.#W.delete(n));
|
|
1657
|
+
}
|
|
1658
|
+
for (const [e, r] of this.#K) {
|
|
1659
|
+
if (e === t || this.#Y.has(e)) continue;
|
|
1660
|
+
const i = () => {
|
|
1661
|
+
if (Array.from(this.#q.values()).includes(e)) {
|
|
1662
|
+
var t = document.createDocumentFragment();
|
|
1663
|
+
Xt(r, t), t.append(vt()), this.#W.set(e, {
|
|
1664
|
+
effect: r,
|
|
1665
|
+
fragment: t
|
|
1666
|
+
});
|
|
1667
|
+
} else zt(r);
|
|
1668
|
+
this.#Y.delete(e), this.#K.delete(e);
|
|
1669
|
+
};
|
|
1670
|
+
this.#Z || !n ? (this.#Y.add(e), Bt(r, i, !1)) : i();
|
|
1671
|
+
}
|
|
1672
|
+
}
|
|
1673
|
+
};
|
|
1674
|
+
#J = (e) => {
|
|
1675
|
+
this.#q.delete(e);
|
|
1676
|
+
const t = Array.from(this.#q.values());
|
|
1677
|
+
for (const [e, n] of this.#W) t.includes(e) || (zt(n.effect), this.#W.delete(e));
|
|
1678
|
+
};
|
|
1679
|
+
ensure(e, t) {
|
|
1680
|
+
var n = _e;
|
|
1681
|
+
!t || this.#K.has(e) || this.#W.has(e) || this.#K.set(e, Rt(() => t(this.anchor)));
|
|
1682
|
+
this.#q.set(n, e), j && (this.anchor = H), this.#S(n);
|
|
1683
|
+
}
|
|
1684
|
+
};
|
|
1685
|
+
function er(e, t, ...n) {
|
|
1686
|
+
var r = new Qn(e);
|
|
1687
|
+
Mt(() => {
|
|
1688
|
+
const e = t() ?? null;
|
|
1689
|
+
r.ensure(e, e && ((t) => e(t, ...n)));
|
|
1690
|
+
}, w);
|
|
1691
|
+
}
|
|
1692
|
+
function tr(e) {
|
|
1693
|
+
var t, n;
|
|
1694
|
+
null === Z && $(), Y && null !== Z.l ? (t = Z, n = t.l, n.u ??= {
|
|
1695
|
+
a: [],
|
|
1696
|
+
b: [],
|
|
1697
|
+
m: []
|
|
1698
|
+
}).m.push(e) : Nt(() => {
|
|
1699
|
+
const t = Cn(e);
|
|
1700
|
+
if ("function" == typeof t) return t;
|
|
1701
|
+
});
|
|
1702
|
+
}
|
|
1703
|
+
function nr(e) {
|
|
1704
|
+
null === Z && $(), tr(() => () => Cn(e));
|
|
1705
|
+
}
|
|
1706
|
+
function rr(t, n, r = !1) {
|
|
1707
|
+
var i;
|
|
1708
|
+
j && (i = H, G());
|
|
1709
|
+
var o = new Qn(t);
|
|
1710
|
+
function s(t, n) {
|
|
1711
|
+
if (j) {
|
|
1712
|
+
var r = function(t) {
|
|
1713
|
+
if (!t || 8 !== t.nodeType) throw z(), e;
|
|
1714
|
+
return t.data;
|
|
1715
|
+
}(i);
|
|
1716
|
+
if (t !== parseInt(r.substring(1))) {
|
|
1717
|
+
var s = q();
|
|
1718
|
+
F(s), o.anchor = s, B(!1), o.ensure(t, n), B(!0);
|
|
1719
|
+
return;
|
|
1720
|
+
}
|
|
1721
|
+
}
|
|
1722
|
+
o.ensure(t, n);
|
|
1723
|
+
}
|
|
1724
|
+
Mt(() => {
|
|
1725
|
+
var e = !1;
|
|
1726
|
+
n((t, n = 0) => {
|
|
1727
|
+
e = !0, s(n, t);
|
|
1728
|
+
}), e || s(-1, null);
|
|
1729
|
+
}, r ? w : 0);
|
|
1730
|
+
}
|
|
1731
|
+
function ir(t, n, r = !1, i = !1, o = !1, s = !1) {
|
|
1732
|
+
var a = t, l = "";
|
|
1733
|
+
if (r) {
|
|
1734
|
+
var u = t;
|
|
1735
|
+
j && (a = F(pt(u)));
|
|
1736
|
+
}
|
|
1737
|
+
Pt(() => {
|
|
1738
|
+
var t = en;
|
|
1739
|
+
if (l !== (l = n() ?? "")) {
|
|
1740
|
+
if (r && !j) return t.nodes = null, u.innerHTML = l, void ("" !== l && Pn(pt(u), u.lastChild));
|
|
1741
|
+
if (null !== t.nodes && (Ht(t.nodes.start, t.nodes.end), t.nodes = null), "" !== l) {
|
|
1742
|
+
if (j) {
|
|
1743
|
+
H.data;
|
|
1744
|
+
for (var s = G(), c = s; null !== s && (8 !== s.nodeType || "" !== s.data);) c = s, s = mt(s);
|
|
1745
|
+
if (null === s) throw z(), e;
|
|
1746
|
+
Pn(H, c), a = F(s);
|
|
1747
|
+
return;
|
|
1748
|
+
}
|
|
1749
|
+
var f = bt(i ? "svg" : o ? "math" : "template", i ? "http://www.w3.org/2000/svg" : o ? "http://www.w3.org/1998/Math/MathML" : void 0);
|
|
1750
|
+
f.innerHTML = l;
|
|
1751
|
+
var d = i || o ? f : f.content;
|
|
1752
|
+
if (Pn(pt(d), d.lastChild), i || o) for (; pt(d);) a.before(pt(d));
|
|
1753
|
+
else a.before(d);
|
|
1754
|
+
}
|
|
1755
|
+
} else j && G();
|
|
1756
|
+
});
|
|
1757
|
+
}
|
|
1758
|
+
function or(e, t) {
|
|
1759
|
+
var n, r = void 0;
|
|
1760
|
+
xt(() => {
|
|
1761
|
+
r !== (r = t()) && (n && (zt(n), n = null), r && (n = Rt(() => {
|
|
1762
|
+
Dt(() => r(e));
|
|
1763
|
+
})));
|
|
1764
|
+
});
|
|
1765
|
+
}
|
|
1766
|
+
function sr(e) {
|
|
1767
|
+
var t, n, r = "";
|
|
1768
|
+
if ("string" == typeof e || "number" == typeof e) r += e;
|
|
1769
|
+
else if ("object" == typeof e) if (Array.isArray(e)) {
|
|
1770
|
+
var i = e.length;
|
|
1771
|
+
for (t = 0; t < i; t++) e[t] && (n = sr(e[t])) && (r && (r += " "), r += n);
|
|
1772
|
+
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
1773
|
+
return r;
|
|
1774
|
+
}
|
|
1775
|
+
function ar(e) {
|
|
1776
|
+
return "object" == typeof e ? function() {
|
|
1777
|
+
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = sr(e)) && (r && (r += " "), r += t);
|
|
1778
|
+
return r;
|
|
1779
|
+
}(e) : e ?? "";
|
|
1780
|
+
}
|
|
1781
|
+
var lr = [..." \n\r\f\xA0\v"];
|
|
1782
|
+
function ur(e, t = !1) {
|
|
1783
|
+
var n = t ? " !important;" : ";", r = "";
|
|
1784
|
+
for (var i of Object.keys(e)) {
|
|
1785
|
+
var o = e[i];
|
|
1786
|
+
null != o && "" !== o && (r += " " + i + ": " + o + n);
|
|
1787
|
+
}
|
|
1788
|
+
return r;
|
|
1789
|
+
}
|
|
1790
|
+
function cr(e) {
|
|
1791
|
+
return "-" !== e[0] || "-" !== e[1] ? e.toLowerCase() : e;
|
|
1792
|
+
}
|
|
1793
|
+
function fr(e, t, n, r, i, o) {
|
|
1794
|
+
var s = e[L];
|
|
1795
|
+
if (j || s !== n || void 0 === s) {
|
|
1796
|
+
var a = function(e, t, n) {
|
|
1797
|
+
var r = null == e ? "" : "" + e;
|
|
1798
|
+
if (t && (r = r ? r + " " + t : t), n) {
|
|
1799
|
+
for (var i of Object.keys(n)) if (n[i]) r = r ? r + " " + i : i;
|
|
1800
|
+
else if (r.length) for (var o = i.length, s = 0; (s = r.indexOf(i, s)) >= 0;) {
|
|
1801
|
+
var a = s + o;
|
|
1802
|
+
0 !== s && !lr.includes(r[s - 1]) || a !== r.length && !lr.includes(r[a]) ? s = a : r = (0 === s ? "" : r.substring(0, s)) + r.substring(a + 1);
|
|
1803
|
+
}
|
|
1804
|
+
}
|
|
1805
|
+
return "" === r ? null : r;
|
|
1806
|
+
}(n, r, o);
|
|
1807
|
+
j && a === e.getAttribute("class") || (null == a ? e.removeAttribute("class") : t ? e.className = a : e.setAttribute("class", a)), e[L] = n;
|
|
1808
|
+
} else if (o && i !== o) for (var l in o) {
|
|
1809
|
+
var u = !!o[l];
|
|
1810
|
+
null != i && u === !!i[l] || e.classList.toggle(l, u);
|
|
1811
|
+
}
|
|
1812
|
+
return o;
|
|
1813
|
+
}
|
|
1814
|
+
function dr(e, t = {}, n, r) {
|
|
1815
|
+
for (var i in n) {
|
|
1816
|
+
var o = n[i];
|
|
1817
|
+
t[i] !== o && (null == n[i] ? e.style.removeProperty(i) : e.style.setProperty(i, o, r));
|
|
1818
|
+
}
|
|
1819
|
+
}
|
|
1820
|
+
function hr(e, t, n, r) {
|
|
1821
|
+
var i = e[P];
|
|
1822
|
+
if (j || i !== t) {
|
|
1823
|
+
var o = function(e, t) {
|
|
1824
|
+
if (t) {
|
|
1825
|
+
var n, r, i = "";
|
|
1826
|
+
if (Array.isArray(t) ? (n = t[0], r = t[1]) : n = t, e) {
|
|
1827
|
+
e = String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g, "").trim();
|
|
1828
|
+
var o = !1, s = 0, a = !1, l = [];
|
|
1829
|
+
n && l.push(...Object.keys(n).map(cr)), r && l.push(...Object.keys(r).map(cr));
|
|
1830
|
+
var u = 0, c = -1;
|
|
1831
|
+
const t = e.length;
|
|
1832
|
+
for (var f = 0; f < t; f++) {
|
|
1833
|
+
var d = e[f];
|
|
1834
|
+
if (a ? "/" === d && "*" === e[f - 1] && (a = !1) : o ? o === d && (o = !1) : "/" === d && "*" === e[f + 1] ? a = !0 : "\"" === d || "'" === d ? o = d : "(" === d ? s++ : ")" === d && s--, !a && !1 === o && 0 === s) {
|
|
1835
|
+
if (":" === d && -1 === c) c = f;
|
|
1836
|
+
else if (";" === d || f === t - 1) {
|
|
1837
|
+
if (-1 !== c) {
|
|
1838
|
+
var h = cr(e.substring(u, c).trim());
|
|
1839
|
+
l.includes(h) || (";" !== d && f++, i += " " + e.substring(u, f).trim() + ";");
|
|
1840
|
+
}
|
|
1841
|
+
u = f + 1, c = -1;
|
|
1842
|
+
}
|
|
1843
|
+
}
|
|
1844
|
+
}
|
|
1845
|
+
}
|
|
1846
|
+
return n && (i += ur(n)), r && (i += ur(r, !0)), "" === (i = i.trim()) ? null : i;
|
|
1847
|
+
}
|
|
1848
|
+
return null == e ? null : String(e);
|
|
1849
|
+
}(t, r);
|
|
1850
|
+
j && o === e.getAttribute("style") || (null == o ? e.removeAttribute("style") : e.style.cssText = o), e[P] = t;
|
|
1851
|
+
} else r && (Array.isArray(r) ? (dr(e, n?.[0], r[0]), dr(e, n?.[1], r[1], "important")) : dr(e, n, r));
|
|
1852
|
+
return r;
|
|
1853
|
+
}
|
|
1854
|
+
function vr(e, t, r = !1) {
|
|
1855
|
+
if (e.multiple) {
|
|
1856
|
+
if (null == t) return;
|
|
1857
|
+
if (!n(t)) return void console.warn("https://svelte.dev/e/select_multiple_invalid_value");
|
|
1858
|
+
for (var i of e.options) i.selected = t.includes(pr(i));
|
|
1859
|
+
} else {
|
|
1860
|
+
for (i of e.options) if (lt(pr(i), t)) return void (i.selected = !0);
|
|
1861
|
+
r && void 0 === t || (e.selectedIndex = -1);
|
|
1862
|
+
}
|
|
1863
|
+
}
|
|
1864
|
+
function pr(e) {
|
|
1865
|
+
return "__value" in e ? e.__value : e.value;
|
|
1866
|
+
}
|
|
1867
|
+
var mr = Symbol("class"), gr = Symbol("style"), _r = Symbol("is custom element"), yr = Symbol("is html"), br = V ? "link" : "LINK", Er = V ? "input" : "INPUT", Cr = V ? "option" : "OPTION", wr = V ? "select" : "SELECT";
|
|
1868
|
+
function Sr(e) {
|
|
1869
|
+
if (j) {
|
|
1870
|
+
var t = !1, n = () => {
|
|
1871
|
+
if (!t) {
|
|
1872
|
+
if (t = !0, e.hasAttribute("value")) {
|
|
1873
|
+
var n = e.value;
|
|
1874
|
+
Or(e, "value", null), e.value = n;
|
|
1875
|
+
}
|
|
1876
|
+
if (e.hasAttribute("checked")) {
|
|
1877
|
+
var r = e.checked;
|
|
1878
|
+
Or(e, "checked", null), e.checked = r;
|
|
1879
|
+
}
|
|
1880
|
+
}
|
|
1881
|
+
};
|
|
1882
|
+
e[x] = n, se(n), wt || (wt = !0, document.addEventListener("reset", (e) => {
|
|
1883
|
+
Promise.resolve().then(() => {
|
|
1884
|
+
if (!e.defaultPrevented) for (const t of e.target.elements) t[x]?.();
|
|
1885
|
+
});
|
|
1886
|
+
}, { capture: !0 }));
|
|
1887
|
+
}
|
|
1888
|
+
}
|
|
1889
|
+
function kr(e, t) {
|
|
1890
|
+
t ? e.hasAttribute("selected") || e.setAttribute("selected", "") : e.removeAttribute("selected");
|
|
1891
|
+
}
|
|
1892
|
+
function Or(e, t, n, r) {
|
|
1893
|
+
var i = Tr(e);
|
|
1894
|
+
j && (i[t] = e.getAttribute(t), "src" === t || "srcset" === t || "href" === t && e.nodeName === br) || i[t] !== (i[t] = n) && ("loading" === t && (e[A] = n), null == n ? e.removeAttribute(t) : "string" != typeof n && Ar(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
|
|
1895
|
+
}
|
|
1896
|
+
function Ir(e, n, r = [], i = [], o = [], s, a = !1, l = !1) {
|
|
1897
|
+
Ve(o, r, i, (r) => {
|
|
1898
|
+
var i = void 0, o = {}, u = e.nodeName === wr, c = !1;
|
|
1899
|
+
if (xt(() => {
|
|
1900
|
+
var f = n(...r.map(yn)), d = function(e, n, r, i, o = !1) {
|
|
1901
|
+
if (j && o && e.nodeName === Er) {
|
|
1902
|
+
var s = e;
|
|
1903
|
+
("checkbox" === s.type ? "defaultChecked" : "defaultValue") in r || Sr(s);
|
|
1904
|
+
}
|
|
1905
|
+
var a = Tr(e), l = a[_r], u = !a[yr];
|
|
1906
|
+
let c = j && l;
|
|
1907
|
+
c && B(!1);
|
|
1908
|
+
var f = n || {}, d = e.nodeName === Cr;
|
|
1909
|
+
for (var h in n) h in r || (r[h] = null);
|
|
1910
|
+
r.class ? r.class = ar(r.class) : (i || r[mr]) && (r.class = null), r[gr] && (r.style ??= null);
|
|
1911
|
+
var v = Ar(e);
|
|
1912
|
+
for (const b in r) {
|
|
1913
|
+
let E = r[b];
|
|
1914
|
+
if (d && "value" === b && null == E) e.value = e.__value = "", f[b] = E;
|
|
1915
|
+
else if ("class" !== b) if ("style" !== b) {
|
|
1916
|
+
var p = f[b];
|
|
1917
|
+
if (E !== p || void 0 === E && e.hasAttribute(b)) {
|
|
1918
|
+
f[b] = E;
|
|
1919
|
+
var m = b[0] + b[1];
|
|
1920
|
+
if ("$$" !== m) if ("on" === m) {
|
|
1921
|
+
const C = {}, w = "$$" + b;
|
|
1922
|
+
let S = b.slice(2);
|
|
1923
|
+
var g = Bn(S);
|
|
1924
|
+
if (Hn(S) && (S = S.slice(0, -7), C.capture = !0), !g && p) {
|
|
1925
|
+
if (null != E) continue;
|
|
1926
|
+
e.removeEventListener(S, f[w], C), f[w] = null;
|
|
1927
|
+
}
|
|
1928
|
+
if (g) Tn(S, e, E), Nn([S]);
|
|
1929
|
+
else if (null != E) {
|
|
1930
|
+
function k(e) {
|
|
1931
|
+
f[b].call(this, e);
|
|
1932
|
+
}
|
|
1933
|
+
f[w] = On(S, e, k, C);
|
|
1934
|
+
}
|
|
1935
|
+
} else if ("style" === b) Or(e, b, E);
|
|
1936
|
+
else if ("autofocus" === b) Ct(e, Boolean(E));
|
|
1937
|
+
else if (l || "__value" !== b && ("value" !== b || null == E)) if ("selected" === b && d) kr(e, E);
|
|
1938
|
+
else {
|
|
1939
|
+
var _ = b;
|
|
1940
|
+
u || (_ = Gn(_));
|
|
1941
|
+
var y = "defaultValue" === _ || "defaultChecked" === _;
|
|
1942
|
+
if (null != E || l || y) y || v.includes(_) && (l || "string" != typeof E) ? (e[_] = E, _ in a && (a[_] = t)) : "function" != typeof E && Or(e, _, E);
|
|
1943
|
+
else if (a[b] = null, "value" === _ || "checked" === _) {
|
|
1944
|
+
let O = e;
|
|
1945
|
+
const I = void 0 === n;
|
|
1946
|
+
if ("value" === _) {
|
|
1947
|
+
let T = O.defaultValue;
|
|
1948
|
+
O.removeAttribute(_), O.defaultValue = T, O.value = O.__value = I ? T : null;
|
|
1949
|
+
} else {
|
|
1950
|
+
let N = O.defaultChecked;
|
|
1951
|
+
O.removeAttribute(_), O.defaultChecked = N, O.checked = !!I && N;
|
|
1952
|
+
}
|
|
1953
|
+
} else e.removeAttribute(b);
|
|
1954
|
+
}
|
|
1955
|
+
else e.value = e.__value = E;
|
|
1956
|
+
}
|
|
1957
|
+
} else hr(e, E, n?.[gr], r[gr]), f[b] = E, f[gr] = r[gr];
|
|
1958
|
+
else fr(e, "http://www.w3.org/1999/xhtml" === e.namespaceURI, E, i, n?.[mr], r[mr]), f[b] = E, f[mr] = r[mr];
|
|
1959
|
+
}
|
|
1960
|
+
return c && B(!0), f;
|
|
1961
|
+
}(e, i, f, s, a, l);
|
|
1962
|
+
c && u && "value" in f && vr(e, f.value);
|
|
1963
|
+
for (let e of Object.getOwnPropertySymbols(o)) f[e] || zt(o[e]);
|
|
1964
|
+
for (let t of Object.getOwnPropertySymbols(f)) {
|
|
1965
|
+
var h = f[t];
|
|
1966
|
+
"@attach" !== t.description || i && h === i[t] || (o[t] && zt(o[t]), o[t] = Rt(() => or(e, () => h))), d[t] = h;
|
|
1967
|
+
}
|
|
1968
|
+
i = d;
|
|
1969
|
+
}), u) {
|
|
1970
|
+
var f = e;
|
|
1971
|
+
Dt(() => {
|
|
1972
|
+
vr(f, i.value, !0), function(e) {
|
|
1973
|
+
var t = new MutationObserver(() => {
|
|
1974
|
+
vr(e, e.__value);
|
|
1975
|
+
});
|
|
1976
|
+
t.observe(e, {
|
|
1977
|
+
childList: !0,
|
|
1978
|
+
subtree: !0,
|
|
1979
|
+
attributes: !0,
|
|
1980
|
+
attributeFilter: ["value"]
|
|
1981
|
+
}), Tt(() => {
|
|
1982
|
+
t.disconnect();
|
|
1983
|
+
});
|
|
1984
|
+
}(f);
|
|
1985
|
+
});
|
|
1986
|
+
}
|
|
1987
|
+
c = !0;
|
|
1988
|
+
});
|
|
1989
|
+
}
|
|
1990
|
+
function Tr(e) {
|
|
1991
|
+
return e[D] ??= {
|
|
1992
|
+
[_r]: e.nodeName.includes("-"),
|
|
1993
|
+
[yr]: "http://www.w3.org/1999/xhtml" === e.namespaceURI
|
|
1994
|
+
};
|
|
1995
|
+
}
|
|
1996
|
+
var Nr = /* @__PURE__ */ new Map();
|
|
1997
|
+
function Ar(e) {
|
|
1998
|
+
var t, n = e.getAttribute("is") || e.nodeName, r = Nr.get(n);
|
|
1999
|
+
if (r) return r;
|
|
2000
|
+
Nr.set(n, r = []);
|
|
2001
|
+
for (var i = e, o = Element.prototype; o !== i;) {
|
|
2002
|
+
for (var s in t = u(i)) t[s].set && "innerHTML" !== s && "textContent" !== s && "innerText" !== s && r.push(s);
|
|
2003
|
+
i = d(i);
|
|
2004
|
+
}
|
|
2005
|
+
return r;
|
|
2006
|
+
}
|
|
2007
|
+
function Dr(e, t) {
|
|
2008
|
+
return e === t || e?.[T] === t;
|
|
2009
|
+
}
|
|
2010
|
+
function Lr(e = {}, t, n, r) {
|
|
2011
|
+
var i = Z.r, o = en;
|
|
2012
|
+
return Dt(() => {
|
|
2013
|
+
var s, a;
|
|
2014
|
+
return Lt(() => {
|
|
2015
|
+
s = a, a = r?.() || [], Cn(() => {
|
|
2016
|
+
Dr(n(...a), e) || (t(e, ...a), s && Dr(n(...s), e) && t(null, ...s));
|
|
2017
|
+
});
|
|
2018
|
+
}), () => {
|
|
2019
|
+
let r = o;
|
|
2020
|
+
for (; r !== i && null !== r.parent && 33554432 & r.parent.f;) r = r.parent;
|
|
2021
|
+
const s = r.teardown;
|
|
2022
|
+
r.teardown = () => {
|
|
2023
|
+
a && Dr(n(...a), e) && t(null, ...a), s?.();
|
|
2024
|
+
};
|
|
2025
|
+
};
|
|
2026
|
+
}), e;
|
|
2027
|
+
}
|
|
2028
|
+
var Pr = {
|
|
2029
|
+
get(e, t) {
|
|
2030
|
+
if (!e.exclude.includes(t)) return e.props[t];
|
|
2031
|
+
},
|
|
2032
|
+
set: (e, t) => !1,
|
|
2033
|
+
getOwnPropertyDescriptor(e, t) {
|
|
2034
|
+
if (!e.exclude.includes(t)) return t in e.props ? {
|
|
2035
|
+
enumerable: !0,
|
|
2036
|
+
configurable: !0,
|
|
2037
|
+
value: e.props[t]
|
|
2038
|
+
} : void 0;
|
|
2039
|
+
},
|
|
2040
|
+
has: (e, t) => !e.exclude.includes(t) && t in e.props,
|
|
2041
|
+
ownKeys: (e) => Reflect.ownKeys(e.props).filter((t) => !e.exclude.includes(t))
|
|
2042
|
+
};
|
|
2043
|
+
var Mr = {
|
|
2044
|
+
get(e, t) {
|
|
2045
|
+
let n = e.props.length;
|
|
2046
|
+
for (; n--;) {
|
|
2047
|
+
let r = e.props[n];
|
|
2048
|
+
if (v(r) && (r = r()), "object" == typeof r && null !== r && t in r) return r[t];
|
|
2049
|
+
}
|
|
2050
|
+
},
|
|
2051
|
+
set(e, t, n) {
|
|
2052
|
+
let r = e.props.length;
|
|
2053
|
+
for (; r--;) {
|
|
2054
|
+
let i = e.props[r];
|
|
2055
|
+
v(i) && (i = i());
|
|
2056
|
+
const o = l(i, t);
|
|
2057
|
+
if (o && o.set) return o.set(n), !0;
|
|
2058
|
+
}
|
|
2059
|
+
return !1;
|
|
2060
|
+
},
|
|
2061
|
+
getOwnPropertyDescriptor(e, t) {
|
|
2062
|
+
let n = e.props.length;
|
|
2063
|
+
for (; n--;) {
|
|
2064
|
+
let r = e.props[n];
|
|
2065
|
+
if (v(r) && (r = r()), "object" == typeof r && null !== r && t in r) {
|
|
2066
|
+
const e = l(r, t);
|
|
2067
|
+
return e && !e.configurable && (e.configurable = !0), e;
|
|
2068
|
+
}
|
|
2069
|
+
}
|
|
2070
|
+
},
|
|
2071
|
+
has(e, t) {
|
|
2072
|
+
if (t === T || t === N) return !1;
|
|
2073
|
+
for (let n of e.props) if (v(n) && (n = n()), null != n && t in n) return !0;
|
|
2074
|
+
return !1;
|
|
2075
|
+
},
|
|
2076
|
+
ownKeys(e) {
|
|
2077
|
+
const t = [];
|
|
2078
|
+
for (let n of e.props) if (v(n) && (n = n()), n) {
|
|
2079
|
+
for (const e in n) t.includes(e) || t.push(e);
|
|
2080
|
+
for (const e of Object.getOwnPropertySymbols(n)) t.includes(e) || t.push(e);
|
|
2081
|
+
}
|
|
2082
|
+
return t;
|
|
2083
|
+
}
|
|
2084
|
+
};
|
|
2085
|
+
function xr(...e) {
|
|
2086
|
+
return new Proxy({ props: e }, Mr);
|
|
2087
|
+
}
|
|
2088
|
+
function Rr(e, t, n, r) {
|
|
2089
|
+
var i = !Y || !!(2 & n), o = !!(8 & n), s = !!(16 & n), a = r, u = !0, c = void 0, f = () => s && i ? (c ??= He(r), yn(c)) : (u && (u = !1, a = s ? Cn(r) : r), a);
|
|
2090
|
+
let d;
|
|
2091
|
+
if (o) {
|
|
2092
|
+
var h = T in e || N in e;
|
|
2093
|
+
d = l(e, t)?.set ?? (h && t in e ? (n) => e[t] = n : void 0);
|
|
2094
|
+
}
|
|
2095
|
+
var v, p, m = !1;
|
|
2096
|
+
if (o ? [v, m] = function(e) {
|
|
2097
|
+
var t = pe;
|
|
2098
|
+
try {
|
|
2099
|
+
return pe = !1, [e(), pe];
|
|
2100
|
+
} finally {
|
|
2101
|
+
pe = t;
|
|
2102
|
+
}
|
|
2103
|
+
}(() => e[t]) : v = e[t], void 0 === v && void 0 !== r && (v = f(), d && (i && function() {
|
|
2104
|
+
throw new Error("https://svelte.dev/e/props_invalid_value");
|
|
2105
|
+
}(), d(v))), p = i ? () => {
|
|
2106
|
+
var n = e[t];
|
|
2107
|
+
return void 0 === n ? f() : (u = !0, n);
|
|
2108
|
+
} : () => {
|
|
2109
|
+
var n = e[t];
|
|
2110
|
+
return void 0 !== n && (a = void 0), void 0 === n ? a : n;
|
|
2111
|
+
}, i && !(4 & n)) return p;
|
|
2112
|
+
if (d) {
|
|
2113
|
+
var g = e.$$legacy;
|
|
2114
|
+
return function(e, t) {
|
|
2115
|
+
return arguments.length > 0 ? (i && t && !g && !m || d(t ? p() : e), e) : p();
|
|
2116
|
+
};
|
|
2117
|
+
}
|
|
2118
|
+
var _ = !1, y = (1 & n ? He : Ge)(() => (_ = !1, p()));
|
|
2119
|
+
o && yn(y);
|
|
2120
|
+
var b = en;
|
|
2121
|
+
return function(e, t) {
|
|
2122
|
+
if (arguments.length > 0) {
|
|
2123
|
+
const n = t ? yn(y) : i && o ? st(e) : e;
|
|
2124
|
+
return tt(y, n), _ = !0, void 0 !== a && (a = n), e;
|
|
2125
|
+
}
|
|
2126
|
+
return Wt && _ || 16384 & b.f ? y.v : yn(y);
|
|
2127
|
+
};
|
|
2128
|
+
}
|
|
2129
|
+
var zr = function(e) {
|
|
2130
|
+
return e.ON_SCENA_DESTROY = "scena:on-destroy", e.ON_VIDEO_READY = "video:on-ready", e.ON_VIDEO_PLAY = "video:on-play", e.ON_VIDEO_CAN_PLAY = "video:on-can-play", e.ON_VIDEO_PAUSE = "video:on-pause", e.ON_VIDEO_SEEKING = "video:on-seeking", e.ON_VIDEO_SEEKED = "video:on-seeked", e.ON_VIDEO_SEEK_START = "video:on-seek-start", e.ON_VIDEO_SEEK_END = "video:on-seek-end", e.ON_VIDEO_ENDED = "video:on-ended", e.ON_VIDEO_LOAD_START = "video:on-load-start", e.ON_VIDEO_LOADED = "video:on-loaded", e.ON_VIDEO_TIME_UPDATE = "video:on-time-update", e.ON_VIDEO_VOLUME_CHANGE = "video:on-volume-change", e.ON_VIDEO_STATE_CHANGE = "video:on-state-change", e.ON_VIDEO_WAITING = "video:on-waiting", e.ON_VIDEO_PROGRESSED = "video:on-progressed", e.ON_VIDEO_ERROR = "video:on-error", e.ON_VIDEO_CONTAINER_CLICK = "video-container:click", e.ON_CTA_CLICK = "cta:click", e.ON_CLOSE_CLICK = "close:click", e.ON_PREVIEW_START = "preview:start", e.ON_PREVIEW_STOP = "preview:stop", e.ON_VISIBILITY_SHOW = "visibility:show", e.ON_VISIBILITY_HIDE = "visibility:hide", e;
|
|
2131
|
+
}({});
|
|
2132
|
+
function Hr() {
|
|
2133
|
+
const e = /* @__PURE__ */ new Map();
|
|
2134
|
+
return {
|
|
2135
|
+
on: function(t, n) {
|
|
2136
|
+
e.has(t) || e.set(t, /* @__PURE__ */ new Set()), e.get(t)?.add(n);
|
|
2137
|
+
},
|
|
2138
|
+
off: function(t, n) {
|
|
2139
|
+
const r = e.get(t);
|
|
2140
|
+
r && r.delete(n);
|
|
2141
|
+
},
|
|
2142
|
+
emit: function(t, n) {
|
|
2143
|
+
const r = e.get(t);
|
|
2144
|
+
r && r.forEach((e) => e(n));
|
|
2145
|
+
},
|
|
2146
|
+
remove: function(t) {
|
|
2147
|
+
e.get(t)?.clear();
|
|
2148
|
+
},
|
|
2149
|
+
clear: function() {
|
|
2150
|
+
e.clear();
|
|
2151
|
+
}
|
|
2152
|
+
};
|
|
2153
|
+
}
|
|
2154
|
+
var [jr, Br] = Q();
|
|
2155
|
+
function Fr({ getIsHidden: e, getIsAnimated: t, getIsShownOnReady: n, classNames: r }) {
|
|
2156
|
+
const i = Fe(t), o = Fe(n), s = Fe(e);
|
|
2157
|
+
let a = Qe(!1), l = Qe(!1);
|
|
2158
|
+
var u = () => {
|
|
2159
|
+
yn(s) ? tt(l, !0) : tt(a, !0);
|
|
2160
|
+
};
|
|
2161
|
+
kt(), Ot(1048584, u);
|
|
2162
|
+
const c = Fe(() => yn(i) && !yn(s) && (yn(l) || yn(o))), f = Fe(() => yn(i) && yn(s) && yn(a)), d = Fe(() => [
|
|
2163
|
+
yn(s) && !yn(f) && r.hidden,
|
|
2164
|
+
yn(c) && r.in,
|
|
2165
|
+
yn(f) && r.out
|
|
2166
|
+
]);
|
|
2167
|
+
return {
|
|
2168
|
+
get isHidden() {
|
|
2169
|
+
return yn(s);
|
|
2170
|
+
},
|
|
2171
|
+
get hasShownAnimation() {
|
|
2172
|
+
return yn(c);
|
|
2173
|
+
},
|
|
2174
|
+
get hasHiddenAnimation() {
|
|
2175
|
+
return yn(f);
|
|
2176
|
+
},
|
|
2177
|
+
get classes() {
|
|
2178
|
+
return yn(d);
|
|
2179
|
+
}
|
|
2180
|
+
};
|
|
2181
|
+
}
|
|
2182
|
+
var Gr = function(e) {
|
|
2183
|
+
return e.XS = "xs", e.SM = "sm", e.MD = "md", e.LG = "lg", e.XL = "xl", e.XXL = "xxl", e;
|
|
2184
|
+
}({}), Ur = function(e) {
|
|
2185
|
+
return e.TOP_START = "top-start", e.TOP_CENTER = "top-center", e.TOP_END = "top-end", e.MIDDLE_START = "middle-start", e.MIDDLE_CENTER = "middle-center", e.MIDDLE_END = "middle-end", e.BOTTOM_START = "bottom-start", e.BOTTOM_CENTER = "bottom-center", e.BOTTOM_END = "bottom-end", e;
|
|
2186
|
+
}({}), Xr = function(e) {
|
|
2187
|
+
return e.STATIC = "static", e.RELATIVE = "relative", e.ABSOLUTE = "absolute", e.FIXED = "fixed", e;
|
|
2188
|
+
}({}), qr = function(e) {
|
|
2189
|
+
return e.CIRCLE = "circle", e.LANDSCAPE = "landscape", e.PORTRAIT = "portrait", e.SQUARE = "square", e;
|
|
2190
|
+
}({}), Kr = function(e) {
|
|
2191
|
+
return e.MIXED = "mixed", e;
|
|
2192
|
+
}({}), Wr = function(e) {
|
|
2193
|
+
return e.MENU = "menu", e.TREE = "tree", e.GRID = "grid", e.DIALOG = "dialog", e.LISTBOX = "listbox", e;
|
|
2194
|
+
}({}), Yr = function(e) {
|
|
2195
|
+
return e.RESPONSIVE = "responsive", e.PREVIEW = "preview", e;
|
|
2196
|
+
}({}), Zr = (e) => {
|
|
2197
|
+
if (e) return "string" == typeof e ? e : Object.entries(e).map(([e, t]) => {
|
|
2198
|
+
return `${n = e, n.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`)}: ${t}`;
|
|
2199
|
+
var n;
|
|
2200
|
+
}).join("; ") + ";";
|
|
2201
|
+
}, Jr = (e) => e?.getElements() ?? null, Qr = "undefined" != typeof window && "undefined" != typeof document, ei = (e) => {
|
|
2202
|
+
if ("object" != typeof e || null === e || Array.isArray(e)) return !1;
|
|
2203
|
+
const t = Object.getPrototypeOf(e);
|
|
2204
|
+
return t === Object.prototype || null === t;
|
|
2205
|
+
}, ti = (e) => {
|
|
2206
|
+
if (e instanceof Date) return new Date(e.getTime());
|
|
2207
|
+
if (e instanceof RegExp) return new RegExp(e.source, e.flags);
|
|
2208
|
+
if (e instanceof Map) return new Map([...e].map(([e, t]) => [ti(e), ti(t)]));
|
|
2209
|
+
if (e instanceof Set) return new Set([...e].map(ti));
|
|
2210
|
+
if (!ei(e)) return e;
|
|
2211
|
+
const t = {};
|
|
2212
|
+
for (const n of Object.keys(e)) {
|
|
2213
|
+
const r = e[n];
|
|
2214
|
+
Array.isArray(r) ? t[n] = r.map((e) => ti(e)) : t[n] = ti(r);
|
|
2215
|
+
}
|
|
2216
|
+
return t;
|
|
2217
|
+
};
|
|
2218
|
+
function ni(e, t) {
|
|
2219
|
+
if (null == t) return e;
|
|
2220
|
+
if (null == e) return t;
|
|
2221
|
+
const n = { ...e };
|
|
2222
|
+
for (const r of Object.keys(t)) {
|
|
2223
|
+
const i = t[r], o = e[r];
|
|
2224
|
+
ei(i) && ei(o) ? n[r] = ni(o, i) : n[r] = i;
|
|
2225
|
+
}
|
|
2226
|
+
return n;
|
|
2227
|
+
}
|
|
2228
|
+
var ri = Mn("<div><!></div>");
|
|
2229
|
+
Y = !0;
|
|
2230
|
+
var ii = Rn("<path d=\"M9.33337 5.33337V26.6667L26.6667 16L9.33337 5.33337Z\" fill=\"currentColor\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>");
|
|
2231
|
+
var oi = Rn("<path fill=\"currentColor\" d=\"M8 8.00008C8 7.64646 8.14048 7.30732 8.39052 7.05727C8.64057 6.80722 8.97971 6.66675 9.33333 6.66675H12C12.3536 6.66675 12.6928 6.80722 12.9428 7.05727C13.1929 7.30732 13.3333 7.64646 13.3333 8.00008V24.0001C13.3333 24.3537 13.1929 24.6928 12.9428 24.9429C12.6928 25.1929 12.3536 25.3334 12 25.3334H9.33333C8.97971 25.3334 8.64057 25.1929 8.39052 24.9429C8.14048 24.6928 8 24.3537 8 24.0001V8.00008Z\"></path><path fill=\"currentColor\" d=\"M18.6667 8.00008C18.6667 7.64646 18.8071 7.30732 19.0572 7.05727C19.3072 6.80722 19.6464 6.66675 20 6.66675H22.6667C23.0203 6.66675 23.3594 6.80722 23.6095 7.05727C23.8595 7.30732 24 7.64646 24 8.00008V24.0001C24 24.3537 23.8595 24.6928 23.6095 24.9429C23.3594 25.1929 23.0203 25.3334 22.6667 25.3334H20C19.6464 25.3334 19.3072 25.1929 19.0572 24.9429C18.8071 24.6928 18.6667 24.3537 18.6667 24.0001V8.00008Z\"></path><path d=\"M8 8.00008C8 7.64646 8.14048 7.30732 8.39052 7.05727C8.64057 6.80722 8.97971 6.66675 9.33333 6.66675H12C12.3536 6.66675 12.6928 6.80722 12.9428 7.05727C13.1929 7.30732 13.3333 7.64646 13.3333 8.00008V24.0001C13.3333 24.3537 13.1929 24.6928 12.9428 24.9429C12.6928 25.1929 12.3536 25.3334 12 25.3334H9.33333C8.97971 25.3334 8.64057 25.1929 8.39052 24.9429C8.14048 24.6928 8 24.3537 8 24.0001V8.00008Z\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"M18.6667 8.00008C18.6667 7.64646 18.8071 7.30732 19.0572 7.05727C19.3072 6.80722 19.6464 6.66675 20 6.66675H22.6667C23.0203 6.66675 23.3594 6.80722 23.6095 7.05727C23.8595 7.30732 24 7.64646 24 8.00008V24.0001C24 24.3537 23.8595 24.6928 23.6095 24.9429C23.3594 25.1929 23.0203 25.3334 22.6667 25.3334H20C19.6464 25.3334 19.3072 25.1929 19.0572 24.9429C18.8071 24.6928 18.6667 24.3537 18.6667 24.0001V8.00008Z\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>", 1);
|
|
2232
|
+
var si = Rn("<path d=\"M11 5.62254C11.414 5.93303 11.75 6.33564 11.9814 6.79849C12.2128 7.26134 12.3333 7.77172 12.3333 8.2892C12.3333 8.80669 12.2128 9.31706 11.9814 9.77992C11.75 10.2428 11.414 10.6454 11 10.9559\" fill=\"currentColor\"></path><path d=\"M5 10.2892H3.66667C3.48986 10.2892 3.32029 10.219 3.19526 10.0939C3.07024 9.96892 3 9.79935 3 9.62254V6.95587C3 6.77906 3.07024 6.60949 3.19526 6.48447C3.32029 6.35944 3.48986 6.28921 3.66667 6.28921H5L7.33333 3.28921C7.3916 3.17603 7.48843 3.08742 7.60633 3.0394C7.72422 2.99138 7.8554 2.98711 7.97617 3.02737C8.09693 3.06762 8.19932 3.14975 8.26482 3.2589C8.33032 3.36805 8.35463 3.49704 8.33333 3.62254V12.9559C8.35463 13.0814 8.33032 13.2104 8.26482 13.3195C8.19932 13.4287 8.09693 13.5108 7.97617 13.551C7.8554 13.5913 7.72422 13.587 7.60633 13.539C7.48843 13.491 7.3916 13.4024 7.33333 13.2892L5 10.2892Z\" fill=\"currentColor\"></path><path d=\"M11 5.62254C11.414 5.93303 11.75 6.33564 11.9814 6.79849C12.2128 7.26134 12.3333 7.77172 12.3333 8.2892C12.3333 8.80669 12.2128 9.31706 11.9814 9.77992C11.75 10.2428 11.414 10.6454 11 10.9559M5 10.2892H3.66667C3.48986 10.2892 3.32029 10.219 3.19526 10.0939C3.07024 9.96892 3 9.79935 3 9.62254V6.95587C3 6.77906 3.07024 6.60949 3.19526 6.48447C3.32029 6.35944 3.48986 6.28921 3.66667 6.28921H5L7.33333 3.28921C7.3916 3.17603 7.48843 3.08742 7.60633 3.0394C7.72422 2.99138 7.8554 2.98711 7.97617 3.02737C8.09693 3.06762 8.19932 3.14975 8.26482 3.2589C8.33032 3.36805 8.35463 3.49704 8.33333 3.62254V12.9559C8.35463 13.0814 8.33032 13.2104 8.26482 13.3195C8.19932 13.4287 8.09693 13.5108 7.97617 13.551C7.8554 13.5913 7.72422 13.587 7.60633 13.539C7.48843 13.491 7.3916 13.4024 7.33333 13.2892L5 10.2892Z\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>", 1);
|
|
2233
|
+
var ai = Rn("<path d=\"M4 9.9999H2.66667C2.48986 9.9999 2.32029 9.92966 2.19526 9.80464C2.07024 9.67961 2 9.51004 2 9.33323V6.66657C2 6.48976 2.07024 6.32019 2.19526 6.19516C2.32029 6.07014 2.48986 5.9999 2.66667 5.9999H4L6.33333 2.9999C6.3916 2.88672 6.48843 2.79812 6.60633 2.7501C6.72422 2.70207 6.8554 2.69781 6.97617 2.73806C7.09693 2.77832 7.19932 2.86044 7.26482 2.96959C7.33032 3.07875 7.35463 3.20773 7.33333 3.33323V12.6666C7.35463 12.7921 7.33032 12.9211 7.26482 13.0302C7.19932 13.1394 7.09693 13.2215 6.97617 13.2617C6.8554 13.302 6.72422 13.2977 6.60633 13.2497C6.48843 13.2017 6.3916 13.1131 6.33333 12.9999L4 9.9999Z\" fill=\"currentColor\"></path><path d=\"M10.6667 6.66656L13.3333 9.33323ZM13.3333 6.66656L10.6667 9.33323Z\" fill=\"currentColor\"></path><path d=\"M10.6667 6.66656L13.3333 9.33323M13.3333 6.66656L10.6667 9.33323M4 9.9999H2.66667C2.48986 9.9999 2.32029 9.92966 2.19526 9.80464C2.07024 9.67961 2 9.51004 2 9.33323V6.66657C2 6.48976 2.07024 6.32019 2.19526 6.19516C2.32029 6.07014 2.48986 5.9999 2.66667 5.9999H4L6.33333 2.9999C6.3916 2.88672 6.48843 2.79812 6.60633 2.7501C6.72422 2.70207 6.8554 2.69781 6.97617 2.73806C7.09693 2.77832 7.19932 2.86044 7.26482 2.96959C7.33032 3.07875 7.35463 3.20773 7.33333 3.33323V12.6666C7.35463 12.7921 7.33032 12.9211 7.26482 13.0302C7.19932 13.1394 7.09693 13.2215 6.97617 13.2617C6.8554 13.302 6.72422 13.2977 6.60633 13.2497C6.48843 13.2017 6.3916 13.1131 6.33333 12.9999L4 9.9999Z\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>", 1);
|
|
2234
|
+
var li = Rn("<path d=\"M4.45416 4.45404L11.3625 11.3624Z\" fill=\"currentColor\"></path><path d=\"M4.45416 11.3624L11.3625 4.45404Z\" fill=\"currentColor\"></path><path d=\"M4.45416 4.45404L11.3625 11.3624M4.45416 11.3624L11.3625 4.45404\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"bevel\"></path>", 1);
|
|
2235
|
+
var ui = function(e) {
|
|
2236
|
+
return e.MIXED = "mixed", e;
|
|
2237
|
+
}({}), ci = function(e) {
|
|
2238
|
+
return e.MENU = "menu", e.LISTBOX = "listbox", e.TREE = "tree", e.GRID = "grid", e.DIALOG = "dialog", e;
|
|
2239
|
+
}({}), fi = function(e) {
|
|
2240
|
+
return e.RECTANGLE = "rectangle", e.CIRCLE = "circle", e.SQUARE = "square", e;
|
|
2241
|
+
}({}), di = function(e) {
|
|
2242
|
+
return e.FILLED = "filled", e.TEXT = "text", e;
|
|
2243
|
+
}({}), hi = function(e) {
|
|
2244
|
+
return e.BUTTON = "button", e.SUBMIT = "submit", e.RESET = "reset", e;
|
|
2245
|
+
}({}), vi = Mn("<button><!></button>");
|
|
2246
|
+
function pi(e, t) {
|
|
2247
|
+
ee(t, !0);
|
|
2248
|
+
let n = Rr(t, "size", 19, () => Gr.MD), r = Rr(t, "shape", 19, () => fi.RECTANGLE), i = Rr(t, "variant", 19, () => di.FILLED), o = Rr(t, "type", 19, () => hi.BUTTON), s = new Proxy({
|
|
2249
|
+
props: t,
|
|
2250
|
+
exclude: [
|
|
2251
|
+
"$$slots",
|
|
2252
|
+
"$$events",
|
|
2253
|
+
"$$legacy",
|
|
2254
|
+
"id",
|
|
2255
|
+
"autosize",
|
|
2256
|
+
"size",
|
|
2257
|
+
"shape",
|
|
2258
|
+
"variant",
|
|
2259
|
+
"type",
|
|
2260
|
+
"aria",
|
|
2261
|
+
"customClasses",
|
|
2262
|
+
"customStyles",
|
|
2263
|
+
"children"
|
|
2264
|
+
]
|
|
2265
|
+
}, Pr);
|
|
2266
|
+
const a = Fe(() => [
|
|
2267
|
+
"rs-button",
|
|
2268
|
+
`rs-button--${r()}`,
|
|
2269
|
+
`rs-button--${i()}`,
|
|
2270
|
+
t.autosize ? "rs-button--autosize" : `rs-button--${n()}`,
|
|
2271
|
+
t.customClasses?.root
|
|
2272
|
+
]);
|
|
2273
|
+
let l = Qe(null);
|
|
2274
|
+
const u = Fe(() => Zr(t.customStyles?.root));
|
|
2275
|
+
var c = { getElements: function() {
|
|
2276
|
+
return { root: yn(l) };
|
|
2277
|
+
} }, f = vi();
|
|
2278
|
+
Ir(f, () => ({
|
|
2279
|
+
id: t.id,
|
|
2280
|
+
type: o(),
|
|
2281
|
+
class: yn(a),
|
|
2282
|
+
style: yn(u),
|
|
2283
|
+
"aria-label": t.aria?.ariaLabel,
|
|
2284
|
+
"aria-labelledby": t.aria?.ariaLabelledby,
|
|
2285
|
+
"aria-describedby": t.aria?.ariaDescribedby,
|
|
2286
|
+
"aria-disabled": t.aria?.ariaDisabled,
|
|
2287
|
+
"aria-expanded": t.aria?.ariaExpanded,
|
|
2288
|
+
"aria-controls": t.aria?.ariaControls,
|
|
2289
|
+
"aria-haspopup": t.aria?.ariaHaspopup,
|
|
2290
|
+
"aria-pressed": t.aria?.ariaPressed,
|
|
2291
|
+
...s
|
|
2292
|
+
}));
|
|
2293
|
+
var d = gt(f), h = (e) => {
|
|
2294
|
+
var n = $n();
|
|
2295
|
+
er(_t(n), () => t.children), zn(e, n);
|
|
2296
|
+
};
|
|
2297
|
+
return rr(d, (e) => {
|
|
2298
|
+
t.children && e(h);
|
|
2299
|
+
}), U(f), Lr(f, (e) => tt(l, e), () => yn(l)), zn(e, f), te(c);
|
|
2300
|
+
}
|
|
2301
|
+
var mi = Rn("<svg fill=\"none\" focusable=\"false\" aria-hidden=\"true\" xmlns=\"http://www.w3.org/2000/svg\"><!></svg>");
|
|
2302
|
+
function gi(e, t) {
|
|
2303
|
+
ee(t, !0);
|
|
2304
|
+
let n = Rr(t, "viewBox", 3, "0 0 16 16"), r = Rr(t, "size", 19, () => Gr.MD), i = Qe(null);
|
|
2305
|
+
const o = Fe(() => [
|
|
2306
|
+
"rs-icon",
|
|
2307
|
+
`rs-icon--${r()}`,
|
|
2308
|
+
t.customClasses?.root
|
|
2309
|
+
]), s = Fe(() => Zr(t.customStyles?.root));
|
|
2310
|
+
var a = { getElements: function() {
|
|
2311
|
+
return { root: yn(i) };
|
|
2312
|
+
} }, l = mi();
|
|
2313
|
+
return er(gt(l), () => t.children ?? p), U(l), Lr(l, (e) => tt(i, e), () => yn(i)), Pt(() => {
|
|
2314
|
+
Or(l, "id", t.id), fr(l, 0, ar(yn(o))), hr(l, yn(s)), Or(l, "viewBox", n());
|
|
2315
|
+
}), zn(e, l), te(a);
|
|
2316
|
+
}
|
|
2317
|
+
var _i = Mn("<div><!></div>");
|
|
2318
|
+
function yi(e, t) {
|
|
2319
|
+
ee(t, !0);
|
|
2320
|
+
let n = Rr(t, "size", 19, () => Gr.MD), r = Rr(t, "shape", 19, () => qr.CIRCLE), i = Rr(t, "aria", 19, () => ({ ariaLabel: "Close" }));
|
|
2321
|
+
const { eventEmitter: o, unmount: s } = jr();
|
|
2322
|
+
let a = Qe(null), l = Qe(null), u = Qe(null);
|
|
2323
|
+
const c = Fe(() => [
|
|
2324
|
+
"rs-close-button",
|
|
2325
|
+
`rs-close-button--${n()}`,
|
|
2326
|
+
`rs-close-button--${r()}`,
|
|
2327
|
+
t.customClasses?.root
|
|
2328
|
+
]), f = Fe(() => Zr(t.customStyles?.root));
|
|
2329
|
+
function d(e) {
|
|
2330
|
+
o.emit(zr.ON_CLOSE_CLICK, e), t.onClick ? t.onClick(e) : s();
|
|
2331
|
+
}
|
|
2332
|
+
var h = { getElements: function() {
|
|
2333
|
+
return {
|
|
2334
|
+
root: yn(a),
|
|
2335
|
+
button: Jr(yn(l)),
|
|
2336
|
+
cross: Jr(yn(u))
|
|
2337
|
+
};
|
|
2338
|
+
} }, v = _i(), p = gt(v), m = (e) => {
|
|
2339
|
+
var n = $n();
|
|
2340
|
+
ir(_t(n), () => t.customHtml.button), zn(e, n);
|
|
2341
|
+
}, g = (e) => {
|
|
2342
|
+
{
|
|
2343
|
+
let r = Fe(() => ({ root: t.customClasses?.button })), o = Fe(() => ({ root: t.customStyles?.button }));
|
|
2344
|
+
Lr(pi(e, {
|
|
2345
|
+
get aria() {
|
|
2346
|
+
return i();
|
|
2347
|
+
},
|
|
2348
|
+
autosize: !0,
|
|
2349
|
+
get shape() {
|
|
2350
|
+
return fi.CIRCLE;
|
|
2351
|
+
},
|
|
2352
|
+
get variant() {
|
|
2353
|
+
return di.FILLED;
|
|
2354
|
+
},
|
|
2355
|
+
get customClasses() {
|
|
2356
|
+
return yn(r);
|
|
2357
|
+
},
|
|
2358
|
+
get customStyles() {
|
|
2359
|
+
return yn(o);
|
|
2360
|
+
},
|
|
2361
|
+
onclick: d,
|
|
2362
|
+
children: (e, r) => {
|
|
2363
|
+
{
|
|
2364
|
+
let r = Fe(() => ({ root: t.customClasses?.cross })), i = Fe(() => ({ root: t.customStyles?.cross }));
|
|
2365
|
+
Lr(gi(e, {
|
|
2366
|
+
get size() {
|
|
2367
|
+
return n();
|
|
2368
|
+
},
|
|
2369
|
+
get customClasses() {
|
|
2370
|
+
return yn(r);
|
|
2371
|
+
},
|
|
2372
|
+
get customStyles() {
|
|
2373
|
+
return yn(i);
|
|
2374
|
+
},
|
|
2375
|
+
children: (e, t) => {
|
|
2376
|
+
(function(e) {
|
|
2377
|
+
var t = li();
|
|
2378
|
+
X(2), zn(e, t);
|
|
2379
|
+
})(e);
|
|
2380
|
+
},
|
|
2381
|
+
$$slots: { default: !0 }
|
|
2382
|
+
}), (e) => tt(u, e, !0), () => yn(u));
|
|
2383
|
+
}
|
|
2384
|
+
},
|
|
2385
|
+
$$slots: { default: !0 }
|
|
2386
|
+
}), (e) => tt(l, e, !0), () => yn(l));
|
|
2387
|
+
}
|
|
2388
|
+
};
|
|
2389
|
+
return rr(p, (e) => {
|
|
2390
|
+
t.customHtml?.button ? e(m) : e(g, -1);
|
|
2391
|
+
}), U(v), Lr(v, (e) => tt(a, e), () => yn(a)), Pt(() => {
|
|
2392
|
+
Or(v, "id", t.id), fr(v, 1, ar(yn(c))), hr(v, yn(f));
|
|
2393
|
+
}), zn(e, v), te(h);
|
|
2394
|
+
}
|
|
2395
|
+
var bi = function(e) {
|
|
2396
|
+
return e.INSIDE = "inside", e.OUTSIDE = "outside", e;
|
|
2397
|
+
}({}), Ei = Mn("<div><!></div>");
|
|
2398
|
+
function Ci(e, t) {
|
|
2399
|
+
ee(t, !0);
|
|
2400
|
+
let n = Rr(t, "text", 3, "Get in touch"), r = Rr(t, "size", 19, () => Gr.MD), i = Rr(t, "placement", 19, () => bi.INSIDE), o = Rr(t, "adaptive", 19, () => ({
|
|
2401
|
+
sizes: [Gr.XS, Gr.SM],
|
|
2402
|
+
placement: bi.OUTSIDE
|
|
2403
|
+
}));
|
|
2404
|
+
const { eventEmitter: s } = jr(), a = Fe(() => o() && o().sizes.includes(r()) ? o().placement : i());
|
|
2405
|
+
let l = Qe(null), u = Qe(null);
|
|
2406
|
+
const c = Fe(() => [
|
|
2407
|
+
"rs-cta-button",
|
|
2408
|
+
`rs-cta-button--${yn(a)}`,
|
|
2409
|
+
t.customClasses?.root
|
|
2410
|
+
]), f = Fe(() => Zr(t.customStyles?.root));
|
|
2411
|
+
function d(e) {
|
|
2412
|
+
s.emit(zr.ON_CTA_CLICK, e), t.onClick && t.onClick(e);
|
|
2413
|
+
}
|
|
2414
|
+
var h = { getElements: function() {
|
|
2415
|
+
return {
|
|
2416
|
+
root: yn(l),
|
|
2417
|
+
button: Jr(yn(u))
|
|
2418
|
+
};
|
|
2419
|
+
} }, v = Ei(), p = gt(v), m = (e) => {
|
|
2420
|
+
var n = $n();
|
|
2421
|
+
ir(_t(n), () => t.customHtml.button), zn(e, n);
|
|
2422
|
+
}, g = (e) => {
|
|
2423
|
+
{
|
|
2424
|
+
let i = Fe(() => ({ root: t.customClasses?.button })), o = Fe(() => ({ root: t.customStyles?.button }));
|
|
2425
|
+
Lr(pi(e, {
|
|
2426
|
+
get size() {
|
|
2427
|
+
return r();
|
|
2428
|
+
},
|
|
2429
|
+
get aria() {
|
|
2430
|
+
return t.aria;
|
|
2431
|
+
},
|
|
2432
|
+
get shape() {
|
|
2433
|
+
return fi.RECTANGLE;
|
|
2434
|
+
},
|
|
2435
|
+
get customClasses() {
|
|
2436
|
+
return yn(i);
|
|
2437
|
+
},
|
|
2438
|
+
get customStyles() {
|
|
2439
|
+
return yn(o);
|
|
2440
|
+
},
|
|
2441
|
+
onclick: d,
|
|
2442
|
+
children: (e, t) => {
|
|
2443
|
+
X();
|
|
2444
|
+
var r = Vn();
|
|
2445
|
+
Pt(() => function(e, t) {
|
|
2446
|
+
var n = null == t ? "" : "object" == typeof t ? `${t}` : t;
|
|
2447
|
+
n !== (e[M] ??= e.nodeValue) && (e[M] = n, e.nodeValue = `${n}`);
|
|
2448
|
+
}(r, n())), zn(e, r);
|
|
2449
|
+
},
|
|
2450
|
+
$$slots: { default: !0 }
|
|
2451
|
+
}), (e) => tt(u, e, !0), () => yn(u));
|
|
2452
|
+
}
|
|
2453
|
+
};
|
|
2454
|
+
return rr(p, (e) => {
|
|
2455
|
+
t.customHtml?.button ? e(m) : e(g, -1);
|
|
2456
|
+
}), U(v), Lr(v, (e) => tt(l, e), () => yn(l)), Pt(() => {
|
|
2457
|
+
Or(v, "id", t.id), fr(v, 1, ar(yn(c))), hr(v, yn(f));
|
|
2458
|
+
}), zn(e, v), te(h);
|
|
2459
|
+
}
|
|
2460
|
+
var wi = function(e) {
|
|
2461
|
+
return e.NONE = "none", e.AUTO = "auto", e.METADATA = "metadata", e;
|
|
2462
|
+
}({}), Si = function(e) {
|
|
2463
|
+
return e.ANONYMOUS = "anonymous", e.USE_CREDENTIALS = "use-credentials", e;
|
|
2464
|
+
}({}), ki = function(e) {
|
|
2465
|
+
return e.IDLE = "idle", e.LOADING = "loading", e.PLAYING = "playing", e.PAUSED = "paused", e.ENDED = "ended", e.ERROR = "error", e;
|
|
2466
|
+
}({}), [Oi, Ii] = Q();
|
|
2467
|
+
function Ti({ getVideoElement: e, eventEmitter: t }) {
|
|
2468
|
+
let n = Qe(st(ki.IDLE)), r = Qe(0), i = Qe(0), o = Qe(0), s = Qe(null), a = Qe(1), l = Qe(0), u = Qe(null), c = Qe(!1), f = Qe(!1), d = Qe(!1);
|
|
2469
|
+
function h() {
|
|
2470
|
+
const t = e();
|
|
2471
|
+
if (!t) throw new Error("Video element is not available");
|
|
2472
|
+
return t;
|
|
2473
|
+
}
|
|
2474
|
+
function v(e, r) {
|
|
2475
|
+
yn(n) !== e && (tt(n, e, !0), t.emit(zr.ON_VIDEO_STATE_CHANGE, {
|
|
2476
|
+
state: yn(n),
|
|
2477
|
+
event: r
|
|
2478
|
+
}));
|
|
2479
|
+
}
|
|
2480
|
+
function p(e) {
|
|
2481
|
+
yn(d) !== e && tt(d, e, !0);
|
|
2482
|
+
}
|
|
2483
|
+
function m(e) {
|
|
2484
|
+
yn(f) !== e && tt(f, e, !0);
|
|
2485
|
+
}
|
|
2486
|
+
async function g() {
|
|
2487
|
+
const e = h();
|
|
2488
|
+
try {
|
|
2489
|
+
await e.play();
|
|
2490
|
+
} catch (e) {
|
|
2491
|
+
t.emit(zr.ON_VIDEO_ERROR, {
|
|
2492
|
+
state: yn(n),
|
|
2493
|
+
error: e
|
|
2494
|
+
});
|
|
2495
|
+
}
|
|
2496
|
+
}
|
|
2497
|
+
function _() {
|
|
2498
|
+
h().pause();
|
|
2499
|
+
}
|
|
2500
|
+
function y() {
|
|
2501
|
+
null !== yn(s) && (cancelAnimationFrame(yn(s)), tt(s, null));
|
|
2502
|
+
}
|
|
2503
|
+
function b() {
|
|
2504
|
+
const t = e();
|
|
2505
|
+
if (t) {
|
|
2506
|
+
tt(r, isFinite(t.currentTime) ? t.currentTime : 0, !0), tt(o, t.duration > 0 ? yn(r) / t.duration : 0, !0);
|
|
2507
|
+
const e = t.buffered && t.buffered.length > 0 ? t.buffered.end(t.buffered.length - 1) : 0;
|
|
2508
|
+
tt(l, t.duration > 0 ? e / t.duration : 0, !0), tt(s, requestAnimationFrame(b), !0);
|
|
2509
|
+
}
|
|
2510
|
+
}
|
|
2511
|
+
return nr(() => {
|
|
2512
|
+
y();
|
|
2513
|
+
}), {
|
|
2514
|
+
get state() {
|
|
2515
|
+
return yn(n);
|
|
2516
|
+
},
|
|
2517
|
+
get currentTime() {
|
|
2518
|
+
return yn(r);
|
|
2519
|
+
},
|
|
2520
|
+
get duration() {
|
|
2521
|
+
return yn(i);
|
|
2522
|
+
},
|
|
2523
|
+
get progress() {
|
|
2524
|
+
return yn(o);
|
|
2525
|
+
},
|
|
2526
|
+
get progressAnimationFrameId() {
|
|
2527
|
+
return yn(s);
|
|
2528
|
+
},
|
|
2529
|
+
get volume() {
|
|
2530
|
+
return yn(a);
|
|
2531
|
+
},
|
|
2532
|
+
get buffer() {
|
|
2533
|
+
return yn(l);
|
|
2534
|
+
},
|
|
2535
|
+
get buffered() {
|
|
2536
|
+
return yn(u);
|
|
2537
|
+
},
|
|
2538
|
+
get isBuffering() {
|
|
2539
|
+
return yn(d);
|
|
2540
|
+
},
|
|
2541
|
+
get isSeeking() {
|
|
2542
|
+
return yn(f);
|
|
2543
|
+
},
|
|
2544
|
+
get isMuted() {
|
|
2545
|
+
return yn(c);
|
|
2546
|
+
},
|
|
2547
|
+
play: g,
|
|
2548
|
+
pause: _,
|
|
2549
|
+
stop: function() {
|
|
2550
|
+
const e = h();
|
|
2551
|
+
e.pause(), e.currentTime = 0, y();
|
|
2552
|
+
},
|
|
2553
|
+
seek: function(e) {
|
|
2554
|
+
const t = h();
|
|
2555
|
+
t.currentTime = Math.max(0, Math.min(t.duration || 0, e));
|
|
2556
|
+
},
|
|
2557
|
+
mute: function() {
|
|
2558
|
+
h().muted = !0;
|
|
2559
|
+
},
|
|
2560
|
+
unmute: function() {
|
|
2561
|
+
h().muted = !1;
|
|
2562
|
+
},
|
|
2563
|
+
toggleMute: function() {
|
|
2564
|
+
const e = h();
|
|
2565
|
+
e.muted = !e.muted;
|
|
2566
|
+
},
|
|
2567
|
+
setVolume: function(e) {
|
|
2568
|
+
h().volume = Math.max(0, Math.min(1, e));
|
|
2569
|
+
},
|
|
2570
|
+
handleLoadedMetadata: function(r) {
|
|
2571
|
+
const o = e();
|
|
2572
|
+
p(!1), o && (tt(i, isFinite(o.duration) ? o.duration : 0, !0), tt(a, o.volume, !0), tt(c, o.muted, !0)), t.emit(zr.ON_VIDEO_READY, {
|
|
2573
|
+
state: yn(n),
|
|
2574
|
+
event: r
|
|
2575
|
+
});
|
|
2576
|
+
},
|
|
2577
|
+
handlePlay: function(e) {
|
|
2578
|
+
p(!1), v(ki.PLAYING, e), t.emit(zr.ON_VIDEO_PLAY, {
|
|
2579
|
+
state: yn(n),
|
|
2580
|
+
event: e
|
|
2581
|
+
}), tt(s, requestAnimationFrame(b), !0);
|
|
2582
|
+
},
|
|
2583
|
+
handlePause: function(e) {
|
|
2584
|
+
v(ki.PAUSED, e), t.emit(zr.ON_VIDEO_PAUSE, {
|
|
2585
|
+
state: yn(n),
|
|
2586
|
+
event: e
|
|
2587
|
+
});
|
|
2588
|
+
},
|
|
2589
|
+
handleSeeking: function(e) {
|
|
2590
|
+
t.emit(zr.ON_VIDEO_SEEKING, {
|
|
2591
|
+
state: yn(n),
|
|
2592
|
+
event: e
|
|
2593
|
+
});
|
|
2594
|
+
},
|
|
2595
|
+
handleSeeked: function(e) {
|
|
2596
|
+
t.emit(zr.ON_VIDEO_SEEKED, {
|
|
2597
|
+
state: yn(n),
|
|
2598
|
+
event: e
|
|
2599
|
+
});
|
|
2600
|
+
},
|
|
2601
|
+
handleSeekStart: function(e, r) {
|
|
2602
|
+
m(!0), r === ki.PLAYING && _(), null === yn(s) && tt(s, requestAnimationFrame(b), !0), t.emit(zr.ON_VIDEO_SEEK_START, {
|
|
2603
|
+
state: yn(n),
|
|
2604
|
+
event: e
|
|
2605
|
+
});
|
|
2606
|
+
},
|
|
2607
|
+
handleSeekEnd: async function(e, r) {
|
|
2608
|
+
m(!1), v(r, e), r === ki.PLAYING ? await g() : y(), t.emit(zr.ON_VIDEO_SEEK_END, {
|
|
2609
|
+
state: yn(n),
|
|
2610
|
+
event: e
|
|
2611
|
+
});
|
|
2612
|
+
},
|
|
2613
|
+
handleEnded: function(r) {
|
|
2614
|
+
e()?.loop || y(), p(!1), v(ki.ENDED, r), t.emit(zr.ON_VIDEO_ENDED, {
|
|
2615
|
+
state: yn(n),
|
|
2616
|
+
event: r
|
|
2617
|
+
});
|
|
2618
|
+
},
|
|
2619
|
+
handleLoadStart: function(e) {
|
|
2620
|
+
v(ki.LOADING, e), t.emit(zr.ON_VIDEO_LOAD_START, {
|
|
2621
|
+
state: yn(n),
|
|
2622
|
+
event: e
|
|
2623
|
+
});
|
|
2624
|
+
},
|
|
2625
|
+
handleLoaded: function(e) {
|
|
2626
|
+
t.emit(zr.ON_VIDEO_LOADED, {
|
|
2627
|
+
state: yn(n),
|
|
2628
|
+
event: e
|
|
2629
|
+
});
|
|
2630
|
+
},
|
|
2631
|
+
handleWaiting: function(e) {
|
|
2632
|
+
p(!0), v(ki.LOADING, e), t.emit(zr.ON_VIDEO_WAITING, {
|
|
2633
|
+
state: yn(n),
|
|
2634
|
+
event: e
|
|
2635
|
+
});
|
|
2636
|
+
},
|
|
2637
|
+
handleCanPlay: function(r) {
|
|
2638
|
+
p(!1);
|
|
2639
|
+
const i = e();
|
|
2640
|
+
if (i) {
|
|
2641
|
+
if (yn(n) === ki.LOADING) v(i.paused ? ki.IDLE : ki.PLAYING, r);
|
|
2642
|
+
t.emit(zr.ON_VIDEO_CAN_PLAY, {
|
|
2643
|
+
state: yn(n),
|
|
2644
|
+
event: r
|
|
2645
|
+
});
|
|
2646
|
+
}
|
|
2647
|
+
},
|
|
2648
|
+
handleTimeUpdate: function(i) {
|
|
2649
|
+
const s = e();
|
|
2650
|
+
s && (tt(r, isFinite(s.currentTime) ? s.currentTime : 0, !0), tt(o, s.duration > 0 ? yn(r) / s.duration : 0, !0)), t.emit(zr.ON_VIDEO_TIME_UPDATE, {
|
|
2651
|
+
state: yn(n),
|
|
2652
|
+
event: i
|
|
2653
|
+
});
|
|
2654
|
+
},
|
|
2655
|
+
handleVolumeChange: function(r) {
|
|
2656
|
+
const i = e();
|
|
2657
|
+
i && (tt(a, i.volume, !0), tt(c, i.muted, !0)), t.emit(zr.ON_VIDEO_VOLUME_CHANGE, {
|
|
2658
|
+
state: yn(n),
|
|
2659
|
+
event: r
|
|
2660
|
+
});
|
|
2661
|
+
},
|
|
2662
|
+
handleProgress: function(r) {
|
|
2663
|
+
const i = e();
|
|
2664
|
+
if (i) {
|
|
2665
|
+
tt(u, i.buffered, !0);
|
|
2666
|
+
const e = i.buffered && i.buffered.length > 0 ? i.buffered.end(i.buffered.length - 1) : 0;
|
|
2667
|
+
tt(l, i.duration > 0 ? e / i.duration : 0, !0);
|
|
2668
|
+
}
|
|
2669
|
+
t.emit(zr.ON_VIDEO_PROGRESSED, {
|
|
2670
|
+
state: yn(n),
|
|
2671
|
+
event: r
|
|
2672
|
+
});
|
|
2673
|
+
},
|
|
2674
|
+
handleError: function(e) {
|
|
2675
|
+
y(), p(!1), v(ki.ERROR, e), t.emit(zr.ON_VIDEO_ERROR, {
|
|
2676
|
+
state: yn(n),
|
|
2677
|
+
event: e
|
|
2678
|
+
});
|
|
2679
|
+
}
|
|
2680
|
+
};
|
|
2681
|
+
}
|
|
2682
|
+
var Ni = Mn("<div><video><source/></video> <!></div>", 2);
|
|
2683
|
+
var Ai = Mn("<div role=\"button\" tabindex=\"0\"><!></div>");
|
|
2684
|
+
Nn(["click", "keydown"]);
|
|
2685
|
+
var Di = Mn("<div><span role=\"status\" aria-live=\"polite\" aria-atomic=\"true\" class=\"rs-sr-only\"><!></span> <!></div>");
|
|
2686
|
+
function Li(e, t) {
|
|
2687
|
+
ee(t, !0);
|
|
2688
|
+
let n = Rr(t, "size", 19, () => Gr.MD), r = Rr(t, "aria", 19, () => ({
|
|
2689
|
+
play: { ariaLabel: "Play" },
|
|
2690
|
+
pause: { ariaLabel: "Pause" }
|
|
2691
|
+
}));
|
|
2692
|
+
const i = Oi(), o = Fe(() => !i.isSeeking);
|
|
2693
|
+
let s = Qe(null), a = Qe(null), l = Qe(null), u = Qe(null), c = Qe(null);
|
|
2694
|
+
const f = Fe(() => ["rs-video-controls", t.customClasses?.root]), d = Fe(() => Zr(t.customStyles?.root)), h = Fe(() => i.state), v = Fe(() => ki.PLAYING === yn(h)), p = Fe(() => [ki.IDLE, ki.PAUSED].includes(yn(h)));
|
|
2695
|
+
var m = { getElements: function() {
|
|
2696
|
+
return {
|
|
2697
|
+
root: yn(s),
|
|
2698
|
+
pauseButton: Jr(yn(a)),
|
|
2699
|
+
pauseIcon: Jr(yn(l)),
|
|
2700
|
+
playButton: Jr(yn(u)),
|
|
2701
|
+
playIcon: Jr(yn(c))
|
|
2702
|
+
};
|
|
2703
|
+
} }, g = $n(), _ = _t(g), y = (e) => {
|
|
2704
|
+
var o = Di(), h = gt(o), m = gt(h), g = (e) => {
|
|
2705
|
+
zn(e, Vn("Playing"));
|
|
2706
|
+
}, _ = (e) => {
|
|
2707
|
+
zn(e, Vn("Paused"));
|
|
2708
|
+
};
|
|
2709
|
+
rr(m, (e) => {
|
|
2710
|
+
yn(v) ? e(g) : yn(p) && e(_, 1);
|
|
2711
|
+
}), U(h);
|
|
2712
|
+
var y = yt(h, 2), b = (e) => {
|
|
2713
|
+
var o = $n(), s = _t(o), u = (e) => {
|
|
2714
|
+
var n = $n();
|
|
2715
|
+
ir(_t(n), () => t.customHtml.pause), zn(e, n);
|
|
2716
|
+
}, c = (e) => {
|
|
2717
|
+
Lr(pi(e, {
|
|
2718
|
+
get size() {
|
|
2719
|
+
return n();
|
|
2720
|
+
},
|
|
2721
|
+
get shape() {
|
|
2722
|
+
return fi.CIRCLE;
|
|
2723
|
+
},
|
|
2724
|
+
get variant() {
|
|
2725
|
+
return di.TEXT;
|
|
2726
|
+
},
|
|
2727
|
+
get aria() {
|
|
2728
|
+
return r().pause;
|
|
2729
|
+
},
|
|
2730
|
+
customClasses: { root: "rs-video-controls__pause" },
|
|
2731
|
+
get onclick() {
|
|
2732
|
+
return i.pause;
|
|
2733
|
+
},
|
|
2734
|
+
children: (e, r) => {
|
|
2735
|
+
{
|
|
2736
|
+
let r = Fe(() => ({ root: t.customClasses?.pause })), i = Fe(() => ({ root: t.customStyles?.pause }));
|
|
2737
|
+
Lr(gi(e, {
|
|
2738
|
+
get size() {
|
|
2739
|
+
return n();
|
|
2740
|
+
},
|
|
2741
|
+
viewBox: "0 0 32 32",
|
|
2742
|
+
get customClasses() {
|
|
2743
|
+
return yn(r);
|
|
2744
|
+
},
|
|
2745
|
+
get customStyles() {
|
|
2746
|
+
return yn(i);
|
|
2747
|
+
},
|
|
2748
|
+
children: (e, t) => {
|
|
2749
|
+
(function(e) {
|
|
2750
|
+
var t = oi();
|
|
2751
|
+
X(3), zn(e, t);
|
|
2752
|
+
})(e);
|
|
2753
|
+
},
|
|
2754
|
+
$$slots: { default: !0 }
|
|
2755
|
+
}), (e) => tt(l, e, !0), () => yn(l));
|
|
2756
|
+
}
|
|
2757
|
+
},
|
|
2758
|
+
$$slots: { default: !0 }
|
|
2759
|
+
}), (e) => tt(a, e, !0), () => yn(a));
|
|
2760
|
+
};
|
|
2761
|
+
rr(s, (e) => {
|
|
2762
|
+
t.customHtml?.pause ? e(u) : e(c, -1);
|
|
2763
|
+
}), zn(e, o);
|
|
2764
|
+
}, E = (e) => {
|
|
2765
|
+
var o = $n(), s = _t(o), a = (e) => {
|
|
2766
|
+
var n = $n();
|
|
2767
|
+
ir(_t(n), () => t.customHtml.play), zn(e, n);
|
|
2768
|
+
}, l = (e) => {
|
|
2769
|
+
Lr(pi(e, {
|
|
2770
|
+
get size() {
|
|
2771
|
+
return n();
|
|
2772
|
+
},
|
|
2773
|
+
get shape() {
|
|
2774
|
+
return fi.CIRCLE;
|
|
2775
|
+
},
|
|
2776
|
+
get variant() {
|
|
2777
|
+
return di.TEXT;
|
|
2778
|
+
},
|
|
2779
|
+
get aria() {
|
|
2780
|
+
return r().play;
|
|
2781
|
+
},
|
|
2782
|
+
customClasses: { root: "rs-video-controls__play" },
|
|
2783
|
+
get onclick() {
|
|
2784
|
+
return i.play;
|
|
2785
|
+
},
|
|
2786
|
+
children: (e, r) => {
|
|
2787
|
+
{
|
|
2788
|
+
let r = Fe(() => ({ root: t.customClasses?.play })), i = Fe(() => ({ root: t.customStyles?.play }));
|
|
2789
|
+
Lr(gi(e, {
|
|
2790
|
+
get size() {
|
|
2791
|
+
return n();
|
|
2792
|
+
},
|
|
2793
|
+
viewBox: "0 0 32 32",
|
|
2794
|
+
get customClasses() {
|
|
2795
|
+
return yn(r);
|
|
2796
|
+
},
|
|
2797
|
+
get customStyles() {
|
|
2798
|
+
return yn(i);
|
|
2799
|
+
},
|
|
2800
|
+
children: (e, t) => {
|
|
2801
|
+
(function(e) {
|
|
2802
|
+
zn(e, ii());
|
|
2803
|
+
})(e);
|
|
2804
|
+
},
|
|
2805
|
+
$$slots: { default: !0 }
|
|
2806
|
+
}), (e) => tt(c, e, !0), () => yn(c));
|
|
2807
|
+
}
|
|
2808
|
+
},
|
|
2809
|
+
$$slots: { default: !0 }
|
|
2810
|
+
}), (e) => tt(u, e, !0), () => yn(u));
|
|
2811
|
+
};
|
|
2812
|
+
rr(s, (e) => {
|
|
2813
|
+
t.customHtml?.play ? e(a) : e(l, -1);
|
|
2814
|
+
}), zn(e, o);
|
|
2815
|
+
};
|
|
2816
|
+
rr(y, (e) => {
|
|
2817
|
+
yn(v) ? e(b) : yn(p) && e(E, 1);
|
|
2818
|
+
}), U(o), Lr(o, (e) => tt(s, e), () => yn(s)), Pt(() => {
|
|
2819
|
+
Or(o, "id", t.id), fr(o, 1, ar(yn(f))), hr(o, yn(d));
|
|
2820
|
+
}), zn(e, o);
|
|
2821
|
+
};
|
|
2822
|
+
return rr(_, (e) => {
|
|
2823
|
+
yn(o) && e(y);
|
|
2824
|
+
}), zn(e, g), te(m);
|
|
2825
|
+
}
|
|
2826
|
+
var Pi = Rn("<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z\" opacity=\".25\"></path><path d=\"M12,4a8,8,0,0,1,7.89,6.7A1.53,1.53,0,0,0,21.38,12h0a1.5,1.5,0,0,0,1.48-1.75,11,11,0,0,0-21.72,0A1.5,1.5,0,0,0,2.62,12h0a1.53,1.53,0,0,0,1.49-1.3A8,8,0,0,1,12,4Z\" class=\"rsl-line\"></path></svg>");
|
|
2827
|
+
var Mi = Mn("<div><!></div>");
|
|
2828
|
+
function xi(e, t) {
|
|
2829
|
+
ee(t, !0);
|
|
2830
|
+
let n = Rr(t, "size", 19, () => Gr.MD);
|
|
2831
|
+
const r = Oi();
|
|
2832
|
+
let i = Qe(null), o = Qe(null);
|
|
2833
|
+
const s = Fe(() => ["rs-video-loader", t.customClasses?.root]), a = Fe(() => Zr(t.customStyles?.root));
|
|
2834
|
+
var l = { getElements: function() {
|
|
2835
|
+
return {
|
|
2836
|
+
root: yn(i),
|
|
2837
|
+
loader: Jr(yn(o))
|
|
2838
|
+
};
|
|
2839
|
+
} }, u = Mi(), c = gt(u), f = (e) => {
|
|
2840
|
+
var r = $n(), i = _t(r), s = (e) => {
|
|
2841
|
+
var n = $n();
|
|
2842
|
+
ir(_t(n), () => t.customHtml.loader), zn(e, n);
|
|
2843
|
+
}, a = (e) => {
|
|
2844
|
+
{
|
|
2845
|
+
let r = Fe(() => ({ root: t.customClasses?.loader })), i = Fe(() => ({ root: t.customStyles?.loader }));
|
|
2846
|
+
Lr(function(e, t) {
|
|
2847
|
+
ee(t, !0);
|
|
2848
|
+
let n = Rr(t, "size", 19, () => Gr.MD), r = Qe(null);
|
|
2849
|
+
const i = Fe(() => [
|
|
2850
|
+
"rs-loader",
|
|
2851
|
+
`rs-loader--${n()}`,
|
|
2852
|
+
t.customClasses?.root
|
|
2853
|
+
]), o = Fe(() => Zr(t.customStyles?.root));
|
|
2854
|
+
var s = { getElements: function() {
|
|
2855
|
+
return { root: yn(r) };
|
|
2856
|
+
} }, a = Pi();
|
|
2857
|
+
return Lr(a, (e) => tt(r, e), () => yn(r)), Pt(() => {
|
|
2858
|
+
Or(a, "id", t.id), fr(a, 0, ar(yn(i))), hr(a, yn(o));
|
|
2859
|
+
}), zn(e, a), te(s);
|
|
2860
|
+
}(e, {
|
|
2861
|
+
get size() {
|
|
2862
|
+
return n();
|
|
2863
|
+
},
|
|
2864
|
+
get customClasses() {
|
|
2865
|
+
return yn(r);
|
|
2866
|
+
},
|
|
2867
|
+
get customStyles() {
|
|
2868
|
+
return yn(i);
|
|
2869
|
+
}
|
|
2870
|
+
}), (e) => tt(o, e, !0), () => yn(o));
|
|
2871
|
+
}
|
|
2872
|
+
};
|
|
2873
|
+
rr(i, (e) => {
|
|
2874
|
+
t.customHtml?.loader ? e(s) : e(a, -1);
|
|
2875
|
+
}), zn(e, r);
|
|
2876
|
+
};
|
|
2877
|
+
return rr(c, (e) => {
|
|
2878
|
+
r.state === ki.LOADING && e(f);
|
|
2879
|
+
}), U(u), Lr(u, (e) => tt(i, e), () => yn(i)), Pt(() => {
|
|
2880
|
+
Or(u, "id", t.id), fr(u, 1, ar(yn(s))), hr(u, yn(a));
|
|
2881
|
+
}), zn(e, u), te(l);
|
|
2882
|
+
}
|
|
2883
|
+
var Ri = {
|
|
2884
|
+
[Gr.XS]: {
|
|
2885
|
+
default: 3,
|
|
2886
|
+
hover: 5
|
|
2887
|
+
},
|
|
2888
|
+
[Gr.SM]: {
|
|
2889
|
+
default: 4,
|
|
2890
|
+
hover: 5
|
|
2891
|
+
},
|
|
2892
|
+
[Gr.MD]: {
|
|
2893
|
+
default: 4,
|
|
2894
|
+
hover: 6
|
|
2895
|
+
},
|
|
2896
|
+
[Gr.LG]: {
|
|
2897
|
+
default: 5,
|
|
2898
|
+
hover: 7
|
|
2899
|
+
},
|
|
2900
|
+
[Gr.XL]: {
|
|
2901
|
+
default: 6,
|
|
2902
|
+
hover: 8
|
|
2903
|
+
},
|
|
2904
|
+
[Gr.XXL]: {
|
|
2905
|
+
default: 7,
|
|
2906
|
+
hover: 9
|
|
2907
|
+
}
|
|
2908
|
+
}, Vi = {
|
|
2909
|
+
[Gr.XS]: {
|
|
2910
|
+
default: 4,
|
|
2911
|
+
hover: 6
|
|
2912
|
+
},
|
|
2913
|
+
[Gr.SM]: {
|
|
2914
|
+
default: 4,
|
|
2915
|
+
hover: 6
|
|
2916
|
+
},
|
|
2917
|
+
[Gr.MD]: {
|
|
2918
|
+
default: 4,
|
|
2919
|
+
hover: 8
|
|
2920
|
+
},
|
|
2921
|
+
[Gr.LG]: {
|
|
2922
|
+
default: 6,
|
|
2923
|
+
hover: 8
|
|
2924
|
+
},
|
|
2925
|
+
[Gr.XL]: {
|
|
2926
|
+
default: 8,
|
|
2927
|
+
hover: 10
|
|
2928
|
+
},
|
|
2929
|
+
[Gr.XXL]: {
|
|
2930
|
+
default: 8,
|
|
2931
|
+
hover: 12
|
|
2932
|
+
}
|
|
2933
|
+
};
|
|
2934
|
+
function $i({ getRootElement: e, getSize: t, getProgress: n, getCustomThickness: r, onSeek: i, onSeekStart: o, onSeekEnd: s }) {
|
|
2935
|
+
let a = Qe(!1), l = Qe(!1), u = Qe(!1), c = Qe(null);
|
|
2936
|
+
const f = Fe(() => r()[t()]), d = Fe(() => yn(a) ? yn(f).hover : yn(f).default), h = Fe(() => yn(u) ? "none" : void 0);
|
|
2937
|
+
function v(e, t) {
|
|
2938
|
+
const n = t.getBoundingClientRect(), r = (e.clientX - n.left) / n.width;
|
|
2939
|
+
return Math.max(0, Math.min(1, r));
|
|
2940
|
+
}
|
|
2941
|
+
function p(e) {
|
|
2942
|
+
e.currentTarget.releasePointerCapture(e.pointerId);
|
|
2943
|
+
}
|
|
2944
|
+
return Nt(() => {
|
|
2945
|
+
const e = n();
|
|
2946
|
+
let t, r;
|
|
2947
|
+
return null !== yn(c) && e < yn(c) && (tt(u, !0), t = requestAnimationFrame(() => {
|
|
2948
|
+
r = requestAnimationFrame(() => {
|
|
2949
|
+
tt(u, !1);
|
|
2950
|
+
});
|
|
2951
|
+
})), tt(c, e, !0), () => {
|
|
2952
|
+
cancelAnimationFrame(t), cancelAnimationFrame(r);
|
|
2953
|
+
};
|
|
2954
|
+
}), {
|
|
2955
|
+
get isFocused() {
|
|
2956
|
+
return yn(a);
|
|
2957
|
+
},
|
|
2958
|
+
get isDragging() {
|
|
2959
|
+
return yn(l);
|
|
2960
|
+
},
|
|
2961
|
+
get isDisabledTransition() {
|
|
2962
|
+
return yn(u);
|
|
2963
|
+
},
|
|
2964
|
+
get thickness() {
|
|
2965
|
+
return yn(d);
|
|
2966
|
+
},
|
|
2967
|
+
get transition() {
|
|
2968
|
+
return yn(h);
|
|
2969
|
+
},
|
|
2970
|
+
events: {
|
|
2971
|
+
onpointerup: function(e) {
|
|
2972
|
+
yn(l) && (tt(l, !1), s?.(e), p(e));
|
|
2973
|
+
},
|
|
2974
|
+
onpointermove: function(e) {
|
|
2975
|
+
if (!yn(l)) return;
|
|
2976
|
+
const t = v(e, e.currentTarget);
|
|
2977
|
+
i?.(t, e), e.preventDefault();
|
|
2978
|
+
},
|
|
2979
|
+
onpointerdown: function(t) {
|
|
2980
|
+
(function() {
|
|
2981
|
+
const t = e();
|
|
2982
|
+
if (!t) throw new Error("Progress root element is not available");
|
|
2983
|
+
return t;
|
|
2984
|
+
})().focus(), tt(l, !0), o?.(t), function(e) {
|
|
2985
|
+
e.currentTarget.setPointerCapture(e.pointerId);
|
|
2986
|
+
}(t);
|
|
2987
|
+
const n = v(t, t.currentTarget);
|
|
2988
|
+
i?.(n, t), t.preventDefault();
|
|
2989
|
+
},
|
|
2990
|
+
onpointercancel: function(e) {
|
|
2991
|
+
yn(l) && (tt(l, !1), s?.(e), p(e));
|
|
2992
|
+
},
|
|
2993
|
+
onmouseenter: function() {
|
|
2994
|
+
tt(a, !0);
|
|
2995
|
+
},
|
|
2996
|
+
onmouseleave: function() {
|
|
2997
|
+
yn(l) || tt(a, !1);
|
|
2998
|
+
}
|
|
2999
|
+
}
|
|
3000
|
+
};
|
|
3001
|
+
}
|
|
3002
|
+
function zi({ getRootElement: e, getSize: t, getBuffer: n, getProgress: r, getCustomThickness: i, onSeek: o, onSeekStart: s, onSeekEnd: a }) {
|
|
3003
|
+
let l = Qe(!1), u = Qe(!1), c = Qe(0), f = Qe(null), d = Qe(!1);
|
|
3004
|
+
const h = Fe(() => i()[t()]), v = Fe(() => yn(l) ? yn(h).hover : yn(h).default), p = Fe(() => Math.max(yn(h).default, yn(h).hover)), m = Fe(() => Math.max(3 * yn(p), 20)), g = Fe(() => (yn(c) - yn(p)) / 2), _ = Fe(() => yn(g) * Math.PI * 2), y = Fe(() => yn(_) * (1 - r())), b = Fe(() => yn(_) * (1 - n()));
|
|
3005
|
+
function E() {
|
|
3006
|
+
const t = e();
|
|
3007
|
+
if (!t) throw new Error("Progress root element is not available");
|
|
3008
|
+
return t;
|
|
3009
|
+
}
|
|
3010
|
+
function C(e, t, n) {
|
|
3011
|
+
const r = n.getBoundingClientRect(), i = r.width / 2, o = r.height / 2, s = e - r.left - i, a = t - r.top - o;
|
|
3012
|
+
let l = Math.atan2(a, s) + Math.PI / 2;
|
|
3013
|
+
return l < 0 && (l += 2 * Math.PI), l / (2 * Math.PI);
|
|
3014
|
+
}
|
|
3015
|
+
function w(e) {
|
|
3016
|
+
if (!yn(u)) return;
|
|
3017
|
+
if (yn(f) !== e.pointerId) return;
|
|
3018
|
+
tt(u, !1), tt(f, null), a?.(e);
|
|
3019
|
+
const t = e.currentTarget;
|
|
3020
|
+
"releasePointerCapture" in t && t.releasePointerCapture(e.pointerId);
|
|
3021
|
+
}
|
|
3022
|
+
const S = Fe(() => yn(d) ? "none" : void 0), k = new ResizeObserver((e) => {
|
|
3023
|
+
for (const t of e) tt(c, t.contentRect.width, !0);
|
|
3024
|
+
tt(d, !0), requestAnimationFrame(() => {
|
|
3025
|
+
requestAnimationFrame(() => {
|
|
3026
|
+
tt(d, !1);
|
|
3027
|
+
});
|
|
3028
|
+
});
|
|
3029
|
+
});
|
|
3030
|
+
return tr(() => {
|
|
3031
|
+
k.observe(E());
|
|
3032
|
+
}), nr(() => {
|
|
3033
|
+
k.disconnect();
|
|
3034
|
+
}), {
|
|
3035
|
+
get isFocused() {
|
|
3036
|
+
return yn(l);
|
|
3037
|
+
},
|
|
3038
|
+
get isDragging() {
|
|
3039
|
+
return yn(u);
|
|
3040
|
+
},
|
|
3041
|
+
get radialSize() {
|
|
3042
|
+
return yn(c);
|
|
3043
|
+
},
|
|
3044
|
+
get radialRadius() {
|
|
3045
|
+
return yn(g);
|
|
3046
|
+
},
|
|
3047
|
+
get radialCircumference() {
|
|
3048
|
+
return yn(_);
|
|
3049
|
+
},
|
|
3050
|
+
get radialProgressOffset() {
|
|
3051
|
+
return yn(y);
|
|
3052
|
+
},
|
|
3053
|
+
get radialBufferOffset() {
|
|
3054
|
+
return yn(b);
|
|
3055
|
+
},
|
|
3056
|
+
get thickness() {
|
|
3057
|
+
return yn(v);
|
|
3058
|
+
},
|
|
3059
|
+
get hitAreaThickness() {
|
|
3060
|
+
return yn(m);
|
|
3061
|
+
},
|
|
3062
|
+
get transition() {
|
|
3063
|
+
return yn(S);
|
|
3064
|
+
},
|
|
3065
|
+
events: {
|
|
3066
|
+
onclick: function(e) {
|
|
3067
|
+
if (yn(u)) return;
|
|
3068
|
+
const t = e.currentTarget;
|
|
3069
|
+
o?.(C(e.clientX, e.clientY, t), e);
|
|
3070
|
+
},
|
|
3071
|
+
onpointerdown: function(e) {
|
|
3072
|
+
E().focus(), tt(l, !0), tt(u, !0), tt(f, e.pointerId, !0), s?.(e);
|
|
3073
|
+
const t = e.currentTarget;
|
|
3074
|
+
"setPointerCapture" in t && t.setPointerCapture(e.pointerId), o?.(C(e.clientX, e.clientY, t), e), e.preventDefault();
|
|
3075
|
+
},
|
|
3076
|
+
onpointermove: function(e) {
|
|
3077
|
+
if (!yn(u)) return;
|
|
3078
|
+
if (yn(f) !== e.pointerId) return;
|
|
3079
|
+
const t = e.currentTarget;
|
|
3080
|
+
o?.(C(e.clientX, e.clientY, t), e), e.preventDefault();
|
|
3081
|
+
},
|
|
3082
|
+
onpointerup: w,
|
|
3083
|
+
onpointercancel: w,
|
|
3084
|
+
onmouseenter: function() {
|
|
3085
|
+
tt(l, !0);
|
|
3086
|
+
},
|
|
3087
|
+
onmouseleave: function() {
|
|
3088
|
+
yn(u) || tt(l, !1);
|
|
3089
|
+
}
|
|
3090
|
+
}
|
|
3091
|
+
};
|
|
3092
|
+
}
|
|
3093
|
+
var Hi = Rn("<circle fill=\"none\" stroke=\"rgba(255, 255, 255, 0.4)\" stroke-linecap=\"round\" pointer-events=\"none\"></circle>"), ji = Rn("<circle fill=\"none\" stroke=\"rgba(255, 255, 255, 0.2)\" pointer-events=\"none\"></circle><!><circle fill=\"none\" stroke=\"rgba(255, 255, 255, 1)\" stroke-linecap=\"round\" pointer-events=\"none\"></circle><circle></circle>", 1), Bi = Rn("<svg role=\"slider\" xmlns=\"http://www.w3.org/2000/svg\"><!></svg>");
|
|
3094
|
+
var Fi = Mn("<div></div>"), Gi = Mn("<div role=\"slider\"><div><!> <div></div></div></div>");
|
|
3095
|
+
function Ui(e, t) {
|
|
3096
|
+
ee(t, !0);
|
|
3097
|
+
let n = Rr(t, "size", 19, () => Gr.MD), r = Rr(t, "shape", 19, () => qr.CIRCLE), i = Rr(t, "hasBuffer", 3, !0), o = Qe(null);
|
|
3098
|
+
const s = Oi();
|
|
3099
|
+
let a = Qe(null);
|
|
3100
|
+
const l = [
|
|
3101
|
+
qr.PORTRAIT,
|
|
3102
|
+
qr.LANDSCAPE,
|
|
3103
|
+
qr.SQUARE
|
|
3104
|
+
], u = [qr.CIRCLE], c = Fe(() => l.includes(r())), f = Fe(() => u.includes(r()));
|
|
3105
|
+
function d(e) {
|
|
3106
|
+
const t = e * s.duration;
|
|
3107
|
+
s.seek(t);
|
|
3108
|
+
}
|
|
3109
|
+
function h(e) {
|
|
3110
|
+
tt(a, s.state, !0), s.handleSeekStart(e, yn(a));
|
|
3111
|
+
}
|
|
3112
|
+
async function v(e) {
|
|
3113
|
+
yn(a) && (await s.handleSeekEnd(e, yn(a)), tt(a, null));
|
|
3114
|
+
}
|
|
3115
|
+
var p = { getElements: function() {
|
|
3116
|
+
return { root: yn(o)?.getElements() ?? null };
|
|
3117
|
+
} }, m = $n(), g = _t(m), _ = (e) => {
|
|
3118
|
+
{
|
|
3119
|
+
let r = Fe(() => t.customThickness?.line);
|
|
3120
|
+
Lr(function(e, t) {
|
|
3121
|
+
ee(t, !0);
|
|
3122
|
+
let n, r, i = Rr(t, "size", 19, () => Gr.MD), o = Rr(t, "buffer", 3, 0), s = Rr(t, "progress", 3, 0), a = Rr(t, "aria", 19, () => ({ ariaLabel: "Progress" })), l = Qe(null), u = Qe(null);
|
|
3123
|
+
const c = Fe(() => [
|
|
3124
|
+
"rs-progress",
|
|
3125
|
+
"rs-progress--line",
|
|
3126
|
+
t.customClasses?.root
|
|
3127
|
+
]), f = Fe(() => Zr(t.customStyles?.root)), d = Fe(() => ["rs-progress__track", t.customClasses?.track]), h = Fe(() => Zr(t.customStyles?.track)), v = Fe(() => ["rs-progress__buffer", t.customClasses?.buffer]), p = Fe(() => Zr(t.customStyles?.buffer)), m = Fe(() => ["rs-progress__progress", t.customClasses?.progress]), g = Fe(() => Zr(t.customStyles?.progress)), _ = $i({
|
|
3128
|
+
getRootElement: () => yn(l),
|
|
3129
|
+
getProgress: () => s(),
|
|
3130
|
+
getSize: () => i(),
|
|
3131
|
+
onSeek: (e, n) => t.onSeek?.(e, n),
|
|
3132
|
+
onSeekStart: (e) => t.onSeekStart?.(e),
|
|
3133
|
+
onSeekEnd: (e) => t.onSeekEnd?.(e),
|
|
3134
|
+
getCustomThickness: () => ({
|
|
3135
|
+
...Ri,
|
|
3136
|
+
...t.customThickness
|
|
3137
|
+
})
|
|
3138
|
+
});
|
|
3139
|
+
var y = { getElements: function() {
|
|
3140
|
+
return {
|
|
3141
|
+
root: yn(l),
|
|
3142
|
+
track: n,
|
|
3143
|
+
buffer: yn(u),
|
|
3144
|
+
progress: r
|
|
3145
|
+
};
|
|
3146
|
+
} }, b = Gi();
|
|
3147
|
+
Or(b, "tabindex", 0), Or(b, "aria-valuemin", 0), Or(b, "aria-valuemax", 100);
|
|
3148
|
+
var E = gt(b);
|
|
3149
|
+
Ir(E, () => ({
|
|
3150
|
+
class: yn(d),
|
|
3151
|
+
style: yn(h),
|
|
3152
|
+
..._.events,
|
|
3153
|
+
[gr]: { height: `${_.thickness ?? ""}px` }
|
|
3154
|
+
}));
|
|
3155
|
+
var C = gt(E), w = (e) => {
|
|
3156
|
+
var t = Fi();
|
|
3157
|
+
let n;
|
|
3158
|
+
Lr(t, (e) => tt(u, e), () => yn(u)), Pt(() => {
|
|
3159
|
+
fr(t, 1, ar(yn(v))), n = hr(t, yn(p), n, { width: 100 * o() + "%" });
|
|
3160
|
+
}), zn(e, t);
|
|
3161
|
+
};
|
|
3162
|
+
rr(C, (e) => {
|
|
3163
|
+
t.hasBuffer && e(w);
|
|
3164
|
+
});
|
|
3165
|
+
var S = yt(C, 2);
|
|
3166
|
+
let k;
|
|
3167
|
+
return Lr(S, (e) => r = e, () => r), U(E), Lr(E, (e) => n = e, () => n), U(b), Lr(b, (e) => tt(l, e), () => yn(l)), Pt((e) => {
|
|
3168
|
+
Or(b, "id", t.id), fr(b, 1, ar(yn(c))), hr(b, yn(f)), Or(b, "aria-label", a().ariaLabel), Or(b, "aria-labelledby", a().ariaLabelledby), Or(b, "aria-describedby", a().ariaDescribedby), Or(b, "aria-valuenow", 100 * s()), Or(b, "aria-valuetext", `${e ?? ""}%`), fr(S, 1, ar(yn(m))), k = hr(S, yn(g), k, {
|
|
3169
|
+
width: 100 * s() + "%",
|
|
3170
|
+
transition: _.transition
|
|
3171
|
+
});
|
|
3172
|
+
}, [() => Math.round(100 * s())]), zn(e, b), te(y);
|
|
3173
|
+
}(e, {
|
|
3174
|
+
get id() {
|
|
3175
|
+
return t.id;
|
|
3176
|
+
},
|
|
3177
|
+
get size() {
|
|
3178
|
+
return n();
|
|
3179
|
+
},
|
|
3180
|
+
get buffer() {
|
|
3181
|
+
return s.buffer;
|
|
3182
|
+
},
|
|
3183
|
+
get progress() {
|
|
3184
|
+
return s.progress;
|
|
3185
|
+
},
|
|
3186
|
+
get customThickness() {
|
|
3187
|
+
return yn(r);
|
|
3188
|
+
},
|
|
3189
|
+
get hasBuffer() {
|
|
3190
|
+
return i();
|
|
3191
|
+
},
|
|
3192
|
+
onSeek: d,
|
|
3193
|
+
onSeekStart: h,
|
|
3194
|
+
onSeekEnd: v,
|
|
3195
|
+
get customClasses() {
|
|
3196
|
+
return t.customClasses;
|
|
3197
|
+
},
|
|
3198
|
+
get customStyles() {
|
|
3199
|
+
return t.customStyles;
|
|
3200
|
+
},
|
|
3201
|
+
get aria() {
|
|
3202
|
+
return t.aria;
|
|
3203
|
+
}
|
|
3204
|
+
}), (e) => tt(o, e, !0), () => yn(o));
|
|
3205
|
+
}
|
|
3206
|
+
}, y = (e) => {
|
|
3207
|
+
{
|
|
3208
|
+
let r = Fe(() => t.customThickness?.circle);
|
|
3209
|
+
Lr(function(e, t) {
|
|
3210
|
+
ee(t, !0);
|
|
3211
|
+
let n = Rr(t, "size", 19, () => Gr.MD), r = Rr(t, "buffer", 3, 0), i = Rr(t, "progress", 3, 0), o = Rr(t, "aria", 19, () => ({ ariaLabel: "Progress" })), s = Qe(null), a = Qe(null), l = Qe(null), u = Qe(null);
|
|
3212
|
+
const c = Fe(() => [
|
|
3213
|
+
"rs-progress",
|
|
3214
|
+
"rs-progress--circle",
|
|
3215
|
+
t.customClasses?.root
|
|
3216
|
+
]), f = Fe(() => Zr(t.customStyles?.root)), d = Fe(() => ["rs-progress__track", t.customClasses?.track]), h = Fe(() => Zr(t.customStyles?.track)), v = Fe(() => ["rs-progress__buffer", t.customClasses?.buffer]), p = Fe(() => Zr(t.customStyles?.buffer)), m = Fe(() => ["rs-progress__progress", t.customClasses?.progress]), g = Fe(() => Zr(t.customStyles?.progress)), _ = zi({
|
|
3217
|
+
getRootElement: () => yn(s),
|
|
3218
|
+
getProgress: () => i(),
|
|
3219
|
+
getBuffer: () => r(),
|
|
3220
|
+
getSize: () => n(),
|
|
3221
|
+
onSeek: (e, n) => t.onSeek?.(e, n),
|
|
3222
|
+
onSeekStart: (e) => t.onSeekStart?.(e),
|
|
3223
|
+
onSeekEnd: (e) => t.onSeekEnd?.(e),
|
|
3224
|
+
getCustomThickness: () => ({
|
|
3225
|
+
...Vi,
|
|
3226
|
+
...t.customThickness
|
|
3227
|
+
})
|
|
3228
|
+
});
|
|
3229
|
+
function y(e) {
|
|
3230
|
+
const t = _.transition;
|
|
3231
|
+
if (!t) return e;
|
|
3232
|
+
const n = `transition: ${t};`;
|
|
3233
|
+
return e ? `${n} ${e}` : n;
|
|
3234
|
+
}
|
|
3235
|
+
var b = { getElements: function() {
|
|
3236
|
+
return {
|
|
3237
|
+
root: yn(s),
|
|
3238
|
+
track: yn(a),
|
|
3239
|
+
buffer: yn(l),
|
|
3240
|
+
progress: yn(u)
|
|
3241
|
+
};
|
|
3242
|
+
} }, E = Bi();
|
|
3243
|
+
Or(E, "tabindex", 0), Or(E, "aria-valuemin", 0), Or(E, "aria-valuemax", 100);
|
|
3244
|
+
var C = gt(E), w = (e) => {
|
|
3245
|
+
var n = ji(), r = _t(n);
|
|
3246
|
+
Lr(r, (e) => tt(a, e), () => yn(a));
|
|
3247
|
+
var i = yt(r), o = (e) => {
|
|
3248
|
+
var t = Hi();
|
|
3249
|
+
Lr(t, (e) => tt(l, e), () => yn(l)), Pt((e) => {
|
|
3250
|
+
fr(t, 0, ar(yn(v))), hr(t, e), Or(t, "cx", _.radialSize / 2), Or(t, "cy", _.radialSize / 2), Or(t, "r", _.radialRadius), Or(t, "stroke-width", _.thickness), Or(t, "stroke-dasharray", _.radialCircumference), Or(t, "stroke-dashoffset", _.radialBufferOffset), Or(t, "transform", `rotate(-90 ${_.radialSize / 2} ${_.radialSize / 2})`);
|
|
3251
|
+
}, [() => y(yn(p))]), zn(e, t);
|
|
3252
|
+
};
|
|
3253
|
+
rr(i, (e) => {
|
|
3254
|
+
t.hasBuffer && e(o);
|
|
3255
|
+
});
|
|
3256
|
+
var s = yt(i);
|
|
3257
|
+
Lr(s, (e) => tt(u, e), () => yn(u)), Ir(yt(s), () => ({
|
|
3258
|
+
class: "rs-progress__hit-area",
|
|
3259
|
+
cx: _.radialSize / 2,
|
|
3260
|
+
cy: _.radialSize / 2,
|
|
3261
|
+
r: _.radialRadius,
|
|
3262
|
+
fill: "none",
|
|
3263
|
+
stroke: "transparent",
|
|
3264
|
+
"stroke-width": _.hitAreaThickness,
|
|
3265
|
+
..._.events
|
|
3266
|
+
})), Pt((e, t) => {
|
|
3267
|
+
fr(r, 0, ar(yn(d))), hr(r, e), Or(r, "cx", _.radialSize / 2), Or(r, "cy", _.radialSize / 2), Or(r, "r", _.radialRadius), Or(r, "stroke-width", _.thickness), fr(s, 0, ar(yn(m))), hr(s, t), Or(s, "cx", _.radialSize / 2), Or(s, "cy", _.radialSize / 2), Or(s, "r", _.radialRadius), Or(s, "stroke-width", _.thickness), Or(s, "stroke-dasharray", _.radialCircumference), Or(s, "stroke-dashoffset", _.radialProgressOffset), Or(s, "transform", `rotate(-90 ${_.radialSize / 2} ${_.radialSize / 2})`);
|
|
3268
|
+
}, [() => y(yn(h)), () => y(yn(g))]), zn(e, n);
|
|
3269
|
+
};
|
|
3270
|
+
return rr(C, (e) => {
|
|
3271
|
+
_.radialSize && e(w);
|
|
3272
|
+
}), U(E), Lr(E, (e) => tt(s, e), () => yn(s)), Pt((e) => {
|
|
3273
|
+
Or(E, "id", t.id), fr(E, 0, ar(yn(c))), hr(E, yn(f)), Or(E, "viewBox", `0 0 ${_.radialSize ?? ""} ${_.radialSize ?? ""}`), Or(E, "aria-label", o().ariaLabel), Or(E, "aria-labelledby", o().ariaLabelledby), Or(E, "aria-describedby", o().ariaDescribedby), Or(E, "aria-valuenow", 100 * i()), Or(E, "aria-valuetext", `${e ?? ""}%`);
|
|
3274
|
+
}, [() => Math.round(100 * i())]), zn(e, E), te(b);
|
|
3275
|
+
}(e, {
|
|
3276
|
+
get id() {
|
|
3277
|
+
return t.id;
|
|
3278
|
+
},
|
|
3279
|
+
get size() {
|
|
3280
|
+
return n();
|
|
3281
|
+
},
|
|
3282
|
+
get buffer() {
|
|
3283
|
+
return s.buffer;
|
|
3284
|
+
},
|
|
3285
|
+
get progress() {
|
|
3286
|
+
return s.progress;
|
|
3287
|
+
},
|
|
3288
|
+
get customThickness() {
|
|
3289
|
+
return yn(r);
|
|
3290
|
+
},
|
|
3291
|
+
get hasBuffer() {
|
|
3292
|
+
return i();
|
|
3293
|
+
},
|
|
3294
|
+
onSeek: d,
|
|
3295
|
+
onSeekStart: h,
|
|
3296
|
+
onSeekEnd: v,
|
|
3297
|
+
get customClasses() {
|
|
3298
|
+
return t.customClasses;
|
|
3299
|
+
},
|
|
3300
|
+
get customStyles() {
|
|
3301
|
+
return t.customStyles;
|
|
3302
|
+
},
|
|
3303
|
+
get aria() {
|
|
3304
|
+
return t.aria;
|
|
3305
|
+
}
|
|
3306
|
+
}), (e) => tt(o, e, !0), () => yn(o));
|
|
3307
|
+
}
|
|
3308
|
+
};
|
|
3309
|
+
return rr(g, (e) => {
|
|
3310
|
+
yn(c) ? e(_) : yn(f) && e(y, 1);
|
|
3311
|
+
}), zn(e, m), te(p);
|
|
3312
|
+
}
|
|
3313
|
+
var Xi = function(e) {
|
|
3314
|
+
return e.LINE = "line", e.CIRCLE = "circle", e;
|
|
3315
|
+
}({}), qi = Mn("<div><span role=\"status\" aria-live=\"polite\" aria-atomic=\"true\" class=\"rs-sr-only\"><!></span> <!></div>");
|
|
3316
|
+
function Ki(e, t) {
|
|
3317
|
+
ee(t, !0);
|
|
3318
|
+
let n = Rr(t, "size", 19, () => Gr.MD), r = Rr(t, "shape", 19, () => qr.CIRCLE), i = Rr(t, "aria", 19, () => ({
|
|
3319
|
+
mute: { ariaLabel: "Mute" },
|
|
3320
|
+
unmute: { ariaLabel: "Unmute" }
|
|
3321
|
+
}));
|
|
3322
|
+
const o = Oi(), s = Fe(() => !o.isSeeking);
|
|
3323
|
+
let a = Qe(null), l = Qe(null), u = Qe(null), c = Qe(null), f = Qe(null);
|
|
3324
|
+
const d = Fe(() => [
|
|
3325
|
+
"rs-video-volume",
|
|
3326
|
+
`rs-video-volume--${r()}`,
|
|
3327
|
+
t.customClasses?.root
|
|
3328
|
+
]), h = Fe(() => Zr(t.customStyles?.root));
|
|
3329
|
+
var v = { getElements: function() {
|
|
3330
|
+
return {
|
|
3331
|
+
root: yn(a),
|
|
3332
|
+
unmuteButton: Jr(yn(l)),
|
|
3333
|
+
unmuteIcon: Jr(yn(u)),
|
|
3334
|
+
muteButton: Jr(yn(c)),
|
|
3335
|
+
muteIcon: Jr(yn(f))
|
|
3336
|
+
};
|
|
3337
|
+
} }, p = $n(), m = _t(p), g = (e) => {
|
|
3338
|
+
var r = qi(), s = gt(r), v = gt(s), p = (e) => {
|
|
3339
|
+
zn(e, Vn("Muted"));
|
|
3340
|
+
}, m = (e) => {
|
|
3341
|
+
zn(e, Vn("Unmuted"));
|
|
3342
|
+
};
|
|
3343
|
+
rr(v, (e) => {
|
|
3344
|
+
o.isMuted ? e(p) : e(m, -1);
|
|
3345
|
+
}), U(s);
|
|
3346
|
+
var g = yt(s, 2), _ = (e) => {
|
|
3347
|
+
var r = $n(), s = _t(r), a = (e) => {
|
|
3348
|
+
var n = $n();
|
|
3349
|
+
ir(_t(n), () => t.customHtml.unmute), zn(e, n);
|
|
3350
|
+
}, c = (e) => {
|
|
3351
|
+
Lr(pi(e, {
|
|
3352
|
+
get size() {
|
|
3353
|
+
return n();
|
|
3354
|
+
},
|
|
3355
|
+
get shape() {
|
|
3356
|
+
return fi.CIRCLE;
|
|
3357
|
+
},
|
|
3358
|
+
get variant() {
|
|
3359
|
+
return di.TEXT;
|
|
3360
|
+
},
|
|
3361
|
+
get aria() {
|
|
3362
|
+
return i().unmute;
|
|
3363
|
+
},
|
|
3364
|
+
customClasses: { root: "rs-video-volume__unmute" },
|
|
3365
|
+
get onclick() {
|
|
3366
|
+
return o.unmute;
|
|
3367
|
+
},
|
|
3368
|
+
children: (e, r) => {
|
|
3369
|
+
{
|
|
3370
|
+
let r = Fe(() => ({ root: t.customClasses?.unmute })), i = Fe(() => ({ root: t.customStyles?.unmute }));
|
|
3371
|
+
Lr(gi(e, {
|
|
3372
|
+
get size() {
|
|
3373
|
+
return n();
|
|
3374
|
+
},
|
|
3375
|
+
get customClasses() {
|
|
3376
|
+
return yn(r);
|
|
3377
|
+
},
|
|
3378
|
+
get customStyles() {
|
|
3379
|
+
return yn(i);
|
|
3380
|
+
},
|
|
3381
|
+
children: (e, t) => {
|
|
3382
|
+
(function(e) {
|
|
3383
|
+
var t = ai();
|
|
3384
|
+
X(2), zn(e, t);
|
|
3385
|
+
})(e);
|
|
3386
|
+
},
|
|
3387
|
+
$$slots: { default: !0 }
|
|
3388
|
+
}), (e) => tt(u, e, !0), () => yn(u));
|
|
3389
|
+
}
|
|
3390
|
+
},
|
|
3391
|
+
$$slots: { default: !0 }
|
|
3392
|
+
}), (e) => tt(l, e, !0), () => yn(l));
|
|
3393
|
+
};
|
|
3394
|
+
rr(s, (e) => {
|
|
3395
|
+
t.customHtml?.unmute ? e(a) : e(c, -1);
|
|
3396
|
+
}), zn(e, r);
|
|
3397
|
+
}, y = (e) => {
|
|
3398
|
+
var n = $n();
|
|
3399
|
+
ir(_t(n), () => t.customHtml.mute), zn(e, n);
|
|
3400
|
+
}, b = (e) => {
|
|
3401
|
+
Lr(pi(e, {
|
|
3402
|
+
get size() {
|
|
3403
|
+
return n();
|
|
3404
|
+
},
|
|
3405
|
+
get shape() {
|
|
3406
|
+
return fi.CIRCLE;
|
|
3407
|
+
},
|
|
3408
|
+
get variant() {
|
|
3409
|
+
return di.TEXT;
|
|
3410
|
+
},
|
|
3411
|
+
get aria() {
|
|
3412
|
+
return i().mute;
|
|
3413
|
+
},
|
|
3414
|
+
customClasses: { root: "rs-video-volume__mute" },
|
|
3415
|
+
get onclick() {
|
|
3416
|
+
return o.mute;
|
|
3417
|
+
},
|
|
3418
|
+
children: (e, r) => {
|
|
3419
|
+
{
|
|
3420
|
+
let r = Fe(() => ({ root: t.customClasses?.mute })), i = Fe(() => ({ root: t.customStyles?.mute }));
|
|
3421
|
+
Lr(gi(e, {
|
|
3422
|
+
get size() {
|
|
3423
|
+
return n();
|
|
3424
|
+
},
|
|
3425
|
+
get customClasses() {
|
|
3426
|
+
return yn(r);
|
|
3427
|
+
},
|
|
3428
|
+
get customStyles() {
|
|
3429
|
+
return yn(i);
|
|
3430
|
+
},
|
|
3431
|
+
children: (e, t) => {
|
|
3432
|
+
(function(e) {
|
|
3433
|
+
var t = si();
|
|
3434
|
+
X(2), zn(e, t);
|
|
3435
|
+
})(e);
|
|
3436
|
+
},
|
|
3437
|
+
$$slots: { default: !0 }
|
|
3438
|
+
}), (e) => tt(f, e, !0), () => yn(f));
|
|
3439
|
+
}
|
|
3440
|
+
},
|
|
3441
|
+
$$slots: { default: !0 }
|
|
3442
|
+
}), (e) => tt(c, e, !0), () => yn(c));
|
|
3443
|
+
};
|
|
3444
|
+
rr(g, (e) => {
|
|
3445
|
+
o.isMuted ? e(_) : t.customHtml?.mute ? e(y, 1) : e(b, -1);
|
|
3446
|
+
}), U(r), Lr(r, (e) => tt(a, e), () => yn(a)), Pt(() => {
|
|
3447
|
+
Or(r, "id", t.id), fr(r, 1, ar(yn(d))), hr(r, yn(h));
|
|
3448
|
+
}), zn(e, r);
|
|
3449
|
+
};
|
|
3450
|
+
return rr(m, (e) => {
|
|
3451
|
+
yn(s) && e(g);
|
|
3452
|
+
}), zn(e, p), te(v);
|
|
3453
|
+
}
|
|
3454
|
+
var Wi = Mn("<!> <!> <!> <!>", 1), Yi = Mn("<!> <!> <!>", 1), Zi = Mn("<div><!></div>");
|
|
3455
|
+
function Ji(e, t) {
|
|
3456
|
+
let n, r, i;
|
|
3457
|
+
ee(t, !0);
|
|
3458
|
+
let o = Qe(null), s = Qe(null), a = Qe(null), l = Qe(null), u = Qe(null), c = Qe(null);
|
|
3459
|
+
Br({
|
|
3460
|
+
get eventEmitter() {
|
|
3461
|
+
return t.eventEmitter;
|
|
3462
|
+
},
|
|
3463
|
+
mount: () => t.mount(),
|
|
3464
|
+
unmount: () => t.unmount()
|
|
3465
|
+
});
|
|
3466
|
+
const f = Fe(() => t.config.visibility?.isAnimated ?? !0), d = Fe(() => t.config.visibility?.isHidden ?? !1), h = Fe(() => t.config.visibility?.isShownOnReady ?? !1), v = Fr({
|
|
3467
|
+
getIsAnimated: () => yn(f),
|
|
3468
|
+
getIsShownOnReady: () => yn(h),
|
|
3469
|
+
getIsHidden: () => yn(d),
|
|
3470
|
+
classNames: {
|
|
3471
|
+
hidden: "rs-container--hidden",
|
|
3472
|
+
in: "rs-pop-in",
|
|
3473
|
+
out: "rs-pop-out"
|
|
3474
|
+
}
|
|
3475
|
+
}), p = Fe(() => t.config.size), m = Fe(() => t.config.shape), g = Fe(() => ({
|
|
3476
|
+
...t.config.container,
|
|
3477
|
+
customClasses: {
|
|
3478
|
+
...t.config.container?.customClasses,
|
|
3479
|
+
root: [t.config.container?.customClasses?.root, v.classes]
|
|
3480
|
+
}
|
|
3481
|
+
})), _ = Fe(() => t.config.video), y = Fe(() => t.config.videoLoader), b = Fe(() => t.config.videoContainer), E = Fe(() => t.config.videoControls), C = Fe(() => t.config.videoProgress), w = Fe(() => t.config.videoVolume), S = Fe(() => t.config.closeButton), k = Fe(() => t.config.ctaButton), O = Fe(() => ["rs"]), I = {
|
|
3482
|
+
get controller() {
|
|
3483
|
+
return i.controller;
|
|
3484
|
+
},
|
|
3485
|
+
get components() {
|
|
3486
|
+
return {
|
|
3487
|
+
container: n,
|
|
3488
|
+
video: i,
|
|
3489
|
+
videoContainer: r,
|
|
3490
|
+
videoLoader: yn(o),
|
|
3491
|
+
videoProgress: yn(s),
|
|
3492
|
+
videoControls: yn(a),
|
|
3493
|
+
videoVolume: yn(l),
|
|
3494
|
+
closeButton: yn(u),
|
|
3495
|
+
ctaButton: yn(c)
|
|
3496
|
+
};
|
|
3497
|
+
},
|
|
3498
|
+
get events() {
|
|
3499
|
+
return t.eventEmitter;
|
|
3500
|
+
}
|
|
3501
|
+
};
|
|
3502
|
+
tr(() => {
|
|
3503
|
+
t.mount();
|
|
3504
|
+
}), nr(() => {
|
|
3505
|
+
t.eventEmitter.emit(zr.ON_SCENA_DESTROY), t.eventEmitter.clear();
|
|
3506
|
+
});
|
|
3507
|
+
var T = { api: I }, N = Zi();
|
|
3508
|
+
return Lr(function(e, t) {
|
|
3509
|
+
ee(t, !0);
|
|
3510
|
+
let n = Rr(t, "position", 19, () => Xr.FIXED), r = Rr(t, "placement", 19, () => Ur.BOTTOM_END), i = Qe(null);
|
|
3511
|
+
const o = [Xr.ABSOLUTE, Xr.FIXED], s = Fe(() => o.includes(n())), a = Fe(() => [
|
|
3512
|
+
"rs-container",
|
|
3513
|
+
`rs-container--${n()}`,
|
|
3514
|
+
yn(s) && `rs-container--${r()}`,
|
|
3515
|
+
t.customClasses?.root
|
|
3516
|
+
]), l = Fe(() => Zr(t.customStyles?.root));
|
|
3517
|
+
var u = { getElements: function() {
|
|
3518
|
+
return { root: yn(i) };
|
|
3519
|
+
} }, c = ri(), f = gt(c), d = (e) => {
|
|
3520
|
+
var n = $n();
|
|
3521
|
+
er(_t(n), () => t.children), zn(e, n);
|
|
3522
|
+
};
|
|
3523
|
+
return rr(f, (e) => {
|
|
3524
|
+
t.children && e(d);
|
|
3525
|
+
}), U(c), Lr(c, (e) => tt(i, e), () => yn(i)), Pt(() => {
|
|
3526
|
+
Or(c, "id", t.id), fr(c, 1, ar(yn(a))), hr(c, yn(l));
|
|
3527
|
+
}), zn(e, c), te(u);
|
|
3528
|
+
}(gt(N), xr(() => yn(g), {
|
|
3529
|
+
children: (e, t) => {
|
|
3530
|
+
var n = Yi(), f = _t(n);
|
|
3531
|
+
Lr(function(e, t) {
|
|
3532
|
+
ee(t, !0);
|
|
3533
|
+
let n = Rr(t, "size", 19, () => Gr.MD), r = Rr(t, "shape", 19, () => qr.CIRCLE);
|
|
3534
|
+
const { eventEmitter: i } = jr();
|
|
3535
|
+
let o = Qe(null);
|
|
3536
|
+
const s = Fe(() => [
|
|
3537
|
+
"rs-video-container",
|
|
3538
|
+
`rs-video-container--${n()}`,
|
|
3539
|
+
`rs-video-container--${r()}`,
|
|
3540
|
+
t.customClasses?.root
|
|
3541
|
+
]), a = Fe(() => Zr(t.customStyles?.root));
|
|
3542
|
+
var l = { getElements: function() {
|
|
3543
|
+
return { root: yn(o) };
|
|
3544
|
+
} }, u = Ai(), c = gt(u), f = (e) => {
|
|
3545
|
+
var n = $n();
|
|
3546
|
+
er(_t(n), () => t.children), zn(e, n);
|
|
3547
|
+
};
|
|
3548
|
+
return rr(c, (e) => {
|
|
3549
|
+
t.children && e(f);
|
|
3550
|
+
}), U(u), Lr(u, (e) => tt(o, e), () => yn(o)), Pt(() => {
|
|
3551
|
+
Or(u, "id", t.id), fr(u, 1, ar(yn(s))), hr(u, yn(a)), Or(u, "aria-label", t.aria?.ariaLabel), Or(u, "aria-labelledby", t.aria?.ariaLabelledby), Or(u, "aria-describedby", t.aria?.ariaDescribedby), Or(u, "aria-disabled", t.aria?.ariaDisabled), Or(u, "aria-expanded", t.aria?.ariaExpanded), Or(u, "aria-controls", t.aria?.ariaControls), Or(u, "aria-haspopup", t.aria?.ariaHaspopup), Or(u, "aria-pressed", t.aria?.ariaPressed);
|
|
3552
|
+
}), Tn("click", u, function(e) {
|
|
3553
|
+
i.emit(zr.ON_VIDEO_CONTAINER_CLICK, e);
|
|
3554
|
+
}), Tn("keydown", u, function(e) {
|
|
3555
|
+
"Enter" !== e.key && " " !== e.key || (e.preventDefault(), i.emit(zr.ON_VIDEO_CONTAINER_CLICK, e));
|
|
3556
|
+
}), zn(e, u), te(l);
|
|
3557
|
+
}(f, xr({
|
|
3558
|
+
get size() {
|
|
3559
|
+
return yn(p);
|
|
3560
|
+
},
|
|
3561
|
+
get shape() {
|
|
3562
|
+
return yn(m);
|
|
3563
|
+
}
|
|
3564
|
+
}, () => yn(b), {
|
|
3565
|
+
children: (e, t) => {
|
|
3566
|
+
Lr(function(e, t) {
|
|
3567
|
+
ee(t, !0);
|
|
3568
|
+
let n = Rr(t, "preload", 19, () => wi.METADATA), r = Rr(t, "crossorigin", 19, () => Si.ANONYMOUS), i = Rr(t, "autoplay", 3, !0), o = Rr(t, "playsinline", 3, !0), s = Rr(t, "loop", 3, !0), a = Rr(t, "muted", 3, !0), l = Rr(t, "controls", 3, !1), u = Rr(t, "volume", 3, 1), c = Rr(t, "startTime", 3, 0);
|
|
3569
|
+
const { eventEmitter: f } = jr();
|
|
3570
|
+
let d = Qe(null), h = Qe(null);
|
|
3571
|
+
const v = Ti({
|
|
3572
|
+
getVideoElement: () => yn(h),
|
|
3573
|
+
eventEmitter: f
|
|
3574
|
+
});
|
|
3575
|
+
Ii(v);
|
|
3576
|
+
const p = Fe(() => ["rs-video", t.customClasses?.root]), m = Fe(() => Zr(t.customStyles?.root)), g = Fe(() => ["rs-video__media", t.customClasses?.video]), _ = Fe(() => Zr(t.customStyles?.video));
|
|
3577
|
+
tr(() => {
|
|
3578
|
+
yn(h) && (yn(h).currentTime = c(), yn(h).volume = u(), yn(h).muted = a());
|
|
3579
|
+
});
|
|
3580
|
+
var y = {
|
|
3581
|
+
controller: v,
|
|
3582
|
+
getElements: function() {
|
|
3583
|
+
return {
|
|
3584
|
+
root: yn(d),
|
|
3585
|
+
video: yn(h)
|
|
3586
|
+
};
|
|
3587
|
+
}
|
|
3588
|
+
}, b = Ni(), E = gt(b), C = gt(E);
|
|
3589
|
+
U(E), Lr(E, (e) => tt(h, e), () => yn(h));
|
|
3590
|
+
var w = yt(E, 2), S = (e) => {
|
|
3591
|
+
var n = $n();
|
|
3592
|
+
er(_t(n), () => t.children), zn(e, n);
|
|
3593
|
+
};
|
|
3594
|
+
return rr(w, (e) => {
|
|
3595
|
+
t.children && e(S);
|
|
3596
|
+
}), U(b), Lr(b, (e) => tt(d, e), () => yn(d)), Pt(() => {
|
|
3597
|
+
Or(b, "id", t.id), fr(b, 1, ar(yn(p))), hr(b, yn(m)), fr(E, 1, ar(yn(g))), hr(E, yn(_)), Or(E, "poster", t.poster), Or(E, "preload", n()), E.autoplay = i(), E.loop = s(), E.muted = a(), E.controls = l(), E.playsInline = o(), Or(E, "crossorigin", r()), Or(C, "src", t.src), Or(C, "type", t.type), Or(C, "media", t.media);
|
|
3598
|
+
}), In("loadedmetadata", E, function(...e) {
|
|
3599
|
+
v.handleLoadedMetadata?.apply(this, e);
|
|
3600
|
+
}), In("play", E, function(...e) {
|
|
3601
|
+
v.handlePlay?.apply(this, e);
|
|
3602
|
+
}), In("pause", E, function(...e) {
|
|
3603
|
+
v.handlePause?.apply(this, e);
|
|
3604
|
+
}), In("seeking", E, function(...e) {
|
|
3605
|
+
v.handleSeeking?.apply(this, e);
|
|
3606
|
+
}), In("seeked", E, function(...e) {
|
|
3607
|
+
v.handleSeeked?.apply(this, e);
|
|
3608
|
+
}), In("ended", E, function(...e) {
|
|
3609
|
+
v.handleEnded?.apply(this, e);
|
|
3610
|
+
}), In("loadstart", E, function(...e) {
|
|
3611
|
+
v.handleLoadStart?.apply(this, e);
|
|
3612
|
+
}), In("load", E, function(...e) {
|
|
3613
|
+
v.handleLoaded?.apply(this, e);
|
|
3614
|
+
}), In("waiting", E, function(...e) {
|
|
3615
|
+
v.handleWaiting?.apply(this, e);
|
|
3616
|
+
}), In("canplay", E, function(...e) {
|
|
3617
|
+
v.handleCanPlay?.apply(this, e);
|
|
3618
|
+
}), In("timeupdate", E, function(...e) {
|
|
3619
|
+
v.handleTimeUpdate?.apply(this, e);
|
|
3620
|
+
}), In("volumechange", E, function(...e) {
|
|
3621
|
+
v.handleVolumeChange?.apply(this, e);
|
|
3622
|
+
}), In("progress", E, function(...e) {
|
|
3623
|
+
v.handleProgress?.apply(this, e);
|
|
3624
|
+
}), In("error", E, function(...e) {
|
|
3625
|
+
v.handleError?.apply(this, e);
|
|
3626
|
+
}), zn(e, b), te(y);
|
|
3627
|
+
}(e, xr(() => yn(_), {
|
|
3628
|
+
children: (e, t) => {
|
|
3629
|
+
var n = Wi(), r = _t(n), i = (e) => {
|
|
3630
|
+
Lr(xi(e, xr({ get size() {
|
|
3631
|
+
return yn(p);
|
|
3632
|
+
} }, () => yn(y))), (e) => tt(o, e, !0), () => yn(o));
|
|
3633
|
+
};
|
|
3634
|
+
rr(r, (e) => {
|
|
3635
|
+
!1 !== yn(y) && e(i);
|
|
3636
|
+
});
|
|
3637
|
+
var u = yt(r, 2), c = (e) => {
|
|
3638
|
+
Lr(Ui(e, xr({
|
|
3639
|
+
get size() {
|
|
3640
|
+
return yn(p);
|
|
3641
|
+
},
|
|
3642
|
+
get shape() {
|
|
3643
|
+
return yn(m);
|
|
3644
|
+
}
|
|
3645
|
+
}, () => yn(C))), (e) => tt(s, e, !0), () => yn(s));
|
|
3646
|
+
};
|
|
3647
|
+
rr(u, (e) => {
|
|
3648
|
+
!1 !== yn(C) && e(c);
|
|
3649
|
+
});
|
|
3650
|
+
var f = yt(u, 2), d = (e) => {
|
|
3651
|
+
Lr(Li(e, xr({ get size() {
|
|
3652
|
+
return yn(p);
|
|
3653
|
+
} }, () => yn(E))), (e) => tt(a, e, !0), () => yn(a));
|
|
3654
|
+
};
|
|
3655
|
+
rr(f, (e) => {
|
|
3656
|
+
!1 !== yn(E) && e(d);
|
|
3657
|
+
});
|
|
3658
|
+
var h = yt(f, 2), v = (e) => {
|
|
3659
|
+
Lr(Ki(e, xr({
|
|
3660
|
+
get size() {
|
|
3661
|
+
return yn(p);
|
|
3662
|
+
},
|
|
3663
|
+
get shape() {
|
|
3664
|
+
return yn(m);
|
|
3665
|
+
}
|
|
3666
|
+
}, () => yn(w))), (e) => tt(l, e, !0), () => yn(l));
|
|
3667
|
+
};
|
|
3668
|
+
rr(h, (e) => {
|
|
3669
|
+
!1 !== yn(w) && e(v);
|
|
3670
|
+
}), zn(e, n);
|
|
3671
|
+
},
|
|
3672
|
+
$$slots: { default: !0 }
|
|
3673
|
+
})), (e) => i = e, () => i);
|
|
3674
|
+
},
|
|
3675
|
+
$$slots: { default: !0 }
|
|
3676
|
+
})), (e) => r = e, () => r);
|
|
3677
|
+
var d = yt(f, 2), h = (e) => {
|
|
3678
|
+
Lr(yi(e, xr({
|
|
3679
|
+
get size() {
|
|
3680
|
+
return yn(p);
|
|
3681
|
+
},
|
|
3682
|
+
get shape() {
|
|
3683
|
+
return yn(m);
|
|
3684
|
+
}
|
|
3685
|
+
}, () => yn(S))), (e) => tt(u, e, !0), () => yn(u));
|
|
3686
|
+
};
|
|
3687
|
+
rr(d, (e) => {
|
|
3688
|
+
!1 !== yn(S) && e(h);
|
|
3689
|
+
});
|
|
3690
|
+
var v = yt(d, 2), g = (e) => {
|
|
3691
|
+
Lr(Ci(e, xr({ get size() {
|
|
3692
|
+
return yn(p);
|
|
3693
|
+
} }, () => yn(k))), (e) => tt(c, e, !0), () => yn(c));
|
|
3694
|
+
};
|
|
3695
|
+
rr(v, (e) => {
|
|
3696
|
+
!1 !== yn(k) && e(g);
|
|
3697
|
+
}), zn(e, n);
|
|
3698
|
+
},
|
|
3699
|
+
$$slots: { default: !0 }
|
|
3700
|
+
})), (e) => n = e, () => n), U(N), Pt(() => fr(N, 1, ar(yn(O)))), zn(e, N), te(T);
|
|
3701
|
+
}
|
|
3702
|
+
function Qi() {
|
|
3703
|
+
const e = /* @__PURE__ */ new WeakMap();
|
|
3704
|
+
async function t(t) {
|
|
3705
|
+
e.get(t)?.(), e.delete(t), t.component && await Jn(t.component);
|
|
3706
|
+
}
|
|
3707
|
+
return {
|
|
3708
|
+
NAME: "@retoo/scena",
|
|
3709
|
+
VERSION: "0.0.2",
|
|
3710
|
+
mount: function(n, r = document.body) {
|
|
3711
|
+
const i = new Promise((o) => {
|
|
3712
|
+
const s = eo(n), a = ro(s), l = Hr(), u = io(s, a, l);
|
|
3713
|
+
u.apply();
|
|
3714
|
+
const c = oo(s, l);
|
|
3715
|
+
c.apply();
|
|
3716
|
+
const f = so(s, a);
|
|
3717
|
+
f.apply();
|
|
3718
|
+
const d = qn(Ji, {
|
|
3719
|
+
target: r,
|
|
3720
|
+
props: {
|
|
3721
|
+
get config() {
|
|
3722
|
+
return a.resolved;
|
|
3723
|
+
},
|
|
3724
|
+
mount: () => {
|
|
3725
|
+
const t = d;
|
|
3726
|
+
t.api.events.on(zr.ON_VIDEO_READY, () => {
|
|
3727
|
+
c.api.isShownOnReady && c.api.show();
|
|
3728
|
+
}), t.api.events.on(zr.ON_VIDEO_CONTAINER_CLICK, () => {
|
|
3729
|
+
u.api.isPreviewing && (u.api.stop(), u.api.isKeepTimeOnExpand || t.api.controller.seek(0), u.api.isKeepMuteOnExpand || t.api.controller.unmute());
|
|
3730
|
+
});
|
|
3731
|
+
const n = {
|
|
3732
|
+
api: t.api,
|
|
3733
|
+
config: s,
|
|
3734
|
+
component: d,
|
|
3735
|
+
preview: u.api,
|
|
3736
|
+
responsive: f.api,
|
|
3737
|
+
visibility: c.api
|
|
3738
|
+
};
|
|
3739
|
+
e.set(n, () => f.destroy()), o(n);
|
|
3740
|
+
},
|
|
3741
|
+
unmount: () => {
|
|
3742
|
+
const e = d;
|
|
3743
|
+
i.then((n) => {
|
|
3744
|
+
const r = s.getConfig().visibility?.isAnimated ?? !0, i = s.getConfig().visibility?.isHidden ?? !1;
|
|
3745
|
+
if (!r || i) return void t(n);
|
|
3746
|
+
const o = e.api.components.container?.getElements()?.root;
|
|
3747
|
+
o ? (c.api.hide(), requestAnimationFrame(() => {
|
|
3748
|
+
const e = o.getAnimations();
|
|
3749
|
+
e.length > 0 ? Promise.allSettled(e.map((e) => e.finished)).then(() => {
|
|
3750
|
+
t(n);
|
|
3751
|
+
}) : t(n);
|
|
3752
|
+
})) : t(n);
|
|
3753
|
+
});
|
|
3754
|
+
},
|
|
3755
|
+
eventEmitter: l
|
|
3756
|
+
}
|
|
3757
|
+
});
|
|
3758
|
+
});
|
|
3759
|
+
return i;
|
|
3760
|
+
},
|
|
3761
|
+
unmount: t
|
|
3762
|
+
};
|
|
3763
|
+
}
|
|
3764
|
+
function eo(e) {
|
|
3765
|
+
let t = Qe(st(ti(e)));
|
|
3766
|
+
function n(e) {
|
|
3767
|
+
tt(t, ti(e), !0);
|
|
3768
|
+
}
|
|
3769
|
+
return {
|
|
3770
|
+
get current() {
|
|
3771
|
+
return yn(t);
|
|
3772
|
+
},
|
|
3773
|
+
getConfig: function() {
|
|
3774
|
+
return yn(t);
|
|
3775
|
+
},
|
|
3776
|
+
setConfig: n,
|
|
3777
|
+
mergeConfig: function(e) {
|
|
3778
|
+
n(ni(yn(t), e));
|
|
3779
|
+
}
|
|
3780
|
+
};
|
|
3781
|
+
}
|
|
3782
|
+
var to = class extends Map {
|
|
3783
|
+
#te = /* @__PURE__ */ new Map();
|
|
3784
|
+
#ne = Qe(0);
|
|
3785
|
+
#re = Qe(0);
|
|
3786
|
+
#ie = cn || -1;
|
|
3787
|
+
constructor(e) {
|
|
3788
|
+
if (super(), e) {
|
|
3789
|
+
for (var [t, n] of e) super.set(t, n);
|
|
3790
|
+
this.#re.v = super.size;
|
|
3791
|
+
}
|
|
3792
|
+
}
|
|
3793
|
+
#oe(e) {
|
|
3794
|
+
return cn === this.#ie ? Qe(e) : Je(e);
|
|
3795
|
+
}
|
|
3796
|
+
has(e) {
|
|
3797
|
+
var t = this.#te, n = t.get(e);
|
|
3798
|
+
if (void 0 === n) {
|
|
3799
|
+
if (!super.has(e)) return yn(this.#ne), !1;
|
|
3800
|
+
n = this.#oe(0), t.set(e, n);
|
|
3801
|
+
}
|
|
3802
|
+
return yn(n), !0;
|
|
3803
|
+
}
|
|
3804
|
+
forEach(e, t) {
|
|
3805
|
+
this.#se(), super.forEach(e, t);
|
|
3806
|
+
}
|
|
3807
|
+
get(e) {
|
|
3808
|
+
var t = this.#te, n = t.get(e);
|
|
3809
|
+
if (void 0 === n) {
|
|
3810
|
+
if (!super.has(e)) return void yn(this.#ne);
|
|
3811
|
+
n = this.#oe(0), t.set(e, n);
|
|
3812
|
+
}
|
|
3813
|
+
return yn(n), super.get(e);
|
|
3814
|
+
}
|
|
3815
|
+
set(e, t) {
|
|
3816
|
+
var n = this.#te, r = n.get(e), i = super.get(e), o = super.set(e, t), s = this.#ne;
|
|
3817
|
+
if (void 0 === r) r = this.#oe(0), n.set(e, r), tt(this.#re, super.size), it(s);
|
|
3818
|
+
else if (i !== t) {
|
|
3819
|
+
it(r);
|
|
3820
|
+
var a = null === s.reactions ? null : new Set(s.reactions);
|
|
3821
|
+
null !== a && r.reactions?.every((e) => a.has(e)) || it(s);
|
|
3822
|
+
}
|
|
3823
|
+
return o;
|
|
3824
|
+
}
|
|
3825
|
+
delete(e) {
|
|
3826
|
+
var t = this.#te, n = t.get(e), r = super.delete(e);
|
|
3827
|
+
return void 0 !== n && (t.delete(e), tt(n, -1)), r && (tt(this.#re, super.size), it(this.#ne)), r;
|
|
3828
|
+
}
|
|
3829
|
+
clear() {
|
|
3830
|
+
if (0 !== super.size) {
|
|
3831
|
+
super.clear();
|
|
3832
|
+
var e = this.#te;
|
|
3833
|
+
for (var t of (tt(this.#re, 0), e.values())) tt(t, -1);
|
|
3834
|
+
it(this.#ne), e.clear();
|
|
3835
|
+
}
|
|
3836
|
+
}
|
|
3837
|
+
#se() {
|
|
3838
|
+
yn(this.#ne);
|
|
3839
|
+
var e = this.#te;
|
|
3840
|
+
if (this.#re.v !== e.size) {
|
|
3841
|
+
for (var t of super.keys()) if (!e.has(t)) {
|
|
3842
|
+
var n = this.#oe(0);
|
|
3843
|
+
e.set(t, n);
|
|
3844
|
+
}
|
|
3845
|
+
}
|
|
3846
|
+
for ([, n] of this.#te) yn(n);
|
|
3847
|
+
}
|
|
3848
|
+
keys() {
|
|
3849
|
+
return yn(this.#ne), super.keys();
|
|
3850
|
+
}
|
|
3851
|
+
values() {
|
|
3852
|
+
return this.#se(), super.values();
|
|
3853
|
+
}
|
|
3854
|
+
entries() {
|
|
3855
|
+
return this.#se(), super.entries();
|
|
3856
|
+
}
|
|
3857
|
+
[Symbol.iterator]() {
|
|
3858
|
+
return this.entries();
|
|
3859
|
+
}
|
|
3860
|
+
get size() {
|
|
3861
|
+
return yn(this.#re), super.size;
|
|
3862
|
+
}
|
|
3863
|
+
}, no = [Yr.RESPONSIVE, Yr.PREVIEW];
|
|
3864
|
+
function ro(e) {
|
|
3865
|
+
const t = new to();
|
|
3866
|
+
function n() {
|
|
3867
|
+
let n = e.current;
|
|
3868
|
+
for (const e of no) {
|
|
3869
|
+
const r = t.get(e);
|
|
3870
|
+
r && (n = ni(n, r()));
|
|
3871
|
+
}
|
|
3872
|
+
return n;
|
|
3873
|
+
}
|
|
3874
|
+
const r = Fe(n);
|
|
3875
|
+
return {
|
|
3876
|
+
get resolved() {
|
|
3877
|
+
return yn(r);
|
|
3878
|
+
},
|
|
3879
|
+
resolve: n,
|
|
3880
|
+
set: function(e, n) {
|
|
3881
|
+
null === n ? t.delete(e) : t.set(e, n);
|
|
3882
|
+
}
|
|
3883
|
+
};
|
|
3884
|
+
}
|
|
3885
|
+
function io(e, t, n) {
|
|
3886
|
+
let r = Qe(!1);
|
|
3887
|
+
function i() {
|
|
3888
|
+
e.getConfig().preview && (yn(r) || (tt(r, !0), t.set(Yr.PREVIEW, () => ({
|
|
3889
|
+
...e.getConfig().preview,
|
|
3890
|
+
videoContainer: { customClasses: { root: [e.getConfig().videoContainer?.customClasses?.root, "rs-video-container--preview"] } }
|
|
3891
|
+
})), n.emit(zr.ON_PREVIEW_START)));
|
|
3892
|
+
}
|
|
3893
|
+
function o() {
|
|
3894
|
+
yn(r) && (tt(r, !1), t.set(Yr.PREVIEW, null), n.emit(zr.ON_PREVIEW_STOP));
|
|
3895
|
+
}
|
|
3896
|
+
return {
|
|
3897
|
+
apply: function() {
|
|
3898
|
+
const { preview: t } = e.getConfig();
|
|
3899
|
+
t && i();
|
|
3900
|
+
},
|
|
3901
|
+
get api() {
|
|
3902
|
+
return {
|
|
3903
|
+
get isPreviewing() {
|
|
3904
|
+
return yn(r);
|
|
3905
|
+
},
|
|
3906
|
+
get isKeepTimeOnExpand() {
|
|
3907
|
+
return !!e.getConfig().preview?.keepTimeOnExpand;
|
|
3908
|
+
},
|
|
3909
|
+
get isKeepMuteOnExpand() {
|
|
3910
|
+
return !!e.getConfig().preview?.keepMuteOnExpand;
|
|
3911
|
+
},
|
|
3912
|
+
start: i,
|
|
3913
|
+
stop: o
|
|
3914
|
+
};
|
|
3915
|
+
}
|
|
3916
|
+
};
|
|
3917
|
+
}
|
|
3918
|
+
function oo(e, t) {
|
|
3919
|
+
function n() {
|
|
3920
|
+
e.mergeConfig({ visibility: { isHidden: !1 } }), t.emit(zr.ON_VISIBILITY_SHOW);
|
|
3921
|
+
}
|
|
3922
|
+
function r() {
|
|
3923
|
+
e.mergeConfig({ visibility: { isHidden: !0 } }), t.emit(zr.ON_VISIBILITY_HIDE);
|
|
3924
|
+
}
|
|
3925
|
+
return {
|
|
3926
|
+
apply: function() {
|
|
3927
|
+
const t = e.getConfig().visibility, n = "boolean" == typeof t?.isAnimated, r = "boolean" == typeof t?.isShownOnReady, i = "boolean" == typeof t?.isHidden, o = !n || t?.isAnimated;
|
|
3928
|
+
let s = !0, a = !0;
|
|
3929
|
+
i && r && (s = t.isHidden, a = t.isShownOnReady), i && !r && (s = t.isHidden, a = !t.isHidden), !i && r && (a = t.isShownOnReady, s = t.isShownOnReady), e.mergeConfig({ visibility: {
|
|
3930
|
+
isAnimated: o,
|
|
3931
|
+
isShownOnReady: a,
|
|
3932
|
+
isHidden: s
|
|
3933
|
+
} });
|
|
3934
|
+
},
|
|
3935
|
+
get api() {
|
|
3936
|
+
return {
|
|
3937
|
+
get isHidden() {
|
|
3938
|
+
return !!e.getConfig().visibility?.isHidden;
|
|
3939
|
+
},
|
|
3940
|
+
get isShownOnReady() {
|
|
3941
|
+
return !!e.getConfig().visibility?.isShownOnReady;
|
|
3942
|
+
},
|
|
3943
|
+
show: n,
|
|
3944
|
+
hide: r
|
|
3945
|
+
};
|
|
3946
|
+
}
|
|
3947
|
+
};
|
|
3948
|
+
}
|
|
3949
|
+
function so(e, t) {
|
|
3950
|
+
let n = Qe(null), r = [];
|
|
3951
|
+
function i(e, r) {
|
|
3952
|
+
const i = function(e, t) {
|
|
3953
|
+
for (const n of t) if (e <= n) return n;
|
|
3954
|
+
return null;
|
|
3955
|
+
}(window.innerWidth, e);
|
|
3956
|
+
i !== yn(n) && (tt(n, i, !0), null !== i ? t.set(Yr.RESPONSIVE, () => r[i]) : t.set(Yr.RESPONSIVE, null));
|
|
3957
|
+
}
|
|
3958
|
+
return {
|
|
3959
|
+
apply: function() {
|
|
3960
|
+
const t = e.getConfig().responsive;
|
|
3961
|
+
if (!t) return;
|
|
3962
|
+
const n = Object.keys(t).map(Number).sort((e, t) => e - t);
|
|
3963
|
+
if (0 !== n.length && Qr) {
|
|
3964
|
+
for (const e of n) {
|
|
3965
|
+
const o = window.matchMedia(`(max-width: ${e}px)`), s = () => i(n, t);
|
|
3966
|
+
o.addEventListener("change", s), r.push(() => {
|
|
3967
|
+
o.removeEventListener("change", s);
|
|
3968
|
+
});
|
|
3969
|
+
}
|
|
3970
|
+
i(n, t);
|
|
3971
|
+
}
|
|
3972
|
+
},
|
|
3973
|
+
destroy: function() {
|
|
3974
|
+
tt(n, null);
|
|
3975
|
+
for (const e of r) e();
|
|
3976
|
+
r = [], t.set(Yr.RESPONSIVE, null);
|
|
3977
|
+
},
|
|
3978
|
+
get api() {
|
|
3979
|
+
return { get activeBreakpoint() {
|
|
3980
|
+
return yn(n);
|
|
3981
|
+
} };
|
|
3982
|
+
}
|
|
3983
|
+
};
|
|
3984
|
+
}
|
|
3985
|
+
var ao = "undefined" != typeof HTMLElement ? HTMLElement : class {}, lo = class extends ao {
|
|
3986
|
+
static tagName = "scena-video-widget";
|
|
3987
|
+
_instance = null;
|
|
3988
|
+
_scena = null;
|
|
3989
|
+
_connected = !1;
|
|
3990
|
+
_mountPending = null;
|
|
3991
|
+
_unmountPending = null;
|
|
3992
|
+
get scena() {
|
|
3993
|
+
return this._scena;
|
|
3994
|
+
}
|
|
3995
|
+
get instance() {
|
|
3996
|
+
return this._instance;
|
|
3997
|
+
}
|
|
3998
|
+
connectedCallback() {
|
|
3999
|
+
this._connected = !0;
|
|
4000
|
+
}
|
|
4001
|
+
disconnectedCallback() {
|
|
4002
|
+
this._connected = !1, this.unmount().catch((e) => {
|
|
4003
|
+
console.error("[scena] unmount failed on disconnect:", e);
|
|
4004
|
+
});
|
|
4005
|
+
}
|
|
4006
|
+
mount(e) {
|
|
4007
|
+
return this._mountPending || (this._mountPending = this._mount(e).finally(() => {
|
|
4008
|
+
this._mountPending = null;
|
|
4009
|
+
})), this._mountPending;
|
|
4010
|
+
}
|
|
4011
|
+
async _mount(e) {
|
|
4012
|
+
if (this._unmountPending && await this._unmountPending, this._instance) return this._instance.config.setConfig(e), this._instance;
|
|
4013
|
+
const t = Qi(), n = await t.mount(e);
|
|
4014
|
+
return this._scena = t, this._instance = n, this.dispatchEvent(new CustomEvent("scena:mount", {
|
|
4015
|
+
detail: n,
|
|
4016
|
+
bubbles: !0,
|
|
4017
|
+
composed: !0
|
|
4018
|
+
})), n;
|
|
4019
|
+
}
|
|
4020
|
+
unmount() {
|
|
4021
|
+
return this._unmountPending ? this._unmountPending : this._scena && this._instance ? (this._unmountPending = this._unmount().finally(() => {
|
|
4022
|
+
this._unmountPending = null;
|
|
4023
|
+
}), this._unmountPending) : Promise.resolve();
|
|
4024
|
+
}
|
|
4025
|
+
async _unmount() {
|
|
4026
|
+
if (this._mountPending && await this._mountPending, !this._scena || !this._instance) return;
|
|
4027
|
+
const e = this._scena, t = this._instance;
|
|
4028
|
+
this._scena = null, this._instance = null, await e.unmount(t), this.dispatchEvent(new CustomEvent("scena:unmount", {
|
|
4029
|
+
bubbles: !0,
|
|
4030
|
+
composed: !0
|
|
4031
|
+
}));
|
|
4032
|
+
}
|
|
4033
|
+
};
|
|
4034
|
+
function uo() {
|
|
4035
|
+
return customElements.get(lo.tagName);
|
|
4036
|
+
}
|
|
4037
|
+
function co() {
|
|
4038
|
+
uo() || customElements.define(lo.tagName, lo);
|
|
4039
|
+
}
|
|
4040
|
+
Qr && (window.scenaWidget = Qi, window.defineScenaElement = co);
|
|
4041
|
+
export { Wr as ComponentAriaHaspopup, Kr as ComponentAriaPressed, Ur as ComponentPlacement, Xr as ComponentPosition, qr as ComponentShape, Gr as ComponentSize, Yr as OverrideLayer, Ji as Scena, ci as ScenaButtonAriaHaspopup, ui as ScenaButtonAriaPressed, fi as ScenaButtonShape, hi as ScenaButtonType, di as ScenaButtonVariant, bi as ScenaCtaButtonPlacement, lo as ScenaElement, zr as ScenaEvent, Si as ScenaVideoCrossOrigin, wi as ScenaVideoPreload, Xi as ScenaVideoProgressVariant, ki as ScenaVideoState, co as defineScenaElement, jr as getScenaContext, uo as getScenaElement, Oi as getScenaVideoContext, Vi as scenaProgressCircleThicknessMap, Ri as scenaProgressLineThicknessMap, Br as setScenaContext, Ii as setScenaVideoContext, Hr as useEventEmitter, zi as useProgressCircle, $i as useProgressLine, Qi as useScena, eo as useScenaConfig, ro as useScenaOverrides, io as useScenaPreview, so as useScenaResponsive, oo as useScenaVisibility, Ti as useVideoController };
|