@htmlbricks/hb-player-live-camera-ptz 0.50.0-alpha.9 → 0.60.1
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 +28 -26
- package/main.iife.js.map +1 -0
- package/manifest.json +1 -1
- package/package.json +6 -2
- package/types/webcomponent.type.d.json +1 -0
- package/types/webcomponent_events.type.d.json +1 -0
package/main.iife.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
var So=Object.defineProperty;var ai=R=>{throw TypeError(R)};var Ao=(R,L,H)=>L in R?So(R,L,{enumerable:!0,configurable:!0,writable:!0,value:H}):R[L]=H;var _e=(R,L,H)=>Ao(R,typeof L!="symbol"?L+"":L,H),ui=(R,L,H)=>L.has(R)||ai("Cannot "+H);var Q=(R,L,H)=>(ui(R,L,"read from private field"),H?H.call(R):L.get(R)),Or=(R,L,H)=>L.has(R)?ai("Cannot add the same private member more than once"):L instanceof WeakSet?L.add(R):L.set(R,H),Nr=(R,L,H,mt)=>(ui(R,L,"write to private field"),mt?mt.call(R,H):L.set(R,H),H);(function(R){"use strict";var Ae,oe;const L="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(L);const H=1,mt=4,ci=8,fi=16,di=1,vi=2,Bt="[",Cr="[!",Rr="]",st={},K=Symbol(),Jt=!1,ue=2,jr=4,bt=8,Ut=16,Ee=32,Ue=64,pt=128,ie=256,gt=512,X=1024,Te=2048,Xe=4096,We=8192,yt=16384,_i=32768,Xt=65536,Ir=1<<19,Dr=1<<20,xt=Symbol("$state"),Lr=Symbol("legacy props"),hi=Symbol("");var zr=Array.isArray,mi=Array.prototype.indexOf,bi=Array.from,wt=Object.keys,$t=Object.defineProperty,Me=Object.getOwnPropertyDescriptor,pi=Object.getOwnPropertyDescriptors,gi=Object.prototype,yi=Array.prototype,Vr=Object.getPrototypeOf;function Mr(e){for(var t=0;t<e.length;t++)e[t]()}const xi=typeof requestIdleCallback>"u"?e=>setTimeout(e,1):requestIdleCallback;let kt=!1,Et=!1,Wt=[],Zt=[];function qr(){kt=!1;const e=Wt.slice();Wt=[],Mr(e)}function Fr(){Et=!1;const e=Zt.slice();Zt=[],Mr(e)}function Gr(e){kt||(kt=!0,queueMicrotask(qr)),Wt.push(e)}function wi(e){Et||(Et=!0,xi(Fr)),Zt.push(e)}function $i(){kt&&qr(),Et&&Fr()}function Yr(e){return e===this.v}function ki(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Hr(e){return!ki(e,this.v)}function Ei(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Ti(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Pi(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Si(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Ai(){throw new Error("https://svelte.dev/e/hydration_failed")}function Oi(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Ni(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Ci(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ri(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function ji(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let Ii=!1;function he(e,t){var r={f:0,v:e,reactions:null,equals:Yr,rv:0,wv:0};return r}function G(e){return Di(he(e))}function Br(e,t=!1){const r=he(e);return t||(r.equals=Hr),r}function Di(e){return P!==null&&!ge&&P.f&ue&&(we===null?Yi([e]):we.push(e)),e}function g(e,t){return P!==null&&!ge&&$n()&&P.f&(ue|Ut)&&(we===null||!we.includes(e))&&ji(),Li(e,t)}function Li(e,t){return e.equals(t)||(e.v,e.v=t,e.wv=ln(),Jr(e,Te),S!==null&&S.f&X&&!(S.f&(Ee|Ue))&&(Pe===null?Hi([e]):Pe.push(e))),t}function Jr(e,t){var r=e.reactions;if(r!==null)for(var i=r.length,n=0;n<i;n++){var s=r[n],l=s.f;l&Te||($e(s,t),l&(X|ie)&&(l&ue?Jr(s,Xe):Nt(s)))}}function Kt(e){var t=ue|Te,r=P!==null&&P.f&ue?P:null;return S===null||r!==null&&r.f&ie?t|=ie:S.f|=Dr,{ctx:re,deps:null,effects:null,equals:Yr,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:r??S}}function Ur(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)Re(t[r])}}function zi(e){for(var t=e.parent;t!==null;){if(!(t.f&ue))return t;t=t.parent}return null}function Vi(e){var t,r=S;xe(zi(e));try{Ur(e),t=un(e)}finally{xe(r)}return t}function Xr(e){var t=Vi(e),r=(Ce||e.f&ie)&&e.deps!==null?Xe:X;$e(e,r),e.equals(t)||(e.v=t,e.wv=ln())}function Qt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let O=!1;function me(e){O=e}let z;function be(e){if(e===null)throw Qt(),st;return z=e}function er(){return be(pe(z))}function j(e){if(O){if(pe(z)!==null)throw Qt(),st;z=e}}function Mi(e=1){if(O){for(var t=e,r=z;t--;)r=pe(r);z=r}}function qi(){for(var e=0,t=z;;){if(t.nodeType===8){var r=t.data;if(r===Rr){if(e===0)return t;e-=1}else(r===Bt||r===Cr)&&(e+=1)}var i=pe(t);t.remove(),t=i}}function N(e,t=null,r){if(typeof e!="object"||e===null||xt in e)return e;const i=Vr(e);if(i!==gi&&i!==yi)return e;var n=new Map,s=zr(e),l=he(0);s&&n.set("length",he(e.length));var v;return new Proxy(e,{defineProperty(c,f,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&Ni();var _=n.get(f);return _===void 0?(_=he(a.value),n.set(f,_)):g(_,N(a.value,v)),!0},deleteProperty(c,f){var a=n.get(f);if(a===void 0)f in c&&n.set(f,he(K));else{if(s&&typeof f=="string"){var _=n.get("length"),d=Number(f);Number.isInteger(d)&&d<_.v&&g(_,d)}g(a,K),Wr(l)}return!0},get(c,f,a){var y;if(f===xt)return e;var _=n.get(f),d=f in c;if(_===void 0&&(!d||(y=Me(c,f))!=null&&y.writable)&&(_=he(N(d?c[f]:K,v)),n.set(f,_)),_!==void 0){var m=u(_);return m===K?void 0:m}return Reflect.get(c,f,a)},getOwnPropertyDescriptor(c,f){var a=Reflect.getOwnPropertyDescriptor(c,f);if(a&&"value"in a){var _=n.get(f);_&&(a.value=u(_))}else if(a===void 0){var d=n.get(f),m=d==null?void 0:d.v;if(d!==void 0&&m!==K)return{enumerable:!0,configurable:!0,value:m,writable:!0}}return a},has(c,f){var m;if(f===xt)return!0;var a=n.get(f),_=a!==void 0&&a.v!==K||Reflect.has(c,f);if(a!==void 0||S!==null&&(!_||(m=Me(c,f))!=null&&m.writable)){a===void 0&&(a=he(_?N(c[f],v):K),n.set(f,a));var d=u(a);if(d===K)return!1}return _},set(c,f,a,_){var B;var d=n.get(f),m=f in c;if(s&&f==="length")for(var y=a;y<d.v;y+=1){var $=n.get(y+"");$!==void 0?g($,K):y in c&&($=he(K),n.set(y+"",$))}d===void 0?(!m||(B=Me(c,f))!=null&&B.writable)&&(d=he(void 0),g(d,N(a,v)),n.set(f,d)):(m=d.v!==K,g(d,N(a,v)));var q=Reflect.getOwnPropertyDescriptor(c,f);if(q!=null&&q.set&&q.set.call(_,a),!m){if(s&&typeof f=="string"){var k=n.get("length"),C=Number(f);Number.isInteger(C)&&C>=k.v&&g(k,C+1)}Wr(l)}return!0},ownKeys(c){u(l);var f=Reflect.ownKeys(c).filter(d=>{var m=n.get(d);return m===void 0||m.v!==K});for(var[a,_]of n)_.v!==K&&!(a in c)&&f.push(a);return f},setPrototypeOf(){Ci()}})}function Wr(e,t=1){g(e,e.v+t)}var Zr,Kr,Qr,en;function tr(){if(Zr===void 0){Zr=window,Kr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype;Qr=Me(t,"firstChild").get,en=Me(t,"nextSibling").get,e.__click=void 0,e.__className="",e.__attributes=null,e.__styles=null,e.__e=void 0,Text.prototype.__t=void 0}}function ot(e=""){return document.createTextNode(e)}function qe(e){return Qr.call(e)}function pe(e){return en.call(e)}function I(e,t){if(!O)return qe(e);var r=qe(z);if(r===null)r=z.appendChild(ot());else if(t&&r.nodeType!==3){var i=ot();return r==null||r.before(i),be(i),i}return be(r),r}function tn(e,t){if(!O){var r=qe(e);return r instanceof Comment&&r.data===""?pe(r):r}return z}function A(e,t=1,r=!1){let i=O?z:e;for(var n;t--;)n=i,i=pe(i);if(!O)return i;var s=i==null?void 0:i.nodeType;if(r&&s!==3){var l=ot();return i===null?n==null||n.after(l):i.before(l),be(l),l}return be(i),i}function Fi(e){e.textContent=""}const rn=0,Gi=1;let Tt=!1,Pt=rn,lt=!1,at=null,Ze=!1,rr=!1;function nn(e){Ze=e}function sn(e){rr=e}let Fe=[],Ke=0,Oo=[],P=null,ge=!1;function ye(e){P=e}let S=null;function xe(e){S=e}let we=null;function Yi(e){we=e}let W=null,ee=0,Pe=null;function Hi(e){Pe=e}let on=1,St=0,Ce=!1;function ln(){return++on}function ut(e){var _;var t=e.f;if(t&Te)return!0;if(t&Xe){var r=e.deps,i=(t&ie)!==0;if(r!==null){var n,s,l=(t>)!==0,v=i&&S!==null&&!Ce,c=r.length;if(l||v){var f=e,a=f.parent;for(n=0;n<c;n++)s=r[n],(l||!((_=s==null?void 0:s.reactions)!=null&&_.includes(f)))&&(s.reactions??(s.reactions=[])).push(f);l&&(f.f^=gt),v&&a!==null&&!(a.f&ie)&&(f.f^=ie)}for(n=0;n<c;n++)if(s=r[n],ut(s)&&Xr(s),s.wv>e.wv)return!0}(!i||S!==null&&!Ce)&&$e(e,X)}return!1}function Bi(e,t){for(var r=t;r!==null;){if(r.f&pt)try{r.fn(e);return}catch{r.f^=pt}r=r.parent}throw Tt=!1,e}function Ji(e){return(e.f&yt)===0&&(e.parent===null||(e.parent.f&pt)===0)}function At(e,t,r,i){if(Tt){if(r===null&&(Tt=!1),Ji(t))throw e;return}r!==null&&(Tt=!0);{Bi(e,t);return}}function an(e,t,r=!0){var i=e.reactions;if(i!==null)for(var n=0;n<i.length;n++){var s=i[n];s.f&ue?an(s,t,!1):t===s&&(r?$e(s,Te):s.f&X&&$e(s,Xe),Nt(s))}}function un(e){var m;var t=W,r=ee,i=Pe,n=P,s=Ce,l=we,v=re,c=ge,f=e.f;W=null,ee=0,Pe=null,P=f&(Ee|Ue)?null:e,Ce=(f&ie)!==0&&(!Ze||n===null||c),we=null,yn(e.ctx),ge=!1,St++;try{var a=(0,e.fn)(),_=e.deps;if(W!==null){var d;if(Ot(e,ee),_!==null&&ee>0)for(_.length=ee+W.length,d=0;d<W.length;d++)_[ee+d]=W[d];else e.deps=_=W;if(!Ce)for(d=ee;d<_.length;d++)((m=_[d]).reactions??(m.reactions=[])).push(e)}else _!==null&&ee<_.length&&(Ot(e,ee),_.length=ee);if($n()&&Pe!==null&&!ge&&_!==null&&!(e.f&(ue|Xe|Te)))for(d=0;d<Pe.length;d++)an(Pe[d],e);return n!==null&&St++,a}finally{W=t,ee=r,Pe=i,P=n,Ce=s,we=l,yn(v),ge=c}}function Ui(e,t){let r=t.reactions;if(r!==null){var i=mi.call(r,e);if(i!==-1){var n=r.length-1;n===0?r=t.reactions=null:(r[i]=r[n],r.pop())}}r===null&&t.f&ue&&(W===null||!W.includes(t))&&($e(t,Xe),t.f&(ie|gt)||(t.f^=gt),Ur(t),Ot(t,0))}function Ot(e,t){var r=e.deps;if(r!==null)for(var i=t;i<r.length;i++)Ui(e,r[i])}function nr(e){var t=e.f;if(!(t&yt)){$e(e,X);var r=S,i=re;S=e;try{t&Ut?ss(e):hn(e),_n(e);var n=un(e);e.teardown=typeof n=="function"?n:null,e.wv=on;var s=e.deps,l;Jt&&Ii&&e.f&Te}catch(v){At(v,e,r,i||e.ctx)}finally{S=r}}}function cn(){if(Ke>1e3){Ke=0;try{Si()}catch(e){if(at!==null)At(e,at,null);else throw e}}Ke++}function fn(e){var t=e.length;if(t!==0){cn();var r=Ze;Ze=!0;try{for(var i=0;i<t;i++){var n=e[i];n.f&X||(n.f^=X);var s=Zi(n);Xi(s)}}finally{Ze=r}}}function Xi(e){var t=e.length;if(t!==0)for(var r=0;r<t;r++){var i=e[r];if(!(i.f&(yt|We)))try{ut(i)&&(nr(i),i.deps===null&&i.first===null&&i.nodes_start===null&&(i.teardown===null?mn(i):i.fn=null))}catch(n){At(n,i,null,i.ctx)}}}function Wi(){if(lt=!1,Ke>1001)return;const e=Fe;Fe=[],fn(e),lt||(Ke=0,at=null)}function Nt(e){Pt===rn&&(lt||(lt=!0,queueMicrotask(Wi))),at=e;for(var t=e;t.parent!==null;){t=t.parent;var r=t.f;if(r&(Ue|Ee)){if(!(r&X))return;t.f^=X}}Fe.push(t)}function Zi(e){var t=[],r=e.first;e:for(;r!==null;){var i=r.f,n=(i&Ee)!==0,s=n&&(i&X)!==0,l=r.next;if(!s&&!(i&We)){if(i&jr)t.push(r);else if(n)r.f^=X;else{var v=P;try{P=r,ut(r)&&nr(r)}catch(a){At(a,r,null,r.ctx)}finally{P=v}}var c=r.first;if(c!==null){r=c;continue}}if(l===null){let a=r.parent;for(;a!==null;){if(e===a)break e;var f=a.next;if(f!==null){r=f;continue e}a=a.parent}}r=l}return t}function te(e){var t=Pt,r=Fe;try{cn();const n=[];Pt=Gi,Fe=n,lt=!1,fn(r);var i=e==null?void 0:e();return $i(),(Fe.length>0||n.length>0)&&te(),Ke=0,at=null,i}finally{Pt=t,Fe=r}}function u(e){var t=e.f,r=(t&ue)!==0;if(P!==null&&!ge){we!==null&&we.includes(e)&&Ri();var i=P.deps;e.rv<St&&(e.rv=St,W===null&&i!==null&&i[ee]===e?ee++:W===null?W=[e]:(!Ce||!W.includes(e))&&W.push(e))}else if(r&&e.deps===null&&e.effects===null){var n=e,s=n.parent;s!==null&&!(s.f&ie)&&(n.f^=ie)}return r&&(n=e,ut(n)&&Xr(n)),e.v}function ir(e){var t=ge;try{return ge=!0,e()}finally{ge=t}}const Ki=-7169;function $e(e,t){e.f=e.f&Ki|t}function Qi(e){S===null&&P===null&&Pi(),P!==null&&P.f&ie&&S===null&&Ti(),rr&&Ei()}function es(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function Ge(e,t,r,i=!0){var n=(e&Ue)!==0,s=S,l={ctx:re,deps:null,nodes_start:null,nodes_end:null,f:e|Te,first:null,fn:t,last:null,next:null,parent:n?null:s,prev:null,teardown:null,transitions:null,wv:0};if(r){var v=Ze;try{nn(!0),nr(l),l.f|=_i}catch(a){throw Re(l),a}finally{nn(v)}}else t!==null&&Nt(l);var c=r&&l.deps===null&&l.first===null&&l.nodes_start===null&&l.teardown===null&&(l.f&(Dr|pt))===0;if(!c&&!n&&i&&(s!==null&&es(l,s),P!==null&&P.f&ue)){var f=P;(f.effects??(f.effects=[])).push(l)}return l}function ts(e){const t=Ge(bt,null,!1);return $e(t,X),t.teardown=e,t}function rs(e){Qi();var t=S!==null&&(S.f&Ee)!==0&&re!==null&&!re.m;if(t){var r=re;(r.e??(r.e=[])).push({fn:e,effect:S,reaction:P})}else{var i=dn(e);return i}}function ns(e){const t=Ge(Ue,e,!0);return()=>{Re(t)}}function is(e){const t=Ge(Ue,e,!0);return(r={})=>new Promise(i=>{r.outro?lr(t,()=>{Re(t),i(void 0)}):(Re(t),i(void 0))})}function dn(e){return Ge(jr,e,!1)}function vn(e){return Ge(bt,e,!0)}function D(e,t=[],r=Kt){const i=t.map(r);return sr(()=>e(...i.map(u)))}function sr(e,t=0){return Ge(bt|Ut|t,e,!0)}function or(e,t=!0){return Ge(bt|Ee,e,!0,t)}function _n(e){var t=e.teardown;if(t!==null){const r=rr,i=P;sn(!0),ye(null);try{t.call(null)}finally{sn(r),ye(i)}}}function hn(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){var i=r.next;Re(r,t),r=i}}function ss(e){for(var t=e.first;t!==null;){var r=t.next;t.f&Ee||Re(t),t=r}}function Re(e,t=!0){var r=!1;if((t||e.f&Ir)&&e.nodes_start!==null){for(var i=e.nodes_start,n=e.nodes_end;i!==null;){var s=i===n?null:pe(i);i.remove(),i=s}r=!0}hn(e,t&&!r),Ot(e,0),$e(e,yt);var l=e.transitions;if(l!==null)for(const c of l)c.stop();_n(e);var v=e.parent;v!==null&&v.first!==null&&mn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=null}function mn(e){var t=e.parent,r=e.prev,i=e.next;r!==null&&(r.next=i),i!==null&&(i.prev=r),t!==null&&(t.first===e&&(t.first=i),t.last===e&&(t.last=r))}function lr(e,t){var r=[];bn(e,r,!0),os(r,()=>{Re(e),t&&t()})}function os(e,t){var r=e.length;if(r>0){var i=()=>--r||t();for(var n of e)n.out(i)}else t()}function bn(e,t,r){if(!(e.f&We)){if(e.f^=We,e.transitions!==null)for(const l of e.transitions)(l.is_global||r)&&t.push(l);for(var i=e.first;i!==null;){var n=i.next,s=(i.f&Xt)!==0||(i.f&Ee)!==0;bn(i,t,s?r:!1),i=n}}}function pn(e){gn(e,!0)}function gn(e,t){if(e.f&We){e.f^=We,e.f&X||(e.f^=X),ut(e)&&($e(e,Te),Nt(e));for(var r=e.first;r!==null;){var i=r.next,n=(r.f&Xt)!==0||(r.f&Ee)!==0;gn(r,n?t:!1),r=i}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}let re=null;function yn(e){re=e}function xn(e,t=!1,r){re={p:re,c:null,e:null,m:!1,s:e,x:null,l:null}}function wn(e){const t=re;if(t!==null){e!==void 0&&(t.x=e);const l=t.e;if(l!==null){var r=S,i=P;t.e=null;try{for(var n=0;n<l.length;n++){var s=l[n];xe(s.effect),ye(s.reaction),dn(s.fn)}}finally{xe(r),ye(i)}}re=t.p,t.m=!0}return e||{}}function $n(){return!0}const ls=["touchstart","touchmove"];function as(e){return ls.includes(e)}let kn=!1;function En(){kn||(kn=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var t;if(!e.defaultPrevented)for(const r of e.target.elements)(t=r.__on_r)==null||t.call(r)})},{capture:!0}))}function Tn(e){var t=P,r=S;ye(null),xe(null);try{return e()}finally{ye(t),xe(r)}}function us(e,t,r,i=r){e.addEventListener(t,()=>Tn(r));const n=e.__on_r;n?e.__on_r=()=>{n(),i(!0)}:e.__on_r=()=>i(!0),En()}const Pn=new Set,ar=new Set;function cs(e,t,r,i={}){function n(s){if(i.capture||ct.call(t,s),!s.cancelBubble)return Tn(()=>r==null?void 0:r.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Gr(()=>{t.addEventListener(e,n,i)}):t.addEventListener(e,n,i),n}function ne(e,t,r,i,n){var s={capture:i,passive:n},l=cs(e,t,r,s);(t===document.body||t===window||t===document)&&ts(()=>{t.removeEventListener(e,l,s)})}function fs(e){for(var t=0;t<e.length;t++)Pn.add(e[t]);for(var r of ar)r(e)}function ct(e){var C;var t=this,r=t.ownerDocument,i=e.type,n=((C=e.composedPath)==null?void 0:C.call(e))||[],s=n[0]||e.target,l=0,v=e.__root;if(v){var c=n.indexOf(v);if(c!==-1&&(t===document||t===window)){e.__root=t;return}var f=n.indexOf(t);if(f===-1)return;c<=f&&(l=c)}if(s=n[l]||e.target,s!==t){$t(e,"currentTarget",{configurable:!0,get(){return s||r}});var a=P,_=S;ye(null),xe(null);try{for(var d,m=[];s!==null;){var y=s.assignedSlot||s.parentNode||s.host||null;try{var $=s["__"+i];if($!==void 0&&!s.disabled)if(zr($)){var[q,...k]=$;q.apply(s,[e,...k])}else $.call(s,e)}catch(B){d?m.push(B):d=B}if(e.cancelBubble||y===t||y===null)break;s=y}if(d){for(let B of m)queueMicrotask(()=>{throw B});throw d}}finally{e.__root=t,delete e.currentTarget,ye(a),xe(_)}}}let se;function ds(){se=void 0}function vs(e){let t=null,r=O;var i;if(O){for(t=z,se===void 0&&(se=qe(document.head));se!==null&&(se.nodeType!==8||se.data!==Bt);)se=pe(se);se===null?me(!1):se=be(pe(se))}O||(i=document.head.appendChild(ot()));try{sr(()=>e(i),Ir)}finally{r&&(me(!0),se=z,be(t))}}function _s(e){var t=document.createElement("template");return t.innerHTML=e,t.content}function Ct(e,t){var r=S;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function Ye(e,t){var r=(t&di)!==0,i=(t&vi)!==0,n,s=!e.startsWith("<!>");return()=>{if(O)return Ct(z,null),z;n===void 0&&(n=_s(s?e:"<!>"+e),r||(n=qe(n)));var l=i||Kr?document.importNode(n,!0):n.cloneNode(!0);if(r){var v=qe(l),c=l.lastChild;Ct(v,c)}else Ct(l,l);return l}}function je(e,t){if(O){S.nodes_end=z,er();return}e!==null&&e.before(t)}function Rt(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=r,e.nodeValue=r+"")}function Sn(e,t){return An(e,t)}function hs(e,t){tr(),t.intro=t.intro??!1;const r=t.target,i=O,n=z;try{for(var s=qe(r);s&&(s.nodeType!==8||s.data!==Bt);)s=pe(s);if(!s)throw st;me(!0),be(s),er();const l=An(e,{...t,anchor:s});if(z===null||z.nodeType!==8||z.data!==Rr)throw Qt(),st;return me(!1),l}catch(l){if(l===st)return t.recover===!1&&Ai(),tr(),Fi(r),me(!1),Sn(e,t);throw l}finally{me(i),be(n),ds()}}const Qe=new Map;function An(e,{target:t,anchor:r,props:i={},events:n,context:s,intro:l=!0}){tr();var v=new Set,c=_=>{for(var d=0;d<_.length;d++){var m=_[d];if(!v.has(m)){v.add(m);var y=as(m);t.addEventListener(m,ct,{passive:y});var $=Qe.get(m);$===void 0?(document.addEventListener(m,ct,{passive:y}),Qe.set(m,1)):Qe.set(m,$+1)}}};c(bi(Pn)),ar.add(c);var f=void 0,a=is(()=>{var _=r??t.appendChild(ot());return or(()=>{if(s){xn({});var d=re;d.c=s}n&&(i.$$events=n),O&&Ct(_,null),f=e(_,i)||{},O&&(S.nodes_end=z),s&&wn()}),()=>{var y;for(var d of v){t.removeEventListener(d,ct);var m=Qe.get(d);--m===0?(document.removeEventListener(d,ct),Qe.delete(d)):Qe.set(d,m)}ar.delete(c),_!==r&&((y=_.parentNode)==null||y.removeChild(_))}});return ur.set(f,a),f}let ur=new WeakMap;function ms(e,t){const r=ur.get(e);return r?(ur.delete(e),r(t)):Promise.resolve()}function jt(e,t,r=!1){O&&er();var i=e,n=null,s=null,l=K,v=r?Xt:0,c=!1;const f=(_,d=!0)=>{c=!0,a(d,_)},a=(_,d)=>{if(l===(l=_))return;let m=!1;if(O){const y=i.data===Cr;!!l===y&&(i=qi(),be(i),me(!1),m=!0)}l?(n?pn(n):d&&(n=or(()=>d(i))),s&&lr(s,()=>{s=null})):(s?pn(s):d&&(s=or(()=>d(i))),n&&lr(n,()=>{n=null})),m&&me(!0)};sr(()=>{c=!1,t(f),c||a(null,null)},v),O&&(i=z)}function bs(e,t){Gr(()=>{var r=e.getRootNode(),i=r.host?r:r.head??r.ownerDocument.head;if(!i.querySelector("#"+t.hash)){const n=document.createElement("style");n.id=t.hash,n.textContent=t.code,i.appendChild(n)}})}function On(e){if(O){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var i=e.value;Se(e,"value",null),e.value=i}if(e.hasAttribute("checked")){var n=e.checked;Se(e,"checked",null),e.checked=n}}};e.__on_r=r,wi(r),En()}}function Se(e,t,r,i){var n=e.__attributes??(e.__attributes={});O&&(n[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||n[t]!==(n[t]=r)&&(t==="style"&&"__styles"in e&&(e.__styles={}),t==="loading"&&(e[hi]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Nn(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function p(e,t,r){var i=P,n=S;let s=O;O&&me(!1),ye(null),xe(null);try{(cr.has(e.nodeName)||!customElements||customElements.get(e.tagName.toLowerCase())?Nn(e).includes(t):r&&typeof r=="object")?e[t]=r:Se(e,t,r==null?r:String(r))}finally{ye(i),xe(n),s&&me(!0)}}var cr=new Map;function Nn(e){var t=cr.get(e.nodeName);if(t)return t;cr.set(e.nodeName,t=[]);for(var r,i=e,n=Element.prototype;n!==i;){r=pi(i);for(var s in r)r[s].set&&t.push(s);i=Vr(i)}return t}function ke(e,t,r){var i=e.__className,n=ps(t);O&&e.className===n?e.__className=n:(i!==n||O&&e.className!==n)&&(t==null?e.removeAttribute("class"):e.className=n,e.__className=n)}function ps(e,t){return(e??"")+""}function Cn(e,t,r=t){us(e,"input",i=>{var n=i?e.defaultValue:e.value;if(n=fr(e)?dr(n):n,r(n),n!==(n=t())){var s=e.selectionStart,l=e.selectionEnd;e.value=n??"",l!==null&&(e.selectionStart=s,e.selectionEnd=Math.min(l,e.value.length))}}),(O&&e.defaultValue!==e.value||ir(t)==null&&e.value)&&r(fr(e)?dr(e.value):e.value),vn(()=>{var i=t();fr(e)&&i===dr(e.value)||e.type==="date"&&!i&&!e.value||i!==e.value&&(e.value=i??"")})}function fr(e){var t=e.type;return t==="number"||t==="range"}function dr(e){return e===""?null:+e}let It=!1;function gs(e){var t=It;try{return It=!1,[e(),It]}finally{It=t}}function ce(e,t,r,i){var Ie;var n=(r&H)!==0,s=!0,l=(r&ci)!==0,v=(r&fi)!==0,c=!1,f;l?[f,c]=gs(()=>e[t]):f=e[t];var a=xt in e||Lr in e,_=l&&(((Ie=Me(e,t))==null?void 0:Ie.set)??(a&&t in e&&(Y=>e[t]=Y)))||void 0,d=i,m=!0,y=!1,$=()=>(y=!0,m&&(m=!1,v?d=ir(i):d=i),d);f===void 0&&i!==void 0&&(_&&s&&Oi(),f=$(),_&&_(f));var q;if(q=()=>{var Y=e[t];return Y===void 0?$():(m=!0,y=!1,Y)},!(r&mt))return q;if(_){var k=e.$$legacy;return function(Y,V){return arguments.length>0?((!V||k||c)&&_(V?q():Y),Y):q()}}var C=!1,B=Br(f),le=Kt(()=>{var Y=q(),V=u(B);return C?(C=!1,V):B.v=Y});return n||(le.equals=Hr),function(Y,V){if(arguments.length>0){const J=V?u(le):l?N(Y):Y;return le.equals(J)||(C=!0,g(B,J),y&&d!==void 0&&(d=J),ir(()=>u(le))),Y}return u(le)}}function ys(e){return new xs(e)}class xs{constructor(t){Or(this,Ae);Or(this,oe);var s;var r=new Map,i=(l,v)=>{var c=Br(v);return r.set(l,c),c};const n=new Proxy({...t.props||{},$$events:{}},{get(l,v){return u(r.get(v)??i(v,Reflect.get(l,v)))},has(l,v){return v===Lr?!0:(u(r.get(v)??i(v,Reflect.get(l,v))),Reflect.has(l,v))},set(l,v,c){return g(r.get(v)??i(v,c),c),Reflect.set(l,v,c)}});Nr(this,oe,(t.hydrate?hs:Sn)(t.component,{target:t.target,anchor:t.anchor,props:n,context:t.context,intro:t.intro??!1,recover:t.recover})),(!((s=t==null?void 0:t.props)!=null&&s.$$host)||t.sync===!1)&&te(),Nr(this,Ae,n.$$events);for(const l of Object.keys(Q(this,oe)))l==="$set"||l==="$destroy"||l==="$on"||$t(this,l,{get(){return Q(this,oe)[l]},set(v){Q(this,oe)[l]=v},enumerable:!0});Q(this,oe).$set=l=>{Object.assign(n,l)},Q(this,oe).$destroy=()=>{ms(Q(this,oe))}}$set(t){Q(this,oe).$set(t)}$on(t,r){Q(this,Ae)[t]=Q(this,Ae)[t]||[];const i=(...n)=>r.call(this,...n);return Q(this,Ae)[t].push(i),()=>{Q(this,Ae)[t]=Q(this,Ae)[t].filter(n=>n!==i)}}$destroy(){Q(this,oe).$destroy()}}Ae=new WeakMap,oe=new WeakMap;let Rn;typeof HTMLElement=="function"&&(Rn=class extends HTMLElement{constructor(t,r,i){super();_e(this,"$$ctor");_e(this,"$$s");_e(this,"$$c");_e(this,"$$cn",!1);_e(this,"$$d",{});_e(this,"$$r",!1);_e(this,"$$p_d",{});_e(this,"$$l",{});_e(this,"$$l_u",new Map);_e(this,"$$me");this.$$ctor=t,this.$$s=r,i&&this.attachShadow({mode:"open"})}addEventListener(t,r,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const n=this.$$c.$on(t,r);this.$$l_u.set(r,n)}super.addEventListener(t,r,i)}removeEventListener(t,r,i){if(super.removeEventListener(t,r,i),this.$$c){const n=this.$$l_u.get(r);n&&(n(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(n){return s=>{const l=document.createElement("slot");n!=="default"&&(l.name=n),je(s,l)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},i=ws(this);for(const n of this.$$s)n in i&&(n==="default"&&!this.$$d.children?(this.$$d.children=t(n),r.default=!0):r[n]=t(n));for(const n of this.attributes){const s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=Dt(s,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=ys({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=ns(()=>{vn(()=>{var n;this.$$r=!0;for(const s of wt(this.$$c)){if(!((n=this.$$p_d[s])!=null&&n.reflect))continue;this.$$d[s]=this.$$c[s];const l=Dt(s,this.$$d[s],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,l)}this.$$r=!1})});for(const n in this.$$l)for(const s of this.$$l[n]){const l=this.$$c.$on(n,s);this.$$l_u.set(s,l)}this.$$l={}}}attributeChangedCallback(t,r,i){var n;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Dt(t,i,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return wt(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function Dt(e,t,r,i){var s;const n=(s=r[e])==null?void 0:s.type;if(t=n==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!r[e])return t;if(i==="toAttribute")switch(n){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(n){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function ws(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function $s(e,t,r,i,n,s){let l=class extends Rn{constructor(){super(e,r,n),this.$$p_d=t}static get observedAttributes(){return wt(t).map(v=>(t[v].attribute||v).toLowerCase())}};return wt(t).forEach(v=>{$t(l.prototype,v,{get(){return this.$$c&&v in this.$$c?this.$$c[v]:this.$$d[v]},set(c){var _;c=Dt(v,c,t),this.$$d[v]=c;var f=this.$$c;if(f){var a=(_=Me(f,v))==null?void 0:_.get;a?f[v]=c:f.$set({[v]:c})}}})}),i.forEach(v=>{$t(l.prototype,v,{get(){var c;return(c=this.$$c)==null?void 0:c[v]}})}),e.element=l,l}const Lt={version:"0.50.0-alpha.009"};function ks(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var et={},vr,jn;function Es(){if(jn)return vr;jn=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,n=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,v=/^\s+|\s+$/g,c=`
|
|
2
|
-
|
|
3
|
-
|
|
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.1"};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
|
+
`,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
|
+
@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;}
|
|
4
5
|
/*!
|
|
5
6
|
* Bootstrap v5.1.0 (https://getbootstrap.com/)
|
|
6
7
|
* Copyright 2011-2021 The Bootstrap Authors
|
|
7
8
|
* Copyright 2011-2021 Twitter, Inc.
|
|
8
9
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
9
|
-
*/.svelte-
|
|
10
|
-
.svelte-
|
|
11
|
-
.svelte-
|
|
10
|
+
*/.svelte-1pnb87x,
|
|
11
|
+
.svelte-1pnb87x::before,
|
|
12
|
+
.svelte-1pnb87x::after {box-sizing:border-box;}
|
|
12
13
|
@media (prefers-reduced-motion: no-preference) {:host {scroll-behavior:smooth;}
|
|
13
14
|
}
|
|
14
15
|
@media (min-width: 1200px) {
|
|
@@ -18,19 +19,19 @@ var So=Object.defineProperty;var ai=R=>{throw TypeError(R)};var Ao=(R,L,H)=>L in
|
|
|
18
19
|
@media (min-width: 1200px) {
|
|
19
20
|
}
|
|
20
21
|
@media (min-width: 1200px) {
|
|
21
|
-
}table.svelte-
|
|
22
|
-
tbody.svelte-
|
|
23
|
-
tr.svelte-
|
|
24
|
-
td.svelte-
|
|
25
|
-
button.svelte-
|
|
22
|
+
}table.svelte-1pnb87x {caption-side:bottom;border-collapse:collapse;}
|
|
23
|
+
tbody.svelte-1pnb87x,
|
|
24
|
+
tr.svelte-1pnb87x,
|
|
25
|
+
td.svelte-1pnb87x {border-color:inherit;border-style:solid;border-width:0;}button.svelte-1pnb87x {border-radius:0;}button.svelte-1pnb87x:focus:not(:focus-visible) {outline:0;}input.svelte-1pnb87x,
|
|
26
|
+
button.svelte-1pnb87x {margin:0;font-family:inherit;font-size:inherit;line-height:inherit;}button.svelte-1pnb87x {text-transform:none;}button.svelte-1pnb87x {-webkit-appearance:button;}button.svelte-1pnb87x:not(:disabled) {cursor:pointer;}.svelte-1pnb87x::-moz-focus-inner {padding:0;border-style:none;}
|
|
26
27
|
@media (min-width: 1200px) {
|
|
27
|
-
}.svelte-
|
|
28
|
-
.svelte-
|
|
29
|
-
.svelte-
|
|
30
|
-
.svelte-
|
|
31
|
-
.svelte-
|
|
32
|
-
.svelte-
|
|
33
|
-
.svelte-
|
|
28
|
+
}.svelte-1pnb87x::-webkit-datetime-edit-fields-wrapper,
|
|
29
|
+
.svelte-1pnb87x::-webkit-datetime-edit-text,
|
|
30
|
+
.svelte-1pnb87x::-webkit-datetime-edit-minute,
|
|
31
|
+
.svelte-1pnb87x::-webkit-datetime-edit-hour-field,
|
|
32
|
+
.svelte-1pnb87x::-webkit-datetime-edit-day-field,
|
|
33
|
+
.svelte-1pnb87x::-webkit-datetime-edit-month-field,
|
|
34
|
+
.svelte-1pnb87x::-webkit-datetime-edit-year-field {padding:0;}.svelte-1pnb87x::-webkit-inner-spin-button {height:auto;}
|
|
34
35
|
/* rtl:raw:
|
|
35
36
|
[type="tel"],
|
|
36
37
|
[type="url"],
|
|
@@ -38,13 +39,13 @@ button.svelte-1i60x2m {margin:0;font-family:inherit;font-size:inherit;line-heigh
|
|
|
38
39
|
[type="number"] {
|
|
39
40
|
direction: ltr;
|
|
40
41
|
}
|
|
41
|
-
*/.svelte-
|
|
42
|
-
@media (prefers-reduced-motion: reduce) {.btn.svelte-
|
|
43
|
-
}.btn.svelte-
|
|
44
|
-
.btn-group.svelte-
|
|
45
|
-
.btn-group.svelte-
|
|
46
|
-
.btn-group.svelte-
|
|
47
|
-
.btn-group.svelte-
|
|
42
|
+
*/.svelte-1pnb87x::-webkit-search-decoration {-webkit-appearance:none;}.svelte-1pnb87x::-webkit-color-swatch-wrapper {padding:0;}.svelte-1pnb87x::file-selector-button {font:inherit;}.svelte-1pnb87x::-webkit-file-upload-button {font:inherit;-webkit-appearance:button;}.btn.svelte-1pnb87x {display:inline-block;font-weight:400;line-height:1.5;color:#212529;text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;user-select:none;background-color:transparent;border:1px solid transparent;padding:0.375rem 0.75rem;font-size:1rem;border-radius:0.25rem;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;}
|
|
43
|
+
@media (prefers-reduced-motion: reduce) {.btn.svelte-1pnb87x {transition:none;}
|
|
44
|
+
}.btn.svelte-1pnb87x:hover {color:#212529;} .btn.svelte-1pnb87x:focus {outline:0;box-shadow:0 0 0 0.25rem rgba(13, 110, 253, 0.25);}.btn.svelte-1pnb87x:disabled {pointer-events:none;opacity:0.65;}.btn-primary.svelte-1pnb87x {color:#fff;background-color:#0d6efd;border-color:#0d6efd;}.btn-primary.svelte-1pnb87x:hover {color:#fff;background-color:rgb(11.05, 93.5, 215.05);border-color:rgb(10.4, 88, 202.4);} .btn-primary.svelte-1pnb87x:focus {color:#fff;background-color:rgb(11.05, 93.5, 215.05);border-color:rgb(10.4, 88, 202.4);box-shadow:0 0 0 0.25rem rgba(49.3, 131.75, 253.3, 0.5);} .btn-primary.svelte-1pnb87x:active {color:#fff;background-color:rgb(10.4, 88, 202.4);border-color:rgb(9.75, 82.5, 189.75);} .btn-primary.svelte-1pnb87x:active:focus {box-shadow:0 0 0 0.25rem rgba(49.3, 131.75, 253.3, 0.5);}.btn-primary.svelte-1pnb87x:disabled {color:#fff;background-color:#0d6efd;border-color:#0d6efd;}.btn-warning.svelte-1pnb87x {color:#000;background-color:#ffc107;border-color:#ffc107;}.btn-warning.svelte-1pnb87x:hover {color:#000;background-color:rgb(255, 202.3, 44.2);border-color:rgb(255, 199.2, 31.8);} .btn-warning.svelte-1pnb87x:focus {color:#000;background-color:rgb(255, 202.3, 44.2);border-color:rgb(255, 199.2, 31.8);box-shadow:0 0 0 0.25rem rgba(216.75, 164.05, 5.95, 0.5);} .btn-warning.svelte-1pnb87x:active {color:#000;background-color:rgb(255, 205.4, 56.6);border-color:rgb(255, 199.2, 31.8);} .btn-warning.svelte-1pnb87x:active:focus {box-shadow:0 0 0 0.25rem rgba(216.75, 164.05, 5.95, 0.5);}.btn-warning.svelte-1pnb87x:disabled {color:#000;background-color:#ffc107;border-color:#ffc107;}.btn-light.svelte-1pnb87x {color:#000;background-color:#f8f9fa;border-color:#f8f9fa;}.btn-light.svelte-1pnb87x:hover {color:#000;background-color:rgb(249.05, 249.9, 250.75);border-color:rgb(248.7, 249.6, 250.5);} .btn-light.svelte-1pnb87x:focus {color:#000;background-color:rgb(249.05, 249.9, 250.75);border-color:rgb(248.7, 249.6, 250.5);box-shadow:0 0 0 0.25rem rgba(210.8, 211.65, 212.5, 0.5);} .btn-light.svelte-1pnb87x:active {color:#000;background-color:rgb(249.4, 250.2, 251);border-color:rgb(248.7, 249.6, 250.5);} .btn-light.svelte-1pnb87x:active:focus {box-shadow:0 0 0 0.25rem rgba(210.8, 211.65, 212.5, 0.5);}.btn-light.svelte-1pnb87x:disabled {color:#000;background-color:#f8f9fa;border-color:#f8f9fa;}.btn-sm.svelte-1pnb87x {padding:0.25rem 0.5rem;font-size:0.875rem;border-radius:0.2rem;}.btn-group.svelte-1pnb87x {position:relative;display:inline-flex;vertical-align:middle;}.btn-group.svelte-1pnb87x > .btn:where(.svelte-1pnb87x) {position:relative;flex:1 1 auto;}
|
|
45
|
+
.btn-group.svelte-1pnb87x > .btn:where(.svelte-1pnb87x):hover,
|
|
46
|
+
.btn-group.svelte-1pnb87x > .btn:where(.svelte-1pnb87x):focus,
|
|
47
|
+
.btn-group.svelte-1pnb87x > .btn:where(.svelte-1pnb87x):active {z-index:1;}.btn-group.svelte-1pnb87x > .btn:where(.svelte-1pnb87x):not(:first-child) {margin-left:-1px;}.btn-group.svelte-1pnb87x > .btn:where(.svelte-1pnb87x):not(:last-child):not(.dropdown-toggle) {border-top-right-radius:0;border-bottom-right-radius:0;}.btn-group.svelte-1pnb87x > .btn:where(.svelte-1pnb87x):nth-child(n+3),
|
|
48
|
+
.btn-group.svelte-1pnb87x > :where(.svelte-1pnb87x):not(.btn-check) + .btn:where(.svelte-1pnb87x) {border-top-left-radius:0;border-bottom-left-radius:0;}
|
|
48
49
|
@media (min-width: 576px) {
|
|
49
50
|
}
|
|
50
51
|
@media (min-width: 768px) {
|
|
@@ -70,4 +71,5 @@ button.svelte-1i60x2m {margin:0;font-family:inherit;font-size:inherit;line-heigh
|
|
|
70
71
|
@media (min-width: 1200px) {
|
|
71
72
|
}
|
|
72
73
|
@media print {
|
|
73
|
-
}`};function Ln(e,t){xn(t,!0),bs(e,Xs);function r(o,h){t.$$host.dispatchEvent(new CustomEvent(o,{detail:h}))}const i={joystick:!0,presets:!0,deletePreset:!0,addPreset:!0,switchPreset:!0,home:!0,zoom:{in:!0,out:!0},pan:!0,tilt:!0,clickToCenter:!0,settings:!0};let n=ce(t,"id",7,""),s=ce(t,"style",7,""),l=ce(t,"live_uri",7,""),v=ce(t,"media_type",7,"auto"),c=ce(t,"presets",23,()=>[]),f=ce(t,"position",7,"right-bottom"),a=ce(t,"configuration",7,i),_=ce(t,"current_preset",7,""),d=ce(t,"is_home",7,void 0),m=ce(t,"is_ptz_connected",7,void 0),y=ce(t,"is_ptz_panel_opened",7,void 0);const $=[{label:"Name",key:"name",copyTxt:!0},{label:"Token",key:"token",copyTxt:!0}],q=[{name:"goto",type:"icon",iconOrText:"arrow-right-circle"},{name:"delete",type:"icon",iconOrText:"x-circle-fill",btnClass:"danger"}];let k=G(void 0),C=G(N({})),B=G(""),le=G(""),Ie=G(""),Y=G(""),V=G("");const J={precision:50,speed:50};let ft=G(N(new Date().toLocaleTimeString())),tt=Kt(()=>{var o;return(o=c())==null?void 0:o.map(h=>({_id:h.token+"_"+h.name,name:h.name,token:h.token}))}),dt=G(!0),rt=G(!1),E=G(!1),x=G(!1),U=G(!1),vt=G(!1),pr=G(!1),Mt=G(!1),qt=G(!1),De=G("dpad"),Oe=G(!1),Le=G(N({top:0,left:0,width:0,height:0})),b={};rs(()=>{s()&&(g(C,N(Ss(s()))),g(B,N(zt(u(C),_r==null?void 0:_r.vars))),g(le,N(zt(u(C),hr==null?void 0:hr.vars))),g(Ie,N(zt(u(C),mr==null?void 0:mr.vars))),g(Y,N(zt(u(C),br==null?void 0:br.vars)))),m()===""&&m(!0),m()||m(!1),typeof m()=="string"&&m(m()==="true"||m()==="yes"),y()===""&&y(!0),y()||y(!1),typeof y()=="string"&&y(y()==="true"||y()==="yes"),d()===""&&d(!0),d()||d(!1),typeof d()=="string"&&d(d()==="true"||d()==="yes"),typeof a()=="string"&&a(JSON.parse(a())),typeof c()=="string"&&c(JSON.parse(c()))}),setInterval(()=>{g(ft,N(new Date().toLocaleTimeString()))},1e3);function zn(o){var w;if(!((w=a())!=null&&w.zoom))return console.error("Zoom is not enabled in the configuration");if(!a().zoom[o])return console.error(`Zoom ${o} is not enabled in the configuration`);const h={time:new Date,id:n(),movementSettings:J,direction:o};r("zoomAction",h)}function Ws(){var o;if(!((o=a())!=null&&o.home))return console.error("Go to home is not enabled in the configuration");n(),r("goToHome",{id:n(),movementSettings:J})}function Zs(){var h;if(!((h=a())!=null&&h.addPreset))return console.error("Add scene to preset is not enabled in the configuration");const o={time:new Date,id:n()};r("setPreset",o)}function Ks(){var w,T;if(!((w=a())!=null&&w.clickToCenter))return console.error("Click to center is not enabled in the configuration");const o=(T=u(k))==null?void 0:T.getBoundingClientRect(),h=Object.assign({time:new Date,id:n(),movementSettings:J,htmlVideoElementWidth:o==null?void 0:o.width,htmlVideoElementHeight:o==null?void 0:o.height},u(Le));r("goToSelectedArea",h),g(Oe,!1),g(Le,N({top:0,left:0,width:0,height:0})),b={}}function Qs(){var o;if(!((o=a())!=null&&o.presets))return console.error("Presets is not enabled in the configuration");g(x,!u(x))}function eo(){var o;if(!((o=a())!=null&&o.addPreset))return console.error("Add scene to preset is not enabled in the configuration");g(U,!u(U))}function to(){var o;if(!((o=a())!=null&&o.home))return console.error("Go to home is not enabled in the configuration");g(Mt,!u(Mt))}function ro(o){var w,T,M;if(!((w=a())!=null&&w.switchPreset))return console.error("Switch preset is not enabled in the configuration");const h=(M=(T=c())==null?void 0:T.find)==null?void 0:M.call(T,ve=>ve.token===o);if(h){const ve=Object.assign({time:new Date,playerId:n(),movementSettings:J},h);r("goToPreset",ve)}else console.error("Preset not found")}function no(){const o={time:new Date,id:n(),htmlVideoElement:u(k)};r("initVideo",o),u(k)&&(u(k).onloadedmetadata=()=>{g(E,!0)},u(k).onpause=()=>{g(dt,!0),g(rt,!1)},u(k).onplay=()=>{g(dt,!1),g(rt,!0)},u(k).onclick=h=>{var w;if(u(Oe)){const T=(w=u(k))==null?void 0:w.getBoundingClientRect(),M={x:h.clientX-(T==null?void 0:T.left),y:h.clientY-(T==null?void 0:T.top),width:0,height:0};b.start?(b={start:b.start,end:M},Ks()):b={start:M}}},u(k).onmousemove=h=>{var w,T,M,ve;if(u(Oe)){const ae={x:h.clientX,y:h.clientY};b.start&&(b={start:b.start,end:ae},g(Le,N({top:b.start.y>b.end.y?b.end.y:b.start.y,left:b.start.x>b.end.x?b.end.x:b.start.x,width:Math.abs((((w=b==null?void 0:b.start)==null?void 0:w.x)||0)-(((T=b==null?void 0:b.end)==null?void 0:T.x)||0)),height:Math.abs((((M=b==null?void 0:b.start)==null?void 0:M.y)||0)-(((ve=b==null?void 0:b.end)==null?void 0:ve.y)||0))})))}})}function io(o){var w,T;if(!((w=a())!=null&&w.deletePreset))return console.error("Delete preset is not enabled in the configuration");const h=(T=c())==null?void 0:T.find(M=>M.token===o);if(h){const M=Object.assign({time:new Date,playerId:n()},h);r("deletePreset",M)}else console.error("Preset not found")}function so(o){var h,w,T;if(!((h=a())!=null&&h.joystick)||(w=a())!=null&&w.pan||(T=a())!=null&&T.tilt)return console.error("Pan and Tilt on joystick are not enabled in the configuration");r("sendJoystickPosition",{id:n(),x:o.x,y:o.y,cardinalDirection:o.cardinalDirection,joyId:o.id,movementSettings:J})}function oo(o){var h,w;(h=a())!=null&&h.pan&&((w=a())!=null&&w.tilt)?r("sendDirection",{id:n(),movementSettings:J,direction:o.direction,joyId:o.id}):console.error("Pan and Tilt are not enabled in the configuration")}function lo(){g(qt,!u(qt))}function ao(){var o;if(!((o=a())!=null&&o.clickToCenter))return console.error("Click to center is not enabled in the configuration");g(Oe,!u(Oe))}function uo(){var o;if(u(De)==="dpad"){if(!((o=a())!=null&&o.joystick))return console.error("Joystick is not enabled in the configuration");g(De,"joystick")}else g(De,"dpad")}function co(){}function fo(o){var w,T;console.log(o,"presetclick"),g(x,!1);const h=(T=(w=c())==null?void 0:w.find(M=>o.itemId.includes(M.token+"_")))==null?void 0:T.token;switch(h&&g(V,N(h)),o.action){case"goto":g(pr,!0);break;case"delete":g(vt,!0);break;default:return console.error("Action not found")}}function vo(){if(!u(k))return console.error("Video element not found");u(k).paused?u(k).play():u(k).pause()}Vt({repoName:"@htmlbricks/hb-player-live",version:Lt.version}),Vt({repoName:"@htmlbricks/hb-pad-joystick",version:Lt.version}),Vt({repoName:"@htmlbricks/hb-table",version:Lt.version}),Vt({repoName:"@htmlbricks/hb-dialog",version:Lt.version});var Vn=Us();vs(o=>{var h=As();je(o,h)});var ze=tn(Vn);p(ze,"title","Presets"),D(()=>p(ze,"show",u(x)?"yes":"no")),p(ze,"hide_confirm","yes"),p(ze,"class","svelte-1i60x2m");var Mn=I(ze),_o=I(Mn);{var ho=o=>{var h=Os();D(()=>p(h,"style",u(Ie))),D(()=>p(h,"rows",JSON.stringify(u(tt)))),D(()=>p(h,"headers",JSON.stringify($))),D(()=>p(h,"actions",JSON.stringify(q))),p(h,"size","12"),D(()=>p(h,"disablepagination",u(tt).length<12?"yes":"no")),p(h,"class","svelte-1i60x2m"),ne("tableaction",h,w=>{fo(w.detail)}),je(o,h)};jt(_o,o=>{var h;(h=u(tt))!=null&&h.length&&o(ho)})}j(Mn),j(ze);var nt=A(ze,2);p(nt,"title","Add Scene to Preset"),D(()=>p(nt,"show",u(U)?"yes":"no")),p(nt,"class","svelte-1i60x2m");var He=A(nt,2);p(He,"title","Go to Home"),D(()=>p(He,"show",u(Mt)?"yes":"no")),p(He,"confirmlabel","GO"),p(He,"class","svelte-1i60x2m");var fe=A(He,2);D(()=>p(fe,"id","del_"+u(V))),D(()=>{var o,h;return p(fe,"title",`Go to Preset ${(u(V)?(h=(o=c())==null?void 0:o.find(w=>w.token===u(V)))==null?void 0:h.token:"")??""}`)}),D(()=>p(fe,"show",u(vt)?"yes":"no")),p(fe,"confirmlabel","delete"),p(fe,"confirm_btn_class","danger"),p(fe,"class","svelte-1i60x2m");var qn=I(fe),mo=I(qn);j(qn),j(fe);var de=A(fe,2);D(()=>p(de,"id","goto_"+u(V))),D(()=>{var o,h;return p(de,"title",`Go to Preset ${(u(V)?(h=(o=c())==null?void 0:o.find(w=>w.token===u(V)))==null?void 0:h.token:"")??""}`)}),D(()=>p(de,"show",u(pr)?"yes":"no")),p(de,"confirmlabel","go"),p(de,"confirm_btn_class","light"),p(de,"class","svelte-1i60x2m");var Fn=I(de),bo=I(Fn);j(Fn),j(de);var Ft=A(de,2);Ft.__mousemove=o=>{var h,w,T,M,ve;if(u(Oe)){const ae=(h=u(k))==null?void 0:h.getBoundingClientRect(),_t={x:o.clientX-(ae==null?void 0:ae.left),y:o.clientY-(ae==null?void 0:ae.top)};b.start&&(b={start:b.start,end:_t},g(Le,N({top:b.start.y>b.end.y?b.end.y:b.start.y,left:b.start.x>b.end.x?b.end.x:b.start.x,width:Math.abs((((w=b==null?void 0:b.start)==null?void 0:w.x)||0)-(((T=b==null?void 0:b.end)==null?void 0:T.x)||0)),height:Math.abs((((M=b==null?void 0:b.start)==null?void 0:M.y)||0)-(((ve=b==null?void 0:b.end)==null?void 0:ve.y)||0))})))}};var Ve=I(Ft);p(Ve,"no_controls","yes"),p(Ve,"id","player"),D(()=>p(Ve,"mediauri",l())),D(()=>p(Ve,"media_type",v())),D(()=>p(Ve,"style",u(B))),p(Ve,"class","svelte-1i60x2m");var Gn=A(Ve,2),Yn=A(Gn,2),po=A(Yn,2);{var go=o=>{var h=Js(),w=tn(h);{var T=ae=>{var _t=Hs(),Hn=I(_t),gr=I(Hn),yo=I(gr);{var xo=Z=>{var F=Ns();D(()=>p(F,"id","pad_"+u(De))),p(F,"pad_or_joystick","dpad"),p(F,"size","60px"),D(()=>p(F,"style",u(le))),p(F,"class","svelte-1i60x2m"),ne("sendDirection",F,Ne=>{oo(Ne.detail)}),je(Z,F)},wo=Z=>{var F=Cs();D(()=>p(F,"id","pad_"+u(De))),p(F,"pad_or_joystick","joystick"),p(F,"size","60px"),D(()=>p(F,"style",u(le))),p(F,"class","svelte-1i60x2m"),ne("sendJoystickPosition",F,Ne=>{so(Ne.detail)}),je(Z,F)};jt(yo,Z=>{u(De)==="dpad"?Z(xo):Z(wo,!1)})}j(gr);var yr=A(gr,2),xr=I(yr),wr=I(xr);wr.__click=[Rs,zn];var Bn=A(wr,2);Bn.__click=[js,zn],j(xr);var Gt=A(xr,2);Gt.__click=[Is,to];var $r=A(Gt,2);$r.__click=[Ds,ao],j(yr);var kr=A(yr,2),Jn=A(I(kr),2);On(Jn),j(kr);var Er=A(kr,2),Un=A(I(Er),2);On(Un),j(Er);var Tr=A(Er,2),Pr=I(Tr);Pr.__click=[Ls,lo];var Yt=A(Pr,2);Yt.__click=[zs,uo];var $o=A(Yt,2);$o.__click=[Vs,k],j(Tr);var Sr=A(Tr,2),Ar=I(Sr);Ar.__click=[Ms,eo];var ht=A(Ar,2);ht.__click=[qs,Qs];var ko=I(ht);Mi(),j(ht),j(Sr);var Xn=A(Sr,2),Be=I(Xn);Be.__click=[Fs,k];var Eo=I(Be);j(Be);var Je=A(Be,2);Je.__click=[Gs,vo];var To=I(Je);j(Je);var Ht=A(Je,2);Ht.__click=[Ys,co];var Wn=A(I(Ht),2),Zn=I(Wn),Po=I(Zn,!0);j(Zn),j(Wn),j(Ht),j(Xn),j(Hn),j(_t),D(Z=>{var F,Ne,it,Kn,Qn,ei,ti,ri,ni,ii,si,oi,li;wr.disabled=!((Ne=(F=a())==null?void 0:F.zoom)!=null&&Ne.in),Bn.disabled=!((Kn=(it=a())==null?void 0:it.zoom)!=null&&Kn.out),Gt.disabled=!((Qn=a())!=null&&Qn.home),ke(Gt,`btn btn-sm btn-${(d()?"primary":"light")??""} svelte-1i60x2m`),$r.disabled=!((ei=a())!=null&&ei.clickToCenter),ke($r,`btn btn-sm btn-${(u(Oe)?"primary":"light")??""} svelte-1i60x2m`),ke(Pr,`btn btn-sm btn-${(u(qt)?"primary":"light")??""} svelte-1i60x2m`),Yt.disabled=!((ti=a())!=null&&ti.joystick),ke(Yt,`btn btn-sm btn-${(u(De)&&u(De)==="dpad"?"light":"primary")??""} svelte-1i60x2m`),Ar.disabled=!((ri=a())!=null&&ri.addPreset),ht.disabled=!((ni=a())!=null&&ni.presets),ke(ht,`btn btn-sm btn-${(_()?"primary":"light")??""} svelte-1i60x2m`),Rt(ko,`${Z??""} `),Be.disabled=!u(E),ke(Be,`btn btn-sm btn-${(u(E)?(ii=u(k))!=null&&ii.muted?"warning":"primary":"light")??""} svelte-1i60x2m`),Se(Be,"aria-label",(si=u(k))!=null&&si.muted?"Unmute video":"Mute video"),ke(Eo,`bi bi-${((oi=u(k))!=null&&oi.muted||!u(k)?"volume-mute-fill":"volume-up-fill")??""} svelte-1i60x2m`),Je.disabled=!u(E),ke(Je,`btn btn-sm btn-${(u(E)?u(rt)?"primary":"warning":"light")??""} svelte-1i60x2m`),Se(Je,"aria-label",u(rt)?"Pause video":"Play video"),ke(To,`bi bi-${(u(dt)||!u(k)?"pause-fill":"play")??""} svelte-1i60x2m`),Ht.disabled=!((li=a())!=null&&li.settings),Rt(Po,u(ft))},[()=>{var Z,F,Ne;return _()&&((Z=c())!=null&&Z.find(it=>it.token===_()))?(Ne=(F=c())==null?void 0:F.find(it=>it.token===_()))==null?void 0:Ne.name:""}]),Cn(Jn,()=>J.speed,Z=>J.speed=Z),Cn(Un,()=>J.precision,Z=>J.precision=Z),je(ae,_t)};jt(w,ae=>{y()&&ae(T)})}var M=A(w,2);M.__click=[Bs,y,r,n];var ve=I(M);j(M),D(()=>{Se(M,"style",`left:${(y()?"500":"0")??""}px;`),ke(ve,`bi-${(y()?"caret-left-fill":"caret-right-fill")??""} svelte-1i60x2m`)}),je(o,h)};jt(po,o=>{m()&&o(go)})}return j(Ft),D(o=>{Rt(mo,`Are You sure to DELETE preset ${o??""}?`),Rt(bo,`Are You sure to GO to preset "${o??""}"?`),Se(Ft,"style",`cursor: ${(u(Oe)?"crosshair":"")??""};`),Se(Gn,"style",`display:${(u(Oe)?"inherit":"none")??""}; width:${u(Le).width??""}px; height:${u(Le).height??""}px;top:${u(Le).top??""}px;left:${u(Le).left??""}px;`),Se(Yn,"style",`display:${(u(qt)?"inherit":"none")??""}`)},[()=>{var o,h;return u(V)?(h=(o=c())==null?void 0:o.find(w=>w.token===u(V)))==null?void 0:h.token:""}]),ne("modalShow",ze,o=>{g(x,N(o.detail.show))}),ne("modalShow",nt,o=>{g(U,N(o.detail.show))}),ne("modalConfirm",nt,o=>{var h;(h=o==null?void 0:o.detail)!=null&&h.confirm&&Zs()}),ne("modalShow",He,o=>{g(Mt,N(o.detail.show))}),ne("modalConfirm",He,o=>{var h;(h=o==null?void 0:o.detail)!=null&&h.confirm&&Ws()}),ne("modalShow",fe,o=>{g(vt,N(o.detail.show))}),ne("modalConfirm",fe,o=>{var h;console.log(o.detail,"detail"),(h=o==null?void 0:o.detail)!=null&&h.confirm&&io(o.detail.id.split("del_")[1])}),ne("modalShow",de,o=>{g(pr,N(o.detail.show))}),ne("modalConfirm",de,o=>{var h;console.log(o.detail.id.split("goto")[1],"detail"),(h=o==null?void 0:o.detail)!=null&&h.confirm&&ro(o.detail.id.split("goto_")[1])}),ne("htmlVideoInit",Ve,o=>{console.log(o.detail,"detailvid"),g(k,N(o.detail.video)),no()}),je(e,Vn),wn({get id(){return n()},set id(o=""){n(o),te()},get style(){return s()},set style(o=""){s(o),te()},get live_uri(){return l()},set live_uri(o=""){l(o),te()},get media_type(){return v()},set media_type(o="auto"){v(o),te()},get presets(){return c()},set presets(o=[]){c(o),te()},get position(){return f()},set position(o="right-bottom"){f(o),te()},get configuration(){return a()},set configuration(o=i){a(o),te()},get current_preset(){return _()},set current_preset(o=""){_(o),te()},get is_home(){return d()},set is_home(o=void 0){d(o),te()},get is_ptz_connected(){return m()},set is_ptz_connected(o=void 0){m(o),te()},get is_ptz_panel_opened(){return y()},set is_ptz_panel_opened(o=void 0){y(o),te()}})}fs(["mousemove","click"]),customElements.define("hb-player-live-camera-ptz",$s(Ln,{id:{},style:{},live_uri:{},media_type:{},presets:{},position:{},configuration:{},current_preset:{},is_home:{},is_ptz_connected:{},is_ptz_panel_opened:{}},[],[],!0)),R.Component=Ln,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})})(this["player-live-camera-ptz"]=this["player-live-camera-ptz"]||{});
|
|
74
|
+
}`};function Lr(e,t){qn(t,!0),ms(e,eo);function n(u,x){t.$$host.dispatchEvent(new CustomEvent(u,{detail:x}))}const r={joystick:!0,presets:!0,deletePreset:!0,addPreset:!0,switchPreset:!0,home:!0,zoom:{in:!0,out:!0},pan:!0,tilt:!0,clickToCenter:!0,settings:!0};let i=ve(t,"id",7,""),s=ve(t,"live_uri",7,""),o=ve(t,"media_type",7,"auto"),a=ve(t,"presets",23,()=>[]),c=ve(t,"position",7,"right-bottom"),l=ve(t,"configuration",7,r),v=ve(t,"current_preset",7,""),h=ve(t,"is_home",7,void 0),p=ve(t,"is_ptz_connected",7,void 0),d=ve(t,"is_ptz_panel_opened",7,void 0);const b=[{label:"Name",key:"name",copyTxt:!0},{label:"Token",key:"token",copyTxt:!0}],g=[{name:"goto",type:"icon",iconOrText:"arrow-right-circle"},{name:"delete",type:"icon",iconOrText:"x-circle-fill",btnClass:"danger"}];let _=A(void 0);be({});let z=A(""),w=A(""),re=A(""),D=A("");const H={precision:50,speed:50};let vt=A(be(new Date().toLocaleTimeString())),he=Li(()=>a()?.map(u=>({_id:u.token+"_"+u.name,name:u.name,token:u.token}))),rt=A(!0),Ge=A(!1),Pe=A(!1),Ve=A(!1),it=A(!1),P=A(!1),m=A(!1),G=A(!1),st=A(!1),Se=A("dpad"),ge=A(!1),Ae=A(be({top:0,left:0,width:0,height:0})),$={};Zi(()=>{if(p()===""&&p(!0),p()||p(!1),typeof p()=="string"&&p(p()==="true"||p()==="yes"),d()===""&&d(!0),d()||d(!1),typeof d()=="string"&&d(d()==="true"||d()==="yes"),h()===""&&h(!0),h()||h(!1),typeof h()=="string"&&h(h()==="true"||h()==="yes"),typeof l()=="string")try{l(JSON.parse(l()))}catch{}if(typeof a()=="string")try{a(JSON.parse(a()))}catch{}}),setInterval(()=>{y(vt,new Date().toLocaleTimeString(),!0)},1e3);function zr(u){if(!l()?.zoom)return console.error("Zoom is not enabled in the configuration");if(!l().zoom[u])return console.error(`Zoom ${u} is not enabled in the configuration`);const x={time:new Date,id:i(),movementSettings:H,direction:u};n("zoomAction",x)}function to(){if(!l()?.home)return console.error("Go to home is not enabled in the configuration");i(),n("goToHome",{id:i(),movementSettings:H})}function no(){if(!l()?.addPreset)return console.error("Add scene to preset is not enabled in the configuration");const u={time:new Date,id:i()};n("setPreset",u)}function ro(){if(!l()?.clickToCenter)return console.error("Click to center is not enabled in the configuration");const u=f(_)?.getBoundingClientRect(),x=Object.assign({time:new Date,id:i(),movementSettings:H,htmlVideoElementWidth:u?.width,htmlVideoElementHeight:u?.height},f(Ae));n("goToSelectedArea",x),y(ge,!1),y(Ae,{top:0,left:0,width:0,height:0},!0),$={}}function io(){if(!l()?.presets)return console.error("Presets is not enabled in the configuration");y(Ve,!f(Ve))}function so(){if(!l()?.addPreset)return console.error("Add scene to preset is not enabled in the configuration");y(it,!f(it))}function oo(){if(!l()?.home)return console.error("Go to home is not enabled in the configuration");y(G,!f(G))}function lo(u){if(!l()?.switchPreset)return console.error("Switch preset is not enabled in the configuration");const x=a()?.find?.(j=>j.token===u);if(x){const j=Object.assign({time:new Date,playerId:i(),movementSettings:H},x);n("goToPreset",j)}else console.error("Preset not found")}function ao(){const u={time:new Date,id:i(),htmlVideoElement:f(_)};n("initVideo",u),f(_)&&(f(_).onloadedmetadata=()=>{y(Pe,!0)},f(_).onpause=()=>{y(rt,!0),y(Ge,!1)},f(_).onplay=()=>{y(rt,!1),y(Ge,!0)},f(_).onclick=x=>{if(f(ge)){const j=f(_)?.getBoundingClientRect(),Mt={x:x.clientX-j?.left,y:x.clientY-j?.top,width:0,height:0};$.start?($={start:$.start,end:Mt},ro()):$={start:Mt}}},f(_).onmousemove=x=>{if(f(ge)){const j={x:x.clientX,y:x.clientY};$.start&&($={start:$.start,end:j},y(Ae,{top:$.start.y>$.end.y?$.end.y:$.start.y,left:$.start.x>$.end.x?$.end.x:$.start.x,width:Math.abs(($?.start?.x||0)-($?.end?.x||0)),height:Math.abs(($?.start?.y||0)-($?.end?.y||0))},!0))}})}function uo(u){if(!l()?.deletePreset)return console.error("Delete preset is not enabled in the configuration");const x=a()?.find(j=>j.token===u);if(x){const j=Object.assign({time:new Date,playerId:i()},x);n("deletePreset",j)}else console.error("Preset not found")}function co(u){if(!l()?.joystick||l()?.pan||l()?.tilt)return console.error("Pan and Tilt on joystick are not enabled in the configuration");n("sendJoystickPosition",{id:i(),x:u.x,y:u.y,cardinalDirection:u.cardinalDirection,joyId:u.id,movementSettings:H})}function fo(u){l()?.pan&&l()?.tilt?n("sendDirection",{id:i(),movementSettings:H,direction:u.direction,joyId:u.id}):console.error("Pan and Tilt are not enabled in the configuration")}function vo(){y(st,!f(st))}function ho(){if(!l()?.clickToCenter)return console.error("Click to center is not enabled in the configuration");y(ge,!f(ge))}function po(){if(f(Se)==="dpad"){if(!l()?.joystick)return console.error("Joystick is not enabled in the configuration");y(Se,"joystick")}else y(Se,"dpad")}function bo(){}function _o(u){console.log(u,"presetclick"),y(Ve,!1);const x=a()?.find(j=>u.itemId.includes(j.token+"_"))?.token;switch(x&&y(D,x,!0),u.action){case"goto":y(m,!0);break;case"delete":y(P,!0);break;default:return console.error("Action not found")}}function go(){if(!f(_))return console.error("Video element not found");f(_).paused?f(_).play():f(_).pause()}It({repoName:"@htmlbricks/hb-player-live",version:Rt.version}),It({repoName:"@htmlbricks/hb-pad-joystick",version:Rt.version}),It({repoName:"@htmlbricks/hb-table",version:Rt.version}),It({repoName:"@htmlbricks/hb-dialog",version:Rt.version});var mo={get id(){return i()},set id(u=""){i(u),Q()},get live_uri(){return s()},set live_uri(u=""){s(u),Q()},get media_type(){return o()},set media_type(u="auto"){o(u),Q()},get presets(){return a()},set presets(u=[]){a(u),Q()},get position(){return c()},set position(u="right-bottom"){c(u),Q()},get configuration(){return l()},set configuration(u=r){l(u),Q()},get current_preset(){return v()},set current_preset(u=""){v(u),Q()},get is_home(){return h()},set is_home(u=void 0){h(u),Q()},get is_ptz_connected(){return p()},set is_ptz_connected(u=void 0){p(u),Q()},get is_ptz_panel_opened(){return d()},set is_ptz_panel_opened(u=void 0){d(u),Q()}},Fr=Qs();vs(u=>{var x=Is();Ee(u,x)});var Ce=sr(Fr);T(Ce,"title","Presets"),M(()=>T(Ce,"show",f(Ve)?"yes":"no")),T(Ce,"hide_confirm","yes"),L(Ce,1,"svelte-1pnb87x");var qr=N(Ce),xo=N(qr);{var yo=u=>{var x=js();Te(x,f(re)),M(()=>T(x,"rows",JSON.stringify(f(he)))),M(()=>T(x,"headers",JSON.stringify(b))),M(()=>T(x,"actions",JSON.stringify(g))),T(x,"size","12"),M(()=>T(x,"disablepagination",f(he)&&f(he).length<12?"yes":"no")),L(x,1,"svelte-1pnb87x"),X("tableaction",x,j=>{_o(j.detail)}),Ee(u,x)};Ct(xo,u=>{f(he)?.length&&u(yo)})}O(qr),O(Ce);var ot=C(Ce,2);T(ot,"title","Add Scene to Preset"),M(()=>T(ot,"show",f(it)?"yes":"no")),L(ot,1,"svelte-1pnb87x");var Ye=C(ot,2);T(Ye,"title","Go to Home"),M(()=>T(Ye,"show",f(G)?"yes":"no")),T(Ye,"confirmlabel","GO"),L(Ye,1,"svelte-1pnb87x");var se=C(Ye,2);M(()=>T(se,"id","del_"+f(D))),M(()=>T(se,"title",`Go to Preset ${(f(D)?a()?.find(u=>u.token===f(D))?.token:"")??""}`)),M(()=>T(se,"show",f(P)?"yes":"no")),T(se,"confirmlabel","delete"),T(se,"confirm_btn_class","danger"),L(se,1,"svelte-1pnb87x");var Gr=N(se),wo=N(Gr);O(Gr),O(se);var oe=C(se,2);M(()=>T(oe,"id","goto_"+f(D))),M(()=>T(oe,"title",`Go to Preset ${(f(D)?a()?.find(u=>u.token===f(D))?.token:"")??""}`)),M(()=>T(oe,"show",f(m)?"yes":"no")),T(oe,"confirmlabel","go"),T(oe,"confirm_btn_class","light"),L(oe,1,"svelte-1pnb87x");var Vr=N(oe),ko=N(Vr);O(Vr),O(oe);var jt=C(oe,2);jt.__mousemove=u=>{if(f(ge)){const x=f(_)?.getBoundingClientRect(),j={x:u.clientX-x?.left,y:u.clientY-x?.top};$.start&&($={start:$.start,end:j},y(Ae,{top:$.start.y>$.end.y?$.end.y:$.start.y,left:$.start.x>$.end.x?$.end.x:$.start.x,width:Math.abs(($?.start?.x||0)-($?.end?.x||0)),height:Math.abs(($?.start?.y||0)-($?.end?.y||0))},!0))}};var Oe=N(jt);T(Oe,"no_controls","yes"),T(Oe,"id","player"),M(()=>T(Oe,"mediauri",s())),M(()=>T(Oe,"media_type",o())),Te(Oe,f(z)),L(Oe,1,"svelte-1pnb87x");var Yr=C(Oe,2),Hr=C(Yr,2),$o=C(Hr,2);{var Eo=u=>{var x=Ks(),j=sr(x);{var Mt=dn=>{var vn=Xs(),Br=N(vn),hn=N(Br),Po=N(hn);{var So=V=>{var B=Ms();M(()=>T(B,"id","pad_"+f(Se))),T(B,"pad_or_joystick","dpad"),T(B,"size","60px"),Te(B,f(w)),L(B,1,"svelte-1pnb87x"),X("sendDirection",B,En=>{fo(En.detail)}),Ee(V,B)},Ao=V=>{var B=Ds();M(()=>T(B,"id","pad_"+f(Se))),T(B,"pad_or_joystick","joystick"),T(B,"size","60px"),Te(B,f(w)),L(B,1,"svelte-1pnb87x"),X("sendJoystickPosition",B,En=>{co(En.detail)}),Ee(V,B)};Ct(Po,V=>{f(Se)==="dpad"?V(So):V(Ao,!1)})}O(hn);var pn=C(hn,2),bn=N(pn),_n=N(bn);_n.__click=[Ls,zr];var Ur=C(_n,2);Ur.__click=[zs,zr],O(bn);var Lt=C(bn,2);Lt.__click=[Fs,oo];var gn=C(Lt,2);gn.__click=[qs,ho],O(pn);var mn=C(pn,2),Jr=C(N(mn),2);Or(Jr),O(mn);var xn=C(mn,2),Wr=C(N(xn),2);Or(Wr),O(xn);var yn=C(xn,2),wn=N(yn);wn.__click=[Gs,vo];var zt=C(wn,2);zt.__click=[Vs,po];var Co=C(zt,2);Co.__click=[Ys,_],O(yn);var kn=C(yn,2),$n=N(kn);$n.__click=[Hs,so];var ht=C($n,2);ht.__click=[Bs,io];var Oo=N(ht);Ei(),O(ht),O(kn);var Xr=C(kn,2),He=N(Xr);He.__click=[Us,_];var No=N(He);O(He);var Be=C(He,2);Be.__click=[Js,go];var Ro=N(Be);O(Be);var Ft=C(Be,2);Ft.__click=[Ws,bo];var Zr=C(N(Ft),2),Kr=N(Zr),Io=N(Kr,!0);O(Kr),O(Zr),O(Ft),O(Xr),O(Br),O(vn),M(V=>{_n.disabled=!l()?.zoom?.in,Ur.disabled=!l()?.zoom?.out,Lt.disabled=!l()?.home,L(Lt,1,`btn btn-sm btn-${h()?"primary":"light"}`,"svelte-1pnb87x"),gn.disabled=!l()?.clickToCenter,L(gn,1,`btn btn-sm btn-${f(ge)?"primary":"light"}`,"svelte-1pnb87x"),L(wn,1,`btn btn-sm btn-${f(st)?"primary":"light"}`,"svelte-1pnb87x"),zt.disabled=!l()?.joystick,L(zt,1,`btn btn-sm btn-${f(Se)&&f(Se)==="dpad"?"light":"primary"}`,"svelte-1pnb87x"),$n.disabled=!l()?.addPreset,ht.disabled=!l()?.presets,L(ht,1,`btn btn-sm btn-${v()?"primary":"light"}`,"svelte-1pnb87x"),At(Oo,`${V??""} `),He.disabled=!f(Pe),L(He,1,`btn btn-sm btn-${f(Pe)?f(_)?.muted?"warning":"primary":"light"}`,"svelte-1pnb87x"),dt(He,"aria-label",f(_)?.muted?"Unmute video":"Mute video"),L(No,1,`bi bi-${f(_)?.muted||!f(_)?"volume-mute-fill":"volume-up-fill"}`,"svelte-1pnb87x"),Be.disabled=!f(Pe),L(Be,1,`btn btn-sm btn-${f(Pe)?f(Ge)?"primary":"warning":"light"}`,"svelte-1pnb87x"),dt(Be,"aria-label",f(Ge)?"Pause video":"Play video"),L(Ro,1,`bi bi-${f(rt)||!f(_)?"pause-fill":"play"}`,"svelte-1pnb87x"),Ft.disabled=!l()?.settings,At(Io,f(vt))},[()=>v()&&a()?.find(V=>V.token===v())?a()?.find(V=>V.token===v())?.name:""]),Rr(Jr,()=>H.speed,V=>H.speed=V),Rr(Wr,()=>H.precision,V=>H.precision=V),Ee(dn,vn)};Ct(j,dn=>{d()&&dn(Mt)})}var Dt=C(j,2);Dt.__click=[Zs,d,n,i];var To=N(Dt);O(Dt),M(()=>{Te(Dt,`left:${d()?"500":"0"}px;`),L(To,1,`bi-${d()?"caret-left-fill":"caret-right-fill"}`,"svelte-1pnb87x")}),Ee(u,x)};Ct($o,u=>{p()&&u(Eo)})}return O(jt),M((u,x)=>{At(wo,`Are You sure to DELETE preset ${u??""}?`),At(ko,`Are You sure to GO to preset "${x??""}"?`),Te(jt,`cursor: ${f(ge)?"crosshair":""};`),Te(Yr,`display:${f(ge)?"inherit":"none"}; width:${f(Ae).width??""}px; height:${f(Ae).height??""}px;top:${f(Ae).top??""}px;left:${f(Ae).left??""}px;`),Te(Hr,`display:${f(st)?"inherit":"none"}`)},[()=>f(D)?a()?.find(u=>u.token===f(D))?.token:"",()=>f(D)?a()?.find(u=>u.token===f(D))?.token:""]),X("modalShow",Ce,u=>{y(Ve,u.detail.show,!0)}),X("modalShow",ot,u=>{y(it,u.detail.show,!0)}),X("modalConfirm",ot,u=>{u?.detail?.confirm&&no()}),X("modalShow",Ye,u=>{y(G,u.detail.show,!0)}),X("modalConfirm",Ye,u=>{u?.detail?.confirm&&to()}),X("modalShow",se,u=>{y(P,u.detail.show,!0)}),X("modalConfirm",se,u=>{console.log(u.detail,"detail"),u?.detail?.confirm&&uo(u.detail.id.split("del_")[1])}),X("modalShow",oe,u=>{y(m,u.detail.show,!0)}),X("modalConfirm",oe,u=>{console.log(u.detail.id.split("goto")[1],"detail"),u?.detail?.confirm&&lo(u.detail.id.split("goto_")[1])}),X("htmlVideoInit",Oe,u=>{console.log(u.detail,"detailvid"),y(_,u.detail.video,!0),ao()}),Ee(e,Fr),Gn(mo)}fs(["mousemove","click"]),customElements.define("hb-player-live-camera-ptz",As(Lr,{id:{},live_uri:{},media_type:{},presets:{},position:{},configuration:{},current_preset:{},is_home:{},is_ptz_connected:{},is_ptz_panel_opened:{}},[],[],!0)),Tn.Component=Lr,Object.defineProperty(Tn,Symbol.toStringTag,{value:"Module"})})(this["player-live-camera-ptz"]=this["player-live-camera-ptz"]||{});
|
|
75
|
+
//# sourceMappingURL=main.iife.js.map
|