Socket
Socket
Sign inDemoInstall

@beyonk/embedded

Package Overview
Dependencies
0
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.5 to 1.1.6

12

CHANGELOG.json

@@ -5,2 +5,14 @@ {

{
"version": "1.1.6",
"tag": "@beyonk/embedded_v1.1.6",
"date": "Thu, 16 Sep 2021 09:53:49 GMT",
"comments": {
"patch": [
{
"comment": "cleanup"
}
]
}
},
{
"version": "1.1.5",

@@ -7,0 +19,0 @@ "tag": "@beyonk/embedded_v1.1.5",

9

CHANGELOG.md
# Change Log - @beyonk/embedded
This log was last generated on Wed, 14 Jul 2021 14:40:19 GMT and should not be manually modified.
This log was last generated on Thu, 16 Sep 2021 09:53:49 GMT and should not be manually modified.
## 1.1.6
Thu, 16 Sep 2021 09:53:49 GMT
### Patches
- cleanup
## 1.1.5

@@ -6,0 +13,0 @@ Wed, 14 Jul 2021 14:40:19 GMT

2

dist/observers.min.js

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).BeyonkEmbedded={})}(this,(function(t){var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e,n){return t(n={path:e,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&n.path)}},n.exports),n.exports}var r=function(t){return t&&t.Math==Math&&t},o=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||function(){return this}()||Function("return this")(),i=function(t){try{return!!t()}catch(t){return!0}},c=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),u={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,l={f:a&&!u.call({1:2},1)?function(t){var e=a(this,t);return!!e&&e.enumerable}:u},f=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},s={}.toString,p=function(t){return s.call(t).slice(8,-1)},h="".split,d=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==p(t)?h.call(t,""):Object(t)}:Object,y=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},v=function(t){return d(y(t))},g=function(t){return"object"==typeof t?null!==t:"function"==typeof t},b=function(t,e){if(!g(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!g(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!g(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!g(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},m={}.hasOwnProperty,E=function(t,e){return m.call(t,e)},w=o.document,x=g(w)&&g(w.createElement),O=function(t){return x?w.createElement(t):{}},S=!c&&!i((function(){return 7!=Object.defineProperty(O("div"),"a",{get:function(){return 7}}).a})),j=Object.getOwnPropertyDescriptor,R={f:c?j:function(t,e){if(t=v(t),e=b(e,!0),S)try{return j(t,e)}catch(t){}if(E(t,e))return f(!l.f.call(t,e),t[e])}},P=function(t){if(!g(t))throw TypeError(String(t)+" is not an object");return t},T=Object.defineProperty,_={f:c?T:function(t,e,n){if(P(t),e=b(e,!0),P(n),S)try{return T(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},k=c?function(t,e,n){return _.f(t,e,f(1,n))}:function(t,e,n){return t[e]=n,t},I=function(t,e){try{k(o,t,e)}catch(n){o[t]=e}return e},N="__core-js_shared__",A=o[N]||I(N,{}),C=Function.toString;"function"!=typeof A.inspectSource&&(A.inspectSource=function(t){return C.call(t)});var F,M,L,D=A.inspectSource,U=o.WeakMap,z="function"==typeof U&&/native code/.test(D(U)),B=n((function(t){(t.exports=function(t,e){return A[t]||(A[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.10.0",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),$=0,K=Math.random(),W=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++$+K).toString(36)},q=B("keys"),G=function(t){return q[t]||(q[t]=W(t))},Y={},J=o.WeakMap;if(z){var X=A.state||(A.state=new J),V=X.get,H=X.has,Q=X.set;F=function(t,e){return e.facade=t,Q.call(X,t,e),e},M=function(t){return V.call(X,t)||{}},L=function(t){return H.call(X,t)}}else{var Z=G("state");Y[Z]=!0,F=function(t,e){return e.facade=t,k(t,Z,e),e},M=function(t){return E(t,Z)?t[Z]:{}},L=function(t){return E(t,Z)}}var tt,et,nt={set:F,get:M,has:L,enforce:function(t){return L(t)?M(t):F(t,{})},getterFor:function(t){return function(e){var n;if(!g(e)||(n=M(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},rt=n((function(t){var e=nt.get,n=nt.enforce,r=String(String).split("String");(t.exports=function(t,e,i,c){var u,a=!!c&&!!c.unsafe,l=!!c&&!!c.enumerable,f=!!c&&!!c.noTargetGet;"function"==typeof i&&("string"!=typeof e||E(i,"name")||k(i,"name",e),(u=n(i)).source||(u.source=r.join("string"==typeof e?e:""))),t!==o?(a?!f&&t[e]&&(l=!0):delete t[e],l?t[e]=i:k(t,e,i)):l?t[e]=i:I(e,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||D(this)}))})),ot=o,it=function(t){return"function"==typeof t?t:void 0},ct=function(t,e){return arguments.length<2?it(ot[t])||it(o[t]):ot[t]&&ot[t][e]||o[t]&&o[t][e]},ut=Math.ceil,at=Math.floor,lt=function(t){return isNaN(t=+t)?0:(t>0?at:ut)(t)},ft=Math.min,st=function(t){return t>0?ft(lt(t),9007199254740991):0},pt=Math.max,ht=Math.min,dt=function(t){return function(e,n,r){var o,i=v(e),c=st(i.length),u=function(t,e){var n=lt(t);return n<0?pt(n+e,0):ht(n,e)}(r,c);if(t&&n!=n){for(;c>u;)if((o=i[u++])!=o)return!0}else for(;c>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},yt={includes:dt(!0),indexOf:dt(!1)},vt=yt.indexOf,gt=function(t,e){var n,r=v(t),o=0,i=[];for(n in r)!E(Y,n)&&E(r,n)&&i.push(n);for(;e.length>o;)E(r,n=e[o++])&&(~vt(i,n)||i.push(n));return i},bt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],mt=bt.concat("length","prototype"),Et={f:Object.getOwnPropertyNames||function(t){return gt(t,mt)}},wt={f:Object.getOwnPropertySymbols},xt=ct("Reflect","ownKeys")||function(t){var e=Et.f(P(t)),n=wt.f;return n?e.concat(n(t)):e},Ot=function(t,e){for(var n=xt(e),r=_.f,o=R.f,i=0;i<n.length;i++){var c=n[i];E(t,c)||r(t,c,o(e,c))}},St=/#|\.prototype\./,jt=function(t,e){var n=Pt[Rt(t)];return n==_t||n!=Tt&&("function"==typeof e?i(e):!!e)},Rt=jt.normalize=function(t){return String(t).replace(St,".").toLowerCase()},Pt=jt.data={},Tt=jt.NATIVE="N",_t=jt.POLYFILL="P",kt=jt,It=R.f,Nt=function(t,e){var n,r,i,c,u,a=t.target,l=t.global,f=t.stat;if(n=l?o:f?o[a]||I(a,{}):(o[a]||{}).prototype)for(r in e){if(c=e[r],i=t.noTargetGet?(u=It(n,r))&&u.value:n[r],!kt(l?r:a+(f?".":"#")+r,t.forced)&&void 0!==i){if(typeof c==typeof i)continue;Ot(c,i)}(t.sham||i&&i.sham)&&k(c,"sham",!0),rt(n,r,c,t)}},At="process"==p(o.process),Ct=ct("navigator","userAgent")||"",Ft=o.process,Mt=Ft&&Ft.versions,Lt=Mt&&Mt.v8;Lt?et=(tt=Lt.split("."))[0]+tt[1]:Ct&&(!(tt=Ct.match(/Edge\/(\d+)/))||tt[1]>=74)&&(tt=Ct.match(/Chrome\/(\d+)/))&&(et=tt[1]);var Dt,Ut=et&&+et,zt=!!Object.getOwnPropertySymbols&&!i((function(){return!Symbol.sham&&(At?38===Ut:Ut>37&&Ut<41)})),Bt=zt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,$t=B("wks"),Kt=o.Symbol,Wt=Bt?Kt:Kt&&Kt.withoutSetter||W,qt=function(t){return E($t,t)&&(zt||"string"==typeof $t[t])||(zt&&E(Kt,t)?$t[t]=Kt[t]:$t[t]=Wt("Symbol."+t)),$t[t]},Gt=Object.keys||function(t){return gt(t,bt)},Yt=c?Object.defineProperties:function(t,e){P(t);for(var n,r=Gt(e),o=r.length,i=0;o>i;)_.f(t,n=r[i++],e[n]);return t},Jt=ct("document","documentElement"),Xt=G("IE_PROTO"),Vt=function(){},Ht=function(t){return"<script>"+t+"</"+"script>"},Qt=function(){try{Dt=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;Qt=Dt?function(t){t.write(Ht("")),t.close();var e=t.parentWindow.Object;return t=null,e}(Dt):((e=O("iframe")).style.display="none",Jt.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Ht("document.F=Object")),t.close(),t.F);for(var n=bt.length;n--;)delete Qt.prototype[bt[n]];return Qt()};Y[Xt]=!0;var Zt=Object.create||function(t,e){var n;return null!==t?(Vt.prototype=P(t),n=new Vt,Vt.prototype=null,n[Xt]=t):n=Qt(),void 0===e?n:Yt(n,e)},te=qt("unscopables"),ee=Array.prototype;null==ee[te]&&_.f(ee,te,{configurable:!0,value:Zt(null)});var ne,re=yt.includes;Nt({target:"Array",proto:!0},{includes:function(t){return re(this,t,arguments.length>1?arguments[1]:void 0)}}),ne="includes",ee[te][ne]=!0;var oe=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},ie=[].slice,ce={},ue=function(t,e,n){if(!(e in ce)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";ce[e]=Function("C,a","return new C("+r.join(",")+")")}return ce[e](t,n)};Nt({target:"Function",proto:!0},{bind:Function.bind||function(t){var e=oe(this),n=ie.call(arguments,1),r=function(){var o=n.concat(ie.call(arguments));return this instanceof r?ue(e,o.length,o):e.apply(t,o)};return g(e.prototype)&&(r.prototype=e.prototype),r}}),Nt({target:"Object",stat:!0,forced:!c,sham:!c},{defineProperty:_.f});var ae=function(){var t=P(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e};function le(t,e){return RegExp(t,e)}var fe,se,pe={UNSUPPORTED_Y:i((function(){var t=le("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:i((function(){var t=le("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},he=RegExp.prototype.exec,de=B("native-string-replace",String.prototype.replace),ye=he,ve=(fe=/a/,se=/b*/g,he.call(fe,"a"),he.call(se,"a"),0!==fe.lastIndex||0!==se.lastIndex),ge=pe.UNSUPPORTED_Y||pe.BROKEN_CARET,be=void 0!==/()??/.exec("")[1];(ve||be||ge)&&(ye=function(t){var e,n,r,o,i=this,c=ge&&i.sticky,u=ae.call(i),a=i.source,l=0,f=t;return c&&(-1===(u=u.replace("y","")).indexOf("g")&&(u+="g"),f=String(t).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==t[i.lastIndex-1])&&(a="(?: "+a+")",f=" "+f,l++),n=new RegExp("^(?:"+a+")",u)),be&&(n=new RegExp("^"+a+"$(?!\\s)",u)),ve&&(e=i.lastIndex),r=he.call(c?n:i,f),c?r?(r.input=r.input.slice(l),r[0]=r[0].slice(l),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:ve&&r&&(i.lastIndex=i.global?r.index+r[0].length:e),be&&r&&r.length>1&&de.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r});var me=ye;Nt({target:"RegExp",proto:!0,forced:/./.exec!==me},{exec:me});var Ee=qt("match"),we=function(t){if(function(t){var e;return g(t)&&(void 0!==(e=t[Ee])?!!e:"RegExp"==p(t))}(t))throw TypeError("The method doesn't accept regular expressions");return t},xe=qt("match");Nt({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[xe]=!1,"/./"[t](e)}catch(t){}}return!1}("includes")},{includes:function(t){return!!~String(y(this)).indexOf(we(t),arguments.length>1?arguments[1]:void 0)}});var Oe=qt("species"),Se=!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),je="$0"==="a".replace(/./,"$0"),Re=qt("replace"),Pe=!!/./[Re]&&""===/./[Re]("a","$0"),Te=!i((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),_e=function(t){return function(e,n){var r,o,i=String(y(e)),c=lt(n),u=i.length;return c<0||c>=u?t?"":void 0:(r=i.charCodeAt(c))<55296||r>56319||c+1===u||(o=i.charCodeAt(c+1))<56320||o>57343?t?i.charAt(c):r:t?i.slice(c,c+2):o-56320+(r-55296<<10)+65536}},ke={codeAt:_e(!1),charAt:_e(!0)}.charAt,Ie=function(t,e,n){return e+(n?ke(t,e).length:1)},Ne=function(t,e){var n=t.exec;if("function"==typeof n){var r=n.call(t,e);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==p(t))throw TypeError("RegExp#exec called on incompatible receiver");return me.call(t,e)};function Ae(t){return(Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ce(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Fe(t,e)}function Fe(t,e){return(Fe=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Me(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=De(t);if(e){var o=De(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Le(this,n)}}function Le(t,e){return!e||"object"!==Ae(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function De(t){return(De=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ue(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ze(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Be(t,e,n){return e&&ze(t.prototype,e),n&&ze(t,n),t}!function(t,e,n,r){var o=qt(t),c=!i((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),u=c&&!i((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[Oe]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e}));if(!c||!u||"replace"===t&&(!Se||!je||Pe)||"split"===t&&!Te){var a=/./[o],l=n(o,""[t],(function(t,e,n,r,o){return e.exec===me?c&&!o?{done:!0,value:a.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:je,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Pe}),f=l[0],s=l[1];rt(String.prototype,t,f),rt(RegExp.prototype,o,2==e?function(t,e){return s.call(t,this,e)}:function(t){return s.call(t,this)})}r&&k(RegExp.prototype[o],"sham",!0)}("match",1,(function(t,e,n){return[function(e){var n=y(this),r=null==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var o=P(t),i=String(this);if(!o.global)return Ne(o,i);var c=o.unicode;o.lastIndex=0;for(var u,a=[],l=0;null!==(u=Ne(o,i));){var f=String(u[0]);a[l]=f,""===f&&(o.lastIndex=Ie(i,st(o.lastIndex),c)),l++}return 0===l?null:a}]}));var $e=function(){function t(e){Ue(this,t),this.w=e}return Be(t,[{key:"dispatch",value:function(t,e){var n=JSON.stringify({version:1,eventName:t,meta:e});this.w.parent.postMessage(n,"*")}}]),t}(),Ke=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/.*/;Ue(this,t),this.w=e,this.originFilter=n,this.callbacks={}}return Be(t,[{key:"handle",value:function(t,e){if(e.origin.match(this.originFilter))try{var n=JSON.parse(e.data),r=n.version,o=n.eventName,i=n.meta;if(r&&1!==r&&console.warn("Recieved event from incompatible script version"),o===t)return[We,"beyonk:portal:resize"].includes(t)?this.callbacks[t](i.height):this.callbacks[t](i)}catch(t){console.warn("Recieved unparseable event",e.data)}}},{key:"listen",value:function(t,e){this.callbacks[t]=e,this.w.addEventListener("message",this.handle.bind(this,t),!1)}},{key:"ignore",value:function(t){this.w.removeEventListener("message",this.handle.bind(this,t),!1)}}]),t}(),We="whitelabel:header:resize",qe=function(t){Ce(n,t);var e=Me(n);function n(){return Ue(this,n),e.apply(this,arguments)}return Be(n,[{key:"subscribe",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:We;this.eventName=e,this.callbacks[e]=t,this.w.addEventListener("message",this.handle.bind(this,e),!1)}},{key:"unsubscribe",value:function(){this.w.removeEventListener("message",this.handle.bind(this,this.eventName),!1)}}]),n}(Ke),Ge=function(t){Ce(n,t);var e=Me(n);function n(t){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:We;return Ue(this,n),(r=e.call(this,t)).eventName=o,r}return Be(n,[{key:"update",value:function(t){this.dispatch(this.eventName,{height:t})}}]),n}($e);t.RemoteEventDispatcher=$e,t.RemoteEventObserver=Ke,t.ResizableElementDispatcher=Ge,t.ResizableElementObserver=qe,Object.defineProperty(t,"__esModule",{value:!0})}));
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).BeyonkEmbedded={})}(this,(function(t){var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e,n){return t(n={path:e,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&n.path)}},n.exports),n.exports}var r,o,i=function(t){return t&&t.Math==Math&&t},c=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof e&&e)||function(){return this}()||Function("return this")(),u=function(t){try{return!!t()}catch(t){return!0}},a=!u((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),l={}.propertyIsEnumerable,f=Object.getOwnPropertyDescriptor,s={f:f&&!l.call({1:2},1)?function(t){var e=f(this,t);return!!e&&e.enumerable}:l},p=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},h={}.toString,d=function(t){return h.call(t).slice(8,-1)},y="".split,v=u((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==d(t)?y.call(t,""):Object(t)}:Object,g=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},b=function(t){return v(g(t))},m=function(t){return"object"==typeof t?null!==t:"function"==typeof t},w=function(t){return"function"==typeof t?t:void 0},x=function(t,e){return arguments.length<2?w(c[t]):c[t]&&c[t][e]},O=x("navigator","userAgent")||"",E=c.process,j=c.Deno,S=E&&E.versions||j&&j.version,R=S&&S.v8;R?o=(r=R.split("."))[0]<4?1:r[0]+r[1]:O&&(!(r=O.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=O.match(/Chrome\/(\d+)/))&&(o=r[1]);var T=o&&+o,P=!!Object.getOwnPropertySymbols&&!u((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&T&&T<41})),I=P&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,k=I?function(t){return"symbol"==typeof t}:function(t){var e=x("Symbol");return"function"==typeof e&&Object(t)instanceof e},_=function(t,e){try{Object.defineProperty(c,t,{value:e,configurable:!0,writable:!0})}catch(n){c[t]=e}return e},A="__core-js_shared__",N=c[A]||_(A,{}),C=n((function(t){(t.exports=function(t,e){return N[t]||(N[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.17.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),F={}.hasOwnProperty,M=Object.hasOwn||function(t,e){return F.call(Object(g(t)),e)},D=0,L=Math.random(),z=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++D+L).toString(36)},B=C("wks"),U=c.Symbol,W=I?U:U&&U.withoutSetter||z,q=function(t){return M(B,t)&&(P||"string"==typeof B[t])||(P&&M(U,t)?B[t]=U[t]:B[t]=W("Symbol."+t)),B[t]},K=q("toPrimitive"),Y=function(t,e){if(!m(t)||k(t))return t;var n,r=t[K];if(void 0!==r){if(void 0===e&&(e="default"),n=r.call(t,e),!m(n)||k(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&"function"==typeof(n=t.toString)&&!m(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!m(r=n.call(t)))return r;if("string"!==e&&"function"==typeof(n=t.toString)&&!m(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}(t,e)},G=function(t){var e=Y(t,"string");return k(e)?e:String(e)},J=c.document,$=m(J)&&m(J.createElement),V=function(t){return $?J.createElement(t):{}},X=!a&&!u((function(){return 7!=Object.defineProperty(V("div"),"a",{get:function(){return 7}}).a})),H=Object.getOwnPropertyDescriptor,Q={f:a?H:function(t,e){if(t=b(t),e=G(e),X)try{return H(t,e)}catch(t){}if(M(t,e))return p(!s.f.call(t,e),t[e])}},Z=function(t){if(!m(t))throw TypeError(String(t)+" is not an object");return t},tt=Object.defineProperty,et={f:a?tt:function(t,e,n){if(Z(t),e=G(e),Z(n),X)try{return tt(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},nt=a?function(t,e,n){return et.f(t,e,p(1,n))}:function(t,e,n){return t[e]=n,t},rt=Function.toString;"function"!=typeof N.inspectSource&&(N.inspectSource=function(t){return rt.call(t)});var ot,it,ct,ut=N.inspectSource,at=c.WeakMap,lt="function"==typeof at&&/native code/.test(ut(at)),ft=C("keys"),st=function(t){return ft[t]||(ft[t]=z(t))},pt={},ht="Object already initialized",dt=c.WeakMap;if(lt||N.state){var yt=N.state||(N.state=new dt),vt=yt.get,gt=yt.has,bt=yt.set;ot=function(t,e){if(gt.call(yt,t))throw new TypeError(ht);return e.facade=t,bt.call(yt,t,e),e},it=function(t){return vt.call(yt,t)||{}},ct=function(t){return gt.call(yt,t)}}else{var mt=st("state");pt[mt]=!0,ot=function(t,e){if(M(t,mt))throw new TypeError(ht);return e.facade=t,nt(t,mt,e),e},it=function(t){return M(t,mt)?t[mt]:{}},ct=function(t){return M(t,mt)}}var wt,xt={set:ot,get:it,has:ct,enforce:function(t){return ct(t)?it(t):ot(t,{})},getterFor:function(t){return function(e){var n;if(!m(e)||(n=it(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},Ot=n((function(t){var e=xt.get,n=xt.enforce,r=String(String).split("String");(t.exports=function(t,e,o,i){var u,a=!!i&&!!i.unsafe,l=!!i&&!!i.enumerable,f=!!i&&!!i.noTargetGet;"function"==typeof o&&("string"!=typeof e||M(o,"name")||nt(o,"name",e),(u=n(o)).source||(u.source=r.join("string"==typeof e?e:""))),t!==c?(a?!f&&t[e]&&(l=!0):delete t[e],l?t[e]=o:nt(t,e,o)):l?t[e]=o:_(e,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||ut(this)}))})),Et=Math.ceil,jt=Math.floor,St=function(t){return isNaN(t=+t)?0:(t>0?jt:Et)(t)},Rt=Math.min,Tt=function(t){return t>0?Rt(St(t),9007199254740991):0},Pt=Math.max,It=Math.min,kt=function(t){return function(e,n,r){var o,i=b(e),c=Tt(i.length),u=function(t,e){var n=St(t);return n<0?Pt(n+e,0):It(n,e)}(r,c);if(t&&n!=n){for(;c>u;)if((o=i[u++])!=o)return!0}else for(;c>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},_t={includes:kt(!0),indexOf:kt(!1)},At=_t.indexOf,Nt=function(t,e){var n,r=b(t),o=0,i=[];for(n in r)!M(pt,n)&&M(r,n)&&i.push(n);for(;e.length>o;)M(r,n=e[o++])&&(~At(i,n)||i.push(n));return i},Ct=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ft=Ct.concat("length","prototype"),Mt={f:Object.getOwnPropertyNames||function(t){return Nt(t,Ft)}},Dt={f:Object.getOwnPropertySymbols},Lt=x("Reflect","ownKeys")||function(t){var e=Mt.f(Z(t)),n=Dt.f;return n?e.concat(n(t)):e},zt=function(t,e){for(var n=Lt(e),r=et.f,o=Q.f,i=0;i<n.length;i++){var c=n[i];M(t,c)||r(t,c,o(e,c))}},Bt=/#|\.prototype\./,Ut=function(t,e){var n=qt[Wt(t)];return n==Yt||n!=Kt&&("function"==typeof e?u(e):!!e)},Wt=Ut.normalize=function(t){return String(t).replace(Bt,".").toLowerCase()},qt=Ut.data={},Kt=Ut.NATIVE="N",Yt=Ut.POLYFILL="P",Gt=Ut,Jt=Q.f,$t=function(t,e){var n,r,o,i,u,a=t.target,l=t.global,f=t.stat;if(n=l?c:f?c[a]||_(a,{}):(c[a]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(u=Jt(n,r))&&u.value:n[r],!Gt(l?r:a+(f?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;zt(i,o)}(t.sham||o&&o.sham)&&nt(i,"sham",!0),Ot(n,r,i,t)}},Vt=Object.keys||function(t){return Nt(t,Ct)},Xt=a?Object.defineProperties:function(t,e){Z(t);for(var n,r=Vt(e),o=r.length,i=0;o>i;)et.f(t,n=r[i++],e[n]);return t},Ht=x("document","documentElement"),Qt=st("IE_PROTO"),Zt=function(){},te=function(t){return"<script>"+t+"</"+"script>"},ee=function(t){t.write(te("")),t.close();var e=t.parentWindow.Object;return t=null,e},ne=function(){try{wt=new ActiveXObject("htmlfile")}catch(t){}var t,e;ne="undefined"!=typeof document?document.domain&&wt?ee(wt):((e=V("iframe")).style.display="none",Ht.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(te("document.F=Object")),t.close(),t.F):ee(wt);for(var n=Ct.length;n--;)delete ne.prototype[Ct[n]];return ne()};pt[Qt]=!0;var re=Object.create||function(t,e){var n;return null!==t?(Zt.prototype=Z(t),n=new Zt,Zt.prototype=null,n[Qt]=t):n=ne(),void 0===e?n:Xt(n,e)},oe=q("unscopables"),ie=Array.prototype;null==ie[oe]&&et.f(ie,oe,{configurable:!0,value:re(null)});var ce,ue=_t.includes;$t({target:"Array",proto:!0},{includes:function(t){return ue(this,t,arguments.length>1?arguments[1]:void 0)}}),ce="includes",ie[oe][ce]=!0;var ae=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},le=[].slice,fe={},se=function(t,e,n){if(!(e in fe)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";fe[e]=Function("C,a","return new C("+r.join(",")+")")}return fe[e](t,n)},pe=Function.bind||function(t){var e=ae(this),n=le.call(arguments,1),r=function(){var o=n.concat(le.call(arguments));return this instanceof r?se(e,o.length,o):e.apply(t,o)};return m(e.prototype)&&(r.prototype=e.prototype),r};$t({target:"Function",proto:!0},{bind:pe}),$t({target:"Object",stat:!0,forced:!a,sham:!a},{defineProperty:et.f});var he,de,ye=function(t){if(k(t))throw TypeError("Cannot convert a Symbol value to a string");return String(t)},ve=function(){var t=Z(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},ge=c.RegExp,be={UNSUPPORTED_Y:u((function(){var t=ge("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:u((function(){var t=ge("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},me=c.RegExp,we=u((function(){var t=me(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),xe=c.RegExp,Oe=u((function(){var t=xe("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Ee=xt.get,je=RegExp.prototype.exec,Se=C("native-string-replace",String.prototype.replace),Re=je,Te=(he=/a/,de=/b*/g,je.call(he,"a"),je.call(de,"a"),0!==he.lastIndex||0!==de.lastIndex),Pe=be.UNSUPPORTED_Y||be.BROKEN_CARET,Ie=void 0!==/()??/.exec("")[1];(Te||Ie||Pe||we||Oe)&&(Re=function(t){var e,n,r,o,i,c,u,a=this,l=Ee(a),f=ye(t),s=l.raw;if(s)return s.lastIndex=a.lastIndex,e=Re.call(s,f),a.lastIndex=s.lastIndex,e;var p=l.groups,h=Pe&&a.sticky,d=ve.call(a),y=a.source,v=0,g=f;if(h&&(-1===(d=d.replace("y","")).indexOf("g")&&(d+="g"),g=f.slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==f.charAt(a.lastIndex-1))&&(y="(?: "+y+")",g=" "+g,v++),n=new RegExp("^(?:"+y+")",d)),Ie&&(n=new RegExp("^"+y+"$(?!\\s)",d)),Te&&(r=a.lastIndex),o=je.call(h?n:a,g),h?o?(o.input=o.input.slice(v),o[0]=o[0].slice(v),o.index=a.lastIndex,a.lastIndex+=o[0].length):a.lastIndex=0:Te&&o&&(a.lastIndex=a.global?o.index+o[0].length:r),Ie&&o&&o.length>1&&Se.call(o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&p)for(o.groups=c=re(null),i=0;i<p.length;i++)c[(u=p[i])[0]]=o[u[1]];return o});var ke=Re;$t({target:"RegExp",proto:!0,forced:/./.exec!==ke},{exec:ke});var _e=q("match"),Ae=function(t){if(function(t){var e;return m(t)&&(void 0!==(e=t[_e])?!!e:"RegExp"==d(t))}(t))throw TypeError("The method doesn't accept regular expressions");return t},Ne=q("match");$t({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[Ne]=!1,"/./"[t](e)}catch(t){}}return!1}("includes")},{includes:function(t){return!!~ye(g(this)).indexOf(ye(Ae(t)),arguments.length>1?arguments[1]:void 0)}});var Ce=q("species"),Fe=RegExp.prototype,Me=function(t){return function(e,n){var r,o,i=ye(g(e)),c=St(n),u=i.length;return c<0||c>=u?t?"":void 0:(r=i.charCodeAt(c))<55296||r>56319||c+1===u||(o=i.charCodeAt(c+1))<56320||o>57343?t?i.charAt(c):r:t?i.slice(c,c+2):o-56320+(r-55296<<10)+65536}},De={codeAt:Me(!1),charAt:Me(!0)}.charAt,Le=function(t,e,n){return e+(n?De(t,e).length:1)},ze=function(t,e){var n=t.exec;if("function"==typeof n){var r=n.call(t,e);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==d(t))throw TypeError("RegExp#exec called on incompatible receiver");return ke.call(t,e)};function Be(t){return Be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Be(t)}function Ue(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&We(t,e)}function We(t,e){return We=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},We(t,e)}function qe(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ye(t);if(e){var o=Ye(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ke(this,n)}}function Ke(t,e){if(e&&("object"===Be(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Ye(t){return Ye=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Ye(t)}function Ge(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Je(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function $e(t,e,n){return e&&Je(t.prototype,e),n&&Je(t,n),t}!function(t,e,n,r){var o=q(t),i=!u((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),c=i&&!u((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[Ce]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e}));if(!i||!c||n){var a=/./[o],l=e(o,""[t],(function(t,e,n,r,o){var c=e.exec;return c===ke||c===Fe.exec?i&&!o?{done:!0,value:a.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}));Ot(String.prototype,t,l[0]),Ot(Fe,o,l[1])}r&&nt(Fe[o],"sham",!0)}("match",(function(t,e,n){return[function(e){var n=g(this),r=null==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](ye(n))},function(t){var r=Z(this),o=ye(t),i=n(e,r,o);if(i.done)return i.value;if(!r.global)return ze(r,o);var c=r.unicode;r.lastIndex=0;for(var u,a=[],l=0;null!==(u=ze(r,o));){var f=ye(u[0]);a[l]=f,""===f&&(r.lastIndex=Le(o,Tt(r.lastIndex),c)),l++}return 0===l?null:a}]}));var Ve=function(){function t(e){Ge(this,t),this.w=e}return $e(t,[{key:"dispatch",value:function(t,e){var n=JSON.stringify({version:1,eventName:t,meta:e});this.w.parent.postMessage(n,"*")}}]),t}(),Xe=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/.*/;Ge(this,t),this.w=e,this.originFilter=n,this.callbacks={}}return $e(t,[{key:"handle",value:function(t,e){if(e.origin.match(this.originFilter))try{var n=JSON.parse(e.data),r=n.version,o=n.eventName,i=n.meta;if(r&&1!==r&&console.warn("Recieved event from incompatible script version"),o===t)return[He,"beyonk:portal:resize"].includes(t)?this.callbacks[t](i.height):this.callbacks[t](i)}catch(t){console.warn("Recieved unparseable event",e.data)}}},{key:"listen",value:function(t,e){this.callbacks[t]=e,this.w.addEventListener("message",this.handle.bind(this,t),!1)}},{key:"ignore",value:function(t){this.w.removeEventListener("message",this.handle.bind(this,t),!1)}}]),t}(),He="whitelabel:header:resize",Qe=function(t){Ue(n,t);var e=qe(n);function n(){return Ge(this,n),e.apply(this,arguments)}return $e(n,[{key:"subscribe",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:He;this.eventName=e,this.callbacks[e]=t,this.w.addEventListener("message",this.handle.bind(this,e),!1)}},{key:"unsubscribe",value:function(){this.w.removeEventListener("message",this.handle.bind(this,this.eventName),!1)}}]),n}(Xe),Ze=function(t){Ue(n,t);var e=qe(n);function n(t){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:He;return Ge(this,n),(r=e.call(this,t)).eventName=o,r}return $e(n,[{key:"update",value:function(t){this.dispatch(this.eventName,{height:t})}}]),n}(Ve);t.RemoteEventDispatcher=Ve,t.RemoteEventObserver=Xe,t.ResizableElementDispatcher=Ze,t.ResizableElementObserver=Qe,Object.defineProperty(t,"__esModule",{value:!0})}));
{
"name": "@beyonk/embedded",
"version": "1.1.5",
"version": "1.1.6",
"description": "Embedded Beyonk Libraries",

@@ -23,3 +23,3 @@ "main": "lib/observers.js",

"@babel/runtime": "~7.12.5",
"@hapi/code": "~8.0.3",
"@hapi/code": "^8.0.3",
"@rollup/plugin-babel": "^5.2.1",

@@ -31,3 +31,3 @@ "@rollup/plugin-commonjs": "^15.1.0",

"jsdom": "^16.4.0",
"mocha": "~9.0.2",
"mocha": "^9.0.3",
"rollup": "^2.37.0",

@@ -34,0 +34,0 @@ "rollup-plugin-terser": "^7.0.2",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc