@googleworkspace/meet-addons 1.2.0-dev-718548242 → 1.2.0-dev-719451815

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.
Files changed (2) hide show
  1. package/meet.addons.mjs +65 -64
  2. package/package.json +2 -1
package/meet.addons.mjs CHANGED
@@ -4,68 +4,69 @@ function da(a,b){if(b)a:{var c=ca;a=a.split(".");for(var d=0;d<a.length-1;d++){v
4
4
  Copyright The Closure Library Authors.
5
5
  SPDX-License-Identifier: Apache-2.0
6
6
  */
7
- var l=this||self;function ea(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}}function fa(a){return a}function ha(a,b){function c(){}c.prototype=b.prototype;a.qa=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.oa=function(d,e,f){for(var g=Array(arguments.length-2),h=2;h<arguments.length;h++)g[h-2]=arguments[h];return b.prototype[e].apply(d,g)}};function ia(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,ia);else{const c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));b!==void 0&&(this.cause=b)}ha(ia,Error);ia.prototype.name="CustomError";function m(a){l.setTimeout(()=>{throw a;},0)};var ja,ka;a:{for(var la=["CLOSURE_FLAGS"],ma=l,na=0;na<la.length;na++)if(ma=ma[la[na]],ma==null){ka=null;break a}ka=ma}var oa=ka&&ka[610401301];ja=oa!=null?oa:!1;var pa;const qa=l.navigator;pa=qa?qa.userAgentData||null:null;function ra(a){return ja?pa?pa.brands.some(({brand:b})=>b&&b.indexOf(a)!=-1):!1:!1}function n(a){var b;a:{if(b=l.navigator)if(b=b.userAgent)break a;b=""}return b.indexOf(a)!=-1};function p(){return ja?!!pa&&pa.brands.length>0:!1}function sa(){return p()?ra("Chromium"):(n("Chrome")||n("CriOS"))&&!(p()?0:n("Edge"))||n("Silk")};function ta(a,b){b=Array.prototype.indexOf.call(a,b,void 0);b>=0&&Array.prototype.splice.call(a,b,1)};!n("Android")||sa();sa();n("Safari")&&(sa()||(p()?0:n("Coast"))||(p()?0:n("Opera"))||(p()?0:n("Edge"))||(p()?ra("Microsoft Edge"):n("Edg/"))||p()&&ra("Opera"));function ua(a){let b="",c=0;const d=a.length-10240;for(;c<d;)b+=String.fromCharCode.apply(null,a.subarray(c,c+=10240));b+=String.fromCharCode.apply(null,c?a.subarray(c):a);return btoa(b)}const va=/[-_.]/g,wa={"-":"+",_:"/",".":"="};function xa(a){return wa[a]||""}function ya(a){return a!=null&&a instanceof Uint8Array}var za={};function Aa(){return Ba||(Ba=new Ca(null,za))}var Ca=class{constructor(a,b){Da(b);this.g=a;if(a!=null&&a.length===0)throw Error("ByteString should be constructed with non-empty values");}};let Ba;function Da(a){if(a!==za)throw Error("illegal external caller");};function Ea(a,b){a.__closure__error__context__984382||(a.__closure__error__context__984382={});a.__closure__error__context__984382.severity=b};let Fa=void 0;function Ha(a){a=Error(a);Ea(a,"warning");return a};var Ia=new Set;function Ja(a,b=!1,c=!1){a=c&&Symbol.for&&a?Symbol.for(a):a!=null?Symbol(a):Symbol();b&&Ia.add(a);return a}var q=Ja("jas",!0,!0),Ka=Ja(),La=Ja(void 0,!0),Ma=Ja(void 0,!0);function Na(a,b){b[q]=(a|0)&-30975}function Oa(a,b){b[q]=(a|34)&-30941};function Pa(){return typeof BigInt==="function"};function r(a){return Array.prototype.slice.call(a)};var Qa={},Ra={};function Sa(a){return!(!a||typeof a!=="object"||a.g!==Ra)}function Ta(a){return a!==null&&typeof a==="object"&&!Array.isArray(a)&&a.constructor===Object}function Ua(a,b){if(a!=null)if(typeof a==="string")a=a?new Ca(a,za):Aa();else if(a.constructor!==Ca)if(ya(a))a=a.length?new Ca(new Uint8Array(a),za):Aa();else{if(!b)throw Error();a=void 0}return a}function Va(a){return!Array.isArray(a)||a.length?!1:(a[q]|0)&1?!0:!1}var Wa;const Xa=[];Xa[q]=55;Wa=Object.freeze(Xa);
8
- function Ya(a){if(a&2)throw Error();}function Za(a,b){const c=fa(Ma);(b=c?b[c]:void 0)&&(a[Ma]=r(b))}var $a=Object.freeze({});function ab(a){a.pa=!0;return a};var bb=ab(a=>typeof a==="number"),cb=ab(a=>typeof a==="string"),db=ab(a=>typeof a==="boolean");var eb=typeof l.BigInt==="function"&&typeof l.BigInt(0)==="bigint";var kb=ab(a=>eb?a>=fb&&a<=gb:a[0]==="-"?hb(a,ib):hb(a,jb));const ib=Number.MIN_SAFE_INTEGER.toString(),fb=eb?BigInt(Number.MIN_SAFE_INTEGER):void 0,jb=Number.MAX_SAFE_INTEGER.toString(),gb=eb?BigInt(Number.MAX_SAFE_INTEGER):void 0;function hb(a,b){if(a.length>b.length)return!1;if(a.length<b.length||a===b)return!0;for(let c=0;c<a.length;c++){const d=a[c],e=b[c];if(d>e)return!1;if(d<e)return!0}};let v=0,w=0;function lb(a){const b=a>>>0;v=b;w=(a-b)/4294967296>>>0}function mb(a){if(a<0){lb(-a);const [b,c]=qb(v,w);v=b>>>0;w=c>>>0}else lb(a)}function rb(a,b){b>>>=0;a>>>=0;if(b<=2097151)var c=""+(4294967296*b+a);else Pa()?c=""+(BigInt(b)<<BigInt(32)|BigInt(a)):(c=(a>>>24|b<<8)&16777215,b=b>>16&65535,a=(a&16777215)+c*6777216+b*6710656,c+=b*8147497,b*=2,a>=1E7&&(c+=a/1E7>>>0,a%=1E7),c>=1E7&&(b+=c/1E7>>>0,c%=1E7),c=b+sb(c)+sb(a));return c}
9
- function sb(a){a=String(a);return"0000000".slice(a.length)+a}function qb(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]};const tb=typeof BigInt==="function"?BigInt.asIntN:void 0,ub=Number.isSafeInteger,vb=Number.isFinite,wb=Math.trunc,xb=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;function yb(a){switch(typeof a){case "bigint":return!0;case "number":return vb(a);case "string":return xb.test(a);default:return!1}}function y(a){if(a!=null){if(!vb(a))throw Ha("enum");a|=0}return a}function zb(a){if(a!=null){if(typeof a==="string"&&a)a=+a;else if(typeof a!=="number")return;vb(a)}}
10
- function Ab(a){if(a!=null)a:{if(!yb(a))throw Ha("int64");switch(typeof a){case "string":a=Bb(a);break a;case "bigint":var b=a=tb(64,a);if(cb(b)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(b))throw Error(String(b));}else if(bb(b)&&!Number.isSafeInteger(b))throw Error(String(b));eb?a=BigInt(a):a=db(a)?a?"1":"0":cb(a)?a.trim()||"0":String(a);break a;default:a=Cb(a)}}return a}
11
- function Cb(a){a=wb(a);if(!ub(a)){mb(a);var b=v,c=w;if(a=c&2147483648)b=~b+1>>>0,c=~c>>>0,b==0&&(c=c+1>>>0);const d=c*4294967296+(b>>>0);b=Number.isSafeInteger(d)?d:rb(b,c);a=typeof b==="number"?a?-b:b:a?"-"+b:b}return a}
12
- function Bb(a){var b=wb(Number(a));if(ub(b))return String(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));b=a.length;if(!(a[0]==="-"?b<20||b===20&&Number(a.substring(0,7))>-922337:b<19||b===19&&Number(a.substring(0,6))<922337)){if(a.length<16)mb(Number(a));else if(Pa())a=BigInt(a),v=Number(a&BigInt(4294967295))>>>0,w=Number(a>>BigInt(32)&BigInt(4294967295));else{b=+(a[0]==="-");w=v=0;const c=a.length;for(let d=b,e=(c-b)%6+b;e<=c;d=e,e+=6){const f=Number(a.slice(d,e));w*=1E6;v=v*1E6+f;v>=4294967296&&
13
- (w+=Math.trunc(v/4294967296),w>>>=0,v>>>=0)}if(b){const [d,e]=qb(v,w);v=d;w=e}}a=v;b=w;if(b&2147483648)if(Pa())a=""+(BigInt(b|0)<<BigInt(32)|BigInt(a>>>0));else{const [c,d]=qb(a,b);a="-"+rb(c,d)}else a=rb(a,b)}return a}function z(a){if(a!=null&&typeof a!=="string")throw Error();return a}function Db(a,b,c){if(a!=null&&typeof a==="object"&&a.H===Qa)return a;if(Array.isArray(a)){var d=a[q]|0,e=d;e===0&&(e|=c&32);e|=c&2;e!==d&&(a[q]=e);return new b(a)}};function Eb(a,b){return Fb(b)}function Fb(a){switch(typeof a){case "number":return isFinite(a)?a:String(a);case "bigint":return kb(a)?Number(a):String(a);case "boolean":return a?1:0;case "object":if(a)if(Array.isArray(a)){if(Va(a))return}else{if(ya(a))return ua(a);if(a instanceof Ca){const b=a.g;return b==null?"":typeof b==="string"?b:a.g=ua(b)}}}return a};function Gb(a,b,c){const d=r(a);var e=d.length;const f=b&256?d[e-1]:void 0;e+=f?-1:0;for(b=b&512?1:0;b<e;b++)d[b]=c(d[b]);if(f){b=d[b]={};for(const g in f)b[g]=c(f[g])}Za(d,a);return d}function Hb(a,b,c,d,e){if(a!=null){if(Array.isArray(a))a=Va(a)?void 0:e&&(a[q]|0)&2?a:Ib(a,b,c,d!==void 0,e);else if(Ta(a)){const f={};for(let g in a)f[g]=Hb(a[g],b,c,d,e);a=f}else a=b(a,d);return a}}
14
- function Ib(a,b,c,d,e){const f=d||c?a[q]|0:0;d=d?!!(f&32):void 0;const g=r(a);for(let h=0;h<g.length;h++)g[h]=Hb(g[h],b,c,d,e);c&&(Za(g,a),c(f,g));return g}function Jb(a){return a.H===Qa?a.toJSON():Fb(a)}function Kb(a){return Ib(a,Jb,void 0,void 0,!1)};function Lb(a,b,c=Oa){if(a!=null){if(a instanceof Uint8Array)return b?a:new Uint8Array(a);if(Array.isArray(a)){var d=a[q]|0;if(d&2)return a;b&&(b=d===0||!!(d&32)&&!(d&64||!(d&16)));return b?(a[q]=(d|34)&-12293,a):Ib(a,Lb,d&4?Oa:c,!0,!0)}a.H===Qa&&(c=a.m,d=c[q]|0,a=d&2?a:new a.constructor(Mb(c,d,!0)));return a}}function Mb(a,b,c){const d=c||b&2?Oa:Na,e=!!(b&32);a=Gb(a,b,f=>Lb(f,e,d));a[q]=a[q]|32|(c?2:0);return a}function Nb(a){const b=a.m,c=b[q]|0;return c&2?new a.constructor(Mb(b,c,!1)):a};function A(a,b){a=a.m;return Ob(a,a[q]|0,b)}function Ob(a,b,c,d){if(c===-1)return null;const e=c+(b&512?0:-1),f=a.length-1;if(e>=f&&b&256)return a[f][c];if(d&&b&256&&(b=a[f][c],b!=null)){if(a[e]!=null&&Ka!=null){var g;a=(g=Fa)!=null?g:Fa={};g=a[Ka]||0;g>=4||(a[Ka]=g+1,g=Error(),Ea(g,"incident"),m(g))}return b}if(e<=f)return a[e]}function Pb(a,b,c){const d=a.m;let e=d[q]|0;Ya(e);B(d,e,b,c);return a}
15
- function B(a,b,c,d){const e=b&512?0:-1,f=c+e;var g=a.length-1;if(f>=g&&b&256)return a[g][c]=d,b;if(f<=g)return a[f]=d,b&256&&(a=a[g],c in a&&delete a[c]),b;d!==void 0&&(g=b>>15&1023||536870912,c>=g?d!=null&&(a[g+e]={[c]:d},b|=256,a[q]=b):a[f]=d);return b}function Qb(a,b,c,d){c=C(a,d)===c?c:-1;return Rb(a,b,c)!==void 0}function Sb(a){return!!(2&a)&&!!(4&a)||!!(2048&a)}function D(a,b,c,d){const e=a.m;let f=e[q]|0;Ya(f);B(e,f,b,(d==="0"?Number(c)===0:c===d)?void 0:c);return a}
16
- function C(a,b){a=a.m;return Tb(Ub(a),a,a[q]|0,b)}function Ub(a){let b;return(b=a[La])!=null?b:a[La]=new Map}function Tb(a,b,c,d){let e=a.get(d);if(e!=null)return e;e=0;for(let f=0;f<d.length;f++){const g=d[f];Ob(b,c,g)!=null&&(e!==0&&(c=B(b,c,e)),e=g)}a.set(d,e);return e}function Rb(a,b,c,d){a=a.m;let e=a[q]|0;d=Ob(a,e,c,d);b=Db(d,b,e);b!==d&&b!=null&&B(a,e,c,b);return b}
17
- function Vb(a,b,c){b=Rb(a,b,c,!1);if(b==null)return b;a=a.m;let d=a[q]|0;if(!(d&2)){const e=Nb(b);e!==b&&(b=e,B(a,d,c,b))}return b}function Wb(a,b,c){c==null&&(c=void 0);return Pb(a,b,c)}function E(a,b,c,d){d==null&&(d=void 0);a:{const g=a.m;var e=g[q]|0;Ya(e);if(d==null){var f=Ub(g);if(Tb(f,g,e,c)===b)f.set(c,0);else break a}else{f=g;const h=Ub(f),k=Tb(h,f,e,c);k!==b&&(k&&(e=B(f,e,k)),h.set(c,b))}B(g,e,b,d)}return a}
18
- function Xb(a,b){const c=a.m;let d=c[q]|0;Ya(d);if(b==null)return B(c,d,1),a;let e=b[q]|0,f=e;const g=Sb(e),h=g||Object.isFrozen(b);let k=!0,t=!0;for(let x=0;x<b.length;x++){var u=b[x];g||(u=!!((u.m[q]|0)&2),k&&(k=!u),t&&(t=u))}g||(e=k?13:5,e=t?e|16:e&-17);h&&e===f||(b=r(b),f=0,e=Yb(e,d),e=Zb(e,d,!0));e!==f&&(b[q]=e);B(c,d,1,b);return a}function Yb(a,b){a=(2&b?a|2:a&-3)|32;return a&=-2049}function Zb(a,b,c){32&b&&c||(a&=-33);return a}
19
- function $b(a){a=A(a,1);a=a==null||typeof a==="boolean"?a:typeof a==="number"?!!a:void 0;return a!=null?a:!1}function ac(a){a=A(a,1);a!=null&&(typeof a==="bigint"?kb(a)?a=Number(a):(a=tb(64,a),a=kb(a)?Number(a):String(a)):a=yb(a)?typeof a==="number"?Cb(a):Bb(a):void 0);return a!=null?a:0}function F(a,b){a=A(a,b);a=a==null||typeof a==="string"?a:void 0;return a!=null?a:""}function G(a,b){a=A(a,b);a=a==null?a:vb(a)?a|0:void 0;return a!=null?a:0}
20
- function H(a,b,c,d){c=C(a,d)===c?c:-1;return Vb(a,b,c)};function bc(a){return a}let I;function cc(a){try{return I=bc,JSON.stringify(dc(a),Eb)}finally{I=void 0}}function ec(){var a=fc||(fc=gc("[1,2,0]"));a=Nb(a);a=Pb(a,4,z("dev-718548242"));const b=a.m,c=b[q]|0;return c&2?a:new a.constructor(Mb(b,c,!0))}
21
- var J=class{constructor(a){a:{if(a==null){var b=96;a=[]}else{if(!Array.isArray(a))throw Error("narr");b=a[q]|0;if(b&2048)throw Error("farr");if(b&64)break a;var c=a;b|=64;var d=c.length;if(d&&(--d,Ta(c[d]))){b|=256;c=d-(b&512?0:-1);if(c>=1024)throw Error("pvtlmt");b=b&-33521665|(c&1023)<<15}}a[q]=b}this.m=a}toJSON(){const a=!I;try{return a&&(I=Kb),dc(this)}finally{a&&(I=void 0)}}};J.prototype.H=Qa;J.prototype.toString=function(){try{return I=bc,dc(this).toString()}finally{I=void 0}};
22
- function dc(a){var b=a.m;a=I(b);{b=a!==b;let t=a.length;if(t){var c=a[t-1],d=Ta(c);d?t--:c=void 0;var e=a;if(d){b:{var f=c;var g;var h=!1;if(f)for(let u in f)if(isNaN(+u)){let x;((x=g)!=null?x:g={})[u]=f[u]}else if(d=f[u],Array.isArray(d)&&(Va(d)||Sa(d)&&d.size===0)&&(d=null),d==null&&(h=!0),d!=null){let x;((x=g)!=null?x:g={})[u]=d}h||(g=f);if(g)for(let u in g){h=g;break b}h=null}f=h==null?c!=null:h!==c}for(;t>0;t--){g=e[t-1];if(!(g==null||Va(g)||Sa(g)&&g.size===0))break;var k=!0}if(e!==a||f||k){if(!b)e=
23
- Array.prototype.slice.call(e,0,t);else if(k||f||h)e.length=t;h&&e.push(h)}k=e}else k=a}return k};function hc(a){return b=>{if(b==null||b=="")b=new a;else{b=JSON.parse(b);if(!Array.isArray(b))throw Error("dnarr");b[q]|=32;b=new a(b)}return b}};var gc=function(a){return b=>{b=JSON.parse(b);if(!Array.isArray(b)){var c=typeof b;throw Error("Expected jspb data to be an array, got "+(c!="object"?c:b?Array.isArray(b)?"array":c:"null")+": "+b);}b[q]|=34;return new a(b)}}(class extends J{});var ic=class extends J{};function jc(a){var b=new kc(500);let c=0,d;return(...e)=>{lc(b)?a(...e):(d=()=>void a(...e),c||(c=setTimeout(()=>{c=0;let f;(f=d)==null||f()},mc(b))))}}function nc(a){var b=new kc(100),c=Promise.resolve();return(...d)=>lc(b)?a(...d):c};function lc(a){return oc(a,a.index)>=a.g?(a.h[a.index]=Date.now(),a.index=(a.index+1)%1,!0):!1}function mc(a){const b=a.g;a=oc(a,a.index);return a>=b?0:b-a}function oc(a,b){let c;return Date.now()-((c=a.h[b])!=null?c:-1*a.g)}var kc=class{constructor(a){this.g=a;this.h=[];this.index=0}};var pc=class extends J{},qc=[2,3];var rc=class extends J{};var K=class extends Error{constructor({errorType:a,message:b,i:c}){super(`Meet Add-on SDK error: ${`${b}${c?` - ${c}`:""}`}`);this.errorType=a}},L={errorType:"InternalError",message:"An unexpected error has occurred.",i:"No further information is available."},sc={errorType:"MissingUrlParameter",message:"Missing required Meet SDK URL parameter",i:"This parameter is automatically appended by Meet to the iframe URL. Ensure that your infrastructure does not strip URL parameters (e.g. as part of a redirect)."},
24
- tc={errorType:"NeedsMainStageContext",message:"This method can only be invoked if the addon is running in the main stage.",i:"Use getFrameType to check whether the addon is running in the main stage before invoking this method."},uc={errorType:"NeedsSidePanelContext",message:"This method can only be invoked if the addon is running in the side panel.",i:"Use getFrameType to check whether the addon is running in the side panel before invoking this method."},vc={errorType:"NotSupportedInStandalone",
25
- message:"This method is not supported in standalone mode.",i:"Do not call this method in standalone mode."},wc={errorType:"MustBeIframed",message:"The SDK must be run in an iframe as part of a Google Meet add-on.",i:"See https://developers.google.com/meet/add-ons/guides/deploy-add-on to deploy to Meet."},xc={errorType:"InternalError",message:"The frame type URL parameter is set to an unexpected value.",i:"This parameter is automatically appended by Meet to the iframe URL. Ensure that your infrastructure does not modify URL parameters (e.g. as part of a redirect)."},
26
- yc={errorType:"InvalidCloudProjectNumber",message:"Cloud Project Number provided by meet does not match the one passed in by the SDK. Ensure that the correct Cloud Project Number is passed to the SDK as a string.",i:"This parameter is automatically appended by Meet to the iframe URL. Ensure that your infrastructure does not modify URL parameters (e.g. as part of a redirect) and ensure that the correct Cloud Project Number was passed into the SDK as a string."},zc={errorType:"DestinationNotReady",
27
- message:"The recipient frame is not connected via the addon SDK and cannot receive the notification.",i:"Make sure the destination frame has connected before sending messages to it."},Ac={errorType:"InvalidActivityStartingState",message:"Origin of the ActivityStartingState iframeURLs does not match the origin of the URLs provided in the Add-on manifest.",i:"Ensure that the ActivityStartingState iframeURL origins match the origins of the URLs provided in the Add-on manifest."},Bc={errorType:"ActivityStartingStateMissingAttributes",
28
- message:"The supplied ActivityStartingState object does not contain any recognized attributes.",i:"Ensure that the ActivityStartingState object contains at least one of the following attributes: mainStageUrl, sidePanelUrl, additionalData."},Cc={errorType:"ActivityStartingStateUnrecognizedAttributes",message:"The supplied ActivityStartingState object contains attributes that are not recognized.",i:"Ensure that the ActivityStartingState object has only the following attributes: mainStageUrl, sidePanelUrl, additionalData."},
29
- Dc={errorType:"AddonStartingStateMissingAttributes",message:"The supplied AddonStartingState object does not contain any recognized attributes.",i:"Ensure that the AddonStartingState object contains at least one of the following attributes: sidePanelUrl, additionalData."},Ec={errorType:"AddonStartingStateUnrecognizedAttributes",message:"The supplied AddonStartingState object contains attributes that are not recognized.",i:"Ensure that the AddonStartingState object has only the following attributes: sidePanelUrl, additionalData."},
30
- Fc=a=>({errorType:"ArgumentNullError",message:`The argument supplied for '${a}' was 'null' but a value was expected.`,i:"Ensure you are passing a value of the expected type for the argument."}),M=(a,b,c)=>({errorType:"ArgumentTypeError",message:`The type '${b}' of argument supplied for '${a}' did not match the expected type '${c}'.`,i:"Ensure the type of the argument provided matches the expected type."}),Hc=a=>({errorType:"InternalError",message:`Could not connect to ${a} channel. Unknown error`,
31
- i:"No further information is available."}),Ic={errorType:"ActivityIsOngoing",message:"Operation cannot be performed while an activity is ongoing.",i:"Ensure that no activity is ongoing."},Jc={errorType:"InternalError",message:"Frame message missing required Meet SDK command.",i:"Send one of the available commands in the frame message."},Kc={errorType:"NoActivityFound",message:"No activity found.",i:"Ensure that the activity is started before performing this operation."},Lc={errorType:"RequiresEapEnrollment",
32
- message:"This feature is only available to early access partners.",i:"Meet add-on early access enrollment is currently closed."},Mc={errorType:"UserNotInitiator",message:"Operation cannot be performed because the user is not the initiator of the current activity.",i:"Ensure that the user is the initiator of the current activity or that the activity has ended."},Nc={errorType:"SizeLimitExceededActivityStartingState",message:"The size of the activityStartingState URLs and/or its data exceed the limits allowed.",
33
- i:"Ensure that the activityStartingState URL size is less than 512 characters and the additional data size is less than 4096 characters."},Oc={errorType:"SizeLimitExceededFrameToFrameMessage",message:"The size of the frame to frame message exceeds the limits allowed.",i:"Ensure that the frame to frame message size is less than 1,000,000 characters."},Pc={errorType:"AddonSessionAlreadyCreated",message:"The addon session has already been created.",i:"Only instantiate the AddonSession once."},Qc={errorType:"UserCancelled",
34
- message:"The user cancelled starting an activity.",i:"The user needs to click continue to start the activity."},Rc={errorType:"NotSupportedInMeetCall",message:"This method is not supported during a Meet call.",i:"Do not call this method during a Meet call."},Sc={errorType:"InvalidAddonStartingState",message:"Origin of the AddonStartingState iframeURLs does not match the origin of the URLs provided in the Add-on manifest.",i:"Ensure that the AddonStartingState iframeURL origins match the origins of the URLs provided in the Add-on manifest."},
35
- Tc={errorType:"SizeLimitExceededAddonStartingState",message:"The size of the AddonStartingState URLs and/or its data exceed the limits allowed.",i:"Ensure that the AddonStartingState URL size is less than 512 characters and the additional data size is less than 4096 characters."},Uc={errorType:"MeetingPolicyPreventsStartingActivity",message:"A meeting policy (such as using host control settings) prevents the user from starting the activity.",i:"Have a meeting host or administrator modify the necessary settings to allow the current user to start the activity."};
36
- function Vc(a){switch(a){case 0:return L;case 1:return zc;case 2:return Ac;case 3:return Ic;case 4:return Jc;case 5:return Lc;case 6:return vc;case 7:return Mc;case 8:return Nc;case 9:return Oc;case 10:return Qc;case 11:return Rc;case 12:return Sc;case 13:return Tc;case 14:return Kc;case 15:return Uc;default:return L}}
37
- function Wc(a){let b;var c=(b=G(a,1))!=null?b:0;a=Xc(C(a,qc));switch(c){case 1:return{errorType:"InternalError",message:`Could not connect to ${a} channel. Meet did not respond with a MessagePort.`,i:"No further information is available."};case 2:return{errorType:"InternalError",message:`Could not connect to ${a}. A conflicting ${a} exists.`,i:"No further information is available."};case 3:return{errorType:"InternalError",message:`Could not connect to ${a} channel. The addon does not have permission to open a ${a}.`,
38
- i:"This method might require EAP enrollment."};case 4:return{errorType:"InternalError",message:`Could not connect to ${a} channel. The addon is not authorized for this ${a}.`,i:"No further information is available."};case 0:return Hc(a);case 5:a:switch(a){case "co":c={errorType:"InternalError",message:`Could not connect to ${a} channel. The coActivity was not found.`,i:`Consider starting the ${a} only after after the startActivity promise returns.`};break a;default:c={errorType:"InternalError",message:`Could not connect to ${a} channel.`,
39
- i:"No further information is available."}}return c;default:return Hc(a)}}function Xc(a){switch(a){case 2:return"co";case 3:return"gd";case 0:return"unknown";default:return"unknown"}}function N({errorType:a,message:b,i:c},d=""){throw new K({errorType:a,message:d?`${b} ${d}`:b,i:c});}function Yc(a,b){N({...sc,message:`${sc.message}: ${a}. In URL ${b}`})};function Zc(a){var b=new $c;return D(b,1,y(a),0)}function ad(a,b){return D(a,2,z(b),"")}function bd(a,b){return D(a,3,z(b),"")}var $c=class extends J{getFrameType(){return G(this,1)}};function cd(a){var b;void 0===$a?b=2:b=4;var c=a.m[q]|0,d=c,e=!(2&c),f=$c;a=a.m;var g=!!(2&d);c=g?1:b;e&&(e=!g);b=Ob(a,d,1);b=Array.isArray(b)?b:Wa;var h=b[q]|0;g=!!(4&h);if(!g){var k=h;k===0&&(k=Yb(k,d));h=b;k|=1;var t=d;const u=!!(2&k);u&&(t|=2);let x=!u,nb=!0,Ga=0,ob=0;for(;Ga<h.length;Ga++){const pb=Db(h[Ga],f,t);if(pb instanceof f){if(!u){const Gc=!!((pb.m[q]|0)&2);x&&(x=!Gc);nb&&(nb=Gc)}h[ob++]=pb}}ob<Ga&&(h.length=ob);k|=4;k=nb?k|16:k&-17;k=x?k|8:k&-9;h[q]=k;u&&Object.freeze(h);h=k}if(e&&!(8&
40
- h||!b.length&&(c===1||c===4&&32&h))){Sb(h)&&(b=r(b),h=Yb(h,d),d=B(a,d,1,b));e=b;f=h;for(h=0;h<e.length;h++)k=e[h],t=Nb(k),k!==t&&(e[h]=t);f|=8;f=e.length?f&-17:f|16;h=e[q]=f}c===1||c===4&&32&h?Sb(h)||(d=h,a=!!(32&h),h|=!b.length||16&h&&(!g||a)?2:2048,h!==d&&(b[q]=h),Object.freeze(b)):(c===2&&Sb(h)&&(b=r(b),h=Yb(h,d),h=Zb(h,d,!1),b[q]=h,d=B(a,d,1,b)),Sb(h)||(a=h,h=Zb(h,d,!1),h!==a&&(b[q]=h)));return b}function dd(a){var b=new ed;return Xb(b,a)}var ed=class extends J{};var fd=class extends J{};function gd(a){var b=new hd;return D(b,1,y(a),0)}var hd=class extends J{};var id=class extends J{};var jd=class extends J{};var kd=class extends J{};var md=class extends J{getMeetingInfo(){return H(this,kd,3,ld)}getMeetPlatformInfo(){return H(this,jd,4,ld)}},ld=[2,3,4,5];var nd=class extends J{},od=[1,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21];var pd=class extends J{};var qd=class extends J{};var rd=new Map([[2,"MAIN_STAGE"],[1,"SIDE_PANEL"]]),sd=new Map([[0,"UNKNOWN"],[1,"OPEN_ADDON"],[2,"START_ACTIVITY"],[3,"JOIN_ACTIVITY"]]);function td(a){a&&typeof a.dispose=="function"&&a.dispose()};function O(){this.s=this.s;this.g=this.g}O.prototype.s=!1;O.prototype.dispose=function(){this.s||(this.s=!0,this.G())};O.prototype[Symbol.dispose]=function(){this.dispose()};function ud(a,b){a.s?b():(a.g||(a.g=[]),a.g.push(b))}O.prototype.G=function(){if(this.g)for(;this.g.length;)this.g.shift()()};function vd({J:a,R:b}){if(a===null)throw new K(Fc("activityStartingState"));if(b||a!==void 0){if(typeof a!=="object")throw new K(M("activityStartingState",typeof a,`object${b?"":" | undefined"}`));if(a.mainStageUrl!==void 0&&typeof a.mainStageUrl!=="string")throw new K(M("mainStageUrl",typeof a.mainStageUrl,"string | undefined"));if(a.sidePanelUrl!==void 0&&typeof a.sidePanelUrl!=="string")throw new K(M("sidePanelUrl",typeof a.sidePanelUrl,"string | undefined"));if(a.additionalData!==void 0&&typeof a.additionalData!==
41
- "string")throw new K(M("additionalData",typeof a.additionalData,"string | undefined"));if(Object.keys(a).length!==+!!a.mainStageUrl+ +!!a.sidePanelUrl+ +!!a.additionalData)throw new K(Cc);if(Object.keys(a).length===0)throw new K(Bc);}}function wd(a){const b=[];b.push(bd(ad(Zc(2),a.mainStageUrl),a.additionalData));b.push(bd(ad(Zc(1),a.sidePanelUrl),a.additionalData));return b}
42
- var Dd=class extends O{constructor(a){super();this.context=a;this.h={};xd(this.context.g.U,b=>{switch(C(b.content,od)){case 7:const d=this.h.frameToFrameMessage;b=H(b.content,id,7,od);if(d&&b){var c=G(b,1);c=rd.get(c);if(c===void 0)throw Error("Unknown frame type.");d({originator:c,payload:F(b,2)})}}})}async getMeetingInfo(){const a=await yd(this.context.g,gd(2));return{meetingId:F(a.getMeetingInfo(),1),meetingCode:F(a.getMeetingInfo(),2)}}async getFrameOpenReason(){let a;const b=(a=this.context.h.ca)!=
43
- null?a:0;let c;return(c=sd.get(b))!=null?c:"UNKNOWN"}async getActivityStartingState(){var a=H(await yd(this.context.g,gd(1)),ed,2,ld);const b=a==null?void 0:cd(a).find(c=>c.getFrameType()===2);a=a==null?void 0:cd(a).find(c=>c.getFrameType()===1);return{mainStageUrl:(b==null?void 0:F(b,2))||void 0,sidePanelUrl:(a==null?void 0:F(a,2))||void 0,additionalData:(a==null?void 0:F(a,3))||void 0}}async setActivityStartingState(a){vd({J:a,R:!0});var b=wd(a);a=zd;var c=this.context.g;var d=new pd;b=dd(b);d=
44
- Wb(d,1,b);await a(c,d)}on(a,b){this.h[a]=b}async getMeetPlatformInfo(){const a=await yd(this.context.g,gd(3));return{isMeetHardware:$b(a.getMeetPlatformInfo())}}async closeAddon(){await Ad(this.context.g)}async startActivity(a){vd({J:a,R:!1});const b=new qd;a&&(a=wd(a),a=dd(a),Wb(b,1,a));await Bd(this.context.g,b)}async endActivity(a){var b=Cd,c=this.context.g,d=new fd;a=D(d,1,y(a==="aab61ee0-51b4-475d-aa4d-849f2498640d"?999:0),0);await b(c,a)}};var Ed=hc(class extends J{getFrameOpenReason(){return G(this,5)}});function Fd(){var a=window.location.href;var b=window.location.href;var c=(new URL(b)).searchParams.get("meet_sdk");if(c)b=Ed(atob(c));else{var d;((d=window.top)!=null?d:window)===window?N(wc):Yc("meet_sdk",b);b=void 0}(c=F(b,1))||Yc("meet_addon_frame_type",a);c=Number(c);if(c!==2&&c!==1)throw new K(xc);(d=F(b,2))||Yc("meet_control_channel_name",a);const e=F(b,4);e||Yc("addon_cloud_project_number",a);var f;a=(f=b.getFrameOpenReason())!=null?f:0;f=F(b,3)||"https://meet.google.com";return{ca:a,frameType:c,
45
- ba:d,cloudProjectNumber:e,S:f}};var Gd=class extends J{};var Hd=class extends J{};function Id(){var a=new Jd,b=new Hd;return E(a,1,Kd,b)}var Jd=class extends J{},Kd=[1,2];function Ld(a){var b=new Md;return Wb(b,2,a)}function Nd(a,b){return D(a,3,z(b),"")}var Md=class extends J{};var Od=class extends J{};var Pd=class extends J{};var Qd=class extends J{};var Rd=class extends J{};var Sd=class extends J{setAddonStartingState(a){return Wb(this,1,a)}};var Td=class extends J{};function Ud(a,b){return E(a,2,P,b)}var Q=class extends J{},P=[1,2,5,6,7,8,9,10,11,13,14,15,16,17,18,19,20];var Vd=class extends J{},Wd=hc(Vd),Xd=[1,2];class Yd{constructor(a,b){this.data=a;this.channel=b}};var Zd=Promise;function $d(a){const b=new MessageChannel;ae(b.port1,a);return b}function be(a,b){ae(a,b);return new ce(a)}class ce{constructor(a){this.g=a}send(a,b,c=[]){b=$d(b);this.g.postMessage(a,[b.port2].concat(c))}C(a,b){return new Zd(c=>{this.send(a,c,b)})}}function ae(a,b){b&&(a.onmessage=c=>{var d=c.data;c=be(c.ports[0]);b(new Yd(d,c))})};var de=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?a=>a&&AsyncContext.Snapshot.wrap(a):a=>a;function ee(a,b){a.l(b);a.h<100&&(a.h++,b.next=a.g,a.g=b)}class fe{constructor(a,b){this.j=a;this.l=b;this.h=0;this.g=null}get(){let a;this.h>0?(this.h--,a=this.g,this.g=a.next,a.next=null):a=this.j();return a}};function ge(){var a=he;let b=null;a.g&&(b=a.g,a.g=a.g.next,a.g||(a.h=null),b.next=null);return b}class ie{constructor(){this.h=this.g=null}add(a,b){const c=je.get();c.set(a,b);this.h?this.h.next=c:this.g=c;this.h=c}}var je=new fe(()=>new ke,a=>a.reset());class ke{constructor(){this.next=this.g=this.h=null}set(a,b){this.h=a;this.g=b;this.next=null}reset(){this.next=this.g=this.h=null}};let le,me=!1,he=new ie,oe=(a,b)=>{le||ne();me||(le(),me=!0);he.add(a,b)},ne=()=>{const a=Promise.resolve(void 0);le=()=>{a.then(pe)}};function pe(){let a;for(;a=ge();){try{a.h.call(a.g)}catch(b){m(b)}ee(je,a)}me=!1};function qe(){};function R(a){this.g=0;this.T=void 0;this.l=this.h=this.j=null;this.v=this.B=!1;if(a!=qe)try{const b=this;a.call(void 0,function(c){re(b,2,c)},function(c){re(b,3,c)})}catch(b){re(this,3,b)}}function se(){this.next=this.context=this.h=this.l=this.g=null;this.j=!1}se.prototype.reset=function(){this.context=this.h=this.l=this.g=null;this.j=!1};var te=new fe(function(){return new se},function(a){a.reset()});function ue(a,b,c){const d=te.get();d.l=a;d.h=b;d.context=c;return d}
46
- function ve(){let a,b;const c=new R(function(d,e){a=d;b=e});return new we(c,a,b)}R.prototype.then=function(a,b,c){return xe(this,de(typeof a==="function"?a:null),de(typeof b==="function"?b:null),c)};R.prototype.$goog_Thenable=!0;function ye(a,b){b=de(b);b=ue(b,b);b.j=!0;ze(a,b)}R.prototype.cancel=function(a){if(this.g==0){const b=new S(a);oe(function(){Ae(this,b)},this)}};
47
- function Ae(a,b){if(a.g==0)if(a.j){var c=a.j;if(c.h){var d=0,e=null,f=null;for(let g=c.h;g&&(g.j||(d++,g.g==a&&(e=g),!(e&&d>1)));g=g.next)e||(f=g);e&&(c.g==0&&d==1?Ae(c,b):(f?(d=f,d.next==c.l&&(c.l=d),d.next=d.next.next):Be(c),Ce(c,e,3,b)))}a.j=null}else re(a,3,b)}function ze(a,b){a.h||a.g!=2&&a.g!=3||De(a);a.l?a.l.next=b:a.h=b;a.l=b}
48
- function xe(a,b,c,d){const e=ue(null,null,null);e.g=new R(function(f,g){e.l=b?function(h){try{const k=b.call(d,h);f(k)}catch(k){g(k)}}:f;e.h=c?function(h){try{const k=c.call(d,h);k===void 0&&h instanceof S?g(h):f(k)}catch(k){g(k)}}:g});e.g.j=a;ze(a,e);return e.g}R.prototype.ma=function(a){this.g=0;re(this,2,a)};R.prototype.na=function(a){this.g=0;re(this,3,a)};
49
- function re(a,b,c){if(a.g==0){a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself"));a.g=1;a:{var d=c,e=a.ma,f=a.na;if(d instanceof R){ze(d,ue(e||qe,f||null,a));var g=!0}else{if(d)try{var h=!!d.$goog_Thenable}catch(k){h=!1}else h=!1;if(h)d.then(e,f,a),g=!0;else{h=typeof d;if(h=="object"&&d!=null||h=="function")try{const k=d.then;if(typeof k==="function"){Ee(d,k,e,f,a);g=!0;break a}}catch(k){f.call(a,k);g=!0;break a}g=!1}}}g||(a.T=c,a.g=b,a.j=null,De(a),b!=3||c instanceof S||Fe(a,c))}}
50
- function Ee(a,b,c,d,e){function f(k){h||(h=!0,d.call(e,k))}function g(k){h||(h=!0,c.call(e,k))}let h=!1;try{b.call(a,g,f)}catch(k){f(k)}}function De(a){a.B||(a.B=!0,oe(a.la,a))}function Be(a){let b=null;a.h&&(b=a.h,a.h=b.next,b.next=null);a.h||(a.l=null);return b}R.prototype.la=function(){let a;for(;a=Be(this);)Ce(this,a,this.g,this.T);this.B=!1};
51
- function Ce(a,b,c,d){if(c==3&&b.h&&!b.j)for(;a&&a.v;a=a.j)a.v=!1;if(b.g)b.g.j=null,Ge(b,c,d);else try{b.j?b.l.call(b.context):Ge(b,c,d)}catch(e){He.call(null,e)}ee(te,b)}function Ge(a,b,c){b==2?a.l.call(a.context,c):a.h&&a.h.call(a.context,c)}function Fe(a,b){a.v=!0;oe(function(){a.v&&He.call(null,b)})}var He=m;function S(a){ia.call(this,a)}ha(S,ia);S.prototype.name="cancel";function we(a,b,c){this.promise=a;this.resolve=b;this.reject=c};let Ie=1,Je=new WeakMap;function Ke(a,b,c){var d=Le;a.h.has(b);d(b,c)}var Ne=class extends O{constructor(){super();this.h=new Set}signal(){const a=new Me;this.h.add(a);ud(this,ea(td,a));return a}};function Le(a,b){return new Promise(c=>{Oe(()=>{a.L&&(a.ea=b,a.P=!0);for(const {I:d,slot:e}of a.o.values())try{e(b,{signal:a,I:d})}catch(f){m(f)}for(const d of a.A)d.resolve(b);a.A.clear();c()})})}function xd(a,b,c){const d=Ie++;Oe(()=>{Pe(a,d,b,c)});return d}
52
- function Pe(a,b,c,d){if(!a.s)if(d){if(!d.s){const e=()=>{Oe(()=>{a.o.delete(b);const f=Je.get(d);f&&ta(f,e)})};a.o.set(b,{I:b,slot:c,F:e});Qe(d,e)}}else a.o.set(b,{I:b,slot:c,F:()=>a.o.delete(b)})}
53
- var Me=class extends O{constructor(){super();this.L=!1;this.o=new Map;this.A=new Set;this.P=!1}detach(a){Oe(()=>{const b=this.o.get(a);b&&b.F()})}value(a){return this.promise(!0,a)}next(a){return this.promise(!1,a)}promise(a,b){const c=ve();Oe(()=>{if(this.s)c.reject(new S("Signal initially disposed"));else if(b&&b.s)c.reject(new S("Owner initially disposed"));else if(a&&this.L&&this.P)c.resolve(this.ea);else if(this.A.add(c),ye(c.promise,()=>{this.A.delete(c)}),b){const d=()=>{c.reject(new S("Owner asynchronously disposed"))};
54
- ye(c.promise,()=>{const e=Je.get(b);e&&ta(e,d)});Qe(b,d)}});return c.promise}G(){super.G();Oe(()=>{for(const {F:a}of this.o.values())a();this.o.clear();for(const a of this.A)a.reject(new S("Signal asynchronously disposed"));this.A.clear()})}};const Re=[];let Se=!1;function Oe(a){Re.push(a);Te()}async function Te(){if(!Se)try{Se=!0;let a=Ue(0);for(;a<Re.length;)await Promise.resolve(),a=Ue(a)}catch(a){m(a)}finally{Re.length=0,Se=!1}}
55
- function Ue(a){const b=a+100;for(;a<b&&a<Re.length;)try{Re[a++]()}catch(c){m(c)}return a}function Qe(a,b){if(a.s)b();else{var c=Je.get(a);if(c)c.push(b);else{const d=[b];Je.set(a,d);ud(a,()=>{for(const e of[...d])e();Je.delete(a)})}}};function T(a){var b=new Vd;a=E(b,1,Xd,a);return{content:cc(a)}}const Ve=new Ne;function We(a,b){const c=Ve.signal();return{channel:be(a,d=>{const e=b(d.data);Ke(Ve,c,{content:e,ka:d})}),signal:c}};let fc;var U=class extends J{};var V=class extends J{};var Ye=class extends J{h(){return H(this,U,2,Xe)}g(){return Qb(this,U,2,Xe)}j(){return H(this,V,3,Xe)}l(){return Qb(this,V,3,Xe)}},Xe=[2,3];var Ze=hc(class extends J{});var $e=hc(class extends J{}),af=[1,2];var bf=({destination:a,origin:b,ra:c,Y:d="ZNWN1d",onMessage:e})=>{if(b==="*")throw Error("Sending to wildcard origin not allowed.");const f=$d(e);a.postMessage(c?{n:d,t:c}:d,b,[f.port2]);return be(f.port1,e)};function cf(a,b,c){const d=new Ne,e=d.signal();a=bf({destination:window.parent,origin:b,Y:a,onMessage:f=>{const g=Wd(f.data.content);C(g,Xd)===2&&Ke(d,e,{content:H(g,nd,2,Xd),ka:f,messagePort:f.data.messagePort})}});return new df(e,a,c)}async function yd(a,b){var c=W,d=new Q;b=E(d,9,P,b);a=await c(a,T(b));let e;return(e=H(Wd(a.data.content),nd,2,Xd))==null?void 0:H(e,md,9,od)}async function zd(a,b){var c=W,d=new Q;b=E(d,8,P,b);await c(a,T(b))}
56
- async function Ad(a){var b=W;var c=new Q;var d=new Gd;c=E(c,11,P,d);await b(a,T(c))}async function Bd(a,b){var c=W,d=new Q;b=E(d,14,P,b);await c(a,T(b))}async function Cd(a,b){var c=W,d=new Q;b=E(d,15,P,b);await c(a,T(b))}async function ef(a){await a.h()}
57
- async function W(a,b){(a=await a.channel.C(b))||N(L,"Falsy response received from the message channel."+` ${JSON.stringify(a)}`);(b=a.data)||N(L,"Data field in the response from the message channel is falsy."+` ${JSON.stringify(b)}`);(b=b.content)||N(L,"Content field in the response from the message channel is falsy."+` ${JSON.stringify(b)}`);let c=void 0;try{c=Wd(b)}catch(d){N(L,"The ControlMessage can't be deserialized."+` ${JSON.stringify(b)}. ${JSON.stringify(d)}`)}(b=H(c,nd,2,Xd))||N(L,"MeetToAddonMessage field on ControlMessage is falsy."+
58
- ` ${JSON.stringify(b)}`);b=b==null?void 0:H(b,rc,10,od);if((b==null?void 0:G(b,1))!==void 0)throw new K(Vc(G(b,1)));return a}async function ff(a,b,c){var d=W,e=new Q;b=E(e,1,P,b);d=await d(a,T(b));a=d.data.messagePort;var f;(d=(f=H(Wd(d.data.content),nd,2,Xd))==null?void 0:H(f,pc,1,od))!=null?f=d:(f=new pc,f=D(f,1,y(0),0));return{channel:a?We(a,c):void 0,response:f}}async function gf(a){const b=Id(),{channel:c,response:d}=await ff(a,b,e=>$e(e));if(!c)throw new K(Wc(d));return c}
59
- async function hf(a){var b=W;var c=new Q;var d=new Td;c=E(c,5,P,d);await b(a,T(c))}async function jf(a){var b=W;var c=new Q;var d=new Od;c=E(c,6,P,d);await b(a,T(c))}async function kf(a,b,c){var d=W,e=new Q,f=new Pd;b=D(f,1,y(b),0);c=D(b,2,z(c),"");e=E(e,7,P,c);await d(a,T(e))}async function lf(a,b){var c=W,d=new Q;b=E(d,16,P,b);await c(a,T(b))}
60
- class df extends O{constructor(a,b,c){super();this.U=a;this.channel=b;this.h=nc(async()=>{var d=this.channel,e=d.C;var f=new Q;var g=new Qd;f=E(f,13,P,g);await e.call(d,T(f))});a=ec();F(a,4);zb(A(a,1));zb(A(a,2));zb(A(a,3));c=Ud(new Q,Nd(Ld(a),c));this.channel.send(T(c));xd(this.U,async d=>{switch(C(d.content,od)){case 16:await ef(this)}})}};let mf;var nf=class{constructor(a){var b=mf;this.h=a;this.g=b}delete(){throw Error("Not implemented.");}};var pf=class extends J{h(){return H(this,U,2,of)}g(){return Qb(this,U,2,of)}j(){return H(this,V,3,of)}l(){return Qb(this,V,3,of)}},of=[2,3];var qf=class extends J{};var rf=class extends J{};var sf=class extends J{};var uf=class extends J{h(){return H(this,U,2,tf)}g(){return Qb(this,U,2,tf)}j(){return H(this,V,3,tf)}l(){return Qb(this,V,3,tf)}},tf=[2,3],vf=[5,6];var wf=class extends J{};var xf=class extends J{},yf=[1,2,3];var zf=class extends Error{constructor(){super("Failed to create CoActivity: Connection refused - Meet refused to begin Live Sharing")}};var Af=class{constructor(a){this.config=a}start(){this.g!=null||(this.g=setInterval(()=>{this.config.ha()},this.config.da));return this}shutdown(){clearInterval(this.g)}};function Bf(){const a=new Map,b={set(c,d){a.set(c,d);return b},D:()=>a};return b};function Cf(a){if(a.g()){a=a.h().m;var b=a[q]|0;var c=Ob(a,b,1),d=Ua(c,!0);d!=null&&d!==c&&B(a,b,1,d);a=d;b=a==null?Aa():a;a=Uint8Array;Da(za);c=b.g;if(c!=null&&!ya(c))if(typeof c==="string"){va.test(c)&&(c=c.replace(va,xa));c=atob(c);d=new Uint8Array(c.length);for(let e=0;e<c.length;e++)d[e]=c.charCodeAt(e);c=d}else c=null;b=c==null?c:b.g=c;return{bytes:new a(b||0)}}}function Df(a,b){b=Ef(b);E(a,2,tf,b);return a}function Ff(a,b){b=Ef(b);E(a,2,of,b);return a}
61
- function Ef(a){var b=new U;return D(b,1,Ua(a.bytes,!1),Aa())}function Gf(a){if(a.l()){a=a.j();var b,c,d=F(a,1),e=(c=(b=Vb(a,ic,2))==null?void 0:ac(b))!=null?c:0;c=a.m;let f=c[q]|0;const g=Ob(c,f,4);b=g==null||typeof g==="number"?g:g==="NaN"||g==="Infinity"||g==="-Infinity"?Number(g):void 0;b!=null&&b!==g&&B(c,f,4,b);return{mediaId:d,mediaPlayoutPosition:e,mediaPlayoutRate:b!=null?b:0,playbackState:Hf.get(G(a,3))}}}function If(a,b){b=Jf(b);E(a,3,tf,b);return a}
62
- function Kf(a,b){b=Jf(b);E(a,3,of,b);return a}const Hf=Bf().set(0,"INVALID").set(1,"BUFFERING").set(2,"PLAY").set(3,"PAUSE").set(4,"ENDED").D(),Lf=Bf().set("INVALID",0).set("BUFFERING",1).set("PLAY",2).set("PAUSE",3).set("ENDED",4).D();
63
- function Jf(a){var b=new V;b=D(b,1,z(a.mediaId),"");var c=a.mediaPlayoutRate;if(c!=null&&typeof c!=="number")throw Error(`Value of float/double field must be a number, found ${typeof c}: ${c}`);b=D(b,4,c,0);c=new ic;c=D(c,1,Ab(a.mediaPlayoutPosition),"0");b=Wb(b,2,c);a=Lf.get(a.playbackState);return D(b,3,y(a),0)}function Mf({activityTitle:a}){var b=new sf;return Pb(b,4,z(a))}function Nf(a,b){var c=new rf;b=D(c,1,y(b.u),0);E(a,6,vf,b);return a}function Of(a){var b=new qf;E(a,5,vf,b);return a};const Pf=Bf().set("co-doing",1).set("co-watching",2).D();async function Qf(a,b,c){var d=b.C,e=new xf;var f=new wf;f=D(f,1,z(a.activityTitle),"");var g=Pf.get(a.K);f=D(f,2,y(g),0);e=E(e,3,yf,f);d=await d.call(b,e,Ze);let h;if((h=$b(d))!=null&&h)return new Rf(a,b,c,Vb(d,Ye,2));throw new zf;}function Sf(a,b){const c=a.config.N(b);c&&!a.config.M(a.g,c)&&(a.g=c,a.j=ac(b),a.v(a.g))}function X(a,b){const {state:c,fa:d,context:e}=b(a.g);a.g=c;a.notify(a.g,e,d)}
64
- class Rf{constructor(a,b,c,d){this.l=a;this.h=b;this.config=c;this.v=jc(e=>void this.l.O(e));Tf(this.h,e=>{const f=C(e,af);switch(f){case 1:Sf(this,H(e,Ye,1,af));break;case 2:case 0:console.warn(`IllegalMessage: ${f} - ${"Unhandled message"} - ${"Please raise a bug with the MeetJS team"}`)}});this.B=(new Af({da:1E3,ha:()=>{var e,f,g=(f=(e=this.l).ja)==null?void 0:f.call(e);if(this.g!==null){this.g={...this.g,...g};e=new xf;f=this.config;g=f.W;var h=new pf;h=D(h,1,Ab(this.j),"0");f=g.call(f,h,this.g);
65
- e=E(e,1,yf,f);this.h.send(e)}}})).start();this.g=null;this.j=0;d&&Sf(this,d)}disconnect(){this.h.shutdown();this.B.shutdown()}notify(a,b,c){var d=c?Mf(c):void 0;c=this.config;var e=c.X;var f=new uf;f=D(f,1,Ab(this.j),"0");d=Wb(f,4,d);a=e.call(c,d,a);a=this.config.V(a,b);b=this.h;c=b.send;e=new xf;a=E(e,2,yf,a);c.call(b,a)}};var Uf=class{constructor(a){this.g=a}broadcastStateUpdate(a){X(this.g,()=>({state:a,context:{}}))}disconnect(){this.g.disconnect()}};function Vf(a,b){return a==null||b==null?!1:a.bytes.length===b.bytes.length&&a.bytes.every((c,d)=>c===b.bytes[d])};var Wf=class{constructor(a){this.g=a}notifySwitchedToMedia(a,b,c){X(this.g,()=>({state:{mediaId:b,mediaPlayoutRate:1,mediaPlayoutPosition:c,playbackState:"PLAY"},fa:{activityTitle:a},context:{u:1}}))}notifyPauseState(a,b){X(this.g,c=>{if(c==null)throw Error("Invalid before coWatchingState");return{state:{...c,playbackState:a?"PAUSE":"PLAY",mediaPlayoutPosition:b},context:{u:3}}})}notifySeekToTimestamp(a){X(this.g,b=>{if(b==null)throw Error("Invalid before coWatchingState");return{state:{...b,mediaPlayoutPosition:a},
7
+ var l=this||self;function ea(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}}function fa(a){return a}function ha(a,b){function c(){}c.prototype=b.prototype;a.qa=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.oa=function(d,e,f){for(var g=Array(arguments.length-2),h=2;h<arguments.length;h++)g[h-2]=arguments[h];return b.prototype[e].apply(d,g)}};function ia(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,ia);else{const c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));b!==void 0&&(this.cause=b)}ha(ia,Error);ia.prototype.name="CustomError";function m(a){l.setTimeout(()=>{throw a;},0)};var ja,ka;a:{for(var la=["CLOSURE_FLAGS"],ma=l,na=0;na<la.length;na++)if(ma=ma[la[na]],ma==null){ka=null;break a}ka=ma}var oa=ka&&ka[610401301];ja=oa!=null?oa:!1;var pa;const qa=l.navigator;pa=qa?qa.userAgentData||null:null;function ra(a){return ja?pa?pa.brands.some(({brand:b})=>b&&b.indexOf(a)!=-1):!1:!1}function n(a){var b;a:{if(b=l.navigator)if(b=b.userAgent)break a;b=""}return b.indexOf(a)!=-1};function p(){return ja?!!pa&&pa.brands.length>0:!1}function sa(){return p()?ra("Chromium"):(n("Chrome")||n("CriOS"))&&!(p()?0:n("Edge"))||n("Silk")};function ta(a,b){b=Array.prototype.indexOf.call(a,b,void 0);b>=0&&Array.prototype.splice.call(a,b,1)};!n("Android")||sa();sa();n("Safari")&&(sa()||(p()?0:n("Coast"))||(p()?0:n("Opera"))||(p()?0:n("Edge"))||(p()?ra("Microsoft Edge"):n("Edg/"))||p()&&ra("Opera"));function ua(a){let b="",c=0;const d=a.length-10240;for(;c<d;)b+=String.fromCharCode.apply(null,a.subarray(c,c+=10240));b+=String.fromCharCode.apply(null,c?a.subarray(c):a);return btoa(b)}const va=/[-_.]/g,wa={"-":"+",_:"/",".":"="};function xa(a){return wa[a]||""}function ya(a){return a!=null&&a instanceof Uint8Array}var za={};function Aa(){return Ba||(Ba=new Ca(null,za))}var Ca=class{constructor(a,b){Da(b);this.g=a;if(a!=null&&a.length===0)throw Error("ByteString should be constructed with non-empty values");}};let Ba;function Da(a){if(a!==za)throw Error("illegal external caller");};function Ea(a,b){a.__closure__error__context__984382||(a.__closure__error__context__984382={});a.__closure__error__context__984382.severity=b};let Fa=void 0;function Ga(a){a=Error(a);Ea(a,"warning");return a};var Ha=new Set;function Ja(a,b=!1,c=!1){a=c&&Symbol.for&&a?Symbol.for(a):a!=null?Symbol(a):Symbol();b&&Ha.add(a);return a}var q=Ja("jas",!0,!0),Ka=Ja(),La=Ja(void 0,!0),Ma=Ja(void 0,!0);function Na(a,b){b[q]=(a|0)&-30975}function Oa(a,b){b[q]=(a|34)&-30941};function Pa(){return typeof BigInt==="function"};function Qa(a){return Array.prototype.slice.call(a)};var Ra={},Sa={};function Ta(a){return!(!a||typeof a!=="object"||a.g!==Sa)}function Ua(a){return a!==null&&typeof a==="object"&&!Array.isArray(a)&&a.constructor===Object}function Va(a,b){if(a!=null)if(typeof a==="string")a=a?new Ca(a,za):Aa();else if(a.constructor!==Ca)if(ya(a))a=a.length?new Ca(new Uint8Array(a),za):Aa();else{if(!b)throw Error();a=void 0}return a}function Wa(a){return!Array.isArray(a)||a.length?!1:(a[q]|0)&1?!0:!1}var Xa;const Ya=[];Ya[q]=55;Xa=Object.freeze(Ya);
8
+ function Za(a){if(a&2)throw Error();}function $a(a,b){const c=fa(Ma);(b=c?b[c]:void 0)&&(a[Ma]=Qa(b))}var ab=Object.freeze({});function bb(a){a.pa=!0;return a};var cb=bb(a=>typeof a==="number"),db=bb(a=>typeof a==="string"),eb=bb(a=>typeof a==="boolean");var fb=typeof l.BigInt==="function"&&typeof l.BigInt(0)==="bigint";var lb=bb(a=>fb?a>=gb&&a<=hb:a[0]==="-"?ib(a,jb):ib(a,kb));const jb=Number.MIN_SAFE_INTEGER.toString(),gb=fb?BigInt(Number.MIN_SAFE_INTEGER):void 0,kb=Number.MAX_SAFE_INTEGER.toString(),hb=fb?BigInt(Number.MAX_SAFE_INTEGER):void 0;function ib(a,b){if(a.length>b.length)return!1;if(a.length<b.length||a===b)return!0;for(let c=0;c<a.length;c++){const d=a[c],e=b[c];if(d>e)return!1;if(d<e)return!0}};let u=0,v=0;function pb(a){const b=a>>>0;u=b;v=(a-b)/4294967296>>>0}function qb(a){if(a<0){pb(-a);const [b,c]=rb(u,v);u=b>>>0;v=c>>>0}else pb(a)}function sb(a,b){b>>>=0;a>>>=0;if(b<=2097151)var c=""+(4294967296*b+a);else Pa()?c=""+(BigInt(b)<<BigInt(32)|BigInt(a)):(c=(a>>>24|b<<8)&16777215,b=b>>16&65535,a=(a&16777215)+c*6777216+b*6710656,c+=b*8147497,b*=2,a>=1E7&&(c+=a/1E7>>>0,a%=1E7),c>=1E7&&(b+=c/1E7>>>0,c%=1E7),c=b+tb(c)+tb(a));return c}
9
+ function tb(a){a=String(a);return"0000000".slice(a.length)+a}function rb(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]};const ub=typeof BigInt==="function"?BigInt.asIntN:void 0,vb=Number.isSafeInteger,wb=Number.isFinite,xb=Math.trunc,yb=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;function zb(a){switch(typeof a){case "bigint":return!0;case "number":return wb(a);case "string":return yb.test(a);default:return!1}}function w(a){if(a!=null){if(!wb(a))throw Ga("enum");a|=0}return a}function Ab(a){if(a!=null){if(typeof a==="string"&&a)a=+a;else if(typeof a!=="number")return;wb(a)}}
10
+ function Bb(a){if(a!=null)a:{if(!zb(a))throw Ga("int64");switch(typeof a){case "string":a=Cb(a);break a;case "bigint":var b=a=ub(64,a);if(db(b)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(b))throw Error(String(b));}else if(cb(b)&&!Number.isSafeInteger(b))throw Error(String(b));fb?a=BigInt(a):a=eb(a)?a?"1":"0":db(a)?a.trim()||"0":String(a);break a;default:a=Db(a)}}return a}
11
+ function Db(a){a=xb(a);if(!vb(a)){qb(a);var b=u,c=v;if(a=c&2147483648)b=~b+1>>>0,c=~c>>>0,b==0&&(c=c+1>>>0);const d=c*4294967296+(b>>>0);b=Number.isSafeInteger(d)?d:sb(b,c);a=typeof b==="number"?a?-b:b:a?"-"+b:b}return a}
12
+ function Cb(a){var b=xb(Number(a));if(vb(b))return String(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));b=a.length;if(!(a[0]==="-"?b<20||b===20&&Number(a.substring(0,7))>-922337:b<19||b===19&&Number(a.substring(0,6))<922337)){if(a.length<16)qb(Number(a));else if(Pa())a=BigInt(a),u=Number(a&BigInt(4294967295))>>>0,v=Number(a>>BigInt(32)&BigInt(4294967295));else{b=+(a[0]==="-");v=u=0;const c=a.length;for(let d=b,e=(c-b)%6+b;e<=c;d=e,e+=6){const f=Number(a.slice(d,e));v*=1E6;u=u*1E6+f;u>=4294967296&&
13
+ (v+=Math.trunc(u/4294967296),v>>>=0,u>>>=0)}if(b){const [d,e]=rb(u,v);u=d;v=e}}a=u;b=v;if(b&2147483648)if(Pa())a=""+(BigInt(b|0)<<BigInt(32)|BigInt(a>>>0));else{const [c,d]=rb(a,b);a="-"+sb(c,d)}else a=sb(a,b)}return a}function x(a){if(a!=null&&typeof a!=="string")throw Error();return a}function Eb(a,b,c){if(a!=null&&typeof a==="object"&&a.H===Ra)return a;if(Array.isArray(a)){var d=a[q]|0,e=d;e===0&&(e|=c&32);e|=c&2;e!==d&&(a[q]=e);return new b(a)}};function Fb(a,b){return Gb(b)}function Gb(a){switch(typeof a){case "number":return isFinite(a)?a:String(a);case "bigint":return lb(a)?Number(a):String(a);case "boolean":return a?1:0;case "object":if(a)if(Array.isArray(a)){if(Wa(a))return}else{if(ya(a))return ua(a);if(a instanceof Ca){const b=a.g;return b==null?"":typeof b==="string"?b:a.g=ua(b)}}}return a};function Hb(a,b,c){const d=Qa(a);var e=d.length;const f=b&256?d[e-1]:void 0;e+=f?-1:0;for(b=b&512?1:0;b<e;b++)d[b]=c(d[b]);if(f){b=d[b]={};for(const g in f)b[g]=c(f[g])}$a(d,a);return d}function Ib(a,b,c,d,e){if(a!=null){if(Array.isArray(a))a=Wa(a)?void 0:e&&(a[q]|0)&2?a:Jb(a,b,c,d!==void 0,e);else if(Ua(a)){const f={};for(let g in a)f[g]=Ib(a[g],b,c,d,e);a=f}else a=b(a,d);return a}}
14
+ function Jb(a,b,c,d,e){const f=d||c?a[q]|0:0;d=d?!!(f&32):void 0;const g=Qa(a);for(let h=0;h<g.length;h++)g[h]=Ib(g[h],b,c,d,e);c&&($a(g,a),c(f,g));return g}function Kb(a){return a.H===Ra?a.toJSON():Gb(a)}function Lb(a){return Jb(a,Kb,void 0,void 0,!1)};function Mb(a,b,c=Oa){if(a!=null){if(a instanceof Uint8Array)return b?a:new Uint8Array(a);if(Array.isArray(a)){var d=a[q]|0;if(d&2)return a;b&&(b=d===0||!!(d&32)&&!(d&64||!(d&16)));return b?(a[q]=(d|34)&-12293,a):Jb(a,Mb,d&4?Oa:c,!0,!0)}a.H===Ra&&(c=a.m,d=c[q]|0,a=d&2?a:new a.constructor(Nb(c,d,!0)));return a}}function Nb(a,b,c){const d=c||b&2?Oa:Na,e=!!(b&32);a=Hb(a,b,f=>Mb(f,e,d));a[q]=a[q]|32|(c?2:0);return a}function Ob(a){const b=a.m,c=b[q]|0;return c&2?new a.constructor(Nb(b,c,!1)):a};function y(a,b){a=a.m;return Pb(a,a[q]|0,b)}function Pb(a,b,c,d){if(c===-1)return null;const e=c+(b&512?0:-1),f=a.length-1;if(e>=f&&b&256)return a[f][c];if(d&&b&256&&(b=a[f][c],b!=null)){if(a[e]!=null&&Ka!=null){var g;a=(g=Fa)!=null?g:Fa={};g=a[Ka]||0;g>=4||(a[Ka]=g+1,g=Error(),Ea(g,"incident"),m(g))}return b}if(e<=f)return a[e]}function Qb(a,b,c){const d=a.m;let e=d[q]|0;Za(e);z(d,e,b,c);return a}
15
+ function z(a,b,c,d){const e=b&512?0:-1,f=c+e;var g=a.length-1;if(f>=g&&b&256)return a[g][c]=d,b;if(f<=g)return a[f]=d,b&256&&(a=a[g],c in a&&delete a[c]),b;d!==void 0&&(g=b>>15&1023||536870912,c>=g?d!=null&&(a[g+e]={[c]:d},b|=256,a[q]=b):a[f]=d);return b}function Rb(a,b,c,d){c=B(a,d)===c?c:-1;return Sb(a,b,c)!==void 0}function Tb(a){return!!(2&a)&&!!(4&a)||!!(2048&a)}function C(a,b,c,d){const e=a.m;let f=e[q]|0;Za(f);z(e,f,b,(d==="0"?Number(c)===0:c===d)?void 0:c);return a}
16
+ function B(a,b){a=a.m;return Ub(Vb(a),a,a[q]|0,b)}function Vb(a){let b;return(b=a[La])!=null?b:a[La]=new Map}function Ub(a,b,c,d){let e=a.get(d);if(e!=null)return e;e=0;for(let f=0;f<d.length;f++){const g=d[f];Pb(b,c,g)!=null&&(e!==0&&(c=z(b,c,e)),e=g)}a.set(d,e);return e}function Sb(a,b,c,d){a=a.m;let e=a[q]|0;d=Pb(a,e,c,d);b=Eb(d,b,e);b!==d&&b!=null&&z(a,e,c,b);return b}
17
+ function Wb(a,b,c){b=Sb(a,b,c,!1);if(b==null)return b;a=a.m;let d=a[q]|0;if(!(d&2)){const e=Ob(b);e!==b&&(b=e,z(a,d,c,b))}return b}function Xb(a,b,c){c==null&&(c=void 0);return Qb(a,b,c)}function D(a,b,c,d){d==null&&(d=void 0);a:{const g=a.m;var e=g[q]|0;Za(e);if(d==null){var f=Vb(g);if(Ub(f,g,e,c)===b)f.set(c,0);else break a}else{f=g;const h=Vb(f),k=Ub(h,f,e,c);k!==b&&(k&&(e=z(f,e,k)),h.set(c,b))}z(g,e,b,d)}return a}
18
+ function Yb(a,b){const c=a.m;let d=c[q]|0;Za(d);if(b==null)return z(c,d,1),a;let e=b[q]|0,f=e;const g=Tb(e),h=g||Object.isFrozen(b);let k=!0,r=!0;for(let A=0;A<b.length;A++){var t=b[A];g||(t=!!((t.m[q]|0)&2),k&&(k=!t),r&&(r=t))}g||(e=k?13:5,e=r?e|16:e&-17);h&&e===f||(b=Qa(b),f=0,e=Zb(e,d),e=$b(e,d,!0));e!==f&&(b[q]=e);z(c,d,1,b);return a}function Zb(a,b){a=(2&b?a|2:a&-3)|32;return a&=-2049}function $b(a,b,c){32&b&&c||(a&=-33);return a}
19
+ function ac(a){a=y(a,1);a=a==null||typeof a==="boolean"?a:typeof a==="number"?!!a:void 0;return a!=null?a:!1}function bc(a){a=y(a,1);a!=null&&(typeof a==="bigint"?lb(a)?a=Number(a):(a=ub(64,a),a=lb(a)?Number(a):String(a)):a=zb(a)?typeof a==="number"?Db(a):Cb(a):void 0);return a!=null?a:0}function E(a,b){a=y(a,b);a=a==null||typeof a==="string"?a:void 0;return a!=null?a:""}function F(a,b){a=y(a,b);a=a==null?a:wb(a)?a|0:void 0;return a!=null?a:0}
20
+ function G(a,b,c,d){c=B(a,d)===c?c:-1;return Wb(a,b,c)};function cc(a){return a}let H;function dc(a){try{return H=cc,JSON.stringify(ec(a),Fb)}finally{H=void 0}}function fc(){var a=gc||(gc=hc("[1,2,0]"));a=Ob(a);a=Qb(a,4,x("dev-719451815"));const b=a.m,c=b[q]|0;return c&2?a:new a.constructor(Nb(b,c,!0))}
21
+ var I=class{constructor(a){a:{if(a==null){var b=96;a=[]}else{if(!Array.isArray(a))throw Error("narr");b=a[q]|0;if(b&2048)throw Error("farr");if(b&64)break a;var c=a;b|=64;var d=c.length;if(d&&(--d,Ua(c[d]))){b|=256;c=d-(b&512?0:-1);if(c>=1024)throw Error("pvtlmt");b=b&-33521665|(c&1023)<<15}}a[q]=b}this.m=a}toJSON(){const a=!H;try{return a&&(H=Lb),ec(this)}finally{a&&(H=void 0)}}};I.prototype.H=Ra;I.prototype.toString=function(){try{return H=cc,ec(this).toString()}finally{H=void 0}};
22
+ function ec(a){var b=a.m;a=H(b);{b=a!==b;let r=a.length;if(r){var c=a[r-1],d=Ua(c);d?r--:c=void 0;var e=a;if(d){b:{var f=c;var g;var h=!1;if(f)for(let t in f)if(isNaN(+t)){let A;((A=g)!=null?A:g={})[t]=f[t]}else if(d=f[t],Array.isArray(d)&&(Wa(d)||Ta(d)&&d.size===0)&&(d=null),d==null&&(h=!0),d!=null){let A;((A=g)!=null?A:g={})[t]=d}h||(g=f);if(g)for(let t in g){h=g;break b}h=null}f=h==null?c!=null:h!==c}for(;r>0;r--){g=e[r-1];if(!(g==null||Wa(g)||Ta(g)&&g.size===0))break;var k=!0}if(e!==a||f||k){if(!b)e=
23
+ Array.prototype.slice.call(e,0,r);else if(k||f||h)e.length=r;h&&e.push(h)}k=e}else k=a}return k};function ic(a){return b=>{if(b==null||b=="")b=new a;else{b=JSON.parse(b);if(!Array.isArray(b))throw Error("dnarr");b[q]|=32;b=new a(b)}return b}};var hc=function(a){return b=>{b=JSON.parse(b);if(!Array.isArray(b)){var c=typeof b;throw Error("Expected jspb data to be an array, got "+(c!="object"?c:b?Array.isArray(b)?"array":c:"null")+": "+b);}b[q]|=34;return new a(b)}}(class extends I{});var jc=class extends I{};function kc(a){var b=new lc(500);let c=0,d;return(...e)=>{mc(b)?a(...e):(d=()=>void a(...e),c||(c=setTimeout(()=>{c=0;let f;(f=d)==null||f()},nc(b))))}}function oc(a){var b=new lc(100),c=Promise.resolve();return(...d)=>mc(b)?a(...d):c};function mc(a){return pc(a,a.index)>=a.g?(a.h[a.index]=Date.now(),a.index=(a.index+1)%1,!0):!1}function nc(a){const b=a.g;a=pc(a,a.index);return a>=b?0:b-a}function pc(a,b){let c;return Date.now()-((c=a.h[b])!=null?c:-1*a.g)}var lc=class{constructor(a){this.g=a;this.h=[];this.index=0}};var qc=class extends I{},rc=[2,3];var sc=class extends I{};var J=class extends Error{constructor({errorType:a,message:b,i:c}){super(`Meet Add-on SDK error: ${`${b}${c?` - ${c}`:""}`}`);this.errorType=a}},K={errorType:"InternalError",message:"An unexpected error has occurred.",i:"No further information is available."},tc={errorType:"MissingUrlParameter",message:"Missing required Meet SDK URL parameter",i:"This parameter is automatically appended by Meet to the iframe URL. Ensure that your infrastructure does not strip URL parameters (e.g. as part of a redirect)."},
24
+ uc={errorType:"NeedsMainStageContext",message:"This method can only be invoked if the addon is running in the main stage.",i:"Use getFrameType to check whether the addon is running in the main stage before invoking this method."},vc={errorType:"NeedsSidePanelContext",message:"This method can only be invoked if the addon is running in the side panel.",i:"Use getFrameType to check whether the addon is running in the side panel before invoking this method."},wc={errorType:"NotSupportedInStandalone",
25
+ message:"This method is not supported in standalone mode.",i:"Do not call this method in standalone mode."},xc={errorType:"MustBeIframed",message:"The SDK must be run in an iframe as part of a Google Meet add-on.",i:"See https://developers.google.com/meet/add-ons/guides/deploy-add-on to deploy to Meet."},yc={errorType:"InternalError",message:"The frame type URL parameter is set to an unexpected value.",i:"This parameter is automatically appended by Meet to the iframe URL. Ensure that your infrastructure does not modify URL parameters (e.g. as part of a redirect)."},
26
+ zc={errorType:"InvalidCloudProjectNumber",message:"Cloud Project Number provided by meet does not match the one passed in by the SDK. Ensure that the correct Cloud Project Number is passed to the SDK as a string.",i:"This parameter is automatically appended by Meet to the iframe URL. Ensure that your infrastructure does not modify URL parameters (e.g. as part of a redirect) and ensure that the correct Cloud Project Number was passed into the SDK as a string."},Ac={errorType:"DestinationNotReady",
27
+ message:"The recipient frame is not connected via the addon SDK and cannot receive the notification.",i:"Make sure the destination frame has connected before sending messages to it."},Bc={errorType:"InvalidActivityStartingState",message:"Origin of the ActivityStartingState iframeURLs does not match the origin of the URLs provided in the Add-on manifest.",i:"Ensure that the ActivityStartingState iframeURL origins match the origins of the URLs provided in the Add-on manifest."},Cc={errorType:"ActivityStartingStateMissingAttributes",
28
+ message:"The supplied ActivityStartingState object does not contain any recognized attributes.",i:"Ensure that the ActivityStartingState object contains at least one of the following attributes: mainStageUrl, sidePanelUrl, additionalData."},Ec={errorType:"ActivityStartingStateUnrecognizedAttributes",message:"The supplied ActivityStartingState object contains attributes that are not recognized.",i:"Ensure that the ActivityStartingState object has only the following attributes: mainStageUrl, sidePanelUrl, additionalData."},
29
+ Fc={errorType:"AddonStartingStateMissingAttributes",message:"The supplied AddonStartingState object does not contain any recognized attributes.",i:"Ensure that the AddonStartingState object contains at least one of the following attributes: sidePanelUrl, additionalData."},Gc={errorType:"AddonStartingStateUnrecognizedAttributes",message:"The supplied AddonStartingState object contains attributes that are not recognized.",i:"Ensure that the AddonStartingState object has only the following attributes: sidePanelUrl, additionalData."},
30
+ Hc=a=>({errorType:"ArgumentNullError",message:`The argument supplied for '${a}' was 'null' but a value was expected.`,i:"Ensure you are passing a value of the expected type for the argument."}),L=(a,b,c)=>({errorType:"ArgumentTypeError",message:`The type '${b}' of argument supplied for '${a}' did not match the expected type '${c}'.`,i:"Ensure the type of the argument provided matches the expected type."}),Ic=a=>({errorType:"InternalError",message:`Could not connect to ${a} channel. Unknown error`,
31
+ i:"No further information is available."}),Jc={errorType:"ActivityIsOngoing",message:"Operation cannot be performed while an activity is ongoing.",i:"Ensure that no activity is ongoing."},Kc={errorType:"InternalError",message:"Frame message missing required Meet SDK command.",i:"Send one of the available commands in the frame message."},Lc={errorType:"NoActivityFound",message:"No activity found.",i:"Ensure that the activity is started before performing this operation."},Mc={errorType:"RequiresEapEnrollment",
32
+ message:"This feature is only available to early access partners.",i:"Meet add-on early access enrollment is currently closed."},Nc={errorType:"UserNotInitiator",message:"Operation cannot be performed because the user is not the initiator of the current activity.",i:"Ensure that the user is the initiator of the current activity or that the activity has ended."},Oc={errorType:"SizeLimitExceededActivityStartingState",message:"The size of the activityStartingState URLs and/or its data exceed the limits allowed.",
33
+ i:"Ensure that the activityStartingState URL size is less than 512 characters and the additional data size is less than 4096 characters."},Pc={errorType:"SizeLimitExceededFrameToFrameMessage",message:"The size of the frame to frame message exceeds the limits allowed.",i:"Ensure that the frame to frame message size is less than 1,000,000 characters."},Qc={errorType:"AddonSessionAlreadyCreated",message:"The addon session has already been created.",i:"Only instantiate the AddonSession once."},Rc={errorType:"UserCancelled",
34
+ message:"The user cancelled starting an activity.",i:"The user needs to click continue to start the activity."},Sc={errorType:"NotSupportedInMeetCall",message:"This method is not supported during a Meet call.",i:"Do not call this method during a Meet call."},Tc={errorType:"InvalidAddonStartingState",message:"Origin of the AddonStartingState iframeURLs does not match the origin of the URLs provided in the Add-on manifest.",i:"Ensure that the AddonStartingState iframeURL origins match the origins of the URLs provided in the Add-on manifest."},
35
+ Uc={errorType:"SizeLimitExceededAddonStartingState",message:"The size of the AddonStartingState URLs and/or its data exceed the limits allowed.",i:"Ensure that the AddonStartingState URL size is less than 512 characters and the additional data size is less than 4096 characters."},Vc={errorType:"MeetingPolicyPreventsStartingActivity",message:"A meeting policy (such as using host control settings) prevents the user from starting the activity.",i:"Have a meeting host or administrator modify the necessary settings to allow the current user to start the activity."};
36
+ function Wc(a){switch(a){case 0:return K;case 1:return Ac;case 2:return Bc;case 3:return Jc;case 4:return Kc;case 5:return Mc;case 6:return wc;case 7:return Nc;case 8:return Oc;case 9:return Pc;case 10:return Rc;case 11:return Sc;case 12:return Tc;case 13:return Uc;case 14:return Lc;case 15:return Vc;default:return K}}
37
+ function Xc(a){let b;var c=(b=F(a,1))!=null?b:0;a=Yc(B(a,rc));switch(c){case 1:return{errorType:"InternalError",message:`Could not connect to ${a} channel. Meet did not respond with a MessagePort.`,i:"No further information is available."};case 2:return{errorType:"InternalError",message:`Could not connect to ${a}. A conflicting ${a} exists.`,i:"No further information is available."};case 3:return{errorType:"InternalError",message:`Could not connect to ${a} channel. The addon does not have permission to open a ${a}.`,
38
+ i:"This method might require EAP enrollment."};case 4:return{errorType:"InternalError",message:`Could not connect to ${a} channel. The addon is not authorized for this ${a}.`,i:"No further information is available."};case 0:return Ic(a);case 5:a:switch(a){case "co":c={errorType:"InternalError",message:`Could not connect to ${a} channel. The coActivity was not found.`,i:`Consider starting the ${a} only after after the startActivity promise returns.`};break a;default:c={errorType:"InternalError",message:`Could not connect to ${a} channel.`,
39
+ i:"No further information is available."}}return c;default:return Ic(a)}}function Yc(a){switch(a){case 2:return"co";case 3:return"gd";case 0:return"unknown";default:return"unknown"}}function M({errorType:a,message:b,i:c},d=""){throw new J({errorType:a,message:d?`${b} ${d}`:b,i:c});}function Zc(a,b){M({...tc,message:`${tc.message}: ${a}. In URL ${b}`})};function $c(a){var b=new ad;return C(b,1,w(a),0)}function bd(a,b){return C(a,2,x(b),"")}function cd(a,b){return C(a,3,x(b),"")}var ad=class extends I{getFrameType(){return F(this,1)}};function dd(a){var b;void 0===ab?b=2:b=4;var c=a.m[q]|0,d=c,e=!(2&c),f=ad;a=a.m;var g=!!(2&d);c=g?1:b;e&&(e=!g);b=Pb(a,d,1);b=Array.isArray(b)?b:Xa;var h=b[q]|0;g=!!(4&h);if(!g){var k=h;k===0&&(k=Zb(k,d));h=b;k|=1;var r=d;const t=!!(2&k);t&&(r|=2);let A=!t,mb=!0,Ia=0,nb=0;for(;Ia<h.length;Ia++){const ob=Eb(h[Ia],f,r);if(ob instanceof f){if(!t){const Dc=!!((ob.m[q]|0)&2);A&&(A=!Dc);mb&&(mb=Dc)}h[nb++]=ob}}nb<Ia&&(h.length=nb);k|=4;k=mb?k|16:k&-17;k=A?k|8:k&-9;h[q]=k;t&&Object.freeze(h);h=k}if(e&&!(8&
40
+ h||!b.length&&(c===1||c===4&&32&h))){Tb(h)&&(b=Qa(b),h=Zb(h,d),d=z(a,d,1,b));e=b;f=h;for(h=0;h<e.length;h++)k=e[h],r=Ob(k),k!==r&&(e[h]=r);f|=8;f=e.length?f&-17:f|16;h=e[q]=f}c===1||c===4&&32&h?Tb(h)||(d=h,a=!!(32&h),h|=!b.length||16&h&&(!g||a)?2:2048,h!==d&&(b[q]=h),Object.freeze(b)):(c===2&&Tb(h)&&(b=Qa(b),h=Zb(h,d),h=$b(h,d,!1),b[q]=h,d=z(a,d,1,b)),Tb(h)||(a=h,h=$b(h,d,!1),h!==a&&(b[q]=h)));return b}function ed(a){var b=new fd;return Yb(b,a)}var fd=class extends I{};var gd=class extends I{};var hd=class extends I{};var id=class extends I{};var jd=class extends I{};var kd=class extends I{};var ld=class extends I{getMeetPlatformInfo(){return Wb(this,jd,1)}};var md=class extends I{getMeetingInfo(){return Wb(this,kd,1)}};var nd=class extends I{},N=[1,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21];var od=class extends I{};var pd=class extends I{};var qd=new Map([[2,"MAIN_STAGE"],[1,"SIDE_PANEL"]]),rd=new Map([[0,"UNKNOWN"],[1,"OPEN_ADDON"],[2,"START_ACTIVITY"],[3,"JOIN_ACTIVITY"]]);function sd(a){a&&typeof a.dispose=="function"&&a.dispose()};function O(){this.s=this.s;this.g=this.g}O.prototype.s=!1;O.prototype.dispose=function(){this.s||(this.s=!0,this.G())};O.prototype[Symbol.dispose]=function(){this.dispose()};function td(a,b){a.s?b():(a.g||(a.g=[]),a.g.push(b))}O.prototype.G=function(){if(this.g)for(;this.g.length;)this.g.shift()()};function ud({J:a,R:b}){if(a===null)throw new J(Hc("activityStartingState"));if(b||a!==void 0){if(typeof a!=="object")throw new J(L("activityStartingState",typeof a,`object${b?"":" | undefined"}`));if(a.mainStageUrl!==void 0&&typeof a.mainStageUrl!=="string")throw new J(L("mainStageUrl",typeof a.mainStageUrl,"string | undefined"));if(a.sidePanelUrl!==void 0&&typeof a.sidePanelUrl!=="string")throw new J(L("sidePanelUrl",typeof a.sidePanelUrl,"string | undefined"));if(a.additionalData!==void 0&&typeof a.additionalData!==
41
+ "string")throw new J(L("additionalData",typeof a.additionalData,"string | undefined"));if(Object.keys(a).length!==+!!a.mainStageUrl+ +!!a.sidePanelUrl+ +!!a.additionalData)throw new J(Ec);if(Object.keys(a).length===0)throw new J(Cc);}}function vd(a){const b=[];b.push(cd(bd($c(2),a.mainStageUrl),a.additionalData));b.push(cd(bd($c(1),a.sidePanelUrl),a.additionalData));return b}
42
+ var Ed=class extends O{constructor(a){super();this.context=a;this.h={};wd(this.context.g.U,b=>{switch(B(b.content,N)){case 7:const d=this.h.frameToFrameMessage;b=G(b.content,id,7,N);if(d&&b){var c=F(b,1);c=qd.get(c);if(c===void 0)throw Error("Unknown frame type.");d({originator:c,payload:E(b,2)})}}})}async getMeetingInfo(){const a=await xd(this.context.g);return{meetingId:E(a.getMeetingInfo(),1),meetingCode:E(a.getMeetingInfo(),2)}}async getFrameOpenReason(){let a;const b=(a=this.context.h.ca)!=null?
43
+ a:0;let c;return(c=rd.get(b))!=null?c:"UNKNOWN"}async getActivityStartingState(){var a=Wb(await yd(this.context.g),fd,1);const b=a==null?void 0:dd(a).find(c=>c.getFrameType()===2);a=a==null?void 0:dd(a).find(c=>c.getFrameType()===1);return{mainStageUrl:(b==null?void 0:E(b,2))||void 0,sidePanelUrl:(a==null?void 0:E(a,2))||void 0,additionalData:(a==null?void 0:E(a,3))||void 0}}async setActivityStartingState(a){ud({J:a,R:!0});var b=vd(a);a=zd;var c=this.context.g;var d=new od;b=ed(b);d=Xb(d,1,b);await a(c,
44
+ d)}on(a,b){this.h[a]=b}async getMeetPlatformInfo(){const a=await Ad(this.context.g);return{isMeetHardware:ac(a.getMeetPlatformInfo())}}async closeAddon(){await Bd(this.context.g)}async startActivity(a){ud({J:a,R:!1});const b=new pd;a&&(a=vd(a),a=ed(a),Xb(b,1,a));await Cd(this.context.g,b)}async endActivity(a){var b=Dd,c=this.context.g,d=new gd;a=C(d,1,w(a==="aab61ee0-51b4-475d-aa4d-849f2498640d"?999:0),0);await b(c,a)}};var Fd=ic(class extends I{getFrameOpenReason(){return F(this,5)}});function Gd(){var a=window.location.href;var b=window.location.href;var c=(new URL(b)).searchParams.get("meet_sdk");if(c)b=Fd(atob(c));else{var d;((d=window.top)!=null?d:window)===window?M(xc):Zc("meet_sdk",b);b=void 0}(c=E(b,1))||Zc("meet_addon_frame_type",a);c=Number(c);if(c!==2&&c!==1)throw new J(yc);(d=E(b,2))||Zc("meet_control_channel_name",a);const e=E(b,4);e||Zc("addon_cloud_project_number",a);var f;a=(f=b.getFrameOpenReason())!=null?f:0;f=E(b,3)||"https://meet.google.com";return{ca:a,frameType:c,
45
+ ba:d,cloudProjectNumber:e,S:f}};var Hd=class extends I{};var Id=class extends I{};var Jd=class extends I{};function Kd(){var a=new Ld,b=new Jd;return D(a,1,Md,b)}var Ld=class extends I{},Md=[1,2];function Nd(a){var b=new Od;return Xb(b,2,a)}function Pd(a,b){return C(a,3,x(b),"")}var Od=class extends I{};var Qd=class extends I{};var Rd=class extends I{};var Sd=class extends I{};var Td=class extends I{};var Ud=class extends I{};var Vd=class extends I{};var Wd=class extends I{setAddonStartingState(a){return Xb(this,1,a)}};var Xd=class extends I{};function Yd(a,b){return D(a,2,P,b)}var Q=class extends I{},P=[1,2,5,6,7,8,9,10,11,13,14,15,16,17,18,19,20];function Zd(a){return G(a,nd,2,$d)}var ae=class extends I{},be=ic(ae),$d=[1,2];class ce{constructor(a,b){this.data=a;this.channel=b}};var de=Promise;function ee(a){const b=new MessageChannel;fe(b.port1,a);return b}function ge(a,b){fe(a,b);return new he(a)}class he{constructor(a){this.g=a}send(a,b,c=[]){b=ee(b);this.g.postMessage(a,[b.port2].concat(c))}C(a,b){return new de(c=>{this.send(a,c,b)})}}function fe(a,b){b&&(a.onmessage=c=>{var d=c.data;c=ge(c.ports[0]);b(new ce(d,c))})};var ie=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?a=>a&&AsyncContext.Snapshot.wrap(a):a=>a;function je(a,b){a.l(b);a.h<100&&(a.h++,b.next=a.g,a.g=b)}class ke{constructor(a,b){this.j=a;this.l=b;this.h=0;this.g=null}get(){let a;this.h>0?(this.h--,a=this.g,this.g=a.next,a.next=null):a=this.j();return a}};function le(){var a=me;let b=null;a.g&&(b=a.g,a.g=a.g.next,a.g||(a.h=null),b.next=null);return b}class ne{constructor(){this.h=this.g=null}add(a,b){const c=oe.get();c.set(a,b);this.h?this.h.next=c:this.g=c;this.h=c}}var oe=new ke(()=>new pe,a=>a.reset());class pe{constructor(){this.next=this.g=this.h=null}set(a,b){this.h=a;this.g=b;this.next=null}reset(){this.next=this.g=this.h=null}};let qe,re=!1,me=new ne,te=(a,b)=>{qe||se();re||(qe(),re=!0);me.add(a,b)},se=()=>{const a=Promise.resolve(void 0);qe=()=>{a.then(ue)}};function ue(){let a;for(;a=le();){try{a.h.call(a.g)}catch(b){m(b)}je(oe,a)}re=!1};function ve(){};function R(a){this.g=0;this.T=void 0;this.l=this.h=this.j=null;this.v=this.B=!1;if(a!=ve)try{const b=this;a.call(void 0,function(c){we(b,2,c)},function(c){we(b,3,c)})}catch(b){we(this,3,b)}}function xe(){this.next=this.context=this.h=this.l=this.g=null;this.j=!1}xe.prototype.reset=function(){this.context=this.h=this.l=this.g=null;this.j=!1};var ye=new ke(function(){return new xe},function(a){a.reset()});function ze(a,b,c){const d=ye.get();d.l=a;d.h=b;d.context=c;return d}
46
+ function Ae(){let a,b;const c=new R(function(d,e){a=d;b=e});return new Be(c,a,b)}R.prototype.then=function(a,b,c){return Ce(this,ie(typeof a==="function"?a:null),ie(typeof b==="function"?b:null),c)};R.prototype.$goog_Thenable=!0;function De(a,b){b=ie(b);b=ze(b,b);b.j=!0;Ee(a,b)}R.prototype.cancel=function(a){if(this.g==0){const b=new S(a);te(function(){Fe(this,b)},this)}};
47
+ function Fe(a,b){if(a.g==0)if(a.j){var c=a.j;if(c.h){var d=0,e=null,f=null;for(let g=c.h;g&&(g.j||(d++,g.g==a&&(e=g),!(e&&d>1)));g=g.next)e||(f=g);e&&(c.g==0&&d==1?Fe(c,b):(f?(d=f,d.next==c.l&&(c.l=d),d.next=d.next.next):Ge(c),He(c,e,3,b)))}a.j=null}else we(a,3,b)}function Ee(a,b){a.h||a.g!=2&&a.g!=3||Ie(a);a.l?a.l.next=b:a.h=b;a.l=b}
48
+ function Ce(a,b,c,d){const e=ze(null,null,null);e.g=new R(function(f,g){e.l=b?function(h){try{const k=b.call(d,h);f(k)}catch(k){g(k)}}:f;e.h=c?function(h){try{const k=c.call(d,h);k===void 0&&h instanceof S?g(h):f(k)}catch(k){g(k)}}:g});e.g.j=a;Ee(a,e);return e.g}R.prototype.ma=function(a){this.g=0;we(this,2,a)};R.prototype.na=function(a){this.g=0;we(this,3,a)};
49
+ function we(a,b,c){if(a.g==0){a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself"));a.g=1;a:{var d=c,e=a.ma,f=a.na;if(d instanceof R){Ee(d,ze(e||ve,f||null,a));var g=!0}else{if(d)try{var h=!!d.$goog_Thenable}catch(k){h=!1}else h=!1;if(h)d.then(e,f,a),g=!0;else{h=typeof d;if(h=="object"&&d!=null||h=="function")try{const k=d.then;if(typeof k==="function"){Je(d,k,e,f,a);g=!0;break a}}catch(k){f.call(a,k);g=!0;break a}g=!1}}}g||(a.T=c,a.g=b,a.j=null,Ie(a),b!=3||c instanceof S||Ke(a,c))}}
50
+ function Je(a,b,c,d,e){function f(k){h||(h=!0,d.call(e,k))}function g(k){h||(h=!0,c.call(e,k))}let h=!1;try{b.call(a,g,f)}catch(k){f(k)}}function Ie(a){a.B||(a.B=!0,te(a.la,a))}function Ge(a){let b=null;a.h&&(b=a.h,a.h=b.next,b.next=null);a.h||(a.l=null);return b}R.prototype.la=function(){let a;for(;a=Ge(this);)He(this,a,this.g,this.T);this.B=!1};
51
+ function He(a,b,c,d){if(c==3&&b.h&&!b.j)for(;a&&a.v;a=a.j)a.v=!1;if(b.g)b.g.j=null,Le(b,c,d);else try{b.j?b.l.call(b.context):Le(b,c,d)}catch(e){Me.call(null,e)}je(ye,b)}function Le(a,b,c){b==2?a.l.call(a.context,c):a.h&&a.h.call(a.context,c)}function Ke(a,b){a.v=!0;te(function(){a.v&&Me.call(null,b)})}var Me=m;function S(a){ia.call(this,a)}ha(S,ia);S.prototype.name="cancel";function Be(a,b,c){this.promise=a;this.resolve=b;this.reject=c};let Ne=1,Oe=new WeakMap;function Pe(a,b,c){var d=Qe;a.h.has(b);d(b,c)}var Se=class extends O{constructor(){super();this.h=new Set}signal(){const a=new Re;this.h.add(a);td(this,ea(sd,a));return a}};function Qe(a,b){return new Promise(c=>{Te(()=>{a.L&&(a.ea=b,a.P=!0);for(const {I:d,slot:e}of a.o.values())try{e(b,{signal:a,I:d})}catch(f){m(f)}for(const d of a.A)d.resolve(b);a.A.clear();c()})})}function wd(a,b,c){const d=Ne++;Te(()=>{Ue(a,d,b,c)});return d}
52
+ function Ue(a,b,c,d){if(!a.s)if(d){if(!d.s){const e=()=>{Te(()=>{a.o.delete(b);const f=Oe.get(d);f&&ta(f,e)})};a.o.set(b,{I:b,slot:c,F:e});Ve(d,e)}}else a.o.set(b,{I:b,slot:c,F:()=>a.o.delete(b)})}
53
+ var Re=class extends O{constructor(){super();this.L=!1;this.o=new Map;this.A=new Set;this.P=!1}detach(a){Te(()=>{const b=this.o.get(a);b&&b.F()})}value(a){return this.promise(!0,a)}next(a){return this.promise(!1,a)}promise(a,b){const c=Ae();Te(()=>{if(this.s)c.reject(new S("Signal initially disposed"));else if(b&&b.s)c.reject(new S("Owner initially disposed"));else if(a&&this.L&&this.P)c.resolve(this.ea);else if(this.A.add(c),De(c.promise,()=>{this.A.delete(c)}),b){const d=()=>{c.reject(new S("Owner asynchronously disposed"))};
54
+ De(c.promise,()=>{const e=Oe.get(b);e&&ta(e,d)});Ve(b,d)}});return c.promise}G(){super.G();Te(()=>{for(const {F:a}of this.o.values())a();this.o.clear();for(const a of this.A)a.reject(new S("Signal asynchronously disposed"));this.A.clear()})}};const We=[];let Xe=!1;function Te(a){We.push(a);Ye()}async function Ye(){if(!Xe)try{Xe=!0;let a=Ze(0);for(;a<We.length;)await Promise.resolve(),a=Ze(a)}catch(a){m(a)}finally{We.length=0,Xe=!1}}
55
+ function Ze(a){const b=a+100;for(;a<b&&a<We.length;)try{We[a++]()}catch(c){m(c)}return a}function Ve(a,b){if(a.s)b();else{var c=Oe.get(a);if(c)c.push(b);else{const d=[b];Oe.set(a,d);td(a,()=>{for(const e of[...d])e();Oe.delete(a)})}}};function T(a){var b=new ae;a=D(b,1,$d,a);return{content:dc(a)}}const $e=new Se;function af(a,b){const c=$e.signal();return{channel:ge(a,d=>{const e=b(d.data);Pe($e,c,{content:e,ka:d})}),signal:c}};let gc;var U=class extends I{};var V=class extends I{};var cf=class extends I{h(){return G(this,U,2,bf)}g(){return Rb(this,U,2,bf)}j(){return G(this,V,3,bf)}l(){return Rb(this,V,3,bf)}},bf=[2,3];var df=ic(class extends I{});var ef=ic(class extends I{}),ff=[1,2];var gf=({destination:a,origin:b,ra:c,Y:d="ZNWN1d",onMessage:e})=>{if(b==="*")throw Error("Sending to wildcard origin not allowed.");const f=ee(e);a.postMessage(c?{n:d,t:c}:d,b,[f.port2]);return ge(f.port1,e)};function hf(a,b,c){const d=new Se,e=d.signal();a=gf({destination:window.parent,origin:b,Y:a,onMessage:f=>{const g=be(f.data.content);B(g,$d)===2&&Pe(d,e,{content:Zd(g),ka:f,messagePort:f.data.messagePort})}});return new jf(e,a,c)}async function xd(a){var b=W;var c=new Q;var d=new Sd;c=D(c,19,P,d);a=await b(a,T(c));let e;return(e=Zd(be(a.data.content)))==null?void 0:G(e,md,20,N)}
56
+ async function yd(a){var b=W;var c=new Q;var d=new Id;c=D(c,17,P,d);a=await b(a,T(c));let e;return(e=Zd(be(a.data.content)))==null?void 0:G(e,hd,18,N)}async function zd(a,b){var c=W,d=new Q;b=D(d,8,P,b);await c(a,T(b))}async function Ad(a){var b=W;var c=new Q;var d=new Rd;c=D(c,18,P,d);a=await b(a,T(c));let e;return(e=Zd(be(a.data.content)))==null?void 0:G(e,ld,19,N)}async function Bd(a){var b=W;var c=new Q;var d=new Hd;c=D(c,11,P,d);await b(a,T(c))}
57
+ async function Cd(a,b){var c=W,d=new Q;b=D(d,14,P,b);await c(a,T(b))}async function Dd(a,b){var c=W,d=new Q;b=D(d,15,P,b);await c(a,T(b))}async function kf(a){await a.h()}
58
+ async function W(a,b){(a=await a.channel.C(b))||M(K,"Falsy response received from the message channel."+` ${JSON.stringify(a)}`);(b=a.data)||M(K,"Data field in the response from the message channel is falsy."+` ${JSON.stringify(b)}`);(b=b.content)||M(K,"Content field in the response from the message channel is falsy."+` ${JSON.stringify(b)}`);let c=void 0;try{c=be(b)}catch(d){M(K,"The ControlMessage can't be deserialized."+` ${JSON.stringify(b)}. ${JSON.stringify(d)}`)}(b=Zd(c))||M(K,"MeetToAddonMessage field on ControlMessage is falsy."+
59
+ ` ${JSON.stringify(b)}`);b=b==null?void 0:G(b,sc,10,N);if((b==null?void 0:F(b,1))!==void 0)throw new J(Wc(F(b,1)));return a}async function lf(a,b,c){var d=W,e=new Q;b=D(e,1,P,b);d=await d(a,T(b));a=d.data.messagePort;var f;(d=(f=Zd(be(d.data.content)))==null?void 0:G(f,qc,1,N))!=null?f=d:(f=new qc,f=C(f,1,w(0),0));return{channel:a?af(a,c):void 0,response:f}}async function mf(a){const b=Kd(),{channel:c,response:d}=await lf(a,b,e=>ef(e));if(!c)throw new J(Xc(d));return c}
60
+ async function nf(a){var b=W;var c=new Q;var d=new Xd;c=D(c,5,P,d);await b(a,T(c))}async function of(a){var b=W;var c=new Q;var d=new Qd;c=D(c,6,P,d);await b(a,T(c))}async function pf(a,b,c){var d=W,e=new Q,f=new Td;b=C(f,1,w(b),0);c=C(b,2,x(c),"");e=D(e,7,P,c);await d(a,T(e))}async function qf(a,b){var c=W,d=new Q;b=D(d,16,P,b);await c(a,T(b))}
61
+ class jf extends O{constructor(a,b,c){super();this.U=a;this.channel=b;this.h=oc(async()=>{var d=this.channel,e=d.C;var f=new Q;var g=new Ud;f=D(f,13,P,g);await e.call(d,T(f))});a=fc();E(a,4);Ab(y(a,1));Ab(y(a,2));Ab(y(a,3));c=Yd(new Q,Pd(Nd(a),c));this.channel.send(T(c));wd(this.U,async d=>{switch(B(d.content,N)){case 16:await kf(this)}})}};let rf;var sf=class{constructor(a){var b=rf;this.h=a;this.g=b}delete(){throw Error("Not implemented.");}};var uf=class extends I{h(){return G(this,U,2,tf)}g(){return Rb(this,U,2,tf)}j(){return G(this,V,3,tf)}l(){return Rb(this,V,3,tf)}},tf=[2,3];var vf=class extends I{};var wf=class extends I{};var xf=class extends I{};var zf=class extends I{h(){return G(this,U,2,yf)}g(){return Rb(this,U,2,yf)}j(){return G(this,V,3,yf)}l(){return Rb(this,V,3,yf)}},yf=[2,3],Af=[5,6];var Bf=class extends I{};var Cf=class extends I{},Df=[1,2,3];var Ef=class extends Error{constructor(){super("Failed to create CoActivity: Connection refused - Meet refused to begin Live Sharing")}};var Ff=class{constructor(a){this.config=a}start(){this.g!=null||(this.g=setInterval(()=>{this.config.ha()},this.config.da));return this}shutdown(){clearInterval(this.g)}};function Gf(){const a=new Map,b={set(c,d){a.set(c,d);return b},D:()=>a};return b};function Hf(a){if(a.g()){a=a.h().m;var b=a[q]|0;var c=Pb(a,b,1),d=Va(c,!0);d!=null&&d!==c&&z(a,b,1,d);a=d;b=a==null?Aa():a;a=Uint8Array;Da(za);c=b.g;if(c!=null&&!ya(c))if(typeof c==="string"){va.test(c)&&(c=c.replace(va,xa));c=atob(c);d=new Uint8Array(c.length);for(let e=0;e<c.length;e++)d[e]=c.charCodeAt(e);c=d}else c=null;b=c==null?c:b.g=c;return{bytes:new a(b||0)}}}function If(a,b){b=Jf(b);D(a,2,yf,b);return a}function Kf(a,b){b=Jf(b);D(a,2,tf,b);return a}
62
+ function Jf(a){var b=new U;return C(b,1,Va(a.bytes,!1),Aa())}function Lf(a){if(a.l()){a=a.j();var b,c,d=E(a,1),e=(c=(b=Wb(a,jc,2))==null?void 0:bc(b))!=null?c:0;c=a.m;let f=c[q]|0;const g=Pb(c,f,4);b=g==null||typeof g==="number"?g:g==="NaN"||g==="Infinity"||g==="-Infinity"?Number(g):void 0;b!=null&&b!==g&&z(c,f,4,b);return{mediaId:d,mediaPlayoutPosition:e,mediaPlayoutRate:b!=null?b:0,playbackState:Mf.get(F(a,3))}}}function Nf(a,b){b=Of(b);D(a,3,yf,b);return a}
63
+ function Pf(a,b){b=Of(b);D(a,3,tf,b);return a}const Mf=Gf().set(0,"INVALID").set(1,"BUFFERING").set(2,"PLAY").set(3,"PAUSE").set(4,"ENDED").D(),Qf=Gf().set("INVALID",0).set("BUFFERING",1).set("PLAY",2).set("PAUSE",3).set("ENDED",4).D();
64
+ function Of(a){var b=new V;b=C(b,1,x(a.mediaId),"");var c=a.mediaPlayoutRate;if(c!=null&&typeof c!=="number")throw Error(`Value of float/double field must be a number, found ${typeof c}: ${c}`);b=C(b,4,c,0);c=new jc;c=C(c,1,Bb(a.mediaPlayoutPosition),"0");b=Xb(b,2,c);a=Qf.get(a.playbackState);return C(b,3,w(a),0)}function Rf({activityTitle:a}){var b=new xf;return Qb(b,4,x(a))}function Sf(a,b){var c=new wf;b=C(c,1,w(b.u),0);D(a,6,Af,b);return a}function Tf(a){var b=new vf;D(a,5,Af,b);return a};const Uf=Gf().set("co-doing",1).set("co-watching",2).D();async function Vf(a,b,c){var d=b.C,e=new Cf;var f=new Bf;f=C(f,1,x(a.activityTitle),"");var g=Uf.get(a.K);f=C(f,2,w(g),0);e=D(e,3,Df,f);d=await d.call(b,e,df);let h;if((h=ac(d))!=null&&h)return new Wf(a,b,c,Wb(d,cf,2));throw new Ef;}function Xf(a,b){const c=a.config.N(b);c&&!a.config.M(a.g,c)&&(a.g=c,a.j=bc(b),a.v(a.g))}function X(a,b){const {state:c,fa:d,context:e}=b(a.g);a.g=c;a.notify(a.g,e,d)}
65
+ class Wf{constructor(a,b,c,d){this.l=a;this.h=b;this.config=c;this.v=kc(e=>void this.l.O(e));Yf(this.h,e=>{const f=B(e,ff);switch(f){case 1:Xf(this,G(e,cf,1,ff));break;case 2:case 0:console.warn(`IllegalMessage: ${f} - ${"Unhandled message"} - ${"Please raise a bug with the MeetJS team"}`)}});this.B=(new Ff({da:1E3,ha:()=>{var e,f,g=(f=(e=this.l).ja)==null?void 0:f.call(e);if(this.g!==null){this.g={...this.g,...g};e=new Cf;f=this.config;g=f.W;var h=new uf;h=C(h,1,Bb(this.j),"0");f=g.call(f,h,this.g);
66
+ e=D(e,1,Df,f);this.h.send(e)}}})).start();this.g=null;this.j=0;d&&Xf(this,d)}disconnect(){this.h.shutdown();this.B.shutdown()}notify(a,b,c){var d=c?Rf(c):void 0;c=this.config;var e=c.X;var f=new zf;f=C(f,1,Bb(this.j),"0");d=Xb(f,4,d);a=e.call(c,d,a);a=this.config.V(a,b);b=this.h;c=b.send;e=new Cf;a=D(e,2,Df,a);c.call(b,a)}};var Zf=class{constructor(a){this.g=a}broadcastStateUpdate(a){X(this.g,()=>({state:a,context:{}}))}disconnect(){this.g.disconnect()}};function $f(a,b){return a==null||b==null?!1:a.bytes.length===b.bytes.length&&a.bytes.every((c,d)=>c===b.bytes[d])};var ag=class{constructor(a){this.g=a}notifySwitchedToMedia(a,b,c){X(this.g,()=>({state:{mediaId:b,mediaPlayoutRate:1,mediaPlayoutPosition:c,playbackState:"PLAY"},fa:{activityTitle:a},context:{u:1}}))}notifyPauseState(a,b){X(this.g,c=>{if(c==null)throw Error("Invalid before coWatchingState");return{state:{...c,playbackState:a?"PAUSE":"PLAY",mediaPlayoutPosition:b},context:{u:3}}})}notifySeekToTimestamp(a){X(this.g,b=>{if(b==null)throw Error("Invalid before coWatchingState");return{state:{...b,mediaPlayoutPosition:a},
66
67
  context:{u:2}}})}notifyPlayoutRate(a){X(this.g,b=>{if(b==null)throw Error("Invalid before coWatchingState");return{state:{...b,mediaPlayoutRate:a},context:{u:4}}})}notifyBuffering(a){X(this.g,b=>{if(b==null)throw Error("Invalid before coWatchingState");return{state:{...b,mediaPlayoutPosition:a,playbackState:"BUFFERING"},context:{u:3}}})}notifyReady(a){X(this.g,b=>{if(b==null)throw Error("Invalid before coWatchingState");return{state:{...b,mediaPlayoutPosition:a},context:{u:3}}})}disconnect(){this.g.disconnect()}};
67
- function Xf(a,b){if(a==null||b==null)return!1;const c=a.playbackState==="PLAY"?3*Math.max(a.mediaPlayoutRate,1):0,d=Math.abs(a.mediaPlayoutPosition-b.mediaPlayoutPosition);return a.mediaId===b.mediaId&&a.mediaPlayoutRate===b.mediaPlayoutRate&&d<=c&&a.playbackState===b.playbackState};function Tf(a,b){const c=xd(a.signal,d=>{b(d)});a.o.push(c)}var Yf=class{constructor(a,b){this.channel=a;this.signal=b;this.o=[]}send(a){this.channel.send(cc(a))}async C(a,b){a=await this.channel.C(cc(a));return b(a.data)}shutdown(){this.o.forEach(a=>{this.signal.detach(a)})}};function Zf(a,b){var c=$f;const d=a.signal(),e=a.signal();xd(b,f=>{const g=c(f)?d:e;Ke(a,g,f)},a);return{ia:d,ga:e}}function ag(a,b,c,d=e=>e){xd(c,e=>{Ke(a,b,d(e))},a)};async function bg(a,b){if(b)return a=await Qf({activityTitle:b.activityTitle,K:"co-watching",ja:()=>b.onCoWatchingStateQuery(),O:c=>{b.onCoWatchingStateChanged(c)}},a,{X:If,W:Kf,V:Nf,N:Gf,M:Xf}),new Wf(a)}async function cg(a,b){if(b)return a=await Qf({activityTitle:b.activityTitle,K:"co-doing",O:c=>{b.onCoDoingStateChanged(c)}},a,{X:Df,W:Ff,V:Of,N:Cf,M:Vf}),new Uf(a)}
68
- async function dg(a){const b=new Ne,c=b.signal();a=await a;ag(b,c,a.signal,f=>f.content);const {ia:d,ga:e}=Zf(b,c);return{Z:new Yf(a.channel,d),aa:new Yf(a.channel,e)}}function $f(a){a:switch(C(a,af)){case 1:a=H(a,Ye,1,af);break a;default:throw Error("CA Message arrived with no known content message set");}return a.g()};async function eg(a,b){({Z:a}=await dg(gf(a.g)));b=await cg(a,b);if(!b)throw Error("Failed to create co-doing session");return b}async function fg(a,b){({aa:a}=await dg(gf(a.g)));b=await bg(a,b);if(!b)throw Error("Failed to create co-watching session");return b};var gg=class extends Dd{async notifySidePanel(a){await kf(this.context.g,1,a)}async unloadSidePanel(){await hf(this.context.g)}async loadSidePanel(){await jf(this.context.g)}};var hg=class extends Dd{async setAddonStartingState(a){if(a===null)throw new K(Fc("addonStartingState"));if(typeof a!=="object")throw new K(M("addonStartingState",typeof a,"object | undefined"));if(a.sidePanelUrl!==void 0&&typeof a.sidePanelUrl!=="string")throw new K(M("sidePanelUrl",typeof a.sidePanelUrl,"string | undefined"));if(a.additionalData!==void 0&&typeof a.additionalData!=="string")throw new K(M("additionalData",typeof a.additionalData,"string | undefined"));if(Object.keys(a).length!==+!!a.sidePanelUrl+
69
- +!!a.additionalData)throw new K(Ec);if(Object.keys(a).length===0)throw new K(Dc);var b=[];b.push(bd(ad(Zc(1),a.sidePanelUrl),a.additionalData));a=this.context.g;var c=new Sd,d=c.setAddonStartingState,e=new Rd;b=Xb(e,b);await lf(a,d.call(c,b))}};var ig=class extends Dd{async notifyMainStage(a){await kf(this.context.g,2,a)}};var jg=class{constructor(a){a=a.cloudProjectNumber;const b=Fd();if(b.cloudProjectNumber!==a)throw new K(yc);const c=b.S,d=b.ba;let e;mf=(e=mf)!=null?e:cf(d,c,a);this.g=new nf(b)}async createMainStageClient(){var a=this.g;if(a.h.frameType!==2)throw new K(tc);return await Promise.resolve(new gg(a))}async createSidePanelClient(){var a=this.g;if(a.h.frameType!==1)throw new K(uc);return await Promise.resolve(new ig(a))}async createCoWatchingClient(a){return await fg(this.g,a)}async createCoDoingClient(a){return await eg(this.g,
70
- a)}async createRoomsStandaloneClient(){var a=this.g;if(a.h.frameType!==2)throw new K(tc);return await Promise.resolve(new hg(a))}};let kg=null;var lg={addon:{getFrameType:function(){a:{var a=Fd().frameType;switch(a){case 2:a="MAIN_STAGE";break a;case 1:a="SIDE_PANEL";break a;default:throw Error(`Unknown frame type: ${a}`);}}return a},createAddonSession:async function(a){if(a===null)throw new K(Fc("config"));if(typeof a!=="object")throw new K(M("config",typeof a,"object"));if(typeof a.cloudProjectNumber!=="string")throw new K(M("cloudProjectNumber",typeof a.cloudProjectNumber,"string"));if(kg&&Fd().S!=="integration.test.google.com")throw new K(Pc);
71
- return kg=new jg(a)}}},mg=["meet"],Y=l;mg[0]in Y||typeof Y.execScript=="undefined"||Y.execScript("var "+mg[0]);for(var Z;mg.length&&(Z=mg.shift());)mg.length||lg===void 0?Y[Z]&&Y[Z]!==Object.prototype[Z]?Y=Y[Z]:Y=Y[Z]={}:Y[Z]=lg;}).apply(topLevel);export const meet = topLevel.meet;
68
+ function bg(a,b){if(a==null||b==null)return!1;const c=a.playbackState==="PLAY"?3*Math.max(a.mediaPlayoutRate,1):0,d=Math.abs(a.mediaPlayoutPosition-b.mediaPlayoutPosition);return a.mediaId===b.mediaId&&a.mediaPlayoutRate===b.mediaPlayoutRate&&d<=c&&a.playbackState===b.playbackState};function Yf(a,b){const c=wd(a.signal,d=>{b(d)});a.o.push(c)}var cg=class{constructor(a,b){this.channel=a;this.signal=b;this.o=[]}send(a){this.channel.send(dc(a))}async C(a,b){a=await this.channel.C(dc(a));return b(a.data)}shutdown(){this.o.forEach(a=>{this.signal.detach(a)})}};function dg(a,b){var c=eg;const d=a.signal(),e=a.signal();wd(b,f=>{const g=c(f)?d:e;Pe(a,g,f)},a);return{ia:d,ga:e}}function fg(a,b,c,d=e=>e){wd(c,e=>{Pe(a,b,d(e))},a)};async function gg(a,b){if(b)return a=await Vf({activityTitle:b.activityTitle,K:"co-watching",ja:()=>b.onCoWatchingStateQuery(),O:c=>{b.onCoWatchingStateChanged(c)}},a,{X:Nf,W:Pf,V:Sf,N:Lf,M:bg}),new ag(a)}async function hg(a,b){if(b)return a=await Vf({activityTitle:b.activityTitle,K:"co-doing",O:c=>{b.onCoDoingStateChanged(c)}},a,{X:If,W:Kf,V:Tf,N:Hf,M:$f}),new Zf(a)}
69
+ async function ig(a){const b=new Se,c=b.signal();a=await a;fg(b,c,a.signal,f=>f.content);const {ia:d,ga:e}=dg(b,c);return{Z:new cg(a.channel,d),aa:new cg(a.channel,e)}}function eg(a){a:switch(B(a,ff)){case 1:a=G(a,cf,1,ff);break a;default:throw Error("CA Message arrived with no known content message set");}return a.g()};async function jg(a,b){({Z:a}=await ig(mf(a.g)));b=await hg(a,b);if(!b)throw Error("Failed to create co-doing session");return b}async function kg(a,b){({aa:a}=await ig(mf(a.g)));b=await gg(a,b);if(!b)throw Error("Failed to create co-watching session");return b};var lg=class extends Ed{async notifySidePanel(a){await pf(this.context.g,1,a)}async unloadSidePanel(){await nf(this.context.g)}async loadSidePanel(){await of(this.context.g)}};var mg=class extends Ed{async setAddonStartingState(a){if(a===null)throw new J(Hc("addonStartingState"));if(typeof a!=="object")throw new J(L("addonStartingState",typeof a,"object | undefined"));if(a.sidePanelUrl!==void 0&&typeof a.sidePanelUrl!=="string")throw new J(L("sidePanelUrl",typeof a.sidePanelUrl,"string | undefined"));if(a.additionalData!==void 0&&typeof a.additionalData!=="string")throw new J(L("additionalData",typeof a.additionalData,"string | undefined"));if(Object.keys(a).length!==+!!a.sidePanelUrl+
70
+ +!!a.additionalData)throw new J(Gc);if(Object.keys(a).length===0)throw new J(Fc);var b=[];b.push(cd(bd($c(1),a.sidePanelUrl),a.additionalData));a=this.context.g;var c=new Wd,d=c.setAddonStartingState,e=new Vd;b=Yb(e,b);await qf(a,d.call(c,b))}};var ng=class extends Ed{async notifyMainStage(a){await pf(this.context.g,2,a)}};var og=class{constructor(a){a=a.cloudProjectNumber;const b=Gd();if(b.cloudProjectNumber!==a)throw new J(zc);const c=b.S,d=b.ba;let e;rf=(e=rf)!=null?e:hf(d,c,a);this.g=new sf(b)}async createMainStageClient(){var a=this.g;if(a.h.frameType!==2)throw new J(uc);return await Promise.resolve(new lg(a))}async createSidePanelClient(){var a=this.g;if(a.h.frameType!==1)throw new J(vc);return await Promise.resolve(new ng(a))}async createCoWatchingClient(a){return await kg(this.g,a)}async createCoDoingClient(a){return await jg(this.g,
71
+ a)}async createRoomsStandaloneClient(){var a=this.g;if(a.h.frameType!==2)throw new J(uc);return await Promise.resolve(new mg(a))}};let pg=null;var qg={addon:{getFrameType:function(){a:{var a=Gd().frameType;switch(a){case 2:a="MAIN_STAGE";break a;case 1:a="SIDE_PANEL";break a;default:throw Error(`Unknown frame type: ${a}`);}}return a},createAddonSession:async function(a){if(a===null)throw new J(Hc("config"));if(typeof a!=="object")throw new J(L("config",typeof a,"object"));if(typeof a.cloudProjectNumber!=="string")throw new J(L("cloudProjectNumber",typeof a.cloudProjectNumber,"string"));if(pg&&Gd().S!=="integration.test.google.com")throw new J(Qc);
72
+ return pg=new og(a)}}},rg=["meet"],Y=l;rg[0]in Y||typeof Y.execScript=="undefined"||Y.execScript("var "+rg[0]);for(var Z;rg.length&&(Z=rg.shift());)rg.length||qg===void 0?Y[Z]&&Y[Z]!==Object.prototype[Z]?Y=Y[Z]:Y=Y[Z]={}:Y[Z]=qg;}).apply(topLevel);export const meet = topLevel.meet;
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@googleworkspace/meet-addons",
3
3
  "description": "The Google Meet Add-ons SDK lets you embed your app into Google Meet as an add-on where users can discover, share, and collaborate in the app without leaving Meet",
4
- "version": "1.2.0-dev-718548242",
4
+ "version": "1.2.0-dev-719451815",
5
5
  "repository": "googleworkspace/meet",
6
6
  "license": "SEE LICENSE IN LICENSE",
7
7
  "homepage": "https://developers.google.com/meet/add-ons/guides/overview",
8
8
  "author": "Addons Team <meet-addons-support@google.com>",
9
+ "main": "meet.addons.mjs",
9
10
  "exports": {
10
11
  ".": {
11
12
  "import": "./meet.addons.mjs",