@googleworkspace/meet-addons 1.2.0-dev-733885818 → 1.2.0-dev-734698602

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/meet.addons.mjs CHANGED
@@ -4,67 +4,68 @@ 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 h=Array(arguments.length-2),g=2;g<arguments.length;g++)h[g-2]=arguments[g];return b.prototype[e].apply(d,h)}};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 ja(a){l.setTimeout(()=>{throw a;},0)};var ka,la;a:{for(var ma=["CLOSURE_FLAGS"],na=l,oa=0;oa<ma.length;oa++)if(na=na[ma[oa]],na==null){la=null;break a}la=na}var pa=la&&la[610401301];ka=pa!=null?pa:!1;var qa;const ra=l.navigator;qa=ra?ra.userAgentData||null:null;function sa(a){return ka?qa?qa.brands.some(({brand:b})=>b&&b.indexOf(a)!=-1):!1:!1}function m(a){var b;a:{if(b=l.navigator)if(b=b.userAgent)break a;b=""}return b.indexOf(a)!=-1};function n(){return ka?!!qa&&qa.brands.length>0:!1}function ta(){return n()?sa("Chromium"):(m("Chrome")||m("CriOS"))&&!(n()?0:m("Edge"))||m("Silk")};function ua(a,b){b=Array.prototype.indexOf.call(a,b,void 0);b>=0&&Array.prototype.splice.call(a,b,1)};!m("Android")||ta();ta();m("Safari")&&(ta()||(n()?0:m("Coast"))||(n()?0:m("Opera"))||(n()?0:m("Edge"))||(n()?sa("Microsoft Edge"):m("Edg/"))||n()&&sa("Opera"));function va(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 wa=/[-_.]/g,xa={"-":"+",_:"/",".":"="};function ya(a){return xa[a]||""}function za(a){return a!=null&&a instanceof Uint8Array}var Aa={};function Ba(){return Ca||(Ca=new Da(null,Aa))}var Da=class{constructor(a,b){Ea(b);this.g=a;if(a!=null&&a.length===0)throw Error("ByteString should be constructed with non-empty values");}};let Ca;function Ea(a){if(a!==Aa)throw Error("illegal external caller");};function Fa(a,b){a.__closure__error__context__984382||(a.__closure__error__context__984382={});a.__closure__error__context__984382.severity=b};let Ga=void 0;function Ha(a){a=Error(a);Fa(a,"warning");return a}function Ia(a){if(a!=null){var b;var c=(b=Ga)!=null?b:Ga={};b=c[a]||0;b>=5||(c[a]=b+1,a=Error(),Fa(a,"incident"),ja(a))}};function Ja(a,b=!1){return b&&Symbol.for&&a?Symbol.for(a):a!=null?Symbol(a):Symbol()}var Ka=Ja(),La=Ja(),Ma=Ja(),Na=Ja();const p=Ja("jas",!0);function Oa(){return typeof BigInt==="function"};var Pa={};function Qa(a){return a!==null&&typeof a==="object"&&!Array.isArray(a)&&a.constructor===Object}function Ra(a,b){if(a!=null)if(typeof a==="string")a=a?new Da(a,Aa):Ba();else if(a.constructor!==Da)if(za(a))a=a.length?new Da(new Uint8Array(a),Aa):Ba();else{if(!b)throw Error();a=void 0}return a}var Sa;const Ta=[];Ta[p]=55;Sa=Object.freeze(Ta);function Ua(a){if(a&2)throw Error();}var Va=Object.freeze({});function Wa(a){a.pa=!0;return a};var Xa=Wa(a=>typeof a==="number"),Ya=Wa(a=>typeof a==="string"),Za=Wa(a=>typeof a==="boolean");var $a=typeof l.BigInt==="function"&&typeof l.BigInt(0)==="bigint";var fb=Wa(a=>$a?a>=ab&&a<=bb:a[0]==="-"?cb(a,db):cb(a,eb));const db=Number.MIN_SAFE_INTEGER.toString(),ab=$a?BigInt(Number.MIN_SAFE_INTEGER):void 0,eb=Number.MAX_SAFE_INTEGER.toString(),bb=$a?BigInt(Number.MAX_SAFE_INTEGER):void 0;function cb(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 r=0,u=0;function gb(a){const b=a>>>0;r=b;u=(a-b)/4294967296>>>0}function ib(a){if(a<0){gb(-a);const [b,c]=jb(r,u);r=b>>>0;u=c>>>0}else gb(a)}function kb(a,b){b>>>=0;a>>>=0;if(b<=2097151)var c=""+(4294967296*b+a);else Oa()?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+lb(c)+lb(a));return c}
8
- function lb(a){a=String(a);return"0000000".slice(a.length)+a}function jb(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]};const mb=typeof BigInt==="function"?BigInt.asIntN:void 0,nb=Number.isSafeInteger,ob=Number.isFinite,pb=Math.trunc,qb=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;function rb(a){switch(typeof a){case "bigint":return!0;case "number":return ob(a);case "string":return qb.test(a);default:return!1}}function v(a){if(a!=null){if(!ob(a))throw Ha("enum");a|=0}return a}function sb(a){if(a!=null){if(typeof a==="string"&&a)a=+a;else if(typeof a!=="number")return;ob(a)}}
9
- function tb(a){if(a!=null)a:{if(!rb(a))throw Ha("int64");switch(typeof a){case "string":a=ub(a);break a;case "bigint":var b=a=mb(64,a);if(Ya(b)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(b))throw Error(String(b));}else if(Xa(b)&&!Number.isSafeInteger(b))throw Error(String(b));$a?a=BigInt(a):a=Za(a)?a?"1":"0":Ya(a)?a.trim()||"0":String(a);break a;default:a=vb(a)}}return a}
10
- function vb(a){a=pb(a);if(!nb(a)){ib(a);var b=r,c=u;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:kb(b,c);a=typeof b==="number"?a?-b:b:a?"-"+b:b}return a}
11
- function ub(a){var b=pb(Number(a));if(nb(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)ib(Number(a));else if(Oa())a=BigInt(a),r=Number(a&BigInt(4294967295))>>>0,u=Number(a>>BigInt(32)&BigInt(4294967295));else{b=+(a[0]==="-");u=r=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));u*=1E6;r=r*1E6+f;r>=4294967296&&
12
- (u+=Math.trunc(r/4294967296),u>>>=0,r>>>=0)}if(b){const [d,e]=jb(r,u);r=d;u=e}}a=r;b=u;if(b&2147483648)if(Oa())a=""+(BigInt(b|0)<<BigInt(32)|BigInt(a>>>0));else{const [c,d]=jb(a,b);a="-"+kb(c,d)}else a=kb(a,b)}return a}function x(a){if(a!=null&&typeof a!=="string")throw Error();return a}function wb(a,b,c){if(a!=null&&typeof a==="object"&&a.H===Pa)return a;if(Array.isArray(a)){var d=a[p]|0,e=d;e===0&&(e|=c&32);e|=c&2;e!==d&&(a[p]=e);return new b(a)}};function xb(a){return a};function yb(a,b,c,d,e){const f=d?!!(b&32):void 0;d=[];var h=a.length;let g,k,w,C=!1;if(b&64){if(b&256?(h--,g=a[h],k=h):(k=4294967295,g=void 0),!(e||b&512)){C=!0;var q;w=((q=zb)!=null?q:xb)(g?k- -1:b>>14&1023||536870912,-1,a,g);k=w+-1}}else k=4294967295,b&1||(g=h&&a[h-1],Qa(g)?(h--,k=h,w=0):g=void 0);q=void 0;for(let t=0;t<h;t++){let D=a[t];if(D!=null&&(D=c(D,f))!=null)if(t>=k){var E=void 0;((E=q)!=null?E:q={})[t- -1]=D}else d[t]=D}if(g)for(let t in g)if(E=g[t],E!=null&&(E=c(E,f))!=null)if(h=+t,h<
13
- w)d[h+-1]=E;else{let D;((D=q)!=null?D:q={})[t]=E}q&&(C?d.push(q):d[k]=q);e&&(d[p]=b&16761409|(q!=null?290:34),(a=(b=fa(La))?a[b]:void 0)&&(d[La]=Array.prototype.slice.call(a)));return d}
14
- function Ab(a){switch(typeof a){case "number":return Number.isFinite(a)?a:""+a;case "bigint":return fb(a)?Number(a):""+a;case "boolean":return a?1:0;case "object":if(Array.isArray(a)){var b=a[p]|0;return a.length===0&&b&1?void 0:yb(a,b,Ab,!1,!1)}if(a.H===Pa)return Bb(a);if(a instanceof Da)return b=a.g,b==null?"":typeof b==="string"?b:a.g=va(b);if(za(a))return za(a)&&Ia(Na),va(a);return}return a}let zb;function Bb(a){a=a.m;return yb(a,a[p]|0,Ab,void 0,!1)};function Cb(){Ia(Ma)};function Db(a,b){if(typeof a!=="object")return a;if(Array.isArray(a)){const d=a[p]|0;if(a.length===0&&d&1)return;if(d&2)return a;var c;if(c=b)c=d===0||!!(d&32)&&!(d&64||!(d&16));return c?(a[p]|=34,d&4&&Object.freeze(a),a):yb(a,d,Db,b!==void 0,!0)}if(a.H===Pa)return b=a.m,c=b[p]|0,c&2?a:yb(b,c,Db,!0,!0);if(a instanceof Da)return a;if(za(a))return za(a)&&Ia(Na),new Uint8Array(a)}function Eb(a){var b=a.m;if(!((b[p]|0)&2))return a;a=new a.constructor(yb(b,b[p]|0,Db,!0,!0));b=a.m;b[p]&=-3;return a};function y(a,b){a=a.m;return Fb(a,a[p]|0,b)}function Fb(a,b,c){if(c===-1)return null;const d=c+(b&512?0:-1),e=a.length-1;if(d>=e&&b&256)return a[e][c];if(d<=e)return a[d]}function Gb(a,b,c){const d=a.m;let e=d[p]|0;Ua(e);z(d,e,b,c);return a}function z(a,b,c,d){const e=b&512?0:-1,f=c+e;var h=a.length-1;if(f>=h&&b&256)return a[h][c]=d,b;if(f<=h)return a[f]=d,b;d!==void 0&&(h=b>>14&1023||536870912,c>=h?d!=null&&(a[h+e]={[c]:d},b|=256,a[p]=b):a[f]=d);return b}
15
- function Hb(a,b,c,d){c=A(a,d)===c?c:-1;return Ib(a,b,c)!==void 0}function Jb(a){return!!(2&a)&&!!(4&a)||!!(1024&a)}function B(a,b,c,d){const e=a.m;let f=e[p]|0;Ua(f);z(e,f,b,(d==="0"?Number(c)===0:c===d)?void 0:c);return a}function A(a,b){a=a.m;return Kb(Lb(a),a,a[p]|0,b)}function Lb(a){let b;return(b=a[Ka])!=null?b:a[Ka]=new Map}function Kb(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 h=d[f];Fb(b,c,h)!=null&&(e!==0&&(c=z(b,c,e)),e=h)}a.set(d,e);return e}
16
- function Ib(a,b,c){a=a.m;let d=a[p]|0;const e=Fb(a,d,c);b=wb(e,b,d);b!==e&&b!=null&&z(a,d,c,b);return b}function Mb(a,b,c){b=Ib(a,b,c);if(b==null)return b;a=a.m;let d=a[p]|0;if(!(d&2)){const e=Eb(b);e!==b&&(b=e,z(a,d,c,b))}return b}function Nb(a,b,c){c==null&&(c=void 0);return Gb(a,b,c)}
17
- function F(a,b,c,d){d==null&&(d=void 0);a:{const h=a.m;var e=h[p]|0;Ua(e);if(d==null){var f=Lb(h);if(Kb(f,h,e,c)===b)f.set(c,0);else break a}else{f=h;const g=Lb(f),k=Kb(g,f,e,c);k!==b&&(k&&(e=z(f,e,k)),g.set(c,b))}z(h,e,b,d)}return a}
18
- function Ob(a,b){const c=a.m;let d=c[p]|0;Ua(d);if(b==null)return z(c,d,1),a;let e=b[p]|0,f=e;const h=Jb(e),g=h||Object.isFrozen(b);let k=!0,w=!0;for(let q=0;q<b.length;q++){var C=b[q];h||(C=!!((C.m[p]|0)&2),k&&(k=!C),w&&(w=C))}h||(e=k?13:5,e=w?e|16:e&-17);g&&e===f||(b=Array.prototype.slice.call(b),f=0,e=Pb(e,d),e=Qb(e,d,!0));e!==f&&(b[p]=e);z(c,d,1,b);return a}function Pb(a,b){a=(2&b?a|2:a&-3)|32;return a&=-1025}function Qb(a,b,c){32&b&&c||(a&=-33);return a}
19
- function Rb(a){a=y(a,1);a=a==null||typeof a==="boolean"?a:typeof a==="number"?!!a:void 0;return a!=null?a:!1}function Sb(a){a=y(a,1);a!=null&&(typeof a==="bigint"?fb(a)?a=Number(a):(a=mb(64,a),a=fb(a)?Number(a):String(a)):a=rb(a)?typeof a==="number"?vb(a):ub(a):void 0);return a!=null?a:0}function G(a,b){a=y(a,b);a=a==null||typeof a==="string"?a:void 0;return a!=null?a:""}function H(a,b){a=y(a,b);a=a==null?a:ob(a)?a|0:void 0;return a!=null?a:0}
20
- function I(a,b,c,d){c=A(a,d)===c?c:-1;return Mb(a,b,c)};function Tb(){var a=Ub||(Ub=Vb("[1,2,0]"));a=Eb(a);a=Gb(a,4,x("dev-733885818"));const b=a.m,c=b[p]|0;return c&2?a:new a.constructor(yb(b,c,Db,!0,!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[p]|0;8192&b||!(64&b)||2&b||Cb();if(b&1024)throw Error("farr");if(b&64){var c=a;break a}var d=a;b|=64;var e=d.length;if(e){var f=e-1;e=d[f];if(Qa(e)){b|=256;const h=b&512?0:-1;f-=h;if(f>=1024)throw Error("pvtlmt");for(c in e){const g=+c;if(g<f)d[g+h]=e[c],delete e[c];else break}b=b&-16760833|(f&1023)<<14}}}a[p]=b;c=a}this.m=c}toJSON(){return Bb(this)}};J.prototype.H=Pa;J.prototype.toString=function(){return this.m.toString()};function Wb(a){return b=>{if(b==null||b=="")b=new a;else{b=JSON.parse(b);if(!Array.isArray(b))throw Error("dnarr");b[p]|=32;b=new a(b)}return b}};var Vb=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[p]|=34;return new a(b)}}(class extends J{});var Xb=class extends J{};function Yb(a){var b=new Zb(500);let c=0,d;return(...e)=>{$b(b)?a(...e):(d=()=>void a(...e),c||(c=setTimeout(()=>{c=0;let f;(f=d)==null||f()},ac(b))))}}function bc(a){var b=new Zb(100),c=Promise.resolve();return(...d)=>$b(b)?a(...d):c};function $b(a){return cc(a,a.index)>=a.g?(a.h[a.index]=Date.now(),a.index=(a.index+1)%1,!0):!1}function ac(a){const b=a.g;a=cc(a,a.index);return a>=b?0:b-a}function cc(a,b){let c;return Date.now()-((c=a.h[b])!=null?c:-1*a.g)}var Zb=class{constructor(a){this.g=a;this.h=[];this.index=0}};var dc=class extends J{},ec=[2,3];var fc=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."},gc={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)."},
22
- hc={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."},ic={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."},jc={errorType:"NotSupportedInStandalone",
23
- message:"This method is not supported in standalone mode.",i:"Do not call this method in standalone mode."},kc={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."},lc={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)."},
24
- mc={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."},nc={errorType:"DestinationNotReady",
25
- 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."},oc={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."},pc={errorType:"ActivityStartingStateMissingAttributes",
26
- 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."},qc={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."},
27
- rc={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."},sc={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."},
28
- tc=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."}),vc=a=>({errorType:"InternalError",message:`Could not connect to ${a} channel. Unknown error`,
29
- i:"No further information is available."}),wc={errorType:"ActivityIsOngoing",message:"Operation cannot be performed while an activity is ongoing.",i:"Ensure that no activity is ongoing."},xc={errorType:"InternalError",message:"Frame message missing required Meet SDK command.",i:"Send one of the available commands in the frame message."},yc={errorType:"NoActivityFound",message:"No activity found.",i:"Ensure that the activity is started before performing this operation."},zc={errorType:"RequiresEapEnrollment",
30
- message:"This feature is only available to early access partners.",i:"Meet add-on early access enrollment is currently closed."},Ac={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."},Bc={errorType:"SizeLimitExceededActivityStartingState",message:"The size of the activityStartingState URLs and/or its data exceed the limits allowed.",
31
- i:"Ensure that the activityStartingState URL size is less than 512 characters and the additional data size is less than 4096 characters."},Cc={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."},Dc={errorType:"AddonSessionAlreadyCreated",message:"The addon session has already been created.",i:"Only instantiate the AddonSession once."},Ec={errorType:"UserCancelled",
32
- message:"The user cancelled starting an activity.",i:"The user needs to click continue to start the activity."},Fc={errorType:"NotSupportedInMeetCall",message:"This method is not supported during a Meet call.",i:"Do not call this method during a Meet call."},Gc={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."},
33
- Hc={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."},Ic={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."};
34
- function Jc(a){switch(a){case 0:return L;case 1:return nc;case 2:return oc;case 3:return wc;case 4:return xc;case 5:return zc;case 6:return jc;case 7:return Ac;case 8:return Bc;case 9:return Cc;case 10:return Ec;case 11:return Fc;case 12:return Gc;case 13:return Hc;case 14:return yc;case 15:return Ic;default:return L}}
35
- function Kc(a){let b;var c=(b=H(a,1))!=null?b:0;a=Lc(A(a,ec));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}.`,
36
- 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 vc(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.`,
37
- i:"No further information is available."}}return c;default:return vc(a)}}function Lc(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 Mc(a,b){N({...gc,message:`${gc.message}: ${a}. In URL ${b}`})};function Nc(a){var b=new Oc;return B(b,1,v(a),0)}function Pc(a,b){return B(a,2,x(b),"")}function Qc(a,b){return B(a,3,x(b),"")}var Oc=class extends J{getFrameType(){return H(this,1)}};function Rc(a){var b=a.m[p]|0,c=b,d=!(2&b),e=Oc;b=void 0===Va?2:4;a=a.m;var f=!!(2&c);const h=f?1:b;d&&(d=!f);b=Fb(a,c,1);b=Array.isArray(b)?b:Sa;var g=b[p]|0;f=!!(4&g);if(!f){var k=g;k===0&&(k=Pb(k,c));g=b;k|=1;var w=c;const C=!!(2&k);C&&(w|=2);let q=!C,E=!0,t=0,D=0;for(;t<g.length;t++){const hb=wb(g[t],e,w);if(hb instanceof e){if(!C){const uc=!!((hb.m[p]|0)&2);q&&(q=!uc);E&&(E=uc)}g[D++]=hb}}D<t&&(g.length=D);k|=4;k=E?k|16:k&-17;k=q?k|8:k&-9;g[p]=k;C&&Object.freeze(g);g=k}if(d&&!(8&g||!b.length&&
38
- (h===1||h===4&&32&g))){Jb(g)&&(b=Array.prototype.slice.call(b),g=Pb(g,c),c=z(a,c,1,b));d=b;e=g;for(g=0;g<d.length;g++)k=d[g],w=Eb(k),k!==w&&(d[g]=w);e|=8;e=d.length?e&-17:e|16;g=d[p]=e}h===1||h===4&&32&g?Jb(g)||(c=g,a=!!(32&g),g|=!b.length||16&g&&(!f||a)?2:1024,g!==c&&(b[p]=g),Object.freeze(b)):(h===2&&Jb(g)&&(b=Array.prototype.slice.call(b),g=Pb(g,c),g=Qb(g,c,!1),b[p]=g,c=z(a,c,1,b)),Jb(g)||(a=g,g=Qb(g,c,!1),g!==a&&(b[p]=g)));return b}function Sc(a){var b=new Tc;return Ob(b,a)}var Tc=class extends J{};var Uc=class extends J{};var Vc=class extends J{};var Wc=class extends J{};var Xc=class extends J{};var Yc=class extends J{};var Zc=class extends J{getMeetPlatformInfo(){return Mb(this,Xc,1)}};var $c=class extends J{getMeetingInfo(){return Mb(this,Yc,1)}};var ad=class extends J{},O=[1,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21];var bd=class extends J{};var cd=class extends J{};var dd=new Map([[2,"MAIN_STAGE"],[1,"SIDE_PANEL"]]),ed=new Map([[0,"UNKNOWN"],[1,"OPEN_ADDON"],[2,"START_ACTIVITY"],[3,"JOIN_ACTIVITY"]]);function fd(a){a&&typeof a.dispose=="function"&&a.dispose()};function P(){this.s=this.s;this.g=this.g}P.prototype.s=!1;P.prototype.dispose=function(){this.s||(this.s=!0,this.G())};P.prototype[Symbol.dispose]=function(){this.dispose()};function gd(a,b){a.s?b():(a.g||(a.g=[]),a.g.push(b))}P.prototype.G=function(){if(this.g)for(;this.g.length;)this.g.shift()()};function hd({J:a,R:b}){if(a===null)throw new K(tc("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!==
39
- "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(qc);if(Object.keys(a).length===0)throw new K(pc);}}function id(a){const b=[];b.push(Qc(Pc(Nc(2),a.mainStageUrl),a.additionalData));b.push(Qc(Pc(Nc(1),a.sidePanelUrl),a.additionalData));return b}
40
- var rd=class extends P{constructor(a){super();this.context=a;this.h={};jd(this.context.g.U,b=>{switch(A(b.content,O)){case 7:const d=this.h.frameToFrameMessage;b=I(b.content,Wc,7,O);if(d&&b){var c=H(b,1);c=dd.get(c);if(c===void 0)throw Error("Unknown frame type.");d({originator:c,payload:G(b,2)})}}})}async getMeetingInfo(){const a=await kd(this.context.g);return{meetingId:G(a.getMeetingInfo(),1),meetingCode:G(a.getMeetingInfo(),2)}}async getFrameOpenReason(){let a;const b=(a=this.context.h.ca)!=null?
41
- a:0;let c;return(c=ed.get(b))!=null?c:"UNKNOWN"}async getActivityStartingState(){var a=Mb(await ld(this.context.g),Tc,1);const b=a==null?void 0:Rc(a).find(c=>c.getFrameType()===2);a=a==null?void 0:Rc(a).find(c=>c.getFrameType()===1);return{mainStageUrl:(b==null?void 0:G(b,2))||void 0,sidePanelUrl:(a==null?void 0:G(a,2))||void 0,additionalData:(a==null?void 0:G(a,3))||void 0}}async setActivityStartingState(a){hd({J:a,R:!0});var b=id(a);a=md;var c=this.context.g;var d=new bd;b=Sc(b);d=Nb(d,1,b);await a(c,
42
- d)}on(a,b){this.h[a]=b}async getMeetPlatformInfo(){const a=await nd(this.context.g);return{isMeetHardware:Rb(a.getMeetPlatformInfo())}}async closeAddon(){await od(this.context.g)}async startActivity(a){hd({J:a,R:!1});const b=new cd;a&&(a=id(a),a=Sc(a),Nb(b,1,a));await pd(this.context.g,b)}async endActivity(a){var b=qd,c=this.context.g,d=new Uc;a=B(d,1,v(a==="aab61ee0-51b4-475d-aa4d-849f2498640d"?999:0),0);await b(c,a)}};var sd=Wb(class extends J{getFrameOpenReason(){return H(this,5)}});function td(){const a=window.location.href;var b=window.location.href;var c=(new URL(b)).searchParams.get("meet_sdk");if(c)b=sd(atob(c));else{var d;((d=window.top)!=null?d:window)===window?N(kc):Mc("meet_sdk",b);b=void 0}(c=G(b,1))||Mc("meet_addon_frame_type",a);c=Number(c);if(c!==2&&c!==1)throw new K(lc);(d=G(b,2))||Mc("meet_control_channel_name",a);const e=G(b,4);e||Mc("addon_cloud_project_number",a);let f;return{ca:(f=b.getFrameOpenReason())!=null?f:0,frameType:c,ba:d,cloudProjectNumber:e,S:G(b,
43
- 3)||"https://meet.google.com"}};var ud=class extends J{};var vd=class extends J{};var wd=class extends J{};function xd(){var a=new yd,b=new wd;return F(a,1,zd,b)}var yd=class extends J{},zd=[1,2];function Ad(a){var b=new Bd;return Nb(b,2,a)}function Cd(a,b){return B(a,3,x(b),"")}var Bd=class extends J{};var Dd=class extends J{};var Ed=class extends J{};var Fd=class extends J{};var Gd=class extends J{};var Hd=class extends J{};var Id=class extends J{};var Jd=class extends J{setAddonStartingState(a){return Nb(this,1,a)}};var Kd=class extends J{};function Ld(a,b){return F(a,2,Q,b)}var R=class extends J{},Q=[1,2,5,6,7,8,9,10,11,13,14,15,16,17,18,19,20];function Md(a){return I(a,ad,2,Nd)}var Od=class extends J{},Pd=Wb(Od),Nd=[1,2];class Qd{constructor(a,b){this.data=a;this.channel=b}};var Rd=Promise;function Sd(a){const b=new MessageChannel;Td(b.port1,a);return b}function Ud(a,b){Td(a,b);return new Vd(a)}class Vd{constructor(a){this.g=a}send(a,b,c=[]){b=Sd(b);this.g.postMessage(a,[b.port2].concat(c))}C(a,b){return new Rd(c=>{this.send(a,c,b)})}}function Td(a,b){b&&(a.onmessage=c=>{var d=c.data;c=Ud(c.ports[0]);b(new Qd(d,c))})};var Wd=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?a=>a&&AsyncContext.Snapshot.wrap(a):a=>a;function Xd(a,b){a.l(b);a.h<100&&(a.h++,b.next=a.g,a.g=b)}class Yd{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 Zd(){var a=$d;let b=null;a.g&&(b=a.g,a.g=a.g.next,a.g||(a.h=null),b.next=null);return b}class ae{constructor(){this.h=this.g=null}add(a,b){const c=be.get();c.set(a,b);this.h?this.h.next=c:this.g=c;this.h=c}}var be=new Yd(()=>new ce,a=>a.reset());class ce{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 de,ee=!1,$d=new ae,ge=(a,b)=>{de||fe();ee||(de(),ee=!0);$d.add(a,b)},fe=()=>{const a=Promise.resolve(void 0);de=()=>{a.then(he)}};function he(){let a;for(;a=Zd();){try{a.h.call(a.g)}catch(b){ja(b)}Xd(be,a)}ee=!1};function ie(){};function S(a){this.g=0;this.T=void 0;this.l=this.h=this.j=null;this.v=this.B=!1;if(a!=ie)try{const b=this;a.call(void 0,function(c){je(b,2,c)},function(c){je(b,3,c)})}catch(b){je(this,3,b)}}function ke(){this.next=this.context=this.h=this.l=this.g=null;this.j=!1}ke.prototype.reset=function(){this.context=this.h=this.l=this.g=null;this.j=!1};var le=new Yd(function(){return new ke},function(a){a.reset()});function me(a,b,c){const d=le.get();d.l=a;d.h=b;d.context=c;return d}
44
- function ne(){let a,b;const c=new S(function(d,e){a=d;b=e});return new oe(c,a,b)}S.prototype.then=function(a,b,c){return pe(this,Wd(typeof a==="function"?a:null),Wd(typeof b==="function"?b:null),c)};S.prototype.$goog_Thenable=!0;function qe(a,b){b=Wd(b);b=me(b,b);b.j=!0;re(a,b)}S.prototype.cancel=function(a){if(this.g==0){const b=new T(a);ge(function(){se(this,b)},this)}};
45
- function se(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 h=c.h;h&&(h.j||(d++,h.g==a&&(e=h),!(e&&d>1)));h=h.next)e||(f=h);e&&(c.g==0&&d==1?se(c,b):(f?(d=f,d.next==c.l&&(c.l=d),d.next=d.next.next):te(c),ue(c,e,3,b)))}a.j=null}else je(a,3,b)}function re(a,b){a.h||a.g!=2&&a.g!=3||ve(a);a.l?a.l.next=b:a.h=b;a.l=b}
46
- function pe(a,b,c,d){const e=me(null,null,null);e.g=new S(function(f,h){e.l=b?function(g){try{const k=b.call(d,g);f(k)}catch(k){h(k)}}:f;e.h=c?function(g){try{const k=c.call(d,g);k===void 0&&g instanceof T?h(g):f(k)}catch(k){h(k)}}:h});e.g.j=a;re(a,e);return e.g}S.prototype.ma=function(a){this.g=0;je(this,2,a)};S.prototype.na=function(a){this.g=0;je(this,3,a)};
47
- function je(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 S){re(d,me(e||ie,f||null,a));var h=!0}else{if(d)try{var g=!!d.$goog_Thenable}catch(k){g=!1}else g=!1;if(g)d.then(e,f,a),h=!0;else{g=typeof d;if(g=="object"&&d!=null||g=="function")try{const k=d.then;if(typeof k==="function"){we(d,k,e,f,a);h=!0;break a}}catch(k){f.call(a,k);h=!0;break a}h=!1}}}h||(a.T=c,a.g=b,a.j=null,ve(a),b!=3||c instanceof T||xe(a,c))}}
48
- function we(a,b,c,d,e){function f(k){g||(g=!0,d.call(e,k))}function h(k){g||(g=!0,c.call(e,k))}let g=!1;try{b.call(a,h,f)}catch(k){f(k)}}function ve(a){a.B||(a.B=!0,ge(a.la,a))}function te(a){let b=null;a.h&&(b=a.h,a.h=b.next,b.next=null);a.h||(a.l=null);return b}S.prototype.la=function(){let a;for(;a=te(this);)ue(this,a,this.g,this.T);this.B=!1};
49
- function ue(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,ye(b,c,d);else try{b.j?b.l.call(b.context):ye(b,c,d)}catch(e){ze.call(null,e)}Xd(le,b)}function ye(a,b,c){b==2?a.l.call(a.context,c):a.h&&a.h.call(a.context,c)}function xe(a,b){a.v=!0;ge(function(){a.v&&ze.call(null,b)})}var ze=ja;function T(a){ia.call(this,a)}ha(T,ia);T.prototype.name="cancel";function oe(a,b,c){this.promise=a;this.resolve=b;this.reject=c};let Ae=1,Be=new WeakMap;function Ce(a,b,c){var d=De;a.h.has(b);d(b,c)}var Fe=class extends P{constructor(){super();this.h=new Set}signal(){const a=new Ee;this.h.add(a);gd(this,ea(fd,a));return a}};function De(a,b){return new Promise(c=>{Ge(()=>{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){ja(f)}for(const d of a.A)d.resolve(b);a.A.clear();c()})})}function jd(a,b,c){const d=Ae++;Ge(()=>{He(a,d,b,c)});return d}
50
- function He(a,b,c,d){if(!a.s)if(d){if(!d.s){const e=()=>{Ge(()=>{a.o.delete(b);const f=Be.get(d);f&&ua(f,e)})};a.o.set(b,{I:b,slot:c,F:e});Ie(d,e)}}else a.o.set(b,{I:b,slot:c,F:()=>a.o.delete(b)})}
51
- var Ee=class extends P{constructor(){super();this.L=!1;this.o=new Map;this.A=new Set;this.P=!1}detach(a){Ge(()=>{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=ne();Ge(()=>{if(this.s)c.reject(new T("Signal initially disposed"));else if(b&&b.s)c.reject(new T("Owner initially disposed"));else if(a&&this.L&&this.P)c.resolve(this.ea);else if(this.A.add(c),qe(c.promise,()=>{this.A.delete(c)}),b){const d=()=>{c.reject(new T("Owner asynchronously disposed"))};
52
- qe(c.promise,()=>{const e=Be.get(b);e&&ua(e,d)});Ie(b,d)}});return c.promise}G(){super.G();Ge(()=>{for(const {F:a}of this.o.values())a();this.o.clear();for(const a of this.A)a.reject(new T("Signal asynchronously disposed"));this.A.clear()})}};const Je=[];let Ke=!1;function Ge(a){Je.push(a);Le()}async function Le(){if(!Ke)try{Ke=!0;let a=Me(0);for(;a<Je.length;)await Promise.resolve(),a=Me(a)}catch(a){ja(a)}finally{Je.length=0,Ke=!1}}
53
- function Me(a){const b=a+100;for(;a<b&&a<Je.length;)try{Je[a++]()}catch(c){ja(c)}return a}function Ie(a,b){if(a.s)b();else{var c=Be.get(a);if(c)c.push(b);else{const d=[b];Be.set(a,d);gd(a,()=>{for(const e of[...d])e();Be.delete(a)})}}};function U(a){var b=new Od;a=F(b,1,Nd,a);return{content:JSON.stringify(Bb(a))}}const Ne=new Fe;function Oe(a,b){const c=Ne.signal();return{channel:Ud(a,d=>{const e=b(d.data);Ce(Ne,c,{content:e,ka:d})}),signal:c}};let Ub;var V=class extends J{};var W=class extends J{};var Qe=class extends J{h(){return I(this,V,2,Pe)}g(){return Hb(this,V,2,Pe)}j(){return I(this,W,3,Pe)}l(){return Hb(this,W,3,Pe)}},Pe=[2,3];var Re=Wb(class extends J{});var Se=Wb(class extends J{}),Te=[1,2];var Ue=({destination:a,origin:b,ra:c,Y:d="ZNWN1d",onMessage:e})=>{if(b==="*")throw Error("Sending to wildcard origin not allowed.");const f=Sd(e);a.postMessage(c?{n:d,t:c}:d,b,[f.port2]);return Ud(f.port1,e)};function Ve(a,b,c){const d=new Fe,e=d.signal();a=Ue({destination:window.parent,origin:b,Y:a,onMessage:f=>{const h=Pd(f.data.content);A(h,Nd)===2&&Ce(d,e,{content:Md(h),ka:f,messagePort:f.data.messagePort})}});return new We(e,a,c)}async function kd(a){var b=X;var c=new R;var d=new Fd;c=F(c,19,Q,d);a=await b(a,U(c));let e;return(e=Md(Pd(a.data.content)))==null?void 0:I(e,$c,20,O)}
54
- async function ld(a){var b=X;var c=new R;var d=new vd;c=F(c,17,Q,d);a=await b(a,U(c));let e;return(e=Md(Pd(a.data.content)))==null?void 0:I(e,Vc,18,O)}async function md(a,b){var c=X,d=new R;b=F(d,8,Q,b);await c(a,U(b))}async function nd(a){var b=X;var c=new R;var d=new Ed;c=F(c,18,Q,d);a=await b(a,U(c));let e;return(e=Md(Pd(a.data.content)))==null?void 0:I(e,Zc,19,O)}async function od(a){var b=X;var c=new R;var d=new ud;c=F(c,11,Q,d);await b(a,U(c))}
55
- async function pd(a,b){var c=X,d=new R;b=F(d,14,Q,b);await c(a,U(b))}async function qd(a,b){var c=X,d=new R;b=F(d,15,Q,b);await c(a,U(b))}async function Xe(a){await a.h()}
56
- async function X(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=Pd(b)}catch(d){N(L,"The ControlMessage can't be deserialized."+` ${JSON.stringify(b)}. ${JSON.stringify(d)}`)}(b=Md(c))||N(L,"MeetToAddonMessage field on ControlMessage is falsy."+
57
- ` ${JSON.stringify(b)}`);b=b==null?void 0:I(b,fc,10,O);if((b==null?void 0:H(b,1))!==void 0)throw new K(Jc(H(b,1)));return a}async function Ye(a,b,c){var d=X,e=new R;b=F(e,1,Q,b);d=await d(a,U(b));a=d.data.messagePort;var f;(d=(f=Md(Pd(d.data.content)))==null?void 0:I(f,dc,1,O))!=null?f=d:(f=new dc,f=B(f,1,v(0),0));return{channel:a?Oe(a,c):void 0,response:f}}async function Ze(a){const b=xd(),{channel:c,response:d}=await Ye(a,b,e=>Se(e));if(!c)throw new K(Kc(d));return c}
58
- async function $e(a){var b=X;var c=new R;var d=new Kd;c=F(c,5,Q,d);await b(a,U(c))}async function af(a){var b=X;var c=new R;var d=new Dd;c=F(c,6,Q,d);await b(a,U(c))}async function bf(a,b,c){var d=X,e=new R,f=new Gd;b=B(f,1,v(b),0);c=B(b,2,x(c),"");e=F(e,7,Q,c);await d(a,U(e))}async function cf(a,b){var c=X,d=new R;b=F(d,16,Q,b);await c(a,U(b))}
59
- class We extends P{constructor(a,b,c){super();this.U=a;this.channel=b;this.h=bc(async()=>{var d=this.channel,e=d.C;var f=new R;var h=new Hd;f=F(f,13,Q,h);await e.call(d,U(f))});a=Tb();sb(y(a,1));sb(y(a,2));sb(y(a,3));c=Ld(new R,Cd(Ad(a),c));this.channel.send(U(c));jd(this.U,async d=>{switch(A(d.content,O)){case 16:await Xe(this)}})}};let df;var ef=class{constructor(a){var b=df;this.h=a;this.g=b}delete(){throw Error("Not implemented.");}};var gf=class extends J{h(){return I(this,V,2,ff)}g(){return Hb(this,V,2,ff)}j(){return I(this,W,3,ff)}l(){return Hb(this,W,3,ff)}},ff=[2,3];var hf=class extends J{};var jf=class extends J{};var kf=class extends J{};var mf=class extends J{h(){return I(this,V,2,lf)}g(){return Hb(this,V,2,lf)}j(){return I(this,W,3,lf)}l(){return Hb(this,W,3,lf)}},lf=[2,3],nf=[5,6];var of=class extends J{};var pf=class extends J{},qf=[1,2,3];var rf=class extends Error{constructor(){super("Failed to create CoActivity: Connection refused - Meet refused to begin Live Sharing")}};var sf=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 tf(){const a=new Map,b={set(c,d){a.set(c,d);return b},D:()=>a};return b};function uf(a){if(a.g()){a=a.h().m;var b=a[p]|0;var c=Fb(a,b,1),d=Ra(c,!0);d!=null&&d!==c&&z(a,b,1,d);a=d;b=a==null?Ba():a;a=Uint8Array;Ea(Aa);c=b.g;if(c!=null&&!za(c))if(typeof c==="string"){wa.test(c)&&(c=c.replace(wa,ya));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 vf(a,b){b=wf(b);F(a,2,lf,b);return a}function xf(a,b){b=wf(b);F(a,2,ff,b);return a}
60
- function wf(a){var b=new V;return B(b,1,Ra(a.bytes,!1),Ba())}function yf(a){if(a.l()){a=a.j();var b,c,d=G(a,1),e=(c=(b=Mb(a,Xb,2))==null?void 0:Sb(b))!=null?c:0;c=a.m;let f=c[p]|0;const h=Fb(c,f,4);b=h==null||typeof h==="number"?h:h==="NaN"||h==="Infinity"||h==="-Infinity"?Number(h):void 0;b!=null&&b!==h&&z(c,f,4,b);return{mediaId:d,mediaPlayoutPosition:e,mediaPlayoutRate:b!=null?b:0,playbackState:zf.get(H(a,3))}}}function Af(a,b){b=Bf(b);F(a,3,lf,b);return a}
61
- function Cf(a,b){b=Bf(b);F(a,3,ff,b);return a}const zf=tf().set(0,"INVALID").set(1,"BUFFERING").set(2,"PLAY").set(3,"PAUSE").set(4,"ENDED").D(),Df=tf().set("INVALID",0).set("BUFFERING",1).set("PLAY",2).set("PAUSE",3).set("ENDED",4).D();
62
- function Bf(a){var b=new W;b=B(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=B(b,4,c,0);c=new Xb;c=B(c,1,tb(a.mediaPlayoutPosition),"0");b=Nb(b,2,c);a=Df.get(a.playbackState);return B(b,3,v(a),0)}function Ef({activityTitle:a}){var b=new kf;return Gb(b,4,x(a))}function Ff(a,b){var c=new jf;b=B(c,1,v(b.u),0);F(a,6,nf,b);return a}function Gf(a){var b=new hf;F(a,5,nf,b);return a};const Hf=tf().set("co-doing",1).set("co-watching",2).D();async function If(a,b,c){var d=b.C,e=new pf;var f=new of;f=B(f,1,x(a.activityTitle),"");var h=Hf.get(a.K);f=B(f,2,v(h),0);e=F(e,3,qf,f);d=await d.call(b,e,Re);let g;if((g=Rb(d))!=null&&g)return new Jf(a,b,c,Mb(d,Qe,2));throw new rf;}function Kf(a,b){const c=a.config.N(b);c&&!a.config.M(a.g,c)&&(a.g=c,a.j=Sb(b),a.v(a.g))}function Y(a,b){const {state:c,fa:d,context:e}=b(a.g);a.g=c;a.notify(a.g,e,d)}
63
- class Jf{constructor(a,b,c,d){this.l=a;this.h=b;this.config=c;this.v=Yb(e=>void this.l.O(e));Lf(this.h,e=>{const f=A(e,Te);switch(f){case 1:Kf(this,I(e,Qe,1,Te));break;case 2:case 0:console.warn(`IllegalMessage: ${f} - ${"Unhandled message"} - ${"Please raise a bug with the MeetJS team"}`)}});this.B=(new sf({da:1E3,ha:()=>{var e,f,h=(f=(e=this.l).ja)==null?void 0:f.call(e);if(this.g!==null){this.g={...this.g,...h};e=new pf;f=this.config;h=f.W;var g=new gf;g=B(g,1,tb(this.j),"0");f=h.call(f,g,this.g);
64
- e=F(e,1,qf,f);this.h.send(e)}}})).start();this.g=null;this.j=0;d&&Kf(this,d)}disconnect(){this.h.shutdown();this.B.shutdown()}notify(a,b,c){var d=c?Ef(c):void 0;c=this.config;var e=c.X;var f=new mf;f=B(f,1,tb(this.j),"0");d=Nb(f,4,d);a=e.call(c,d,a);a=this.config.V(a,b);b=this.h;c=b.send;e=new pf;a=F(e,2,qf,a);c.call(b,a)}};var Mf=class{constructor(a){this.g=a}broadcastStateUpdate(a){Y(this.g,()=>({state:a,context:{}}))}disconnect(){this.g.disconnect()}};function Nf(a,b){return a==null||b==null?!1:a.bytes.length===b.bytes.length&&a.bytes.every((c,d)=>c===b.bytes[d])};var Of=class{constructor(a){this.g=a}notifySwitchedToMedia(a,b,c){Y(this.g,()=>({state:{mediaId:b,mediaPlayoutRate:1,mediaPlayoutPosition:c,playbackState:"PLAY"},fa:{activityTitle:a},context:{u:1}}))}notifyPauseState(a,b){Y(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){Y(this.g,b=>{if(b==null)throw Error("Invalid before coWatchingState");return{state:{...b,mediaPlayoutPosition:a},
65
- context:{u:2}}})}notifyPlayoutRate(a){Y(this.g,b=>{if(b==null)throw Error("Invalid before coWatchingState");return{state:{...b,mediaPlayoutRate:a},context:{u:4}}})}notifyBuffering(a){Y(this.g,b=>{if(b==null)throw Error("Invalid before coWatchingState");return{state:{...b,mediaPlayoutPosition:a,playbackState:"BUFFERING"},context:{u:3}}})}notifyReady(a){Y(this.g,b=>{if(b==null)throw Error("Invalid before coWatchingState");return{state:{...b,mediaPlayoutPosition:a},context:{u:3}}})}disconnect(){this.g.disconnect()}};
66
- function Pf(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 Lf(a,b){const c=jd(a.signal,d=>{b(d)});a.o.push(c)}var Qf=class{constructor(a,b){this.channel=a;this.signal=b;this.o=[]}send(a){this.channel.send(JSON.stringify(Bb(a)))}async C(a,b){a=await this.channel.C(JSON.stringify(Bb(a)));return b(a.data)}shutdown(){this.o.forEach(a=>{this.signal.detach(a)})}};function Rf(a,b){var c=Sf;const d=a.signal(),e=a.signal();jd(b,f=>{const h=c(f)?d:e;Ce(a,h,f)},a);return{ia:d,ga:e}}function Tf(a,b,c,d=e=>e){jd(c,e=>{Ce(a,b,d(e))},a)};async function Uf(a,b){if(b)return a=await If({activityTitle:b.activityTitle,K:"co-watching",ja:()=>b.onCoWatchingStateQuery(),O:c=>{b.onCoWatchingStateChanged(c)}},a,{X:Af,W:Cf,V:Ff,N:yf,M:Pf}),new Of(a)}async function Vf(a,b){if(b)return a=await If({activityTitle:b.activityTitle,K:"co-doing",O:c=>{b.onCoDoingStateChanged(c)}},a,{X:vf,W:xf,V:Gf,N:uf,M:Nf}),new Mf(a)}
67
- async function Wf(a){const b=new Fe,c=b.signal();a=await a;Tf(b,c,a.signal,f=>f.content);const {ia:d,ga:e}=Rf(b,c);return{Z:new Qf(a.channel,d),aa:new Qf(a.channel,e)}}function Sf(a){a:switch(A(a,Te)){case 1:a=I(a,Qe,1,Te);break a;default:throw Error("CA Message arrived with no known content message set");}return a.g()};async function Xf(a,b){({Z:a}=await Wf(Ze(a.g)));b=await Vf(a,b);if(!b)throw Error("Failed to create co-doing session");return b}async function Yf(a,b){({aa:a}=await Wf(Ze(a.g)));b=await Uf(a,b);if(!b)throw Error("Failed to create co-watching session");return b};var Zf=class extends rd{async notifySidePanel(a){await bf(this.context.g,1,a)}async unloadSidePanel(){await $e(this.context.g)}async loadSidePanel(){await af(this.context.g)}};var $f=class extends rd{async setAddonStartingState(a){if(a===null)throw new K(tc("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+
68
- +!!a.additionalData)throw new K(sc);if(Object.keys(a).length===0)throw new K(rc);var b=[];b.push(Qc(Pc(Nc(1),a.sidePanelUrl),a.additionalData));a=this.context.g;var c=new Jd,d=c.setAddonStartingState,e=new Id;b=Ob(e,b);await cf(a,d.call(c,b))}};var ag=class extends rd{async notifyMainStage(a){await bf(this.context.g,2,a)}};var bg=class{constructor(a){a=a.cloudProjectNumber;const b=td();if(b.cloudProjectNumber!==a)throw new K(mc);const c=b.S,d=b.ba;let e;df=(e=df)!=null?e:Ve(d,c,a);this.g=new ef(b)}async createMainStageClient(){var a=this.g;if(a.h.frameType!==2)throw new K(hc);return await Promise.resolve(new Zf(a))}async createSidePanelClient(){var a=this.g;if(a.h.frameType!==1)throw new K(ic);return await Promise.resolve(new ag(a))}async createCoWatchingClient(a){return await Yf(this.g,a)}async createCoDoingClient(a){return await Xf(this.g,
69
- a)}async createRoomsStandaloneClient(){var a=this.g;if(a.h.frameType!==2)throw new K(hc);return await Promise.resolve(new $f(a))}};let cg=null;for(var dg={addon:{getFrameType:function(){a:{var a=td().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(tc("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(cg&&td().S!=="integration.test.google.com")throw new K(Dc);
70
- return cg=new bg(a)}}},eg=["meet"],Z=l,fg;eg.length&&(fg=eg.shift());)eg.length||dg===void 0?Z[fg]&&Z[fg]!==Object.prototype[fg]?Z=Z[fg]:Z=Z[fg]={}:Z[fg]=dg;}).apply(topLevel);export const meet = topLevel.meet;
7
+ var ea=this||self;function fa(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 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 h=Array(arguments.length-2),g=2;g<arguments.length;g++)h[g-2]=arguments[g];return b.prototype[e].apply(d,h)}};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 l(a){ea.setTimeout(()=>{throw a;},0)};function ja(a,b){b=Array.prototype.indexOf.call(a,b,void 0);b>=0&&Array.prototype.splice.call(a,b,1)};function ka(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 la=/[-_.]/g,ma={"-":"+",_:"/",".":"="};function na(a){return ma[a]||""}function m(a){return a!=null&&a instanceof Uint8Array}var oa={};function pa(){return qa||(qa=new ra(null,oa))}var ra=class{constructor(a,b){sa(b);this.g=a;if(a!=null&&a.length===0)throw Error("ByteString should be constructed with non-empty values");}};let qa;function sa(a){if(a!==oa)throw Error("illegal external caller");};function ta(a,b){a.__closure__error__context__984382||(a.__closure__error__context__984382={});a.__closure__error__context__984382.severity=b};let ua=void 0;function va(a){a=Error(a);ta(a,"warning");return a}function wa(a){if(a!=null){var b;var c=(b=ua)!=null?b:ua={};b=c[a]||0;b>=5||(c[a]=b+1,a=Error(),ta(a,"incident"),l(a))}};function xa(a,b=!1){return b&&Symbol.for&&a?Symbol.for(a):a!=null?Symbol(a):Symbol()}var ya=xa(),za=xa(),Aa=xa();const n=xa("jas",!0);var Ba={};function Ca(a){return a!==null&&typeof a==="object"&&!Array.isArray(a)&&a.constructor===Object}function Da(a,b){if(a!=null)if(typeof a==="string")a=a?new ra(a,oa):pa();else if(a.constructor!==ra)if(m(a))a=a.length?new ra(new Uint8Array(a),oa):pa();else{if(!b)throw Error();a=void 0}return a}var Ea;const Fa=[];Fa[n]=55;Ea=Object.freeze(Fa);function Ga(a){if(a&2)throw Error();}var Ha=Object.freeze({});function Ia(){return typeof BigInt==="function"};function Ja(a){a.pa=!0;return a};var Ka=Ja(a=>typeof a==="number"),La=Ja(a=>typeof a==="string"),Ma=Ja(a=>typeof a==="boolean");var Na=typeof ea.BigInt==="function"&&typeof ea.BigInt(0)==="bigint";var Ta=Ja(a=>Na?a>=Oa&&a<=Pa:a[0]==="-"?Qa(a,Ra):Qa(a,Sa));const Ra=Number.MIN_SAFE_INTEGER.toString(),Oa=Na?BigInt(Number.MIN_SAFE_INTEGER):void 0,Sa=Number.MAX_SAFE_INTEGER.toString(),Pa=Na?BigInt(Number.MAX_SAFE_INTEGER):void 0;function Qa(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 p=0,r=0;function Ua(a){const b=a>>>0;p=b;r=(a-b)/4294967296>>>0}function Va(a){if(a<0){Ua(-a);const [b,c]=Wa(p,r);p=b>>>0;r=c>>>0}else Ua(a)}function Xa(a,b){b>>>=0;a>>>=0;if(b<=2097151)var c=""+(4294967296*b+a);else Ia()?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+Ya(c)+Ya(a));return c}
8
+ function Ya(a){a=String(a);return"0000000".slice(a.length)+a}function Wa(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]};const $a=typeof BigInt==="function"?BigInt.asIntN:void 0,ab=Number.isSafeInteger,bb=Number.isFinite,cb=Math.trunc,db=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;function eb(a){switch(typeof a){case "bigint":return!0;case "number":return bb(a);case "string":return db.test(a);default:return!1}}function u(a){if(a!=null){if(!bb(a))throw va("enum");a|=0}return a}function fb(a){if(a!=null){if(typeof a==="string"&&a)a=+a;else if(typeof a!=="number")return;bb(a)}}
9
+ function gb(a){if(a!=null)a:{if(!eb(a))throw va("int64");switch(typeof a){case "string":a=hb(a);break a;case "bigint":var b=a=$a(64,a);if(La(b)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(b))throw Error(String(b));}else if(Ka(b)&&!Number.isSafeInteger(b))throw Error(String(b));Na?a=BigInt(a):a=Ma(a)?a?"1":"0":La(a)?a.trim()||"0":String(a);break a;default:a=ib(a)}}return a}
10
+ function ib(a){a=cb(a);if(!ab(a)){Va(a);var b=p,c=r;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:Xa(b,c);a=typeof b==="number"?a?-b:b:a?"-"+b:b}return a}
11
+ function hb(a){var b=cb(Number(a));if(ab(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)Va(Number(a));else if(Ia())a=BigInt(a),p=Number(a&BigInt(4294967295))>>>0,r=Number(a>>BigInt(32)&BigInt(4294967295));else{b=+(a[0]==="-");r=p=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));r*=1E6;p=p*1E6+f;p>=4294967296&&
12
+ (r+=Math.trunc(p/4294967296),r>>>=0,p>>>=0)}if(b){const [d,e]=Wa(p,r);p=d;r=e}}a=p;b=r;if(b&2147483648)if(Ia())a=""+(BigInt(b|0)<<BigInt(32)|BigInt(a>>>0));else{const [c,d]=Wa(a,b);a="-"+Xa(c,d)}else a=Xa(a,b)}return a}function v(a){if(a!=null&&typeof a!=="string")throw Error();return a}function jb(a,b,c){if(a!=null&&typeof a==="object"&&a.H===Ba)return a;if(Array.isArray(a)){var d=a[n]|0,e=d;e===0&&(e|=c&32);e|=c&2;e!==d&&(a[n]=e);return new b(a)}};function kb(a){return a};function lb(a,b,c,d,e){d=d?!!(b&32):void 0;const f=[];let h=a.length,g,k,w,C=!1;if(b&64){if(b&256?(h--,g=a[h],k=h):(k=4294967295,g=void 0),!(e||b&512)){C=!0;var q;w=((q=mb)!=null?q:kb)(g?k- -1:b>>15&1023||536870912,-1,a,g);k=w+-1}}else k=4294967295,b&1||(g=h&&a[h-1],Ca(g)?(h--,k=h,w=0):g=void 0);q=void 0;for(let t=0;t<h;t++){let D=a[t];if(D!=null&&(D=c(D,d))!=null)if(t>=k){var G=void 0;((G=q)!=null?G:q={})[t- -1]=D}else f[t]=D}if(g)for(let t in g)if(a=g[t],a!=null&&(a=c(a,d))!=null)if(G=+t,G<w)f[G+
13
+ -1]=a;else{let D;((D=q)!=null?D:q={})[t]=a}q&&(C?f.push(q):f[k]=q);e&&(f[n]=b&33522241|(q!=null?290:34));return f}
14
+ function nb(a){switch(typeof a){case "number":return Number.isFinite(a)?a:""+a;case "bigint":return Ta(a)?Number(a):""+a;case "boolean":return a?1:0;case "object":if(Array.isArray(a)){var b=a[n]|0;return a.length===0&&b&1?void 0:lb(a,b,nb,!1,!1)}if(a.H===Ba)return ob(a);if(a instanceof ra)return b=a.g,b==null?"":typeof b==="string"?b:a.g=ka(b);if(m(a))return m(a)&&wa(Aa),ka(a);return}return a}let mb;function ob(a){a=a.m;return lb(a,a[n]|0,nb,void 0,!1)};function pb(){wa(za)};function qb(a,b){if(typeof a!=="object")return a;if(Array.isArray(a)){const d=a[n]|0;if(a.length===0&&d&1)return;if(d&2)return a;var c;if(c=b)c=d===0||!!(d&32)&&!(d&64||!(d&16));return c?(a[n]|=34,d&4&&Object.freeze(a),a):lb(a,d,qb,b!==void 0,!0)}if(a.H===Ba)return b=a.m,c=b[n]|0,c&2?a:lb(b,c,qb,!0,!0);if(a instanceof ra)return a;if(m(a))return m(a)&&wa(Aa),new Uint8Array(a)}function rb(a){var b=a.m;if(!((b[n]|0)&2))return a;a=new a.constructor(lb(b,b[n]|0,qb,!0,!0));b=a.m;b[n]&=-3;return a};function x(a,b){a=a.m;return sb(a,a[n]|0,b)}function sb(a,b,c){if(c===-1)return null;const d=c+(b&512?0:-1),e=a.length-1;if(d>=e&&b&256)return a[e][c];if(d<=e)return a[d]}function tb(a,b,c){const d=a.m;let e=d[n]|0;Ga(e);y(d,e,b,c);return a}function y(a,b,c,d){const e=b&512?0:-1,f=c+e;var h=a.length-1;if(f>=h&&b&256)return a[h][c]=d,b;if(f<=h)return a[f]=d,b;d!==void 0&&(h=b>>15&1023||536870912,c>=h?d!=null&&(a[h+e]={[c]:d},b|=256,a[n]=b):a[f]=d);return b}
15
+ function ub(a,b,c,d){c=z(a,d)===c?c:-1;return vb(a,b,c)!==void 0}function wb(a){return!!(2&a)&&!!(4&a)||!!(1024&a)}function A(a,b,c,d){const e=a.m;let f=e[n]|0;Ga(f);y(e,f,b,(d==="0"?Number(c)===0:c===d)?void 0:c);return a}function z(a,b){a=a.m;return xb(yb(a),a,a[n]|0,b)}function yb(a){let b;return(b=a[ya])!=null?b:a[ya]=new Map}function xb(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 h=d[f];sb(b,c,h)!=null&&(e!==0&&(c=y(b,c,e)),e=h)}a.set(d,e);return e}
16
+ function vb(a,b,c){a=a.m;let d=a[n]|0;const e=sb(a,d,c);b=jb(e,b,d);b!==e&&b!=null&&y(a,d,c,b);return b}function zb(a,b,c){b=vb(a,b,c);if(b==null)return b;a=a.m;let d=a[n]|0;if(!(d&2)){const e=rb(b);e!==b&&(b=e,y(a,d,c,b))}return b}function Ab(a,b,c){c==null&&(c=void 0);return tb(a,b,c)}
17
+ function B(a,b,c,d){d==null&&(d=void 0);a:{const h=a.m;var e=h[n]|0;Ga(e);if(d==null){var f=yb(h);if(xb(f,h,e,c)===b)f.set(c,0);else break a}else{f=h;const g=yb(f),k=xb(g,f,e,c);k!==b&&(k&&(e=y(f,e,k)),g.set(c,b))}y(h,e,b,d)}return a}
18
+ function Bb(a,b){const c=a.m;let d=c[n]|0;Ga(d);if(b==null)return y(c,d,1),a;let e=b[n]|0,f=e;const h=wb(e),g=h||Object.isFrozen(b);let k=!0,w=!0;for(let q=0;q<b.length;q++){var C=b[q];h||(C=!!((C.m[n]|0)&2),k&&(k=!C),w&&(w=C))}h||(e=k?13:5,e=w?e|16:e&-17);g&&e===f||(b=Array.prototype.slice.call(b),f=0,e=Cb(e,d),e=Db(e,d,!0));e!==f&&(b[n]=e);y(c,d,1,b);return a}function Cb(a,b){a=(2&b?a|2:a&-3)|32;return a&=-1025}function Db(a,b,c){32&b&&c||(a&=-33);return a}
19
+ function Eb(a){a=x(a,1);a=a==null||typeof a==="boolean"?a:typeof a==="number"?!!a:void 0;return a!=null?a:!1}function Fb(a){a=x(a,1);a!=null&&(typeof a==="bigint"?Ta(a)?a=Number(a):(a=$a(64,a),a=Ta(a)?Number(a):String(a)):a=eb(a)?typeof a==="number"?ib(a):hb(a):void 0);return a!=null?a:0}function E(a,b){a=x(a,b);a=a==null||typeof a==="string"?a:void 0;return a!=null?a:""}function F(a,b){a=x(a,b);a=a==null?a:bb(a)?a|0:void 0;return a!=null?a:0}
20
+ function H(a,b,c,d){c=z(a,d)===c?c:-1;return zb(a,b,c)};function Gb(){var a=Hb||(Hb=Ib("[1,2,0]"));a=rb(a);a=tb(a,4,v("dev-734698602"));const b=a.m,c=b[n]|0;return c&2?a:new a.constructor(lb(b,c,qb,!0,!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[n]|0;8192&b||!(64&b)||2&b||pb();if(b&1024)throw Error("farr");if(b&64){b&16384||(a[n]=b|16384);var c=a;break a}var d=a;b|=64;var e=d.length;if(e){var f=e-1;e=d[f];if(Ca(e)){b|=256;const h=b&512?0:-1;f-=h;if(f>=1024)throw Error("pvtlmt");for(c in e){const g=+c;if(g<f)d[g+h]=e[c],delete e[c];else break}b=b&-33521665|(f&1023)<<15}}}a[n]=b|16384;c=a}this.m=c}toJSON(){return ob(this)}};
22
+ I.prototype.H=Ba;I.prototype.toString=function(){return this.m.toString()};function Jb(a){return b=>{if(b==null||b=="")b=new a;else{b=JSON.parse(b);if(!Array.isArray(b))throw Error("dnarr");b[n]|=32;b=new a(b)}return b}};var Ib=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[n]|=34;return new a(b)}}(class extends I{});var Kb=class extends I{};function Lb(a){var b=new Mb(500);let c=0,d;return(...e)=>{Nb(b)?a(...e):(d=()=>void a(...e),c||(c=setTimeout(()=>{c=0;let f;(f=d)==null||f()},Ob(b))))}}function Pb(a){var b=new Mb(100),c=Promise.resolve();return(...d)=>Nb(b)?a(...d):c};function Nb(a){return Qb(a,a.index)>=a.g?(a.h[a.index]=Date.now(),a.index=(a.index+1)%1,!0):!1}function Ob(a){const b=a.g;a=Qb(a,a.index);return a>=b?0:b-a}function Qb(a,b){let c;return Date.now()-((c=a.h[b])!=null?c:-1*a.g)}var Mb=class{constructor(a){this.g=a;this.h=[];this.index=0}};var Rb=class extends I{},Sb=[2,3];var Tb=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."},Ub={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)."},
23
+ Vb={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."},Wb={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."},Xb={errorType:"NotSupportedInStandalone",
24
+ message:"This method is not supported in standalone mode.",i:"Do not call this method in standalone mode."},Yb={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."},Zb={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)."},
25
+ $b={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",
26
+ 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",
27
+ 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."},dc={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."},
28
+ ec={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."},fc={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."},
29
+ gc=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`,
30
+ 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",
31
+ 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.",
32
+ 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",
33
+ 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."},
34
+ 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."};
35
+ 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 Xb;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}}
36
+ function xc(a){let b;var c=(b=F(a,1))!=null?b:0;a=yc(z(a,Sb));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}.`,
37
+ 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.`,
38
+ 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({...Ub,message:`${Ub.message}: ${a}. In URL ${b}`})};function Ac(a){var b=new Bc;return A(b,1,u(a),0)}function Cc(a,b){return A(a,2,v(b),"")}function Dc(a,b){return A(a,3,v(b),"")}var Bc=class extends I{getFrameType(){return F(this,1)}};function Ec(a){var b=a.m[n]|0,c=b,d=!(2&b),e=Bc;b=void 0===Ha?2:4;a=a.m;var f=!!(2&c);const h=f?1:b;d&&(d=!f);b=sb(a,c,1);b=Array.isArray(b)?b:Ea;var g=b[n]|0;f=!!(4&g);if(!f){var k=g;k===0&&(k=Cb(k,c));g=b;k|=1;var w=c;const C=!!(2&k);C&&(w|=2);let q=!C,G=!0,t=0,D=0;for(;t<g.length;t++){const Za=jb(g[t],e,w);if(Za instanceof e){if(!C){const hc=!!((Za.m[n]|0)&2);q&&(q=!hc);G&&(G=hc)}g[D++]=Za}}D<t&&(g.length=D);k|=4;k=G?k|16:k&-17;k=q?k|8:k&-9;g[n]=k;C&&Object.freeze(g);g=k}if(d&&!(8&g||!b.length&&
39
+ (h===1||h===4&&32&g))){wb(g)&&(b=Array.prototype.slice.call(b),g=Cb(g,c),c=y(a,c,1,b));d=b;e=g;for(g=0;g<d.length;g++)k=d[g],w=rb(k),k!==w&&(d[g]=w);e|=8;e=d.length?e&-17:e|16;g=d[n]=e}h===1||h===4&&32&g?wb(g)||(c=g,a=!!(32&g),g|=!b.length||16&g&&(!f||a)?2:1024,g!==c&&(b[n]=g),Object.freeze(b)):(h===2&&wb(g)&&(b=Array.prototype.slice.call(b),g=Cb(g,c),g=Db(g,c,!1),b[n]=g,c=y(a,c,1,b)),wb(g)||(a=g,g=Db(g,c,!1),g!==a&&(b[n]=g)));return b}function Fc(a){var b=new Gc;return Bb(b,a)}var Gc=class extends I{};var Hc=class extends I{};var Ic=class extends I{};var Jc=class extends I{};var Kc=class extends I{};var Lc=class extends I{};var Mc=class extends I{getMeetPlatformInfo(){return zb(this,Kc,1)}};var Nc=class extends I{getMeetingInfo(){return zb(this,Lc,1)}};var Oc=class extends I{},N=[1,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21];var Pc=class extends I{};var Qc=class extends I{};var Rc=new Map([[2,"MAIN_STAGE"],[1,"SIDE_PANEL"]]),Sc=new Map([[0,"UNKNOWN"],[1,"OPEN_ADDON"],[2,"START_ACTIVITY"],[3,"JOIN_ACTIVITY"]]);function Tc(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 Uc(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 Vc({J:a,R:b}){if(a===null)throw new J(gc("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!==
40
+ "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(dc);if(Object.keys(a).length===0)throw new J(cc);}}function Wc(a){const b=[];b.push(Dc(Cc(Ac(2),a.mainStageUrl),a.additionalData));b.push(Dc(Cc(Ac(1),a.sidePanelUrl),a.additionalData));return b}
41
+ var ed=class extends O{constructor(a){super();this.context=a;this.h={};Xc(this.context.g.U,b=>{switch(z(b.content,N)){case 7:const d=this.h.frameToFrameMessage;b=H(b.content,Jc,7,N);if(d&&b){var c=F(b,1);c=Rc.get(c);if(c===void 0)throw Error("Unknown frame type.");d({originator:c,payload:E(b,2)})}}})}async getMeetingInfo(){const a=await Yc(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?
42
+ a:0;let c;return(c=Sc.get(b))!=null?c:"UNKNOWN"}async getActivityStartingState(){var a=zb(await Zc(this.context.g),Gc,1);const b=a==null?void 0:Ec(a).find(c=>c.getFrameType()===2);a=a==null?void 0:Ec(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){Vc({J:a,R:!0});var b=Wc(a);a=$c;var c=this.context.g;var d=new Pc;b=Fc(b);d=Ab(d,1,b);await a(c,
43
+ d)}on(a,b){this.h[a]=b}async getMeetPlatformInfo(){const a=await ad(this.context.g);return{isMeetHardware:Eb(a.getMeetPlatformInfo())}}async closeAddon(){await bd(this.context.g)}async startActivity(a){Vc({J:a,R:!1});const b=new Qc;a&&(a=Wc(a),a=Fc(a),Ab(b,1,a));await cd(this.context.g,b)}async endActivity(a){var b=dd,c=this.context.g,d=new Hc;a=A(d,1,u(a==="aab61ee0-51b4-475d-aa4d-849f2498640d"?999:0),0);await b(c,a)}};var fd=Jb(class extends I{getFrameOpenReason(){return F(this,5)}});function gd(){const 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(Yb):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(Zb);(d=E(b,2))||zc("meet_control_channel_name",a);const e=E(b,4);e||zc("addon_cloud_project_number",a);let f;return{ca:(f=b.getFrameOpenReason())!=null?f:0,frameType:c,ba:d,cloudProjectNumber:e,S:E(b,
44
+ 3)||"https://meet.google.com"}};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 B(a,1,md,b)}var ld=class extends I{},md=[1,2];function nd(a){var b=new od;return Ab(b,2,a)}function pd(a,b){return A(a,3,v(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 Ab(this,1,a)}};var xd=class extends I{};function yd(a,b){return B(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 H(a,Oc,2,Ad)}var Bd=class extends I{},Cd=Jb(Bd),Ad=[1,2];class Dd{constructor(a,b){this.data=a;this.channel=b}};var Ed=Promise;function Fd(a){const b=new MessageChannel;Gd(b.port1,a);return b}function Hd(a,b){Gd(a,b);return new Id(a)}class Id{constructor(a){this.g=a}send(a,b,c=[]){b=Fd(b);this.g.postMessage(a,[b.port2].concat(c))}C(a,b){return new Ed(c=>{this.send(a,c,b)})}}function Gd(a,b){b&&(a.onmessage=c=>{var d=c.data;c=Hd(c.ports[0]);b(new Dd(d,c))})};var Jd=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?a=>a&&AsyncContext.Snapshot.wrap(a):a=>a;function Kd(a,b){a.l(b);a.h<100&&(a.h++,b.next=a.g,a.g=b)}class Ld{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 Md(){var a=Nd;let b=null;a.g&&(b=a.g,a.g=a.g.next,a.g||(a.h=null),b.next=null);return b}class Od{constructor(){this.h=this.g=null}add(a,b){const c=Pd.get();c.set(a,b);this.h?this.h.next=c:this.g=c;this.h=c}}var Pd=new Ld(()=>new Qd,a=>a.reset());class Qd{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 Rd,Sd=!1,Nd=new Od,Ud=(a,b)=>{Rd||Td();Sd||(Rd(),Sd=!0);Nd.add(a,b)},Td=()=>{const a=Promise.resolve(void 0);Rd=()=>{a.then(Vd)}};function Vd(){let a;for(;a=Md();){try{a.h.call(a.g)}catch(b){l(b)}Kd(Pd,a)}Sd=!1};function Wd(){};function R(a){this.g=0;this.T=void 0;this.l=this.h=this.j=null;this.v=this.B=!1;if(a!=Wd)try{const b=this;a.call(void 0,function(c){Xd(b,2,c)},function(c){Xd(b,3,c)})}catch(b){Xd(this,3,b)}}function Yd(){this.next=this.context=this.h=this.l=this.g=null;this.j=!1}Yd.prototype.reset=function(){this.context=this.h=this.l=this.g=null;this.j=!1};var Zd=new Ld(function(){return new Yd},function(a){a.reset()});function $d(a,b,c){const d=Zd.get();d.l=a;d.h=b;d.context=c;return d}
45
+ 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,Jd(typeof a==="function"?a:null),Jd(typeof b==="function"?b:null),c)};R.prototype.$goog_Thenable=!0;function de(a,b){b=Jd(b);b=$d(b,b);b.j=!0;ee(a,b)}R.prototype.cancel=function(a){if(this.g==0){const b=new S(a);Ud(function(){fe(this,b)},this)}};
46
+ 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 h=c.h;h&&(h.j||(d++,h.g==a&&(e=h),!(e&&d>1)));h=h.next)e||(f=h);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 Xd(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}
47
+ function ce(a,b,c,d){const e=$d(null,null,null);e.g=new R(function(f,h){e.l=b?function(g){try{const k=b.call(d,g);f(k)}catch(k){h(k)}}:f;e.h=c?function(g){try{const k=c.call(d,g);k===void 0&&g instanceof S?h(g):f(k)}catch(k){h(k)}}:h});e.g.j=a;ee(a,e);return e.g}R.prototype.ma=function(a){this.g=0;Xd(this,2,a)};R.prototype.na=function(a){this.g=0;Xd(this,3,a)};
48
+ function Xd(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,$d(e||Wd,f||null,a));var h=!0}else{if(d)try{var g=!!d.$goog_Thenable}catch(k){g=!1}else g=!1;if(g)d.then(e,f,a),h=!0;else{g=typeof d;if(g=="object"&&d!=null||g=="function")try{const k=d.then;if(typeof k==="function"){je(d,k,e,f,a);h=!0;break a}}catch(k){f.call(a,k);h=!0;break a}h=!1}}}h||(a.T=c,a.g=b,a.j=null,ie(a),b!=3||c instanceof S||ke(a,c))}}
49
+ function je(a,b,c,d,e){function f(k){g||(g=!0,d.call(e,k))}function h(k){g||(g=!0,c.call(e,k))}let g=!1;try{b.call(a,h,f)}catch(k){f(k)}}function ie(a){a.B||(a.B=!0,Ud(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};
50
+ 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)}Kd(Zd,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;Ud(function(){a.v&&me.call(null,b)})}var me=l;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);Uc(this,fa(Tc,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){l(f)}for(const d of a.A)d.resolve(b);a.A.clear();c()})})}function Xc(a,b,c){const d=ne++;te(()=>{ue(a,d,b,c)});return d}
51
+ 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&&ja(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)})}
52
+ 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"))};
53
+ de(c.promise,()=>{const e=oe.get(b);e&&ja(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){l(a)}finally{we.length=0,xe=!1}}
54
+ function ze(a){const b=a+100;for(;a<b&&a<we.length;)try{we[a++]()}catch(c){l(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);Uc(a,()=>{for(const e of[...d])e();oe.delete(a)})}}};function T(a){var b=new Bd;a=B(b,1,Ad,a);return{content:JSON.stringify(ob(a))}}const Ae=new se;function Be(a,b){const c=Ae.signal();return{channel:Hd(a,d=>{const e=b(d.data);pe(Ae,c,{content:e,ka:d})}),signal:c}};let Hb;var U=class extends I{};var V=class extends I{};var De=class extends I{h(){return H(this,U,2,Ce)}g(){return ub(this,U,2,Ce)}j(){return H(this,V,3,Ce)}l(){return ub(this,V,3,Ce)}},Ce=[2,3];var Ee=Jb(class extends I{});var Fe=Jb(class extends I{}),Ge=[1,2];var He=({destination:a,origin:b,ra:c,Y:d="ZNWN1d",onMessage:e})=>{if(b==="*")throw Error("Sending to wildcard origin not allowed.");const f=Fd(e);a.postMessage(c?{n:d,t:c}:d,b,[f.port2]);return Hd(f.port1,e)};function Ie(a,b,c){const d=new se,e=d.signal();a=He({destination:window.parent,origin:b,Y:a,onMessage:f=>{const h=Cd(f.data.content);z(h,Ad)===2&&pe(d,e,{content:zd(h),ka:f,messagePort:f.data.messagePort})}});return new Je(e,a,c)}async function Yc(a){var b=W;var c=new Q;var d=new sd;c=B(c,19,P,d);a=await b(a,T(c));let e;return(e=zd(Cd(a.data.content)))==null?void 0:H(e,Nc,20,N)}
55
+ async function Zc(a){var b=W;var c=new Q;var d=new id;c=B(c,17,P,d);a=await b(a,T(c));let e;return(e=zd(Cd(a.data.content)))==null?void 0:H(e,Ic,18,N)}async function $c(a,b){var c=W,d=new Q;b=B(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=B(c,18,P,d);a=await b(a,T(c));let e;return(e=zd(Cd(a.data.content)))==null?void 0:H(e,Mc,19,N)}async function bd(a){var b=W;var c=new Q;var d=new hd;c=B(c,11,P,d);await b(a,T(c))}
56
+ async function cd(a,b){var c=W,d=new Q;b=B(d,14,P,b);await c(a,T(b))}async function dd(a,b){var c=W,d=new Q;b=B(d,15,P,b);await c(a,T(b))}async function Ke(a){await a.h()}
57
+ 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=Cd(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."+
58
+ ` ${JSON.stringify(b)}`);b=b==null?void 0:H(b,Tb,10,N);if((b==null?void 0:F(b,1))!==void 0)throw new J(wc(F(b,1)));return a}async function Le(a,b,c){var d=W,e=new Q;b=B(e,1,P,b);d=await d(a,T(b));a=d.data.messagePort;var f;(d=(f=zd(Cd(d.data.content)))==null?void 0:H(f,Rb,1,N))!=null?f=d:(f=new Rb,f=A(f,1,u(0),0));return{channel:a?Be(a,c):void 0,response:f}}async function Me(a){const b=kd(),{channel:c,response:d}=await Le(a,b,e=>Fe(e));if(!c)throw new J(xc(d));return c}
59
+ async function Ne(a){var b=W;var c=new Q;var d=new xd;c=B(c,5,P,d);await b(a,T(c))}async function Oe(a){var b=W;var c=new Q;var d=new qd;c=B(c,6,P,d);await b(a,T(c))}async function Pe(a,b,c){var d=W,e=new Q,f=new td;b=A(f,1,u(b),0);c=A(b,2,v(c),"");e=B(e,7,P,c);await d(a,T(e))}async function Qe(a,b){var c=W,d=new Q;b=B(d,16,P,b);await c(a,T(b))}
60
+ class Je extends O{constructor(a,b,c){super();this.U=a;this.channel=b;this.h=Pb(async()=>{var d=this.channel,e=d.C;var f=new Q;var h=new ud;f=B(f,13,P,h);await e.call(d,T(f))});a=Gb();fb(x(a,1));fb(x(a,2));fb(x(a,3));c=yd(new Q,pd(nd(a),c));this.channel.send(T(c));Xc(this.U,async d=>{switch(z(d.content,N)){case 16:await Ke(this)}})}};let Re;var Se=class{constructor(a){var b=Re;this.h=a;this.g=b}delete(){throw Error("Not implemented.");}};var Ue=class extends I{h(){return H(this,U,2,Te)}g(){return ub(this,U,2,Te)}j(){return H(this,V,3,Te)}l(){return ub(this,V,3,Te)}},Te=[2,3];var Ve=class extends I{};var We=class extends I{};var Xe=class extends I{};var Ze=class extends I{h(){return H(this,U,2,Ye)}g(){return ub(this,U,2,Ye)}j(){return H(this,V,3,Ye)}l(){return ub(this,V,3,Ye)}},Ye=[2,3],$e=[5,6];var af=class extends I{};var bf=class extends I{},cf=[1,2,3];var df=class extends Error{constructor(){super("Failed to create CoActivity: Connection refused - Meet refused to begin Live Sharing")}};var ef=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 ff(){const a=new Map,b={set(c,d){a.set(c,d);return b},D:()=>a};return b};function gf(a){if(a.g()){a=a.h().m;var b=a[n]|0;var c=sb(a,b,1),d=Da(c,!0);d!=null&&d!==c&&y(a,b,1,d);a=d;b=a==null?pa():a;a=Uint8Array;sa(oa);c=b.g;if(c!=null&&!m(c))if(typeof c==="string"){la.test(c)&&(c=c.replace(la,na));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 hf(a,b){b=jf(b);B(a,2,Ye,b);return a}function kf(a,b){b=jf(b);B(a,2,Te,b);return a}
61
+ function jf(a){var b=new U;return A(b,1,Da(a.bytes,!1),pa())}function lf(a){if(a.l()){a=a.j();var b,c,d=E(a,1),e=(c=(b=zb(a,Kb,2))==null?void 0:Fb(b))!=null?c:0;c=a.m;let f=c[n]|0;const h=sb(c,f,4);b=h==null||typeof h==="number"?h:h==="NaN"||h==="Infinity"||h==="-Infinity"?Number(h):void 0;b!=null&&b!==h&&y(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);B(a,3,Ye,b);return a}
62
+ function pf(a,b){b=of(b);B(a,3,Te,b);return a}const mf=ff().set(0,"INVALID").set(1,"BUFFERING").set(2,"PLAY").set(3,"PAUSE").set(4,"ENDED").D(),qf=ff().set("INVALID",0).set("BUFFERING",1).set("PLAY",2).set("PAUSE",3).set("ENDED",4).D();
63
+ function of(a){var b=new V;b=A(b,1,v(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=A(b,4,c,0);c=new Kb;c=A(c,1,gb(a.mediaPlayoutPosition),"0");b=Ab(b,2,c);a=qf.get(a.playbackState);return A(b,3,u(a),0)}function rf({activityTitle:a}){var b=new Xe;return tb(b,4,v(a))}function sf(a,b){var c=new We;b=A(c,1,u(b.u),0);B(a,6,$e,b);return a}function tf(a){var b=new Ve;B(a,5,$e,b);return a};const uf=ff().set("co-doing",1).set("co-watching",2).D();async function vf(a,b,c){var d=b.C,e=new bf;var f=new af;f=A(f,1,v(a.activityTitle),"");var h=uf.get(a.K);f=A(f,2,u(h),0);e=B(e,3,cf,f);d=await d.call(b,e,Ee);let g;if((g=Eb(d))!=null&&g)return new wf(a,b,c,zb(d,De,2));throw new df;}function xf(a,b){const c=a.config.N(b);c&&!a.config.M(a.g,c)&&(a.g=c,a.j=Fb(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 wf{constructor(a,b,c,d){this.l=a;this.h=b;this.config=c;this.v=Lb(e=>void this.l.O(e));yf(this.h,e=>{const f=z(e,Ge);switch(f){case 1:xf(this,H(e,De,1,Ge));break;case 2:case 0:console.warn(`IllegalMessage: ${f} - ${"Unhandled message"} - ${"Please raise a bug with the MeetJS team"}`)}});this.B=(new ef({da:1E3,ha:()=>{var e,f,h=(f=(e=this.l).ja)==null?void 0:f.call(e);if(this.g!==null){this.g={...this.g,...h};e=new bf;f=this.config;h=f.W;var g=new Ue;g=A(g,1,gb(this.j),"0");f=h.call(f,g,this.g);
65
+ e=B(e,1,cf,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 Ze;f=A(f,1,gb(this.j),"0");d=Ab(f,4,d);a=e.call(c,d,a);a=this.config.V(a,b);b=this.h;c=b.send;e=new bf;a=B(e,2,cf,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 Af(a,b){return a==null||b==null?!1:a.bytes.length===b.bytes.length&&a.bytes.every((c,d)=>c===b.bytes[d])};var Bf=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
+ 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 Cf(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=Xc(a.signal,d=>{b(d)});a.o.push(c)}var Df=class{constructor(a,b){this.channel=a;this.signal=b;this.o=[]}send(a){this.channel.send(JSON.stringify(ob(a)))}async C(a,b){a=await this.channel.C(JSON.stringify(ob(a)));return b(a.data)}shutdown(){this.o.forEach(a=>{this.signal.detach(a)})}};function Ef(a,b){var c=Ff;const d=a.signal(),e=a.signal();Xc(b,f=>{const h=c(f)?d:e;pe(a,h,f)},a);return{ia:d,ga:e}}function Gf(a,b,c,d=e=>e){Xc(c,e=>{pe(a,b,d(e))},a)};async function Hf(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:Cf}),new Bf(a)}async function If(a,b){if(b)return a=await vf({activityTitle:b.activityTitle,K:"co-doing",O:c=>{b.onCoDoingStateChanged(c)}},a,{X:hf,W:kf,V:tf,N:gf,M:Af}),new zf(a)}
68
+ async function Jf(a){const b=new se,c=b.signal();a=await a;Gf(b,c,a.signal,f=>f.content);const {ia:d,ga:e}=Ef(b,c);return{Z:new Df(a.channel,d),aa:new Df(a.channel,e)}}function Ff(a){a:switch(z(a,Ge)){case 1:a=H(a,De,1,Ge);break a;default:throw Error("CA Message arrived with no known content message set");}return a.g()};async function Kf(a,b){({Z:a}=await Jf(Me(a.g)));b=await If(a,b);if(!b)throw Error("Failed to create co-doing session");return b}async function Lf(a,b){({aa:a}=await Jf(Me(a.g)));b=await Hf(a,b);if(!b)throw Error("Failed to create co-watching session");return b};var Mf=class extends ed{async notifySidePanel(a){await Pe(this.context.g,1,a)}async unloadSidePanel(){await Ne(this.context.g)}async loadSidePanel(){await Oe(this.context.g)}};var Nf=class extends ed{async setAddonStartingState(a){if(a===null)throw new J(gc("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+
69
+ +!!a.additionalData)throw new J(fc);if(Object.keys(a).length===0)throw new J(ec);var b=[];b.push(Dc(Cc(Ac(1),a.sidePanelUrl),a.additionalData));a=this.context.g;var c=new wd,d=c.setAddonStartingState,e=new vd;b=Bb(e,b);await Qe(a,d.call(c,b))}};var Of=class extends ed{async notifyMainStage(a){await Pe(this.context.g,2,a)}};var Pf=class{constructor(a){a=a.cloudProjectNumber;const b=gd();if(b.cloudProjectNumber!==a)throw new J($b);const c=b.S,d=b.ba;let e;Re=(e=Re)!=null?e:Ie(d,c,a);this.g=new Se(b)}async createMainStageClient(){var a=this.g;if(a.h.frameType!==2)throw new J(Vb);return await Promise.resolve(new Mf(a))}async createSidePanelClient(){var a=this.g;if(a.h.frameType!==1)throw new J(Wb);return await Promise.resolve(new Of(a))}async createCoWatchingClient(a){return await Lf(this.g,a)}async createCoDoingClient(a){return await Kf(this.g,
70
+ a)}async createRoomsStandaloneClient(){var a=this.g;if(a.h.frameType!==2)throw new J(Vb);return await Promise.resolve(new Nf(a))}};let Qf=null;for(var Rf={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(gc("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(Qf&&gd().S!=="integration.test.google.com")throw new J(qc);
71
+ return Qf=new Pf(a)}}},Sf=["meet"],Y=ea,Z;Sf.length&&(Z=Sf.shift());)Sf.length||Rf===void 0?Y[Z]&&Y[Z]!==Object.prototype[Z]?Y=Y[Z]:Y=Y[Z]={}:Y[Z]=Rf;}).apply(topLevel);export const meet = topLevel.meet;
@@ -4,18 +4,18 @@ const topLevel = typeof global !== 'undefined' ? global : typeof self !== 'undef
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
  var p=this||self;function aa(a){return a};var r=class extends Error{constructor(a,b){super(`Meet Addon Screenshare Info error: ${`${a}${b?` - ${b}`:""}`}`)}};function t(a){throw new a.j(a.message,a.o);}
7
- var ba={message:"cloudProjectNumber was not defined.",o:"Ensure that cloudProjectNumber is provided in the call to exposeToMeetWhenScreensharing.",j:r},da={message:"additionalData was defined, but startActivityOnOpen was not true.",o:"Ensure that startActivityOnOpen is set to true if additionalData is provided in the call to exposeToMeetWhenScreensharing.",j:r},ea={message:"Received an incorrect value for startActivityOnOpen.",o:"Ensure that startActivityOnOpen is set to true if a mainStageUrl is provided in the call to exposeToMeetWhenScreensharing.",
8
- j:r};let fa;function ha(a){p.setTimeout(()=>{throw a;},0)};var u,v;a:{for(var ia=["CLOSURE_FLAGS"],w=p,x=0;x<ia.length;x++)if(w=w[ia[x]],w==null){v=null;break a}v=w}var ja=v&&v[610401301];u=ja!=null?ja:!1;var y;const ka=p.navigator;y=ka?ka.userAgentData||null:null;function A(a){return u?y?y.brands.some(({brand:b})=>b&&b.indexOf(a)!=-1):!1:!1}function B(a){var b;a:{if(b=p.navigator)if(b=b.userAgent)break a;b=""}return b.indexOf(a)!=-1};function C(){return u?!!y&&y.brands.length>0:!1}function D(){return C()?A("Chromium"):(B("Chrome")||B("CriOS"))&&!(C()?0:B("Edge"))||B("Silk")};!B("Android")||D();D();B("Safari")&&(D()||(C()?0:B("Coast"))||(C()?0:B("Opera"))||(C()?0:B("Edge"))||(C()?A("Microsoft Edge"):B("Edg/"))||C()&&A("Opera"));var la={},E=null;function ma(a,b){a.__closure__error__context__984382||(a.__closure__error__context__984382={});a.__closure__error__context__984382.severity=b};let na=void 0;function oa(a){if(a!=null){var b;var c=(b=na)!=null?b:na={};b=c[a]||0;b>=5||(c[a]=b+1,a=Error(),ma(a,"incident"),ha(a))}};function G(a,b=!1){return b&&Symbol.for&&a?Symbol.for(a):a!=null?Symbol(a):Symbol()}var pa=G(),qa=G();const H=G("jas",!0);var ra={};function I(a){return a!==null&&typeof a==="object"&&!Array.isArray(a)&&a.constructor===Object}var J;const sa=[];sa[H]=55;J=Object.freeze(sa);function K(a){if(a&2)throw Error();}function ta(a,b,c){const e=b&512?0:-1,d=a.length;b=b&64?b&256:!!d&&I(a[d-1]);const f=d+(b?-1:0);for(let g=0;g<f;g++)c(g-e,a[g]);if(b){a=a[d-1];for(const g in a)!isNaN(g)&&c(+g,a[g])}};var L=typeof p.BigInt==="function"&&typeof p.BigInt(0)==="bigint";const ua=Number.MIN_SAFE_INTEGER.toString(),va=L?BigInt(Number.MIN_SAFE_INTEGER):void 0,wa=Number.MAX_SAFE_INTEGER.toString(),xa=L?BigInt(Number.MAX_SAFE_INTEGER):void 0;function ya(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 e=a[c],d=b[c];if(e>d)return!1;if(e<d)return!0}};const za=Number.isFinite;function Aa(a){if(a==null)return a;if(typeof a==="string"&&a)a=+a;else if(typeof a!=="number")return;return za(a)?a|0:void 0}function M(a){if(a!=null&&typeof a!=="string")throw Error();return a};function Ba(a){return a};function Ca(a,b,c){var e=Da;c=c?!!(b&32):void 0;const d=[];let f=a.length,g,h,l,n=!1;if(b&64){if(b&256?(f--,g=a[f],h=f):(h=4294967295,g=void 0),!(b&512)){n=!0;var k;l=((k=Ea)!=null?k:Ba)(g?h- -1:b>>14&1023||536870912,-1,a,g);h=l+-1}}else h=4294967295,b&1||(g=f&&a[f-1],I(g)?(f--,h=f,l=0):g=void 0);b=void 0;for(k=0;k<f;k++){let m=a[k];if(m!=null&&(m=e(m,c))!=null)if(k>=h){var q=void 0;((q=b)!=null?q:b={})[k- -1]=m}else d[k]=m}if(g)for(let m in g)if(a=g[m],a!=null&&(a=e(a,c))!=null)if(q=+m,q<l)d[q+-1]=
9
- a;else{let z;((z=b)!=null?z:b={})[m]=a}b&&(n?d.push(b):d[h]=b);return d}
10
- function Da(a){switch(typeof a){case "number":return Number.isFinite(a)?a:""+a;case "bigint":return(L?a>=va&&a<=xa:a[0]==="-"?ya(a,ua):ya(a,wa))?Number(a):""+a;case "boolean":return a?1:0;case "object":if(Array.isArray(a)){var b=a[H]|0;return a.length===0&&b&1?void 0:Ca(a,b,!1)}if(a.v===ra)return Fa(a);if(a!=null&&a instanceof Uint8Array){a!=null&&a instanceof Uint8Array&&oa(qa);b="";let c=0;const e=a.length-10240;for(;c<e;)b+=String.fromCharCode.apply(null,a.subarray(c,c+=10240));b+=String.fromCharCode.apply(null,
11
- c?a.subarray(c):a);return btoa(b)}return}return a}let Ea;function Fa(a){a=a.i;return Ca(a,a[H]|0)};let N,Ga;function Ha(a){switch(typeof a){case "boolean":return N||(N=[0,void 0,!0]);case "number":return a>0?void 0:a===0?Ga||(Ga=[0,void 0]):[-a,void 0];case "string":return[0,a];case "object":return a}}function Ia(a,b,c){a=Ja(a,b[0],b[1],c?1:2);b!==N&&c&&(a[H]|=8192);return a}
12
- function Ja(a,b,c,e){if(a==null){var d=96;c?(a=[c],d|=512):a=[];b&&(d=d&-16760833|(b&1023)<<14)}else{if(!Array.isArray(a))throw Error("narr");d=a[H]|0;8192&d||!(64&d)||2&d||Ka();if(d&1024)throw Error("farr");if(d&64)return a;e===1||e===2||(d|=64);if(c&&(d|=512,c!==a[0]))throw Error("mid");a:{c=a;var f=c.length;if(f){var g=f-1;e=c[g];if(I(e)){d|=256;b=d&512?0:-1;g-=b;if(g>=1024)throw Error("pvtlmt");for(var h in e)if(f=+h,f<g)c[f+b]=e[h],delete e[h];else break;d=d&-16760833|(g&1023)<<14;break a}}if(b){h=
13
- Math.max(b,f-(d&512?0:-1));if(h>1024)throw Error("spvt");d=d&-16760833|(h&1023)<<14}}}a[H]=d;return a}function Ka(){oa(pa)};function O(a,b,c){const e=a.i;let d=e[H]|0;K(d);P(e,d,b,c);return a}function P(a,b,c,e){const d=b&512?0:-1,f=c+d;var g=a.length-1;if(f>=g&&b&256)return a[g][c]=e,b;if(f<=g)return a[f]=e,b;e!==void 0&&(g=b>>14&1023||536870912,c>=g?e!=null&&(a[g+d]={[c]:e},b|=256,a[H]=b):a[f]=e);return b}function Q(a,b,c,e){const d=a.i;let f=d[H]|0;K(f);P(d,f,b,(e==="0"?Number(c)===0:c===e)?void 0:c);return a}function La(a,b){a=(2&b?a|2:a&-3)|32;return a&=-1025}function Ma(a,b){32&b||(a&=-33);return a};var R=class{constructor(a){this.i=Ja(a)}toJSON(){var a=Fa(this);return a}};R.prototype.v=ra;R.prototype.toString=function(){return this.i.toString()};function S(a,b){for(;b>127;)a.g.push(b&127|128),b>>>=7;a.g.push(b)}var Na=class{constructor(){this.g=[]}length(){return this.g.length}end(){const a=this.g;this.g=[];return a}};function T(a,b){b.length!==0&&(a.l.push(b),a.h+=b.length)}function Oa(a,b){S(a.g,b*8+2);b=a.g.end();T(a,b);b.push(a.h);return b}function Pa(a,b){var c=b.pop();for(c=a.h+a.g.length()-c;c>127;)b.push(c&127|128),c>>>=7,a.h++;b.push(c);a.h++}var Qa=class{constructor(){this.l=[];this.h=0;this.g=new Na}};function U(){const a=class{constructor(){throw Error();}};Object.setPrototypeOf(a,a.prototype);return a}var V=U(),Ra=U();var W=class{constructor(a,b){this.g=a;a=aa(V);this.h=!!a&&b===a||!1}};function Sa(a,b,c,e,d){b=Ta(b,e);b!=null&&(c=Oa(a,c),d(b,a),Pa(a,c))}const Ua=new W(Sa,V),Va=new W(Sa,V);var Wa=Symbol(),Xa=Symbol();let Ya,Za;
14
- function X(a){var b=$a,c=ab,e=a[Wa];if(e)return e;e={};e.B=a;e.m=Ha(a[0]);var d=a[1];let f=1;d&&d.constructor===Object&&(e.s=d,d=a[++f],typeof d==="function"&&(e.u=!0,Ya!=null||(Ya=d),Za!=null||(Za=a[f+1]),d=a[f+=2]));const g={};for(;d&&Array.isArray(d)&&d.length&&typeof d[0]==="number"&&d[0]>0;){for(var h=0;h<d.length;h++)g[d[h]]=d;d=a[++f]}for(h=1;d!==void 0;){typeof d==="number"&&(h+=d,d=a[++f]);let k;var l=void 0;d instanceof W?k=d:(k=Ua,f--);let q;if((q=k)==null?0:q.h){d=a[++f];l=a;var n=f;typeof d===
15
- "function"&&(d=d(),l[n]=d);l=d}d=a[++f];n=h+1;typeof d==="number"&&d<0&&(n-=d,d=a[++f]);for(;h<n;h++){const m=g[h];l?c(e,h,k,l,m):b(e,h,k,m)}}return a[Wa]=e}function Ta(a,b){if(a instanceof R)return a.i;if(Array.isArray(a))return Ia(a,b,!1)};function $a(a,b,c){a[b]=c.g}function ab(a,b,c,e){let d,f;const g=c.g;a[b]=(h,l,n)=>g(h,l,n,f||(f=X(e).m),d||(d=bb(e)))}function bb(a){let b=a[Xa];if(!b){const c=X(a);b=(e,d)=>cb(e,d,c);a[Xa]=b}return b}function cb(a,b,c){ta(a,a[H]|0|(c.m[1]?512:0),(e,d)=>{if(d!=null){var f=db(c,e);f&&f(b,d,e)}})}
16
- function db(a,b){var c=a[b];if(c)return c;if(c=a.s)if(c=c[b]){c=Array.isArray(c)?c[0]instanceof W?c:[Va,c]:[c,void 0];var e=c[0].g;if(c=c[1]){const d=bb(c),f=X(c).m;c=a.u?Za(f,d):(g,h,l)=>e(g,h,l,f,d)}else c=e;return a[b]=c}};function eb(a,b,c){b=b==null||typeof b==="string"?b:void 0;b!=null&&(b=(fa||(fa=new TextEncoder)).encode(b),S(a.g,c*8+2),S(a.g,b.length),T(a,a.g.end()),T(a,b))};function fb(a){var b=new gb;if(a!=null){if(!za(a))throw b=Error("enum"),ma(b,"warning"),b;a|=0}return Q(b,1,a,0)}var gb=class extends R{};var hb=class extends R{};var ib=class extends R{};ib.prototype.g=function(a){return function(){const b=new Qa;cb(this.i,b,X(a));T(b,b.g.end());const c=new Uint8Array(b.h),e=b.l,d=e.length;let f=0;for(let g=0;g<d;g++){const h=e[g];c.set(h,f);f+=h.length}b.l=[c];return c}}([0,new W(eb,Ra),-1,[0,function(a,b,c=V){return new W(b,c)}(function(a,b,c,e,d){if(a.g()!==2)return!1;var f=a.h;e=Ia(void 0,e,!0);var g=b[H]|0;K(g);if(c===-1)var h=null;else{h=c+(g&512?0:-1);var l=b.length-1;h=h>=l&&g&256?b[l][c]:h<=l?b[h]:void 0}h=Array.isArray(h)?h:J;const n=h!==
17
- J;if(64&g||!(8192&g)||!n){let k=l=n?h[H]|0:0;if(!n||2&k||2&k&&4&k||1024&k||4&k&&!(32&k))h=Array.prototype.slice.call(h),k=La(k,g),g=P(b,g,c,h);b=k;b===0&&(b=La(b,g));k=Ma((b|1)&-29,g);k!==l&&(h[H]=k)}h.push(e);f.call(a,e,d);return!0},function(a,b,c,e,d){if(Array.isArray(b))for(let n=0;n<b.length;n++){var f=a,g=c,h=d,l=Ta(b[n],e);l!=null&&(g=Oa(f,g),h(l,f),Pa(f,g))}}),[0,new W(function(a,b,c){b=Aa(b);if(b!=null)if(b=parseInt(b,10),S(a.g,c*8),a=a.g,c=b,c>=0)S(a,c);else{for(b=0;b<9;b++)a.g.push(c&127|
18
- 128),c>>=7;a.g.push(1)}},U()),new W(eb,Ra),-1]],new W(function(a,b,c){b=b==null||typeof b==="boolean"?b:typeof b==="number"?!!b:void 0;b!=null&&(S(a.g,c*8),a.g.g.push(b?1:0))},U())]);function jb(){let a,b;const c=(b=(a=(new URL(kb||window.location.href)).searchParams.get("meet_capture_handle_origins"))==null?void 0:a.split(",").filter(e=>{try{return(new URL(e)).origin.endsWith(".google.com")}catch(d){return!1}}))!=null?b:[];return c.length===0?lb:c}let kb="";const lb=["https://meet.google.com"];for(var mb={exposeToMeetWhenScreensharing:function(a){var b=a.A,c=a.cloudProjectNumber,e=a.additionalData,d=a.mainStageUrl,f=a.sidePanelUrl;a=a.startActivityOnOpen;c||t(ba);var g=new ib;c=O(g,2,M(c));b&&O(c,1,M(b));b=[];e&&!a&&t(da);d&&!a&&t(ea);if(f){g=b.push;var h=fb(1);f=Q(h,2,M(f),"");f=Q(f,3,M(e),"");g.call(b,f)}d&&(f=b.push,g=fb(2),d=Q(g,2,M(d),""),e=Q(d,3,M(e),""),f.call(b,e));{e=new hb;d=b;const z=e.i;let F=z[H]|0;K(F);if(d==null)P(z,F,1);else{f=b=d[H]|0;h=(g=!!(2&b)&&!!(4&b)||!!(1024&b))||
19
- Object.isFrozen(d);var l=!0,n=!0;for(let ca=0;ca<d.length;ca++){var k=d[ca];g||(k=!!((k.i[H]|0)&2),l&&(l=!k),n&&(n=k))}g||(b=l?13:5,b=n?b|16:b&-17);h&&b===f||(d=Array.prototype.slice.call(d),f=0,b=La(b,F),b=Ma(b,F));b!==f&&(d[H]=b);P(z,F,1,d)}}e==null&&(e=void 0);e=O(c,3,e);if(a!=null&&typeof a!=="boolean"){var q=typeof a;throw Error(`Expected boolean but got ${q!="object"?q:a?Array.isArray(a)?"array":q:"null"}: ${a}`);}O(e,4,a);a=c.g();var m;m===void 0&&(m=0);if(!E)for(E={},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),
20
- e=["+/=","+/","-_=","-_.","-_"],d=0;d<5;d++)for(b=c.concat(e[d].split("")),la[d]=b,f=0;f<b.length;f++)g=b[f],E[g]===void 0&&(E[g]=f);m=la[m];c=Array(Math.floor(a.length/3));e=m[64]||"";for(d=b=0;b<a.length-2;b+=3)h=a[b],l=a[b+1],g=a[b+2],f=m[h>>2],h=m[(h&3)<<4|l>>4],l=m[(l&15)<<2|g>>6],g=m[g&63],c[d++]=f+h+l+g;f=0;g=e;switch(a.length-b){case 2:f=a[b+1],g=m[(f&15)<<2]||e;case 1:a=a[b],c[d]=m[a>>2]+m[(a&3)<<4|f>>4]+g+e}a=c.join("");m=window;m.top===m.self&&(a={handle:a,permittedOrigins:jb(),exposeOrigin:!0},
21
- (q=m.navigator.mediaDevices)==null||q.setCaptureHandleConfig(a))}},nb=["meet","addon","screensharing"],Y=p,Z;nb.length&&(Z=nb.shift());)nb.length||mb===void 0?Y[Z]&&Y[Z]!==Object.prototype[Z]?Y=Y[Z]:Y=Y[Z]={}:Y[Z]=mb;}).apply(topLevel);export const meet = topLevel.meet;
7
+ var ba={message:"cloudProjectNumber was not defined.",o:"Ensure that cloudProjectNumber is provided in the call to exposeToMeetWhenScreensharing.",j:r},ca={message:"additionalData was defined, but startActivityOnOpen was not true.",o:"Ensure that startActivityOnOpen is set to true if additionalData is provided in the call to exposeToMeetWhenScreensharing.",j:r},da={message:"Received an incorrect value for startActivityOnOpen.",o:"Ensure that startActivityOnOpen is set to true if a mainStageUrl is provided in the call to exposeToMeetWhenScreensharing.",
8
+ j:r};let u;function ea(a){p.setTimeout(()=>{throw a;},0)};var v={},x=null;function y(a,b){a.__closure__error__context__984382||(a.__closure__error__context__984382={});a.__closure__error__context__984382.severity=b};let z=void 0;function A(a){if(a!=null){var b;var c=(b=z)!=null?b:z={};b=c[a]||0;b>=5||(c[a]=b+1,a=Error(),y(a,"incident"),ea(a))}};function C(a,b=!1){return b&&Symbol.for&&a?Symbol.for(a):a!=null?Symbol(a):Symbol()}var fa=C(),ha=C();const D=C("jas",!0);var ia={};function E(a){return a!==null&&typeof a==="object"&&!Array.isArray(a)&&a.constructor===Object}var F;const ja=[];ja[D]=55;F=Object.freeze(ja);function G(a){if(a&2)throw Error();}function ka(a,b,c){const e=b&512?0:-1,d=a.length;b=b&64?b&256:!!d&&E(a[d-1]);const f=d+(b?-1:0);for(let g=0;g<f;g++)c(g-e,a[g]);if(b){a=a[d-1];for(const g in a)!isNaN(g)&&c(+g,a[g])}};var H=typeof p.BigInt==="function"&&typeof p.BigInt(0)==="bigint";const la=Number.MIN_SAFE_INTEGER.toString(),ma=H?BigInt(Number.MIN_SAFE_INTEGER):void 0,na=Number.MAX_SAFE_INTEGER.toString(),oa=H?BigInt(Number.MAX_SAFE_INTEGER):void 0;function pa(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 e=a[c],d=b[c];if(e>d)return!1;if(e<d)return!0}};const qa=Number.isFinite;function ra(a){if(a==null)return a;if(typeof a==="string"&&a)a=+a;else if(typeof a!=="number")return;return qa(a)?a|0:void 0}function I(a){if(a!=null&&typeof a!=="string")throw Error();return a};function sa(a){return a};function ta(a,b,c){var e=ua;c=c?!!(b&32):void 0;const d=[];let f=a.length,g,h,k,n=!1;if(b&64){if(b&256?(f--,g=a[f],h=f):(h=4294967295,g=void 0),!(b&512)){n=!0;var l;k=((l=va)!=null?l:sa)(g?h- -1:b>>15&1023||536870912,-1,a,g);h=k+-1}}else h=4294967295,b&1||(g=f&&a[f-1],E(g)?(f--,h=f,k=0):g=void 0);b=void 0;for(l=0;l<f;l++){let m=a[l];if(m!=null&&(m=e(m,c))!=null)if(l>=h){var q=void 0;((q=b)!=null?q:b={})[l- -1]=m}else d[l]=m}if(g)for(let m in g)if(a=g[m],a!=null&&(a=e(a,c))!=null)if(q=+m,q<k)d[q+-1]=
9
+ a;else{let w;((w=b)!=null?w:b={})[m]=a}b&&(n?d.push(b):d[h]=b);return d}
10
+ function ua(a){switch(typeof a){case "number":return Number.isFinite(a)?a:""+a;case "bigint":return(H?a>=ma&&a<=oa:a[0]==="-"?pa(a,la):pa(a,na))?Number(a):""+a;case "boolean":return a?1:0;case "object":if(Array.isArray(a)){var b=a[D]|0;return a.length===0&&b&1?void 0:ta(a,b,!1)}if(a.v===ia)return wa(a);if(a!=null&&a instanceof Uint8Array){a!=null&&a instanceof Uint8Array&&A(ha);b="";let c=0;const e=a.length-10240;for(;c<e;)b+=String.fromCharCode.apply(null,a.subarray(c,c+=10240));b+=String.fromCharCode.apply(null,
11
+ c?a.subarray(c):a);return btoa(b)}return}return a}let va;function wa(a){a=a.i;return ta(a,a[D]|0)};let J,xa;function ya(a){switch(typeof a){case "boolean":return J||(J=[0,void 0,!0]);case "number":return a>0?void 0:a===0?xa||(xa=[0,void 0]):[-a,void 0];case "string":return[0,a];case "object":return a}}function za(a,b,c){a=Aa(a,b[0],b[1],c?1:2);b!==J&&c&&(a[D]|=8192);return a}
12
+ function Aa(a,b,c,e){if(a==null){var d=96;c?(a=[c],d|=512):a=[];b&&(d=d&-33521665|(b&1023)<<15)}else{if(!Array.isArray(a))throw Error("narr");d=a[D]|0;8192&d||!(64&d)||2&d||Ba();if(d&1024)throw Error("farr");if(d&64)return e!==3||d&16384||(a[D]=d|16384),a;e===1||e===2||(d|=64);if(c&&(d|=512,c!==a[0]))throw Error("mid");a:{c=a;var f=c.length;if(f){var g=f-1;const k=c[g];if(E(k)){d|=256;b=d&512?0:-1;g-=b;if(g>=1024)throw Error("pvtlmt");for(var h in k)if(f=+h,f<g)c[f+b]=k[h],delete k[h];else break;
13
+ d=d&-33521665|(g&1023)<<15;break a}}if(b){h=Math.max(b,f-(d&512?0:-1));if(h>1024)throw Error("spvt");d=d&-33521665|(h&1023)<<15}}}e===3&&(d|=16384);a[D]=d;return a}function Ba(){A(fa)};function K(a,b,c){const e=a.i;let d=e[D]|0;G(d);L(e,d,b,c);return a}function L(a,b,c,e){const d=b&512?0:-1,f=c+d;var g=a.length-1;if(f>=g&&b&256)return a[g][c]=e,b;if(f<=g)return a[f]=e,b;e!==void 0&&(g=b>>15&1023||536870912,c>=g?e!=null&&(a[g+d]={[c]:e},b|=256,a[D]=b):a[f]=e);return b}function M(a,b,c,e){const d=a.i;let f=d[D]|0;G(f);L(d,f,b,(e==="0"?Number(c)===0:c===e)?void 0:c);return a}function N(a,b){a=(2&b?a|2:a&-3)|32;return a&=-1025}function Ca(a,b){32&b||(a&=-33);return a};var O=class{constructor(a){this.i=Aa(a,void 0,void 0,3)}toJSON(){var a=wa(this);return a}};O.prototype.v=ia;O.prototype.toString=function(){return this.i.toString()};function P(a,b){for(;b>127;)a.g.push(b&127|128),b>>>=7;a.g.push(b)}var Da=class{constructor(){this.g=[]}length(){return this.g.length}end(){const a=this.g;this.g=[];return a}};function Q(a,b){b.length!==0&&(a.l.push(b),a.h+=b.length)}function Ea(a,b){P(a.g,b*8+2);b=a.g.end();Q(a,b);b.push(a.h);return b}function Fa(a,b){var c=b.pop();for(c=a.h+a.g.length()-c;c>127;)b.push(c&127|128),c>>>=7,a.h++;b.push(c);a.h++}var Ga=class{constructor(){this.l=[];this.h=0;this.g=new Da}};function R(){const a=class{constructor(){throw Error();}};Object.setPrototypeOf(a,a.prototype);return a}var S=R(),Ha=R();var U=class{constructor(a,b){this.g=a;a=aa(S);this.h=!!a&&b===a||!1}};function Ia(a,b,c,e,d){b=Ja(b,e);b!=null&&(c=Ea(a,c),d(b,a),Fa(a,c))}const Ka=new U(Ia,S),La=new U(Ia,S);var Ma=Symbol(),Na=Symbol();let Oa,V;
14
+ function W(a){var b=Pa,c=Qa,e=a[Ma];if(e)return e;e={};e.B=a;e.m=ya(a[0]);var d=a[1];let f=1;d&&d.constructor===Object&&(e.s=d,d=a[++f],typeof d==="function"&&(e.u=!0,Oa!=null||(Oa=d),V!=null||(V=a[f+1]),d=a[f+=2]));const g={};for(;d&&Array.isArray(d)&&d.length&&typeof d[0]==="number"&&d[0]>0;){for(var h=0;h<d.length;h++)g[d[h]]=d;d=a[++f]}for(h=1;d!==void 0;){typeof d==="number"&&(h+=d,d=a[++f]);let l;var k=void 0;d instanceof U?l=d:(l=Ka,f--);let q;if((q=l)==null?0:q.h){d=a[++f];k=a;var n=f;typeof d===
15
+ "function"&&(d=d(),k[n]=d);k=d}d=a[++f];n=h+1;typeof d==="number"&&d<0&&(n-=d,d=a[++f]);for(;h<n;h++){const m=g[h];k?c(e,h,l,k,m):b(e,h,l,m)}}return a[Ma]=e}function Ja(a,b){if(a instanceof O)return a.i;if(Array.isArray(a))return za(a,b,!1)};function Pa(a,b,c){a[b]=c.g}function Qa(a,b,c,e){let d,f;const g=c.g;a[b]=(h,k,n)=>g(h,k,n,f||(f=W(e).m),d||(d=Ra(e)))}function Ra(a){let b=a[Na];if(!b){const c=W(a);b=(e,d)=>Sa(e,d,c);a[Na]=b}return b}function Sa(a,b,c){ka(a,a[D]|0|(c.m[1]?512:0),(e,d)=>{if(d!=null){var f=Ta(c,e);f&&f(b,d,e)}})}
16
+ function Ta(a,b){var c=a[b];if(c)return c;if(c=a.s)if(c=c[b]){c=Array.isArray(c)?c[0]instanceof U?c:[La,c]:[c,void 0];var e=c[0].g;if(c=c[1]){const d=Ra(c),f=W(c).m;c=a.u?V(f,d):(g,h,k)=>e(g,h,k,f,d)}else c=e;return a[b]=c}};function Ua(a,b,c){b=b==null||typeof b==="string"?b:void 0;b!=null&&(b=(u||(u=new TextEncoder)).encode(b),P(a.g,c*8+2),P(a.g,b.length),Q(a,a.g.end()),Q(a,b))};function Va(a){var b=new Wa;if(a!=null){if(!qa(a))throw b=Error("enum"),y(b,"warning"),b;a|=0}return M(b,1,a,0)}var Wa=class extends O{};var Xa=class extends O{};var Ya=class extends O{};Ya.prototype.g=function(a){return function(){const b=new Ga;Sa(this.i,b,W(a));Q(b,b.g.end());const c=new Uint8Array(b.h),e=b.l,d=e.length;let f=0;for(let g=0;g<d;g++){const h=e[g];c.set(h,f);f+=h.length}b.l=[c];return c}}([0,new U(Ua,Ha),-1,[0,function(a,b,c=S){return new U(b,c)}(function(a,b,c,e,d){if(a.g()!==2)return!1;var f=a.h;e=za(void 0,e,!0);var g=b[D]|0;G(g);if(c===-1)var h=null;else{h=c+(g&512?0:-1);var k=b.length-1;h=h>=k&&g&256?b[k][c]:h<=k?b[h]:void 0}h=Array.isArray(h)?h:F;const n=h!==
17
+ F;if(64&g||!(8192&g)||!n){let l=k=n?h[D]|0:0;if(!n||2&l||2&l&&4&l||1024&l||4&l&&!(32&l))h=Array.prototype.slice.call(h),l=N(l,g),g=L(b,g,c,h);b=l;b===0&&(b=N(b,g));l=Ca((b|1)&-29,g);l!==k&&(h[D]=l)}h.push(e);f.call(a,e,d);return!0},function(a,b,c,e,d){if(Array.isArray(b))for(let n=0;n<b.length;n++){var f=a,g=c,h=d,k=Ja(b[n],e);k!=null&&(g=Ea(f,g),h(k,f),Fa(f,g))}}),[0,new U(function(a,b,c){b=ra(b);if(b!=null)if(b=parseInt(b,10),P(a.g,c*8),a=a.g,c=b,c>=0)P(a,c);else{for(b=0;b<9;b++)a.g.push(c&127|
18
+ 128),c>>=7;a.g.push(1)}},R()),new U(Ua,Ha),-1]],new U(function(a,b,c){b=b==null||typeof b==="boolean"?b:typeof b==="number"?!!b:void 0;b!=null&&(P(a.g,c*8),a.g.g.push(b?1:0))},R())]);function Za(){let a,b;const c=(b=(a=(new URL($a||window.location.href)).searchParams.get("meet_capture_handle_origins"))==null?void 0:a.split(",").filter(e=>{try{return(new URL(e)).origin.endsWith(".google.com")}catch(d){return!1}}))!=null?b:[];return c.length===0?ab:c}let $a="";const ab=["https://meet.google.com"];for(var bb={exposeToMeetWhenScreensharing:function(a){var b=a.A,c=a.cloudProjectNumber,e=a.additionalData,d=a.mainStageUrl,f=a.sidePanelUrl;a=a.startActivityOnOpen;c||t(ba);var g=new Ya;c=K(g,2,I(c));b&&K(c,1,I(b));b=[];e&&!a&&t(ca);d&&!a&&t(da);if(f){g=b.push;var h=Va(1);f=M(h,2,I(f),"");f=M(f,3,I(e),"");g.call(b,f)}d&&(f=b.push,g=Va(2),d=M(g,2,I(d),""),e=M(d,3,I(e),""),f.call(b,e));{e=new Xa;d=b;const w=e.i;let B=w[D]|0;G(B);if(d==null)L(w,B,1);else{f=b=d[D]|0;h=(g=!!(2&b)&&!!(4&b)||!!(1024&b))||
19
+ Object.isFrozen(d);var k=!0,n=!0;for(let T=0;T<d.length;T++){var l=d[T];g||(l=!!((l.i[D]|0)&2),k&&(k=!l),n&&(n=l))}g||(b=k?13:5,b=n?b|16:b&-17);h&&b===f||(d=Array.prototype.slice.call(d),f=0,b=N(b,B),b=Ca(b,B));b!==f&&(d[D]=b);L(w,B,1,d)}}e==null&&(e=void 0);e=K(c,3,e);if(a!=null&&typeof a!=="boolean"){var q=typeof a;throw Error(`Expected boolean but got ${q!="object"?q:a?Array.isArray(a)?"array":q:"null"}: ${a}`);}K(e,4,a);a=c.g();var m;m===void 0&&(m=0);if(!x)for(x={},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),
20
+ e=["+/=","+/","-_=","-_.","-_"],d=0;d<5;d++)for(b=c.concat(e[d].split("")),v[d]=b,f=0;f<b.length;f++)g=b[f],x[g]===void 0&&(x[g]=f);m=v[m];c=Array(Math.floor(a.length/3));e=m[64]||"";for(d=b=0;b<a.length-2;b+=3)h=a[b],k=a[b+1],g=a[b+2],f=m[h>>2],h=m[(h&3)<<4|k>>4],k=m[(k&15)<<2|g>>6],g=m[g&63],c[d++]=f+h+k+g;f=0;g=e;switch(a.length-b){case 2:f=a[b+1],g=m[(f&15)<<2]||e;case 1:a=a[b],c[d]=m[a>>2]+m[(a&3)<<4|f>>4]+g+e}a=c.join("");m=window;m.top===m.self&&(a={handle:a,permittedOrigins:Za(),exposeOrigin:!0},
21
+ (q=m.navigator.mediaDevices)==null||q.setCaptureHandleConfig(a))}},X=["meet","addon","screensharing"],Y=p,Z;X.length&&(Z=X.shift());)X.length||bb===void 0?Y[Z]&&Y[Z]!==Object.prototype[Z]?Y=Y[Z]:Y=Y[Z]={}:Y[Z]=bb;}).apply(topLevel);export const meet = topLevel.meet;
package/package.json CHANGED
@@ -1,7 +1,7 @@
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-733885818",
4
+ "version": "1.2.0-dev-734698602",
5
5
  "repository": "googleworkspace/meet",
6
6
  "license": "SEE LICENSE IN LICENSE",
7
7
  "homepage": "https://developers.google.com/meet/add-ons/guides/overview",