PageSourceSearch

https://www.dukesheadputney.com/_next/static/chunks/0imi-kqeuho5b.js

js dukesheadputney.com collected 2026-10-04 13:21:20 UTC 59,506 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,35305,(e,t,r)=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},61227,(e,t,r)=>{"use strict";var n=e.r(35305);function o(){}function a(){}a.resetWarningCache=o,t.exports=function(){function e(e,t,r,o,a,i){if(i!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return r.PropTypes=r,r}},4153,(e,t,r)=>{e.i(6971),t.exports=e.r(61227)()},65932,(e,t,r)=>{"use strict";t.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(o=n;0!=o--;)if(!e(t[o],r[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(a=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(r,a[o]))return!1;for(o=n;0!=o--;){var n,o,a,i=a[o];if(!e(t[i],r[i]))return!1}return!0}return t!=t&&r!=r}},12311,(e,t,r)=>{"use strict";t.exports=function(){var e={},t={};return e.on=function(e,r){var n={name:e,handler:r};return t[e]=t[e]||[],t[e].unshift(n),n},e.off=function(e){var r=t[e.name].indexOf(e);-1!==r&&t[e.name].splice(r,1)},e.trigger=function(e,r){var n,o=t[e];if(o)for(n=o.length;n--;)o[n].handler(r)},e}},57664,(e,t,r)=>{function n(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(Error("Failed to load "+this.src),e)}}t.exports=function(e,t,r){var o=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");"function"==typeof t&&(r=t,t={}),r=r||function(){},a.type=(t=t||{}).type||"text/javascript",a.charset=t.charset||"utf8",a.async=!("async"in t)||!!t.async,a.src=e,t.attrs&&function(e,t){for(var r in t)e.setAttribute(r,t[r])}(a,t.attrs),t.text&&(a.text=""+t.text),("onload"in a?n:function(e,t){e.onreadystatechange=function(){("complete"==this.readyState||"loaded"==this.readyState)&&(this.onreadystatechange=null,t(null,e))}})(a,r),a.onload||n(a,r),o.appendChild(a)}},17129,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,o=(n=e.r(57664))&&n.__esModule?n:{default:n};r.default=function(e){return new Promise(function(t){if(window.YT&&window.YT.Player&&window.YT.Player instanceof Function)return void t(window.YT);var r="http:"===window.location.protocol?"http:":"https:";(0,o.default)(r+"//www.youtube.com/iframe_api",function(t){t&&e.trigger("error",t)});var n=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){n&&n(),t(window.YT)}})},t.exports=r.default},59979,(e,t,r)=>{function n(e,t,r){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+r:Math.ceil(e/t)+" "+r+"s"}t.exports=function(e,t){t=t||{};var r,o,a=typeof e;if("string"===a&&e.length>0){var i=e;if(!((i=String(i)).length>100)){var s=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(i);if(s){var u=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*u;case"days":case"day":case"d":return 864e5*u;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*u;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*u;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*u;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:break}}}return}if("number"===a&&!1===isNaN(e)){return t.long?n(r=e,864e5,"day")||n(r,36e5,"hour")||n(r,6e4,"minute")||n(r,1e3,"second")||r+" ms":(o=e)>
1=864e5?Math.round(o/864e5)+"d":o>=36e5?Math.round(o/36e5)+"h":o>=6e4?Math.round(o/6e4)+"m":o>=1e3?Math.round(o/1e3)+"s":o+"ms"}throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},741,(e,t,r)=>{var n;function o(e){function t(){if(t.enabled){var e=+new Date;t.diff=e-(n||e),t.prev=n,t.curr=e,n=e;for(var o=Array(arguments.length),a=0;a<o.length;a++)o[a]=arguments[a];o[0]=r.coerce(o[0]),"string"!=typeof o[0]&&o.unshift("%O");var i=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,function(e,n){if("%%"===e)return e;i++;var a=r.formatters[n];if("function"==typeof a){var s=o[i];e=a.call(t,s),o.splice(i,1),i--}return e}),r.formatArgs.call(t,o),(t.log||r.log||console.log.bind(console)).apply(t,o)}}return t.namespace=e,t.enabled=r.enabled(e),t.useColors=r.useColors(),t.color=function(e){var t,n=0;for(t in e)n=(n<<5)-n+e.charCodeAt(t)|0;return r.colors[Math.abs(n)%r.colors.length]}(e),"function"==typeof r.init&&r.init(t),t}(r=t.exports=o.debug=o.default=o).coerce=function(e){return e instanceof Error?e.stack||e.message:e},r.disable=function(){r.enable("")},r.enable=function(e){r.save(e),r.names=[],r.skips=[];for(var t=("string"==typeof e?e:"").split(/[\s,]+/),n=t.length,o=0;o<n;o++)t[o]&&("-"===(e=t[o].replace(/\*/g,".*?"))[0]?r.skips.push(RegExp("^"+e.substr(1)+"$")):r.names.push(RegExp("^"+e+"$")))},r.enabled=function(e){var t,n;for(t=0,n=r.skips.length;t<n;t++)if(r.skips[t].test(e))return!1;for(t=0,n=r.names.length;t<n;t++)if(r.names[t].test(e))return!0;return!1},r.humanize=e.r(59979),r.names=[],r.skips=[],r.formatters={}},39359,(e,t,r)=>{var n=e.i(6971);function o(){var e;try{e=r.storage.debug}catch(e){}return!e&&void 0!==n.default&&"env"in n.default&&(e=n.default.env.DEBUG),e}(r=t.exports=e.r(741)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},r.formatArgs=function(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+r.humanize(this.diff),t){var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var o=0,a=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(o++,"%c"===e&&(a=o))}),e.splice(a,0,n)}},r.save=function(e){try{null==e?r.storage.removeItem("debug"):r.storage.debug=e}catch(e){}},r.load=o,r.useColors=function(){return"u">typeof window&&!!window.process&&"renderer"===window.process.type||"u">typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"u">typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},r.storage="u">typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),r.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],r.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},r.enable(o())},29856,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=["cueVideoById","loadVideoById","cueVideoByUrl","loadVideoByUrl","playVideo","pauseVideo","stopVideo","getVideoLoadedFraction","cuePlaylist","loadPlaylist","nextVideo","previousVideo","playVideoAt","setShuffle","setLoop","getPlaylist","getPlaylistIndex","setOption","mute","unMute","isMuted","
1setVolume","getVolume","seekTo","getPlayerState","getPlaybackRate","setPlaybackRate","getAvailablePlaybackRates","getPlaybackQuality","setPlaybackQuality","getAvailableQualityLevels","getCurrentTime","getDuration","removeEventListener","getVideoUrl","getVideoEmbedCode","getOptions","getOption","addEventListener","destroy","setSize","getIframe"],t.exports=r.default},8240,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=["ready","stateChange","playbackQualityChange","playbackRateChange","error","apiChange","volumeChange"],t.exports=r.default},51830,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default={BUFFERING:3,ENDED:0,PAUSED:2,PLAYING:1,UNSTARTED:-1,VIDEO_CUED:5},t.exports=r.default},56258,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,o=(n=e.r(51830))&&n.__esModule?n:{default:n};r.default={pauseVideo:{acceptableStates:[o.default.ENDED,o.default.PAUSED],stateChangeRequired:!1},playVideo:{acceptableStates:[o.default.ENDED,o.default.PLAYING],stateChangeRequired:!1},seekTo:{acceptableStates:[o.default.ENDED,o.default.PLAYING,o.default.PAUSED],stateChangeRequired:!0,timeout:3e3}},t.exports=r.default},26548,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=s(e.r(39359)),o=s(e.r(29856)),a=s(e.r(8240)),i=s(e.r(56258));function s(e){return e&&e.__esModule?e:{default:e}}var u=(0,n.default)("youtube-player"),c={};c.proxyEvents=function(e){var t={},r=function(r){var n="on"+r.slice(0,1).toUpperCase()+r.slice(1);t[n]=function(t){u('event "%s"',n,t),e.trigger(r,t)}},n=!0,o=!1,i=void 0;try{for(var s,c=a.default[Symbol.iterator]();!(n=(s=c.next()).done);n=!0){var l=s.value;r(l)}}catch(e){o=!0,i=e}finally{try{!n&&c.return&&c.return()}finally{if(o)throw i}}return t},c.promisifyPlayer=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={},n=function(n){t&&i.default[n]?r[n]=function(){for(var t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];return e.then(function(e){var t=i.default[n],o=e.getPlayerState(),a=e[n].apply(e,r);return t.stateChangeRequired||Array.isArray(t.acceptableStates)&&-1===t.acceptableStates.indexOf(o)?new Promise(function(r){e.addEventListener("onStateChange",function n(){var o=e.getPlayerState(),a=void 0;"number"==typeof t.timeout&&(a=setTimeout(function(){e.removeEventListener("onStateChange",n),r()},t.timeout)),Array.isArray(t.acceptableStates)&&-1!==t.acceptableStates.indexOf(o)&&(e.removeEventListener("onStateChange",n),clearTimeout(a),r())})}).then(function(){return a}):a})}:r[n]=function(){for(var t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];return e.then(function(e){return e[n].apply(e,r)})}},a=!0,s=!1,u=void 0;try{for(var c,l=o.default[Symbol.iterator]();!(a=(c=l.next()).done);a=!0){var f=c.value;n(f)}}catch(e){s=!0,u=e}finally{try{!a&&l.return&&l.return()}finally{if(s)throw u}}return r},r.default=c,t.exports=r.default},4645,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=s(e.r(12311)),a=s(e.r(17129)),i=s(e.r(26548));function s(e){return e&&e.__esModule?e:{default:e}}var u=void 0;r.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=(0,o.default)();if(u||(u=(0,a.default)(s)),t.events)throw Error("Event handlers cannot be overwritten.");if("string"==typeof e&&!document.getElementById(e))throw Error('Element "'+e+'" does not exist.');t.events=i.default.proxyEvents(s);var c=new Promise(function(r){(void 0===e?"undefined":n(e))==="object"&&e.playVideo instanceof Function?r(e):u.then(function(n){var o=new n.Player(e,t);return s.on("ready",function(){r(o)}),null})}),l=i.default.promisifyPlayer(c,r);return l.on=s.on,l.off=s.off,l},t.exports=r.default},87848,e=>{e.v({fallback:"Video-module-scss-module__DVS8IW__fallback",hide:"Video-module-scss-module__DVS8IW__hide",video:"Video-module-scss-module__DVS8IW__video"})},79121,e=>{"use strict";var t,r,n,o,a=e.i(19300);e.i(70522);var i=e.i(23030),s=e.i(39411);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
vendor: 10,329 bytes, line 1
1t%2?u(Object(r),!0).forEach(function(t){v(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function l(){l=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,o){var a,i,s,u,c=Object.create((t&&t.prototype instanceof p?t:p).prototype);return n(c,"_invoke",{value:(a=e,i=r,s=new x(o||[]),u="suspendedStart",function(e,t){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===e)throw t;return O()}for(s.method=e,s.arg=t;;){var r=s.delegate;if(r){var n=function e(t,r){var n=r.method,o=t.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=void 0,e(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),d;var a=f(o,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,d;var i=a.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,d):i:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,d)}(r,s);if(n){if(n===d)continue;return n}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if("suspendedStart"===u)throw u="completed",s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);u="executing";var o=f(a,i,s);if("normal"===o.type){if(u=s.done?"completed":"suspendedYield",o.arg===d)continue;return{value:o.arg,done:s.done}}"throw"===o.type&&(u="completed",s.method="throw",s.arg=o.arg)}})}),c}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function p(){}function h(){}function y(){}var v={};u(v,a,function(){return this});var m=Object.getPrototypeOf,g=m&&m(m(T([])));g&&g!==t&&r.call(g,a)&&(v=g);var b=y.prototype=p.prototype=Object.create(v);function w(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function P(e,t){var o;n(this,"_invoke",{value:function(n,a){function i(){return new t(function(o,i){!function n(o,a,i,s){var u=f(e[o],e,a);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==typeof l&&r.call(l,"__await")?t.resolve(l.__await).then(function(e){n("next",e,i,s)},function(e){n("throw",e,i,s)}):t.resolve(l).then(function(e){c.value=e,i(c)},function(e){return n("throw",e,i,s)})}s(u.arg)}(n,a,o,i)})}return o=o?o.then(i,i):i()}})}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function T(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=y,n(b,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:h,configurable:!0}),h.displayName=u(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},w(P.prototype),u(P.prototype,i,function(){return this}),e.AsyncIterator=P,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new P(c(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then(function(e){return e.done?e.value:i.next()})},w(b),u(b,s,"Generator"),u(b,a,function(){return this}),u(b,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,x.prototype={constructor:x,reset:function(e){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(E),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return i.type="throw",i.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,d):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function f(e,t,r,n,o,a,i){try{var s=e[a](i),u=s.value}catch(e){r(e);return}s.done?t(u):Promise.resolve(u).then(n,o)}function d(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function i(e){f(a,n,o,i,s,"next",e)}function s(e){f(a,n,o,i,s,"throw",e)}i(void 0)})}}function p(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,E(n.key),n)}}function y(e,t,r){return t&&h(e.prototype,t),r&&h(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function v(e,t,r){return(t=E(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t){return(g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function b(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function w(e,t,r){return(w=b()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&g(o,r.prototype),o}).apply(null,arguments)}function P(e){var t="function"==typeof Map?new Map:void 0;return(P=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return w(e,arguments,m(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),g(r,e)})(e)}function k(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var x="[object global]"===({}).toString.call(e.g);function T(e,t){return 0===e.indexOf(t.toLowerCase())?e:"".concat(t.toLowerCase()).concat(e.substr(0,1).toUpperCase()).concat(e.substr(1))}function O(e){return/^(https?:)?\/\/((((player|www)\.)?vimeo\.com)|((player\.)?[a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))(?=$|\/)/.test(e)}function _(e){return/^https:\/\/player\.((vimeo\.com)|([a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))\/video\/\d+/.test(e)}function j(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,r=e.url,n=t||r;if(!n)throw 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(!isNaN(parseFloat(n))&&isFinite(n)&&Math.floor(n)==n)return"https://vimeo.com/".concat(n);if(O(n))return n.replace("http:","https:");if(t)throw TypeError("“".concat(t,"” is not a valid video id."));throw TypeError("“".concat(n,"” is not a vimeo.com url."))}var C=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"addEventListener",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"removeEventListener",a="str
1ing"==typeof t?[t]:t;return a.forEach(function(t){e[n](t,r)}),{cancel:function(){return a.forEach(function(t){return e[o](t,r)})}}},S=void 0!==Array.prototype.indexOf,A="u">typeof window&&void 0!==window.postMessage;if(!x&&(!S||!A))throw Error("Sorry, the Vimeo Player API is not available in this browser.");var N="u">typeof globalThis?globalThis:"u">typeof window?window:e.g;!function(e){if(!e.WeakMap){var t=Object.prototype.hasOwnProperty,r=Object.defineProperty&&function(){try{return 1===Object.defineProperty({},"x",{value:1}).x}catch(e){}}(),n=function(e,t,n){r?Object.defineProperty(e,t,{configurable:!0,writable:!0,value:n}):e[t]=n};e.WeakMap=function(){function e(){if(void 0===this)throw TypeError("Constructor WeakMap requires 'new'");if(n(this,"_id","_WeakMap_"+a()+"."+a()),arguments.length>0)throw TypeError("WeakMap iterable is not supported")}function r(e,r){if(!o(e)||!t.call(e,"_id"))throw TypeError(r+" method called on incompatible receiver "+typeof e)}function a(){return Math.random().toString().substring(2)}return n(e.prototype,"delete",function(e){if(r(this,"delete"),!o(e))return!1;var t=e[this._id];return!!t&&t[0]===e&&(delete e[this._id],!0)}),n(e.prototype,"get",function(e){if(r(this,"get"),o(e)){var t=e[this._id];if(t&&t[0]===e)return t[1]}}),n(e.prototype,"has",function(e){if(r(this,"has"),!o(e))return!1;var t=e[this._id];return!!t&&t[0]===e}),n(e.prototype,"set",function(e,t){if(r(this,"set"),!o(e))throw TypeError("Invalid value used as weak map key");var a=e[this._id];return a&&a[0]===e?a[1]=t:n(e,this._id,[e,t]),this}),n(e,"_polyfill",!0),e}()}function o(e){return Object(e)===e}}("u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:N);var R=(function(e){var t;t="Promise",N[t]=N[t]||function(){var e,t,r,n=Object.prototype.toString,o="u">typeof setImmediate?function(e){return setImmediate(e)}:setTimeout;try{Object.defineProperty({},"x",{}),e=function(e,t,r,n){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==n})}}catch(t){e=function(e,t,r){return e[t]=r,e}}function a(e,n){r.add(e,n),t||(t=o(r.drain))}function i(e){var t,r=typeof e;return null!=e&&("object"==r||"function"==r)&&(t=e.then),"function"==typeof t&&t}function s(){for(var e=0;e<this.chain.length;e++)!function(e,t,r){var n,o;try{!1===t?r.reject(e.msg):(n=!0===t?e.msg:t.call(void 0,e.msg))===r.promise?r.reject(TypeError("Promise-chain cycle")):(o=i(n))?o.call(n,r.resolve,r.reject):r.resolve(n)}catch(e){r.reject(e)}}(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function u(e){var t,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(t=i(e))?a(function(){var n=new f(r);try{t.call(e,function(){u.apply(n,arguments)},function(){c.apply(n,arguments)})}catch(e){c.call(n,e)}}):(r.msg=e,r.state=1,r.chain.length>0&&a(s,r))}catch(e){c.call(new f(r),e)}}}function c(e){var t=this;!t.triggered&&(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&a(s,t))}function l(e,t,r,n){for(var o=0;o<t.length;o++)!function(o){e.resolve(t[o]).then(function(e){r(o,e)},n)}(o)}function f(e){this.def=e,this.triggered=!1}function d(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function p(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new d(this);this.then=function(e,r){var n={success:"function"!=typeof e||e,failure:"function"==typeof r&&r};return n.promise=new this.constructor(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");n.resolve=e,n.reject=t}),t.chain.push(n),0!==t.state&&a(s,t),n.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){u.call(t,e)},function(e){c.call(t,e)})}catch(e){c.call(t,e)}}r=function(){var e,r,n;function o(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(t,a){n=new o(t,a),r?r.next=n:e=n,r=n,n=void 0},drain:function(){var n=e;for(e=r=t=void 0;n;)n.fn.call(n.self),n=n.next}}}();var h=e({},"constructor",p,!1);return p.prototype=h,e(h,"__NPO__",0,!1),e(p,"resolve",function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this(function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");t(e)})}),e(p,"reject",function(e){return new this(function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");r(e)})}),e(p,"all",function(e){var t=this;return"[object Array]"!=n.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");var o=e.length,a=Array(o),i=0;l(t,e,function(e,t){a[e]=t,++i===o&&r(a)},n)})}),e(p,"race",function(e){var t=this;return"[object Array]"!=n.call(e)?t.reject(TypeError("Not an array")):new t(function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");l(t,e,function(e,t){r(t)},n)})}),p}(),e.exports&&(e.exports=N[t])}(t={exports:{}},t.exports),t.exports),I=new WeakMap;function M(e,t,r){var n=I.get(e.element)||{};t in n||(n[t]=[]),n[t].push(r),I.set(e.element,n)}function L(e,t){return(I.get(e.element)||{})[t]||[]}function V(e,t,r){var n=I.get(e.element)||{};if(!n[t])return!0;
vendor: 21,288 bytes, line 1
1if(!r)return n[t]=[],I.set(e.element,n),!0;var o=n[t].indexOf(r);return -1!==o&&n[t].splice(o,1),I.set(e.element,n),n[t]&&0===n[t].length}function F(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){return console.warn(e),{}}return e}function D(e,t,r){if(e.element.contentWindow&&e.element.contentWindow.postMessage){var n={method:t};void 0!==r&&(n.value=r);var o=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));o>=8&&o<10&&(n=JSON.stringify(n)),e.element.contentWindow.postMessage(n,e.origin)}}var q=["airplay","audio_tracks","autopause","autoplay","background","byline","cc","chapter_id","chapters","chromecast","color","colors","controls","dnt","end_time","fullscreen","height","id","interactive_params","keyboard","loop","maxheight","maxwidth","muted","play_button_position","playsinline","portrait","progress_bar","quality_selector","responsive","speed","start_time","texttrack","title","transcript","transparent","unmute_button","url","vimeo_logo","volume","watch_full_video","width"];function U(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return q.reduce(function(t,r){var n=e.getAttribute("data-vimeo-".concat(r));return(n||""===n)&&(t[r]=""===n?1:n),t},t)}function W(e,t){var r=e.html;if(!t)throw TypeError("An element must be provided");if(null!==t.getAttribute("data-vimeo-initialized"))return t.querySelector("iframe");var n=document.createElement("div");return n.innerHTML=r,t.appendChild(n.firstChild),t.setAttribute("data-vimeo-initialized","true"),t.querySelector("iframe")}function z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return new Promise(function(n,o){if(!O(e))throw TypeError("“".concat(e,"” is not a vimeo.com url."));var a=function(e){for(var t=(e||"").match(/^(?:https?:)?(?:\/\/)?([^/?]+)/),r=(t&&t[1]||"").replace("player.",""),n=0,o=[".videoji.hk",".vimeo.work",".videoji.cn"];n<o.length;n++){var a=o[n];if(r.endsWith(a))return r}return"vimeo.com"}(e),i="https://".concat(a,"/api/oembed.json?url=").concat(encodeURIComponent(e));for(var s in t)t.hasOwnProperty(s)&&(i+="&".concat(s,"=").concat(encodeURIComponent(t[s])));var u="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;u.open("GET",i,!0),u.onload=function(){if(404===u.status)return void o(Error("“".concat(e,"” was not found.")));if(403===u.status)return void o(Error("“".concat(e,"” is not embeddable.")));try{var t=JSON.parse(u.responseText);if(403===t.domain_status_code){W(t,r),o(Error("“".concat(e,"” is not embeddable.")));return}n(t)}catch(e){o(e)}},u.onerror=function(){var e=u.status?" (".concat(u.status,")"):"";o(Error("There was an error fetching the embed code from Vimeo".concat(e,".")))},u.send()})}var B={role:"viewer",autoPlayMuted:!0,allowedDrift:.3,maxAllowedDrift:1,minCheckInterval:.1,maxRateAdjustment:.2,maxTimeToCatchUp:1},Y=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),e&&g(i,e);var t,r,n,o,a=(t=b(),function(){var e,r=m(i);e=t?Reflect.construct(r,arguments,m(this).constructor):r.apply(this,arguments);if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return k(this)});function i(e,t){var r,n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;return p(this,i),v(k(n=a.call(this)),"logger",void 0),v(k(n),"speedAdjustment",0),v(k(n),"adjustSpeed",(r=d(l().mark(function e(t,r){var o;return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n.speedAdjustment!==r){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,t.getPlaybackRate();case 4:return e.t0=e.sent,e.t1=n.speedAdjustment,e.t2=e.t0-e.t1,e.t3=r,o=e.t2+e.t3,n.log("New playbackRate:  ".concat(o)),e.next=12,t.setPlaybackRate(o);case 12:n.speedAdjustment=r;case 13:case"end":return e.stop()}},e)})),function(e,t){return r.apply(this,arguments)})),n.logger=s,n.init(t,e,c(c({},B),o)),n}return y(i,[{key:"disconnect",value:function(){this.dispatchEvent(new Event("disconnect"))}},{key:"init",value:(r=d(l().mark(function e(t,r,n){var o,a,i,s=this;return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.waitForTOReadyState(t,"open");case 2:if("viewer"!==n.role){e.next=10;break}return e.next=5,this.updatePlayer(t,r,n);case 5:o=C(t,"change",function(){return s.updatePlayer(t,r,n)}),a=this.maintainPlaybackPosition(t,r,n),this.addEventListener("disconnect",function(){a.cancel(),o.cancel()}),e.next=14;break;case 10:return e.next=12,this.updateTimingObject(t,r);case 12:i=C(r,["seeked","play","pause","ratechange"],function(){return s.updateTimingObject(t,r)},"on","off"),this.addEventListener("disconnect",function(){return i.cancel()});case 14:case"end":return e.stop()}},e,this)})),function(e,t,n){return r.apply(this,arguments)})},{key:"updateTimingObject",value:(n=d(l().mark(function e(t,r){return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=t,e.next=3,r.getCurrentTime();case 3:return e.t1=e.sent,e.next=6,r.getPaused();case 6:if(!e.sent){e.next=10;break}e.t2=0,e.next=13;break;case 10:return e.next=12,r.getPlaybackRate();case 12:e.t2=e.sent;case 13:e.t3=e.t2,e.t4={position:e.t1,velocity:e.t3},e.t0.update.call(e.t0,e.t4);case 16:case"end":return e.stop()}},e)})),function(e,t){return n.apply(this,arguments)})},{key:"updatePlayer",value:(o=d(l().mark(function e(t,r,n){var o,a,i;return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=(o=t.query()).position,i=o.velocity,"number"==typeof a&&r.setCurrentTime(a),"number"!=typeof i){e.next=25;break}if(0!==i){e.next=11;break}return e.next=6,r.getPaused();case 6:if(e.t0=e.sent,!1!==e.t0){e.next=9;break}r.pause();case 9:e.next=25;break;case 11:if(!(i>0)){e.next=25;break}return e.next=14,r.getPaused();case 14:if(e.t1=e.sent,!0!==e.t1){e.next=19;break}return e.next=18,r.play().catch(function(){var e=d(l().mark(function e(t){return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!("NotAllowedError"===t.name&&n.autoPlayMuted)){e.next=5;break}return e.next=3,r.setMuted(!0);case 3:return e.next=5,r.play().catch(function(e){return console.error("Couldn't play the video from TimingSrcConnector. Error:",e)});case 5:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 18:this.updatePlayer(t,r,n);case 19:return e.next=21,r.getPlaybackRate();case 21:if(e.t2=e.sent,e.t3=i,e.t2===e.t3){e.next=25;break}r.setPlaybackRate(i);case 25:case"end":return e.stop()}},e,this)})),function(e,t,r){return o.apply(this,arguments)})},{key:"maintainPlaybackPosition",value:function(e,t,r){var n,o=this,a=r.allowedDrift,i=r.maxAllowedDrift,s=r.minCheckInterval,u=r.maxRateAdjustment,c=r.maxTimeToCatchUp,f=1e3*Math.min(c,Math.max(s,i)),p=(n=d(l().mark(function r(){var n,s,f,d,p;return l().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(r.t0=0===e.query().velocity,r.t0){r.next=6;break}return r.next=4,t.getPaused();case 4:r.t1=r.sent,r.t0=!0===r.t1;case 6:if(!r.t0){r.next=8;break}return r.abrupt("return");case 8:return r.t2=e.query().position,r.next=11,t.getCurrentTime();case 11:if(r.t3=r.sent,s=Math.abs(n=r.t2-r.t3),o.log("Drift: ".concat(n)),!(s>i)){r.next=22;break}return r.next=18,o.adjustSpeed(t,0);case 18:t.setCurrentTime(e.query().position),o.log("Resync by currentTime"),r.next=29;break;case 22:if(!(s>a)){r.next=29;break}return p=(f=s/c)<(d=u)?(d-f)/2:d,r.next=28,o.adjustSpeed(t,p*Math.sign(n));case 28:o.log("Resync by playbackRate");case 29:case"end":return r.stop()}},r)})),function(){return n.apply(this,arguments)}),h=setInterval(function(){return p()},f);return{cancel:function(){return clearInterval(h)}}}},{key:"log",value:function(e){var t;null==(t=this.logger)||t.call(this,"TimingSrcConnector: ".concat(e))}},{key:"waitForTOReadyState",value:function(e,t){return new Promise(function(r){!function n(){e.readyState===t?r():e.addEventListener("readystatechange",n,{once:!0})}()})}}]),i}(P(EventTarget)),G=new WeakMap,Q=new WeakMap,$={},H=function(){var e;function t(e){var r,n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(p(this,t),window.jQuery&&e instanceof jQuery&&(e.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),e=e[0]),"u">typeof document&&"string"==typeof e&&(e=document.getElementById(e)),!((r=e)&&1===r.nodeType&&"nodeName"in r&&r.ownerDocument&&r.ownerDocument.defaultView))throw TypeError("You must pass either a valid element or a valid id.");if("IFRAME"!==e.nodeName){var a=e.querySelector("iframe");a&&(e=a)}if("IFRAME"===e.nodeName&&!O(e.getAttribute("src")||""))throw Error("The player element passed isn’t a Vimeo embed.");if(G.has(e))return G.get(e);this._window=e.ownerDocument.defaultView,this.element=e,this.origin="*";var i=new R(function(t,r){if(n._onMessage=function(e){if(O(e.origin)&&n.element.contentWindow===e.source){"*"===n.origin&&(n.origin=e.origin);var o=F(e.data);if(o&&"error"===o.event&&o.data&&"ready"===o.data.method){var a=Error(o.data.message);a.name=o.data.name,r(a);return}var i=o&&"ready"===o.event,s=o&&"ping"===o.method;if(i||s){n.element.setAttribute("data-ready","true"),t();return}var u=o;u=F(u);var c,l=[];if(u.event)"error"===u.event&&L(n,u.data.method).forEach(function(e){var t=Error(u.data.message);t.name=u.data.name,e.reject(t),V(n,u.data.method,e)}),l=L(n,"event:".concat(u.event)),c=u.data;else if(u.method){var f=function(e,t){var r=L(e,t);if(r.length<1)return!1;var n=r.shift();return V(e,t,n),n}(n,u.method);f&&(l.push(f),c=u.value)}l.forEach(function(e){try{if("function"==typeof e)return void e.call(n,c);e.resolve(c)}catch(e){}})}},n._window.addEventListener("message",n._onMessage),"IFRAME"!==n.element.nodeName){var a=U(e,o);z(j(a),a,e).then(function(t){var r,o,a=W(t,e);return n.element=a,n._originalElement=e,r=e,o=I.get(r),I.set(a,o),I.delete(r),G.set(n.element,n),t}).catch(r)}});if(Q.set(this,i),G.set(this.element,this),"IFRAME"===this.element.nodeName&&D(this,"ping"),$.isEnabled){var s=function(){return $.exit()};this.fullscreenchangeHandler=function(){$.isFullscreen?M(n,"event:exitFullscreen",s):V(n,"event:exitFullscreen",s),n.ready().then(function(){D(n,"fullscreenchange",$.isFullscreen)})},$.on("fullscreenchange",this.fullscreenchangeHandler)}return this}return y(t,[{key:"callMethod",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new R(function(n,o){return t.ready().then(function(){M(t,e,{resolve:n,reject:o}),D(t,e,r)}).catch(o)})}},{key:"get",value:function(e){var t=this;return new R(function(r,n){return e=T(e,"get"),t.ready().then(function(){M(t,e,{resolve:r,reject:n}),D(t,e)}).catch(n)})}},{key:"set",value:function(e,t){var r=this;return new R(function(n,o){if(e=T(e,"set"),null==t)throw TypeError("There must be a value to set.");return r.ready().then(function(){M(r,e,{resolve:n,reject:o}),D(r,e,t)}).catch(o)})}},{key:"on",value:function(e,t){if(!e)throw TypeError("You must pass an event name.");if(!t)throw TypeError("You must pass a callback function.");if("function"!=typeof t)throw TypeError("The callback must be a function.");0===L(this,"event:".concat(e)).length&&this.callMethod("addEventListener",e).catch(function(){}),M(this,"event:".concat(e),t)}},{key:"off",value:function(e,t){if(!e)throw TypeError("You must pass an event name.");if(t&&"function"!=typeof t)throw TypeError("The callback must be a function.");V(this,"event:".concat(e),t)&&this.callMethod("removeEventListener",e).catch(function(e){})}},{key:"loadVideo",value:function(e){return this.callMethod("loadVideo",e)}},{key:"ready",value:function(){var e=Q.get(this)||new R(function(e,t){t(Error("Unknown player. Probably unloaded."))});return R.resolve(e)}},{key:"addCuePoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.callMethod("addCuePoint",{time:e,data:t})}},{key:"removeCuePoint",value:function(e){return this.callMethod("removeCuePoint",e)}},{key:"enableTextTrack",value:function(e,t){if(!e)throw TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:e,kind:t})}},{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 $.isEnabled?$.request(this.element):this.callMethod("requestFullscreen")}},{key:"exitFullscreen",value:function(){return $.isEnabled?$.exit():this.callMethod("exitFullscreen")}},{key:"getFullscreen",value:function(){return $.isEnabled?R.resolve($.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 R(function(t){if(Q.delete(e),G.delete(e.element),e._originalElement&&(G.delete(e._originalElement),e._originalElement.removeAttribute("data-vimeo-initialized")),e.element&&"IFRAME"===e.element.nodeName&&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&&"DIV"===e.element.nodeName&&e.element.parentNode){e.element.removeAttribute("data-vimeo-initialized");var r=e.element.querySelector("iframe");r&&r.parentNode&&(r.parentNode.parentNode&&e._originalElement&&e._originalElement!==r.parentNode?r.parentNode.parentNode.removeChild(r.parentNode):r.parentNode.removeChild(r))}e._window.removeEventListener("message",e._onMessage),$.isEnabled&&$.off("fullscreenchange",e.fullscreenchangeHandler),t()})}},{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 R.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 R(function(e,t){return t(TypeError("Argument must be an array."))});var t=new R(function(e){return e(null)}),r=[e[0]?this.set("colorOne",e[0]):t,e[1]?this.set("colorTwo",e[1]):t,e[2]?this.set("colorThree",e[2]):t,e[3]?this.set("colorFour",e[3]):t];return R.all(r)}},{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)}},{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:(e=d(l().mark(function e(t,r){var n,o=this;return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}throw TypeError("A Timing Object must be provided.");case 2:return e.next=4,this.ready();case 4:return n=new Y(this,t,r),D(this,"notifyTimingObjectConnect"),n.addEventListener("disconnect",function(){return D(o,"notifyTimingObjectDisconnect")}),e.abrupt("return",n);case 8:case"end":return e.stop()}},e,this)})),function(t,r){return e.apply(this,arguments)})}]),t}();function J(e,t){return(J=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}x||(n={fullscreenchange:(r=function(){for(var e,t=[["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"]],r=0,n=t.length,o={};r<n;r++)if((e=t[r])&&e[1]in document){for(r=0;r<e.length;r++)o[t[0][r]]=e[r];return o}return!1}()).fullscreenchange,fullscreenerror:r.fullscreenerror},Object.defineProperties(o={request:function(e){return new Promise(function(t,n){var a=function e(){o.off("fullscreenchange",e),t()};o.on("fullscreenchange",a);var i=(e=e||document.documentElement)[r.requestFullscreen]();i instanceof Promise&&i.then(a).catch(n)})},exit:function(){return new Promise(function(e,t){if(!o.isFullscreen)return void e();var n=function t(){o.off("fullscreenchange",t),e()};o.on("fullscreenchange",n);var a=document[r.exitFullscreen]();a instanceof Promise&&a.then(n).catch(t)})},on:function(e,t){var r=n[e];r&&document.addEventListener(r,t)},off:function(e,t){var r=n[e];r&&document.removeEventListener(r,t)}},{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]}}}),$=o,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=[].slice.call(e.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),r=function(e){"console"in window&&console.error&&console.error("There was an error creating an embed: ".concat(e))};t.forEach(function(e){try{if(null!==e.getAttribute("data-vimeo-defer"))return;var t=U(e),n=j(t);z(n,t,e).then(function(t){return W(t,e)}).catch(r)}catch(e){r(e)}})}(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;window.VimeoPlayerResizeEmbeds_||(window.VimeoPlayerResizeEmbeds_=!0,window.addEventListener("message",function(t){if(O(t.origin)&&t.data&&"spacechange"===t.data.event){for(var r=e.querySelectorAll("iframe"),n=0;n<r.length;n++)if(r[n].contentWindow===t.source){r[n].parentElement.style.paddingBottom="".concat(t.data.data[0].bottom,"px");break}}}))}(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;window.VimeoSeoMetadataAppended||(window.VimeoSeoMetadataAppended=!0,window.addEventListener("message",function(t){if(O(t.origin)){var r=F(t.data);if(r&&"ready"===r.event)for(var n=e.querySelectorAll("iframe"),o=0;o<n.length;o++){var a=n[o],i=a.contentWindow===t.source;_(a.src)&&i&&new H(a).callMethod("appendVideoMetadata",window.location.href)}}}))}(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(!window.VimeoCheckedUrlTimeParam){window.VimeoCheckedUrlTimeParam
1=!0;var t=function(e){"console"in window&&console.error&&console.error("There was an error getting video Id: ".concat(e))};window.addEventListener("message",function(r){if(O(r.origin)){var n=F(r.data);if(n&&"ready"===n.event)for(var o=e.querySelectorAll("iframe"),a=0;a<o.length;a++)!function(){var e=o[a],n=e.contentWindow===r.source;if(_(e.src)&&n){var i=new H(e);i.getVideoId().then(function(e){var t=new RegExp("[?&]vimeo_t_".concat(e,"=([^&#]*)")).exec(window.location.href);if(t&&t[1]){var r=decodeURI(t[1]);i.setCurrentTime(r)}}).catch(t)}}()}})}}());var Z={play:"onPlay",playing:"onPlaying",pause:"onPause",ended:"onEnd",timeupdate:"onTimeUpdate",progress:"onProgress",seeked:"onSeeked",texttrackchange:"onTextTrackChange",cuechange:"onCueChange",cuepoint:"onCuePoint",volumechange:"onVolumeChange",playbackratechange:"onPlaybackRateChange",error:"onError",loaded:"onLoaded"},X=function(e){function t(t){var r;return(r=e.call(this,t)||this).refContainer=r.refContainer.bind(r),r}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,J(t,e);var r=t.prototype;return r.componentDidMount=function(){this.createPlayer()},r.componentDidUpdate=function(e){var t=this,r=Object.keys(this.props).filter(function(r){return t.props[r]!==e[r]});this.updateProps(r)},r.componentWillUnmount=function(){this.player.destroy()},r.getInitialOptions=function(){var e,t=this.props.video,r=/^https?:/i.test(t)?"url":"id";return(e={})[r]=t,e.width=this.props.width,e.height=this.props.height,e.autopause=this.props.autopause,e.autoplay=this.props.autoplay,e.byline=this.props.showByline,e.color=this.props.color,e.controls=this.props.controls,e.loop=this.props.loop,e.portrait=this.props.showPortrait,e.title=this.props.showTitle,e.muted=this.props.muted,e.background=this.props.background,e.responsive=this.props.responsive,e.dnt=this.props.dnt,e.speed=this.props.speed,e.keyboard=this.props.keyboard,e.pip=this.props.pip,e.playsinline=this.props.playsInline,e.quality=this.props.quality,e.texttrack=this.props.textTrack,e.transparent=this.props.transparent,e},r.updateProps=function(e){var t=this,r=this.player;e.forEach(function(e){var n=t.props[e];switch(e){case"autopause":r.setAutopause(n);break;case"color":r.setColor(n);break;case"loop":r.setLoop(n);break;case"volume":r.setVolume(n);break;case"paused":r.getPaused().then(function(e){return n&&!e?r.pause():!n&&e?r.play():null});break;case"width":case"height":r.element[e]=n;break;case"video":if(n){var o=t.props.start,a=r.loadVideo(n);"number"==typeof o&&a.then(function(){r.setCurrentTime(o)})}else r.unload();break;case"playbackRate":r.setPlaybackRate(n);break;case"quality":r.setQuality(n)}})},r.createPlayer=function(){var e=this,t=this.props,r=t.start,n=t.volume,o=t.playbackRate;this.player=new H(this.container,this.getInitialOptions()),Object.keys(Z).forEach(function(t){var r=Z[t];e.player.on(t,function(t){var n=e.props[r];n&&n(t)})});var a=this.props,i=a.onError,s=a.onReady;this.player.ready().then(function(){s&&s(e.player)},function(e){if(i)i(e);else throw e}),"number"==typeof r&&this.player.setCurrentTime(r),"number"==typeof n&&this.updateProps(["volume"]),"number"==typeof o&&this.updateProps(["playbackRate"])},r.refContainer=function(e){this.container=e},r.render=function(){var e=this.props,t=e.id,r=e.className,n=e.style;return s.default.createElement("div",{id:t,className:r,style:n,ref:this.refContainer})},t}(s.default.Component);X.defaultProps={autopause:!0,autoplay:!1,showByline:!0,controls:!0,loop:!1,showPortrait:!0,showTitle:!0,muted:!1,background:!1,responsive:!1,dnt:!1,speed:!1,keyboard:!0,pip:!1,playsInline:!0,transparent:!0};var K=e.i(4153),ee=s,et=e.i(65932),er=e.i(4645),en=Object.defineProperty,eo=Object.defineProperties,ea=Object.getOwnPropertyDescriptors,ei=Object.getOwnPropertySymbols,es=Object.prototype.hasOwnProperty,eu=Object.prototype.propertyIsEnumerable,ec=(e,t,r)=>t in e?en(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,el=(e,t)=>{for(var r in t||(t={}))es.call(t,r)&&ec(e,r,t[r]);if(ei)for(var r of ei(t))eu.call(t,r)&&ec(e,r,t[r]);return e};function ef(e={}){let t,r;return t=el({},e),r={height:0,width:0,playerVars:eo(el({},e.playerVars),ea({autoplay:0,start:0,end:0}))},eo(t,ea(r))}var ed={videoId:K.default.string,id:K.default.string,className:K.default.string,iframeClassName:K.default.string,style:K.default.object,title:K.default.string,loading:K.default.oneOf(["lazy","eager"]),opts:K.default.objectOf(K.default.any),onReady:K.default.func,onError:K.default.func,onPlay:K.default.func,onPause:K.default.func,onEnd:K.default.func,onStateChange:K.default.func,onPlaybackRateChange:K.default.func,onPlaybackQualityChange:K.default.func},ep=class extends ee.default.Component{constructor(e){super(e),this.destroyPlayerPromise=void 0,this.onPlayerReady=e=>{var t,r;return null==(r=(t=this.props).onReady)?void 0:r.call(t,e)},this.onPlayerError=e=>{var t,r;return null==(r=(t=this.props).onError)?void 0:r.call(t,e)},this.onPlayerStateChange=e=>{var t,r,n,o,a,i,s,u;switch(null==(r=(t=this.props).onStateChange)||r.call(t,e),e.data){case ep.PlayerState.ENDED:null==(o=(n=this.props).onEnd)||o.call(n,e);break;case ep.PlayerState.PLAYING:null==(i=(a=this.props).onPlay)||i.call(a,e);break;case ep.PlayerState.PAUSED:null==(u=(s=this.props).onPause)||u.call(s,e)}},this.onPlayerPlaybackRateChange=e=>{var t,r;return null==(r=(t=this.props).onPlaybackRateChange)?void 0:r.call(t,e)},this.onPlayerPlaybackQualityChange=e=>{var t,r;return null==(r=(t=this.props).onPlaybackQualityChange)?void 0:r.call(t,e)},this.destroyPlayer=()=>this.internalPlayer?(this.destroyPlayerPromise=this.internalPlayer.destroy().then(()=>this.destroyPlayerPromise=void 0),this.destroyPlayerPromise):Promise.resolve(),this.createPlayer=()=>{if("u"<typeof document)return;if(this.destroyPlayerPromise)return void this.destroyPlayerPromise.then(this.createPlayer);let e=eo(el({},this.props.opts),ea({videoId:this.props.videoId}));this.internalPlayer=(0,er.default)(this.container,e),this.internalPlayer.on("ready",this.onPlayerReady),this.internalPlayer.on("error",this.onPlayerError),this.internalPlayer.on("stateChange",this.onPlayerStateChange),this.internalPlayer.on("playbackRateChange",this.onPlayerPlaybackRateChange),this.internalPlayer.on("playbackQualityChange",this.onPlayerPlaybackQualityChange),(this.props.title||this.props.loading)&&this.internalPlayer.getIframe().then(e=>{this.props.title&&e.setAttribute("title",this.props.title),this.props.loading&&e.setAttribute("loading",this.props.loading)})},this.resetPlayer=()=>this.destroyPlayer().then(this.createPlayer),this.updatePlayer=()=>{var e;null==(e=this.internalPlayer)||e.getIframe().then(e=>{this.props.id?e.setAttribute("id",this.props.id):e.removeAttribute("id"),this.props.iframeClassName?e.setAttribute("class",this.props.iframeClassName):e.removeAttribute("class"),this.props.opts&&this.props.opts.width?e.setAttribute("width",this.props.opts.width.toString()):e.removeAttribute("width"),this.props.opts&&this.props.opts.height?e.setAttribute("height",this.props.opts.height.toString()):e.removeAttribute("height"),this.props.title?e.setAttribute("title",this.props.title):e.setAttribute("title","YouTube video player"),this.props.loading?e.setAttribute("loading",this.props.loading):e.removeAttribute("loading")})},this.getInternalPlayer=()=>this.internalPlayer,this.updateVideo=()=>{var e,t,r,n;if(void 0===this.props.videoId||null===this.props.videoId){null==(e=this.internalPlayer)||e.stopVideo();return}let o=!1,a={videoId:this.props.videoId};if((null==(t=this.props.opts)?void 0:t.playerVars)&&(o=1===this.props.opts.playerVars.autoplay,"start"in this.props.opts.playerVars&&(a.startSeconds=this.props.opts.playerVars.start),"end"in this.props.opts.playerVars&&(a.endSeconds=this.props.opts.playerVars.end)),o){null==(r=this.internalPlayer)||r.loadVideoById(a);return}null==(n=this.internalPlayer)||n.cueVideoById(a)},this.refContainer=e=>{this.container=e},this.container=null,this.internalPlayer=null}componentDidMount(){this.createPlayer()}componentDidUpdate(e){let t,r;return t=this,r=function*(){var t,r,n,o,a,i;t=this.props,(e.id!==t.id||e.className!==t.className||(null==(r=e.opts)?void 0:r.width)!==(null==(n=t.opts)?void 0:n.width)||(null==(o=e.opts)?void 0:o.height)!==(null==(a=t.opts)?void 0:a.height)||e.iframeClassName!==t.iframeClassName||e.title!==t.title)&&this.updatePlayer(),i=this.props,e.videoId===i.videoId&&(0,et.default)(ef(e.opts),ef(i.opts))||(yield this.resetPlayer()),function(e,t){var r,n;if(e.videoId!==t.videoId)return!0;let o=(null==(r=e.opts)?void 0:r.playerVars)||{},a=(null==(n=t.opts)?void 0:n.playerVars)||{};return o.start!==a.start||o.end!==a.end}(e,this.props)&&this.updateVideo()}
1,new Promise((e,n)=>{var o=e=>{try{i(r.next(e))}catch(e){n(e)}},a=e=>{try{i(r.throw(e))}catch(e){n(e)}},i=t=>t.done?e(t.value):Promise.resolve(t.value).then(o,a);i((r=r.apply(t,null)).next())})}componentWillUnmount(){this.destroyPlayer()}render(){return ee.default.createElement("div",{className:this.props.className,style:this.props.style},ee.default.createElement("div",{id:this.props.id,className:this.props.iframeClassName,ref:this.refContainer}))}};ep.propTypes=ed,ep.defaultProps={videoId:"",id:"",className:"",iframeClassName:"",style:{},title:"",loading:void 0,opts:{},onReady:()=>{},onError:()=>{},onPlay:()=>{},onPause:()=>{},onEnd:()=>{},onStateChange:()=>{},onPlaybackRateChange:()=>{},onPlaybackQualityChange:()=>{}},ep.PlayerState={UNSTARTED:-1,ENDED:0,PLAYING:1,PAUSED:2,BUFFERING:3,CUED:5};var eh=e.i(87848);e.s(["default",0,function({isInView:e,videoId:t,videoPlayer:r,fallbackImage:n,fallbackImageOptions:o={}}){let[u,c]=(0,s.useState)(!1),l=()=>c(!0);return(0,a.jsxs)(a.Fragment,{children:[n&&(0,a.jsx)(i.default,{alt:n.alt,className:`${eh.default.fallback} ${u?eh.default.hide:""}`,loading:"lazy",params:{width:1920},src:n.url,...o}),!1!==e&&"vimeo"===r&&t&&(0,a.jsx)(X,{autoplay:!0,className:eh.default.video,controls:!1,loop:!0,muted:!0,onReady:l,video:t}),!1!==e&&"youtube"===r&&t&&(0,a.jsx)(ep,{className:`video ${eh.default.video}`,loading:"lazy",onReady:l,opts:{playerVars:{autoplay:1,mute:1,loop:1,playlist:t,controls:0,modestbranding:1}},videoId:t})]})}],79121)}]);

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.