@htmlbricks/hb-player-live-camera-ptz 0.60.0 → 0.60.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/main.iife.js CHANGED
@@ -1,5 +1,5 @@
1
1
  (function(Tn){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Qr=1,ei=4,ti=8,ni=16,ri=1,ii=2,qt="[",Pn="[!",Sn="]",Ue={},F=Symbol(),si="http://www.w3.org/1999/xhtml",An=!1;var Cn=Array.isArray,oi=Array.prototype.indexOf,li=Array.from,pt=Object.keys,Je=Object.defineProperty,Ne=Object.getOwnPropertyDescriptor,ai=Object.getOwnPropertyDescriptors,ui=Object.prototype,ci=Array.prototype,On=Object.getPrototypeOf,Nn=Object.isExtensible;function Rn(e){for(var t=0;t<e.length;t++)e[t]()}function fi(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const J=2,Gt=4,Vt=8,We=16,pe=32,me=64,In=128,Z=256,bt=512,q=1024,K=2048,xe=4096,ye=8192,Re=16384,Yt=32768,Ht=65536,jn=1<<17,Mn=1<<18,Xe=1<<19,di=1<<20,Bt=1<<21,Ut=1<<22,Ie=1<<23,_t=Symbol("$state"),Dn=Symbol("legacy props"),vi=Symbol(""),Jt=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Ln=3,lt=8;function hi(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function pi(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function bi(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function _i(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function gi(e){throw new Error("https://svelte.dev/e/effect_orphan")}function mi(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function xi(){throw new Error("https://svelte.dev/e/hydration_failed")}function yi(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function wi(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function ki(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function $i(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function gt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let S=!1;function le(e){S=e}let I;function ae(e){if(e===null)throw gt(),Ue;return I=e}function Wt(){return ae(ue(I))}function O(e){if(S){if(ue(I)!==null)throw gt(),Ue;I=e}}function Ei(e=1){if(S){for(var t=e,n=I;t--;)n=ue(n);I=n}}function Ti(){for(var e=0,t=I;;){if(t.nodeType===lt){var n=t.data;if(n===Sn){if(e===0)return t;e-=1}else(n===qt||n===Pn)&&(e+=1)}var r=ue(t);t.remove(),t=r}}function Pi(e){if(!e||e.nodeType!==lt)throw gt(),Ue;return e.data}function zn(e){return e===this.v}function Si(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Fn(e){return!Si(e,this.v)}let Ai=!1,ie=null;function mt(e){ie=e}function qn(e,t=!1,n){ie={p:ie,c:null,e:null,s:e,x:null,l:null}}function Gn(e){var t=ie,n=t.e;if(n!==null){t.e=null;for(var r of n)ar(r)}return e!==void 0&&(t.x=e),ie=t.p,e??{}}function Vn(){return!0}const Ci=new WeakMap;function Oi(e){var t=k;if(t===null)return E.f|=Ie,e;if((t.f&Yt)===0){if((t.f&In)===0)throw!t.parent&&e instanceof Error&&Yn(e),e;t.b.error(e)}else Xt(e,t)}function Xt(e,t){for(;t!==null;){if((t.f&In)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e instanceof Error&&Yn(e),e}function Yn(e){const t=Ci.get(e);t&&(Je(e,"message",{value:t.message}),Je(e,"stack",{value:t.stack}))}const Ni=typeof requestIdleCallback>"u"?e=>setTimeout(e,1):requestIdleCallback;let at=[],ut=[];function Hn(){var e=at;at=[],Rn(e)}function Bn(){var e=ut;ut=[],Rn(e)}function Ri(e){at.length===0&&queueMicrotask(Hn),at.push(e)}function Ii(e){ut.length===0&&Ni(Bn),ut.push(e)}function ji(){at.length>0&&Hn(),ut.length>0&&Bn()}function Mi(){const e=k.b;return e===null&&hi(),e}function xt(e){var t=J|K,n=E!==null&&(E.f&J)!==0?E:null;return k===null||n!==null&&(n.f&Z)!==0?t|=Z:k.f|=Xe,{ctx:ie,deps:null,effects:null,equals:zn,f:t,fn:e,reactions:null,rv:0,v:F,wv:0,parent:n??k,ac:null}}function Di(e,t){let n=k;n===null&&pi();var r=n.b,i=void 0,s=en(F),o=null,a=!E;return ts(()=>{try{var c=e();o&&Promise.resolve(c).catch(()=>{})}catch(d){c=Promise.reject(d)}var l=()=>c;i=o?.then(l,l)??Promise.resolve(c),o=i;var v=R,h=r.is_pending();a&&(r.update_pending_count(1),h||v.increment());const p=(d,b=void 0)=>{o=null,h||v.activate(),b?b!==Jt&&(s.f|=Ie,tn(s,b)):((s.f&Ie)!==0&&(s.f^=Ie),tn(s,d)),a&&(r.update_pending_count(-1),h||v.decrement()),Wn()};if(i.then(p,d=>p(null,d||"unknown")),v)return()=>{queueMicrotask(()=>v.neuter())}}),new Promise(c=>{function l(v){function h(){v===i?c(s):l(i)}v.then(h,h)}l(i)})}function Li(e){const t=xt(e);return mr(t),t}function zi(e){const t=xt(e);return t.equals=Fn,t}function Un(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)ke(t[n])}}function Fi(e){for(var t=e.parent;t!==null;){if((t.f&J)===0)return t;t=t.parent}return null}function Zt(e){var t,n=k;de(Fi(e));try{Un(e),t=$r(e)}finally{de(n)}return t}function Jn(e){var t=Zt(e);if(e.equals(t)||(e.v=t,e.wv=wr()),!ze){var n=($e||(e.f&Z)!==0)&&e.deps!==null?xe:q;U(e,n)}}function qi(e,t,n){const r=xt;if(t.length===0){n(e.map(r));return}var i=R,s=k,o=Gi(),a=Mi();Promise.all(t.map(c=>Di(c))).then(c=>{i?.activate(),o();try{n([...e.map(r),...c])}catch(l){(s.f&Re)===0&&Xt(l,s)}i?.deactivate(),Wn()}).catch(c=>{a.error(c)})}function Gi(){var e=k,t=E,n=ie,r=R;return function(){de(e),ee(t),mt(n),r?.activate()}}function Wn(){de(null),ee(null),mt(null)}const Kt=new Set;let R=null,yt=null,Xn=new Set,wt=[];function Zn(){const e=wt.shift();wt.length>0&&queueMicrotask(Zn),e()}let je=[],kt=null,Qt=!1,$t=!1;class Me{current=new Map;#t=new Map;#e=new Set;#n=0;#u=null;#c=!1;#i=[];#o=[];#s=[];#r=[];#l=[];#f=[];#d=[];skipped_effects=new Set;process(t){je=[],yt=null;for(const i of t)this.#h(i);if(this.#i.length===0&&this.#n===0){this.#v();var n=this.#s,r=this.#r;this.#s=[],this.#r=[],this.#l=[],yt=R,R=null,Qn(n),Qn(r),R===null?R=this:Kt.delete(this),this.#u?.resolve()}else this.#a(this.#s),this.#a(this.#r),this.#a(this.#l);for(const i of this.#i)et(i);for(const i of this.#o)et(i);this.#i=[],this.#o=[]}#h(t){t.f^=q;for(var n=t.first;n!==null;){var r=n.f,i=(r&(pe|me))!==0,s=i&&(r&q)!==0,o=s||(r&ye)!==0||this.skipped_effects.has(n);if(!o&&n.fn!==null){if(i)n.f^=q;else if((r&Gt)!==0)this.#r.push(n);else if((r&q)===0)if((r&Ut)!==0){var a=n.b?.is_pending()?this.#o:this.#i;a.push(n)}else Tt(n)&&((n.f&We)!==0&&this.#l.push(n),et(n));var c=n.first;if(c!==null){n=c;continue}}var l=n.parent;for(n=n.next;n===null&&l!==null;)n=l.next,l=l.parent}}#a(t){for(const n of t)((n.f&K)!==0?this.#f:this.#d).push(n),U(n,q);t.length=0}capture(t,n){this.#t.has(t)||this.#t.set(t,n),this.current.set(t,t.v)}activate(){R=this}deactivate(){R=null,yt=null;for(const t of Xn)if(Xn.delete(t),t(),R!==null)break}neuter(){this.#c=!0}flush(){je.length>0?Kn():this.#v(),R===this&&(this.#n===0&&Kt.delete(this),this.deactivate())}#v(){if(!this.#c)for(const t of this.#e)t();this.#e.clear()}increment(){this.#n+=1}decrement(){if(this.#n-=1,this.#n===0){for(const t of this.#f)U(t,K),Ze(t);for(const t of this.#d)U(t,xe),Ze(t);this.#s=[],this.#r=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#u??=fi()).promise}static ensure(){if(R===null){const t=R=new Me;Kt.add(R),$t||Me.enqueue(()=>{R===t&&t.flush()})}return R}static enqueue(t){wt.length===0&&queueMicrotask(Zn),wt.unshift(t)}}function Q(e){var t=$t;$t=!0;try{for(var n;;){if(ji(),je.length===0&&(R?.flush(),je.length===0))return kt=null,n;Kn()}}finally{$t=t}}function Kn(){var e=Qe;Qt=!0;try{var t=0;for(_r(!0);je.length>0;){var n=Me.ensure();if(t++>1e3){var r,i;Vi()}n.process(je),we.clear()}}finally{Qt=!1,_r(e),kt=null}}function Vi(){try{mi()}catch(e){Xt(e,kt)}}let De=null;function Qn(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(Re|ye))===0&&Tt(r)&&(De=[],et(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?vr(r):r.fn=null),De?.length>0)){we.clear();for(const i of De)et(i);De=[]}}De=null}}function Ze(e){for(var t=kt=e;t.parent!==null;){t=t.parent;var n=t.f;if(Qt&&t===k&&(n&We)!==0)return;if((n&(me|pe))!==0){if((n&q)===0)return;t.f^=q}}je.push(t)}const we=new Map;function en(e,t){var n={f:0,v:e,reactions:null,equals:zn,rv:0,wv:0};return n}function A(e,t){const n=en(e);return mr(n),n}function Yi(e,t=!1,n=!0){const r=en(e);return t||(r.equals=Fn),r}function y(e,t,n=!1){E!==null&&(!fe||(E.f&jn)!==0)&&Vn()&&(E.f&(J|We|Ut|jn))!==0&&!_e?.includes(e)&&$i();let r=n?be(t):t;return tn(e,r)}function tn(e,t){if(!e.equals(t)){var n=e.v;ze?we.set(e,t):we.set(e,n),e.v=t;var r=Me.ensure();r.capture(e,n),(e.f&J)!==0&&((e.f&K)!==0&&Zt(e),U(e,(e.f&Z)===0?q:xe)),e.wv=wr(),er(e,K),k!==null&&(k.f&q)!==0&&(k.f&(pe|me))===0&&(te===null?os([e]):te.push(e))}return t}function nn(e){y(e,e.v+1)}function er(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i],o=s.f,a=(o&K)===0;a&&U(s,t),(o&J)!==0?er(s,xe):a&&((o&We)!==0&&De!==null&&De.push(s),Ze(s))}}function be(e){if(typeof e!="object"||e===null||_t in e)return e;const t=On(e);if(t!==ui&&t!==ci)return e;var n=new Map,r=Cn(e),i=A(0),s=Fe,o=a=>{if(Fe===s)return a();var c=E,l=Fe;ee(null),yr(s);var v=a();return ee(c),yr(l),v};return r&&n.set("length",A(e.length)),new Proxy(e,{defineProperty(a,c,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&wi();var v=n.get(c);return v===void 0?v=o(()=>{var h=A(l.value);return n.set(c,h),h}):y(v,l.value,!0),!0},deleteProperty(a,c){var l=n.get(c);if(l===void 0){if(c in a){const v=o(()=>A(F));n.set(c,v),nn(i)}}else y(l,F),nn(i);return!0},get(a,c,l){if(c===_t)return e;var v=n.get(c),h=c in a;if(v===void 0&&(!h||Ne(a,c)?.writable)&&(v=o(()=>{var d=be(h?a[c]:F),b=A(d);return b}),n.set(c,v)),v!==void 0){var p=f(v);return p===F?void 0:p}return Reflect.get(a,c,l)},getOwnPropertyDescriptor(a,c){var l=Reflect.getOwnPropertyDescriptor(a,c);if(l&&"value"in l){var v=n.get(c);v&&(l.value=f(v))}else if(l===void 0){var h=n.get(c),p=h?.v;if(h!==void 0&&p!==F)return{enumerable:!0,configurable:!0,value:p,writable:!0}}return l},has(a,c){if(c===_t)return!0;var l=n.get(c),v=l!==void 0&&l.v!==F||Reflect.has(a,c);if(l!==void 0||k!==null&&(!v||Ne(a,c)?.writable)){l===void 0&&(l=o(()=>{var p=v?be(a[c]):F,d=A(p);return d}),n.set(c,l));var h=f(l);if(h===F)return!1}return v},set(a,c,l,v){var h=n.get(c),p=c in a;if(r&&c==="length")for(var d=l;d<h.v;d+=1){var b=n.get(d+"");b!==void 0?y(b,F):d in a&&(b=o(()=>A(F)),n.set(d+"",b))}if(h===void 0)(!p||Ne(a,c)?.writable)&&(h=o(()=>A(void 0)),y(h,be(l)),n.set(c,h));else{p=h.v!==F;var g=o(()=>be(l));y(h,g)}var _=Reflect.getOwnPropertyDescriptor(a,c);if(_?.set&&_.set.call(v,l),!p){if(r&&typeof c=="string"){var z=n.get("length"),w=Number(c);Number.isInteger(w)&&w>=z.v&&y(z,w+1)}nn(i)}return!0},ownKeys(a){f(i);var c=Reflect.ownKeys(a).filter(h=>{var p=n.get(h);return p===void 0||p.v!==F});for(var[l,v]of n)v.v!==F&&!(l in a)&&c.push(l);return c},setPrototypeOf(){ki()}})}var tr,nr,rr,ir;function rn(){if(tr===void 0){tr=window,nr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;rr=Ne(t,"firstChild").get,ir=Ne(t,"nextSibling").get,Nn(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Nn(n)&&(n.__t=void 0)}}function Ke(e=""){return document.createTextNode(e)}function Le(e){return rr.call(e)}function ue(e){return ir.call(e)}function N(e,t){if(!S)return Le(e);var n=Le(I);if(n===null)n=I.appendChild(Ke());else if(t&&n.nodeType!==Ln){var r=Ke();return n?.before(r),ae(r),r}return ae(n),n}function sr(e,t){if(!S){var n=Le(e);return n instanceof Comment&&n.data===""?ue(n):n}return I}function C(e,t=1,n=!1){let r=S?I:e;for(var i;t--;)i=r,r=ue(r);if(!S)return r;if(n&&r?.nodeType!==Ln){var s=Ke();return r===null?i?.after(s):r.before(s),ae(s),s}return ae(r),r}function Hi(e){e.textContent=""}function Bi(){return!1}let or=!1;function lr(){or||(or=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function Et(e){var t=E,n=k;ee(null),de(null);try{return e()}finally{ee(t),de(n)}}function Ui(e,t,n,r=n){e.addEventListener(t,()=>Et(n));const i=e.__on_r;i?e.__on_r=()=>{i(),r(!0)}:e.__on_r=()=>r(!0),lr()}function Ji(e){k===null&&E===null&&gi(),E!==null&&(E.f&Z)!==0&&k===null&&_i(),ze&&bi()}function Wi(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function ce(e,t,n,r=!0){var i=k;i!==null&&(i.f&ye)!==0&&(e|=ye);var s={ctx:ie,deps:null,nodes_start:null,nodes_end:null,f:e|K,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{et(s),s.f|=Yt}catch(c){throw ke(s),c}else t!==null&&Ze(s);if(r){var o=s;if(n&&o.deps===null&&o.teardown===null&&o.nodes_start===null&&o.first===o.last&&(o.f&Xe)===0&&(o=o.first),o!==null&&(o.parent=i,i!==null&&Wi(o,i),E!==null&&(E.f&J)!==0&&(e&me)===0)){var a=E;(a.effects??=[]).push(o)}}return s}function Xi(e){const t=ce(Vt,null,!1);return U(t,q),t.teardown=e,t}function Zi(e){Ji();var t=k.f,n=!E&&(t&pe)!==0&&(t&Yt)===0;if(n){var r=ie;(r.e??=[]).push(e)}else return ar(e)}function ar(e){return ce(Gt|di,e,!1)}function Ki(e){Me.ensure();const t=ce(me|Xe,e,!0);return()=>{ke(t)}}function Qi(e){Me.ensure();const t=ce(me|Xe,e,!0);return(n={})=>new Promise(r=>{n.outro?hr(t,()=>{ke(t),r(void 0)}):(ke(t),r(void 0))})}function es(e){return ce(Gt,e,!1)}function ts(e){return ce(Ut|Xe,e,!0)}function ur(e,t=0){return ce(Vt|t,e,!0)}function M(e,t=[],n=[]){qi(t,n,r=>{ce(Vt,()=>e(...r.map(f)),!0)})}function cr(e,t=0){var n=ce(We|t,e,!0);return n}function sn(e,t=!0){return ce(pe|Xe,e,!0,t)}function fr(e){var t=e.teardown;if(t!==null){const n=ze,r=E;gr(!0),ee(null);try{t.call(null)}finally{gr(n),ee(r)}}}function dr(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&Et(()=>{i.abort(Jt)});var r=n.next;(n.f&me)!==0?n.parent=null:ke(n,t),n=r}}function ns(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&pe)===0&&ke(t),t=n}}function ke(e,t=!0){var n=!1;(t||(e.f&Mn)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(rs(e.nodes_start,e.nodes_end),n=!0),dr(e,t&&!n),Pt(e,0),U(e,Re);var r=e.transitions;if(r!==null)for(const s of r)s.stop();fr(e);var i=e.parent;i!==null&&i.first!==null&&vr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function rs(e,t){for(;e!==null;){var n=e===t?null:ue(e);e.remove(),e=n}}function vr(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function hr(e,t){var n=[];pr(e,n,!0),is(n,()=>{ke(e),t&&t()})}function is(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var i of e)i.out(r)}else t()}function pr(e,t,n){if((e.f&ye)===0){if(e.f^=ye,e.transitions!==null)for(const o of e.transitions)(o.is_global||n)&&t.push(o);for(var r=e.first;r!==null;){var i=r.next,s=(r.f&Ht)!==0||(r.f&pe)!==0;pr(r,t,s?n:!1),r=i}}}function ss(e){br(e,!0)}function br(e,t){if((e.f&ye)!==0){e.f^=ye,(e.f&q)===0&&(U(e,K),Ze(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&Ht)!==0||(n.f&pe)!==0;br(n,i?t:!1),n=r}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}let Qe=!1;function _r(e){Qe=e}let ze=!1;function gr(e){ze=e}let E=null,fe=!1;function ee(e){E=e}let k=null;function de(e){k=e}let _e=null;function mr(e){E!==null&&(_e===null?_e=[e]:_e.push(e))}let Y=null,W=0,te=null;function os(e){te=e}let xr=1,ct=0,Fe=ct;function yr(e){Fe=e}let $e=!1;function wr(){return++xr}function Tt(e){var t=e.f;if((t&K)!==0)return!0;if((t&xe)!==0){var n=e.deps,r=(t&Z)!==0;if(n!==null){var i,s,o=(t&bt)!==0,a=r&&k!==null&&!$e,c=n.length;if((o||a)&&(k===null||(k.f&Re)===0)){var l=e,v=l.parent;for(i=0;i<c;i++)s=n[i],(o||!s?.reactions?.includes(l))&&(s.reactions??=[]).push(l);o&&(l.f^=bt),a&&v!==null&&(v.f&Z)===0&&(l.f^=Z)}for(i=0;i<c;i++)if(s=n[i],Tt(s)&&Jn(s),s.wv>e.wv)return!0}(!r||k!==null&&!$e)&&U(e,q)}return!1}function kr(e,t,n=!0){var r=e.reactions;if(r!==null&&!_e?.includes(e))for(var i=0;i<r.length;i++){var s=r[i];(s.f&J)!==0?kr(s,t,!1):t===s&&(n?U(s,K):(s.f&q)!==0&&U(s,xe),Ze(s))}}function $r(e){var t=Y,n=W,r=te,i=E,s=$e,o=_e,a=ie,c=fe,l=Fe,v=e.f;Y=null,W=0,te=null,$e=(v&Z)!==0&&(fe||!Qe||E===null),E=(v&(pe|me))===0?e:null,_e=null,mt(e.ctx),fe=!1,Fe=++ct,e.ac!==null&&(Et(()=>{e.ac.abort(Jt)}),e.ac=null);try{e.f|=Bt;var h=e.fn,p=h(),d=e.deps;if(Y!==null){var b;if(Pt(e,W),d!==null&&W>0)for(d.length=W+Y.length,b=0;b<Y.length;b++)d[W+b]=Y[b];else e.deps=d=Y;if(!$e||(v&J)!==0&&e.reactions!==null)for(b=W;b<d.length;b++)(d[b].reactions??=[]).push(e)}else d!==null&&W<d.length&&(Pt(e,W),d.length=W);if(Vn()&&te!==null&&!fe&&d!==null&&(e.f&(J|xe|K))===0)for(b=0;b<te.length;b++)kr(te[b],e);return i!==null&&i!==e&&(ct++,te!==null&&(r===null?r=te:r.push(...te))),(e.f&Ie)!==0&&(e.f^=Ie),p}catch(g){return Oi(g)}finally{e.f^=Bt,Y=t,W=n,te=r,E=i,$e=s,_e=o,mt(a),fe=c,Fe=l}}function ls(e,t){let n=t.reactions;if(n!==null){var r=oi.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}n===null&&(t.f&J)!==0&&(Y===null||!Y.includes(t))&&(U(t,xe),(t.f&(Z|bt))===0&&(t.f^=bt),Un(t),Pt(t,0))}function Pt(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)ls(e,n[r])}function et(e){var t=e.f;if((t&Re)===0){U(e,q);var n=k,r=Qe;k=e,Qe=!0;try{(t&We)!==0?ns(e):dr(e),fr(e);var i=$r(e);e.teardown=typeof i=="function"?i:null,e.wv=xr;var s;An&&Ai&&(e.f&K)!==0&&e.deps}finally{Qe=r,k=n}}}async function as(){await Promise.resolve(),Q()}function f(e){var t=e.f,n=(t&J)!==0;if(E!==null&&!fe){var r=k!==null&&(k.f&Re)!==0;if(!r&&!_e?.includes(e)){var i=E.deps;if((E.f&Bt)!==0)e.rv<ct&&(e.rv=ct,Y===null&&i!==null&&i[W]===e?W++:Y===null?Y=[e]:(!$e||!Y.includes(e))&&Y.push(e));else{(E.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[E]:s.includes(E)||s.push(E)}}}else if(n&&e.deps===null&&e.effects===null){var o=e,a=o.parent;a!==null&&(a.f&Z)===0&&(o.f^=Z)}if(ze){if(we.has(e))return we.get(e);if(n){o=e;var c=o.v;return((o.f&q)===0&&o.reactions!==null||Er(o))&&(c=Zt(o)),we.set(o,c),c}}else n&&(o=e,Tt(o)&&Jn(o));if((e.f&Ie)!==0)throw e.v;return e.v}function Er(e){if(e.v===F)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(we.has(t)||(t.f&J)!==0&&Er(t))return!0;return!1}function Tr(e){var t=fe;try{return fe=!0,e()}finally{fe=t}}const us=-7169;function U(e,t){e.f=e.f&us|t}const Pr=new Set,on=new Set;function cs(e,t,n,r={}){function i(s){if(r.capture||ft.call(t,s),!s.cancelBubble)return Et(()=>n?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Ri(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function X(e,t,n,r,i){var s={capture:r,passive:i},o=cs(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Xi(()=>{t.removeEventListener(e,o,s)})}function fs(e){for(var t=0;t<e.length;t++)Pr.add(e[t]);for(var n of on)n(e)}let Sr=null;function ft(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Sr=e;var o=0,a=Sr===e&&e.__root;if(a){var c=i.indexOf(a);if(c!==-1&&(t===document||t===window)){e.__root=t;return}var l=i.indexOf(t);if(l===-1)return;c<=l&&(o=c)}if(s=i[o]||e.target,s!==t){Je(e,"currentTarget",{configurable:!0,get(){return s||n}});var v=E,h=k;ee(null),de(null);try{for(var p,d=[];s!==null;){var b=s.assignedSlot||s.parentNode||s.host||null;try{var g=s["__"+r];if(g!=null&&(!s.disabled||e.target===s))if(Cn(g)){var[_,...z]=g;_.apply(s,[e,...z])}else g.call(s,e)}catch(w){p?d.push(w):p=w}if(e.cancelBubble||b===t||b===null)break;s=b}if(p){for(let w of d)queueMicrotask(()=>{throw w});throw p}}finally{e.__root=t,delete e.currentTarget,ee(v),de(h)}}}let ne;function ds(){ne=void 0}function vs(e){let t=null,n=S;var r;if(S){for(t=I,ne===void 0&&(ne=Le(document.head));ne!==null&&(ne.nodeType!==lt||ne.data!==qt);)ne=ue(ne);ne===null?le(!1):ne=ae(ue(ne))}S||(r=document.head.appendChild(Ke()));try{cr(()=>e(r),Mn)}finally{n&&(le(!0),ne=I,ae(t))}}function hs(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function St(e,t){var n=k;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function qe(e,t){var n=(t&ri)!==0,r=(t&ii)!==0,i,s=!e.startsWith("<!>");return()=>{if(S)return St(I,null),I;i===void 0&&(i=hs(s?e:"<!>"+e),n||(i=Le(i)));var o=r||nr?document.importNode(i,!0):i.cloneNode(!0);if(n){var a=Le(o),c=o.lastChild;St(a,c)}else St(o,o);return o}}function Ee(e,t){if(S){k.nodes_end=I,Wt();return}e!==null&&e.before(t)}const ps=["touchstart","touchmove"];function bs(e){return ps.includes(e)}function At(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function Ar(e,t){return Cr(e,t)}function _s(e,t){rn(),t.intro=t.intro??!1;const n=t.target,r=S,i=I;try{for(var s=Le(n);s&&(s.nodeType!==lt||s.data!==qt);)s=ue(s);if(!s)throw Ue;le(!0),ae(s),Wt();const o=Cr(e,{...t,anchor:s});if(I===null||I.nodeType!==lt||I.data!==Sn)throw gt(),Ue;return le(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
2
- `).some(a=>a.startsWith("https://svelte.dev/e/")))throw o;return o!==Ue&&console.warn("Failed to hydrate: ",o),t.recover===!1&&xi(),rn(),Hi(n),le(!1),Ar(e,t)}finally{le(r),ae(i),ds()}}const tt=new Map;function Cr(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:o=!0}){rn();var a=new Set,c=h=>{for(var p=0;p<h.length;p++){var d=h[p];if(!a.has(d)){a.add(d);var b=bs(d);t.addEventListener(d,ft,{passive:b});var g=tt.get(d);g===void 0?(document.addEventListener(d,ft,{passive:b}),tt.set(d,1)):tt.set(d,g+1)}}};c(li(Pr)),on.add(c);var l=void 0,v=Qi(()=>{var h=n??t.appendChild(Ke());return sn(()=>{if(s){qn({});var p=ie;p.c=s}i&&(r.$$events=i),S&&St(h,null),l=e(h,r)||{},S&&(k.nodes_end=I),s&&Gn()}),()=>{for(var p of a){t.removeEventListener(p,ft);var d=tt.get(p);--d===0?(document.removeEventListener(p,ft),tt.delete(p)):tt.set(p,d)}on.delete(c),h!==n&&h.parentNode?.removeChild(h)}});return ln.set(l,v),l}let ln=new WeakMap;function gs(e,t){const n=ln.get(e);return n?(ln.delete(e),n(t)):Promise.resolve()}function Ct(e,t,n=!1){S&&Wt();var r=e,i=null,s=null,o=F,a=n?Ht:0,c=!1;const l=(d,b=!0)=>{c=!0,p(b,d)};var v=null;function h(){v!==null&&(v.lastChild.remove(),r.before(v),v=null);var d=o?i:s,b=o?s:i;d&&ss(d),b&&hr(b,()=>{o?s=null:i=null})}const p=(d,b)=>{if(o===(o=d))return;let g=!1;if(S){const H=Pi(r)===Pn;!!o===H&&(r=Ti(),ae(r),le(!1),g=!0)}var _=Bi(),z=r;if(_&&(v=document.createDocumentFragment(),v.append(z=Ke())),o?i??=b&&sn(()=>b(z)):s??=b&&sn(()=>b(z)),_){var w=R,re=o?i:s,D=o?s:i;re&&w.skipped_effects.delete(re),D&&w.skipped_effects.add(D),w.add_callback(h)}else h();g&&le(!0)};cr(()=>{c=!1,t(l),c||p(null,null)},a),S&&(r=I)}function ms(e,t){es(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function xs(e,t,n){var r=e==null?"":""+e;return t&&(r=r?r+" "+t:t),r===""?null:r}function ys(e,t){return e==null?null:String(e)}function L(e,t,n,r,i,s){var o=e.__className;if(S||o!==n||o===void 0){var a=xs(n,r);(!S||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):e.className=a),e.__className=n}return s}function Te(e,t,n,r){var i=e.__style;if(S||i!==t){var s=ys(t);(!S||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return r}const ws=Symbol("is custom element"),ks=Symbol("is html");function Or(e){if(S){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var r=e.value;dt(e,"value",null),e.value=r}if(e.hasAttribute("checked")){var i=e.checked;dt(e,"checked",null),e.checked=i}}};e.__on_r=n,Ii(n),lr()}}function dt(e,t,n,r){var i=$s(e);S&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=n)&&(t==="loading"&&(e[vi]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Nr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function T(e,t,n){var r=E,i=k;let s=S;S&&le(!1),ee(null),de(null);try{t!=="style"&&(an.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Nr(e).includes(t):n&&typeof n=="object")?e[t]=n:dt(e,t,n==null?n:String(n))}finally{ee(r),de(i),s&&le(!0)}}function $s(e){return e.__attributes??={[ws]:e.nodeName.includes("-"),[ks]:e.namespaceURI===si}}var an=new Map;function Nr(e){var t=e.getAttribute("is")||e.nodeName,n=an.get(t);if(n)return n;an.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=ai(i);for(var o in r)r[o].set&&n.push(o);i=On(i)}return n}function Rr(e,t,n=t){var r=new WeakSet;Ui(e,"input",async i=>{var s=i?e.defaultValue:e.value;if(s=un(e)?cn(s):s,n(s),R!==null&&r.add(R),await as(),s!==(s=t())){var o=e.selectionStart,a=e.selectionEnd;e.value=s??"",a!==null&&(e.selectionStart=o,e.selectionEnd=Math.min(a,e.value.length))}}),(S&&e.defaultValue!==e.value||Tr(t)==null&&e.value)&&(n(un(e)?cn(e.value):e.value),R!==null&&r.add(R)),ur(()=>{var i=t();if(e===document.activeElement){var s=yt??R;if(r.has(s))return}un(e)&&i===cn(e.value)||e.type==="date"&&!i&&!e.value||i!==e.value&&(e.value=i??"")})}function un(e){var t=e.type;return t==="number"||t==="range"}function cn(e){return e===""?null:+e}let Ot=!1;function Es(e){var t=Ot;try{return Ot=!1,[e(),Ot]}finally{Ot=t}}function ve(e,t,n,r){var i=(n&ti)!==0,s=(n&ni)!==0,o=r,a=!0,c=()=>(a&&(a=!1,o=s?Tr(r):r),o),l;if(i){var v=_t in e||Dn in e;l=Ne(e,t)?.set??(v&&t in e?w=>e[t]=w:void 0)}var h,p=!1;i?[h,p]=Es(()=>e[t]):h=e[t],h===void 0&&r!==void 0&&(h=c(),l&&(yi(),l(h)));var d;if(d=()=>{var w=e[t];return w===void 0?c():(a=!0,w)},(n&ei)===0)return d;if(l){var b=e.$$legacy;return(function(w,re){return arguments.length>0?((!re||b||p)&&l(re?d():w),w):d()})}var g=!1,_=((n&Qr)!==0?xt:zi)(()=>(g=!1,d()));i&&f(_);var z=k;return(function(w,re){if(arguments.length>0){const D=re?f(_):i?be(w):w;return y(_,D),g=!0,o!==void 0&&(o=D),w}return ze&&g||(z.f&Re)!==0?_.v:f(_)})}function Ts(e){return new Ps(e)}class Ps{#t;#e;constructor(t){var n=new Map,r=(s,o)=>{var a=Yi(o,!1,!1);return n.set(s,a),a};const i=new Proxy({...t.props||{},$$events:{}},{get(s,o){return f(n.get(o)??r(o,Reflect.get(s,o)))},has(s,o){return o===Dn?!0:(f(n.get(o)??r(o,Reflect.get(s,o))),Reflect.has(s,o))},set(s,o,a){return y(n.get(o)??r(o,a),a),Reflect.set(s,o,a)}});this.#e=(t.hydrate?_s:Ar)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&Q(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||Je(this,s,{get(){return this.#e[s]},set(o){this.#e[s]=o},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{gs(this.#e)}}$set(t){this.#e.$set(t)}$on(t,n){this.#t[t]=this.#t[t]||[];const r=(...i)=>n.call(this,...i);return this.#t[t].push(r),()=>{this.#t[t]=this.#t[t].filter(i=>i!==r)}}$destroy(){this.#e.$destroy()}}let Ir;typeof HTMLElement=="function"&&(Ir=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return i=>{const s=document.createElement("slot");r!=="default"&&(s.name=r),Ee(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Ss(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=Nt(i,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=Ts({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Ki(()=>{ur(()=>{this.$$r=!0;for(const r of pt(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=Nt(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const s=this.$$c.$on(r,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Nt(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return pt(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Nt(e,t,n,r){const i=n[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Ss(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function As(e,t,n,r,i,s){let o=class extends Ir{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return pt(t).map(a=>(t[a].attribute||a).toLowerCase())}};return pt(t).forEach(a=>{Je(o.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(c){c=Nt(a,c,t),this.$$d[a]=c;var l=this.$$c;if(l){var v=Ne(l,a)?.get;v?l[a]=c:l.$set({[a]:c})}}})}),r.forEach(a=>{Je(o.prototype,a,{get(){return this.$$c?.[a]}})}),e.element=o,o}const Rt={version:"0.60.0"};function Cs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nt={},fn,jr;function Os(){if(jr)return fn;jr=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,a=/^\s+|\s+$/g,c=`
2
+ `).some(a=>a.startsWith("https://svelte.dev/e/")))throw o;return o!==Ue&&console.warn("Failed to hydrate: ",o),t.recover===!1&&xi(),rn(),Hi(n),le(!1),Ar(e,t)}finally{le(r),ae(i),ds()}}const tt=new Map;function Cr(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:o=!0}){rn();var a=new Set,c=h=>{for(var p=0;p<h.length;p++){var d=h[p];if(!a.has(d)){a.add(d);var b=bs(d);t.addEventListener(d,ft,{passive:b});var g=tt.get(d);g===void 0?(document.addEventListener(d,ft,{passive:b}),tt.set(d,1)):tt.set(d,g+1)}}};c(li(Pr)),on.add(c);var l=void 0,v=Qi(()=>{var h=n??t.appendChild(Ke());return sn(()=>{if(s){qn({});var p=ie;p.c=s}i&&(r.$$events=i),S&&St(h,null),l=e(h,r)||{},S&&(k.nodes_end=I),s&&Gn()}),()=>{for(var p of a){t.removeEventListener(p,ft);var d=tt.get(p);--d===0?(document.removeEventListener(p,ft),tt.delete(p)):tt.set(p,d)}on.delete(c),h!==n&&h.parentNode?.removeChild(h)}});return ln.set(l,v),l}let ln=new WeakMap;function gs(e,t){const n=ln.get(e);return n?(ln.delete(e),n(t)):Promise.resolve()}function Ct(e,t,n=!1){S&&Wt();var r=e,i=null,s=null,o=F,a=n?Ht:0,c=!1;const l=(d,b=!0)=>{c=!0,p(b,d)};var v=null;function h(){v!==null&&(v.lastChild.remove(),r.before(v),v=null);var d=o?i:s,b=o?s:i;d&&ss(d),b&&hr(b,()=>{o?s=null:i=null})}const p=(d,b)=>{if(o===(o=d))return;let g=!1;if(S){const H=Pi(r)===Pn;!!o===H&&(r=Ti(),ae(r),le(!1),g=!0)}var _=Bi(),z=r;if(_&&(v=document.createDocumentFragment(),v.append(z=Ke())),o?i??=b&&sn(()=>b(z)):s??=b&&sn(()=>b(z)),_){var w=R,re=o?i:s,D=o?s:i;re&&w.skipped_effects.delete(re),D&&w.skipped_effects.add(D),w.add_callback(h)}else h();g&&le(!0)};cr(()=>{c=!1,t(l),c||p(null,null)},a),S&&(r=I)}function ms(e,t){es(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function xs(e,t,n){var r=e==null?"":""+e;return t&&(r=r?r+" "+t:t),r===""?null:r}function ys(e,t){return e==null?null:String(e)}function L(e,t,n,r,i,s){var o=e.__className;if(S||o!==n||o===void 0){var a=xs(n,r);(!S||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):e.className=a),e.__className=n}return s}function Te(e,t,n,r){var i=e.__style;if(S||i!==t){var s=ys(t);(!S||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return r}const ws=Symbol("is custom element"),ks=Symbol("is html");function Or(e){if(S){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var r=e.value;dt(e,"value",null),e.value=r}if(e.hasAttribute("checked")){var i=e.checked;dt(e,"checked",null),e.checked=i}}};e.__on_r=n,Ii(n),lr()}}function dt(e,t,n,r){var i=$s(e);S&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=n)&&(t==="loading"&&(e[vi]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Nr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function T(e,t,n){var r=E,i=k;let s=S;S&&le(!1),ee(null),de(null);try{t!=="style"&&(an.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Nr(e).includes(t):n&&typeof n=="object")?e[t]=n:dt(e,t,n==null?n:String(n))}finally{ee(r),de(i),s&&le(!0)}}function $s(e){return e.__attributes??={[ws]:e.nodeName.includes("-"),[ks]:e.namespaceURI===si}}var an=new Map;function Nr(e){var t=e.getAttribute("is")||e.nodeName,n=an.get(t);if(n)return n;an.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=ai(i);for(var o in r)r[o].set&&n.push(o);i=On(i)}return n}function Rr(e,t,n=t){var r=new WeakSet;Ui(e,"input",async i=>{var s=i?e.defaultValue:e.value;if(s=un(e)?cn(s):s,n(s),R!==null&&r.add(R),await as(),s!==(s=t())){var o=e.selectionStart,a=e.selectionEnd;e.value=s??"",a!==null&&(e.selectionStart=o,e.selectionEnd=Math.min(a,e.value.length))}}),(S&&e.defaultValue!==e.value||Tr(t)==null&&e.value)&&(n(un(e)?cn(e.value):e.value),R!==null&&r.add(R)),ur(()=>{var i=t();if(e===document.activeElement){var s=yt??R;if(r.has(s))return}un(e)&&i===cn(e.value)||e.type==="date"&&!i&&!e.value||i!==e.value&&(e.value=i??"")})}function un(e){var t=e.type;return t==="number"||t==="range"}function cn(e){return e===""?null:+e}let Ot=!1;function Es(e){var t=Ot;try{return Ot=!1,[e(),Ot]}finally{Ot=t}}function ve(e,t,n,r){var i=(n&ti)!==0,s=(n&ni)!==0,o=r,a=!0,c=()=>(a&&(a=!1,o=s?Tr(r):r),o),l;if(i){var v=_t in e||Dn in e;l=Ne(e,t)?.set??(v&&t in e?w=>e[t]=w:void 0)}var h,p=!1;i?[h,p]=Es(()=>e[t]):h=e[t],h===void 0&&r!==void 0&&(h=c(),l&&(yi(),l(h)));var d;if(d=()=>{var w=e[t];return w===void 0?c():(a=!0,w)},(n&ei)===0)return d;if(l){var b=e.$$legacy;return(function(w,re){return arguments.length>0?((!re||b||p)&&l(re?d():w),w):d()})}var g=!1,_=((n&Qr)!==0?xt:zi)(()=>(g=!1,d()));i&&f(_);var z=k;return(function(w,re){if(arguments.length>0){const D=re?f(_):i?be(w):w;return y(_,D),g=!0,o!==void 0&&(o=D),w}return ze&&g||(z.f&Re)!==0?_.v:f(_)})}function Ts(e){return new Ps(e)}class Ps{#t;#e;constructor(t){var n=new Map,r=(s,o)=>{var a=Yi(o,!1,!1);return n.set(s,a),a};const i=new Proxy({...t.props||{},$$events:{}},{get(s,o){return f(n.get(o)??r(o,Reflect.get(s,o)))},has(s,o){return o===Dn?!0:(f(n.get(o)??r(o,Reflect.get(s,o))),Reflect.has(s,o))},set(s,o,a){return y(n.get(o)??r(o,a),a),Reflect.set(s,o,a)}});this.#e=(t.hydrate?_s:Ar)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&Q(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||Je(this,s,{get(){return this.#e[s]},set(o){this.#e[s]=o},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{gs(this.#e)}}$set(t){this.#e.$set(t)}$on(t,n){this.#t[t]=this.#t[t]||[];const r=(...i)=>n.call(this,...i);return this.#t[t].push(r),()=>{this.#t[t]=this.#t[t].filter(i=>i!==r)}}$destroy(){this.#e.$destroy()}}let Ir;typeof HTMLElement=="function"&&(Ir=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return i=>{const s=document.createElement("slot");r!=="default"&&(s.name=r),Ee(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Ss(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=Nt(i,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=Ts({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Ki(()=>{ur(()=>{this.$$r=!0;for(const r of pt(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=Nt(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const s=this.$$c.$on(r,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Nt(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return pt(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Nt(e,t,n,r){const i=n[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Ss(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function As(e,t,n,r,i,s){let o=class extends Ir{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return pt(t).map(a=>(t[a].attribute||a).toLowerCase())}};return pt(t).forEach(a=>{Je(o.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(c){c=Nt(a,c,t),this.$$d[a]=c;var l=this.$$c;if(l){var v=Ne(l,a)?.get;v?l[a]=c:l.$set({[a]:c})}}})}),r.forEach(a=>{Je(o.prototype,a,{get(){return this.$$c?.[a]}})}),e.element=o,o}const Rt={version:"0.60.2"};function Cs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nt={},fn,jr;function Os(){if(jr)return fn;jr=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,a=/^\s+|\s+$/g,c=`
3
3
  `,l="/",v="*",h="",p="comment",d="declaration";fn=function(g,_){if(typeof g!="string")throw new TypeError("First argument must be a string");if(!g)return[];_=_||{};var z=1,w=1;function re(P){var m=P.match(t);m&&(z+=m.length);var G=P.lastIndexOf(c);w=~G?P.length-G:w+P.length}function D(){var P={line:z,column:w};return function(m){return m.position=new H(P),rt(),m}}function H(P){this.start=P,this.end={line:z,column:w},this.source=_.source}H.prototype.content=g;function vt(P){var m=new Error(_.source+":"+z+":"+w+": "+P);if(m.reason=P,m.filename=_.source,m.line=z,m.column=w,m.source=g,!_.silent)throw m}function he(P){var m=P.exec(g);if(m){var G=m[0];return re(G),g=g.slice(G.length),m}}function rt(){he(n)}function Ge(P){var m;for(P=P||[];m=Pe();)m!==!1&&P.push(m);return P}function Pe(){var P=D();if(!(l!=g.charAt(0)||v!=g.charAt(1))){for(var m=2;h!=g.charAt(m)&&(v!=g.charAt(m)||l!=g.charAt(m+1));)++m;if(m+=2,h===g.charAt(m-1))return vt("End of comment missing");var G=g.slice(2,m-2);return w+=2,re(G),g=g.slice(m),w+=2,P({type:p,comment:G})}}function Ve(){var P=D(),m=he(r);if(m){if(Pe(),!he(i))return vt("property missing ':'");var G=he(s),st=P({type:d,property:b(m[0].replace(e,h)),value:G?b(G[0].replace(e,h)):h});return he(o),st}}function it(){var P=[];Ge(P);for(var m;m=Ve();)m!==!1&&(P.push(m),Ge(P));return P}return rt(),it()};function b(g){return g?g.replace(a,h):h}return fn}var Mr;function Ns(){if(Mr)return nt;Mr=1;var e=nt&&nt.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(nt,"__esModule",{value:!0}),nt.default=n;var t=e(Os());function n(r,i){var s=null;if(!r||typeof r!="string")return s;var o=(0,t.default)(r),a=typeof i=="function";return o.forEach(function(c){if(c.type==="declaration"){var l=c.property,v=c.value;a?i(l,v,c):v&&(s=s||{},s[l]=v)}}),s}return nt}var Rs=Ns();const Dr=Cs(Rs);Dr.default;function It(e){const t=e?.repoName.split("/")?.[1]||e?.repoName;if(!t)throw new Error("wrong componentPath "+e?.repoName);if(!e?.version)throw new Error("wrong version "+e?.version);const n=e?.iifePath||"main.iife.js";if(!document.getElementById(t+"-script"))try{const r=document.createElement("script");if(r.id=t+"-script",r.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${n}`,e?.local)r.src=`${e.local}`;else if(location.href.includes("localhost:6006")){const i=t.split("-")[0];r.src=`http://localhost:6006/webcomponents/${t.replace(i+"-","")}/${n}`}document.head.appendChild(r)}catch(r){console.warn(r)}}var Is=qe('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-1pnb87x"/>'),js=qe("<hb-table></hb-table>",2),Ms=qe("<hb-pad-joystick></hb-pad-joystick>",2),Ds=qe("<hb-pad-joystick></hb-pad-joystick>",2),Ls=(e,t)=>t("in"),zs=(e,t)=>t("out"),Fs=(e,t)=>t(),qs=(e,t)=>t(),Gs=(e,t)=>t(),Vs=(e,t)=>t(),Ys=(e,t)=>f(t)?.requestFullscreen(),Hs=(e,t)=>t(),Bs=(e,t)=>{t()},Us=(e,t)=>{f(t)&&(f(t).muted=!f(t).muted)},Js=(e,t)=>t(),Ws=(e,t)=>t(),Xs=qe('<div id="controller" class="svelte-1pnb87x"><div id="panel" class="svelte-1pnb87x"><div id="joystick" class="area svelte-1pnb87x"><!></div> <div id="buttons" class="area svelte-1pnb87x"><div class="btn-group svelte-1pnb87x" style="margin-right:10px"><button class="btn btn-sm btn-light svelte-1pnb87x" aria-label="Zoom In"><i class="bi bi-zoom-in svelte-1pnb87x"></i></button> <button class="btn btn-sm btn-light svelte-1pnb87x" aria-label="Zoom Out"><i class="bi bi-zoom-out svelte-1pnb87x"></i></button></div> <button aria-label="Go to home"><i class="bi bi-house-door-fill svelte-1pnb87x"></i></button> <button aria-label="select zone"><i class="bi bi-square svelte-1pnb87x"></i></button></div> <div id="speed" class="area svelte-1pnb87x"><span class="slider_label svelte-1pnb87x">speed:</span> <input class="range svelte-1pnb87x" type="range"/></div> <div id="precision" class="area svelte-1pnb87x"><span class="slider_label svelte-1pnb87x">precision:</span> <input class="range svelte-1pnb87x" type="range"/></div> <div id="presets_view" class="area svelte-1pnb87x"><button aria-label="showGrid"><i class="bi bi-grid-3x3 svelte-1pnb87x"></i></button> <button aria-label="Toggle joystick mode"><i class="bi bi-joystick svelte-1pnb87x"></i></button> <button style="float:right;margin-right:5px;" class="btn btn-sm btn-light svelte-1pnb87x" aria-label="Enter fullscreen mode"><i class="bi bi-arrows-fullscreen svelte-1pnb87x"></i></button></div> <div id="presets_select" class="area svelte-1pnb87x"><button class="btn btn-sm btn-light svelte-1pnb87x" aria-label="Add Scene to Preset"><i class="bi bi-plus-circle-fill svelte-1pnb87x"></i></button> <button style="width:130px!important;display:inline-block!important" aria-label="Open Presets Modal"> <i style="float:right" class="bi bi-arrow-down-up svelte-1pnb87x"></i></button></div> <div id="presets_buttons" class="area svelte-1pnb87x"><button><i></i></button> <button><i></i></button> <button class="btn btn-sm btn-light svelte-1pnb87x" aria-label="Open settings"><i class="bi bi-sliders svelte-1pnb87x"></i> <span class="timecell svelte-1pnb87x"><span class="svelte-1pnb87x"> </span></span></button></div></div></div>'),Zs=(e,t,n,r)=>{t(!t()),n("panelMove",{id:r(),opened:t()})},Ks=qe('<!> <div id="opener" class="svelte-1pnb87x"><i></i></div>',1),Qs=qe('<hb-dialog><div slot="body-content" class="svelte-1pnb87x"><!></div></hb-dialog> <hb-dialog><div slot="body-content" class="svelte-1pnb87x">Are You sure to add this scene to the preset?</div></hb-dialog> <hb-dialog><div slot="body-content" class="svelte-1pnb87x">Are You sure to go To Home?</div></hb-dialog> <hb-dialog><div slot="body-content" class="svelte-1pnb87x"> </div></hb-dialog> <hb-dialog><div slot="body-content" class="svelte-1pnb87x"> </div></hb-dialog> <div id="container" class="svelte-1pnb87x"><hb-player-live></hb-player-live> <div id="area_selector" class="svelte-1pnb87x"></div> <div id="grid" class="svelte-1pnb87x"><table id="grid_table" class="svelte-1pnb87x"><tbody class="svelte-1pnb87x"><tr class="svelte-1pnb87x"><td class="svelte-1pnb87x"></td><td class="svelte-1pnb87x"></td><td class="svelte-1pnb87x"></td><td class="svelte-1pnb87x"></td></tr><tr class="svelte-1pnb87x"><td class="svelte-1pnb87x"></td><td class="svelte-1pnb87x"></td><td class="svelte-1pnb87x"></td><td class="svelte-1pnb87x"></td></tr><tr class="svelte-1pnb87x"><td class="svelte-1pnb87x"></td><td class="svelte-1pnb87x"></td><td class="svelte-1pnb87x"></td><td class="svelte-1pnb87x"></td></tr><tr class="svelte-1pnb87x"><td class="svelte-1pnb87x"></td><td class="svelte-1pnb87x"></td><td class="svelte-1pnb87x"></td><td class="svelte-1pnb87x"></td></tr></tbody></table></div> <!></div>',3);const eo={hash:"svelte-1pnb87x",code:`@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
4
4
  @import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");:host {font-family:"Roboto", sans-serif;}#grid_table.svelte-1pnb87x {width:100%;height:100%;}#area_selector.svelte-1pnb87x {position:absolute;z-index:2;border:solid 2px red;}#grid.svelte-1pnb87x {position:absolute;top:0px;z-index:2;width:100%;height:100%;}#grid.svelte-1pnb87x td:where(.svelte-1pnb87x) {border:2px solid black;}.area.svelte-1pnb87x {padding:5px;}#container.svelte-1pnb87x {position:relative;width:100%;height:100%;display:block;min-height:160px;}hb-pad-joystick.svelte-1pnb87x {--hb-pad-joystick-size: 100px;}#joystick.svelte-1pnb87x {grid-area:pad;margin-top:7px;display:block;width:100%;text-align:center;}#buttons.svelte-1pnb87x {grid-area:buttons;}#presets_buttons.svelte-1pnb87x {grid-area:presets_buttons;}#speed.svelte-1pnb87x {grid-area:speed;text-align:center;vertical-align:middle;line-height:28px;}#precision.svelte-1pnb87x {grid-area:precision;text-align:center;vertical-align:middle;line-height:28px;}#presets_select.svelte-1pnb87x {grid-area:presets_select;}#presets_view.svelte-1pnb87x {grid-area:presets_view;}#controller.svelte-1pnb87x {position:absolute;top:calc(100% - 160px);width:100%;z-index:3;}#opener.svelte-1pnb87x {background-color:silver;line-height:126px;vertical-align:middle;position:absolute;position:absolute;top:calc(100% - 160px);z-index:4;cursor:pointer;}#panel.svelte-1pnb87x {display:grid;width:500px;height:126px;background-color:rgba(127, 127, 127, 0.8);grid-template-areas:"pad buttons presets_view opener" "pad speed presets_select opener" "pad precision presets_buttons opener";grid-template-columns:120px 200px 180px;grid-template-rows:42px 42px 42px;}.slider_label.svelte-1pnb87x {font-size:0.6em;width:50px;display:inline-block;font-weight:bold;}#player.svelte-1pnb87x {z-index:1;}.timecell.svelte-1pnb87x {font-size:0.8em;line-height:20px;width:56px;display:inline-block;vertical-align:middle;}.range.svelte-1pnb87x {vertical-align:middle;line-height:28px;}
5
5
  /*!
package/manifest.json CHANGED
@@ -726,5 +726,5 @@
726
726
  "size": {},
727
727
  "iifePath": "main.iife.js",
728
728
  "repoName": "@htmlbricks/hb-player-live-camera-ptz",
729
- "version": "0.60.0"
729
+ "version": "0.60.2"
730
730
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-player-live-camera-ptz",
3
- "version": "0.60.0",
3
+ "version": "0.60.2",
4
4
  "contributors": [],
5
5
  "description": "",
6
6
  "licenses": [