@pitcher/js-api 1.21.0-beta.3 → 1.21.0-beta.4
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/js-api.esm.js +286 -60
- package/js-api.esm.js.map +1 -1
- package/js-api.umd.min.js +10 -10
- package/js-api.umd.min.js.map +1 -1
- package/lib/apps/canvas-builder/composables/useRecommendations.d.ts +2 -1
- package/lib/composables/useWindowEvents.d.ts +1 -1
- package/lib/main.lib.d.ts +2 -1
- package/lib/sdk/api/onlineRestApiHandlers.d.ts +4 -0
- package/lib/sdk/interfaces.d.ts +5 -2
- package/lib/sdk/utils/httpFetch.d.ts +15 -0
- package/lib/types/instance.types.d.ts +18 -0
- package/lib/types/{instanceSettings.d.ts → instanceSettings.types.d.ts} +3 -1
- package/lib/types/launchDarkly.types.d.ts +1 -1
- package/lib/types/organization.types.d.ts +2 -2
- package/package.json +1 -1
package/js-api.umd.min.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
(function(
|
|
2
|
-
`;function T(t){return t===void 0&&(t=window),t.location.protocol}function O(t){if(t===void 0&&(t=window),t.mockDomain){var o=t.mockDomain.split("//")[0];if(o)return o}return T(t)}function G(t){return t===void 0&&(t=window),O(t)==="about:"}function Q(t){if(t===void 0&&(t=window),t)try{if(t.parent&&t.parent!==t)return t.parent}catch{}}function oe(t){if(t===void 0&&(t=window),t&&!Q(t))try{return t.opener}catch{}}function he(t){try{return!0}catch{}return!1}function pe(t){t===void 0&&(t=window);var o=t.location;if(!o)throw new Error("Can not read window location");var n=T(t);if(!n)throw new Error("Can not read window protocol");if(n==="file:")return"file://";if(n==="about:"){var i=Q(t);return i&&he()?pe(i):"about://"}var u=o.host;if(!u)throw new Error("Can not read window host");return n+"//"+u}function q(t){t===void 0&&(t=window);var o=pe(t);return o&&t.mockDomain&&t.mockDomain.indexOf("mock:")===0?t.mockDomain:o}function X(t){if(!function(o){try{if(o===window)return!0}catch{}try{var n=Object.getOwnPropertyDescriptor(o,"location");if(n&&n.enumerable===!1)return!1}catch{}try{if(G(o)&&he())return!0}catch{}try{if(function(i){return i===void 0&&(i=window),O(i)==="mock:"}(o)&&he())return!0}catch{}try{if(pe(o)===pe(window))return!0}catch{}return!1}(t))return!1;try{if(t===window||G(t)&&he()||q(window)===q(t))return!0}catch{}return!1}function H(t){if(!X(t))throw new Error("Expected window to be same domain");return t}function ee(t,o){if(!t||!o)return!1;var n=Q(o);return n?n===t:function(i){var u=[];try{for(;i.parent!==i;)u.push(i.parent),i=i.parent}catch{}return u}(o).indexOf(t)!==-1}function gr(t){var o=[],n;try{n=t.frames}catch{n=t}var i;try{i=n.length}catch{}if(i===0)return o;if(i){for(var u=0;u<i;u++){var c=void 0;try{c=n[u]}catch{continue}o.push(c)}return o}for(var f=0;f<100;f++){var p=void 0;try{p=n[f]}catch{return o}if(!p)return o;o.push(p)}return o}var Qf=[],Xf=[];function J(t,o){o===void 0&&(o=!0);try{if(t===window)return!1}catch{return!0}try{if(!t)return!0}catch{return!0}try{if(t.closed)return!0}catch(u){return!u||u.message!==m}if(o&&X(t))try{if(t.mockclosed)return!0}catch{}try{if(!t.parent||!t.top)return!0}catch{}var n=function(u,c){for(var f=0;f<u.length;f++)try{if(u[f]===c)return f}catch{}return-1}(Qf,t);if(n!==-1){var i=Xf[n];if(i&&function(u){if(!u.contentWindow||!u.parentNode)return!0;var c=u.ownerDocument;if(c&&c.documentElement&&!c.documentElement.contains(u)){for(var f=u;f.parentNode&&f.parentNode!==f;)f=f.parentNode;if(!f.host||!c.documentElement.contains(f.host))return!0}return!1}(i))return!0}return!1}function vr(t){return t===void 0&&(t=window),oe(t=t||window)||Q(t)||void 0}function Te(t,o){if(typeof t=="string"){if(typeof o=="string")return t==="*"||o===t;if(w(o)||Array.isArray(o))return!1}return w(t)?w(o)?t.toString()===o.toString():!Array.isArray(o)&&!!o.match(t):!!Array.isArray(t)&&(Array.isArray(o)?JSON.stringify(t)===JSON.stringify(o):!w(o)&&t.some(function(n){return Te(n,o)}))}function ke(t){try{if(t===window)return!0}catch(o){if(o&&o.message===m)return!0}try{if({}.toString.call(t)==="[object Window]")return!0}catch(o){if(o&&o.message===m)return!0}try{if(window.Window&&t instanceof window.Window)return!0}catch(o){if(o&&o.message===m)return!0}try{if(t&&t.self===t)return!0}catch(o){if(o&&o.message===m)return!0}try{if(t&&t.parent===t)return!0}catch(o){if(o&&o.message===m)return!0}try{if(t&&t.top===t)return!0}catch(o){if(o&&o.message===m)return!0}try{if(t&&t.__cross_domain_utils_window_check__==="__unlikely_value__")return!1}catch{return!0}try{if("postMessage"in t&&"self"in t&&"location"in t)return!0}catch{}return!1}function _r(t){if(X(t))return H(t).frameElement;for(var o=0,n=document.querySelectorAll("iframe");o<n.length;o++){var i=n[o];if(i&&i.contentWindow&&i.contentWindow===t)return i}}function ed(t){if(function(n){return n===void 0&&(n=window),!!Q(n)}(t)){var o=_r(t);if(o&&o.parentElement){o.parentElement.removeChild(o);return}}try{t.close()}catch{}}function ge(t){try{if(!t)return!1;if(typeof Promise<"u"&&t instanceof Promise)return!0;if(typeof window<"u"&&typeof window.Window=="function"&&t instanceof window.Window||typeof window<"u"&&typeof window.constructor=="function"&&t instanceof window.constructor)return!1;var o={}.toString;if(o){var n=o.call(t);if(n==="[object Window]"||n==="[object global]"||n==="[object DOMWindow]")return!1}if(typeof t.then=="function")return!0}catch{return!1}return!1}var wr=[],je=[],At=0,Ne;function yr(){if(!At&&Ne){var t=Ne;Ne=null,t.resolve()}}function Et(){At+=1}function Me(){At-=1,yr()}var C=function(){function t(n){var i=this;if(this.resolved=void 0,this.rejected=void 0,this.errorHandled=void 0,this.value=void 0,this.error=void 0,this.handlers=void 0,this.dispatching=void 0,this.stack=void 0,this.resolved=!1,this.rejected=!1,this.errorHandled=!1,this.handlers=[],n){var u,c,f=!1,p=!1,l=!1;Et();try{n(function(d){l?i.resolve(d):(f=!0,u=d)},function(d){l?i.reject(d):(p=!0,c=d)})}catch(d){Me(),this.reject(d);return}Me(),l=!0,f?this.resolve(u):p&&this.reject(c)}}var o=t.prototype;return o.resolve=function(n){if(this.resolved||this.rejected)return this;if(ge(n))throw new Error("Can not resolve promise with another promise");return this.resolved=!0,this.value=n,this.dispatch(),this},o.reject=function(n){var i=this;if(this.resolved||this.rejected)return this;if(ge(n))throw new Error("Can not reject promise with another promise");if(!n){var u=n&&typeof n.toString=="function"?n.toString():{}.toString.call(n);n=new Error("Expected reject to be called with Error, got "+u)}return this.rejected=!0,this.error=n,this.errorHandled||setTimeout(function(){i.errorHandled||function(c,f){if(wr.indexOf(c)===-1){wr.push(c),setTimeout(function(){throw c},1);for(var p=0;p<je.length;p++)je[p](c,f)}}(n,i)},1),this.dispatch(),this},o.asyncReject=function(n){return this.errorHandled=!0,this.reject(n),this},o.dispatch=function(){var n=this.resolved,i=this.rejected,u=this.handlers;if(!this.dispatching&&(n||i)){this.dispatching=!0,Et();for(var c=function(y,S){return y.then(function(E){S.resolve(E)},function(E){S.reject(E)})},f=0;f<u.length;f++){var p=u[f],l=p.onSuccess,d=p.onError,_=p.promise,g=void 0;if(n)try{g=l?l(this.value):this.value}catch(y){_.reject(y);continue}else if(i){if(!d){_.reject(this.error);continue}try{g=d(this.error)}catch(y){_.reject(y);continue}}if(g instanceof t&&(g.resolved||g.rejected)){var v=g;v.resolved?_.resolve(v.value):_.reject(v.error),v.errorHandled=!0}else ge(g)?g instanceof t&&(g.resolved||g.rejected)?g.resolved?_.resolve(g.value):_.reject(g.error):c(g,_):_.resolve(g)}u.length=0,this.dispatching=!1,Me()}},o.then=function(n,i){if(n&&typeof n!="function"&&!n.call)throw new Error("Promise.then expected a function for success handler");if(i&&typeof i!="function"&&!i.call)throw new Error("Promise.then expected a function for error handler");var u=new t;return this.handlers.push({promise:u,onSuccess:n,onError:i}),this.errorHandled=!0,this.dispatch(),u},o.catch=function(n){return this.then(void 0,n)},o.finally=function(n){if(n&&typeof n!="function"&&!n.call)throw new Error("Promise.finally expected a function");return this.then(function(i){return t.try(n).then(function(){return i})},function(i){return t.try(n).then(function(){throw i})})},o.timeout=function(n,i){var u=this;if(this.resolved||this.rejected)return this;var c=setTimeout(function(){u.resolved||u.rejected||u.reject(i||new Error("Promise timed out after "+n+"ms"))},n);return this.then(function(f){return clearTimeout(c),f})},o.toPromise=function(){if(typeof Promise>"u")throw new TypeError("Could not find Promise");return Promise.resolve(this)},o.lazy=function(){return this.errorHandled=!0,this},t.resolve=function(n){return n instanceof t?n:ge(n)?new t(function(i,u){return n.then(i,u)}):new t().resolve(n)},t.reject=function(n){return new t().reject(n)},t.asyncReject=function(n){return new t().asyncReject(n)},t.all=function(n){var i=new t,u=n.length,c=[].slice();if(!u)return i.resolve(c),i;for(var f=function(d,_,g){return _.then(function(v){c[d]=v,(u-=1)==0&&i.resolve(c)},function(v){g.reject(v)})},p=0;p<n.length;p++){var l=n[p];if(l instanceof t){if(l.resolved){c[p]=l.value,u-=1;continue}}else if(!ge(l)){c[p]=l,u-=1;continue}f(p,t.resolve(l),i)}return u===0&&i.resolve(c),i},t.hash=function(n){var i={},u=[],c=function(p){if(n.hasOwnProperty(p)){var l=n[p];ge(l)?u.push(l.then(function(d){i[p]=d})):i[p]=l}};for(var f in n)c(f);return t.all(u).then(function(){return i})},t.map=function(n,i){return t.all(n.map(i))},t.onPossiblyUnhandledException=function(n){return function(i){return je.push(i),{cancel:function(){je.splice(je.indexOf(i),1)}}}(n)},t.try=function(n,i,u){if(n&&typeof n!="function"&&!n.call)throw new Error("Promise.try expected a function");var c;Et();try{c=n.apply(i,u||[])}catch(f){return Me(),t.reject(f)}return Me(),t.resolve(c)},t.delay=function(n){return new t(function(i){setTimeout(i,n)})},t.isPromise=function(n){return!!(n&&n instanceof t)||ge(n)},t.flush=function(){return function(n){var i=Ne=Ne||new n;return yr(),i}(t)},t}();function Qe(t,o){for(var n=0;n<t.length;n++)try{if(t[n]===o)return n}catch{}return-1}var bt=function(){function t(){if(this.name=void 0,this.weakmap=void 0,this.keys=void 0,this.values=void 0,this.name="__weakmap_"+(1e9*Math.random()>>>0)+"__",function(){if(typeof WeakMap>"u"||Object.freeze===void 0)return!1;try{var n=new WeakMap,i={};return Object.freeze(i),n.set(i,"__testvalue__"),n.get(i)==="__testvalue__"}catch{return!1}}())try{this.weakmap=new WeakMap}catch{}this.keys=[],this.values=[]}var o=t.prototype;return o._cleanupClosedWindows=function(){for(var n=this.weakmap,i=this.keys,u=0;u<i.length;u++){var c=i[u];if(ke(c)&&J(c)){if(n)try{n.delete(c)}catch{}i.splice(u,1),this.values.splice(u,1),u-=1}}},o.isSafeToReadWrite=function(n){return!ke(n)},o.set=function(n,i){if(!n)throw new Error("WeakMap expected key");var u=this.weakmap;if(u)try{u.set(n,i)}catch{delete this.weakmap}if(this.isSafeToReadWrite(n))try{var c=this.name,f=n[c];f&&f[0]===n?f[1]=i:Object.defineProperty(n,c,{value:[n,i],writable:!0});return}catch{}this._cleanupClosedWindows();var p=this.keys,l=this.values,d=Qe(p,n);d===-1?(p.push(n),l.push(i)):l[d]=i},o.get=function(n){if(!n)throw new Error("WeakMap expected key");var i=this.weakmap;if(i)try{if(i.has(n))return i.get(n)}catch{delete this.weakmap}if(this.isSafeToReadWrite(n))try{var u=n[this.name];return u&&u[0]===n?u[1]:void 0}catch{}this._cleanupClosedWindows();var c=Qe(this.keys,n);if(c!==-1)return this.values[c]},o.delete=function(n){if(!n)throw new Error("WeakMap expected key");var i=this.weakmap;if(i)try{i.delete(n)}catch{delete this.weakmap}if(this.isSafeToReadWrite(n))try{var u=n[this.name];u&&u[0]===n&&(u[0]=u[1]=void 0)}catch{}this._cleanupClosedWindows();var c=this.keys,f=Qe(c,n);f!==-1&&(c.splice(f,1),this.values.splice(f,1))},o.has=function(n){if(!n)throw new Error("WeakMap expected key");var i=this.weakmap;if(i)try{if(i.has(n))return!0}catch{delete this.weakmap}if(this.isSafeToReadWrite(n))try{var u=n[this.name];return!(!u||u[0]!==n)}catch{}return this._cleanupClosedWindows(),Qe(this.keys,n)!==-1},o.getOrSet=function(n,i){if(this.has(n))return this.get(n);var u=i();return this.set(n,u),u},t}();function mr(t){return t.name||t.__name__||t.displayName||"anonymous"}function Ar(t,o){try{delete t.name,t.name=o}catch{}return t.__name__=t.displayName=o,t}function te(){var t="0123456789abcdef";return"uid_"+"xxxxxxxxxx".replace(/./g,function(){return t.charAt(Math.floor(Math.random()*t.length))})+"_"+function(o){if(typeof btoa=="function")return btoa(encodeURIComponent(o).replace(/%([0-9A-F]{2})/g,function(n,i){return String.fromCharCode(parseInt(i,16))})).replace(/[=]/g,"");if(typeof Buffer<"u")return Buffer.from(o,"utf8").toString("base64").replace(/[=]/g,"");throw new Error("Can not find window.btoa or Buffer")}(new Date().toISOString().slice(11,19).replace("T",".")).replace(/[^a-zA-Z0-9]/g,"").toLowerCase()}var Xe;function Er(t){try{return JSON.stringify([].slice.call(t),function(o,n){return typeof n=="function"?"memoize["+function(i){if(Xe=Xe||new bt,i==null||typeof i!="object"&&typeof i!="function")throw new Error("Invalid object");var u=Xe.get(i);return u||(u=typeof i+":"+te(),Xe.set(i,u)),u}(n)+"]":typeof window<"u"&&n instanceof window.Element||n!==null&&typeof n=="object"&&n.nodeType===1&&typeof n.style=="object"&&typeof n.ownerDocument=="object"?{}:n})}catch{throw new Error("Arguments not serializable -- can not be used to memoize")}}function td(){return{}}var Ue=0,br=0;function Le(t,o){o===void 0&&(o={});var n=o.thisNamespace,i=n!==void 0&&n,u=o.time,c,f,p=Ue;Ue+=1;var l=function(){for(var d=arguments.length,_=new Array(d),g=0;g<d;g++)_[g]=arguments[g];p<br&&(c=null,f=null,p=Ue,Ue+=1);var v;v=i?(f=f||new bt).getOrSet(this,td):c=c||{};var y;try{y=Er(_)}catch{return t.apply(this,arguments)}var S=v[y];if(S&&u&&Date.now()-S.time<u&&(delete v[y],S=null),S)return S.value;var E=Date.now(),b=t.apply(this,arguments);return v[y]={time:E,value:b},b};return l.reset=function(){c=null,f=null},Ar(l,(o.name||mr(t))+"::memoized")}Le.clear=function(){br=Ue};function nd(t){var o={};function n(){for(var i=arguments,u=this,c=arguments.length,f=new Array(c),p=0;p<c;p++)f[p]=arguments[p];var l=Er(f);return o.hasOwnProperty(l)||(o[l]=C.try(function(){return t.apply(u,i)}).finally(function(){delete o[l]})),o[l]}return n.reset=function(){o={}},Ar(n,mr(t)+"::promiseMemoized")}function ve(){}function We(t,o){if(o===void 0&&(o=1),o>=3)return"stringifyError stack overflow";try{if(!t)return"<unknown error: "+{}.toString.call(t)+">";if(typeof t=="string")return t;if(t instanceof Error){var n=t&&t.stack,i=t&&t.message;if(n&&i)return n.indexOf(i)!==-1?n:i+`
|
|
3
|
-
`+
|
|
1
|
+
(function(E,De){typeof exports=="object"&&typeof module<"u"?De(exports):typeof define=="function"&&define.amd?define(["exports"],De):(E=typeof globalThis<"u"?globalThis:E||self,De(E.pitcher={}))})(this,function(E){"use strict";function De(e,n){for(var i=0;i<n.length;i++){const u=n[i];if(typeof u!="string"&&!Array.isArray(u)){for(const h in u)if(h!=="default"&&!(h in e)){const g=Object.getOwnPropertyDescriptor(u,h);g&&Object.defineProperty(e,h,g.get?g:{enumerable:!0,get:()=>u[h]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var eo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function to(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ft={exports:{}},Gt={exports:{}};(function(e,n){(function(i,u){e.exports=u()})(typeof self<"u"?self:eo,function(){return function(i){var u={};function h(g){if(u[g])return u[g].exports;var _=u[g]={i:g,l:!1,exports:{}};return i[g].call(_.exports,_,_.exports,h),_.l=!0,_.exports}return h.m=i,h.c=u,h.d=function(g,_,A){h.o(g,_)||Object.defineProperty(g,_,{enumerable:!0,get:A})},h.r=function(g){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(g,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(g,"__esModule",{value:!0})},h.t=function(g,_){if(1&_&&(g=h(g)),8&_||4&_&&typeof g=="object"&&g&&g.__esModule)return g;var A=Object.create(null);if(h.r(A),Object.defineProperty(A,"default",{enumerable:!0,value:g}),2&_&&typeof g!="string")for(var I in g)h.d(A,I,function(P){return g[P]}.bind(null,I));return A},h.n=function(g){var _=g&&g.__esModule?function(){return g.default}:function(){return g};return h.d(_,"a",_),_},h.o=function(g,_){return{}.hasOwnProperty.call(g,_)},h.p="",h(h.s=0)}([function(i,u,h){h.r(u),h.d(u,"Promise",function(){return x}),h.d(u,"TYPES",function(){return Df}),h.d(u,"ProxyWindow",function(){return J}),h.d(u,"setup",function(){return Xr}),h.d(u,"destroy",function(){return xf}),h.d(u,"serializeMessage",function(){return Pf}),h.d(u,"deserializeMessage",function(){return If}),h.d(u,"createProxyWindow",function(){return Of}),h.d(u,"toProxyWindow",function(){return Cf}),h.d(u,"on",function(){return se}),h.d(u,"once",function(){return Tf}),h.d(u,"send",function(){return ue}),h.d(u,"markWindowKnown",function(){return Fr}),h.d(u,"cleanUpWindow",function(){return Rf}),h.d(u,"bridge",function(){});function g(t){return{}.toString.call(t)==="[object RegExp]"}var _=`Call was rejected by callee.\r
|
|
2
|
+
`;function A(t){return t===void 0&&(t=window),t.location.protocol}function I(t){if(t===void 0&&(t=window),t.mockDomain){var o=t.mockDomain.split("//")[0];if(o)return o}return A(t)}function P(t){return t===void 0&&(t=window),I(t)==="about:"}function Q(t){if(t===void 0&&(t=window),t)try{if(t.parent&&t.parent!==t)return t.parent}catch{}}function ie(t){if(t===void 0&&(t=window),t&&!Q(t))try{return t.opener}catch{}}function ge(t){try{return!0}catch{}return!1}function ve(t){t===void 0&&(t=window);var o=t.location;if(!o)throw new Error("Can not read window location");var r=A(t);if(!r)throw new Error("Can not read window protocol");if(r==="file:")return"file://";if(r==="about:"){var a=Q(t);return a&&ge()?ve(a):"about://"}var s=o.host;if(!s)throw new Error("Can not read window host");return r+"//"+s}function q(t){t===void 0&&(t=window);var o=ve(t);return o&&t.mockDomain&&t.mockDomain.indexOf("mock:")===0?t.mockDomain:o}function X(t){if(!function(o){try{if(o===window)return!0}catch{}try{var r=Object.getOwnPropertyDescriptor(o,"location");if(r&&r.enumerable===!1)return!1}catch{}try{if(P(o)&&ge())return!0}catch{}try{if(function(a){return a===void 0&&(a=window),I(a)==="mock:"}(o)&&ge())return!0}catch{}try{if(ve(o)===ve(window))return!0}catch{}return!1}(t))return!1;try{if(t===window||P(t)&&ge()||q(window)===q(t))return!0}catch{}return!1}function H(t){if(!X(t))throw new Error("Expected window to be same domain");return t}function ee(t,o){if(!t||!o)return!1;var r=Q(o);return r?r===t:function(a){var s=[];try{for(;a.parent!==a;)s.push(a.parent),a=a.parent}catch{}return s}(o).indexOf(t)!==-1}function Sr(t){var o=[],r;try{r=t.frames}catch{r=t}var a;try{a=r.length}catch{}if(a===0)return o;if(a){for(var s=0;s<a;s++){var c=void 0;try{c=r[s]}catch{continue}o.push(c)}return o}for(var d=0;d<100;d++){var p=void 0;try{p=r[d]}catch{return o}if(!p)return o;o.push(p)}return o}var df=[],ff=[];function k(t,o){o===void 0&&(o=!0);try{if(t===window)return!1}catch{return!0}try{if(!t)return!0}catch{return!0}try{if(t.closed)return!0}catch(s){return!s||s.message!==_}if(o&&X(t))try{if(t.mockclosed)return!0}catch{}try{if(!t.parent||!t.top)return!0}catch{}var r=function(s,c){for(var d=0;d<s.length;d++)try{if(s[d]===c)return d}catch{}return-1}(df,t);if(r!==-1){var a=ff[r];if(a&&function(s){if(!s.contentWindow||!s.parentNode)return!0;var c=s.ownerDocument;if(c&&c.documentElement&&!c.documentElement.contains(s)){for(var d=s;d.parentNode&&d.parentNode!==d;)d=d.parentNode;if(!d.host||!c.documentElement.contains(d.host))return!0}return!1}(a))return!0}return!1}function Tr(t){return t===void 0&&(t=window),ie(t=t||window)||Q(t)||void 0}function xe(t,o){if(typeof t=="string"){if(typeof o=="string")return t==="*"||o===t;if(g(o)||Array.isArray(o))return!1}return g(t)?g(o)?t.toString()===o.toString():!Array.isArray(o)&&!!o.match(t):!!Array.isArray(t)&&(Array.isArray(o)?JSON.stringify(t)===JSON.stringify(o):!g(o)&&t.some(function(r){return xe(r,o)}))}function it(t){try{if(t===window)return!0}catch(o){if(o&&o.message===_)return!0}try{if({}.toString.call(t)==="[object Window]")return!0}catch(o){if(o&&o.message===_)return!0}try{if(window.Window&&t instanceof window.Window)return!0}catch(o){if(o&&o.message===_)return!0}try{if(t&&t.self===t)return!0}catch(o){if(o&&o.message===_)return!0}try{if(t&&t.parent===t)return!0}catch(o){if(o&&o.message===_)return!0}try{if(t&&t.top===t)return!0}catch(o){if(o&&o.message===_)return!0}try{if(t&&t.__cross_domain_utils_window_check__==="__unlikely_value__")return!1}catch{return!0}try{if("postMessage"in t&&"self"in t&&"location"in t)return!0}catch{}return!1}function Pr(t){if(X(t))return H(t).frameElement;for(var o=0,r=document.querySelectorAll("iframe");o<r.length;o++){var a=r[o];if(a&&a.contentWindow&&a.contentWindow===t)return a}}function lf(t){if(function(r){return r===void 0&&(r=window),!!Q(r)}(t)){var o=Pr(t);if(o&&o.parentElement){o.parentElement.removeChild(o);return}}try{t.close()}catch{}}function we(t){try{if(!t)return!1;if(typeof Promise<"u"&&t instanceof Promise)return!0;if(typeof window<"u"&&typeof window.Window=="function"&&t instanceof window.Window||typeof window<"u"&&typeof window.constructor=="function"&&t instanceof window.constructor)return!1;var o={}.toString;if(o){var r=o.call(t);if(r==="[object Window]"||r==="[object global]"||r==="[object DOMWindow]")return!1}if(typeof t.then=="function")return!0}catch{return!1}return!1}var Ir=[],We=[],xt=0,ze;function Or(){if(!xt&&ze){var t=ze;ze=null,t.resolve()}}function Dt(){xt+=1}function Fe(){xt-=1,Or()}var x=function(){function t(r){var a=this;if(this.resolved=void 0,this.rejected=void 0,this.errorHandled=void 0,this.value=void 0,this.error=void 0,this.handlers=void 0,this.dispatching=void 0,this.stack=void 0,this.resolved=!1,this.rejected=!1,this.errorHandled=!1,this.handlers=[],r){var s,c,d=!1,p=!1,l=!1;Dt();try{r(function(f){l?a.resolve(f):(d=!0,s=f)},function(f){l?a.reject(f):(p=!0,c=f)})}catch(f){Fe(),this.reject(f);return}Fe(),l=!0,d?this.resolve(s):p&&this.reject(c)}}var o=t.prototype;return o.resolve=function(r){if(this.resolved||this.rejected)return this;if(we(r))throw new Error("Can not resolve promise with another promise");return this.resolved=!0,this.value=r,this.dispatch(),this},o.reject=function(r){var a=this;if(this.resolved||this.rejected)return this;if(we(r))throw new Error("Can not reject promise with another promise");if(!r){var s=r&&typeof r.toString=="function"?r.toString():{}.toString.call(r);r=new Error("Expected reject to be called with Error, got "+s)}return this.rejected=!0,this.error=r,this.errorHandled||setTimeout(function(){a.errorHandled||function(c,d){if(Ir.indexOf(c)===-1){Ir.push(c),setTimeout(function(){throw c},1);for(var p=0;p<We.length;p++)We[p](c,d)}}(r,a)},1),this.dispatch(),this},o.asyncReject=function(r){return this.errorHandled=!0,this.reject(r),this},o.dispatch=function(){var r=this.resolved,a=this.rejected,s=this.handlers;if(!this.dispatching&&(r||a)){this.dispatching=!0,Dt();for(var c=function(m,T){return m.then(function(b){T.resolve(b)},function(b){T.reject(b)})},d=0;d<s.length;d++){var p=s[d],l=p.onSuccess,f=p.onError,y=p.promise,v=void 0;if(r)try{v=l?l(this.value):this.value}catch(m){y.reject(m);continue}else if(a){if(!f){y.reject(this.error);continue}try{v=f(this.error)}catch(m){y.reject(m);continue}}if(v instanceof t&&(v.resolved||v.rejected)){var w=v;w.resolved?y.resolve(w.value):y.reject(w.error),w.errorHandled=!0}else we(v)?v instanceof t&&(v.resolved||v.rejected)?v.resolved?y.resolve(v.value):y.reject(v.error):c(v,y):y.resolve(v)}s.length=0,this.dispatching=!1,Fe()}},o.then=function(r,a){if(r&&typeof r!="function"&&!r.call)throw new Error("Promise.then expected a function for success handler");if(a&&typeof a!="function"&&!a.call)throw new Error("Promise.then expected a function for error handler");var s=new t;return this.handlers.push({promise:s,onSuccess:r,onError:a}),this.errorHandled=!0,this.dispatch(),s},o.catch=function(r){return this.then(void 0,r)},o.finally=function(r){if(r&&typeof r!="function"&&!r.call)throw new Error("Promise.finally expected a function");return this.then(function(a){return t.try(r).then(function(){return a})},function(a){return t.try(r).then(function(){throw a})})},o.timeout=function(r,a){var s=this;if(this.resolved||this.rejected)return this;var c=setTimeout(function(){s.resolved||s.rejected||s.reject(a||new Error("Promise timed out after "+r+"ms"))},r);return this.then(function(d){return clearTimeout(c),d})},o.toPromise=function(){if(typeof Promise>"u")throw new TypeError("Could not find Promise");return Promise.resolve(this)},o.lazy=function(){return this.errorHandled=!0,this},t.resolve=function(r){return r instanceof t?r:we(r)?new t(function(a,s){return r.then(a,s)}):new t().resolve(r)},t.reject=function(r){return new t().reject(r)},t.asyncReject=function(r){return new t().asyncReject(r)},t.all=function(r){var a=new t,s=r.length,c=[].slice();if(!s)return a.resolve(c),a;for(var d=function(f,y,v){return y.then(function(w){c[f]=w,(s-=1)==0&&a.resolve(c)},function(w){v.reject(w)})},p=0;p<r.length;p++){var l=r[p];if(l instanceof t){if(l.resolved){c[p]=l.value,s-=1;continue}}else if(!we(l)){c[p]=l,s-=1;continue}d(p,t.resolve(l),a)}return s===0&&a.resolve(c),a},t.hash=function(r){var a={},s=[],c=function(p){if(r.hasOwnProperty(p)){var l=r[p];we(l)?s.push(l.then(function(f){a[p]=f})):a[p]=l}};for(var d in r)c(d);return t.all(s).then(function(){return a})},t.map=function(r,a){return t.all(r.map(a))},t.onPossiblyUnhandledException=function(r){return function(a){return We.push(a),{cancel:function(){We.splice(We.indexOf(a),1)}}}(r)},t.try=function(r,a,s){if(r&&typeof r!="function"&&!r.call)throw new Error("Promise.try expected a function");var c;Dt();try{c=r.apply(a,s||[])}catch(d){return Fe(),t.reject(d)}return Fe(),t.resolve(c)},t.delay=function(r){return new t(function(a){setTimeout(a,r)})},t.isPromise=function(r){return!!(r&&r instanceof t)||we(r)},t.flush=function(){return function(r){var a=ze=ze||new r;return Or(),a}(t)},t}();function at(t,o){for(var r=0;r<t.length;r++)try{if(t[r]===o)return r}catch{}return-1}var Rt=function(){function t(){if(this.name=void 0,this.weakmap=void 0,this.keys=void 0,this.values=void 0,this.name="__weakmap_"+(1e9*Math.random()>>>0)+"__",function(){if(typeof WeakMap>"u"||Object.freeze===void 0)return!1;try{var r=new WeakMap,a={};return Object.freeze(a),r.set(a,"__testvalue__"),r.get(a)==="__testvalue__"}catch{return!1}}())try{this.weakmap=new WeakMap}catch{}this.keys=[],this.values=[]}var o=t.prototype;return o._cleanupClosedWindows=function(){for(var r=this.weakmap,a=this.keys,s=0;s<a.length;s++){var c=a[s];if(it(c)&&k(c)){if(r)try{r.delete(c)}catch{}a.splice(s,1),this.values.splice(s,1),s-=1}}},o.isSafeToReadWrite=function(r){return!it(r)},o.set=function(r,a){if(!r)throw new Error("WeakMap expected key");var s=this.weakmap;if(s)try{s.set(r,a)}catch{delete this.weakmap}if(this.isSafeToReadWrite(r))try{var c=this.name,d=r[c];d&&d[0]===r?d[1]=a:Object.defineProperty(r,c,{value:[r,a],writable:!0});return}catch{}this._cleanupClosedWindows();var p=this.keys,l=this.values,f=at(p,r);f===-1?(p.push(r),l.push(a)):l[f]=a},o.get=function(r){if(!r)throw new Error("WeakMap expected key");var a=this.weakmap;if(a)try{if(a.has(r))return a.get(r)}catch{delete this.weakmap}if(this.isSafeToReadWrite(r))try{var s=r[this.name];return s&&s[0]===r?s[1]:void 0}catch{}this._cleanupClosedWindows();var c=at(this.keys,r);if(c!==-1)return this.values[c]},o.delete=function(r){if(!r)throw new Error("WeakMap expected key");var a=this.weakmap;if(a)try{a.delete(r)}catch{delete this.weakmap}if(this.isSafeToReadWrite(r))try{var s=r[this.name];s&&s[0]===r&&(s[0]=s[1]=void 0)}catch{}this._cleanupClosedWindows();var c=this.keys,d=at(c,r);d!==-1&&(c.splice(d,1),this.values.splice(d,1))},o.has=function(r){if(!r)throw new Error("WeakMap expected key");var a=this.weakmap;if(a)try{if(a.has(r))return!0}catch{delete this.weakmap}if(this.isSafeToReadWrite(r))try{var s=r[this.name];return!(!s||s[0]!==r)}catch{}return this._cleanupClosedWindows(),at(this.keys,r)!==-1},o.getOrSet=function(r,a){if(this.has(r))return this.get(r);var s=a();return this.set(r,s),s},t}();function Cr(t){return t.name||t.__name__||t.displayName||"anonymous"}function xr(t,o){try{delete t.name,t.name=o}catch{}return t.__name__=t.displayName=o,t}function te(){var t="0123456789abcdef";return"uid_"+"xxxxxxxxxx".replace(/./g,function(){return t.charAt(Math.floor(Math.random()*t.length))})+"_"+function(o){if(typeof btoa=="function")return btoa(encodeURIComponent(o).replace(/%([0-9A-F]{2})/g,function(r,a){return String.fromCharCode(parseInt(a,16))})).replace(/[=]/g,"");if(typeof Buffer<"u")return Buffer.from(o,"utf8").toString("base64").replace(/[=]/g,"");throw new Error("Can not find window.btoa or Buffer")}(new Date().toISOString().slice(11,19).replace("T",".")).replace(/[^a-zA-Z0-9]/g,"").toLowerCase()}var st;function Dr(t){try{return JSON.stringify([].slice.call(t),function(o,r){return typeof r=="function"?"memoize["+function(a){if(st=st||new Rt,a==null||typeof a!="object"&&typeof a!="function")throw new Error("Invalid object");var s=st.get(a);return s||(s=typeof a+":"+te(),st.set(a,s)),s}(r)+"]":typeof window<"u"&&r instanceof window.Element||r!==null&&typeof r=="object"&&r.nodeType===1&&typeof r.style=="object"&&typeof r.ownerDocument=="object"?{}:r})}catch{throw new Error("Arguments not serializable -- can not be used to memoize")}}function hf(){return{}}var Ge=0,Rr=0;function qe(t,o){o===void 0&&(o={});var r=o.thisNamespace,a=r!==void 0&&r,s=o.time,c,d,p=Ge;Ge+=1;var l=function(){for(var f=arguments.length,y=new Array(f),v=0;v<f;v++)y[v]=arguments[v];p<Rr&&(c=null,d=null,p=Ge,Ge+=1);var w;w=a?(d=d||new Rt).getOrSet(this,hf):c=c||{};var m;try{m=Dr(y)}catch{return t.apply(this,arguments)}var T=w[m];if(T&&s&&Date.now()-T.time<s&&(delete w[m],T=null),T)return T.value;var b=Date.now(),S=t.apply(this,arguments);return w[m]={time:b,value:S},S};return l.reset=function(){c=null,d=null},xr(l,(o.name||Cr(t))+"::memoized")}qe.clear=function(){Rr=Ge};function pf(t){var o={};function r(){for(var a=arguments,s=this,c=arguments.length,d=new Array(c),p=0;p<c;p++)d[p]=arguments[p];var l=Dr(d);return o.hasOwnProperty(l)||(o[l]=x.try(function(){return t.apply(s,a)}).finally(function(){delete o[l]})),o[l]}return r.reset=function(){o={}},xr(r,Cr(t)+"::promiseMemoized")}function _e(){}function Ve(t,o){if(o===void 0&&(o=1),o>=3)return"stringifyError stack overflow";try{if(!t)return"<unknown error: "+{}.toString.call(t)+">";if(typeof t=="string")return t;if(t instanceof Error){var r=t&&t.stack,a=t&&t.message;if(r&&a)return r.indexOf(a)!==-1?r:a+`
|
|
3
|
+
`+r;if(r)return r;if(a)return a}return t&&t.toString&&typeof t.toString=="function"?t.toString():{}.toString.call(t)}catch(s){return"Error while stringifying error: "+Ve(s,o+1)}}function jr(t){return typeof t=="string"?t:t&&t.toString&&typeof t.toString=="function"?t.toString():{}.toString.call(t)}qe(function(t){if(Object.values)return Object.values(t);var o=[];for(var r in t)t.hasOwnProperty(r)&&o.push(t[r]);return o});function jt(t){return{}.toString.call(t)==="[object RegExp]"}function He(t,o,r){if(t.hasOwnProperty(o))return t[o];var a=r();return t[o]=a,a}function Nr(){var t=document.body;if(!t)throw new Error("Body element not found");return t}function Ur(){return!!document.body&&document.readyState==="complete"}function Mr(){return!!document.body&&document.readyState==="interactive"}qe(function(){return new x(function(t){if(Ur()||Mr())return t();var o=setInterval(function(){if(Ur()||Mr())return clearInterval(o),t()},10)})});var ut=typeof document<"u"?document.currentScript:null,gf=qe(function(){if(ut||(ut=function(){try{var t=function(){try{throw new Error("_")}catch(d){return d.stack||""}}(),o=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(t),r=o&&o[1];if(!r)return;for(var a=0,s=[].slice.call(document.getElementsByTagName("script")).reverse();a<s.length;a++){var c=s[a];if(c.src&&c.src===r)return c}}catch{}}()))return ut;throw new Error("Can not determine current script")}),vf=te();qe(function(){var t;try{t=gf()}catch{return vf}var o=t.getAttribute("data-uid");if(o&&typeof o=="string"||(o=t.getAttribute("data-uid-auto"))&&typeof o=="string")return o;if(t.src){var r=function(a){for(var s="",c=0;c<a.length;c++){var d=a[c].charCodeAt(0)*c;a[c+1]&&(d+=a[c+1].charCodeAt(0)*(c-1)),s+=String.fromCharCode(97+Math.abs(d)%26)}return s}(JSON.stringify({src:t.src,dataset:t.dataset}));o="uid_"+r.slice(r.length-30)}else o=te();return t.setAttribute("data-uid-auto",o),o});function Be(t){t===void 0&&(t=window);var o="__post_robot_10_0_46__";return t!==window?t[o]:t[o]=t[o]||{}}var Lr=function(){return{}};function z(t,o){return t===void 0&&(t="store"),o===void 0&&(o=Lr),He(Be(),t,function(){var r=o();return{has:function(a){return r.hasOwnProperty(a)},get:function(a,s){return r.hasOwnProperty(a)?r[a]:s},set:function(a,s){return r[a]=s,s},del:function(a){delete r[a]},getOrSet:function(a,s){return He(r,a,s)},reset:function(){r=o()},keys:function(){return Object.keys(r)}}})}var wf=function(){};function ct(){var t=Be();return t.WINDOW_WILDCARD=t.WINDOW_WILDCARD||new wf,t.WINDOW_WILDCARD}function V(t,o){return t===void 0&&(t="store"),o===void 0&&(o=Lr),z("windowStore").getOrSet(t,function(){var r=new Rt,a=function(s){return r.getOrSet(s,o)};return{has:function(s){return a(s).hasOwnProperty(t)},get:function(s,c){var d=a(s);return d.hasOwnProperty(t)?d[t]:c},set:function(s,c){return a(s)[t]=c,c},del:function(s){delete a(s)[t]},getOrSet:function(s,c){return He(a(s),t,c)}}})}function $r(){return z("instance").getOrSet("instanceID",te)}function Wr(t,o){var r=o.domain,a=V("helloPromises"),s=a.get(t);s&&s.resolve({domain:r});var c=x.resolve({domain:r});return a.set(t,c),c}function Nt(t,o){return(0,o.send)(t,"postrobot_hello",{instanceID:$r()},{domain:"*",timeout:-1}).then(function(r){var a=r.origin,s=r.data.instanceID;return Wr(t,{domain:a}),{win:t,domain:a,instanceID:s}})}function zr(t,o){var r=o.send;return V("windowInstanceIDPromises").getOrSet(t,function(){return Nt(t,{send:r}).then(function(a){return a.instanceID})})}function Fr(t){V("knownWindows").set(t,!0)}function Ut(t){return typeof t=="object"&&t!==null&&typeof t.__type__=="string"}function Gr(t){return t===void 0?"undefined":t===null?"null":Array.isArray(t)?"array":typeof t=="function"?"function":typeof t=="object"?t instanceof Error?"error":typeof t.then=="function"?"promise":{}.toString.call(t)==="[object RegExp]"?"regex":{}.toString.call(t)==="[object Date]"?"date":"object":typeof t=="string"?"string":typeof t=="number"?"number":typeof t=="boolean"?"boolean":void 0}function ye(t,o){return{__type__:t,__val__:o}}var B,_f=((B={}).function=function(){},B.error=function(t){return ye("error",{message:t.message,stack:t.stack,code:t.code,data:t.data})},B.promise=function(){},B.regex=function(t){return ye("regex",t.source)},B.date=function(t){return ye("date",t.toJSON())},B.array=function(t){return t},B.object=function(t){return t},B.string=function(t){return t},B.number=function(t){return t},B.boolean=function(t){return t},B.null=function(t){return t},B[void 0]=function(t){return ye("undefined",t)},B),yf={},Y,mf=((Y={}).function=function(){throw new Error("Function serialization is not implemented; nothing to deserialize")},Y.error=function(t){var o=t.stack,r=t.code,a=t.data,s=new Error(t.message);return s.code=r,a&&(s.data=a),s.stack=o+`
|
|
4
4
|
|
|
5
|
-
`+
|
|
5
|
+
`+s.stack,s},Y.promise=function(){throw new Error("Promise serialization is not implemented; nothing to deserialize")},Y.regex=function(t){return new RegExp(t)},Y.date=function(t){return new Date(t)},Y.array=function(t){return t},Y.object=function(t){return t},Y.string=function(t){return t},Y.number=function(t){return t},Y.boolean=function(t){return t},Y.null=function(t){return t},Y[void 0]=function(){},Y),Ef={};new x(function(t){if(window.document&&window.document.body)return t(window.document.body);var o=setInterval(function(){if(window.document&&window.document.body)return clearInterval(o),t(window.document.body)},10)});function Mt(){for(var t=z("idToProxyWindow"),o=0,r=t.keys();o<r.length;o++){var a=r[o];t.get(a).shouldClean()&&t.del(a)}}function qr(t,o){var r=o.send,a=o.id,s=a===void 0?te():a,c=t.then(function(l){if(X(l))return H(l).name}),d=t.then(function(l){if(k(l))throw new Error("Window is closed, can not determine type");return ie(l)?"popup":"iframe"});c.catch(_e),d.catch(_e);var p=function(){return t.then(function(l){if(!k(l))return X(l)?H(l).name:c})};return{id:s,getType:function(){return d},getInstanceID:pf(function(){return t.then(function(l){return zr(l,{send:r})})}),close:function(){return t.then(lf)},getName:p,focus:function(){return t.then(function(l){l.focus()})},isClosed:function(){return t.then(function(l){return k(l)})},setLocation:function(l,f){return f===void 0&&(f={}),t.then(function(y){var v=window.location.protocol+"//"+window.location.host,w=f.method,m=w===void 0?"get":w,T=f.body;if(l.indexOf("/")===0)l=""+v+l;else if(!l.match(/^https?:\/\//)&&l.indexOf(v)!==0)throw new Error("Expected url to be http or https url, or absolute path, got "+JSON.stringify(l));if(m==="post")return p().then(function(b){if(!b)throw new Error("Can not post to window without target name");(function(S){var R=S.url,W=S.target,U=S.body,j=S.method,F=j===void 0?"post":j,O=document.createElement("form");if(O.setAttribute("target",W),O.setAttribute("method",F),O.setAttribute("action",R),O.style.display="none",U)for(var M=0,Z=Object.keys(U);M<Z.length;M++){var $,Ye=Z[M],zt=document.createElement("input");zt.setAttribute("name",Ye),zt.setAttribute("value",($=U[Ye])==null?void 0:$.toString()),O.appendChild(zt)}Nr().appendChild(O),O.submit(),Nr().removeChild(O)})({url:l,target:b,method:m,body:T})});if(m!=="get")throw new Error("Unsupported method: "+m);if(X(y))try{if(y.location&&typeof y.location.replace=="function"){y.location.replace(l);return}}catch{}y.location=l})},setName:function(l){return t.then(function(f){var y=X(f),v=Pr(f);if(!y)throw new Error("Can not set name for cross-domain window: "+l);H(f).name=l,v&&v.setAttribute("name",l),c=x.resolve(l)})}}}var J=function(){function t(r){var a=r.send,s=r.win,c=r.serializedWindow;this.id=void 0,this.isProxyWindow=!0,this.serializedWindow=void 0,this.actualWindow=void 0,this.actualWindowPromise=void 0,this.send=void 0,this.name=void 0,this.actualWindowPromise=new x,this.serializedWindow=c||qr(this.actualWindowPromise,{send:a}),z("idToProxyWindow").set(this.getID(),this),s&&this.setWindow(s,{send:a})}var o=t.prototype;return o.getID=function(){return this.serializedWindow.id},o.getType=function(){return this.serializedWindow.getType()},o.isPopup=function(){return this.getType().then(function(r){return r==="popup"})},o.setLocation=function(r,a){var s=this;return this.serializedWindow.setLocation(r,a).then(function(){return s})},o.getName=function(){return this.serializedWindow.getName()},o.setName=function(r){var a=this;return this.serializedWindow.setName(r).then(function(){return a})},o.close=function(){var r=this;return this.serializedWindow.close().then(function(){return r})},o.focus=function(){var r=this,a=this.isPopup(),s=this.getName(),c=x.hash({isPopup:a,name:s}).then(function(p){var l=p.name;p.isPopup&&l&&window.open("",l,"noopener")}),d=this.serializedWindow.focus();return x.all([c,d]).then(function(){return r})},o.isClosed=function(){return this.serializedWindow.isClosed()},o.getWindow=function(){return this.actualWindow},o.setWindow=function(r,a){var s=a.send;this.actualWindow=r,this.actualWindowPromise.resolve(this.actualWindow),this.serializedWindow=qr(this.actualWindowPromise,{send:s,id:this.getID()}),V("winToProxyWindow").set(r,this)},o.awaitWindow=function(){return this.actualWindowPromise},o.matchWindow=function(r,a){var s=this,c=a.send;return x.try(function(){return s.actualWindow?r===s.actualWindow:x.hash({proxyInstanceID:s.getInstanceID(),knownWindowInstanceID:zr(r,{send:c})}).then(function(d){var p=d.proxyInstanceID===d.knownWindowInstanceID;return p&&s.setWindow(r,{send:c}),p})})},o.unwrap=function(){return this.actualWindow||this},o.getInstanceID=function(){return this.serializedWindow.getInstanceID()},o.shouldClean=function(){return!!(this.actualWindow&&k(this.actualWindow))},o.serialize=function(){return this.serializedWindow},t.unwrap=function(r){return t.isProxyWindow(r)?r.unwrap():r},t.serialize=function(r,a){var s=a.send;return Mt(),t.toProxyWindow(r,{send:s}).serialize()},t.deserialize=function(r,a){var s=a.send;return Mt(),z("idToProxyWindow").get(r.id)||new t({serializedWindow:r,send:s})},t.isProxyWindow=function(r){return!!(r&&!it(r)&&r.isProxyWindow)},t.toProxyWindow=function(r,a){var s=a.send;if(Mt(),t.isProxyWindow(r))return r;var c=r;return V("winToProxyWindow").get(c)||new t({win:c,send:s})},t}();function Lt(t,o,r,a,s){var c=V("methodStore"),d=z("proxyWindowMethods");J.isProxyWindow(a)?d.set(t,{val:o,name:r,domain:s,source:a}):(d.del(t),c.getOrSet(a,function(){return{}})[t]={domain:s,name:r,val:o,source:a})}function Vr(t,o){var r=V("methodStore"),a=z("proxyWindowMethods");return r.getOrSet(t,function(){return{}})[o]||a.get(o)}function Hr(t,o,r,a,s){d=(c={on:s.on,send:s.send}).on,p=c.send,z("builtinListeners").getOrSet("functionCalls",function(){return d("postrobot_method",{domain:"*"},function(y){var v=y.source,w=y.origin,m=y.data,T=m.id,b=m.name,S=Vr(v,T);if(!S)throw new Error("Could not find method '"+b+"' with id: "+m.id+" in "+q(window));var R=S.source,W=S.domain,U=S.val;return x.try(function(){if(!xe(W,w))throw new Error("Method '"+m.name+"' domain "+JSON.stringify(jt(S.domain)?S.domain.source:S.domain)+" does not match origin "+w+" in "+q(window));if(J.isProxyWindow(R))return R.matchWindow(v,{send:p}).then(function(j){if(!j)throw new Error("Method call '"+m.name+"' failed - proxy window does not match source in "+q(window))})}).then(function(){return U.apply({source:v,origin:w},m.args)},function(j){return x.try(function(){if(U.onError)return U.onError(j)}).then(function(){throw j.stack&&(j.stack="Remote call to "+b+"("+function(F){return F===void 0&&(F=[]),(O=F,[].slice.call(O)).map(function(M){return typeof M=="string"?"'"+M+"'":M===void 0?"undefined":M===null?"null":typeof M=="boolean"?M.toString():Array.isArray(M)?"[ ... ]":typeof M=="object"?"{ ... }":typeof M=="function"?"() => { ... }":"<"+typeof M+">"}).join(", ");var O}(m.args)+`) failed
|
|
6
6
|
|
|
7
|
-
`+
|
|
7
|
+
`+j.stack),j})}).then(function(j){return{result:j,id:T,name:b}})})});var c,d,p,l=r.__id__||te();t=J.unwrap(t);var f=r.__name__||r.name||a;return typeof f=="string"&&typeof f.indexOf=="function"&&f.indexOf("anonymous::")===0&&(f=f.replace("anonymous::",a+"::")),J.isProxyWindow(t)?(Lt(l,r,f,t,o),t.awaitWindow().then(function(y){Lt(l,r,f,y,o)})):Lt(l,r,f,t,o),ye("cross_domain_function",{id:l,name:f})}function Br(t,o,r,a){var s,c=a.on,d=a.send;return function(p,l){l===void 0&&(l=yf);var f=JSON.stringify(p,function(y){var v=this[y];if(Ut(this))return v;var w=Gr(v);if(!w)return v;var m=l[w]||_f[w];return m?m(v,y):v});return f===void 0?"undefined":f}(r,((s={}).promise=function(p,l){return function(f,y,v,w,m){return ye("cross_domain_zalgo_promise",{then:Hr(f,y,function(T,b){return v.then(T,b)},w,{on:m.on,send:m.send})})}(t,o,p,l,{on:c,send:d})},s.function=function(p,l){return Hr(t,o,p,l,{on:c,send:d})},s.object=function(p){return it(p)||J.isProxyWindow(p)?ye("cross_domain_window",J.serialize(p,{send:d})):p},s))}function Yr(t,o,r,a){var s,c=a.send;return function(d,p){if(p===void 0&&(p=Ef),d!=="undefined")return JSON.parse(d,function(l,f){if(Ut(this))return f;var y,v;if(Ut(f)?(y=f.__type__,v=f.__val__):(y=Gr(f),v=f),!y)return v;var w=p[y]||mf[y];return w?w(v,l):v})}(r,((s={}).cross_domain_zalgo_promise=function(d){return function(p,l,f){return new x(f.then)}(0,0,d)},s.cross_domain_function=function(d){return function(p,l,f,y){var v=f.id,w=f.name,m=y.send,T=function(S){S===void 0&&(S={});function R(){var W=arguments;return J.toProxyWindow(p,{send:m}).awaitWindow().then(function(U){var j=Vr(U,v);if(j&&j.val!==R)return j.val.apply({source:window,origin:q()},W);var F=[].slice.call(W);return S.fireAndForget?m(U,"postrobot_method",{id:v,name:w,args:F},{domain:l,fireAndForget:!0}):m(U,"postrobot_method",{id:v,name:w,args:F},{domain:l,fireAndForget:!1}).then(function(O){return O.data.result})}).catch(function(U){throw U})}return R.__name__=w,R.__origin__=l,R.__source__=p,R.__id__=v,R.origin=l,R},b=T();return b.fireAndForget=T({fireAndForget:!0}),b}(t,o,d,{send:c})},s.cross_domain_window=function(d){return J.deserialize(d,{send:c})},s))}var $t={};$t.postrobot_post_message=function(t,o,r){r.indexOf("file:")===0&&(r="*"),t.postMessage(o,r)};function Wt(t,o,r,a){var s=a.on,c=a.send;return x.try(function(){var d=V().getOrSet(t,function(){return{}});return d.buffer=d.buffer||[],d.buffer.push(r),d.flush=d.flush||x.flush().then(function(){if(k(t))throw new Error("Window is closed");var p=Br(t,o,((l={}).__post_robot_10_0_46__=d.buffer||[],l),{on:s,send:c}),l;delete d.buffer;for(var f=Object.keys($t),y=[],v=0;v<f.length;v++){var w=f[v];try{$t[w](t,p,o)}catch(m){y.push(m)}}if(y.length===f.length)throw new Error(`All post-robot messaging strategies failed:
|
|
8
8
|
|
|
9
|
-
`+
|
|
9
|
+
`+y.map(function(m,T){return T+". "+Ve(m)}).join(`
|
|
10
10
|
|
|
11
|
-
`))}),
|
|
11
|
+
`))}),d.flush.then(function(){delete d.flush})}).then(_e)}function Jr(t){return z("responseListeners").get(t)}function kr(t){z("responseListeners").del(t)}function Zr(t){return z("erroredResponseListeners").has(t)}function Kr(t){var o=t.name,r=t.win,a=t.domain,s=V("requestListeners");if(r==="*"&&(r=null),a==="*"&&(a=null),!o)throw new Error("Name required to get request listener");for(var c=0,d=[r,ct()];c<d.length;c++){var p=d[c];if(p){var l=s.get(p);if(l){var f=l[o];if(f){if(a&&typeof a=="string"){if(f[a])return f[a];if(f.__domain_regex__)for(var y=0,v=f.__domain_regex__;y<v.length;y++){var w=v[y],m=w.listener;if(xe(w.regex,a))return m}}if(f["*"])return f["*"]}}}}}function Af(t,o,r,a){var s=a.on,c=a.send,d=Kr({name:r.name,win:t,domain:o}),p=r.name==="postrobot_method"&&r.data&&typeof r.data.name=="string"?r.data.name+"()":r.name;function l(f,y,v){return x.flush().then(function(){if(!r.fireAndForget&&!k(t))try{return Wt(t,o,{id:te(),origin:q(window),type:"postrobot_message_response",hash:r.hash,name:r.name,ack:f,data:y,error:v},{on:s,send:c})}catch(w){throw new Error("Send response message failed for "+p+" in "+q()+`
|
|
12
12
|
|
|
13
|
-
`+
|
|
13
|
+
`+Ve(w))}})}return x.all([x.flush().then(function(){if(!r.fireAndForget&&!k(t))try{return Wt(t,o,{id:te(),origin:q(window),type:"postrobot_message_ack",hash:r.hash,name:r.name},{on:s,send:c})}catch(f){throw new Error("Send ack message failed for "+p+" in "+q()+`
|
|
14
14
|
|
|
15
|
-
`+
|
|
15
|
+
`+Ve(f))}}),x.try(function(){if(!d)throw new Error("No handler found for post message: "+r.name+" from "+o+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);return d.handler({source:t,origin:o,data:r.data})}).then(function(f){return l("success",f)},function(f){return l("error",null,f)})]).then(_e).catch(function(f){if(d&&d.handleError)return d.handleError(f);throw f})}function bf(t,o,r){if(!Zr(r.hash)){var a=Jr(r.hash);if(!a)throw new Error("No handler found for post message ack for message: "+r.name+" from "+o+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);try{if(!xe(a.domain,o))throw new Error("Ack origin "+o+" does not match domain "+a.domain.toString());if(t!==a.win)throw new Error("Ack source does not match registered window")}catch(s){a.promise.reject(s)}a.ack=!0}}function Sf(t,o,r){if(!Zr(r.hash)){var a=Jr(r.hash);if(!a)throw new Error("No handler found for post message response for message: "+r.name+" from "+o+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);if(!xe(a.domain,o))throw new Error("Response origin "+o+" does not match domain "+(s=a.domain,Array.isArray(s)?"("+s.join(" | ")+")":g(s)?"RegExp("+s.toString()+")":s.toString()));var s;if(t!==a.win)throw new Error("Response source does not match registered window");kr(r.hash),r.ack==="error"?a.promise.reject(r.error):r.ack==="success"&&a.promise.resolve({source:t,origin:o,data:r.data})}}function Qr(t,o){var r=o.on,a=o.send,s=z("receivedMessages");try{if(!window||window.closed||!t.source)return}catch{return}var c=t.source,d=t.origin,p=function(y,v,w,m){var T=m.on,b=m.send,S;try{S=Yr(v,w,y,{on:T,send:b})}catch{return}if(S&&typeof S=="object"&&S!==null){var R=S.__post_robot_10_0_46__;if(Array.isArray(R))return R}}(t.data,c,d,{on:r,send:a});if(p){Fr(c);for(var l=0;l<p.length;l++){var f=p[l];if(s.has(f.id)||(s.set(f.id,!0),k(c)&&!f.fireAndForget))return;f.origin.indexOf("file:")===0&&(d="file://");try{f.type==="postrobot_message_request"?Af(c,d,f,{on:r,send:a}):f.type==="postrobot_message_response"?Sf(c,d,f):f.type==="postrobot_message_ack"&&bf(c,d,f)}catch(y){setTimeout(function(){throw y},0)}}}}function se(t,o,r){if(!t)throw new Error("Expected name");if(typeof(o=o||{})=="function"&&(r=o,o={}),!r)throw new Error("Expected handler");var a=function s(c,d){var p=c.name,l=c.win,f=c.domain,y=V("requestListeners");if(!p||typeof p!="string")throw new Error("Name required to add request listener");if(l&&l!=="*"&&J.isProxyWindow(l)){var v=l.awaitWindow().then(function($){return s({name:p,win:$,domain:f},d)});return{cancel:function(){v.then(function($){return $.cancel()},_e)}}}var w=l;if(Array.isArray(w)){for(var m=[],T=0,b=w;T<b.length;T++)m.push(s({name:p,domain:f,win:b[T]},d));return{cancel:function(){for(var $=0;$<m.length;$++)m[$].cancel()}}}if(Array.isArray(f)){for(var S=[],R=0,W=f;R<W.length;R++)S.push(s({name:p,win:w,domain:W[R]},d));return{cancel:function(){for(var $=0;$<S.length;$++)S[$].cancel()}}}var U=Kr({name:p,win:w,domain:f});w&&w!=="*"||(w=ct());var j=(f=f||"*").toString();if(U)throw w&&f?new Error("Request listener already exists for "+p+" on domain "+f.toString()+" for "+(w===ct()?"wildcard":"specified")+" window"):w?new Error("Request listener already exists for "+p+" for "+(w===ct()?"wildcard":"specified")+" window"):f?new Error("Request listener already exists for "+p+" on domain "+f.toString()):new Error("Request listener already exists for "+p);var F=y.getOrSet(w,function(){return{}}),O=He(F,p,function(){return{}}),M,Z;return jt(f)?(M=He(O,"__domain_regex__",function(){return[]})).push(Z={regex:f,listener:d}):O[j]=d,{cancel:function(){delete O[j],Z&&(M.splice(M.indexOf(Z,1)),M.length||delete O.__domain_regex__),Object.keys(O).length||delete F[p],w&&!Object.keys(F).length&&y.del(w)}}}({name:t,win:o.window,domain:o.domain||"*"},{handler:r||o.handler,handleError:o.errorHandler||function(s){throw s}});return{cancel:function(){a.cancel()}}}function Tf(t,o,r){typeof(o=o||{})=="function"&&(r=o,o={});var a=new x,s;return o.errorHandler=function(c){s.cancel(),a.reject(c)},s=se(t,o,function(c){if(s.cancel(),a.resolve(c),r)return r(c)}),a.cancel=s.cancel,a}var ue=function t(o,r,a,s){var c=(s=s||{}).domain||"*",d=s.timeout||-1,p=s.timeout||5e3,l=s.fireAndForget||!1;return J.toProxyWindow(o,{send:t}).awaitWindow().then(function(f){return x.try(function(){if(function(y,v,w){if(!y)throw new Error("Expected name");if(w&&typeof w!="string"&&!Array.isArray(w)&&!jt(w))throw new TypeError("Can not send "+y+". Expected domain "+JSON.stringify(w)+" to be a string, array, or regex");if(k(v))throw new Error("Can not send "+y+". Target window is closed")}(r,f,c),function(y,v){var w=Tr(v);if(w)return w===y;if(v===y||function(b){b===void 0&&(b=window);try{if(b.top)return b.top}catch{}if(Q(b)===b)return b;try{if(ee(window,b)&&window.top)return window.top}catch{}try{if(ee(b,window)&&window.top)return window.top}catch{}for(var S=0,R=function U(j){for(var F=[],O=0,M=Sr(j);O<M.length;O++){var Z=M[O];F.push(Z);for(var $=0,Ye=U(Z);$<Ye.length;$++)F.push(Ye[$])}return F}(b);S<R.length;S++){var W=R[S];try{if(W.top)return W.top}catch{}if(Q(W)===W)return W}}(v)===v)return!1;for(var m=0,T=Sr(y);m<T.length;m++)if(T[m]===v)return!0;return!1}(window,f))return function(y,v,w){v===void 0&&(v=5e3),w===void 0&&(w="Window");var m=function(T){return V("helloPromises").getOrSet(T,function(){return new x})}(y);return v!==-1&&(m=m.timeout(v,new Error(w+" did not load after "+v+"ms"))),m}(f,p)}).then(function(y){return function(v,w,m,T){var b=T.send;return x.try(function(){return typeof w=="string"?w:x.try(function(){return m||Nt(v,{send:b}).then(function(S){return S.domain})}).then(function(S){if(!xe(w,w))throw new Error("Domain "+jr(w)+" does not match "+jr(w));return S})})}(f,c,(y===void 0?{}:y).domain,{send:t})}).then(function(y){var v=y,w=r==="postrobot_method"&&a&&typeof a.name=="string"?a.name+"()":r,m=new x,T=r+"_"+te();if(!l){var b={name:r,win:f,domain:v,promise:m};(function(O,M){z("responseListeners").set(O,M)})(T,b);var S=V("requestPromises").getOrSet(f,function(){return[]});S.push(m),m.catch(function(){(function(O){z("erroredResponseListeners").set(O,!0)})(T),kr(T)});var R=function(O){return V("knownWindows").get(O,!1)}(f)?1e4:2e3,W=d,U=R,j=W,F=function(O,M){var Z;return function $(){Z=setTimeout(function(){(function(){if(k(f))return m.reject(new Error("Window closed for "+r+" before "+(b.ack?"response":"ack")));if(b.cancelled)return m.reject(new Error("Response listener was cancelled for "+r));U=Math.max(U-500,0),j!==-1&&(j=Math.max(j-500,0)),b.ack||U!==0?j===0&&m.reject(new Error("No response for postMessage "+w+" in "+q()+" in "+W+"ms")):m.reject(new Error("No ack for postMessage "+w+" in "+q()+" in "+R+"ms"))})(),$()},500)}(),{cancel:function(){clearTimeout(Z)}}}();m.finally(function(){F.cancel(),S.splice(S.indexOf(m,1))}).catch(_e)}return Wt(f,v,{id:te(),origin:q(window),type:"postrobot_message_request",hash:T,name:r,data:a,fireAndForget:l},{on:se,send:t}).then(function(){return l?m.resolve():m},function(O){throw new Error("Send request message failed for "+w+" in "+q()+`
|
|
16
16
|
|
|
17
|
-
`+We(I))})})})};function pd(t,o,n){return Lr(t,o,n,{on:ae,send:ue})}function gd(t,o,n){return Wr(t,o,n,{on:ae,send:ue})}function vd(t){return new Z({send:ue,win:t})}function _d(t){return Z.toProxyWindow(t,{send:ue})}function Vr(){ze().initialized||(ze().initialized=!0,o=(t={on:ae,send:ue}).on,n=t.send,(i=ze()).receiveMessage=i.receiveMessage||function(u){return qr(u,{on:o,send:n})},function(u){var c=u.on,f=u.send;$().getOrSet("postMessageListener",function(){return function(p,l,d){return p.addEventListener("message",d),{cancel:function(){p.removeEventListener("message",d)}}}(window,0,function(p){(function(l,d){var _=d.on,g=d.send;C.try(function(){var v=l.source||l.sourceElement,y=l.origin||l.originalEvent&&l.originalEvent.origin,S=l.data;if(y==="null"&&(y="file://"),v){if(!y)throw new Error("Post message did not have origin domain");qr({source:v,origin:y,data:S},{on:_,send:g})}})})(p,{on:c,send:f})})})}({on:ae,send:ue}),function(u){var c=u.on,f=u.send;$("builtinListeners").getOrSet("helloListener",function(){var p=c("postrobot_hello",{domain:"*"},function(d){return xr(d.source,{domain:d.origin}),{instanceID:Cr()}}),l=vr();return l&&Tt(l,{send:f}).catch(function(d){}),p})}({on:ae,send:ue}));var t,o,n,i}function wd(){(function(){for(var o=$("responseListeners"),n=0,i=o.keys();n<i.length;n++){var u=i[n],c=o.get(u);c&&(c.cancelled=!0),o.del(u)}})(),(t=$().get("postMessageListener"))&&t.cancel();var t;delete window.__post_robot_10_0_46__}var yd=!0;function md(t){for(var o=0,n=V("requestPromises").get(t,[]);o<n.length;o++)n[o].reject(new Error("Window "+(J(t)?"closed":"cleaned up")+" before response")).catch(ve)}Vr()}])})})(jt);var Yr=jt.exports;(function(e){e.exports=Yr,e.exports.default=e.exports})(Rt);var Nt=Rt.exports;const Mt=Br(Nt),Zr=Ie({__proto__:null,default:Mt},[Nt]);var Ut=typeof global=="object"&&global&&global.Object===Object&&global,Jr=typeof self=="object"&&self&&self.Object===Object&&self,k=Ut||Jr||Function("return this")(),ie=k.Symbol,Lt=Object.prototype,Kr=Lt.hasOwnProperty,kr=Lt.toString,Pe=ie?ie.toStringTag:void 0;function Qr(e){var r=Kr.call(e,Pe),a=e[Pe];try{e[Pe]=void 0;var s=!0}catch{}var h=kr.call(e);return s&&(r?e[Pe]=a:delete e[Pe]),h}var Xr=Object.prototype,eo=Xr.toString;function to(e){return eo.call(e)}var no="[object Null]",ro="[object Undefined]",Wt=ie?ie.toStringTag:void 0;function we(e){return e==null?e===void 0?ro:no:Wt&&Wt in Object(e)?Qr(e):to(e)}function ye(e){return e!=null&&typeof e=="object"}var oo="[object Symbol]";function io(e){return typeof e=="symbol"||ye(e)&&we(e)==oo}function ao(e,r){for(var a=-1,s=e==null?0:e.length,h=Array(s);++a<s;)h[a]=r(e[a],a,e);return h}var Ge=Array.isArray,uo=1/0,$t=ie?ie.prototype:void 0,zt=$t?$t.toString:void 0;function Ft(e){if(typeof e=="string")return e;if(Ge(e))return ao(e,Ft)+"";if(io(e))return zt?zt.call(e):"";var r=e+"";return r=="0"&&1/e==-uo?"-0":r}function Oe(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}var so="[object AsyncFunction]",co="[object Function]",fo="[object GeneratorFunction]",lo="[object Proxy]";function Gt(e){if(!Oe(e))return!1;var r=we(e);return r==co||r==fo||r==so||r==lo}var nt=k["__core-js_shared__"],qt=function(){var e=/[^.]+$/.exec(nt&&nt.keys&&nt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function ho(e){return!!qt&&qt in e}var po=Function.prototype,go=po.toString;function se(e){if(e!=null){try{return go.call(e)}catch{}try{return e+""}catch{}}return""}var vo=/[\\^$.*+?()[\]{}|]/g,_o=/^\[object .+?Constructor\]$/,wo=Function.prototype,yo=Object.prototype,mo=wo.toString,Ao=yo.hasOwnProperty,Eo=RegExp("^"+mo.call(Ao).replace(vo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function bo(e){if(!Oe(e)||ho(e))return!1;var r=Gt(e)?Eo:_o;return r.test(se(e))}function So(e,r){return e?.[r]}function ce(e,r){var a=So(e,r);return bo(a)?a:void 0}var rt=ce(k,"WeakMap"),Vt=Object.create,To=function(){function e(){}return function(r){if(!Oe(r))return{};if(Vt)return Vt(r);e.prototype=r;var a=new e;return e.prototype=void 0,a}}();function Io(e,r){var a=-1,s=e.length;for(r||(r=Array(s));++a<s;)r[a]=e[a];return r}var Ht=function(){try{var e=ce(Object,"defineProperty");return e({},"",{}),e}catch{}}();function Po(e,r){for(var a=-1,s=e==null?0:e.length;++a<s&&r(e[a],a,e)!==!1;);return e}var Oo=9007199254740991,Co=/^(?:0|[1-9]\d*)$/;function xo(e,r){var a=typeof e;return r=r??Oo,!!r&&(a=="number"||a!="symbol"&&Co.test(e))&&e>-1&&e%1==0&&e<r}function Bt(e,r,a){r=="__proto__"&&Ht?Ht(e,r,{configurable:!0,enumerable:!0,value:a,writable:!0}):e[r]=a}function Yt(e,r){return e===r||e!==e&&r!==r}var Do=Object.prototype,Ro=Do.hasOwnProperty;function Zt(e,r,a){var s=e[r];(!(Ro.call(e,r)&&Yt(s,a))||a===void 0&&!(r in e))&&Bt(e,r,a)}function qe(e,r,a,s){var h=!a;a||(a={});for(var w=-1,m=r.length;++w<m;){var T=r[w],O=s?s(a[T],e[T],T,a,e):void 0;O===void 0&&(O=e[T]),h?Bt(a,T,O):Zt(a,T,O)}return a}var jo=9007199254740991;function Jt(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=jo}function Kt(e){return e!=null&&Jt(e.length)&&!Gt(e)}var No=Object.prototype;function ot(e){var r=e&&e.constructor,a=typeof r=="function"&&r.prototype||No;return e===a}function Mo(e,r){for(var a=-1,s=Array(e);++a<e;)s[a]=r(a);return s}var Uo="[object Arguments]";function kt(e){return ye(e)&&we(e)==Uo}var Qt=Object.prototype,Lo=Qt.hasOwnProperty,Wo=Qt.propertyIsEnumerable,$o=kt(function(){return arguments}())?kt:function(e){return ye(e)&&Lo.call(e,"callee")&&!Wo.call(e,"callee")};function zo(){return!1}var Xt=typeof A=="object"&&A&&!A.nodeType&&A,en=Xt&&typeof module=="object"&&module&&!module.nodeType&&module,Fo=en&&en.exports===Xt,tn=Fo?k.Buffer:void 0,Go=tn?tn.isBuffer:void 0,nn=Go||zo,qo="[object Arguments]",Vo="[object Array]",Ho="[object Boolean]",Bo="[object Date]",Yo="[object Error]",Zo="[object Function]",Jo="[object Map]",Ko="[object Number]",ko="[object Object]",Qo="[object RegExp]",Xo="[object Set]",ei="[object String]",ti="[object WeakMap]",ni="[object ArrayBuffer]",ri="[object DataView]",oi="[object Float32Array]",ii="[object Float64Array]",ai="[object Int8Array]",ui="[object Int16Array]",si="[object Int32Array]",ci="[object Uint8Array]",fi="[object Uint8ClampedArray]",di="[object Uint16Array]",li="[object Uint32Array]",j={};j[oi]=j[ii]=j[ai]=j[ui]=j[si]=j[ci]=j[fi]=j[di]=j[li]=!0,j[qo]=j[Vo]=j[ni]=j[Ho]=j[ri]=j[Bo]=j[Yo]=j[Zo]=j[Jo]=j[Ko]=j[ko]=j[Qo]=j[Xo]=j[ei]=j[ti]=!1;function hi(e){return ye(e)&&Jt(e.length)&&!!j[we(e)]}function it(e){return function(r){return e(r)}}var rn=typeof A=="object"&&A&&!A.nodeType&&A,Ce=rn&&typeof module=="object"&&module&&!module.nodeType&&module,pi=Ce&&Ce.exports===rn,at=pi&&Ut.process,me=function(){try{var e=Ce&&Ce.require&&Ce.require("util").types;return e||at&&at.binding&&at.binding("util")}catch{}}(),on=me&&me.isTypedArray,gi=on?it(on):hi,vi=Object.prototype,_i=vi.hasOwnProperty;function an(e,r){var a=Ge(e),s=!a&&$o(e),h=!a&&!s&&nn(e),w=!a&&!s&&!h&&gi(e),m=a||s||h||w,T=m?Mo(e.length,String):[],O=T.length;for(var G in e)(r||_i.call(e,G))&&!(m&&(G=="length"||h&&(G=="offset"||G=="parent")||w&&(G=="buffer"||G=="byteLength"||G=="byteOffset")||xo(G,O)))&&T.push(G);return T}function un(e,r){return function(a){return e(r(a))}}var wi=un(Object.keys,Object),yi=Object.prototype,mi=yi.hasOwnProperty;function Ai(e){if(!ot(e))return wi(e);var r=[];for(var a in Object(e))mi.call(e,a)&&a!="constructor"&&r.push(a);return r}function ut(e){return Kt(e)?an(e):Ai(e)}function Ei(e){var r=[];if(e!=null)for(var a in Object(e))r.push(a);return r}var bi=Object.prototype,Si=bi.hasOwnProperty;function Ti(e){if(!Oe(e))return Ei(e);var r=ot(e),a=[];for(var s in e)s=="constructor"&&(r||!Si.call(e,s))||a.push(s);return a}function st(e){return Kt(e)?an(e,!0):Ti(e)}var xe=ce(Object,"create");function Ii(){this.__data__=xe?xe(null):{},this.size=0}function Pi(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}var Oi="__lodash_hash_undefined__",Ci=Object.prototype,xi=Ci.hasOwnProperty;function Di(e){var r=this.__data__;if(xe){var a=r[e];return a===Oi?void 0:a}return xi.call(r,e)?r[e]:void 0}var Ri=Object.prototype,ji=Ri.hasOwnProperty;function Ni(e){var r=this.__data__;return xe?r[e]!==void 0:ji.call(r,e)}var Mi="__lodash_hash_undefined__";function Ui(e,r){var a=this.__data__;return this.size+=this.has(e)?0:1,a[e]=xe&&r===void 0?Mi:r,this}function fe(e){var r=-1,a=e==null?0:e.length;for(this.clear();++r<a;){var s=e[r];this.set(s[0],s[1])}}fe.prototype.clear=Ii,fe.prototype.delete=Pi,fe.prototype.get=Di,fe.prototype.has=Ni,fe.prototype.set=Ui;function Li(){this.__data__=[],this.size=0}function Ve(e,r){for(var a=e.length;a--;)if(Yt(e[a][0],r))return a;return-1}var Wi=Array.prototype,$i=Wi.splice;function zi(e){var r=this.__data__,a=Ve(r,e);if(a<0)return!1;var s=r.length-1;return a==s?r.pop():$i.call(r,a,1),--this.size,!0}function Fi(e){var r=this.__data__,a=Ve(r,e);return a<0?void 0:r[a][1]}function Gi(e){return Ve(this.__data__,e)>-1}function qi(e,r){var a=this.__data__,s=Ve(a,e);return s<0?(++this.size,a.push([e,r])):a[s][1]=r,this}function ne(e){var r=-1,a=e==null?0:e.length;for(this.clear();++r<a;){var s=e[r];this.set(s[0],s[1])}}ne.prototype.clear=Li,ne.prototype.delete=zi,ne.prototype.get=Fi,ne.prototype.has=Gi,ne.prototype.set=qi;var De=ce(k,"Map");function Vi(){this.size=0,this.__data__={hash:new fe,map:new(De||ne),string:new fe}}function Hi(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}function He(e,r){var a=e.__data__;return Hi(r)?a[typeof r=="string"?"string":"hash"]:a.map}function Bi(e){var r=He(this,e).delete(e);return this.size-=r?1:0,r}function Yi(e){return He(this,e).get(e)}function Zi(e){return He(this,e).has(e)}function Ji(e,r){var a=He(this,e),s=a.size;return a.set(e,r),this.size+=a.size==s?0:1,this}function Ae(e){var r=-1,a=e==null?0:e.length;for(this.clear();++r<a;){var s=e[r];this.set(s[0],s[1])}}Ae.prototype.clear=Vi,Ae.prototype.delete=Bi,Ae.prototype.get=Yi,Ae.prototype.has=Zi,Ae.prototype.set=Ji;function Be(e){return e==null?"":Ft(e)}function sn(e,r){for(var a=-1,s=r.length,h=e.length;++a<s;)e[h+a]=r[a];return e}var Ki=un(Object.getPrototypeOf,Object);const cn=Ki;function ki(e,r,a){var s=-1,h=e.length;r<0&&(r=-r>h?0:h+r),a=a>h?h:a,a<0&&(a+=h),h=r>a?0:a-r>>>0,r>>>=0;for(var w=Array(h);++s<h;)w[s]=e[s+r];return w}function Qi(e,r,a){var s=e.length;return a=a===void 0?s:a,!r&&a>=s?e:ki(e,r,a)}var Xi="\\ud800-\\udfff",ea="\\u0300-\\u036f",ta="\\ufe20-\\ufe2f",na="\\u20d0-\\u20ff",ra=ea+ta+na,oa="\\ufe0e\\ufe0f",ia="\\u200d",aa=RegExp("["+ia+Xi+ra+oa+"]");function fn(e){return aa.test(e)}function ua(e){return e.split("")}var dn="\\ud800-\\udfff",sa="\\u0300-\\u036f",ca="\\ufe20-\\ufe2f",fa="\\u20d0-\\u20ff",da=sa+ca+fa,la="\\ufe0e\\ufe0f",ha="["+dn+"]",ct="["+da+"]",ft="\\ud83c[\\udffb-\\udfff]",pa="(?:"+ct+"|"+ft+")",ln="[^"+dn+"]",hn="(?:\\ud83c[\\udde6-\\uddff]){2}",pn="[\\ud800-\\udbff][\\udc00-\\udfff]",ga="\\u200d",gn=pa+"?",vn="["+la+"]?",va="(?:"+ga+"(?:"+[ln,hn,pn].join("|")+")"+vn+gn+")*",_a=vn+gn+va,wa="(?:"+[ln+ct+"?",ct,hn,pn,ha].join("|")+")",ya=RegExp(ft+"(?="+ft+")|"+wa+_a,"g");function ma(e){return e.match(ya)||[]}function Aa(e){return fn(e)?ma(e):ua(e)}function Ea(e){return function(r){r=Be(r);var a=fn(r)?Aa(r):void 0,s=a?a[0]:r.charAt(0),h=a?Qi(a,1).join(""):r.slice(1);return s[e]()+h}}var ba=Ea("toUpperCase");function Sa(e){return ba(Be(e).toLowerCase())}function Ta(e,r,a,s){var h=-1,w=e==null?0:e.length;for(s&&w&&(a=e[++h]);++h<w;)a=r(a,e[h],h,e);return a}function Ia(e){return function(r){return e?.[r]}}var Pa={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Oa=Ia(Pa);const Ca=Oa;var xa=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Da="\\u0300-\\u036f",Ra="\\ufe20-\\ufe2f",ja="\\u20d0-\\u20ff",Na=Da+Ra+ja,Ma="["+Na+"]",Ua=RegExp(Ma,"g");function La(e){return e=Be(e),e&&e.replace(xa,Ca).replace(Ua,"")}var Wa=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function $a(e){return e.match(Wa)||[]}var za=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Fa(e){return za.test(e)}var _n="\\ud800-\\udfff",Ga="\\u0300-\\u036f",qa="\\ufe20-\\ufe2f",Va="\\u20d0-\\u20ff",Ha=Ga+qa+Va,wn="\\u2700-\\u27bf",yn="a-z\\xdf-\\xf6\\xf8-\\xff",Ba="\\xac\\xb1\\xd7\\xf7",Ya="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Za="\\u2000-\\u206f",Ja=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",mn="A-Z\\xc0-\\xd6\\xd8-\\xde",Ka="\\ufe0e\\ufe0f",An=Ba+Ya+Za+Ja,En="['’]",bn="["+An+"]",ka="["+Ha+"]",Sn="\\d+",Qa="["+wn+"]",Tn="["+yn+"]",In="[^"+_n+An+Sn+wn+yn+mn+"]",Xa="\\ud83c[\\udffb-\\udfff]",eu="(?:"+ka+"|"+Xa+")",tu="[^"+_n+"]",Pn="(?:\\ud83c[\\udde6-\\uddff]){2}",On="[\\ud800-\\udbff][\\udc00-\\udfff]",Ee="["+mn+"]",nu="\\u200d",Cn="(?:"+Tn+"|"+In+")",ru="(?:"+Ee+"|"+In+")",xn="(?:"+En+"(?:d|ll|m|re|s|t|ve))?",Dn="(?:"+En+"(?:D|LL|M|RE|S|T|VE))?",Rn=eu+"?",jn="["+Ka+"]?",ou="(?:"+nu+"(?:"+[tu,Pn,On].join("|")+")"+jn+Rn+")*",iu="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",au="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",uu=jn+Rn+ou,su="(?:"+[Qa,Pn,On].join("|")+")"+uu,cu=RegExp([Ee+"?"+Tn+"+"+xn+"(?="+[bn,Ee,"$"].join("|")+")",ru+"+"+Dn+"(?="+[bn,Ee+Cn,"$"].join("|")+")",Ee+"?"+Cn+"+"+xn,Ee+"+"+Dn,au,iu,Sn,su].join("|"),"g");function fu(e){return e.match(cu)||[]}function du(e,r,a){return e=Be(e),r=a?void 0:r,r===void 0?Fa(e)?fu(e):$a(e):e.match(r)||[]}var lu="['’]",hu=RegExp(lu,"g");function Nn(e){return function(r){return Ta(du(La(r).replace(hu,"")),e,"")}}var pu=Nn(function(e,r,a){return r=r.toLowerCase(),e+(a?Sa(r):r)});const gu=pu;function vu(){this.__data__=new ne,this.size=0}function _u(e){var r=this.__data__,a=r.delete(e);return this.size=r.size,a}function wu(e){return this.__data__.get(e)}function yu(e){return this.__data__.has(e)}var mu=200;function Au(e,r){var a=this.__data__;if(a instanceof ne){var s=a.__data__;if(!De||s.length<mu-1)return s.push([e,r]),this.size=++a.size,this;a=this.__data__=new Ae(s)}return a.set(e,r),this.size=a.size,this}function be(e){var r=this.__data__=new ne(e);this.size=r.size}be.prototype.clear=vu,be.prototype.delete=_u,be.prototype.get=wu,be.prototype.has=yu,be.prototype.set=Au;function Eu(e,r){return e&&qe(r,ut(r),e)}function bu(e,r){return e&&qe(r,st(r),e)}var Mn=typeof A=="object"&&A&&!A.nodeType&&A,Un=Mn&&typeof module=="object"&&module&&!module.nodeType&&module,Su=Un&&Un.exports===Mn,Ln=Su?k.Buffer:void 0,Wn=Ln?Ln.allocUnsafe:void 0;function Tu(e,r){if(r)return e.slice();var a=e.length,s=Wn?Wn(a):new e.constructor(a);return e.copy(s),s}function Iu(e,r){for(var a=-1,s=e==null?0:e.length,h=0,w=[];++a<s;){var m=e[a];r(m,a,e)&&(w[h++]=m)}return w}function $n(){return[]}var Pu=Object.prototype,Ou=Pu.propertyIsEnumerable,zn=Object.getOwnPropertySymbols,dt=zn?function(e){return e==null?[]:(e=Object(e),Iu(zn(e),function(r){return Ou.call(e,r)}))}:$n;function Cu(e,r){return qe(e,dt(e),r)}var xu=Object.getOwnPropertySymbols,Fn=xu?function(e){for(var r=[];e;)sn(r,dt(e)),e=cn(e);return r}:$n;function Du(e,r){return qe(e,Fn(e),r)}function Gn(e,r,a){var s=r(e);return Ge(e)?s:sn(s,a(e))}function Ru(e){return Gn(e,ut,dt)}function ju(e){return Gn(e,st,Fn)}var lt=ce(k,"DataView"),ht=ce(k,"Promise"),pt=ce(k,"Set"),qn="[object Map]",Nu="[object Object]",Vn="[object Promise]",Hn="[object Set]",Bn="[object WeakMap]",Yn="[object DataView]",Mu=se(lt),Uu=se(De),Lu=se(ht),Wu=se(pt),$u=se(rt),de=we;(lt&&de(new lt(new ArrayBuffer(1)))!=Yn||De&&de(new De)!=qn||ht&&de(ht.resolve())!=Vn||pt&&de(new pt)!=Hn||rt&&de(new rt)!=Bn)&&(de=function(e){var r=we(e),a=r==Nu?e.constructor:void 0,s=a?se(a):"";if(s)switch(s){case Mu:return Yn;case Uu:return qn;case Lu:return Vn;case Wu:return Hn;case $u:return Bn}return r});const gt=de;var zu=Object.prototype,Fu=zu.hasOwnProperty;function Gu(e){var r=e.length,a=new e.constructor(r);return r&&typeof e[0]=="string"&&Fu.call(e,"index")&&(a.index=e.index,a.input=e.input),a}var Zn=k.Uint8Array;function vt(e){var r=new e.constructor(e.byteLength);return new Zn(r).set(new Zn(e)),r}function qu(e,r){var a=r?vt(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.byteLength)}var Vu=/\w*$/;function Hu(e){var r=new e.constructor(e.source,Vu.exec(e));return r.lastIndex=e.lastIndex,r}var Jn=ie?ie.prototype:void 0,Kn=Jn?Jn.valueOf:void 0;function Bu(e){return Kn?Object(Kn.call(e)):{}}function Yu(e,r){var a=r?vt(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.length)}var Zu="[object Boolean]",Ju="[object Date]",Ku="[object Map]",ku="[object Number]",Qu="[object RegExp]",Xu="[object Set]",es="[object String]",ts="[object Symbol]",ns="[object ArrayBuffer]",rs="[object DataView]",os="[object Float32Array]",is="[object Float64Array]",as="[object Int8Array]",us="[object Int16Array]",ss="[object Int32Array]",cs="[object Uint8Array]",fs="[object Uint8ClampedArray]",ds="[object Uint16Array]",ls="[object Uint32Array]";function hs(e,r,a){var s=e.constructor;switch(r){case ns:return vt(e);case Zu:case Ju:return new s(+e);case rs:return qu(e,a);case os:case is:case as:case us:case ss:case cs:case fs:case ds:case ls:return Yu(e,a);case Ku:return new s;case ku:case es:return new s(e);case Qu:return Hu(e);case Xu:return new s;case ts:return Bu(e)}}function ps(e){return typeof e.constructor=="function"&&!ot(e)?To(cn(e)):{}}var gs="[object Map]";function vs(e){return ye(e)&>(e)==gs}var kn=me&&me.isMap,_s=kn?it(kn):vs,ws="[object Set]";function ys(e){return ye(e)&>(e)==ws}var Qn=me&&me.isSet,ms=Qn?it(Qn):ys,As=1,Es=2,bs=4,Xn="[object Arguments]",Ss="[object Array]",Ts="[object Boolean]",Is="[object Date]",Ps="[object Error]",er="[object Function]",Os="[object GeneratorFunction]",Cs="[object Map]",xs="[object Number]",tr="[object Object]",Ds="[object RegExp]",Rs="[object Set]",js="[object String]",Ns="[object Symbol]",Ms="[object WeakMap]",Us="[object ArrayBuffer]",Ls="[object DataView]",Ws="[object Float32Array]",$s="[object Float64Array]",zs="[object Int8Array]",Fs="[object Int16Array]",Gs="[object Int32Array]",qs="[object Uint8Array]",Vs="[object Uint8ClampedArray]",Hs="[object Uint16Array]",Bs="[object Uint32Array]",x={};x[Xn]=x[Ss]=x[Us]=x[Ls]=x[Ts]=x[Is]=x[Ws]=x[$s]=x[zs]=x[Fs]=x[Gs]=x[Cs]=x[xs]=x[tr]=x[Ds]=x[Rs]=x[js]=x[Ns]=x[qs]=x[Vs]=x[Hs]=x[Bs]=!0,x[Ps]=x[er]=x[Ms]=!1;function Ye(e,r,a,s,h,w){var m,T=r&As,O=r&Es,G=r&bs;if(a&&(m=h?a(e,s,h,w):a(e)),m!==void 0)return m;if(!Oe(e))return e;var Q=Ge(e);if(Q){if(m=Gu(e),!T)return Io(e,m)}else{var oe=gt(e),he=oe==er||oe==Os;if(nn(e))return Tu(e,T);if(oe==tr||oe==Xn||he&&!h){if(m=O||he?{}:ps(e),!T)return O?Du(e,bu(m,e)):Cu(e,Eu(m,e))}else{if(!x[oe])return h?e:{};m=hs(e,oe,T)}}w||(w=new be);var pe=w.get(e);if(pe)return pe;w.set(e,m),ms(e)?e.forEach(function(H){m.add(Ye(H,r,a,H,e,w))}):_s(e)&&e.forEach(function(H,ee){m.set(ee,Ye(H,r,a,ee,e,w))});var q=G?O?ju:Ru:O?st:ut,X=Q?void 0:q(e);return Po(X||e,function(H,ee){X&&(ee=H,H=e[ee]),Zt(m,ee,Ye(H,r,a,ee,e,w))}),m}var Ys=1,Zs=4;function Js(e){return Ye(e,Ys|Zs)}var Ze=Nn(function(e,r,a){return e+(a?"_":"")+r.toLowerCase()});function Ks(e={}){return this.API.request("open",e)}function ks(e){return this.API.request("open_external_url",e)}function Qs(){return this.API.request("get_env")}function Xs(e){return this.API.request("update_my_user",e)}function ec(){return this.API.request("get_languages")}function tc(e){return A.highLevelApi.API.request("get_events",e)}function nc(e){return A.highLevelApi.API.request("create_event",e)}function rc(e){return A.highLevelApi.API.request("update_event",e)}function oc(e){return A.highLevelApi.API.request("delete_event",e)}function ic(e){return this.API.request("get_canvases",e)}function ac(e){return this.API.request("create_canvas",e)}function uc(e){return this.API.request("delete_canvas",e)}function sc(e){return this.API.request("update_canvas",e)}function cc(e){return this.API.request("get_canvas",e)}function fc(e){return this.API.request("share_canvas",e)}function dc(e){const r={...e};return r.type&&(r.type=Array.isArray(r.type)?r.type:[r.type]),r.content_type&&(r.content_type=Array.isArray(r.content_type)?r.content_type:[r.content_type]),this.API.request("get_files",r)}function lc(e){return this.API.request("get_recent_files",e||{})}function hc(e){return this.API.request("download_file",e)}function pc(e){return this.API.request("get_app_config",e)}function gc(e){return this.API.request("get_file",e)}function vc(e){return this.API.request("update_file",e)}function _c(e){return this.API.request("delete_file",e)}function wc(e){return this.API.request("create_file",e)}function yc(){return this.API.request("select_device_file")}function mc(e){return this.API.request("search",e)}function Ac(e){return this.API.request("get_users",e)}function Ec(e){return this.API.request("refresh_service_token",e)}function bc(e){return this.API.request("fetch_document_info",e)}function Sc(e){return this.API.request("render_page_as_image",e)}function Tc(e){return this.API.request("toast",e)}function Ic(e){return A.highLevelApi.API.request("query",e)}function Pc(e={id:"root"}){return this.API.request("get_folder",e)}function Oc(e){return this.API.request("create_folder",e)}function Cc(e){return this.API.request("update_folder",e)}function xc(e){return this.API.request("delete_folder",e)}function Dc(e){return this.API.request("move_folder_items",e)}function Rc(e){return this.API.request("get_favorites",e)}function jc(e){return this.API.request("create_favorite",e)}function Nc(e){return this.API.request("delete_favorite",e)}function Mc(e){return e.type||(e.type="native"),A.highLevelApi.API.request("notify",e)}function Uc(e){return A.highLevelApi.API.request("track",e)}function Lc(e){return this.API.request("get_instance_metadata_templates",e)}function Wc(){return this.API.request("trigger_non_files_sync")}function $c(e){return A.highLevelApi.API.request("submit_user_feedback",e)}function zc(){return A.highLevelApi.API.request("close")}function Fc(e){return this.API.request("open_web_view_always_on_top",e)}const Gc=Object.freeze(Object.defineProperty({__proto__:null,close:zc,createCanvas:ac,createEvent:nc,createFavorite:jc,createFile:wc,createFolder:Oc,deleteCanvas:uc,deleteEvent:oc,deleteFavorite:Nc,deleteFile:_c,deleteFolder:xc,downloadFile:hc,fetchDocumentInfo:bc,getAppConfig:pc,getCanvas:cc,getCanvases:ic,getEnv:Qs,getEvents:tc,getFavorites:Rc,getFile:gc,getFiles:dc,getFolder:Pc,getInstanceMetadataTemplates:Lc,getLanguages:ec,getRecentFiles:lc,getUsers:Ac,moveFolderItems:Dc,notify:Mc,open:Ks,openExternalUrl:ks,openWebViewAlwaysOnTop:Fc,query:Ic,refreshServiceToken:Ec,renderPageAsImage:Sc,search:mc,selectDeviceFile:yc,shareCanvas:fc,submitUserFeedback:$c,toast:Tc,track:Uc,triggerNonFilesSync:Wc,updateCanvas:sc,updateEvent:rc,updateFile:vc,updateFolder:Cc,updateMyUser:Xs},Symbol.toStringTag,{value:"Module"}));class nr{listeners={};on(r,a){this.listeners[r]=(this.listeners[r]??[]).concat(a)}off(r,a){this.listeners[r]=(this.listeners[r]??[]).filter(s=>s!==a)}emit(r,a){(this.listeners[r]??[]).forEach(s=>s(a))}}for(var F=[],_t=0;_t<256;++_t)F.push((_t+256).toString(16).slice(1));function qc(e,r=0){return(F[e[r+0]]+F[e[r+1]]+F[e[r+2]]+F[e[r+3]]+"-"+F[e[r+4]]+F[e[r+5]]+"-"+F[e[r+6]]+F[e[r+7]]+"-"+F[e[r+8]]+F[e[r+9]]+"-"+F[e[r+10]]+F[e[r+11]]+F[e[r+12]]+F[e[r+13]]+F[e[r+14]]+F[e[r+15]]).toLowerCase()}var Je,Vc=new Uint8Array(16);function Hc(){if(!Je&&(Je=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Je))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Je(Vc)}var Bc=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const rr={randomUUID:Bc};function Yc(e,r,a){if(rr.randomUUID&&!r&&!e)return rr.randomUUID();e=e||{};var s=e.random||(e.rng||Hc)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,r){a=a||0;for(var h=0;h<16;++h)r[a+h]=s[h];return r}return qc(s)}class Zc extends Error{}function Jc(e,r){if(!e)throw new Zc(r)}const or=["id__in","modified_at__gtr","created_at__gtr","end_at__lt","start_at__gt","account__id","end_at__gt","end_at__range","start_at__lt","start_at__range","external_objects__connection_id","external_objects__content_type","external_objects__external_content_type","external_objects__external_object_id"],ir=["context","overrides","filters","metadata","style","hidden"],ar=(e,r)=>r.includes(e)||e.endsWith("style"),Re=(e,r=or,a=ir)=>Array.isArray(e)?e.map(s=>Re(s,r,a)):e!=null&&e.constructor===Object?Object.keys(e).reduce((s,h)=>{const w=ar(h,a),m=r.includes(h)||w?h:gu(h),T=w?e[h]:Re(e[h],r,a);return{...s,[m]:T}},{}):e,wt=(e,r=or,a=ir)=>Array.isArray(e)?e.map(s=>wt(s,r,a)):e!=null&&e.constructor===Object?Object.keys(e).reduce((s,h)=>{const w=ar(h,a),m=r.includes(h)||w?h:Ze(h),T=w?e[h]:wt(e[h],r,a);return{...s,[m]:T}},{}):e;function Kc(e,r=[],a=["development","test"].includes("production")){if(a)return!0;if(!e||!e.origin)return!1;const s=[...r,window.location.origin,"pitcher.com"],h=s.includes(e.origin)||s.some(w=>e.origin.endsWith(w));return h||console.warn(`The message origin ${e.origin} is not the same as the current origin ${window.location.origin}. Bailing...`),h}class kc extends nr{constructor(r){super(),this.callbacks={},this.options=r??{casing:"snake",logLevel:"off",errorLogger:()=>{}},typeof window<"u"&&(window.addEventListener("message",a=>{Kc(a)&&(this.options.logLevel==="debug"&&console.log("message received",a),a.data.type==="PITCHER_RESPONSE"?(Jc(a.data.request.id,"event id is required"),this.handleCallbackMessage(a.data.request.id,a.data)):a.data.type==="PITCHER_EVENT"&&this.handleEventMessage(this.options.casing==="camel"?Re(a.data.event):a.data.event))}),this.request("subscribe"))}callbacks;options;handleCallbackMessage(r,a){this.callbacks[r]&&(this.callbacks[r].callback(a),this.options.logLevel&&["info","debug"].includes(this.options.logLevel)&&console.log(`It took ${Date.now()-this.callbacks[r].dispatched_at} ms for the event ${this.callbacks[r].type}`),delete this.callbacks[r])}handleEventMessage(r){this.emit("event",r)}request(r,a=null){return new Promise((s,h)=>{const w=Yc(),m=O=>{if(this.options.logLevel==="debug"&&console.log(`Callback ${w} response:`,O),O.response.status==="ok")s(this.options.casing==="camel"?Re(O.response.body):O.response.body);else if(O.response.status==="error")this.options.errorLogger?.({message:`Pitcher JS API call failure: ${O.request.type}`,js_api_response:JSON.stringify(O)}),h(this.options.casing==="camel"?Re(O.response.body):O.response.body);else throw new Error("unsupported response status")},T=Js(wt(a));this.callbacks[w]={dispatched_at:Date.now(),type:r,payload:T??{},callback:m},typeof window<"u"&&window.top&&window.top.postMessage({type:"PITCHER_REQUEST",request:{type:r,id:w,body:T}},"*")})}}function Qc(e){const r=new kc(e),a=new nr;return r.on("event",s=>{a.emit(s.type,s.body)}),{API:r,...Gc,on:(s,h)=>a.on(s,h),off:(s,h)=>a.off(s,h),enterFullscreen:()=>r.request("enter_fullscreen"),exitFullscreen:()=>r.request("exit_fullscreen"),logout:()=>r.request("logout"),quitInstance:()=>r.request("quit_instance"),getRequestTypes:()=>r.request("get_request_types"),broadcast:s=>r.request("broadcast",s),subscribe:()=>r.request("subscribe"),unsubscribe:()=>r.request("unsubscribe")}}function P(){return window.postRobot?window.postRobot:Promise.resolve().then(()=>Zr).then(e=>e.default||e)}const Xc="UI_MESSAGE",U={UI_BROADCAST:"ui_broadcast",UI_SELECT_CONTENT:"ui_select_content",UI_OPEN:"ui_open",UI_EMBEDDABLE_READY:"ui_embeddable_ready",UI_TOAST:"ui_toast",UI_CAPTURE_APP_ERROR:"ui_capture_app_error",UI_UPDATE_CANVAS:"ui_update_canvas",UI_UPDATE_LOCATION:"ui_update_location",UI_PRESELECT_SFDC_MEETING_ID:"ui_preselect_sfdc_meeting_id",UI_SET_POSTCALL_STYLE:"ui_set_postcall_style",UI_ENABLE_POSTCALL_SUBMIT:"ui_enable_postcall_submit",UI_DISABLE_POSTCALL_SUBMIT:"ui_disable_postcall_submit",UI_COMPLETE_POSTCALL:"ui_complete_postcall",UI_CANVAS_NAVIGATE_NEXT_PAGE:"ui_canvas_navigate_next_page",UI_CANVAS_NAVIGATE_PREVIOUS_PAGE:"ui_canvas_navigate_previous_page",UI_CANVAS_NAVIGATE_PAGE:"ui_canvas_navigate_page",UI_APP_LOADED:"ui_app_loaded",UI_APP_RESIZE:"ui_app_resize"},re={UI_MEETING_CANCELED:"ui_meeting_canceled",UI_CANVAS_UPDATED:"ui_canvas_updated",UI_SECTION_LIST_UPDATED:"ui_section_list_updated",UI_APP_SET_DATA:"ui_app_set_data",UI_APP_UPDATE_DATA:"ui_app_update_data"},ur=[re.UI_APP_SET_DATA,re.UI_APP_UPDATE_DATA,re.UI_CANVAS_UPDATED];async function ef(e={}){const r=await P();return console.warn("[content.ui.ts]: ui_select_content is deprecated and might get removed in future versions, please use select_content instead."),(await r.send(window.parent,U.UI_SELECT_CONTENT,e)).data}async function tf(e={}){return(await(await P()).send(window.parent,U.UI_SELECT_CONTENT,e)).data}async function nf(e){await(await P()).send(window.parent,U.UI_OPEN,e)}async function rf(e){await(await P()).send(window.parent,U.UI_TOAST,e)}async function of(e){return(await(await P()).send(window.parent,U.UI_PRESELECT_SFDC_MEETING_ID,e)).data}async function af(){await(await P()).send(window.parent,U.UI_EMBEDDABLE_READY)}async function uf(e){return(await P()).send(window.top,U.UI_UPDATE_LOCATION,e)}async function sf(e){(await P()).send(window.parent,U.UI_CAPTURE_APP_ERROR,e)}async function cf(e){return(await P()).send(window.parent,U.UI_UPDATE_CANVAS,e).then(a=>a.data)}async function ff(){window.parent.postMessage({type:U.UI_APP_LOADED,body:{}},"*")}async function df(e){window.parent.postMessage({type:U.UI_APP_RESIZE,body:e},"*")}async function lf(){(await P()).send(window.parent,U.UI_CANVAS_NAVIGATE_NEXT_PAGE)}async function hf(){(await P()).send(window.parent,U.UI_CANVAS_NAVIGATE_PREVIOUS_PAGE)}async function pf(e){(await P()).send(window.parent,U.UI_CANVAS_NAVIGATE_PAGE,e)}async function gf(e){(await P()).send(window.parent,U.UI_COMPLETE_POSTCALL,e)}async function vf(){(await P()).send(window.parent,U.UI_ENABLE_POSTCALL_SUBMIT)}async function _f(){(await P()).send(window.parent,U.UI_DISABLE_POSTCALL_SUBMIT)}async function wf(e){(await P()).send(window.parent,U.UI_SET_POSTCALL_STYLE,e)}async function yf(e,r){console.log("attaching native handler for type",e);const a=s=>{s.data.type===e&&r(s.data.body)};return window.addEventListener("message",a),()=>window.removeEventListener("message",a)}async function mf(e,r){return(await P()).on(e,h=>r(h.data)).cancel}function Se(e,r){return ur.includes(e)?yf(e,r):mf(e,r)}function Af(e){return Se(re.UI_MEETING_CANCELED,e)}function Ef(e){return Se(re.UI_CANVAS_UPDATED,e)}function bf(e){return Se(re.UI_SECTION_LIST_UPDATED,e)}function Sf(e){return Se(re.UI_APP_SET_DATA,e)}function Tf(e){return Se(re.UI_APP_UPDATE_DATA,e)}async function If(e){(await P()).send(window.parent,U.UI_BROADCAST,e)}const Pf=Object.freeze(Object.defineProperty({__proto__:null,app_loaded:ff,app_resize:df,canvas_navigate_next_page:lf,canvas_navigate_page:pf,canvas_navigate_previous_page:hf,capture_app_error:sf,complete_postcall:gf,disable_postcall_submit:_f,embeddable_ready:af,enable_postcall_submit:vf,on:Se,on_app_set_data:Sf,on_app_update_data:Tf,on_canvas_updated:Ef,on_meeting_canceled:Af,on_section_list_updated:bf,open:nf,preselect_sfdc_meeting_id:of,select_content:tf,set_postcall_style:wf,toast:rf,ui_broadcast:If,ui_select_content:ef,update_canvas:cf,update_location:uf},Symbol.toStringTag,{value:"Module"})),Of="ADMIN_MESSAGE",Cf={ENV_CHANGED:"admin_env_changed"},xf={ADMIN_REQUEST:"ADMIN_REQUEST",ADMIN_RESPONSE:"ADMIN_RESPONSE"},le={CREATE_CANVAS:"admin_create_canvas",GET_ENV:"admin_get_env",GET_CANVAS:"admin_get_canvas",GET_CANVASES:"admin_get_canvases",UPDATE_CANVAS:"admin_update_canvas",GET_INSTANCE_METADATA_TEMPLATES:"admin_get_instance_metadata_templates",GET_APP_CONFIG:"admin_get_app_config"};async function Df(){return(await(await P()).send(window.parent,le.GET_ENV)).data}async function Rf(e){return(await(await P()).send(window.parent,le.CREATE_CANVAS,e)).data}async function jf(e){return(await(await P()).send(window.parent,le.GET_CANVASES,e)).data}async function Nf(e){return(await(await P()).send(window.parent,le.GET_CANVAS,e)).data}async function Mf(e){return(await(await P()).send(window.parent,le.UPDATE_CANVAS,e)).data}async function Uf(e){return(await(await P()).send(window.parent,le.GET_INSTANCE_METADATA_TEMPLATES,e)).data}async function Lf(e,r){return(await P()).on(e,h=>r(h.data)).cancel}const Wf=Object.freeze(Object.defineProperty({__proto__:null,createCanvas:Rf,getCanvas:Nf,getCanvases:jf,getEnv:Df,getInstanceMetadataTemplates:Uf,on:Lf,updateCanvas:Mf},Symbol.toStringTag,{value:"Module"})),$f="DSR_MESSAGE",zf={ENV_CHANGED:"dsr_env_changed"},Ff={DSR_REQUEST:"DSR_REQUEST",DSR_RESPONSE:"DSR_RESPONSE"},yt={GET_ENV:"dsr_get_env",DSR_EMBEDDABLE_READY:"dsr_embeddable_ready"};async function Gf(){return(await(await P()).send(window.parent,yt.GET_ENV)).data}async function qf(){await(await P()).send(window.parent,yt.DSR_EMBEDDABLE_READY)}async function Vf(e,r){return(await P()).on(e,h=>r(h.data)).cancel}const Hf=Object.freeze(Object.defineProperty({__proto__:null,embeddable_ready:qf,getEnv:Gf,on:Vf},Symbol.toStringTag,{value:"Module"})),Bf="PITCHER_EVENT";var sr=(e=>(e.REQUEST="PITCHER_REQUEST",e.RESPONSE="PITCHER_RESPONSE",e))(sr||{}),cr=(e=>(e.OK="ok",e.ERROR="error",e))(cr||{}),fr=(e=>(e.ENV_CHANGED="env_changed",e.PHOTOS_CAPTURED="photos_captured",e.FILE_DOWNLOADED="file_downloaded",e.FILE_UPLOAD_PROGRESS="file_upload_progress",e.UPDATE_LOCATION="update_location",e.CANVAS_UPDATED="canvas_updated",e.CANVAS_UPDATED_SUCCESS="canvas_updated_success",e.FILE_CLOSED="file_closed",e.APP_BACKGROUNDED="app_backgrounded",e.APP_FOREGROUNDED="app_foregrounded",e.NON_FILES_SYNC_FINISHED="non_files_sync_finished",e.CONTENT_LIST_REFRESH_REQUESTED="content_list_refresh_requested",e.NETWORK_CONNECTION_ESTABLISHED="network_connection_established",e.NETWORK_CONNECTION_LOST="network_connection_lost",e.ENTERED_FULLSCREEN="entered_fullscreen",e.EXITED_FULLSCREEN="exited_fullscreen",e.SUBMIT_POSTCALL_CLICKED="submit_postcall_clicked",e))(fr||{}),dr=(e=>(e.UI_SHOW_MODAL="ui:show-modal",e.UI_HIDE_MODAL="ui:hide-modal",e.FAVORITES_CHANGED="favorites:changed",e.FILE_DOWNLOAD="file:download",e))(dr||{}),lr=(e=>(e.CREATE_AND_OPEN_CANVAS="create_and_open_canvas",e.OPEN_CANVAS="open_canvas",e.START_CALL="start_call",e))(lr||{});A.highLevelApi=void 0;function Ke(e){return A.highLevelApi||(A.highLevelApi=Qc(e)),A.highLevelApi}const Yf=Object.entries(Pf).reduce((e,[r,a])=>(e[r]=a,e[Ze(r)]=a,e),{});function mt(){return Yf}const Zf=Object.entries(Wf).reduce((e,[r,a])=>(e[r]=a,e[Ze(r)]=a,e),{});function hr(){return Zf}const Jf=Object.entries(Hf).reduce((e,[r,a])=>(e[r]=a,e[Ze(r)]=a,e),{});function pr(){return Jf}function Kf(){if(typeof window>"u")throw new Error("getAvailableApis: window is not defined");const e=window.parent.jsApiLocation;return e==="ui"?["ui","impact"]:[e??"impact"]}function kf(){if(typeof window>"u")throw new Error("useApi: window is not defined");const e=window.parent.jsApiLocation;switch(e){case"ui":return{...Ke(),...mt(),ui:mt(),impact:Ke()};case"admin":return hr();case"dsr":return pr();case"impact":return Ke();default:throw new Error(`Unknown api for location: ${e}`)}}window.postRobot=Mt,A.ADMIN_API_METHOD_TYPES=le,A.ADMIN_API_TYPES=xf,A.ADMIN_MESSAGE=Of,A.ADMIN_MESSAGE_TYPES=Cf,A.DSR_API_METHOD_TYPES=yt,A.DSR_API_TYPES=Ff,A.DSR_MESSAGE=$f,A.DSR_MESSAGE_TYPES=zf,A.PITCHER_EVENT=Bf,A.PitcherBroadcastedEventName=dr,A.PitcherEventName=fr,A.PitcherExternalEventName=lr,A.PitcherMessageType=sr,A.PitcherResponseStatus=cr,A.UI_API_METHOD_TYPES=U,A.UI_MESSAGE=Xc,A.UI_MESSAGE_TYPES=re,A.UI_NATIVE_MESSAGE_TYPES=ur,A.getAvailableApis=Kf,A.useAdmin=hr,A.useApi=kf,A.useDsr=pr,A.usePitcherApi=Ke,A.useUi=mt,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})});
|
|
17
|
+
`+Ve(O))})})})};function Pf(t,o,r){return Br(t,o,r,{on:se,send:ue})}function If(t,o,r){return Yr(t,o,r,{on:se,send:ue})}function Of(t){return new J({send:ue,win:t})}function Cf(t){return J.toProxyWindow(t,{send:ue})}function Xr(){Be().initialized||(Be().initialized=!0,o=(t={on:se,send:ue}).on,r=t.send,(a=Be()).receiveMessage=a.receiveMessage||function(s){return Qr(s,{on:o,send:r})},function(s){var c=s.on,d=s.send;z().getOrSet("postMessageListener",function(){return function(p,l,f){return p.addEventListener("message",f),{cancel:function(){p.removeEventListener("message",f)}}}(window,0,function(p){(function(l,f){var y=f.on,v=f.send;x.try(function(){var w=l.source||l.sourceElement,m=l.origin||l.originalEvent&&l.originalEvent.origin,T=l.data;if(m==="null"&&(m="file://"),w){if(!m)throw new Error("Post message did not have origin domain");Qr({source:w,origin:m,data:T},{on:y,send:v})}})})(p,{on:c,send:d})})})}({on:se,send:ue}),function(s){var c=s.on,d=s.send;z("builtinListeners").getOrSet("helloListener",function(){var p=c("postrobot_hello",{domain:"*"},function(f){return Wr(f.source,{domain:f.origin}),{instanceID:$r()}}),l=Tr();return l&&Nt(l,{send:d}).catch(function(f){}),p})}({on:se,send:ue}));var t,o,r,a}function xf(){(function(){for(var o=z("responseListeners"),r=0,a=o.keys();r<a.length;r++){var s=a[r],c=o.get(s);c&&(c.cancelled=!0),o.del(s)}})(),(t=z().get("postMessageListener"))&&t.cancel();var t;delete window.__post_robot_10_0_46__}var Df=!0;function Rf(t){for(var o=0,r=V("requestPromises").get(t,[]);o<r.length;o++)r[o].reject(new Error("Window "+(k(t)?"closed":"cleaned up")+" before response")).catch(_e)}Xr()}])})})(Gt);var no=Gt.exports;(function(e){e.exports=no,e.exports.default=e.exports})(Ft);var qt=Ft.exports;const Vt=to(qt),ro=De({__proto__:null,default:Vt},[qt]);var Ht=typeof global=="object"&&global&&global.Object===Object&&global,oo=typeof self=="object"&&self&&self.Object===Object&&self,K=Ht||oo||Function("return this")(),ae=K.Symbol,Bt=Object.prototype,io=Bt.hasOwnProperty,ao=Bt.toString,Re=ae?ae.toStringTag:void 0;function so(e){var n=io.call(e,Re),i=e[Re];try{e[Re]=void 0;var u=!0}catch{}var h=ao.call(e);return u&&(n?e[Re]=i:delete e[Re]),h}var uo=Object.prototype,co=uo.toString;function fo(e){return co.call(e)}var lo="[object Null]",ho="[object Undefined]",Yt=ae?ae.toStringTag:void 0;function me(e){return e==null?e===void 0?ho:lo:Yt&&Yt in Object(e)?so(e):fo(e)}function Ee(e){return e!=null&&typeof e=="object"}var po="[object Symbol]";function go(e){return typeof e=="symbol"||Ee(e)&&me(e)==po}function vo(e,n){for(var i=-1,u=e==null?0:e.length,h=Array(u);++i<u;)h[i]=n(e[i],i,e);return h}var Je=Array.isArray,wo=1/0,Jt=ae?ae.prototype:void 0,kt=Jt?Jt.toString:void 0;function Zt(e){if(typeof e=="string")return e;if(Je(e))return vo(e,Zt)+"";if(go(e))return kt?kt.call(e):"";var n=e+"";return n=="0"&&1/e==-wo?"-0":n}function je(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}var _o="[object AsyncFunction]",yo="[object Function]",mo="[object GeneratorFunction]",Eo="[object Proxy]";function Kt(e){if(!je(e))return!1;var n=me(e);return n==yo||n==mo||n==_o||n==Eo}var dt=K["__core-js_shared__"],Qt=function(){var e=/[^.]+$/.exec(dt&&dt.keys&&dt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Ao(e){return!!Qt&&Qt in e}var bo=Function.prototype,So=bo.toString;function ce(e){if(e!=null){try{return So.call(e)}catch{}try{return e+""}catch{}}return""}var To=/[\\^$.*+?()[\]{}|]/g,Po=/^\[object .+?Constructor\]$/,Io=Function.prototype,Oo=Object.prototype,Co=Io.toString,xo=Oo.hasOwnProperty,Do=RegExp("^"+Co.call(xo).replace(To,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ro(e){if(!je(e)||Ao(e))return!1;var n=Kt(e)?Do:Po;return n.test(ce(e))}function jo(e,n){return e?.[n]}function de(e,n){var i=jo(e,n);return Ro(i)?i:void 0}var ft=de(K,"WeakMap"),Xt=Object.create,No=function(){function e(){}return function(n){if(!je(n))return{};if(Xt)return Xt(n);e.prototype=n;var i=new e;return e.prototype=void 0,i}}();function Uo(e,n){var i=-1,u=e.length;for(n||(n=Array(u));++i<u;)n[i]=e[i];return n}var en=function(){try{var e=de(Object,"defineProperty");return e({},"",{}),e}catch{}}();function Mo(e,n){for(var i=-1,u=e==null?0:e.length;++i<u&&n(e[i],i,e)!==!1;);return e}var Lo=9007199254740991,$o=/^(?:0|[1-9]\d*)$/;function Wo(e,n){var i=typeof e;return n=n??Lo,!!n&&(i=="number"||i!="symbol"&&$o.test(e))&&e>-1&&e%1==0&&e<n}function tn(e,n,i){n=="__proto__"&&en?en(e,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[n]=i}function nn(e,n){return e===n||e!==e&&n!==n}var zo=Object.prototype,Fo=zo.hasOwnProperty;function rn(e,n,i){var u=e[n];(!(Fo.call(e,n)&&nn(u,i))||i===void 0&&!(n in e))&&tn(e,n,i)}function ke(e,n,i,u){var h=!i;i||(i={});for(var g=-1,_=n.length;++g<_;){var A=n[g],I=u?u(i[A],e[A],A,i,e):void 0;I===void 0&&(I=e[A]),h?tn(i,A,I):rn(i,A,I)}return i}var Go=9007199254740991;function on(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Go}function an(e){return e!=null&&on(e.length)&&!Kt(e)}var qo=Object.prototype;function lt(e){var n=e&&e.constructor,i=typeof n=="function"&&n.prototype||qo;return e===i}function Vo(e,n){for(var i=-1,u=Array(e);++i<e;)u[i]=n(i);return u}var Ho="[object Arguments]";function sn(e){return Ee(e)&&me(e)==Ho}var un=Object.prototype,Bo=un.hasOwnProperty,Yo=un.propertyIsEnumerable,Jo=sn(function(){return arguments}())?sn:function(e){return Ee(e)&&Bo.call(e,"callee")&&!Yo.call(e,"callee")};function ko(){return!1}var cn=typeof E=="object"&&E&&!E.nodeType&&E,dn=cn&&typeof module=="object"&&module&&!module.nodeType&&module,Zo=dn&&dn.exports===cn,fn=Zo?K.Buffer:void 0,Ko=fn?fn.isBuffer:void 0,ln=Ko||ko,Qo="[object Arguments]",Xo="[object Array]",ei="[object Boolean]",ti="[object Date]",ni="[object Error]",ri="[object Function]",oi="[object Map]",ii="[object Number]",ai="[object Object]",si="[object RegExp]",ui="[object Set]",ci="[object String]",di="[object WeakMap]",fi="[object ArrayBuffer]",li="[object DataView]",hi="[object Float32Array]",pi="[object Float64Array]",gi="[object Int8Array]",vi="[object Int16Array]",wi="[object Int32Array]",_i="[object Uint8Array]",yi="[object Uint8ClampedArray]",mi="[object Uint16Array]",Ei="[object Uint32Array]",N={};N[hi]=N[pi]=N[gi]=N[vi]=N[wi]=N[_i]=N[yi]=N[mi]=N[Ei]=!0,N[Qo]=N[Xo]=N[fi]=N[ei]=N[li]=N[ti]=N[ni]=N[ri]=N[oi]=N[ii]=N[ai]=N[si]=N[ui]=N[ci]=N[di]=!1;function Ai(e){return Ee(e)&&on(e.length)&&!!N[me(e)]}function ht(e){return function(n){return e(n)}}var hn=typeof E=="object"&&E&&!E.nodeType&&E,Ne=hn&&typeof module=="object"&&module&&!module.nodeType&&module,bi=Ne&&Ne.exports===hn,pt=bi&&Ht.process,Ae=function(){try{var e=Ne&&Ne.require&&Ne.require("util").types;return e||pt&&pt.binding&&pt.binding("util")}catch{}}(),pn=Ae&&Ae.isTypedArray,Si=pn?ht(pn):Ai,Ti=Object.prototype,Pi=Ti.hasOwnProperty;function gn(e,n){var i=Je(e),u=!i&&Jo(e),h=!i&&!u&&ln(e),g=!i&&!u&&!h&&Si(e),_=i||u||h||g,A=_?Vo(e.length,String):[],I=A.length;for(var P in e)(n||Pi.call(e,P))&&!(_&&(P=="length"||h&&(P=="offset"||P=="parent")||g&&(P=="buffer"||P=="byteLength"||P=="byteOffset")||Wo(P,I)))&&A.push(P);return A}function vn(e,n){return function(i){return e(n(i))}}var Ii=vn(Object.keys,Object),Oi=Object.prototype,Ci=Oi.hasOwnProperty;function xi(e){if(!lt(e))return Ii(e);var n=[];for(var i in Object(e))Ci.call(e,i)&&i!="constructor"&&n.push(i);return n}function gt(e){return an(e)?gn(e):xi(e)}function Di(e){var n=[];if(e!=null)for(var i in Object(e))n.push(i);return n}var Ri=Object.prototype,ji=Ri.hasOwnProperty;function Ni(e){if(!je(e))return Di(e);var n=lt(e),i=[];for(var u in e)u=="constructor"&&(n||!ji.call(e,u))||i.push(u);return i}function vt(e){return an(e)?gn(e,!0):Ni(e)}var Ue=de(Object,"create");function Ui(){this.__data__=Ue?Ue(null):{},this.size=0}function Mi(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}var Li="__lodash_hash_undefined__",$i=Object.prototype,Wi=$i.hasOwnProperty;function zi(e){var n=this.__data__;if(Ue){var i=n[e];return i===Li?void 0:i}return Wi.call(n,e)?n[e]:void 0}var Fi=Object.prototype,Gi=Fi.hasOwnProperty;function qi(e){var n=this.__data__;return Ue?n[e]!==void 0:Gi.call(n,e)}var Vi="__lodash_hash_undefined__";function Hi(e,n){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=Ue&&n===void 0?Vi:n,this}function fe(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var u=e[n];this.set(u[0],u[1])}}fe.prototype.clear=Ui,fe.prototype.delete=Mi,fe.prototype.get=zi,fe.prototype.has=qi,fe.prototype.set=Hi;function Bi(){this.__data__=[],this.size=0}function Ze(e,n){for(var i=e.length;i--;)if(nn(e[i][0],n))return i;return-1}var Yi=Array.prototype,Ji=Yi.splice;function ki(e){var n=this.__data__,i=Ze(n,e);if(i<0)return!1;var u=n.length-1;return i==u?n.pop():Ji.call(n,i,1),--this.size,!0}function Zi(e){var n=this.__data__,i=Ze(n,e);return i<0?void 0:n[i][1]}function Ki(e){return Ze(this.__data__,e)>-1}function Qi(e,n){var i=this.__data__,u=Ze(i,e);return u<0?(++this.size,i.push([e,n])):i[u][1]=n,this}function ne(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var u=e[n];this.set(u[0],u[1])}}ne.prototype.clear=Bi,ne.prototype.delete=ki,ne.prototype.get=Zi,ne.prototype.has=Ki,ne.prototype.set=Qi;var Me=de(K,"Map");function Xi(){this.size=0,this.__data__={hash:new fe,map:new(Me||ne),string:new fe}}function ea(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}function Ke(e,n){var i=e.__data__;return ea(n)?i[typeof n=="string"?"string":"hash"]:i.map}function ta(e){var n=Ke(this,e).delete(e);return this.size-=n?1:0,n}function na(e){return Ke(this,e).get(e)}function ra(e){return Ke(this,e).has(e)}function oa(e,n){var i=Ke(this,e),u=i.size;return i.set(e,n),this.size+=i.size==u?0:1,this}function be(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var u=e[n];this.set(u[0],u[1])}}be.prototype.clear=Xi,be.prototype.delete=ta,be.prototype.get=na,be.prototype.has=ra,be.prototype.set=oa;function Qe(e){return e==null?"":Zt(e)}function wn(e,n){for(var i=-1,u=n.length,h=e.length;++i<u;)e[h+i]=n[i];return e}var ia=vn(Object.getPrototypeOf,Object);const _n=ia;function aa(e,n,i){var u=-1,h=e.length;n<0&&(n=-n>h?0:h+n),i=i>h?h:i,i<0&&(i+=h),h=n>i?0:i-n>>>0,n>>>=0;for(var g=Array(h);++u<h;)g[u]=e[u+n];return g}function sa(e,n,i){var u=e.length;return i=i===void 0?u:i,!n&&i>=u?e:aa(e,n,i)}var ua="\\ud800-\\udfff",ca="\\u0300-\\u036f",da="\\ufe20-\\ufe2f",fa="\\u20d0-\\u20ff",la=ca+da+fa,ha="\\ufe0e\\ufe0f",pa="\\u200d",ga=RegExp("["+pa+ua+la+ha+"]");function yn(e){return ga.test(e)}function va(e){return e.split("")}var mn="\\ud800-\\udfff",wa="\\u0300-\\u036f",_a="\\ufe20-\\ufe2f",ya="\\u20d0-\\u20ff",ma=wa+_a+ya,Ea="\\ufe0e\\ufe0f",Aa="["+mn+"]",wt="["+ma+"]",_t="\\ud83c[\\udffb-\\udfff]",ba="(?:"+wt+"|"+_t+")",En="[^"+mn+"]",An="(?:\\ud83c[\\udde6-\\uddff]){2}",bn="[\\ud800-\\udbff][\\udc00-\\udfff]",Sa="\\u200d",Sn=ba+"?",Tn="["+Ea+"]?",Ta="(?:"+Sa+"(?:"+[En,An,bn].join("|")+")"+Tn+Sn+")*",Pa=Tn+Sn+Ta,Ia="(?:"+[En+wt+"?",wt,An,bn,Aa].join("|")+")",Oa=RegExp(_t+"(?="+_t+")|"+Ia+Pa,"g");function Ca(e){return e.match(Oa)||[]}function xa(e){return yn(e)?Ca(e):va(e)}function Da(e){return function(n){n=Qe(n);var i=yn(n)?xa(n):void 0,u=i?i[0]:n.charAt(0),h=i?sa(i,1).join(""):n.slice(1);return u[e]()+h}}var Ra=Da("toUpperCase");function ja(e){return Ra(Qe(e).toLowerCase())}function Na(e,n,i,u){var h=-1,g=e==null?0:e.length;for(u&&g&&(i=e[++h]);++h<g;)i=n(i,e[h],h,e);return i}function Ua(e){return function(n){return e?.[n]}}var Ma={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},La=Ua(Ma);const $a=La;var Wa=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,za="\\u0300-\\u036f",Fa="\\ufe20-\\ufe2f",Ga="\\u20d0-\\u20ff",qa=za+Fa+Ga,Va="["+qa+"]",Ha=RegExp(Va,"g");function Ba(e){return e=Qe(e),e&&e.replace(Wa,$a).replace(Ha,"")}var Ya=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Ja(e){return e.match(Ya)||[]}var ka=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Za(e){return ka.test(e)}var Pn="\\ud800-\\udfff",Ka="\\u0300-\\u036f",Qa="\\ufe20-\\ufe2f",Xa="\\u20d0-\\u20ff",es=Ka+Qa+Xa,In="\\u2700-\\u27bf",On="a-z\\xdf-\\xf6\\xf8-\\xff",ts="\\xac\\xb1\\xd7\\xf7",ns="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",rs="\\u2000-\\u206f",os=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Cn="A-Z\\xc0-\\xd6\\xd8-\\xde",is="\\ufe0e\\ufe0f",xn=ts+ns+rs+os,Dn="['’]",Rn="["+xn+"]",as="["+es+"]",jn="\\d+",ss="["+In+"]",Nn="["+On+"]",Un="[^"+Pn+xn+jn+In+On+Cn+"]",us="\\ud83c[\\udffb-\\udfff]",cs="(?:"+as+"|"+us+")",ds="[^"+Pn+"]",Mn="(?:\\ud83c[\\udde6-\\uddff]){2}",Ln="[\\ud800-\\udbff][\\udc00-\\udfff]",Se="["+Cn+"]",fs="\\u200d",$n="(?:"+Nn+"|"+Un+")",ls="(?:"+Se+"|"+Un+")",Wn="(?:"+Dn+"(?:d|ll|m|re|s|t|ve))?",zn="(?:"+Dn+"(?:D|LL|M|RE|S|T|VE))?",Fn=cs+"?",Gn="["+is+"]?",hs="(?:"+fs+"(?:"+[ds,Mn,Ln].join("|")+")"+Gn+Fn+")*",ps="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",gs="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",vs=Gn+Fn+hs,ws="(?:"+[ss,Mn,Ln].join("|")+")"+vs,_s=RegExp([Se+"?"+Nn+"+"+Wn+"(?="+[Rn,Se,"$"].join("|")+")",ls+"+"+zn+"(?="+[Rn,Se+$n,"$"].join("|")+")",Se+"?"+$n+"+"+Wn,Se+"+"+zn,gs,ps,jn,ws].join("|"),"g");function ys(e){return e.match(_s)||[]}function ms(e,n,i){return e=Qe(e),n=i?void 0:n,n===void 0?Za(e)?ys(e):Ja(e):e.match(n)||[]}var Es="['’]",As=RegExp(Es,"g");function qn(e){return function(n){return Na(ms(Ba(n).replace(As,"")),e,"")}}var bs=qn(function(e,n,i){return n=n.toLowerCase(),e+(i?ja(n):n)});const Ss=bs;function Ts(){this.__data__=new ne,this.size=0}function Ps(e){var n=this.__data__,i=n.delete(e);return this.size=n.size,i}function Is(e){return this.__data__.get(e)}function Os(e){return this.__data__.has(e)}var Cs=200;function xs(e,n){var i=this.__data__;if(i instanceof ne){var u=i.__data__;if(!Me||u.length<Cs-1)return u.push([e,n]),this.size=++i.size,this;i=this.__data__=new be(u)}return i.set(e,n),this.size=i.size,this}function Te(e){var n=this.__data__=new ne(e);this.size=n.size}Te.prototype.clear=Ts,Te.prototype.delete=Ps,Te.prototype.get=Is,Te.prototype.has=Os,Te.prototype.set=xs;function Ds(e,n){return e&&ke(n,gt(n),e)}function Rs(e,n){return e&&ke(n,vt(n),e)}var Vn=typeof E=="object"&&E&&!E.nodeType&&E,Hn=Vn&&typeof module=="object"&&module&&!module.nodeType&&module,js=Hn&&Hn.exports===Vn,Bn=js?K.Buffer:void 0,Yn=Bn?Bn.allocUnsafe:void 0;function Ns(e,n){if(n)return e.slice();var i=e.length,u=Yn?Yn(i):new e.constructor(i);return e.copy(u),u}function Us(e,n){for(var i=-1,u=e==null?0:e.length,h=0,g=[];++i<u;){var _=e[i];n(_,i,e)&&(g[h++]=_)}return g}function Jn(){return[]}var Ms=Object.prototype,Ls=Ms.propertyIsEnumerable,kn=Object.getOwnPropertySymbols,yt=kn?function(e){return e==null?[]:(e=Object(e),Us(kn(e),function(n){return Ls.call(e,n)}))}:Jn;function $s(e,n){return ke(e,yt(e),n)}var Ws=Object.getOwnPropertySymbols,Zn=Ws?function(e){for(var n=[];e;)wn(n,yt(e)),e=_n(e);return n}:Jn;function zs(e,n){return ke(e,Zn(e),n)}function Kn(e,n,i){var u=n(e);return Je(e)?u:wn(u,i(e))}function Fs(e){return Kn(e,gt,yt)}function Gs(e){return Kn(e,vt,Zn)}var mt=de(K,"DataView"),Et=de(K,"Promise"),At=de(K,"Set"),Qn="[object Map]",qs="[object Object]",Xn="[object Promise]",er="[object Set]",tr="[object WeakMap]",nr="[object DataView]",Vs=ce(mt),Hs=ce(Me),Bs=ce(Et),Ys=ce(At),Js=ce(ft),le=me;(mt&&le(new mt(new ArrayBuffer(1)))!=nr||Me&&le(new Me)!=Qn||Et&&le(Et.resolve())!=Xn||At&&le(new At)!=er||ft&&le(new ft)!=tr)&&(le=function(e){var n=me(e),i=n==qs?e.constructor:void 0,u=i?ce(i):"";if(u)switch(u){case Vs:return nr;case Hs:return Qn;case Bs:return Xn;case Ys:return er;case Js:return tr}return n});const bt=le;var ks=Object.prototype,Zs=ks.hasOwnProperty;function Ks(e){var n=e.length,i=new e.constructor(n);return n&&typeof e[0]=="string"&&Zs.call(e,"index")&&(i.index=e.index,i.input=e.input),i}var rr=K.Uint8Array;function St(e){var n=new e.constructor(e.byteLength);return new rr(n).set(new rr(e)),n}function Qs(e,n){var i=n?St(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}var Xs=/\w*$/;function eu(e){var n=new e.constructor(e.source,Xs.exec(e));return n.lastIndex=e.lastIndex,n}var or=ae?ae.prototype:void 0,ir=or?or.valueOf:void 0;function tu(e){return ir?Object(ir.call(e)):{}}function nu(e,n){var i=n?St(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}var ru="[object Boolean]",ou="[object Date]",iu="[object Map]",au="[object Number]",su="[object RegExp]",uu="[object Set]",cu="[object String]",du="[object Symbol]",fu="[object ArrayBuffer]",lu="[object DataView]",hu="[object Float32Array]",pu="[object Float64Array]",gu="[object Int8Array]",vu="[object Int16Array]",wu="[object Int32Array]",_u="[object Uint8Array]",yu="[object Uint8ClampedArray]",mu="[object Uint16Array]",Eu="[object Uint32Array]";function Au(e,n,i){var u=e.constructor;switch(n){case fu:return St(e);case ru:case ou:return new u(+e);case lu:return Qs(e,i);case hu:case pu:case gu:case vu:case wu:case _u:case yu:case mu:case Eu:return nu(e,i);case iu:return new u;case au:case cu:return new u(e);case su:return eu(e);case uu:return new u;case du:return tu(e)}}function bu(e){return typeof e.constructor=="function"&&!lt(e)?No(_n(e)):{}}var Su="[object Map]";function Tu(e){return Ee(e)&&bt(e)==Su}var ar=Ae&&Ae.isMap,Pu=ar?ht(ar):Tu,Iu="[object Set]";function Ou(e){return Ee(e)&&bt(e)==Iu}var sr=Ae&&Ae.isSet,Cu=sr?ht(sr):Ou,xu=1,Du=2,Ru=4,ur="[object Arguments]",ju="[object Array]",Nu="[object Boolean]",Uu="[object Date]",Mu="[object Error]",cr="[object Function]",Lu="[object GeneratorFunction]",$u="[object Map]",Wu="[object Number]",dr="[object Object]",zu="[object RegExp]",Fu="[object Set]",Gu="[object String]",qu="[object Symbol]",Vu="[object WeakMap]",Hu="[object ArrayBuffer]",Bu="[object DataView]",Yu="[object Float32Array]",Ju="[object Float64Array]",ku="[object Int8Array]",Zu="[object Int16Array]",Ku="[object Int32Array]",Qu="[object Uint8Array]",Xu="[object Uint8ClampedArray]",ec="[object Uint16Array]",tc="[object Uint32Array]",D={};D[ur]=D[ju]=D[Hu]=D[Bu]=D[Nu]=D[Uu]=D[Yu]=D[Ju]=D[ku]=D[Zu]=D[Ku]=D[$u]=D[Wu]=D[dr]=D[zu]=D[Fu]=D[Gu]=D[qu]=D[Qu]=D[Xu]=D[ec]=D[tc]=!0,D[Mu]=D[cr]=D[Vu]=!1;function Xe(e,n,i,u,h,g){var _,A=n&xu,I=n&Du,P=n&Ru;if(i&&(_=h?i(e,u,h,g):i(e)),_!==void 0)return _;if(!je(e))return e;var Q=Je(e);if(Q){if(_=Ks(e),!A)return Uo(e,_)}else{var ie=bt(e),ge=ie==cr||ie==Lu;if(ln(e))return Ns(e,A);if(ie==dr||ie==ur||ge&&!h){if(_=I||ge?{}:bu(e),!A)return I?zs(e,Rs(_,e)):$s(e,Ds(_,e))}else{if(!D[ie])return h?e:{};_=Au(e,ie,A)}}g||(g=new Te);var ve=g.get(e);if(ve)return ve;g.set(e,_),Cu(e)?e.forEach(function(H){_.add(Xe(H,n,i,H,e,g))}):Pu(e)&&e.forEach(function(H,ee){_.set(ee,Xe(H,n,i,ee,e,g))});var q=P?I?Gs:Fs:I?vt:gt,X=Q?void 0:q(e);return Mo(X||e,function(H,ee){X&&(ee=H,H=e[ee]),rn(_,ee,Xe(H,n,i,ee,e,g))}),_}var nc=1,rc=4;function oc(e){return Xe(e,nc|rc)}var et=qn(function(e,n,i){return e+(i?"_":"")+n.toLowerCase()});function ic(e={}){return this.API.request("open",e)}function ac(e){return this.API.request("open_external_url",e)}function sc(){return this.API.request("get_env")}function uc(e){return this.API.request("update_my_user",e)}function cc(){return this.API.request("get_languages")}function dc(e){return E.highLevelApi.API.request("get_events",e)}function fc(e){return E.highLevelApi.API.request("create_event",e)}function lc(e){return E.highLevelApi.API.request("update_event",e)}function hc(e){return E.highLevelApi.API.request("delete_event",e)}function pc(e){return this.API.request("get_canvases",e)}function gc(e){return this.API.request("create_canvas",e)}function vc(e){return this.API.request("delete_canvas",e)}function wc(e){let n=!1;return typeof window<"u"&&(n=new URLSearchParams(window.location.search).get("debug")==="true"||!!window.debug),n&&console.info("JS API UPDATE CANVAS",e),this.API.request("update_canvas",e).then(i=>(n&&console.info("JS API UPDATE CANVAS RESPONSE",i),i))}function _c(e){return this.API.request("get_canvas",e)}function yc(e){return this.API.request("share_canvas",e)}function mc(e){const n={...e};return n.type&&(n.type=Array.isArray(n.type)?n.type:[n.type]),n.content_type&&(n.content_type=Array.isArray(n.content_type)?n.content_type:[n.content_type]),this.API.request("get_files",n)}function Ec(e){return this.API.request("get_recent_files",e||{})}function Ac(e){return this.API.request("download_file",e)}function bc(e){return this.API.request("get_app_config",e)}function Sc(e){return this.API.request("get_file",e)}function Tc(e){return this.API.request("update_file",e)}function Pc(e){return this.API.request("delete_file",e)}function Ic(e){return this.API.request("create_file",e)}function Oc(){return this.API.request("select_device_file")}function Cc(e){return this.API.request("search",e)}function xc(e){return this.API.request("get_users",e)}function Dc(e){return this.API.request("refresh_service_token",e)}function Rc(e){return this.API.request("fetch_document_info",e)}function jc(e){return this.API.request("render_page_as_image",e)}function Nc(e){return this.API.request("toast",e)}function Uc(e){return E.highLevelApi.API.request("query",e)}function Mc(e={id:"root"}){return this.API.request("get_folder",e)}function Lc(e){return this.API.request("create_folder",e)}function $c(e){return this.API.request("update_folder",e)}function Wc(e){return this.API.request("delete_folder",e)}function zc(e){return this.API.request("move_folder_items",e)}function Fc(e){return this.API.request("get_favorites",e)}function Gc(e){return this.API.request("create_favorite",e)}function qc(e){return this.API.request("delete_favorite",e)}function Vc(e){return e.type||(e.type="native"),E.highLevelApi.API.request("notify",e)}function Hc(e){return E.highLevelApi.API.request("track",e)}function Bc(e){return this.API.request("get_instance_metadata_templates",e)}function Yc(){return this.API.request("trigger_non_files_sync")}function Jc(e){return E.highLevelApi.API.request("submit_user_feedback",e)}function kc(){return E.highLevelApi.API.request("close")}function Zc(e){return this.API.request("open_web_view_always_on_top",e)}const Kc=Object.freeze(Object.defineProperty({__proto__:null,close:kc,createCanvas:gc,createEvent:fc,createFavorite:Gc,createFile:Ic,createFolder:Lc,deleteCanvas:vc,deleteEvent:hc,deleteFavorite:qc,deleteFile:Pc,deleteFolder:Wc,downloadFile:Ac,fetchDocumentInfo:Rc,getAppConfig:bc,getCanvas:_c,getCanvases:pc,getEnv:sc,getEvents:dc,getFavorites:Fc,getFile:Sc,getFiles:mc,getFolder:Mc,getInstanceMetadataTemplates:Bc,getLanguages:cc,getRecentFiles:Ec,getUsers:xc,moveFolderItems:zc,notify:Vc,open:ic,openExternalUrl:ac,openWebViewAlwaysOnTop:Zc,query:Uc,refreshServiceToken:Dc,renderPageAsImage:jc,search:Cc,selectDeviceFile:Oc,shareCanvas:yc,submitUserFeedback:Jc,toast:Nc,track:Hc,triggerNonFilesSync:Yc,updateCanvas:wc,updateEvent:lc,updateFile:Tc,updateFolder:$c,updateMyUser:uc},Symbol.toStringTag,{value:"Module"}));class fr{listeners={};on(n,i){this.listeners[n]=(this.listeners[n]??[]).concat(i)}off(n,i){this.listeners[n]=(this.listeners[n]??[]).filter(u=>u!==i)}emit(n,i){(this.listeners[n]??[]).forEach(u=>u(i))}}for(var G=[],Tt=0;Tt<256;++Tt)G.push((Tt+256).toString(16).slice(1));function Qc(e,n=0){return(G[e[n+0]]+G[e[n+1]]+G[e[n+2]]+G[e[n+3]]+"-"+G[e[n+4]]+G[e[n+5]]+"-"+G[e[n+6]]+G[e[n+7]]+"-"+G[e[n+8]]+G[e[n+9]]+"-"+G[e[n+10]]+G[e[n+11]]+G[e[n+12]]+G[e[n+13]]+G[e[n+14]]+G[e[n+15]]).toLowerCase()}var tt,Xc=new Uint8Array(16);function ed(){if(!tt&&(tt=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!tt))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return tt(Xc)}var td=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const lr={randomUUID:td};function nd(e,n,i){if(lr.randomUUID&&!n&&!e)return lr.randomUUID();e=e||{};var u=e.random||(e.rng||ed)();if(u[6]=u[6]&15|64,u[8]=u[8]&63|128,n){i=i||0;for(var h=0;h<16;++h)n[i+h]=u[h];return n}return Qc(u)}const rd="PITCHER_EVENT";var nt=(e=>(e.REQUEST="PITCHER_REQUEST",e.RESPONSE="PITCHER_RESPONSE",e))(nt||{}),rt=(e=>(e.OK="ok",e.ERROR="error",e))(rt||{}),hr=(e=>(e.ENV_CHANGED="env_changed",e.PHOTOS_CAPTURED="photos_captured",e.FILE_DOWNLOADED="file_downloaded",e.FILE_UPLOAD_PROGRESS="file_upload_progress",e.UPDATE_LOCATION="update_location",e.CANVAS_UPDATED="canvas_updated",e.CANVAS_UPDATED_SUCCESS="canvas_updated_success",e.FILE_CLOSED="file_closed",e.APP_BACKGROUNDED="app_backgrounded",e.APP_FOREGROUNDED="app_foregrounded",e.NON_FILES_SYNC_FINISHED="non_files_sync_finished",e.CONTENT_LIST_REFRESH_REQUESTED="content_list_refresh_requested",e.NETWORK_CONNECTION_ESTABLISHED="network_connection_established",e.NETWORK_CONNECTION_LOST="network_connection_lost",e.ENTERED_FULLSCREEN="entered_fullscreen",e.EXITED_FULLSCREEN="exited_fullscreen",e.SUBMIT_POSTCALL_CLICKED="submit_postcall_clicked",e))(hr||{}),pr=(e=>(e.UI_SHOW_MODAL="ui:show-modal",e.UI_HIDE_MODAL="ui:hide-modal",e.FAVORITES_CHANGED="favorites:changed",e.FILE_DOWNLOAD="file:download",e))(pr||{}),gr=(e=>(e.CREATE_AND_OPEN_CANVAS="create_and_open_canvas",e.OPEN_CANVAS="open_canvas",e.START_CALL="start_call",e))(gr||{});class od extends Error{}function id(e,n){if(!e)throw new od(n)}const vr=["id__in","modified_at__gtr","created_at__gtr","end_at__lt","start_at__gt","account__id","end_at__gt","end_at__range","start_at__lt","start_at__range","external_objects__connection_id","external_objects__content_type","external_objects__external_content_type","external_objects__external_object_id"],wr=["context","overrides","filters","metadata","style","hidden"],_r=(e,n)=>n.includes(e)||e.endsWith("style"),Le=(e,n=vr,i=wr)=>Array.isArray(e)?e.map(u=>Le(u,n,i)):e!=null&&e.constructor===Object?Object.keys(e).reduce((u,h)=>{const g=_r(h,i),_=n.includes(h)||g?h:Ss(h),A=g?e[h]:Le(e[h],n,i);return{...u,[_]:A}},{}):e,Pt=(e,n=vr,i=wr)=>Array.isArray(e)?e.map(u=>Pt(u,n,i)):e!=null&&e.constructor===Object?Object.keys(e).reduce((u,h)=>{const g=_r(h,i),_=n.includes(h)||g?h:et(h),A=g?e[h]:Pt(e[h],n,i);return{...u,[_]:A}},{}):e;function ad(e,n=[],i=["development","test"].includes("production")){if(i)return!0;if(!e||!e.origin)return!1;const u=[...n,window.location.origin,"pitcher.com"],h=u.includes(e.origin)||u.some(g=>e.origin.endsWith(g));return h||console.warn(`The message origin ${e.origin} is not the same as the current origin ${window.location.origin}. Bailing...`),h}const It=5,yr=1e3;function $e(e){const n=new URLSearchParams;for(const i in e)Array.isArray(e[i])?e[i].forEach(u=>n.append(i,u)):n.append(i,e[i]);return n.toString()}async function he(e,n,i=It){try{const u=await fetch(e,n);if(!u.ok){if(u.status>=500&&u.status<600&&i>0){const _=yr*Math.pow(2,It-i);return await new Promise(A=>setTimeout(A,_)),he(e,n,i-1)}const h=await u.json(),g=new Error(`HTTP error! status: ${u.status}, message: ${h.message||u.statusText}`);throw g.status=u.status,g}return u.json()}catch(u){if(i>0){const h=yr*Math.pow(2,It-i);return await new Promise(g=>setTimeout(g,h)),he(e,n,i-1)}throw u}}function sd(e,n){const i={"Content-Type":"application/json",Authorization:`Bearer ${n}`},u=e+"/api/v1",h={credentials:"include"};return{get:async(g,_={})=>{const A=new URL(`${u}${g}`);return _.params&&(A.search=$e(_.params)),await he(A.toString(),{...h,..._,method:"GET",headers:i})},post:async(g,_,A={})=>{const I=new URL(`${u}${g}`);return A.params&&(I.search=$e(A.params)),await he(I.toString(),{...h,...A,method:"POST",headers:i,body:JSON.stringify(_)})},put:async(g,_,A={})=>{const I=new URL(`${u}${g}`);return A.params&&(I.search=$e(A.params)),await he(I.toString(),{...h,...A,method:"PUT",headers:i,body:JSON.stringify(_)})},delete:async(g,_={})=>{const A=new URL(`${u}${g}`);return _.params&&(A.search=$e(_.params)),await he(A.toString(),{...h,..._,method:"DELETE",headers:i})},patch:async(g,_,A={})=>{const I=new URL(`${u}${g}`);return A.params&&(I.search=$e(A.params)),await he(I.toString(),{...h,...A,method:"PATCH",headers:i,body:JSON.stringify(_)})}}}let Pe,re;const Ie=(e,...n)=>console.info(`[online handlers]: ${e}`,...n),Oe=()=>{if(!Pe)throw new Error("Missing env");if(!re)throw new Error("Missing http")},ud=e=>{Pe=e,re=sd(Pe.pitcher.token_claims["https://pitcher.com/claims/urls"].custom_domain,Pe.pitcher.access_token)},mr={get_canvases:async e=>{Ie("online handler get_canvases called with:",e),Oe();const{api_base_url:n,...i}=e;return await re.get("/canvases",{params:{...i,instance_id:Pe.pitcher.instance.id}})},get_canvas:async e=>{Ie("online handler get_canvas called with:",e),Oe();const{id:n,...i}=e;return await re.get(`/canvases/${e.id}`,{params:i})},create_canvas:async e=>(Ie("online handler create_canvas called with:",e),Oe(),await re.post("/canvases",{...e,instance_id:Pe.pitcher.instance.id})),update_canvas:async e=>{Ie("online handler update_canvas called with:",e),Oe();const{id:n,...i}=e;return await re.patch(`/canvases/${e.id}`,i)},delete_canvas:async e=>(Ie("online handler delete_canvas called with:",e),Oe(),await re.delete(`/canvases/${e.id}`)),share_canvas:async e=>{Ie("online handler share_canvas called with:",e),Oe();let n;try{n=await re.get(`/shared-links/canvas/${e.id}`)}catch(i){if(i?.status===404)n=await re.post("/shared-links",{canvas_id:e.id});else throw i}return n}};function cd(e){e&&ud(e)}class dd extends fr{constructor(n){super(),this.callbacks={},this.options=n??{casing:"snake",logLevel:"off",errorLogger:()=>{},fetchMode:"postmessage"},typeof window<"u"&&(window.addEventListener("message",i=>{ad(i)&&(this.options.logLevel==="debug"&&console.log("message received",i),i.data.type==="PITCHER_RESPONSE"?(id(i.data.request.id,"event id is required"),this.handleCallbackMessage(i.data.request.id,i.data)):i.data.type==="PITCHER_EVENT"&&this.handleEventMessage(this.options.casing==="camel"?Le(i.data.event):i.data.event))}),this.request("subscribe"))}callbacks;options;handleCallbackMessage(n,i){this.callbacks[n]&&(this.callbacks[n].callback(i),this.options.logLevel&&["info","debug"].includes(this.options.logLevel)&&console.log(`It took ${Date.now()-this.callbacks[n].dispatched_at} ms for the event ${this.callbacks[n].type}`),delete this.callbacks[n])}handleEventMessage(n){this.emit("event",n)}request(n,i=null){const u=this.options.fetchMode??"postmessage";return new Promise((h,g)=>{const _=nd(),A=P=>{if(this.options.logLevel==="debug"&&console.log(`Callback ${_} response:`,P),P.response.status==="ok")h(this.options.casing==="camel"?Le(P.response.body):P.response.body),n==="get_env"&&cd(P.response.body);else if(P.response.status==="error")this.options.errorLogger?.({message:`Pitcher JS API call failure: ${P.request.type}`,js_api_response:JSON.stringify(P)}),g(this.options.casing==="camel"?Le(P.response.body):P.response.body);else throw new Error("unsupported response status")},I=oc(Pt(i));this.callbacks[_]={dispatched_at:Date.now(),type:n,payload:I??{},callback:A},u==="prefer-online"&&n&&mr[n]?mr[n](I).then(P=>{this.callbacks[_]&&(this.callbacks[_].callback({type:nt.RESPONSE,request:{id:_,type:n},response:{status:rt.OK,body:P}}),delete this.callbacks[_])}).catch(P=>{this.callbacks[_]&&(this.callbacks[_].callback({type:nt.RESPONSE,request:{id:_,type:n},response:{status:rt.ERROR,body:P}}),delete this.callbacks[_])}):typeof window<"u"&&window.top&&window.top.postMessage({type:"PITCHER_REQUEST",request:{type:n,id:_,body:I}},"*")})}}function fd(e){const n=new dd(e),i=new fr;return n.on("event",u=>{i.emit(u.type,u.body)}),{API:n,...Kc,on:(u,h)=>i.on(u,h),off:(u,h)=>i.off(u,h),enterFullscreen:()=>n.request("enter_fullscreen"),exitFullscreen:()=>n.request("exit_fullscreen"),logout:()=>n.request("logout"),quitInstance:()=>n.request("quit_instance"),getRequestTypes:()=>n.request("get_request_types"),broadcast:u=>n.request("broadcast",u),subscribe:()=>n.request("subscribe"),unsubscribe:()=>n.request("unsubscribe")}}function C(){return window.postRobot?window.postRobot:Promise.resolve().then(()=>ro).then(e=>e.default||e)}const ld="UI_MESSAGE",L={UI_BROADCAST:"ui_broadcast",UI_SELECT_CONTENT:"ui_select_content",UI_OPEN:"ui_open",UI_EMBEDDABLE_READY:"ui_embeddable_ready",UI_TOAST:"ui_toast",UI_CAPTURE_APP_ERROR:"ui_capture_app_error",UI_UPDATE_CANVAS:"ui_update_canvas",UI_UPDATE_LOCATION:"ui_update_location",UI_PRESELECT_SFDC_MEETING_ID:"ui_preselect_sfdc_meeting_id",UI_SET_POSTCALL_STYLE:"ui_set_postcall_style",UI_ENABLE_POSTCALL_SUBMIT:"ui_enable_postcall_submit",UI_DISABLE_POSTCALL_SUBMIT:"ui_disable_postcall_submit",UI_COMPLETE_POSTCALL:"ui_complete_postcall",UI_CANVAS_NAVIGATE_NEXT_PAGE:"ui_canvas_navigate_next_page",UI_CANVAS_NAVIGATE_PREVIOUS_PAGE:"ui_canvas_navigate_previous_page",UI_CANVAS_NAVIGATE_PAGE:"ui_canvas_navigate_page",UI_APP_LOADED:"ui_app_loaded",UI_APP_RESIZE:"ui_app_resize"},oe={UI_MEETING_CANCELED:"ui_meeting_canceled",UI_CANVAS_UPDATED:"ui_canvas_updated",UI_SECTION_LIST_UPDATED:"ui_section_list_updated",UI_APP_SET_DATA:"ui_app_set_data",UI_APP_UPDATE_DATA:"ui_app_update_data"},Er=[oe.UI_APP_SET_DATA,oe.UI_APP_UPDATE_DATA,oe.UI_CANVAS_UPDATED];async function hd(e={}){const n=await C();return console.warn("[content.ui.ts]: ui_select_content is deprecated and might get removed in future versions, please use select_content instead."),(await n.send(window.parent,L.UI_SELECT_CONTENT,e)).data}async function pd(e={}){return(await(await C()).send(window.parent,L.UI_SELECT_CONTENT,e)).data}async function gd(e){await(await C()).send(window.parent,L.UI_OPEN,e)}async function vd(e){await(await C()).send(window.parent,L.UI_TOAST,e)}async function wd(e){return(await(await C()).send(window.parent,L.UI_PRESELECT_SFDC_MEETING_ID,e)).data}async function _d(){await(await C()).send(window.parent,L.UI_EMBEDDABLE_READY)}async function yd(e){return(await C()).send(window.top,L.UI_UPDATE_LOCATION,e)}async function md(e){(await C()).send(window.parent,L.UI_CAPTURE_APP_ERROR,e)}async function Ed(e){return(await C()).send(window.parent,L.UI_UPDATE_CANVAS,e).then(i=>i.data)}async function Ad(){window.parent.postMessage({type:L.UI_APP_LOADED,body:{}},"*")}async function bd(e){window.parent.postMessage({type:L.UI_APP_RESIZE,body:e},"*")}async function Sd(){(await C()).send(window.parent,L.UI_CANVAS_NAVIGATE_NEXT_PAGE)}async function Td(){(await C()).send(window.parent,L.UI_CANVAS_NAVIGATE_PREVIOUS_PAGE)}async function Pd(e){(await C()).send(window.parent,L.UI_CANVAS_NAVIGATE_PAGE,e)}async function Id(e){(await C()).send(window.parent,L.UI_COMPLETE_POSTCALL,e)}async function Od(){(await C()).send(window.parent,L.UI_ENABLE_POSTCALL_SUBMIT)}async function Cd(){(await C()).send(window.parent,L.UI_DISABLE_POSTCALL_SUBMIT)}async function xd(e){(await C()).send(window.parent,L.UI_SET_POSTCALL_STYLE,e)}async function Dd(e,n){console.log("attaching native handler for type",e);const i=u=>{u.data.type===e&&n(u.data.body)};return window.addEventListener("message",i),()=>window.removeEventListener("message",i)}async function Rd(e,n){return(await C()).on(e,h=>n(h.data)).cancel}function Ce(e,n){return Er.includes(e)?Dd(e,n):Rd(e,n)}function jd(e){return Ce(oe.UI_MEETING_CANCELED,e)}function Nd(e){return Ce(oe.UI_CANVAS_UPDATED,e)}function Ud(e){return Ce(oe.UI_SECTION_LIST_UPDATED,e)}function Md(e){return Ce(oe.UI_APP_SET_DATA,e)}function Ld(e){return Ce(oe.UI_APP_UPDATE_DATA,e)}async function $d(e){(await C()).send(window.parent,L.UI_BROADCAST,e)}const Wd=Object.freeze(Object.defineProperty({__proto__:null,app_loaded:Ad,app_resize:bd,canvas_navigate_next_page:Sd,canvas_navigate_page:Pd,canvas_navigate_previous_page:Td,capture_app_error:md,complete_postcall:Id,disable_postcall_submit:Cd,embeddable_ready:_d,enable_postcall_submit:Od,on:Ce,on_app_set_data:Md,on_app_update_data:Ld,on_canvas_updated:Nd,on_meeting_canceled:jd,on_section_list_updated:Ud,open:gd,preselect_sfdc_meeting_id:wd,select_content:pd,set_postcall_style:xd,toast:vd,ui_broadcast:$d,ui_select_content:hd,update_canvas:Ed,update_location:yd},Symbol.toStringTag,{value:"Module"})),zd="ADMIN_MESSAGE",Fd={ENV_CHANGED:"admin_env_changed"},Gd={ADMIN_REQUEST:"ADMIN_REQUEST",ADMIN_RESPONSE:"ADMIN_RESPONSE"},pe={CREATE_CANVAS:"admin_create_canvas",GET_ENV:"admin_get_env",GET_CANVAS:"admin_get_canvas",GET_CANVASES:"admin_get_canvases",UPDATE_CANVAS:"admin_update_canvas",GET_INSTANCE_METADATA_TEMPLATES:"admin_get_instance_metadata_templates",GET_APP_CONFIG:"admin_get_app_config"};async function qd(){return(await(await C()).send(window.parent,pe.GET_ENV)).data}async function Vd(e){return(await(await C()).send(window.parent,pe.CREATE_CANVAS,e)).data}async function Hd(e){return(await(await C()).send(window.parent,pe.GET_CANVASES,e)).data}async function Bd(e){return(await(await C()).send(window.parent,pe.GET_CANVAS,e)).data}async function Yd(e){return(await(await C()).send(window.parent,pe.UPDATE_CANVAS,e)).data}async function Jd(e){return(await(await C()).send(window.parent,pe.GET_INSTANCE_METADATA_TEMPLATES,e)).data}async function kd(e,n){return(await C()).on(e,h=>n(h.data)).cancel}const Zd=Object.freeze(Object.defineProperty({__proto__:null,createCanvas:Vd,getCanvas:Bd,getCanvases:Hd,getEnv:qd,getInstanceMetadataTemplates:Jd,on:kd,updateCanvas:Yd},Symbol.toStringTag,{value:"Module"})),Kd="DSR_MESSAGE",Qd={ENV_CHANGED:"dsr_env_changed"},Xd={DSR_REQUEST:"DSR_REQUEST",DSR_RESPONSE:"DSR_RESPONSE"},Ot={GET_ENV:"dsr_get_env",DSR_EMBEDDABLE_READY:"dsr_embeddable_ready"};async function ef(){return(await(await C()).send(window.parent,Ot.GET_ENV)).data}async function tf(){await(await C()).send(window.parent,Ot.DSR_EMBEDDABLE_READY)}async function nf(e,n){return(await C()).on(e,h=>n(h.data)).cancel}const rf=Object.freeze(Object.defineProperty({__proto__:null,embeddable_ready:tf,getEnv:ef,on:nf},Symbol.toStringTag,{value:"Module"}));E.highLevelApi=void 0;function ot(e){return E.highLevelApi||(E.highLevelApi=fd(e)),E.highLevelApi}const of=Object.entries(Wd).reduce((e,[n,i])=>(e[n]=i,e[et(n)]=i,e),{});function Ct(){return of}const af=Object.entries(Zd).reduce((e,[n,i])=>(e[n]=i,e[et(n)]=i,e),{});function Ar(){return af}const sf=Object.entries(rf).reduce((e,[n,i])=>(e[n]=i,e[et(n)]=i,e),{});function br(){return sf}function uf(){if(typeof window>"u")throw new Error("getAvailableApis: window is not defined");const e=window.parent.jsApiLocation;return e==="ui"?["ui","impact"]:[e??"impact"]}function cf(){if(typeof window>"u")throw new Error("useApi: window is not defined");const e=window.parent.jsApiLocation;switch(e){case"ui":return{...ot(),...Ct(),ui:Ct(),impact:ot()};case"admin":return Ar();case"dsr":return br();case"impact":return ot();default:throw new Error(`Unknown api for location: ${e}`)}}window.postRobot=Vt,E.ADMIN_API_METHOD_TYPES=pe,E.ADMIN_API_TYPES=Gd,E.ADMIN_MESSAGE=zd,E.ADMIN_MESSAGE_TYPES=Fd,E.DSR_API_METHOD_TYPES=Ot,E.DSR_API_TYPES=Xd,E.DSR_MESSAGE=Kd,E.DSR_MESSAGE_TYPES=Qd,E.PITCHER_EVENT=rd,E.PitcherBroadcastedEventName=pr,E.PitcherEventName=hr,E.PitcherExternalEventName=gr,E.PitcherMessageType=nt,E.PitcherResponseStatus=rt,E.UI_API_METHOD_TYPES=L,E.UI_MESSAGE=ld,E.UI_MESSAGE_TYPES=oe,E.UI_NATIVE_MESSAGE_TYPES=Er,E.getAvailableApis=uf,E.useAdmin=Ar,E.useApi=cf,E.useDsr=br,E.usePitcherApi=ot,E.useUi=Ct,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})});
|
|
18
18
|
//# sourceMappingURL=js-api.umd.min.js.map
|