@htmlbricks/hb-matrix-video 0.20.15 → 0.20.16
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/package.json +2 -2
- package/release/manifest.json +1 -1
- package/release/release.js +1 -1
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@htmlbricks/hb-matrix-video",
|
|
3
3
|
"displayName": "Svelte-Bootstrap matrix-video",
|
|
4
4
|
"description": "Svelte-Bootstrap matrix-video",
|
|
5
|
-
"version": "0.20.
|
|
5
|
+
"version": "0.20.16",
|
|
6
6
|
"main": "release/release.js",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"webcomponents"
|
|
76
76
|
],
|
|
77
77
|
"contributors": [],
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "7e27392790fac42c153fa19ab40d828149d31d08",
|
|
79
79
|
"dependencies": {
|
|
80
80
|
"style-to-object": "^0.3.0"
|
|
81
81
|
}
|
package/release/manifest.json
CHANGED
package/release/release.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var release=function(){"use strict";function t(){}function e(t){return t()}function n(){return Object.create(null)}function r(t){t.forEach(e)}function o(t){return"function"==typeof t}function i(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let s;function a(t,e){return s||(s=document.createElement("a")),s.href=e,t===s.href}const l="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function c(t,e){t.appendChild(e)}function u(t,e,n){t.insertBefore(e,n||null)}function d(t){t.parentNode&&t.parentNode.removeChild(t)}function f(t){return document.createElement(t)}function p(t){return document.createTextNode(t)}function g(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function h(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function m(t,e,n){e in t?t[e]="boolean"==typeof t[e]&&""===n||n:h(t,e,n)}function b(t,e,n,r){null==n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function v(t){const e={};for(const n of t)e[n.name]=n.value;return e}let y;function w(t){y=t}function $(){if(!y)throw new Error("Function called outside component initialization");return y}function x(){const t=$();return(e,n,{cancelable:r=!1}={})=>{const o=t.$$.callbacks[e];if(o){const i=function(t,e,{bubbles:n=!1,cancelable:r=!1}={}){const o=document.createEvent("CustomEvent");return o.initCustomEvent(t,n,r,e),o}(e,n,{cancelable:r});return o.slice().forEach((e=>{e.call(t,i)})),!i.defaultPrevented}return!0}}const E=[],k=[];let _=[];const C=[],L=Promise.resolve();let N=!1;function S(t){_.push(t)}const T=new Set;let M=0;function j(){if(0!==M)return;const t=y;do{try{for(;M<E.length;){const t=E[M];M++,w(t),A(t.$$)}}catch(t){throw E.length=0,M=0,t}for(w(null),E.length=0,M=0;k.length;)k.pop()();for(let t=0;t<_.length;t+=1){const e=_[t];T.has(e)||(T.add(e),e())}_.length=0}while(E.length);for(;C.length;)C.pop()();N=!1,T.clear(),w(t)}function A(t){if(null!==t.fragment){t.update(),r(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(S)}}const D=new Set;function I(t,e){t&&t.i&&(D.delete(t),t.i(e))}function O(t,e){t.d(1),e.delete(t.key)}function P(t,e,n,o,i,s,a,l,c,u,d,f){let p=t.length,g=s.length,h=p;const m={};for(;h--;)m[t[h].key]=h;const b=[],v=new Map,y=new Map,w=[];for(h=g;h--;){const t=f(i,s,h),r=n(t);let l=a.get(r);l?o&&w.push((()=>l.p(t,e))):(l=u(r,t),l.c()),v.set(r,b[h]=l),r in m&&y.set(r,Math.abs(h-m[r]))}const $=new Set,x=new Set;function E(t){I(t,1),t.m(l,d),a.set(t.key,t),d=t.first,g--}for(;p&&g;){const e=b[g-1],n=t[p-1],r=e.key,o=n.key;e===n?(d=e.first,p--,g--):v.has(o)?!a.has(r)||$.has(r)?E(e):x.has(o)?p--:y.get(r)>y.get(o)?(x.add(r),E(e)):($.add(o),p--):(c(n,a),p--)}for(;p--;){const e=t[p];v.has(e.key)||c(e,a)}for(;g;)E(b[g-1]);return r(w),b}function R(t,e){const n=t.$$;null!==n.fragment&&(!function(t){const e=[],n=[];_.forEach((r=>-1===t.indexOf(r)?e.push(r):n.push(r))),n.forEach((t=>t())),_=e}(n.after_update),r(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function z(t,e){-1===t.$$.dirty[0]&&(E.push(t),N||(N=!0,L.then(j)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function W(i,s,a,l,c,u,f,p=[-1]){const g=y;w(i);const h=i.$$={fragment:null,ctx:[],props:u,update:t,not_equal:c,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(g?g.$$.context:[])),callbacks:n(),dirty:p,skip_bound:!1,root:s.target||g.$$.root};f&&f(h.root);let m=!1;if(h.ctx=a?a(i,s.props||{},((t,e,...n)=>{const r=n.length?n[0]:e;return h.ctx&&c(h.ctx[t],h.ctx[t]=r)&&(!h.skip_bound&&h.bound[t]&&h.bound[t](r),m&&z(i,t)),e})):[],h.update(),m=!0,r(h.before_update),h.fragment=!!l&&l(h.ctx),s.target){if(s.hydrate){const t=function(t){return Array.from(t.childNodes)}(s.target);h.fragment&&h.fragment.l(t),t.forEach(d)}else h.fragment&&h.fragment.c();s.intro&&I(i.$$.fragment),function(t,n,i,s){const{fragment:a,after_update:l}=t.$$;a&&a.m(n,i),s||S((()=>{const n=t.$$.on_mount.map(e).filter(o);t.$$.on_destroy?t.$$.on_destroy.push(...n):r(n),t.$$.on_mount=[]})),l.forEach(S)}(i,s.target,s.anchor,s.customElement),j()}w(g)}let H;"function"==typeof HTMLElement&&(H=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(e).filter(o);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){r(this.$$.on_disconnect)}$destroy(){R(this,1),this.$destroy=t}$on(e,n){if(!o(n))return t;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(n),()=>{const t=r.indexOf(n);-1!==t&&r.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});var B="0.20.15";function F(t,e,n){var r,o,i,s,a;function l(){var c=Date.now()-s;c<e&&c>=0?r=setTimeout(l,e-c):(r=null,n||(a=t.apply(i,o),i=o=null))}null==e&&(e=100);var c=function(){i=this,o=arguments,s=Date.now();var c=n&&!r;return r||(r=setTimeout(l,e)),c&&(a=t.apply(i,o),i=o=null),a};return c.clear=function(){r&&(clearTimeout(r),r=null)},c.flush=function(){r&&(a=t.apply(i,o),i=o=null,clearTimeout(r),r=null)},c}F.debounce=F;var U=F,q=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,J=/\n/g,K=/^\s*/,V=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Y=/^:\s*/,G=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Q=/^[;\s]*/,X=/^\s+|\s+$/g,Z="";function tt(t){return t?t.replace(X,Z):Z}var et=function(t,e){var n,r=null;if(!t||"string"!=typeof t)return r;for(var o,i,s=function(t,e){if("string"!=typeof t)throw new TypeError("First argument must be a string");if(!t)return[];e=e||{};var n=1,r=1;function o(t){var e=t.match(J);e&&(n+=e.length);var o=t.lastIndexOf("\n");r=~o?t.length-o:r+t.length}function i(){var t={line:n,column:r};return function(e){return e.position=new s(t),c(),e}}function s(t){this.start=t,this.end={line:n,column:r},this.source=e.source}function a(o){var i=new Error(e.source+":"+n+":"+r+": "+o);if(i.reason=o,i.filename=e.source,i.line=n,i.column=r,i.source=t,!e.silent)throw i}function l(e){var n=e.exec(t);if(n){var r=n[0];return o(r),t=t.slice(r.length),n}}function c(){l(K)}function u(t){var e;for(t=t||[];e=d();)!1!==e&&t.push(e);return t}function d(){var e=i();if("/"==t.charAt(0)&&"*"==t.charAt(1)){for(var n=2;Z!=t.charAt(n)&&("*"!=t.charAt(n)||"/"!=t.charAt(n+1));)++n;if(n+=2,Z===t.charAt(n-1))return a("End of comment missing");var s=t.slice(2,n-2);return r+=2,o(s),t=t.slice(n),r+=2,e({type:"comment",comment:s})}}function f(){var t=i(),e=l(V);if(e){if(d(),!l(Y))return a("property missing ':'");var n=l(G),r=t({type:"declaration",property:tt(e[0].replace(q,Z)),value:n?tt(n[0].replace(q,Z)):Z});return l(Q),r}}return s.prototype.content=t,c(),function(){var t,e=[];for(u(e);t=f();)!1!==t&&(e.push(t),u(e));return e}()}(t),a="function"==typeof e,l=0,c=s.length;l<c;l++)o=(n=s[l]).property,i=n.value,a?e(o,i,n):i&&(r||(r={}),r[o]=i);return r};var nt,rt=(function(t,e){e.__esModule=!0,e.LanguageTranslator=e.addComponent=e.getChildStyleToPass=void 0,e.getChildStyleToPass=function(t,e){var n,r,o="";if(t&&(null==e?void 0:e.length)&&(null===(n=Object.keys(t))||void 0===n?void 0:n.length)&&(null===(r=null==e?void 0:e.filter((function(e){return Object.keys(t).includes(e.name)})))||void 0===r?void 0:r.length))for(var i=function(n){(null==e?void 0:e.filter((function(e){return e.name===n&&e.defaultValue!==t[n]})))&&(o+="".concat(n,":").concat(t[n],";"))},s=0,a=Object.keys(t);s<a.length;s++)i(a[s]);return o},e.addComponent=function(t){var e,n=(null===(e=null==t?void 0:t.repoName.split("/"))||void 0===e?void 0:e[1])||(null==t?void 0:t.repoName);if(!n)throw new Error("wrong componentPath "+(null==t?void 0:t.repoName));if(!(null==t?void 0:t.version))throw new Error("wrong version "+(null==t?void 0:t.version));var r=(null==t?void 0:t.iifePath)||"release/release.js";if(!document.getElementById(n+"-script"))try{var o=document.createElement("script");o.id=n+"-script",o.src="https://cdn.jsdelivr.net/npm/".concat(t.repoName,"@").concat(t.version,"/").concat(r),(null==t?void 0:t.local)&&location.href.includes("localhost")&&(o.src="".concat(t.local)),document.head.appendChild(o)}catch(t){console.warn(t)}};var n=function(){function t(t){if(!(null==t?void 0:t.dictionary))throw new Error("no dictionary provided");this.dictionary=t.dictionary,this.setLang(null==t?void 0:t.lang)}return t.prototype.setLang=function(e){e||(e=t.getDefaultLang()),this.lang=e},t.prototype.translateWord=function(e,n){return t.getDictionaryWord(e,this.dictionary,n||this.lang)},t.prototype.translateDate=function(e,n,r){return t.formatDate(e,n,r||this.lang)},t.getDefaultLang=function(){var t,e,n,r,o,i="en";return(null===navigator||void 0===navigator?void 0:navigator.languages)&&(null===(n=null===(e=null===(t=navigator.languages[0])||void 0===t?void 0:t.split("-")[0])||void 0===e?void 0:e.toLowerCase())||void 0===n?void 0:n.length)&&(i=null===(o=null===(r=navigator.languages[0])||void 0===r?void 0:r.split("-")[0])||void 0===o?void 0:o.toLowerCase()),i},t.getDictionaryWord=function(e,n,r){var o;if(!e)throw new Error("no wordKey provided");if(!n)throw new Error("no dictionary provided");if(r&&(null===(o=n[r])||void 0===o?void 0:o[e]))return n[r][e];var i="",s=t.getDefaultLang();if(!r||s!==r){var a=null==n?void 0:n[s];(null==a?void 0:a[e])&&(i=a[e])}return i},t.formatDate=function(e,n,r){if(!e)throw new Error("no date provided");if("function"!=typeof e.getMonth)throw new Error("wrong date format");return new Intl.DateTimeFormat(r||t.getDefaultLang(),n).format(e)},t}();e.LanguageTranslator=n}(nt={exports:{}},nt.exports),nt.exports),ot={vars:[],parts:[{name:"container",description:""},{name:"replacewithtext",description:""},{name:"video",description:""}]};const{window:it}=l;function st(t,e,n){const r=t.slice();return r[23]=e[n],r}function at(t,e,n){const r=t.slice();return r[26]=e[n],r}function lt(t){let e,n=[],r=new Map,o=t[1];const i=t=>t[23].row;for(let e=0;e<o.length;e+=1){let s=st(t,o,e),a=i(s);r.set(a,n[e]=gt(a,s))}return{c(){for(let t=0;t<n.length;t+=1)n[t].c();e=p("")},m(t,r){for(let e=0;e<n.length;e+=1)n[e]&&n[e].m(t,r);u(t,e,r)},p(t,s){26&s&&(o=t[1],n=P(n,s,i,1,t,o,r,e.parentNode,O,gt,e,st))},d(t){for(let e=0;e<n.length;e+=1)n[e].d(t);t&&d(e)}}}function ct(t){let e,n,r,o,i;return{c(){e=f("video"),n=f("source"),i=p("\n\t\t\t\t\t\t\t\tYour browser does not support the video tag."),h(n,"title",r=t[26].title),a(n.src,o=t[26].uri)||h(n,"src",o),h(n,"type","video/mp4"),e.controls=!0},m(t,r){u(t,e,r),c(e,n),c(e,i)},p(t,e){2&e&&r!==(r=t[26].title)&&h(n,"title",r),2&e&&!a(n.src,o=t[26].uri)&&h(n,"src",o)},d(t){t&&d(e)}}}function ut(t){let e,n;return{c(){e=f("hb-player-live-camera-ptz"),m(e,"media_type","whep"),m(e,"live_uri",n=t[26].uri+"/whep")},m(t,n){u(t,e,n)},p(t,r){2&r&&n!==(n=t[26].uri+"/whep")&&m(e,"live_uri",n)},d(t){t&&d(e)}}}function dt(t){let e,n;return{c(){e=f("hb-player-live"),m(e,"media_type","whep"),m(e,"mediauri",n=t[26].uri+"/whep")},m(t,n){u(t,e,n)},p(t,r){2&r&&n!==(n=t[26].uri+"/whep")&&m(e,"mediauri",n)},d(t){t&&d(e)}}}function ft(t){let e,n,r,o,i;return{c(){e=f("iframe"),h(e,"title",n=t[26].title),a(e.src,r=t[26].uri)||h(e,"src",r)},m(n,r){u(n,e,r),o||(i=g(e,"load",t[8]),o=!0)},p(t,o){2&o&&n!==(n=t[26].title)&&h(e,"title",n),2&o&&!a(e.src,r=t[26].uri)&&h(e,"src",r)},d(t){t&&d(e),o=!1,i()}}}function pt(t,e){let n,o,i,s;function a(t,e){return"iframe"===t[26].type?ft:"mediamtx-webrtc"===t[26].type?dt:"mediamtx-webrtc-ptz"===t[26].type?ut:"video"===t[26].type?ct:void 0}let l=a(e),c=l&&l(e);function p(...t){return e[10](e[26],...t)}return{key:t,first:null,c(){n=f("div"),c&&c.c(),h(n,"class","col"),b(n,"padding-right","0px"),b(n,"padding-left","0px"),b(n,"--bs-gutter-x","0px"),h(n,"id",o="select_"+e[26].id),this.first=n},m(t,r){u(t,n,r),c&&c.m(n,null),i||(s=[g(n,"mouseleave",e[9]),g(n,"mouseenter",p)],i=!0)},p(t,r){l===(l=a(e=t))&&c?c.p(e,r):(c&&c.d(1),c=l&&l(e),c&&(c.c(),c.m(n,null))),2&r&&o!==(o="select_"+e[26].id)&&h(n,"id",o)},d(t){t&&d(n),c&&c.d(),i=!1,r(s)}}}function gt(t,e){let n,r,o=[],i=new Map,s=e[23].items;const a=t=>t[26].id;for(let t=0;t<s.length;t+=1){let n=at(e,s,t),r=a(n);i.set(r,o[t]=pt(r,n))}return{key:t,first:null,c(){n=f("div");for(let t=0;t<o.length;t+=1)o[t].c();r=p(" "),h(n,"class","row"),this.first=n},m(t,e){u(t,n,e);for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(n,null);c(n,r)},p(t,l){e=t,26&l&&(s=e[23].items,o=P(o,l,a,1,e,s,i,n,O,pt,r,at))},d(t){t&&d(n);for(let t=0;t<o.length;t+=1)o[t].d()}}}function ht(e){let n,r,o,i=e[0]&&"object"==typeof e[0]&<(e);return{c(){n=f("div"),i&&i.c(),this.c=t,h(n,"id","matrix")},m(t,s){u(t,n,s),i&&i.m(n,null),r||(o=g(it,"resize",U(e[2],200)),r=!0)},p(t,[e]){t[0]&&"object"==typeof t[0]?i?i.p(t,e):(i=lt(t),i.c(),i.m(n,null)):i&&(i.d(1),i=null)},i:t,o:t,d(t){t&&d(n),i&&i.d(),r=!1,o()}}}function mt(t,e,n){const r=$(),o=x();function i(t,e){o(t,e),r.dispatchEvent&&r.dispatchEvent(new CustomEvent(t,{detail:e}))}let s,a,l,c,u,d,f,{id:p}=e,{style:g}=e,{items:h}=e,m=[];function b(){if(l&&a&&c){const t=16/9,e=l/a;let r,o;if(1===h.length)r=1,o=1;else if(l<450)o=1,r=h.length;else if(2===h.length)e>t?(r=1,o=2):(r=2,o=1);else if(e>t){let e=1/0;for(let n=1;n<=h.length;n++){const i=Math.ceil(h.length/n),s=a/n*t*i;if(s<=l){const t=l-s;t<e&&(e=t,r=n,o=i)}}}else{let e=1/0;for(let n=1;n<=h.length;n++){const i=Math.ceil(h.length/n),s=l/n/t*i;if(s<=a){const t=a-s;t<e&&(e=t,o=n,r=i)}}}if(u=r,d=o,u&&d){const t=[];for(let e=0;e<u;e++)for(let n=0;n<d;n++){const r=h[e*d+n];r&&(t[e]||(t[e]={row:e,items:[]}),t[e].items[n]=r)}n(1,m=t),console.log(m,u,d,"drawItems")}}}function v(){var t,e,n;if(window.innerWidth&&window.innerHeight){const o=null===(t=null==r?void 0:r.shadowRoot)||void 0===t?void 0:t.getElementById("matrix");(null==o?void 0:o.style)&&(a=window.innerHeight-(null===(n=null===(e=null==r?void 0:r.shadowRoot)||void 0===e?void 0:e.getElementById("matrix"))||void 0===n?void 0:n.offsetTop),l=Number(o.clientWidth),c=l>a?"landscape":"portrait",o.style.height=a+"px",console.log(`setSize w:${l} h:${a}`),b())}}function y(t){f=t,i("hoverItem",{id:t,selected:!!f})}function w(t){var e;const n=t;try{null===(e=n.contentWindow)||void 0===e||e.document.addEventListener("click",(()=>{f?i("clickItem",{id:f}):console.info("No video selected")}))}catch(t){console.warn("error adding click event to iframe",t)}}rt.addComponent({repoName:"@htmlbricks/hb-player-live",version:B}),function(t){$().$$.on_mount.push(t)}((()=>{v()}));return t.$$set=t=>{"id"in t&&n(5,p=t.id),"style"in t&&n(6,g=t.style),"items"in t&&n(0,h=t.items)},t.$$.update=()=>{if(225&t.$$.dirty&&(p||n(5,p=""),g&&(n(7,s=et(g)),rt.getChildStyleToPass(s,null==ot?void 0:ot.vars)),"string"==typeof h))try{n(0,h=JSON.parse(h)),b()}catch(t){console.error("error parsing items",t)}},[h,m,v,y,w,p,g,s,t=>w(t.target),t=>y(),(t,e)=>y(t.id)]}class bt extends H{constructor(t){super();const e=document.createElement("style");e.textContent='@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");:host{font-family:"Roboto", sans-serif;width:100%;display:block;background-color:black}#matrix{display:grid;gap:5px;overflow:hidden}.col{margin:5px}.row{margin-top:5px !important;margin-left:5px !important;margin-right:5px !important}iframe{border:none;width:100%;height:100%;margin:0px;padding:0px}:host{--bs-blue:var(--bs-primary,#07689f);--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:var(--bs-danger,#f67280);--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:var(--bs-warning,#ffc107);--bs-teal:#20c997;--bs-cyan:var(--bs-info,#a2d5f2);--bs-white:#fff;--bs-gray:var(--bs-secondary,#c9d6df);--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:var(--bs-secondary,#c9d6df);--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:var(--bs-primary,#07689f);--bs-secondary:var(--bs-secondary,#c9d6df);--bs-success:var(--bs-warning,#ffc107);--bs-info:var(--bs-info,#a2d5f2);--bs-warning:#ffc107;--bs-danger:var(--bs-danger,#f67280);--bs-light:#f8f9fa;--bs-dark:#212529;--bs-primary-rgb:13, 110, 253;--bs-secondary-rgb:108, 117, 125;--bs-success-rgb:25, 135, 84;--bs-info-rgb:13, 202, 240;--bs-warning-rgb:255, 193, 7;--bs-danger-rgb:220, 53, 69;--bs-light-rgb:248, 249, 250;--bs-dark-rgb:33, 37, 41;--bs-white-rgb:255, 255, 255;--bs-black-rgb:0, 0, 0;--bs-body-color-rgb:33, 37, 41;--bs-body-bg-rgb:255, 255, 255;--bs-font-sans-serif:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--bs-font-monospace:SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-bg:#fff}.row{--bs-gutter-x:1.5rem;--bs-gutter-y:0;display:flex;flex-wrap:wrap;margin-top:calc(-1 * var(--bs-gutter-y));margin-right:calc(-0.5 * var(--bs-gutter-x));margin-left:calc(-0.5 * var(--bs-gutter-x))}.row>*{flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--bs-gutter-x) * 0.5);padding-left:calc(var(--bs-gutter-x) * 0.5);margin-top:var(--bs-gutter-y)}.col{flex:1 0 0%}@media(min-width: 576px){}@media(min-width: 768px){}@media(min-width: 992px){}@media(min-width: 1200px){}@media(min-width: 1400px){}',this.shadowRoot.appendChild(e),W(this,{target:this.shadowRoot,props:v(this.attributes),customElement:!0},mt,ht,i,{id:5,style:6,items:0},null),t&&(t.target&&u(t.target,this,t.anchor),t.props&&(this.$set(t.props),j()))}static get observedAttributes(){return["id","style","items"]}get id(){return this.$$.ctx[5]}set id(t){this.$$set({id:t}),j()}get style(){return this.$$.ctx[6]}set style(t){this.$$set({style:t}),j()}get items(){return this.$$.ctx[0]}set items(t){this.$$set({items:t}),j()}}return customElements.define("hb-matrix-video",bt),bt}();
|
|
1
|
+
var release=function(){"use strict";function t(){}function e(t){return t()}function n(){return Object.create(null)}function r(t){t.forEach(e)}function o(t){return"function"==typeof t}function i(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let s;function a(t,e){return s||(s=document.createElement("a")),s.href=e,t===s.href}const l="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function c(t,e){t.appendChild(e)}function u(t,e,n){t.insertBefore(e,n||null)}function d(t){t.parentNode&&t.parentNode.removeChild(t)}function f(t){return document.createElement(t)}function p(t){return document.createTextNode(t)}function g(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function h(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function m(t,e,n){e in t?t[e]="boolean"==typeof t[e]&&""===n||n:h(t,e,n)}function b(t,e,n,r){null==n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function v(t){const e={};for(const n of t)e[n.name]=n.value;return e}let y;function w(t){y=t}function $(){if(!y)throw new Error("Function called outside component initialization");return y}function x(){const t=$();return(e,n,{cancelable:r=!1}={})=>{const o=t.$$.callbacks[e];if(o){const i=function(t,e,{bubbles:n=!1,cancelable:r=!1}={}){const o=document.createEvent("CustomEvent");return o.initCustomEvent(t,n,r,e),o}(e,n,{cancelable:r});return o.slice().forEach((e=>{e.call(t,i)})),!i.defaultPrevented}return!0}}const E=[],k=[];let _=[];const C=[],L=Promise.resolve();let N=!1;function S(t){_.push(t)}const T=new Set;let M=0;function j(){if(0!==M)return;const t=y;do{try{for(;M<E.length;){const t=E[M];M++,w(t),A(t.$$)}}catch(t){throw E.length=0,M=0,t}for(w(null),E.length=0,M=0;k.length;)k.pop()();for(let t=0;t<_.length;t+=1){const e=_[t];T.has(e)||(T.add(e),e())}_.length=0}while(E.length);for(;C.length;)C.pop()();N=!1,T.clear(),w(t)}function A(t){if(null!==t.fragment){t.update(),r(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(S)}}const D=new Set;function I(t,e){t&&t.i&&(D.delete(t),t.i(e))}function O(t,e){t.d(1),e.delete(t.key)}function P(t,e,n,o,i,s,a,l,c,u,d,f){let p=t.length,g=s.length,h=p;const m={};for(;h--;)m[t[h].key]=h;const b=[],v=new Map,y=new Map,w=[];for(h=g;h--;){const t=f(i,s,h),r=n(t);let l=a.get(r);l?o&&w.push((()=>l.p(t,e))):(l=u(r,t),l.c()),v.set(r,b[h]=l),r in m&&y.set(r,Math.abs(h-m[r]))}const $=new Set,x=new Set;function E(t){I(t,1),t.m(l,d),a.set(t.key,t),d=t.first,g--}for(;p&&g;){const e=b[g-1],n=t[p-1],r=e.key,o=n.key;e===n?(d=e.first,p--,g--):v.has(o)?!a.has(r)||$.has(r)?E(e):x.has(o)?p--:y.get(r)>y.get(o)?(x.add(r),E(e)):($.add(o),p--):(c(n,a),p--)}for(;p--;){const e=t[p];v.has(e.key)||c(e,a)}for(;g;)E(b[g-1]);return r(w),b}function R(t,e){const n=t.$$;null!==n.fragment&&(!function(t){const e=[],n=[];_.forEach((r=>-1===t.indexOf(r)?e.push(r):n.push(r))),n.forEach((t=>t())),_=e}(n.after_update),r(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function z(t,e){-1===t.$$.dirty[0]&&(E.push(t),N||(N=!0,L.then(j)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function W(i,s,a,l,c,u,f,p=[-1]){const g=y;w(i);const h=i.$$={fragment:null,ctx:[],props:u,update:t,not_equal:c,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(g?g.$$.context:[])),callbacks:n(),dirty:p,skip_bound:!1,root:s.target||g.$$.root};f&&f(h.root);let m=!1;if(h.ctx=a?a(i,s.props||{},((t,e,...n)=>{const r=n.length?n[0]:e;return h.ctx&&c(h.ctx[t],h.ctx[t]=r)&&(!h.skip_bound&&h.bound[t]&&h.bound[t](r),m&&z(i,t)),e})):[],h.update(),m=!0,r(h.before_update),h.fragment=!!l&&l(h.ctx),s.target){if(s.hydrate){const t=function(t){return Array.from(t.childNodes)}(s.target);h.fragment&&h.fragment.l(t),t.forEach(d)}else h.fragment&&h.fragment.c();s.intro&&I(i.$$.fragment),function(t,n,i,s){const{fragment:a,after_update:l}=t.$$;a&&a.m(n,i),s||S((()=>{const n=t.$$.on_mount.map(e).filter(o);t.$$.on_destroy?t.$$.on_destroy.push(...n):r(n),t.$$.on_mount=[]})),l.forEach(S)}(i,s.target,s.anchor,s.customElement),j()}w(g)}let H;"function"==typeof HTMLElement&&(H=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(e).filter(o);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){r(this.$$.on_disconnect)}$destroy(){R(this,1),this.$destroy=t}$on(e,n){if(!o(n))return t;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(n),()=>{const t=r.indexOf(n);-1!==t&&r.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});var B="0.20.16";function F(t,e,n){var r,o,i,s,a;function l(){var c=Date.now()-s;c<e&&c>=0?r=setTimeout(l,e-c):(r=null,n||(a=t.apply(i,o),i=o=null))}null==e&&(e=100);var c=function(){i=this,o=arguments,s=Date.now();var c=n&&!r;return r||(r=setTimeout(l,e)),c&&(a=t.apply(i,o),i=o=null),a};return c.clear=function(){r&&(clearTimeout(r),r=null)},c.flush=function(){r&&(a=t.apply(i,o),i=o=null,clearTimeout(r),r=null)},c}F.debounce=F;var U=F,q=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,J=/\n/g,K=/^\s*/,V=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Y=/^:\s*/,G=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Q=/^[;\s]*/,X=/^\s+|\s+$/g,Z="";function tt(t){return t?t.replace(X,Z):Z}var et=function(t,e){var n,r=null;if(!t||"string"!=typeof t)return r;for(var o,i,s=function(t,e){if("string"!=typeof t)throw new TypeError("First argument must be a string");if(!t)return[];e=e||{};var n=1,r=1;function o(t){var e=t.match(J);e&&(n+=e.length);var o=t.lastIndexOf("\n");r=~o?t.length-o:r+t.length}function i(){var t={line:n,column:r};return function(e){return e.position=new s(t),c(),e}}function s(t){this.start=t,this.end={line:n,column:r},this.source=e.source}function a(o){var i=new Error(e.source+":"+n+":"+r+": "+o);if(i.reason=o,i.filename=e.source,i.line=n,i.column=r,i.source=t,!e.silent)throw i}function l(e){var n=e.exec(t);if(n){var r=n[0];return o(r),t=t.slice(r.length),n}}function c(){l(K)}function u(t){var e;for(t=t||[];e=d();)!1!==e&&t.push(e);return t}function d(){var e=i();if("/"==t.charAt(0)&&"*"==t.charAt(1)){for(var n=2;Z!=t.charAt(n)&&("*"!=t.charAt(n)||"/"!=t.charAt(n+1));)++n;if(n+=2,Z===t.charAt(n-1))return a("End of comment missing");var s=t.slice(2,n-2);return r+=2,o(s),t=t.slice(n),r+=2,e({type:"comment",comment:s})}}function f(){var t=i(),e=l(V);if(e){if(d(),!l(Y))return a("property missing ':'");var n=l(G),r=t({type:"declaration",property:tt(e[0].replace(q,Z)),value:n?tt(n[0].replace(q,Z)):Z});return l(Q),r}}return s.prototype.content=t,c(),function(){var t,e=[];for(u(e);t=f();)!1!==t&&(e.push(t),u(e));return e}()}(t),a="function"==typeof e,l=0,c=s.length;l<c;l++)o=(n=s[l]).property,i=n.value,a?e(o,i,n):i&&(r||(r={}),r[o]=i);return r};var nt,rt=(function(t,e){e.__esModule=!0,e.LanguageTranslator=e.addComponent=e.getChildStyleToPass=void 0,e.getChildStyleToPass=function(t,e){var n,r,o="";if(t&&(null==e?void 0:e.length)&&(null===(n=Object.keys(t))||void 0===n?void 0:n.length)&&(null===(r=null==e?void 0:e.filter((function(e){return Object.keys(t).includes(e.name)})))||void 0===r?void 0:r.length))for(var i=function(n){(null==e?void 0:e.filter((function(e){return e.name===n&&e.defaultValue!==t[n]})))&&(o+="".concat(n,":").concat(t[n],";"))},s=0,a=Object.keys(t);s<a.length;s++)i(a[s]);return o},e.addComponent=function(t){var e,n=(null===(e=null==t?void 0:t.repoName.split("/"))||void 0===e?void 0:e[1])||(null==t?void 0:t.repoName);if(!n)throw new Error("wrong componentPath "+(null==t?void 0:t.repoName));if(!(null==t?void 0:t.version))throw new Error("wrong version "+(null==t?void 0:t.version));var r=(null==t?void 0:t.iifePath)||"release/release.js";if(!document.getElementById(n+"-script"))try{var o=document.createElement("script");o.id=n+"-script",o.src="https://cdn.jsdelivr.net/npm/".concat(t.repoName,"@").concat(t.version,"/").concat(r),(null==t?void 0:t.local)&&location.href.includes("localhost")&&(o.src="".concat(t.local)),document.head.appendChild(o)}catch(t){console.warn(t)}};var n=function(){function t(t){if(!(null==t?void 0:t.dictionary))throw new Error("no dictionary provided");this.dictionary=t.dictionary,this.setLang(null==t?void 0:t.lang)}return t.prototype.setLang=function(e){e||(e=t.getDefaultLang()),this.lang=e},t.prototype.translateWord=function(e,n){return t.getDictionaryWord(e,this.dictionary,n||this.lang)},t.prototype.translateDate=function(e,n,r){return t.formatDate(e,n,r||this.lang)},t.getDefaultLang=function(){var t,e,n,r,o,i="en";return(null===navigator||void 0===navigator?void 0:navigator.languages)&&(null===(n=null===(e=null===(t=navigator.languages[0])||void 0===t?void 0:t.split("-")[0])||void 0===e?void 0:e.toLowerCase())||void 0===n?void 0:n.length)&&(i=null===(o=null===(r=navigator.languages[0])||void 0===r?void 0:r.split("-")[0])||void 0===o?void 0:o.toLowerCase()),i},t.getDictionaryWord=function(e,n,r){var o;if(!e)throw new Error("no wordKey provided");if(!n)throw new Error("no dictionary provided");if(r&&(null===(o=n[r])||void 0===o?void 0:o[e]))return n[r][e];var i="",s=t.getDefaultLang();if(!r||s!==r){var a=null==n?void 0:n[s];(null==a?void 0:a[e])&&(i=a[e])}return i},t.formatDate=function(e,n,r){if(!e)throw new Error("no date provided");if("function"!=typeof e.getMonth)throw new Error("wrong date format");return new Intl.DateTimeFormat(r||t.getDefaultLang(),n).format(e)},t}();e.LanguageTranslator=n}(nt={exports:{}},nt.exports),nt.exports),ot={vars:[],parts:[{name:"container",description:""},{name:"replacewithtext",description:""},{name:"video",description:""}]};const{window:it}=l;function st(t,e,n){const r=t.slice();return r[23]=e[n],r}function at(t,e,n){const r=t.slice();return r[26]=e[n],r}function lt(t){let e,n=[],r=new Map,o=t[1];const i=t=>t[23].row;for(let e=0;e<o.length;e+=1){let s=st(t,o,e),a=i(s);r.set(a,n[e]=gt(a,s))}return{c(){for(let t=0;t<n.length;t+=1)n[t].c();e=p("")},m(t,r){for(let e=0;e<n.length;e+=1)n[e]&&n[e].m(t,r);u(t,e,r)},p(t,s){26&s&&(o=t[1],n=P(n,s,i,1,t,o,r,e.parentNode,O,gt,e,st))},d(t){for(let e=0;e<n.length;e+=1)n[e].d(t);t&&d(e)}}}function ct(t){let e,n,r,o,i;return{c(){e=f("video"),n=f("source"),i=p("\n\t\t\t\t\t\t\t\tYour browser does not support the video tag."),h(n,"title",r=t[26].title),a(n.src,o=t[26].uri)||h(n,"src",o),h(n,"type","video/mp4"),e.controls=!0},m(t,r){u(t,e,r),c(e,n),c(e,i)},p(t,e){2&e&&r!==(r=t[26].title)&&h(n,"title",r),2&e&&!a(n.src,o=t[26].uri)&&h(n,"src",o)},d(t){t&&d(e)}}}function ut(t){let e,n;return{c(){e=f("hb-player-live-camera-ptz"),m(e,"media_type","whep"),m(e,"live_uri",n=t[26].uri+"/whep")},m(t,n){u(t,e,n)},p(t,r){2&r&&n!==(n=t[26].uri+"/whep")&&m(e,"live_uri",n)},d(t){t&&d(e)}}}function dt(t){let e,n;return{c(){e=f("hb-player-live"),m(e,"media_type","whep"),m(e,"mediauri",n=t[26].uri+"/whep")},m(t,n){u(t,e,n)},p(t,r){2&r&&n!==(n=t[26].uri+"/whep")&&m(e,"mediauri",n)},d(t){t&&d(e)}}}function ft(t){let e,n,r,o,i;return{c(){e=f("iframe"),h(e,"title",n=t[26].title),a(e.src,r=t[26].uri)||h(e,"src",r)},m(n,r){u(n,e,r),o||(i=g(e,"load",t[8]),o=!0)},p(t,o){2&o&&n!==(n=t[26].title)&&h(e,"title",n),2&o&&!a(e.src,r=t[26].uri)&&h(e,"src",r)},d(t){t&&d(e),o=!1,i()}}}function pt(t,e){let n,o,i,s;function a(t,e){return"iframe"===t[26].type?ft:"mediamtx-webrtc"===t[26].type?dt:"mediamtx-webrtc-ptz"===t[26].type?ut:"video"===t[26].type?ct:void 0}let l=a(e),c=l&&l(e);function p(...t){return e[10](e[26],...t)}return{key:t,first:null,c(){n=f("div"),c&&c.c(),h(n,"class","col"),b(n,"padding-right","0px"),b(n,"padding-left","0px"),b(n,"--bs-gutter-x","0px"),h(n,"id",o="select_"+e[26].id),this.first=n},m(t,r){u(t,n,r),c&&c.m(n,null),i||(s=[g(n,"mouseleave",e[9]),g(n,"mouseenter",p)],i=!0)},p(t,r){l===(l=a(e=t))&&c?c.p(e,r):(c&&c.d(1),c=l&&l(e),c&&(c.c(),c.m(n,null))),2&r&&o!==(o="select_"+e[26].id)&&h(n,"id",o)},d(t){t&&d(n),c&&c.d(),i=!1,r(s)}}}function gt(t,e){let n,r,o=[],i=new Map,s=e[23].items;const a=t=>t[26].id;for(let t=0;t<s.length;t+=1){let n=at(e,s,t),r=a(n);i.set(r,o[t]=pt(r,n))}return{key:t,first:null,c(){n=f("div");for(let t=0;t<o.length;t+=1)o[t].c();r=p(" "),h(n,"class","row"),this.first=n},m(t,e){u(t,n,e);for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(n,null);c(n,r)},p(t,l){e=t,26&l&&(s=e[23].items,o=P(o,l,a,1,e,s,i,n,O,pt,r,at))},d(t){t&&d(n);for(let t=0;t<o.length;t+=1)o[t].d()}}}function ht(e){let n,r,o,i=e[0]&&"object"==typeof e[0]&<(e);return{c(){n=f("div"),i&&i.c(),this.c=t,h(n,"id","matrix")},m(t,s){u(t,n,s),i&&i.m(n,null),r||(o=g(it,"resize",U(e[2],200)),r=!0)},p(t,[e]){t[0]&&"object"==typeof t[0]?i?i.p(t,e):(i=lt(t),i.c(),i.m(n,null)):i&&(i.d(1),i=null)},i:t,o:t,d(t){t&&d(n),i&&i.d(),r=!1,o()}}}function mt(t,e,n){const r=$(),o=x();function i(t,e){o(t,e),r.dispatchEvent&&r.dispatchEvent(new CustomEvent(t,{detail:e}))}let s,a,l,c,u,d,f,{id:p}=e,{style:g}=e,{items:h}=e,m=[];function b(){if(l&&a&&c){const t=16/9,e=l/a;let r,o;if(1===h.length)r=1,o=1;else if(l<450)o=1,r=h.length;else if(2===h.length)e>t?(r=1,o=2):(r=2,o=1);else if(e>t){let e=1/0;for(let n=1;n<=h.length;n++){const i=Math.ceil(h.length/n),s=a/n*t*i;if(s<=l){const t=l-s;t<e&&(e=t,r=n,o=i)}}}else{let e=1/0;for(let n=1;n<=h.length;n++){const i=Math.ceil(h.length/n),s=l/n/t*i;if(s<=a){const t=a-s;t<e&&(e=t,o=n,r=i)}}}if(u=r,d=o,u&&d){const t=[];for(let e=0;e<u;e++)for(let n=0;n<d;n++){const r=h[e*d+n];r&&(t[e]||(t[e]={row:e,items:[]}),t[e].items[n]=r)}n(1,m=t),console.log(m,u,d,"drawItems")}}}function v(){var t,e,n;if(window.innerWidth&&window.innerHeight){const o=null===(t=null==r?void 0:r.shadowRoot)||void 0===t?void 0:t.getElementById("matrix");(null==o?void 0:o.style)&&(a=window.innerHeight-(null===(n=null===(e=null==r?void 0:r.shadowRoot)||void 0===e?void 0:e.getElementById("matrix"))||void 0===n?void 0:n.offsetTop),l=Number(o.clientWidth),c=l>a?"landscape":"portrait",o.style.height=a+"px",console.log(`setSize w:${l} h:${a}`),b())}}function y(t){f=t,i("hoverItem",{id:t,selected:!!f})}function w(t){var e;const n=t;try{null===(e=n.contentWindow)||void 0===e||e.document.addEventListener("click",(()=>{f?i("clickItem",{id:f}):console.info("No video selected")}))}catch(t){console.warn("error adding click event to iframe",t)}}rt.addComponent({repoName:"@htmlbricks/hb-player-live",version:B}),function(t){$().$$.on_mount.push(t)}((()=>{v()}));return t.$$set=t=>{"id"in t&&n(5,p=t.id),"style"in t&&n(6,g=t.style),"items"in t&&n(0,h=t.items)},t.$$.update=()=>{if(225&t.$$.dirty&&(p||n(5,p=""),g&&(n(7,s=et(g)),rt.getChildStyleToPass(s,null==ot?void 0:ot.vars)),"string"==typeof h))try{n(0,h=JSON.parse(h)),b()}catch(t){console.error("error parsing items",t)}},[h,m,v,y,w,p,g,s,t=>w(t.target),t=>y(),(t,e)=>y(t.id)]}class bt extends H{constructor(t){super();const e=document.createElement("style");e.textContent='@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");:host{font-family:"Roboto", sans-serif;width:100%;display:block;background-color:black}#matrix{display:grid;gap:5px;overflow:hidden}.col{margin:5px}.row{margin-top:5px !important;margin-left:5px !important;margin-right:5px !important}iframe{border:none;width:100%;height:100%;margin:0px;padding:0px}:host{--bs-blue:var(--bs-primary,#07689f);--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:var(--bs-danger,#f67280);--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:var(--bs-warning,#ffc107);--bs-teal:#20c997;--bs-cyan:var(--bs-info,#a2d5f2);--bs-white:#fff;--bs-gray:var(--bs-secondary,#c9d6df);--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:var(--bs-secondary,#c9d6df);--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:var(--bs-primary,#07689f);--bs-secondary:var(--bs-secondary,#c9d6df);--bs-success:var(--bs-warning,#ffc107);--bs-info:var(--bs-info,#a2d5f2);--bs-warning:#ffc107;--bs-danger:var(--bs-danger,#f67280);--bs-light:#f8f9fa;--bs-dark:#212529;--bs-primary-rgb:13, 110, 253;--bs-secondary-rgb:108, 117, 125;--bs-success-rgb:25, 135, 84;--bs-info-rgb:13, 202, 240;--bs-warning-rgb:255, 193, 7;--bs-danger-rgb:220, 53, 69;--bs-light-rgb:248, 249, 250;--bs-dark-rgb:33, 37, 41;--bs-white-rgb:255, 255, 255;--bs-black-rgb:0, 0, 0;--bs-body-color-rgb:33, 37, 41;--bs-body-bg-rgb:255, 255, 255;--bs-font-sans-serif:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--bs-font-monospace:SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-bg:#fff}.row{--bs-gutter-x:1.5rem;--bs-gutter-y:0;display:flex;flex-wrap:wrap;margin-top:calc(-1 * var(--bs-gutter-y));margin-right:calc(-0.5 * var(--bs-gutter-x));margin-left:calc(-0.5 * var(--bs-gutter-x))}.row>*{flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--bs-gutter-x) * 0.5);padding-left:calc(var(--bs-gutter-x) * 0.5);margin-top:var(--bs-gutter-y)}.col{flex:1 0 0%}@media(min-width: 576px){}@media(min-width: 768px){}@media(min-width: 992px){}@media(min-width: 1200px){}@media(min-width: 1400px){}',this.shadowRoot.appendChild(e),W(this,{target:this.shadowRoot,props:v(this.attributes),customElement:!0},mt,ht,i,{id:5,style:6,items:0},null),t&&(t.target&&u(t.target,this,t.anchor),t.props&&(this.$set(t.props),j()))}static get observedAttributes(){return["id","style","items"]}get id(){return this.$$.ctx[5]}set id(t){this.$$set({id:t}),j()}get style(){return this.$$.ctx[6]}set style(t){this.$$set({style:t}),j()}get items(){return this.$$.ctx[0]}set items(t){this.$$set({items:t}),j()}}return customElements.define("hb-matrix-video",bt),bt}();
|
|
2
2
|
//# sourceMappingURL=release.js.map
|