@htmlbricks/hb-player-live-camera-ptz 0.61.52 → 0.61.54

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(On){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const ei=1,ti=4,ni=8,ri=16,ii=1,si=2,Dn="[",Ut="[!",Rn="]",He={},j=Symbol(),oi="http://www.w3.org/1999/xhtml",jn=!1;var li=Array.isArray,ai=Array.prototype.indexOf,fi=Array.from,bt=Object.keys,_t=Object.defineProperty,Oe=Object.getOwnPropertyDescriptor,ui=Object.getOwnPropertyDescriptors,ci=Object.prototype,di=Array.prototype,Ln=Object.getPrototypeOf,Mn=Object.isExtensible;function vi(e){for(var t=0;t<e.length;t++)e[t]()}function zn(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const L=2,pt=4,Wt=8,ve=16,he=32,we=64,gt=128,te=512,M=1024,Y=2048,be=4096,oe=8192,$e=16384,Zt=32768,Ge=65536,In=1<<17,Xt=1<<18,De=1<<19,hi=1<<20,tt=32768,Kt=1<<21,Qt=1<<22,ke=1<<23,xt=Symbol("$state"),Fn=Symbol("legacy props"),bi=Symbol(""),Je=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},en=3,Ue=8;function _i(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function pi(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function gi(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function xi(e){throw new Error("https://svelte.dev/e/effect_orphan")}function mi(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function yi(){throw new Error("https://svelte.dev/e/hydration_failed")}function wi(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function $i(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function ki(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ei(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Ti(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function mt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Pi(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let $=!1;function le(e){$=e}let T;function J(e){if(e===null)throw mt(),He;return T=e}function tn(){return J(re(T))}function S(e){if($){if(re(T)!==null)throw mt(),He;T=e}}function Vn(e=1){if($){for(var t=e,n=T;t--;)n=re(n);T=n}}function Bn(e=!0){for(var t=0,n=T;;){if(n.nodeType===Ue){var r=n.data;if(r===Rn){if(t===0)return n;t-=1}else(r===Dn||r===Ut)&&(t+=1)}var i=re(n);e&&n.remove(),n=i}}function Si(e){if(!e||e.nodeType!==Ue)throw mt(),He;return e.data}function qn(e){return e===this.v}function Ai(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Yn(e){return!Ai(e,this.v)}let Ci=!1,X=null;function We(e){X=e}function Hn(e,t=!1,n){X={p:X,i:!1,c:null,e:null,s:e,x:null,l:null}}function Gn(e){var t=X,n=t.e;if(n!==null){t.e=null;for(var r of n)dr(r)}return e!==void 0&&(t.x=e),t.i=!0,X=t.p,e??{}}function Jn(){return!0}let Re=[];function Un(){var e=Re;Re=[],vi(e)}function nt(e){if(Re.length===0&&!rt){var t=Re;queueMicrotask(()=>{t===Re&&Un()})}Re.push(e)}function Ni(){for(;Re.length>0;)Un()}function Wn(e){var t=w;if(t===null)return m.f|=ke,e;if((t.f&Zt)===0){if((t.f&gt)===0)throw e;t.b.error(e)}else Ze(e,t)}function Ze(e,t){for(;t!==null;){if((t.f&gt)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const yt=new Set;let A=null,wt=null,U=null,ae=[],$t=null,nn=!1,rt=!1;class ne{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#n=0;#r=0;#a=null;#o=[];#l=[];skipped_effects=new Set;is_fork=!1;process(t){ae=[],wt=null,this.apply();var n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of t)this.#i(r,n);this.is_fork||this.#f(),this.#r>0||this.is_fork?(this.#s(n.effects),this.#s(n.render_effects),this.#s(n.block_effects)):(wt=this,A=null,Xn(n.render_effects),Xn(n.effects),wt=null,this.#a?.resolve()),U=null}#i(t,n){t.f^=M;for(var r=t.first;r!==null;){var i=r.f,s=(i&(he|we))!==0,o=s&&(i&M)!==0,l=o||(i&oe)!==0||this.skipped_effects.has(r);if((r.f&gt)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[],block_effects:[]}),!l&&r.fn!==null){s?r.f^=M:(i&pt)!==0?n.effects.push(r):at(r)&&((r.f&ve)!==0&&n.block_effects.push(r),ft(r));var f=r.first;if(f!==null){r=f;continue}}var a=r.parent;for(r=r.next;r===null&&a!==null;)a===n.effect&&(this.#s(n.effects),this.#s(n.render_effects),this.#s(n.block_effects),n=n.parent),r=a.next,a=a.parent}}#s(t){for(const n of t)((n.f&Y)!==0?this.#o:this.#l).push(n),I(n,M)}capture(t,n){this.previous.has(t)||this.previous.set(t,n),(t.f&ke)===0&&(this.current.set(t,t.v),U?.set(t,t.v))}activate(){A=this,this.apply()}deactivate(){A=null,U=null}flush(){if(this.activate(),ae.length>0){if(Zn(),A!==null&&A!==this)return}else this.#n===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#f(){if(this.#r===0){for(const t of this.#t)t();this.#t.clear()}this.#n===0&&this.#u()}#u(){if(yt.size>1){this.previous.clear();var t=U,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const i of yt){if(i===this){n=!1;continue}const s=[];for(const[l,f]of this.current){if(i.current.has(l))if(n&&f!==i.current.get(l))i.current.set(l,f);else continue;s.push(l)}if(s.length===0)continue;const o=[...i.current.keys()].filter(l=>!this.current.has(l));if(o.length>0){const l=new Set,f=new Map;for(const a of s)Kn(a,o,l,f);if(ae.length>0){A=i,i.apply();for(const a of ae)i.#i(a,r);ae=[],i.deactivate()}}}A=null,U=t}this.committed=!0,yt.delete(this)}increment(t){this.#n+=1,t&&(this.#r+=1)}decrement(t){this.#n-=1,t&&(this.#r-=1),this.revive()}revive(){for(const t of this.#o)I(t,Y),je(t);for(const t of this.#l)I(t,be),je(t);this.#o=[],this.#l=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#a??=zn()).promise}static ensure(){if(A===null){const t=A=new ne;yt.add(A),rt||ne.enqueue(()=>{A===t&&t.flush()})}return A}static enqueue(t){nt(t)}apply(){}}function K(e){var t=rt;rt=!0;try{for(var n;;){if(Ni(),ae.length===0&&(A?.flush(),ae.length===0))return $t=null,n;Zn()}}finally{rt=t}}function Zn(){var e=Me;nn=!0;try{var t=0;for(xr(!0);ae.length>0;){var n=ne.ensure();if(t++>1e3){var r,i;Oi()}n.process(ae),Ee.clear()}}finally{nn=!1,xr(e),$t=null}}function Oi(){try{mi()}catch(e){Ze(e,$t)}}let _e=null;function Xn(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&($e|oe))===0&&at(r)&&(_e=new Set,ft(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?br(r):r.fn=null),_e?.size>0)){Ee.clear();for(const i of _e){if((i.f&($e|oe))!==0)continue;const s=[i];let o=i.parent;for(;o!==null;)_e.has(o)&&(_e.delete(o),s.push(o)),o=o.parent;for(let l=s.length-1;l>=0;l--){const f=s[l];(f.f&($e|oe))===0&&ft(f)}}_e.clear()}}_e=null}}function Kn(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&L)!==0?Kn(i,t,n,r):(s&(Qt|ve))!==0&&(s&Y)===0&&Qn(i,t,r)&&(I(i,Y),je(i))}}function Qn(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if((i.f&L)!==0&&Qn(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function je(e){for(var t=$t=e;t.parent!==null;){t=t.parent;var n=t.f;if(nn&&t===w&&(n&ve)!==0&&(n&Xt)===0)return;if((n&(we|he))!==0){if((n&M)===0)return;t.f^=M}}ae.push(t)}function Di(e){let t=0,n=it(0),r;return()=>{St()&&(c(n),ln(()=>(t===0&&(r=fn(()=>e(()=>st(n)))),t+=1,()=>{nt(()=>{t-=1,t===0&&(r?.(),r=void 0,st(n))})})))}}var Ri=Ge|De|gt;function ji(e,t,n){new Li(e,t,n)}class Li{parent;#t=!1;#e;#n=$?T:null;#r;#a;#o;#l=null;#i=null;#s=null;#f=null;#u=null;#v=0;#c=0;#h=!1;#d=null;#x=Di(()=>(this.#d=it(this.#v),()=>{this.#d=null}));constructor(t,n,r){this.#e=t,this.#r=n,this.#a=r,this.parent=w.b,this.#t=!!this.#r.pending,this.#o=an(()=>{if(w.b=this,$){const s=this.#n;tn(),s.nodeType===Ue&&s.data===Ut?this.#y():this.#m()}else{var i=this.#p();try{this.#l=xe(()=>r(i))}catch(s){this.error(s)}this.#c>0?this.#_():this.#t=!1}return()=>{this.#u?.remove()}},Ri),$&&(this.#e=T)}#m(){try{this.#l=xe(()=>this.#a(this.#e))}catch(t){this.error(t)}this.#t=!1}#y(){const t=this.#r.pending;t&&(this.#i=xe(()=>t(this.#e)),ne.enqueue(()=>{var n=this.#p();this.#l=this.#b(()=>(ne.ensure(),xe(()=>this.#a(n)))),this.#c>0?this.#_():(ot(this.#i,()=>{this.#i=null}),this.#t=!1)}))}#p(){var t=this.#e;return this.#t&&(this.#u=ge(),this.#e.before(this.#u),t=this.#u),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#r.pending}#b(t){var n=w,r=m,i=X;Q(this.#o),z(this.#o),We(this.#o.ctx);try{return t()}catch(s){return Wn(s),null}finally{Q(n),z(r),We(i)}}#_(){const t=this.#r.pending;this.#l!==null&&(this.#f=document.createDocumentFragment(),this.#f.append(this.#u),gr(this.#l,this.#f)),this.#i===null&&(this.#i=xe(()=>t(this.#e)))}#g(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#g(t);return}this.#c+=t,this.#c===0&&(this.#t=!1,this.#i&&ot(this.#i,()=>{this.#i=null}),this.#f&&(this.#e.before(this.#f),this.#f=null))}update_pending_count(t){this.#g(t),this.#v+=t,this.#d&&Tt(this.#d,this.#v)}get_effect_pending(){return this.#x(),c(this.#d)}error(t){var n=this.#r.onerror;let r=this.#r.failed;if(this.#h||!n&&!r)throw t;this.#l&&(H(this.#l),this.#l=null),this.#i&&(H(this.#i),this.#i=null),this.#s&&(H(this.#s),this.#s=null),$&&(J(this.#n),Vn(),J(Bn()));var i=!1,s=!1;const o=()=>{if(i){Pi();return}i=!0,s&&Ti(),ne.ensure(),this.#v=0,this.#s!==null&&ot(this.#s,()=>{this.#s=null}),this.#t=this.has_pending_snippet(),this.#l=this.#b(()=>(this.#h=!1,xe(()=>this.#a(this.#e)))),this.#c>0?this.#_():this.#t=!1};var l=m;try{z(null),s=!0,n?.(t,o),s=!1}catch(f){Ze(f,this.#o&&this.#o.parent)}finally{z(l)}r&&nt(()=>{this.#s=this.#b(()=>{ne.ensure(),this.#h=!0;try{return xe(()=>{r(this.#e,()=>t,()=>o)})}catch(f){return Ze(f,this.#o.parent),null}finally{this.#h=!1}})})}}function Mi(e,t,n,r){const i=Et;if(n.length===0&&e.length===0){r(t.map(i));return}var s=A,o=w,l=zi();function f(){Promise.all(n.map(a=>Ii(a))).then(a=>{l();try{r([...t.map(i),...a])}catch(b){(o.f&$e)===0&&Ze(b,o)}s?.deactivate(),kt()}).catch(a=>{Ze(a,o)})}e.length>0?Promise.all(e).then(()=>{l();try{return f()}finally{s?.deactivate(),kt()}}):f()}function zi(){var e=w,t=m,n=X,r=A;return function(s=!0){Q(e),z(t),We(n),s&&r?.activate()}}function kt(){Q(null),z(null),We(null)}function Et(e){var t=L|Y,n=m!==null&&(m.f&L)!==0?m:null;return w!==null&&(w.f|=De),{ctx:X,deps:null,effects:null,equals:qn,f:t,fn:e,reactions:null,rv:0,v:j,wv:0,parent:n??w,ac:null}}function Ii(e,t){let n=w;n===null&&_i();var r=n.b,i=void 0,s=it(j),o=!m,l=new Map;return es(()=>{var f=zn();i=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).then(()=>{a===A&&a.committed&&a.deactivate(),kt()})}catch(d){f.reject(d),kt()}var a=A;if(o){var b=!r.is_pending();r.update_pending_count(1),a.increment(b),l.get(a)?.reject(Je),l.delete(a),l.set(a,f)}const h=(d,v=void 0)=>{if(a.activate(),v)v!==Je&&(s.f|=ke,Tt(s,v));else{(s.f&ke)!==0&&(s.f^=ke),Tt(s,d);for(const[P,B]of l){if(l.delete(P),P===a)break;B.reject(Je)}}o&&(r.update_pending_count(-1),a.decrement(b))};f.promise.then(h,d=>h(null,d||"unknown"))}),cr(()=>{for(const f of l.values())f.reject(Je)}),new Promise(f=>{function a(b){function h(){b===i?f(s):a(i)}b.then(h,h)}a(i)})}function Fi(e){const t=Et(e);return yr(t),t}function Vi(e){const t=Et(e);return t.equals=Yn,t}function er(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)H(t[n])}}function Bi(e){for(var t=e.parent;t!==null;){if((t.f&L)===0)return t;t=t.parent}return null}function rn(e){var t,n=w;Q(Bi(e));try{e.f&=~tt,er(e),t=Tr(e)}finally{Q(n)}return t}function tr(e){var t=rn(e);if(e.equals(t)||(e.v=t,e.wv=kr()),!ze)if(U!==null)St()&&U.set(e,e.v);else{var n=(e.f&te)===0?be:M;I(e,n)}}let sn=new Set;const Ee=new Map;let nr=!1;function it(e,t){var n={f:0,v:e,reactions:null,equals:qn,rv:0,wv:0};return n}function k(e,t){const n=it(e);return yr(n),n}function qi(e,t=!1,n=!0){const r=it(e);return t||(r.equals=Yn),r}function g(e,t,n=!1){m!==null&&(!ue||(m.f&In)!==0)&&Jn()&&(m.f&(L|ve|Qt|In))!==0&&!me?.includes(e)&&Ei();let r=n?pe(t):t;return Tt(e,r)}function Tt(e,t){if(!e.equals(t)){var n=e.v;ze?Ee.set(e,t):Ee.set(e,n),e.v=t;var r=ne.ensure();r.capture(e,n),(e.f&L)!==0&&((e.f&Y)!==0&&rn(e),I(e,(e.f&te)!==0?M:be)),e.wv=kr(),rr(e,Y),w!==null&&(w.f&M)!==0&&(w.f&(he|we))===0&&(ee===null?ss([e]):ee.push(e)),!r.is_fork&&sn.size>0&&!nr&&Yi()}return t}function Yi(){nr=!1;const e=Array.from(sn);for(const t of e)(t.f&M)!==0&&I(t,be),at(t)&&ft(t);sn.clear()}function st(e){g(e,e.v+1)}function rr(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,l=(o&Y)===0;if(l&&I(s,t),(o&L)!==0){var f=s;U?.delete(f),(o&tt)===0&&(o&te&&(s.f|=tt),rr(f,be))}else l&&((o&ve)!==0&&_e!==null&&_e.add(s),je(s))}}function pe(e){if(typeof e!="object"||e===null||xt in e)return e;const t=Ln(e);if(t!==ci&&t!==di)return e;var n=new Map,r=li(e),i=k(0),s=Ie,o=l=>{if(Ie===s)return l();var f=m,a=Ie;z(null),$r(s);var b=l();return z(f),$r(a),b};return r&&n.set("length",k(e.length)),new Proxy(e,{defineProperty(l,f,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&$i();var b=n.get(f);return b===void 0?b=o(()=>{var h=k(a.value);return n.set(f,h),h}):g(b,a.value,!0),!0},deleteProperty(l,f){var a=n.get(f);if(a===void 0){if(f in l){const b=o(()=>k(j));n.set(f,b),st(i)}}else g(a,j),st(i);return!0},get(l,f,a){if(f===xt)return e;var b=n.get(f),h=f in l;if(b===void 0&&(!h||Oe(l,f)?.writable)&&(b=o(()=>{var v=pe(h?l[f]:j),P=k(v);return P}),n.set(f,b)),b!==void 0){var d=c(b);return d===j?void 0:d}return Reflect.get(l,f,a)},getOwnPropertyDescriptor(l,f){var a=Reflect.getOwnPropertyDescriptor(l,f);if(a&&"value"in a){var b=n.get(f);b&&(a.value=c(b))}else if(a===void 0){var h=n.get(f),d=h?.v;if(h!==void 0&&d!==j)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return a},has(l,f){if(f===xt)return!0;var a=n.get(f),b=a!==void 0&&a.v!==j||Reflect.has(l,f);if(a!==void 0||w!==null&&(!b||Oe(l,f)?.writable)){a===void 0&&(a=o(()=>{var d=b?pe(l[f]):j,v=k(d);return v}),n.set(f,a));var h=c(a);if(h===j)return!1}return b},set(l,f,a,b){var h=n.get(f),d=f in l;if(r&&f==="length")for(var v=a;v<h.v;v+=1){var P=n.get(v+"");P!==void 0?g(P,j):v in l&&(P=o(()=>k(j)),n.set(v+"",P))}if(h===void 0)(!d||Oe(l,f)?.writable)&&(h=o(()=>k(void 0)),g(h,pe(a)),n.set(f,h));else{d=h.v!==j;var B=o(()=>pe(a));g(h,B)}var p=Reflect.getOwnPropertyDescriptor(l,f);if(p?.set&&p.set.call(b,a),!d){if(r&&typeof f=="string"){var Ke=n.get("length"),R=Number(f);Number.isInteger(R)&&R>=Ke.v&&g(Ke,R+1)}st(i)}return!0},ownKeys(l){c(i);var f=Reflect.ownKeys(l).filter(h=>{var d=n.get(h);return d===void 0||d.v!==j});for(var[a,b]of n)b.v!==j&&!(a in l)&&f.push(a);return f},setPrototypeOf(){ki()}})}var ir,sr,or,lr;function on(){if(ir===void 0){ir=window,sr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;or=Oe(t,"firstChild").get,lr=Oe(t,"nextSibling").get,Mn(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Mn(n)&&(n.__t=void 0)}}function ge(e=""){return document.createTextNode(e)}function Le(e){return or.call(e)}function re(e){return lr.call(e)}function C(e,t){if(!$)return Le(e);var n=Le(T);if(n===null)n=T.appendChild(ge());else if(t&&n.nodeType!==en){var r=ge();return n?.before(r),J(r),r}return J(n),n}function ar(e,t=!1){if(!$){var n=Le(e);return n instanceof Comment&&n.data===""?re(n):n}if(t&&T?.nodeType!==en){var r=ge();return T?.before(r),J(r),r}return T}function E(e,t=1,n=!1){let r=$?T:e;for(var i;t--;)i=r,r=re(r);if(!$)return r;if(n&&r?.nodeType!==en){var s=ge();return r===null?i?.after(s):r.before(s),J(s),s}return J(r),r}function Hi(e){e.textContent=""}function Gi(){return!1}let fr=!1;function ur(){fr||(fr=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function Pt(e){var t=m,n=w;z(null),Q(null);try{return e()}finally{z(t),Q(n)}}function Ji(e,t,n,r=n){e.addEventListener(t,()=>Pt(n));const i=e.__on_r;i?e.__on_r=()=>{i(),r(!0)}:e.__on_r=()=>r(!0),ur()}function Ui(e){w===null&&(m===null&&xi(),gi()),ze&&pi()}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 fe(e,t,n,r=!0){var i=w;i!==null&&(i.f&oe)!==0&&(e|=oe);var s={ctx:X,deps:null,nodes_start:null,nodes_end:null,f:e|Y|te,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{ft(s),s.f|=Zt}catch(f){throw H(s),f}else t!==null&&je(s);if(r){var o=s;if(n&&o.deps===null&&o.teardown===null&&o.nodes_start===null&&o.first===o.last&&(o.f&De)===0&&(o=o.first,(e&ve)!==0&&(e&Ge)!==0&&o!==null&&(o.f|=Ge)),o!==null&&(o.parent=i,i!==null&&Wi(o,i),m!==null&&(m.f&L)!==0&&(e&we)===0)){var l=m;(l.effects??=[]).push(o)}}return s}function St(){return m!==null&&!ue}function cr(e){const t=fe(Wt,null,!1);return I(t,M),t.teardown=e,t}function Zi(e){Ui();var t=w.f,n=!m&&(t&he)!==0&&(t&Zt)===0;if(n){var r=X;(r.e??=[]).push(e)}else return dr(e)}function dr(e){return fe(pt|hi,e,!1)}function Xi(e){ne.ensure();const t=fe(we|De,e,!0);return()=>{H(t)}}function Ki(e){ne.ensure();const t=fe(we|De,e,!0);return(n={})=>new Promise(r=>{n.outro?ot(t,()=>{H(t),r(void 0)}):(H(t),r(void 0))})}function Qi(e){return fe(pt,e,!1)}function es(e){return fe(Qt|De,e,!0)}function ln(e,t=0){return fe(Wt|t,e,!0)}function O(e,t=[],n=[],r=[],i=!1){Mi(r,t,n,s=>{fe(i?pt:Wt,()=>e(...s.map(c)),!0)})}function an(e,t=0){var n=fe(ve|t,e,!0);return n}function xe(e,t=!0){return fe(he|De,e,!0,t)}function vr(e){var t=e.teardown;if(t!==null){const n=ze,r=m;mr(!0),z(null);try{t.call(null)}finally{mr(n),z(r)}}}function hr(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&Pt(()=>{i.abort(Je)});var r=n.next;(n.f&we)!==0?n.parent=null:H(n,t),n=r}}function ts(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&he)===0&&H(t),t=n}}function H(e,t=!0){var n=!1;(t||(e.f&Xt)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(ns(e.nodes_start,e.nodes_end),n=!0),hr(e,t&&!n),At(e,0),I(e,$e);var r=e.transitions;if(r!==null)for(const s of r)s.stop();vr(e);var i=e.parent;i!==null&&i.first!==null&&br(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function ns(e,t){for(;e!==null;){var n=e===t?null:re(e);e.remove(),e=n}}function br(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function ot(e,t,n=!0){var r=[];_r(e,r,!0),rs(r,()=>{n&&H(e),t&&t()})}function rs(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var i of e)i.out(r)}else t()}function _r(e,t,n){if((e.f&oe)===0){if(e.f^=oe,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&Ge)!==0||(r.f&he)!==0&&(e.f&ve)!==0;_r(r,t,s?n:!1),r=i}}}function is(e){pr(e,!0)}function pr(e,t){if((e.f&oe)!==0){e.f^=oe,(e.f&M)===0&&(I(e,Y),je(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&Ge)!==0||(n.f&he)!==0;pr(n,i?t:!1),n=r}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}function gr(e,t){for(var n=e.nodes_start,r=e.nodes_end;n!==null;){var i=n===r?null:re(n);t.append(n),n=i}}let Me=!1;function xr(e){Me=e}let ze=!1;function mr(e){ze=e}let m=null,ue=!1;function z(e){m=e}let w=null;function Q(e){w=e}let me=null;function yr(e){m!==null&&(me===null?me=[e]:me.push(e))}let V=null,W=0,ee=null;function ss(e){ee=e}let wr=1,lt=0,Ie=lt;function $r(e){Ie=e}function kr(){return++wr}function at(e){var t=e.f;if((t&Y)!==0)return!0;if(t&L&&(e.f&=~tt),(t&be)!==0){var n=e.deps;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i];if(at(s)&&tr(s),s.wv>e.wv)return!0}(t&te)!==0&&U===null&&I(e,M)}return!1}function Er(e,t,n=!0){var r=e.reactions;if(r!==null&&!me?.includes(e))for(var i=0;i<r.length;i++){var s=r[i];(s.f&L)!==0?Er(s,t,!1):t===s&&(n?I(s,Y):(s.f&M)!==0&&I(s,be),je(s))}}function Tr(e){var t=V,n=W,r=ee,i=m,s=me,o=X,l=ue,f=Ie,a=e.f;V=null,W=0,ee=null,m=(a&(he|we))===0?e:null,me=null,We(e.ctx),ue=!1,Ie=++lt,e.ac!==null&&(Pt(()=>{e.ac.abort(Je)}),e.ac=null);try{e.f|=Kt;var b=e.fn,h=b(),d=e.deps;if(V!==null){var v;if(At(e,W),d!==null&&W>0)for(d.length=W+V.length,v=0;v<V.length;v++)d[W+v]=V[v];else e.deps=d=V;if(Me&&St()&&(e.f&te)!==0)for(v=W;v<d.length;v++)(d[v].reactions??=[]).push(e)}else d!==null&&W<d.length&&(At(e,W),d.length=W);if(Jn()&&ee!==null&&!ue&&d!==null&&(e.f&(L|be|Y))===0)for(v=0;v<ee.length;v++)Er(ee[v],e);return i!==null&&i!==e&&(lt++,ee!==null&&(r===null?r=ee:r.push(...ee))),(e.f&ke)!==0&&(e.f^=ke),h}catch(P){return Wn(P)}finally{e.f^=Kt,V=t,W=n,ee=r,m=i,me=s,We(o),ue=l,Ie=f}}function os(e,t){let n=t.reactions;if(n!==null){var r=ai.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&L)!==0&&(V===null||!V.includes(t))&&(I(t,be),(t.f&te)!==0&&(t.f^=te,t.f&=~tt),er(t),At(t,0))}function At(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)os(e,n[r])}function ft(e){var t=e.f;if((t&$e)===0){I(e,M);var n=w,r=Me;w=e,Me=!0;try{(t&ve)!==0?ts(e):hr(e),vr(e);var i=Tr(e);e.teardown=typeof i=="function"?i:null,e.wv=wr;var s;jn&&Ci&&(e.f&Y)!==0&&e.deps}finally{Me=r,w=n}}}async function ls(){await Promise.resolve(),K()}function c(e){var t=e.f,n=(t&L)!==0;if(m!==null&&!ue){var r=w!==null&&(w.f&$e)!==0;if(!r&&!me?.includes(e)){var i=m.deps;if((m.f&Kt)!==0)e.rv<lt&&(e.rv=lt,V===null&&i!==null&&i[W]===e?W++:V===null?V=[e]:V.includes(e)||V.push(e));else{(m.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[m]:s.includes(m)||s.push(m)}}}if(ze){if(Ee.has(e))return Ee.get(e);if(n){var o=e,l=o.v;return((o.f&M)===0&&o.reactions!==null||Sr(o))&&(l=rn(o)),Ee.set(o,l),l}}else if(n){if(o=e,U?.has(o))return U.get(o);at(o)&&tr(o),Me&&St()&&(o.f&te)===0&&Pr(o)}else if(U?.has(e))return U.get(e);if((e.f&ke)!==0)throw e.v;return e.v}function Pr(e){if(e.deps!==null){e.f^=te;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&L)!==0&&(t.f&te)===0&&Pr(t)}}function Sr(e){if(e.v===j)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Ee.has(t)||(t.f&L)!==0&&Sr(t))return!0;return!1}function fn(e){var t=ue;try{return ue=!0,e()}finally{ue=t}}const as=-7169;function I(e,t){e.f=e.f&as|t}const Ar=new Set,un=new Set;function fs(e,t,n,r={}){function i(s){if(r.capture||ut.call(t,s),!s.cancelBubble)return Pt(()=>n?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?nt(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Z(e,t,n,r,i){var s={capture:r,passive:i},o=fs(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&cr(()=>{t.removeEventListener(e,o,s)})}function us(e){for(var t=0;t<e.length;t++)Ar.add(e[t]);for(var n of un)n(e)}let Cr=null;function ut(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Cr=e;var o=0,l=Cr===e&&e.__root;if(l){var f=i.indexOf(l);if(f!==-1&&(t===document||t===window)){e.__root=t;return}var a=i.indexOf(t);if(a===-1)return;f<=a&&(o=f)}if(s=i[o]||e.target,s!==t){_t(e,"currentTarget",{configurable:!0,get(){return s||n}});var b=m,h=w;z(null),Q(null);try{for(var d,v=[];s!==null;){var P=s.assignedSlot||s.parentNode||s.host||null;try{var B=s["__"+r];B!=null&&(!s.disabled||e.target===s)&&B.call(s,e)}catch(p){d?v.push(p):d=p}if(e.cancelBubble||P===t||P===null)break;s=P}if(d){for(let p of v)queueMicrotask(()=>{throw p});throw d}}finally{e.__root=t,delete e.currentTarget,z(b),Q(h)}}}function cs(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Ct(e,t){var n=w;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function Fe(e,t){var n=(t&ii)!==0,r=(t&si)!==0,i,s=!e.startsWith("<!>");return()=>{if($)return Ct(T,null),T;i===void 0&&(i=cs(s?e:"<!>"+e),n||(i=Le(i)));var o=r||sr?document.importNode(i,!0):i.cloneNode(!0);if(n){var l=Le(o),f=o.lastChild;Ct(l,f)}else Ct(o,o);return o}}function Te(e,t){if($){w.nodes_end=T,tn();return}e!==null&&e.before(t)}const ds=["touchstart","touchmove"];function vs(e){return ds.includes(e)}function Nt(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function Nr(e,t){return Or(e,t)}function hs(e,t){on(),t.intro=t.intro??!1;const n=t.target,r=$,i=T;try{for(var s=Le(n);s&&(s.nodeType!==Ue||s.data!==Dn);)s=re(s);if(!s)throw He;le(!0),J(s);const o=Or(e,{...t,anchor:s});return le(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
2
- `).some(l=>l.startsWith("https://svelte.dev/e/")))throw o;return o!==He&&console.warn("Failed to hydrate: ",o),t.recover===!1&&yi(),on(),Hi(n),le(!1),Nr(e,t)}finally{le(r),J(i)}}const Xe=new Map;function Or(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:o=!0}){on();var l=new Set,f=h=>{for(var d=0;d<h.length;d++){var v=h[d];if(!l.has(v)){l.add(v);var P=vs(v);t.addEventListener(v,ut,{passive:P});var B=Xe.get(v);B===void 0?(document.addEventListener(v,ut,{passive:P}),Xe.set(v,1)):Xe.set(v,B+1)}}};f(fi(Ar)),un.add(f);var a=void 0,b=Ki(()=>{var h=n??t.appendChild(ge());return ji(h,{pending:()=>{}},d=>{if(s){Hn({});var v=X;v.c=s}if(i&&(r.$$events=i),$&&Ct(d,null),a=e(d,r)||{},$&&(w.nodes_end=T,T===null||T.nodeType!==Ue||T.data!==Rn))throw mt(),He;s&&Gn()}),()=>{for(var d of l){t.removeEventListener(d,ut);var v=Xe.get(d);--v===0?(document.removeEventListener(d,ut),Xe.delete(d)):Xe.set(d,v)}un.delete(f),h!==n&&h.parentNode?.removeChild(h)}});return cn.set(a,b),a}let cn=new WeakMap;function bs(e,t){const n=cn.get(e);return n?(cn.delete(e),n(t)):Promise.resolve()}class _s{anchor;#t=new Map;#e=new Map;#n=new Map;#r=!0;constructor(t,n=!0){this.anchor=t,this.#r=n}#a=()=>{var t=A;if(this.#t.has(t)){var n=this.#t.get(t),r=this.#e.get(n);if(r)is(r);else{var i=this.#n.get(n);i&&(this.#e.set(n,i.effect),this.#n.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[s,o]of this.#t){if(this.#t.delete(s),s===t)break;const l=this.#n.get(o);l&&(H(l.effect),this.#n.delete(o))}for(const[s,o]of this.#e){if(s===n)continue;const l=()=>{if(Array.from(this.#t.values()).includes(s)){var a=document.createDocumentFragment();gr(o,a),a.append(ge()),this.#n.set(s,{effect:o,fragment:a})}else H(o);this.#e.delete(s)};this.#r||!r?ot(o,l,!1):l()}}};#o=t=>{this.#t.delete(t);const n=Array.from(this.#t.values());for(const[r,i]of this.#n)n.includes(r)||(H(i.effect),this.#n.delete(r))};ensure(t,n){var r=A,i=Gi();if(n&&!this.#e.has(t)&&!this.#n.has(t))if(i){var s=document.createDocumentFragment(),o=ge();s.append(o),this.#n.set(t,{effect:xe(()=>n(o)),fragment:s})}else this.#e.set(t,xe(()=>n(this.anchor)));if(this.#t.set(r,t),i){for(const[l,f]of this.#e)l===t?r.skipped_effects.delete(f):r.skipped_effects.add(f);for(const[l,f]of this.#n)l===t?r.skipped_effects.delete(f.effect):r.skipped_effects.add(f.effect);r.oncommit(this.#a),r.ondiscard(this.#o)}else $&&(this.anchor=T),this.#a()}}function Ot(e,t,n=!1){$&&tn();var r=new _s(e),i=n?Ge:0;function s(o,l){if($){const a=Si(e)===Ut;if(o===a){var f=Bn();J(f),r.anchor=f,le(!1),r.ensure(o,l),le(!0);return}}r.ensure(o,l)}an(()=>{var o=!1;t((l,f=!0)=>{o=!0,s(f,l)}),o||s(!1,null)},i)}function ps(e,t){let n=null,r=$;var i;if($){n=T;for(var s=Le(document.head);s!==null&&(s.nodeType!==Ue||s.data!==e);)s=re(s);if(s===null)le(!1);else{var o=re(s);s.remove(),J(o)}}$||(i=document.head.appendChild(ge()));try{an(()=>t(i),Xt)}finally{r&&(le(!0),J(n))}}function gs(e,t){Qi(()=>{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 ms(e,t){return e==null?null:String(e)}function D(e,t,n,r,i,s){var o=e.__className;if($||o!==n||o===void 0){var l=xs(n,r);(!$||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):e.className=l),e.__className=n}return s}function Pe(e,t,n,r){var i=e.__style;if($||i!==t){var s=ms(t);(!$||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return r}const ys=Symbol("is custom element"),ws=Symbol("is html");function Dr(e){if($){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var r=e.value;ct(e,"value",null),e.value=r}if(e.hasAttribute("checked")){var i=e.checked;ct(e,"checked",null),e.checked=i}}};e.__on_r=n,nt(n),ur()}}function ct(e,t,n,r){var i=$s(e);$&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=n)&&(t==="loading"&&(e[bi]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Rr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function y(e,t,n){var r=m,i=w;let s=$;$&&le(!1),z(null),Q(null);try{t!=="style"&&(dn.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Rr(e).includes(t):n&&typeof n=="object")?e[t]=n:ct(e,t,n==null?n:String(n))}finally{z(r),Q(i),s&&le(!0)}}function $s(e){return e.__attributes??={[ys]:e.nodeName.includes("-"),[ws]:e.namespaceURI===oi}}var dn=new Map;function Rr(e){var t=e.getAttribute("is")||e.nodeName,n=dn.get(t);if(n)return n;dn.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=ui(i);for(var o in r)r[o].set&&n.push(o);i=Ln(i)}return n}function jr(e,t,n=t){var r=new WeakSet;Ji(e,"input",async i=>{var s=i?e.defaultValue:e.value;if(s=vn(e)?hn(s):s,n(s),A!==null&&r.add(A),await ls(),s!==(s=t())){var o=e.selectionStart,l=e.selectionEnd,f=e.value.length;if(e.value=s??"",l!==null){var a=e.value.length;o===l&&l===f&&a>f?(e.selectionStart=a,e.selectionEnd=a):(e.selectionStart=o,e.selectionEnd=Math.min(l,a))}}}),($&&e.defaultValue!==e.value||fn(t)==null&&e.value)&&(n(vn(e)?hn(e.value):e.value),A!==null&&r.add(A)),ln(()=>{var i=t();if(e===document.activeElement){var s=wt??A;if(r.has(s))return}vn(e)&&i===hn(e.value)||e.type==="date"&&!i&&!e.value||i!==e.value&&(e.value=i??"")})}function vn(e){var t=e.type;return t==="number"||t==="range"}function hn(e){return e===""?null:+e}let Dt=!1;function ks(e){var t=Dt;try{return Dt=!1,[e(),Dt]}finally{Dt=t}}function ce(e,t,n,r){var i=(n&ni)!==0,s=(n&ri)!==0,o=r,l=!0,f=()=>(l&&(l=!1,o=s?fn(r):r),o),a;if(i){var b=xt in e||Fn in e;a=Oe(e,t)?.set??(b&&t in e?R=>e[t]=R:void 0)}var h,d=!1;i?[h,d]=ks(()=>e[t]):h=e[t],h===void 0&&r!==void 0&&(h=f(),a&&(wi(),a(h)));var v;if(v=()=>{var R=e[t];return R===void 0?f():(l=!0,R)},(n&ti)===0)return v;if(a){var P=e.$$legacy;return(function(R,Qe){return arguments.length>0?((!Qe||P||d)&&a(Qe?v():R),R):v()})}var B=!1,p=((n&ei)!==0?Et:Vi)(()=>(B=!1,v()));i&&c(p);var Ke=w;return(function(R,Qe){if(arguments.length>0){const G=Qe?c(p):i?pe(R):R;return g(p,G),B=!0,o!==void 0&&(o=G),R}return ze&&B||(Ke.f&$e)!==0?p.v:c(p)})}function Es(e){return new Ts(e)}class Ts{#t;#e;constructor(t){var n=new Map,r=(s,o)=>{var l=qi(o,!1,!1);return n.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,o){return c(n.get(o)??r(o,Reflect.get(s,o)))},has(s,o){return o===Fn?!0:(c(n.get(o)??r(o,Reflect.get(s,o))),Reflect.has(s,o))},set(s,o,l){return g(n.get(o)??r(o,l),l),Reflect.set(s,o,l)}});this.#e=(t.hydrate?hs:Nr)(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)&&K(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||_t(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=()=>{bs(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 Lr;typeof HTMLElement=="function"&&(Lr=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),Te(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Ps(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]=Rt(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=Es({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Xi(()=>{ln(()=>{this.$$r=!0;for(const r of bt(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=Rt(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]=Rt(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 bt(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Rt(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 Ps(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function Ss(e,t,n,r,i,s){let o=class extends Lr{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return bt(t).map(l=>(t[l].attribute||l).toLowerCase())}};return bt(t).forEach(l=>{_t(o.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(f){f=Rt(l,f,t),this.$$d[l]=f;var a=this.$$c;if(a){var b=Oe(a,l)?.get;b?a[l]=f:a.$set({[l]:f})}}})}),r.forEach(l=>{_t(o.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=o,o}const jt={version:"0.61.52"};var Ve={},Mr;function As(){if(Mr)return Ve;Mr=1,Object.defineProperty(Ve,"__esModule",{value:!0}),Ve.LanguageTranslator=void 0,Ve.getChildStyleToPass=e,Ve.addComponent=t;function e(r,i){var s,o,l="";try{if(r&&i?.length&&(!((s=Object.keys(r))===null||s===void 0)&&s.length)&&(!((o=i?.filter(function(d){return Object.keys(r).includes(d.name)}))===null||o===void 0)&&o.length))for(var f=function(d){var v=i?.filter(function(P){return P.name===d&&P.defaultValue!==r[d]});v&&(l+="".concat(d,":").concat(r[d],";"))},a=0,b=Object.keys(r);a<b.length;a++){var h=b[a];f(h)}}catch(d){console.error("error getting child style to pass",d)}finally{return l}}function t(r){var i,s=((i=r?.repoName.split("/"))===null||i===void 0?void 0:i[1])||r?.repoName;if(!s)throw new Error("wrong componentPath "+r?.repoName);if(!r?.version)throw new Error("wrong version "+r?.version);var o=r?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var l=document.createElement("script");if(l.id=s+"-script",l.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(o),r?.local)l.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var f=s.split("-")[0];l.src="http://localhost:6006/webcomponents/".concat(s.replace(f+"-",""),"/").concat(o)}document.head.appendChild(l)}catch(a){console.warn(a)}}var n=(function(){function r(i){if(this.lang="",!i?.dictionary)throw new Error("no dictionary provided");this.dictionary=i.dictionary,this.setLang(i?.lang)}return r.prototype.setLang=function(i){i||(i=r.getDefaultLang()),this.lang=i},r.prototype.translateWord=function(i,s){return r.getDictionaryWord(i,this.dictionary,s||this.lang)},r.prototype.translateDate=function(i,s,o){return r.formatDate(i,s,o||this.lang)},r.getDefaultLang=function(){var i,s,o,l="en";return navigator?.languages&&(!((o=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||o===void 0)&&o.length)&&(l=navigator.languages[0].split("-")[0].toLowerCase()),l},r.getDictionaryWord=function(i,s,o){var l;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(o&&(!((l=s[o])===null||l===void 0)&&l[i]))return s[o][i];var f="",a=r.getDefaultLang();if(!o||a!==o){var b=s?.[a];b?.[i]&&(f=b[i])}return f},r.formatDate=function(i,s,o){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var l=new Intl.DateTimeFormat(o||r.getDefaultLang(),s);return l.format(i)},r})();return Ve.LanguageTranslator=n,Ve}var Lt=As(),Cs=Fe('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-eex92x"/>'),Ns=Fe("<hb-table></hb-table>",2),Os=Fe("<hb-pad-joystick></hb-pad-joystick>",2),Ds=Fe("<hb-pad-joystick></hb-pad-joystick>",2),Rs=Fe('<div id="controller" class="svelte-eex92x"><div id="panel" class="svelte-eex92x"><div id="joystick" class="area svelte-eex92x"><!></div> <div id="buttons" class="area svelte-eex92x"><div class="btn-group svelte-eex92x" style="margin-right:10px"><button class="btn btn-sm btn-light svelte-eex92x" aria-label="Zoom In"><i class="bi bi-zoom-in svelte-eex92x"></i></button> <button class="btn btn-sm btn-light svelte-eex92x" aria-label="Zoom Out"><i class="bi bi-zoom-out svelte-eex92x"></i></button></div> <button aria-label="Go to home"><i class="bi bi-house-door-fill svelte-eex92x"></i></button> <button aria-label="select zone"><i class="bi bi-square svelte-eex92x"></i></button></div> <div id="speed" class="area svelte-eex92x"><span class="slider_label svelte-eex92x">speed:</span> <input class="range svelte-eex92x" type="range"/></div> <div id="precision" class="area svelte-eex92x"><span class="slider_label svelte-eex92x">precision:</span> <input class="range svelte-eex92x" type="range"/></div> <div id="presets_view" class="area svelte-eex92x"><button aria-label="showGrid"><i class="bi bi-grid-3x3 svelte-eex92x"></i></button> <button aria-label="Toggle joystick mode"><i class="bi bi-joystick svelte-eex92x"></i></button> <button style="float:right;margin-right:5px;" class="btn btn-sm btn-light svelte-eex92x" aria-label="Enter fullscreen mode"><i class="bi bi-arrows-fullscreen svelte-eex92x"></i></button></div> <div id="presets_select" class="area svelte-eex92x"><button class="btn btn-sm btn-light svelte-eex92x" aria-label="Add Scene to Preset"><i class="bi bi-plus-circle-fill svelte-eex92x"></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-eex92x"></i></button></div> <div id="presets_buttons" class="area svelte-eex92x"><button><i></i></button> <button><i></i></button> <button class="btn btn-sm btn-light svelte-eex92x" aria-label="Open settings"><i class="bi bi-sliders svelte-eex92x"></i> <span class="timecell svelte-eex92x"><span class="svelte-eex92x"> </span></span></button></div></div></div>'),js=Fe('<!> <div id="opener" class="svelte-eex92x"><i></i></div>',1),Ls=Fe('<hb-dialog><div slot="body-content" class="svelte-eex92x"><!></div></hb-dialog> <hb-dialog><div slot="body-content" class="svelte-eex92x">Are You sure to add this scene to the preset?</div></hb-dialog> <hb-dialog><div slot="body-content" class="svelte-eex92x">Are You sure to go To Home?</div></hb-dialog> <hb-dialog><div slot="body-content" class="svelte-eex92x"> </div></hb-dialog> <hb-dialog><div slot="body-content" class="svelte-eex92x"> </div></hb-dialog> <div id="container" class="svelte-eex92x"><hb-player-live></hb-player-live> <div id="area_selector" class="svelte-eex92x"></div> <div id="grid" class="svelte-eex92x"><table id="grid_table" class="svelte-eex92x"><tbody class="svelte-eex92x"><tr class="svelte-eex92x"><td class="svelte-eex92x"></td><td class="svelte-eex92x"></td><td class="svelte-eex92x"></td><td class="svelte-eex92x"></td></tr><tr class="svelte-eex92x"><td class="svelte-eex92x"></td><td class="svelte-eex92x"></td><td class="svelte-eex92x"></td><td class="svelte-eex92x"></td></tr><tr class="svelte-eex92x"><td class="svelte-eex92x"></td><td class="svelte-eex92x"></td><td class="svelte-eex92x"></td><td class="svelte-eex92x"></td></tr><tr class="svelte-eex92x"><td class="svelte-eex92x"></td><td class="svelte-eex92x"></td><td class="svelte-eex92x"></td><td class="svelte-eex92x"></td></tr></tbody></table></div> <!></div>',3);const Ms={hash:"svelte-eex92x",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");
2
+ `).some(l=>l.startsWith("https://svelte.dev/e/")))throw o;return o!==He&&console.warn("Failed to hydrate: ",o),t.recover===!1&&yi(),on(),Hi(n),le(!1),Nr(e,t)}finally{le(r),J(i)}}const Xe=new Map;function Or(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:o=!0}){on();var l=new Set,f=h=>{for(var d=0;d<h.length;d++){var v=h[d];if(!l.has(v)){l.add(v);var P=vs(v);t.addEventListener(v,ut,{passive:P});var B=Xe.get(v);B===void 0?(document.addEventListener(v,ut,{passive:P}),Xe.set(v,1)):Xe.set(v,B+1)}}};f(fi(Ar)),un.add(f);var a=void 0,b=Ki(()=>{var h=n??t.appendChild(ge());return ji(h,{pending:()=>{}},d=>{if(s){Hn({});var v=X;v.c=s}if(i&&(r.$$events=i),$&&Ct(d,null),a=e(d,r)||{},$&&(w.nodes_end=T,T===null||T.nodeType!==Ue||T.data!==Rn))throw mt(),He;s&&Gn()}),()=>{for(var d of l){t.removeEventListener(d,ut);var v=Xe.get(d);--v===0?(document.removeEventListener(d,ut),Xe.delete(d)):Xe.set(d,v)}un.delete(f),h!==n&&h.parentNode?.removeChild(h)}});return cn.set(a,b),a}let cn=new WeakMap;function bs(e,t){const n=cn.get(e);return n?(cn.delete(e),n(t)):Promise.resolve()}class _s{anchor;#t=new Map;#e=new Map;#n=new Map;#r=!0;constructor(t,n=!0){this.anchor=t,this.#r=n}#a=()=>{var t=A;if(this.#t.has(t)){var n=this.#t.get(t),r=this.#e.get(n);if(r)is(r);else{var i=this.#n.get(n);i&&(this.#e.set(n,i.effect),this.#n.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[s,o]of this.#t){if(this.#t.delete(s),s===t)break;const l=this.#n.get(o);l&&(H(l.effect),this.#n.delete(o))}for(const[s,o]of this.#e){if(s===n)continue;const l=()=>{if(Array.from(this.#t.values()).includes(s)){var a=document.createDocumentFragment();gr(o,a),a.append(ge()),this.#n.set(s,{effect:o,fragment:a})}else H(o);this.#e.delete(s)};this.#r||!r?ot(o,l,!1):l()}}};#o=t=>{this.#t.delete(t);const n=Array.from(this.#t.values());for(const[r,i]of this.#n)n.includes(r)||(H(i.effect),this.#n.delete(r))};ensure(t,n){var r=A,i=Gi();if(n&&!this.#e.has(t)&&!this.#n.has(t))if(i){var s=document.createDocumentFragment(),o=ge();s.append(o),this.#n.set(t,{effect:xe(()=>n(o)),fragment:s})}else this.#e.set(t,xe(()=>n(this.anchor)));if(this.#t.set(r,t),i){for(const[l,f]of this.#e)l===t?r.skipped_effects.delete(f):r.skipped_effects.add(f);for(const[l,f]of this.#n)l===t?r.skipped_effects.delete(f.effect):r.skipped_effects.add(f.effect);r.oncommit(this.#a),r.ondiscard(this.#o)}else $&&(this.anchor=T),this.#a()}}function Ot(e,t,n=!1){$&&tn();var r=new _s(e),i=n?Ge:0;function s(o,l){if($){const a=Si(e)===Ut;if(o===a){var f=Bn();J(f),r.anchor=f,le(!1),r.ensure(o,l),le(!0);return}}r.ensure(o,l)}an(()=>{var o=!1;t((l,f=!0)=>{o=!0,s(f,l)}),o||s(!1,null)},i)}function ps(e,t){let n=null,r=$;var i;if($){n=T;for(var s=Le(document.head);s!==null&&(s.nodeType!==Ue||s.data!==e);)s=re(s);if(s===null)le(!1);else{var o=re(s);s.remove(),J(o)}}$||(i=document.head.appendChild(ge()));try{an(()=>t(i),Xt)}finally{r&&(le(!0),J(n))}}function gs(e,t){Qi(()=>{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 ms(e,t){return e==null?null:String(e)}function D(e,t,n,r,i,s){var o=e.__className;if($||o!==n||o===void 0){var l=xs(n,r);(!$||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):e.className=l),e.__className=n}return s}function Pe(e,t,n,r){var i=e.__style;if($||i!==t){var s=ms(t);(!$||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return r}const ys=Symbol("is custom element"),ws=Symbol("is html");function Dr(e){if($){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var r=e.value;ct(e,"value",null),e.value=r}if(e.hasAttribute("checked")){var i=e.checked;ct(e,"checked",null),e.checked=i}}};e.__on_r=n,nt(n),ur()}}function ct(e,t,n,r){var i=$s(e);$&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=n)&&(t==="loading"&&(e[bi]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Rr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function y(e,t,n){var r=m,i=w;let s=$;$&&le(!1),z(null),Q(null);try{t!=="style"&&(dn.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Rr(e).includes(t):n&&typeof n=="object")?e[t]=n:ct(e,t,n==null?n:String(n))}finally{z(r),Q(i),s&&le(!0)}}function $s(e){return e.__attributes??={[ys]:e.nodeName.includes("-"),[ws]:e.namespaceURI===oi}}var dn=new Map;function Rr(e){var t=e.getAttribute("is")||e.nodeName,n=dn.get(t);if(n)return n;dn.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=ui(i);for(var o in r)r[o].set&&n.push(o);i=Ln(i)}return n}function jr(e,t,n=t){var r=new WeakSet;Ji(e,"input",async i=>{var s=i?e.defaultValue:e.value;if(s=vn(e)?hn(s):s,n(s),A!==null&&r.add(A),await ls(),s!==(s=t())){var o=e.selectionStart,l=e.selectionEnd,f=e.value.length;if(e.value=s??"",l!==null){var a=e.value.length;o===l&&l===f&&a>f?(e.selectionStart=a,e.selectionEnd=a):(e.selectionStart=o,e.selectionEnd=Math.min(l,a))}}}),($&&e.defaultValue!==e.value||fn(t)==null&&e.value)&&(n(vn(e)?hn(e.value):e.value),A!==null&&r.add(A)),ln(()=>{var i=t();if(e===document.activeElement){var s=wt??A;if(r.has(s))return}vn(e)&&i===hn(e.value)||e.type==="date"&&!i&&!e.value||i!==e.value&&(e.value=i??"")})}function vn(e){var t=e.type;return t==="number"||t==="range"}function hn(e){return e===""?null:+e}let Dt=!1;function ks(e){var t=Dt;try{return Dt=!1,[e(),Dt]}finally{Dt=t}}function ce(e,t,n,r){var i=(n&ni)!==0,s=(n&ri)!==0,o=r,l=!0,f=()=>(l&&(l=!1,o=s?fn(r):r),o),a;if(i){var b=xt in e||Fn in e;a=Oe(e,t)?.set??(b&&t in e?R=>e[t]=R:void 0)}var h,d=!1;i?[h,d]=ks(()=>e[t]):h=e[t],h===void 0&&r!==void 0&&(h=f(),a&&(wi(),a(h)));var v;if(v=()=>{var R=e[t];return R===void 0?f():(l=!0,R)},(n&ti)===0)return v;if(a){var P=e.$$legacy;return(function(R,Qe){return arguments.length>0?((!Qe||P||d)&&a(Qe?v():R),R):v()})}var B=!1,p=((n&ei)!==0?Et:Vi)(()=>(B=!1,v()));i&&c(p);var Ke=w;return(function(R,Qe){if(arguments.length>0){const G=Qe?c(p):i?pe(R):R;return g(p,G),B=!0,o!==void 0&&(o=G),R}return ze&&B||(Ke.f&$e)!==0?p.v:c(p)})}function Es(e){return new Ts(e)}class Ts{#t;#e;constructor(t){var n=new Map,r=(s,o)=>{var l=qi(o,!1,!1);return n.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,o){return c(n.get(o)??r(o,Reflect.get(s,o)))},has(s,o){return o===Fn?!0:(c(n.get(o)??r(o,Reflect.get(s,o))),Reflect.has(s,o))},set(s,o,l){return g(n.get(o)??r(o,l),l),Reflect.set(s,o,l)}});this.#e=(t.hydrate?hs:Nr)(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)&&K(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||_t(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=()=>{bs(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 Lr;typeof HTMLElement=="function"&&(Lr=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),Te(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Ps(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]=Rt(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=Es({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Xi(()=>{ln(()=>{this.$$r=!0;for(const r of bt(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=Rt(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]=Rt(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 bt(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Rt(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 Ps(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function Ss(e,t,n,r,i,s){let o=class extends Lr{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return bt(t).map(l=>(t[l].attribute||l).toLowerCase())}};return bt(t).forEach(l=>{_t(o.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(f){f=Rt(l,f,t),this.$$d[l]=f;var a=this.$$c;if(a){var b=Oe(a,l)?.get;b?a[l]=f:a.$set({[l]:f})}}})}),r.forEach(l=>{_t(o.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=o,o}const jt={version:"0.61.54"};var Ve={},Mr;function As(){if(Mr)return Ve;Mr=1,Object.defineProperty(Ve,"__esModule",{value:!0}),Ve.LanguageTranslator=void 0,Ve.getChildStyleToPass=e,Ve.addComponent=t;function e(r,i){var s,o,l="";try{if(r&&i?.length&&(!((s=Object.keys(r))===null||s===void 0)&&s.length)&&(!((o=i?.filter(function(d){return Object.keys(r).includes(d.name)}))===null||o===void 0)&&o.length))for(var f=function(d){var v=i?.filter(function(P){return P.name===d&&P.defaultValue!==r[d]});v&&(l+="".concat(d,":").concat(r[d],";"))},a=0,b=Object.keys(r);a<b.length;a++){var h=b[a];f(h)}}catch(d){console.error("error getting child style to pass",d)}finally{return l}}function t(r){var i,s=((i=r?.repoName.split("/"))===null||i===void 0?void 0:i[1])||r?.repoName;if(!s)throw new Error("wrong componentPath "+r?.repoName);if(!r?.version)throw new Error("wrong version "+r?.version);var o=r?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var l=document.createElement("script");if(l.id=s+"-script",l.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(o),r?.local)l.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var f=s.split("-")[0];l.src="http://localhost:6006/webcomponents/".concat(s.replace(f+"-",""),"/").concat(o)}document.head.appendChild(l)}catch(a){console.warn(a)}}var n=(function(){function r(i){if(this.lang="",!i?.dictionary)throw new Error("no dictionary provided");this.dictionary=i.dictionary,this.setLang(i?.lang)}return r.prototype.setLang=function(i){i||(i=r.getDefaultLang()),this.lang=i},r.prototype.translateWord=function(i,s){return r.getDictionaryWord(i,this.dictionary,s||this.lang)},r.prototype.translateDate=function(i,s,o){return r.formatDate(i,s,o||this.lang)},r.getDefaultLang=function(){var i,s,o,l="en";return navigator?.languages&&(!((o=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||o===void 0)&&o.length)&&(l=navigator.languages[0].split("-")[0].toLowerCase()),l},r.getDictionaryWord=function(i,s,o){var l;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(o&&(!((l=s[o])===null||l===void 0)&&l[i]))return s[o][i];var f="",a=r.getDefaultLang();if(!o||a!==o){var b=s?.[a];b?.[i]&&(f=b[i])}return f},r.formatDate=function(i,s,o){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var l=new Intl.DateTimeFormat(o||r.getDefaultLang(),s);return l.format(i)},r})();return Ve.LanguageTranslator=n,Ve}var Lt=As(),Cs=Fe('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-eex92x"/>'),Ns=Fe("<hb-table></hb-table>",2),Os=Fe("<hb-pad-joystick></hb-pad-joystick>",2),Ds=Fe("<hb-pad-joystick></hb-pad-joystick>",2),Rs=Fe('<div id="controller" class="svelte-eex92x"><div id="panel" class="svelte-eex92x"><div id="joystick" class="area svelte-eex92x"><!></div> <div id="buttons" class="area svelte-eex92x"><div class="btn-group svelte-eex92x" style="margin-right:10px"><button class="btn btn-sm btn-light svelte-eex92x" aria-label="Zoom In"><i class="bi bi-zoom-in svelte-eex92x"></i></button> <button class="btn btn-sm btn-light svelte-eex92x" aria-label="Zoom Out"><i class="bi bi-zoom-out svelte-eex92x"></i></button></div> <button aria-label="Go to home"><i class="bi bi-house-door-fill svelte-eex92x"></i></button> <button aria-label="select zone"><i class="bi bi-square svelte-eex92x"></i></button></div> <div id="speed" class="area svelte-eex92x"><span class="slider_label svelte-eex92x">speed:</span> <input class="range svelte-eex92x" type="range"/></div> <div id="precision" class="area svelte-eex92x"><span class="slider_label svelte-eex92x">precision:</span> <input class="range svelte-eex92x" type="range"/></div> <div id="presets_view" class="area svelte-eex92x"><button aria-label="showGrid"><i class="bi bi-grid-3x3 svelte-eex92x"></i></button> <button aria-label="Toggle joystick mode"><i class="bi bi-joystick svelte-eex92x"></i></button> <button style="float:right;margin-right:5px;" class="btn btn-sm btn-light svelte-eex92x" aria-label="Enter fullscreen mode"><i class="bi bi-arrows-fullscreen svelte-eex92x"></i></button></div> <div id="presets_select" class="area svelte-eex92x"><button class="btn btn-sm btn-light svelte-eex92x" aria-label="Add Scene to Preset"><i class="bi bi-plus-circle-fill svelte-eex92x"></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-eex92x"></i></button></div> <div id="presets_buttons" class="area svelte-eex92x"><button><i></i></button> <button><i></i></button> <button class="btn btn-sm btn-light svelte-eex92x" aria-label="Open settings"><i class="bi bi-sliders svelte-eex92x"></i> <span class="timecell svelte-eex92x"><span class="svelte-eex92x"> </span></span></button></div></div></div>'),js=Fe('<!> <div id="opener" class="svelte-eex92x"><i></i></div>',1),Ls=Fe('<hb-dialog><div slot="body-content" class="svelte-eex92x"><!></div></hb-dialog> <hb-dialog><div slot="body-content" class="svelte-eex92x">Are You sure to add this scene to the preset?</div></hb-dialog> <hb-dialog><div slot="body-content" class="svelte-eex92x">Are You sure to go To Home?</div></hb-dialog> <hb-dialog><div slot="body-content" class="svelte-eex92x"> </div></hb-dialog> <hb-dialog><div slot="body-content" class="svelte-eex92x"> </div></hb-dialog> <div id="container" class="svelte-eex92x"><hb-player-live></hb-player-live> <div id="area_selector" class="svelte-eex92x"></div> <div id="grid" class="svelte-eex92x"><table id="grid_table" class="svelte-eex92x"><tbody class="svelte-eex92x"><tr class="svelte-eex92x"><td class="svelte-eex92x"></td><td class="svelte-eex92x"></td><td class="svelte-eex92x"></td><td class="svelte-eex92x"></td></tr><tr class="svelte-eex92x"><td class="svelte-eex92x"></td><td class="svelte-eex92x"></td><td class="svelte-eex92x"></td><td class="svelte-eex92x"></td></tr><tr class="svelte-eex92x"><td class="svelte-eex92x"></td><td class="svelte-eex92x"></td><td class="svelte-eex92x"></td><td class="svelte-eex92x"></td></tr><tr class="svelte-eex92x"><td class="svelte-eex92x"></td><td class="svelte-eex92x"></td><td class="svelte-eex92x"></td><td class="svelte-eex92x"></td></tr></tbody></table></div> <!></div>',3);const Ms={hash:"svelte-eex92x",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");
3
3
  @import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");:host {font-family:"Roboto", sans-serif;}#grid_table.svelte-eex92x {width:100%;height:100%;}#area_selector.svelte-eex92x {position:absolute;z-index:2;border:solid 2px red;}#grid.svelte-eex92x {position:absolute;top:0px;z-index:2;width:100%;height:100%;}#grid.svelte-eex92x td:where(.svelte-eex92x) {border:2px solid black;}.area.svelte-eex92x {padding:5px;}#container.svelte-eex92x {position:relative;width:100%;height:100%;display:block;min-height:160px;}hb-pad-joystick.svelte-eex92x {--hb-pad-joystick-size: 100px;}#joystick.svelte-eex92x {grid-area:pad;margin-top:7px;display:block;width:100%;text-align:center;}#buttons.svelte-eex92x {grid-area:buttons;}#presets_buttons.svelte-eex92x {grid-area:presets_buttons;}#speed.svelte-eex92x {grid-area:speed;text-align:center;vertical-align:middle;line-height:28px;}#precision.svelte-eex92x {grid-area:precision;text-align:center;vertical-align:middle;line-height:28px;}#presets_select.svelte-eex92x {grid-area:presets_select;}#presets_view.svelte-eex92x {grid-area:presets_view;}#controller.svelte-eex92x {position:absolute;top:calc(100% - 160px);width:100%;z-index:3;}#opener.svelte-eex92x {background-color:silver;line-height:126px;vertical-align:middle;position:absolute;position:absolute;top:calc(100% - 160px);z-index:4;cursor:pointer;}#panel.svelte-eex92x {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-eex92x {font-size:0.6em;width:50px;display:inline-block;font-weight:bold;}#player.svelte-eex92x {z-index:1;}.timecell.svelte-eex92x {font-size:0.8em;line-height:20px;width:56px;display:inline-block;vertical-align:middle;}.range.svelte-eex92x {vertical-align:middle;line-height:28px;}
4
4
  /*!
5
5
  * Bootstrap v5.3.8 (https://getbootstrap.com/)
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.61.52"
729
+ "version": "0.61.54"
730
730
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-player-live-camera-ptz",
3
- "version": "0.61.52",
3
+ "version": "0.61.54",
4
4
  "contributors": [],
5
5
  "description": "",
6
6
  "licenses": [