PageSourceSearch

https://splinterlands.com/assets/react-BMVa1sNe.js

js splinterlands.com collected 2026-09-24 09:53:30 UTC 52,155 bytes, 19 lines download raw bytes

vendor: 1,273 bytes, line 1
1var it=Object.defineProperty;var Le=r=>{throw TypeError(r)};var at=(r,t,e)=>t in r?it(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var he=(r,t,e)=>at(r,typeof t!="symbol"?t+"":t,e),Se=(r,t,e)=>t.has(r)||Le("Cannot "+e);var A=(r,t,e)=>(Se(r,t,"read from private field"),e?e.call(r):t.get(r)),I=(r,t,e)=>t.has(r)?Le("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,e),T=(r,t,e,n)=>(Se(r,t,"write to private field"),n?n.call(r,e):t.set(r,e),e),je=(r,t,e)=>(Se(r,t,"access private method"),e);import{R as ot}from"./vendor-redux-DAFPkm2K.js";import{M as ut}from"./index-B6_3PTYU.js";import{g as ke}from"./vendor-blockchain-B33N8Jyr.js";/*! @vimeo/player v2.29.0 | (c) 2025 Vimeo | MIT License | https://github.com/vimeo/player.js */function Ie(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),e.push.apply(e,n)}return e}function Fe(r){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?Ie(Object(e),!0).forEach(function(n){ye(r,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):Ie(Object(e)).forEac
vendor: 5,911 bytes, line 1
1h(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(e,n))})}return r}function q(){q=function(){return r};var r={},t=Object.prototype,e=t.hasOwnProperty,n=Object.defineProperty||function(l,c,h){l[c]=h.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function f(l,c,h){return Object.defineProperty(l,c,{value:h,enumerable:!0,configurable:!0,writable:!0}),l[c]}try{f({},"")}catch(l){f=function(c,h,C){return c[h]=C}}function s(l,c,h,C){var w=c&&c.prototype instanceof b?c:b,_=Object.create(w.prototype),j=new O(C||[]);return n(_,"_invoke",{value:k(l,h,j)}),_}function E(l,c,h){try{return{type:"normal",arg:l.call(c,h)}}catch(C){return{type:"throw",arg:C}}}r.wrap=s;var v={};function b(){}function M(){}function y(){}var L={};f(L,a,function(){return this});var R=Object.getPrototypeOf,F=R&&R(R(N([])));F&&F!==t&&e.call(F,a)&&(L=F);var m=y.prototype=b.prototype=Object.create(L);function d(l){["next","throw","return"].forEach(function(c){f(l,c,function(h){return this._invoke(c,h)})})}function g(l,c){function h(w,_,j,V){var x=E(l[w],l,_);if(x.type!=="throw"){var ie=x.arg,fe=ie.value;return fe&&typeof fe=="object"&&e.call(fe,"__await")?c.resolve(fe.__await).then(function(J){h("next",J,j,V)},function(J){h("throw",J,j,V)}):c.resolve(fe).then(function(J){ie.value=J,j(ie)},function(J){return h("throw",J,j,V)})}V(x.arg)}var C;n(this,"_invoke",{value:function(w,_){function j(){return new c(function(V,x){h(w,_,V,x)})}return C=C?C.then(j,j):j()}})}function k(l,c,h){var C="suspendedStart";return function(w,_){if(C==="executing")throw new Error("Generator is already running");if(C==="completed"){if(w==="throw")throw _;return z()}for(h.method=w,h.arg=_;;){var j=h.delegate;if(j){var V=S(j,h);if(V){if(V===v)continue;return V}}if(h.method==="next")h.sent=h._sent=h.arg;else if(h.method==="throw"){if(C==="suspendedStart")throw C="completed",h.arg;h.dispatchException(h.arg)}else h.method==="return"&&h.abrupt("return",h.arg);C="executing";var x=E(l,c,h);if(x.type==="normal"){if(C=h.done?"completed":"suspendedYield",x.arg===v)continue;return{value:x.arg,done:h.done}}x.type==="throw"&&(C="completed",h.method="throw",h.arg=x.arg)}}}function S(l,c){var h=c.method,C=l.iterator[h];if(C===void 0)return c.delegate=null,h==="throw"&&l.iterator.return&&(c.method="return",c.arg=void 0,S(l,c),c.method==="throw")||h!=="return"&&(c.method="throw",c.arg=new TypeError("The iterator does not provide a '"+h+"' method")),v;var w=E(C,l.iterator,c.arg);if(w.type==="throw")return c.method="throw",c.arg=w.arg,c.delegate=null,v;var _=w.arg;return _?_.done?(c[l.resultName]=_.value,c.next=l.nextLoc,c.method!=="return"&&(c.method="next",c.arg=void 0),c.delegate=null,v):_:(c.method="throw",c.arg=new TypeError("iterator result is not an object"),c.delegate=null,v)}function P(l){var c={tryLoc:l[0]};1 in l&&(c.catchLoc=l[1]),2 in l&&(c.finallyLoc=l[2],c.afterLoc=l[3]),this.tryEntries.push(c)}function p(l){var c=l.completion||{};c.type="normal",delete c.arg,l.completion=c}function O(l){this.tryEntries=[{tryLoc:"root"}],l.forEach(P,this),this.reset(!0)}function N(l){if(l){var c=l[a];if(c)return c.call(l);if(typeof l.next=="function")return l;if(!isNaN(l.length)){var h=-1,C=function w(){for(;++h<l.length;)if(e.call(l,h))return w.value=l[h],w.done=!1,w;return w.value=void 0,w.done=!0,w};return C.next=C}}return{next:z}}function z(){return{value:void 0,done:!0}}return M.prototype=y,n(m,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:M,configurable:!0}),M.displayName=f(y,u,"GeneratorFunction"),r.isGeneratorFunction=function(l){var c=typeof l=="function"&&l.constructor;return!!c&&(c===M||(c.displayName||c.name)==="GeneratorFunction")},r.mark=function(l){return Object.setPrototypeOf?Object.setPrototypeOf(l,y):(l.__proto__=y,f(l,u,"GeneratorFunction")),l.prototype=Object.create(m),l},r.awrap=function(l){return{__await:l}},d(g.prototype),f(g.prototype,o,function(){return this}),r.AsyncIterator=g,r.async=function(l,c,h,C,w){w===void 0&&(w=Promise);var _=new g(s(l,c,h,C),w);return r.isGeneratorFunction(c)?_:_.next().then(function(j){return j.done?j.value:_.next()})},d(m),f(m,u,"Generator"),f(m,a,function(){return this}),f(m,"toString",function(){return"[object Generator]"}),r.keys=function(l){var c=Object(l),h=[];for(var C in c)h.push(C);return h.reverse(),function w(){for(;h.length;){var _=h.pop();if(_ in c)return w.value=_,w.done=!1,w}return w.done=!0,w}},r.values=N,O.prototype={constructor:O,reset:function(l){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(p),!l)for(var c in this)c.charAt(0)==="t"&&e.call(this,c)&&!isNaN(+c.slice(1))&&(this[c]=void 0)},stop:function(){this.done=!0;var l=this.tryEntries[0].completion;if(l.type==="throw")throw l.arg;return this.rval},dispatchException:function(l){if(this.done)throw l;var c=this;function h(x,ie){return _.type="throw",_.arg=l,c.next=x,ie&&(c.method="next",c.arg=void 0),!!ie}for(var C=this.tryEntries.length-1;C>=0;--C){var w=this.tryEntries[C],_=w.completion;if(w.tryLoc==="root")return h("end");if(w.tryLoc<=this.prev){var j=e.call(w,"catchLoc"),V=e.call(w,"finallyLoc");if(j&&V){if(this.prev<w.catchLoc)return h(w.catchLoc,!0);if(this.prev<w.finallyLoc)return h(w.finallyLoc)}else if(j){if(this.prev<w.catchLoc)return h(w.catchLoc,!0)}else{if(!V)throw new Error("try statement without catch or finally");if(this.prev<w.finallyLoc)return h(w.finallyLoc)}}}},abrupt:function(l,c){for(var h=this.tryEntries.length-1;h>=0;--h){var C=this.tryEntries[h];if(C.tryLoc<=this.prev&&e.call(C,"finallyLoc")&&this.prev<C.finallyLoc){var w=C;break}}w&&(l==="break"||l==="continue")&&w.tryLoc<=c&&c<=w.finallyLoc&&(w=null);var _=w?w.completion:{};return _.type=l,_.arg=c,w?(this.method="next",this.next=w.finallyLoc,v):this.complete(_)}
1,complete:function(l,c){if(l.type==="throw")throw l.arg;return l.type==="break"||l.type==="continue"?this.next=l.arg:l.type==="return"?(this.rval=this.arg=l.arg,this.method="return",this.next="end"):l.type==="normal"&&c&&(this.next=c),v},finish:function(l){for(var c=this.tryEntries.length-1;c>=0;--c){var h=this.tryEntries[c];if(h.finallyLoc===l)return this.complete(h.completion,h.afterLoc),p(h),v}},catch:function(l){for(var c=this.tryEntries.length-1;c>=0;--c){var h=this.tryEntries[c];if(h.tryLoc===l){var C=h.completion;if(C.type==="throw"){var w=C.arg;p(h)}return w}}throw new Error("illegal catch attempt")},delegateYield:function(l,c,h){return this.delegate={iterator:N(l),resultName:c,nextLoc:h},this.method==="next"&&(this.arg=void 0),v}},r}function qe(r,t,e,n,i,a,o){try{var u=r[a](o),f=u.value}catch(s){e(s);return}u.done?t(f):Promise.resolve(f).then(n,i)}function K(r){return function(){var t=this,e=arguments;return new Promise(function(n,i){var a=r.apply(t,e);function o(f){qe(a,n,i,o,u,"next",f)}function u(f){qe(a,n,i,o,u,"throw",f)}o(void 0)})}}function Ue(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function st(r,t){for(var e=0;e<t.length;e++){var n=t[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,Je(n.key),n)}}function Qe(r,t,e){return t&&st(r.prototype,t),Object.defineProperty(r,"prototype",{writable:!1}),r}function ye(r,t,e){return t=Je(t),t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}function ct(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&me(r,t)}function ve(r){return ve=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ve(r)}function me(r,t){return me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},me(r,t)}function Ye(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}function we(r,t,e){return Ye()?we=Reflect.construct.bind():we=function(i,a,o){var u=[null];u.push.apply(u,a);var f=Function.bind.apply(i,u),s=new f;return o&&me(s,o.prototype),s},we.apply(null,arguments)}function lt(r){return Function.toString.call(r).indexOf("[native code]")!==-1}function Ae(r){var t=typeof Map=="function"?new Map:void 0;return Ae=function(n){if(n===null||!lt(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,i)}function i(){return we(n,arguments,ve(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),me(i,n)},Ae(r)}function be(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function ft(r,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return be(r)}function ht(r){var t=Ye();return function(){var n=ve(r),i;if(t){var a=ve(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return ft(this,i)}}function dt(r,t){if(typeof r!="object"||r===null)return r;var e=r[Symbol.toPrimitive];if(e!==void 0){var n=e.call(r,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}function Je(r){var t=dt(r,"string");return typeof t=="symbol"?t:String(t)}var Xe=typeof ke<"u"&&{}.toString.call(ke)==="[object global]";function De(r,t){return r.indexOf(t.toLowerCase())===0?r:"".concat(t.toLowerCase()).concat(r.substr(0,1).toUpperCase()).concat(r.substr(1))}function pt(r){return!!(r&&r.nodeType===1&&"nodeName"in r&&r.ownerDocument&&r.ownerDocument.defaultView)}function vt(r){return!isNaN(parseFloat(r))&&isFinite(r)&&Math.floor(r)==r}function ne(r){return/^(https?:)?\/\/((((player|www)\.)?vimeo\.com)|((player\.)?[a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))(?=$|\/)/.test(r)}function Ke(r){var t=/^https:\/\/player\.((vimeo\.com)|([a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))\/video\/\d+/;return t.test(r)}function mt(r){for(var t=(r||"").match(/^(?:https?:)?(?:\/\/)?([^/?]+)/),e=(t&&t[1]||"").replace("player.",""),n=[".videoji.hk",".vimeo.work",".videoji.cn"],i=0,a=n;i<a.length;i++){var o=a[i];if(e.endsWith(o))return e}return"vimeo.com"}function Ze(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=r.id,e=r.url,n=t||e;if(!n)throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(vt(n))return"https://vimeo.com/".concat(n);if(ne(n))return n.replace("http:","https:");throw t?new TypeError("“".concat(t,"” is not a valid video id.")):new TypeError("“".concat(n,"” is not a vimeo.com url."))}var $e=function(t,e,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"addEventListener",a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"removeEventListener",o=typeof e=="string"?[e]:e;
1return o.forEach(function(u){t[i](u,n)}),{cancel:function(){return o.forEach(function(f){return t[a](f,n)})}}},gt=typeof Array.prototype.indexOf<"u",yt=typeof window<"u"&&typeof window.postMessage<"u";if(!Xe&&(!gt||!yt))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var oe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof ke<"u"?ke:typeof self<"u"?self:{};function wt(r,t){return t={exports:{}},r(t,t.exports),t.exports}/*!
2 * weakmap-polyfill v2.0.4 - ECMAScript6 WeakMap polyfill
3 * https://github.com/polygonplanet/weakmap-polyfill
4 * Copyright (c) 2015-2021 polygonplanet <[email protected]>
5 * @license MIT
6 */(function(r){if(r.WeakMap)return;var t=Object.prototype.hasOwnProperty,e=Object.defineProperty&&(function(){try{return Object.defineProperty({},"x",{value:1}).x===1}catch(a){}})(),n=function(a,o,u){e?Object.defineProperty(a,o,{configurable:!0,writable:!0,value:u}):a[o]=u};r.WeakMap=(function(){function a(){if(this===void 0)throw new TypeError("Constructor WeakMap requires 'new'");if(n(this,"_id",u("_WeakMap")),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}n(a.prototype,"delete",function(s){if(o(this,"delete"),!i(s))return!1;var E=s[this._id];return E&&E[0]===s?(delete s[this._id],!0):!1}),n(a.prototype,"get",function(s){if(o(this,"get"),!!i(s)){var E=s[this._id];if(E&&E[0]===s)return E[1]}}),n(a.prototype,"has",function(s){if(o(this,"has"),!i(s))return!1;var E=s[this._id];return!!(E&&E[0]===s)}),n(a.prototype,"set",function(s,E){if(o(this,"set"),!i(s))throw new TypeError("Invalid value used as weak map key");var v=s[this._id];return v&&v[0]===s?(v[1]=E,this):(n(s,this._id,[s,E]),this)});function o(s,E){if(!i(s)||!t.call(s,"_id"))throw new TypeError(E+" method called on incompatible receiver "+typeof s)}function u(s){return s+"_"+f()+"."+f()}function f(){return Math.random().toString().substring(2)}return n(a,"_polyfill",!0),a})();function i(a){return Object(a)===a}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:oe);var W=wt(function(r){/*! Native Promise Only
7    v0.8.1 (c) Kyle Simpson
8    MIT License: http://getify.mit-license.org
9*/(function(e,n,i){n[e]=n[e]||i(),r.exports&&(r.exports=n[e])})("Promise",oe,function(){var e,n,i,a=Object.prototype.toString,o=typeof setImmediate<"u"?function(d){return setImmediate(d)}:setTimeout;try{Object.defineProperty({},"x",{}),e=function(d,g,k,S){return Object.defineProperty(d,g,{value:k,writable:!0,configurable:S!==!1})}}catch(m){e=function(g,k,S){return g[k]=S,g}}i=(function(){var d,g,k;function S(P,p){this.fn=P,this.self=p,this.next=void 0}return{add:function(p,O){k=new S(p,O),g?g.next=k:d=k,g=k,k=void 0},drain:function(){var p=d;for(d=g=n=void 0;p;)p.fn.call(p.self),p=p.next}}})();function u(m,d){i.add(m,d),n||(n=o(i.drain))}function f(m){var d,g=typeof m;return m!=null&&(g=="object"||g=="function")&&(d=m.then),typeof d=="function"?d:!1}function s(){for(var m=0;m<this.chain.length;m++)E(this,this.state===1?this.chain[m].success:this.chain[m].failure,this.chain[m]);this.chain.length=0}function E(m,d,g){var k,S;try{d===!1?g.reject(m.msg):(d===!0?k=m.msg:k=d.call(void 0,m.msg),k===g.promise?g.reject(TypeError("Promise-chain cycle")):(S=f(k))?S.call(k,g.resolve,g.reject):g.resolve(k))}catch(P){g.reject(P)}}function v(m){var d,g=this;if(!g.triggered){g.triggered=!0,g.def&&(g=g.def);try{(d=f(m))?u(function(){var k=new y(g);try{d.call(m,function(){v.apply(k,arguments)},function(){b.apply(k,arguments)})}catch(S){b.call(k,S)}}):(g.msg=m,g.state=1,g.chain.length>0&&u(s,g))}catch(k){b.call(new y(g),k)}}}function b(m){var d=this;d.triggered||(d.triggered=!0,d.def&&(d=d.def),d.msg=m,d.state=2,d.chain.length>0&&u(s,d))}function M(m,d,g,k){for(var S=0;S<d.length;S++)(function(p){m.resolve(d[p]).then(function(N){g(p,N)},k)})(S)}function y(m){this.def=m,this.triggered=!1}function L(m){this.promise=m,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function R(m){if(typeof m!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var d=new L(this);this.then=function(k,S){var P={success:typeof k=="function"?k:!0,failure:typeof S=="function"?S:!1};return P.promise=new this.constructor(function(O,N){if(typeof O!="function"||typeof N!="function")throw TypeError("Not a function");P.resolve=O,P.reject=N}),d.chain.push(P),d.state!==0&&u(s,d),P.promise},this.catch=function(k){return this.then(void 0,k)};try{m.call(void 0,function(k){v.call(d,k)},function(k){b.call(d,k)})}catch(g){b.call(d,g)}}var F=e({},"constructor",R,!1);return R.prototype=F,e(F,"__NPO__",0,!1),e(R,"resolve",function(d){var g=this;return d&&typeof d=="object"&&d.__NPO__===1?d:new g(function(S,P){if(typeof S!="function"||typeof P!="function")throw TypeError("Not a function");S(d)})}),e(R,"reject",function(d){return new this(function(k,S){if(typeof k!="function"||typeof S!="function")throw TypeError("Not a function");S(d)})}),e(R,"all",function(d){var g=this;return a.call(d)!="[object Array]"?g.reject(TypeError("Not an array")):d.length===0?g.resolve([]):new g(function(S,P){if(typeof S!="function"||typeof P!="function")throw TypeError("Not a function");var p=d.length,O=Array(p),N=0;M(g,d,function(l,c){O[l]=c,++N===p&&S(O)},P)})}),e(R,"race",function(d){var g=this;return a.call(d)!="[object Array]"?g.reject(TypeError("Not an array")):new g(function(S,P){if(typeof S!="function"||typeof P!="function")throw TypeError("Not a function");M(g,d,function(O,N){S(N)},P)})}),R})}),B=new WeakMap;function de(r,t,e){var n=B.get(r.element)||{};t in n||(n[t]=[]),n[t].push(e),B.set(r.element,n)}function Ee(r,t){var e=B.get(r.element)||{};return e[t]||[]}function Pe(r,t,e){var n=B.get(r.element)||{};if(!n[t])return!0;
9if(!e)return n[t]=[],B.set(r.element,n),!0;var i=n[t].indexOf(e);return i!==-1&&n[t].splice(i,1),B.set(r.element,n),n[t]&&n[t].length===0}function bt(r,t){var e=Ee(r,t);if(e.length<1)return!1;var n=e.shift();return Pe(r,t,n),n}function kt(r,t){var e=B.get(r);B.set(t,e),B.delete(r)}function Me(r){if(typeof r=="string")try{r=JSON.parse(r)}catch(t){return console.warn(t),{}}return r}function X(r,t,e){if(!(!r.element.contentWindow||!r.element.contentWindow.postMessage)){var n={method:t};e!==void 0&&(n.value=e);var i=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));i>=8&&i<10&&(n=JSON.stringify(n)),r.element.contentWindow.postMessage(n,r.origin)}}function Et(r,t){t=Me(t);var e=[],n;if(t.event){if(t.event==="error"){var i=Ee(r,t.data.method);i.forEach(function(o){var u=new Error(t.data.message);u.name=t.data.name,o.reject(u),Pe(r,t.data.method,o)})}e=Ee(r,"event:".concat(t.event)),n=t.data}else if(t.method){var a=bt(r,t.method);a&&(e.push(a),n=t.value)}e.forEach(function(o){try{if(typeof o=="function"){o.call(r,n);return}o.resolve(n)}catch(u){}})}var Pt=["airplay","audio_tracks","audiotrack","autopause","autoplay","background","byline","cc","chapter_id","chapters","chromecast","color","colors","controls","dnt","end_time","fullscreen","height","id","initial_quality","interactive_params","keyboard","loop","maxheight","max_quality","maxwidth","min_quality","muted","play_button_position","playsinline","portrait","preload","progress_bar","quality","quality_selector","responsive","skipping_forward","speed","start_time","texttrack","thumbnail_id","title","transcript","transparent","unmute_button","url","vimeo_logo","volume","watch_full_video","width"];function et(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Pt.reduce(function(e,n){var i=r.getAttribute("data-vimeo-".concat(n));return(i||i==="")&&(e[n]=i===""?1:i),e},t)}function Re(r,t){var e=r.html;if(!t)throw new TypeError("An element must be provided");if(t.getAttribute("data-vimeo-initialized")!==null)return t.querySelector("iframe");var n=document.createElement("div");return n.innerHTML=e,t.appendChild(n.firstChild),t.setAttribute("data-vimeo-initialized","true"),t.querySelector("iframe")}function tt(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=arguments.length>2?arguments[2]:void 0;return new Promise(function(n,i){if(!ne(r))throw new TypeError("“".concat(r,"” is not a vimeo.com url."));var a=mt(r),o="https://".concat(a,"/api/oembed.json?url=").concat(encodeURIComponent(r));for(var u in t)t.hasOwnProperty(u)&&(o+="&".concat(u,"=").concat(encodeURIComponent(t[u])));var f="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;f.open("GET",o,!0),f.onload=function(){if(f.status===404){i(new Error("“".concat(r,"” was not found.")));return}
9if(f.status===403){i(new Error("“".concat(r,"” is not embeddable.")));return}try{var s=JSON.parse(f.responseText);if(s.domain_status_code===403){Re(s,e),i(new Error("“".concat(r,"” is not embeddable.")));return}n(s)}catch(E){i(E)}},f.onerror=function(){var s=f.status?" (".concat(f.status,")"):"";i(new Error("There was an error fetching the embed code from Vimeo".concat(s,".")))},f.send()})}function Tt(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document,t=[].slice.call(r.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),e=function(i){"console"in window&&console.error&&console.error("There was an error creating an embed: ".concat(i))};t.forEach(function(n){try{if(n.getAttribute("data-vimeo-defer")!==null)return;var i=et(n),a=Ze(i);tt(a,i,n).then(function(o){return Re(o,n)}).catch(e)}catch(o){e(o)}})}function Mt(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoPlayerResizeEmbeds_){window.VimeoPlayerResizeEmbeds_=!0;var t=function(n){if(ne(n.origin)&&!(!n.data||n.data.event!=="spacechange")){for(var i=r.querySelectorAll("iframe"),a=0;a<i.length;a++)if(i[a].contentWindow===n.source){var o=i[a].parentElement;o.style.paddingBottom="".concat(n.data.data[0].bottom,"px");break}}};window.addEventListener("message",t)}}function St(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoSeoMetadataAppended){window.VimeoSeoMetadataAppended=!0;var t=function(n){if(ne(n.origin)){var i=Me(n.data);if(!(!i||i.event!=="ready"))for(var a=r.querySelectorAll("iframe"),o=0;o<a.length;o++){var u=a[o],f=u.contentWindow===n.source;if(Ke(u.src)&&f){var s=new Ne(u);s.callMethod("appendVideoMetadata",window.location.href)}}}};window.addEventListener("message",t)}}function Ct(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoCheckedUrlTimeParam){window.VimeoCheckedUrlTimeParam
9=!0;var t=function(i){"console"in window&&console.error&&console.error("There was an error getting video Id: ".concat(i))},e=function(i){if(ne(i.origin)){var a=Me(i.data);if(!(!a||a.event!=="ready"))for(var o=r.querySelectorAll("iframe"),u=function(){var E=o[f],v=E.contentWindow===i.source;if(Ke(E.src)&&v){var b=new Ne(E);b.getVideoId().then(function(M){var y=new RegExp("[?&]vimeo_t_".concat(M,"=([^&#]*)")).exec(window.location.href);if(y&&y[1]){var L=decodeURI(y[1]);b.setCurrentTime(L)}}).catch(t)}},f=0;f<o.length;f++)u()}};window.addEventListener("message",e)}}function Ot(){var r=(function(){for(var n,i=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],a=0,o=i.length,u={};a<o;a++)if(n=i[a],n&&n[1]in document){for(a=0;a<n.length;a++)u[i[0][a]]=n[a];return u}return!1})(),t={fullscreenchange:r.fullscreenchange,fullscreenerror:r.fullscreenerror},e={request:function(i){return new Promise(function(a,o){var u=function s(){e.off("fullscreenchange",s),a()};e.on("fullscreenchange",u),i=i||document.documentElement;var f=i[r.requestFullscreen]();f instanceof Promise&&f.then(u).catch(o)})},exit:function(){return new Promise(function(i,a){if(!e.isFullscreen){i();return}var o=function f(){e.off("fullscreenchange",f),i()};e.on("fullscreenchange",o);var u=document[r.exitFullscreen]();u instanceof Promise&&u.then(o).catch(a)})},on:function(i,a){var o=t[i];o&&document.addEventListener(o,a)},off:function(i,a){var o=t[i];o&&document.removeEventListener(o,a)}};return Object.defineProperties(e,{isFullscreen:{get:function(){return!!document[r.fullscreenElement]}},element:{enumerable:!0,get:function(){return document[r.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return!!document[r.fullscreenEnabled]}}}),e}var _t={role:"viewer",autoPlayMuted:!0,allowedDrift:.3,maxAllowedDrift:1,minCheckInterval:.1,maxRateAdjustment:.2,maxTimeToCatchUp:1},At=(function(r){ct(e,r);var t=ht(e);function e(n,i){var a,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=arguments.length>3?arguments[3]:void 0;return Ue(this,e),a=t.call(this),ye(be(a),"logger",void 0),ye(be(a),"speedAdjustment",0),ye(be(a),"adjustSpeed",(function(){var f=K(q().mark(function s(E,v){var b;return q().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(a.speedAdjustment!==v){y.next=2;break}return y.abrupt("return");case 2:return y.next=4,E.getPlaybackRate();case 4:return y.t0=y.sent,y.t1=a.speedAdjustment,y.t2=y.t0-y.t1,y.t3=v,b=y.t2+y.t3,a.log("New playbackRate:  ".concat(b)),y.next=12,E.setPlaybackRate(b);case 12:a.speedAdjustment=v;case 13:case"end":return y.stop()}},s)}));return function(s,E){return f.apply(this,arguments)}})()),a.logger=u,a.init(i,n,Fe(Fe({},_t),o)),a}return Qe(e,[{key:"disconnect",value:function(){this.dispatchEvent(new Event("disconnect"))}},{key:"init",value:(function(){var n=K(q().mark(function a(o,u,f){var s=this,E,v,b;return q().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.next=2,this.waitForTOReadyState(o,"open");case 2:if(f.role!=="viewer"){y.next=10;break}return y.next=5,this.updatePlayer(o,u,f);case 5:E=$e(o,"change",function(){return s.updatePlayer(o,u,f)}),v=this.maintainPlaybackPosition(o,u,f),this.addEventListener("disconnect",function(){v.cancel(),E.cancel()}),y.next=14;break;case 10:return y.next=12,this.updateTimingObject(o,u);case 12:b=$e(u,["seeked","play","pause","ratechange"],function(){return s.updateTimingObject(o,u)},"on","off"),this.addEventListener("disconnect",function(){return b.cancel()});case 14:case"end":return y.stop()}},a,this)}));function i(a,o,u){return n.apply(this,arguments)}return i})()},{key:"updateTimingObject",value:(function(){var n=K(q().mark(function a(o,u){return q().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.t0=o,s.next=3,u.getCurrentTime();case 3:return s.t1=s.sent,s.next=6,u.getPaused();case 6:if(!s.sent){s.next=10;break}s.t2=0,s.next=13;break;case 10:return s.next=12,u.getPlaybackRate();case 12:s.t2=s.sent;case 13:s.t3=s.t2,s.t4={position:s.t1,velocity:s.t3},s.t0.update.call(s.t0,s.t4);case 16:case"end":return s.stop()}},a)}));function i(a,o){return n.apply(this,arguments)}return i})()},{key:"updatePlayer",value:(function(){var n=K(q().mark(function a(o,u,f){var s,E,v;return q().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:if(s=o.query(),E=s.position,v=s.velocity,typeof E=="number"&&u.setCurrentTime(E),typeof v!="number"){M.next=25;break}if(v!==0){M.next=11;break}return M.next=6,u.getPaused();case 6:if(M.t0=M.sent,M.t0!==!1){M.next=9;break}u.pause();case 9:M.next=25;break;case 11:if(!(v>0)){M.next=25;break}return M.next=14,u.getPaused();case 14:if(M.t1=M.sent,M.t1!==!0){M.next=19;break}return M.next=18,u.play().catch((function(){var y=K(q().mark(function L(R){return q().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(!(R.name==="NotAllowedError"&&f.autoPlayMuted)){m.next=5;break}return m.next=3,u.setMuted(!0);case 3:return m.next=5,u.play().catch(function(d){return console.error("Couldn't play the video from TimingSrcConnector. Error:",d)});case 5:case"end":return m.stop()}},L)}));return function(L){return y.apply(this,arguments)}})());case 18:this.updatePlayer(o,u,f);case 19:return M.next=21,u.getPlaybackRate();case 21:if(M.t2=M.sent,M.t3=v,M.t2===M.t3){M.next=25;break}u.setPlaybackRate(v);case 25:case"end":return M.stop()}},a,this)}));function i(a,o,u){return n.apply(this,arguments)}return i})()},{key:"maintainPlaybackPosition",value:function(i,a,o){var u=this,f=o.allowedDrift,s=o.maxAllowedDrift,E=o.minCheckInterval,v=o.maxRateAdjustment,b=o.maxTimeToCatchUp,M=Math.min(b,Math.max(E,s))*1e3,y=(function(){var R=K(q().mark(function F(){var m,d,g,k,S;return q().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(p.t0=i.query().velocity===0,p.t0){p.next=6;break}return p.next=4,a.getPaused();case 4:p.t1=p.sent,p.t0=p.t1===!0;case 6:if(!p.t0){p.next=8;break}return p.abrupt("return");case 8:return p.t2=i.query().position,p.next=11,a.getCurrentTime();case 11:if(p.t3=p.sent,m=p.t2-p.t3,d=Math.abs(m),u.log("Drift: ".concat(m)),!(d>s)){p.next=22;break}return p.next=18,u.adjustSpeed(a,0);case 18:a.setCurrentTime(i.query().position),u.log("Resync by currentTime"),p.next=29;break;case 22:if(!(d>f)){p.next=29;break}return g=d/b,k=v,S=g<k?(k-g)/2:k,p.next=28,u.adjustSpeed(a,S*Math.sign(m));case 28:u.log("Resync by playbackRate");case 29:case"end":return p.stop()}},F)}));return function(){return R.apply(this,arguments)}})(),L=setInterval(function(){return y()},M);return{cancel:function(){return clearInterval(L)}}}},{key:"log",value:function(i){var a;(a=this.logger)===null||a===void 0||a.call(this,"TimingSrcConnector: ".concat(i))}},{key:"waitForTOReadyState",value:function(i,a){return new Promise(function(o){var u=function f(){i.readyState===a?o():i.addEventListener("readystatechange",f,{once:!0})};u()})}}]),e})(Ae(EventTarget)),ae=new WeakMap,Ce=new WeakMap,D={},Ne=(function(){function r(t){var e=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Ue(this,r),window.jQuery&&t instanceof jQuery&&(t.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),t=t[0]),typeof document<"u"&&typeof t=="string"&&(t=document.getElementById(t)),!pt(t))throw new TypeError("You must pass either a valid element or a valid id.");
9if(t.nodeName!=="IFRAME"){var i=t.querySelector("iframe");i&&(t=i)}if(t.nodeName==="IFRAME"&&!ne(t.getAttribute("src")||""))throw new Error("The player element passed isn’t a Vimeo embed.");if(ae.has(t))return ae.get(t);this._window=t.ownerDocument.defaultView,this.element=t,this.origin="*";var a=new W(function(u,f){if(e._onMessage=function(v){if(!(!ne(v.origin)||e.element.contentWindow!==v.source)){e.origin==="*"&&(e.origin=v.origin);var b=Me(v.data),M=b&&b.event==="error",y=M&&b.data&&b.data.method==="ready";if(y){var L=new Error(b.data.message);L.name=b.data.name,f(L);return}var R=b&&b.event==="ready",F=b&&b.method==="ping";if(R||F){e.element.setAttribute("data-ready","true"),u();return}Et(e,b)}},e._window.addEventListener("message",e._onMessage),e.element.nodeName!=="IFRAME"){var s=et(t,n),E=Ze(s);tt(E,s,t).then(function(v){var b=Re(v,t);return e.element=b,e._originalElement=t,kt(t,b),ae.set(e.element,e),v}).catch(f)}});if(Ce.set(this,a),ae.set(this.element,this),this.element.nodeName==="IFRAME"&&X(this,"ping"),D.isEnabled){var o=function(){return D.exit()};this.fullscreenchangeHandler=function(){D.isFullscreen?de(e,"event:exitFullscreen",o):Pe(e,"event:exitFullscreen",o),e.ready().then(function(){X(e,"fullscreenchange",D.isFullscreen)})},D.on("fullscreenchange",this.fullscreenchangeHandler)}return this}return Qe(r,[{key:"callMethod",value:function(e){for(var n=this,i=arguments.length,a=new Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];if(e==null)throw new TypeError("You must pass a method name.");return new W(function(u,f){return n.ready().then(function(){de(n,e,{resolve:u,reject:f}),X(n,e,a)}).catch(f)})}},{key:"get",value:function(e){var n=this;return new W(function(i,a){return e=De(e,"get"),n.ready().then(function(){de(n,e,{resolve:i,reject:a}),X(n,e)}).catch(a)})}},{key:"set",value:function(e,n){var i=this;return new W(function(a,o){if(e=De(e,"set"),n==null)throw new TypeError("There must be a value to set.");return i.ready().then(function(){de(i,e,{resolve:a,reject:o}),X(i,e,n)}).catch(o)})}},{key:"on",value:function(e,n){if(!e)throw new TypeError("You must pass an event name.");if(!n)throw new TypeError("You must pass a callback function.");if(typeof n!="function")throw new TypeError("The callback must be a function.");var i=Ee(this,"event:".concat(e));i.length===0&&this.callMethod("addEventListener",e).catch(function(){}),de(this,"event:".concat(e),n)}},{key:"off",value:function(e,n){if(!e)throw new TypeError("You must pass an event name.");if(n&&typeof n!="function")throw new TypeError("The callback must be a function.");var i=Pe(this,"event:".concat(e),n);i&&this.callMethod("removeEventListener",e).catch(function(a){})}},{key:"loadVideo",value:function(e){return this.callMethod("loadVideo",e)}},{key:"ready",value:function(){var e=Ce.get(this)||new W(function(n,i){i(new Error("Unknown player. Probably unloaded."))});return W.resolve(e)}},{key:"addCuePoint",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.callMethod("addCuePoint",{time:e,data:n})}},{key:"removeCuePoint",value:function(e){return this.callMethod("removeCuePoint",e)}},{key:"enableTextTrack",value:function(e,n){if(!e)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:e,kind:n})}},{key:"disableTextTrack",value:function(){return this.callMethod("disableTextTrack")}},{key:"pause",value:function(){return this.callMethod("pause")}},{key:"play",value:function(){return this.callMethod("play")}},{key:"requestFullscreen",value:function(){return D.isEnabled?D.request(this.element):this.callMethod("requestFullscreen")}},{key:"exitFullscreen",value:function(){return D.isEnabled?D.exit():this.callMethod("exitFullscreen")}},{key:"getFullscreen",value:function(){return D.isEnabled?W.resolve(D.isFullscreen):this.get("fullscreen")}},{key:"requestPictureInPicture",value:function(){return this.callMethod("requestPictureInPicture")}},{key:"exitPictureInPicture",value:function(){return this.callMethod("exitPictureInPicture")}},{key:"getPictureInPicture",value:function(){return this.get("pictureInPicture")}},{key:"remotePlaybackPrompt",value:function(){return this.callMethod("remotePlaybackPrompt")}},{key:"unload",value:function(){return this.callMethod("unload")}},{key:"destroy",value:function(){var e=this;return new W(function(n){if(Ce.delete(e),ae.delete(e.element),e._originalElement&&(ae.delete(e._originalElement),e._originalElement.removeAttribute("data-vimeo-initialized")),e.element&&e.element.nodeName==="IFRAME"&&e.element.parentNode&&(e.element.parentNode.parentNode&&e._originalElement&&e._originalElement!==e.element.parentNode?e.element.parentNode.parentNode.removeChild(e.element.parentNode):e.element.parentNode.removeChild(e.element)),e.element&&e.element.nodeName==="DIV"&&e.element.parentNode){e.element.removeAttribute("data-vimeo-initialized");var i=e.element.querySelector("iframe");i&&i.parentNode&&(i.parentNode.parentNode&&e._originalElement&&e._originalElement!==i.parentNode?i.parentNode.parentNode.removeChild(i.parentNode):i.parentNode.removeChild(i))}e._window.removeEventListener("message",e._onMessage),D.isEnabled&&D.off("fullscreenchange",e.fullscreenchangeHandler),n()})}},{key:"getAutopause",value:function(){return this.get("autopause")}},{key:"setAutopause",value:function(e){return this.set("autopause",e)}},{key:"getBuffered",value:function(){return this.get("buffered")}},{key:"getCameraProps",value:function(){return this.get("cameraProps")}},{key:"setCameraProps",value:function(e){return this.set("cameraProps",e)}},{key:"getChapters",value:function(){return this.get("chapters")}},{key:"getCurrentChapter",value:function(){return this.get("currentChapter")}},{key:"getColor",value:function(){return this.get("color")}},{key:"getColors",value:function(){return W.all([this.get("colorOne"),this.get("colorTwo"),this.get("colorThree"),this.get("colorFour")])}},{key:"setColor",value:function(e){return this.set("color",e)}},{key:"setColors",value:function(e){if(!Array.isArray(e))return new W(function(a,o){return o(new TypeError("Argument must be an array."))});var n=new W(function(a){return a(null)}),i=[e[0]?this.set("colorOne",e[0]):n,e[1]?this.set("colorTwo",e[1]):n,e[2]?this.set("colorThree",e[2]):n,e[3]?this.set("colorFour",e[3]):n];return W.all(i)}},{key:"getCuePoints",value:function(){return this.get("cuePoints")}},{key:"getCurrentTime",value:function(){return this.get("currentTime")}},{key:"setCurrentTime",value:function(e){return this.set("currentTime",e)}
9},{key:"getDuration",value:function(){return this.get("duration")}},{key:"getEnded",value:function(){return this.get("ended")}},{key:"getLoop",value:function(){return this.get("loop")}},{key:"setLoop",value:function(e){return this.set("loop",e)}},{key:"setMuted",value:function(e){return this.set("muted",e)}},{key:"getMuted",value:function(){return this.get("muted")}},{key:"getPaused",value:function(){return this.get("paused")}},{key:"getPlaybackRate",value:function(){return this.get("playbackRate")}},{key:"setPlaybackRate",value:function(e){return this.set("playbackRate",e)}},{key:"getPlayed",value:function(){return this.get("played")}},{key:"getQualities",value:function(){return this.get("qualities")}},{key:"getQuality",value:function(){return this.get("quality")}},{key:"setQuality",value:function(e){return this.set("quality",e)}},{key:"getRemotePlaybackAvailability",value:function(){return this.get("remotePlaybackAvailability")}},{key:"getRemotePlaybackState",value:function(){return this.get("remotePlaybackState")}},{key:"getSeekable",value:function(){return this.get("seekable")}},{key:"getSeeking",value:function(){return this.get("seeking")}},{key:"getTextTracks",value:function(){return this.get("textTracks")}},{key:"getVideoEmbedCode",value:function(){return this.get("videoEmbedCode")}},{key:"getVideoId",value:function(){return this.get("videoId")}},{key:"getVideoTitle",value:function(){return this.get("videoTitle")}},{key:"getVideoWidth",value:function(){return this.get("videoWidth")}},{key:"getVideoHeight",value:function(){return this.get("videoHeight")}},{key:"getVideoUrl",value:function(){return this.get("videoUrl")}},{key:"getVolume",value:function(){return this.get("volume")}},{key:"setVolume",value:function(e){return this.set("volume",e)}},{key:"setTimingSrc",value:(function(){var t=K(q().mark(function n(i,a){var o=this,u;return q().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(i){s.next=2;break}throw new TypeError("A Timing Object must be provided.");case 2:return s.next=4,this.ready();case 4:return u=new At(this,i,a),X(this,"notifyTimingObjectConnect"),u.addEventListener("disconnect",function(){return X(o,"notifyTimingObjectDisconnect")}),s.abrupt("return",u);case 8:case"end":return s.stop()}},n,this)}));function e(n,i){return t.apply(this,arguments)}return e})()}]),r})();Xe||(D=Ot(),Tt(),Mt(),St(),Ct());const Rt="https://player.vimeo.com/video",Nt="https://vimeo.com/event",Lt=/vimeo\.com\/(video\/|event\/)?(\d+)(?:\/([\w-]+))?/;function Ve(r,t={}){var e;const n={src:jt(r,t),frameborder:0,width:"100%",height:"100%",allow:"accelerometer; fullscreen; autoplay; encrypted-media; gyroscope; picture-in-picture"};return t.config&&(n["data-config"]=JSON.stringify(t.config)),(e=t.config)!=null&&e.referrerpolicy&&(n.referrerpolicy=t.config.referrerpolicy),"\n    <style>\n      :host {\n        display: inline-block;\n        min-width: 300px;\n        min-height: 150px;\n        position: relative;\n      }\n      iframe {\n        position: absolute;\n        top: 0;\n        left: 0;\n      }\n      :host(:not([controls])) {\n        pointer-events: none;\n      }\n    </style>\n    <iframe".concat(It(n),"></iframe>\n  ")}function jt(r,t){var f;if(!r.src)return;let e=new URL(r.src);const n=r.src.match(Lt),i=n==null?void 0:n[1],a=n==null?void 0:n[2],o=e.searchParams.get("h")||(n==null?void 0:n[3]),u={controls:r.controls===""?null:0,autoplay:r.autoplay,loop:r.loop,muted:r.muted,playsinline:r.playsinline,preload:(f=r.preload)!=null?f:"metadata",transparent:!1,autopause:r.autopause,h:o,...t.config};if(i==="event/"){const s=o?"/".concat(o):"";return delete u.h,"".concat(Nt,"/").concat(a,"/embed").concat(s,"?").concat(xe(u))}return"".concat(Rt,"/").concat(a,"?").concat(xe(u))}var Ge,ue,se,ge,H,G,U,$,Z,ee,Q,te,Y,ce,le,re,Te,rt;class pe extends ut((Ge=globalThis.HTMLElement)!=null?Ge:class{}){constructor(){super();I(this,Te);he(this,"loadComplete",new We);I(this,ue);I(this,se);I(this,ge);I(this,H,0);I(this,G,NaN);I(this,U,!1);I(this,$,!this.autoplay);I(this,Z,1);I(this,ee,0);I(this,Q,0);I(this,te,!1);I(this,Y,1);I(this,ce,NaN);I(this,le,NaN);I(this,re,null);je(this,Te,rt).call(this,"config")}requestFullscreen(){var e,n;return(n=(e=this.api)==null?void 0:e.requestFullscreen)==null?void 0:n.call(e)}exitFullscreen(){var e,n;return(n=(e=this.api)==null?void 0:e.exitFullscreen)==null?void 0:n.call(e)}requestPictureInPicture(){var e,n;return(n=(e=this.api)==null?void 0:e.requestPictureInPicture)==null?void 0:n.call(e)}exitPictureInPicture(){var e,n;return(n=(e=this.api)==null?void 0:e.exitPictureInPicture)==null?void 0:n.call(e)}get config(){return A(this,re)}set config(e){T(this,re,e)}async load(){var E;var e;if(A(this,ue))return;const n=!A(this,se);A(this,se)&&(this.loadComplete=new We),T(this,se,!0),await T(this,ue,Promise.resolve()),T(this,ue,null),T(this,H,0),T(this,G,NaN),T(this,U,!1),T(this,$,!this.autoplay),T(this,Z,1),T(this,ee,0),T(this,Q,0),T(this,te,!1),T(this,Y,1),T(this,Q,0),T(this,ce,NaN),T(this,le,NaN),this.dispatchEvent(new Event("emptied"));let i=this.api;if(this.api=null,!this.src)return;this.dispatchEvent(new Event("loadstart"));const a={autoplay:this.autoplay,controls:this.controls,loop:this.loop,muted:this.defaultMuted,playsinline:this.playsInl
9ine,preload:(E=this.preload)!=null?E:"metadata",transparent:!1,autopause:this.hasAttribute("autopause"),...A(this,re)},o=async()=>{T(this,Q,1),this.dispatchEvent(new Event("loadedmetadata")),this.api&&(T(this,U,await this.api.getMuted()),T(this,Y,await this.api.getVolume()),this.dispatchEvent(new Event("volumechange")),T(this,G,await this.api.getDuration()),this.dispatchEvent(new Event("durationchange"))),this.dispatchEvent(new Event("loadcomplete")),this.loadComplete.resolve()};if(A(this,ge)){this.api=i,await this.api.loadVideo({...a,url:this.src}),await o(),await this.loadComplete;return}T(this,ge,!0);let u=(e=this.shadowRoot)==null?void 0:e.querySelector("iframe");n&&u&&T(this,re,JSON.parse(u.getAttribute("data-config")||"{}")),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.innerHTML=Ve(qt(this.attributes),this),u=this.shadowRoot.querySelector("iframe")),this.api=new Ne(u);const f=document.createElement("video");this.textTracks=f.textTracks,this.api.getTextTracks().then(v=>{v.forEach(b=>{f.addTextTrack(b.kind,b.label,b.language)})}),this.textTracks.addEventListener("change",()=>{const v=Array.from(this.textTracks).find(b=>b.mode==="showing");v?this.api.enableTextTrack(v.language,v.kind):this.api.disableTextTrack()});const s=()=>{this.api.off("loaded",s),o()};this.api.on("loaded",s),this.api.on("bufferstart",()=>{A(this,$)&&(T(this,$,!1),this.dispatchEvent(new Event("play"))),this.dispatchEvent(new Event("waiting"))}),this.api.on("play",()=>{A(this,$)&&(T(this,$,!1),this.dispatchEvent(new Event("play")))}),this.api.on("playing",()=>{T(this,Q,3),T(this,$,!1),this.dispatchEvent(new Event("playing"))}),this.api.on("seeking",()=>{T(this,te,!0),this.onSeeking(),this.dispatchEvent(new Event("seeking"))}),this.api.on("seeked",async()=>{T(this,te,!1),T(this,H,await this.api.getCurrentTime().catch(()=>A(this,H))),this.dispatchEvent(new Event("seeked"))}),this.api.on("pause",()=>{T(this,$,!0),this.dispatchEvent(new Event("pause"))}),this.api.on("ended",()=>{T(this,$,!0),this.dispatchEvent(new Event("ended"))}),this.api.on("ratechange",({playbackRate:v})=>{T(this,Z,v),this.dispatchEvent(new Event("ratechange"))}),this.api.on("volumechange",async({volume:v})=>{T(this,Y,v),this.api&&T(this,U,await this.api.getMuted()),this.dispatchEvent(new Event("volumechange"))}),this.api.on("durationchange",({duration:v})=>{T(this,G,v),this.dispatchEvent(new Event("durationchange"))}),this.api.on("timeupdate",({seconds:v})=>{const b=Math.round(v*100)/100;T(this,H,b),this.dispatchEvent(new Event("timeupdate"))}),this.api.on("progress",({seconds:v})=>{T(this,ee,v),this.dispatchEvent(new Event("progress"))}),this.api.on("resize",({videoWidth:v,videoHeight:b})=>{T(this,ce,v),T(this,le,b),this.dispatchEvent(new Event("resize"))}),await this.loadComplete}async attributeChangedCallback(e,n,i){if(n!==i){switch(e){case"autoplay":case"controls":case"src":{this.load();return}}switch(await this.loadComplete,e){case"loop":{this.api.setLoop(this.loop);break}}}}async play(){var e;T(this,$,!1),this.dispatchEvent(new Event("play")),await this.loadComplete;try{await((e=this.api)==null?void 0:e.play())}catch(n){throw T(this,$,!0),this.dispatchEvent(new Event("pause")),n}}async pause(){var e;return await this.loadComplete,(e=this.api)==null?void 0:e.pause()}get ended(){return A(this,H)>=A(this,G)}get seeking(){return A(this,te)}get readyState(){return A(this,Q)}get videoWidth(){return A(this,ce)}get videoHeight(){return A(this,le)}get src(){return this.getAttribute("src")}set src(e){this.src!=e&&this.setAttribute("src",e)}get paused(){return A(this,$)}get duration(){return A(this,G)}get autoplay(){return this.hasAttribute("autoplay")}set autoplay(e){this.autoplay!=e&&this.toggleAttribute("autoplay",!!e)}get buffered(){return A(this,ee)>0?ze(0,A(this,ee)):ze()}get controls(){return this.hasAttribute("controls")}set controls(e){this.controls!=e&&this.toggleAttribute("controls",!!e)}get currentTime(){return A(this,H)}set currentTime(e){this.currentTime!=e&&(T(this,H,e),this.loadComplete.then(()=>{var n;(n=this.api)==null||n.setCurrentTime(e).catch(()=>{})}))}get defaultMuted(){return this.hasAttribute("muted")}set defaultMuted(e){this.defaultMuted!=e&&this.toggleAttribute("muted",!!e)}get loop(){return this.hasAttribute("loop")}set loop(e){this.loop!=e&&this.toggleAttribute("loop",!!e)}get muted(){return A(this,U)}set muted(e){this.muted!=e&&(T(this,U,e),this.loadComplete.then(()=>{var n;(n=this.api)==null||n.setMuted(e).catch(()=>{})}))}get playbackRate(){return A(this,Z)}set playbackRate(e){this.playbackRate!=e&&(T(this,Z,e),this.loadComplete.then(()=>{var n;(n=this.api)==null||n.setPlaybackRate(e).catch(()=>{})}))}
9get playsInline(){return this.hasAttribute("playsinline")}set playsInline(e){this.playsInline!=e&&this.toggleAttribute("playsinline",!!e)}get poster(){return this.getAttribute("poster")}set poster(e){this.poster!=e&&this.setAttribute("poster","".concat(e))}get volume(){return A(this,Y)}set volume(e){this.volume!=e&&(T(this,Y,e),this.loadComplete.then(()=>{var n;(n=this.api)==null||n.setVolume(e).catch(()=>{})}))}}ue=new WeakMap,se=new WeakMap,ge=new WeakMap,H=new WeakMap,G=new WeakMap,U=new WeakMap,$=new WeakMap,Z=new WeakMap,ee=new WeakMap,Q=new WeakMap,te=new WeakMap,Y=new WeakMap,ce=new WeakMap,le=new WeakMap,re=new WeakMap,Te=new WeakSet,rt=function(e){if(Object.prototype.hasOwnProperty.call(this,e)){const n=this[e];delete this[e],this[e]=n}},he(pe,"getTemplateHTML",Ve),he(pe,"shadowRootOptions",{mode:"open"}),he(pe,"observedAttributes",["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src"]);function It(r){let t="";for(const e in r){const n=r[e];n===""?t+=" ".concat(Oe(e)):t+=" ".concat(Oe(e),'="').concat(Oe("".concat(n)),'"')}return t}function Oe(r){return r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/`/g,"&#x60;")}function xe(r){return String(new URLSearchParams(Ft(r)))}function Ft(r){let t={};for(let e in r){let n=r[e];n===!0||n===""?t[e]=1:n===!1?t[e]=0:n!=null&&(t[e]=n)}return t}function qt(r){let t={};for(let e of r)t[e.name]=e.value;return t}class We extends Promise{constructor(t=()=>{}){let e,n;super((i,a)=>{t(i,a),e=i,n=a}),this.resolve=e,this.reject=n}}function ze(r,t){return Array.isArray(r)?_e(r):r==null||t==null||r===0&&t===0?_e([[0,0]]):_e([[r,t]])}function _e(r){return Object.defineProperties(r,{start:{value:t=>r[t][0]},end:{value:t=>r[t][1]}}),r}globalThis.customElements&&!globalThis.customElements.get("vimeo-video")&&globalThis.customElements.define("vimeo-video",pe);var Dt=pe,$t=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),Vt={className:"class",htmlFor:"for"};function nt(r){return r.toLowerCase()}function He(r){if(typeof r=="boolean")return r?"":void 0;if(typeof r!="function"&&!(typeof r=="object"&&r!==null))return r}function xt({react:r,tagName:t,elementClass:e,events:n,displayName:i,defaultProps:a,toAttributeName:o=nt,toAttributeValue:u=He}){const f=Number.parseInt(r.version)>=19,s=r.forwardRef((E,v)=>{var g,k,S;var b,M;const y=r.useRef(null),L=r.useRef(new Map),R={},F={},m={},d={};for(const[P,p]of Object.entries(E)){if($t.has(P)){m[P]=p;continue}const O=o((g=Vt[P])!=null?g:P);if(e.prototype&&P in e.prototype&&!(P in((k=(b=globalThis.HTMLElement)==null?void 0:b.prototype)!=null?k:{}))&&!((M=e.observedAttributes)!=null&&M.some(z=>z===O))){d[P]=p;continue}if(P.startsWith("on")){R[P]=p;continue}const N=u(p);if(O&&N!=null&&(F[O]=String(N),f||(m[O]=N)),O&&f){const z=He(p);N!==z?m[O]=N:m[O]=p}}if(typeof window<"u"){for(const P in R){const p=R[P],O=P.endsWith("Capture"),N=((S=n==null?void 0:n[P])!=null?S:P.slice(2).toLowerCase()).slice(0,O?-7:void 0);r.useLayoutEffect(()=>{const z=y==null?void 0:y.current;if(!(!z||typeof p!="function"))return z.addEventListener(N,p,O),()=>{z.removeEventListener(N,p,O)}},[y==null?void 0:y.current,p])}r.useLayoutEffect(()=>{if(y.current===null)return;const P=new Map;for(const p in d)Be(y.current,p,d[p]),L.current.delete(p),P.set(p,d[p]);for(const[p,O]of L.current)Be(y.current,p,void 0);L.current=P})}if(typeof window>"u"&&(e!=null&&e.getTemplateHTML)&&(e!=null&&e.shadowRootOptions)){const{mode:P,delegatesFocus:p}=e.shadowRootOptions,O=r.createElement("template",{shadowrootmode:P,shadowrootdelegatesfocus:p,dangerouslySetInnerHTML:{__html:e.getTemplateHTML(F,E)},key:"ce-la-react-ssr-template-shadow-root"});m.children=[O,m.children]}return r.createElement(t,{...a,...m,ref:r.useCallback(P=>{y.current=P,typeof v=="function"?v(P):v!==null&&(v.current=P)},[v])},m.children)});return s.displayName=i!=null?i:e.name,s}function Be(r,t,e){var i;var n;r[t]=e,e==null&&t in((i=(n=globalThis.HTMLElement)==null?void 0:n.prototype)!=null?i:{})&&r.removeAttribute(t)}var Gt=xt({react:ot,tagName:"vimeo-video",elementClass:Dt,toAttributeName(r){return r==="muted"?"":r==="defaultMuted"?"muted":nt(r)}});/*! Bundled license information:
10
11ce-la-react/dist/ce-la-react.js:
12  (**
13   * @license
14   * Copyright 2018 Google LLC
15   * SPDX-License-Identifier: BSD-3-Clause
16   *
17   * Modified version of `@lit/react` for vanilla custom elements with support for SSR.
18   *)
19*/export{Gt as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.