1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{34715:function(e,t,n){"use strict";n.d(t,{V:function(){return c}});var i=n(67294),r=n(43775);let a="undefined"!=typeof document?i.useLayoutEffect:i.useEffect,s=e=>e&&!Array.isArray(e)&&"object"==typeof e,o=[],l={},u=r.ZP,c=(e,t=o)=>{let n=l;s(e)?(n=e,e=null,t="dependencies"in n?n.dependencies:o):s(t)&&(t="dependencies"in(n=t)?n.dependencies:o),e&&"function"!=typeof e&&console.warn("First parameter must be a function or config object");let{scope:r,revertOnUpdate:c}=n,d=(0,i.useRef)(!1),h=(0,i.useRef)(u.context(()=>{},r)),f=(0,i.useRef)(e=>h.current.add(null,e)),p=t&&t.length&&!c;return p&&a(()=>(d.current=!0,()=>h.current.revert()),o),a(()=>{if(e&&h.current.add(e,r),!p||!d.current)return()=>h.current.revert()},t),{context:h.current,contextSafe:f.current}};c.register=e=>{u=e},c.headless=!0},78706:function(e,t,n){"use strict";var i,r=n(67294);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var s=function(e){return r.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},e),i||(i=r.createElement("path",{d:"M25.33,17.33H6.66v-2.67h18.67v2.67Z"})))};t.Z=s},27987:function(e,t,n){"use strict";var i,r=n(67294);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var s=function(e){return r.createElement("svg",a({viewBox:"0 0 29 35",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i||(i=r.createElement("path",{d:"M14.9008 0V34M0.476562 22.1L14.9008 34L28.4766 22.1",stroke:"currentColor",strokeWidth:1.5})))};t.Z=s},29746:function(e,t,n){"use strict";var i,r,a=n(67294);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var o=function(e){return a.createElement("svg",s({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i||(i=a.createElement("path",{d:"M2 11.9995L22 11.9995",stroke:"currentColor",strokeWidth:1.5})),r||(r=a.createElement("path",{d:"M16 5.99951L22 11.9995L16 17.9995",stroke:"currentColor",strokeWidth:1.5})))};t.Z=o},71805:function(e,t,n){"use strict";var i,r=n(67294);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var s=function(e){return r.createElement("svg",a({viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i||(i=r.createElement("path",{d:"M4 11.5V1.5L9 6.5L4 11.5Z",fill:"currentColor"})))};t.Z=s},31605:function(e,t,n){"use strict";var i,r=n(67294);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var s=function(e){return r.createElement("svg",a({viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"}
1,e),i||(i=r.createElement("path",{d:"M1.34393 5.00031L6.6569 5.00169L6.6569 1.00212L11.6571 6.00227L6.6569 11.0024V7.00147L1.34393 7.00009L1.34393 5.00031Z",fill:"currentColor"})))};t.Z=s},45913:function(e,t,n){"use strict";var i,r,a=n(67294);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var o=function(e){return a.createElement("svg",s({width:41,height:41,viewBox:"0 0 41 41",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i||(i=a.createElement("path",{d:"M6.35967 34.6397C4.44947 32.7947 2.92582 30.5878 1.87764 28.1478C0.829462 25.7077 0.277738 23.0833 0.254661 20.4277C0.231585 17.7721 0.737619 15.1385 1.74324 12.6806C2.74885 10.2227 4.23392 7.98962 6.11177 6.11177C7.98962 4.23392 10.2227 2.74885 12.6806 1.74324C15.1385 0.737619 17.7721 0.231585 20.4277 0.254661C23.0833 0.277738 25.7077 0.829462 28.1478 1.87764C30.5878 2.92582 32.7947 4.44947 34.6397 6.35967C38.2828 10.1317 40.2987 15.1838 40.2532 20.4277C40.2076 25.6716 38.1042 30.6879 34.396 34.396C30.6879 38.1042 25.6716 40.2076 20.4277 40.2532C15.1838 40.2987 10.1317 38.2828 6.35967 34.6397ZM9.17967 31.8197C12.1819 34.8219 16.2538 36.5086 20.4997 36.5086C24.7455 36.5086 28.8174 34.8219 31.8197 31.8197C34.8219 28.8174 36.5086 24.7455 36.5086 20.4997C36.5086 16.2538 34.8219 12.1819 31.8197 9.17967C28.8174 6.17742 24.7455 4.49077 20.4997 4.49077C16.2538 4.49077 12.1819 6.17742 9.17967 9.17967C6.17742 12.1819 4.49077 16.2538 4.49077 20.4997C4.49077 24.7455 6.17742 28.8174 9.17967 31.8197Z",fill:"#9EFD62"})),r||(r=a.createElement("path",{d:"M28.4587 16.5674L18.9567 27.9688L12.666 21.6781L15.0228 19.3213L18.7305 23.029L25.8968 14.432L28.4587 16.5674Z",fill:"#9EFD62"})))};t.Z=o},65988:function(e,t,n){"use strict";var i,r,a=n(67294);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var o=function(e){return a.createElement("svg",s({viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i||(i=a.createElement("path",{d:"M1 9.58331L9.58624 0.999024L11.0003 2.41309L2.41406 10.9974L1 9.58331Z",fill:"currentColor"})),r||(r=a.createElement("path",{d:"M2.41504 0.998047L10.9993 9.58429L9.58526 10.9983L1.00098 2.41211L2.41504 0.998047Z",fill:"currentColor"})))};t.Z=o},86133:function(e,t,n){"use strict";var i,r=n(67294);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var s=function(e){return r.createElement("svg",a({viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i||(i=r.createElement("path",{d:"M3 8.6665H6.5V10.6665H1V5.1665H3V8.6665ZM11 6.1665H9V2.6665H5.5V0.666504H11V6.1665Z",fill:"currentColor"})))};t.Z=s},34764:function(e,t,n){"use strict";var i,r=n(67294);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var s=function(e){return r.createElement("svg",a({viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i||(i=r.createElement("path",{d:"M2 8.58594L5.75781 4.83008L2.92969 2.00195L10.001 2.00195L10.001 9.07324L7.17187 6.24414L3.41406 10L2 8.58594Z",fill:"currentColor"})))};t.Z=s},15034:function(e,t,n){"use strict";var i,r,a=n(67294);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var o=function(e){return a.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"none"},e),a.createElement("mask",{id:"mask0_3106_10918",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:16,height:16},i||(i=a.createElement("rect",{width:16,height:16,fill:"#D9D9D9"}))),r||(r=a.createElement("g",{mask:"url(#mask0_3106_10918)"},a.createElement("path",{d:"M6.79961 12C7.35517 12 7.82739 11.8055 8.21628 11.4166C8.60517 11.0278 8.79961 10.5555 8.79961 9.99998V5.59998H10.3996V4.39998H7.59961V8.16664C7.47516 8.11109 7.34628 8.06942 7.21294 8.04164C7.07961 8.01386 6.94183 7.99998 6.79961 7.99998C6.24405 7.99998 5.77183 8.19442 5.38294 8.58331C4.99405 8.9722 4.79961 9.44442 4.79961 9.99998C4.79961 10.5555 4.99405 11.0278 5.38294 11.4166C5.77183 11.8055 6.24405 12 6.79961 12ZM8.00428 14.4C7.12339 14.4 6.29405 14.2333 5.51628 13.9C4.7385 13.5666 4.05794 13.1083 3.47461 12.525C2.89128 11.9416 2.43294 11.2613 2.09961 10.484C1.76628 9.70664 1.59961 8.87609 1.59961 7.99231C1.59961 7.10853 1.76628 6.28053 2.09961 5.50831C2.43294 4.73609 2.89128 4.05831 3.47461 3.47498C4.05794 2.89164 4.73828 2.43331 5.51561 2.09998C6.29294 1.76664 7.1235 1.59998 8.00728 1.59998C8.89105 1.59998 9.71905 1.76664 10.4913 2.09998C11.2635 2.43331 11.9413 2.89164 12.5246 3.47498C13.1079 4.05831 13.5663 4.73731 13.8996 5.51198C14.2329 6.28675 14.3996 7.11453 14.3996 7.99531C14.3996 8.8762 14.2329 9.70553 13.8996 10.4833C13.5663 11.2611 13.1079 11.9416 12.5246 12.525C11.9413 13.1083 11.2623 13.5666 10.4876 13.9C9.71283 14.2333 8.88505 14.4 8.00428 14.4ZM7.99961 13.2C9.44405 13.2 10.6718 12.6944 11.6829 11.6833C12.6941 10.6722 13.1996 9.44442 13.1996 7.99998C13.1996 6.55553 12.6941 5.32775 11.6829 4.31664C10.6718 3.30553 9.44405 2.79998 7.99961 2.79998C6.55516 2.79998 5.32739 3.30553 4.31628 4.31664C3.30517 5.32775 2.79961 6.55553 2.79961 7.99998C2.79961 9.44442 3.30517 10.6722 4.31628 11.6833C5.32739 12.6944 6.55516 13.2 7.99961 13.2Z",fill:"currentColor"}))))};t.Z=o},31197:function(e,t,n){"use strict";var i,r,a=n(67294);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var o=function(e){return a.createElement("svg",s({viewBox:"0 0 12 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i||(i=a.createElement("path",{d:"M5.5 7.5H2.5V0.5L5.5 0.5V7.5Z",fill:"currentColor"})),r||(r=a.createElement("path",{d:"M9.5 7.5H6.5V0.5L9.5 0.5V7.5Z",fill:"currentColor"})))};t.Z=o},26434:function(e,t,n){"use strict";let i;e=n.nmd(e);let r=(e,t)=>(...n)=>{let i=e(...n);return`\u001B[${i+t}m`},a=(e,t)=>(...n)=>{let i=e(...n);return`\u001B[${38+t};5;${i}m`},s=(e,t)=>(...n)=>{let i=e(...n);return`\u001B[${38+t};2;${i[0]};${i[1]};${i[2]}m`},o=e=>
1e,l=(e,t,n)=>[e,t,n],u=(e,t,n)=>{Object.defineProperty(e,t,{get:()=>{let i=n();return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0}),i},enumerable:!0,configurable:!0})},c=(e,t,r,a)=>{void 0===i&&(i=n(12085));let s=a?10:0,o={};for(let[n,a]of Object.entries(i)){let i="ansi16"===n?"ansi":n;n===t?o[i]=e(r,s):"object"==typeof a&&(o[i]=e(a[t],s))}return o};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};for(let[n,i]of(t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright,Object.entries(t))){for(let[n,r]of Object.entries(i))t[n]={open:`\u001B[${r[0]}m`,close:`\u001B[${r[1]}m`},i[n]=t[n],e.set(r[0],r[1]);Object.defineProperty(t,n,{value:i,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1b[39m",t.bgColor.close="\x1b[49m",u(t.color,"ansi",()=>c(r,"ansi16",o,!1)),u(t.color,"ansi256",()=>c(a,"ansi256",o,!1)),u(t.color,"ansi16m",()=>c(s,"rgb",l,!1)),u(t.bgColor,"ansi",()=>c(r,"ansi16",o,!0)),u(t.bgColor,"ansi256",()=>c(a,"ansi256",o,!0)),u(t.bgColor,"ansi16m",()=>c(s,"rgb",l,!0)),t}})},79742:function(e,t){"use strict";t.byteLength=u,t.toByteArray=d,t.fromByteArray=p;for(var n=[],i=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,o=a.length;s<o;++s)n[s]=a[s],i[a.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var i=n===t?0:4-n%4;return[n,i]}function u(e){var t=l(e),n=t[0],i=t[1];return(n+i)*3/4-i}function c(e,t,n){return(t+n)*3/4-n}function d(e){var t,n,a=l(e),s=a[0],o=a[1],u=new r(c(e,s,o)),d=0,h=o>0?s-4:s;for(n=0;n<h;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],u[d++]=t>>16&255,u[d++]=t>>8&255,u[d++]=255&t;return 2===o&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,u[d++]=255&t),1===o&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,u[d++]=t>>8&255,u[d++]=255&t),u}function h(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function f(e,t,n){for(var i=[],r=t;r<n;r+=3)i.push(h((e[r]<<16&16711680)+(e[r+1]<<8&65280)+(255&e[r+2])));return i.join("")}function p(e){for(var t,i=e.length,r=i%3,a=[],s=16383,o=0,l=i-r;o<l;o+=s)a.push(f(e,o,o+s>l?l:o+s));return 1===r?a.push(n[(t=e[i-1])>>2]+n[t<<4&63]+"=="):2===r&&a.push(n[(t=(e[i-2]<<8)+e[i-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},48764:function(e,t,n){"use strict";var i,r=n(79742),a=n(80645),s="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.lW=c,i=x,t.h2=50;var o=2147483647;function l(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}function u(e){if(e>o)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return p(e)}return d(e,t,n)}function d(e,t,n){if("string"==typeof e)return m(e,t);if(ArrayBuffer.isView(e))return v(e);
1if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Q(e,ArrayBuffer)||e&&Q(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(Q(e,SharedArrayBuffer)||e&&Q(e.buffer,SharedArrayBuffer)))return y(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return c.from(i,t,n);var r=_(e);if(r)return r;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function h(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function f(e,t,n){return(h(e),e<=0)?u(e):void 0!==t?"string"==typeof n?u(e).fill(t,n):u(e).fill(t):u(e)}function p(e){return h(e),u(e<0?0:0|b(e))}function m(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!c.isEncoding(t))throw TypeError("Unknown encoding: "+t);var n=0|C(e,t),i=u(n),r=i.write(e,t);return r!==n&&(i=i.slice(0,r)),i}function g(e){for(var t=e.length<0?0:0|b(e.length),n=u(t),i=0;i<t;i+=1)n[i]=255&e[i];return n}function v(e){if(Q(e,Uint8Array)){var t=new Uint8Array(e);return y(t.buffer,t.byteOffset,t.byteLength)}return g(e)}function y(e,t,n){var i;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(i=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),c.prototype),i}function _(e){if(c.isBuffer(e)){var t=0|b(e.length),n=u(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||J(e.length)?u(0):g(e):"Buffer"===e.type&&Array.isArray(e.data)?g(e.data):void 0}function b(e){if(e>=o)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|e}function x(e){return+e!=e&&(e=0),c.alloc(+e)}function C(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Q(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return $(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return K(e).length;default:if(r)return i?-1:$(e).length;t=(""+t).toLowerCase(),r=!0}}function E(e,t,n){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return j(this,t,n);case"utf8":case"utf-8":return k(this,t,n);case"ascii":return F(this,t,n);case"latin1":case"binary":return O(this,t,n);case"base64":return R(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,t,n);default:if(i)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function w(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function T(e,t,n,i,r){if(0===e.length)return -1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),J(n=+n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return -1;n=e.length-1}else if(n<0){if(!r)return -1;n=0}if("string"==typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:S(e,t,n,i,r);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):S(e,[t],n,i,r);throw TypeError("val must be string, number or Buffer")}function S(e,t,n,i,r){var a,s=1,o=e.length,l=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return -1;
vendor: 14,067 bytes, line 1
1s=2,o/=2,l/=2,n/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(r){var c=-1;for(a=n;a<o;a++)if(u(e,a)===u(t,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===l)return c*s}else -1!==c&&(a-=a-c),c=-1}else for(n+l>o&&(n=o-l),a=n;a>=0;a--){for(var d=!0,h=0;h<l;h++)if(u(e,a+h)!==u(t,h)){d=!1;break}if(d)return a}return -1}function L(e,t,n,i){n=Number(n)||0;var r=e.length-n;i?(i=Number(i))>r&&(i=r):i=r;var a=t.length;i>a/2&&(i=a/2);for(var s=0;s<i;++s){var o=parseInt(t.substr(2*s,2),16);if(J(o))break;e[n+s]=o}return s}function P(e,t,n,i){return X($(t,e.length-n),e,n,i)}function M(e,t,n,i){return X(Z(t),e,n,i)}function A(e,t,n,i){return X(K(t),e,n,i)}function I(e,t,n,i){return X(Y(t,e.length-n),e,n,i)}function R(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function k(e,t,n){n=Math.min(e.length,n);for(var i=[],r=t;r<n;){var a,s,o,l,u=e[r],c=null,d=u>239?4:u>223?3:u>191?2:1;if(r+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:(192&(a=e[r+1]))==128&&(l=(31&u)<<6|63&a)>127&&(c=l);break;case 3:a=e[r+1],s=e[r+2],(192&a)==128&&(192&s)==128&&(l=(15&u)<<12|(63&a)<<6|63&s)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:a=e[r+1],s=e[r+2],o=e[r+3],(192&a)==128&&(192&s)==128&&(192&o)==128&&(l=(15&u)<<18|(63&a)<<12|(63&s)<<6|63&o)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,i.push(c>>>10&1023|55296),c=56320|1023&c),i.push(c),r+=d}return N(i)}i=2147483647,c.TYPED_ARRAY_SUPPORT=l(),c.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(e,t,n){return d(e,t,n)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,n){return f(e,t,n)},c.allocUnsafe=function(e){return p(e)},c.allocUnsafeSlow=function(e){return p(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(Q(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),Q(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,i=t.length,r=0,a=Math.min(n,i);r<a;++r)if(e[r]!==t[r]){n=e[r],i=t[r];break}return n<i?-1:i<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);if(void 0===t)for(n=0,t=0;n<e.length;++n)t+=e[n].length;var n,i=c.allocUnsafe(t),r=0;for(n=0;n<e.length;++n){var a=e[n];if(Q(a,Uint8Array))r+a.length>i.length?c.from(a).copy(i,r):Uint8Array.prototype.set.call(i,a,r);else if(c.isBuffer(a))a.copy(i,r);else throw TypeError('"list" argument must be an Array of Buffers');r+=a.length}return i},c.byteLength=C,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)w(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)w(this,t,t+3),w(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)w(this,t,t+7),w(this,t+1,t+6),w(this,t+2,t+5),w(this,t+3,t+4);return this},c.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?k(this,0,e):E.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.h2;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},s&&(c.prototype[s]=c.prototype.inspect),c.prototype.compare=function(e,t,n,i,r){if(Q(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),t<0||n>e.length||i<0||r>this.length)throw RangeError("out of range index");if(i>=r&&t>=n)return 0;if(i>=r)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,r>>>=0,this===e)return 0;for(var a=r-i,s=n-t,o=Math.min(a,s),l=this.slice(i,r),u=e.slice(t,n),d=0;d<o;++d)if(l[d]!==u[d]){a=l[d],s=u[d];break}return a<s?-1:s<a?1:0},c.prototype.includes=function(e,t,n){return -1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return T(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return T(this,e,t,n,!1)},c.prototype.write=function(e,t,n,i){if(void 0===t)i="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)i=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,void 0===i&&(i="utf8")):(i=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var r=this.length-t;if((void 0===n||n>r)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return L(this,e,t,n);case"utf8":case"utf-8":return P(this,e,t,n);case"ascii":case"latin1":case"binary":return M(this,e,t,n);case"base64":return A(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,t,n);default:if(a)throw TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var D=4096;function N(e){var t=e.length;if(t<=D)return String.fromCharCode.apply(String,e);for(var n="",i=0;i<t;)n+=String.fromCharCode.apply(String,e.slice(i,i+=D));return n}function F(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r)i+=String.fromCharCode(127&e[r]);return i}function O(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r)i+=String.fromCharCode(e[r]);return i}function j(e,t,n){var i=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>i)&&(n=i);for(var r="",a=t;a<n;++a)r+=ee[e[a]];return r}function U(e,t,n){for(var i=e.slice(t,n),r="",a=0;a<i.length-1;a+=2)r+=String.fromCharCode(i[a]+256*i[a+1]);return r}function V(e,t,n){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>n)throw RangeError("Trying to access beyond buffer length")}function B(e,t,n,i,r,a){if(!c.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>r||t<a)throw RangeError('"value" argument is out of bounds');if(n+i>e.length)throw RangeError("Index out of range")}function H(e,t,n,i,r,a){if(n+i>e.length||n<0)throw RangeError("Index out of range")}function G(e,t,n,i,r){return t=+t,n>>>=0,r||H(e,t,n,4,34028234663852886e22,-34028234663852886e22),a.write(e,t,n,i,23,4),n+4}function z(e,t,n,i,r){return t=+t,n>>>=0,r||H(e,t,n,8,17976931348623157e292,-17976931348623157e292),a.write(e,t,n,i,52,8),n+8}c.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,c.prototype),i},c.prototype.readUintLE=c.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||V(e,t,this.length);for(var i=this[e],r=1,a=0;++a<t&&(r*=256);)i+=this[e+a]*r;return i},c.prototype.readUintBE=c.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||V(e,t,this.length);for(var i=this[e+--t],r=1;t>0&&(r*=256);)i+=this[e+--t]*r;return i},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||V(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||V(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||V(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||V(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||V(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||V(e,t,this.length);for(var i=this[e],r=1,a=0;++a<t&&(r*=256);)i+=this[e+a]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||V(e,t,this.length);for(var i=t,r=1,a=this[e+--i];i>0&&(r*=256);)a+=this[e+--i]*r;return a>=(r*=128)&&(a-=Math.pow(2,8*t)),a},c.prototype.readInt8=function(e,t){return(e>>>=0,t||V(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||V(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){e>>>=0,t||V(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||V(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||V(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||V(e,4,this.length),a.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||V(e,4,this.length),a.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||V(e,8,this.length),a.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||V(e,8,this.length),a.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,n,i){if(e=+e,t>>>=0,n>>>=0,!i){var r=Math.pow(2,8*n)-1;B(this,e,t,n,r,0)}var a=1,s=0;for(this[t]=255&e;++s<n&&(a*=256);)this[t+s]=e/a&255;return t+n},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,t,n,i){if(e=+e,t>>>=0,n>>>=0,!i){var r=Math.pow(2,8*n)-1;B(this,e,t,n,r,0)}var a=n-1,s=1;for(this[t+a]=255&e;--a>=0&&(s*=256);)this[t+a]=e/s&255;return t+n},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t>>>=0,!i){var r=Math.pow(2,8*n-1);B(this,e,t,n,r-1,-r)}var a=0,s=1,o=0;for(this[t]=255&e;++a<n&&(s*=256);)e<0&&0===o&&0!==this[t+a-1]&&(o=1),this[t+a]=(e/s>>0)-o&255;return t+n},c.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t>>>=0,!i){var r=Math.pow(2,8*n-1);B(this,e,t,n,r-1,-r)}var a=n-1,s=1,o=0;for(this[t+a]=255&e;--a>=0&&(s*=256);)e<0&&0===o&&0!==this[t+a+1]&&(o=1),this[t+a]=(e/s>>0)-o&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,n){return G(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return G(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return z(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return z(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,i){if(!c.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<n&&(i=n),i===n||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw RangeError("Index out of range");if(i<0)throw RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-n&&(i=e.length-t+n);var r=i-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),t),r},c.prototype.fill=function(e,t,n,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),void 0!==i&&"string"!=typeof i)throw TypeError("encoding must be a string");if("string"==typeof i&&!c.isEncoding(i))throw TypeError("Unknown encoding: "+i);if(1===e.length){var r,a=e.charCodeAt(0);("utf8"===i&&a<128||"latin1"===i)&&(e=a)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError("Out of range index");if(n<=t)return this;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(r=t;r<n;++r)this[r]=e;
1else{var s=c.isBuffer(e)?e:c.from(e,i),o=s.length;if(0===o)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(r=0;r<n-t;++r)this[r+t]=s[r%o]}return this};var q=/[^+/0-9A-Za-z-_]/g;function W(e){if((e=(e=e.split("=")[0]).trim().replace(q,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}function $(e,t){t=t||1/0;for(var n,i=e.length,r=null,a=[],s=0;s<i;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!r){if(n>56319||s+1===i){(t-=3)>-1&&a.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),r=n;continue}n=(r-55296<<10|n-56320)+65536}else r&&(t-=3)>-1&&a.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return a}function Z(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function Y(e,t){for(var n,i,r=[],a=0;a<e.length&&!((t-=2)<0);++a)i=(n=e.charCodeAt(a))>>8,r.push(n%256),r.push(i);return r}function K(e){return r.toByteArray(W(e))}function X(e,t,n,i){for(var r=0;r<i&&!(r+n>=t.length)&&!(r>=e.length);++r)t[r+n]=e[r];return r}function Q(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function J(e){return e!=e}var ee=function(){for(var e="0123456789abcdef",t=Array(256),n=0;n<16;++n)for(var i=16*n,r=0;r<16;++r)t[i+r]=e[n]+e[r];return t}()},34061:function(e,t,n){"use strict";let i;let r=n(26434),{stdout:a,stderr:s}=n(8555),{stringReplaceAll:o,stringEncaseCRLFWithFirstIndex:l}=n(33559),{isArray:u}=Array,c=["ansi","ansi","ansi256","ansi16m"],d=Object.create(null),h=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let n=a?a.level:0;e.level=void 0===t.level?n:t.level};class f{constructor(e){return p(e)}}let p=e=>{let t={};return h(t,e),t.template=(...e)=>x(t.template,...e),Object.setPrototypeOf(t,m.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=f,t.template};function m(e){return p(e)}for(let[e,t]of Object.entries(r))d[e]={get(){let n=_(this,y(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:n}),n}};d.visible={get(){let e=_(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};let g=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let e of g)d[e]={get(){let{level:t}=this;return function(...n){return _(this,y(r.color[c[t]][e](...n),r.color.close,this._styler),this._isEmpty)}}};for(let e of g)d["bg"+e[0].toUpperCase()+e.slice(1)]={get(){let{level:t}=this;return function(...n){return _(this,y(r.bgColor[c[t]][e](...n),r.bgColor.close,this._styler),this._isEmpty)}}};let v=Object.defineProperties(()=>{},{...d,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),y=(e,t,n)=>{let i,r;return void 0===n?(i=e,r=t):(i=n.openAll+e,r=t+n.closeAll),{open:e,close:t,openAll:i,closeAll:r,parent:n}},_=(e,t,n)=>{let i=(...e)=>u(e[0])&&u(e[0].raw)?b(i,x(i,...e)):b(i,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(i,v),i._generator=e,i._styler=t,i._isEmpty=n,i},b=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let n=e._styler;if(void 0===n)return t;let{openAll:i,closeAll:r}=n;if(-1!==t.indexOf("\x1b"))for(;void 0!==n;)t=o(t,n.close,n.open),n=n.parent;let a=t.indexOf("\n");return -1!==a&&(t=l(t,r,i,a)),i+t+r},x=(e,...t)=>{let[r]=t;if(!u(r)||!u(r.raw))return t.join(" ");let a=t.slice(1),s=[r.raw[0]];for(let e=1;e<r.length;e++)s.push(String(a[e-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[e]));return void 0===i&&(i=n(79515)),i(e,s.join(""))};Object.defineProperties(m.prototype,d);let C=m();C.supportsColor=a,C.stderr=m({level:s?s.level:0}),C.stderr.supportsColor=s,e.exports=C},79515:function(e){"use strict";let t=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,r=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,a=new Map([["n","\n"],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1b"],["a","\x07"]]);function s(e){let t="u"===e[0],n="{"===e[1];return t&&!n&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):t&&n?String.fromCodePoint(parseInt(e.slice(2,-1),16)):a.get(e)||e}function o(e,t){let n;let a=[];for(let o of t.trim().split(/\s*,\s*/g)){let t=Number(o);if(Number.isNaN(t)){if(n=o.match(i))a.push(n[2].replace(r,(e,t,n)=>t?s(t):n));else throw Error(`Invalid Chalk template style argument: ${o} (in style '${e}')`)}else a.push(t)}return a}function l(e){let t;n.lastIndex=0;let i=[];for(;null!==(t=n.exec(e));){let e=t[1];if(t[2]){let n=o(e,t[2]);i.push([e].concat(n))}else i.push([e])}return i}function u(e,t){let n={};for(let e of t)for(let t of e.styles)n[t[0]]=e.inverse?null:t.slice(1);let i=e;for(let[e,t]of Object.entries(n))if(Array.isArray(t)){if(!(e in i))throw Error(`Unknown Chalk style: ${e}`);i=t.length>0?i[e](...t):i[e]}return i}
1e.exports=(e,n)=>{let i=[],r=[],a=[];if(n.replace(t,(t,n,o,c,d,h)=>{if(n)a.push(s(n));else if(c){let t=a.join("");a=[],r.push(0===i.length?t:u(e,i)(t)),i.push({inverse:o,styles:l(c)})}else if(d){if(0===i.length)throw Error("Found extraneous } in Chalk template literal");r.push(u(e,i)(a.join(""))),a=[],i.pop()}else a.push(h)}),r.push(a.join("")),i.length>0)throw Error(`Chalk template literal is missing ${i.length} closing bracket${1===i.length?"":"s"} (\`}\`)`);return r.join("")}},33559:function(e){"use strict";let t=(e,t,n)=>{let i=e.indexOf(t);if(-1===i)return e;let r=t.length,a=0,s="";do s+=e.substr(a,i-a)+t+n,a=i+r,i=e.indexOf(t,a);while(-1!==i);return s+e.substr(a)},n=(e,t,n,i)=>{let r=0,a="";do{let s="\r"===e[i-1];a+=e.substr(r,(s?i-1:i)-r)+t+(s?"\r\n":"\n")+n,r=i+1,i=e.indexOf("\n",r)}while(-1!==i);return a+e.substr(r)};e.exports={stringReplaceAll:t,stringEncaseCRLFWithFirstIndex:n}},48168:function(e,t,n){let i=n(8874),r={};for(let e of Object.keys(i))r[i[e]]=e;let a={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(let t of(e.exports=a,Object.keys(a))){if(!("channels"in a[t]))throw Error("missing channels property: "+t);if(!("labels"in a[t]))throw Error("missing channel labels property: "+t);if(a[t].labels.length!==a[t].channels)throw Error("channel and label counts mismatch: "+t);let{channels:e,labels:n}=a[t];delete a[t].channels,delete a[t].labels,Object.defineProperty(a[t],"channels",{value:e}),Object.defineProperty(a[t],"labels",{value:n})}function s(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}a.rgb.hsl=function(e){let t,n;let i=e[0]/255,r=e[1]/255,a=e[2]/255,s=Math.min(i,r,a),o=Math.max(i,r,a),l=o-s;o===s?t=0:i===o?t=(r-a)/l:r===o?t=2+(a-i)/l:a===o&&(t=4+(i-r)/l),(t=Math.min(60*t,360))<0&&(t+=360);let u=(s+o)/2;return[t,100*(n=o===s?0:u<=.5?l/(o+s):l/(2-o-s)),100*u]},a.rgb.hsv=function(e){let t,n,i,r,a;let s=e[0]/255,o=e[1]/255,l=e[2]/255,u=Math.max(s,o,l),c=u-Math.min(s,o,l),d=function(e){return(u-e)/6/c+.5};return 0===c?(r=0,a=0):(a=c/u,t=d(s),n=d(o),i=d(l),s===u?r=i-n:o===u?r=1/3+t-i:l===u&&(r=2/3+n-t),r<0?r+=1:r>1&&(r-=1)),[360*r,100*a,100*u]},a.rgb.hwb=function(e){let t=e[0],n=e[1],i=e[2];return[a.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,i))*100,100*(i=1-1/255*Math.max(t,Math.max(n,i)))]},a.rgb.cmyk=function(e){let t=e[0]/255,n=e[1]/255,i=e[2]/255,r=Math.min(1-t,1-n,1-i);return[100*((1-t-r)/(1-r)||0),100*((1-n-r)/(1-r)||0),100*((1-i-r)/(1-r)||0),100*r]},a.rgb.keyword=function(e){let t;let n=r[e];if(n)return n;let a=1/0;for(let n of Object.keys(i)){let r=s(e,i[n]);r<a&&(a=r,t=n)}return t},a.keyword.rgb=function(e){return i[e]},a.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,i=e[2]/255;return[100*(.4124*(t=t>.04045?((t+.055)/1.055)**2.4:t/12.92)+.3576*(n=n>.04045?((n+.055)/1.055)**2.4:n/12.92)+.1805*(i=i>.04045?((i+.055)/1.055)**2.4:i/12.92)),100*(.2126*t+.7152*n+.0722*i),100*(.0193*t+.1192*n+.9505*i)]},a.rgb.lab=function(e){let t=a.rgb.xyz(e),n=t[0],i=t[1],r=t[2];return n/=95.047,i/=100,r/=108.883,[116*(i=i>.008856?i**(1/3):7.787*i+16/116)-16,500*((n=n>.008856?n**(1/3):7.787*n+16/116)-i),200*(i-(r=r>.008856?r**(1/3):7.787*r+16/116))]},a.hsl.rgb=function(e){let t,n,i;let r=e[0]/360,a=e[1]/100,s=e[2]/100;if(0===a)return[i=255*s,i,i];t=s<.5?s*(1+a):s+a-s*a;let o=2*s-t,l=[0,0,0];for(let e=0;e<3;e++)(n=r+-(1/3*(e-1)))<0&&n++,n>1&&n--,i=6*n<1?o+(t-o)*6*n:2*n<1?t:3*n<2?o+(t-o)*(2/3-n)*6:o,l[e]=255*i;return l},a.hsl.hsv=function(e){let t=e[0],n=e[1]/100,i=e[2]/100,r=n,a=Math.max(i,.01);i*=2,n*=i<=1?i:2-i,r*=a<=1?a:2-a;let s=(i+n)/2;return[t,100*(0===i?2*r/(a+r):2*n/(i+n)),100*s]},a.hsv.rgb=function(e){let t=e[0]/60,n=e[1]/100,i=e[2]/100,r=Math.floor(t)%6,a=t-Math.floor(t),s=255*i*(1-n),o=255*i*(1-n*a),l=255*i*(1-n*(1-a));switch(i*=255,r){case 0:return[i,l,s];case 1:return[o,i,s];case 2:return[s,i,l];case 3:return[s,o,i];case 4:return[l,s,i];case 5:return[i,s,o]}},a.hsv.hsl=function(e){let t,n;let i=e[0],r=e[1]/100,a=e[2]/100,s=Math.max(a,.01);n=(2-r)*a;let o=(2-r)*s;return[i,100*(t=(t=r*s/(o<=1?o:2-o))||0),100*(n/=2)]},a.hwb.rgb=function(e){let t,n,i,r;let a=e[0]/360,s=e[1]/100,o=e[2]/100,l=s+o;l>1&&(s/=l,o/=l);let u=Math.floor(6*a),c=1-o;t=6*a-u,(1&u)!=0&&(t=1-t);let d=s+t*(c-s);switch(u){default:case 6:case 0:n=c,i=d,r=s;break;case 1:n=d,i=c,r=s;break;case 2:n=s,i=c,r=d;break;case 3:n=s,i=d,r=c;break;case 4:n=d,i=s,r=c;break;case 5:n=c,i=s,r=d}return[255*n,255*i,255*r]},a.cmyk.rgb=function(e){let t=e[0]/100,n=e[1]/100,i=e[2]/100,r=e[3]/100;return[255*(1-Math.min(1,t*(1-r)+r)),255*(1-Math.min(1,n*(1-r)+r)),255*(1-Math.min(1,i*(1-r)+r))]},a.xyz.rgb=function(e){let t,n,i;let r=e[0]/100,a=e[1]/100,s=e[2]/100;return t=(t=3.2406*r+-1.5372*a+-.4986*s)>.0031308?1.055*t**(1/2.4)-.055:12.92*t,n=(n=-.9689*r+1.8758*a+.0415*s)>.0031308?1.055*n**(1/2.4)-.055:12.92*n,i=(i=.0557*r+-.204*a+1.057*s)>.0031308?1.055*i**(1/2.4)-.055:12.92*i,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(i=Math.min(Math.max(0,i),1))]},a.xyz.lab=function(e){let t=e[0],n=e[1],i=e[2];return t/=95.047,n/=100,i/=108.883,[116*(n=n>.008856?n**(1/3):7.787*n+16/116)-16,500*((t=t>.008856?t**(1/3):7.787*t+16/116)-n),200*(n-(i=i>.008856?i**(1/3):7.787*i+16/116))]},a.lab.xyz=function(e){let t,n,i;let r=e[0],a=e[1],s=e[2];t=a/500+(n=(r+16)/116),i=n-s/200;let o=n**3,l=t**3,u=i**3;return n=(o>.008856?o:(n-16/116)/7.787)*100,[t=(l>.008856?l:(t-16/116)/7.787)*95.047,n,i=(u>.008856?u:(i-16/116)/7.787)*108.883]},a.lab.lch=function(e){let t;let n=e[0],i=e[1],r=e[2];return(t=360*Math.atan2(r,i)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(i*i+r*r),t]},a.lch.lab=function(e){let t=e[0],n=e[1],i=e[2]/360*2*Math.PI;return[t,n*Math.cos(i),n*Math.sin(i)]},a.rgb.ansi16=function(e,t=null){let[n,i,r]=e,s=null===t?a.rgb.hsv(e)[2]:t;
1if(0===(s=Math.round(s/50)))return 30;let o=30+(Math.round(r/255)<<2|Math.round(i/255)<<1|Math.round(n/255));return 2===s&&(o+=60),o},a.hsv.ansi16=function(e){return a.rgb.ansi16(a.hsv.rgb(e),e[2])},a.rgb.ansi256=function(e){let t=e[0],n=e[1],i=e[2];return t===n&&n===i?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5)},a.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];let n=(~~(e>50)+1)*.5;return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},a.ansi256.rgb=function(e){let t;if(e>=232){let t=(e-232)*10+8;return[t,t,t]}return[Math.floor((e-=16)/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},a.rgb.hex=function(e){let t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},a.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=n.split("").map(e=>e+e).join(""));let i=parseInt(n,16);return[i>>16&255,i>>8&255,255&i]},a.rgb.hcg=function(e){let t,n;let i=e[0]/255,r=e[1]/255,a=e[2]/255,s=Math.max(Math.max(i,r),a),o=Math.min(Math.min(i,r),a),l=s-o;return t=l<1?o/(1-l):0,[360*(n=(l<=0?0:s===i?(r-a)/l%6:s===r?2+(a-i)/l:4+(i-r)/l)/6%1),100*l,100*t]},a.hsl.hcg=function(e){let t=e[1]/100,n=e[2]/100,i=n<.5?2*t*n:2*t*(1-n),r=0;return i<1&&(r=(n-.5*i)/(1-i)),[e[0],100*i,100*r]},a.hsv.hcg=function(e){let t=e[1]/100,n=e[2]/100,i=t*n,r=0;return i<1&&(r=(n-i)/(1-i)),[e[0],100*i,100*r]},a.hcg.rgb=function(e){let t=e[0]/360,n=e[1]/100,i=e[2]/100;if(0===n)return[255*i,255*i,255*i];let r=[0,0,0],a=t%1*6,s=a%1,o=1-s,l=0;switch(Math.floor(a)){case 0:r[0]=1,r[1]=s,r[2]=0;break;case 1:r[0]=o,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=s;break;case 3:r[0]=0,r[1]=o,r[2]=1;break;case 4:r[0]=s,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=o}return l=(1-n)*i,[(n*r[0]+l)*255,(n*r[1]+l)*255,(n*r[2]+l)*255]},a.hcg.hsv=function(e){let t=e[1]/100,n=t+e[2]/100*(1-t),i=0;return n>0&&(i=t/n),[e[0],100*i,100*n]},a.hcg.hsl=function(e){let t=e[1]/100,n=e[2]/100*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],100*i,100*n]},a.hcg.hwb=function(e){let t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],(n-t)*100,(1-n)*100]},a.hwb.hcg=function(e){let t=e[1]/100,n=1-e[2]/100,i=n-t,r=0;return i<1&&(r=(n-i)/(1-i)),[e[0],100*i,100*r]},a.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},a.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},a.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},a.gray.hsl=function(e){return[0,0,e[0]]},a.gray.hsv=a.gray.hsl,a.gray.hwb=function(e){return[0,100,e[0]]},a.gray.cmyk=function(e){return[0,0,0,e[0]]},a.gray.lab=function(e){return[e[0],0,0]},a.gray.hex=function(e){let t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},a.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},12085:function(e,t,n){let i=n(48168),r=n(4111),a={};function s(e){let t=function(...t){let n=t[0];return null==n?n:(n.length>1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}function o(e){let t=function(...t){let n=t[0];if(null==n)return n;n.length>1&&(t=n);let i=e(t);if("object"==typeof i)for(let e=i.length,t=0;t<e;t++)i[t]=Math.round(i[t]);return i};return"conversion"in e&&(t.conversion=e.conversion),t}
1Object.keys(i).forEach(e=>{a[e]={},Object.defineProperty(a[e],"channels",{value:i[e].channels}),Object.defineProperty(a[e],"labels",{value:i[e].labels});let t=r(e);Object.keys(t).forEach(n=>{let i=t[n];a[e][n]=o(i),a[e][n].raw=s(i)})}),e.exports=a},4111:function(e,t,n){let i=n(48168);function r(){let e={},t=Object.keys(i);for(let n=t.length,i=0;i<n;i++)e[t[i]]={distance:-1,parent:null};return e}function a(e){let t=r(),n=[e];for(t[e].distance=0;n.length;){let e=n.pop(),r=Object.keys(i[e]);for(let i=r.length,a=0;a<i;a++){let i=r[a],s=t[i];-1===s.distance&&(s.distance=t[e].distance+1,s.parent=e,n.unshift(i))}}return t}function s(e,t){return function(n){return t(e(n))}}function o(e,t){let n=[t[e].parent,e],r=i[t[e].parent][e],a=t[e].parent;for(;t[a].parent;)n.unshift(t[a].parent),r=s(i[t[a].parent][a],r),a=t[a].parent;return r.conversion=n,r}e.exports=function(e){let t=a(e),n={},i=Object.keys(t);for(let e=i.length,r=0;r<e;r++){let e=i[r];null!==t[e].parent&&(n[e]=o(e,t))}return n}},8874:function(e){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},76489:function(e,t){"use strict";n=a,n=s;var n,i=Object.prototype.toString,r=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function a(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");for(var n={},i=(t||{}).decode||o,r=0;r<e.length;){var a=e.indexOf("=",r);
1if(-1===a)break;var s=e.indexOf(";",r);if(-1===s)s=e.length;else if(s<a){r=e.lastIndexOf(";",a-1)+1;continue}var l=e.slice(r,a).trim();if(void 0===n[l]){var u=e.slice(a+1,s).trim();34===u.charCodeAt(0)&&(u=u.slice(1,-1)),n[l]=c(u,i)}r=s+1}return n}function s(e,t,n){var i=n||{},a=i.encode||l;if("function"!=typeof a)throw TypeError("option encode is invalid");if(!r.test(e))throw TypeError("argument name is invalid");var s=a(t);if(s&&!r.test(s))throw TypeError("argument val is invalid");var o=e+"="+s;if(null!=i.maxAge){var c=i.maxAge-0;if(isNaN(c)||!isFinite(c))throw TypeError("option maxAge is invalid");o+="; Max-Age="+Math.floor(c)}if(i.domain){if(!r.test(i.domain))throw TypeError("option domain is invalid");o+="; Domain="+i.domain}if(i.path){if(!r.test(i.path))throw TypeError("option path is invalid");o+="; Path="+i.path}if(i.expires){var d=i.expires;if(!u(d)||isNaN(d.valueOf()))throw TypeError("option expires is invalid");o+="; Expires="+d.toUTCString()}if(i.httpOnly&&(o+="; HttpOnly"),i.secure&&(o+="; Secure"),i.priority)switch("string"==typeof i.priority?i.priority.toLowerCase():i.priority){case"low":o+="; Priority=Low";break;case"medium":o+="; Priority=Medium";break;case"high":o+="; Priority=High";break;
1default:throw TypeError("option priority is invalid")}if(i.sameSite)switch("string"==typeof i.sameSite?i.sameSite.toLowerCase():i.sameSite){case!0:case"strict":o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"none":o+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return o}function o(e){return -1!==e.indexOf("%")?decodeURIComponent(e):e}function l(e){return encodeURIComponent(e)}function u(e){return"[object Date]"===i.call(e)||e instanceof Date}function c(e,t){try{return t(e)}catch(t){return e}}},9996:function(e){"use strict";var t=function(e){return n(e)&&!i(e)};function n(e){return!!e&&"object"==typeof e}function i(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||a(e)}var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function a(e){return e.$$typeof===r}function s(e){return Array.isArray(e)?[]:{}}function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?m(s(e),e,t):e}function l(e,t,n){return e.concat(t).map(function(e){return o(e,n)})}function u(e,t){if(!t.customMerge)return m;var n=t.customMerge(e);return"function"==typeof n?n:m}function c(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function d(e){return Object.keys(e).concat(c(e))}function h(e,t){try{return t in e}catch(e){return!1}}function f(e,t){return h(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function p(e,t,n){var i={};return n.isMergeableObject(e)&&d(e).forEach(function(t){i[t]=o(e[t],n)}),d(t).forEach(function(r){f(e,r)||(h(e,r)&&n.isMergeableObject(t[r])?i[r]=u(r,n)(e[r],t[r],n):i[r]=o(t[r],n))}),i}function m(e,n,i){(i=i||{}).arrayMerge=i.arrayMerge||l,i.isMergeableObject=i.isMergeableObject||t,i.cloneUnlessOtherwiseSpecified=o;var r=Array.isArray(n);return r!==Array.isArray(e)?o(n,i):r?i.arrayMerge(e,n,i):p(e,n,i)}m.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,n){return m(e,n,t)},{})};var g=m;e.exports=g},16932:function(e,t,n){"use strict";let i=n(78501),r=n(58844),a=n(41192);e.exports={XMLParser:r,XMLValidator:i,XMLBuilder:a}},32694:function(e){function t(e){return"function"==typeof e?e:Array.isArray(e)?t=>{for(let n of e)if("string"==typeof n&&t===n||n instanceof RegExp&&n.test(t))return!0}:()=>!1}e.exports=t},17849:function(e,t){"use strict";let n=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",i=n+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",r="["+n+"]["+i+"]*",a=RegExp("^"+r+"$"),s=function(e,t){let n=[],i=t.exec(e);for(;i;){let r=[];r.startIndex=t.lastIndex-i[0].length;let a=i.length;for(let e=0;e<a;e++)r.push(i[e]);n.push(r),i=t.exec(e)}return n},o=function(e){return null!=a.exec(e)};t.isExist=function(e){return void 0!==e},t.isEmptyObject=function(e){return 0===Object.keys(e).length},t.merge=function(e,t,n){if(t){let i=Object.keys(t),r=i.length;for(let a=0;a<r;a++)"strict"===n?e[i[a]]=[t[i[a]]]:e[i[a]]=t[i[a]]}},t.getValue=function(e){return t.isExist(e)?e:""};let l=["hasOwnProperty","toString","valueOf","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"],u=["__proto__","constructor","prototype"];t.isName=o,t.getAllMatches=s,t.nameRegexp=r,t.DANGEROUS_PROPERTY_NAMES=l,t.criticalProperties=u},78501:function(e,t,n){"use strict";let i=n(17849),r={allowBooleanAttributes:!1,unpairedTags:[]};function a(e){return" "===e||" "===e||"\n"===e||"\r"===e}function s(e,t){let n=t;for(;t<e.length;t++)if("?"==e[t]||" "==e[t]){let i=e.substr(n,t-n);if(t>5&&"xml"===i)return m("InvalidXml","XML declaration allowed only at the start of the document.",y(e,t));if("?"!=e[t]||">"!=e[t+1])continue;t++;break}return t}function o(e,t){if(e.length>t+5&&"-"===e[t+1]&&"-"===e[t+2]){for(t+=3;t<e.length;t++)if("-"===e[t]&&"-"===e[t+1]&&">"===e[t+2]){t+=2;break}}else if(e.length>t+8&&"D"===e[t+1]&&"O"===e[t+2]&&"C"===e[t+3]&&"T"===e[t+4]&&"Y"===e[t+5]&&"P"===e[t+6]&&"E"===e[t+7]){let n=1;for(t+=8;t<e.length;t++)if("<"===e[t])n++;else if(">"===e[t]&&0==--n)break}else if(e.length>t+9&&"["===e[t+1]&&"C"===e[t+2]&&"D"===e[t+3]&&"A"===e[t+4]&&"T"===e[t+5]&&"A"===e[t+6]&&"["===e[t+7]){for(t+=8;t<e.length;t++)if("]"===e[t]&&"]"===e[t+1]&&">"===e[t+2]){t+=2;break}}return t}t.validate=function(e,t){t=Object.assign({},r,t);let n=[],i=!1,l=!1;"\uFEFF"===e[0]&&(e=e.substr(1));for(let r=0;r<e.length;r++)if("<"===e[r]&&"?"===e[r+1]){if(r+=2,(r=s(e,r)).err)return r}else if("<"===e[r]){let u=r;if("!"===e[++r]){r=o(e,r);continue}{let d=!1;"/"===e[r]&&(d=!0,r++);let f="";for(;r<e.length&&">"!==e[r]&&" "!==e[r]&&" "!==e[r]&&"\n"!==e[r]&&"\r"!==e[r];r++)f+=e[r];if("/"===(f=f.trim())[f.length-1]&&(f=f.substring(0,f.length-1),r--),!v(f)){let t;return m("InvalidTag",t=0===f.trim().length?"Invalid space after '<'.":"Tag '"+f+"' is an invali
1d name.",y(e,r))}let g=c(e,r);if(!1===g)return m("InvalidAttr","Attributes for '"+f+"' have open quote.",y(e,r));let _=g.value;if(r=g.index,"/"===_[_.length-1]){let n=r-_.length,a=h(_=_.substring(0,_.length-1),t);if(!0!==a)return m(a.err.code,a.err.msg,y(e,n+a.err.line));i=!0}else if(d){if(!g.tagClosed)return m("InvalidTag","Closing tag '"+f+"' doesn't have proper closing.",y(e,r));if(_.trim().length>0)return m("InvalidTag","Closing tag '"+f+"' can't have attributes or invalid starting.",y(e,u));{if(0===n.length)return m("InvalidTag","Closing tag '"+f+"' has not been opened.",y(e,u));let t=n.pop();if(f!==t.tagName){let n=y(e,t.tagStartPos);return m("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+n.line+", col "+n.col+") instead of closing tag '"+f+"'.",y(e,u))}0==n.length&&(l=!0)}}else{let a=h(_,t);if(!0!==a)return m(a.err.code,a.err.msg,y(e,r-_.length+a.err.line));if(!0===l)return m("InvalidXml","Multiple possible root nodes found.",y(e,r));-1!==t.unpairedTags.indexOf(f)||n.push({tagName:f,tagStartPos:u}),i=!0}for(r++;r<e.length;r++)if("<"===e[r]){if("!"===e[r+1]){r=o(e,++r);continue}if("?"===e[r+1]){if((r=s(e,++r)).err)return r}else break}else if("&"===e[r]){let t=p(e,r);if(-1==t)return m("InvalidChar","char '&' is not expected.",y(e,r));r=t}else if(!0===l&&!a(e[r]))return m("InvalidXml","Extra text at the end",y(e,r));"<"===e[r]&&r--}}else{if(a(e[r]))continue;return m("InvalidChar","char '"+e[r]+"' is not expected.",y(e,r))}return i?1==n.length?m("InvalidTag","Unclosed tag '"+n[0].tagName+"'.",y(e,n[0].tagStartPos)):!(n.length>0)||m("InvalidXml","Invalid '"+JSON.stringify(n.map(e=>e.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):m("InvalidXml","Start tag expected.",1)};let l='"',u="'";function c(e,t){let n="",i="",r=!1;for(;t<e.length;t++){if(e[t]===l||e[t]===u)""===i?i=e[t]:i!==e[t]||(i="");else if(">"===e[t]&&""===i){r=!0;break}n+=e[t]}return""===i&&{value:n,index:t,tagClosed:r}}let d=RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function h(e,t){let n=i.getAllMatches(e,d),r={};for(let e=0;e<n.length;e++){if(0===n[e][1].length)return m("InvalidAttr","Attribute '"+n[e][2]+"' has no space in starting.",_(n[e]));if(void 0!==n[e][3]&&void 0===n[e][4])return m("InvalidAttr","Attribute '"+n[e][2]+"' is without value.",_(n[e]));if(void 0===n[e][3]&&!t.allowBooleanAttributes)return m("InvalidAttr","boolean attribute '"+n[e][2]+"' is not allowed.",_(n[e]));let i=n[e][2];if(!g(i))return m("InvalidAttr","Attribute '"+i+"' is an invalid name.",_(n[e]));if(r.hasOwnProperty(i))return m("InvalidAttr","Attribute '"+i+"' is repeated.",_(n[e]));r[i]=1}return!0}function f(e,t){let n=/\d/;for("x"===e[t]&&(t++,n=/[\da-fA-F]/);t<e.length;t++){if(";"===e[t])return t;if(!e[t].match(n))break}return -1}function p(e,t){if(";"===e[++t])return -1;if("#"===e[t])return f(e,++t);let n=0;for(;t<e.length;t++,n++)if(!e[t].match(/\w/)||!(n<20)){if(";"===e[t])break;return -1}return t}function m(e,t,n){return{err:{code:e,msg:t,line:n.line||n,col:n.col}}}function g(e){return i.isName(e)}function v(e){return i.isName(e)}function y(e,t){let n=e.substring(0,t).split(/\r?\n/);return{line:n.length,col:n[n.length-1].length+1}}function _(e){return e.startIndex+e[1].length}},41192:function(e,t,n){"use strict";let i=n(82592),r=n(32694),a={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:RegExp("&","g"),val:"&"},{regex:RegExp(">","g"),val:">"},{regex:RegExp("<","g"),val:"<"},{regex:RegExp("'","g"),val:"'"},{regex:RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function s(e){this.options=Object.assign({},a,e),!0===this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=r(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=u),this.processTextOrObjNode=o,this.options.format?(this.indentate=l,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function o(e,t,n,i){let r=this.j2x(e,n+1,i.concat(t));return void 0!==e[this.options.textNodeName]&&1===Object.keys(e).length?this.buildTextValNo
1de(e[this.options.textNodeName],t,r.attrStr,n):this.buildObjectNode(r.val,t,r.attrStr,n)}function l(e){return this.options.indentBy.repeat(e)}function u(e){return!!e.startsWith(this.options.attributeNamePrefix)&&e!==this.options.textNodeName&&e.substr(this.attrPrefixLen)}s.prototype.build=function(e){return this.options.preserveOrder?i(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0,[]).val)},s.prototype.j2x=function(e,t,n){let i="",r="",a=n.join(".");for(let s in e)if(Object.prototype.hasOwnProperty.call(e,s)){if(void 0===e[s])this.isAttribute(s)&&(r+="");else if(null===e[s])this.isAttribute(s)?r+="":s===this.options.cdataPropName?r+="":"?"===s[0]?r+=this.indentate(t)+"<"+s+"?"+this.tagEndChar:r+=this.indentate(t)+"<"+s+"/"+this.tagEndChar;else if(e[s]instanceof Date)r+=this.buildTextValNode(e[s],s,"",t);else if("object"!=typeof e[s]){let n=this.isAttribute(s);if(n&&!this.ignoreAttributesFn(n,a))i+=this.buildAttrPairStr(n,""+e[s]);else if(!n){if(s===this.options.textNodeName){let t=this.options.tagValueProcessor(s,""+e[s]);r+=this.replaceEntitiesValue(t)}else r+=this.buildTextValNode(e[s],s,"",t)}}else if(Array.isArray(e[s])){let i=e[s].length,a="",o="";for(let l=0;l<i;l++){let i=e[s][l];if(void 0===i);else if(null===i)"?"===s[0]?r+=this.indentate(t)+"<"+s+"?"+this.tagEndChar:r+=this.indentate(t)+"<"+s+"/"+this.tagEndChar;else if("object"==typeof i){if(this.options.oneListGroup){let e=this.j2x(i,t+1,n.concat(s));a+=e.val,this.options.attributesGroupName&&i.hasOwnProperty(this.options.attributesGroupName)&&(o+=e.attrStr)}else a+=this.processTextOrObjNode(i,s,t,n)}else if(this.options.oneListGroup){let e=this.options.tagValueProcessor(s,i);a+=e=this.replaceEntitiesValue(e)}else a+=this.buildTextValNode(i,s,"",t)}this.options.oneListGroup&&(a=this.buildObjectNode(a,s,o,t)),r+=a}else if(this.options.attributesGroupName&&s===this.options.attributesGroupName){let t=Object.keys(e[s]),n=t.length;for(let r=0;r<n;r++)i+=this.buildAttrPairStr(t[r],""+e[s][t[r]])}else r+=this.processTextOrObjNode(e[s],s,t,n)}return{attrStr:i,val:r}},s.prototype.buildAttrPairStr=function(e,t){return(t=this.options.attributeValueProcessor(e,""+t),t=this.replaceEntitiesValue(t),this.options.suppressBooleanAttributes&&"true"===t)?" "+e:" "+e+'="'+t+'"'},s.prototype.buildObjectNode=function(e,t,n,i){if(""===e)return"?"===t[0]?this.indentate(i)+"<"+t+n+"?"+this.tagEndChar:this.indentate(i)+"<"+t+n+this.closeTag(t)+this.tagEndChar;{let r="</"+t+this.tagEndChar,a="";return("?"===t[0]&&(a="?",r=""),(n||""===n)&&-1===e.indexOf("<"))?this.indentate(i)+"<"+t+n+a+">"+e+r:!1!==this.options.commentPropName&&t===this.options.commentPropName&&0===a.length?this.indentate(i)+`<!--${e}-->`+this.newLine:this.indentate(i)+"<"+t+n+a+this.tagEndChar+e+this.indentate(i)+r}},s.prototype.closeTag=function(e){let t="";return -1!==this.options.unpairedTags.indexOf(e)?this.options.suppressUnpairedNode||(t="/"):t=this.options.suppressEmptyNode?"/":`></${e}`,t},s.prototype.buildTextValNode=function(e,t,n,i){if(!1!==this.options.cdataPropName&&t===this.options.cdataPropName)return this.indentate(i)+`<![CDATA[${e}]]>`+this.newLine;if(!1!==this.options.commentPropName&&t===this.options.commentPropName)return this.indentate(i)+`<!--${e}-->`+this.newLine;if("?"===t[0])return this.indentate(i)+"<"+t+n+"?"+this.tagEndChar;{let r=this.options.tagValueProcessor(t,e);return""===(r=this.replaceEntitiesValue(r))?this.indentate(i)+"<"+t+n+this.closeTag(t)+this.tagEndChar:this.indentate(i)+"<"+t+n+">"+r+"</"+t+this.tagEndChar}},s.prototype.replaceEntitiesValue=function(e){if(e&&e.length>0&&this.options.processEntities)for(let t=0;t<this.options.entities.length;t++){let n=this.options.entities[t];e=e.replace(n.regex,n.val)}return e},e.exports=s},82592:function(e){let t="\n";function n(e,n){let r="";return n.format&&n.indentBy.length>0&&(r=t),i(e,n,"",r)}function i(e,t,n,l){let u="",c=!1;if(!Array.isArray(e))return null!=e?o(e.toString(),t):"";for(let d=0;d<e.length;d++){let h=e[d],f=r(h);if(void 0===f)continue;let p="";if(p=0===n.length?f:`${n}.${f}`,f===t.textNodeName){let e=h[f];s(p,t)||(e=o(e=t.tagValueProcessor(f,e),t)),c&&(u+=l),u+=e,c=!1;continue}if(f===t.cdataPropName){c&&(u+=l),u+=`<![CDATA[${h[f][0][t.textNodeName]}]]>`,c=!1;continue}if(f===t.commentPropName){u+=l+`<!--${h[f][0][t.textNodeName]}-->`,c=!0;continue}if("?"===f[0]){let e=a(h[":@"],t),n="?xml"===f?"":l,i=h[f][0][t.textNodeName];i=0!==i.length?" "+i:"",u+=n+`<${f}${i}${e}?>`,c=!0;continue}let m=l;""!==m&&(m+=t.indentBy);let g=a(h[":@"],t),v=l+`<${f}${g}`,y=i(h[f],t,p,m);-1!==t.unpairedTags.indexOf(f)?t.suppressUnpairedNode?u+=v+">":u+=v+"/>":(!y||0===y.length)&&t.suppressEmptyNode?u+=v+"/>":y&&y.endsWith(">")?u+=v+`>${y}${l}</${f}>`:(u+=v+">",y&&""!==l&&(y.includes("/>")||y.includes("</"))?u+=l+t.indentBy+y+l:u+=y,u+=`</${f}>`),c=!0}return u}function r(e){let t=Object.keys(e);for(let n=0;n<t.length;n++){let i=t[n];if(Object.prototype.hasOwnProperty.call(e,i)&&":@"!==i)return i}}function a(e,t){let n="";if(e&&!t.ignoreAttributes)for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i))continue;let r=t.attributeValueProcessor(i,e[i]);!0===(r=o(r,t))&&t.suppressBooleanAttributes?n+=` ${i.substr(t.attributeNamePrefix.length)}`:n+=` ${i.substr(t.attributeNamePrefix.length)}="${r}"`}return n}function s(e,t){let n=(e=e.substr(0,e.length-t.textNodeName.length-1)).substr(e.lastIndexOf(".")+1);for(let i in t.stopNodes)if(t.stopNodes[i]===e||t.stopNodes[i]==="*."+n)return!0;return!1}function o(e,t){if(e&&e.length>0&&t.processEntities)for(let n=0;n<t.entities.length;n++){let i=t.entities[n];e=e.replace(i.regex,i.val)}return e}e.exports=n},74780:function(e,t,n){let i=n(17849);
1class r{constructor(e){this.suppressValidationErr=!e,this.options=e||{}}readDocType(e,t){let n=Object.create(null),i=0;if("O"===e[t+3]&&"C"===e[t+4]&&"T"===e[t+5]&&"Y"===e[t+6]&&"P"===e[t+7]&&"E"===e[t+8]){t+=9;let r=1,a=!1,o=!1,l="";for(;t<e.length;t++)if("<"!==e[t]||o){if(">"===e[t]){if(o?"-"===e[t-1]&&"-"===e[t-2]&&(o=!1,r--):r--,0===r)break}else"["===e[t]?a=!0:l+=e[t]}else{if(a&&s(e,"!ENTITY",t)){let r,a;if(t+=7,[r,a,t]=this.readEntityExp(e,t+1,this.suppressValidationErr),-1===a.indexOf("&")){if(!1!==this.options.enabled&&null!=this.options.maxEntityCount&&i>=this.options.maxEntityCount)throw Error(`Entity count (${i+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);let e=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");n[r]={regx:RegExp(`&${e};`,"g"),val:a},i++}}else if(a&&s(e,"!ELEMENT",t)){t+=8;let{index:n}=this.readElementExp(e,t+1);t=n}else if(a&&s(e,"!ATTLIST",t))t+=8;else if(a&&s(e,"!NOTATION",t)){t+=9;let{index:n}=this.readNotationExp(e,t+1,this.suppressValidationErr);t=n}else if(s(e,"!--",t))o=!0;else throw Error("Invalid DOCTYPE");r++,l=""}if(0!==r)throw Error("Unclosed DOCTYPE")}else throw Error("Invalid Tag instead of DOCTYPE");return{entities:n,i:t}}readEntityExp(e,t){t=a(e,t);let n="";for(;t<e.length&&!/\s/.test(e[t])&&'"'!==e[t]&&"'"!==e[t];)n+=e[t],t++;if(o(n),t=a(e,t),!this.suppressValidationErr){if("SYSTEM"===e.substring(t,t+6).toUpperCase())throw Error("External entities are not supported");if("%"===e[t])throw Error("Parameter entities are not supported")}let i="";if([t,i]=this.readIdentifierVal(e,t,"entity"),!1!==this.options.enabled&&null!=this.options.maxEntitySize&&i.length>this.options.maxEntitySize)throw Error(`Entity "${n}" size (${i.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return[n,i,--t]}
1readNotationExp(e,t){t=a(e,t);let n="";for(;t<e.length&&!/\s/.test(e[t]);)n+=e[t],t++;this.suppressValidationErr||o(n),t=a(e,t);let i=e.substring(t,t+6).toUpperCase();if(!this.suppressValidationErr&&"SYSTEM"!==i&&"PUBLIC"!==i)throw Error(`Expected SYSTEM or PUBLIC, found "${i}"`);t+=i.length,t=a(e,t);let r=null,s=null;if("PUBLIC"===i)[t,r]=this.readIdentifierVal(e,t,"publicIdentifier"),t=a(e,t),('"'===e[t]||"'"===e[t])&&([t,s]=this.readIdentifierVal(e,t,"systemIdentifier"));else if("SYSTEM"===i&&([t,s]=this.readIdentifierVal(e,t,"systemIdentifier"),!this.suppressValidationErr&&!s))throw Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:n,publicIdentifier:r,systemIdentifier:s,index:--t}}readIdentifierVal(e,t,n){let i="",r=e[t];if('"'!==r&&"'"!==r)throw Error(`Expected quoted string, found "${r}"`);for(t++;t<e.length&&e[t]!==r;)i+=e[t],t++;if(e[t]!==r)throw Error(`Unterminated ${n} value`);return[++t,i]}readElementExp(e,t){t=a(e,t);let n="";for(;t<e.length&&!/\s/.test(e[t]);)n+=e[t],t++;if(!this.suppressValidationErr&&!i.isName(n))throw Error(`Invalid element name: "${n}"`);t=a(e,t);let r="";if("E"===e[t]&&s(e,"MPTY",t))t+=4;else if("A"===e[t]&&s(e,"NY",t))t+=2;else if("("===e[t]){for(t++;t<e.length&&")"!==e[t];)r+=e[t],t++;if(")"!==e[t])throw Error("Unterminated content model")}else if(!this.suppressValidationErr)throw Error(`Invalid Element Expression, found "${e[t]}"`);return{elementName:n,contentModel:r.trim(),index:t}}readAttlistExp(e,t){t=a(e,t);let n="";for(;t<e.length&&!/\s/.test(e[t]);)n+=e[t],t++;o(n),t=a(e,t);let i="";for(;t<e.length&&!/\s/.test(e[t]);)i+=e[t],t++;if(!o(i))throw Error(`Invalid attribute name: "${i}"`);t=a(e,t);let r="";if("NOTATION"===e.substring(t,t+8).toUpperCase()){if(r="NOTATION",t+=8,t=a(e,t),"("!==e[t])throw Error(`Expected '(', found "${e[t]}"`);t++;let n=[];for(;t<e.length&&")"!==e[t];){let i="";for(;t<e.length&&"|"!==e[t]&&")"!==e[t];)i+=e[t],t++;if(!o(i=i.trim()))throw Error(`Invalid notation name: "${i}"`);n.push(i),"|"===e[t]&&(t=a(e,++t))}if(")"!==e[t])throw Error("Unterminated list of notations");t++,r+=" ("+n.join("|")+")"}else{for(;t<e.length&&!/\s/.test(e[t]);)r+=e[t],t++;let n=["CDATA","ID","IDREF","IDREFS","ENTITY","ENTITIES","NMTOKEN","NMTOKENS"];if(!this.suppressValidationErr&&!n.includes(r.toUpperCase()))throw Error(`Invalid attribute type: "${r}"`)}t=a(e,t);let s="";return"#REQUIRED"===e.substring(t,t+8).toUpperCase()?(s="#REQUIRED",t+=8):"#IMPLIED"===e.substring(t,t+7).toUpperCase()?(s="#IMPLIED",t+=7):[t,s]=this.readIdentifierVal(e,t,"ATTLIST"),{elementName:n,attributeName:i,attributeType:r,defaultValue:s,index:t}}}let a=(e,t)=>{for(;t<e.length&&/\s/.test(e[t]);)t++;return t};function s(e,t,n){for(let i=0;i<t.length;i++)if(t[i]!==e[n+i+1])return!1;return!0}function o(e){if(i.isName(e))return e;throw Error(`Invalid entity name ${e}`)}e.exports=r},66745:function(e,t,n){let{DANGEROUS_PROPERTY_NAMES:i,criticalProperties:r}=n(17849),a=e=>i.includes(e)?"__"+e:e,s={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,onDangerousProperty:a};function o(e,t){if("string"!=typeof e)return;let n=e.toLowerCase();if(i.some(e=>n===e.toLowerCase())||r.some(e=>n===e.toLowerCase()))throw Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`)}function l(e){return"boolean"==typeof e?{enabled:e,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1e3,maxExpandedLength:1e5,allowedTags:null,tagFilter:null}:"object"==typeof e&&null!==e?{enabled:!1!==e.enabled,maxEntitySize:Math.max(1,e.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,e.maxExpansionDepth??1e4),maxTotalExpansions:Math.max(1,e.maxTotalExpansions??1/0),maxExpandedLength:Math.max(1,e.maxExpandedLength??1e5),maxEntityCount:Math.max(1,e.maxEntityCount??1e3),allowedTags:e.allowedTags??null,tagFilter:e.tagFilter??null}:l(!0)}let u=function(e){let t=Object.assign({},s,e);for(let{value:e,name:n}of[{value:t.attributeNamePrefix,name:"attributeNamePrefix"},{value:t.attributesGroupName,name:"attributesGroupName"},{value:t.textNodeName,name:"textNodeName"},{value:t.cdataPropName,name:"cdataPropName"},{value:t.commentPropName,name:"commentPropName"}])e&&o(e,n);return null===t.onDangerousProperty&&(t.onDangerousProperty=a),t.processEntities=l(t.processEntities),t};t.buildOptions=u,t.defaultOptions=s},81078:function(e,t,n){"use strict";let i=n(17849),r=n(36311),a=n(74780),s=n(14153),o=n(32694);class l{constructor(e){if(this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"\xa2"},pound:{regex:/&(pound|#163);/g,val:"\xa3"},yen:{regex:/&(yen|#165);/g,val:"\xa5"},euro:{regex:/&(euro|#8364);/g,val:"â¬"},copyright:{regex:/&(copy|#169);/g,val:"\xa9"},reg:{regex:/&(reg|#174);/g,val:"\xae"},inr:{regex:/&(inr|#8377);/g,val:"â¹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(e,t)=>w(t,10,"&#")},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(e,t)=>w(t,16,"&#x")}},this.addExternalEntities=u,this.parseXml=p,this.parseTextData=c,this.resolveNameSpace=d,this.buildAttributesMap=f,this.isItStopNode=y,this.replaceEntitiesValue=g,this.readStopNodeData=C,this.saveTextToParentTag=v,this.addChild=m,this.ignoreAttributesFn=o(this.options.ignoreAttributes),this.entityExpansionCount=0,this.currentExpandedLength=0,this.options.stopNodes&&this.options.stopNodes.length>0){this.stopNodesExact=new Set,this.stopNodesWildcard=new Set;for(let e=0;e<this.options.stopNodes.length;e++){let t=this.options.stopNodes[e];"string"==typeof t&&(t.startsWith("*.")?this.stopNodesWildcard.add(t.substring(2)):this.stopNodesExact.add(t))}}}}function u(e){let t=Object.keys(e);for(let n=0;n<t.length;n++){let i=t[n],r=i.replace(/[.\-+*:]/g,"\\.");this.lastEntities[i]={regex:RegExp("&"+r+";","g"),val:e[i]}}}function c(e,t,n,i,r,a,s){if(void 0!==e&&(this.options.trimValues&&!i&&(e=e.trim()),e.length>0)){s||(e=this.replaceEntitiesValue(e,t,n));let i=this.options.tagValueProcessor(t,e,n,r,a);return null==i?e:typeof i!=typeof e||i!==e?i:this.options.trimValues?E(e,this.options.parseTagValue,this.options.numberParseOptions):e.trim()===e?E(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function d(e){if(this.options.removeNSPrefix){let t=e.split(":"),n="/"===e.charAt(0)?"/":"";if("xmlns"===t[0])return"";2===t.length&&(e=n+t[1])}return e}let h=RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function f(e,t,n){if(!0!==this.options.ignoreAttributes&&"string"==typeof e){let r=i.getAllMatches(e,h),a=r.length,s={};for(let e=0;e<a;e++){let i=this.resolveNameSpace(r[e][1]);if(this.ignoreAttributesFn(i,t))continue;let a=r[e][4],o=this.options.attributeNamePrefix+i;if(i.length){if(this.options.transformAttributeName&&(o=this.options.transformAttributeName(o)),o=T(o,this.options),void 0!==a){this.options.trimValues&&(a=a.trim()),a=this.replaceEntitiesValue(a,n,t);let e=this.options.attributeValueProcessor(i,a,t);null==e?s[o]=a:typeof e!=typeof a||e!==a?s[o]=e:s[o]=E(a,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(s[o]=!0)}}if(Object.keys(s).length){if(this.options.attributesGroupName){let e={};return e[this.options.attributesGroupName]=s,e}return s}}}let p=function(e){e=e.replace(/\r\n?/g,"\n");let t=new r("!xml"),n=t,i="",s="";this.entityExpansionCount=0,this.currentExpandedLength=0;let o=new a(this.options.processEntities);for(let a=0;a<e.length;a++)if("<"===e[a]){if("/"===e[a+1]){let t=b(e,">",a,"Closing Tag is not closed."),r=e.substring(a+2,t).trim();if(this.options.removeNSPrefix){let e=r.indexOf(":");-1!==e&&(r=r.substr(e+1))}this.options.transformTagName&&(r=this.options.transformTagName(r)),n&&(i=this.saveTextToParentTag(i,n,s));let o=s.substring(s.lastIndexOf(".")+1);if(r&&-1!==this.options.unpairedTags.indexOf(r))throw Error(`Unpaired tag can not be used as closing tag: </${r}>`);let l=0;o&&-1!==this.options.unpairedTags.indexOf(o)?(l=s.lastIndexOf(".",s.lastIndexOf(".")-1),this.tagsNodeStack.pop()):l=s.lastIndexOf("."),s=s.substring(0,l),n=this.tagsNodeStack.pop(),i="",a=t}else if("?"===e[a+1]){let t=x(e,a,!1,"?>");if(!t)throw Error("Pi Tag is not closed.");if(i=this.saveTextToParentTag(i,n,s),this.options.ignoreDeclaration&&"?xml"===t.tagName||this.options.ignorePiTags);else{let e=new r(t.tagName);e.add(this.options.textNodeName,""),t.tagName!==t.tagExp&&t.attrExpPresent&&(e[":@"]=this.buildAttributesMap(t.tagExp,s,t.tagName)),this.addChild(n,e,s,a)}a=t.closeIndex+1}else if("!--"===e.substr(a+1,3)){let t=b(e,"-->",a+4,"Comment is not closed.");if(this.options.commentPropName){let r=e.substring(a+4,t-2);i=this.saveTextToParentTag(i,n,s),n.add(this.options.commentPropName,[{[this.options.textNodeName]:r}])}a=t}
1else if("!D"===e.substr(a+1,2)){let t=o.readDocType(e,a);this.docTypeEntities=t.entities,a=t.i}else if("!["===e.substr(a+1,2)){let t=b(e,"]]>",a,"CDATA is not closed.")-2,r=e.substring(a+9,t);i=this.saveTextToParentTag(i,n,s);let o=this.parseTextData(r,n.tagname,s,!0,!1,!0,!0);void 0==o&&(o=""),this.options.cdataPropName?n.add(this.options.cdataPropName,[{[this.options.textNodeName]:r}]):n.add(this.options.textNodeName,o),a=t+2}else{let o=x(e,a,this.options.removeNSPrefix),l=o.tagName,u=o.rawTagName,c=o.tagExp,d=o.attrExpPresent,h=o.closeIndex;if(this.options.transformTagName){let e=this.options.transformTagName(l);c===l&&(c=e),l=e}if(this.options.strictReservedNames&&(l===this.options.commentPropName||l===this.options.cdataPropName||l===this.options.textNodeName||l===this.options.attributesGroupName))throw Error(`Invalid tag name: ${l}`);n&&i&&"!xml"!==n.tagname&&(i=this.saveTextToParentTag(i,n,s,!1));let f=n;f&&-1!==this.options.unpairedTags.indexOf(f.tagname)&&(n=this.tagsNodeStack.pop(),s=s.substring(0,s.lastIndexOf("."))),l!==t.tagname&&(s+=s?"."+l:l);let p=a;if(this.isItStopNode(this.stopNodesExact,this.stopNodesWildcard,s,l)){let t="";if(c.length>0&&c.lastIndexOf("/")===c.length-1)"/"===l[l.length-1]?(l=l.substr(0,l.length-1),s=s.substr(0,s.length-1),c=l):c=c.substr(0,c.length-1),a=o.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(l))a=o.closeIndex;else{let n=this.readStopNodeData(e,u,h+1);if(!n)throw Error(`Unexpected end of ${u}`);a=n.i,t=n.tagContent}let i=new r(l);l!==c&&d&&(i[":@"]=this.buildAttributesMap(c,s,l)),t&&(t=this.parseTextData(t,l,s,!0,d,!0,!0)),s=s.substr(0,s.lastIndexOf(".")),i.add(this.options.textNodeName,t),this.addChild(n,i,s,p)}else{if(c.length>0&&c.lastIndexOf("/")===c.length-1){if("/"===l[l.length-1]?(l=l.substr(0,l.length-1),s=s.substr(0,s.length-1),c=l):c=c.substr(0,c.length-1),this.options.transformTagName){let e=this.options.transformTagName(l);c===l&&(c=e),l=e}let e=new r(l);l!==c&&d&&(e[":@"]=this.buildAttributesMap(c,s,l)),this.addChild(n,e,s,p),s=s.substr(0,s.lastIndexOf("."))}else if(-1!==this.options.unpairedTags.indexOf(l)){let e=new r(l);l!==c&&d&&(e[":@"]=this.buildAttributesMap(c,s)),this.addChild(n,e,s,p),s=s.substr(0,s.lastIndexOf(".")),a=o.closeIndex;continue}else{let e=new r(l);if(this.tagsNodeStack.length>this.options.maxNestedTags)throw Error("Maximum nested tags exceeded");this.tagsNodeStack.push(n),l!==c&&d&&(e[":@"]=this.buildAttributesMap(c,s,l)),this.addChild(n,e,s),n=e}i="",a=h}}}else i+=e[a];return t.child};function m(e,t,n,i){this.options.captureMetaData||(i=void 0);let r=this.options.updateTag(t.tagname,n,t[":@"]);!1===r||("string"==typeof r&&(t.tagname=r),e.addChild(t,i))}let g=function(e,t,n){if(-1===e.indexOf("&"))return e;let i=this.options.processEntities;if(!i.enabled||i.allowedTags&&!i.allowedTags.includes(t)||i.tagFilter&&!i.tagFilter(t,n))return e;for(let t in this.docTypeEntities){let n=this.docTypeEntities[t],r=e.match(n.regx);if(r){if(this.entityExpansionCount+=r.length,i.maxTotalExpansions&&this.entityExpansionCount>i.maxTotalExpansions)throw Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${i.maxTotalExpansions}`);let t=e.length;if(e=e.replace(n.regx,n.val),i.maxExpandedLength&&(this.currentExpandedLength+=e.length-t,this.currentExpandedLength>i.maxExpandedLength))throw Error(`Total expanded content size exceeded: ${this.currentExpandedLength} > ${i.maxExpandedLength}`)}}if(-1===e.indexOf("&"))return e;for(let t of Object.keys(this.lastEntities)){let n=this.lastEntities[t],r=e.match(n.regex);if(r&&(this.entityExpansionCount+=r.length,i.maxTotalExpansions&&this.entityExpansionCount>i.maxTotalExpansions))throw Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${i.maxTotalExpansions}`);e=e.replace(n.regex,n.val)}if(-1===e.indexOf("&"))return e;if(this.options.htmlEntities)for(let t of Object.keys(this.htmlEntities)){let n=this.htmlEntities[t],r=e.match(n.regex);if(r&&(this.entityExpansionCount+=r.length,i.maxTotalExpansions&&this.entityExpansionCount>i.maxTotalExpansions))throw Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${i.maxTotalExpansions}`);e=e.replace(n.regex,n.val)}return e=e.replace(this.ampEntity.regex,this.ampEntity.val)};function v(e,t,n,i){return e&&(void 0===i&&(i=0===t.child.length),void 0!==(e=this.parseTextData(e,t.tagname,n,!1,!!t[":@"]&&0!==Object.keys(t[":@"]).length,i))&&""!==e&&t.add(this.options.textNodeName,e),e=""),e}function y(e,t,n,i){return!!(t&&t.has(i)||e&&e.has(n))}function _(e,t,n=">"){let i;let r="";for(let a=t;a<e.length;a++){let t=e[a];if(i)t===i&&(i="");else if('"'===t||"'"===t)i=t;else if(t===n[0]){if(!n[1]||e[a+1]===n[1])return{data:r,index:a}}else" "===t&&(t=" ");r+=t}}function b(e,t,n,i){let r=e.indexOf(t,n);if(-1!==r)return r+t.length-1;throw Error(i)}function x(e,t,n,i=">"){let r=_(e,t+1,i);if(!r)return;let a=r.data,s=r.index,o=a.search(/\s/),l=a,u=!0;-1!==o&&(l=a.substring(0,o),a=a.substring(o+1).trimStart());let c=l;if(n){let e=l.indexOf(":");-1!==e&&(u=(l=l.substr(e+1))!==r.data.substr(e+1))}return{tagName:l,tagExp:a,closeIndex:s,attrExpPresent:u,rawTagName:c}}
1function C(e,t,n){let i=n,r=1;for(;n<e.length;n++)if("<"===e[n]){if("/"===e[n+1]){let a=b(e,">",n,`${t} is not closed`);if(e.substring(n+2,a).trim()===t&&0==--r)return{tagContent:e.substring(i,n),i:a};n=a}else if("?"===e[n+1])n=b(e,"?>",n+1,"StopNode is not closed.");else if("!--"===e.substr(n+1,3))n=b(e,"-->",n+3,"StopNode is not closed.");else if("!["===e.substr(n+1,2))n=b(e,"]]>",n,"StopNode is not closed.")-2;else{let i=x(e,n,">");i&&((i&&i.tagName)===t&&"/"!==i.tagExp[i.tagExp.length-1]&&r++,n=i.closeIndex)}}}function E(e,t,n){if(t&&"string"==typeof e){let t=e.trim();return"true"===t||"false"!==t&&s(e,n)}return i.isExist(e)?e:""}function w(e,t,n){let i=Number.parseInt(e,t);return i>=0&&i<=1114111?String.fromCodePoint(i):n+e+";"}function T(e,t){if(i.criticalProperties.includes(e))throw Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);return i.DANGEROUS_PROPERTY_NAMES.includes(e)?t.onDangerousProperty(e):e}e.exports=l},58844:function(e,t,n){let{buildOptions:i}=n(66745),r=n(81078),{prettify:a}=n(16997),s=n(78501);class o{constructor(e){this.externalEntities={},this.options=i(e)}parse(e,t){if("string"==typeof e);else if(e.toString)e=e.toString();else throw Error("XML data is accepted in String or Bytes[] form.");if(t){!0===t&&(t={});let n=s.validate(e,t);if(!0!==n)throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`)}let n=new r(this.options);n.addExternalEntities(this.externalEntities);let i=n.parseXml(e);return this.options.preserveOrder||void 0===i?i:a(i,this.options)}addEntity(e,t){if(-1!==t.indexOf("&"))throw Error("Entity value can't have '&'");if(-1!==e.indexOf("&")||-1!==e.indexOf(";"))throw Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");if("&"===t)throw Error("An entity with value '&' is not permitted");this.externalEntities[e]=t}}e.exports=o},16997:function(e,t){"use strict";function n(e,t){return i(e,t)}function i(e,t,n){let o;let l={};for(let u=0;u<e.length;u++){let c=e[u],d=r(c),h="";if(h=void 0===n?d:n+"."+d,d===t.textNodeName)void 0===o?o=c[d]:o+=""+c[d];else if(void 0===d)continue;else if(c[d]){let e=i(c[d],t,h),n=s(e,t);c[":@"]?a(e,c[":@"],h,t):1!==Object.keys(e).length||void 0===e[t.textNodeName]||t.alwaysCreateTextNode?0===Object.keys(e).length&&(t.alwaysCreateTextNode?e[t.textNodeName]="":e=""):e=e[t.textNodeName],void 0!==l[d]&&l.hasOwnProperty(d)?(Array.isArray(l[d])||(l[d]=[l[d]]),l[d].push(e)):t.isArray(d,h,n)?l[d]=[e]:l[d]=e}}return"string"==typeof o?o.length>0&&(l[t.textNodeName]=o):void 0!==o&&(l[t.textNodeName]=o),l}function r(e){let t=Object.keys(e);for(let e=0;e<t.length;e++){let n=t[e];if(":@"!==n)return n}}function a(e,t,n,i){if(t){let r=Object.keys(t),a=r.length;for(let s=0;s<a;s++){let a=r[s];i.isArray(a,n+"."+a,!0,!0)?e[a]=[t[a]]:e[a]=t[a]}}}function s(e,t){let{textNodeName:n}=t,i=Object.keys(e).length;return 0===i||1===i&&(!!e[n]||"boolean"==typeof e[n]||0===e[n])}t.prettify=n},36311:function(e){"use strict";class t{constructor(e){this.tagname=e,this.child=[],this[":@"]={}}add(e,t){"__proto__"===e&&(e="#__proto__"),this.child.push({[e]:t})}addChild(e){"__proto__"===e.tagname&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child})}}e.exports=t},4149:function(e,t,n){var i;!function(t){"use strict";var r=function(){},a=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.msRequestAnimationFrame||function(e){return setTimeout(e,16)};function s(){var e=this;e.reads=[],e.writes=[],e.raf=a.bind(t),r("initialized",e)}function o(e){e.scheduled||(e.scheduled=!0,e.raf(l.bind(null,e)),r("flush scheduled"))}function l(e){r("flush");var t,n=e.writes,i=e.reads;try{r("flushing reads",i.length),e.runTasks(i),r("flushing writes",n.length),e.runTasks(n)}catch(e){t=e}if(e.scheduled=!1,(i.length||n.length)&&o(e),t){if(r("task errored",t.message),e.catch)e.catch(t);else throw t}}function u(e,t){var n=e.indexOf(t);return!!~n&&!!e.splice(n,1)}function c(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}s.prototype={constructor:s,runTasks:function(e){var t;for(r("run tasks");t=e.shift();)t()},measure:function(e,t){r("measure");var n=t?e.bind(t):e;return this.reads.push(n),o(this),n},mutate:function(e,t){r("mutate");var n=t?e.bind(t):e;return this.writes.push(n),o(this),n},clear:function(e){return r("clear",e),u(this.reads,e)||u(this.writes,e)},extend:function(e){if(r("extend",e),"object"!=typeof e)throw Error("expected object");var t=Object.create(this);return c(t,e),t.fastdom=this,t.initialize&&t.initialize(),t},catch:null};var d=t.fastdom=t.fastdom||new s;void 0!==(i=(function(){return d}).call(d,n,d,e))&&(e.exports=i)}("undefined"!=typeof window?window:void 0!==this?this:globalThis)},68806:function(e,t,n){"use strict";n.d(t,{ZP:function(){return ed},Ps:function(){return ea}});
1var i,r,a=n(97582);function s(e){return"object"==typeof e&&null!==e}function o(e,t){if(!e)throw Error(null!=t?t:"Unexpected invariant triggered.")}let l=/\r\n|[\n\r]/g;function u(e,t){let n=0,i=1;for(let r of e.body.matchAll(l)){if("number"==typeof r.index||o(!1),r.index>=t)break;n=r.index+r[0].length,i+=1}return{line:i,column:t+1-n}}function c(e){return d(e.source,u(e.source,e.start))}function d(e,t){let n=e.locationOffset.column-1,i="".padStart(n)+e.body,r=t.line-1,a=e.locationOffset.line-1,s=t.line+a,o=1===t.line?n:0,l=t.column+o,u=`${e.name}:${s}:${l} 2`,c=i.split(/\r\n|[\n\r]/g),d=c[r];if(d.length>120){let e=Math.floor(l/80),t=l%80,n=[];for(let e=0;e<d.length;e+=80)n.push(d.slice(e,e+80));return u+h([[`${s} |`,n[0]],...n.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(t)],["|",n[e+1]]])}return u+h([[`${s-1} |`,c[r-1]],[`${s} |`,d],["|","^".padStart(l)],[`${s+1} |`,c[r+1]]])}function h(e){let t=e.filter(([e,t])=>void 0!==t),n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?" "+t:"")).join("\n")}function f(e){let t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}
2class p extends Error{constructor(e,...t){var n,i,r;let{nodes:a,source:o,positions:l,path:c,originalError:d,extensions:h}=f(t);super(e),this.name="GraphQLError",this.path=null!=c?c:void 0,this.originalError=null!=d?d:void 0,this.nodes=m(Array.isArray(a)?a:a?[a]:void 0);let g=m(null===(n=this.nodes)||void 0===n?void 0:n.map(e=>e.loc).filter(e=>null!=e));this.source=null!=o?o:null==g?void 0:null===(i=g[0])||void 0===i?void 0:i.source,this.positions=null!=l?l:null==g?void 0:g.map(e=>e.start),this.locations=l&&o?l.map(e=>u(o,e)):null==g?void 0:g.map(e=>u(e.source,e.start));let v=s(null==d?void 0:d.extensions)?null==d?void 0:d.extensions:void 0;this.extensions=null!==(r=null!=h?h:v)&&void 0!==r?r:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=d&&d.stack?Object.defineProperty(this,"stack",{value:d.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,p):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(let t of this.nodes)t.loc&&(e+="\n\n"+c(t.loc));else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+d(this.source,t);return e}toJSON(){let e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function m(e){return void 0===e||0===e.length?void 0:e}function g(e,t,n){return new p(`Syntax Error: ${n}`,{source:e,positions:[t]})}var v=n(72380);!function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(i||(i={}));var y=n(97359),_=n(87392),b=n(68297);!function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(r||(r={}));class x{constructor(e){let t=new v.WU(r.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==r.EOF)do if(e.next)e=e.next;else{let t=M(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===r.COMMENT);return e}}function C(e){return e===r.BANG||e===r.DOLLAR||e===r.AMP||e===r.PAREN_L||e===r.PAREN_R||e===r.SPREAD||e===r.COLON||e===r.EQUALS||e===r.AT||e===r.BRACKET_L||e===r.BRACKET_R||e===r.BRACE_L||e===r.PIPE||e===r.BRACE_R}function E(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function w(e,t){return T(e.charCodeAt(t))&&S(e.charCodeAt(t+1))}function T(e){return e>=55296&&e<=56319}function S(e){return e>=56320&&e<=57343}function L(e,t){let n=e.source.body.codePointAt(t);if(void 0===n)return r.EOF;if(n>=32&&n<=126){let e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function P(e,t,n,i,r){let a=e.line,s=1+n-e.lineStart;return new v.WU(t,n,i,a,s,r)}function M(e,t){let n=e.source.body,i=n.length,a=t;for(;a<i;){let t=n.charCodeAt(a);switch(t){case 65279:case 9:case 32:case 44:++a;continue;case 10:++a,++e.line,e.lineStart=a;continue;case 13:10===n.charCodeAt(a+1)?a+=2:++a,++e.line,e.lineStart=a;continue;case 35:return A(e,a);case 33:return P(e,r.BANG,a,a+1);case 36:return P(e,r.DOLLAR,a,a+1);case 38:return P(e,r.AMP,a,a+1);case 40:return P(e,r.PAREN_L,a,a+1);case 41:return P(e,r.PAREN_R,a,a+1);case 46:if(46===n.charCodeAt(a+1)&&46===n.charCodeAt(a+2))return P(e,r.SPREAD,a,a+3);break;case 58:return P(e,r.COLON,a,a+1);case 61:return P(e,r.EQUALS,a,a+1);case 64:return P(e,r.AT,a,a+1);case 91:return P(e,r.BRACKET_L,a,a+1);case 93:return P(e,r.BRACKET_R,a,a+1);case 123:return P(e,r.BRACE_L,a,a+1);case 124:return P(e,r.PIPE,a,a+1);case 125:return P(e,r.BRACE_R,a,a+1);case 34:if(34===n.charCodeAt(a+1)&&34===n.charCodeAt(a+2))return U(e,a);return k(e,a)}if((0,b.X1)(t)||45===t)return I(e,a,t);if((0,b.LQ)(t))return V(e,a);throw g(e.source,a,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":E(t)||w(n,a)?`Unexpected character: ${L(e,a)}.`:`Invalid character: ${L(e,a)}.`)}return P(e,r.EOF,i,i)}function A(e,t){let n=e.source.body,i=n.length,a=t+1;for(;a<i;){let e=n.charCodeAt(a);if(10===e||13===e)break;if(E(e))++a;else if(w(n,a))a+=2;else break}return P(e,r.COMMENT,t,a,n.slice(t+1,a))}function I(e,t,n){let i=e.source.body,a=t,s=n,o=!1;if(45===s&&(s=i.charCodeAt(++a)),48===s){if(s=i.charCodeAt(++a),(0,b.X1)(s))throw g(e.source,a,`Invalid number, unexpected digit after 0: ${L(e,a)}.`)}else a=R(e,a,s),s=i.charCodeAt(a);if(46===s&&(o=!0,s=i.charCodeAt(++a),a=R(e,a,s),s=i.charCodeAt(a)),(69===s||101===s)&&(o=!0,(43===(s=i.charCodeAt(++a))||45===s)&&(s=i.charCodeAt(++a)),a=R(e,a,s),s=i.charCodeAt(a)),46===s||(0,b.LQ)(s))throw g(e.source,a,`Invalid number, expected digit but got: ${L(e,a)}.`);return P(e,o?r.FLOAT:r.INT,t,a,i.slice(t,a))}function R(e,t,n){if(!(0,b.X1)(n))throw g(e.source,t,`Invalid number, expected digit but got: ${L(e,t)}.`);let i=e.source.body,r=t+1;for(;(0,b.X1)(i.charCodeAt(r));)++r;return r}function k(e,t){let n=e.source.body,i=n.length,a=t+1,s=a,o="";for(;a<i;){let i=n.charCodeAt(a);if(34===i)return o+=n.slice(s,a),P(e,r.STRING,t,a+1,o);if(92===i){o+=n.slice(s,a);let t=117===n.charCodeAt(a+1)?123===n.charCodeAt(a+2)?D(e,a):N(e,a):j(e,a);o+=t.value,a+=t.size,s=a;continue}if(10===i||13===i)break;if(E(i))++a;else if(w(n,a))a+=2;else throw g(e.source,a,`Invalid character within String: ${L(e,a)}.`)}throw g(e.source,a,"Unterminated string.")}function D(e,t){let n=e.source.body,i=0,r=3;for(;r<12;){let e=n.charCodeAt(t+r++);if(125===e){if(r<5||!E(i))break;return{value:String.fromCodePoint(i),size:r}}if((i=i<<4|O(e))<0)break}throw g(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+r)}".`)}function N(e,t){let n=e.source.body,i=F(n,t+2);if(E(i))return{value:String.fromCodePoint(i),size:6};if(T(i)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){let e=F(n,t+8);if(S(e))return{value:String.fromCodePoint(i,e),size:12}}throw g(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function F(e,t){return O(e.charCodeAt(t))<<12|O(e.charCodeAt(t+1))<<8|O(e.charCodeAt(t+2))<<4|O(e.charCodeAt(t+3))}function O(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function j(e,t){let n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw g(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function U(e,t){let n=e.source.body,i=n.length,a=e.lineStart,s=t+3,o=s,l="",u=[];for(;s<i;){let i=n.charCodeAt(s);if(34===i&&34===n.charCodeAt(s+1)&&34===n.charCodeAt(s+2)){l+=n.slice(o,s),u.push(l);let i=P(e,r.BLOCK_STRING,t,s+3,(0,_.wv)(u).join("\n"));return e.line+=u.length-1,e.lineStart=a,i}if(92===i&&34===n.charCodeAt(s+1)&&34===n.charCodeAt(s+2)&&34===n.charCodeAt(s+3)){l+=n.slice(o,s),o=s+1,s+=4;continue}if(10===i||13===i){l+=n.slice(o,s),u.push(l),13===i&&10===n.charCodeAt(s+1)?s+=2:++s,l="",o=s,a=s;continue}if(E(i))++s;else if(w(n,s))s+=2;else throw g(e.source,s,`Invalid character within String: ${L(e,s)}.`)}throw g(e.source,s,"Unterminated string.")}function V(e,t){let n=e.source.body,i=n.length,a=t+1;for(;a<i;){let e=n.charCodeAt(a);if((0,b.HQ)(e))++a;else break}return P(e,r.NAME,t,a,n.slice(t,a))}var B=n(37826),H=n(25821);let G=globalThis.process?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;
2if("object"==typeof e&&null!==e){var n;let i=t.prototype[Symbol.toStringTag];if(i===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){let t=(0,H.X)(e);throw Error(`Cannot use ${i} "${t}" from another module or realm. 3 4Ensure that there is only one instance of "graphql" in the node_modules 5directory. If different versions of "graphql" are the dependencies of other 6relied on modules, use "resolutions" to ensure only one version is installed. 7 8https://yarnpkg.com/en/docs/selective-version-resolutions 9 10Duplicate "graphql" modules cannot be used at the same time since different 11versions may have different capabilities and behavior. The data from one 12version used in the function from another could produce confusing and 13spurious results.`)}}return!1};class z{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||(0,B.a)(!1,`Body must be a string. Received: ${(0,H.X)(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||(0,B.a)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,B.a)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function q(e){return G(e,z)}function W(e,t){let n=new $(e,t),i=n.parseDocument();return Object.defineProperty(i,"tokenCount",{enumerable:!1,value:n.tokenCount}),i}class ${constructor(e,t={}){let n=q(e)?e:new z(e);this._lexer=new x(n),this._options=t,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let e=this.expectToken(r.NAME);return this.node(e,{kind:y.h.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:y.h.DOCUMENT,definitions:this.many(r.SOF,this.parseDefinition,r.EOF)})}parseDefinition(){if(this.peek(r.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===r.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw g(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){let e;let t=this._lexer.token;if(this.peek(r.BRACE_L))return this.node(t,{kind:y.h.OPERATION_DEFINITION,operation:v.ku.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseOperationType();return this.peek(r.NAME)&&(e=this.parseName()),this.node(t,{kind:y.h.OPERATION_DEFINITION,operation:n,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(r.NAME);switch(e.value){case"query":return v.ku.QUERY;case"mutation":return v.ku.MUTATION;case"subscription":return v.ku.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(r.PAREN_L,this.parseVariableDefinition,r.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:y.h.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(r.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(r.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(r.DOLLAR),this.node(e,{kind:y.h.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:y.h.SELECTION_SET,selections:this.many(r.BRACE_L,this.parseSelection,r.BRACE_R)})}parseSelection(){return this.peek(r.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,t;let n=this._lexer.token,i=this.parseName();return this.expectOptionalToken(r.COLON)?(e=i,t=this.parseName()):t=i,this.node(n,{kind:y.h.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(r.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(r.PAREN_L,t,r.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,n=this.parseName();return this.expectToken(r.COLON),this.node(t,{kind:y.h.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(r.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(r.NAME)?this.node(e,{kind:y.h.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:y.h.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token;return(this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables)?this.node(e,{kind:y.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:y.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case r.BRACKET_L:return this.parseList(e);case r.BRACE_L:return this.parseObject(e);case r.INT:return this.advanceLexer(),this.node(t,{kind:y.h.INT,value:t.value});case r.FLOAT:return this.advanceLexer(),this.node(t,{kind:y.h.FLOAT,value:t.value});case r.STRING:case r.BLOCK_STRING:return this.parseStringLiteral();case r.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:y.h.BOOLEAN,value:!0});case"false":return this.node(t,{kind:y.h.BOOLEAN,value:!1});case"null":return this.node(t,{kind:y.h.NULL});default:return this.node(t,{kind:y.h.ENUM,value:t.value})}case r.DOLLAR:if(e){if(this.expectToken(r.DOLLAR),this._lexer.token.kind===r.NAME){let e=this._lexer.token.value;throw g(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:y.h.STRING,value:e.value,block:e.kind===r.BLOCK_STRING})}parseList(e){let t=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:y.h.LIST,values:this.any(r.BRACKET_L,t,r.BRACKET_R)})}parseObject(e){let t=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:y.h.OBJECT,fields:this.any(r.BRACE_L,t,r.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,n=this.parseName();return this.expectToken(r.COLON),this.node(t,{kind:y.h.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(r.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(r.AT),this.node(t,{kind:y.h.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e;let t=this._lexer.token;if(this.expectOptionalToken(r.BRACKET_L)){let n=this.parseTypeReference();this.expectToken(r.BRACKET_R),e=this.node(t,{kind:y.h.LIST_TYPE,type:n})}else e=this.parseNamedType();return this.expectOptionalToken(r.BANG)?this.node(t,{kind:y.h.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:y.h.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(r.STRING)||this.peek(r.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");let n=this.parseConstDirectives(),i=this.many(r.BRACE_L,this.parseOperationTypeDefinition,r.BRACE_R);return this.node(e,{kind:y.h.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:i})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(r.COLON);let n=this.parseNamedType();return this.node(e,{kind:y.h.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let n=this.parseName(),i=this.parseConstDirectives();return this.node(e,{kind:y.h.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:i})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:y.h.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(r.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(r.BRACE_L,this.parseFieldDefinition,r.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(r.COLON);let a=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(e,{kind:y.h.FIELD_DEFINITION,description:t,name:n,arguments:i,type:a,directives:s})}parseArgumentDefs(){return this.optionalMany(r.PAREN_L,this.parseInputValueDef,r.PAREN_R)}parseInputValueDef(){let e;let t=this._lexer.token,n=this.parseDescription(),i=this.parseName();this.expectToken(r.COLON);let a=this.parseTypeReference();this.expectOptionalToken(r.EQUALS)&&(e=this.parseConstValueLiteral());let s=this.parseConstDirectives();return this.node(t,{kind:y.h.INPUT_VALUE_DEFINITION,description:n,name:i,type:a,defaultValue:e,directives:s})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:y.h.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:a})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let n=this.parseName(),i=this.parseConstDirectives(),r=this.parseUnionMemberTypes();return this.node(e,{kind:y.h.UNION_TYPE_DEFINITION,description:t,name:n,directives:i,types:r})}parseUnionMemberTypes(){return this.expectOptionalToken(r.EQUALS)?this.delimitedMany(r.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let n=this.parseName(),i=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();return this.node(e,{kind:y.h.ENUM_TYPE_DEFINITION,description:t,name:n,directives:i,values:r})}parseEnumValuesDefinition(){return this.optionalMany(r.BRACE_L,this.parseEnumValueDefinition,r.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(e,{kind:y.h.ENUM_VALUE_DEFINITION,description:t,name:n,directives:i})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw g(this._lexer.source,this._lexer.token.start,`${Z(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");let n=this.parseName(),i=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();return this.node(e,{kind:y.h.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:i,fields:r})}parseInputFieldsDefinition(){return this.optionalMany(r.BRACE_L,this.parseInputValueDef,r.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===r.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let t=this.parseConstDirectives(),n=this.optionalMany(r.BRACE_L,this.parseOperationTypeDefinition,r.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:y.h.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:y.h.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:y.h.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:r})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:y.h.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:r})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:y.h.UNION_TYPE_EXTENSION,name:t,directives:n,types:i})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:y.h.ENUM_TYPE_EXTENSION,name:t,directives:n,values:i})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:y.h.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:i})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(r.AT);let n=this.parseName(),i=this.parseArgumentDefs(),a=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let s=this.parseDirectiveLocations();return this.node(e,{kind:y.h.DIRECTIVE_DEFINITION,description:t,name:n,arguments:i,repeatable:a,locations:s})}parseDirectiveLocations(){return this.delimitedMany(r.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(i,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new v.Ye(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw g(this._lexer.source,t.start,`Expected ${Y(
13e)}, found ${Z(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){let t=this._lexer.token;if(t.kind===r.NAME&&t.value===e)this.advanceLexer();else throw g(this._lexer.source,t.start,`Expected "${e}", found ${Z(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===r.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){let t=null!=e?e:this._lexer.token;return g(this._lexer.source,t.start,`Unexpected ${Z(t)}.`)}any(e,t,n){this.expectToken(e);let i=[];for(;!this.expectOptionalToken(n);)i.push(t.call(this));return i}optionalMany(e,t,n){if(this.expectOptionalToken(e)){let e=[];do e.push(t.call(this));while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);let i=[];do i.push(t.call(this));while(!this.expectOptionalToken(n));return i}delimitedMany(e,t){this.expectOptionalToken(e);let n=[];do n.push(t.call(this));while(this.expectOptionalToken(e));return n}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==r.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw g(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function Z(e){let t=e.value;return Y(e.kind)+(null!=t?` "${t}"`:"")}function Y(e){return C(e)?`"${e}"`:e}var K=new Map,X=new Map,Q=!0,J=!1;function ee(e){return e.replace(/[\s,]+/g," ").trim()}function et(e){return ee(e.source.body.substring(e.start,e.end))}function en(e){var t=new Set,n=[];return e.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var i=e.name.value,r=et(e.loc),a=X.get(i);a&&!a.has(r)?Q&&console.warn("Warning: fragment with name "+i+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):a||X.set(i,a=new Set),a.add(r),t.has(r)||(t.add(r),n.push(e))}else n.push(e)}),(0,a.pi)((0,a.pi)({},e),{definitions:n})}function ei(e){var t=new Set(e.definitions);t.forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(n){var i=e[n];i&&"object"==typeof i&&t.add(i)})});var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}function er(e){var t=ee(e);if(!K.has(t)){var n=W(e,{experimentalFragmentVariables:J,allowLegacyFragmentVariables:J});if(!n||"Document"!==n.kind)throw Error("Not a valid GraphQL document.");K.set(t,ei(en(n)))}return K.get(t)}function ea(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var i=e[0];return t.forEach(function(t,n){t&&"Document"===t.kind?i+=t.loc.source.body:i+=t,i+=e[n+1]}),er(i)}var es=ea,eo=function(){K.clear(),X.clear()},el=function(){Q=!1},eu=function(){J=!0},ec=function(){J=!1};!function(e){e.gql=es,e.resetCaches=eo,e.disableFragmentWarnings=el,e.enableExperimentalFragmentVariables=eu,e.disableExperimentalFragmentVariables=ec}(ea||(ea={})),ea.default=ea;var ed=ea},41766:function(e,t,n){var i;!function(){"use strict";var r=function(){this.init()};r.prototype={init:function(){var e=this||a;return e._counter=1e3,e._html5AudioPool=[],e.html5PoolSize=10,e._codecs={},e._howls=[],e._muted=!1,e._volume=1,e._canPlayEvent="canplaythrough",e._navigator="undefined"!=typeof window&&window.navigator?window.navigator:null,e.masterGain=null,e.noAudio=!1,e.usingWebAudio=!0,e.autoSuspend=!0,e.ctx=null,e.autoUnlock=!0,e._setup(),e},volume:function(e){var t=this||a;if(e=parseFloat(e),t.ctx||f(),void 0!==e&&e>=0&&e<=1){if(t._volume=e,t._muted)return t;t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e,a.ctx.currentTime);for(var n=0;n<t._howls.length;n++)if(!t._howls[n]._webAudio)for(var i=t._howls[n]._getSoundIds(),r=0;r<i.length;r++){var s=t._howls[n]._soundById(i[r]);s&&s._node&&(s._node.volume=s._volume*e)}return t}return t._volume},mute:function(e){var t=this||a;t.ctx||f(),t._muted=e,t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e?0:t._volume,a.ctx.currentTime);for(var n=0;n<t._howls.length;n++)if(!t._howls[n]._webAudio)for(var i=t._howls[n]._getSoundIds(),r=0;r<i.length;r++){var s=t._howls[n]._soundById(i[r]);s&&s._node&&(s._node.muted=!!e||s._muted)}return t},stop:function(){for(var e=this||a,t=0;t<e._howls.length;t++)e._howls[t].stop();return e},unload:function(){for(var e=this||a,t=e._howls.length-1;t>=0;t--)e._howls[t].unload();return e.usingWebAudio&&e.ctx&&void 0!==e.ctx.close&&(e.ctx.close(),e.ctx=null,f()),e},codecs:function(e){return(this||a)._codecs[e.replace(/^x-/,"")]},_setup:function(){var e=this||a;if(e.state=e.ctx&&e.ctx.state||"suspended",e._autoSuspend(),!e.usingWebAudio){if("undefined"!=typeof Audio)try{var t=new Audio;void 0===t.oncanplaythrough&&(e._canPlayEvent="canplay")}catch(t){e.noAudio=!0}else e.noAudio=!0}try{var t=new Audio;t.muted&&(e.noAudio=!0)}catch(e){}return e.noAudio||e._setupCodecs(),e},_setupCodecs:function(){var e=this||a,t=null;try{t="undefined"!=typeof Audio?new Audio:null}catch(t){return e}if(!t||"function"!=typeof t.canPlayType)return e;var n=t.canPlayType("audio/mpeg;").replace(/^no$/,""),i=e._navigator?e._navigator.userAgent:"",r=i.match(/OPR\/(\d+)/g),s=r&&33>parseInt(r[0].split("/")[1],10),o=-1!==i.indexOf("Safari")&&-1===i.indexOf("Chrome"),l=i.match(/Version\/(.*?) /),u=o&&l&&15>parseInt(l[1],10);return e._codecs={mp3:!!(!s&&(n||t.canPlayType("audio/mp3;").replace(/^no$/,""))),mpeg:!!n,opus:!!t.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(t.canPlayType('audio/wav; codecs="1"')||t.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!t.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!t.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(t.canPlayType("audio/x-m4a;")||t.canPlayType("audio/m4a;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(t.canPlayType("audio/x-m4b;")||t.canPlayType("audio/m4b;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(t.canPlayType("audio/x-mp4;")||t.canPlayType("audio/mp4;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!(!u&&t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!!(!u&&t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!t.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(t.canPlayType("audio/x-flac;")||t.canPlayType("audio/flac;")).replace(/^no$/,"")},e},_unlockAudio:function(){var e=this||a;if(!e._audioUnlocked&&e.ctx){e._audioUnlocked=!1,e.autoUnlock=!1,e._mobileUnloaded||44100===e.ctx.sampleRate||(e._mobileUnloaded=!0,e.unload()),e._scratchBuffer=e.ctx.createBuffer(1,1,22050);var t=function(n){for(;e._html5AudioPool.length<e.html5PoolSize;)try{var i=new Audio;i._unlocked=!0,e._releaseHtml5Audio(i)}catch(t){e.noAudio=!0;break}for(var r=0;r<e._howls.length;r++)if(!e._howls[r]._webAudio)for(var a=e._howls[r]._getSoundIds(),s=0;s<a.length;s++){var o=e._howls[r]._soundById(a[s]);o&&o._node&&!o._node._unlocked&&(o._node._unlocked=!0,o._node.load())}e._autoResume();var l=e.ctx.createBufferSource();l.buffer=e._scratchBuffer,l.connect(e.ctx.destination),void 0===l.start?l.noteOn(0):l.start(0),"function"==typeof e.ctx.resume&&e.ctx.resume(),l.onended=function(){l.disconnect(0),e._audioUnlocked=!0,document.removeEventListener("touchstart",t,!0),document.removeEventListener("touchend",t,!0),document.removeEventListener("click",t,!0),document.removeEventListener("keydown",t,!0);for(var n=0;n<e._howls.length;n++)e._howls[n]._emit("unlock")}};return document.addEventListener("touchstart",t,!0),document.addEventListener("touchend",t,!0),document.addEventListener("click",t,!0),document.addEventListener("keydown",t,!0),e}},_obtainHtml5Audio:function(){var e=this||a;if(e._html5AudioPool.length)return e._html5AudioPool.pop();var t=new Audio().play();return t&&"undefined"!=typeof Promise&&(t instanceof Promise||"function"==typeof t.then)&&t.catch(function(){console.warn("HTML5 Audio pool exhausted, returning potentially locked audio object.")}),new Audio},_releaseHtml5Audio:function(e){var t=this||a;
vendor: 9,833 bytes, line 13
13return e._unlocked&&t._html5AudioPool.push(e),t},_autoSuspend:function(){var e=this;if(e.autoSuspend&&e.ctx&&void 0!==e.ctx.suspend&&a.usingWebAudio){for(var t=0;t<e._howls.length;t++)if(e._howls[t]._webAudio){for(var n=0;n<e._howls[t]._sounds.length;n++)if(!e._howls[t]._sounds[n]._paused)return e}return e._suspendTimer&&clearTimeout(e._suspendTimer),e._suspendTimer=setTimeout(function(){if(e.autoSuspend){e._suspendTimer=null,e.state="suspending";var t=function(){e.state="suspended",e._resumeAfterSuspend&&(delete e._resumeAfterSuspend,e._autoResume())};e.ctx.suspend().then(t,t)}},3e4),e}},_autoResume:function(){var e=this;if(e.ctx&&void 0!==e.ctx.resume&&a.usingWebAudio)return"running"===e.state&&"interrupted"!==e.ctx.state&&e._suspendTimer?(clearTimeout(e._suspendTimer),e._suspendTimer=null):"suspended"===e.state||"running"===e.state&&"interrupted"===e.ctx.state?(e.ctx.resume().then(function(){e.state="running";for(var t=0;t<e._howls.length;t++)e._howls[t]._emit("resume")}),e._suspendTimer&&(clearTimeout(e._suspendTimer),e._suspendTimer=null)):"suspending"===e.state&&(e._resumeAfterSuspend=!0),e}};var a=new r,s=function(e){var t=this;if(!e.src||0===e.src.length){console.error("An array of source files must be passed with any new Howl.");return}t.init(e)};s.prototype={init:function(e){var t=this;return a.ctx||f(),t._autoplay=e.autoplay||!1,t._format="string"!=typeof e.format?e.format:[e.format],t._html5=e.html5||!1,t._muted=e.mute||!1,t._loop=e.loop||!1,t._pool=e.pool||5,t._preload="boolean"!=typeof e.preload&&"metadata"!==e.preload||e.preload,t._rate=e.rate||1,t._sprite=e.sprite||{},t._src="string"!=typeof e.src?e.src:[e.src],t._volume=void 0!==e.volume?e.volume:1,t._xhr={method:e.xhr&&e.xhr.method?e.xhr.method:"GET",headers:e.xhr&&e.xhr.headers?e.xhr.headers:null,withCredentials:!!e.xhr&&!!e.xhr.withCredentials&&e.xhr.withCredentials},t._duration=0,t._state="unloaded",t._sounds=[],t._endTimers={},t._queue=[],t._playLock=!1,t._onend=e.onend?[{fn:e.onend}]:[],t._onfade=e.onfade?[{fn:e.onfade}]:[],t._onload=e.onload?[{fn:e.onload}]:[],t._onloaderror=e.onloaderror?[{fn:e.onloaderror}]:[],t._onplayerror=e.onplayerror?[{fn:e.onplayerror}]:[],t._onpause=e.onpause?[{fn:e.onpause}]:[],t._onplay=e.onplay?[{fn:e.onplay}]:[],t._onstop=e.onstop?[{fn:e.onstop}]:[],t._onmute=e.onmute?[{fn:e.onmute}]:[],t._onvolume=e.onvolume?[{fn:e.onvolume}]:[],t._onrate=e.onrate?[{fn:e.onrate}]:[],t._onseek=e.onseek?[{fn:e.onseek}]:[],t._onunlock=e.onunlock?[{fn:e.onunlock}]:[],t._onresume=[],t._webAudio=a.usingWebAudio&&!t._html5,void 0!==a.ctx&&a.ctx&&a.autoUnlock&&a._unlockAudio(),a._howls.push(t),t._autoplay&&t._queue.push({event:"play",action:function(){t.play()}}),t._preload&&"none"!==t._preload&&t.load(),t},load:function(){var e,t,n=this,i=null;if(a.noAudio){n._emit("loaderror",null,"No audio support.");return}"string"==typeof n._src&&(n._src=[n._src]);for(var r=0;r<n._src.length;r++){if(n._format&&n._format[r])e=n._format[r];else{if("string"!=typeof(t=n._src[r])){n._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}(e=/^data:audio\/([^;,]+);/i.exec(t))||(e=/\.([^.]+)$/.exec(t.split("?",1)[0])),e&&(e=e[1].toLowerCase())}if(e||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),e&&a.codecs(e)){i=n._src[r];break}}if(!i){n._emit("loaderror",null,"No codec support for selected audio sources.");return}return n._src=i,n._state="loading","https:"===window.location.protocol&&"http:"===i.slice(0,5)&&(n._html5=!0,n._webAudio=!1),new o(n),n._webAudio&&u(n),n},play:function(e,t){var n=this,i=null;if("number"==typeof e)i=e,e=null;else if("string"==typeof e&&"loaded"===n._state&&!n._sprite[e])return null;else if(void 0===e&&(e="__default",!n._playLock)){for(var r=0,s=0;s<n._sounds.length;s++)n._sounds[s]._paused&&!n._sounds[s]._ended&&(r++,i=n._sounds[s]._id);1===r?e=null:i=null}var o=i?n._soundById(i):n._inactiveSound();if(!o)return null;if(i&&!e&&(e=o._sprite||"__default"),"loaded"!==n._state){o._sprite=e,o._ended=!1;var l=o._id;return n._queue.push({event:"play",action:function(){n.play(l)}}),l}if(i&&!o._paused)return t||n._loadQueue("play"),o._id;n._webAudio&&a._autoResume();var u=Math.max(0,o._seek>0?o._seek:n._sprite[e][0]/1e3),c=Math.max(0,(n._sprite[e][0]+n._sprite[e][1])/1e3-u),d=1e3*c/Math.abs(o._rate),h=n._sprite[e][0]/1e3,f=(n._sprite[e][0]+n._sprite[e][1])/1e3;o._sprite=e,o._ended=!1;var p=function(){o._paused=!1,o._seek=u,o._start=h,o._stop=f,o._loop=!!(o._loop||n._sprite[e][2])};if(u>=f){n._ended(o);return}var m=o._node;if(n._webAudio){var g=function(){n._playLock=!1,p(),n._refreshBuffer(o);var e=o._muted||n._muted?0:o._volume;m.gain.setValueAtTime(e,a.ctx.currentTime),o._playStart=a.ctx.currentTime,void 0===m.bufferSource.start?o._loop?m.bufferSource.noteGrainOn(0,u,86400):m.bufferSource.noteGrainOn(0,u,c):o._loop?m.bufferSource.start(0,u,86400):m.bufferSource.start(0,u,c),d!==1/0&&(n._endTimers[o._id]=setTimeout(n._ended.bind(n,o),d)),t||setTimeout(function(){n._emit("play",o._id),n._loadQueue()},0)};"running"===a.state&&"interrupted"!==a.ctx.state?g():(n._playLock=!0,n.once("resume",g),n._clearTimer(o._id))}else{var v=function(){m.currentTime=u,m.muted=o._muted||n._muted||a._muted||m.muted,m.volume=o._volume*a.volume(),m.playbackRate=o._rate;try{var i=m.play();if(i&&"undefined"!=typeof Promise&&(i instanceof Promise||"function"==typeof i.then)?(n._playLock=!0,p(),i.then(function(){n._playLock=!1,m._unlocked=!0,t?n._loadQueue():n._emit("play",o._id)}).catch(function(){n._playLock=!1,n._emit("playerror",o._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),o._ended=!0,o._paused=!0})):t||(n._playLock=!1,p(),n._emit("play",o._id)),m.playbackRate=o._rate,m.paused){n._emit("playerror",o._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");return}"__default"!==e||o._loop?n._endTimers[o._id]=setTimeout(n._ended.bind(n,o),d):(n._endTimers[o._id]=function(){n._ended(o),m.removeEventListener("ended",n._endTimers[o._id],!1)},m.addEventListener("ended",n._endTimers[o._id],!1))}catch(e){n._emit("playerror",o._id,e)}};"data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"===m.src&&(m.src=n._src,m.load());var y=window&&window.ejecta||!m.readyState&&a._navigator.isCocoonJS;if(m.readyState>=3||y)v();else{n._playLock=!0,n._state="loading";var _=function(){n._state="loaded",v(),m.removeEventListener(a._canPlayEvent,_,!1)};m.addEventListener(a._canPlayEvent,_,!1),n._clearTimer(o._id)}}return o._id},pause:function(e){var t=this;if("loaded"!==t._state||t._playLock)return t._queue.push({event:"pause",action:function(){t.pause(e)}}),t;for(var n=t._getSoundIds(e),i=0;i<n.length;i++){t._clearTimer(n[i]);var r=t._soundById(n[i]);if(r&&!r._paused&&(r._seek=t.seek(n[i]),r._rateSeek=0,r._paused=!0,t._stopFade(n[i]),r._node)){if(t._webAudio){if(!r._node.bufferSource)continue;void 0===r._node.bufferSource.stop?r._node.bufferSource.noteOff(0):r._node.bufferSource.stop(0),t._cleanBuffer(r._node)}else isNaN(r._node.duration)&&r._node.duration!==1/0||r._node.pause()}arguments[1]||t._emit("pause",r?r._id:null)}return t},stop:function(e,t){var n=this;if("loaded"!==n._state||n._playLock)return n._queue.push({event:"stop",action:function(){n.stop(e)}}),n;for(var i=n._getSoundIds(e),r=0;r<i.length;r++){n._clearTimer(i[r]);var a=n._soundById(i[r]);a&&(a._seek=a._start||0,a._rateSeek=0,a._paused=!0,a._ended=!0,n._stopFade(i[r]),a._node&&(n._webAudio?a._node.bufferSource&&(void 0===a._node.bufferSource.stop?a._node.bufferSource.noteOff(0):a._node.bufferSource.stop(0),n._cleanBuffer(a._node)):isNaN(a._node.duration)&&a._node.duration!==1/0||(a._node.currentTime=a._start||0,a._node.pause(),a._node.duration===1/0&&n._clearSound(a._node))),t||n._emit("stop",a._id))}return n},mute:function(e,t){var n=this;if("loaded"!==n._state||n._playLock)return n._queue.push({event:"mute",action:function(){n.mute(e,t)}}),n;if(void 0===t){if("boolean"!=typeof e)return n._muted;n._muted=e}for(var i=n._getSoundIds(t),r=0;r<i.length;r++){var s=n._soundById(i[r]);s&&(s._muted=e,s._interval&&n._stopFade(s._id),n._webAudio&&s._node?s._node.gain.setValueAtTime(e?0:s._volume,a.ctx.currentTime):s._node&&(s._node.muted=!!a._muted||e),n._emit("mute",s._id))}return n},volume:function(){var e,t,n,i=this,r=arguments;if(0===r.length)return i._volume;if(1===r.length||2===r.length&&void 0===r[1]?i._getSoundIds().indexOf(r[0])>=0?t=parseInt(r[0],10):e=parseFloat(r[0]):r.length>=2&&(e=parseFloat(r[0]),t=parseInt(r[1],10)),void 0===e||!(e>=0)||!(e<=1))return(n=t?i._soundById(t):i._sounds[0])?n._volume:0;if("loaded"!==i._state||i._playLock)return i._queue.push({event:"volume",action:function(){i.volume.apply(i,r)}}),i;void 0===t&&(i._volume=e),t=i._getSoundIds(t);for(var s=0;s<t.length;s++)(n=i._soundById(t[s]))&&(n._volume=e,r[2]||i._stopFade(t[s]),i._webAudio&&n._node&&!n._muted?n._node.gain.setValueAtTime(e,a.ctx.currentTime):n._node&&!n._muted&&(n._node.volume=e*a.volume()),i._emit("volume",n._id));return i},fade:function(e,t,n,i){var r=this;if("loaded"!==r._state||r._playLock)return r._queue.push({event:"fade",action:function(){r.fade(e,t,n,i)}}),r;e=Math.min(Math.max(0,parseFloat(e)),1),t=Math.min(Math.max(0,parseFloat(t)),1),n=parseFloat(n),r.volume(e,i);for(var s=r._getSoundIds(i),o=0;o<s.length;o++){var l=r._soundById(s[o]);if(l){if(i||r._stopFade(s[o]),r._webAudio&&!l._muted){var u=a.ctx.currentTime,c=u+n/1e3;l._volume=e,l._node.gain.setValueAtTime(e,u),l._node.gain.linearRampToValueAtTime(t,c)}r._startFadeInterval(l,e,t,n,s[o],void 0===i)}}return r},_startFadeInterval:function(e,t,n,i,r,a){var s=this,o=t,l=n-t,u=Math.abs(l/.
vendor: 5,270 bytes, line 13
1301),c=Math.max(4,u>0?i/u:i),d=Date.now();e._fadeTo=n,e._interval=setInterval(function(){var r=(Date.now()-d)/i;d=Date.now(),o+=l*r,o=Math.round(100*o)/100,o=l<0?Math.max(n,o):Math.min(n,o),s._webAudio?e._volume=o:s.volume(o,e._id,!0),a&&(s._volume=o),(n<t&&o<=n||n>t&&o>=n)&&(clearInterval(e._interval),e._interval=null,e._fadeTo=null,s.volume(n,e._id),s._emit("fade",e._id))},c)},_stopFade:function(e){var t=this,n=t._soundById(e);return n&&n._interval&&(t._webAudio&&n._node.gain.cancelScheduledValues(a.ctx.currentTime),clearInterval(n._interval),n._interval=null,t.volume(n._fadeTo,e),n._fadeTo=null,t._emit("fade",e)),t},loop:function(){var e,t,n,i=this,r=arguments;if(0===r.length)return i._loop;if(1===r.length){if("boolean"!=typeof r[0])return!!(n=i._soundById(parseInt(r[0],10)))&&n._loop;e=r[0],i._loop=e}else 2===r.length&&(e=r[0],t=parseInt(r[1],10));for(var a=i._getSoundIds(t),s=0;s<a.length;s++)(n=i._soundById(a[s]))&&(n._loop=e,i._webAudio&&n._node&&n._node.bufferSource&&(n._node.bufferSource.loop=e,e&&(n._node.bufferSource.loopStart=n._start||0,n._node.bufferSource.loopEnd=n._stop,i.playing(a[s])&&(i.pause(a[s],!0),i.play(a[s],!0)))));return i},rate:function(){var e,t,n,i=this,r=arguments;if(0===r.length?t=i._sounds[0]._id:1===r.length?i._getSoundIds().indexOf(r[0])>=0?t=parseInt(r[0],10):e=parseFloat(r[0]):2===r.length&&(e=parseFloat(r[0]),t=parseInt(r[1],10)),"number"!=typeof e)return(n=i._soundById(t))?n._rate:i._rate;if("loaded"!==i._state||i._playLock)return i._queue.push({event:"rate",action:function(){i.rate.apply(i,r)}}),i;void 0===t&&(i._rate=e),t=i._getSoundIds(t);for(var s=0;s<t.length;s++)if(n=i._soundById(t[s])){i.playing(t[s])&&(n._rateSeek=i.seek(t[s]),n._playStart=i._webAudio?a.ctx.currentTime:n._playStart),n._rate=e,i._webAudio&&n._node&&n._node.bufferSource?n._node.bufferSource.playbackRate.setValueAtTime(e,a.ctx.currentTime):n._node&&(n._node.playbackRate=e);var o=i.seek(t[s]),l=1e3*((i._sprite[n._sprite][0]+i._sprite[n._sprite][1])/1e3-o)/Math.abs(n._rate);(i._endTimers[t[s]]||!n._paused)&&(i._clearTimer(t[s]),i._endTimers[t[s]]=setTimeout(i._ended.bind(i,n),l)),i._emit("rate",n._id)}return i},seek:function(){var e,t,n=this,i=arguments;if(0===i.length?n._sounds.length&&(t=n._sounds[0]._id):1===i.length?n._getSoundIds().indexOf(i[0])>=0?t=parseInt(i[0],10):n._sounds.length&&(t=n._sounds[0]._id,e=parseFloat(i[0])):2===i.length&&(e=parseFloat(i[0]),t=parseInt(i[1],10)),void 0===t)return 0;if("number"==typeof e&&("loaded"!==n._state||n._playLock))return n._queue.push({event:"seek",action:function(){n.seek.apply(n,i)}}),n;var r=n._soundById(t);if(r){if("number"==typeof e&&e>=0){var s=n.playing(t);s&&n.pause(t,!0),r._seek=e,r._ended=!1,n._clearTimer(t),n._webAudio||!r._node||isNaN(r._node.duration)||(r._node.currentTime=e);var o=function(){s&&n.play(t,!0),n._emit("seek",t)};if(s&&!n._webAudio){var l=function(){n._playLock?setTimeout(l,0):o()};setTimeout(l,0)}else o()}else{if(!n._webAudio)return r._node.currentTime;var u=n.playing(t)?a.ctx.currentTime-r._playStart:0,c=r._rateSeek?r._rateSeek-r._seek:0;return r._seek+(c+u*Math.abs(r._rate))}}return n},playing:function(e){var t=this;if("number"==typeof e){var n=t._soundById(e);return!!n&&!n._paused}for(var i=0;i<t._sounds.length;i++)if(!t._sounds[i]._paused)return!0;return!1},duration:function(e){var t=this,n=t._duration,i=t._soundById(e);return i&&(n=t._sprite[i._sprite][1]/1e3),n},state:function(){return this._state},unload:function(){for(var e=this,t=e._sounds,n=0;n<t.length;n++)t[n]._paused||e.stop(t[n]._id),e._webAudio||(e._clearSound(t[n]._node),t[n]._node.removeEventListener("error",t[n]._errorFn,!1),t[n]._node.removeEventListener(a._canPlayEvent,t[n]._loadFn,!1),t[n]._node.removeEventListener("ended",t[n]._endFn,!1),a._releaseHtml5Audio(t[n]._node)),delete t[n]._node,e._clearTimer(t[n]._id);var i=a._howls.indexOf(e);i>=0&&a._howls.splice(i,1);var r=!0;for(n=0;n<a._howls.length;n++)if(a._howls[n]._src===e._src||e._src.indexOf(a._howls[n]._src)>=0){r=!1;break}return l&&r&&delete l[e._src],a.noAudio=!1,e._state="unloaded",e._sounds=[],e=null,null},on:function(e,t,n,i){var r=this,a=r["_on"+e];return"function"==typeof t&&a.push(i?{id:n,fn:t,once:i}:{id:n,fn:t}),r},off:function(e,t,n){var i=this,r=i["_on"+e],a=0;if("number"==typeof t&&(n=t,t=null),t||n)for(a=0;a<r.length;a++){var s=n===r[a].id;if(t===r[a].fn&&s||!t&&s){r.splice(a,1);break}}else if(e)i["_on"+e]=[];else{var o=Object.keys(i);for(a=0;a<o.length;a++)0===o[a].indexOf("_on")&&Array.isArray(i[o[a]])&&(i[o[a]]=[])}return i},once:function(e,t,n){var i=this;return i.on(e,t,n,1),i},_emit:function(e,t,n){for(var i=this,r=i["_on"+e],a=r.length-1;a>=0;a--)(!r[a].id||r[a].id===t||"load"===e)&&(setTimeout((function(e){e.call(this,t,n)}).bind(i,r[a].fn),0),r[a].once&&i.off(e,r[a].fn,r[a].id));return i._loadQueue(e),i},_loadQueue:function(e){var t=this;if(t._queue.length>0){var n=t._queue[0];n.event===e&&(t._queue.shift(),t._loadQueue()),e||n.action()}return t},_ended:function(e){var t=this,n=e._sprite;if(!t._webAudio&&e._node&&!e._node.paused&&!e._node.ended&&e._node.currentTime<e._stop)return setTimeout(t._ended.bind(t,e),100),t;var i=!!(e._loop||t._sprite[n][2]);if(t._emit("end",e._id),!t._webAudio&&i&&t.stop(e._id,!0).play(e._id),t._webAudio&&i){t._emit
vendor: 3,749 bytes, line 13
13("play",e._id),e._seek=e._start||0,e._rateSeek=0,e._playStart=a.ctx.currentTime;var r=(e._stop-e._start)*1e3/Math.abs(e._rate);t._endTimers[e._id]=setTimeout(t._ended.bind(t,e),r)}return t._webAudio&&!i&&(e._paused=!0,e._ended=!0,e._seek=e._start||0,e._rateSeek=0,t._clearTimer(e._id),t._cleanBuffer(e._node),a._autoSuspend()),t._webAudio||i||t.stop(e._id,!0),t},_clearTimer:function(e){var t=this;if(t._endTimers[e]){if("function"!=typeof t._endTimers[e])clearTimeout(t._endTimers[e]);else{var n=t._soundById(e);n&&n._node&&n._node.removeEventListener("ended",t._endTimers[e],!1)}delete t._endTimers[e]}return t},_soundById:function(e){for(var t=this,n=0;n<t._sounds.length;n++)if(e===t._sounds[n]._id)return t._sounds[n];return null},_inactiveSound:function(){var e=this;e._drain();for(var t=0;t<e._sounds.length;t++)if(e._sounds[t]._ended)return e._sounds[t].reset();return new o(e)},_drain:function(){var e=this,t=e._pool,n=0,i=0;if(!(e._sounds.length<t)){for(i=0;i<e._sounds.length;i++)e._sounds[i]._ended&&n++;for(i=e._sounds.length-1;i>=0;i--){if(n<=t)return;e._sounds[i]._ended&&(e._webAudio&&e._sounds[i]._node&&e._sounds[i]._node.disconnect(0),e._sounds.splice(i,1),n--)}}},_getSoundIds:function(e){var t=this;if(void 0!==e)return[e];for(var n=[],i=0;i<t._sounds.length;i++)n.push(t._sounds[i]._id);return n},_refreshBuffer:function(e){var t=this;return e._node.bufferSource=a.ctx.createBufferSource(),e._node.bufferSource.buffer=l[t._src],e._panner?e._node.bufferSource.connect(e._panner):e._node.bufferSource.connect(e._node),e._node.bufferSource.loop=e._loop,e._loop&&(e._node.bufferSource.loopStart=e._start||0,e._node.bufferSource.loopEnd=e._stop||0),e._node.bufferSource.playbackRate.setValueAtTime(e._rate,a.ctx.currentTime),t},_cleanBuffer:function(e){var t=this,n=a._navigator&&a._navigator.vendor.indexOf("Apple")>=0;if(!e.bufferSource)return t;if(a._scratchBuffer&&e.bufferSource&&(e.bufferSource.onended=null,e.bufferSource.disconnect(0),n))try{e.bufferSource.buffer=a._scratchBuffer}catch(e){}return e.bufferSource=null,t},_clearSound:function(e){/MSIE |Trident\//.test(a._navigator&&a._navigator.userAgent)||(e.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var o=function(e){this._parent=e,this.init()};o.prototype={init:function(){var e=this,t=e._parent;return e._muted=t._muted,e._loop=t._loop,e._volume=t._volume,e._rate=t._rate,e._seek=0,e._paused=!0,e._ended=!0,e._sprite="__default",e._id=++a._counter,t._sounds.push(e),e.create(),e},create:function(){var e=this,t=e._parent,n=a._muted||e._muted||e._parent._muted?0:e._volume;return t._webAudio?(e._node=void 0===a.ctx.createGain?a.ctx.createGainNode():a.ctx.createGain(),e._node.gain.setValueAtTime(n,a.ctx.currentTime),e._node.paused=!0,e._node.connect(a.masterGain)):a.noAudio||(e._node=a._obtainHtml5Audio(),e._errorFn=e._errorListener.bind(e),e._node.addEventListener("error",e._errorFn,!1),e._loadFn=e._loadListener.bind(e),e._node.addEventListener(a._canPlayEvent,e._loadFn,!1),e._endFn=e._endListener.bind(e),e._node.addEventListener("ended",e._endFn,!1),e._node.src=t._src,e._node.preload=!0===t._preload?"auto":t._preload,e._node.volume=n*a.volume(),e._node.load()),e},reset:function(){var e=this,t=e._parent;return e._muted=t._muted,e._loop=t._loop,e._volume=t._volume,e._rate=t._rate,e._seek=0,e._rateSeek=0,e._paused=!0,e._ended=!0,e._sprite="__default",e._id=++a._counter,e},_errorListener:function(){var e=this;e._parent._emit("loaderror",e._id,e._node.error?e._node.error.code:0),e._node.removeEventListener("error",e._errorFn,!1)},_loadListener:function(){var e=this,t=e._parent;t._duration=Math.ceil(10*e._node.duration)/10,0===Object.keys(t._sprite).length&&(t._sprite={__default:[0,1e3*t._duration]}
vendor: 4,425 bytes, line 13
13),"loaded"!==t._state&&(t._state="loaded",t._emit("load"),t._loadQueue()),e._node.removeEventListener(a._canPlayEvent,e._loadFn,!1)},_endListener:function(){var e=this,t=e._parent;t._duration===1/0&&(t._duration=Math.ceil(10*e._node.duration)/10,t._sprite.__default[1]===1/0&&(t._sprite.__default[1]=1e3*t._duration),t._ended(e)),e._node.removeEventListener("ended",e._endFn,!1)}};var l={},u=function(e){var t=e._src;if(l[t]){e._duration=l[t].duration,h(e);return}if(/^data:[^;]+;base64,/.test(t)){for(var n=atob(t.split(",")[1]),i=new Uint8Array(n.length),r=0;r<n.length;++r)i[r]=n.charCodeAt(r);d(i.buffer,e)}else{var a=new XMLHttpRequest;a.open(e._xhr.method,t,!0),a.withCredentials=e._xhr.withCredentials,a.responseType="arraybuffer",e._xhr.headers&&Object.keys(e._xhr.headers).forEach(function(t){a.setRequestHeader(t,e._xhr.headers[t])}),a.onload=function(){var t=(a.status+"")[0];if("0"!==t&&"2"!==t&&"3"!==t){e._emit("loaderror",null,"Failed loading audio file with status: "+a.status+".");return}d(a.response,e)},a.onerror=function(){e._webAudio&&(e._html5=!0,e._webAudio=!1,e._sounds=[],delete l[t],e.load())},c(a)}},c=function(e){try{e.send()}catch(t){e.onerror()}},d=function(e,t){var n=function(){t._emit("loaderror",null,"Decoding audio data failed.")},i=function(e){e&&t._sounds.length>0?(l[t._src]=e,h(t,e)):n()};"undefined"!=typeof Promise&&1===a.ctx.decodeAudioData.length?a.ctx.decodeAudioData(e).then(i).catch(n):a.ctx.decodeAudioData(e,i,n)},h=function(e,t){t&&!e._duration&&(e._duration=t.duration),0===Object.keys(e._sprite).length&&(e._sprite={__default:[0,1e3*e._duration]}),"loaded"!==e._state&&(e._state="loaded",e._emit("load"),e._loadQueue())},f=function(){if(a.usingWebAudio){try{"undefined"!=typeof AudioContext?a.ctx=new AudioContext:"undefined"!=typeof webkitAudioContext?a.ctx=new webkitAudioContext:a.usingWebAudio=!1}catch(e){a.usingWebAudio=!1}a.ctx||(a.usingWebAudio=!1);var e=/iP(hone|od|ad)/.test(a._navigator&&a._navigator.platform),t=a._navigator&&a._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),n=t?parseInt(t[1],10):null;if(e&&n&&n<9){var i=/safari/.test(a._navigator&&a._navigator.userAgent.toLowerCase());a._navigator&&!i&&(a.usingWebAudio=!1)}a.usingWebAudio&&(a.masterGain=void 0===a.ctx.createGain?a.ctx.createGainNode():a.ctx.createGain(),a.masterGain.gain.setValueAtTime(a._muted?0:a._volume,a.ctx.currentTime),a.masterGain.connect(a.ctx.destination)),a._setup()}};void 0!==(i=(function(){return{Howler:a,Howl:s}}).apply(t,[]))&&(e.exports=i),t.Howler=a,t.Howl=s,void 0!==n.g?(n.g.HowlerGlobal=r,n.g.Howler=a,n.g.Howl=s,n.g.Sound=o):"undefined"!=typeof window&&(window.HowlerGlobal=r,window.Howler=a,window.Howl=s,window.Sound=o)}(),function(){"use strict";HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(e){var t=this;if(!t.ctx||!t.ctx.listener)return t;for(var n=t._howls.length-1;n>=0;n--)t._howls[n].stereo(e);return t},HowlerGlobal.prototype.pos=function(e,t,n){var i=this;return i.ctx&&i.ctx.listener?(t="number"!=typeof t?i._pos[1]:t,n="number"!=typeof n?i._pos[2]:n,"number"!=typeof e)?i._pos:(i._pos=[e,t,n],void 0!==i.ctx.listener.positionX?(i.ctx.listener.positionX.setTargetAtTime(i._pos[0],Howler.ctx.currentTime,.1),i.ctx.listener.positionY.setTargetAtTime(i._pos[1],Howler.ctx.currentTime,.1),i.ctx.listener.positionZ.setTargetAtTime(i._pos[2],Howler.ctx.currentTime,.1)):i.ctx.listener.setPosition(i._pos[0],i._pos[1],i._pos[2]),i):i},HowlerGlobal.prototype.orientation=function(e,t,n,i,r,a){var s=this;if(!s.ctx||!s.ctx.listener)return s;var o=s._orientation;return(t="number"!=typeof t?o[1]:t,n="number"!=typeof n?o[2]:n,i="number"!=typeof i?o[3]:i,r="number"!=typeof r?o[4]:r,a="number"!=typeof a?o[5]:a,"number"!=typeof e)?o:(s._orientation=[e,t,n,i,r,a],void 0!==s.ctx.listener.forwardX?(s.ctx.listener.forwardX.setTargetAtTime(e,Howler.ctx.currentTime,.1),s.ctx.listener.forwardY.setTargetAtTime(t,Howler.ctx.currentTime,.1),s.ctx.listener.forwardZ.setTargetAtTime(n,Howler.ctx.currentTime,.1),s.ctx.listener.upX.setTargetAtTime(i,Howler.ctx.currentTime,.1),s.ctx.listener.upY.setTargetAtTime(r,Howler.ctx.currentTime,.1),s.ctx.listener.upZ.setTargetAtTime(a,Howler.ctx.currentTime,.1)):s.ctx.listener.setOrientation(e,t,n,i,r,a),s)},Howl.prototype.init=function(e){return function(t){var n=this;return n._orientation=t.orientation||[1,0,0],n._stereo=t.stereo||null,
13n._pos=t.pos||null,n._pannerAttr={coneInnerAngle:void 0!==t.coneInnerAngle?t.coneInnerAngle:360,coneOuterAngle:void 0!==t.coneOuterAngle?t.coneOuterAngle:360,coneOuterGain:void 0!==t.coneOuterGain?t.coneOuterGain:0,distanceModel:void 0!==t.distanceModel?t.distanceModel:"inverse",maxDistance:void 0!==t.maxDistance?t.maxDistance:1e4,panningModel:void 0!==t.panningModel?t.panningModel:"HRTF",refDistance:void 0!==t.refDistance?t.refDistance:1,rolloffFactor:void 0!==t.rolloffFactor?t.rolloffFactor:1},n._onstereo=t.onstereo?[{fn:t.onstereo}]:[],n._onpos=t.onpos?[{fn:t.onpos}]:[],n._onorientation=t.onorientation?[{fn:t.onorientation}]:[],e.call(this,t)}}(Howl.prototype.init),Howl.prototype.stereo=function(t,n){var i=this;if(!i._webAudio)return i;if("loaded"!==i._state)return i._queue.push({event:"stereo",action:function(){i.stereo(t,n)}}),i;var r=void 0===Howler.ctx.createStereoPanner?"spatial":"stereo";if(void 0===n){if("number"!=typeof t)return i._stereo;i._stereo=t,i._pos=[t,0,0]}for(var a=i._getSoundIds(n),s=0;s<a.length;s++){var o=i._soundById(a[s]);if(o){if("number"!=typeof t)return o._stereo;o._stereo=t,o._pos=[t,0,0],o._node&&(o._pannerAttr.panningModel="equalpower",o._panner&&o._panner.pan||e(o,r),"spatial"===r?void 0!==o._panner.positionX?(o._panner.positionX.setValueAtTime(t,Howler.ctx.currentTime),o._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),o._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):o._panner.setPosition(t,0,0):o._panner.pan.setValueAtTime(t,Howler.ctx.currentTime)),i._emit("stereo",o._id)}}return i},Howl.prototype.pos=function(t,n,i,r){var a=this;if(!a._webAudio)return a;if("loaded"!==a._state)return a._queue.push({event:"pos",action:function(){a.pos(t,n,i,r)}}),a;if(n="number"!=typeof n?0:n,i="number"!=typeof i?-.5:i,void 0===r){if("number"!=typeof t)return a._pos;a._pos=[t,n,i]}for(var s=a._getSoundIds(r),o=0;o<s.length;o++){var l=a._soundById(s[o]);if(l){if("number"!=typeof t)return l._pos;l._pos=[t,n,i],l._node&&((!l._panner||l._panner.pan)&&e(l,"spatial"),void 0!==l._panner.positionX?(l._panner.positionX.setValueAtTime(t,Howler.ctx.currentTime),l._panner.positionY.setValueAtTime(n,Howler.ctx.currentTime),l._panner.positionZ.setValueAtTime(i,Howler.ctx.currentTime)):l._panner.setPosition(t,n,i)),a._emit("pos",l._id)}}return a},Howl.prototype.orientation=function(t,n,i,r){var a=this;if(!a._webAudio)return a;if("loaded"!==a._state)return a._queue.push({event:"orientation",action:function(){a.orientation(t,n,i,r)}}),a;if(n="number"!=typeof n?a._orientation[1]:n,i="number"!=typeof i?a._orientation[2]:i,void 0===r){if("number"!=typeof t)return a._orientation;a._orientation=[t,n,i]}for(var s=a._getSoundIds(r),o=0;o<s.length;o++){var l=a._soundById(s[o]);if(l){if("number"!=typeof t)return l._orientation;l._orientation=[t,n,i],l._node&&(l._panner||(l._pos||(l._pos=a._pos||[0,0,-.5]),e(l,"spatial")),void 0!==l._panner.orientationX?(l._panner.orientationX.setValueAtTime(t,Howler.ctx.currentTime),l._panner.orientationY.setValueAtTime(n,Howler.ctx.currentTime),l._panner.orientationZ.setValueAtTime(i,Howler.ctx.currentTime)):l._panner.setOrientation(t,n,i)),a._emit("orientation",l._id)}}return a},Howl.prototype.pannerAttr=function(){var t,n,i,r=this,a=arguments;if(!r._webAudio)return r;if(0===a.length)return r._pannerAttr;if(1===a.length){if("object"!=typeof a[0])return(i=r._soundById(parseInt(a[0],10)))?i._pannerAttr:r._pannerAttr;t=a[0],void 0===n&&(t.pannerAttr||(t.pannerAttr={coneInnerAngle:t.coneInnerAngle,coneOuterAngle:t.coneOuterAngle,coneOuterGain:t.coneOuterGain,distanceModel:t.distanceModel,maxDistance:t.maxDistance,refDistance:t.refDistance,rolloffFactor:t.rolloffFactor,panningModel:t.panningModel}),r._pannerAttr={coneInnerAngle:void 0!==t.pannerAttr.coneInnerAngle?t.pannerAttr.coneInnerAngle:r._coneInnerAngle,coneOuterAngle:void 0!==t.pannerAttr.coneOuterAngle?t.pannerAttr.coneOuterAngle:r._coneOuterAngle,coneOuterGain:void 0!==t.pannerAttr.coneOuterGain?t.pannerAttr.coneOuterGain:r._coneOuterGain,distanceModel:void 0!==t.pannerAttr.distanceModel?t.pannerAttr.distanceModel:r._distanceModel,maxDistance:void 0!==t.pannerAttr.maxDistance?t.pannerAttr.maxDistance:r._maxDistance,refDistance:void 0!==t.pannerAttr.refDistance?t.pannerAttr.refDistance:r._refDistance,rolloffFactor:void 0!==t.pannerAttr.rolloffFactor?t.pannerAttr.rolloffFactor:r._rolloffFactor,panningModel:void 0!==t.pannerAttr.panningModel?t.pannerAttr.panningModel:r._panningModel})}else 2===a.length&&(t=a[0],n=parseInt(a[1],10));for(var s=r._getSoundIds(n),o=0;o<s.length;o++)if(i=r._soundById(s[o])){var l=i._pannerAttr;l={coneInnerAngle:void 0!==t.coneInnerAngle?t.coneInnerAngle:l.coneInnerAngle,coneOuterAngle:void 0!==t.coneOuterAngle?t.coneOuterAngle:l.coneOuterAngle,coneOuterGain:void 0!==t.coneOuterGain?t.coneOuterGain:l.coneOuterGain,distanceModel:void 0!==t.distanceModel?t.distanceModel:l.distanceModel,maxDistance:void 0!==t.maxDistance?t.maxDistance:l.maxDistance,refDistance:void 0!==t.refDistance?t.refDistance:l.refDistance,rolloffFactor:void 0!==t.rolloffFactor?t.rolloffFactor:l.rolloffFactor,panningModel:void 0!==t.panningModel?t.panningModel:l.panningModel};var u=i._panner;u||(i._pos||(i._pos=r._pos||[0,0,-.5]),e(i,"spatial"),u=i._panner),u.coneInnerAngle=l.coneInnerAngle,u.coneOuterAngle=l.coneOuterAngle,u.coneOuterGain=l.coneOuterGain,u.distanceModel=l.distanceModel,u.maxDistance=l.maxDistance,u.refDistance=l.refDistance,u.rolloffFactor=l.rolloffFactor,u.panningModel=l.panningModel}return r},Sound.prototype.init=function(e){return function(){var t=this,n=t._parent;t._orientation=n._orientation,t._stereo=n._stereo,t._pos=n._pos,t._pannerAttr=n._pannerAttr,e.call(this),t._stereo?n.stereo(t._stereo):t._pos&&n.pos(t._pos[0],t._pos[1],t._pos[2],t._id)}}(Sound.prototype.init),Sound.prototype.reset=function(e){return function(){var t=this,n=t._parent;return t._orientation=n._orientation,t._stereo=n._stereo,t._pos=n._pos,t._pannerAttr=n._pannerAttr,t._stereo?n.stereo(t._stereo):t._pos?n.pos(t._pos[0],t._pos[1],t._pos[2],t._id):t._panner&&(t._panner.disconnect(0),t._panner=void 0,n._refreshBuffer(t)),e.call(this)}}(Sound.prototype.reset);var e=function(e,t){"spatial"===(t=t||"spatial")?(e._panner=Howler.ctx.createPanner(),e._panner.coneInnerAngle=e._pannerAttr.coneInnerAngle,e._panner.coneOuterAngle=e._pannerAttr.coneOuterAngle,e._panner.coneOuterGain=e._pannerAttr.coneOuterGain,e._panner.distanceModel=e._pannerAttr.distanceModel,e._panner.maxDistance=e._pannerAttr.maxDistance,e._panner.refDistance=e._pannerAttr.refDistance,e._panner.rolloffFactor=e._pannerAttr.rolloffFactor,e._panner.panningModel=e._pannerAttr.panningModel,void 0!==e._panner.positionX?(e._panner.positionX.setValueAtTime(e._pos[0],Howler.ctx.currentTime),e._panner.positionY.setValueAtTime(e._pos[1],Howler.ctx.currentTime),e._panner.positionZ.setValueAtTime(e._pos[2],Howler.ctx.currentTime)):e._panner.setPosition(e._pos[0],e._pos[1],e._pos[2]),void 0!==e._panner.orientationX?(e._panner.orientationX.setValueAtTime(e._orientation[0],Howler.ctx.currentTime),e._panner.orientationY.setValueAtTime(e._orientation[1],Howler.ctx.currentTime),e._panner.orientationZ.setValueAtTime(e._orientation[2],Howler.ctx.currentTime)):e._panner.setOrientation(e._orientation[0],e._orientation[1],e._orientation[2])):(e._panner=Howler.ctx.createStereoPanner(),e._panner.pan.setValueAtTime(e._stereo,Howler.ctx.currentTime)),e._panner.connect(e._node),e._paused||e._parent.pause(e._id,!0).play(e._id,!0)}}()},80645:function(e,t){t.read=function(e,t,n,i,r){var a,s,o=8*r-i-1,l=(1<<o)-1,u=l>>1,c=-7,d=n?r-1:0,h=n?-1:1,f=e[t+d];for(d+=h,a=f&(1<<-c)-1,f>>=-c,c+=o;c>0;a=256*a+e[t+d],d+=h,c-=8);for(s=a&(1<<-c)-1,a>>=-c,c+=i;c>0;s=256*s+e[t+d],d+=h,c-=8);if(0===a)a=1-u;else{if(a===l)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,i),a-=u}return(f?-1:1)*s*Math.pow(2,a-i)},t.write=function(e,t,n,i,r,a){var s,o,l,u=8*a-r-1,c=(1<<u)-1,d=c>>1,h=23===r?5960464477539062e-23:0,f=i?0:a-1,p=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(o=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+d>=1?t+=h/l:t+=h*Math.pow(2,1-d),t*l>=2&&(s++,l/=2),s+d>=c?(o=0,s=c):s+d>=1?(o=(t*l-1)*Math.pow(2,r),s+=d):(o=t*Math.pow(2,d-1)*Math.pow(2,r),s=0));r>=8;e[n+f]=255&o,f+=p,o/=256,r-=8);for(s=s<<r|o,u+=r;u>0;e[n+f]=255&s,f+=p,s/=256,u-=8);e[n+f-p]|=128*m}},94301:function(e,t,n){n(66477),e.exports=self.fetch.bind(self)},72023:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__,process=__webpack_require__(83454);!function(){"use strict";
vendor: 4,491 bytes, line 13
13var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=__webpack_require__.g:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&module.exports,AMD=__webpack_require__.amdO,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];(root.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),ARRAY_BUFFER&&(root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var createOutputMethod=function(e,t){return function(n){return new Sha256(t,!0).update(n)[e]()}},createMethod=function(e){var t=createOutputMethod("hex",e);NODE_JS&&(t=nodeWrap(t,e)),t.create=function(){return new Sha256(e)},t.update=function(e){return t.create().update(e)};for(var n=0;n<OUTPUT_TYPES.length;++n){var i=OUTPUT_TYPES[n];t[i]=createOutputMethod(i,e)}return t},nodeWrap=function(method,is224){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),algorithm=is224?"sha224":"sha256",nodeMethod=function(e){if("string"==typeof e)return crypto.createHash(algorithm).update(e,"utf8").digest("hex");if(null==e)throw Error(ERROR);return e.constructor===ArrayBuffer&&(e=new Uint8Array(e)),Array.isArray(e)||ArrayBuffer.isView(e)||e.constructor===Buffer?crypto.createHash(algorithm).update(new Buffer(e)).digest("hex"):method(e)};return nodeMethod},createHmacOutputMethod=function(e,t){return function(n,i){return new HmacSha256(n,t,!0).update(i)[e]()}},createHmacMethod=function(e){var t=createHmacOutputMethod("hex",e);t.create=function(t){return new HmacSha256(t,e)},t.update=function(e,n){return t.create(e).update(n)};for(var n=0;n<OUTPUT_TYPES.length;++n){var i=OUTPUT_TYPES[n];t[i]=createHmacOutputMethod(i,e)}return t};function Sha256(e,t){t?(blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=e}function HmacSha256(e,t,n){var i,r=typeof e;if("string"===r){var a,s=[],o=e.length,l=0;for(i=0;i<o;++i)(a=e.charCodeAt(i))<128?s[l++]=a:(a<2048?s[l++]=192|a>>6:(a<55296||a>=57344?s[l++]=224|a>>12:(a=65536+((1023&a)<<10|1023&e.charCodeAt(++i)),s[l++]=240|a>>18,s[l++]=128|a>>12&63),s[l++]=128|a>>6&63),s[l++]=128|63&a);e=s}else if("object"===r){if(null===e)throw Error(ERROR);if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(e)))throw Error(ERROR)}else throw Error(ERROR);e.length>64&&(e=new Sha256(t,!0).update(e).array());var u=[],c=[];for(i=0;i<64;++i){var d=e[i]||0;u[i]=92^d,c[i]=54^d}Sha256.call(this,t,n),this.update(c),this.oKeyPad=u,this.inner=!0,this.sharedMemory=n}Sha256.prototype.update=function(e){if(!this.finalized){var t,n=typeof e;if("string"!==n){if("object"===n){if(null===e)throw Error(ERROR);
13if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(e)))throw Error(ERROR)}else throw Error(ERROR);t=!0}for(var i,r,a=0,s=e.length,o=this.blocks;a<s;){if(this.hashed&&(this.hashed=!1,o[0]=this.block,o[16]=o[1]=o[2]=o[3]=o[4]=o[5]=o[6]=o[7]=o[8]=o[9]=o[10]=o[11]=o[12]=o[13]=o[14]=o[15]=0),t)for(r=this.start;a<s&&r<64;++a)o[r>>2]|=e[a]<<SHIFT[3&r++];else for(r=this.start;a<s&&r<64;++a)(i=e.charCodeAt(a))<128?o[r>>2]|=i<<SHIFT[3&r++]:(i<2048?o[r>>2]|=(192|i>>6)<<SHIFT[3&r++]:(i<55296||i>=57344?o[r>>2]|=(224|i>>12)<<SHIFT[3&r++]:(i=65536+((1023&i)<<10|1023&e.charCodeAt(++a)),o[r>>2]|=(240|i>>18)<<SHIFT[3&r++],o[r>>2]|=(128|i>>12&63)<<SHIFT[3&r++]),o[r>>2]|=(128|i>>6&63)<<SHIFT[3&r++]),o[r>>2]|=(128|63&i)<<SHIFT[3&r++]);this.lastByteIndex=r,this.bytes+=r-this.start,r>=64?(this.block=o[16],this.start=r-64,this.hash(),this.hashed=!0):this.start=r}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=EXTRA[3&t],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var e,t,n,i,r,a,s,o,l,u,c,d=this.h0,h=this.h1,f=this.h2,p=this.h3,m=this.h4,g=this.h5,v=this.h6,y=this.h7,_=this.blocks;for(e=16;e<64;++e)t=((r=_[e-15])>>>7|r<<25)^(r>>>18|r<<14)^r>>>3,n=((r=_[e-2])>>>17|r<<15)^(r>>>19|r<<13)^r>>>10,_[e]=_[e-16]+t+_[e-7]+n<<0;for(e=0,c=h&f;e<64;e+=4)this.first?(this.is224?(o=300032,y=(r=_[0]-1413257819)-150054599<<0,p=r+24177077<<0):(o=704751109,y=(r=_[0]-210244248)-1521486534<<0,p=r+143694565<<0),this.first=!1):(t=(d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10),n=(m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7),i=(o=d&h)^d&f^c,r=y+n+(s=m&g^~m&v)+K[e]+_[e],a=t+i,y=p+r<<0,p=r+a<<0),t=(p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10),n=(y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7),i=(l=p&d)^p&h^o,r=v+n+(s=y&m^~y&g)+K[e+1]+_[e+1],a=t+i,v=f+r<<0,t=((f=r+a<<0)>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10),n=(v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7),i=(u=f&p)^f&d^l,r=g+n+(s=v&y^~v&m)+K[e+2]+_[e+2],a=t+i,g=h+r<<0,t=((h=r+a<<0)>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10),n=(g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7),i=(c=h&f)^h&p^u,r=m+n+(s=g&v^~g&y)+K[e+3]+_[e+3],a=t+i,m=d+r<<0,d=r+a<<0;this.h0=this.h0+d<<0,this.h1=this.h1+h<<0,this.h2=this.h2+f<<0,this.h3=this.h3+p<<0,this.h4=this.h4+m<<0,this.h5=this.h5+g<<0,this.h6=this.h6+v<<0,this.h7=this.h7+y<<0},Sha256.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,i=this.h3,r=this.h4,a=this.h5,s=this.h6,o=this.h7,l=HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[a>>28&15]+HEX_CHARS[a>>24&15]+HEX_CHARS[a>>20&15]+HEX_CHARS[a>>16&15]+HEX_CHARS[a>>12&15]+HEX_CHARS[a>>8&15]+HEX_CHARS[a>>4&15]+HEX_CHARS[15&a]+HEX_CHARS[s>>28&15]+HEX_CHARS[s>>24&15]+HEX_CHARS[s>>20&15]+HEX_CHARS[s>>16&15]+HEX_CHARS[s>>12&15]+HEX_CHARS[s>>8&15]+HEX_CHARS[s>>4&15]+HEX_CHARS[15&s];return this.is224||(l+=HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[15&o]),l},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,i=this.h3,r=this.h4,a=this.h5,s=this.h6,o=this.h7,l=[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24&255,n>>16&255,n>>8&255,255&n,i>>24&255,i>>16&255,i>>8&255,255&i,r>>24&255,r>>16&255,r>>8&255,255&r,a>>24&255,a>>16&255,a>>8&255,255&a,s>>24&255,s>>16&255,s>>8&255,255&s];return this.is224||l.push(o>>24&255,o>>16&255,o>>8&255,255&o),l},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224,AMD&&void 0!==(__WEBPACK_AMD_DEFINE_RESULT__=(function(){return exports}).call(exports,__webpack_require__,exports,module))&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}()},91296:function(e,t,n){var i="Expected a function",r=0/0,a="[object Symbol]",s=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt,d="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,h="object"==typeof self&&self&&self.Object===Object&&self,f=d||h||Function("return this")(),p=Object.prototype.toString,m=Math.max,g=Math.min,v=function(){return f.Date.now()};function y(e,t,n){var r,a,s,o,l,u,c=0,d=!1,h=!1,f=!0;if("function"!=typeof e)throw TypeError(i);function p(t){var n=r,i=a;return r=a=void 0,c=t,o=e.apply(i,n)}function y(e){return c=e,l=setTimeout(E,t),d?p(e):o}function b(e){var n=e-u,i=e-c,r=t-n;return h?g(r,s-i):r}function x(e){var n=e-u,i=e-c;return void 0===u||n>=t||n<0||h&&i>=s}function E(){var e=v();if(x(e))return w(e);l=setTimeout(E,b(e))}function w(e){return(l=void 0,f&&r)?p(e):(r=a=void 0,o)}function T(){void 0!==l&&clearTimeout(l),c=0,r=u=a=l=void 0}function S(){return void 0===l?o:w(v())}function L(){var e=v(),n=x(e);if(r=arguments,a=this,u=e,n){if(void 0===l)return y(u);if(h)return l=setTimeout(E,t),p(u)}return void 0===l&&(l=setTimeout(E,t)),o}return t=C(t)||0,_(n)&&(d=!!n.leading,s=(h="maxWait"in n)?m(C(n.maxWait)||0,t):s,f="trailing"in n?!!n.trailing:f),L.cancel=T,L.flush=S,L}function _(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function b(e){return!!e&&"object"==typeof e}function x(e){return"symbol"==typeof e||b(e)&&p.call(e)==a}function C(e){if("number"==typeof e)return e;if(x(e))return r;if(_(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=_(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(s,"");var n=l.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):o.test(e)?r:+e}e.exports=y},18552:function(e,t,n){var i=n(10852)(n(55639),"DataView");e.exports=i},1989:function(e,t,n){var i=n(51789),r=n(80401),a=n(57667),s=n(21327),o=n(81866);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=a,l.prototype.has=s,l.prototype.set=o,e.exports=l},38407:function(e,t,n){var i=n(27040),r=n(14125),a=n(82117),s=n(67518),o=n(54705);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=a,l.prototype.has=s,l.prototype.set=o,e.exports=l},57071:function(e,t,n){var i=n(10852)(n(55639),"Map");e.exports=i},83369:function(e,t,n){var i=n(24785),r=n(11285),a=n(96e3),s=n(49916),o=n(95265);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=a,l.prototype.has=s,l.prototype.set=o,e.exports=l},53818:function(e,t,n){var i=n(10852)(n(55639),"Promise");e.exports=i},58525:function(e,t,n){var i=n(10852)(n(55639),"Set");e.exports=i},88668:function(e,t,n){var i=n(83369),r=n(90619),a=n(72385);function s(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new i;++t<n;)this.add(e[t])}s.prototype.add=s.prototype.push=r,s.prototype.has=a,e.exports=s},46384:function(e,t,n){var i=n(38407),r=n(37465),a=n(63779),s=n(67599),o=n(44758),l=n(34309);function u(e){var t=this.__data__=new i(e);this.size=t.size}u.prototype.clear=r,u.prototype.delete=a,u.prototype.get=s,u.prototype.has=o,u.prototype.set=l,e.exports=u},62705:function(e,t,n){var i=n(55639).Symbol;e.exports=i},11149:function(e,t,n){var i=n(55639).Uint8Array;e.exports=i},70577:function(e,t,n){var i=n(10852)(n(55639),"WeakMap");e.exports=i}
13,96874:function(e){function t(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}e.exports=t},34963:function(e){function t(e,t){for(var n=-1,i=null==e?0:e.length,r=0,a=[];++n<i;){var s=e[n];t(s,n,e)&&(a[r++]=s)}return a}e.exports=t},14636:function(e,t,n){var i=n(22545),r=n(35694),a=n(1469),s=n(44144),o=n(65776),l=n(36719),u=Object.prototype.hasOwnProperty;function c(e,t){var n=a(e),c=!n&&r(e),d=!n&&!c&&s(e),h=!n&&!c&&!d&&l(e),f=n||c||d||h,p=f?i(e.length,String):[],m=p.length;for(var g in e)(t||u.call(e,g))&&!(f&&("length"==g||d&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||o(g,m)))&&p.push(g);return p}e.exports=c},29932:function(e){function t(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}e.exports=t},62488:function(e){function t(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}e.exports=t},82908:function(e){function t(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}e.exports=t},44286:function(e){function t(e){return e.split("")}e.exports=t},34865:function(e,t,n){var i=n(89465),r=n(77813),a=Object.prototype.hasOwnProperty;function s(e,t,n){var s=e[t];a.call(e,t)&&r(s,n)&&(void 0!==n||t in e)||i(e,t,n)}e.exports=s},18470:function(e,t,n){var i=n(77813);function r(e,t){for(var n=e.length;n--;)if(i(e[n][0],t))return n;return -1}e.exports=r},89465:function(e,t,n){var i=n(38777);function r(e,t,n){"__proto__"==t&&i?i(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}e.exports=r},41848:function(e){function t(e,t,n,i){for(var r=e.length,a=n+(i?1:-1);i?a--:++a<r;)if(t(e[a],a,e))return a;return -1}e.exports=t},68866:function(e,t,n){var i=n(62488),r=n(1469);function a(e,t,n){var a=t(e);return r(e)?a:i(a,n(e))}e.exports=a},44239:function(e,t,n){var i=n(62705),r=n(89607),a=n(2333),s="[object Null]",o="[object Undefined]",l=i?i.toStringTag:void 0;function u(e){return null==e?void 0===e?o:s:l&&l in Object(e)?r(e):a(e)}e.exports=u},42118:function(e,t,n){var i=n(41848),r=n(62722),a=n(42351);function s(e,t,n){return t==t?a(e,t,n):i(e,r,n)}e.exports=s},9454:function(e,t,n){var i=n(44239),r=n(37005),a="[object Arguments]";function s(e){return r(e)&&i(e)==a}e.exports=s},90939:function(e,t,n){var i=n(2492),r=n(37005);function a(e,t,n,s,o){return e===t||(null!=e&&null!=t&&(r(e)||r(t))?i(e,t,n,s,a,o):e!=e&&t!=t)}e.exports=a},2492:function(e,t,n){var i=n(46384),r=n(67114),a=n(18351),s=n(16096),o=n(64160),l=n(1469),u=n(44144),c=n(36719),d=1,h="[object Arguments]",f="[object Array]",p="[object Object]",m=Object.prototype.hasOwnProperty;function g(e,t,n,g,v,y){var _=l(e),b=l(t),x=_?f:o(e),C=b?f:o(t);x=x==h?p:x,C=C==h?p:C;var E=x==p,w=C==p,T=x==C;if(T&&u(e)){if(!u(t))return!1;_=!0,E=!1}if(T&&!E)return y||(y=new i),_||c(e)?r(e,t,n,g,v,y):a(e,t,x,n,g,v,y);if(!(n&d)){var S=E&&m.call(e,"__wrapped__"),L=w&&m.call(t,"__wrapped__");
13if(S||L){var P=S?e.value():e,M=L?t.value():t;return y||(y=new i),v(P,M,n,g,y)}}return!!T&&(y||(y=new i),s(e,t,n,g,v,y))}e.exports=g},62722:function(e){function t(e){return e!=e}e.exports=t},28458:function(e,t,n){var i=n(23560),r=n(15346),a=n(13218),s=n(80346),o=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,u=Object.prototype,c=Function.prototype.toString,d=u.hasOwnProperty,h=RegExp("^"+c.call(d).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(e){return!(!a(e)||r(e))&&(i(e)?h:l).test(s(e))}e.exports=f},38749:function(e,t,n){var i=n(44239),r=n(41780),a=n(37005),s="[object Arguments]",o="[object Array]",l="[object Boolean]",u="[object Date]",c="[object Error]",d="[object Function]",h="[object Map]",f="[object Number]",p="[object Object]",m="[object RegExp]",g="[object Set]",v="[object String]",y="[object WeakMap]",_="[object ArrayBuffer]",b="[object DataView]",x="[object Float64Array]",C="[object Int8Array]",E="[object Int16Array]",w="[object Int32Array]",T="[object Uint8Array]",S="[object Uint8ClampedArray]",L="[object Uint16Array]",P="[object Uint32Array]",M={};function A(e){return a(e)&&r(e.length)&&!!M[i(e)]}M["[object Float32Array]"]=M[x]=M[C]=M[E]=M[w]=M[T]=M[S]=M[L]=M[P]=!0,M[s]=M[o]=M[_]=M[l]=M[b]=M[u]=M[c]=M[d]=M[h]=M[f]=M[p]=M[m]=M[g]=M[v]=M[y]=!1,e.exports=A},280:function(e,t,n){var i=n(25726),r=n(86916),a=Object.prototype.hasOwnProperty;function s(e){if(!i(e))return r(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}e.exports=s},10313:function(e,t,n){var i=n(13218),r=n(25726),a=n(33498),s=Object.prototype.hasOwnProperty;function o(e){if(!i(e))return a(e);var t=r(e),n=[];for(var o in e)"constructor"==o&&(t||!s.call(e,o))||n.push(o);return n}e.exports=o},5976:function(e,t,n){var i=n(6557),r=n(45357),a=n(30061);function s(e,t){return a(r(e,t,i),e+"")}e.exports=s},56560:function(e,t,n){var i=n(75703),r=n(38777),a=n(6557),s=r?function(e,t){return r(e,"toString",{configurable:!0,enumerable:!1,value:i(t),writable:!0})}:a;e.exports=s},14259:function(e){function t(e,t,n){var i=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(r);++i<r;)a[i]=e[i+t];return a}e.exports=t},22545:function(e){function t(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}e.exports=t},80531:function(e,t,n){var i=n(62705),r=n(29932),a=n(1469),s=n(33448),o=1/0,l=i?i.prototype:void 0,u=l?l.toString:void 0;function c(e){if("string"==typeof e)return e;if(a(e))return r(e,c)+"";if(s(e))return u?u.call(e):"";var t=e+"";return"0"==t&&1/e==-o?"-0":t}e.exports=c},27561:function(e,t,n){var i=n(67990),r=/^\s+/;function a(e){return e?e.slice(0,i(e)+1).replace(r,""):e}e.exports=a},7518:function(e){function t(e){return function(t){return e(t)}}e.exports=t},74757:function(e){function t(e,t){return e.has(t)}e.exports=t},40180:function(e,t,n){var i=n(14259);function r(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:i(e,t,n)}e.exports=r},5512:function(e,t,n){var i=n(42118);function r(e,t){for(var n=e.length;n--&&i(t,e[n],0)>-1;);return n}e.exports=r},89817:function(e,t,n){var i=n(42118);function r(e,t){for(var n=-1,r=e.length;++n<r&&i(t,e[n],0)>-1;);return n}e.exports=r},98363:function(e,t,n){var i=n(34865),r=n(89465);function a(e,t,n,a){var s=!n;n||(n={});for(var o=-1,l=t.length;++o<l;){var u=t[o],c=a?a(n[u],e[u],u,n,e):void 0;void 0===c&&(c=e[u]),s?r(n,u,c):i(n,u,c)}return n}e.exports=a},14429:function(e,t,n){var i=n(55639)["__core-js_shared__"];e.exports=i},21463:function(e,t,n){var i=n(5976),r=n(16612);function a(e){return i(function(t,n){var i=-1,a=n.length,s=a>1?n[a-1]:void 0,o=a>2?n[2]:void 0;for(s=e.length>3&&"function"==typeof s?(a--,s):void 0,o&&r(n[0],n[1],o)&&(s=a<3?void 0:s,a=1),t=Object(t);++i<a;){var l=n[i];l&&e(t,l,i,s)}return t})}e.exports=a},38777:function(e,t,n){var i=n(10852),r=function(){try{var e=i(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=r},67114:function(e,t,n){var i=n(88668),r=n(82908),a=n(74757),s=1,o=2;function l(e,t,n,l,u,c){var d=n&s,h=e.length,f=t.length;if(h!=f&&!(d&&f>h))return!1;var p=c.get(e),m=c.get(t);if(p&&m)return p==t&&m==e;var g=-1,v=!0,y=n&o?new i:void 0;for(c.set(e,t),c.set(t,e);++g<h;){var _=e[g],b=t[g];if(l)var x=d?l(b,_,g,t,e,c):l(_,b,g,e,t,c);if(void 0!==x){if(x)continue;v=!1;break}if(y){if(!r(t,function(e,t){if(!a(y,t)&&(_===e||u(_,e,n,l,c)))return y.push(t)})){v=!1;break}}else if(!(_===b||u(_,b,n,l,c))){v=!1;break}}return c.delete(e),c.delete(t),v}e.exports=l},18351:function(e,t,n){var i=n(62705),r=n(11149),a=n(77813),s=n(67114),o=n(68776),l=n(21814),u=1,c=2,d="[object Boolean]",h="[object Date]",f="[object Error]",p="[object Map]",m="[object Number]",g="[object RegExp]",v="[object Set]",y="[object String]",_="[object Symbol]",b="[object ArrayBuffer]",x="[object DataView]",C=i?i.prototype:void 0,E=C?C.valueOf
13:void 0;function w(e,t,n,i,C,w,T){switch(n){case x:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case b:if(e.byteLength!=t.byteLength||!w(new r(e),new r(t)))break;return!0;case d:case h:case m:return a(+e,+t);case f:return e.name==t.name&&e.message==t.message;case g:case y:return e==t+"";case p:var S=o;case v:var L=i&u;if(S||(S=l),e.size!=t.size&&!L)break;var P=T.get(e);if(P)return P==t;i|=c,T.set(e,t);var M=s(S(e),S(t),i,C,w,T);return T.delete(e),M;case _:if(E)return E.call(e)==E.call(t)}return!1}e.exports=w},16096:function(e,t,n){var i=n(58234),r=1,a=Object.prototype.hasOwnProperty;function s(e,t,n,s,o,l){var u=n&r,c=i(e),d=c.length;if(d!=i(t).length&&!u)return!1;for(var h=d;h--;){var f=c[h];if(!(u?f in t:a.call(t,f)))return!1}var p=l.get(e),m=l.get(t);if(p&&m)return p==t&&m==e;var g=!0;l.set(e,t),l.set(t,e);for(var v=u;++h<d;){var y=e[f=c[h]],_=t[f];if(s)var b=u?s(_,y,f,t,e,l):s(y,_,f,e,t,l);if(!(void 0===b?y===_||o(y,_,n,s,l):b)){g=!1;break}v||(v="constructor"==f)}if(g&&!v){var x=e.constructor,C=t.constructor;x!=C&&"constructor"in e&&"constructor"in t&&!("function"==typeof x&&x instanceof x&&"function"==typeof C&&C instanceof C)&&(g=!1)}return l.delete(e),l.delete(t),g}e.exports=s},31957:function(e,t,n){var i="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=i},58234:function(e,t,n){var i=n(68866),r=n(99551),a=n(3674);function s(e){return i(e,a,r)}e.exports=s},45050:function(e,t,n){var i=n(37019);function r(e,t){var n=e.__data__;return i(t)?n["string"==typeof t?"string":"hash"]:n.map}e.exports=r},10852:function(e,t,n){var i=n(28458),r=n(47801);function a(e,t){var n=r(e,t);return i(n)?n:void 0}e.exports=a},89607:function(e,t,n){var i=n(62705),r=Object.prototype,a=r.hasOwnProperty,s=r.toString,o=i?i.toStringTag:void 0;function l(e){var t=a.call(e,o),n=e[o];try{e[o]=void 0;var i=!0}catch(e){}var r=s.call(e);return i&&(t?e[o]=n:delete e[o]),r}e.exports=l},99551:function(e,t,n){var i=n(34963),r=n(70479),a=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,o=s?function(e){return null==e?[]:i(s(e=Object(e)),function(t){return a.call(e,t)})}:r;e.exports=o},64160:function(e,t,n){var i=n(18552),r=n(57071),a=n(53818),s=n(58525),o=n(70577),l=n(44239),u=n(80346),c="[object Map]",d="[object Object]",h="[object Promise]",f="[object Set]",p="[object WeakMap]",m="[object DataView]",g=u(i),v=u(r),y=u(a),_=u(s),b=u(o),x=l;(i&&x(new i(new ArrayBuffer(1)))!=m||r&&x(new r)!=c||a&&x(a.resolve())!=h||s&&x(new s)!=f||o&&x(new o)!=p)&&(x=function(e){var t=l(e),n=t==d?e.constructor:void 0,i=n?u(n):"";if(i)switch(i){case g:return m;case v:return c;case y:return h;case _:return f;case b:return p}return t}),e.exports=x},47801:function(e){function t(e,t){return null==e?void 0:e[t]}e.exports=t},62689:function(e){var t=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function n(e){return t.test(e)}e.exports=n},51789:function(e,t,n){var i=n(94536);function r(){this.__data__=i?i(null):{},this.size=0}e.exports=r},80401:function(e){function t(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}e.exports=t},57667:function(e,t,n){var i=n(94536),r="__lodash_hash_undefined__",a=Object.prototype.hasOwnProperty;function s(e){var t=this.__data__;if(i){var n=t[e];return n===r?void 0:n}return a.call(t,e)?t[e]:void 0}e.exports=s},21327:function(e,t,n){var i=n(94536),r=Object.prototype.hasOwnProperty;function a(e){var t=this.__data__;return i?void 0!==t[e]:r.call(t,e)}e.exports=a},81866:function(e,t,n){var i=n(94536),r="__lodash_hash_undefined__";function a(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=i&&void 0===t?r:t,this}e.exports=a},65776:function(e){var t=9007199254740991,n=/^(?:0|[1-9]\d*)$/;function i(e,i){var r=typeof e;return!!(i=null==i?t:i)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<i}e.exports=i},16612:function(e,t,n){var i=n(77813),r=n(98612),a=n(65776),s=n(13218);function o(e,t,n){if(!s(n))return!1;var o=typeof t;return("number"==o?!!(r(n)&&a(t,n.length)):"string"==o&&t in n)&&i(n[t],e)}e.exports=o},37019:function(e){function t(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}e.exports=t},15346:function(e,t,n){var i=n(14429),r=function(){var e=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||"");
13return e?"Symbol(src)_1."+e:""}();function a(e){return!!r&&r in e}e.exports=a},25726:function(e){var t=Object.prototype;function n(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}e.exports=n},27040:function(e){function t(){this.__data__=[],this.size=0}e.exports=t},14125:function(e,t,n){var i=n(18470),r=Array.prototype.splice;function a(e){var t=this.__data__,n=i(t,e);return!(n<0)&&(n==t.length-1?t.pop():r.call(t,n,1),--this.size,!0)}e.exports=a},82117:function(e,t,n){var i=n(18470);function r(e){var t=this.__data__,n=i(t,e);return n<0?void 0:t[n][1]}e.exports=r},67518:function(e,t,n){var i=n(18470);function r(e){return i(this.__data__,e)>-1}e.exports=r},54705:function(e,t,n){var i=n(18470);function r(e,t){var n=this.__data__,r=i(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}e.exports=r},24785:function(e,t,n){var i=n(1989),r=n(38407),a=n(57071);function s(){this.size=0,this.__data__={hash:new i,map:new(a||r),string:new i}}e.exports=s},11285:function(e,t,n){var i=n(45050);function r(e){var t=i(this,e).delete(e);return this.size-=t?1:0,t}e.exports=r},96e3:function(e,t,n){var i=n(45050);function r(e){return i(this,e).get(e)}e.exports=r},49916:function(e,t,n){var i=n(45050);function r(e){return i(this,e).has(e)}e.exports=r},95265:function(e,t,n){var i=n(45050);function r(e,t){var n=i(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}e.exports=r},68776:function(e){function t(e){var t=-1,n=Array(e.size);return e.forEach(function(e,i){n[++t]=[i,e]}),n}e.exports=t},94536:function(e,t,n){var i=n(10852)(Object,"create");e.exports=i},86916:function(e,t,n){var i=n(5569)(Object.keys,Object);e.exports=i},33498:function(e){function t(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}e.exports=t},31167:function(e,t,n){e=n.nmd(e);var i=n(31957),r=t&&!t.nodeType&&t,a=r&&e&&!e.nodeType&&e,s=a&&a.exports===r&&i.process,o=function(){try{var e=a&&a.require&&a.require("util").types;if(e)return e;return s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=o},2333:function(e){var t=Object.prototype.toString;function n(e){return t.call(e)}e.exports=n},5569:function(e){function t(e,t){return function(n){return e(t(n))}}e.exports=t},45357:function(e,t,n){var i=n(96874),r=Math.max;function a(e,t,n){return t=r(void 0===t?e.length-1:t,0),function(){for(var a=arguments,s=-1,o=r(a.length-t,0),l=Array(o);++s<o;)l[s]=a[t+s];s=-1;for(var u=Array(t+1);++s<t;)u[s]=a[s];return u[t]=n(l),i(e,this,u)}}e.exports=a},55639:function(e,t,n){var i=n(31957),r="object"==typeof self&&self&&self.Object===Object&&self,a=i||r||Function("return this")();e.exports=a},90619:function(e){var t="__lodash_hash_undefined__";function n(e){return this.__data__.set(e,t),this}e.exports=n},72385:function(e){function t(e){return this.__data__.has(e)}e.exports=t},21814:function(e){function t(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}e.exports=t},30061:function(e,t,n){var i=n(56560),r=n(21275)(i);e.exports=r},21275:function(e){var t=800,n=16,i=Date.now;function r(e){var r=0,a=0;return function(){var s=i(),o=n-(s-a);if(a=s,o>0){if(++r>=t)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}e.exports=r},37465:function(e,t,n){var i=n(38407);function r(){this.__data__=new i,this.size=0}e.exports=r},63779:function(e){function t(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}e.exports=t},67599:function(e){function t(e){return this.__data__.get(e)}e.exports=t},44758:function(e){function t(e){return this.__data__.has(e)}e.exports=t},34309:function(e,t,n){var i=n(38407),r=n(57071),a=n(83369),s=200;function o(e,t){var n=this.__data__;if(n instanceof i){var o=n.__data__;if(!r||o.length<s-1)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(o)}return n.set(e,t),this.size=n.size,this}e.exports=o},42351:function(e){function t(e,t,n){for(var i=n-1,r=e.length;++i<r;)if(e[i]===t)return i;return -1}e.exports=t},83140:function(e,t,n){var i=n(44286),r=n(62689),a=n(676);function s(e){return r(e)?a(e):i(e)}e.exports=s},80346:function(e){var t=Function.prototype.toString;function n(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}e.exports=n},67990:function(e){var t=/\s/;function n(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}
13e.exports=n},676:function(e){var t="\ud800-\udfff",n="["+t+"]",i="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\ud83c[\udffb-\udfff]",a="[^"+t+"]",s="(?:\ud83c[\udde6-\uddff]){2}",o="[\ud800-\udbff][\udc00-\udfff]",l="(?:"+i+"|"+r+")?",u="[\\ufe0e\\ufe0f]?",c="(?:\\u200d(?:"+[a,s,o].join("|")+")"+u+l+")*",d=u+l+c,h=RegExp(r+"(?="+r+")|(?:"+[a+i+"?",i,s,o,n].join("|")+")"+d,"g");function f(e){return e.match(h)||[]}e.exports=f},3045:function(e,t,n){var i=n(98363),r=n(21463),a=n(81704),s=r(function(e,t){i(t,a(t),e)});e.exports=s},89567:function(e,t,n){var i=n(40554),r="Expected a function";function a(e,t){var n;if("function"!=typeof t)throw TypeError(r);return e=i(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}e.exports=a},75703:function(e){function t(e){return function(){return e}}e.exports=t},23279:function(e,t,n){var i=n(13218),r=n(7771),a=n(14841),s="Expected a function",o=Math.max,l=Math.min;function u(e,t,n){var u,c,d,h,f,p,m=0,g=!1,v=!1,y=!0;if("function"!=typeof e)throw TypeError(s);function _(t){var n=u,i=c;return u=c=void 0,m=t,h=e.apply(i,n)}function b(e){return m=e,f=setTimeout(E,t),g?_(e):h}function x(e){var n=e-p,i=e-m,r=t-n;return v?l(r,d-i):r}function C(e){var n=e-p,i=e-m;return void 0===p||n>=t||n<0||v&&i>=d}function E(){var e=r();if(C(e))return w(e);f=setTimeout(E,x(e))}function w(e){return(f=void 0,y&&u)?_(e):(u=c=void 0,h)}function T(){void 0!==f&&clearTimeout(f),m=0,u=p=c=f=void 0}function S(){return void 0===f?h:w(r())}function L(){var e=r(),n=C(e);if(u=arguments,c=this,p=e,n){if(void 0===f)return b(p);if(v)return clearTimeout(f),f=setTimeout(E,t),_(p)}return void 0===f&&(f=setTimeout(E,t)),h}return t=a(t)||0,i(n)&&(g=!!n.leading,d=(v="maxWait"in n)?o(a(n.maxWait)||0,t):d,y="trailing"in n?!!n.trailing:y),L.cancel=T,L.flush=S,L}e.exports=u},91747:function(e,t,n){var i=n(5976),r=n(77813),a=n(16612),s=n(81704),o=Object.prototype,l=o.hasOwnProperty,u=i(function(e,t){e=Object(e);var n=-1,i=t.length,u=i>2?t[2]:void 0;for(u&&a(t[0],t[1],u)&&(i=1);++n<i;)for(var c=t[n],d=s(c),h=-1,f=d.length;++h<f;){var p=d[h],m=e[p];(void 0===m||r(m,o[p])&&!l.call(e,p))&&(e[p]=c[p])}return e});e.exports=u},77813:function(e){function t(e,t){return e===t||e!=e&&t!=t}e.exports=t},22205:function(e,t,n){e.exports=n(3045)},6557:function(e){function t(e){return e}e.exports=t},35694:function(e,t,n){var i=n(9454),r=n(37005),a=Object.prototype,s=a.hasOwnProperty,o=a.propertyIsEnumerable,l=i(function(){return arguments}())?i:function(e){return r(e)&&s.call(e,"callee")&&!o.call(e,"callee")};e.exports=l},1469:function(e){var t=Array.isArray;e.exports=t},98612:function(e,t,n){var i=n(23560),r=n(41780);function a(e){return null!=e&&r(e.length)&&!i(e)}e.exports=a},51584:function(e,t,n){var i=n(44239),r=n(37005),a="[object Boolean]";function s(e){return!0===e||!1===e||r(e)&&i(e)==a}e.exports=s},44144:function(e,t,n){e=n.nmd(e);var i=n(55639),r=n(95062),a=t&&!t.nodeType&&t,s=a&&e&&!e.nodeType&&e,o=s&&s.exports===a?i.Buffer:void 0,l=(o?o.isBuffer:void 0)||r;e.exports=l},41609:function(e,t,n){var i=n(280),r=n(64160),a=n(35694),s=n(1469),o=n(98612),l=n(44144),u=n(25726),c=n(36719),d="[object Map]",h="[object Set]",f=Object.prototype.hasOwnProperty;function p(e){if(null==e)return!0;if(o(e)&&(s(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||c(e)||a(e)))return!e.length;var t=r(e);if(t==d||t==h)return!e.size;if(u(e))return!i(e).length;for(var n in e)if(f.call(e,n))return!1;return!0}e.exports=p},18446:function(e,t,n){var i=n(90939);function r(e,t){return i(e,t)}e.exports=r},23560:function(e,t,n){var i=n(44239),r=n(13218),a="[object AsyncFunction]",s="[object Function]",o="[object GeneratorFunction]",l="[object Proxy]";function u(e){if(!r(e))return!1;var t=i(e);return t==s||t==o||t==a||t==l}e.exports=u},41780:function(e){var t=9007199254740991;function n(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=t}e.exports=n},14293:function(e){function t(e){return null==e}e.exports=t},81763:function(e,t,n){var i=n(44239),r=n(37005),a="[object Number]";function s(e){return"number"==typeof e||r(e)&&i(e)==a}e.exports=s},13218:function(e){function t(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=t},37005:function(e){function t(e){return null!=e&&"object"==typeof e}e.exports=t},47037:function(e,t,n){var i=n(44239),r=n(1469),a=n(37005),s="[object String]";function o(e){return"string"==typeof e||!r(e)&&a(e)&&i(e)==s}e.exports=o},33448:function(e,t,n){var i=n(44239),r=n(37005),a="[object Symbol]";function s(e){return"symbol"==typeof e||r(e)&&i(e)==a}e.exports=s},36719:function(e,t,n){var i=n(38749),r=n(7518),a=n(31167),s=a&&a.isTypedArray,o=s?r(s):i;e.exports=o},52353:function(e){function t(e){return void 0===e}e.exports=t},3674:function(e,t,n){var i=n(14636),r=n(280),a=n(98612);function s(e){return a(e)?i(e):r(e)}e.exports=s},81704:function(e,t,n){var i=n(14636),r=n(10313),a=n(98612);function s(e){return a(e)?i(e,!0):r(e)}e.exports=s},7771:function(e,t,n){var i=n(55639),r=function(){return i.Date.now()};e.exports=r},51463:function(e,t,n){var i=n(89567);function r(e){return i(2,e)}e.exports=r},70479:function(e){function t(){return[]}e.exports=t},95062:function(e){function t(){return!1}e.exports=t},18601:function(e,t,n){var i=n(14841),r=1/0,a=17976931348623157e292;function s(e){return e?(e=i(e))===r||e===-r?(e<0?-1:1)*a:e==e?e:0:0===e?e:0}e.exports=s},40554:function(e,t,n){var i=n(18601);function r(e){var t=i(e),n=t%1;return t==t?n?t-n:t:0}e.exports=r},14841:function(e,t,n){var i=n(27561),r=n(13218),a=n(33448),s=0/0,o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;function d(e){if("number"==typeof e)return e;if(a(e))return s;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=i(e);var n=l.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):o.test(e)?s:+e}e.exports=d},79833:function(e,t,n){var i=n(80531);function r(e){return null==e?"":i(e)}e.exports=r},92742:function(e,t,n){var i=n(80531),r=n(27561),a=n(40180),s=n(5512),o=n(89817),l=n(83140),u=n(79833);
13function c(e,t,n){if((e=u(e))&&(n||void 0===t))return r(e);if(!e||!(t=i(t)))return e;var c=l(e),d=l(t),h=o(c,d),f=s(c,d)+1;return a(c,h,f).join("")}e.exports=c},10691:function(e,t,n){var i=n(80531),r=n(40180),a=n(5512),s=n(83140),o=n(79833),l=n(67990);function u(e,t,n){if((e=o(e))&&(n||void 0===t))return e.slice(0,l(e)+1);if(!e||!(t=i(t)))return e;var u=s(e),c=a(u,s(t))+1;return r(u,0,c).join("")}e.exports=u},66477:function(e,t){"use strict";t.Headers=self.Headers,t.Request=self.Request,t.Response=self.Response,t.fetch=self.fetch},83454:function(e,t,n){"use strict";var i,r;e.exports=(null==(i=n.g.process)?void 0:i.env)&&"object"==typeof(null==(r=n.g.process)?void 0:r.env)?n.g.process:n(77663)},6840:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(70817)}])},29705:function(e,t,n){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}n.d(t,{KM:function(){return E},Ki:function(){return L},QR:function(){return V},Qj:function(){return q},ZP:function(){return q},ZV:function(){return O},iz:function(){return N},r1:function(){return F},xJ:function(){return C},y4:function(){return U}});var a,s,o,l,u,c,d,h,f,p,m,g,v,y,_=function(){return a||(a=window.gsap)&&a.registerPlugin&&a},b=1,x=[],C=[],E=[],w=Date.now,T=function(e,t){return t},S=function(){var e=p.core,t=e.bridge||{},n=e._scrollers,i=e._proxies;n.push.apply(n,C),i.push.apply(i,E),C=n,E=i,T=function(e,n){return t[e](n)}},L=function(e,t){return~E.indexOf(e)&&E[E.indexOf(e)+1][t]},P=function(e){return!!~m.indexOf(e)},M=function(e,t,n,i,r){return e.addEventListener(t,n,{passive:!1!==i,capture:!!r})},A=function(e,t,n,i){return e.removeEventListener(t,n,!!i)},I="scrollLeft",R="scrollTop",k=function(){return g&&g.isPressed||C.cache++},D=function(e,t){var n=function n(i){if(i||0===i){b&&(l.history.scrollRestoration="manual");var r=g&&g.isPressed;e(i=n.v=Math.round(i)||(g&&g.iOS?1:0)),n.cacheID=C.cache,r&&T("ss",i)}else(t||C.cache!==n.cacheID||T("ref"))&&(n.cacheID=C.cache,n.v=e());return n.v+n.offset};return n.offset=0,e&&n},N={s:I,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:D(function(e){return arguments.length?l.scrollTo(e,F.sc()):l.pageXOffset||u[I]||c[I]||d[I]||0})},F={s:R,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:N,sc:D(function(e){return arguments.length?l.scrollTo(N.sc(),e):l.pageYOffset||u[R]||c[R]||d[R]||0})},O=function(e,t){return(t&&t._ctx&&t._ctx.selector||a.utils.toArray)(e)[0]||("string"==typeof e&&!1!==a.config().nullTargetWarn?console.warn("Element not found:",e):null)},j=function(e,t){for(var n=t.length;n--;)if(t[n]===e||t[n].contains(e))return!0;return!1},U=function(e,t){var n=t.s,i=t.sc;P(e)&&(e=u.scrollingElement||c);var r=C.indexOf(e),s=i===F.sc?1:2;~r||(r=C.push(e)-1),C[r+s]||M(e,"scroll",k);var o=C[r+s],l=o||(C[r+s]=D(L(e,n),!0)||(P(e)?i:D(function(t){return arguments.length?e[n]=t:e[n]})));return l.target=e,o||(l.smooth="smooth"===a.getProperty(e,"scrollBehavior")),l},V=function(e,t,n){var i=e,r=e,a=w(),s=a,o=t||50,l=Math.max(500,3*o),u=function(e,t){var l=w();t||l-a>o?(r=i,i=e,s=a,a=l):n?i+=e:i=r+(e-r)/(l-s)*(a-s)},c=function(e){var t=s,o=r,c=w();return(e||0===e)&&e!==i&&u(e),a===s||c-s>l?0:(i+(n?o:-o))/((n?c:a)-t)*1e3};return{update:u,reset:function(){r=i=n?0:i,s=a=0},getVelocity:c}},B=function(e,t){return t&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},H=function(e){var t=Math.max.apply(Math,e),n=Math.min.apply(Math,e);return Math.abs(t)>=Math.abs(n)?t:n},G=function(){(p=a.core.globals().ScrollTrigger)&&p.core&&S()},z=function(e){return a=e||_(),!s&&a&&"undefined"!=typeof document&&document.body&&(l=window,c=(u=document).documentElement,d=u.body,m=[l,u,c,d],o=a.utils.clamp,y=a.core.context||function(){},f="onpointerenter"in d?"pointer":"mouse",h=q.isTouch=l.matchMedia&&l.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in l||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,v=q.eventTypes=("ontouchstart"in c?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in c?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return b=0},500),G(),s=1),s};N.op=F,C.cache=0;var q=function(){function e(e){this.init(e)}return e.prototype.init=function(e){s||z(a)||console.warn("Please gsap.registerPlugin(Observer)"),p||G();var t=e.tolerance,n=e.dragMinimum,i=e.type,r=e.target,o=e.lineHeight,m=e.debounce,_=e.preventDefault,b=e.onStop,C=e.onStopDelay,E=e.ignore,T=e.wheelSpeed,S=e.event,L=e.onDragStart,I=e.onDragEnd,R=e.onDrag,D=e.onPress,q=e.onRelease,W=e.onRight,$=e.onLeft,Z=e.onUp,Y=e.onDown,K=e.onCh
13angeX,X=e.onChangeY,Q=e.onChange,J=e.onToggleX,ee=e.onToggleY,et=e.onHover,en=e.onHoverEnd,ei=e.onMove,er=e.ignoreCheck,ea=e.isNormalizer,es=e.onGestureStart,eo=e.onGestureEnd,el=e.onWheel,eu=e.onEnable,ec=e.onDisable,ed=e.onClick,eh=e.scrollSpeed,ef=e.capture,ep=e.allowClicks,em=e.lockAxis,eg=e.onLockAxis;this.target=r=O(r)||c,this.vars=e,E&&(E=a.utils.toArray(E)),t=t||1e-9,n=n||0,T=T||1,eh=eh||1,i=i||"wheel,touch,pointer",m=!1!==m,o||(o=parseFloat(l.getComputedStyle(d).lineHeight)||22);var ev,ey,e_,eb,ex,eC,eE,ew=this,eT=0,eS=0,eL=e.passive||!_&&!1!==e.passive,eP=U(r,N),eM=U(r,F),eA=eP(),eI=eM(),eR=~i.indexOf("touch")&&!~i.indexOf("pointer")&&"pointerdown"===v[0],ek=P(r),eD=r.ownerDocument||u,eN=[0,0,0],eF=[0,0,0],eO=0,ej=function(){return eO=w()},eU=function(e,t){return(ew.event=e)&&E&&j(e.target,E)||t&&eR&&"touch"!==e.pointerType||er&&er(e,t)},eV=function(){ew._vx.reset(),ew._vy.reset(),ey.pause(),b&&b(ew)},eB=function(){var e=ew.deltaX=H(eN),n=ew.deltaY=H(eF),i=Math.abs(e)>=t,r=Math.abs(n)>=t;Q&&(i||r)&&Q(ew,e,n,eN,eF),i&&(W&&ew.deltaX>0&&W(ew),$&&ew.deltaX<0&&$(ew),K&&K(ew),J&&ew.deltaX<0!=eT<0&&J(ew),eT=ew.deltaX,eN[0]=eN[1]=eN[2]=0),r&&(Y&&ew.deltaY>0&&Y(ew),Z&&ew.deltaY<0&&Z(ew),X&&X(ew),ee&&ew.deltaY<0!=eS<0&&ee(ew),eS=ew.deltaY,eF[0]=eF[1]=eF[2]=0),(eb||e_)&&(ei&&ei(ew),e_&&(L&&1===e_&&L(ew),R&&R(ew),e_=0),eb=!1),eC&&(eC=!1,1)&&eg&&eg(ew),ex&&(el(ew),ex=!1),ev=0},eH=function(e,t,n){eN[n]+=e,eF[n]+=t,ew._vx.update(e),ew._vy.update(t),m?ev||(ev=requestAnimationFrame(eB)):eB()},eG=function(e,t){em&&!eE&&(ew.axis=eE=Math.abs(e)>Math.abs(t)?"x":"y",eC=!0),"y"!==eE&&(eN[2]+=e,ew._vx.update(e,!0)),"x"!==eE&&(eF[2]+=t,ew._vy.update(t,!0)),m?ev||(ev=requestAnimationFrame(eB)):eB()},ez=function(e){if(!eU(e,1)){var t=(e=B(e,_)).clientX,i=e.clientY,r=t-ew.x,a=i-ew.y,s=ew.isDragging;ew.x=t,ew.y=i,(s||(r||a)&&(Math.abs(ew.startX-t)>=n||Math.abs(ew.startY-i)>=n))&&(e_=s?2:1,s||(ew.isDragging=!0),eG(r,a))}},eq=ew.onPress=function(e){eU(e,1)||e&&e.button||(ew.axis=eE=null,ey.pause(),ew.isPressed=!0,e=B(e),eT=eS=0,ew.startX=ew.x=e.clientX,ew.startY=ew.y=e.clientY,ew._vx.reset(),ew._vy.reset(),M(ea?r:eD,v[1],ez,eL,!0),ew.deltaX=ew.deltaY=0,D&&D(ew))},eW=ew.onRelease=function(e){if(!eU(e,1)){A(ea?r:eD,v[1],ez,!0);var t=!isNaN(ew.y-ew.startY),n=ew.isDragging,i=n&&(Math.abs(ew.x-ew.startX)>3||Math.abs(ew.y-ew.startY)>3),s=B(e);!i&&t&&(ew._vx.reset(),ew._vy.reset(),_&&ep&&a.delayedCall(.08,function(){if(w()-eO>300&&!e.defaultPrevented){if(e.target.click)e.target.click();else if(eD.createEvent){var t=eD.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,l,1,s.screenX,s.screenY,s.clientX,s.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(t)}}})),ew.isDragging=ew.isGesturing=ew.isPressed=!1,b&&n&&!ea&&ey.restart(!0),e_&&eB(),I&&n&&I(ew),q&&q(ew,i)}},e$=function(e){return e.touches&&e.touches.length>1&&(ew.isGesturing=!0)&&es(e,ew.isDragging)},eZ=function(){return ew.isGesturing=!1,eo(ew)},eY=function(e){if(!eU(e)){var t=eP(),n=eM();eH((t-eA)*eh,(n-eI)*eh,1),eA=t,eI=n,b&&ey.restart(!0)}},eK=function(e){if(!eU(e)){e=B(e,_),el&&(ex=!0);
13var t=(1===e.deltaMode?o:2===e.deltaMode?l.innerHeight:1)*T;eH(e.deltaX*t,e.deltaY*t,0),b&&!ea&&ey.restart(!0)}},eX=function(e){if(!eU(e)){var t=e.clientX,n=e.clientY,i=t-ew.x,r=n-ew.y;ew.x=t,ew.y=n,eb=!0,b&&ey.restart(!0),(i||r)&&eG(i,r)}},eQ=function(e){ew.event=e,et(ew)},eJ=function(e){ew.event=e,en(ew)},e0=function(e){return eU(e)||B(e,_)&&ed(ew)};ey=ew._dc=a.delayedCall(C||.25,eV).pause(),ew.deltaX=ew.deltaY=0,ew._vx=V(0,50,!0),ew._vy=V(0,50,!0),ew.scrollX=eP,ew.scrollY=eM,ew.isDragging=ew.isGesturing=ew.isPressed=!1,y(this),ew.enable=function(e){return!ew.isEnabled&&(M(ek?eD:r,"scroll",k),i.indexOf("scroll")>=0&&M(ek?eD:r,"scroll",eY,eL,ef),i.indexOf("wheel")>=0&&M(r,"wheel",eK,eL,ef),(i.indexOf("touch")>=0&&h||i.indexOf("pointer")>=0)&&(M(r,v[0],eq,eL,ef),M(eD,v[2],eW),M(eD,v[3],eW),ep&&M(r,"click",ej,!0,!0),ed&&M(r,"click",e0),es&&M(eD,"gesturestart",e$),eo&&M(eD,"gestureend",eZ),et&&M(r,f+"enter",eQ),en&&M(r,f+"leave",eJ),ei&&M(r,f+"move",eX)),ew.isEnabled=!0,ew.isDragging=ew.isGesturing=ew.isPressed=eb=e_=!1,ew._vx.reset(),ew._vy.reset(),eA=eP(),eI=eM(),e&&e.type&&eq(e),eu&&eu(ew)),ew},ew.disable=function(){ew.isEnabled&&(x.filter(function(e){return e!==ew&&P(e.target)}).length||A(ek?eD:r,"scroll",k),ew.isPressed&&(ew._vx.reset(),ew._vy.reset(),A(ea?r:eD,v[1],ez,!0)),A(ek?eD:r,"scroll",eY,ef),A(r,"wheel",eK,ef),A(r,v[0],eq,ef),A(eD,v[2],eW),A(eD,v[3],eW),A(r,"click",ej,!0),A(r,"click",e0),A(eD,"gesturestart",e$),A(eD,"gestureend",eZ),A(r,f+"enter",eQ),A(r,f+"leave",eJ),A(r,f+"move",eX),ew.isEnabled=ew.isPressed=ew.isDragging=!1,ec&&ec(ew))},ew.kill=ew.revert=function(){ew.disable();var e=x.indexOf(ew);e>=0&&x.splice(e,1),g===ew&&(g=0)},x.push(ew),ea&&P(r)&&(g=ew),ew.enable(S)},r(e,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),e}();q.version="3.13.0",q.create=function(e){return new q(e)},q.register=z,q.getAll=function(){return x.slice()},q.getById=function(e){return x.filter(function(t){return t.vars.id===e})[0]},_()&&a.registerPlugin(q)},76348:function(e,t,n){"use strict";n.d(t,{L:function(){return x}});var i,r,a,s,o,l,u,c,d=function(){return!0},h=function(){return i||d()&&(i=window.gsap)&&i.registerPlugin&&i},f=function(e){return"string"==typeof e},p=function(e){return"function"==typeof e},m=function(e,t){var n="x"===t?"Width":"Height",i="scroll"+n,r="client"+n;return e===a||e===s||e===o?Math.max(s[i],o[i])-(a["inner"+n]||s[r]||o[r]):e[i]-e["offset"+n]},g=function(e,t){var n="scroll"+("x"===t?"Left":"Top");return e===a&&(null!=e.pageXOffset?n="page"+t.toUpperCase()+"Offset":e=null!=s[n]?s:o),function(){return e[n]}},v=function(e,t,n,i){if(p(e)&&(e=e(t,n,i)),"object"!=typeof e)return f(e)&&"max"!==e&&"="!==e.charAt(1)?{x:e,y:e}:{y:e};if(e.nodeType)return{y:e,x:e};var r,a={};for(r in e)a[r]="onAutoKill"!==r&&p(e[r])?e[r](t,n,i):e[r];return a},y=function(e,t){if(!(e=l(e)[0])||!e.getBoundingClientRect)return console.warn("scrollTo target doesn't exist. Using 0")||{x:0,y:0};var n=e.getBoundingClientRect(),i=!t||t===a||t===o,r=i?{top:s.clientTop-(a.pageYOffset||s.scrollTop||o.scrollTop||0),left:s.clientLeft-(a.pageXOffset||s.scrollLeft||o.scrollLeft||0)}:t.getBoundingClientRect(),u={x:n.left-r.left,y:n.top-r.top};return!i&&t&&(u.x+=g(t,"x")(),u.y+=g(t,"y")()),u},_=function(e,t,n,i,r){return isNaN(e)||"object"==typeof e?f(e)&&"="===e.charAt(1)?parseFloat(e.substr(2))*("-"===e.charAt(0)?-1:1)+i-r:"max"===e?m(t,n)-r:Math.min(m(t,n),y(e,t)[n]-r):parseFloat(e)-r},b=function(){i=h(),d()&&i&&"undefined"!=typeof document&&document.body&&(a=window,o=document.body,s=document.documentElement,l=i.utils.toArray,i.config({autoKillThreshold:7}),u=i.config(),r=1)},x={version:"3.13.0",name:"scrollTo",rawVars:1,register:function(e){i=e,b()},init:function(e,t,n,s,o){r||b();var l=this,d=i.getProperty(e,"scrollSnapType");l.isWin=e===a,l.target=e,l.tween=n,t=v(t,s,e,o),l.vars=t,l.autoKill=!!("autoKill"in t?t:u).autoKill,l.getX=g(e,"x"),l.getY=g(e,"y"),l.x=l.xPrev=l.getX(),l.y=l.yPrev=l.getY(),c||(c=i.core.globals().ScrollTrigger),"smooth"===i.getProperty(e,"scrollBehavior")&&i.set(e,{scrollBehavior:"auto"}),d&&"none"!==d&&(l.snap=1,l.snapInline=e.style.scrollSnapType,e.style.scrollSnapType="none"),null!=t.x?(l.add(l,"x",l.x,_(t.x,e,"x",l.x,t.offsetX||0),s,o),l._props.push("scrollTo_x")):l.skipX=1,null!=t.y?(l.add(l,"y",l.y,_(t.y,e,"y",l.y,t.offsetY||0),s,o),l._props.push("scrollTo_y")):l.skipY=1},render:function(e,t){for(var n,i,r,s,o,l=t._pt,d=t.target,h=t.tween,f=t.autoKill,p=t.xPrev,g=t.yPrev,v=t.isWin,y=t.snap,_=t.snap
13Inline;l;)l.r(e,l.d),l=l._next;n=v||!t.skipX?t.getX():p,r=(i=v||!t.skipY?t.getY():g)-g,s=n-p,o=u.autoKillThreshold,t.x<0&&(t.x=0),t.y<0&&(t.y=0),f&&(!t.skipX&&(s>o||s<-o)&&n<m(d,"x")&&(t.skipX=1),!t.skipY&&(r>o||r<-o)&&i<m(d,"y")&&(t.skipY=1),t.skipX&&t.skipY&&(h.kill(),t.vars.onAutoKill&&t.vars.onAutoKill.apply(h,t.vars.onAutoKillParams||[]))),v?a.scrollTo(t.skipX?n:t.x,t.skipY?i:t.y):(t.skipY||(d.scrollTop=t.y),t.skipX||(d.scrollLeft=t.x)),y&&(1===e||0===e)&&(i=d.scrollTop,n=d.scrollLeft,_?d.style.scrollSnapType=_:d.style.removeProperty("scroll-snap-type"),d.scrollTop=i+1,d.scrollLeft=n+1,d.scrollTop=i,d.scrollLeft=n),t.xPrev=t.x,t.yPrev=t.y,c&&c.update()},kill:function(e){var t="scrollTo"===e,n=this._props.indexOf(e);return(t||"scrollTo_x"===e)&&(this.skipX=1),(t||"scrollTo_y"===e)&&(this.skipY=1),n>-1&&this._props.splice(n,1),!this._props.length}};x.max=m,x.getOffset=y,x.buildGetter=g,x.config=function(e){for(var t in u||b()||(u=i.config()),e)u[t]=e[t]},h()&&i.registerPlugin(x)},68563:function(e,t,n){"use strict";n.d(t,{Z:function(){return tE},i:function(){return tE}});var i,r,a,s,o,l,u,c,d,h,f,p,m,g,v,y,_,b,x,C,E,w,T,S,L,P,M,A,I,R,k,D,N,F,O,j,U,V,B=n(29705),H=1,G=Date.now,z=G(),q=0,W=0,$=function(e,t,n){var i=eu(e)&&("clamp("===e.substr(0,6)||e.indexOf("max")>-1);return n["_"+t+"Clamp"]=i,i?e.substr(6,e.length-7):e},Z=function(e,t){return t&&(!eu(e)||"clamp("!==e.substr(0,6))?"clamp("+e+")":e},Y=function e(){return W&&requestAnimationFrame(e)},K=function(){return g=1},X=function(){return g=0},Q=function(e){return e},J=function(e){return Math.round(1e5*e)/1e5||0},ee=function(){return!0},et=function(){return i||ee()&&(i=window.gsap)&&i.registerPlugin&&i},en=function(e){return!!~u.indexOf(e)},ei=function(e){return("Height"===e?k:a["inner"+e])||o["client"+e]||l["client"+e]},er=function(e){return(0,B.Ki)(e,"getBoundingClientRect")||(en(e)?function(){return tg.width=a.innerWidth,tg.height=k,tg}:function(){return eD(e)})},ea=function(e,t,n){var i=n.d,r=n.d2,a=n.a;return(a=(0,B.Ki)(e,"getBoundingClientRect"))?function(){return a()[i]}:function(){return(t?ei(r):e["client"+r])||0}},es=function(e,t){return!t||~B.KM.indexOf(e)?er(e):function(){return tg}},eo=function(e,t){var n=t.s,i=t.d2,r=t.d,a=t.a;return Math.max(0,(n="scroll"+i,a=(0,B.Ki)(e,n))?a()-er(e)()[r]:en(e)?(o[n]||l[n])-ei(i):e[n]-e["offset"+i])},el=function(e,t){for(var n=0;n<x.length;n+=3)(!t||~t.indexOf(x[n+1]))&&e(x[n],x[n+1],x[n+2])},eu=function(e){return"string"==typeof e},ec=function(e){return"function"==typeof e},ed=function(e){return"number"==typeof e},eh=function(e){return"object"==typeof e},ef=function(e,t,n){return e&&e.progress(t?0:1)&&n&&e.pause()},ep=function(e,t){if(e.enabled){var n=e._ctx?e._ctx.add(function(){return t(e)}):t(e);n&&n.totalTime&&(e.callbackAnimation=n)}},em=Math.abs,eg="left",ev="top",ey="right",e_="bottom",eb="width",ex="height",eC="Right",eE="Left",ew="Top",eT="Bottom",eS="padding",eL="margin",eP="Width",eM="Height",eA="px",eI=function(e){return a.getComputedStyle(e)},eR=function(e){var t=eI(e).position;e.style.position="absolute"===t||"fixed"===t?t:"relative"},ek=function(e,t){for(var n in t)n in e||(e[n]=t[n]);return e},eD=function(e,t){var n=t&&"matrix(1, 0, 0, 1, 0, 0)"!==eI(e)[v]&&i.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),r=e.getBoundingClientRect();return n&&n.progress(0).kill(),r},eN=function(e,t){var n=t.d2;return e["offset"+n]||e["client"+n]||0},eF=function(e){var t,n=[],i=e.labels,r=e.duration();for(t in i)n.push(i[t]/r);return n},eO=function(e){return function(t){return i.utils.snap(eF(e),t)}},ej=function(e){var t=i.utils.snap(e),n=Array.isArray(e)&&e.slice(0).sort(function(e,t){return e-t});return n?function(e,i,r){var a;if(void 0===r&&(r=.001),!i)return t(e);if(i>0){for(e-=r,a=0;a<n.length;a++)if(n[a]>=e)return n[a];return n[a-1]}for(a=n.length,e+=r;a--;)if(n[a]<=e)return n[a];return n[0]}:function(n,i,r){void 0===r&&(r=.001);var a=t(n);return!i||Math.abs(a-n)<r||a-n<0==i<0?a:t(i<0?n-e:n+e)}},eU=function(e){return function(t,n){return ej(eF(e))(t,n.direction)}},eV=function(e,t,n,i){return n.split(",").forEach(function(n){return e(t,n,i)})},eB=function(e,t,n,i,r){return e.addEventListener(t,n,{passive:!i,capture:!!r})},eH=function(e,t,n,i){return e.removeEventListener(t,n,!!i)},eG=function(e,t,n){(n=n&&n.wheelHandler)&&(e(t,"wheel",n),e(t,"touchmove",n))},ez={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},eq={toggleActions:"play",anticipatePin:0},eW={top:0,left:0,center:.5,bottom:1,right:1},e$=function(e,t){if(eu(e)){var n=e.indexOf("="),i=~n?+(e.charAt(n-1)+1)*parseFloat(e.substr(n+1)):0;~n&&(e.indexOf("%")>n&&(i*=t/100),e=e.substr(0,n-1)),e=i+(e in eW?eW[e]*t:~e.indexOf("%")?parseFloat(e)*t/100:parseFloat(e)||0)}return e},eZ=function(e,t,n,i,r,a,o,u){var c=r.startColor,d=r.endColor,h=r.fontSize,f=r.indent,p=r.fontWeight,m=s.createElement("div"),g=en(n)||"fixed"===(0,B.Ki)(n,"pinType"),v=-1!==e.indexOf("scroller"),y=g?l:n,_=-1!==e.indexOf("start"),b=_?c:d,x="border-color:"+b+";font-size:"+h+";color:"+b+";font-weight:"+p+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return x+="position:"+((v||u)&&g?"fixed;":"absolute;"),(v||u||!g)&&(x+=(i===B.r1?ey:e_)+":"+(a+parseFloat(f))+"px;"),o&&(x+="box-sizing:border-box;text-align:left;width:"+o.offsetWidth+"px;"),m._isStart=_,m.setAttribute("class","gsap-marker-"+e+(t?" marker-"+t:"")),m.style.cssText=x,m.innerText=t||0===t?e+"-"+t:e,y.children[0]?y.insertBefore(m,y.children[0]):y.appendChild(m),m._offset=m["offset"+i.op.d2],eY(m,0,i,_),m},eY=function(e,t,n,r){var a={display:"block"},s=n[r?"os2":"p2"],o=n[r?"p2":"os2"];e._isFlipped=r,a[n.a+"Percent"]=r?-100:0,a[n.a]=r?"1px":0,a["border"+s+eP]=1,a["border"+o+eP]=0,a[n.p]=t+"px",i.set(e,a)},eK=[],eX={},eQ=function(){return G()-q>34&&(O||(O=requestAnimationFrame(to)))},eJ=function(){T&&T.isPressed&&!(T.startX>l.clientWidth)||(B.xJ.cache++,T?O||(O=requestAnimationFrame(to)):to(),q||e4("scrollStart"),q=G())},e0=function(){P=a.innerWidth,L=a.innerHeight},e1=function(e){B.xJ.cache++,(!0===e||!m&&!w&&!s.fullscreenElement&&!s.webkitFullscreenElement&&(!S||P!==a.innerWidth||Math.abs(a.innerHeight-L)>.25*a.innerHeight))&&c.restart(!0)},e2={},e3=[],e5=function e(){return eH(tE,"scrollEnd",e)||tr(!0)},e4=function(e){return e2[e]&&e2[e].map(function(e){return e()})||e3},e6=[],e8=function(e){for(var t=0;t<e6.length;t+=5)(!e||e6[t+4]&&e6[t+4].query===e)&&(e6[t].style.cssText=e6[t+1],e6[t].getBBox&&e6[t].setAttribute("transform",e6[t+2]||""),e6[t+3].uncache=1)},e7=function(e,t){var n;for(y=0;y<eK.length;y++)(n=eK[y])&&(!t||n._ctx===t)&&(e?n.kill(1):n.revert(!0,!0));D=!0,t&&e8(t),t||e4("revert")},e9=function(e,t){B.xJ.cache++,(t||!j)&&B.xJ.forEach(function(e){return ec(e)&&e.cacheID++&&(e.rec=0)}),eu(e)&&(a.history.scrollRestoration=I=e)},te=0,tt=function(){if(U!==te){var e=U=te;requestAnimationFrame(function(){return e===te&&tr(!0)})}},tn=function(){l.appendChild(R),k=!T&&R.offsetHeight||a.innerHeight,l.removeChild(R)},ti=function(e){return d(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(t){return t.style.display=e?"none":"block"})},tr=function(e,t){if(o=s.documentElement,l=s.body,u=[a,s,o,l],q&&!e&&!D){eB(tE,"scrollEnd",e5);return}tn(),j=tE.isRefreshing=!0,B.xJ.forEach(function(e){return ec(e)&&++e.cacheID&&(e.rec=e())});var n=e4("refreshInit");C&&tE.sort(),t||e7(),B.xJ.forEach(function(e){ec(e)&&(e.smooth&&(e.target.style.scrollBehavior="auto"),e(0))}
13),eK.slice(0).forEach(function(e){return e.refresh()}),D=!1,eK.forEach(function(e){if(e._subPinOffset&&e.pin){var t=e.vars.horizontal?"offsetWidth":"offsetHeight",n=e.pin[t];e.revert(!0,1),e.adjustPinSpacing(e.pin[t]-n),e.refresh()}}),N=1,ti(!0),eK.forEach(function(e){var t=eo(e.scroller,e._dir),n="max"===e.vars.end||e._endClamp&&e.end>t,i=e._startClamp&&e.start>=t;(n||i)&&e.setPositions(i?t-1:e.start,n?Math.max(i?t:e.start+1,t):e.end,!0)}),ti(!1),N=0,n.forEach(function(e){return e&&e.render&&e.render(-1)}),B.xJ.forEach(function(e){ec(e)&&(e.smooth&&requestAnimationFrame(function(){return e.target.style.scrollBehavior="smooth"}),e.rec&&e(e.rec))}),e9(I,1),c.pause(),te++,j=2,to(2),eK.forEach(function(e){return ec(e.vars.onRefresh)&&e.vars.onRefresh(e)}),j=tE.isRefreshing=!1,e4("refresh")},ta=0,ts=1,to=function(e){if(2===e||!j&&!D){tE.isUpdating=!0,V&&V.update(0);var t=eK.length,n=G(),i=n-z>=50,r=t&&eK[0].scroll();if(ts=ta>r?-1:1,j||(ta=r),i&&(q&&!g&&n-q>200&&(q=0,e4("scrollEnd")),f=z,z=n),ts<0){for(y=t;y-- >0;)eK[y]&&eK[y].update(0,i);ts=1}else for(y=0;y<t;y++)eK[y]&&eK[y].update(0,i);tE.isUpdating=!1}O=0},tl=[eg,ev,e_,ey,eL+eT,eL+eC,eL+ew,eL+eE,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],tu=tl.concat([eb,ex,"boxSizing","max"+eP,"max"+eM,"position",eL,eS,eS+ew,eS+eC,eS+eT,eS+eE]),tc=function(e,t,n){tf(n);var i=e._gsap;if(i.spacerIsNative)tf(i.spacerState);else if(e._gsap.swappedIn){var r=t.parentNode;r&&(r.insertBefore(e,t),r.removeChild(t))}e._gsap.swappedIn=!1},td=function(e,t,n,i){if(!e._gsap.swappedIn){for(var r,a=tl.length,s=t.style,o=e.style;a--;)s[r=tl[a]]=n[r];s.position="absolute"===n.position?"absolute":"relative","inline"===n.display&&(s.display="inline-block"),o[e_]=o[ey]="auto",s.flexBasis=n.flexBasis||"auto",s.overflow="visible",s.boxSizing="border-box",s[eb]=eN(e,B.iz)+eA,s[ex]=eN(e,B.r1)+eA,s[eS]=o[eL]=o[ev]=o[eg]="0",tf(i),o[eb]=o["max"+eP]=n[eb],o[ex]=o["max"+eM]=n[ex],o[eS]=n[eS],e.parentNode!==t&&(e.parentNode.insertBefore(t,e),t.appendChild(e)),e._gsap.swappedIn=!0}},th=/([A-Z])/g,tf=function(e){if(e){var t,n,r=e.t.style,a=e.length,s=0;for((e.t._gsap||i.core.getCache(e.t)).uncache=1;s<a;s+=2)n=e[s+1],t=e[s],n?r[t]=n:r[t]&&r.removeProperty(t.replace(th,"-$1").toLowerCase())}},tp=function(e){for(var t=tu.length,n=e.style,i=[],r=0;r<t;r++)i.push(tu[r],n[tu[r]]);return i.t=e,i},tm=function(e,t,n){for(var i,r=[],a=e.length,s=n?8:0;s<a;s+=2)i=e[s],r.push(i,i in t?t[i]:e[s+1]);return r.t=e.t,r},tg={left:0,top:0},tv=function(e,t,n,r,a,s,u,c,d,h,f,p,m,g){ec(e)&&(e=e(c)),eu(e)&&"max"===e.substr(0,3)&&(e=p+("="===e.charAt(4)?e$("0"+e.substr(3),n):0));var v,y,_,b=m?m.time():0;if(m&&m.seek(0),isNaN(e)||(e=+e),ed(e))m&&(e=i.utils.mapRange(m.scrollTrigger.start,m.scrollTrigger.end,0,p,e)),u&&eY(u,n,r,!0);else{ec(t)&&(t=t(c));var x,C,E,w,T=(e||"0").split(" ");(x=eD(_=(0,B.ZV)(t,c)||l)||{}).left||x.top||"none"!==eI(_).display||(w=_.style.display,_.style.display="block",x=eD(_),w?_.style.display=w:_.style.removeProperty("display")),C=e$(T[0],x[r.d]),E=e$(T[1]||"0",n),e=x[r.p]-d[r.p]-h+C+a-E,u&&eY(u,E,r,n-E<20||u._isStart&&E>20),n-=n-E}if(g&&(c[g]=e||-.001,e<0&&(e=0)),s){var S=e+n,L=s._isStart;v="scroll"+r.d2,eY(s,S,r,L&&S>20||!L&&(f?Math.max(l[v],o[v]):s.parentNode[v])<=S+1),f&&(d=eD(u),f&&(s.style[r.op.p]=d[r.op.p]-r.op.m-s._offset+eA))}return m&&_&&(v=eD(_),m.seek(p),y=eD(_),m._caScrollDist=v[r.p]-y[r.p],e=e/m._caScrollDist*p),m&&m.seek(b),m?e:Math.round(e)},ty=/(webkit|moz|length|cssText|inset)/i,t_=function(e,t,n,r){if(e.parentNode!==t){var a,s,o=e.style;if(t===l){for(a in e._stOrig=o.cssText,s=eI(e))+a||ty.test(a)||!s[a]||"string"!=typeof o[a]||"0"===a||(o[a]=s[a]);o.top=n,o.left=r}else o.cssText=e._stOrig;i.core.getCache(e).uncache=1,t.appendChild(e)}},tb=function(e,t,n){var i=t,r=i;return function(t){var a=Math.round(e());return a!==i&&a!==r&&Math.abs(a-i)>3&&Math.abs(a-r)>3&&(t=a,n&&n()),r=i,i=Math.round(t)}},tx=function(e,t,n){var r={};r[t.p]="+="+n,i.set(e,r)},tC=function(e,t){var n=(0,B.y4)(e,t),r="_scroll"+t.p2,a=function t(a,s,o,l,u){var c=t.tween,d=s.onComplete,h={};o=o||n();var f=tb(n,o,function(){c.kill(),t.tween=0});return u=l&&u||0,l=l||a-o,c&&c.kill(),s[r]=a,s.inherit=!1,s.modifiers=h,h[r]=function(){return f(o+l*c.ratio+u*c.ratio*c.ratio)},s.onUpdate=function(){B.xJ.cache++,t.tween&&to()},s.onComplete=function(){t.tween=0,d&&d.call(c)},c=t.tween=i.to(e,s)};return e[r]=n,n.wheelHandler=function(){return a.tween&&a.tween.kill()&&(a.tween=0)},eB(e,"wheel",n.wheelHandler),tE.isTouch&&eB(e,"touchmove",n.wheelHandler),a},tE=function(){function e(t,n){r||e.register(i)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),A(this),this.init(t,n)}return e.prototype.init=function(t,n){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!W){this.update=this.refresh=this.kill=Q;return}var r,u,c,p,v,_,b,x,w,T,S,L,P,M,A,I,R,k,D,O,U,z,Y,K,X,ee,et,ei,er,el,eg,ev,ey,e_,eF,eV,eG,eW,eY,eQ=t=ek(eu(t)||ed(t)||t.nodeType?{trigger:t}:t,eq),e0=eQ.onUpdate,e2=eQ.toggleClass,e3=eQ.id,e4=eQ.onToggle,e6=eQ.onRefresh,e8=eQ.scrub,e7=eQ.trigger,e9=eQ.pin,te=eQ.pinSpacing,tn=eQ.invalidateOnRefresh,ti=eQ.anticipatePin,tr=eQ.onScrubComplete,ta=eQ.onSnapComplete,to=eQ.once,tl=eQ.snap,tu=eQ.pinReparent,th=eQ.pinSpacer,tg=eQ.containerAnimation,ty=eQ.fastScrollEnd,tb=eQ.preventOverlaps,tE=t.horizontal||t.containerAnimation&&!1!==t.horizontal?B.iz:B.r1,tw=!e8&&0!==e8,tT=(0,B.ZV)(t.scroller||a),tS=i.core.getCache(tT),tL=en(tT),tP=("pinType"in t?t.pinType:(0,B.Ki)(tT,"pinType")||tL&&"fixed")==="fixed",tM=[t.onEnter,t.onLeave,t.onEnterBack,t.onLeaveBack],tA=tw&&t.toggleActions.split(" "),tI="markers"in t?t.markers:eq.markers,tR=tL?0:parseFloat(eI(tT)["border"+tE.p2+eP])||0,tk=this,tD=t.onRefreshInit&&function(){return t.onRefreshInit(tk)},tN=ea(tT,tL,tE),tF=es(tT,tL),tO=0,tj=0,tU=0,tV=(0,B.y4)(tT,tE);if(tk._startClamp=tk._endClamp=!1,tk._dir=tE,ti*=45,tk.scroller=tT,tk.scroll=tg?tg.time.bind(tg):tV,p=tV(),tk.vars=t,n=n||t.animation,"refreshPriority"in t&&(C=1,-9999===t.refreshPriority&&(V=tk)),tS.tweenScroll=tS.tweenScroll||{top:tC(tT,B.r1),left:tC(tT,B.iz)},tk.tweenTo=r=tS.tweenScroll[tE.p],tk.scrubDuration=function(e){(ey=ed(e)&&e)?ev?ev.duration(e):ev=i.to(n,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:ey,paused:!0,onComplete:function(){return tr&&tr(tk)}}):(ev&&ev.progress(1).kill(),ev=0)},n&&(n.vars.lazy=!1,n._initted&&!tk.isReverted||!1!==n.vars.immediateRender&&!1!==t.immediateRender&&n.duration()&&n.render(0,!0,!0),tk.animation=n.pause(),n.scrollTrigger=tk,tk.scrubDuration(e8),el=0,e3||(e3=n.vars.id)),tl&&((!eh(tl)||tl.push)&&(tl={snapTo:tl}
13),"scrollBehavior"in l.style&&i.set(tL?[l,o]:tT,{scrollBehavior:"auto"}),B.xJ.forEach(function(e){return ec(e)&&e.target===(tL?s.scrollingElement||o:tT)&&(e.smooth=!1)}),c=ec(tl.snapTo)?tl.snapTo:"labels"===tl.snapTo?eO(n):"labelsDirectional"===tl.snapTo?eU(n):!1!==tl.directional?function(e,t){return ej(tl.snapTo)(e,G()-tj<500?0:t.direction)}:i.utils.snap(tl.snapTo),e_=eh(e_=tl.duration||{min:.1,max:2})?h(e_.min,e_.max):h(e_,e_),eF=i.delayedCall(tl.delay||ey/2||.1,function(){var e=tV(),t=G()-tj<500,a=r.tween;if((t||10>Math.abs(tk.getVelocity()))&&!a&&!g&&tO!==e){var s,o,l=(e-_)/M,u=n&&!tw?n.totalProgress():l,d=t?0:(u-eg)/(G()-f)*1e3||0,h=i.utils.clamp(-l,1-l,em(d/2)*d/.185),p=l+(!1===tl.inertia?0:h),m=tl,v=m.onStart,y=m.onInterrupt,x=m.onComplete;if(ed(s=c(p,tk))||(s=p),o=Math.max(0,Math.round(_+s*M)),e<=b&&e>=_&&o!==e){if(a&&!a._initted&&a.data<=em(o-e))return;!1===tl.inertia&&(h=s-l),r(o,{duration:e_(em(.185*Math.max(em(p-u),em(s-u))/d/.05||0)),ease:tl.ease||"power3",data:em(o-e),onInterrupt:function(){return eF.restart(!0)&&y&&y(tk)},onComplete:function(){tk.update(),tO=tV(),n&&!tw&&(ev?ev.resetTo("totalProgress",s,n._tTime/n._tDur):n.progress(s)),el=eg=n&&!tw?n.totalProgress():tk.progress,ta&&ta(tk),x&&x(tk)}},e,h*M,o-e-h*M),v&&v(tk,r.tween)}}else tk.isActive&&tO!==e&&eF.restart(!0)}).pause()),e3&&(eX[e3]=tk),(eY=(e7=tk.trigger=(0,B.ZV)(e7||!0!==e9&&e9))&&e7._gsap&&e7._gsap.stRevert)&&(eY=eY(tk)),e9=!0===e9?e7:(0,B.ZV)(e9),eu(e2)&&(e2={targets:e7,className:e2}),e9&&(!1===te||te===eL||(te=(!!te||!e9.parentNode||!e9.parentNode.style||"flex"!==eI(e9.parentNode).display)&&eS),tk.pin=e9,(u=i.core.getCache(e9)).spacer?A=u.pinState:(th&&((th=(0,B.ZV)(th))&&!th.nodeType&&(th=th.current||th.nativeElement),u.spacerIsNative=!!th,th&&(u.spacerState=tp(th))),u.spacer=k=th||s.createElement("div"),k.classList.add("pin-spacer"),e3&&k.classList.add("pin-spacer-"+e3),u.pinState=A=tp(e9)),!1!==t.force3D&&i.set(e9,{force3D:!0}),tk.spacer=k=u.spacer,K=(er=eI(e9))[te+tE.os2],O=i.getProperty(e9),U=i.quickSetter(e9,tE.a,eA),td(e9,k,er),R=tp(e9)),tI){L=eh(tI)?ek(tI,ez):ez,T=eZ("scroller-start",e3,tT,tE,L,0),S=eZ("scroller-end",e3,tT,tE,L,0,T),D=T["offset"+tE.op.d2];var tB=(0,B.ZV)((0,B.Ki)(tT,"content")||tT);x=this.markerStart=eZ("start",e3,tB,tE,L,D,0,tg),w=this.markerEnd=eZ("end",e3,tB,tE,L,D,0,tg),tg&&(eW=i.quickSetter([x,w],tE.a,eA)),tP||B.KM.length&&!0===(0,B.Ki)(tT,"fixedMarkers")||(eR(tL?l:tT),i.set([T,S],{force3D:!0}),ee=i.quickSetter(T,tE.a,eA),ei=i.quickSetter(S,tE.a,eA))}if(tg){var tH=tg.vars.onUpdate,tG=tg.vars.onUpdateParams;tg.eventCallback("onUpdate",function(){tk.update(0,0,1),tH&&tH.apply(tg,tG||[])})}if(tk.previous=function(){return eK[eK.indexOf(tk)-1]},tk.next=function(){return eK[eK.indexOf(tk)+1]},tk.revert=function(e,t){if(!t)return tk.kill(!0);var i=!1!==e||!tk.enabled,r=m;i!==tk.isReverted&&(i&&(eV=Math.max(tV(),tk.scroll.rec||0),tU=tk.progress,eG=n&&n.progress()),x&&[x,w,T,S].forEach(function(e){return e.style.display=i?"none":"block"}),i&&(m=tk,tk.update(i)),!e9||tu&&tk.isActive||(i?tc(e9,k,A):td(e9,k,eI(e9),X)),i||tk.update(i),m=r,tk.isReverted=i)},tk.refresh=function(a,u,c,d){if(!m&&tk.enabled||u){if(e9&&a&&q){eB(e,"scrollEnd",e5);return}!j&&tD&&tD(tk),m=tk,r.tween&&!c&&(r.tween.kill(),r.tween=0),ev&&ev.pause(),tn&&n&&(n.revert({kill:!1}).invalidate(),n.getChildren&&n.getChildren(!0,!0,!1).forEach(function(e){return e.vars.immediateRender&&e.render(0,!0,!0)})),tk.isReverted||tk.revert(!0,!0),tk._subPinOffset=!1;var h,f,g,y,C,L,D,F,U,V,H,W,Z,K=tN(),Q=tF(),J=tg?tg.duration():eo(tT,tE),ee=M<=.01||!M,en=0,ei=d||0,er=eh(c)?c.end:t.end,ea=t.endTrigger||e7,es=eh(c)?c.start:t.start||(0!==t.start&&e7?e9?"0 0":"0 100%":0),el=tk.pinnedContainer=t.pinnedContainer&&(0,B.ZV)(t.pinnedContainer,tk),ed=e7&&Math.max(0,eK.indexOf(tk))||0,ef=ed;for(tI&&eh(c)&&(W=i.getProperty(T,tE.p),Z=i.getProperty(S,tE.p));ef-- >0;)(L=eK[ef]).end||L.refresh(0,1)||(m=tk),(D=L.pin)&&(D===e7||D===e9||D===el)&&!L.isReverted&&(V||(V=[]),V.unshift(L),L.revert(!0,!0)),L!==eK[ef]&&(ed--,ef--);for(ec(es)&&(es=es(tk)),_=tv(es=$(es,"start",tk),e7,K,tE,tV(),x,T,tk,Q,tR,tP,J,tg,tk._startClamp&&"_startClamp")||(e9?-.001:0),ec(er)&&(er=er(tk)),eu(er)&&!er.indexOf("+=")&&(~er.indexOf(" ")?er=(eu(es)?es.split(" ")[0]:"")+er:(en=e$(er.substr(2),K),er=eu(es)?es:(tg?i.utils.mapRange(0,tg.duration(),tg.scrollTrigger.start,tg.scrollTrigger.end,_):_)+en,ea=e7)),er=$(er,"end",tk),b=Math.max(_,tv(er||(ea?"100% 0":J),ea,K,tE,tV()+en,w,S,tk,Q,tR,tP,J,tg,tk._endClamp&&"_endClamp"))||-.001,en=0,ef=ed;ef--;)(D=(L=eK[ef]).pin)&&L.start-L._pinPush<=_&&!tg&&L.end>0&&(h=L.end-(tk._startClamp?Math.max(0,L.start):L.start),(D===e7&&L.start-L._pinPush<_||D===el)&&isNaN(es)&&(en+=h*(1-L.progress)),D===e9&&(ei+=h));if(_+=en,b+=en,tk._startClamp&&(tk._startClamp+=en),tk._endClamp&&!j&&(tk._endClamp=b||-.001,b=Math.min(b,eo(tT,t
13E))),M=b-_||(_-=.01)&&.001,ee&&(tU=i.utils.clamp(0,1,i.utils.normalize(_,b,eV))),tk._pinPush=ei,x&&en&&((h={})[tE.a]="+="+en,el&&(h[tE.p]="-="+tV()),i.set([x,w],h)),e9&&!(N&&tk.end>=eo(tT,tE)))h=eI(e9),y=tE===B.r1,g=tV(),z=parseFloat(O(tE.a))+ei,!J&&b>1&&(H={style:H=(tL?s.scrollingElement||o:tT).style,value:H["overflow"+tE.a.toUpperCase()]},tL&&"scroll"!==eI(l)["overflow"+tE.a.toUpperCase()]&&(H.style["overflow"+tE.a.toUpperCase()]="scroll")),td(e9,k,h),R=tp(e9),f=eD(e9,!0),F=tP&&(0,B.y4)(tT,y?B.iz:B.r1)(),te?((X=[te+tE.os2,M+ei+eA]).t=k,(ef=te===eS?eN(e9,tE)+M+ei:0)&&(X.push(tE.d,ef+eA),"auto"!==k.style.flexBasis&&(k.style.flexBasis=ef+eA)),tf(X),el&&eK.forEach(function(e){e.pin===el&&!1!==e.vars.pinSpacing&&(e._subPinOffset=!0)}),tP&&tV(eV)):(ef=eN(e9,tE))&&"auto"!==k.style.flexBasis&&(k.style.flexBasis=ef+eA),tP&&((C={top:f.top+(y?g-_:F)+eA,left:f.left+(y?F:g-_)+eA,boxSizing:"border-box",position:"fixed"})[eb]=C["max"+eP]=Math.ceil(f.width)+eA,C[ex]=C["max"+eM]=Math.ceil(f.height)+eA,C[eL]=C[eL+ew]=C[eL+eC]=C[eL+eT]=C[eL+eE]="0",C[eS]=h[eS],C[eS+ew]=h[eS+ew],C[eS+eC]=h[eS+eC],C[eS+eT]=h[eS+eT],C[eS+eE]=h[eS+eE],I=tm(A,C,tu),j&&tV(0)),n?(U=n._initted,E(1),n.render(n.duration(),!0,!0),Y=O(tE.a)-z+M+ei,et=Math.abs(M-Y)>1,tP&&et&&I.splice(I.length-2,2),n.render(0,!0,!0),U||n.invalidate(!0),n.parent||n.totalTime(n.totalTime()),E(0)):Y=M,H&&(H.value?H.style["overflow"+tE.a.toUpperCase()]=H.value:H.style.removeProperty("overflow-"+tE.a));else if(e7&&tV()&&!tg)for(f=e7.parentNode;f&&f!==l;)f._pinOffset&&(_-=f._pinOffset,b-=f._pinOffset),f=f.parentNode;V&&V.forEach(function(e){return e.revert(!1,!0)}),tk.start=_,tk.end=b,p=v=j?eV:tV(),tg||j||(p<eV&&tV(eV),tk.scroll.rec=0),tk.revert(!1,!0),tj=G(),eF&&(tO=-1,eF.restart(!0)),m=0,n&&tw&&(n._initted||eG)&&n.progress()!==eG&&n.progress(eG||0,!0).render(n.time(),!0,!0),(ee||tU!==tk.progress||tg||tn||n&&!n._initted)&&(n&&!tw&&(n._initted||tU||!1!==n.vars.immediateRender)&&n.totalProgress(tg&&_<-.001&&!tU?i.utils.normalize(_,b,0):tU,!0),tk.progress=ee||(p-_)/M===tU?0:tU),e9&&te&&(k._pinOffset=Math.round(tk.progress*Y)),ev&&ev.invalidate(),isNaN(W)||(W-=i.getProperty(T,tE.p),Z-=i.getProperty(S,tE.p),tx(T,tE,W),tx(x,tE,W-(d||0)),tx(S,tE,Z),tx(w,tE,Z-(d||0))),ee&&!j&&tk.update(),!e6||j||P||(P=!0,e6(tk),P=!1)}},tk.getVelocity=function(){return(tV()-v)/(G()-f)*1e3||0},tk.endAnimation=function(){ef(tk.callbackAnimation),n&&(ev?ev.progress(1):n.paused()?tw||ef(n,tk.direction<0,1):ef(n,n.reversed()))},tk.labelToScroll=function(e){return n&&n.labels&&(_||tk.refresh()||_)+n.labels[e]/n.duration()*M||0},tk.getTrailing=function(e){var t=eK.indexOf(tk),n=tk.direction>0?eK.slice(0,t).reverse():eK.slice(t+1);return(eu(e)?n.filter(function(t){return t.vars.preventOverlaps===e}):n).filter(function(e){return tk.direction>0?e.end<=_:e.start>=b})},tk.update=function(e,t,i){if(!tg||i||e){var a,s,o,u,c,h,g,y=!0===j?eV:tk.scroll(),x=e?0:(y-_)/M,C=x<0?0:x>1?1:x||0,E=tk.progress;if(t&&(v=p,p=tg?tV():y,tl&&(eg=el,el=n&&!tw?n.totalProgress():C)),ti&&e9&&!m&&!H&&q&&(!C&&_<y+(y-v)/(G()-f)*ti?C=1e-4:1===C&&b>y+(y-v)/(G()-f)*ti&&(C=.9999)),C!==E&&tk.enabled){if(u=(c=(a=tk.isActive=!!C&&C<1)!=(!!E&&E<1))||!!C!=!!E,tk.direction=C>E?1:-1,tk.progress=C,u&&!m&&(s=C&&!E?0:1===C?1:1===E?2:3,tw&&(o=!c&&"none"!==tA[s+1]&&tA[s+1]||tA[s],g=n&&("complete"===o||"reset"===o||o in n))),tb&&(c||g)&&(g||e8||!n)&&(ec(tb)?tb(tk):tk.getTrailing(tb).forEach(function(e){return e.endAnimation()})),!tw&&(!ev||m||H?n&&n.totalProgress(C,!!(m&&(tj||e))):(ev._dp._time-ev._start!==ev._time&&ev.render(ev._dp._time-ev._start),ev.resetTo?ev.resetTo("totalProgress",C,n._tTime/n._tDur):(ev.vars.totalProgress=C,ev.invalidate().restart()))),e9){if(e&&te&&(k.style[te+tE.os2]=K),tP){if(u){if(h=!e&&C>E&&b+1>y&&y+1>=eo(tT,tE),tu){if(!e&&(a||h)){var w=eD(e9,!0),S=y-_;t_(e9,l,w.top+(tE===B.r1?S:0)+eA,w.left+(tE===B.r1?0:S)+eA)}else t_(e9,k)}tf(a||h?I:R),et&&C<1&&a||U(z+(1!==C||h?0:Y))}}else U(J(z+Y*C))}!tl||r.tween||m||H||eF.restart(!0),e2&&(c||to&&C&&(C<1||!F))&&d(e2.targets).forEach(function(e){return e.classList[a||to?"add":"remove"](e2.className)}),!e0||tw||e||e0(tk),u&&!m?(tw&&(g&&("complete"===o?n.pause().totalProgress(1):"reset"===o?n.restart(!0).pause():"restart"===o?n.restart(!0):n[o]()),e0&&e0(tk)),(c||!F)&&(e4&&c&&ep(tk,e4),tM[s]&&ep(tk,tM[s]),to&&(1===C?tk.kill(!1,1):tM[s]=0),!c&&tM[s=1===C?1:3]&&ep(tk,tM[s])),ty&&!a&&Math.abs(tk.getVelocity())>
13(ed(ty)?ty:2500)&&(ef(tk.callbackAnimation),ev?ev.progress(1):ef(n,"reverse"===o?1:!C,1))):tw&&e0&&!m&&e0(tk)}if(ei){var L=tg?y/tg.duration()*(tg._caScrollDist||0):y;ee(L+(T._isFlipped?1:0)),ei(L)}eW&&eW(-y/tg.duration()*(tg._caScrollDist||0))}},tk.enable=function(t,n){tk.enabled||(tk.enabled=!0,eB(tT,"resize",e1),tL||eB(tT,"scroll",eJ),tD&&eB(e,"refreshInit",tD),!1!==t&&(tk.progress=tU=0,p=v=tO=tV()),!1!==n&&tk.refresh())},tk.getTween=function(e){return e&&r?r.tween:ev},tk.setPositions=function(e,t,n,i){if(tg){var r=tg.scrollTrigger,a=tg.duration(),s=r.end-r.start;e=r.start+s*e/a,t=r.start+s*t/a}tk.refresh(!1,!1,{start:Z(e,n&&!!tk._startClamp),end:Z(t,n&&!!tk._endClamp)},i),tk.update()},tk.adjustPinSpacing=function(e){if(X&&e){var t=X.indexOf(tE.d)+1;X[t]=parseFloat(X[t])+e+eA,X[1]=parseFloat(X[1])+e+eA,tf(X)}},tk.disable=function(t,n){if(tk.enabled&&(!1!==t&&tk.revert(!0,!0),tk.enabled=tk.isActive=!1,n||ev&&ev.pause(),eV=0,u&&(u.uncache=1),tD&&eH(e,"refreshInit",tD),eF&&(eF.pause(),r.tween&&r.tween.kill()&&(r.tween=0)),!tL)){for(var i=eK.length;i--;)if(eK[i].scroller===tT&&eK[i]!==tk)return;eH(tT,"resize",e1),tL||eH(tT,"scroll",eJ)}},tk.kill=function(e,i){tk.disable(e,i),ev&&!i&&ev.kill(),e3&&delete eX[e3];var r=eK.indexOf(tk);r>=0&&eK.splice(r,1),r===y&&ts>0&&y--,r=0,eK.forEach(function(e){return e.scroller===tk.scroller&&(r=1)}),r||j||(tk.scroll.rec=0),n&&(n.scrollTrigger=null,e&&n.revert({kill:!1}),i||n.kill()),x&&[x,w,T,S].forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),V===tk&&(V=0),e9&&(u&&(u.uncache=1),r=0,eK.forEach(function(e){return e.pin===e9&&r++}),r||(u.spacer=0)),t.onKill&&t.onKill(tk)},eK.push(tk),tk.enable(!1,!1),eY&&eY(tk),n&&n.add&&!M){var tz=tk.update;tk.update=function(){tk.update=tz,B.xJ.cache++,_||b||tk.refresh()},i.delayedCall(.01,tk.update),M=.01,_=b=0}else tk.refresh();e9&&tt()},e.register=function(t){return r||(i=t||et(),ee()&&window.document&&e.enable(),r=W),r},e.defaults=function(e){if(e)for(var t in e)eq[t]=e[t];return eq},e.disable=function(e,t){W=0,eK.forEach(function(n){return n[t?"kill":"disable"](e)}),eH(a,"wheel",eJ),eH(s,"scroll",eJ),clearInterval(p),eH(s,"touchcancel",Q),eH(l,"touchstart",Q),eV(eH,s,"pointerdown,touchstart,mousedown",K),eV(eH,s,"pointerup,touchend,mouseup",X),c.kill(),el(eH);for(var n=0;n<B.xJ.length;n+=3)eG(eH,B.xJ[n],B.xJ[n+1]),eG(eH,B.xJ[n],B.xJ[n+2])},e.enable=function(){if(a=window,o=(s=document).documentElement,l=s.body,i&&(d=i.utils.toArray,h=i.utils.clamp,A=i.core.context||Q,E=i.core.suppressOverwrites||Q,I=a.history.scrollRestoration||"auto",ta=a.pageYOffset||0,i.core.globals("ScrollTrigger",e),l)){W=1,(R=document.createElement("div")).style.height="100vh",R.style.position="absolute",tn(),Y(),B.Qj.register(i),e.isTouch=B.Qj.isTouch,M=B.Qj.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),S=1===B.Qj.isTouch,eB(a,"wheel",eJ),u=[a,s,o,l],i.matchMedia&&(e.matchMedia=function(e){var t,n=i.matchMedia();for(t in e)n.add(t,e[t]);return n},i.addEventListener("matchMediaInit",function(){return e7()}),i.addEventListener("matchMediaRevert",function(){return e8()}),i.addEventListener("matchMedia",function(){tr(0,1),e4("matchMedia")}),i.matchMedia().add("(orientation: portrait)",function(){return e0(),e0})),e0(),eB(s,"scroll",eJ);var t,n,f=l.hasAttribute("style"),m=l.style,g=m.borderTopStyle,y=i.core.Animation.prototype;for(y.revert||Object.defineProperty(y,"revert",{value:function(){return this.time(-.01,!0)}}),m.borderTopStyle="solid",t=eD(l),B.r1.m=Math.round(t.top+B.r1.sc())||0,B.iz.m=Math.round(t.left+B.iz.sc())||0,g?m.borderTopStyle=g:m.removeProperty("border-top-style"),f||(l.setAttribute("style",""),l.removeAttribute("style")),p=setInterval(eQ,250),i.delayedCall(.5,function(){return H=0}),eB(s,"touchcancel",Q),eB(l,"touchstart",Q),eV(eB,s,"pointerdown,touchstart,mousedown",K),eV(eB,s,"pointerup,touchend,mouseup",X),v=i.utils.checkPrefix("transform"),tu.push(v),r=G(),c=i.delayedCall(.2,tr).pause(),x=[s,"visibilitychange",function(){var e=a.innerWidth,t=a.innerHeight;s.hidden?(_=e,b=t):(_!==e||b!==t)&&e1()},s,"DOMContentLoaded",tr,a,"load",tr,a,"resize",e1],el(eB),eK.forEac
13h(function(e){return e.enable(0,1)}),n=0;n<B.xJ.length;n+=3)eG(eH,B.xJ[n],B.xJ[n+1]),eG(eH,B.xJ[n],B.xJ[n+2])}},e.config=function(t){"limitCallbacks"in t&&(F=!!t.limitCallbacks);var n=t.syncInterval;n&&clearInterval(p)||(p=n)&&setInterval(eQ,n),"ignoreMobileResize"in t&&(S=1===e.isTouch&&t.ignoreMobileResize),"autoRefreshEvents"in t&&(el(eH)||el(eB,t.autoRefreshEvents||"none"),w=-1===(t.autoRefreshEvents+"").indexOf("resize"))},e.scrollerProxy=function(e,t){var n=(0,B.ZV)(e),i=B.xJ.indexOf(n),r=en(n);~i&&B.xJ.splice(i,r?6:2),t&&(r?B.KM.unshift(a,t,l,t,o,t):B.KM.unshift(n,t))},e.clearMatchMedia=function(e){eK.forEach(function(t){return t._ctx&&t._ctx.query===e&&t._ctx.kill(!0,!0)})},e.isInViewport=function(e,t,n){var i=(eu(e)?(0,B.ZV)(e):e).getBoundingClientRect(),r=i[n?eb:ex]*t||0;return n?i.right-r>0&&i.left+r<a.innerWidth:i.bottom-r>0&&i.top+r<a.innerHeight},e.positionInViewport=function(e,t,n){eu(e)&&(e=(0,B.ZV)(e));var i=e.getBoundingClientRect(),r=i[n?eb:ex],s=null==t?r/2:t in eW?eW[t]*r:~t.indexOf("%")?parseFloat(t)*r/100:parseFloat(t)||0;return n?(i.left+s)/a.innerWidth:(i.top+s)/a.innerHeight},e.killAll=function(e){if(eK.slice(0).forEach(function(e){return"ScrollSmoother"!==e.vars.id&&e.kill()}),!0!==e){var t=e2.killAll||[];e2={},t.forEach(function(e){return e()})}},e}();tE.version="3.13.0",tE.saveStyles=function(e){return e?d(e).forEach(function(e){if(e&&e.style){var t=e6.indexOf(e);t>=0&&e6.splice(t,5),e6.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),i.core.getCache(e),A())}}):e6},tE.revert=function(e,t){return e7(!e,t)},tE.create=function(e,t){return new tE(e,t)},tE.refresh=function(e){return e?e1(!0):(r||tE.register())&&tr(!0)},tE.update=function(e){return++B.xJ.cache&&to(!0===e?2:0)},tE.clearScrollMemory=e9,tE.maxScroll=function(e,t){return eo(e,t?B.iz:B.r1)},tE.getScrollFunc=function(e,t){return(0,B.y4)((0,B.ZV)(e),t?B.iz:B.r1)},tE.getById=function(e){return eX[e]},tE.getAll=function(){return eK.filter(function(e){return"ScrollSmoother"!==e.vars.id})},tE.isScrolling=function(){return!!q},tE.snapDirectional=ej,tE.addEventListener=function(e,t){var n=e2[e]||(e2[e]=[]);~n.indexOf(t)||n.push(t)},tE.removeEventListener=function(e,t){var n=e2[e],i=n&&n.indexOf(t);i>=0&&n.splice(i,1)},tE.batch=function(e,t){var n,r=[],a={},s=t.interval||.016,o=t.batchMax||1e9,l=function(e,t){var n=[],r=[],a=i.delayedCall(s,function(){t(n,r),n=[],r=[]}).pause();return function(e){n.length||a.restart(!0),n.push(e.trigger),r.push(e),o<=n.length&&a.progress(1)}};for(n in t)a[n]="on"===n.substr(0,2)&&ec(t[n])&&"onRefreshInit"!==n?l(n,t[n]):t[n];return ec(o)&&(o=o(),eB(tE,"refresh",function(){return o=t.batchMax()})),d(e).forEach(function(e){var t={};for(n in a)t[n]=a[n];t.trigger=e,r.push(tE.create(t))}),r};var tw,tT=function(e,t,n,i){return t>i?e(i):t<0&&e(0),n>i?(i-t)/(n-t):n<0?t/(t-n):1},tS=function e(t,n){!0===n?t.style.removeProperty("touch-action"):t.style.touchAction=!0===n?"auto":n?"pan-"+n+(B.Qj.isTouch?" pinch-zoom":""):"none",t===o&&e(l,n)},tL={auto:1,scroll:1},tP=function(e){var t,n=e.event,r=e.target,a=e.axis,s=(n.changedTouches?n.changedTouches[0]:n).target,o=s._gsap||i.core.getCache(s),u=G();if(!o._isScrollT||u-o._isScrollT>2e3){for(;s&&s!==l&&(s.scrollHeight<=s.clientHeight&&s.scrollWidth<=s.clientWidth||!(tL[(t=eI(s)).overflowY]||tL[t.overflowX]));)s=s.parentNode;o._isScroll=s&&s!==r&&!en(s)&&(tL[(t=eI(s)).overflowY]||tL[t.overflowX]),o._isScrollT=u}(o._isScroll||"x"===a)&&(n.stopPropagation(),n._gsapAllow=!0)},tM=function(e,t,n,i){return B.Qj.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:t,onWheel:i=i&&tP,onPress:i,onDrag:i,onScroll:i,onEnable:function(){return n&&eB(s,B.Qj.eventTypes[0],tI,!1,!0)},onDisable:function(){return eH(s,B.Qj.eventTypes[0],tI,!0)}})},tA=/(input|label|select|textarea)/i,tI=function(e){var t=tA.test(e.target.tagName);(t||tw)&&(e._gsapAllow=!0,tw=t)},tR=function(e){eh(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var t,n,r,s,l,u,c,d,f=e,p=f.normalizeScrollX,m=f.momentum,g=f.allowNestedScroll,v=f.onRelease,y=(0,B.ZV)(e.target)||o,_=i.core.globals().ScrollSmoother,b=_&&_.get(),x=M&&(e.content&&(0,B.ZV)(e.content)||b&&!1!==e.content&&!b.smooth()&&b.content()),C=(0,B.y4)(y,B.r1),E=(0,B.y4)(y,B.iz),w=1,T=(B.Qj.isTouch&&a.visualVie
13wport?a.visualViewport.scale*a.visualViewport.width:a.outerWidth)/a.innerWidth,S=0,L=ec(m)?function(){return m(t)}:function(){return m||2.8},P=tM(y,e.type,!0,g),A=function(){return s=!1},I=Q,R=Q,k=function(){n=eo(y,B.r1),R=h(M?1:0,n),p&&(I=h(0,eo(y,B.iz))),r=te},D=function(){x._gsap.y=J(parseFloat(x._gsap.y)+C.offset)+"px",x.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(x._gsap.y)+", 0, 1)",C.offset=C.cacheID=0},N=function(){if(s){requestAnimationFrame(A);var e=J(t.deltaY/2),n=R(C.v-e);if(x&&n!==C.v+C.offset){C.offset=n-C.v;var i=J((parseFloat(x&&x._gsap.y)||0)-C.offset);x.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+i+", 0, 1)",x._gsap.y=i+"px",C.cacheID=B.xJ.cache,to()}return!0}C.offset&&D(),s=!0},F=function(){k(),l.isActive()&&l.vars.scrollY>n&&(C()>n?l.progress(1)&&C(n):l.resetTo("scrollY",n))};return x&&i.set(x,{y:"+=0"}),e.ignoreCheck=function(e){return M&&"touchmove"===e.type&&N(e)||w>1.05&&"touchstart"!==e.type||t.isGesturing||e.touches&&e.touches.length>1},e.onPress=function(){s=!1;var e=w;w=J((a.visualViewport&&a.visualViewport.scale||1)/T),l.pause(),e!==w&&tS(y,w>1.01||!p&&"x"),u=E(),c=C(),k(),r=te},e.onRelease=e.onGestureStart=function(e,t){if(C.offset&&D(),t){B.xJ.cache++;var r,a,s=L();p&&(a=(r=E())+-(.05*s*e.velocityX)/.227,s*=tT(E,r,a,eo(y,B.iz)),l.vars.scrollX=I(a)),a=(r=C())+-(.05*s*e.velocityY)/.227,s*=tT(C,r,a,eo(y,B.r1)),l.vars.scrollY=R(a),l.invalidate().duration(s).play(.01),(M&&l.vars.scrollY>=n||r>=n-1)&&i.to({},{onUpdate:F,duration:s})}else d.restart(!0);v&&v(e)},e.onWheel=function(){l._ts&&l.pause(),G()-S>1e3&&(r=0,S=G())},e.onChange=function(e,t,n,i,a){if(te!==r&&k(),t&&p&&E(I(i[2]===t?u+(e.startX-e.x):E()+t-i[1])),n){C.offset&&D();var s=a[2]===n,o=s?c+e.startY-e.y:C()+n-a[1],l=R(o);s&&o!==l&&(c+=l-o),C(l)}(n||t)&&to()},e.onEnable=function(){tS(y,!p&&"x"),tE.addEventListener("refresh",F),eB(a,"resize",F),C.smooth&&(C.target.style.scrollBehavior="auto",C.smooth=E.smooth=!1),P.enable()},e.onDisable=function(){tS(y,!0),eH(a,"resize",F),tE.removeEventListener("refresh",F),P.kill()},e.lockAxis=!1!==e.lockAxis,(t=new B.Qj(e)).iOS=M,M&&!C()&&C(1),M&&i.ticker.add(Q),d=t._dc,l=i.to(t,{ease:"power4",paused:!0,inherit:!1,scrollX:p?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:tb(C,C(),function(){return l.pause()})},onUpdate:to,onComplete:d.vars.onComplete}),t};tE.sort=function(e){if(ec(e))return eK.sort(e);var t=a.pageYOffset||0;return tE.getAll().forEach(function(e){return e._sortY=e.trigger?t+e.trigger.getBoundingClientRect().top:e.start+a.innerHeight}),eK.sort(e||function(e,t){return -1e6*(e.vars.refreshPriority||0)+(e.vars.containerAnimation?1e6:e._sortY)-((t.vars.containerAnimation?1e6:t._sortY)+-1e6*(t.vars.refreshPriority||0))})},tE.observe=function(e){return new B.Qj(e)},tE.normalizeScroll=function(e){if(void 0===e)return T;if(!0===e&&T)return T.enable();if(!1===e){T&&T.kill(),T=e;return}var t=e instanceof B.Qj?e:tR(e);return T&&T.target===t.target&&T.kill(),en(t.target)&&(T=t),t},tE.core={_getVelocityProp:B.QR,_inputObserver:tM,_scrollers:B.xJ,_proxies:B.KM,bridge:{ss:function(){q||e4("scrollStart"),q=G()},ref:function(){return m}}},et()&&i.registerPlugin(tE)},59119:function(e,t,n){"use strict";n.d(t,{Z:function(){return C}});let i,r,a,s=()=>a||C.register(window.gsap),o="undefined"!=typeof Intl?new Intl.Segmenter:0,l=e=>"string"==typeof e?l(document.querySelectorAll(e)):"length"in e?Array.from(e):[e],u=e=>l(e).filter(e=>e instanceof HTMLElement),c=[],d=function(){},h=/\s+/g,f=RegExp("\\p{RI}\\p{RI}|\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?(\\u{200D}\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?)*|.","gu"),p={left:0,top:0,width:0,height:0},m=(e,t)=>{if(t){let n=new Set(e.join("").match(t)||c),i=e.length,r,a,s,o;if(n.size){for(;--i>-1;)for(s of(a=e[i],n))if(s.startsWith(a)&&s.length>a.length){for(r=0,o=a;s.startsWith(o+=e[i+ ++r])&&o.length<s.length;);if(r&&o.length===s.length){e[i]=s,e.splice(i+1,r);break}}}}return e},g=e=>"inline"===window.getComputedStyle(e).display&&(e.style.display="inline-block"),v=(e,t,n
13)=>t.insertBefore("string"==typeof e?document.createTextNode(e):e,n),y=(e,t,n)=>{let i=t[e+"sClass"]||"",{tag:r="div",aria:a="auto",propIndex:s=!1}=t,o="line"===e?"block":"inline-block",l=i.indexOf("++")>-1,u=t=>{let u=document.createElement(r),c=n.length+1;return i&&(u.className=i+(l?" "+i+c:"")),s&&u.style.setProperty("--"+e,c+""),"none"!==a&&u.setAttribute("aria-hidden","true"),"span"!==r&&(u.style.position="relative",u.style.display=o),u.textContent=t,n.push(u),u};return l&&(i=i.replace("++","")),u.collection=n,u},_=(e,t,n,i)=>{let r=y("line",n,i),a=window.getComputedStyle(e).textAlign||"left";return(n,i)=>{let s=r("");for(s.style.textAlign=a,e.insertBefore(s,t[n]);n<i;n++)s.appendChild(t[n]);s.normalize()}},b=(e,t,n,i,r,a,s,l,u,d)=>{var f;let p=Array.from(e.childNodes),y=0,{wordDelimiter:_,reduceWhiteSpace:x=!0,prepareText:C}=t,E=e.getBoundingClientRect(),w=E,T=!x&&"pre"===window.getComputedStyle(e).whiteSpace.substring(0,3),S=0,L=n.collection,P,M,A,I,R,k,D,N,F,O,j,U,V,B,H,G,z,q;for("object"==typeof _?(A=_.delimiter||_,M=_.replaceWith||""):M=""===_?"":_||" ",P=" "!==M;y<p.length;y++)if(3===(I=p[y]).nodeType){for(H=I.textContent||"",x?H=H.replace(h," "):T&&(H=H.replace(/\n/g,M+"\n")),C&&(H=C(H,e)),I.textContent=H,z=(R=M||A?H.split(A||M):H.match(l)||c)[R.length-1],N=P?" "===z.slice(-1):!z,z||R.pop(),w=E,(D=P?" "===R[0].charAt(0):!R[0])&&v(" ",e,I),R[0]||R.shift(),m(R,u),a&&d||(I.textContent=""),F=1;F<=R.length;F++)if(G=R[F-1],!x&&T&&"\n"===G.charAt(0)&&(null==(f=I.previousSibling)||f.remove(),v(document.createElement("br"),e,I),G=G.slice(1)),x||""!==G){if(" "===G)e.insertBefore(document.createTextNode(" "),I);else{if(P&&" "===G.charAt(0)&&v(" ",e,I),S&&1===F&&!D&&L.indexOf(S.parentNode)>-1?(k=L[L.length-1]).appendChild(document.createTextNode(i?"":G)):(v(k=n(i?"":G),e,I),S&&1===F&&!D&&k.insertBefore(S,k.firstChild)),i)for(q=0,j=o?m([...o.segment(G)].map(e=>e.segment),u):G.match(l)||c;q<j.length;q++)k.appendChild(" "===j[q]?document.createTextNode(" "):i(j[q]));if(a&&d){if(H=I.textContent=H.substring(G.length+1,H.length),(O=k.getBoundingClientRect()).top>w.top&&O.left<=w.left){for(U=e.cloneNode(),V=e.childNodes[0];V&&V!==k;)B=V,V=V.nextSibling,U.appendChild(B);e.parentNode.insertBefore(U,e),r&&g(U)}w=O}(F<R.length||N)&&v(F>=R.length?" ":P&&" "===G.slice(-1)?" "+M:M,e,I)}}else v(M,e,I);e.removeChild(I),S=0}else 1===I.nodeType&&(s&&s.indexOf(I)>-1?(L.indexOf(I.previousSibling)>-1&&L[L.length-1].appendChild(I),S=I):(b(I,t,n,i,r,a,s,l,u,!0),S=0),r&&g(I))},x=class e{split(e){this.isSplit&&this.revert(),this.vars=e=e||this.vars||{};let{type:t="chars,words,lines",aria:n="auto",deepSlice:i=!0,smartWrap:a,onSplit:s,autoSplit:o=!1,specialChars:c,mask:d}=this.vars,h=t.indexOf("lines")>-1,m=t.indexOf("chars")>-1,g=t.indexOf("words")>-1,v=m&&!g&&!h,x=c&&("push"in c?RegExp("(?:"+c.join("|")+")","gu"):c),C=x?RegExp(x.source+"|"+f.source,"gu"):f,E=!!e.ignore&&u(e.ignore),{orig:w,animTime:T,obs:S}=this._data,L;return(m||g||h)&&(this.elements.forEach((t,r)=>{w[r]={element:t,html:t.innerHTML,ariaL:t.getAttribute("aria-label"),ariaH:t.getAttribute("aria-hidden")},"auto"===n?t.setAttribute("aria-label",(t.textContent||"").trim()):"hidden"===n&&t.setAttribute("aria-hidden","true");let s=[],o=[],u=[],c=m?y("char",e,s):null,d=y("word",e,o),f,T,S,L;if(b(t,e,d,c,v,i&&(h||v),E,C,x,!1),h){let n=l(t.childNodes),i=_(t,n,e,u),r,a=[],s=0,o=n.map(e=>1===e.nodeType?e.getBoundingClientRect():p),c=p;for(f=0;f<n.length;f++)1===(r=n[f]).nodeType&&("BR"===r.nodeName?(a.push(r),i(s,f+1),c=o[s=f+1]):(f&&o[f].top>c.top&&o[f].left<=c.left&&(i(s,f),s=f),c=o[f]));s<f&&i(s,f),a.forEach(e=>{var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})}if(!g){for(f=0;f<o.length;f++)if(T=o[f],m||!T.nextSibling||3!==T.nextSibling.nodeType){if(a&&!h){for((S=document.createElement("span")).style.whiteSpace="nowrap";T.firstChild;)S.appendChild(T.firstChild);T.replaceWith(S)}else T.replaceWith(...T.childNodes)}else(L=T.nextSibling)&&3===L.nodeType&&(L.textContent=(T.textContent||"")+(L.textContent||""),T.remove());o.length=0,t.normalize()}this.lines.push(...u),this.words.push(...o),this.chars.push(...s)}),d&&this[d]&&this.masks.push(...this[d].map(e=>{let t=e.cloneNode();return e.replaceWith(t),t.appendChild(e),e.className&&(t.className=e.className.replace(/(\b\w+\b)/g,"$1-mask")),t.style.overflow="clip",t}))),this.isSplit=!0,r&&(o?r.addEventListener("loadingdone",this._split):"loading"===r.status&&console.warn("SplitText c
13alled before fonts loaded")),(L=s&&s(this))&&L.totalTime&&(this._data.anim=T?L.totalTime(T):L),h&&o&&this.elements.forEach((e,t)=>{w[t].width=e.offsetWidth,S&&S.observe(e)}),this}revert(){var e,t;let{orig:n,anim:i,obs:a}=this._data;return a&&a.disconnect(),n.forEach(e=>{let{element:t,html:n,ariaL:i,ariaH:r}=e;t.innerHTML=n,i?t.setAttribute("aria-label",i):t.removeAttribute("aria-label"),r?t.setAttribute("aria-hidden",r):t.removeAttribute("aria-hidden")}),this.chars.length=this.words.length=this.lines.length=n.length=this.masks.length=0,this.isSplit=!1,null==r||r.removeEventListener("loadingdone",this._split),i&&(this._data.animTime=i.totalTime(),i.revert()),null==(t=(e=this.vars).onRevert)||t.call(e,this),this}static create(t,n){return new e(t,n)}static register(e){(i=i||e||window.gsap)&&(l=i.utils.toArray,d=i.core.context||d),!a&&window.innerWidth>0&&(r=document.fonts,a=!0)}constructor(e,t){this.isSplit=!1,s(),this.elements=u(e),this.chars=[],this.words=[],this.lines=[],this.masks=[],this.vars=t,this._split=()=>this.isSplit&&this.split(this.vars);let n=[],i,r=()=>{let e=n.length,t;for(;e--;){let i=(t=n[e]).element.offsetWidth;if(i!==t.width){t.width=i,this._split();return}}};this._data={orig:n,obs:"undefined"!=typeof ResizeObserver&&new ResizeObserver(()=>{clearTimeout(i),i=setTimeout(r,200)})},d(this),this.split(t)}};x.version="3.13.0";let C=x}
13,38599:function(e,t){!function(e,n){n(t)}(0,function(e){"use strict";var t,n,i,r,a,s,o,l,u=function(){return!0},c=function(){return t||u()&&(t=window.gsap)&&t.registerPlugin&&t},d=function(e){return"string"==typeof e},h=function(e){return"function"==typeof e},f=function(e,t){var n="x"===t?"Width":"Height",s="scroll"+n,o="client"+n;return e===i||e===r||e===a?Math.max(r[s],a[s])-(i["inner"+n]||r[o]||a[o]):e[s]-e["offset"+n]},p=function(e,t){var n="scroll"+("x"===t?"Left":"Top");return e===i&&(null!=e.pageXOffset?n="page"+t.toUpperCase()+"Offset":e=null!=r[n]?r:a),function(){return e[n]}},m=function(e,t,n,i){if(h(e)&&(e=e(t,n,i)),"object"!=typeof e)return d(e)&&"max"!==e&&"="!==e.charAt(1)?{x:e,y:e}:{y:e};if(e.nodeType)return{y:e,x:e};var r,a={};for(r in e)a[r]="onAutoKill"!==r&&h(e[r])?e[r](t,n,i):e[r];return a},g=function(e,t){if(!(e=s(e)[0])||!e.getBoundingClientRect)return console.warn("scrollTo target doesn't exist. Using 0")||{x:0,y:0};var n=e.getBoundingClientRect(),o=!t||t===i||t===a,l=o?{top:r.clientTop-(i.pageYOffset||r.scrollTop||a.scrollTop||0),left:r.clientLeft-(i.pageXOffset||r.scrollLeft||a.scrollLeft||0)}:t.getBoundingClientRect(),u={x:n.left-l.left,y:n.top-l.top};return!o&&t&&(u.x+=p(t,"x")(),u.y+=p(t,"y")()),u},v=function(e,t,n,i,r){return isNaN(e)||"object"==typeof e?d(e)&&"="===e.charAt(1)?parseFloat(e.substr(2))*("-"===e.charAt(0)?-1:1)+i-r:"max"===e?f(t,n)-r:Math.min(f(t,n),g(e,t)[n]-r):parseFloat(e)-r},y=function(){t=c(),u()&&t&&"undefined"!=typeof document&&document.body&&(i=window,a=document.body,r=document.documentElement,s=t.utils.toArray,t.config({autoKillThreshold:7}),o=t.config(),n=1)},_={version:"3.13.0",name:"scrollTo",rawVars:1,register:function(e){t=e,y()},init:function(e,r,a,s,u){n||y();var c=this,d=t.getProperty(e,"scrollSnapType");c.isWin=e===i,c.target=e,c.tween=a,r=m(r,s,e,u),c.vars=r,c.autoKill=!!("autoKill"in r?r:o).autoKill,c.getX=p(e,"x"),c.getY=p(e,"y"),c.x=c.xPrev=c.getX(),c.y=c.yPrev=c.getY(),l||(l=t.core.globals().ScrollTrigger),"smooth"===t.getProperty(e,"scrollBehavior")&&t.set(e,{scrollBehavior:"auto"}),d&&"none"!==d&&(c.snap=1,c.snapInline=e.style.scrollSnapType,e.style.scrollSnapType="none"),null!=r.x?(c.add(c,"x",c.x,v(r.x,e,"x",c.x,r.offsetX||0),s,u),c._props.push("scrollTo_x")):c.skipX=1,null!=r.y?(c.add(c,"y",c.y,v(r.y,e,"y",c.y,r.offsetY||0),s,u),c._props.push("scrollTo_y")):c.skipY=1},render:function(e,t){for(var n,r,a,s,u,c=t._pt,d=t.target,h=t.tween,p=t.autoKill,m=t.xPrev,g=t.yPrev,v=t.isWin,y=t.snap,_=t.snapInline;c;)c.r(e,c.d),c=c._next;n=v||!t.skipX?t.getX():m,a=(r=v||!t.skipY?t.getY():g)-g,s=n-m,u=o.autoKillThreshold,t.x<0&&(t.x=0),t.y<0&&(t.y=0),p&&(!t.skipX&&(s>u||s<-u)&&n<f(d,"x")&&(t.skipX=1),!t.skipY&&(a>u||a<-u)&&r<f(d,"y")&&(t.skipY=1),t.skipX&&t.skipY&&(h.kill(),t.vars.onAutoKill&&t.vars.onAutoKill.apply(h,t.vars.onAutoKillParams||[]))),v?i.scrollTo(t.skipX?n:t.x,t.skipY?r:t.y):(t.skipY||(d.scrollTop=t.y),t.skipX||(d.scrollLeft=t.x)),y&&(1===e||0===e)&&(r=d.scrollTop,n=d.scrollLeft,_?d.style.scrollSnapType=_:d.style.removeProperty("scroll-snap-type"),d.scrollTop=r+1,d.scrollLeft=n+1,d.scrollTop=r,d.scrollLeft=n),t.xPrev=t.x,t.yPrev=t.y,l&&l.update()},kill:function(e){var t="scrollTo"===e,n=this._props.indexOf(e);return(t||"scrollTo_x"===e)&&(this.skipX=1),(t||"scrollTo_y"===e)&&(this.skipY=1),n>-1&&this._props.splice(n,1),!this._props.length}};_.max=f,_.getOffset=g,_.buildGetter=p,_.config=function(e){for(var n in o||y()||(o=t.config()),e)o[n]=e[n]},c()&&t.registerPlugin(_),e.ScrollToPlugin=_,e.default=_,Object.defineProperty(e,"__esModule",{value:!0})})},43775:function(e,t,n){"use strict";function i(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.d(t,{ZP:function(){return iD},p8:function(){return iD}});var a,s,o,l,u,c,d,h,f,p,m,g={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},v={duration:.5,overwrite:!1,delay:0},y=1e8,_=1e-8,b=2*Math.PI,x=b/4,C=0,E=Math.sqrt,w=Math.cos,T=Math.sin,S=function(e){return"string"==typeof e},L=function(e){return"function"==typeof e},P=function(e){return"number"==typeof e},M=function(e){return void 0===e},A=function(e){return"object"==typeof e},I=function(e){return!1!==e},R=function(){return!0},k=function(e){return L(e)||S(e)},D="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},N=Array.isArray,F=/(?:-?\.?\d|\.)+/gi,O=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,j=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,U=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,V=/[+-]=-?[.\d]+/,B=/[^,'"\[\]\s]+/gi,H=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,G={},z={},q=function(e){return(z=eC(e,G))&&nb},W=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},$=function(e,t){return!t&&console.warn(e)},Z=function(e,t){return e&&(G[e]=t)&&z&&(z[e]=t)||G},Y=function(){return 0},K={suppressEvents:!0,isStart:!0,kill:!1},X={suppressEvents:!0,kill:!1},Q={suppressEvents:!0},J={},ee=[],et={},en={},ei={},er=30,ea=[],es="",eo=function(e){var t,n,i=e[0];if(A(i)||L(i)||(e=[e]),!(t=(i._gsap||{}).harness)){for(n=ea.length;n--&&!ea[n].targetTest(i););t=ea[n]}for(n=e.length;n--;)e[n]&&(e[n]._gsap||(e[n]._gsap=new tV(e[n],t)))||e.splice(n,1);return e},el=function(e){return e._gsap||eo(e4(e))[0]._gsap},eu=function(e,t,n){return(n=e[t])&&L(n)?e[t]():M(n)&&e.getAttribute&&e.getAttribute(t)||n}
vendor: 8,464 bytes, line 13
13,ec=function(e,t){return(e=e.split(",")).forEach(t)||e},ed=function(e){return Math.round(1e5*e)/1e5||0},eh=function(e){return Math.round(1e7*e)/1e7||0},ef=function(e,t){var n=t.charAt(0),i=parseFloat(t.substr(2));return e=parseFloat(e),"+"===n?e+i:"-"===n?e-i:"*"===n?e*i:e/i},ep=function(e,t){for(var n=t.length,i=0;0>e.indexOf(t[i])&&++i<n;);return i<n},em=function(){var e,t,n=ee.length,i=ee.slice(0);for(e=0,et={},ee.length=0;e<n;e++)(t=i[e])&&t._lazy&&(t.render(t._lazy[0],t._lazy[1],!0)._lazy=0)},eg=function(e){return!!(e._initted||e._startAt||e.add)},ev=function(e,t,n,i){ee.length&&!s&&em(),e.render(t,n,i||!!(s&&t<0&&eg(e))),ee.length&&!s&&em()},ey=function(e){var t=parseFloat(e);return(t||0===t)&&(e+"").match(B).length<2?t:S(e)?e.trim():e},e_=function(e){return e},eb=function(e,t){for(var n in t)n in e||(e[n]=t[n]);return e},ex=function(e){return function(t,n){for(var i in n)i in t||"duration"===i&&e||"ease"===i||(t[i]=n[i])}},eC=function(e,t){for(var n in t)e[n]=t[n];return e},eE=function e(t,n){for(var i in n)"__proto__"!==i&&"constructor"!==i&&"prototype"!==i&&(t[i]=A(n[i])?e(t[i]||(t[i]={}),n[i]):n[i]);return t},ew=function(e,t){var n,i={};for(n in e)n in t||(i[n]=e[n]);return i},eT=function(e){var t=e.parent||l,n=e.keyframes?ex(N(e.keyframes)):eb;if(I(e.inherit))for(;t;)n(e,t.vars.defaults),t=t.parent||t._dp;return e},eS=function(e,t){for(var n=e.length,i=n===t.length;i&&n--&&e[n]===t[n];);return n<0},eL=function(e,t,n,i,r){void 0===n&&(n="_first"),void 0===i&&(i="_last");var a,s=e[i];if(r)for(a=t[r];s&&s[r]>a;)s=s._prev;return s?(t._next=s._next,s._next=t):(t._next=e[n],e[n]=t),t._next?t._next._prev=t:e[i]=t,t._prev=s,t.parent=t._dp=e,t},eP=function(e,t,n,i){void 0===n&&(n="_first"),void 0===i&&(i="_last");var r=t._prev,a=t._next;r?r._next=a:e[n]===t&&(e[n]=a),a?a._prev=r:e[i]===t&&(e[i]=r),t._next=t._prev=t.parent=null},eM=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},eA=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var n=e;n;)n._dirty=1,n=n.parent;return e},eI=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},eR=function(e,t,n,i){return e._startAt&&(s?e._startAt.revert(X):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,i))},ek=function e(t){return!t||t._ts&&e(t.parent)},eD=function(e){return e._repeat?eN(e._tTime,e=e.duration()+e._rDelay)*e:0},eN=function(e,t){var n=Math.floor(e=eh(e/t));return e&&n===e?n-1:n},eF=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},eO=function(e){return e._end=eh(e._start+(e._tDur/Math.abs(e._ts||e._rts||_)||0))},ej=function(e,t){var n=e._dp;return n&&n.smoothChildTiming&&e._ts&&(e._start=eh(n._time-(e._ts>0?t/e._ts:-(((e._dirty?e.totalDuration():e._tDur)-t)/e._ts))),eO(e),n._dirty||eA(n,e)),e},eU=function(e,t){var n;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(n=eF(e.rawTime(),t),(!t._dur||eJ(0,t.totalDuration(),n)-t._tTime>_)&&t.render(n,!0)),eA(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(n=e;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;e._zTime=-_}},eV=function(e,t,n,i){return t.parent&&eM(t),t._start=eh((P(n)?n:n||e!==l?eK(e,n,t):e._time)+t._delay),t._end=eh(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),eL(e,t,"_first","_last",e._sort?"_start":0),ez(t)||(e._recent=t),i||eU(e,t),e._ts<0&&ej(e,e._tTime),e},eB=function(e,t){return(G.ScrollTrigger||W("scrollTrigger",t))&&G.ScrollTrigger.create(t,e)},eH=function(e,t,n,i,r){return(tY(e,t,r),e._initted)?!n&&e._pt&&!s&&(e._dur&&!1!==e.vars.lazy||!e._dur&&e.vars.lazy)&&f!==tT.frame?(ee.push(e),e._lazy=[r,i],1):void 0:1},eG=function e(t){var n=t.parent;return n&&n._ts&&n._initted&&!n._lock&&(0>n.rawTime()||e(n))},ez=function(e){var t=e.data;return"isFromStart"===t||"isStart"===t},eq=function(e,t,n,i){var r,a,o,l=e.ratio,u=t<0||!t&&(!e._start&&eG(e)&&!(!e._initted&&ez(e))||(e._ts<0||e._dp._ts<0)&&!ez(e))?0:1,c=e._rDelay,d=0;if(c&&e._repeat&&(a=eN(d=eJ(0,e._tDur,t),c),e._yoyo&&1&a&&(u=1-u),a!==eN(e._tTime,c)&&(l=1-u,e.vars.repeatRefresh&&e._initted&&e.invalidate())),u!==l||s||i||e._zTime===_||!t&&e._zTime){if(!e._initted&&eH(e,t,i,n,d))return;for(o=e._zTime,e._zTime=t||(n?_:0),n||(n=t&&!o),e.ratio=u,e._from&&(u=1-u),e._time=0,e._tTime=d,r=e._pt;r;)r.r(u,r.d),r=r._next;t<0&&eR(e,t,n,!0),e._onUpdate&&!n&&th(e,"onUpdate"),d&&e._repeat&&!n&&e.parent&&th(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===u&&(u&&eM(e,1),n||s||(th(e,u?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)},eW=function(e,t,n){var i;if(n>t)for(i=e._first;i&&i._start<=n;){if("isPause"===i.data&&i._start>t)return i;i=i._next}else for(i=e._last;i&&i._start>=n;){if("isPause"===i.data&&i._start<t)return i;i=i._prev}},e$=function(e,t,n,i){var r=e._repeat,a=eh(t)||0,s=e._tTime/e._tDur;return s&&!i&&(e._time*=a/e._dur),e._dur=a,e._tDur=r?r<0?1e10:eh(a*(r+1)+e._rDelay*r):a,s>0&&!i&&ej(e,e._tTime=e._tDur*s),e.parent&&eO(e),n||eA(e.parent,e),e},eZ=function(e){return e instanceof tH?eA(e):e$(e,e._dur)},eY={_start:0,endTime:Y,totalDuration:Y},eK=function e(t,n,i){var r,a,s,o=t.labels,l=t._recent||eY,u=t.duration()>=y?l.endTime(!1):t._dur;return S(n)&&(isNaN(n)||n in o)?(a=n.charAt(0),s="%"===n.substr(-1),r=n.indexOf("="),"<"===a||">"===a)?(r>=0&&(n=n.replace(/=/,"")),("<"===a?l._start:l.endTime(l._repeat>=0))+(parseFloat(n.substr(1))||0)*(s?(r<0?l:i).totalDuration()/100:1)):r<0?(n in o||(o[n]=u),o[n]):(a=parseFloat(n.charAt(r-1)+n.substr(r+1)),s&&i&&(a=a/100*(N(i)?i[0]:i).totalDuration()),r>1?e(t,n.substr(0,r-1),i)+a:u+a):null==n?u:+n},eX=function(e,t,n){var i,r,a=P(t[1]),s=(a?2:1)+(e<2?0:1),o=t[s];if(a&&(o.duration=t[1]),o.parent=n,e){for(i=o,r=n;r&&!("immediateRender"in i);)i=r.vars.defaults||{},r=I(r.vars.inherit)&&r.parent;o.immediateRender=I(i.immediateRender),e<2?o.runBackwards=1:o.startAt=t[s-1]}return new t2(t[0],o,t[s+1])},eQ=function(e,t){return e||0===e?t(e):t},eJ=function(e,t,n){return n<e?e:n>t?t:n},e0=function(e,t){return S(e)&&(t=H.exec(e))?t[1]:""},e1=function(e,t,n){return eQ(n,function(n){return eJ(e,t,n)})},e2=[].slice,e3=function(e,t){return e&&A(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&A(e[0]))&&!e.nodeType&&e!==u},e5=function(e,t,n){return void 0===n&&(n=[]),e.forEach(function(e){var i;return S(e)&&!t||e3(e,1)?(i=n).push.apply(i,e4(e)):n.push(e)})||n},e4=function(e,t,n){return o&&!t&&o.selector?o.selector(e):S(e)&&!n&&(c||!tS())?e2.call((t||d).querySelectorAll(e),0):N(e)?e5(e,n):e3(e)?e2.call(e,0):e?[e]:[]},e6=function(e){return e=e4(e)[0]||$("Invalid scope")||{},function(t){var n=e.current||e.nativeElement||e;return e4(t,n.querySelectorAll?n:n===e?$("Invalid scope")||d.createElement("div"):e)}},e8=function(e){return e.sort(function(){return .5-Math.random()})},e7=function(e){if(L(e))return e;var t=A(e)?e:{each:e},n=tN(t.ease),i=t.from||0,r=parseFloat(t.base)||0,a={},s=i>0&&i<1,o=isNaN(i)||s,l=t.axis,u=i,c=i;return S(i)?u=c=({center:.5,edges:.5,end:1})[i]||0:!s&&o&&(u=i[0],c=i[1]),function(e,s,d){var h,f,p,m,g,v,_,b,x,C=(d||t).length,w=a[C];if(!w){if(!(x="auto"===t.grid?0:(t.grid||[1,y])[1])){for(_=-y;_<(_=d[x++].getBoundingClientRect().left)&&x<C;);x<C&&x--}for(v=0,w=a[C]=[],h=o?Math.min(x,C)*u-.5:i%x,f=x===y?0:o?C*c/x-.5:i/x|0,_=0,b=y;v<C;v++)p=v%x-h,m=f-(v/x|0),w[v]=g=l?Math.abs("y"===l?m:p):E(p*p+m*m),g>_&&(_=g),g<b&&(b=g);"random"===i&&e8(w),w.max=_-b,w.min=b,w.v=C=(parseFloat(t.amount)||parseFloat(t.each)*(x>C?C-1:l?"y"===l?C/x:x:Math.max(x,C/x))||0)*("edges"===i?-1:1),w.b=C<0?r-C:r,w.u=e0(t.amount||t.each)||0,n=n&&C<0?tk(n):n}return C=(w[e]-w.min)/w.max||0,eh(w.b+(n?n(C):C)*w.v)+w.u}},e9=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(n){var i=eh(Math.round(parseFloat(n)/e)*e*t);return(i-i%1)/t+(P(n)?0:e0(n))}},te=function(e,t){var n,i,r=N(e);return!r&&A(e)&&(n=r=e.radius||y,e.values?(i=!P((e=e4(e.values))[0]))&&(n*=n):e=e9(e.increment)),eQ(t,r?L(e)?function(t){return Math.abs((i=e(t))-t)<=n?i:t}:function(t){for(var r,a,s=parseFloat(i?t.x:t),o=parseFloat(i?t.y:0),l=y,u=0,c=e.length;c--;)(r=i?(r=e[c].x-s)*r+(a=e[c].y-o)*a:Math.abs(e[c]-s))<l&&(l=r,u=c);return u=!n||l<=n?e[u]:t,i||u===t||P(t)?u:u+e0(t)}:e9(e))},tt=function(e,t,n,i){return eQ(N(e)?!t:!0===n?(n=0,!1):!i,function(){return N(e)?e[~~(Math.random()*e.length)]:(i=(n=n||1e-5)<1?Math.pow(10,(n+"").length-2):1)&&Math.floor(Math.round((e-n/2+Math.random()*(t-e+.99*n))/n)
13*n*i)/i})},tn=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduce(function(e,t){return t(e)},e)}},ti=function(e,t){return function(n){return e(parseFloat(n))+(t||e0(n))}},tr=function(e,t,n){return tu(e,t,0,1,n)},ta=function(e,t,n){return eQ(n,function(n){return e[~~t(n)]})},ts=function e(t,n,i){var r=n-t;return N(t)?ta(t,e(0,t.length),n):eQ(i,function(e){return(r+(e-t)%r)%r+t})},to=function e(t,n,i){var r=n-t,a=2*r;return N(t)?ta(t,e(0,t.length-1),n):eQ(i,function(e){return e=(a+(e-t)%a)%a||0,t+(e>r?a-e:e)})},tl=function(e){for(var t,n,i,r,a=0,s="";~(t=e.indexOf("random(",a));)i=e.indexOf(")",t),r="["===e.charAt(t+7),n=e.substr(t+7,i-t-7).match(r?B:F),s+=e.substr(a,t-a)+tt(r?n:+n[0],r?0:+n[1],+n[2]||1e-5),a=i+1;return s+e.substr(a,e.length-a)},tu=function(e,t,n,i,r){var a=t-e,s=i-n;return eQ(r,function(t){return n+((t-e)/a*s||0)})},tc=function e(t,n,i,r){var a=isNaN(t+n)?0:function(e){return(1-e)*t+e*n};if(!a){var s,o,l,u,c,d=S(t),h={};if(!0===i&&(r=1)&&(i=null),d)t={p:t},n={p:n};else if(N(t)&&!N(n)){for(o=1,l=[],c=(u=t.length)-2;o<u;o++)l.push(e(t[o-1],t[o]));u--,a=function(e){var t=Math.min(c,~~(e*=u));return l[t](e-t)},i=n}else r||(t=eC(N(t)?[]:{},t));if(!l){for(s in n)tW.call(h,t,s,"get",n[s]);a=function(e){return nt(e,h)||(d?t.p:t)}}}return eQ(i,a)},td=function(e,t,n){var i,r,a,s=e.labels,o=y;for(i in s)(r=s[i]-t)<0==!!n&&r&&o>(r=Math.abs(r))&&(a=i,o=r);return a},th=function(e,t,n){var i,r,a,s=e.vars,l=s[t],u=o,c=e._ctx;if(l)return i=s[t+"Params"],r=s.callbackScope||e,n&&ee.length&&em(),c&&(o=c),a=i?l.apply(r,i):l.call(r),o=u,a},tf=function(e){return eM(e),e.scrollTrigger&&e.scrollTrigger.kill(!!s),1>e.progress()&&th(e,"onInterrupt"),e},tp=[],tm=function(e){if(e){if(e=!e.name&&e.default||e,R()||e.headless){var t=e.name,n=L(e),i=t&&!n&&e.init?function(){this._props=[]}:e,r={init:Y,render:nt,add:tW,kill:ni,modifier:nn,rawVars:0},a={targetTest:0,get:0,getSetter:t8,aliases:{},register:0};if(tS(),e!==i){if(en[t])return;eb(i,eb(ew(e,r),a)),eC(i.prototype,eC(r,ew(e,a))),en[i.prop=t]=i,e.targetTest&&(ea.push(i),J[t]=1),t=("css"===t?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}Z(t,i),e.register&&e.register(nb,i,ns)}else tp.push(e)}},tg=255,tv={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},ty=function(e,t,n){return(6*(e+=e<0?1:e>1?-1:0)<1?t+(n-t)*e*6:e<.5?n:3*e<2?t+(n-t)*(2/3-e)*6:t)*tg+.5|0},t_=function(e,t,n){var i,r,a,s,o,l,u,c,d,h,f=e?P(e)?[e>>16,e>>8&tg,e&tg]:0:tv.black;if(!f){if(","===e.substr(-1)&&(e=e.substr(0,e.length-1)),tv[e])f=tv[e];else if("#"===e.charAt(0)){if(e.length<6&&(e="#"+(i=e.charAt(1))+i+(r=e.charAt(2))+r+(a=e.charAt(3))+a+(5===e.length?e.charAt(4)+e.charAt(4):"")),9===e.length)return[(f=parseInt(e.substr(1,6),16))>>16,f>>8&tg,f&tg,parseInt(e.substr(7),16)/255];f=[(e=parseInt(e.substr(1),16))>>16,e>>8&tg,e&tg]}else if("hsl"===e.substr(0,3)){if(f=h=e.match(F),t){if(~e.indexOf("="))return f=e.match(O),n&&f.length<4&&(f[3]=1),f}else s=+f[0]%360/360,o=+f[1]/100,r=(l=+f[2]/100)<=.5?l*(o+1):l+o-l*o,i=2*l-r,f.length>3&&(f[3]*=1),f[0]=ty(s+1/3,i,r),f[1]=ty(s,i,r),f[2]=ty(s-1/3,i,r)}else f=e.match(F)||tv.transparent;f=f.map(Number)}return t&&!h&&(l=((u=Math.max(i=f[0]/tg,r=f[1]/tg,a=f[2]/tg))+(c=Math.min(i,r,a)))/2,u===c?s=o=0:(d=u-c,o=l>.5?d/(2-u-c):d/(u+c),s=(u===i?(r-a)/d+(r<a?6:0):u===r?(a-i)/d+2:(i-r)/d+4)*60),f[0]=~~(s+.5),f[1]=~~(100*o+.5),f[2]=~~(100*l+.5)),n&&f.length<4&&(f[3]=1),f},tb=function(e){var t=[],n=[],i=-1;return e.split(tC).forEach(function(e){var r=e.match(j)||[];t.push.apply(t,r),n.push(i+=r.length+1)}),t.c=n,t},tx=function(e,t,n){var i,r,a,s,o="",l=(e+o).match(tC),u=t?"hsla(":"rgba(",c=0;if(!l)return e;if(l=l.map(function(e){return(e=t_(e,t,1))&&u+(t?e[0]+","+e[1]+"%,"+e[2]+"%,"+e[3]:e.join(","))+")"}),n&&(a=tb(e),(i=n.c).join(o)!==a.c.join(o)))for(s=(r=e.replace(tC,"1").split(j)).length-1;c<s;c++)o+=r[c]+(~i.indexOf(c)?l.shift()||u+"0,0,0,0)":(a.length?a:l.length?l:n).shift());if(!r)for(s=(r=e.split(tC)).length-1;c<s;c++)o+=r[c]+l[c];return o+r[s]},tC=function(){var e,t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(e in tv)t+="|"+e+"\\b";return RegExp(t+")","gi")}(),tE=/hsl[a]?\(/,tw=function(e){var t,n=e.join(" ");if(tC.lastIndex=0,tC.test(n))return t=tE.test(n),e[1]=tx(e[1],t),e[0]=tx(e[0],t,tb(e[1])),!0},tT=function(){var e,t,n,i,r,a,s=Date.now,o=500,l=33,f=s(),p=f,g=1e3/240,v=1e3/240,y=[],_=function n(u){var c,d,h,m,_=s()-p,b=!0===u;if((_>o||_<0)&&(f+=_-l),p+=_,((c=(h=p-f)-v)>0||b)&&(m=++i.frame,r=h-1e3*i.time,i.time=h/=1e3,v+=c+(c>=g?4:g-c),d=1),b||(e=t(n)),d)for(a=0;a<y.length;a++)y[a](h,r,m,u)};return i={time:0,frame:0,tick:function(){_(!0)},deltaRatio:function(e){return r/(1e3/(e||60))},wake:function(){h&&(!c&&R()&&(d=(u=c=window).document||{}
vendor: 50,148 bytes, line 13
13,G.gsap=nb,(u.gsapVersions||(u.gsapVersions=[])).push(nb.version),q(z||u.GreenSockGlobals||!u.gsap&&u||{}),tp.forEach(tm)),n="undefined"!=typeof requestAnimationFrame&&requestAnimationFrame,e&&i.sleep(),t=n||function(e){return setTimeout(e,v-1e3*i.time+1|0)},m=1,_(2))},sleep:function(){(n?cancelAnimationFrame:clearTimeout)(e),m=0,t=Y},lagSmoothing:function(e,t){l=Math.min(t||33,o=e||1/0)},fps:function(e){g=1e3/(e||240),v=1e3*i.time+g},add:function(e,t,n){var r=t?function(t,n,a,s){e(t,n,a,s),i.remove(r)}:e;return i.remove(e),y[n?"unshift":"push"](r),tS(),r},remove:function(e,t){~(t=y.indexOf(e))&&y.splice(t,1)&&a>=t&&a--},_listeners:y}}(),tS=function(){return!m&&tT.wake()},tL={},tP=/^[\d.\-M][\d.\-,\s]/,tM=/["']/g,tA=function(e){for(var t,n,i,r={},a=e.substr(1,e.length-3).split(":"),s=a[0],o=1,l=a.length;o<l;o++)n=a[o],t=o!==l-1?n.lastIndexOf(","):n.length,i=n.substr(0,t),r[s]=isNaN(i)?i.replace(tM,"").trim():+i,s=n.substr(t+1).trim();return r},tI=function(e){var t=e.indexOf("(")+1,n=e.indexOf(")"),i=e.indexOf("(",t);return e.substring(t,~i&&i<n?e.indexOf(")",n+1):n)},tR=function(e){var t=(e+"").split("("),n=tL[t[0]];return n&&t.length>1&&n.config?n.config.apply(null,~e.indexOf("{")?[tA(t[1])]:tI(e).split(",").map(ey)):tL._CE&&tP.test(e)?tL._CE("",e):n},tk=function(e){return function(t){return 1-e(1-t)}},tD=function e(t,n){for(var i,r=t._first;r;)r instanceof tH?e(r,n):!r.vars.yoyoEase||r._yoyo&&r._repeat||r._yoyo===n||(r.timeline?e(r.timeline,n):(i=r._ease,r._ease=r._yEase,r._yEase=i,r._yoyo=n)),r=r._next},tN=function(e,t){return e&&(L(e)?e:tL[e]||tR(e))||t},tF=function(e,t,n,i){void 0===n&&(n=function(e){return 1-t(1-e)}),void 0===i&&(i=function(e){return e<.5?t(2*e)/2:1-t((1-e)*2)/2});var r,a={easeIn:t,easeOut:n,easeInOut:i};return ec(e,function(e){for(var t in tL[e]=G[e]=a,tL[r=e.toLowerCase()]=n,a)tL[r+("easeIn"===t?".in":"easeOut"===t?".out":".inOut")]=tL[e+"."+t]=a[t]}),a},tO=function(e){return function(t){return t<.5?(1-e(1-2*t))/2:.5+e((t-.5)*2)/2}},tj=function e(t,n,i){var r=n>=1?n:1,a=(i||(t?.3:.45))/(n<1?n:1),s=a/b*(Math.asin(1/r)||0),o=function(e){return 1===e?1:r*Math.pow(2,-10*e)*T((e-s)*a)+1},l="out"===t?o:"in"===t?function(e){return 1-o(1-e)}:tO(o);return a=b/a,l.config=function(n,i){return e(t,n,i)},l},tU=function e(t,n){void 0===n&&(n=1.70158);var i=function(e){return e?--e*e*((n+1)*e+n)+1:0},r="out"===t?i:"in"===t?function(e){return 1-i(1-e)}:tO(i);return r.config=function(n){return e(t,n)},r};ec("Linear,Quad,Cubic,Quart,Quint,Strong",function(e,t){var n=t<5?t+1:t;tF(e+",Power"+(n-1),t?function(e){return Math.pow(e,n)}:function(e){return e},function(e){return 1-Math.pow(1-e,n)},function(e){return e<.5?Math.pow(2*e,n)/2:1-Math.pow((1-e)*2,n)/2})}),tL.Linear.easeNone=tL.none=tL.Linear.easeIn,tF("Elastic",tj("in"),tj("out"),tj()),function(e,t){var n=1/2.75,i=1/2.75*2,r=1/2.75*2.5,a=function(a){return a<n?7.5625*a*a:a<i?7.5625*Math.pow(a-1.5/2.75,2)+.75:a<r?7.5625*(a-=2.25/2.75)*a+.9375:e*Math.pow(a-2.625/t,2)+.984375};tF("Bounce",function(e){return 1-a(1-e)},a)}(7.5625,2.75),tF("Expo",function(e){return Math.pow(2,10*(e-1))*e+e*e*e*e*e*e*(1-e)}),tF("Circ",function(e){return-(E(1-e*e)-1)}),tF("Sine",function(e){return 1===e?1:-w(e*x)+1}),tF("Back",tU("in"),tU("out"),tU()),tL.SteppedEase=tL.steps=G.SteppedEase={config:function(e,t){void 0===e&&(e=1);var n=1/e,i=e+(t?0:1),r=t?1:0,a=1-_;return function(e){return((i*eJ(0,a,e)|0)+r)*n}}},v.ease=tL["quad.out"],ec("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(e){return es+=e+","+e+"Params,"});var tV=function(e,t){this.id=C++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:eu,this.set=t?t.getSetter:t8},tB=function(){function e(e){this.vars=e,this._delay=+e.delay||0,(this._repeat=e.repeat===1/0?-2:e.repeat||0)&&(this._rDelay=e.repeatDelay||0,this._yoyo=!!e.yoyo||!!e.yoyoEase),this._ts=1,e$(this,+e.duration,1,1),this.data=e.data,o&&(this._ctx=o,o.data.push(this)),m||tT.wake()}var t=e.prototype;return t.delay=function(e){return e||0===e?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+e-this._delay),this._delay=e,this):this._delay},t.duration=function(e){return arguments.length?this.totalDuration(this._repeat>0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){return arguments.length?(this._dirty=0,e$(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(tS(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(ej(this,e),!n._dp||n.parent||eU(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:-((n.totalDuration()-n._tTime)/n._ts))&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e<this._tDur||this._ts<0&&e>0||!this._tDur&&!e)&&eV(this._dp,this,this._start-this._delay)}return this._tTime===e&&(this._dur||t)&&(!this._initted||Math.abs(this._zTime)!==_)&&(e||this._initted||!this.add&&!this._ptLookup)||(this._ts||(this._pTime=e),ev(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+eD(this))%(this._dur+this._rDelay)||(e?this._dur:0),t):this._time},t.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(1&this.iteration())?1-e:e)+eD(this),t):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(e,t){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*n,t):this._repeat?eN(this._tTime,n)+1:1},t.timeScale=function(e,t){if(!arguments.length)return this._rts===-_?0:this._rts;if(this._rts===e)return this;var n=this.parent&&this._ts?eF(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||e===-_?0:this._rts,this.totalTime(eJ(-Math.abs(this._delay),this.totalDuration(),n),!1!==t),eO(this),eI(this)},t.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(tS(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==_&&(this._tTime-=_)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=e;var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&eV(t,this,e-this._delay),this}return this._start},t.endTime=function(e){return this._start+(I(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(e){var t=this.parent||this._dp;return t?e&&(!this._ts||this._repeat&&this._time&&1>this.totalProgress())?this._tTime%(this._dur+this._rDelay):this._ts?eF(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){void 0===e&&(e=Q);var t=s;return s=e,eg(this)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),"nested"!==this.data&&!1!==e.kill&&this.kill(),s=t,this},t.globalTime=function(e){for(var t=this,n=arguments.length?e:t.rawTime();t;)n=t._start+n/(Math.abs(t._ts)||1),t=t._dp;return!this.parent&&this._sat?this._sat.globalTime(e):n},t.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,eZ(this)):-2===this._repeat?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,eZ(this),t?this.time(t):this}return this._rDelay},t.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},t.seek=function(e,t){return this.totalTime(eK(this,e),I(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,I(t)),this._dur||(this._zTime=-_),this},t.play=function(e,t){return null!=e&&this.seek(e,t),this.reversed(!1).paused(!1)},t.reverse=function(e,t){return null!=e&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},t.pause=function(e,t){return null!=e&&this.seek(e,t),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-_:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-_,this},t.isActive=function(){var e,t=this.parent||this._dp,n=this._start;return!!(!t||this._ts&&this._initted&&t.isActive()&&(e=t.rawTime(!0))>=n&&e<this.endTime(!0)-_)},t.eventCallback=function(e,t,n){var i=this.vars;return arguments.length>1?(t?(i[e]=t,n&&(i[e+"Params"]=n),"onUpdate"===e&&(this._onUpdate=t)):delete i[e],this):i[e]},t.then=function(e){var t=this;return new Promise(function(n){var i=L(e)?e:e_,r=function(){var e=t.then;t.then=null,L(i)&&(i=i(t))&&(i.then||i===t)&&(t.then=e),n(i),t.then=e};t._initted&&1===t.totalProgress()&&t._ts>=0||!t._tTime&&t._ts<0?r():t._prom=r})},t.kill=function(){tf(this)},e}();eb(tB.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-_,_prom:0,_ps:!1,_rts:1});var tH=function(e){function t(t,n){var r;return void 0===t&&(t={}),(r=e.call(this,t)||this).labels={},r.smoothChildTiming=!!t.smoothChildTiming,r.autoRemoveChildren=!!t.autoRemoveChildren,r._sort=I(t.sortChildren),l&&eV(t.parent||l,i(r),n),t.reversed&&r.reverse(),t.paused&&r.paused(!0),t.scrollTrigger&&eB(i(r),t.scrollTrigger),r}r(t,e);var n=t.prototype;return n.to=function(e,t,n){return eX(0,arguments,this),this},n.from=function(e,t,n){return eX(1,arguments,this),this},n.fromTo=function(e,t,n,i){return eX(2,arguments,this),this},n.set=function(e,t,n){return t.duration=0,t.parent=this,eT(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new t2(e,t,eK(this,n),1),this},n.call=function(e,t,n){return eV(this,t2.delayedCall(0,e,t),n)},n.staggerTo=function(e,t,n,i,r,a,s){return n.duration=t,n.stagger=n.stagger||i,n.onComplete=a,n.onCompleteParams=s,n.parent=this,new t2(e,n,eK(this,r)),this},n.staggerFrom=function(e,t,n,i,r,a,s){return n.runBackwards=1,eT(n).immediateRender=I(n.immediateRender),this.staggerTo(e,t,n,i,r,a,s)},n.staggerFromTo=function(e,t,n,i,r,a,s,o){return i.startAt=n,eT(i).immediateRender=I(i.immediateRender),this.staggerTo(e,t,i,r,a,s,o)},n.render=function(e,t,n){var i,r,a,o,u,c,d,h,f,p,m,g,v=this._time,y=this._dirty?this.totalDuration():this._tDur,b=this._dur,x=e<=0?0:eh(e),C=this._zTime<0!=e<0&&(this._initted||!b);if(this!==l&&x>y&&e>=0&&(x=y),x!==this._tTime||n||C){if(v!==this._time&&b&&(x+=this._time-v,e+=this._time-v),i=x,f=this._start,c=!(h=this._ts),C&&(b||(v=this._zTime),(e||!t)&&(this._zTime=e)),this._repeat){if(m=this._yoyo,u=b+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(100*u+e,t,n);if(i=eh(x%u),x===y?(o=this._repeat,i=b):((o=~~(p=eh(x/u)))&&o===p&&(i=b,o--),i>b&&(i=b)),p=eN(this._tTime,u),!v&&this._tTime&&p!==o&&this._tTime-p*u-this._dur<=0&&(p=o),m&&1&o&&(i=b-i,g=1),o!==p&&!this._lock){var E=m&&1&p,w=E===(m&&1&o);if(o<p&&(E=!E),v=E?0:x%b?b:x,this._lock=1,this.render(v||(g?0:eh(o*u)),t,!b)._lock=0,this._tTime=x,!t&&this.parent&&th(this,"onRepeat"),this.vars.repeatRefresh&&!g&&(this.invalidate()._lock=1),v&&v!==this._time||!this._ts!==c||this.vars.onRepeat&&!this.parent&&!this._act||(b=this._dur,y=this._tDur,w&&(this._lock=2,v=E?b:-.0001,this.render(v,!0),this.vars.repeatRefresh&&!g&&this.invalidate()),this._lock=0,!this._ts&&!c))return this;tD(this,g)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(d=eW(this,eh(v),eh(i)))&&(x-=i-(i=d._start)),this._tTime=x,this._time=i,this._act=!h,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=e,v=0),!v&&x&&!t&&!p&&(th(this,"onStart"),this._tTime!==x))return this;if(i>=v&&e>=0)for(r=this._first;r;){if(a=r._next,(r._act||i>=r._start)&&r._ts&&d!==r){if(r.parent!==this)return this.render(e,t,n);if(r.render(r._ts>0?(i-r._start)*r._ts:(r._dirty?r.totalDuration():r._tDur)+(i-r._start)*r._ts,t,n),i!==this._time||!this._ts&&!c){d=0,a&&(x+=this._zTime=-_);break}}r=a}else{r=this._last;for(var T=e<0?e:i;r;){if(a=r._prev,(r._act||T<=r._end)&&r._ts&&d!==r){if(r.parent!==this)return this.render(e,t,n);if(r.render(r._ts>0?(T-r._start)*r._ts:(r._dirty?r.totalDuration():r._tDur)+(T-r._start)*r._ts,t,n||s&&eg(r)),i!==this._time||!this._ts&&!c){d=0,a&&(x+=this._zTime=T?-_:_);break}}r=a}}if(d&&!t&&(this.pause(),d.render(i>=v?0:-_)._zTime=i>=v?1:-1,this._ts))return this._start=f,eO(this),this.render(e,t,n);this._onUpdate&&!t&&th(this,"onUpdate",!0),(x===y&&this._tTime>=this.totalDuration()||!x&&v)&&(f===this._start||Math.abs(h)!==Math.abs(this._ts))&&!this._lock&&((e||!b)&&(x===y&&this._ts>0||!x&&this._ts<0)&&eM(this,1),t||e<0&&!v||!x&&!v&&y||(th(this,x===y&&e>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(x<y&&this.timeScale()>0)&&this._prom()))}return this},n.add=function(e,t){var n=this;if(P(t)||(t=eK(this,t,e)),!(e instanceof tB)){if(N(e))return e.forEach(function(e){return n.add(e,t)}),this;if(S(e))return this.addLabel(e,t);if(!L(e))return this;e=t2.delayedCall(0,e)}return this!==e?eV(this,e,t):this},n.getChildren=function(e,t,n,i){void 0===e&&(e=!0),void 0===t&&(t=!0),void 0===n&&(n=!0),void 0===i&&(i=-y);for(var r=[],a=this._first;a;)a._start>=i&&(a instanceof t2?t&&r.push(a):(n&&r.push(a),e&&r.push.apply(r,a.getChildren(!0,t,n)))),a=a._next;return r},n.getById=function(e){for(var t=this.getChildren(1,1,1),n=t.length;n--;)if(t[n].vars.id===e)return t[n]},n.remove=function(e){return S(e)?this.removeLabel(e):L(e)?this.killTweensOf(e):(e.parent===this&&eP(this,e),e===this._recent&&(this._recent=this._last),eA(this))},n.totalTime=function(t,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=eh(tT.time-(this._ts>0?t/this._ts:-((this.totalDuration()-t)/this._ts)))),e.prototype.totalTime.call(this,t,n),this._forcing=0,this):this._tTime},n.addLabel=function(e,t){return this.labels[e]=eK(this,t),this},n.removeLabel=function(e){return delete this.labels[e],this},n.addPause=function(e,t,n){var i=t2.delayedCall(0,t||Y,n);return i.data="isPause",this._hasPause=1,eV(this,i,eK(this,e))},n.removePause=function(e){var t=this._first;for(e=eK(this,e);t;)t._start===e&&"isPause"===t.data&&eM(t),t=t._next},n.killTweensOf=function(e,t,n){for(var i=this.getTweensOf(e,n),r=i.length;r--;)tG!==i[r]&&i[r].kill(e,t);return this},n.getTweensOf=function(e,t){for(var n,i=[],r=e4(e),a=this._first,s=P(t);a;)a instanceof t2?ep(a._targets,r)&&(s?(!tG||a._initted&&a._ts)&&a.globalTime(0)<=t&&a.globalTime(a.totalDuration())>t:!t||a.isActive())&&i.push(a):(n=a.getTweensOf(r,t)).length&&i.push.apply(i,n),a=a._next;return i},n.tweenTo=function(e,t){t=t||{};var n,i=this,r=eK(i,e),a=t,s=a.startAt,o=a.onStart,l=a.onStartParams,u=a.immediateRender,c=t2.to(i,eb({ease:t.ease||"none",lazy:!1,immediateRender:!1,time:r,overwrite:"auto",duration:t.duration||Math.abs((r-(s&&"time"in s?s.time:i._time))/i.timeScale())||_,onStart:function(){if(i.pause(),!n){var e=t.duration||Math.abs((r-(s&&"time"in s?s.time:i._time))/i.timeScale());c._dur!==e&&e$(c,e,0,1).render(c._time,!0,!0),n=1}o&&o.apply(c,l||[])}},t));return u?c.render(0):c},n.tweenFromTo=function(e,t,n){return this.tweenTo(t,eb({startAt:{time:eK(this,e)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(e){return void 0===e&&(e=this._time),td(this,eK(this,e))},n.previousLabel=function(e){return void 0===e&&(e=this._time),td(this,eK(this,e),1)},n.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+_)},n.shiftChildren=function(e,t,n){void 0===n&&(n=0);for(var i,r=this._first,a=this.labels;r;)r._start>=n&&(r._start+=e,r._end+=e),r=r._next;if(t)for(i in a)a[i]>=n&&(a[i]+=e);return eA(this)},n.invalidate=function(t){var n=this._first;for(this._lock=0;n;)n.invalidate(t),n=n._next;return e.prototype.invalidate.call(this,t)},n.clear=function(e){void 0===e&&(e=!0);for(var t,n=this._first;n;)t=n._next,this.remove(n),n=t;return this._dp&&(this._time=this._tTime=this._pTime=0),e&&(this.labels={}),eA(this)},n.totalDuration=function(e){var t,n,i,r=0,a=this,s=a._last,o=y;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-e:e));if(a._dirty){for(i=a.parent;s;)t=s._prev,s._dirty&&s.totalDuration(),(n=s._start)>o&&a._sort&&s._ts&&!a._lock?(a._lock=1,eV(a,s,n-s._delay,1)._lock=0):o=n,n<0&&s._ts&&(r-=n,(!i&&!a._dp||i&&i.smoothChildTiming)&&(a._start+=n/a._ts,a._time-=n,a._tTime-=n),a.shiftChildren(-n,!1,-1/0),o=0),s._end>r&&s._ts&&(r=s._end),s=t;e$(a,a===l&&a._time>r?a._time:r,1,1),a._dirty=0}return a._tDur},t.updateRoot=function(e){if(l._ts&&(ev(l,eF(e,l)),f=tT.frame),tT.frame>=er){er+=g.autoSleep||120;var t=l._first;if((!t||!t._ts)&&g.autoSleep&&tT._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||tT.sleep()}}},t}(tB);eb(tH.prototype,{_lock:0,_hasPause:0,_forcing:0});var tG,tz,tq=function(e,t,n,i,r,a,s){var o,l,u,c,d,h,f,p,m=new ns(this._pt,e,t,0,1,ne,null,r),g=0,v=0;for(m.b=n,m.e=i,n+="",i+="",(f=~i.indexOf("random("))&&(i=tl(i)),a&&(a(p=[n,i],e,t),n=p[0],i=p[1]),l=n.match(U)||[];o=U.exec(i);)c=o[0],d=i.substring(g,o.index),u?u=(u+1)%5:"rgba("===d.substr(-5)&&(u=1),c!==l[v++]&&(h=parseFloat(l[v-1])||0,m._pt={_next:m._pt,p:d||1===v?d:",",s:h,c:"="===c.charAt(1)?ef(h,c)-h:parseFloat(c)-h,m:u&&u<4?Math.round:0},g=U.lastIndex);return m.c=g<i.length?i.substring(g,i.length):"",m.fp=s,(V.test(i)||f)&&(m.e=0),this._pt=m,m},tW=function(e,t,n,i,r,a,s,o,l,u){L(i)&&(i=i(r||0,e,a));var c,d=e[t],h="get"!==n?n:L(d)?l?e[t.indexOf("set")||!L(e["get"+t.substr(3)])?t:"get"+t.substr(3)](l):e[t]():d,f=L(d)?l?t4:t5:t3;if(S(i)&&(~i.indexOf("random(")&&(i=tl(i)),"="===i.charAt(1)&&((c=ef(h,i)+(e0(h)||0))||0===c)&&(i=c)),!u||h!==i||tz)return isNaN(h*i)||""===i?(d||t in e||W(t,i),tq.call(this,e,t,h,i,f,o||g.stringFilter,l)):(c=new ns(this._pt,e,t,+h||0,i-(h||0),"boolean"==typeof d?t9:t7,0,f),l&&(c.fp=l),s&&c.modifier(s,this,e),this._pt=c)},t$=function(e,t,n,i,r){if(L(e)&&(e=tJ(e,r,t,n,i)),!A(e)||e.style&&e.nodeType||N(e)||D(e))return S(e)?tJ(e,r,t,n,i):e;var a,s={};for(a in e)s[a]=tJ(e[a],r,t,n,i);return s},tZ=function(e,t,n,i,r,a){var s,o,l,u;if(en[e]&&!1!==(s=new en[e]).init(r,s.rawVars?t[e]:t$(t[e],i,r,a,n),n,i,a)&&(n._pt=o=new ns(n._pt,r,e,0,1,s.render,s,0,s.priority),n!==p))for(l=n._ptLookup[n._targets.indexOf(r)],u=s._props.length;u--;)l[s._props[u]]=o;return s},tY=function e(t,n,i){var r,o,u,c,d,h,f,p,m,g,b,x,C,E=t.vars,w=E.ease,T=E.startAt,S=E.immediateRender,L=E.lazy,P=E.onUpdate,M=E.runBackwards,A=E.yoyoEase,R=E.keyframes,k=E.autoRevert,D=t._dur,N=t._startAt,F=t._targets,O=t.parent,j=O&&"nested"===O.data?O.vars.targets:F,U="auto"===t._overwrite&&!a,V=t.timeline;if(!V||R&&w||(w="none"),t._ease=tN(w,v.ease),t._yEase=A?tk(tN(!0===A?w:A,v.ease)):0,A&&t._yoyo&&!t._repeat&&(A=t._yEase,t._yEase=t._ease,t._ease=A),t._from=!V&&!!E.runBackwards,!V||R&&!E.stagger){if(x=(p=F[0]?el(F[0]).harness:0)&&E[p.prop],r=ew(E,J),N&&(N._zTime<0&&N.progress(1),n<0&&M&&S&&!k?N.render(-1,!0):N.revert(M&&D?X:K),N._lazy=0),T){if(eM(t._startAt=t2.set(F,eb({data:"isStart",overwrite:!1,parent:O,immediateRender:!0,lazy:!N&&I(L),startAt:null,delay:0,onUpdate:P&&function(){return th(t,"onUpdate")},stagger:0},T))),t._startAt._dp=0,t._startAt._sat=t,n<0&&(s||!S&&!k)&&t._startAt.revert(X),S&&D&&n<=0&&i<=0){n&&(t._zTime=n);return}}else if(M&&D&&!N){if(n&&(S=!1),u=eb({overwrite:!1,data:"isFromStart",lazy:S&&!N&&I(L),immediateRender:S,stagger:0,parent:O},r),x&&(u[p.prop]=x),eM(t._startAt=t2.set(F,u)),t._startAt._dp=0,t._startAt._sat=t,n<0&&(s?t._startAt.revert(X):t._startAt.render(-1,!0)),t._zTime=n,S){if(!n)return}else e(t._startAt,_,_)}for(o=0,t._pt=t._ptCache=0,L=D&&I(L)||L&&!D;o<F.length;o++){if(f=(d=F[o])._gsap||eo(F)[o]._gsap,t._ptLookup[o]=g={},et[f.id]&&ee.length&&em(),b=j===F?o:j.indexOf(d),p&&!1!==(m=new p).init(d,x||r,t,b,j)&&(t._pt=c=new ns(t._pt,d,m.name,0,1,m.render,m,0,m.priority),m._props.forEach(function(e){g[e]=c}),m.priority&&(h=1)),!p||x)for(u in r)en[u]&&(m=tZ(u,r,t,b,d,j))?m.priority&&(h=1):g[u]=c=tW.call(t,d,u,"get",r[u],b,j,0,E.stringFilter);t._op&&t._op[o]&&t.kill(d,t._op[o]),U&&t._pt&&(tG=t,l.killTweensOf(d,g,t.globalTime(n)),C=!t.parent,tG=0),t._pt&&L&&(et[f.id]=1)}h&&na(t),t._onInit&&t._onInit(t)}t._onUpdate=P,t._initted=(!t._op||t._pt)&&!C,R&&n<=0&&V.render(y,!0,!0)},tK=function(e,t,n,i,r,a,s,o){var l,u,c,d,h=(e._pt&&e._ptCache||(e._ptCache={}))[t];if(!h)for(h=e._ptCache[t]=[],c=e._ptLookup,d=e._targets.length;d--;){if((l=c[d][t])&&l.d&&l.d._pt)for(l=l.d._pt;l&&l.p!==t&&l.fp!==t;)l=l._next;if(!l)return tz=1,e.vars[t]="+=0",tY(e,s),tz=0,o?$(t+" not eligible for reset"):1;h.push(l)}for(d=h.length;d--;)(l=(u=h[d])._pt||u).s=(i||0===i)&&!r?i:l.s+(i||0)+a*l.c,l.c=n-l.s,u.e&&(u.e=ed(n)+e0(u.e)),u.b&&(u.b=l.s+e0(u.b))},tX=function(e,t){var n,i,r,a,s=e[0]?el(e[0]).harness:0,o=s&&s.aliases;if(!o)return t;for(i in n=eC({},t),o)if(i in n)for(r=(a=o[i].split(",")).length;r--;)n[a[r]]=n[i];return n},tQ=function(e,t,n,i){var r,a,s=t.ease||i||"power1.inOut";if(N(t))a=n[e]||(n[e]=[]),t.forEach(function(e,n){return a.push({t:n/(t.length-1)*100,v:e,e:s})});else for(r in t)a=n[r]||(n[r]=[]),"ease"===r||a.push({t:parseFloat(e),v:t[r],e:s})},tJ=function(e,t,n,i,r){return L(e)?e.call(t,n,i,r):S(e)&&~e.indexOf("random(")?tl(e):e},t0=es+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",t1={};ec(t0+",id,stagger,delay,duration,paused,scrollTrigger",function(e){return t1[e]=1});var t2=function(e){function t(t,n,r,s){"number"==typeof n&&(r.duration=n,n=r,r=null);var o,u,c,d,h,f,p,m,v,y=(o=e.call(this,s?n:eT(n))||this).vars,b=y.duration,x=y.delay,C=y.immediateRender,E=y.stagger,w=y.overwrite,T=y.keyframes,S=y.defaults,L=y.scrollTrigger,M=y.yoyoEase,R=n.parent||l,F=(N(t)||D(t)?P(t[0]):"length"in n)?[t]:e4(t);if(o._targets=F.length?eo(F):$("GSAP target "+t+" not found. https://gsap.com",!g.nullTargetWarn)||[],o._ptLookup=[],o._overwrite=w,T||E||k(b)||k(x)){if(n=o.vars,(u=o.timeline=new tH({data:"nested",defaults:S||{},targets:R&&"nested"===R.data?R.vars.targets:F})).kill(),u.parent=u._dp=i(o),u._start=0,E||k(b)||k(x)){if(h=F.length,m=E&&e7(E),A(E))for(f in E)~t0.indexOf(f)&&(v||(v={}),v[f]=E[f]);for(c=0;c<h;c++)(d=ew(n,t1)).stagger=0,M&&(d.yoyoEase=M),v&&eC(d,v),p=F[c],d.duration=+tJ(b,i(o),c,p,F),d.delay=(+tJ(x,i(o),c,p,F)||0)-o._delay,!E&&1===h&&d.delay&&(o._delay=x=d.delay,o._start+=x,d.delay=0),u.to(p,d,m?m(c,p,F):0),u._ease=tL.none;u.duration()?b=x=0:o.timeline=0}else if(T){eT(eb(u.vars.defaults,{ease:"none"})),u._ease=tN(T.ease||n.ease||"none");var O,j,U,V=0;if(N(T))T.forEach(function(e){return u.to(F,e,">")}),u.duration();else{for(f in d={},T)"ease"===f||"easeEach"===f||tQ(f,T[f],d,T.easeEach);for(f in d)for(c=0,O=d[f].sort(function(e,t){return e.t-t.t}),V=0;c<O.length;c++)(U={ease:(j=O[c]).e,duration:(j.t-(c?O[c-1].t:0))/100*b})[f]=j.v,u.to(F,U,V),V+=U.duration;u.duration()<b&&u.to({},{duration:b-u.duration()})}}b||o.duration(b=u.duration())}else o.timeline=0;return!0!==w||a||(tG=i(o),l.killTweensOf(F),tG=0),eV(R,i(o),r),n.reversed&&o.reverse(),n.paused&&o.paused(!0),(C||!b&&!T&&o._start===eh(R._time)&&I(C)&&ek(i(o))&&"nested"!==R.data)&&(o._tTime=-_,o.render(Math.max(0,-x)||0)),L&&eB(i(o),L),o}r(t,e);var n=t.prototype;return n.render=function(e,t,n){var i,r,a,s,o,l,u,c,d,h=this._time,f=this._tDur,p=this._dur,m=e<0,g=e>f-_&&!m?f:e<_?0:e;if(p){if(g!==this._tTime||!e||n||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==m||this._lazy){if(i=g,c=this.timeline,this._repeat){if(s=p+this._rDelay,this._repeat<-1&&m)return this.totalTime(100*s+e,t,n);if(i=eh(g%s),g===f?(a=this._repeat,i=p):(a=~~(o=eh(g/s)))&&a===o?(i=p,a--):i>p&&(i=p),(l=this._yoyo&&1&a)&&(d=this._yEase,i=p-i),o=eN(this._tTime,s),i===h&&!n&&this._initted&&a===o)return this._tTime=g,this;a!==o&&(c&&this._yEase&&tD(c,l),this.vars.repeatRefresh&&!l&&!this._lock&&i!==s&&this._initted&&(this._lock=n=1,this.render(eh(s*a),!0).invalidate()._lock=0))}if(!this._initted){if(eH(this,m?e:i,n,t,g))return this._tTime=0,this;if(h!==this._time&&!(n&&this.vars.repeatRefresh&&a!==o))return this;if(p!==this._dur)return this.render(e,t,n)}if(this._tTime=g,this._time=i,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=u=(d||this._ease)(i/p),this._from&&(this.ratio=u=1-u),!h&&g&&!t&&!o&&(th(this,"onStart"),this._tTime!==g))return this;for(r=this._pt;r;)r.r(u,r.d),r=r._next;c&&c.render(e<0?e:c._dur*c._ease(i/this._dur),t,n)||this._startAt&&(this._zTime=e),this._onUpdate&&!t&&(m&&eR(this,e,t,n),th(this,"onUpdate")),this._repeat&&a!==o&&this.vars.onRepeat&&!t&&this.parent&&th(this,"onRepeat"),(g===this._tDur||!g)&&this._tTime===g&&(m&&!this._onUpdate&&eR(this,e,!0,!0),(e||!p)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&eM(this,1),!t&&!(m&&!h)&&(g||h||l)&&(th(this,g===f?"onComplete":"onReverseComplete",!0),this._prom&&!(g<f&&this.timeScale()>0)&&this._prom()))}}else eq(this,e,t,n);return this},n.targets=function(){return this._targets},n.invalidate=function(t){return t&&this.vars.runBackwards||(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),e.prototype.invalidate.call(this,t)},n.resetTo=function(e,t,n,i,r){m||tT.wake(),this._ts||this.play();var a=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return(this._initted||tY(this,a),tK(this,e,t,n,i,this._ease(a/this._dur),a,r))?this.resetTo(e,t,n,i,1):(ej(this,0),this.parent||eL(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(e,t){if(void 0===t&&(t="all"),!e&&(!t||"all"===t))return this._lazy=this._pt=0,this.parent?tf(this):this.scrollTrigger&&this.scrollTrigger.kill(!!s),this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,tG&&!0!==tG.vars.overwrite)._first||tf(this),this.parent&&n!==this.timeline.totalDuration()&&e$(this,this._dur*this.timeline._tDur/n,0,1),this}var i,r,a,o,l,u,c,d=this._targets,h=e?e4(e):d,f=this._ptLookup,p=this._pt;if((!t||"all"===t)&&eS(d,h))return"all"===t&&(this._pt=0),tf(this);for(i=this._op=this._op||[],"all"!==t&&(S(t)&&(l={},ec(t,function(e){return l[e]=1}),t=l),t=tX(d,t)),c=d.length;c--;)if(~h.indexOf(d[c]))for(l in r=f[c],"all"===t?(i[c]=t,o=r,a={}):(a=i[c]=i[c]||{},o=t),o)(u=r&&r[l])&&("kill"in u.d&&!0!==u.d.kill(l)||eP(this,u,"_pt"),delete r[l]),"all"!==a&&(a[l]=1);return this._initted&&!this._pt&&p&&tf(this),this},t.to=function(e,n){return new t(e,n,arguments[2])},t.from=function(e,t){return eX(1,arguments)},t.delayedCall=function(e,n,i,r){return new t(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:n,onReverseComplete:n,onCompleteParams:i,onReverseCompleteParams:i,callbackScope:r})},t.fromTo=function(e,t,n){return eX(2,arguments)},t.set=function(e,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new t(e,n)},t.killTweensOf=function(e,t,n){return l.killTweensOf(e,t,n)},t}(tB);eb(t2.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),ec("staggerTo,staggerFrom,staggerFromTo",function(e){t2[e]=function(){var t=new tH,n=e2.call(arguments,0);return n.splice("staggerFromTo"===e?5:4,0,0),t[e].apply(t,n)}});var t3=function(e,t,n){return e[t]=n},t5=function(e,t,n){return e[t](n)},t4=function(e,t,n,i){return e[t](i.fp,n)},t6=function(e,t,n){return e.setAttribute(t,n)},t8=function(e,t){return L(e[t])?t5:M(e[t])&&e.setAttribute?t6:t3},t7=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},t9=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},ne=function(e,t){var n=t._pt,i="";if(!e&&t.b)i=t.b;else if(1===e&&t.e)i=t.e;else{for(;n;)i=n.p+(n.m?n.m(n.s+n.c*e):Math.round((n.s+n.c*e)*1e4)/1e4)+i,n=n._next;i+=t.c}t.set(t.t,t.p,i,t)},nt=function(e,t){for(var n=t._pt;n;)n.r(e,n.d),n=n._next},nn=function(e,t,n,i){for(var r,a=this._pt;a;)r=a._next,a.p===i&&a.modifier(e,t,n),a=r},ni=function(e){for(var t,n,i=this._pt;i;)n=i._next,(i.p!==e||i.op)&&i.op!==e?i.dep||(t=1):eP(this,i,"_pt"),i=n;return!t},nr=function(e,t,n,i){i.mSet(e,t,i.m.call(i.tween,n,i.mt),i)},na=function(e){for(var t,n,i,r,a=e._pt;a;){for(t=a._next,n=i;n&&n.pr>a.pr;)n=n._next;(a._prev=n?n._prev:r)?a._prev._next=a:i=a,(a._next=n)?n._prev=a:r=a,a=t}e._pt=i},ns=function(){function e(e,t,n,i,r,a,s,o,l){this.t=t,this.s=i,this.c=r,this.p=n,this.r=a||t7,this.d=s||this,this.set=o||t3,this.pr=l||0,this._next=e,e&&(e._prev=this)}return e.prototype.modifier=function(e,t,n){this.mSet=this.mSet||this.set,this.set=nr,this.m=e,this.mt=n,this.tween=t},e}();ec(es+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(e){return J[e]=1}),G.TweenMax=G.TweenLite=t2,G.TimelineLite=G.TimelineMax=tH,l=new tH({sortChildren:!1,defaults:v,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),g.stringFilter=tw;var no=[],nl={},nu=[],nc=0,nd=0,nh=function(e){return(nl[e]||nu).map(function(e){return e()})},nf=function(){var e=Date.now(),t=[];e-nc>2&&(nh("matchMediaInit"),no.forEach(function(e){var n,i,r,a,s=e.queries,o=e.conditions;for(i in s)(n=u.matchMedia(s[i]).matches)&&(r=1),n!==o[i]&&(o[i]=n,a=1);a&&(e.revert(),r&&t.push(e))}),nh("matchMediaRevert"),t.forEach(function(e){return e.onMatch(e,function(t){return e.add(null,t)})}),nc=e,nh("matchMedia"))},np=function(){function e(e,t){this.selector=t&&e6(t),this.data=[],this._r=[],this.isReverted=!1,this.id=nd++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,n){L(e)&&(n=t,t=e,e=L);var i=this,r=function(){var e,r=o,a=i.selector;return r&&r!==i&&r.data.push(i),n&&(i.selector=e6(n)),o=i,e=t.apply(i,arguments),L(e)&&i._r.push(e),o=r,i.selector=a,i.isReverted=!1,e};return i.last=r,e===L?r(i,function(e){return i.add(null,e)}):e?i[e]=r:r},t.ignore=function(e){var t=o;o=null,e(this),o=t},t.getTweens=function(){var t=[];return this.data.forEach(function(n){return n instanceof e?t.push.apply(t,n.getTweens()):n instanceof t2&&!(n.parent&&"nested"===n.parent.data)&&t.push(n)}),t},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(e,t){var n=this;if(e?function(){for(var t,i=n.getTweens(),r=n.data.length;r--;)"isFlip"===(t=n.data[r]).data&&(t.revert(),t.getChildren(!0,!0,!1).forEach(function(e){return i.splice(i.indexOf(e),1)}));for(i.map(function(e){return{g:e._dur||e._delay||e._sat&&!e._sat.vars.immediateRender?e.globalTime(0):-1/0,t:e}}).sort(function(e,t){return t.g-e.g||-1/0}).forEach(function(t){return t.t.revert(e)}),r=n.data.length;r--;)(t=n.data[r])instanceof tH?"nested"!==t.data&&(t.scrollTrigger&&t.scrollTrigger.revert(),t.kill()):t instanceof t2||!t.revert||t.revert(e);n._r.forEach(function(t){return t(e,n)}),n.isReverted=!0}():this.data.forEach(function(e){return e.kill&&e.kill()}),this.clear(),t)for(var i=no.length;i--;)no[i].id===this.id&&no.splice(i,1)},t.revert=function(e){this.kill(e||{})},e}(),nm=function(){function e(e){this.contexts=[],this.scope=e,o&&o.data.push(this)}var t=e.prototype;return t.add=function(e,t,n){A(e)||(e={matches:e});var i,r,a,s=new np(0,n||this.scope),l=s.conditions={};for(r in o&&!s.selector&&(s.selector=o.selector),this.contexts.push(s),t=s.add("onMatch",t),s.queries=e,e)"all"===r?a=1:(i=u.matchMedia(e[r]))&&(0>no.indexOf(s)&&no.push(s),(l[r]=i.matches)&&(a=1),i.addListener?i.addListener(nf):i.addEventListener("change",nf));return a&&t(s,function(e){return s.add(null,e)}),this},t.revert=function(e){this.kill(e||{})},t.kill=function(e){this.contexts.forEach(function(t){return t.kill(e,!0)})},e}(),ng={registerPlugin:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];t.forEach(function(e){return tm(e)})},timeline:function(e){return new tH(e)},getTweensOf:function(e,t){return l.getTweensOf(e,t)},getProperty:function(e,t,n,i){S(e)&&(e=e4(e)[0]);var r=el(e||{}).get,a=n?e_:ey;return"native"===n&&(n=""),e?t?a((en[t]&&en[t].get||r)(e,t,n,i)):function(t,n,i){return a((en[t]&&en[t].get||r)(e,t,n,i))}:e},quickSetter:function(e,t,n){if((e=e4(e)).length>1){var i=e.map(function(e){return nb.quickSetter(e,t,n)}),r=i.length;return function(e){for(var t=r;t--;)i[t](e)}}e=e[0]||{};var a=en[t],s=el(e),o=s.harness&&(s.harness.aliases||{})[t]||t,l=a?function(t){var i=new a;p._pt=0,i.init(e,n?t+n:t,p,0,[e]),i.render(1,i),p._pt&&nt(1,p)}:s.set(e,o);return a?l:function(t){return l(e,o,n?t+n:t,s,1)}},quickTo:function(e,t,n){var i,r=nb.to(e,eb(((i={})[t]="+=0.1",i.paused=!0,i.stagger=0,i),n||{})),a=function(e,n,i){return r.resetTo(t,e,n,i)};return a.tween=r,a},isTweening:function(e){return l.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=tN(e.ease,v.ease)),eE(v,e||{})},config:function(e){return eE(g,e||{})},registerEffect:function(e){var t=e.name,n=e.effect,i=e.plugins,r=e.defaults,a=e.extendTimeline;(i||"").split(",").forEach(function(e){return e&&!en[e]&&!G[e]&&$(t+" effect requires "+e+" plugin.")}),ei[t]=function(e,t,i){return n(e4(e),eb(t||{},r),i)},a&&(tH.prototype[t]=function(e,n,i){return this.add(ei[t](e,A(n)?n:(i=n)&&{},this),i)})},registerEase:function(e,t){tL[e]=tN(t)},parseEase:function(e,t){return arguments.length?tN(e,t):tL},getById:function(e){return l.getById(e)},exportRoot:function(e,t){void 0===e&&(e={});var n,i,r=new tH(e);for(r.smoothChildTiming=I(e.smoothChildTiming),l.remove(r),r._dp=0,r._time=r._tTime=l._time,n=l._first;n;)i=n._next,(t||!(!n._dur&&n instanceof t2&&n.vars.onComplete===n._targets[0]))&&eV(r,n,n._start-n._delay),n=i;return eV(l,r,0),r},context:function(e,t){return e?new np(e,t):o},matchMedia:function(e){return new nm(e)},matchMediaRefresh:function(){return no.forEach(function(e){var t,n,i=e.conditions;for(n in i)i[n]&&(i[n]=!1,t=1);t&&e.revert()})||nf()},addEventListener:function(e,t){var n=nl[e]||(nl[e]=[]);~n.indexOf(t)||n.push(t)},removeEventListener:function(e,t){var n=nl[e],i=n&&n.indexOf(t);i>=0&&n.splice(i,1)},utils:{wrap:ts,wrapYoyo:to,distribute:e7,random:tt,snap:te,normalize:tr,getUnit:e0,clamp:e1,splitColor:t_,toArray:e4,selector:e6,mapRange:tu,pipe:tn,unitize:ti,interpolate:tc,shuffle:e8},install:q,effects:ei,ticker:tT,updateRoot:tH.updateRoot,plugins:en,globalTimeline:l,core:{PropTween:ns,globals:Z,Tween:t2,Timeline:tH,Animation:tB,getCache:el,_removeLinkedListItem:eP,reverting:function(){return s},context:function(e){return e&&o&&(o.data.push(e),e._ctx=o),o},suppressOverwrites:function(e){return a=e}}};ec("to,from,fromTo,delayedCall,set,killTweensOf",function(e){return ng[e]=t2[e]}),tT.add(tH.updateRoot),p=ng.to({},{duration:0});var nv=function(e,t){for(var n=e._pt;n&&n.p!==t&&n.op!==t&&n.fp!==t;)n=n._next;return n},ny=function(e,t){var n,i,r,a=e._targets;for(n in t)for(i=a.length;i--;)(r=e._ptLookup[i][n])&&(r=r.d)&&(r._pt&&(r=nv(r,n)),r&&r.modifier&&r.modifier(t[n],e,a[i],n))},n_=function(e,t){return{name:e,headless:1,rawVars:1,init:function(e,n,i){i._onInit=function(e){var i,r;if(S(n)&&(i={},ec(n,function(e){return i[e]=1}),n=i),t){for(r in i={},n)i[r]=t(n[r]);n=i}ny(e,n)}}}},nb=ng.registerPlugin({name:"attr",init:function(e,t,n,i,r){var a,s,o;for(a in this.tween=n,t)o=e.getAttribute(a)||"",(s=this.add(e,"setAttribute",(o||0)+"",t[a],i,r,0,0,a)).op=a,s.b=o,this._props.push(a)},render:function(e,t){for(var n=t._pt;n;)s?n.set(n.t,n.p,n.b,n):n.r(e,n.d),n=n._next}},{name:"endArray",headless:1,init:function(e,t){for(var n=t.length;n--;)this.add(e,n,e[n]||0,t[n],0,0,0,0,0,1)}},n_("roundProps",e9),n_("modifiers"),n_("snap",te))||ng;t2.version=tH.version=nb.version="3.13.0",h=1,R()&&tS(),tL.Power0,tL.Power1,tL.Power2,tL.Power3,tL.Power4,tL.Linear,tL.Quad,tL.Cubic,tL.Quart,tL.Quint,tL.Strong,tL.Elastic,tL.Back,tL.SteppedEase,tL.Bounce,tL.Sine,tL.Expo,tL.Circ;var nx,nC,nE,nw,nT,nS,nL,nP,nM=function(){return!0},nA={},nI=180/Math.PI,nR=Math.PI/180,nk=Math.atan2,nD=1e8,nN=/([A-Z])/g,nF=/(left|right|width|margin|padding|x)/i,nO=/[\s,\(]\S/,nj={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},nU=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},nV=function(e,t){return t.set(t.t,t.p,1===e?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},nB=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},nH=function(e,t){var n=t.s+t.c*e;t.set(t.t,t.p,~~(n+(n<0?-.5:.5))+t.u,t)},nG=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},nz=function(e,t){return t.set(t.t,t.p,1!==e?t.b:t.e,t)},nq=function(e,t,n){return e.style[t]=n},nW=function(e,t,n){return e.style.setProperty(t,n)},n$=function(e,t,n){return e._gsap[t]=n},nZ=function(e,t,n){return e._gsap.scaleX=e._gsap.scaleY=n},nY=function(e,t,n,i,r){var a=e._gsap;a.scaleX=a.scaleY=n,a.renderTransform(r,a)},nK=function(e,t,n,i,r){var a=e._gsap;a[t]=n,a.renderTransform(r,a)},nX="transform",nQ=nX+"Origin",nJ=function e(t,n){var i=this,r=this.target,a=r.style,s=r._gsap;if(t in nA&&a){if(this.tfm=this.tfm||{},"transform"===t)return nj.transform.split(",").forEach(function(t){return e.call(i,t,n)});if(~(t=nj[t]||t).indexOf(",")?t.split(",").forEach(function(e){return i.tfm[e]=il(r,e)}):this.tfm[t]=s.x?s[t]:il(r,t),t===nQ&&(this.tfm.zOrigin=s.zOrigin),this.props.indexOf(nX)>=0)return;s.svg&&(this.svgo=r.getAttribute("data-svg-origin"),this.props.push(nQ,n,"")),t=nX}(a||n)&&this.props.push(t,n,a[t])},n0=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},n1=function(){var e,t,n=this.props,i=this.target,r=i.style,a=i._gsap;for(e=0;e<n.length;e+=3)n[e+1]?2===n[e+1]?i[n[e]](n[e+2]):i[n[e]]=n[e+2]:n[e+2]?r[n[e]]=n[e+2]:r.removeProperty("--"===n[e].substr(0,2)?n[e]:n[e].replace(nN,"-$1").toLowerCase());if(this.tfm){for(t in this.tfm)a[t]=this.tfm[t];a.svg&&(a.renderTransform(),i.setAttribute("data-svg-origin",this.svgo||"")),(e=nL())&&e.isStart||r[nX]||(n0(r),a.zOrigin&&r[nQ]&&(r[nQ]+=" "+a.zOrigin+"px",a.zOrigin=0,a.renderTransform()),a.uncache=1)}},n2=function(e,t){var n={target:e,props:[],revert:n1,save:nJ};return e._gsap||nb.core.getCache(e),t&&e.style&&e.nodeType&&t.split(",").forEach(function(e){return n.save(e)}),n},n3=function(e,t){var n=nx.createElementNS?nx.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):nx.createElement(e);return n&&n.style?n:nx.createElement(e)},n5=function e(t,n,i){var r=getComputedStyle(t);return r[n]||r.getPropertyValue(n.replace(nN,"-$1").toLowerCase())||r.getPropertyValue(n)||!i&&e(t,n6(n)||n,1)||""},n4="O,Moz,ms,Ms,Webkit".split(","),n6=function(e,t,n){var i=(t||nw).style,r=5;if(e in i&&!n)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);r--&&!(n4[r]+e in i););return r<0?null:(3===r?"ms":r>=0?n4[r]:"")+e},n8=function(){nM()&&window.document&&(nC=(nx=window.document).documentElement,nw=n3("div")||{style:{}},nT=n3("div"),nQ=(nX=n6(nX))+"Origin",nw.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",nP=!!n6("perspective"),nL=nb.core.reverting,nE=1)},n7=function(e){var t,n=e.ownerSVGElement,i=n3("svg",n&&n.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=e.cloneNode(!0);r.style.display="block",i.appendChild(r),nC.appendChild(i);try{t=r.getBBox()}catch(e){}return i.removeChild(r),nC.removeChild(i),t},n9=function(e,t){for(var n=t.length;n--;)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])},ie=function(e){var t,n;try{t=e.getBBox()}catch(i){t=n7(e),n=1}return t&&(t.width||t.height)||n||(t=n7(e)),!t||t.width||t.x||t.y?t:{x:+n9(e,["x","cx","x1"])||0,y:+n9(e,["y","cy","y1"])||0,width:0,height:0}},it=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&ie(e))},ii=function(e,t){if(t){var n,i=e.style;t in nA&&t!==nQ&&(t=nX),i.removeProperty?(("ms"===(n=t.substr(0,2))||"webkit"===t.substr(0,6))&&(t="-"+t),i.removeProperty("--"===n?t:t.replace(nN,"-$1").toLowerCase())):i.removeAttribute(t)}},ir=function(e,t,n,i,r,a){var s=new ns(e._pt,t,n,0,1,a?nz:nG);return e._pt=s,s.b=i,s.e=r,e._props.push(n),s},ia={deg:1,rad:1,turn:1},is={grid:1,flex:1},io=function e(t,n,i,r){var a,s,o,l,u=parseFloat(i)||0,c=(i+"").trim().substr((u+"").length)||"px",d=nw.style,h=nF.test(n),f="svg"===t.tagName.toLowerCase(),p=(f?"client":"offset")+(h?"Width":"Height"),m=100,g="px"===r,v="%"===r;if(r===c||!u||ia[r]||ia[c])return u;if("px"===c||g||(u=e(t,n,i,"px")),l=t.getCTM&&it(t),(v||"%"===c)&&(nA[n]||~n.indexOf("adius")))return a=l?t.getBBox()[h?"width":"height"]:t[p],ed(v?u/a*m:u/100*a);if(d[h?"width":"height"]=m+(g?c:r),s="rem"!==r&&~n.indexOf("adius")||"em"===r&&t.appendChild&&!f?t:t.parentNode,l&&(s=(t.ownerSVGElement||{}).parentNode),s&&s!==nx&&s.appendChild||(s=nx.body),(o=s._gsap)&&v&&o.width&&h&&o.time===tT.time&&!o.uncache)return ed(u/o.width*m);if(v&&("height"===n||"width"===n)){var y=t.style[n];t.style[n]=m+r,a=t[p],y?t.style[n]=y:ii(t,n)}else(v||"%"===c)&&!is[n5(s,"display")]&&(d.position=n5(t,"position")),s===t&&(d.position="static"),s.appendChild(nw),a=nw[p],s.removeChild(nw),d.position="absolute";return h&&v&&((o=el(s)).time=tT.time,o.width=s[p]),ed(g?a*u/m:a&&u?m/a*u:0)},il=function(e,t,n,i){var r;return nE||n8(),t in nj&&"transform"!==t&&~(t=nj[t]).indexOf(",")&&(t=t.split(",")[0]),nA[t]&&"transform"!==t?(r=ix(e,i),r="transformOrigin"!==t?r[t]:r.svg?r.origin:iC(n5(e,nQ))+" "+r.zOrigin+"px"):(!(r=e.style[t])||"auto"===r||i||~(r+"").indexOf("calc("))&&(r=ip[t]&&ip[t](e,t,n)||n5(e,t)||eu(e,t)||("opacity"===t?1:0)),n&&!~(r+"").trim().indexOf(" ")?io(e,t,r,n)+n:r},iu=function(e,t,n,i){if(!n||"none"===n){var r=n6(t,e,1),a=r&&n5(e,r,1);a&&a!==n?(t=r,n=a):"borderColor"===t&&(n=n5(e,"borderTopColor"))}var s,o,l,u,c,d,h,f,p,m,v,y=new ns(this._pt,e.style,t,0,1,ne),_=0,b=0;if(y.b=n,y.e=i,n+="","var(--"===(i+="").substring(0,6)&&(i=n5(e,i.substring(4,i.indexOf(")")))),"auto"===i&&(d=e.style[t],e.style[t]=i,i=n5(e,t)||i,d?e.style[t]=d:ii(e,t)),tw(s=[n,i]),n=s[0],i=s[1],l=n.match(j)||[],(i.match(j)||[]).length){for(;o=j.exec(i);)h=o[0],p=i.substring(_,o.index),c?c=(c+1)%5:("rgba("===p.substr(-5)||"hsla("===p.substr(-5))&&(c=1),h!==(d=l[b++]||"")&&(u=parseFloat(d)||0,v=d.substr((u+"").length),"="===h.charAt(1)&&(h=ef(u,h)+v),f=parseFloat(h),m=h.substr((f+"").length),_=j.lastIndex-m.length,m||(m=m||g.units[t]||v,_!==i.length||(i+=m,y.e+=m)),v!==m&&(u=io(e,t,d,m)||0),y._pt={_next:y._pt,p:p||1===b?p:",",s:u,c:f-u,m:c&&c<4||"zIndex"===t?Math.round:0});y.c=_<i.length?i.substring(_,i.length):""}else y.r="display"===t&&"none"===i?nz:nG;return V.test(i)&&(y.e=0),this._pt=y,y},ic={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},id=function(e){var t=e.split(" "),n=t[0],i=t[1]||"50%";return("top"===n||"bottom"===n||"left"===i||"right"===i)&&(e=n,n=i,i=e),t[0]=ic[n]||n,t[1]=ic[i]||i,t.join(" ")},ih=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var n,i,r,a=t.t,s=a.style,o=t.u,l=a._gsap;if("all"===o||!0===o)s.cssText="",i=1;else for(r=(o=o.split(",")).length;--r>-1;)nA[n=o[r]]&&(i=1,n="transformOrigin"===n?nQ:nX),ii(a,n);i&&(ii(a,nX),l&&(l.svg&&a.removeAttribute("transform"),s.scale=s.rotate=s.translate="none",ix(a,1),l.uncache=1,n0(s)))}},ip={clearProps:function(e,t,n,i,r){if("isFromStart"!==r.data){var a=e._pt=new ns(e._pt,t,n,0,0,ih);return a.u=i,a.pr=-10,a.tween=r,e._props.push(n),1}}},im=[1,0,0,1,0,0],ig={},iv=function(e){return"matrix(1, 0, 0, 1, 0, 0)"===e||"none"===e||!e},iy=function(e){var t=n5(e,nX);return iv(t)?im:t.substr(7).match(O).map(ed)},i_=function(e,t){var n,i,r,a,s=e._gsap||el(e),o=e.style,l=iy(e);return s.svg&&e.getAttribute("transform")?"1,0,0,1,0,0"===(l=[(r=e.transform.baseVal.consolidate().matrix).a,r.b,r.c,r.d,r.e,r.f]).join(",")?im:l:(l!==im||e.offsetParent||e===nC||s.svg||(r=o.display,o.display="block",(n=e.parentNode)&&(e.offsetParent||e.getBoundingClientRect().width)||(a=1,i=e.nextElementSibling,nC.appendChild(e)),l=iy(e),r?o.display=r:ii(e,"display"),a&&(i?n.insertBefore(e,i):n?n.appendChild(e):nC.removeChild(e))),t&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},ib=function(e,t,n,i,r,a){var s,o,l,u,c=e._gsap,d=r||i_(e,!0),h=c.xOrigin||0,f=c.yOrigin||0,p=c.xOffset||0,m=c.yOffset||0,g=d[0],v=d[1],y=d[2],_=d[3],b=d[4],x=d[5],C=t.split(" "),E=parseFloat(C[0])||0,w=parseFloat(C[1])||0;n?d!==im&&(o=g*_-v*y)&&(l=_/o*E+-y/o*w+(y*x-_*b)/o,u=-v/o*E+g/o*w-(g*x-v*b)/o,E=l,w=u):(E=(s=ie(e)).x+(~C[0].indexOf("%")?E/100*s.width:E),w=s.y+(~(C[1]||C[0]).indexOf("%")?w/100*s.height:w)),i||!1!==i&&c.smooth?(b=E-h,x=w-f,c.xOffset=p+(b*g+x*y)-b,c.yOffset=m+(b*v+x*_)-x):c.xOffset=c.yOffset=0,c.xOrigin=E,c.yOrigin=w,c.smooth=!!i,c.origin=t,c.originIsAbsolute=!!n,e.style[nQ]="0px 0px",a&&(ir(a,c,"xOrigin",h,E),ir(a,c,"yOrigin",f,w),ir(a,c,"xOffset",p,c.xOffset),ir(a,c,"yOffset",m,c.yOffset)),e.setAttribute("data-svg-origin",E+" "+w)},ix=function(e,t){var n=e._gsap||new tV(e);if("x"in n&&!t&&!n.uncache)return n;var i,r,a,s,o,l,u,c,d,h,f,p,m,v,y,_,b,x,C,E,w,T,S,L,P,M,A,I,R,k,D,N,F=e.style,O=n.scaleX<0,j="px",U="deg",V=getComputedStyle(e),B=n5(e,nQ)||"0";return i=r=a=l=u=c=d=h=f=0,s=o=1,n.svg=!!(e.getCTM&&it(e)),V.translate&&(("none"!==V.translate||"none"!==V.scale||"none"!==V.rotate)&&(F[nX]=("none"!==V.translate?"translate3d("+(V.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==V.rotate?"rotate("+V.rotate+") ":"")+("none"!==V.scale?"scale("+V.scale.split(" ").join(",")+") ":"")+("none"!==V[nX]?V[nX]:"")),F.scale=F.rotate=F.translate="none"),v=i_(e,n.svg),n.svg&&(n.uncache?(P=e.getBBox(),B=n.xOrigin-P.x+"px "+(n.yOrigin-P.y)+"px",L=""):L=!t&&e.getAttribute("data-svg-origin"),ib(e,L||B,!!L||n.originIsAbsolute,!1!==n.smooth,v)),p=n.xOrigin||0,m=n.yOrigin||0,v!==im&&(x=v[0],C=v[1],E=v[2],w=v[3],i=T=v[4],r=S=v[5],6===v.length?(s=Math.sqrt(x*x+C*C),o=Math.sqrt(w*w+E*E),l=x||C?nk(C,x)*nI:0,(d=E||w?nk(E,w)*nI+l:0)&&(o*=Math.abs(Math.cos(d*nR))),n.svg&&(i-=p-(p*x+m*E),r-=m-(p*C+m*w))):(N=v[6],k=v[7],A=v[8],I=v[9],R=v[10],D=v[11],i=v[12],r=v[13],a=v[14],u=(y=nk(N,R))*nI,y&&(L=T*(_=Math.cos(-y))+A*(b=Math.sin(-y)),P=S*_+I*b,M=N*_+R*b,A=-(T*b)+A*_,I=-(S*b)+I*_,R=-(N*b)+R*_,D=-(k*b)+D*_,T=L,S=P,N=M),c=(y=nk(-E,R))*nI,y&&(L=x*(_=Math.cos(-y))-A*(b=Math.sin(-y)),P=C*_-I*b,M=E*_-R*b,D=w*b+D*_,x=L,C=P,E=M),l=(y=nk(C,x))*nI,y&&(L=x*(_=Math.cos(y))+C*(b=Math.sin(y)),P=T*_+S*b,C=C*_-x*b,S=S*_-T*b,x=L,T=P),u&&Math.abs(u)+Math.abs(l)>359.9&&(u=l=0,c=180-c),s=ed(Math.sqrt(x*x+C*C+E*E)),o=ed(Math.sqrt(S*S+N*N)),d=Math.abs(y=nk(T,S))>2e-4?y*nI:0,f=D?1/(D<0?-D:D):0),n.svg&&(L=e.getAttribute("transform"),n.forceCSS=e.setAttribute("transform","")||!iv(n5(e,nX)),L&&e.setAttribute("transform",L))),Math.abs(d)>90&&270>Math.abs(d)&&(O?(s*=-1,d+=l<=0?180:-180,l+=l<=0?180:-180):(o*=-1,d+=d<=0?180:-180)),t=t||n.uncache,n.x=i-((n.xPercent=i&&(!t&&n.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-i)?-50:0)))?e.offsetWidth*n.xPercent/100:0)+j,n.y=r-((n.yPercent=r&&(!t&&n.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-r)?-50:0)))?e.offsetHeight*n.yPercent/100:0)+j,n.z=a+j,n.scaleX=ed(s),n.scaleY=ed(o),n.rotation=ed(l)+U,n.rotationX=ed(u)+U,n.rotationY=ed(c)+U,n.skewX=d+U,n.skewY=h+U,n.transformPerspective=f+j,(n.zOrigin=parseFloat(B.split(" ")[2])||!t&&n.zOrigin||0)&&(F[nQ]=iC(B)),n.xOffset=n.yOffset=0,n.force3D=g.force3D,n.renderTransform=n.svg?iM:nP?iP:iw,n.uncache=0,n},iC=function(e){return(e=e.split(" "))[0]+" "+e[1]},iE=function(e,t,n){var i=e0(t);return ed(parseFloat(t)+parseFloat(io(e,"x",n+"px",i)))+i},iw=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,iP(e,t)},iT="0deg",iS="0px",iL=") ",iP=function(e,t){var n=t||this,i=n.xPercent,r=n.yPercent,a=n.x,s=n.y,o=n.z,l=n.rotation,u=n.rotationY,c=n.rotationX,d=n.skewX,h=n.skewY,f=n.scaleX,p=n.scaleY,m=n.transformPerspective,g=n.force3D,v=n.target,y=n.zOrigin,_="",b="auto"===g&&e&&1!==e||!0===g;if(y&&(c!==iT||u!==iT)){var x,C=parseFloat(u)*nR,E=Math.sin(C),w=Math.cos(C);a=iE(v,a,-(E*(x=Math.cos(C=parseFloat(c)*nR))*y)),s=iE(v,s,-(-Math.sin(C)*y)),o=iE(v,o,-(w*x*y)+y)}m!==iS&&(_+="perspective("+m+iL),(i||r)&&(_+="translate("+i+"%, "+r+"%) "),(b||a!==iS||s!==iS||o!==iS)&&(_+=o!==iS||b?"translate3d("+a+", "+s+", "+o+") ":"translate("+a+", "+s+iL),l!==iT&&(_+="rotate("+l+iL),u!==iT&&(_+="rotateY("+u+iL),c!==iT&&(_+="rotateX("+c+iL),(d!==iT||h!==iT)&&(_+="skew("+d+", "+h+iL),(1!==f||1!==p)&&(_+="scale("+f+", "+p+iL),v.style[nX]=_||"translate(0, 0)"},iM=function(e,t){var n,i,r,a,s,o=t||this,l=o.xPercent,u=o.yPercent,c=o.x,d=o.y,h=o.rotation,f=o.skewX,p=o.skewY,m=o.scaleX,g=o.scaleY,v=o.target,y=o.xOrigin,_=o.yOrigin,b=o.xOffset,x=o.yOffset,C=o.forceCSS,E=parseFloat(c),w=parseFloat(d);h=parseFloat(h),f=parseFloat(f),(p=parseFloat(p))&&(f+=p=parseFloat(p),h+=p),h||f?(h*=nR,f*=nR,n=Math.cos(h)*m,i=Math.sin(h)*m,r=-(Math.sin(h-f)*g),a=Math.cos(h-f)*g,f&&(p*=nR,r*=s=Math.sqrt(1+(s=Math.tan(f-p))*s),a*=s,p&&(n*=s=Math.sqrt(1+(s=Math.tan(p))*s),i*=s)),n=ed(n),i=ed(i),r=ed(r),a=ed(a)):(n=m,a=g,i=r=0),(E&&!~(c+"").indexOf("px")||w&&!~(d+"").indexOf("px"))&&(E=io(v,"x",c,"px"),w=io(v,"y",d,"px")),(y||_||b||x)&&(E=ed(E+y-(y*n+_*r)+b),w=ed(w+_-(y*i+_*a)+x)),(l||u)&&(E=ed(E+l/100*(s=v.getBBox()).width),w=ed(w+u/100*s.height)),s="matrix("+n+","+i+","+r+","+a+","+E+","+w+")",v.setAttribute("transform",s),C&&(v.style[nX]=s)},iA=function(e,t,n,i,r){var a,s,o=360,l=S(r),u=parseFloat(r)*(l&&~r.indexOf("rad")?nI:1)-i,c=i+u+"deg";return l&&("short"===(a=r.split("_")[1])&&(u%=o)!=u%(o/2)&&(u+=u<0?o:-o),"cw"===a&&u<0?u=(u+o*nD)%o-~~(u/o)*o:"ccw"===a&&u>0&&(u=(u-o*nD)%o-~~(u/o)*o)),e._pt=s=new ns(e._pt,t,n,i,u,nV),s.e=c,s.u="deg",e._props.push(n),s},iI=function(e,t){for(var n in t)e[n]=t[n];return e},iR=function(e,t,n){var i,r,a,s,o,l,u,c=iI({},n._gsap),d="perspective,force3D,transformOrigin,svgOrigin",h=n.style;for(r in c.svg?(a=n.getAttribute("transform"),n.setAttribute("transform",""),h[nX]=t,i=ix(n,1),ii(n,nX),n.setAttribute("transform",a)):(a=getComputedStyle(n)[nX],h[nX]=t,i=ix(n,1),h[nX]=a),nA)(a=c[r])!==(s=i[r])&&0>d.indexOf(r)&&(o=e0(a)!==(u=e0(s))?io(n,r,a,u):parseFloat(a),l=parseFloat(s),e._pt=new ns(e._pt,i,r,o,l-o,nU),e._pt.u=u||0,e._props.push(r));iI(i,c)};ec("padding,margin,Width,Radius",function(e,t){var n="Top",i="Right",r="Bottom",a="Left",s=(t<3?[n,i,r,a]:[n+a,n+i,r+i,r+a]).map(function(n){return t<2?e+n:"border"+n+e});ip[t>1?"border"+e:e]=function(e,t,n,i,r){var a,o;if(arguments.length<4)return 5===(o=(a=s.map(function(t){return il(e,t,n)})).join(" ")).split(a[0]).length?a[0]:o;a=(i+"").split(" "),o={}
13,s.forEach(function(e,t){return o[e]=a[t]=a[t]||a[(t-1)/2|0]}),e.init(t,o,r)}});var ik={name:"css",register:n8,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,n,i,r){var a,s,o,l,u,c,d,h,f,p,m,v,y,_,b,x,C=this._props,E=e.style,w=n.vars.startAt;for(d in nE||n8(),this.styles=this.styles||n2(e),x=this.styles.props,this.tween=n,t)if("autoRound"!==d&&(s=t[d],!(en[d]&&tZ(d,t,n,i,e,r)))){if(u=typeof s,c=ip[d],"function"===u&&(u=typeof(s=s.call(n,i,e,r))),"string"===u&&~s.indexOf("random(")&&(s=tl(s)),c)c(this,e,d,s,n)&&(b=1);else if("--"===d.substr(0,2))a=(getComputedStyle(e).getPropertyValue(d)+"").trim(),s+="",tC.lastIndex=0,tC.test(a)||(h=e0(a),f=e0(s)),f?h!==f&&(a=io(e,d,a,f)+f):h&&(s+=h),this.add(E,"setProperty",a,s,i,r,0,0,d),C.push(d),x.push(d,0,E[d]);else if("undefined"!==u){if(w&&d in w?(S(a="function"==typeof w[d]?w[d].call(n,i,e,r):w[d])&&~a.indexOf("random(")&&(a=tl(a)),e0(a+"")||"auto"===a||(a+=g.units[d]||e0(il(e,d))||""),"="===(a+"").charAt(1)&&(a=il(e,d))):a=il(e,d),l=parseFloat(a),(p="string"===u&&"="===s.charAt(1)&&s.substr(0,2))&&(s=s.substr(2)),o=parseFloat(s),d in nj&&("autoAlpha"===d&&(1===l&&"hidden"===il(e,"visibility")&&o&&(l=0),x.push("visibility",0,E.visibility),ir(this,E,"visibility",l?"inherit":"hidden",o?"inherit":"hidden",!o)),"scale"!==d&&"transform"!==d&&~(d=nj[d]).indexOf(",")&&(d=d.split(",")[0])),m=d in nA){if(this.styles.save(d),"string"===u&&"var(--"===s.substring(0,6)&&(o=parseFloat(s=n5(e,s.substring(4,s.indexOf(")"))))),v||((y=e._gsap).renderTransform&&!t.parseTransform||ix(e,t.parseTransform),_=!1!==t.smoothOrigin&&y.smooth,(v=this._pt=new ns(this._pt,E,nX,0,1,y.renderTransform,y,0,-1)).dep=1),"scale"===d)this._pt=new ns(this._pt,y,"scaleY",y.scaleY,(p?ef(y.scaleY,p+o):o)-y.scaleY||0,nU),this._pt.u=0,C.push("scaleY",d),d+="X";else if("transformOrigin"===d){x.push(nQ,0,E[nQ]),s=id(s),y.svg?ib(e,s,0,_,0,this):((f=parseFloat(s.split(" ")[2])||0)!==y.zOrigin&&ir(this,y,"zOrigin",y.zOrigin,f),ir(this,E,d,iC(a),iC(s)));continue}else if("svgOrigin"===d){ib(e,s,1,_,0,this);continue}else if(d in ig){iA(this,y,d,l,p?ef(l,p+s):s);continue}else if("smoothOrigin"===d){ir(this,y,"smooth",y.smooth,s);continue}else if("force3D"===d){y[d]=s;continue}else if("transform"===d){iR(this,s,e);continue}}else d in E||(d=n6(d)||d);if(m||(o||0===o)&&(l||0===l)&&!nO.test(s)&&d in E)h=(a+"").substr((l+"").length),o||(o=0),f=e0(s)||(d in g.units?g.units[d]:h),h!==f&&(l=io(e,d,a,f)),this._pt=new ns(this._pt,m?y:E,d,l,(p?ef(l,p+o):o)-l,m||"px"!==f&&"zIndex"!==d||!1===t.autoRound?nU:nH),this._pt.u=f||0,h!==f&&"%"!==f&&(this._pt.b=a,this._pt.r=nB);else if(d in E)iu.call(this,e,d,a,p?p+s:s);else if(d in e)this.add(e,d,a||e[d],p?p+s:s,i,r);else if("parseTransform"!==d){W(d,s);continue}m||(d in E?x.push(d,0,E[d]):"function"==typeof e[d]?x.push(d,2,e[d]()):x.push(d,1,a||e[d])),C.push(d)}}b&&na(this)},render:function(e,t){if(t.tween._time||!nL())for(var n=t._pt;n;)n.r(e,n.d),n=n._next;else t.styles.revert()},get:il,aliases:nj,getSetter:function(e,t,n){var i=nj[t];return i&&0>i.indexOf(",")&&(t=i),t in nA&&t!==nQ&&(e._gsap.x||il(e,"x"))?n&&nS===n?"scale"===t?nZ:n$:(nS=n||{},"scale"===t?nY:nK):e.style&&!M(e.style[t])?nq:~t.indexOf("-")?nW:t8(e,t)},core:{_removeProperty:ii,_getMatrix:i_}};nb.utils.checkPrefix=n6,nb.core.getStyleSaver=n2,function(e,t,n,i){var r=ec(e+","+t+","+n,function(e){nA[e]=1});ec(t,function(e){g.units[e]="deg",ig[e]=1}),nj[r[13]]=e+","+t,ec(i,function(e){var t=e.split(":");nj[t[1]]=r[t[0]]})}("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),ec("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(e){g.units[e]="px"}),nb.registerPlugin(ik);var iD=nb.registerPlugin(ik)||nb;iD.core.Tween},14058:function(e,t,n){"use strict";n.d(t,{K:function(){return r.K},z:function(){return i.z}});var i=n(77551),r=n(52217)},83525:function(e,t,n){"use strict";
13Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return i}});let i=(0,n(14001).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},76361:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return i.actionAsyncStorage}});let i=n(83525);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},14001:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return a}});let n=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class i{disable(){throw n}getStore(){}run(){throw n}exit(){throw n}enterWith(){throw n}}let r=globalThis.AsyncLocalStorage;function a(){return r?new r:new i}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8199:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return l.ReadonlyURLSearchParams},RedirectType:function(){return l.RedirectType},ServerInsertedHTMLContext:function(){return u.ServerInsertedHTMLContext},notFound:function(){return l.notFound},permanentRedirect:function(){return l.permanentRedirect},redirect:function(){return l.redirect},useParams:function(){return f},usePathname:function(){return d},useRouter:function(){return h},useSearchParams:function(){return c},useSelectedLayoutSegment:function(){return g},useSelectedLayoutSegments:function(){return m},useServerInsertedHTML:function(){return u.useServerInsertedHTML}});let i=n(67294),r=n(60257),a=n(22608),s=n(11288),o=n(66406),l=n(72717),u=n(64354);function c(){let e=(0,i.useContext)(a.SearchParamsContext);return(0,i.useMemo)(()=>e?new l.ReadonlyURLSearchParams(e):null,[e])}function d(){return(0,i.useContext)(a.PathnameContext)}function h(){let e=(0,i.useContext)(r.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function f(){return(0,i.useContext)(a.PathParamsContext)}function p(e,t,n,i){let r;if(void 0===n&&(n=!0),void 0===i&&(i=[]),n)r=e[1][t];else{var a;let t=e[1];r=null!=(a=t.children)?a:Object.values(t)[0]}if(!r)return i;let l=r[0],u=(0,s.getSegmentValue)(l);return!u||u.startsWith(o.PAGE_SEGMENT_KEY)?i:(i.push(u),p(r,t,!1,i))}function m(e){void 0===e&&(e="children");let t=(0,i.useContext)(r.LayoutRouterContext);return t?p(t.tree,e):null}function g(e){void 0===e&&(e="children");let t=m(e);if(!t||0===t.length)return null;let n="children"===e?t[0]:t[t.length-1];return n===o.DEFAULT_SEGMENT_KEY?null:n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},72717:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return s},RedirectType:function(){return i.RedirectType},notFound:function(){return r.notFound},permanentRedirect:function(){return i.permanentRedirect},redirect:function(){return i.redirect}});let i=n(7511),r=n(73394);class a extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class s extends URLSearchParams{append(){throw new a}delete(){throw new a}set(){throw new a}sort(){throw new a}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
13dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},73394:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{isNotFoundError:function(){return r},notFound:function(){return i}});let n="NEXT_NOT_FOUND";function i(){let e=Error(n);throw e.digest=n,e}function r(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},44234:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return n}}),function(e){e[e.SeeOther=303]="SeeOther",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect"}(n||(n={})),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7511:function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RedirectType:function(){return i},getRedirectError:function(){return l},getRedirectStatusCodeFromError:function(){return p},getRedirectTypeFromError:function(){return f},getURLFromRedirectError:function(){return h},isRedirectError:function(){return d},permanentRedirect:function(){return c},redirect:function(){return u}});let r=n(82595),a=n(76361),s=n(44234),o="NEXT_REDIRECT";function l(e,t,n){void 0===n&&(n=s.RedirectStatusCode.TemporaryRedirect);let i=Error(o);i.digest=o+";"+t+";"+e+";"+n+";";let a=r.requestAsyncStorage.getStore();return a&&(i.mutableCookies=a.mutableCookies),i}function u(e,t){void 0===t&&(t="replace");let n=a.actionAsyncStorage.getStore();throw l(e,t,(null==n?void 0:n.isAction)?s.RedirectStatusCode.SeeOther:s.RedirectStatusCode.TemporaryRedirect)}function c(e,t){void 0===t&&(t="replace");let n=a.actionAsyncStorage.getStore();throw l(e,t,(null==n?void 0:n.isAction)?s.RedirectStatusCode.SeeOther:s.RedirectStatusCode.PermanentRedirect)}function d(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,n,i,r]=e.digest.split(";",4),a=Number(r);return t===o&&("replace"===n||"push"===n)&&"string"==typeof i&&!isNaN(a)&&a in s.RedirectStatusCode}function h(e){return d(e)?e.digest.split(";",3)[2]:null}function f(e){if(!d(e))throw Error("Not a redirect error");return e.digest.split(";",2)[1]}function p(e){if(!d(e))throw Error("Not a redirect error");return Number(e.digest.split(";",4)[3])}!function(e){e.push="push",e.replace="replace"}(i||(i={})),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},25329:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return i}});let i=(0,n(14001).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},82595:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getExpectedRequestStore:function(){return r},requestAsyncStorage:function(){return i.requestAsyncStorage}});let i=n(25329);function r(e){let t=i.requestAsyncStorage.getStore();if(t)return t;throw Error("`"+e+"` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
13dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},11288:function(e,t){"use strict";function n(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},38199:function(e,t){"use strict";var n,i;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ACTION_FAST_REFRESH:function(){return u},ACTION_NAVIGATE:function(){return a},ACTION_PREFETCH:function(){return l},ACTION_REFRESH:function(){return r},ACTION_RESTORE:function(){return s},ACTION_SERVER_ACTION:function(){return c},ACTION_SERVER_PATCH:function(){return o},PrefetchCacheEntryStatus:function(){return i},PrefetchKind:function(){return n},isThenable:function(){return d}});let r="refresh",a="navigate",s="restore",o="server-patch",l="prefetch",u="fast-refresh",c="server-action";function d(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}!function(e){e.AUTO="auto",e.FULL="full",e.TEMPORARY="temporary"}(n||(n={})),function(e){e.fresh="fresh",e.reusable="reusable",e.expired="expired",e.stale="stale"}(i||(i={})),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},87195:function(e,t,n){"use strict";function i(e,t,n,i){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return i}}),n(98337),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},74080:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return _}});let i=n(38754),r=n(61757),a=n(85893),s=r._(n(67294)),o=i._(n(73935)),l=i._(n(23867)),u=n(35283),c=n(96594),d=n(23945);n(83179);let h=n(81928),f=i._(n(13872)),p={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function m(e,t,n,i,r,a,s){let o=null==e?void 0:e.src;e&&e["data-loaded-src"]!==o&&(e["data-loaded-src"]=o,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&r(!0),null==n?void 0:n.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let i=!1,r=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>i,isPropagationStopped:()=>r,persist:()=>{},preventDefault:()=>{i=!0,t.preventDefault()},stopPropagation:()=>{r=!0,t.stopPropagation()}})}(null==i?void 0:i.current)&&i.current(e)}}))}function g(e){return s.use?{fetchPriority:e}:{fetchpriority:e}}let v=(0,s.forwardRef)((e,t)=>{let{src:n,srcSet:i,sizes:r,height:o,width:l,decoding:u,className:c,style:d,fetchPriority:h,placeholder:f,loading:p,unoptimized:v,fill:y,onLoadRef:_,onLoadingCompleteRef:b,setBlurComplete:x,setShowAltText:C,sizesInput:E,onLoad:w,onError:T,...S}=e;return(0,a.jsx)("img",{...S,...g(h),loading:p,width:l,height:o,decoding:u,"data-nimg":y?"fill":"1",className:c,style:d,sizes:r,srcSet:i,src:n,ref:(0,s.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(T&&(e.src=e.src),e.complete&&m(e,f,_,b,x,v,E))},[n,f,_,b,x,T,v,E,t]),onLoad:e=>{m(e.currentTarget,f,_,b,x,v,E)},onError:e=>{C(!0),"empty"!==f&&x(!0),T&&T(e)}})});function y(e){let{isAppRouter:t,imgAttributes:n}=e,i={as:"image",imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:n.crossOrigin,referrerPolicy:n.referrerPolicy,...g(n.fetchPriority)};return t&&o.default.preload?(o.default.preload(n.src,i),null):(0,a.jsx)(l.default,{children:(0,a.jsx)("link",{rel:"preload",href:n.srcSet?void 0:n.src,...i},"__nimg-"+n.src+n.srcSet+n.sizes)})}let _=(0,s.forwardRef)((e,t)=>{let n=!(0,s.useContext)(h.RouterContext),i=(0,s.useContext)(d.ImageConfigContext),r=(0,s.useMemo)(()=>{var e;let t=p||i||c.imageConfigDefault,n=[...t.deviceSizes,...t.imageSizes].sort((e,t)=>
13e-t),r=t.deviceSizes.sort((e,t)=>e-t),a=null==(e=t.qualities)?void 0:e.sort((e,t)=>e-t);return{...t,allSizes:n,deviceSizes:r,qualities:a}},[i]),{onLoad:o,onLoadingComplete:l}=e,m=(0,s.useRef)(o);(0,s.useEffect)(()=>{m.current=o},[o]);let g=(0,s.useRef)(l);(0,s.useEffect)(()=>{g.current=l},[l]);let[_,b]=(0,s.useState)(!1),[x,C]=(0,s.useState)(!1),{props:E,meta:w}=(0,u.getImgProps)(e,{defaultLoader:f.default,imgConf:r,blurComplete:_,showAltText:x});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(v,{...E,unoptimized:w.unoptimized,placeholder:w.placeholder,fill:w.fill,onLoadRef:m,onLoadingCompleteRef:g,setBlurComplete:b,setShowAltText:C,sizesInput:e.sizes,ref:t}),w.priority?(0,a.jsx)(y,{isAppRouter:n,imgAttributes:E}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},98342:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return C}});let i=n(38754),r=n(85893),a=i._(n(67294)),s=n(36075),o=n(53955),l=n(48041),u=n(99903),c=n(65490),d=n(81928),h=n(60257),f=n(84229),p=n(87195),m=n(89470),g=n(38199),v=new Set;function y(e,t,n,i,r,a){if(a||(0,o.isLocalURL)(t)){if(!i.bypassPrefetchedCheck){let r=t+"%"+n+"%"+(void 0!==i.locale?i.locale:"locale"in e?e.locale:void 0);if(v.has(r))return;v.add(r)}(async()=>a?e.prefetch(t,r):e.prefetch(t,n,i))().catch(e=>{})}}function _(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}function b(e,t,n,i,r,s,l,u,c){let{nodeName:d}=e.currentTarget;if("A"===d.toUpperCase()&&(_(e)||!c&&!(0,o.isLocalURL)(n)))return;e.preventDefault();let h=()=>{let e=null==l||l;"beforePopState"in t?t[r?"replace":"push"](n,i,{shallow:s,locale:u,scroll:e}):t[r?"replace":"push"](i||n,{scroll:e})};c?a.default.startTransition(h):h()}function x(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let C=a.default.forwardRef(function(e,t){let n,i;let{href:o,as:l,children:v,prefetch:_=null,passHref:C,replace:E,shallow:w,scroll:T,locale:S,onClick:L,onMouseEnter:P,onTouchStart:M,legacyBehavior:A=!1,...I}=e;n=v,A&&("string"==typeof n||"number"==typeof n)&&(n=(0,r.jsx)("a",{children:n}));let R=a.default.useContext(d.RouterContext),k=a.default.useContext(h.AppRouterContext),D=null!=R?R:k,N=!R,F=!1!==_,O=null===_?g.PrefetchKind.AUTO:g.PrefetchKind.FULL,{href:j,as:U}=a.default.useMemo(()=>{if(!R){let e=x(o);return{href:e,as:l?x(l):e}}let[e,t]=(0,s.resolveHref)(R,o,!0);return{href:e,as:l?(0,s.resolveHref)(R,l):t||e}},[R,o,l]),V=a.default.useRef(j),B=a.default.useRef(U);A&&(i=a.default.Children.only(n));let H=A?i&&"object"==typeof i&&i.ref:t,[G,z,q]=(0,f.useIntersection)({rootMargin:"200px"}),W=a.default.useCallback(e=>{(B.current!==U||V.current!==j)&&(q(),B.current=U,V.current=j),G(e),H&&("function"==typeof H?H(e):"object"==typeof H&&(H.current=e))},[U,H,j,q,G]);a.default.useEffect(()=>{D&&z&&F&&y(D,j,U,{locale:S},{kind:O},N)},[U,j,z,S,F,null==R?void 0:R.locale,D,N,O]);let $={ref:W,onClick(e){A||"function"!=typeof L||L(e),A&&i.props&&"function"==typeof i.props.onClick&&i.props.onClick(e),D&&!e.defaultPrevented&&b(e,D,j,U,E,w,T,S,N)},onMouseEnter(e){A||"function"!=typeof P||P(e),A&&i.props&&"function"==typeof i.props.onMouseEnter&&i.props.onMouseEnter(e),D&&(F||!N)&&y(D,j,U,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:O},N)},onTouchStart:function(e){A||"function"!=typeof M||M(e),A&&i.props&&"function"==typeof i.props.onTouchStart&&i.props.onTouchStart(e),D&&(F||!N)&&y(D,j,U,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:O},N)}};if((0,u.isAbsoluteUrl)(U))$.href=U;else if(!A||C||"a"===i.type&&!("href"in i.props)){let e=void 0!==S?S:null==R?void 0:R.locale,t=(null==R?void 0:R.isLocaleDomain)&&(0,p.getDomainLocale)(U,e,null==R?void 0:R.locales,null==R?void 0:R.domainLocales);$.href=t||(0,m.addBasePath)((0,c.addLocale)(U,e,null==R?void 0:R.defaultLocale))}return A?a.default.cloneElement(i,$):(0,r.jsx)("a",{...I,...$,children:n})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
13dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},84229:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return c}});let i=n(67294),r=n(84474),a="function"==typeof IntersectionObserver,s=new Map,o=[];function l(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},i=o.find(e=>e.root===n.root&&e.margin===n.margin);if(i&&(t=s.get(i)))return t;let r=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=r.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:r},o.push(n),s.set(n,t),t}function u(e,t,n){let{id:i,observer:r,elements:a}=l(n);return a.set(e,t),r.observe(e),function(){if(a.delete(e),r.unobserve(e),0===a.size){r.disconnect(),s.delete(i);let e=o.findIndex(e=>e.root===i.root&&e.margin===i.margin);e>-1&&o.splice(e,1)}}}function c(e){let{rootRef:t,rootMargin:n,disabled:s}=e,o=s||!a,[l,c]=(0,i.useState)(!1),d=(0,i.useRef)(null),h=(0,i.useCallback)(e=>{d.current=e},[]);return(0,i.useEffect)(()=>{if(a){if(o||l)return;let e=d.current;if(e&&e.tagName)return u(e,e=>e&&c(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!l){let e=(0,r.requestIdleCallback)(()=>c(!0));return()=>(0,r.cancelIdleCallback)(e)}},[o,n,t,l,d.current]),[h,l,(0,i.useCallback)(()=>{c(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},32602:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return u},noSSR:function(){return l}});let i=n(38754),r=n(85893);n(67294);let a=i._(n(35491)),s=!1;function o(e){return{default:(null==e?void 0:e.default)||e}}function l(e,t){if(delete t.webpack,delete t.modules,!s)return e(t);let n=t.loading;return()=>(0,r.jsx)(n,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1})}function u(e,t){let n=a.default,i={loading:e=>{let{error:t,isLoading:n,pastDelay:i}=e;return null}};e instanceof Promise?i.loader=()=>e:"function"==typeof e?i.loader=e:"object"==typeof e&&(i={...i,...e});let r=(i={...i,...t}).loader,s=()=>null!=r?r().then(o):Promise.resolve(o(()=>null));return(i.loadableGenerated&&(i={...i,...i.loadableGenerated},delete i.loadableGenerated),"boolean"!=typeof i.ssr||i.ssr)?n({...i,loader:s}):(delete i.webpack,delete i.modules,l(n,i))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},35283:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return d}}),n(83179);let i=n(96630),r=n(96594);function a(e){return void 0!==e.default}function s(e){return void 0!==e.src}function o(e){return"object"==typeof e&&(a(e)||s(e))}function l(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function u(e,t,n){let{deviceSizes:i,allSizes:r}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let i;i=e.exec(n);i)t.push(parseInt(i[2]));if(t.length){let e=.01*Math.min(...t);return{widths:r.filter(t=>t>=i[0]*e),kind:"w"}}return{widths:r,kind:"w"}}return"number"!=typeof t?{widths:i,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>r.find(t=>t>=e)||r[r.length-1]))],kind:"x"}}function c(e){let{config:t,src:n,unoptimized:i,width:r,quality:a,sizes:s,loader:o}=e;if(i)return{src:n,srcSet:void 0,sizes:void 0};let{widths:l,kind:c}=u(t,r,s),d=l.length-1;return{sizes:s||"w"!==c?s:"100vw",srcSet:l.map((e,i)=>o({config:t,src:n,quality:a,width:e})+" "+("w"===c?e:i+1)+c).join(", "),src:o({config:t,src:n,quality:a,width:l[d]})}}function d(e,t){let n,s,u,{src:d,sizes:h,unoptimized:f=!1,priority:p=!1,loading:m,className:g,quality:v,width:y,height:_,fill:b=!1,style:x,overrideSrc:C,onLoad:E,onLoadingComplete:w,placeholder:T="empty",blurDataURL:S,fetchPriority:L,decoding:P="async",layout:M,objectFit:A,objectPosition:I,lazyBoundary:R,lazyRoot:k,...D}=e,{imgConf:N,showAltText:F,blurComplete:O,defaultLoader:j}=t,U=N||r.imageConfigDefault;if("allSizes"in U)n=U;else{var V;let e=[...U.deviceSizes,...U.imageSizes].sort((e,t)=>
13e-t),t=U.deviceSizes.sort((e,t)=>e-t),i=null==(V=U.qualities)?void 0:V.sort((e,t)=>e-t);n={...U,allSizes:e,deviceSizes:t,qualities:i}}if(void 0===j)throw Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config");let B=D.loader||j;delete D.loader,delete D.srcSet;let H="__next_img_default"in B;if(H){if("custom"===n.loader)throw Error('Image with src "'+d+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=B;B=t=>{let{config:n,...i}=t;return e(i)}}if(M){"fill"===M&&(b=!0);let e={responsive:"100vw",fill:"100vw"},t={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[M];t&&(x={...x,...t});let n=e[M];n&&!h&&(h=n)}let G="",z=l(y),q=l(_);if(o(d)){let e=a(d)?d.default:d;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(s=e.blurWidth,u=e.blurHeight,S=S||e.blurDataURL,G=e.src,!b){if(z||q){if(z&&!q){let t=z/e.width;q=Math.round(e.height*t)}else if(!z&&q){let t=q/e.height;z=Math.round(e.width*t)}}else z=e.width,q=e.height}}let W=!p&&("lazy"===m||void 0===m);(!(d="string"==typeof d?d:G)||d.startsWith("data:")||d.startsWith("blob:"))&&(f=!0,W=!1),n.unoptimized&&(f=!0),H&&d.endsWith(".svg")&&!n.dangerouslyAllowSVG&&(f=!0),p&&(L="high");let $=l(v),Z=Object.assign(b?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:A,objectPosition:I}:{},F?{}:{color:"transparent"},x),Y=O||"empty"===T?null:"blur"===T?'url("data:image/svg+xml;charset=utf-8,'+(0,i.getImageBlurSvg)({widthInt:z,heightInt:q,blurWidth:s,blurHeight:u,blurDataURL:S||"",objectFit:Z.objectFit})+'")':'url("'+T+'")',K=Y?{backgroundSize:Z.objectFit||"cover",backgroundPosition:Z.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:Y}:{},X=c({config:n,src:d,unoptimized:f,width:z,quality:$,sizes:h,loader:B});return{props:{...D,loading:W?"lazy":m,fetchPriority:L,width:z,height:q,decoding:P,className:g,style:{...Z,...K},sizes:X.sizes,srcSet:X.srcSet,src:C||X.src},meta:{unoptimized:f,priority:p,placeholder:T,fill:b}}}},96630:function(e,t){"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:i,blurHeight:r,blurDataURL:a,objectFit:s}=e,o=i?40*i:t,l=r?40*r:n,u=o&&l?"viewBox='0 0 "+o+" "+l+"'":"",c=u?"none":"contain"===s?"xMidYMid":"cover"===s?"xMidYMid slice":"none";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+c+"' style='filter: url(%23b);' href='"+a+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},76210:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return l},getImageProps:function(){return o}});let i=n(38754),r=n(35283),a=n(74080),s=i._(n(13872));function o(e){let{props:t}=(0,r.getImgProps)(e,{defaultLoader:s.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let l=a.Image},13872:function(e,t){"use strict";
13Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}});let n=75;function i(e){var t;let{config:i,src:r,width:a,quality:s}=e,o=s||(null==(t=i.qualities)?void 0:t.reduce((e,t)=>Math.abs(t-n)<Math.abs(e-n)?t:e))||n;return i.path+"?url="+encodeURIComponent(r)+"&w="+a+"&q="+o}i.__next_img_default=!0;let r=i},1159:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return i}});let i=n(38754)._(n(67294)).default.createContext(null)},35491:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return p}});let i=n(38754)._(n(67294)),r=n(1159);function a(e){return e&&e.default?e.default:e}let s=[],o=[],l=!1;function u(e){let t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then(e=>(n.loading=!1,n.loaded=e,e)).catch(e=>{throw n.loading=!1,n.error=e,e}),n}function c(e,t){let n=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),s=null;function u(){if(!s){let t=new d(e,n);s={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return s.promise()}if(!l){let e=n.webpack?n.webpack():n.modules;e&&o.push(t=>{for(let n of e)if(t.includes(n))return u()})}function c(){u();let e=i.default.useContext(r.LoadableContext);e&&Array.isArray(n.modules)&&n.modules.forEach(t=>{e(t)})}function h(e,t){c();let r=i.default.useSyncExternalStore(s.subscribe,s.getCurrentValue,s.getCurrentValue);return i.default.useImperativeHandle(t,()=>({retry:s.retry}),[]),i.default.useMemo(()=>r.loading||r.error?i.default.createElement(n.loading,{isLoading:r.loading,pastDelay:r.pastDelay,timedOut:r.timedOut,error:r.error,retry:s.retry}):r.loaded?i.default.createElement(a(r.loaded),e):null,[e,r])}return h.preload=()=>u(),h.displayName="LoadableComponent",i.default.forwardRef(h)}class d{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function h(e){return c(u,e)}function f(e,t){let n=[];for(;e.length;){let i=e.pop();n.push(i(t))}return Promise.all(n).then(()=>{if(e.length)return f(e,t)})}h.preloadAll=()=>new Promise((e,t)=>{f(s).then(e,t)}),h.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let n=()=>(l=!0,t());f(o,e).then(n,n)})),window.__NEXT_PRELOADREADY=h.preloadReady;let p=h},64354:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ServerInsertedHTMLContext:function(){return r},useServerInsertedHTML:function(){return a}});let i=n(61757)._(n(67294)),r=i.default.createContext(null);function a(e){let t=(0,i.useContext)(r);t&&t(e)}},16710:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return C}});var i=n(82729),r=n(85893),a=n(68806),s=n(67294),o=n(19845),l=n.n(o),u=n(76606),c=n(15799),d=n(78706),h=n(22141),f=n.n(h),p=n(83177);let m=l().bind(f());var g=e=>{let{content:t,isOpen:n=!1,index:i,onToggle:a}=e,[o,l]=(0,s.useState)(n),h=(0,s.useRef)(null),f=(0,s.useRef)(o),[g,v]=(0,s.use
13State)(0),{headline:y,subhead:_,body:b,cta:x,image:C}=t,{labels:{ariaLabels:E}}=(0,p.i)(),w=void 0!==a,T="accordion-item-".concat(i),S=(0,c.Cr)(x),L=(0,s.useMemo)(()=>(0,c.$e)(null==E?void 0:E.accordionButton,{headline:y}),[null==E?void 0:E.accordionButton,y]),P=()=>{w?null==a||a(T):l(!o)},M=()=>{h.current&&v(f.current?"calc(".concat(h.current.scrollHeight,"px + 3rem)"):0)};return(0,s.useEffect)(()=>{h.current&&(f.current=o,v(f.current?"calc(".concat(h.current.scrollHeight,"px + 3rem)"):0))},[o]),(0,s.useEffect)(()=>{w&&l(n)},[n]),(0,s.useEffect)(()=>(window.addEventListener("resize",M),()=>{window.removeEventListener("resize",M)}),[]),(0,r.jsxs)("div",{className:m("accordion-item"),children:[(0,r.jsx)("h3",{children:(0,r.jsxs)("button",{className:m("accordion-button"),"aria-expanded":o,"aria-controls":"".concat(T,"-content"),onClick:P,type:"button",children:[(0,r.jsxs)("div",{className:m("text"),children:[(0,r.jsx)("span",{className:m("title","title-lc-s"),children:y}),_&&(0,r.jsx)("span",{className:m("subhead","title-lc-xs"),children:_})]}),(0,r.jsxs)("div",{className:m("icon-container",{open:o}),children:[(0,r.jsx)(d.Z,{className:m("icon","horizontal")}),(0,r.jsx)(d.Z,{className:m("icon","vertical")})]})]})}),(0,r.jsx)("div",{id:"".concat(T,"-content"),className:m("content"),style:{height:g},"aria-hidden":!f.current,children:(0,r.jsxs)("div",{ref:h,className:m("content-inner"),children:[C&&(0,r.jsx)(u.Ee,{image:C,className:m("image")}),b&&!C&&(0,r.jsx)("div",{className:m("body","rich-text"),dangerouslySetInnerHTML:{__html:b}}),S&&(0,r.jsx)(u.zx,{ariaLabel:L,...S})]})})]})},v=n(39583),y=n(79867),_=n(29366);function b(){let e=(0,i._)(["\n fragment Accordion on FlexiblePageContentContentAccordionLayout {\n headline\n subhead\n accordions {\n headline\n subhead\n body\n image {\n ...ACFMedia\n }\n cta {\n linkType\n label\n externalLink\n page {\n node {\n uri\n }\n }\n }\n }\n includeFooter\n footer {\n text\n ctas {\n linkType\n label\n externalLink\n page {\n node {\n uri\n }\n }\n }\n }\n }\n "]);return b=function(){return e},e}let x=l().bind(f());function C(e){let{headline:t,subhead:n,accordions:i,includeFooter:a,footer:o}=e,[l,c]=(0,s.useState)(null),d=!!(t||n),h=e=>{c(l===e?null:e)},f=(0,s.useRef)(null),{isDesktop:p}=(0,v.dg)(),m=_.LL,b=p?m.lg.triggerPercent:m.sm.triggerPercent,C=(0,y.Y)(f,{amount:b,once:m.once}),E=!0;return(0,r.jsx)("section",{className:x(["accordion"]),ref:f,children:(0,r.jsx)(u.Lz,{isInView:C,children:(0,r.jsxs)(u.W2,{children:[d&&(0,r.jsx)(u._q,{headline:t,subhead:n,isRevealEnabled:E,isInView:C}),(0,r.jsx)("div",{className:x("accordion-list"),children:i.map((e,t)=>(0,r.jsx)(g,{isOpen:l==="accordion-item-".concat(t),index:t,onToggle:h,content:e},t))}),a&&o&&(0,r.jsx)(u.qP,{text:o.text,ctas:o.ctas})]})})})}C.fragments={entry:(0,a.ZP)(b())}},36403:function(e,t,n){"use strict";n.d(t,{U:function(){return i.default}});var i=n(16710)},53752:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return T}});var i=n(82729),r=n(85893),a=n(68806),s=n(44819),o=n(76606),l=n(15799),u=n(67294),c=n(39583),d=n(87048),h=n(79867),f=n(29366),p=n(63556),m=n.n(p),g=n(19845),v=n.n(g);let y=v().bind(m()),_=e=>{let{eyebrow:t,artifactSingularHeadline:n,artifactSingularBody:i,image:a,videoEmbed:s,cta:u}=e,c=(0,l.Cr)(u),d=null!==(0,l.tj)(s);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:y("title"),children:[t&&(0,r.jsx)("p",{className:y(["eyebrow-l","eyebrow"]),children:t}),(0,r.jsx)("h2",{className:y("title-uc-l","title__lines"),children:n.map((e,t)=>(0,r.jsx)("span",{className:y(["line","title__lines__line-".concat(t)]),dangerouslySetInnerHTML:{__html:e.line}},t))})]}),(0,r.jsxs)("div",{className:y("artifact__imagery"),children:[(0,r.jsx)("div",{className:y("artifact__artifact"),children:(0,r.jsx)(o.Ee,{className:y("image"),image:a})}),d&&(0,r.jsx)("div",{className:y("video"),children:(0,r.jsx)(o.vj,{...s,consentSmall:!0})})]}),(0,r.jsx)("div",{className:y("body"),children:i.map((e,t)=>(0,r.jsxs)("div",{className:y("body__p-container"),children:[(0,r.jsx)("p",{className:"text-m",dangerouslySetInnerHTML:{__html:e.text}}
13),t===i.length-1&&c&&(0,r.jsx)(o.zx,{...c})]},t))})]})},b=e=>{let{eyebrow:t,artifactSingularHeadline:n,artifactSingularBody:i,image:a,videoEmbed:s,cta:u}=e,c=(0,l.Cr)(u),d=null!==(0,l.tj)(s);return(0,r.jsxs)("div",{className:y("artifact-singular-image-right__desktop"),children:[(0,r.jsxs)("div",{className:y(["col-12","col-lg-6","copy-col"]),children:[(0,r.jsxs)("div",{className:y("copy"),children:[(0,r.jsxs)("div",{className:y("title"),children:[t&&(0,r.jsx)("p",{className:y(["eyebrow-l","eyebrow"]),children:t}),(0,r.jsx)("h2",{className:y("title-uc-l","title__lines"),children:n.map((e,t)=>(0,r.jsx)("span",{className:y(["line","title__lines__line-".concat(t)]),dangerouslySetInnerHTML:{__html:e.line}},t))})]}),(0,r.jsx)("div",{className:y("body"),children:i.map((e,t)=>(0,r.jsxs)("div",{className:y("body__p-container"),children:[(0,r.jsx)("p",{className:"text-m",dangerouslySetInnerHTML:{__html:e.text}}),t===i.length-1&&c&&(0,r.jsx)(o.zx,{...c})]},t))})]}),d&&(0,r.jsx)("div",{className:y("video"),children:(0,r.jsx)(o.vj,{...s,consentSmall:!0})})]}),(0,r.jsx)("div",{className:y(["col-12","col-lg-6","artifact-col"]),children:(0,r.jsx)("div",{className:y("artifact__artifact"),children:(0,r.jsx)(o.Ee,{className:y("image"),image:a})})})]})};function x(e){let{isTablet:t,isDesktop:n}=(0,c.dg)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(b,{...e}),(0,r.jsx)(_,{...e})]})}function C(){let e=(0,i._)(["\n fragment ArtifactSingular on FlexiblePageContentContentArtifactSingularLayout {\n layout\n eyebrow\n artifactSingularHeadline: headlineLines {\n line\n }\n artifactSingularBody: body {\n text\n }\n image {\n ...ACFMedia\n }\n cta {\n linkType\n label\n sectionId\n externalLink\n page {\n node {\n uri\n }\n }\n }\n videoEmbed {\n videoType\n youtubeVideoId\n videoUrl\n videoThumbnail {\n ...ACFMedia\n }\n youtubeThumbnail {\n ...ACFMedia\n }\n }\n }\n "]);return C=function(){return e},e}function E(){let e=(0,i._)(["\n ","\n fragment InducteeArtifactSingular on InducteeDataImpactFlexibleContentArtifactSingularLayout {\n layout\n eyebrow\n artifactSingularHeadline: headlineLines {\n line\n }\n artifactSingularBody: body {\n text\n }\n image {\n ...ACFMedia\n }\n cta {\n linkType\n label\n sectionId\n externalLink\n page {\n node {\n uri\n }\n }\n }\n videoEmbed {\n videoType\n youtubeVideoId\n videoUrl\n videoThumbnail {\n ...ACFMedia\n }\n youtubeThumbnail {\n ...ACFMedia\n }\n }\n }\n "]);return E=function(){return e},e}let w=v().bind(m());function T(e){let{layout:t,eyebrow:n,artifactSingularHeadline:i,artifactSingularBody:a,image:s,videoEmbed:p,cta:m,className:g}=e,[v]=t,y=(0,l.Cr)(m),_=null!==(0,l.tj)(p);function b(){switch(v){case"image-diagonal":default:return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:w("title"),children:[n&&(0,r.jsx)("p",{className:w(["eyebrow-l","eyebrow"]),children:n}),(0,r.jsx)("h2",{className:w("title-uc-l","title__lines"),children:i.map((e,t)=>(0,r.jsx)("span",{className:w(["line","title__lines__line-".concat(t)]),dangerouslySetInnerHTML:{__html:e.line}},t))})]}),(0,r.jsx)("div",{className:w("artifact__artifact"),children:(0,r.jsx)(o.Ee,{className:w("image"),image:s})}),_&&(0,r.jsx)("div",{className:w("video"),children:(0,r.jsx)(o.vj,{...p,consentSmall:!0})}),(0,r.jsx)("div",{className:w("body"),children:a.map((e,t)=>t===a.length-1?(0,r.jsxs)("div",{className:w("body__p-container"),children:[(0,r.jsx)("p",{className:"text-m",dangerouslySetInnerHTML:{__html:e.text}}),y&&(0,r.jsx)(o.zx,{...y})]},t):(0,r.jsx)("div",{className:w("body__p-container"),children:(0,r.jsx)("p",{className:"text-m",dangerouslySetInnerHTML:{__html:e.text}})},t))})]});case"image-right":case"image-left":return(0,r.jsx)(x,{...e});case"image-bottom":return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:w("title"),children:[n&&(0,r.jsx)("p",{className:w(["eyebrow-l","eyebrow"]),children:n}),(0,r.jsx)("h2",{className:w("title-uc-l","title__lines"),children:i.map((e,t)=>(0,r.jsx)("span",{className:w(["line","title__lines__line-".concat(t)]),dangerouslySetInnerHTML:{__html:e.line}},t))})]}),(0,r.jsxs)("div",{className:w("artifact__imagery"),children:[(0,r.jsx)("div",{className:w("artifact__artifact"),children:(0,r.jsx)(o.Ee,{className:w("image"),image:s})}),_&&(0,r.jsx)("div",{className:w("video"),children:(0,r.jsx)(o.vj,{...p,consentSmall:!0})})]}),(0,r.jsx)("div",{className:w("body"),children:a.map((e,t)=>(0,r.jsx)("p",{className:"text-m",dangerouslySetInnerHTML:{__html:e.text}},t))})]})}}let C=(0,u.useRef)(null),{isDesktop:E,isReady:T}=(0,c.dg)(),{mounted:S}=(0,d.F)(),L=f.LL,P=S&&T&&E?L.lg.triggerPercent:L.sm.triggerPercent,M=(0,h.Y)(C,{amount:P,once:L.once});return(0,r.jsx)("section",{className:w(["artifact-singular","variant-".concat(t),g]),ref:C,children:(0,r.jsx)(o.Lz,{isInView:M,children:(0,r.jsx)(o.W2,{className:w("content"),children:b()})})})}T.fragments={entry:(0,a.Ps)(C()),inducteeEntry:(0,a.Ps)(E(),s.ab)}},938:function(e,t,n){"use strict";n.d(t,{M:function(){return i.default}});var i=n(53752)},4612:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return T}});var i,r=n(82729),a=n(85893),s=n(68806),o=n(30120),l=n(67294),u=n(76606),c=n(39583),d=n(87048),h=n(15799),f=n(83177);function p(){return(p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var m=function(e){return l.createElement("svg",p({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),i||(i=l.createElement("path",{d:"M2.84,7h5.31s0-4,0-4l5,5-5,5v-4H2.84v-2Z",fill:"currentColor"})))},g=n(79867),v=n(4801),y=n(29366),_=n(19845),b=n.n(_),x=n(19690),C=n.n(x);function E(){let e=(0,r._)(["\n fragment Banner on FlexiblePageContentContentBannerLayout {\n type\n largeBorder\n eyebrow\n headline\n subhead\n link {\n linkType\n externalLink\n sectionId\n page {\n node {\n uri\n }\n }\n }\n }\n "]);return E=function(){return e},e}
13let w=b().bind(C());function T(e){var t;let{type:n,largeBorder:i,eyebrow:r,headline:s,subhead:p,link:_}=e,{labels:b,todaysEvents:x}=(0,f.i)(),[C]=n,E="event"===C,[T]=x,S=(0,l.useMemo)(()=>{var e;if(!(null==T?void 0:null===(e=T.eventData)||void 0===e?void 0:e.startDate))return!1;let t=o.ou.now().setZone("America/New_York"),n=o.ou.fromISO(T.eventData.startDate,{zone:"America/New_York"}),i=T.eventData.endDate?o.ou.fromISO(T.eventData.endDate,{zone:"America/New_York"}):n,r=t.startOf("day");return n<=t.endOf("day")&&i>=r},[T]),L=E?null==b?void 0:b.eventTodayLabel:r,P=E?null==T?void 0:T.title:s,M=E?null==T?void 0:null===(t=T.eventData)||void 0===t?void 0:t.eventDescription:p,A=(0,h.Cr)(_,!0),I=E?null==T?void 0:T.uri:null==A?void 0:A.url,R=E?"_self":null==A?void 0:A.target,{isDesktop:k,isReady:D}=(0,c.dg)(),{mounted:N}=(0,d.F)(),F=(0,l.useMemo)(()=>E&&T&&S&&N,[N]),O=(0,l.useRef)(null),j=y.LL,U=N&&D&&k?j.lg.triggerPercent:j.sm.triggerPercent,V=(0,g.Y)(O,{amount:U,once:j.once}),B=!1,H=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return{initial:B?{opacity:j.opacity,y:j.sm.distance}:{},animate:B&&V?{opacity:1,y:0}:{},transition:{duration:j.sm.duration,ease:j.ease,delay:e}}},G=j.lg.delay,z=G+j.sm.delay,q=z+j.sm.delay;return!F&&E?null:(0,a.jsx)("section",{className:w("banner-wrapper"),ref:O,children:(0,a.jsx)(u.Lz,{isInView:V,children:(0,a.jsx)(u.W2,{className:w("banner"),children:(0,a.jsxs)(u.Kl,{href:I||"",target:R,"data-gtm-section":"banner",className:w("link",{"large-border":i}),children:[i&&(0,a.jsx)(u.UJ,{small:!0,className:w("border")}),(0,a.jsxs)("div",{className:w("content"),children:[L&&(0,a.jsx)(v.E.p,{className:w("eyebrow-l","eyebrow"),...H(G),children:L}),(0,a.jsx)(v.E.p,{className:w("title-lc-s","title"),...H(z),children:P}),M&&(0,a.jsx)(v.E.p,{className:w("text-m","body"),...H(q),children:M})]}),(0,a.jsx)(m,{className:w("arrow")})]})})})})}T.fragments={entry:(0,s.ZP)(E())}},74075:function(e,t,n){"use strict";n.d(t,{j:function(){return i.default}});var i=n(4612)},77551:function(e,t,n){"use strict";n.d(t,{z:function(){return h}});var i=n(85893),r=n(19845),a=n.n(r),s=n(76606),o=n(31605),l=n(67294),u=n(61666),c=n.n(u);let d=a().bind(c());function h(e){let{url:t,target:n,type:r,className:a,onClick:u,onMouseEnter:c,onMouseLeave:h,size:f="default",onFocus:p,onBlur:m,label:g,ariaLabel:v,disabled:y=!1,icon:_=o.Z,noIcon:b=!1,collapseOnMobile:x=!1,asDiv:C=!1,dataGtmSection:E}=e,w=t?s.Kl:"button",T=_,S=(0,l.useMemo)(()=>"default"===f?"cta":"text-s",[f]),L=v||("string"==typeof g?g:void 0);return C?(0,i.jsxs)("div",{className:"button ".concat(d(["button",a,f,{"mobile-collapse":x}])),role:"button",tabIndex:y?-1:0,onMouseEnter:c,onMouseLeave:h,onFocus:p,onBlur:m,"aria-label":L,children:[(0,i.jsx)("span",{className:d([S,"label"]),children:g}),!b&&(0,i.jsx)(T,{className:d("icon")})]}):(0,i.jsxs)(w,{className:"button ".concat(d(["button",a,f,{"mobile-collapse":x}])),onClick:u,onMouseEnter:c,onMouseLeave:h,onFocus:p,onBlur:m,"aria-label":L,disabled:y,tabIndex:y?-1:0,type:r,target:n||void 0,href:t||void 0,"data-gtm-section":E,children:[(0,i.jsx)("span",{className:d([S,"label"]),children:g}),!b&&(0,i.jsx)(T,{className:d("icon")})]})}},34068:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return _}});var i=n(82729),r=n(85893),a=n(68806),s=n(67294),o=n(76606),l=n(32285),u=n(47279),c=n(15799),d=n(39583),h=n(79867),f=n(29366),p=n(88191),m=n.n(p),g=n(19845);function v(){let e=(0,i._)(["\n ","\n fragment CarouselInductees on FlexiblePageContentContentCarouselInducteesLayout {\n headline\n subhead\n cta {\n linkType\n label\n externalLink\n page {\n node {\n uri\n }\n }\n }\n inductees {\n ...FeaturedInductees\n }\n }\n "]);return v=function(){return e},e}let y=n.n(g)().bind(m());function _(e){let{headline:t,subhead:n,inductees:i,cta:a}=e,l=!!(t||n),p=(0,c.b6)(i),m={type:"slide",arrows:!0,pagination:!0,speed:500,flickMaxPages:1,flickPower:250,updateOnMove:!0,perPage:6,perMove:6,gap:"3rem",padding:{left:"5rem",right:"5rem"},breakpoints:{1025:{perPage:4,perMove:4,gap:"3rem",padding:{left:"4rem",right:"4rem"},arrows:!1}
13,769:{perPage:2,perMove:2,gap:"2rem",padding:{left:"2rem",right:"2rem"}}}};(0,s.useEffect)(()=>{g.current&&(g.current.querySelectorAll(".splide__list").forEach(e=>{e.setAttribute("role","list")}),g.current.querySelectorAll(".splide__slide").forEach(e=>{e.setAttribute("role","listitem")}))},[]);let g=(0,s.useRef)(null),{isDesktop:v}=(0,d.dg)(),_=f.LL,b=v?_.lg.triggerPercent:_.sm.triggerPercent,x=(0,h.Y)(g,{amount:b,once:_.once}),C=!0;return(0,r.jsx)("section",{className:y(["carousel-inductees"]),ref:g,children:(0,r.jsxs)(o.Lz,{isInView:x,children:[l&&(0,r.jsx)(o.W2,{children:(0,r.jsx)(o._q,{headline:t,subhead:n,isRevealEnabled:C,isInView:x})}),(0,r.jsxs)(u.tv,{hasTrack:!1,options:m,children:[(0,r.jsx)(u.Gj,{className:y("carousel-inductees__track"),children:p.map(e=>(0,r.jsx)(u.jw,{"aria-label":e.title,children:(0,r.jsx)(o.i3,{className:y(["splide__slide","carousel-inductees__inductee"]),inductee:e,showCategory:!0})},e.title))}),(0,r.jsx)(o.W2,{children:(0,r.jsx)(o.Jj,{cta:a,className:y("carousel-inductees__pagination")})})]})]})})}_.fragments={entry:(0,a.ZP)(v(),l.A)}},10756:function(e,t,n){"use strict";n.d(t,{v:function(){return i.default}});var i=n(34068)},43028:function(e,t,n){"use strict";n.d(t,{J:function(){return p}});var i=n(85893),r=n(19845),a=n.n(r),s=n(76606),o=n(16379),l=n.n(o),u=n(67294),c=n(15414),d=n(15799),h=n(83177);let f=a().bind(l());var p=(0,u.forwardRef)((e,t)=>{var n,r;let{className:a,cta:o,ctaIcon:l}=e,{updateContainerEl:p}=(0,c.a)(),{labels:m}=(0,h.i)();(0,u.useEffect)(p,[]);let g=o&&(0,d.Cr)(o),v=!g;return(0,i.jsxs)("div",{className:f(["carousel-pagination",a,"carousel-paging",{"center-mobile":v}]),ref:t,children:[(0,i.jsx)("div",{className:f("splide__pagination","carousel-pagination__pagination")}),(0,i.jsxs)("div",{className:f("splide__arrows","carousel-pagination__arrows"),children:[(0,i.jsx)("button",{className:"splide__arrow splide__arrow--prev","aria-label":null==m?void 0:null===(n=m.ariaLabels)||void 0===n?void 0:n.prevButton,children:(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 40",children:[(0,i.jsx)("path",{className:"circle",d:"M20,.75h0c10.63,0,19.25,8.62,19.25,19.25h0c0,10.63-8.62,19.25-19.25,19.25h0C9.37,39.25.75,30.63.75,20h0C.75,9.37,9.37.75,20,.75Z",fill:"transparent",stroke:"currentColor",strokeWidth:"1.5"}),(0,i.jsx)("path",{className:"arrow",d:"M18,25v-10l5,5-5,5Z",fill:"currentColor"})]})}),(0,i.jsx)("button",{className:f("splide__arrow","splide__arrow--next","next-arrow"),"aria-label":null==m?void 0:null===(r=m.ariaLabels)||void 0===r?void 0:r.nextButton,children:(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 40",children:[(0,i.jsx)("path",{className:"circle",d:"M20,.75h0c10.63,0,19.25,8.62,19.25,19.25h0c0,10.63-8.62,19.25-19.25,19.25h0C9.37,39.25.75,30.63.75,20h0C.75,9.37,9.37.75,20,.75Z",fill:"transparent",stroke:"currentColor",strokeWidth:"1.5"}),(0,i.jsx)("path",{className:"arrow",d:"M18,25v-10l5,5-5,5Z",fill:"currentColor"})]})})]}),g&&(0,i.jsx)(s.zx,{className:f("cta"),...g,icon:l})]})})},82404:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return M}});var i=n(82729),r=n(85893),a=n(68806),s=n(19845),o=n.n(s),l=n(79867),u=n(29366),c=n(31853),d=n(67294),h=n(47279),f=n(76606),p=n(44819),m=n(39583),g=n(4801),v=n(66432),y=n(69065),_=n(15799),b=n(87048),x=n(47289),C=n.n(x),E=n(83177);let w=o().bind(C());function T(e){let{canPlay:t,active:n,index:i,channel:a,isRevealEnabled:s,isInView:o,noBorder:c}=e,{title:p,excerpt:x,thumbnail:C,previewVideo:T,uri:S,linkTarget:L,labelOverride:P,pillLabel:M}=a,A=(0,d.useRef)(null),I=(0,d.useRef)(null),R=(0,d.useRef)(null),k=(0,l.Y)(I,{once:u.LL.once,amount:.1}),D=(0,l.Y)(R,{once:u.LL.once,amount:.1}),N=!!T,F=(0,y.k)({node:{__typename:"RhtvChannel"}}),O=(0,_.xd)(p),{labels:j}=(0,E.i)(),U=P||(null==j?void 0:j.rhtvCarouselCta),{isDesktop:V,isReady:B}=(0,m.dg)(),{mounted:H}=(0,b.F)(),[G,z]=(0,d.useState)(!1),q=(0,d.useRef)(!1),W=(0,d.useMemo)(()=>o&&n,[o,n]);(0,d.useEffect)(()=>{W&&!q.current&&(q.current=!0)},[W]),(0,d.useEffect)(()=>{H&&B&&V&&n&&D&&S?z(!0):z(!1)},[H,B,V,n,D,S]);let $=u.LL.sm.distance,Z=u.LL.opacity,Y=u.LL.ease,K=u.LL.sm.duration,
13X=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return{initial:s?{opacity:Z,y:$}:{},animate:W||q.current?{opacity:1,y:0}:{},transition:{duration:K,ease:Y,delay:e}}};return(0,d.useEffect)(()=>{k&&N&&I.current&&(I.current.src=T||"")},[k,I]),(0,d.useEffect)(()=>{var e,i;n&&t?null===(e=I.current)||void 0===e||e.play():null===(i=I.current)||void 0===i||i.pause()},[t,n]),(0,r.jsx)(h.jw,{className:w(["slide",{"no-border":c}]),"aria-label":O,children:(0,r.jsxs)(f.Kl,{className:w("container"),href:S||void 0,target:L||void 0,ref:A,children:[(0,r.jsxs)("div",{className:w("container-top"),ref:R,children:[N?(0,r.jsx)("video",{className:w("video"),loop:!0,muted:!0,playsInline:!0,poster:(0,v.r5)(null==C?void 0:C.node.mediaItemUrl),ref:I}):(0,r.jsx)(f.Ee,{className:w("image"),image:C}),(0,r.jsxs)("div",{className:w("container-top-content"),children:[F&&(0,d.createElement)(g.E.div,{...X(0),key:"pill"},(0,r.jsx)(f.eo,{className:w("pill"),type:F.key,copy:M||F.label})),(0,r.jsx)("div",{className:w("headline-wrapper"),children:(0,r.jsx)(f.ZF,{tag:"h3",text:O,className:w(["display-xl","slide-headline"]),isRevealEnabled:s,isInView:W||q.current,animInDelay:.1,isCenterAlign:!0,maxCharsPerWord:12})})]}),(0,r.jsx)(g.E.div,{className:w("learn-more"),...X(.3),children:(0,r.jsx)(f.zx,{label:U,collapseOnMobile:!0,asDiv:!0})})]}),x&&(0,r.jsx)(g.E.div,{className:w("container-bottom"),...X(.2),children:(0,r.jsx)("p",{className:w("text-m","copy"),dangerouslySetInnerHTML:{__html:x}})}),H&&B&&V&&(0,r.jsx)(f.PZ,{container:A,circleText:U,isVisible:G,mouseActive:G})]})})}let S=e=>{switch(e.type[0]){case"channel":{if(!(null==e?void 0:e.channel))return;let{channel:{nodes:t},labelOverride:n,pillLabel:i}=e;if(!t||0===t.length||"RhtvChannel"!==t[0].__typename)return;let{rhtvChannelContent:{previewVideo:r,thumbnail:a,excerpt:s},title:o,uri:l}=t[0];return{title:o||"",excerpt:s,previewVideo:r,pillLabel:i,thumbnail:a,uri:l,labelOverride:n}}case"manual":{let{manualSlide:t,labelOverride:n,pillLabel:i}=e,{headline:r,link:a,excerpt:s,videoUrl:o,image:l,videoThumbnail:u}=t,c=(0,_.Cr)(a,!0);return{title:r||"",excerpt:s,previewVideo:o,pillLabel:i,labelOverride:n,thumbnail:u||l,linkTarget:c.target,uri:c.url}}default:return}};function L(){let e=(0,i._)(["\n ","\n fragment CarouselRHTV on FlexiblePageContentContentCarouselRhtvLayout {\n headline\n subhead\n cta {\n label\n linkType\n externalLink\n page {\n node {\n uri\n }\n }\n }\n channels {\n type\n labelOverride\n pillLabel\n channel {\n nodes {\n ... on RhtvChannel {\n title\n uri\n rhtvChannelContent {\n excerpt\n previewVideo\n thumbnail {\n ...ACFMedia\n }\n }\n }\n }\n }\n manualSlide {\n headline\n excerpt\n mediaType\n videoUrl\n link {\n linkType\n externalLink\n sectionId\n page {\n node {\n uri\n }\n }\n }\n image {\n ...ACFMedia\n }\n videoThumbnail {\n ...ACFMedia\n }\n }\n }\n }\n "]);return L=function(){return e},e}let P=o().bind(C());function M(e){let{channels:t,headline:n,subhead:i,cta:a}=e,s=(0,d.useRef)(null),o=(0,d.useRef)(null),p=(0,d.useRef)(null),[g,v]=(0,d.useState)(0),[y,_]=(0,d.useState)(!1),b=!!(n||i),x=(0,d.useMemo)(()=>t.map(e=>S(e)).filter(Boolean),[t]),C=(0,d.useMemo)(()=>x.length<=1,[x]),{isDesktop:E}=(0,m.dg)(),w=u.LL,L=E?w.lg.triggerPercent:w.sm.triggerPercent,M=(0,l.Y)(o,{amount:L,once:w.once}),A=!0,I=()=>{if(p.current){let{index:e}=p.current.splide;v(e)}};(0,d.useEffect)(()=>{(0,c.xF)()||_(M)},[M]);let R={type:"slide",arrows:!0,pagination:!0,perPage:1,perMove:1,speed:500,updateOnMove:!0,fixedWidth:"100%",gap:"3rem",padding:{left:"5rem",right:"5rem"},breakpoints:{1921:{fixedWidth:C?"100%":"91.5%",gap:"3rem",padding:{left:"5rem",right:"5rem"}},1025:{padding:{left:"4rem",right:"4rem"},arrows:!1}
13,769:{fixedWidth:"100%",gap:"2rem",padding:{left:"2rem",right:"2rem"}}}};return(0,d.useEffect)(()=>{o.current&&(o.current.querySelectorAll(".splide__list").forEach(e=>{e.setAttribute("role","list")}),o.current.querySelectorAll(".splide__slide").forEach(e=>{e.setAttribute("role","listitem")}))},[]),(0,r.jsx)("section",{className:P(["carousel-rock-hall-tv"]),ref:o,children:(0,r.jsxs)(f.Lz,{isInView:M,children:[b&&(0,r.jsx)(f.W2,{children:(0,r.jsx)(f._q,{headline:n,subhead:i,isInView:M})}),(0,r.jsx)("div",{children:(0,r.jsxs)(h.tv,{className:P("splide"),ref:p,options:R,onMoved:I,hasTrack:!1,children:[(0,r.jsx)(h.Gj,{children:x.map((e,t)=>(0,r.jsx)(T,{canPlay:y,active:t===g,noBorder:x.every(e=>!e.excerpt),channel:e,index:t,isRevealEnabled:A,isInView:M,...e},t))}),(0,r.jsx)(f.W2,{className:P("bottom"),children:(0,r.jsx)(f.Jj,{ref:s,cta:a})})]})})]})})}M.fragments={entry:(0,a.ZP)(L(),p.ab)}},1641:function(e,t,n){"use strict";n.d(t,{R:function(){return i.default}});var i=n(82404)},99978:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return C}});var i=n(82729),r=n(85893),a=n(67294),s=n(68806),o=n(76606),l=n(47279),u=n(15799),c=n(79867),d=n(39583),h=n(29366),f=n(22372),p=n(19845),m=n.n(p),g=n(14669),v=n.n(g);let y=m().bind(v());function _(e){let{title:t,featuredImage:n,priceRange:{minVariantPrice:{amount:i,currencyCode:a}},onlineStoreUrl:s}=e,o=parseFloat(i).toFixed(2);return(0,r.jsx)(l.jw,{className:y("carousel-shop-item"),"aria-label":t,children:(0,r.jsxs)("a",{className:y("carousel-shop-item__link"),href:s,target:"_blank",children:[(0,r.jsx)("div",{className:y("carousel-shop-item__image"),children:(0,r.jsx)("img",{src:n.url,alt:t})}),(0,r.jsxs)("div",{className:y("carousel-shop-item__info"),children:[(0,r.jsx)("p",{className:y("title-lc-xs"),children:t}),(0,r.jsxs)("p",{className:y("text-m","carousel-shop-item__price"),children:["$","".concat(o," ").concat(a)]})]})]})})}function b(){let e=(0,i._)(["\n fragment CarouselShop on FlexiblePageContentContentCarouselShopLayout {\n headline\n type\n colorOverride\n shopifyCollection\n shopifyTag\n searchValue\n cta {\n linkType\n label\n externalLink\n page {\n node {\n uri\n }\n }\n }\n }\n "]);return b=function(){return e},e}let x=m().bind(v());function C(e){let{type:t,shopifyCollection:n,externalProducts:i,searchValue:s,shopifyTag:p,headline:m,cta:g,noSearch:v,carouselCtaIcon:y,colorOverride:b}=e,C=t?t[0]:void 0,E=n?n[0]:"",w=p?p[0]:"",T={...g,target:"_blank"},S=(0,u.Ay)(m),L=(null==b?void 0:b[0])||"",[P,M]=(0,a.useState)({}),A=(0,a.useRef)(null),{log:I}=(0,f.q)({name:"CarouselShop",bgColor:"blue",textColor:"white",enabled:!1}),[R,k]=(0,a.useState)(i||[]),D=0===R.length,N=async()=>{let e=E;"tag"===C&&(e=w),"search"===C&&(e=encodeURIComponent(s));let t=await fetch("/api/products/".concat(C,"/").concat(e,"/"));t.ok&&k((await t.json()).slice(0,10))};(0,a.useEffect)(()=>{v||N()},[C,E]),(0,a.useEffect)(()=>{L&&M({"--highlight-color":L})},[L]);let F={type:"slide",arrows:!0,pagination:!0,speed:500,flickMaxPages:1,flickPower:250,updateOnMove:!0,perPage:4,perMove:4,gap:"3rem",padding:{left:"5rem",right:"5rem"},breakpoints:{1025:{perPage:2,perMove:2,fixedWidth:"36%",gap:"3rem",padding:{left:"4rem",right:"4rem"},arrows:!1},769:{perPage:1,perMove:1,fixedWidth:"76%",gap:"2rem",padding:{left:"2rem",right:"2rem"}}}},O=()=>{A.current&&(A.current.querySelectorAll(".splide__list").forEach(e=>e.setAttribute("role","list")),A.current.querySelectorAll(".splide__slide").forEach(e=>e.setAttribute("role","listitem")))},{isDesktop:j,isMobile:U}=(0,d.dg)(),V=h.LL,B=j?V.lg.triggerPercent:V.sm.triggerPercent,H=(0,c.Y)(A,{amount:B,once:V.once}),G=!0,z=U?R.slice(0,5):R;return(0,r.jsx)("section",{className:x(["carousel-shop"]),ref:A,style:P,children:(0,r.jsxs)(o.Lz,{isInView:H,children:[S&&(0,r.jsx)(o.W2,{children:(0,r.jsx)(o.ZF,{tag:"h2",text:S,className:x(["title-uc-l","carousel-shop__headline"]),isRevealEnabled:G,isInView:H})}),(0,r.jsx)("div",{className:x("splide-container"),children:D?(I("Products loading"),(0,r.jsx)(o.W2,{children:(0,r.jsx)("span",{className:"eyebrow-l",children:"Products loading"})}
13)):0===R.length?(I("Products done loading, No products found"),(0,r.jsx)(o.W2,{children:(0,r.jsx)("span",{className:"eyebrow-l",children:"No products found"})})):(I("Products done loading, Products found"),(0,r.jsxs)(l.tv,{className:x("carousel-shop__carousel"),hasTrack:!1,options:F,onMounted:O,children:[(0,r.jsx)(l.Gj,{children:null==z?void 0:z.map((e,t)=>(0,a.createElement)(_,{...e,key:t}))}),(0,r.jsx)(o.W2,{children:(0,r.jsx)(o.Jj,{className:x("carousel-shop__pagination"),cta:T,ctaIcon:y})})]}))})]})})}C.fragments={entry:(0,s.ZP)(b())}},14189:function(e,t,n){"use strict";n.d(t,{Z:function(){return i.default}});var i=n(99978)},49831:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return w}});var i=n(82729),r=n(85893),a=n(68806),s=n(67294),o=n(79867),l=n(4801),u=n(47279),c=n(76606),d=n(19845),h=n.n(d),f=n(16641),p=n.n(f);let m=h().bind(p());function g(e){let{story:t,index:n}=e,{title:i,pageData:a,featureData:s}=t,{excerpt:o}=s,{featuredImage:l}=a;return(0,r.jsx)(u.jw,{className:m("story-carousel-slide"),"aria-label":i,children:(0,r.jsxs)(c.Kl,{href:t.uri,className:m("link"),children:[(0,r.jsx)("div",{className:m("image-container"),children:(0,r.jsx)(c.Ee,{image:l})}),(0,r.jsxs)("div",{className:m("content"),children:[(0,r.jsx)("p",{className:m("title-lc-m","sub-headline"),dangerouslySetInnerHTML:{__html:i}}),(0,r.jsx)("p",{className:m("text-m"),children:o})]})]})})}var v=n(44819),y=n(39583),_=n(29366),b=n(22372);function x(){let e=(0,i._)(["\n ","\n fragment CarouselStories on FlexiblePageContentContentCarouselStoriesLayout {\n headline\n subhead\n type\n cta {\n linkType\n label\n externalLink\n page {\n node {\n uri\n }\n }\n }\n posts {\n nodes {\n ... on Post {\n id\n uri\n title\n pageData {\n featuredImage {\n ...ACFMedia\n }\n }\n featureData {\n excerpt\n }\n }\n }\n }\n }\n "]);return x=function(){return e},e}let C=h().bind(p()),E=e=>e.nodes.filter(e=>"Post"===e.__typename);function w(e){let{log:t}=(0,b.q)({name:"CarouselStories",bgColor:"crimson",textColor:"white",enabled:!1}),{recentStories:n,headline:i,subhead:a,type:d,posts:h,cta:f}=e,[p]=d,m="most-recent"===p,v=!!(i||a),x=(0,s.useMemo)(()=>m?(null==n?void 0:n.nodes)||[]:E(h),[m,h,n]),w={type:"slide",arrows:!0,pagination:!0,speed:500,flickMaxPages:1,flickPower:250,updateOnMove:!0,perPage:3,perMove:3,gap:"3rem",padding:{left:"5rem",right:"5rem"},breakpoints:{1025:{perPage:2,perMove:2,gap:"3rem",padding:{left:"4rem",right:"4rem"},arrows:!1},769:{perPage:1,perMove:1,fixedWidth:"76%",gap:"2rem",padding:{left:"2rem",right:"2rem"}}}},T=()=>{S.current&&(S.current.querySelectorAll(".splide__list").forEach(e=>{e.setAttribute("role","list")}),S.current.querySelectorAll(".splide__slide").forEach(e=>{e.setAttribute("role","listitem")}))},S=(0,s.useRef)(null),{isDesktop:L}=(0,y.dg)(),P=_.LL,M=L?P.lg.triggerPercent:P.sm.triggerPercent,A=(0,o.Y)(S,{amount:M,once:P.once});return(0,r.jsx)("section",{className:C(["carousel-stories","type-".concat(p)]),ref:S,children:(0,r.jsxs)(c.Lz,{isInView:A,children:[v&&(0,r.jsx)(c.W2,{children:(0,r.jsx)(c._q,{headline:i,subhead:a,isRevealEnabled:!0,isInView:A})}),(0,r.jsx)(l.E.div,{className:C("splide-container"),children:(0,r.jsxs)(u.tv,{className:C("splide"),hasTrack:!1,options:w,onMounted:T,children:[(0,r.jsx)(u.G
13j,{children:x.map((e,t)=>(0,r.jsx)(g,{story:e,index:t},t))}),(0,r.jsx)(c.W2,{children:(0,r.jsx)(c.Jj,{cta:f,className:C("story-carousel-bottom")})})]})})]})})}w.fragments={entry:(0,a.ZP)(x(),v.ab)}},16928:function(e,t,n){"use strict";n.d(t,{d:function(){return i.default}});var i=n(49831)},20575:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return L}});var i,r,a,s=n(82729),o=n(85893),l=n(68806),u=n(19845),c=n.n(u),d=n(67294),h=n(76606);function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var p=function(e){return d.createElement("svg",f({viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i||(i=d.createElement("path",{d:"M4.14002 21.484C2.9939 20.377 2.07971 19.0529 1.4508 17.5889C0.821896 16.1248 0.490861 14.5502 0.477016 12.9568C0.46317 11.3635 0.76679 9.78331 1.37016 8.30855C1.97353 6.83379 2.86457 5.49397 3.99128 4.36726C5.11799 3.24055 6.45782 2.34951 7.93257 1.74614C9.40733 1.14277 10.9875 0.839146 12.5808 0.852992C14.1742 0.866838 15.7488 1.19787 17.2129 1.82678C18.6769 2.45569 20.0011 3.36988 21.108 4.516C23.2939 6.77922 24.5035 9.81045 24.4761 12.9568C24.4488 16.1032 23.1867 19.1129 20.9
13618 21.3378C18.7369 23.5627 15.7272 24.8247 12.5808 24.8521C9.43447 24.8794 6.40325 23.6699 4.14002 21.484ZM5.83202 19.792C7.63337 21.5933 10.0765 22.6053 12.624 22.6053C15.1715 22.6053 17.6147 21.5933 19.416 19.792C21.2174 17.9906 22.2294 15.5475 22.2294 13C22.2294 10.4525 21.2174 8.00935 19.416 6.208C17.6147 4.40665 15.1715 3.39466 12.624 3.39466C10.0765 3.39466 7.63337 4.40665 5.83202 6.208C4.03067 8.00935 3.01868 10.4525 3.01868 13C3.01868 15.5475 4.03067 17.9906 5.83202 19.792ZM17.712 9.604L14.316 13L17.712 16.396L16.02 18.088L12.624 14.692L9.22802 18.088L7.53602 16.396L10.932 13L7.53602 9.604L9.22802 7.912L12.624 11.308L16.02 7.912L17.712 9.604Z",fill:"#FF6A00"})))};function m(){return(m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var g=function(e){return d.createElement("svg",m({viewBox:"0 0 26 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=d.createElement("path",{d:"M4.64002 21.484C3.4939 20.377 2.57971 19.0529 1.9508 17.5889C1.3219 16.1248 0.990861 14.5502 0.977016 12.9568C0.96317 11.3635 1.26679 9.78331 1.87016 8.30855C2.47353 6.83379 3.36457 5.49397 4.49128 4.36726C5.61799 3.24055 6.95782 2.34951 8.43257 1.74614C9.90733 1.14277 11.4875 0.839146 13.0808 0.852992C14.6742 0.866838 16.2488 1.19787 17.7129 1.82678C19.1769 2.45569 20.5011 3.36988 21.608 4.516C23.7939 6.77922 25.0035 9.81045 24.9761 12.9568C24.9488 16.1032 23.6867 19.1129 21.4618 21.3378C19.2369 23.5627 16.2272 24.8247 13.0808 24.8521C9.93447 24.8794 6.90325 23.6699 4.64002 21.484ZM6.33202 19.792C8.13337 21.5933 10.5765 22.6053 13.124 22.6053C15.6715 22.6053 18.1147 21.5933 19.916 19.792C21.7174 17.9906 22.7294 15.5475 22.7294 13C22.7294 10.4525 21.7174 8.00935 19.916 6.208C18.1147 4.40665 15.6715 3.39466 13.124 3.39466C10.5765 3.39466 8.13337 4.40665 6.33202 6.208C4.53067 8.00935 3.51868 10.4525 3.51868 13C3.51868 15.5475 4.53067 17.9906 6.33202 19.792Z",fill:"#9EFD62"})),a||(a=d.createElement("path",{d:"M17.8994 10.6406L12.1982 17.4814L8.42383 13.707L9.83789 12.293L12.0625 14.5176L16.3623 9.35938L17.8994 10.6406Z",fill:"#9EFD62"})))},v=n(15799),y=n(39583),_=n(79867),b=n(29366),x=n(23094),C=n.n(x);function E(){let e=(0,s._)(["\n fragment ComparisonTable on FlexiblePageContentContentComparisonTableLayout {\n headline\n body\n table {\n columnHeaders {\n text\n }\n rows {\n rowLabel\n rowValues {\n rowType\n text\n }\n }\n footerLabel\n comparisonTableFooter {\n text\n cta {\n linkType\n label\n externalLink\n page {\n node {\n uri\n }\n }\n }\n links {\n linkType\n externalLink\n label\n page {\n node {\n uri\n }\n }\n }\n }\n }\n }\n "]);return E=function(){return e},e}let w=c().bind(C()),T=e=>{let{rowType:t,text:n}=e,[i]=t,r="text"===i,a="checkmark"===i,s="xmark"===i;return(0,o.jsxs)(o.Fragment,{children:[r&&(0,o.jsx)("span",{"alt-label":n,children:n}),a&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(g,{"aria-hidden":!0}),(0,o.jsx)("span",{className:"sr-only",children:"YES"})]}),s&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(p,{"aria-hidden":!0}),(0,o.jsx)("span",{className:"sr-only",children:"NO"})]})]})},S=e=>{var t;let{index:n,text:i,cta:r,links:a,columnHeaders:s}=e,l=(0,v.Cr)(r);return(0,o.jsx)("td",{className:w(["footer-cell"]),children:(0,o.jsxs)("div",{className:w(["content","text-m"]),children:[i&&(0,o.jsx)("p",{className:w("text-l","text"),children:i}),l&&(0,o.jsx)(h.zx,{className:w("cta"),label:l.label,ariaLabel:(null===(t=s[n])||void 0===t?void 0:t.text)?"".concat(l.label," as ").concat(s[n].text):l.label,noIcon:!0,url:l.url,target:l.target}),a&&(0,o.jsx)("div",{className:w("links"),children:a.map((e,t)=>{let n=(0,v.Cr)(e);return n?(0,o.jsx)(h.Kl,{className:w("link"),href:n.url,target:n.target,children:n.label},t):null})})]})})};function L(e){let{table:t,headline:n,body:i}=e,{columnHeaders:r,rows:a,footerLabel:s,comparisonTableFooter:l}=t,u=(0,v.Ay)(n),c=!!(u||i),{isDesktop:f}=(0,y.dg)(),p=(0,d.useRef)(null),m=b.LL,g=f?m.lg.triggerPercent:m.sm.triggerPercent,x=(0,_.Y)(p,{amount:g,once:m.once});return(0,o.jsx)("section",{className:w(["comparison-table"]),ref:p,children:(0,o.jsxs)(h.Lz,{isInView:x,children:[(0,o.jsx)(h.W2,{children:c&&(0,o.jsxs)("div",{className:w("header"),children:[n&&(0,o.jsx)(h.ZF,{tag:"h2",text:u,className:w("headline","title-uc-l"),isRevealEnabled:!0,isInView:x}),i&&(0,o.jsx)("p",{className:w("body","text-m"),children:i})]})}),(0,o.jsx)(h.W2,{className:w("table-wrapper"),children:(0,o.jsxs)("table",{style:{"--column-count":r.length+1},children:[(0,o.jsx)("thead",{children:(0,o.jsxs)("tr",{children:[(0,o.jsx)("th",{}),r.map((e,t)=>(0,o.jsx)("th",{className:w(["header-cell","text-l"]),children:e.text},t))]})}),(0,o.jsx)("tbody",{children:a.map((e,t)=>(0,o.jsxs)("tr",{children:[(0,o.jsx)("td",{className:w(["row-label","text-s"]),children:e.rowLabel}),e.rowValues.map((e,t)=>(0,o.jsx)("td",{className:w(["cell","text-s"]),children:(0,o.jsx)(T,{...e})},t))]},t))}),(0,o.jsx)("tfoot",{children:(0,o.jsxs)("tr",{children:[(0,o.jsx)("td",{className:w(["footer-label","text-l"]),children:s}),null==l?void 0:l.map((e,t)=>(0,o.jsx)(S,{columnHeaders:r,index:t,...e},t))]})})]})})]})})}L.fragments={entry:(0,l.ZP)(E())}},30244:function(e,t,n){"use strict";n.d(t,{R:function(){return i.default}});var i=n(20575)},44853:function(e,t,n){"use strict";n.d(t,{W:function(){return h}});var i=n(85893),r=n(19845),a=n.n(r),s=n(4801),o=n(67294),l=n(1089),u=n.n(l);let c=a().bind(u()),d=(0,o.forwardRef)((e,t)=>{let{children:n,className:r,tag:a,fullWidth:s}=e,o=a||"div";return(0,i.jsx)(o,{ref:t,className:c(["container",r,{"full-width":s}]),children:n})});s.E.create(d);var h=d},9261:function(e,t,n){"use strict";n.d(t,{P:function(){return p}});var i=n(85893),r=n(22372),a=n(67294),s=n(43775),o=n(39583),l=n(87048),u=n(19845),c=n.n(u),d=n(96112),h=n.n(d);let f=c().bind(h());var p=e=>{let{propClassName:t,container:n,circleText:u,externalPos:c,isVisible:d,mouseActive:h,icon:p,iconClass:m,onClick:g,pulseOnChange:v,disableMixBlend:y}=e,{log:_}=(0,r.q)({name:"CursorFollower",bgColor:"lime",enabled:!1}),{isDesktop:b}=(0,o.dg)(),x=p,C=96,E=7,w=(0,a.useRef)(null),T=(0,a.useRef)(null),S=(0,a.useRef)(null),L=(0,a.useRef)(null),P=(0,a.useRef)({x:0,y:0}),M=(0,a.useRef)(null),A=(0,a.useRef)(null),{mounted:I}=(0,l.F)(),[R,k]=(0,a.useState)(!0),D=()=>{let{x:e,y:t}=P.current;w.current&&s.ZP.to(w.current,{x:e,y:t,duration:.5,ease:"power2.out",overwrite:"auto"})},N=e=>{if(!h||!n.current)return;k(!1);let t=n.current.getBoundingClientRect();P.current={x:e.clientX-t.left-C/2,y:e.clientY-t.top-C/2},M.current&&cancelAnimationFrame(M.current),M.current=requestAnimationFrame(D)},F=()=>{h&&w.current&&(_("handleMouseLeave"),M.current&&cancelAnimationFrame(M.current),s.ZP.killTweensOf(w.current,"x,y"),s.ZP.to(w.current,{scale:.1,rotation:-45,duration:.24,ease:"power1.out",overwrite:"auto",onComplete:()=>{s.ZP.set(w.current,{opacity:0}
13),U()}}))},O=e=>{if(!h||!w.current||!n.current)return;_("handleMouseEnter"),k(!1);let t=n.current.getBoundingClientRect(),i=e.clientX-t.left-C/2,r=e.clientY-t.top-C/2;P.current={x:i,y:r},M.current&&cancelAnimationFrame(M.current),s.ZP.set(w.current,{x:i,y:r}),s.ZP.to(w.current,{scale:1,rotation:0,duration:.24,ease:"power1.out",overwrite:"auto",onStart:()=>{s.ZP.set(w.current,{opacity:1}),j()}})},j=()=>{var e;_("constantRotationStart",{mouseActive:h,refSvg:!!T.current}),T.current&&(null===(e=A.current)||void 0===e||e.kill(),A.current=s.ZP.fromTo(T.current,{rotation:0},{rotation:360,transformOrigin:"center",duration:E,ease:"none",repeat:-1}))},U=()=>{var e;null===(e=A.current)||void 0===e||e.kill(),A.current=null},V=(0,a.useRef)(!1);(0,a.useEffect)(()=>{if(!v)return;if(!V.current){V.current=!0;return}let e=L.current;e&&(s.ZP.killTweensOf(e),s.ZP.timeline().to(e,{scale:.78,duration:.1,ease:"power2.in"}).to(e,{scale:1,duration:.16,ease:"power2.out"}))},[u,v]),(0,a.useEffect)(()=>{if(_("isVisible changed",{isVisible:d}),d||s.ZP.to(w.current,{scale:.1,rotation:-45,duration:.24,ease:"power1.out",overwrite:"auto",onComplete:()=>{s.ZP.set(w.current,{opacity:0}),U()}}),d){if(c&&n.current)s.ZP.set(w.current,{x:c.x-C/2,y:c.y-C/2});else if(n.current&&!h){let e=n.current.getBoundingClientRect();s.ZP.set(w.current,{x:.75*e.width-C/2,y:.75*e.height-C/2})}k(!0),s.ZP.to(w.current,{scale:1,rotation:0,duration:.24,ease:"power1.out",overwrite:"auto",onStart:()=>{s.ZP.set(w.current,{opacity:1}),j()}})}},[d]),(0,a.useEffect)(()=>{_("externalPos or usingExternal changed",{externalPos:c,usingExternal:R,container:!!n.current}),R&&c&&n.current&&s.ZP.set(w.current,{x:c.x-C/2,y:c.y-C/2})},[c,R]),(0,a.useEffect)(()=>{b&&n.current&&(_("mouseActive changed",{mouseActive:h}),h?(_("Adding events"),n.current.addEventListener("mousemove",N),n.current.addEventListener("mouseleave",F),n.current.addEventListener("mouseenter",O)):(_("Removing events"),n.current.removeEventListener("mousemove",N),n.current.removeEventListener("mouseleave",F),n.current.removeEventListener("mouseenter",O)))},[h]);let[B,H]=(0,a.useState)("");return(0,a.useEffect)(()=>{var e,t;if(!w.current)return;_("Rendering");let n=33,i=null!==(t=null===(e=S.current)||void 0===e?void 0:e.getComputedTextLength())&&void 0!==t?t:0,r=(i>0?i/n*(180/Math.PI):40)+14,a=90-r/2,s=36,o=(90+r/2)*Math.PI/180,l=(a+360)*Math.PI/180,u=48+36*M
13ath.cos(o),c=48+36*Math.sin(o),d=48+36*Math.cos(l),h=48+36*Math.sin(l),f=l-o>Math.PI?1:0;H("M ".concat(u," ").concat(c," A ").concat(s," ").concat(s," 0 ").concat(f," 1 ").concat(d," ").concat(h))},[u,I]),(0,i.jsx)("div",{className:"".concat(f("cursor-follower",{visible:d,clickable:!!g})," ").concat(t||""),ref:w,"aria-hidden":!0,tabIndex:-1,onClick:g,style:{cursor:g?"pointer":"none",mixBlendMode:y?"normal":void 0},children:(0,i.jsxs)("div",{ref:L,className:f("pop"),children:[(0,i.jsxs)("svg",{fill:"none",preserveAspectRatio:"none",role:"presentation",viewBox:"0 0 96 96",ref:T,children:[(0,i.jsx)("defs",{children:(0,i.jsx)("path",{id:"circle-path",d:"M 48,15 A 33,33 0 1,1 47.99,15"})}),(0,i.jsxs)("g",{children:[(0,i.jsx)("rect",{className:"main",height:"96",rx:"48",width:"96"}),(0,i.jsx)("path",{d:B,stroke:"black",strokeWidth:"1.5",fill:"none"}),(0,i.jsx)("g",{children:(0,i.jsx)("text",{className:f("circleText"),textAnchor:"middle",children:(0,i.jsx)("textPath",{href:"#circle-path",startOffset:"50%",ref:S,children:u})})})]})]}),x&&(0,i.jsx)(x,{className:f(["icon",m])})]})})}},52145:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return b}});var i=n(82729),r=n(85893),a=n(68806),s=n(66432),o=n(67294),l=n(76606),u=n(78251),c=n(83177),d=n(43775),h=n(34715),f=n(95002),p=n(7723),m=n.n(p),g=n(19845);function v(){let e=(0,i._)(["\n fragment DetailHeroFlexibleContent on FlexiblePageContentContentDetailHeroLayout {\n headline\n location\n locationSubtext\n assetType\n video\n videoThumbnail {\n ...ACFMedia\n }\n image {\n ...ACFMedia\n }\n }\n "]);return v=function(){return e},e}let y=n.n(g)().bind(m()),_=e=>{let{text:t,subtext:n}=e;return(0,r.jsxs)("div",{className:y("detail-item"),children:[(0,r.jsx)("p",{className:"text-l",children:t}),n&&(0,r.jsx)("p",{className:"text-s",children:n})]})};function b(e){var t;let{headline:n,image:i,video:a,assetType:p,videoThumbnail:m,location:g,locationSubtext:v}=e,{labels:b}=(0,c.i)(),x=(0,u.C)(g[0],b),C=(0,o.useMemo)(()=>"video"===p[0]&&a,[p,a]),E=(0,o.useRef)(null),w=(0,o.useRef)(null),T=(0,o.useRef)(null),S=(0,o.useRef)(null),L=(0,o.useRef)(null),P=(0,o.useRef)(null),M=(0,o.useRef)(null),[A,I]=(0,o.useState)(!1);return(0,h.V)(()=>{M.current&&M.current.kill(),M.current=d.ZP.timeline({paused:!0}).add("start");let e=M.current,t=.8;T.current&&(e.add("image-in"),e.fromTo(T.current,{scale:1.5},{scale:1,duration:2*t,ease:"power3.out"},"image-in")),w.current&&e.fromTo(w.current,{opacity:1},{opacity:.6,duration:2*t,ease:"power3.out"},"image-in+=0.1"),S.current&&(e.add("headline-in","'-=".concat(1.5*t,"'")),e.fromTo(S.current,{opacity:0,y:"2rem"},{opacity:1,y:0,duration:t,ease:"power3.out",onStart:()=>{I(!0)}},"headline-in")),P.current&&(e.add("border-in","'-=".concat(t,"'")),e.fromTo(P.current,{scaleY:0,scaleX:0},{scaleY:1,scaleX:1,duration:t,ease:"power3.out"},"headline-in")),L.current&&(e.add("details-in","'-=".concat(.9*t,"'")),e.fromTo(L.current,{opacity:0,y:"1rem"},{opacity:1,y:0,duration:t/2,ease:"power4.out"},"details-in")),e.play()},[i,n,g,v]),(0,f.Z)({containerRef:E,start:"top top",distancePx:120,isEnabled:!0}),(0,r.jsxs)("section",{className:y(["detail-hero"]),ref:E,children:[(0,r.jsx)("div",{className:y("detail-hero__overlay"),ref:w}),(0,r.jsx)("div",{className:y("detail-hero__image-container"),children:(0,r.jsx)("div",{className:y("detail-hero__image-wrapper"),ref:T,children:C?(0,r.jsx)("video",{className:y("detail-hero__video","js-parallax"),poster:(0,s.r5)(null==m?void 0:null===(t=m.node)||void 0===t?void 0:t.mediaItemUrl)||"",src:a,autoPlay:!0,muted:!0,loop:!0,playsInline:!0}):(0,r.jsx)(l.Ee,{image:i,className:"".concat(y("detail-hero__image")," js-parallax")})})}),(0,r.jsx)(l.W2,{className:y("detail-hero__container"),children:(0,r.jsxs)("div",{className:y("detail-hero__content"),children:[(0,r.jsx)("div",{className:y("headline-wrap"),ref:S,children:(0,r.jsx)(l.ZF,{tag:"h1",className:y(["headline","title-uc-xl"]),text:n,isRevealEnabled:!0,isInView:A})}),(0,r.jsx)("div",{className:y("details"),ref:L,children:(0,r.jsx)(_,{text:x,subtext:v})}),(0,r.jsx)("div",{className:y("detail-hero__content__bottom"),ref:P})]})})]})}b.fragments={entry:(0,a.Ps)(v())}},78251:function(e,t,n){"use strict";n.d(t,{C:function(){return r},r:function(){return a}});var i=n(15799);let r=(e,t)=>{let{locationLabels:n}=t;switch(e){case"indoors":return null==n?void 0:n.indoors;case"outdoors":return null==n?void 0:n.outdoors;default:let r=e.split("-")[1];return(0,i.$e)(null==n?void 0:n.levelNumber,{level:r})}},a=function(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],{eventPriceLabels:r,membersOnly:a}=e||{},{priceWithAdmissionFull:s,members:o}=r||{},l={main:""};if(!t||!n)return null;switch(t){case"ticketed":if(i){if(!n.membersPrice)return null;l.main="$".concat(n.membersPrice),l.sub=a}else{if(!n.gaPrice)return null;l.main="$".concat(n.gaPrice),n.priceWithAdmission&&(l.sub="$".concat(n.priceWithAdmission," ").concat(s)),n.membersPrice&&(l.sub="".concat(l.sub?"".concat(l.sub,", "):"","$").concat(n.membersPrice," ").concat(o))}break;case"free":l.main=null==r?void 0:r.free;break;case"free-with-rsvp":l.main=null==r?void 0:r.freeWithRsvpFull;break;
13case"free-with-admission":l.main=null==r?void 0:r.freeWithAdmissionFull;break;default:l.main=t}return l}},39880:function(e,t,n){"use strict";n.d(t,{F:function(){return C},w:function(){return E.default}});var i=n(85893),r=n(67294),a=n(66432),s=n(15799),o=n(76606),l=n(78251),u=n(39583),c=n(87048),d=n(69065),h=n(43775),f=n(34715),p=n(95002),m=n(7723),g=n.n(m),v=n(19845),y=n.n(v),_=n(83177);let b=y().bind(g()),x=e=>{let{text:t,subtext:n}=e;return(0,i.jsxs)("div",{className:b("detail-item"),children:[(0,i.jsx)("p",{className:"text-l",children:t}),n&&(0,i.jsx)("p",{className:"text-s",children:n})]})};function C(e){var t,n,m;let{page:g,price:v,image:y,video:C,endDate:E,timeText:w,headline:T,location:S,heroLink:L,startDate:P,assetType:M,cursorText:A,pricingType:I,timeSubtext:R,publishDate:k,dateSubtext:D,isMembersOnly:N,videoThumbnail:F,locationSubtext:O,includeTimeInfo:j,accessibilitySubtext:U,accessibilityFriendly:V}=e,{labels:B}=(0,_.i)(),{accessibilityFriendlyLabel:H,freeExhibit:G,freeExhibitSubtext:z}=B||{},{isDesktop:q,isReady:W}=(0,u.dg)(),{mounted:$}=(0,c.F)(),Z=!!(A&&L&&$&&W&&q),Y=(0,r.useRef)(null),K=(null==g?void 0:null===(t=g.node)||void 0===t?void 0:t.__typename)==="Event",X=(null==g?void 0:null===(n=g.node)||void 0===n?void 0:n.__typename)==="Exhibit",Q=(0,d.k)(g),J=K?(0,s.Y_)(P,E):null,ee=(null==S?void 0:S[0])?(0,l.C)(S[0],B):null,et=K&&(null==I?void 0:I[0])?(0,l.r)(B,I[0],v,N):null,en=k?(0,s.p6)(k,"MMMM d, yyyy"):null,ei=(0,r.useMemo)(()=>(null==M?void 0:M[0])==="video"&&C,[M,C]),er=(0,r.useRef)(null),ea=(0,r.useRef)(null),es=(0,r.useRef)(null),eo=(0,r.useRef)(null),el=(0,r.useRef)(null),eu=(0,r.useRef)(null),ec=(0,r.useRef)(null),[ed,eh]=(0,r.useState)(!1);return(0,f.V)(()=>{ec.current&&ec.current.kill(),ec.current=h.ZP.timeline({paused:!0}).add("start");let e=ec.current,t=.8;es.current&&(e.add("image-in"),e.fromTo(es.current,{scale:1.5},{scale:1,duration:2*t,ease:"power3.out"},"image-in")),ea.current&&e.fromTo(ea.current,{opacity:1},{opacity:.6,duration:2*t,ease:"power3.out"},"image-in+=0.1"),eo.current&&(e.add("headline-in","'-=".concat(1.5*t,"'")),e.fromTo(eo.current,{opacity:0,y:"2rem"},{opacity:1,y:0,duration:t,ease:"power3.out",onStart:()=>{eh(!0)}},"headline-in")),eu.current&&(e.add("border-in","'-=".concat(t,"'")),e.fromTo(eu.current,{scaleY:0,scaleX:0},{scaleY:1,scaleX:1,duration:t,ease:"power3.out"},"headline-in")),el.current&&(e.add("details-in","'-=".concat(.9*t,"'")),e.fromTo(el.current,{opacity:0,y:"1rem"},{opacity:1,y:0,duration:t/2,ease:"power4.out"},"details-in")),e.play()},[y,T,S,O]),(0,p.Z)({containerRef:er,start:"top top",distancePx:120,isEnabled:!0}),(0,i.jsxs)("section",{className:b(["detail-hero"]),ref:er,children:[(0,i.jsx)("div",{className:b("detail-hero__overlay"),ref:ea}),(0,i.jsx)("div",{className:b("detail-hero__image-container"),children:(0,i.jsx)("div",{className:b("detail-hero__image-wrapper"),ref:es,children:ei?(0,i.jsx)("video",{className:b("detail-hero__video","js-parallax"),src:C||"",poster:(0,a.r5)(null==F?void 0:null===(m=F.node)||void 0===m?void 0:m.mediaItemUrl)||"",autoPlay:!0,muted:!0,loop:!0,playsInline:!0}):(0,i.jsx)(o.Ee,{image:y,className:"".concat(b("detail-hero__image")," js-parallax")})})}),Z&&(0,i.jsx)(o.Kl,{href:L,target:"_blank","aria-label":A,className:b("link"),ref:Y,children:$&&W&&q&&(0,i.jsx)(o.PZ,{container:Y,circleText:A,isVisible:!0,mouseActive:!0})}),(0,i.jsx)(o.W2,{className:b("detail-hero__container"),children:(0,i.jsxs)("div",{className:b("detail-hero__content"),children:[(null==Q?void 0:Q.key)&&(0,i.jsx)("div",{className:b("info"),children:(0,i.jsx)(o.eo,{type:Q.key,copy:Q.label})}),(0,i.jsx)("div",{className:b("headline-wrap"),ref:eo,children:(0,i.jsx)(o.ZF,{tag:"h1",className:b(["headline","title-uc-xl"]),text:T,isRevealEnabled:!0,isInView:ed})}),(0,i.jsxs)("div",{className:b("details"),ref:el,children:[en&&(0,i.jsx)(x,{text:en}),j&&(0,i.jsx)(x,{text:w,subtext:R}),K&&(0,i.jsx)(x,{text:J,subtext:D}),ee&&(0,i.jsx)(x,{text:ee,subtext:O}),V&&(0,i.jsx)(x,{text:H,subtext:U}),K&&et&&(0,i.jsx)(x,{text:et.main,subtext:et.sub}),X&&(0,i.jsx)(x,{text:G,subtext:z})]}),(0,i.jsx)("div",{className:b("detail-hero__content__bottom"),ref:eu})]})})]})}var E=n(52145)},14771:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return em}});var i,r,a=n(82729),s=n(85893),o=n(68806),l=n(67294),u=n(19845),c=n.n(u),d=n(11810);function h(e){var t;return(null!==(t=e.options)&&void 0!==t?t:[]).findIndex(e=>!!(null==e?void 0:e.isCorrect))}function f(e,t){return e.reduce((e,n,i)=>{let r=h(n);return r>=0&&t[i]===r?e+1:e},0)}function p(e,t){var n;return null!==(n=[...e].sort((e,t)=>
13{var n,i;return(null!==(n=t.minScore)&&void 0!==n?n:0)-(null!==(i=e.minScore)&&void 0!==i?i:0)}).find(e=>{var n;return t>=(null!==(n=e.minScore)&&void 0!==n?n:0)}))&&void 0!==n?n:null}function m(e,t){return"".concat(Math.min(e+1,t)," / ").concat(t)}function g(e,t){return t<=0?0:Math.round((e+1)/t*100)}function v(e,t,n){let i=new Map;return e.forEach((e,n)=>{var r,a,s;let o=t[n];if(null==o)return;let l=(0,d.PF)(null===(r=(null!==(a=e.options)&&void 0!==a?a:[])[o])||void 0===r?void 0:r.resultKey);l&&i.set(l,(null!==(s=i.get(l))&&void 0!==s?s:0)+1)}),n.reduce((e,t)=>{var n;let r=(0,d.PF)(t.resultKey),a=r&&null!==(n=i.get(r))&&void 0!==n?n:0;return a>e.count?{winner:t,count:a}:e},{winner:null,count:0}).winner}function y(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],r="personality"===n,a=e.length,[s,o]=(0,l.useState)(!1),[u,c]=(0,l.useState)("quiz"),[d,h]=(0,l.useState)(0),[y,_]=(0,l.useState)(()=>Array(a).fill(null)),b=(0,l.useCallback)(e=>{_(t=>{let n=[...t];return n[d]=e,n})},[d]),x=null!=y[d],C=(0,l.useCallback)(()=>{null!=y[d]&&(d<a-1?h(e=>e+1):c("results"))},[y,d,a]),E=(0,l.useCallback)(()=>o(!0),[]),w=(0,l.useCallback)(()=>{_(Array(a).fill(null)),h(0),c("quiz"),o(!1)},[a]),T=(0,l.useCallback)(()=>{if("results"===u){c("quiz"),h(a-1);return}if(0===d){o(!1);return}h(e=>e-1)},[u,d,a]),S=(0,l.useMemo)(()=>f(e,y),[e,y]),L=(0,l.useMemo)(()=>p(t,S),[t,S]),P=(0,l.useMemo)(()=>{var t,n;return r&&null!==(n=null!==(t=v(e,y,i))&&void 0!==t?t:i[0])&&void 0!==n?n:null},[r,e,y,i]),M="results"===u?a-1:d;return{started:s,phase:u,current:d,answers:y,canAdvance:x,select:b,goNext:C,goBack:T,begin:E,retake:w,score:S,resultTier:L,isPersonality:r,personalityResult:P,progressLabel:m(M,a),progressPct:"results"===u?100:g(d,a)}}var _=n(43775),b=n(68563),x=n(34715),C=n(14902),E=n(39583),w=n(31853),T=n(95002);_.ZP.registerPlugin(b.i);let S=.75;function L(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{started:n,phase:i,current:r}=e,a=(0,C.LZ)(),s=(0,l.useRef)(null),o=(0,l.useRef)(null),u=(0,l.useRef)(null),c=(0,l.useRef)(null),d=(0,l.useRef)(null),h=(0,l.useRef)(null),f=(0,l.useRef)(null),p=(0,l.useRef)(!1),m=(0,l.useRef)(!1),g=(0,l.useRef)(!1),v=(0,l.useRef)(null),[y,b]=(0,l.useState)(!1);(0,l.useEffect)(()=>{b((0,w.xF)())},[]),(0,l.useEffect)(()=>{if("undefined"==typeof BroadcastChannel)return;let e=new BroadcastChannel(w.f);return e.onmessage=e=>{var t;"boolean"==typeof(null===(t=e.data)||void 0===t?void 0:t.checked)&&b(e.data.checked)},()=>e.close()},[]),(0,T.Y)({containerRef:s,startPx:-45,endPx:45,isEnabled:!y});let L=()=>{var e,t;let n=null!==(t=null===(e=d.current)||void 0===e?void 0:e.offsetWidth)&&void 0!==t?t:0,i=o.current,r=i?parseFloat(getComputedStyle(i).columnGap):NaN;return n+(Number.isFinite(r)?r:24)};(0,x.V)(()=>{var e,i,r;if(m.current){let e=v.current;v.current=null,m.current=!1,null==e||e()}d.current&&(d.current.inert=!n),h.current&&(h.current.inert=n);let a=u.current,l=c.current,g=h.current,b=s.current,x=null!==(e=null==a?void 0:a.querySelector("[data-quiz-dim]"))&&void 0!==e?e:null;if(!n){a&&(a.style.right="",a.style.height=""),l&&_.ZP.set(l,{clearProps:"transform"}),g&&_.ZP.set(g,{clearProps:"opacity"}),x&&_.ZP.set(x,{clearProps:"opacity"}),b&&_.ZP.set(b.querySelectorAll("[data-quiz-stagger]"),{clearProps:"opacity,transform"});return}if(!b||!a)return;let C=window.innerWidth<=E.dG,w=b.querySelectorAll("[data-quiz-stagger]");if(y){a.style.right="",a.style.height="",_.ZP.set(w,{opacity:1,y:0}),g&&_.ZP.set(g,{opacity:0}),x&&_.ZP.set(x,{clearProps:"opacity"}),p.current=!0;return}_.ZP.set(w,{opacity:0,y:20});let T=_.ZP.timeline({onStart:()=>{m.current=!0},onComplete:()=>{p.current=!0,m.current=!1,a.style.right="",a.style.height="",x&&(x.style.opacity="")}});if(C){let e=null!==(r=null===(i=o.current)||void 0===i?void 0:i.offsetHeight)&&void 0!==r?r:window.innerHeight,t=a.offsetHeight;T.fromTo(a,{height:e},{height:t,duration:1.2,ease:"expo.inOut"},0)}else{let e=L();T.fromTo(a,{right:0},{right:e,duration:1.2,ease:"expo.inOut"},0)}g&&T.fromTo(g,{opacity:1},{opacity:0,duration:.5,ease:"power2.in"},0),x&&T.fromTo(x,{opacity:t?S:0},{opacity:0,duration:.4,ease:"power1.inOut"},.3),T.to(w,{opacity:1,y:0,duration:.8,ease:"power3.out",stagger:.08},.4),f.current=T},{dependencies:[n,y],revertOnUpdate:!0,scope:s}),(0,x.V)(()=>{var e;if(!n||"quiz"!==i||!p.current||y)return;let t=null===(e=s.current)||void 0===e?void 0:e.querySelector("[data-quiz-question]");t&&_.ZP.fromTo(t,{opacity:0,y:16},{opacity:1,y:0,duration:.5,ease:"power3.out"})},{dependencies:[r],scope:s}),(0,x.V)(()=>{var e;if("results"!==i||y)return;let t=null===(e=s.current)||void 0===e?void 0:e.querySelectorAll("[data-quiz-stagger]");(null==t?void 0:t.length)&&_.ZP.fromTo(t,{opacity:0,y:20},{opacity:1,y:0,duration:.8,ease:"power3.out",stagger:.08})},{dependencies:[i],scope:s});let P=()=>{s.current&&(null==a||a.scrollTo(s.current,{offset:0,duration:.6}))},M=e=>{P();let t=f.current;if(y||!t){e();return}m.current=!0,v.current=e,p.current=!1,t.eventCallback("onReverseComplete",()=>{t.eventCallback("onReverseComplete",null),m.current=!1,v.current=null,e()}),t.timeScale(1.7),t.reverse()},A=e=>{var t;if(g.current)return;let n=null===(t=s.current)||void 0===t?void 0:t.querySelector("[data-quiz-question]");if(y||!n){e();return}
13g.current=!0,_.ZP.to(n,{opacity:0,duration:.15,ease:"power2.in",onComplete:()=>{g.current=!1,e()}})};return{rootRef:s,stageRef:o,mediaRef:u,imgRef:c,panelRef:d,lockupRef:h,reduceMotion:y,handleBegin:()=>{m.current||n||(P(),e.begin())},handleNext:()=>{m.current||A(e.goNext)},handleBack:()=>{if(!m.current){if(n&&"quiz"===i&&0===r){M(()=>e.goBack());return}A(e.goBack)}},handleRetake:()=>{m.current||M(()=>e.retake())}}}var P=n(11163);function M(e,t,n){var i;let r=(null===(i=(0,P.useRouter)().query)||void 0===i?void 0:i.module)==="quiz";(0,l.useEffect)(()=>{if(!t||!r)return;let i=e.current;if(!i)return;let a=()=>{var e,t;return null!==(t=null===(e=document.querySelector("header"))||void 0===e?void 0:e.clientHeight)&&void 0!==t?t:0},s=()=>{let e=i.getBoundingClientRect().top+window.scrollY-a();window.scrollTo({top:e,behavior:n?"auto":"smooth"})},o=requestAnimationFrame(()=>requestAnimationFrame(s)),l=window.setTimeout(()=>{Math.abs(i.getBoundingClientRect().top-a())>8&&s()},700);return()=>{cancelAnimationFrame(o),window.clearTimeout(l)}},[t,r,n,e])}let A="dx-quiz-hides-consent",I=new Set,R=()=>{document.documentElement.classList.toggle(A,I.size>0)},k="0px 0px -30% 0px",D="-90% 0px 0px 0px";function N(e){(0,l.useEffect)(()=>{let t=e.current;if(!t)return;let n=!1,i=!1,r=()=>{n&&i?I.add(t):I.delete(t),R()},a=(e,n)=>{let i=new IntersectionObserver(e=>{let[t]=e;n(t.isIntersecting),r()},{rootMargin:e});return i.observe(t),i},s=[a(k,e=>{n=e}),a(D,e=>{i=e})];return()=>{s.forEach(e=>e.disconnect()),I.delete(t),R()}},[e])}var F=n(90825),O=n(30775),j=n(4801),U=n(57033),V=n.n(U);let B=c().bind(V());function H(e){var t,n,i,r,a;let{imageMode:o,landingImage:l,questions:u,current:c,started:d,dimImagery:h,mediaRef:f,imgRef:p,imageAttribution:m,phase:g,resultsImage:v}=e,y=null!==(i=null===(n=u[c])||void 0===n?void 0:null===(t=n.image)||void 0===t?void 0:t.node)&&void 0!==i?i:null,_="results"===g&&v?v:"multi"===o&&d&&null!=y?y:l;return(0,s.jsxs)("div",{ref:f,className:B("dx-quiz__media"),children:[(0,s.jsx)("div",{className:B("dx-quiz__media-parallax","js-parallax"),"aria-hidden":"true",children:(0,s.jsx)(O.M,{initial:!1,children:(null==_?void 0:_.mediaItemUrl)&&(0,s.jsx)(j.E.img,{ref:p,className:B("dx-quiz__media-image"),src:_.mediaItemUrl,srcSet:null!==(r=_.srcSet)&&void 0!==r?r:void 0,sizes:null!==(a=_.sizes)&&void 0!==a?a:void 0,alt:"",draggable:!1,onContextMenu:e=>e.preventDefault(),initial:{opacity:0}
13,animate:{opacity:1},exit:{opacity:0},transition:{duration:.5,ease:"easeInOut"}},_.mediaItemUrl)})}),m&&(0,s.jsx)(j.E.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10},className:B("dx-quiz__media-attribution-wrapper"),children:(0,s.jsx)(F.G,{className:B("dx-quiz__media-attribution"),text:m})},m),(0,s.jsx)("div",{className:B("dx-quiz__media-dim",{"is-dim":!!h}),"data-quiz-dim":!0}),(0,s.jsx)("div",{className:B("dx-quiz__media-scrim")})]})}let G=c().bind(V());function z(e){let{label:t,pct:n,announce:i}=e;return(0,s.jsxs)("div",{className:G("dx-quiz__progress"),"data-quiz-stagger":!0,children:[(0,s.jsx)("div",{className:G("dx-quiz__progress-track"),children:(0,s.jsx)("div",{className:G("dx-quiz__progress-fill"),style:{width:"".concat(n,"%")}})}),(0,s.jsx)("span",{className:G("dx-quiz__progress-count","dx-body"),children:t}),i&&(0,s.jsx)("span",{className:"sr-only","aria-live":"polite",children:i})]})}var q=n(76606),W=n(18929),$=n(81854),Z=n(15799);let Y=c().bind(V());function K(e){let{eyebrow:t,title:n,supportingCopy:i,ctaLabel:r,knockoutEnabled:a,knockoutColor:o,onBegin:u,headingRef:c}=e,h=(0,d.PF)(o),f=a?Y("dx-knockout",h&&"dx-knockout--".concat(h)):void 0,p=(0,l.useRef)(null),m=(0,l.useRef)(null),g=h||"white",{isDesktop:v}=(0,E.dg)(),{ready:y}=(0,$.e)(p,{enabled:!!a,color:g}),_=a&&!v?(0,d.RG)(i).replace(/<br\s*\/?>/gi," "):(0,d.RG)(i),{ready:b}=(0,$.e)(m,{enabled:!!a,color:g,resplitKey:_});return(0,s.jsxs)("div",{className:Y("dx-quiz__landing",{"is-knockout":!!a}),children:[t&&(0,s.jsx)("span",{className:Y("dx-quiz__eyebrow","dx-caption",f),children:t}),n&&(0,s.jsx)("h2",{ref:c,"aria-label":n,tabIndex:-1,className:Y("dx-quiz__title","dx-display-1"),children:(0,s.jsx)("span",{ref:p,className:f,style:a&&!y?{opacity:0}:void 0,children:n})}),i&&(0,s.jsx)("p",{ref:m,"aria-label":(0,Z.iT)(i),className:Y("dx-quiz__supporting","dx-body",f),style:a&&!b?{opacity:0}:void 0,dangerouslySetInnerHTML:{__html:_}},a&&!v?"no-br":"br"),(0,s.jsxs)("div",{className:Y("dx-quiz__landing-actions"),children:[(0,s.jsx)(q.zx,{className:Y("dx-quiz__landing-button"),label:r||"Take the Quiz",onClick:u,type:"button"}),(0,s.jsx)(W.Z,{className:Y("dx-quiz__landing-button"),moduleSlug:"quiz"})]})]})}let X=c().bind(V());function Q(e){let{variant:t,onBack:n,onNext:i,onRetake:r,onShare:a,canAdvance:o=!1,backLabel:l="Back",nextLabel:u="Next",retakeLabel:c="Retake",shareLabel:d,copiedLabel:h,showShare:f=!0}=e;return(0,s.jsx)("div",{className:X("dx-quiz__controls",{"dx-quiz__controls--results":"results"===t}),"data-quiz-stagger":!0,children:"question"===t?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(q.zx,{label:l,onClick:n,type:"button",noIcon:!0}),(0,s.jsx)(q.zx,{label:u,onClick:i,type:"button",disabled:!o})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(q.zx,{label:c,onClick:r,type:"button",noIcon:!0}),f&&(0,s.jsx)(W.Z,{moduleSlug:"quiz",defaultLabel:d,copiedLabel:h,onShare:a})]})})}function J(){return(J=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var ee=function(e){return l.createElement("svg",J({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i||(i=l.createElement("circle",{cx:8,cy:8,r:7,stroke:"currentColor",strokeWidth:2})),r||(r=l.createElement("circle",{cx:8,cy:8,r:4,fill:"currentColor"})))},et=n(83177);let en=c().bind(V());function ei(e){var t;let{question:n,current:i,started:r,answers:a,canAdvance:o,select:u,onNext:c,onBack:d}=e,{labels:h}=(0,et.i)(),f=(null!==(t=n.options)&&void 0!==t?t:[]).filter(Boolean),p=a[i],m=(0,l.useRef)([]),g=(0,l.useRef)(null);(0,l.useEffect)(()=>{var e;r&&(null===(e=g.current)||void 0===e||e.focus({preventScroll:!0}))},[r,i]);let v=e=>null!=p?p===e?0:-1:0===e?0:-1,y=(e,t)=>{var n;let i=f.length;if(0===i)return;let r=t;switch(e.key){case"ArrowUp":case"ArrowLeft":r=(t-1+i)%i;break;case"ArrowDown":case"ArrowRight":r=(t+1)%i;break;case" ":case"Enter":e.preventDefault(),u(t);return;default:return}e.preventDefault(),u(r),null===(n=m.current[r])||void 0===n||n.focus()};return(0,s.jsxs)("div",{className:en("dx-quiz__question"),"data-quiz-question":!0,children:[(0,s.jsx)("div",{ref:g,tabIndex:-1,role:"heading","aria-level":2,className:en("dx-quiz__prompt","dx-subhead"),"data-quiz-stagger":!0,children:n.questionText}),(0,s.jsx)("div",{className:en("dx-quiz__options"),"data-quiz-stagger":!0,role:"radiogroup","aria-label":"Answer options",children:f.map((e,t)=>(0,s.jsxs)("button",{ref:e=>{m.current[t]=e},type:"button",role:"radio","aria-checked":p===t,tabIndex:v(t),onClick:()=>u(t),onKeyDown:e=>y(e,t),className:en("dx-quiz__option",{"is-selected":p===t}),children:[(0,s.jsx)("span",{className:en("dx-quiz__option-label","dx-caption"),children:e.label}),(0,s.jsx)("span",{className:en("dx-quiz__option-dot"),"aria-hidden":!0,
13children:(0,s.jsx)(ee,{className:en("dot-icon")})})]},t))}),(0,s.jsx)(Q,{variant:"question",onBack:d,onNext:c,canAdvance:o,backLabel:(null==h?void 0:h.quizBack)||void 0,nextLabel:(null==h?void 0:h.quizNext)||void 0})]})}var er=n(22424);function ea(e,t,n){let i=t.split("?")[0];return"".concat(e).concat(i,"?module=").concat(n)}function es(e){let{title:t,score:n,total:i,shareText:r,url:a}=e,s="number"==typeof n&&"number"==typeof i?"".concat(n,"/").concat(i):null;return[(null==t?void 0:t.trim())||"Rock Hall Quiz",s,(null==r?void 0:r.trim())||null,a].filter(Boolean).join("\n")}async function eo(e){try{return await navigator.clipboard.writeText(e),!0}catch(t){try{let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.left="-9999px",document.body.appendChild(t),t.select();let n=document.execCommand("copy");return document.body.removeChild(t),n}catch(e){return!1}}}async function el(e){let{text:t,onCopied:n}=e;if((0,er.r)())try{return await navigator.share({title:"Rock Hall Quiz",text:t}),"shared"}catch(e){return"failed"}return await eo(t)?(null==n||n(),"copied"):"failed"}let eu=c().bind(V());function ec(e){let{title:t,score:n,total:i,result:r,isPersonality:a,showShare:o,onRetake:u}=e,c=(0,P.useRouter)(),{labels:d}=(0,et.i)(),h=async()=>{let e=ea(window.location.origin,c.asPath,"quiz"),s=es({title:t,score:a?void 0:n,total:a?void 0:i,shareText:null==r?void 0:r.shareText,url:e});return await el({text:s})==="copied"},f=(0,l.useRef)(null);return(0,l.useEffect)(()=>{var e;null===(e=f.current)||void 0===e||e.focus({preventScroll:!0})},[]),(0,s.jsxs)("div",{className:eu("dx-quiz__results"),children:[(0,s.jsx)(z,{label:"".concat(i," / ").concat(i),pct:100}),(0,s.jsxs)("div",{ref:f,tabIndex:-1,className:eu("dx-quiz__results-copy"),"data-quiz-stagger":!0,"aria-live":"polite",children:[(null==r?void 0:r.eyebrow)&&(0,s.jsx)("span",{className:eu("dx-quiz__eyebrow","dx-caption"),children:r.eyebrow}),!a&&(0,s.jsxs)("p",{className:eu("dx-quiz__score","dx-subhead"),children:[n," / ",i]}),r&&(0,s.jsxs)(s.Fragment,{children:[r.headline&&(0,s.jsx)("h2",{className:eu("dx-quiz__results-headline","dx-display-1"),children:r.headline}),r.message&&(0,s.jsx)("p",{className:eu("dx-quiz__results-message","dx-body"),children:r.message})]})]}),(0,s.jsx)(Q,{variant:"results",onRetake:u,onShare:h,showShare:o,retakeLabel:(null==d?void 0:d.quizRetake)||void 0,shareLabel:(null==d?void 0:d.quizShareText)||void 0,copiedLabel:(null==d?void 0:d.quizCopiedText)||void 0})]})}var ed=n(54192);function eh(){let e=(0,a._)(["\n ","\n fragment FlexibleLayoutQuiz on FlexiblePageContentContentQuizLayout {\n quiz {\n nodes {\n ...QuizFragment\n }\n }\n }\n "]);return eh=function(){return e},e}function ef(){let e=(0,a._)(["\n ","\n fragment ImpactQuiz on InducteeDataImpactFlexibleContentQuizLayout {\n quiz {\n nodes {\n ...QuizFragment\n }\n }\n }\n "]);return ef=function(){return e},e}let ep=c().bind(V());function em(e){var t,n,i,r,a,o,u,c;let{quiz:h,accent:f,isDefault:p}=e,m=null==h?void 0:null===(t=h.nodes)||void 0===t?void 0:t[0],g=(null==m?void 0:m.__typename)==="Quiz"&&!!m.quizFields,{eyebrow:v,title:_,supportingCopy:b,ctaLabel:x,knockoutEnabled:C,knockoutColor:E,dimImagery:w,imageMode:T,image:S,questions:P,resultLevels:A,imageAttribution:I,quizType:R,results:k,resultsImageMode:D,resultsImage:F,resultsImageAttribution:O,enableShare:j}=null!==(r=g?m.quizFields:null)&&void 0!==r?r:{},U=(null!=P?P:[]).filter(Boolean),V=(null!=A?A:[]).filter(Boolean),B=null!==(a=null==S?void 0:S.node)&&void 0!==a?a:null,G=(null!=k?k:[]).filter(Boolean),q=Math.max(2,...U.map(e=>{var t;return(null!==(t=e.options)&&void 0!==t?t:[]).filter(Boolean).length})),W=y(U,V,R,G),{started:$,phase:Z,current:Y,answers:X,canAdvance:Q,isPersonality:J,personalityResult:ee}=W,{rootRef:et,stageRef:en,mediaRef:er,imgRef:ea,panelRef:es,lockupRef:eo,reduceMotion:el,handleBegin:eu,handleNext:ed,handleBack:eh,handleRetake:ef}=L(W,!!w),em=J&&null!==(o="multi"===D?null==ee?void 0:null===(n=ee.image)||void 0===n?void 0:n.node:null==F?void 0:F.node)&&void 0!==o?o:null,eg=em&&J&&null!==(u="multi"===D?null==ee?void 0:ee.imageAttribution:O)&&void 0!==u?u:null,ev="results"===Z&&eg?eg:$?null!==(c=null===(i=U[Y])||void 0===i?void 0:i.imageAttribution)&&void 0!==c?c:null:null!=I?I:null;M(et,p,el),N(et);let ey=(0,l.useRef)(null),e_=(0,l.useRef)(!1);return((0,l.useEffect)(()=>{var e;if($){e_.current=!0;return}e_.current&&(null===(e=ey.current)||void 0===e||e.focus({preventScroll:!0}))},[$]),g)?(0,s.jsx)("section",{id:"dx-quiz",ref:et,"aria-label":_||"Quiz",style:{"--dx-quiz-max-options":q,"--highlight-color":f?(0,d.NX)(f):void 0},className:ep("dx-quiz",{"dx-quiz--default":p,"is-started":$,"dx-quiz--static":el}),children:(0,s.jsxs)("div",{ref:en,className:ep("dx-quiz__stage"),children:[(0,s.jsxs)("div",{ref:es,className:ep("dx-quiz__panel"),children:["quiz"===Z&&(0,s.jsx)(z,{label:W.progressLabel,pct:W.progressPct,announce:"Question ".concat(Y+1," of ").concat(U.length)}),"quiz"===Z&&U[Y]&&(0,s.jsx)(ei,{question:U[Y],current:Y,started:$,answers:X,canAdvance:Q,select:W.select,onNext:ed,onBack:eh}),"results"===Z&&(0,s.jsx)(ec,{title:_,score:W.score,total:U.length,result:J?ee:W.resultTier,isPersonality:J,showShare:!J||!1!==j,onRetake:ef})]}),(0,s.jsx)("div",{ref:eo,className:ep("dx-quiz__lockup"),children:(0,s.jsx)(K,{eyebrow:v,title:_,supportingCopy:b,ctaLabel:x,knockoutEnabled:C,knockoutColor:E,onBegin:eu,headingRef:ey})}),(0,s.jsx)(H,{imageMode:T,landingImage:B,questions:U,current:Y,started:$,phase:Z,resultsImage:em,dimImagery:w,mediaRef:er,imageAttribution:ev,imgRef:ea})]})}):null}em.fragments={entry:(0,o.ZP)(eh(),ed.Ez),inducteeEntry:(0,o.ZP)(ef(),ed.Ez)}},18929:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var i,r,a,s=n(85893),o=n(67294),l=n(19845),u=n.n(l),c=n(11163),d=n(76606);
13function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var f=function(e){return o.createElement("svg",h({viewBox:"0 0 20 20.5607",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i||(i=o.createElement("path",{d:"M13.332 7.72472H16.6654V16.0581H3.33203V7.72472H6.66536",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"})),r||(r=o.createElement("path",{d:"M10.0013 11.0607V1.89399M6.66797 4.39399L10.0013 1.06066L13.3346 4.39399",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"})))};function p(){return(p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var m=function(e){return o.createElement("svg",p({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a||(a=o.createElement("path",{d:"M4.16797 11.664L7.08464 14.5807L15.8346 5.41406",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"})))},g=n(83177),v=n(22424),y=n(1098),_=n.n(y);let b=u().bind(_()),x=["default","copied"],C={default:"Share this",copied:"Link copied"},E="Share",w={default:f,copied:m},T=2500;function S(e){let{moduleSlug:t,className:n,defaultLabel:i,copiedLabel:r,onShare:a}
13=e,l=(0,c.useRouter)(),{labels:u}=(0,g.i)(),h={default:i||(null==u?void 0:u.shareThis)||C.default,copied:r||(null==u?void 0:u.shareCopied)||C.copied},f=i||(null==u?void 0:u.shareThisMobile)||E,[p,m]=(0,o.useState)(!1),[y,_]=(0,o.useState)(!1),[S,L]=(0,o.useState)(null),P=(0,o.useRef)({default:null,copied:null}),M=(0,o.useRef)(null),A=()=>{let e={};for(let t of x){let n=P.current[t],i=n?Math.ceil(n.getBoundingClientRect().width):0;if(!(i>0))return;e[t]=i}L(e)};(0,o.useLayoutEffect)(()=>{A()},[]),(0,o.useEffect)(()=>{var e,t,n;null===(t=document.fonts)||void 0===t||null===(e=t.ready)||void 0===e||e.then(A).catch(()=>{}),window.addEventListener("resize",A);let i=window.matchMedia("(prefers-reduced-motion: reduce)");_(i.matches);let r=e=>_(e.matches);return null===(n=i.addEventListener)||void 0===n||n.call(i,"change",r),()=>{var e;null===(e=i.removeEventListener)||void 0===e||e.call(i,"change",r),window.removeEventListener("resize",A),M.current&&clearTimeout(M.current)}},[]);let I=async()=>{let e=l.asPath.split("?")[0],n="".concat(window.location.origin).concat(e,"?module=").concat(t);if((0,v.r)())try{return await navigator.share({title:document.title,url:n}),!1}catch(e){if((null==e?void 0:e.name)==="AbortError")return!1}try{return await navigator.clipboard.writeText(n),!0}catch(e){try{let e=document.createElement("textarea");e.value=n,e.style.position="fixed",e.style.left="-9999px",document.body.appendChild(e),e.select();let t=document.execCommand("copy");return document.body.removeChild(e),t}catch(e){return!1}}},R=async()=>{await (null!=a?a:I)()&&(M.current&&clearTimeout(M.current),m(!0),M.current=setTimeout(()=>m(!1),T))},k=p?"copied":"default",D=e=>"copied"===e?h.copied:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:b("dx-share__label--mobile"),children:f}),(0,s.jsx)("span",{className:b("dx-share__label--desktop"),children:h.default})]});return(0,s.jsxs)("span",{className:b("dx-share",{"dx-share--instant":y},n),style:S?{width:S[k]}:void 0,children:[(0,s.jsx)(d.zx,{className:b("dx-share__btn"),type:"button",onClick:R,label:D(k),ariaLabel:"".concat(h.default," section"),icon:w[k]}),(0,s.jsx)("span",{className:b("dx-share__measure"),"aria-hidden":"true",children:x.map(e=>(0,s.jsx)("span",{ref:t=>{P.current[e]=t},children:(0,s.jsx)(d.zx,{type:"button",label:D(e),icon:w[e]})},e))})]})}},81854:function(e,t,n){"use strict";n.d(t,{e:function(){return s}});var i=n(67294),r=n(43775),a=n(59119);function s(e,t){let{enabled:n,color:s,resplitKey:o}=t,[l,u]=(0,i.useState)(!n);return(0,i.useEffect)(()=>{var t;if(!n){u(!0);return}if(!e.current)return;r.ZP.registerPlugin(a.Z);let i=null,o=!1,l=()=>{!o&&e.current&&(i=a.Z.create(e.current,{type:"lines",linesClass:"dx-knockout--line dx-knockout--".concat(s),autoSplit:!0,aria:"none",onSplit:e=>{e.lines.forEach(e=>e.setAttribute("aria-hidden","true"))}}),e.current.classList.add("dx-knockout-split"),u(!0))};return"undefined"!=typeof document&&(null===(t=document.fonts)||void 0===t?void 0:t.status)==="loaded"?l():document.fonts.ready.then(l),()=>{var t;o=!0,null==i||i.revert(),null===(t=e.current)||void 0===t||t.classList.remove("dx-knockout-split"),u(!1)}},[n,s,o,e]),{ready:l}}},11810:function(e,t,n){"use strict";n.d(t,{NX:function(){return a},PF:function(){return s},RG:function(){return r}});var i=n(15799);let r=e=>(0,i.Ay)(e||"").replace(/`(.+?)`/g,'<span class="dx-verbatim">$1</span>'),a=e=>{let t=Array.isArray(e)?e[0]:e;if(t)return"var(--dx-".concat(t.replace("_","-"),")")},s=e=>Array.isArray(e)?e[0]:null!=e?e:void 0},98941:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return T}});var i=n(82729),r=n(85893),a=n(68806),s=n(67294),o=n(30775),l=n(4801),u=n(19845),c=n.n(u),d=n(76606),h=n(15799),f=n(9603),p=n(34764),m=n(39583),g=n(79867),v=n(29366),y=n(59527),_=n.n(y),b=n(43397),x=n(83177);function C(){let e=(0,i._)(["\n fragment DonateForm on FlexiblePageContentContentDonateFormLayout {\n eyebrow\n headline\n subhead\n formHeadline\n otherInputLabel\n minDonationError\n ctaLabel\n formAmounts {\n type\n ticketureId\n amount\n otherLabel\n }\n image {\n ...ACFMedia\n }\n }\n "]);return C=function(){return e},e}let E=c().bind(_()),w=e=>
13{let{formAmount:t,onClick:n,active:i}=e,{amount:a,otherLabel:s}=t,o=s?"other":a?a.toString():"",l=s||(a?"$".concat(a):"");return(0,r.jsx)(f.EU,{className:E("amount-button"),onClick:n,active:i,value:o,label:l})};function T(e){let{eyebrow:t,headline:n,subhead:i,formHeadline:a,ctaLabel:u,otherInputLabel:c,formAmounts:y,image:_,minDonationError:C}=e,T=(0,h.Ay)(n),[S,L]=(0,s.useState)(""),[P,M]=(0,s.useState)(""),[A,I]=(0,s.useState)(!1),[R,k]=(0,s.useState)(""),[D,N]=(0,s.useState)(""),{labels:F}=(0,x.i)(),O="other"===P,{isDesktop:j}=(0,m.dg)(),U=(0,s.useRef)(null),V=v.LL,B=j?V.lg.triggerPercent:V.sm.triggerPercent,H=(0,g.Y)(U,{amount:B,once:V.once}),G=(e,t)=>{N(""),M(e),k(t)},z=e=>{let{value:t}=e.target;N(""),L(null==t?void 0:t.replace(/[^0-9.]/g,"").replace(/(\..*?)\..*/g,"$1").replace(/^0[^.]/,"0"))},q=async e=>{var t;e.preventDefault(),N(""),I(!0);let n=await fetch("/api/tickets/donate/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({amount:O?S:P,ticketureId:R})}).then(e=>e.json());(null==n?void 0:n.success)&&(null==n?void 0:null===(t=n.data)||void 0===t?void 0:t.checkout_url)?window.location.href=n.data.checkout_url:"currency_amount_min_not_met"===n.message?N(C):N(null==F?void 0:F.genericFormError),I(!1)};return(0,r.jsx)("section",{className:E(["donate-form"]),ref:U,children:(0,r.jsx)(d.W2,{children:(0,r.jsx)(d.Lz,{isInView:H,children:(0,r.jsxs)("div",{className:E("row"),children:[(0,r.jsxs)("div",{className:E(["content-wrapper","col-12","col-lg-5"]),children:[(0,r.jsxs)("div",{className:E("copy"),children:[t&&(0,r.jsx)("p",{className:E("eyebrow-l","highlighted-text"),children:t}),T&&(0,r.jsx)(d.ZF,{tag:"h2",text:T,className:E("title-uc-l"),isRevealEnabled:!0,isInView:H}),i&&(0,r.jsx)("p",{className:E("subhead","text-l"),children:i})]}),(0,r.jsxs)("div",{className:E("form-wrapper"),children:[a&&(0,r.jsx)("h3",{className:E("form-headline","text-l"),children:a}),(0,r.jsxs)("form",{className:E("form"),onSubmit:q,children:[(0,r.jsx)(o.M,{children:A&&(0,r.jsx)(l.E.div,{className:E("form__loader"),initial:{opacity:0}
13,animate:{opacity:1},exit:{opacity:0},transition:{duration:.3,ease:b.hl},children:(0,r.jsx)(d.u7,{className:E("form__loader__loader")})})}),(0,r.jsx)("div",{className:E("amounts"),children:null==y?void 0:y.map((e,t)=>{var n,i,a;return(0,r.jsxs)(s.Fragment,{children:[(0,r.jsx)(w,{formAmount:e,onClick:t=>G(t,e.ticketureId),active:P===(null===(n=e.amount)||void 0===n?void 0:n.toString())||(null===(i=e.type)||void 0===i?void 0:i[0])==="other"&&"other"===P}),(null===(a=e.type)||void 0===a?void 0:a[0])==="other"&&(0,r.jsx)(l.E.div,{className:E("other-input-wrapper"),initial:{height:0},animate:{height:O?"auto":0},transition:{duration:.3,ease:b.hl},children:(0,r.jsx)(f.yt,{className:E("other-input"),name:"Other Amount",placeholder:c,value:S,min:1,step:.01,required:O,tabIndex:O?0:-1,onChange:z,width:"full"})})]},t)})}),(0,r.jsxs)("div",{className:E("form-bottom"),children:[(0,r.jsx)(o.M,{children:D&&(0,r.jsx)(l.E.p,{className:E("form-error","text-s"),initial:{opacity:0,y:"0%"},animate:{opacity:1,y:"-50%"},exit:{opacity:0,y:"0%"},transition:{duration:.3,ease:b.hl},children:D})}),(0,r.jsx)(d.zx,{className:E("submit-button"),type:"submit",label:u,disabled:!P||O&&!S,icon:p.Z})]})]})]})]}),(0,r.jsx)(d.Ee,{className:E(["image","col-12","col-lg-6"]),image:_})]})})})})}T.fragments={entry:(0,a.ZP)(C())}},68302:function(e,t,n){"use strict";n.d(t,{$:function(){return i.default}});var i=n(98941)},71639:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return L}});var i=n(82729),r=n(85893),a=n(68806),s=n(67294),o=n(79867),l=n(29366),u=n(39583),c=n(76606),d=n(44819),h=n(21782),f=n(94367),p=n(22372),m=n(15799),g=n(69065),v=n(95002),y=n(19845),_=n.n(y),b=n(82924),x=n.n(b);let C=_().bind(x()),E=e=>{let t,n,i,{data:a,index:d,single:h,featureType:f,disableParallax:y}=e,{log:_}=(0,p.q)({name:"FeatureItem_Option5",bgColor:"blue",textColor:"white",enabled:!1}),{body:b,ctaLabel:x,headline:E,linkType:w,pillLabel:T,image:S,hideTypePill:L,page:P}=a,M=null==P?void 0:P.node,A=(0,g.k)(P),[I]=w,R="external"===I,k=R?"external":null==A?void 0:A.key,D=R?T:null==A?void 0:A.label,N=!!(k&&D&&!L),F=(0,m.Cr)(a,!0),O=M&&"eventData"in M;O&&(t=M.eventData.startDate,n=M.eventData.endDate),O&&(i=(0,m.Y_)(t,n));let j=h?"title-lc-l":"title-lc-m",U=(0,s.useRef)(null),{isDesktop:V}=(0,u.dg)(),B=l.LL,H=V?B.lg.triggerPercent:B.sm.triggerPercent,G=(0,o.Y)(U,{amount:H,once:B.once}),z=l.LL.sm.delay,[q,W]=(0,s.useState)(!1),$=d%2!=0,Z=0;"columns"===f?Z=$?z:0:"bento"===f&&(Z=$?0:z);let[Y,K]=(0,s.useState)(!1),X=(0,s.useRef)(null);(0,s.useEffect)(()=>{let e;return G?e=setTimeout(()=>K(!0),1e3*Z):K(!1),()=>clearTimeout(e)},[G,Z]),(0,s.useEffect)(()=>{if(Y&&S&&!q){var e,t;W(!0);let n=V?B.lg.duration:B.sm.duration;_("InView - schedule ImageAnim reverse",n),null===(t=X.current)||void 0===t||null===(e=t.reverse)||void 0===e||e.call(t,n)}},[Y,S,q]);let Q=V?56:24;return _("Parallax setup",d,Q,U.current),(0,v.Z)({containerRef:U,start:"top bottom",startPx:-Q,endPx:Q,isEnabled:!y}),_("Render",d,U.current),(0,r.jsx)("div",{ref:U,className:C(["feature-item","feature-item--".concat(d),{single:h},"feature-item--alt","feature-item--option5"]),children:(0,r.jsx)(c.Lz,{isInView:Y,className:C("feature-item__reveal-wrapper"),children:(0,r.jsx)(c.Kl,{href:(null==F?void 0:F.url)||"#",target:(null==F?void 0:F.target)||void 0,className:C("feature-item__link"),
13children:(0,r.jsxs)("div",{className:C(["feature-item__content-wrapper"]),children:[(0,r.jsxs)("div",{className:C("image-wrapper"),children:[N&&(0,r.jsx)(c.eo,{type:k,className:C("type-pill"),copy:D}),(0,r.jsx)("div",{className:"".concat(C("image-inner-wrapper")," js-parallax"),children:(0,r.jsx)(c.Ee,{image:S})})]}),(0,r.jsxs)("div",{className:C("content"),children:[(0,r.jsx)("p",{className:C([j,"sub-headline"]),dangerouslySetInnerHTML:{__html:E}}),(0,r.jsxs)("div",{className:C("lower-content"),children:[(0,r.jsx)("p",{className:C("text-m","body"),children:b}),(0,r.jsxs)("div",{className:C("button-row"),children:[(0,r.jsx)(c.zx,{label:x}),i&&(0,r.jsx)("span",{className:C("date","pill"),children:i})]})]})]})]})})})})};var w=(0,s.memo)(E);function T(){let e=(0,i._)(["\n ","\n ","\n ","\n fragment Feature on FlexiblePageContentContentFeatureLayout {\n headline\n subhead\n float\n disableParallax\n items {\n hideTypePill\n body\n ctaLabel\n headline\n linkType\n sectionId\n pillLabel\n image {\n ...ACFMedia\n }\n externalLink\n page {\n node {\n __typename\n uri\n ... on Exhibit {\n ...ExhibitType\n }\n ... on Event {\n ...EventFragment\n }\n }\n }\n }\n }\n "]);return T=function(){return e},e}let S=_().bind(x());function L(e){let{log:t}=(0,p.q)({name:"Feature",bgColor:"lime",enabled:!1}),{items:n,float:i,headline:a,subhead:d,disableParallax:h}=e,f=n.length>2?"bento":"columns",m=!!(a||d),g=(0,s.useRef)(null),{isDesktop:v}=(0,u.dg)(),y=l.LL,_=v?y.lg.triggerPercent:y.sm.triggerPercent,b=(0,o.Y)(g,{amount:_,once:y.once});return t("Render",f,n.length,g.current),(0,r.jsx)("section",{className:S("feature"),ref:g,children:(0,r.jsxs)(c.W2,{children:[m&&(0,r.jsx)(c._q,{headline:a,subhead:d,subheadReveal:!0,isRevealEnabled:!0,isInView:b}),(0,r.jsx)("div",{className:S(["feature-row","row",f,{"is-odd":n.length%2!=0},{float:i}]),children:null==n?void 0:n.map((e,t)=>(0,r.jsx)(w,{single:1===n.length||n.length>2&&0===t,featureType:f,data:e,index:t,disableParallax:h},t))})]})})}L.fragments={entry:(0,a.ZP)(T(),d.ab,h.Q,f.dz)}},44654:function(e,t,n){"use strict";n.d(t,{L:function(){return i.default}});var i=n(71639)},2384:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return E}});var i=n(82729),r=n(85893),a=n(68806),s=n(76606),o=n(67294),l=n(79867),u=n(39583),c=n(29366),d=n(19845),h=n.n(d),f=n(15799),p=n(63978),m=n.n(p);let g=h().bind(m());function v(e){if(!("uri"in e))return null;let{uri:t,title:n,featuredEventImage:i,eventData:{startDate:a,endDate:o}}=e,l=(0,f.Y_)(a,o);return(0,r.jsxs)(s.Kl,{href:t,className:g("slide"),children:[(0,r.jsx)("div",{className:g("slide__image-wrapper"),children:(0,r.jsx)(s.Ee,{image:i})}),(0,r.jsx)("div",{className:g("slide__content"),children:(0,r.jsxs)("div",{className:g("info"),children:[(0,r.jsx)("h2",{className:g("title-lc-s","title"),children:n}),(0,r.jsx)("p",{className:g("pill"),children:l})]})})]})}var y=n(47279);let _=h().bind(m());function b(e){let{events:t,cta:n}=e,i=(0,o.useRef)(null);return(0,o.useEffect)(()=>{i.current&&(i.current.querySelectorAll(".splide__list").forEach(e=>{e.setAttribute("role","list")}),i.current.querySelectorAll(".splide__slide").forEach(e=>{e.setAttribute("role","listitem")}))},[]),(0,r.jsx)("div",{ref:i,children:(0,r.jsxs)(y.tv,{hasTrack:!1,options:{type:"slide",arrows:!0,pagination:!0,speed:500,flickMaxPages:1,flickPower:250,updateOnMove:!0,perPage:1,perMove:1,fixedWidth:"90%",gap:"3rem",padding:{left:"5rem",right:"5rem"},breakpoints:{1025:{gap:"3rem",padding:{left:"4rem",right:"4rem"},arrows:!1},769:{perPage:1,perMove:1,fixedWidth:"100%",gap:"2rem",padding:{left:"2rem",right:"2rem"}}}},children:[(0,r.jsx)(y.Gj,{children:t.nodes.map((e,t)=>(0,r.jsx)(y.jw,{"aria-label":e.title,children:(0,r.jsx)(v,{...e})},t))}),(0,r.jsx)(s.W2,{className:_("carousel-pagination"),children:(0,r.jsx)(s.Jj,{cta:n})})]})})}function x(){let e=(0,i._)(["\n fragment FeatureEvents on FlexiblePageContentContentFeatureEventsLayout {\n headline\n subhead\n cta {\n linkType\n externalLink\n label\n page {\n node {\n uri\n }\n }\n }\n events {\n nodes {\n ... on Event {\n ...EventFragment\n }\n }\n }\n }\n "]);return x=function(){return e},e}let C=h().bind(m());function E(e){let{headline:t,subhead:n,events:i}=e,a=null==i?void 0:i.nodes;if(!a)return;let d=1===a.length,h=(0,o.useRef)(null),{isDesktop:f}=(0,u.dg)(),p=c.LL,m=f?p.lg.triggerPercent:p.sm.triggerPercent,g=(0,l.Y)(h,{amount:m,once:p.once}),y=!0;return(0,r.jsx)("section",{className:C(["feature-events"]),ref:h,children:(0,r.jsxs)(s.Lz,{isInView:g,children:[t&&(0,r.jsx)(s.W2,{children:(0,r.jsx)(s._q,{headline:t,subhead:n,isRevealEnabled:y,isInView:g})}),d?(0,r.jsx)(s.W2,{children:(0,r.jsx)(v,{...i.nodes[0]})}):(0,r.jsx)(b,{...e})]})})}E.fragments={entry:(0,a.ZP)(x())}},83061:function(e,t,n){"use strict";n.d(t,{S:function(){return i.default}});var i=n(2384)},22479:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return I}});var i=n(82729),r=n(85893),a=n(68806),s=n(94367),o=n(58400),l=n(98017),u=n(19845),c=n.n(u),d=n(79867),h=n(29366),f=n(31853),p=n(67294),m=n(47279),g=n(76606),v=n(39583),y=n(4801),_=n(66432),b=n(69065),x=n(22372),C=n(87048),E=n(46258),w=n.n(E),T=n(83177);let S=c().bind(w());function L(e){let{exhibit:t,canPlay:n,active:i,index:a,isRevealEnabled:s,isInView:o}=e,{mediaType:l,title:u,node:c,image:f,videoUrl:E,excerpt:w,uri:L,videoThumbnail:P,linkTarget:M,labelOverride:A}=t,{labels:I}=(0,T.i)(),R=(0,p.useRef)(null),k=(0,p.useRef)(null),D=(0,p.useRef)(null),N=(0,d.Y)(R,{once:h.LL.once,amount:.1}),F=(0,d.Y)(k,{once:h.LL.once,amount:.1}
13),O="video"===l,j=(0,b.k)({node:c}),U=A||(null==I?void 0:I.exhibitCarouselCta),{isDesktop:V,isReady:B}=(0,v.dg)(),{mounted:H}=(0,C.F)(),[G,z]=(0,p.useState)(!1),q=(0,p.useRef)(!1),{log:W}=(0,x.q)({name:"CarouselExhibitSlide",bgColor:"lightgreen",enabled:!1}),$=(0,p.useMemo)(()=>o&&i,[o,i]),Z=L?g.Kl:"div";(0,p.useEffect)(()=>{$&&!q.current&&(q.current=!0)},[$]),(0,p.useEffect)(()=>{H&&B&&V&&i&&F&&L?z(!0):z(!1)},[H,B,V,i,F,L]);let Y=h.LL.sm.distance,K=h.LL.opacity,X=h.LL.ease,Q=h.LL.sm.duration,J=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return{initial:s?{opacity:K,y:Y}:{},animate:($||q.current)&&s?{opacity:1,y:0}:{},transition:{duration:Q,ease:X,delay:e}}};return(0,p.useEffect)(()=>{N&&O&&R.current&&(R.current.src=E||"")},[N,R]),(0,p.useEffect)(()=>{var e,t;i&&n?null===(e=R.current)||void 0===e||e.play():null===(t=R.current)||void 0===t||t.pause()},[n,i]),(0,r.jsx)(m.jw,{className:S("slide"),"aria-label":u,children:(0,r.jsxs)(Z,{href:L,target:M||"_self",className:S("container"),ref:D,children:[(0,r.jsxs)("div",{className:S("container-top"),ref:k,children:[O?(0,r.jsx)("video",{className:S("video"),loop:!0,muted:!0,playsInline:!0,poster:(0,_.r5)(null==P?void 0:P.node.mediaItemUrl),ref:R}):(0,r.jsx)(g.Ee,{className:S("image"),image:f}),(0,r.jsxs)("div",{className:S("container-top-content"),children:[j&&(0,r.jsx)(y.E.div,{...J(0),children:(0,r.jsx)(g.eo,{className:S("pill"),type:j.key,copy:j.label})}),(0,r.jsx)("div",{className:S("headline-wrapper"),children:(0,r.jsx)(g.ZF,{tag:"h3",text:u,className:S(["display-xl","slide-headline"]),isRevealEnabled:s,isInView:$||q.current,animInDelay:.1,isCenterAlign:!0,maxCharsPerWord:12})})]}),L&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(y.E.div,{className:S("learn-more"),...J(.3),children:(0,r.jsx)(g.zx,{ariaLabel:u,label:U,asDiv:!0,collapseOnMobile:!0})}),H&&B&&V&&(0,r.jsx)(g.PZ,{container:D,circleText:U,isVisible:G,mouseActive:G})]})]}),(0,r.jsx)(y.E.div,{className:S("container-bottom"),...J(.2),children:(0,r.jsx)("p",{className:S("text-m","copy"),dangerouslySetInnerHTML:{__html:w}})})]})})}let P=c().bind(w());function M(e){let{exhibits:t,headline:n,subhead:i,cta:a}=e,s=!!(n||i),o=(0,p.useRef)(null),u=(0,p.useRef)(null),c=(0,p.useRef)(null),[y,_]=(0,p.useState)(0),[b,x]=(0,p.useState)(!1),C=t.map(e=>(0,l.A)(e)).filter(Boolean),{isDesktop:E}=(0,v.dg)(),w=h.LL,T=E?w.lg.triggerPercent:w.sm.triggerPercent,S=(0,d.Y)(u,{amount:T,once:w.once}),M=!0,A=()=>{if(c.current){let{index:e}=c.current.splide;_(e)}};(0,p.useEffect)(()=>{(0,f.xF)()||x(S)},[S]);let I={type:"slide",arrows:!0,pagination:!0,perPage:1,perMove:1,speed:500,updateOnMove:!0,fixedWidth:"100%",gap:"3rem",padding:{left:"5rem",right:"5rem"},breakpoints:{1921:{fixedWidth:"91.5%",gap:"3rem",padding:{left:"5rem",right:"5rem"}},1025:{padding:{left:"4rem",right:"4rem"},arrows:!1},769:{fixedWidth:"100%",gap:"2rem",padding:{left:"2rem",right:"2rem"}}}};return(0,p.useEffect)(()=>{u.current&&(u.current.querySelectorAll(".splide__list").forEach(e=>{e.setAttribute("role","list")}),u.current.querySelectorAll(".splide__slide").forEach(e=>{e.setAttribute("role","listitem")}))},[]),(0,r.jsx)("section",{className:P(["carousel-exhibits-interactives"]),ref:u,children:(0,r.jsxs)(g.Lz,{isInView:S,children:[s&&(0,r.jsx)(g.W2,{children:(0,r.jsx)(g._q,{headline:n,subhead:i,isRevealEnabled:M,isInView:S})}),(0,r.jsx)("div",{children:(0,r.jsxs)(m.tv,{className:P("splide"),ref:c,options:I,onMoved:A,hasTrack:!1,children:[(0,r.jsx)(m.Gj,{children:C.map((e,t)=>(0,r.jsx)(L,{canPlay:b,active:t===y,exhibit:e,index:t,isRevealEnabled:M,isInView:S},t))}),(0,r.jsx)(g.W2,{className:P("bottom"),children:(0,r.jsx)(g.Jj,{ref:o,cta:a})})]})})]})})}function A(){let e=(0,i._)(["\n ","\n fragment FeatureExhibitsInteractives on FlexiblePageContentContentFeatureExhibitsInteractivesLayout {\n headline\n subhead\n cta {\n label\n linkType\n externalLink\n page {\n node {\n uri\n }\n }\n }\n exhibits {\n type\n labelOverride\n exhibit {\n node {\n ...ExhibitFragment\n }\n }\n manualExhibit {\n headline\n excerpt\n mediaType\n videoUrl\n exhibitType\n link {\n linkType\n externalLink\n sectionId\n page {\n node {\n uri\n }\n }\n }\n image {\n ...ACFMedia\n }\n videoThumbnail {\n ...ACFMedia\n }\n }\n }\n }\n "]);return A=function(){return e},e}function I(e){let{exhibits:t,headline:n}=e,i=(null==t?void 0:t.length)===1;return(0,r.jsx)(r.Fragment,{children:i?(0,r.jsx)(o.z,{exhibit:(0,l.A)(t[0]),headline:n}):(0,r.jsx)(M,{...e})})}I.fragments={entry:(0,a.ZP)(A(),s.U9)}},58400:function(e,t,n){"use strict";n.d(t,{z:function(){return v}});var i=n(85893),r=n(67294),a=n(66432),s=n(19845),o=n.n(s),l=n(15799),u=n(76606),c=n(79867),d=n(39583),h=n(87048),f=n(55115),p=n.n(f),m=n(83177);let g=o().bind(p());function v(e){let{exhibit:t,headline:n,largeTitle:s,pillLabel:o}=e,{labels:f}
13=(0,m.i)(),p=(0,r.useRef)(null),v=(0,r.useRef)(null),y=(0,c.Y)(p,{amount:.25}),_=(0,c.Y)(v,{amount:.25}),b=(0,r.useRef)(null),x=(0,r.useRef)(!1),{title:C,mediaType:E,videoThumbnail:w,videoUrl:T,image:S,excerpt:L,uri:P,linkTarget:M,labelOverride:A}=t||{},I="video"===E,R=(0,l.Ay)(n),k=A||(null==f?void 0:f.exhibitCarouselCta),D=P?u.Kl:"div",{isDesktop:N,isReady:F}=(0,d.dg)(),{mounted:O}=(0,h.F)(),[j,U]=(0,r.useState)(!1),V=(0,r.useRef)(!1),B=!0,H=(0,r.useMemo)(()=>_,[_]);return(0,r.useEffect)(()=>{H&&!V.current&&(V.current=!0)},[H]),(0,r.useEffect)(()=>{var e,t;y&&!x.current&&I&&p.current&&(x.current=!0,p.current.src=T),y?null===(e=p.current)||void 0===e||e.play():null===(t=p.current)||void 0===t||t.pause()},[y]),(0,r.useEffect)(()=>{O&&F&&N&&_&&P?U(!0):U(!1)},[O,F,N,_,P]),(0,i.jsx)("section",{className:g(["feature-exhibits-interactives"]),children:(0,i.jsxs)(u.W2,{children:[R&&(0,i.jsx)(u.W2,{className:g("headline"),children:(0,i.jsx)("h3",{className:g([s?"title-uc-xl":"title-uc-l"]),dangerouslySetInnerHTML:{__html:R}})}),(0,i.jsxs)(D,{href:P||"",target:M||"_self",className:g("slide"),ref:b,children:[(0,i.jsxs)("div",{className:g("container"),ref:v,children:[(0,i.jsxs)("div",{className:g("container-top"),children:[I?(0,i.jsx)("video",{className:g("video"),loop:!0,muted:!0,playsInline:!0,ref:p,poster:(0,a.r5)(w.node.mediaItemUrl)}):(0,i.jsx)(u.Ee,{className:g("image"),image:S}),(0,i.jsxs)("div",{className:g("container-top-content"),children:[o&&(0,i.jsx)(u.eo,{className:g("pill",{"is-new":o}),type:"new",copy:o}),(0,i.jsx)("div",{className:g("headline-wrapper"),children:(0,i.jsx)(u.ZF,{tag:"h3",text:C,className:g(["display-xl","slide-headline"]),isRevealEnabled:B,isInView:H||V.current,animInDelay:.1,isCenterAlign:!0,maxCharsPerWord:12})})]}),(0,i.jsx)("div",{className:g("learn-more"),children:(0,i.jsx)(u.zx,{label:k,asDiv:!0,collapseOnMobile:!0})})]}),(0,i.jsx)("div",{className:g("container-bottom"),children:(0,i.jsx)("p",{className:g("text-m","copy"),dangerouslySetInnerHTML:{__html:L}})})]}),P&&F&&N&&(0,i.jsx)(u.PZ,{container:b,circleText:k,isVisible:j,mouseActive:j})]})]})})}},45621:function(e,t,n){"use strict";n.d(t,{y:function(){return i.default}});var i=n(22479)},98017:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});var i=n(15799);let r=(e,t)=>{switch(null==e?void 0:e.__typename){case"Exhibit":{let{exhibitData:n,title:i,uri:r}=e,{exhibitMedia:{mediaType:a,videoThumbnail:s,videoUrl:o,image:l},excerpt:u}=n;return{title:(null==n?void 0:n.cardTitle)||i,mediaType:a[0],node:{...e,__typename:"Exhibit"},excerpt:u,labelOverride:t,image:l,videoUrl:o,videoThumbnail:s,uri:r}}case"FeatureExhibitsInteractivesExhibits":{var n;let{type:t,labelOverride:a}=e;if("manual"===t[0]){let t;let{headline:n,link:r,excerpt:s,mediaType:o,videoUrl:l,image:u,videoThumbnail:c,exhibitType:d}=e.manualExhibit,[h]=d||[],f=(0,i.Cr)(r,!0);return"exhibit"===h?t={__typename:"Exhibit"}:h&&(t={__typename:"Exhibit",exhibitTypes:{nodes:[{slug:h}]}}),{title:n||"",mediaType:o[0],uri:null==f?void 0:f.url,linkTarget:null==f?void 0:f.target,labelOverride:a,node:t,excerpt:s,image:u,videoUrl:l,videoThumbnail:c}}if((null==e?void 0:null===(n=e.exhibit)||void 0===n?void 0:n.node)&&"Exhibit"===e.exhibit.node.__typename)return r(e.exhibit.node,a)}default:return}}},19872:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return _}});var i=n(82729),r=n(85893),a=n(68806),s=n(67294),o=n(76606),l=n(43775),u=n(34715),c=n(95002),d=n(79867),h=n(39583),f=n(29366),p=n(93983),m=n.n(p),g=n(19845);function v(){let e=(0,i._)(["\n fragment FloatSpotlight on FlexiblePageContentContentFloatSpotlightLayout {\n eyebrow\n headline\n smallText\n cta {\n linkType\n externalLink\n label\n page {\n node {\n uri\n }\n }\n }\n secondaryCta {\n linkType\n externalLink\n label\n page {\n node {\n uri\n }\n }\n }\n images {\n topLeft {\n ...ACFMedia\n }\n top {\n ...ACFMedia\n }\n topRight {\n ...ACFMedia\n }\n bottomLeft {\n ...ACFMedia\n }\n bottomRight {\n ...ACFMedia\n }\n }\n }\n "]);return v=function(){return e},e}let y=n.n(g)().bind(m());function _(e){var t,n,i,a,p,m;let{eyebrow:g,headline:v,cta:_,images:b,smallText:x,secondaryCta:C}=e,E=_&&_.label&&((null===(t=_.page)||void 0===t?void 0:t.node)||_.externalLink),w=C&&(null==C?void 0:C.label)&&((null==C?void 0:null===(n=C.page)||void 0===n?void 0:n.node)||(null==C?void 0:C.externalLink)),[T]=(null==_?void 0:_.linkType)||[],[S]=(null==C?void 0:C.linkType)||[],L=E||w,P=x?"title-lc-m":"title-lc-l",M=(0,s.useRef)(null),A=(0,s.useRef)(null),I=(0,s.useRef)(null),R=(0,s.useRef)(null),k=(0,s.useRef)(null),D=(0,s.useRef)({}),N={topLeft:2.5,top:2,topRight:3,bottomLeft:3,bottomRight:1.5};(0,c.Z)({containerRef:M,distancePx:9999,isEnabled:!0,start:"top bottom",end:"bottom top"});let F=72,{isDesktop:O}=(0,h.dg)(),j=f.LL,U=.35,V=(0,d.Y)(M,{amount:U,once:j.once});return(0,u.V)(()=>{k.current&&k.current.kill(),k.current=l.ZP.timeline({paused:!0}).add("start");let e=k.current,t=.7,n=b?Object.entries(b).filter(e=>{let[t,n]=e;return"object"==typeof n}):[];if(n.length>0){let i=n.map(e=>{let[t]=e;return D.current[t]}
13).filter(Boolean);e.add("images-in"),e.fromTo(i,{opacity:0,y:"2rem",scale:.98},{opacity:1,y:0,scale:1,duration:t,ease:"power3.out",stagger:{each:.08,from:"start"}},"images-in")}A.current&&e.fromTo(A.current,{opacity:0,y:"0.6rem"},{opacity:1,y:0,duration:.6*t,ease:"power3.out"},"start+=0.1"),I.current&&e.fromTo(I.current,{opacity:0,y:"1.2rem"},{opacity:1,y:0,duration:t,ease:"power3.out"},"start+=0.3"),R.current&&e.fromTo(R.current,{opacity:0,y:"1rem"},{opacity:1,y:0,duration:.8*t,ease:"power3.out"},"start+=0.6")},[b,g,v,_,C]),(0,s.useEffect)(()=>{let e=k.current;e&&V&&(e.restart(),e.play())},[V]),(0,r.jsxs)("section",{className:y(["float-spotlight"]),ref:M,children:[(0,r.jsx)(o.W2,{className:y(["container"]),children:(0,r.jsxs)("div",{className:y(["content"]),children:[(0,r.jsx)("p",{className:y(["eyebrow-l","eyebrow"]),ref:A,children:g}),(0,r.jsx)("p",{className:y([P,"headline"]),ref:I,children:v}),L&&(0,r.jsxs)("div",{className:y(["button-wrapper"]),ref:R,children:[E&&(0,r.jsx)(o.zx,{className:y(["cta"]),url:"external"===T?_.externalLink:null===(a=_.page)||void 0===a?void 0:null===(i=a.node)||void 0===i?void 0:i.uri,label:_.label}),w&&(0,r.jsx)(o.zx,{className:y(["secondary-cta"]),url:"external"===S?C.externalLink:null===(m=C.page)||void 0===m?void 0:null===(p=m.node)||void 0===p?void 0:p.uri,label:C.label})]})]})}),(0,r.jsxs)("div",{className:y(["image-container"]),children:[b&&Object.keys(b).length>0&&Object.entries(b).map(e=>{var t,n;let[i,a]=e;if("object"!=typeof a)return null;let s=Math.max(2,F*(null!==(t=N[i])&&void 0!==t?t:1.5));return(0,r.jsx)("div",{className:y(["image","image--".concat(i)]),ref:e=>{D.current[i]=e},"data-speed":null!==(n=N[i])&&void 0!==n?n:1.5,children:(0,r.jsx)(o.Ee,{image:a,className:"js-parallax","data-end-px":-s,"data-start-px":s})},i)}),(0,r.jsx)("div",{className:y(["image-wrapper-overlay"])})]})]})}_.fragments={entry:(0,a.ZP)(v())}},99375:function(e,t,n){"use strict";n.d(t,{l:function(){return i.default}});var i=n(19872)},9603:function(e,t,n){"use strict";n.d(t,{AT:function(){return C},yt:function(){return S},EU:function(){return f}});var i,r,a,s,o=n(85893),l=n(19845),u=n.n(l),c=n(79144),d=n.n(c);let h=u().bind(d());function f(e){let{active:t,label:n,onClick:i,value:r,className:a}=e;return(0,o.jsxs)("button",{className:h(["radio-button",a,{active:t}]),type:"button",onClick:()=>i(r||n),children:[(0,o.jsx)("span",{className:h("circle")}),(0,o.jsx)("p",{className:"text-m",children:n})]})}var p=n(67294);function m(){return(m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var g=function(e){return p.createElement("svg",m({viewBox:"0 0 13 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i||(i=p.createElement("g",{clipPath:"url(#clip0_5569_45851)"},p.createElement("path",{d:"M0.429303 4.99843L12.5707 4.99981L12.5707 6.9996L0.429303 6.99822L0.429303 4.99843Z",fill:"currentColor"}),p.createElement("path",{d:"M7.50058 -0.0716819L7.4992 12.0697L5.49942 12.0697L5.5008 -0.0716821L7.50058 -0.0716819Z",fill:"currentColor"}))),r||(r=p.createElement("defs",null,p.createElement("clipPath",{id:"clip0_5569_45851"},p.createElement("rect",{width:12,height:12,fill:"white",transform:"translate(0.5)"})))))};function v(){return(v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var y=function(e){return p.createElement("svg",v({viewBox:"0 0 13 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a||(a=p.createElement("g",{clipPath:"url(#clip0_5569_45846)"},p.createElement("path",{d:"M0.429993 4.99774L12.5714 4.99912L12.5714 6.99891L0.429993 6.99753L0.429993 4.99774Z",fill:"currentColor"}))),s||(s=p.createElement("defs",null,p.createElement("clipPath",{id:"clip0_5569_45846"},p.createElement("rect",{width:12,height:12,fill:"white",transform:"translate(0.5)"})))))},_=n(30104),b=n.n(_);let x=u().bind(b());function C(e){let{count:t,onIncrement:n,onDecrement:i,disabled:r}=e;return(0,o.jsxs)("div",{className:x("counter"),children:[(0,o.jsx)("button",{className:x("counter__button"),type:"button",onClick:i,disabled:r||t<=0,children:(0,o.jsx)(y,{className:x("icon")})}),(0,o.jsx)("span",{className:x("counter__count","text-m"),children:t}),(0,o.jsx)("button",{className:x(["counter__button","inc"]),type:"button",onClick:n,disabled:r,children:(0,o.jsx)(g,{className:x("icon")})})]})}var E=n(87577),w=n.n(E);let T=u().bind(w());function S(e){let{name:t,type:n,placeholder:i,className:r,value:a,onChange:s,tabIndex:l,required:u=!0,width:c,pattern:d,min:h,max:f,step:p}=e;return(0,o.jsxs)("div",{className:T(["form-input",c,r]),children:[(0,o.jsx)("label",{htmlFor:t,className:T("tag-s","form-eyebrow",{show:!!a}),children:i}),(0,o.jsx)("input",{className:T("input","text-m",{filled:!!a}),type:null!=n?n:"text",name:t,min:h,max:f,step:p,id:t,tabIndex:l,pattern:d,required:u,onChange:s,placeholder:i,value:a})]})}},67438:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p}});var i=n(82729),r=n(85893),a=n(68806),s=n(19845),o=n.n(s),l=n(67294),u=n(76606),c=n(97777),d=n.n(c);function h(){let e=(0,i._)(["\n fragment FormEmbed on FlexiblePageContentContentFormEmbedLayout {\n headline\n subhead\n body\n formId\n }\n "]);return h=function(){return e},e}let f=o().bind(d());function p(e){let{headline:t,subhead:n,body:i,formId:a}=e,s=(0,l.useRef)(null),o="https://sfapi.formstack.io/FormEngine/Scripts/Main.js?d=".concat(a);return(0,l.useEffect)(()=>{var e;let t=document.createElement("script");return t.src=o,t.async=!0,t.id="jsFastForms",null===(e=s.current)||void 0===e||e.appendChild(t),()=>{delete window.executeDefaultFormLoad,window.fsFormEngine&&delete window.fsFormEngine.formContainerId}},[o]),(0,r.jsx)("section",{className:f("form-embed"),children:(0,r.jsxs)(u.W2,{children:[t&&(0,r.jsx)(u._q,{headline:t}),(0,r.jsxs)("div",{className:f("content"),children:[(0,r.jsxs)("div",{className:f("intro"),children:[n&&(0,r.jsx)("h3",{className:f("subhead","title-lc-m"),children:n}),i&&(0,r.jsx)("div",{className:f("body","text-l","rich-text"),dangerouslySetInnerHTML:{__html:i}})]}),(0,r.jsx)("div",{className:f("form"),children:(0,r.jsx)("div",{ref:s})})]})]})})}p.fragments={entry:(0,a.ZP)(h())}},35871:function(e,t,n){"use strict";n.d(t,{Y:function(){return i.default}});var i=n(67438)},8477:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return f}});var i=n(82729),r=n(85893),a=n(68806),s=n(19845),o=n.n(s),l=n(76606),u=n(97096),c=n.n(u);function d(){let e=(0,i._)(["\n fragment GenericEmbed on FlexiblePageContentContentGenericEmbedLayout {\n label\n url\n }\n "]);return d=function(){return e},e}let h=o().bind(c());function f(e){let{url:t,label:n}=e;return(0,r.jsx)("section",{className:h(["generic-embed"]),children:(0,r.jsx)(l.W2,{children:(0,r.jsx)("div",{className:h("embed-responsive"),children:(0,r.jsx)("iframe",{title:n||"Embedded content",src:t,frameBorder:"0",allowFullScreen:!0})})})})}f.fragments={entry:(0,a.ZP)(d())}},41289:function(e,t,n){"use strict";n.d(t,{k:function(){return i.default}});var i=n(8477)},80115:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return f}});var i=n(82729),r=n(85893),a=n(68806),s=n(19845),o=n.n(s),l=n(76606),u=n(60432),c=n.n(u);function d(){let e=(0,i._)(["\n fragment GoogleMap on FlexiblePageContentContentGoogleMapLayout {\n headline\n subhead\n mapEmbedUrl\n includeFooter\n footer {\n text\n ctas {\n linkType\n label\n externalLink\n page {\n node {\n uri\n }\n }\n }\n }\n }\n "]);return d=function(){return e},e}let h=o().bind(c());function f(e){let{headline:t,subhead:n,includeFooter:i,footer:a,mapEmbedUrl:s}=e,o=!!(t||n);return s?(0,r.jsx)("section",{className:h(["google-map"]),children:(0,r.jsxs)(l.W2,{className:h("container"),children:[o&&(0,r.jsx)(l._q,{headline:t,subhead:n}),s&&(0,r.jsx)("iframe",{src:s,className:h("google-map__map"),style:{border:0},allowFullScreen:!1,loading:"lazy",title:"Map - ".concat(null==t?void 0:t.replace(/\*\*/g,""))}),i&&(0,r.jsx)(l.qP,{text:a.text,ctas:a.ctas})]})}):null}f.fragments={entry:(0,a.ZP)(d())}},81060:function(e,t,n){"use strict";n.d(t,{b:function(){return i.default}});var i=n(80115)},10525:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return x}});var i=n(85893),r=n(67294),a=n(76606),s=n(15799),o=n(82729);function l(){let e=(0,o._)(["\n fragment GridInductees on FlexiblePageContentContentGridInducteesLayout {\n headline\n colorOverride\n cta {\n linkType\n label\n externalLink\n page {\n node {\n uri\n }\n }\n }\n }\n"]);return l=function(){return e},e}let u=(0,n(68806).Ps)(l());var c=n(83177),d=n(79867),h=n(39583),f=n(29366),p=n(22372),m=n(19845),g=n.n(m),v=n(81067),y=n.n(v);let _=g().bind(y()),b=e=>{let t=(0,s.b6)({nodes:e}),n=t.length>=12?12:8;return[...t].sort(()=>.5-Math.random()).slice(0,n)};function x(e){let{log:t}=(0,p.q)({name:"GridInductees",bgColor:"cyan",enabled:!1}),{featuredInductees:n}=(0,c.i)(),{headline:o,cta:l,colorOverride:u,inductees:m}=e,g=(null==u?void 0:u[0])||"",v=(0,s.Ay)(o),y=(0,s.Cr)(l),[x,C]=(0,r.useState)([]),[E,w]=(0,r.useState)({});(0,r.useEffect)(()=>{C(b(m||n.nodes))},[n]),(0,r.useEffect)(()=>{w({"--highlight-color":g})},[g]);let T=(0,r.useRef)(null),{isDesktop:S}=(0,h.dg)(),L=f.LL,P=S?L.lg.triggerPercent:L.sm.triggerPercent,M=(0,d.Y)(T,{amount:P,once:L.once}),A=!0;return(0,i.jsx)("section",{className:_(["grid-inductees"]),style:E,ref:T,children:(0,i.jsx)(a.Lz,{isInView:M,children:(0,i.jsxs)(a.W2,{className:_(["container"]),children:[(0,i.jsx)(a.ZF,{tag:"h2",text:v,className:_(["title-uc-l"]),isRevealEnabled:A,isInView:M}),(0,i.jsx)("div",{className:_("grid"),children:x.map((e,t)=>(0,i.jsx)("div",{className:_("inductee-item"),children:(0,i.jsx)(a.i3,{inductee:e})},t))}
13),y&&(0,i.jsx)("div",{className:_("cta"),children:(0,i.jsx)(a.zx,{...y})})]})})})}x.fragments={entry:u}},69764:function(e,t,n){"use strict";n.d(t,{g:function(){return i.default}});var i=n(10525)},88034:function(e,t,n){"use strict";let i;n.r(t),n.d(t,{default:function(){return uq}});var r=n(82729),a=n(85893),s=n(68806),o=n(67294);let l="177",u=0,c=1,d=2,h=1,f=2,p=3,m=0,g=1,v=2,y=0,_=1,b=2,x=3,C=4,E=5,w=100,T=101,S=102,L=103,P=104,M=200,A=201,I=202,R=203,k=204,D=205,N=206,F=207,O=208,j=209,U=210,V=211,B=212,H=213,G=214,z=0,q=1,W=2,$=3,Z=4,Y=5,K=6,X=7,Q=0,J=1,ee=2,et=0,en=1,ei=2,er=3,ea=4,es=5,eo=6,el=7,eu=300,ec=301,ed=302,eh=303,ef=304,ep=306,em=1e3,eg=1001,ev=1002,ey=1003,e_=1004,eb=1005,ex=1006,eC=1007,eE=1008,ew=1009,eT=1010,eS=1011,eL=1012,eP=1013,eM=1014,eA=1015,eI=1016,eR=1017,ek=1018,eD=1020,eN=35902,eF=1021,eO=1022,ej=1023,eU=1026,eV=1027,eB=1028,eH=1029,eG=1030,ez=1031,eq=1033,eW=33776,e$=33777,eZ=33778,eY=33779,eK=35840,eX=35841,eQ=35842,eJ=35843,e0=36196,e1=37492,e2=37496,e3=37808,e5=37809,e4=37810,e6=37811,e8=37812,e7=37813,e9=37814,te=37815,tt=37816,tn=37817,ti=37818,tr=37819,ta=37820,ts=37821,to=36492,tl=36494,tu=36495,tc=36283,td=36284,th=36285,tf=36286,tp=2300,tm=2301,tg=2302,tv=2400,ty=2401,t_=2402,tb=3200,tx=3201,tC=0,tE=1,tw="",tT="srgb",tS="srgb-linear",tL="linear",tP="srgb",tM=7680,tA=519,tI=512,tR=513,tk=514,tD=515,tN=516,tF=517,tO=518,tj=519,tU=35044,tV="300 es",tB=2e3,tH=2001;class tG{addEventListener(e,t){void 0===this._listeners&&(this._listeners={});let n=this._listeners;void 0===n[e]&&(n[e]=[]),-1===n[e].indexOf(t)&&n[e].push(t)}hasEventListener(e,t){let n=this._listeners;return void 0!==n&&void 0!==n[e]&&-1!==n[e].indexOf(t)}removeEventListener(e,t){let n=this._listeners;if(void 0===n)return;let i=n[e];if(void 0!==i){let e=i.indexOf(t);-1!==e&&i.splice(e,1)}}dispatchEvent(e){let t=this._listeners;if(void 0===t)return;let n=t[e.type];if(void 0!==n){e.target=this;let t=n.slice(0);for(let n=0,i=t.length;n<i;n++)t[n].call(this,e);e.target=null}}}let tz=["00","01","02","03","04","05","06","07","08","09","0a","0b","0c","0d","0e","0f","10","11","12","13","14","15","16","17","18","19","1a","1b","1c","1d","1e","1f","20","21","22","23","24","25","26","27","28","29","2a","2b","2c","2d","2e","2f","30","31","32","33","34","35","36","37","38","39","3a","3b","3c","3d","3e","3f","40","41","42","43","44","45","46","47","48","49","4a","4b","4c","4d","4e","4f","50","51","52","53","54","55","56","57","58","59","5a","5b","5c","5d","5e","5f","60","61","62","63","64","65","66","67","68","69","6a","6b","6c","6d","6e","6f","70","71","72","73","74","75","76","77","78","79","7a","7b","7c","7d","7e","7f","80","81","82","83","84","85","86","87","88","89","8a","8b","8c","8d","8e","8f","90","91","92","93","94","95","96","97","98","99","9a","9b","9c","9d","9e","9f","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","aa","ab","ac","ad","ae","af","b0","b1","b2","b3","b4","b5","b6","b7","b8","b9","ba","bb","bc","bd","be","bf","c0","c1","c2","c3","c4","c5","c6","c7","c8","c9","ca","cb","cc","cd","ce","cf","d0","d1","d2","d3","d4","d5","d6","d7","d8","d9","da","db","dc","dd","de","df","e0","e1","e2","e3","e4","e5","e6","e7","e8","e9","ea","eb","ec","ed","ee","ef","f0","f1","f2","f3","f4","f5","f6","f7","f8","f9","fa","fb","fc","fd","fe","ff"],tq=Math.PI/180,tW=180/Math.PI;function t$(){let e=4294967295*Math.random()|0,t=4294967295*Math.random()|0,n=4294967295*Math.random()|0,i=4294967295*Math.random()|0;return(tz[255&e]+tz[e>>8&255]+tz[e>>16&255]+tz[e>>24&255]+"-"+tz[255&t]+tz[t>>8&255]+"-"+tz[t>>16&15|64]+tz[t>>24&255]+"-"+tz[63&n|128]+tz[n>>8&255]+"-"+tz[n>>16&255]+tz[n>>24&255]+tz[255&i]+tz[i>>8&255]+tz[i>>16&255]+tz[i>>24&255]).toLowerCase()}function tZ(e,t,n){return Math.max(t,Math.min(n,e))}function tY(e,t){return(e%t+t)%t}function tK(e,t,n){return(1-n)*e+n*t}function tX(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return e/4294967295;case Uint16Array:return e/65535;case Uint8Array:return e/255;case Int32Array:return Math.max(e/2147483647,-1);case Int16Array:return Math.max(e/32767,-1);case Int8Array:return Math.max(e/127,-1);default:throw Error("Invalid component type.")}}function tQ(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return Math.round(4294967295*e);case Uint16Array:return Math.round(65535*e);case Uint8Array:return Math.round(255*e);case Int32Array:return Math.round(2147483647*e);case Int16Array:return Math.round(32767*e);case Int8Array:return Math.round(127*e);default:throw Error("Invalid component type.")}}class tJ{constructor(e=0,t=0){tJ.prototype.isVector2=!0,this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}
vendor: 18,710 bytes, line 13
13sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){let t=this.x,n=this.y,i=e.elements;return this.x=i[0]*t+i[3]*n+i[6],this.y=i[1]*t+i[4]*n+i[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=tZ(this.x,e.x,t.x),this.y=tZ(this.y,e.y,t.y),this}clampScalar(e,t){return this.x=tZ(this.x,e,t),this.y=tZ(this.y,e,t),this}clampLength(e,t){let n=this.length();return this.divideScalar(n||1).multiplyScalar(tZ(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){let t=Math.sqrt(this.lengthSq()*e.lengthSq());return 0===t?Math.PI/2:Math.acos(tZ(this.dot(e)/t,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){let t=this.x-e.x,n=this.y-e.y;return t*t+n*n}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){let n=Math.cos(t),i=Math.sin(t),r=this.x-e.x,a=this.y-e.y;return this.x=r*n-a*i+e.x,this.y=r*i+a*n+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class t0{constructor(e=0,t=0,n=0,i=1){this.isQuaternion=!0,this._x=e,this._y=t,this._z=n,this._w=i}static slerpFlat(e,t,n,i,r,a,s){let o=n[i+0],l=n[i+1],u=n[i+2],c=n[i+3],d=r[a+0],h=r[a+1],f=r[a+2],p=r[a+3];if(0===s){e[t+0]=o,e[t+1]=l,e[t+2]=u,e[t+3]=c;return}if(1===s){e[t+0]=d,e[t+1]=h,e[t+2]=f,e[t+3]=p;return}if(c!==p||o!==d||l!==h||u!==f){let e=1-s,t=o*d+l*h+u*f+c*p,n=t>=0?1:-1,i=1-t*t;if(i>Number.EPSILON){let r=Math.sqrt(i),a=Math.atan2(r,t*n);e=Math.sin(e*a)/r,s=Math.sin(s*a)/r}let r=s*n;if(o=o*e+d*r,l=l*e+h*r,u=u*e+f*r,c=c*e+p*r,e===1-s){let e=1/Math.sqrt(o*o+l*l+u*u+c*c);o*=e,l*=e,u*=e,c*=e}}e[t]=o,e[t+1]=l,e[t+2]=u,e[t+3]=c}static multiplyQuaternionsFlat(e,t,n,i,r,a){let s=n[i],o=n[i+1],l=n[i+2],u=n[i+3],c=r[a],d=r[a+1],h=r[a+2],f=r[a+3];return e[t]=s*f+u*c+o*h-l*d,e[t+1]=o*f+u*d+l*c-s*h,e[t+2]=l*f+u*h+s*d-o*c,e[t+3]=u*f-s*c-o*d-l*h,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,n,i){return this._x=e,this._y=t,this._z=n,this._w=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t=!0){let n=e._x,i=e._y,r=e._z,a=e._order,s=Math.cos,o=Math.sin,l=s(n/2),u=s(i/2),c=s(r/2),d=o(n/2),h=o(i/2),f=o(r/2);switch(a){case"XYZ":this._x=d*u*c+l*h*f,this._y=l*h*c-d*u*f,this._z=l*u*f+d*h*c,this._w=l*u*c-d*h*f;break;case"YXZ":this._x=d*u*c+l*h*f,this._y=l*h*c-d*u*f,this._z=l*u*f-d*h*c,this._w=l*u*c+d*h*f;break;case"ZXY":this._x=d*u*c-l*h*f,this._y=l*h*c+d*u*f,this._z=l*u*f+d*h*c,this._w=l*u*c-d*h*f;break;case"ZYX":this._x=d*u*c-l*h*f,this._y=l*h*c+d*u*f,this._z=l*u*f-d*h*c,this._w=l*u*c+d*h*f;break;case"YZX":this._x=d*u*c+l*h*f,this._y=l*h*c+d*u*f,this._z=l*u*f-d*h*c,this._w=l*u*c-d*h*f;break;case"XZY":this._x=d*u*c-l*h*f,this._y=l*h*c-d*u*f,this._z=l*u*f+d*h*c,this._w=l*u*c+d*h*f;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+a)}return!0===t&&this._onChangeCallback(),this}setFromAxisAngle(e,t){let n=t/2,i=Math.sin(n);return this._x=e.x*i,this._y=e.y*i,this._z=e.z*i,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(e){let t=e.elements,n=t[0],i=t[4],r=t[8],a=t[1],s=t[5],o=t[9],l=t[2],u=t[6],c=t[10],d=n+s+c;if(d>0){let e=.5/Math.sqrt(d+1);this._w=.25/e,this._x=(u-o)*e,this._y=(r-l)*e,this._z=(a-i)*e}else if(n>s&&n>c){let e=2*Math.sqrt(1+n-s-c);this._w=(u-o)/e,this._x=.25*e,this._y=(i+a)/e,this._z=(r+l)/e}else if(s>c){let e=2*Math.sqrt(1+s-n-c);this._w=(r-l)/e,this._x=(i+a)/e,this._y=.25*e,this._z=(o+u)/e}else{let e=2*Math.sqrt(1+c-n-s);this._w=(a-i)/e,this._x=(r+l)/e,this._y=(o+u)/e,this._z=.25*e}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let n=e.dot(t)+1;return n<Number.EPSILON?(n=0,Math.abs(e.x)>Math.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0):(this._x=0,this._y=-e.z,this._z=e.y)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x),this._w=n,this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(tZ(this.dot(e),-1,1)))}rotateTowards(e,t){let n=this.angleTo(e);if(0===n)return this;let i=Math.min(1,t/n);return this.slerp(e,i),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return 0===e?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){let n=e._x,i=e._y,r=e._z,a=e._w,s=t._x,o=t._y,l=t._z,u=t._w;return this._x=n*u+a*s+i*l-r*o,this._y=i*u+a*o+r*s-n*l,this._z=r*u+a*l+n*o-i*s,this._w=a*u-n*s-i*o-r*l,this._onChangeCallback(),this}slerp(e,t){if(0===t)return this;if(1===t)return this.copy(e);let n=this._x,i=this._y,r=this._z,a=this._w,s=a*e._w+n*e._x+i*e._y+r*e._z;if(s<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,s=-s):this.copy(e),s>=1)return this._w=a,this._x=n,this._y=i,this._z=r,this;let o=1-s*s;if(o<=Number.EPSILON){let e=1-t;return this._w=e*a+t*this._w,this._x=e*n+t*this._x,this._y=e*i+t*this._y,this._z=e*r+t*this._z,this.normalize(),this}let l=Math.sqrt(o),u=Math.atan2(l,s),c=Math.sin((1-t)*u)/l,d=Math.sin(t*u)/l;return this._w=a*c+this._w*d,this._x=n*c+this._x*d,this._y=i*c+this._y*d,this._z=r*c+this._z*d,this._onChangeCallback(),this}slerpQuaternions(e,t,n){return this.copy(e).slerp(t,n)}random(){let e=2*Math.PI*Math.random(),t=2*Math.PI*Math.random(),n=Math.random(),i=Math.sqrt(1-n),r=Math.sqrt(n);return this.set(i*Math.sin(e),i*Math.cos(e),r*Math.sin(t),r*Math.cos(t))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class t1{constructor(e=0,t=0,n=0){t1.prototype.isVector3=!0,this.x=e,this.y=t,this.z=n}set(e,t,n){return void 0===n&&(n=this.z),this.x=e,this.y=t,this.z=n,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(t3.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(t3.setFromAxisAngle(e,t))}applyMatrix3(e){let t=this.x,n=this.y,i=this.z,r=e.elements;return this.x=r[0]*t+r[3]*n+r[6]*i,this.y=r[1]*t+r[4]*n+r[7]*i,this.z=r[2]*t+r[5]*n+r[8]*i,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){let t=this.x,n=this.y,i=this.z,r=e.elements,a=1/(r[3]*t+r[7]*n+r[11]*i+r[15]);return this.x=(r[0]*t+r[4]*n+r[8]*i+r[12])*a,this.y=(r[1]*t+r[5]*n+r[9]*i+r[13])*a,this.z=(r[2]*t+r[6]*n+r[10]*i+r[14])*a,this}applyQuaternion(e){let t=this.x,n=this.y,i=this.z,r=e.x,a=e.y,s=e.z,o=e.w,l=2*(a*i-s*n),u=2*(s*t-r*i),c=2*(r*n-a*t);return this.x=t+o*l+a*c-s*u,this.y=n+o*u+s*l-r*c,this.z=i+o*c+r*u-a*l,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){let t=this.x,n=this.y,i=this.z,r=e.elements;return this.x=r[0]*t+r[4]*n+r[8]*i,this.y=r[1]*t+r[5]*n+r[9]*i,this.z=r[2]*t+r[6]*n+r[10]*i,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=tZ(this.x,e.x,t.x),this.y=tZ(this.y,e.y,t.y),this.z=tZ(this.z,e.z,t.z),this}clampScalar(e,t){return this.x=tZ(this.x,e,t),this.y=tZ(this.y,e,t),this.z=tZ(this.z,e,t),this}clampLength(e,t){let n=this.length();return this.divideScalar(n||1).multiplyScalar(tZ(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){let n=e.x,i=e.y,r=e.z,a=t.x,s=t.y,o=t.z;return this.x=i*o-r*s,this.y=r*a-n*o,this.z=n*s-i*a,this}projectOnVector(e){let t=e.lengthSq();if(0===t)return this.set(0,0,0);let n=e.dot(this)/t;return this.copy(e).multiplyScalar(n)}projectOnPlane(e){return t2.copy(this).projectOnVector(e),this.sub(t2)}reflect(e){return this.sub(t2.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){let t=Math.sqrt(this.lengthSq()*e.lengthSq());return 0===t?Math.PI/2:Math.acos(tZ(this.dot(e)/t,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){let t=this.x-e.x,n=this.y-e.y,i=this.z-e.z;return t*t+n*n+i*i}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,n){let i=Math.sin(t)*e;return this.x=i*Math.sin(n),this.y=Math.cos(t)*e,this.z=i*Math.cos(n),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,n){return this.x=e*Math.sin(t),this.y=n,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){let t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){let t=this.setFromMatrixColumn(e,0).length(),n=this.setFromMatrixColumn(e,1).length(),i=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=n,this.z=i,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,4*t)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,3*t)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){let e=Math.random()*Math.PI*2,t=2*Math.random()-1,n=Math.sqrt(1-t*t);return this.x=n*Math.cos(e),this.y=t,this.z=n*Math.sin(e),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}let t2=new t1,t3=new t0;class t5{constructor(e,t,n,i,r,a,s,o,l){t5.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],void 0!==e&&this.set(e,t,n,i,r,a,s,o,l)}set(e,t,n,i,r,a,s,o,l){let u=this.elements;return u[0]=e,u[1]=i,u[2]=s,u[3]=t,u[4]=r,u[5]=o,u[6]=n,u[7]=a,u[8]=l,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){let t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],this}extractBasis(e,t,n){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(e){let t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){let n=e.elements,i=t.elements,r=this.elements,a=n[0],s=n[3],o=n[6],l=n[1],u=n[4],c=n[7],d=n[2],h=n[5],f=n[8],p=i[0],m=i[3],g=i[6],v=i[1],y=i[4],_=i[7],b=i[2],x=i[5],C=i[8];return r[0]=a*p+s*v+o*b,r[3]=a*m+s*y+o*x,r[6]=a*g+s*_+o*C,r[1]=l*p+u*v+c*b,r[4]=l*m+u*y+c*x,r[7]=l*g+u*_+c*C,r[2]=d*p+h*v+f*b,r[5]=d*m+h*y+f*x,r[8]=d*g+h*_+f*C,this}multiplyScalar(e){let t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){let e=this.elements,t=e[0],n=e[1],i=e[2],r=e[3],a=e[4],s=e[5],o=e[6],l=e[7],u=e[8];return t*a*u-t*s*l-n*r*u+n*s*o+i*r*l-i*a*o}invert(){let e=this.elements,t=e[0],n=e[1],i=e[2],r=e[3],a=e[4],s=e[5],o=e[6],l=e[7],u=e[8],c=u*a-s*l,d=s*o-u*r,h=l*r-a*o,f=t*c+n*d+i*h;if(0===f)return this.set(0,0,0,0,0,0,0,0,0);let p=1/f;return e[0]=c*p,e[1]=(i*l-u*n)*p,e[2]=(s*n-i*a)*p,e[3]=d*p,e[4]=(u*t-i*o)*p,e[5]=(i*r-s*t)*p,e[6]=h*p,e[7]=(n*o-l*t)*p,e[8]=(a*t-n*r)*p,this}transpose(){let e;let t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){let t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,n,i,r,a,s){let o=Math.cos(r),l=Math.sin(r);return this.set(n*o,n*l,-n*(o*a+l*s)+a+e,-i*l,i*o,-i*(-l*a+o*s)+s+t,0,0,1),this}scale(e,t){return this.premultiply(t4.makeScale(e,t)),this}rotate(e){return this.premultiply(t4.makeRotation(-e)),this}translate(e,t){return this.premultiply(t4.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){let t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,n,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){let t=this.elements,n=e.elements;for(let e=0;e<9;e++)if(t[e]!==n[e])return!1;return!0}fromArray(e,t=0){for(let n=0;n<9;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){let n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e}clone(){return new this.constructor().fromArray(this.elements)}}let t4=new t5;function t6(e){for(let t=e.length-1;t>=0;--t)if(e[t]>=65535)return!0;return!1}function t8(e){return document.createElementNS("http://www.w3.org/1999/xhtml",e)}function t7(){let e=t8("canvas");return e.style.display="block",e}Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array;let t9={};function ne(e){e in t9||(t9[e]=!0,console.warn(e))}function nt(e,t,n){return new Promise(function(i,r){function a(){switch(e.clientWaitSync(t,e.SYNC_FLUSH_COMMANDS_BIT,0)){case e.WAIT_FAILED:r();break;case e.TIMEOUT_EXPIRED:setTimeout(a,n);break;default:i()}}setTimeout(a,n)})}function nn(e){let t=e.elements;t[2]=.5*t[2]+.5*t[3],t[6]=.5*t[6]+.5*t[7],t[10]=.5*t[10]+.5*t[11],t[14]=.5*t[14]+.5*t[15]}function ni(e){let t=e.elements;-1===t[11]?(t[10]=-t[10]-1,t[14]=-t[14]):(t[10]=-t[10],t[14]=-t[14]+1)}let nr=new t5().set(.4123908,.3575843,.1804808,.212639,.7151687,.0721923,.0193308,.1191948,.9505322),na=new t5().set(3.2409699,-1.5373832,-.4986108,-.9692436,1.8759675,.0415551,.0556301,-.20397
137,1.0569715),ns=function(){let e={enabled:!0,workingColorSpace:tS,spaces:{},convert:function(e,t,n){return!1!==this.enabled&&t!==n&&t&&n&&(this.spaces[t].transfer===tP&&(e.r=no(e.r),e.g=no(e.g),e.b=no(e.b)),this.spaces[t].primaries!==this.spaces[n].primaries&&(e.applyMatrix3(this.spaces[t].toXYZ),e.applyMatrix3(this.spaces[n].fromXYZ)),this.spaces[n].transfer===tP&&(e.r=nl(e.r),e.g=nl(e.g),e.b=nl(e.b))),e},workingToColorSpace:function(e,t){return this.convert(e,this.workingColorSpace,t)},colorSpaceToWorking:function(e,t){return this.convert(e,t,this.workingColorSpace)},getPrimaries:function(e){return this.spaces[e].primaries},getTransfer:function(e){return e===tw?tL:this.spaces[e].transfer},getLuminanceCoefficients:function(e,t=this.workingColorSpace){return e.fromArray(this.spaces[t].luminanceCoefficients)},define:function(e){Object.assign(this.spaces,e)},_getMatrix:function(e,t,n){return e.copy(this.spaces[t].toXYZ).multiply(this.spaces[n].fromXYZ)},_getDrawingBufferColorSpace:function(e){return this.spaces[e].outputColorSpaceConfig.drawingBufferColorSpace},_getUnpackColorSpace:function(e=this.workingColorSpace){return this.spaces[e].workingColorSpaceConfig.unpackColorSpace},fromWorkingColorSpace:function(t,n){return ne("THREE.ColorManagement: .fromWorkingColorSpace() has been renamed to .workingToColorSpace()."),e.workingToColorSpace(t,n)},toWorkingColorSpace:function(t,n){return ne("THREE.ColorManagement: .toWorkingColorSpace() has been renamed to .colorSpaceToWorking()."),e.colorSpaceToWorking(t,n)}},t=[.64,.33,.3,.6,.15,.06],n=[.2126,.7152,.0722],i=[.3127,.329];return e.define({[tS]:{primaries:t,whitePoint:i,transfer:tL,toXYZ:nr,fromXYZ:na,luminanceCoefficients:n,workingColorSpaceConfig:{unpackColorSpace:tT},outputColorSpaceConfig:{drawingBufferColorSpace:tT}},[tT]:{primaries:t,whitePoint:i,transfer:tP,toXYZ:nr,fromXYZ:na,luminanceCoefficients:n,outputColorSpaceConfig:{drawingBufferColorSpace:tT}}}),e}();function no(e){return e<.04045?.0773993808*e:Math.pow(.9478672986*e+.0521327014,2.4)}function nl(e){return e<.0031308?12.92*e:1.055*Math.pow(e,.41666)-.055}class nu{static getDataURL(e,t="image/png"){let n;if(/^data:/i.test(e.src)||"undefined"==typeof HTMLCanvasElement)return e.src;if(e instanceof HTMLCanvasElement)n=e;else{void 0===i&&(i=t8("canvas")),i.width=e.width,i.height=e.height;let t=i.getContext("2d");e instanceof ImageData?t.putImageData(e,0,0):t.drawImage(e,0,0,e.width,e.height),n=i}return n.toDataURL(t)}static sRGBToLinear(e){if("undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap){let t=t8("canvas");t.width=e.width,t.height=e.height;let n=t.getContext("2d");n.drawImage(e,0,0,e.width,e.height);let i=n.getImageData(0,0,e.width,e.height),r=i.data;for(let e=0;e<r.length;e++)r[e]=255*no(r[e]/255);return n.putImageData(i,0,0),t}if(!e.data)return console.warn("THREE.ImageUtils.sRGBToLinear(): Unsupported image type. No color space conversion applied."),e;{let t=e.data.slice(0);for(let e=0;e<t.length;e++)t instanceof Uint8Array||t instanceof Uint8ClampedArray?t[e]=Math.floor(255*no(t[e]/255
13)):t[e]=no(t[e]);return{data:t,width:e.width,height:e.height}}}}let nc=0;class nd{constructor(e=null){this.isSource=!0,Object.defineProperty(this,"id",{value:nc++}),this.uuid=t$(),this.data=e,this.dataReady=!0,this.version=0}getSize(e){let t=this.data;return t instanceof HTMLVideoElement?e.set(t.videoWidth,t.videoHeight):null!==t?e.set(t.width,t.height,t.depth||0):e.set(0,0,0),e}set needsUpdate(e){!0===e&&this.version++}toJSON(e){let t=void 0===e||"string"==typeof e;if(!t&&void 0!==e.images[this.uuid])return e.images[this.uuid];let n={uuid:this.uuid,url:""},i=this.data;if(null!==i){let e;if(Array.isArray(i)){e=[];for(let t=0,n=i.length;t<n;t++)i[t].isDataTexture?e.push(nh(i[t].image)):e.push(nh(i[t]))}else e=nh(i);n.url=e}return t||(e.images[this.uuid]=n),n}}function nh(e){return"undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap?nu.getDataURL(e):e.data?{data:Array.from(e.data),width:e.width,height:e.height,type:e.data.constructor.name}:(console.warn("THREE.Texture: Unable to serialize Texture."),{})}let nf=0,np=new t1;class nm extends tG{constructor(e=nm.DEFAULT_IMAGE,t=nm.DEFAULT_MAPPING,n=eg,i=eg,r=ex,a=eE,s=ej,o=ew,l=nm.DEFAULT_ANISOTROPY,u=tw){super(),this.isTexture=!0,Object.defineProperty(this,"id",{value:nf++}),this.uuid=t$(),this.name="",this.source=new nd(e),this.mipmaps=[],this.mapping=t,this.channel=0,this.wrapS=n,this.wrapT=i,this.magFilter=r,this.minFilter=a,this.anisotropy=l,this.format=s,this.internalFormat=null,this.type=o,this.offset=new tJ(0,0),this.repeat=new tJ(1,1),this.center=new tJ(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new t5,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.colorSpace=u,this.userData={},this.updateRanges=[],this.version=0,this.onUpdate=null,this.renderTarget=null,this.isRenderTargetTexture=!1,this.isArrayTexture=!!e&&!!e.depth&&e.depth>1,this.pmremVersion=0}get width(){return this.source.getSize(np).x}get height(){return this.source.getSize(np).y}get depth(){return this.source.getSize(np).z}get image(){return this.source.data}set image(e=null){this.source.data=e}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}clone(){return new this.constructor().copy(this)}copy(e){return this.name=e.name,this.source=e.source,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.channel=e.channel,this.wrapS=e.wrapS,this.wrapT=e.wrapT,this.magFilter=e.magFilter,this.minFilter=e.minFilter,this.anisotropy=e.anisotropy,this.format=e.format,this.internalFormat=e.internalFormat,this.type=e.type,this.offset.copy(e.offset),this.repeat.copy(e.repeat),this.center.copy(e.center),this.rotation=e.rotation,this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrix.copy(e.matrix),this.generateMipmaps=e.generateMipmaps,this.premultiplyAlpha=e.premultiplyAlpha,this.flipY=e.flipY,this.unpackAlignment=e.unpackAlignment,this.colorSpace=e.colorSpace,this.renderTarget=e.renderTarget,this.isRenderTargetTexture=e.isRenderTargetTexture,this.isArrayTexture=e.isArrayTexture,this.userData=JSON.parse(JSON.stringify(e.userData)),this.needsUpdate=!0,this}setValues(e){for(let t in e){let n=e[t];if(void 0===n){console.warn(`THREE.Texture.setValues(): parameter '${t}' has value of undefined.`);continue}let i=this[t];if(void 0===i){console.warn(`THREE.Texture.setValues(): property '${t}' does not exist.`);continue}i&&n&&i.isVector2&&n.isVector2?i.copy(n):i&&n&&i.isVector3&&n.isVector3?i.copy(n):i&&n&&i.isMatrix3&&n.isMatrix3?i.copy(n):this[t]=n}}toJSON(e){let t=void 0===e||"string"==typeof e;if(!t&&void 0!==e.textures[this.uuid])return e.textures[this.uuid];let n={metadata:{version:4.7,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,image:this.source.toJSON(e).uuid,mapping:this.mapping,channel:this.channel,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,internalFormat:this.internalFormat,type:this.t
vendor: 9,501 bytes, line 13
13ype,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(n.userData=this.userData),t||(e.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==eu)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case em:e.x=e.x-Math.floor(e.x);break;case eg:e.x=e.x<0?0:1;break;case ev:1===Math.abs(Math.floor(e.x)%2)?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x)}if(e.y<0||e.y>1)switch(this.wrapT){case em:e.y=e.y-Math.floor(e.y);break;case eg:e.y=e.y<0?0:1;break;case ev:1===Math.abs(Math.floor(e.y)%2)?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y)}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){!0===e&&(this.version++,this.source.needsUpdate=!0)}set needsPMREMUpdate(e){!0===e&&this.pmremVersion++}}nm.DEFAULT_IMAGE=null,nm.DEFAULT_MAPPING=eu,nm.DEFAULT_ANISOTROPY=1;class ng{constructor(e=0,t=0,n=0,i=1){ng.prototype.isVector4=!0,this.x=e,this.y=t,this.z=n,this.w=i}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,n,i){return this.x=e,this.y=t,this.z=n,this.w=i,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=void 0!==e.w?e.w:1,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){let t=this.x,n=this.y,i=this.z,r=this.w,a=e.elements;return this.x=a[0]*t+a[4]*n+a[8]*i+a[12]*r,this.y=a[1]*t+a[5]*n+a[9]*i+a[13]*r,this.z=a[2]*t+a[6]*n+a[10]*i+a[14]*r,this.w=a[3]*t+a[7]*n+a[11]*i+a[15]*r,this}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this.w/=e.w,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);let t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,n,i,r;let a=.01,s=.1,o=e.elements,l=o[0],u=o[4],c=o[8],d=o[1],h=o[5],f=o[9],p=o[2],m=o[6],g=o[10];if(Math.abs(u-d)<a&&Math.abs(c-p)<a&&Math.abs(f-m)<a){if(Math.abs(u+d)<s&&Math.abs(c+p)<s&&Math.abs(f+m)<s&&Math.abs(l+h+g-3)<s)return this.set(1,0,0,0),this;t=Math.PI;let e=(l+1)/2,o=(h+1)/2,v=(g+1)/2,y=(u+d)/4,_=(c+p)/4,b=(f+m)/4;return e>o&&e>v?e<a?(n=0,i=.707106781,r=.707106781):(i=y/(n=Math.sqrt(e)),r=_/n):o>v?o<a?(n=.707106781,i=0,r=.707106781):(n=y/(i=Math.sqrt(o)),r=b/i):v<a?(n=.707106781,i=.707106781,r=0):(n=_/(r=Math.sqrt(v)),i=b/r),this.set(n,i,r,t),this}let v=Math.sqrt((m-f)*(m-f)+(c-p)*(c-p)+(d-u)*(d-u));return .001>Math.abs(v)&&(v=1),this.x=(m-f)/v,this.y=(c-p)/v,this.z=(d-u)/v,this.w=Math.acos((l+h+g-1)/2),this}setFromMatrixPosition(e){let t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this.w=t[15],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this}clamp(e,t){return this.x=tZ(this.x,e.x,t.x),this.y=tZ(this.y,e.y,t.y),this.z=tZ(this.z,e.z,t.z),this.w=tZ(this.w,e.w,t.w),this}clampScalar(e,t){return this.x=tZ(this.x,e,t),this.y=tZ(this.y,e,t),this.z=tZ(this.z,e,t),this.w=tZ(this.w,e,t),this}clampLength(e,t){let n=this.length();return this.divideScalar(n||1).multiplyScalar(tZ(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this.w=Math.trunc(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this.w+=(e.w-this.w)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this.w=e.w+(t.w-e.w)*n,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}class nv extends tG{constructor(e=1,t=1,n={}){super(),n=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:ex,depthBuffer:!0,stencilBuffer:!1,resolveDepthBuffer:!0,resolveStencilBuffer:!0,depthTexture:null,samples:0,count:1,depth:1,multiview:!1},n),this.isRenderTarget=!0,this.width=e,this.height=t,this.depth=n.depth,this.scissor=new ng(0,0,e,t),this.scissorTest=!1,this.viewport=new ng(0,0,e,t);let i=new nm({width:e,height:t,depth:n.depth});this.textures=[];let r=n.count;for(let e=0;e<r;e++)this.textures[e]=i.clone(),this.textures[e].isRenderTargetTexture=!0,this.textures[e].renderTarget=this;this._setTextureOptions(n),this.depthBuffer=n.depthBuffer,this.stencilBuffer=n.stencilBuffer,this.resolveDepthBuffer=n.resolveDepthBuffer,this.resolveStencilBuffer=n.resolveStencilBuffer,this._depthTexture=null,this.depthTexture=n.depthTexture,this.samples=n.samples,this.multiview=n.multiview}_setTextureOptions(e={}){let t={minFilter:ex,generateMipmaps:!1,flipY:!1,internalFormat:null};void 0!==e.mapping&&(t.mapping=e.mapping),void 0!==e.wrapS&&(t.wrapS=e.wrapS),void 0!==e.wrapT&&(t.wrapT=e.wrapT),void 0!==e.wrapR&&(t.wrapR=e.wrapR),void 0!==e.magFilter&&(t.magFilter=e.magFilter),void 0!==e.minFilter&&(t.minFilter=e.minFilter),void 0!==e.format&&(t.format=e.format),void 0!==e.type&&(t.type=e.type),void 0!==e.anisotropy&&(t.anisotropy=e.anisotropy),void 0!==e.colorSpace&&(t.colorSpace=e.colorSpace),void 0!==e.flipY&&(t.flipY=e.flipY),void 0!==e.generateMipmaps&&(t.generateMipmaps=e.generateMipmaps),void 0!==e.internalFormat&&(t.internalFormat=e.internalFormat);for(let e=0;e<this.textures.length;e++)this.textures[e].setValues(t)}get texture(){return this.textures[0]}set texture(e){this.textures[0]=e}set depthTexture(e){null!==this._depthTexture&&(this._depthTexture.renderTarget=null),null!==e&&(e.renderTarget=this),this._depthTexture=e}get depthTexture(){return this._depthTexture}setSize(e,t,n=1){if(this.width!==e||this.height!==t||this.depth!==n){this.width=e,this.height=t,this.depth=n;for(let i=0,r=this.textures.length;i<r;i++)this.textures[i].image.width=e,this.textures[i].image.height=t,this.textures[i].image.depth=n,this.textures[i].isArrayTexture=this.textures[i].image.depth>1;this.dispose()}this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)}clone(){return new this.constructor().copy(this)}copy(e){this.width=e.width,this.height=e.height,this.depth=e.depth,this.scissor.copy(e.scissor),this.scissorTest=e.scissorTest,this.viewport.copy(e.viewport),this.textures.length=0;for(let t=0,n=e.textures.length;t<n;t++){this.textures[t]=e.textures[t].clone(),this.textures[t].isRenderTargetTexture=!0,this.textures[t].renderTarget=this;let n=Object.assign({},e.textures[t].image);this.textures[t].source=new nd(n)}return this.depthBuffer=e.depthBuffer,this.stencilBuffer=e.stencilBuffer,this.resolveDepthBuffer=e.resolveDepthBuffer,this.resolveStencilBuffer=e.resolveStencilBuffer,null!==e.depthTexture&&(this.depthTexture=e.depthTexture.clone()),this.samples=e.samples,this}dispose(){this.dispatchEvent({type:"dispose"})}}class ny extends nv{constructor(e=1,t=1,n={}
vendor: 4,172 bytes, line 13
13){super(e,t,n),this.isWebGLRenderTarget=!0}}class n_ extends nm{constructor(e=null,t=1,n=1,i=1){super(null),this.isDataArrayTexture=!0,this.image={data:e,width:t,height:n,depth:i},this.magFilter=ey,this.minFilter=ey,this.wrapR=eg,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1,this.layerUpdates=new Set}addLayerUpdate(e){this.layerUpdates.add(e)}clearLayerUpdates(){this.layerUpdates.clear()}}class nb extends nm{constructor(e=null,t=1,n=1,i=1){super(null),this.isData3DTexture=!0,this.image={data:e,width:t,height:n,depth:i},this.magFilter=ey,this.minFilter=ey,this.wrapR=eg,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class nx{constructor(e=new t1(Infinity,Infinity,Infinity),t=new t1(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,n=e.length;t<n;t+=3)this.expandByPoint(nE.fromArray(e,t));return this}setFromBufferAttribute(e){this.makeEmpty();for(let t=0,n=e.count;t<n;t++)this.expandByPoint(nE.fromBufferAttribute(e,t));return this}setFromPoints(e){this.makeEmpty();for(let t=0,n=e.length;t<n;t++)this.expandByPoint(e[t]);return this}setFromCenterAndSize(e,t){let n=nE.copy(t).multiplyScalar(.5);return this.min.copy(e).sub(n),this.max.copy(e).add(n),this}setFromObject(e,t=!1){return this.makeEmpty(),this.expandByObject(e,t)}clone(){return new this.constructor().copy(this)}copy(e){return this.min.copy(e.min),this.max.copy(e.max),this}makeEmpty(){return this.min.x=this.min.y=this.min.z=Infinity,this.max.x=this.max.y=this.max.z=-1/0,this}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z}getCenter(e){return this.isEmpty()?e.set(0,0,0):e.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(e){return this.isEmpty()?e.set(0,0,0):e.subVectors(this.max,this.min)}expandByPoint(e){return this.min.min(e),this.max.max(e),this}expandByVector(e){return this.min.sub(e),this.max.add(e),this}expandByScalar(e){return this.min.addScalar(-e),this.max.addScalar(e),this}expandByObject(e,t=!1){e.updateWorldMatrix(!1,!1);let n=e.geometry;if(void 0!==n){let i=n.getAttribute("position");if(!0===t&&void 0!==i&&!0!==e.isInstancedMesh)for(let t=0,n=i.count;t<n;t++)!0===e.isMesh?e.getVertexPosition(t,nE):nE.fromBufferAttribute(i,t),nE.applyMatrix4(e.matrixWorld),this.expandByPoint(nE);else void 0!==e.boundingBox?(null===e.boundingBox&&e.computeBoundingBox(),nw.copy(e.boundingBox)):(null===n.boundingBox&&n.computeBoundingBox(),nw.copy(n.boundingBox)),nw.applyMatrix4(e.matrixWorld),this.union(nw)}let i=e.children;for(let e=0,n=i.length;e<n;e++)this.expandByObject(i[e],t);return this}containsPoint(e){return e.x>=this.min.x&&e.x<=this.max.x&&e.y>=this.min.y&&e.y<=this.max.y&&e.z>=this.min.z&&e.z<=this.max.z}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return e.max.x>=this.min.x&&e.min.x<=this.max.x&&e.max.y>=this.min.y&&e.min.y<=this.max.y&&e.max.z>=this.min.z&&e.min.z<=this.max.z}intersectsSphere(e){return this.clampPoint(e.center,nE),nE.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,n;return e.normal.x>0?(t=e.normal.x*this.min.x,n=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,n=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,n+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,n+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,n+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,n+=e.normal.z*this.min.z),t<=-e.constant&&n>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(nI),nR.subVectors(this.max,nI),nT.subVectors(e.a,nI),nS.subVectors(e.b,nI),nL.subVectors(e.c,nI),nP.subVectors(nS,nT),nM.subVectors(nL,nS),nA.subVectors(nT,nL);let t=[0,-nP.z,nP.y,0,-nM.z,nM.y,0,-nA.z,nA.y,nP.z,0,-nP.x,nM.z,0,-nM.x,nA.z,0,-nA.x,-nP.y,nP.x,0,-nM.y,nM.x,0,-nA.y,nA.x,0];return!!(nN(t,nT,nS,nL,nR)&&nN(t=[1,0,0,0,1,0,0,0,1],nT,nS,nL,nR))&&
13(nk.crossVectors(nP,nM),nN(t=[nk.x,nk.y,nk.z],nT,nS,nL,nR))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,nE).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=.5*this.getSize(nE).length()),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()||(nC[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),nC[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),nC[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),nC[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),nC[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),nC[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),nC[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),nC[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(nC)),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}toJSON(){return{min:this.min.toArray(),max:this.max.toArray()}}fromJSON(e){return this.min.fromArray(e.min),this.max.fromArray(e.max),this}}let nC=[new t1,new t1,new t1,new t1,new t1,new t1,new t1,new t1],nE=new t1,nw=new nx,nT=new t1,nS=new t1,nL=new t1,nP=new t1,nM=new t1,nA=new t1,nI=new t1,nR=new t1,nk=new t1,nD=new t1;function nN(e,t,n,i,r){for(let a=0,s=e.length-3;a<=s;a+=3){nD.fromArray(e,a);let s=r.x*Math.abs(nD.x)+r.y*Math.abs(nD.y)+r.z*Math.abs(nD.z),o=t.dot(nD),l=n.dot(nD),u=i.dot(nD);if(Math.max(-Math.max(o,l,u),Math.min(o,l,u))>s)return!1}return!0}let nF=new nx,nO=new t1,nj=new t1;class nU{constructor(e=new t1,t=-1){this.isSphere=!0,this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){let n=this.center;void 0!==t?n.copy(t):nF.setFromPoints(e).getCenter(n);let i=0;for(let t=0,r=e.length;t<r;t++)i=Math.max(i,n.distanceToSquared(e[t]));return this.radius=Math.sqrt(i),this}copy(e){return this.center.copy(e.center),this.radius=e.radius,this}isEmpty(){return this.radius<0}makeEmpty(){return this.center.set(0,0,0),this.radius=-1,this}containsPoint(e){return e.distanceToSquared(this.center)<=this.radius*this.radius}distanceToPoint(e){return e.distanceTo(this.center)-this.radius}intersectsSphere(e){let t=this.radius+e.radius;return e.center.distanceToSquared(this.center)<=t*t}intersectsBox(e){return e.intersectsSphere(this)}intersectsPlane(e){return Math.abs(e.distanceToPoint(this.center))<=this.radius}clampPoint(e,t){let n=this.center.distanceToSquared(e);return t.copy(e),n>this.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?e.makeEmpty():(e.set(this.center,this.center),e.expandByScalar(this.radius)),e}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;nO.subVectors(e,this.center);let t=nO.lengthSq();if(t>this.radius*this.radius){let e=Math.sqrt(t),n=(e-this.radius)*.5;this.center.addScaledVector(nO,n/e),this.radius+=n}return this}union(e){return e.isEmpty()||(this.isEmpty()?this.copy(e):!0===this.center.equals(e.center)?this.radius=Math.max(this.radius,e.radius):(nj.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(nO.copy(e.center).add(nj)),this.expandByPoint(nO.copy(e.center).sub(nj)))),this}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}toJSON(){return{radius:this.radius,center:this.center.toArray()}}fromJSON(e){return this.radius=e.radius,this.center.fromArray(e.center),this}}let nV=new t1,nB=new t1,nH=new t1,nG=new t1,nz=new t1,nq=new t1,nW=new t1;class n${constructor(e=new t1,t=new t1(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,nV)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);let n=t.dot(this.direction);return n<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,n)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){let t=nV.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(nV.copy(this.origin).addScaledVector(this.direction,t),nV.distanceToSquared(e))}distanceSqToSegment(e,t,n,i){let r,a,s,o;nB.copy(e).add(t).multiplyScalar(.5),nH.copy(t).sub(e).normalize(),nG.copy(this.origin).sub(nB);let l=.5*e.distanceTo(t),u=-this.direction.dot(nH),c=nG.dot(this.direction),d=-nG.dot(nH),h=nG.lengthSq(),f=Math.abs(1-u*u);if(f>0){if(r=u*d-c,a=u*c-d,o=l*f,r>=0){if(a>=-o){if(a<=o){let e=1/f;r*=e,a*=e,s=r*(r+u*a+2*c)+a*(u*r+a+2*d)+h}else s=-(r=Math.max(0,-(u*(a=l)+c)))*r+a*(a+2*d)+h}else s=-(r=Math.max(0,-(u*(a=-l)+c)))*r+a*(a+2*d)+h}else a<=-o?(a=(r=Math.max(0,-(-u*l+c)))>0?-l:Math.min(Math.max(-l,-d),l),s=-r*r+a*(a+2*d)+h):a<=o?(r=0,s=(a=Math.min(Math.max(-l,-d),l))*(a+2*d)+h):(a=(r=Math.max(0,-(u*l+c)))>0?l:Math.min(Math.max(-l,-d),l),s=-r*r+a*(a+2*d)+h)}else a=u>0?-l:l,s=-(r=Math.max(0,-(u*a+c)))*r+a*(a+2*d)+h;return n&&n.copy(this.origin).addScaledVector(this.direction,r),i&&i.copy(nB).addScaledVector(nH,a),s}intersectSphere(e,t){nV.subVectors(e.center,this.origin);
vendor: 4,163 bytes, line 13
13let n=nV.dot(this.direction),i=nV.dot(nV)-n*n,r=e.radius*e.radius;if(i>r)return null;let a=Math.sqrt(r-i),s=n-a,o=n+a;return o<0?null:s<0?this.at(o,t):this.at(s,t)}intersectsSphere(e){return!(e.radius<0)&&this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){let t=e.normal.dot(this.direction);if(0===t)return 0===e.distanceToPoint(this.origin)?0:null;let n=-(this.origin.dot(e.normal)+e.constant)/t;return n>=0?n:null}intersectPlane(e,t){let n=this.distanceToPlane(e);return null===n?null:this.at(n,t)}intersectsPlane(e){let t=e.distanceToPoint(this.origin);return!!(0===t||e.normal.dot(this.direction)*t<0)}intersectBox(e,t){let n,i,r,a,s,o;let l=1/this.direction.x,u=1/this.direction.y,c=1/this.direction.z,d=this.origin;return(l>=0?(n=(e.min.x-d.x)*l,i=(e.max.x-d.x)*l):(n=(e.max.x-d.x)*l,i=(e.min.x-d.x)*l),u>=0?(r=(e.min.y-d.y)*u,a=(e.max.y-d.y)*u):(r=(e.max.y-d.y)*u,a=(e.min.y-d.y)*u),n>a||r>i)?null:((r>n||isNaN(n))&&(n=r),(a<i||isNaN(i))&&(i=a),c>=0?(s=(e.min.z-d.z)*c,o=(e.max.z-d.z)*c):(s=(e.max.z-d.z)*c,o=(e.min.z-d.z)*c),n>o||s>i)?null:((s>n||n!=n)&&(n=s),(o<i||i!=i)&&(i=o),i<0)?null:this.at(n>=0?n:i,t)}intersectsBox(e){return null!==this.intersectBox(e,nV)}intersectTriangle(e,t,n,i,r){let a;nz.subVectors(t,e),nq.subVectors(n,e),nW.crossVectors(nz,nq);let s=this.direction.dot(nW);if(s>0){if(i)return null;a=1}else{if(!(s<0))return null;a=-1,s=-s}nG.subVectors(this.origin,e);let o=a*this.direction.dot(nq.crossVectors(nG,nq));if(o<0)return null;let l=a*this.direction.dot(nz.cross(nG));if(l<0||o+l>s)return null;let u=-a*nG.dot(nW);return u<0?null:this.at(u/s,r)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}}class nZ{constructor(e,t,n,i,r,a,s,o,l,u,c,d,h,f,p,m){nZ.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],void 0!==e&&this.set(e,t,n,i,r,a,s,o,l,u,c,d,h,f,p,m)}set(e,t,n,i,r,a,s,o,l,u,c,d,h,f,p,m){let g=this.elements;return g[0]=e,g[4]=t,g[8]=n,g[12]=i,g[1]=r,g[5]=a,g[9]=s,g[13]=o,g[2]=l,g[6]=u,g[10]=c,g[14]=d,g[3]=h,g[7]=f,g[11]=p,g[15]=m,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new nZ().fromArray(this.elements)}copy(e){let t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],this}copyPosition(e){let t=this.elements,n=e.elements;return t[12]=n[12],t[13]=n[13],t[14]=n[14],this}setFromMatrix3(e){let t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}extractBasis(e,t,n){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this}makeBasis(e,t,n){return this.set(e.x,t.x,n.x,0,e.y,t.y,n.y,0,e.z,t.z,n.z,0,0,0,0,1),this}extractRotation(e){let t=this.elements,n=e.elements,i=1/nY.setFromMatrixColumn(e,0).length(),r=1/nY.setFromMatrixColumn(e,1).length(),a=1/nY.setFromMatrixColumn(e,2).length();return t[0]=n[0]*i,t[1]=n[1]*i,t[2]=n[2]*i,t[3]=0,t[4]=n[4]*r,t[5]=n[5]*r,t[6]=n[6]*r,t[7]=0,t[8]=n[8]*a,t[9]=n[9]*a,t[10]=n[10]*a,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){let t=this.elements,n=e.x,i=e.y,r=e.z,a=Math.cos(n),s=Math.sin(n),o=Math.cos(i),l=Math.sin(i),u=Math.cos(r),c=Math.sin(r);if("XYZ"===e.order){let e=a*u,n=a*c,i=s*u,r=s*c;t[0]=o*u,t[4]=-o*c,t[8]=l,t[1]=n+i*l,t[5]=e-r*l,t[9]=-s*o,t[2]=r-e*l,t[6]=i+n*l,t[10]=a*o}else if("YXZ"===e.order){let e=o*u,n=o*c,i=l*u,r=l*c;t[0]=e+r*s,t[4]=i*s-n,t[8]=a*l,t[1]=a*c,t[5]=a*u,t[9]=-s,t[2]=n*s-i,t[6]=r+e*s,t[10]=a*o}else if("ZXY"===e.order){let e=o*u,n=o*c,i=l*u,r=l*c;t[0]=e-r*s,t[4]=-a*c,t[8]=i+n*s,t[1]=n+i*s,t[5]=a*u,t[9]=r-e*s,t[2]=-a*l,t[6]=s,t[10]=a*o}else if("ZYX"===e.order){let e=a*u,n=a*c,i=s*u,r=s*c;t[0]=o*u,t[4]=i*l-n,t[8]=e*l+r,t[1]=o*c,t[5]=r*l+e,t[9]=n*l-i,t[2]=-l,t[6]=s*o,t[10]=a*o}else if("YZX"===e.order){let e=a*o,n=a*l,i=s*o,r=s*l;t[0]=o*u,t[4]=r-e*c,t[8]=i*c+n,t[1]=c,t[5]=a*u,t[9]=-s*u,t[2]=-l*u,t[6]=n*c+i,t[10]=e-r*c}
vendor: 5,506 bytes, line 13
13else if("XZY"===e.order){let e=a*o,n=a*l,i=s*o,r=s*l;t[0]=o*u,t[4]=-c,t[8]=l*u,t[1]=e*c+r,t[5]=a*u,t[9]=n*c-i,t[2]=i*c-n,t[6]=s*u,t[10]=r*c+e}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose(nX,e,nQ)}lookAt(e,t,n){let i=this.elements;return n1.subVectors(e,t),0===n1.lengthSq()&&(n1.z=1),n1.normalize(),nJ.crossVectors(n,n1),0===nJ.lengthSq()&&(1===Math.abs(n.z)?n1.x+=1e-4:n1.z+=1e-4,n1.normalize(),nJ.crossVectors(n,n1)),nJ.normalize(),n0.crossVectors(n1,nJ),i[0]=nJ.x,i[4]=n0.x,i[8]=n1.x,i[1]=nJ.y,i[5]=n0.y,i[9]=n1.y,i[2]=nJ.z,i[6]=n0.z,i[10]=n1.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){let n=e.elements,i=t.elements,r=this.elements,a=n[0],s=n[4],o=n[8],l=n[12],u=n[1],c=n[5],d=n[9],h=n[13],f=n[2],p=n[6],m=n[10],g=n[14],v=n[3],y=n[7],_=n[11],b=n[15],x=i[0],C=i[4],E=i[8],w=i[12],T=i[1],S=i[5],L=i[9],P=i[13],M=i[2],A=i[6],I=i[10],R=i[14],k=i[3],D=i[7],N=i[11],F=i[15];return r[0]=a*x+s*T+o*M+l*k,r[4]=a*C+s*S+o*A+l*D,r[8]=a*E+s*L+o*I+l*N,r[12]=a*w+s*P+o*R+l*F,r[1]=u*x+c*T+d*M+h*k,r[5]=u*C+c*S+d*A+h*D,r[9]=u*E+c*L+d*I+h*N,r[13]=u*w+c*P+d*R+h*F,r[2]=f*x+p*T+m*M+g*k,r[6]=f*C+p*S+m*A+g*D,r[10]=f*E+p*L+m*I+g*N,r[14]=f*w+p*P+m*R+g*F,r[3]=v*x+y*T+_*M+b*k,r[7]=v*C+y*S+_*A+b*D,r[11]=v*E+y*L+_*I+b*N,r[15]=v*w+y*P+_*R+b*F,this}multiplyScalar(e){let t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}determinant(){let e=this.elements,t=e[0],n=e[4],i=e[8],r=e[12],a=e[1],s=e[5],o=e[9],l=e[13],u=e[2],c=e[6],d=e[10],h=e[14],f=e[3];return f*(+r*o*c-i*l*c-r*s*d+n*l*d+i*s*h-n*o*h)+e[7]*(+t*o*h-t*l*d+r*a*d-i*a*h+i*l*u-r*o*u)+e[11]*(+t*l*c-t*s*h-r*a*c+n*a*h+r*s*u-n*l*u)+e[15]*(-i*s*u-t*o*c+t*s*d+i*a*c-n*a*d+n*o*u)}transpose(){let e;let t=this.elements;return e=t[1],t[1]=t[4],t[4]=e,e=t[2],t[2]=t[8],t[8]=e,e=t[6],t[6]=t[9],t[9]=e,e=t[3],t[3]=t[12],t[12]=e,e=t[7],t[7]=t[13],t[13]=e,e=t[11],t[11]=t[14],t[14]=e,this}setPosition(e,t,n){let i=this.elements;return e.isVector3?(i[12]=e.x,i[13]=e.y,i[14]=e.z):(i[12]=e,i[13]=t,i[14]=n),this}invert(){let e=this.elements,t=e[0],n=e[1],i=e[2],r=e[3],a=e[4],s=e[5],o=e[6],l=e[7],u=e[8],c=e[9],d=e[10],h=e[11],f=e[12],p=e[13],m=e[14],g=e[15],v=c*m*l-p*d*l+p*o*h-s*m*h-c*o*g+s*d*g,y=f*d*l-u*m*l-f*o*h+a*m*h+u*o*g-a*d*g,_=u*p*l-f*c*l+f*s*h-a*p*h-u*s*g+a*c*g,b=f*c*o-u*p*o-f*s*d+a*p*d+u*s*m-a*c*m,x=t*v+n*y+i*_+r*b;if(0===x)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);let C=1/x;return e[0]=v*C,e[1]=(p*d*r-c*m*r-p*i*h+n*m*h+c*i*g-n*d*g)*C,e[2]=(s*m*r-p*o*r+p*i*l-n*m*l-s*i*g+n*o*g)*C,e[3]=(c*o*r-s*d*r-c*i*l+n*d*l+s*i*h-n*o*h)*C,e[4]=y*C,e[5]=(u*m*r-f*d*r+f*i*h-t*m*h-u*i*g+t*d*g)*C,e[6]=(f*o*r-a*m*r-f*i*l+t*m*l+a*i*g-t*o*g)*C,e[7]=(a*d*r-u*o*r+u*i*l-t*d*l-a*i*h+t*o*h)*C,e[8]=_*C,e[9]=(f*c*r-u*p*r-f*n*h+t*p*h+u*n*g-t*c*g)*C,e[10]=(a*p*r-f*s*r+f*n*l-t*p*l-a*n*g+t*s*g)*C,e[11]=(u*s*r-a*c*r-u*n*l+t*c*l+a*n*h-t*s*h)*C,e[12]=b*C,e[13]=(u*p*i-f*c*i+f*n*d-t*p*d-u*n*m+t*c*m)*C,e[14]=(f*s*i-a*p*i-f*n*o+t*p*o+a*n*m-t*s*m)*C,e[15]=(a*c*i-u*s*i+u*n*o-t*c*o-a*n*d+t*s*d)*C,this}scale(e){let t=this.elements,n=e.x,i=e.y,r=e.z;return t[0]*=n,t[4]*=i,t[8]*=r,t[1]*=n,t[5]*=i,t[9]*=r,t[2]*=n,t[6]*=i,t[10]*=r,t[3]*=n,t[7]*=i,t[11]*=r,this}getMaxScaleOnAxis(){let e=this.elements;return Math.sqrt(Math.max(e[0]*e[0]+e[1]*e[1]+e[2]*e[2],e[4]*e[4]+e[5]*e[5]+e[6]*e[6],e[8]*e[8]+e[9]*e[9]+e[10]*e[10]))}makeTranslation(e,t,n){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,t,0,0,1,n,0,0,0,1),this}makeRotationX(e){let t=Math.cos(e),n=Math.sin(e);return this.set(1,0,0,0,0,t,-n,0,0,n,t,0,0,0,0,1),this}makeRotationY(e){let t=Math.cos(e),n=Math.sin(e);return this.set(t,0,n,0,0,1,0,0,-n,0,t,0,0,0,0,1),this}makeRotationZ(e){let t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,0,n,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){let n=Math.cos(t),i=Math.sin(t),r=1-n,a=e.x,s=e.y,o=e.z,l=r*a,u=r*s;return this.set(l*a+n,l*s-i*o,l*o+i*s,0,l*s+i*o,u*s+n,u*o-i*a,0,l*o-i*s,u*o+i*a,r*o*o+n,0,0,0,0,1),this}makeScale(e,t,n){return this.set(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1),this}makeShear(e,t,n,i,r,a){return this.set(1,n,r,0,e,1,a,0,t,i,1,0,0,0,0,1),this}compose(e,t,n){let i=this.elements,r=t._x,a=t._y,s=t._z,o=t._w,l=r+r,u=a+a,c=s+s,d=r*l,h=r*u,f=r*c,p=a*u,m=a*c,g=s*c,v=o*l,y=o*u,_=o*c,b=n.x,x=n.y,C=n.z;return i[0]=(1-(p+g))*b,i[1]=(h+_)*b,i[2]=(f-y)*b,i[3]=0,i[4]=(h-_)*x,i[5]=(1-(d+g))*x,i[6]=(m+v)*x,i[7]=0,i[8]=(f+y)*C,i[9]=(m-v)*C,i[10]=(1-(d+p))*C,i[11]=0,i[12]=e.x,i[13]=e.y,i[14]=e.z,i[15]=1,this}decompose(e,t,n){let i=this.elements,r=nY.set(i[0],i[1],i[2]).length(),a=nY.set(i[4],i[5],i[6]).length(),s=nY.set(i[8],i[9],i[10]).length();0>this.determinant()&&(r=-r),e.x=i[12],e.y=i[13],e.z=i[14],nK.copy(this);let o=1/r,l=1/a,u=1/s;return nK.elements[0]*=o,nK.elements[1]*=o,nK.elements[2]*=o,nK.elements[4]*=l,nK.elements[5]*=l,nK.elements[6]*=l,nK.elements[8]*=u,nK.elements[9]*=u,nK.elements[10]*=u,t.setFromRotationMatrix(nK),n.x=r,n.y=a,n.z=s,this}makePerspective(e,t,n,i,r,a,s=tB){let o,l;let u=this.elements,c=2*r/(t-e),d=2*r/(n-i),h=(t+e)/(t-e),f=(n+i)/(n-i);if(s===tB)o=-(a+r)/(a-r),l=-2*a*r/(a-r);else if(s===tH)o=-a/(a-r),l=-a*r/(a-r);else throw Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+s);return u[0]=c,u[4]=0,u[8]=h,u[12]=0,u[1]=0,u[5]=d,u[9]=f,u[13]=0,u[2]=0,u[6]=0,u[10]=o,u[14]=l,u[3]=0,u[7]=0,u[11]=-1,u[15]=0,this}
vendor: 5,528 bytes, line 13
13makeOrthographic(e,t,n,i,r,a,s=tB){let o,l;let u=this.elements,c=1/(t-e),d=1/(n-i),h=1/(a-r),f=(t+e)*c,p=(n+i)*d;if(s===tB)o=(a+r)*h,l=-2*h;else if(s===tH)o=r*h,l=-1*h;else throw Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+s);return u[0]=2*c,u[4]=0,u[8]=0,u[12]=-f,u[1]=0,u[5]=2*d,u[9]=0,u[13]=-p,u[2]=0,u[6]=0,u[10]=l,u[14]=-o,u[3]=0,u[7]=0,u[11]=0,u[15]=1,this}equals(e){let t=this.elements,n=e.elements;for(let e=0;e<16;e++)if(t[e]!==n[e])return!1;return!0}fromArray(e,t=0){for(let n=0;n<16;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){let n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e[t+9]=n[9],e[t+10]=n[10],e[t+11]=n[11],e[t+12]=n[12],e[t+13]=n[13],e[t+14]=n[14],e[t+15]=n[15],e}}let nY=new t1,nK=new nZ,nX=new t1(0,0,0),nQ=new t1(1,1,1),nJ=new t1,n0=new t1,n1=new t1,n2=new nZ,n3=new t0;class n5{constructor(e=0,t=0,n=0,i=n5.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=t,this._z=n,this._order=i}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,t,n,i=this._order){return this._x=e,this._y=t,this._z=n,this._order=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,t=this._order,n=!0){let i=e.elements,r=i[0],a=i[4],s=i[8],o=i[1],l=i[5],u=i[9],c=i[2],d=i[6],h=i[10];switch(t){case"XYZ":this._y=Math.asin(tZ(s,-1,1)),.9999999>Math.abs(s)?(this._x=Math.atan2(-u,h),this._z=Math.atan2(-a,r)):(this._x=Math.atan2(d,l),this._z=0);break;case"YXZ":this._x=Math.asin(-tZ(u,-1,1)),.9999999>Math.abs(u)?(this._y=Math.atan2(s,h),this._z=Math.atan2(o,l)):(this._y=Math.atan2(-c,r),this._z=0);break;case"ZXY":this._x=Math.asin(tZ(d,-1,1)),.9999999>Math.abs(d)?(this._y=Math.atan2(-c,h),this._z=Math.atan2(-a,l)):(this._y=0,this._z=Math.atan2(o,r));break;case"ZYX":this._y=Math.asin(-tZ(c,-1,1)),.9999999>Math.abs(c)?(this._x=Math.atan2(d,h),this._z=Math.atan2(o,r)):(this._x=0,this._z=Math.atan2(-a,l));break;case"YZX":this._z=Math.asin(tZ(o,-1,1)),.9999999>Math.abs(o)?(this._x=Math.atan2(-u,l),this._y=Math.atan2(-c,r)):(this._x=0,this._y=Math.atan2(s,h));break;case"XZY":this._z=Math.asin(-tZ(a,-1,1)),.9999999>Math.abs(a)?(this._x=Math.atan2(d,l),this._y=Math.atan2(s,r)):(this._x=Math.atan2(-u,h),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+t)}return this._order=t,!0===n&&this._onChangeCallback(),this}setFromQuaternion(e,t,n){return n2.makeRotationFromQuaternion(e),this.setFromRotationMatrix(n2,t,n)}setFromVector3(e,t=this._order){return this.set(e.x,e.y,e.z,t)}reorder(e){return n3.setFromEuler(this),this.setFromQuaternion(n3,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],void 0!==e[3]&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}n5.DEFAULT_ORDER="XYZ";class n4{constructor(){this.mask=1}set(e){this.mask=(1<<e|0)>>>0}enable(e){this.mask|=1<<e|0}enableAll(){this.mask=-1}toggle(e){this.mask^=1<<e|0}disable(e){this.mask&=~(1<<e|0)}disableAll(){this.mask=0}test(e){return(this.mask&e.mask)!=0}isEnabled(e){return(this.mask&(1<<e|0))!=0}}let n6=0,n8=new t1,n7=new t0,n9=new nZ,ie=new t1,it=new t1,ii=new t1,ir=new t0,ia=new t1(1,0,0),is=new t1(0,1,0),io=new t1(0,0,1),il={type:"added"},iu={type:"removed"},ic={type:"childadded",child:null},id={type:"childremoved",child:null};class ih extends tG{constructor(){super(),this.isObject3D=!0,Object.defineProperty(this,"id",{value:n6++}),this.uuid=t$(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=ih.DEFAULT_UP.clone();let e=new t1,t=new n5,n=new t0,i=new t1(1,1,1);function r(){n.setFromEuler(t,!1)}function a(){t.setFromQuaternion(n,void 0,!1)}t._onChange(r),n._onChange(a),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:e},rotation:{configurable:!0,enumerable:!0,value:t},quaternion:{configurable:!0,enumerable:!0,value:n},scale:{configurable:!0,enumerable:!0,value:i},modelViewMatrix:{value:new nZ},normalMatrix:{value:new t5}}),this.matrix=new nZ,this.matrixWorld=new nZ,this.matrixAutoUpdate=ih.DEFAULT_MATRIX_AUTO_UPDATE,this.matrixWorldAutoUpdate=ih.DEFAULT_MATRIX_WORLD_AUTO_UPDATE,this.matrixWorldNeedsUpdate=!1,this.layers=new n4,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.animations=[],this.customDepthMaterial=void 0,this.customDistanceMaterial=void 0,this.userData={}}onBeforeShadow(){}onAfterShadow(){}onBeforeRender(){}onAfterRender(){}applyMatrix4(e){this.matrixAutoUpdate&&this.updateMatrix(),this.matrix.premultiply(e),this.matrix.decompose(this.position,this.quaternion,this.scale)}applyQuaternion(e){return this.quaternion.premultiply(e),this}setRotationFromAxisAngle(e,t){this.quaternion.setFromAxisAngle(e,t)}setRotationFromEuler(e){this.quaternion.setFromEuler(e,!0)}
vendor: 19,278 bytes, line 13
13setRotationFromMatrix(e){this.quaternion.setFromRotationMatrix(e)}setRotationFromQuaternion(e){this.quaternion.copy(e)}rotateOnAxis(e,t){return n7.setFromAxisAngle(e,t),this.quaternion.multiply(n7),this}rotateOnWorldAxis(e,t){return n7.setFromAxisAngle(e,t),this.quaternion.premultiply(n7),this}rotateX(e){return this.rotateOnAxis(ia,e)}rotateY(e){return this.rotateOnAxis(is,e)}rotateZ(e){return this.rotateOnAxis(io,e)}translateOnAxis(e,t){return n8.copy(e).applyQuaternion(this.quaternion),this.position.add(n8.multiplyScalar(t)),this}translateX(e){return this.translateOnAxis(ia,e)}translateY(e){return this.translateOnAxis(is,e)}translateZ(e){return this.translateOnAxis(io,e)}localToWorld(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(this.matrixWorld)}worldToLocal(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(n9.copy(this.matrixWorld).invert())}lookAt(e,t,n){e.isVector3?ie.copy(e):ie.set(e,t,n);let i=this.parent;this.updateWorldMatrix(!0,!1),it.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?n9.lookAt(it,ie,this.up):n9.lookAt(ie,it,this.up),this.quaternion.setFromRotationMatrix(n9),i&&(n9.extractRotation(i.matrixWorld),n7.setFromRotationMatrix(n9),this.quaternion.premultiply(n7.invert()))}add(e){if(arguments.length>1){for(let e=0;e<arguments.length;e++)this.add(arguments[e]);return this}return e===this?console.error("THREE.Object3D.add: object can't be added as a child of itself.",e):e&&e.isObject3D?(e.removeFromParent(),e.parent=this,this.children.push(e),e.dispatchEvent(il),ic.child=e,this.dispatchEvent(ic),ic.child=null):console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.",e),this}remove(e){if(arguments.length>1){for(let e=0;e<arguments.length;e++)this.remove(arguments[e]);return this}let t=this.children.indexOf(e);return -1!==t&&(e.parent=null,this.children.splice(t,1),e.dispatchEvent(iu),id.child=e,this.dispatchEvent(id),id.child=null),this}removeFromParent(){let e=this.parent;return null!==e&&e.remove(this),this}clear(){return this.remove(...this.children)}attach(e){return this.updateWorldMatrix(!0,!1),n9.copy(this.matrixWorld).invert(),null!==e.parent&&(e.parent.updateWorldMatrix(!0,!1),n9.multiply(e.parent.matrixWorld)),e.applyMatrix4(n9),e.removeFromParent(),e.parent=this,this.children.push(e),e.updateWorldMatrix(!1,!0),e.dispatchEvent(il),ic.child=e,this.dispatchEvent(ic),ic.child=null,this}getObjectById(e){return this.getObjectByProperty("id",e)}getObjectByName(e){return this.getObjectByProperty("name",e)}getObjectByProperty(e,t){if(this[e]===t)return this;for(let n=0,i=this.children.length;n<i;n++){let i=this.children[n].getObjectByProperty(e,t);if(void 0!==i)return i}}getObjectsByProperty(e,t,n=[]){this[e]===t&&n.push(this);let i=this.children;for(let r=0,a=i.length;r<a;r++)i[r].getObjectsByProperty(e,t,n);return n}getWorldPosition(e){return this.updateWorldMatrix(!0,!1),e.setFromMatrixPosition(this.matrixWorld)}getWorldQuaternion(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(it,e,ii),e}getWorldScale(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(it,ir,e),e}getWorldDirection(e){this.updateWorldMatrix(!0,!1);let t=this.matrixWorld.elements;return e.set(t[8],t[9],t[10]).normalize()}raycast(){}traverse(e){e(this);let t=this.children;for(let n=0,i=t.length;n<i;n++)t[n].traverse(e)}traverseVisible(e){if(!1===this.visible)return;e(this);let t=this.children;for(let n=0,i=t.length;n<i;n++)t[n].traverseVisible(e)}traverseAncestors(e){let t=this.parent;null!==t&&(e(t),t.traverseAncestors(e))}updateMatrix(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0}updateMatrixWorld(e){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||e)&&(!0===this.matrixWorldAutoUpdate&&(null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix)),this.matrixWorldNeedsUpdate=!1,e=!0);let t=this.children;for(let n=0,i=t.length;n<i;n++)t[n].updateMatrixWorld(e)}updateWorldMatrix(e,t){let n=this.parent;if(!0===e&&null!==n&&n.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),!0===this.matrixWorldAutoUpdate&&(null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix)),!0===t){let e=this.children;for(let t=0,n=e.length;t<n;t++)e[t].updateWorldMatrix(!1,!0)}}toJSON(e){let t=void 0===e||"string"==typeof e,n={};t&&(e={geometries:{},materials:{},textures:{},images:{},shapes:{},skeletons:{},animations:{},nodes:{}},n.metadata={version:4.7,type:"Object",generator:"Object3D.toJSON"});let i={};function r(t,n){return void 0===t[n.uuid]&&(t[n.uuid]=n.toJSON(e)),n.uuid}if(i.uuid=this.uuid,i.type=this.type,""!==this.name&&(i.name=this.name),!0===this.castShadow&&(i.castShadow=!0),!0===this.receiveShadow&&(i.receiveShadow=!0),!1===this.visible&&(i.visible=!1),!1===this.frustumCulled&&(i.frustumCulled=!1),0!==this.renderOrder&&(i.renderOrder=this.renderOrder),Object.keys(this.userData).length>0&&(i.userData=this.userData),i.layers=this.layers.mask,i.matrix=this.matrix.toArray(),i.up=this.up.toArray(),!1===this.matrixAutoUpdate&&(i.matrixAutoUpdate=!1),this.isInstancedMesh&&(i.type="InstancedMesh",i.count=this.count,i.instanceMatrix=this.instanceMatrix.toJSON(),null!==this.instanceColor&&(i.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(i.type="BatchedMesh",i.perObjectFrustumCulled=this.perObjectFrustumCulled,i.sortObjects=this.sortObjects,i.drawRanges=this._drawRanges,i.reservedRanges=this._reservedRanges,i.geometryInfo=this._geometryInfo.map(e=>({...e,boundingBox:e.boundingBox?e.boundingBox.toJSON():void 0,boundingSphere:e.boundingSphere?e.boundingSphere.toJSON():void 0})),i.instanceInfo=this._instanceInfo.map(e=>({...e})),i.availableInstanceIds=this._availableInstanceIds.slice(),i.availableGeometryIds=this._availableGeometryIds.slice(),i.nextIndexStart=this._nextIndexStart,i.nextVertexStart=this._nextVertexStart,i.geometryCount=this._geometryCount,i.maxInstanceCount=this._maxInstanceCount,i.maxVertexCount=this._maxVertexCount,i.maxIndexCount=this._maxIndexCount,i.geometryInitialized=this._geometryInitialized,i.matricesTexture=this._matricesTexture.toJSON(e),i.indirectTexture=this._indirectTexture.toJSON(e),null!==this._colorsTexture&&(i.colorsTexture=this._colorsTexture.toJSON(e)),null!==this.boundingSphere&&(i.boundingSphere=this.boundingSphere.toJSON()),null!==this.boundingBox&&(i.boundingBox=this.boundingBox.toJSON())),this.isScene)this.background&&(this.background.isColor?i.background=this.background.toJSON():this.background.isTexture&&(i.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&!0!==this.environment.isRenderTargetTexture&&(i.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){i.geometry=r(e.geometries,this.geometry);let t=this.geometry.parameters;if(void 0!==t&&void 0!==t.shapes){let n=t.shapes;if(Array.isArray(n))for(let t=0,i=n.length;t<i;t++){let i=n[t];r(e.shapes,i)}else r(e.shapes,n)}}if(this.isSkinnedMesh&&(i.bindMode=this.bindMode,i.bindMatrix=this.bindMatrix.toArray(),void 0!==this.skeleton&&(r(e.skeletons,this.skeleton),i.skeleton=this.skeleton.uuid)),void 0!==this.material){if(Array.isArray(this.material)){let t=[];for(let n=0,i=this.material.length;n<i;n++)t.push(r(e.materials,this.material[n]));i.material=t}else i.material=r(e.materials,this.material)}if(this.children.length>0){i.children=[];for(let t=0;t<this.children.length;t++)i.children.push(this.children[t].toJSON(e).object)}if(this.animations.length>0){i.animations=[];for(let t=0;t<this.animations.length;t++){let n=this.animations[t];i.animations.push(r(e.animations,n))}}if(t){let t=a(e.geometries),i=a(e.materials),r=a(e.textures),s=a(e.images),o=a(e.shapes),l=a(e.skeletons),u=a(e.animations),c=a(e.nodes);t.length>0&&(n.geometries=t),i.length>0&&(n.materials=i),r.length>0&&(n.textures=r),s.length>0&&(n.images=s),o.length>0&&(n.shapes=o),l.length>0&&(n.skeletons=l),u.length>0&&(n.animations=u),c.length>0&&(n.nodes=c)}return n.object=i,n;function a(e){let t=[];for(let n in e){let i=e[n];delete i.metadata,t.push(i)}return t}}clone(e){return new this.constructor().copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),!0===t)for(let t=0;t<e.children.length;t++){let n=e.children[t];this.add(n.clone())}return this}}ih.DEFAULT_UP=new t1(0,1,0),ih.DEFAULT_MATRIX_AUTO_UPDATE=!0,ih.DEFAULT_MATRIX_WORLD_AUTO_UPDATE=!0;let ip=new t1,im=new t1,ig=new t1,iv=new t1,iy=new t1,i_=new t1,ib=new t1,ix=new t1,iC=new t1,iE=new t1,iw=new ng,iT=new ng,iS=new ng;class iL{constructor(e=new t1,t=new t1,n=new t1){this.a=e,this.b=t,this.c=n}static getNormal(e,t,n,i){i.subVectors(n,t),ip.subVectors(e,t),i.cross(ip);let r=i.lengthSq();return r>0?i.multiplyScalar(1/Math.sqrt(r)):i.set(0,0,0)}static getBarycoord(e,t,n,i,r){ip.subVectors(i,t),im.subVectors(n,t),ig.subVectors(e,t);let a=ip.dot(ip),s=ip.dot(im),o=ip.dot(ig),l=im.dot(im),u=im.dot(ig),c=a*l-s*s;if(0===c)return r.set(0,0,0),null;let d=1/c,h=(l*o-s*u)*d,f=(a*u-s*o)*d;return r.set(1-h-f,f,h)}static containsPoint(e,t,n,i){return null!==this.getBarycoord(e,t,n,i,iv)&&iv.x>=0&&iv.y>=0&&iv.x+iv.y<=1}static getInterpolation(e,t,n,i,r,a,s,o){return null===this.getBarycoord(e,t,n,i,iv)?(o.x=0,o.y=0,"z"in o&&(o.z=0),"w"in o&&(o.w=0),null):(o.setScalar(0),o.addScaledVector(r,iv.x),o.addScaledVector(a,iv.y),o.addScaledVector(s,iv.z),o)}static getInterpolatedAttribute(e,t,n,i,r,a){return iw.setScalar(0),iT.setScalar(0),iS.setScalar(0),iw.fromBufferAttribute(e,t),iT.fromBufferAttribute(e,n),iS.fromBufferAttribute(e,i),a.setScalar(0),a.addScaledVector(iw,r.x),a.addScaledVector(iT,r.y),a.addScaledVector(iS,r.z),a}static isFrontFacing(e,t,n,i){return ip.subVectors(n,t),im.subVectors(e,t),0>ip.cross(im).dot(i)}set(e,t,n){return this.a.copy(e),this.b.copy(t),this.c.copy(n),this}setFromPointsAndIndices(e,t,n,i){return this.a.copy(e[t]),this.b.copy(e[n]),this.c.copy(e[i]),this}setFromAttributeAndIndices(e,t,n,i){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,n),this.c.fromBufferAttribute(e,i),this}clone(){return new this.constructor().copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return ip.subVectors(this.c,this.b),im.subVectors(this.a,this.b),.5*ip.cross(im).length()}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return iL.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,t){return iL.getBarycoord(e,this.a,this.b,this.c,t)}getInterpolation(e,t,n,i,r){return iL.getInterpolation(e,this.a,this.b,this.c,t,n,i,r)}containsPoint(e){return iL.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return iL.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){let n,i;let r=this.a,a=this.b,s=this.c;iy.subVectors(a,r),i_.subVectors(s,r),ix.subVectors(e,r);let o=iy.dot(ix),l=i_.dot(ix);if(o<=0&&l<=0)return t.copy(r);iC.subVectors(e,a);let u=iy.dot(iC),c=i_.dot(iC);if(u>=0&&c<=u)return t.copy(a);let d=o*c-u*l;if(d<=0&&o>=0&&u<=0)return n=o/(o-u),t.copy(r).addScaledVector(iy,n);iE.subVectors(e,s);let h=iy.dot(iE),f=i_.dot(iE);if(f>=0&&h<=f)return t.copy(s);let p=h*l-o*f;if(p<=0&&l>=0&&f<=0)return i=l/(l-f),t.copy(r).addScaledVector(i_,i);let m=u*f-h*c;if(m<=0&&c-u>=0&&h-f>=0)return ib.subVectors(s,a),i=(c-u)/(c-u+(h-f)),t.copy(a).addScaledVector(ib,i);let g=1/(m+p+d);return n=p*g,i=d*g,t.copy(r).addScaledVector(iy,n).addScaledVector(i_,i)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}let iP={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},iM={h:0,s:0,l:0},iA={h:0,s:0,l:0};function iI(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*6*(2/3-n):e}class iR{constructor(e,t,n){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,n)}set(e,t,n){if(void 0===t&&void 0===n){let t=e;t&&t.isColor?this.copy(t):"number"==typeof t?this.setHex(t):"string"==typeof t&&this.setStyle(t)}else this.setRGB(e,t,n);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=tT){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(255&e)/255,ns.colorSpaceToWorking(this,t),this}setRGB(e,t,n,i=ns.workingColorSpace){return this.r=e,this.g=t,this.b=n,ns.colorSpaceToWorking(this,i),this}setHSL(e,t,n,i=ns.workingColorSpace){if(e=tY(e,1),t=tZ(t,0,1),n=tZ(n,0,1),0===t)this.r=this.g=this.b=n;else{let i=n<=.5?n*(1+t):n+t-n*t,r=2*n-i;this.r=iI(r,i,e+1/3),this.g=iI(r,i,e),this.b=iI(r,i,e-1/3)}return ns.colorSpaceToWorking(this,i),this}setStyle(e,t=tT){let n;function i(t){void 0!==t&&1>parseFloat(t)&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}if(n=/^(\w+)\(([^\)]*)\)/.exec(e)){let r;let a=n[1],s=n[2];switch(a){case"rgb":case"rgba":if(r=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(s))return i(r[4]),this.setRGB(Math.min(255,parseInt(r[1],10))/255,Math.min(255,parseInt(r[2],10))/255,Math.min(255,parseInt(r[3],10))/255,t);if(r=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(s))return i(r[4]),this.setRGB(Math.min(100,parseInt(r[1],10))/100,Math.min(100,parseInt(r[2],10))/100,Math.min(100,parseInt(r[3],10))/100,t);break;case"hsl":case"hsla":if(r=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(s))return i(r[4]),this.setHSL(parseFloat(r[1])/360,parseFloat(r[2])/100,parseFloat(r[3])/100,t);break;default:console.warn("THREE.Color: Unknown color model "+e)}}else if(n=/^\#([A-Fa-f\d]+)$/.exec(e)){let i=n[1],r=i.length;if(3===r)return this.setRGB(parseInt(i.charAt(0),16)/15,parseInt(i.charAt(1),16)/15,parseInt(i.charAt(2),16)/15,t);if(6===r)return this.setHex(parseInt(i,16),t);console.warn("THREE.Color: Invalid hex color "+e)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=tT){let n=iP[e.toLowerCase()];return void 0!==n?this.setHex(n,t):console.warn("THREE.Color: Unknown color "+e),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=no(e.r),this.g=no(e.g),this.b=no(e.b),this}copyLinearToSRGB(e){return this.r=nl(e.r),this.g=nl(e.g),this.b=nl(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=tT){return ns.workingToColorSpace(ik.copy(this),e),65536*Math.round(tZ(255*ik.r,0,255))+256*Math.round(tZ(255*ik.g,0,255))+Math.round(tZ(255*ik.b,0,255))}getHexString(e=tT){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=ns.workingColorSpace){let n,i;ns.workingToColorSpace(ik.copy(this),t);let r=ik.r,a=ik.g,s=ik.b,o=Math.max(r,a,s),l=Math.min(r,a,s),u=(l+o)/2;if(l===o)n=0,i=0;else{let e=o-l;switch(i=u<=.5?e/(o+l):e/(2-o-l),o){case r:n=(a-s)/e+(a<s?6:0);break;case a:n=(s-r)/e+2;break;case s:n=(r-a)/e+4}n/=6}return e.h=n,e.s=i,e.l=u,e}getRGB(e,t=ns.workingColorSpace){return ns.workingToColorSpace(ik.copy(this),t),e.r=ik.r,e.g=ik.g,e.b=ik.b,e}getStyle(e=tT){ns.workingToColorSpace(ik.copy(this),e);let t=ik.r,n=ik.g,i=ik.b;return e!==tT?`color(${e} ${t.toFixed(3)} ${n.toFixed(3)} ${i.toFixed(3)})`:`rgb(${Math.round(255*t)},${Math.round(255*n)},${Math.round(255*i)})`}offsetHSL(e,t,n){return this.getHSL(iM),this.setHSL(iM.h+e,iM.s+t,iM.l+n)}add(e){return this.r+=e.r,this.g+=e.g,this.b+=e.b,this}addColors(e,t){return this.r=e.r+t.r,this.g=e.g+t.g,this.b=e.b+t.b,this}addScalar(e){return this.r+=e,this.g+=e,this.b+=e,this}sub(e){return this.r=Math.max(0,this.r-e.r),this.g=Math.max(0,this.g-e.g),this.b=Math.max(0,this.b-e.b),this}multiply(e){return this.r*=e.r,this.g*=e.g,this.b*=e.b,this}multiplyScalar(e){return this.r*=e,this.g*=e,this.b*=e,this}lerp(e,t){return this.r+=(e.r-this.r)*t,this.g+=(e.g-this.g)*t,this.b+=(e.b-this.b)*t,this}
vendor: 2,720 bytes, line 13
13lerpColors(e,t,n){return this.r=e.r+(t.r-e.r)*n,this.g=e.g+(t.g-e.g)*n,this.b=e.b+(t.b-e.b)*n,this}lerpHSL(e,t){this.getHSL(iM),e.getHSL(iA);let n=tK(iM.h,iA.h,t),i=tK(iM.s,iA.s,t),r=tK(iM.l,iA.l,t);return this.setHSL(n,i,r),this}setFromVector3(e){return this.r=e.x,this.g=e.y,this.b=e.z,this}applyMatrix3(e){let t=this.r,n=this.g,i=this.b,r=e.elements;return this.r=r[0]*t+r[3]*n+r[6]*i,this.g=r[1]*t+r[4]*n+r[7]*i,this.b=r[2]*t+r[5]*n+r[8]*i,this}equals(e){return e.r===this.r&&e.g===this.g&&e.b===this.b}fromArray(e,t=0){return this.r=e[t],this.g=e[t+1],this.b=e[t+2],this}toArray(e=[],t=0){return e[t]=this.r,e[t+1]=this.g,e[t+2]=this.b,e}fromBufferAttribute(e,t){return this.r=e.getX(t),this.g=e.getY(t),this.b=e.getZ(t),this}toJSON(){return this.getHex()}*[Symbol.iterator](){yield this.r,yield this.g,yield this.b}}let ik=new iR;iR.NAMES=iP;let iD=0;class iN extends tG{constructor(){super(),this.isMaterial=!0,Object.defineProperty(this,"id",{value:iD++}),this.uuid=t$(),this.name="",this.type="Material",this.blending=_,this.side=m,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.alphaHash=!1,this.blendSrc=k,this.blendDst=D,this.blendEquation=w,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.blendColor=new iR(0,0,0),this.blendAlpha=0,this.depthFunc=$,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=tA,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=tM,this.stencilZFail=tM,this.stencilZPass=tM,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaToCoverage=!1,this.premultipliedAlpha=!1,this.forceSinglePass=!1,this.allowOverride=!0,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0,this._alphaTest=0}get alphaTest(){return this._alphaTest}set alphaTest(e){this._alphaTest>0!=e>0&&this.version++,this._alphaTest=e}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(void 0!==e)for(let t in e){let n=e[t];if(void 0===n){console.warn(`THREE.Material: parameter '${t}' has value of undefined.`);continue}let i=this[t];if(void 0===i){console.warn(`THREE.Material: '${t}' is not a property of THREE.${this.type}.`);continue}i&&i.isColor?i.set(n):i&&i.isVector3&&n&&n.isVector3?i.copy(n):this[t]=n}}toJSON(e){let t=void 0===e||"string"==typeof e;t&&(e={textures:{},images:{}});let n={metadata:{version:4.7,type:"Material",generator:"Material.toJSON"}};function i(e){let t=[];for(let n in e){let i=e[n];delete i.metadata,t.push(i)}return t}
vendor: 11,266 bytes, line 13
13if(n.uuid=this.uuid,n.type=this.type,""!==this.name&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),void 0!==this.roughness&&(n.roughness=this.roughness),void 0!==this.metalness&&(n.metalness=this.metalness),void 0!==this.sheen&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),void 0!==this.sheenRoughness&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),void 0!==this.emissiveIntensity&&1!==this.emissiveIntensity&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),void 0!==this.specularIntensity&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),void 0!==this.shininess&&(n.shininess=this.shininess),void 0!==this.clearcoat&&(n.clearcoat=this.clearcoat),void 0!==this.clearcoatRoughness&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),void 0!==this.dispersion&&(n.dispersion=this.dispersion),void 0!==this.iridescence&&(n.iridescence=this.iridescence),void 0!==this.iridescenceIOR&&(n.iridescenceIOR=this.iridescenceIOR),void 0!==this.iridescenceThicknessRange&&(n.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(n.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(n.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),void 0!==this.anisotropy&&(n.anisotropy=this.anisotropy),void 0!==this.anisotropyRotation&&(n.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(n.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(e).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(e).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(e).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(e).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(e).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(e).uuid,void 0!==this.combine&&(n.combine=this.combine)),void 0!==this.envMapRotation&&(n.envMapRotation=this.envMapRotation.toArray()),void 0!==this.envMapIntensity&&(n.envMapIntensity=this.envMapIntensity),void 0!==this.reflectivity&&(n.reflectivity=this.reflectivity),void 0!==this.refractionRatio&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(e).uuid),void 0!==this.transmission&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(e).uuid),void 0!==this.thickness&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(e).uuid),void 0!==this.attenuationDistance&&this.attenuationDistance!==1/0&&(n.attenuationDistance=this.attenuationDistance),void 0!==this.attenuationColor&&(n.attenuationColor=this.attenuationColor.getHex()),void 0!==this.size&&(n.size=this.size),null!==this.shadowSide&&(n.shadowSide=this.shadowSide),void 0!==this.sizeAttenuation&&(n.sizeAttenuation=this.sizeAttenuation),this.blending!==_&&(n.blending=this.blending),this.side!==m&&(n.side=this.side),!0===this.vertexColors&&(n.vertexColors=!0),this.opacity<1&&(n.opacity=this.opacity),!0===this.transparent&&(n.transparent=!0),this.blendSrc!==k&&(n.blendSrc=this.blendSrc),this.blendDst!==D&&(n.blendDst=this.blendDst),this.blendEquation!==w&&(n.blendEquation=this.blendEquation),null!==this.blendSrcAlpha&&(n.blendSrcAlpha=this.blendSrcAlpha),null!==this.blendDstAlpha&&(n.blendDstAlpha=this.blendDstAlpha),null!==this.blendEquationAlpha&&(n.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(n.blendColor=this.blendColor.getHex()),0!==this.blendAlpha&&(n.blendAlpha=this.blendAlpha),this.depthFunc!==$&&(n.depthFunc=this.depthFunc),!1===this.depthTest&&(n.depthTest=this.depthTest),!1===this.depthWrite&&(n.depthWrite=this.depthWrite),!1===this.colorWrite&&(n.colorWrite=this.colorWrite),255!==this.stencilWriteMask&&(n.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==tA&&(n.stencilFunc=this.stencilFunc),0!==this.stencilRef&&(n.stencilRef=this.stencilRef),255!==this.stencilFuncMask&&(n.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==tM&&(n.stencilFail=this.stencilFail),this.stencilZFail!==tM&&(n.stencilZFail=this.stencilZFail),this.stencilZPass!==tM&&(n.stencilZPass=this.stencilZPass),!0===this.stencilWrite&&(n.stencilWrite=this.stencilWrite),void 0!==this.rotation&&0!==this.rotation&&(n.rotation=this.rotation),!0===this.polygonOffset&&(n.polygonOffset=!0),0!==this.polygonOffsetFactor&&(n.polygonOffsetFactor=this.polygonOffsetFactor),0!==this.polygonOffsetUnits&&(n.polygonOffsetUnits=this.polygonOffsetUnits),void 0!==this.linewidth&&1!==this.linewidth&&(n.linewidth=this.linewidth),void 0!==this.dashSize&&(n.dashSize=this.dashSize),void 0!==this.gapSize&&(n.gapSize=this.gapSize),void 0!==this.scale&&(n.scale=this.scale),!0===this.dithering&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),!0===this.alphaHash&&(n.alphaHash=!0),!0===this.alphaToCoverage&&(n.alphaToCoverage=!0),!0===this.premultipliedAlpha&&(n.premultipliedAlpha=!0),!0===this.forceSinglePass&&(n.forceSinglePass=!0),!0===this.wireframe&&(n.wireframe=!0),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),"round"!==this.wireframeLinecap&&(n.wireframeLinecap=this.wireframeLinecap),"round"!==this.wireframeLinejoin&&(n.wireframeLinejoin=this.wireframeLinejoin),!0===this.flatShading&&(n.flatShading=!0),!1===this.visible&&(n.visible=!1),!1===this.toneMapped&&(n.toneMapped=!1),!1===this.fog&&(n.fog=!1),Object.keys(this.userData).length>0&&(n.userData=this.userData),t){let t=i(e.textures),r=i(e.images);t.length>0&&(n.textures=t),r.length>0&&(n.images=r)}return n}clone(){return new this.constructor().copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;let t=e.clippingPlanes,n=null;if(null!==t){let e=t.length;n=Array(e);for(let i=0;i!==e;++i)n[i]=t[i].clone()}return this.clippingPlanes=n,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(e){!0===e&&this.version++}}class iF extends iN{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new iR(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new n5,this.combine=Q,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}let iO=new t1,ij=new tJ,iU=0;class iV{constructor(e,t,n=!1){if(Array.isArray(e))throw TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,Object.defineProperty(this,"id",{value:iU++}),this.name="",this.array=e,this.itemSize=t,this.count=void 0!==e?e.length/t:0,this.normalized=n,this.usage=tU,this.updateRanges=[],this.gpuType=eA,this.version=0}onUploadCallback(){}set needsUpdate(e){!0===e&&this.version++}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,t,n){e*=this.itemSize,n*=t.itemSize;
vendor: 5,410 bytes, line 13
13for(let i=0,r=this.itemSize;i<r;i++)this.array[e+i]=t.array[n+i];return this}copyArray(e){return this.array.set(e),this}applyMatrix3(e){if(2===this.itemSize)for(let t=0,n=this.count;t<n;t++)ij.fromBufferAttribute(this,t),ij.applyMatrix3(e),this.setXY(t,ij.x,ij.y);else if(3===this.itemSize)for(let t=0,n=this.count;t<n;t++)iO.fromBufferAttribute(this,t),iO.applyMatrix3(e),this.setXYZ(t,iO.x,iO.y,iO.z);return this}applyMatrix4(e){for(let t=0,n=this.count;t<n;t++)iO.fromBufferAttribute(this,t),iO.applyMatrix4(e),this.setXYZ(t,iO.x,iO.y,iO.z);return this}applyNormalMatrix(e){for(let t=0,n=this.count;t<n;t++)iO.fromBufferAttribute(this,t),iO.applyNormalMatrix(e),this.setXYZ(t,iO.x,iO.y,iO.z);return this}transformDirection(e){for(let t=0,n=this.count;t<n;t++)iO.fromBufferAttribute(this,t),iO.transformDirection(e),this.setXYZ(t,iO.x,iO.y,iO.z);return this}set(e,t=0){return this.array.set(e,t),this}getComponent(e,t){let n=this.array[e*this.itemSize+t];return this.normalized&&(n=tX(n,this.array)),n}setComponent(e,t,n){return this.normalized&&(n=tQ(n,this.array)),this.array[e*this.itemSize+t]=n,this}getX(e){let t=this.array[e*this.itemSize];return this.normalized&&(t=tX(t,this.array)),t}setX(e,t){return this.normalized&&(t=tQ(t,this.array)),this.array[e*this.itemSize]=t,this}getY(e){let t=this.array[e*this.itemSize+1];return this.normalized&&(t=tX(t,this.array)),t}setY(e,t){return this.normalized&&(t=tQ(t,this.array)),this.array[e*this.itemSize+1]=t,this}getZ(e){let t=this.array[e*this.itemSize+2];return this.normalized&&(t=tX(t,this.array)),t}setZ(e,t){return this.normalized&&(t=tQ(t,this.array)),this.array[e*this.itemSize+2]=t,this}getW(e){let t=this.array[e*this.itemSize+3];return this.normalized&&(t=tX(t,this.array)),t}setW(e,t){return this.normalized&&(t=tQ(t,this.array)),this.array[e*this.itemSize+3]=t,this}setXY(e,t,n){return e*=this.itemSize,this.normalized&&(t=tQ(t,this.array),n=tQ(n,this.array)),this.array[e+0]=t,this.array[e+1]=n,this}setXYZ(e,t,n,i){return e*=this.itemSize,this.normalized&&(t=tQ(t,this.array),n=tQ(n,this.array),i=tQ(i,this.array)),this.array[e+0]=t,this.array[e+1]=n,this.array[e+2]=i,this}setXYZW(e,t,n,i,r){return e*=this.itemSize,this.normalized&&(t=tQ(t,this.array),n=tQ(n,this.array),i=tQ(i,this.array),r=tQ(r,this.array)),this.array[e+0]=t,this.array[e+1]=n,this.array[e+2]=i,this.array[e+3]=r,this}onUpload(e){return this.onUploadCallback=e,this}clone(){return new this.constructor(this.array,this.itemSize).copy(this)}toJSON(){let e={itemSize:this.itemSize,type:this.array.constructor.name,array:Array.from(this.array),normalized:this.normalized};return""!==this.name&&(e.name=this.name),this.usage!==tU&&(e.usage=this.usage),e}}class iB extends iV{constructor(e,t,n){super(new Uint16Array(e),t,n)}}class iH extends iV{constructor(e,t,n){super(new Uint32Array(e),t,n)}}class iG extends iV{constructor(e,t,n){super(new Float32Array(e),t,n)}}let iz=0,iq=new nZ,iW=new ih,i$=new t1,iZ=new nx,iY=new nx,iK=new t1;class iX extends tG{constructor(){super(),this.isBufferGeometry=!0,Object.defineProperty(this,"id",{value:iz++}),this.uuid=t$(),this.name="",this.type="BufferGeometry",this.index=null,this.indirect=null,this.attributes={},this.morphAttributes={},this.morphTargetsRelative=!1,this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={}}getIndex(){return this.index}setIndex(e){return Array.isArray(e)?this.index=new(t6(e)?iH:iB)(e,1):this.index=e,this}setIndirect(e){return this.indirect=e,this}getIndirect(){return this.indirect}getAttribute(e){return this.attributes[e]}setAttribute(e,t){return this.attributes[e]=t,this}deleteAttribute(e){return delete this.attributes[e],this}hasAttribute(e){return void 0!==this.attributes[e]}addGroup(e,t,n=0){this.groups.push({start:e,count:t,materialIndex:n})}clearGroups(){this.groups=[]}setDrawRange(e,t){this.drawRange.start=e,this.drawRange.count=t}applyMatrix4(e){let t=this.attributes.position;void 0!==t&&(t.applyMatrix4(e),t.needsUpdate=!0);let n=this.attributes.normal;if(void 0!==n){let t=new t5().getNormalMatrix(e);n.applyNormalMatrix(t),n.needsUpdate=!0}let i=this.attributes.tangent;return void 0!==i&&(i.transformDirection(e),i.needsUpdate=!0),null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this}applyQuaternion(e){return iq.makeRotationFromQuaternion(e),this.applyMatrix4(iq),this}rotateX(e){return iq.makeRotationX(e),this.applyMatrix4(iq),this}rotateY(e){return iq.makeRotationY(e),this.applyMatrix4(iq),this}rotateZ(e){return iq.makeRotationZ(e),this.applyMatrix4(iq),this}translate(e,t,n){return iq.makeTranslation(e,t,n),this.applyMatrix4(iq),this}scale(e,t,n){return iq.makeScale(e,t,n),this.applyMatrix4(iq),this}lookAt(e){return iW.lookAt(e),iW.updateMatrix(),this.applyMatrix4(iW.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(i$).negate(),this.translate(i$.x,i$.y,i$.z),this}setFromPoints(e){let t=this.getAttribute("position");if(void 0===t){let t=[];for(let n=0,i=e.length;n<i;n++){let i=e[n];t.push(i.x,i.y,i.z||0)}this.setAttribute("position",new iG(t,3))}else{let n=Math.min(e.length,t.count);for(let i=0;i<n;i++){let n=e[i];t.setXYZ(i,n.x,n.y,n.z||0)}e.length>t.count&&console.warn("THREE.BufferGeometry: Buffer size too small for points data. Use .dispose() and create a new geometry."),t.needsUpdate=!0}return this}
vendor: 21,237 bytes, line 13
13computeBoundingBox(){null===this.boundingBox&&(this.boundingBox=new nx);let e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute){console.error("THREE.BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.",this),this.boundingBox.set(new t1(-1/0,-1/0,-1/0),new t1(Infinity,Infinity,Infinity));return}if(void 0!==e){if(this.boundingBox.setFromBufferAttribute(e),t)for(let e=0,n=t.length;e<n;e++){let n=t[e];iZ.setFromBufferAttribute(n),this.morphTargetsRelative?(iK.addVectors(this.boundingBox.min,iZ.min),this.boundingBox.expandByPoint(iK),iK.addVectors(this.boundingBox.max,iZ.max),this.boundingBox.expandByPoint(iK)):(this.boundingBox.expandByPoint(iZ.min),this.boundingBox.expandByPoint(iZ.max))}}else this.boundingBox.makeEmpty();(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&console.error('THREE.BufferGeometry.computeBoundingBox(): Computed min/max have NaN values. The "position" attribute is likely to have NaN values.',this)}computeBoundingSphere(){null===this.boundingSphere&&(this.boundingSphere=new nU);let e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute){console.error("THREE.BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere.",this),this.boundingSphere.set(new t1,1/0);return}if(e){let n=this.boundingSphere.center;if(iZ.setFromBufferAttribute(e),t)for(let e=0,n=t.length;e<n;e++){let n=t[e];iY.setFromBufferAttribute(n),this.morphTargetsRelative?(iK.addVectors(iZ.min,iY.min),iZ.expandByPoint(iK),iK.addVectors(iZ.max,iY.max),iZ.expandByPoint(iK)):(iZ.expandByPoint(iY.min),iZ.expandByPoint(iY.max))}iZ.getCenter(n);let i=0;for(let t=0,r=e.count;t<r;t++)iK.fromBufferAttribute(e,t),i=Math.max(i,n.distanceToSquared(iK));if(t)for(let r=0,a=t.length;r<a;r++){let a=t[r],s=this.morphTargetsRelative;for(let t=0,r=a.count;t<r;t++)iK.fromBufferAttribute(a,t),s&&(i$.fromBufferAttribute(e,t),iK.add(i$)),i=Math.max(i,n.distanceToSquared(iK))}this.boundingSphere.radius=Math.sqrt(i),isNaN(this.boundingSphere.radius)&&console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.',this)}}computeTangents(){let e=this.index,t=this.attributes;if(null===e||void 0===t.position||void 0===t.normal||void 0===t.uv){console.error("THREE.BufferGeometry: .computeTangents() failed. Missing required attributes (index, position, normal or uv)");return}let n=t.position,i=t.normal,r=t.uv;!1===this.hasAttribute("tangent")&&this.setAttribute("tangent",new iV(new Float32Array(4*n.count),4));let a=this.getAttribute("tangent"),s=[],o=[];for(let e=0;e<n.count;e++)s[e]=new t1,o[e]=new t1;let l=new t1,u=new t1,c=new t1,d=new tJ,h=new tJ,f=new tJ,p=new t1,m=new t1;function g(e,t,i){l.fromBufferAttribute(n,e),u.fromBufferAttribute(n,t),c.fromBufferAttribute(n,i),d.fromBufferAttribute(r,e),h.fromBufferAttribute(r,t),f.fromBufferAttribute(r,i),u.sub(l),c.sub(l),h.sub(d),f.sub(d);let a=1/(h.x*f.y-f.x*h.y);isFinite(a)&&(p.copy(u).multiplyScalar(f.y).addScaledVector(c,-h.y).multiplyScalar(a),m.copy(c).multiplyScalar(h.x).addScaledVector(u,-f.x).multiplyScalar(a),s[e].add(p),s[t].add(p),s[i].add(p),o[e].add(m),o[t].add(m),o[i].add(m))}let v=this.groups;0===v.length&&(v=[{start:0,count:e.count}]);for(let t=0,n=v.length;t<n;++t){let n=v[t],i=n.start,r=n.count;for(let t=i,n=i+r;t<n;t+=3)g(e.getX(t+0),e.getX(t+1),e.getX(t+2))}let y=new t1,_=new t1,b=new t1,x=new t1;function C(e){b.fromBufferAttribute(i,e),x.copy(b);let t=s[e];y.copy(t),y.sub(b.multiplyScalar(b.dot(t))).normalize(),_.crossVectors(x,t);let n=0>_.dot(o[e])?-1:1;a.setXYZW(e,y.x,y.y,y.z,n)}for(let t=0,n=v.length;t<n;++t){let n=v[t],i=n.start,r=n.count;for(let t=i,n=i+r;t<n;t+=3)C(e.getX(t+0)),C(e.getX(t+1)),C(e.getX(t+2))}}computeVertexNormals(){let e=this.index,t=this.getAttribute("position");if(void 0!==t){let n=this.getAttribute("normal");if(void 0===n)n=new iV(new Float32Array(3*t.count),3),this.setAttribute("normal",n);else for(let e=0,t=n.count;e<t;e++)n.setXYZ(e,0,0,0);let i=new t1,r=new t1,a=new t1,s=new t1,o=new t1,l=new t1,u=new t1,c=new t1;if(e)for(let d=0,h=e.count;d<h;d+=3){let h=e.getX(d+0),f=e.getX(d+1),p=e.getX(d+2);i.fromBufferAttribute(t,h),r.fromBufferAttribute(t,f),a.fromBufferAttribute(t,p),u.subVectors(a,r),c.subVectors(i,r),u.cross(c),s.fromBufferAttribute(n,h),o.fromBufferAttribute(n,f),l.fromBufferAttribute(n,p),s.add(u),o.add(u),l.add(u),n.setXYZ(h,s.x,s.y,s.z),n.setXYZ(f,o.x,o.y,o.z),n.setXYZ(p,l.x,l.y,l.z)}else for(let e=0,s=t.count;e<s;e+=3)i.fromBufferAttribute(t,e+0),r.fromBufferAttribute(t,e+1),a.fromBufferAttribute(t,e+2),u.subVectors(a,r),c.subVectors(i,r),u.cross(c),n.setXYZ(e+0,u.x,u.y,u.z),n.setXYZ(e+1,u.x,u.y,u.z),n.setXYZ(e+2,u.x,u.y,u.z);this.normalizeNormals(),n.needsUpdate=!0}}normalizeNormals(){let e=this.attributes.normal;for(let t=0,n=e.count;t<n;t++)iK.fromBufferAttribute(e,t),iK.normalize(),e.setXYZ(t,iK.x,iK.y,iK.z)}toNonIndexed(){function e(e,t){let n=e.array,i=e.itemSize,r=e.normalized,a=new n.constructor(t.length*i),s=0,o=0;for(let r=0,l=t.length;r<l;r++){s=e.isInterleavedBufferAttribute?t[r]*e.data.stride+e.offset:t[r]*i;for(let e=0;e<i;e++)a[o++]=n[s++]}return new iV(a,i,r)}if(null===this.index)return console.warn("THREE.BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed."),this;let t=new iX,n=this.index.array,i=this.attributes;for(let r in i){let a=e(i[r],n);t.setAttribute(r,a)}let r=this.morphAttributes;for(let i in r){let a=[],s=r[i];for(let t=0,i=s.length;t<i;t++){let i=e(s[t],n);a.push(i)}t.morphAttributes[i]=a}t.morphTargetsRelative=this.morphTargetsRelative;let a=this.groups;for(let e=0,n=a.length;e<n;e++){let n=a[e];t.addGroup(n.start,n.count,n.materialIndex)}return t}toJSON(){let e={metadata:{version:4.7,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};if(e.uuid=this.uuid,e.type=this.type,""!==this.name&&(e.name=this.name),Object.keys(this.userData).length>0&&(e.userData=this.userData),void 0!==this.parameters){let t=this.parameters;for(let n in t)void 0!==t[n]&&(e[n]=t[n]);return e}e.data={attributes:{}};let t=this.index;null!==t&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});let n=this.attributes;for(let t in n){let i=n[t];e.data.attributes[t]=i.toJSON(e.data)}let i={},r=!1;for(let t in this.morphAttributes){let n=this.morphAttributes[t],a=[];for(let t=0,i=n.length;t<i;t++){let i=n[t];a.push(i.toJSON(e.data))}a.length>0&&(i[t]=a,r=!0)}r&&(e.data.morphAttributes=i,e.data.morphTargetsRelative=this.morphTargetsRelative);let a=this.groups;a.length>0&&(e.data.groups=JSON.parse(JSON.stringify(a)));let s=this.boundingSphere;return null!==s&&(e.data.boundingSphere=s.toJSON()),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;let t={};this.name=e.name;let n=e.index;null!==n&&this.setIndex(n.clone());let i=e.attributes;for(let e in i){let n=i[e];this.setAttribute(e,n.clone(t))}let r=e.morphAttributes;for(let e in r){let n=[],i=r[e];for(let e=0,r=i.length;e<r;e++)n.push(i[e].clone(t));this.morphAttributes[e]=n}this.morphTargetsRelative=e.morphTargetsRelative;let a=e.groups;for(let e=0,t=a.length;e<t;e++){let t=a[e];this.addGroup(t.start,t.count,t.materialIndex)}let s=e.boundingBox;null!==s&&(this.boundingBox=s.clone());let o=e.boundingSphere;return null!==o&&(this.boundingSphere=o.clone()),this.drawRange.start=e.drawRange.start,this.drawRange.count=e.drawRange.count,this.userData=e.userData,this}dispose(){this.dispatchEvent({type:"dispose"})}}let iQ=new nZ,iJ=new n$,i0=new nU,i1=new t1,i2=new t1,i3=new t1,i5=new t1,i4=new t1,i6=new t1,i8=new t1,i7=new t1;class i9 extends ih{constructor(e=new iX,t=new iF){super(),this.isMesh=!0,this.type="Mesh",this.geometry=e,this.material=t,this.morphTargetDictionary=void 0,this.morphTargetInfluences=void 0,this.count=1,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),void 0!==e.morphTargetInfluences&&(this.morphTargetInfluences=e.morphTargetInfluences.slice()),void 0!==e.morphTargetDictionary&&(this.morphTargetDictionary=Object.assign({},e.morphTargetDictionary)),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}updateMorphTargets(){let e=this.geometry.morphAttributes,t=Object.keys(e);if(t.length>0){let n=e[t[0]];if(void 0!==n){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;e<t;e++){let t=n[e].name||String(e);this.morphTargetInfluences.push(0),this.morphTargetDictionary[t]=e}}}}getVertexPosition(e,t){let n=this.geometry,i=n.attributes.position,r=n.morphAttributes.position,a=n.morphTargetsRelative;t.fromBufferAttribute(i,e);let s=this.morphTargetInfluences;if(r&&s){i6.set(0,0,0);for(let n=0,i=r.length;n<i;n++){let i=s[n],o=r[n];0!==i&&(i4.fromBufferAttribute(o,e),a?i6.addScaledVector(i4,i):i6.addScaledVector(i4.sub(t),i))}t.add(i6)}return t}raycast(e,t){let n=this.geometry,i=this.material,r=this.matrixWorld;if(void 0!==i){if(null===n.boundingSphere&&n.computeBoundingSphere(),i0.copy(n.boundingSphere),i0.applyMatrix4(r),iJ.copy(e.ray).recast(e.near),!1===i0.containsPoint(iJ.origin)&&(null===iJ.intersectSphere(i0,i1)||iJ.origin.distanceToSquared(i1)>(e.far-e.near)**2)||(iQ.copy(r).invert(),iJ.copy(e.ray).applyMatrix4(iQ),null!==n.boundingBox&&!1===iJ.intersectsBox(n.boundingBox)))return;this._computeIntersections(e,t,iJ)}}_computeIntersections(e,t,n){let i;let r=this.geometry,a=this.material,s=r.index,o=r.attributes.position,l=r.attributes.uv,u=r.attributes.uv1,c=r.attributes.normal,d=r.groups,h=r.drawRange;if(null!==s){if(Array.isArray(a))for(let r=0,o=d.length;r<o;r++){let o=d[r],f=a[o.materialIndex],p=Math.max(o.start,h.start),m=Math.min(s.count,Math.min(o.start+o.count,h.start+h.count));for(let r=p,a=m;r<a;r+=3)(i=rt(this,f,e,n,l,u,c,s.getX(r),s.getX(r+1),s.getX(r+2)))&&(i.faceIndex=Math.floor(r/3),i.face.materialIndex=o.materialIndex,t.push(i))}else{let r=Math.max(0,h.start),o=Math.min(s.count,h.start+h.count);for(let d=r,h=o;d<h;d+=3)(i=rt(this,a,e,n,l,u,c,s.getX(d),s.getX(d+1),s.getX(d+2)))&&(i.faceIndex=Math.floor(d/3),t.push(i))}}else if(void 0!==o){if(Array.isArray(a))for(let r=0,s=d.length;r<s;r++){let s=d[r],f=a[s.materialIndex],p=Math.max(s.start,h.start),m=Math.min(o.count,Math.min(s.start+s.count,h.start+h.count));for(let r=p,a=m;r<a;r+=3)(i=rt(this,f,e,n,l,u,c,r,r+1,r+2))&&(i.faceIndex=Math.floor(r/3),i.face.materialIndex=s.materialIndex,t.push(i))}else{let r=Math.max(0,h.start),s=Math.min(o.count,h.start+h.count);for(let o=r,d=s;o<d;o+=3)(i=rt(this,a,e,n,l,u,c,o,o+1,o+2))&&(i.faceIndex=Math.floor(o/3),t.push(i))}}}}function re(e,t,n,i,r,a,s,o){let l;if(null===(l=t.side===g?i.intersectTriangle(s,a,r,!0,o):i.intersectTriangle(r,a,s,t.side===m,o)))return null;i7.copy(o),i7.applyMatrix4(e.matrixWorld);let u=n.ray.origin.distanceTo(i7);return u<n.near||u>n.far?null:{distance:u,point:i7.clone(),object:e}}function rt(e,t,n,i,r,a,s,o,l,u){e.getVertexPosition(o,i2),e.getVertexPosition(l,i3),e.getVertexPosition(u,i5);let c=re(e,t,n,i,i2,i3,i5,i8);if(c){let e=new t1;iL.getBarycoord(i8,i2,i3,i5,e),r&&(c.uv=iL.getInterpolatedAttribute(r,o,l,u,e,new tJ)),a&&(c.uv1=iL.getInterpolatedAttribute(a,o,l,u,e,new tJ)),s&&(c.normal=iL.getInterpolatedAttribute(s,o,l,u,e,new t1),c.normal.dot(i.direction)>0&&c.normal.multiplyScalar(-1));let t={a:o,b:l,c:u,normal:new t1,materialIndex:0};iL.getNormal(i2,i3,i5,t.normal),c.face=t,c.barycoord=e}return c}class rn extends iX{constructor(e=1,t=1,n=1,i=1,r=1,a=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:t,depth:n,widthSegments:i,heightSegments:r,depthSegments:a};let s=this;i=Math.floor(i),r=Math.floor(r);let o=[],l=[],u=[],c=[],d=0,h=0;function f(e,t,n,i,r,a,f,p,m,g,v){let y=a/m,_=f/g,b=a/2,x=f/2,C=p/2,E=m+1,w=g+1,T=0,S=0,L=new t1;for(let a=0;a<w;a++){let s=a*_-x;for(let o=0;o<E;o++){let d=o*y-b;L[e]=d*i,L[t]=s*r,L[n]=C,l.push(L.x,L.y,L.z),L[e]=0,L[t]=0,L[n]=p>0?1:-1,u.push(L.x,L.y,L.z),c.push(o/m),c.push(1-a/g),T+=1}}for(let e=0;e<g;e++)for(let t=0;t<m;t++){let n=d+t+E*e,i=d+t+E*(e+1),r=d+(t+1)+E*(e+1),a=d+(t+1)+E*e;o.push(n,i,a),o.push(i,r,a),S+=6}s.addGroup(h,S,v),h+=S,d+=T}f("z","y","x",-1,-1,n,t,e,a=Math.floor(a),r,0),f("z","y","x",1,-1,n,t,-e,a,r,1),f("x","z","y",1,1,e,n,t,i,a,2),f("x","z","y",1,-1,e,n,-t,i,a,3),f("x","y","z",1,-1,e,t,n,i,r,4),f("x","y","z",-1,-1,e,t,-n,i,r,5),this.setIndex(o),this.setAttribute("position",new iG(l,3)),this.setAttribute("normal",new iG(u,3)),this.setAttribute("uv",new iG(c,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new rn(e.width,e.height,e.depth,e.widthSegments,e.heightSegments,e.depthSegments)}}function ri(e){let t={};for(let n in e)for(let i in t[n]={},e[n]){let r=e[n][i];r&&(r.isColor||r.isMatrix3||r.isMatrix4||r.isVector2||r.isVector3||r.isVector4||r.isTexture||r.isQuaternion)?r.isRenderTargetTexture?(console.warn("UniformsUtils: Textures of render targets cannot be cloned via cloneUniforms() or mergeUniforms()."),t[n][i]=null):t[n][i]=r.clone():Array.isArray(r)?t[n][i]=r.slice():t[n][i]=r}return t}function rr(e){let t={};for(let n=0;n<e.length;n++){let i=ri(e[n]);for(let e in i)t[e]=i[e]}return t}function ra(e){let t=[];for(let n=0;n<e.length;n++)t.push(e[n].clone());return t}function rs(e){let t=e.getRenderTarget();return null===t?e.outputColorSpace:!0===t.isXRRenderTarget?t.texture.colorSpace:ns.workingColorSpace}let ro={clone:ri};var rl="void main() {\n gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}",ru="void main() {\n gl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );\n}";class rc extends iN{constructor(e){super(),this.isShaderMaterial=!0,this.type="ShaderMaterial",this.defines={},this.uniforms={},this.uniformsGroups=[],this.vertexShader=rl,this.fragmentShader=ru,this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.lights=!1,this.clipping=!1,this.forceSinglePass=!0,this.extensions={clipCullDistance:!1,multiDraw:!1},this.defaultAttributeValues={color:[1,1,1],uv:[0,0],uv1:[0,0]},this.index0AttributeName=void 0,this.uniformsNeedUpdate=!1,this.glslVersion=null,void 0!==e&&this.setValues(e)}copy(e){return super.copy(e),this.fragmentShader=e.fragmentShader,this.vertexShader=e.vertexShader,this.uniforms=ri(e.uniforms),this.uniformsGroups=ra(e.uniformsGroups),this.defines=Object.assign({},e.defines),this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.fog=e.fog,this.lights=e.lights,this.clipping=e.clipping,this.extensions=Object.assign({},e.extensions),this.glslVersion=e.glslVersion,this}toJSON(e){let t=super.toJSON(e);for(let n in t.glslVersion=this.glslVersion,t.uniforms={},this.uniforms){let i=this.uniforms[n].value;i&&i.isTexture?t.uniforms[n]={type:"t",value:i.toJSON(e).uuid}:i&&i.isColor?t.uniforms[n]={type:"c",value:i.getHex()}:i&&i.isVector2?t.uniforms[n]={type:"v2",value:i.toArray()}:i&&i.isVector3?t.uniforms[n]={type:"v3",value:i.toArray()}:i&&i.isVector4?t.uniforms[n]={type:"v4",value:i.toArray()}:i&&i.isMatrix3?t.uniforms[n]={type:"m3",value:i.toArray()}:i&&i.isMatrix4?t.uniforms[n]={type:"m4",value:i.toArray()}:t.uniforms[n]={value:i}}Object.keys(this.defines).length>0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t.lights=this.lights,t.clipping=this.clipping;let n={};for(let e in this.extensions)!0===this.extensions[e]&&(n[e]=!0);return Object.keys(n).length>0&&(t.extensions=n),t}}class rd extends ih{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new nZ,this.projectionMatrix=new nZ,this.projectionMatrixInverse=new nZ,this.coordinateSystem=tB}copy(e,t){return super.copy(e,t),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this.coordinateSystem=e.coordinateSystem,this}getWorldDirection(e){return super.getWorldDirection(e).negate()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,t){super.updateWorldMatrix(e,t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return new this.constructor().copy(this)}}let rh=new t1,rf=new tJ,rp=new tJ;class rm extends rd{constructor(e=50,t=1,n=.1,i=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=n,this.far=i,this.focus=10,this.aspect=t,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=null===e.view?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}setFocalLength(e){let t=.5*this.getFilmHeight()/e;this.fov=2*tW*Math.atan(t),this.updateProjectionMatrix()}getFocalLength(){let e=Math.tan(.5*tq*this.fov);return .5*this.getFilmHeight()/e}getEffectiveFOV(){return 2*tW*Math.atan(Math.tan(.5*tq*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}getViewBounds(e,t,n){rh.set(-1,-1,.5).applyMatrix4(this.projectionMatrixInverse),t.set(rh.x,rh.y).multiplyScalar(-e/rh.z),rh.set(1,1,.5).applyMatrix4(this.projectionMatrixInverse),n.set(rh.x,rh.y).multiplyScalar(-e/rh.z)}getViewSize(e,t){return this.getViewBounds(e,rf,rp),t.subVectors(rp,rf)}setViewOffset(e,t,n,i,r,a){this.aspect=e/t,null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=i,this.view.width=r,this.view.height=a,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){let e=this.near,t=e*Math.tan(.5*tq*this.fov)/this.zoom,n=2*t,i=this.aspect*n,r=-.5*i,a=this.view;if(null!==this.view&&this.view.enabled){let e=a.fullWidth,s=a.fullHeight;r+=a.offsetX*i/e,t-=a.offsetY*n/s,i*=a.width/e,n*=a.height/s}let s=this.filmOffset;0!==s&&(r+=e*s/this.getFilmWidth()),this.projectionMatrix.makePerspective(r,r+i,t,t-n,e,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){let t=super.toJSON(e);return t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,null!==this.view&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}}let rg=-90,rv=1;class ry extends ih{constructor(e,t,n){super(),this.type="CubeCamera",this.renderTarget=n,this.coordinateSystem=null,this.activeMipmapLevel=0;let i=new rm(rg,rv,e,t);i.layers=this.layers,this.add(i);let r=new rm(rg,rv,e,t);r.layers=this.layers,this.add(r);let a=new rm(rg,rv,e,t);a.layers=this.layers,this.add(a);let s=new rm(rg,rv,e,t);s.layers=this.layers,this.add(s);let o=new rm(rg,rv,e,t);o.layers=this.layers,this.add(o);let l=new rm(rg,rv,e,t);l.layers=this.layers,this.add(l)}updateCoordinateSystem(){let e=this.coordinateSystem,t=this.children.concat(),[n,i,r,a,s,o]=t;for(let e of t)this.remove(e);if(e===tB)n.up.set(0,1,0),n.lookAt(1,0,0),i.up.set(0,1,0),i.lookAt(-1,0,0),r.up.set(0,0,-1),r.lookAt(0,1,0),a.up.set(0,0,1),a.lookAt(0,-1,0),s.up.set(0,1,0),s.lookAt(0,0,1),o.up.set(0,1,0),o.lookAt(0,0,-1);else if(e===tH)n.up.set(0,-1,0),n.lookAt(-1,0,0),i.up.set(0,-1,0),i.lookAt(1,0,0),r.up.set(0,0,1),r.lookAt(0,1,0),a.up.set(0,0,-1),a.lookAt(0,-1,0),s.up.set(0,-1,0),s.lookAt(0,0,1),o.up.set(0,-1,0),o.lookAt(0,0,-1);else throw Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+e);for(let e of t)this.add(e),e.updateMatrixWorld()}update(e,t){null===this.parent&&this.updateMatrixWorld();let{renderTarget:n,activeMipmapLevel:i}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());let[r,a,s,o,l,u]=this.children,c=e.getRenderTarget(),d=e.getActiveCubeFace(),h=e.getActiveMipmapLevel(),f=e.xr.enabled;e.xr.enabled=!1;let p=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,e.setRenderTarget(n,0,i),e.render(t,r),e.setRenderTarget(n,1,i),e.render(t,a),e.setRenderTarget(n,2,i),e.render(t,s),e.setRenderTarget(n,3,i),e.render(t,o),e.setRenderTarget(n,4,i),e.render(t,l),n.texture.generateMipmaps=p,e.setRenderTarget(n,5,i),e.render(t,u),e.setRenderTarget(c,d,h),e.xr.enabled=f,n.texture.needsPMREMUpdate=!0}}class r_ extends nm{constructor(e=[],t=ec,n,i,r,a,s,o,l,u){super(e,t,n,i,r,a,s,o,l,u),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class rb extends ny{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;let n={width:e,height:e,depth:1},i=[n,n,n,n,n,n];this.texture=new r_(i),this._setTextureOptions(t),this.texture.isRenderTargetTexture=!0}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.colorSpace
vendor: 6,476 bytes, lines 13-48
13=t.colorSpace,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;let n={uniforms:{tEquirect:{value:null}},vertexShader:` 14 15 varying vec3 vWorldDirection; 16 17 vec3 transformDirection( in vec3 dir, in mat4 matrix ) { 18 19 return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz ); 20 21 } 22 23 void main() { 24 25 vWorldDirection = transformDirection( position, modelMatrix ); 26 27 #include <begin_vertex> 28 #include <project_vertex> 29 30 } 31 `,fragmentShader:` 32 33 uniform sampler2D tEquirect; 34 35 varying vec3 vWorldDirection; 36 37 #include <common> 38 39 void main() { 40 41 vec3 direction = normalize( vWorldDirection ); 42 43 vec2 sampleUV = equirectUv( direction ); 44 45 gl_FragColor = texture2D( tEquirect, sampleUV ); 46 47 } 48 `},i=new rn(5,5,5),r=new rc({name:"CubemapFromEquirect",uniforms:ri(n.uniforms),vertexShader:n.vertexShader,fragmentShader:n.fragmentShader,side:g,blending:y});r.uniforms.tEquirect.value=t;let a=new i9(i,r),s=t.minFilter;return t.minFilter===eE&&(t.minFilter=ex),new ry(1,10,this).update(e,a),t.minFilter=s,a.geometry.dispose(),a.material.dispose(),this}clear(e,t=!0,n=!0,i=!0){let r=e.getRenderTarget();for(let r=0;r<6;r++)e.setRenderTarget(this,r),e.clear(t,n,i);e.setRenderTarget(r)}}class rx extends ih{constructor(){super(),this.isGroup=!0,this.type="Group"}}let rC={type:"move"};class rE{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return null===this._hand&&(this._hand=new rx,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return null===this._targetRay&&(this._targetRay=new rx,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new t1,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new t1),this._targetRay}getGripSpace(){return null===this._grip&&(this._grip=new rx,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new t1,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new t1),this._grip}dispatchEvent(e){return null!==this._targetRay&&this._targetRay.dispatchEvent(e),null!==this._grip&&this._grip.dispatchEvent(e),null!==this._hand&&this._hand.dispatchEvent(e),this}connect(e){if(e&&e.hand){let t=this._hand;if(t)for(let n of e.hand.values())this._getHandJoint(t,n)}return this.dispatchEvent({type:"connected",data:e}),this}disconnect(e){return this.dispatchEvent({type:"disconnected",data:e}),null!==this._targetRay&&(this._targetRay.visible=!1),null!==this._grip&&(this._grip.visible=!1),null!==this._hand&&(this._hand.visible=!1),this}update(e,t,n){let i=null,r=null,a=null,s=this._targetRay,o=this._grip,l=this._hand;if(e&&"visible-blurred"!==t.session.visibilityState){if(l&&e.hand){for(let i of(a=!0,e.hand.values())){let e=t.getJointPose(i,n),r=this._getHandJoint(l,i);null!==e&&(r.matrix.fromArray(e.transform.matrix),r.matrix.decompose(r.position,r.rotation,r.scale),r.matrixWorldNeedsUpdate=!0,r.jointRadius=e.radius),r.visible=null!==e}let i=l.joints["index-finger-tip"],r=l.joints["thumb-tip"],s=i.position.distanceTo(r.position),o=.02,u=.005;l.inputState.pinching&&s>o+u?(l.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!l.inputState.pinching&&s<=o-u&&(l.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else null!==o&&e.gripSpace&&null!==(r=t.getPose(e.gripSpace,n))&&(o.matrix.fromArray(r.transform.matrix),o.matrix.decompose(o.position,o.rotation,o.scale),o.matrixWorldNeedsUpdate=!0,r.linearVelocity?(o.hasLinearVelocity=!0,o.linearVelocity.copy(r.linearVelocity)):o.hasLinearVelocity=!1,r.angularVelocity?(o.hasAngularVelocity=!0,o.angularVelocity.copy(r.angularVelocity)):o.hasAngularVelocity=!1);null!==s&&(null===(i=t.getPose(e.targetRaySpace,n))&&null!==r&&(i=r),null!==i&&(s.matrix.fromArray(i.transform.matrix),s.matrix.decompose(s.position,s.rotation,s.scale),s.matrixWorldNeedsUpdate=!0,i.linearVelocity?(s.hasLinearVelocity=!0,s.linearVelocity.copy(i.linearVelocity)):s.hasLinearVelocity=!1,i.angularVelocity?(s.hasAngularVelocity=!0,s.angularVelocity.copy(i.angularVelocity)):s.hasAngularVelocity=!1,this.dispatchEvent(rC)))}return null!==s&&(s.visible=null!==i),null!==o&&(o.visible=null!==r),null!==l&&(l.visible=null!==a),this}_getHandJoint(e,t){if(void 0===e.joints[t.jointName]){let n=new rx;n.matrixAutoUpdate=!1,n.visible=!1,e.joints[t.jointName]=n,e.add(n)}return e.joints[t.jointName]}}class rw extends ih{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.backgroundRotation=new n5,this.environmentIntensity=1,this.environmentRotation=new n5,this.overrideMaterial=null,"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,t){return super.copy(e,t),null!==e.background&&(this.background=e.background.clone()),null!==e.environment&&(this.environment=e.environment.clone()),null!==e.fog&&(this.fog=e.fog.clone()),this.backgroundBlurriness=e.backgroundBlurriness,this.backgroundIntensity=e.backgroundIntensity,this.backgroundRotation.copy(e.backgroundRotation),this.environmentIntensity=e.environmentIntensity,this.environmentRotation.copy(e.environmentRotation),null!==e.overrideMaterial&&(this.overrideMaterial=e.overrideMaterial.clone()),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){let t=super.toJSON(e);return null!==this.fog&&(t.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(t.object.backgroundBlurriness=this.backgroundBlurriness),1!==this.backgroundIntensity&&(t.object.backgroundIntensity=this.backgroundIntensity),t.object.backgroundRotation=this.backgroundRotation.toArray(),1!==this.environmentIntensity&&(t.object.environmentIntensity=this.environmentIntensity),t.object.environmentRotation=this.environmentRotation.toArray(),t}}let rT=new t1,rS=new t1,rL=new t5;class rP{constructor(e=new t1(1,0,0),t=0){this.isPlane=!0,this.normal=e,this.constant=t}set(e,t){return this.normal.copy(e),this.constant=t,this}setComponents(e,t,n,i){return this.normal.set(e,t,n),this.constant=i,this}setFromNormalAndCoplanarPoint(e,t){return this.normal.copy(e),this.constant=-t.dot(this.normal),this}
48setFromCoplanarPoints(e,t,n){let i=rT.subVectors(n,t).cross(rS.subVectors(e,t)).normalize();return this.setFromNormalAndCoplanarPoint(i,e),this}copy(e){return this.normal.copy(e.normal),this.constant=e.constant,this}normalize(){let e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(e){return this.normal.dot(e)+this.constant}distanceToSphere(e){return this.distanceToPoint(e.center)-e.radius}projectPoint(e,t){return t.copy(e).addScaledVector(this.normal,-this.distanceToPoint(e))}intersectLine(e,t){let n=e.delta(rT),i=this.normal.dot(n);if(0===i)return 0===this.distanceToPoint(e.start)?t.copy(e.start):null;let r=-(e.start.dot(this.normal)+this.constant)/i;return r<0||r>1?null:t.copy(e.start).addScaledVector(n,r)}intersectsLine(e){let t=this.distanceToPoint(e.start),n=this.distanceToPoint(e.end);return t<0&&n>0||n<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){let n=t||rL.getNormalMatrix(e),i=this.coplanarPoint(rT).applyMatrix4(e),r=this.normal.applyMatrix3(n).normalize();return this.constant=-i.dot(r),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return new this.constructor().copy(this)}}let rM=new nU,rA=new t1;class rI{constructor(e=new rP,t=new rP,n=new rP,i=new rP,r=new rP,a=new rP){this.planes=[e,t,n,i,r,a]}set(e,t,n,i,r,a){let s=this.planes;return s[0].copy(e),s[1].copy(t),s[2].copy(n),s[3].copy(i),s[4].copy(r),s[5].copy(a),this}copy(e){let t=this.planes;for(let n=0;n<6;n++)t[n].copy(e.planes[n]);return this}setFromProjectionMatrix(e,t=tB){let n=this.planes,i=e.elements,r=i[0],a=i[1],s=i[2],o=i[3],l=i[4],u=i[5],c=i[6],d=i[7],h=i[8],f=i[9],p=i[10],m=i[11],g=i[12],v=i[13],y=i[14],_=i[15];if(n[0].setComponents(o-r,d-l,m-h,_-g).normalize(),n[1].setComponents(o+r,d+l,m+h,_+g).normalize(),n[2].setComponents(o+a,d+u,m+f,_+v).normalize(),n[3].setComponents(o-a,d-u,m-f,_-v).normalize(),n[4].setComponents(o-s,d-c,m-p,_-y).normalize(),t===tB)n[5].setComponents(o+s,d+c,m+p,_+y).normalize();else if(t===tH)n[5].setComponents(s,c,p,y).normalize();else throw Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+t);return this}intersectsObject(e){if(void 0!==e.boundingSphere)null===e.boundingSphere&&e.computeBoundingSphere(),rM.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{let t=e.geometry;null===t.boundingSphere&&t.computeBoundingSphere(),rM.copy(t.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(rM)}intersectsSprite(e){return rM.center.set(0,0,0),rM.radius=.7071067811865476,rM.applyMatrix4(e.matrixWorld),this.intersectsSphere(rM)}intersectsSphere(e){let t=this.planes,n=e.center,i=-e.radius;for(let e=0;e<6;e++)if(t[e].distanceToPoint(n)<i)return!1;return!0}intersectsBox(e){let t=this.planes;for(let n=0;n<6;n++){let i=t[n];if(rA.x=i.normal.x>0?e.max.x:e.min.x,rA.y=i.normal.y>0?e.max.y:e.min.y,rA.z=i.normal.z>0?e.max.z:e.min.z,0>i.distanceToPoint(rA))return!1}return!0}containsPoint(e){let t=this.planes;for(let n=0;n<6;n++)if(0>t[n].distanceToPoint(e))return!1;return!0}clone(){return new this.constructor().copy(this)}}let rR=new nZ,rk=new rI;class rD{constructor(){this.coordinateSystem=tB}intersectsObject(e,t){if(!t.isArrayCamera||0===t.cameras.length)return!1;for(let n=0;n<t.cameras.length;n++){let i=t.cameras[n];if(rR.multiplyMatrices(i.projectionMatrix,i.matrixWorldInverse),rk.setFromProjectionMatrix(rR,this.coordinateSystem),rk.intersectsObject(e))return!0}return!1}intersectsSprite(e,t){if(!t||!t.cameras||0===t.cameras.length)return!1;for(let n=0;n<t.cameras.length;n++){let i=t.cameras[n];if(rR.multiplyMatrices(i.projectionMatrix,i.matrixWorldInverse),rk.setFromProjectionMatrix(rR,this.coordinateSystem),rk.intersectsSprite(e))return!0}return!1}intersectsSphere(e,t){if(!t||!t.cameras||0===t.cameras.length)return!1;for(let n=0;n<t.cameras.length;n++){let i=t.cameras[n];if(rR.multiplyMatrices(i.projectionMatrix,i.matrixWorldInverse),rk.setFromProjectionMatrix(rR,this.coordinateSystem),rk.intersectsSphere(e))return!0}return!1}
48intersectsBox(e,t){if(!t||!t.cameras||0===t.cameras.length)return!1;for(let n=0;n<t.cameras.length;n++){let i=t.cameras[n];if(rR.multiplyMatrices(i.projectionMatrix,i.matrixWorldInverse),rk.setFromProjectionMatrix(rR,this.coordinateSystem),rk.intersectsBox(e))return!0}return!1}containsPoint(e,t){if(!t||!t.cameras||0===t.cameras.length)return!1;for(let n=0;n<t.cameras.length;n++){let i=t.cameras[n];if(rR.multiplyMatrices(i.projectionMatrix,i.matrixWorldInverse),rk.setFromProjectionMatrix(rR,this.coordinateSystem),rk.containsPoint(e))return!0}return!1}clone(){return new rD}}class rN extends nm{constructor(e,t,n,i,r=ex,a=ex,s,o,l){super(e,t,n,i,r,a,s,o,l),this.isVideoTexture=!0,this.generateMipmaps=!1;let u=this;function c(){u.needsUpdate=!0,e.requestVideoFrameCallback(c)}"requestVideoFrameCallback"in e&&e.requestVideoFrameCallback(c)}clone(){return new this.constructor(this.image).copy(this)}update(){let e=this.image;!1=="requestVideoFrameCallback"in e&&e.readyState>=e.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}}class rF extends nm{constructor(e,t,n=eM,i,r,a,s=ey,o=ey,l,u=eU,c=1){if(u!==eU&&u!==eV)throw Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");super({width:e,height:t,depth:c},i,r,a,s,o,u,n,l),this.isDepthTexture=!0,this.flipY=!1,this.generateMipmaps=!1,this.compareFunction=null}copy(e){return super.copy(e),this.source=new nd(Object.assign({},e.image)),this.compareFunction=e.compareFunction,this}toJSON(e){let t=super.toJSON(e);return null!==this.compareFunction&&(t.compareFunction=this.compareFunction),t}}class rO extends iX{constructor(e=1,t=1,n=4,i=8,r=1){super(),this.type="CapsuleGeometry",this.parameters={radius:e,height:t,capSegments:n,radialSegments:i,heightSegments:r},t=Math.max(0,t),n=Math.max(1,Math.floor(n)),i=Math.max(3,Math.floor(i));let a=[],s=[],o=[],l=[],u=t/2,c=Math.PI/2*e,d=t,h=2*c+d,f=2*n+(r=Math.max(1,Math.floor(r))),p=i+1,m=new t1,g=new t1;for(let v=0;v<=f;v++){let y=0,_=0,b=0,x=0;if(v<=n){let t=v/n,i=t*Math.PI/2;_=-u-e*Math.cos(i),b=e*Math.sin(i),x=-e*Math.cos(i),y=t*c}else if(v<=n+r){let i=(v-n)/r;_=-u+i*t,b=e,x=0,y=c+i*d}else{let t=(v-n-r)/n,i=t*Math.PI/2;_=u+e*Math.sin(i),b=e*Math.cos(i),x=e*Math.sin(i),y=c+d+t*c}let C=Math.max(0,Math.min(1,y/h)),E=0;0===v?E=.5/i:v===f&&(E=-.5/i);for(let e=0;e<=i;e++){let t=e/i,n=t*Math.PI*2,r=Math.sin(n),a=Math.cos(n);g.x=-b*a,g.y=_,g.z=b*r,s.push(g.x,g.y,g.z),m.set(-b*a,x,b*r),m.normalize(),o.push(m.x,m.y,m.z),l.push(t+E,C)}if(v>0){let e=(v-1)*p;for(let t=0;t<i;t++){let n=e+t,i=e+t+1,r=v*p+t,s=v*p+t+1;a.push(n,i,r),a.push(i,s,r)}}}this.setIndex(a),this.setAttribute("position",new iG(s,3)),this.setAttribute("normal",new iG(o,3)),this.setAttribute("uv",new iG(l,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new rO(e.radius,e.height,e.capSegments,e.radialSegments,e.heightSegments)}}class rj extends iX{constructor(e=1,t=32,n=0,i=2*Math.PI){super(),this.type="CircleGeometry",this.parameters={radius:e,segments:t,thetaStart:n,thetaLength:i},t=Math.max(3,t);let r=[],a=[],s=[],o=[],l=new t1,u=new tJ;a.push(0,0,0),s.push(0,0,1),o.push(.5,.5);for(let r=0,c=3;r<=t;r++,c+=3){let d=n+r/t*i;l.x=e*Math.cos(d),l.y=e*Math.sin(d),a.push(l.x,l.y,l.z),s.push(0,0,1),u.x=(a[c]/e+1)/2,u.y=(a[c+1]/e+1)/2,o.push(u.x,u.y)}for(let e=1;e<=t;e++)r.push(e,e+1,0);this.setIndex(r),this.setAttribute("position",new iG(a,3)),this.setAttribute("normal",new iG(s,3)),this.setAttribute("uv",new iG(o,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new rj(e.radius,e.segments,e.thetaStart,e.thetaLength)}}class rU extends iX{constructor(e=1,t=1,n=1,i=32,r=1,a=!1,s=0,o=2*Math.PI){super(),this.type="CylinderGeometry",this.parameters={radiusTop:e,radiusBottom:t,height:n,radialSegments:i,heightSegments:r,openEnded:a,thetaStart:s,thetaLength:o};let l=this;i=Math.floor(i),r=Math.floor(r);let u=[],c=[],d=[],h=[],f=0,p=[],m=n/2,g=0;function v(n){let r=f,a=new tJ,p=new t1,v=0,y=!0===n?e:t,_=!0===n?1:-1;for(let e=1;e<=i;e++)c.push(0,m*_,0),d.push(0,_,0),h.push(.5,.5),f++;let b=f;for(let e=0;e<=i;e++){let t=e/i*o+s,n=Math.cos(t),r=Math.sin(t);p.x=y*r,p.y=m*_,p.z=y*n,c.push(p.x,p.y,p.z),d.push(0,_,0),a.x=.5*n+.5,a.y=.5*r*_+.5,h.push(a.x,a.y),f++}for(let e=0;e<i;e++){let t=r+e,i=b+e;!0===n?u.push(i,i+1,t):u.push(i+1,i,t),v+=3}l.addGroup(g,v,!0===n?1:2),g+=v}(function(){let a=new t1,v=new t1,y=0,_=(t-e)/n;for(let l=0;l<=r;l++){let u=[],g=l/r,y=g*(t-e)+e;for(let e=0;e<=i;e++){let t=e/i,r=t*o+s,l=Math.sin(r),p=Math.cos(r);v.x=y*l,v.y=-g*n+m,v.z=y*p,c.push(v.x,v.y,v.z),a.set(l,_,p).normalize(),d.push(a.x,a.y,a.z),h.push(t,1-g),u.push(f++)}p.push(u)}for(let n=0;n<i;n++)for(let i=0;i<r;i++){let a=p[i][n],s=p[i+1][n],o=p[i+1][n+1],l=p[i][n+1];(e>0||0!==i)&&(u.push(a,s,l),y+=3),(t>0||i!==r-1)&&(u.push(s,o,l),y+=3)}l.addGroup(g,y,0),g+=y})(),!1===a&&(e>0&&v(!0),t>0&&v(!1)),this.setIndex(u),this.setAttribute("position",new iG(c,3)),this.setAttribute("normal",new iG(d,3)),this.setAttribute("uv",new iG(h,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new rU(e.radiusTop,e.radiusBottom,e.height,e.radialSegments,e.heightSegments,e.o
vendor: 7,500 bytes, line 48
48penEnded,e.thetaStart,e.thetaLength)}}class rV extends rU{constructor(e=1,t=1,n=32,i=1,r=!1,a=0,s=2*Math.PI){super(0,e,t,n,i,r,a,s),this.type="ConeGeometry",this.parameters={radius:e,height:t,radialSegments:n,heightSegments:i,openEnded:r,thetaStart:a,thetaLength:s}}static fromJSON(e){return new rV(e.radius,e.height,e.radialSegments,e.heightSegments,e.openEnded,e.thetaStart,e.thetaLength)}}class rB extends iX{constructor(e=[],t=[],n=1,i=0){super(),this.type="PolyhedronGeometry",this.parameters={vertices:e,indices:t,radius:n,detail:i};let r=[],a=[];function s(e,t,n,i){let r=i+1,a=[];for(let i=0;i<=r;i++){a[i]=[];let s=e.clone().lerp(n,i/r),o=t.clone().lerp(n,i/r),l=r-i;for(let e=0;e<=l;e++)0===e&&i===r?a[i][e]=s:a[i][e]=s.clone().lerp(o,e/l)}for(let e=0;e<r;e++)for(let t=0;t<2*(r-e)-1;t++){let n=Math.floor(t/2);t%2==0?(c(a[e][n+1]),c(a[e+1][n]),c(a[e][n])):(c(a[e][n+1]),c(a[e+1][n+1]),c(a[e+1][n]))}}function o(e){let t=new t1;for(let n=0;n<r.length;n+=3)t.x=r[n+0],t.y=r[n+1],t.z=r[n+2],t.normalize().multiplyScalar(e),r[n+0]=t.x,r[n+1]=t.y,r[n+2]=t.z}function l(){let e=new t1;for(let t=0;t<r.length;t+=3){e.x=r[t+0],e.y=r[t+1],e.z=r[t+2];let n=p(e)/2/Math.PI+.5,i=m(e)/Math.PI+.5;a.push(n,1-i)}h(),u()}function u(){for(let e=0;e<a.length;e+=6){let t=a[e+0],n=a[e+2],i=a[e+4],r=Math.max(t,n,i),s=Math.min(t,n,i);r>.9&&s<.1&&(t<.2&&(a[e+0]+=1),n<.2&&(a[e+2]+=1),i<.2&&(a[e+4]+=1))}}function c(e){r.push(e.x,e.y,e.z)}function d(t,n){let i=3*t;n.x=e[i+0],n.y=e[i+1],n.z=e[i+2]}function h(){let e=new t1,t=new t1,n=new t1,i=new t1,s=new tJ,o=new tJ,l=new tJ;for(let u=0,c=0;u<r.length;u+=9,c+=6){e.set(r[u+0],r[u+1],r[u+2]),t.set(r[u+3],r[u+4],r[u+5]),n.set(r[u+6],r[u+7],r[u+8]),s.set(a[c+0],a[c+1]),o.set(a[c+2],a[c+3]),l.set(a[c+4],a[c+5]),i.copy(e).add(t).add(n).divideScalar(3);let d=p(i);f(s,c+0,e,d),f(o,c+2,t,d),f(l,c+4,n,d)}}function f(e,t,n,i){i<0&&1===e.x&&(a[t]=e.x-1),0===n.x&&0===n.z&&(a[t]=i/2/Math.PI+.5)}function p(e){return Math.atan2(e.z,-e.x)}function m(e){return Math.atan2(-e.y,Math.sqrt(e.x*e.x+e.z*e.z))}(function(e){let n=new t1,i=new t1,r=new t1;for(let a=0;a<t.length;a+=3)d(t[a+0],n),d(t[a+1],i),d(t[a+2],r),s(n,i,r,e)})(i),o(n),l(),this.setAttribute("position",new iG(r,3)),this.setAttribute("normal",new iG(r.slice(),3)),this.setAttribute("uv",new iG(a,2)),0===i?this.computeVertexNormals():this.normalizeNormals()}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new rB(e.vertices,e.indices,e.radius,e.details)}}class rH extends rB{constructor(e=1,t=0){let n=(1+Math.sqrt(5))/2,i=1/n;super([-1,-1,-1,-1,-1,1,-1,1,-1,-1,1,1,1,-1,-1,1,-1,1,1,1,-1,1,1,1,0,-i,-n,0,-i,n,0,i,-n,0,i,n,-i,-n,0,-i,n,0,i,-n,0,i,n,0,-n,0,-i,n,0,-i,-n,0,i,n,0,i],[3,11,7,3,7,15,3,15,13,7,19,17,7,17,6,7,6,15,17,4,8,17,8,10,17,10,6,8,0,16,8,16,2,8,2,10,0,12,1,0,1,18,0,18,16,6,10,2,6,2,13,6,13,15,2,16,18,2,18,3,2,3,13,18,1,9,18,9,11,18,11,3,4,14,12,4,12,0,4,0,8,11,9,5,11,5,19,11,19,7,19,5,14,19,14,4,19,4,17,1,12,14,1,14,5,1,5,9],e,t),this.type="DodecahedronGeometry",this.parameters={radius:e,detail:t}}static fromJSON(e){return new rH(e.radius,e.detail)}}class rG{constructor(){this.type="Curve",this.arcLengthDivisions=200,this.needsUpdate=!1,this.cacheArcLengths=null}getPoint(){console.warn("THREE.Curve: .getPoint() not implemented.")}getPointAt(e,t){let n=this.getUtoTmapping(e);return this.getPoint(n,t)}getPoints(e=5){let t=[];for(let n=0;n<=e;n++)t.push(this.getPoint(n/e));return t}getSpacedPoints(e=5){let t=[];for(let n=0;n<=e;n++)t.push(this.getPointAt(n/e));return t}getLength(){let e=this.getLengths();return e[e.length-1]}getLengths(e=this.arcLengthDivisions){if(this.cacheArcLengths&&this.cacheArcLengths.length===e+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;let t=[],n,i=this.getPoint(0),r=0;t.push(0);for(let a=1;a<=e;a++)t.push(r+=(n=this.getPoint(a/e)).distanceTo(i)),i=n;return this.cacheArcLengths=t,t}updateArcLengths(){this.needsUpdate=!0,this.getLengths()}getUtoTmapping(e,t=null){let n;let i=this.getLengths(),r=0,a=i.length;n=t||e*i[a-1];let s=0,o=a-1,l;for(;s<=o;)if((l=i[r=Math.floor(s+(o-s)/2)]-n)<0)s=r+1;else if(l>0)o=r-1;else{o=r;break}if(i[r=o]===n)return r/(a-1);let u=i[r],c=i[r+1]-u;return(r+(n-u)/c)/(a-1)}getTangent(e,t){let n=e-1e-4,i=e+1e-4;n<0&&(n=0),i>1&&(i=1);let r=this.getPoint(n),a=this.getPoint(i),s=t||(r.isVector2?new tJ:new t1);return s.copy(a).sub(r).normalize(),s}getTangentAt(e,t){let n=this.getUtoTmapping(e);return this.getTangent(n,t)}computeFrenetFrames(e,t=!1){let n=new t1,i=[],r=[],a=[],s=new t1,o=new nZ;for(let t=0;t<=e;t++){let n=t/e;i[t]=this.getTangentAt(n,new t1)}r[0]=new t1,a[0]=new t1;let l=Number.MAX_VALUE,u=Math.abs(i[0].x),c=Math.abs(i[0].y),d=Math.abs(i[0].z);u<=l&&(l=u,n.set(1,0,0)),c<=l&&(l=c,n.set(0,1,0)),d<=l&&n.set(0,0,1),s.crossVectors(i[0],n).normalize(),r[0].crossVectors(i[0],s),a[0].crossVectors(i[0],r[0]);for(let t=1;t<=e;t++){if(r[t]=r[t-1].clone(),a[t]=a[t-1].clone(),s.crossVectors(i[t-1],i[t]),s.length()>Number.EPSILON){s.normalize();let e=Math.acos(tZ(i[t-1].dot(i[t]),-1,1));r[t].applyMatrix4(o.makeRotationAxis(s,e))}a[t].crossVectors(i[t],r[t])}if(!0===t){let t=Math.acos(tZ(r[0].dot(r[e]),-1,1));t/=e,i[0].dot(s.crossVectors(r[0],r[e]))>0&&(t=-t);for(let n=1;n<=e;n++)r[n].applyMatrix4(o.makeRotationAxis(i[n],t*n)),a[n].crossVectors(i[n],r[n])}return{tangents:i,normals:r,binormals:a}}clone(){return new this.constructor().copy(this)}copy(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}toJSON(){let e={metadata:{version:4.7,type:"Curve",generator:"Curve.toJSON"}};return e.arcLengthDivisions=this.arcLengthDivisions,e.type=this.type,e}fromJSON(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}}class rz extends rG{constructor(e=0,t=0,n=1,i=1,r=0,a=2*Math.PI,s=!1,o=0){super(),this.isEllipseCurve=!0,this.type="EllipseCurve",this.aX=e,this.aY=t,this.xRadius=n,this.yRadius=i,this.aStartAngle=r,this.aEndAngle=a,this.aClockwise=s,this.aRotation=o}getPoint(e,t=new tJ){let n=t,i=2*Math.PI,r=this.aEndAngle-this.aStartAngle,a=Math.abs(r)<Number.EPSILON;for(;r<0;)r+=i;for(;r>i;)r-=i;r<Number.EPSILON&&(r=a?0:i),!0!==this.aClockwise||a||(r===i?r=-i:r-=i);let s=this.aStartAngle+e*r,o=this.aX+this.xRadius*Math.cos(s),l=this.aY+this.yRadius*Math.sin(s);if(0!==this.aRotation){let e=Math.cos(this.aRotation),t=Math.sin(this.aRotation),n=o-this.aX,i=l-this.aY;o=n*e-i*t+this.aX,l=n*t+i*e+this.aY}return n.set(o,l)}copy(e){return super.copy(e),this.aX=e.aX,this.aY=e.aY,this.xRadius=e.xRadius,this.yRadius=e.yRadius,this.aStartAngle=e.aStartAngle,this.aEndAngle=e.aEndAngle,this.aClockwise=e.aClockwise,this.aRotation=e.aRotation,this}toJSON(){let e=super.toJSON();return e.aX=this.aX,e.aY=this.aY,e.xRadius=this.xRadius,e.yRadius=this.yRadius,e.aStartAngle=this.aStartAngle,e.aEndAngle=this.aEndAngle,e.aClockwise=this.aClockwise,e.aRotation=this.aRotation,e}fromJSON(e){return super.fromJSON(e),this.aX=e.aX,this.aY=e.aY,this.xRadius=e.xRadius,this.yRadius=e.yRadius,this.aStartAngle=e.aStartAngle,this.aEndAngle=e.aEndAngle,this.aClockwise=e.aClockwise,this.aRotation=e.aRotation,this}}class rq extends rz{constructor(e,t,n,i,r,a){super(e,t,n,n,i,r,a),this.isArcCurve=!0,this.type="ArcCurve"}}function rW(){let e=0,t=0,n=0,i=0;function r(r,a,s,o){e=r,t=s,n=-3*r+3*a-2*s-o,i=2*r-2*a+s+o}return{initCatmullRom:function(e,t,n,i,a){r(t,n,a*(n-e),a*(i-t))},initNonuniformCatmullRom:function(e,t,n,i,a,s,o){let l=(t-e)/a-(n-e)/(a+s)+(n-t)/s,u=(n-t)/s-(i-t)/(s+o)+(i-n)/o;r(t,n,l*=s,u*=s)}
48,calc:function(r){let a=r*r,s=a*r;return e+t*r+n*a+i*s}}}let r$=new t1,rZ=new rW,rY=new rW,rK=new rW;class rX extends rG{constructor(e=[],t=!1,n="centripetal",i=.5){super(),this.isCatmullRomCurve3=!0,this.type="CatmullRomCurve3",this.points=e,this.closed=t,this.curveType=n,this.tension=i}getPoint(e,t=new t1){let n,i;let r=t,a=this.points,s=a.length,o=(s-(this.closed?0:1))*e,l=Math.floor(o),u=o-l;this.closed?l+=l>0?0:(Math.floor(Math.abs(l)/s)+1)*s:0===u&&l===s-1&&(l=s-2,u=1),this.closed||l>0?n=a[(l-1)%s]:(r$.subVectors(a[0],a[1]).add(a[0]),n=r$);let c=a[l%s],d=a[(l+1)%s];if(this.closed||l+2<s?i=a[(l+2)%s]:(r$.subVectors(a[s-1],a[s-2]).add(a[s-1]),i=r$),"centripetal"===this.curveType||"chordal"===this.curveType){let e="chordal"===this.curveType?.5:.25,t=Math.pow(n.distanceToSquared(c),e),r=Math.pow(c.distanceToSquared(d),e),a=Math.pow(d.distanceToSquared(i),e);r<1e-4&&(r=1),t<1e-4&&(t=r),a<1e-4&&(a=r),rZ.initNonuniformCatmullRom(n.x,c.x,d.x,i.x,t,r,a),rY.initNonuniformCatmullRom(n.y,c.y,d.y,i.y,t,r,a),rK.initNonuniformCatmullRom(n.z,c.z,d.z,i.z,t,r,a)}else"catmullrom"===this.curveType&&(rZ.initCatmullRom(n.x,c.x,d.x,i.x,this.tension),rY.initCatmullRom(n.y,c.y,d.y,i.y,this.tension),rK.initCatmullRom(n.z,c.z,d.z,i.z,this.tension));return r.set(rZ.calc(u),rY.calc(u),rK.calc(u)),r}copy(e){super.copy(e),this.points=[];for(let t=0,n=e.points.length;t<n;t++){let n=e.points[t];this.points.push(n.clone())}return this.closed=e.closed,this.curveType=e.curveType,this.tension=e.tension,this}toJSON(){let e=super.toJSON();e.points=[];for(let t=0,n=this.points.length;t<n;t++){let n=this.points[t];e.points.push(n.toArray())}return e.closed=this.closed,e.curveType=this.curveType,e.tension=this.tension,e}fromJSON(e){super.fromJSON(e),this.points=[];for(let t=0,n=e.points.length;t<n;t++){let n=e.points[t];this.points.push(new t1().fromArray(n))}return this.closed=e.closed,this.curveType=e.curveType,this.tension=e.tension,this}}function rQ(e,t,n,i,r){let a=(i-t)*.5,s=(r-n)*.5,o=e*e;return e*o*(2*n-2*i+a+s)+(-3*n+3*i-2*a-s)*o+a*e+n}function rJ(e,t){let n=1-e;return n*n*t}function r0(e,t){return 2*(1-e)*e*t}function r1(e,t){return e*e*t}function r2(e,t,n,i){return rJ(e,t)+r0(e,n)+r1(e,i)}function r3(e,t){let n=1-e;return n*n*n*t}function r5(e,t){let n=1-e;return 3*n*n*e*t}function r4(e,t){return 3*(1-e)*e*e*t}function r6(e,t){return e*e*e*t}function r8(e,t,n,i,r){return r3(e,t)+r5(e,n)+r4(e,i)+r6(e,r)}class r7 extends rG{constructor(e=new tJ,t=new tJ,n=new tJ,i=new tJ){super(),this.isCubicBezierCurve=!0,this.type="CubicBezierCurve",this.v0=e,this.v1=t,this.v2=n,this.v3=i}getPoint(e,t=new tJ){let n=t,i=this.v0,r=this.v1,a=this.v2,s=this.v3;return n.set(r8(e,i.x,r.x,a.x,s.x),r8(e,i.y,r.y,a.y,s.y)),n}copy(e){return super.copy(e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this.v3.copy(e.v3),this}toJSON(){let e=super.toJSON();return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e.v3=this.v3.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this.v3.fromArray(e.v3),this}}class r9 extends rG{constructor(e=new t1,t=new t1,n=new t1,i=new t1){super(),this.isCubicBezierCurve3=!0,this.type="CubicBezierCurve3",this.v0=e,this.v1=t,this.v2=n,this.v3=i}getPoint(e,t=new t1){let n=t,i=this.v0,r=this.v1,a=this.v2,s=this.v3;return n.set(r8(e,i.x,r.x,a.x,s.x),r8(e,i.y,r.y,a.y,s.y),r8(e,i.z,r.z,a.z,s.z)),n}copy(e){return super.copy(e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this.v3.copy(e.v3),this}toJSON(){let e=super.toJSON();return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e.v3=this.v3.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this.v3.fromArray(e.v3),this}}class ae extends rG{constructor(e=new tJ,t=new tJ){super(),this.isLineCurve=!0,this.type="LineCurve",this.v1=e,this.v2=t}getPoint(e,t=new tJ){let n=t;return 1===e?n.copy(this.v2):(n.copy(this.v2).sub(this.v1),n.multiplyScalar(e).add(this.v1)),n}getPointAt(e,t){return this.getPoint(e,t)}
vendor: 4,370 bytes, line 48
48getTangent(e,t=new tJ){return t.subVectors(this.v2,this.v1).normalize()}getTangentAt(e,t){return this.getTangent(e,t)}copy(e){return super.copy(e),this.v1.copy(e.v1),this.v2.copy(e.v2),this}toJSON(){let e=super.toJSON();return e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}class at extends rG{constructor(e=new t1,t=new t1){super(),this.isLineCurve3=!0,this.type="LineCurve3",this.v1=e,this.v2=t}getPoint(e,t=new t1){let n=t;return 1===e?n.copy(this.v2):(n.copy(this.v2).sub(this.v1),n.multiplyScalar(e).add(this.v1)),n}getPointAt(e,t){return this.getPoint(e,t)}getTangent(e,t=new t1){return t.subVectors(this.v2,this.v1).normalize()}getTangentAt(e,t){return this.getTangent(e,t)}copy(e){return super.copy(e),this.v1.copy(e.v1),this.v2.copy(e.v2),this}toJSON(){let e=super.toJSON();return e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}class an extends rG{constructor(e=new tJ,t=new tJ,n=new tJ){super(),this.isQuadraticBezierCurve=!0,this.type="QuadraticBezierCurve",this.v0=e,this.v1=t,this.v2=n}getPoint(e,t=new tJ){let n=t,i=this.v0,r=this.v1,a=this.v2;return n.set(r2(e,i.x,r.x,a.x),r2(e,i.y,r.y,a.y)),n}copy(e){return super.copy(e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this}toJSON(){let e=super.toJSON();return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}class ai extends rG{constructor(e=new t1,t=new t1,n=new t1){super(),this.isQuadraticBezierCurve3=!0,this.type="QuadraticBezierCurve3",this.v0=e,this.v1=t,this.v2=n}getPoint(e,t=new t1){let n=t,i=this.v0,r=this.v1,a=this.v2;return n.set(r2(e,i.x,r.x,a.x),r2(e,i.y,r.y,a.y),r2(e,i.z,r.z,a.z)),n}copy(e){return super.copy(e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this}toJSON(){let e=super.toJSON();return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}class ar extends rG{constructor(e=[]){super(),this.isSplineCurve=!0,this.type="SplineCurve",this.points=e}getPoint(e,t=new tJ){let n=t,i=this.points,r=(i.length-1)*e,a=Math.floor(r),s=r-a,o=i[0===a?a:a-1],l=i[a],u=i[a>i.length-2?i.length-1:a+1],c=i[a>i.length-3?i.length-1:a+2];return n.set(rQ(s,o.x,l.x,u.x,c.x),rQ(s,o.y,l.y,u.y,c.y)),n}copy(e){super.copy(e),this.points=[];for(let t=0,n=e.points.length;t<n;t++){let n=e.points[t];this.points.push(n.clone())}return this}toJSON(){let e=super.toJSON();e.points=[];for(let t=0,n=this.points.length;t<n;t++){let n=this.points[t];e.points.push(n.toArray())}return e}fromJSON(e){super.fromJSON(e),this.points=[];for(let t=0,n=e.points.length;t<n;t++){let n=e.points[t];this.points.push(new tJ().fromArray(n))}return this}}var aa=Object.freeze({__proto__:null,ArcCurve:rq,CatmullRomCurve3:rX,CubicBezierCurve:r7,CubicBezierCurve3:r9,EllipseCurve:rz,LineCurve:ae,LineCurve3:at,QuadraticBezierCurve:an,QuadraticBezierCurve3:ai,SplineCurve:ar});class as extends rG{constructor(){super(),this.type="CurvePath",this.curves=[],this.autoClose=!1}add(e){this.curves.push(e)}closePath(){let e=this.curves[0].getPoint(0),t=this.curves[this.curves.length-1].getPoint(1);if(!e.equals(t)){let n=!0===e.isVector2?"LineCurve":"LineCurve3";this.curves.push(new aa[n](t,e))}return this}getPoint(e,t){let n=e*this.getLength(),i=this.getCurveLengths(),r=0;for(;r<i.length;){if(i[r]>=n){let e=i[r]-n,a=this.curves[r],s=a.getLength(),o=0===s?0:1-e/s;return a.getPointAt(o,t)}r++}return null}getLength(){let e=this.getCurveLengths();return e[e.length-1]}updateArcLengths(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()}getCurveLengths(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;let e=[],t=0;for(let n=0,i=this.curves.length;n<i;n++)e.push(t+=this.curves[n].getLength());return this.cacheLengths=e,e}getSpacedPoints(e=40){let t=[];for(let n=0;n<=e;n++)t.push(this.getPoint(n/e));return this.autoClose&&t.push(t[0]),t}getPoints(e=12){let t;let n=[];for(let i=0,r=this.curves;i<r.length;i++){let a=r[i],s=a.isEllipseCurve?2*e:a.isLineCurve||a.isLineCurve3?1:a.isS
vendor: 5,983 bytes, line 48
48plineCurve?e*a.points.length:e,o=a.getPoints(s);for(let e=0;e<o.length;e++){let i=o[e];t&&t.equals(i)||(n.push(i),t=i)}}return this.autoClose&&n.length>1&&!n[n.length-1].equals(n[0])&&n.push(n[0]),n}copy(e){super.copy(e),this.curves=[];for(let t=0,n=e.curves.length;t<n;t++){let n=e.curves[t];this.curves.push(n.clone())}return this.autoClose=e.autoClose,this}toJSON(){let e=super.toJSON();e.autoClose=this.autoClose,e.curves=[];for(let t=0,n=this.curves.length;t<n;t++){let n=this.curves[t];e.curves.push(n.toJSON())}return e}fromJSON(e){super.fromJSON(e),this.autoClose=e.autoClose,this.curves=[];for(let t=0,n=e.curves.length;t<n;t++){let n=e.curves[t];this.curves.push(new aa[n.type]().fromJSON(n))}return this}}class ao extends as{constructor(e){super(),this.type="Path",this.currentPoint=new tJ,e&&this.setFromPoints(e)}setFromPoints(e){this.moveTo(e[0].x,e[0].y);for(let t=1,n=e.length;t<n;t++)this.lineTo(e[t].x,e[t].y);return this}moveTo(e,t){return this.currentPoint.set(e,t),this}lineTo(e,t){let n=new ae(this.currentPoint.clone(),new tJ(e,t));return this.curves.push(n),this.currentPoint.set(e,t),this}quadraticCurveTo(e,t,n,i){let r=new an(this.currentPoint.clone(),new tJ(e,t),new tJ(n,i));return this.curves.push(r),this.currentPoint.set(n,i),this}bezierCurveTo(e,t,n,i,r,a){let s=new r7(this.currentPoint.clone(),new tJ(e,t),new tJ(n,i),new tJ(r,a));return this.curves.push(s),this.currentPoint.set(r,a),this}splineThru(e){let t=new ar([this.currentPoint.clone()].concat(e));return this.curves.push(t),this.currentPoint.copy(e[e.length-1]),this}arc(e,t,n,i,r,a){let s=this.currentPoint.x,o=this.currentPoint.y;return this.absarc(e+s,t+o,n,i,r,a),this}absarc(e,t,n,i,r,a){return this.absellipse(e,t,n,n,i,r,a),this}ellipse(e,t,n,i,r,a,s,o){let l=this.currentPoint.x,u=this.currentPoint.y;return this.absellipse(e+l,t+u,n,i,r,a,s,o),this}absellipse(e,t,n,i,r,a,s,o){let l=new rz(e,t,n,i,r,a,s,o);if(this.curves.length>0){let e=l.getPoint(0);e.equals(this.currentPoint)||this.lineTo(e.x,e.y)}this.curves.push(l);let u=l.getPoint(1);return this.currentPoint.copy(u),this}copy(e){return super.copy(e),this.currentPoint.copy(e.currentPoint),this}toJSON(){let e=super.toJSON();return e.currentPoint=this.currentPoint.toArray(),e}fromJSON(e){return super.fromJSON(e),this.currentPoint.fromArray(e.currentPoint),this}}class al extends ao{constructor(e){super(e),this.uuid=t$(),this.type="Shape",this.holes=[]}getPointsHoles(e){let t=[];for(let n=0,i=this.holes.length;n<i;n++)t[n]=this.holes[n].getPoints(e);return t}extractPoints(e){return{shape:this.getPoints(e),holes:this.getPointsHoles(e)}}copy(e){super.copy(e),this.holes=[];for(let t=0,n=e.holes.length;t<n;t++){let n=e.holes[t];this.holes.push(n.clone())}return this}toJSON(){let e=super.toJSON();e.uuid=this.uuid,e.holes=[];for(let t=0,n=this.holes.length;t<n;t++){let n=this.holes[t];e.holes.push(n.toJSON())}return e}fromJSON(e){super.fromJSON(e),this.uuid=e.uuid,this.holes=[];for(let t=0,n=e.holes.length;t<n;t++){let n=e.holes[t];this.holes.push(new ao().fromJSON(n))}return this}}function au(e,t,n=2){let i,r,a;let s=t&&t.length,o=s?t[0]*n:e.length,l=ac(e,0,o,n,!0),u=[];if(!l||l.next===l.prev)return u;if(s&&(l=av(e,t,l,n)),e.length>80*n){i=1/0,r=1/0;let t=-1/0,s=-1/0;for(let a=n;a<o;a+=n){let n=e[a],o=e[a+1];n<i&&(i=n),o<r&&(r=o),n>t&&(t=n),o>s&&(s=o)}a=0!==(a=Math.max(t-i,s-r))?32767/a:0}return ah(l,u,n,i,r,a,0),u}function ac(e,t,n,i,r){let a;if(r===aB(e,t,n,i)>0)for(let r=t;r<n;r+=i)a=aj(r/i|0,e[r],e[r+1],a);else for(let r=n-i;r>=t;r-=i)a=aj(r/i|0,e[r],e[r+1],a);return a&&aA(a,a.next)&&(aU(a),a=a.next),a}function ad(e,t){if(!e)return e;t||(t=e);let n=e,i;do if(i=!1,!n.steiner&&(aA(n,n.next)||0===aM(n.prev,n,n.next))){if(aU(n),(n=t=n.prev)===n.next)break;i=!0}else n=n.next;while(i||n!==t);return t}function ah(e,t,n,i,r,a,s){if(!e)return;!s&&a&&aC(e,i,r,a);let o=e;for(;e.prev!==e.next;){let l=e.prev,u=e.next;if(a?ap(e,i,r,a):af(e)){t.push(l.i,e.i,u.i),aU(e),e=u.next,o=u.next;continue}if((e=u)===o){s?1===s?ah(e=am(ad(e),t),t,n,i,r,a,2):2===s&&ag(e,t,n,i,r,a):ah(ad(e),t,n,i,r,a,1);break}}}function af(e){let t=e.prev,n=e,i=e.next;if(aM(t,n,i)>=0)return!1;let r=t.x,a=n.x,s=i.x,o=t.y,l=n.y,u=i.y,c=Math.min(r,a,s),d=Math.min(o,l,u),h=Math.max(r,a,s),f=Math.max(o,l,u),p=i.next;for(;p!==t;){if(p.x>=c&&p.x<=h&&p.y>=d&&p.y<=f&&aL(r,o,a,l,s,u,p.x,p.y)&&aM(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function ap(e,t,n,i){let r=e.prev,a=e,s=e.next;if(aM(r,a,s)>=0)return!1;let o=r.x,l=a.x,u=s.x,c=r.y,d=a.y,h=s.y,f=Math.min(o,l,u),p=Math.min(c,d,h),m=Math.max(o,l,u),g=Math.max(c,d,h),v=aw(f,p,t,n,i),y=aw(m,g,t,n,i),_=e.prevZ,b=e.nextZ;for(;_&&_.z>=v&&b&&b.z<=y;){if(_.x>=f&&_.x<=m&&_.y>=p&&_.y<=g&&_!==r&&_!==s&&aL(o,c,l,d,u,h,_.x,_.y)&&aM(_.prev,_,_.next)>=0||(_=_.prevZ,b.x>=f&&b.x<=m&&b.y>=p&&b.y<=g&&b!==r&&b!==s&&aL(o,c,l,d,u,h,b.x,b.y)&&aM(b.prev,b,b.next)>=0))return!1;b=b.nextZ}for(;_&&_.z>=v;){if(_.x>=f&&_.x<=m&&_.y>=p&&_.y<=g&&_!==r&&_!==s&&aL(o,c,l,d,u,h,_.x,_.y)&&aM(_.prev,_,_.next)>=0)return!1;_=_.prevZ}for(;b&&b.z<=y;){if(b.x>=f&&b.x<=m&&b.y>=p&&b.y<=g&&b!==r&&b!==s&&aL(o,c,l,d,u,h,b.x,b.y)&&aM(b.prev,b,b.next)>=0)return!1;b=b.nextZ}return!0}function am(e,t){let n=e;do{let i=n.prev,r=n.next.next;!aA(i,r)&&aI(i,n,n.next,r)&&aN(i,r)&&aN(r,i)&&(t.push(i.i,n.i,r.i),aU(n),aU(n.next),n=e=r),n=n.next}while(n!==e);return ad(n)}function ag(e,t,n,i,r,a){let s=e;do{let e=s.next.next;for(;e!==s.prev;){if(s.i!==e.i&&aP(s,e)){let o=aO(s,e);s=ad(s,s.next),o=ad(o,o.next),ah(s,t,n,i,r,a,0),ah(o,t,n,i,r,a,0);return}e=e.next}s=s.next}while(s!==e)}function av(e,t,n,i){let r=[];for(let n=0,a=t.length;n<a;n++){let s=t[n]*i,o=n<a-1?t[n+1]*i:e.length,l=ac(e,s,o,i,!1);l===l.next&&(l.steiner=!0),r.push(aT(l))}r.sort(ay);for(let e=0;e<r.length;e++)n=a_(r[e],n);return n}function ay(e,t){let n=e.x-t.x;return 0===n&&0==(n=e.y-t.y)&&(n=(e.next.y-e.y)/(e.next.x-e.x)-(t.next.y-t.y)/(t.next.x-t.x)),n}function a_(e,t){let n=ab(e,t);if(!n)return t;let i=aO(n,e);return ad(i,i.next),ad(n,n.next)}
48function ab(e,t){let n,i=t,r=e.x,a=e.y,s=-1/0;if(aA(e,i))return i;do{if(aA(e,i.next))return i.next;if(a<=i.y&&a>=i.next.y&&i.next.y!==i.y){let e=i.x+(a-i.y)*(i.next.x-i.x)/(i.next.y-i.y);if(e<=r&&e>s&&(s=e,n=i.x<i.next.x?i:i.next,e===r))return n}i=i.next}while(i!==t);if(!n)return null;let o=n,l=n.x,u=n.y,c=1/0;i=n;do{if(r>=i.x&&i.x>=l&&r!==i.x&&aS(a<u?r:s,a,l,u,a<u?s:r,a,i.x,i.y)){let t=Math.abs(a-i.y)/(r-i.x);aN(i,e)&&(t<c||t===c&&(i.x>n.x||i.x===n.x&&ax(n,i)))&&(n=i,c=t)}i=i.next}while(i!==o);return n}function ax(e,t){return 0>aM(e.prev,e,t.prev)&&0>aM(t.next,e,e.next)}function aC(e,t,n,i){let r=e;do 0===r.z&&(r.z=aw(r.x,r.y,t,n,i)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next;while(r!==e);r.prevZ.nextZ=null,r.prevZ=null,aE(r)}function aE(e){let t;let n=1;do{let i,r=e;e=null;let a=null;for(t=0;r;){t++;let s=r,o=0;for(let e=0;e<n&&(o++,s=s.nextZ);e++);let l=n;for(;o>0||l>0&&s;)0!==o&&(0===l||!s||r.z<=s.z)?(i=r,r=r.nextZ,o--):(i=s,s=s.nextZ,l--),a?a.nextZ=i:e=i,i.prevZ=a,a=i;r=s}a.nextZ=null,n*=2}while(t>1);return e}function aw(e,t,n,i,r){return(e=((e=((e=((e=((e=(e-n)*r|0)|e<<8)&16711935)|e<<4)&252645135)|e<<2)&858993459)|e<<1)&1431655765)|(t=((t=((t=((t=((t=(t-i)*r|0)|t<<8)&16711935)|t<<4)&252645135)|t<<2)&858993459)|t<<1)&1431655765)<<1}function aT(e){let t=e,n=e;do(t.x<n.x||t.x===n.x&&t.y<n.y)&&(n=t),t=t.next;while(t!==e);return n}function aS(e,t,n,i,r,a,s,o){return(r-s)*(t-o)>=(e-s)*(a-o)&&(e-s)*(i-o)>=(n-s)*(t-o)&&(n-s)*(a-o)>=(r-s)*(i-o)}function aL(e,t,n,i,r,a,s,o){return!(e===s&&t===o)&&aS(e,t,n,i,r,a,s,o)}function aP(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!aD(e,t)&&(aN(e,t)&&aN(t,e)&&aF(e,t)&&(aM(e.prev,e,t.prev)||aM(e,t.prev,t))||aA(e,t)&&aM(e.prev,e,e.next)>0&&aM(t.prev,t,t.next)>0)}function aM(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function aA(e,t){return e.x===t.x&&e.y===t.y}function aI(e,t,n,i){let r=ak(aM(e,t,n)),a=ak(aM(e,t,i)),s=ak(aM(n,i,e)),o=ak(aM(n,i,t));return!!(r!==a&&s!==o||0===r&&aR(e,n,t)||0===a&&aR(e,i,t)||0===s&&aR(n,e,i)||0===o&&aR(n,t,i))}function aR(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function ak(e){return e>0?1:e<0?-1:0}function aD(e,t){let n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&aI(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}function aN(e,t){return 0>aM(e.prev,e,e.next)?aM(e,t,e.next)>=0&&aM(e,e.prev,t)>=0:0>aM(e,t,e.prev)||0>aM(e,e.next,t)}function aF(e,t){let n=e,i=!1,r=(e.x+t.x)/2,a=(e.y+t.y)/2;do n.y>a!=n.next.y>a&&n.next.y!==n.y&&r<(n.next.x-n.x)*(a-n.y)/(n.next.y-n.y)+n.x&&(i=!i),n=n.next;while(n!==e);return i}function aO(e,t){let n=aV(e.i,e.x,e.y),i=aV(t.i,t.x,t.y),r=e.next,a=t.prev;return e.next=t,t.prev=e,n.next=r,r.prev=n,i.next=n,n.prev=i,a.next=i,i.prev=a,i}function aj(e,t,n,i){let r=aV(e,t,n);return i?(r.next=i.next,r.prev=i,i.next.prev=r,i.next=r):(r.prev=r,r.next=r),r}function aU(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function aV(e,t,n){return{i:e,x:t,y:n,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function aB(e,t,n,i){let r=0;for(let a=t,s=n-i;a<n;a+=i)r+=(e[s]-e[a])*(e[a+1]+e[s+1]),s=a;return r}class aH{static triangulate(e,t,n=2){return au(e,t,n)}}class aG{static area(e){let t=e.length,n=0;for(let i=t-1,r=0;r<t;i=r++)n+=e[i].x*e[r].y-e[r].x*e[i].y;return .5*n}static isClockWise(e){return 0>aG.area(e)}static triangulateShape(e,t){let n=[],i=[],r=[];az(e),aq(n,e);let a=e.length;t.forEach(az);for(let e=0;e<t.length;e++)i.push(a),a+=t[e].length,aq(n,t[e]);let s=aH.triangulate(n,i);for(let e=0;e<s.length;e+=3)r.push(s.slice(e,e+3));return r}}function az(e){let t=e.length;t>2&&e[t-1].equals(e[0])&&e.pop()}function aq(e,t){for(let n=0;n<t.length;n++)e.push(t[n].x),e.push(t[n].y)}class aW extends iX{constructor(e=new al([new tJ(.5,.5),new tJ(-.5,.5),new tJ(-.5,-.5),new tJ(.5,-.5)]),t={}){super(),this.type="ExtrudeGeometry",this.parameters={shapes:e,options:t},e=Array.isArray(e)?e:[e];let n=this,i=[],r=[];for(let t=0,n=e.length;t<n;t++)a(e[t]);function a(e){let a,s,o,l,u;let c=[],d=void 0!==t.curveSegments?t.curveSegments:12,h=void 0!==t.steps?t.steps:1,f=void 0!==t.depth?t.depth:1,p=void 0===t.bevelEnabled||t.bevelEnabled,m=void 0!==t.bevelThickness?t.bevelThickness:.2,g=void 0!==t.bevelSize?t.bevelSize:m-.1,v=void 0!==t.bevelOffset?t.bevelOffset:0,y=void 0!==t.bevelSegments?t.bevelSegments:3,_=t.extrudePath,b=void 0!==t.UVGenerator?t.UVGenerator:a$,x,C=!1;
48_&&(x=_.getSpacedPoints(h),C=!0,p=!1,a=_.computeFrenetFrames(h,!1),s=new t1,o=new t1,l=new t1),p||(y=0,m=0,g=0,v=0);let E=e.extractPoints(d),w=E.shape,T=E.holes;if(!aG.isClockWise(w)){w=w.reverse();for(let e=0,t=T.length;e<t;e++){let t=T[e];aG.isClockWise(t)&&(T[e]=t.reverse())}}function S(e){let t=1e-10*1e-10,n=e[0];for(let i=1;i<=e.length;i++){let r=i%e.length,a=e[r],s=a.x-n.x,o=a.y-n.y,l=s*s+o*o,u=Math.max(Math.abs(a.x),Math.abs(a.y),Math.abs(n.x),Math.abs(n.y));if(l<=t*u*u){e.splice(r,1),i--;continue}n=a}}S(w),T.forEach(S);let L=T.length,P=w;for(let e=0;e<L;e++){let t=T[e];w=w.concat(t)}function M(e,t,n){return t||console.error("THREE.ExtrudeGeometry: vec does not exist"),e.clone().addScaledVector(t,n)}let A=w.length;function I(e,t,n){let i,r,a;let s=e.x-t.x,o=e.y-t.y,l=n.x-e.x,u=n.y-e.y,c=s*s+o*o;if(Math.abs(s*u-o*l)>Number.EPSILON){let d=Math.sqrt(c),h=Math.sqrt(l*l+u*u),f=t.x-o/d,p=t.y+s/d,m=((n.x-u/h-f)*u-(n.y+l/h-p)*l)/(s*u-o*l),g=(i=f+s*m-e.x)*i+(r=p+o*m-e.y)*r;if(g<=2)return new tJ(i,r);a=Math.sqrt(g/2)}else{let e=!1;s>Number.EPSILON?l>Number.EPSILON&&(e=!0):s<-Number.EPSILON?l<-Number.EPSILON&&(e=!0):Math.sign(o)===Math.sign(u)&&(e=!0),e?(i=-o,r=s,a=Math.sqrt(c)):(i=s,r=o,a=Math.sqrt(c/2))}return new tJ(i/a,r/a)}let R=[];for(let e=0,t=P.length,n=t-1,i=e+1;e<t;e++,n++,i++)n===t&&(n=0),i===t&&(i=0),R[e]=I(P[e],P[n],P[i]);let k=[],D,N=R.concat();for(let e=0,t=L;e<t;e++){let t=T[e];D=[];for(let e=0,n=t.length,i=n-1,r=e+1;e<n;e++,i++,r++)i===n&&(i=0),r===n&&(r=0),D[e]=I(t[e],t[i],t[r]);k.push(D),N=N.concat(D)}if(0===y)u=aG.triangulateShape(P,T);else{let e=[],t=[];for(let n=0;n<y;n++){let i=n/y,r=m*Math.cos(i*Math.PI/2),a=g*Math.sin(i*Math.PI/2)+v;for(let t=0,n=P.length;t<n;t++){let n=M(P[t],R[t],a);V(n.x,n.y,-r),0===i&&e.push(n)}for(let e=0,n=L;e<n;e++){let n=T[e];D=k[e];let s=[];for(let e=0,t=n.length;e<t;e++){let t=M(n[e],D[e],a);V(t.x,t.y,-r),0===i&&s.push(t)}0===i&&t.push(s)}}u=aG.triangulateShape(e,t)}let F=u.length,O=g+v;for(let e=0;e<A;e++){let t=p?M(w[e],N[e],O):w[e];C?(o.copy(a.normals[0]).multiplyScalar(t.x),s.copy(a.binormals[0]).multiplyScalar(t.y),l.copy(x[0]).add(o).add(s),V(l.x,l.y,l.z)):V(t.x,t.y,0)}for(let e=1;e<=h;e++)for(let t=0;t<A;t++){let n=p?M(w[t],N[t],O):w[t];C?(o.copy(a.normals[e]).multiplyScalar(n.x),s.copy(a.binormals[e]).multiplyScalar(n.y),l.copy(x[e]).add(o).add(s),V(l.x,l.y,l.z)):V(n.x,n.y,f/h*e)}for(let e=y-1;e>=0;e--){let t=e/y,n=m*Math.cos(t*Math.PI/2),i=g*Math.sin(t*Math.PI/2)+v;for(let e=0,t=P.length;e<t;e++){let t=M(P[e],R[e],i);V(t.x,t.y,f+n)}for(let e=0,t=T.length;e<t;e++){let t=T[e];D=k[e];for(let e=0,r=t.length;e<r;e++){let r=M(t[e],D[e],i);C?V(r.x,r.y+x[h-1].y,x[h-1].x+n):V(r.x,r.y,f+n)}}}function j(){let e=i.length/3,t=0;U(P,0),t+=P.length;for(let e=0,n=T.length;e<n;e++){let n=T[e];U(n,t),t+=n.length}n.addGroup(e,i.length/3-e,1)}function U(e,t){let n=e.length;for(;--n>=0;){let i=n,r=n-1;r<0&&(r=e.length-1);for(let e=0,n=h+2*y;e<n;e++){let n=A*e,a=A*(e+1);H(t+i+n,t+r+n,t+r+a,t+i+a)}}}function V(e,t,n){c.push(e),c.push(t),c.push(n)}function B(e,t,r){G(e),G(t),G(r);let a=i.length/3,s=b.generateTopUV(n,i,a-3,a-2,a-1);z(s[0]),z(s[1]),z(s[2])}function H(e,t,r,a){G(e),G(t),G(a),G(t),G(r),G(a);let s=i.length/3,o=b.generateSideWallUV(n,i,s-6,s-3,s-2,s-1);z(o[0]),z(o[1]),z(o[3]),z(o[1]),z(o[2]),z(o[3])}function G(e){i.push(c[3*e+0]),i.push(c[3*e+1]),i.push(c[3*e+2])}function z(e){r.push(e.x),r.push(e.y)}(function(){let e=i.length/3;if(p){let e=0,t=0*A;for(let e=0;e<F;e++){let n=u[e];B(n[2]+t,n[1]+t,n[0]+t)}t=A*(e=h+2*y);for(let e=0;e<F;e++){let n=u[e];B(n[0]+t,n[1]+t,n[2]+t)}}else{for(let e=0;e<F;e++){let t=u[e];B(t[2],t[1],t[0])}for(let e=0;e<F;e++){let t=u[e];B(t[0]+A*h,t[1]+A*h,t[2]+A*h)}}n.addGroup(e,i.length/3-e,0)})(),j()}this.setAttribute("position",new iG(i,3)),this.setAttribute("uv",new iG(r,2)),this.computeVertexNormals()}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}toJSON(){let e=super.toJSON();return aZ(this.parameters.shapes,this.parameters.options,e)}static fromJSON(e,t){let n=[];for(let i=0,r=e.shapes.length;i<r;i++){let r=t[e.shapes[i]];n.push(r)}let i=e.options.extrudePath;return void 0!==i&&(e.options.extrudePath=new aa[i.type]().fromJSON(i)),new aW(n,e.options)}}let a$={generateTopUV:function(e,t,n,i,r){let a=t[3*n],s=t[3*n+1],o=t[3*i],l=t[3*i+1],u=t[3*r],c=t[3*r+1];return[new tJ(a,s),new tJ(o,l),new tJ(u,c)]},generateSideWallUV:function(e,t,n,i,r,a){let s=t[3*n],o=t[3*n+1],l=t[3*n+2],u=t[3*i],c=t[3*i+1],d=t[3*i+2],h=t[3*r],f=t[3*r+1],p=t[3*r+2],m=t[3*a],g=t[3*a+1],v=t[3*a+2];return Math.abs(o-c)<Math.abs(s-u)?[new tJ(s,1-l),new tJ(u,1-d),new tJ(h,1-p),new tJ(m,1-v)]:[new tJ(o,1-l),new tJ(c,1-d),new tJ(f,1-p),new tJ(g,1-v)]}};function aZ(e,t,n){if(n.shapes=[],Array.isArray(e))for(let t=0,i=e.length;t<i;t++){let i=e[t];n.shapes.push(i.uuid)}else n.shapes.push(e.uuid);return n.options=Object.assign({},t),void 0!==t.extrudePath&&(n.options.extrudePath=t.extrudePath.toJSON()),n}class aY extends rB{constructor(e=1,t=0){let n=(1+Math.sqrt(5))/2;super([-1,n,0,1,n,0,-1,-n,0,1,-n,0,0,-1,n,0,1,n,0,-1,-n,0,1,-n,n,0,-1,n,0,1,-n,0,-1,-n,0,1],[0,11,5,0,5,1,0,1,7,0,7,10,0,10,11,1,5,9,5,11,4,11,10,2,10,7,6,7,1,8,3,9,4,3,4,2,3,2,6,3,6,8,3,8,9,4,9,5,2,4,11,6,2,10,8,6,7,9,8,1],e,t),this.type="IcosahedronGeometry",this.parameters={radiu
48s:e,detail:t}}static fromJSON(e){return new aY(e.radius,e.detail)}}class aK extends iX{constructor(e=[new tJ(0,-.5),new tJ(.5,0),new tJ(0,.5)],t=12,n=0,i=2*Math.PI){super(),this.type="LatheGeometry",this.parameters={points:e,segments:t,phiStart:n,phiLength:i},t=Math.floor(t),i=tZ(i,0,2*Math.PI);let r=[],a=[],s=[],o=[],l=[],u=1/t,c=new t1,d=new tJ,h=new t1,f=new t1,p=new t1,m=0,g=0;for(let t=0;t<=e.length-1;t++)switch(t){case 0:m=e[t+1].x-e[t].x,g=e[t+1].y-e[t].y,h.x=1*g,h.y=-m,h.z=0*g,p.copy(h),h.normalize(),o.push(h.x,h.y,h.z);break;case e.length-1:o.push(p.x,p.y,p.z);break;default:m=e[t+1].x-e[t].x,g=e[t+1].y-e[t].y,h.x=1*g,h.y=-m,h.z=0*g,f.copy(h),h.x+=p.x,h.y+=p.y,h.z+=p.z,h.normalize(),o.push(h.x,h.y,h.z),p.copy(f)}for(let r=0;r<=t;r++){let h=n+r*u*i,f=Math.sin(h),p=Math.cos(h);for(let n=0;n<=e.length-1;n++){c.x=e[n].x*f,c.y=e[n].y,c.z=e[n].x*p,a.push(c.x,c.y,c.z),d.x=r/t,d.y=n/(e.length-1),s.push(d.x,d.y);let i=o[3*n+0]*f,u=o[3*n+1],h=o[3*n+0]*p;l.push(i,u,h)}}for(let n=0;n<t;n++)for(let t=0;t<e.length-1;t++){let i=t+n*e.length,a=i,s=i+e.length,o=i+e.length+1,l=i+1;r.push(a,s,l),r.push(o,l,s)}this.setIndex(r),this.setAttribute("position",new iG(a,3)),this.setAttribute("uv",new iG(s,2)),this.setAttribute("normal",new iG(l,3))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new aK(e.points,e.segments,e.phiStart,e.phiLength)}}class aX extends rB{constructor(e=1,t=0){super([1,0,0,-1,0,0,0,1,0,0,-1,0,0,0,1,0,0,-1],[0,2,4,0,4,3,0,3,5,0,5,2,1,2,5,1,5,3,1,3,4,1,4,2],e,t),this.type="OctahedronGeometry",this.parameters={radius:e,detail:t}}static fromJSON(e){return new aX(e.radius,e.detail)}}class aQ extends iX{constructor(e=1,t=1,n=1,i=1){super(),this.type="PlaneGeometry",this.parameters={width:e,height:t,widthSegments:n,heightSegments:i};let r=e/2,a=t/2,s=Math.floor(n),o=Math.floor(i),l=s+1,u=o+1,c=e/s,d=t/o,h=[],f=[],p=[],m=[];for(let e=0;e<u;e++){let t=e*d-a;for(let n=0;n<l;n++){let i=n*c-r;f.push(i,-t,0),p.push(0,0,1),m.push(n/s),m.push(1-e/o)}}for(let e=0;e<o;e++)for(let t=0;t<s;t++){let n=t+l*e,i=t+l*(e+1),r=t+1+l*(e+1),a=t+1+l*e;h.push(n,i,a),h.push(i,r,a)}this.setIndex(h),this.setAttribute("position",new iG(f,3)),this.setAttribute("normal",new iG(p,3)),this.setAttribute("uv",new iG(m,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new aQ(e.width,e.height,e.widthSegments,e.heightSegments)}}class aJ extends iX{constructor(e=.5,t=1,n=32,i=1,r=0,a=2*Math.PI){super(),this.type="RingGeometry",this.parameters={innerRadius:e,outerRadius:t,thetaSegments:n,phiSegments:i,thetaStart:r,thetaLength:a},n=Math.max(3,n);let s=[],o=[],l=[],u=[],c=e,d=(t-e)/(i=Math.max(1,i)),h=new t1,f=new tJ;for(let e=0;e<=i;e++){for(let e=0;e<=n;e++){let i=r+e/n*a;h.x=c*Math.cos(i),h.y=c*Math.sin(i),o.push(h.x,h.y,h.z),l.push(0,0,1),f.x=(h.x/t+1)/2,f.y=(h.y/t+1)/2,u.push(f.x,f.y)}c+=d}for(let e=0;e<i;e++){let t=e*(n+1);for(let e=0;e<n;e++){let i=e+t,r=i,a=i+n+1,o=i+n+2,l=i+1;s.push(r,a,l),s.push(a,o,l)}}this.setIndex(s),this.setAttribute("position",new iG(o,3)),this.setAttribute("normal",new iG(l,3)),this.setAttribute("uv",new iG(u,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new aJ(e.innerRadius,e.outerRadius,e.thetaSegments,e.phiSegments,e.thetaStart,e.thetaLength)}}class a0 extends iX{constructor(e=new al([new tJ(0,.5),new tJ(-.5,-.5),new tJ(.5,-.5)]),t=12){super(),this.type="ShapeGeometry",this.parameters={shapes:e,curveSegments:t};let n=[],i=[],r=[],a=[],s=0,o=0;if(!1===Array.isArray(e))l(e);else for(let t=0;t<e.length;t++)l(e[t]),this.addGroup(s,o,t),s+=o,o=0;function l(e){let s=i.length/3,l=e.extractPoints(t),u=l.shape,c=l.holes;!1===aG.isClockWise(u)&&(u=u.reverse());for(let e=0,t=c.length;e<t;e++){let t=c[e];!0===aG.isClockWise(t)&&(c[e]=t.reverse())}let d=aG.triangulateShape(u,c);for(let e=0,t=c.length;e<t;e++){let t=c[e];u=u.concat(t)}for(let e=0,t=u.length;e<t;e++){let t=u[e];i.push(t.x,t.y,0),r.push(0,0,1),a.push(t.x,t.y)}for(let e=0,t=d.length;e<t;e++){let t=d[e],i=t[0]+s,r=t[1]+s,a=t[2]+s;n.push(i,r,a),o+=3}}this.setIndex(n),this.setAttribute("position",new iG(i,3)),this.setAttribute("normal",new iG(r,3)),this.setAttribute("uv",new iG(a,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}toJSON(){let e=super.toJSON();return a1(this.parameters.shapes,e)}static fromJSON(e,t){let n=[];for(let i=0,r=e.shapes.length;i<r;i++){let r=t[e.shapes[i]];n.push(r)}return new a0(n,e.curveSegments)}}function a1(e,t){if(t.shapes=[],Array.isArray(e))for(let n=0,i=e.length;n<i;n++){let i=e[n];t.shapes.push(i.uuid)}else t.shapes.push(e.uuid);return t}class a2 extends iX{constructor(e=1,t=32,n=16,i=0,r=2*Math.PI,a=0,s=Math.PI){super(),this.type="SphereGeometry",this.parameters={radiu
vendor: 4,342 bytes, line 48
48s:e,widthSegments:t,heightSegments:n,phiStart:i,phiLength:r,thetaStart:a,thetaLength:s},t=Math.max(3,Math.floor(t)),n=Math.max(2,Math.floor(n));let o=Math.min(a+s,Math.PI),l=0,u=[],c=new t1,d=new t1,h=[],f=[],p=[],m=[];for(let h=0;h<=n;h++){let g=[],v=h/n,y=0;0===h&&0===a?y=.5/t:h===n&&o===Math.PI&&(y=-.5/t);for(let n=0;n<=t;n++){let o=n/t;c.x=-e*Math.cos(i+o*r)*Math.sin(a+v*s),c.y=e*Math.cos(a+v*s),c.z=e*Math.sin(i+o*r)*Math.sin(a+v*s),f.push(c.x,c.y,c.z),d.copy(c).normalize(),p.push(d.x,d.y,d.z),m.push(o+y,1-v),g.push(l++)}u.push(g)}for(let e=0;e<n;e++)for(let i=0;i<t;i++){let t=u[e][i+1],r=u[e][i],s=u[e+1][i],l=u[e+1][i+1];(0!==e||a>0)&&h.push(t,r,l),(e!==n-1||o<Math.PI)&&h.push(r,s,l)}this.setIndex(h),this.setAttribute("position",new iG(f,3)),this.setAttribute("normal",new iG(p,3)),this.setAttribute("uv",new iG(m,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new a2(e.radius,e.widthSegments,e.heightSegments,e.phiStart,e.phiLength,e.thetaStart,e.thetaLength)}}class a3 extends rB{constructor(e=1,t=0){super([1,1,1,-1,-1,1,-1,1,-1,1,-1,-1],[2,1,0,0,3,2,1,3,0,2,3,1],e,t),this.type="TetrahedronGeometry",this.parameters={radius:e,detail:t}}static fromJSON(e){return new a3(e.radius,e.detail)}}class a5 extends iX{constructor(e=1,t=.4,n=12,i=48,r=2*Math.PI){super(),this.type="TorusGeometry",this.parameters={radius:e,tube:t,radialSegments:n,tubularSegments:i,arc:r},n=Math.floor(n),i=Math.floor(i);let a=[],s=[],o=[],l=[],u=new t1,c=new t1,d=new t1;for(let a=0;a<=n;a++)for(let h=0;h<=i;h++){let f=h/i*r,p=a/n*Math.PI*2;c.x=(e+t*Math.cos(p))*Math.cos(f),c.y=(e+t*Math.cos(p))*Math.sin(f),c.z=t*Math.sin(p),s.push(c.x,c.y,c.z),u.x=e*Math.cos(f),u.y=e*Math.sin(f),d.subVectors(c,u).normalize(),o.push(d.x,d.y,d.z),l.push(h/i),l.push(a/n)}for(let e=1;e<=n;e++)for(let t=1;t<=i;t++){let n=(i+1)*e+t-1,r=(i+1)*(e-1)+t-1,s=(i+1)*(e-1)+t,o=(i+1)*e+t;a.push(n,r,o),a.push(r,s,o)}this.setIndex(a),this.setAttribute("position",new iG(s,3)),this.setAttribute("normal",new iG(o,3)),this.setAttribute("uv",new iG(l,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new a5(e.radius,e.tube,e.radialSegments,e.tubularSegments,e.arc)}}class a4 extends iX{constructor(e=1,t=.4,n=64,i=8,r=2,a=3){super(),this.type="TorusKnotGeometry",this.parameters={radius:e,tube:t,tubularSegments:n,radialSegments:i,p:r,q:a},n=Math.floor(n),i=Math.floor(i);let s=[],o=[],l=[],u=[],c=new t1,d=new t1,h=new t1,f=new t1,p=new t1,m=new t1,g=new t1;for(let s=0;s<=n;++s){let y=s/n*r*Math.PI*2;v(y,r,a,e,h),v(y+.01,r,a,e,f),m.subVectors(f,h),g.addVectors(f,h),p.crossVectors(m,g),g.crossVectors(p,m),p.normalize(),g.normalize();for(let e=0;e<=i;++e){let r=e/i*Math.PI*2,a=-t*Math.cos(r),f=t*Math.sin(r);c.x=h.x+(a*g.x+f*p.x),c.y=h.y+(a*g.y+f*p.y),c.z=h.z+(a*g.z+f*p.z),o.push(c.x,c.y,c.z),d.subVectors(c,h).normalize(),l.push(d.x,d.y,d.z),u.push(s/n),u.push(e/i)}}for(let e=1;e<=n;e++)for(let t=1;t<=i;t++){let n=(i+1)*(e-1)+(t-1),r=(i+1)*e+(t-1),a=(i+1)*e+t,o=(i+1)*(e-1)+t;s.push(n,r,o),s.push(r,a,o)}function v(e,t,n,i,r){let a=Math.cos(e),s=Math.sin(e),o=n/t*e,l=Math.cos(o);r.x=i*(2+l)*.5*a,r.y=i*(2+l)*s*.5,r.z=i*Math.sin(o)*.5}this.setIndex(s),this.setAttribute("position",new iG(o,3)),this.setAttribute("normal",new iG(l,3)),this.setAttribute("uv",new iG(u,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new a4(e.radius,e.tube,e.tubularSegments,e.radialSegments,e.p,e.q)}}class a6 extends iX{constructor(e=new ai(new t1(-1,-1,0),new t1(-1,1,0),new t1(1,1,0)),t=64,n=1,i=8,r=!1){super(),this.type="TubeGeometry",this.parameters={path:e,tubularSegments:t,radius:n,radialSegments:i,closed:r};let a=e.computeFrenetFrames(t,r);this.tangents=a.tangents,this.normals=a.normals,this.binormals=a.binormals;let s=new t1,o=new t1,l=new tJ,u=new t1,c=[],d=[],h=[],f=[];function p(r){u=e.getPointAt(r/t,u);let l=a.normals[r],h=a.binormals[r];for(let e=0;e<=i;e++){let t=e/i*Math.PI*2,r=Math.sin(t),a=-Math.cos(t);o.x=a*l.x+r*h.x,o.y=a*l.y+r*h.y,o.z=a*l.z+r*h.z,o.normalize(),d.push(o.x,o.y,o.z),s.x=u.x+n*o.x,s.y=u.y+n*o.y,s.z=u.z+n*o.z,c.push(s.x,s.y,s.z)}}function m(){for(let e=1;e<=t;e++)for(let t=1;t<=i;t++){let n=(i+1)*(e-1)+(t-1),r=(i+1)*e+(t-1),a=(i+1)*e+t,s=(i+1)*(e-1)+t;
48f.push(n,r,s),f.push(r,a,s)}}function g(){for(let e=0;e<=t;e++)for(let n=0;n<=i;n++)l.x=e/t,l.y=n/i,h.push(l.x,l.y)}(function(){for(let e=0;e<t;e++)p(e);p(!1===r?t:0),g(),m()})(),this.setIndex(f),this.setAttribute("position",new iG(c,3)),this.setAttribute("normal",new iG(d,3)),this.setAttribute("uv",new iG(h,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}toJSON(){let e=super.toJSON();return e.path=this.parameters.path.toJSON(),e}static fromJSON(e){return new a6(new aa[e.path.type]().fromJSON(e.path),e.tubularSegments,e.radius,e.radialSegments,e.closed)}}class a8 extends iN{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=tb,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}}class a7 extends iN{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type="MeshDistanceMaterial",this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}}function a9(e,t){return e&&e.constructor!==t?"number"==typeof t.BYTES_PER_ELEMENT?new t(e):Array.prototype.slice.call(e):e}function se(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}class st{constructor(e,t,n,i){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=void 0!==i?i:new t.constructor(n),this.sampleValues=t,this.valueSize=n,this.settings=null,this.DefaultSettings_={}}evaluate(e){let t=this.parameterPositions,n=this._cachedIndex,i=t[n],r=t[n-1];e:{t:{let a;n:{i:if(!(e<i)){for(let a=n+2;;){if(void 0===i){if(e<r)break i;return n=t.length,this._cachedIndex=n,this.copySampleValue_(n-1)}if(n===a)break;if(r=i,e<(i=t[++n]))break t}a=t.length;break n}if(!(e>=r)){let s=t[1];e<s&&(n=2,r=s);for(let a=n-2;;){if(void 0===r)return this._cachedIndex=0,this.copySampleValue_(0);if(n===a)break;if(i=r,e>=(r=t[--n-1]))break t}a=n,n=0;break n}break e}for(;n<a;){let i=n+a>>>1;e<t[i]?a=i:n=i+1}if(i=t[n],void 0===(r=t[n-1]))return this._cachedIndex=0,this.copySampleValue_(0);if(void 0===i)return n=t.length,this._cachedIndex=n,this.copySampleValue_(n-1)}this._cachedIndex=n,this.intervalChanged_(n,r,i)}return this.interpolate_(n,r,e,i)}getSettings_(){return this.settings||this.DefaultSettings_}copySampleValue_(e){let t=this.resultBuffer,n=this.sampleValues,i=this.valueSize,r=e*i;for(let e=0;e!==i;++e)t[e]=n[r+e];return t}interpolate_(){throw Error("call to abstract method")}intervalChanged_(){}}class sn extends st{constructor(e,t,n,i){super(e,t,n,i),this._weightPrev=-0,this._offsetPrev=-0,this._weightNext=-0,this._offsetNext=-0,this.DefaultSettings_={endingStart:tv,endingEnd:tv}}intervalChanged_(e,t,n){let i=this.parameterPositions,r=e-2,a=e+1,s=i[r],o=i[a];if(void 0===s)switch(this.getSettings_().endingStart){case ty:r=e,s=2*t-n;break;case t_:r=i.length-2,s=t+i[r]-i[r+1];break;default:r=e,s=n}if(void 0===o)switch(this.getSettings_().endingEnd){case ty:a=e,o=2*n-t;break;case t_:a=1,o=n+i[1]-i[0];break;default:a=e-1,o=t}let l=(n-t)*.5,u=this.valueSize;this._weightPrev=l/(t-s),this._weightNext=l/(o-n),this._offsetPrev=r*u,this._offsetNext=a*u}interpolate_(e,t,n,i){let r=this.resultBuffer,a=this.sampleValues,s=this.valueSize,o=e*s,l=o-s,u=this._offsetPrev,c=this._offsetNext,d=this._weightPrev,h=this._weightNext,f=(n-t)/(i-t),p=f*f,m=p*f,g=-d*m+2*d*p-d*f,v=(1+d)*m+(-1.5-2*d)*p+(-.5+d)*f+1,y=(-1-h)*m+(1.5+h)*p+.5*f,_=h*m-h*p;for(let e=0;e!==s;++e)r[e]=g*a[u+e]+v*a[l+e]+y*a[o+e]+_*a[c+e];return r}}class si extends st{constructor(e,t,n,i){super(e,t,n,i)}interpolate_(e,t,n,i){let r=this.resultBuffer,a=this.sampleValues,s=this.valueSize,o=e*s,l=o-s,u=(n-t)/(i-t),
48c=1-u;for(let e=0;e!==s;++e)r[e]=a[l+e]*c+a[o+e]*u;return r}}class sr extends st{constructor(e,t,n,i){super(e,t,n,i)}interpolate_(e){return this.copySampleValue_(e-1)}}class sa{constructor(e,t,n,i){if(void 0===e)throw Error("THREE.KeyframeTrack: track name is undefined");if(void 0===t||0===t.length)throw Error("THREE.KeyframeTrack: no keyframes in track named "+e);this.name=e,this.times=a9(t,this.TimeBufferType),this.values=a9(n,this.ValueBufferType),this.setInterpolation(i||this.DefaultInterpolation)}static toJSON(e){let t;let n=e.constructor;if(n.toJSON!==this.toJSON)t=n.toJSON(e);else{t={name:e.name,times:a9(e.times,Array),values:a9(e.values,Array)};let n=e.getInterpolation();n!==e.DefaultInterpolation&&(t.interpolation=n)}return t.type=e.ValueTypeName,t}InterpolantFactoryMethodDiscrete(e){return new sr(this.times,this.values,this.getValueSize(),e)}InterpolantFactoryMethodLinear(e){return new si(this.times,this.values,this.getValueSize(),e)}InterpolantFactoryMethodSmooth(e){return new sn(this.times,this.values,this.getValueSize(),e)}setInterpolation(e){let t;switch(e){case tp:t=this.InterpolantFactoryMethodDiscrete;break;case tm:t=this.InterpolantFactoryMethodLinear;break;case tg:t=this.InterpolantFactoryMethodSmooth}if(void 0===t){let t="unsupported interpolation for "+this.ValueTypeName+" keyframe track named "+this.name;if(void 0===this.createInterpolant){if(e!==this.DefaultInterpolation)this.setInterpolation(this.DefaultInterpolation);else throw Error(t)}return console.warn("THREE.KeyframeTrack:",t),this}return this.createInterpolant=t,this}getInterpolation(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return tp;case this.InterpolantFactoryMethodLinear:return tm;case this.InterpolantFactoryMethodSmooth:return tg}}getValueSize(){return this.values.length/this.times.length}shift(e){if(0!==e){let t=this.times;for(let n=0,i=t.length;n!==i;++n)t[n]+=e}return this}scale(e){if(1!==e){let t=this.times;for(let n=0,i=t.length;n!==i;++n)t[n]*=e}return this}trim(e,t){let n=this.times,i=n.length,r=0,a=i-1;for(;r!==i&&n[r]<e;)++r;for(;-1!==a&&n[a]>t;)--a;if(++a,0!==r||a!==i){r>=a&&(r=(a=Math.max(a,1))-1);let e=this.getValueSize();this.times=n.slice(r,a),this.values=this.values.slice(r*e,a*e)}return this}validate(){let e=!0,t=this.getValueSize();t-Math.floor(t)!=0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);let n=this.times,i=this.values,r=n.length;0===r&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);let a=null;for(let t=0;t!==r;t++){let i=n[t];if("number"==typeof i&&isNaN(i)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,t,i),e=!1;break}if(null!==a&&a>i){console.error("THREE.KeyframeTrack: Out of order keys.",this,t,i,a),e=!1;break}a=i}if(void 0!==i&&se(i))for(let t=0,n=i.length;t!==n;++t){let n=i[t];if(isNaN(n)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,t,n),e=!1;break}}return e}optimize(){let e=this.times.slice(),t=this.values.slice(),n=this.getValueSize(),i=this.getInterpolation()===tg,r=e.length-1,a=1;for(let s=1;s<r;++s){let r=!1,o=e[s];if(o!==e[s+1]&&(1!==s||o!==e[0])){if(i)r=!0;else{let e=s*n,i=e-n,a=e+n;for(let s=0;s!==n;++s){let n=t[e+s];if(n!==t[i+s]||n!==t[a+s]){r=!0;break}}}}if(r){if(s!==a){e[a]=e[s];let i=s*n,r=a*n;for(let e=0;e!==n;++e)t[r+e]=t[i+e]}++a}}if(r>0){e[a]=e[r];for(let e=r*n,i=a*n,s=0;s!==n;++s)t[i+s]=t[e+s];++a}return a!==e.length?(this.times=e.slice(0,a),this.values=t.slice(0,a*n)):(this.times=e,this.values=t),this}clone(){let e=this.times.slice(),t=this.values.slice(),n=new this.constructor(this.name,e,t);return n.createInterpolant=this.createInterpolant,n}}sa.prototype.ValueTypeName="",sa.prototype.TimeBufferType=Float32Array,sa.prototype.ValueBufferType=Float32Array,sa.prototype.DefaultInterpolation=tm;class ss extends sa{constructor(e,t,n){super(e,t,n)}}ss.prototype.ValueTypeName="bool",ss.prototype.ValueBufferType=Array,ss.prototype.DefaultInterpolation=tp,ss.prototype.InterpolantFactoryMethodLinear=void 0,ss.prototype.InterpolantFactoryMethodSmooth=void 0;class so extends sa{constructor(e,t,n,i){super(e,t,n,i)}}so.prototype.ValueTypeName="color";class sl extends sa{constructor(e,t,n,i){super(e,t,n,i)}}sl.prototype.ValueTypeName="number";class su extends st{constructor(e,t,n,i){super(e,t,n,i)}interpolate_(e,t,n,i){let r=this.resultBuffer,a=this.sampleValues,s=this.valueSize,o=(n-t)/(i-t),l=e*s;for(let e=l+s;
vendor: 4,313 bytes, line 48
48l!==e;l+=4)t0.slerpFlat(r,0,a,l-s,a,l,o);return r}}class sc extends sa{constructor(e,t,n,i){super(e,t,n,i)}InterpolantFactoryMethodLinear(e){return new su(this.times,this.values,this.getValueSize(),e)}}sc.prototype.ValueTypeName="quaternion",sc.prototype.InterpolantFactoryMethodSmooth=void 0;class sd extends sa{constructor(e,t,n){super(e,t,n)}}sd.prototype.ValueTypeName="string",sd.prototype.ValueBufferType=Array,sd.prototype.DefaultInterpolation=tp,sd.prototype.InterpolantFactoryMethodLinear=void 0,sd.prototype.InterpolantFactoryMethodSmooth=void 0;class sh extends sa{constructor(e,t,n,i){super(e,t,n,i)}}sh.prototype.ValueTypeName="vector";let sf={enabled:!1,files:{},add:function(e,t){!1!==this.enabled&&(this.files[e]=t)},get:function(e){if(!1!==this.enabled)return this.files[e]}};class sp{constructor(e,t,n){let i;let r=this,a=!1,s=0,o=0,l=[];this.onStart=void 0,this.onLoad=e,this.onProgress=t,this.onError=n,this.itemStart=function(e){o++,!1===a&&void 0!==r.onStart&&r.onStart(e,s,o),a=!0},this.itemEnd=function(e){s++,void 0!==r.onProgress&&r.onProgress(e,s,o),s===o&&(a=!1,void 0!==r.onLoad&&r.onLoad())},this.itemError=function(e){void 0!==r.onError&&r.onError(e)},this.resolveURL=function(e){return i?i(e):e},this.setURLModifier=function(e){return i=e,this},this.addHandler=function(e,t){return l.push(e,t),this},this.removeHandler=function(e){let t=l.indexOf(e);return -1!==t&&l.splice(t,2),this},this.getHandler=function(e){for(let t=0,n=l.length;t<n;t+=2){let n=l[t],i=l[t+1];if(n.global&&(n.lastIndex=0),n.test(e))return i}return null}}}let sm=new sp;class sg{constructor(e){this.manager=void 0!==e?e:sm,this.crossOrigin="anonymous",this.withCredentials=!1,this.path="",this.resourcePath="",this.requestHeader={}}load(){}loadAsync(e,t){let n=this;return new Promise(function(i,r){n.load(e,i,t,r)})}parse(){}setCrossOrigin(e){return this.crossOrigin=e,this}setWithCredentials(e){return this.withCredentials=e,this}setPath(e){return this.path=e,this}setResourcePath(e){return this.resourcePath=e,this}setRequestHeader(e){return this.requestHeader=e,this}}sg.DEFAULT_MATERIAL_NAME="__DEFAULT";class sv extends sg{constructor(e){super(e)}load(e,t,n,i){void 0!==this.path&&(e=this.path+e),e=this.manager.resolveURL(e);let r=this,a=sf.get(e);if(void 0!==a)return r.manager.itemStart(e),setTimeout(function(){t&&t(a),r.manager.itemEnd(e)},0),a;let s=t8("img");function o(){u(),sf.add(e,this),t&&t(this),r.manager.itemEnd(e)}function l(t){u(),i&&i(t),r.manager.itemError(e),r.manager.itemEnd(e)}function u(){s.removeEventListener("load",o,!1),s.removeEventListener("error",l,!1)}return s.addEventListener("load",o,!1),s.addEventListener("error",l,!1),"data:"!==e.slice(0,5)&&void 0!==this.crossOrigin&&(s.crossOrigin=this.crossOrigin),r.manager.itemStart(e),s.src=e,s}}class sy extends sg{constructor(e){super(e)}load(e,t,n,i){let r=new nm,a=new sv(this.manager);return a.setCrossOrigin(this.crossOrigin),a.setPath(this.path),a.load(e,function(e){r.image=e,r.needsUpdate=!0,void 0!==t&&t(r)},n,i),r}}class s_ extends rd{constructor(e=-1,t=1,n=1,i=-1,r=.1,a=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=t,this.top=n,this.bottom=i,this.near=r,this.far=a,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=null===e.view?null:Object.assign({},e.view),this}setViewOffset(e,t,n,i,r,a){null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=i,this.view.width=r,this.view.height=a,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){let e=(this.right-this.left)/(2*this.zoom),t=(this.top-this.bottom)/(2*this.zoom),n=(this.right+this.left)/2,i=(this.top+this.bottom)/2,r=n-e,a=n+e,s=i+t,o=i-t;if(null!==this.view&&this.view.enabled){let e=(this.right-this.left)/this.view.fullWidth/this.zoom,t=(this.top-this.bottom)/this.view.fullHeight/this.zoom;r+=e*this.view.offsetX,a=r+e*this.view.width,s-=t*this.view.offsetY,o=s-t*this.view.height}
vendor: 4,278 bytes, line 48
48this.projectionMatrix.makeOrthographic(r,a,s,o,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){let t=super.toJSON(e);return t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,null!==this.view&&(t.object.view=Object.assign({},this.view)),t}}new WeakMap;class sb extends rm{constructor(e=[]){super(),this.isArrayCamera=!0,this.isMultiViewCamera=!1,this.cameras=e}}let sx="\\[\\]\\.:\\/",sC=RegExp("["+sx+"]","g"),sE="[^"+sx+"]",sw="[^"+sx.replace("\\.","")+"]",sT=/((?:WC+[\/:])*)/.source.replace("WC",sE),sS=RegExp("^"+sT+/(WCOD+)?/.source.replace("WCOD",sw)+/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",sE)+/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",sE)+"$"),sL=["material","materials","bones","map"];class sP{constructor(e,t,n){let i=n||sM.parseTrackName(t);this._targetGroup=e,this._bindings=e.subscribe_(t,i)}getValue(e,t){this.bind();let n=this._targetGroup.nCachedObjects_,i=this._bindings[n];void 0!==i&&i.getValue(e,t)}setValue(e,t){let n=this._bindings;for(let i=this._targetGroup.nCachedObjects_,r=n.length;i!==r;++i)n[i].setValue(e,t)}bind(){let e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].bind()}unbind(){let e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].unbind()}}class sM{constructor(e,t,n){this.path=t,this.parsedPath=n||sM.parseTrackName(t),this.node=sM.findNode(e,this.parsedPath.nodeName),this.rootNode=e,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(e,t,n){return e&&e.isAnimationObjectGroup?new sM.Composite(e,t,n):new sM(e,t,n)}static sanitizeNodeName(e){return e.replace(/\s/g,"_").replace(sC,"")}static parseTrackName(e){let t=sS.exec(e);if(null===t)throw Error("PropertyBinding: Cannot parse trackName: "+e);let n={nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],propertyIndex:t[6]},i=n.nodeName&&n.nodeName.lastIndexOf(".");if(void 0!==i&&-1!==i){let e=n.nodeName.substring(i+1);-1!==sL.indexOf(e)&&(n.nodeName=n.nodeName.substring(0,i),n.objectName=e)}if(null===n.propertyName||0===n.propertyName.length)throw Error("PropertyBinding: can not parse propertyName from trackName: "+e);return n}static findNode(e,t){if(void 0===t||""===t||"."===t||-1===t||t===e.name||t===e.uuid)return e;if(e.skeleton){let n=e.skeleton.getBoneByName(t);if(void 0!==n)return n}if(e.children){let n=function(e){for(let i=0;i<e.length;i++){let r=e[i];if(r.name===t||r.uuid===t)return r;let a=n(r.children);if(a)return a}return null},i=n(e.children);if(i)return i}return null}_getValue_unavailable(){}_setValue_unavailable(){}_getValue_direct(e,t){e[t]=this.targetObject[this.propertyName]}_getValue_array(e,t){let n=this.resolvedProperty;for(let i=0,r=n.length;i!==r;++i)e[t++]=n[i]}_getValue_arrayElement(e,t){e[t]=this.resolvedProperty[this.propertyIndex]}_getValue_toArray(e,t){this.resolvedProperty.toArray(e,t)}_setValue_direct(e,t){this.targetObject[this.propertyName]=e[t]}_setValue_direct_setNeedsUpdate(e,t){this.targetObject[this.propertyName]=e[t],this.targetObject.needsUpdate=!0}_setValue_direct_setMatrixWorldNeedsUpdate(e,t){this.targetObject[this.propertyName]=e[t],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_array(e,t){let n=this.resolvedProperty;for(let i=0,r=n.length;i!==r;++i)n[i]=e[t++]}_setValue_array_setNeedsUpdate(e,t){let n=this.resolvedProperty;for(let i=0,r=n.length;i!==r;++i)n[i]=e[t++];this.targetObject.needsUpdate=!0}_setValue_array_setMatrixWorldNeedsUpdate(e,t){let n=this.resolvedProperty;for(let i=0,r=n.length;i!==r;++i)n[i]=e[t++];this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_arrayElement(e,t){this.resolvedProperty[this.propertyIndex]=e[t]}_setValue_arrayElement_setNeedsUpdate(e,t){this.resolvedProperty[this.propertyIndex]=e[t],this.targetObject.needsUpdate=!0}_setValue_arrayElement_setMatrixWorldNeedsUpdate(e,t){this.resolvedProperty[this.propertyIndex]=e[t],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_fromArray(e,t){this.resolvedProperty.fromArray(e,t)}_setValue_fromArray_setNeedsUpdate(e,t){this.resolvedProperty.fromArray(e,t),this.targetObject.needsUpdate=!0}
48_setValue_fromArray_setMatrixWorldNeedsUpdate(e,t){this.resolvedProperty.fromArray(e,t),this.targetObject.matrixWorldNeedsUpdate=!0}_getValue_unbound(e,t){this.bind(),this.getValue(e,t)}_setValue_unbound(e,t){this.bind(),this.setValue(e,t)}bind(){let e=this.node,t=this.parsedPath,n=t.objectName,i=t.propertyName,r=t.propertyIndex;if(e||(e=sM.findNode(this.rootNode,t.nodeName),this.node=e),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,!e){console.warn("THREE.PropertyBinding: No target node found for track: "+this.path+".");return}if(n){let i=t.objectIndex;switch(n){case"materials":if(!e.material){console.error("THREE.PropertyBinding: Can not bind to material as node does not have a material.",this);return}if(!e.material.materials){console.error("THREE.PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.",this);return}e=e.material.materials;break;case"bones":if(!e.skeleton){console.error("THREE.PropertyBinding: Can not bind to bones as node does not have a skeleton.",this);return}e=e.skeleton.bones;for(let t=0;t<e.length;t++)if(e[t].name===i){i=t;break}break;case"map":if("map"in e){e=e.map;break}if(!e.material){console.error("THREE.PropertyBinding: Can not bind to material as node does not have a material.",this);return}if(!e.material.map){console.error("THREE.PropertyBinding: Can not bind to material.map as node.material does not have a map.",this);return}e=e.material.map;break;default:if(void 0===e[n]){console.error("THREE.PropertyBinding: Can not bind to objectName of node undefined.",this);return}e=e[n]}if(void 0!==i){if(void 0===e[i]){console.error("THREE.PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.",this,e);return}e=e[i]}}let a=e[i];if(void 0===a){console.error("THREE.PropertyBinding: Trying to update property for track: "+t.nodeName+"."+i+" but it wasn't found.",e);return}let s=this.Versioning.None;this.targetObject=e,!0===e.isMaterial?s=this.Versioning.NeedsUpdate:!0===e.isObject3D&&(s=this.Versioning.MatrixWorldNeedsUpdate);let o=this.BindingType.Direct;if(void 0!==r){if("morphTargetInfluences"===i){if(!e.geometry){console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.",this);return}if(!e.geometry.morphAttributes){console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphAttributes.",this);return}void 0!==e.morphTargetDictionary[r]&&(r=e.morphTargetDictionary[r])}o=this.BindingType.ArrayElement,this.resolvedProperty=a,this.propertyIndex=r}else void 0!==a.fromArray&&void 0!==a.toArray?(o=this.BindingType.HasFromToArray,this.resolvedProperty=a):Array.isArray(a)?(o=this.BindingType.EntireArray,this.resolvedProperty=a):this.propertyName=i;this.getValue=this.GetterByBindingType[o],this.setValue=this.SetterByBindingTypeAndVersioning[o][s]}unbind(){this.node=null,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}}function sA(e,t,n,i){let r=sI(i);switch(n){case eF:return e*t;case eB:case eH:return e*t/r.components*r.byteLength;case eG:case ez:return e*t*2/r.components*r.byteLength;case eO:return e*t*3/r.components*r.byteLength;case ej:case eq:return e*t*4/r.components*r.byteLength;case eW:case e$:return Math.floor((e+3)/4)*Math.floor((t+3)/4)*8;case eZ:case eY:return Math.floor((e+3)/4)*Math.floor((t+3)/4)*16;case eX:case eJ:return Math.max(e,16)*Math.max(t,8)/4;case eK:case eQ:return Math.max(e,8)*Math.max(t,8)/2;case e0:case e1:return Math.floor((e+3)/4)*Math.floor((t+3)/4)*8;case e2:case e3:return Math.floor((e+3)/4)*Math.floor((t+3)/4)*16;case e5:return Math.floor((e+4)/5)*Math.floor((t+3)/4)*16;case e4:return Math.floor((e+4)/5)*Math.floor((t+4)/5)*16;case e6:return Math.floor((e+5)/6)*Math.floor((t+4)/5)*16;case e8:return Math.floor((e+5)/6)*Math.floor((t+5)/6)*16;case e7:return Math.floor((e+7)/8)*Math.floor((t+4)/5)*16;case e9:return Math.floor((e+7)/8)*Math.floor((t+5)/6)*16;case te:return Math.floor((e+7)/8)*Math.floor((t+7)/8)*16;case tt:return Math.floor((e+9)/10)*Math.floor((t+4)/5)*16;case tn:return Math.floor((e+9)/10)*Math.floor((t+5)/6)*16;case ti:return Math.floor((e+9)/10)*Math.floor((t+7)/8)*16;case tr:return Math.floor((e+9)/10)*Math.floor((t+9)/10)*16;case ta:return Math.floor((e+11)/12)*Math.floor((t+9)/10)*16;case ts:return Math.floor((e+11)/12)*Math.floor((t+11)/12)*16;case to:case tl:case tu:return Math.ceil(e/4)*Math.ceil(t/4)*16;case tc:case td:return Math.ceil(e/4)*Math.ceil(t/4)*8;case th:case tf:return Math.ceil(e/4)*Math.ceil(t/4)*16}throw Error(`Unable to determine texture byte length for ${n} format.`)}function sI(e){switch(e){case ew:case eT:return{byteLength:1,components:1};case eL:case eS:case eI:return{byteLength:2,components:1};case eR:case ek:return{byteLength:2,components:4};case eM:case eP:case eA:return{byteLength:4,components:1};case eN:return{byteLength:4,components:3}}throw Error(`Unknown texture type ${e}.`)}function sR(){let e=null,t=!1,n=null,i=null;function r(t,a){n(t,a),i=e.requestAnimationFrame(r)}return{start:function(){!0!==t&&null!==n&&(i=e.requestAnimationFrame(r),t=!0)},stop:function(){e.cancelAnimationFrame(i),t=!1},setAnimationLoop:function(e){n=e},setContext:function(t){e=t}}}function sk(e){let t=new WeakMap;function n(t,n){let i;let r=t.array,a=t.usage,s=r.byteLength,o=e.createBuffer();if(e.bindBuffer(n,o),e.bufferData(n,r,a),t.onUploadCallback(),r instanceof Float32Array)i=e.FLOAT;else if(r instanceof Uint16Array)i=t.isFloat16BufferAttribute?e.HALF_FLOAT:e.UNSIGNED_SHORT;else if(r instanceof Int16Array)i=e.SHORT;else if(r instanceof Uint32Array)i=e.UNSIGNED_INT;else if(r instanceof Int32Array)i=e.INT;else if(r instanceof Int8Array)i=e.BYTE;else if(r instanceof Uint8Array)i=e.UNSIGNED_BYTE;else if(r instanceof Uint8ClampedArray)i=e.UNSIGNED_BYTE;else throw Error("THREE.WebGLAttributes: Unsupported buffer data format: "+r);return{buffer:o,type:i,bytesPerElement:r.BYTES_PER_ELEMENT,version:t.version,size:s}}function i(t,n,i){let r=n.array,a=n.updateRanges;if(e.bindBuffer(i,t),0===a.length)e.bufferSubData(i,0,r);else{a.sort((e,t)=>
48e.start-t.start);let t=0;for(let e=1;e<a.length;e++){let n=a[t],i=a[e];i.start<=n.start+n.count+1?n.count=Math.max(n.count,i.start+i.count-n.start):a[++t]=i}a.length=t+1;for(let t=0,n=a.length;t<n;t++){let n=a[t];e.bufferSubData(i,n.start*r.BYTES_PER_ELEMENT,r,n.start,n.count)}n.clearUpdateRanges()}n.onUploadCallback()}return{get:function(e){return e.isInterleavedBufferAttribute&&(e=e.data),t.get(e)},remove:function(n){n.isInterleavedBufferAttribute&&(n=n.data);let i=t.get(n);i&&(e.deleteBuffer(i.buffer),t.delete(n))},update:function(e,r){if(e.isInterleavedBufferAttribute&&(e=e.data),e.isGLBufferAttribute){let n=t.get(e);(!n||n.version<e.version)&&t.set(e,{buffer:e.buffer,type:e.type,bytesPerElement:e.elementSize,version:e.version});return}let a=t.get(e);if(void 0===a)t.set(e,n(e,r));else if(a.version<e.version){if(a.size!==e.array.byteLength)throw Error("THREE.WebGLAttributes: The size of the buffer attribute's array buffer does not match the original size. Resizing buffer attributes is not supported.");i(a.buffer,e,r),a.version=e.version}}}}sM.Composite=sP,sM.prototype.BindingType={Direct:0,EntireArray:1,ArrayElement:2,HasFromToArray:3},sM.prototype.Versioning={None:0,NeedsUpdate:1,MatrixWorldNeedsUpdate:2},sM.prototype.GetterByBindingType=[sM.prototype._getValue_direct,sM.prototype._getValue_array,sM.prototype._getValue_arrayElement,sM.prototype._getValue_toArray],sM.prototype.SetterByBindingTypeAndVersioning=[[sM.prototype._setValue_direct,sM.prototype._setValue_direct_setNeedsUpdate,sM.prototype._setValue_direct_setMatrixWorldNeedsUpdate],[sM.prototype._setValue_array,sM.prototype._setValue_array_setNeedsUpdate,sM.prototype._setValue_array_setMatrixWorldNeedsUpdate],[sM.prototype._setValue_arrayElement,sM.prototype._setValue_arrayElement_setNeedsUpdate,sM.prototype._setValue_arrayElement_setMatrixWorldNeedsUpdate],[sM.prototype._setValue_fromArray,sM.prototype._setValue_fromArray_setNeedsUpdate,sM.prototype._setValue_fromArray_setMatrixWorldNeedsUpdate]],new Float32Array(1),"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:l}})),"undefined"!=typeof window&&(window.__THREE__?console.warn("WARNING: Multiple instances of Three.js being imported."):window.__THREE__=l);let sD={alphahash_fragment:"#ifdef USE_ALPHAHASH\n if ( diffuseColor.a < getAlphaHashThreshold( vPosition ) ) discard;\n#endif",alphahash_pars_fragment:"#ifdef USE_ALPHAHASH\n const float ALPHA_HASH_SCALE = 0.05;\n float hash2D( vec2 value ) {\n return fract( 1.0e4 * sin( 17.0 * value.x + 0.1 * value.y ) * ( 0.1 + abs( sin( 13.0 * value.y + value.x ) ) ) );\n }\n float hash3D( vec3 value ) {\n return hash2D( vec2( hash2D( value.xy ), value.z ) );\n }\n float getAlphaHashThreshold( vec3 position ) {\n float maxDeriv = max(\n length( dFdx( position.xyz ) ),\n length( dFdy( position.xyz ) )\n );\n float pixScale = 1.0 / ( ALPHA_HASH_SCALE * maxDeriv );\n vec2 pixScales = vec2(\n exp2( floor( log2( pixScale ) ) ),\n exp2( ceil( log2( pixScale ) ) )\n );\n vec2 alpha = vec2(\n hash3D( floor( pixScales.x * position.xyz ) ),\n hash3D( floor( pixScales.y * position.xyz ) )\n );\n float lerpFactor = fract( log2( pixScale ) );\n float x = ( 1.0 - lerpFactor ) * alpha.x + lerpFactor * alpha.y;\n float a = min( lerpFactor, 1.0 - lerpFactor );\n vec3 cases = vec3(\n x * x / ( 2.0 * a * ( 1.0 - a ) ),\n ( x - 0.5 * a ) / ( 1.0 - a ),\n 1.0 - ( ( 1.0 - x ) * ( 1.0 - x ) / ( 2.0 * a * ( 1.0 - a ) ) )\n );\n float threshold = ( x < ( 1.0 - a ) )\n ? ( ( x < a ) ? cases.x : cases.y )\n : cases.z;\n return clamp( threshold , 1.0e-6, 1.0 );\n }\n#endif",alphamap_fragment:"#ifdef USE_ALPHAMAP\n diffuseColor.a *= texture2D( alphaMap, vAlphaMapUv ).g;\n#endif",alphamap_pars_fragment:"#ifdef USE_ALPHAMAP\n uniform sampler2D alphaMap;\n#endif",alphatest_fragment:"#ifdef USE_ALPHATEST\n #ifdef ALPHA_TO_COVERAGE\n diffuseColor.a = smoothstep( alphaTest, alphaTest + fwidth( diffuseColor.a ), diffuseColor.a );\n if ( diffuseColor.a == 0.0 ) discard;\n #else\n if ( diffuseColor.a < alphaTest ) discard;\n #endif\n#endif",alphatest_pars_fragment:"#ifdef USE_ALPHATEST\n uniform float alphaTest;\n#endif",aomap_fragment:"#ifdef USE_AOMAP\n float ambientOcclusion = ( texture2D( aoMap, vAoMapUv ).r - 1.0 ) * aoMapIntensity + 1.0;\n reflectedLight.indirectDiffuse *= ambientOcclusion;\n #if defined( USE_CLEARCOAT ) \n clearcoatSpecularIndirect *= ambientOcclusion;\n #endif\n #if defined( USE_SHEEN ) \n sheenSpecularIndirect *= ambientOcclusion;\n #endif\n #if defined( USE_ENVMAP ) && defined( STANDARD )\n float dotNV = saturate( dot
48( geometryNormal, geometryViewDir ) );\n reflectedLight.indirectSpecular *= computeSpecularOcclusion( dotNV, ambientOcclusion, material.roughness );\n #endif\n#endif",aomap_pars_fragment:"#ifdef USE_AOMAP\n uniform sampler2D aoMap;\n uniform float aoMapIntensity;\n#endif",batching_pars_vertex:"#ifdef USE_BATCHING\n #if ! defined( GL_ANGLE_multi_draw )\n #define gl_DrawID _gl_DrawID\n uniform int _gl_DrawID;\n #endif\n uniform highp sampler2D batchingTexture;\n uniform highp usampler2D batchingIdTexture;\n mat4 getBatchingMatrix( const in float i ) {\n int size = textureSize( batchingTexture, 0 ).x;\n int j = int( i ) * 4;\n int x = j % size;\n int y = j / size;\n vec4 v1 = texelFetch( batchingTexture, ivec2( x, y ), 0 );\n vec4 v2 = texelFetch( batchingTexture, ivec2( x + 1, y ), 0 );\n vec4 v3 = texelFetch( batchingTexture, ivec2( x + 2, y ), 0 );\n vec4 v4 = texelFetch( batchingTexture, ivec2( x + 3, y ), 0 );\n return mat4( v1, v2, v3, v4 );\n }\n float getIndirectIndex( const in int i ) {\n int size = textureSize( batchingIdTexture, 0 ).x;\n int x = i % size;\n int y = i / size;\n return float( texelFetch( batchingIdTexture, ivec2( x, y ), 0 ).r );\n }\n#endif\n#ifdef USE_BATCHING_COLOR\n uniform sampler2D batchingColorTexture;\n vec3 getBatchingColor( const in float i ) {\n int size = textureSize( batchingColorTexture, 0 ).x;\n int j = int( i );\n int x = j % size;\n int y = j / size;\n return texelFetch( batchingColorTexture, ivec2( x, y ), 0 ).rgb;\n }\n#endif",batching_vertex:"#ifdef USE_BATCHING\n mat4 batchingMatrix = getBatchingMatrix( getIndirectIndex( gl_DrawID ) );\n#endif",begin_vertex:"vec3 transformed = vec3( position );\n#ifdef USE_ALPHAHASH\n vPosition = vec3( position );\n#endif",beginnormal_vertex:"vec3 objectNormal = vec3( normal );\n#ifdef USE_TANGENT\n vec3 objectTangent = vec3( tangent.xyz );\n#endif",bsdfs:"float G_BlinnPhong_Implicit( ) {\n return 0.25;\n}\nfloat D_BlinnPhong( const in float shininess, const in float dotNH ) {\n return RECIPROCAL_PI * ( shininess * 0.5 + 1.0 ) * pow( dotNH, shininess );\n}\nvec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float shininess ) {\n vec3 halfDir = normalize( lightDir + viewDir );\n float dotNH = saturate( dot( normal, halfDir ) );\n float dotVH = saturate( dot( viewDir, halfDir ) );\n vec3 F = F_Schlick( specularColor, 1.0, dotVH );\n float G = G_BlinnPhong_Implicit( );\n float D = D_BlinnPhong( shininess, dotNH );\n return F * ( G * D );\n} // validated",iridescence_fragment:"#ifdef USE_IRIDESCENCE\n const mat3 XYZ_TO_REC709 = mat3(\n 3.2404542, -0.9692660, 0.0556434,\n -1.5371385, 1.8760108, -0.2040259,\n -0.4985314, 0.0415560, 1.0572252\n );\n vec3 Fresnel0ToIor( vec3 fresnel0 ) {\n vec3 sqrtF0 = sqrt( fresnel0 );\n return ( vec3( 1.0 ) + sqrtF0 ) / ( vec3( 1.0 ) - sqrtF0 );\n }\n vec3 IorToFresnel0( vec3 transmittedIor, float incidentIor ) {\n return pow2( ( transmittedIor - vec3( incidentIor ) ) / ( transmittedIor + vec3( incidentIor ) ) );\n }\n float IorToFresnel0( float transmittedIor, float incidentIor ) {\n return pow2( ( transmittedIor - incidentIor ) / ( transmittedIor + incidentIor ));\n }\n vec3 evalSensitivity( float OPD, vec3 shift ) {\n float phase = 2.0 * PI * OPD * 1.0e-9;\n vec3 val = vec3( 5.4856e-13, 4.4201e-13, 5.2481e-13 );\n vec3 pos = vec3( 1.6810e+06, 1.7953e+06, 2.2084e+06 );\n vec3 var = vec3( 4.3278e+09, 9.3046e+09, 6.6121e+09 );\n vec3 xyz = val * sqrt( 2.0 * PI * var ) * cos( pos * phase + shift ) * exp( - pow2( phase ) * var );\n xyz.x += 9.7470e-14 * sqrt( 2.0 * PI * 4.5282e+09 ) * cos( 2.2399e+06 * phase + shift[ 0 ] ) * exp( - 4.5282e+09 * pow2( phase ) );\n xyz /= 1.0685e-7;\n vec3 rgb = XYZ_TO_REC709 * xyz;\n return rgb;\n }\n vec3 evalIridescence( float outsideIOR, float eta2, float cosTheta1, float thinFilmThickness, vec3 baseF0 ) {\n vec3 I;\n float iridescenceIOR = mix( outsideIOR, eta2, smoothstep( 0.0, 0.03, thinFilmThickness ) );\n float sinTheta2Sq = pow2( outsideIOR / iridescenceIOR ) * ( 1.0 - pow2( cosTheta1 ) );\n float cosTheta2Sq = 1.0 - sinTheta2Sq;\n if ( cosTheta2Sq < 0.0 ) {\n return vec3( 1.0 );\n }\n float cosTheta2 = sqrt( cosTheta2Sq );\n float R0 = IorToFresnel0( iridescenceIOR, outsideIOR );
48\n float R12 = F_Schlick( R0, 1.0, cosTheta1 );\n float T121 = 1.0 - R12;\n float phi12 = 0.0;\n if ( iridescenceIOR < outsideIOR ) phi12 = PI;\n float phi21 = PI - phi12;\n vec3 baseIOR = Fresnel0ToIor( clamp( baseF0, 0.0, 0.9999 ) ); vec3 R1 = IorToFresnel0( baseIOR, iridescenceIOR );\n vec3 R23 = F_Schlick( R1, 1.0, cosTheta2 );\n vec3 phi23 = vec3( 0.0 );\n if ( baseIOR[ 0 ] < iridescenceIOR ) phi23[ 0 ] = PI;\n if ( baseIOR[ 1 ] < iridescenceIOR ) phi23[ 1 ] = PI;\n if ( baseIOR[ 2 ] < iridescenceIOR ) phi23[ 2 ] = PI;\n float OPD = 2.0 * iridescenceIOR * thinFilmThickness * cosTheta2;\n vec3 phi = vec3( phi21 ) + phi23;\n vec3 R123 = clamp( R12 * R23, 1e-5, 0.9999 );\n vec3 r123 = sqrt( R123 );\n vec3 Rs = pow2( T121 ) * R23 / ( vec3( 1.0 ) - R123 );\n vec3 C0 = R12 + Rs;\n I = C0;\n vec3 Cm = Rs - T121;\n for ( int m = 1; m <= 2; ++ m ) {\n Cm *= r123;\n vec3 Sm = 2.0 * evalSensitivity( float( m ) * OPD, float( m ) * phi );\n I += Cm * Sm;\n }\n return max( I, vec3( 0.0 ) );\n }\n#endif",bumpmap_pars_fragment:"#ifdef USE_BUMPMAP\n uniform sampler2D bumpMap;\n uniform float bumpScale;\n vec2 dHdxy_fwd() {\n vec2 dSTdx = dFdx( vBumpMapUv );\n vec2 dSTdy = dFdy( vBumpMapUv );\n float Hll = bumpScale * texture2D( bumpMap, vBumpMapUv ).x;\n float dBx = bumpScale * texture2D( bumpMap, vBumpMapUv + dSTdx ).x - Hll;\n float dBy = bumpScale * texture2D( bumpMap, vBumpMapUv + dSTdy ).x - Hll;\n return vec2( dBx, dBy );\n }\n vec3 perturbNormalArb( vec3 surf_pos, vec3 surf_norm, vec2 dHdxy, float faceDirection ) {\n vec3 vSigmaX = normalize( dFdx( surf_pos.xyz ) );\n vec3 vSigmaY = normalize( dFdy( surf_pos.xyz ) );\n vec3 vN = surf_norm;\n vec3 R1 = cross( vSigmaY, vN );\n vec3 R2 = cross( vN, vSigmaX );\n float fDet = dot( vSigmaX, R1 ) * faceDirection;\n vec3 vGrad = sign( fDet ) * ( dHdxy.x * R1 + dHdxy.y * R2 );\n return normalize( abs( fDet ) * surf_norm - vGrad );\n }\n#endif",clipping_planes_fragment:"#if NUM_CLIPPING_PLANES > 0\n vec4 plane;\n #ifdef ALPHA_TO_COVERAGE\n float distanceToPlane, distanceGradient;\n float clipOpacity = 1.0;\n #pragma unroll_loop_start\n for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n plane = clippingPlanes[ i ];\n distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w;\n distanceGradient = fwidth( distanceToPlane ) / 2.0;\n clipOpacity *= smoothstep( - distanceGradient, distanceGradient, distanceToPlane );\n if ( clipOpacity == 0.0 ) discard;\n }\n #pragma unroll_loop_end\n #if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n float unionClipOpacity = 1.0;\n #pragma unroll_loop_start\n for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n plane = clippingPlanes[ i ];\n distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w;\n distanceGradient = fwidth( distanceToPlane ) / 2.0;\n unionClipOpacity *= 1.0 - smoothstep( - distanceGradient, distanceGradient, distanceToPlane );\n }\n #pragma unroll_loop_end\n clipOpacity *= 1.0 - unionClipOpacity;\n #endif\n diffuseColor.a *= clipOpacity;\n if ( diffuseColor.a == 0.0 ) discard;\n #else\n #pragma unroll_loop_start\n for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n plane = clippingPlanes[ i ];\n if ( dot( vClipPosition, plane.xyz ) > plane.w ) discard;\n }\n #pragma unroll_loop_end\n #if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n bool clipped = true;\n #pragma unroll_loop_start\n for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n plane = clippingPlanes[ i ];\n clipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped;\n }\n #pragma unroll_loop_end\n if ( clipped ) discard;\n #endif\n #endif\n#endif",clipping_planes_pars_fragment:"#if NUM_CLIPPING_PLANES > 0\n varying vec3 vClipPosition;\n uniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];\n#endif",clipping_planes_pars_vertex:"#if NUM_CLIPPING_PLANES > 0\n varying vec3 vClipPosition;\n#endif",clipping_planes_vertex:"#if NUM_CLIPPING_PLANES > 0\n vClipPosition = - mvPosition.xyz;\n#endif",color_fragment:"#if defined( USE_COLOR_ALPHA )\n diffuseColor *= vColor;\n#elif defined( USE_COLOR )\n diffuseColor.rgb *= vColor;\n#endif",color_pars_fragment:"#if defined( USE_COLOR_ALPHA )\n varying vec4 vColor;\n#elif defined( USE_COLOR )\n varying vec3 vColor;\n#endif",color_pars_vertex:"#if defined( USE_COLOR_ALPHA )\n varying vec4 vColor;\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR )\n varying vec3 vColor;\n#endif",color_vertex:"#if defined( USE_COLOR_ALPHA )\n vColor = vec4( 1.0 );\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR )\n vColor = vec3( 1.0 );\n#endif\n#ifdef USE_COLOR\n vColor *= color;\n#endif\n#ifdef USE_INSTANCING_COLOR\n vColor.xyz *= instanceColor.xyz;\n#endif\n#ifdef USE_BATCHING_COLOR\n vec3 batchingColor = getBatchingColor( getIndirectIndex( gl_DrawID ) );\n vColor.xyz *= batchingColor.xyz;\n#endif",common:"#define PI 3.141592653589793\n#define PI2 6.283185307179586\n#define PI_HALF 1.5707963267948966\n#define RECIPROCAL_PI 0.3183098861837907\n#define RECIPROCAL_PI2 0.15915494309189535\n#define EPSILON 1e-6\n#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\n#define whiteComplement( a ) ( 1.0 - saturate( a ) )\nfloat pow2( const in float x ) { return x*x; }\nvec3 pow2( const in vec3 x ) { return x*x; }\nfloat pow3( const in float x ) { return x*x*x; }\nfloat pow4( const in float x ) { float x2 = x*x; return x2*x2; }\nfloat max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); }\nfloat average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); }\nhighp float rand( const in vec2 uv ) {\n const highp float a = 12.9898, b = 78.233, c = 43758.5453;\n highp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );\n return fract( sin( sn ) * c );\n}\n#ifdef HIGH_PRECISION\n float precisionSafeLength( vec3 v ) { return length( v ); }\n#else\n float precisionSafeLength( vec3 v ) {\n float maxComponent = max3( abs( v ) );\n return length( v / maxComponent ) * maxComponent;\n }\n#endif\nstruct IncidentLight {\n vec3 color;\n vec3 direction;\n bool visible;\n};\nstruct ReflectedLight {\n vec3 directDiffuse;\n vec3 directSpecular;\n vec3 indirectDiffuse;\n vec3 indirectSpecular;\n};\n#ifdef USE_ALPHAHASH\n varying vec3 vPosition;\n#endif\nvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n}\nvec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {\n return normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );\n}\nmat3 transposeMat3( const in mat3 m ) {\n mat3 tmp;\n tmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );\n tmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );\n tmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );\n return tmp;\n}\nbool isPerspectiveMatrix( mat4 m ) {\n return m[ 2 ][ 3 ] == - 1.0;\n}\nvec2 equirectUv( in vec3 dir ) {\n float u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5;\n float v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n return vec2( u, v );\n}\nvec3 BRDF_Lambert( const in vec3 diffuseColor ) {\n return RECIPROCAL_PI * diffuseColor;\n}\nvec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) {\n float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n}\nfloat F_Schlick( const in float f0, const in float f90, const in float dotVH ) {\n float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n} // validated",cube_uv_reflection_fragment:"#ifdef ENVMAP_TYPE_CUBE_UV\n #define cubeUV_minMipLevel 4.0\n #define cubeUV_minTileSize 16.0\n float getFace( vec3 direction ) {\n vec3 absDirection = abs( direction );\n float face = - 1.0;\n if ( absDirection.x > absDirection.z ) {\n if ( absDirection.x > absDirection.y )\n face = direction.x > 0.0 ? 0.0 : 3.0;\n else\n face = direction.y > 0.0 ? 1.0 : 4.0;\n } else {\n if ( absDirection.z > absDirection.y )\n face = direction.z > 0.0 ? 2.0 : 5.0;\n else\n face = direction.y > 0.0 ? 1.0 : 4.0;\n }\n return face;\n }\n vec2 getUV( vec3 direction, float face ) {\n vec2 uv;\n if ( face == 0.0 ) {\n uv = vec2( direction.z, direction.y ) / abs( direction.x );\n } else if ( face == 1.0 ) {\n uv = vec2( - direction.x, - direction.z ) / abs( direction.y );\n } else if ( face == 2.0 ) {\n uv = vec2( - direction.x, direction.y ) / abs( direction.z );\n } else if ( face == 3.0 ) {\n uv = vec2( - direction.z, direction.y ) / abs( direction.x );\n } else if ( face == 4.0 ) {\n uv = vec2( - direction.x, direction.z ) / abs( direction.y );\n } else {\n uv = vec2( direction.x, direction.y ) / abs( direction.z );\n }\n return 0.5 * ( uv + 1.0 );\n }\n vec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) {\n float face = getFace( direction );\n float filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 );\n mipInt = max( mipInt, cubeUV_minMipLevel );\n float faceSize = exp2( mipInt );\n highp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0;\n if ( face > 2.0 ) {\n uv.y += faceSize;\n face -= 3.0;\n }\n uv.x += face * faceSize;\n uv.x += filterInt * 3.0 * cubeUV_minTileSize;\n uv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize );\n uv.x *= CUBEUV_TEXEL_WIDTH;\n uv.y *= CUBEUV_TEXEL_HEIGHT;\n #ifdef texture2DGradEXT\n return texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb;\n #else\n return texture2D( envMap, uv ).rgb;\n #endif\n }\n #define cubeUV_r0 1.0\n #define cubeUV_m0 - 2.0\n #define cubeUV_r1 0.8\n #define cubeUV_m1 - 1.0\n #define cubeUV_r4 0.4\n #define cubeUV_m4 2.0\n #define cubeUV_r5 0.305\n #define cubeUV_m5 3.0\n #define cubeUV_r6 0.21\n #define cubeUV_m6 4.0\n float roughnessToMip( float roughness ) {\n float mip = 0.0;\n if ( roughness >= cubeUV_r1 ) {\n mip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0;\n } else if ( roughness >= cubeUV_r4 ) {\n mip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1;\n } else if ( roughness >= cubeUV_r5 ) {\n mip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4;\n } else if ( roughness >= cubeUV_r6 ) {\n mip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5;\n } else {\n mip = - 2.0 * log2( 1.16 * roughness ); }\n return mip;\n }\n vec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) {\n float mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP );\n float mipF = fract( mip );\n float mipInt = floor( mip );\n vec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt );\n if ( mipF == 0.0 ) {\n return vec4( color0, 1.0 );\n } else {\n vec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 );\n return vec4( mix( color0, color1, mipF ), 1.0 );\n }\n }\n#endif",defaultnormal_vertex:"vec3 transformedNormal = objectNormal;\n#ifdef USE_TANGENT\n vec3 transformedTangent = objectTangent;\n#endif\n#ifdef USE_BATCHING\n mat3 bm = mat3( batchingMatrix );
48\n transformedNormal /= vec3( dot( bm[ 0 ], bm[ 0 ] ), dot( bm[ 1 ], bm[ 1 ] ), dot( bm[ 2 ], bm[ 2 ] ) );\n transformedNormal = bm * transformedNormal;\n #ifdef USE_TANGENT\n transformedTangent = bm * transformedTangent;\n #endif\n#endif\n#ifdef USE_INSTANCING\n mat3 im = mat3( instanceMatrix );\n transformedNormal /= vec3( dot( im[ 0 ], im[ 0 ] ), dot( im[ 1 ], im[ 1 ] ), dot( im[ 2 ], im[ 2 ] ) );\n transformedNormal = im * transformedNormal;\n #ifdef USE_TANGENT\n transformedTangent = im * transformedTangent;\n #endif\n#endif\ntransformedNormal = normalMatrix * transformedNormal;\n#ifdef FLIP_SIDED\n transformedNormal = - transformedNormal;\n#endif\n#ifdef USE_TANGENT\n transformedTangent = ( modelViewMatrix * vec4( transformedTangent, 0.0 ) ).xyz;\n #ifdef FLIP_SIDED\n transformedTangent = - transformedTangent;\n #endif\n#endif",displacementmap_pars_vertex:"#ifdef USE_DISPLACEMENTMAP\n uniform sampler2D displacementMap;\n uniform float displacementScale;\n uniform float displacementBias;\n#endif",displacementmap_vertex:"#ifdef USE_DISPLACEMENTMAP\n transformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias );\n#endif",emissivemap_fragment:"#ifdef USE_EMISSIVEMAP\n vec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv );\n #ifdef DECODE_VIDEO_TEXTURE_EMISSIVE\n emissiveColor = sRGBTransferEOTF( emissiveColor );\n #endif\n totalEmissiveRadiance *= emissiveColor.rgb;\n#endif",emissivemap_pars_fragment:"#ifdef USE_EMISSIVEMAP\n uniform sampler2D emissiveMap;\n#endif",colorspace_fragment:"gl_FragColor = linearToOutputTexel( gl_FragColor );",colorspace_pars_fragment:"vec4 LinearTransferOETF( in vec4 value ) {\n return value;\n}\nvec4 sRGBTransferEOTF( in vec4 value ) {\n return vec4( mix( pow( value.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), value.rgb * 0.0773993808, vec3( lessThanEqual( value.rgb, vec3( 0.04045 ) ) ) ), value.a );\n}\nvec4 sRGBTransferOETF( in vec4 value ) {\n return vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a );\n}",envmap_fragment:"#ifdef USE_ENVMAP\n #ifdef ENV_WORLDPOS\n vec3 cameraToFrag;\n if ( isOrthographic ) {\n cameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n } else {\n cameraToFrag = normalize( vWorldPosition - cameraPosition );\n }\n vec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n #ifdef ENVMAP_MODE_REFLECTION\n vec3 reflectVec = reflect( cameraToFrag, worldNormal );\n #else\n vec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio );\n #endif\n #else\n vec3 reflectVec = vReflect;\n #endif\n #ifdef ENVMAP_TYPE_CUBE\n vec4 envColor = textureCube( envMap, envMapRotation * vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\n #else\n vec4 envColor = vec4( 0.0 );\n #endif\n #ifdef ENVMAP_BLENDING_MULTIPLY\n outgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );\n #elif defined( ENVMAP_BLENDING_MIX )\n outgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );\n #elif defined( ENVMAP_BLENDING_ADD )\n outgoingLight += envColor.xyz * specularStrength * reflectivity;\n #endif\n#endif",envmap_common_pars_fragment:"#ifdef USE_ENVMAP\n uniform float envMapIntensity;\n uniform float flipEnvMap;\n uniform mat3 envMapRotation;\n #ifdef ENVMAP_TYPE_CUBE\n uniform samplerCube envMap;\n #else\n uniform sampler2D envMap;\n #endif\n \n#endif",envmap_pars_fragment:"#ifdef USE_ENVMAP\n uniform float reflectivity;\n #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n #define ENV_WORLDPOS\n #endif\n #ifdef ENV_WORLDPOS\n varying vec3 vWorldPosition;\n uniform float refractionRatio;\n #else\n varying vec3 vReflect;\n #endif\n#endif",envmap_pars_vertex:"#ifdef USE_ENVMAP\n #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n #define ENV_WORLDPOS\n #endif\n #ifdef ENV_WORLDPOS\n \n varying vec3 vWorldPosition;\n #else\n varying vec3 vReflect;\n uniform float refractionRatio;\n #endif\n#endif",envmap_physical_pars_fragment:"#ifdef USE_ENVMAP\n vec3 getIBLIrradiance( const in vec3 normal ) {\n #ifdef ENVMAP_TYPE_CUBE_UV\n vec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n vec4 envMapColor = textureCubeUV( envMap, envMapRotation * worldNormal, 1.0 );\n return PI * envMapColor.rgb * envMapIntensity;\n #else\n return vec3( 0.0 );\n #endif\n }\n vec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) {\n #ifdef ENVMAP_TYPE_CUBE_UV\n vec3 reflectVec = reflect( - viewDir, normal );\n reflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );\n reflectVec = inverseTransformDirection( reflectVec, viewMatrix );\n vec4 envMapColor = textureCubeUV( envMap, envMapRotation * reflectVec, roughness );\n return envMapColor.rgb * envMapIntensity;\n #else\n return vec3( 0.0 );\n #endif\n }\n #ifdef USE_ANISOTROPY\n vec3 getIBLAnisotropyRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in vec3 bitangent, const in float anisotropy ) {\n #ifdef ENVMAP_TYPE_CUBE_UV\n vec3 bentNormal = cross( bitangent, viewDir );\n bentNormal = normalize( cross( bentNormal, bitangent ) );\n bentNormal = normalize( mix( bentNormal, normal, pow2( pow2( 1.0 - anisotropy * ( 1.0 - roughness ) ) ) ) );\n return getIBLRadiance( viewDir, bentNormal, roughness );\n #else\n return vec3( 0.0 );\n #endif\n }\n #endif\n#endif",envmap_vertex:"#ifdef USE_ENVMAP\n #ifdef ENV_WORLDPOS\n vWorldPosition = worldPosition.xyz;\n #else\n vec3 cameraToVertex;\n if ( isOrthographic ) {\n cameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n }
48 else {\n cameraToVertex = normalize( worldPosition.xyz - cameraPosition );\n }\n vec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n #ifdef ENVMAP_MODE_REFLECTION\n vReflect = reflect( cameraToVertex, worldNormal );\n #else\n vReflect = refract( cameraToVertex, worldNormal, refractionRatio );\n #endif\n #endif\n#endif",fog_vertex:"#ifdef USE_FOG\n vFogDepth = - mvPosition.z;\n#endif",fog_pars_vertex:"#ifdef USE_FOG\n varying float vFogDepth;\n#endif",fog_fragment:"#ifdef USE_FOG\n #ifdef FOG_EXP2\n float fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth );\n #else\n float fogFactor = smoothstep( fogNear, fogFar, vFogDepth );\n #endif\n gl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );\n#endif",fog_pars_fragment:"#ifdef USE_FOG\n uniform vec3 fogColor;\n varying float vFogDepth;\n #ifdef FOG_EXP2\n uniform float fogDensity;\n #else\n uniform float fogNear;\n uniform float fogFar;\n #endif\n#endif",gradientmap_pars_fragment:"#ifdef USE_GRADIENTMAP\n uniform sampler2D gradientMap;\n#endif\nvec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {\n float dotNL = dot( normal, lightDirection );\n vec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );\n #ifdef USE_GRADIENTMAP\n return vec3( texture2D( gradientMap, coord ).r );\n #else\n vec2 fw = fwidth( coord ) * 0.5;\n return mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) );\n #endif\n}",lightmap_pars_fragment:"#ifdef USE_LIGHTMAP\n uniform sampler2D lightMap;\n uniform float lightMapIntensity;\n#endif",lights_lambert_fragment:"LambertMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularStrength = specularStrength;",lights_lambert_pars_fragment:"varying vec3 vViewPosition;\nstruct LambertMaterial {\n vec3 diffuseColor;\n float specularStrength;\n};\nvoid RE_Direct_Lambert( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n float dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n vec3 irradiance = dotNL * directLight.color;\n reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct RE_Direct_Lambert\n#define RE_IndirectDiffuse RE_IndirectDiffuse_Lambert",lights_pars_begin:"uniform bool receiveShadow;\nuniform vec3 ambientLightColor;\n#if defined( USE_LIGHT_PROBES )\n uniform vec3 lightProbe[ 9 ];\n#endif\nvec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) {\n float x = normal.x, y = normal.y, z = normal.z;\n vec3 result = shCoefficients[ 0 ] * 0.886227;\n result += shCoefficients[ 1 ] * 2.0 * 0.511664 * y;\n result += shCoefficients[ 2 ] * 2.0 * 0.511664 * z;\n result += shCoefficients[ 3 ] * 2.0 * 0.511664 * x;\n result += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y;\n result += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z;\n result += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 );\n result += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z;\n result += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y );\n return result;\n}\nvec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) {\n vec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n vec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );\n return irradiance;\n}\nvec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {\n vec3 irradiance = ambientLightColor;\n return irradiance;\n}\nfloat getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {\n float distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\n if ( cutoffDistance > 0.0 ) {\n distanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\n }\n return distanceFalloff;\n}\nfloat getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) {\n return smoothstep( coneCosine, penumbraCosine, angleCosine );\n}\n#if NUM_DIR_LIGHTS > 0\n struct DirectionalLight {\n vec3 direction;\n vec3 color;\n };\n uniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];\n void getDirectionalLightInfo( const in DirectionalLight directionalLight, out IncidentLight light ) {\n light.color = directionalLight.color;\n light.direction = directionalLight.direction;\n light.visible = true;\n }\n#endif\n#if NUM_POINT_LIGHTS > 0\n struct PointLight {\n vec3 position;\n vec3 color;\n float distance;\n float decay;\n };\n uniform PointLight pointLights[ NUM_POINT_LIGHTS ];\n void getPointLightInfo( const in PointLight pointLight, const in vec3 geometryPosition, out IncidentLight light ) {\n vec3 lVector = pointLight.position - geometryPosition;\n light.direction = normalize( lVector );\n float lightDistance = length( lVector );\n light.color = pointLight.color;\n light.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay );\n light.visible = ( light.color != vec3( 0.0 ) );\n }
48\n#endif\n#if NUM_SPOT_LIGHTS > 0\n struct SpotLight {\n vec3 position;\n vec3 direction;\n vec3 color;\n float distance;\n float decay;\n float coneCos;\n float penumbraCos;\n };\n uniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];\n void getSpotLightInfo( const in SpotLight spotLight, const in vec3 geometryPosition, out IncidentLight light ) {\n vec3 lVector = spotLight.position - geometryPosition;\n light.direction = normalize( lVector );\n float angleCos = dot( light.direction, spotLight.direction );\n float spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos );\n if ( spotAttenuation > 0.0 ) {\n float lightDistance = length( lVector );\n light.color = spotLight.color * spotAttenuation;\n light.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay );\n light.visible = ( light.color != vec3( 0.0 ) );\n } else {\n light.color = vec3( 0.0 );\n light.visible = false;\n }\n }\n#endif\n#if NUM_RECT_AREA_LIGHTS > 0\n struct RectAreaLight {\n vec3 color;\n vec3 position;\n vec3 halfWidth;\n vec3 halfHeight;\n };\n uniform sampler2D ltc_1; uniform sampler2D ltc_2;\n uniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];\n#endif\n#if NUM_HEMI_LIGHTS > 0\n struct HemisphereLight {\n vec3 direction;\n vec3 skyColor;\n vec3 groundColor;\n };\n uniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];\n vec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) {\n float dotNL = dot( normal, hemiLight.direction );\n float hemiDiffuseWeight = 0.5 * dotNL + 0.5;\n vec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );\n return irradiance;\n }\n#endif",lights_toon_fragment:"ToonMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;",lights_toon_pars_fragment:"varying vec3 vViewPosition;\nstruct ToonMaterial {\n vec3 diffuseColor;\n};\nvoid RE_Direct_Toon( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n vec3 irradiance = getGradientIrradiance( geometryNormal, directLight.direction ) * directLight.color;\n reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct RE_Direct_Toon\n#define RE_IndirectDiffuse RE_IndirectDiffuse_Toon",lights_phong_fragment:"BlinnPhongMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularColor = specular;\nmaterial.specularShininess = shininess;\nmaterial.specularStrength = specularStrength;",lights_phong_pars_fragment:"varying vec3 vViewPosition;\nstruct BlinnPhongMaterial {\n vec3 diffuseColor;\n vec3 specularColor;\n float specularShininess;\n float specularStrength;\n};\nvoid RE_Direct_BlinnPhong( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n float dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n vec3 irradiance = dotNL * directLight.color;\n reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n reflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometryViewDir, geometryNormal, material.specularColor, material.specularShininess ) * material.specularStrength;\n}\nvoid RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct RE_Direct_BlinnPhong\n#define RE_IndirectDiffuse RE_IndirectDiffuse_BlinnPhong",lights_physical_fragment:"PhysicalMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );\nvec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) );\nfloat geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );\nmaterial.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness;\nmaterial.roughness = min( material.roughness, 1.0 );\n#ifdef IOR\n material.ior = ior;\n #ifdef USE_SPECULAR\n float specularIntensityFactor = specularIntensity;\n vec3 specularColorFactor = specularColor;\n #ifdef USE_SPECULAR_COLORMAP\n specularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb;\n #endif\n #ifdef USE_SPECULAR_INTENSITYMAP\n specularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a;\n #endif\n material.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor );\n #else\n float specularIntensityFactor = 1.0;\n vec3 specularColorFactor = vec3( 1.0 );\n material.specularF90 = 1.0;\n #endif\n material.specularColor = mix( min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor );\n#else\n material.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor );\n material.specularF90 = 1.0;\n#endif\n#ifdef USE_CLEARCOAT\n material.clearcoat = clearcoat;
48\n material.clearcoatRoughness = clearcoatRoughness;\n material.clearcoatF0 = vec3( 0.04 );\n material.clearcoatF90 = 1.0;\n #ifdef USE_CLEARCOATMAP\n material.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x;\n #endif\n #ifdef USE_CLEARCOAT_ROUGHNESSMAP\n material.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y;\n #endif\n material.clearcoat = saturate( material.clearcoat ); material.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 );\n material.clearcoatRoughness += geometryRoughness;\n material.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );\n#endif\n#ifdef USE_DISPERSION\n material.dispersion = dispersion;\n#endif\n#ifdef USE_IRIDESCENCE\n material.iridescence = iridescence;\n material.iridescenceIOR = iridescenceIOR;\n #ifdef USE_IRIDESCENCEMAP\n material.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r;\n #endif\n #ifdef USE_IRIDESCENCE_THICKNESSMAP\n material.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum;\n #else\n material.iridescenceThickness = iridescenceThicknessMaximum;\n #endif\n#endif\n#ifdef USE_SHEEN\n material.sheenColor = sheenColor;\n #ifdef USE_SHEEN_COLORMAP\n material.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb;\n #endif\n material.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 );\n #ifdef USE_SHEEN_ROUGHNESSMAP\n material.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a;\n #endif\n#endif\n#ifdef USE_ANISOTROPY\n #ifdef USE_ANISOTROPYMAP\n mat2 anisotropyMat = mat2( anisotropyVector.x, anisotropyVector.y, - anisotropyVector.y, anisotropyVector.x );\n vec3 anisotropyPolar = texture2D( anisotropyMap, vAnisotropyMapUv ).rgb;\n vec2 anisotropyV = anisotropyMat * normalize( 2.0 * anisotropyPolar.rg - vec2( 1.0 ) ) * anisotropyPolar.b;\n #else\n vec2 anisotropyV = anisotropyVector;\n #endif\n material.anisotropy = length( anisotropyV );\n if( material.anisotropy == 0.0 ) {\n anisotropyV = vec2( 1.0, 0.0 );\n } else {\n anisotropyV /= material.anisotropy;\n material.anisotropy = saturate( material.anisotropy );\n }\n material.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) );\n material.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y;\n material.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y;\n#endif",lights_physical_pars_fragment:"struct PhysicalMaterial {\n vec3 diffuseColor;\n float roughness;\n vec3 specularColor;\n float specularF90;\n float dispersion;\n #ifdef USE_CLEARCOAT\n float clearcoat;\n float clearcoatRoughness;\n vec3 clearcoatF0;\n float clearcoatF90;\n #endif\n #ifdef USE_IRIDESCENCE\n float iridescence;\n float iridescenceIOR;\n float iridescenceThickness;\n vec3 iridescenceFresnel;\n vec3 iridescenceF0;\n #endif\n #ifdef USE_SHEEN\n vec3 sheenColor;\n float sheenRoughness;\n #endif\n #ifdef IOR\n float ior;\n #endif\n #ifdef USE_TRANSMISSION\n float transmission;\n float transmissionAlpha;\n float thickness;\n float attenuationDistance;\n vec3 attenuationColor;\n #endif\n #ifdef USE_ANISOTROPY\n float anisotropy;\n float alphaT;\n vec3 anisotropyT;\n vec3 anisotropyB;\n #endif\n};\nvec3 clearcoatSpecularDirect = vec3( 0.0 );\nvec3 clearcoatSpecularIndirect = vec3( 0.0 );\nvec3 sheenSpecularDirect = vec3( 0.0 );\nvec3 sheenSpecularIndirect = vec3(0.0 );\nvec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) {\n float x = clamp( 1.0 - dotVH, 0.0, 1.0 );\n float x2 = x * x;\n float x5 = clamp( x * x2 * x2, 0.0, 0.9999 );\n return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 );\n}\nfloat V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {\n float a2 = pow2( alpha );\n float gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n float gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n return 0.5 / max( gv + gl, EPSILON );\n}\nfloat D_GGX( const in float alpha, const in float dotNH ) {\n float a2 = pow2( alpha );\n float denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;\n return RECIPROCAL_PI * a2 / pow2( denom );\n}\n#ifdef USE_ANISOTROPY\n float V_GGX_SmithCorrelated_Anisotropic( const in float alphaT, const in float alphaB, const in float dotTV, const in float dotBV, const in float dotTL, const in float dotBL, const in float dotNV, const in float dotNL ) {\n float gv = dotNL * length( vec3( alphaT * dotTV, alph
48aB * dotBV, dotNV ) );\n float gl = dotNV * length( vec3( alphaT * dotTL, alphaB * dotBL, dotNL ) );\n float v = 0.5 / ( gv + gl );\n return saturate(v);\n }\n float D_GGX_Anisotropic( const in float alphaT, const in float alphaB, const in float dotNH, const in float dotTH, const in float dotBH ) {\n float a2 = alphaT * alphaB;\n highp vec3 v = vec3( alphaB * dotTH, alphaT * dotBH, a2 * dotNH );\n highp float v2 = dot( v, v );\n float w2 = a2 / v2;\n return RECIPROCAL_PI * a2 * pow2 ( w2 );\n }\n#endif\n#ifdef USE_CLEARCOAT\n vec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) {\n vec3 f0 = material.clearcoatF0;\n float f90 = material.clearcoatF90;\n float roughness = material.clearcoatRoughness;\n float alpha = pow2( roughness );\n vec3 halfDir = normalize( lightDir + viewDir );\n float dotNL = saturate( dot( normal, lightDir ) );\n float dotNV = saturate( dot( normal, viewDir ) );\n float dotNH = saturate( dot( normal, halfDir ) );\n float dotVH = saturate( dot( viewDir, halfDir ) );\n vec3 F = F_Schlick( f0, f90, dotVH );\n float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n float D = D_GGX( alpha, dotNH );\n return F * ( V * D );\n }\n#endif\nvec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) {\n vec3 f0 = material.specularColor;\n float f90 = material.specularF90;\n float roughness = material.roughness;\n float alpha = pow2( roughness );\n vec3 halfDir = normalize( lightDir + viewDir );\n float dotNL = saturate( dot( normal, lightDir ) );\n float dotNV = saturate( dot( normal, viewDir ) );\n float dotNH = saturate( dot( normal, halfDir ) );\n float dotVH = saturate( dot( viewDir, halfDir ) );\n vec3 F = F_Schlick( f0, f90, dotVH );\n #ifdef USE_IRIDESCENCE\n F = mix( F, material.iridescenceFresnel, material.iridescence );\n #endif\n #ifdef USE_ANISOTROPY\n float dotTL = dot( material.anisotropyT, lightDir );\n float dotTV = dot( material.anisotropyT, viewDir );\n float dotTH = dot( material.anisotropyT, halfDir );\n float dotBL = dot( material.anisotropyB, lightDir );\n float dotBV = dot( material.anisotropyB, viewDir );\n float dotBH = dot( material.anisotropyB, halfDir );\n float V = V_GGX_SmithCorrelated_Anisotropic( material.alphaT, alpha, dotTV, dotBV, dotTL, dotBL, dotNV, dotNL );\n float D = D_GGX_Anisotropic( material.alphaT, alpha, dotNH, dotTH, dotBH );\n #else\n float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n float D = D_GGX( alpha, dotNH );\n #endif\n return F * ( V * D );\n}\nvec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {\n const float LUT_SIZE = 64.0;\n const float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;\n const float LUT_BIAS = 0.5 / LUT_SIZE;\n float dotNV = saturate( dot( N, V ) );\n vec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );\n uv = uv * LUT_SCALE + LUT_BIAS;\n return uv;\n}\nfloat LTC_ClippedSphereFormFactor( const in vec3 f ) {\n float l = length( f );\n return max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );\n}\nvec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {\n float x = dot( v1, v2 );\n float y = abs( x );\n float a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;\n float b = 3.4175940 + ( 4.1616724 + y ) * y;\n float v = a / b;\n float theta_sintheta = ( x >
48 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;\n return cross( v1, v2 ) * theta_sintheta;\n}\nvec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {\n vec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];\n vec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];\n vec3 lightNormal = cross( v1, v2 );\n if( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );\n vec3 T1, T2;\n T1 = normalize( V - N * dot( V, N ) );\n T2 = - cross( N, T1 );\n mat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) );\n vec3 coords[ 4 ];\n coords[ 0 ] = mat * ( rectCoords[ 0 ] - P );\n coords[ 1 ] = mat * ( rectCoords[ 1 ] - P );\n coords[ 2 ] = mat * ( rectCoords[ 2 ] - P );\n coords[ 3 ] = mat * ( rectCoords[ 3 ] - P );\n coords[ 0 ] = normalize( coords[ 0 ] );\n coords[ 1 ] = normalize( coords[ 1 ] );\n coords[ 2 ] = normalize( coords[ 2 ] );\n coords[ 3 ] = normalize( coords[ 3 ] );\n vec3 vectorFormFactor = vec3( 0.0 );\n vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );\n vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );\n vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );\n vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );\n float result = LTC_ClippedSphereFormFactor( vectorFormFactor );\n return vec3( result );\n}\n#if defined( USE_SHEEN )\nfloat D_Charlie( float roughness, float dotNH ) {\n float alpha = pow2( roughness );\n float invAlpha = 1.0 / alpha;\n float cos2h = dotNH * dotNH;\n float sin2h = max( 1.0 - cos2h, 0.0078125 );\n return ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI );\n}\nfloat V_Neubelt( float dotNV, float dotNL ) {\n return saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) );\n}\nvec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) {\n vec3 halfDir = normalize( lightDir + viewDir );\n float dotNL = saturate( dot( normal, lightDir ) );\n float dotNV = saturate( dot( normal, viewDir ) );\n float dotNH = saturate( dot( normal, halfDir ) );\n float D = D_Charlie( sheenRoughness, dotNH );\n float V = V_Neubelt( dotNV, dotNL );\n return sheenColor * ( D * V );\n}\n#endif\nfloat IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n float dotNV = saturate( dot( normal, viewDir ) );\n float r2 = roughness * roughness;\n float a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95;\n float b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72;\n float DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) );\n return saturate( DG * RECIPROCAL_PI );\n}\nvec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n float dotNV = saturate( dot( normal, viewDir ) );\n const vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );\n const vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );\n vec4 r = roughness * c0 + c1;\n float a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;\n vec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw;\n return fab;\n}\nvec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) {\n vec2 fab = DFGApprox( normal, viewDir, roughness );\n return specularColor * fab.x + specularF90 * fab.y;\n}\n#ifdef USE_IRIDESCENCE\nvoid computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#else\nvoid computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#endif\n vec2 fab = DFGApprox( normal, viewDir, roughness );
48\n #ifdef USE_IRIDESCENCE\n vec3 Fr = mix( specularColor, iridescenceF0, iridescence );\n #else\n vec3 Fr = specularColor;\n #endif\n vec3 FssEss = Fr * fab.x + specularF90 * fab.y;\n float Ess = fab.x + fab.y;\n float Ems = 1.0 - Ess;\n vec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619; vec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );\n singleScatter += FssEss;\n multiScatter += Fms * Ems;\n}\n#if NUM_RECT_AREA_LIGHTS > 0\n void RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n vec3 normal = geometryNormal;\n vec3 viewDir = geometryViewDir;\n vec3 position = geometryPosition;\n vec3 lightPos = rectAreaLight.position;\n vec3 halfWidth = rectAreaLight.halfWidth;\n vec3 halfHeight = rectAreaLight.halfHeight;\n vec3 lightColor = rectAreaLight.color;\n float roughness = material.roughness;\n vec3 rectCoords[ 4 ];\n rectCoords[ 0 ] = lightPos + halfWidth - halfHeight; rectCoords[ 1 ] = lightPos - halfWidth - halfHeight;\n rectCoords[ 2 ] = lightPos - halfWidth + halfHeight;\n rectCoords[ 3 ] = lightPos + halfWidth + halfHeight;\n vec2 uv = LTC_Uv( normal, viewDir, roughness );\n vec4 t1 = texture2D( ltc_1, uv );\n vec4 t2 = texture2D( ltc_2, uv );\n mat3 mInv = mat3(\n vec3( t1.x, 0, t1.y ),\n vec3( 0, 1, 0 ),\n vec3( t1.z, 0, t1.w )\n );\n vec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );\n reflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );\n reflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );\n }\n#endif\nvoid RE_Direct_Physical( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n float dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n vec3 irradiance = dotNL * directLight.color;\n #ifdef USE_CLEARCOAT\n float dotNLcc = saturate( dot( geometryClearcoatNormal, directLight.direction ) );\n vec3 ccIrradiance = dotNLcc * directLight.color;\n clearcoatSpecularDirect += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometryViewDir, geometryClearcoatNormal, material );\n #endif\n #ifdef USE_SHEEN\n sheenSpecularDirect += irradiance * BRDF_Sheen( directLight.direction, geometryViewDir, geometryNormal, material.sheenColor, material.sheenRoughness );\n #endif\n reflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometryViewDir, geometryNormal, material );\n reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) {\n #ifdef USE_CLEARCOAT\n clearcoatSpecularIndirect += clearcoatRadiance * EnvironmentBRDF( geometryClearcoatNormal, geometryViewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );\n #endif\n #ifdef USE_SHEEN\n sheenSpecularIndirect += irradiance * material.sheenColor * IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness );\n #endif\n vec3 singleScattering = vec3( 0.0 );\n vec3 multiScattering = vec3( 0.0 );\n vec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;
48\n #ifdef USE_IRIDESCENCE\n computeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness, singleScattering, multiScattering );\n #else\n computeMultiscattering( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering );\n #endif\n vec3 totalScattering = singleScattering + multiScattering;\n vec3 diffuse = material.diffuseColor * ( 1.0 - max( max( totalScattering.r, totalScattering.g ), totalScattering.b ) );\n reflectedLight.indirectSpecular += radiance * singleScattering;\n reflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance;\n reflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance;\n}\n#define RE_Direct RE_Direct_Physical\n#define RE_Direct_RectArea RE_Direct_RectArea_Physical\n#define RE_IndirectDiffuse RE_IndirectDiffuse_Physical\n#define RE_IndirectSpecular RE_IndirectSpecular_Physical\nfloat computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {\n return saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );\n}",lights_fragment_begin:"\nvec3 geometryPosition = - vViewPosition;\nvec3 geometryNormal = normal;\nvec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );\nvec3 geometryClearcoatNormal = vec3( 0.0 );\n#ifdef USE_CLEARCOAT\n geometryClearcoatNormal = clearcoatNormal;\n#endif\n#ifdef USE_IRIDESCENCE\n float dotNVi = saturate( dot( normal, geometryViewDir ) );\n if ( material.iridescenceThickness == 0.0 ) {\n material.iridescence = 0.0;\n } else {\n material.iridescence = saturate( material.iridescence );\n }\n if ( material.iridescence > 0.0 ) {\n material.iridescenceFresnel = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor );\n material.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi );\n }\n#endif\nIncidentLight directLight;\n#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )\n PointLight pointLight;\n #if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0\n PointLightShadow pointLightShadow;\n #endif\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n pointLight = pointLights[ i ];\n getPointLightInfo( pointLight, geometryPosition, directLight );\n #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS )\n pointLightShadow = pointLightShadows[ i ];\n directLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowIntensity, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;\n #endif\n RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n }\n #pragma unroll_loop_end\n#endif\n#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )\n SpotLight spotLight;\n vec4 spotColor;\n vec3 spotLightCoord;\n bool inSpotLightMap;\n #if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0\n SpotLightShadow spotLightShadow;\n #endif\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n spotLight = spotLights[ i ];\n getSpotLightInfo( spotLight, geometryPosition, directLight );\n #if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n #define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX\n #elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n #define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS\n #else\n #define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n #endif\n #if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS )\n spotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w;\n inSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) );\n spotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy );\n directLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color;\n #endif\n #undef SPOT_LIGHT_MAP_INDEX\n #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_L
48IGHT_SHADOWS )\n spotLightShadow = spotLightShadows[ i ];\n directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowIntensity, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n #endif\n RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n }\n #pragma unroll_loop_end\n#endif\n#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )\n DirectionalLight directionalLight;\n #if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0\n DirectionalLightShadow directionalLightShadow;\n #endif\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n directionalLight = directionalLights[ i ];\n getDirectionalLightInfo( directionalLight, directLight );\n #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )\n directionalLightShadow = directionalLightShadows[ i ];\n directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowIntensity, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n #endif\n RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n }\n #pragma unroll_loop_end\n#endif\n#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )\n RectAreaLight rectAreaLight;\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {\n rectAreaLight = rectAreaLights[ i ];\n RE_Direct_RectArea( rectAreaLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n }\n #pragma unroll_loop_end\n#endif\n#if defined( RE_IndirectDiffuse )\n vec3 iblIrradiance = vec3( 0.0 );\n vec3 irradiance = getAmbientLightIrradiance( ambientLightColor );\n #if defined( USE_LIGHT_PROBES )\n irradiance += getLightProbeIrradiance( lightProbe, geometryNormal );\n #endif\n #if ( NUM_HEMI_LIGHTS > 0 )\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n irradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometryNormal );\n }\n #pragma unroll_loop_end\n #endif\n#endif\n#if defined( RE_IndirectSpecular )\n vec3 radiance = vec3( 0.0 );\n vec3 clearcoatRadiance = vec3( 0.0 );\n#endif",lights_fragment_maps:"#if defined( RE_IndirectDiffuse )\n #ifdef USE_LIGHTMAP\n vec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\n irradiance += lightMapIrradiance;\n #endif\n #if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )\n iblIrradiance += getIBLIrradiance( geometryNormal );\n #endif\n#endif\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\n #ifdef USE_ANISOTROPY\n radiance += getIBLAnisotropyRadiance( geometryViewDir, geometryNormal, material.roughness, material.anisotropyB, material.anisotropy );\n #else\n radiance += getIBLRadiance( geometryViewDir, geometryNormal, material.roughness );\n #endif\n #ifdef USE_CLEARCOAT\n clearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness );\n #endif\n#endif",lights_fragment_end:"#if defined( RE_IndirectDiffuse )\n RE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n#endif\n#if defined( RE_IndirectSpecular )\n RE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n#endif",logdepthbuf_fragment:"#if defined( USE_LOGDEPTHBUF )\n gl_FragDepth = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;\n#endif",logdepthbuf_pars_fragment:"#if defined( USE_LOGDEPTHBUF )\n uniform float logDepthBufFC;\n varying float vFragDepth;\n varying float vIsPerspective;\n#endif",logdepthbuf_pars_vertex:"#ifdef USE_LOGDEPTHBUF\n varying float vFragDepth;\n varying float vIsPerspective;\n#endif",logdepthbuf_vertex:"#ifdef USE_LOGDEPTHBUF\n vFragDepth = 1.0 + gl_Position.w;\n vIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );\n#endif",map_fragment:"#ifdef USE_MAP\n vec4 sampledDiffuseColor = texture2D( map, vMapUv );\n #ifdef DECODE_VIDEO_TEXTURE\n sampledDiffuseColor = sRGBTransferEOTF( sampledDiffuseColor );\n #endif\n diffuseColor *= sampledDiffuseColor;\n#endif",map_pars_fragment:"#ifdef USE_MAP\n uniform sampler2D map;\n#endif",map_particle_fragment:"#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n #if defined( USE_POINTS_UV )\n vec2 uv = vUv;\n #else\n vec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;\n #endif\n#endif\n#ifdef USE_MAP\n diffuseColor *= texture2D( map, uv );\n#endif\n#ifdef USE_ALPHAMAP\n diffuseColor.a *= texture2D( alphaMap, uv ).g;\n#endif",map_particle_pars_fragment:"#if defined( USE_POINTS_UV )\n varying vec2 vUv;\n#else\n #if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n uniform mat3 uvTransform;\n #endif\n#endif\n#ifdef USE_MAP\n uniform sampler2D map;\n#endif\n#ifdef USE_ALPHAMAP\n uniform sampler2D alphaMap;\n#endif",metalnessmap_fragment:"float metalnessFactor = metalness;\n#ifdef USE_METALNESSMAP\n vec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv );\n metalnessFactor *= texelMetalness.b;\n#endif",metalnessmap_pars_fragment:"#ifdef USE_METALNESSMAP\n uniform sampler2D metalnessMap;\n#endif",morphinstance_vertex:"#ifdef USE_INSTANCING_MORPH\n float morphTargetInfluences[ MORPHTARGETS_COUNT ];\n float morphTargetBaseInfluence = texelFetch( morphTexture, ivec2( 0, gl_InstanceID ), 0 ).r;\n for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n morphTargetInfluences[i] = texelFetch( morphTexture, ivec2( i + 1, gl_InstanceID ), 0 ).r;\n }\n#endif",morphcolor_vertex:"#if defined( USE_MORPHCOLORS )\n vColor *= morphTargetBaseInfluence;\n for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n #if defined( USE_COLOR_ALPHA )\n if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ];\n #elif defined( USE_COLOR )\n if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ];\n #endif\n }\n#endif",morphnormal_vertex:"#ifdef USE_MORPHNORMALS\n objectNormal *= morphTargetBaseInfluence;\n for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n if ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ];\n }\n#endif",morphtarget_pars_vertex:"#ifdef USE_MORPHTARGETS\n #ifndef USE_INSTANCING_MORPH\n uniform float morphTargetBaseInfluence;\n uniform float morphTargetInfluences[ MORPHTARGETS_COUNT ];\n #endif\n uniform sampler2DArray morphTargetsTexture;\n uniform ivec2 morphTargetsTextureSize;\n vec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) {\n int texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset;\n int y = texelIndex / morphTargetsTextureSize.x;\n int x = texelIndex - y * morphTargetsTextureSize.x;\n ivec3 morphUV = ivec3( x, y, morphTargetIndex );\n return texelFetch( morphTargetsTexture, morphUV, 0 );\n }\n#endif",morphtarget_vertex:"#ifdef USE_MORPHTARGETS\n transformed *= morphTargetBaseInfluence;\n for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n if ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ];\n }\n#endif",normal_fragment_begin:"float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;\n#ifdef FLAT_SHADED\n vec3 fdx = dFdx( vViewPosition );\n vec3 fdy = dFdy( vViewPosition );\n vec3 normal = normalize( cross( fdx, fdy ) );\n#else\n vec3 normal = normalize( vNormal );\n #ifdef DOUBLE_SIDED\n normal *= faceDirection;\n #endif\n#endif\n#if defined( USE_NORMALMAP_TANGENTSPACE ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY )\n #ifdef USE_TANGENT\n mat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal );\n #else\n mat3 tbn = getTangentFrame( - vViewPosition, normal,\n #if defined( USE_NORMALMAP )\n vNormalMapUv\n #elif defined( USE_CLEARCOAT_NORMALMAP )\n vClearcoatNormalMapUv\n #else\n vUv\n #endif\n );\n #endif\n #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )\n tbn[0] *= faceDirection;\n tbn[1] *= faceDirection;\n #endif\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n #ifdef USE_TANGENT\n mat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal );\n #else\n mat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv );\n #endif\n #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )\n tbn2[0] *= faceDirection;\n tbn2[1] *= faceDirection;\n #endif\n#endif\nvec3 nonPerturbedNormal = normal;",normal_fragment_maps:"#ifdef USE_NORMALMAP_OBJECTSPACE\n normal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;\n #ifdef FLIP_SIDED\n normal = - normal;\n #endif\n #ifdef DOUBLE_SIDED\n normal = normal * faceDirection;\n #endif\n normal = normalize( normalMatrix * normal );\n#elif defined( USE_NORMALMAP_TANGENTSPACE )\n vec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;\n mapN.xy *= normalScale;\n normal = normalize( tbn * mapN );
48\n#elif defined( USE_BUMPMAP )\n normal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection );\n#endif",normal_pars_fragment:"#ifndef FLAT_SHADED\n varying vec3 vNormal;\n #ifdef USE_TANGENT\n varying vec3 vTangent;\n varying vec3 vBitangent;\n #endif\n#endif",normal_pars_vertex:"#ifndef FLAT_SHADED\n varying vec3 vNormal;\n #ifdef USE_TANGENT\n varying vec3 vTangent;\n varying vec3 vBitangent;\n #endif\n#endif",normal_vertex:"#ifndef FLAT_SHADED\n vNormal = normalize( transformedNormal );\n #ifdef USE_TANGENT\n vTangent = normalize( transformedTangent );\n vBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );\n #endif\n#endif",normalmap_pars_fragment:"#ifdef USE_NORMALMAP\n uniform sampler2D normalMap;\n uniform vec2 normalScale;\n#endif\n#ifdef USE_NORMALMAP_OBJECTSPACE\n uniform mat3 normalMatrix;\n#endif\n#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) )\n mat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) {\n vec3 q0 = dFdx( eye_pos.xyz );\n vec3 q1 = dFdy( eye_pos.xyz );\n vec2 st0 = dFdx( uv.st );\n vec2 st1 = dFdy( uv.st );\n vec3 N = surf_norm;\n vec3 q1perp = cross( q1, N );\n vec3 q0perp = cross( N, q0 );\n vec3 T = q1perp * st0.x + q0perp * st1.x;\n vec3 B = q1perp * st0.y + q0perp * st1.y;\n float det = max( dot( T, T ), dot( B, B ) );\n float scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det );\n return mat3( T * scale, B * scale, N );\n }\n#endif",clearcoat_normal_fragment_begin:"#ifdef USE_CLEARCOAT\n vec3 clearcoatNormal = nonPerturbedNormal;\n#endif",clearcoat_normal_fragment_maps:"#ifdef USE_CLEARCOAT_NORMALMAP\n vec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0;\n clearcoatMapN.xy *= clearcoatNormalScale;\n clearcoatNormal = normalize( tbn2 * clearcoatMapN );\n#endif",clearcoat_pars_fragment:"#ifdef USE_CLEARCOATMAP\n uniform sampler2D clearcoatMap;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n uniform sampler2D clearcoatNormalMap;\n uniform vec2 clearcoatNormalScale;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n uniform sampler2D clearcoatRoughnessMap;\n#endif",iridescence_pars_fragment:"#ifdef USE_IRIDESCENCEMAP\n uniform sampler2D iridescenceMap;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n uniform sampler2D iridescenceThicknessMap;\n#endif",opaque_fragment:"#ifdef OPAQUE\ndiffuseColor.a = 1.0;\n#endif\n#ifdef USE_TRANSMISSION\ndiffuseColor.a *= material.transmissionAlpha;\n#endif\ngl_FragColor = vec4( outgoingLight, diffuseColor.a );",packing:"vec3 packNormalToRGB( const in vec3 normal ) {\n return normalize( normal ) * 0.5 + 0.5;\n}\nvec3 unpackRGBToNormal( const in vec3 rgb ) {\n return 2.0 * rgb.xyz - 1.0;\n}\nconst float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;const float ShiftRight8 = 1. / 256.;\nconst float Inv255 = 1. / 255.;\nconst vec4 PackFactors = vec4( 1.0, 256.0, 256.0 * 256.0, 256.0 * 256.0 * 256.0 );\nconst vec2 UnpackFactors2 = vec2( UnpackDownscale, 1.0 / PackFactors.g );\nconst vec3 UnpackFactors3 = vec3( UnpackDownscale / PackFactors.rg, 1.0 / PackFactors.b );\nconst vec4 UnpackFactors4 = vec4( UnpackDownscale / PackFactors.rgb, 1.0 / PackFactors.a );\nvec4 packDepthToRGBA( const in float v ) {\n if( v <= 0.0 )\n return vec4( 0., 0., 0., 0. );\n if( v >= 1.0 )\n return vec4( 1., 1., 1., 1. );\n float vuf;\n float af = modf( v * PackFactors.a, vuf );\n float bf = modf( vuf * ShiftRight8, vuf );\n float gf = modf( vuf * ShiftRight8, vuf );\n return vec4( vuf * Inv255, gf * PackUpscale, bf * PackUpscale, af );\n}\nvec3 packDepthToRGB( const in float v ) {\n if( v <= 0.0 )\n return vec3( 0., 0., 0. );\n if( v >= 1.0 )\n return vec3( 1., 1., 1. );\n float vuf;\n float bf = modf( v * PackFactors.b, vuf );\n float gf = modf( vuf * ShiftRight8, vuf );\n return vec3( vuf * Inv255, gf * PackUpscale, bf );\n}\nvec2 packDepthToRG( const in float v ) {\n if( v <= 0.0 )\n return vec2( 0., 0. );\n if( v >= 1.0 )\n return vec2( 1., 1. );\n float vuf;\n float gf = modf( v * 256., vuf );\n return vec2( vuf * Inv255, gf );\n}\nfloat unpackRGBAToDepth( const in vec4 v ) {\n return dot( v, UnpackFactors4 );\n}\nfloat unpackRGBToDepth( const in vec3 v ) {\n return dot( v, UnpackFactors3 );\n}\nfloat unpackRGToDepth( const in vec2 v ) {\n return v.r * UnpackFactors2.r + v.g * UnpackFactors2.g;\n}\nvec4 pack2HalfToRGBA( const in vec2 v ) {\n vec4 r = vec4( v.x, fract( v.x * 25
485.0 ), v.y, fract( v.y * 255.0 ) );\n return vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w );\n}\nvec2 unpackRGBATo2Half( const in vec4 v ) {\n return vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );\n}\nfloat viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {\n return ( viewZ + near ) / ( near - far );\n}\nfloat orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) {\n return depth * ( near - far ) - near;\n}\nfloat viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {\n return ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ );\n}\nfloat perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) {\n return ( near * far ) / ( ( far - near ) * depth - far );\n}",premultiplied_alpha_fragment:"#ifdef PREMULTIPLIED_ALPHA\n gl_FragColor.rgb *= gl_FragColor.a;\n#endif",project_vertex:"vec4 mvPosition = vec4( transformed, 1.0 );\n#ifdef USE_BATCHING\n mvPosition = batchingMatrix * mvPosition;\n#endif\n#ifdef USE_INSTANCING\n mvPosition = instanceMatrix * mvPosition;\n#endif\nmvPosition = modelViewMatrix * mvPosition;\ngl_Position = projectionMatrix * mvPosition;",dithering_fragment:"#ifdef DITHERING\n gl_FragColor.rgb = dithering( gl_FragColor.rgb );\n#endif",dithering_pars_fragment:"#ifdef DITHERING\n vec3 dithering( vec3 color ) {\n float grid_position = rand( gl_FragCoord.xy );\n vec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );\n dither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );\n return color + dither_shift_RGB;\n }\n#endif",roughnessmap_fragment:"float roughnessFactor = roughness;\n#ifdef USE_ROUGHNESSMAP\n vec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv );\n roughnessFactor *= texelRoughness.g;\n#endif",roughnessmap_pars_fragment:"#ifdef USE_ROUGHNESSMAP\n uniform sampler2D roughnessMap;\n#endif",shadowmap_pars_fragment:"#if NUM_SPOT_LIGHT_COORDS > 0\n varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#if NUM_SPOT_LIGHT_MAPS > 0\n uniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ];\n#endif\n#ifdef USE_SHADOWMAP\n #if NUM_DIR_LIGHT_SHADOWS > 0\n uniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];\n varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n struct DirectionalLightShadow {\n float shadowIntensity;\n float shadowBias;\n float shadowNormalBias;\n float shadowRadius;\n vec2 shadowMapSize;\n };\n uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n #endif\n #if NUM_SPOT_LIGHT_SHADOWS > 0\n uniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];\n struct SpotLightShadow {\n float shadowIntensity;\n float shadowBias;\n float shadowNormalBias;\n float shadowRadius;\n vec2 shadowMapSize;\n };\n uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n #endif\n #if NUM_POINT_LIGHT_SHADOWS > 0\n uniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];\n varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n struct PointLightShadow {\n float shadowIntensity;\n float shadowBias;\n float shadowNormalBias;\n float shadowRadius;\n vec2 shadowMapSize;\n float shadowCameraNear;\n float shadowCameraFar;\n };\n uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n #endif\n float texture2DCompare( sampler2D depths, vec2 uv, float compare ) {\n return step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );\n }\n vec2 texture2DDistribution( sampler2D shadow, vec2 uv ) {\n return unpackRGBATo2Half( texture2D( shadow, uv ) );\n }\n float VSMShadow (sampler2D shadow, vec2 uv, float compare ){\n float occlusion = 1.0;\n vec2 distribution = texture2DDistribution( shadow, uv );\n float hard_shadow = step( compare , distribution.x );\n if (hard_shadow != 1.0 ) {\n float distance = compare - distribution.x ;\n float variance = max( 0.00000, distribution.y * distribution.y );\n float softness_probability = variance / (variance + distance * distance ); softness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 ); occlusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 );\n }\n return occlusion;\n }\n float getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord ) {\n float shadow = 1.0;\n shadowCoord.xyz /= shadowCoord.w;\n shadowCoord.z += shadowBias;\n bool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0;\n bool frustumTest = inFrustum && shadowCoord.z <= 1.0;\n if ( frustumTest ) {\n #if defined( SHADOWMAP_TYPE_PCF )\n vec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n float dx0 = - texelSize.x * shadowRadius;\n float dy0 = - texelSize.y * shadowRadius;\n float dx1 = + texelSize.x * shadowRadius;\n float dy1 = + texelSize.y * shadowRadius;\n float dx2 = dx0 / 2.0;\n float dy2 = dy0 / 2.0;\n float dx3 = dx1 / 2.0;\n float dy3 = dy1 / 2.0;\n shadow = (\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\n ) * ( 1.0 / 17.0 );\n #elif defined( SHADOWMAP_TYPE_PCF_SOFT )\n vec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n float dx = texelSize.x;\n float dy = texelSize.y;\n vec2 uv = shadowCoord.xy;
48\n vec2 f = fract( uv * shadowMapSize + 0.5 );\n uv -= f * texelSize;\n shadow = (\n texture2DCompare( shadowMap, uv, shadowCoord.z ) +\n texture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) +\n texture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) +\n mix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ),\n texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ),\n f.x ) +\n mix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ),\n texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ),\n f.x ) +\n mix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ),\n texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ),\n f.y ) +\n mix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ),\n texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ),\n f.y ) +\n mix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ),\n texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ),\n f.x ),\n mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ),\n texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ),\n f.x ),\n f.y )\n ) * ( 1.0 / 9.0 );\n #elif defined( SHADOWMAP_TYPE_VSM )\n shadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z );\n #else\n shadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\n #endif\n }\n return mix( 1.0, shadow, shadowIntensity );\n }\n vec2 cubeToUV( vec3 v, float texelSizeY ) {\n vec3 absV = abs( v );\n float scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );\n absV *= scaleToCube;\n v *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );\n vec2 planar = v.xy;\n float almostATexel = 1.5 * texelSizeY;\n float almostOne = 1.0 - almostATexel;\n if ( absV.z >= almostOne ) {\n if ( v.z > 0.0 )\n planar.x = 4.0 - v.x;\n } else if ( absV.x >= almostOne ) {\n float signX = sign( v.x );\n planar.x = v.z * signX + 2.0 * signX;\n } else if ( absV.y >= almostOne ) {\n float signY = sign( v.y );\n planar.x = v.x + 2.0 * signY + 2.0;\n planar.y = v.z * signY - 2.0;\n }\n return vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );\n }\n float getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {\n float shadow = 1.0;\n vec3 lightToPosition = shadowCoord.xyz;\n \n float lightToPositionLength = length( lightToPosition );\n if ( lightToPositionLength - shadowCameraFar <= 0.0 && lightToPositionLength - shadowCameraNear >= 0.0 ) {\n float dp = ( lightToPositionLength - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear ); dp += shadowBias;\n vec3 bd3D = normalize( lightToPosition );\n vec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\n #if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM )\n vec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;\n shadow = (\n texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +\n texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +\n texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +\n texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +\n texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +\n texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +\n texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +\n texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +\n texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )\n ) * ( 1.0 / 9.0 );\n #else\n shadow = texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );\n #endif\n }\n return mix( 1.0, shadow, shadowIntensity );\n }
48\n#endif",shadowmap_pars_vertex:"#if NUM_SPOT_LIGHT_COORDS > 0\n uniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ];\n varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#ifdef USE_SHADOWMAP\n #if NUM_DIR_LIGHT_SHADOWS > 0\n uniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];\n varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n struct DirectionalLightShadow {\n float shadowIntensity;\n float shadowBias;\n float shadowNormalBias;\n float shadowRadius;\n vec2 shadowMapSize;\n };\n uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n #endif\n #if NUM_SPOT_LIGHT_SHADOWS > 0\n struct SpotLightShadow {\n float shadowIntensity;\n float shadowBias;\n float shadowNormalBias;\n float shadowRadius;\n vec2 shadowMapSize;\n };\n uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n #endif\n #if NUM_POINT_LIGHT_SHADOWS > 0\n uniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];\n varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n struct PointLightShadow {\n float shadowIntensity;\n float shadowBias;\n float shadowNormalBias;\n float shadowRadius;\n vec2 shadowMapSize;\n float shadowCameraNear;\n float shadowCameraFar;\n };\n uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n #endif\n#endif",shadowmap_vertex:"#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 )\n vec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n vec4 shadowWorldPosition;\n#endif\n#if defined( USE_SHADOWMAP )\n #if NUM_DIR_LIGHT_SHADOWS > 0\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 );\n vDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;\n }\n #pragma unroll_loop_end\n #endif\n #if NUM_POINT_LIGHT_SHADOWS > 0\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 );\n vPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;\n }\n #pragma unroll_loop_end\n #endif\n#endif\n#if NUM_SPOT_LIGHT_COORDS > 0\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) {\n shadowWorldPosition = worldPosition;\n #if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n shadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias;\n #endif\n vSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition;\n }\n #pragma unroll_loop_end\n#endif",shadowmask_pars_fragment:"float getShadowMask() {\n float shadow = 1.0;\n #ifdef USE_SHADOWMAP\n #if NUM_DIR_LIGHT_SHADOWS > 0\n DirectionalLightShadow directionalLight;\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n directionalLight = directionalLightShadows[ i ];\n shadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowIntensity, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n }\n #pragma unroll_loop_end\n #endif\n #if NUM_SPOT_LIGHT_SHADOWS > 0\n SpotLightShadow spotLight;\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n spotLight = spotLightShadows[ i ];\n shadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowIntensity, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n }\n #pragma unroll_loop_end\n #endif\n #if NUM_POINT_LIGHT_SHADOWS > 0\n PointLightShadow pointLight;\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n pointLight = pointLightShadows[ i ];\n shadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowIntensity, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;\n }\n #pragma unroll_loop_end\n #endif\n #endif\n return shadow;\n}",skinbase_vertex:"#ifdef USE_SKINNING\n mat4 boneMatX = getBoneMatrix( skinIndex.x );\n mat4 boneMatY = getBoneMatrix( skinIndex.y );\n mat4 boneMatZ = getBoneMatrix( skinIndex.z );\n mat4 boneMatW = getBoneMatrix( skinIndex.w );\n#endif",skinning_pars_vertex:"#ifdef USE_SKINNING\n uniform mat4 bindMatrix;\n uniform mat4 bindMatrixInverse;\n uniform highp sampler2D boneTexture;\n mat4 getBoneMatrix( const in float i ) {\n int size = textureSize( boneTexture, 0 ).x;\n int j = int( i ) * 4;\n int x = j % size;\n int y = j / size;\n vec4 v1 = texelFetch( boneTexture, ivec2( x, y ), 0 );\n vec4 v2 = texelFetch( boneTexture, ivec2( x + 1, y ), 0 );\n vec4 v3 = texelFetch( boneTexture, ivec2( x + 2, y ), 0 );\n vec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 );\n return mat4( v1, v2, v3, v4 );\n }\n#endif",skinning_vertex:"#ifdef USE_SKINNING\n vec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );\n vec4 skinned = vec4( 0.0 );\n skinned += boneMatX * skinVertex * skinWeight.x;\n skinned += boneMatY * skinVertex * skinWeight.y;\n skinned += boneMatZ * skinVertex * skinWeight.z;\n skinned += boneMatW * skinVertex * skinWeight.w;\n transformed = ( bindMatrixInverse * skinned ).xyz;\n#endif",skinnormal_vertex:"#ifdef USE_SKINNING\n mat4 skinMatrix = mat4( 0.0 );\n skinMatrix += skinWeight.x * boneMatX;\n skinMatrix += skinWeight.y * boneMatY;\n skinMatrix += skinWeight.z * boneMatZ;\n skinMatrix += skinWeight.w * boneMatW;\n skinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;\n objectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;\n #ifdef USE_TANGENT\n objectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n #endif\n#endif",specularmap_fragment:"float specularStrength;\n#ifdef USE_SPECULARMAP\n vec4 texelSpecular = texture2D( specularMap, vSpecularMapUv );\n specularStrength = texelSpecular.r;\n#else\n specularStrength = 1.0;\n#endif",specularmap_pars_fragment:"#ifdef USE_SPECULARMAP\n uniform sampler2D specularMap;\n#endif",tonemapping_fragment:"#if defined( TONE_MAPPING )\n gl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\n#endif",tonemapping_pars_fragment:"#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\nuniform float toneMappingExposure;
48\nvec3 LinearToneMapping( vec3 color ) {\n return saturate( toneMappingExposure * color );\n}\nvec3 ReinhardToneMapping( vec3 color ) {\n color *= toneMappingExposure;\n return saturate( color / ( vec3( 1.0 ) + color ) );\n}\nvec3 CineonToneMapping( vec3 color ) {\n color *= toneMappingExposure;\n color = max( vec3( 0.0 ), color - 0.004 );\n return pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );\n}\nvec3 RRTAndODTFit( vec3 v ) {\n vec3 a = v * ( v + 0.0245786 ) - 0.000090537;\n vec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;\n return a / b;\n}\nvec3 ACESFilmicToneMapping( vec3 color ) {\n const mat3 ACESInputMat = mat3(\n vec3( 0.59719, 0.07600, 0.02840 ), vec3( 0.35458, 0.90834, 0.13383 ),\n vec3( 0.04823, 0.01566, 0.83777 )\n );\n const mat3 ACESOutputMat = mat3(\n vec3( 1.60475, -0.10208, -0.00327 ), vec3( -0.53108, 1.10813, -0.07276 ),\n vec3( -0.07367, -0.00605, 1.07602 )\n );\n color *= toneMappingExposure / 0.6;\n color = ACESInputMat * color;\n color = RRTAndODTFit( color );\n color = ACESOutputMat * color;\n return saturate( color );\n}\nconst mat3 LINEAR_REC2020_TO_LINEAR_SRGB = mat3(\n vec3( 1.6605, - 0.1246, - 0.0182 ),\n vec3( - 0.5876, 1.1329, - 0.1006 ),\n vec3( - 0.0728, - 0.0083, 1.1187 )\n);\nconst mat3 LINEAR_SRGB_TO_LINEAR_REC2020 = mat3(\n vec3( 0.6274, 0.0691, 0.0164 ),\n vec3( 0.3293, 0.9195, 0.0880 ),\n vec3( 0.0433, 0.0113, 0.8956 )\n);\nvec3 agxDefaultContrastApprox( vec3 x ) {\n vec3 x2 = x * x;\n vec3 x4 = x2 * x2;\n return + 15.5 * x4 * x2\n - 40.14 * x4 * x\n + 31.96 * x4\n - 6.868 * x2 * x\n + 0.4298 * x2\n + 0.1191 * x\n - 0.00232;\n}\nvec3 AgXToneMapping( vec3 color ) {\n const mat3 AgXInsetMatrix = mat3(\n vec3( 0.856627153315983, 0.137318972929847, 0.11189821299995 ),\n vec3( 0.0951212405381588, 0.761241990602591, 0.0767994186031903 ),\n vec3( 0.0482516061458583, 0.101439036467562, 0.811302368396859 )\n );
48\n const mat3 AgXOutsetMatrix = mat3(\n vec3( 1.1271005818144368, - 0.1413297634984383, - 0.14132976349843826 ),\n vec3( - 0.11060664309660323, 1.157823702216272, - 0.11060664309660294 ),\n vec3( - 0.016493938717834573, - 0.016493938717834257, 1.2519364065950405 )\n );\n const float AgxMinEv = - 12.47393; const float AgxMaxEv = 4.026069;\n color *= toneMappingExposure;\n color = LINEAR_SRGB_TO_LINEAR_REC2020 * color;\n color = AgXInsetMatrix * color;\n color = max( color, 1e-10 ); color = log2( color );\n color = ( color - AgxMinEv ) / ( AgxMaxEv - AgxMinEv );\n color = clamp( color, 0.0, 1.0 );\n color = agxDefaultContrastApprox( color );\n color = AgXOutsetMatrix * color;\n color = pow( max( vec3( 0.0 ), color ), vec3( 2.2 ) );\n color = LINEAR_REC2020_TO_LINEAR_SRGB * color;\n color = clamp( color, 0.0, 1.0 );\n return color;\n}\nvec3 NeutralToneMapping( vec3 color ) {\n const float StartCompression = 0.8 - 0.04;\n const float Desaturation = 0.15;\n color *= toneMappingExposure;\n float x = min( color.r, min( color.g, color.b ) );\n float offset = x < 0.08 ? x - 6.25 * x * x : 0.04;\n color -= offset;\n float peak = max( color.r, max( color.g, color.b ) );\n if ( peak < StartCompression ) return color;\n float d = 1. - StartCompression;\n float newPeak = 1. - d * d / ( peak + d - StartCompression );\n color *= newPeak / peak;\n float g = 1. - 1. / ( Desaturation * ( peak - newPeak ) + 1. );\n return mix( color, vec3( newPeak ), g );\n}\nvec3 CustomToneMapping( vec3 color ) { return color; }",transmission_fragment:"#ifdef USE_TRANSMISSION\n material.transmission = transmission;\n material.transmissionAlpha = 1.0;\n material.thickness = thickness;\n material.attenuationDistance = attenuationDistance;\n material.attenuationColor = attenuationColor;\n #ifdef USE_TRANSMISSIONMAP\n material.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r;\n #endif\n #ifdef USE_THICKNESSMAP\n material.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g;\n #endif\n vec3 pos = vWorldPosition;\n vec3 v = normalize( cameraPosition - pos );\n vec3 n = inverseTransformDirection( normal, viewMatrix );\n vec4 transmitted = getIBLVolumeRefraction(\n n, v, material.roughness, material.diffuseColor, material.specularColor, material.specularF90,\n pos, modelMatrix, viewMatrix, projectionMatrix, material.dispersion, material.ior, material.thickness,\n material.attenuationColor, material.attenuationDistance );\n material.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission );\n totalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission );\n#endif",transmission_pars_fragment:"#ifdef USE_TRANSMISSION\n uniform float transmission;\n uniform float thickness;\n uniform float attenuationDistance;\n uniform vec3 attenuationColor;\n #ifdef USE_TRANSMISSIONMAP\n uniform sampler2D transmissionMap;\n #endif\n #ifdef USE_THICKNESSMAP\n uniform sampler2D thicknessMap;\n #endif\n uniform vec2 transmissionSamplerSize;\n uniform sampler2D transmissionSamplerMap;\n uniform mat4 modelMatrix;\n uniform mat4 projectionMatrix;\n varying vec3 vWorldPosition;\n float w0( float a ) {\n return ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 );\n }\n float w1( float a ) {\n return ( 1.0 / 6.0 ) * ( a * a * ( 3.0 * a - 6.0 ) + 4.0 );\n }\n float w2( float a ){\n return ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 );\n }\n float w3( float a ) {\n return ( 1.0 / 6.0 ) * ( a * a * a );\n }\n float g0( float a ) {\n return w0( a ) + w1( a );\n }\n float g1( float a ) {\n return w2( a ) + w3( a );\n }\n float h0( float a ) {\n return - 1.0 + w1( a ) / ( w0( a ) + w1( a ) );\n }\n float h1( float a ) {\n return 1.0 + w3( a ) / ( w2( a ) + w3( a ) );\n }\n vec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, float lod ) {\n uv = uv * texelSize.zw + 0.5;\n vec2 iuv = floor( uv );\n vec2 fuv = fract( uv );\n float g0x = g0( fuv.x );\n float g1x = g1( fuv.x );\n float h0x = h0( fuv.x );\n float h1x = h1( fuv.x );\n float h0y = h0( fuv.y );\n float h1y = h1( fuv.y );\n vec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n vec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n vec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n vec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n return g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) +\n g1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) );\n }\n vec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) {\n vec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) );\n vec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) );\n vec2 fLodSizeInv = 1.0 / fLodSize;\n vec2 cLodSizeInv = 1.0 / cLodSize;\n vec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), floor( lod ) );\n vec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), ceil( lod ) );\n return mix( fSample, cSample, fract( lod ) );\n }\n vec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) {\n vec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior );\n vec3 modelScale;\n modelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) );\n modelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) );\n modelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) );\n return normalize( refractionVector ) * thickness * modelScale;\n }\n float applyIorToRoughness( const in float roughness, const in float ior ) {\n return roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 );\n }\n vec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) {\n float lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior );\n return textureBicubic( transmissionSamplerMap, fragCoord.xy, lod );\n }\n vec3 volumeAttenuation( const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) {\n if ( isinf( attenuationDistance ) ) {\n return vec3( 1.0 );\n } else {\n vec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance;\n vec3 transmittance = exp( - attenuationCoefficient * transmissionDistance ); return transmittance;\n }\n }\n vec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor,\n const in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix,\n const in mat4 viewMatrix, const in mat4 projMatrix, const in float dispersion, const in float ior, const in float thickness,\n const in vec3 attenuationColor, const in float attenuationDistance ) {\n vec4 transmittedLight;\n vec3 transmittance;\n #ifdef USE_DISPERSION\n float halfSpread = ( ior - 1.0 ) * 0.025 * dispersion;\n vec3 iors = vec3( ior - halfSpread, ior, ior + halfSpread );\n for ( int i = 0; i < 3; i ++ ) {\n vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, iors[ i ], modelMatrix );\n vec3 refractedRayExit = position + transmissionRay;\n vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );\n vec2 refractionCoords = ndcPos.xy / ndcPos.w;\n refractionCoords += 1.0;\n refractionCoords /= 2.0;\n vec4 transmissionSample = getTransmissionSample( refractionCoords, roughness, iors[ i ] );\n transmittedLight[ i ] = transmissionSample[ i ];\n transmittedLight.a += transmissionSample.a;\n transmittance[ i ] = diffuseColor[ i ] * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance )[ i ];\n }\n transmittedLight.a /= 3.0;\n #else\n vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix );\n vec3 refractedRayExit = position + transmissionRay;\n vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );\n vec2 refractionCoords = ndcPos.xy / ndcPos.w;\n refractionCoords += 1.0;\n refractionCoords /= 2.0;\n transmittedLight = getTransmissionSample( refractionCoords, roughness, ior );\n transmittance = diffuseColor * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance );\n #endif\n vec3 attenuatedColor = transmittance * transmittedLight.rgb;\n vec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness );\n float transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0;\n return vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor );\n }\n#endif",uv_pars_fragment:"#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n varying vec2 vUv;\n#endif\n#ifdef USE_MAP\n varying vec2 vMapUv;
48\n#endif\n#ifdef USE_ALPHAMAP\n varying vec2 vAlphaMapUv;\n#endif\n#ifdef USE_LIGHTMAP\n varying vec2 vLightMapUv;\n#endif\n#ifdef USE_AOMAP\n varying vec2 vAoMapUv;\n#endif\n#ifdef USE_BUMPMAP\n varying vec2 vBumpMapUv;\n#endif\n#ifdef USE_NORMALMAP\n varying vec2 vNormalMapUv;\n#endif\n#ifdef USE_EMISSIVEMAP\n varying vec2 vEmissiveMapUv;\n#endif\n#ifdef USE_METALNESSMAP\n varying vec2 vMetalnessMapUv;\n#endif\n#ifdef USE_ROUGHNESSMAP\n varying vec2 vRoughnessMapUv;\n#endif\n#ifdef USE_ANISOTROPYMAP\n varying vec2 vAnisotropyMapUv;\n#endif\n#ifdef USE_CLEARCOATMAP\n varying vec2 vClearcoatMapUv;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n varying vec2 vClearcoatNormalMapUv;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n varying vec2 vClearcoatRoughnessMapUv;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n varying vec2 vIridescenceMapUv;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n varying vec2 vIridescenceThicknessMapUv;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n varying vec2 vSheenColorMapUv;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n varying vec2 vSheenRoughnessMapUv;\n#endif\n#ifdef USE_SPECULARMAP\n varying vec2 vSpecularMapUv;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n varying vec2 vSpecularColorMapUv;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n varying vec2 vSpecularIntensityMapUv;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n uniform mat3 transmissionMapTransform;\n varying vec2 vTransmissionMapUv;\n#endif\n#ifdef USE_THICKNESSMAP\n uniform mat3 thicknessMapTransform;\n varying vec2 vThicknessMapUv;\n#endif",uv_pars_vertex:"#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n varying vec2 vUv;\n#endif\n#ifdef USE_MAP\n uniform mat3 mapTransform;\n varying vec2 vMapUv;\n#endif\n#ifdef USE_ALPHAMAP\n uniform mat3 alphaMapTransform;\n varying vec2 vAlphaMapUv;\n#endif\n#ifdef USE_LIGHTMAP\n uniform mat3 lightMapTransform;\n varying vec2 vLightMapUv;\n#endif\n#ifdef USE_AOMAP\n uniform mat3 aoMapTransform;\n varying vec2 vAoMapUv;\n#endif\n#ifdef USE_BUMPMAP\n uniform mat3 bumpMapTransform;\n varying vec2 vBumpMapUv;\n#endif\n#ifdef USE_NORMALMAP\n uniform mat3 normalMapTransform;\n varying vec2 vNormalMapUv;\n#endif\n#ifdef USE_DISPLACEMENTMAP\n uniform mat3 displacementMapTransform;\n varying vec2 vDisplacementMapUv;\n#endif\n#ifdef USE_EMISSIVEMAP\n uniform mat3 emissiveMapTransform;\n varying vec2 vEmissiveMapUv;\n#endif\n#ifdef USE_METALNESSMAP\n uniform mat3 metalnessMapTransform;\n varying vec2 vMetalnessMapUv;\n#endif\n#ifdef USE_ROUGHNESSMAP\n uniform mat3 roughnessMapTransform;\n varying vec2 vRoughnessMapUv;\n#endif\n#ifdef USE_ANISOTROPYMAP\n uniform mat3 anisotropyMapTransform;\n varying vec2 vAnisotropyMapUv;\n#endif\n#ifdef USE_CLEARCOATMAP\n uniform mat3 clearcoatMapTransform;\n varying vec2 vClearcoatMapUv;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n uniform mat3 clearcoatNormalMapTransform;\n varying vec2 vClearcoatNormalMapUv;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n uniform mat3 clearcoatRoughnessMapTransform;\n varying vec2 vClearcoatRoughnessMapUv;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n uniform mat3 sheenColorMapTransform;\n varying vec2 vSheenColorMapUv;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n uniform mat3 sheenRoughnessMapTransform;\n varying vec2 vSheenRoughnessMapUv;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n uniform mat3 iridescenceMapTransform;\n varying vec2 vIridescenceMapUv;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n uniform mat3 iridescenceThicknessMapTransform;\n varying vec2 vIridescenceThicknessMapUv;\n#endif\n#ifdef USE_SPECULARMAP\n uniform mat3 specularMapTransform;\n varying vec2 vSpecularMapUv;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n uniform mat3 specularColorMapTransform;\n varying vec2 vSpecularColorMapUv;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n uniform mat3 specularIntensityMapTransform;\n varying vec2 vSpecularIntensityMapUv;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n uniform mat3 transmissionMapTransform;\n varying vec2 vTransmissionMapUv;\n#endif\n#ifdef USE_THICKNESSMAP\n uniform mat3 thicknessMapTransform;\n varying vec2 vThicknessMapUv;\n#endif",uv_vertex:"#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n vUv = vec3( uv, 1 ).xy;\n#endif\n#ifdef USE_MAP\n vMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ALPHAMAP\n vAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_LIGHTMAP\n vLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_AOMAP\n vAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_BUMPMAP\n vBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_NORMALMAP\n vNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_DISPLACEMENTMAP\n vDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_EMISSIVEMAP\n vEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_METALNESSMAP\n vMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ROUGHNESSMAP\n vRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ANISOTROPYMAP\n vAnisotropyMapUv = ( anisotropyMapTransform * vec3( ANISOTROPYMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOATMAP\n vClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n vClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n vClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy;
48\n#endif\n#ifdef USE_IRIDESCENCEMAP\n vIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n vIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n vSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n vSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULARMAP\n vSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n vSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n vSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n vTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_THICKNESSMAP\n vThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy;\n#endif",worldpos_vertex:"#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0\n vec4 worldPosition = vec4( transformed, 1.0 );\n #ifdef USE_BATCHING\n worldPosition = batchingMatrix * worldPosition;\n #endif\n #ifdef USE_INSTANCING\n worldPosition = instanceMatrix * worldPosition;\n #endif\n worldPosition = modelMatrix * worldPosition;\n#endif",background_vert:"varying vec2 vUv;\nuniform mat3 uvTransform;\nvoid main() {\n vUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n gl_Position = vec4( position.xy, 1.0, 1.0 );\n}",background_frag:"uniform sampler2D t2D;\nuniform float backgroundIntensity;\nvarying vec2 vUv;\nvoid main() {\n vec4 texColor = texture2D( t2D, vUv );\n #ifdef DECODE_VIDEO_TEXTURE\n texColor = vec4( mix( pow( texColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), texColor.rgb * 0.0773993808, vec3( lessThanEqual( texColor.rgb, vec3( 0.04045 ) ) ) ), texColor.w );\n #endif\n texColor.rgb *= backgroundIntensity;\n gl_FragColor = texColor;\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n}",backgroundCube_vert:"varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n vWorldDirection = transformDirection( position, modelMatrix );\n #include <begin_vertex>\n #include <project_vertex>\n gl_Position.z = gl_Position.w;\n}",backgroundCube_frag:"#ifdef ENVMAP_TYPE_CUBE\n uniform samplerCube envMap;\n#elif defined( ENVMAP_TYPE_CUBE_UV )\n uniform sampler2D envMap;\n#endif\nuniform float flipEnvMap;\nuniform float backgroundBlurriness;\nuniform float backgroundIntensity;\nuniform mat3 backgroundRotation;\nvarying vec3 vWorldDirection;\n#include <cube_uv_reflection_fragment>\nvoid main() {\n #ifdef ENVMAP_TYPE_CUBE\n vec4 texColor = textureCube( envMap, backgroundRotation * vec3( flipEnvMap * vWorldDirection.x, vWorldDirection.yz ) );\n #elif defined( ENVMAP_TYPE_CUBE_UV )\n vec4 texColor = textureCubeUV( envMap, backgroundRotation * vWorldDirection, backgroundBlurriness );\n #else\n vec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n #endif\n texColor.rgb *= backgroundIntensity;\n gl_FragColor = texColor;\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n}",cube_vert:"varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n vWorldDirection = transformDirection( position, modelMatrix );\n #include <begin_vertex>\n #include <project_vertex>\n gl_Position.z = gl_Position.w;\n}",cube_frag:"uniform samplerCube tCube;\nuniform float tFlip;\nuniform float opacity;\nvarying vec3 vWorldDirection;\nvoid main() {\n vec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) );\n gl_FragColor = texColor;\n gl_FragColor.a *= opacity;\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n}",depth_vert:"#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvarying vec2 vHighPrecisionZW;\nvoid main() {\n #include <uv_vertex>\n #include <batching_vertex>\n #include <skinbase_vertex>\n #include <morphinstance_vertex>\n #ifdef USE_DISPLACEMENTMAP\n #include <beginnormal_vertex>\n #include <morphnormal_vertex>\n #include <skinnormal_vertex>\n #endif\n #include <begin_vertex>\n #include <morphtarget_vertex>\n #include <skinning_vertex>\n #include <displacementmap_vertex>\n #include <project_vertex>\n #include <logdepthbuf_vertex>\n #include <clipping_planes_vertex>\n vHighPrecisionZW = gl_Position.zw;\n}",depth_frag:"#if DEPTH_PACKING == 3200\n uniform float opacity;\n#endif\n#include <common>\n#include <packing>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvarying vec2 vHighPrecisionZW;\nvoid main() {\n vec4 diffuseColor = vec4( 1.0 );\n #include <clipping_planes_fragment>\n #if DEPTH_PACKING == 3200\n diffuseColor.a = opacity;\n #endif\n #include <map_fragment>\n #include <alphamap_fragment>\n #include <alphatest_fragment>\n #include <alphahash_fragment>\n #include <logdepthbuf_fragment>\n float fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5;\n #if DEPTH_PACKING == 3200\n gl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );\n #elif DEPTH_PACKING == 3201\n gl_FragColor = packDepthToRGBA( fragCoordZ );\n #elif DEPTH_PACKING == 3202\n gl_FragColor = vec4( packDepthToRGB( fragCoordZ ), 1.0 );\n #elif DEPTH_PACKING == 3203\n gl_FragColor = vec4( packDepthToRG( fragCoordZ ), 0.0, 1.0 );\n #endif\n}",distanceRGBA_vert:"#define DISTANCE\nvarying vec3 vWorldPosition;\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n #include <uv_vertex>\n #include <batching_vertex>\n #include <skinbase_vertex>\n #include <morphinstance_vertex>\n #ifdef USE_DISPLACEMENTMAP\n #include <beginnormal_vertex>\n #include <morphnormal_vertex>\n #include <skinnormal_vertex>\n #endif\n #include <begin_vertex>\n #include <morphtarget_vertex>\n #include <skinning_vertex>\n #include <displacementmap_vertex>\n #include <project_vertex>\n #include <worldpos_vertex>\n #include <clipping_planes_vertex>\n vWorldPosition = worldPosition.xyz;\n}",distanceRGBA_frag:"#define DISTANCE\nuniform vec3 referencePosition;\nuniform float nearDistance;\nuniform float farDistance;\nvarying vec3 vWorldPosition;\n#include <common>\n#include <packing>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main () {\n vec4 diffuseColor = vec4( 1.0 );\n #include <clipping_planes_fragment>\n #include <map_fragment>\n #include <alphamap_fragment>\n #include <alphatest_fragment>\n #include <alphahash_fragment>\n float dist = length( vWorldPosition - referencePosition );\n dist = ( dist - nearDistance ) / ( farDistance - nearDistance );\n dist = saturate( dist );\n gl_FragColor = packDepthToRGBA( dist );\n}",equirect_vert:"varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n vWorldDirection = transformDirection( position, modelMatrix );\n #include <begin_vertex>\n #include <project_vertex>\n}",equirect_frag:"uniform sampler2D tEquirect;\nvarying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n vec3 direction = normalize( vWorldDirection );\n vec2 sampleUV = equirectUv( direction );\n gl_FragColor = texture2D( tEquirect, sampleUV );\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n}",linedashed_vert:"uniform float scale;\nattribute float lineDistance;\nvarying float vLineDistance;\n#include <common>\n#include <uv_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n vLineDistance = scale * lineDistance;\n #include <uv_vertex>\n #include <color_vertex>\n #include <morphinstance_vertex>\n #include <morphcolor_vertex>\n #include <begin_vertex>\n #include <morphtarget_vertex>\n #include <project_vertex>\n #include <logdepthbuf_vertex>\n #include <clipping_planes_vertex>\n #include <fog_vertex>\n}",linedashed_frag:"uniform vec3 diffuse;\nuniform float opacity;\nuniform float dashSize;\nuniform float totalSize;\nvarying float vLineDistance;\n#include <common>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n vec4 diffuseColor = vec4( diffuse, opacity );\n #include <clipping_planes_fragment>\n if ( mod( vLineDistance, totalSize ) > dashSize ) {\n discard;\n }\n vec3 outgoingLight = vec3( 0.0 );\n #include <logdepthbuf_fragment>\n #include <map_fragment>\n #include <color_fragment>\n outgoingLight = diffuseColor.rgb;\n #include <opaque_fragment>\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n #include <fog_fragment>\n #include <premultiplied_alpha_fragment>\n}",meshbasic_vert:"#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n #include <uv_vertex>\n #include <color_vertex>\n #include <morphinstance_vertex>\n #include <morphcolor_vertex>\n #include <batching_vertex>\n #if defined ( USE_ENVMAP ) || defined ( USE_SKINNING )\n #include <beginnormal_vertex>\n #include <morphnormal_vertex>\n #include <skinbase_vertex>\n #include <skinnormal_vertex>\n #include <defaultnormal_vertex>\n #endif\n #include <begin_vertex>\n #include <morphtarget_vertex>\n #include <skinning_vertex>\n #include <project_vertex>\n #include <logdepthbuf_vertex>\n #include <clipping_planes_vertex>\n #include <worldpos_vertex>\n #include <envmap_vertex>\n #include <fog_vertex>\n}",meshbasic_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#ifndef FLAT_SHADED\n varying vec3 vNormal;\n#endif\n#include <common>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n vec4 diffuseColor = vec4( diffuse, opacity );\n #include <clipping_planes_fragment>\n #include <logdepthbuf_fragment>\n #include <map_fragment>\n #include <color_fragment>\n #include <alphamap_fragment>\n #include <alphatest_fragment>\n #include <alphahash_fragment>\n #include <specularmap_fragment>\n ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n #ifdef USE_LIGHTMAP\n vec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n reflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI;\n #else\n reflectedLight.indirectDiffuse += vec3( 1.0 );\n #endif\n #include <aomap_fragment>\n reflectedLight.indirectDiffuse *= diffuseColor.rgb;\n vec3 outgoingLight = reflectedLight.indirectDiffuse;\n #include <envmap_fragment>\n #include <opaque_fragment>\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n #include <fog_fragment>\n #include <premultiplied_alpha_fragment>\n #include <dithering_fragment>\n}",meshlambert_vert:"#define LAMBERT\nvarying vec3 vViewPosition;\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n #include <uv_vertex>\n #include <color_vertex>\n #include <morphinstance_vertex>\n #include <morphcolor_vertex>\n #include <batching_vertex>\n #include <beginnormal_vertex>\n #include <morphnormal_vertex>\n #include <skinbase_vertex>\n #include <skinnormal_vertex>\n #include <defaultnormal_vertex>\n #include <normal_vertex>\n #include <begin_vertex>\n #include <morphtarget_vertex>\n #include <skinning_vertex>\n #include <displacementmap_vertex>\n #include <project_vertex>\n #include <logdepthbuf_vertex>\n #include <clipping_planes_vertex>\n vViewPosition = - mvPosition.xyz;\n #include <worldpos_vertex>\n #include <envmap_vertex>\n #include <shadowmap_vertex>\n #include <fog_vertex>\n}",meshlambert_frag:"#define LAMBERT\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_lambert_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n vec4 diffuseColor = vec4( diffuse, opacity );\n #include <clipping_planes_fragment>\n ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n vec3 totalEmissiveRadiance = emissive;\n #include <logdepthbuf_fragment>\n #include <map_fragment>\n #include <color_fragment>\n #include <alphamap_fragment>\n #include <alphatest_fragment>\n #include <alphahash_fragment>\n #include <specularmap_fragment>\n #include <normal_fragment_begin>\n #include <normal_fragment_maps>\n #include <emissivemap_fragment>\n #include <lights_lambert_fragment>\n #include <lights_fragment_begin>\n #include <lights_fragment_maps>\n #include <lights_fragment_end>\n #include <aomap_fragment>\n vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n #include <envmap_fragment>\n #include <opaque_fragment>\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n #include <fog_fragment>\n #include <premultiplied_alpha_fragment>\n #include <dithering_fragment>\n}",meshmatcap_vert:"#define MATCAP\nvarying vec3 vViewPosition;\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <color_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n #include <uv_vertex>\n #include <color_vertex>\n #include <morphinstance_vertex>\n #include <morphcolor_vertex>\n #include <batching_vertex>\n #include <beginnormal_vertex>\n #include <morphnormal_vertex>\n #include <skinbase_vertex>\n #include <skinnormal_vertex>\n #include <defaultnormal_vertex>\n #include <normal_vertex>\n #include <begin_vertex>\n #include <morphtarget_vertex>\n #include <skinning_vertex>\n #include <displacementmap_vertex>\n #include
48<project_vertex>\n #include <logdepthbuf_vertex>\n #include <clipping_planes_vertex>\n #include <fog_vertex>\n vViewPosition = - mvPosition.xyz;\n}",meshmatcap_frag:"#define MATCAP\nuniform vec3 diffuse;\nuniform float opacity;\nuniform sampler2D matcap;\nvarying vec3 vViewPosition;\n#include <common>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <fog_pars_fragment>\n#include <normal_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n vec4 diffuseColor = vec4( diffuse, opacity );\n #include <clipping_planes_fragment>\n #include <logdepthbuf_fragment>\n #include <map_fragment>\n #include <color_fragment>\n #include <alphamap_fragment>\n #include <alphatest_fragment>\n #include <alphahash_fragment>\n #include <normal_fragment_begin>\n #include <normal_fragment_maps>\n vec3 viewDir = normalize( vViewPosition );\n vec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) );\n vec3 y = cross( viewDir, x );\n vec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5;\n #ifdef USE_MATCAP\n vec4 matcapColor = texture2D( matcap, uv );\n #else\n vec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 );\n #endif\n vec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;\n #include <opaque_fragment>\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n #include <fog_fragment>\n #include <premultiplied_alpha_fragment>\n #include <dithering_fragment>\n}",meshnormal_vert:"#define NORMAL\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n varying vec3 vViewPosition;\n#endif\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n #include <uv_vertex>\n #include <batching_vertex>\n #include <beginnormal_vertex>\n #include <morphinstance_vertex>\n #include <morphnormal_vertex>\n #include <skinbase_vertex>\n #include <skinnormal_vertex>\n #include <defaultnormal_vertex>\n #include <normal_vertex>\n #include <begin_vertex>\n #include <morphtarget_vertex>\n #include <skinning_vertex>\n #include <displacementmap_vertex>\n #include <project_vertex>\n #include <logdepthbuf_vertex>\n #include <clipping_planes_vertex>\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n vViewPosition = - mvPosition.xyz;\n#endif\n}",meshnormal_frag:"#define NORMAL\nuniform float opacity;\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n varying vec3 vViewPosition;\n#endif\n#include <packing>\n#include <uv_pars_fragment>\n#include <normal_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n vec4 diffuseColor = vec4( 0.0, 0.0, 0.0, opacity );\n #include <clipping_planes_fragment>\n #include <logdepthbuf_fragment>\n #include <normal_fragment_begin>\n #include <normal_fragment_maps>\n gl_FragColor = vec4( packNormalToRGB( normal ), diffuseColor.a );\n #ifdef OPAQUE\n gl_FragColor.a = 1.0;\n #endif\n}",meshphong_vert:"#define PHONG\nvarying vec3 vViewPosition;\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n #include <uv_vertex>\n #include <color_vertex>\n #include <morphcolor_vertex>\n #include <batching_vertex>\n #include <beginnormal_vertex>\n #include <morphinstance_vertex>\n #include <morphnormal_vertex>\n #include <skinbase_vertex>\n #include <skinnormal_vertex>\n #include <defaultnormal_vertex>\n #include <normal_vertex>\n #include <begin_vertex>\n #include <morphtarget_vertex>\n #include <skinning_vertex>\n #include <displacementmap_vertex>\n #include <project_vertex>\n #include <logdepthbuf_vertex>\n #include <clipping_planes_vertex>\n vViewPosition = - mvPosition.xyz;\n #include <worldpos_vertex>\n #include <envmap_vertex>\n #include <shadowmap_vertex>\n #include <fog_vertex>\n}",meshphong_frag:"#define PHONG\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform vec3 specular;\nuniform float shininess;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_phong_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n vec4 diffuseColor = vec4( diffuse, opacity );\n #include <clipping_planes_fragment>\n ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n vec3 totalEmissiveRadiance = emissive;\n #include <logdepthbuf_fragment>\n #include <map_fragment>\n #include <color_fragment>\n #include <alphamap_fragment>\n #include <alphatest_fragment>\n #include <alphahash_fragment>\n #include <specularmap_fragment>\n #include <normal_fragment_begin>\n #include <normal_fragment_maps>\n #include <emissivemap_fragment>\n #include <lights_phong_fragment>\n #include <lights_fragment_begin>\n #include <lights_fragment_maps>\n #include <lights_fragment_end>\n #include <aomap_fragment>\n vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n #include <envmap_fragment>\n #include <opaque_fragment>\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n #include <fog_fragment>\n #include <premultiplied_alpha_fragment>\n #include <dithering_fragment>\n}",meshphysical_vert:"#define STANDARD\nvarying vec3 vViewPosition;\n#ifdef USE_TRANSMISSION\n varying vec3 vWorldPosition;\n#endif\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n #include <uv_vertex>\n #include <color_vertex>\n #include <morphinstance_vertex>\n #include <morphcolor_vertex>\n #include <batching_vertex>\n #include <beginnormal_vertex>\n #include <morphnormal_vertex>\n #include <skinbase_vertex>\n #include <skinnormal_vertex>\n #include <defaultnormal_vertex>\n #include <normal_vertex>\n #include <begin_vertex>\n #include <morphtarget_vertex>\n #include <skinning_vertex>\n #include <displacementmap_vertex>\n #include <project_vertex>\n #include <logdepthbuf_vertex>\n #include <clipping_planes_vertex>\n vViewPosition = - mvPosition.xyz;\n #include <worldpos_vertex>\n #include <shadowmap_vertex>\n #include <fog_vertex>\n#ifdef USE_TRANSMISSION\n vWorldPosition = worldPosition.xyz;\n#endif\n}",meshphysical_frag:"#define STANDARD\n#ifdef PHYSICAL\n #define IOR\n #define USE_SPECULAR\n#endif\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float roughness;\nuniform float metalness;\nuniform float opacity;\n#ifdef IOR\n uniform float ior;\n#endif\n#ifdef USE_SPECULAR\n uniform float specularIntensity;\n uniform vec3 specularColor;\n #ifdef USE_SPECULAR_COLORMAP\n uniform sampler2D specularColorMap;\n #endif\n #ifdef USE_SPECULAR_INTENSITYMAP\n uniform sampler2D specularIntensityMap;\n #endif\n#endif\n#ifdef USE_CLEARCOAT\n uniform float clearcoat;
48\n uniform float clearcoatRoughness;\n#endif\n#ifdef USE_DISPERSION\n uniform float dispersion;\n#endif\n#ifdef USE_IRIDESCENCE\n uniform float iridescence;\n uniform float iridescenceIOR;\n uniform float iridescenceThicknessMinimum;\n uniform float iridescenceThicknessMaximum;\n#endif\n#ifdef USE_SHEEN\n uniform vec3 sheenColor;\n uniform float sheenRoughness;\n #ifdef USE_SHEEN_COLORMAP\n uniform sampler2D sheenColorMap;\n #endif\n #ifdef USE_SHEEN_ROUGHNESSMAP\n uniform sampler2D sheenRoughnessMap;\n #endif\n#endif\n#ifdef USE_ANISOTROPY\n uniform vec2 anisotropyVector;\n #ifdef USE_ANISOTROPYMAP\n uniform sampler2D anisotropyMap;\n #endif\n#endif\nvarying vec3 vViewPosition;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <iridescence_fragment>\n#include <cube_uv_reflection_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_physical_pars_fragment>\n#include <fog_pars_fragment>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_physical_pars_fragment>\n#include <transmission_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <clearcoat_pars_fragment>\n#include <iridescence_pars_fragment>\n#include <roughnessmap_pars_fragment>\n#include <metalnessmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n vec4 diffuseColor = vec4( diffuse, opacity );\n #include <clipping_planes_fragment>\n ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n vec3 totalEmissiveRadiance = emissive;\n #include <logdepthbuf_fragment>\n #include <map_fragment>\n #include <color_fragment>\n #include <alphamap_fragment>\n #include <alphatest_fragment>\n #include <alphahash_fragment>\n #include <roughnessmap_fragment>\n #include <metalnessmap_fragment>\n #include <normal_fragment_begin>\n #include <normal_fragment_maps>\n #include <clearcoat_normal_fragment_begin>\n #include <clearcoat_normal_fragment_maps>\n #include <emissivemap_fragment>\n #include <lights_physical_fragment>\n #include <lights_fragment_begin>\n #include <lights_fragment_maps>\n #include <lights_fragment_end>\n #include <aomap_fragment>\n vec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse;\n vec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular;\n #include <transmission_fragment>\n vec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance;\n #ifdef USE_SHEEN\n float sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor );\n outgoingLight = outgoingLight * sheenEnergyComp + sheenSpecularDirect + sheenSpecularIndirect;\n #endif\n #ifdef USE_CLEARCOAT\n float dotNVcc = saturate( dot( geometryClearcoatNormal, geometryViewDir ) );\n vec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc );\n outgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + ( clearcoatSpecularDirect + clearcoatSpecularIndirect ) * material.clearcoat;
48\n #endif\n #include <opaque_fragment>\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n #include <fog_fragment>\n #include <premultiplied_alpha_fragment>\n #include <dithering_fragment>\n}",meshtoon_vert:"#define TOON\nvarying vec3 vViewPosition;\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n #include <uv_vertex>\n #include <color_vertex>\n #include <morphinstance_vertex>\n #include <morphcolor_vertex>\n #include <batching_vertex>\n #include <beginnormal_vertex>\n #include <morphnormal_vertex>\n #include <skinbase_vertex>\n #include <skinnormal_vertex>\n #include <defaultnormal_vertex>\n #include <normal_vertex>\n #include <begin_vertex>\n #include <morphtarget_vertex>\n #include <skinning_vertex>\n #include <displacementmap_vertex>\n #include <project_vertex>\n #include <logdepthbuf_vertex>\n #include <clipping_planes_vertex>\n vViewPosition = - mvPosition.xyz;\n #include <worldpos_vertex>\n #include <shadowmap_vertex>\n #include <fog_vertex>\n}",meshtoon_frag:"#define TOON\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <gradientmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_toon_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n vec4 diffuseColor = vec4( diffuse, opacity );\n #include <clipping_planes_fragment>\n ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n vec3 totalEmissiveRadiance = emissive;\n #include <logdepthbuf_fragment>\n #include <map_fragment>\n #include <color_fragment>\n #include <alphamap_fragment>\n #include <alphatest_fragment>\n #include <alphahash_fragment>\n #include <normal_fragment_begin>\n #include <normal_fragment_maps>\n #include <emissivemap_fragment>\n #include <lights_toon_fragment>\n #include <lights_fragment_begin>\n #include <lights_fragment_maps>\n #include <lights_fragment_end>\n #include <aomap_fragment>\n vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n #include <opaque_fragment>\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n #include <fog_fragment>\n #include <premultiplied_alpha_fragment>\n #include <dithering_fragment>\n}",points_vert:"uniform float size;\nuniform float scale;\n#include <common>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\n#ifdef USE_POINTS_UV\n varying vec2 vUv;\n uniform mat3 uvTransform;\n#endif\nvoid main() {\n #ifdef USE_POINTS_UV\n vUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n #endif\n #include <color_vertex>\n #include <morphinstance_vertex>\n #include <morphcolor_vertex>\n #include <begin_vertex>\n #include <morphtarget_vertex>\n #include <project_vertex>\n gl_PointSize = size;\n #ifdef USE_SIZEATTENUATION\n bool isPerspective = isPerspectiveMatrix( projectionMatrix );\n if ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z );\n #endif\n #include <logdepthbuf_vertex>\n #include <clipping_planes_vertex>\n #include <worldpos_vertex>\n #include <fog_vertex>\n}",points_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <color_pars_fragment>\n#include <map_particle_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n vec4 diffuseColor = vec4( diffuse, opacity );\n #include <clipping_planes_fragment>\n vec3 outgoingLight = vec3( 0.0 );\n #include <logdepthbuf_fragment>\n #include <map_particle_fragment>\n #include <color_fragment>\n #include <alphatest_fragment>\n #include <alphahash_fragment>\n outgoingLight = diffuseColor.rgb;\n #include <opaque_fragment>\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n #include <fog_fragment>\n #include <premultiplied_alpha_fragment>\n}",shadow_vert:"#include <common>\n#include <batching_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <shadowmap_pars_vertex>\nvoid main() {\n #include <batching_vertex>\n #include <beginnormal_vertex>\n #include <morphinstance_vertex>\n #include <morphnormal_vertex>\n #include <skinbase_vertex>\n #include <skinnormal_vertex>\n #include <defaultnormal_vertex>\n #include <begin_vertex>\n #include <morphtarget_vertex>\n #include <skinning_vertex>\n #include <project_vertex>\n #include <logdepthbuf_vertex>\n #include <worldpos_vertex>\n #include <shadowmap_vertex>\n #include <fog_vertex>\n}",shadow_frag:"uniform vec3 color;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <logdepthbuf_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <shadowmask_pars_fragment>\nvoid main() {\n #include <logdepthbuf_fragment>\n gl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n #include <fog_fragment>\n}",sprite_vert:"uniform float rotation;\nuniform vec2 center;\n#include <common>\n#include <uv_pars_vertex>\n#include <fog_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n #include <uv_vertex>\n vec4 mvPosition = modelViewMatrix[ 3 ];\n vec2 scale = vec2( length( modelMatrix[ 0 ].xyz ), length( modelMatrix[ 1 ].xyz ) );\n #ifndef USE_SIZEATTENUATION\n bool isPerspective = isPerspectiveMatrix( projectionMatrix );\n if ( isPerspective ) scale *= - mvPosition.z;\n #endif\n vec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale;\n vec2 rotatedPosition;\n rotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;\n rotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;\n mvPosition.xy += rotatedPosition;\n gl_Position = projectionMatrix * mvPosition;\n #include <logdepthbuf_vertex>\n #include <clipping_planes_vertex>\n #include <fog_vertex>\n}",sprite_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n vec4 diffuseColor = vec4( diffuse, opacity );\n #include <clipping_planes_fragment>\n vec3 outgoingLight = vec3( 0.0 );\n #include <logdepthbuf_fragment>\n #include <map_fragment>\n #include <alphamap_fragment>\n #include <alphatest_fragment>\n #include <alphahash_fragment>\n outgoingLight = diffuseColor.rgb;\n #include <opaque_fragment>\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n #include <fog_fragment>\n}"},sN={common:{diffuse:{value:new iR(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new t5},alphaMap:{value:null},alphaMapTransform:{value:new t5},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new t5}},envmap:{envMap:{value:null},envMapRotation:{value:new t5},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new t5}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new t5}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new t5},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new t5},normalScale:{value:new tJ(1,1)}}
vendor: 7,652 bytes, line 48
48,displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new t5},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new t5}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new t5}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new t5}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new iR(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new iR(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new t5},alphaTest:{value:0},uvTransform:{value:new t5}},sprite:{diffuse:{value:new iR(16777215)},opacity:{value:1},center:{value:new tJ(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new t5},alphaMap:{value:null},alphaMapTransform:{value:new t5},alphaTest:{value:0}}},sF={basic:{uniforms:rr([sN.common,sN.specularmap,sN.envmap,sN.aomap,sN.lightmap,sN.fog]),vertexShader:sD.meshbasic_vert,fragmentShader:sD.meshbasic_frag},lambert:{uniforms:rr([sN.common,sN.specularmap,sN.envmap,sN.aomap,sN.lightmap,sN.emissivemap,sN.bumpmap,sN.normalmap,sN.displacementmap,sN.fog,sN.lights,{emissive:{value:new iR(0)}}]),vertexShader:sD.meshlambert_vert,fragmentShader:sD.meshlambert_frag},phong:{uniforms:rr([sN.common,sN.specularmap,sN.envmap,sN.aomap,sN.lightmap,sN.emissivemap,sN.bumpmap,sN.normalmap,sN.displacementmap,sN.fog,sN.lights,{emissive:{value:new iR(0)},specular:{value:new iR(1118481)},shininess:{value:30}}]),vertexShader:sD.meshphong_vert,fragmentShader:sD.meshphong_frag},standard:{uniforms:rr([sN.common,sN.envmap,sN.aomap,sN.lightmap,sN.emissivemap,sN.bumpmap,sN.normalmap,sN.displacementmap,sN.roughnessmap,sN.metalnessmap,sN.fog,sN.lights,{emissive:{value:new iR(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:sD.meshphysical_vert,fragmentShader:sD.meshphysical_frag},toon:{uniforms:rr([sN.common,sN.aomap,sN.lightmap,sN.emissivemap,sN.bumpmap,sN.normalmap,sN.displacementmap,sN.gradientmap,sN.fog,sN.lights,{emissive:{value:new iR(0)}}]),vertexShader:sD.meshtoon_vert,fragmentShader:sD.meshtoon_frag},matcap:{uniforms:rr([sN.common,sN.bumpmap,sN.normalmap,sN.displacementmap,sN.fog,{matcap:{value:null}}]),vertexShader:sD.meshmatcap_vert,fragmentShader:sD.meshmatcap_frag},points:{uniforms:rr([sN.points,sN.fog]),vertexShader:sD.points_vert,fragmentShader:sD.points_frag},dashed:{uniforms:rr([sN.common,sN.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:sD.linedashed_vert,fragmentShader:sD.linedashed_frag},depth:{uniforms:rr([sN.common,sN.displacementmap]),vertexShader:sD.depth_vert,fragmentShader:sD.depth_frag},normal:{uniforms:rr([sN.common,sN.bumpmap,sN.normalmap,sN.displacementmap,{opacity:{value:1}}]),vertexShader:sD.meshnormal_vert,fragmentShader:sD.meshnormal_frag},sprite:{uniforms:rr([sN.sprite,sN.fog]),vertexShader:sD.sprite_vert,fragmentShader:sD.sprite_frag},background:{uniforms:{uvTransform:{value:new t5},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:sD.background_vert,fragmentShader:sD.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new t5}},vertexShader:sD.backgroundCube_vert,fragmentShader:sD.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:sD.cube_vert,fragmentShader:sD.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:sD.equirect_vert,fragmentShader:sD.equirect_frag},distanceRGBA:{uniforms:rr([sN.common,sN.displacementmap,{referencePosition:{value:new t1},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:sD.distanceRGBA_vert,fragmentShader:sD.distanceRGBA_frag},shadow:{uniforms:rr([sN.lights,sN.fog,{color:{value:new iR(0)},opacity:{value:1}}]),vertexShader:sD.shadow_vert,fragmentShader:sD.shadow_frag}};sF.physical={uniforms:rr([sF.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new t5},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new t5},clearcoatNormalScale:{value:new tJ(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new t5},dispersion:{value:0},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new t5},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new t5},sheen:{value:0},sheenColor:{value:new iR(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new t5},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new t5},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new t5},transmissionSamplerSize:{value:new tJ},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new t5},attenuationDistance:{value:0},attenuationColor:{value:new iR(0)},specularColor:{value:new iR(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new t5},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new t5},anisotropyVector:{value:new tJ},anisotropyMap:{value:null},anisotropyMapTransform:{value:new t5}}]),vertexShader:sD.meshphysical_vert,fragmentShader:sD.meshphysical_frag};let sO={r:0,b:0,g:0},sj=new n5,sU=new nZ;function sV(e,t,n,i,r,a,s){let o,l;let u=new iR(0),c=!0===a?0:1,d=null,h=0,f=null;function p(e){let i=!0===e.isScene?e.background:null;return i&&i.isTexture&&(i=(e.backgroundBlurriness>0?n:t).get(i)),i}function v(t,n){t.getRGB(sO,rs(e)),i.buffers.color.setClear(sO.r,sO.g,sO.b,n,s)}return{getClearColor:function(){return u},setClearColor:function(e,t=1){u.set(e),v(u,c=t)},getClearAlpha:function(){return c},setClearAlpha:function(e){v(u,c=e)},render:function(t){let n=!1,r=p(t);null===r?v(u,c):r&&r.isColor&&(v(r,1),n=!0);let a=e.xr.getEnvironmentBlendMode();"additive"===a?i.buffers.color.setClear(0,0,0,1,s):"alpha-blend"===a&&i.buffers.color.setClear(0,0,0,0,s),(e.autoClear||n)&&(i.buffers.depth.setTest(!0),i.buffers.depth.setMask(!0),i.buffers.color.setMask(!0),e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil))},addToRenderList:function(t,n){let i=p(n);
vendor: 5,199 bytes, line 48
48i&&(i.isCubeTexture||i.mapping===ep)?(void 0===l&&((l=new i9(new rn(1,1,1),new rc({name:"BackgroundCubeMaterial",uniforms:ri(sF.backgroundCube.uniforms),vertexShader:sF.backgroundCube.vertexShader,fragmentShader:sF.backgroundCube.fragmentShader,side:g,depthTest:!1,depthWrite:!1,fog:!1,allowOverride:!1}))).geometry.deleteAttribute("normal"),l.geometry.deleteAttribute("uv"),l.onBeforeRender=function(e,t,n){this.matrixWorld.copyPosition(n.matrixWorld)},Object.defineProperty(l.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),r.update(l)),sj.copy(n.backgroundRotation),sj.x*=-1,sj.y*=-1,sj.z*=-1,i.isCubeTexture&&!1===i.isRenderTargetTexture&&(sj.y*=-1,sj.z*=-1),l.material.uniforms.envMap.value=i,l.material.uniforms.flipEnvMap.value=i.isCubeTexture&&!1===i.isRenderTargetTexture?-1:1,l.material.uniforms.backgroundBlurriness.value=n.backgroundBlurriness,l.material.uniforms.backgroundIntensity.value=n.backgroundIntensity,l.material.uniforms.backgroundRotation.value.setFromMatrix4(sU.makeRotationFromEuler(sj)),l.material.toneMapped=ns.getTransfer(i.colorSpace)!==tP,(d!==i||h!==i.version||f!==e.toneMapping)&&(l.material.needsUpdate=!0,d=i,h=i.version,f=e.toneMapping),l.layers.enableAll(),t.unshift(l,l.geometry,l.material,0,0,null)):i&&i.isTexture&&(void 0===o&&((o=new i9(new aQ(2,2),new rc({name:"BackgroundMaterial",uniforms:ri(sF.background.uniforms),vertexShader:sF.background.vertexShader,fragmentShader:sF.background.fragmentShader,side:m,depthTest:!1,depthWrite:!1,fog:!1,allowOverride:!1}))).geometry.deleteAttribute("normal"),Object.defineProperty(o.material,"map",{get:function(){return this.uniforms.t2D.value}}),r.update(o)),o.material.uniforms.t2D.value=i,o.material.uniforms.backgroundIntensity.value=n.backgroundIntensity,o.material.toneMapped=ns.getTransfer(i.colorSpace)!==tP,!0===i.matrixAutoUpdate&&i.updateMatrix(),o.material.uniforms.uvTransform.value.copy(i.matrix),(d!==i||h!==i.version||f!==e.toneMapping)&&(o.material.needsUpdate=!0,d=i,h=i.version,f=e.toneMapping),o.layers.enableAll(),t.unshift(o,o.geometry,o.material,0,0,null))},dispose:function(){void 0!==l&&(l.geometry.dispose(),l.material.dispose(),l=void 0),void 0!==o&&(o.geometry.dispose(),o.material.dispose(),o=void 0)}}}function sB(e,t){let n=e.getParameter(e.MAX_VERTEX_ATTRIBS),i={},r=d(null),a=r,s=!1;function o(){return e.createVertexArray()}function l(t){return e.bindVertexArray(t)}function u(t){return e.deleteVertexArray(t)}function c(e,t,n){let r=!0===n.wireframe,a=i[e.id];void 0===a&&(a={},i[e.id]=a);let s=a[t.id];void 0===s&&(s={},a[t.id]=s);let l=s[r];return void 0===l&&(l=d(o()),s[r]=l),l}function d(e){let t=[],i=[],r=[];for(let e=0;e<n;e++)t[e]=0,i[e]=0,r[e]=0;return{geometry:null,program:null,wireframe:!1,newAttributes:t,enabledAttributes:i,attributeDivisors:r,object:e,attributes:{},index:null}}function h(e,t,n,i){let r=a.attributes,s=t.attributes,o=0,l=n.getAttributes();for(let t in l)if(l[t].location>=0){let n=r[t],i=s[t];if(void 0===i&&("instanceMatrix"===t&&e.instanceMatrix&&(i=e.instanceMatrix),"instanceColor"===t&&e.instanceColor&&(i=e.instanceColor)),void 0===n||n.attribute!==i||i&&n.data!==i.data)return!0;o++}return a.attributesNum!==o||a.index!==i}function f(e,t,n,i){let r={},s=t.attributes,o=0,l=n.getAttributes();for(let t in l)if(l[t].location>=0){let n=s[t];void 0===n&&("instanceMatrix"===t&&e.instanceMatrix&&(n=e.instanceMatrix),"instanceColor"===t&&e.instanceColor&&(n=e.instanceColor));let i={};i.attribute=n,n&&n.data&&(i.data=n.data),r[t]=i,o++}a.attributes=r,a.attributesNum=o,a.index=i}function p(){let e=a.newAttributes;for(let t=0,n=e.length;t<n;t++)e[t]=0}function m(e){g(e,0)}function g(t,n){let i=a.newAttributes,r=a.enabledAttributes,s=a.attributeDivisors;i[t]=1,0===r[t]&&(e.enableVertexAttribArray(t),r[t]=1),s[t]!==n&&(e.vertexAttribDivisor(t,n),s[t]=n)}function v(){let t=a.newAttributes,n=a.enabledAttributes;for(let i=0,r=n.length;i<r;i++)n[i]!==t[i]&&(e.disableVertexAttribArray(i),n[i]=0)}function y(t,n,i,r,a,s,o){!0===o?e.vertexAttribIPointer(t,n,i,a,s):e.vertexAttribPointer(t,n,i,r,a,s)}function _(n,i,r,a){p();let s=a.attributes,o=r.getAttributes(),l=i.defaultAttributeValues;for(let i in o){let r=o[i];if(r.location>=0){let o=s[i];if(void 0===o&&("instanceMatrix"===i&&n.instanceMatrix&&(o=n.instanceMatrix),"instanceColor"===i&&n.instanceColor&&(o=n.instanceColor)),void 0!==o){let i=o.normalized,s=o.itemSize,l=t.get(o);if(void 0===l)continue;let u=l.buffer,c=l.type,d=l.bytesPerElement,h=c===e.INT||c===e.UNSIGNED_INT||o.gpuType===eP;if(o.isInterleavedBufferAttribute){let t=o.data,l=t.stride,f=o.offset;if(t.isInstancedInterleavedBuffer){for(let e=0;e<r.locationSize;e++)g(r.location+e,t.meshPerAttribute);!0!==n.isInstancedMesh&&void 0===a._maxInstanceCount&&(a._maxInstanceCount=t.meshPerAttribute*t.count)}else for(let e=0;e<r.locationSize;e++)m(r.location+e);e.bindBuffer(e.ARRAY_BUFFER,u);for(let e=0;e<r.locationSize;e++)y(r.location+e,s/r.locationSize,c,i,l*d,(f+s/r.locationSize*e)*d,h)}else{if(o.isInstancedBufferAttribute){for(let e=0;e<r.locationSize;e++)g(r.location+e,o.meshPerAttribute);!0!==n.isInstancedMesh&&void 0===a._maxInstanceCount&&(a._maxInstanceCount=o.meshPerAttribute*o.count)}
48else for(let e=0;e<r.locationSize;e++)m(r.location+e);e.bindBuffer(e.ARRAY_BUFFER,u);for(let e=0;e<r.locationSize;e++)y(r.location+e,s/r.locationSize,c,i,s*d,s/r.locationSize*e*d,h)}}else if(void 0!==l){let t=l[i];if(void 0!==t)switch(t.length){case 2:e.vertexAttrib2fv(r.location,t);break;case 3:e.vertexAttrib3fv(r.location,t);break;case 4:e.vertexAttrib4fv(r.location,t);break;default:e.vertexAttrib1fv(r.location,t)}}}}v()}function b(){for(let e in x(),i){let t=i[e];for(let e in t){let n=t[e];for(let e in n)u(n[e].object),delete n[e];delete t[e]}delete i[e]}}function x(){C(),s=!0,a!==r&&l((a=r).object)}function C(){r.geometry=null,r.program=null,r.wireframe=!1}return{setup:function(n,i,r,o,u){let d=!1,p=c(o,r,i);a!==p&&l((a=p).object),(d=h(n,o,r,u))&&f(n,o,r,u),null!==u&&t.update(u,e.ELEMENT_ARRAY_BUFFER),(d||s)&&(s=!1,_(n,i,r,o),null!==u&&e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t.get(u).buffer))},reset:x,resetDefaultState:C,dispose:b,releaseStatesOfGeometry:function(e){if(void 0===i[e.id])return;let t=i[e.id];for(let e in t){let n=t[e];for(let e in n)u(n[e].object),delete n[e];delete t[e]}delete i[e.id]},releaseStatesOfProgram:function(e){for(let t in i){let n=i[t];if(void 0===n[e.id])continue;let r=n[e.id];for(let e in r)u(r[e].object),delete r[e];delete n[e.id]}},initAttributes:p,enableAttribute:m,disableUnusedAttributes:v}}function sH(e,t,n){let i;function r(e){i=e}function a(t,r){e.drawArrays(i,t,r),n.update(r,i,1)}function s(t,r,a){0!==a&&(e.drawArraysInstanced(i,t,r,a),n.update(r,i,a))}function o(e,r,a){if(0===a)return;t.get("WEBGL_multi_draw").multiDrawArraysWEBGL(i,e,0,r,0,a);let s=0;for(let e=0;e<a;e++)s+=r[e];n.update(s,i,1)}function l(e,r,a,o){if(0===a)return;let l=t.get("WEBGL_multi_draw");if(null===l)for(let t=0;t<e.length;t++)s(e[t],r[t],o[t]);
48else{l.multiDrawArraysInstancedWEBGL(i,e,0,r,0,o,0,a);let t=0;for(let e=0;e<a;e++)t+=r[e]*o[e];n.update(t,i,1)}}this.setMode=r,this.render=a,this.renderInstances=s,this.renderMultiDraw=o,this.renderMultiDrawInstances=l}function sG(e,t,n,i){let r;function a(){if(void 0!==r)return r;if(!0===t.has("EXT_texture_filter_anisotropic")){let n=t.get("EXT_texture_filter_anisotropic");r=e.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}else r=0;return r}function s(t){return t===ej||i.convert(t)===e.getParameter(e.IMPLEMENTATION_COLOR_READ_FORMAT)}function o(n){let r=n===eI&&(t.has("EXT_color_buffer_half_float")||t.has("EXT_color_buffer_float"));return n===ew||i.convert(n)===e.getParameter(e.IMPLEMENTATION_COLOR_READ_TYPE)||n===eA||!!r}function l(t){if("highp"===t){if(e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.HIGH_FLOAT).precision>0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT).precision>0)return"highp";t="mediump"}return"mediump"===t&&e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.MEDIUM_FLOAT).precision>0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}let u=void 0!==n.precision?n.precision:"highp",c=l(u);c!==u&&(console.warn("THREE.WebGLRenderer:",u,"not supported, using",c,"instead."),u=c);let d=!0===n.logarithmicDepthBuffer,h=!0===n.reverseDepthBuffer&&t.has("EXT_clip_control"),f=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),p=e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS),m=e.getParameter(e.MAX_TEXTURE_SIZE),g=e.getParameter(e.MAX_CUBE_MAP_TEXTURE_SIZE),v=e.getParameter(e.MAX_VERTEX_ATTRIBS),y=e.getParameter(e.MAX_VERTEX_UNIFORM_VECTORS),_=e.getParameter(e.MAX_VARYING_VECTORS),b=e.getParameter(e.MAX_FRAGMENT_UNIFORM_VECTORS),x=p>0;return{isWebGL2:!0,getMaxAnisotropy:a,getMaxPrecision:l,textureFormatReadable:s,textureTypeReadable:o,precision:u,logarithmicDepthBuffer:d,reverseDepthBuffer:h,maxTextures:f,maxVertexTextures:p,maxTextureSize:m,maxCubemapSize:g,maxAttributes:v,maxVertexUniforms:y,maxVaryings:_,maxFragmentUniforms:b,vertexTextures:x,maxSamples:e.getParameter(e.MAX_SAMPLES)}}function sz(e){let t=this,n=null,i=0,r=!1,a=!1,s=new rP,o=new t5,l={value:null,needsUpdate:!1};function u(){l.value!==n&&(l.value=n,l.needsUpdate=i>0),t.numPlanes=i,t.numIntersection=0}function c(e,n,i,r){let a=null!==e?e.length:0,u=null;if(0!==a){if(u=l.value,!0!==r||null===u){let t=i+4*a,r=n.matrixWorldInverse;o.getNormalMatrix(r),(null===u||u.length<t)&&(u=new Float32Array(t));for(let t=0,n=i;t!==a;++t,n+=4)s.copy(e[t]).applyMatrix4(r,o),s.normal.toArray(u,n),u[n+3]=s.constant}l.value=u,l.needsUpdate=!0}return t.numPlanes=a,t.numIntersection=0,u}this.uniform=l,this.numPlanes=0,this.numIntersection=0,this.init=function(e,t){let n=0!==e.length||t||0!==i||r;return r=t,i=e.length,n},this.beginShadows=function(){a=!0,c(null)},this.endShadows=function(){a=!1},this.setGlobalState=function(e,t){n=c(e,t,0)},this.setState=function(t,s,o){let d=t.clippingPlanes,h=t.clipIntersection,f=t.clipShadows,p=e.get(t);if(r&&null!==d&&0!==d.length&&(!a||f)){let e=a?0:i,t=4*e,r=p.clippingState||null;l.value=r,r=c(d,s,t,o);for(let e=0;e!==t;++e)r[e]=n[e];p.clippingState=r,this.numIntersection=h?this.numPlanes:0,this.numPlanes+=e}else a?c(null):u()}}function sq(e){let t=new WeakMap;function n(e,t){return t===eh?e.mapping=ec:t===ef&&(e.mapping=ed),e}function i(e){let n=e.target;n.removeEventListener("dispose",i);let r=t.get(n);void 0!==r&&(t.delete(n),r.dispose())}return{get:function(r){if(r&&r.isTexture){let a=r.mapping;if(a===eh||a===ef){if(t.has(r))return n(t.get(r).texture,r.mapping);{let a=r.image;if(!a||!(a.height>0))return null;{let s=new rb(a.height);return s.fromEquirectangularTexture(e,r),t.set(r,s),r.addEventListener("dispose",i),n(s.texture,r.mapping)}}}}return r},dispose:function(){t=new WeakMap}}}let sW=4,s$=[.125,.215,.35,.446,.526,.582],sZ=20,sY=new s_,sK=new iR,sX=null,sQ=0,sJ=0,s0=!1,s1=(1+Math.sqrt(5))/2,s2=1/s1,s3=[new t1(-s1,s2,0),new t1(s1,s2,0),new t1(-s2,0,s1),new t1(s2,0,s1),new t1(0,s1,-s2),new t1(0,s1,s2),new t1(-1,1,-1),new t1(1,1,-1),new t1(-1,1,1),new t1(1,1,1)],s5=new t1;class s4{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(e,t=0,n=.1,i=100,r={}){let{size:a=256,position:s=s5}=r;sX=this._renderer.getRenderTarget(),sQ=this._renderer.getActiveCubeFace(),sJ=this._renderer.getActiveMipmapLevel(),s0=this._renderer.xr.enabled,this._renderer.xr.enabled=!1,this._setSize(a);let o=this._allocateTargets();return o.depthBuffer=!0,this._sceneToCubeUV(e,n,i,o,s),t>0&&this._blur(o,0,0,t),this._applyPMREM(o),this._cleanup(o),o}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){null===this._cubemapMaterial&&(this._cubemapMaterial=ot(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){null===this._equirectMaterial&&(this._equirectMaterial=oe(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),null!==this._cubemapMaterial&&this._cubemapMaterial.dispose(),null!==this._equirectMaterial&&this._equirectMaterial.dispose()}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){null!==this._blurMaterial&&this._blurMaterial.dispose(),null!==this._pingPongRenderTarget&&this._pingPongRenderTarget.dispose();for(let e=0;e<this._lodPlanes.length;e++)this._lodPlanes[e].dispose()}_cleanup(e){this._renderer.setRenderTarget(sX,sQ,sJ),this._renderer.xr.enabled=s0,e.scissorTest=!1,s7(e,0,0,e.width,e.height)}_fromTexture(e,t){e.mapping===ec||e.mapping===ed?this._setSize(0===e.image.length?16:e.image[0].width||e.image[0].image.width):this._setSize(e.image.width/4),sX=this._renderer.getRenderTarget(),sQ=this._renderer.getActiveCubeFace(),sJ=this._renderer.getActiveMipmapLevel(),s0=this._renderer.xr.enabled,this._renderer.xr.enabled=!1;let n=t||this._allocateTargets();return this._textureToCubeUV(e,n),this._applyPMREM(n),this._cleanup(n),n}_allocateTargets(){let e=3*Math.max(this._cubeSize,112),t=4*this._cubeSize,n={magFilter:ex,minFilter:ex,generateMipmaps:!1,type:eI,format:ej,colorSpace:tS,depthBuffer:!1},i=s8(e,t,n);if(null===this._pingPongRenderTarget||this._pingPongRenderTarget.width!==e||this._pingPongRenderTarget.height!==t){null!==this._pingPongRenderTarget&&this._dispose(),this._pingPongRenderTarget=s8(e,t,n);let{_lodMax:i}=this;({sizeLods:this._sizeLods,lodPlanes:this._lodPlanes,sigmas:this._sigmas}=s6(i)),this._blurMaterial=s9(i,e,t)}return i}_compileMaterial(e){let t=new i9(this._lodPlanes[0],e);this._renderer.compile(t,sY)}_sceneToCubeUV(e,t,n,i,r){let a=new rm(90,1,t,n),s=[1,-1,1,1,1,1],o=[1,1,1,-1,-1,-1],l=this._renderer,u=l.autoClear,c=l.toneMapping;l.getClearColor(sK),l.toneMapping=et,l.autoClear=!1;
vendor: 5,435 bytes, lines 48-123
48let d=new iF({name:"PMREM.Background",side:g,depthWrite:!1,depthTest:!1}),h=new i9(new rn,d),f=!1,p=e.background;p?p.isColor&&(d.color.copy(p),e.background=null,f=!0):(d.color.copy(sK),f=!0);for(let t=0;t<6;t++){let n=t%3;0===n?(a.up.set(0,s[t],0),a.position.set(r.x,r.y,r.z),a.lookAt(r.x+o[t],r.y,r.z)):1===n?(a.up.set(0,0,s[t]),a.position.set(r.x,r.y,r.z),a.lookAt(r.x,r.y+o[t],r.z)):(a.up.set(0,s[t],0),a.position.set(r.x,r.y,r.z),a.lookAt(r.x,r.y,r.z+o[t]));let u=this._cubeSize;s7(i,n*u,t>2?u:0,u,u),l.setRenderTarget(i),f&&l.render(h,a),l.render(e,a)}h.geometry.dispose(),h.material.dispose(),l.toneMapping=c,l.autoClear=u,e.background=p}_textureToCubeUV(e,t){let n=this._renderer,i=e.mapping===ec||e.mapping===ed;i?(null===this._cubemapMaterial&&(this._cubemapMaterial=ot()),this._cubemapMaterial.uniforms.flipEnvMap.value=!1===e.isRenderTargetTexture?-1:1):null===this._equirectMaterial&&(this._equirectMaterial=oe());let r=i?this._cubemapMaterial:this._equirectMaterial,a=new i9(this._lodPlanes[0],r);r.uniforms.envMap.value=e;let s=this._cubeSize;s7(t,0,0,3*s,2*s),n.setRenderTarget(t),n.render(a,sY)}_applyPMREM(e){let t=this._renderer,n=t.autoClear;t.autoClear=!1;let i=this._lodPlanes.length;for(let t=1;t<i;t++){let n=Math.sqrt(this._sigmas[t]*this._sigmas[t]-this._sigmas[t-1]*this._sigmas[t-1]),r=s3[(i-t-1)%s3.length];this._blur(e,t-1,t,n,r)}t.autoClear=n}_blur(e,t,n,i,r){let a=this._pingPongRenderTarget;this._halfBlur(e,a,t,n,i,"latitudinal",r),this._halfBlur(a,e,n,n,i,"longitudinal",r)}_halfBlur(e,t,n,i,r,a,s){let o=this._renderer,l=this._blurMaterial;"latitudinal"!==a&&"longitudinal"!==a&&console.error("blur direction must be either latitudinal or longitudinal!");let u=3,c=new i9(this._lodPlanes[i],l),d=l.uniforms,h=this._sizeLods[n]-1,f=isFinite(r)?Math.PI/(2*h):2*Math.PI/(2*sZ-1),p=r/f,m=isFinite(r)?1+Math.floor(u*p):sZ;m>sZ&&console.warn(`sigmaRadians, ${r}, is too large and will clip, as it requested ${m} samples when the maximum is set to ${sZ}`);let g=[],v=0;for(let e=0;e<sZ;++e){let t=e/p,n=Math.exp(-t*t/2);g.push(n),0===e?v+=n:e<m&&(v+=2*n)}for(let e=0;e<g.length;e++)g[e]=g[e]/v;d.envMap.value=e.texture,d.samples.value=m,d.weights.value=g,d.latitudinal.value="latitudinal"===a,s&&(d.poleAxis.value=s);let{_lodMax:y}=this;d.dTheta.value=f,d.mipInt.value=y-n;let _=this._sizeLods[i];s7(t,3*_*(i>y-sW?i-y+sW:0),4*(this._cubeSize-_),3*_,2*_),o.setRenderTarget(t),o.render(c,sY)}}function s6(e){let t=[],n=[],i=[],r=e,a=e-sW+1+s$.length;for(let s=0;s<a;s++){let a=Math.pow(2,r);n.push(a);let o=1/a;s>e-sW?o=s$[s-e+sW-1]:0===s&&(o=0),i.push(o);let l=1/(a-2),u=-l,c=1+l,d=[u,u,c,u,c,c,u,u,c,c,u,c],h=6,f=6,p=3,m=2,g=1,v=new Float32Array(108),y=new Float32Array(m*f*h),_=new Float32Array(g*f*h);for(let e=0;e<h;e++){let t=e%3*2/3-1,n=e>2?0:-1,i=[t,n,0,t+2/3,n,0,t+2/3,n+1,0,t,n,0,t+2/3,n+1,0,t,n+1,0];v.set(i,p*f*e),y.set(d,m*f*e);let r=[e,e,e,e,e,e];_.set(r,g*f*e)}let b=new iX;b.setAttribute("position",new iV(v,p)),b.setAttribute("uv",new iV(y,m)),b.setAttribute("faceIndex",new iV(_,g)),t.push(b),r>sW&&r--}return{lodPlanes:t,sizeLods:n,sigmas:i}}function s8(e,t,n){let i=new ny(e,t,n);return i.texture.mapping=ep,i.texture.name="PMREM.cubeUv",i.scissorTest=!0,i}function s7(e,t,n,i,r){e.viewport.set(t,n,i,r),e.scissor.set(t,n,i,r)}function s9(e,t,n){let i=new Float32Array(sZ);return new rc({name:"SphericalGaussianBlur",defines:{n:sZ,CUBEUV_TEXEL_WIDTH:1/t,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${e}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:i},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:new t1(0,1,0)}},vertexShader:on(),fragmentShader:` 49 50 precision mediump float; 51 precision mediump int; 52 53 varying vec3 vOutputDirection; 54 55 uniform sampler2D envMap; 56 uniform int samples; 57 uniform float weights[ n ]; 58 uniform bool latitudinal; 59 uniform float dTheta; 60 uniform float mipInt; 61 uniform vec3 poleAxis; 62 63 #define ENVMAP_TYPE_CUBE_UV 64 #include <cube_uv_reflection_fragment> 65 66 vec3 getSample( float theta, vec3 axis ) { 67 68 float cosTheta = cos( theta ); 69 // Rodrigues' axis-angle rotation 70 vec3 sampleDirection = vOutputDirection * cosTheta 71 + cross( axis, vOutputDirection ) * sin( theta ) 72 + axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta ); 73 74 return bilinearCubeUV( envMap, sampleDirection, mipInt ); 75 76 } 77 78 void main() { 79 80 vec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection ); 81 82 if ( all( equal( axis, vec3( 0.0 ) ) ) ) { 83 84 axis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x ); 85 86 } 87 88 axis = normalize( axis ); 89 90 gl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 ); 91 gl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis ); 92 93 for ( int i = 1; i < n; i++ ) { 94 95 if ( i >= samples ) { 96 97 break; 98 99 } 100 101 float theta = dTheta * float( i ); 102 gl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis ); 103 gl_FragColor.rgb += weights[ i ] * getSample( theta, axis ); 104 105 } 106 107 } 108 `,blending:y,depthTest:!1,depthWrite:!1})}function oe(){return new rc({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:on(),fragmentShader:` 109 110 precision mediump float; 111 precision mediump int; 112 113 varying vec3 vOutputDirection; 114 115 uniform sampler2D envMap; 116 117 #include <common> 118 119 void main() { 120 121 vec3 outputDirection = normalize( vOutputDirection ); 122 vec2 uv = equirectUv( outputDirection ); 123
124 gl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 ); 125 126 } 127 `,blending:y,depthTest:!1,depthWrite:!1})}function ot(){return new rc({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:on(),fragmentShader:` 128 129 precision mediump float; 130 precision mediump int; 131 132 uniform float flipEnvMap; 133 134 varying vec3 vOutputDirection; 135 136 uniform samplerCube envMap; 137 138 void main() { 139 140 gl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) ); 141 142 } 143 `,blending:y,depthTest:!1,depthWrite:!1})}function on(){return` 144 145 precision mediump float; 146 precision mediump int; 147 148 attribute float faceIndex; 149 150 varying vec3 vOutputDirection; 151 152 // RH coordinate system; PMREM face-indexing convention 153 vec3 getDirection( vec2 uv, float face ) { 154 155 uv = 2.0 * uv - 1.0; 156 157 vec3 direction = vec3( uv, 1.0 ); 158 159 if ( face == 0.0 ) { 160 161 direction = direction.zyx; // ( 1, v, u ) pos x 162 163 } else if ( face == 1.0 ) { 164 165 direction = direction.xzy; 166 direction.xz *= -1.0; // ( -u, 1, -v ) pos y 167 168 } else if ( face == 2.0 ) { 169 170 direction.x *= -1.0; // ( -u, v, 1 ) pos z 171 172 } else if ( face == 3.0 ) { 173 174 direction = direction.zyx; 175 direction.xz *= -1.0; // ( -1, v, -u ) neg x 176 177 } else if ( face == 4.0 ) { 178 179 direction = direction.xzy; 180 direction.xy *= -1.0; // ( -u, -1, v ) neg y 181 182 } else if ( face == 5.0 ) { 183 184 direction.z *= -1.0; // ( u, v, -1 ) neg z 185 186 } 187 188 return direction; 189 190 } 191 192 void main() { 193 194 vOutputDirection = getDirection( uv, faceIndex ); 195 gl_Position = vec4( position, 1.0 ); 196 197 } 198 `}function oi(e){let t=new WeakMap,n=null;function i(e){let t=0,n=6;for(let i=0;i<n;i++)void 0!==e[i]&&t++;return t===n}function r(e){let n=e.target;n.removeEventListener("dispose",r);let i=t.get(n);void 0!==i&&(t.delete(n),i.dispose())}return{get:function(a){if(a&&a.isTexture){let s=a.mapping,o=s===eh||s===ef,l=s===ec||s===ed;if(o||l){let s=t.get(a),u=void 0!==s?s.texture.pmremVersion:0;if(a.isRenderTargetTexture&&a.pmremVersion!==u)return null===n&&(n=new s4(e)),(s=o?n.fromEquirectangular(a,s):n.fromCubemap(a,s)).texture.pmremVersion=a.pmremVersion,t.set(a,s),s.texture;if(void 0!==s)return s.texture;{let u=a.image;return o&&u&&u.height>0||l&&u&&i(u)?(null===n&&(n=new s4(e)),(s=o?n.fromEquirectangular(a):n.fromCubemap(a)).texture.pmremVersion=a.pmremVersion,t.set(a,s),a.addEventListener("dispose",r),s.texture):null}}}return a},dispose:function(){t=new WeakMap,null!==n&&(n.dispose(),n=null)}}}function or(e){let t={};function n(n){let i;if(void 0!==t[n])return t[n];switch(n){case"WEBGL_depth_texture":i=e.getExtension("WEBGL_depth_texture")||e.getExtension("MOZ_WEBGL_depth_texture")||e.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":i=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":i=e.getExtension("WEBGL_compressed_texture_s3tc")||e.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":i=e.getExtension("WEBGL_compressed_texture_pvrtc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;default:i=e.getExtension(n)}return t[n]=i,i}return{has:function(e){return null!==n(e)},init:function(){n("EXT_color_buffer_float"),n("WEBGL_clip_cull_distance"),n("OES_texture_float_linear"),n("EXT_color_buffer_half_float"),n("WEBGL_multisampled_render_to_texture"),n("WEBGL_render_shared_exponent")},get:function(e){let t=n(e);return null===t&&ne("THREE.WebGLRenderer: "+e+" extension not supported."),t}}}function oa(e,t,n,i){let r={},a=new WeakMap;function s(e){let o=e.target;for(let e in null!==o.index&&t.remove(o.index),o.attributes)t.remove(o.attributes[e]);o.removeEventListener("dispose",s),delete r[o.id];let l=a.get(o);l&&(t.remove(l),a.delete(o)),i.releaseStatesOfGeometry(o),!0===o.isInstancedBufferGeometry&&delete o._maxInstanceCount,n.memory.geometries--}function o(e){let n=[],i=e.index,r=e.attributes.position,s=0;if(null!==i){let e=i.array;s=i.version;for(let t=0,i=e.length;t<i;t+=3){let i=e[t+0],r=e[t+1],a=e[t+2];n.push(i,r,r,a,a,i)}}else{if(void 0===r)return;let e=r.array;s=r.version;for(let t=0,i=e.length/3-1;t<i;
vendor: 7,872 bytes, line 198
198t+=3){let e=t+0,i=t+1,r=t+2;n.push(e,i,i,r,r,e)}}let o=new(t6(n)?iH:iB)(n,1);o.version=s;let l=a.get(e);l&&t.remove(l),a.set(e,o)}return{get:function(e,t){return!0===r[t.id]||(t.addEventListener("dispose",s),r[t.id]=!0,n.memory.geometries++),t},update:function(n){let i=n.attributes;for(let n in i)t.update(i[n],e.ARRAY_BUFFER)},getWireframeAttribute:function(e){let t=a.get(e);if(t){let n=e.index;null!==n&&t.version<n.version&&o(e)}else o(e);return a.get(e)}}}function os(e,t,n){let i,r,a;function s(e){i=e}function o(e){r=e.type,a=e.bytesPerElement}function l(t,s){e.drawElements(i,s,r,t*a),n.update(s,i,1)}function u(t,s,o){0!==o&&(e.drawElementsInstanced(i,s,r,t*a,o),n.update(s,i,o))}function c(e,a,s){if(0===s)return;t.get("WEBGL_multi_draw").multiDrawElementsWEBGL(i,a,0,r,e,0,s);let o=0;for(let e=0;e<s;e++)o+=a[e];n.update(o,i,1)}function d(e,s,o,l){if(0===o)return;let c=t.get("WEBGL_multi_draw");if(null===c)for(let t=0;t<e.length;t++)u(e[t]/a,s[t],l[t]);else{c.multiDrawElementsInstancedWEBGL(i,s,0,r,e,0,l,0,o);let t=0;for(let e=0;e<o;e++)t+=s[e]*l[e];n.update(t,i,1)}}this.setMode=s,this.setIndex=o,this.render=l,this.renderInstances=u,this.renderMultiDraw=c,this.renderMultiDrawInstances=d}function oo(e){let t={frame:0,calls:0,triangles:0,points:0,lines:0};function n(n,i,r){switch(t.calls++,i){case e.TRIANGLES:t.triangles+=n/3*r;break;case e.LINES:t.lines+=n/2*r;break;case e.LINE_STRIP:t.lines+=r*(n-1);break;case e.LINE_LOOP:t.lines+=r*n;break;case e.POINTS:t.points+=r*n;break;default:console.error("THREE.WebGLInfo: Unknown draw mode:",i)}}function i(){t.calls=0,t.triangles=0,t.points=0,t.lines=0}return{memory:{geometries:0,textures:0},render:t,programs:null,autoReset:!0,reset:i,update:n}}function ol(e,t,n){let i=new WeakMap,r=new ng;return{update:function(a,s,o){let l=a.morphTargetInfluences,u=s.morphAttributes.position||s.morphAttributes.normal||s.morphAttributes.color,c=void 0!==u?u.length:0,d=i.get(s);if(void 0===d||d.count!==c){void 0!==d&&d.texture.dispose();let e=void 0!==s.morphAttributes.position,n=void 0!==s.morphAttributes.normal,a=void 0!==s.morphAttributes.color,o=s.morphAttributes.position||[],l=s.morphAttributes.normal||[],u=s.morphAttributes.color||[],f=0;!0===e&&(f=1),!0===n&&(f=2),!0===a&&(f=3);let p=s.attributes.position.count*f,m=1;p>t.maxTextureSize&&(m=Math.ceil(p/t.maxTextureSize),p=t.maxTextureSize);let g=new Float32Array(p*m*4*c),v=new n_(g,p,m,c);v.type=eA,v.needsUpdate=!0;let y=4*f;for(let t=0;t<c;t++){let i=o[t],s=l[t],c=u[t],d=p*m*4*t;for(let t=0;t<i.count;t++){let o=t*y;!0===e&&(r.fromBufferAttribute(i,t),g[d+o+0]=r.x,g[d+o+1]=r.y,g[d+o+2]=r.z,g[d+o+3]=0),!0===n&&(r.fromBufferAttribute(s,t),g[d+o+4]=r.x,g[d+o+5]=r.y,g[d+o+6]=r.z,g[d+o+7]=0),!0===a&&(r.fromBufferAttribute(c,t),g[d+o+8]=r.x,g[d+o+9]=r.y,g[d+o+10]=r.z,g[d+o+11]=4===c.itemSize?r.w:1)}}function h(){v.dispose(),i.delete(s),s.removeEventListener("dispose",h)}d={count:c,texture:v,size:new tJ(p,m)},i.set(s,d),s.addEventListener("dispose",h)}if(!0===a.isInstancedMesh&&null!==a.morphTexture)o.getUniforms().setValue(e,"morphTexture",a.morphTexture,n);else{let t=0;for(let e=0;e<l.length;e++)t+=l[e];let n=s.morphTargetsRelative?1:1-t;o.getUniforms().setValue(e,"morphTargetBaseInfluence",n),o.getUniforms().setValue(e,"morphTargetInfluences",l)}o.getUniforms().setValue(e,"morphTargetsTexture",d.texture,n),o.getUniforms().setValue(e,"morphTargetsTextureSize",d.size)}}}function ou(e,t,n,i){let r=new WeakMap;function a(e){let t=e.target;t.removeEventListener("dispose",a),n.remove(t.instanceMatrix),null!==t.instanceColor&&n.remove(t.instanceColor)}return{update:function(s){let o=i.render.frame,l=s.geometry,u=t.get(s,l);if(r.get(u)!==o&&(t.update(u),r.set(u,o)),s.isInstancedMesh&&(!1===s.hasEventListener("dispose",a)&&s.addEventListener("dispose",a),r.get(s)!==o&&(n.update(s.instanceMatrix,e.ARRAY_BUFFER),null!==s.instanceColor&&n.update(s.instanceColor,e.ARRAY_BUFFER),r.set(s,o))),s.isSkinnedMesh){let e=s.skeleton;r.get(e)!==o&&(e.update(),r.set(e,o))}return u},dispose:function(){r=new WeakMap}}}let oc=new nm,od=new rF(1,1),oh=new n_,of=new nb,op=new r_,om=[],og=[],ov=new Float32Array(16),oy=new Float32Array(9),o_=new Float32Array(4);function ob(e,t,n){let i=e[0];if(i<=0||i>0)return e;let r=t*n,a=om[r];if(void 0===a&&(a=new Float32Array(r),om[r]=a),0!==t){i.toArray(a,0);for(let i=1,r=0;i!==t;++i)r+=n,e[i].toArray(a,r)}return a}function ox(e,t){if(e.length!==t.length)return!1;for(let n=0,i=e.length;n<i;n++)if(e[n]!==t[n])return!1;return!0}function oC(e,t){for(let n=0,i=t.length;n<i;n++)e[n]=t[n]}function oE(e,t){let n=og[t];void 0===n&&(n=new Int32Array(t),og[t]=n);for(let i=0;i!==t;++i)n[i]=e.allocateTextureUnit();return n}function ow(e,t){let n=this.cache;n[0]!==t&&(e.uniform1f(this.addr,t),n[0]=t)}function oT(e,t){let n=this.cache;if(void 0!==t.x)(n[0]!==t.x||n[1]!==t.y)&&(e.uniform2f(this.addr,t.x,t.y),n[0]=t.x,n[1]=t.y);else{if(ox(n,t))return;e.uniform2fv(this.addr,t),oC(n,t)}}function oS(e,t){let n=this.cache;if(void 0!==t.x)(n[0]!==t.x||n[1]!==t.y||n[2]!==t.z)&&(e.uniform3f(this.addr,t.x,t.y,t.z),n[0]=t.x,n[1]=t.y,n[2]=t.z);else if(void 0!==t.r)(n[0]!==t.r||n[1]!==t.g||n[2]!==t.b)&&(e.uniform3f(this.addr,t.r,t.g,t.b),n[0]=t.r,n[1]=t.g,n[2]=t.b);else{if(ox(n,t))return;e.uniform3fv(this.addr,t),oC(n,t)}}function oL(e,t){let n=this.cache;if(void 0!==t.x)(n[0]!==t.x||n[1]!==t.y||n[2]!==t.z||n[3]!==t.w)&&(e.uniform4f(this.addr,t.x,t.y,t.z,t.w),n[0]=t.x,n[1]=t.y,n[2]=t.z,n[3]=t.w);else{if(ox(n,t))return;e.uniform4fv(this.addr,t),oC(n,t)}}function oP(e,t){let n=this.cache,i=t.elements;if(void 0===i){if(ox(n,t))return;e.uniformMatrix2fv(this.addr,!1,t),oC(n,t)}else{if(ox(n,i))return;o_.set(i),e.uniformMatrix2fv(this.addr,!1,o_),oC(n,i)}}function oM(e,t){let n=this.cache,i=t.elements;if(void 0===i){if(ox(n,t))return;e.uniformMatrix3fv(this.addr,!1,t),oC(n,t)}else{if(ox(n,i))return;oy.set(i),e.uniformMatrix3fv(this.addr,!1,oy),oC(n,i)}}function oA(e,t){let n=this.cache,i=t.elements;if(void 0===i){if(ox(n,t))return;e.uniformMatrix4fv(this.addr,!1,t),oC(n,t)}else{if(ox(n,i))return;ov.set(i),e.uniformMatrix4fv(this.addr,!1,ov),oC(n,i)}}function oI(e,t){let n=this.cache;n[0]!==t&&(e.uniform1i(this.addr,t),n[0]=t)}function oR(e,t){let n=this.cache;if(void 0!==t.x)(n[0]!==t.x||n[1]!==t.y)&&(e.uniform2i(this.addr,t.x,t.y),n[0]=t.x,n[1]=t.y);else{if(ox(n,t))return;e.uniform2iv(this.addr,t),oC(n,t)}}function ok(e,t){let n=this.cache;if(void 0!==t.x)(n[0]!==t.x||n[1]!==t.y||n[2]!==t.z)&&(e.uniform3i(this.addr,t.x,t.y,t.z),n[0]=t.x,n[1]=t.y,n[2]=t.z);else{if(ox(n,t))return;e.uniform3iv(this.addr,t),oC(n,t)}}function oD(e,t){let n=this.cache;if(void 0!==t.x)(n[0]!==t.x||n[1]!==t.y||n[2]!==t.z||n[3]!==t.w)&&(e.uniform4i(this.addr,t.x,t.y,t.z,t.w),n[0]=t.x,n[1]=t.y,n[2]=t.z,n[3]=t.w);else{if(ox(n,t))return;e.uniform4iv(this.addr,t),oC(n,t)}}function oN(e,t){let n=this.cache;n[0]!==t&&(e.uniform1ui(this.addr,t),n[0]=t)}function oF(e,t){let n=this.cache;if(void 0!==t.x)(n[0]!==t.x||n[1]!==t.y)&&(e.uniform2ui(this.addr,t.x,t.y),n[0]=t.x,n[1]=t.y);else{if(ox(n,t))return;e.uniform2uiv(this.addr,t),oC(n,t)}}function oO(e,t){let n=this.cache;if(void 0!==t.x)(n[0]!==t.x||n[1]!==t.y||n[2]!==t.z)&&(e.uniform3ui(this.addr,t.x,t.y,t.z),n[0]=t.x,n[1]=t.y,n[2]=t.z);else{if(ox(n,t))return;e.uniform3uiv(this.addr,t),oC(n,t)}}function oj(e,t){let n=this.cache;if(void 0!==t.x)(n[0]!==t.x||n[1]!==t.y||n[2]!==t.z||n[3]!==t.w)&&(e.uniform4ui(this.addr,t.x,t.y,t.z,t.w),n[0]=t.x,n[1]=t.y,n[2]=t.z,n[3]=t.w);else{if(ox(n,t))return;e.uniform4uiv(this.addr,t),oC(n,t)}}function oU(e,t,n){let i;let r=this.cache,a=n.allocateTextureUnit();r[0]!==a&&(e.uniform1i(this.addr,a),r[0]=a),this.type===e.SAMPLER_2D_SHADOW?(od.compareFunction=tD,i=od):i=oc,n.setTexture2D(t||i,a)}function oV(e,t,n){let i=this.cache,r=n.allocateTextureUnit();i[0]!==r&&(e.uniform1i(this.addr,r),i[0]=r),n.setTexture3D(t||of,r)}
198function oB(e,t,n){let i=this.cache,r=n.allocateTextureUnit();i[0]!==r&&(e.uniform1i(this.addr,r),i[0]=r),n.setTextureCube(t||op,r)}function oH(e,t,n){let i=this.cache,r=n.allocateTextureUnit();i[0]!==r&&(e.uniform1i(this.addr,r),i[0]=r),n.setTexture2DArray(t||oh,r)}function oG(e){switch(e){case 5126:return ow;case 35664:return oT;case 35665:return oS;case 35666:return oL;case 35674:return oP;case 35675:return oM;case 35676:return oA;case 5124:case 35670:return oI;case 35667:case 35671:return oR;case 35668:case 35672:return ok;case 35669:case 35673:return oD;case 5125:return oN;case 36294:return oF;case 36295:return oO;case 36296:return oj;case 35678:case 36198:case 36298:case 36306:case 35682:return oU;case 35679:case 36299:case 36307:return oV;case 35680:case 36300:case 36308:case 36293:return oB;case 36289:case 36303:case 36311:case 36292:return oH}}function oz(e,t){e.uniform1fv(this.addr,t)}function oq(e,t){let n=ob(t,this.size,2);e.uniform2fv(this.addr,n)}function oW(e,t){let n=ob(t,this.size,3);e.uniform3fv(this.addr,n)}function o$(e,t){let n=ob(t,this.size,4);e.uniform4fv(this.addr,n)}function oZ(e,t){let n=ob(t,this.size,4);e.uniformMatrix2fv(this.addr,!1,n)}function oY(e,t){let n=ob(t,this.size,9);e.uniformMatrix3fv(this.addr,!1,n)}function oK(e,t){let n=ob(t,this.size,16);e.uniformMatrix4fv(this.addr,!1,n)}function oX(e,t){e.uniform1iv(this.addr,t)}function oQ(e,t){e.uniform2iv(this.addr,t)}function oJ(e,t){e.uniform3iv(this.addr,t)}function o0(e,t){e.uniform4iv(this.addr,t)}function o1(e,t){e.uniform1uiv(this.addr,t)}function o2(e,t){e.uniform2uiv(this.addr,t)}function o3(e,t){e.uniform3uiv(this.addr,t)}function o5(e,t){e.uniform4uiv(this.addr,t)}function o4(e,t,n){let i=this.cache,r=t.length,a=oE(n,r);ox(i,a)||(e.uniform1iv(this.addr,a),oC(i,a));for(let e=0;e!==r;++e)n.setTexture2D(t[e]||oc,a[e])}function o6(e,t,n){let i=this.cache,r=t.length,a=oE(n,r);ox(i,a)||(e.uniform1iv(this.addr,a),oC(i,a));for(let e=0;e!==r;++e)n.setTexture3D(t[e]||of,a[e])}function o8(e,t,n){let i=this.cache,r=t.length,a=oE(n,r);ox(i,a)||(e.uniform1iv(this.addr,a),oC(i,a));for(let e=0;e!==r;++e)n.setTextureCube(t[e]||op,a[e])}function o7(e,t,n){let i=this.cache,r=t.length,a=oE(n,r);ox(i,a)||(e.uniform1iv(this.addr,a),oC(i,a));for(let e=0;e!==r;++e)n.setTexture2DArray(t[e]||oh,a[e])}function o9(e){switch(e){case 5126:return oz;case 35664:return oq;case 35665:return oW;case 35666:return o$;case 35674:return oZ;case 35675:return oY;case 35676:return oK;case 5124:case 35670:return oX;case 35667:case 35671:return oQ;case 35668:case 35672:return oJ;case 35669:case 35673:return o0;case 5125:return o1;case 36294:return o2;case 36295:return o3;case 36296:return o5;case 35678:case 36198:case 36298:case 36306:case 35682:return o4;case 35679:case 36299:case 36307:return o6;case 35680:case 36300:case 36308:case 36293:return o8;case 36289:case 36303:case 36311:case 36292:return o7}}class le{constructor(e,t,n){this.id=e,this.addr=n,this.cache=[],this.type=t.type,this.setValue=oG(t.type)}}class lt{constructor(e,t,n){this.id=e,this.addr=n,this.cache=[],this.type=t.type,this.size=t.size,this.setValue=o9(t.type)}}class ln{constructor(e){this.id=e,this.seq=[],this.map={}}setValue(e,t,n){let i=this.seq;for(let r=0,a=i.length;r!==a;++r){let a=i[r];a.setValue(e,t[a.id],n)}}}let li=/(\w+)(\])?(\[|\.)?/g;function lr(e,t){e.seq.push(t),e.map[t.id]=t}function la(e,t,n){let i=e.name,r=i.length;for(li.lastIndex=0;;){let a=li.exec(i),s=li.lastIndex,o=a[1],l="]"===a[2],u=a[3];if(l&&(o|=0),void 0===u||"["===u&&s+2===r){lr(n,void 0===u?new le(o,e,t):new lt(o,e,t));break}{let e=n.map[o];void 0===e&&lr(n,e=new ln(o)),n=e}}}class ls{constructor(e,t){this.seq=[],this.map={};let n=e.getProgramParameter(t,e.ACTIVE_UNIFORMS);for(let i=0;i<n;++i){let n=e.getActiveUniform(t,i),r=e.getUniformLocation(t,n.name);la(n,r,this)}}setValue(e,t,n,i){let r=this.map[t];void 0!==r&&r.setValue(e,n,i)}setOptional(e,t,n){let i=t[n];void 0!==i&&this.setValue(e,n,i)}static upload(e,t,n,i){for(let r=0,a=t.length;r!==a;++r){let a=t[r],s=n[a.id];!1!==s.needsUpdate&&a.setValue(e,s.value,i)}}static seqWithValue(e,t){let n=[];for(let i=0,r=e.length;i!==r;++i){let r=e[i];r.id in t&&n.push(r)}return n}}function lo(e,t,n){let i=e.createShader(t);return e.shaderSource(i,n),e.compileShader(i),i}let ll=37297,lu=0;function lc(e,t){let n=e.split("\n"),i=[],r=Math.max(t-6,0),a=Math.min(t+6,n.length);for(let e=r;
198e<a;e++){let r=e+1;i.push(`${r===t?">":" "} ${r}: ${n[e]}`)}return i.join("\n")}let ld=new t5;function lh(e){ns._getMatrix(ld,ns.workingColorSpace,e);let t=`mat3( ${ld.elements.map(e=>e.toFixed(4))} )`;switch(ns.getTransfer(e)){case tL:return[t,"LinearTransferOETF"];case tP:return[t,"sRGBTransferOETF"];default:return console.warn("THREE.WebGLProgram: Unsupported color space: ",e),[t,"LinearTransferOETF"]}}function lf(e,t,n){let i=e.getShaderParameter(t,e.COMPILE_STATUS),r=e.getShaderInfoLog(t).trim();if(i&&""===r)return"";let a=/ERROR: 0:(\d+)/.exec(r);if(!a)return r;{let i=parseInt(a[1]);return n.toUpperCase()+"\n\n"+r+"\n\n"+lc(e.getShaderSource(t),i)}}function lp(e,t){let n=lh(t);return`vec4 ${e}( vec4 value ) { 199 return ${n[1]}( vec4( value.rgb * ${n[0]}, value.a ) ); 200}`}function lm(e,t){let n;switch(t){case en:n="Linear";break;case ei:n="Reinhard";break;case er:n="Cineon";break;case ea:n="ACESFilmic";break;case eo:n="AgX";break;case el:n="Neutral";break;case es:n="Custom";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",t),n="Linear"}return"vec3 "+e+"( vec3 color ) { return "+n+"ToneMapping( color ); }"}let lg=new t1;function lv(){ns.getLuminanceCoefficients(lg);let e=lg.x.toFixed(4),t=lg.y.toFixed(4),n=lg.z.toFixed(4);return`float luminance( const in vec3 rgb ) { 201 const vec3 weights = vec3( ${e}, ${t}, ${n} ); 202 return dot( weights, rgb ); 203}`}function ly(e){return[e.extensionClipCullDistance?"#extension GL_ANGLE_clip_cull_distance : require":"",e.extensionMultiDraw?"#extension GL_ANGLE_multi_draw : require":""].filter(lx).join("\n")}function l_(e){let t=[];for(let n in e){let i=e[n];!1!==i&&t.push("#define "+n+" "+i)}return t.join("\n")}function lb(e,t){let n={},i=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES);for(let r=0;r<i;r++){let i=e.getActiveAttrib(t,r),a=i.name,s=1;i.type===e.FLOAT_MAT2&&(s=2),i.type===e.FLOAT_MAT3&&(s=3),i.type===e.FLOAT_MAT4&&(s=4),n[a]={type:i.type,location:e.getAttribLocation(t,a),locationSize:s}}return n}function lx(e){return""!==e}function lC(e,t){let n=t.numSpotLightShadows+t.numSpotLightMaps-t.numSpotLightShadowsWithMaps;return e.replace(/NUM_DIR_LIGHTS/g,t.numDirLights).replace(/NUM_SPOT_LIGHTS/g,t.numSpotLights).replace(/NUM_SPOT_LIGHT_MAPS/g,t.numSpotLightMaps).replace(/NUM_SPOT_LIGHT_COORDS/g,n).replace(/NUM_RECT_AREA_LIGHTS/g,t.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g,t.numPointLights).replace(/NUM_HEMI_LIGHTS/g,t.numHemiLights).replace(/NUM_DIR_LIGHT_SHADOWS/g,t.numDirLightShadows).replace(/NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS/g,t.numSpotLightShadowsWithMaps).replace(/NUM_SPOT_LIGHT_SHADOWS/g,t.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g,t.numPointLightShadows)}function lE(e,t){return e.replace(/NUM_CLIPPING_PLANES/g,t.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,t.numClippingPlanes-t.numClipIntersection)}let lw=/^[ \t]*#include +<([\w\d./]+)>/gm;function lT(e){return e.replace(lw,lL)}let lS=new Map;function lL(e,t){let n=sD[t];if(void 0===n){let e=lS.get(t);if(void 0!==e)n=sD[e],console.warn('THREE.WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.',t,e);else throw Error("Can not resolve #include <"+t+">")}return lT(n)}let lP=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function lM(e){return e.replace(lP,lA)}function lA(e,t,n,i){let r="";for(let e=parseInt(t);e<parseInt(n);e++)r+=i.replace(/\[\s*i\s*\]/g,"[ "+e+" ]").replace(/UNROLLED_LOOP_INDEX/g,e);return r}function lI(e){let t=`precision ${e.precision} float; 204 precision ${e.precision} int; 205 precision ${e.precision} sampler2D; 206 precision ${e.precision} samplerCube; 207 precision ${e.precision} sampler3D; 208 precision ${e.precision} sampler2DArray; 209 precision ${e.precision} sampler2DShadow; 210 precision ${e.precision} samplerCubeShadow; 211 precision ${e.precision} sampler2DArrayShadow; 212 precision ${e.precision} isampler2D; 213 precision ${e.precision} isampler3D; 214 precision ${e.precision} isamplerCube; 215 precision ${e.precision} isampler2DArray; 216 precision ${e.precision} usampler2D; 217 precision ${e.precision} usampler3D; 218 precision ${e.precision} usamplerCube; 219 precision ${e.precision} usampler2DArray; 220 `;return"highp"===e.precision?t+="\n#define HIGH_PRECISION":"mediump"===e.precision?t+="\n#define MEDIUM_PRECISION":"lowp"===e.precision&&(t+="\n#define LOW_PRECISION"),t}function lR(e){let t="SHADOWMAP_TYPE_BASIC";return e.shadowMapType===h?t="SHADOWMAP_TYPE_PCF":e.shadowMapType===f?t="SHADOWMAP_TYPE_PCF_SOFT":e.shadowMapType===p&&(t="SHADOWMAP_TYPE_VSM"),t}function lk(e){let t="ENVMAP_TYPE_CUBE";if(e.envMap)switch(e.envMapMode){case ec:case ed:t="ENVMAP_TYPE_CUBE";break;case ep:t="ENVMAP_TYPE_CUBE_UV"}return t}function lD(e){let t="ENVMAP_MODE_REFLECTION";return e.envMap&&e.envMapMode===ed&&(t="ENVMAP_MODE_REFRACTION"),t}function lN(e){let t="ENVMAP_BLENDING_NONE";if(e.envMap)switch(e.combine){case Q:t="ENVMAP_BLENDING_MULTIPLY";break;case J:t="ENVMAP_BLENDING_MIX";break;case ee:t="ENVMAP_BLENDING_ADD"}return t}function lF(e){let t=e.envMapCubeUVHeight;if(null===t)return null;let n=Math.log2(t)-2;return{texelWidth:1/(3*Math.max(Math.pow(2,n),112)),texelHeight:1/t,maxMip:n}}function lO(e,t,n,i){let r,a,s,o;let l=e.getContext(),u=n.defines,c=n.vertexShader,d=n.fragmentShader,h=lR(n),f=lk(n),p=lD(n),m=lN(n),g=lF(n),v=ly(n),y=l_(u),_=l.createProgram(),b=n.glslVersion?"#version "+n.glslVersion+"\n":"";n.isRawShaderMaterial?((r=["#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,y].filter(lx).join("\n")).length>0&&(r+="\n"),(a=["#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,y].filter(lx).join("\n")).length>0&&(a+="\n")):(r=[lI(n),"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,y,n.extensionCl
vendor: 5,427 bytes, line 220
220ipCullDistance?"#define USE_CLIP_DISTANCE":"",n.batching?"#define USE_BATCHING":"",n.batchingColor?"#define USE_BATCHING_COLOR":"",n.instancing?"#define USE_INSTANCING":"",n.instancingColor?"#define USE_INSTANCING_COLOR":"",n.instancingMorph?"#define USE_INSTANCING_MORPH":"",n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+p:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.displacementMap?"#define USE_DISPLACEMENTMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.anisotropy?"#define USE_ANISOTROPY":"",n.anisotropyMap?"#define USE_ANISOTROPYMAP":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaHash?"#define USE_ALPHAHASH":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.mapUv?"#define MAP_UV "+n.mapUv:"",n.alphaMapUv?"#define ALPHAMAP_UV "+n.alphaMapUv:"",n.lightMapUv?"#define LIGHTMAP_UV "+n.lightMapUv:"",n.aoMapUv?"#define AOMAP_UV "+n.aoMapUv:"",n.emissiveMapUv?"#define EMISSIVEMAP_UV "+n.emissiveMapUv:"",n.bumpMapUv?"#define BUMPMAP_UV "+n.bumpMapUv:"",n.normalMapUv?"#define NORMALMAP_UV "+n.normalMapUv:"",n.displacementMapUv?"#define DISPLACEMENTMAP_UV "+n.displacementMapUv:"",n.metalnessMapUv?"#define METALNESSMAP_UV "+n.metalnessMapUv:"",n.roughnessMapUv?"#define ROUGHNESSMAP_UV "+n.roughnessMapUv:"",n.anisotropyMapUv?"#define ANISOTROPYMAP_UV "+n.anisotropyMapUv:"",n.clearcoatMapUv?"#define CLEARCOATMAP_UV "+n.clearcoatMapUv:"",n.clearcoatNormalMapUv?"#define CLEARCOAT_NORMALMAP_UV "+n.clearcoatNormalMapUv:"",n.clearcoatRoughnessMapUv?"#define CLEARCOAT_ROUGHNESSMAP_UV "+n.clearcoatRoughnessMapUv:"",n.iridescenceMapUv?"#define IRIDESCENCEMAP_UV "+n.iridescenceMapUv:"",n.iridescenceThicknessMapUv?"#define IRIDESCENCE_THICKNESSMAP_UV "+n.iridescenceThicknessMapUv:"",n.sheenColorMapUv?"#define SHEEN_COLORMAP_UV "+n.sheenColorMapUv:"",n.sheenRoughnessMapUv?"#define SHEEN_ROUGHNESSMAP_UV "+n.sheenRoughnessMapUv:"",n.specularMapUv?"#define SPECULARMAP_UV "+n.specularMapUv:"",n.specularColorMapUv?"#define SPECULAR_COLORMAP_UV "+n.specularColorMapUv:"",n.specularIntensityMapUv?"#define SPECULAR_INTENSITYMAP_UV "+n.specularIntensityMapUv:"",n.transmissionMapUv?"#define TRANSMISSIONMAP_UV "+n.transmissionMapUv:"",n.thicknessMapUv?"#define THICKNESSMAP_UV "+n.thicknessMapUv:"",n.vertexTangents&&!1===n.flatShading?"#define USE_TANGENT":"",n.vertexColors?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUv1s?"#define USE_UV1":"",n.vertexUv2s?"#define USE_UV2":"",n.vertexUv3s?"#define USE_UV3":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.flatShading?"#define FLAT_SHADED":"",n.skinning?"#define USE_SKINNING":"",n.morphTargets?"#define USE_MORPHTARGETS":"",n.morphNormals&&!1===n.flatShading?"#define USE_MORPHNORMALS":"",n.morphColors?"#define USE_MORPHCOLORS":"",n.morphTargetsCount>0?"#define MORPHTARGETS_TEXTURE_STRIDE "+n.morphTextureStride:"",n.morphTargetsCount>0?"#define MORPHTARGETS_COUNT "+n.morphTargetsCount:"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+h:"",n.sizeAttenuation?"#define USE_SIZEATTENUATION":"",n.numLightProbes>0?"#define USE_LIGHT_PROBES":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.reverseDepthBuffer?"#define USE_REVERSEDEPTHBUF":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING"," attribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR"," attribute vec3 instanceColor;","#endif","#ifdef USE_INSTANCING_MORPH"," uniform sampler2D morphTexture;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_UV1"," attribute vec2 uv1;","#endif","#ifdef USE_UV2"," attribute vec2 uv2;","#endif","#ifdef USE_UV3"," attribute vec2 uv3;","#endif","#ifdef USE_TANGENT"," attribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )"," attribute vec4 color;","#elif defined( USE_COLOR )"," attribute vec3 color;","#endif","#ifdef USE_SKINNING"," attribute vec4 skinIndex;"," attribute vec4 skinWeight;","#endif","\n"].filter(lx).join("\n"),a=[lI(n),"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,y,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.alph
vendor: 41,590 bytes, line 220
220aToCoverage?"#define ALPHA_TO_COVERAGE":"",n.map?"#define USE_MAP":"",n.matcap?"#define USE_MATCAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+f:"",n.envMap?"#define "+p:"",n.envMap?"#define "+m:"",g?"#define CUBEUV_TEXEL_WIDTH "+g.texelWidth:"",g?"#define CUBEUV_TEXEL_HEIGHT "+g.texelHeight:"",g?"#define CUBEUV_MAX_MIP "+g.maxMip+".0":"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.anisotropy?"#define USE_ANISOTROPY":"",n.anisotropyMap?"#define USE_ANISOTROPYMAP":"",n.clearcoat?"#define USE_CLEARCOAT":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.dispersion?"#define USE_DISPERSION":"",n.iridescence?"#define USE_IRIDESCENCE":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaTest?"#define USE_ALPHATEST":"",n.alphaHash?"#define USE_ALPHAHASH":"",n.sheen?"#define USE_SHEEN":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.vertexTangents&&!1===n.flatShading?"#define USE_TANGENT":"",n.vertexColors||n.instancingColor||n.batchingColor?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUv1s?"#define USE_UV1":"",n.vertexUv2s?"#define USE_UV2":"",n.vertexUv3s?"#define USE_UV3":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.gradientMap?"#define USE_GRADIENTMAP":"",n.flatShading?"#define FLAT_SHADED":"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+h:"",n.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",n.numLightProbes>0?"#define USE_LIGHT_PROBES":"",n.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",n.decodeVideoTextureEmissive?"#define DECODE_VIDEO_TEXTURE_EMISSIVE":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.reverseDepthBuffer?"#define USE_REVERSEDEPTHBUF":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",n.toneMapping!==et?"#define TONE_MAPPING":"",n.toneMapping!==et?sD.tonemapping_pars_fragment:"",n.toneMapping!==et?lm("toneMapping",n.toneMapping):"",n.dithering?"#define DITHERING":"",n.opaque?"#define OPAQUE":"",sD.colorspace_pars_fragment,lp("linearToOutputTexel",n.outputColorSpace),lv(),n.useDepthPacking?"#define DEPTH_PACKING "+n.depthPacking:"","\n"].filter(lx).join("\n")),c=lE(c=lC(c=lT(c),n),n),d=lE(d=lC(d=lT(d),n),n),c=lM(c),d=lM(d),!0!==n.isRawShaderMaterial&&(b="#version 300 es\n",r=[v,"#define attribute in","#define varying out","#define texture2D texture"].join("\n")+"\n"+r,a=["#define varying in",n.glslVersion===tV?"":"layout(location = 0) out highp vec4 pc_fragColor;",n.glslVersion===tV?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join("\n")+"\n"+a);let x=b+r+c,C=b+a+d,E=lo(l,l.VERTEX_SHADER,x),w=lo(l,l.FRAGMENT_SHADER,C);function T(t){if(e.debug.checkShaderErrors){let n=l.getProgramInfoLog(_).trim(),i=l.getShaderInfoLog(E).trim(),s=l.getShaderInfoLog(w).trim(),o=!0,u=!0;if(!1===l.getProgramParameter(_,l.LINK_STATUS)){if(o=!1,"function"==typeof e.debug.onShaderError)e.debug.onShaderError(l,_,E,w);else{let e=lf(l,E,"vertex"),i=lf(l,w,"fragment");console.error("THREE.WebGLProgram: Shader Error "+l.getError()+" - VALIDATE_STATUS "+l.getProgramParameter(_,l.VALIDATE_STATUS)+"\n\nMaterial Name: "+t.name+"\nMaterial Type: "+t.type+"\n\nProgram Info Log: "+n+"\n"+e+"\n"+i)}}else""!==n?console.warn("THREE.WebGLProgram: Program Info Log:",n):(""===i||""===s)&&(u=!1);u&&(t.diagnostics={runnable:o,programLog:n,vertexShader:{log:i,prefix:r},fragmentShader:{log:s,prefix:a}})}l.deleteShader(E),l.deleteShader(w),s=new ls(l,_),o=lb(l,_)}l.attachShader(_,E),l.attachShader(_,w),void 0!==n.index0AttributeName?l.bindAttribLocation(_,0,n.index0AttributeName):!0===n.morphTargets&&l.bindAttribLocation(_,0,"position"),l.linkProgram(_),this.getUniforms=function(){return void 0===s&&T(this),s},this.getAttributes=function(){return void 0===o&&T(this),o};let S=!1===n.rendererExtensionParallelShaderCompile;return this.isReady=function(){return!1===S&&(S=l.getProgramParameter(_,ll)),S},this.destroy=function(){i.releaseStatesOfProgram(this),l.deleteProgram(_),this.program=void 0},this.type=n.shaderType,this.name=n.shaderName,this.id=lu++,this.cacheKey=t,this.usedTimes=1,this.program=_,this.vertexShader=E,this.fragmentShader=w,this}let lj=0;class lU{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){let t=e.vertexShader,n=e.fragmentShader,i=this._getShaderStage(t),r=this._getShaderStage(n),a=this._getShaderCacheForMaterial(e);return!1===a.has(i)&&(a.add(i),i.usedTimes++),!1===a.has(r)&&(a.add(r),r.usedTimes++),this}remove(e){for(let t of this.materialCache.get(e))t.usedTimes--,0===t.usedTimes&&this.shaderCache.delete(t.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){let t=this.materialCache,n=t.get(e);return void 0===n&&(n=new Set,t.set(e,n)),n}_getShaderStage(e){let t=this.shaderCache,n=t.get(e);return void 0===n&&(n=new lV(e),t.set(e,n)),n}}class lV{constructor(e){this.id=lj++,this.code=e,this.usedTimes=0}}function lB(e,t,n,i,r,a,s){let o=new n4,l=new lU,u=new Set,c=[],d=r.logarithmicDepthBuffer,h=r.vertexTextures,f=r.precision,p={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};function m(e){return(u.add(e),0===e)?"uv":`uv${e}`}function y(e,t){e.push(t.precision),e.push(t.outputColorSpace),e.push(t.envMapMode),e.push(t.envMapCubeUVHeight),e.push(t.mapUv),e.push(t.alphaMapUv),e.push(t.lightMapUv),e.push(t.aoMapUv),e.push(t.bumpMapUv),e.push(t.normalMapUv),e.push(t.displacementMapUv),e.push(t.emissiveMapUv),e.push(t.metalnessMapUv),e.push(t.roughnessMapUv),e.push(t.anisotropyMapUv),e.push(t.clearcoatMapUv),e.push(t.clearcoatNormalMapUv),e.push(t.clearcoatRoughnessMapUv),e.push(t.iridescenceMapUv),e.push(t.iridescenceThicknessMapUv),e.push(t.sheenColorMapUv),e.push(t.sheenRoughnessMapUv),e.push(t.specularMapUv),e.push(t.specularColorMapUv),e.push(t.specularIntensityMapUv),e.push(t.transmissionMapUv),e.push(t.thicknessMapUv),e.push(t.combine),e.push(t.fogExp2),e.push(t.sizeAttenuation),e.push(t.morphTargetsCount),e.push(t.morphAttributeCount),e.push(t.numDirLights),e.push(t.numPointLights),e.push(t.numSpotLights),e.push(t.numSpotLightMaps),e.push(t.numHemiLights),e.push(t.numRectAreaLights),e.push(t.numDirLightShadows),e.push(t.numPointLightShadows),e.push(t.numSpotLightShadows),e.push(t.numSpotLightShadowsWithMaps),e.push(t.numLightProbes),e.push(t.shadowMapType),e.push(t.toneMapping),e.push(t.numClippingPlanes),e.push(t.numClipIntersection),e.push(t.depthPacking)}function b(e,t){o.disableAll(),t.supportsVertexTextures&&o.enable(0),t.instancing&&o.enable(1),t.instancingColor&&o.enable(2),t.instancingMorph&&o.enable(3),t.matcap&&o.enable(4),t.envMap&&o.enable(5),t.normalMapObjectSpace&&o.enable(6),t.normalMapTangentSpace&&o.enable(7),t.clearcoat&&o.enable(8),t.iridescence&&o.enable(9),t.alphaTest&&o.enable(10),t.vertexColors&&o.enable(11),t.vertexAlphas&&o.enable(12),t.vertexUv1s&&o.enable(13),t.vertexUv2s&&o.enable(14),t.vertexUv3s&&o.enable(15),t.vertexTangents&&o.enable(16),t.anisotropy&&o.enable(17),t.alphaHash&&o.enable(18),t.batching&&o.enable(19),t.dispersion&&o.enable(20),t.batchingColor&&o.enable(21),e.push(o.mask),o.disableAll(),t.fog&&o.enable(0),t.useFog&&o.enable(1),t.flatShading&&o.enable(2),t.logarithmicDepthBuffer&&o.enable(3),t.reverseDepthBuffer&&o.enable(4),t.skinning&&o.enable(5),t.morphTargets&&o.enable(6),t.morphNormals&&o.enable(7),t.morphColors&&o.enable(8),t.premultipliedAlpha&&o.enable(9),t.shadowMapEnabled&&o.enable(10),t.doubleSided&&o.enable(11),t.flipSided&&o.enable(12),t.useDepthPacking&&o.enable(13),t.dithering&&o.enable(14),t.transmission&&o.enable(15),t.sheen&&o.enable(16),t.opaque&&o.enable(17),t.pointsUvs&&o.enable(18),t.decodeVideoTexture&&o.enable(19),t.decodeVideoTextureEmissive&&o.enable(20),t.alphaToCoverage&&o.enable(21),e.push(o.mask)}return{getParameters:function(a,o,c,y,b){let x,C,E,w;let T=y.fog,S=b.geometry,L=a.isMeshStandardMaterial?y.environment:null,P=(a.isMeshStandardMaterial?n:t).get(a.envMap||L),M=P&&P.mapping===ep?P.image.height:null,A=p[a.type];null!==a.precision&&(f=r.getMaxPrecision(a.precision))!==a.precision&&console.warn("THREE.WebGLProgram.getParameters:",a.precision,"not supported, using",f,"instead.");let I=S.morphAttributes.position||S.morphAttributes.normal||S.morphAttributes.color,R=void 0!==I?I.length:0,k=0;if(void 0!==S.morphAttributes.position&&(k=1),void 0!==S.morphAttributes.normal&&(k=2),void 0!==S.morphAttributes.color&&(k=3),A){let e=sF[A];x=e.vertexShader,C=e.fragmentShader}else x=a.vertexShader,C=a.fragmentShader,l.update(a),E=l.getVertexShaderID(a),w=l.getFragmentShaderID(a);let D=e.getRenderTarget(),N=e.state.buffers.depth.getReversed(),F=!0===b.isInstancedMesh,O=!0===b.isBatchedMesh,j=!!a.map,U=!!a.matcap,V=!!P,B=!!a.aoMap,H=!!a.lightMap,G=!!a.bumpMap,z=!!a.normalMap,q=!!a.displacementMap,W=!!a.emissiveMap,$=!!a.metalnessMap,Z=!!a.roughnessMap,Y=a.anisotropy>0,K=a.clearcoat>0,X=a.dispersion>0,Q=a.iridescence>0,J=a.sheen>0,ee=a.transmission>0,en=Y&&!!a.anisotropyMap,ei=K&&!!a.clearcoatMap,er=K&&!!a.clearcoatNormalMap,ea=K&&!!a.clearcoatRoughnessMap,es=Q&&!!a.iridescenceMap,eo=Q&&!!a.iridescenceThicknessMap,el=J&&!!a.sheenColorMap,eu=J&&!!a.sheenRoughnessMap,ec=!!a.specularMap,ed=!!a.specularColorMap,eh=!!a.specularIntensityMap,ef=ee&&!!a.transmissionMap,em=ee&&!!a.thicknessMap,eg=!!a.gradientMap,ev=!!a.alphaMap,ey=a.alphaTest>0,e_=!!a.alphaHash,eb=!!a.extensions,ex=et;a.toneMapped&&(null===D||!0===D.isXRRenderTarget)&&(ex=e.toneMapping);let eC={shaderID:A,shaderType:a.type,shaderName:a.name,vertexShader:x,fragmentShader:C,defines:a.defines,customVertexShaderID:E,customFragmentShaderID:w,isRawShaderMaterial:!0===a.isRawShaderMaterial,glslVersion:a.glslVersion,precision:f,batching:O,batchingColor:O&&null!==b._colorsTexture,instancing:F,instancingColor:F&&null!==b.instanceColor,instancingMorph:F&&null!==b.morphTexture,supportsVertexTextures:h,outputColorSpace:null===D?e.outputColorSpace:!0===D.isXRRenderTarget?D.texture.colorSpace:tS,alphaToCoverage:!!a.alphaToCoverage,map:j,matcap:U,envMap:V,envMapMode:V&&P.mapping,envMapCubeUVHeight:M,aoMap:B,lightMap:H,bumpMap:G,normalMap:z,displacementMap:h&&q,emissiveMap:W,normalMapObjectSpace:z&&a.normalMapType===tE,normalMapTangentSpace:z&&a.normalMapType===tC,metalnessMap:$,roughnessMap:Z,anisotropy:Y,anisotropyMap:en,clearcoat:K,clearcoatMap:ei,clearcoatNormalMap:er,clearcoatRoughnessMap:ea,dispersion:X,iridescence:Q,iridescenceMap:es,iridescenceThicknessMap:eo,sheen:J,sheenColorMap:el,sheenRoughnessMap:eu,specularMap:ec,specularColorMap:ed,specularIntensityMap:eh,transmission:ee,transmissionMap:ef,thicknessMap:em,gradientMap:eg,opaque:!1===a.transparent&&a.blending===_&&!1===a.alphaToCoverage,alphaMap:ev,alphaTest:ey,alphaHash:e_,combine:a.combine,mapUv:j&&m(a.map.channel),aoMapUv:B&&m(a.aoMap.channel),lightMapUv:H&&m(a.lightMap.channel),bumpMapUv:G&&m(a.bumpMap.channel),normalMapUv:z&&m(a.normalMap.channel),displacementMapUv:q&&m(a.displacementMap.channel),emissiveMapUv:W&&m(a.emissiveMap.channel),metalnessMapUv:$&&m(a.metalnessMap.channel),roughnessMapUv:Z&&m(a.roughnessMap.channel),anisotropyMapUv:en&&m(a.anisotropyMap.channel),clearcoatMapUv:ei&&m(a.clearcoatMap.channel),clearcoatNormalMapUv:er&&m(a.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:ea&&m(a.clearcoatRoughnessMap.channel),iridescenceMapUv:es&&m(a.iridescenceMap.channel),iridescenceThicknessMapUv:eo&&m(a.iridescenceThicknessMap.channel),sheenColorMapUv:el&&m(a.sheenColorMap.channel),sheenRoughnessMapUv:eu&&m(a.sheenRoughnessMap.channel),specularMapUv:ec&&m(a.specularMap.channel),specularColorMapUv:ed&&m(a.specularColorMap.channel),specularIntensityMapUv:eh&&m(a.specularIntensityMap.channel),transmissionMapUv:ef&&m(a.transmissionMap.channel),thicknessMapUv:em&&m(a.thicknessMap.channel),alphaMapUv:ev&&m(a.alphaMap.channel),vertexTangents:!!S.attributes.tangent&&(z||Y),vertexColors:a.vertexColors,vertexAlphas:!0===a.vertexColors&&!!S.attributes.color&&4===S.attributes.color.itemSize,pointsUvs:!0===b.isPoints&&!!S.attributes.uv&&(j||ev),fog:!!T,useFog:!0===a.fog,fogExp2:!!T&&T.isFogExp2,flatShading:!0===a.flatShading,sizeAttenuation:!0===a.sizeAttenuation,logarithmicDepthBuffer:d,reverseDepthBuffer:N,skinning:!0===b.isSkinnedMesh,morphTargets:void 0!==S.morphAttributes.position,morphNormals:void 0!==S.morphAttributes.normal,morphColors:void 0!==S.morphAttributes.color,morphTargetsCount:R,morphTextureStride:k,numDirLights:o.directional.length,numPointLights:o.point.length,numSpotLights:o.spot.length,numSpotLightMaps:o.spotLightMap.length,numRectAreaLights:o.rectArea.length,numHemiLights:o.hemi.length,numDirLightShadows:o.directionalShadowMap.length,numPointLightShadows:o.pointShadowMap.length,numSpotLightShadows:o.spotShadowMap.length,numSpotLightShadowsWithMaps:o.numSpotLightShadowsWithMaps,numLightProbes:o.numLightProbes,numClippingPlanes:s.numPlanes,numClipIntersection:s.numIntersection,dithering:a.dithering,shadowMapEnabled:e.shadowMap.enabled&&c.length>0,shadowMapType:e.shadowMap.type,toneMapping:ex,decodeVideoTexture:j&&!0===a.map.isVideoTexture&&ns.getTransfer(a.map.colorSpace)===tP,decodeVideoTextureEmissive:W&&!0===a.emissiveMap.isVideoTexture&&ns.getTransfer(a.emissiveMap.colorSpace)===tP,premultipliedAlpha:a.premultipliedAlpha,doubleSided:a.side===v,flipSided:a.side===g,useDepthPacking:a.depthPacking>=0,depthPacking:a.depthPacking||0,index0AttributeName:a.index0AttributeName,extensionClipCullDistance:eb&&!0===a.extensions.clipCullDistance&&i.has("WEBGL_clip_cull_distance"),extensionMultiDraw:(eb&&!0===a.extensions.multiDraw||O)&&i.has("WEBGL_multi_draw"),rendererExtensionParallelShaderCompile:i.has("KHR_parallel_shader_compile"),customProgramCacheKey:a.customProgramCacheKey()};return eC.vertexUv1s=u.has(1),eC.vertexUv2s=u.has(2),eC.vertexUv3s=u.has(3),u.clear(),eC},getProgramCacheKey:function(t){let n=[];if(t.shaderID?n.push(t.shaderID):(n.push(t.customVertexShaderID),n.push(t.customFragmentShaderID)),void 0!==t.defines)for(let e in t.defines)n.push(e),n.push(t.defines[e]);return!1===t.isRawShaderMaterial&&(y(n,t),b(n,t),n.push(e.outputColorSpace)),n.push(t.customProgramCacheKey),n.join()},getUniforms:function(e){let t;let n=p[e.type];if(n){let e=sF[n];t=ro.clone(e.uniforms)}else t=e.uniforms;return t},acquireProgram:function(t,n){let i;for(let e=0,t=c.length;e<t;e++){let t=c[e];if(t.cacheKey===n){i=t,++i.usedTimes;break}}return void 0===i&&(i=new lO(e,n,t,a),c.push(i)),i},releaseProgram:function(e){if(0==--e.usedTimes){let t=c.indexOf(e);c[t]=c[c.length-1],c.pop(),e.destroy()}},releaseShaderCache:function(e){l.remove(e)},programs:c,dispose:function(){l.dispose()}}}function lH(){let e=new WeakMap;return{has:function(t){return e.has(t)},get:function(t){let n=e.get(t);return void 0===n&&(n={},e.set(t,n)),n},remove:function(t){e.delete(t)},update:function(t,n,i){e.get(t)[n]=i},dispose:function(){e=new WeakMap}}}function lG(e,t){return e.groupOrder!==t.groupOrder?e.groupOrder-t.groupOrder:e.renderOrder!==t.renderOrder?e.renderOrder-t.renderOrder:e.material.id!==t.material.id?e.material.id-t.material.id:e.z!==t.z?e.z-t.z:e.id-t.id}function lz(e,t){return e.groupOrder!==t.groupOrder?e.groupOrder-t.groupOrder:e.renderOrder!==t.renderOrder?e.renderOrder-t.renderOrder:e.z!==t.z?t.z-e.z:e.id-t.id}function lq(){let e=[],t=0,n=[],i=[],r=[];function a(){t=0,n.length=0,i.length=0,r.length=0}function s(n,i,r,a,s,o){let l=e[t];return void 0===l?(l={id:n.id,object:n,geometry:i,material:r,groupOrder:a,renderOrder:n.renderOrder,z:s,group:o},e[t]=l):(l.id=n.id,l.object=n,l.geometry=i,l.material=r,l.groupOrder=a,l.renderOrder=n.renderOrder,l.z=s,l.group=o),t++,l}function o(e,t,a,o,l,u){let c=s(e,t,a,o,l,u);a.transmission>0?i.push(c):!0===a.transparent?r.push(c):n.push(c)}function l(e,t,a,o,l,u){let c=s(e,t,a,o,l,u);a.transmission>0?i.unshift(c):!0===a.transparent?r.unshift(c):n.unshift(c)}function u(e,t){n.length>1&&n.sort(e||lG),i.length>1&&i.sort(t||lz),r.length>1&&r.sort(t||lz)}return{opaque:n,transmissive:i,transparent:r,init:a,push:o,unshift:l,finish:function(){for(let n=t,i=e.length;n<i;n++){let t=e[n];if(null===t.id)break;t.id=null,t.object=null,t.geometry=null,t.material=null,t.group=null}},sort:u}}function lW(){let e=new WeakMap;return{get:function(t,n){let i;let r=e.get(t);return void 0===r?(i=new lq,e.set(t,[i])):n>=r.length?(i=new lq,r.push(i)):i=r[n],i},dispose:function(){e=new WeakMap}}}function l$(){let e={};return{get:function(t){let n;if(void 0!==e[t.id])return e[t.id];switch(t.type){case"DirectionalLight":n={direction:new t1,color:new iR};break;case"SpotLight":n={position:new t1,direction:new t1,color:new iR,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":n={position:new t1,color:new iR,distance:0,decay:0};break;case"HemisphereLight":n={direction:new t1,skyColor:new iR,groundColor:new iR};break;case"RectAreaLight":n={color:new iR,position:new t1,halfWidth:new t1,halfHeight:new t1}}return e[t.id]=n,n}}}function lZ(){let e={};return{get:function(t){let n;if(void 0!==e[t.id])return e[t.id];switch(t.type){case"DirectionalLight":case"SpotLight":n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new tJ};break;case"PointLight":n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new tJ,shadowCameraNear:1,shadowCameraFar:1e3}}return e[t.id]=n,n}}}let lY=0;function lK(e,t){return(t.castShadow?2:0)-(e.castShadow?2:0)+(t.map?1:0)-(e.map?1:0)}function lX(e){let t=new l$,n=lZ(),i={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let e=0;e<9;e++)i.probe.push(new t1);let r=new t1,a=new nZ,s=new nZ;return{setup:function(r){let a=0,s=0,o=0;for(let e=0;e<9;e++)i.probe[e].set(0,0,0);let l=0,u=0,c=0,d=0,h=0,f=0,p=0,m=0,g=0,v=0,y=0;r.sort(lK);for(let e=0,_=r.length;e<_;e++){let _=r[e],b=_.color,x=_.intensity,C=_.distance,E=_.shadow&&_.shadow.map?_.shadow.map.texture:null;if(_.isAmbientLight)a+=b.r*x,s+=b.g*x,o+=b.b*x;else if(_.isLightProbe){for(let e=0;e<9;e++)i.probe[e].addScaledVector(_.sh.coefficients[e],x);y++}else if(_.isDirectionalLight){let e=t.get(_);if(e.color.copy(_.color).multiplyScalar(_.intensity),_.castShadow){let e=_.shadow,t=n.get(_);t.shadowIntensity=e.intensity,t.shadowBias=e.bias,t.shadowNormalBias=e.normalBias,t.shadowRadius=e.radius,t.shadowMapSize=e.mapSize,i.directionalShadow[l]=t,i.directionalShadowMap[l]=E,i.directionalShadowMatrix[l]=_.shadow.matrix,f++}i.directional[l]=e,l++}else if(_.isSpotLight){let e=t.get(_);e.position.setFromMatrixPosition(_.matrixWorld),e.color.copy(b).multiplyScalar(x),e.distance=C,e.coneCos=Math.cos(_.angle),e.penumbraCos=Math.cos(_.angle*(1-_.penumbra)),e.decay=_.decay,i.spot[c]=e;let r=_.shadow;if(_.map&&(i.spotLightMap[g]=_.map,g++,r.updateMatrices(_),_.castShadow&&v++),i.spotLightMatrix[c]=r.matrix,_.castShadow){let e=n.get(_);e.shadowIntensity=r.intensity,e.shadowBias=r.bias,e.shadowNormalBias=r.normalBias,e.shadowRadius=r.radius,e.shadowMapSize=r.mapSize,i.spotShadow[c]=e,i.spotShadowMap[c]=E,m++}c++}else if(_.isRectAreaLight){let e=t.get(_);e.color.copy(b).multiplyScalar(x),e.halfWidth.set(.5*_.width,0,0),e.halfHeight.set(0,.5*_.height,0),i.rectArea[d]=e,d++}else if(_.isPointLight){let e=t.get(_);if(e.color.copy(_.color).multiplyScalar(_.intensity),e.distance=_.distance,e.decay=_.decay,_.castShadow){let e=_.shadow,t=n.get(_);t.shadowIntensity=e.intensity,t.shadowBias=e.bias,t.shadowNormalBias=e.normalBias,t.shadowRadius=e.radius,t.shadowMapSize=e.mapSize,t.shadowCameraNear=e.camera.near,t.shadowCameraFar=e.camera.far,i.pointShadow[u]=t,i.pointShadowMap[u]=E,i.pointShadowMatrix[u]=_.shadow.matrix,p++}i.point[u]=e,u++}else if(_.isHemisphereLight){let e=t.get(_);e.skyColor.copy(_.color).multiplyScalar(x),e.groundColor.copy(_.groundColor).multiplyScalar(x),i.hemi[h]=e,h++}}d>0&&(!0===e.has("OES_texture_float_linear")?(i.rectAreaLTC1=sN.LTC_FLOAT_1,i.rectAreaLTC2=sN.LTC_FLOAT_2):(i.rectAreaLTC1=sN.LTC_HALF_1,i.rectAreaLTC2=sN.LTC_HALF_2)),i.ambient[0]=a,i.ambient[1]=s,i.ambient[2]=o;let _=i.hash;(_.directionalLength!==l||_.pointLength!==u||_.spotLength!==c||_.rectAreaLength!==d||_.hemiLength!==h||_.numDirectionalShadows!==f||_.numPointShadows!==p||_.numSpotShadows!==m||_.numSpotMaps!==g||_.numLightProbes!==y)&&(i.directional.length=l,i.spot.length=c,i.rectArea.length=d,i.point.length=u,i.hemi.length=h,i.directionalShadow.length=f,i.directionalShadowMap.length=f,i.pointShadow.length=p,i.pointShadowMap.length=p,i.spotShadow.length=m,i.spotShadowMap.length=m,i.directionalShadowMatrix.length=f,i.pointShadowMatrix.length=p,i.spotLightMatrix.length=m+g-v,i.spotLightMap.length=g,i.numSpotLightShadowsWithMaps=v,i.numLightProbes=y,_.directionalLength=l,_.pointLength=u,_.spotLength=c,_.rectAreaLength=d,_.hemiLength=h,_.numDirectionalShadows=f,_.numPointShadows=p,_.numSpotShadows=m,_.numSpotMaps=g,_.numLightProbes=y,i.version=lY++)},setupView:function(e,t){let n=0,o=0,l=0,u=0,c=0,d=t.matrixWorldInverse;for(let t=0,h=e.length;t<h;t++){let h=e[t];if(h.isDirectionalLight){let e=i.directional[n];e.direction.setFromMatrixPosition(h.matrixWorld),r.setFromMatrixPosition(h.target.matrixWorld),e.direction.sub(r),e.direction.transformDirection(d),n++}else if(h.isSpotLight){let e=i.spot[l];e.position.setFromMatrixPosition(h.matrixWorld),e.position.applyMatrix4(d),e.direction.setFromMatrixPosition(h.matrixWorld),r.setFromMatrixPosition(h.target.matrixWorld),e.direction.sub(r),e.direction.transformDirection(d),l++}else if(h.isRectAreaLight){let e=i.rectArea[u];e.position.setFromMatrixPosition(h.matrixWorld),e.position.applyMatrix4(d),s.identity(),a.copy(h.matrixWorld),a.premultiply(d),s.extractRotation(a),e.halfWidth.set(.5*h.width,0,0),e.halfHeight.set(0,.5*h.height,0),e.halfWidth.applyMatrix4(s),e.halfHeight.applyMatrix4(s),u++}else if(h.isPointLight){let e=i.point[o];e.position.setFromMatrixPosition(h.matrixWorld),e.position.applyMatrix4(d),o++}else if(h.isHemisphereLight){let e=i.hemi[c];e.direction.setFromMatrixPosition(h.matrixWorld),e.direction.transformDirection(d),c++}}},state:i}}function lQ(e){let t=new lX(e),n=[],i=[];function r(e){u.camera=e,n.length=0,i.length=0}function a(e){n.push(e)}function s(e){i.push(e)}function o(){t.setup(n)}function l(e){t.setupView(n,e)}let u={lightsArray:n,shadowsArray:i,camera:null,lights:t,transmissionRenderTarget:{}};return{init:r,state:u,setupLights:o,setupLightsView:l,pushLight:a,pushShadow:s}}function lJ(e){let t=new WeakMap;return{get:function(n,i=0){let r;let a=t.get(n);return void 0===a?(r=new lQ(e),t.set(n,[r])):i>=a.length?(r=new lQ(e),a.push(r)):r=a[i],r},dispose:function(){t=new WeakMap}}}let l0="void main() {\n gl_Position = vec4( position, 1.0 );\n}",l1="uniform sampler2D shadow_pass;\nuniform vec2 resolution;\nuniform float radius;\n#include <packing>\nvoid main() {\n const float samples = float( VSM_SAMPLES );\n float mean = 0.0;\n float squared_mean = 0.0;\n float uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 );\n float uvStart = samples <= 1.0 ? 0.0 : - 1.0;\n for ( float i = 0.0; i < samples; i ++ ) {\n float uvOffset = uvStart + i * uvStride;\n #ifdef HORIZONTAL_PASS\n vec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ) );\n mean += distribution.x;\n squared_mean += distribution.y * distribution.y + distribution.x * distribution.x;\n #else\n float depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ) );\n mean += depth;\n squared_mean += depth * depth;\n #endif\n }\n mean = mean / samples;\n squared_mean = squared_mean / samples;\n float std_dev = sqrt( squared_mean - mean * mean );\n gl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );\n}";function l2(e,t,n){let i=new rI,r=new tJ,a=new tJ,s=new ng,o=new a8({depthPacking:tx}),l=new a7,u={},c=n.maxTextureSize,d={[m]:g,[g]:m,[v]:v},f=new rc({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new tJ},radius:{value:4}},vertexShader:l0,fragmentShader:l1}),_=f.clone();_.defines.HORIZONTAL_PASS=1;let b=new iX;b.setAttribute("position",new iV(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));let x=new i9(b,f),C=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=h;let E=this.type;function w(n,i){let a=t.update(x);f.defines.VSM_SAMPLES!==n.blurSamples&&(f.defines.VSM_SAMPLES=n.blurSamples,_.defines.VSM_SAMPLES=n.blurSamples,f.needsUpdate=!0,_.needsUpdate=!0),null===n.mapPass&&(n.mapPass=new ny(r.x,r.y)),f.uniforms.shadow_pass.value=n.map.texture,f.uniforms.resolution.value=n.mapSize,f.uniforms.radius.value=n.radius,e.setRenderTarget(n.mapPass),e.clear(),e.renderBufferDirect(i,null,a,f,x,null),_.uniforms.shadow_pass.value=n.mapPass.texture,_.uniforms.resolution.value=n.mapSize,_.uniforms.radius.value=n.radius,e.setRenderTarget(n.map),e.clear(),e.renderBufferDirect(i,null,a,_,x,null)}function T(t,n,i,r){let a=null,s=!0===i.isPointLight?t.customDistanceMaterial:t.customDepthMaterial;if(void 0!==s)a=s;else if(a=!0===i.isPointLight?l:o,e.localClippingEnabled&&!0===n.clipShadows&&Array.isArray(n.clippingPlanes)&&0!==n.clippingPlanes.length||n.displacementMap&&0!==n.displacementScale||n.alphaMap&&n.alphaTest>0||n.map&&n.alphaTest>0||!0===n.alphaToCoverage){let e=a.uuid,t=n.uuid,i=u[e];void 0===i&&(i={},u[e]=i);let r=i[t];void 0===r&&(r=a.clone(),i[t]=r,n.addEventListener("dispose",L)),a=r}return a.visible=n.visible,a.wireframe=n.wireframe,r===p?a.side=null!==n.shadowSide?n.shadowSide:n.side:a.side=null!==n.shadowSide?n.shadowSide:d[n.side],a.alphaMap=n.alphaMap,a.alphaTest=!0===n.alphaToCoverage?.5:n.alphaTest,a.map=n.map,a.clipShadows=n.clipShadows,a.clippingPlanes=n.clippingPlanes,a.clipIntersection=n.clipIntersection,a.displacementMap=n.displacementMap,a.displacementScale=n.displacementScale,a.displacementBias=n.displacementBias,a.wireframeLinewidth=n.wireframeLinewidth,a.linewidth=n.linewidth,!0===i.isPointLight&&!0===a.isMeshDistanceMaterial&&(e.properties.get(a).light=i),a}function S(n,r,a,s,o){if(!1===n.visible)return;if(n.layers.test(r.layers)&&(n.isMesh||n.isLine||n.isPoints)&&(n.castShadow||n.receiveShadow&&o===p)&&(!n.frustumCulled||i.intersectsObject(n))){n.modelViewMatrix.multiplyMatrices(a.matrixWorldInverse,n.matrixWorld);let i=t.update(n),l=n.material;if(Array.isArray(l)){let t=i.groups;for(let u=0,c=t.length;u<c;u++){let c=t[u],d=l[c.materialIndex];if(d&&d.visible){let t=T(n,d,s,o);n.onBeforeShadow(e,n,r,a,i,t,c),e.renderBufferDirect(a,null,i,t,n,c),n.onAfterShadow(e,n,r,a,i,t,c)}}}else if(l.visible){let t=T(n,l,s,o);n.onBeforeShadow(e,n,r,a,i,t,null),e.renderBufferDirect(a,null,i,t,n,null),n.onAfterShadow(e,n,r,a,i,t,null)}}let l=n.children;for(let e=0,t=l.length;e<t;e++)S(l[e],r,a,s,o)}function L(e){for(let t in e.target.removeEventListener("dispose",L),u){let n=u[t],i=e.target.uuid;i in n&&(n[i].dispose(),delete n[i])}}this.render=function(t,n,o){if(!1===C.enabled||!1===C.autoUpdate&&!1===C.needsUpdate||0===t.length)return;let l=e.getRenderTarget(),u=e.getActiveCubeFace(),d=e.getActiveMipmapLevel(),h=e.state;h.setBlending(y),h.buffers.color.setClear(1,1,1,1),h.buffers.depth.setTest(!0),h.setScissorTest(!1);let f=E!==p&&this.type===p,m=E===p&&this.type!==p;for(let l=0,u=t.length;l<u;l++){let u=t[l],d=u.shadow;if(void 0===d){console.warn("THREE.WebGLShadowMap:",u,"has no shadow.");continue}if(!1===d.autoUpdate&&!1===d.needsUpdate)continue;r.copy(d.mapSize);let g=d.getFrameExtents();if(r.multiply(g),a.copy(d.mapSize),(r.x>c||r.y>c)&&(r.x>c&&(a.x=Math.floor(c/g.x),r.x=a.x*g.x,d.mapSize.x=a.x),r.y>c&&(a.y=Math.floor(c/g.y),r.y=a.y*g.y,d.mapSize.y=a.y)),null===d.map||!0===f||!0===m){let e=this.type!==p?{minFilter:ey,magFilter:ey}:{};null!==d.map&&d.map.dispose(),d.map=new ny(r.x,r.y,e),d.map.texture.name=u.name+".shadowMap",d.camera.updateProjectionMatrix()}e.setRenderTarget(d.map),e.clear();let v=d.getViewportCount();for(let e=0;e<v;e++){let t=d.getViewport(e);s.set(a.x*t.x,a.y*t.y,a.x*t.z,a.y*t.w),h.viewport(s),d.updateMatrices(u,e),i=d.getFrustum(),S(n,o,d.camera,u,this.type)}!0!==d.isPointLightShadow&&this.type===p&&w(d,o),d.needsUpdate=!1}E=this.type,C.needsUpdate=!1,e.setRenderTarget(l,u,d)}}let l3={[z]:q,[W]:K,[Z]:X,[$]:Y,[q]:z,[K]:W,[X]:Z,[Y]:$};function l5(e,t){function n(){let n=!1,i=!1,r=null,a=null,s=null;return{setReversed:function(e){if(i!==e){let n=t.get("EXT_clip_control");e?n.clipControlEXT(n.LOWER_LEFT_EXT,n.ZERO_TO_ONE_EXT):n.clipControlEXT(n.LOWER_LEFT_EXT,n.NEGATIVE_ONE_TO_ONE_EXT),i=e;let r=s;s=null,this.setClear(r)}},getReversed:function(){return i},setTest:function(t){t?eL(e.DEPTH_TEST):eP(e.DEPTH_TEST)},setMask:function(t){r===t||n||(e.depthMask(t),r=t)},setFunc:function(t){if(i&&(t=l3[t]),a!==t){switch(t){case z:e.depthFunc(e.NEVER);break;case q:e.depthFunc(e.ALWAYS);break;case W:e.depthFunc(e.LESS);break;case $:e.depthFunc(e.LEQUAL);break;case Z:e.depthFunc(e.EQUAL);break;case Y:e.depthFunc(e.GEQUAL);break;case K:e.depthFunc(e.GREATER);break;case X:e.depthFunc(e.NOTEQUAL);break;default:e.depthFunc(e.LEQUAL)}a=t}},setLocked:function(e){n=e},setClear:function(t){s!==t&&(i&&(t=1-t),e.clearDepth(t),s=t)},reset:function(){n=!1,r=null,a=null,s=null,i=!1}}}function i(){let t=!1,n=null,i=null,r=null,a=null,s=null,o=null,l=null,u=null;return{setTest:function(n){t||(n?eL(e.STENCIL_TEST):eP(e.STENCIL_TEST))},setMask:function(i){n===i||t||(e.stencilMask(i),n=i)},setFunc:function(t,n,s){(i!==t||r!==n||a!==s)&&(e.stencilFunc(t,n,s),i=t,r=n,a=s)},setOp:function(t,n,i){(s!==t||o!==n||l!==i)&&(e.stencilOp(t,n,i),s=t,o=n,l=i)},setLocked:function(e){t=e},setClear:function(t){u!==t&&(e.clearStencil(t),u=t)},reset:function(){t=!1,n=null,i=null,r=null,a=null,s=null,o=null,l=null,u=null}}}let r=new function(){let t=!1,n=new ng,i=null,r=new ng(0,0,0,0);return{setMask:function(n){i===n||t||(e.colorMask(n,n,n,n),i=n)},setLocked:function(e){t=e},setClear:function(t,i,a,s,o){!0===o&&(t*=s,i*=s,a*=s),n.set(t,i,a,s),!1===r.equals(n)&&(e.clearColor(t,i,a,s),r.copy(n))},reset:function(){t=!1,i=null,r.set(-1,0,0,0)}}},a=new n,s=new i,o=new WeakMap,l=new WeakMap,h={},f={},p=new WeakMap,m=[],Q=null,J=!1,ee=null,et=null,en=null,ei=null,er=null,ea=null,es=null,eo=new iR(0,0,0),el=0,eu=!1,ec=null,ed=null,eh=null,ef=null,ep=null,em=e.getParameter(e.MAX_COMBINED_TEXTURE_IMAGE_UNITS),eg=!1,ev=0,ey=e.getParameter(e.VERSION);-1!==ey.indexOf("WebGL")?eg=(ev=parseFloat(/^WebGL (\d)/.exec(ey)[1]))>=1:-1!==ey.indexOf("OpenGL ES")&&(eg=(ev=parseFloat(/^OpenGL ES (\d)/.exec(ey)[1]))>=2);let e_=null,eb={},ex=e.getParameter(e.SCISSOR_BOX),eC=e.getParameter(e.VIEWPORT),eE=new ng().fromArray(ex),ew=new ng().fromArray(eC);function eT(t,n,i,r){let a=new Uint8Array(4),s=e.createTexture();e.bindTexture(t,s),e.texParameteri(t,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(t,e.TEXTURE_MAG_FILTER,e.NEAREST);for(let s=0;s<i;s++)t===e.TEXTURE_3D||t===e.TEXTURE_2D_ARRAY?e.texImage3D(n,0,e.RGBA,1,1,r,0,e.RGBA,e.UNSIGNED_BYTE,a):e.texImage2D(n+s,0,e.RGBA,1,1,0,e.RGBA,e.UNSIGNED_BYTE,a);return s}let eS={};function eL(t){!0!==h[t]&&(e.enable(t),h[t]=!0)}function eP(t){!1!==h[t]&&(e.disable(t),h[t]=!1)}function eM(t,n){return f[t]!==n&&(e.bindFramebuffer(t,n),f[t]=n,t===e.DRAW_FRAMEBUFFER&&(f[e.FRAMEBUFFER]=n),t===e.FRAMEBUFFER&&(f[e.DRAW_FRAMEBUFFER]=n),!0)}function eA(t,n){let i=m,r=!1;if(t){void 0===(i=p.get(n))&&(i=[],p.set(n,i));let a=t.textures;if(i.length!==a.length||i[0]!==e.COLOR_ATTACHMENT0){for(let t=0,n=a.length;t<n;t++)i[t]=e.COLOR_ATTACHMENT0+t;i.length=a.length,r=!0}}else i[0]!==e.BACK&&(i[0]=e.BACK,r=!0);r&&e.drawBuffers(i)}function eI(t){return Q!==t&&(e.useProgram(t),Q=t,!0)}eS[e.TEXTURE_2D]=eT(e.TEXTURE_2D,e.TEXTURE_2D,1),eS[e.TEXTURE_CUBE_MAP]=eT(e.TEXTURE_CUBE_MAP,e.TEXTURE_CUBE_MAP_POSITIVE_X,6),eS[e.TEXTURE_2D_ARRAY]=eT(e.TEXTURE_2D_ARRAY,e.TEXTURE_2D_ARRAY,1,1),eS[e.TEXTURE_3D]=eT(e.TEXTURE_3D,e.TEXTURE_3D,1,1),r.setClear(0,0,0,1),a.setClear(1),s.setClear(0),eL(e.DEPTH_TEST),a.setFunc($),eF(!1),eO(c),eL(e.CULL_FACE),eD(y);let eR={[w]:e.FUNC_ADD,[T]:e.FUNC_SUBTRACT,[S]:e.FUNC_REVERSE_SUBTRACT};eR[L]=e.MIN,eR[P]=e.MAX;let ek={[M]:e.ZERO,[A]:e.ONE,[I]:e.SRC_COLOR,[k]:e.SRC_ALPHA,[U]:e.SRC_ALPHA_SATURATE,[O]:e.DST_COLOR,[N]:e.DST_ALPHA,[R]:e.ONE_MINUS_SRC_COLOR,[D]:e.ONE_MINUS_SRC_ALPHA,[j]:e.ONE_MINUS_DST_COLOR,[F]:e.ONE_MINUS_DST_ALPHA,[V]:e.CONSTANT_COLOR,[B]:e.ONE_MINUS_CONSTANT_COLOR,[H]:e.CONSTANT_ALPHA,[G]:e.ONE_MINUS_CONSTANT_ALPHA};function eD(t,n,i,r,a,s,o,l,u,c){if(t===y){!0===J&&(eP(e.BLEND),J=!1);return}if(!1===J&&(eL(e.BLEND),J=!0),t!==E){if(t!==ee||c!==eu){if((et!==w||er!==w)&&(e.blendEquation(e.FUNC_ADD),et=w,er=w),c)switch(t){case _:e.blendFuncSeparate(e.ONE,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA);break;case b:e.blendFunc(e.ONE,e.ONE);break;case x:e.blendFuncSeparate(e.ZERO,e.ONE_MINUS_SRC_COLOR,e.ZERO,e.ONE);break;case C:e.blendFuncSeparate(e.ZERO,e.SRC_COLOR,e.ZERO,e.SRC_ALPHA);break;default:console.error("THREE.WebGLState: Invalid blending: ",t)}else switch(t){case _:e.blendFuncSeparate(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA);break;case b:e.blendFunc(e.SRC_ALPHA,e.ONE);break;case x:e.blendFuncSeparate(e.ZERO,e.ONE_MINUS_SRC_COLOR,e.ZERO,e.ONE);break;case C:e.blendFunc(e.ZERO,e.SRC_COLOR);break;default:console.error("THREE.WebGLState: Invalid blending: ",t)}en=null,ei=null,ea=null,es=null,eo.set(0,0,0),el=0,ee=t,eu=c}return}a=a||n,s=s||i,o=o||r,(n!==et||a!==er)&&(e.blendEquationSeparate(eR[n],eR[a]),et=n,er=a),(i!==en||r!==ei||s!==ea||o!==es)&&(e.blendFuncSeparate(ek[i],ek[r],ek[s],ek[o]),en=i,ei=r,ea=s,es=o),(!1===l.equals(eo)||u!==el)&&(e.blendColor(l.r,l.g,l.b,u),eo.copy(l),el=u),ee=t,eu=!1}function eN(t,n){t.side===v?eP(e.CULL_FACE):eL(e.CULL_FACE);let i=t.side===g;n&&(i=!i),eF(i),t.blending===_&&!1===t.transparent?eD(y):eD(t.blending,t.blendEquation,t.blendSrc,t.blendDst,t.blendEquationAlpha,t.blendSrcAlpha,t.blendDstAlpha,t.blendColor,t.blendAlpha,t.premultipliedAlpha),a.setFunc(t.depthFunc),a.setTest(t.depthTest),a.setMask(t.depthWrite),r.setMask(t.colorWrite);let o=t.stencilWrite;s.setTest(o),o&&(s.setMask(t.stencilWriteMask),s.setFunc(t.stencilFunc,t.stencilRef,t.stencilFuncMask),s.setOp(t.stencilFail,t.stencilZFail,t.stencilZPass)),ej(t.polygonOffset,t.polygonOffsetFactor,t.polygonOffsetUnits),!0===t.alphaToCoverage?eL(e.SAMPLE_ALPHA_TO_COVERAGE):eP(e.SAMPLE_ALPHA_TO_COVERAGE)}function eF(t){ec!==t&&(t?e.frontFace(e.CW):e.frontFace(e.CCW),ec=t)}function eO(t){t!==u?(eL(e.CULL_FACE),t!==ed&&(t===c?e.cullFace(e.BACK):t===d?e.cullFace(e.FRONT):e.cullFace(e.FRONT_AND_BACK))):eP(e.CULL_FACE),ed=t}function ej(t,n,i){t?(eL(e.POLYGON_OFFSET_FILL),(ef!==n||ep!==i)&&(e.polygonOffset(n,i),ef=n,ep=i)):eP(e.POLYGON_OFFSET_FILL)}function eU(t){t?eL(e.SCISSOR_TEST):eP(e.SCISSOR_TEST)}function eV(){e.disable(e.BLEND),e.disable(e.CULL_FACE),e.disable(e.DEPTH_TEST),e.disable(e.POLYGON_OFFSET_FILL),e.disable(e.SCISSOR_TEST),e.disable(e.STENCIL_TEST),e.disable(e.SAMPLE_ALPHA_TO_COVERAGE),e.blendEquation(e.FUNC_ADD),e.blendFunc(e.ONE,e.ZERO),e.blendFuncSeparate(e.ONE,e.ZERO,e.ONE,e.ZERO),e.blendColor(0,0,0,0),e.colorMask(!0,!0,!0,!0),e.clearColor(0,0,0,0),e.depthMask(!0),e.depthFunc(e.LESS),a.setReversed(!1),e.clearDepth(1),e.stencilMask(4294967295),e.stencilFunc(e.ALWAYS,0,4294967295),e.stencilOp(e.KEEP,e.KEEP,e.KEEP),e.clearStencil(0),e.cullFace(e.BACK),e.frontFace(e.CCW),e.polygonOffset(0,0),e.activeTexture(e.TEXTURE0),e.bindFramebuffer(e.FRAMEBUFFER,null),e.bindFramebuffer(e.DRAW_FRAMEBUFFER,null),e.bindFramebuffer(e.READ_FRAMEBUFFER,null),e.useProgram(null),e.lineWidth(1),e.scissor(0,0,e.canvas.width,e.canvas.height),e.viewport(0,0,e.canvas.width,e.canvas.height),h={},e_=null,eb={},f={},p=new WeakMap,m=[],Q=null,J=!1,ee=null,et=null,en=null,ei=null,er=null,ea=null,es=null,eo=new iR(0,0,0),el=0,eu=!1,ec=null,ed=null,eh=null,ef=null,ep=null,eE.set(0,0,e.canvas.width,e.canvas.height),ew.set(0,0,e.canvas.width,e.canvas.height),r.reset(),a.reset(),s.reset()}return{buffers:{color:r,depth:a,stencil:s},enable:eL,disable:eP,bindFramebuffer:eM,drawBuffers:eA,useProgram:eI,setBlending:eD,setMaterial:eN,setFlipSided:eF,setCullFace:eO,setLineWidth:function(t){t!==eh&&(eg&&e.lineWidth(t),eh=t)},setPolygonOffset:ej,setScissorTest:eU,activeTexture:function(t){void 0===t&&(t=e.TEXTURE0+em-1),e_!==t&&(e.activeTexture(t),e_=t)},bindTexture:function(t,n,i){void 0===i&&(i=null===e_?e.TEXTURE0+em-1:e_);let r=eb[i];void 0===r&&(r={type:void 0,texture:void 0},eb[i]=r),(r.type!==t||r.texture!==n)&&(e_!==i&&(e.activeTexture(i),e_=i),e.bindTexture(t,n||eS[t]),r.type=t,r.texture=n)},unbindTexture:function(){let t=eb[e_];void 0!==t&&void 0!==t.type&&(e.bindTexture(t.type,null),t.type=void 0,t.texture=void 0)},compressedTexImage2D:function(){try{e.compressedTexImage2D(...arguments)}catch(e){console.error("THREE.WebGLState:",e)}},compressedTexImage3D:function(){try{e.compressedTexImage3D(...arguments)}catch(e){console.error("THREE.WebGLState:",e)}},texImage2D:function(){try{e.texImage2D(...arguments)}catch(e){console.error("THREE.WebGLState:",e)}},texImage3D:function(){try{e.texImage3D(...arguments)}catch(e){console.error("THREE.WebGLState:",e)}},updateUBOMapping:function(t,n){let i=l.get(n);void 0===i&&(i=new WeakMap,l.set(n,i));let r=i.get(t);void 0===r&&(r=e.getUniformBlockIndex(n,t.name),i.set(t,r))},uniformBlockBinding:function(t,n){let i=l.get(n).get(t);o.get(n)!==i&&(e.uniformBlockBinding(n,i,t.__bindingPointIndex),o.set(n,i))},texStorage2D:function(){try{e.texStorage2D(...arguments)}catch(e){console.error("THREE.WebGLState:",e)}},texStorage3D:function(){try{e.texStorage3D(...arguments)}catch(e){console.error("THREE.WebGLState:",e)}},texSubImage2D:function(){try{e.texSubImage2D(...arguments)}catch(e){console.error("THREE.WebGLState:",e)}},texSubImage3D:function(){try{e.texSubImage3D(...arguments)}catch(e){console.error("THREE.WebGLState:",e)}},compressedTexSubImage2D:function(){try{e.compressedTexSubImage2D(...arguments)}catch(e){console.error("THREE.WebGLState:",e)}},compressedTexSubImage3D:function(){try{e.compressedTexSubImage3D(...arguments)}catch(e){console.error("THREE.WebGLState:",e)}},scissor:function(t){!1===eE.equals(t)&&(e.scissor(t.x,t.y,t.z,t.w),eE.copy(t))},viewport:function(t){!1===ew.equals(t)&&(e.viewport(t.x,t.y,t.z,t.w),ew.copy(t))},reset:eV}}function l4(e,t,n,i,r,a,s){let o;let l=t.has("WEBGL_multisampled_render_to_texture")?t.get("WEBGL_multisampled_render_to_texture"):null,u="undefined"!=typeof navigator&&/OculusBrowser/g.test(navigator.userAgent),c=new tJ,d=new WeakMap,h=new WeakMap,f=!1;try{f="undefined"!=typeof OffscreenCanvas&&null!==new OffscreenCanvas(1,1).getContext("2d")}catch(e){}function p(e,t){return f?new OffscreenCanvas(e,t):t8("canvas")}function m(e,t,n){let i=1,r=er(e);if((r.width>n||r.height>n)&&(i=n/Math.max(r.width,r.height)),i<1){if("undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap||"undefined"!=typeof VideoFrame&&e instanceof VideoFrame){let n=Math.floor(i*r.width),a=Math.floor(i*r.height);void 0===o&&(o=p(n,a));let s=t?p(n,a):o;return s.width=n,s.height=a,s.getContext("2d").drawImage(e,0,0,n,a),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+r.width+"x"+r.height+") to ("+n+"x"+a+")."),s}
vendor: 1,115 bytes, line 220
220"data"in e&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+r.width+"x"+r.height+").")}return e}function g(e){return e.generateMipmaps}function v(t){e.generateMipmap(t)}function y(t){return t.isWebGLCubeRenderTarget?e.TEXTURE_CUBE_MAP:t.isWebGL3DRenderTarget?e.TEXTURE_3D:t.isWebGLArrayRenderTarget||t.isCompressedArrayTexture?e.TEXTURE_2D_ARRAY:e.TEXTURE_2D}function _(n,i,r,a,s=!1){if(null!==n){if(void 0!==e[n])return e[n];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+n+"'")}let o=i;if(i===e.RED&&(r===e.FLOAT&&(o=e.R32F),r===e.HALF_FLOAT&&(o=e.R16F),r===e.UNSIGNED_BYTE&&(o=e.R8)),i===e.RED_INTEGER&&(r===e.UNSIGNED_BYTE&&(o=e.R8UI),r===e.UNSIGNED_SHORT&&(o=e.R16UI),r===e.UNSIGNED_INT&&(o=e.R32UI),r===e.BYTE&&(o=e.R8I),r===e.SHORT&&(o=e.R16I),r===e.INT&&(o=e.R32I)),i===e.RG&&(r===e.FLOAT&&(o=e.RG32F),r===e.HALF_FLOAT&&(o=e.RG16F),r===e.UNSIGNED_BYTE&&(o=e.RG8)),i===e.RG_INTEGER&&(r===e.UNSIGNED_BYTE&&(o=e.RG8UI),r===e.UNSIGNED_SHORT&&(o=e.RG16UI),r===e.UNSIGNED_INT&&(o=e.RG32UI),r===e.BYTE&&(o=e.RG8I),r===e.SHORT&&(o=e.RG16I),r===e.INT&&(
vendor: 3,316 bytes, line 220
220o=e.RG32I)),i===e.RGB_INTEGER&&(r===e.UNSIGNED_BYTE&&(o=e.RGB8UI),r===e.UNSIGNED_SHORT&&(o=e.RGB16UI),r===e.UNSIGNED_INT&&(o=e.RGB32UI),r===e.BYTE&&(o=e.RGB8I),r===e.SHORT&&(o=e.RGB16I),r===e.INT&&(o=e.RGB32I)),i===e.RGBA_INTEGER&&(r===e.UNSIGNED_BYTE&&(o=e.RGBA8UI),r===e.UNSIGNED_SHORT&&(o=e.RGBA16UI),r===e.UNSIGNED_INT&&(o=e.RGBA32UI),r===e.BYTE&&(o=e.RGBA8I),r===e.SHORT&&(o=e.RGBA16I),r===e.INT&&(o=e.RGBA32I)),i===e.RGB&&r===e.UNSIGNED_INT_5_9_9_9_REV&&(o=e.RGB9_E5),i===e.RGBA){let t=s?tL:ns.getTransfer(a);r===e.FLOAT&&(o=e.RGBA32F),r===e.HALF_FLOAT&&(o=e.RGBA16F),r===e.UNSIGNED_BYTE&&(o=t===tP?e.SRGB8_ALPHA8:e.RGBA8),r===e.UNSIGNED_SHORT_4_4_4_4&&(o=e.RGBA4),r===e.UNSIGNED_SHORT_5_5_5_1&&(o=e.RGB5_A1)}return(o===e.R16F||o===e.R32F||o===e.RG16F||o===e.RG32F||o===e.RGBA16F||o===e.RGBA32F)&&t.get("EXT_color_buffer_float"),o}function b(t,n){let i;return t?null===n||n===eM||n===eD?i=e.DEPTH24_STENCIL8:n===eA?i=e.DEPTH32F_STENCIL8:n===eL&&(i=e.DEPTH24_STENCIL8,console.warn("DepthTexture: 16 bit depth attachment is not supported with stencil. Using 24-bit attachment.")):null===n||n===eM||n===eD?i=e.DEPTH_COMPONENT24:n===eA?i=e.DEPTH_COMPONENT32F:n===eL&&(i=e.DEPTH_COMPONENT16),i}function x(e,t){return!0===g(e)||e.isFramebufferTexture&&e.minFilter!==ey&&e.minFilter!==ex?Math.log2(Math.max(t.width,t.height))+1:void 0!==e.mipmaps&&e.mipmaps.length>0?e.mipmaps.length:e.isCompressedTexture&&Array.isArray(e.image)?t.mipmaps.length:1}function C(e){let t=e.target;t.removeEventListener("dispose",C),w(t),t.isVideoTexture&&d.delete(t)}function E(e){let t=e.target;t.removeEventListener("dispose",E),S(t)}function w(e){let t=i.get(e);if(void 0===t.__webglInit)return;let n=e.source,r=h.get(n);if(r){let i=r[t.__cacheKey];i.usedTimes--,0===i.usedTimes&&T(e),0===Object.keys(r).length&&h.delete(n)}i.remove(e)}function T(t){let n=i.get(t);e.deleteTexture(n.__webglTexture);let r=t.source,a=h.get(r);delete a[n.__cacheKey],s.memory.textures--}function S(t){let n=i.get(t);if(t.depthTexture&&(t.depthTexture.dispose(),i.remove(t.depthTexture)),t.isWebGLCubeRenderTarget)for(let t=0;t<6;t++){if(Array.isArray(n.__webglFramebuffer[t]))for(let i=0;i<n.__webglFramebuffer[t].length;i++)e.deleteFramebuffer(n.__webglFramebuffer[t][i]);else e.deleteFramebuffer(n.__webglFramebuffer[t]);n.__webglDepthbuffer&&e.deleteRenderbuffer(n.__webglDepthbuffer[t])}else{if(Array.isArray(n.__webglFramebuffer))for(let t=0;t<n.__webglFramebuffer.length;t++)e.deleteFramebuffer(n.__webglFramebuffer[t]);else e.deleteFramebuffer(n.__webglFramebuffer);if(n.__webglDepthbuffer&&e.deleteRenderbuffer(n.__webglDepthbuffer),n.__webglMultisampledFramebuffer&&e.deleteFramebuffer(n.__webglMultisampledFramebuffer),n.__webglColorRenderbuffer)for(let t=0;t<n.__webglColorRenderbuffer.length;t++)n.__webglColorRenderbuffer[t]&&e.deleteRenderbuffer(n.__webglColorRenderbuffer[t]);n.__webglDepthRenderbuffer&&e.deleteRenderbuffer(n.__webglDepthRenderbuffer)}let r=t.textures;for(let t=0,n=r.length;t<n;t++){let n=i.get(r[t]);n.__webglTexture&&(e.deleteTexture(n.__webglTexture),s.memory.textures--),i.remove(r[t])}i.remove(t)}let L=0;function P(){L=0}function M(){let e=L;return e>=r.maxTextures&&console.warn("THREE.WebGLTextures: Trying to use "+e+" texture units while this GPU supports only "+r.maxTextures),L+=1,e}function A(e){let t=[];
220return t.push(e.wrapS),t.push(e.wrapT),t.push(e.wrapR||0),t.push(e.magFilter),t.push(e.minFilter),t.push(e.anisotropy),t.push(e.internalFormat),t.push(e.format),t.push(e.type),t.push(e.generateMipmaps),t.push(e.premultiplyAlpha),t.push(e.flipY),t.push(e.unpackAlignment),t.push(e.colorSpace),t.join()}function I(t,r){let a=i.get(t);if(t.isVideoTexture&&en(t),!1===t.isRenderTargetTexture&&t.version>0&&a.__version!==t.version){let e=t.image;if(null===e)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else if(!1===e.complete)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");else{H(a,t,r);return}}n.bindTexture(e.TEXTURE_2D,a.__webglTexture,e.TEXTURE0+r)}function R(t,r){let a=i.get(t);if(t.version>0&&a.__version!==t.version){H(a,t,r);return}n.bindTexture(e.TEXTURE_2D_ARRAY,a.__webglTexture,e.TEXTURE0+r)}function k(t,r){let a=i.get(t);if(t.version>0&&a.__version!==t.version){H(a,t,r);return}n.bindTexture(e.TEXTURE_3D,a.__webglTexture,e.TEXTURE0+r)}function D(t,r){let a=i.get(t);if(t.version>0&&a.__version!==t.version){G(a,t,r);return}n.bindTexture(e.TEXTURE_CUBE_MAP,a.__webglTexture,e.TEXTURE0+r)}let N={[em]:e.REPEAT,[eg]:e.CLAMP_TO_EDGE,[ev]:e.MIRRORED_REPEAT},F={[ey]:e.NEAREST,[e_]:e.NEAREST_MIPMAP_NEAREST,[eb]:e.NEAREST_MIPMAP_LINEAR,[ex]:e.LINEAR,[eC]:e.LINEAR_MIPMAP_NEAREST,[eE]:e.LINEAR_MIPMAP_LINEAR},O={[tI]:e.NEVER,[tj]:e.ALWAYS,[tR]:e.LESS,[tD]:e.LEQUAL,[tk]:e.EQUAL,[tO]:e.GEQUAL,[tN]:e.GREATER,[tF]:e.NOTEQUAL};function j(n,a){if(a.type===eA&&!1===t.has("OES_texture_float_linear")&&(a.magFilter===ex||a.magFilter===eC||a.magFilter===eb||a.magFilter===eE||a.minFilter===ex||a.minFilter===eC||a.minFilter===eb||a.minFilter===eE)&&console.warn("THREE.WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."),e.texParameteri(n,e.TEXTURE_WRAP_S,N[a.wrapS]),e.texParameteri(n,e.TEXTURE_WRAP_T,N[a.wrapT]),(n===e.TEXTURE_3D||n===e.TEXTURE_2D_ARRAY)&&e.texParameteri(n,e.TEXTURE_WRAP_R,N[a.wrapR]),e.texParameteri(n,e.TEXTURE_MAG_FILTER,F[a.magFilter]),e.texParameteri(n,e.TEXTURE_MIN_FILTER,F[a.minFilter]),a.compareFunction&&(e.texParameteri(n,e.TEXTURE_COMPARE_MODE,e.COMPARE_REF_TO_TEXTURE),e.texParameteri(n,e.TEXTURE_COMPARE_FUNC,O[a.compareFunction])),!0===t.has("EXT_texture_filter_anisotropic")&&a.magFilter!==ey&&(a.minFilter===eb||a.minFilter===eE)&&(a.type!==eA||!1!==t.has("OES_texture_float_linear"))&&(a.anisotropy>1||i.get(a).__currentAnisotropy)){let s=t.get("EXT_texture_filter_anisotropic");e.texParameterf(n,s.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(a.anisotropy,r.getMaxAnisotropy())),i.get(a).__currentAnisotropy=a.anisotropy}}function U(t,n){let i=!1;void 0===t.__webglInit&&(t.__webglInit=!0,n.addEventListener("dispose",C));let r=n.source,a=h.get(r);void 0===a&&(a={},h.set(r,a));let o=A(n);if(o!==t.__cacheKey){void 0===a[o]&&(a[o]={texture:e.createTexture(),usedTimes:0},s.memory.textures++,i=!0),a[o].usedTimes++;let r=a[t.__cacheKey];void 0!==r&&(a[t.__cacheKey].usedTimes--,0===r.usedTimes&&T(n)),t.__cacheKey=o,t.__webglTexture=a[o].texture}return i}function V(e,t,n){return Math.floor(Math.floor(e/n)/t)}function B(t,i,r,a){let s=4,o=t.updateRanges;if(0===o.length)n.texSubImage2D(e.TEXTURE_2D,0,0,0,i.width,i.height,r,a,i.data);else{o.sort((e,t)=>e.start-t.start);let l=0;for(let e=1;e<o.length;e++){let t=o[l],n=o[e],r=t.start+t.count,a=V(n.start,i.width,s),u=V(t.start,i.width,s);n.start<=r+1&&a===u&&V(n.start+n.count-1,i.width,s)===a?t.count=Math.max(t.count,n.start+n.count-t.start):o[++l]=n}o.length=l+1;let u=e.getParameter(e.UNPACK_ROW_LENGTH),c=e.getParameter(e.UNPACK_SKIP_PIXELS),d=e.getParameter(e.UNPACK_SKIP_ROWS);e.pixelStorei(e.UNPACK_ROW_LENGTH,i.width);for(let t=0,l=o.length;t<l;t++){let l=o[t],u=Math.floor(l.start/s),c=Math.ceil(l.count/s),d=u%i.width,h=Math.floor(u/i.width),f=c,p=1;e.pixelStorei(e.UNPACK_SKIP_PIXELS,d),e.pixelStorei(e.UNPACK_SKIP_ROWS,h),n.texSubImage2D(e.TEXTURE_2D,0,d,h,f,p,r,a,i.data)}t.clearUpdateRanges(),e.pixelStorei(e.UNPACK_ROW_LENGTH,u),e.pixelStorei(e.UNPACK_SKIP_PIXELS,c),e.pixelStorei(e.UNPACK_SKIP_ROWS,d)}}function H(t,s,o){let l=e.TEXTURE_2D;(s.isDataArrayTexture||s.isCompressedArrayTexture)&&(l=e.TEXTURE_2D_ARRAY),s.isData3DTexture&&(l=e.TEXTURE_3D);let u=U(t,s),c=s.source;n.bindTexture(l,t.__webglTexture,e.TEXTURE0+o);let d=i.get(c);if(c.version!==d.__version||!0===u){let t;n.activeTexture(e.TEXTURE0+o);
vendor: 8,392 bytes, line 220
220let i=ns.getPrimaries(ns.workingColorSpace),h=s.colorSpace===tw?null:ns.getPrimaries(s.colorSpace),f=s.colorSpace===tw||i===h?e.NONE:e.BROWSER_DEFAULT_WEBGL;e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,s.flipY),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,s.premultiplyAlpha),e.pixelStorei(e.UNPACK_ALIGNMENT,s.unpackAlignment),e.pixelStorei(e.UNPACK_COLORSPACE_CONVERSION_WEBGL,f);let p=m(s.image,!1,r.maxTextureSize);p=ei(s,p);let y=a.convert(s.format,s.colorSpace),C=a.convert(s.type),E=_(s.internalFormat,y,C,s.colorSpace,s.isVideoTexture);j(l,s);let w=s.mipmaps,T=!0!==s.isVideoTexture,S=void 0===d.__version||!0===u,L=c.dataReady,P=x(s,p);if(s.isDepthTexture)E=b(s.format===eV,s.type),S&&(T?n.texStorage2D(e.TEXTURE_2D,1,E,p.width,p.height):n.texImage2D(e.TEXTURE_2D,0,E,p.width,p.height,0,y,C,null));else if(s.isDataTexture){if(w.length>0){T&&S&&n.texStorage2D(e.TEXTURE_2D,P,E,w[0].width,w[0].height);for(let i=0,r=w.length;i<r;i++)t=w[i],T?L&&n.texSubImage2D(e.TEXTURE_2D,i,0,0,t.width,t.height,y,C,t.data):n.texImage2D(e.TEXTURE_2D,i,E,t.width,t.height,0,y,C,t.data);s.generateMipmaps=!1}else T?(S&&n.texStorage2D(e.TEXTURE_2D,P,E,p.width,p.height),L&&B(s,p,y,C)):n.texImage2D(e.TEXTURE_2D,0,E,p.width,p.height,0,y,C,p.data)}else if(s.isCompressedTexture){if(s.isCompressedArrayTexture){T&&S&&n.texStorage3D(e.TEXTURE_2D_ARRAY,P,E,w[0].width,w[0].height,p.depth);for(let i=0,r=w.length;i<r;i++)if(t=w[i],s.format!==ej){if(null!==y){if(T){if(L){if(s.layerUpdates.size>0){let r=sA(t.width,t.height,s.format,s.type);for(let a of s.layerUpdates){let s=t.data.subarray(a*r/t.data.BYTES_PER_ELEMENT,(a+1)*r/t.data.BYTES_PER_ELEMENT);n.compressedTexSubImage3D(e.TEXTURE_2D_ARRAY,i,0,0,a,t.width,t.height,1,y,s)}s.clearLayerUpdates()}else n.compressedTexSubImage3D(e.TEXTURE_2D_ARRAY,i,0,0,0,t.width,t.height,p.depth,y,t.data)}}else n.compressedTexImage3D(e.TEXTURE_2D_ARRAY,i,E,t.width,t.height,p.depth,0,t.data,0,0)}else console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()")}else T?L&&n.texSubImage3D(e.TEXTURE_2D_ARRAY,i,0,0,0,t.width,t.height,p.depth,y,C,t.data):n.texImage3D(e.TEXTURE_2D_ARRAY,i,E,t.width,t.height,p.depth,0,y,C,t.data)}else{T&&S&&n.texStorage2D(e.TEXTURE_2D,P,E,w[0].width,w[0].height);for(let i=0,r=w.length;i<r;i++)t=w[i],s.format!==ej?null!==y?T?L&&n.compressedTexSubImage2D(e.TEXTURE_2D,i,0,0,t.width,t.height,y,t.data):n.compressedTexImage2D(e.TEXTURE_2D,i,E,t.width,t.height,0,t.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):T?L&&n.texSubImage2D(e.TEXTURE_2D,i,0,0,t.width,t.height,y,C,t.data):n.texImage2D(e.TEXTURE_2D,i,E,t.width,t.height,0,y,C,t.data)}}else if(s.isDataArrayTexture){if(T){if(S&&n.texStorage3D(e.TEXTURE_2D_ARRAY,P,E,p.width,p.height,p.depth),L){if(s.layerUpdates.size>0){let t=sA(p.width,p.height,s.format,s.type);for(let i of s.layerUpdates){let r=p.data.subarray(i*t/p.data.BYTES_PER_ELEMENT,(i+1)*t/p.data.BYTES_PER_ELEMENT);n.texSubImage3D(e.TEXTURE_2D_ARRAY,0,0,0,i,p.width,p.height,1,y,C,r)}s.clearLayerUpdates()}else n.texSubImage3D(e.TEXTURE_2D_ARRAY,0,0,0,0,p.width,p.height,p.depth,y,C,p.data)}}else n.texImage3D(e.TEXTURE_2D_ARRAY,0,E,p.width,p.height,p.depth,0,y,C,p.data)}else if(s.isData3DTexture)T?(S&&n.texStorage3D(e.TEXTURE_3D,P,E,p.width,p.height,p.depth),L&&n.texSubImage3D(e.TEXTURE_3D,0,0,0,0,p.width,p.height,p.depth,y,C,p.data)):n.texImage3D(e.TEXTURE_3D,0,E,p.width,p.height,p.depth,0,y,C,p.data);else if(s.isFramebufferTexture){if(S){if(T)n.texStorage2D(e.TEXTURE_2D,P,E,p.width,p.height);else{let t=p.width,i=p.height;for(let r=0;r<P;r++)n.texImage2D(e.TEXTURE_2D,r,E,t,i,0,y,C,null),t>>=1,i>>=1}}}else if(w.length>0){if(T&&S){let t=er(w[0]);n.texStorage2D(e.TEXTURE_2D,P,E,t.width,t.height)}for(let i=0,r=w.length;i<r;i++)t=w[i],T?L&&n.texSubImage2D(e.TEXTURE_2D,i,0,0,y,C,t):n.texImage2D(e.TEXTURE_2D,i,E,y,C,t);s.generateMipmaps=!1}else if(T){if(S){let t=er(p);n.texStorage2D(e.TEXTURE_2D,P,E,t.width,t.height)}L&&n.texSubImage2D(e.TEXTURE_2D,0,0,0,y,C,p)}else n.texImage2D(e.TEXTURE_2D,0,E,y,C,p);g(s)&&v(l),d.__version=c.version,s.onUpdate&&s.onUpdate(s)}t.__version=s.version}function G(t,s,o){if(6!==s.image.length)return;let l=U(t,s),u=s.source;n.bindTexture(e.TEXTURE_CUBE_MAP,t.__webglTexture,e.TEXTURE0+o);let c=i.get(u);if(u.version!==c.__version||!0===l){let t;n.activeTexture(e.TEXTURE0+o);let i=ns.getPrimaries(ns.workingColorSpace),d=s.colorSpace===tw?null:ns.getPrimaries(s.colorSpace),h=s.colorSpace===tw||i===d?e.NONE:e.BROWSER_DEFAULT_WEBGL;e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,s.flipY),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,s.premultiplyAlpha),e.pixelStorei(e.UNPACK_ALIGNMENT,s.unpackAlignment),e.pixelStorei(e.UNPACK_COLORSPACE_CONVERSION_WEBGL,h);let f=s.isCompressedTexture||s.image[0].isCompressedTexture,p=s.image[0]&&s.image[0].isDataTexture,y=[];for(let e=0;e<6;e++)f||p?y[e]=p?s.image[e].image:s.image[e]:y[e]=m(s.image[e],!0,r.maxCubemapSize),y[e]=ei(s,y[e]);let b=y[0],C=a.convert(s.format,s.colorSpace),E=a.convert(s.type),w=_(s.internalFormat,C,E,s.colorSpace),T=!0!==s.isVideoTexture,S=void 0===c.__version||!0===l,L=u.dataReady,P=x(s,b);if(j(e.TEXTURE_CUBE_MAP,s),f){T&&S&&n.texStorage2D(e.TEXTURE_CUBE_MAP,P,w,b.width,b.height);for(let i=0;i<6;i++){t=y[i].mipmaps;for(let r=0;r<t.length;r++){let a=t[r];s.format!==ej?null!==C?T?L&&n.compressedTexSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+i,r,0,0,a.width,a.height,C,a.data):n.compressedTexImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+i,r,w,a.width,a.height,0,a.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()"):T?L&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+i,r,0,0,a.width,a.height,C,E,a.data):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+i,r,w,a.width,a.height,0,C,E,a.data)}}}else{if(t=s.mipmaps,T&&S){t.length>0&&P++;let i=er(y[0]);n.texStorage2D(e.TEXTURE_CUBE_MAP,P,w,i.width,i.height)}for(let i=0;i<6;i++)if(p){T?L&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+i,0,0,0,y[i].width,y[i].height,C,E,y[i].data):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+i,0,w,y[i].width,y[i].height,0,C,E,y[i].data);for(let r=0;r<t.length;r++){let a=t[r].image[i].image;T?L&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+i,r+1,0,0,a.width,a.height,C,E,a.data):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+i,r+1,w,a.width,a.height,0,C,E,a.data)}}else{T?L&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+i,0,0,0,C,E,y[i]):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+i,0,w,C,E,y[i]);for(let r=0;r<t.length;r++){let a=t[r];T?L&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+i,r+1,0,0,C,E,a.image[i]):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+i,r+1,w,C,E,a.image[i])}}}g(s)&&v(e.TEXTURE_CUBE_MAP),c.__version=u.version,s.onUpdate&&s.onUpdate(s)}t.__version=s.version}function z(t,r,s,o,u,c){let d=a.convert(s.format,s.colorSpace),h=a.convert(s.type),f=_(s.internalFormat,d,h,s.colorSpace),p=i.get(r),m=i.get(s);if(m.__renderTarget=r,!p.__hasExternalTextures){let t=Math.max(1,r.width>>c),i=Math.max(1,r.height>>c);u===e.TEXTURE_3D||u===e.TEXTURE_2D_ARRAY?n.texImage3D(u,c,f,t,i,r.depth,0,d,h,null):n.texImage2D(u,c,f,t,i,0,d,h,null)}n.bindFramebuffer(e.FRAMEBUFFER,t),et(r)?l.framebufferTexture2DMultisampleEXT(e.FRAMEBUFFER,o,u,m.__webglTexture,0,ee(r)):(u===e.TEXTURE_2D||u>=e.TEXTURE_CUBE_MAP_POSITIVE_X&&u<=e.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&e.framebufferTexture2D(e.FRAMEBUFFER,o,u,m.__webglTexture,c),n.bindFramebuffer(e.FRAMEBUFFER,null)}function q(t,n,i){if(e.bindRenderbuffer(e.RENDERBUFFER,t),n.depthBuffer){let r=n.depthTexture,a=r&&r.isDepthTexture?r.type:null,s=b(n.stencilBuffer,a),o=n.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,u=ee(n);et(n)?l.renderbufferStorageMultisampleEXT(e.RENDERBUFFER,u,s,n.width,n.height):i?e.renderbufferStorageMultisample(e.RENDERBUFFER,u,s,n.width,n.height):e.renderbufferStorage(e.RENDERBUFFER,s,n.width,n.height),e.framebufferRenderbuffer(e.FRAMEBUFFER,o,e.RENDERBUFFER,t)}else{let t=n.textures;for(let r=0;r<t.length;r++){let s=t[r],o=a.convert(s.format,s.colorSpace),u=a.convert(s.type),c=_(s.internalFormat,o,u,s.colorSpace),d=ee(n);i&&!1===et(n)?e.renderbufferStorageMultisample(e.RENDERBUFFER,d,c,n.width,n.height):et(n)?l.renderbufferStorageMultisampleEXT(e.RENDERBUFFER,d,c,n.width,n.height):e.renderbufferStorage(e.RENDERBUFFER,c,n.width,n.height)}}e.bindRenderbuffer(e.RENDERBUFFER,null)}
220function W(t,r){if(r&&r.isWebGLCubeRenderTarget)throw Error("Depth Texture with cube render targets is not supported");if(n.bindFramebuffer(e.FRAMEBUFFER,t),!(r.depthTexture&&r.depthTexture.isDepthTexture))throw Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");let a=i.get(r.depthTexture);a.__renderTarget=r,a.__webglTexture&&r.depthTexture.image.width===r.width&&r.depthTexture.image.height===r.height||(r.depthTexture.image.width=r.width,r.depthTexture.image.height=r.height,r.depthTexture.needsUpdate=!0),I(r.depthTexture,0);let s=a.__webglTexture,o=ee(r);if(r.depthTexture.format===eU)et(r)?l.framebufferTexture2DMultisampleEXT(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.TEXTURE_2D,s,0,o):e.framebufferTexture2D(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.TEXTURE_2D,s,0);else if(r.depthTexture.format===eV)et(r)?l.framebufferTexture2DMultisampleEXT(e.FRAMEBUFFER,e.DEPTH_STENCIL_ATTACHMENT,e.TEXTURE_2D,s,0,o):e.framebufferTexture2D(e.FRAMEBUFFER,e.DEPTH_STENCIL_ATTACHMENT,e.TEXTURE_2D,s,0);else throw Error("Unknown depthTexture format")}function $(t){let r=i.get(t),a=!0===t.isWebGLCubeRenderTarget;if(r.__boundDepthTexture!==t.depthTexture){let e=t.depthTexture;if(r.__depthDisposeCallback&&r.__depthDisposeCallback(),e){let t=()=>{delete r.__boundDepthTexture,delete r.__depthDisposeCallback,e.removeEventListener("dispose",t)};e.addEventListener("dispose",t),r.__depthDisposeCallback=t}r.__boundDepthTexture=e}if(t.depthTexture&&!r.__autoAllocateDepthBuffer){if(a)throw Error("target.depthTexture not supported in Cube render targets");let e=t.texture.mipmaps;e&&e.length>0?W(r.__webglFramebuffer[0],t):W(r.__webglFramebuffer,t)}else if(a){r.__webglDepthbuffer=[];for(let i=0;i<6;i++)if(n.bindFramebuffer(e.FRAMEBUFFER,r.__webglFramebuffer[i]),void 0===r.__webglDepthbuffer[i])r.__webglDepthbuffer[i]=e.createRenderbuffer(),q(r.__webglDepthbuffer[i],t,!1);else{let n=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,a=r.__webglDepthbuffer[i];e.bindRenderbuffer(e.RENDERBUFFER,a),e.framebufferRenderbuffer(e.FRAMEBUFFER,n,e.RENDERBUFFER,a)}}else{let i=t.texture.mipmaps;if(i&&i.length>0?n.bindFramebuffer(e.FRAMEBUFFER,r.__webglFramebuffer[0]):n.bindFramebuffer(e.FRAMEBUFFER,r.__webglFramebuffer),void 0===r.__webglDepthbuffer)r.__webglDepthbuffer=e.createRenderbuffer(),q(r.__webglDepthbuffer,t,!1);else{let n=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,i=r.__webglDepthbuffer;e.bindRenderbuffer(e.RENDERBUFFER,i),e.framebufferRenderbuffer(e.FRAMEBUFFER,n,e.RENDERBUFFER,i)}}n.bindFramebuffer(e.FRAMEBUFFER,null)}function Z(t,n,r){let a=i.get(t);void 0!==n&&z(a.__webglFramebuffer,t,t.texture,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,0),void 0!==r&&$(t)}function Y(t){let r=t.texture,o=i.get(t),l=i.get(r);t.addEventListener("dispose",E);let u=t.textures,c=!0===t.isWebGLCubeRenderTarget,d=u.length>1;if(!d&&(void 0===l.__webglTexture&&(l.__webglTexture=e.createTexture()),l.__version=r.version,s.memory.textures++),c){o.__webglFramebuffer=[];for(let t=0;t<6;t++)if(r.mipmaps&&r.mipmaps.length>0){o.__webglFramebuffer[t]=[];for(let n=0;n<r.mipmaps.length;n++)o.__webglFramebuffer[t][n]=e.createFramebuffer()}else o.__webglFramebuffer[t]=e.createFramebuffer()}else{if(r.mipmaps&&r.mipmaps.length>0){o.__webglFramebuffer=[];for(let t=0;t<r.mipmaps.length;t++)o.__webglFramebuffer[t]=e.createFramebuffer()}else o.__webglFramebuffer=e.createFramebuffer();if(d)for(let t=0,n=u.length;t<n;t++){let n=i.get(u[t]);void 0===n.__webglTexture&&(n.__webglTexture=e.createTexture(),s.memory.textures++)}if(t.samples>0&&!1===et(t)){o.__webglMultisampledFramebuffer=e.createFramebuffer(),o.__webglColorRenderbuffer=[],n.bindFramebuffer(e.FRAMEBUFFER,o.__webglMultisampledFramebuffer);for(let n=0;n<u.length;n++){let i=u[n];o.__webglColorRenderbuffer[n]=e.createRenderbuffer(),e.bindRenderbuffer(e.RENDERBUFFER,o.__webglColorRenderbuffer[n]);let r=a.convert(i.format,i.colorSpace),s=a.convert(i.type),l=_(i.internalFormat,r,s,i.colorSpace,!0===t.isXRRenderTarget),c=ee(t);e.renderbufferStorageMultisample(e.RENDERBUFFER,c,l,t.width,t.height),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0+n,e.RENDERBUFFER,o.__webglColorRen
vendor: 1,304 bytes, line 220
220derbuffer[n])}e.bindRenderbuffer(e.RENDERBUFFER,null),t.depthBuffer&&(o.__webglDepthRenderbuffer=e.createRenderbuffer(),q(o.__webglDepthRenderbuffer,t,!0)),n.bindFramebuffer(e.FRAMEBUFFER,null)}}if(c){n.bindTexture(e.TEXTURE_CUBE_MAP,l.__webglTexture),j(e.TEXTURE_CUBE_MAP,r);for(let n=0;n<6;n++)if(r.mipmaps&&r.mipmaps.length>0)for(let i=0;i<r.mipmaps.length;i++)z(o.__webglFramebuffer[n][i],t,r,e.COLOR_ATTACHMENT0,e.TEXTURE_CUBE_MAP_POSITIVE_X+n,i);else z(o.__webglFramebuffer[n],t,r,e.COLOR_ATTACHMENT0,e.TEXTURE_CUBE_MAP_POSITIVE_X+n,0);g(r)&&v(e.TEXTURE_CUBE_MAP),n.unbindTexture()}else if(d){for(let r=0,a=u.length;r<a;r++){let a=u[r],s=i.get(a);n.bindTexture(e.TEXTURE_2D,s.__webglTexture),j(e.TEXTURE_2D,a),z(o.__webglFramebuffer,t,a,e.COLOR_ATTACHMENT0+r,e.TEXTURE_2D,0),g(a)&&v(e.TEXTURE_2D)}n.unbindTexture()}else{let i=e.TEXTURE_2D;if((t.isWebGL3DRenderTarget||t.isWebGLArrayRenderTarget)&&(i=t.isWebGL3DRenderTarget?e.TEXTURE_3D:e.TEXTURE_2D_ARRAY),n.bindTexture(i,l.__webglTexture),j(i,r),r.mipmaps&&r.mipmaps.length>0)for(let n=0;n<r.mipmaps.length;n++)z(o.__webglFramebuffer[n],t,r,e.COLOR_ATTACHMENT0,i,n);else z(o.__webglFramebuffer,t,r,e.COLOR_ATTACHMENT0,i,0);g(r)&&v(i),n.unbindTexture()}t.depthBuffer&&$(t)}function K(e){let t=e.textures;for(let r=0,a=t.length;r<a;r++){let a=t[r];
vendor: 7,243 bytes, line 220
220if(g(a)){let t=y(e),r=i.get(a).__webglTexture;n.bindTexture(t,r),v(t),n.unbindTexture()}}}let X=[],Q=[];function J(t){if(t.samples>0){if(!1===et(t)){let r=t.textures,a=t.width,s=t.height,o=e.COLOR_BUFFER_BIT,l=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,c=i.get(t),d=r.length>1;if(d)for(let t=0;t<r.length;t++)n.bindFramebuffer(e.FRAMEBUFFER,c.__webglMultisampledFramebuffer),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0+t,e.RENDERBUFFER,null),n.bindFramebuffer(e.FRAMEBUFFER,c.__webglFramebuffer),e.framebufferTexture2D(e.DRAW_FRAMEBUFFER,e.COLOR_ATTACHMENT0+t,e.TEXTURE_2D,null,0);n.bindFramebuffer(e.READ_FRAMEBUFFER,c.__webglMultisampledFramebuffer);let h=t.texture.mipmaps;h&&h.length>0?n.bindFramebuffer(e.DRAW_FRAMEBUFFER,c.__webglFramebuffer[0]):n.bindFramebuffer(e.DRAW_FRAMEBUFFER,c.__webglFramebuffer);for(let n=0;n<r.length;n++){if(t.resolveDepthBuffer&&(t.depthBuffer&&(o|=e.DEPTH_BUFFER_BIT),t.stencilBuffer&&t.resolveStencilBuffer&&(o|=e.STENCIL_BUFFER_BIT)),d){e.framebufferRenderbuffer(e.READ_FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.RENDERBUFFER,c.__webglColorRenderbuffer[n]);let t=i.get(r[n]).__webglTexture;e.framebufferTexture2D(e.DRAW_FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,t,0)}e.blitFramebuffer(0,0,a,s,0,0,a,s,o,e.NEAREST),!0===u&&(X.length=0,Q.length=0,X.push(e.COLOR_ATTACHMENT0+n),t.depthBuffer&&!1===t.resolveDepthBuffer&&(X.push(l),Q.push(l),e.invalidateFramebuffer(e.DRAW_FRAMEBUFFER,Q)),e.invalidateFramebuffer(e.READ_FRAMEBUFFER,X))}if(n.bindFramebuffer(e.READ_FRAMEBUFFER,null),n.bindFramebuffer(e.DRAW_FRAMEBUFFER,null),d)for(let t=0;t<r.length;t++){n.bindFramebuffer(e.FRAMEBUFFER,c.__webglMultisampledFramebuffer),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0+t,e.RENDERBUFFER,c.__webglColorRenderbuffer[t]);let a=i.get(r[t]).__webglTexture;n.bindFramebuffer(e.FRAMEBUFFER,c.__webglFramebuffer),e.framebufferTexture2D(e.DRAW_FRAMEBUFFER,e.COLOR_ATTACHMENT0+t,e.TEXTURE_2D,a,0)}n.bindFramebuffer(e.DRAW_FRAMEBUFFER,c.__webglMultisampledFramebuffer)}else if(t.depthBuffer&&!1===t.resolveDepthBuffer&&u){let n=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT;e.invalidateFramebuffer(e.DRAW_FRAMEBUFFER,[n])}}}function ee(e){return Math.min(r.maxSamples,e.samples)}function et(e){let n=i.get(e);return e.samples>0&&!0===t.has("WEBGL_multisampled_render_to_texture")&&!1!==n.__useRenderToTexture}function en(e){let t=s.render.frame;d.get(e)!==t&&(d.set(e,t),e.update())}function ei(e,t){let n=e.colorSpace,i=e.format,r=e.type;return!0===e.isCompressedTexture||!0===e.isVideoTexture||n!==tS&&n!==tw&&(ns.getTransfer(n)===tP?(i!==ej||r!==ew)&&console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture color space:",n)),t}function er(e){return"undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement?(c.width=e.naturalWidth||e.width,c.height=e.naturalHeight||e.height):"undefined"!=typeof VideoFrame&&e instanceof VideoFrame?(c.width=e.displayWidth,c.height=e.displayHeight):(c.width=e.width,c.height=e.height),c}this.allocateTextureUnit=M,this.resetTextureUnits=P,this.setTexture2D=I,this.setTexture2DArray=R,this.setTexture3D=k,this.setTextureCube=D,this.rebindTextures=Z,this.setupRenderTarget=Y,this.updateRenderTargetMipmap=K,this.updateMultisampleRenderTarget=J,this.setupDepthRenderbuffer=$,this.setupFrameBufferTexture=z,this.useMultisampledRTT=et}function l6(e,t){return{convert:function(n,i=tw){let r;let a=ns.getTransfer(i);if(n===ew)return e.UNSIGNED_BYTE;if(n===eR)return e.UNSIGNED_SHORT_4_4_4_4;if(n===ek)return e.UNSIGNED_SHORT_5_5_5_1;if(n===eN)return e.UNSIGNED_INT_5_9_9_9_REV;if(n===eT)return e.BYTE;if(n===eS)return e.SHORT;if(n===eL)return e.UNSIGNED_SHORT;if(n===eP)return e.INT;if(n===eM)return e.UNSIGNED_INT;if(n===eA)return e.FLOAT;if(n===eI)return e.HALF_FLOAT;if(n===eF)return e.ALPHA;if(n===eO)return e.RGB;if(n===ej)return e.RGBA;if(n===eU)return e.DEPTH_COMPONENT;if(n===eV)return e.DEPTH_STENCIL;if(n===eB)return e.RED;if(n===eH)return e.RED_INTEGER;if(n===eG)return e.RG;if(n===ez)return e.RG_INTEGER;if(n===eq)return e.RGBA_INTEGER;if(n===eW||n===e$||n===eZ||n===eY){if(a===tP){if(null===(r=t.get("WEBGL_compressed_texture_s3tc_srgb")))return null;if(n===eW)return r.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(n===e$)return r.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(n===eZ)return r.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(n===eY)return r.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else{if(null===(r=t.get("WEBGL_compressed_texture_s3tc")))return null;if(n===eW)return r.COMPRESSED_RGB_S3TC_DXT1_EXT;if(n===e$)return r.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(n===eZ)return r.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(n===eY)return r.COMPRESSED_RGBA_S3TC_DXT5_EXT}}if(n===eK||n===eX||n===eQ||n===eJ){if(null===(r=t.get("WEBGL_compressed_texture_pvrtc")))return null;if(n===eK)return r.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(n===eX)return r.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(n===eQ)return r.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(n===eJ)return r.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}if(n===e0||n===e1||n===e2){if(null===(r=t.get("WEBGL_compressed_texture_etc")))return null;if(n===e0||n===e1)return a===tP?r.COMPRESSED_SRGB8_ETC2:r.COMPRESSED_RGB8_ETC2;if(n===e2)return a===tP?r.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:r.COMPRESSED_RGBA8_ETC2_EAC}if(n===e3||n===e5||n===e4||n===e6||n===e8||n===e7||n===e9||n===te||n===tt||n===tn||n===ti||n===tr||n===ta||n===ts){if(null===(r=t.get("WEBGL_compressed_texture_astc")))return null;if(n===e3)return a===tP?r.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:r.COMPRESSED_RGBA_ASTC_4x4_KHR;if(n===e5)return a===tP?r.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:r.COMPRESSED_RGBA_ASTC_5x4_KHR;if(n===e4)return a===tP?r.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:r.COMPRESSED_RGBA_ASTC_5x5_KHR;if(n===e6)return a===tP?r.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:r.COMPRESSED_RGBA_ASTC_6x5_KHR;if(n===e8)return a===tP?r.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:r.COMPRESSED_RGBA_ASTC_6x6_KHR;if(n===e7)return a===tP?r.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:r.COMPRESSED_RGBA_ASTC_8x5_KHR;if(n===e9)return a===tP?r.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:r.COMPRESSED_RGBA_ASTC_8x6_KHR;if(n===te)return a===tP?r.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:r.COMPRESSED_RGBA_ASTC_8x8_KHR;if(n===tt)return a===tP?r.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:r.COMPRESSED_RGBA_ASTC_10x5_KHR;if(n===tn)return a===tP?r.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:r.COMPRESSED_RGBA_ASTC_10x6_KHR;if(n===ti)return a===tP?r.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:r.COMPRESSED_RGBA_ASTC_10x8_KHR;if(n===tr)return a===tP?r.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:r.COMPRESSED_RGBA_ASTC_10x10_KHR;if(n===ta)return a===tP?r.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:r.COMPRESSED_RGBA_ASTC_12x10_KHR;if(n===ts)return a===tP?r.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:r.COMPRESSED_RGBA_ASTC_12x12_KHR}if(n===to||n===tl||n===tu){if(null===(r=t.get("EXT_texture_compression_bptc")))return null;if(n===to)return a===tP?r.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:r.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(n===tl)return r.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(n===tu)return r.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}if(n===tc||n===td||n===th||n===tf){if(null===(r=t.get("EXT_texture_compression_rgtc")))return null;
220if(n===to)return r.COMPRESSED_RED_RGTC1_EXT;if(n===td)return r.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(n===th)return r.COMPRESSED_RED_GREEN_RGTC2_EXT;if(n===tf)return r.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}return n===eD?e.UNSIGNED_INT_24_8:void 0!==e[n]?e[n]:null}}}let l8=` 221void main() { 222 223 gl_Position = vec4( position, 1.0 ); 224 225}`,l7=` 226uniform sampler2DArray depthColor; 227uniform float depthWidth; 228uniform float depthHeight; 229 230void main() { 231 232 vec2 coord = vec2( gl_FragCoord.x / depthWidth, gl_FragCoord.y / depthHeight ); 233 234 if ( coord.x >= 1.0 ) { 235 236 gl_FragDepth = texture( depthColor, vec3( coord.x - 1.0, coord.y, 1 ) ).r; 237 238 } else { 239 240 gl_FragDepth = texture( depthColor, vec3( coord.x, coord.y, 0 ) ).r; 241 242 } 243 244}`;class l9{constructor(){this.texture=null,this.mesh=null,this.depthNear=0,this.depthFar=0}init(e,t,n){if(null===this.texture){let i=new nm;e.properties.get(i).__webglTexture=t.texture,(t.depthNear!==n.depthNear||t.depthFar!==n.depthFar)&&(this.depthNear=t.depthNear,this.depthFar=t.depthFar),this.texture=i}}getMesh(e){if(null!==this.texture&&null===this.mesh){let t=e.cameras[0].viewport,n=new rc({vertexShader:l8,fragmentShader:l7,uniforms:{depthColor:{value:this.texture},depthWidth:{value:t.z},depthHeight:{value:t.w}}});this.mesh=new i9(new aQ(20,20),n)}return this.mesh}reset(){this.texture=null,this.mesh=null}getDepthTexture(){return this.texture}}class ue extends tG{constructor(e,t){super();let n=this,i=null,r=1,a=null,s="local-floor",o=1,l=null,u=null,c=null,d=null,h=null,f=null,p=new l9,m=t.getContextAttributes(),g=null,v=null,y=[],_=[],b=new tJ,x=null,C=new rm;C.viewport=new ng;let E=new rm;E.viewport=new ng;let w=[C,E],T=new sb,S=null,L=null;function P(e){let t=_.indexOf(e.inputSource);if(-1===t)return;let n=y[t];void 0!==n&&(n.update(e.inputSource,e.frame,l||a),n.dispatchEvent({type:e.type,data:e.inputSource}))}function M(){i.removeEventListener("select",P),i.removeEventListener("selectstart",P),i.removeEventListener("selectend",P),i.removeEventListener("squeeze",P),i.removeEventListener("squeezestart",P),i.removeEventListener("squeezeend",P),i.removeEventListener("end",M),i.removeEventListener("inputsourceschange",A);for(let e=0;e<y.length;e++){let t=_[e];null!==t&&(_[e]=null,y[e].disconnect(t))}S=null,L=null,p.reset(),e.setRenderTarget(g),h=null,d=null,c=null,i=null,v=null,j.stop(),n.isPresenting=!1,e.setPixelRatio(x),e.setSize(b.width,b.height,!1),n.dispatchEvent({type:"sessionend"})}function A(e){for(let t=0;t<e.removed.length;t++){let n=e.removed[t],i=_.indexOf(n);i>=0&&(_[i]=null,y[i].disconnect(n))}for(let t=0;t<e.added.length;t++){let n=e.added[t],i=_.indexOf(n);if(-1===i){for(let e=0;e<y.length;e++){if(e>=_.length){_.push(n),i=e;break}if(null===_[e]){_[e]=n,i=e;break}}if(-1===i)break}let r=y[i];r&&r.connect(n)}}this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(e){let t=y[e];return void 0===t&&(t=new rE,y[e]=t),t.getTargetRaySpace()},this.getControllerGrip=function(e){let t=y[e];return void 0===t&&(t=new rE,y[e]=t),t.getGripSpace()},this.getHand=function(e){let t=y[e];return void 0===t&&(t=new rE,y[e]=t),t.getHandSpace()},this.setFramebufferScaleFactor=function(e){r=e,!0===n.isPresenting&&console.warn("THREE.WebXRManager: Cannot change framebuffer scale while presenting.")},this.setReferenceSpaceType=function(e){s=e,!0===n.isPresenting&&console.warn("THREE.WebXRManager: Cannot change reference space type while presenting.")},this.getReferenceSpace=function(){return l||a},this.setReferenceSpace=function(e){l=e},this.getBaseLayer=function(){return null!==d?d:h},this.getBinding=function(){return c},this.getFrame=function(){return f},this.getSession=function(){return i},this.setSession=async function(u){if(null!==(i=u)){if(g=e.getRenderTarget(),i.addEventListener("select",P),i.addEventListener("selectstart",P),i.addEventListener("selectend",P),i.addEventListener("squeeze",P),i.addEventListener("squeezestart",P),i.addEventListener("squeezeend",P),i.addEventListener("end",M),i.addEventListener("inputsourceschange",A),!0!==m.xrCompatible&&await t.makeXRCompatible(),x=e.getPixelRatio(),e.getSize(b),"undefined"!=typeof XRWebGLBinding&&"createProjectionLayer"in XRWebGLBinding.prototype){let n=null,a=null,s=null;m.depth&&(s=m.stencil?t.DEPTH24_STENCIL8:t.DEPTH_COMPONENT24,n=m.stencil?eV:eU,a=m.stencil?eD:eM);let o={colorFormat:t.RGBA8,depthFormat:s,scaleFactor:r};d=(c=new XRWebGLBinding(i,t)).createProjectionLayer(o),i.updateRenderState({layers:[d]}
244),e.setPixelRatio(1),e.setSize(d.textureWidth,d.textureHeight,!1),v=new ny(d.textureWidth,d.textureHeight,{format:ej,type:ew,depthTexture:new rF(d.textureWidth,d.textureHeight,a,void 0,void 0,void 0,void 0,void 0,void 0,n),stencilBuffer:m.stencil,colorSpace:e.outputColorSpace,samples:m.antialias?4:0,resolveDepthBuffer:!1===d.ignoreDepthValues,resolveStencilBuffer:!1===d.ignoreDepthValues})}else{let n={antialias:m.antialias,alpha:!0,depth:m.depth,stencil:m.stencil,framebufferScaleFactor:r};h=new XRWebGLLayer(i,t,n),i.updateRenderState({baseLayer:h}),e.setPixelRatio(1),e.setSize(h.framebufferWidth,h.framebufferHeight,!1),v=new ny(h.framebufferWidth,h.framebufferHeight,{format:ej,type:ew,colorSpace:e.outputColorSpace,stencilBuffer:m.stencil,resolveDepthBuffer:!1===h.ignoreDepthValues,resolveStencilBuffer:!1===h.ignoreDepthValues})}v.isXRRenderTarget=!0,this.setFoveation(o),l=null,a=await i.requestReferenceSpace(s),j.setContext(i),j.start(),n.isPresenting=!0,n.dispatchEvent({type:"sessionstart"})}},this.getEnvironmentBlendMode=function(){if(null!==i)return i.environmentBlendMode},this.getDepthTexture=function(){return p.getDepthTexture()};let I=new t1,R=new t1;function k(e,t,n){I.setFromMatrixPosition(t.matrixWorld),R.setFromMatrixPosition(n.matrixWorld);let i=I.distanceTo(R),r=t.projectionMatrix.elements,a=n.projectionMatrix.elements,s=r[14]/(r[10]-1),o=r[14]/(r[10]+1),l=(r[9]+1)/r[5],u=(r[9]-1)/r[5],c=(r[8]-1)/r[0],d=(a[8]+1)/a[0],h=s*c,f=s*d,p=i/(-c+d),m=-(p*c);if(t.matrixWorld.decompose(e.position,e.quaternion,e.scale),e.translateX(m),e.translateZ(p),e.matrixWorld.compose(e.position,e.quaternion,e.scale),e.matrixWorldInverse.copy(e.matrixWorld).invert(),-1===r[10])e.projectionMatrix.copy(t.projectionMatrix),e.projectionMatrixInverse.copy(t.projectionMatrixInverse);else{let t=s+p,n=o+p,r=h-m,a=f+(i-m),c=l*o/n*t,d=u*o/n*t;e.projectionMatrix.makePerspective(r,a,c,d,t,n),e.projectionMatrixInverse.copy(e.projectionMatrix).invert()}}function D(e,t){null===t?e.matrixWorld.copy(e.matrix):e.matrixWorld.multiplyMatrices(t.matrixWorld,e.matrix),e.matrixWorldInverse.copy(e.matrixWorld).invert()}function N(e,t,n){null===n?e.matrix.copy(t.matrixWorld):(e.matrix.copy(n.matrixWorld),e.matrix.invert(),e.matrix.multiply(t.matrixWorld)),e.matrix.decompose(e.position,e.quaternion,e.scale),e.updateMatrixWorld(!0),e.projectionMatrix.copy(t.projectionMatrix),e.projectionMatrixInverse.copy(t.projectionMatrixInverse),e.isPerspectiveCamera&&(e.fov=2*tW*Math.atan(1/e.projectionMatrix.elements[5]),e.zoom=1)}this.updateCamera=function(e){if(null===i)return;let t=e.near,n=e.far;null!==p.texture&&(p.depthNear>0&&(t=p.depthNear),p.depthFar>0&&(n=p.depthFar)),T.near=E.near=C.near=t,T.far=E.far=C.far=n,(S!==T.near||L!==T.far)&&(i.updateRenderState({depthNear:T.near,depthFar:T.far}),S=T.near,L=T.far),C.layers.mask=2|e.layers.mask,E.layers.mask=4|e.layers.mask,T.layers.mask=C.layers.mask|E.layers.mask;let r=e.parent,a=T.cameras;D(T,r);for(let e=0;e<a.length;e++)D(a[e],r);2===a.length?k(T,C,E):T.projectionMatrix.copy(C.projectionMatrix),N(e,T,r)},this.getCamera=function(){return T},this.getFoveation=function(){if(null!==d||null!==h)return o},this.setFoveation=function(e){o=e,null!==d&&(d.fixedFoveation=e),null!==h&&void 0!==h.fixedFoveation&&(h.fixedFoveation=e)},this.hasDepthSensing=function(){return null!==p.texture},this.getDepthSensingMesh=function(){return p.getMesh(T)};let F=null;function O(t,r){if(u=r.getViewerPose(l||a),f=r,null!==u){let t=u.views;null!==h&&(e.setRenderTargetFramebuffer(v,h.framebuffer),e.setRenderTarget(v));let n=!1;t.length!==T.cameras.length&&(T.cameras.length=0,n=!0);for(let i=0;i<t.length;i++){let r=t[i],a=null;if(null!==h)a=h.getViewport(r);else{let t=c.getViewSubImage(d,r);a=t.viewport,0===i&&(e.setRenderTargetTextures(v,t.colorTexture,t.depthStencilTexture),e.setRenderTarget(v))}let s=w[i];void 0===s&&((s=new rm).layers.enable(i),s.viewport=new ng,w[i]=s),s.matrix.fromArray(r.transform.matrix),s.matrix.decompose(s.position,s.quaternion,s.scale),s.projectionMatrix.fromArray(r.projectionMatrix),s.projectionMatrixInverse.copy(s.projectionMatrix).invert(),s.viewport.set(a.x,a.y,a.width,a.height),0===i&&(T.matrix.copy(s.matrix
244),T.matrix.decompose(T.position,T.quaternion,T.scale)),!0===n&&T.cameras.push(s)}let r=i.enabledFeatures;if(r&&r.includes("depth-sensing")&&"gpu-optimized"==i.depthUsage&&c){let n=c.getDepthInformation(t[0]);n&&n.isValid&&n.texture&&p.init(e,n,i.renderState)}}for(let e=0;e<y.length;e++){let t=_[e],n=y[e];null!==t&&void 0!==n&&n.update(t,r,l||a)}F&&F(t,r),r.detectedPlanes&&n.dispatchEvent({type:"planesdetected",data:r}),f=null}let j=new sR;j.setAnimationLoop(O),this.setAnimationLoop=function(e){F=e},this.dispose=function(){}}}let ut=new n5,un=new nZ;function ui(e,t){function n(e,t){!0===e.matrixAutoUpdate&&e.updateMatrix(),t.value.copy(e.matrix)}function i(e,i){e.opacity.value=i.opacity,i.color&&e.diffuse.value.copy(i.color),i.emissive&&e.emissive.value.copy(i.emissive).multiplyScalar(i.emissiveIntensity),i.map&&(e.map.value=i.map,n(i.map,e.mapTransform)),i.alphaMap&&(e.alphaMap.value=i.alphaMap,n(i.alphaMap,e.alphaMapTransform)),i.bumpMap&&(e.bumpMap.value=i.bumpMap,n(i.bumpMap,e.bumpMapTransform),e.bumpScale.value=i.bumpScale,i.side===g&&(e.bumpScale.value*=-1)),i.normalMap&&(e.normalMap.value=i.normalMap,n(i.normalMap,e.normalMapTransform),e.normalScale.value.copy(i.normalScale),i.side===g&&e.normalScale.value.negate()),i.displacementMap&&(e.displacementMap.value=i.displacementMap,n(i.displacementMap,e.displacementMapTransform),e.displacementScale.value=i.displacementScale,e.displacementBias.value=i.displacementBias),i.emissiveMap&&(e.emissiveMap.value=i.emissiveMap,n(i.emissiveMap,e.emissiveMapTransform)),i.specularMap&&(e.specularMap.value=i.specularMap,n(i.specularMap,e.specularMapTransform)),i.alphaTest>0&&(e.alphaTest.value=i.alphaTest);let r=t.get(i),a=r.envMap,s=r.envMapRotation;a&&(e.envMap.value=a,ut.copy(s),ut.x*=-1,ut.y*=-1,ut.z*=-1,a.isCubeTexture&&!1===a.isRenderTargetTexture&&(ut.y*=-1,ut.z*=-1),e.envMapRotation.value.setFromMatrix4(un.makeRotationFromEuler(ut)),e.flipEnvMap.value=a.isCubeTexture&&!1===a.isRenderTargetTexture?-1:1,e.reflectivity.value=i.reflectivity,e.ior.value=i.ior,e.refractionRatio.value=i.refractionRatio),i.lightMap&&(e.lightMap.value=i.lightMap,e.lightMapIntensity.value=i.lightMapIntensity,n(i.lightMap,e.lightMapTransform)),i.aoMap&&(e.aoMap.value=i.aoMap,e.aoMapIntensity.value=i.aoMapIntensity,n(i.aoMap,e.aoMapTransform))}function r(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform))}function a(e,t){e.dashSize.value=t.dashSize,e.totalSize.value=t.dashSize+t.gapSize,e.scale.value=t.scale}function s(e,t,i,r){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.size.value=t.size*i,e.scale.value=.5*r,t.map&&(e.map.value=t.map,n(t.map,e.uvTransform)),t.alphaMap&&(e.alphaMap.value=t.alphaMap,n(t.alphaMap,e.alphaMapTransform)),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}function o(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.rotation.value=t.rotation,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform)),t.alphaMap&&(e.alphaMap.value=t.alphaMap,n(t.alphaMap,e.alphaMapTransform)),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}function l(e,t){e.specular.value.copy(t.specular),e.shininess.value=Math.max(t.shininess,1e-4)}function u(e,t){t.gradientMap&&(e.gradientMap.value=t.gradientMap)}function c(e,t){e.metalness.value=t.metalness,t.metalnessMap&&(e.metalnessMap.value=t.metalnessMap,n(t.metalnessMap,e.metalnessMapTransform)),e.roughness.value=t.roughness,t.roughnessMap&&(e.roughnessMap.value=t.roughnessMap,n(t.roughnessMap,e.roughnessMapTransform)),t.envMap&&(e.envMapIntensity.value=t.envMapIntensity)}function d(e,t,i){e.ior.value=t.ior,t.sheen>0&&(e.sheenColor.value.copy(t.sheenColor).multiplyScalar(t.sheen),e.sheenRoughness.value=t.sheenRoughness,t.sheenColorMap&&(e.sheenColorMap.value=t.sheenColorMap,n(t.sheenColorMap,e.sheenColorMapTransform)),t.sheenRoughnessMap&&(e.sheenRoughnessMap.value=t.sheenRoughnessMap,n(t.sheenRoughnessMap,e.sheenRoughnessMapTransform))),t.clearcoat>0&&(e.clearcoat.value=t.clearcoat,e.clearcoatRoughness.value=t.clearcoatRoughness,t.clearcoatMap&&(e.clearcoatMap.value=t.clearcoatMap,n(t.clearcoatMap,e.clearcoatMapTransform)),t.clearcoatRoughnessMap&&(e.clearcoatRoughnessMap.value=t.clearcoatRoughnessMap,n(t.clearcoatRoughnessMap,e.clearcoatRoughnessMapTransform)),t.clearcoatNormalMap&&(e.clearcoatNormalMap.value=t.clearcoatNormalMap,n(t.clearcoatNormalMap,e.clearcoatNormalMapTransform),e.clearcoatNormalScale.value.copy(t.clearcoatNormalScale),t.side===g&&e.clearcoatNormalScale.value.negate())),t.dis
244persion>0&&(e.dispersion.value=t.dispersion),t.iridescence>0&&(e.iridescence.value=t.iridescence,e.iridescenceIOR.value=t.iridescenceIOR,e.iridescenceThicknessMinimum.value=t.iridescenceThicknessRange[0],e.iridescenceThicknessMaximum.value=t.iridescenceThicknessRange[1],t.iridescenceMap&&(e.iridescenceMap.value=t.iridescenceMap,n(t.iridescenceMap,e.iridescenceMapTransform)),t.iridescenceThicknessMap&&(e.iridescenceThicknessMap.value=t.iridescenceThicknessMap,n(t.iridescenceThicknessMap,e.iridescenceThicknessMapTransform))),t.transmission>0&&(e.transmission.value=t.transmission,e.transmissionSamplerMap.value=i.texture,e.transmissionSamplerSize.value.set(i.width,i.height),t.transmissionMap&&(e.transmissionMap.value=t.transmissionMap,n(t.transmissionMap,e.transmissionMapTransform)),e.thickness.value=t.thickness,t.thicknessMap&&(e.thicknessMap.value=t.thicknessMap,n(t.thicknessMap,e.thicknessMapTransform)),e.attenuationDistance.value=t.attenuationDistance,e.attenuationColor.value.copy(t.attenuationColor)),t.anisotropy>0&&(e.anisotropyVector.value.set(t.anisotropy*Math.cos(t.anisotropyRotation),t.anisotropy*Math.sin(t.anisotropyRotation)),t.anisotropyMap&&(e.anisotropyMap.value=t.anisotropyMap,n(t.anisotropyMap,e.anisotropyMapTransform))),e.specularIntensity.value=t.specularIntensity,e.specularColor.value.copy(t.specularColor),t.specularColorMap&&(e.specularColorMap.value=t.specularColorMap,n(t.specularColorMap,e.specularColorMapTransform)),t.specularIntensityMap&&(e.specularIntensityMap.value=t.specularIntensityMap,n(t.specularIntensityMap,e.specularIntensityMapTransform))}function h(e,t){t.matcap&&(e.matcap.value=t.matcap)}function f(e,n){let i=t.get(n).light;e.referencePosition.value.setFromMatrixPosition(i.matrixWorld),e.nearDistance.value=i.shadow.camera.near,e.farDistance.value=i.shadow.camera.far}return{refreshFogUniforms:function(t,n){n.color.getRGB(t.fogColor.value,rs(e)),n.isFog?(t.fogNear.value=n.near,t.fogFar.value=n.far):n.isFogExp2&&(t.fogDensity.value=n.density)},refreshMaterialUniforms:function(e,t,n,p,m){t.isMeshBasicMaterial?i(e,t):t.isMeshLambertMaterial?i(e,t):t.isMeshToonMaterial?(i(e,t),u(e,t)):t.isMeshPhongMaterial?(i(e,t),l(e,t)):t.isMeshStandardMaterial?(i(e,t),c(e,t),t.isMeshPhysicalMaterial&&d(e,t,m)):t.isMeshMatcapMaterial?(i(e,t),h(e,t)):t.isMeshDepthMaterial?i(e,t):t.isMeshDistanceMaterial?(i(e,t),f(e,t)):t.isMeshNormalMaterial?i(e,t):t.isLineBasicMaterial?(r(e,t),t.isLineDashedMaterial&&a(e,t)):t.isPointsMaterial?s(e,t,n,p):t.isSpriteMaterial?o(e,t):t.isShadowMaterial?(e.color.value.copy(t.color),e.opacity.value=t.opacity):t.isShaderMaterial&&(t.uniformsNeedUpdate=!1)}}}function ur(e,t,n,i){let r={},a={},s=[],o=e.getParameter(e.MAX_UNIFORM_BUFFER_BINDINGS);function l(t){let n=u();t.__bindingPointIndex=n;let i=e.createBuffer(),r=t.__size,a=t.usage;return e.bindBuffer(e.UNIFORM_BUFFER,i),e.bufferData(e.UNIFORM_BUFFER,r,a),e.bindBuffer(e.UNIFORM_BUFFER,null),e.bindBufferBase(e.UNIFORM_BUFFER,n,i),i}function u(){for(let e=0;e<o;e++)if(-1===s.indexOf(e))return s.push(e),e;return console.error("THREE.WebGLRenderer: Maximum number of simultaneously usable uniforms groups reached."),0}function c(t){let n=r[t.id],i=t.uniforms,a=t.__cache;e.bindBuffer(e.UNIFORM_BUFFER,n);for(let t=0,n=i.length;t<n;t++){let n=Array.isArray(i[t])?i[t]:[i[t]];for(let i=0,r=n.length;i<r;i++){let r=n[i];if(!0===d(r,t,i,a)){let t=r.__offset,n=Array.isArray(r.value)?r.value:[r.value],i=0;for(let a=0;a<n.length;a++){let s=n[a],o=f(s);"number"==typeof s||"boolean"==typeof s?(r.__data[0]=s,e.bufferSubData(e.UNIFORM_BUFFER,t+i,r.__data)):s.isMatrix3?(r.__data[0]=s.elements[0],r.__data[1]=s.elements[1],r.__data[2]=s.elements[2],r.__data[3]=0,r.__data[4]=s.elements[3],r.__data[5]=s.elements[4],r.__data[6]=s.elements[5],r.__data[7]=0,r.__data[8]=s.elements[6],r.__data[9]=s.elements[7],r.__data[10]=s.elements[8],r.__data[11]=0):(s.toArray(r.__data,i),i+=o.storage/Float32Array.BYTES_PER_ELEMENT)}e.bufferSubData(e.UNIFORM_BUFFER,t,r.__data)}}}e.bindBuffer(e.UNIFORM_BUFFER,null)}function d(e,t,n,i){let r=e.value,a=t+"_"+n;if(void 0===i[a])return"number"==typeof r||"boolean"==typeof r?i[a]=r:i[a]=r.clone(),!0;{let e=i[a];if("number"==typeof r||"boolean"==typeof r){if(e!==r)return i[a]=r,!0}else if(!1===e.equals(r))return e.copy(r),!0}return!1}function h(e){let t=e.uniforms,n=0,i=16;for(let e=0,r=t.length;e<r;e++){let r=Array.isArray(t[e])?t[e]:[t[e]];for(let e=0,t=r.length;e<t;e++){let t=r[e],a=Array.isArray(t.value)?t.value:[t.value];for(let e=0,r=a.length;e<r;
244e++){let r=f(a[e]),s=n%i,o=s%r.boundary,l=s+o;n+=o,0!==l&&i-l<r.storage&&(n+=i-l),t.__data=new Float32Array(r.storage/Float32Array.BYTES_PER_ELEMENT),t.__offset=n,n+=r.storage}}}let r=n%i;return r>0&&(n+=i-r),e.__size=n,e.__cache={},this}function f(e){let t={boundary:0,storage:0};return"number"==typeof e||"boolean"==typeof e?(t.boundary=4,t.storage=4):e.isVector2?(t.boundary=8,t.storage=8):e.isVector3||e.isColor?(t.boundary=16,t.storage=12):e.isVector4?(t.boundary=16,t.storage=16):e.isMatrix3?(t.boundary=48,t.storage=48):e.isMatrix4?(t.boundary=64,t.storage=64):e.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",e),t}function p(t){let n=t.target;n.removeEventListener("dispose",p);let i=s.indexOf(n.__bindingPointIndex);s.splice(i,1),e.deleteBuffer(r[n.id]),delete r[n.id],delete a[n.id]}return{bind:function(e,t){let n=t.program;i.uniformBlockBinding(e,n)},update:function(e,n){let s=r[e.id];void 0===s&&(h(e),s=l(e),r[e.id]=s,e.addEventListener("dispose",p));let o=n.program;i.updateUBOMapping(e,o);let u=t.render.frame;a[e.id]!==u&&(c(e),a[e.id]=u)},dispose:function(){for(let t in r)e.deleteBuffer(r[t]);s=[],r={},a={}}}}class ua{constructor(e={}){let t,n,i,r,a,s,o,u,c,d,h,f,p,y,_,b,x,C,E,w,T,S,L,P,M;let{canvas:A=t7(),context:I=null,depth:R=!0,stencil:k=!1,alpha:D=!1,antialias:N=!1,premultipliedAlpha:F=!0,preserveDrawingBuffer:O=!1,powerPreference:j="default",failIfMajorPerformanceCaveat:U=!1,reverseDepthBuffer:V=!1}=e;if(this.isWebGLRenderer=!0,null!==I){if("undefined"!=typeof WebGLRenderingContext&&I instanceof WebGLRenderingContext)throw Error("THREE.WebGLRenderer: WebGL 1 is not supported since r163.");t=I.getContextAttributes().alpha}else t=D;let B=new Uint32Array(4),H=new Int32Array(4),G=null,z=null,q=[],W=[];this.domElement=A,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.toneMapping=et,this.toneMappingExposure=1,this.transmissionResolutionScale=1;let $=this,Z=!1;this._outputColorSpace=tT;let Y=0,K=0,X=null,Q=-1,J=null,ee=new ng,en=new ng,ei=null,er=new iR(0),ea=0,es=A.width,eo=A.height,el=1,eu=null,ec=null,ed=new ng(0,0,es,eo),eh=new ng(0,0,es,eo),ef=!1,ep=new rI,em=!1,eg=!1,ev=new nZ,ey=new nZ,e_=new t1,eb=new ng,ex={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0},eC=!1;function eT(){return null===X?el:1}let eS=I;function eP(e,t){return A.getContext(e,t)}try{let e={alpha:!0,depth:R,stencil:k,antialias:N,premultipliedAlpha:F,preserveDrawingBuffer:O,powerPreference:j,failIfMajorPerformanceCaveat:U};if("setAttribute"in A&&A.setAttribute("data-engine",`three.js r${l}`),A.addEventListener("webglcontextlost",eF,!1),A.addEventListener("webglcontextrestored",eO,!1),A.addEventListener("webglcontextcreationerror",ej,!1),null===eS){let t="webgl2";if(eS=eP(t,e),null===eS){if(eP(t))throw Error("Error creating WebGL context with your selected attributes.");throw Error("Error creating WebGL context.")}}}catch(e){throw console.error("THREE.WebGLRenderer: "+e.message),e}function eA(){(n=new or(eS)).init(),L=new l6(eS,n),i=new sG(eS,n,e,L),r=new l5(eS,n),i.reverseDepthBuffer&&V&&r.buffers.depth.setReversed(!0),a=new oo(eS),s=new lH,o=new l4(eS,n,r,s,i,L,a),u=new sq($),c=new oi($),d=new sk(eS),P=new sB(eS,d),h=new oa(eS,d,a,P),f=new ou(eS,h,d,a),w=new ol(eS,i,o),x=new sz(s),p=new lB($,u,c,n,i,P,x),y=new ui($,s),_=new lW,b=new lJ(n),E=new sV($,u,c,r,f,t,F),C=new l2($,f,i),M=new ur(eS,a,i,r),T=new sH(eS,n,a),S=new os(eS,n,a),a.programs=p.programs,$.capabilities=i,$.extensions=n,$.properties=s,$.renderLists=_,$.shadowMap=C,$.state=r,$.info=a}eA();let eN=new ue($,eS);function eF(e){e.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),Z=!0}function eO(){console.log("THREE.WebGLRenderer: Context Restored."),Z=!1;let e=a.autoReset,t=C.enabled,n=C.autoUpdate,i=C.needsUpdate,r=C.type;eA(),a.autoReset=e,C.enabled=t,C.autoUpdate=n,C.needsUpdate=i,C.type=r}function ej(e){console.error("THREE.WebGLRenderer: A WebGL context could not be created. Reason: ",e.statusMessage)}function eU(e){let t=e.target;t.removeEventListener("dispose",eU),eV(t)}function eV(e){eB(e),s.remove(e)}function eB(e){let t=s.get(e).programs;void 0!==t&&(t.forEach(function(e){p.releaseProgram(e)}),e.isShaderMaterial&&p.releaseShaderCache(e))}function eG(e,t,n){!0===e.transparent&&e.side===v&&!1===e.forceSinglePass?(e.side=g,e.needsUpdate=!0,e2(e,t,n),e.side=m,e.needsUpdate=!0,e2(e,t,n),e.side=v):e2(e,t,n)}this.xr=eN,this.getContext=function(){return eS},this.getContextAttributes=function(){return eS.getContextAttributes()},this.forceContextLoss=function(){let e=n.get("WEBGL_lose_context");e&&e.loseContext()},this.forceContextRestore=function(){let e=n.get("WEBGL_lose_context");e&&e.restoreContext()},this.getPixelRatio=function(){return el},this.setPixelRatio=function(e){void 0!==e&&(el=e,this.setSize(es,eo,!1))}
vendor: 8,769 bytes, line 244
244,this.getSize=function(e){return e.set(es,eo)},this.setSize=function(e,t,n=!0){if(eN.isPresenting){console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting.");return}es=e,eo=t,A.width=Math.floor(e*el),A.height=Math.floor(t*el),!0===n&&(A.style.width=e+"px",A.style.height=t+"px"),this.setViewport(0,0,e,t)},this.getDrawingBufferSize=function(e){return e.set(es*el,eo*el).floor()},this.setDrawingBufferSize=function(e,t,n){es=e,eo=t,el=n,A.width=Math.floor(e*n),A.height=Math.floor(t*n),this.setViewport(0,0,e,t)},this.getCurrentViewport=function(e){return e.copy(ee)},this.getViewport=function(e){return e.copy(ed)},this.setViewport=function(e,t,n,i){e.isVector4?ed.set(e.x,e.y,e.z,e.w):ed.set(e,t,n,i),r.viewport(ee.copy(ed).multiplyScalar(el).round())},this.getScissor=function(e){return e.copy(eh)},this.setScissor=function(e,t,n,i){e.isVector4?eh.set(e.x,e.y,e.z,e.w):eh.set(e,t,n,i),r.scissor(en.copy(eh).multiplyScalar(el).round())},this.getScissorTest=function(){return ef},this.setScissorTest=function(e){r.setScissorTest(ef=e)},this.setOpaqueSort=function(e){eu=e},this.setTransparentSort=function(e){ec=e},this.getClearColor=function(e){return e.copy(E.getClearColor())},this.setClearColor=function(){E.setClearColor(...arguments)},this.getClearAlpha=function(){return E.getClearAlpha()},this.setClearAlpha=function(){E.setClearAlpha(...arguments)},this.clear=function(e=!0,t=!0,n=!0){let i=0;if(e){let e=!1;if(null!==X){let t=X.texture.format;e=t===eq||t===ez||t===eH}if(e){let e=X.texture.type,t=e===ew||e===eM||e===eL||e===eD||e===eR||e===ek,n=E.getClearColor(),i=E.getClearAlpha(),r=n.r,a=n.g,s=n.b;t?(B[0]=r,B[1]=a,B[2]=s,B[3]=i,eS.clearBufferuiv(eS.COLOR,0,B)):(H[0]=r,H[1]=a,H[2]=s,H[3]=i,eS.clearBufferiv(eS.COLOR,0,H))}else i|=eS.COLOR_BUFFER_BIT}t&&(i|=eS.DEPTH_BUFFER_BIT),n&&(i|=eS.STENCIL_BUFFER_BIT,this.state.buffers.stencil.setMask(4294967295)),eS.clear(i)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.dispose=function(){A.removeEventListener("webglcontextlost",eF,!1),A.removeEventListener("webglcontextrestored",eO,!1),A.removeEventListener("webglcontextcreationerror",ej,!1),E.dispose(),_.dispose(),b.dispose(),s.dispose(),u.dispose(),c.dispose(),f.dispose(),P.dispose(),M.dispose(),p.dispose(),eN.dispose(),eN.removeEventListener("sessionstart",eZ),eN.removeEventListener("sessionend",eY),eK.stop()},this.renderBufferDirect=function(e,t,i,a,o,l){let u;null===t&&(t=ex);let c=o.isMesh&&0>o.matrixWorld.determinant(),f=e4(e,t,i,a,o);r.setMaterial(a,c);let p=i.index,m=1;if(!0===a.wireframe){if(void 0===(p=h.getWireframeAttribute(i)))return;m=2}let g=i.drawRange,v=i.attributes.position,y=g.start*m,_=(g.start+g.count)*m;null!==l&&(y=Math.max(y,l.start*m),_=Math.min(_,(l.start+l.count)*m)),null!==p?(y=Math.max(y,0),_=Math.min(_,p.count)):null!=v&&(y=Math.max(y,0),_=Math.min(_,v.count));let b=_-y;if(b<0||b===1/0)return;P.setup(o,a,f,i,p);let x=T;if(null!==p&&(u=d.get(p),(x=S).setIndex(u)),o.isMesh)!0===a.wireframe?(r.setLineWidth(a.wireframeLinewidth*eT()),x.setMode(eS.LINES)):x.setMode(eS.TRIANGLES);else if(o.isLine){let e=a.linewidth;void 0===e&&(e=1),r.setLineWidth(e*eT()),o.isLineSegments?x.setMode(eS.LINES):o.isLineLoop?x.setMode(eS.LINE_LOOP):x.setMode(eS.LINE_STRIP)}else o.isPoints?x.setMode(eS.POINTS):o.isSprite&&x.setMode(eS.TRIANGLES);if(o.isBatchedMesh){if(null!==o._multiDrawInstances)ne("THREE.WebGLRenderer: renderMultiDrawInstances has been deprecated and will be removed in r184. Append to renderMultiDraw arguments and use indirection."),x.renderMultiDrawInstances(o._multiDrawStarts,o._multiDrawCounts,o._multiDrawCount,o._multiDrawInstances);else if(n.get("WEBGL_multi_draw"))x.renderMultiDraw(o._multiDrawStarts,o._multiDrawCounts,o._multiDrawCount);else{let e=o._multiDrawStarts,t=o._multiDrawCounts,n=o._multiDrawCount,i=p?d.get(p).bytesPerElement:1,r=s.get(a).currentProgram.getUniforms();for(let a=0;a<n;a++)r.setValue(eS,"_gl_DrawID",a),x.render(e[a]/i,t[a])}}else if(o.isInstancedMesh)x.renderInstances(y,b,o.count);else if(i.isInstancedBufferGeometry){let e=void 0!==i._maxInstanceCount?i._maxInstanceCount:1/0,t=Math.min(i.instanceCount,e);x.renderInstances(y,b,t)}else x.render(y,b)},this.compile=function(e,t,n=null){null===n&&(n=e),(z=b.get(n)).init(t),W.push(z),n.traverseVisible(function(e){e.isLight&&e.layers.test(t.layers)&&(z.pushLight(e),e.castShadow&&z.pushShadow(e))}),e!==n&&e.traverseVisible(function(e){e.isLight&&e.layers.test(t.layers)&&(z.pushLight(e),e.castShadow&&z.pushShadow(e))}),z.setupLights();let i=new Set;return e.traverse(function(e){if(!(e.isMesh||e.isPoints||e.isLine||e.isSprite))return;let t=e.material;if(t){if(Array.isArray(t))for(let r=0;r<t.length;r++){let a=t[r];eG(a,n,e),i.add(a)}else eG(t,n,e),i.add(t)}}),z=W.pop(),i},this.compileAsync=function(e,t,i=null){let r=this.compile(e,t,i);return new Promise(t=>{function i(){if(r.forEach(function(e){s.get(e).currentProgram.isReady()&&r.delete(e)}),0===r.size){t(e);return}setTimeout(i,10)}null!==n.get("KHR_parallel_shader_compile")?i():setTimeout(i,10)})};let eW=null;function e$(e){eW&&eW(e)}function eZ(){eK.stop()}function eY(){eK.start()}let eK=new sR;function eX(e,t,n,i){if(!1===e.visible)return;if(e.layers.test(t.layers)){if(e.isGroup)n=e.renderOrder;else if(e.isLOD)!0===e.autoUpdate&&e.update(t);else if(e.isLight)z.pushLight(e),e.castShadow&&z.pushShadow(e);else if(e.isSprite){if(!e.frustumCulled||ep.intersectsSprite(e)){i&&eb.setFromMatrixPosition(e.matrixWorld).applyMatrix4(ey);let t=f.update(e),r=e.material;r.visible&&G.push(e,t,r,n,eb.z,null)}}else if((e.isMesh||e.isLine||e.isPoints)&&(!e.frustumCulled||ep.intersectsObject(e))){let t=f.update(e),r=e.material;if(i&&(void 0!==e.boundingSphere?(null===e.boundingSphere&&e.computeBoundingSphere(),eb.copy(e.boundingSphere.center)):(null===t.boundingSphere&&t.computeBoundingSphere(),eb.copy(t.boundingSphere.center)),eb.applyMatrix4(e.matrixWorld).applyMatrix4(ey)),Array.isArray(r)){let i=t.groups;for(let a=0,s=i.length;a<s;a++){let s=i[a],o=r[s.materialIndex];o&&o.visible&&G.push(e,t,o,n,eb.z,s)}}else r.visible&&G.push(e,t,r,n,eb.z,null)}}let r=e.children;for(let e=0,a=r.length;e<a;e++)eX(r[e],t,n,i)}function eQ(e,t,n,i){let a=e.opaque,s=e.transmissive,o=e.transparent;z.setupLightsView(n),!0===em&&x.setGlobalState($.clippingPlanes,n),i&&r.viewport(ee.copy(i)),a.length>0&&e0(a,t,n),s.length>0&&e0(s,t,n),o.length>0&&e0(o,t,n),r.buffers.depth.setTest(!0),r.buffers.depth.setMask(!0),r.buffers.color.setMask(!0),r.setPolygonOffset(!1)}function eJ(e,t,i,r){if(null!==(!0===i.isScene?i.overrideMaterial:null))return;void 0===z.state.transmissionRenderTarget[r.id]&&(z.state.transmissionRenderTarget[r.id]=new ny(1,1,{generateMipmaps:!0,type:n.has("EXT_color_buffer_half_float")||n.has("EXT_color_buffer_float")?eI:ew,minFilter:eE,samples:4,stencilBuffer:k,resolveDepthBuffer:!1,resolveStencilBuffer:!1,colorSpace:ns.workingColorSpace}));let a=z.state.transmissionRenderTarget[r.id],s=r.viewport||ee;a.setSize(s.z*$.transmissionResolutionScale,s.w*$.transmissionResolutionScale);let l=$.getRenderTarget();$.setRenderTarget(a),$.getClearColor(er),(ea=$.getClearAlpha())<1&&$.setClearColor(16777215,.5),$.clear(),eC&&E.render(i);let u=$.toneMapping;$.toneMapping=et;let c=r.viewport;if(void 0!==r.viewport&&(r.viewport=void 0),z.setupLightsView(r),!0===em&&x.setGlobalState($.clippingPlanes,r),e0(e,i,r),o.updateMultisampleRenderTarget(a),o.updateRenderTargetMipmap(a),!1===n.has("WEBGL_multisampled_render_to_texture")){let e=!1;for(let n=0,a=t.length;n<a;n++){let a=t[n],s=a.object,o=a.geometry,l=a.material,u=a.group;if(l.side===v&&s.layers.test(r.layers)){let t=l.side;l.side=g,l.needsUpdate=!0,e1(s,i,r,o,l,u),l.side=t,l.needsUpdate=!0,e=!0}}!0===e&&(o.updateMultisampleRenderTarget(a),o.updateRenderTargetMipmap(a))}$.setRenderTarget(l),$.setClearColor(er,ea),void 0!==c&&(r.viewport=c),$.toneMapping=u}function e0(e,t,n){let i=!0===t.isScene?t.overrideMaterial:null;for(let r=0,a=e.length;r<a;r++){let a=e[r],s=a.object,o=a.geometry,l=a.group,u=a.material;!0===u.allowOverride&&null!==i&&(u=i),s.layers.test(n.layers)&&e1(s,t,n,o,u,l)}}function e1(e,t,n,i,r,a){e.onBeforeRender($,t,n,i,r,a),e.modelViewMatrix.multiplyMatrices(n.matrixWorldInverse,e.matrixWorld),e.normalMatrix.getNormalMatrix(e.modelViewMatrix),r.onBeforeRender($,t,n,i,e,a),!0===r.transparent&&r.side===v&&!1===r.forceSinglePass?(r.side=g,r.needsUpdate=!0,$.renderBufferDirect(n,t,i,r,e,a),r.side=m,r.needsUpdate=!0,$.renderBufferDirect(n,t,i,r,e,a),r.side=v):$.renderBufferDirect(n,t,i,r,e,a),e.onAfterRender($,t,n,i,r,a)}function e2(e,t,n){!0!==t.isScene&&(t=ex);let i=s.get(e),r=z.state.lights,a=z.state.shadowsArray,o=r.state.ver
244sion,l=p.getParameters(e,r.state,a,t,n),d=p.getProgramCacheKey(l),h=i.programs;i.environment=e.isMeshStandardMaterial?t.environment:null,i.fog=t.fog,i.envMap=(e.isMeshStandardMaterial?c:u).get(e.envMap||i.environment),i.envMapRotation=null!==i.environment&&null===e.envMap?t.environmentRotation:e.envMapRotation,void 0===h&&(e.addEventListener("dispose",eU),h=new Map,i.programs=h);let f=h.get(d);if(void 0!==f){if(i.currentProgram===f&&i.lightsStateVersion===o)return e5(e,l),f}else l.uniforms=p.getUniforms(e),e.onBeforeCompile(l,$),f=p.acquireProgram(l,d),h.set(d,f),i.uniforms=l.uniforms;let m=i.uniforms;return(e.isShaderMaterial||e.isRawShaderMaterial)&&!0!==e.clipping||(m.clippingPlanes=x.uniform),e5(e,l),i.needsLights=e8(e),i.lightsStateVersion=o,i.needsLights&&(m.ambientLightColor.value=r.state.ambient,m.lightProbe.value=r.state.probe,m.directionalLights.value=r.state.directional,m.directionalLightShadows.value=r.state.directionalShadow,m.spotLights.value=r.state.spot,m.spotLightShadows.value=r.state.spotShadow,m.rectAreaLights.value=r.state.rectArea,m.ltc_1.value=r.state.rectAreaLTC1,m.ltc_2.value=r.state.rectAreaLTC2,m.pointLights.value=r.state.point,m.pointLightShadows.value=r.state.pointShadow,m.hemisphereLights.value=r.state.hemi,m.directionalShadowMap.value=r.state.directionalShadowMap,m.directionalShadowMatrix.value=r.state.directionalShadowMatrix,m.spotShadowMap.value=r.state.spotShadowMap,m.spotLightMatrix.value=r.state.spotLightMatrix,m.spotLightMap.value=r.state.spotLightMap,m.pointShadowMap.value=r.state.pointShadowMap,m.pointShadowMatrix.value=r.state.pointShadowMatrix),i.currentProgram=f,i.uniformsList=null,f}function e3(e){if(null===e.uniformsList){let t=e.currentProgram.getUniforms();e.uniformsList=ls.seqWithValue(t.seq,e.uniforms)}return e.uniformsList}function e5(e,t){let n=s.get(e);n.outputColorSpace=t.outputColorSpace,n.batching=t.batching,n.batchingColor=t.batchingColor,n.instancing=t.instancing,n.instancingColor=t.instancingColor,n.instancingMorph=t.instancingMorph,n.skinning=t.skinning,n.morphTargets=t.morphTargets,n.morphNormals=t.morphNormals,n.morphColors=t.morphColors,n.morphTargetsCount=t.morphTargetsCount,n.numClippingPlanes=t.numClippingPlanes,n.numIntersection=t.numClipIntersection,n.vertexAlphas=t.vertexAlphas,n.vertexTangents=t.vertexTangents,n.toneMapping=t.toneMapping}function e4(e,t,n,a,l){!0!==t.isScene&&(t=ex),o.resetTextureUnits();let d=t.fog,h=a.isMeshStandardMaterial?t.environment:null,f=null===X?$.outputColorSpace:!0===X.isXRRenderTarget?X.texture.colorSpace:tS,p=(a.isMeshStandardMaterial?c:u).get(a.envMap||h),m=!0===a.vertexColors&&!!n.attributes.color&&4===n.attributes.color.itemSize,g=!!n.attributes.tangent&&(!!a.normalMap||a.anisotropy>0),v=!!n.morphAttributes.position,_=!!n.morphAttributes.normal,b=!!n.morphAttributes.color,C=et;a.toneMapped&&(null===X||!0===X.isXRRenderTarget)&&(C=$.toneMapping);let E=n.morphAttributes.position||n.morphAttributes.normal||n.morphAttributes.color,T=void 0!==E?E.length:0,S=s.get(a),L=z.state.lights;if(!0===em&&(!0===eg||e!==J)){let t=e===J&&a.id===Q;x.setState(a,e,t)}let P=!1;a.version===S.__version?S.needsLights&&S.lightsStateVersion!==L.state.version?P=!0:S.outputColorSpace!==f?P=!0:l.isBatchedMesh&&!1===S.batching?P=!0:l.isBatchedMesh||!0!==S.batching?l.isBatchedMesh&&!0===S.batchingColor&&null===l.colorTexture?P=!0:l.isBatchedMesh&&!1===S.batchingColor&&null!==l.colorTexture?P=!0:l.isInstancedMesh&&!1===S.instancing?P=!0:l.isInstancedMesh||!0!==S.instancing?l.isSkinnedMesh&&
244!1===S.skinning?P=!0:l.isSkinnedMesh||!0!==S.skinning?l.isInstancedMesh&&!0===S.instancingColor&&null===l.instanceColor?P=!0:l.isInstancedMesh&&!1===S.instancingColor&&null!==l.instanceColor?P=!0:l.isInstancedMesh&&!0===S.instancingMorph&&null===l.morphTexture?P=!0:l.isInstancedMesh&&!1===S.instancingMorph&&null!==l.morphTexture?P=!0:S.envMap!==p?P=!0:!0===a.fog&&S.fog!==d?P=!0:void 0!==S.numClippingPlanes&&(S.numClippingPlanes!==x.numPlanes||S.numIntersection!==x.numIntersection)?P=!0:S.vertexAlphas!==m?P=!0:S.vertexTangents!==g?P=!0:S.morphTargets!==v?P=!0:S.morphNormals!==_?P=!0:S.morphColors!==b?P=!0:S.toneMapping!==C?P=!0:S.morphTargetsCount!==T&&(P=!0):P=!0:P=!0:P=!0:(P=!0,S.__version=a.version);let A=S.currentProgram;!0===P&&(A=e2(a,t,l));let I=!1,R=!1,k=!1,D=A.getUniforms(),N=S.uniforms;if(r.useProgram(A.program)&&(I=!0,R=!0,k=!0),a.id!==Q&&(Q=a.id,R=!0),I||J!==e){r.buffers.depth.getReversed()?(ev.copy(e.projectionMatrix),nn(ev),ni(ev),D.setValue(eS,"projectionMatrix",ev)):D.setValue(eS,"projectionMatrix",e.projectionMatrix),D.setValue(eS,"viewMatrix",e.matrixWorldInverse);let t=D.map.cameraPosition;void 0!==t&&t.setValue(eS,e_.setFromMatrixPosition(e.matrixWorld)),i.logarithmicDepthBuffer&&D.setValue(eS,"logDepthBufFC",2/(Math.log(e.far+1)/Math.LN2)),(a.isMeshPhongMaterial||a.isMeshToonMaterial||a.isMeshLambertMaterial||a.isMeshBasicMaterial||a.isMeshStandardMaterial||a.isShaderMaterial)&&D.setValue(eS,"isOrthographic",!0===e.isOrthographicCamera),J!==e&&(J=e,R=!0,k=!0)}if(l.isSkinnedMesh){D.setOptional(eS,l,"bindMatrix"),D.setOptional(eS,l,"bindMatrixInverse");let e=l.skeleton;e&&(null===e.boneTexture&&e.computeBoneTexture(),D.setValue(eS,"boneTexture",e.boneTexture,o))}l.isBatchedMesh&&(D.setOptional(eS,l,"batchingTexture"),D.setValue(eS,"batchingTexture",l._matricesTexture,o),D.setOptional(eS,l,"batchingIdTexture"),D.setValue(eS,"batchingIdTexture",l._indirectTexture,o),D.setOptional(eS,l,"batchingColorTexture"),null!==l._colorsTexture&&D.setValue(eS,"batchingColorTexture",l._colorsTexture,o));let F=n.morphAttributes;if((void 0!==F.position||void 0!==F.normal||void 0!==F.color)&&w.update(l,n,A),(R||S.receiveShadow!==l.receiveShadow)&&(S.receiveShadow=l.receiveShadow,D.setValue(eS,"receiveShadow",l.receiveShadow)),a.isMeshGouraudMaterial&&null!==a.envMap&&(N.envMap.value=p,N.flipEnvMap.value=p.isCubeTexture&&!1===p.isRenderTargetTexture?-1:1),a.isMeshStandardMaterial&&null===a.envMap&&null!==t.environment&&(N.envMapIntensity.value=t.environmentIntensity),R&&(D.setValue(eS,"toneMappingExposure",$.toneMappingExposure),S.needsLights&&e6(N,k),d&&!0===a.fog&&y.refreshFogUniforms(N,d),y.refreshMaterialUniforms(N,a,el,eo,z.state.transmissionRenderTarget[e.id]),ls.upload(eS,e3(S),N,o)),a.isShaderMaterial&&!0===a.uniformsNeedUpdate&&(ls.upload(eS,e3(S),N,o),a.uniformsNeedUpdate=!1),a.isSpriteMaterial&&D.setValue(eS,"center",l.center),D.setValue(eS,"modelViewMatrix",l.modelViewMatrix),D.setValue(eS,"normalMatrix",l.normalMatrix),D.setValue(eS,"modelMatrix",l.matrixWorld),a.isShaderMaterial||a.isRawShaderMaterial){let e=a.uniformsGroups;for(let t=0,n=e.length;t<n;t++){let n=e[t];M.update(n,A),M.bind(n,A)}}return A}function e6(e,t){e.ambientLightColor.needsUpdate=t,e.lightProbe.needsUpdate=t,e.directionalLights.needsUpdate=t,e.directionalLightShadows.needsUpdate=t,e.pointLights.needsUpdate=t,e.pointLightShadows.needsUpdate=t,e.spotLights.needsUpdate=t,e.spotLightShadows.needsUpdate=t,e.rectAreaLights.needsUpdate=t,e.hemisphereLights.needsUpdate=t}function e8(e){return e.isMeshLambertMaterial||e.isMeshToonMaterial||e.isMeshPhongMaterial||e.isMeshStandardMaterial||e.isShadowMaterial||e.isShaderMaterial&&!0===e.lights}eK.setAnimationLoop(e$),"undefined"!=typeof self&&eK.setContext(self),this.setAnimationLoop=function(e){eW=e,eN.setAnimationLoop(e),null===e?eK.stop():eK.start()},eN.addEventListener("sessionstart",eZ),eN.addEventListener("sessionend",eY),this.render=function(e,t){if(void 0!==t&&!0!==t.isCamera){console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");return}if(!0===Z)return;if(!0===e.matrixWorldAutoUpdate&&e.updateMatrixWorld(),null===t.parent&&!0===t.matrixWorldAutoUpdate&&t.updateMatrixWorld(),!0===eN.enabled&&!0===eN.isPresenting&&(!0===eN.cameraAutoUpdate&&eN.updateCamera(t),t=eN.getCamera()),!0===e.isScene&&e.onBeforeRender($,e,t,X),(z=b.get(e,W.length)).init(t),W.push(z),ey.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),ep.setFromProjectionMatrix(ey),eg=this.localClippingEnabled,em=x.init(this.clippingPlanes,eg),(G=_.get(e,q.length)).init(),q.push(G),!0===eN.enabled&&!0===eN.isPresenting){let e=$.xr.getDepthSensingMesh();null!==e&&eX(e,t,-1/0,$.sortObjects)}eX(e,t,0,$.sortObjects),G.finish(),!0===$.sortObjects&&G.sort(eu,ec),(eC=!1===eN.enabled||!1===eN.isPresenting||!1===eN.hasDepthSensing())&&E.addToRenderList(G,e),this.info.render.frame++,!0===em&&x.beginShadows();let n=z.state.shadowsArray;C.render(n,e,t),!0===em&&x.endShadows(),!0===this.info.autoReset&&this.info.reset();let i=G.opaque,r=G.transmissive;if(z.setupLights(),t.isArrayCamera){let n=t.cameras;if(r.length>0)for(let t=0,a=n.length;t<a;t++)eJ(i,r,e,n[t]);eC&&E.render(e);for(let t=0,i=n.length;t<i;t++){let i=n[t];eQ(G,e,i,i.viewport)}}else r.length>0&&eJ(i,r,e,t),eC&&E.render(e),eQ(G,e,t);null!==X&&0===K&&(o.updateMultisampleRenderTarget(X),o.updateRenderTargetMipmap(X)),!0===e.isScene&&e.onAfterRender($,e,t),P.resetDefaultState(),Q=-1,J=null,W.pop(),W.length>0?(z=W[W.length-1],!0===em&&x.setGlobalState($.clippingPlanes,z.state.camera)):z=null,q.pop(),G=q.length>0?q[q.length-1]:null},this.getActiveCubeFace=function(){return Y},this.getActiveMipmapLevel=function(){return K},this.getRenderTarget=function(){return X},this.setRenderTargetTextures=function(e,t,n){let i=s.get(e);i.__autoAllocateDepthBuffer=!1===e.resolveDepthBuffer,!1===i.__autoAllocateDepthBuffer&&(i.__useRenderToTexture=!1),s.get(e.texture).__webglTexture=t,s.get(e.depthTexture).__webglTexture=i.__autoAllocateDepthBuffer?void 0:n,i.__hasExternalTextures=!0},this.setRenderTargetFramebuffer=function(e,t){let n=s.get(e);n.__webglFramebuffer=t,n.__useDefaultFramebuffer=void 0===t};let e7=eS.createFramebuffer();this.setRenderTarget=function(e,t=0,n=0){X=e,Y=t,K=n;let i=!0,a=null,l=!1,u=!1;if(e){let c=s.get(e);if(void 0!==c.__useDefaultFramebuffer)r.bindFramebuffer(eS.FRAMEBUFFER,null),i=!1;else if(void 0===c.__webglFramebuffer)o.setupRenderTarget(e);else if(c.__hasExternalTextures)o.rebindTextures(e,s.get(e.texture).__webglTexture,s.get(e.depthTexture).__webglTexture);else if(e.depthBuffer){let t=e.depthTexture;if(c.__boundDepthTexture!==t){if(null!==t&&s.has(t)&&(e.width!==t.image.width||e.height!==t.image.height))throw Error("WebGLRenderTarget: Attached DepthTexture is initialized to the incorrect size.");o.setupDepthRenderbuffer(e)}}let d=e.texture;(d.isData3DTexture||d.isDataArrayTexture||d.isCompressedArrayTexture)&&(u=!0);let h=s.get(e).__webglFramebuffer;
244e.isWebGLCubeRenderTarget?(a=Array.isArray(h[t])?h[t][n]:h[t],l=!0):a=e.samples>0&&!1===o.useMultisampledRTT(e)?s.get(e).__webglMultisampledFramebuffer:Array.isArray(h)?h[n]:h,ee.copy(e.viewport),en.copy(e.scissor),ei=e.scissorTest}else ee.copy(ed).multiplyScalar(el).floor(),en.copy(eh).multiplyScalar(el).floor(),ei=ef;if(0!==n&&(a=e7),r.bindFramebuffer(eS.FRAMEBUFFER,a)&&i&&r.drawBuffers(e,a),r.viewport(ee),r.scissor(en),r.setScissorTest(ei),l){let i=s.get(e.texture);eS.framebufferTexture2D(eS.FRAMEBUFFER,eS.COLOR_ATTACHMENT0,eS.TEXTURE_CUBE_MAP_POSITIVE_X+t,i.__webglTexture,n)}else if(u){let i=s.get(e.texture),r=t;eS.framebufferTextureLayer(eS.FRAMEBUFFER,eS.COLOR_ATTACHMENT0,i.__webglTexture,n,r)}else if(null!==e&&0!==n){let t=s.get(e.texture);eS.framebufferTexture2D(eS.FRAMEBUFFER,eS.COLOR_ATTACHMENT0,eS.TEXTURE_2D,t.__webglTexture,n)}Q=-1},this.readRenderTargetPixels=function(e,t,n,a,o,l,u,c=0){if(!(e&&e.isWebGLRenderTarget)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");return}let d=s.get(e).__webglFramebuffer;if(e.isWebGLCubeRenderTarget&&void 0!==u&&(d=d[u]),d){r.bindFramebuffer(eS.FRAMEBUFFER,d);try{let r=e.textures[c],s=r.format,u=r.type;if(!i.textureFormatReadable(s)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");return}if(!i.textureTypeReadable(u)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");return}t>=0&&t<=e.width-a&&n>=0&&n<=e.height-o&&(e.textures.length>1&&eS.readBuffer(eS.COLOR_ATTACHMENT0+c),eS.readPixels(t,n,a,o,L.convert(s),L.convert(u),l))}finally{let e=null!==X?s.get(X).__webglFramebuffer:null;r.bindFramebuffer(eS.FRAMEBUFFER,e)}}},this.readRenderTargetPixelsAsync=async function(e,t,n,a,o,l,u,c=0){if(!(e&&e.isWebGLRenderTarget))throw Error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");let d=s.get(e).__webglFramebuffer;if(e.isWebGLCubeRenderTarget&&void 0!==u&&(d=d[u]),d){if(t>=0&&t<=e.width-a&&n>=0&&n<=e.height-o){r.bindFramebuffer(eS.FRAMEBUFFER,d);let u=e.textures[c],h=u.format,f=u.type;if(!i.textureFormatReadable(h))throw Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in RGBA or implementation defined format.");if(!i.textureTypeReadable(f))throw Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in UnsignedByteType or implementation defined type.");let p=eS.createBuffer();eS.bindBuffer(eS.PIXEL_PACK_BUFFER,p),eS.bufferData(eS.PIXEL_PACK_BUFFER,l.byteLength,eS.STREAM_READ),e.textures.length>1&&eS.readBuffer(eS.COLOR_ATTACHMENT0+c),eS.readPixels(t,n,a,o,L.convert(h),L.convert(f),0);let m=null!==X?s.get(X).__webglFramebuffer:null;r.bindFramebuffer(eS.FRAMEBUFFER,m);let g=eS.fenceSync(eS.SYNC_GPU_COMMANDS_COMPLETE,0);return eS.flush(),await nt(eS,g,4),eS.bindBuffer(eS.PIXEL_PACK_BUFFER,p),eS.getBufferSubData(eS.PIXEL_PACK_BUFFER,0,l),eS.deleteBuffer(p),eS.deleteSync(g),l}throw Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: requested read bounds are out of range.")}},this.copyFramebufferToTexture=function(e,t=null,n=0){let i=Math.pow(2,-n),a=Math.floor(e.image.width*i),s=Math.floor(e.image.height*i),l=null!==t?t.x:0,u=null!==t?t.y:0;o.setTexture2D(e,0),eS.copyTexSubImage2D(eS.TEXTURE_2D,n,0,0,l,u,a,s),r.unbindTexture()};let e9=eS.createFramebuffer(),te=eS.createFramebuffer();this.copyTextureToTexture=function(e,t,n=null,i=null,a=0,l=null){let u,c,d,h,f,p,m,g,v,y;null===l&&(0!==a?(ne("WebGLRenderer: copyTextureToTexture function signature has changed to support src and dst mipmap levels."),l=a,a=0):l=0);let _=e.isCompressedTexture?e.mipmaps[l]:e.image;if(null!==n)u=n.max.x-n.min.x,c=n.max.y-n.min.y,d=n.isBox3?n.max.z-n.min.z:1,h=n.min.x,f=n.min.y,p=n.isBox3?n.min.z:0;else{let t=Math.pow(2,-a);u=Math.floor(_.width*t),c=Math.floor(_.height*t),d=e.isDataArrayTexture?_.depth:e.isData3DTexture?Math.floor(_.depth*t):1,h=0,f=0,p=0}null!==i?(m=i.x,g=i.y,v=i.z):(m=0,g=0,v=0);let b=L.convert(t.format),x=L.convert(t.type);t.isData3DTexture?(o.setTexture3D(t,0),y=eS.TEXTURE_3D):t.isDataArrayTexture||t.isCompressedArrayTexture?(o.setTexture2DArray(t,0),y=eS.TEXTURE_2D_ARRAY):(o.setTexture2D(t,0),y=eS.TEXTURE_2D),eS.pixelStorei(eS.UNPACK_FLIP_Y_WEBGL,t.flipY),eS.pixelStorei(eS.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t.premultiplyAlpha),eS.pixelStorei(eS.UNPACK_ALIGNMENT,t.unpackAlignment);let C=eS.getParameter(eS.UNPACK_ROW_LENGTH),E=eS.getParameter(eS.UNPACK_IMAGE_HEIGHT),w=eS.getParameter(eS.UNPACK_SKIP_PIXELS),T=eS.getParameter(eS.UNPACK_SKIP_ROWS),S=eS.getParameter(eS.UNPACK_SKIP_IMAGES);eS.pixelStorei(eS.UNPACK_ROW_LENGTH,_.width),eS.pixelStorei(eS.UNPACK_IMAGE_HEIGHT,_.height),eS.pixelStorei(eS.UNPACK_SKIP_PIXELS,h),eS.pixelStorei(eS.UNPACK_SKIP_ROWS,f),eS.pixelStorei(eS.UNPACK_SKIP_IMAGES,p);let P=e.isDataArrayTexture||e.isData3DTexture,M=t.isDataArrayTexture||t.isData3DTexture;if(e.isDepthTexture){let n=s.get(e),i=s.get(t),o=s.get(n.__renderTarget),y=s.get(i.__renderTarget);
244r.bindFramebuffer(eS.READ_FRAMEBUFFER,o.__webglFramebuffer),r.bindFramebuffer(eS.DRAW_FRAMEBUFFER,y.__webglFramebuffer);for(let n=0;n<d;n++)P&&(eS.framebufferTextureLayer(eS.READ_FRAMEBUFFER,eS.COLOR_ATTACHMENT0,s.get(e).__webglTexture,a,p+n),eS.framebufferTextureLayer(eS.DRAW_FRAMEBUFFER,eS.COLOR_ATTACHMENT0,s.get(t).__webglTexture,l,v+n)),eS.blitFramebuffer(h,f,u,c,m,g,u,c,eS.DEPTH_BUFFER_BIT,eS.NEAREST);r.bindFramebuffer(eS.READ_FRAMEBUFFER,null),r.bindFramebuffer(eS.DRAW_FRAMEBUFFER,null)}else if(0!==a||e.isRenderTargetTexture||s.has(e)){let n=s.get(e),i=s.get(t);r.bindFramebuffer(eS.READ_FRAMEBUFFER,e9),r.bindFramebuffer(eS.DRAW_FRAMEBUFFER,te);for(let e=0;e<d;e++)P?eS.framebufferTextureLayer(eS.READ_FRAMEBUFFER,eS.COLOR_ATTACHMENT0,n.__webglTexture,a,p+e):eS.framebufferTexture2D(eS.READ_FRAMEBUFFER,eS.COLOR_ATTACHMENT0,eS.TEXTURE_2D,n.__webglTexture,a),M?eS.framebufferTextureLayer(eS.DRAW_FRAMEBUFFER,eS.COLOR_ATTACHMENT0,i.__webglTexture,l,v+e):eS.framebufferTexture2D(eS.DRAW_FRAMEBUFFER,eS.COLOR_ATTACHMENT0,eS.TEXTURE_2D,i.__webglTexture,l),0!==a?eS.blitFramebuffer(h,f,u,c,m,g,u,c,eS.COLOR_BUFFER_BIT,eS.NEAREST):M?eS.copyTexSubImage3D(y,l,m,g,v+e,h,f,u,c):eS.copyTexSubImage2D(y,l,m,g,h,f,u,c);r.bindFramebuffer(eS.READ_FRAMEBUFFER,null),r.bindFramebuffer(eS.DRAW_FRAMEBUFFER,null)}else M?e.isDataTexture||e.isData3DTexture?eS.texSubImage3D(y,l,m,g,v,u,c,d,b,x,_.data):t.isCompressedArrayTexture?eS.compressedTexSubImage3D(y,l,m,g,v,u,c,d,b,_.data):eS.texSubImage3D(y,l,m,g,v,u,c,d,b,x,_):e.isDataTexture?eS.texSubImage2D(eS.TEXTURE_2D,l,m,g,u,c,b,x,_.data):e.isCompressedTexture?eS.compressedTexSubImage2D(eS.TEXTURE_2D,l,m,g,_.width,_.height,b,_.data):eS.texSubImage2D(eS.TEXTURE_2D,l,m,g,u,c,b,x,_);eS.pixelStorei(eS.UNPACK_ROW_LENGTH,C),eS.pixelStorei(eS.UNPACK_IMAGE_HEIGHT,E),eS.pixelStorei(eS.UNPACK_SKIP_PIXELS,w),eS.pixelStorei(eS.UNPACK_SKIP_ROWS,T),eS.pixelStorei(eS.UNPACK_SKIP_IMAGES,S),0===l&&t.generateMipmaps&&eS.generateMipmap(y),r.unbindTexture()},this.copyTextureToTexture3D=function(e,t,n=null,i=null,r=0){return ne('WebGLRenderer: copyTextureToTexture3D function has been deprecated. Use "copyTextureToTexture" instead.'),this.copyTextureToTexture(e,t,n,i,r)},this.initRenderTarget=function(e){void 0===s.get(e).__webglFramebuffer&&o.setupRenderTarget(e)},this.initTexture=function(e){e.isCubeTexture?o.setTextureCube(e,0):e.isData3DTexture?o.setTexture3D(e,0):e.isDataArrayTexture||e.isCompressedArrayTexture?o.setTexture2DArray(e,0):o.setTexture2D(e,0),r.unbindTexture()},this.resetState=function(){Y=0,K=0,X=null,r.reset(),P.reset()},"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return tB}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e;let t=this.getContext();t.drawingBufferColorSpace=ns._getDrawingBufferColorSpace(e),t.unpackColorSpace=ns._getUnpackColorSpace()}}var us=n(43775),uo=n(15799);class ul{createLayers(){if(!this.texture)return;let e=.01,t=new aQ(1,1),n=new iF({map:this.texture,transparent:!0});for(let i=0;i<5;i++){let r=new i9(t,n);r.position.z=i*e,this.scene.add(r),this.layers.push(r)}}setLayersStart(){for(let e=0;e<this.layers.length;e++){let t=this.layers[e],n=Math.pow(this.shouldBeSubtle?.9:.75,e);us.ZP.set(t.scale,{x:this.scaleX*n,y:this.scaleY*n})}}animateLayers(){if(this.video)try{this.video.currentTime=0}catch(e){}this.masterTl=us.ZP.timeline().add("start"),this.masterTl.to(this.container,{opacity:1,scale:1,duration:1,ease:"power4.inOut"},"start"),this.shouldBeSubtle?this.masterTl.add("layers-in","start+=0.5"):this.masterTl.add("layers-in");for(let e=0;e<this.layers.length;e++){let t=this.layers[e],n=us.ZP.timeline();n.to(t.scale,{x:this.scaleX,y:this.scaleY,duration:1,ease:"power4.inOut"}),this.masterTl.add(n,"layers-in")}}scaleLayers(){this.layers.forEach(e=>{us.ZP.isTweening(e.scale)?(us.ZP.killTweensOf(e.scale),us.ZP.to(e.scale,{x:this.scaleX,y:this.scaleY,z:1,duration:.4,ease:"power2.out"})):e.scale.set(this.scaleX,this.scaleY,1)})}dispose(){var e,t;this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.renderer.dispose(),null===(e=this.texture)||void 0===e||e.dispose(),this.layers.forEac
244h(e=>e.geometry.dispose()),this.layers.forEach(e=>e.material.dispose()),null===(t=this.masterTl)||void 0===t||t.kill(),this.video.pause(),this.container.removeChild(this.renderer.domElement)}constructor(e){var t=this;this.layers=[],this.texture=null,this.video=null,this.scaleX=1,this.scaleY=1,this.reduceMotion=!1,this.shouldBeSubtle=!1,this.resizeObserver=null,this.masterTl=null,this.loadAssets=async function(e){let{asset:n,poster:i}=e,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];r?await t.loadVideoTexture(n,i):await t.loadImageTexture(n)},this.loadImageTexture=e=>new Promise(t=>{let n=new sy;try{"function"==typeof n.setCrossOrigin&&n.setCrossOrigin("anonymous"),n.crossOrigin="anonymous"}catch(e){}let i=(0,uo.Mu)(e);n.load(i,e=>{e.minFilter=ex,this.texture=e,this.video=null;try{this.onDataLoaded()}catch(e){}t()})}),this.loadVideoTexture=(e,t)=>new Promise(n=>{let i=document.createElement("video");this.video=i,i.crossOrigin="anonymous",i.loop=!0,i.muted=!0,i.poster=t||"",i.playsInline=!0,i.addEventListener("loadedmetadata",()=>{this.video&&this.video.videoWidth&&this.onResize()}),i.style.display="none",this.container.appendChild(i),i.addEventListener("resize",()=>{this.video&&this.video.videoWidth&&this.onResize()}),i.addEventListener("loadeddata",()=>{let e=new rN(i);e.minFilter=ex,e.magFilter=ex,e.format=ej,e.colorSpace=tT,this.texture=e,this.reduceMotion||i.play(),this.onDataLoaded(),n()}),i.addEventListener("error",()=>{i.remove();let r=document.createElement("video");r.classList.add("video-fallback"),r.loop=!0,r.muted=!0,r.playsInl
244ine=!0,r.poster=t||"",this.video=r,r.src=e,r.load(),r.addEventListener("loadedmetadata",()=>{this.video&&this.video.videoWidth&&this.onResize()}),r.addEventListener("loadeddata",()=>{this.reduceMotion||r.play(),this.onDataLoaded()}),this.container.appendChild(r),n()}),i.src=(0,uo.Mu)(e),i.load()}),this.render=()=>{this.texture instanceof rN&&(this.texture.needsUpdate=!0),this.renderer.render(this.scene,this.camera),requestAnimationFrame(this.render)},this.onResize=()=>{this.width=this.container.clientWidth,this.height=this.container.clientHeight,this.camera.left=-this.width/2,this.camera.right=this.width/2,this.camera.top=this.height/2,this.camera.bottom=-this.height/2,this.camera.updateProjectionMatrix(),this.renderer.setSize(this.width,this.height);let e=16,t=9;this.video&&this.video.videoWidth?(e=this.video.videoWidth,t=this.video.videoHeight):this.texture&&this.texture.image&&(this.texture.image.videoWidth?(e=this.texture.image.videoWidth,t=this.texture.image.videoHeight):this.texture.image.naturalWidth?(e=this.texture.image.naturalWidth,t=this.texture.image.naturalHeight):this.texture.image.width&&(e=this.texture.image.width,t=this.texture.image.height));let n=this.width/this.height,i=e/t,r=this.width,a=this.height;i>n?(r=this.height*i,a=this.height):(r=this.width,a=this.width/i),this.scaleX=r,this.scaleY=a,this.scaleLayers()},this.container=e.container,this.onDataLoaded=e.onDataLoaded||(()=>{}),this.reduceMotion=e.reduceMotion||!1,this.shouldBeSubtle=e.shouldBeSubtle||!1,this.videoFallbackEl=e.videoFallbackEl,us.ZP.set(this.container,{opacity:0,scale:this.shouldBeSubtle?1:.8}),this.width=this.container.clientWidth,this.height=this.container.clientHeight,this.scene=new rw,this.camera=new s_(-this.width/2,this.width/2,this.height/2,-this.height/2,.1,10),this.camera.position.z=1,this.renderer=new ua({antialias:!0}),this.renderer.setPixelRatio(window.devicePixelRatio||1),this.renderer.setSize(this.width,this.height),this.container.appendChild(this.renderer.domElement),this.loadAssets({asset:e.assetUrl,poster:e.poster},e.isVideo).then(async()=>{this.createLayers(),await this.onResize(),this.setLayersStart(),this.render(),this.animateLayers()}),this.resizeObserver=new ResizeObserver(()=>{this.onResize()}),this.resizeObserver.observe(this.container)}}var uu=n(44819),uc=n(39583),ud=n(87048),uh=n(76606),uf=n(22372),up=n(31853),um=n(66432),ug=n(59119),uv=n(68563),uy=n(34715),u_=n(95002),ub=n(19845),ux=n.n(ub),uC=n(47371),uE=n(91655),uw=n.n(uE),uT=n(83177);let uS=ux().bind(uw());var uL=(0,o.forwardRef)((e,t)=>{let[n,i]=(0,o.useState)(!1),r=(0,uC.B)(),{labels:s,siteSettings:l}=(0,uT.i)(),u=null==s?void 0:s.hoursLabels,c=(0,o.useMemo)(()=>u?r.currentlyOpen?u.openLabel:r.beforeBusinessHours?u.openingSoon:u.closedLabel:"",[r,r.currentDateTime,u]),d=(0,o.useMemo)(()=>u&&r.todaysHours?r.currentlyOpen?(0,uo.$e)(u.until,{time:r.todaysHours.closeTimeLabel}):r.beforeBusinessHours?(0,uo.$e)(u.at,{time:r.todaysHours.openTimeLabel}):r.openToday&&!r.afterBusinessHours?(0,uo.$e)(u.until,{time:r.todaysHours.openTimeLabel}):!r.currentlyOpen&&r.openTomorrow?(0,uo.$e)(u.until,{time:r.nextOpenHours.openTimeLabel}):(0,uo.$e)(u.opensOnDate,{time:r.nextOpenHours.openTimeLabel,date:r.nextOpenHours.startDateLabel||""}):"",[r,r.currentDateTime]);return((0,o.useEffect)(()=>{i(!0)},[]),n)?(0,a.jsxs)("div",{className:uS("hours-address"),ref:t,children:[(0,a.jsxs)("div",{className:uS("column"),children:[(0,a.jsx)("p",{className:uS(["copy","eyebrow-l"]),style:{padding:"1rem"},children:c}),(0,a.jsx)("p",{"aria-hidden":"true",className:"eyebrow-l",children:d})]}),(0,a.jsx)("div",{className:uS("column"),children:null==l?void 0:l.address.addressLines.map((e,t)=>0===t?(0,a.jsx)("a",{target:"_blank",className:uS(["copy","eyebrow-l"]),href:null==l?void 0:l.address.mapLink,children:e.line},t):(0,a.jsx)("p",{className:"eyebrow-l",children:e.line},t))})]}):null});let uP=["\xe1","\xe9","\xed","\xf3","\xfa","\xfd","\xe0","\xe8","\xec","\xf2","\xf9","\xe2","\xea","\xee","\xf4","\xfb","\xe4","\xeb","\xef","\xf6","\xfc","\xff","\xe3","\xf1","\xf5","\xe5","ů","Ä","Ä","Ä«","Å","Å«","\xe7","\xc1","\xc9","\xcd","\xd3","\xda","\xdd","\xc0","\xc8","\xcc","\xd2","\xd9","\xc2","\xca","\xce","\xd4","\xdb","\xc4","\xcb","\xcf","\xd6","\xdc","Ÿ","\xc3","\xd1","\xd5","\xc5","Å®","Ä","Ä","Ī","Å","Ū","\xc7"],uM=e=>
244uP.some(t=>e.includes(t));function uA(e){let{parentTl:t,position:n=0,wrapEl:i,headlineEl:r,gDur:a,ease:s="expo.inOut",singleLineMode:o="chars"}=e,l=1.25*a;if(uM(r.textContent||""))return t.fromTo(i,{opacity:0,scale:.9},{opacity:1,scale:1,duration:l,ease:s},n),{split:null,isSingleLine:!1};let u=new ug.Z(r,{type:"lines",mask:"lines",linesClass:"line"});if(u.lines.length>1)return t.fromTo(i,{scale:.5},{scale:1,duration:l,ease:s},n),u.lines.forEach((e,i)=>{let r=i%2==0?"150%":"-150%";t.fromTo(e,{y:r},{y:0,duration:l,ease:s},n)}),{split:u,isSingleLine:!1};if(u.revert(),"scale-fade"===o)return t.fromTo(i,{scale:.6,opacity:0},{scale:1,opacity:1,duration:l,ease:s},n),{split:null,isSingleLine:!0};let c=new ug.Z(r,{type:"chars",mask:"chars",charsClass:"char"});return c.chars.forEach((e,i)=>{t.fromTo(e,{y:"120%"},{y:0,duration:l,ease:s,delay:.016*i},n)}),{split:c,isSingleLine:!0}}let uI=7e3,uR=69.12,uk=.8,uD=.55,uN="power2.in",uF=1,uO="2rem",uj=50,uU=1.2;function uV(e){let{enabled:t,isAnimInComplete:n,enableHoverPause:i,viewportRef:r,dotsContainerRef:a,timerCircleRef:s,pauseButtonRef:l,prevButtonRef:u,nextButtonRef:c,slideContentRefs:d,rootElRef:h,log:f,onSlideExit:p,onSlideEnter:m,onTransitionComplete:g}=e,v=(0,o.useRef)(p),y=(0,o.useRef)(m),_=(0,o.useRef)(g);v.current=p,y.current=m,_.current=g;let b=(0,o.useRef)(null);(0,o.useEffect)(()=>{var e,n;let o,p;if(!t||!r.current)return;let m=r.current,g=Array.from(m.querySelectorAll(".".concat(uw()["carousel-slide"]))),x=g.length;f("Carousel init: ".concat(x," slides, ").concat(uI/1e3,"s autoplay"));let C=0,E=!1,w=!1,T=!1,S=!1,L=!1,P=!1,M=0,A=0,I=0,R=null,k=g.map(()=>null),D=s.current?parseFloat(s.current.getAttribute("stroke-dasharray")||"".concat(uR)):uR,N=e=>{let t=Math.min((e-A)/uI,1),n=D*(1-t);if(s.current&&(s.current.style.strokeDashoffset=n.toString()),t>=1){S=!1,p();return}M=requestAnimationFrame(N)},F=()=>{cancelAnimationFrame(M),S=!1},O=()=>{cancelAnimationFrame(M),A=performance.now()-I,M=requestAnimationFrame(N),S=!0},j=()=>{(a.current?Array.from(a.current.children):[]).forEach((e,t)=>{e.dataset.active=t===C?"true":"false"})},U=()=>{g.forEach((e,t)=>{e.setAttribute("aria-hidden",t!==C?"true":"false"),e.style.pointerEvents=t!==C?"none":""})},V=()=>{var e;null===(e=l.current)||void 0===e||e.setAttribute("data-paused",E?"true":"false")},B=a.current;B&&x>1&&(B.innerHTML="",g.forEach((e,t)=>{let n=document.createElement("button");n.setAttribute("aria-label","Go to slide ".concat(t+1)),n.dataset.carouselDot="true",n.innerHTML="<span></span>",n.addEventListener("click",()=>{f("Dot clicked: slide ".concat(t+1)),o(t)}),B.appendChild(n)}),f("Created ".concat(x," dots")));let H=(e,t)=>{us.p8.set(e,{y:0,opacity:1});let n=uF,i=us.p8.timeline().add("start"),r=e.querySelector(".".concat(uw()["headline-wrap"])),a=null==r?void 0:r.querySelector("h1");if(r&&a){k[t]&&(k[t].revert(),k[t]=null);let{split:e,isSingleLine:s}=uA({parentTl:i,position:"start",wrapEl:r,headlineEl:a,gDur:n,singleLineMode:"chars"});k[t]=e,s&&(r.style.textAlign="center"),i.call(()=>{k[t]&&(k[t].revert(),k[t]=null),r.style.textAlign="center"})}let s=e.querySelector(".".concat(uw()["pill-wrap"]));s&&(us.p8.killTweensOf(s),i.fromTo(s,{y:"3rem",opacity:0},{y:0,opacity:1,duration:.4,ease:"power3.out"},"start+=0.4"));let o=e.querySelector(".".concat(uw()["body-wrap"]));o&&(us.p8.killTweensOf(o),i.fromTo(o,{rotate:1,y:"1rem",opacity:0},{rotate:0,y:0,opacity:1,duration:.4*n,ease:"power1.out",transformOrigin:"25% center"},"-=0.3"));let l=e.querySelector(".".concat(uw()["logo-wrap"]));return l&&(us.p8.killTweensOf(l),i.fromTo(l,{y:"1.5rem",opacity:0,scaleY:.9},{y:0,opacity:1,scaleY:1,transformOrigin:"50% 100%",ease:"power3.out",duration:n/1.75},"-=0.3")),i},G=(e,t)=>{var n,i,r,a,o;f("runTransition: ".concat(e+1," -> ").concat(t+1)),T=!0,F(),I=0,s.current&&(s.current.style.strokeDashoffset=D.toString()),null==R||R.kill(),R=null;let l=null===(n=g[e])||void 0===n?void 0:n.querySelector(".".concat(uw()["media-bg"])),u=null===(i=g[t])||void 0===i?void 0:i.querySelector(".".concat(uw()["media-bg"])),c=null===(r=d.current)||void 0===r?void 0:r[e],h=null===(a=d.current)||void 0===a?void 0:a[t];k[e]&&(k[e].revert(),k[e]=null),h&&us.p8.set(h,{opacity:0}
244);let p=us.p8.timeline();null===(o=v.current)||void 0===o||o.call(v,e,t),l&&p.to(l,{opacity:0,duration:uk,ease:"power1.inOut"},0),u&&p.fromTo(u,{opacity:0},{opacity:1,duration:uk,ease:"power1.inOut"},0),c&&(us.p8.killTweensOf(c),p.to(c,{y:"-".concat(uO),opacity:0,duration:uD,ease:uN},0)),h&&p.add(H(h,t),uD),p.call(()=>{var e;return null===(e=y.current)||void 0===e?void 0:e.call(y,t)},void 0,uD),p.eventCallback("onComplete",()=>{var n;T=!1,I=0,L=!0,E||w||document.hidden||O(),null===(n=_.current)||void 0===n||n.call(_,e,t)}),R=p,j(),U()};o=e=>{let t=(e%x+x)%x;t===C||T||G(C,C=t)},p=()=>o(C+1);let z=0,q=0,W=!1,$=!1,Z=-1,Y=e=>{(0===e.button||"mouse"!==e.pointerType)&&(W=!0,$=!1,z=e.clientX,q=e.clientY,Z=e.pointerId)},K=e=>{if(!W||$)return;let t=e.clientX-z,n=e.clientY-q;if(Math.abs(t)>=uj&&Math.abs(t)>Math.abs(n)*uU){$=!0;try{var i;null===(i=m.setPointerCapture)||void 0===i||i.call(m,Z)}catch(e){}f("Swipe detected: dx=".concat(t.toFixed(0))),t<0?p():o(C-1)}},X=()=>{W=!1},Q=e=>{$&&(e.stopPropagation(),e.preventDefault(),$=!1)},J=e=>e.preventDefault();m.addEventListener("pointerdown",Y),m.addEventListener("pointermove",K),m.addEventListener("pointerup",X),m.addEventListener("pointercancel",X),m.addEventListener("click",Q,!0),m.addEventListener("dragstart",J);let ee=h.current,et=()=>{!E&&(w=!0,f("Carousel hover pause"),S&&(I=performance.now()-A,F()))},en=()=>{w=!1,E||T||document.hidden||!L||S||(f(I>0?"Carousel hover resume":"Carousel hover start (post-transition)"),O())};i&&(null==ee||ee.addEventListener("mouseenter",et),null==ee||ee.addEventListener("mouseleave",en));let ei=l.current,er=()=>{E=!E,f("Carousel ".concat(E?"paused":"resumed")),E?(S&&(I=performance.now()-A),F()):w||T||document.hidden||O(),V()};null==ei||ei.addEventListener("click",er);let ea=()=>o(C-1),es=()=>o(C+1);null===(e=u.current)||void 0===e||e.addEventListener("click",ea),null===(n=c.current)||void 0===n||n.addEventListener("click",es);let eo=()=>{document.hidden?(P=S,S&&(I=performance.now()-A,F())):(!P||E||w||T||O(),P=!1)};return document.addEventListener("visibilitychange",eo),f("Carousel ready"),g.forEach((e,t)=>{if(0!==t){var n;let i=e.querySelector(".".concat(uw()["media-bg"]));i&&us.p8.set(i,{opacity:0});let r=null===(n=d.current)||void 0===n?void 0:n[t];r&&us.p8.set(r,{y:uO,opacity:0})}}),j(),U(),V(),b.current=()=>{if(E||w||T||document.hidden){L=!0;return}f("Carousel timer starting (post anim-in)"),I=0,L=!0,O()},()=>{var e,t;f("Carousel destroyed"),F(),null==R||R.kill(),R=null,b.current=null,null==ee||ee.removeEventListener("mouseenter",et),null==ee||ee.removeEventListener("mouseleave",en),null==ei||ei.removeEventListener("click",er),null===(e=u.current)||void 0===e||e.removeEventListener("click",ea),null===(t=c.current)||void 0===t||t.removeEventListener("click",es),document.removeEventListener("visibilitychange",eo),m.removeEventListener("pointerdown",Y),m.removeEventListener("pointermove",K),m.removeEventListener("pointerup",X),m.removeEventListener("pointercancel",X),m.removeEventListener("click",Q,!0),m.removeEventListener("dragstart",J),k.forEach(e=>null==e?void 0:e.revert())}},[t]),(0,o.useEffect)(()=>{var e;n&&(null===(e=b.current)||void 0===e||e.call(b))},[n])}var uB=n(31197),uH=n(71805);function uG(){let e=(0,r._)(["\n ","\n fragment Hero on FlexiblePageContentContentHeroLayout {\n body\n variant\n showHoursAddress\n disableOverlay\n showReverb\n layeredAnimate\n eyebrow\n headline\n mobileHeadline\n headlineSize\n bodySize\n assetType\n contentType\n linkHero\n heroLink {\n linkType\n externalLink\n sectionId\n page {\n node {\n uri\n }\n }\n }\n logo {\n ...ACFMedia\n }\n customCursorText\n video\n videoThumbnail {\n ...ACFMedia\n }\n image {\n ...ACFMedia\n }\n additionalSlides {\n assetType\n image {\n ...ACFMedia\n }\n video\n videoThumbnail {\n ...ACFMedia\n }\n layeredAnimate\n disableOverlay\n headline\n mobileHeadline\n headlineSize\n bodySize\n eyebrow\n body\n logo {\n ...ACFMedia\n }\n contentType\n showReverb\n linkHero\n heroLink {\n linkType\n externalLink\n sectionId\n page {\n node {\n uri\n }\n }\n }\n customCursorText\n }\n }\n "]);return uG=function(){return e},e}let uz=ux().bind(uw());function uq(e){var t,n;let{log:i}=(0,uf.q)({name:"Hero",bgColor:"seagreen",textColor:"bisque",enabled:!1}),{image:r,video:s,assetType:l,variant:u,headline:c,mobileHeadline:
244d,headlineSize:h,bodySize:f,eyebrow:p,logo:m,body:g,contentType:v,layeredAnimate:y,disableOverlay:_,showHoursAddress:b,customCursorText:x,linkHero:C,heroLink:E,videoThumbnail:w,showReverb:T,additionalSlides:S}=e,L=!1,P=!1,M=!1,A=456,I=!1,R=!1,{isDesktop:k,isReady:D}=(0,uc.dg)(),{mounted:N}=(0,ud.F)(),F=(null==l?void 0:l[0])==="video",O=!F,j=!!y,[U,V]=(0,o.useState)(""),B=(0,o.useMemo)(()=>(null==h?void 0:h[0])==="small"?"display-xl":"display-xxl",[h]),H=(0,o.useMemo)(()=>(null==f?void 0:f[0])==="large"?"title-lc-s":"text-l",[f]);(0,o.useEffect)(()=>{if(!N)return;let e=k?c:d||c;V((0,uo.xd)(e))},[N,k]);let G=(0,o.useMemo)(()=>uM(U),[U]),z=(0,o.useMemo)(()=>U.split(/\s+/).some(e=>e.length>9),[U]),[q,W]=(0,o.useState)(!1),[$,Z]=(0,o.useState)(void 0),[Y,K]=(0,o.useState)(!1),[X,Q]=(0,o.useState)(!1),[J,ee]=(0,o.useState)(!1),[et,en]=(0,o.useState)(!1),[ei,er]=(0,o.useState)(0),[ea,es]=(0,o.useState)(0),eo=(0,o.useRef)(!1),el=(0,o.useRef)(null),eu=(0,o.useRef)(null),ec=(0,o.useRef)(null),ed=(0,o.useRef)(null),eh=(0,o.useRef)(null),ef=(0,o.useRef)(null),ep=(0,o.useRef)(null),em=(0,o.useRef)(null),eg=(0,o.useRef)(null),ev=(0,o.useRef)(null),ey=(0,o.useRef)(null),e_=(0,o.useRef)(null),eb=(0,o.useRef)(null),ex=(0,o.useRef)(null),eC=(0,o.useRef)({rootEl:null,backgroundEl:null,textEl:null,iconEl:null}),eE=(0,o.useRef)(null),ew=(0,o.useRef)(null),eT=(0,o.useRef)(null),eS=(0,o.useRef)(null),eL=(0,o.useRef)(null),eP=(0,o.useRef)(null),eM=(0,o.useRef)([]),eA=(0,o.useRef)([]),eI=(0,o.useRef)([]),eR=(0,o.useRef)(!1),ek=(0,o.useRef)(!1),eD=(0,o.useRef)(!1),eN=(0,o.useRef)(null),eF=(0,o.useRef)(null),[eO,ej]=(0,o.useState)(!1);(0,o.useEffect)(()=>{ej(!(0,up.xF)())},[]),(0,o.useEffect)(()=>{if(P||!document.fonts||!document.fonts.ready){K(!0);return}let e=!1;return document.fonts.ready.then(()=>{e||K(!0)}).catch(()=>{e||K(!0)}),()=>{e=!0}},[P]),(0,o.useEffect)(()=>{if(F)i("Hero using VIDEO (not image)",{srcPreview:null==s?void 0:s.slice(0,120)});else{var e,t;i("Hero using IMAGE (not video)",{srcPreview:null==r?void 0:null===(t=r.node)||void 0===t?void 0:null===(e=t.mediaItemUrl)||void 0===e?void 0:e.slice(0,120)})}},[F,s,r]);let eU=()=>{if(!eO||eD.current||!eR.current||!ek.current)return;eD.current=!0;let e=eI.current[0];if(e){if(ep.current)try{ep.current.currentTime=0}catch(e){}us.p8.to(e,{opacity:0,duration:.8,ease:"power2.inOut"})}},eV=()=>{if(i("onDataLoaded called",{isVideo:F,isVisible:q,imageEl:!!em.current,videoEl:!!ep.current}),L){i("DEV_FAKE_ONDATA active: forcing visible and skipping canvas.animateLayers()"),W(!0);return}if(q){i("Media is already visible - skipping animation");return}if(W(!0),!eF.current){i("No canvas to animate");return}eF.current.animateLayers()},eB=()=>{var e;if(!ep.current){i("loadVideoPoster: No video element");return}i("LOAD VIDEO POSTER"),Z(s);let t=new Image;t.src=(0,um.r5)(null==w?void 0:null===(e=w.node)||void 0===e?void 0:e.mediaItemUrl),t.onload=()=>{i("video poster loaded"),eV()},ep.current.src=s};(0,o.useEffect)(()=>{F&&ep.current&&eB()},[F,ep]),(0,o.useEffect)(()=>{var e,t;if(!j){i("Skipping layered canvas init because shouldUseLayered is false");return}if(!ef.current||eF.current){i("Skipping layered canvas init because canvas is already initialized");return}let[n]=l||[],a="video"===n,o=a?s||"":(0,um.r5)(null==r?void 0:null===(e=r.node)||void 0===e?void 0:e.mediaItemUrl)||"",u=a&&(0,um.r5)(null==w?void 0:null===(t=w.node)||void 0===t?void 0:t.mediaItemUrl)||void 0;i("LayeredCanvas - CREATE",{type:n,isVideoType:a,assetUrl:o}),eF.current=new ul({container:ef.current,onDataLoaded:eV,isVideo:a,assetUrl:o,poster:u,reduceMotion:(0,up.xF)(),shouldBeSubtle:O})},[j,l,s,null==r?void 0:null===(t=r.node)||void 0===t?void 0:t.mediaItemUrl,null==w?void 0:null===(n=w.node)||void 0===n?void 0:n.mediaItemUrl]),(0,o.useEffect)(()=>{L&&!q&&(i("DEV_FAKE_ONDATA: forcing visible on mount"),W(!0))},[L]);let eH=C&&(null==E?void 0:E.linkType)?(0,uo.Cr)(E,!0):null,eG=(0,o.useRef)(null),ez=(0,o.useRef)([]);(0,u_.Z)({containerRef:el,start:"top top",distancePx:120,isEnabled:!0});let eq=(0,o.useRef)(null),eW=(0,o.useRef)(!1),[e$,eZ]=(0,o.useState)(null),eY=(0,o.useCallback)(()=>{let e,t;if(!eu.current)return null;let n=eu.current.getBoundingClientRect();if(k){let i=Math.min(.25*n.width,300);e=n.left+n.width-i,t=n.top+n.height-i}else e=n.width-96+32,t=n.height-96+16;return{x:e,y:t}},[k]),eK=e=>{let t=us.p8.timeline({onComplete:()=>{var e;!M&&(null===(e=ey.current)||void 0===e||e.revert(),eg.current&&(eg.current.style.textAlign="center"))}}).add("start");if(ey.current&&(ey.current.revert(),ey.current=null),!ev.current||!eg.current)return t;let{split:n,isSingleLine:i}=uA({parentTl:t,position:"start",wrapEl:eg.current,headlineEl:ev.current,gDur:e,singleLineMode:"chars"});return ey.current=n,i&&(eo.current=!0),t},eX=()=>{var e;if(i("createAnimTimeline function called"),!Y&&!P){i("Fonts not ready - Delaying createAnimTimeline");return}if(X&&eq.current){i("Anim in already started - skipping timeline init");return}eq.current&&eq.current.kill(),i("Timeline - CREATE");let t=us.p8.timeline({paused:!0,onStart:()=>{var e;i("\uD83C\uDFAC timeline onStart"),null===(e=el.current)||void 0===e||e.style.removeProperty("opacity")},onComplete:()=>{i("â
timeline onComplete - setting isAnimInComplete to TRUE"),ee(!0)}}),n=1;if(F){if(eO&&eR.current){let e=eI.current[0];if(e&&us.p8.set(e,{opacity:0}
244),ep.current)try{ep.current.currentTime=0}catch(e){}eD.current=!0}let e=[];ed.current&&e.push(ed.current),eh.current&&e.push(eh.current),t.fromTo(e,{opacity:0},{opacity:1,duration:n,ease:"power4.inOut"}),t.call(()=>{ek.current=!0,eU()})}else em.current&&t.fromTo(em.current,{opacity:0},{opacity:1,duration:n,ease:"power4.inOut"});if(eu.current){t.add("border-in","1");let e=O?.8:.5;t.fromTo(eu.current,{scale:e,opacity:0},{scale:1,opacity:1,duration:n,ease:"power4.inOut"},"border-in")}if(ev.current&&(t.add("headline-in","-=0.95"),t.add(eK(n),"headline-in")),null===(e=eC.current)||void 0===e?void 0:e.rootEl){t.add("pill-in","-=0.4");let e=us.p8.timeline().add("start");e.fromTo(eC.current.backgroundEl,{scaleX:0},{scaleX:1,duration:.6,ease:"expo.out"},"start"),e.fromTo(eC.current.textEl,{y:"150%"},{y:0,duration:.6,ease:"expo.out"},"start+=0.3"),eC.current.iconEl&&(e.set(eC.current.iconEl,{zIndex:1},"start"),e.fromTo(eC.current.iconEl,{y:"150%"},{y:0,duration:.6,ease:"expo.out"},"start+=0.3")),t.add(e,"pill-in")}e_.current&&(t.add("body-in","-=0.4"),t.fromTo(e_.current,{rotate:1,y:"1rem",opacity:0},{rotate:0,y:0,opacity:1,duration:.33*n,ease:"power1.out",transformOrigin:"25% center"},"body-in")),eb.current&&(t.add("logo-in","-=0.4"),t.fromTo(eb.current,{opacity:0,y:"1.5rem",scaleY:.9},{opacity:1,y:0,scaleY:1,transformOrigin:"50% 100%",ease:"power3.out",duration:n/1.75},"body-in")),ex.current&&(t.add("hours-address-in","-=0.4"),t.fromTo(ex.current,{opacity:0,y:"1.5rem",scaleY:.9},{opacity:1,y:0,scaleY:1,transformOrigin:"50% 100%",ease:"power3.out",duration:n/1.75},"hours-address-in")),eJ&&eN.current&&(us.p8.set(eN.current,{opacity:0,y:"1rem"}),t.add("controls-in","-=0.2"),t.fromTo(eN.current,{opacity:0,y:"1rem"},{opacity:1,y:0,duration:.4,ease:"power2.out"},"controls-in")),eH&&eu.current&&(t.add("cursor-in","-=0.3"),t.call(()=>{i("CURSOR IN");let e=eY();e&&eZ(e),en(!0)},null,"cursor-in")),eq.current=t,eq.current.play(),Q(!0)};(0,uy.V)(()=>{us.p8.registerPlugin(uv.i,ug.Z)},[]),(0,o.useEffect)(()=>{i("Timeline creation effect triggered",{isFontsReady:Y,isVisible:q,timelineCreated:eW.current}),Y&&q&&!eW.current&&(eW.current=!0,setTimeout(eX,A))},[Y,q,U]),(0,o.useEffect)(()=>()=>{eq.current&&(eq.current.kill(),eq.current=null),ey.current&&(i("Clean up SplitText"),ey.current.revert(),ey.current=null)},[]),(0,o.useEffect)(()=>{em.current&&em.current.complete&&0!==em.current.naturalHeight&&(i("Image already loaded from cache"),W(!0))},[]);let eQ=[{image:r,video:s,videoThumbnail:w,assetType:l,layeredAnimate:y,disableOverlay:_,headline:c,mobileHeadline:d,headlineSize:h,bodySize:f,eyebrow:p,body:g,logo:m,contentType:v,showReverb:T,linkHero:C,heroLink:E,customCursorText:x},...(null!=S?S:[]).filter(Boolean).map(e=>{var t;return{image:e.image,video:e.video,videoThumbnail:e.videoThumbnail,assetType:e.assetType,layeredAnimate:e.layeredAnimate,disableOverlay:e.disableOverlay,headline:e.headline,mobileHeadline:e.mobileHeadline,headlineSize:e.headlineSize,bodySize:e.bodySize,eyebrow:e.eyebrow,body:e.body,logo:e.logo,contentType:e.contentType,showReverb:e.showReverb,linkHero:e.linkHero,heroLink:null!==(t=e.heroLink)&&void 0!==t?t:void 0,customCursorText:e.customCursorText}})],eJ=eQ.length>1;return uV({enabled:eJ,isAnimInComplete:J,enableHoverPause:R,viewportRef:eE,dotsContainerRef:ew,timerCircleRef:eT,pauseButtonRef:eS,prevButtonRef:eL,nextButtonRef:eP,slideContentRefs:eM,rootElRef:el,log:i,onSlideExit:(e,t)=>
244{er(t);let n=eA.current[t];if(n)try{n.currentTime=0}catch(e){}},onSlideEnter:e=>{if(es(e),0===e&&eF.current){eF.current.animateLayers();return}let t=eA.current[e];t&&setTimeout(()=>{let n=t.play();n&&"function"==typeof n.then&&n.then(()=>{if(0===e)return;let t=eI.current[e];t&&us.p8.to(t,{opacity:0,duration:.5,ease:"power2.inOut"})}).catch(()=>{})},50)},onTransitionComplete:e=>{let t=eA.current[e];if(t){t.pause();try{t.currentTime=0}catch(e){}}let n=eI.current[e];n&&us.p8.set(n,{opacity:1}),0===e&&(eD.current=!1)}}),(0,o.useEffect)(()=>{if(!eJ||!Y||!el.current)return;let e=()=>{if(!el.current)return;let e=0;for(let t of eM.current){if(!t)continue;let n=t.style.height,i=t.style.alignSelf;t.style.height="auto",t.style.alignSelf="flex-start";let r=0,a=t;for(;a&&a!==el.current;)r+=a.offsetTop,a=a.offsetParent;let s=r+t.offsetHeight;t.style.height=n,t.style.alignSelf=i,s>e&&(e=s)}el.current.style.setProperty("--slide-content-min-h","".concat(e,"px"))},t=null,n=()=>{null!==t&&cancelAnimationFrame(t),t=requestAnimationFrame(e)};e();let i=requestAnimationFrame(()=>{i=requestAnimationFrame(()=>{e(),window.dispatchEvent(new Event("resize"))})});return window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n),null!==t&&cancelAnimationFrame(t),null!==i&&cancelAnimationFrame(i)}},[eJ,Y]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("section",{className:uz(["hero",u[0],{"has-carousel":eJ}]),ref:el,style:{opacity:0},children:[(0,a.jsx)("div",{className:uz("carousel-viewport"),ref:eE,children:(0,a.jsx)("div",{className:uz("carousel-container"),children:eQ.map((e,t)=>{var n,i,r,s,o;let l=0===t,u=(null===(n=e.assetType)||void 0===n?void 0:n[0])==="video",c=!!e.layeredAnimate,d=(0,uo.xd)(e.body||""),h=(null===(i=e.headlineSize)||void 0===i?void 0:i[0])==="small"?"display-xl":"display-xxl",f=(null===(r=e.bodySize)||void 0===r?void 0:r[0])==="large"?"title-lc-s":"text-l",p=e.linkHero&&(null===(s=e.heroLink)||void 0===s?void 0:s.linkType)?(0,uo.Cr)(e.heroLink,!0):null;return(0,a.jsxs)("div",{className:uz("carousel-slide"),children:[(0,a.jsx)("div",{className:uz(["media-bg",{"media-bg--no-overlay":e.disableOverlay}]),children:(0,a.jsx)("div",{className:"".concat(uz("media-bg__inner")," js-parallax"),children:c?(0,a.jsx)("div",{className:uz("wrap_canvas"),ref:l?e=>{ef.current=e,ed.current=e}:void 0}):(0,a.jsx)("div",{className:uz("wrap_image-video"),ref:l?eh:void 0,children:u?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("video",{className:uz("video"),autoPlay:!!l&&eO,playsInline:!0,loop:!0,muted:!0,onLoadedData:l?eV:void 0,onCanPlay:()=>{if(l)eV(),eR.current=!0,eU();else{let e=eI.current[t];e&&us.p8.to(e,{opacity:0,duration:.5,ease:"power2.inOut"})}},src:l?$:e.video,ref:e=>{eA.current[t]=e,l&&(ep.current=e)}}),(0,a.jsx)(uh.Ee,{image:e.videoThumbnail,className:uz("poster-overlay"),"aria-hidden":"true",alt:"",ref:e=>{eI.current[t]=e}})]}):(0,a.jsx)(uh.Ee,{image:e.image,onLoad:l?()=>{W(!0)}:void 0,ref:l?em:void 0})})})}),(0,a.jsx)("div",{className:uz("container"),children:(0,a.jsxs)("div",{className:uz("content"),ref:e=>{eM.current[t]=e,l&&(ec.current=e)},children:[e.eyebrow&&(0,a.jsx)("div",{className:uz("pill-wrap"),children:(0,a.jsx)(uh.eo,{className:uz("hero-pill"),type:null===(o=e.contentType||v)||void 0===o?void 0:o[0],copy:e.eyebrow,ref:l?eC:void 0})}),(0,a.jsx)("div",{className:uz("headline-wrap"),ref:l?eg:void 0,style:l&&(eo.current||G)?{textAlign:"center"}:void 0,children:(0,a.jsx)("h1",{className:uz([l?B:h,"headline",{"has-reverb":e.showReverb},{"mobile-sm":l&&z}]),ref:l?ev:void 0,dangerouslySetInnerHTML:{__html:l?U||"":(0,uo.xd)(N&&!k&&e.mobileHeadline?e.mobileHeadline:e.headline||"")}})}),l&&I&&(0,a.jsx)("div",{className:uz("headline-wrap"),style:{textAlign:"center"},children:(0,a.jsx)("h1",{className:uz([B,"headline",{"has-reverb":T},{"mobile-sm":z}]),dangerouslySetInnerHTML:{__html:U||""}})}),d&&(0,a.jsx)("div",{className:uz("body-wrap"),children:(0,a.jsx)("p",{className:uz("body",l?H:f),ref:l?e_:void 0,dangerouslySetInnerHTML:{__html:d}})}),e.logo&&(0,a.jsx)("div",{className:uz("logo-wrap"),children:(0,a.jsx)(uh.Ee,{image:e.logo,ref:l?eb:void 0})})]})}),!!p&&(0,a.jsxs)(uh.Kl,{href:p.url,target:p.target,"aria-label":e.customCursorText,className:uz("link"),ref:e=>{ez.current[t]=e,l&&(eG.current=e)},children:[(0,a.jsx)("div",{className:uz("focus-outline")}),N&&D&&k&&(0,a.jsx)(uh.PZ,{container:{get current(){return ez.current[t]}},circleText:e.customCursorText||x,externalPos:l?e$:null,isVisible:et&&t===ei&&t===ea,mouseActive:J&&t===ei&&t===ea})]})]},t)})})}),(0,a.jsx)("div",{className:uz("border-wrapper"),children:(0,a.jsx)("div",{className:uz("border"),ref:eu,children:(0,a.jsx)(uh.UJ,{})})}),b&&(0,a.jsx)(uL,{ref:ex})]}
244),eJ&&(0,a.jsxs)("div",{className:uz("carousel-controls"),ref:eN,children:[(0,a.jsxs)("div",{className:uz("carousel-controls-left"),children:[(0,a.jsxs)("button",{ref:eS,className:uz("carousel-play-toggle-button"),"aria-label":"Pause carousel",children:[(0,a.jsxs)("div",{className:uz("icon-wrapper"),children:[(0,a.jsx)(uB.Z,{className:uz("icon-pause")}),(0,a.jsx)(uH.Z,{className:uz("icon-play")})]}),(0,a.jsx)("svg",{className:uz("carousel-timer-ring-base"),viewBox:"0 0 24 24","aria-hidden":"true",children:(0,a.jsx)("circle",{cx:"12",cy:"12",r:"11",fill:"none",stroke:"currentColor",strokeWidth:"2"})}),(0,a.jsx)("svg",{className:uz("carousel-timer-ring"),viewBox:"0 0 24 24","aria-hidden":"true",children:(0,a.jsx)("circle",{ref:eT,cx:"12",cy:"12",r:"11",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeDasharray:"69.12",strokeDashoffset:"69.12"})})]}),(0,a.jsx)("div",{ref:ew,className:uz("carousel-dots")})]}),(0,a.jsxs)("div",{className:uz("carousel-nav-arrows"),children:[(0,a.jsx)("button",{ref:eL,className:uz("carousel-arrow-button","carousel-arrow-button--prev"),"aria-label":"Previous slide",children:(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 40","aria-hidden":"true",children:[(0,a.jsx)("path",{d:"M20,.75h0c10.63,0,19.25,8.62,19.25,19.25h0c0,10.63-8.62,19.25-19.25,19.25h0C9.37,39.25.75,30.63.75,20h0C.75,9.37,9.37.75,20,.75Z",fill:"transparent",stroke:"currentColor",strokeWidth:"1.5"}),(0,a.jsx)("path",{d:"M18,25v-10l5,5-5,5Z",fill:"currentColor"})]})}),(0,a.jsx)("button",{ref:eP,className:uz("carousel-arrow-button","carousel-arrow-button--next"),"aria-label":"Next slide",children:(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 40","aria-hidden":"true",children:[(0,a.jsx)("path",{d:"M20,.75h0c10.63,0,19.25,8.62,19.25,19.25h0c0,10.63-8.62,19.25-19.25,19.25h0C9.37,39.25.75,30.63.75,20h0C.75,9.37,9.37.75,20,.75Z",fill:"transparent",stroke:"currentColor",strokeWidth:"1.5"}),(0,a.jsx)("path",{d:"M18,25v-10l5,5-5,5Z",fill:"currentColor"})]})})]})]})]})}uq.fragments={entry:(0,s.ZP)(uG(),uu.ab)}},90453:function(e,t,n){"use strict";n.d(t,{V:function(){return i.default}});var i=n(88034)},19677:function(e,t,n){"use strict";n.d(t,{U:function(){return u}});var i=n(85893),r=n(67294),a=n(62439),s=n.n(a),o=n(19845);let l=n.n(o)().bind(s());function u(e){let{className:t="",small:n,radiusPx:a=10}=e,[s,o]=(0,r.useState)(null),u=(0,r.useCallback)(e=>o(e),[]),[c,d]=(0,r.useState)(null),h=(0,r.useCallback)(e=>d(e),[]);return(0,r.useEffect)(()=>{let e=c,t=s;if(!e||!t)return;let i="http://www.w3.org/2000/svg",r="heroFrameMask-".concat(Math.random().toString(36).slice(2,9)),o=document.createElementNS(i,"defs"),l=document.createElementNS(i,"mask");l.id=r,l.setAttribute("maskUnits","userSpaceOnUse"),l.setAttribute("maskContentUnits","userSpaceOnUse");let u=document.createElementNS(i,"rect");u.setAttribute("fill","white");let d=document.createElementNS(i,"rect");d.setAttribute("fill","black"),l.appendChild(u),l.appendChild(d),o.appendChild(l);let h=document.createElementNS(i,"rect");for(h.setAttribute("fill","var(--highlight-color)"),h.setAttribute("mask","url(#".concat(r,")"));e.firstChild;)e.removeChild(e.firstChild);function f(){let e=window.innerWidth;return n?8:e>=768?16:12}function p(){if(!t)return;let n={width:t.offsetWidth,height:t.offsetHeight},i=n.width,r=n.height,s=f();isNaN(i)||isNaN(r)||i<=0||r<=0||(l.setAttribute("x","0"),l.setAttribute("y","0"),l.setAttribute("width",String(Math.ceil(i))),l.setAttribute("height",String(Math.ceil(r))),e.setAttribute("viewBox","0 0 ".concat(i," ").concat(r)),e.setAttribute("preserveAspectRatio","none"),e.setAttribute("width","100%"),e.setAttribute("height","100%"),u.setAttribute("x","0"),u.setAttribute("y","0"),u.setAttribute("width",String(i)),u.setAttribute("height",String(r)),d.setAttribute("x",String(s)),d.setAttribute("y",String(s)),d.setAttribute("width",String(Math.max(0,i-2*s))),d.setAttribute("height",String(Math.max(0,r-2*s))),d.setAttribute("rx",String(a)),d.setAttribute("ry",String(a)),h.setAttribute("x","0"),h.setAttribute("y","0"),h.setAttribute("width",String(i)),h.setAttribute("height",String(r)))}e.appendChild(o),e.appendChild(h);let m=new ResizeObserver(p);return m.observe(t),window.addEventListener("resize",p),p(),()=>{m.disconnect(),window.removeEventListener("resize",p)}},[a,n,c,s]),(0,i.jsx)("div",{className:"".concat(l("hero-border")," ").concat(t," ").concat(n?"small":""),ref:u,children:(0,i.jsx)("svg",{ref:h,"aria-hidden":"true"})})}},95064:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return y}});var i=n(82729),r=n(85893),a=n(68806),s=n(30120),o=n(19845),l=n.n(o),u=n(76606),c=n(39583),d=n(79867),h=n(29366),f=n(94275),p=n.n(f),m=n(67294);function g(){let e=(0,i._)(["\n fragment HoursManual on FlexiblePageContentContentHoursManualLayout {\n headline\n subhead\n monthRanges {\n label\n startMonth\n endMonth\n dayRows {\n textLeft\n textRight\n }\n }\n specialDates {\n label \n dayRows {\n textLeft\n textRight\n }\n }\n }\n "]);return g=function(){return e},e}let v=l().bind(p());function y(e){var t;let{headline:n,subhead:i,monthRanges:a,specialDates:o}=e,l=!!(n||i),f=(0,m.useMemo)(()=>
244{let e=s.ou.now().setZone("America/New_York");return a.find(t=>{if(!t.startMonth||!t.endMonth)return!1;let n=s.ou.fromISO(t.startMonth,{zone:"America/New_York"}).startOf("month"),i=s.ou.fromISO(t.endMonth,{zone:"America/New_York"}).endOf("month");return i<n&&(e.month<n.month?n=n.minus({years:1}):i=i.plus({years:1})),e>=n&&e<=i})},[a]),p=(0,m.useMemo)(()=>a.filter(e=>e!==f).sort((e,t)=>{let n=s.ou.fromISO(e.startMonth||"",{zone:"America/New_York"}),i=s.ou.fromISO(t.startMonth||"",{zone:"America/New_York"});return n.toMillis()-i.toMillis()}),[a,f]),{isDesktop:g}=(0,c.dg)(),y=(0,m.useRef)(null),_=h.LL,b=g?_.lg.triggerPercent:_.sm.triggerPercent,x=(0,d.Y)(y,{amount:b,once:_.once});return(0,r.jsx)("section",{className:v(["hours-manual"]),ref:y,children:(0,r.jsx)(u.Lz,{isInView:x,children:(0,r.jsxs)(u.W2,{children:[l&&(0,r.jsx)(u._q,{headline:n,subhead:i,isRevealEnabled:!0,isInView:x}),(0,r.jsxs)("div",{className:v("grid"),children:[(0,r.jsxs)("div",{className:v("current-month"),children:[(0,r.jsx)("h2",{className:v("title","title-lc-l"),"aria-label":null==f?void 0:f.label,children:null==f?void 0:f.label}),(0,r.jsx)("div",{className:v("hours-list"),children:null==f?void 0:f.dayRows.map((e,t)=>(0,r.jsxs)("p",{className:v("hours-list__hours","text-m"),children:[(0,r.jsx)("span",{className:v("text"),"aria-label":null==e?void 0:e.textLeft,children:null==e?void 0:e.textLeft}),e.textRight&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:v("divider")}),(0,r.jsx)("span",{className:v("text"),"aria-label":null==e?void 0:e.textRight,children:null==e?void 0:e.textRight})]})]},t))})]}),(0,r.jsxs)("div",{className:v("other-dates"),children:[null==p?void 0:p.map((e,t)=>(0,r.jsxs)("div",{className:v("other-date"),children:[(0,r.jsx)("h3",{className:v("title","title-lc-s"),"aria-label":null==e?void 0:e.label,children:null==e?void 0:e.label}),(0,r.jsx)("div",{className:v("hours-list"),children:e.dayRows.map((e,t)=>(0,r.jsxs)("p",{className:v("hours-list__hours","text-m"),children:[(0,r.jsx)("span",{className:v("text"),"aria-label":null==e?void 0:e.textLeft,children:null==e?void 0:e.textLeft}),e.textRight&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:v("divider")}),(0,r.jsx)("span",{className:v("text"),"aria-label":null==e?void 0:e.textRight,children:null==e?void 0:e.textRight})]})]},t))})]},t)),(null==o?void 0:null===(t=o.dayRows)||void 0===t?void 0:t.length)&&(0,r.jsxs)("div",{className:v("other-date"),children:[(0,r.jsx)("h3",{className:v("title","title-lc-s"),"aria-label":null==o?void 0:o.label,children:null==o?void 0:o.label}),(0,r.jsx)("div",{className:v("hours-list"),children:null==o?void 0:o.dayRows.map((e,t)=>(0,r.jsxs)("p",{className:v("hours-list__hours","text-m"),children:[(0,r.jsx)("span",{className:v("text"),"aria-label":null==e?void 0:e.textLeft,children:null==e?void 0:e.textLeft}),e.textRight&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:v("divider")}),(0,r.jsx)("span",{className:v("text"),"aria-label":null==e?void 0:e.textRight,children:null==e?void 0:e.textRight})]})]},t))})]})]})]})]})})})}y.fragments={entry:(0,a.ZP)(g())}},35782:function(e,t,n){"use strict";n.d(t,{z:function(){return i.default}});var i=n(95064)},55938:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return y}});var i=n(82729),r=n(85893),a=n(68806),s=n(15799),o=n(76606),l=n(67294),u=n(79867),c=n(39583),d=n(29366),h=n(47470),f=n.n(h),p=n(19845);function m(){let e=(0,i._)(["\n fragment IconGrid on FlexiblePageContentContentIconGridLayout {\n headline\n subhead\n includeFooter\n footer {\n text\n ctas {\n linkType\n externalLink\n label\n page {\n node {\n uri\n }\n }\n }\n }\n items {\n icon {\n ...ACFMedia\n }\n headline\n body\n cta {\n linkType\n externalLink\n sectionId\n label\n page {\n node {\n uri\n }\n }\n }\n }\n }\n "]);return m=function(){return e},e}let g=n.n(p)().bind(f()),v=e=>{let{icon:t,headline:n,body:i,cta:a}=e,l=(0,s.Cr)(a);return(0,r.jsxs)("div",{className:g(["icon-grid-item"]),children:[t&&(0,r.jsx)("div",{className:g(["icon"]),children:(0,r.jsx)(o.Ee,{image:t})}),n&&(0,r.jsx)("h3",{className:g(["headline","title-lc-s"]),children:n}),i&&(0,r.jsx)("p",{className:g(["body","text-m"]),children:i}),l&&(0,r.jsx)(o.Kl,{href:l.url,target:l.target,className:g(["cta","inline-link"]),children:l.label})]})};function y(e){let{headline:t,subhead:n,items:i,includeFooter:a,footer:s}=e,h=!!(t||n),f=(0,l.useRef)(null),{isDesktop:p}=(0,c.dg)(),m=d.LL,y=p?m.lg.triggerPercent:m.sm.triggerPercent,_=(0,u.Y)(f,{amount:y,once:m.once}),b=!0;return(0,r.jsx)("section",{className:g(["icon-grid"]),ref:f,children:(0,r.jsx)(o.Lz,{isInView:_,children:(0,r.jsxs)(o.W2,{children:[h&&(0,r.jsx)(o._q,{headline:t,subhead:n,isRevealEnabled:b,isInView:_}),(0,r.jsx)("div",{className:g(["icon-grid__items"]),children:null==i?void 0:i.map((e,t)=>(0,r.jsx)(v,{...e},t))}),a&&s&&(0,r.jsx)(o.qP,{text:s.text,ctas:s.ctas})]})})})}y.fragments={entry:(0,a.ZP)(m())}},4386:function(e,t,n){"use strict";n.d(t,{w:function(){return i.default}});var i=n(55938)},60389:function(e,t,n){"use strict";n.d(t,{E:function(){return l}});var i=n(85893),r=n(4801),a=n(67294),s=n(66432);let o=(0,a.forwardRef)((e,t)=>{let{className:n,image:r,style:a,useTitleFallback:o,sizes:l="100vw",...u}
244=e,c=(null==r?void 0:r.node.altText)||(o?null==r?void 0:r.node.title:"");return(0,i.jsx)("img",{ref:t,className:n,src:(null==r?void 0:r.node.srcSet)?void 0:(0,s.r5)(null==r?void 0:r.node.mediaItemUrl),srcSet:(0,s.SA)(null==r?void 0:r.node.srcSet),width:(null==r?void 0:r.node.mediaDetails.width)||void 0,height:(null==r?void 0:r.node.mediaDetails.height)||void 0,alt:c,style:a,sizes:l,...u})});var l=r.E.create(o)},90825:function(e,t,n){"use strict";n.d(t,{G:function(){return y}});var i,r=n(85893),a=n(67294),s=n(19845),o=n.n(s),l=n(30775),u=n(4801),c=n(43397);function d(){return(d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var h=function(e){return a.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 14"},e),i||(i=a.createElement("path",{d:"M6.3,3.5h1.4v1.4h-1.4v-1.4ZM6.3,6.3h1.4v4.2h-1.4v-4.2ZM7,0C3.14,0,0,3.14,0,7s3.14,7,7,7,7-3.14,7-7S10.86,0,7,0ZM7,12.6c-3.09,0-5.6-2.51-5.6-5.6S3.91,1.4,7,1.4s5.6,2.51,5.6,5.6-2.51,5.6-5.6,5.6Z",fill:"currentColor"})))},f=n(15799),p=n(33898),m=n.n(p),g=n(83177);let v=o().bind(m());function y(e){var t;let{position:n="right",text:i,className:s}=e,[o,d]=(0,a.useState)(!1),p=(0,a.useRef)(null),{labels:m}=(0,g.i)(),y="center"===n?"-50%":0,_=()=>{(0,f.b1)()||d(!0)},b=()=>{(0,f.b1)()||d(!1)},x=()=>{(0,f.b1)()||d(!0)},C=()=>d(!1),E=e=>{(0,f.b1)()&&(e.stopPropagation(),d(e=>!e))};return(0,a.useEffect)(()=>{if(!o||!(0,f.b1)())return;let e=e=>{var t;null!==(t=p.current)&&void 0!==t&&t.contains(e.target)||d(!1)};return document.addEventListener("pointerdown",e),()=>document.removeEventListener("pointerdown",e)},[o]),(0,r.jsxs)("button",{ref:p,className:v(["image-attribution",s]),onMouseEnter:_,onMouseLeave:b,onFocus:x,onBlur:C,onClick:E,"aria-label":null==m?void 0:null===(t=m.ariaLabels)||void 0===t?void 0:t.imageAttribution,type:"button",children:[(0,r.jsx)("div",{className:v("image-attribution__icon-wrapper"),children:(0,r.jsx)(h,{className:v("icon")})}),(0,r.jsx)(l.M,{children:o&&(0,r.jsx)(u.E.div,{className:v("image-attribution__attribution",n),initial:{opacity:0,y:10,x:y},animate:{opacity:1,y:0,x:y},exit:{opacity:0,y:10,x:y},transition:{duration:.3,ease:c.hl},children:(0,r.jsx)("div",{className:"text-s",dangerouslySetInnerHTML:{__html:i}})},"attribution-box")}
244)]})}},69957:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return E}});var i=n(82729),r=n(85893),a=n(43775),s=n(68806),o=n(19845),l=n.n(o),u=n(67294),c=n(39583),d=n(15799),h=n(76606),f=n(71805),p=n(79867),m=n(29366),g=n(87048),v=n(34627),y=n.n(v),_=n(83177);function b(){let e=(0,i._)(["\n fragment ImageGallery on FlexiblePageContentContentImageGalleryLayout {\n variant\n standardHeader {\n headline\n subhead\n }\n textHeader {\n eyebrow\n headline\n subhead\n cta {\n linkType\n label\n externalLink\n page {\n node {\n uri\n }\n }\n }\n lineItems {\n headline\n body\n }\n }\n imageGalleryImages: images {\n caption\n image {\n ...ACFMedia\n }\n }\n }\n "]);return b=function(){return e},e}let x=l().bind(y()),C=e=>{let{eyebrow:t,headline:n,subhead:i,cta:a,lineItems:s}=e,o=(0,d.Cr)(a);return(0,r.jsx)("div",{className:x(["text-header"]),children:(0,r.jsxs)("div",{className:x(["content"]),children:[t&&(0,r.jsx)("p",{className:x(["eyebrow","eyebrow-l"]),children:t}),(0,r.jsx)("h2",{className:x(["headline","title-lc-m"]),children:n}),(0,r.jsx)("p",{className:x(["subhead","text-m"]),children:i}),s&&s.length>0&&(0,r.jsx)("ul",{className:x(["line-items"]),children:s.map((e,t)=>(0,r.jsxs)("li",{className:x(["line-item"]),children:[(0,r.jsx)("p",{className:x(["line-item__headline","text-l"]),role:"heading","aria-level":3,children:e.headline}),(0,r.jsx)("div",{className:x(["text-m"]),dangerouslySetInnerHTML:{__html:e.body}})]},t))}),o&&(0,r.jsx)(h.zx,{className:x(["cta"]),...o})]})})};function E(e){let{mounted:t}=(0,g.F)(),{isDesktop:n,isReady:i}=(0,c.dg)(),{imageGalleryImages:s,variant:o,standardHeader:l,textHeader:v,largeTitle:y}=e,b="standard"===o[0],E=b?l&&!!(l.headline||l.subhead):v&&!!(v.headline||v.subhead),w=(0,u.useRef)([]),{labels:T}=(0,_.i)(),S=(0,u.useRef)(null),L=(0,u.useRef)(null),P=(0,u.useRef)(!1),[M,A]=(0,u.useState)(P.current),[I,R]=(0,u.useState)(!1),k=(0,u.useRef)(!1),D=(0,u.useRef)({collapsed:0,expanded:0}),N=(e,t)=>{w.current[t]=e},F=()=>{t&&i&&(a.ZP.to(S.current,{height:P.current?D.current.collapsed:D.current.expanded,duration:.3,ease:"power2.inOut"}),P.current=!P.current,A(P.current))},O=(0,u.useCallback)(()=>{var e,n;if(!t||!i)return;let r=(null===(e=w.current[0])||void 0===e?void 0:e.offsetHeight)||0,s=(null===(n=L.current)||void 0===n?void 0:n.scrollHeight)+(0,d.t3)(48)||0;D.current={collapsed:r,expanded:s},k.current?a.ZP.set(S.current,{height:P.current?s:r}):a.ZP.set(S.current,{height:""})},[t,i]),j=(0,u.useMemo)(()=>n?(0,d.F3)(s,8):(0,d.F3)(s,4),[n]);(0,u.useEffect)(()=>{t&&i&&(n?k.current=s.length>8:k.current=s.length>4,R(k.current),O())},[t,i,n,O,s.length]),(0,u.useEffect)(()=>{if(t&&i)return window.addEventListener("resize",O),O(),()=>{window.removeEventListener("resize",O)}},[t,i,O]);let U=(0,u.useRef)(null),V=m.LL,B=n?V.lg.triggerPercent:V.sm.triggerPercent,H=(0,p.Y)(U,{amount:B,once:V.once}),G=!0;return(0,r.jsx)("section",{className:x(["image-gallery"]),ref:U,children:(0,r.jsx)(h.Lz,{isInView:H,children:(0,r.jsxs)(h.W2,{children:[E&&(b?(0,r.jsx)(h._q,{largeTitle:y,...l,isRevealEnabled:G,isInView:H}):(0,r.jsx)(C,{...v})),(0,r.jsxs)("div",{className:x(["gallery-wrapper"]),ref:S,children:[(0,r.jsx)("div",{className:x(["gallery-inner"]),ref:L,children:j.map((e,t)=>(0,r.jsx)("div",{className:x(["gallery-grid"]),ref:e=>N(e,t),children:e.map((e,t)=>(0,r.jsxs)("div",{className:x(["gallery-item"]),children:[(0,r.jsx)(h.Ee,{image:e.image,className:x(["gallery-image"])}),e.caption&&(0,r.jsx)("p",{className:"text-m",children:e.caption})]},t))},t))}),I&&(0,r.jsx)("div",{className:x(["gallery-overlay",{expanded:M}]),children:(0,r.jsxs)("button",{className:x(["gallery-toggle","inline-link"]),onClick:F,children:[(0,r.jsx)("span",{children:M?null==T?void 0:T.viewLessLabel:null==T?void 0:T.viewMoreLabel}),(0,r.jsx)(f.Z,{className:x(["icon"])})]})})]})]})})})}E.fragments={entry:(0,s.ZP)(b())}},11901:function(e,t,n){"use strict";n.d(t,{h:function(){return i.default}});var i=n(69957)},84966:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return v}});var i=n(82729),r=n(85893),a=n(68806),s=n(19845),o=n.n(s),l=n(76606),u=n(55383),c=n.n(u),d=n(67294),h=n(79867),f=n(39583),p=n(29366);function m(){let e=(0,i._)(["\n fragment ImageSingular on FlexiblePageContentContentImageSingularLayout {\n headline\n subhead\n image {\n ...ACFMedia\n }\n includeFooter\n footer {\n text\n ctas {\n linkType\n label\n externalLink\n page {\n node {\n uri\n }\n }\n }\n }\n }\n "]);return m=function(){return e},e}let g=o().bind(c());function v(e){let{headline:t,subhead:n,image:i,includeFooter:a,footer:s}=e,o=(0,d.useRef)(null),{isDesktop:u}=(0,f.dg)(),c=p.LL,m=u?c.lg.triggerPercent:c.sm.triggerPercent,v=(0,h.Y)(o,{amount:m,once:c.once}),y=!0;return(0,r.jsx)("section",{className:g(["image-singular"]),ref:o,children:(0,r.jsx)(l.Lz,{isInView:v,children:(0,r.jsxs)(l.W2,{children:[(0,r.jsx)(l._q,{headline:t,subhead:n,isRevealEnabled:y,isInView:v}),(0,r.jsx)("div",{className:g(["image-singular__image"]),children:(0,r.jsx)(l.Ee,{image:i,className:g(["image-singular__image__image"])})}),a&&(0,r.jsx)(l.qP,{text:s.text,ctas:s.ctas})]})})})}v.fragments={entry:(0,a.ZP)(m())}},25707:function(e,t,n){"use strict";n.d(t,{Z:function(){return i.default}});var i=n(84966)},57506:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return C}});var i=n(82729),r=n(85893),a=n(68806),s=n(67294),o=n(44819),l=n(3160
2445),u=n(76606),c=n(4801),d=n(79867),h=n(29366),f=n(39583),p=n(22372),m=n(19845),g=n.n(m),v=n(10323),y=n.n(v);function _(){let e=(0,i._)(["\n ","\n fragment InlineRedirect on FlexiblePageContentContentInlineRedirectLayout {\n headline\n subhead\n items {\n body\n title\n linkType\n externalLink\n page {\n node {\n uri\n }\n }\n image {\n ...ACFMedia\n }\n }\n }\n "]);return _=function(){return e},e}let b=g().bind(y()),x=e=>{var t;let{linkType:n,externalLink:i,page:a,image:s,body:o,title:d,index:f,isRevealEnabled:p,isInView:m}=e,g="external"===n[0],v=g?"_blank":void 0,y=g?i:null==a?void 0:null===(t=a.node)||void 0===t?void 0:t.uri,_=h.LL.sm.distance,x=h.LL.opacity,C=h.LL.ease,E=h.LL.sm.duration,w=h.LL.sm.delay+f*h.LL.sm.delay,T=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return{initial:p?{opacity:x,y:_}:{},animate:m?{opacity:1,y:0}:{},transition:{delay:e,duration:E,ease:C}}};return(0,r.jsx)(c.E.div,{className:b("inline-redirect-item"),...T(w),children:(0,r.jsxs)(u.Kl,{href:y,className:b("inline-redirect-item-content"),target:v,children:[(0,r.jsx)("div",{className:b("image","inline-redirect-item-image"),children:(0,r.jsx)(u.Ee,{image:s})}),(0,r.jsxs)("div",{className:b("content"),children:[(0,r.jsxs)("div",{className:b("headline"),children:[(0,r.jsx)("div",{className:b("image-small"),children:(0,r.jsx)(u.Ee,{image:s})}),(0,r.jsx)("p",{className:b("title-lc-s","title"),children:d}),(0,r.jsx)("span",{className:b("arrow"),children:(0,r.jsx)(l.Z,{})})]}),(0,r.jsx)("p",{className:b("text-m","inline-redirect-item-body"),dangerouslySetInnerHTML:{__html:o}})]})]})})};function C(e){let{log:t}=(0,p.q)({name:"Inline Redirect",bgColor:"violet",enabled:!1}),{items:n,headline:i,subhead:a}=e,o=!!(i||a),l=(0,s.useRef)(null),{isDesktop:c}=(0,f.dg)(),m=h.LL,g=c?m.lg.triggerPercent:m.sm.triggerPercent,v=(0,d.Y)(l,{amount:g,once:m.once}),y=!0;return(0,r.jsx)("section",{className:b(["inline-redirect"]),ref:l,children:(0,r.jsx)(u.W2,{children:(0,r.jsxs)(u.Lz,{isInView:v,children:[o&&(0,r.jsx)(u._q,{headline:i,subhead:a,isRevealEnabled:!0,isInView:v}),(0,r.jsx)("div",{className:b("inline-redirect-row"),children:n.map((e,t)=>(0,r.jsx)(x,{...e,index:t,isRevealEnabled:y,isInView:v},t))})]})})})}C.fragments={entry:(0,a.ZP)(_(),o.ab)}},89174:function(e,t,n){"use strict";n.d(t,{h:function(){return i.default}});var i=n(57506)},78885:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return v}});var i=n(82729),r=n(85893),a=n(67294),s=n(68806),o=n(76606),l=n(15799),u=n(79867),c=n(39583),d=n(29366),h=n(5886),f=n.n(h),p=n(19845);function m(){let e=(0,i._)(["\n fragment Intro on FlexiblePageContentContentIntroLayout {\n headline\n body\n }\n "]);return m=function(){return e},e}let g=n.n(p)().bind(f());function v(e){let{headline:t,body:n,inducteeDetail:i=!1}=e,s=(0,l.Ay)(t),h=(0,a.useRef)(null),{isDesktop:f}=(0,c.dg)(),p=d.LL,m=f?p.lg.triggerPercent:p.sm.triggerPercent,v=(0,u.Y)(h,{amount:m,once:p.once});return(0,r.jsx)("section",{className:g(["intro",{detail:i}]),ref:h,children:(0,r.jsx)(o.Lz,{isInView:v,children:(0,r.jsx)(o.W2,{children:(0,r.jsxs)("div",{className:g("intro__content"),children:[(0,r.jsx)("h2",{className:g(["headline","title-lc-m"]),dangerouslySetInnerHTML:{__html:s}}),n&&(0,r.jsx)("div",{className:g(["body","rich-text"]),dangerouslySetInnerHTML:{__html:n}})]})})})})}v.fragments={entry:(0,s.Ps)(m())}},77655:function(e,t,n){"use strict";n.d(t,{p:function(){return i.default}});var i=n(78885)},80314:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return b}});var i=n(82729),r=n(85893),a=n(68806),s=n(19845),o=n.n(s),l=n(76606),u=n(15799),c=n(67294),d=n(79867),h=n(39583),f=n(29366),p=n(9457),m=n.n(p);function g(){let e=(0,i._)(["\n fragment List on FlexiblePageContentContentListLayout {\n headline\n subhead\n type\n textItems {\n headline\n body\n cta {\n linkType\n externalLink\n label\n page {\n node {\n uri\n }\n }\n }\n }\n linkItems {\n headline\n cta {\n linkType\n externalLink\n label\n page {\n node {\n uri\n }\n }\n }\n }\n }\n "]);return g=function(){return e},e}let v=o().bind(m()),y=e=>{let{item:t,index:n,count:i}=e,{headline:a,body:s,cta:o}=t,c=(0,u.Cr)(o);return(0,r.jsxs)("li",{className:v(["list-item","list-item--text",{"list-item--last-row":n>i-3}]),children:[(0,r.jsx)("h3",{className:v("title","title-lc-s"),children:a}),(0,r.jsxs)("div",{className:v("content"),children:[(0,r.jsx)("div",{className:v("body","text-m"),dangerouslySetInnerHTML:{__html:s}}),c&&(0,r.jsx)(l.Kl,{className:v("link","inline-link","content--link"),href:c.url,target:c.target,children:c.label})]})]})},_=e=>{let{item:t,index:n,count:i}=e,{headline:a,cta:s}=t,o=(0,u.Cr)(s);return(0,r.jsxs)("li",{className:v(["list-item","list-item--link",{"list-item--last-row":n>i-3}]),children:[(0,r.jsx)("h3",{className:v("title","title-lc-s"),children:a}),o&&(0,r.jsx)(l.Kl,{className:v("link","inline-link","list-item--link--link"),href:o.url,target:o.target,children:o.label})]})};function b(e){let{headline:t,subhead:n,type:i,textItems:a,linkItems:s}=e,o="text-list"===i[0],u=o?a:s,p=!!(t||n),m=(0,c.useRef)(null),{isDesktop:g}=(0,h.dg)(),b=f.LL,x=g?b.lg.triggerPercent:b.sm.triggerPercent,C=(0,d.Y)(m,{amount:x,once:b.once}),E=!0;return(0,r.jsx)("div",{className:v(["list"]),ref:m,children:(0,r.jsx)(l.Lz,{isInView:C,
244children:(0,r.jsxs)(l.W2,{children:[p&&(0,r.jsx)(l._q,{headline:t,subhead:n,isRevealEnabled:E,isInView:C}),(0,r.jsx)("ul",{className:v("list__items"),children:u.map((e,t)=>o?(0,r.jsx)(y,{item:e,index:t,count:u.length},t):(0,r.jsx)(_,{item:e,index:t,count:u.length},t))})]})})})}b.fragments={entry:(0,a.ZP)(g())}},1943:function(e,t,n){"use strict";n.d(t,{a:function(){return i.default}});var i=n(80314)},62859:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return L}});var i=n(82729),r=n(85893),a=n(68806),s=n(79867),o=n(4801),l=n(29366),u=n(15799),c=n(67294),d=n(39583),h=n(81388),f=n(69065),p=n(76606),m=n(43775),g=n(59119),v=n(1175),y=n.n(v),_=n(19845),b=n.n(_);let x=b().bind(y());function C(e){let{inductee:t,index:n,isRevealEnabled:i,isInView:a}=e,s=(0,h.i)(),[d,f]=(0,c.useState)({x:0,y:0}),[v,y]=(0,c.useState)(!1),_=(0,c.useRef)(null),b=(0,c.useRef)(null),C=(0,c.useMemo)(()=>{if("Inductee"===t.__typename)return{name:t.title,url:t.uri,image:t.pageData.featuredImage};{let e=(0,u.Cr)(t.link,!0);return{name:t.name,url:null==e?void 0:e.url,target:null==e?void 0:e.target,image:t.image}}},[t]);(0,c.useEffect)(()=>{if(!_.current)return;let e=_.current.getBoundingClientRect(),t=s.x>=e.left&&s.x<=e.right&&s.y>=e.top&&s.y<=e.bottom;f({x:e.left,y:e.top}),y(t)},[s]),i="all"===l.Tm;let E=.15+(n+1)*.075,w=E+.2,T=0,S="120%",L=.8,P="power3.out",M=.014,A=Math.floor(n/3)%2==1?-M:M;return(0,c.useEffect)(()=>{if(!i||!a||!b.current)return;let e=new g.Z(b.current,{type:"chars",mask:"chars",charsClass:x("inductee-char")}),t=m.ZP.timeline({onComplete:()=>{}}).from(e.chars,{delay:w,opacity:T,y:S,duration:L,ease:P,stagger:A});return()=>{e.revert(),t.kill()}},[i,a]),(0,r.jsx)(o.E.div,{ref:_,initial:i?{opacity:0}:{},animate:a?{opacity:1}:{},transition:{delay:E,duration:.1,ease:"easeOut"},children:(0,r.jsxs)(p.Kl,{className:x("inductee",{hovered:v},{reversed:Math.floor(n/3)%2==1}),href:C.url,target:C.target,children:[(0,r.jsx)("p",{ref:b,className:x("inductee-text"),children:C.name}),(0,r.jsx)("div",{className:x("spacer")}),(0,r.jsx)(o.E.div,{className:x("spacer-reveal"),initial:i?{width:"100%"}:{},animate:a?{width:"0%"}:{},transition:{delay:E,duration:.8},style:{left:Math.floor(n/3)%2==1?0:"auto",right:Math.floor(n/3)%2==1?"auto":0}}),(0,r.jsx)(p.Ee,{image:C.image,sizes:"(max-width: 768px) 50vw, 524px",className:x("inductee-image"),style:{top:"".concat(s.y-d.y,"px")}})]},n)})}m.ZP.registerPlugin(g.Z);var E=n(83177),w=n(87048);function T(){let e=(0,i._)(["\n fragment ListInductees on FlexiblePageContentContentListInducteesLayout {\n headline\n nomineeSeasonHeadline\n nomineeVariant\n inducteeClass {\n nodes {\n taxonomyName\n slug\n name\n databaseId\n }\n }\n nominees {\n name\n image {\n ...ACFMedia\n }\n link {\n linkType\n externalLink\n page {\n node {\n uri\n }\n }\n }\n }\n cta {\n linkType\n label\n externalLink\n page {\n node {\n uri\n }\n }\n }\n }\n "]);return T=function(){return e},e}let S=b().bind(y());function L(e){let{headline:t,listInductees:n,nomineeSeasonHeadline:i,cta:a,nomineeVariant:m,nominees:g}=e,{siteSettings:v}=(0,E.i)(),{isDesktop:y,viewWidth:_}=(0,d.dg)(),b=(0,c.useRef)(null),x=(0,c.useRef)(null),[T,L]=(0,c.useState)(148),P=(null==v?void 0:v.nomineeSeason)?i:t,M=(0,u.Ay)(P),A=(0,u.Cr)(a),I=(0,f.k)({node:{__typename:"Ceremony"}}),{mounted:R}=(0,w.F)(),k=(0,c.useMemo)(()=>m?g:(0,u.rL)(n),[n,g]),D=(0,c.useMemo)(()=>k.reduce((e,t)=>{let n="Inductee"===t.__typename?t.title:t.name;return n.length>e.length?n:e},""),[k]);(0,c.useEffect)(()=>{if(!b.current||!x.current)return;let e=b.current.offsetWidth-32,t=148;for(;t>12&&(x.current.style.fontSize="".concat(t/8,"rem"),!(x.current.offsetWidth<=e));)t-=1;L(t/8)},[D,b.current,_]);let N=(0,c.useRef)(null),F=(0,s.Y)(N,{amount:.1,once:l.LL.once}),O=l.LL.opacity,j=l.LL.sm.distance,U=l.LL.sm.duration,V=l.LL.sm.delay,B=l.LL.ease,{pill:H,headlineDelay:G,cta:z,isRevealEnabled:q}=(0,c.useMemo)(()=>
244{if(!R)return;let e=y&&"none"!==l.Tm,t=0,n=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e?{initial:{opacity:O,y:j},animate:F?{opacity:1,y:0}:{opacity:O,y:j},transition:{duration:U,ease:B,delay:t}}:{initial:{opacity:1,y:0},animate:{opacity:1,y:0},transition:{duration:0}}};return{pill:n(0),headlineDelay:t+=V,cta:n(t+=V+k.length*V),isRevealEnabled:e}},[y,F,k.length,R])||{};return(0,r.jsx)(p.W2,{ref:N,tag:"section",className:S(["list-inductees"]),children:(0,r.jsxs)(p.Lz,{isInView:F,children:[(0,r.jsxs)("div",{className:S("header"),children:[(null==I?void 0:I.key)&&(0,r.jsx)(o.E.div,{...H,children:(0,r.jsx)(p.eo,{type:null==I?void 0:I.key,copy:null==I?void 0:I.label})}),(0,r.jsx)(p.ZF,{tag:"h2",text:M,isCenterAlign:!0,className:S(["title-uc-l"]),isRevealEnabled:!0,isInView:F,animInDelay:G})]}),(0,r.jsxs)("div",{className:S("inductee-list"),ref:b,style:{"--font-size":"".concat(T,"rem")},children:[(0,r.jsx)("p",{className:S("text-measure"),ref:x,children:D}),(0,r.jsx)(h.t,{children:k.map((e,t)=>(0,r.jsx)(C,{inductee:e,index:t,isRevealEnabled:q,isInView:F},t))})]}),(0,r.jsx)(o.E.div,{className:S("button-row"),...z,children:A&&(0,r.jsx)(p.zx,{className:S("cta"),...A})})]})})}L.fragments={entry:(0,a.ZP)(T())}},68875:function(e,t,n){"use strict";n.d(t,{m:function(){return i.default}});var i=n(62859)},43436:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return w}});var i=n(82729),r=n(85893),a=n(68806),s=n(19845),o=n.n(s),l=n(67294),u=n(4801),c=n(29366),d=n(15799),h=n(76606),f=n(81388),p=n(37252),m=n.n(p);let g=o().bind(m());function v(e){let{event:t,index:n,isRevealEnabled:i,isInView:a}=e,{uri:s,title:o,eventData:p,featuredEventImage:m}=t,{startDate:v,endDate:y}=p,_=(0,f.i)(),[b,x]=(0,l.useState)({x:0,y:0}),[C,E]=(0,l.useState)(!1),w=(0,l.useRef)(null),T=(0,l.useRef)(null),S=(0,d.Y_)(v,y);return(0,l.useEffect)(()=>{if(!w.current)return;let e=w.current.getBoundingClientRect(),t=_.x>=e.left&&_.x<=e.right&&_.y>=e.top&&_.y<=e.bottom,{width:n,height:i}=T.current.getBoundingClientRect();x({x:e.left+n/2,y:e.top+i/2}),E(t)},[_]),(0,r.jsx)("li",{children:(0,r.jsxs)(h.Kl,{className:g("event",{hovered:C}),href:s,ref:w,children:[(0,r.jsxs)("div",{className:g("wrapper"),children:[(0,r.jsx)(u.E.div,{className:g("line"),initial:i?{width:"0%"}:{},animate:a?{width:"100%"}:{},transition:{delay:.1+.2*n,duration:.3,ease:"easeOut"}}),0===n&&(0,r.jsx)(u.E.div,{className:g("line"),initial:i?{width:"0%"}:{},animate:a?{width:"100%"}:{},transition:{duration:.3,ease:"easeOut"}}),(0,r.jsx)(h.Ee,{className:g("image-mobile"),image:m}),(0,r.jsx)("div",{className:g("copy"),children:"all"===c.Tm?(0,r.jsx)(h.ZF,{tag:"p",text:o,className:g("title","title-lc-s"),isRevealEnabled:i,isInView:a,animInDelay:.2+.2*n}):(0,r.jsx)("p",{className:g("title","title-lc-s"),children:o})}),(0,r.jsxs)("div",{className:g("content"),children:[(0,r.jsx)("div",{className:g("item"),children:(0,r.jsx)(u.E.p,{className:g("pill"),initial:i?{opacity:0,y:30}:{},animate:a?{opacity:1,y:0}:{},transition:{delay:.25+.2*n,duration:.5,ease:"easeOut"},children:S})}),(0,r.jsx)("div",{className:g("item"),children:(0,r.jsx)(u.E.div,{initial:i?{opacity:0,y:30}:{},animate:a?{opacity:1,y:0}:{},transition:{delay:.25+.2*n,duration:.5,ease:"easeOut"},children:(0,r.jsx)(h.Nl,{pricingType:null==p?void 0:p.pricingType,price:null==p?void 0:p.price})})})]})]}),(0,r.jsx)(h.Ee,{ref:T,className:g("image"),image:m,style:{top:"".concat(_.y-b.y,"px")}})]})})}var y=n(79867),_=n(39583),b=n(83177),x=n(21782);function C(){let e=(0,i._)(["\n ","\n fragment ListingEvents on FlexiblePageContentContentEventsLayout {\n type\n headline\n cta {\n linkType\n label\n externalLink\n page {\n node {\n uri\n }\n }\n }\n events {\n nodes {\n ... on Event {\n ...EventFragment\n }\n }\n }\n }\n "]);return C=function(){return e},e}let E=o().bind(m());function w(e){let{type:t,headline:n,events:i,cta:a}=e,[s]=t,o=(0,d.Ay)(n),{upcomingEvents:p}=(0,b.i)(),m=("recent"===s?p:i.nodes).filter(e=>null!=e&&"Event"===e.__typename),g=(0,d.Cr)(a),{isDesktop:x}=(0,_.dg)(),C=!0,w=(0,l.useRef)(null),T=c.LL,S=x?T.lg.triggerPercent:T.sm.triggerPercent,L=(0,y.Y)(w,{amount:S,once:T.once});return m.length?(0,r.jsx)("section",{className:E(["listing-events","listing-events-".concat(s)]),ref:w,children:(0,r.jsx)(h.W2,{className:E("list-container"),children:(0,r.jsxs)(h.Lz,{isInView:L,children:[(0,r.jsx)(h.ZF,{tag:"h2",text:o,className:E("headline","title-uc-l"),isRevealEnabled:C,isInView:L}),(0,r.jsx)("ul",{className:E("events"),children:(0,r.jsx)(f.t,{children:m.map((e,t)=>(0,r.jsx)(v,{event:e,index:t,isRevealEnabled:C,isInView:L},e.databaseId))})}),(0,r.jsx)(u.E.div,{className:E("button-row"),initial:C?{opacity:c.LL.opacity,y:c.LL.sm.distance}:{},animate:L?{opacity:1,y:0}:{},transition:{delay:.4+m.length*c.LL.sm.delay,duration:c.LL.sm.duration,ease:c.LL.ease}
244,children:g&&(0,r.jsx)(h.zx,{className:E("cta"),...g})})]})})}):null}w.fragments={entry:(0,a.ZP)(C(),x.Q)}},88938:function(e,t,n){"use strict";n.d(t,{U:function(){return i.default}});var i=n(43436)},47832:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return N}});var i=n(82729),r=n(85893),a=n(43775),s=n(19845),o=n.n(s),l=n(30138),u=n(68806),c=n(67294),d=n(76606),h=n(15799),f=n(70160),p=n.n(f),m=n(83177);let g=o().bind(p()),v=e=>{let{date:t,className:n,pricingType:i,price:a}=e;return(0,r.jsxs)("div",{className:g(["info-pills",n]),children:[(0,r.jsx)("span",{className:g("date","pill"),children:t}),(0,r.jsx)(d.Nl,{pricingType:i,price:a})]})};function y(e){let{uri:t,title:n,eventTypes:i,featuredEventImage:a,eventData:{startDate:s,endDate:o,ticketLink:l,price:u,pricingType:c}}=e,{labels:f}=(0,m.i)(),p=(0,h.Y_)(s,o),{membersOnly:y}=f||{},_=i.nodes.some(e=>"members-only"===e.slug);return(0,r.jsxs)("div",{className:g("listing-events-full-item"),children:[(0,r.jsx)("div",{className:g("image"),children:(0,r.jsx)(d.Ee,{image:a})}),(0,r.jsxs)("div",{className:g("content"),children:[(0,r.jsxs)("div",{className:g("content__wrapper"),children:[_&&(0,r.jsx)("p",{className:g("eyebrow-l","eyebrow"),children:y}),(0,r.jsx)("h3",{className:g("title","title-lc-m"),children:n}),(0,r.jsx)(v,{date:p,price:u,pricingType:c}),(0,r.jsxs)("div",{className:g("buttons"),children:[(0,r.jsx)(d.zx,{ariaLabel:"Details - ".concat(n),label:"Details",noIcon:!0,url:t}),l&&(0,r.jsx)(d.zx,{label:"Get Tickets",target:"_blank",url:l})]})]}),(0,r.jsx)(v,{date:p,className:g("info-pills--desktop"),pricingType:c,price:u})]})]})}var _=n(38599),b=n.n(_),x=n(21782);function C(){let e=(0,i._)(["\n ",'\n query EventsByTaxonomy($taxonomies: [String] = [], $offset: Int = 0, $size: Int = 12, $language: String = "en") {\n events(\n where: {\n eventTypeFilters: $taxonomies,\n language: $language,\n afterToday: true,\n offsetPagination: {\n size: $size,\n offset: $offset\n }\n }\n ) {\n pageInfo {\n totalCount\n offsetPagination {\n hasMore\n hasPrevious\n }\n }\n nodes {\n ...EventFragment\n }\n }\n }\n']);return C=function(){return e},e}let E=(0,u.Ps)(C(),x.Q);var w=n(24983),T=n(39583),S=n(79867),L=n(30775),P=n(4801),M=n(29366),A=n(87048),I=n(11163),R=n(86317);function k(){let e=(0,i._)(["\n fragment ListingEventsFull on FlexiblePageContentContentListingEventsFullLayout {\n headline\n subhead\n eventFilter {\n databaseId\n slug\n }\n }\n "]);return k=function(){return e},e}let D=o().bind(p());function N(e){var t,n,i,s,o,u;let{labels:h,eventTypes:f}=(0,m.i)(),{headline:p,subhead:g,eventFilter:v,initialEvents:_}=e,{mounted:x}=(0,A.F)(),{headerVisible:C,headerRef:k,setIgnoreScroll:N,currentLanguage:F}=(0,w.g)(),O=(0,c.useRef)(null),j=(null==v?void 0:v.length)>0,U=(0,c.useRef)(C),V=v?v.map(e=>e.slug):[],B=(null==f?void 0:f.nodes)||[],[H,G]=(0,c.useState)(V),z=(0,c.useRef)(V),[q,W]=(0,c.useState)(null!==(s=null==_?void 0:_.nodes)&&void 0!==s?s:[]),[$,Z]=(0,c.useState)(!1),[Y,K]=(0,c.useState)(null!==(o=null==_?void 0:null===(n=_.pageInfo)||void 0===n?void 0:null===(t=n.offsetPagination)||void 0===t?void 0:t.hasMore)&&void 0!==o&&o),[X,Q]=(0,c.useState)(null!==(u=null==_?void 0:null===(i=_.pageInfo)||void 0===i?void 0:i.totalCount)&&void 0!==u?u:0),J=(0,c.useRef)(!0),ee=(0,c.useRef)(!1),et=(0,c.useRef)(1),en=12,{query:ei}=(0,I.useRouter)();if(ei.perPage&&"string"==typeof ei.perPage){let e=parseInt(ei.perPage,10);isNaN(e)||(en=e)}let[er]=(0,l.t)(E),{isDesktop:ea,isReady:es}=(0,T.dg)(),eo=(0,c.useRef)(null),el=M.LL,eu=ea?el.lg.triggerPercent:el.sm.triggerPercent,{triggerAmount:ec}=(0,R.C)(eo,eu,[q]),ed=(0,S.Y)(eo,{amount:ec,once:el.once}),eh=()=>{if(!x||!es)return;let e=24;U.current&&k.current&&(e+=k.current.offsetHeight),N(!0),a.ZP.to(window,{scrollTo:{y:O.current,offsetY:e},onComplete:()=>{setTimeout(()=>{N(!1)},150)}})},ef=e=>{G(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},ep=e=>{et.current=e,em()},em=(0,c.useCallback)(async()=>{Z(!0);let e=H.join(",")!==z.current.join(",");J.current?J.current=!1:eh();let{data:t}=await er({variables:{offset:et.current?(et.current-1)*en:0,language:F,size:en,taxonomies:H}});if(t){let{pageInfo:{totalCount:n,offsetPagination:{hasMore:i}},nodes:r}=t.events;W(r),e&&(Q(n),K(i),z.current=H),i&&!Y&&(K(!0),Q(n))}Z(!1)},[H]);return(0,c.useEffect)(()=>{x&&es&&a.ZP.registerPlugin(b())},[x,es]),(0,c.useEffect)(()=>{U.current=C},[C]),(0,c.useEffect)(()=>{var e;et.current=1;let t=!!(null==_?void 0:null===(e=_.nodes)||void 0===e?void 0:e.length),n=0===H.length;if(t&&n&&12===en&&!ee.current){ee.current=!0,J.current=!1;return}em()},[H]),(0,r.jsx)("section",{className:D(["listing-events-full"]),ref:eo,children:(0,r.jsx)(d.W2,{children:(0,r.jsxs)(d.Lz,{isInView:ed,children:[(0,r.jsx)(d._q,{headline:p,subhead:g,isRevealEnabled:!0,isInView:ed}),(0,r.jsxs)("div",{className:D("content",{loading:$}),ref:O,children:[(0,r.jsx)(L.M,{children:$&&(0,r.jsx)(P.E.div,{className:D("listing-events-full__loading"),initial:{opacity:0}
244,animate:{opacity:1},exit:{opacity:0},children:(0,r.jsx)(d.u7,{className:D("listing-events-full__loading__loader")})})}),B.length&&!j&&(0,r.jsx)(d.x$,{filterButtons:B,typeFilters:H,handleFilterClick:ef}),(0,r.jsxs)("div",{className:D("listing-events-full__list"),children:[q.map(e=>(0,r.jsx)(y,{...e},e.databaseId)),0===q.length&&!$&&(0,r.jsx)("div",{className:D("listing-events-full__empty"),children:(0,r.jsx)("p",{className:"title-lc-s",children:null==h?void 0:h.noEventsLabel})})]}),Y&&(0,r.jsx)(d.eE,{className:D("listing-events-full__pagination"),totalCount:X,perPage:en,currentPage:et.current,onPageChange:ep})]})]})})})}N.fragments={entry:(0,u.Ps)(k())}},33464:function(e,t,n){"use strict";n.d(t,{M:function(){return i.default}});var i=n(47832)},38778:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return k}});var i=n(82729),r=n(85893),a=n(43775),s=n(68806),o=n(19845),l=n.n(o),u=n(67294),c=n(79867),d=n(30775),h=n(4801),f=n(30138);function p(){let e=(0,i._)(["\n query PressReleases($size: Int!, $offset: Int!, $language: String!) {\n pressReleases(\n where: { language: $language, offsetPagination: {size: $size, offset: $offset}, sortByDate: true }\n ) {\n pageInfo {\n offsetPagination {\n hasMore\n total\n }\n }\n nodes {\n title\n uri\n pressReleaseFields {\n publishDate\n }\n }\n }\n }\n"]);return p=function(){return e},e}let m=(0,s.Ps)(p());var g=n(43397),v=n(29366),y=n(39583),_=n(76606),b=n(88907),x=n.n(b),C=n(15799);let E=l().bind(x()),w=(0,u.forwardRef)((e,t)=>{let{title:n,uri:i,pressReleaseFields:a}=e,{publishDate:s}=a||{},o=(0,u.useMemo)(()=>s?(0,C.p6)(s):null,[s]);return(0,r.jsxs)("div",{className:E("listing-press-releases-item"),ref:t,children:[(0,r.jsxs)("div",{className:E("copy"),children:[(0,r.jsx)("h3",{className:E("title","title-lc-m"),children:n}),(0,r.jsx)("span",{className:E(["date","pill"]),children:o}),(0,r.jsx)(_.zx,{className:E("cta"),label:"details",url:i})]}),(0,r.jsx)("span",{className:E(["date","pill"]),children:o})]})});var T=h.E.create(w),S=n(24983),L=n(76348),P=n(87048);function M(){let e=(0,i._)(["\n fragment ListingPressReleases on FlexiblePageContentContentListingPressReleasesLayout {\n headline\n }\n "]);return M=function(){return e},e}let A=l().bind(x()),I={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.085,delayChildren:0}},exit:{opacity:0,transition:{duration:.2,ease:g.hl}}},R={hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{duration:.3,ease:g.hl}},exit:{opacity:0}};function k(e){let{headline:t,initialPressReleases:n}=e,i=12,[s,o]=(0,u.useState)(1),[l,p]=(0,u.useState)(!1),{mounted:g}=(0,P.F)(),{currentLanguage:b,setIgnoreScroll:x,headerRef:C,headerVisible:E}=(0,S.g)(),[w]=(0,f.t)(m),{isDesktop:M,isReady:k}=(0,y.dg)(),D=(0,u.useRef)(null),N=(0,u.useRef)(E),F=(0,u.useRef)(null),[O,j]=(0,u.useState)((null==n?void 0:n.nodes)||[]),U=v.LL,V=M?U.lg.triggerPercent:U.sm.triggerPercent,B=(0,c.Y)(D,{amount:V,once:U.once}),H=(0,u.useMemo)(()=>null==n?void 0:n.pageInfo.offsetPagination.hasMore,[n]),G=(0,u.useMemo)(()=>(null==n?void 0:n.pageInfo.offsetPagination.total)||0,[n]),z=()=>{if(!g||!k)return;let e=24;N.current&&C.current&&(e+=C.current.offsetHeight),x(!0),a.ZP.to(window,{scrollTo:{y:F.current,offsetY:e},onComplete:()=>{setTimeout(()=>{x(!1)},150)}})},q=async e=>{p(!0),o(e),z();let{data:t}=await w({variables:{size:i,offset:(e-1)*i,language:b}});(null==t?void 0:t.pressReleases.nodes)?j(t.pressReleases.nodes):j([]),p(!1)};return((0,u.useEffect)(()=>{g&&k&&a.ZP.registerPlugin(L.L)},[g,k]),(0,u.useEffect)(()=>{N.current=E},[E]),O.length)?(0,r.jsx)("section",{className:A(["listing-press-releases"]),ref:D,children:(0,r.jsx)(_.W2,{children:(0,r.jsxs)(_.Lz,{isInView:B,children:[(0,r.jsx)(_._q,{headline:t,isInView:B}),(0,r.jsxs)("div",{className:A("listing-press-releases__items"),ref:F,children:[(0,r.jsx)(d.M,{children:l&&(0,r.jsx)(h.E.div,{className:A("listing-press-releases__loading"),initial:{opacity:0}
244,animate:{opacity:1},exit:{opacity:0},children:(0,r.jsx)(_.u7,{className:A("listing-press-releases__loading__loader")})})}),(0,r.jsx)(d.M,{initial:!1,mode:"wait",children:(0,r.jsx)(h.E.div,{variants:I,initial:"hidden",animate:"visible",exit:"exit",className:A("listing-press-releases__items-wrapper"),children:O.map(e=>(0,r.jsx)(T,{variants:R,...e},e.uri))},O.map(e=>e.uri).join("-"))})]}),H&&(0,r.jsx)(_.eE,{className:A("listing-press-releases__pagination"),totalCount:G,perPage:i,size:"small",currentPage:s,onPageChange:q})]})})}):null}k.fragments={entry:(0,s.ZP)(M())}},66571:function(e,t,n){"use strict";n.d(t,{i:function(){return i.default}});var i=n(38778)},76256:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return S}});var i=n(82729),r=n(85893),a=n(68806),s=n(19845),o=n.n(s),l=n(76606),u=n(12767),c=n.n(u);let d=o().bind(c());function h(e){let{logo:t}=e;return(null==t?void 0:t.node)?(0,r.jsx)("div",{className:d("logo"),children:(0,r.jsx)(l.Ee,{className:d("logo__image"),image:t,useTitleFallback:!0})}):null}var f=n(67294),p=n(47279),m=n(15799),g=n(44853),v=n(43028);let y=o().bind(c()),_=e=>{let{logos:t}=e;return(0,r.jsx)(p.jw,{className:y("logo-group"),children:t.map((e,t)=>(0,r.jsx)(h,{logo:e.logo},t))})};function b(e){let{logos:t}=e,n=(0,m.F3)(t,4),i=(0,f.useRef)(null);return(0,f.useEffect)(()=>{i.current&&(i.current.querySelectorAll(".splide__list").forEach(e=>{e.setAttribute("role","list")}),i.current.querySelectorAll(".splide__slide").forEach(e=>{e.setAttribute("role","listitem")}))},[]),(0,r.jsx)("div",{ref:i,children:(0,r.jsxs)(p.tv,{className:y("logos-splide"),options:{type:"slide",perPage:3,perMove:3,gap:"3rem",flickMaxPages:1,flickPower:250,updateOnMove:!0,padding:{left:"5rem",right:"5rem"},breakpoints:{1024:{perPage:2,perMove:2,arrows:!1,padding:{left:"4rem",right:"4rem"}},768:{perPage:1,perMove:1,fixedWidth:"86%",padding:{left:"2rem",right:"2rem"}}}},hasTrack:!1,children:[(0,r.jsx)(p.Gj,{className:y("logos-track"),children:n.map((e,t)=>(0,r.jsx)(_,{logos:e},t))}),(0,r.jsx)(g.W,{children:(0,r.jsx)(v.J,{className:y("logos-pagination")})})]})})}var x=n(79867),C=n(39583),E=n(29366);function w(){let e=(0,i._)(["\n fragment Logos on FlexiblePageContentContentLogosLayout {\n headline\n body\n logos {\n logo {\n ... ACFMedia\n }\n }\n }\n "]);return w=function(){return e},e}let T=o().bind(c());function S(e){let{headline:t,body:n,logos:i}=e,a=(null==i?void 0:i.length)>12,s=!!(t||n),o=(0,f.useRef)(null),{isDesktop:u}=(0,C.dg)(),c=E.LL,d=u?c.lg.triggerPercent:c.sm.triggerPercent,p=(0,x.Y)(o,{amount:d,once:c.once}),m=!0;return(0,r.jsx)("section",{className:T(["logos"]),ref:o,children:(0,r.jsxs)(l.Lz,{isInView:p,children:[s&&(0,r.jsx)(l.W2,{children:(0,r.jsx)(l._q,{headline:t,subhead:n,isRevealEnabled:m,isInView:p})}),a?(0,r.jsx)(b,{logos:i}):(0,r.jsx)(l.W2,{children:(0,r.jsx)("div",{className:T("logos-grid"),children:i.map((e,t)=>(0,r.jsx)(h,{...e},t))})})]})})}S.fragments={entry:(0,a.ZP)(w())}},8424:function(e,t,n){"use strict";n.d(t,{x:function(){return i.default}});var i=n(76256)},95484:function(e,t,n){"use strict";n.d(t,{o:function(){return f}});var i=n(85893),r=n(4801),a=n(19845),s=n.n(a),o=n(67294),l=n(7703),u=n.n(l),c=n(42875),d=n(15799);let h=s().bind(u());function f(e){let{children:t,className:n,...a}=e,s=(0,o.useRef)(null),[l,u]=(0,o.useState)({}),{highlightColor:f}=(0,c.$h)();return(0,o.useEffect)(()=>{document.body.style.setProperty("--highlight-color",f),u({"--highlight-color":f})},[f]),(0,o.useEffect)(()=>{(0,d.ug)(s.current)},[s]),(0,i.jsx)(r.E.main,{tabIndex:-1,onAnimationComplete:()=>(0,d.ug)(s.current),transition:{duration:.5,ease:"easeInOut"},ref:s,className:h(["main",n]),style:l,id:"main",children:t})}},57402:function(e,t,n){"use strict";n.d(t,{u:function(){return h}});var i=n(85893),r=n(67294),a=n(4801),s=n(19845),o=n.n(s),l=n(55230),u=n.n(l);let c=o().bind(u()),d=(0,r.forwardRef)((e,t)=>{let{className:n}=e;return(0,i.jsx)("div",{className:c("material-loader",n),ref:t,children:(0,i.jsx)("svg",{className:c("material-loader__spinner"),viewBox:"0 0 66 66",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("circle",{className:c("material-loader__spinner__circle"),fill:"none",strokeWidth:"6",strokeLinecap:"round",cx:"33",cy:"33",r:"30"})})})});var h=a.E.create(d)},81629:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return v}});var i=n(82729),r=n(85893),a=n(68806),s=n(19845),o=n.n(s),l=n(76606),u=n(33973),c=n.n(u),d=n(67294),h=n(79867),f=n(39583),p=n(29366);function m(){let e=(0,i._)(["\n fragment Milestones on FlexiblePageContentContentMilestonesLayout {\n headline\n subhead\n items {\n headline\n subtitle\n }\n includeFooter\n footer {\n text\n ctas {\n linkType\n label\n externalLink\n page {\n node {\n uri\n }\n }\n }\n }\n }\n "]);return m=function(){return e},e}let g=o().bind(c());function v(e){let{items:t,includeFooter:n,footer:i,subhead:a,headline:s}=e,o=!!(s||a),u=(0,d.useRef)(null),{isDesktop:c}=(0,f.dg)(),m=p.LL,v=c?m.lg.triggerPercent:m.sm.triggerPercent,y=(0,h.Y)(u,{amount:v,once:m.once}),_=!0;return(0,r.jsx)("section",{className:g(["milestones"]),ref:u,children:(0,r.jsx)(l.Lz,{isInView:y,children:(0,r.jsxs)(l.W2,{children:[o&&(0,r.jsx)(l._q,{headline:s,subhead:a,isRevealEnabled:_,isInView:y}),(0,r.jsx)("div",{className:g("row"),children:t.map((e,t)=>(0,r.jsxs)("div",{className:g("milestone"),children:[(0,r.jsx)("h2",{className:g(["title-lc-l","headline"]),children:e.headline}),(0,r.jsx)("p",{className:g(["text-l","subtitle"]),children:e.subt
244itle})]},t))}),n&&(0,r.jsx)(l.qP,{text:i.text,ctas:i.ctas})]})})})}v.fragments={entry:(0,a.ZP)(m())}},47225:function(e,t,n){"use strict";n.d(t,{V:function(){return i.default}});var i=n(81629)},95002:function(e,t,n){"use strict";n.d(t,{Y:function(){return o}});var i=n(43775),r=n(68563),a=n(34715),s=n(17594);function o(e){let{containerRef:t,distancePx:n=8,startPx:o,endPx:l,isEnabled:u=!0,start:c,end:d}=e;(0,a.V)(()=>{if(!u)return;i.ZP.registerPlugin(r.i);let e=null==t?void 0:t.current;if(!e)return;let a=i.ZP.context(()=>{Array.from(e.querySelectorAll(".js-parallax")).forEach(t=>{let r={start:"number"==typeof o?o:t.dataset.startPx?parseFloat(t.dataset.startPx):0,end:"number"==typeof l?l:t.dataset.endPx?parseFloat(t.dataset.endPx):t.dataset.distancePx?parseFloat(t.dataset.distancePx):n};i.ZP.fromTo(t,{y:r.start},{y:r.end,ease:"none",scrollTrigger:{trigger:e,start:null!=c?c:"top bottom",end:null!=d?d:"bottom top",scrub:!0},force3D:!0})})},e);return()=>{try{a.revert()}catch(e){}}},[t,n,u,c,d]),(0,s.H)({rootRef:t,enabled:u})}t.Z=o},33899:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return b}});var i=n(82729),r=n(85893),a=n(68806),s=n(67294),o=n(19845),l=n.n(o),u=n(76606),c=n(68282),d=n(15799),h=n(39583),f=n(79867),p=n(29366),m=n(55171),g=n.n(m);function v(){let e=(0,i._)(["\n ","\n fragment Pricing on FlexiblePageContentContentPricingLayout {\n headline\n subhead\n prices {\n nodes {\n ...Ticket\n }\n }\n }\n "]);return v=function(){return e},e}let y=l().bind(g()),_=e=>{let{item:t,index:n,count:i}=e;if("TicketPrice"!==t.__typename)return;let{ticketPriceFields:{pricing:a,price:s},title:o}=t,l=(null==a?void 0:a.cta)?(0,d.Cr)(a.cta):null;return(0,r.jsxs)("div",{className:y(["price-item",{"price-item--last-row":n>i-3}]),children:[(0,r.jsxs)("div",{className:y("price-item__header"),children:[(0,r.jsx)("h3",{className:y("title","title-lc-s"),children:(null==a?void 0:a.title)||o}),(0,r.jsx)("p",{className:y("price","text-l"),children:s})]}),(0,r.jsx)("div",{className:y("price-item__content"),children:(0,r.jsxs)("p",{className:y("body","text-m"),children:[null==a?void 0:a.description," ",l&&(0,r.jsx)(u.Kl,{className:y("link","inline-link"),href:l.url,target:l.target,children:l.label})]})})]})};function b(e){var t;let{headline:n,subhead:i,prices:a}=e,o=!!(n||i),{isDesktop:l}=(0,h.dg)(),c=(0,s.useRef)(null),d=p.LL,m=l?d.lg.triggerPercent:d.sm.triggerPercent,g=(0,f.Y)(c,{amount:m,once:d.once});return(0,r.jsx)("section",{className:y(["pricing"]),ref:c,children:(0,r.jsx)(u.Lz,{isInView:g,children:(0,r.jsxs)(u.W2,{children:[o&&(0,r.jsx)(u._q,{headline:n,subhead:i,isRevealEnabled:!0,isInView:g}),(0,r.jsx)("div",{className:y("pricing__items"),children:null==a?void 0:null===(t=a.nodes)||void 0===t?void 0:t.map((e,t)=>(0,r.jsx)(_,{item:e,index:t,count:a.nodes.length},t))})]})})})}b.fragments={entry:(0,a.ZP)(v(),c.$)}},62351:function(e,t,n){"use strict";n.d(t,{n:function(){return i.default}});var i=n(33899)},67541:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return _}});var i=n(82729),r=n(85893),a=n(68806),s=n(19845),o=n.n(s),l=n(76606),u=n(15799),c=n(67294),d=n(79867),h=n(39583),f=n(29366),p=n(90902),m=n.n(p);function g(){let e=(0,i._)(["\n fragment QuickLinks on FlexiblePageContentContentQuickLinksLayout {\n headline\n subhead\n links {\n icon {\n ...ACFMedia\n }\n label\n linkType\n externalLink\n page {\n node {\n uri\n }\n }\n }\n }\n "]);return g=function(){return e},e}let v=o().bind(m()),y=e=>{var t;let{link:n}=e,{label:i,icon:a,externalLink:s,page:o,linkType:u}=n,[c]=u,d="external"===c,h=(d?s:null==o?void 0:null===(t=o.node)||void 0===t?void 0:t.uri)||"",f=d?"_blank":void 0;return(0,r.jsx)("li",{className:v("link-wrapper"),children:(0,r.jsxs)(l.Kl,{href:h,target:f,className:v("link"),children:[a&&(0,r.jsx)("div",{className:v("icon"),children:(0,r.jsx)(l.Ee,{image:a,alt:""})}),(0,r.jsx)("div",{className:v("content"),children:(0,r.jsx)("p",{className:v("label","t
244itle-lc-s"),children:i})})]})})};function _(e){let{links:t,headline:n,subhead:i}=e,a=n?(0,u.Ay)(n):null,s=!!(a||i),o=(0,c.useRef)(null),{isDesktop:p}=(0,h.dg)(),m=!0,g=f.LL,_=p?g.lg.triggerPercent:g.sm.triggerPercent,b=(0,d.Y)(o,{amount:_,once:g.once});return(0,r.jsx)("section",{className:v(["quick-links"]),ref:o,children:(0,r.jsx)(l.Lz,{isInView:b,children:(0,r.jsxs)(l.W2,{children:[s&&(0,r.jsxs)("div",{className:v("header"),children:[a&&(0,r.jsx)(l.ZF,{tag:"h2",text:a,className:v("title-uc-l"),isRevealEnabled:m,isInView:b}),i&&(0,r.jsx)("p",{className:v("text-m","subhead"),children:i})]}),(0,r.jsx)("ul",{className:v("links"),children:t.map((e,t)=>(0,r.jsx)(y,{link:e},t))})]})})})}_.fragments={entry:(0,a.ZP)(g())}},65071:function(e,t,n){"use strict";n.d(t,{g:function(){return i.default}});var i=n(67541)},20088:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return b}});var i=n(82729),r=n(85893),a=n(68806),s=n(19845),o=n.n(s),l=n(67294),u=n(47279),c=n(76606),d=n(86123),h=n.n(d);let f=o().bind(h());function p(e){let{slide:t}=e,{image:n,quote:i,attribution:{name:a,title:s}}=t,o=!!(a||s);return(0,r.jsxs)(u.jw,{className:f("slide"),"aria-label":a,children:[(0,r.jsx)("div",{className:f("image"),children:(0,r.jsx)(c.Ee,{image:n})}),(0,r.jsxs)("div",{className:f("content"),children:[i&&(0,r.jsxs)("p",{className:f("quote","title-lc-xs"),children:["â",i,"â"]}),o&&(0,r.jsxs)("div",{className:f("attribution"),children:[a&&(0,r.jsx)("p",{className:f("name","eyebrow-l"),children:a}),s&&(0,r.jsx)("p",{className:f("title","tag-s"),children:s})]})]})]})}var m=n(79867),g=n(39583),v=n(29366);function y(){let e=(0,i._)(["\n fragment QuoteCarousel on FlexiblePageContentContentQuoteCarouselLayout {\n headline\n subhead\n items {\n quote\n attribution {\n name\n title\n }\n image {\n ...ACFMedia\n }\n }\n }\n "]);return y=function(){return e},e}let _=o().bind(h());function b(e){let{items:t,headline:n,subhead:i}=e,a=(0,l.useRef)(null),s=!!(n||i),o={type:"slide",arrows:!0,pagination:!0,speed:500,flickMaxPages:1,flickPower:250,updateOnMove:!0,perPage:3,perMove:3,gap:"3rem",padding:{left:"5rem",right:"5rem"},breakpoints:{1025:{perPage:2,perMove:2,gap:"3rem",padding:{left:"4rem",right:"4rem"},arrows:!1},769:{perPage:1,perMove:1,fixedWidth:"76%",gap:"2rem",padding:{left:"2rem",right:"2rem"}}}};(0,l.useEffect)(()=>{a.current&&(a.current.querySelectorAll(".splide__list").forEach(e=>{e.setAttribute("role","list")}),a.current.querySelectorAll(".splide__slide").forEach(e=>{e.setAttribute("role","listitem")}))},[]);let{isDesktop:d}=(0,g.dg)(),h=v.LL,f=d?h.lg.triggerPercent:h.sm.triggerPercent,y=(0,m.Y)(a,{amount:f,once:h.once});return(0,r.jsx)("section",{className:_(["quote-carousel"]),ref:a,children:(0,r.jsxs)(c.Lz,{isInView:y,children:[s&&(0,r.jsx)(c.W2,{children:(0,r.jsx)(c._q,{headline:n,subhead:i,isInView:y})}),(0,r.jsx)("div",{className:_("splide-container"),children:(0,r.jsxs)(u.tv,{className:_("splide"),options:o,hasTrack:!1,children:[(0,r.jsx)(u.G
244j,{children:t.map((e,t)=>(0,r.jsx)(p,{slide:e},t))}),(0,r.jsx)(c.W2,{children:(0,r.jsx)(c.Jj,{className:_("story-carousel-bottom")})})]})})]})})}b.fragments={entry:(0,a.ZP)(y())}},1477:function(e,t,n){"use strict";n.d(t,{g:function(){return i.default}});var i=n(20088)},52217:function(e,t,n){"use strict";n.d(t,{K:function(){return u}});var i=n(85893),r=n(41664),a=n.n(r),s=n(11163),o=n(67294),l=n(15799),u=(0,o.forwardRef)((e,t)=>{let{href:n,role:r,children:u}=e,c=(0,s.useRouter)(),d=(0,o.useMemo)(()=>(0,l.Dy)(c.asPath),[c.asPath]),[h,f]=(0,o.useState)(n||"#");return(0,o.useEffect)(()=>{"#"!==h&&(0,l.Sf)(n)&&d&&"en"!==d&&!n.startsWith("/".concat(d,"/"))&&f("/".concat(d).concat(n.startsWith("/")?"":"/").concat(n))},[]),(0,i.jsx)(a(),{...e,href:h,ref:t,role:r,children:u})})},13167:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return f}});var i=n(82729),r=n(85893),a=n(68806),s=n(19845),o=n.n(s),l=n(76606),u=n(11604),c=n.n(u);function d(){let e=(0,i._)(["\n fragment RichText on FlexiblePageContentContentRichTextLayout {\n richTextContent\n }\n "]);return d=function(){return e},e}let h=o().bind(c());function f(e){let{richTextContent:t}=e;return(0,r.jsx)("section",{className:h(["rich-text"]),children:(0,r.jsx)(l.W2,{children:(0,r.jsx)("div",{className:h("rich-text__content"),dangerouslySetInnerHTML:{__html:t||""}})})})}f.fragments={entry:(0,a.ZP)(d())}},83195:function(e,t,n){"use strict";n.d(t,{H:function(){return i.default}});var i=n(13167)},97919:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var i=n(82729),r=n(85893),a=n(68806),s=n(19845),o=n.n(s),l=n(84706),u=n.n(l);function c(){let e=(0,i._)(["\n fragment SectionEnd on FlexiblePageContentContentSectionEndLayout {\n sectionId\n }\n "]);return c=function(){return e},e}let d=o().bind(u());function h(e){let{sectionId:t}=e;return(0,r.jsx)("div",{className:d(["section-end"]),"data-section-id":t})}h.fragments={entry:(0,a.ZP)(c())}},1418:function(e,t,n){"use strict";n.d(t,{H:function(){return i.default}});var i=n(97919)},60858:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return J}});var i=n(82729),r=n(85893),a=n(68806),s=n(11163),o=n(67294),l=n(76606),u=n(39583),c=n(59447),d=n(24983),h=n(47021),f=n(34715),p=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig,m=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/ig,g=Math.PI/180,v=Math.sin,y=Math.cos,_=Math.abs,b=Math.sqrt,x=function(e){return"number"==typeof e},C=1e5,E=function(e){return Math.round(e*C)/C||0};function w(e,t,n,i,r,a,s){for(var o,l,u,c,d,h=e.length;--h>-1;)for(u=0,l=(o=e[h]).length;u<l;u+=2)c=o[u],d=o[u+1],o[u]=c*t+d*i+a,o[u+1]=c*n+d*r+s;return e._dirty=1,e}function T(e,t,n,i,r,a,s,o,l){if(e!==o||t!==l){n=_(n),i=_(i);var u=r%360*g,c=y(u),d=v(u),h=Math.PI,f=2*h,p=(e-o)/2,m=(t-l)/2,x=c*p+d*m,C=-d*p+c*m,E=x*x,w=C*C,T=E/(n*n)+w/(i*i);T>1&&(n=b(T)*n,i=b(T)*i);var S=n*n,L=i*i,P=(S*L-S*w-L*E)/(S*w+L*E);P<0&&(P=0);var M=(a===s?-1:1)*b(P),A=n*C/i*M,I=-(i*x/n*M),R=(e+o)/2+(c*A-d*I),k=(t+l)/2+(d*A+c*I),D=(x-A)/n,N=(C-I)/i,F=(-x-A)/n,O=(-C-I)/i,j=D*D+N*N,U=(N<0?-1:1)*Math.acos(D/b(j)),V=(D*O-N*F<0?-1:1)*Math.acos((D*F+N*O)/b(j*(F*F+O*O)));isNaN(V)&&(V=h),!s&&V>0?V-=f:s&&V<0&&(V+=f),U%=f;var B,H=Math.ceil(_(V%=f)/(f/4)),G=[],z=V/H,q=4/3*v(z/2)/(1+y(z/2)),W=c*n,$=d*n,Z=-(d*i),Y=c*i;for(B=0;B<H;B++)x=y(r=U+B*z),C=v(r),D=y(r+=z),N=v(r),G.push(x-q*C,C+q*x,D+q*N,N-q*D,D,N);for(B=0;B<G.length;B+=2)x=G[B],C=G[B+1],G[B]=x*W+C*Z+R,G[B+1]=x*$+C*Y+k;return G[B-2]=o,G[B-1]=l,G}}function S(e){var t,n,i,r,a,s,o,l,u,c,d,h,f,g,v,y=(e+"").replace(m,function(e){var t=+e;return t<1e-4&&t>-.0001?0:t}).match(p)||[],b=[],x=0,C=0,E=2/3,w=y.length,S=0,L=function(e,t,n,i){c=(n-e)/3,d=(i-t)/3,o.push(e+c,t+d,n-c,i-d,n,i)};if(!e||!isNaN(y[0])||isNaN(y[1]))return b;for(t=0;t<w;t++)if(f=a,isNaN(y[t])?s=(a=y[t].toUpperCase())!==y[t]:t--,i=+y[t+1],r=+y[t+2],s&&(i+=x,r+=C),t||(l=i,u=r),"M"===a)o&&(o.length<8?b.length-=1:S+=o.length),x=l=i,C=u=r,o=[i,r],b.push(o),t+=2,a="L";else if("C"===a)o||(o=[0,0]),s||(x=C=0),o.push(i,r,x+1*y[t+3],C+1*y[t+4],x+=1*y[t+5],C+=1*y[t+6]),t+=6;else if("S"===a)c=x,d=C,("C"===f||"S"===f)&&(c+=x-o[o.length-4],d+=C-o[o.length-3]),s||(x=C=0),o.push(c,d,i,r,x+=1*y[t+3],C+=1*y[t+4]),t+=4;else if("Q"===a)c=x+(i-x)*E,d=C+(r-C)*E,s||(x=C=0),x+=1*y[t+3],C+=1*y[t+4],o.push(c,d,x+(i-x)*E,C+(r-C)*E,x,C),t+=4;else if("T"===a)c=x-o[o.length-4],d=C-o[o.length-3],o.push(x+c,C+d,i+(x+1.5*c-i)*E,r+(C+1.5*d-r)*E,x=i,C=r),t+=2;else if("H"===a)L(x,C,x=i,C),t+=1;
244else if("V"===a)L(x,C,x,C=i+(s?C-x:0)),t+=1;else if("L"===a||"Z"===a)"Z"===a&&(i=l,r=u,o.closed=!0),("L"===a||_(x-i)>.5||_(C-r)>.5)&&(L(x,C,i,r),"L"===a&&(t+=2)),x=i,C=r;else if("A"===a){if(g=y[t+4],v=y[t+5],c=y[t+6],d=y[t+7],n=7,g.length>1&&(g.length<3?(d=c,c=v,n--):(d=v,c=g.substr(2),n-=2),v=g.charAt(1),g=g.charAt(0)),h=T(x,C,+y[t+1],+y[t+2],+y[t+3],+g,+v,(s?x:0)+1*c,(s?C:0)+1*d),t+=n,h)for(n=0;n<h.length;n++)o.push(h[n]);x=o[o.length-2],C=o[o.length-1]}return(t=o.length)<6?(b.pop(),t=0):o[0]===o[t-2]&&o[1]===o[t-1]&&(o.closed=!0),b.totalPoints=S+t,b}function L(e){x(e[0])&&(e=[e]);var t,n,i,r,a="",s=e.length;for(n=0;n<s;n++){for(a+="M"+E((r=e[n])[0])+","+E(r[1])+" C",t=r.length,i=2;i<t;i++)a+=E(r[i++])+","+E(r[i++])+" "+E(r[i++])+","+E(r[i++])+" "+E(r[i++])+","+E(r[i])+" ";r.closed&&(a+="z")}return a}var P,M,A=function(){return P||(P=window.gsap)&&P.registerPlugin&&P},I=function(){(P=A())&&(P.registerEase("_CE",V.create),M=1)},R=1e20,k=function(e){return~~(1e3*e+(e<0?-.5:.5))/1e3},D=1,N=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/gi,F=/[cLlsSaAhHvVtTqQ]/g,O=function(e){var t,n=e.length,i=R;for(t=1;t<n;t+=6)+e[t]<i&&(i=+e[t]);return i},j=function(e,t,n){n||0===n||(n=Math.max(+e[e.length-1],+e[1]));var i,r=-1*+e[0],a=-n,s=e.length,o=1/(+e[s-2]+r),l=-t||(Math.abs(+e[s-1]-+e[1])<.01*(+e[s-2]-+e[0])?O(e)+a:+e[s-1]+a);for(i=0,l=l?1/l:-o;i<s;i+=2)e[i]=(+e[i]+r)*o,e[i+1]=(+e[i+1]+a)*l},U=function e(t,n,i,r,a,s,o,l,u,c,d){var h,f=(t+i)/2,p=(n+r)/2,m=(i+a)/2,g=(r+s)/2,v=(a+o)/2,y=(s+l)/2,_=(f+m)/2,b=(p+g)/2,x=(m+v)/2,C=(g+y)/2,E=(_+x)/2,w=(b+C)/2,T=o-t,S=l-n,L=Math.abs((i-o)*S-(r-l)*T),P=Math.abs((a-o)*S-(s-l)*T);return c||(c=[{x:t,y:n},{x:o,y:l}],d=1),c.splice(d||c.length-1,0,{x:E,y:w}),(L+P)*(L+P)>u*(T*T+S*S)&&(h=c.length,e(t,n,f,p,_,b,E,w,u,c,d),e(E,w,x,C,v,y,o,l,u,c,d+1+(c.length-h))),c},V=function(){function e(e,t,n){M||I(),this.id=e,D&&this.setData(t,n)}var t=e.prototype;return t.setData=function(e,t){t=t||{};var n,i,r,a,s,o,l,u,c,d=(e=e||"0,0,1,1").match(N),h=1,f=[],p=[],m=t.precision||1,g=m<=1;if(this.data=e,(F.test(e)||~e.indexOf("M")&&0>e.indexOf("C"))&&(d=S(e)[0]),4===(n=d.length))d.unshift(0,0),d.push(1,1),n=8;else if((n-2)%6)throw"Invalid CustomEase";for((0!=+d[0]||1!=+d[n-2])&&j(d,t.height,t.originY),this.segment=d,a=2;a<n;a+=6)i={x:+d[a-2],y:+d[a-1]},r={x:+d[a+4],y:+d[a+5]},f.push(i,r),U(i.x,i.y,+d[a],+d[a+1],+d[a+2],+d[a+3],r.x,r.y,1/(2e5*m),f,f.length-1);for(a=0,n=f.length;a<n;a++)l=f[a],u=f[a-1]||l,(l.x>u.x||u.y!==l.y&&u.x===l.x||l===u)&&l.x<=1?(u.cx=l.x-u.x,u.cy=l.y-u.y,u.n=l,u.nx=l.x,g&&a>1&&Math.abs(u.cy/u.cx-f[a-2].cy/f[a-2].cx)>2&&(g=0),u.cx<h&&(u.cx?h=u.cx:(u.cx=.001,a===n-1&&(u.x-=.001,h=Math.min(h,.001),g=0)))):(f.splice(a--,1),n--);if(s=1/(n=1/h+1|0),o=0,l=f[0],g){for(a=0;a<n;a++)c=a*s,l.nx<c&&(l=f[++o]),i=l.y+(c-l.x)/l.cx*l.cy,p[a]={x:c,cx:s,y:i,cy:0,nx:9},a&&(p[a-1].cy=i-p[a-1].y);o=f[f.length-1],p[n-1].cy=o.y-i,p[n-1].cx=o.x-p[p.length-1].x}else{for(a=0;a<n;a++)l.nx<a*s&&(l=f[++o]),p[a]=l;o<f.length-1&&(p[a-1]=f[f.length-2])}return this.ease=function(e){var t=p[e*n|0]||p[n-1];return t.nx<e&&(t=t.n),t.y+(e-t.x)/t.cx*t.cy},this.ease.custom=this,this.id&&P&&P.registerEase(this.id,this.ease),this},t.getSVGData=function(t){return e.getSVGData(this,t)},e.create=function(t,n,i){return new e(t,n,i).ease},e.register=function(e){P=e,I()},e.get=function(e){return P.parseEase(e)},e.getSVGData=function(t,n){var i,r,a,s,o,l,u,c,d,h,f=(n=n||{}).width||100,p=n.height||100,m=n.x||0,g=(n.y||0)+p,v=P.utils.toArray(n.path)[0];if(n.invert&&(p=-p,g=0),"string"==typeof t&&(t=P.parseEase(t)),t.custom&&(t=t.custom),t instanceof e)i=L(w([t.segment],f,0,0,-p,m,g));else{for(i=[m,g],s=1/(u=Math.max(5,200*(n.precision||1))),u+=2,c=5/u,d=k(m+s*f),r=((h=k(g+-(t(s)*p)))-g)/(d-m),a=2;a<u;a++)o=k(m+a*s*f),(Math.abs(((l=k(g+-(t(a*s)*p)))-h)/(o-d)-r)>c||a===u-1)&&(i.push(d,h),r=(l-h)/(o-d)),d=o,h=l;i="M"+i.join(",")}return v&&v.setAttribute("d",i),i},e}();V.version="3.13.0",V.headless=!0,A()&&P.registerPlugin(V);var B=n(43775),H=n(68563),G=n(76348),z=n(19845),q=n.n(z),W=n(75429),$=n.n(W),Z=n(83177),Y=n(15799),K=n(87048);function X(){let e=(0,i._)(["\n fragment StickyNav on FlexiblePageContentContentStickyNavLayout {\n items {\n label\n sectionId\n }\n showImmediately\n }\n "]);return X=function(){return e},e}let Q=q().bind($());function J(e){let{items:t,showImmediately:n,onActiveSectionChange:i,centerActiveAtMid:a=!1,fadeUntilActive:p=!1}=e,m=(0,o.useRef)(null),g=(0,o.useRef)(null),v=(0,o.useRef)(null),y=(0,o.useRef)([]),_=(0,o.useRef)({}),{viewWidth:b,isMobile:x,isTouchDevice:C,isReady:E}=(0,u.dg)(),{mounted:w}=(0,K.F)(),{labels:{ariaLabels:T}={}}=(0,Z.i)(),{scrollY:S}=(0,c.v)(),[L,P]=(0,o.useState)(!1),M=(0,o.useRef)({}),{headerVisible:A,headerRef:I}=(0,d.g)(),{footerRef:R}=(0,h.x)(),[k,D]=(0,o.useState)(null),[N,F]=(0,o.useState)(!1),O
244=(0,s.useRouter)();(0,f.V)(()=>{B.ZP.registerPlugin(H.i,G.L)}),(0,o.useEffect)(()=>{w&&E&&g.current&&(p&&!N?B.ZP.set(g.current,{opacity:0}):B.ZP.set(g.current,{opacity:1}))},[w,E,p,N]),(0,o.useEffect)(()=>{w&&E&&p&&!N&&g.current&&k&&B.ZP.to(g.current,{opacity:1,duration:.4,ease:"power1.out",onComplete:()=>F(!0)})},[w,E,k,p,N]);let j=(e,t)=>{e&&(M.current[t]=e)},U=function(e,t){var n,i;let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e||!M.current[e])return;null==t||t.preventDefault();let a=document.getElementById(e);if(!a)return;let{top:s}=a.getBoundingClientRect(),o=(null===(n=m.current)||void 0===n?void 0:n.offsetHeight)||0,l=(null===(i=I.current)||void 0===i?void 0:i.offsetHeight)||0,u=s<0?o+l:o,c=r?window.scrollY:S;B.ZP.to(window,{scrollTo:{y:c+s+2,offsetY:u},duration:r?.25:.75,ease:"power1.out",onComplete:()=>{let e=a.querySelector("h1, h2, h3, h4, h5, h6");e&&(e.setAttribute("tabindex","0"),e.focus())}})},z=()=>{v.current&&m.current&&t.forEach((e,t)=>{let n=document.getElementById(e.sectionId),i=document.querySelector('.section-end[data-section-id="'.concat(e.sectionId,'"]'));n&&i&&(_.current[e.sectionId]={start:n.offsetTop,end:i.offsetTop-m.current.offsetHeight})})};return(0,o.useEffect)(()=>{if(w&&E){if(L&&A){var e;B.ZP.to(g.current,{y:(null===(e=I.current)||void 0===e?void 0:e.offsetHeight)||0,duration:.3,ease:"easeOutQuad"})}else L&&!A&&B.ZP.to(g.current,{y:0,duration:.3,ease:"easeOutQuad"})}},[w,E,A,L]),(0,o.useEffect)(()=>{if(k){let e=M.current[k];if(e&&e.parentElement){let t=e.parentElement,n=t.getBoundingClientRect(),i=e.getBoundingClientRect();if(i.left<n.left||i.right>n.right){let r=e.offsetLeft-n.width/2+i.width/2;t.scrollTo({left:r,behavior:"smooth"})}}}},[k]),(0,o.useEffect)(()=>{w&&E&&L&&A&&B.ZP.delayedCall(.25,()=>{var e;B.ZP.set(g.current,{y:(null===(e=I.current)||void 0===e?void 0:e.offsetHeight)||0})})},[w,E,x,L,A]),(0,o.useEffect)(()=>{w&&E&&!L&&v.current&&S<=v.current.start&&B.ZP.to(g.current,{y:0,duration:.3,ease:"power1.out"})},[w,E,L,S]),(0,o.useEffect)(()=>{if(!v.current||!m.current)return;let e=S+(window.innerHeight||document.documentElement.clientHeight)/2,n=a?e:S,r=t.find(e=>{var t;let{start:i,end:r}=(null===(t=_.current)||void 0===t?void 0:t[e.sectionId])||{};return n>=i&&n<=r}),s=r?r.sectionId:null;s!==k&&(D(s),null==i||i(s)),t.forEach((e,t)=>{if(!_.current[e.sectionId])return;let{start:i,end:r}=_.current[e.sectionId],a=(n-i)/(r-i)*100;y.current[t]=Math.round(10*Math.max(0,Math.min(100,a)))/10})},[S,t,k,i]),(0,o.useEffect)(()=>{z()},[b]),(0,o.useEffect)(()=>{if(!w||!E||!m.current||!R)return;let e=document.querySelector('.section-end[data-section-id="'.concat(t[t.length-1].sectionId,'"]')),n=B.ZP.context(()=>{B.ZP.registerPlugin(V),V.create("easeOutQuad","0.5, 1, 0.89, 1"),v.current=H.i.create({trigger:m.current,endTrigger:e||R,start:"top top",end:"top top+=50",pinSpacing:!1,onToggle:e=>P(e.isActive),pin:!0}),setTimeout(()=>{v.current.refresh(),z()},350)},m);return()=>n.revert()},[w,E,m,R]),(0,o.useEffect)(()=>{let e=O.asPath.split("#")[1];e&&setTimeout(()=>{U(e,null,!0)},100)},[]),(0,r.jsx)("div",{className:Q(["sticky-nav",{"is-stuck":L,"is-touch":C,"show-immediately":n}]),ref:m,children:(0,r.jsx)("div",{className:Q(["sticky-nav-content"]),ref:g,children:(0,r.jsx)(l.W2,{children:(0,r.jsx)("ul",{className:Q(["sticky-nav-list"]),children:t.map(e=>(0,r.jsx)("li",{ref:t=>j(t,e.sectionId),className:Q(["sticky-nav-item"]),style:{"--scroll-progress":"".concat(y.current[t.indexOf(e)]||0,"%")},children:(0,r.jsx)("a",{className:Q(["sticky-nav-link","cta"]),href:"#".concat(e.sectionId),onClick:t=>U(e.sectionId,t),role:"link","aria-label":(0,Y.$e)(null==T?void 0:T.jumpTo,{label:e.label}),children:e.label})},e.sectionId))})})})})}J.fragments={entry:(0,a.ZP)(X())}},74076:function(e,t,n){"use strict";n.d(t,{B:function(){return i.default}});var i=n(60858)},53922:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return b}});var i=n(82729),r=n(85893),a=n(68806),s=n(19845),o=n.n(s),l=n(67294),u=n(76606),c=n(39583),d=n(79867),h=n(29366),f=n(86317),p=n(92806),m=n.n(p),g=n(15799);function v(){let e=(0,i._)(["\n fragment TextImage on FlexiblePageContentContentTextImageLayout {\n headline\n subhead\n items {\n eyebrow\n headline\n body\n cta {\n linkType\n externalLink\n label\n page {\n node {\n uri\n }\n }\n }\n secondaryCta {\n linkType\n externalLink\n label\n page {\n node {\n uri\n }\n }\n }\n image {\n ...ACFMedia\n }\n }\n }\n "]);return v=function(){return e},e}let y=o().bind(m()),_=e=>{let{eyebrow:t,headline:n,body:i,cta:a,secondaryCta:s,image:o}=e,l=(0,g.Cr)(a),c=(0,g.Cr)(s),d=!!(l||c);return(0,r.jsxs)("div",{className:y("text-image-item"),children:[(0,r.jsx)(u.Ee,{image:o,className:y("image")}),(0,r.jsxs)("div",{className:y("content"),children:[t&&(0,r.jsx)("div",{className:y("eyebrow-l","eyebrow"),children:t}),n&&(0,r.jsx)("h2",{className:y("headline","title-lc-m"),children:n}),(0,r.jsx)("div",{className:y("body","rich-text","text-m"),dangerouslySetInnerHTML:{__html:i}}),d&&(0,r.jsxs)("div",{className:y("buttons"),children:[l&&(0,r.jsx)(u.zx,{className:y("cta"),...l}),c&&(0,r.jsx)(u.zx,{className:y("secondary-cta"),...c})]})]})]})};function b(e){let{items:t,headline:n,subhead:i}=e,a=n?(0,g.Ay)(n):null,s=!!(a||i),o=(0,l.useRef)(null),{isDesktop:p}=(0,c.dg)(),m=h.LL,v=p?m.lg.triggerPercent:m.sm.triggerPercent,{triggerAmount:b}=(0,f.C)(o,v),x=(0,d.Y)(o,{amount:b,once:m.once}),C=!0;return(0,r.jsx)("section",{className:y(["text-image"]),ref:o,children:(0,r.jsxs)(u.Lz,{isInView:x,children:[s&&(0,r.jsxs)(u.W2,{className:y("header"),children:[(0,r.jsx)(u.ZF,{tag:"h1",text:a,className:y(["title-uc-l"]),isRevealEnabled:C,isInView:x}),(0,r.jsx)("p",{className:y("subhead","text-m"),children:i})]}),(0,r.jsx)(u.W2,{className:y("container"),children:t.map((e,t)=>(0,r.jsx)(_,{...e},t))})]})})}b.fragments={entry:(0,a.ZP)(v())}},36398:function(e,t,n){"use strict";n.d(t,{Q:function(){return i.default}});var i=n(53922)},77022:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return iB}});var i,r,a,s,o,l,u={};n.r(u),n.d(u,{Button:function(){return tU},CaptionLabel:function(){return tV},Chevron:function(){return tB},Day:function(){return tH},DayButton:function(){return tG},Dropdown:function(){return tz},DropdownNav:function(){return tq},Footer:function(){return tW},Month:function(){return t$},MonthCaption:function(){return tZ},MonthGrid:function(){return tY},Months:function(){return tK},MonthsDropdown:function(){return tJ},Nav:function(){return t0},NextMonthButton:function(){return t1},Option:function(){return t2},PreviousMonthButton:function(){return t3},Root:function(){return t5},Select:function(){return t4},Week:function(){return t6},WeekNumber:function(){return t9},WeekNumberHeader:function(){return ne},Weekday:function(){return t8},Weekdays:function(){return t7}
244,Weeks:function(){return nt},YearsDropdown:function(){return nn}});var c={};n.r(c),n.d(c,{formatCaption:function(){return ns},formatDay:function(){return nl},formatMonthCaption:function(){return no},formatMonthDropdown:function(){return nu},formatWeekNumber:function(){return nd},formatWeekNumberHeader:function(){return nh},formatWeekdayName:function(){return nc},formatYearCaption:function(){return np},formatYearDropdown:function(){return nf}});var d={};n.r(d),n.d(d,{labelCaption:function(){return nE},labelDay:function(){return nx},labelDayButton:function(){return nb},labelGrid:function(){return nC},labelGridcell:function(){return nw},labelMonthDropdown:function(){return nT},labelNav:function(){return nS},labelNext:function(){return nL},labelPrevious:function(){return nP},labelWeekNumber:function(){return nA},labelWeekNumberHeader:function(){return nI},labelWeekday:function(){return nM},labelYearDropdown:function(){return nR}});var h=n(82729),f=n(85893),p=n(68806),m=n(67294),g=n(19845),v=n.n(g),y=n(30775),_=n(4801),b=n(9603),x=n(30120);let C=(0,m.createContext)(void 0),E=()=>{let e=(0,m.useContext)(C);if(!e)throw Error("useTicketing must be used within a TicketingProvider");return e};var w=e=>{let{children:t,data:n={}}=e,[i,r]=(0,m.useState)(""),[a,s]=(0,m.useState)(null),[o,l]=(0,m.useState)(!1),[u,c]=(0,m.useState)(!1),[d,h]=(0,m.useState)(null),[p,g]=(0,m.useState)([]),[v,y]=(0,m.useState)(null),[_,b]=(0,m.useState)(""),[E,w]=(0,m.useState)({}),T=x.ou.now().setZone("America/New_York").toISODate(),S=(0,m.useMemo)(()=>p.length>0,[p]),L=(0,m.useMemo)(()=>a?x.ou.fromISO(a).toFormat("MMMM dd, yyyy"):null,[a,u,i]),P=(0,m.useMemo)(()=>!!_&&Object.values(E).reduce((e,t)=>e+t,0)>0,[_,E]),M=(0,m.useMemo)(()=>{let{step3Tickets:e}=n;return[...Object.keys(E)].filter(t=>null==e?void 0:e.nodes.some(e=>{var n,i;return"TicketPrice"===e.__typename&&(null===(i=e.ticketPriceFields)||void 0===i?void 0:null===(n=i.ticketing)||void 0===n?void 0:n.ticketureId)===t})).reduce((e,t)=>e+(E[t]||0),0)>=15},[E]),A=(0,m.useMemo)(()=>{let{step3Tickets:e}=n,t={};return Object.entries(E).forEach(n=>{var i,r,a;let[s,o]=n,l=null==e?void 0:e.nodes.find(e=>{var t,n;return"TicketPrice"===e.__typename&&(null===(n=e.ticketPriceFields)||void 0===n?void 0:null===(t=n.ticketing)||void 0===t?void 0:t.ticketureId)===s});if(!l){t[s]=o;return}let{ticketureId:u}=l.ticketPriceFields.ticketing,c=u,d=null===(i=l.ticketPriceFields)||void 0===i?void 0:i.groupTicketPrice;d&&"TicketPrice"===d.node.__typename&&M&&(c=(null===(a=d.node.ticketPriceFields)||void 0===a?void 0:null===(r=a.ticketing)||void 0===r?void 0:r.ticketureId)||c),t[c]=o}),t},[E]),I=(0,m.useCallback)(()=>{switch(i){case"today":return T;case"tomorrow":return x.ou.fromISO(T).plus({days:1}).toISODate();default:return a?x.ou.fromISO(a).toISODate():T}},[a,i,T]),R=(0,m.useCallback)(()=>{r(""),s(null),c(!1),g([]),y(null),b(""),w({}),h(null)},[]),k=(0,m.useCallback)(async()=>{l(!0);let e=null;try{e=I();let{data:t}=await fetch("/api/tickets/start-session/",{method:"POST",body:JSON.stringify({date:e})}).then(e=>e.json());g(t.sessions||[]),h(t.info_message||null)}catch(e){}finally{y(e),l(!1)}},[I]),D=(0,m.useCallback)(async function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];c(t),t?s(e):s(null),r(e)},[]),N=(e,t)=>{w(n=>({...n,[e]:t}))};(0,m.useEffect)(()=>{i&&k()},[i,k]);let F={dateOpt:i,otherDate:a,timesLoading:o,isFutureDate:u,dateCopy:L,today:T,canSubmit:P,sessions:p,lastSearchDate:v,selectedSession:_,selectedTickets:E,infoMessage:d,groupPricing:M,ticketsParsed:A,hasSessions:S,handleDateChange:D,fetchSessionTimes:k,setIsFutureDate:c,setSelectedSession:b,updateTickets:N,resetForm:R,getDate:I,data:n};return(0,f.jsx)(C.Provider,{value:F,children:t})};function T(){return(T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var S=function(e){return m.createElement("svg",T({viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i||(i=m.createElement("path",{d:"M3.00714 15.5C2.53394 15.5 2.13288 15.3335 1.80394 15.0005C1.47501 14.6676 1.31055 14.2685 1.31055 13.8034V3.8586C1.31055 3.39348 1.47501 2.99444 1.80394 2.66146C2.13288 2.32849 2.53394 2.16201 3.00714 2.16201H4.66065V0.50004H6.13218V2.16201H10.8757V0.50004H12.3473V2.16201H13.9907C14.4639 2.16201 14.8649 2.32849 15.1939 2.66146C15.5228 2.99444 15.6873 3.39348 15.6873 3.8586V13.8034C15.6873 14.2685 15.5228 14.6676 15.1939 15.0005C14.8649 15.3335 14.4639 15.5 13.9907 15.5H3.00714ZM3.00714 13.8034H13.9907V6.64967H3.00714V13.8034ZM3.00714 5.40319H13.9907V3.8586H3.00714V5.40319Z",fill:"currentColor"})))};function L(e,t,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(" ")}Symbol.for("constructDateFrom");let P={},M={};function A(e,t){try{let n=(P[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(t).split("GMT")[1];if(n in M)return M[n];return R(n,n.split(":"))}catch{if(e in M)return M[e];let t=e?.match(I);if(t)return R(e,t.slice(1));return NaN}}let I=/([+-]\d\d):?(\d\d)?/;function R(e,t){let n=+(t[0]||0),i=+(t[1]||0),r=+(t[2]||0)/60;return M[e]=60*n+i>0?60*n+i+r:60*n-i-r}class k extends Date{constructor(...e){super(),e.length>1&&"string"==typeof e[e.length-1]&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(A(this.timeZone,this))?this.setTime(NaN):e.length?"number"==typeof e[0]&&(1===e.length||2===e.length&&"number"!=typeof e[1])?this.setTime(e[0]):"string"==typeof e[0]?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),O(this,NaN),N(this)):this.setTime(Date.now())}static tz(e,...t){return t.length?new k(...t,e):new k(Date.now(),e)}withTimeZone(e){return new k(+this,e)}getTimezoneOffset(){let e=-A(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),N(this),+this}[Symbol.for("constructDateFrom")](e){return new k(+new Date(e),this.timeZone)}}let D=/^(get|set)(?!UTC)/;function N(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-(60*A(e.timeZone,e))))}function F(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),O(e)}function O(e){let t=A(e.timeZone,e),n=t>0?Math.floor(t):Math.ceil(t),i=new Date(+e);i.setUTCHours(i.getUTCHours()-1);let r=-new Date(+e).getTimezoneOffset(),a=r- -new Date(+i).getTimezoneOffset(),s=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();a&&s&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+a);let o=r-n;o&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+o);let l=new Date(+e);l.setUTCSeconds(0);let u=r>0?l.getSeconds():(l.getSeconds()-60)%60,c=Math.round(-(60*A(e.timeZone,e)))%60;(c||u)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+c),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+c+u));let d=A(e.timeZone,e),h=d>0?Math.floor(d):Math.ceil(d),f=-new Date(+e).getTimezoneOffset()-h-o;if(h!==n&&f){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+f);let t=A(e.timeZone,e),n=h-(t>0?Math.floor(t):Math.ceil(t));n&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+n),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+n))}}
244Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!D.test(e))return;let t=e.replace(D,"$1UTC");k.prototype[t]&&(e.startsWith("get")?k.prototype[e]=function(){return this.internal[t]()}:(k.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),F(this),+this},k.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),N(this),+this}))});class j extends k{static tz(e,...t){return t.length?new j(...t,e):new j(Date.now(),e)}toISOString(){let[e,t,n]=this.tzComponents(),i=`${e}${t}:${n}`;return this.internal.toISOString().slice(0,-1)+i}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){let[e,t,n,i]=this.internal.toUTCString().split(" ");return`${e?.slice(0,-1)} ${n} ${t} ${i}`}toTimeString(){let e=this.internal.toUTCString().split(" ")[4],[t,n,i]=this.tzComponents();return`${e} GMT${t}${n}${i} (${L(this.timeZone,this)})`}toLocaleString(e,t){return Date.prototype.toLocaleString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleDateString(e,t){return Date.prototype.toLocaleDateString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleTimeString(e,t){return Date.prototype.toLocaleTimeString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}tzComponents(){let e=this.getTimezoneOffset();return[e>0?"-":"+",String(Math.floor(Math.abs(e)/60)).padStart(2,"0"),String(Math.abs(e)%60).padStart(2,"0")]}withTimeZone(e){return new j(+this,e)}[Symbol.for("constructDateFrom")](e){return new j(+new Date(e),this.timeZone)}}let U={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},V=(e,t,n)=>{let i;let r=U[e];return(i="string"==typeof r?r:1===t?r.one:r.other.replace("{{count}}",t.toString()),null==n?void 0:n.addSuffix)?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};function B(e){return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}let H={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},G={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},z={date:B({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:B({formats:H,defaultWidth:"full"}),dateTime:B({formats:G,defaultWidth:"full"})},q={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},W=(e,t,n,i)=>q[e];function $(e){return(t,n)=>{let i;if("formatting"===((null==n?void 0:n.context)?String(n.context):"standalone")&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,r=(null==n?void 0:n.width)?String(n.width):t;i=e.formattingValues[r]||e.formattingValues[t]}else{let t=e.defaultWidth,r=(null==n?void 0:n.width)?String(n.width):e.defaultWidth;i=e.values[r]||e.values[t]}return i[e.argumentCallback?e.argumentCallback(t):t]}}let Z={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Y={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},K={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
244ay","Saturday"]},X={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Q={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},J={ordinalNumber:(e,t)=>{let n=Number(e),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:$({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:$({values:Z,defaultWidth:"wide",argumentCallback:e=>e-1}),month:$({values:Y,defaultWidth:"wide"}),day:$({values:K,defaultWidth:"wide"}),dayPeriod:$({values:X,defaultWidth:"wide",formattingValues:Q,defaultFormattingWidth:"wide"})};function ee(e){return function(t){let n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],s=t.match(a);if(!s)return null;let o=s[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?en(l,e=>e.test(o)):et(l,e=>e.test(o));return n=e.valueCallback?e.valueCallback(u):u,{value:n=i.valueCallback?i.valueCallback(n):n,rest:t.slice(o.length)}}}function et(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function en(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}let ei={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},er={any:[/^b/i,/^(a|c)/i]},ea={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},es={any:[/1/i,/2/i,/3/i,/4/i]},eo={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},el={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},eu={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},ec={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},ed={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},eh={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},ef={code:"en-US",formatDistance:V,formatLong:z,formatRelative:W,localize:J,match:{ordinalNumber:function(e){return function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.match(e.matchPattern);if(!i)return null;let r=i[0],a=t.match(e.parsePattern);if(!a)return null;let s=e.valueCallback?e.valueCallback(a[0]):a[0];return{value:s=n.valueCallback?n.valueCallback(s):s,rest:t.slice(r.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:ee({matchPatterns:ei,defaultMatchWidth:"wide",parsePatterns:er,defaultParseWidth:"any"}),quarter:ee({matchPatterns:ea,defaultMatchWidth:"wide",parsePatterns:es,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ee({matchPatterns:eo,defaultMatchWidth:"wide",parsePatterns:el,defaultParseWidth:"any"}),day:ee({matchPatterns:eu,defaultMatchWidth:"wide",parsePatterns:ec,defaultParseWidth:"any"}),dayPeriod:ee({matchPatterns:ed,defaultMatchWidth:"any",parsePatterns:eh,defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},ep=6048e5,em=864e5,eg=Symbol.for("constructDateFrom");function ev(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&eg in e?e[eg](t):e instanceof Date?new e.constructor(t):new Date(t)}function ey(e,t){return ev(t||e,e)}function e_(e,t,n){let i=ey(e,null==n?void 0:n.in);return isNaN(t)?ev((null==n?void 0:n.in)||e,NaN):(t&&i.setDate(i.getDate()+t),i)}function eb(e,t,n){let i=ey(e,null==n?void 0:n.in);if(isNaN(t))return ev((null==n?void 0:n.in)||e,NaN);if(!t)return i;let r=i.getDate(),a=ev((null==n?void 0:n.in)||e,i.getTime());return(a.setMonth(i.getMonth()+t+1,0),r>=a.getDate())?a:(i.setFullYear(a.getFullYear(),a.getMonth(),r),i)}function ex(e,t,n){return e_(e,7*t,n)}function eC(e,t,n){return eb(e,12*t,n)}function eE(e){let t=ey(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function ew(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];let r=ev.bind(null,e||n.find(e=>"object"==typeof e));return n.map(r)}function eT(e,t){let n=ey(e,null==t?void 0:t.in);return n.setHours(0,0,0,0),n}
244function eS(e,t,n){let[i,r]=ew(null==n?void 0:n.in,e,t),a=eT(i),s=eT(r);return Math.round((+a-eE(a)-(+s-eE(s)))/em)}function eL(e,t,n){let[i,r]=ew(null==n?void 0:n.in,e,t);return 12*(i.getFullYear()-r.getFullYear())+(i.getMonth()-r.getMonth())}function eP(e,t){let[n,i]=ew(e,t.start,t.end);return{start:n,end:i}}function eM(e,t){var n;let{start:i,end:r}=eP(null==t?void 0:t.in,e),a=+i>+r,s=a?+i:+r,o=a?r:i;o.setHours(0,0,0,0),o.setDate(1);let l=null!==(n=null==t?void 0:t.step)&&void 0!==n?n:1;if(!l)return[];l<0&&(l=-l,a=!a);let u=[];for(;+o<=s;)u.push(ev(i,o)),o.setMonth(o.getMonth()+l);return a?u.reverse():u}let eA={};function eI(){return eA}function eR(e,t){var n,i,r,a,s,o,l,u;let c=eI(),d=null!==(u=null!==(l=null!==(o=null!==(s=null==t?void 0:t.weekStartsOn)&&void 0!==s?s:null==t?void 0:null===(i=t.locale)||void 0===i?void 0:null===(n=i.options)||void 0===n?void 0:n.weekStartsOn)&&void 0!==o?o:c.weekStartsOn)&&void 0!==l?l:null===(a=c.locale)||void 0===a?void 0:null===(r=a.options)||void 0===r?void 0:r.weekStartsOn)&&void 0!==u?u:0,h=ey(e,null==t?void 0:t.in),f=h.getDay(),p=(f<d?-7:0)+6-(f-d);return h.setDate(h.getDate()+p),h.setHours(23,59,59,999),h}function ek(e,t){return eR(e,{...t,weekStartsOn:1})}function eD(e,t){let n=ey(e,null==t?void 0:t.in),i=n.getMonth();return n.setFullYear(n.getFullYear(),i+1,0),n.setHours(23,59,59,999),n}function eN(e,t){let n=ey(e,null==t?void 0:t.in),i=n.getFullYear();return n.setFullYear(i+1,0,0),n.setHours(23,59,59,999),n}function eF(e,t){let n=ey(e,null==t?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function eO(e,t){let n=ey(e,null==t?void 0:t.in);return eS(n,eF(n))+1}function ej(e,t){var n,i,r,a,s,o,l,u;let c=eI(),d=null!==(u=null!==(l=null!==(o=null!==(s=null==t?void 0:t.weekStartsOn)&&void 0!==s?s:null==t?void 0:null===(i=t.locale)||void 0===i?void 0:null===(n=i.options)||void 0===n?void 0:n.weekStartsOn)&&void 0!==o?o:c.weekStartsOn)&&void 0!==l?l:null===(a=c.locale)||void 0===a?void 0:null===(r=a.options)||void 0===r?void 0:r.weekStartsOn)&&void 0!==u?u:0,h=ey(e,null==t?void 0:t.in),f=h.getDay(),p=(f<d?7:0)+f-d;return h.setDate(h.getDate()-p),h.setHours(0,0,0,0),h}function eU(e,t){return ej(e,{...t,weekStartsOn:1})}function eV(e,t){let n=ey(e,null==t?void 0:t.in),i=n.getFullYear(),r=ev(n,0);r.setFullYear(i+1,0,4),r.setHours(0,0,0,0);let a=eU(r),s=ev(n,0);s.setFullYear(i,0,4),s.setHours(0,0,0,0);let o=eU(s);return n.getTime()>=a.getTime()?i+1:n.getTime()>=o.getTime()?i:i-1}function eB(e,t){let n=eV(e,t),i=ev((null==t?void 0:t.in)||e,0);return i.setFullYear(n,0,4),i.setHours(0,0,0,0),eU(i)}function eH(e,t){let n=ey(e,null==t?void 0:t.in);return Math.round((+eU(n)-+eB(n))/ep)+1}function eG(e,t){var n,i,r,a,s,o,l,u;let c=ey(e,null==t?void 0:t.in),d=c.getFullYear(),h=eI(),f=null!==(u=null!==(l=null!==(o=null!==(s=null==t?void 0:t.firstWeekContainsDate)&&void 0!==s?s:null==t?void 0:null===(i=t.locale)||void 0===i?void 0:null===(n=i.options)||void 0===n?void 0:n.firstWeekContainsDate)&&void 0!==o?o:h.firstWeekContainsDate)&&void 0!==l?l:null===(a=h.locale)||void 0===a?void 0:null===(r=a.options)||void 0===r?void 0:r.firstWeekContainsDate)&&void 0!==u?u:1,p=ev((null==t?void 0:t.in)||e,0);p.setFullYear(d+1,0,f),p.setHours(0,0,0,0);let m=ej(p,t),g=ev((null==t?void 0:t.in)||e,0);g.setFullYear(d,0,f),g.setHours(0,0,0,0);let v=ej(g,t);return+c>=+m?d+1:+c>=+v?d:d-1}function ez(e,t){var n,i,r,a,s,o,l,u;let c=eI(),d=null!==(u=null!==(l=null!==(o=null!==(s=null==t?void 0:t.firstWeekContainsDate)&&void 0!==s?s:null==t?void 0:null===(i=t.locale)||void 0===i?void 0:null===(n=i.options)||void 0===n?void 0:n.firstWeekContainsDate)&&void 0!==o?o:c.firstWeekContainsDate)&&void 0!==l?l:null===(a=c.locale)||void 0===a?void 0:null===(r=a.options)||void 0===r?void 0:r.firstWeekContainsDate)&&void 0!==u?u:1,h=eG(e,t),f=ev((null==t?void 0:t.in)||e,0);return f.setFullYear(h,0,d),f.setHours(0,0,0,0),ej(f,t)}function eq(e,t){let n=ey(e,null==t?void 0:t.in);return Math.round((+ej(n,t)-+ez(n,t))/ep)+1}function eW(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}let e$={y(e,t){let n=e.getFullYear(),i=n>0?n:1-n;return eW("yy"===t?i%100:i,t.length)},M(e,t){let n=e.getMonth();return"M"===t?String(n+1):eW(n+1,2)},d:(e,t)=>eW(e.getDate(),t.length),a(e,t){let n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];
244default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>eW(e.getHours()%12||12,t.length),H:(e,t)=>eW(e.getHours(),t.length),m:(e,t)=>eW(e.getMinutes(),t.length),s:(e,t)=>eW(e.getSeconds(),t.length),S(e,t){let n=t.length;return eW(Math.trunc(e.getMilliseconds()*Math.pow(10,n-3)),t.length)}},eZ={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},eY={G:function(e,t,n){let i=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});default:return n.era(i,{width:"wide"})}},y:function(e,t,n){if("yo"===t){let t=e.getFullYear(),i=t>0?t:1-t;return n.ordinalNumber(i,{unit:"year"})}return e$.y(e,t)},Y:function(e,t,n,i){let r=eG(e,i),a=r>0?r:1-r;return"YY"===t?eW(a%100,2):"Yo"===t?n.ordinalNumber(a,{unit:"year"}):eW(a,t.length)},R:function(e,t){return eW(eV(e),t.length)},u:function(e,t){return eW(e.getFullYear(),t.length)},Q:function(e,t,n){let i=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return eW(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,n){let i=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return eW(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,n){let i=e.getMonth();switch(t){case"M":case"MM":return e$.M(e,t);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(e,t,n){let i=e.getMonth();switch(t){case"L":return String(i+1);case"LL":return eW(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,n,i){let r=eq(e,i);return"wo"===t?n.ordinalNumber(r,{unit:"week"}):eW(r,t.length)},I:function(e,t,n){let i=eH(e);return"Io"===t?n.ordinalNumber(i,{unit:"week"}):eW(i,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):e$.d(e,t)},D:function(e,t,n){let i=eO(e);return"Do"===t?n.ordinalNumber(i,{unit:"dayOfYear"}):eW(i,t.length)},E:function(e,t,n){let i=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(e,t,n,i){let r=e.getDay(),a=(r-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return eW(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,n,i){let r=e.getDay(),a=(r-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return eW(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){let i=e.getDay(),r=0===i?7:i;switch(t){case"i":return String(r);case"ii":return eW(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(e,t,n){let i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){let i;let r=e.getHours();switch(i=12===r?eZ.noon:0===r?eZ.midnight:r/12>
244=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){let i;let r=e.getHours();switch(i=r>=17?eZ.evening:r>=12?eZ.afternoon:r>=4?eZ.morning:eZ.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return e$.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):e$.H(e,t)},K:function(e,t,n){let i=e.getHours()%12;return"Ko"===t?n.ordinalNumber(i,{unit:"hour"}):eW(i,t.length)},k:function(e,t,n){let i=e.getHours();return(0===i&&(i=24),"ko"===t)?n.ordinalNumber(i,{unit:"hour"}):eW(i,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):e$.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):e$.s(e,t)},S:function(e,t){return e$.S(e,t)},X:function(e,t,n){let i=e.getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return eX(i);case"XXXX":case"XX":return eQ(i);default:return eQ(i,":")}},x:function(e,t,n){let i=e.getTimezoneOffset();switch(t){case"x":return eX(i);case"xxxx":case"xx":return eQ(i);default:return eQ(i,":")}},O:function(e,t,n){let i=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+eK(i,":");default:return"GMT"+eQ(i,":")}},z:function(e,t,n){let i=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+eK(i,":");default:return"GMT"+eQ(i,":")}},t:function(e,t,n){return eW(Math.trunc(+e/1e3),t.length)},T:function(e,t,n){return eW(+e,t.length)}};function eK(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e>0?"-":"+",i=Math.abs(e),r=Math.trunc(i/60),a=i%60;return 0===a?n+String(r):n+String(r)+t+eW(a,2)}function eX(e,t){return e%60==0?(e>0?"-":"+")+eW(Math.abs(e)/60,2):eQ(e,t)}function eQ(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e>0?"-":"+",i=Math.abs(e);return n+eW(Math.trunc(i/60),2)+t+eW(i%60,2)}let eJ=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},e0=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},e1=(e,t)=>{let n;let i=e.match(/(P+)(p+)?/)||[],r=i[1],a=i[2];if(!a)return eJ(e,t);switch(r){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",eJ(r,t)).replace("{{time}}",e0(a,t))},e2={p:e0,P:e1},e3=/^D+$/,e5=/^Y+$/,e4=["D","DD","YY","YYYY"];function e6(e){return e3.test(e)}function e8(e){return e5.test(e)}function e7(e,t,n){let i=e9(e,t,n);if(e4.includes(e))throw RangeError(i)}function e9(e,t,n){let i="Y"===e[0]?"years":"days of the month";return"Use `".concat(e.toLowerCase(),"` instead of `").concat(e,"` (in `").concat(t,"`) for formatting ").concat(i," to the input `").
244concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")}function te(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function tt(e){return!(!te(e)&&"number"!=typeof e||isNaN(+ey(e)))}let tn=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ti=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,tr=/^'([^]*?)'?$/,ta=/''/g,ts=/[a-zA-Z]/;function to(e,t,n){var i,r,a,s,o,l,u,c,d,h,f,p,m,g,v,y,_,b;let x=eI(),C=null!==(h=null!==(d=null==n?void 0:n.locale)&&void 0!==d?d:x.locale)&&void 0!==h?h:ef,E=null!==(g=null!==(m=null!==(p=null!==(f=null==n?void 0:n.firstWeekContainsDate)&&void 0!==f?f:null==n?void 0:null===(r=n.locale)||void 0===r?void 0:null===(i=r.options)||void 0===i?void 0:i.firstWeekContainsDate)&&void 0!==p?p:x.firstWeekContainsDate)&&void 0!==m?m:null===(s=x.locale)||void 0===s?void 0:null===(a=s.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==g?g:1,w=null!==(b=null!==(_=null!==(y=null!==(v=null==n?void 0:n.weekStartsOn)&&void 0!==v?v:null==n?void 0:null===(l=n.locale)||void 0===l?void 0:null===(o=l.options)||void 0===o?void 0:o.weekStartsOn)&&void 0!==y?y:x.weekStartsOn)&&void 0!==_?_:null===(c=x.locale)||void 0===c?void 0:null===(u=c.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==b?b:0,T=ey(e,null==n?void 0:n.in);if(!tt(T))throw RangeError("Invalid time value");let S=t.match(ti).map(e=>{let t=e[0];return"p"===t||"P"===t?(0,e2[t])(e,C.formatLong):e}).join("").match(tn).map(e=>{if("''"===e)return{isToken:!1,value:"'"};let t=e[0];if("'"===t)return{isToken:!1,value:tl(e)};if(eY[t])return{isToken:!0,value:e};if(t.match(ts))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});C.localize.preprocessor&&(S=C.localize.preprocessor(T,S));let L={firstWeekContainsDate:E,weekStartsOn:w,locale:C};return S.map(i=>{if(!i.isToken)return i.value;let r=i.value;return(!(null==n?void 0:n.useAdditionalWeekYearTokens)&&e8(r)||!(null==n?void 0:n.useAdditionalDayOfYearTokens)&&e6(r))&&e7(r,t,String(e)),(0,eY[r[0]])(T,r,C.localize,L)}).join("")}function tl(e){let t=e.match(tr);return t?t[1].replace(ta,"'"):e}function tu(e,t){return ey(e,null==t?void 0:t.in).getMonth()}function tc(e,t){return ey(e,null==t?void 0:t.in).getFullYear()}function td(e,t){return+ey(e)>+ey(t)}function th(e,t){return+ey(e)<+ey(t)}function tf(e,t,n){let[i,r]=ew(null==n?void 0:n.in,e,t);return+eT(i)==+eT(r)}function tp(e,t,n){let[i,r]=ew(null==n?void 0:n.in,e,t);return i.getFullYear()===r.getFullYear()&&i.getMonth()===r.getMonth()}function tm(e,t,n){let[i,r]=ew(null==n?void 0:n.in,e,t);return i.getFullYear()===r.getFullYear()}function tg(e,t){let n;let i=null==t?void 0:t.in;return e.forEach(e=>{i||"object"!=typeof e||(i=ev.bind(null,e));let t=ey(e,i);(!n||n<t||isNaN(+t))&&(n=t)}),ev(i,n||NaN)}function tv(e,t){let n;let i=null==t?void 0:t.in;return e.forEach(e=>{i||"object"!=typeof e||(i=ev.bind(null,e));let t=ey(e,i);(!n||n>t||isNaN(+t))&&(n=t)}),ev(i,n||NaN)}function ty(e,t){let n=ey(e,null==t?void 0:t.in),i=n.getFullYear(),r=n.getMonth(),a=ev(n,0);return a.setFullYear(i,r+1,0),a.setHours(0,0,0,0),a.getDate()}function t_(e,t,n){let i=ey(e,null==n?void 0:n.in),r=i.getFullYear(),a=i.getDate(),s=ev((null==n?void 0:n.in)||e,0);s.setFullYear(r,t,15),s.setHours(0,0,0,0);let o=ty(s);return i.setMonth(t,Math.min(a,o)),i}function tb(e,t,n){let i=ey(e,null==n?void 0:n.in);return isNaN(+i)?ev((null==n?void 0:n.in)||e,NaN):(i.setFullYear(t),i)}function tx(e,t){let n=ey(e,null==t?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}let tC=5,tE=4;function tw(e,t){let n=t.startOfMonth(e),i=n.getDay()>0?n.getDay():7,r=t.addDays(e,-i+1),a=t.addDays(r,7*tC-1);return t.getMonth(e)===t.getMonth(a)?tC:tE}function tT(e,t){let n=t.startOfMonth(e),i=n.getDay();return 1===i?n:0===i?t.addDays(n,-6):t.addDays(n,-1*(i-1))}function tS(e,t){let n=tT(e,t),i=tw(e,t);return t.addDays(n,7*i-1)}class tL{constructor(e,t){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?j.tz(this.options.timeZone):new this.Date,this.newDate=(e,t,n
244)=>this.overrides?.newDate?this.overrides.newDate(e,t,n):this.options.timeZone?new j(e,t,n,this.options.timeZone):new Date(e,t,n),this.addDays=(e,t)=>this.overrides?.addDays?this.overrides.addDays(e,t):e_(e,t),this.addMonths=(e,t)=>this.overrides?.addMonths?this.overrides.addMonths(e,t):eb(e,t),this.addWeeks=(e,t)=>this.overrides?.addWeeks?this.overrides.addWeeks(e,t):ex(e,t),this.addYears=(e,t)=>this.overrides?.addYears?this.overrides.addYears(e,t):eC(e,t),this.differenceInCalendarDays=(e,t)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(e,t):eS(e,t),this.differenceInCalendarMonths=(e,t)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(e,t):eL(e,t),this.eachMonthOfInterval=e=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(e):eM(e),this.endOfBroadcastWeek=e=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(e):tS(e,this),this.endOfISOWeek=e=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(e):ek(e),this.endOfMonth=e=>this.overrides?.endOfMonth?this.overrides.endOfMonth(e):eD(e),this.endOfWeek=(e,t)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(e,t):eR(e,this.options),this.endOfYear=e=>this.overrides?.endOfYear?this.overrides.endOfYear(e):eN(e),this.format=(e,t,n)=>{let i=this.overrides?.format?this.overrides.format(e,t,this.options):to(e,t,this.options);return this.options.numerals&&"latn"!==this.options.numerals?this.replaceDigits(i):i},this.getISOWeek=e=>this.overrides?.getISOWeek?this.overrides.getISOWeek(e):eH(e),this.getMonth=(e,t)=>this.overrides?.getMonth?this.overrides.getMonth(e,this.options):tu(e,this.options),this.getYear=(e,t)=>this.overrides?.getYear?this.overrides.getYear(e,this.options):tc(e,this.options),this.getWeek=(e,t)=>this.overrides?.getWeek?this.overrides.getWeek(e,this.options):eq(e,this.options),this.isAfter=(e,t)=>this.overrides?.isAfter?this.overrides.isAfter(e,t):td(e,t),this.isBefore=(e,t)=>this.overrides?.isBefore?this.overrides.isBefore(e,t):th(e,t),this.isDate=e=>this.overrides?.isDate?this.overrides.isDate(e):te(e),this.isSameDay=(e,t)=>this.overrides?.isSameDay?this.overrides.isSameDay(e,t):tf(e,t),this.isSameMonth=(e,t)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(e,t):tp(e,t),this.isSameYear=(e,t)=>this.overrides?.isSameYear?this.overrides.isSameYear(e,t):tm(e,t),this.max=e=>this.overrides?.max?this.overrides.max(e):tg(e),this.min=e=>this.overrides?.min?this.overrides.min(e):tv(e),this.setMonth=(e,t)=>this.overrides?.setMonth?this.overrides.setMonth(e,t):t_(e,t),this.setYear=(e,t)=>this.overrides?.setYear?this.overrides.setYear(e,t):tb(e,t),this.startOfBroadcastWeek=(e,t)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(e,this):tT(e,this),this.startOfDay=e=>this.overrides?.startOfDay?this.overrides.startOfDay(e):eT(e),this.startOfISOWeek=e=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(e):eU(e),this.startOfMonth=e=>this.overrides?.startOfMonth?this.overrides.startOfMonth(e):tx(e),this.startOfWeek=(e,t)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(e,this.options):ej(e,this.options),this.startOfYear=e=>this.overrides?.startOfYear?this.overrides.startOfYear(e):eF(e),this.options={locale:ef,...e},this.overrides=t}getDigitMap(){let{numerals:e="latn"}=this.options,t=new Intl.NumberFormat("en-US",{numberingSystem:e}),n={};for(let e=0;e<10;e++)n[e.toString()]=t.format(e);return n}replaceDigits(e){let t=this.getDigitMap();return e.replace(/\d/g,e=>t[e]||e)}formatNumber(e){return this.replaceDigits(e.toString())}getMonthYearOrder(){let e=this.options.locale?.code;return e&&tL.yearFirstLocales.has(e)?"year-first":"month-first"}formatMonthYear(e){let{locale:t,timeZone:n,numerals:i}=this.options,r=t?.code;if(r&&tL.yearFirstLocales.has(r))try{return new Intl.DateTimeFormat(r,{month:"long",year:"numeric",timeZone:n,numberingSystem:i}).format(e)}catch{}let a="year-first"===this.getMonthYearOrder()?"y LLLL":"LLLL y";return this.format(e,a)}}tL.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);let tP=new tL;function tM(e,t,n=!1,i=tP){let{from:r,to:a}=e,{differenceInCalendarDays:s,isSameDay:o}=i;return r&&a?(0>s(a,r)&&([r,a]=[a,r]),s(t,r)>=(n?1:0)&&s(a,t)>=(n?1:0)):!n&&a?o(a,t):!n&&!!r&&o(r,t)}function tA(e){return!!(e&&"object"==typeof e&&"before"in e&&"after"in e)}function tI(e){return!!(e&&"object"==typeof e&&"from"in e)}function tR(e){return!!(e&&"object"==typeof e&&"after"in e)}function tk(e){return!!(e&&"object"==typeof e&&"before"in e)}function tD(e){return!!(e&&"object"==typeof e&&"dayOfWeek"in e)}function tN(e,t){return Array.isArray(e)&&e.every(t.isDate)}function tF(e,t,n=tP){let i=Array.isArray(t)?t:[t],{isSameDay:r,differenceInCalendarDays:a,isAfter:s}=n;return i.some(t=>{if("boolean"==typeof t)return t;if(n.isDate(t))return r(e,t);
244if(tN(t,n))return t.includes(e);if(tI(t))return tM(t,e,!1,n);if(tD(t))return Array.isArray(t.dayOfWeek)?t.dayOfWeek.includes(e.getDay()):t.dayOfWeek===e.getDay();if(tA(t)){let n=a(t.before,e),i=a(t.after,e),r=n>0,o=i<0;return s(t.before,t.after)?o&&r:r||o}return tR(t)?a(e,t.after)>0:tk(t)?a(t.before,e)>0:"function"==typeof t&&t(e)})}function tO(e,t,n,i,r){let{disabled:s,hidden:o,modifiers:l,showOutsideDays:u,broadcastCalendar:c,today:d}=t,{isSameDay:h,isSameMonth:f,startOfMonth:p,isBefore:m,endOfMonth:g,isAfter:v}=r,y=n&&p(n),_=i&&g(i),b={[a.focused]:[],[a.outside]:[],[a.disabled]:[],[a.hidden]:[],[a.today]:[]},x={};for(let t of e){let{date:e,displayMonth:n}=t,i=!!(n&&!f(e,n)),a=!!(y&&m(e,y)),p=!!(_&&v(e,_)),g=!!(s&&tF(e,s,r)),C=!!(o&&tF(e,o,r))||a||p||!c&&!u&&i||c&&!1===u&&i,E=h(e,d??r.today());i&&b.outside.push(t),g&&b.disabled.push(t),C&&b.hidden.push(t),E&&b.today.push(t),l&&Object.keys(l).forEach(n=>{let i=l?.[n];i&&tF(e,i,r)&&(x[n]?x[n].push(t):x[n]=[t])})}return e=>{let t={[a.focused]:!1,[a.disabled]:!1,[a.hidden]:!1,[a.outside]:!1,[a.today]:!1},n={};for(let n in b){let i=b[n];t[n]=i.some(t=>t===e)}for(let t in x)n[t]=x[t].some(t=>t===e);return{...t,...n}}}function tj(e,t,n={}){return Object.entries(e).filter(([,e])=>!0===e).reduce((e,[i])=>(n[i]?e.push(n[i]):t[a[i]]?e.push(t[a[i]]):t[s[i]]&&e.push(t[s[i]]),e),[t[r.Day]])}function tU(e){return m.createElement("button",{...e})}function tV(e){return m.createElement("span",{...e})}function tB(e){let{size:t=24,orientation:n="left",className:i}=e;return m.createElement("svg",{className:i,width:t,height:t,viewBox:"0 0 24 24"},"up"===n&&m.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),"down"===n&&m.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),"left"===n&&m.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),"right"===n&&m.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function tH(e){let{day:t,modifiers:n,...i}=e;return m.createElement("td",{...i})}function tG(e){let{day:t,modifiers:n,...i}=e,r=m.useRef(null);return m.useEffect(()=>{n.focused&&r.current?.focus()},[n.focused]),m.createElement("button",{ref:r,...i})}function tz(e){let{options:t,className:n,components:i,classNames:a,...s}=e,o=[a[r.Dropdown],n].join(" "),l=t?.find(({value:e})=>e===s.value);return m.createElement("span",{"data-disabled":s.disabled,className:a[r.DropdownRoot]},m.createElement(i.Select,{className:o,...s},t?.map(({value:e,label:t,disabled:n})=>m.createElement(i.Option,{key:e,value:e,disabled:n},t))),m.createElement("span",{className:a[r.CaptionLabel],"aria-hidden":!0},l?.label,m.createElement(i.Chevron,{orientation:"down",size:18,className:a[r.Chevron]})))}function tq(e){return m.createElement("div",{...e})}function tW(e){return m.createElement("div",{...e})}function t$(e){let{calendarMonth:t,displayIndex:n,...i}=e;return m.createElement("div",{...i},e.children)}function tZ(e){let{calendarMonth:t,displayIndex:n,...i}=e;return m.createElement("div",{...i})}function tY(e){return m.createElement("table",{...e})}function tK(e){return m.createElement("div",{...e})}!function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"}(r||(r={})),function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"}(a||(a={})),function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"}(s||(s={})),function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"}(o||(o={}));let tX=(0,m.createContext)(void 0);function tQ(){let e=(0,m.useContext)(tX);if(void 0===e)throw Error("useDayPicker() must be used within a custom component.");return e}
244function tJ(e){let{components:t}=tQ();return m.createElement(t.Dropdown,{...e})}function t0(e){let{onPreviousClick:t,onNextClick:n,previousMonth:i,nextMonth:a,...s}=e,{components:o,classNames:l,labels:{labelPrevious:u,labelNext:c}}=tQ(),d=(0,m.useCallback)(e=>{a&&n?.(e)},[a,n]),h=(0,m.useCallback)(e=>{i&&t?.(e)},[i,t]);return m.createElement("nav",{...s},m.createElement(o.PreviousMonthButton,{type:"button",className:l[r.PreviousMonthButton],tabIndex:i?void 0:-1,"aria-disabled":!i||void 0,"aria-label":u(i),onClick:h},m.createElement(o.Chevron,{disabled:!i||void 0,className:l[r.Chevron],orientation:"left"})),m.createElement(o.NextMonthButton,{type:"button",className:l[r.NextMonthButton],tabIndex:a?void 0:-1,"aria-disabled":!a||void 0,"aria-label":c(a),onClick:d},m.createElement(o.Chevron,{disabled:!a||void 0,orientation:"right",className:l[r.Chevron]})))}function t1(e){let{components:t}=tQ();return m.createElement(t.Button,{...e})}function t2(e){return m.createElement("option",{...e})}function t3(e){let{components:t}=tQ();return m.createElement(t.Button,{...e})}function t5(e){let{rootRef:t,...n}=e;return m.createElement("div",{...n,ref:t})}function t4(e){return m.createElement("select",{...e})}function t6(e){let{week:t,...n}=e;return m.createElement("tr",{...n})}function t8(e){return m.createElement("th",{...e})}function t7(e){return m.createElement("thead",{"aria-hidden":!0},m.createElement("tr",{...e}))}function t9(e){let{week:t,...n}=e;return m.createElement("th",{...n})}function ne(e){return m.createElement("th",{...e})}function nt(e){return m.createElement("tbody",{...e})}function nn(e){let{components:t}=tQ();return m.createElement(t.Dropdown,{...e})}function ni(e){return{...u,...e}}function nr(e){let t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([e,n])=>{e.startsWith("data-")&&(t[e]=n)}),t}function na(){let e={};for(let t in r)e[r[t]]=`rdp-${r[t]}`;for(let t in a)e[a[t]]=`rdp-${a[t]}`;for(let t in s)e[s[t]]=`rdp-${s[t]}`;for(let t in o)e[o[t]]=`rdp-${o[t]}`;return e}function ns(e,t,n){return(n??new tL(t)).formatMonthYear(e)}let no=ns;function nl(e,t,n){return(n??new tL(t)).format(e,"d")}function nu(e,t=tP){return t.format(e,"LLLL")}function nc(e,t,n){return(n??new tL(t)).format(e,"cccccc")}function nd(e,t=tP){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function nh(){return""}function nf(e,t=tP){return t.format(e,"yyyy")}let np=nf;function nm(e){return e?.formatMonthCaption&&!e.formatCaption&&(e.formatCaption=e.formatMonthCaption),e?.formatYearCaption&&!e.formatYearDropdown&&(e.formatYearDropdown=e.formatYearCaption),{...c,...e}}function ng(e,t,n,i,r){let{startOfMonth:a,startOfYear:s,endOfYear:o,eachMonthOfInterval:l,getMonth:u}=r;return l({start:s(e),end:o(e)}).map(e=>{let s=i.formatMonthDropdown(e,r);return{value:u(e),label:s,disabled:t&&e<a(t)||n&&e>a(n)||!1}})}function nv(e,t={},n={}){let i={...t?.[r.Day]};return Object.entries(e).filter(([,e])=>!0===e).forEach(([e])=>{i={...i,...n?.[e]}}),i}function ny(e,t,n){let i=e.today(),r=n?e.startOfBroadcastWeek(i,e):t?e.startOfISOWeek(i):e.startOfWeek(i),a=[];for(let t=0;t<7;t++){let n=e.addDays(r,t);a.push(n)}return a}function n_(e,t,n,i,r=!1){if(!e||!t)return;let{startOfYear:a,endOfYear:s,addYears:o,getYear:l,isBefore:u,isSameYear:c}=i,d=a(e),h=s(t),f=[],p=d;for(;u(p,h)||c(p,h);)f.push(p),p=o(p,1);return r&&f.reverse(),f.map(e=>{let t=n.formatYearDropdown(e,i);return{value:l(e),label:t,disabled:!1}})}function nb(e,t,n,i){let r=(i??new tL(n)).format(e,"PPPP");return t.today&&(r=`Today, ${r}`),t.selected&&(r=`${r}, selected`),r}let nx=nb;function nC(e,t,n){return(n??new tL(t)).formatMonthYear(e)}let nE=nC;function nw(e,t,n,i){let r=(i??new tL(n)).format(e,"PPPP");return t?.today&&(r=`Today, ${r}`),r}function nT(e){return"Choose the Month"}function nS(){return""}function nL(e){return"Go to the Next Month"}function nP(e){return"Go to the Previous Month"}function nM(e,t,n){return(n??new tL(t)).format(e,"cccc")}function nA(e,t){return`Week ${e}`}function nI(e){return"Week Number"}function nR(e){return"Choose the Year"}let nk=e=>e instanceof HTMLElement?e:null,nD=e=>[...e.querySelectorAll("[data-animated-month]")??[]],nN=e=>nk(e.querySelector("[data-animated-month]")),nF=e=>nk(e.querySelector("[data-animated-caption]")),nO=e=>nk(e.querySelector("[data-animated-weeks]")),nj=e=>nk(e.querySelector("[data-animated-nav]")),nU=e=>nk(e.querySelector("[data-animated-weekdays]"));function nV(e,t,{classNames:n,months:i,focused:r,dateLib:a}){let s=(0,m.useRef)(null),l=(0,m.useRef)(i),u=(0,m.useRef)(!1);(0,m.useLayoutEffect)(()=>{let c=l.current;if(l.current=i,!t||!e.current||!(e.current instanceof HTMLElement)||0===i.length||0===c.length||i.length!==c.length)return;let d=a.isSameMonth(i[0].date,c[0].date),h=a.isAfter(i[0].date,c[0].date),f=h?n[o.caption_after_enter]:n[o.caption_before_enter],p=h?n[o.weeks_after_enter]:n[o.weeks_before_enter],m=s.current,g=e.current.cloneNode(!0);
244if(g instanceof HTMLElement?(nD(g).forEach(e=>{if(!(e instanceof HTMLElement))return;let t=nN(e);t&&e.contains(t)&&e.removeChild(t);let n=nF(e);n&&n.classList.remove(f);let i=nO(e);i&&i.classList.remove(p)}),s.current=g):s.current=null,u.current||d||r)return;let v=m instanceof HTMLElement?nD(m):[],y=nD(e.current);if(y?.every(e=>e instanceof HTMLElement)&&v&&v.every(e=>e instanceof HTMLElement)){u.current=!0;let t=[];e.current.style.isolation="isolate";let i=nj(e.current);i&&(i.style.zIndex="1"),y.forEach((r,a)=>{let s=v[a];if(!s)return;r.style.position="relative",r.style.overflow="hidden";let l=nF(r);l&&l.classList.add(f);let c=nO(r);c&&c.classList.add(p);let d=()=>{u.current=!1,e.current&&(e.current.style.isolation=""),i&&(i.style.zIndex=""),l&&l.classList.remove(f),c&&c.classList.remove(p),r.style.position="",r.style.overflow="",r.contains(s)&&r.removeChild(s)};t.push(d),s.style.pointerEvents="none",s.style.position="absolute",s.style.overflow="hidden",s.setAttribute("aria-hidden","true");let m=nU(s);m&&(m.style.opacity="0");let g=nF(s);g&&(g.classList.add(h?n[o.caption_before_exit]:n[o.caption_after_exit]),g.addEventListener("animationend",d));let y=nO(s);y&&y.classList.add(h?n[o.weeks_before_exit]:n[o.weeks_after_exit]),r.insertBefore(s,r.firstChild)})}})}function nB(e,t,n,i){let r=e[0],a=e[e.length-1],{ISOWeek:s,fixedWeeks:o,broadcastCalendar:l}=n??{},{addDays:u,differenceInCalendarDays:c,differenceInCalendarMonths:d,endOfBroadcastWeek:h,endOfISOWeek:f,endOfMonth:p,endOfWeek:m,isAfter:g,startOfBroadcastWeek:v,startOfISOWeek:y,startOfWeek:_}=i,b=l?v(r,i):s?y(r):_(r),x=c(l?h(a):s?f(p(a)):m(p(a)),b),C=d(a,r)+1,E=[];for(let e=0;e<=x;e++){let n=u(b,e);if(t&&g(n,t))break;E.push(n)}let w=(l?35:42)*C;if(o&&E.length<w){let e=w-E.length;for(let t=0;t<e;t++){let e=u(E[E.length-1],1);E.push(e)}}return E}function nH(e){let t=[];return e.reduce((e,n)=>{let i=n.weeks.reduce((e,t)=>e.concat(t.days.slice()),t.slice());return e.concat(i.slice())},t.slice())}function nG(e,t,n,i){let{numberOfMonths:r=1}=n,a=[];for(let n=0;n<r;n++){let r=i.addMonths(e,n);if(t&&r>t)break;a.push(r)}return a}function nz(e,t,n,i){let{month:r,defaultMonth:a,today:s=i.today(),numberOfMonths:o=1}=e,l=r||a||s,{differenceInCalendarMonths:u,addMonths:c,startOfMonth:d}=i;return n&&u(n,l)<o-1&&(l=c(n,-1*(o-1))),t&&0>u(l,t)&&(l=t),d(l)}class nq{constructor(e,t,n=tP){this.date=e,this.displayMonth=t,this.outside=!!(t&&!n.isSameMonth(e,t)),this.dateLib=n}isEqualTo(e){return this.dateLib.isSameDay(e.date,this.date)&&this.dateLib.isSameMonth(e.displayMonth,this.displayMonth)}}class nW{constructor(e,t){this.days=t,this.weekNumber=e}}class n${constructor(e,t){this.date=e,this.weeks=t}}function nZ(e,t,n,i){let{addDays:r,endOfBroadcastWeek:a,endOfISOWeek:s,endOfMonth:o,endOfWeek:l,getISOWeek:u,getWeek:c,startOfBroadcastWeek:d,startOfISOWeek:h,startOfWeek:f}=i,p=e.reduce((e,p)=>{let m=n.broadcastCalendar?d(p,i):n.ISOWeek?h(p):f(p),g=n.broadcastCalendar?a(p):n.ISOWeek?s(o(p)):l(o(p)),v=t.filter(e=>e>=m&&e<=g),y=n.broadcastCalendar?35:42;if(n.fixedWeeks&&v.length<y){let e=t.filter(e=>{let t=y-v.length;return e>g&&e<=r(g,t)});v.push(...e)}let _=v.reduce((e,t)=>{let r=n.ISOWeek?u(t):c(t),a=e.find(e=>e.weekNumber===r),s=new nq(t,p,i);return a?a.days.push(s):e.push(new nW(r,[s])),e},[]),b=new n$(p,_);return e.push(b),e},[]);return n.reverseMonths?p.reverse():p}function nY(e,t){let{startMonth:n,endMonth:i}=e,{startOfYear:r,startOfDay:a,startOfMonth:s,endOfMonth:o,addYears:l,endOfYear:u,newDate:c,today:d}=t,{fromYear:h,toYear:f,fromMonth:p,toMonth:m}=e;!n&&p&&(n=p),!n&&h&&(n=t.newDate(h,0,1)),!i&&m&&(i=m),!i&&f&&(i=c(f,11,31));let g="dropdown"===e.captionLayout||"dropdown-years"===e.captionLayout;return n?n=s(n):h?n=c(h,0,1):!n&&g&&(n=r(l(e.today??d(),-100))),i?i=o(i):f?i=c(f,11,31):!i&&g&&(i=u(e.today??d())),[n?a(n):n,i?a(i):i]}function nK(e,t,n,i){if(n.disableNavigation)return;let{pagedNavigation:r,numberOfMonths:a=1}=n,{startOfMonth:s,addMonths:o,differenceInCalendarMonths:l}=i,u=r?a:1,c=s(e);if(!t||!(l(t,e)<a))return o(c,u)}function nX(e,t,n,i){if(n.disableNavigation)return;let{pagedNavigation:r,numberOfMonths:a}=n,{startOfMonth:s,addMonths:o,differenceInCalendarMonths:l}=i,u=r?a??1:1,c=s(e);if(!t||!(0>=l(c,t)))return o(c,-u)}function nQ(e){let t=[];return e.reduce((e,t)=>
244e.concat(t.weeks.slice()),t.slice())}function nJ(e,t){let[n,i]=(0,m.useState)(e);return[void 0===t?n:t,i]}function n0(e,t){let[n,i]=nY(e,t),{startOfMonth:r,endOfMonth:a}=t,s=nz(e,n,i,t),[o,l]=nJ(s,e.month?s:void 0);(0,m.useEffect)(()=>{l(nz(e,n,i,t))},[e.timeZone]);let u=nG(o,i,e,t),c=nB(u,e.endMonth?a(e.endMonth):void 0,e,t),d=nZ(u,c,e,t),h=nQ(d),f=nH(d),p=nX(o,n,e,t),g=nK(o,i,e,t),{disableNavigation:v,onMonthChange:y}=e,_=e=>h.some(t=>t.days.some(t=>t.isEqualTo(e))),b=e=>{if(v)return;let t=r(e);n&&t<r(n)&&(t=r(n)),i&&t>r(i)&&(t=r(i)),l(t),y?.(t)},x=e=>{_(e)||b(e.date)};return{months:d,weeks:h,days:f,navStart:n,navEnd:i,previousMonth:p,nextMonth:g,goToMonth:b,goToDay:x}}function n1(e){return!e[a.disabled]&&!e[a.hidden]&&!e[a.outside]}function n2(e,t,n,i){let r;let s=-1;for(let o of e){let e=t(o);n1(e)&&(e[a.focused]&&s<l.FocusedModifier?(r=o,s=l.FocusedModifier):i?.isEqualTo(o)&&s<l.LastFocused?(r=o,s=l.LastFocused):n(o.date)&&s<l.Selected?(r=o,s=l.Selected):e[a.today]&&s<l.Today&&(r=o,s=l.Today))}return r||(r=e.find(e=>n1(t(e)))),r}function n3(e,t,n,i,r,a,s){let{ISOWeek:o,broadcastCalendar:l}=a,{addDays:u,addMonths:c,addWeeks:d,addYears:h,endOfBroadcastWeek:f,endOfISOWeek:p,endOfWeek:m,max:g,min:v,startOfBroadcastWeek:y,startOfISOWeek:_,startOfWeek:b}=s,x=({day:u,week:d,month:c,year:h,startOfWeek:e=>l?y(e,s):o?_(e):b(e),endOfWeek:e=>l?f(e):o?p(e):m(e)})[e](n,"after"===t?1:-1);return"before"===t&&i?x=g([i,x]):"after"===t&&r&&(x=v([r,x])),x}function n5(e,t,n,i,r,a,s,o=0){if(o>365)return;let l=n3(e,t,n.date,i,r,a,s),u=!!(a.disabled&&tF(l,a.disabled,s)),c=!!(a.hidden&&tF(l,a.hidden,s)),d=l,h=new nq(l,d,s);return u||c?n5(e,t,h,i,r,a,s,o+1):h}function n4(e,t,n,i,r){let{autoFocus:a}=e,[s,o]=(0,m.useState)(),l=n2(t.days,n,i||(()=>!1),s),[u,c]=(0,m.useState)(a?l:void 0),d=()=>{o(u),c(void 0)},h=(n,i)=>{if(!u)return;let a=n5(n,i,u,t.navStart,t.navEnd,e,r);a&&(t.goToDay(a),c(a))};return{isFocusTarget:e=>!!l?.isEqualTo(e),setFocused:c,focused:u,blur:d,moveFocus:h}}function n6(e,t){let{selected:n,required:i,onSelect:r}=e,[a,s]=nJ(n,r?n:void 0),o=r?n:a,{isSameDay:l}=t,u=e=>o?.some(t=>l(t,e))??!1,{min:c,max:d}=e,h=(e,t,n)=>{let a=[...o??[]];if(u(e)){if(o?.length===c||i&&o?.length===1)return;a=o?.filter(t=>!l(t,e))}else a=o?.length===d?[e]:[...a,e];return r||s(a),r?.(a,e,t,n),a};return{selected:o,select:h,isSelected:u}}function n8(e,t,n=0,i=0,r=!1,a=tP){let s;let{from:o,to:l}=t||{},{isSameDay:u,isAfter:c,isBefore:d}=a;if(o||l){if(o&&!l)s=u(o,e)?0===n?{from:o,to:e}:r?{from:o,to:void 0}:void 0:d(e,o)?{from:e,to:o}:{from:o,to:e};else if(o&&l){if(u(o,e)&&u(l,e))s=r?{from:o,to:l}:void 0;else if(u(o,e))s={from:o,to:n>0?void 0:e};else if(u(l,e))s={from:e,to:n>0?void 0:e};else if(d(e,o))s={from:e,to:l};else if(c(e,o))s={from:o,to:e};else if(c(e,l))s={from:o,to:e};else throw Error("Invalid range")}}else s={from:e,to:n>0?void 0:e};if(s?.from&&s?.to){let t=a.differenceInCalendarDays(s.to,s.from);i>0&&t>i?s={from:e,to:void 0}:n>1&&t<n&&(s={from:e,to:void 0})}return s}function n7(e,t,n=tP){let i=Array.isArray(t)?t:[t],r=e.from,a=Math.min(n.differenceInCalendarDays(e.to,e.from),6);for(let e=0;e<=a;e++){if(i.includes(r.getDay()))return!0;r=n.addDays(r,1)}return!1}function n9(e,t,n=tP){return tM(e,t.from,!1,n)||tM(e,t.to,!1,n)||tM(t,e.from,!1,n)||tM(t,e.to,!1,n)}function ie(e,t,n=tP){let i=Array.isArray(t)?t:[t];if(i.filter(e=>"function"!=typeof e).some(t=>"boolean"==typeof t?t:n.isDate(t)?tM(e,t,!1,n):tN(t,n)?t.some(t=>tM(e,t,!1,n)):tI(t)?!!t.from&&!!t.to&&n9(e,{from:t.from,to:t.to},n):tD(t)?n7(e,t.dayOfWeek,n):tA(t)?n.isAfter(t.before,t.after)?n9(e,{from:n.addDays(t.after,1),to:n.addDays(t.before,-1)},n):tF(e.from,t,n)||tF(e.to,t,n):!!(tR(t)||tk(t))&&(tF(e.from,t,n)||tF(e.to,t,n))))return!0;let r=i.filter(e=>"function"==typeof e);if(r.length){let t=e.from,i=n.differenceInCalendarDays(e.to,e.from);for(let e=0;e<=i;e++){if(r.some(e=>e(t)))return!0;t=n.addDays(t,1)}}return!1}function it(e,t){let{disabled:n,excludeDisabled:i,selected:r,required:a,onSelect:s}=e,[o,l]=nJ(r,s?r:void 0),u=s?r:o,c=e=>u&&tM(u,e,!1,t),d=(r,o,c)=>{let{min:d,max:h}=e,f=r?n8(r,u,d,h,a,t):void 0;return i&&n&&f?.from&&f.to&&ie({from:f.from,to:f.to},n,t)&&(f.from=r,f.to=void 0),s||l(f),s?.(f,r,o,c),f};return{selected:u,select:d,isSelected:c}}function ii(e,t){let{selected:n,required:i,onSelect:r}=e,[a,s]=nJ(n,r?n:void 0),o=r?n:a,{isSameDay:l}=t,u=e=>!!o&&l(o,e),c=(e,t,n)=>{let a=e;return!i&&o&&o&&l(e,o)&&(a=void 0),r||s(a),r?.(a,e,t,n),a};return{selected:o,select:c,isSelected:u}}function ir(e,t){let n=ii(e,t),i=n6(e,t),r=it(e,t);switch(e.mode){case"single":return n;case"multiple":return i;case"range":return r;default:return}}function ia(e){let t=e;t.timeZone&&((t={...e}).today&&(t.today=new j(t.today,t.timeZone)),t.month&&(t.month=new j(t.month,t.timeZone)),t.defaultMonth&&(t.defaultMonth=new j(t.defaultMonth,t.timeZone)),t.startMonth&&(t.startMonth=new j(t.startMonth,t.timeZone)),t.endMonth&&(t.endMonth=new j(t.endMonth,t.timeZone)),"single"===t.mode&&t.selected?t.selected=new j(t.selected,t.timeZone):"multiple"===t.mode&&t.selected?t.selected=t.selected?.map(e=>new j(e,t.timeZone)):"range"===t.mode&&t.selected&&(t.selected={from:t.selected.from?new j(t.selected.from,t.timeZone):void 0,to:t.selected.to?new j(t.selected.to,t.timeZone):void 0}));let{components:n,formatters:i,labels:o,dateLib:l,locale:u,classNames:c}=(0,m.useMemo)(()=>{let e={...ef,...t.locale};return{dateLib:new tL({locale:e,weekStartsOn:t.broadcastCalendar?1:t.weekStartsOn,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},t.dateLib),components:ni(t.components),formatters:nm(t.formatters),labels:{...d,...t.labels},locale:e,classNames:{...na(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.components,t.formatters,t.labels,t.classNames]),{captionLayout:h,mode:f,navLayout:p,numberOfMonths:g=1,onDayBlur:v,onDayClick:y,onDayFocus:_,onDayKeyDown:b,onDayMouseEnter:x,onDayMouseLeave:C,onNextClick:E,onPrevClick:w,showWeekNumber:T,styles:S}=t,{formatCaption:L,formatDay:P,formatMonthDropdown:M,formatWeekNumber:A,formatWeekNumberHeader:I,formatWeekdayName:R,formatYearDropdown:k}
244=i,D=n0(t,l),{days:N,months:F,navStart:O,navEnd:U,previousMonth:V,nextMonth:B,goToMonth:H}=D,G=tO(N,t,O,U,l),{isSelected:z,select:q,selected:W}=ir(t,l)??{},{blur:$,focused:Z,isFocusTarget:Y,moveFocus:K,setFocused:X}=n4(t,D,G,z??(()=>!1),l),{labelDayButton:Q,labelGridcell:J,labelGrid:ee,labelMonthDropdown:et,labelNav:en,labelPrevious:ei,labelNext:er,labelWeekday:ea,labelWeekNumber:es,labelWeekNumberHeader:eo,labelYearDropdown:el}=o,eu=(0,m.useMemo)(()=>ny(l,t.ISOWeek),[l,t.ISOWeek]),ec=void 0!==f||void 0!==y,ed=(0,m.useCallback)(()=>{V&&(H(V),w?.(V))},[V,H,w]),eh=(0,m.useCallback)(()=>{B&&(H(B),E?.(B))},[H,B,E]),ep=(0,m.useCallback)((e,t)=>n=>{n.preventDefault(),n.stopPropagation(),X(e),q?.(e.date,t,n),y?.(e.date,t,n)},[q,y,X]),em=(0,m.useCallback)((e,t)=>n=>{X(e),_?.(e.date,t,n)},[_,X]),eg=(0,m.useCallback)((e,t)=>n=>{$(),v?.(e.date,t,n)},[$,v]),ev=(0,m.useCallback)((e,n)=>i=>{let r={ArrowLeft:[i.shiftKey?"month":"day","rtl"===t.dir?"after":"before"],ArrowRight:[i.shiftKey?"month":"day","rtl"===t.dir?"before":"after"],ArrowDown:[i.shiftKey?"year":"week","after"],ArrowUp:[i.shiftKey?"year":"week","before"],PageUp:[i.shiftKey?"year":"month","before"],PageDown:[i.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(r[i.key]){i.preventDefault(),i.stopPropagation();let[e,t]=r[i.key];K(e,t)}b?.(e.date,n,i)},[K,b,t.dir]),ey=(0,m.useCallback)((e,t)=>n=>{x?.(e.date,t,n)},[x]),e_=(0,m.useCallback)((e,t)=>n=>{C?.(e.date,t,n)},[C]),eb=(0,m.useCallback)(e=>t=>{let n=Number(t.target.value);H(l.setMonth(l.startOfMonth(e),n))},[l,H]),ex=(0,m.useCallback)(e=>t=>{let n=Number(t.target.value);H(l.setYear(l.startOfMonth(e),n))},[l,H]),{className:eC,style:eE}=(0,m.useMemo)(()=>({className:[c[r.Root],t.className].filter(Boolean).join(" "),style:{...S?.[r.Root],...t.style}}),[c,t.className,t.style,S]),ew=nr(t),eT=(0,m.useRef)(null);nV(eT,!!t.animate,{classNames:c,months:F,focused:Z,dateLib:l});let eS={dayPickerProps:t,selected:W,select:q,isSelected:z,months:F,nextMonth:B,previousMonth:V,goToMonth:H,getModifiers:G,components:n,classNames:c,styles:S,labels:o,formatters:i};return m.createElement(tX.Provider,{value:eS},m.createElement(n.Root,{rootRef:t.animate?eT:void 0,className:eC,style:eE,dir:t.dir,id:t.id,lang:t.lang,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t["aria-label"],"aria-labelledby":t["aria-labelledby"],...ew},m.createElement(n.Months,{className:c[r.Months],style:S?.[r.Months]},!t.hideNavigation&&!p&&m.createElement(n.Nav,{"data-animated-nav":t.animate?"true":void 0,className:c[r.Nav],style:S?.[r.Nav],"aria-label":en(),onPreviousClick:ed,onNextClick:eh,previousMonth:V,nextMonth:B}),F.map((e,o)=>m.createElement(n.Month,{"data-animated-month":t.animate?"true":void 0,className:c[r.Month],style:S?.[r.Month],key:o,displayIndex:o,calendarMonth:e},"around"===p&&!t.hideNavigation&&0===o&&m.createElement(n.PreviousMonthButton,{type:"button",className:c[r.PreviousMonthButton],tabIndex:V?void 0:-1,"aria-disabled":!V||void 0,"aria-label":ei(V),onClick:ed,"data-animated-button":t.animate?"true":void 0},m.createElement(n.Chevron,{disabled:!V||void 0,className:c[r.Chevron],orientation:"rtl"===t.dir?"right":"left"})),m.createElement(n.MonthCaption,{"data-animated-caption":t.animate?"true":void 0,className:c[r.MonthCaption],style:S?.[r.MonthCaption],calendarMonth:e,displayIndex:o},h?.startsWith("dropdown")?m.createElement(n.DropdownNav,{className:c[r.Dropdowns],style:S?.[r.Dropdowns]},(()=>{let a="dropdown"===h||"dropdown-months"===h?m.createElement(n.MonthsDropdown,{key:"month",className:c[r.MonthsDropdown],"aria-label":et(),classNames:c,components:n,disabled:!!t.disableNavigation,onChange:eb(e.date),options:ng(e.date,O,U,i,l),style:S?.[r.Dropdown],value:l.getMonth(e.date)}):m.createElement("span",{key:"month"},M(e.date,l)),s="dropdown"===h||"dropdown-years"===h?m.createElement(n.YearsDropdown,{key:"year",className:c[r.YearsDropdown],"aria-label":el(l.options),classNames:c,components:n,disabled:!!t.disableNavigation,onChange:ex(e.date),options:n_(O,U,i,l,!!t.reverseYears),style:S?.[r.Dropdown],value:l.getYear(e.date)}):m.createElement("span",{key:"year"},k(e.date,l));return"year-first"===l.getMonthYearOrder()?[s,a]:[a,s]})(),m.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},L(e.date,l.options,l))):m.createElement(n.CaptionLabel,{className:c[r.CaptionLabel],role:"status","aria-live":"polite"},L(e.date,l.options,l))),"around"===p&&!t.hideNavigation&&o===g-1&&m.createElement(n.NextMonthButton,{type:"button",className:c[r.NextMonthButton],tabIndex:B?void 0:-1,"aria-disabled":!B||void 0,"aria-label":er(B),onClick:eh,"data-animated-button":t.animate?"true":void 0},m.createElement(n.Chevron,{disabled:!B||void 0,className:c[r.Chevron],orientation:"rtl"===t.dir?"left":"right"})),o===g-1&&"after"===p&&!t.hideNavigation&&m.createElement(n.Nav,{"data-animated-nav":t.animate?"true":void 0,className:c[r.Nav],style:S?.[r.Nav],"aria-label":en(),onPreviousClick:ed,onNextClick:eh,previousMonth:V,nextMonth:B}),m.createElement(n.MonthGrid,{role:"grid","aria-multiselectable":"multiple"===f||"range"===f,"aria-label":ee(e.date,l.options,l)||void 0,className:c[r.MonthGrid],style:S?.[r.MonthGrid]},!t.hideWeekdays&&m.createElement(n.Weekdays,{"data-animated-weekdays":t.animate?"true":void 0,className:c[r.Weekdays],style:S?.[r.Weekdays]},T&&m.createElement(n.WeekNumberHeader,{"aria-label":eo(l.options),className:c[r.WeekNumberHeader],style:S?.[r.WeekNumberHeader],scope:"col"},I()),eu.map(e=>m.createElement(n.Weekday,{"aria-label":ea(e,l.options,l),className:c[r.Weekday],key:String(e),style:S?.[r.Weekday],scope:"col"},R(e,l.options,l)))),m.createElement(n.Weeks,{"data-animated-weeks":t.animate?"true":void 0,className:c[r.Weeks],style:S?.[r.Weeks]},e.weeks.map(e=>m.createElement(n.Week,{className:c[r.Week],key:e.weekNumber,style:S?.[r.Week],week:e},T&&m.createElement(n.WeekNumber,{week:e,style:S?.[r.WeekNumber],"aria-label":es(e.weekNumber,{locale:u}),className:c[r.WeekNumber],scope:"row",role:"rowheader"},A(e.weekNumber,l)),e.days.map(e=>{let{date:i}=e,o=G(e);if(o[a.focused]=!o.hidden&&!!Z?.isEqualTo(e),o[s.selected]=z?.(i)||o.selected,tI(W)){let{from:e,to:t}=W;o[s.range_start]=!!(e&&t&&l.isSameDay(i,e)),o[s.range_end]=!!(e&&t&&l.isSameDay(i,t)),o[s.range_middle]=tM(W,i,!0,l)}let u=nv(o,S,t.modifiersStyles),d=tj(o,c,t.modifiersClassNames),h=ec||o.hidden?void 0:J(i,o,l.options,l);return m.createElement(n.Day,{key:`${l.format(i,"yyyy-MM-dd")}
244_${l.format(e.displayMonth,"yyyy-MM")}`,day:e,modifiers:o,className:d.join(" "),style:u,role:"gridcell","aria-selected":o.selected||void 0,"aria-label":h,"data-day":l.format(i,"yyyy-MM-dd"),"data-month":e.outside?l.format(i,"yyyy-MM"):void 0,"data-selected":o.selected||void 0,"data-disabled":o.disabled||void 0,"data-hidden":o.hidden||void 0,"data-outside":e.outside||void 0,"data-focused":o.focused||void 0,"data-today":o.today||void 0},!o.hidden&&ec?m.createElement(n.DayButton,{className:c[r.DayButton],style:S?.[r.DayButton],type:"button",day:e,modifiers:o,disabled:o.disabled||void 0,tabIndex:Y(e)?0:-1,"aria-label":Q(i,o,l.options,l),onClick:ep(e,o),onBlur:eg(e,o),onFocus:em(e,o),onKeyDown:ev(e,o),onMouseEnter:ey(e,o),onMouseLeave:e_(e,o)},P(i,l.options,l)):!o.hidden&&P(e.date,l.options,l))})))))))),t.footer&&m.createElement(n.Footer,{className:c[r.Footer],style:S?.[r.Footer],role:"status","aria-live":"polite"},t.footer)))}!function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"}(l||(l={})),n(92315);var is=n(47233),io=n.n(is);let il=v().bind(io());function iu(){let{data:{step1Label:e,todayLabel:t,tomorrowLabel:n,anotherDateLabel:i},isFutureDate:r,handleDateChange:a,dateOpt:s,today:o,dateCopy:l,setIsFutureDate:u}=E(),c=(0,m.useRef)(null),[d,h]=(0,m.useState)(!1),[p,g]=(0,m.useState)(),[v,y]=(0,m.useState)(new Date),_=e=>{let t=e.target,n=t.classList.toString(),i=t.parentElement,r=(null==i?void 0:i.classList.toString())||"",a=n.includes("rdp-root")||r.includes("rdp-root");!c.current||c.current.contains(t)||a||(h(!1),window.removeEventListener("click",_))},C=e=>{e.preventDefault(),d?h(!1):(h(!0),u(!0),window.addEventListener("click",_))},w=e=>{e&&(g(e),y(e),h(!1))};return(0,m.useEffect)(()=>{p&&r&&a(x.ou.fromJSDate(p).setZone("America/New_York").toISODate(),!0)},[p]),(0,f.jsxs)("div",{className:il(["step","step-one"]),children:[(0,f.jsx)("div",{className:il("step__copy"),children:(0,f.jsx)("p",{className:il(["step-label","text-l"]),children:e})}),(0,f.jsxs)("div",{className:il("date-options"),children:[(0,f.jsx)(b.EU,{className:il("day-select"),active:"today"===s&&!r,label:t,onClick:a,value:"today"}),(0,f.jsx)(b.EU,{className:il("day-select"),active:"tomorrow"===s&&!r,label:n,onClick:a,value:"tomorrow"}),(0,f.jsxs)("div",{className:il("date-picker"),ref:c,children:[(0,f.jsxs)("button",{className:il("date-select",{active:r}),type:"button",onClick:C,children:[(0,f.jsx)("span",{className:"text-m",children:r&&l?l:i}),(0,f.jsx)(S,{className:il("icon")})]}),d&&(0,f.jsx)(ia,{mode:"single",selected:p,onSelect:w,month:v,onMonthChange:y,disabled:[{before:new Date},{after:x.ou.fromISO(o).plus({years:1}).toJSDate()}]})]})]})]})}var ic=n(43775),id=n(15799),ih=n(57402),ip=n(39583),im=n(87048),ig=n(76348);let iv=v().bind(io()),iy=e=>{let{onClick:t,session:n,active:i}=e,r=x.ou.fromISO(n.start_datetime).setZone("America/New_York").toLocaleString(x.ou.TIME_SIMPLE),a=()=>t(n.id);return(0,f.jsx)(b.EU,{className:iv("session-button"),active:i,label:r,value:n.id,onClick:a})};function i_(){let{timesLoading:e,sessions:t,lastSearchDate:n,selectedSession:i,setSelectedSession:r,infoMessage:a,data:{step2Label:s,step2Subtext:o,infoEyebrow:l}}=E(),{mounted:u}=(0,im.F)(),{viewHeight:c,isReady:d}=(0,ip.dg)(),h=(0,m.useRef)(null),p=!e&&n,g=!e&&0===t.length&&n,v=n?x.ou.fromISO(n).toFormat("MMMM dd, yyyy"):null,b=(0,id.$e)(l,{date:v||""}),C=e=>{u&&d&&h.current&&p&&0!==e.opacity&&ic.ZP.to(window,{duration:.5,scrollTo:{y:h.current,offsetY:(c-h.current.offsetHeight)/2}})};return(0,m.useEffect)(()=>{u&&d&&ic.ZP.registerPlugin(ig.L)},[u,d]),(0,f.jsxs)("div",{className:iv(["step","step-two"]),ref:h,children:[(0,f.jsxs)("div",{className:iv("step__copy"),children:[(0,f.jsx)("p",{className:iv(["step-label","text-l"]),children:s}),(0,f.jsx)("p",{className:iv(["step-desc","text-m"]),children:o})]}),(0,f.jsxs)(y.M,{mode:"wait",children:[e&&(0,f.jsx)(ih.u,{className:iv("step-two__loader"),initial:{opacity:0}
244,animate:{opacity:1},exit:{opacity:0}},"loader"),p&&(0,f.jsxs)(_.E.div,{className:iv("step-two__session-info"),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onAnimationStart:C,children:[a&&(0,f.jsxs)("div",{className:iv("step-two__info-message"),children:[(0,f.jsx)("p",{className:"eyebrow-s",children:b}),(0,f.jsx)("div",{className:"text-m",dangerouslySetInnerHTML:{__html:a}})]}),g?(0,f.jsx)(_.E.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:iv("step-two__no-times"),children:(0,f.jsxs)("p",{className:"text-m",children:["No available times for ",v,".",(0,f.jsx)("br",{}),"Try another date."]})},"no-times-".concat(n)):(0,f.jsx)("div",{className:iv("step-two__session-buttons"),children:null==t?void 0:t.map(e=>(0,f.jsx)(iy,{session:e,active:e.id===i,onClick:r},e.id))})]})]})]})}var ib=n(14058);let ix=v().bind(io());function iC(e){var t;let{ticket:n,disabled:i}=e;if("TicketPrice"!==n.__typename)return null;let{title:r,ticketPriceFields:{groupTicketPrice:a,price:s,ticketing:{cta:o,ticketureId:l,description:u,ticketingType:c,title:d,membersTicketLink:h}}}=n,{selectedTickets:p,updateTickets:g,groupPricing:v}=E(),y=(null==a?void 0:null===(t=a.node)||void 0===t?void 0:t.__typename)==="TicketPrice"?a.node:null,_=o?(0,id.Cr)(o):null,x=(null==c?void 0:c[0])==="general",C=h?(0,id.Cr)(h):null,w=(0,m.useMemo)(()=>{if(v&&y){var e,t;return(null===(t=y.ticketPriceFields)||void 0===t?void 0:null===(e=t.ticketing)||void 0===e?void 0:e.title)||y.title}return d||r},[v]),T=(0,m.useMemo)(()=>{if(v&&y){var e;return(null===(e=y.ticketPriceFields)||void 0===e?void 0:e.price)||s}return s},[v]),S=()=>{g(l,(p[l]||0)+1)},L=()=>{g(l,(p[l]||0)-1)};return(0,f.jsxs)("div",{className:ix("ticket"),children:[(0,f.jsxs)("div",{className:ix("ticket__copy"),children:[(0,f.jsx)("p",{className:ix(["name","text-m"]),children:w}),u&&(0,f.jsx)("p",{className:ix(["description","text-s"]),children:u}),_&&(0,f.jsx)(ib.K,{className:ix(["inline-link","link"]),href:_.url,target:_.target,"data-gtm-section":"ticket-form",tabIndex:i?-1:0,children:_.label})]}),(0,f.jsxs)("div",{className:ix("ticket__content"),children:[(0,f.jsx)("p",{className:ix(["price","text-m"]),children:T}),x&&(0,f.jsx)(b.AT,{disabled:i,count:p[l]||0,onIncrement:S,onDecrement:L}),C&&(0,f.jsx)(ib.z,{className:ix("member-link"),"data-gtm-section":"ticket-form",...C,noIcon:!0})]})]})}var iE=n(71805),iw=n(76606);let iT=v().bind(io()),iS=e=>{if("TicketPrice"!==e.__typename)return null;let{title:t,ticketPriceFields:{ticketing:{title:n,description:i,cta:r}}}=e,a=r?(0,id.Cr)(r):null;return(0,f.jsxs)("div",{className:iT("included-ticket"),children:[(0,f.jsx)("p",{className:iT(["text-m","title"]),children:n||t}),i&&(0,f.jsx)("p",{className:iT("text-s"),children:i}),a&&(0,f.jsx)(iw.Kl,{className:iT(["inline-link","link"]),"data-gtm-section":"ticket-form",href:a.url,target:a.target,children:a.label})]})};function iL(){let{data:{discountedTickets:{accordionLabel:e,discountedTicket:t,ticketsIncluded:n}}}=E(),[i,r]=(0,m.useState)(!1),a=(0,m.useRef)(null),s=(0,m.useRef)(null),o=e=>{if(!a.current||!s.current)return;let t=ic.ZP.timeline();if(e){let{offsetHeight:e}=a.current;t.set(s.current,{visibility:"visible"}),t.to(s.current,{height:e,duration:.3,ease:"power1.out"})}else t.to(s.current,{height:0,duration:.3,ease:"power1.out"}),t.set(s.current,{visibility:"hidden"})};return(0,m.useEffect)(()=>{o(i)},[i]),(0,f.jsxs)("div",{className:iT("ticketing-accordion"),children:[(0,f.jsxs)("button",{className:iT("button"),type:"button","aria-expanded":i,onClick:()=>r(!i),children:[(0,f.jsx)("span",{className:"text-m",children:e}),(0,f.jsx)(iE.Z,{className:iT(["icon",{expanded:i}])})]}),(0,f.jsx)("div",{className:iT("ticketing-accordion__content-wrapper"),ref:s,children:(0,f.jsxs)("div",{className:iT("ticketing-accordion__content"),ref:a,children:[null==n?void 0:n.nodes.map((e,t)=>(0,f.jsx)(iS,{...e},t)),(0,f.jsx)(iC,{ticket:t.node})]})})]})}let iP=v().bind(io());function iM(){let{selectedSession:e,timesLoading:t,hasSessions:n,data:{step3Label:i,step3Subtext:r,formVariant:a,step3Tickets:s}}=E(),{mounted:o}=(0,im.F)(),{viewHeight:l,isReady:u}=(0,ip.dg)(),c=(null==a?void 0:a[0])==="general",d=(0,m.useRef)(null),h=!!(e&&n&&!t),p=t=>{o&&u&&e&&d.current&&0!==t.opacity&&ic.ZP.to(window,{duration:.5,scrollTo:{y:d.current,offsetY:(l-d.current.offsetHeight)/2}})};return(0,m.useEffect)(()=>{o&&u&&ic.ZP.registerPlugin(ig.L)},[o,u]),(0,f.jsxs)("div",{className:iP(["step","step-three"]),ref:d,children:[(0,f.jsxs)("div",{className:iP("step__copy"),children:[(0,f.jsx)("p",{className:iP(["step-label","text-l"]),children:i}),(0,f.jsx)("p",{className:iP(["step-desc","text-m"]),children:r})]}),(0,f.jsx)(y.M,{children:h&&(0,f.jsxs)(_.E.div,{className:iP("step-three__content-wrapper"),initial:{opacity:0}
244,animate:{opacity:1},exit:{opacity:0},onAnimationStart:p,children:[(0,f.jsx)("div",{className:iP("step-three__ticket-options"),children:null==s?void 0:s.nodes.map((e,t)=>(0,f.jsx)(iC,{ticket:e},t))}),c&&(0,f.jsx)(iL,{})]})})]})}var iA=n(34764);let iI=v().bind(io());function iR(e){let{ctaLabel:t}=e,{canSubmit:n,selectedSession:i,ticketsParsed:r,resetForm:a}=E(),[s,o]=(0,m.useState)(null),[l,u]=(0,m.useState)(!1),c=async e=>{var t;u(!0),e.preventDefault();let n={session_id:i,tickets:r},s=await fetch("/api/tickets/create-cart/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)}).then(e=>e.json());s.success&&(null===(t=s.data)||void 0===t?void 0:t.checkout_url)?setTimeout(()=>{window.location.href=s.data.checkout_url},250):o(s.message||"There was an error processing your request. Please try again."),u(!1),a()};return(0,f.jsx)("div",{className:iI(["ticketing-form","col-12","col-lg-7"]),children:(0,f.jsxs)("form",{className:iI(["form"]),onSubmit:c,"data-gtm-section":"ticketing-form",children:[(0,f.jsx)(y.M,{children:l&&(0,f.jsx)(_.E.div,{initial:{opacity:0}
244,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:iI("form__loader"),children:(0,f.jsx)(iw.u7,{className:iI("form__loader__loader")})},"form-loader")}),(0,f.jsx)(iu,{}),(0,f.jsx)(i_,{}),(0,f.jsx)(iM,{}),(0,f.jsx)("div",{className:iI("form__submit"),children:(0,f.jsx)(iw.zx,{type:"submit",disabled:!n,label:t,icon:iA.Z})})]})})}var ik=n(68282),iD=n(79867),iN=n(29366),iF=n(46385),iO=n.n(iF);function ij(){let e=(0,h._)(["\n ","\n fragment Ticketing on FlexiblePageContentContentTicketingLayout {\n titleSize\n headline\n subhead\n ticketingForm {\n formVariant\n ctaLabel\n step1Label\n todayLabel\n tomorrowLabel\n anotherDateLabel\n step2Label\n step2Subtext\n infoEyebrow\n step3Label\n step3Subtext\n step3Tickets {\n nodes {\n ...Ticket\n }\n }\n discountedTickets {\n accordionLabel\n discountedTicket {\n node {\n ...Ticket\n }\n }\n ticketsIncluded {\n nodes {\n contentTypeName\n ...Ticket\n }\n }\n }\n }\n }\n "]);return ij=function(){return e},e}let iU=v().bind(iO()),iV=e=>{let{headline:t,size:n}=e,i="title-uc-xl"!==n?"h2":"h1",r=(0,id.Ay)(t);return(0,f.jsx)(i,{className:iU(["headline",n]),dangerouslySetInnerHTML:{__html:r}})};function iB(e){let{titleSize:t,headline:n,subhead:i,ticketingForm:r}=e,{isDesktop:a}=(0,ip.dg)(),s=(0,m.useRef)(null),o=iN.LL,l=a?o.lg.triggerPercent:o.sm.triggerPercent,u=(0,iD.Y)(s,{amount:l,once:o.once});return(0,f.jsx)("section",{className:iU(["ticketing"]),ref:s,children:(0,f.jsx)(iw.Lz,{isInView:u,children:(0,f.jsx)(iw.W2,{className:iU("ticketing__container"),children:(0,f.jsxs)("div",{className:iU("ticketing__content"),children:[(0,f.jsxs)("div",{className:iU(["copy","col-12","col-lg-5"]),children:[(0,f.jsx)(iV,{headline:n,size:t[0]}),(0,f.jsx)("p",{className:"text-l",children:i})]}),(0,f.jsx)(w,{data:r,children:(0,f.jsx)(iR,{...r})})]})})})})}iB.fragments={entry:(0,p.ZP)(ij(),ik.$)}},42854:function(e,t,n){"use strict";n.d(t,{P:function(){return i.default}});var i=n(77022)},48497:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return v}});var i=n(82729),r=n(85893),a=n(68806),s=n(76606),o=n(15799),l=n(67294),u=n(39583),c=n(79867),d=n(29366),h=n(45091),f=n.n(h),p=n(19845);function m(){let e=(0,i._)(["\n fragment Title on FlexiblePageContentContentTitleLayout {\n headline\n sectionTitle\n sectionId\n }\n "]);return m=function(){return e},e}let g=n.n(p)().bind(f());function v(e){let{headline:t,sectionId:n}=e,i=t?(0,o.Ay)(t):null,{isDesktop:a}=(0,u.dg)(),h=(0,l.useRef)(null),f=d.LL,p=a?f.lg.triggerPercent:f.sm.triggerPercent,m=(0,c.Y)(h,{amount:p,once:f.once});return(0,r.jsx)("section",{className:g(["title"]),id:n,"data-section-id":n,ref:h,children:(0,r.jsx)(s.W2,{children:(0,r.jsx)(s.Lz,{isInView:m,children:(0,r.jsx)(s.ZF,{tag:"h2",text:i,className:g("title-uc-xxxxl","headline"),isRevealEnabled:!1,isInView:m})})})})}v.fragments={entry:(0,a.ZP)(m())}},97731:function(e,t,n){"use strict";n.d(t,{D:function(){return i.default}});var i=n(48497)},44269:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return T}});var i=n(82729),r=n(85893),a=n(43775),s=n(68806),o=n(47279),l=n(67294),u=n(15799),c=n(19845),d=n.n(c),h=n(76606),f=n(43313),p=n.n(f);let m=d().bind(p());var g=(0,l.forwardRef)((e,t)=>{let{videoEmbed:n,title:i}=e;return(0,r.jsxs)("button",{className:m(["video-carousel-item","splide__slide"]),ref:t,"aria-label":"Play video: ".concat(i),children:[(0,r.jsx)(h.vj,{...n,playVideoLabel:i,debug:!0}),(0,r.jsx)("h3",{className:m(["title-lc-s"]),children:i})]})}),v=n(71805),y=n(39583),_=n(79867),b=n(29366),x=n(87048),C=n(83177);function E(){let e=(0,i._)(["\n fragment VideoCarousel on FlexiblePageContentContentVideoCarouselLayout {\n eyebrow\n headline\n body\n videos {\n title\n videoEmbed {\n videoType\n youtubeVideoId\n videoUrl\n videoThumbnail {\n ...ACFMedia\n }
244\n youtubeThumbnail {\n ...ACFMedia\n }\n }\n }\n }\n "]);return E=function(){return e},e}let w=d().bind(p());function T(e){let{eyebrow:t,headline:n,videos:i,body:s,largeTitle:c}=e,d=!!(t||n||s),{mounted:f}=(0,x.F)(),{isMobile:p,viewWidth:m,isReady:E}=(0,y.dg)(),{labels:T}=(0,C.i)(),S=(0,l.useRef)([]),[L,P]=(0,l.useState)(!0),[M,A]=(0,l.useState)(!1),I=(0,l.useRef)(null),R=(0,l.useRef)({collapsed:0,expanded:0}),k=(0,l.useRef)(null),D=(e,t)=>{e&&(S.current[t]=e)},N=(0,l.useCallback)(()=>{f&&E&&(a.ZP.to(k.current,{height:L?R.current.expanded:R.current.collapsed,duration:.5,ease:"power2.inOut"}),P(!L))},[f,E,L]),F=(0,l.useCallback)(()=>{if(!f||!E||!k.current||!S.current.length)return;let e=S.current.slice(0,2).reduce((e,t)=>(t&&(e+=t.getBoundingClientRect().height),e),0),t=S.current.reduce((e,t)=>(t&&(e+=t.getBoundingClientRect().height),e),0)+(0,u.t3)(48);R.current={collapsed:e,expanded:t},a.ZP.set(k.current,{height:L?R.current.collapsed:R.current.expanded})},[f,E,L]);(0,l.useEffect)(()=>{f&&E&&(p?F():(a.ZP.set(k.current,{height:""}),P(!0)),A(p&&(null==i?void 0:i.length)>2))},[f,E,p,m,F]);let O={type:"slide",arrows:!0,pagination:!0,speed:500,flickMaxPages:1,flickPower:250,updateOnMove:!0,perPage:2,perMove:2,gap:"3rem",padding:{left:"5rem",right:"5rem"},breakpoints:{1025:{padding:{left:"4rem",right:"4rem"},arrows:!1},769:{destroy:!0}}};(0,l.useEffect)(()=>{f&&E&&I.current&&(I.current.querySelectorAll(".splide__list").forEach(e=>{e.setAttribute("role","list")}),I.current.querySelectorAll(".splide__slide").forEach(e=>{e.setAttribute("role","listitem")}))},[f,E]);let{isDesktop:j}=(0,y.dg)(),U=b.LL,V=j?U.lg.triggerPercent:U.sm.triggerPercent,B=(0,_.Y)(I,{amount:V,once:U.once});return(0,r.jsx)("section",{className:w(["video-carousel"]),ref:I,children:(0,r.jsxs)(h.Lz,{isInView:B,children:[d&&(0,r.jsx)(h.W2,{children:(0,r.jsx)(h._q,{largeTitle:c,headline:n,eyebrow:t,subhead:s,isRevealEnabled:!0,isInView:B})}),(0,r.jsxs)("div",{className:w(["video-carousel__wrapper"]),ref:k,children:[(0,r.jsxs)(o.tv,{hasTrack:!1,options:O,children:[(0,r.jsx)(o.Gj,{children:null==i?void 0:i.map((e,t)=>(0,r.jsx)(g,{...e,ref:e=>D(e,t)},t))}),(0,r.jsx)(h.W2,{className:w(["video-carousel__pagination"]),children:(0,r.jsx)(h.Jj,{})})]}),M&&(0,r.jsx)("div",{className:w(["toggle-overlay",{expanded:!L}]),children:(0,r.jsxs)("button",{className:w(["toggle","inline-link"]),onClick:N,children:[(0,r.jsx)("span",{children:L?null==T?void 0:T.viewMoreLabel:null==T?void 0:T.viewLessLabel}),(0,r.jsx)(v.Z,{className:w(["icon"])})]})})]})]})})}T.fragments={entry:(0,s.ZP)(E())}},28890:function(e,t,n){"use strict";n.d(t,{F:function(){return i.default}});var i=n(44269)},51406:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var i=n(85893),r=n(19845),a=n.n(r),s=n(60055),o="/_next/static/media/static-noise.8170cae9.png",l=n(33128),u=n.n(l),c=n(83177),d=n(77551);let h=a().bind(u());var f=e=>{let{youtubeId:t,className:n,consentSmall:r,consentToken:a}=e,{accept:l}=(0,s.V)(),{labels:u}=(0,c.i)(),{consentGate:f}=u;return(0,i.jsxs)("div",{className:h(["consent-gate",n]),style:{"--consent-gate-static":"url(".concat(o,")")},children:[(0,i.jsxs)("div",{className:h("consent-gate__text"),children:[(0,i.jsx)("div",{className:h("consent-gate__headline",r?"title-lc-xs":"title-lc-s"),dangerouslySetInnerHTML:{__html:(null==f?void 0:f.headline)||""}}),(null==f?void 0:f.subhead)&&(0,i.jsx)("div",{className:h("consent-gate__subhead",r?"text-m":"title-lc-xs"),dangerouslySetInnerHTML:{__html:f.subhead}})]}),(0,i.jsx)("div",{className:h("consent-gate__actions"),children:(0,i.jsx)(d.z,{onClick:()=>l(a),label:(null==f?void 0:f.ctaLabel)||"Accept Cookies"})})]})}},81054:function(e,t,n){"use strict";n.d(t,{Po:function(){return c}});var i=n(85893),r=n(19845),a=n.n(r),s=n(66962),o=n.n(s);let l=a().bind(o()),u="76979871",c=function(){let{autoplay:e=!0,muted:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"https://player.vimeo.com/video/".concat(u,"?dnt=1&autoplay=").concat(e?1:0,"&muted=").concat(t?1:0,"&byline=0&portrait=0")},d=e=>{let{autoplay:t=!0,soundEnabled:n,className:r,title:a}=e;return(0,i.jsx)("div",{className:l(["vimeo-embed",r]),children:(0,i.jsx)("iframe",{src:c({autoplay:t,muted:!1===n}),allow:"autoplay; encrypted-media; fullscreen; picture-in-picture",title:a||"Video"})})};t.ZP=d},27920:function(e,t,n){"use strict";n.d(t,{He:function(){return g},yW:function(){return x},$O:function(){return T}});var i=n(85893),r=n(67294),a=n(19845),s=n.n(a),o=n(79867),l=n(28998),u=n.n(l),c=n(517),d=n(81334),h=n(60055),f=n(81054),p=n(51406);let m=s().bind(u());var g=(0,r.forwardRef)((e,t)=>{let{id:n,autoplay:a=!0,showControls:s=!0,className:l,consentSmall:u,customPlayerVars:g={},blockMouseInteraction:v=!1,onStateChange:y,onConsentedElsewhere:_,soundEnabled:b}=e,x=null,C=(0,r.useRef)(null),{video:E,setCurrentVideo:w}=(0,c.v)(),{globalVolume:T}=(0,d.je)(),{mode:S,consented:L,granterToken:P}=(0,h.V)(),M=(0,r.useId)(),A="consent"===S&&!L,I=(0,r.useRef)(A);A&&(I.current=!0);let R=I.current&&!A&&P!==M,k=a&&!R,D=R&&!!_,N=(0,r.useRef)(null),F=(0,r.useRef)(null),O=(0,r.useRef)(null),j=(0,o.Y)(O,{amount:.5}
244);(0,r.useImperativeHandle)(t,()=>({getPlayer:()=>C.current}));let U=()=>{window.YT&&window.YT.Player?V():window.YT.ready(V)},V=()=>{if((x=window.YT)&&F.current)try{new x.Player(F.current,{videoId:n,playerVars:{autoplay:k?1:0,mute:k&&!1===b?1:0,controls:s?1:0,rel:0,showinfo:0,playsinline:1,modestbranding:1,iv_load_policy:3,disablekb:1,fs:0,cc_load_policy:0,autohide:1,color:"white",enablejsapi:1,origin:window.location.origin,...g},host:"https://www.youtube-nocookie.com",events:{onReady:e=>{C.current=e.target;try{let t=Math.round(100*T);e.target.setVolume(t)}catch(e){}k&&(N.current&&N.current!==C.current&&N.current.pauseVideo(),C.current.playVideo(),w(C.current))},onStateChange:e=>{e.data===YT.PlayerState.PLAYING?(N.current&&N.current!==e.target&&N.current.pauseVideo(),w(e.target)):(e.data===YT.PlayerState.ENDED||e.data===YT.PlayerState.PAUSED)&&w(null),y&&y(e)}}})}catch(e){}};return(0,r.useEffect)(()=>{E&&E!==C.current&&(N.current=E)},[E]),(0,r.useEffect)(()=>{D&&(null==_||_())},[D]),(0,r.useEffect)(()=>{if("vimeo"!==S&&!A&&!D){if(window.YT&&window.YT.Player){U();return}if(x)U();else{document.createElement("script");let e=document.createElement("script");e.src="https://www.youtube.com/iframe_api",e.onload=U,document.body.appendChild(e)}}},[F,S,A,D]),(0,r.useEffect)(()=>{!j&&C.current&&C.current.getPlayerState()===YT.PlayerState.PLAYING&&C.current.pauseVideo()},[j]),(0,r.useEffect)(()=>{C.current&&void 0!==b&&(b?C.current.unMute():C.current.mute())},[b]),(0,r.useEffect)(()=>{if(C.current)try{let e=Math.round(100*T);C.current.setVolume(e)}catch(e){}},[T]),(0,i.jsx)("div",{className:m(["youtube-embed",l,{"block-interaction":v}]),ref:O,children:"vimeo"===S?(0,i.jsx)(f.ZP,{autoplay:a,soundEnabled:b}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{ref:F}),A&&(0,i.jsx)(p.Z,{youtubeId:n,consentSmall:u,consentToken:M})]})})}),v=n(76606),y=n(71805),_=n(15799);let b=s().bind(u());var x=(0,r.forwardRef)((e,t)=>{let{id:n,thumbnail:a,className:s,playVideoLabel:o,consentSmall:l}=e,[u,c]=(0,r.useState)(!1),d=(0,r.useRef)(null),h=(0,r.useRef)(null),f=()=>{c(!0)};return(0,r.useEffect)(()=>{(0,_.f7)()},[]),(0,r.useImperativeHandle)(t,()=>({getPlayer:()=>{var e;return null===(e=h.current)||void 0===e?void 0:e.getPlayer()},showEmbed:()=>c(!0)})),(0,r.useEffect)(()=>{if(!d.current)return;let e=d.current.closest("button");return e&&e.addEventListener("click",f),()=>{e&&e.removeEventListener("click",f)}},[]),(0,i.jsxs)("div",{className:b(["youtube-image-preview",s]),onClick:f,ref:d,children:[(0,i.jsx)("span",{className:b("overlay")}),a?(0,i.jsx)(v.Ee,{image:a,className:b("image")}):(0,i.jsx)(v.FN,{className:b("image"),youtubeId:n}),(0,i.jsx)(v.hU,{className:b("play-button"),icon:y.Z,size:"large",ariaLabel:"Play video - ".concat(o||""),tag:"div"}),u&&(0,i.jsx)(g,{id:n,ref:h,consentSmall:l,onConsentedElsewhere:()=>c(!1)})]})}),C=n(31853),E=n(66432);let w=s().bind(u());var T=(0,r.forwardRef)((e,t)=>{var n;let{id:a,previewUrl:s,thumbnail:l,className:u,loop:c=!0,playVideoLabel:d,consentSmall:h}=e,f=(0,r.useRef)(null),[p,m]=(0,r.useState)(!1),b=(0,r.useRef)(null),x=(0,o.Y)(b),T=(0,r.useRef)(!1),S=(0,r.useRef)(null),L=(0,E.r5)(null==l?void 0:null===(n=l.node)||void 0===n?void 0:n.mediaItemUrl)||(0,_.TO)(a);(0,r.useImperativeHandle)(t,()=>({getPlayer:()=>{var e;return null===(e=S.current)||void 0===e?void 0:e.getPlayer()},showEmbed:()=>m(!0)}),[p]);let P=()=>{m(!0)};(0,r.useEffect)(()=>{if(!b.current)return;let e=b.current.closest("button");return e&&e.addEventListener("click",P),()=>{e&&e.removeEventListener("click",P)}},[]);let[M,A]=(0,r.useState)(!1);(0,r.useEffect)(()=>{A(!(0,C.xF)())},[]),(0,r.useEffect)(()=>{if(f.current&&!T.current&&x&&(f.current.src=s,T.current=!0),f.current&&x&&M)f.current.play();else{var e;null===(e=f.current)||void 0===e||e.pause()}},[x,p]);let I=()=>{T.current=!1,m(!1)};return(0,r.useEffect)(()=>{(0,_.f7)()},[]),(0,i.jsx)("div",{className:w(["youtube-video-preview",u]),onClick:P,ref:b,children:p?(0,i.jsx)(g,{id:a,ref:S,consentSmall:h,onConsentedElsewhere:I}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("video",{className:w("video"),ref:f,muted:!0,poster:L,loop:c,playsInl
244ine:!0}),(0,i.jsx)("span",{className:w("overlay")}),(0,i.jsx)(v.hU,{className:w("play-button"),icon:y.Z,size:"large",ariaLabel:"Play video ".concat(d||""),tag:"div"})]})})})},21421:function(e,t,n){"use strict";n.d(t,{v:function(){return T},_:function(){return S}});var i=n(85893),r=n(15799),a=n(27920),s=n(67294),o=n(30775),l=n(4801),u=n(79867),c=n(517),d=(0,s.forwardRef)((e,t)=>{let{videoUrl:n,className:r}=e,a=(0,s.useRef)(null),o=(0,u.Y)(a,{amount:.5}),{video:l,setCurrentVideo:d}=(0,c.v)(),h=()=>{var e;return null===(e=a.current)||void 0===e?void 0:e.play()},f=()=>{var e;return null===(e=a.current)||void 0===e?void 0:e.pause()},p=()=>a.current&&(a.current.muted=!0),m=()=>a.current&&(a.current.muted=!1),g=e=>{a.current&&(a.current.volume=Math.max(0,Math.min(1,e)))},v=()=>{var e,t;return null!==(t=null===(e=a.current)||void 0===e?void 0:e.volume)&&void 0!==t?t:0},y=()=>{null==l||l.pauseVideo(),d({playVideo:h,pauseVideo:f,mute:p,unMute:m,setVolume:g,getVolume:v})},_=()=>d(null);return(0,s.useImperativeHandle)(t,()=>({getPlayer:()=>({playVideo:h,pauseVideo:f,mute:p,unMute:m,setVolume:g,getVolume:v})})),(0,s.useEffect)(()=>{o||f()},[o]),(0,s.useEffect)(()=>{var e,t;return null===(e=a.current)||void 0===e||e.addEventListener("play",y),null===(t=a.current)||void 0===t||t.addEventListener("pause",_),()=>{var e,t;null===(e=a.current)||void 0===e||e.removeEventListener("play",y),null===(t=a.current)||void 0===t||t.removeEventListener("pause",_)}},[]),(0,i.jsx)("video",{controls:!0,ref:a,className:r,children:(0,i.jsx)("source",{src:n,type:"video/mp4"})})}),h=n(19845),f=n.n(h),p=n(76606),m=n(81221),g=n(71805),v=n(95329),y=n.n(v);let _=f().bind(y());var b=(0,s.forwardRef)((e,t)=>{let{thumbnail:n,videoUrl:r,className:a,playVideoLabel:u}
244=e,[c,h]=(0,s.useState)(!1),f=(0,s.useRef)(null),v=(0,s.useRef)(null);(0,s.useImperativeHandle)(t,()=>({getPlayer:()=>{var e;return null===(e=v.current)||void 0===e?void 0:e.getPlayer()},showEmbed:()=>h(!0)}));let y=()=>{var e;h(!0);let t=null===(e=v.current)||void 0===e?void 0:e.getPlayer();null==t||t.playVideo()};return(0,s.useEffect)(()=>{if(!f.current)return;let e=f.current.closest("button");return e&&e.addEventListener("click",y),()=>{e&&e.removeEventListener("click",y)}},[]),(0,i.jsxs)("div",{className:_(["basic-embed",a]),onClick:y,ref:f,children:[(0,i.jsx)(o.M,{children:!c&&(0,i.jsxs)(l.E.div,{className:_("basic-embed__overlay"),initial:{opacity:1},exit:{opacity:0,pointerEvents:"none"},transition:{duration:.5,ease:m.QE.OutQuad},children:[(0,i.jsx)(p.Ee,{image:n,className:_("image")}),(0,i.jsx)(p.hU,{className:_("play-button"),icon:g.Z,onClick:y,size:"large",ariaLabel:"Play video ".concat(u||""),tag:"div"})]})}),(0,i.jsx)(d,{videoUrl:r,ref:v})]})}),x=n(31853),C=n(66432);let E=f().bind(y());var w=(0,s.forwardRef)((e,t)=>{var n;let{videoUrl:r,previewVideoUrl:a,thumbnail:c,className:h,playVideoLabel:f}=e,[v,y]=(0,s.useState)(!1),_=(0,s.useRef)(null),b=(0,s.useRef)(!1),w=(0,s.useRef)(null),T=(0,s.useRef)(null),S=(0,s.useRef)(!1),L=(0,u.Y)(T),P=(0,C.r5)(null==c?void 0:null===(n=c.node)||void 0===n?void 0:n.mediaItemUrl);(0,s.useImperativeHandle)(t,()=>({getPlayer:()=>{var e;return null===(e=w.current)||void 0===e?void 0:e.getPlayer()},showEmbed:()=>y(!0)}));let M=()=>{if(!b.current){var e;b.current=!0,y(!0);let t=null===(e=w.current)||void 0===e?void 0:e.getPlayer();null==t||t.playVideo()}};(0,s.useEffect)(()=>{if(!_.current)return;let e=_.current.closest("button");return e&&e.addEventListener("click",M),()=>{e&&e.removeEventListener("click",M)}},[]);
244let[A,I]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{I(!(0,x.xF)())},[]),(0,s.useEffect)(()=>{if(T.current&&!S.current&&L&&(T.current.src=a,S.current=!0),T.current&&L&&!v&&A)T.current.play();else{var e;null===(e=T.current)||void 0===e||e.pause()}},[L,v]),(0,i.jsxs)("div",{className:E(["basic-embed",h]),onClick:M,ref:_,children:[(0,i.jsx)(o.M,{children:!v&&(0,i.jsxs)(l.E.div,{className:E("basic-embed__overlay"),initial:{opacity:1},exit:{opacity:0},transition:{duration:.5,ease:m.QE.OutQuad},children:[(0,i.jsx)("video",{ref:T,muted:!0,loop:!0,playsInline:!0,poster:P}),(0,i.jsx)(p.hU,{className:E("play-button"),icon:g.Z,onClick:M,size:"large",ariaLabel:"Play video ".concat(f||""),tag:"div"})]})}),(0,i.jsx)(d,{videoUrl:r,ref:w})]})}),T=(0,s.forwardRef)((e,t)=>{let n=(0,r.tj)(e),{className:s,playVideoLabel:o,debug:l,consentSmall:u}=e;if(!n)return null;let c=n.isYoutube,d=!!n.previewVideoUrl;return(0,i.jsx)(i.Fragment,{children:d?c?(0,i.jsx)(a.$O,{className:s,ref:t,id:n.videoId,thumbnail:n.thumbnail,previewUrl:n.previewVideoUrl,playVideoLabel:o,consentSmall:u}):(0,i.jsx)(w,{className:s,videoUrl:n.videoUrl,ref:t,previewVideoUrl:n.previewVideoUrl,thumbnail:n.thumbnail,playVideoLabel:o}):c?(0,i.jsx)(a.yW,{className:s,ref:t,id:n.videoId,thumbnail:n.thumbnail,playVideoLabel:o,consentSmall:u}):(0,i.jsx)(b,{className:s,ref:t,videoUrl:n.videoUrl,thumbnail:n.thumbnail,playVideoLabel:o})})}),S=(0,s.forwardRef)((e,t)=>{let n=(0,r.tj)(e),{className:s,autoplay:o}=e;if(!n)return null;let l=n.isYoutube;return(0,i.jsx)(i.Fragment,{children:l?(0,i.jsx)(a.He,{autoplay:o,className:s,ref:t,id:n.videoId}):(0,i.jsx)(d,{className:s,ref:t,videoUrl:n.videoUrl})})})},24802:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return I}});var i=n(82729),r=n(85893),a=n(68806),s=n(19845),o=n.n(s),l=n(67294),u=n(76606),c=n(39583),d=n(79867),h=n(29366),f=n(87048),p=n(93147),m=n.n(p),g=n(71805),v=n(15799),y=n(68982),_=n.n(y),b=n(83177);let x=o().bind(_());function C(e){let{primaryVideo:t,videos:n}=e,i=(0,l.useRef)([]),[a,s]=(0,l.useState)(0),o=(0,l.useRef)(0),c=(0,l.useRef)(!0),{labels:{ariaLabels:d}}=(0,b.i)(),h=e=>{var t;return(null==e?void 0:null===(t=e.videoType)||void 0===t?void 0:t[0])==="youtube"?e.youtubeThumbnail:(null==e?void 0:e.videoThumbnail)?e.videoThumbnail:null},f=(0,l.useMemo)(()=>[t,...n||[]].map(e=>({...e,videoThumb:h(e)})),[t,n]),p=(e,t)=>{t&&(i.current[e]=t)};return(0,l.useEffect)(()=>{var e,t,n,r,s,l;let u=null===(e=i.current[o.current])||void 0===e?void 0:e.getPlayer();u&&u.pauseVideo();let d=null===(t=i.current[a])||void 0===t?void 0:t.getPlayer();d&&!c.current?(d.playVideo(),null===(r=i.current[a])||void 0===r||null===(n=r.showEmbed)||void 0===n||n.call(r)):0===a&&0!==o.current&&(null===(l=i.current[a])||void 0===l||null===(s=l.showEmbed)||void 0===s||s.call(l)),c.current=!1,o.current=a},[a]),(0,r.jsx)("div",{className:x("video-playlist-desktop"),children:(0,r.jsxs)("div",{className:x("video-container"),children:[(0,r.jsxs)("div",{className:x("video-items","icon-button-hover-container"),children:[(0,r.jsx)(u.vj,{className:x(["video",{active:0===a}]),...t,ref:p.bind(null,0)}),0===a&&(0,r.jsx)("div",{className:x("video-items-title","title-lc-s"),dangerouslySetInnerHTML:{__html:t.performanceName}}),null==n?void 0:n.map((e,t)=>(0,r.jsxs)(l.Fragment,{children:[(0,r.jsx)(u._F,{className:x(["video",{active:a===t+1}]),...e,autoplay:!1,ref:p.bind(null,t+1)}),a===t+1&&(0,r.jsx)("div",{className:x("video-items-title","title-lc-s"),dangerouslySetInnerHTML:{__html:e.performanceName}})]},"".concat(e.youtubeVideoId,"-").concat(t)))]}),(0,r.jsx)("div",{className:x("video-thumbnails"),children:null==f?void 0:f.map((e,t)=>(0,r.jsxs)("button",{className:x("video-thumbnail",{active:a===t}),onClick:()=>s(t),"aria-label":(0,v.$e)(null==d?void 0:d.playVideo,{name:(0,v.IQ)(e.performanceName)}),children:[(0,r.jsxs)("div",{className:x("image-wrapper"),children:[(0,r.jsx)(g.Z,{className:x("icon")}),e.videoThumb?(0,r.jsx)(u.Ee,{image:e.videoThumb}):(0,r.jsx)(u.FN,{youtubeId:e.youtubeVideoId,alt:(0,v.$e)(null==d?void 0:d.playThumbnailAlt,{name:(0,v.IQ)(e.performanceName)}
244)})]}),(0,r.jsx)("div",{className:x(["copy","text-s"]),dangerouslySetInnerHTML:{__html:e.performanceName}})]},t))})]})})}var E=n(27920),w=n(55885),T=n.n(w),S=n(21421);let L=o().bind(T());function P(e){let{primaryVideo:t,videos:n}=e;return(0,r.jsxs)("div",{className:L("video-playlist-mobile"),children:[(0,r.jsxs)("div",{className:L("video-item"),children:[(0,r.jsx)(S.v,{...t,className:L("video-embed")}),(null==t?void 0:t.performanceName)&&(0,r.jsx)("h3",{className:L("video-title","title-lc-xs"),dangerouslySetInnerHTML:{__html:t.performanceName}})]}),n.map((e,t)=>(0,r.jsxs)("div",{className:L("video-item"),children:[(0,r.jsx)(E.yW,{id:(null==e?void 0:e.youtubeVideoId)||"",thumbnail:(null==e?void 0:e.videoThumbnail)||(null==e?void 0:e.youtubeThumbnail),className:L("video-embed"),playVideoLabel:null==e?void 0:e.performanceName}),(null==e?void 0:e.performanceName)&&(0,r.jsx)("h3",{className:L("video-title","title-lc-xs"),dangerouslySetInnerHTML:{__html:e.performanceName}})]},"video-".concat(t,"-").concat(null==e?void 0:e.youtubeVideoId)))]})}function M(){let e=(0,i._)(["\n fragment VideoPlaylist on FlexiblePageContentContentVideoPlaylistLayout {\n eyebrow\n headline\n body\n primaryVideo {\n performanceName\n videoType\n youtubeVideoId\n videoUrl\n previewVideoUrl\n videoThumbnail {\n ...ACFMedia\n }\n youtubeThumbnail {\n ...ACFMedia\n }\n }\n videos {\n performanceName\n videoType\n youtubeVideoId\n videoUrl\n videoThumbnail {\n ...ACFMedia\n }\n youtubeThumbnail {\n ...ACFMedia\n }\n }\n }\n "]);return M=function(){return e},e}let A=o().bind(m());function I(e){let{eyebrow:t,headline:n,body:i,largeTitle:a}=e,s=!!(t||n||i),{mounted:o}=(0,f.F)(),p=(0,l.useRef)(null),{isDesktop:m,isReady:g}=(0,c.dg)(),v=h.LL,y=m?v.lg.triggerPercent:v.sm.triggerPercent,_=(0,d.Y)(p,{amount:y,once:v.once}),b=!0;return(0,r.jsx)("section",{className:A(["video"]),ref:p,children:(0,r.jsx)(u.Lz,{isInView:_,children:(0,r.jsxs)(u.W2,{className:A("content"),children:[s&&(0,r.jsx)(u._q,{largeTitle:a,eyebrow:t,headline:n,subhead:i,isInView:_,isRevealEnabled:b}),o&&g&&(0,r.jsx)(r.Fragment,{children:m?(0,r.jsx)(C,{...e}):(0,r.jsx)(P,{...e})})]})})})}I.fragments={entry:(0,a.ZP)(M())}},81996:function(e,t,n){"use strict";n.d(t,{L:function(){return i.default}});var i=n(24802)},60175:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return v}});var i=n(82729),r=n(85893),a=n(68806),s=n(19845),o=n.n(s),l=n(67294),u=n(76606),c=n(39583),d=n(79867),h=n(29366),f=n(95311),p=n.n(f);function m(){let e=(0,i._)(["\n fragment VideoSingular on FlexiblePageContentContentVideoSingularLayout {\n headline\n subhead\n eyebrow\n videoTitle\n videoType\n youtubeVideoId\n videoUrl\n previewVideoUrl\n cta {\n linkType\n externalLink\n label\n page {\n node {\n uri\n }\n }\n }\n videoThumbnail {\n ...ACFMedia\n }\n youtubeThumbnail {\n ...ACFMedia\n }\n }\n "]);return m=function(){return e},e}let g=o().bind(p());function v(e){let{headline:t,eyebrow:n,youtubeVideoId:i,videoType:a,videoThumbnail:s,videoUrl:o,youtubeThumbnail:f,videoTitle:p,detail:m,previewVideoUrl:v,cta:y,subhead:_}=e,b=!!(n||t||_),x={videoType:a,youtubeVideoId:i,videoUrl:o,videoThumbnail:s,youtubeThumbnail:f,previewVideoUrl:v},C=(0,l.useRef)(null),{isDesktop:E}=(0,c.dg)(),w=h.LL,T=E?w.lg.triggerPercent:w.sm.triggerPercent,S=(0,d.Y)(C,{amount:T,once:w.once}),L=!0;return(0,r.jsx)("section",{className:g(["video-singular",{detail:m}]),ref:C,children:(0,r.jsx)(u.Lz,{isInView:S,children:(0,r.jsxs)(u.W2,{className:g(["video-singular-content"]),children:[b&&(0,r.jsx)(u._q,{eyebrow:n,headline:t,subhead:_,cta:y,isRevealEnabled:L,isInView:S}),x&&(0,r.jsx)("div",{className:g("icon-button-hover-container"),children:(0,r.jsx)(u.vj,{...x})}),p&&(0,r.jsx)("span",{className:g(["title-lc-s","video-title"]),children:p})]})})})}v.fragments={entry:(0,a.ZP)(m())}},40415:function(e,t,n){"use strict";n.d(t,{W:function(){return i.default}});var i=n(60175)},4086:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return y}});var i=n(82729),r=n(85893),a=n(68806),s=n(19845),o=n.n(s),l=n(70772),u=n(67294),c=n(76606),d=n(45913),h=n(39176),f=n.n(h),p=n(83177),m=n(11163);function g(){let e=(0,i._)(["\n fragment WifiForm on FlexiblePageContentContentWifiFormLayout {\n headline\n subhead\n body\n form {\n firstName\n lastName\n email\n required\n error\n success {\n headline\n subhead\n }\n }\n }\n "]);return g=function(){return e},e}let v=o().bind(f());function y(e){var t,n;let{headline:i,subhead:a,body:s,form:o}=e,{labels:h}=(0,p.i)(),f=(0,m.useRouter)(),[g,y]=(0,u.useState)({first_name:"",last_name:"",email:""}),[_,b]=(0,u.useState)({loading:!1,success:null}),x=()=>{setTimeout(()=>{let e=localStorage.getItem("base_grant_url"),t=localStorage.getItem("user_continue_url");t||(t="".concat("https://rockhall.com","/")),e?window.top.location.href="".concat(e,"?continue_url=").concat(encodeURIComponent(t)):f.push("/")},1e3)},C=async e=>{e.preventDefault();let t=e.currentTarget;if(!t.checkValidity()){t.reportValidity();return}b({loading:!0,success:null});try{let e=await fetch("/api/wifi/",{method:"POST",body:JSON.stringify(g)});if((await e.json()).success){var n,i;b({loading:!1,success:!0,message:null==o?void 0:null===(n=o.success)||void 0===n?void 0:n.headline,sub:null==o?void 0:null===(i=o.success)||void 0===i?void 0:i.subhead}),y({first_name:"",last_name:"",email:""}),x()}else b({loading:!1,success:!1,message:null==o?void 0:o.error})}catch(e){b({loading:!1,success:!1,message:null==o?void 0:o.error})}finally{b(e=>({...e,loading:!1})),t&&t.reset()}},E=e=>{let{name:t,value:n}=e.target;y(e=>({...e,[t]:n}))},w=(0,u.useRef)(null),T=(0,u.useRef)(null);return(0,u.useEffect)(()=>{w.current&&(0,l.j)(w.current,{opacity:1},{duration:.2})},[w.current]),(0,u.useEffect)(()=>{T.current&&(0,l.j)(T.current,{opacity:1},{duration:.2})},[T.current,_]),(0,r.jsx)("section",{className:v("wifi-form"),children:(0,r.jsxs)(c.W2,{children:[i&&(0,r.jsx)(c._q,{headline:i}),(0,r.jsxs)("div",{className:v("content"),children:[(0,r.jsxs)("div",{className:v("intro"),children:[a&&(0,r.jsx)("h3",{className:v("subhead","title-lc-m"),children:a}),s&&(0,r.jsx)("div",{className:v("body","text-l","rich-text"),dangerouslySetInnerHTML:{__html:s}})]}),(0,r.jsx)("div",{className:v("form-container"),children:_.success?(0,r.jsxs)("div",{className:v("success-card"),ref:T,children:[(0,r.jsx)(d.Z,{className:v("icon")}),(0,r.jsxs)("div",{className:v("success-card__message"),children:[(0,r.jsx)("h4",{className:v("text-l","text-center"),children:_.message}),(0,r.jsx)("p",{className:v("text-m","text-center"),children:_.sub})]})]}):(0,r.jsxs)("form",{className:v("form"),onSubmit:C,ref:w,children:[(0,r.jsxs)("div",{className:v("input-wrapper"),children:[(0,r.jsx)("label",{className:v("label","text-m"),htmlFor:"first_name",children:o.firstName}),(0,r.jsx)("input",{className:v("input","text-m"),id:"first_name",maxLength:40,name:"first_name",required:!0,size:20,type:"text",value:g.first_name,onChange:E})]}),(0,r.jsxs)("div",{className:v("input-wrapper"),children:[(0,r.jsx)("label",{className:v("label","text-m"),htmlFor:"last_name",children:o.lastName}),(0,r.jsx)("input",{className:v("input","text-m"),id:"last_name",maxLength:80,name:"last_name",required:!0,size:20,type:"text",value:g.last_name,onChange:E})]}),(0,r.jsxs)("div",{className:v("input-wrapper"),children:[(0,r.jsx)("label",{className:v("label","text-m"),htmlFor:"email",children:o.email}),(0,r.jsx)("input",{className:v("input","text-m"),id:"email",maxLength:80,name:"email",required:!0,size:20,type:"email",value:g.email,onChange:E})]}),(0,r.jsxs)("div",{className:v("submit-wrapper"),children:[(0,r.jsx)("p",{className:v("required-message","text-m"),children:null==h?void 0:null===(t=h.newsletterFormGlobal)||void 0===t?void 0:t.required}),!1===_.success&&(0,r.jsx)("h5",{className:v("text-m","error-message"),children:_.message}),(0,r.jsx)(c.zx,{className:v("submit"),label:null==h?void 0:null===(n=h.newsletterFormGlobal)||void 0===n?void 0:n.submit})]})]})})]})]})})}y.fragments={entry:(0,a.ZP)(g())}},76094:function(e,t,n){"use strict";n.d(t,{w:function(){return i.default}});var i=n(4086)},76606:function(e,t,n){"use strict";let i;n.d(t,{QH:function(){return ug},M$:function(){return rl.M},jL:function(){return ui.j},OS:function(){return cI},zx:function(){return id.z},wY:function(){return u6},F8:function(){return cL},Jj:function(){return iE.J},Zh:function(){return un.Z},Bx:function(){return dn},k6:function(){return iC},W2:function(){return E.W},Kg:function(){return Dq},uc:function(){return wG},PZ:function(){return uD.P},FU:function(){return cB.F},Nl:function(){return cF},L0:function(){return iw.L},x$:function(){return cK},l7:function(){return us.l},$_:function(){return eG},gq:function(){return iT.g},h4:function(){return nd},ZF:function(){return ce},bd:function(){return cr},VM:function(){return l9.V},UJ:function(){return ue.U},hU:function(){return ig},Ee:function(){return tc.E},Gg:function(){return di.G},hJ:function(){return uT.h},i3:function(){return uI},Re:function(){return rR},q3:function(){return iN},L_:function(){return w_},xo:function(){return ro},fc:function(){return rS},UX:function(){return rV},lV:function(){return rY},_:function(){return DY},HD:function(){return cd},ty:function(){return a8},p2:function(){return l7},jF:function(){return ch.p},gT:function(){return kE},qq:function(){return cb},nt:function(){return c1},or:function(){return nh.o},u7:function(){return is.u},ZS:function(){return hI},eE:function(){return cV},pu:function(){return rC},DB:function(){return de},Lz:function(){return c4},Kl:function(){return td.K},Sn:function(){return hu},HJ:function(){return ng},ol:function(){return nX},dR:function(){return ia},H_:function(){return ur.H},qP:function(){return uw},_q:function(){return ub},sN:function(){return ri},yI:function(){return hB},sE:function(){return hS},$1:function(){return rf},BO:function(){return ua.B},Dx:function(){return ut.D},eo:function(){return ic},FD:function(){return uL.F},vj:function(){return cW.v},_F:function(){return cW._},L6:function(){return rL.L},Wf:function(){return uS.W},FN:function(){return hL}});var r,a,s,o,l,u,c,d,h,f,p,m,g,v,y,_,b,x,C,E=n(44853),w=n(85893),T=n(67294),S=n(42875),L=n(47021),P=n(25675),M=n.n(P),A=n(70772),I=n(79867),R=n(4801),k=n(29366),D=n(15799),N=n(39583),F=n(19845),O=n.n(F),j=n(15834),U=n.n(j);let V=O().bind(U());function B(e){let{name:t,type:n,placeholder:i,value:r,onChange:a,width:s}=e;return(0,w.jsxs)("div",{className:V("input-wrapper",s),children:[(0,w.jsx)("label",{className:V("tag-s","form-eyebrow",{show:!!r}),children:i}),(0,w.jsx)("input",{className:V("input","text-m",{filled:!!r}),type:null!=n?n:"text",name:t,required:!0,onChange:a,placeholder:i,value:r})]})}var H=n(45913),G=n(83177);let z=O().bind(U());function q(e){let{title:t,eyebrow:n,form:i}=e,[r,a]=(0,T.useState)({firstName:"",lastName:"",email:""}),s=(0,D.Ay)(t),{labels:{newsletterFormGlobal:o}={}}=(0,G.i)(),[l,u]=(0,T.useState)({loading:!1,success:null}),c=async e=>{e&&e.preventDefault&&e.preventDefault();let t=e.currentTarget;if(!t.checkValidity()){t.reportValidity();return}u({loading:!0,success:null});try{let e=await fetch("/api/subscribe/",{method:"POST",body:JSON.stringify(r)});(await e.json()).success?(u({loading:!1,success:!0,message:null==o?void 0:o.success.message,sub:null==o?void 0:o.success.sub}),a({firstName:"",lastName:"",email:""})):u({loading:!1,success:!1,message:null==o?void 0:o.error})}catch(e){u({loading:!1,success:!1,error:null==o?void 0:o.serverError})}finally{u(e=>({...e,loading:!1})),t&&t.reset()}},d=e=>{let{name:t,value:n}=e.target;a(e=>({...e,[t]:n}))},h=(0,T.useRef)(null),f=(0,T.useRef)(null);(0,T.useEffect)(()=>{h.current&&(0,A.j)(h.current,{opacity:1},{duration:.2})},[h.current]),(0,T.useEffect)(()=>{f.current&&(0,A.j)(f.current,{opacity:1},{duration:.2})},[f.current,l]);let{isDesktop:p}=(0,N.dg)(),m=(0,T.useRef)(null),g=!1,v=k.LL,y=p?v.lg.triggerPercent:v.sm.triggerPercent,_=(0,I.Y)(m,{amount:y,once:v.once}),b=k.LL.sm.distance,x=k.LL.sm.duration,C=k.LL.sm.delay,E=0,S=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return{initial:g?{opacity:k.LL.opacity,y:b}:{},animate:_?{opacity:1,y:0}:{},transition:{duration:x,ease:k.LL.ease,delay:e}}},L=S(0),P=S(E+=C),M=S(E+=C);return(0,w.jsxs)("div",{className:z("newsletter-form"),ref:m,children:[(0,w.jsxs)("div",{className:z("newsletter-form__copy"),children:[(0,w.jsx)(R.E.p,{className:z("eyebrow-l","eyebrow"),...L,children:n}),(0,w.jsx)(R.E.h2,{className:z("title-uc-l"),dangerouslySetInnerHTML:{__html:s},...P})]}),(0,w.jsx)(R.E.div,{className:z("form-wrapper"),...M,children:l.success?(0,w.jsxs)("div",{className:z("success-card"),ref:f,children:[(0,w.jsx)(H.Z,{className:z("icon")}),(0,w.jsxs)("div",{className:z("success-card__message"),children:[(0,w.jsx)("h4",{className:z("text-l","text-center"),children:l.message}),(0,w.jsx)("p",{className:z("text-m","text-center"),children:l.sub})]})]}):(0,w.jsxs)("form",{className:z("form"),onSubmit:c,ref:h,children:[(0,w.jsx)(B,{name:"firstName",placeholder:i.firstName,value:r.firstName,width:"half",onChange:d}),(0,w.jsx)(B,{name:"lastName",placeholder:i.lastName,value:r.lastName,width:"half",onChange:d}),(0,w.jsx)(B,{name:"email",type:"email",placeholder:i.email,value:r.email,width:"full",onCh
244ange:d}),(0,w.jsxs)("div",{className:z("submit-wrapper"),children:[!1===l.success&&(0,w.jsx)("h5",{className:z("text-m","error-message"),children:"An unexpected error has occurred. Please try again later."}),(0,w.jsx)(id.z,{className:z("submit"),label:i.submit})]})]})})]})}var W=n(15034);function $(){return($=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var Z=function(e){return T.createElement("svg",$({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),sx||(sx=T.createElement("path",{d:"M8 1.60059C8.8404 1.60059 9.67278 1.76533 10.4492 2.08691C11.2257 2.40853 11.9311 2.88036 12.5254 3.47461C13.1197 4.06889 13.5915 4.77432 13.9131 5.55078C14.2347 6.32724 14.4004 7.15957 14.4004 8C14.4004 9.69739 13.7256 11.3252 12.5254 12.5254C11.3252 13.7256 9.69739 14.4004 8 14.4004C7.15957 14.4004 6.32724 14.2347 5.55078 13.9131C4.77432 13.5915 4.06889 13.1197 3.47461 12.5254C2.27444 11.3252 1.60059 9.69734 1.60059 8C1.60061 6.30265 2.2744 4.67482 3.47461 3.47461C4.67482 2.2744 6.30265 1.60061 8 1.60059ZM8 2.87988C6.64213 2.87991 5.34005 3.41972 4.37988 4.37988C3.41972 5.34005 2.87991 6.64213 2.87988 8C2.87988 9.35786 3.41976 10.6599 4.37988 11.6201C5.34005 12.5803 6.64213 13.1201 8 13.1201C9.35791 13.1201 10.6599 12.5803 11.6201 11.6201C12.5803 10.6599 13.1201 9.35791 13.1201 8C13.1201 6.64213 12.5803 5.34005 11.6201 4.37988C10.6599 3.41976 9.35786 2.87988 8 2.87988ZM9.05762 6.54395L11.8047 6.76367L9.71191 8.55664L10.3516 11.2363L8 9.7998L5.64844 11.2363L6.28809 8.55664L4.19629 6.76367L6.94238 6.54395L8 4L9.05762 6.54395Z",fill:"currentColor"})))};function Y(){return(Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var K=function(e){return T.createElement("svg",Y({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16",fill:"none"},e),T.createElement("mask",{id:"mask0_3019_17293",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:16,height:16},sC||(sC=T.createElement("rect",{width:16,height:16,fill:"#D9D9D9"}))),sE||(sE=T.createElement("g",{mask:"url(#mask0_3019_17293)"},T.createElement("path",{d:"M3.5999 14.4C3.2699 14.4 2.9874 14.2805 2.7524 14.0416C2.5174 13.8028 2.3999 13.5222 2.3999 13.2V4.39998C2.3999 4.07775 2.5174 3.7972 2.7524 3.55831C2.9874 3.31942 3.2699 3.19998 3.5999 3.19998H4.7999V1.59998H5.9999V3.19998H9.9999V1.59998H11.1999V3.19998H12.3999C12.7299 3.19998 13.0124 3.31942 13.2474 3.55831C13.4824 3.7972 13.5999 4.07775 13.5999 4.39998V13.2C13.5999 13.5222 13.4824 13.8028 13.2474 14.0416C13.0124 14.2805 12.7299 14.4 12.3999 14.4H3.5999ZM3.5999 13.2H12.3999V7.19998H3.5999V13.2ZM3.5999 5.99998H12.3999V4.39998H3.5999V5.99998ZM8.0034 9.59998C7.8344 9.59998 7.69157 9.54281 7.5749 9.42848C7.45824 9.31414 7.3999 9.17248 7.3999 9.00348C7.3999 8.83448 7.45707 8.69164 7.5714 8.57498C7.68574 8.45831 7.8274 8.39998 7.9964 8.39998C8.1654 8.39998 8.30824 8.45714 8.4249 8.57148C8.54157 8.68581 8.5999 8.82748 8.5999 8.99648C8.5999 9.16548 8.54274 9.30831 8.4284 9.42498C8.31407 9.54164 8.1724 9.59998 8.0034 9.59998ZM5.4034 9.59998C5.2344 9.59998 5.09157 9.54281 4.9749 9.42848C4.85824 9.31414 4.7999 9.17248 4.7999 9.00348C4.7999 8.83448 4.85707 8.69164 4.9714 8.57498C5.08574 8.45831 5.2274 8.39998 5.3964 8.39998C5.5654 8.39998 5.70824 8.45714 5.8249 8.57148C5.94157 8.68581 5.9999 8.82748 5.9999 8.99648C5.9999 9.16548 5.94274 9.30831 5.8284 9.42498C5.71407 9.54164 5.5724 9.59998 5.4034 9.59998ZM10.6034 9.59998C10.4344 9.59998 10.2916 9.54281 10.1749 9.42848C10.0582 9.31414 9.9999 9.17248 9.9999 9.00348C9.9999 8.83448 10.0571 8.69164 10.1714 8.57498C10.2857 8.45831 10.4274 8.39998 10.5964 8.39998C10.7654 8.39998 10.9082 8.45714 11.0249 8.57148C11.1416 8.68581 11.1999 8.82748 11.1999 8.99648C11.1999 9.16548 11.1427 9.30831 11.0284 9.42498C10.9141 9.54164 10.7724 9.59998 10.6034 9.59998ZM8.0034 12C7.8344 12 7.69157 11.9428 7.5749 11.8285C7.45824 11.7141 7.3999 11.5
244725 7.3999 11.4035C7.3999 11.2345 7.45707 11.0916 7.5714 10.975C7.68574 10.8583 7.8274 10.8 7.9964 10.8C8.1654 10.8 8.30824 10.8571 8.4249 10.9715C8.54157 11.0858 8.5999 11.2275 8.5999 11.3965C8.5999 11.5655 8.54274 11.7083 8.4284 11.825C8.31407 11.9416 8.1724 12 8.0034 12ZM5.4034 12C5.2344 12 5.09157 11.9428 4.9749 11.8285C4.85824 11.7141 4.7999 11.5725 4.7999 11.4035C4.7999 11.2345 4.85707 11.0916 4.9714 10.975C5.08574 10.8583 5.2274 10.8 5.3964 10.8C5.5654 10.8 5.70824 10.8571 5.8249 10.9715C5.94157 11.0858 5.9999 11.2275 5.9999 11.3965C5.9999 11.5655 5.94274 11.7083 5.8284 11.825C5.71407 11.9416 5.5724 12 5.4034 12ZM10.6034 12C10.4344 12 10.2916 11.9428 10.1749 11.8285C10.0582 11.7141 9.9999 11.5725 9.9999 11.4035C9.9999 11.2345 10.0571 11.0916 10.1714 10.975C10.2857 10.8583 10.4274 10.8 10.5964 10.8C10.7654 10.8 10.9082 10.8571 11.0249 10.9715C11.1416 11.0858 11.1999 11.2275 11.1999 11.3965C11.1999 11.5655 11.1427 11.7083 11.0284 11.825C10.9141 11.9416 10.7724 12 10.6034 12Z",fill:"currentColor"}))))};function X(){return(X=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var Q=function(e){return T.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16",fill:"none"},e),T.createElement("mask",{id:"mask0_3254_10138",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:16,height:16},sw||(sw=T.createElement("rect",{width:16,height:16,fill:"#D9D9D9"}))),sT||(sT=T.createElement("g",{mask:"url(#mask0_3254_10138)"},T.createElement("path",{d:"M2.8001 13.6C2.4701 13.6 2.1876 13.4825 1.9526 13.2475C1.7176 13.0125 1.6001 12.73 1.6001 12.4V3.60002C1.6001 3.27002 1.7176 2.98752 1.9526 2.75252C2.1876 2.51752 2.4701 2.40002 2.8001 2.40002H13.2001C13.5301 2.40002 13.8126 2.51752 14.0476 2.75252C14.2826 2.98752 14.4001 3.27002 14.4001 3.60002V12.4C14.4001 12.73 14.2826 13.0125 14.0476 13.2475C13.8126 13.4825 13.5301 13.6 13.2001 13.6H2.8001ZM2.8001 12.4H13.2001V3.60002H2.8001V12.4ZM4.0001 10.8H12.0001V9.60002H4.0001V10.8ZM4.0001 8.40002H6.8001V4.80002H4.0001V8.40002ZM8.0001 8.40002H12.0001V7.20002H8.0001V8.40002ZM8.0001 6.00002H12.0001V4.80002H8.0001V6.00002Z",fill:"currentColor"}))))};function J(){return(J=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var ee=function(e){return T.createElement("svg",J({viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),sS||(sS=T.createElement("path",{d:"M2.91312 15.2204C2.45756 15.2204 2.07145 15.0621 1.75479 14.7453C1.43812 14.4285 1.27979 14.0422 1.27979 13.5865V6.60845C1.27979 6.15267 1.43812 5.76728 1.75479 5.45228C2.07145 5.13728 2.45756 4.97978 2.91312 4.97978H4.66829L8.00012 1.64795L11.332 4.97978H13.0871C13.5427 4.97978 13.9288 5.13817 14.2455 5.45495C14.5621 5.77173 14.7205 6.15801 14.7205 6.61378V13.5918C14.7205 14.0476 14.5621 14.433 14.2455 14.7479C13.9288 15.063 13.5427 15.2204 13.0871 15.2204H2.91312ZM2.91312 13.5871H13.0871V6.61312H2.91312V13.5871ZM4.18345 12.5001H11.8168L9.20012 8.99862L7.40012 11.3986L6.20012 9.79862L4.18345 12.5001ZM11.3248 9.30012C11.6026 9.30012 11.8387 9.20289 12.0331 9.00845C12.2276 8.81401 12.3248 8.57789 12.3248 8.30012C12.3248 8.02234 12.2276 7.78623 12.0331 7.59178C11.8387 7.39734 11.6026 7.30012 11.3248 7.30012C11.047 7.30012 10.8109 7.39734 10.6165 7.59178C10.422 7.78623 10.3248 8.02234 10.3248 8.30012C10.3248 8.57789 10.422 8.81401 10.6165 9.00845C10.8109 9.20289 11.047 9.30012 11.3248 9.30012ZM6.01829 4.97978H9.98195L8.00012 2.99795L6.01829 4.97978Z",fill:"currentColor"})))};function et(){return(et=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var en=function(e){return T.createElement("svg",et({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),T.createElement("mask",{id:"mask0_3551_12555",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:16,height:16},sL||(sL=T.createElement("rect",{width:16,height:16,fill:"#D9D9D9"}))),sP||(sP=T.createElement("g",{mask:"url(#mask0_3551_12555)"},T.createElement("path",{d:"M3.01712 13.9584C2.56801 13.9584 2.18351 13.7985 1.86362 13.4786C1.54373 13.1587 1.38379 12.7742 1.38379 12.3251V1.94824L2.52179 3.04308L3.61546 1.94824L4.71562 3.04308L5.81596 1.94824L6.90962 3.04308L8.00046 1.94824L9.09129 3.04308L10.185 1.94824L11.2853 3.04308L12.3855 1.94824L13.4791 3.04308L14.6171 1.94824V12.3251C14.6171 12.7742 14.4572 13.1587 14.1373 13.4786C13.8174 13.7985 13.4329 13.9584 12.9838 13.9584H3.01712ZM3.01712 12.3251H7.25912V8.72508H3.01712V12.3251ZM8.74179 12.3251H12.9838V11.27
24457H8.74179V12.3251ZM8.74179 9.78374H12.9838V8.72508H8.74179V9.78374ZM3.01712 7.24241H12.9838V5.12508H3.01712V7.24241Z",fill:"currentColor"}))))};function ei(){return(ei=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var er=function(e){return T.createElement("svg",ei({viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),sM||(sM=T.createElement("path",{d:"M16.8001 2.7207C9.4668 2.7207 3.4668 8.70737 3.4668 16.0807C3.4668 22.7474 8.3468 28.2807 14.7201 29.2807V19.9474H11.3335V16.0807H14.7201V13.134C14.7201 9.78737 16.7068 7.94737 19.7601 7.94737C21.2135 7.94737 22.7335 8.2007 22.7335 8.2007V11.494H21.0535C19.4001 11.494 18.8801 12.5207 18.8801 13.574V16.0807H22.5868L21.9868 19.9474H18.8801V29.2807C22.0221 28.7845 24.8831 27.1814 26.9467 24.7608C29.0103 22.3402 30.1406 19.2616 30.1335 16.0807C30.1335 8.70737 24.1335 2.7207 16.8001 2.7207Z",fill:"currentColor"})))};function ea(){return(ea=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var es=function(e){return T.createElement("svg",ea({viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),sA||(sA=T.createElement("path",{transform:"translate(5.4592 4.4992)",d:"M21.079 8.242H0V5.406H21.08V8.242H21.079ZM0 10.812V24L10.54 18.11L21.08 24V10.812H0ZM21.08 0H0V2.836H21.08V0Z",fill:"currentColor"})))};function eo(){return(eo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var el=function(e){return T.createElement("svg",eo({width:33,height:32,viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),sI||(sI=T.createElement("path",{d:"M22.5339 7.76C21.6227 6.71937 21.1205 5.3832 21.1206 4H17.0006V20.5333C16.9695 21.4283 16.592 22.2761 15.9477 22.898C15.3034 23.5199 14.4427 23.8672 13.5473 23.8667C11.6539 23.8667 10.0806 22.32 10.0806 20.4C10.0806 18.1067 12.2939 16.3867 14.5739 17.0933V12.88C9.97393 12.2667 5.94727 15.84 5.94727 20.4C5.94727 24.84 9.62727 28 13.5339 28C17.7206 28 21.1206 24.6 21.1206 20.4V12.0133C22.7913 13.2131 24.7971 13.8569 26.8539 13.8533V9.73333C26.8539 9.73333 24.3473 9.85333 22.5339 7.76Z",fill:"currentColor"})))};function eu(){return(eu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var ec=function(e){return T.createElement("svg",eu({viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),sR||(sR=T.createElement("path",{d:"M13.5339 19.9993L20.4539 15.9993L13.5339 11.9993V19.9993ZM28.9472 9.55935C29.1205 10.186 29.2405 11.026 29.3205 12.0927C29.4139 13.1593 29.4539 14.0793 29.4539 14.8793L29.5339 15.9993C29.5339 18.9193 29.3205 21.066 28.9472 22.4393C28.6139 23.6393 27.8405 24.4127 26.6405 24.746C26.0139 24.9193 24.8672 25.0394 23.1072 25.1194C21.3739 25.2127 19.7872 25.2527 18.3205 25.2527L16.2005 25.3327C10.6139 25.3327 7.13385 25.1193 5.76052 24.746C4.56052 24.4127 3.78719 23.6393 3.45385 22.4393C3.28052 21.8127 3.16052 20.9727 3.08052 19.906C2.98719 18.8393 2.94719 17.9193 2.94719 17.1193L2.86719 15.9993C2.86719 13.0793 3.08052 10.9327 3.45385 9.55935C3.78719 8.35935 4.56052 7.58602 5.76052 7.25268C6.38719 7.07935 7.53385 6.95935 9.29385 6.87935C11.0272 6.78602 12.6139 6.74602 14.0805 6.74602L16.2005 6.66602C21.7872 6.66602 25.2672 6.87935 26.6405 7.25268C27.8405 7.58602 28.6139 8.35935 28.9472 9.55935Z",fill:"currentColor"})))};function ed(){return(ed=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var eh=function(e){return T.createElement("svg",ed({viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),sk||(sk=T.createElement("path",{d:"M10.4003 2.66602H21.6003C25.867 2.66602 29.3337 6.13268 29.3337 10.3993V21.5993C29.3337 23.6504 28.5189 25.6174 27.0686 27.0676C25.6183 28.5179 23.6513 29.3327 21.6003 29.3327H10.4003C6.13366 29.3327 2.66699 25.866 2.66699 21.5993V10.3993C2.66699 8.34834 3.48175 6.38134 4.93203 4.93106C6.38231 3.48078 8.34932 2.66602 10.4003 2.66602ZM10.1337 5.33268C8.86062 5.33268 7.63972 5.8384
2446.73955 6.73857C5.83937 7.63874 5.33366 8.85964 5.33366 10.1327V21.866C5.33366 24.5193 7.48033 26.666 10.1337 26.666H21.867C23.14 26.666 24.3609 26.1603 25.2611 25.2601C26.1613 24.36 26.667 23.1391 26.667 21.866V10.1327C26.667 7.47935 24.5203 5.33268 21.867 5.33268H10.1337ZM23.0003 7.33268C23.4424 7.33268 23.8663 7.50828 24.1788 7.82084C24.4914 8.1334 24.667 8.55732 24.667 8.99935C24.667 9.44138 24.4914 9.8653 24.1788 10.1779C23.8663 10.4904 23.4424 10.666 23.0003 10.666C22.5583 10.666 22.1344 10.4904 21.8218 10.1779C21.5093 9.8653 21.3337 9.44138 21.3337 8.99935C21.3337 8.55732 21.5093 8.1334 21.8218 7.82084C22.1344 7.50828 22.5583 7.33268 23.0003 7.33268ZM16.0003 9.33268C17.7684 9.33268 19.4641 10.0351 20.7144 11.2853C21.9646 12.5355 22.667 14.2312 22.667 15.9993C22.667 17.7675 21.9646 19.4632 20.7144 20.7134C19.4641 21.9636 17.7684 22.666 16.0003 22.666C14.2322 22.666 12.5365 21.9636 11.2863 20.7134C10.036 19.4632 9.33366 17.7675 9.33366 15.9993C9.33366 14.2312 10.036 12.5355 11.2863 11.2853C12.5365 10.0351 14.2322 9.33268 16.0003 9.33268ZM16.0003 11.9993C14.9395 11.9993 13.922 12.4208 13.1719 13.1709C12.4218 13.9211 12.0003 14.9385 12.0003 15.9993C12.0003 17.0602 12.4218 18.0776 13.1719 18.8278C13.922 19.5779 14.9395 19.9993 16.0003 19.9993C17.0612 19.9993 18.0786 19.5779 18.8288 18.8278C19.5789 18.0776 20.0003 17.0602 20.0003 15.9993C20.0003 14.9385 19.5789 13.9211 18.8288 13.1709C18.0786 12.4208 17.0612 11.9993 16.0003 11.9993Z",fill:"currentColor"})))};function ef(){return(ef=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var ep=function(e){return T.createElement("svg",ef({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),sD||(sD=T.createElement("path",{d:"M3.99968 14.6661C4.68856 14.6661 5.25256 14.4939 5.69168 14.1495C6.13079 13.805 6.46679 13.2995 6.69968 12.6328C6.88857 12.0773 7.06923 11.6884 7.24168 11.4661C7.41412 11.2439 7.81123 10.8884 8.43301 10.3995C9.1219 9.84392 9.66634 9.21615 10.0663 8.51615C10.4663 7.81615 10.6663 6.97726 10.6663 5.99948C10.6663 4.67726 10.219 3.56903 9.32434 2.67481C8.42968 1.78059 7.32145 1.33326 5.99968 1.33281C4.6779 1.33237 3.56945 1.7797 2.67434 2.67481C1.77923 3.56992 1.33212 4.67815 1.33301 5.99948H2.66634C2.66634 5.05504 2.9859 4.26348 3.62501 3.62481C4.26412 2.98615 5.05568 2.66659 5.99968 2.66615C6.94368 2.6657 7.73545 2.98526 8.37501 3.62481C9.01456 4.26437 9.3339 5.05592 9.33301 5.99948C9.33301 6.75503 9.18301 7.39948 8.88301 7.93281C8.58301 8.46615 8.15523 8.94392 7.59968 9.36615C7.0219 9.78837 6.5719 10.1995 6.24968 10.5995C5.92745 10.9995 5.68856 11.4328 5.53301 11.8995C5.37745 12.3884 5.19123 12.7495 4.97434 12.9828C4.75745 13.2161 4.43256 13.3328 3.99968 13.3328C3.63301 13.3328 3.31923 13.2024 3.05834 12.9415C2.79745 12.6806 2.66679 12.3666 2.66634 11.9995H1.33301C1.33301 12.7328 1.59412 13.3606 2.11634 13.8828C2.63856 14.405 3.26634 14.6661 3.99968 14.6661ZM5.99968 7.66615C6.46634 7.66615 6.86079 7.50237 7.18301 7.17481C7.50523 6.84726 7.66634 6.45548 7.66634 5.99948C7.66634 5.53281 7.50523 5.13837 7.18301 4.81615C6.86079 4.49392 6.46634 4.33281 5.99968 4.33281C5.53301 4.33281 5.13856 4.49392 4.81634 4.81615C4.49412 5.13837 4.33301 5.53281 4.33301 5.99948C4.33301 6.45504 4.49412 6.84681 4.81634 7.17481C5.13856 7.50281 5.53301 7.66659 5.99968 7.66615ZM12.333 9.68281L11.3497 8.69948C11.5608 8.28837 11.7219 7.85792 11.833 7.40815C11.9441 6.95837 11.9997 6.48881 11.9997 5.99948C11.9997 5.51015 11.9441 5.04348 11.833 4.59948C11.7219 4.15548 11.5608 3.7277 11.3497 3.31615L12.333 2.33281C12.6552 2.87726 12.9026 3.45792 13.075 4.07481C13.2475 4.6917 13.3335 5.33326 13.333 5.99948C13.333 6.67726 13.247 7.32459 13.075 7.94148C12.903 8.55837 12.6557 9.13881 12.333 9.68281ZM14.283 11.6161L13.2997 10.6495C13.733 9.98281 14.0692 9.26059 14.3083 8.48281C14.5475 7.70504 14.6668 6.88837 14.6663 6.03281C14.6663 5.16615 14.547 4.34103 14.3083 3.55748C14.0697 2.77392 13.7279 2.04903 13.283 1.38281L14.283 0.382812C14.8275 1.18281 15.2497 2.05792 15.5497 3.00815C15.8497 3.95837 15.9997 4.95548 15.9997 5.99948C15.9997 7.04348 15.8497 8.04081 15.5497 8.99148C15.2497 9.94215 14.8275 10.817 14.283 11.6161Z",fill:"currentColor"})))};function em(){return(em=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var eg=function(e){return T.createElement("svg",em({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),sN||(sN=T.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.11741 8.066V5.4166C9.11741 4.45175 8.33225 3.6666 7.36741 3.6666C6.40256 3.6666 5.
24461741 4.45175 5.61741 5.4166V9.14878C5.29347 8.87703 4.88916 8.72291 4.4645 8.72291C3.95897 8.72291 3.47363 8.9371 3.1341 9.31078C2.47753 10.0303 2.52028 11.1404 3.21716 11.8154C3.21803 11.8163 3.21838 11.8173 3.21925 11.8182L6.167 14.6666H12.667V9.1666L9.11741 8.066ZM11.3337 13.3333H6.667C6.667 13.3333 4.33144 11.1318 4.10422 10.9247C3.84569 10.6892 3.82703 10.2887 4.06256 10.03C4.29816 9.77147 4.69872 9.75285 4.95728 9.98838C5.13041 10.1461 6.26828 11.0833 6.26828 11.0833L6.7841 10.8166V5.41656C6.7841 5.09438 7.04528 4.83325 7.36741 4.83325C7.6896 4.83325 7.95075 5.09441 7.95075 5.4166V9.10019L11.3337 10.1666V13.3333ZM3.42147 6.44913C3.33491 6.11866 3.2841 5.77385 3.2841 5.4166C3.2841 3.16528 5.11578 1.33325 7.36741 1.33325C9.61903 1.33325 11.4508 3.16528 11.4508 5.4166C11.4508 5.77385 11.3999 6.11866 11.3133 6.44913L10.0486 6.01131C10.0912 5.81925 10.1174 5.62131 10.1174 5.4166C10.1174 3.90022 8.88378 2.6666 7.36741 2.6666C5.85103 2.6666 4.61741 3.90022 4.61741 5.4166C4.61741 5.62135 4.64363 5.81925 4.68622 6.01128L3.42147 6.44913Z",fill:"black"})))};function ev(){return(ev=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var ey=function(e){return T.createElement("svg",ev({viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),sF||(sF=T.createElement("path",{d:"M13.5 4.24987H9.8125L11.5325 2.52987C11.6734 2.38897 11.7526 2.19787 11.7526 1.99862C11.7526 1.79936 11.6734 1.60826 11.5325 1.46737C11.3916 1.32647 11.2005 1.24731 11.0013 1.24731C10.802 1.24731 10.6109 1.32647 10.47 1.46737L8 3.93737L5.53062 1.46924C5.38973 1.32834 5.19863 1.24919 4.99937 1.24919C4.80012 1.24919 4.60902 1.32834 4.46812 1.46924C4.32723 1.61014 4.24807 1.80123 4.24807 2.00049C4.24807 2.19975 4.32723 2.39084 4.46812 2.53174L6.1875 4.24987H2.5C2.16848 4.24987 1.85054 4.38156 1.61612 4.61598C1.3817 4.8504 1.25 5.16834 1.25 5.49987V12.9999C1.25 13.3314 1.3817 13.6493 1.61612 13.8837C1.85054 14.1182 2.16848 14.2499 2.5 14.2499H13.5C13.8315 14.2499 14.1495 14.1182 14.3839 13.8837C14.6183 13.6493 14.75 13.3314 14.75 12.9999V5.49987C14.75 5.16834 14.6183 4.8504 14.3839 4.61598C14.1495 4.38156 13.8315 4.24987 13.5 4.24987ZM2.75 5.74987H8V12.7499H2.75V5.74987ZM13.25 12.7499H9.5V5.74987H13.25V12.7499ZM10.5 7.74987C10.5 7.55208 10.5586 7.35874 10.6685 7.1943C10.7784 7.02985 10.9346 6.90167 11.1173 6.82599C11.3 6.7503 11.5011 6.73049 11.6951 6.76908C11.8891 6.80767 12.0673 6.90291 12.2071 7.04276C12.347 7.18261 12.4422 7.36079 12.4808 7.55478C12.5194 7.74876 12.4996 7.94982 12.4239 8.13255C12.3482 8.31527 12.22 8.47145 12.0556 8.58134C11.8911 8.69122 11.6978 8.74987 11.5 8.74987C11.2348 8.74987 10.9804 8.64451 10.7929 8.45697C10.6054 8.26944 10.5 8.01508 10.5 7.74987ZM12.5 10.7499C12.5 10.9476 12.4414 11.141 12.3315 11.3054C12.2216 11.4699 12.0654 11.5981 11.8827 11.6737C11.7 11.7494 11.4989 11.7692 11.3049 11.7307C11.1109 11.6921 10.9327 11.5968 10.7929 11.457C10.653 11.3171 10.5578 11.1389 10.5192 10.945C10.4806 10.751 10.5004 10.5499 10.5761 10.3672C10.6518 10.1845 10.78 10.0283 10.9444 9.9184C11.1089 9.80851 11.3022 9.74987 11.5 9.74987C11.7652 9.74987 12.0196 9.85522 12.2071 10.0428C12.3946 10.2303 12.5 10.4846 12.5 10.7499Z",fill:"currentColor"})))};function e_(){return(e_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var eb=function(e){return T.createElement("svg",e_({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16",fill:"none"},e),sO||(sO=T.createElement("path",{d:"M8 12.4444H5.33333V9.66667H8M16 9.66667V8.27778L15.1111 4.8H0.888889L0 8.27778V9.66667H0.888889V14.2222H9.77778V9.66667H13.3333V14.2222H14.2222V9.66667M15.1111 2.02222H0.888889V3.41111H15.1111V2.02222Z",fill:"currentColor"})))};let ex={induction:W.Z,inductee:Z,event:K,press:Q,exhibit:ee,newsletter:en,post:ep,interactive:eg,rhtv:ey,shop:eb},eC={facebook:er,substack:es,tikTok:el,youtube:ec,instagram:eh},eE=O().bind(U());function ew(e){let{socialLinks:t}=e,n=Object.entries(t).filter(e=>{let[t,n]=e;return n&&"__typename"!==t}),i=["instagram","facebook","tikTok","youtube","substack"];n.sort((e,t)=>
244i.indexOf(e[0])-i.indexOf(t[0]));let{isDesktop:r}=(0,N.dg)(),a=!1,s=(0,T.useRef)(null),o=k.LL,l=r?o.lg.triggerPercent:o.sm.triggerPercent,u=(0,I.Y)(s,{amount:l,once:o.once}),c=k.LL.opacity,d=k.LL.sm.distance,h=k.LL.sm.duration,f=k.LL.sm.delay,p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return{initial:a?{opacity:c,y:d}:{},animate:u?{opacity:1,y:0}:{},transition:{duration:h,ease:k.LL.ease,delay:e}}};return(0,w.jsx)("div",{className:eE("social-links"),ref:s,children:n.map((e,t)=>{let[n,i]=e,r=eC[n]?eC[n]:null,a=p(f+.06*t);return(0,w.jsxs)(R.E.a,{href:i,target:"_blank",rel:"noopener noreferrer",className:eE("social-link",n),"aria-label":n,"data-gtm-section":"footer",...a,children:[r&&(0,w.jsx)("span",{className:eE("icon"),children:(0,w.jsx)(r,{})}),(0,w.jsxs)("div",{className:eE("social-link__copy"),children:[(0,w.jsx)("p",{className:eE("cta"),children:n}),(0,w.jsx)("p",{className:eE(["text-s","count"]),children:"999 Followers"})]})]},n)})})}var eT=n(87048),eS=n(78706),eL=n(34764),eP=n(65293),eM=n.n(eP);let eA=O().bind(eM()),eI=e=>{let t=(0,D.Cr)(e);return t?(0,w.jsxs)(td.K,{className:eA("footer-link"),target:null==t?void 0:t.target,href:null==t?void 0:t.url,"data-gtm-section":"footer",children:[(0,w.jsx)("span",{className:eA("text-m"),dangerouslySetInnerHTML:{__html:null==t?void 0:t.label}}),(null==t?void 0:t.target)==="_blank"&&(0,w.jsx)(eL.Z,{})]}):null};function eR(e){let{links:t,activeIndices:n,label:i,handleHeaderClick:r,index:a,isLast:s}=e,{isDesktop:o,isReady:l}=(0,N.dg)(),{mounted:u}=(0,eT.F)(),c=!o,[d,h]=(0,T.useState)(-1),[f,p]=(0,T.useState)(!1),m=(0,T.useRef)(null),[g,v]=(0,T.useState)({maxHeight:0,opacity:0}),y=(0,T.useRef)(null),_=(0,T.useRef)(null);return((0,T.useEffect)(()=>{if(!u||!l)return;let e=null!==_.current&&_.current!==c;_.current=c,y.current&&clearTimeout(y.current);let t=e?0:200;return y.current=setTimeout(()=>{h(c?-1:0),c?p(n.includes(a)):p(!0)},t),()=>{y.current&&clearTimeout(y.current)}},[c,n,a,u,l]),(0,T.useEffect)(()=>{let e;if(u&&l)return e=requestAnimationFrame(()=>{if(f&&m.current){let e=m.current.scrollHeight;v({maxHeight:"".concat(e,"px"),opacity:1})}else v({maxHeight:"0px",opacity:0})}),()=>{e&&cancelAnimationFrame(e)}},[f,c,t.length,u,l]),u&&l)?(0,w.jsxs)(R.E.div,{className:eA("footer-column",{"is-collapsed":!f,"is-expanded":f}),children:[(0,w.jsxs)("button",{className:eA("footer-column__header"),tabIndex:d,role:c?"button":"heading","aria-expanded":f,"aria-controls":"footer-column__links-".concat(a),onClick:c?()=>r(a):void 0,onKeyDown:e=>{c&&("Enter"===e.key||" "===e.key)&&r(a)},"data-gtm-section":"footer","aria-level":c?void 0:2,children:[(0,w.jsx)("p",{className:eA("footer-column__header__label"),children:i}),(0,w.jsxs)("div",{className:eA("footer-column__header__icon"),children:[(0,w.jsx)(eS.Z,{}),(0,w.jsx)(eS.Z,{className:eA("vertical")})]})]}),(0,w.jsx)("div",{id:"footer-column__links-".concat(a),className:eA("footer-column__links",{"is-collapsed":!f}),ref:m,style:g,"aria-hidden":!f,children:t.map((e,t)=>(0,w.jsx)(eI,{...e},t))}),s&&(0,w.jsxs)("div",{className:eA("reduce-motion"),children:[(0,w.jsx)("p",{className:eA("reduce-motion__label"),role:"heading","aria-level":2,children:"Accessibility"}),(0,w.jsx)(de,{className:eA("reduce-motion__toggle"),dataGtmSection:"footer"})]})]},a):(0,w.jsx)("div",{className:eA("footer-column",{"is-collapsed":!0}),children:(0,w.jsx)("div",{className:eA("footer-column__header"),children:(0,w.jsx)("p",{className:eA("footer-column__header__label"),children:i})})},a)}let ek=O().bind(eM());var eD=e=>{let{footerColumns:t}=e,{isDesktop:n,isReady:i}=(0,N.dg)(),{mounted:r}=(0,eT.F)(),a=!n,[s,o]=(0,T.useState)([]),l=(0,T.useRef)(null),u=(0,T.useRef)(null);(0,T.useEffect)(()=>{if(!r||!i)return;let e=null!==u.current&&u.current!==a;return u.current=a,l.current&&clearTimeout(l.current),e?o([]):l.current=setTimeout(()=>{o([])},200),()=>{l.current&&clearTimeout(l.current)}},[a,r,i]);let c=e=>{a&&o(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])};return t&&t.length?(0,w.jsx)("div",{className:ek("footer-columns"),children:t.map((e,n)=>(0,T.createElement)(eR,{...e,key:n,index:n,isLast:n===t.length-1,handleHeaderClick:c,activeIndices:s}))}):null};function eN(){return(eN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var eF=function(e){return T.createElement("svg",eN({viewBox:"0 0 1440 95",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),sj||(sj=T.createElement("path",{d:"M1075.8 7.05356C1071.6 3.22169 1066.1 1.11458 1060.42 1.14712H1060.34C1051.05 1.58644 1044.02 6.1261 1040.55 13.9119C1036.6 22.7959 1038.25 34.6902 1044.3 40.9953C1048.22 44.998 1053.62 47.219 1059.23 47.1213C1061.92 47.1213 1064.6 46.6495 1067.14 45.7383C1076.52 42.4841 1082.73 33.5593 1082.53 23.6339C1082.53 16.9058 1080.21 11.1783 1075.8 7.05356ZM1069.8 29.4102C1069.06 37.4237 1065.61 42.4271 1060.79 42.4271L1060.74 42.7525V42.4271C1055.75 41.939 1053.34 37.318 1052.19 33.5268C1049.37 24.1302 1051.38 11.3003 1054.99 7.78576C1056.2 6.4922 1057.88 5.74373 1059.64 5.69491C1060.73 5.70305 1061.81 6.00407 1062.75 6.55729C1066.77 8.82712 1071.03 16.1654 1069.8 29.4102ZM1082.41 2.21288H1118.26V14.7824H1115.48L1115.17 14.3024C1110.93 7.63932 1108.29 6.87458 1103.61 6.82576H1098.92V21.242H1101.36C1105.72 21.2014 1105.98 20.7051 1108.56 16.019L1109.06 15.1159H1111.83V32.0542H1109.05L1108.56 31.143C1105.98 26.4081 1105.72 25.9119 1101.35 25.863H1098.91V38.2617C1098.81 40.9708 1098.77 42.2156 1103.37 43.0291L1104.18 43.1837V46.0637H1082.38V43.2081L1083.2 43.0291C1086.7 42.2725 1086.64 41.101 1086.51 38.5383C1086.46 37.9607 1086.46 37.3749 1086.46 36.7403V11.52C1086.44 10.9017 1086.51 10.3078 1086.51 9.7383C1086.64 7.16746 1086.7 6.00407 1083.2 5.23932L1082.38 5.06034L1082.41 2.21288ZM1182.41 62.5627C1176.88 51.3681 1172.63 50.1966 1164.27 50.1966H1149.62V78.4434C1149.71 84.0569 1151.06 87.5959 1155.6 89.223V92.6888H1123.56V89.223C1128.11 87.5634 1129.46 84.0569 1129.55 78.4434V16.4664C1129.46 10.8692 1128.11 7.32203 1123.56 5.69491V2.21288H1196.97V26.8963H1192.8L1192.46 26.3105C1183.81 11.3573 1176.85 10.1695 1168.67 10.1695H1149.62V42.1993H1164.27C1172.65 42.1993 11
24476.87 41.0766 1182.41 29.9959L1182.74 29.3451H1186.8V63.2136H1182.74L1182.41 62.5627ZM1413.92 10.1695C1421.65 10.1695 1428.21 11.2597 1436.45 24.9763L1436.78 25.5214H1440.25V2.21288H1346.34L1321.94 66.6386L1294.04 2.21288H1266.98V5.69491C1276.12 8.13559 1275.31 12.8868 1274.86 21.6976L1272.27 73.8875C1272.09 77.4915 1271.83 83.3573 1270.39 86.3837C1270.19 86.8475 1269.89 87.2624 1269.51 87.6041C1268.97 88.0434 1267.61 87.9702 1266.97 86.3675C1266.78 85.8712 1231.18 1.00068 1231.18 1.00068H1224.4L1196.97 70.7797C1192.86 81.4698 1188.39 87.0102 1181.6 89.223V92.6644H1214.66V89.223C1209.51 87.962 1205.71 85.0169 1204.45 82.5437C1203.38 80.3797 1203.56 77.4508 1204.99 73.5946L1208.08 65.459H1237.42L1242.45 78.5573C1243.61 81.6325 1243.66 83.1783 1243.27 84.3661C1242.25 87.6854 1239.36 88.5722 1234.58 89.2474V92.6888H1290.61V89.2474C1280.04 86.8637 1280.46 82.202 1280.92 73.2203L1282.09 49.2285L1282.9 24.5369L1313.19 93.9254H1320.15L1346.8 24.8136L1347.71 48.9763L1349.27 78.1668C1349.46 81.6 1349.34 84.4963 1348.36 86.0339C1347.38 87.5715 1346.18 88.678 1342.93 89.1986V92.64H1440.24V66.6061H1436.72L1436.4 67.2C1427.78 83.3573 1420.84 84.6997 1413.9 84.6997H1398.44V48.8136H1408.87C1416.88 48.8136 1420.92 49.9851 1426.02 61.1715L1426.32 61.8386H1429.89V27.9783H1426.33L1426.02 28.6373C1420.91 39.7098 1416.87 40.8407 1408.87 40.8407H1398.44V10.1695H1413.92ZM1211.04 57.421L1222.56 26.8475L1234.32 57.4373L1211.04 57.421ZM1379.45 78.419C1379.36 84.0325 1377.82 89.1986 1373.42 89.1986C1368.63 89.1986 1368.11 84.3173 1367.72 77.9797L1364.62 16.7349C1364.24 12.6183 1365.06 5.67051 1372.56 5.67051C1378.48 5.67051 1379.32 10.8447 1379.41 16.442L1379.45 78.419ZM1055.35 63.7098C1046.28 83.0969 1039.26 84.6997 1032.28 84.6997H1013.43V16.3607C1013.53 10.7959 1014.84 7.29763 1019.24 5.6461V2.21288H989.76V5.69491C994.186 7.32203 993.828 10.8692 993.925 16.4664V78.4434C993.836 84.0569 992.941 89.223 986.603 89.223V63.0427H982.487L982.178 63.7098C973.106 83.0969 966.085 84.6997 959.105 84.6997H937.318V16.3607C937.415 10.7959 938.725 7.29763 943.127 5.6461V2.21288H912.83V5.69491C917.255 7.32203 917.711 10.8692 917.817 16.4664V78.4434C917.727 84.0569 917.101 89.223 912.83 89.223C908.266 89.223 906.443 84.1627 904.084 78.6468L870.565 0.976271H863.609L835.501 70.7797C832.556 78.2075 830.766 83.3573 828.179 86.8637C826.023 89.8413 822.338 89.3532 820.946 85.9363C820.076 83.5281 819.653 80.9735 819.685 78.4108V16.442C819.807 10.8366 821.109 7.32203 825.502 5.69491V2.20475H794.375V5.69491C798.801 7.32203 800.07 10.8692 800.184 16.4746V40.8814H768.382V16.4746C768.472 10.8692 769.773 7.36271 774.191 5.69491V2.20475H743.072V5.69491C747.498 7.32203 748.767 10.8692 748.881 16.4746V78.4515C748.8 84.0651 747.498 87.5715 743.072 89.2312V92.6969H774.191V89.2312C769.773 87.6041 768.496 84.0651 768.382 78.4515V48.6834H800.217V78.419C800.135 84.0325 798.834 87.539 794.408 89.1986V92.6644H849.096V89.1742C846.476 87.6285 844.401 85.3017 843.165 82.5275C842.058 80.3715 842.245 77.4346 843.718 73.5783L846.891 65.4427H876.992L882.159 78.541C882.777 80.16 883.07 81.8929 883.021 83.6258C882.899 86.2291 881.142 88.4827 878.644 89.2312V92.7213H1059.81V63.0427H1055.69L1055.35 63.7098ZM849.909 57.4454L861.779 26.8475L873.86 57.4454H849.909ZM338.717 55.3952C343.769 55.3952 349.001 53.5647 353.866 50.1071C355.289 51.5064 356.851 52.7593 358.519 53.8576L358.788 54.0366H372.96V50.7824L371.992 50.7173C369.397 50.5383 366.997 47.9268 364.751 45.2664L361.497 41.5973C363.083 38.8475 364.222 35.8617 364.857 32.7539C365.67 28.3281 365.752 28.0597 369.6 27.9783H370.617V24.7241H355.81V27.9783H356.819C359.837 28.0597 359.837 28.3281 359.837 31.5824C359.837 33.8278 359.341 36.0569 358.389 38.0908L346.226 24.7322C354.696 22.1207 358.519 18.2888 358.519 12.3661C358.519 5.10102 352.206 0 343.216 0C333.551 0 327.051 5.83322 327.051 14.5058C327.051 18.3458 328.491 21.8278 331.704 25.6434C323.935 28.4258 320.152 33.0468 320.152 39.7505C320.152 47.3003 325.977 55.3952 338.717 55.3952ZM342.988 4.14102C344.738 4.0678 346.414 4.87322 347.447 6.28068C348.447 7.91593 348.952 9.81966 348.879 11.7397C348.879 16.6861 347.382 19.501 343.574 21.6732L343.298 21.3397L342.484 20.4285L341.801 19.6963C339.612 17.3614 337.35 14.9532 337.35 10.918C337.35 6.88271 339.604 4.16542 342.988 4.16542V4.14102ZM334.422 28.8325L350.693 46.7308C348.447 48.0407 345.982 49.2529 342.818 49.2529C335.658 49.2529 331.216 44.6563 331.216 37.2447C331.184 33.5349 332.298 30.6386 334.422 28.8325ZM115.086 94.9098C127.037 94.9993 138.492 9
2440.1586 146.758 81.5268C155.26 72.6346 159.946 60.179 159.946 46.4461C159.946 32.7132 155.618 20.9817 147.425 12.4963C139.672 4.46644 128.9 0.0488136 117.096 0.0488136C105.161 -0.0488136 93.7139 4.75932 85.4319 13.3586C76.922 22.2102 72.2359 34.6413 72.2359 48.3417C72.2359 62.042 76.5722 73.9119 84.7566 82.4136C92.4854 90.4759 103.273 94.9098 115.086 94.9098ZM97.6922 18.7119C101.76 11.7234 107.553 8.18441 114.964 8.18441C133.432 8.18441 139.989 31.7776 139.989 51.9702C139.989 61.5376 138.037 70.1776 134.489 76.3119C130.422 83.3003 124.637 86.8475 117.218 86.8475C108.439 86.8475 101.76 81.7383 97.3749 71.6502C92.7051 60.903 92.2007 47.9837 92.2007 42.9234C92.2007 33.3559 94.1532 24.781 97.6922 18.7119ZM163.81 48.0895C163.81 34.438 168.919 22.0393 178.21 13.1878C187.306 4.62915 199.363 -0.0813559 211.851 0.0488136C220.312 0.0162712 228.724 1.37492 236.746 4.07593L237.502 4.33627V27.3356H233.597L233.296 26.7173C227.073 14.221 219.661 8.14373 210.712 8.14373C202.454 8.14373 195.555 12.0651 190.763 19.3871C186.435 26.0176 184.051 35.0969 184.051 44.941C184.051 49.6678 184.588 61.7736 189.551 72.0895C194.237 81.8522 201.356 86.8068 210.704 86.8068C219.409 86.8068 227.935 78.9722 233.483 65.8413L233.776 65.1498H237.722V89.0115L237.079 89.3207C226.365 94.503 213.079 94.9098 209.28 94.9098C196.564 94.9098 185.068 90.4922 176.933 82.4705C168.325 74.0339 163.778 62.1071 163.81 48.0895ZM273.909 92.6888H244.296V89.2312C248.502 87.5715 249.738 84.0569 249.82 78.4434V16.4746C249.738 10.8692 248.502 7.32203 244.296 5.69491V2.24542H273.885V5.70305C269.679 7.36271 268.442 10.8773 268.361 16.4827V41.1661L287.211 20.1275C290.693 16.141 293.736 12.1953 293.19 9.81152C292.645 7.4278 290.416 6.1261 287.658 5.69491V2.23729H318.305V5.74373C310.015 7.59051 301.342 16.3932 294.834 23.5932L282.403 37.0169L314.571 84.0407C316.971 87.5146 321.584 89.2393 321.584 89.2393V92.6969H289.595V89.2637C290.896 89.0278 292.068 88.3281 292.898 87.2949C293.727 86.0258 292.719 84.3335 292.409 83.8536L268.385 47.642V78.4515C268.466 84.0651 269.703 87.6122 273.909 89.2393V92.6888ZM31.3546 89.2393C26.8963 87.6122 25.5864 84.0651 25.4969 78.4515V55.6719H32.819L55.5336 92.7783H79.3871V89.2312C76.4258 87.9458 73.8875 85.863 72.0651 83.2027L51.4007 52.198C62.221 47.8047 68.1437 39.2786 68.1437 27.9376C68.1437 12.0814 55.2569 2.22915 33.2095 2.22915H0V5.69491C4.4583 7.32203 5.76813 10.8692 5.85763 16.4746V78.4434C5.76813 84.0569 4.4583 87.5715 0 89.2312V92.6888H31.3546V89.2393ZM25.5051 10.202H31.7369C42.3132 10.202 47.7478 17.2963 47.7478 29.1824C47.7478 40.2875 41.638 47.7478 32.5342 47.7478H25.4969V10.202H25.5051ZM495.775 94.9098C508.084 94.9098 520.263 90.1586 528.618 81.5268C537.226 72.6346 541.969 60.179 541.969 46.4461C541.969 32.7132 537.584 20.9817 529.294 12.4963C521.451 4.46644 510.582 0.0488136 498.606 0.0488136C486.557 -0.0650847 474.988 4.74305 466.568 13.3586C457.961 22.2102 453.218 34.6413 453.218 48.3417C453.218 62.042 457.603 73.9119 465.885 82.4136C473.679 90.5491 484.507 95.0807 495.775 94.9098ZM478.975 18.7119C483.043 11.7234 488.949 8.18441 496.45 8.18441C515.162 8.18441 521.768 31.7776 521.768 51.9702C521.768 61.5376 519.799 70.1776 516.211 76.3119C512.144 83.3003 506.237 86.8475 498.736 86.8475C489.852 86.8475 483.1 81.7383 478.658 71.6502C473.923 60.903 473.418 47.9837 473.418 42.9234C473.418 33.3559 475.387 24.781 478.975 18.7119ZM411.946 89.2393C407.479 87.6122 406.161 84.0651 406.072 78.4515V55.6719H414.028L436.808 92.7783H460.784V89.2312C457.822 87.9458 455.292 85.8549 453.462 83.2027L432.716 52.198C443.585 47.8047 449.524 39.2786 449.524 27.9376C449.524 12.0814 435.775 2.22915 413.654 2.22915H380.485V5.69491C384.96 7.32203 386.278 10.8692 386.367 16.4746V78.4434C386.278 84.0569 384.96 87.5715 380.485 89.2312V92.6888H411.954V89.2393H411.946ZM429.03 29.1824C429.03 40.2875 422.896 47.7478 413.76 47.7478H406.056V10.202H413.776C424.361 10.202 429.047 17.2963 429.047 29.1824H429.03ZM568.784 92.6888H543.563V89.2312C547.965 87.5715 549.258 84.0569 549.348 78.4434V16.4746C549.258 10.8692 547.965 7.32203 543.563 5.69491V2.24542H574.544V5.68678C570.159 7.3383 568.857 10.8366 568.759 16.4014V84.7403H589.717C596.672 84.7403 603.653 83.1295 612.683 63.7424L612.992 63.0834H617.06V89.2312C624.48 89.2312 628.1 84.0569 628.19 78.4434V16.4746C628.1 10.8692 626.807 7.32203 622.405 5.69491V2.24542H653.41V5.68678C649.025 7.3383 647.723 10.8366 647.626 16.4014V84.7403H669.836C676.784 84.7403 683.772 83.1295 692.803 63.7424L693.112 63.0834H697.18V92.6969H568.759H568.784V92.6888ZM1447.15 8.72136V3.2461H1444.98V2.21288H1450.44V3.2461H1448.29V8.72136H1447.15ZM1454.33 8.74576L1452.52 3.5878V8.72136H1451.49V2.21288H1453.07L1454.75 7.15119L1456.4 2.21288H1457.95V8.72136H1456.9V3.5878
244L1455.09 8.74576H1454.32H1454.33Z",fill:"currentColor"})))};function eO(){return(eO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var ej=function(e){return T.createElement("svg",eO({viewBox:"0 0 205 58",xmlns:"http://www.w3.org/2000/svg"},e),sU||(sU=T.createElement("path",{d:"M99.59,16.32c1.49,0,3.02-.54,4.45-1.56.42.41.88.78,1.37,1.11l.08.05h4.17v-.96l-.28-.02c-.76-.05-1.47-.82-2.13-1.61l-.96-1.08c.47-.81.8-1.69.99-2.61.24-1.31.26-1.38,1.39-1.41h.3v-.96h-4.35v.96h.3c.89.02.89.1.89,1.06,0,.66-.15,1.32-.42,1.92l-3.58-3.94c2.49-.77,3.6-1.9,3.6-3.64C105.4,1.5,103.56,0,100.91,0c-2.84,0-4.75,1.72-4.75,4.27,0,1.13.42,2.16,1.37,3.28-2.28.82-3.38,2.19-3.38,4.16,0,2.21,1.7,4.6,5.45,4.6ZM100.85,1.22c.51-.02,1,.22,1.31.63.29.48.44,1.04.42,1.61,0,1.46-.44,2.28-1.56,2.92l-.08-.1-.24-.27-.2-.22c-.64-.69-1.31-1.39-1.31-2.58s.67-1.99,1.65-1.99h0ZM98.33,8.49l4.78,5.27c-.66.38-1.39.74-2.32.74-2.11,0-3.41-1.36-3.41-3.54,0-1.09.32-1.94.94-2.48ZM97.83,32.51c-1.24-1.13-2.85-1.75-4.52-1.74h-.02c-2.73.13-4.8,1.46-5.82,3.76-1.16,2.61-.67,6.12,1.1,7.98,1.15,1.18,2.74,1.83,4.39,1.81.79,0,1.58-.14,2.33-.41,2.76-.96,4.58-3.59,4.52-6.51,0-1.97-.68-3.66-1.98-4.88ZM96.06,39.1c-.22,2.36-1.23,3.83-2.65,3.83l-.02.1v-.09c-1.46-.14-2.16-1.51-2.5-2.62-.83-2.77-.24-6.55.82-7.58.35-.38.84-.6,1.36-.61.32,0,.64.09.91.25,1.19.66,2.44,2.82,2.07,6.72ZM99.77,31.09h10.55v3.7h-.82l-.09-.14c-1.25-1.96-2.02-2.19-3.4-2.2h-1.38v4.25h.72c1.28-.01,1.36-.16,2.12-1.54l.15-.27h.81v4.99h-.81l-.15-.27c-.76-1.4-.84-1.54-2.12-1.56h-.72v3.65c-.03.8-.04,1.17,1.31,1.41l.24.05v.85h-6.41v-.85l.24-.05c1.03-.23,1.01-.57.97-1.32-.01-.17-.01-.35-.01-.53v-7.43c0-.18.01-.36.01-.52.04-.76.06-1.1-.97-1.32l-.24-.05v-.84ZM33.84,27.96c3.51.03,6.88-1.4,9.31-3.94,2.5-2.62,3.87-6.29,3.87-10.34s-1.27-7.5-3.68-10C41.06,1.31,37.89.01,34.42.01c-3.51-.03-6.87,1.39-9.31,3.92-2.5,2.61-3.88,6.27-3.88,10.31s1.27,7.53,3.68,10.03c2.29,2.38,5.45,3.69,8.93,3.69ZM28.72,5.5c1.2-2.06,2.9-3.1,5.08-3.1,5.43,0,7.36,6.95,7.36,12.9,0,2.82-.57,5.36-1.62,7.17-1.2,2.06-2.9,3.12-5.08,3.12-2.58,0-4.55-1.51-5.83-4.48-1.38-3.17-1.52-6.97-1.52-8.46,0-2.81.57-5.34,1.61-7.14ZM48.16,14.16c0-4.02,1.5-7.67,4.23-10.28C55.07,1.35,58.62-.04,62.29,0c2.49,0,4.96.4,7.32,1.2l.22.08v6.77h-1.15l-.09-.18c-1.83-3.68-4.01-5.47-6.64-5.47-2.43,0-4.46,1.15-5.87,3.31-1.27,1.95-1.97,4.63-1.97,7.53,0,1.39.16,4.96,1.61,8,1.38,2.88,3.47,4.34,6.22,4.34,2.56,0,5.07-2.31,6.7-6.18l.09-.2h1.16v7.03l-.19.09c-3.15,1.53-7.05,1.64-8.17,1.64-3.74,0-7.12-1.3-9.51-3.66-2.53-2.49-3.87-6-3.86-10.14ZM80.53,27.31h-8.7v-1.02c1.24-.49,1.6-1.52,1.62-3.18V4.85c-.02-1.65-.39-2.68-1.62-3.18V.66h8.7v1.02c-1.24.49-1.6,1.53-1.63,3.18v7.27l5.54-6.2c1.02-1.18,1.92-2.34,1.76-3.04-.16-.7-.82-1.08-1.63-1.21V.66h9.01v1.01c-2.44.56-4.99,3.15-6.9,5.27l-3.65,3.96,9.45,13.85c.71,1.02,2.06,1.53,2.06,1.53v1.02h-9.4v-1.01c.38-.07.72-.28.97-.58.25-.38-.05-.87-.14-1.01l-7.07-10.67v9.07c.03,1.65.39,2.7,1.63,3.18v1.02ZM9.23,26.28c-1.31-.48-1.69-1.52-1.72-3.18v-6.71h2.15l6.68,10.93h7v-1.05c-.87-.38-1.62-.99-2.15-1.78l-6.08-9.13c3.18-1.29,4.92-3.81,4.92-7.15,0-4.67-3.79-7.57-10.27-7.57H0v1.02c1.31.49,1.7,1.53,1.72,3.18v18.26c-.03,1.65-.41,2.69-1.72,3.18v1.02h9.23v-1.02ZM7.5,3h1.83c3.11,0,4.71,2.09,4.71,5.59,0,3.27-1.8,5.47-4.47,5.47h-2.07V3ZM145.77,27.96c3.62,0,7.2-1.4,9.66-3.94,2.53-2.62,3.93-6.29,3.93-10.33s-1.29-7.51-3.73-10.01C153.32,1.31,150.12.01,146.6.01c-3.54-.03-6.95,1.38-9.42,3.92-2.53,2.61-3.92,6.27-3.92,10.31s1.29,7.53,3.73,10.03c2.29,2.4,5.48,3.74,8.79,3.69ZM140.83,5.5c1.2-2.06,2.93-3.1,5.14-3.1,5.5,0,7.45,6.95,7.45,12.9,0,2.82-.58,5.36-1.64,7.17-1.2,2.06-2.93,3.12-5.14,3.12-2.61,0-4.6-1.51-5.9-4.48-1.39-3.17-1.54-6.97-1.54-8.46,0-2.81.58-5.34,1.63-7.14ZM121.12,26.28c-1.32-.48-1.7-1.52-1.73-3.18v-6.71h2.34l6.7,10.93h7.05v-1.05c-.87-.38-1.61-.99-2.15-1.78l-6.1-9.13c3.19-1.29,4.94-3.8,4.94-7.15,0-4.67-4.04-7.57-10.55-7.57h-9.76v1.02c1.31.49,1.7,1.53,1.73,3.18v18.26c-.03,1.65-.41,2.69-1.73,3.18v1.02h9.25v-1.02ZM126.15,8.59c0,3.27-1.8,5.47-4.5,5.47h-2.26V3h2.27c3.12,0,4.49,2.09,4.49,5.59h0ZM167.24,27.31h-7.41v-1.02c1.29-.49,1.68-1.52,1.7-3.18V4.85c-.03-1.65-.41-2.68
244-1.7-3.18V.66h9.11v1.01c-1.29.49-1.67,1.52-1.7,3.16v20.13h6.17c2.04,0,4.1-.47,6.75-6.18l.09-.2h1.2v7.71c2.18,0,3.25-1.52,3.27-3.18V4.85c-.03-1.65-.4-2.68-1.7-3.18V.66h9.12v1.01c-1.29.49-1.68,1.52-1.7,3.16v20.13h6.53c2.04,0,4.1-.47,6.75-6.18l.09-.2h1.2v8.73h-37.76,0ZM129.17,48.86c-1.63-3.3-2.87-3.65-5.33-3.65h-4.31v8.33c.03,1.65.42,2.7,1.76,3.18v1.02h-9.42v-1.02c1.34-.49,1.73-1.52,1.76-3.18v-18.26c-.03-1.65-.42-2.68-1.76-3.18v-1.02h21.59v7.27h-1.23l-.1-.17c-2.54-4.41-4.59-4.76-7-4.76h-5.6v9.44h4.31c2.46,0,3.71-.33,5.33-3.6l.09-.19h1.2v9.98h-1.2l-.1-.2ZM197.24,33.44c2.27,0,4.2.32,6.62,4.36l.1.16h1.02v-6.87h-27.6l-7.18,18.98-8.2-18.98h-7.97v1.02c2.69.72,2.45,2.12,2.32,4.72l-.76,15.37c-.05,1.06-.13,2.79-.55,3.68-.06.14-.15.26-.26.36-.16.13-.56.11-.75-.36-.06-.15-10.53-25.15-10.53-25.15h-2l-8.05,20.56c-1.21,3.15-2.52,4.78-4.52,5.43v1.01h9.72v-1.01c-1.51-.37-2.63-1.24-3-1.97-.32-.64-.26-1.5.16-2.64l.91-2.4h8.63l1.48,3.86c.34.9.35,1.36.24,1.71-.3.98-1.15,1.24-2.56,1.44v1.01h16.48v-1.02c-3.11-.7-2.99-2.08-2.85-4.72l.34-7.07.24-7.27,8.9,20.44h2.03l7.84-20.37.27,7.12.46,8.6c.05,1.01.02,1.87-.27,2.32-.29.45-.63.8-1.59.96v1.01h28.64v-7.67h-1.03l-.09.17c-2.54,4.76-4.58,5.16-6.61,5.16h-4.56v-10.57h3.06c2.35,0,3.54.35,5.04,3.64l.09.19h1.05v-9.98h-1.05l-.09.19c-1.5,3.26-2.69,3.6-5.04,3.6h-3.06v-9.03h4.54ZM137.59,47.36l3.39-9.01,3.46,9.01h-6.85ZM187.11,53.54c-.02,1.65-.48,3.18-1.77,3.18-1.41,0-1.56-1.44-1.66-3.31l-.92-18.04c-.11-1.21.13-3.26,2.33-3.26,1.74,0,1.99,1.52,2.01,3.18v18.26ZM91.82,49.21c-2.67,5.71-4.73,6.18-6.78,6.18h-5.54v-20.13c.03-1.64.41-2.67,1.71-3.16v-1.02h-8.67v1.02c1.3.49,1.2,1.52,1.23,3.18v18.26c-.03,1.65-.29,3.18-2.15,3.18v-7.7h-1.21l-.09.2c-2.67,5.71-4.73,6.18-6.78,6.18h-6.42v-20.13c.03-1.64.41-2.67,1.71-3.16v-1.02h-8.91v1.02c1.3.49,1.44,1.52,1.47,3.18v18.26c-.02,1.65-.21,3.18-1.47,3.18-1.34,0-1.88-1.49-2.57-3.12l-9.85-22.88h-2.05l-8.28,20.58c-.86,2.19-1.39,3.71-2.14,4.74-.64.87-1.72.73-2.13-.27-.26-.71-.38-1.46-.37-2.22v-18.26c.03-1.65.41-2.69,1.71-3.18v-1.02h-9.14v1.02c1.3.48,1.67,1.52,1.71,3.18v7.19H7.44v-7.19c.03-1.65.41-2.69,1.71-3.18v-1.02H0v1.02c1.3.48,1.67,1.52,1.71,3.18v18.26c-.03,1.65-.41,2.69-1.71,3.18v1.02h9.15v-1.02c-1.3-.48-1.67-1.52-1.71-3.18v-8.76h9.36v8.76c-.03,1.65-.41,2.69-1.71,3.18v1.02h16.08v-1.02c-.77-.46-1.38-1.14-1.74-1.96-.32-.64-.27-1.5.16-2.64l.93-2.41h8.86l1.52,3.86c.18.48.27.99.25,1.5-.04.77-.55,1.43-1.29,1.65v1.03h53.24v-8.74h-1.21l-.09.2ZM31.42,47.37l3.48-9.02,3.55,9.02h-7.03Z",fill:"currentColor"})))},eU={src:"/_next/static/media/cuyahoga-arts-logo.339fb4ce.png",height:144,width:160,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAHCAQAAACfUMTVAAAAW0lEQVR42i3ILQ9AYBhG4TtKKEyliWw+Np/FTPE2TRL8/z9w5hl2bSccIXICKmprLukdE42ZvrFTUpCZ0jjhkxAhExLjiR8pPS2NcBxsjDhuTi4xs7CzMpiF7gEhND9BbmJLDgAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:7},eV={src:"/_next/static/media/ohio-arts-logo.8a6af944.png",height:75,width:280,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAACCAQAAADPnVVmAAAAKklEQVR42mP45QqEmr/Nfhn9Uvjh+cOX4bfST/Vf6t/Mv1p8U/3p+yMQAElIEwGli/kvAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:2},eB={src:"/_next/static/media/logo-united-white.84884173.png",height:76,width:215,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAADCAQAAAAEwYbDAAAAOklEQVR42mP4x/nP5Z/XP7t/Uf/s/7X9O8zwz+yf9T+Df0b/XP7p/wv6l83wT+yfKBBKAGnZf7L/TAANUR1nW2AfqQAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:3};let eH=O().bind(U());function eG(e){let{highlightColor:t}=(0,S.$h)(),{setFooterRef:n}=(0,L.x)(),[i,r]=(0,T.useState)({});if((0,T.useEffect)(()=>{r({"--highlight-color":t})},[t]),!(null==e?void 0:e.footerSettingsFields))return;let{footerSettingsFields:a}=e,{newsletterForm:s,socialLinks:o,findUs:l,footerColumns:u,legalCopy:c}=a;return(0,w.jsx)("div",{className:eH("footer-wrapper"),children:(0,w.jsxs)("footer",{id:"footer",className:eH("footer"),ref:e=>n(e),style:i,children:[(0,w.jsx)(E.W,{children:(0,w.jsx)(q,{...s})}),(0,w.jsx)("hr",{className:eH("divider")}),(0,w.jsxs)(E.W,{className:eH("footer-container"),children:[(0,w.jsx)(ew,{socialLinks:o}),(0,w.jsxs)("div",{className:eH("find-us-columns-wrapper"),children:[(0,w.jsxs)("div",{className:eH(["find-us"]),children:[(0,w.jsx)("p",{className:eH("eyebrow-s"),role:"heading","aria-level":2,children:l.label}),(0,w.jsxs)("div",{className:eH("find-us__copy"),children:[(0,w.jsx)("a",{className:eH(["text-m"]),href:l.address.mapLink,target:"_blank","data-gtm-section":"footer",children:(0,w.jsx)("span",{dangerouslySetInnerHTML:{__html:l.address.text}})}),(0,w.jsx)("a",{className:eH("text-m"),href:"tel:".concat(l.phone.number),target:"_blank","data-gtm-section":"footer",children:l.phone.label}),(0,w.jsx)("a",{className:eH("text-m"),href:"mailto:".concat(l.email.email),target:"_blank","data-gtm-section":"footer",children:l.email.label})]})]}),(0,w.jsx)(eD,{footerColumns:u})]}),(0,w.jsxs)("div",{className:eH("footer-legal"),children:[(0,w.jsx)("p",{className:eH(["text-m"]),children:c}),(0,w.jsxs)("div",{className:eH("footer-logos"),children:[(0,w.jsx)(td.K,{className:eH("logo","logo--ohio"),href:"https://oac.ohio.gov/",target:"_blank","data-gtm-section":"footer",children:(0,w.jsx)(M(),{src:eV,alt:"Ohio Arts Council",unoptimized:!0})}),(0,w.jsx)(td.K,{className:eH("logo","logo--cuyahoga"),href:"https://www.cacgrants.org/",target:"_blank","data-gtm-section":"footer",children:(0,w.jsx)(M(),{src:eU,alt:"Cuyahoga Arts & Culture",unoptimized:!0})}),(0,w.jsx)(td.K,{className:eH("logo","logo--united"),href:"https://www.united.com/",target:"_blank","data-gtm-section":"footer",children:(0,w.jsx)(M(),{src:eB,alt:"United Airlines",unoptimized:!0})})]})]})]}),(0,w.jsxs)("div",{className:eH("footer-logo-wrapper"),children:[(0,w.jsx)(ej,{className:eH("footer-logo-stacked")}),(0,w.jsx)(eF,{className:eH("footer-logo")})]})]})})}var ez=n(30775);function eq(){return(eq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var eW=function(e){return T.createElement("svg",eq({viewBox:"0 0 211 59",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),sV||(sV=T.createElement("path",{d:"M99.5912 16.3166C101.079 16.3166 102.615 15.7774 104.045 14.7564C104.464 15.1686 104.923 15.5401 105.414 15.8637L105.492 15.914H109.659V14.9553L109.377 14.9361C108.614 14.8834 107.906 14.1165 107.246 13.3304L106.289 12.2518C106.758 11.4418 107.09 10.5622 107.277 9.64664C107.516 8.34044 107.54 8.26375 108.672 8.23978H108.971V7.28111H104.617V8.23978H104.914C105.801 8.26375 105.801 8.34284 105.801 9.30392C105.801 9.9654 105.655 10.6197 105.378 11.2213L101.799 7.28111C104.289 6.51177 105.404 5.38532 105.404 3.63813C105.404 1.49788 103.557 0.00474243 100.914 0.00474243C98.0723 0.00474243 96.161 1.72078 96.161 4.27805C96.161 5.40929 96.5844 6.43507 97.5293 7.55673C95.2449 8.37879 94.1445 9.74491 94.1445 11.715C94.1445 13.9295 95.8429 16.3166 99.5912 16.3166ZM100.849 1.21747C101.364 1.1959 101.854 1.43317 102.158 1.8478C102.452 2.32954 102.6 2.89036 102.579 3.45598C102.579 4.91317 102.141 5.74003 101.019 6.37995L100.938 6.28168L100.699 6.01565L100.498 5.79755C99.8544 5.1121 99.1894 4.40268 99.1894 3.21392C99.1894 2.02516 99.8544 1.22466 100.842 1.22466L100.849 1.21747ZM98.3282 8.49144L103.112 13.7642C102.455 14.1476 101.727 14.5071 100.797 14.5071C98.6918 14.5071 97.3858 13.1506 97.3858 10.9696C97.3762 9.87673 97.7063 9.0259 98.3282 8.49144ZM97.8331 32.5135C96.5964 31.3847 94.9817 30.7639 93.3097 30.7735H93.2858C90.5516 30.9029 88.4849 32.2379 87.4659 34.5339C86.3057 37.1487 86.7913 40.6527 88.5686 42.5101C89.7216 43.6917 91.3099 44.3436 92.9604 44.3172C93.7522 44.3172 94.5392 44.1782 95.2855 43.9098C98.0412 42.9487 99.8663 40.3195 99.8089 37.3956C99.8113 35.4207 99.1272 33.731 97.8331 32.5135ZM96.0582 39.102C95.8405 41.4652 94.8239 42.9367 93.4102 42.9367L93.3934 43.0326L93.4054 42.9391C91.9366 42.7953 91.2286 41.4316 90.8937 40.3147C90.0613 37.5466 90.6545 33.7694 91.7166 32.734C92.0682 32.3553 92.5562 32.1372 93.0729 32.1252C93.3934 32.13 93.7092 32.2163 93.9866 32.3793C95.1755 33.0408 96.4266 35.2026 96.0582 39.102ZM99.7683 31.0899H110.315V34.7928H109.497L109.408 34.6537C108.16 32.6909 107.385 32.4656 106.007 32.4512H104.629V36.6981H105.347C106.626 36.6838 106.705 36.5399 107.464 35.1595L107.609 34.8934H108.423V39.8833H107.609L107.464 39.6149C106.705 38.2176 106.626 38.0714 105.342 38.0595H104.624V41.7144C104.598 42.5149 104.583 42.8816 105.935 43.1213L106.174 43.1668V44.0176H99.7683V43.1692L100.007 43.1165C101.038 42.8912 101.019 42.5485 100.981 41.7935C100.967 41.6233 100.967 41.4484 100.967 41.2614V33.8317C100.964 33.6495 100.981 33.4746 100.981 33.3068C101.019 32.5518 101.038 32.2091 100.007 31.9838L99.7683 31.9311V31.0899ZM33.8405 27.9598C37.3521 27.9861 40.7201 26.5601 43.1505 24.0196C45.6502 21.3952 47.0208 17.7259 47.0208 13.6803C47.0208 9.63466 45.7482 6.17623 43.3394 3.67887C41.0598 1.31334 37.8927 0.00953582 34.4218 0.00953582C30.9127 -0.0192245 27.547 1.39722 25.1119 3.93053C22.6122 6.54053 21.2344 10.2027 21.2344 14.2363C21.2344 18.2699 22.5069 21.7691 24.9134 24.2713C27.2002 26.6512 30.3673 27.9598 33.8405 27.9598ZM28.7239 5.49557C29.92 3.43921 31.6231 2.39664 33.8023 2.39664C39.2323 2.39664 41.1603 9.34706 41.1603 15.2957C41.1603 18.1118 40.5862 20.6595 39.5432 22.4642C38.3472 24.5253 36.6464 25.5799 34.4673 25.5799C31.8862 25.5799 29.9223 24.0723 28.633 21.1028C27.2576 17.9368 27.1093 14.1285 27.1093 12.6401C27.1093 9.83119 27.6834 7.29788 28.7239 5.49557ZM48.1642 14.1548C48.1642 10.1308 49.6688 6.48061 52.3982 3.87301C55.0725 1.35168 58.6176 -0.0360014 62.2918 -5.09578e-05C64.7819 -0.00724104 67.2529 0.3978 69.6115 1.1983L69.8316 1.27499V8.04805H68.6858L68.5949 7.8659C66.7649 4.18458 64.5858 2.39664 61.9545 2.39664C59.5265 2.39664 57.4981 3.54945 56.0891 5.70648C54.8166 7.65978 54.1181 10.3345 54.1181 13.2369C54.1181 14.6294 54.2736 18.1957 55.7327 21.2347C57.1106 24.1107 59.2036 25.5703 61.9521 25.5703C64.5116 25.5703 67.0185 23.2599 68.6499 19.3916L68.736 19.1903H69.8985V26.2198L69.7072 26.3109C66.5568 27.8376 62.653 27.955 61.5335 27.955C57.7971 27.955 54.4171 26.6536 52.025 24.2904C49.4942 21.7955 48.1547 18.2915 48.1642 14.1548ZM80.5313 27.3055H71.8289V26.2845C73.0656 25.7956 73.4292 24.7626 73.4532 23.1089V4.85086C73.4292 3.20193 73.0656 2.16656 71.8289 1.67524V0.65904H80.5313V1.67524C79.2946 2.16656 78.931 3.20193 78.9047 4.85086V12.1248L84.4423 5.92937C85.4661 4.75259 86.3655 3.5878 86.2029 2.88797C86.0402 2.18813 85.3848 1.80466 84.5763 1.67524V0.656643H93.5896V1.66325C91.152 2.22168 88.6021 4.81251 86.6884 6.93598L83.0334 10.9001L92.4844 24.7506C93.1925 25.774 94.5464 26.2821 94.5464 26.2821V27.3055H85.1432V26.2917C85.5259 26.2222 85.868 26.0161 86.112 25.7141C86.3583 25.3378 86.0617 24.8393 85.9708 24.7003L78.9047 14.0326V23.1065C78.931 24.7602 79.2946 25.8028 80.5313 26.2821V27.3055Z
244M9.2262 26.2821C7.91774 25.8028 7.53261 24.7602 7.5063 23.1065V16.3957H9.65916L16.3378 27.3295H23.3394V26.2821C22.4687 25.9034 21.7223 25.2899 21.1865 24.5061L15.1107 15.3747C18.2945 14.0805 20.0335 11.5688 20.0335 8.2254C20.0335 3.55664 16.2469 0.654247 9.76441 0.654247H0V1.67044C1.31085 2.16177 1.69597 3.19714 1.72229 4.84607V23.1041C1.69597 24.7578 1.31085 25.7908 0 26.2797V27.3007H9.2262V26.2821ZM7.49913 3.00061H9.33145C12.4411 3.00061 14.039 5.09053 14.039 8.5921C14.039 11.8636 12.2426 14.0614 9.56587 14.0614H7.49913V3.00061ZM145.77 27.9598C149.389 27.9598 152.97 26.5601 155.427 24.0196C157.958 21.4 159.352 17.7307 159.352 13.6851C159.352 9.63945 158.063 6.17623 155.621 3.67887C153.315 1.31334 150.119 0.00953582 146.598 0.00953582C143.055 -0.0240179 139.651 1.39243 137.175 3.93053C134.645 6.54053 133.252 10.2027 133.252 14.2363C133.252 18.2699 134.539 21.7691 136.977 24.2713C139.266 26.6752 142.455 28.0125 145.77 27.9598ZM140.83 5.49557C142.026 3.43921 143.763 2.39664 145.969 2.39664C151.47 2.39664 153.415 9.34706 153.415 15.2957C153.415 18.1118 152.834 20.6595 151.779 22.4642C150.583 24.5253 148.846 25.5799 146.641 25.5799C144.029 25.5799 142.043 24.0723 140.737 21.1028C139.347 17.9368 139.197 14.1285 139.197 12.6401C139.197 9.83119 139.778 7.29788 140.83 5.49557ZM121.125 26.2821C119.809 25.8028 119.421 24.7602 119.395 23.1065V16.3957H121.737L128.435 27.3295H135.484V26.2821C134.616 25.9034 133.87 25.2875 133.331 24.5061L127.234 15.3747C130.423 14.0829 132.178 11.5712 132.178 8.2278C132.178 3.55904 128.138 0.656643 121.632 0.656643H111.872V1.67284C113.185 2.16416 113.573 3.19954 113.599 4.84846V23.1065C113.573 24.7602 113.185 25.7932 111.872 26.2821V27.3031H121.125V26.2821ZM126.148 8.5897C126.15 11.8636 124.347 14.059 121.653 14.059H119.388V3.00061H121.656C124.775 3.00061 126.15 5.09053 126.15 8.5921H126.148V8.5897ZM167.236 27.3055H159.821V26.2845C161.115 25.7956 161.496 24.7626 161.522 23.1089V4.85086C161.496 3.20193 161.115 2.16656 159.821 1.67524V0.65904H168.93V1.66805C167.641 2.15697 167.258 3.18755 167.229 4.82689V24.9591H173.396C175.439 24.9591 177.491 24.487 180.146 18.7757L180.237 18.5791H181.433V26.2845C183.613 26.2845 184.679 24.7626 184.703 23.1089V4.85086C184.677 3.20193 184.299 2.16656 183.003 1.67524V0.65904H192.119V1.66805C190.827 2.15697 190.444 3.18755 190.418 4.82689V24.9591H196.948C198.991 24.9591 201.046 24.487 203.701 18.7757L203.792 18.5791H204.988V27.3055H167.229H167.236ZM129.172 48.8614C127.545 45.5611 126.299 45.216 123.84 45.216H119.534V53.5445C119.56 55.1982 119.955 56.2408 121.294 56.7201V57.7387H111.872V56.7177C113.209 56.2288 113.604 55.1958 113.63 53.5421V35.2841C113.604 33.6328 113.209 32.5998 111.872 32.1085V31.0899H133.463V38.3614H132.233L132.135 38.1913C129.59 33.7861 127.545 33.4362 125.139 33.4362H119.539V42.872H123.844C126.308 42.872 127.55 42.5413 129.179 39.277L129.272 39.0852H130.468V49.0627H129.272L129.172 48.8614ZM197.243 33.4362C199.515 33.4362 201.445 33.7574 203.866 37.7982L203.962 37.9588H204.983V31.0899H177.388L170.212 50.0669L162.012 31.0899H154.037V32.1085C156.723 32.8275 156.487 34.2295 156.355 36.8252L155.592 52.2C155.539 53.2593 155.465 54.9873 155.039 55.8789C154.98 56.0179 154.893 56.1401 154.781 56.2408C154.623 56.3678 154.221 56.3486 154.035 55.8765C153.977 55.7279 143.51 30.728 143.51 30.728H141.507L133.46 51.2844C132.25 54.4337 130.937 56.0634 128.942 56.7177V57.7315H138.661V56.7201C137.147 56.3462 136.03 55.481 135.661 54.75C135.345 54.1149 135.396 53.2497 135.817 52.1137L136.726 49.717H145.354L146.835 53.5756C147.172 54.4792 147.186 54.937 147.074 55.2869C146.775 56.2623 145.928 56.5236 144.519 56.7249V57.7387H160.998V56.7201C157.888 56.0179 158.01 54.6422 158.147 51.9986L158.491 44.9284L158.73 37.6544L167.634 58.0958H169.66L177.496 37.7239L177.766 44.8445L178.223 53.4414C178.278 54.4552 178.242 55.3085 177.955 55.759C177.668 56.2096 177.321 56.5595 176.362 56.7177V57.7315H205V50.0621H203.967L203.873 50.2371C201.338 54.9969 199.297 55.3923 197.259 55.3923H192.698V44.8229H195.759C198.113 44.8229 199.302 45.168 200.802 48.4635L200.893 48.6576H201.941V38.6826H200.893L200.804 38.8743C199.3 42.1362 198.113 42.4694 195.759 42.4694H192.698V33.4362H197.243ZM137.594 47.3562L140.981 38.3447L144.44 47.3562H137.594ZM187.11 53.5421C187.086 55.1958 186.631 56.7177 185.337 56.7177C183.928 56.7177 183.78 55.2797 183.677 53.4127L182.761 35.3704C182.651 34.1576 182.895 32.1085 185.096 32.1085C186.837 32.1085 187.086 33.6328 187.11 35.2841V53.5421ZM91.817 49.2089C89.1499 54.9202 87.0879 55.3923 85.0355 55.3923H79.4907V35.2601C79.5194 33.6208 79.9045 32.5902 81.201 32.1013V31.0827H72.5322V32.1013C73.8335 32.5926 73.7282 33.6256 73.7593 35.2769V53.5349C73.733 55.1886 73.4675 56.7105 71.6065 56.7105V49.0123H70.3961L70.3052 49.2089C67.638 54.9202 65.5761 55.3923 63.5237 55.3923H57.1058V35.2601C57.1345 33.6208 57.5196 32.5902 58.8137 32.1013V31.0827H49.9057V32.1013C51.2069 32.5926 51.3409 33.6256 51.372 35.2769V53.5349C51.3481 55.1886 51.1639 56.7105 49.9057 56.7105C48.5637 56.7105 48.0279 55.2198 47.3366 53.5948L37.4884 30.7136H35.4432L27.1667 51.294C26.3032 53.4822 25.7745 54.9993 25.0258 56.0323C24.3895 56.9071 23.3059 56.7657 22.8969 55.759C22.6409 55.0472 22.5141 54.2947 22.5261 53.5397V35.2841C22.5524 33.6328 22.9351 32.5974 24.2364 32.1085V31.0899H15.0939V32.1085C16.3952 32.5878 16.7684 33.6328 16.8043 35.2841V42.4742H7.44172V35.2841C7.46803 33.6328 7.85076 32.5974 9.15204 32.1085V31.0899H0V32.1085C1.30128 32.5878 1.67445 33.6328 1.71033 35.2841V53.5397C1.68401 55.1934 1.30128 56.2288 0 56.7177V57.7363H9.15204V56.7201C7.85076 56.2408 7.4776 55.1958 7.44172 53.5421V44.7822H16.8043V53.5397C16.7779 55.1934 16.3952 56.2288 15.0939 56.7177V57.7363H31.1782V56.7201C30.4079 56.2623 29.8004 55.5793 29.4344 54.762C29.1114 54.1269 29.1641 53.2617 29.597 52.1257L30.5299 49.717H39.3925L40.9115 53.578C41.0933 54.055 41.1794 54.5655 41.1651 55.076C41.1292 55.8429 40.6125 56.5068 39.8781 56.7273V57.7531H93.1183V49.0123H91.9079L91.817 49.2089ZM31.4222 47.373L34.905 38.3566L38.4572 47.373H31.4222ZM207.028 57.7315V56.1185H206.39V55.8142H207.995V56.1185H207.363V57.7315H207.028ZM209.138 57.7387L208.607 56.2192V57.7315H208.303V55.8142H208.77L209.263 57.269L209.748 55.8142H210.203V57.7315H209.894V56.2192L209.363 57.7387H209.136H209.138Z",fill:"currentColor"})))},e$=n(270),eZ=n(24983),eY=n(59447);function eK(){return(eK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var eX=function(e){return T.createElement("svg",eK({viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),sB||(sB=T.createElement("path",{d:"M6.00781 11.375C6.20052 11.375 6.39323 11.3646 6.58594 11.3438C6.77865 11.3229 6.96875 11.2865 7.15625 11.2344L6.5 10.25H4.5V9.5C4.5 9.19063 4.61016 8.92578 4.83047 8.70547C5.05078 8.48516 5.31563 8.375 5.625 8.375H6.75V6.5H6C5.7875 6.5 5.60938 6.42813 5.46562 6.28438C5.32188 6.14063 5.25 5.9625 5.25 5.75V4.25H4.67188C4.41417 4.25 4.19609 4.16146 4.01766 3.98438C3.83922 3.80729 3.75 3.58719 3.75 3.32406C3.75 3.23302 3.76302 3.14583 3.78906 3.0625C3.8151 2.97917 3.85417 2.89583 3.90625 2.8125L4.54688 1.84375C3.54688 2.14583 2.72656 2.72021 2.08594 3.56688C1.44531 4.41354 1.125 5.39125 1.125 6.5H1.875V5.75C1.875 5.64375 1.91094 5.55469 1.98281 5.48281C2.05469 5.41094 2.14375 5.375 2.25 5.375H3.75C3.85625 5.375 3.94531 5.41094 4.01719 5.48281C4.08906 5.55469 4.125 5.64375 4.125 5.75V6.875C4.125 6.98125 4.08906 7.07031 4.01719 7.14219C3.94531 7.21406 3.85625 7.25 3.75 7.25H3.375V7.625C3.375 7.93437 3.26484 8.19922 3.04453 8.41953C2.82422 8.63984 2.55938 8.75 2.25 8.75H1.6875C2.09375 9.53125 2.67708 10.1641 3.4375 10.6484C4.19792 11.1328 5.05469 11.375 6.00781 11.375ZM10.7031 7.73438C10.7552 7.53646 10.7969 7.33333 10.8281 7.125C10.8594 6.91667 10.875 6.70833 10.875 6.5C10.875 5.40625 10.5573 4.4375 9.92188 3.59375C9.28646 2.75 8.47917 2.17188 7.5 1.85938V3.5C7.8125 3.5 8.07812 3.61016 8.29688 3.83047C8.51562 4.05078 8.625 4.31562 8.625 4.625V5.78125C8.78125 5.80208 8.92708 5.84635 9.0625 5.91406C9.19792 5.98177 9.32292 6.07292 9.4375 6.1875L10.7031 7.73438ZM6.00438 12.5C5.17854 12.5 4.40104 12.3438 3.67188 12.0312C2.94271 11.7188 2.30469 11.2891 1.75781 10.7422C1.21094 10.1953 0.78125 9.5575 0.46875 8.82875C0.15625 8.1 0 7.32135 0 6.49281C0 5.66427 0.15625 4.88802 0.46875 4.16406C0.78125 3.4401 1.21094 2.80469 1.75781 2.25781C2.30469 1.71094 2.9425 1.28125 3.67125 0.96875C4.4 0.65625 5.17865 0.5 6.00719 0.5C6.83573 0.5 7.61198 0.65625 8.33594 0.9687
2445C9.0599 1.28125 9.69531 1.71094 10.2422 2.25781C10.7891 2.80469 11.2188 3.44125 11.5312 4.1675C11.8438 4.89385 12 5.6699 12 6.49563C12 7.32146 11.8438 8.09896 11.5312 8.82812C11.2188 9.55729 10.7891 10.1953 10.2422 10.7422C9.69531 11.2891 9.05875 11.7188 8.3325 12.0312C7.60615 12.3438 6.8301 12.5 6.00438 12.5Z",fill:"currentColor"})))},eQ=n(71805),eJ=n(58084),e0=n.n(eJ),e1=n(11163);let e2=O().bind(e0());function e3(e){let{languages:t}=e,n=(0,e1.useRouter)(),[i,r]=(0,T.useState)(!1),a=(0,T.useRef)(null),[s,o]=(0,T.useState)((0,D.Dy)(n.asPath)||"en"),l=e=>{if(e.preventDefault(),!i&&e.target===e.currentTarget){var t;null===(t=a.current)||void 0===t||t.focus(),r(!0)}},u=e=>{e.stopPropagation()},c=(0,T.useCallback)(e=>{e.preventDefault(),o(e.target.value);let t=n.asPath,i=(0,D.Dy)(t,!1),r=e.target.value,a=i?t.split("/".concat(i))[1]||"/":t;"en"!==r&&(a="/".concat(r).concat(a)),window.location.href=a},[n.asPath]),d=()=>{r(!1)};return(0,w.jsxs)("button",{className:e2(["language-select",{focused:i}]),onFocus:l,tabIndex:i?-1:0,"data-gtm-section":"nav",children:[(0,w.jsx)(eX,{className:e2("icon")}),(0,w.jsxs)("label",{className:e2("label"),children:[(0,w.jsx)("p",{className:"tag-l",children:s}),(0,w.jsx)("select",{ref:a,className:e2("select"),name:"language",id:"language",value:s,tabIndex:-1,onBlur:d,onClick:u,onChange:c,"data-gtm-section":"nav",children:null==t?void 0:t.map(e=>(0,w.jsx)("option",{value:(null==e?void 0:e.code)||"en",children:null==e?void 0:e.native_name},null==e?void 0:e.code))})]}),(0,w.jsx)(eQ.Z,{className:e2(["icon","arrow"])})]})}var e5=n(84127),e4=n.n(e5);let e6=O().bind(e4());function e8(e){let{membershipLink:t,donateLink:n,hostEventLink:i,languages:r}=e,a=(0,D.Cr)(t),s=(0,D.Cr)(n),o=(0,D.Cr)(i);return(0,w.jsxs)("div",{className:e6("desktop-side-nav"),children:[(0,w.jsxs)("div",{className:e6("group"),children:[a&&(0,w.jsx)(td.K,{className:e6(["tag-l","side-nav-link"]),href:a.url,target:a.target,"data-gtm-section":"nav",children:a.label}),s&&(0,w.jsx)(td.K,{className:e6(["tag-l","side-nav-link"]),href:s.url,target:s.target,"data-gtm-section":"nav",children:s.label})]}),(0,w.jsxs)("div",{className:e6("group"),children:[o&&(0,w.jsx)(td.K,{className:e6(["tag-l","side-nav-link"]),href:o.url,target:o.target,"data-gtm-section":"nav",children:o.label}),(0,w.jsx)(e3,{languages:r})]})]})}var e7=n(43397),e9=n(93859),te=n.n(e9);let tt=O().bind(te());function tn(e){let{active:t,onClick:n}=e;return(0,w.jsx)("button",{className:tt("menu-icon",{active:t}),onClick:n,"aria-label":"Menu","aria-expanded":t,children:(0,w.jsx)("div",{className:tt("menu-icon-box"),children:(0,w.jsx)("div",{className:tt("menu-icon-inner")})})})}function ti(){return(ti=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var tr=function(e){return T.createElement("svg",ti({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),sH||(sH=T.createElement("path",{d:"M15.4194 10C15.4194 7.00697 12.993 4.58065 10 4.58065C7.00697 4.58065 4.58065 7.00697 4.58065 10C4.58065 12.993 7.00697 15.4194 10 15.4194C12.993 15.4194 15.4194 12.993 15.4194 10ZM18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10Z",fill:"currentColor"})),sG||(sG=T.createElement("path",{d:"M19.9846 21.753L13.4266 15.195L15.1944 13.4273L21.7524 19.9853L19.9846 21.753Z",fill:"currentColor"})))},ta=n(31605),ts=n(38886),to=n.n(ts);let tl=O().bind(to());function tu(e){var t;let{link:n}=e,i=(0,D.Cr)(n),r=(null==n?void 0:null===(t=n.linkType)||void 0===t?void 0:t[0])==="external"?eL.Z:ta.Z;return i?(0,w.jsxs)(td.K,{className:tl("top-level-link"),href:i.url,target:i.target,"data-gtm-section":"nav",children:[(0,w.jsx)("p",{className:"title-uc-s",children:i.label}),(0,w.jsx)(r,{className:tl("icon")})]}):null}var tc=n(60389),td=n(52217),th=n(4483),tf=n.n(th);let tp=O().bind(tf());function tm(e){let{imageLink:t}=e,{label:n,subtitle:i,image:r,linkType:a}=t||{},s=(0,D.Cr)(t),o=(0,D.xd)(n||""),l=(null==a?void 0:a[0])==="external"?eL.Z:ta.Z;return s?(0,w.jsx)(td.K,{href:s.url,target:s.target,className:tp("image-link"),"data-gtm-section":"nav",children:(0,w.jsxs)("div",{className:tp("content-wrapper"),children:[(0,w.jsx)(tc.E,{image:r,className:tp("image")}),(0,w.jsxs)("div",{className:tp("content"),children:[(0,w.jsxs)("div",{className:tp("copy"),children:[(0,w.jsx)("p",{className:tp(["title-lc-s","title"]),dangerouslySetInnerHTML:{__html:o}}),i&&(0,w.jsx)("p",{className:tp(["text-m","subtitle"]),children:i})]}),(0,w.jsx)(l,{className:tp("arrow")})]})]})}):null}var tg=n(94525),tv=n.n(tg),ty=n(16814),t_=n.n(ty);let tb=O().bind(t_());function tx(e){var t;let n=(0,D.Cr)(e),{className:i}=e;if(!n)return null;let r=(null==e?void 0:null===(t=e.linkType)||void 0===t?void 0:t[0])==="external"?eL.Z:ta.Z;return(0,w.jsxs)(td.K,{href:n.url,target:n.target,className:tb(["secondary-link",i]),"data-gtm-section":"nav",children:[(0,w.jsx)("span",{className:tb(["label","t
244itle-lc-xs"]),children:n.label}),(0,w.jsx)(r,{className:tb("icon")})]})}let tC=O().bind(tv());function tE(e){let{links:t}=e;return(0,w.jsx)("ul",{className:tC("link-list"),children:null==t?void 0:t.map((e,t)=>(0,w.jsx)("li",{className:tC("item"),children:(0,w.jsx)(tx,{...e})},t))})}var tw=n(56341),tT=n.n(tw);let tS=O().bind(tT()),tL={"image-link":tm,"link-list":tE};function tP(e){let{label:t,linkGroups:n,isOpen:i,onToggle:r,index:a}=e,[s,o]=(0,T.useState)(i),l="menu-accordion-item-".concat(a),u=()=>{null==r||r(l)};return(0,T.useEffect)(()=>{o(i)},[i]),(0,w.jsxs)("div",{className:tS("menu-accordion"),children:[(0,w.jsxs)("button",{className:tS("accordion-button",{open:s}),"aria-expanded":s,"aria-controls":l,id:"".concat(l,"-header"),type:"button",onClick:u,"data-gtm-section":"nav",children:[(0,w.jsx)("p",{className:"title-uc-s",children:t}),(0,w.jsxs)("div",{className:tS("icon-container"),children:[(0,w.jsx)(eS.Z,{className:tS("icon")}),(0,w.jsx)(eS.Z,{className:tS("icon","vertical",{open:s})})]})]}),(0,w.jsx)(ez.M,{children:s&&(0,w.jsx)(R.E.div,{initial:{height:0},animate:{height:"auto"},exit:{height:0},transition:{duration:.3,ease:"easeOut"},className:tS("accordion-content"),children:n.map((e,t)=>{var n;let i=tL[(null===(n=e.groupType)||void 0===n?void 0:n[0])||""];return i?(0,w.jsx)(i,{...e},t):null})})})]})}var tM=n(4284),tA=n.n(tM);let tI=O().bind(to());function tR(e){let t=(0,D.Cr)(e);return t?(0,w.jsx)(td.K,{className:tI(["inline-link","text-m"]),href:t.url,target:t.target,"data-gtm-section":"nav",children:t.label}):null}var tk=n(2839),tD=n.n(tk);let tN=O().bind(tD()),tF=e=>{let{code:t,native_name:n,onChange:i,checked:r}=e;return(0,w.jsxs)("label",{className:tN("language-option"),children:[(0,w.jsx)("input",{type:"radio",name:"language",value:t,checked:r,onChange:()=>i(t)}),(0,w.jsx)("span",{className:tN("circle")}),(0,w.jsx)("p",{className:tN(["text-m","label"]),children:n})]})};function tO(e){let{languages:t}=e,n=(0,e1.useRouter)(),[i,r]=(0,T.useState)((0,D.Dy)(n.asPath)||"en"),a=e=>{r(e);let t=n.asPath,i=(0,D.Dy)(t),a=e,s=i?t.split("/".concat(i))[1]||"/":t;"en"!==a&&(s="/".concat(a).concat(s)),window.location.href=s};return(0,w.jsxs)("div",{className:tN("language-radio-select"),children:[(0,w.jsxs)("div",{className:tN("content"),children:[(0,w.jsx)(eX,{className:tN("icon")}),(0,w.jsx)("p",{className:"eyebrow-s",children:"Language"})]}),(0,w.jsx)("div",{className:tN("language-options"),children:t.map(e=>(0,w.jsx)(tF,{...e,onChange:a,checked:i===e.code},e.code))})]})}let tj=O().bind(tA()),tU={link:tu,dropdown:tP},tV=(0,T.forwardRef)((e,t)=>{let{topLevelNavigation:n,ticketsCta:i,donateLink:r,membershipLink:a,hostEventLink:s,languages:o}=e,[l,u]=(0,T.useState)(null),c=e=>{u(l===e?null:e)},d=(0,D.Cr)(i),h=[a,r,s].filter(Boolean);return(0,w.jsx)("div",{className:tj("mobile-menu"),ref:t,children:(0,w.jsxs)(E.W,{className:tj("container"),children:[null==n?void 0:n.map((e,t)=>{var n;if(!e)return null;let i=tU[null===(n=e.type)||void 0===n?void 0:n[0]];return i?(0,w.jsx)(i,{...e,index:t,isOpen:l==="menu-accordion-item-".concat(t),onToggle:c},t):null}),d&&(0,w.jsx)(id.z,{className:tj("tickets-cta"),...d,noIcon:!0,dataGtmSection:"nav"}),(0,w.jsx)("div",{className:tj("links"),children:h.map((e,t)=>(0,w.jsx)(tR,{...e},t))}),(0,w.jsx)(tO,{languages:o})]})})});var tB=R.E.create(tV);function tH(){return(tH=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var tG=function(e){return T.createElement("svg",tH({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),sz||(sz=T.createElement("path",{d:"M8.4 9.71429C8.08174 9.71429 7.77652 9.83469 7.55147 10.049C7.32643 10.2633 7.2 10.554 7.2 10.8571V13.1429C7.2 13.446 7.32643 13.7367 7.55147 13.951C7.77652 14.1653 8.08174 14.2857 8.4 14.2857C8.71826 14.2857 9.02348 14.1653 9.24853 13.951C9.47357 13.7367 9.6 13.446 9.6 13.1429V10.8571C9.6 10.554 9.47357 10.2633 9.24853 10.049C9.02348 9.83469 8.71826 9.71429 8.4 9.71429ZM22.8 10.8571C23.1183 10.8571 23.4235 10.7367 23.6485 10.5224C23.8736 10.3081 24 10.0174 24 9.71429V5.14286C24 4.83975 23.8736 4.54906 23.6485 4.33474C23.4235 4.12041 23.1183 4 22.8 4H1.2C0.88174 4 0.576515 4.12041 0.351472 4.33474C0.126428 4.54906 0 4.83975 0 5.14286V9.71429C0 10.0174 0.126428 10.3081 0.351472 10.5224C0.576515 10.7367 0.88174 10.8571 1.2 10.8571C1.51826 10.8571 1.82348 10.9776 2.04853 11.1919C2.27357 11.4062 2.4 11.6969 2.4 12C2.4 12.3031 2.27357 12.5938 2.04853 12.8081C1.82348 13.0224 1.51826 13.1429 1.2 13.1429C0.88174 13.1429 0.576515 13.2633 0.351472 13.4776C0.126428 13.6919 0 13.9826 0 14.2857V18.8571C0 19.1602 0.126428 19.4509 0.351472 19.6653C0.576515 19.8796 0.88174 20 1.2 20H22.8C23.1183 20 23.4235 19.8796 23.6485 19.6653C23.8736 19.4509 24 19.1602 24 18.8571V14.2857C24 13.9826 23.8736 13.6919 23.6485 13.4776C23.4235 13.2633 23.1183 13.1429 22.8 13.1429C22.4817 13.1429 22.1765 13.0224 21.9515 12.8081C21.7264 12.5938 21.6 12.3031 21.6 12C21.6 11.6969 21.7264 11.4062 21.9515 11.1919C22.1765 10.9776 22.4817 10.8571 22.8 10.8571ZM21.6 8.77714C20.905 9.01738 20.3046 9.45558 19.8802 10.0322C19.4559 10.6088 19.2282 11.2959 19.2282 12C19.2282 12.7041 19.4559 13.3912 19.8802 13.9678C20.3046 14.5444 20.905 14.9826 21.6 15.2229V17.7143H9.6C9.6 17.4112 9.47357 17.1205 9.24853 16.9062C9.02348 16.6918 8.71826 16.5714 8.4 16.5
244714C8.08174 16.5714 7.77652 16.6918 7.55147 16.9062C7.32643 17.1205 7.2 17.4112 7.2 17.7143H2.4V15.2229C3.09498 14.9826 3.69545 14.5444 4.11979 13.9678C4.54413 13.3912 4.77177 12.7041 4.77177 12C4.77177 11.2959 4.54413 10.6088 4.11979 10.0322C3.69545 9.45558 3.09498 9.01738 2.4 8.77714V6.28571H7.2C7.2 6.58882 7.32643 6.87951 7.55147 7.09384C7.77652 7.30816 8.08174 7.42857 8.4 7.42857C8.71826 7.42857 9.02348 7.30816 9.24853 7.09384C9.47357 6.87951 9.6 6.58882 9.6 6.28571H21.6V8.77714Z",fill:"currentColor"})))},tz=n(31980),tq=n.n(tz);let tW=O().bind(tq()),t$=(0,T.forwardRef)((e,t)=>{let{membershipLink:n,donateLink:i,hostEventLink:r,languages:a}=e;return(0,w.jsxs)("div",{className:tW("tablet-side-menu"),ref:t,children:[(0,w.jsxs)("div",{className:tW("links"),children:[(0,w.jsx)(tx,{...n,className:tW("link")}),(0,w.jsx)(tx,{...i,className:tW("link")}),(0,w.jsx)(tx,{...r,className:tW("link")})]}),(0,w.jsx)(tO,{languages:a})]})});var tZ=R.E.create(t$),tY=n(7478),tK=n.n(tY);let tX=O().bind(tK());function tQ(e){let{ticketsCta:t,onSearchClick:n,languages:i}=e,r=(0,e1.useRouter)(),a=(0,T.useRef)(null),{showSearchTray:s,isSearchPage:o}=(0,e$.R)(),{setMenuExpanded:l,menuExpanded:u}=(0,eZ.g)(),{viewWidth:c,isTablet:d,isMobile:h}=(0,N.dg)(),f=(0,D.Cr)(t),p=()=>{s&&n(),l(!u)},m=()=>l(!1);return(0,T.useEffect)(()=>(r.events.on("routeChangeStart",m),()=>{r.events.off("routeChangeStart",m)}),[]),(0,T.useEffect)(()=>{c&&l(!1)},[c]),(0,T.useEffect)(()=>{let e=e=>{a.current&&!a.current.contains(e.target)&&(e.stopPropagation(),e.preventDefault(),l(!1))};return(0,D.OW)(u),u&&window.addEventListener("click",e),()=>window.removeEventListener("click",e)},[u]),(0,w.jsxs)("div",{className:tX("mobile-side-nav"),ref:a,children:[f&&(0,w.jsx)(td.K,{className:tX(["icon-link","tickets"]),href:f.url,target:f.target,"aria-label":f.label,"data-gtm-section":"nav",children:(0,w.jsx)(tG,{className:tX("icon")})}),(0,w.jsx)("button",{className:tX(["icon-link","search",{active:s}]),disabled:o,"aria-label":"Search",onClick:()=>{l(!1),n()},children:(0,w.jsx)(tr,{className:tX("icon"),"aria-hidden":"true"})}),(0,w.jsx)(tn,{active:u,onClick:p}),d&&(0,w.jsx)(ez.M,{children:u&&(0,w.jsx)(tZ,{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{duration:.3,ease:e7.hl},...e})}),h&&(0,w.jsx)(ez.M,{children:u&&(0,w.jsx)(tB,{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{duration:.3,ease:e7.hl},...e})})]})}var tJ=n(73811),t0=n.n(tJ);let t1=O().bind(t0());function t2(e){let{link:t,active:n}=e,i=(0,D.Cr)(t);return(0,w.jsx)(td.K,{href:i.url,target:i.target,className:t1(["top-level-link","cta",{active:n}]),"data-gtm-section":"nav",children:(0,w.jsx)("span",{className:t1("label"),children:i.label})})}var t3=n(82417),t5=n.n(t3);let t4=O().bind(t5()),t6={"image-link":tm,"link-list":tE},t8=(0,T.forwardRef)((e,t)=>{let{linkGroups:n,onBlur:i,onKeyDown:r,menuId:a}=e;return(0,w.jsx)("div",{className:t4("dropdown-menu"),onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||null==i||i(e)},ref:t,id:a,children:(0,w.jsx)("div",{className:t4("dropdown-menu__content"),children:null==n?void 0:n.map((e,t)=>{var n;let i=t6[(null===(n=e.groupType)||void 0===n?void 0:n[0])||""];return i?(0,w.jsx)(i,{...e},t):null})})})});var t7=R.E.create(t8),t9=n(3927),ne=n.n(t9);let nt=O().bind(ne());function nn(e){let{label:t,active:n,linkGroups:i,hideSearchTray:r}=e,[a,s]=(0,T.useState)(!1),{setDropdownExpanded:o,setExpandedMenu:l,setCanExpandDropdown:u,canExpandDropdown:c}=(0,eZ.g)(),d=(0,T.useRef)(null),h=(0,T.useRef)(c),{isTouchDevice:f}=(0,N.dg)(),p=(0,e1.useRouter)(),m=(0,T.useRef)(null),g=(0,T.useRef)(null),v="header-dropdown-".concat(null==t?void 0:t.toLowerCase().replace(/[^a-z0-9]/g,"")),y=()=>{if(f)a?b():_();else{var e;let t=null===(e=m.current)||void 0===e?void 0:e.querySelector("a");null==t||t.click(),u(!1)}},_=()=>{s(!0),o(!0)},b=()=>{s(!1),o(!1)},x=e=>{"Enter"===e.key||" "===e.key?(e.preventDefault(),a?b():_()):"Escape"===e.key&&b()},C=()=>{!f&&h.current&&(g.current=setTimeout(()=>{r(),_()},150))},E=e=>{b()},S=()=>{f||(g.current&&(clearTimeout(g.current),g.current=null),b())},L=()=>{setTimeout(()=>{u(!0),window.removeEventListener("mousemove",L)},150)},P=()=>{f||h.current||window.addEventListener("mousemove",L)};return(0,T.useEffect)(()=>{let e=e=>{m.current&&!m.current.contains(e.target)&&a&&b()};return a&&f&&window.addEventListener("click",e),a?l(d.current):l(null),()=>{window.removeEventListener("click",e)}},[a]),(0,T.useEffect)(()=>(p.events.on("routeChangeStart",b),p.events.on("routeChangeComplete",P),()=>{p.events.off("routeChangeStart",b)}),[]),(0,T.useEffect)(()=>{h.current=c},[c]),(0,w.jsxs)("div",{className:nt("header-dropdown",{active:n,expanded:a}),onMouseLeave:S,ref:m,children:[(0,w.jsx)("button",{className:nt("header-dropdown__button",{active:n,expanded:a}),"data-gtm-ignore":"true",onMouseEnter:C,onKeyDown:x,onClick:y,"aria-controls":v,"aria-expanded":a?"true":"false",children:(0,w.jsxs)("span",{className:nt(["label","cta"]),children:[t,(0,w.jsx)(eQ.Z,{className:nt("arrow"),"aria-hidden":"true"})]})}),(0,w.jsx)(ez.M,{children:a&&(0,w.jsx)(t7,{ref:d,initial:{opacity:0,filter:"blur(4px)"}
244,animate:{opacity:1,filter:"blur(0px)"},exit:{opacity:0,filter:"blur(4px)"},transition:{duration:.35,ease:e7.hl},linkGroups:i,onBlur:E,onKeyDown:x,menuId:v},t)})]})}var ni=n(43858),nr=n.n(ni);let na=O().bind(nr()),ns={link:t2,dropdown:nn};function no(e){let{topLevelNavigation:t,ticketsCta:n,onSearchClick:i,hideSearchTray:r}=e,a=(0,D.Cr)(n),{isSearchPage:s}=(0,e$.R)(),{isDesktop:o}=(0,N.dg)();return(0,w.jsx)(w.Fragment,{children:(0,w.jsxs)("div",{className:na("desktop-menu"),children:[null==t?void 0:t.map((e,t)=>{if(!e)return null;let n=ns[e.type[0]];return n?(0,w.jsx)(n,{...e,hideSearchTray:r},t):null}),(0,w.jsxs)("div",{className:na("desktop-menu__buttons"),children:[a&&(0,w.jsx)(id.z,{className:na("ticket-button"),dataGtmSection:"nav",...a}),(0,w.jsx)("button",{role:"button","aria-label":"Search",value:"Search",disabled:s,className:na(["search-button"]),onClick:i,"data-gtm-section":"nav",children:(0,w.jsx)(tr,{})})]})]})})}var nl=n(98034),nu=n.n(nl);let nc=O().bind(nu());function nd(e){var t;let{scrollY:n,lastScrollY:i,setLastScrollY:r}=(0,eY.v)(),{setShowSearchTray:a,showSearchTray:s}=(0,e$.R)(),[o,l]=(0,T.useState)(0),{labels:u}=(0,G.i)(),{highlightColor:c}=(0,S.$h)(),[d,h]=(0,T.useState)({}),[f,p]=(0,T.useState)(!1),[m,g]=(0,T.useState)(0),{isScrolled:v,setIsScrolled:y,scrollDirection:_,isHeaderFixed:b,setScrollDirection:x,expandedMenu:C,setHeaderRef:L,ignoreScroll:P,dropdownExpanded:M,menuExpanded:A}=(0,eZ.g)(),I=null!==(t=e.disableHideOnScroll)&&void 0!==t&&t,D=()=>a(!s),N=()=>a(!1),F=M||A||s,[O,j]=(0,T.useState)(!1);if((0,T.useEffect)(()=>{if(F){j(!0);return}let e=setTimeout(()=>j(!1),300);return()=>clearTimeout(e)},[F]),(0,T.useEffect)(()=>{n>10&&!v?y(!0):n<5&&v&&y(!1),P||M||A||I?I&&x("up"):n>document.documentElement.scrollHeight-window.innerHeight-300?x("up"):n>i?(x("down"),l(n)):(n-o<-80||0===n)&&x("up"),r(n)},[n]),(0,T.useEffect)(()=>{h({"--highlight-color":c})},[c]),(0,T.useEffect)(()=>{C?(g(C.clientHeight),p(!0)):p(!1)},[C]),!(null==e?void 0:e.navigationSettingsFields))return;let{navigationSettingsFields:U,languages:V}=e,B=!0,H=!0,z=k.LL,q=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return{initial:B?{opacity:z.opacity}:{},animate:H?{opacity:1}:{},transition:{duration:z.lg.duration,ease:z.ease,delay:e}}};return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("a",{className:nc("skip-to-content-link"),href:"#main","data-gtm-section":"nav",children:(0,w.jsx)("span",{className:nc("cta"),children:null==u?void 0:u.skipToContent})}),(0,w.jsx)(de,{className:nc("reduce-motion-toggle"),dataGtmSection:"nav"}),(0,w.jsxs)(R.E.header,{className:nc("header",{scrolled:v||I,"menu-expanded":O,"hide-header":"down"===_&&!b,"show-header":"up"===_}),style:d,ref:L,...q(.5),children:[(0,w.jsx)(ez.M,{children:f&&(0,w.jsx)(R.E.div,{className:nc("header__background"),initial:{height:m,opacity:0},animate:{height:m,opacity:1,transition:{duration:.35,ease:e7.hl}},exit:{height:m,opacity:0,transition:{duration:.2,delay:.15}}})}),(0,w.jsx)(E.W,{className:nc(["header__container"]),fullWidth:!0,children:(0,w.jsxs)("div",{className:nc("header__navbar"),children:[(0,w.jsx)(td.K,{"aria-label":"Rock & Roll Hall of Fame logo, home",href:"/","data-gtm-section":"nav",children:(0,w.jsx)(eW,{alt:"Rock & Roll Hall of Fame logo, home",className:nc("header__logo")})}),(0,w.jsx)(no,{...U,hideSearchTray:N,onSearchClick:D}),(0,w.jsx)(e8,{...U,languages:V}),(0,w.jsx)(tQ,{...U,onSearchClick:D,languages:V})]})}),(0,w.jsx)(ia,{...U})]})]})}var nh=n(95484),nf=n(9008),np=n.n(nf),nm=n(66432);function ng(e){var t;let{title:n,description:i,image:r,jsonLd:a}=e,s=a?Array.isArray(a)?a:[a]:[];if(!n&&!i&&!r&&0===s.length)return null;let o=(0,nm.Kg)(null==r?void 0:null===(t=r.node)||void 0===t?void 0:t.mediaItemUrl)||null;return(0,w.jsx)(w.Fragment,{children:(0,w.jsxs)(np(),{children:[(0,w.jsx)("meta",{property:"og:type",content:"website"}),(0,w.jsx)("meta",{property:"twitter:card",content:"summary_large_image"}),n&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("title",{children:n}),(0,w.jsx)("meta",{name:"title",content:n}),(0,w.jsx)("meta",{property:"og:title",content:n}),(0,w.jsx)("meta",{property:"twitter:title",content:n})]}),i&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("meta",{name:"description",content:i}),(0,w.jsx)("meta",{property:"og:description",content:i}),(0,w.jsx)("meta",{property:"twitter:description",content:i})]}),o&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("meta",{property:"og:image",content:o}),(0,w.jsx)("meta",{property:"twitter:image",content:o})]}),s.map((e,t)=>(0,w.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(e)}},"jsonld-".concat(t)))]})})}var nv=()=>{let{push:e,...t}=(0,e1.useRouter)(),n=(t,n)=>{let{pathname:i,query:r}=t;if(r){let t=new URLSearchParams(r).toString();
244e("".concat(i,"/?").concat(t),null,n)}else e(i,null,n)};return{...t,push:n}};function ny(e,t){if(!e.length&&!t.length)return[];if(!e.length)return t.map(e=>({type:"shop",data:e}));if(!t.length)return e.map(e=>({type:"wp",data:e}));let n=[],i=0,r=0;for(;i<e.length||r<t.length;){for(let t=0;t<3&&i<e.length;t++)n.push({type:"wp",data:e[i++]});r<t.length&&n.push({type:"shop",data:t[r++]});for(let t=0;t<3&&i<e.length;t++)n.push({type:"wp",data:e[i++]});if(r<t.length&&n.push({type:"shop",data:t[r++]}),i>=e.length&&r>=t.length)break}return n}function n_(e,t){return e.length||t.length?e.length?t.length?[...e.slice(0,3).map(e=>({type:"wp",data:e})),{type:"shop",data:t[0]}]:e.slice(0,4).map(e=>({type:"wp",data:e})):t.slice(0,4).map(e=>({type:"shop",data:e})):[]}var nb=n(65988),nx=n(17850),nC=n.n(nx);let nE=O().bind(nC());function nw(e){let{searchTerm:t,setSearchTerm:n,handleFormSubmit:i,onSearchClear:r,placeholder:a=""}=e,[s,o]=(0,T.useState)(!1),{loading:l}=(0,e$.R)(),u=e=>{let{value:t}=e.target;n(t)};return(0,w.jsx)("div",{className:nE("search-form"),children:(0,w.jsx)(E.W,{children:(0,w.jsx)("form",{onSubmit:i,className:nE("search-form__form"),children:(0,w.jsxs)("div",{className:nE(["search-input",{focused:s}]),children:[(0,w.jsx)(tr,{className:nE("search-input__icon")}),(0,w.jsx)("input",{type:"text",name:"search",readOnly:l,placeholder:a||"Search",value:t,onBlur:()=>{o(!1)},onFocus:()=>{o(!0)},onInput:u,className:nE(["search-input__input","text-m"]),enterKeyHint:"done"}),(0,w.jsx)("button",{className:nE("search-input__clear"),onClick:r,disabled:!t||l,"aria-label":"Clear search",type:"button",children:(0,w.jsx)(nb.Z,{})})]})})})})}var nT=n(43775),nS=n(76348),nL=n(69065),nP=n(77630),nM=n.n(nP);let nA=O().bind(nM()),nI=e=>{let{type:t}=e,n=(0,nL.k)({node:{__typename:t}});return n?(0,w.jsx)(ic,{type:n.key,copy:n.label}):null},nR=e=>{let{image:t,youtubeId:n}=e;return t?(0,w.jsx)(tc.E,{image:t}):n?(0,w.jsx)(hL,{youtubeId:n}):null},nk=(0,T.forwardRef)((e,t)=>{let{uri:n,__typename:i,title:r,pressReleaseSearchImage:a}=e,s=(0,T.useMemo)(()=>{if("RhtvVideo"===i){let{rhtvVideoContent:{videoTitle:t}={}}=e;return t||r}return r},[]),o=(0,T.useMemo)(()=>n,[n,i]),l=(0,T.useMemo)(()=>{var t,n;if("RhtvVideo"===i)return(null===(n=e.rhtvVideoContent)||void 0===n?void 0:n.thumbnail)||null;if("RhtvChannel"===i){let{rhtvChannelContent:{thumbnail:t}}=e;return t}return"PressRelease"===i?a:null===(t=e.pageData)||void 0===t?void 0:t.featuredImage},[i,e]),u=(0,T.useMemo)(()=>{var t;return"RhtvVideo"===i&&(null===(t=e.rhtvVideoContent)||void 0===t?void 0:t.youtubeVideoId)||null},[i]);return o?(0,w.jsx)("div",{ref:t,children:(0,w.jsxs)(td.K,{className:nA("rockhall-result"),href:o,children:[(0,w.jsx)("div",{className:nA(["rockhall-result__image"]),children:(0,w.jsx)(nR,{image:l,youtubeId:u})}),(0,w.jsxs)("div",{className:nA("rockhall-result__content"),children:[(0,w.jsx)(nI,{type:i}),(0,w.jsx)("h3",{className:nA(["title-lc-xs"]),children:s}),(0,w.jsx)(ta.Z,{className:nA("rockhall-result__arrow")})]})]})}):null});var nD=R.E.create(nk);let nN=O().bind(nM()),nF=e=>{let t=parseFloat(e.priceRange.minVariantPrice.amount),n=parseFloat(e.priceRange.maxVariantPrice.amount),i=e.priceRange.minVariantPrice.currencyCode||"USD",r=e=>new Intl.NumberFormat("en-US",{style:"currency",currency:i,minimumFractionDigits:2}).format(e);return t===n?r(t):"".concat(r(t)," â ").concat(r(n))},nO=(0,T.forwardRef)((e,t)=>{let{title:n,onlineStoreUrl:i,featuredImage:r}=e,a=(0,T.useMemo)(()=>nF(e),[e]),{labels:{postTypeLabels:{shop:s}={}}={}}=(0,G.i)(),o=s||"Shop";return i?(0,w.jsx)("div",{ref:t,children:(0,w.jsxs)("a",{className:nN("rockhall-result","rockhall-result--shop"),href:i,target:"_blank",rel:"noopener noreferrer",children:[(0,w.jsx)("div",{className:nN("rockhall-result__image"),children:(null==r?void 0:r.url)&&(0,w.jsx)("img",{src:r.url,alt:n,loading:"lazy"})}),(0,w.jsxs)("div",{className:nN("rockhall-result__content"),children:[(0,w.jsx)(ic,{type:"shop",copy:o}),(0,w.jsx)("h3",{className:nN("title-lc-xs"),children:n}),(0,w.jsx)("p",{className:nN("shop-price"),children:a}),(0,w.jsx)(ta.Z,{className:nN("rockhall-result__arrow")})]})]})}):null});var nj=R.E.create(nO);let nU=O().bind(nC()),nV=(0,T.forwardRef)((e,t)=>{var n;let{headline:i,body:r,cta:a,searchTerm:s}=e,o=(0,D.Cr)(a),l=(0,D.$e)(i,{term:s}),u=(null==a?void 0:null===(n=a.linkType)||void 0===n?void 0:n[0])==="external"?eL.Z:void 0;return(0,w.jsxs)("div",{className:nU("no-results"),ref:t,children:[(0,w.jsxs)("div",{className:nU("no-results__copy"),children:[(0,w.jsx)("h2",{className:"title-lc-s",children:l}),(0,w.jsx)("p",{className:"text-m",children:r})]}),o&&(0,w.jsx)(id.z,{...o,icon:u})]})});
244var nB=R.E.create(nV);let nH=O().bind(nM()),nG=e=>({initial:{opacity:0,y:20},animate:{opacity:1,y:0,transition:{duration:.5,delay:.35+.1*e,ease:e7.hl}}}),nz=(0,T.forwardRef)((e,t)=>{let{pageResults:n,totalCount:i,showPaging:r,noResults:a,searchTerm:s,headline:o,categories:l,brandFilterLabel:u,termCounts:c,onTypeFilterClick:d,typeFilters:h,pressReleaseSearchImage:f}=e,{currentPage:p,perPage:m,setCurrentPage:g}=(0,e$.R)(),v={brand:u},{setIgnoreScroll:y,headerRef:_,headerVisible:b}=(0,eZ.g)(),x=(0,T.useMemo)(()=>{var e,t;return null!==(t=null===(e=c.find(e=>"shop"===e.termSlug))||void 0===e?void 0:e.count)&&void 0!==t?t:0},[c]),C="https://shop.rockhall.com/search?q=".concat(encodeURIComponent(s)),{labels:{postTypeLabels:{shop:S}={}}={}}=(0,G.i)(),L=[...[...l].map(e=>({...e,name:v[e.slug]||e.name})),{slug:"shop",name:S||"Shop"}].sort((e,t)=>"brand"===e.slug?1:"brand"===t.slug?-1:"shop"===e.slug?1:"shop"===t.slug?-1:e.name.localeCompare(t.name)),P=(0,T.useCallback)(e=>{var t,n;let i=document.getElementById("rockhall-results");y(!0),nT.ZP.to(window,{scrollTo:{y:i,offsetY:b&&null!==(n=null==_?void 0:null===(t=_.current)||void 0===t?void 0:t.offsetHeight)&&void 0!==n?n:0},duration:.5,ease:"power2.out",onComplete:()=>y(!1)}),g(e)},[b]);return(0,T.useEffect)(()=>{nT.ZP.registerPlugin(nS.L)},[]),(0,w.jsx)("div",{className:nH(["rockhall-results"]),ref:t,id:"rockhall-results",children:(0,w.jsxs)(E.W,{className:nH("container"),children:[(0,w.jsx)("div",{className:nH("rockhall-results__header"),children:(0,w.jsx)("h2",{className:nH("heading","title-uc-l"),children:o})}),(0,w.jsxs)("div",{className:nH("rockhall-results__filters"),children:[(0,w.jsx)(cK,{filterButtons:L,typeFilters:h,termCounts:c,handleFilterClick:d}),x>0&&(0,w.jsx)(id.z,{className:nH("shop-cta"),label:"See all shop results",url:C,target:"_blank",icon:eL.Z})]}),(0,w.jsx)(ez.M,{mode:"wait",children:n.length>0?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(R.E.div,{className:nH("rockhall-results__cards"),initial:{opacity:0}
244,animate:{opacity:1},exit:{opacity:0},transition:{delayChildren:.3,duration:.5,ease:e7.hl},children:n.map((e,t)=>"wp"===e.type?(0,w.jsx)(nD,{...e.data,pressReleaseSearchImage:f},e.data.uri||t):(0,w.jsx)(nj,{...e.data},"shop-".concat(e.data.onlineStoreUrl||t)))},n.map((e,t)=>"wp"===e.type?e.data.uri:"shop-".concat(t)).join("-")),r&&(0,w.jsx)(cV,{className:nH("rockhall-results__pagination"),size:"small",currentPage:p,totalCount:i,perPage:m,onPageChange:P})]}):(0,w.jsx)(nB,{variants:nG(0),initial:"initial",animate:"animate",exit:"exit",...a,searchTerm:s},"no-results")})]})})});var nq=R.E.create(nz);let nW=O().bind(nC()),n$=(0,T.forwardRef)((e,t)=>{let{className:n}=e;return(0,w.jsx)("div",{className:nW(["search-container__results-loading",n]),ref:t,children:(0,w.jsx)(is.u,{className:nW("spinner")})})});var nZ=R.E.create(n$);let nY=O().bind(nC()),nK={initial:{opacity:0,filter:"blur(10px)"},animate:{opacity:1,filter:"blur(0px)"},loading:{opacity:.25,filter:"blur(0px)",pointerEvents:"none"},exit:{opacity:0,filter:"blur(10px)"},transition:{duration:.5}};function nX(e){let{page:t,categories:n,databaseId:i,pressReleaseSearchImage:r}=e,{fetchSearchResults:a,results:s,setResults:o,lastSearchTerm:l,currentPage:u,loading:c,resultsCount:d,perPage:h,setHasSearched:f,hasSearched:p,searchPath:m,setIgnoreSearch:g,setCurrentPage:v,setExclude:y,ignoreSearch:_,resetSearch:b,setIsSearchPage:x,shopResults:C,setShopResults:E,termCounts:S}=(0,e$.R)(),{shopCarousel:L,noResults:P,noShopResults:M,searchPlaceholder:A,resultsText:I,rockHallLabel:R,shopLabel:k,brandFilterLabel:N}=t,[F,O]=(0,T.useState)(""),[j,U]=(0,T.useState)([]),V=nv(),B=j.some(e=>"shop"!==e),H=j.includes("shop"),G=0===j.length||H,z=0===j.length||B,q=(0,T.useMemo)(()=>ny(z?s:[],G?C:[]),[s,C,z,G]),W=(0,T.useMemo)(()=>[...S||[],{termSlug:"shop",count:C.length}],[S,C]),$=Math.ceil(q.length/h)>1,Z=(0,T.useMemo)(()=>q.slice((u-1)*h,u*h),[q,u,h]),Y=e=>{e.preventDefault(),F&&(v(1),V.push({pathname:m,query:{s:F}},{shallow:!0}))},K=e=>{U(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},X=()=>{O(""),f(!1),o([]),E([]),V.push({pathname:"search"},{shallow:!0})};return(0,T.useEffect)(()=>(y([i]),x(!0),(0,D.OW)(!1),()=>{b(),x(!1)}),[]),(0,T.useEffect)(()=>{if(j.length>0){let e=V.query.types&&"string"==typeof V.query.types?V.query.types.split(","):[],t=j.join(",");t!==e.join(",")&&(v(1),V.push({pathname:m,query:{s:F,types:t}},{shallow:!0}))}else F&&V.push({pathname:m,query:{s:F}},{shallow:!0})},[j]),(0,T.useEffect)(()=>{u>1?V.push({pathname:m,query:{s:F,...j.length>0&&{types:j.join(",")},page:u}},{shallow:!0}):F&&V.push({pathname:m,query:{s:F,...j.length>0&&{types:j.join(",")}}},{shallow:!0})},[u]),(0,T.useEffect)(()=>{if(V.isReady){let{s:e,types:t}=V.query;if("string"==typeof e&&e.length>0&&!_){let i="string"==typeof t?t.split(","):[],r=n.filter(e=>i.includes(e.slug)).map(e=>e.databaseId),s="string"==typeof V.query.page?parseInt(V.query.page):1;s&&s!==u&&v(s),a(e,r),JSON.stringify(i)!==JSON.stringify(j)&&U(i),e!==l&&O(e)}else _?(j.length>0&&U([]),O(l),g(!1)):void 0===e||e.length||V.push({pathname:m},{shallow:!0})}},[V.query]),(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(nw,{setSearchTerm:O,handleFormSubmit:Y,searchTerm:F,placeholder:A,onSearchClear:X}),(0,w.jsxs)("div",{className:nY("search-container"),children:[(0,w.jsx)(ez.M,{children:p&&c&&(0,w.jsx)(nZ,{animate:{opacity:1},exit:{opacity:0},className:"hasSearched",transition:{duration:.35,ease:"easeOut"}})}),(0,w.jsxs)(ez.M,{mode:"wait",children:[!p&&c&&(0,w.jsx)(nZ,{animate:{opacity:1},exit:{opacity:0},transition:{duration:.35,ease:"easeOut"}}),p?(0,w.jsx)(w.Fragment,{children:(0,w.jsx)(nq,{initial:nK.initial,animate:c?nK.loading:nK.animate,exit:nK.exit,headline:R,pressReleaseSearchImage:r,categories:n,searchTerm:l,onTypeFilterClick:K,typeFilters:j,transition:nK.transition,brandFilterLabel:N,termCounts:W,noResults:P,pageResults:Z,totalCount:q.length,showPaging:$},"rockhall-results")}):null]})]})]})}var nQ=n(12943),nJ=n.n(nQ);let n0=O().bind(nJ()),n1=e=>{let{image:t,youtubeId:n}=e;return t?(0,w.jsx)(tc.E,{image:t}):n?(0,w.jsx)(hL,{youtubeId:n}):null},n2=(0,T.forwardRef)((e,t)=>{let{title:n,uri:i,__typename:r,pageData:a}=e,s=(0,nL.k)({node:{...e,__typename:r}}),o=(0,T.useMemo)(()=>
244{if("RhtvVideo"===r){let{rhtvVideoContent:{videoTitle:t}={}}=e;return t||n}return n},[]),{siteSettings:{pressReleaseSearchImage:l}={}}=(0,G.i)(),{currentLanguage:u}=(0,eZ.g)(),c=(0,T.useMemo)(()=>(0,D.JW)(i,u),[i,r]),d=(0,T.useMemo)(()=>{if("RhtvVideo"===r){var t;return(null===(t=e.rhtvVideoContent)||void 0===t?void 0:t.thumbnail)||null}if("RhtvChannel"===r){let{rhtvChannelContent:{thumbnail:t}}=e;return t}return"PressRelease"===r?l:null==a?void 0:a.featuredImage},[r,e]),h=(0,T.useMemo)(()=>{var t;return"RhtvVideo"===r&&(null===(t=e.rhtvVideoContent)||void 0===t?void 0:t.youtubeVideoId)||null},[r]);return c?(0,w.jsxs)(td.K,{className:n0("search-result"),ref:t,href:c,role:"option",children:[(0,w.jsx)("div",{className:n0("search-result__image"),children:(0,w.jsx)(n1,{image:d,youtubeId:h})}),(0,w.jsxs)("div",{className:n0("search-result__content"),children:[(0,w.jsxs)("div",{className:n0("copy"),children:[s&&(0,w.jsx)(ic,{className:n0("search-result__type"),type:s.key,copy:s.label}),(0,w.jsx)("p",{className:n0(["title","title-lc-xs"]),children:o})]}),(0,w.jsx)(ta.Z,{className:n0("arrow")})]})]}):null}),n3=R.E.create(n2),n5=(0,T.forwardRef)((e,t)=>{let{title:n,onlineStoreUrl:i,featuredImage:r,priceRange:a}=e,{labels:{postTypeLabels:{shop:s}={}}={}}=(0,G.i)(),o=(0,T.useMemo)(()=>{let e=parseFloat(a.minVariantPrice.amount),t=a.minVariantPrice.currencyCode||"USD";return new Intl.NumberFormat("en-US",{style:"currency",currency:t,minimumFractionDigits:2}).format(e)},[a]);return i?(0,w.jsxs)("a",{className:n0("search-result","search-result--shop"),ref:t,href:i,target:"_blank",rel:"noopener noreferrer",role:"option",children:[(0,w.jsx)("div",{className:n0("search-result__image"),children:(null==r?void 0:r.url)&&(0,w.jsx)("img",{src:r.url,alt:n,loading:"lazy"})}),(0,w.jsxs)("div",{className:n0("search-result__content"),children:[(0,w.jsxs)("div",{className:n0("copy"),children:[(0,w.jsx)(ic,{className:n0("search-result__type"),type:"shop",copy:s||"Shop"}),(0,w.jsx)("p",{className:n0(["title","title-lc-xs"]),children:n}),(0,w.jsx)("p",{className:n0("shop-price"),children:o})]}),(0,w.jsx)(ta.Z,{className:n0("arrow")})]})]}):null}),n4=R.E.create(n5),n6=(0,T.forwardRef)((e,t)=>{let{resultsCtaLabel:n,pressReleaseSearchImage:i}=e,{autoCompleteResults:r,searchPath:a,setGoingToSearch:s,setIgnoreSearch:o,resultsCount:l,lastSearchTerm:u,autoCompleteLoading:c,shopResults:d}=(0,e$.R)(),[h,f]=(0,T.useState)([]),p=.085,m=.3,g=(0,e1.useRouter)(),v=l+d.length,y=(0,D.$e)(n,{count:v.toString()}),_=e=>{e.preventDefault();let t="".concat(a,"?s=").concat(encodeURIComponent(u));o(!0),s(!0),g.push(t),(0,D.OW)(!1)};return(0,T.useEffect)(()=>{f(n_(r,d))},[r,d]),(0,w.jsx)("div",{className:n0(["search-results"]),ref:t,children:(0,w.jsxs)("div",{className:n0("search-results__content",{loading:c}),children:[h.map((e,t)=>"wp"===e.type?(0,w.jsx)(n3,{initial:{opacity:0,y:20},animate:{opacity:1,y:0,transition:{delay:t*p,ease:e7.hl,duration:m}},exit:{opacity:0,transition:{duration:m,ease:e7.hl}},pressReleaseSearchImage:i,...e.data},e.data.databaseId):(0,w.jsx)(n4,{initial:{opacity:0,y:20},animate:{opacity:1,y:0,transition:{delay:t*p,ease:e7.hl,duration:m}},exit:{opacity:0,transition:{duration:m,ease:e7.hl}},...e.data},"shop-".concat(e.data.onlineStoreUrl))),(l>0||h.length>0)&&(0,w.jsx)(R.E.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0,transition:{delay:h.length*p,ease:e7.hl,duration:m}},exit:{opacity:0},transition:{duration:m,ease:e7.hl},className:n0("search-results__button-row"),children:(0,w.jsx)(id.z,{label:y,onClick:_})})]})})});var n8=R.E.create(n6);let n7=O().bind(nJ()),n9=(0,T.forwardRef)((e,t)=>{let{copy:n}=e;return(0,w.jsx)("div",{className:n7("search-results"),ref:t,children:(0,w.jsx)("p",{className:"text-m",children:n})})});var ie=R.E.create(n9),it=n(24937),ii=n.n(it);let ir=O().bind(ii());function ia(e){let{showSearchTray:t,autoCompleteLoading:n,resetSearch:i,hasSearched:r,setHasSearched:a,isSearchPage:s,updateResults:o,autoCompleteResults:l,setIgnoreSearch:u,lastSearchTerm:c,fetchAutoCompleteResults:d,setShowSearchTray:h,goingToSearch:f,searchPath:p,shopResults:m}=(0,e$.R)(),g=(0,T.useRef)(null),v=(0,T.useRef)(null),y=(0,T.useRef)(0),[_,b]=(0,T.useState)(""),x=(0,T.useRef)(null),C=(0,e1.useRouter)(),{isMobile:S}=(0,N.dg)(),{searchPlaceholders:L,searchAriaLabel:P,clearAriaLabel:M,noResultsLabel:A,resultsCta:I}=e,k=(0,T.useMemo)(()=>!!c&&r,[c,r]),F=(0,T.useMemo)(()=>
244k&&0===l.length&&0===m.length,[k,l,m]),j=(0,T.useMemo)(()=>k&&(l.length>0||m.length>0),[k,l,m]),U=(0,T.useMemo)(()=>!j&&!F&&n,[j,n,F]),V=(0,T.useRef)(-1),B=(0,T.useMemo)(()=>{if(t){if(L&&L.length>0){var e;let t;do t=Math.floor(Math.random()*L.length);while(t===V.current&&L.length>1);return V.current=t,(null===(e=L[t])||void 0===e?void 0:e.placeholder)||"Search"}return"Search"}},[L,t]),{scrollY:H,lastScrollY:G,setLastScrollY:z}=(0,eY.v)(),[q,W]=(0,T.useState)(!1),$=()=>{s||f?s&&_!==c&&(u(!0),C.push("".concat(p,"?s=").concat(encodeURIComponent(_)),void 0,{shallow:!0}),o()):(i(),b(""))},Z=()=>{var e;b(""),i(),null===(e=x.current)||void 0===e||e.focus()},Y=e=>{e.preventDefault();let t=e.target.value;b(t),g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{t&&t.length>=3?d(t):t&&0!==t.length?a(!1):i()},300)},K=e=>{"Escape"===e.key&&h(!1)},X=()=>h(!1);(0,T.useEffect)(()=>{S||(0,D.OW)(t&&j)},[j,t]),(0,T.useEffect)(()=>(C.events.on("routeChangeStart",X),()=>{C.events.off("routeChangeStart",X)}),[]),(0,T.useEffect)(()=>{S&&(0,D.OW)(t),t&&!S&&!j&&Math.abs(H-G)>=30&&X(),z(H)},[H,t,j]);let Q=(0,T.useRef)(t);return(0,T.useEffect)(()=>{Q.current=t},[t]),(0,T.useEffect)(()=>{let e=e=>{var t;y.current=(null===(t=e.touches[0])||void 0===t?void 0:t.clientY)||0},t=e=>{var t;if(!Q.current)return;let n=v.current,i=e.target,r=!!(n&&i instanceof Node&&n.contains(i));if(!n||!r){e.preventDefault();return}let a=((null===(t=e.touches[0])||void 0===t?void 0:t.clientY)||0)-y.current,s=a>0,o=a<0,l=n.scrollTop<=0,u=n.scrollTop+n.clientHeight>=n.scrollHeight-1;(l&&s||u&&o)&&e.preventDefault()};return window.addEventListener("touchstart",e,{passive:!0}),window.addEventListener("touchmove",t,{passive:!1}),()=>{window.removeEventListener("touchstart",e),window.removeEventListener("touchmove",t)}},[]),(0,w.jsx)(ez.M,{onExitComplete:$,children:t&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(R.E.div,{className:ir(["search-tray",O()]),initial:{opacity:0,filter:"blur(4px)"},animate:{opacity:1,filter:"blur(0px)"},exit:{opacity:0,filter:"blur(4px)",transition:{delay:0}},transition:{duration:.2,delay:.2,ease:e7.hl},onAnimationStart:()=>{var e;return null===(e=x.current)||void 0===e?void 0:e.focus()},children:(0,w.jsxs)(E.W,{className:ir("content"),children:[(0,w.jsx)("div",{className:ir("search-input-wrapper"),children:(0,w.jsxs)("div",{className:ir(["search-input",{focused:q}]),children:[(0,w.jsx)(tr,{className:ir("search-input__icon")}),(0,w.jsx)("input",{type:"text",name:"search","aria-label":P||"Search",placeholder:B||"Search",value:_,onBlur:()=>{W(!1)},onFocus:()=>{W(!0)},onInput:Y,onKeyDown:K,ref:x,className:ir(["search-input__input","text-m"]),enterKeyHint:"done"}),(0,w.jsx)(R.E.button,{initial:{opacity:0,pointerEvents:"none"},animate:{opacity:_?1:0,pointerEvents:_?"auto":"none"},transition:{duration:.2,ease:e7.hl},className:ir("search-input__clear"),onClick:Z,"aria-label":M||"Clear Search Input",children:(0,w.jsx)(nb.Z,{})})]})}),(0,w.jsx)("div",{ref:v,className:ir("results-wrapper"),"aria-live":"polite","aria-label":"Search results",role:"listbox",children:(0,w.jsxs)(ez.M,{mode:"wait",children:[U&&(0,w.jsx)(is.u,{initial:{opacity:0}
244,animate:{opacity:1},exit:{opacity:0},transition:{duration:.3,ease:e7.hl},className:ir("loader")},"loader"),j&&(0,w.jsx)(n8,{resultsCtaLabel:I,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3,ease:e7.hl}},"results"),F&&(0,w.jsx)(ie,{copy:A||"No results found",initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0},transition:{duration:.3,ease:e7.hl}},"no-results")]})})]})}),(0,w.jsx)(R.E.div,{className:ir("backdrop"),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,transition:{delay:0}},transition:{duration:.2,delay:.2,ease:e7.hl},onClick:X})]})})}var is=n(57402),io=n(96749),il=n.n(io);let iu=O().bind(il());var ic=(0,T.forwardRef)((e,t)=>{let{type:n,className:i,copy:r}=e,a=ex[n.toLowerCase()]||null,{labels:s}=(0,G.i)(),o=(0,T.useRef)(null),l=(0,T.useRef)(null),u=(0,T.useRef)(null),c=(0,T.useRef)(null);return(0,T.useImperativeHandle)(t,()=>({rootEl:o.current,backgroundEl:l.current,iconEl:u.current,textEl:c.current})),(0,w.jsxs)("div",{className:iu(["type-pill",i]),"aria-label":n?"".concat(null==s?void 0:s.category," ").concat(n):"",ref:o,children:[(0,w.jsx)("div",{className:iu("type-pill__background"),ref:l}),a&&(0,w.jsx)("span",{ref:u,children:(0,w.jsx)(a,{})}),(0,w.jsx)("span",{ref:c,className:iu("eyebrow-l","copy"),children:r||n})]})}),id=n(77551),ih=n(42969),ip=n.n(ih);let im=O().bind(ip());function ig(e){let{icon:t,size:n="large",ariaLabel:i,className:r="",onClick:a,disabled:s=!1,tabindex:o=0,tag:l}=e,u=t,c=l||"button",d=e=>{e.preventDefault(),null==a||a()};return(0,w.jsx)(c,{className:im(["icon-button",n,r]),disabled:s,tabIndex:s?-1:o,onClick:d,"aria-label":i||"",role:"button",children:(0,w.jsx)(u,{className:im(["icon"])})})}n(89174);var iv={src:"/_next/static/media/generic-person.ed14f473.webp"},iy=n(3452),i_=n.n(iy);let ib=O().bind(i_()),ix=e=>{let{title:t,uri:n,pageData:i,index:r,isInView:a}=e,s=null==i?void 0:i.featuredImage,o=k.LL.sm.distance,l=k.LL.opacity,u=k.LL.ease,c=k.LL.sm.duration,d=k.LL.sm.delay+r*k.LL.sm.delay;return(0,w.jsx)(R.E.div,{className:ib("card-wrap"),initial:{opacity:l,y:o},animate:a?{opacity:1,y:0}:{},transition:{delay:d,duration:c,ease:u},children:(0,w.jsxs)(td.K,{href:n||"#",className:ib("card"),children:[(0,w.jsx)("div",{className:ib("image"),children:s?(0,w.jsx)(tc.E,{image:s}):(0,w.jsx)("img",{src:iv.src,alt:t||""})}),(0,w.jsxs)("div",{className:ib("content"),children:[(0,w.jsx)("p",{className:ib("title-lc-s","name"),children:t}),(0,w.jsx)("span",{className:ib("arrow"),children:(0,w.jsx)(ta.Z,{})})]})]})})};function iC(e){var t;let{listType:n,inductees:i}=e,r=(null!==(t=null==i?void 0:i.nodes)&&void 0!==t?t:[]).filter(e=>(null==e?void 0:e.__typename)==="Inductee"),{labels:a}=(0,G.i)(),s=null==a?void 0:a.connectedInductees,o=(null==n?void 0:n[0])==="groups"?null==s?void 0:s.groups:null==s?void 0:s.members,l=(null==o?void 0:o.headline)||"",u=(null==o?void 0:o.body)||"",c=(0,T.useRef)(null),{isDesktop:d}=(0,N.dg)(),h=d?k.LL.lg.triggerPercent:k.LL.sm.triggerPercent,f=(0,I.Y)(c,{amount:h,once:k.LL.once});return r.length?(0,w.jsx)("section",{className:ib("connected-inductees"),ref:c,children:(0,w.jsx)(E.W,{children:(0,w.jsxs)(c4,{isInView:f,children:[(0,w.jsx)("div",{className:ib("intro"),children:(0,w.jsx)(ub,{headline:l,subhead:u,isRevealEnabled:!0,isInView:f})}),(0,w.jsx)("div",{className:ib("grid"),children:r.map((e,t)=>(0,w.jsx)(ix,{...e,index:t,isInView:f},t))})]})})}):null}var iE=n(43028),iw=n(44654),iT=n(69764),iS=n(82729),iL=n(68806),iP=n(68563),iM=n(34715),iA=n(62017),iI=n.n(iA),iR=n(58291);function ik(){let e=(0,iS._)(["\n fragment InducteeHero on Inductee {\n inducteeData {\n inducteeHero {\n showReverb\n imageAttribution\n headline {\n line\n }\n image {\n ...ACFMedia\n }\n mobileImage {\n ...ACFMedia\n }\n }\n }\n }\n "]);return ik=function(){return e},e}let iD=O().bind(iI());function iN(e){let{data:t,inducteeInfo:n}=e,{image:i,mobileImage:r,headline:a,showReverb:s,imageAttribution:o}=t,l=(0,T.useRef)(null),u=(0,T.useRef)(null),c=(0,T.useRef)(null),[d,h]=(0,T.useState)(!1),f=()=>{h(!0)},p=parseFloat((0,iR.O8)("inducteeHeroScaleEnd","0.95")),m=100*parseFloat((0,iR.O8)("inducteeHeroTransformEnd","0.5")),g=parseFloat((0,iR.O8)("inducteeHeroBrightnessSpeed","0.8"));return(0,iM.V)(()=>
244{if(nT.ZP.registerPlugin(iP.i,iM.V),!l.current)return;let e=e=>{nT.ZP.fromTo(e,{scale:1.08,y:"0%",filter:"brightness(1)"},{scale:p,y:"".concat(m,"%"),filter:"brightness(0)",ease:"none",scrollTrigger:{trigger:l.current,start:"top top",end:"bottom top",scrub:!0,invalidateOnRefresh:!0}})},t=nT.ZP.matchMedia();return t.add("(max-width: 767px)",()=>{c.current&&e(c.current)}),t.add("(min-width: 768px)",()=>{u.current&&e(u.current)}),()=>t.revert()},{scope:l,dependencies:[p,m,g]}),(0,T.useEffect)(()=>{var e,t;let n=null===(e=u.current)||void 0===e?void 0:e.complete,i=null===(t=c.current)||void 0===t?void 0:t.complete;(n||i)&&h(!0)},[]),(0,w.jsxs)(R.E.section,{className:iD(["inductee-hero"]),initial:{opacity:0},animate:d?{opacity:1}:{},transition:{duration:k.LL.lg.duration,delay:.1,ease:k.LL.ease},children:[(0,w.jsxs)("div",{className:iD("inductee-hero__image-wrapper"),ref:l,children:[(0,w.jsx)(tc.E,{className:iD(["image",{"image--desktop":!!(null==r?void 0:r.node)}]),image:i,onLoad:f,ref:u}),(null==r?void 0:r.node)&&(0,w.jsx)(tc.E,{className:iD(["image","image--mobile"]),image:r,onLoad:f,ref:c}),o&&(0,w.jsx)(di.G,{text:o,className:iD("hero-image-attribution")})]}),(0,w.jsx)(w_,{headline:a,inducteeInfo:n,showReverb:s,hasReveal:!0,canAnimateIn:d})]})}iN.fragments={entry:(0,iL.ZP)(ik())};var iF=n(81221),iO=n(44819),ij=n(22372),iU=n(92953),iV=n.n(iU),iB={src:"/_next/static/media/record-disc.dbb92e86.png",height:1320,width:1320,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAQAAABuBnYAAAAAhUlEQVR42g2JPQrCQBQGP01AdDdi2AgGNCLiMzmF3sDWSwgWNtaeweO47n38qfdVX3aKgWEAXDqEWjfa+EaQaJ//G8GKU84/ix1cOPChwoJGc5YvdAqCEw4444hFhERDRzBjnWwjtt4w13HKq57o3lhL9c3SB8+8/4Z7AEspvVWrq3BsgR5JsjloDR24tAAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8};function iH(){return(iH=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var iG=function(e){return T.createElement("svg",iH({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 160 160"},e),sq||(sq=T.createElement("circle",{cx:80,cy:80,r:80,className:"record-bg"})),sW||(sW=T.createElement("circle",{fill:"none",stroke:"#fff",strokeWidth:2.24,cx:80,cy:80,r:55.19})),s$||(s$=T.createElement("circle",{cx:80,cy:80,r:5})))};let iz=O().bind(iV());function iq(e){let{slide:t,index:n,activeIndex:i,count:r,onSlideFocus:a,onTitleHeightChange:s,animationSpeed:o}=e,{log:l}=(0,ij.q)({name:"SoundExplorerSlide",bgColor:"pink",enabled:!0}),u=n===i,c=n-i,d={center:{width:"100%",opacity:1,y:"0%",transition:{duration:.4*o,ease:iF.QE.InOutQuad}},notCenter:e=>({width:"73%",opacity:.7,y:"".concat(-40*e,"%"),transition:{duration:.4*o,ease:iF.QE.InOutQuad}})},h={active:{y:"-50%",transition:{duration:.35*o,delay:.25*o,ease:iF.QE.InOutQuad}},inactive:{y:"0%",transition:{duration:.35*o,ease:iF.QE.InOutQuad}}},f=e=>{e.preventDefault(),e.stopPropagation(),a&&a(n)},[p,m]=(0,T.useState)(!0);(0,T.useEffect)(()=>{p&&m(!1)},[]);let g=(0,T.useRef)(null);return(0,T.useEffect)(()=>{if(!g.current||!s)return;s(g.current.getBoundingClientRect().height);let e=new ResizeObserver(e=>{s(e[0].contentRect.height)});return e.observe(g.current),()=>e.disconnect()},[]),(0,w.jsxs)(R.E.div,{className:iz(["slide",{"slide--center":u}]),initial:!p&&(u?"center":"notCenter"),animate:u?d.center:d.notCenter(c),variants:d,custom:c,children:[(0,w.jsxs)("div",{className:iz(["slide-image"]),tabIndex:0,onFocus:f,children:[(0,w.jsxs)(R.E.div,{className:iz(["slide-record"]),animate:u?h.active:h.inactive,style:{"--record-color":t.albumColor},"aria-hidden":!0,children:[(0,w.jsx)(M(),{src:iB,alt:"Record"}),(0,w.jsx)(iG,{className:iz(["record-center"])})]}),(0,w.jsx)(tc.E,{className:iz(["slide-cover"]),image:t.albumImage})]}),(0,w.jsx)("div",{className:iz(["slide-content"]),ref:g,children:(0,w.jsxs)("div",{className:iz(["slide-content-top"]),children:[(0,w.jsx)("h3",{className:iz(["song","eyebrow-l"]),children:t.songTitle}),(0,w.jsx)("p",{className:iz(["album","eyebrow-l"]),children:t.albumName})]})})]},n)}function iW(){return(iW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var i$=function(e){return T.createElement("svg",iW({viewBox:"0 0 14 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),sZ||(sZ=T.createElement("path",{d:"M1.50047 4.07458L6.55859 7.64918V0.5L1.50047 4.07458Z",fill:"currentColor"})),sY||(sY=T.createElement("path",{d:"M6.50047 4.07458L11.5586 7.64918V0.5L6.50047 4.07458Z",fill:"currentColor"})))},iZ=n(29746);let iY="Left",iK="Right",iX="Up",iQ="Down",iJ={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},i0={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},i1="mousemove",i2="mouseup",i3="touchend",i5="touchmove",i4="touchstart";function i6(e,t,n,i){return e>t?n>0?iK:iY:i>0?iQ:iX}function i8(e,t){if(0===t)return e;let n=Math.PI/180*t;return[e[0]*Math.cos(n)+e[1]*Math.sin(n),e[1]*Math.cos(n)-e[0]*Math.sin(n)]}function i7(e,t){let n=t=>{let n="touches"in t;n&&t.touches.length>1||e((e,r)=>{r.trackMouse&&!n&&(document.addEventListener(i1,i),document.addEventListener(i2,s));let{clientX:a,clientY:o}=n?t.touches[0]:t,l=i8([a,o],r.rotationAngle);return r.onTouchStartOrOnMouseDown&&r.onTouchStartOrOnMouseDown({event:t}
244),Object.assign(Object.assign(Object.assign({},e),i0),{initial:l.slice(),xy:l,start:t.timeStamp||0})})},i=t=>{e((e,n)=>{let i="touches"in t;if(i&&t.touches.length>1)return e;if(t.timeStamp-e.start>n.swipeDuration)return e.swiping?Object.assign(Object.assign({},e),{swiping:!1}):e;let{clientX:r,clientY:a}=i?t.touches[0]:t,[s,o]=i8([r,a],n.rotationAngle),l=s-e.xy[0],u=o-e.xy[1],c=Math.abs(l),d=Math.abs(u),h=(t.timeStamp||0)-e.start,f=Math.sqrt(c*c+d*d)/(h||1),p=[l/(h||1),u/(h||1)],m=i6(c,d,l,u),g="number"==typeof n.delta?n.delta:n.delta[m.toLowerCase()]||iJ.delta;if(c<g&&d<g&&!e.swiping)return e;let v={absX:c,absY:d,deltaX:l,deltaY:u,dir:m,event:t,first:e.first,initial:e.initial,velocity:f,vxvy:p};v.first&&n.onSwipeStart&&n.onSwipeStart(v),n.onSwiping&&n.onSwiping(v);let y=!1;return(n.onSwiping||n.onSwiped||n[`onSwiped${m}`])&&(y=!0),y&&n.preventScrollOnSwipe&&n.trackTouch&&t.cancelable&&t.preventDefault(),Object.assign(Object.assign({},e),{first:!1,eventData:v,swiping:!0})})},r=t=>{e((e,n)=>{let i;if(e.swiping&&e.eventData){if(t.timeStamp-e.start<n.swipeDuration){i=Object.assign(Object.assign({},e.eventData),{event:t}),n.onSwiped&&n.onSwiped(i);let r=n[`onSwiped${i.dir}`];r&&r(i)}}else n.onTap&&n.onTap({event:t});return n.onTouchEndOrOnMouseUp&&n.onTouchEndOrOnMouseUp({event:t}),Object.assign(Object.assign(Object.assign({},e),i0),{eventData:i})})},a=()=>{document.removeEventListener(i1,i),document.removeEventListener(i2,s)},s=e=>{a(),r(e)},o=(e,t)=>{let a=()=>{};if(e&&e.addEventListener){let s=Object.assign(Object.assign({},iJ.touchEventOptions),t.touchEventOptions),o=[[i4,n,s],[i5,i,Object.assign(Object.assign({},s),t.preventScrollOnSwipe?{passive:!1}:{})],[i3,r,s]];o.forEach(([t,n,i])=>e.addEventListener(t,n,i)),a=()=>o.forEach(([t,n])=>e.removeEventListener(t,n))}return a},l={ref:t=>{null!==t&&e((e,n)=>{if(e.el===t)return e;let i={};return e.el&&e.el!==t&&e.cleanUpTouch&&(e.cleanUpTouch(),i.cleanUpTouch=void 0),n.trackTouch&&t&&(i.cleanUpTouch=o(t,n)),Object.assign(Object.assign(Object.assign({},e),{el:t}),i)})}};return t.trackMouse&&(l.onMouseDown=n),[l,o]}function i9(e,t,n,i){return t.trackTouch&&e.el?e.cleanUpTouch?t.preventScrollOnSwipe!==n.preventScrollOnSwipe||t.touchEventOptions.passive!==n.touchEventOptions.passive?(e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:i(e.el,t)})):e:Object.assign(Object.assign({},e),{cleanUpTouch:i(e.el,t)}):(e.cleanUpTouch&&e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:void 0}))}function re(e){let t;let{trackMouse:n}=e,i=T.useRef(Object.assign({},i0)),r=T.useRef(Object.assign({},iJ)),a=T.useRef(Object.assign({},r.current));for(t in a.current=Object.assign({},r.current),r.current=Object.assign(Object.assign({},iJ),e),iJ)void 0===r.current[t]&&(r.current[t]=iJ[t]);let[s,o]=T.useMemo(()=>i7(e=>i.current=e(i.current,r.current),{trackMouse:n}),[n]);return i.current=i9(i.current,r.current,a.current,o),s}function rt(){let e=(0,iS._)(["\n ","\n fragment SoundExplorer on InducteeDataImpactFlexibleContentSoundExplorerLayout {\n eyebrow\n title\n copy\n slides {\n albumColor\n albumImage {\n ...ACFMedia\n }\n albumName\n songTitle\n description\n }\n }\n "]);return rt=function(){return e},e}let rn=O().bind(iV());function ri(e){var t,n,i,r;let{eyebrow:a,title:s,copy:o,slides:l}=e,{labels:u}=(0,G.i)(),{log:c}=(0,ij.q)({name:"SoundExplorer",bgColor:"plum",enabled:!1});c({slides:l});let[d,h]=(0,T.useState)(1),[f,p]=(0,T.useState)(!1),m=e=>({x:"calc(".concat(-73*e,"% - ").concat(3*e,"rem)"),transition:{duration:.4*d,ease:iF.QE.InOutQuad}}),[g,v]=(0,T.useState)(0),y=(0,T.useRef)(null),_=(0,T.useRef)(null),b=(0,T.useRef)(!1),x=(0,T.useRef)(!1),{mounted:C}=(0,eT.F)(),S=()=>{v(e=>(e+1)%l.length)},L=()=>{v(e=>(e-1+l.length)%l.length)},P=e=>{v(e)},M=()=>{!b.current&&x.current&&(h(1),b.current=!0)},[A,D]=(0,T.useState)({}),F=(e,t)=>{D(n=>({...n,[e]:t}))},O=200,j=140,[U,V]=(0,T.useState)(null!==(r=null===(t=l[0])||void 0===t?void 0:t.description)&&void 0!==r?r:""),[B,H]=(0,T.useState)(!0);(0,T.useEffect)(()=>{var e,t;let n=null!==(t=null===(e=l[g])||void 0===e?void 0:e.description)&&void 0!==t?t:"";H(!1);let i=window.setTimeout(()=>{V(n),H(!0)},O*d);return()=>window.clearTimeout(i)},[g,l]);let z=(0,T.useRef)(null),{isDesktop:q,isReady:W}=(0,N.dg)(),$=!0,Z=k.LL,Y=C&&W&&q?Z.lg.triggerPercent:Z.sm.triggerPercent,K=(0,I.Y)(z,{amount:Y,once:Z.once});(0,T.useEffect)(()=>{q&&C&&(h(2.5),l.length>=5?v(3):l.length>=3?v(2):v(1))},[q,C]),(0,T.useEffect)(()=>{K&&q&&C&&(v(g-1),x.current=!0)},[q,K,C]),(0,T.useEffect)(()=>{p(q)},[q]);let X=re({onSwipedLeft:S,onSwipedRight:L,swipeDuration:500,preventScrollOnSwipe:!0,trackMouse:!q});return(0,w.jsx)("section",{className:rn(["sound-explorer"]),ref:z,children:(0,w.jsxs)("div",{...X,children:[C&&W&&q&&f&&(0,w.jsx)("div",{className:rn("sound-explorer__left-hit"),ref:y,onClick:L,children:(0,w.jsx)(uD.P,{circleText:null==u?void 0:null===(n=u.ariaLabels)||void 0===n?void 0:n.prevButton,container:y,icon:iZ.Z,iconClass:rn(["icon-prev"]),isVisible:q,mouseActive:!0})}),(0,w.jsx)(c4,{isInView:K,children:(0,w.jsxs)("div",{className:rn(["sound-explorer-content"]),children:[(0,w.jsx)(E.W,{className:rn(["copy-container"]),children:(0,w.jsxs)("div",{className:rn(["copy"]),children:[(0,w.jsx)("p",{className:rn(["eyebrow-l","eyebrow"]),children:a}),(0,w.jsx)(ce,{tag:"h2",text:s,className:rn(["title-uc-l","headline"]),isRevealEnabled:$,isInView:K,maxCharsPerWord:10}),(0,w.jsx)("p",{className:rn(["text-m","body"]),children:o})]})}),(0,w.jsx)("div",{className:rn(["conveyor"]),children:(0,w.jsxs)("div",{className:rn(["conveyor-track"]),children:[(0,w.jsx)(R.E.div,{animate:m(g),onAnimationComplete:M,className:rn(["conveyor-track-container"]),children:l.map((e,t)=>(0,w.jsx)(iq,{slide:e,index:t,activeIndex:g,onSlideFocus:P,count:l.length,onT
244itleHeightChange:e=>F(t,e),animationSpeed:d},t))}),(0,w.jsxs)("div",{className:rn(["controls-description-wrapper"]),children:[(0,w.jsxs)("div",{className:rn(["controls"]),children:[(0,w.jsxs)("button",{className:rn(["control","prev",{disabled:0===g}]),onClick:L,"aria-label":"Previous",children:[" ",(0,w.jsx)(i$,{})]}),(0,w.jsxs)("button",{className:rn(["control","next",{disabled:g===l.length-1}]),onClick:S,"aria-label":"Next",children:[" ",(0,w.jsx)(i$,{})]})]}),(0,w.jsx)("div",{className:rn(["description"]),style:{paddingTop:"".concat(A[g]-30,"px")},children:(0,w.jsx)(R.E.p,{className:rn(["text-m","body"]),animate:{opacity:B?1:0,y:B?0:"100%"},initial:!1,transition:{duration:O/1e3,ease:B?iF.QE.OutQuad:iF.QE.InQuad,delay:B?j/1e3:0},children:U||""})})]})]})})]})}),C&&W&&q&&f&&(0,w.jsx)("div",{className:rn("sound-explorer__right-hit"),ref:_,onClick:S,children:(0,w.jsx)(uD.P,{circleText:null==u?void 0:null===(i=u.ariaLabels)||void 0===i?void 0:i.nextButton,icon:iZ.Z,iconClass:rn(["icon-next"]),container:_,isVisible:q,mouseActive:!0})})]})})}ri.fragments={entry:(0,iL.ZP)(rt(),iO.ab)};var rr=n(44246),ra=n.n(rr);let rs=O().bind(ra());function ro(e){let{headline:t,type:n,quote:i,video:r}=e,a="video"===n[0],s=(0,D.Ay)(t),o=(0,T.useRef)(null),{isDesktop:l}=(0,N.dg)(),u=k.LL,c=l?u.lg.triggerPercent:u.sm.triggerPercent,d=(0,I.Y)(o,{amount:c,once:u.once});return(0,w.jsx)("section",{className:rs("inductee-impact-hero"),ref:o,children:(0,w.jsxs)(c4,{isInView:d,isEnabled:!1,children:[" ",(0,w.jsx)(E.W,{className:rs("container-top"),children:(0,w.jsx)("div",{className:rs("headline-wrap"),children:(0,w.jsx)(ce,{tag:"h3",text:s,className:rs(["title-uc-xxxxl","headline"]),isRevealEnabled:!1,isInView:d})})}),(0,w.jsx)("div",{className:rs("video-container"),children:a?(0,w.jsx)(uS.W,{...r,detail:!0}):(0,w.jsx)(rC,{...i})})]})})}var rl=n(938),ru=n(11483),rc=n.n(ru);function rd(){let e=(0,iS._)(["\n ","\n fragment InducteeSpotlight on InducteeDataImpactFlexibleContentSpotlightLayout {\n eyebrow\n variant\n mediaRight: alignRight\n imageAttribution\n image {\n ...ACFMedia\n }\n video {\n youtubeId\n youtubeThumbnail {\n ...ACFMedia\n }\n }\n images {\n imageAttribution\n image {\n ...ACFMedia\n }\n }\n spotlightHeadline: headline {\n line\n }\n spotlightBody: body {\n text\n }\n link {\n title\n url\n target\n }\n }\n "]);return rd=function(){return e},e}let rh=O().bind(rc());function rf(e){let t=!1,{eyebrow:n,spotlightHeadline:i,spotlightBody:r,link:a,images:s,variant:o,mediaRight:l,imageAttribution:u,image:c}=e,d=a&&a.url&&a.title,[h]=o,f=l?"left":"right";if(t){let e="variant-".concat(h);document.documentElement.style.setProperty("--spotlight-debug-label",'"'.concat(e,'"'))}let p=(0,T.useRef)(null),{isDesktop:m}=(0,N.dg)(),g=k.LL,v=m?g.lg.triggerPercent:g.sm.triggerPercent,y=(0,I.Y)(p,{amount:v,once:g.once}),_=[null==s?void 0:s.slice(0,Math.ceil(s.length/2)),null==s?void 0:s.slice(Math.ceil(s.length/2))].filter(Boolean);function b(){switch(h){case"imagery-grid":return(0,w.jsx)("div",{className:rh("content__imagery"),children:_.map((e,t)=>(0,w.jsx)("div",{className:rh(["image-column"]),children:e.map((e,t)=>{let{image:n,imageAttribution:i}=e;return(0,w.jsxs)("div",{className:rh("image-wrapper"),children:[(0,w.jsx)(tc.E,{image:n}),i&&(0,w.jsx)(di.G,{text:i,className:rh("spotlight-image-attribution")})]},t)})},t))});default:case"imagery-single":return(0,w.jsxs)("div",{className:rh("content__imagery"),children:[(0,w.jsx)(tc.E,{image:c}),u&&(0,w.jsx)(di.G,{text:u,className:rh("spotlight-image-attribution")})]});case"imagery-video":return(0,w.jsx)("div",{className:rh("content__imagery")})}}return(0,w.jsx)(R.E.section,{className:rh(["spotlight","variant-".concat(h),"direction-".concat(f),t?"debug":""]),ref:p,children:(0,w.jsx)(c4,{isInView:y,children:(0,w.jsxs)(E.W,{className:rh("content"),children:[(0,w.jsxs)("div",{className:rh("content__text"),children:[(0,w.jsxs)("div",{className:rh("title"),children:[(0,w.jsx)("p",{className:rh(["eyebrow-l","eyebrow"]),children:n}),(0,w.jsx)("h2",{className:rh("title-uc-l","title__lines"),children:i.map((e,t)=>(0,w.jsx)("span",{className:rh(["line","title__lines__line-".concat(t)]),dangerouslySetInnerHTML:{__html:e.line}},t))})]}),(0,w.jsx)("div",{className:rh("body"),children:r.map((e,t)=>(0,w.jsxs)("div",{className:rh("body__p-container"),children:[(0,w.jsx)("p",{className:"text-m",children:e.text}),t===r.length-1&&d&&(0,w.jsx)(id.z,{label:a.title,className:rh("link"),url:a.url,target:a.target})]},t))})]}),b()]})})})}rf.fragments={inducteeEntry:(0,iL.ZP)(rd(),iO.ab)};var rp=n(95002),rm=n(81854);function rg(){return(rg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var rv=function(e){return T.createElement("svg",rg({viewBox:"0 0 206 171",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),sK||(sK=T.createElement("path",{d:"M86.8314 85.5V171H0V80.6831C0 31.912 34.1337 0.602127 86.8314 0V40.3416C59.8837 42.75 47.3081 54.7923 47.3081 78.2746V85.5H86.8314ZM206 85.5V171H119.169V80.6831C119.169 31.912 153.302 0.602127 206 0V40.3416C179.052 42.75 166.477 54.7923 166.477 78.2746V85.5H206Z",fill:"currentColor"})))},ry=n(81834),r_=n.n(ry);function rb(){let e=(0,iS._)(["\n ","\n fragment InducteeQuote on InducteeDataImpactFlexibleContentQuoteLayout {\n quote\n name\n role\n imageAttribution\n image {\n ...ACFMedia\n }\n }\n "]);return rb=function(){return e},e}let rx=O().bind(r_());function rC(e){let{quote:t,name:n,role:i,image:r,imageAttribution:a,className:s,noQuoteIcons:o=!1,noParallax:l=!1,titleClassName:u,nameClassName:c,roleClassName:d,knockoutClass:h="",knockoutColor:f,hasOverlay:p=!0}=e,m=(0,D.bz)((0,D.Ay)(t)),g=(0,D.iT)(t),{log:v}=(0,ij.q)({name:"Quote",bgColor:"yellow",enabled:!1});v("render",{isParallaxEnabled:!0,parallaxDistance:8,isDesktop:void 0});let y=(0,T.useRef)(null),{isDesktop:_}=(0,N.dg)(),b=k.LL,x=_?b.lg.triggerPercent:b.sm.triggerPercent,C=(0,I.Y)(y,{amount:x,once:b.once}),S=!!(i||n),L=(0,T.useRef)(null),{ready:P}=(0,rm.e)(L,{enabled:!!f,color:null!=f?f:"white"});return(0,rp.Z)({containerRef:y,startPx:-80,endPx:80,isEnabled:!0,start:"top bottom"}),(0,w.jsx)("section",{className:rx(["quote",s]),ref:y,children:(0,w.jsx)(c4,{isInView:C,isEnabled:!1,children:(0,w.jsxs)("div",{className:rx(["quote-content"]),children:[(0,w.jsx)(tc.E,{image:r,className:"".concat(rx(["background-image",{"no-overlay":!p}])," ").concat(l?"":"js-parallax")}),!o&&(0,w.jsx)("div",{className:rx(["quote-icon-wrapper"]),children:(0,w.jsx)(rv,{className:rx(["quote-icon"])})}),(0,w.jsx)(E.W,{className:rx(["content"]),children:(0,w.jsxs)("div",{className:rx(["copy"]),children:[f?(0,w.jsx)("h3",{ref:L,"aria-label":g,className:rx(["quote-text",u||"title-lc-l",h]),style:P?void 0:{opacity:0}
244,dangerouslySetInnerHTML:{__html:m.join("<br />")}}):(0,w.jsx)("h3",{ref:L,"aria-label":g,className:rx(["quote-text",u||"title-lc-l",h]),children:m.map((e,t)=>(0,w.jsx)("div",{className:rx(["line-wrapper"]),children:(0,w.jsx)("span",{className:rx(["line"]),dangerouslySetInnerHTML:{__html:e}},t)},t))}),S&&(0,w.jsxs)("div",{className:rx(["attribution",h]),children:[n&&(0,w.jsx)("p",{className:rx(["name",c||"title-uc-xs"]),children:n}),i&&(0,w.jsx)("p",{className:rx(["role",d||"eyebrow-l"]),children:i})]})]})}),!o&&(0,w.jsx)("div",{className:rx(["quote-icon-wrapper","closing"]),children:(0,w.jsx)(rv,{className:rx(["quote-icon","closing"])})}),a&&(0,w.jsx)(di.G,{className:rx(["quote-attribution"]),text:a})]})})})}rC.fragments={inducteeEntry:(0,iL.ZP)(rb(),iO.ab)};var rE=n(5643),rw=n.n(rE);let rT=O().bind(rw());function rS(e){let{headline:t,singleVideo:n,videoPlaylist:i,type:r}=e,a="single-video"===r[0],s=(0,D.Ay)(t),o=(0,T.useRef)(null),{isDesktop:l}=(0,N.dg)(),u=k.LL,c=l?u.lg.triggerPercent:u.sm.triggerPercent,d=(0,I.Y)(o,{amount:c,once:u.once});return(0,w.jsx)("section",{className:rT("inductee-induction-hero"),ref:o,children:(0,w.jsxs)(c4,{isInView:d,children:[(0,w.jsx)(E.W,{className:rT("container-top"),children:(0,w.jsx)("div",{className:rT("headline-wrap"),children:(0,w.jsx)(ce,{tag:"h3",text:s,className:rT(["title-uc-xxxxl","headline"]),isRevealEnabled:!1,isInView:d})})}),(0,w.jsx)("div",{className:rT("video-container"),children:a?(0,w.jsx)(uS.W,{...n,detail:!0}):(0,w.jsx)(rL.L,{...i})})]})})}var rL=n(81996),rP=n(40790),rM=n.n(rP);function rA(){let e=(0,iS._)(["\n ","\n fragment InducteeEssay on InducteeDataImpactFlexibleContentHallOfFameEssayLayout {\n eyebrow\n headline\n attribution\n imageAttribution\n image {\n ...ACFMedia\n }\n cta {\n linkType\n label\n externalLink\n page {\n node {\n uri\n }\n }\n }\n }\n "]);return rA=function(){return e},e}let rI=O().bind(rM());function rR(e){let{eyebrow:t,headline:n,attribution:i,image:r,imageAttribution:a,cta:s}=e,{labels:o}=(0,G.i)(),{hofEssayCta:l}=o||{},u={...s,label:(null==s?void 0:s.label)||l},c=(0,D.Cr)(u),d=(0,T.useRef)(null),{isDesktop:h}=(0,N.dg)(),f=k.LL,p=h?f.lg.triggerPercent:f.sm.triggerPercent,m=(0,I.Y)(d,{amount:p,once:f.once});return(0,w.jsx)("section",{className:rI(["inductee-essay"]),ref:d,children:(0,w.jsx)(c4,{isInView:m,children:(0,w.jsxs)(E.W,{className:rI(["content"]),children:[(0,w.jsx)("div",{className:rI(["content-side"]),children:(0,w.jsxs)("div",{className:rI(["image-container"]),children:[(0,w.jsx)(tc.E,{image:r}),a&&(0,w.jsx)(di.G,{className:rI(["image-attribution"]),text:a})]})}),(0,w.jsx)("div",{className:rI(["content-side"]),children:(0,w.jsxs)("div",{className:rI(["copy"]),children:[(0,w.jsx)("p",{className:rI(["highlighted-text","eyebrow-l"]),children:t}),(0,w.jsx)("p",{className:rI(["headline","title-lc-s"]),children:n}),(0,w.jsx)("p",{className:rI(["eyebrow-l","attribution"]),children:i}),c&&(0,w.jsx)(id.z,{className:rI(["button"]),...c})]})})]})})})}rR.fragments={entry:(0,iL.ZP)(rA(),iO.ab)};var rk=n(76424),rD=n.n(rk);let rN=O().bind(rD());function rF(e){let{name:t,position:n="left",target:i,count:r,index:a,imageLoaded:s,url:o}=e,l=(0,T.useRef)(null),[u,c]=(0,T.useState)({width:0,transform:"rotate(0deg)"}),d="left"===n,{viewWidth:h}=(0,N.dg)(),f=()=>{let e=(r-1)/2,t=Math.abs(a-e)/e*15;return"".concat(t,"rem")},p=()=>{if(!l.current||!i)return;let e=l.current.getBoundingClientRect(),t=i.getBoundingClientRect(),n=d?e.right:e.left,r=e.bottom,a=t.left+t.width/2,s=t.top+t.height/2,o=a-n,u=s-r,h=Math.sqrt(o*o+u*u),f=180/Math.PI*Math.atan2(u,o);c({width:h,transform:"rotate(".concat(f,"deg)")})};return(0,T.useEffect)(()=>{let e,t;e=requestAnimationFrame(()=>{t=requestAnimationFrame(()=>{p()})});let n=()=>{p()};return window.addEventListener("resize",n),()=>{cancelAnimationFrame(e),cancelAnimationFrame(t),window.removeEventListener("resize",n)}},[i,h,s]),(0,w.jsxs)("div",{className:rN(["inductee-influence-name"]),ref:l,style:{marginLeft:d?f():0,marginRight:d?0:f()},children:[o?(0,w.jsx)(td.K,{href:o,className:rN(["text-m","link"]),children:t}):(0,w.jsx)("p",{className:rN("text-m"),children:t}),(0,w.jsx)("span",{className:rN("line",{right:!d}),style:u})]})}function rO(){return(rO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var rj=function(e){return T.createElement("svg",rO({viewBox:"0 0 390 1202",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),sX||(sX=T.createElement("path",{d:"M-405.328 1060.09L192.835 701.196L-307.427 1115.38L-306.79
2441116.15L194.507 701.11L193.749 702.234L-219.607 1166.69L-218.859 1167.35L189.559 708.447L-147.802 1208.74L-146.972 1209.3L192.295 706.179L-73.784 1251.56L-72.885 1251.99L194.283 704.389L194.138 705.244L-0.699762 1293.3L0.250424 1293.62L193.033 711.762L86.026 1342.95L87.0117 1343.12L194.814 707.237L183.168 1399.86L184.168 1399.88L195.883 703.161L196.842 700.265L199.655 697.104L795.206 339.781L794.691 338.923L203.642 693.546L698.65 283.721L698.012 282.951L204.914 691.195L612.416 233.323L611.668 232.658L199.822 695.412L199.221 695.909L539.56 191.203L538.731 190.644L199.479 693.737L465.545 148.392L464.646 147.953L200.356 689.659L393.506 106.697L392.556 106.382L197.069 696.397L196.43 697.707L305.193 56.1672L304.207 56.0004L196.035 694.051L207.705 0.0343298L206.705 0.0176449L194.955 698.757L-405.843 1059.23L-405.328 1060.09Z",fill:"#B5BAC2"})),sQ||(sQ=T.createElement("path",{d:"M-405.328 1060.09L192.835 701.196L-307.427 1115.38L-306.79 1116.15L194.507 701.11L193.749 702.234L-219.607 1166.69L-218.859 1167.35L189.559 708.447L-147.802 1208.74L-146.972 1209.3L192.295 706.179L-73.784 1251.56L-72.885 1251.99L194.283 704.389L194.138 705.244L-0.699762 1293.3L0.250424 1293.62L193.033 711.762L86.026 1342.95L87.0117 1343.12L194.814 707.237L183.168 1399.86L184.168 1399.88L195.883 703.161L196.842 700.265L199.655 697.104L795.206 339.781L794.691 338.923L203.642 693.546L698.65 283.721L698.012 282.951L204.914 691.195L612.416 233.323L611.668 232.658L199.822 695.412L199.221 695.909L539.56 191.203L538.731 190.644L199.479 693.737L465.545 148.392L464.646 147.953L200.356 689.659L393.506 106.697L392.556 106.382L197.069 696.397L196.43 697.707L305.193 56.1672L304.207 56.0004L196.035 694.051L207.705 0.0343298L206.705 0.0176449L194.955 698.757L-405.843 1059.23L-405.328 1060.09Z",fill:"url(#paint0_radial_105_3990)"})),sJ||(sJ=T.createElement("defs",null,T.createElement("radialGradient",{id:"paint0_radial_105_3990",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"translate(195.18 699.519) rotate(30) scale(340.645 612.561)"},T.createElement("stop",{offset:.187525}),T.createElement("stop",{offset:.456762,stopOpacity:0}),T.createElement("stop",{offset:.788501})))))};let rU=O().bind(rD());function rV(e){let{inducteeInfluence:t,inducteeName:n}=e,{labels:i}=(0,G.i)(),{headline:r,body:a,image:s,influences:o,influenced:l,imageAttribution:u}=t,{influencedLabel:c,influencesLabel:d}=i||{},h=(0,D.Ay)(r),f=(0,T.useRef)(null),[p,m]=(0,T.useState)(!1),g=e=>{let t;let{type:n,name:i,inductee:r}=e,a=i;return r&&"title"in r.node&&"inductee"===n[0]&&(a=r.node.title,t=r.node.uri),{name:a,url:t}},v=(0,T.useRef)(null),{isDesktop:y}=(0,N.dg)(),_=k.LL,b="none"!==k.Tm,x=y?_.lg.triggerPercent:_.sm.triggerPercent,C=(0,I.Y)(v,{amount:x,once:_.once}),S=(0,T.useMemo)(()=>({initial:{opacity:0,scale:0},animate:C&&b?{opacity:1,scale:1}:{opacity:0,scale:0},transition:{delay:_.sm.delay,duration:_.lg.duration,ease:_.lg.ease}}),[C,b,_]),L=(0,T.useMemo)(()=>({initial:{opacity:0}
244,animate:C&&b?{opacity:1}:{opacity:0},transition:{delay:_.sm.delay+.2,duration:_.lg.duration,ease:_.lg.ease}}),[C,b,_]);return(0,w.jsx)("section",{className:rU("inductee-influence",{"is-in-view":C,"is-reveal-disabled":!b}),ref:v,children:(0,w.jsx)(c4,{isInView:C,children:(0,w.jsxs)(E.W,{className:rU("content"),children:[(0,w.jsxs)("div",{className:rU(["content__text"]),children:[(0,w.jsx)(ce,{tag:"h3",text:h,className:rU(["title-uc-xxxxl","headline"]),isCenterAlign:!0,isRevealEnabled:!1,isInView:C}),a&&(0,w.jsx)("p",{className:rU(["text-m","body"]),children:a})]}),(0,w.jsxs)("div",{className:rU(["content__imagery"]),children:[(0,w.jsxs)("div",{className:rU(["left","bands","influences"]),children:[(0,w.jsx)("h5",{className:rU(["title-uc-xs","bands__title"]),children:d}),o.map((e,t)=>{let{name:n,url:i}=g(e);return(0,w.jsx)(rF,{index:t,count:o.length,target:f.current,imageLoaded:p,name:n,url:i},t)})]}),(0,w.jsxs)("div",{className:rU(["center","inductee"]),children:[(0,w.jsxs)(R.E.div,{className:rU("inductee__image-wrapper"),...S,children:[(0,w.jsx)(tc.E,{image:s,ref:f,onLoad:()=>m(!0)}),u&&(0,w.jsx)(di.G,{text:u,position:"center",className:rU("influence-attribution")})]}),(0,w.jsx)(R.E.div,{className:rU("inductee__name"),...L,children:(0,w.jsx)("p",{className:rU("title-uc-xs"),
244children:n})}),(0,w.jsx)("div",{className:rU("flatlines"),children:(0,w.jsx)(rj,{className:"lines__mobile"})})]}),(0,w.jsxs)("div",{className:rU(["right","bands","influenced"]),children:[(0,w.jsx)("h5",{className:rU(["title-uc-xs","bands__title"]),children:c}),l.map((e,t)=>{let{name:n,url:i}=g(e);return(0,w.jsx)(rF,{index:t,position:"right",count:l.length,target:f.current,imageLoaded:p,name:n,url:i},t)})]})]})]})})})}n(83454);var rB=n(94483),rH=n(81927),rG=n.n(rH),rz=n(9053),rq=n.n(rz);let rW=O().bind(rq());function r$(e){let{aZLabel:t,byClassLabel:n,activeTab:i,isFixed:r,isVisible:a,onTabClick:s,elRef:o}=e,l=(0,T.useRef)(null),u=(0,T.useRef)(null),c=(0,T.useRef)(null),d=(0,T.useRef)(null),{isScrolled:h,scrollDirection:f}=(0,eZ.g)();return(0,T.useEffect)(()=>{if(!r){let e=nT.ZP.fromTo(u.current,{opacity:0},{opacity:1});return()=>{null==e||e.kill()}}},[r]),(0,T.useEffect)(()=>{o&&(o.current=u.current)},[o,u]),(0,T.useEffect)(()=>{!r&&u.current&&(nT.ZP.set(u.current,{clearProps:"all"}),nT.ZP.set(u.current,{opacity:1}))},[i,r]),(0,w.jsxs)("div",{className:rW("tab-controls",{"is-fixed":r,"is-scrolled":"by-class"===i||h&&"up"===f,"is-visible":a}),ref:u,children:[(0,w.jsx)("button",{role:"tab","aria-selected":"a-z"===i,className:rW(["tab-button","eyebrow-l",{active:"a-z"===i}]),ref:l,id:"inductees-tab",tabIndex:a?0:-1,onClick:()=>s("a-z"),children:t}),(0,w.jsx)("button",{role:"tab","aria-selected":"by-class"===i,className:rW(["tab-button","eyebrow-l",{active:"by-class"===i}]),tabIndex:a?0:-1,ref:c,onClick:()=>s("by-class"),children:n}),(0,w.jsx)("span",{className:rW("background",{[i]:!0}),ref:d})]})}let rZ=O().bind(rG());var rY=(0,T.forwardRef)((e,t)=>{let{headline:n,aZLabel:i,byClassLabel:r,activeTab:a,onTabClick:s}=e,o=(0,D.bz)((0,D.Ay)(n)),l=(0,T.useRef)(null),u=(0,T.useRef)(null),c=(0,T.useRef)(null),d=(0,T.useRef)(null),h=(0,T.useRef)(null),f=(0,T.useRef)(!1),p=(0,T.useRef)(null),m=(0,T.useRef)(null),[g,v]=(0,T.useState)(!0),y=(0,T.useRef)(null),_=(0,T.useRef)(!0);(0,T.useEffect)(()=>{let e=()=>{null!==y.current&&cancelAnimationFrame(y.current),y.current=requestAnimationFrame(()=>{let e;if(!d.current)return;let t=d.current.getBoundingClientRect(),n=158,i=165;(e=_.current?t.bottom>n:t.bottom>i)!==_.current&&(_.current=e,v(e))})};return window.addEventListener("scroll",e,{passive:!0}),e(),()=>{window.removeEventListener("scroll",e),null!==y.current&&cancelAnimationFrame(y.current)}},[a]);let{viewWidth:b,isDesktop:x,isReady:C}=(0,N.dg)(),{mounted:S}=(0,eT.F)(),L=(0,T.useRef)(!1),{setHeadlineEl:P,setHeaderEl:M,setContentEl:A,headlineEl:I,setTabAffix:R,extraFixedTab:k,setExtraFixedTab:F}=(0,rB.Z)();(0,T.useEffect)(()=>{L.current=!1,R(!1),F(!1),v(!0)},[]),(0,T.useEffect)(()=>{let e;return"by-class"===a&&h.current&&x&&(e=nT.ZP.to(h.current,{y:"-500vh",scrollTrigger:{scrub:1,id:"scroller-by-class"},onComplete:()=>{}})),()=>{if(e){let t=iP.i.getById("scroller-by-class");t&&t.kill(),e.kill(),e=null}h.current&&nT.ZP.set(h.current,{clearProps:"y"})}},[a,x]),(0,T.useEffect)(()=>{b&&iP.i.refresh(!0)},[b]),(0,T.useEffect)(()=>{P(l.current),M(c.current),A(u.current)},[l]),(0,T.useEffect)(()=>{L.current=!1,R(!1),F(!1),v(!0),d.current&&nT.ZP.killTweensOf(d.current),p.current&&nT.ZP.killTweensOf(p.current),m.current&&nT.ZP.killTweensOf(m.current)},[a]),(0,T.useEffect)(()=>{if(f.current){let e=!g;L.current!==e&&(L.current=e,R(e))}},[g,R]),(0,iM.V)(()=>{if(S&&C&&(nT.ZP.registerPlugin(iP.i),I&&u.current))return nT.ZP.set(I.children,{clearProps:"all"}),nT.ZP.set(d.current,{clearProps:"all"}),nT.ZP.set(I.querySelectorAll(".highlighted-text"),{opacity:1}),nT.ZP.fromTo(I.children,{y:"130%",willChange:"transform",clipPath:"rect(0% 100% 0% 0%)",skewY:1,opacity:1},{y:"0%",ease:"power4.out",stagger:.1,willChange:"transform",clipPath:"rect(0% 100% 100% 0%)",duration:1.4,skewY:0,opacity:1,onComplete:()=>{Array.from(I.children).reverse().forEach((e,t)=>{nT.ZP.to(e,{y:"-".concat(120*t,"%"),scrollTrigger:{scrub:1,id:"headline-scroll-".concat(t)}})})}}),nT.ZP.fromTo(d.current,{y:30,opacity:0},{y:0,opacity:1,duration:1,ease:"power4.out",delay:.1*I.children.length+.3,onComplete:()=>{f.current=!0}}),()=>
244{iP.i.getAll().forEach(e=>{var t;(null===(t=e.vars.id)||void 0===t?void 0:t.startsWith("headline-scroll-"))&&e.kill()})}},[I,S,C]);let O=e=>{e!==a&&(nT.ZP.set(h.current,{clearProps:"y"}),iP.i.getAll().forEach(e=>{e.vars.trigger===h.current&&e.kill()}),s(e),nT.ZP.delayedCall(.6,()=>{R(!1),F(!1),L.current=!1,v(!0)}))};return(0,w.jsxs)("div",{className:rZ(["inductee-landing-header"]),ref:c,children:[(0,w.jsx)("div",{ref:h,children:(0,w.jsx)(E.W,{className:rZ("container"),ref:t,children:(0,w.jsxs)("div",{className:"content",ref:u,children:[(0,w.jsx)("h1",{className:rZ(["headline","display-xl"]),ref:l,children:o.map((e,t)=>(0,w.jsx)("span",{dangerouslySetInnerHTML:{__html:e}},t))}),(0,w.jsx)("div",{ref:d,children:(0,w.jsx)(r$,{isFixed:!1,isVisible:!L.current,aZLabel:i,byClassLabel:r,onTabClick:O,activeTab:a,elRef:p})})]})})}),(0,w.jsx)(r$,{isFixed:!0,isVisible:L.current,aZLabel:i,byClassLabel:r,onTabClick:O,activeTab:a,elRef:m}),(0,w.jsx)(r$,{isFixed:!0,isVisible:k,aZLabel:i,byClassLabel:r,onTabClick:O,activeTab:a})]})});function rK(e){return Array.isArray?Array.isArray(e):"[object Array]"===r8(e)}let rX=1/0;function rQ(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-rX?"-0":t}function rJ(e){return null==e?"":rQ(e)}function r0(e){return"string"==typeof e}function r1(e){return"number"==typeof e}function r2(e){return!0===e||!1===e||r5(e)&&"[object Boolean]"==r8(e)}function r3(e){return"object"==typeof e}function r5(e){return r3(e)&&null!==e}function r4(e){return null!=e}function r6(e){return!e.trim().length}function r8(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}let r7="Incorrect 'index' type",r9=e=>`Invalid value for key ${e}`,ae=e=>`Pattern length exceeds max of ${e}.`,at=e=>`Missing ${e} property in key`,an=e=>`Property 'weight' in key '${e}' must be a positive integer`,ai=Object.prototype.hasOwnProperty;class ar{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let n=aa(e);this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function aa(e){let t=null,n=null,i=null,r=1,a=null;if(r0(e)||rK(e))i=e,t=as(e),n=ao(e);else{if(!ai.call(e,"name"))throw Error(at("name"));let s=e.name;if(i=s,ai.call(e,"weight")&&(r=e.weight)<=0)throw Error(an(s));t=as(s),n=ao(s),a=e.getFn}return{path:t,id:n,weight:r,src:i,getFn:a}}function as(e){return rK(e)?e:e.split(".")}function ao(e){return rK(e)?e.join("."):e}let al={useExtendedSearch:!1,getFn:function(e,t){let n=[],i=!1,r=(e,t,a)=>{if(r4(e)){if(t[a]){let s=e[t[a]];if(r4(s)){if(a===t.length-1&&(r0(s)||r1(s)||r2(s)))n.push(rJ(s));else if(rK(s)){i=!0;for(let e=0,n=s.length;e<n;e+=1)r(s[e],t,a+1)}else t.length&&r(s,t,a+1)}}else n.push(e)}};return r(e,r0(t)?t.split("."):t,0),i?n:n[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var au={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,...al};let ac=/[^ ]+/g;function ad(e=1,t=3){let n=new Map,i=Math.pow(10,t);return{get(t){let r=t.match(ac).length;if(n.has(r))return n.get(r);let a=parseFloat(Math.round(1/Math.pow(r,.5*e)*i)/i);return n.set(r,a),a},clear(){n.clear()}}}class ah{constructor({getFn:e=au.getFn,fieldNormWeight:t=au.fieldNormWeight}={}){this.norm=ad(t,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((e,t)=>{this._keysMap[e.id]=t})}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,r0(this.docs[0])?this.docs.forEach((e,t)=>{this._addString(e,t)}):this.docs.forEach((e,t)=>{this._addObject(e,t)}),this.norm.clear())}add(e){let t=this.size();r0(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,n=this.size();t<n;t+=1)this.records[t].i-=1}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){if(!r4(e)||r6(e))return;let n={v:e,i:t,n:this.norm.get(e)};this.records.push(n)}_addObject(e,t){let n={i:t,$:{}};this.keys.forEach((t,i)=>{let r=t.getFn?t.getFn(e):this.getFn(e,t.path);if(r4(r)){if(rK(r)){let e=[],t=[{nestedArrIndex:-1,value:r}];for(;t.length;){let{nestedArrIndex:n,value:i}=t.pop();if(r4(i)){if(r0(i)&&!r6(i)){let t={v:i,i:n,n:this.norm.get(i)};e.push(t)}
244else rK(i)&&i.forEach((e,n)=>{t.push({nestedArrIndex:n,value:e})})}}n.$[i]=e}else if(r0(r)&&!r6(r)){let e={v:r,n:this.norm.get(r)};n.$[i]=e}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function af(e,t,{getFn:n=au.getFn,fieldNormWeight:i=au.fieldNormWeight}={}){let r=new ah({getFn:n,fieldNormWeight:i});return r.setKeys(e.map(aa)),r.setSources(t),r.create(),r}function ap(e,{getFn:t=au.getFn,fieldNormWeight:n=au.fieldNormWeight}={}){let{keys:i,records:r}=e,a=new ah({getFn:t,fieldNormWeight:n});return a.setKeys(i),a.setIndexRecords(r),a}function am(e,{errors:t=0,currentLocation:n=0,expectedLocation:i=0,distance:r=au.distance,ignoreLocation:a=au.ignoreLocation}={}){let s=t/e.length;if(a)return s;let o=Math.abs(i-n);return r?s+o/r:o?1:s}function ag(e=[],t=au.minMatchCharLength){let n=[],i=-1,r=-1,a=0;for(let s=e.length;a<s;a+=1){let s=e[a];s&&-1===i?i=a:s||-1===i||((r=a-1)-i+1>=t&&n.push([i,r]),i=-1)}return e[a-1]&&a-i>=t&&n.push([i,a-1]),n}let av=32;function ay(e,t,n,{location:i=au.location,distance:r=au.distance,threshold:a=au.threshold,findAllMatches:s=au.findAllMatches,minMatchCharLength:o=au.minMatchCharLength,includeMatches:l=au.includeMatches,ignoreLocation:u=au.ignoreLocation}={}){let c;if(t.length>av)throw Error(ae(av));let d=t.length,h=e.length,f=Math.max(0,Math.min(i,h)),p=a,m=f,g=o>1||l,v=g?Array(h):[];for(;(c=e.indexOf(t,m))>-1;)if(p=Math.min(am(t,{currentLocation:c,expectedLocation:f,distance:r,ignoreLocation:u}),p),m=c+d,g){let e=0;for(;e<d;)v[c+e]=1,e+=1}m=-1;let y=[],_=1,b=d+h,x=1<<d-1;for(let i=0;i<d;i+=1){let a=0,o=b;for(;a<o;)am(t,{errors:i,currentLocation:f+o,expectedLocation:f,distance:r,ignoreLocation:u})<=p?a=o:b=o,o=Math.floor((b-a)/2+a);b=o;let l=Math.max(1,f-o+1),c=s?h:Math.min(f+o,h)+d,C=Array(c+2);C[c+1]=(1<<i)-1;for(let a=c;a>=l;a-=1){let s=a-1,o=n[e.charAt(s)];if(g&&(v[s]=+!!o),C[a]=(C[a+1]<<1|1)&o,i&&(C[a]|=(y[a+1]|y[a])<<1|1|y[a+1]),C[a]&x&&(_=am(t,{errors:i,currentLocation:s,expectedLocation:f,distance:r,ignoreLocation:u}))<=p){if(p=_,(m=s)<=f)break;l=Math.max(1,2*f-m)}}if(am(t,{errors:i+1,currentLocation:f,expectedLocation:f,distance:r,ignoreLocation:u})>p)break;y=C}let C={isMatch:m>=0,score:Math.max(.001,_)};if(g){let e=ag(v,o);e.length?l&&(C.indices=e):C.isMatch=!1}return C}function a_(e){let t={};for(let n=0,i=e.length;n<i;n+=1){let r=e.charAt(n);t[r]=(t[r]||0)|1<<i-n-1}return t}let ab=String.prototype.normalize?e=>e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D
2447F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,""):e=>e;class ax{constructor(e,{location:t=au.location,threshold:n=au.threshold,distance:i=au.distance,includeMatches:r=au.includeMatches,findAllMatches:a=au.findAllMatches,minMatchCharLength:s=au.minMatchCharLength,isCaseSensitive:o=au.isCaseSensitive,ignoreDiacritics:l=au.ignoreDiacritics,ignoreLocation:u=au.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:i,includeMatches:r,findAllMatches:a,minMatchCharLength:s,isCaseSensitive:o,ignoreDiacritics:l,ignoreLocation:u},e=o?e:e.toLowerCase(),e=l?ab(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;let c=(e,t)=>{this.chunks.push({pattern:e,alphabet:a_(e),startIndex:t})},d=this.pattern.length;if(d>av){let e=0,t=d%av,n=d-t;for(;e<n;)c(this.pattern.substr(e,av),e),e+=av;if(t){let e=d-av;c(this.pattern.substr(e),e)}}else c(this.pattern,0)}searchIn(e){let{isCaseSensitive:t,ignoreDiacritics:n,includeMatches:i}=this.options;if(e=t?e:e.toLowerCase(),e=n?ab(e):e,this.pattern===e){let t={isMatch:!0,score:0};return i&&(t.indices=[[0,e.length-1]]),t}let{location:r,distance:a,threshold:s,findAllMatches:o,minMatchCharLength:l,ignoreLocation:u}=this.options,c=[],d=0,h=!1;this.chunks.forEach(({pattern:t,alphabet:n,startIndex:f})=>{let{isMatch:p,score:m,indices:g}=ay(e,t,n,{location:r+f,distance:a,threshold:s,findAllMatches:o,minMatchCharLength:l,includeMatches:i,ignoreLocation:u});p&&(h=!0),d+=m,p&&g&&(c=[...c,...g])});let f={isMatch:h,score:h?d/this.chunks.length:1};return h&&i&&(f.indices=c),f}}class aC{constructor(e){this.pattern=e}static isMultiMatch(e){return aE(e,this.multiRegex)}static isSingleMatch(e){return aE(e,this.singleRegex)}search(){}}function aE(e,t){let n=e.match(t);return n?n[1]:null}class aw extends aC{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){let t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}class aT extends aC{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){let t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}class aS extends aC{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){let t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}class aL extends aC{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){let t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}class aP extends aC{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){let t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class aM extends aC{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){let t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}class aA extends aC{constructor(e,{location:t=au.location,threshold:n=au.threshold,distance:i=au.distance,includeMatches:r=au.includeMatches,findAllMatches:a=au.findAllMatches,minMatchCharLength:s=au.minMatchCharLength,isCaseSensitive:o=au.isCaseSensitive,ignoreDiacritics:l=au.ignoreDiacritics,ignoreLocation:u=au.ignoreLocation}={}){super(e),this._bitapSearch=new ax(e,{location:t,threshold:n,distance:i,includeMatches:r,findAllMatches:a,minMatchCharLength:s,isCaseSensitive:o,ignoreDiacritics:l,ignoreLocation:u})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class aI extends aC{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,n=0,i=[],r=this.pattern.length;for(;(t=e.indexOf(this.pattern,n))>-1;)n=t+r,i.push([t,n-1]);let a=!!i.length;return{isMatch:a,score:a?0:1,indices:i}}}let aR=[aw,aI,aS,aL,aM,aP,aT,aA],ak=aR.length,aD=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,aN="|";function aF(e,t={}){return e.split(aN).map(e=>{let n=e.trim().split(aD).filter(e=>e&&!!e.trim()),i=[];for(let e=0,r=n.length;e<r;e+=1){let r=n[e],a=!1,s=-1;for(;!a&&++s<ak;){let e=aR[s],n=e.isMultiMatch(r);n&&(i.push(new e(n,t)),a=!0)}if(!a)for(s=-1;++s<ak;){let e=aR[s],n=e.isSingleMatch(r);if(n){i.push(new e(n,t));break}}}return i})}let aO=new Set([aA.type,aI.type]);class aj{constructor(e,{isCaseSensitive:t=au.isCaseSensitive,ignoreDiacritics:n=au.ignoreDiacritics,includeMatches:i=au.includeMatches,minMatchCharLength:r=au.minMatchCharLength,ignoreLocation:a=au.ignoreLocation,findAllMatches:s=au.findAllMatches,location:o=au.location,threshold:l=au.threshold,distance:u=au.distance}={}){this.query=null,this.options={isCaseSensitive:t,ignoreDiacritics:n,includeMatches:i,minMatchCharLength:r,findAllMatches:s,ignoreLocation:a,location:o,threshold:l,distance:u},e=t?e:e.toLowerCase(),e=n?ab(e):e,this.pattern=e,this.query=aF(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){let t=this.query;if(!t)return{isMatch:!1,score:1};let{includeMatches:n,isCaseSensitive:i,ignoreDiacritics:r}=this.options;e=i?e:e.toLowerCase(),e=r?ab(e):e;let a=0,s=[],o=0;for(let i=0,r=t.length;i<r;i+=1){let r=t[i];s.length=0,a=0;for(let t=0,i=r.length;t<i;t+=1){let i=r[t],{isMatch:l,indices:u,score:c}=i.search(e);if(l){if(a+=1,o+=c,n){let e=i.constructor.type;aO.has(e)?s=[...s,...u]:s.push(u)}}else{o=0,a=0,s.length=0;break}}
244if(a){let e={isMatch:!0,score:o/a};return n&&(e.indices=s),e}}return{isMatch:!1,score:1}}}let aU=[];function aV(...e){aU.push(...e)}function aB(e,t){for(let n=0,i=aU.length;n<i;n+=1){let i=aU[n];if(i.condition(e,t))return new i(e,t)}return new ax(e,t)}let aH={AND:"$and",OR:"$or"},aG={PATH:"$path",PATTERN:"$val"},az=e=>!!(e[aH.AND]||e[aH.OR]),aq=e=>!!e[aG.PATH],aW=e=>!rK(e)&&r3(e)&&!az(e),a$=e=>({[aH.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function aZ(e,t,{auto:n=!0}={}){let i=e=>{let r=Object.keys(e),a=aq(e);if(!a&&r.length>1&&!az(e))return i(a$(e));if(aW(e)){let i=a?e[aG.PATH]:r[0],s=a?e[aG.PATTERN]:e[i];if(!r0(s))throw Error(r9(i));let o={keyId:ao(i),pattern:s};return n&&(o.searcher=aB(s,t)),o}let s={children:[],operator:r[0]};return r.forEach(t=>{let n=e[t];rK(n)&&n.forEach(e=>{s.children.push(i(e))})}),s};return az(e)||(e=a$(e)),i(e)}function aY(e,{ignoreFieldNorm:t=au.ignoreFieldNorm}){e.forEach(e=>{let n=1;e.matches.forEach(({key:e,norm:i,score:r})=>{let a=e?e.weight:null;n*=Math.pow(0===r&&a?Number.EPSILON:r,(a||1)*(t?1:i))}),e.score=n})}function aK(e,t){let n=e.matches;t.matches=[],r4(n)&&n.forEach(e=>{if(!r4(e.indices)||!e.indices.length)return;let{indices:n,value:i}=e,r={indices:n,value:i};e.key&&(r.key=e.key.src),e.idx>-1&&(r.refIndex=e.idx),t.matches.push(r)})}function aX(e,t){t.score=e.score}function aQ(e,t,{includeMatches:n=au.includeMatches,includeScore:i=au.includeScore}={}){let r=[];return n&&r.push(aK),i&&r.push(aX),e.map(e=>{let{idx:n}=e,i={item:t[n],refIndex:n};return r.length&&r.forEach(t=>{t(e,i)}),i})}class aJ{constructor(e,t={},n){this.options={...au,...t},this.options.useExtendedSearch,this._keyStore=new ar(this.options.keys),this.setCollection(e,n)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof ah))throw Error(r7);this._myIndex=t||af(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){r4(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){let t=[];for(let n=0,i=this._docs.length;n<i;n+=1){let r=this._docs[n];e(r,n)&&(this.removeAt(n),n-=1,i-=1,t.push(r))}return t}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:t=-1}={}){let{includeMatches:n,includeScore:i,shouldSort:r,sortFn:a,ignoreFieldNorm:s}=this.options,o=r0(e)?r0(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return aY(o,{ignoreFieldNorm:s}),r&&o.sort(a),r1(t)&&t>-1&&(o=o.slice(0,t)),aQ(o,this._docs,{includeMatches:n,includeScore:i})}_searchStringList(e){let t=aB(e,this.options),{records:n}=this._myIndex,i=[];return n.forEach(({v:e,i:n,n:r})=>{if(!r4(e))return;let{isMatch:a,score:s,indices:o}=t.searchIn(e);a&&i.push({item:e,idx:n,matches:[{score:s,value:e,norm:r,indices:o}]})}),i}_searchLogical(e){let t=aZ(e,this.options),n=(e,t,i)=>{if(!e.children){let{keyId:n,searcher:r}=e,a=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(t,n),searcher:r});return a&&a.length?[{idx:i,item:t,matches:a}]:[]}let r=[];for(let a=0,s=e.children.length;a<s;a+=1){let s=n(e.children[a],t,i);if(s.length)r.push(...s);else if(e.operator===aH.AND)return[]}return r},i=this._myIndex.records,r={},a=[];return i.forEach(({$:e,i:i})=>{if(r4(e)){let s=n(t,e,i);s.length&&(r[i]||(r[i]={idx:i,item:e,matches:[]},a.push(r[i])),s.forEach(({matches:e})=>{r[i].matches.push(...e)}))}}),a}_searchObjectList(e){let t=aB(e,this.options),{keys:n,records:i}=this._myIndex,r=[];return i.forEach(({$:e,i:i})=>{if(!r4(e))return;let a=[];n.forEach((n,i)=>{a.push(...this._findMatches({key:n,value:e[i],searcher:t}))}),a.length&&r.push({idx:i,item:e,matches:a})}),r}_findMatches({key:e,value:t,searcher:n}){if(!r4(t))return[];let i=[];if(rK(t))t.forEach(({v:t,i:r,n:a})=>{if(!r4(t))return;let{isMatch:s,score:o,indices:l}=n.searchIn(t);s&&i.push({score:o,key:e,value:t,idx:r,norm:a,indices:l})});else{let{v:r,n:a}=t,{isMatch:s,score:o,indices:l}=n.searchIn(r);s&&i.push({score:o,key:e,value:r,norm:a,indices:l})}return i}}aJ.version="7.1.0",aJ.createIndex=af,aJ.parseIndex=ap,aJ.config=au,aJ.parseQuery=aZ,aV(aj);var a0=n(53235),a1=n.n(a0);let a2=O().bind(a1());var a3=(0,T.forwardRef)((e,t)=>{var n,i;let{uri:r,title:a,pageData:{featuredImage:s},inducteeData:{inducteeClass:o,category:l}}=e,u=(0,T.useRef)(null),c=(0,I.Y)(u,{once:k.LL.once}),[d,h]=(0,T.useState)(!1),[f,p]=(0,T.useState)(!1),m=(0,T.useMemo)(()=>(0,D.VT)(l[0]||""),[l]),g=()=>p(!0);return(0,T.useImperativeHandle)(t,()=>({getInnerRef:()=>u.current})),(0,T.useEffect)(()=>{var e;c&&(null==s?void 0:null===(e=s.node)||void 0===e?void 0:e.mediaItemUrl)&&!d&&h(!0)},[c,null==s?void 0:null===(n=s.node)||void 0===n?void 0:n.mediaItemUrl]),(0,w.jsxs)(td.K,{href:r,className:a2("inductee-item"),ref:u,children:[(0,w.jsxs)("div",{className:a2(["image-wrapper",{"image-loaded":f}]),children:[(0,w.jsx)("span",{className:a2(["placeholder"])}),d&&(0,w.jsx)(R.E.div,{initial:{opacity:0}
244,animate:{opacity:f?1:0},transition:{duration:.4,ease:"easeOut"},children:(0,w.jsx)(tc.E,{image:s,onLoad:g,sizes:"(max-width: 768px) 50vw, (max-width: 1024px) 25vw, 15vw",className:a2("image")})})]}),(0,w.jsxs)("div",{className:a2("copy"),children:[(0,w.jsx)("p",{className:a2("name","text-m"),children:a}),(0,w.jsx)("p",{className:a2("pill","class","MD-TagSmall"),children:(null===(i=o[0])||void 0===i?void 0:i.slug)||"Unknown Class"}),(0,w.jsx)("p",{className:a2("pill","class","MD-TagSmall"),children:m})]})]},a)}),a5=n(14902);let a4=O().bind(a1()),a6={active:{transform:"translate(-50%, 0%)",opacity:1},inactive:{transform:"translate(-50%, 100%)",opacity:0}};function a8(e){let{inductees:t,searchPlaceholder:n,noResultsTitle:i,noResultsBody:r,noResultsCta:a,onAnimateIn:s}=e,o=24,l=(0,T.useRef)(null),u=(0,T.useMemo)(()=>(0,D.rL)(t),[t]),[c,d]=(0,T.useState)(u),h=(0,T.useRef)([]),[f,p]=(0,T.useState)(c.slice(0,o)),m=(0,T.useRef)(null),g=(0,T.useRef)(null),v=(0,T.useRef)(null),[y,_]=(0,T.useState)(!1),{labels:b}=(0,G.i)(),[x,C]=(0,T.useState)(!1),S=(0,T.useRef)(6),[L,P]=(0,T.useState)(!1),M=(0,T.useRef)(!1),A=(0,T.useRef)(null),I=(0,T.useRef)(1),k=(0,T.useRef)(!0),F=(0,D.Cr)(a),O=Array.from({length:26},(e,t)=>String.fromCharCode(65+t)),j=(0,a5.LZ)(),U=(0,T.useRef)(j),V=new aJ(u,{keys:["title","inducteeLandingMembers.name","inducteeData.category","inducteeData.inductedBy","inducteeData.inducteeClass.slug","inducteeData.relatedSearchTerms.searchTerm"],includeScore:!0,threshold:.25}),{isScrolled:B,scrollDirection:H,menuExpanded:z}=(0,eZ.g)(),{isMobile:q,isTablet:W,isDesktop:$,viewWidth:Z,isReady:Y}=(0,N.dg)(),{mounted:K}=(0,eT.F)(),[X,Q]=(0,T.useState)(""),J=(e,t)=>{let n=(null==e?void 0:e.getInnerRef)?e.getInnerRef():null;n?h.current[t]=n:delete h.current[t]},ee=()=>{if(K&&Y&&(nT.ZP.registerPlugin(iP.Z),nT.ZP.registerPlugin(nS.L),A.current&&(A.current.kill(),A.current=null),c.length>o)){let e=!1;A.current=iP.Z.create({trigger:l.current,start:"bottom bottom+=300px",end:"bottom bottom",onUpdate:async t=>{if(M.current){M.current=!1;return}if(!e&&t.direction>0&&t.end-t.scroll()<=100){e=!0;let t=c.slice(I.current*o,(I.current+1)*o);if(t.length>0){var n;await p(e=>[...e,...t]),I.current+=1,null===(n=A.current)||void 0===n||n.refresh()}e=!1}}})}},et=async function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Q(e);let n=c.findIndex(t=>(t.inducteeData.sortName||t.title).toUpperCase().startsWith(e.toUpperCase()));if(-1!==n){let e=0,i=Math.ceil(c.length/o),r=Math.min(Math.floor(n/o)+1+1,i);r>I.current&&(P(!0),await p(e=>[...e,...c.slice(I.current*o,r*o)]),I.current=r,e=50),setTimeout(()=>{if(K&&Y&&(P(!0),h.current[n])){let{top:e}=h.current[n].getBoundingClientRect();nT.ZP.to(window,{scrollTo:{y:e+window.scrollY-121},duration:.75,ease:"power2.inOut",onComplete:()=>{if(P(!1),t){var e;null===(e=h.current[n])||void 0===e||e.focus()}}})}},e)}},en=e=>{var t,n,i,r,a,s,o;let{key:l}=e;if("ArrowDown"===l){e.preventDefault();let i=h.current.findIndex(e=>e===document.activeElement),r=h.current.length-1;if(-1!==i){let e=i+S.current;if(e<h.current.length)null===(t=h.current[e])||void 0===t||t.focus();else if(e>h.current.length&&i<r)null===(n=h.current[h.current.length-1])||void 0===n||n.focus();else if(i===r){let e=h.current[0];null==e||e.focus()}}}else if("ArrowUp"===l){e.preventDefault();let t=h.current.findIndex(e=>e===document.activeElement);if(-1!==t){let e=t-S.current;e>=0?null===(i=h.current[e])||void 0===i||i.focus():e<0&&t>0&&(null===(r=h.current[0])||void 0===r||r.focus())}}else if("ArrowLeft"===l){e.preventDefault();let t=h.current.findIndex(e=>e===document.activeElement);if(-1!==t){let e=t-1;e>=0&&(null===(a=h.current[e])||void 0===a||a.focus())}}else if("ArrowRight"===l){e.preventDefault();let t=h.current.findIndex(e=>e===document.activeElement);if(-1!==t){let e=t+1;e<h.current.length&&(null===(s=h.current[e])||void 0===s||s.focus())}}else if("Tab"===e.key){if(e.preventDefault(),e.shiftKey)null===(o=v.current)||void 0===o||o.focus();else{let e=document.querySelector("footer"),t=null==e?void 0:e.querySelector('button, [href], input, select, textarea, [tabindex]:not
244([tabindex="-1"])');t&&(null==t||t.focus(),t.scrollIntoView())}}},ei=e=>{var t,n,i;let{key:r}=e,a=Array.from((null===(t=g.current)||void 0===t?void 0:t.children)||[]);if("ArrowDown"===r){e.preventDefault();let t=a.findIndex(e=>e===document.activeElement);if(-1!==t){let e=t+1;e<a.length&&(null===(n=a[e])||void 0===n||n.focus())}}else if("ArrowUp"===r){e.preventDefault();let t=a.findIndex(e=>e===document.activeElement);if(-1!==t){let e=t-1;e>=0&&(null===(i=a[e])||void 0===i||i.focus())}}},er=e=>{if("Tab"===e.key){if(e.preventDefault(),e.shiftKey){var t;let e=null===(t=g.current)||void 0===t?void 0:t.firstElementChild;null==e||e.focus()}else{let e=h.current[0];null==e||e.focus()}}else"Enter"===e.key&&(null==v||v.current.blur())},ea=(0,T.useCallback)(e=>{q||W?(_(!0),window.scrollTo({top:0}),nT.ZP.delayedCall(.4,()=>{window.scrollTo({top:0})})):_(!0)},[_]),es=e=>{_(!1)},eo=(e,t)=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),_(!1),et(t,!0))},el=async e=>{let t=document.querySelector("main");await (0,D.ug)(l.current),await (0,D.ug)(t)},eu=async e=>{nT.ZP.to(m.current,{x:-50,ease:"power3.in",opacity:0,duration:.5}),nT.ZP.killTweensOf(g.current.children),nT.ZP.to(g.current.children,{x:-60,opacity:0,ease:"power3.in",stagger:.01,duration:.5})},ec=e=>{var t;let n=e.target.value.trim().toLowerCase();if(""===n){d(u),I.current=1,ee();return}null===(t=U.current)||void 0===t||t.scrollTo(0,{immediate:!0}),d(V.search(n).map(e=>e.item)),I.current=1,M.current=!0,ee(),P(!1)};return(0,T.useEffect)(()=>{var e,t;return null===(e=m.current)||void 0===e||e.addEventListener("keydown",en),null===(t=g.current)||void 0===t||t.addEventListener("keydown",ei),()=>{var e,t;null===(e=m.current)||void 0===e||e.removeEventListener("keydown",en),null===(t=g.current)||void 0===t||t.removeEventListener("keydown",ei)}},[m]),(0,iM.V)(()=>{var e,t;if(!K||!Y||!m.current)return;window.scrollTo(0,0),null==j||j.scrollTo(0,{immediate:!0}),null==j||j.stop(),document.body.style.overflow="hidden",null===(e=U.current)||void 0===e||e.stop(),null===(t=U.current)||void 0===t||t.scrollTo(0),nT.ZP.fromTo(m.current,{opacity:0},{opacity:1}),nT.ZP.fromTo(g.current.children,{y:90,opacity:0},{y:0,opacity:1,ease:"power3.out",stagger:.02,duration:1,delay:.4});let n=2,i="5% 10%";return W?(n=4,i="20% 20%"):$&&(n=6,i="50% 100%"),Array.from(m.current.children).forEach((e,t)=>{let r=-(t%n*25)+t%2*40;nT.ZP.killTweensOf(e),nT.ZP.fromTo(e,{y:k.current?"".concat(r+50+t/n*40,"%"):"".concat(r,"%")},{y:"".concat(r,"%"),ease:"power4.out",duration:k.current?1:.5,delay:t%n*.07,onComplete:()=>{j.scrollTo(0,{immediate:!0}),nT.ZP.to(e,{y:0,scrollTrigger:{scrub:1,trigger:document.body,start:"0% 0%",end:i}}),t===n-1&&(null==s||s()),document.body.style.overflow="",k.current=!1}}),nT.ZP.fromTo(e,{opacity:0},{opacity:1,ease:"linear",duration:.4,delay:k.current?t%n*.1:0}),k.current&&nT.ZP.fromTo(g.current.children,{y:90,opacity:0},{y:0,opacity:1,ease:"power3.out",stagger:.02,duration:1,delay:.4})}),()=>{document.body.style.overflow=""}},[K,Y,j,m.current,g.current,$,W,q,Z]),(0,T.useEffect)(()=>{A.current&&A.current.refresh()},[f]),(0,T.useEffect)(()=>{U.current=j},[j]),(0,T.useEffect)(()=>{if(K&&Y)return ee(),p(c.slice(0,o)),()=>{A.current&&(A.current.kill(),A.current=null)}},[K,Y,c]),(0,T.useEffect)(()=>{let e=setTimeout(()=>{C(!0)},1500);return()=>clearTimeout(e)},[]),(0,T.useEffect)(()=>{var e,t;z?null===(e=U.current)||void 0===e||e.stop():null===(t=U.current)||void 0===t||t.start()},[z]),(0,w.jsx)(R.E.div,{className:a4(["inductees-a-to-z"]),ref:l,onAnimationComplete:el,onAnimationStart:eu,exit:{left:.5},transition:{ease:"easeIn",duration:.3},children:(0,w.jsxs)(E.W,{className:a4("container"),children:[(0,w.jsx)("nav",{className:a4("alphabet-buttons",{"full-size":B&&"down"===H&&!q&&!W}),ref:g,"aria-label":null==b?void 0:b.alphabeticalJumpLinks,children:O.map((e,t)=>(0,w.jsx)("button",{className:a4("alphabet-button","LG-EyebrowTag",{"is-active":X===e}),onClick:()=>et(e),onKeyDown:t=>eo(t,e),tabIndex:t>0?-1:0,"aria-current":X===e?"true":void 0,children:e},e))}),(0,w.jsx)("div",{className:a4("search-bar-bg",{"search-bar-bg--focused":y&&!$})}),(0,w.jsxs)(R.E.div,{className:a4("search-bar",{"search-bar--focused":y&&!$,"search-bar--focused-desktop":y&&$}),variants:a6,initial:"inactive",animate:x?"active":"inactive",children:[(0,w.jsx)(tr,{className:a4("search-icon")}),(0,w.jsx)("input",{type:"text",placeholder:n,className:a4("search-input"),onInput:ec,onKeyDown:er,onFocus:ea,onBlur:es,onSubmit:es,ref:v})]}),(0,w.jsx)("div",{className:a4("sr-only"),"aria-live":"polite","aria-label":"Search results",children:f.length+" Search results"}),(0,w.jsx)("div",{className:a4("inductee-grid"),ref:m,"aria-label":"Search results",role:"listbox",children:f.map((e,t)=>(0,w.jsx)(a3,{ref:e=>J(e,t),...e},"".concat(e.title,"-").concat(t)))}),(0,w.jsx)(ez.M,{children:0===f.length&&(0,w.jsxs)(R.E.div,{className:a4("no-results-container"),initial:{opacity:0}
244,animate:{opacity:1},children:[(0,w.jsx)("h2",{className:a4("title-lc-xs"),children:i}),(0,w.jsx)("p",{className:a4("text-m","text-center"),children:r}),F&&(0,w.jsx)(id.z,{...F})]})})]})})}var a7=n(89805),a9=n(23279),se=n.n(a9);function st(){return(st=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var sn=function(e){return T.createElement("svg",st({width:96,height:96,viewBox:"0 0 96 96",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),T.createElement("g",{style:{mixBlendMode:"difference"}},s0||(s0=T.createElement("rect",{width:96,height:96,rx:48,fill:"#FFFF4B"})),s1||(s1=T.createElement("circle",{cx:48,cy:48,r:36,stroke:"black",strokeWidth:1.5})),s2||(s2=T.createElement("mask",{id:"path-3-outside-1_813_27427",maskUnits:"userSpaceOnUse",x:19,y:3,width:74,height:90,fill:"black"},T.createElement("rect",{fill:"white",x:19,y:3,width:74,height:90}),T.createElement("path",{d:"M47.7097 14.3246L48.9751 13.4722C49.4807 14.4624 50.3236 15.0878 51.3029 15.184C52.2702 15.2791 53.0421 14.9088 53.1231 14.0847C53.2087 13.2129 52.3248 13.0055 51.0774 12.5695C49.8181 12.1322 48.4704 11.614 48.6346 9.94201C48.7907 8.35366 50.2519 7.47231 51.9835 7.64244C53.4524 7.78676 54.5309 8.59207 55.0161 9.54407L53.7985 10.4011C53.3935 9.61375 52.811 9.03804 51.8079 8.93948C50.8883 8.84913 50.2096 9.2527 50.1427 9.93342C50.0688 10.6858 50.7104 10.9056 51.843 11.2821C53.1978 11.7287 54.8261 12.2143 54.6431 14.0773C54.4776 15.7612 52.8947 16.6547 51.1272 16.4811C49.6583 16.3367 48.2705 15.489 47.7097 14.3246ZM57.8505 13.249C57.2405 15.0061 57.7914 16.493 59.1291 16.9573C60.0814 17.2879 60.9736 16.9498 61.5536 16.0841L62.7526 17.0211C61.7767 18.2955 60.3283 18.8089 58.6845 18.2384C56.5192 17.4868 55.5416 15.2166 56.3994 12.7453C57.2573 10.2739 59.4311 9.09778 61.5964 9.84937C63.2402 10.42 64.059 11.7204 64.0354 13.3254L62.5137 13.318C62.5948 12.2791 62.104 11.4609 61.1517 11.1304C59.814 10.6661 58.4604 11.4918 57.8505 13.249ZM65.9775 17.8238L64.1385 20.6072L62.857 19.7605L67.6065 12.5717L70.48 14.4702C72.0819 15.5286 72.587 16.941 71.6278 18.3928C70.8803 19.5242 69.7833 19.8349 68.5667 19.3906L68.5138 23.4979L67.052 22.5321L67.1389 18.5911L65.9775 17.8238ZM66.7051 16.7225L68.2269 17.7279C69.1481 18.3365 69.9033 18.2601 70.3663 17.5593C70.836 16.8484 70.6033 16.1338 69.6822 15.5253L68.1604 14.5198L66.7051 16.7225ZM72.153 21.018C74.0986 19.2693 76.5782 19.2994 78.1344 21.0308C79.6906 22.7623 79.4571 25.231 77.5115 26.9798C75.5659 28.7285 73.0863 28.6983 71.5301 26.9669C69.9739 25.2355 70.2074 22.7667 72.153 21.018ZM76.4847 25.8374C77.877 24.586 78.0966 23.0172 77.1259 21.9373C76.1553 20.8574 74.5721 20.909 73.1798 22.1604C71.7875 23.4118 71.568 24.9806 72.5386 26.0605C73.5092 27.1404 75.0925 27.0888 76.4847 25.8374ZM74.9263 30.8412L82.5299 26.7889L83.2523 28.1444L76.8348 31.5646L78.7424 35.144L77.5563 35.7761L74.9263 30.8412ZM77.8629 36.7069L86.1355 34.2987L86.5648 35.7735L79.5826 37.806L80.7163 41.7004L79.4258 42.076L77.8629 36.7069ZM87.0747 51.9665L87.0847 49.1945L79.8127 49.1685L79.8182 47.6325L87.0901 47.6585L87.1 44.8866L88.444 44.8914L88.4187 51.9713L87.0747 51.9665ZM83.8911 52.9241C86.428 53.5628 87.7866 55.6372 87.2183 57.8948C86.6499 60.1523 84.4709 61.3362 81.9341 60.6975C79.3973 60.0588 78.0386 57.9844 78.607 55.7268C79.1753 53.4692 81.3543 52.2854 83.8911 52.9241ZM82.3091 59.208C84.1244 59.665 85.5488 58.9718 85.9033 57.5637C86.2578 56.1557 85.3315 54.8706 83.5161 54.4136C81.7008 53.9566 80.2764 54.6498 79.9219 56.0579C79.5674 57.4659 80.4937 58.751 82.3091 59.208ZM76.1991 62.9134L83.327 67.7537L81.709 70.1363C80.2057 72.3501 77.8856 72.7763 75.7115 71.2999C73.5373 69.8236 73.0778 67.5098 74.5812 65.296L76.1991 62.9134ZM76.4484 64.8959L75.6732 66.0375C74.6754 67.5068 75.0618 69.0311 76.5609 70.0491C78.0698 71.0738 79.6193 70.864 80.6238 69.3848L81.3923 68.2531L76.4484 64.8959ZM76.4632 76.8815L70.3017 70.8589L71.3753 69.7605L77.5369 75.783L76.4632 76.8815ZM70.7856 72.7507L70.4202 74.232C69.3807 73.8378 68.3361 73.9404 67.5459 74.5266C66.7652 75.1058 66.4419 75.8985 66.9352 76.5635C67.4572 77.267 68.2515 76.8272 69.4686 76.3127C70.6953 75.7911 72.0421 75.2701 73.043 76.6193C73.994 77.9011 73.503 79.5354 72.1056 80.5721C70.9202 81.4515 69.5803 81.5789 68.5815 81.1993L68.9083 79.7466C69.7371 80.0581 70.5553 80.0936 71.3648 79.493C72.1069 78.9425 72.3388 78.1877 71.9313 77.6384C71.4809 77.0312 70.8579 77.2992 69.7657 77.7807C68.4619 78.3595 66.9292 79.0931 65.8139 77.5896C64.8057 76.2308 65.3787 74.5057 66.8051 73.4476C67.9905 72.5681 69.5881 72.2645 70.7856 72.7507ZM64.0082 80.3548C63.2761 78.645 61.8677 77.9165 60.566 78.4739C59.6394 78.8706 59.2073 79.7213 59.3614 80.7519L57.844 80.8664C57.7075 79.267 58.4327 77.9122 60.0323 77.2273C62.1393 76.3252 64.3906 77.3454 65.4202 79.7503C66.4499 82.1551 65.6345 84.4884 63.5275 85.3905C61.9279 86.0754 60.4469 85.6652 59.3837 84.4626L60.5139 83.4435C61.1533 84.2663 62.0671 84.5407 62.9937 84.144C64.2954 83.5867 64.7403 82.0647 64.0082 80.3548ZM56.9911 83.1001C57.3717 85.6883 55.975 87.7373 53.6718 88.0761C51.3686 88.4148 49.441 86.8547 49.0604 84.2666C48.6797 81.6784 50.0764 79.6294 52.3797 79.2906C54.6829 78.9518 56.6104 80.512 56.9911 83.1001ZM50.58 84.043C50.8524 85.8951 52.0379 86.9458 53.4745 86.7345C54.911 86.5232 55.7438 85.1757 55.4714 83.3236C55.199 81.4716 54.0135 80.4209 52.577 80.6322C51.1404 80.8435 50.3076 82.191 50.58 84.043ZM43.6456 79.4425L45.2558 79.6205L47.4935 88.5365L45.8476 88.3545L44.2218 81.4379L41.1124 87.8309L39.538 87.6568L43.6456 79.4425ZM36.6634 86.8918L31.1877 84.8846L31.6503 83.6227L35.7064 85.1096L36.4498 83.0815L33.0359 81.8301L33.4985 80.5682L36.9124 81.8196L37.7467 79.5437L33.6906 78.0569L34.1532 76.795L39.6289 78.8022L36.6634 86.8918ZM29.9132 78.1083L31.7631 75.3321L33.0413 76.1839L28.2636 83.3539L25.3976 81.4442C23.7998 80.3795 23.3003 78.9651 24.2651 77.5171C25.017 76.3887 26.1153 76.0823 27.3302 76.5313L27.3991 72.4243L28.8571 73.3958L28.7548 77.3364L29.9132 78.1083ZM29.1813 79.2068L27.6634 78.1953C26.7446 77.5831 25.9892 77.6565 25.5234 78.3556C25.0509 79.0646 25.2807 79.7801 26.1995 80.3923L27.7174 81.4037L29.1813 79.2068Z"}))),s3||(s3=T.createElement("path",{d:"M47.7097 14.3246L48.9751 13.4722C49.4807 14.4624 50.3236 15.0878 51.3029 15.184C52.2702 15.2791 53.0421 14.9088 53.1231 14.0847C53.2087 13.2129 52.3248 13.0055 51.0774 12.5695C49.8181 12.1322 48.4704 11.614 48.6346 9.94201C48.7907 8.35366 50.2519 7.47231 51.9835 7.64244C53.4524 7.78676 54.5309 8.59207 55.0161 9.54407L53.7985 10.4011C53.3935 9.61375 52.811 9.03804 51.8079 8.93948C50.8883 8.84913 50.2096 9.2527 50.1427 9.93342C50.0688 10.6858 50.7104 10.9056 51.843 11.2821C53.1978 11.7287 54.8261 12.2143 54.6431 14.0773C54.4776 15.7612 52.8947 16.6547 51.1272 16.4811C49.6583 16.3367 48.2705 15.489 47.7097 14.3246ZM57.8505 13.249C57.2405 15.0061 57.7914 16.493 59.1291 16.9573C60.0814 17.2879 60.9736 16.9498 61.5536 16.0841L62.7526 17.0211C61.7767 18.2955 60.3283 18.8089 58.6845 18.2384C56.5192 17.4868 55.5416 15.2166 56.3994 12.7453C57.2573 10.2739 59.4311 9.09778 61.5964 9.84937C63.2402 10.42 64.059 11.7204 64.0354 13.3254L62.5137 13.318C62.5948 12.2791 62.104 11.4609 61.1517 11.1304C59.814 10.6661 58.4604 11.4918 57.8505 13.249ZM65.9775 17.8238L64.1385 20.6072L62.857 19.7605L67.6065 12.5717L70.48 14.4702C72.0819 15.5286 72.587 16.941 71.6278 18.3928C70.8803
24419.5242 69.7833 19.8349 68.5667 19.3906L68.5138 23.4979L67.052 22.5321L67.1389 18.5911L65.9775 17.8238ZM66.7051 16.7225L68.2269 17.7279C69.1481 18.3365 69.9033 18.2601 70.3663 17.5593C70.836 16.8484 70.6033 16.1338 69.6822 15.5253L68.1604 14.5198L66.7051 16.7225ZM72.153 21.018C74.0986 19.2693 76.5782 19.2994 78.1344 21.0308C79.6906 22.7623 79.4571 25.231 77.5115 26.9798C75.5659 28.7285 73.0863 28.6983 71.5301 26.9669C69.9739 25.2355 70.2074 22.7667 72.153 21.018ZM76.4847 25.8374C77.877 24.586 78.0966 23.0172 77.1259 21.9373C76.1553 20.8574 74.5721 20.909 73.1798 22.1604C71.7875 23.4118 71.568 24.9806 72.5386 26.0605C73.5092 27.1404 75.0925 27.0888 76.4847 25.8374ZM74.9263 30.8412L82.5299 26.7889L83.2523 28.1444L76.8348 31.5646L78.7424 35.144L77.5563 35.7761L74.9263 30.8412ZM77.8629 36.7069L86.1355 34.2987L86.5648 35.7735L79.5826 37.806L80.7163 41.7004L79.4258 42.076L77.8629 36.7069ZM87.0747 51.9665L87.0847 49.1945L79.8127 49.1685L79.8182 47.6325L87.0901 47.6585L87.1 44.8866L88.444 44.8914L88.4187 51.9713L87.0747 51.9665ZM83.8911 52.9241C86.428 53.5628 87.7866 55.6372 87.2183 57.8948C86.6499 60.1523 84.4709 61.3362 81.9341 60.6975C79.3973 60.0588 78.0386 57.9844 78.607 55.7268C79.1753 53.4692 81.3543 52.2854 83.8911 52.9241ZM82.3091 59.208C84.1244 59.665 85.5488 58.9718 85.9033 57.5637C86.2578 56.1557 85.3315 54.8706 83.5161 54.4136C81.7008 53.9566 80.2764 54.6498 79.9219 56.0579C79.5674 57.4659 80.4937 58.751 82.3091 59.208ZM76.1991 62.9134L83.327 67.7537L81.709 70.1363C80.2057 72.3501 77.8856 72.7763 75.7115 71.2999C73.5373 69.8236 73.0778 67.5098 74.5812 65.296L76.1991 62.9134ZM76.4484 64.8959L75.6732 66.0375C74.6754 67.5068 75.0618 69.0311 76.5609 70.0491C78.0698 71.0738 79.6193 70.864 80.6238 69.3848L81.3923 68.2531L76.4484 64.8959ZM76.4632 76.8815L70.3017 70.8589L71.3753 69.7605L77.5369 75.783L76.4632 76.8815ZM70.7856 72.7507L70.4202 74.232C69.3807 73.8378 68.3361 73.9404 67.5459 74.5266C66.7652 75.1058 66.4419 75.8985 66.9352 76.5635C67.4572 77.267 68.2515 76.8272 69.4686 76.3127C70.6953 75.7911 72.0421 75.2701 73.043 76.6193C73.994 77.9011 73.503 79.5354 72.1056 80.5721C70.9202 81.4515 69.5803 81.5789 68.5815 81.1993L68.9083 79.7466C69.7371 80.0581 70.5553 80.0936 71.3648 79.493C72.1069 78.9425 72.3388 78.1877 71.9313 77.6384C71.4809 77.0312 70.8579 77.2992 69.7657 77.7807C68.4619 78.3595 66.9292 79.0931 65.8139 77.5896C64.8057 76.2308 65.3787 74.5057 66.8051 73.4476C67.9905 72.5681 69.5881 72.2645 70.7856 72.7507ZM64.0082 80.3548C63.2761 78.645 61.8677 77.9165 60.566 78.4739C59.6394 78.8706 59.2073 79.7213 59.3614 80.7519L57.844 80.8664C57.7075 79.267 58.4327 77.9122 60.0323 77.2273C62.1393 76.3252 64.3906 77.3454 65.4202 79.7503C66.4499 82.1551 65.6345 84.4884 63.5275 85.3905C61.9279 86.0754 60.4469 85.6652 59.3837 84.4626L60.5139 83.4435C61.1533 84.2663 62.0671 84.5407 62.9937 84.144C64.2954 83.5867 64.7403 82.0647 64.0082 80.3548ZM56.9911 83.1001C57.3717 85.6883 55.975 87.7373 53.6718 88.0761C51.3686 88.4148 49.441 86.8547 49.0604 84.2666C48.6797 81.6784 50.0764 79.6294 52.3797 79.2906C54.6829 78.9518 56.6104 80.512 56.9911 83.1001ZM50.58 84.043C50.8524 85.8951 52.0379 86.9458 53.4745 86.7345C54.911 86.5232 55.7438 85.1757 55.4714 83.3236C55.199 81.4716 54.0135 80.4209 52.577 80.6322C51.1404 80.8435 50.3076 82.191 50.58 84.043ZM43.6456 79.4425L45.2558 79.6205L47.4935 88.5365L45.8476 88.3545L44.2218 81.4379L41.1124 87.8309L39.538 87.6568L43.6456 79.4425ZM36.6634 86.8918L31.1877 84.8846L31.6503 83.6227L35.7064 85.1096L36.4498 83.0815L33.0359 81.8301L33.4985 80.5682L36.9124 81.8196L37.7467 79.5437L33.6906 78.0569L34.1532 76.795L39.6289 78.8022L36.6634 86.8918ZM29.9132 78.1083L31.7631 75.3321L33.0413 76.1839L28.2636 83.3539L25.3976 81.4442C23.7998 80.3795 23.3003 78.9651 24.2651 77.5171C25.017 76.3887 26.1153 76.0823 27.3302 76.5313L27.3991 72.4243L28.8571 73.3958L28.7548 77.3364L29.9132 78.1083ZM29.1813 79.2068L27.6634 78.1953C26.7446 77.5831 25.9892 77.6565 25.5234 78.3556C25.0509 79.0646 25.2807 79.7801 26.1995 80.3923L27.7174 81.4037L29.1813 79.2068Z",fill:"black"})),s5||(s5=T.createElement("path",{d:"M47.7097 14.3246L45.475 11.007C43.8266 12.1174 43.2434 14.2697 44.1059 16.0603L47.7097 14.3246ZM48.9751 13.4722L52.5375 11.6532C52.0169 10.6336 51.0845 9.886 49.9762 9.59951C48.8678 9.31301 47.
2446899 9.51511 46.7404 10.1546L48.9751 13.4722ZM51.0774 12.5695L52.3974 8.79352L52.3894 8.79073L51.0774 12.5695ZM55.0161 9.54407L57.3184 12.8151C58.9462 11.6693 59.4838 9.50108 58.5799 7.72761L55.0161 9.54407ZM53.7985 10.4011L50.2414 12.2306C50.7706 13.2595 51.7194 14.0089 52.8429 14.2853C53.9664 14.5617 55.1546 14.3381 56.1008 13.6721L53.7985 10.4011ZM51.8079 8.93948L51.4167 12.9203L51.8079 8.93948ZM50.1427 9.93342L46.1619 9.54231L50.1427 9.93342ZM51.843 11.2821L50.581 15.0779L50.5907 15.0811L51.843 11.2821ZM47.7097 14.3246L49.9443 17.6421L51.2097 16.7898L48.9751 13.4722L46.7404 10.1546L45.475 11.007L47.7097 14.3246ZM48.9751 13.4722L45.4126 15.2913C46.4326 17.2888 48.3604 18.9142 50.9117 19.1649L51.3029 15.184L51.694 11.2032C51.9509 11.2284 52.1752 11.3259 52.3348 11.4436C52.4866 11.5555 52.5368 11.6517 52.5375 11.6532L48.9751 13.4722ZM51.3029 15.184L50.9117 19.1649C51.9346 19.2653 53.2646 19.1694 54.5181 18.4587C55.9265 17.6602 56.931 16.2361 57.1039 14.4758L53.1231 14.0847L49.1422 13.6936C49.1813 13.2963 49.3195 12.8404 49.6068 12.4071C49.8908 11.9787 50.2459 11.6846 50.5726 11.4994C51.1781 11.156 51.6385 11.1977 51.694 11.2032L51.3029 15.184ZM53.1231 14.0847L57.1039 14.4758C57.1975 13.5231 57.0355 12.4567 56.4348 11.4666C55.879 10.5506 55.1363 10.0147 54.6277 9.71565C53.8171 9.23897 52.6802 8.89239 52.3974 8.79353L51.0774 12.5695L49.7574 16.3454C50.1855 16.495 50.3257 16.5377 50.556 16.6222C50.7539 16.6949 50.7066 16.6905 50.5725 16.6117C50.4301 16.528 49.9703 16.2347 49.5952 15.6164C49.1751 14.924 49.0914 14.2105 49.1422 13.6936L53.1231 14.0847ZM51.0774 12.5695L52.3894 8.79073C52.0754 8.68172 51.9091 8.61905 51.7909 8.56554C51.6748 8.51297 51.7407 8.52781 51.8766 8.64064C52.036 8.77292 52.2826 9.03335 52.4537 9.43774C52.6266 9.84634 52.6301 10.1839 52.6155 10.3331L48.6346 9.94201L44.6538 9.5509C44.4359 11.769 45.3199 13.5953 46.7677 14.7969C47.8887 15.7271 49.2451 16.1675 49.7654 16.3482L51.0774 12.5695ZM48.6346 9.94201L52.6155 10.3331C52.5974 10.5172 52.5317 10.7488 52.3902 10.9796C52.2512 11.2064 52.079 11.3671 51.9246 11.4692C51.6309 11.6635 51.4742 11.6117 51.5924 11.6233L51.9835 7.64244L52.3746 3.66161C50.7612 3.50309 49.0081 3.80688 47.5118 4.79636C45.9445 5.83281 44.8541 7.51231 44.6538 9.5509L48.6346 9.94201ZM51.9835 7.64244L51.5924 11.6233C51.6948 11.6333 51.7085 11.6573 51.6689 11.6312C51.6393 11.6117 51.5434 11.5392 51.4523 11.3605L55.0161 9.54407L58.5799 7.72761C57.4307 5.47305 55.1004 3.92941 52.3746 3.66161L51.9835 7.64244ZM55.0161 9.54407L52.7138 6.27309L51.4962 7.13014L53.7985 10.4011L56.1008 13.6721L57.3184 12.8151L55.0161 9.54407ZM53.7985 10.4011L57.3556 8.57166C56.5449 6.99548 54.965 5.2304 52.199 4.95865L51.8079 8.93948L51.4167 12.9203C51.3237 12.9112 51.1806 12.8844 51.0102 12.8168C50.838 12.7485 50.6796 12.655 50.5445 12.548C50.2822 12.3403 50.2059 12.1616 50.2414 12.2306L53.7985 10.4011ZM51.8079 8.93948L52.199 4.95865C51.1103 4.85168 49.8047 4.99753 48.607 5.71164C47.3214 6.47822 46.3303 7.82815 46.1619 9.54231L50.1427 9.93342L54.1235 10.3245C54.022 11.358 53.4037 12.1658 52.704 12.583C52.0923 12.9477 51.5859 12.9369 51.4167 12.9203L51.8079 8.93948ZM50.1427 9.93342L46.1619 9.54231C46.0841 10.3342 46.1744 11.2842 46.6544 12.2255C47.1201 13.139 47.7879 13.7195 48.3144 14.0722C49.1628 14.6403 50.2265 14.96 50.581 15.0779L51.843 11.2821L53.1049 7.48641C52.799 7.38473 52.6493 7.33348 52.5453 7.29282C52.4319 7.2485 52.5586 7.28618 52.7663 7.42528C53.0001 7.58185 53.4506 7.94278 53.7814 8.5917C54.1265 9.26849 54.1644 9.90883 54.1235 10.3245L50.1427 9.93342ZM51.843 11.2821L50.5907 15.0811C50.9832 15.2104 51.1901 15.2776 51.38 15.3543C51.5603 15.4271 51.5414 15.4388 51.4386 15.3627C51.3121 15.2689 51.0486 15.0337 50.8544 14.6215C50.6536 14.195 50.6476 13.8353 50.6622 13.6862L54.6431 14.0773L58.6239 14.4684C58.7301 13.3879 58.5892 12.2688 58.0922 11.2134C57.6019 10.1721 56.8809 9.43832 56.2008 8.93448C55.0159 8.05662 53.5538 7.63437 53.0953 7.48322L51.843 11.2821ZM54.6431 14.0773L50.6622 13.6862C50.6796 13.5091 50.7447 13.2844 50.8835 13.0629C51.0188 12.8471 51.181 12.7028 51.3138 12.6169C51.5585 12.4587 51.6587 12.514 51.5183 12.5002L51.1272 16.4811L50.7361 20.4619C53.8042 20.7633 58.1637 19.1523 58.6239 14.4684L54.6431 14.0773ZM51.
2441272 16.4811L51.5183 12.5002C51.4672 12.4952 51.4073 12.4829 51.3451 12.4616C51.2826 12.4403 51.2324 12.4149 51.1984 12.3937C51.1636 12.3719 51.1613 12.3643 51.1813 12.3855C51.2013 12.4067 51.2566 12.4707 51.3135 12.5888L47.7097 14.3246L44.1059 16.0603C45.4022 18.7516 48.2036 20.2131 50.7361 20.4619L51.1272 16.4811ZM57.8505 13.249L54.0717 11.9373L57.8505 13.249ZM59.1291 16.9573L57.8174 20.7362L59.1291 16.9573ZM61.5536 16.0841L64.0165 12.9323C63.1407 12.2478 62.0194 11.9587 60.9218 12.1343C59.8241 12.3098 58.849 12.9343 58.2304 13.8578L61.5536 16.0841ZM62.7526 17.0211L65.9285 19.4529C67.2622 17.7111 66.9441 15.2201 65.2156 13.8693L62.7526 17.0211ZM64.0354 13.3254L64.0159 17.3253C66.2097 17.336 68.0027 15.5778 68.035 13.3842L64.0354 13.3254ZM62.5137 13.318L58.5259 13.0065C58.4393 14.1147 58.8178 15.209 59.5706 16.0269C60.3234 16.8448 61.3826 17.3125 62.4942 17.3179L62.5137 13.318ZM57.8505 13.249L54.0717 11.9373C53.5395 13.4703 53.3933 15.2321 53.9866 16.9166C54.6072 18.6789 55.9624 20.0922 57.8174 20.7362L59.1291 16.9573L60.4408 13.1785C60.6616 13.2551 60.9048 13.396 61.1194 13.6124C61.3319 13.8268 61.4622 14.0602 61.5323 14.2593C61.6682 14.6451 61.5515 14.7848 61.6293 14.5607L57.8505 13.249ZM59.1291 16.9573L57.8174 20.7362C59.0899 21.1779 60.5023 21.2199 61.8533 20.7265C63.1831 20.2408 64.191 19.334 64.8768 18.3103L61.5536 16.0841L58.2304 13.8578C58.3362 13.6998 58.608 13.3949 59.1086 13.2121C59.6305 13.0215 60.1206 13.0674 60.4408 13.1785L59.1291 16.9573ZM61.5536 16.0841L59.0906 19.2358L60.2896 20.1728L62.7526 17.0211L65.2156 13.8693L64.0165 12.9323L61.5536 16.0841ZM62.7526 17.0211L59.5767 14.5892C59.5442 14.6317 59.5395 14.6266 59.5753 14.6004C59.6133 14.5725 59.68 14.5338 59.7716 14.505C59.8643 14.4759 59.9471 14.4683 60.0039 14.4701C60.0581 14.4718 60.0581 14.481 59.9962 14.4595L58.6845 18.2384L57.3728 22.0172C58.9137 22.552 60.5701 22.639 62.1664 22.1382C63.7495 21.6415 65.0123 20.6493 65.9285 19.4529L62.7526 17.0211ZM58.6845 18.2384L59.9962 14.4595C59.9622 14.4478 59.9825 14.4489 60.0222 14.4859C60.0614 14.5225 60.0856 14.5626 60.0958 14.5869C60.1206 14.6459 60.0278 14.4903 60.1782 14.057L56.3994 12.7453L52.6206 11.4336C51.1739 15.6012 52.7502 20.4126 57.3728 22.0172L58.6845 18.2384ZM56.3994 12.7453L60.1782 14.057C60.3287 13.6236 60.4979 13.559 60.4419 13.59C60.4188 13.6027 60.375 13.6192 60.3215 13.6236C60.2674 13.6281 60.2508 13.6164 60.2847 13.6282L61.5964 9.84937L62.9081 6.07055C58.2855 4.46597 54.0672 7.26597 52.6206 11.4336L56.3994 12.7453ZM61.5964 9.84937L60.2847 13.6282C60.3467 13.6497 60.341 13.6569 60.2974 13.6247C60.2516 13.5909 60.1914 13.5336 60.1367 13.4534C60.0826 13.374 60.0543 13.3023 60.0416 13.2569C60.0297 13.2141 60.0366 13.2131 60.0359 13.2665L64.0354 13.3254L68.035 13.3842C68.0572 11.8775 67.6806 10.3163 66.7457 8.94556C65.803 7.56346 64.449 6.60542 62.9081 6.07055L61.5964 9.84937ZM64.0354 13.3254L64.0549 9.32543L62.5332 9.31801L62.5137 13.318L62.4942 17.3179L64.0159 17.3253L64.0354 13.3254ZM62.5137 13.318L66.5016 13.6295C66.5975 12.401 66.3682 11.0648 65.6253 9.85965C64.8706 8.6353 63.7359 7.79327 62.4634 7.35157L61.1517 11.1304L59.8401 14.9092C59.5198 14.7981 59.1067 14.5304 58.8152 14.0575C58.5355 13.6038 58.511 13.1961 58.5259 13.0065L62.5137 13.318ZM61.1517 11.1304L62.4634 7.35157C60.6084 6.70767 58.669 6.97734 57.0899 7.97612C55.5806 8.93083 54.6038 10.4043 54.0717 11.9373L57.8505 13.249L61.6293 14.5607C61.7071 14.3366 61.7121 14.5185 61.3665 14.7371C61.188 14.85 60.9411 14.9525 60.6415 14.989C60.339 15.0259 60.0608 14.9858 59.8401 14.9092L61.1517 11.1304ZM65.9775 17.8238L68.1824 14.4864C66.3393 13.2686 63.8579 13.7756 62.6401 15.6188L65.9775 17.8238ZM64.1385 20.6072L61.9335 23.9445C62.8187 24.5293 63.8998 24.7386 64.9392 24.5262C65.9786 24.3138 66.8911 23.6973 67.4759 22.8121L64.1385 20.6072ZM62.857 19.7605L59.5196 17.5555C58.3018 19.3987 58.8088 21.88 60.652 23.0978L62.857 19.7605ZM67.6065 12.5717L69.8115 9.23437C67.9683 8.01659 65.4869 8.52358 64.2691 10.3668L6
2447.6065 12.5717ZM68.5667 19.3906L69.9387 15.6333C68.7206 15.1885 67.3626 15.3618 66.2952 16.0981C65.2279 16.8345 64.5837 18.0426 64.567 19.3392L68.5667 19.3906ZM68.5138 23.4979L66.3088 26.8353C67.5295 27.6417 69.093 27.7175 70.3858 27.0328C71.6787 26.3481 72.4946 25.0122 72.5135 23.5494L68.5138 23.4979ZM67.052 22.5321L63.053 22.444C63.0227 23.8182 63.7002 25.1118 64.8471 25.8695L67.052 22.5321ZM67.1389 18.5911L71.1379 18.6792C71.1682 17.305 70.4907 16.0115 69.3438 15.2537L67.1389 18.5911ZM66.7051 16.7225L63.3677 14.5175C62.7829 15.4026 62.5737 16.4838 62.7861 17.5232C62.9984 18.5626 63.615 19.475 64.5001 20.0598L66.7051 16.7225ZM70.3663 17.5593L67.0289 15.3543L70.3663 17.5593ZM68.1604 14.5198L70.3654 11.1824C68.5222 9.96464 66.0408 10.4716 64.823 12.3148L68.1604 14.5198ZM65.9775 17.8238L62.6401 15.6188L60.8011 18.4022L64.1385 20.6072L67.4759 22.8121L69.3148 20.0288L65.9775 17.8238ZM64.1385 20.6072L66.3435 17.2698L65.0619 16.4231L62.857 19.7605L60.652 23.0978L61.9335 23.9445L64.1385 20.6072ZM62.857 19.7605L66.1943 21.9654L70.9439 14.7767L67.6065 12.5717L64.2691 10.3668L59.5196 17.5555L62.857 19.7605ZM67.6065 12.5717L65.4015 15.9091L68.275 17.8076L70.48 14.4702L72.6849 11.1329L69.8115 9.23437L67.6065 12.5717ZM70.48 14.4702L68.275 17.8076C68.6088 18.0282 68.3518 17.9786 68.1935 17.4678C68.1093 17.1962 68.0904 16.8971 68.1396 16.6191C68.1864 16.3546 68.2765 16.2089 68.2905 16.1878L71.6278 18.3928L74.9652 20.5978C75.9928 19.0424 76.4529 17.0941 75.8351 15.1002C75.2636 13.2556 73.9531 11.9707 72.6849 11.1329L70.48 14.4702ZM71.6278 18.3928L68.2905 16.1878C68.332 16.125 68.5708 15.8249 69.0724 15.6671C69.5579 15.5143 69.8975 15.6183 69.9387 15.6333L68.5667 19.3906L67.1947 23.148C68.4524 23.6073 69.9489 23.778 71.4739 23.2981C73.0151 22.8131 74.1762 21.792 74.9652 20.5978L71.6278 18.3928ZM68.5667 19.3906L64.567 19.3392L64.5141 23.4464L68.5138 23.4979L72.5135 23.5494L72.5663 19.4421L68.5667 19.3906ZM68.5138 23.4979L70.7188 20.1605L69.257 19.1947L67.052 22.5321L64.8471 25.8695L66.3088 26.8353L68.5138 23.4979ZM67.052 22.5321L71.0511 22.6202L71.1379 18.6792L67.1389 18.5911L63.1398 18.503L63.053 22.444L67.052 22.5321ZM67.1389 18.5911L69.3438 15.2537L68.1824 14.4864L65.9775 17.8238L63.7725 21.1612L64.9339 21.9285L67.1389 18.5911ZM66.7051 16.7225L64.5001 20.0598L66.022 21.0653L68.2269 17.7279L70.4319 14.3906L68.9101 13.3851L66.7051 16.7225ZM68.2269 17.7279L66.022 21.0653C66.9007 21.6459 68.2184 22.2547 69.8057 22.1204C71.5793 21.9703 72.9111 20.9639 73.7037 19.7643L70.3663 17.5593L67.0289 15.3543C67.1706 15.1399 67.4179 14.8488 67.8098 14.5979C68.2149 14.3387 68.6741 14.1876 69.1311 14.1489C69.57 14.1117 69.9133 14.1852 70.1213 14.2528C70.3243 14.3188 70.4284 14.3882 70.4319 14.3906L68.2269 17.7279ZM70.3663 17.5593L73.7037 19.7643C74.4918 18.5714 74.9097 16.9456 74.3403 15.2384C73.8346 13.7218 72.7482 12.7567 71.8872 12.1879L69.6822 15.5253L67.4773 18.8626C67.4755 18.8615 67.4516 18.8456 67.4121 18.8122C67.3727 18.7789 67.3121 18.7233 67.2405 18.642C67.0984 18.4804 66.8925 18.1928 66.7513 17.7694C66.6038 17.3273 66.5621 16.8389 66.6431 16.3601C66.7212 15.8985 66.8931 15.5599 67.0289 15.3543L70.3663 17.5593ZM69.6822 15.5253L71.8872 12.1879L70.3654 11.1824L68.1604 14.5198L65.9554 17.8572L67.4773 18.8626L69.6822 15.5253ZM68.1604 14.5198L64.823 12.3148L63.3677 14.5175L66.7051 16.7225L70.0425 18.9274L71.4978 16.7248L68.1604 14.5198ZM76.4847 25.8374L73.8108 22.8625L76.4847 25.8374ZM72.153 21.018L74.8269 23.9929C75.1621 23.6916 75.335 23.7196 75.2694 23.7193C75.2433 23.7192 75.2019 23.7122 75.1615 23.6939C75.121 23.6754 75.1236 23.6648 75.1595 23.7047L78.1344 21.0308L81.1094 18.3569C77.8395 14.719 72.7912 15.0661 69.4791 18.0431L72.153 21.018ZM78.1344 21.0308L75.1595 23.7047C75.1954 23.7447 75.1846 23.7462 75.1705 23.7039C75.1566 23.6618 75.1541 23.6199 75.1567 23.5939C75.1633 23.5286 75.1728 23.7035 74.8376 24.0048L77.5115 26.9798L80.1854 29.9547C83.4975 26.9778 84.3792 21.9949 81.1094 18.3569L78.1344 21.0308ZM77.5115 26.9798L74.8376 24.0048C74.5024 24.3061 74.3295 24.2781 74.3951 24.2784C74.4212 24.2786 74.4627 24.2856 74.503 24.3039C74.5435 24.3223 74.5409 24.3329 74.505 24.293L71.5301 26.9669L68.5551 29.6408C71.825 33.2788 76.8733 32.9316 80.1854 29.9547L77.5115 26.9798ZM71.5301 26.9669L74.505 24.293C74.4691 24.2531 74.48 24.2516 74.494 24.2939C74.5079 24.3359 74.5105 24.3779 74.5078 24.4038C74.5012 24.4691 74.4917 24.2942 74.8269 23.9929L72.153 21.018L69.4791 18.0431C66.167 21.02 65.2853 26.0029 68.5551 29.6408L71.5301 26.9669ZM76.4847 25.8374L79.1586 28.8123C80.3741 27.7199 81.3614 26.2328 81.6428 24.4449C81.9371 22.5751 81.3934 20.7015 80.1009 19.2634L77.1259 21.9373L74.151 24.6112C74.0152 24.4601 73.8779 24.2402 73.7951 23.9603C73.7127 23.6813 73.7062 23.4164 73.7401 23.2011C73.8063 22.7805 73.9877 22.7035 73.8108 22.8625L76.4847 25.8374ZM77.1259 21.9373L80.1009 19.2634C78.8083 17.8253 77.003 17.0856 75.1125 17.1795C73.3049 17.2693 71.7213 18.093 70.5059 19.1854L73.1798 22.1604L75.8537 25.1353C76.0305 24.9764 75.9347 25.1486 75.5094 25.1697C75.2917 25.1805 75.029 25.1459 74.7604 25.0342C74.4908 24.9222 74.2868 24.7623 74.151 24.6112L77.1259 21.9373ZM73.1798 22.1604L70.5059 19.1854C69.2904 20.2779 68.3031 21.765 68.0217 23.5528C67.7274 25.4226 68.2711 27.2963 69.5636 28.7344L72.5386 26.0605L75.5135 23.3866C75.6493 23.5376 75.7866 23.7575 75.8694 24.0374C75.9519 24.3164 75.9583 24.5813 75.9245 24.7966C75.8583 25.2172 75.6768 25.2942 75.8537 25.1353L73.1798 22.1604ZM72.5386 26.0605L69.5636 28.7344C70.8562 30.1725 72.6615 30.9121 74.552 30.8182C76.3596 30.7284 77.9432 29.9048 79.1586 28.8123L76.4847 25.8374L73.8108 22.8625C73.634 23.0214 73.7298 22.8492 74.1551 22.8281C74.3728 22.8173 74.6355 22.8519 74.9041 22.9635C75.1737 23.0756 75.3777 23.2355 75.5135 23.3866L72.5386 26.0605ZM74.9263 30.8412L73.045 27.3112C72.1088 27.8101 71.4092 28.6605 71.1 29.6753C70.7908 30.6901 70.8974 31.7862 71.3963 32.7224L74.9263 30.8412ZM82.5299 26.7889L86.0599 24.9077C85.0209 22.9581 82.5982 22.2199 80.6487 23.2589L82.5299 26.7889ZM83.2523 28.1444L85.1336 31.6744C86.0698 31.1755 86.7695 30.3251 87.0787 29.3103C87.3878 28.2955 87.2812 27.1994 86.7823 26.2632L83.2523 28.1444ZM76.8348 31.5646L74.9535 28.0346C74.0173 28.5335 73.3176 29.3839 73.0084 30.3987C72.6993 31.4136 72.8059 32.5096 73.3048 33.4458L76.8348 31.5646ZM78.7424 35.144L80.6236 38.674C82.5732 37.635 83.3114 35.2123 82.2724 33.2627L78.7424 35.144ZM77.5563 35.7761L74.0263 37.6574C75.0653 39.6069 77.488 40.3451 79.4376 39.3061L77.5563 35.7761ZM74.9263 30.8412L76.8076 34.3712L84.4112 30.3189L82.5299 26.7889L80.6487 23.2589L73.045 27.3112L74.9263 30.8412ZM82.5299 26.7889L78.9999 28.6702L79.7223 30.0257L83.2523 28.1444L86.7823 26.2632L86.0599 24.9077L82.5299 26.7889ZM83.2523 28.1444L81.3711 24.6144L74.9535 28.0346L76.8348 31.5646L78.716 35.0946L85.1336 31.6744L83.2523 28.1444ZM76.8348 31.5646L73.3048 33.4458L75.2124 37.0252L78.7424 35.144L82.2724 33.2627L80.3648 29.6833L76.8348 31.5646ZM78.7424 35.144L76.8611 31.614L75.675 32.2461L77.5563 35.7761L79.4376 39.3061L80.6236 38.674L78.7424 35.144ZM77.5563 35.7761L81.0863 33.8948L78.4563 28.9599L74.9263 30.8412L71.3963 32.7224L74.0263 37.6574L77.5563 35.7761ZM77.8629 36.7069L76.7449 32.8663C74.6238 33.4837 73.4048 35.7038 74.0223 37.8249L77.8629 36.7069ZM86.1355 34.2987L89.9761 33.1808C89.6796 32.1622 88.9906 31.3031 88.0607 30.7925C87.1308 30.2819 86.0361 30.1616 85.
2440175 30.4582L86.1355 34.2987ZM86.5648 35.7735L87.6828 39.6141C89.8039 38.9967 91.0228 36.7766 90.4054 34.6555L86.5648 35.7735ZM79.5826 37.806L78.4646 33.9654C76.3435 34.5829 75.1246 36.8029 75.742 38.924L79.5826 37.806ZM80.7163 41.7004L81.8342 45.541C83.9553 44.9235 85.1743 42.7035 84.5568 40.5824L80.7163 41.7004ZM79.4258 42.076L75.5852 43.194C75.8817 44.2126 76.5707 45.0717 77.5006 45.5823C78.4306 46.0928 79.5252 46.2131 80.5438 45.9166L79.4258 42.076ZM77.8629 36.7069L78.9809 40.5475L87.2535 38.1393L86.1355 34.2987L85.0175 30.4582L76.7449 32.8663L77.8629 36.7069ZM86.1355 34.2987L82.2949 35.4167L82.7242 36.8915L86.5648 35.7735L90.4054 34.6555L89.9761 33.1808L86.1355 34.2987ZM86.5648 35.7735L85.4468 31.9329L78.4646 33.9654L79.5826 37.806L80.7006 41.6466L87.6828 39.6141L86.5648 35.7735ZM79.5826 37.806L75.742 38.924L76.8757 42.8184L80.7163 41.7004L84.5568 40.5824L83.4232 36.688L79.5826 37.806ZM80.7163 41.7004L79.5983 37.8598L78.3078 38.2354L79.4258 42.076L80.5438 45.9166L81.8342 45.541L80.7163 41.7004ZM79.4258 42.076L83.2664 40.958L81.7035 35.5889L77.8629 36.7069L74.0223 37.8249L75.5852 43.194L79.4258 42.076ZM87.0747 51.9665L83.0748 51.9522C83.071 53.0131 83.4888 54.032 84.2362 54.7848C84.9837 55.5376 85.9996 55.9627 87.0604 55.9665L87.0747 51.9665ZM87.0846 49.1945L91.0846 49.2088C91.0884 48.148 90.6706 47.1291 89.9232 46.3762C89.1757 45.6234 88.1598 45.1983 87.0989 45.1946L87.0846 49.1945ZM79.8127 49.1685L75.8127 49.1542C75.8089 50.2151 76.2267 51.234 76.9742 51.9868C77.7216 52.7397 78.7375 53.1647 79.7984 53.1685L79.8127 49.1685ZM79.8182 47.6325L79.8325 43.6326C78.7716 43.6288 77.7527 44.0466 76.9999 44.794C76.2471 45.5415 75.822 46.5574 75.8182 47.6182L79.8182 47.6325ZM87.0901 47.6585L87.0758 51.6585C88.1367 51.6623 89.1556 51.2445 89.9084 50.4971C90.6613 49.7496 91.0863 48.7337 91.0901 47.6728L87.0901 47.6585ZM87.1001 44.8866L87.1143 40.8866C84.9052 40.8787 83.108 42.6631 83.1001 44.8723L87.1001 44.8866ZM88.444 44.8914L92.444 44.9057C92.4519 42.6965 90.6675 40.8993 88.4583 40.8914L88.444 44.8914ZM88.4187 51.9713L88.4044 55.9713C89.4653 55.9751 90.4842 55.5573 91.237 54.8098C91.9899 54.0624 92.4149 53.0465 92.4187 51.9856L88.4187 51.9713ZM87.0747 51.9665L91.0747 51.9808L91.0846 49.2088L87.0846 49.1945L83.0847 49.1802L83.0748 51.9522L87.0747 51.9665ZM87.0846 49.1945L87.0989 45.1946L79.827 45.1686L79.8127 49.1685L79.7984 53.1685L87.0704 53.1945L87.0846 49.1945ZM79.8127 49.1685L83.8127 49.1828L83.8182 47.6468L79.8182 47.6325L75.8182 47.6182L75.8127 49.1542L79.8127 49.1685ZM79.8182 47.6325L79.8039 51.6325L87.0758 51.6585L87.0901 47.6585L87.1044 43.6586L79.8325 43.6326L79.8182 47.6325ZM87.0901 47.6585L91.0901 47.6728L91.1 44.9009L87.1001 44.8866L83.1001 44.8723L83.0902 47.6442L87.0901 47.6585ZM87.1001 44.8866L87.0858 48.8865L88.4297 48.8913L88.444 44.8914L88.4583 40.8914L87.1143 40.8866L87.1001 44.8866ZM88.444 44.8914L84.4441 44.8771L84.4188 51.957L88.4187 51.9713L92.4187 51.9856L92.444 44.9057L88.444 44.8914ZM88.4187 51.9713L88.433 47.9713L87.089 47.9665L87.0747 51.9665L87.0604 55.9665L88.4044 55.9713L88.4187 51.9713ZM81.9341 60.6975L80.9575 64.5765L81.9341 60.6975ZM82.3091 59.208L81.3325 63.0869L82.3091 59.208ZM85.9033 57.5637L82.0243 56.5872L85.9033 57.5637ZM79.9219 56.0579L76.043 55.0813L79.9219 56.0579ZM83.8911 52.9241L82.9146 56.803C83.3517 56.9131 83.4249 57.0722 83.3885 57.0175C83.3741 56.9958 83.3568 56.9575 83.3495 56.9138C83.3421 56.8699 83.3524 56.8662 83.3393 56.9182L87.2183 57.8948L91.0972 58.8714C92.2914 54.1279 89.1863 50.1324 84.8677 49.0451L83.8911 52.9241ZM87.2183 57.8948L83.3393 56.9182C83.3262 56.9703 83.3189 56.9621 83.3462 56.9269C83.3733 56.8919 83.4067 56.8663 83.4297 56.854C83.4876 56.8231 83.3477 56.928
2446 82.9107 56.8186L81.9341 60.6975L80.9575 64.5765C85.2761 65.6637 89.903 63.6148 91.0972 58.8714L87.2183 57.8948ZM81.9341 60.6975L82.9107 56.8186C82.4736 56.7085 82.4003 56.5494 82.4367 56.604C82.4511 56.6258 82.4685 56.6641 82.4758 56.7078C82.4831 56.7517 82.4728 56.7554 82.4859 56.7034L78.607 55.7268L74.728 54.7502C73.5338 59.4937 76.639 63.4892 80.9575 64.5765L81.9341 60.6975ZM78.607 55.7268L82.4859 56.7034C82.499 56.6513 82.5063 56.6595 82.4791 56.6947C82.4519 56.7297 82.4185 56.7553 82.3955 56.7675C82.3376 56.7985 82.4775 56.693 82.9146 56.803L83.8911 52.9241L84.8677 49.0451C80.5491 47.9579 75.9222 50.0068 74.728 54.7502L78.607 55.7268ZM82.3091 59.208L81.3325 63.0869C82.9173 63.4859 84.7023 63.4754 86.3429 62.7112C88.0587 61.9121 89.3102 60.4154 89.7822 58.5403L85.9033 57.5637L82.0243 56.5872C82.0739 56.3902 82.1798 56.1535 82.3659 55.9286C82.5514 55.7045 82.7676 55.5513 82.9651 55.4593C83.3511 55.2795 83.5162 55.3871 83.2857 55.329L82.3091 59.208ZM85.9033 57.5637L89.7822 58.5403C90.2543 56.6652 89.8608 54.7544 88.7279 53.238C87.6447 51.7881 86.0775 50.9336 84.4927 50.5346L83.5161 54.4136L82.5396 58.2926C82.7701 58.3506 82.5738 58.3672 82.3189 58.0261C82.1885 57.8514 82.0706 57.6141 82.0133 57.3289C81.9559 57.0427 81.9747 56.7841 82.0243 56.5872L85.9033 57.5637ZM83.5161 54.4136L84.4927 50.5346C82.9079 50.1357 81.1229 50.1462 79.4823 50.9103C77.7665 51.7095 76.5151 53.2062 76.043 55.0813L79.9219 56.0579L83.8009 57.0344C83.7513 57.2314 83.6455 57.4681 83.4594 57.6929C83.2739 57.9171 83.0577 58.0703 82.8601 58.1623C82.4741 58.3421 82.309 58.2345 82.5396 58.2926L83.5161 54.4136ZM79.9219 56.0579L76.043 55.0813C75.5709 56.9564 75.9645 58.8672 77.0974 60.3836C78.1805 61.8335 79.7477 62.688 81.3325 63.0869L82.3091 59.208L83.2857 55.329C83.0551 55.271 83.2515 55.2544 83.5063 55.5955C83.6367 55.7701 83.7546 56.0075 83.8119 56.2927C83.8693 56.5789 83.8505 56.8375 83.8009 57.0344L79.9219 56.0579ZM76.1991 62.9134L78.4462 59.6042C77.5686 59.0083 76.4902 58.7853 75.4482 58.9845C74.4061 59.1837 73.4859 59.7886 72.89 60.6662L76.1991 62.9134ZM83.327 67.7537L86.6361 70.0009C87.8772 68.1733 87.4017 65.6856 85.5741 64.4446L83.327 67.7537ZM76.4484 64.8959L78.6956 61.5867C77.8179 60.9907 76.7395 60.7678 75.6975 60.967C74.6555 61.1661 73.7353 61.7711 73.1393 62.6487L76.4484 64.8959ZM81.3923 68.2531L84.7014 70.5002C85.9425 68.6726 85.467 66.185 83.6394 64.944L81.3923 68.2531ZM76.1991 62.9134L73.952 66.2225L81.0798 71.0629L83.327 67.7537L85.5741 64.4446L78.4462 59.6042L76.1991 62.9134ZM83.327 67.7537L80.0178 65.5066L78.3999 67.8892L81.709 70.1363L85.0182 72.3834L86.6361 70.0009L83.327 67.7537ZM81.709 70.1363L78.3999 67.8892C78.2584 68.0975 78.1562 68.178 78.1298 68.1967C78.1092 68.2113 78.1388 68.1868 78.2108 68.173C78.2827 68.1593 78.321 68.1708 78.3003 68.1657C78.273 68.1591 78.1558 68.1247 77.9586 67.9908L75.7115 71.2999L73.4643 74.6091C75.2553 75.8253 77.4415 76.4649 79.7127 76.0308C81.9855 75.5964 83.7895 74.1927 85.0182 72.3834L81.709 70.1363ZM75.7115 71.2999L77.9586 67.9908C77.7614 67.8569 77.6862 67.7606 77.67 67.7377C77.6577 67.7203 77.6824 67.7517 77.6961 67.8235C77.7099 67.8956 77.6981 67.9322 77.7041 67.9075C77.7117 67.8762 77.7488 67.7515 77.8903 67.5431L74.5812 65.296L71.272 63.0488C70.0434 64.8581 69.404 67.0526 69.8384 69.3254C70.2725 71.5967 71.6733 73.3928 73.4643 74.6091L75.7115 71.2999ZM74.5812 65.296L77.8903 67.5431L79.5082 65.1605L76.1991 62.9134L72.89 60.6662L71.272 63.0488L74.5812 65.296ZM76.4484 64.8959L73.1393 62.6487L72.364 63.7904L75.6732 66.0375L78.9823 68.2847L79.7576 67.143L76.4484 64.8959ZM75.6732 66.0375L72.364 63.7904C71.3488 65.2855 70.8335 67.1581 71.2826 69.1097C71.72 71.01 72.9421 72.4268 74.3137 73.3582L76.5609 70.0491L78.808 66.7399C78.6806 66.6534 78.96 66.799 79.0788 67.3154C79.136 67.5636 79.1299 67.8047 79.0861 68.0032C79.0441 68.1934 78.9809 68.2867 78.9823 68.2847L75.6732 66.0375ZM76.5609 70.0491L74.3137 73.3582C75.6857 74.2899 77.4584 74.9101 79.397 74.6083C81.3846 74.2987 82.9253 73.1158 83.9329 71.6319L80.6238 69.3848L77.3146 67.1377C77.307 67.1489 77.3648 67.0605 77.5223 66.953C77.6874 66.8403 77.9096 66.7435 78.166 66.7035C78.7015 66.6201 78.945 66.833 78.808 66.7399L76.5609 70.0491ZM80.6238 69.3848L83.9329 71.6319L84.7014 70.5002L81.3923 68.2531L78.0831 66.006L77.3146 67.1377L80.6238 69.3848ZM81.3923 68.2531L83.6394 64.944L78.6956 61.5867L76.4484 64.8959L74.2013 68.205L79.1451 71.5622L81.3923 68.2531ZM76.4632 76.8815L73.6672 79.742C75.247 81.2861 77.7795 81.2572 79.3237 79.6774L76.4632 76.8815ZM70.3017 70.8589L67.4412 68.0629C65.897 69.6428 65.9259 72.1753 67.50
24457 73.7194L70.3017 70.8589ZM71.3753 69.7605L74.1713 66.9C72.5915 65.3558 70.059 65.3847 68.5148 66.9645L71.3753 69.7605ZM77.5369 75.783L80.3974 78.579C81.1389 77.8203 81.5487 76.7982 81.5366 75.7374C81.5245 74.6766 81.0915 73.6641 80.3328 72.9225L77.5369 75.783ZM76.4632 76.8815L79.2592 74.0209L73.0976 67.9984L70.3017 70.8589L67.5057 73.7194L73.6672 79.742L76.4632 76.8815ZM70.3017 70.8589L73.1622 73.6549L74.2358 72.5565L71.3753 69.7605L68.5148 66.9645L67.4412 68.0629L70.3017 70.8589ZM71.3753 69.7605L68.5793 72.621L74.7409 78.6435L77.5369 75.783L80.3328 72.9225L74.1713 66.9L71.3753 69.7605ZM77.5369 75.783L74.6763 72.987L73.6027 74.0855L76.4632 76.8815L79.3237 79.6774L80.3974 78.579L77.5369 75.783ZM70.7856 72.7507L74.6692 73.7085C75.1451 71.7788 74.132 69.7924 72.2905 69.0446L70.7856 72.7507ZM70.4202 74.232L69.0019 77.9721C70.0723 78.378 71.2653 78.3059 72.2789 77.774C73.2926 77.242 74.0298 76.3013 74.3039 75.1898L70.4202 74.232ZM66.9352 76.5635L63.7228 78.9468L66.9352 76.5635ZM69.4686 76.3127L71.0259 79.9971L71.0338 79.9937L69.4686 76.3127ZM68.5815 81.1993L64.679 80.3215C64.2422 82.2635 65.2997 84.2312 67.1604 84.9384L68.5815 81.1993ZM68.9083 79.7466L70.3157 76.0024C69.2326 75.5953 68.0263 75.6771 67.0082 76.2267C65.99 76.7764 65.2597 77.7399 65.0058 78.8688L68.9083 79.7466ZM71.3648 79.493L68.9815 76.2806L71.3648 79.493ZM69.7657 77.7807L68.152 74.1206L68.1428 74.1247L69.7657 77.7807ZM70.7856 72.7507L66.9019 71.7929L66.5366 73.2742L70.4202 74.232L74.3039 75.1898L74.6692 73.7085L70.7856 72.7507ZM70.4202 74.232L71.8386 70.4919C69.7415 69.6967 67.2215 69.7867 65.1626 71.3142L67.5459 74.5266L69.9291 77.7391C69.7218 77.893 69.4901 77.9713 69.2929 77.9913C69.1053 78.0103 69.0035 77.9727 69.0019 77.9721L70.4202 74.232ZM67.5459 74.5266L65.1626 71.3142C64.3372 71.9265 63.4161 72.8907 62.9644 74.2591C62.4569 75.7965 62.669 77.5263 63.7228 78.9468L66.9352 76.5635L70.1477 74.1802C70.3856 74.5009 70.5893 74.9315 70.6674 75.4455C70.7446 75.9536 70.679 76.41 70.5612 76.7666C70.3431 77.4277 69.9739 77.7059 69.9291 77.7391L67.5459 74.5266ZM66.9352 76.5635L63.7228 78.9468C64.2932 79.7156 65.1293 80.397 66.2393 80.7273C67.2662 81.0329 68.1764 80.9313 68.7541 80.8114C69.6749 80.6203 70.75 80.1137 71.0259 79.9971L69.4686 76.3127L67.9112 72.6283C67.4935 72.8049 67.361 72.8675 67.1335 72.9594C66.9381 73.0384 66.9761 73.0099 67.1283 72.9783C67.2901 72.9447 67.8278 72.8533 68.5209 73.0596C69.2972 73.2906 69.8383 73.7631 70.1477 74.1802L66.9352 76.5635ZM69.4686 76.3127L71.0338 79.9937C71.3396 79.8637 71.5049 79.7985 71.6285 79.7587C71.7498 79.7197 71.691 79.753 71.5145 79.7607C71.3076 79.7697 70.95 79.7423 70.5516 79.5575C70.1492 79.3708 69.9199 79.123 69.8306 79.0026L73.043 76.6193L76.2555 74.2361C74.9276 72.4461 73.0461 71.6864 71.1664 71.7682C69.7111 71.8316 68.4102 72.4161 67.9034 72.6316L69.4686 76.3127ZM73.043 76.6193L69.8306 79.0026C69.7204 78.8541 69.6135 78.6383 69.5634 78.3724C69.5141 78.1109 69.5337 77.8762 69.5796 77.6969C69.6668 77.3557 69.8177 77.2888 69.7223 77.3596L72.1056 80.5721L74.4889 83.7846C75.7909 82.8186 76.886 81.4163 77.3303 79.6784C77.7957 77.8579 77.476 75.8812 76.2555 74.2361L73.043 76.6193ZM72.1056 80.5721L69.7223 77.3596C69.6397 77.4209 69.6134 77.4124 69.6603 77.4051C69.6953 77.3997 69.8151 77.389 70.0025 77.4603L68.5815 81.1993L67.1604 84.9384C69.5259 85.8374 72.2892 85.4165 74.4889 83.7846L72.1056 80.5721ZM68.5815 81.1993L72.484 82.0772L72.8107 80.6245L68.9083 79.7466L65.0058 78.8688L64.679 80.3215L68.5815 81.1993ZM68.9083 79.7466L67.5009 83.4908C69.16 84.1145 71.516 84.3615 73.7481 82.7055L71.3648 79.493L68.9815 76.2806C69.0566 76.2248 69.1806 76.1485 69.3523 76.0842C69.5257 76.0192 69.706 75.9822 69.8779 75.9707C70.2117 75.9485 70.3883 76.0297 70.3157 76.0024L68.9083 79.7466ZM71.3648 79.493L73.7481 82.7055C74.6267 82.0537 75.4961 81.069 75.9041 79.7356C76.3421 78.3042 76.17 76.6384 75.1438 75.2551L71.9313 77.6384L68.7188 80.0216C68.1001 79.1877 68.0159 78.1739 68.2542 77.3949C68.4626 76.7139 68.8451 76.3818 68.9815 76.2806L71.3648 79.493ZM71.9313 77.6384L75.1438 75.2551C74.6697 74.616 73.9648 73.9728 72.9771 73.5975C72.0185 73.2333 71.1339 73.2516 70.5069 73.3439C69.4968 73.4925 68.4939 73.9699 68.152 74.1206L69.7657 77.7807L71.3794 81.4407C71.6743 81.3107 71.8197 81.2481 71.9241 81.2084C72.0379 81.1651 71.9187 81.2223 71.6714 81.2587C71.393 81.2996 70.8168 81.3347 70.1359 81.076C69.4257 80.8062 68.9677 80.3571 68.7188 80.0216L71.9313 77.6384ZM69.7657 77.7807L68.1428 74.1247C67.765 74.2924 67.5665 74.3816 67.3744 74.4522C67.1919 74.5194 67.198 74.498 67.3253 74.4854C67.482 74.4699 67.8352 74.4672 68.2559 74.6424C68.6911 74.8236 68.9371 75.0861 69.0263 75.2064L65.8139 77.5896L62.6014 79.9729C63.2483 80.8449 64.1042 81.5795 65.1812 82.0279C66.2437 82.4703 67.2707 82.5299 68.1129 82.4466C69.5805 82.3014 70.9474 81.6325 71.3887 81.4366L69.7657 77.7807ZM65.8139 77.5896L69.0263 75.2064C69.1324 75.3493 69.2351 75.5595 69.2809 75.8168C69.3256 76.0676 69.3023 76.2834 69.2616 76.4363C69.1865 76.7178 69.0751 76.7441 69.1884 76.66L66.8051 73.4476L64.4218 70.2351C61.9459 72.072 59.7972 76.1931 62.6014 79.9729L65.8139 77.5896ZM66.8051 73.4476L69.1884 76.66C69.2296 76.6295 69.2823 76.5984 69.3427 76.5723C69.4033 76.5462 69.4575 76.5313 69.497 76.5242C69.5373 76.5169 69.5442 76.521 69.5152 76.5188C69.4861 76.5165 69.4021 76.5061 69.2807 76.4568L70.7856 72.7507L72.2905 69.0446C69.5227 67.9207 66.4654 68.7189 64.4218 70.2351L66.8051 73.4476ZM59.3614 80.7519L59.6624 84.7405C60.7708 84.6569 61.7945 84.1158 62.4879 83.2469C63.1812 82.3781 63.4818 81.2599 63.3
244174 80.1605L59.3614 80.7519ZM57.844 80.8664L53.8585 81.2066C54.0451 83.3924 55.9574 85.0201 58.145 84.855L57.844 80.8664ZM59.3837 84.4626L56.705 81.492C55.0758 82.9611 54.9339 85.4683 56.3869 87.1119L59.3837 84.4626ZM60.5139 83.4435L63.6721 80.9889C62.99 80.1112 61.9733 79.5569 60.8661 79.4591C59.7588 79.3612 58.6607 79.7285 57.8351 80.4729L60.5139 83.4435ZM62.9937 84.144L61.4193 80.4669L62.9937 84.144ZM64.0082 80.3548L67.6853 78.7804C67.0466 77.2886 65.9685 75.8876 64.3957 75.0415C62.7503 74.1564 60.7967 74.0239 58.9916 74.7967L60.566 78.4739L62.1404 82.151C61.9256 82.243 61.6509 82.3025 61.3466 82.287C61.0451 82.2717 60.7916 82.1868 60.6057 82.0868C60.2455 81.893 60.2377 81.7112 60.3311 81.9292L64.0082 80.3548ZM60.566 78.4739L58.9916 74.7967C57.7534 75.3269 56.6807 76.2467 56.0141 77.5211C55.3579 78.7756 55.2232 80.1247 55.4054 81.3433L59.3614 80.7519L63.3174 80.1605C63.3456 80.3485 63.3499 80.757 63.1028 81.2292C62.8453 81.7215 62.452 82.0176 62.1404 82.151L60.566 78.4739ZM59.3614 80.7519L59.0604 76.7632L57.543 76.8777L57.844 80.8664L58.145 84.855L59.6624 84.7405L59.3614 80.7519ZM57.844 80.8664L61.8295 80.5261C61.8249 80.4729 61.8319 80.4734 61.823 80.5169C61.8136 80.5631 61.7905 80.6367 61.7421 80.7196C61.6931 80.8035 61.6371 80.8649 61.5938 80.9018C61.5526 80.937 61.5464 80.9303 61.6067 80.9044L60.0323 77.2273L58.4579 73.5502C56.9584 74.1922 55.6752 75.2431 54.8321 76.6882C53.996 78.1213 53.7303 79.7051 53.8585 81.2066L57.844 80.8664ZM60.0323 77.2273L61.6067 80.9044C61.6397 80.8903 61.6239 80.9031 61.5696 80.9025C61.516 80.9018 61.4711 80.8884 61.4472 80.8774C61.3892 80.8505 61.5625 80.903 61.7431 81.3247L65.4202 79.7503L69.0974 78.1759C67.361 74.1204 62.9561 71.6242 58.4579 73.5502L60.0323 77.2273ZM65.4202 79.7503L61.7431 81.3247C61.9237 81.7464 61.842 81.9081 61.8626 81.8475C61.8711 81.8226 61.8924 81.7808 61.9289 81.7416C61.9659 81.7018 61.9861 81.6993 61.9531 81.7134L63.5275 85.3905L65.1019 89.0677C69.6001 87.1417 70.8337 82.2313 69.0974 78.1759L65.4202 79.7503ZM63.5275 85.3905L61.9531 81.7134C61.8928 81.7392 61.8921 81.7301 61.9461 81.7245C62.0026 81.7187 62.0857 81.7205 62.1802 81.743C62.2736 81.7652 62.3429 81.7992 62.3828 81.8243C62.4204 81.8479 62.416 81.8533 62.3806 81.8133L59.3837 84.4626L56.3869 87.1119C57.385 88.2409 58.7145 89.1418 60.3287 89.5258C61.9562 89.913 63.6024 89.7097 65.1019 89.0677L63.5275 85.3905ZM59.3837 84.4626L62.0625 87.4332L63.1926 86.4141L60.5139 83.4435L57.8351 80.4729L56.705 81.492L59.3837 84.4626ZM60.5139 83.4435L57.3556 85.8982C58.1117 86.8711 59.1809 87.7047 60.5416 88.0956C61.924 88.4927 63.3299 88.3513 64.5681 87.8211L62.9937 84.144L61.4193 80.4669C61.7309 80.3334 62.2166 80.2532 62.7506 80.4066C63.2628 80.5537 63.5554 80.8387 63.6721 80.9889L60.5139 83.4435ZM62.9937 84.144L64.5681 87.8211C66.3732 87.0482 67.6257 85.543 68.1207 83.7414C68.5939 82.0193 68.3241 80.2722 67.6853 78.7804L64.0082 80.3548L60.3311 81.9292C60.4245 82.1473 60.2982 82.0162 60.4066 81.6218C60.4625 81.4182 60.5761 81.1762 60.773 80.9475C60.9719 80.7165 61.2045 80.5588 61.4193 80.4669L62.9937 84.144ZM53.4745 86.7345L52.8924 82.7771L53.4745 86.7345ZM56.9911 83.1001L53.0336 83.6822C53.0992 84.1281 52.9803 84.2566 53.0168 84.2022C53.0314 84.1805 53.0601 84.1498 53.0977 84.1264C53.1355 84.1028 53.1428 84.1108 53.0897 84.1187L53.6718 88.0761L54.2538 92.0335C59.0932 91.3217 61.5965 86.924 60.9485 82.5181L56.9911 83.1001ZM53.6718 88.0761L53.0897 84.1187C53.0367 84.1265 53.0414 84.1166 53.0844 84.1283C53.1271 84.14 53.1635 84.1611 53.1836 84.1776C53.2343 84.2193 53.0834 84.1304 53.0178 83.6845L49.0604 84.2666L45.103 84.8486C45.751 89.2545 49.4144 92.7453 54.2538 92.0335L53.6718 88.0761ZM49.0604 84.2666L53.0178 83.6845C52.9522 83.2386 53.0712 83.11 53.0346 83.1645C53.0201 83.1862 52.9913 83.2169 52.9538 83.2403C52.916 83.2639 52.9086 83.2558 52.9617 83.248L52.3797 79.2906L51.7976 75.3332C46.9582 76.0449 44.4549 80.4427 45.103 84.8486L49.0604 84.2666ZM52.3797 79.2906L52.9617 83.248C53.0148 83.2402 53.0101 83.2501 52.9671 83.2384C52.9243 83.2267 52.888 83.2056 52.8678 83.1891C52.8171 83.1474 52.9681 83.2363 53.0336 83.6822L56.9911 83.1001L60.9485 82.5181C60.3005 78.1122 56.
244637 74.6214 51.7976 75.3332L52.3797 79.2906ZM50.58 84.043L46.6226 84.6251C46.8604 86.2419 47.5532 87.887 48.8869 89.1104C50.2819 90.3898 52.1435 90.9733 54.0565 90.6919L53.4745 86.7345L52.8924 82.7771C53.0934 82.7475 53.3526 82.7548 53.6315 82.8407C53.9095 82.9263 54.1338 83.0674 54.2945 83.2147C54.6082 83.5025 54.5721 83.6962 54.5375 83.461L50.58 84.043ZM53.4745 86.7345L54.0565 90.6919C55.9696 90.4106 57.5843 89.3158 58.5518 87.6889C59.4769 86.1333 59.6666 84.3584 59.4288 82.7416L55.4714 83.3236L51.514 83.9057C51.5486 84.1409 51.4582 83.9658 51.6758 83.5999C51.7872 83.4125 51.9613 83.2128 52.2029 83.0508C52.4454 82.8882 52.6915 82.8066 52.8924 82.7771L53.4745 86.7345ZM55.4714 83.3236L59.4288 82.7416C59.191 81.1248 58.4983 79.4797 57.1645 78.2563C55.7696 76.9769 53.908 76.3934 51.9949 76.6747L52.577 80.6322L53.159 84.5896C52.9581 84.6191 52.6989 84.6119 52.4199 84.526C52.1419 84.4404 51.9176 84.2993 51.757 84.152C51.4432 83.8642 51.4794 83.6704 51.514 83.9057L55.4714 83.3236ZM52.577 80.6322L51.9949 76.6747C50.0819 76.9561 48.4671 78.0509 47.4996 79.6778C46.5746 81.2334 46.3848 83.0083 46.6226 84.6251L50.58 84.043L54.5375 83.461C54.5029 83.2258 54.5933 83.4009 54.3757 83.7668C54.2643 83.9542 54.0901 84.1539 53.8485 84.3159C53.6061 84.4785 53.36 84.56 53.159 84.5896L52.577 80.6322ZM43.6456 79.4425L44.0852 75.4667C42.4204 75.2827 40.8172 76.1554 40.068 77.6535L43.6456 79.4425ZM45.2558 79.6205L49.1355 78.6468C48.7286 77.0257 47.3567 75.8285 45.6954 75.6448L45.2558 79.6205ZM47.4935 88.5365L47.0539 92.5122C48.356 92.6562 49.646 92.1535 50.5073 91.1665C51.3686 90.1795 51.6921 88.8333 51.3732 87.5628L47.4935 88.5365ZM45.8476 88.3545L41.9537 89.2697C42.3412 90.9183 43.7248 92.1441 45.408 92.3303L45.8476 88.3545ZM44.2218 81.4379L48.1157 80.5227C47.7285 78.8753 46.3465 77.6498 44.6646 77.4625C42.9827 77.2752 41.3649 78.1665 40.6247 79.6884L44.2218 81.4379ZM41.1124 87.8309L40.6728 91.8067C42.3537 91.9925 43.9698 91.1012 44.7095 89.5805L41.1124 87.8309ZM39.538 87.6568L35.9604 85.8678C35.3753 87.0379 35.3993 88.4202 36.0248 89.5693C36.6503 90.7183 37.7981 91.4888 39.0984 91.6326L39.538 87.6568ZM43.6456 79.4425L43.206 83.4183L44.8162 83.5963L45.2558 79.6205L45.6954 75.6448L44.0852 75.4667L43.6456 79.4425ZM45.2558 79.6205L41.3762 80.5943L43.6139 89.5102L47.4935 88.5365L51.3732 87.5628L49.1355 78.6468L45.2558 79.6205ZM47.4935 88.5365L47.9331 84.5607L46.2872 84.3787L45.8476 88.3545L45.408 92.3303L47.0539 92.5122L47.4935 88.5365ZM45.8476 88.3545L49.7414 87.4392L48.1157 80.5227L44.2218 81.4379L40.328 82.3532L41.9537 89.2697L45.8476 88.3545ZM44.2218 81.4379L40.6247 79.6884L37.5153 86.0814L41.1124 87.8309L44.7095 89.5805L47.8189 83.1875L44.2218 81.4379ZM41.1124 87.8309L41.552 83.8552L39.9776 83.6811L39.538 87.6568L39.0984 91.6326L40.6728 91.8067L41.1124 87.8309ZM39.538 87.6568L43.1156 89.4459L47.2233 81.2315L43.6456 79.4425L40.068 77.6535L35.9604 85.8678L39.538 87.6568ZM36.6634 86.8918L35.2867 90.6475C36.2828 91.0126 37.3831 90.9671 38.3456 90.521C39.3081 90.0748 40.0539 89.2646 40.419 88.2686L36.6634 86.8918ZM31.1877 84.8846L27.4321 83.5079C26.6718 85.5821 27.7369 87.8799 29.811 88.6402L31.1877 84.8846ZM31.6503 83.6227L33.027 79.8671C32.031 79.502 30.9307 79.5475 29.9682 79.9936C29.0057 80.4397 28.2598 81.25 27.8947 82.246L31.6503 83.6227ZM35.7064 85.1096L34.3297 88.8652C36.4038 89.6255 38.7017 88.5604 39.462 86.4863L35.7064 85.1096ZM36.4498 83.0815L40.2054 84.4582C40.5705 83.4622 40.525 82.3619 40.0789 81.3994C39.6328 80.4369 38.8226 79.691 37.8265 79.3259L36.4498 83.0815ZM33.0359 81.8301L29.2803 80.4534C28.9152 81.4494 28.9607 82.5497 29.4068 83.5122C29.853 84.4747 30.6632 85.2206 31.6592 85.5857L33.0359 81.8301ZM33.4985 80.5682L34.8752 76.8126C32.8011 76.0523 30.5032 77.1173 29.7429 79.1915L33.4985 80.5682ZM36.9124 81.8196L35.5357 85.5753C37.6098 86.3356 39.9077 85.2705 40.668 83.1964L36.9124 81.8196ZM37.7467 79.5437L41.5023 80.9204C42.2626 78.8463 41.1975 76.5485 39.1234 75.7881L37.7467 79.5437ZM33.6906 78.0569L29.935 76.6802C29.5698 77.6762 29.6154 78.7765 30.0615 79.739C30.5076 80.7015 31.3178 81.4474 32.3139 81.8125L33.6906 78.0569ZM34.1532 76.795L35.5299 73.0394C33.4557 72.279 31.1579 73.3441 30.3975 75.4183L34.1532 76.795ZM39.6289 78.8022L43.3845 80.179C43.7496 79.1829 43.7041 78.0826 43.258 77.1201C42.8118 76.1576 42.0016 75.4118 41.0056 75.0466L39.6289 78.8022ZM36.6634 86.8918L38.0401 83.1362L32.5644 81.129L31.1877 84.8846L29.811 88.6402L35.2867 90.6475L36.6634 86.8918ZM31.1877 84.8846L34.9434 86.2613L35.4059 84.9994L31.6503 83.6227L27.8947 82.246L27.4321 83.5079L31.1877 84.8846ZM31.6503 83.6227L30.2736 87.3783L34.3297 88.8652L35.7064 85.1096L37.0831 81.3539L33.027 79.8671L31.6503 83.6227ZM35.7064 85.1096L39.462 86.4863L40.2054 84.4582L36.4498 83.0815L32.6942 81.7048L31.9508 83.7329L35.7064 85.1096ZM36.4498 83.0815L37.8265 79.3259L34.4127 78.0745L33.0359 81.8301L31.6592 85.5857L35.0731 86.8372L36.4498 83.0815ZM33.0359 81.8301L36.7916 83.2068L37.2541 81.9449L33.4985 80.5682L29.7429 79.1915L29.2803 80.4534L33.0359 81.8301ZM33.4985 80.5682L32.1218 84.3238L35.5357 85.5753L36.9124 81.8196L38.2891 78.064L34.8752 76.8126L33.4985 80.5682ZM36.9124 81.8196L40.668 83.1964L41.5023 80.9204L37.7467 79.5437L33.991 78.167L33.1568 80.4429L36.9124 81.8196ZM37.7467 79.5437L39.1234 75.7881L35.0673 74.3013L33.6906 78.0569L32.3139 81.8125L36.37 83.2994L37.7467 79.5437ZM33.6906 78.0569L37.4462 79.4336L37.9088 78.1717L34.1532 76.795L30.3975 75.4183L29.935 76.6802L33.6906 78.0569ZM34.1532 76.795L32.7765 80.5506L38.2521 82.5579L39.6289 78.8022L41.0056 75.0466L35.5299 73.0394L34.1532 76.795ZM39.6289 78.8022L35.8732 77.4255L32.9078 85.5151L36.6634 86.8918L40.419 88.2686L43.3845 80.179L39.6289 78.8022ZM29.9132 78.1083L27.6952 81.437C29.5336 82.662 32.0169 82.1647 33.2419 80.3263L29.9132 78.1083ZM31.7631 75.3321L33.9811 72.0034C33.0983 71.4152 32.0179 71.2017 30.9777 71.41C29.9375 71.6183 29.0226 72.2313 28.4344 73.1141L31.7631 75.3321ZM33.0413 76.1839L36.37 78.4019C37.595 76.5635 37.0977 74.0801 35.2593 72.8552L33.0413 76.1839ZM28.2636 83.3539L26.0456 86.6826C27.884 87.9076 30.3673 87.4103 31.5923 85.5719L28.2636 83.3539ZM27.3302 76.5313L25.9434 80.2832C27.1597 80.7328 28.5185 80.5648 29.5887 79.8327C30.6589 79.1005 31.3078 77.895 31.3296 76.5984L27.3302 76.5313ZM27.3991 72.4243L29.6172 69.0956C28.3997 68.2843 26.8365 68.2025 25.541 68.8821C24.2454 69.5617 23.4242 70.8944 23.3997 72.3571L27.3991 72.4243ZM28.8571 73.3958L32.8558 73.4996C32.8914 72.1255 32.219 70.8293 31.0751 70.0671L28.8571 73.3958ZM28.7548 77.3364L24.7562 77.2326C24.7205 78.6067 25.3929 79.9029 26.5368 80.6651L28.7548 77.3364ZM29.1813 79.2067L32.51 81.4248C33.735 79.5864 33.2377 77.103 31.3993 75.878L29.1813 79.2067ZM25.5234 78.3556L22.1947 76.1375L25.5234 78.3556ZM26.1995 80.3923L28.4175 77.0636L26.1995 80.3923ZM27.7174 81.4037L25.4993 84.7324C26.3821 85.3207 27.4625 85.5341 28.5027 85.3258C29.5429 85.
2441176 30.4578 84.5046 31.0461 83.6217L27.7174 81.4037ZM29.9132 78.1083L33.2419 80.3263L35.0918 77.5502L31.7631 75.3321L28.4344 73.1141L26.5845 75.8902L29.9132 78.1083ZM31.7631 75.3321L29.545 78.6608L30.8232 79.5126L33.0413 76.1839L35.2593 72.8552L33.9811 72.0034L31.7631 75.3321ZM33.0413 76.1839L29.7126 73.9658L24.9349 81.1359L28.2636 83.3539L31.5923 85.5719L36.37 78.4019L33.0413 76.1839ZM28.2636 83.3539L30.4817 80.0252L27.6157 78.1155L25.3976 81.4442L23.1796 84.7729L26.0456 86.6826L28.2636 83.3539ZM25.3976 81.4442L27.6157 78.1155C27.2827 77.8936 27.5395 77.9441 27.6958 78.4556C27.7789 78.7276 27.7967 79.0267 27.7464 79.3045C27.6985 79.5688 27.6078 79.7142 27.5938 79.7352L24.2651 77.5171L20.9364 75.2991C19.9027 76.8504 19.435 78.797 20.045 80.7932C20.6092 82.64 21.9147 83.9301 23.1796 84.7729L25.3976 81.4442ZM24.2651 77.5171L27.5938 79.7352C27.5521 79.7979 27.3121 80.097 26.8098 80.2529C26.3237 80.4038 25.9845 80.2984 25.9434 80.2832L27.3302 76.5313L28.7169 72.7794C27.4609 72.3152 25.9651 72.1385 24.4382 72.6125C22.8952 73.0914 21.7301 74.108 20.9364 75.2991L24.2651 77.5171ZM27.3302 76.5313L31.3296 76.5984L31.3986 72.4914L27.3991 72.4243L23.3997 72.3571L23.3307 76.4642L27.3302 76.5313ZM27.3991 72.4243L25.1811 75.753L26.6391 76.7245L28.8571 73.3958L31.0751 70.0671L29.6172 69.0956L27.3991 72.4243ZM28.8571 73.3958L24.8584 73.292L24.7562 77.2326L28.7548 77.3364L32.7535 77.4402L32.8558 73.4996L28.8571 73.3958ZM28.7548 77.3364L26.5368 80.6651L27.6952 81.437L29.9132 78.1083L32.1313 74.7796L30.9729 74.0077L28.7548 77.3364ZM29.1813 79.2067L31.3993 75.878L29.8814 74.8666L27.6634 78.1953L25.4453 81.524L26.9632 82.5355L29.1813 79.2067ZM27.6634 78.1953L29.8814 74.8666C29.0049 74.2826 27.6896 73.6686 26.1018 73.7967C24.3277 73.9399 22.9919 74.9411 22.1947 76.1375L25.5234 78.3556L28.8521 80.5736C28.7096 80.7875 28.4612 81.0776 28.0682 81.327C27.6622 81.5846 27.2023 81.7339 26.7452 81.7708C26.3061 81.8062 25.9631 81.7314 25.7555 81.663C25.5526 81.5962 25.4489 81.5264 25.4453 81.524L27.6634 78.1953ZM25.5234 78.3556L22.1947 76.1375C21.4019 77.3273 20.9776 78.9514 21.5403 80.6608C22.0401 82.1794 23.1227 83.1488 23.9814 83.721L26.1995 80.3923L28.4175 77.0636C28.4193 77.0647 28.4431 77.0807 28.4825 77.1143C28.5217 77.1477 28.5821 77.2036 28.6533 77.2852C28.7949 77.4473 28.9997 77.7357 29.1392 78.1596C29.2849 78.6023 29.3247 79.0909 29.2419 79.5693C29.162 80.0306 28.9887 80.3685 28.8521 80.5736L25.5234 78.3556ZM26.1995 80.3923L23.9814 83.721L25.4993 84.7324L27.7174 81.4037L29.9354 78.075L28.4175 77.0636L26.1995 80.3923ZM27.7174 81.4037L31.0461 83.6217L32.51 81.4248L29.1813 79.2067L25.8526 76.9887L24.3886 79.1857L27.7174 81.4037Z",fill:"#FFFF4B",mask:"url(#path-3-outside-1_813_27427)"}))))};function si(){return(si=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var sr=function(e){return T.createElement("svg",si({width:96,height:96,viewBox:"0 0 96 96",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),T.createElement("g",{style:{mixBlendMode:"difference"}},s4||(s4=T.createElement("rect",{width:96,height:96,rx:48,fill:"#FFFF4B"})),s6||(s6=T.createElement("circle",{cx:48,cy:48,r:36,stroke:"black",strokeWidth:1.5})),s8||(s8=T.createElement("mask",{id:"path-3-outside-1_820_28623",maskUnits:"userSpaceOnUse",x:29,y:3,width:64,height:90,fill:"black"},T.createElement("rect",{fill:"white",x:29,y:3,width:64,height:90}),T.createElement("path",{d:"M47.7042 14.3242L48.9668 13.4677C49.4756 14.4563 50.3206 15.0789 51.3002 15.1719C52.2678 15.2638 53.0385 14.8909 53.1167 14.0666C53.1995 13.1946 52.3149 12.99 51.0661 12.5581C49.8054 12.125 48.456 11.6111 48.6147 9.93867C48.7656 8.34981 50.2239 7.46367 51.9561 7.62813C53.4255 7.76763 54.5065 8.56939 54.9949 9.51981L53.7801 10.3808C53.3725 9.59481 52.7882 9.02101 51.7847 8.92573C50.8648 8.8384 50.1874 9.2442 50.1228 9.92514C50.0513 10.6778 50.6936 10.8954 51.8275 11.2683C53.1837 11.7104 54.8137 12.1906 54.6367 14.0543C54.4768 15.7387 52.8968 16.6374 51.1287 16.4695C49.6593 16.33 48.2688 15.4868 47.7042 14.3242ZM62.2486 10.4923L63.5071 10.997L62.6458 17.4652L66.5143 12.203L67.94 12.7747L62.5723 19.9051L61.169 19.3424L61.9143 13.0992L58.1506 18.132L56.7473 17.5692L57.7823 8.70128L59.2525 9.29085L58.4134 15.7679L62.2486 10.4923ZM71.6045 15.0268L66.7206 22.1248L65.4552 21.2542L70.3391 14.1561L71.6045 15.0268ZM71.3951 21.8132L69.0802 24.2153L67.9742 23.1494L73.9531 16.9455L76.4329 19.3354C77.8154 20.6677 78.0549 22.1485 76.8475 23.4013C75.6567 24.6369 74.1515 24.4695 72.769 23.1372L71.3951 21.8132ZM72.3111 20.8627L73.6245 22.1285C74.4194 22.8946 75.1759 22.957 75.7588 22.3521C76.35 21.7386 76.2514 20.9936 75.4564 20.2275L74.1431 18.9618L72.3111 20.8627ZM80.5169 23.8512L83.6746 28.7543L82.5447 29.482L80.2056 25.8501L78.3896 27.0196L80.3584 30.0765L79.2284 30.8042L77.2597 27.7474L75.2218 29.0598L77.5609 32.6918L76.4309 33.4195L73.2732 28.5164L80.5169 23.8512ZM86.66 41.0792L85.9077 38.4112L78.9086 40.3847L78.4918 38.9063L85.4909 36.9329L84.7386 34.2649L86.0322 33.9002L87.9536 40.7145L86.66 41.0792ZM83.8617 42.8731C86.4764 42.7898 88.3529 44.411 88.427 46.7378C88.501 49.0646 86.7314 50.8018 84.1167 50.885C81.5021 50.9682 79.6255 49.3471 79.5515 47.0203C79.4774 44.6935 81.247 42.9563 83.8617 42.8731ZM84.0679 49.3498C85.9389 49.2902 87.1179 48.2322 87.0717 46.7809C87.0255 45.3296 85.7816 44.3487 83.9106 44.4083C82.0395 44.4678 80.8606 45.5259 80.9068 46.9771C80.953 48.4284 82.1968 49.4093 84.0679 49.3498ZM79.2112 54.594L87.4082 57.2484L86.5209 59.9883C85.6965 62.5341 83.5881 63.592 81.0879 62.7824C78.5877 61.9728 77.4996 59.8798 78.324 57.3339L79.2112 54.594ZM80.0049 56.4277L79.5798 57.7406C79.0327 59.4302 79.8298 60.7857 81.5537 61.3439C83.289 61.9059 84.718 61.2712 85.2688 59.5702L85.6903 58.2687L80.0049 56.4277ZM83.2671 68.0396L75.7358 63.8544L76.4819 62.5118L84.0132 66.6969L83.2671 68.0396ZM76.7123 65.5366L76.7683 67.0613C75.6604 66.9681 74.6843 67.3538 74.0857 68.1348C73.4943 68.9062 73.4014 69.7573 74.0585 70.261C74.7537 70.794 75.3965 70.1527 76.4253 69.3234C77.4614 68.4847 78.613 67.6135 79.9463 68.6356C81.213 69.6066 81.1902 71.3128 80.1317 72.6938C79.2337 73.8652 77.9805 74.3561 76.9158 74.2657L76.8306 72.7791C77.7131 72.8508 78.5095 72.6599 79.1228 71.8599C79.6849 71.1266 79.7004 70.3371 79.1576 69.921C78.5576 69.4611 78.0322 69.89 77.1145 70.6532C76.0201 71.5681 74.7482 72.6948 73.2624 71.5559C71.9196 70.5265 71.9963 68.7104 73.0768 67.3009C73.9747 66.1295 75.4273 65.3983 76.7123 65.5366ZM72.2672 74.7165C71.0993 73.2689 69.5462 72.9492 68.4441 73.8383C67.6596 74.4712 67.4742 75.4071 67.9016 76.3574L66.472 76.8787C65.9073 75.3761 66.2385 73.8754 67.5927 72.7829C69.3766 71.3437 71.8201 71.716 73.4626 73.752C75.1052 75.7881 74.9523 78.255 73.1684 79.6942C71.8142 80.7867 70.2775 80.793 68.9283 79.9233L69.7401 78.6363C70.5785 79.255 71.5325 79.2717 72.317 78.6388C73.4191 77.7497 73.4351 76.1641 72.2672 74.7165ZM66.2936 79.2467C67.383 81.625 66.6152 83.983 64.4987 84.9524C62.3822 85.9219 60.0952 84.9633 59.0058 82.5849C57.9164 80.2065 58.6841 77.8486 60.8007 76.8791C62.9172 75.9096 65.2042 76.8683 66.2936 79.2467ZM60.4022 81.9452C61.1818 83.6472 62.6139 84.3243 63.934 83.7196C65.2541 83.1149 65.6767 81.5883 64.8971 79.8863C64.1175 78.1844 62.6855 77.5072 61.3654 78.1119C60.0453 78.7166 59.6227 80.2433 60.4022 81.9452ZM52.4534 79.4296L54.0512 79.1624L58.6323 87.132L56.999 87.4051L53.5512 81.1926L52.3002 88.1908L50.7379 88.452L52.4534 79.4296ZM47.7901 88.5033L41.9734 88.0813L42.0706 86.7408L46.3793 87.0534L46.5356 84.8991L42.9091 84.636L43.0064 83.2955L46.6329 83.5
244586L46.8083 81.141L42.4996 80.8283L42.5969 79.4879L48.4136 79.9099L47.7901 88.5033ZM38.8877 81.9255L39.8942 78.7449L41.3586 79.2083L38.7592 87.4228L35.4757 86.3838C33.6452 85.8046 32.7726 84.5845 33.2976 82.9255C33.7066 81.6327 34.6766 81.0334 35.9684 81.1275L34.8945 77.1628L36.5649 77.6914L37.5606 81.5055L38.8877 81.9255ZM38.4895 83.1839L36.7505 82.6337C35.6979 82.3006 34.9925 82.5808 34.7391 83.3817C34.4821 84.194 34.9015 84.8176 35.954 85.1507L37.693 85.7009L38.4895 83.1839Z"}))),s7||(s7=T.createElement("path",{d:"M47.7042 14.3242L48.9668 13.4677C49.4756 14.4563 50.3206 15.0789 51.3002 15.1719C52.2678 15.2638 53.0385 14.8909 53.1167 14.0666C53.1995 13.1946 52.3149 12.99 51.0661 12.5581C49.8054 12.125 48.456 11.6111 48.6147 9.93867C48.7656 8.34981 50.2239 7.46367 51.9561 7.62813C53.4255 7.76763 54.5065 8.56939 54.9949 9.51981L53.7801 10.3808C53.3725 9.59481 52.7882 9.02101 51.7847 8.92573C50.8648 8.8384 50.1874 9.2442 50.1228 9.92514C50.0513 10.6778 50.6936 10.8954 51.8275 11.2683C53.1837 11.7104 54.8137 12.1906 54.6367 14.0543C54.4768 15.7387 52.8968 16.6374 51.1287 16.4695C49.6593 16.33 48.2688 15.4868 47.7042 14.3242ZM62.2486 10.4923L63.5071 10.997L62.6458 17.4652L66.5143 12.203L67.94 12.7747L62.5723 19.9051L61.169 19.3424L61.9143 13.0992L58.1506 18.132L56.7473 17.5692L57.7823 8.70128L59.2525 9.29085L58.4134 15.7679L62.2486 10.4923ZM71.6045 15.0268L66.7206 22.1248L65.4552 21.2542L70.3391 14.1561L71.6045 15.0268ZM71.3951 21.8132L69.0802 24.2153L67.9742 23.1494L73.9531 16.9455L76.4329 19.3354C77.8154 20.6677 78.0549 22.1485 76.8475 23.4013C75.6567 24.6369 74.1515 24.4695 72.769 23.1372L71.3951 21.8132ZM72.3111 20.8627L73.6245 22.1285C74.4194 22.8946 75.1759 22.957 75.7588 22.3521C76.35 21.7386 76.2514 20.9936 75.4564 20.2275L74.1431 18.9618L72.3111 20.8627ZM80.5169 23.8512L83.6746 28.7543L82.5447 29.482L80.2056 25.8501L78.3896 27.0196L80.3584 30.0765L79.2284 30.8042L77.2597 27.7474L75.2218 29.0598L77.5609 32.6918L76.4309 33.4195L73.2732 28.5164L80.5169 23.8512ZM86.66 41.0792L85.9077 38.4112L78.9086 40.3847L78.4918 38.9063L85.4909 36.9329L84.7386 34.2649L86.0322 33.9002L87.9536 40.7145L86.66 41.0792ZM83.8617 42.8731C86.4764 42.7898 88.3529 44.411 88.427 46.7378C88.501 49.0646 86.7314 50.8018 84.1167 50.885C81.5021 50.9682 79.6255 49.3471 79.5515 47.0203C79.4774 44.6935 81.247 42.9563 83.8617 42.8731ZM84.0679 49.3498C85.9389 49.2902 87.1179 48.2322 87.0717 46.7809C87.0255 45.3296 85.7816 44.3487 83.9106 44.4083C82.0395 44.4678 80.8606 45.5259 80.9068 46.9771C80.953 48.4284 82.1968 49.4093 84.0679 49.3498ZM79.2112 54.594L87.4082 57.2484L86.5209 59.9883C85.6965 62.5341 83.5881 63.592 81.0879 62.7824C78.5877 61.9728 77.4996 59.8798 78.324 57.3339L79.2112 54.594ZM80.0049 56.4277L79.5798 57.7406C79.0327 59.4302 79.8298 60.7857 81.5537 61.3439C83.289 61.9059 84.718 61.2712 85.2688 59.5702L85.6903 58.2687L80.0049 56.4277ZM83.2671 68.0396L75.7358 63.8544L76.4819 62.5118L84.0132 66.6969L83.2671 68.0396ZM76.7123 65.5366L76.7683 67.0613C75.6604 66.9681 74.6843 67.3538 74.0857 68.1348C73.4943 68.9062 73.4014 69.7573 74.0585 70.261C74.7537 70.794 75.3965 70.1527 76.4253 69.3234C77.4614 68.4847 78.613 67.6135 79.9463 68.6356C81.213 69.6066 81.1902 71.3128 80.1317 72.6938C79.2337 73.8652 77.9805 74.3561 76.9158 74.2657L76.8306 72.7791C77.7131 72.8508 78.5095 72.6599 79.1228 71.8599C79.6849 71.1266 79.7004 70.3371 79.1576 69.921C78.5576 69.4611 78.0322 69.89 77.1145 70.6532C76.0201 71.5681 74.7482 72.6948 73.2624 71.5559C71.9196 70.5265 71.9963 68.7104 73.0768 67.3009C73.9747 66.1295 75.4273 65.3983 76.7123 65.5366ZM72.2672 74.7165C71.0993 73.2689 69.5462 72.9492 68.4441 73.8383C67.6596 74.4712 67.4742 75.4071 67.9016 76.3574L66.472 76.8787C65.9073 75.3761 66.2385 73.8754 67.5927 72.7829C69.3766 71.3437 71.8201 71.716 73.4626 73.752C75.1052 75.7881 74.9523 78.255 73.1684 79.6942C71.8142 80.7867 70.2775 80.793 68.9283 79.9233L69.7401 78.6363C70.5785 79.255 71.5325 79.2717 72.317 78.6388C73.4191 77.7497 73.4351 76.1641 72.2672 74.7165ZM66.2936 79.2467C67.383 81.625 66.6152 83.983 64.4987 84.9524C62.3822 85.9219 60.0952 84.9633 59.0058 82.5849C57.9164 80.2065 58.6841 77.8486 60.8007 76.8791C62.9172 75.9096 65.2042 76.8683 66.2936 79.2467ZM60.4022 81.9452C61.1818 83.6472 62.6139 84.3243 63.934 83.7196C65.2541 83.1149 65.6767 81.5883 64.8971 79.8863C64.1175 78.1844 62.6855 77.5072 61.3654 78.1119C60.0453 78.7166 59.6227 80.2433 60.4022 81.9452ZM52.4534 79.4296L54.0512 79.1624L58.6323 87.132L56.999 87.4051L53.5512 81.1926L52.3002 88.1908L50.7379 88.452L52.4534 79.4296ZM47.7901 88.5033L41.9734 88.0813L42.0706 86.7408L46.3793 87.0534L46.5356 84.8991L42.9091 84.636L43.0064 83.2955L46.6329 83.5
244586L46.8083 81.141L42.4996 80.8283L42.5969 79.4879L48.4136 79.9099L47.7901 88.5033ZM38.8877 81.9255L39.8942 78.7449L41.3586 79.2083L38.7592 87.4228L35.4757 86.3838C33.6452 85.8046 32.7726 84.5845 33.2976 82.9255C33.7066 81.6327 34.6766 81.0334 35.9684 81.1275L34.8945 77.1628L36.5649 77.6914L37.5606 81.5055L38.8877 81.9255ZM38.4895 83.1839L36.7505 82.6337C35.6979 82.3006 34.9925 82.5808 34.7391 83.3817C34.4821 84.194 34.9015 84.8176 35.954 85.1507L37.693 85.7009L38.4895 83.1839Z",fill:"black"})),s9||(s9=T.createElement("path",{d:"M47.7042 14.3242L45.4586 11.014C43.8139 12.1298 43.2378 14.284 44.1061 16.0718L47.7042 14.3242ZM48.9668 13.4677L52.5232 11.637C51.9993 10.6192 51.0644 9.87463 49.9551 9.59177C48.8459 9.30891 47.6686 9.51486 46.7212 10.1575L48.9668 13.4677ZM51.0661 12.5581L52.3738 8.77785L52.3657 8.77508L51.0661 12.5581ZM51.9561 7.62813L51.578 11.6102L51.9561 7.62813ZM54.9949 9.51981L57.3079 12.7832C58.9319 11.6322 59.4624 9.46216 58.5527 7.69167L54.9949 9.51981ZM53.7801 10.3808L50.229 12.222C50.7615 13.2492 51.7128 13.9954 52.8372 14.2681C53.9617 14.5409 55.1491 14.3133 56.0931 13.6443L53.7801 10.3808ZM51.8275 11.2683L50.578 15.0681L50.5876 15.0713L51.8275 11.2683ZM47.7042 14.3242L49.9497 17.6345L51.2123 16.778L48.9668 13.4677L46.7212 10.1575L45.4586 11.014L47.7042 14.3242ZM48.9668 13.4677L45.4103 15.2985C46.4368 17.2926 48.37 18.9117 50.9221 19.154L51.3002 15.1719L51.6782 11.1898C51.9353 11.2142 52.1598 11.311 52.3198 11.4281C52.472 11.5395 52.5225 11.6355 52.5232 11.637L48.9668 13.4677ZM51.3002 15.1719L50.9221 19.154C51.9453 19.2511 53.2749 19.1508 54.5262 18.436C55.9319 17.6329 56.9317 16.2055 57.0988 14.4447L53.1167 14.0666L49.1347 13.6886C49.1724 13.2911 49.3091 12.8348 49.595 12.4005C49.8776 11.9713 50.2317 11.676 50.5578 11.4897C51.1622 11.1444 51.6227 11.1845 51.6782 11.1898L51.3002 15.1719ZM53.1167 14.0666L57.0988 14.4447C57.1893 13.4916 57.0238 12.4258 56.4198 11.4377C55.861 10.5235 55.1166 9.99008 54.607 9.69265C53.7948 9.21864 52.6569 8.87578 52.3738 8.77785L51.0661 12.5581L49.7585 16.3383C50.1871 16.4866 50.3275 16.5287 50.558 16.6126C50.7561 16.6846 50.7088 16.6804 50.5745 16.602C50.4318 16.5187 49.9711 16.2269 49.5939 15.6098C49.1716 14.9188 49.0856 14.2056 49.1347 13.6886L53.1167 14.0666ZM51.0661 12.5581L52.3657 8.77508C52.0514 8.6671 51.8849 8.60498 51.7665 8.55185C51.6502 8.49966 51.7161 8.51429 51.8525 8.62667C52.0123 8.75843 52.2598 9.01805 52.4322 9.42187C52.6064 9.82991 52.611 10.1675 52.5968 10.3167L48.6147 9.93867L44.6327 9.56061C44.422 11.7794 45.312 13.6029 46.7638 14.7996C47.8878 15.7262 49.2457 16.1621 49.7666 16.3411L51.0661 12.5581ZM48.6147 9.93867L52.5968 10.3167C52.5794 10.5009 52.5144 10.7327 52.3737 10.9639C52.2354 11.1912 52.0638 11.3525 51.9097 11.4551C51.6166 11.6503 51.4598 11.599 51.578 11.6102L51.9561 7.62813L52.3341 3.64603C50.7202 3.49281 48.9681 3.80234 47.4751 4.79672C45.9112 5.83831 44.8263 7.52137 44.6327 9.56061L48.6147 9.93867ZM51.9561 7.62813L51.578 11.6102C51.6804 11.6199 51.6943 11.6438 51.6546 11.6179C51.6249 11.5985 51.5288 11.5263 51.4371 11.3479L54.9949 9.51981L58.5527 7.69167C57.3961 5.44088 55.0608 3.90489 52.3341 3.64603L51.9561 7.62813ZM54.9949 9.51981L52.6819 6.25639L51.467 7.11743L53.7801 10.3808L56.0931 13.6443L57.3079 12.7832L54.9949 9.51981ZM53.7801 10.3808L57.3312 8.53972C56.5154 6.96621 54.9296 5.20633 52.1627 4.94364L51.7847 8.92573L51.4066 12.9078C51.3135 12.899 51.1703 12.8727 50.9997 12.8057C50.8273 12.738 50.6686 12.6449 50.5331 12.5384C50.2701 12.3316 50.1933 12.1531 50.229 12.222L53.7801 10.3808ZM51.7847 8.92573L52.1627 4.94364C51.0737 4.84025 49.7686 4.99038 48.5733 5.70841C47.2901 6.4792 46.3035 7.83237 46.1407 9.54708L50.1228 9.92514L54.1049 10.3032C54.0067 11.337 53.3911 12.1468 52.6928 12.5663C52.0822 12.933 51.5758 12.9239 51.4066 12.9078L51.7847 8.92573ZM50.1228 9.92514L46.1407 9.54708C46.0655 10.3392 46.1589 11.2889 46.642 12.2287C47.1107 13.1406 47.7805 13.7189 48.3081 14.0698C49.1583 14.6352 50.223 14.9514 50.578 15.0681L51.8275 11.2683L53.0769 7.46842C52.7707 7.36774 52.6208 7.31699 52.5167 7.27667C52.4031 7.23272 52.53 7.26998 52.7382 7.4084C52.9724 7.5642 53.4241 7.92365 53.7571 8.57149C54.1044 9.24714 54.1443 9.88735 54.1049 10.3032L50.1228 9.92514ZM51.8275 11.2683L50.5876 15.0713C50.9805 15.1994 51.1877 15.2659 51.3778 15.3419C51.5584 15.4141 51.5395 15.4259 51.4365 15.3501C51.3097 15.2568 51.0454 15.0225 50.8499 14.6108C50.6477 14.185 50.6405 13.8253 50.6546 13.6762L54.6367 14.0543L58.6188 14.4323C58.7214 13.3514 58.5769 12.2328 58.0764 11.179C57.5827 10.1394 56.8593 9.40794 56.1776 8.90633C54.9897 8.03236 53.5263 7.61491 53.0673 7.46526L51.8275 11.2683ZM54.6367 14.0543L50.6546 13.6762C50.6714 13.499 50.7357 13.2741 50.8738 13.0522C51.0084 12.8359 51.1701 12.6911 51.3027 12.6047C51.5468 12.4457 51.6472 12.5007 51.5068 12.4874L51.1287 16.4695L50.7507 20.4516C53.8198 20.743 58.174 19.1177 58.6188 14.4323L54.6367 14.0543ZM51.1287 16.4695L51.5068 12.4874C51.4557 12.4826 51.3957 12.4704 51.3334 12.4494C51.2708 12.4282 51.2206 12.4031 51.1865 12.3819C51.1517 12.3603 51.1493 12.3527 51.1694 12.3738C51.1895 12.3949 51.245 12.4588 51.3022 12.5767L47.7042 14.3242L44.1061 16.0718C45.4112 18.7588 48.2174 20.2111 50.7507 20.4516L51.1287 16.4695ZM62.2486 10.4923L63.7374 6.77972C62.0369 6.09779
24460.0905 6.65836 59.0131 8.1403L62.2486 10.4923ZM63.5071 10.997L67.4721 11.525C67.7136 9.71157 66.694 7.96537 64.9959 7.28443L63.5071 10.997ZM62.6458 17.4652L58.6808 16.9372C58.4396 18.748 59.456 20.4921 61.1504 21.1751C62.8447 21.8581 64.7865 21.3063 65.8686 19.8344L62.6458 17.4652ZM66.5143 12.203L68.0032 8.49037C66.31 7.8114 64.372 8.36394 63.2915 9.83369L66.5143 12.203ZM67.94 12.7747L71.1357 15.1804C71.8845 14.1857 72.1274 12.899 71.7929 11.6998C71.4583 10.5005 70.5844 9.52548 69.4288 9.06207L67.94 12.7747ZM62.5723 19.9051L61.0835 23.6177C62.761 24.2904 64.6811 23.7547 65.7681 22.3108L62.5723 19.9051ZM61.169 19.3424L57.1972 18.8682C56.9827 20.6648 58.0009 22.3815 59.6802 23.055L61.169 19.3424ZM61.9143 13.0992L65.8861 13.5733C66.1007 11.7754 65.0808 10.0576 63.3996 9.38522C61.7185 8.71284 59.7953 9.25362 58.7109 10.7037L61.9143 13.0992ZM58.1506 18.132L56.6618 21.8446C58.3436 22.519 60.2688 21.9786 61.354 20.5275L58.1506 18.132ZM56.7473 17.5692L52.7742 17.1055C52.5649 18.8987 53.5828 20.6098 55.2584 21.2818L56.7473 17.5692ZM57.7823 8.70128L59.2711 4.98868C58.1147 4.52493 56.8082 4.62654 55.7374 5.2635C54.6666 5.90045 53.9537 7.00002 53.8093 8.23756L57.7823 8.70128ZM59.2525 9.29085L63.2193 9.80474C63.4537 7.99567 62.4344 6.25721 60.7413 5.57825L59.2525 9.29085ZM58.4134 15.7679L54.4466 15.254C54.2117 17.067 55.2359 18.8086 56.9345 19.4845C58.6331 20.1604 60.5739 19.5987 61.6488 18.1199L58.4134 15.7679ZM62.2486 10.4923L60.7597 14.2049L62.0183 14.7096L63.5071 10.997L64.9959 7.28443L63.7374 6.77972L62.2486 10.4923ZM63.5071 10.997L59.5421 10.469L58.6808 16.9372L62.6458 17.4652L66.6108 17.9932L67.4721 11.525L63.5071 10.997ZM62.6458 17.4652L65.8686 19.8344L69.7372 14.5723L66.5143 12.203L63.2915 9.83369L59.423 15.0959L62.6458 17.4652ZM66.5143 12.203L65.0255 15.9156L66.4512 16.4873L67.94 12.7747L69.4288 9.06207L68.0032 8.49037L66.5143 12.203ZM67.94 12.7747L64.7442 10.369L59.3766 17.4995L62.5723 19.9051L65.7681 22.3108L71.1357 15.1804L67.94 12.7747ZM62.5723 19.9051L64.0612 16.1925L62.6578 15.6298L61.169 19.3424L59.6802 23.055L61.0835 23.6177L62.5723 19.9051ZM61.169 19.3424L65.1408 19.8165L65.8861 13.5733L61.9143 13.0992L57.9425 12.6251L57.1972 18.8682L61.169 19.3424ZM61.9143 13.0992L58.7109 10.7037L54.9473 15.7364L58.1506 18.132L61.354 20.5275L65.1176 15.4947L61.9143 13.0992ZM58.1506 18.132L59.6394 14.4194L58.2361 13.8566L56.7473 17.5692L55.2584 21.2818L56.6618 21.8446L58.1506 18.132ZM56.7473 17.5692L60.7203 18.0329L61.7553 9.165L57.7823 8.70128L53.8093 8.23756L52.7742 17.1055L56.7473 17.5692ZM57.7823 8.70128L56.2935 12.4139L57.7637 13.0035L59.2525 9.29085L60.7413 5.57825L59.2711 4.98868L57.7823 8.70128ZM59.2525 9.29085L55.2856 8.77696L54.4466 15.254L58.4134 15.7679L62.3803 16.2818L63.2193 9.80474L59.2525 9.29085ZM58.4134 15.7679L61.6488 18.1199L65.484 12.8443L62.2486 10.4923L59.0131 8.1403L55.178 13.4159L58.4134 15.7679ZM71.6045 15.0268L74.8998 17.2941C75.5011 16.4202 75.7307 15.3431 75.5379 14.2999C75.3451 13.2567 74.7458 12.3328 73.8719 11.7315L71.6045 15.0268ZM66.7206 22.1248L64.4532 25.4201C66.2731 26.6724 68.7636 26.2122 70.0159 24.3922L66.7206 22.1248ZM65.4552 21.2542L62.1599 18.9868C61.5585 19.8608 61.329 20.9378 61.5218 21.981C61.7145 23.0242 62.3138 23.9481 63.1878 24.5495L65.4552 21.2542ZM70.3391 14.1561L72.6065 10.8608C70.7865 9.60855 68.296 10.0688 67.0438 11.8887L70.3391 14.1561ZM71.6045 15.0268L68.3092 12.7594L63.4253 19.8575L66.7206 22.1248L70.0159 24.3922L74.8998 17.2941L71.6045 15.0268ZM66.7206 22.1248L68.9879 18.8295L67.7225 17.9589L65.4552 21.2542L63.1878 24.5495L64.4532 25.4201L66.7206 22.1248ZM65.4552 21.2542L68.7505 23.5215L73.6344 16.4235L70.3391 14.1561L67.0438 11.8887L62.1599 18.9868L65.4552 21.2542ZM70.3391 14.1561L68.0717 17.4514L69.3371 18.3221L71.6045 15.0268L73.8719 11.7315L72.6065 10.8608L70.3391 14.1561ZM71.3951 21.8132L74.1708 18.933C73.407 18.1968 72.3819 17.7943 71.3213 17.8139C70.2606 17.8335 69.2511 18.2736 68.515 19.0375L71.3951 21.8132ZM69.0802 24.2153L66.3045 27.0954C67.0684 27.8316 68.0934 28.2342 69.1541 28.2146C70.2147 28.195 71.2242 27.7548 71.9604 26.991L69.0802 24.2153ZM67.9742 23.1494L65.094 20.3737C63.561 21.9644 63.6078 24.4966 65.1985 26.0296L67.9742 23.1494ZM73.9531 16.9455L76.7288 14.0653C75.9649 13.3291 74.9399 12.9266 73.8792 12.9462C72.8185 12.9658 71.8091 13.4059 71.0729 14.1698L73.9531 16.9455ZM72.3111 20.8627L69.4309 18.087C67.898 19.6777 67.9447 22.2099 69.5354 23.7429L72.3111 20.8627ZM75.7588 22.3521L72.8786 19.5764L75.7588 22.3521ZM74.1431 18.9618L76.9188 16.0816C76.1549 15.3455 75.1299 14.9429 74.0692 14.9625C73.0085 14.9821 71.9991 15.4222 71.2629 16.1861L74.1431 18.9618ZM71.3951 21.8132L68.515 19.0375L66.2 21.4396L69.0802 24.2153L71.9604 26.991L74.2753 24.5889L71.3951 21.8132ZM69.0802 24.2153L71.8559 21.3351L70.7499 20.2692L67.9742 23.1494L65.1985 26.0296L66.3045 27.0954L69.0802 24.2153ZM67.9742 23.1494L70.8544 25.9251L76.8333 19.7212L73.9531 16.9455L71.0729 14.1698L65.094 20.3737L67.9742 23.1494ZM73.9531 16.9455L71.1774 19.8257L73.6572 22.2155L76.4329 19.3354L79.2086 16.4552L76.7288 14.0653L73.9531 16.9455ZM76.4329 19.3354L73.6572 22.2155C73.9453 22.4932 73.7016 22.3977 73.6389 21.8666C73.6056 21.5842 73.6415 21.2866 73.7405 21.0222C73.8347 20.7707 73.9498 20.6438 73.9673 20.6256L76.8475 23.4013L79.7277 26.177C81.0212 24.8348 81.8284 23.0027 81.5839 20.9297C81.3577 19.0119 80.303 17.5099 79.2086 16.4552L76.4329 19.3354ZM76.8475 23.4013L73.9673 20.6256C73.9941 20.5978 74.1209 20.4773 74.3669 20.3751C74.624 20.2683 74.9131 20.2229 75.1883 20.2441C75.711 20.2845 75.816 20.5185 75.5447 20.257L72.769 23.1372L69.9933 26.0174C71.1044 27.0882 72.6533 28.0721 74.5719 28.2204C76.6343 28.3797 78.4329 27.5206 79.7277 26.177L76.8475 23.4013ZM72.769 23.1372L75.5447 20.257L74.1708 18.933L71.3951 21.8132L68.6194 24.6934L69.9933 26.0174L72.769 23.1372ZM72.3111 20.8627L69.5354 23.7429L70.8488 25.0086L73.6245 22.1285L76.4002 19.2483L75.0868 17.9826L72.3111 20.8627ZM73.6245 22.1285L70.8488 25.0086C71.6071 25.7395 72.792 26.5781 74.3772 26.7349C76.1484 26.9102 77.6413 26.1631 78.639 25.1278L75.7588 22.3521L72.8786 19.5764C73.0569 19.3914 73.3531 19.1501 73.7842 18.9748C74.2296 18.7936 74.7087 18.7287 75.1651 18.7738C75.6035 18.8172 75.9276 18.952 76.1198 19.0563C76.3075 19.1582 76.3971 19.2453 76.4002 19.2483L73.6245 22.1285ZM75.7588 22.3521L78.639 25.1278C79.6311 24.0983 80.338 22.5759 80.0889 20.7935C79.8677 19.2102 78.9752 18.0634 78.2322 17.3474L75.4564 20.2275L72.6807 23.1077C72.6792 23.1062 72.6586 23.0863 72.6258 23.0463C72.5932 23.0063 72.5437 22.9406 72.4882 22.8476C72.3778 22.6628 72.2277 22.3426 72.1659 21.9006C72.1014 21.439 72.1493 20.9512 72.3161 20.4952C72.4769 20.0555 72.7076 19.7538 72.8786 19.5764L75.7588 22.3521ZM75.4564 20.2275L78.2322 17.3474L76.9188 16.0816L74.1431 18.9618L71.3674 21.842L72.6807 23.1077L75.4564 20.2275ZM74.1431 18.9618L71.2629 16.1861L69.4309 18.087L72.3111 20.8627L75.1913 23.6384L77.0233 21.7375L74.1431 18.9618ZM80.5169 23.8512L83.8798 21.6854C82.6837 19.8281 80.2084
24419.2921 78.3511 20.4883L80.5169 23.8512ZM83.6746 28.7543L85.8405 32.1173C86.7324 31.5428 87.3596 30.6377 87.5841 29.6008C87.8086 28.564 87.612 27.4804 87.0376 26.5885L83.6746 28.7543ZM82.5447 29.482L79.1818 31.6479C80.3779 33.5052 82.8532 34.0411 84.7105 32.845L82.5447 29.482ZM80.2056 25.8501L83.5685 23.6843C82.9941 22.7924 82.0889 22.1652 81.0521 21.9407C80.0153 21.7162 78.9317 21.9128 78.0398 22.4872L80.2056 25.8501ZM78.3896 27.0196L76.2238 23.6567C74.3665 24.8529 73.8306 27.3282 75.0267 29.1855L78.3896 27.0196ZM80.3584 30.0765L82.5242 33.4395C83.4161 32.865 84.0433 31.9599 84.2678 30.923C84.4923 29.8862 84.2957 28.8026 83.7213 27.9107L80.3584 30.0765ZM79.2284 30.8042L75.8655 32.9701C77.0617 34.8274 79.537 35.3633 81.3942 34.1672L79.2284 30.8042ZM77.2597 27.7474L80.6226 25.5815C79.4265 23.7242 76.9512 23.1883 75.0939 24.3844L77.2597 27.7474ZM75.2218 29.0598L73.056 25.6969C71.1987 26.8931 70.6627 29.3684 71.8589 31.2257L75.2218 29.0598ZM77.5609 32.6918L79.7267 36.0547C81.584 34.8586 82.1199 32.3833 80.9238 30.526L77.5609 32.6918ZM76.4309 33.4195L73.068 35.5853C73.6424 36.4772 74.5476 37.1044 75.5844 37.3289C76.6213 37.5534 77.7048 37.3568 78.5967 36.7824L76.4309 33.4195ZM73.2732 28.5164L71.1073 25.1534C69.25 26.3496 68.7141 28.8249 69.9102 30.6822L73.2732 28.5164ZM80.5169 23.8512L77.154 26.017L80.3117 30.9202L83.6746 28.7543L87.0376 26.5885L83.8798 21.6854L80.5169 23.8512ZM83.6746 28.7543L81.5088 25.3914L80.3789 26.1191L82.5447 29.482L84.7105 32.845L85.8405 32.1173L83.6746 28.7543ZM82.5447 29.482L85.9076 27.3162L83.5685 23.6843L80.2056 25.8501L76.8427 28.0159L79.1818 31.6479L82.5447 29.482ZM80.2056 25.8501L78.0398 22.4872L76.2238 23.6567L78.3896 27.0196L80.5555 30.3826L82.3714 29.213L80.2056 25.8501ZM78.3896 27.0196L75.0267 29.1855L76.9955 32.2423L80.3584 30.0765L83.7213 27.9107L81.7526 24.8538L78.3896 27.0196ZM80.3584 30.0765L78.1926 26.7136L77.0626 27.4413L79.2284 30.8042L81.3942 34.1672L82.5242 33.4395L80.3584 30.0765ZM79.2284 30.8042L82.5914 28.6384L80.6226 25.5815L77.2597 27.7474L73.8968 29.9132L75.8655 32.9701L79.2284 30.8042ZM77.2597 27.7474L75.0939 24.3844L73.056 25.6969L75.2218 29.0598L77.3876 32.4228L79.4255 31.1103L77.2597 27.7474ZM75.2218 29.0598L71.8589 31.2257L74.1979 34.8576L77.5609 32.6918L80.9238 30.526L78.5847 26.894L75.2218 29.0598ZM77.5609 32.6918L75.395 29.3289L74.2651 30.0566L76.4309 33.4195L78.5967 36.7824L79.7267 36.0547L77.5609 32.6918ZM76.4309 33.4195L79.7938 31.2537L76.6361 26.3505L73.2732 28.5164L69.9102 30.6822L73.068 35.5853L76.4309 33.4195ZM73.2732 28.5164L75.439 31.8793L82.6827 27.2141L80.5169 23.8512L78.3511 20.4883L71.1073 25.1534L73.2732 28.5164ZM86.66 41.0792L82.8101 42.1647C83.098 43.1858 83.7797 44.0506 84.7053 44.5691C85.6309 45.0875 86.7245 45.217 87.7455 44.9291L86.66 41.0792ZM85.9077 38.4112L89.7576 37.3257C89.4697 36.3047 88.788 35.4398 87.8624 34.9214C86.9369 34.403 85.8433 34.2734 84.8222 34.5613L85.9077 38.4112ZM78.9086 40.3847L75.0588 41.4702C75.6583 43.5965 77.8679 44.8341 79.9942 44.2346L78.9086 40.3847ZM78.4918 38.9063L77.4063 35.0565C75.2801 35.656 74.0424 37.8656 74.6419 39.9919L78.4918 38.9063ZM85.4909 36.9329L86.5764 40.7828C87.5975 40.4949 88.4623 39.8132 88.9808 38.8876C89.4992 37.962 89.6287 36.8684 89.3408 35.8474L85.4909 36.9329ZM84.7386 34.2649L83.6531 30.415C81.5269 31.0145 80.2892 33.2242 80.8887 35.3504L84.7386 34.2649ZM86.0322 33.9002L89.8821 32.8147C89.5942 31.7936 88.9125 30.9287 87.9869 30.4103C87.0613 29.8919 85.9677 29.7624 84.9467 30.0503L86.0322 33.9002ZM87.9536 40.7145L89.0391 44.5644C91.1653 43.9649 92.403 41.7552 91.8035 39.629L87.9536 40.7145ZM86.66 41.0792L90.5099 39.9937L89.7576 37.3257L85.9077 38.4112L82.0579 39.4967L82.8101 42.1647L86.66 41.0792ZM85.9077 38.4112L84.8222 34.5613L77.8231 36.5348L78.9086 40.3847L79.9942 44.2346L86.9933 42.2611L85.9077 38.4112ZM78.9086 40.3847L82.7585 39.2992L82.3417 37.8208L78.4918 38.9063L74.6419 39.9919L75.0588 41.4702L78.9086 40.3847ZM78.4918 38.9063L79.5773 42.7562L86.5764 40.7828L85.4909 36.9329L84.4054 33.083L77.4063 35.0565L78.4918 38.9063ZM85.4909 36.9329L89.3408 35.8474L88.5885 33.1794L84.7386 34.2649L80.8887 35.3504L81.641 38.0184L85.4909 36.9329ZM84.7386 34.2649L85.8242 38.1148L87.1177 37.7501L86.0322 33.9002L84.9467 30.0503L83.6531 3
2440.415L84.7386 34.2649ZM86.0322 33.9002L82.1823 34.9857L84.1037 41.8L87.9536 40.7145L91.8035 39.629L89.8821 32.8147L86.0322 33.9002ZM87.9536 40.7145L86.868 36.8646L85.5745 37.2293L86.66 41.0792L87.7455 44.9291L89.0391 44.5644L87.9536 40.7145ZM87.0717 46.7809L83.0737 46.9082L87.0717 46.7809ZM83.8617 42.8731L83.989 46.871C84.4395 46.8567 84.5536 46.9895 84.5036 46.947C84.4838 46.9301 84.4566 46.898 84.4376 46.858C84.4184 46.8178 84.4273 46.8114 84.429 46.865L88.427 46.7378L92.4249 46.6105C92.2693 41.7215 88.1855 38.7334 83.7345 38.8751L83.8617 42.8731ZM88.427 46.7378L84.429 46.865C84.4307 46.9187 84.4215 46.9128 84.438 46.8715C84.4544 46.8303 84.4795 46.7966 84.4983 46.7785C84.5454 46.7328 84.44 46.8727 83.9895 46.887L84.1167 50.885L84.244 54.883C88.695 54.7413 92.5806 51.4995 92.4249 46.6105L88.427 46.7378ZM84.1167 50.885L83.9895 46.887C83.539 46.9014 83.4248 46.7685 83.4748 46.8111C83.4947 46.828 83.5219 46.86 83.5409 46.9C83.56 46.9403 83.5512 46.9467 83.5494 46.893L79.5515 47.0203L75.5535 47.1475C75.7091 52.0365 79.7929 55.0246 84.244 54.883L84.1167 50.885ZM79.5515 47.0203L83.5494 46.893C83.5477 46.8394 83.557 46.8452 83.5405 46.8866C83.524 46.9277 83.4989 46.9614 83.4802 46.9796C83.433 47.0252 83.5385 46.8854 83.989 46.871L83.8617 42.8731L83.7345 38.8751C79.2834 39.0168 75.3979 42.2585 75.5535 47.1475L79.5515 47.0203ZM84.0679 49.3498L84.1951 53.3477C85.8285 53.2958 87.5418 52.795 88.9092 51.6093C90.3393 50.3693 91.1311 48.5863 91.0696 46.6537L87.0717 46.7809L83.0737 46.9082C83.0672 46.7051 83.1039 46.4485 83.2211 46.1811C83.3378 45.9147 83.5036 45.7079 83.6682 45.5651C83.9899 45.2862 84.1783 45.3442 83.9406 45.3518L84.0679 49.3498ZM87.0717 46.7809L91.0696 46.6537C91.0081 44.721 90.1045 42.992 88.5984 41.8454C87.1584 40.7491 85.4167 40.3583 83.7833 40.4103L83.9106 44.4083L84.0378 48.4062C84.2755 48.3987 84.0912 48.4686 83.7524 48.2107C83.579 48.0786 83.4004 47.8828 83.267 47.6244C83.1331 47.365 83.0801 47.1112 83.0737 46.9082L87.0717 46.7809ZM83.9106 44.4083L83.7833 40.4103C82.1499 40.4623 80.4366 40.9631 79.0692 42.1487C77.6391 43.3888 76.8473 45.1717 76.9088 47.1044L80.9068 46.9771L84.9048 46.8499C84.9112 47.0529 84.8745 47.3096 84.7574 47.5769C84.6406 47.8434 84.4749 48.0501 84.3102 48.1929C83.9885 48.4718 83.8002 48.4138 84.0378 48.4062L83.9106 44.4083ZM80.9068 46.9771L76.9088 47.1044C76.9703 49.037 77.8739 50.766 79.38 51.9126C80.82 53.0089 82.5617 53.3997 84.1951 53.3477L84.0679 49.3498L83.9406 45.3518C83.703 45.3594 83.8872 45.2895 84.226 45.5474C84.3994 45.6794 84.578 45.8752 84.7114 46.1337C84.8453 46.3931 84.8983 46.6469 84.9048 46.8499L80.9068 46.9771ZM79.2112 54.594L80.4435 50.7886C79.4343 50.4617 78.3365 50.5492 77.3917 51.0318C76.447 51.5143 75.7326 52.3524 75.4058 53.3617L79.2112 54.594ZM87.4082 57.2483L91.2136 58.4806C91.8942 56.3789 90.7422 54.1235 88.6405 53.4429L87.4082 57.2483ZM80.0049 56.4277L81.2372 52.6222C79.1355 51.9417 76.8801 53.0937 76.1995 55.1954L80.0049 56.4277ZM85.6903 58.2687L89.4957 59.501C90.1763 57.3993 89.0243 55.1439 86.9226 54.4633L85.6903 58.2687ZM79.2112 54.594L77.979 58.3995L86.1759 61.0538L87.4082 57.2483L88.6405 53.4429L80.4435 50.7886L79.2112 54.594ZM87.4082 57.2483L83.6027 56.0161L82.7155 58.756L86.5209 59.9883L90.3264 61.2206L91.2136 58.4806L87.4082 57.2483ZM86.5209 59.9883L82.7155 58.756C82.6379 58.9956 82.5622 59.1014 82.5422 59.1267C82.5264 59.1466 82.548 59.1148 82.6133 59.0814C82.6785 59.0481 82.7185 59.0484 82.6972 59.0494C82.6691 59.0506 82.547 59.0504 82.3202 58.977L81.0879 62.7824L79.8556 66.5879C81.9153 67.2548 84.1931 67.2577 86.2523 66.2059C88.313 65.1533 89.6526 63.3012 90.3264 61.2206L86.5209 59.9883ZM81.0879 62.7824L82.3202 58.977C82.0934 58.9035 81.9943 58.8321 81.9723 58.8146C81.9556 58.8014 81.9882 58.8246 82.0215 58.8898C82.0548 58.9551 82.0537 58.9935 82.0525 58.9682C82.0511 58.9359 82.0519 58.8058 82.1294 58.5662L78.324 57.3339L74.5185 56.1016C73.8448 58.1823 73.8445 60.4681 74.897 62.5288C75.9489 64.588 77.796 65.9209 79.8556 66.5879L81.0879 62.7824ZM78.324 57.3339L82.1294 58.5662L83.0167 55.8263L79.2112 54.594L75.4058 53.3617L74.5185 56.1016L78.324 57.3339ZM80.0049 56.4277L76.1995 55.1954L75.7743 56.5083L79.5798 57.7406L83.3853 58.9729L83.8104 57.66L80.0049 56.4277ZM79.5798 57.7406L75.7743 56.5083C75.2176 58.2276 75.2465 60.1697 76.2233 61.9178C77.1746 63.62 78.7441 64.6386 80.3214 65.1494L81.5537 61.3439L82.786 57.5385C82.6395 57.491 82.9484 57.5527 83.2069 58.0153C83.3312 58.2377 83.3928 58.4708 83.4062 58.6736C83.4191 58.868 83.3845 58.9752 83.3853 58.9729L79.5798 57.7406ZM81.5537 61.3439L80.3214 65.1494C81.8992 65.6603 83.7746 65.7602 85.5515 64.9283C87.3733 64.0754 88.5217 62.5089 89.0743 60.8025L85.2688 59.5702L81.4634 58.3379C81.4592 58.3509 81.49 58.2498 81.6111 58.1025C81.7381 57.9482 81.9244 57.7931 82.1594 57.6831C82.6502 57.4533 82.9435 57.5895 82.786 57.5385L81.5537 61.3439ZM85.2688 59.5702L89.0743 60.8025L89.4957 59.501L85.6903 58.2687L81.8848 57.0365L81.4634 58.3379L85.2688 59.5702ZM85.6903 58.2687L86.9226 54.4633L81.2372 52.6222L80.0049 56.4277L78.7727 60.2332L84.458 62.0742L85.6903 58.2687ZM83.2671 68.0396L81.3241 71.536C82.2514 72.0513 83.3454 72.1771 84.3655 71.8858C85.3856 71.5945 86.2482 70.9098 86.7635 69.9825L83.2671 68.0396ZM75.7358 63.8544L72.2394 61.9114C71.1663 63.8424 71.8618 66.2777 73.7928 67.3508L75.7358 63.8544ZM76.4819 62.5118L78.4249 59.0154C76.4939 57.9423 74.0586 58.6378 72.9855 60.5688L76.4819 62.5118ZM84.0132 66.6969L87.5096 68.6399C88.5826 66.7089 87.8871 64.2736 85.9561 63.2005L84.0132 66.6969ZM83.2671 68.0396L85.21 64.5432L77.6788 60.358L75.7358 63.8544L73.7928 67.3508L81.3241 71.536L83.2671 68.0396ZM75.7358 63.8544L79.2322 65.7974L79.9783 64.4548L76.4819 62.5118L72.9855 60.5688L72.2394 61.9114L75.7358 63.8544ZM76.4819 62.5118L74.5389 66.0082L82.0702 70.1934L84.0132 66.6969L85.9561 63.2005L78.4249 59.0154L76.4819 62.5118ZM84.0132 66.6969L80.5168 64.754L79.7707 66.0966L83.2671 68.0396L86.7635 69.9825L87.5096 68.6399L84.0132 66.6969ZM76.7123 65.5366L80.7096 65.3899C80.6367 63.4037 79.1165 61.7723 77.1404 61.5596L76.7123 65.5366ZM76.7683 67.0613L76.4328 71.0472C77.5735 71.1432 78.7007 70.7459 79.5291 69.9558C80.3574 69.1657 80.8076 68.0585 80.7656 66.9146L76.7683 67.0613ZM74.0585 70.261L71.625 73.4356L74.0585 70.261ZM76.4253 69.3234L78.9355 72.4377L78.9421 72.4324L76.4253 69.3234ZM76.9158 74.2657L72.9223 74.4945C73.0362 76.4818 74.594 78.0829 76.5774 78.2513L76.9158 74.2657ZM76.8306 72.7791L77.1544 68.7922C76.0012 68.6986 74.8639 69.1088 74.036 69.9172C73.2082 70.7255 72.771 71.8528 72.8371 73.0079L76.8306 72.7791ZM79.1576 69.921L76.7241 73.0956L79.1576 69.921ZM77.1145 70.6532L74.5568 67.5777L74.549 67.5843L77.1145 70.6532ZM73.2624 71.5559L70.8289 74.7305L73.2624 71.5559ZM76.7123 65.5366L72.715 65.6834L72.771 67.2081L76.7683 67.0613L80.76
24456 66.9146L80.7096 65.3899L76.7123 65.5366ZM76.7683 67.0613L77.1038 63.0754C74.8689 62.8873 72.4707 63.6667 70.9111 65.7013L74.0857 68.1348L77.2603 70.5683C77.1032 70.7732 76.902 70.9122 76.7178 70.9856C76.5426 71.0555 76.4345 71.0474 76.4328 71.0472L76.7683 67.0613ZM74.0857 68.1348L70.9111 65.7013C70.2858 66.517 69.6652 67.6972 69.6071 69.1371C69.5419 70.7547 70.2213 72.3596 71.625 73.4356L74.0585 70.261L76.492 67.0864C76.8089 67.3293 77.1231 67.6874 77.3395 68.1601C77.5534 68.6274 77.6158 69.0842 77.6006 69.4595C77.5726 70.155 77.2942 70.524 77.2603 70.5683L74.0857 68.1348ZM74.0585 70.261L71.625 73.4356C72.3848 74.018 73.376 74.4433 74.534 74.4557C75.6054 74.4672 76.4526 74.1193 76.9751 73.8452C77.8078 73.4083 78.7023 72.6257 78.9355 72.4377L76.4253 69.3234L73.9151 66.2092C73.562 66.4937 73.4517 66.5904 73.2583 66.7413C73.0922 66.871 73.1209 66.8331 73.2586 66.7609C73.4049 66.6841 73.8967 66.4484 74.6199 66.4562C75.4297 66.4649 76.0798 66.7705 76.492 67.0864L74.0585 70.261ZM76.4253 69.3234L78.9421 72.4324C79.2005 72.2232 79.3415 72.1151 79.4493 72.0429C79.5553 71.972 79.5079 72.0202 79.3403 72.0761C79.1438 72.1417 78.7924 72.2136 78.3587 72.1455C77.9204 72.0767 77.6318 71.9014 77.5128 71.8102L79.9463 68.6356L82.3798 65.461C80.611 64.1051 78.5931 63.8919 76.8084 64.4873C75.4266 64.9483 74.3365 65.868 73.9084 66.2145L76.4253 69.3234ZM79.9463 68.6356L77.5128 71.8102C77.366 71.6977 77.2039 71.5196 77.0827 71.2777C76.9634 71.0398 76.9178 70.8088 76.9125 70.6238C76.9026 70.2717 77.0293 70.166 76.9571 70.2603L80.1317 72.6938L83.3063 75.1273C84.2926 73.8406 84.9599 72.1913 84.9094 70.3982C84.8564 68.5199 84.0055 66.7072 82.3798 65.461L79.9463 68.6356ZM80.1317 72.6938L76.9571 70.2603C76.8945 70.3419 76.8669 70.341 76.91 70.3211C76.9421 70.3062 77.0543 70.263 77.2542 70.28L76.9158 74.2657L76.5774 78.2513C79.0988 78.4654 81.64 77.301 83.3063 75.1273L80.1317 72.6938ZM76.9158 74.2657L80.9092 74.0369L80.824 72.5503L76.8306 72.7791L72.8371 73.0079L72.9223 74.4945L76.9158 74.2657ZM76.8306 72.7791L76.5068 76.766C78.2734 76.9095 80.6065 76.4992 82.2974 74.2934L79.1228 71.8599L75.9482 69.4264C76.0051 69.3522 76.1033 69.2448 76.2507 69.1357C76.3996 69.0256 76.5627 68.9404 76.7248 68.8821C77.0397 68.769 77.2318 68.7985 77.1544 68.7922L76.8306 72.7791ZM79.1228 71.8599L82.2974 74.2934C82.9629 73.4252 83.5282 72.2394 83.5539 70.8452C83.5814 69.3486 82.9581 67.7943 81.5911 66.7464L79.1576 69.921L76.7241 73.0956C75.8999 72.4638 75.5402 71.5123 75.5552 70.6978C75.5683 69.9857 75.8448 69.5613 75.9482 69.4264L79.1228 71.8599ZM79.1576 69.921L81.5911 66.7464C80.9595 66.2623 80.105 65.8376 79.0522 65.7483C78.0304 65.6617 77.1849 65.9225 76.6075 66.1835C75.6771 66.6041 74.8441 67.3388 74.5568 67.5778L77.1145 70.6532L79.6723 73.7286C79.9201 73.5225 80.0426 73.4223 80.1321 73.3554C80.2296 73.2825 80.1307 73.3703 79.9029 73.4733C79.6465 73.5892 79.1022 73.7813 78.3764 73.7197C77.6194 73.6556 77.0556 73.3497 76.7241 73.0956L79.1576 69.921ZM77.1145 70.6532L74.549 67.5843C74.232 67.8493 74.0656 67.9896 73.9004 68.1104C73.7433 68.2251 73.7433 68.2029 73.8623 68.1558C74.0087 68.0978 74.3475 67.9981 74.8002 68.0509C75.2684 68.1054 75.5771 68.2902 75.696 68.3813L73.2624 71.5559L70.8289 74.7305C71.6907 75.3911 72.7155 75.8621 73.8743 75.9971C75.0174 76.1303 76.0212 75.9053 76.8082 75.5937C78.1792 75.0506 79.3096 74.0317 79.68 73.7221L77.1145 70.6532ZM73.2624 71.5559L75.696 68.3813C75.8372 68.4896 75.9938 68.6634 76.1085 68.8983C76.2204 69.1271 76.2574 69.341 76.2602 69.4992C76.2654 69.7905 76.1655 69.8464 76.2514 69.7344L73.0768 67.3009L69.9022 64.8674C68.0266 67.3142 67.0937 71.8672 70.8289 74.7305L73.2624 71.5559ZM73.0768 67.3009L76.2514 69.7344C76.2826 69.6937 76.3247 69.6493 76.3756 69.6077C76.4267 69.5659 76.4747 69.5366 76.5107 69.519C76.5475 69.5009 76.5552 69.503 76.5267 69.5088C76.4981 69.5146 76.4146 69.5277 76.2842 69.5137L76.7123 65.5366L77.1404 61.5596C74.1703 61.2399 71.4503 62.8479 69.9022 64.8674L73.0768 67.3009ZM68.4441 73.8383L65.9326 70.7251L68.4441 73.8383ZM67.9016 76.3574L69.2718 80.1154C70.3161 79.7346 71.155 78.9365 71.5871 77.9123C72.0192 76.8881 72.0056 75.7303 71.5496 74.7165L67.9016 76.3574ZM66.472 76.8787L62.7276 78.2857C63.4993 80.3393 65.781 81.3881 67.8421 80.6367L66.472 76.8787ZM68.9283 79.9233L65.5451 77.7894C64.3747 79.6449 64.9172 82.0968 66.7611 83.2854L68.9283 79.9233ZM69.7401 78.6363L72.1154 75.4179C71.221 74.7578 70.0922 74.4996 68.9998 74.7053C67.9074 74.9111 66.9499 75.5621 66.3569 76.5023L69.7401 78.6363ZM72.2672 74.7165L75.3804 72.2049C74.3614 70.9419 72.9442 69.8853 71.201 69.4969C69.3773 69.0905 67.4608 69.4921 65.9326 70.7251L68.4441 73.8383L70.9557 76.9514C70.7738 77.0982 70.5256 77.2299 70.2284 77.2974C69.9341 77.3643 69.667 77.3513 69.461 77.3053C69.0618 77.2164 69.005 77.0435 69.154 77.2281L72.2672 74.7165ZM68.4441 73.8383L65.9326 70.7251C64.8842 71.5708
24464.1008 72.7468 63.8043 74.1542C63.5125 75.5395 63.7482 76.8746 64.2537 77.9983L67.9016 76.3574L71.5496 74.7165C71.6276 74.8899 71.7424 75.2819 71.6325 75.8035C71.5179 76.3471 71.2196 76.7386 70.9557 76.9514L68.4441 73.8383ZM67.9016 76.3574L66.5315 72.5994L65.1018 73.1206L66.472 76.8787L67.8421 80.6367L69.2718 80.1154L67.9016 76.3574ZM66.472 76.8787L70.2163 75.4716C70.1975 75.4215 70.2043 75.4202 70.2076 75.4644C70.2111 75.5115 70.2087 75.5886 70.1846 75.6815C70.1602 75.7755 70.1228 75.8498 70.0912 75.897C70.0611 75.9421 70.0533 75.9372 70.1043 75.8961L67.5927 72.7829L65.0811 69.6697C63.8116 70.6939 62.8611 72.0531 62.4409 73.6725C62.0243 75.2785 62.1975 76.8751 62.7276 78.2857L66.472 76.8787ZM67.5927 72.7829L70.1043 75.8961C70.1323 75.8735 70.1206 75.8901 70.0681 75.9042C70.0163 75.9181 69.9695 75.9174 69.9435 75.9132C69.8803 75.903 70.0614 75.9066 70.3494 76.2636L73.4626 73.752L76.5758 71.2405C73.8058 67.8069 68.8895 66.5973 65.0811 69.6697L67.5927 72.7829ZM73.4626 73.752L70.3494 76.2636C70.6375 76.6207 70.6027 76.7984 70.6061 76.7346C70.6075 76.7083 70.6167 76.6623 70.6412 76.6146C70.6661 76.5663 70.6848 76.5584 70.6569 76.581L73.1684 79.6942L75.68 82.8073C79.4884 79.7349 79.3458 74.674 76.5758 71.2405L73.4626 73.752ZM73.1684 79.6942L70.6569 76.581C70.6058 76.6221 70.6027 76.6135 70.6531 76.5936C70.706 76.5726 70.7865 76.5519 70.8835 76.5479C70.9795 76.544 71.0553 76.558 71.1006 76.5713C71.1431 76.5838 71.1404 76.5902 71.0954 76.5613L68.9283 79.9233L66.7611 83.2854C68.0277 84.1018 69.5516 84.6088 71.2094 84.5413C72.881 84.4731 74.4105 83.8315 75.68 82.8073L73.1684 79.6942ZM68.9283 79.9233L72.3115 82.0573L73.1233 80.7702L69.7401 78.6363L66.3569 76.5023L65.5451 77.7894L68.9283 79.9233ZM69.7401 78.6363L67.3648 81.8546C68.3562 82.5863 69.6113 83.0991 71.027 83.1068C72.4652 83.1147 73.7803 82.5977 74.8286 81.752L72.317 78.6388L69.8054 75.5256C70.0692 75.3128 70.515 75.1039 71.0705 75.107C71.6035 75.1099 71.9624 75.3049 72.1154 75.4179L69.7401 78.6363ZM72.317 78.6388L74.8286 81.752C76.3569 80.519 77.1547 78.7309 77.1432 76.8625C77.1323 75.0766 76.3993 73.4679 75.3804 72.2049L72.2672 74.7165L69.154 77.2281C69.3029 77.4127 69.1459 77.3206 69.1434 76.9117C69.1421 76.7006 69.1858 76.4368 69.3135 76.1633C69.4423 75.8871 69.6235 75.6723 69.8054 75.5256L72.317 78.6388ZM66.2936 79.2467L62.657 80.9124C62.8447 81.3222 62.7664 81.4789 62.7863 81.4164C62.7942 81.3915 62.8132 81.354 62.8427 81.321C62.8724 81.2878 62.8817 81.2935 62.8329 81.3158L64.4987 84.9524L66.1645 88.5891C70.6116 86.552 71.7848 81.6296 69.9302 77.5809L66.2936 79.2467ZM64.4987 84.9524L62.8329 81.3158C62.7841 81.3382 62.7859 81.3274 62.8305 81.3266C62.8748 81.3258 62.9156 81.3359 62.9396 81.3462C62.9999 81.372 62.8301 81.3289 62.6424 80.9191L59.0058 82.5849L55.3691 84.2507C57.2237 88.2995 61.7174 90.6261 66.1645 88.5891L64.4987 84.9524ZM59.0058 82.5849L62.6424 80.9191C62.4547 80.5093 62.533 80.3526 62.5131 80.4152C62.5052 80.44 62.4862 80.4775 62.4567 80.5106C62.427 80.5438 62.4177 80.5381 62.4665 80.5157L60.8007 76.8791L59.1349 73.2425C54.6877 75.2795 53.5146 80.2019 55.3691 84.2507L59.0058 82.5849ZM60.8007 76.8791L62.4665 80.5157C62.5152 80.4934 62.5135 80.5042 62.4689 80.505C62.4246 80.5057 62.3838 80.4956 62.3598 80.4854C62.2995 80.4596 62.4693 80.5027 62.657 80.9124L66.2936 79.2467L69.9302 77.5809C68.0757 73.5321 63.582 71.2054 59.1349 73.2425L60.8007 76.8791ZM60.4022 81.9452L56.7656 83.611C57.4462 85.0968 58.5715 86.4824 60.1942 87.2839C61.8913 88.122 63.8418 88.1615 65.5998 87.3563L63.934 83.7196L62.2682 80.083C62.4529 79.9984 62.7037 79.9328 62.9956 79.9373C63.2865 79.9417 63.5413 80.0145 63.7367 80.111C64.1185 80.2995 64.1379 80.4956 64.0389 80.2794L60.4022 81.9452ZM63.934 83.7196L65.5998 87.3563C67.3578 86.551 68.6018 85.0482 69.0756 83.2157C69.5286 81.4634 69.2143 79.7063 68.5338 78.2205L64.8971 79.8863L61.2605 81.5521C61.3595 81.7683 61.2237 81.6255 61.3303 81.2132C61.3848 81.0022 61.4962 80.7617 61.6828 80.5386C61.8701 80.3147 62.0836 80.1676 62.2682 80.083L63.934 83.7196ZM64.8971 79.8863L68.5338 78.2205C67.8532 76.7348 66.7279 75.3491 65.1052 74.5477C63.408 73.7095 61.4575 73.67 59.6996 74.4753L61.3654 78.1119L63.0312 81.7486C62.8465 81.8332 62.5956 81.8987 62.3038 81.8943C62.0129 81.8899 61.7581 81.8171 61.5627 81.7206C61.1809 81.532 61.1615 81.3359 61.2605 81.5521L64.8971 79.8863ZM61.3654 78.1119L59.6996 74.4753C57.9416 75.2805 56.6975 76.7833 56.2238 78.6159C55.7707 80.3681 56.085 82.1253 56.7656 83.611L60.4022 81.9452L64.0389 80.2794C63.9399 80.0633 64.0757 80.2061 63.9691 80.6183C63.9145 80.8293 63.8032 81.0698 63.6166 81.293C63.4293 81.5168 63.2158 81.664 63.0312 81.7486L61.3654 78.1119ZM52.4534 79.4296L51.7937 75.4843C50.1417 75.7606 48.8367 77.0369 48.5238 78.6824L52.4534 79.4296ZM54.0512 79.1624L57.5191 77.169C56.6862 75.7199 55.0401 74.9415 53.3915 75.2172L54.0512 79.1624ZM58.6323 87.132L59.292 91.0772C60.584 90.8612 61.6884 90.0262 62.2484 88.842C62.8084 87.6577 62.753 86.2743 62.1002 85.1386L58.6323 87.132ZM56.999 87.4051L53.5015 89.3461C54.3232 90.8268 55.9884 91.6296 57.6587 91.3503L56.999 87.4051ZM53.5512 81.1926L57.0487 79.2516C56.2275 77.7719 54.564 76.9691 52.8947 77.2469C51.2253 77.5247 49.9114 78.8229 49.6136 80.4888L53.5512 81.1926ZM52.3002 88.1908L52.9599 92.136C54.6278 91.8571 55.9402 90.5594 56.2378 88.8947L52.3002 88.1908ZM50.7379 88.452L46.8083 87.7049C46.5639 88.9901 46.9635 90.3136 47.8782 91.2488C48.793 92.1841 50.1072 92.613 51.3976 92.3972L50.7379 88.452ZM52.4534 79.4296L53.1131 83.3748L54.7109 83.1076L54.0512 79.1624L53.3915 75.2172L51.7937 75.4843L52.4534 79.4296ZM54.0512 79.1624L50.5833 81.1558L55.1644 89.1254L58.6323 87.132L62.1002 85.1386L57.5191 77.169L54.0512 79.1624ZM58.6323 87.132L57.9726 83.1868L56.3393 83.4599L56.999 87.4051L57.6587 91.3503L59.292 91.0772L58.6323 87.132ZM56.999 87.4051L60.4965 85.4641L57.0487 79.2516L53.5512 81.1926L50.0537 83.1337L53.5015 89.3461L56.999 87.4051ZM53.5512 81.1926L49.6136 80.4888L48.3
244626 87.4869L52.3002 88.1908L56.2378 88.8947L57.4888 81.8965L53.5512 81.1926ZM52.3002 88.1908L51.6405 84.2456L50.0782 84.5068L50.7379 88.452L51.3976 92.3972L52.9599 92.136L52.3002 88.1908ZM50.7379 88.452L54.6675 89.1992L56.383 80.1767L52.4534 79.4296L48.5238 78.6824L46.8083 87.7049L50.7379 88.452ZM47.7901 88.5033L47.5006 92.4928C48.5587 92.5696 49.6039 92.2229 50.4064 91.529C51.2089 90.8351 51.7028 89.8509 51.7796 88.7928L47.7901 88.5033ZM41.9734 88.0813L37.9839 87.7918C37.824 89.9952 39.4805 91.9109 41.6839 92.0708L41.9734 88.0813ZM42.0706 86.7408L42.3601 82.7513C40.1567 82.5914 38.241 84.248 38.0811 86.4513L42.0706 86.7408ZM46.3793 87.0534L46.0898 91.0429C48.2932 91.2028 50.2089 89.5462 50.3688 87.3429L46.3793 87.0534ZM46.5356 84.8991L50.5251 85.1886C50.6019 84.1305 50.2552 83.0852 49.5613 82.2828C48.8674 81.4803 47.8832 80.9864 46.8251 80.9096L46.5356 84.8991ZM42.9091 84.636L38.9196 84.3465C38.8429 85.4046 39.1896 86.4498 39.8834 87.2523C40.5773 88.0548 41.5616 88.5487 42.6197 88.6255L42.9091 84.636ZM43.0064 83.2955L43.2959 79.306C41.0925 79.1461 39.1768 80.8027 39.0169 83.006L43.0064 83.2955ZM46.6329 83.5586L46.3434 87.5481C48.5468 87.708 50.4625 86.0514 50.6224 83.8481L46.6329 83.5586ZM46.8083 81.141L50.7978 81.4304C50.8746 80.3724 50.5279 79.3271 49.834 78.5246C49.1401 77.7222 48.1558 77.2282 47.0978 77.1515L46.8083 81.141ZM42.4996 80.8283L38.5101 80.5389C38.4333 81.597 38.78 82.6422 39.4739 83.4447C40.1678 84.2471 41.1521 84.7411 42.2101 84.8179L42.4996 80.8283ZM42.5969 79.4879L42.8863 75.4984C40.683 75.3385 38.7672 76.9951 38.6074 79.1984L42.5969 79.4879ZM48.4136 79.9099L52.4031 80.1994C52.4799 79.1413 52.1332 78.0961 51.4393 77.2936C50.7454 76.4911 49.7611 75.9972 48.7031 75.9204L48.4136 79.9099ZM47.7901 88.5033L48.0795 84.5138L42.2628 84.0918L41.9734 88.0813L41.6839 92.0708L47.5006 92.4928L47.7901 88.5033ZM41.9734 88.0813L45.9629 88.3707L46.0601 87.0303L42.0706 86.7408L38.0811 86.4513L37.9839 87.7918L41.9734 88.0813ZM42.0706 86.7408L41.7812 90.7303L46.0898 91.0429L46.3793 87.0534L46.6688 83.0639L42.3601 82.7513L42.0706 86.7408ZM46.3793 87.0534L50.3688 87.3429L50.5251 85.1886L46.5356 84.8991L42.5461 84.6096L42.3898 86.764L46.3793 87.0534ZM46.5356 84.8991L46.8251 80.9096L43.1986 80.6465L42.9091 84.636L42.6197 88.6255L46.2461 88.8886L46.5356 84.8991ZM42.9091 84.636L46.8987 84.9254L46.9959 83.585L43.0064 83.2955L39.0169 83.006L38.9196 84.3465L42.9091 84.636ZM43.0064 83.2955L42.7169 87.285L46.3434 87.5481L46.6329 83.5586L46.9223 79.5691L43.2959 79.306L43.0064 83.2955ZM46.6329 83.5586L50.6224 83.8481L50.7978 81.4304L46.8083 81.141L42.8188 80.8515L42.6434 83.2691L46.6329 83.5586ZM46.8083 81.141L47.0978 77.1515L42.7891 76.8388L42.4996 80.8283L42.2101 84.8179L46.5188 85.1305L46.8083 81.141ZM42.4996 80.8283L46.4891 81.1178L46.5864 79.7773L42.5969 79.4879L38.6074 79.1984L38.5101 80.5389L42.4996 80.8283ZM42.5969 79.4879L42.3074 83.4774L48.1241 83.8994L48.4136 79.9099L48.7031 75.9204L42.8863 75.4984L42.5969 79.4879ZM48.4136 79.9099L44.4241 79.6204L43.8006 88.2139L47.7901 88.5033L51.7796 88.7928L52.4031 80.1994L48.4136 79.9099ZM38.8877 81.9255L37.681 85.7391C38.6924 86.0591 39.7896 85.9643 40.7311 85.4754C41.6726 84.9865 42.3813 84.1437 42.7014 83.1322L38.8877 81.9255ZM39.8942 78.7449L41.101 74.9313C38.9948 74.2648 36.747 75.4319 36.0806 77.5381L39.8942 78.7449ZM41.3586 79.2083L45.1722 80.4151C45.4923 79.4036 45.3974 78.3065 44.9086 77.365C44.4197 76.4235 43.5768 75.7147 42.5654 75.3947L41.3586 79.2083ZM38.7592 87.4228L37.5525 91.2365C39.6587 91.9029 41.9064 90.7358 42.5729 88.6296L38.7592 87.4228ZM33.2976 82.9255L37.1112 84.1323L33.2976 82.9255ZM35.9684 81.1275L35.6778 85.117C36.9711 85.2112 38.2298 84.6726 39.0547 83.6721C39.8796 82.6717 40.1683 81.3334 39.8293 80.0818L35.9684 81.1275ZM34.8945 77.1628L36.1013 73.3492C34.7065 72.9078 33.182 73.2631 32.126 74.2757C31.0701 75.2882 30.6512 76.7965 31.0337 78.2086L34.8945 77.1628ZM36.5649 77.6914L40.4352 76.681C40.088 75.351 39.0822 74.2925 37.7717 73.8778L36.5649 77.6914ZM37.5606 81.5055L33.6903 82.5159C34.0375 83.8459 35.0433 84.9044 36.3538 85.3191L37.5606 81.5055ZM38.4895 83.1839L42.3031 84.3907C42.6232 83.3793 42.5283 82.2821 42.0395 81.3406C41.5506 80.3991 40.7077 79.6904 39.6963 79.3703L38.4895 83.1839ZM37.693 85.7009L36.4863 89.5146C38.5925 90.181 40.8402 89.0139 41.5067 86.9077L37.693 85.7009ZM38.8877 81.9255L42.7014 83.1322L43.7078 79.9517L39.8942 78.7449L36.0806 77.5381L35.0741 80.7187L38.8877 81.9255ZM39.8942 78.7449L38.6874 82.5585L40.1518 83.0219L41.3586 79.2083L42.5654 75.3947L41.101 74.9313L39.8942 78.7449ZM41.3586 79.2083L37.545 78.0015L34.9456 86.2161L38.7592 87.4228L42.5729 88.6296L45.1722 80.4151L41.3586 79.2083ZM38.7592 87.4228L39.966 83.6092L36.6825 82.5702L35.4757 8
2446.3838L34.2689 90.1974L37.5525 91.2365L38.7592 87.4228ZM35.4757 86.3838L36.6825 82.5702C36.301 82.4495 36.5618 82.4267 36.8539 82.8747C37.0092 83.1129 37.1093 83.3953 37.1381 83.6762C37.1655 83.9434 37.1188 84.1082 37.1112 84.1323L33.2976 82.9255L29.4839 81.7188C28.9215 83.496 29.0126 85.4959 30.1528 87.2444C31.2075 88.862 32.8198 89.7389 34.2689 90.1974L35.4757 86.3838ZM33.2976 82.9255L37.1112 84.1323C37.0885 84.2041 36.9409 84.5581 36.5017 84.8473C36.0766 85.1272 35.7215 85.1202 35.6778 85.117L35.9684 81.1275L36.2591 77.1381C34.9236 77.0408 33.4376 77.2864 32.1023 78.1656C30.7528 79.0541 29.9157 80.3541 29.4839 81.7188L33.2976 82.9255ZM35.9684 81.1275L39.8293 80.0818L38.7554 76.117L34.8945 77.1628L31.0337 78.2086L32.1076 82.1733L35.9684 81.1275ZM34.8945 77.1628L33.6878 80.9764L35.3581 81.505L36.5649 77.6914L37.7717 73.8778L36.1013 73.3492L34.8945 77.1628ZM36.5649 77.6914L32.6946 78.7018L33.6903 82.5159L37.5606 81.5055L41.4309 80.4951L40.4352 76.681L36.5649 77.6914ZM37.5606 81.5055L36.3538 85.3191L37.681 85.7391L38.8877 81.9255L40.0945 78.1118L38.7674 77.6919L37.5606 81.5055ZM38.4895 83.1839L39.6963 79.3703L37.9573 78.82L36.7505 82.6337L35.5437 86.4473L37.2827 86.9976L38.4895 83.1839ZM36.7505 82.6337L37.9573 78.82C36.9531 78.5023 35.519 78.2776 34.0292 78.8414C32.3646 79.4715 31.3592 80.8042 30.9255 82.1749L34.7391 83.3817L38.5527 84.5885C38.4752 84.8335 38.3171 85.1812 38.0088 85.5298C37.6903 85.89 37.2899 86.1611 36.861 86.3235C36.449 86.4794 36.0987 86.5027 35.8802 86.4947C35.6668 86.4868 35.5478 86.4486 35.5437 86.4473L36.7505 82.6337ZM34.7391 83.3817L30.9255 82.1749C30.4941 83.5381 30.5374 85.2161 31.5525 86.7021C32.4543 88.0222 33.7634 88.653 34.7473 88.9643L35.954 85.1507L37.1608 81.337C37.1628 81.3377 37.1901 81.3464 37.2373 81.3677C37.2843 81.3889 37.3578 81.4258 37.4489 81.4845C37.6299 81.6009 37.9067 81.8211 38.1584 82.1897C38.4213 82.5745 38.5951 83.0328 38.6484 83.5155C38.6997 83.9808 38.6271 84.3535 38.5527 84.5885L34.7391 83.3817ZM35.954 85.1507L34.7473 88.9643L36.4863 89.5146L37.693 85.7009L38.8998 81.8873L37.1608 81.337L35.954 85.1507ZM37.693 85.7009L41.5067 86.9077L42.3031 84.3907L38.4895 83.1839L34.6759 81.9772L33.8794 84.4942L37.693 85.7009Z",fill:"#FFFF4B",mask:"url(#path-3-outside-1_820_28623)"}))))};function sa(){return(sa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var ss=function(e){return T.createElement("svg",sa({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none"},e),oe||(oe=T.createElement("path",{d:"M2 12L22 12",stroke:"black",strokeWidth:1.5})),ot||(ot=T.createElement("path",{d:"M16 6L22 12L16 18",stroke:"black",strokeWidth:1.5})))},so=n(59119),sl=n(86133);function su(){return(su=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var sc=function(e){return T.createElement("svg",su({viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),on||(on=T.createElement("path",{d:"M5.75 11.5H3.75V8.25H0.5V6.25H5.75V11.5ZM8.25 3.75H11.5V5.75H6.25V0.5H8.25V3.75Z",fill:"currentColor"})))},sd=n(5239),sh=n.n(sd);let sf=O().bind(sh()),sp=e=>{let{inductee:t}=e,{mounted:n}=(0,eT.F)(),{isReady:i}=(0,N.dg)(),r=(0,T.useRef)(null);return(0,T.useEffect)(()=>{n&&i&&r.current&&(nT.ZP.registerPlugin(so.Z),setTimeout(()=>{so.Z.create(r.current,{type:"lines"})},150))},[n,i]),(0,w.jsxs)("li",{className:sf("inductee-item"),children:[(0,w.jsx)("p",{ref:r,className:sf(["name"]),children:t.title}),(0,w.jsx)("span",{className:sf("spacer")})]},t.title)};function sm(e){let{year:t,inductees:n,onYearClick:i,activeYear:r,primaryCardCta:a,onTLComplete:s}=e,o=(0,T.useRef)(null),l=(0,T.useRef)(null),u=(0,T.useRef)(null),c=(0,T.useRef)(null),d=(0,T.useRef)(0),{isMobile:h,isTablet:f,isDesktop:p,viewHeight:m,isReady:g}=(0,N.dg)(),{mounted:v}=(0,eT.F)(),[y,_]=(0,T.useState)(!0),[b,x]=(0,T.useState)(7),C=(0,T.useMemo)(()=>(0,D.rL)(n).slice(0,b),[n,b]),E=(0,T.useMemo)(()=>
244(0,D.Cr)(a),[a]),S=()=>{i(t)},L=e=>{e.stopPropagation()};return(0,T.useEffect)(()=>{if(v&&g){if(r){let e="29rem",t="6rem";h||(e="32rem",t="8rem"),0===d.current&&(d.current=o.current.parentNode.offsetHeight),nT.ZP.killTweensOf(o.current),nT.ZP.killTweensOf(o.current.parentNode),nT.ZP.to(o.current,{width:e,height:t,duration:.4,x:0,overflow:"hidden",ease:"power2.out"}),nT.ZP.to(o.current.parentNode,{width:e,height:t,duration:.4,ease:"power2.out"}),nT.ZP.to(l.current,{opacity:0,duration:.35,ease:"power2.out"}),nT.ZP.to(u.current,{autoAlpha:1,duration:.35,delay:.25,ease:"power2.out"})}else r||y||(nT.ZP.killTweensOf(o.current),nT.ZP.killTweensOf(o.current.parentNode),nT.ZP.to(o.current.parentNode,{height:0!==d.current?d.current:"auto",width:"revert-layer",duration:.4,ease:"power2.out"}),nT.ZP.to(o.current,{width:"100%",overflow:"hidden",duration:.4,ease:"power2.out"}),nT.ZP.to(o.current,{height:"auto",duration:.4,ease:"power2.out",delay:.1}),nT.ZP.to(u.current,{autoAlpha:0,duration:.35,ease:"power2.out"}),nT.ZP.to(l.current,{opacity:1,duration:.35,delay:.25,ease:"power2.out"}));_(!1)}},[v,g,r,y,o,h,p,f]),(0,T.useEffect)(()=>{let e=7;m>1100&&(e=8),(m>1200||p)&&(e=14),x(e)},[m]),(0,w.jsxs)("button",{className:sf("inductees-by-class-list",{active:r===t}),onClick:S,ref:o,"aria-selected":r===t,children:[(0,w.jsx)("div",{className:sf("expand-icon"),children:r&&r
244===t?(0,w.jsx)(sc,{}):(0,w.jsx)(sl.Z,{})}),(0,w.jsx)("div",{className:sf("collapsed-year-header"),ref:u,children:(0,w.jsxs)("p",{className:"title-lc-xs",children:["class of ",(0,w.jsx)("span",{className:sf("highlighted-text"),children:t})]})}),(0,w.jsxs)("div",{"aria-hidden":!!r,className:sf("expanded-content"),ref:l,children:[(0,w.jsxs)("div",{className:sf("year-header"),children:[(0,w.jsx)("p",{className:sf(["class","text-l"]),children:"class of"}),(0,w.jsx)("p",{className:sf(["year","display-xxl"]),children:t})]}),(0,w.jsxs)("div",{className:sf("expanded-content__content"),children:[(0,w.jsxs)("ul",{className:sf("inductees-list"),ref:c,children:[C.map((e,t)=>(0,w.jsx)(sp,{inductee:e},"".concat(e.title,"-").concat(t))),n.length>b&&(0,w.jsx)("li",{className:sf("inductee-item"),children:(0,w.jsx)("p",{className:sf(["name"]),children:"+ more"})})]}),E&&(0,w.jsx)(id.z,{...E,onClick:L})]})]})]})}let sg=O().bind(sh()),sv=e=>{var t;let{inductee:n}=e,{uri:i,title:r,pageData:{featuredImage:a},inducteeData:{inducteeClass:s,category:o}}=n,[l,u]=(0,T.useState)(!1),[c,d]=(0,T.useState)(!1),h=(0,T.useRef)(null),f=(0,I.Y)(h,{once:k.LL.once});return(0,T.useEffect)(()=>{var e;f&&(null==a?void 0:null===(e=a.node)||void 0===e?void 0:e.mediaItemUrl)&&!c&&d(!0)},[f,null==a?void 0:null===(t=a.node)||void 0===t?void 0:t.mediaItemUrl]),(0,w.jsxs)(td.K,{href:i,className:sg("inductee-item"),ref:h,prefetch:!1,children:[(0,w.jsxs)("div",{className:sg(["image-wrapper",{"image-loaded":l}]),children:[(0,w.jsx)("span",{className:sg(["placeholder"])}),c&&(0,w.jsx)(tc.E,{image:a,alt:a.node.altText||r,onLoad:()=>u(!0),className:sg("image")})]}),(0,w.jsxs)("div",{className:sg("copy"),children:[(0,w.jsx)("p",{className:sg("name","text-m"),children:r}),(0,w.jsx)("p",{className:sg("pill","class","MD-TagSmall"),children:o[0]||"Unknown Category"})]})]},r)},sy=(0,T.forwardRef)((e,t)=>{let{inductees:n,listEl:i,year:r}=e,a=(0,T.useRef)(null),{mounted:s}=(0,eT.F)(),{isReady:o}=(0,N.dg)();(0,iM.V)(()=>{s&&o&&nT.ZP.fromTo(a.current.children,{y:100,opacity:0},{y:0,opacity:1,ease:"power3.out",duration:.6,stagger:.03})},[s,o,a]);let l=(0,T.useMemo)(()=>(0,D.rL)(n),[n]);return(0,T.useEffect)(()=>{var e;let t=e=>{let{key:t}=e,n=document.activeElement,i=a.current.querySelectorAll("a"),s=Array.from(i).findIndex(e=>e.href===n.href),o=6,l=-1;if("Tab"===e.key){if(e.shiftKey){let t=document.querySelector('div[data-year="'.concat(r,'"] button'));t&&(e.preventDefault(),t.focus())}else{e.preventDefault();let t=document.querySelector("footer"),n=null==t?void 0:t.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');n&&(null==n||n.focus(),t.scrollIntoView())}}switch(t){case"ArrowDown":l=s+o;break;case"ArrowUp":l=s-o;break;case"ArrowLeft":l=s-1;break;case"ArrowRight":l=s+1}if(-1!==s&&-1!==l){var u;e.preventDefault(),null===(u=i[l])||void 0===u||u.focus()}};return null===(e=a.current)||void 0===e||e.addEventListener("keydown",t),()=>{var e;null===(e=a.current)||void 0===e||e.removeEventListener("keydown",t)}},[]),(0,w.jsx)("div",{className:sg("inductees-by-class-grid","grid-el"),ref:t,children:(0,w.jsx)(E.W,{className:sg("container"),children:(0,w.jsx)("div",{className:sg("inductees-grid"),ref:a,children:l.map(e=>(0,w.jsx)(sv,{inductee:e},e.uri))})})})});var s_=R.E.create(sy);function sb(){return(sb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var sx,sC,sE,sw,sT,sS,sL,sP,sM,sA,sI,sR,sk,sD,sN,sF,sO,sj,sU,sV,sB,sH,sG,sz,sq,sW,s$,sZ,sY,sK,sX,sQ,sJ,s0,s1,s2,s3,s5,s4,s6,s8,s7,s9,oe,ot,on,oi,or,oa,os,oo,ol,ou,oc,od,oh,of,op,om,og,ov=function(e){return T.createElement("svg",sb({width:32,height:33,viewBox:"0 0 32 33",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),oi||(oi=T.createElement("rect",{y:.84375,width:32,height:32,rx:16,fill:"currentColor"})),T.createElement("mask",{id:"mask0_3260_14097",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:2,y:6,width:20,height:21},or||(or=T.createElement("rect",{width:20,height:20,transform:"matrix(-1 0 0 1 22 6.84375)",fill:"#D9D9D9"}))),oa||(oa=T.createElement("g",{mask:"url(#mask0_3260_14097)"},T.createElement("path",{d:"M10.125 16.8438L14.0625 12.9062L13 11.8438L8
24416.8438L13 21.8438L14.0625 20.7812L10.125 16.8438Z",fill:"#202124"}))),T.createElement("mask",{id:"mask1_3260_14097",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:10,y:6,width:20,height:21},os||(os=T.createElement("rect",{x:10,y:6.84375,width:20,height:20,fill:"#D9D9D9"}))),oo||(oo=T.createElement("g",{mask:"url(#mask1_3260_14097)"},T.createElement("path",{d:"M21.875 16.8438L17.9375 12.9062L19 11.8438L24 16.8438L19 21.8438L17.9375 20.7812L21.875 16.8438Z",fill:"#202124"}))))},oy="transform",o_=oy+"Origin",ob=function(e){var t=e.ownerDocument||e;for(!(oy in e.style)&&("msTransform"in e.style)&&(o_=(oy="msTransform")+"Origin");t.parentNode&&(t=t.parentNode););if(ou=window,op=new ok,t){ol=t,oc=t.documentElement,od=t.body,(om=ol.createElementNS("http://www.w3.org/2000/svg","g")).style.transform="none";var n=t.createElement("div"),i=t.createElement("div"),r=t&&(t.body||t.firstElementChild);r&&r.appendChild&&(r.appendChild(n),n.appendChild(i),n.setAttribute("style","position:static;transform:translate3d(0,0,1px)"),og=i.offsetParent!==n,r.removeChild(n))}return t},ox=function(e){for(var t,n;e&&e!==od;)(n=e._gsap)&&n.uncache&&n.get(e,"x"),n&&!n.scaleX&&!n.scaleY&&n.renderTransform&&(n.scaleX=n.scaleY=1e-4,n.renderTransform(1,n),t?t.push(n):t=[n]),e=e.parentNode;return t},oC=[],oE=[],ow=function(){return ou.pageYOffset||ol.scrollTop||oc.scrollTop||od.scrollTop||0},oT=function(){return ou.pageXOffset||ol.scrollLeft||oc.scrollLeft||od.scrollLeft||0},oS=function(e){return e.ownerSVGElement||("svg"===(e.tagName+"").toLowerCase()?e:null)},oL=function e(t){return"fixed"===ou.getComputedStyle(t).position||((t=t.parentNode)&&1===t.nodeType?e(t):void 0)},oP=function e(t,n){if(t.parentNode&&(ol||ob(t))){var i=oS(t),r=i?i.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",a=i?n?"rect":"g":"div",s=2!==n?0:100,o=3===n?100:0,l="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",u=ol.createElementNS?ol.createElementNS(r.replace(/^https/,"http"),a):ol.createElement(a);return n&&(i?(of||(of=e(t)),u.setAttribute("width",.01),u.setAttribute("height",.01),u.setAttribute("transform","translate("+s+","+o+")"),of.appendChild(u)):(oh||((oh=e(t)).style.cssText=l),u.style.cssText=l+"width:0.1px;height:0.1px;top:"+o+"px;left:"+s+"px",oh.appendChild(u))),u}throw"Need document and parent."},oM=function(e){for(var t=new ok,n=0;n<e.numberOfItems;n++)t.multiply(e.getItem(n).matrix);return t},oA=function(e){var t,n=e.getCTM();return n||(t=e.style[oy],e.style[oy]="none",e.appendChild(om),n=om.getCTM(),e.removeChild(om),t?e.style[oy]=t:e.style.removeProperty(oy.replace(/([A-Z])/g,"-$1").toLowerCase())),n||op.clone()},oI=function(e,t){var n,i,r,a,s,o,l=oS(e),u=e===l,c=l?oC:oE,d=e.parentNode,h=d&&!l&&d.shadowRoot&&d.shadowRoot.appendChild?d.shadowRoot:d;if(e===ou)return e;if(c.length||c.push(oP(e,1),oP(e,2),oP(e,3)),n=l?of:oh,l)u?(a=-(r=oA(e)).e/r.a,s=-r.f/r.d,i=op):e.getBBox?(r=e.getBBox(),a=(i=(i=e.transform?e.transform.baseVal:{}).numberOfItems?i.numberOfItems>1?oM(i):i.getItem(0).matrix:op).a*r.x+i.c*r.y,s=i.b*r.x+i.d*r.y):(i=new ok,a=s=0),t&&"g"===e.tagName.toLowerCase()&&(a=s=0),(u?l:d).appendChild(n),n.setAttribute("transform","matrix("+i.a+","+i.b+","+i.c+","+i.d+","+(i.e+a)+","+(i.f+s)+")");else{if(a=s=0,og)for(i=e.offsetParent,r=e;r&&(r=r.parentNode)&&r!==i&&r.parentNode;)(ou.getComputedStyle(r)[oy]+"").length>4&&(a=r.offsetLeft,s=r.offsetTop,r=0);if("absolute"!==(o=ou.getComputedStyle(e)).position&&"fixed"!==o.position)for(i=e.offsetParent;d&&d!==i;)a+=d.scrollLeft||0,s+=d.scrollTop||0,d=d.parentNode;(r=n.style).top=e.offsetTop-s+"px",r.left=e.offsetLeft-a+"px",r[oy]=o[oy],r[o_]=o[o_],r.position="fixed"===o.position?"fixed":"absolute",h.appendChild(n)}return n},oR=function(e,t,n,i,r,a,s){return e.a=t,e.b=n,e.c=i,e.d=r,e.e=a,e.f=s,e},ok=function(){function e(e,t,n,i,r,a){void 0===e&&(e=1),void 0===t&&(t=0),void 0===n&&(n=0),void 0===i&&(i=1),void 0===r&&(r=0),void 0===a&&(a=0),oR(this,e,t,n,i,r,a)}var t=e.prototype;return t.inverse=function(){var e=this.a,t=this.b,n=this.c,i=this.d,r=this.e,a=this.f,s=e*i-t*n||1e-10;return oR(this,i/s,-t/s,-n/s,e/s,(n*a-i*r)/s,-(e*a-t*r)/s)},t.multiply=function(e){var t=this.a,n=this.b,i=this.c,r=this.d,a=this.e,s=this.f,o=e.a,l=e.c,u=e.b,c=e.d,d=e.e,h=e.f;
244return oR(this,o*t+u*i,o*n+u*r,l*t+c*i,l*n+c*r,a+d*t+h*i,s+d*n+h*r)},t.clone=function(){return new e(this.a,this.b,this.c,this.d,this.e,this.f)},t.equals=function(e){var t=this.a,n=this.b,i=this.c,r=this.d,a=this.e,s=this.f;return t===e.a&&n===e.b&&i===e.c&&r===e.d&&a===e.e&&s===e.f},t.apply=function(e,t){void 0===t&&(t={});var n=e.x,i=e.y,r=this.a,a=this.b,s=this.c,o=this.d,l=this.e,u=this.f;return t.x=n*r+i*s+l||0,t.y=n*a+i*o+u||0,t},e}();function oD(e,t,n,i){if(!e||!e.parentNode||(ol||ob(e)).documentElement===e)return new ok;var r=ox(e),a=oS(e)?oC:oE,s=oI(e,n),o=a[0].getBoundingClientRect(),l=a[1].getBoundingClientRect(),u=a[2].getBoundingClientRect(),c=s.parentNode,d=!i&&oL(e),h=new ok((l.left-o.left)/100,(l.top-o.top)/100,(u.left-o.left)/100,(u.top-o.top)/100,o.left+(d?0:oT()),o.top+(d?0:ow()));if(c.removeChild(s),r)for(o=r.length;o--;)(l=r[o]).scaleX=l.scaleY=0,l.renderTransform(1,l);return t?h.inverse():h}function oN(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oF(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var oO,oj,oU,oV,oB,oH,oG,oz,oq,oW,o$,oZ,oY,oK,oX,oQ,oJ,o0,o1,o2,o3,o5,o4=0,o6=function(){return!0},o8=function(){return oO||o6()&&(oO=window.gsap)&&oO.registerPlugin&&oO},o7=function(e){return"function"==typeof e},o9=function(e){return"object"==typeof e},le=function(e){return void 0===e},lt=function(){return!1},ln="transform",li="transformOrigin",lr=function(e){return Math.round(1e4*e)/1e4},la=Array.isArray,ls=function(e,t){var n=oU.createElementNS?oU.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):oU.createElement(e);return n.style?n:oU.createElement(e)},lo=180/Math.PI,ll=1e20,lu=new ok,lc=Date.now||function(){return new Date().getTime()},ld=[],lh={},lf=0,lp=/^(?:a|input|textarea|button|select)$/i,lm=0,lg={},lv={},ly=function(e,t){var n,i={};for(n in e)i[n]=t?e[n]*t:e[n];return i},l_=function(e,t){for(var n in t)n in e||(e[n]=t[n]);return e},lb=function e(t,n){for(var i,r=t.length;r--;)n?t[r].style.touchAction=n:t[r].style.removeProperty("touch-action"),(i=t[r].children)&&i.length&&e(i,n)},lx=function(){return ld.forEach(function(e){return e()})},lC=function(e){ld.push(e),1===ld.length&&oO.ticker.add(lx)},lE=function(){return!ld.length&&oO.ticker.remove(lx)},lw=function(e){for(var t=ld.length;t--;)ld[t]===e&&ld.splice(t,1);oO.to(lE,{overwrite:!0,delay:15,duration:0,onComplete:lE,data:"_draggable"})},lT=function(e,t){for(var n in t)n in e||(e[n]=t[n]);return e},lS=function(e,t,n,i){if(e.addEventListener){var r=oY[t];i=i||(o$?{passive:!1}:null),e.addEventListener(r||t,n,i),r&&t!==r&&e.addEventListener(t,n,i)}},lL=function(e,t,n,i){if(e.removeEventListener){var r=oY[t];e.removeEventListener(r||t,n,i),r&&t!==r&&e.removeEventListener(t,n,i)}},lP=function(e){e.preventDefault&&e.preventDefault(),e.preventManipulation&&e.preventManipulation()},lM=function(e,t){for(var n=e.length;n--;)if(e[n].identifier===t)return!0},lA=function e(t){oK=t.touches&&o4<t.touches.length,lL(t.target,"touchend",e)},lI=function(e){oK=e.touches&&o4<e.touches.length,lS(e.target,"touchend",lA)},lR=function(e){return oj.pageYOffset||e.scrollTop||e.documentElement.scrollTop||e.body.scrollTop||0},lk=function(e){return oj.pageXOffset||e.scrollLeft||e.documentElement.scrollLeft||e.body.scrollLeft||0},lD=function e(t,n){lS(t,"scroll",n),lF(t.parentNode)||e(t.parentNode,n)},lN=function e(t,n){lL(t,"scroll",n),lF(t.parentNode)||e(t.parentNode,n)},lF=function(e){return!!(!e||e===oV||9===e.nodeType||e===oU.body||e===oj||!e.nodeType||!e.parentNode)},lO=function(e,t){var n="x"===t?"Width":"Height",i="scroll"+n,r="client"+n;return Math.max(0,lF(e)?Math.max(oV[i],oB[i])-(oj["inner"+n]||oV[r]||oB[r]):e[i]-e[r])},lj=function e(t,n){var i=lO(t,"x"),r=lO(t,"y");lF(t)?t=lv:e(t.parentNode,n),t._gsMaxScrollX=i,t._gsMaxScrollY=r,n||(t._gsScrollX=t.scrollLeft||0,t._gsScrollY=t.scrollTop||0)},lU=function(e,t,n){var i=e.style;i&&(le(i[t])&&(t=oq(t,e)||t),null==n?i.removeProperty&&i.removeProperty(t.replace(/([A-Z])/g,"-$1").toLowerCase()):i[t]=n)},lV=function(e){return oj.getComputedStyle(e instanceof Element?e:e.host||(e.parentNode||{}).host||e)},lB={},lH=function(e){if(e===oj)return lB.left=lB.top=0,lB.width=lB.right=oV.clientWidth||e.innerWidth||oB.clientWidth||0,lB.height=lB.bottom=(e.innerHe
244ight||0)-20<oV.clientHeight?oV.clientHeight:e.innerHeight||oB.clientHeight||0,lB;var t=e.ownerDocument||oU,n=le(e.pageX)?e.nodeType||le(e.left)||le(e.top)?oW(e)[0].getBoundingClientRect():e:{left:e.pageX-lk(t),top:e.pageY-lR(t),right:e.pageX-lk(t)+1,bottom:e.pageY-lR(t)+1};return le(n.right)&&!le(n.width)?(n.right=n.left+n.width,n.bottom=n.top+n.height):le(n.width)&&(n={width:n.right-n.left,height:n.bottom-n.top,right:n.right,left:n.left,bottom:n.bottom,top:n.top}),n},lG=function(e,t,n){var i,r=e.vars,a=r[n],s=e._listeners[t];return o7(a)&&(i=a.apply(r.callbackScope||e,r[n+"Params"]||[e.pointerEvent])),s&&!1===e.dispatchEvent(t)&&(i=!1),i},lz=function(e,t){var n,i,r,a=oW(e)[0];return a.nodeType||a===oj?lW(a,t):le(e.left)?{left:i=e.min||e.minX||e.minRotation||0,top:n=e.min||e.minY||0,width:(e.max||e.maxX||e.maxRotation||0)-i,height:(e.max||e.maxY||0)-n}:(r={x:0,y:0},{left:e.left-r.x,top:e.top-r.y,width:e.width,height:e.height})},lq={},lW=function(e,t){t=oW(t)[0];var n,i,r,a,s,o,l,u,c,d,h,f,p,m=e.getBBox&&e.ownerSVGElement,g=e.ownerDocument||oU;if(e===oj)r=lR(g),i=(n=lk(g))+(g.documentElement.clientWidth||e.innerWidth||g.body.clientWidth||0),a=r+((e.innerHeight||0)-20<g.documentElement.clientHeight?g.documentElement.clientHeight:e.innerHeight||g.body.clientHeight||0);else{if(t===oj||le(t))return e.getBoundingClientRect();n=r=0,m?(h=(d=e.getBBox()).width,f=d.height):(e.viewBox&&(d=e.viewBox.baseVal)&&(n=d.x||0,r=d.y||0,h=d.width,f=d.height),h||(d="border-box"===(p=lV(e)).boxSizing,h=(parseFloat(p.width)||e.clientWidth||0)+(d?0:parseFloat(p.borderLeftWidth)+parseFloat(p.borderRightWidth)),f=(parseFloat(p.height)||e.clientHeight||0)+(d?0:parseFloat(p.borderTopWidth)+parseFloat(p.borderBottomWidth)))),i=h,a=f}return e===t?{left:n,top:r,width:i-n,height:a-r}:(o=(s=oD(t,!0).multiply(oD(e))).apply({x:n,y:r}),l=s.apply({x:i,y:r}),u=s.apply({x:i,y:a}),c=s.apply({x:n,y:a}),{left:n=Math.min(o.x,l.x,u.x,c.x),top:r=Math.min(o.y,l.y,u.y,c.y),width:Math.max(o.x,l.x,u.x,c.x)-n,height:Math.max(o.y,l.y,u.y,c.y)-r})},l$=function(e,t,n,i,r,a){var s,o,l,u={};if(t){if(1!==r&&t instanceof Array){if(u.end=s=[],l=t.length,o9(t[0]))for(o=0;o<l;o++)s[o]=ly(t[o],r);else for(o=0;o<l;o++)s[o]=t[o]*r;n+=1.1,i-=1.1}else o7(t)?u.end=function(n){var i,a,s=t.call(e,n);if(1!==r){if(o9(s)){for(a in i={},s)i[a]=s[a]*r;s=i}else s*=r}return s}:u.end=t}return(n||0===n)&&(u.max=n),(i||0===i)&&(u.min=i),a&&(u.velocity=0),u},lZ=function e(t){var n;return!!t&&!!t.getAttribute&&t!==oB&&(!!("true"===(n=t.getAttribute("data-clickable"))||"false"!==n&&(lp.test(t.nodeName+"")||"true"===t.getAttribute("contentEditable")))||e(t.parentNode))},lY=function(e,t){for(var n,i=e.length;i--;)(n=e[i]).ondragstart=n.onselectstart=t?null:lt,oO.set(n,{lazy:!0,userSelect:t?"text":"none"})},lK=function e(t){return"fixed"===lV(t).position||((t=t.parentNode)&&1===t.nodeType?e(t):void 0)},lX=function(e,t){e=oO.utils.toArray(e)[0],t=t||{};var n,i,r,a,s,o,l=document.createElement("div"),u=l.style,c=e.firstChild,d=0,h=0,f=e.scrollTop,p=e.scrollLeft,m=e.scrollWidth,g=e.scrollHeight,v=0,y=0,_=0;o3&&!1!==t.force3D?(s="translate3d(",o="px,0px)"):ln&&(s="translate(",o="px)"),this.scrollTop=function(e,t){if(!arguments.length)return-this.top();this.top(-e,t)},this.scrollLeft=function(e,t){if(!arguments.length)return-this.left();this.left(-e,t)},this.left=function(n,i){if(!arguments.length)return-(e.scrollLeft+h);var r=e.scrollLeft-p,a=h;if((r>2||r<-2)&&!i){p=e.scrollLeft,oO.killTweensOf(this,{left:1,scrollLeft:1}),this.left(-p),t.onKill&&t.onKill();return}(n=-n)<0?(h=n-.5|0,n=0):n>y?(h=n-y|0,n=y):h=0,(h||a)&&(this._skip||(u[ln]=s+-h+"px,"+-d+o),h+v>=0&&(u.paddingRight=h+v+"px")),e.scrollLeft=0|n,p=e.scrollLeft},this.top=function(n,i){if(!arguments.length)return-(e.scrollTop+d);var r=e.scrollTop-f,a=d;if((r>2||r<-2)&&!i){f=e.scrollTop,oO.killTweensOf(this,{top:1,scrollTop:1}),this.top(-f),t.onKill&&t.onKill();return}(n=-n)<0?(d=n-.5|0,n=0):n>_?(d=n-_|0,n=_):d=0,(d||a)&&!this._skip&&(u[ln]=s+-h+"px,"+-d+o),e.scrollTop=0|n,f=e.scrollTop},this.maxScrollTop=function(){return _},this.maxScrollLeft=function(){return y},this.disable=function(){for(c=l.firstChild;c;)a=c.nextSibling,e.appendChild(c),c=a;e===l.parentNode&&e.removeChild(l)},this.enable=function(){if((c=e.firstChild)!==l){for(;c;)a=c.nextSibling,l.appendChild(c),c=a;e.appendChild(l),this.calibrate()}},this.calibrate=function(t){var a,s,o,c=e.clientWidth===n;f=e.scrollTop,p=e.scrollLeft,(!c||e.clientHeight!==i||l.offsetHeight!==r||m!==e.scrollWidth||g!==e.scrollHeight||t)&&((d||h)&&(s=this.left(),o=this.top(),this.left(-e.scrollLeft),this.top(-e.scrollTop)),a=lV(e),(!c||t)&&(u.display="block",u.width="auto",u.paddingRight="0px",(v=Math.max(0,e.scrollWidth-e.clientWidth))&&(v+=parseFloat(a.paddingLeft)+(o5?parseFloat(a.paddingRight):0))),u.display="inline-block",u.position="relative",u.overflow="visible",u.verticalAlign="top",u.boxSizing="content-box",u.width="100%",u.paddingRight=v+"px",o5&&(u.paddingBottom=a.paddingBottom),n=e.clientWidth,i=e.clientHeight,m=e.scrollWidth,g=e.scrollHeight,y=e.scrollWidth-n,_=e.scrollHeight-i,r=l.offsetHeight,u.display="block",(s||o)&&(this.left(s),this.top(o)))},this.content=l,this.element=e,this._skip=!1,this.enable()},lQ=function(e){if(o6()&&document.body){var t=window&&window.navigator;oj=window,oV=(oU=document).documentElement,oB=oU.body,oH=ls("div"),o0=!!window.PointerEvent,(oG=ls("div")).style.cssText="visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;cursor:grab",oJ="grab"===oG.style.cursor?"grab":"move",oX=t&&-1!==t.userAgent.toLowerCase().indexOf("android"),oZ="ontouchstart"in oV&&"orientation"in oj||t&&(t.MaxTouchPoints>0||t.msMaxTouchPoints>0),o5=function(){var e,t=ls("div"),n=ls("div"),i=n.style,r=oB;return i.display="inline-block",i.position="relative",t.style.cssText="width:90px;height:40px;padding:10px;overflow:auto;visibility:hidden",t.appendChild(n),r.appendChild(t),e=n.offsetHeight+18>t.scrollHeight,r.removeChild(t),e}(),oY=function(e){for(var t=e.split(","),n=(("onpointerdown"in oH)?"pointerdown,pointermove,pointerup,pointercancel":("onmspointerdown"in oH)?"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":e).split(","),i={},r=4;--r>-1;)i[t[r]]=n[r],i[n[r]]=t[r];try{oV.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){o$=1}}))}catch(e){}return i}("touchstart,touchmove,touchend,touchcancel"),lS(oU,"touchcancel",lt),lS(oj,"touchmove",lt),oB&&oB.addEventListener("touchstart",lt),lS(oU,"contextmenu",function(){for(var e in lh)lh[e].isPressed&&lh[e].endDrag(
244)}),oO=oz=o8()}oO&&(oQ=oO.plugins.inertia,o1=oO.core.context||function(){},ln=(oq=oO.utils.checkPrefix)(ln),li=oq(li),oW=oO.utils.toArray,o2=oO.core.getStyleSaver,o3=!!oq("perspective"))},lJ=function(e){function t(n,i){r=e.call(this)||this,oz||lQ(1),n=oW(n)[0],r.styles=o2&&o2(n,"transform,left,top"),oQ||(oQ=oO.plugins.inertia),r.vars=i=ly(i||{}),r.target=n,r.x=r.y=r.rotation=0,r.dragResistance=parseFloat(i.dragResistance)||0,r.edgeResistance=isNaN(i.edgeResistance)?1:parseFloat(i.edgeResistance)||0,r.lockAxis=i.lockAxis,r.autoScroll=i.autoScroll||0,r.lockedAxis=null,r.allowEventDefault=!!i.allowEventDefault,oO.getProperty(n,"x");var r,a,s,o,l,u,c,d,h,f,p,m,g,v,y,_,b,x,C,E,w,T,S,L,P,M,A,I,R,k,D,N,F,O,j=(i.type||"x,y").toLowerCase(),U=~j.indexOf("x")||~j.indexOf("y"),V=-1!==j.indexOf("rotation"),B=V?"rotation":U?"x":"left",H=U?"y":"top",G=!!(~j.indexOf("x")||~j.indexOf("left")||"scroll"===j),z=!!(~j.indexOf("y")||~j.indexOf("top")||"scroll"===j),q=i.minimumMovement||2,W=oN(r),$=oW(i.trigger||i.handle||n),Z={},Y=0,K=!1,X=i.autoScrollMarginTop||40,Q=i.autoScrollMarginRight||40,J=i.autoScrollMarginBottom||40,ee=i.autoScrollMarginLeft||40,et=i.clickableTest||lZ,en=0,ei=n._gsap||oO.core.getCache(n),er=lK(n),ea=function(e,t){return parseFloat(ei.get(n,e,t))},es=n.ownerDocument||oU,eo=function(e){return lP(e),e.stopImmediatePropagation&&e.stopImmediatePropagation(),!1},el=function e(t){if(W.autoScroll&&W.isDragging&&(K||x)){var i,r,a,o,l,u,c,d,f=n,p=15*W.autoScroll;for(K=!1,lv.scrollTop=null!=oj.pageYOffset?oj.pageYOffset:null!=es.documentElement.scrollTop?es.documentElement.scrollTop:es.body.scrollTop,lv.scrollLeft=null!=oj.pageXOffset?oj.pageXOffset:null!=es.documentElement.scrollLeft?es.documentElement.scrollLeft:es.body.scrollLeft,o=W.pointerX-lv.scrollLeft,l=W.pointerY-lv.scrollTop;f&&!r;)i=(r=lF(f.parentNode))?lv:f.parentNode,a=r?{bottom:Math.max(oV.clientHeight,oj.innerHeight||0),right:Math.max(oV.clientWidth,oj.innerWidth||0),left:0,top:0}:i.getBoundingClientRect(),u=c=0,z&&((d=i._gsMaxScrollY-i.scrollTop)<0?c=d:l>a.bottom-J&&d?(K=!0,c=Math.min(d,p*(1-Math.max(0,a.bottom-l)/J)|0)):l<a.top+X&&i.scrollTop&&(K=!0,c=-Math.min(i.scrollTop,p*(1-Math.max(0,l-a.top)/X)|0)),c&&(i.scrollTop+=c)),G&&((d=i._gsMaxScrollX-i.scrollLeft)<0?u=d:o>a.right-Q&&d?(K=!0,u=Math.min(d,p*(1-Math.max(0,a.right-o)/Q)|0)):o<a.left+ee&&i.scrollLeft&&(K=!0,u=-Math.min(i.scrollLeft,p*(1-Math.max(0,o-a.left)/ee)|0)),u&&(i.scrollLeft+=u)),r&&(u||c)&&(oj.scrollTo(i.scrollLeft,i.scrollTop),eC(W.pointerX+u,W.pointerY+c)),f=i}if(x){var m=W.x,g=W.y;V?(W.deltaX=m-parseFloat(ei.rotation),W.rotation=m,ei.rotation=m+"deg",ei.renderTransform(1,ei)):s?(z&&(W.deltaY=g-s.top(),s.top(g)),G&&(W.deltaX=m-s.left(),s.left(m))):U?(z&&(W.deltaY=g-parseFloat(ei.y),ei.y=g+"px"),G&&(W.deltaX=m-parseFloat(ei.x),ei.x=m+"px"),ei.renderTransform(1,ei)):(z&&(W.deltaY=g-parseFloat(n.style.top||0),n.style.top=g+"px"),G&&(W.deltaX=m-parseFloat(n.style.left||0),n.style.left=m+"px")),!h||t||R||(R=!0,!1===lG(W,"drag","onDrag")&&(G&&(W.x-=W.deltaX),z&&(W.y-=W.deltaY),e(!0)),R=!1)}x=!1},eu=function(e,t){var i,r,a=W.x,o=W.y;n._gsap||(ei=oO.core.getCache(n)),ei.uncache&&oO.getProperty(n,"x"),U?(W.x=parseFloat(ei.x),W.y=parseFloat(ei.y)):V?W.x=W.rotation=parseFloat(ei.rotation):s?(W.y=s.top(),W.x=s.left()):(W.y=parseFloat(n.style.top||(r=lV(n))&&r.top)||0,W.x=parseFloat(n.style.left||(r||{}).left)||0),(E||w||T)&&!t&&(W.isDragging||W.isThrowing)&&(T&&(lg.x=W.x,lg.y=W.y,(i=T(lg)).x!==W.x&&(W.x=i.x,x=!0),i.y!==W.y&&(W.y=i.y,x=!0)),E&&(i=E(W.x))!==W.x&&(W.x=i,V&&(W.rotation=i),x=!0),w&&((i=w(W.y))!==W.y&&(W.y=i),x=!0)),x&&el(!0),e||(W.deltaX=W.x-a,W.deltaY=W.y-o,lG(W,"throwupdate","onThrowUpdate"))},ec=function(e,t,n,i){return(null==t&&(t=-ll),null==n&&(n=ll),o7(e))?function(r){var a=W.isPressed?1-W.edgeResistance:1;return e.call(W,(r>n?n+(r-n)*a:r<t?t+(r-t)*a:r)*i)*i}:la(e)?function(i){for(var r,a,s=e.length,o=0,l=ll;--s>-1;)(a=(r=e[s])-i)<0&&(a=-a),a<l&&r>=t&&r<=n&&(o=s,l=a);return e[o]}:isNaN(e)?function(e){return e}:function(){return e*i}},ed=function(e,t,n,i,r,a,s){return(a=a&&a<ll?a*a:ll,o7(e))?function(o){var l,u,c,d=W.
244isPressed?1-W.edgeResistance:1,h=o.x,f=o.y;return o.x=h=h>n?n+(h-n)*d:h<t?t+(h-t)*d:h,o.y=f=f>r?r+(f-r)*d:f<i?i+(f-i)*d:f,(l=e.call(W,o))!==o&&(o.x=l.x,o.y=l.y),1!==s&&(o.x*=s,o.y*=s),a<ll&&(u=o.x-h)*u+(c=o.y-f)*c>a&&(o.x=h,o.y=f),o}:la(e)?function(t){for(var n,i,r,s,o=e.length,l=0,u=ll;--o>-1;)(s=(n=(r=e[o]).x-t.x)*n+(i=r.y-t.y)*i)<u&&(l=o,u=s);return u<=a?e[l]:t}:function(e){return e}},eh=function(){var e,t,r,a;d=!1,s?(s.calibrate(),W.minX=m=-s.maxScrollLeft(),W.minY=v=-s.maxScrollTop(),W.maxX=p=W.maxY=g=0,d=!0):i.bounds&&(e=lz(i.bounds,n.parentNode),V?(W.minX=m=e.left,W.maxX=p=e.left+e.width,W.minY=v=W.maxY=g=0):le(i.bounds.maxX)&&le(i.bounds.maxY)?(t=lz(n,n.parentNode),W.minX=m=Math.round(ea(B,"px")+e.left-t.left),W.minY=v=Math.round(ea(H,"px")+e.top-t.top),W.maxX=p=Math.round(m+(e.width-t.width)),W.maxY=g=Math.round(v+(e.height-t.height))):(e=i.bounds,W.minX=m=e.minX,W.minY=v=e.minY,W.maxX=p=e.maxX,W.maxY=g=e.maxY),m>p&&(W.minX=p,W.maxX=p=m,m=W.minX),v>g&&(W.minY=g,W.maxY=g=v,v=W.minY),V&&(W.minRotation=m,W.maxRotation=p),d=!0),i.liveSnap&&(a=la(r=!0===i.liveSnap?i.snap||{}:i.liveSnap)||o7(r),V?(E=ec(a?r:r.rotation,m,p,1),w=null):r.points?T=ed(a?r:r.points,m,p,v,g,r.radius,s?-1:1):(G&&(E=ec(a?r:r.x||r.left||r.scrollLeft,m,p,s?-1:1)),z&&(w=ec(a?r:r.y||r.top||r.scrollTop,v,g,s?-1:1))))},ef=function(){W.isThrowing=!1,lG(W,"throwcomplete","onThrowComplete")},ep=function(){W.isThrowing=!1},em=function(e,t){var r,a,o,l;e&&oQ?(!0===e&&(a=la(r=i.snap||i.liveSnap||{})||o7(r),e={resistance:(i.throwResistance||i.resistance||1e3)/(V?10:1)},V?e.rotation=l$(W,a?r:r.rotation,p,m,1,t):(G&&(e[B]=l$(W,a?r:r.points||r.x||r.left,p,m,s?-1:1,t||"x"===W.lockedAxis)),z&&(e[H]=l$(W,a?r:r.points||r.y||r.top,g,v,s?-1:1,t||"y"===W.lockedAxis)),(r.points||la(r)&&o9(r[0]))&&(e.linkedProps=B+","+H,e.radius=r.radius))),W.isThrowing=!0,l=isNaN(i.overshootTolerance)?1===i.edgeResistance?0:1-W.edgeResistance+.2:i.overshootTolerance,e.duration||(e.duration={max:Math.max(i.minDuration||0,"maxDuration"in i?i.maxDuration:2),min:isNaN(i.minDuration)?0===l||o9(e)&&e.resistance>1e3?0:.5:i.minDuration,overshoot:l}),W.tween=o=oO.to(s||n,{inertia:e,data:"_draggable",inherit:!1,onComplete:ef,onInterrupt:ep,onUpdate:i.fastMode?lG:eu,onUpdateParams:i.fastMode?[W,"onthrowupdate","onThrowUpdate"]:r&&r.radius?[!1,!0]:[]}),!i.fastMode&&(s&&(s._skip=!0),o.render(1e9,!0,!0),eu(!0,!0),W.endX=W.x,W.endY=W.y,V&&(W.endRotation=W.x),o.play(0),eu(!0,!0),s&&(s._skip=!1))):d&&W.applyBounds()},eg=function(e){var t,i=P;P=oD(n.parentNode,!0),e&&W.isPressed&&!P.equals(i||new ok)&&(t=i.inverse().apply({x:o,y:l}),P.apply(t,t),o=t.x,l=t.y),P.equals(lu)&&(P=null)},ev=function(){var e,t,i,r=1-W.edgeResistance,a=er?lk(es):0,h=er?lR(es):0;U&&(ei.x=ea(B,"px")+"px",ei.y=ea(H,"px")+"px",ei.renderTransform()),eg(!1),lq.x=W.pointerX-a,lq.y=W.pointerY-h,P&&P.apply(lq,lq),o=lq.x,l=lq.y,x&&(eC(W.pointerX,W.pointerY),el(!0)),F=oD(n),s?(eh(),c=s.top(),u=s.left()):(ey()?(eu(!0,!0),eh()):W.applyBounds(),V?(e=n.ownerSVGElement?[ei.xOrigin-n.getBBox().x,ei.yOrigin-n.getBBox().y]:(lV(n)[li]||"0 0").split(" "),b=W.rotationOrigin=oD(n).apply({x:parseFloat(e[0])||0,y:parseFloat(e[1])||0}),eu(!0,!0),t=W.pointerX-b.x-a,i=b.y-W.pointerY+h,u=W.x,c=W.y=Math.atan2(i,t)*lo):(c=ea(H,"px"),u=ea(B,"px"))),d&&r&&(u>p?u=p+(u-p)/r:u<m&&(u=m-(m-u)/r),!V&&(c>g?c=g+(c-g)/r:c<v&&(c=v-(v-c)/r))),W.startX=u=lr(u),W.startY=c=lr(c)},ey=function(){return W.tween&&W.tween.isActive()},e_=function(){!oG.parentNode||ey()||W.isDragging||oG.parentNode.removeChild(oG)},eb=function(e,r){var u;if(!a||W.isPressed||!e||("mousedown"===e.type||"pointerdown"===e.type)&&!r&&lc()-en<30&&oY[W.pointerEvent.type]){N&&e&&a&&lP(e);return}if(M=ey(),O=!1,W.pointerEvent=e,oY[e.type]?(lS(L=~e.type.indexOf("touch")?e.currentTarget||e.target:es,"touchend",eE),lS(L,"touchmove",ex),lS(L,"touchcancel",eE),lS(es,"touchstart",lI)):(L=null,lS(es,"mousemove",ex)),I=null,(!o0||!L)&&(lS(es,"mouseup",eE),e&&e.target&&lS(e.target,"mouseup",eE)),S=et.call(W,e.target)&&!1===i.dragClickables&&!r){lS(e.target,"change",eE),lG(W,"pressInit","onPressInit"),lG(W,"press","onPress"),lY($,!0),N=!1;return}if((N=!(A=!!L&&G!==z&&!1!==W.vars.allowNativeTouchScrolling&&(!W.vars.allowContextMenu||!e||!e.ctrlKey&&!(e.which>2))&&(G?"y":"x"))&&!W.allowEventDefault)&&(lP(e),lS(oj,"touchforcechange",lP)),e.changedTouches?_=(e=y=e.changedTouches[0]).identifier:e.pointerId?_=e.pointerId:y=_=null,o4++,lC(el),l=W.pointerY=e.pageY,o=W.pointerX=e.pageX,lG(W,"pressInit","onPressInit"),(A||W.autoScroll)&&lj(n.parentNode),!n.parentNode||!W.autoScroll||s||V||!n.parentNode._gsMaxScrollX||oG.parentNode||n.getBBox||(oG.style.width=n.parentNode.scrollWidth+"px",n.parentNode.appendChild(oG)),ev(),W.tween&&W.tween.kill(),W.isThrowing=!1,oO.killTweensOf(s||n,Z,!0),s&&oO.killTweensOf(n,{scrollTo:1},!0),W.tween=W.lockedAxis=null,!i.zIndexBoost&&(V||s||!1===i.zIndexBoost)||(n.style.zIndex=t.zIndex++),W.isPressed=!0,h=!!(i.onDrag||W._listeners.drag),f=!!(i.onMove||W._listeners.move),!1!==i.cursor||i.activeCursor)for(u=$.length;--u>-1;)oO.set($[u],{cursor:i.activeCursor||i.cursor||("grab"===oJ?"grabbing":oJ)});lG(W,"press","onPress")},ex=function(e){var t,i,r,s,u,c,d=e;if(!a||oK||!W.isPressed||!e){N&&e&&a&&lP(e);return}
244if(W.pointerEvent=e,t=e.changedTouches){if((e=t[0])!==y&&e.identifier!==_){for(s=t.length;--s>-1&&(e=t[s]).identifier!==_&&e.target!==n;);if(s<0)return}}else if(e.pointerId&&_&&e.pointerId!==_)return;if(L&&A&&!I&&(lq.x=e.pageX-(er?lk(es):0),lq.y=e.pageY-(er?lR(es):0),P&&P.apply(lq,lq),i=lq.x,r=lq.y,((u=Math.abs(i-o))!==(c=Math.abs(r-l))&&(u>q||c>q)||oX&&A===I)&&(I=u>c&&G?"x":"y",A&&I!==A&&lS(oj,"touchforcechange",lP),!1!==W.vars.lockAxisOnTouchScroll&&G&&z&&(W.lockedAxis="x"===I?"y":"x",o7(W.vars.onLockAxis)&&W.vars.onLockAxis.call(W,d)),oX&&A===I))){eE(d);return}W.allowEventDefault||A&&(!I||A===I)||!1===d.cancelable?N&&(N=!1):(lP(d),N=!0),W.autoScroll&&(K=!0),eC(e.pageX,e.pageY,f)},eC=function(e,t,n){var i,r,a,s,h,f,y=1-W.dragResistance,_=1-W.edgeResistance,C=W.pointerX,S=W.pointerY,L=c,M=W.x,A=W.y,I=W.endX,R=W.endY,k=W.endRotation,D=x;W.pointerX=e,W.pointerY=t,er&&(e-=lk(es),t-=lR(es)),V?(s=Math.atan2(b.y-t,e-b.x)*lo,(h=W.y-s)>180?(c-=360,W.y=s):h<-180&&(c+=360,W.y=s),W.x!==u||Math.max(Math.abs(o-e),Math.abs(l-t))>q?(W.y=s,a=u+(c-s)*y):a=u):(P&&(f=e*P.a+t*P.c+P.e,t=e*P.b+t*P.d+P.f,e=f),(r=t-l)<q&&r>-q&&(r=0),(i=e-o)<q&&i>-q&&(i=0),(W.lockAxis||W.lockedAxis)&&(i||r)&&(!(f=W.lockedAxis)&&(W.lockedAxis=f=G&&Math.abs(i)>Math.abs(r)?"y":z?"x":null,f&&o7(W.vars.onLockAxis)&&W.vars.onLockAxis.call(W,W.pointerEvent)),"y"===f?r=0:"x"===f&&(i=0)),a=lr(u+i*y),s=lr(c+r*y)),(E||w||T)&&(W.x!==a||W.y!==s&&!V)&&(T&&(lg.x=a,lg.y=s,a=lr((f=T(lg)).x),s=lr(f.y)),E&&(a=lr(E(a))),w&&(s=lr(w(s)))),d&&(a>p?a=p+Math.round((a-p)*_):a<m&&(a=m+Math.round((a-m)*_)),!V&&(s>g?s=Math.round(g+(s-g)*_):s<v&&(s=Math.round(v+(s-v)*_)))),W.x===a&&(W.y===s||V)||(V?(W.endRotation=W.x=W.endX=a,x=!0):(z&&(W.y=W.endY=s,x=!0),G&&(W.x=W.endX=a,x=!0)),n&&!1===lG(W,"move","onMove")?(W.pointerX=C,W.pointerY=S,c=L,W.x=M,W.y=A,W.endX=I,W.endY=R,W.endRotation=k,x=D):!W.isDragging&&W.isPressed&&(W.isDragging=O=!0,lG(W,"dragstart","onDragStart")))},eE=function e(t,r){if(!a||!W.isPressed||t&&null!=_&&!r&&(t.pointerId&&t.pointerId!==_&&t.target!==n||t.changedTouches&&!lM(t.changedTouches,_))){N&&t&&a&&lP(t);return}W.isPressed=!1;var s,o,l,u,c,d=t,h=W.isDragging,f=W.vars.allowContextMenu&&t&&(t.ctrlKey||t.which>2),p=oO.delayedCall(.001,e_);if(L?(lL(L,"touchend",e),lL(L,"touchmove",ex),lL(L,"touchcancel",e),lL(es,"touchstart",lI)):lL(es,"mousemove",ex),lL(oj,"touchforcechange",lP),(!o0||!L)&&(lL(es,"mouseup",e),t&&t.target&&lL(t.target,"mouseup",e)),x=!1,h&&(Y=lm=lc(),W.isDragging=!1),lw(el),S&&!f){t&&(lL(t.target,"change",e),W.pointerEvent=d),lY($,!1),lG(W,"release","onRelease"),lG(W,"click","onClick"),S=!1;return}for(o=$.length;--o>-1;)lU($[o],"cursor",i.cursor||(!1!==i.cursor?oJ:null));if(o4--,t){if((s=t.changedTouches)&&(t=s[0])!==y&&t.identifier!==_){for(o=s.length;--o>-1&&(t=s[o]).identifier!==_&&t.target!==n;);if(o<0&&!r)return}W.pointerEvent=d,W.pointerX=t.pageX,W.pointerY=t.pageY}return f&&d?(lP(d),N=!0,lG(W,"release","onRelease")):d&&!h?(N=!1,M&&(i.snap||i.bounds)&&em(i.inertia||i.throwProps),lG(W,"release","onRelease"),oX&&"touchmove"===d.type||-1!==d.type.indexOf("cancel")||(lG(W,"click","onClick"),lc()-en<300&&lG(W,"doubleclick","onDoubleClick"),u=d.target||n,en=lc(),c=function(){en!==k&&W.enabled()&&!W.isPressed&&!
244d.defaultPrevented&&(u.click?u.click():es.createEvent&&((l=es.createEvent("MouseEvents")).initMouseEvent("click",!0,!0,oj,1,W.pointerEvent.screenX,W.pointerEvent.screenY,W.pointerX,W.pointerY,!1,!1,!1,!1,0,null),u.dispatchEvent(l)))},oX||d.defaultPrevented||oO.delayedCall(.05,c))):(em(i.inertia||i.throwProps),!W.allowEventDefault&&d&&(!1!==i.dragClickables||!et.call(W,d.target))&&h&&(!A||I&&A===I)&&!1!==d.cancelable?(N=!0,lP(d)):N=!1,lG(W,"release","onRelease")),ey()&&p.duration(W.tween.duration()),h&&lG(W,"dragend","onDragEnd"),!0},ew=function(e){if(e&&W.isDragging&&!s){var t=e.target||n.parentNode,i=t.scrollLeft-t._gsScrollX,r=t.scrollTop-t._gsScrollY;(i||r)&&(P?(o-=i*P.a+r*P.c,l-=r*P.d+i*P.b):(o-=i,l-=r),t._gsScrollX+=i,t._gsScrollY+=r,eC(W.pointerX,W.pointerY))}},eT=function(e){var t=lc(),n=t-en<100,i=t-Y<50,r=n&&k===en,a=W.pointerEvent&&W.pointerEvent.defaultPrevented,s=n&&D===en,o=e.isTrusted||null==e.isTrusted&&n&&r;if((r||i&&!1!==W.vars.suppressClickOnDrag)&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),n&&!(W.pointerEvent&&W.pointerEvent.defaultPrevented)&&(!r||o&&!s)){o&&r&&(D=en),k=en;return}(W.isPressed||i||n)&&(!o||!e.detail||!n||a)&&lP(e),n||i||O||(e&&e.target&&(W.pointerEvent=e),lG(W,"click","onClick"))},eS=function(e){return P?{x:e.x*P.a+e.y*P.c+P.e,y:e.x*P.b+e.y*P.d+P.f}:{x:e.x,y:e.y}};return(C=t.get(n))&&C.kill(),r.startDrag=function(e,t){var i,r,a,s;eb(e||W.pointerEvent,!0),t&&!W.hitTest(e||W.pointerEvent)&&(i=lH(e||W.pointerEvent),r=lH(n),a=eS({x:i.left+i.width/2,y:i.top+i.height/2}),s=eS({x:r.left+r.width/2,y:r.top+r.height/2}),o-=a.x-s.x,l-=a.y-s.y),W.isDragging||(W.isDragging=O=!0,lG(W,"dragstart","onDragStart"))},r.drag=ex,r.endDrag=function(e){return eE(e||W.pointerEvent,!0)},r.timeSinceDrag=function(){return W.isDragging?0:(lc()-Y)/1e3},r.timeSinceClick=function(){return(lc()-en)/1e3},r.hitTest=function(e,n){return t.hitTest(W.target,e,n)},r.getDirection=function(e,t){var i,r,a,s,o,l,d="velocity"===e&&oQ?e:o9(e)&&!V?"element":"start";return("element"===d&&(o=lH(W.target),l=lH(e)),i="start"===d?W.x-u:"velocity"===d?oQ.getVelocity(n,B):o.left+o.width/2-(l.left+l.width/2),V)?i<0?"counter-clockwise":"clockwise":(t=t||2,s=(a=Math.abs(i/(r="start"===d?W.y-c:"velocity"===d?oQ.getVelocity(n,H):o.top+o.height/2-(l.top+l.height/2))))<1/t?"":i<0?"left":"right",a<t&&(""!==s&&(s+="-"),s+=r<0?"up":"down"),s)},r.applyBounds=function(e,t){var r,a,s,o,l,u;if(e&&i.bounds!==e)return i.bounds=e,W.update(!0,t);if(eu(!0),eh(),d&&!ey()){if(r=W.x,a=W.y,r>p?r=p:r<m&&(r=m),a>g?a=g:a<v&&(a=v),(W.x!==r||W.y!==a)&&(s=!0,W.x=W.endX=r,V?W.endRotation=r:W.y=W.endY=a,x=!0,el(!0),W.autoScroll&&!W.isDragging))for(lj(n.parentNode),o=n,lv.scrollTop=null!=oj.pageYOffset?oj.pageYOffset:null!=es.documentElement.scrollTop?es.documentElement.scrollTop:es.body.scrollTop,lv.scrollLeft=null!=oj.pageXOffset?oj.pageXOffset:null!=es.documentElement.scrollLeft?es.documentElement.scrollLeft:es.body.scrollLeft;o&&!u;)l=(u=lF(o.parentNode))?lv:o.parentNode,z&&l.scrollTop>l._gsMaxScrollY&&(l.scrollTop=l._gsMaxScrollY),G&&l.scrollLeft>l._gsMaxScrollX&&(l.scrollLeft=l._gsMaxScrollX),o=l;W.isThrowing&&(s||W.endX>p||W.endX<m||W.endY>g||W.endY<v)&&em(i.inertia||i.throwProps,s)}return W},r.update=function(e,t,i){if(t&&W.isPressed){var r=oD(n),a=F.apply({x:W.x-u,y:W.y-c}),s=oD(n.parentNode,!0);s.apply({x:r.e-a.x,y:r.f-a.y},a),W.x-=a.x-s.e,W.y-=a.y-s.f,el(!0),ev()}var o=W.x,l=W.y;return eg(!t),e?W.applyBounds():(x&&i&&el(!0),eu(!0)),t&&(eC(W.pointerX,W.pointerY),x&&el(!0)),W.isPressed&&!t&&(G&&Math.abs(o-W.x)>.01||z&&Math.abs(l-W.y)>.01&&!V)&&ev(),W.autoScroll&&(lj(n.parentNode,W.isDragging),K=W.isDragging,el(!0),lN(n,ew),lD(n,ew)),W},r.enable=function(e){var t,r,o,l={lazy:!0};if(!1!==i.cursor&&(l.cursor=i.cursor||oJ),oO.utils.checkPrefix("touchCallout")&&(l.touchCallout="none"),"soft"!==e){for(lb($,G===z?"none":i.allowNativeTouchScrolling&&n.scrollHeight===n.clientHeight==(n.scrollWidth===n.clientHeight)||i.allowEventDefault?"manipulation":G?"pan-y":"pan-x"),r=$.length;--r>-1;)o=$[r],o0||lS(o,"mousedown",eb),lS(o,"touchstart",eb),lS(o,"click",eT,!0),oO.set(o,l),o.getBBox&&o.ownerSVGElement&&G!==z&&oO.set(o.ownerSVGElement,{touchAction:i.allowNativeTouchScrolling||i.allowEventDefault?"manipulation":G?"pan-y":"pan-x"}),i.allowContextMenu||lS(o,"contextmenu",eo);lY($,!1)}return lD(n,ew),a=!0,oQ&&"soft"!==e&&oQ.track(s||n,U?"x,y":V?"rotation":"top,left"),n._gsDragID=t=n._gsDragID||"d"+lf++,lh[t]=W,s&&(s.enable(),s.element._gsDragID=t),(i.bounds||V)&&ev(),i.bounds&&W.applyBounds(),W},r.disable=function(e){for(var t,i=W.isDragging,r=$.length;--r>-1;)lU($[r],"cursor",null);if("soft"!==e){for(lb($,null),r=$.length;--r>-1;)lU(t=$[r],"touchCallout",null),lL(t,"mousedown",eb),lL(t,"touchstart",eb),lL(t,"click",eT,!0),lL(t,"contextmenu",eo);lY($,!0),L&&(lL(L,"touchcancel",eE),lL(L,"touchend",eE),lL(L,"touchmove",ex)),lL(es,"mouseup",eE),lL(es,"mousemove",ex)}return lN(n,ew),a=!1,oQ&&"soft"!==e&&(oQ.untrack(s||n,U?"x,y":V?"rotation":"top,left"),W.tween&&W.tween.kill()),s&&s.disable(),lw(el),W.isDragging=W.isPressed=S=!1,i&&lG(W,"dragend","onDragEnd"),W},r.enabled=function(e,t){return arguments.length?e?W.enable(t):W.disable(t):a},r.kill=function(){return W.isThrowing=!1,W.tween&&W.tween.kill(),W.disable(),oO.set($,{clearProps:"userSelect"}),delete lh[n._gsDragID],W},r.revert=function(){this.kill(),this.styles&&this.styles.revert()},~j.indexOf("scroll")&&(s=r.scrollProxy=new lX(n,l_({onKill:function(){W.isPressed&&eE(null)}},i)),n.style.overflowY=z&&!oZ?"auto":"hidden",n.style.overflowX=G&&!oZ?"auto":"hidden",n=s.content),V?Z.rotation=1:(G&&(Z[B]=1),z&&(Z[H]=1)),ei.force3D=!("force3D"in i)||i.force3D,o1(oN(r)),r.enable(),r}return oF(t,e),t.register=function(e){oO=e,lQ()},t.create=function(e,n){return oz||lQ(!0),oW(e).map(function(e){return new t(e,n)})},t.get=function(e){return lh[(oW(e)[0]||{})._gsDragID]},t.timeSinceDrag=function(){return(lc()-lm)/1e3},t.hitTest=function(e,t,n){if(e===t)return!1;var i,r,a,s=lH(e),o=lH(t),l=s.top,u=s.left,c=s.right,d=s.bottom,h=s.width,f=s.height,p=o.left>c||o.right<u||o.top>d||o.bottom<l;return p||!n?!p:(a=-1!==(n+"").indexOf("%"),n=parseFloat(n)||0,(i={left:Math.max(u,o.left),top:Math.max(l,o.top)}).width=Math.min(c,o.right)-i.left,i.height=Math.min(d,o.bottom)-i.top,!(i.width<0)&&!(i.height<0)&&(a?(n*=.01,(r=i.width*i.height)>=h*f*n||r>=o.width*o.height*n):i.width>n&&i.height>n))},t}(function(){function e(e){this._listeners={},this.target=e||this}var t=e.prototype;return t.addEventListener=function(e,t){var n=this._listeners[e]||(this._listeners[e]=[]);~n.indexOf(t)||n.push(t)},t.removeEventListener=function(e,t){var n=this._listeners[e],i=n&&n.indexOf(t);i>=0&&n.splice(i,1)},t.dispatchEvent=function(e){var t,n=this;
244return(this._listeners[e]||[]).forEach(function(i){return!1===i.call(n,{type:e,target:n.target})&&(t=!1)}),t},e}());lT(lJ.prototype,{pointerX:0,pointerY:0,startX:0,startY:0,deltaX:0,deltaY:0,isDragging:!1,isPressed:!1}),lJ.zIndex=1e3,lJ.version="3.13.0",o8()&&oO.registerPlugin(lJ);var l0=n(76337),l1=n.n(l0);let l2=O().bind(l1()),l3=(e,t)=>{let n=[],i=e-t,r=t=>(e-t)/i*100;for(let i=t;i<=e;i++){let a=r(i),s="small",o=!1;if(i===e||i===t||i%10==0)s="large",o=!0;else{let e=i%10;s=2===e||4===e||6===e||8===e?"medium":"small"}n.push({year:i,position:a,type:s,showLabel:o})}return n};var l5=(0,T.forwardRef)((e,t)=>{let{startYear:n,endYear:i,className:r="",onDragStart:a,onTimelineDrag:s,onTimelineMarkClick:o,dragProgress:l,dragRef:u}=e,c=(0,T.useRef)(null),d=(0,T.useRef)(null),h=l3(n,i),f=(0,T.useRef)([]),{viewWidth:p}=(0,N.dg)(),{scrollCoef:m,setScrollCoef:g}=(0,rB.Z)();return(0,a5.LZ)(),(0,T.useEffect)(()=>{u.current=d.current},[d]),(0,T.useEffect)(()=>{if(0===f.current.length||f.current[0].isDragging)return;let e=f.current[0],t=e.vars.bounds;nT.ZP.set(d.current,{x:(t.maxX-t.minX)*m}),e.update(!0)},[m]),(0,T.useEffect)(()=>{nT.ZP.registerPlugin(lJ),c.current&&d.current&&(h.reduce((e,t)=>{let n=t.position/100*c.current.offsetWidth;return e.push(n),e},[]),f.current=lJ.create(d.current,{type:"x",inertia:!1,onPress:a,onDrag:function(){s(this)},onThrowUpdate:function(){s(this)},bounds:{minX:0,maxX:c.current.offsetWidth}}))},[c,s]),(0,T.useEffect)(()=>{let e=f.current[0],t=h.reduce((e,t)=>{let n=t.position/100*c.current.offsetWidth;return e.push(n),e},[]);e.vars.snap=t,e.update(!0),e.applyBounds({minX:0,maxX:c.current.offsetWidth})},[f.current,p]),(0,w.jsx)("div",{"aria-hidden":"true",className:l2(["timeline",r]),ref:t,children:(0,w.jsx)(E.W,{className:l2("container"),children:(0,w.jsxs)("div",{className:l2("track","offset-element"),ref:c,children:[(0,w.jsx)("button",{className:l2("timeline-drag"),type:"button",ref:d,tabIndex:-1,"aria-label":"Timeline slider",children:(0,w.jsx)(ov,{})}),h.map((e,t)=>(0,w.jsxs)("div",{className:l2(["mark","mark--".concat(e.type)]),onClick:()=>o(t),style:{left:"".concat(e.position,"%")},children:[(0,w.jsx)("div",{className:l2("line")}),e.showLabel&&(0,w.jsx)("div",{className:l2("label","eyebrow-l"),children:e.year})]},e.year))]})})})});let l4=O().bind(sh());function l6(e){let{inductees:t,primaryCardCta:n,onSelectYear:i}=e,[r,a]=(0,T.useState)(null),s=(0,T.useRef)(null),o=(0,T.useRef)(null),l=(0,T.useRef)(null),u=(0,T.useRef)(null),c=(0,T.useRef)(null),[d,h]=(0,T.useState)(!1),[f,p]=(0,T.useState)(!1),m=(0,T.useRef)(null),g=(0,T.useRef)(null),v=(0,T.useRef)(null),y=(0,T.useRef)(null),_=(0,T.useRef)([]),b=(0,T.useRef)(0),[x,C]=(0,T.useState)(0),[S,L]=(0,T.useState)(""),[P,M]=(0,T.useState)(0),A=(0,T.useRef)(0),I=(0,T.useRef)(null),R=(0,T.useRef)("instant"),{viewWidth:k,viewHeight:F,isMobile:O,isDesktop:j,isReady:U}=(0,N.dg)(),{mounted:V}=(0,eT.F)(),B=(0,T.useRef)(0),H=(0,T.useRef)(!1),[G,z]=(0,T.useState)(0),[q,W]=(0,T.useState)(!1),$=(0,T.useRef)(null),Z=(0,T.useRef)(!1),{setIsHeaderFixed:Y}=(0,eZ.g)(),{scrollCoef:K,setScrollCoef:X,tabAffix:Q,setExtraFixedTab:J}=(0,rB.Z)(),ee=(0,T.useMemo)(()=>(0,D.Ee)(t),[t]),et=(0,T.useMemo)(()=>Object.keys(ee).sort((e,t)=>{let n=parseInt(e,10);return parseInt(t,10)-n}),[ee]),en=(0,T.useCallback)(e=>{var t,n,s;if(H.current){H.current=!1;return}R.current=r?"smooth":"instant";let l=r!==e;I.current=e,r===e?(a(null),j&&($.current.style.height="1000vh",nT.ZP.to(o.current,{opacity:0,duration:0})),J(!1),i(null),null===(t=v.current)||void 0===t||t.stop(),nT.ZP.delayedCall(.5,()=>{var e;null===(e=v.current)||void 0===e||e.start(),W(l)})):(J(!0),null===(n=v.current)||void 0===n||n.scrollTo(0,{immediate:!0}),null===(s=v.current)||void 0===s||s.stop(),j&&($.current.style.height="auto"),a(e),i(e),q||nT.ZP.to(o.current,{opacity:0,duration:0}),nT.ZP.delayedCall(q?1:.3,()=>{var e;null===(e=v.current)||void 0===e||e.start(),W(l)})),nT.ZP.to(m.current,{autoAlpha:l?0:1,duration:.3,ease:"power2.out"}),l&&nT.ZP.set(g.current,{opacity:0}),nT.ZP.to(g.current,{duration:l?0:1,autoAlpha:l?0:1,delay:l?0:1,ease:"power2.out"}),h(!0),C(_.current.indexOf(parseFloat(e)))},[V,U,r,j,q]);(0,T.useEffect)(()=>{var e;let t=()=>{let e=document.querySelector("footer"),t=null==e?void 0:e.querySelector('button, [href], input, select, textarea, [tabindex]:not
244([tabindex="-1"])');t&&(null==t||t.focus(),e.scrollIntoView())},n=e=>{var n,i,a,s;let o=e=>{var t;let n=[...et].reverse().indexOf(e),i=(et.length-n-1)*(1/(et.length-1));null===(t=v.current)||void 0===t||t.scrollTo(9*F*i)},l=()=>{var e;null===(e=document.querySelector(".grid-el a"))||void 0===e||e.focus()};if("Tab"===e.key){if(e.preventDefault(),e.shiftKey){document.querySelectorAll("#inductees-tab").forEach(e=>{e.focus()});return}if(r){l();return}t()}else if("ArrowRight"===e.key){let e=null===(i=document.activeElement)||void 0===i?void 0:null===(n=i.parentElement)||void 0===n?void 0:n.nextSibling;if(e){let t=e.children[0];t&&(t.focus(),r||o(e.dataset.year))}}else if("ArrowLeft"===e.key){let e=null===(s=document.activeElement)||void 0===s?void 0:null===(a=s.parentElement)||void 0===a?void 0:a.previousSibling;if(e){let t=e.children[0];t&&(t.focus(),r||o(e.dataset.year))}}else"Enter"===e.key&&setTimeout(()=>{l()},300)};return null===(e=o.current)||void 0===e||e.addEventListener("keydown",n),()=>{var e;null===(e=o.current)||void 0===e||e.removeEventListener("keydown",n)}},[F,r]);let ei=e=>{let t=o.current.querySelector('[data-year="'.concat(e,'"]'));setTimeout(()=>{null==t||t.scrollIntoView({behavior:R.current,block:"center",inline:"center"})},150)};(0,T.useEffect)(()=>(Y(!0),()=>{Y(!1)}),[]),(0,T.useEffect)(()=>{(e=>{y.current&&nT.ZP.to(y.current,{autoAlpha:e?1:0,duration:.3,delay:e?.3:.5,ease:"power2.out"})})(Q||!!r)},[Q,r]),(0,T.useEffect)(()=>{q&&r?ei(r):!q&&I.current&&null===r&&es(et.length-et.indexOf(I.current)-(j?0:1),!0)},[r,q,j]),(0,T.useEffect)(()=>{nT.ZP.to(o.current,{opacity:1,delay:q?.3:.4})},[q]);let er=()=>{},ea=(0,T.useCallback)(e=>{let{x:t,maxX:n,minX:i}=e,r=(t-i)/(n-i);if(j){var a;let e=9*F;null===(a=v.current)||void 0===a||a.scrollTo(e*r,{immediate:!0})}else{let e=25,t=(o.current.children[1].getBoundingClientRect().width+e)*(et.length-1);o.current.scrollLeft=t*r}},[G,B,j,F]),es=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(j){var n;let i=(et.length-e-1)*(1/(et.length-1));null===(n=v.current)||void 0===n||n.scrollTo(9*F*i,{immediate:t})}else o.current.children[et.length-e].scrollIntoView({behavior:"smooth",block:"end"})},eo=(0,a5.LZ)(e=>{let{scroll:t}=e,n=10;!r&&(t>n&&h(!0),j&&X(Math.max(0,Math.min(1,t/F/9))))},[F,r,j]);(0,T.useEffect)(()=>{window.scrollTo(0,0),null==eo||eo.scrollTo(0,{immediate:!0})},[eo]);let el=(0,T.useCallback)(e=>{if(r){let t="next"===e?x+1:x-1;if(t<0||t>=_.current.length)return;let n=_.current[t];R.current="smooth",a(n.toString()),C(t)}else eo&&eo.scrollTo(eo.actualScroll+("next"===e?150:-150))},[x,_,r,eo]);(0,T.useEffect)(()=>{if(!j)return;let e=Math.min(1,K),t=(B.current-k+60)*e;nT.ZP.set(o.current,{x:-t}),et.length>0&&(_.current=et.map(e=>parseFloat(e))),Z.current&&(A.current=e)},[K,k,B,j]),(0,T.useEffect)(()=>{let e=s.current.children[0].children[0].getBoundingClientRect().width,t=s.current.children[0].children[1].getBoundingClientRect().width;z(t),B.current=e+(t+30)*(o.current.children.length-1)+2*$.current.getBoundingClientRect().left,b.current=e},[k,o.current]),(0,T.useEffect)(()=>{V&&U&&(j?$.current.style.height="1000vh":$.current.style.height="auto",j?nT.ZP.fromTo(o.current,{opacity:0,x:"20vw"},{opacity:1,x:0,duration:1,ease:"power3.out",onComplete:()=>{var e;Z.current=!0,null===(e=v.current)||void 0===e||e.start()}}):nT.ZP.fromTo(o.current,{opacity:0,x:-30},{x:0,opacity:1,stagger:.1,ease:"power4.out",duration:1,onComplete:()=>{var e;null===(e=v.current)||void 0===e||e.start()}}))},[V,U,o,j]),(0,iM.V)(()=>{V&&U&&nT.ZP.fromTo(c.current.children[0],{opacity:0,scaleX:.3,scaleY:.3},{scaleX:1,scaleY:1,opacity:1,duration:.4,ease:"power3.out",delay:.3})},{dependencies:[V,U,c]}),(0,iM.V)(()=>{V&&U&&nT.ZP.fromTo(m.current,{y:50,opacity:0},{y:0,opacity:1})},{dependencies:[V,U,m]});let eu=(0,T.useCallback)(e=>{var t;if(r)return;H.current=!1;let n=j?null===(t=v.current)||void 0===t?void 0:t.scroll:o.current.scrollLeft,i=e.nativeEvent.clientX,a=e=>{Math.abs(e.clientX-i)>1&&(H.current=!0),o.current.style.scrollSnapType="unset";let t=n-(e.clientX-i);if(document.body.style.cursor="-webkit-grabbing",j){var r;null===(r=v.current)||void 0===r||r.scrollTo(t,{})}else nT.ZP.to(o.current,{scrollLeft:t})},s=()=>
244{l()},l=()=>{document.body.style.cursor="auto",window.removeEventListener("mousemove",a),window.removeEventListener("mouseup",s),window.removeEventListener("mouseleave",s)};return window.addEventListener("mousemove",a),window.addEventListener("mouseup",s),window.addEventListener("mouseleave",s),l},[r,j]);(0,T.useEffect)(()=>{if(!V||!U||!j)return;let e=null;return $.current&&(e=iP.Z.create({trigger:$.current,start:"bottom bottom",end:"bottom top",onUpdate:e=>{let t=[m.current,o.current];r||nT.ZP.set(t,{y:-e.progress*F})}})),()=>{null==e||e.kill()}},[V,U,$.current,F,r,j]);let ec=se()(()=>{if(j)return;let e=25,t=(o.current.children[1].getBoundingClientRect().width+e)*(et.length-1),n=Math.max(0,Math.min(1,o.current.scrollLeft/t));X(n),n>.02&&p(!0)},5);return(0,T.useEffect)(()=>{v.current=eo},[eo]),(0,T.useEffect)(()=>{L(j?"is-scrolled":"")},[j]),(0,w.jsxs)(E.W,{className:l4("inductees-by-class-timeline"),ref:$,children:[(0,w.jsx)("div",{className:l4("list-row",{"year-opened":r}),ref:s,tabIndex:-1,onMouseDown:eu,children:(0,w.jsxs)("div",{className:l4("carousel",S),ref:o,style:{opacity:0},onScroll:ec,children:[(0,w.jsx)("div",{className:l4("carousel-spacer"),ref:l,id:"carousel-spacer"},"spacer-1"),et.map((e,t)=>(0,w.jsx)("div",{className:l4("inductees-by-class-list-item"),"data-year":e,children:(0,w.jsx)(sm,{year:e,activeYear:r,primaryCardCta:t?null:n,onYearClick:en,inductees:ee[e]},"".concat(e,"-").concat(t))},"".concat(e,"-").concat(t)))]})}),(0,w.jsx)("div",{ref:c,className:l4("scroll-to-discover",{"scroll-to-discover--hidden":d}),children:(0,w.jsx)(sn,{className:l4("icon-desktop")})}),null===r&&(0,w.jsxs)("div",{ref:c,className:l4("scroll-to-discover",{"scroll-to-discover--hidden":f||r,swipe:!0}),children:[(0,w.jsx)(sr,{className:l4("icon-mobile")}),(0,w.jsx)(ss,{className:l4("icon-mobile-arrow")})]}),(0,w.jsx)(ez.M,{mode:"wait",children:r&&(0,w.jsx)(s_,{exit:{opacity:0},listEl:s.current,transition:{duration:.2,ease:"linear"},onAnimationComplete:()=>{},inductees:ee[r],ref:u,year:r},r)}),et.length&&(0,w.jsx)(l5,{startYear:parseFloat(et[0]),onDragStart:er,onTimelineDrag:ea,dragProgress:P,ref:m,dragRef:g,onTimelineMarkClick:es,endYear:parseFloat(et[et.length-1])}),(0,w.jsxs)("div",{className:l4("carousel-controls",{"is-scrolled":!0,"active-year":!!r}),ref:y,children:[(0,w.jsx)(ig,{size:"small",icon:eQ.Z,disabled:x<=0&&!!r,className:l4("previous"),onClick:()=>el("prev"),tabindex:-1,ariaLabel:"âMove timeline backward"}),(0,w.jsx)(ig,{size:"small",icon:eQ.Z,className:l4("next"),onClick:()=>el("next"),disabled:x>=_.current.length-1&&!!r,tabindex:-1,ariaLabel:"Move timeline forward"})]})]})}let l8=O().bind(sh());function l7(e){let{inductees:t,primaryCardCta:n,onSelectYear:i}=e,r=(0,T.useRef)(null);(0,a7.hO)();let{contentEl:a}=(0,rB.Z)(),s=async()=>{null==o||o.stop()},o=(0,a5.LZ)();return(0,T.useEffect)(()=>{null==o||o.stop()},[o]),(0,w.jsx)(R.E.div,{className:l8(["inductees-by-class"]),initial:{opacity:.99},animate:{opacity:1},exit:{opacity:0},onAnimationStart:s,ref:r,transition:{duration:.3,ease:"easeInOut"},children:(0,w.jsx)(l6,{inductees:t,primaryCardCta:n,onSelectYear:i})})}var l9=n(90453),ue=n(19677);n(16928),n(68875);var ut=n(97731),un=n(14189);n(88938);var ui=n(74075),ur=n(1418),ua=n(74076),us=n(99375);n(65071),n(47225),n(36398),n(1477),n(8424),n(35871),n(30244);var uo=n(47279),ul=n(26844),uu=n.n(ul);let uc=O().bind(uu()),ud=(0,T.forwardRef)((e,t)=>{let{startIndex:n,images:i,onClose:r,onSlideChange:a}=e,s=(0,T.useRef)(null),{labels:o}=(0,G.i)(),l=(0,T.useRef)(null),u=(0,T.useRef)(null),[c,d]=(0,T.useState)(n),h=()=>{if(u.current){let{index:e}=u.current.splide;d(e),a(e)}};return(0,T.useEffect)(()=>(document.body.classList.add("locked"),()=>{document.body.classList.remove("locked")}),[]),(0,T.useEffect)(()=>{s.current&&(s.current.querySelectorAll(".splide__list").forEach(e=>{e.setAttribute("role","list")}),s.current.querySelectorAll(".splide__slide").forEach(e=>{e.setAttribute("role","listitem")}))},[]),(0,w.jsxs)("div",{ref:t,className:uc(["artifact-paper-modal",O()]),children:[(0,w.jsx)("div",{className:uc("artifact-paper-modal__content"),ref:s,children:(0,w.jsxs)(uo.tv,{className:uc("splide"),ref:u,options:{type:"loop",arrows:!0,pagination:!0,perPage:1,perMove:1,speed:500,start:n,updateOnMove:!0,fixedWidth:"100%",breakpoints:{1025:{arrows:!1}
244}},onActive:h,hasTrack:!1,children:[(0,w.jsx)(uo.Gj,{children:i.map((e,t)=>(0,w.jsxs)(uo.jw,{className:uc("slide"),children:[(0,w.jsx)("div",{className:uc("modal-image-bg"),onClick:r}),(0,w.jsx)("div",{className:uc("modal-image-container"),children:(0,w.jsx)("div",{className:uc("modal-image"),children:(0,w.jsx)(tc.E,{image:e.image})},t)},t)]},t))}),(0,w.jsx)(E.W,{children:i.map((e,t)=>(0,w.jsx)("p",{"aria-hidden":t!==c,className:uc("modal-caption","text-m"),children:e.caption},t))}),(0,w.jsx)(E.W,{className:uc("bottom"),children:(0,w.jsx)(iE.J,{className:uc("pagination"),ref:l})})]})}),(0,w.jsx)("button",{"aria-label":null==o?void 0:o.closeLabel,className:uc("close-button"),onClick:r,children:(0,w.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 57 57",children:[(0,w.jsx)("path",{className:uc("circle"),d:"M28.5,1.25h0c15.05,0,27.25,12.2,27.25,27.25h0c0,15.05-12.2,27.25-27.25,27.25h0c-15.05,0-27.25-12.2-27.25-27.25h0C1.25,13.45,13.45,1.25,28.5,1.25Z",fill:"transparent",stroke:"currentColor",strokeWidth:"1.5"}),(0,w.jsx)("path",{className:uc("icon"),d:"M36.28,22.29l-1.57-1.57-6.21,6.21-6.21-6.21-1.57,1.57,6.21,6.21-6.21,6.21,1.57,1.57,6.21-6.21,6.21,6.21,1.57-1.57-6.21-6.21,6.21-6.21Z",fill:"currentColor"})]})})]})});var uh=R.E.create(ud);function uf(){let e=(0,iS._)(["\n fragment InducteeArtifactPaper on InducteeDataImpactFlexibleContentArtifactPaperLayout {\n eyebrow\n mediaRight: alignRight\n cta {\n linkType\n label\n externalLink\n page {\n node {\n uri\n }\n }\n }\n images {\n image {\n ...ACFMedia\n }\n caption\n }\n artifactPaperHeadline {\n line\n }\n artifactPaperBody {\n text\n }\n }\n "]);return uf=function(){return e},e}let up=O().bind(uu());function um(e,t){let n=[];for(let i=0;i<3;i++){let r=(t+i)%e.length;n.push(e[r])}return n}function ug(e){let{eyebrow:t,images:n,artifactPaperHeadline:i,artifactPaperBody:r,mediaRight:a,cta:s}=e,o=(0,T.useRef)(null),[l,u]=(0,T.useState)(0),[c,d]=(0,T.useState)(null),[h,f]=(0,T.useState)(!1),[p,m]=(0,T.useState)(!1),g=a?"right":"left",v=(0,D.Cr)(s),y=um(n,l),{labels:_}=(0,G.i)(),{isDesktop:b,isReady:x}=(0,N.dg)(),{mounted:C}=(0,eT.F)(),S=(0,T.useRef)(null),L=(0,T.useRef)(b),P=k.LL,M=C&&x&&b?P.lg.triggerPercent:P.sm.triggerPercent,A=(0,I.Y)(S,{amount:M,once:P.once}),R=()=>{if(o.current){let e,t;let n=o.current.getBoundingClientRect();L.current?(e="right"===g?n.width:0,t=.65*n.height):(e=n.width-36,t=.5*n.height),d({x:e,y:t})}};return(0,T.useEffect)(()=>{L.current=b,R()},[b,A]),(0,T.useEffect)(()=>(window.addEventListener("resize",R),()=>{window.removeEventListener("resize",R)}),[]),(0,T.useEffect)(()=>{C&&x&&b&&A&&!p?f(!0):f(!1)},[C,x,b,A,p]),(0,w.jsxs)("section",{className:up(["artifact-paper","media-".concat(g)]),ref:S,children:[(0,w.jsx)(c4,{isInView:A,children:(0,w.jsxs)(E.W,{className:up("content"),children:[(0,w.jsx)("div",{className:up("content__imagery"),children:(0,w.jsxs)("div",{className:up("image-wrapper"),onClick:()=>m(!0),ref:o,children:[y.map((e,t)=>{let{image:n,caption:i}=e;return(0,w.jsx)("div",{className:up("image-container"),style:{zIndex:y.length-t},children:(0,w.jsx)(tc.E,{image:n,className:up("image")})},t)}),C&&x&&b&&(0,w.jsx)(uD.P,{container:o,circleText:null==_?void 0:_.zoomInLabel,externalPos:c,isVisible:h,mouseActive:h})]})}),(0,w.jsxs)("div",{className:up("content__text"),children:[(0,w.jsxs)("div",{className:up("title"),children:[(0,w.jsx)("p",{className:up(["eyebrow-l","eyebrow"]),children:t}),(0,w.jsx)("h2",{className:up("title-uc-l","title__lines"),children:i.map((e,t)=>(0,w.jsx)("span",{className:up(["line","title__lines__line-".concat(t)]),dangerouslySetInnerHTML:{__html:e.line}},t))})]}),(null==r?void 0:r.length)>0&&(0,w.jsx)("div",{className:up("body"),children:r.map((e,t)=>(0,w.jsxs)("div",{className:up("body__p-container"),children:[(0,w.jsx)("p",{className:"text-m",children:e.text}),t===r.length-1&&v&&(0,w.jsx)(id.z,{label:v.label,className:up("link"),url:v.url,target:v.target})]},t))})]})]})}),(0,w.jsx)(dn,{selector:"portal",show:p,children:(0,w.jsx)(ez.M,{children:p&&(0,w.jsx)(uh,{initial:{opacity:0,filter:"blur(10px)"}
244,animate:{opacity:1,filter:"blur(0px)"},exit:{opacity:0,filter:"blur(10px)"},images:n,onClose:()=>m(!1),onSlideChange:u,startIndex:l},"artifact-paper-modal")})})]})}ug.fragments={entry:(0,iL.ZP)(uf())},n(36403),n(1943),n(62351),n(4386);var uv=n(21910),uy=n.n(uv);let u_=O().bind(uy());function ub(e){let{headline:t,subhead:n,subheadReveal:i,eyebrow:r,largeTitle:a,noMargin:s,cta:o,isRevealEnabled:l=!1,isInView:u=!1}=e,c={__html:t?(0,D.Ay)(t):""},d=(0,D.Cr)(o);return(0,w.jsxs)("div",{className:u_("section-header",{"no-margin":s}),children:[r&&(0,w.jsx)("p",{className:u_(["eyebrow","eyebrow-l"]),children:r}),(0,w.jsx)(ce,{tag:"h2",text:c.__html,className:u_(["title",{"title-uc-l":!a,"title-uc-xl":a}]),isRevealEnabled:l,isInView:u}),n&&(0,w.jsx)(R.E.div,{initial:l&&i?{opacity:0,y:10}:{},animate:u&&l&&i?{opacity:1,y:0}:{},transition:{duration:.5,delay:.3},className:u_("subhead","text-m"),dangerouslySetInnerHTML:{__html:n}}),d&&(0,w.jsx)(id.z,{...d})]})}var ux=n(16842),uC=n.n(ux);let uE=O().bind(uC());function uw(e){let{text:t,ctas:n}=e;return(0,w.jsxs)("div",{className:uE(["section-footer"]),children:[t&&(0,w.jsx)("div",{className:uE("footer-text","text-l"),dangerouslySetInnerHTML:{__html:t}}),(null==n?void 0:n.length)&&(0,w.jsx)("div",{className:uE("footer-ctas"),children:n.map((e,t)=>{let n=(0,D.Cr)(e);return(0,w.jsx)(id.z,{...n,noIcon:!0,className:uE("footer-cta","button-secondary")},t)})})]})}n(25707);var uT=n(11901),uS=n(40415),uL=n(28890),uP=n(58794),uM=n.n(uP);let uA=O().bind(uM());function uI(e){var t;let{inductee:n,className:i,showCategory:r}=e,{uri:a,title:s,inducteeData:{inducteeClass:o,category:l},pageData:{featuredImage:u}}=n;return(0,w.jsx)(td.K,{href:a,className:"".concat(uA(["inductee-card",i])," inductee-card"),children:(0,w.jsxs)("div",{className:"".concat(uA("content-wrapper")," content-wrapper"),children:[(0,w.jsx)("div",{className:uA("image-wrapper",{"no-image":!u}),children:u?(0,w.jsx)(tc.E,{image:u,className:uA("image")}):(0,w.jsx)("img",{src:iv.src,alt:s,className:uA("image")})}),(0,w.jsxs)("div",{className:uA("text-wrapper"),children:[(0,w.jsx)("p",{className:uA("name","text-m"),children:s}),(0,w.jsxs)("div",{className:uA("pills"),children:[(0,w.jsx)("p",{className:uA("pill","class","tag-s"),children:null==o?void 0:null===(t=o[0])||void 0===t?void 0:t.slug}),r&&(null==l?void 0:l.map((e,t)=>(0,w.jsx)("p",{className:uA("pill","category","tag-s"),children:e},t)))]})]})]})})}n(10756),n(81060);var uR=n(39779),uk=n.n(uR);O().bind(uk());var uD=n(9261),uN=n(41766),uF=n(46126),uO=n(77537),uj=n.n(uO),uU=n(2097),uV=n.n(uU);let uB=O().bind(uV());var uH=(0,T.forwardRef)((e,t)=>{let{tracks:n,onAnimateIn:i}=e,[r,a]=(0,T.useState)(!1),{labels:s}=(0,G.i)(),[o,l]=(0,T.useState)(!1),u=(0,T.useRef)(null),c=(0,T.useRef)([]),d=(0,T.useRef)(null),h=(0,T.useRef)(null),f=(0,T.useRef)(null),p=(0,T.useRef)(null),m=(0,T.useRef)(null),{trackLabel:g,releaseYearLabel:v}=s||{},y=(0,T.useRef)(null),_=(0,T.useRef)(0),{isDesktop:b,isReady:x}=(0,N.dg)(),{mounted:C}=(0,eT.F)(),E=(0,T.useRef)(0),S=(0,T.useMemo)(()=>n.filter((e,t,n)=>n.findIndex(t=>e.heroImage.node.mediaItemUrl===t.heroImage.node.mediaItemUrl)===t),[n]);(0,T.useImperativeHandle)(t,()=>({timeline:y.current,containerEl:m.current}),[o]);let L=(0,T.useCallback)(()=>{if(!b){i();return}y.current=new nT.ZP.core.Timeline({paused:!0,onUpdate:()=>{y.current.time()<y.current.labels.fadeInDisc?a(!1):y.current.time()>=y.current.labels.fadeInDisc&&a(!0)}}),y.current.addLabel("stackImages"),y.current.to(u.current.children,{x:"-50%",rotationY:0},"stackImages"),y.current.to(u.current.children,{scaleX:1,scaleY:1},"stackImages"),y.current.fromTo([f.current,p.current,h.current],{opacity:0},{opacity:1,duration:.1},"fadeInDisc"),y.current.fromTo(f.current,{filter:"drop-shadow(0 0px 0px rgba(0, 0, 0, 0.3))"},{filter:"drop-shadow(0 12px 30px rgba(0, 0, 0, 0.9))",onStart:()=>{nT.ZP.set(f.current.querySelectorAll("img"),{rotation:0})}},"fadeInDisc"),y.current.fromTo(_,{current:0},{current:1,ease:"linear"},"fadeInDisc"),y.current.fromTo(p.current,{clipPath:"circle(0%)"},{clipPath:"circle(100%)"},"fadeInDisc"),y.current.fromTo(p.current.children,{scale:.5},{scale:1}
244,"fadeInDisc"),Array.from(h.current.children).forEach((e,t)=>{0===t&&y.current.fromTo(e,{opacity:0},{opacity:1,duration:0},"track-".concat(t)),y.current.fromTo(e,{y:0===t?0:"100%",clipPath:0===t?"rect(0% 100% 100% 0%)":"rect(0% 100% 0% 0%)",transformOrigin:"bottom"},{y:0,clipPath:"rect(0% 100% 100% 0%)"},"track-".concat(t)),y.current.fromTo(f.current.children[t],{clipPath:0===t?"rect(0% 100% 100% 0%)":"rect(100% 100% 100% 0%)"},{clipPath:"rect(0% 100% 100% 0%)"},"track-".concat(t,"-=0.01")),y.current.to(p.current.children,{y:"-".concat(t*p.current.getBoundingClientRect().height)},"track-".concat(t))}),l(!0),i()},[b,i]);(0,iM.V)(()=>{if(C&&x&&u.current){nT.ZP.registerPlugin(iP.i);let e=nT.ZP.utils.toArray(u.current.children);Array.from(e).reverse().forEach((e,t)=>{nT.ZP.set(e,{zIndex:t})});let t=u.current.children.length,n=u.current.children[0];nT.ZP.set(n,{marginLeft:b?0:"-6vh",rotationY:-45,duration:1,ease:"power3.out"});let i=e.slice(1,t);nT.ZP.set(i,{rotationY:-45});let r=nT.ZP.getProperty(n,"x");b||(r-=.1*window.innerHeight);let a=b?.8:1,s=350/e.length;i.forEach((e,t)=>{let n=r+s;nT.ZP.fromTo(e,{x:n,scale:a-.1},{x:n,scale:a-.1,ease:"power3.out",delay:.3+.1*t,duration:.8,onComplete:t===i.length-1?L:null}),r=n,a-=.1})}},[C,x,u,d]);let P=(0,T.useCallback)(e=>{nT.ZP.set(e.target,{opacity:1}),E.current++,E.current===S.length&&S.length>0&&(nT.ZP.to(d.current,{opacity:0,ease:"linear",duration:.5,delay:.2}),window.scrollTo(0,0))},[S.length]);return(0,T.useEffect)(()=>{c.current&&c.current.forEach(e=>{P({target:e})})},[P]),(0,T.useEffect)(()=>{if(!C||!x||!b)return;let e=()=>{(null==f?void 0:f.current)&&nT.ZP.set(f.current.querySelectorAll("img"),{rotate:"+=".concat(.5*_.current)})};return nT.ZP.ticker.add(e),()=>{nT.ZP.ticker.remove(e)}},[C,x,_,b]),(0,w.jsxs)("div",{className:uB("cant-unhear-it__background-container"),ref:m,children:[(0,w.jsx)("div",{className:uB("cant-unhear-it__background-images"),ref:u,children:S.map((e,t)=>(0,w.jsx)("div",{className:uB("cant-unhear-it__background-image"),children:(0,w.jsx)(tc.E,{ref:e=>{c.current[t]=e},image:e.heroImage,style:{opacity:0},onLoad:P})},"image-".concat(t)))}),(0,w.jsx)("div",{className:uB("cant-unhear-it__black-over"),ref:d}),(0,w.jsx)("div",{className:uB("cant-unhear-it__flat-images"),ref:h,style:{opacity:0},children:n.map((e,t)=>(0,w.jsx)("div",{className:uB("cant-unhear-it__flat-image"),children:(0,w.jsx)(tc.E,{image:e.heroImage})},"flat-".concat(t)))}),(0,w.jsx)("div",{className:uB("cant-unhear-it__disc"),ref:f,style:{opacity:0},children:n.map((e,t)=>(0,w.jsx)("div",{className:uB("cant-unhear-it__disc-image"),children:(0,w.jsx)("div",{className:uB("cant-unhear-it__disc-image","circle",{"cant-unhear-it__disc-image--animate":r}),children:(0,w.jsx)(tc.E,{image:e.heroImage})})},"disc-".concat(t)))}),(0,w.jsx)("div",{className:uB("cant-unhear-it__titles"),ref:p,style:{opacity:0},children:n.map((e,t)=>(0,w.jsxs)("div",{className:uB("cant-unhear-it__title"),children:[(0,w.jsxs)("h3",{className:uB("track-name"),children:[g,(0,w.jsx)("br",{}),(0,w.jsx)("span",{dangerouslySetInnerHTML:{__html:(0,D.xd)(e.trackName)}})]}),(0,w.jsx)("p",{className:uB("artist-name"),dangerouslySetInnerHTML:{__html:(0,D.xd)(e.artistName)}}),(0,w.jsxs)("p",{className:uB("release-year"),children:[v,(0,w.jsx)("br",{}),e.releaseYear]})]},"disc-".concat(t)))})]})}),uG=n(71194),uz=n.n(uG);let uq=O().bind(uz());var uW=(0,T.forwardRef)((e,t)=>{let{pillText:n,headlineMarkup:i,subhead:r}=e,a=(0,T.useRef)(null),s=(0,T.useRef)(null),o=(0,T.useRef)(null),l=(0,T.useRef)(null),u=(0,D.bz)(i),c=(0,nL.k)({node:{__typename:"Post"}}),{mounted:d}=(0,eT.F)(),{isReady:h}=(0,N.dg)();return(0,T.useImperativeHandle)(t,()=>({rootEl:o.current}),[o.current]),(0,iM.V)(()=>{d&&h&&a.current&&l.current&&s.current&&(nT.ZP.registerPlugin(iP.i),nT.ZP.fromTo(a.current.rootEl,{opacity:0},{opacity:1,duration:.4,ease:"linear"}),nT.ZP.fromTo(s.current.children,{y:"130%",willChange:"transform",clipPath:"rect(0% 100% 0% 0%)",skewY:1,opacity:1},{y:"0%",ease:"power4.out",stagger:.1,willChange:"transform",clipPath:"rect(0% 100% 100% 0%)",duration:1.4,skewY:0,opacity:1,onComplete:()=>
244{Array.from(s.current.children).reverse().forEach((e,t)=>{nT.ZP.to(e,{y:"-".concat(120*t,"%"),scrollTrigger:{scrub:1}})})}}),nT.ZP.fromTo(l.current,{opacity:0},{opacity:1,delay:.1*s.current.children.length+.4}))},[d,h,a,l,s]),(0,w.jsx)("div",{className:uq("cant-unhear-it__header-container"),ref:o,children:(0,w.jsxs)("div",{className:uq("cant-unhear-it__header"),children:[c&&(0,w.jsx)(ic,{type:c.key,copy:n||c.label,ref:a}),(0,w.jsx)("h1",{className:uq("headline","title-uc-xl"),ref:s,children:u.map((e,t)=>(0,w.jsx)("span",{dangerouslySetInnerHTML:{__html:e}},t))}),(0,w.jsx)("p",{className:uq("subhead","text-l"),ref:l,children:r})]})})}),u$=n(94845),uZ=n.n(u$);let uY=O().bind(uZ());var uK=(0,T.forwardRef)((e,t)=>{let{track:n,last:i,first:r}=e,a=(0,T.useRef)(null),s=(0,T.useRef)(null),o=(0,T.useRef)(null),[l,u]=(0,T.useState)(!1),[c,d]=(0,T.useState)(!1),{isDesktop:h,isReady:f}=(0,N.dg)(),{mounted:p}=(0,eT.F)(),m=(0,T.useRef)([]),g=(0,D.xd)(n.artistName),v=(0,D.xd)(n.trackName),{isScrolled:y,scrollDirection:_}=(0,eZ.g)(),b=(0,T.useRef)(null),x=(0,T.useMemo)(()=>Math.max(n.images.length,n.blurbs.length),[n.images,n.blurbs]),C=(0,T.useCallback)((e,t)=>{e&&(t||s.current===e?t===x-1&&o.current!==e&&(o.current=e):s.current=e)},[]);(0,T.useImperativeHandle)(t,()=>({getRootEl:()=>a.current,getTrigger:()=>s.current,getLastEl:()=>o.current})),(0,T.useEffect)(()=>{p&&f&&(l?(nT.ZP.set(b.current,{position:"fixed",zIndex:14}),nT.ZP.set(a.current,{paddingTop:"24vw"})):(b.current&&nT.ZP.set(b.current,{position:"relative"}),nT.ZP.set(a.current,{paddingTop:"unset"})))},[p,f,l]),(0,T.useEffect)(()=>{if(!p||!f||h||!a.current)return;nT.ZP.registerPlugin(iP.i);let e=iP.i.create({trigger:a.current,start:"top top",end:"bottom top",onEnter:()=>{u(!0)},onLeave:()=>{u(!1)},onLeaveBack:()=>{u(!1)},onEnterBack:()=>{u(!0)},onUpdate:e=>{if(i)return;let t=r?.85:.75;e.progress>t?d(!0):d(!1)}}),t=()=>{iP.i.refresh(!0)};return window.addEventListener("scroll",t),t(),()=>{window.removeEventListener("scroll",t),e.kill()}},[p,f,h,i,r,a.current]);let E=(0,T.useCallback)(e=>{iP.i.refresh()},[n.images.length]);return(0,w.jsxs)("div",{className:uY("track",{"header-sticky":l}),ref:a,children:[(0,w.jsxs)("div",{className:uY("track-mobile-header",{tint:c,sticky:l,"is-scrolled":l&&y&&"up"===_}),ref:b,children:[(0,w.jsxs)("div",{className:uY("track-album"),children:[(0,w.jsx)(tc.E,{image:n.heroImage}),(0,w.jsx)("div",{className:uY("disc-image",{animate:l||r}),children:(0,w.jsx)(tc.E,{image:n.heroImage})})]}),(0,w.jsxs)("div",{className:uY("track-mobile-header-text"),children:[(0,w.jsx)("h3",{className:uY("track-name"),dangerouslySetInnerHTML:{__html:v}}),(0,w.jsx)("p",{className:uY("artist-name"),dangerouslySetInnerHTML:{__html:g}}),(0,w.jsx)("p",{className:uY("release-year"),children:n.releaseYear})]})]}),(0,w.jsx)("div",{className:uY("track-images-and-blurbs"),children:Array(x).fill(null).map((e,t)=>(0,w.jsx)("div",{className:uY("track-detail-group-container"),children:(0,w.jsxs)("div",{ref:e=>C(e,t),className:uY("track-detail-group",{"track-detail-group-reverse":t%2!=0&&!n.flipContentOrder||n.flipContentOrder&&t%2==0}),children:[n.images[t]&&(0,w.jsx)(tc.E,{className:uY("track-image"),image:n.images[t].image,onLoad:E,ref:e=>{m.current[t]=e}}),n.blurbs[t]&&(0,w.jsxs)("div",{className:uY("blurb"),children:[(0,w.jsx)("span",{className:uY("eyebrow","eyebrow-s"),children:n.blurbs[t].eyebrow}),(0,w.jsx)("p",{className:uY("copy","text-m"),children:n.blurbs[t].copy})]})]})},"detail-group-".concat(t)))})]})}),uX=n(37511),uQ=n.n(uX);let uJ=O().bind(uQ()),u0=(0,T.forwardRef)((e,t)=>{let{tracks:n,goToTrack:i,currentTrackIndex:r=-1}=e;return(0,w.jsx)("ul",{className:uJ("cant-unhear-it__bullets"),ref:t,children:null==n?void 0:n.map((e,t)=>(0,w.jsx)("li",{className:uJ("cant-unhear-it__bullet",{active:r===t}),onClick:()=>i(t)},t))})});var u1=R.E.create(u0);function u2(){return(u2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var u3=function(e){return T.createElement("svg",u2({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=T.createElement("g",{clipPath:"url(#clip0_4181_12348)"},T.createElement("path",{d:"M20.5091 10.4036L16.0807 10.4143C15.9162 10.4053 15.7519 10.4345 15.6005 10.499
2446L14.971 10.7771L13.0182 6.4021C12.4207 5.05759 10.8414 4.44936 9.49691 5.04692C8.15241 5.64448 7.54418 7.22374 8.14174 8.56825L11.6631 16.5179L9.66765 16.9341C9.4649 16.9874 8.61125 17.2222 8.21643 18.2252L7.46948 20.21L14.7042 23.059C15.2271 23.2618 15.8246 23.2511 16.3368 23.0164L22.7286 20.1886C23.6783 19.7618 24.1905 18.7161 23.9344 17.713L22.4831 12.0149C22.2484 11.0972 21.4481 10.4463 20.5091 10.4036ZM21.8642 18.2359L15.4725 21.0743L10.2225 18.9828L14.6829 18.0438L10.0945 7.69325C9.97709 7.42649 10.0945 7.10637 10.3612 6.98899C10.628 6.87161 10.9481 6.98899 11.0655 7.25575L13.7332 13.2847L15.4512 12.5271L20.413 12.5377L21.8642 18.2359ZM1.13109 5.66582L0 4.53473L3.73474 0.799988L7.46948 4.53473L6.33839 5.66582L4.60974 3.93717C4.19225 5.58341 4.15594 7.30321 4.50358 8.9656C4.85122 10.628 5.57364 12.1891 6.61583 13.5301L5.47406 14.6719C3.65442 12.4017 2.66435 9.57831 2.66767 6.66887C2.66767 5.68716 2.77438 4.7268 2.98779 3.80912L1.13109 5.66582Z",fill:"#FF47B6"}))),a||(a=T.createElement("defs",null,T.createElement("clipPath",{id:"clip0_4181_12348"},T.createElement("rect",{width:24,height:24,fill:"white"})))))},u5=n(81334);let u4=O().bind(uj());function u6(e){var t;let{headline:n,subhead:i,tracks:r}=e,{labels:a}=(0,G.i)(),s=(null==a?void 0:null===(t=a.postTypeLabels)||void 0===t?void 0:t.post)||"Post",{scrollPrompt:o,swipePrompt:l}=a||{},u=n?(0,D.Ay)(n):null,[c,d]=(0,T.useState)(!1),[h,f]=(0,T.useState)(!1),[p,m]=(0,T.useState)(!1),{soundEnabled:g,globalVolume:v}=(0,u5.je)(),[y,_]=(0,T.useState)(-1),[b,x]=(0,T.useState)(!1),C=(0,T.useRef)(null),S=(0,T.useRef)(null),L=(0,T.useRef)([]),P=(0,T.useRef)(0),[M,A]=(0,T.useState)([]),I=(0,T.useRef)(null),k=(0,T.useRef)(null),F=(0,T.useRef)([]),O=(0,T.useRef)(!1),j=(0,T.useRef)(!1),{isDesktop:U,isReady:V}=(0,N.dg)(),{mounted:B}=(0,eT.F)(),H=(0,T.useRef)(!0),z=(0,T.useRef)([]),q=(0,T.useRef)((0,iR.PI)("lowPass")),W=(0,T.useCallback)((e,t)=>{e&&F.current[t]!==e&&(F.current[t]=e,e.getLastEl()&&e.getTrigger()&&(P.current+=1,P.current===r.length&&x(!0)))},[]),$=(0,T.useCallback)(()=>{var e;d(c),m(!0),null===(e=S.current)||void 0===e||e.start()},[S.current,d]);(0,T.useEffect)(()=>{var e;return"scrollRestoration"in(null===(e=window)||void 0===e?void 0:e.history)&&(window.history.scrollRestoration="manual"),window.scrollTo(0,0),setTimeout(()=>{window.scrollTo(0,0)},200),()=>{var e;"scrollRestoration"in(null===(e=window)||void 0===e?void 0:e.history)&&(window.history.scrollRestoration="auto")}},[]),(0,T.useEffect)(()=>{var e;if(!B||!V||j.current||!(null==k?void 0:null===(e=k.current)||void 0===e?void 0:e.rootEl)||!p||!b)return;j.current=!0,nT.ZP.registerPlugin(iP.i);let t=["/audio/kendrick.mp3","/audio/monk.mp3","/audio/ray.mp3"],n=r.map((e,n)=>new uN.Howl({src:window.location.search.includes("static")?t[n]:(0,D.Mu)(e.audio),autoplay:!0,loop:!0,volume:0,mute:!g,format:["mp3"],html5:!1}));if(L.current=n,q.current){let e=uN.Howler.ctx;z.current=r.map(()=>{let t=e.createBiquadFilter();t.type="lowpass",t.frequency.value=0,t.Q.value=15;let n=e.createBiquadFilter();return n.type="lowpass",n.frequency.value=250,n.Q.value=1,t.connect(n),{primary:t,secondary:n}}),n.forEach((t,n)=>{var i;let r=null===(i=t._sounds)||void 0===i?void 0:i[0];if(r){let t=r._node;if(t&&z.current[n])try{t.disconnect(),t.connect(z.current[n].primary),z.current[n].primary.connect(e.destination)}catch(e){}}})}let i=(e,t,i)=>{let r=10,a=23990,s=Math.abs(t-.5)/.5,o=t;if(e>0){let i=(1-t)*v;n[e-1].volume(i),z.current[e-1].primary.frequency.value=r+a*s}0===e&&(s=Math.abs((o=Math.min(1,2*t))-.5)/.5),n[e].volume(o*v),z.current[e].primary.frequency.value=r+s*a},a=(e,t,i)=>{let a=Math.min(1,3*t);if(e>0){let t=(1-a)*v;
244n[e-1].volume(t),n[e-1].rate(Math.max(.0625,1-a))}n[e].volume(a*v),n[e].rate(Math.max(.0625,a)),-1===i&&e<r.length-1&&e>0&&(n[e+1].volume(a*v),n[e+1].rate(Math.max(.0625,a)))};iP.i.create({trigger:k.current.rootEl,start:"-90px top",end:"bottom bottom",onUpdate:e=>{var t;if(!(null===(t=I.current)||void 0===t?void 0:t.timeline))return;let n=I.current.timeline;null==n||n.seek("stackImages+=".concat(n.labels.fadeInDisc*e.progress),!1)},onEnterBack:()=>{_(-1)}});let s=F.current[F.current.length-1].getLastEl(),o=!1;iP.i.create({trigger:s,start:"bottom bottom",end:"bottom top",onUpdate:e=>{var t;(null===(t=I.current)||void 0===t?void 0:t.containerEl)&&o&&(nT.ZP.set(I.current.containerEl,{y:"".concat(-(100*e.progress),"vh")}),e.progress>0?_(-1):_(r.length-1))},onEnter:()=>{o=!0}}),F.current.forEach((e,t)=>{let n=e.getTrigger();iP.i.create({trigger:n,start:"65px bottom",end:"bottom bottom",onEnter:()=>{O.current||_(t)},onEnterBack:()=>{O.current||_(t-1)},onUpdate:e=>{var n;q.current?i(t,null==e?void 0:e.progress,null==e?void 0:e.direction):a(t,null==e?void 0:e.progress,null==e?void 0:e.direction);let r=null==I?void 0:null===(n=I.current)||void 0===n?void 0:n.timeline;if(!r)return;let s=0===t?"fadeInDisc":"track-".concat(t),o="track-".concat(t+1),l=r.labels[o]-r.labels[s];t===F.current.length-1&&(l=r.totalDuration()-r.labels[s]),null==r||r.seek("".concat(s,"+=").concat(l*e.progress*.95),!1)},onLeave:()=>{var e;let n=null===(e=I.current)||void 0===e?void 0:e.timeline,i="track-".concat(t+1);null==n||n.seek(n.labels[i],!1)}})})},[p,b,B,V]),(0,T.useEffect)(()=>{var e;if(B&&V)return window.scrollTo(0,0),null===(e=S.current)||void 0===e||e.scrollTo(0,{immediate:!0}),S.current=new uF.Z({autoRaf:!1}),S.current.on("scroll",e=>{let{scroll:t}=e;!h&&t>15&&f(!0)}),S.current.stop(),S.current.scrollTo(0),nT.ZP.ticker.add(t),nT.ZP.ticker.lagSmoothing(0),document.body.classList.add("cantunhearit"),nT.ZP.to(C.current,{opacity:1,delay:.2}),()=>{var e;null===(e=S.current)||void 0===e||e.destroy(),nT.ZP.ticker.remove(t),uN.Howler.unload(),document.body.classList.remove("cantunhearit")};function t(e){var t;null===(t=S.current)||void 0===t||t.raf(1e3*e),iP.i.update()}},[B,V]),(0,T.useEffect)(()=>{L.current.forEach(e=>e.mute(!g))},[g]),(0,T.useEffect)(()=>{L.current.forEach(e=>{let t=e.volume();t>0&&e.volume(t*v)})},[v]);let Z=(0,T.useCallback)(e=>{if(e===y)return;O.current=!0,_(e);let t=document.getElementById("track-".concat(e));t&&S.current&&(S.current.targetScroll,t.offsetTop,S.current.scrollTo(t,{duration:1,lock:!0,offset:100,onComplete:()=>{O.current=!1}}))},[y]),Y=(0,T.useMemo)(()=>[(0,w.jsx)(uH,{tracks:r,onAnimateIn:$,ref:I},"bg"),(0,w.jsx)(uW,{pillText:s,headlineMarkup:u,subhead:i,ref:k},"header")],[]);return(0,T.useEffect)(()=>{A(U?Y:[...Y].reverse())},[U]),(0,T.useEffect)(()=>{V&&(H.current?H.current&&(H.current=!1):window.location.reload())},[U,V]),(0,w.jsx)("section",{className:u4(["cant-unhear-it"]),ref:C,style:{opacity:0},children:(0,w.jsxs)(E.W,{className:u4("cant-unhear-it-container"),children:[M,(0,w.jsx)(ez.M,{mode:"wait",children:-1!==y&&(0,w.jsx)(u1,{goToTrack:Z,tracks:r,currentTrackIndex:y,initial:{opacity:0,x:"-15px"},animate:{opacity:1,x:"0px"},exit:{opacity:0,x:"-15px"}})}),(0,w.jsx)(ez.M,{mode:"wait",children:!h&&(0,w.jsxs)(R.E.div,{className:u4("scroll-indicator"),initial:{opacity:0}
244,animate:{opacity:1},exit:{opacity:0},transition:{duration:1},children:[(0,w.jsxs)("div",{className:u4("scroll-indicator-desktop"),children:[(0,w.jsx)("div",{children:o}),(0,w.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"#FF47B6",xmlns:"http://www.w3.org/2000/svg",children:[(0,w.jsx)("path",{d:"M12 0C16.4183 0 20 3.58172 20 8V16C20 20.4183 16.4183 24 12 24C7.71994 24 4.22523 20.6389 4.01074 16.4121L4 16V8C4 3.58172 7.58172 0 12 0ZM12 2.5C8.96243 2.5 6.5 4.96243 6.5 8V16C6.5 19.0376 8.96243 21.5 12 21.5C15.0376 21.5 17.5 19.0376 17.5 16V8C17.5 4.96243 15.0376 2.5 12 2.5Z"}),(0,w.jsx)("path",{className:u4("wheel"),d:"M12 6C13.1046 6 14 6.89543 14 8C14 9.10457 13.1046 10 12 10C10.8954 10 10 9.10457 10 8C10 6.89543 10.8954 6 12 6Z"})]})]}),(0,w.jsxs)("div",{className:u4("scroll-indicator-mobile"),children:[(0,w.jsx)("div",{children:l}),(0,w.jsx)(u3,{})]})]})}),(0,w.jsx)("div",{className:u4("tracks"),children:r.map((e,t)=>(0,w.jsx)("div",{id:"track-".concat(t),children:(0,w.jsx)(uK,{track:e,first:0==t,last:t===r.length-1,ref:e=>W(e,t)})},"track-".concat(t)))})]})})}var u8=n(23791),u7=n.n(u8);let u9=O().bind(u7());function ce(e){let{tag:t="h1",text:n,className:i,isCenterAlign:r=!1,isRevealEnabled:a=!0,isInView:s=!1,animInDelay:o=0,onAnimationStart:l,onAnimationComplete:u,maxCharsPerWord:c}=e,{log:d}=(0,ij.q)({name:"HeadlineAnim",bgColor:"rebeccapurple",textColor:"white",enabled:!1}),h=!1,f=k.LL.HeadlineAnim,p=()=>!!c&&(null==n?void 0:n.replace(/<[^>]*>/g,"")).split(/\s+/).some(e=>e.length>c),m=a&&!p(),[g,v]=(0,T.useState)(!1),[y,_]=(0,T.useState)(!1),b=(0,T.useRef)(null),x=(0,T.useRef)(null);return(0,T.useEffect)(()=>{if(!m||!s||!x.current)return;let e=null,t=null,n=e=>{e.childNodes.forEach(e=>{if(e.nodeType===Node.TEXT_NODE){let n=e.textContent||"";if(n.includes("-")){var t;let i=null==n?void 0:n.replace(/-/g,"<span>-</span>"),r=document.createElement("div");r.innerHTML=i;let a=document.createDocumentFragment();Array.from(r.childNodes).forEach(e=>a.appendChild(e)),null===(t=e.parentNode)||void 0===t||t.replaceChild(a,e)}}else e.nodeType===Node.ELEMENT_NODE&&n(e)})};n(x.current),e=new so.Z(x.current,{type:"lines, words, chars",linesClass:"gline"});let i=f.charDistance;if(e.lines.length>1){let e=parseFloat(null==i?void 0:i.toString().replace("%",""));i="".concat(1.5*e,"%")}return t=nT.ZP.timeline({onStart:()=>{v(!0),l&&l()},onComplete:()=>{!h&&(_(!0),u&&u())},delay:o}).from(e.chars,{opacity:f.charOpacity,y:i,duration:f.duration,ease:f.ease,stagger:f.stagger}),()=>{t&&t.kill(),e&&e.revert()}},[m,s]),m?(0,w.jsxs)("div",{ref:b,className:u9("headline-anim",{centered:r}),style:{visibility:m&&!g?"hidden":"visible"},children:[(0,w.jsx)(t,{className:u9(["base",i,{hidden:m&&s&&!y}]),dangerouslySetInnerHTML:{__html:n}}),m&&!y&&(0,w.jsx)(t,{className:u9(["anim",i,{hidden:!s}]),ref:x,dangerouslySetInnerHTML:{__html:n}})]}):(0,w.jsx)(t,{className:u9(["base",i]),dangerouslySetInnerHTML:{__html:n}})}var ct=n(71836),cn=n.n(ct);let ci=O().bind(cn());function cr(e){let{tag:t="h1",text:n,className:i,isCenterAlign:r=!1,isRevealEnabled:a=!0,isInView:s=!1,animInDelay:o=0,onAnimationStart:l,onAnimationComplete:u}=e,{log:c}=(0,ij.q)({name:"HeadlineAnimSplitLine",bgColor:"#9B59B6",textColor:"white",enabled:!1}),d=!1,[h,f]=(0,T.useState)(!1),[p,m]=(0,T.useState)(!1),g=(0,T.useRef)(null),v=(0,T.useRef)(null),y=(0,T.useRef)(null);return(0,T.useEffect)(()=>{if(!a||!s||!y.current||!v.current)return;let e=null,t=null,n=1.25,i="expo.inOut";return c("Split created",{lines:(e=new so.Z(y.current,{type:"lines",mask:"lines",linesClass:"line"})).lines.length}),(t=nT.ZP.timeline({onStart:()=>{f(!0),l&&l()},onComplete:()=>{!d&&(m(!0),u&&u())},delay:o}).add("start")).fromTo(v.current,{scale:.5},{scale:1,duration:n,ease:i},"start"),e.lines.forEach((e,r)=>{let a=r%2==0?"110%":"-110%";t.fromTo(e,{y:a},{y:0,duration:n,ease:i},"start")}),()=>{t&&t.kill(),e&&e.revert()}},[a,s,o,l,u]),a?(0,w.jsxs)("div",{ref:g,className:ci("headline-anim-split-line",{centered:r}),style:{visibility:a&&!h?"hidden":"visible"},children:[(0,w.jsx)(t,{className:ci(["base",i,{hidden:a&&s&&!p}]),dangerouslySetInnerHTML:{__html:n}}),a&&!p&&(0,w.jsx)("div",{className:ci("anim-wrap"),ref:v,children:(0,w.jsx)(t,{className:ci(["anim",i,{hidden:!s}]),ref:y,dangerouslySetInnerHTML:{__html:n}})})]}):(0,w.jsx)(t,{className:ci(["base",i]),dangerouslySetInnerHTML:{__html:n}})}var ca=n(5980),cs=n.n(ca);let co=O().bind(cs());
244function cl(e){let{content:t}=e;return(0,w.jsx)("div",{className:co("signature"),"aria-hidden":"true",dangerouslySetInnerHTML:{__html:t}})}let cu=O().bind(cs()),cc=e=>{let{member:t,single:n}=e,i=!!(null==t?void 0:t.link),r=i?td.K:"div";return(0,w.jsxs)(r,{className:cu(["member",{single:n,"has-link":i}]),href:t.link||null,children:[(0,w.jsx)(cl,{content:null==t?void 0:t.signature}),(0,w.jsx)("span",{className:cu(["text-m","name"]),children:t.name})]})};function cd(e){let{content:t,members:n}=e,{log:i}=(0,ij.q)({name:"InducteeMembers",bgColor:"MediumAquamarine",enabled:!1});i({content:t,members:n});let r=(0,D.Ay)(t.headline),a=(0,T.useRef)(null),{isDesktop:s}=(0,N.dg)(),o=k.LL,l=s?o.lg.triggerPercent:o.sm.triggerPercent,u=(0,I.Y)(a,{amount:l,once:o.once});return(0,w.jsx)(R.E.section,{className:cu(["inductee-members"]),ref:a,children:(0,w.jsx)(c4,{isInView:u,children:(0,w.jsx)(E.W,{children:(0,w.jsxs)("div",{className:cu(["inductee-members-content"]),children:[(0,w.jsxs)("div",{className:cu(["inductee-members-content-side","copy"]),children:[(0,w.jsx)("h2",{className:cu(["title-uc-l","headline"]),dangerouslySetInnerHTML:{__html:r}}),(0,w.jsx)("p",{className:cu(["text-m","body"]),children:t.body})]}),(0,w.jsx)("div",{className:cu(["inductee-members-content-side","members"]),children:null==n?void 0:n.map((e,t)=>(0,w.jsx)(cc,{member:e,single:1===n.length},t))})]})})})})}var ch=n(77655);n(76094);var cf=n(39114),cp=n.n(cf);let cm=O().bind(cp());function cg(e){let{title:t,pageData:n,uri:i}=e,{featuredImage:r}=n;return(0,w.jsxs)(td.K,{href:i,className:cm("listing-inductee-card"),children:[(0,w.jsx)("div",{className:cm(["image-wrapper"]),children:(0,w.jsx)(tc.E,{image:r})}),(0,w.jsx)("p",{className:"title-lc-xs",children:t})]})}let cv=O().bind(cp()),cy=["performer","musical-influence","musical-excellence","ahmet-ertegun-award"],c_=e=>{let{group:t,inductees:n}=e,{labels:i}=(0,G.i)(),r=(0,D.Vb)(t,i),a=!!r,s=(0,T.useMemo)(()=>(0,D.rL)(n),[n]);return(0,w.jsxs)("div",{className:cv("group"),children:[a&&(0,w.jsxs)("div",{className:cv("group__copy"),children:[(0,w.jsx)("h2",{className:cv("title","title-uc-s"),children:null==r?void 0:r.headline}),(0,w.jsx)("p",{className:cv("body","text-m"),children:null==r?void 0:r.body})]}),(0,w.jsx)("div",{className:cv("group__list"),children:null==s?void 0:s.map(e=>(0,w.jsx)(cg,{...e},e.uri))})]},t)};function cb(e){let{inductees:t,classYear:n,showHeader:i}=e,{labels:r}=(0,G.i)(),{headline:a,body:s}=(null==r?void 0:r.listingInducteesCopy)||{},o=(0,D.eu)(t.nodes),l=(0,D.Ay)((0,D.$e)(a,{year:n})),u=(0,D.$e)(s,{year:n}),{isDesktop:c}=(0,N.dg)(),d=(0,T.useRef)(null),h=k.LL,f=c?h.lg.triggerPercent:h.sm.triggerPercent,p=(0,I.Y)(d,{amount:f,once:h.once});return(0,w.jsx)("section",{className:cv(["listing-inductees"]),ref:d,children:(0,w.jsx)(c4,{isInView:p,children:(0,w.jsxs)(E.W,{children:[i&&(0,w.jsxs)("div",{className:cv(["listing-inductees__header"]),children:[(0,w.jsx)("h2",{className:cv("title","title-uc-xl"),dangerouslySetInnerHTML:{__html:l}}),(0,w.jsx)("p",{className:cv("body","text-l"),children:u})]}),(0,w.jsx)("div",{className:cv(["listing-inductees__groups"]),children:cy.map(e=>o[e]?(0,w.jsx)(c_,{group:e,inductees:o[e]},e):null)})]})})})}var cx=n(3048),cC=n.n(cx);let cE=O().bind(cC()),cw=e=>{let{inductee:t}=e,n=(0,T.useRef)(null);return nT.ZP.registerPlugin(so.Z),(0,T.useEffect)(()=>{setTimeout(()=>{so.Z.create(n.current,{type:"lines"})},150)},[n]),(0,w.jsxs)("li",{className:cE("inductee-item"),children:[(0,w.jsx)("p",{ref:n,className:cE(["name"]),children:t.title}),(0,w.jsx)("span",{className:cE("spacer")})]},t.title)};function cT(e){let{year:t,inductees:n}=e,i=(0,D.rL)(n),{labels:r}=(0,G.i)(),{andMoreLabel:a,classOfLabel:s}=r||{},o=(0,D.$e)(s,{year:""});return(0,w.jsx)(td.K,{href:"/inductees/classes/".concat(t),className:cE("carousel-classes-card"),children:(0,w.jsxs)("div",{className:cE("expanded-content"),children:[(0,w.jsxs)("div",{className:cE("year-header"),children:[(0,w.jsx)("p",{className:cE(["class","text-l"]),children:o}),(0,w.jsx)("p",{className:cE(["year","display-xxl"]),children:t})]}),(0,w.jsxs)("ul",{className:cE("inductees-list"),children:[i.map((e,t)=>(0,w.jsx)(cw,{inductee:e},"".concat(e.title,"-").concat(t))),n.length>16&&(0,w.jsx)("li",{className:cE("inductee-item"),children:(0,w.jsx)("p",{className:cE(["name"]),children:a})})]})]})})}let cS=O().bind(cC());function cL(e){let{inductees:t}=e,n=(0,T.useRef)(null),i=(0,D.Ee)(t),{labels:r}=(0,G.i)(),{classOfLabel:a}=r||{},s=null==r?void 0:r.carouselClassesCta,o=null==r?void 0:r.carouselClassesHeadline,l=(0,T.useMemo)(()=>Object.keys(i).sort((e,t)=>
244{let n=parseInt(e,10);return parseInt(t,10)-n}),[i]),u={type:"slide",arrows:!0,pagination:!0,speed:500,flickMaxPages:1,flickPower:250,updateOnMove:!0,perPage:3,perMove:3,fixedWidth:"30%",gap:"3rem",padding:{left:"5rem",right:"5rem"},breakpoints:{1025:{perPage:2,perMove:2,fixedWidth:"45%",gap:"3rem",padding:{left:"4rem",right:"4rem"},arrows:!1},769:{perPage:1,perMove:1,fixedWidth:"76%",gap:"2rem",padding:{left:"2rem",right:"2rem"}}}};(0,T.useEffect)(()=>{n.current&&(n.current.querySelectorAll(".splide__list").forEach(e=>{e.setAttribute("role","list")}),n.current.querySelectorAll(".splide__slide").forEach(e=>{e.setAttribute("role","listitem")}))},[]);let{isDesktop:c}=(0,N.dg)(),d=k.LL,h=c?d.lg.triggerPercent:d.sm.triggerPercent,f=(0,I.Y)(n,{amount:h,once:d.once});return(0,w.jsx)("section",{className:cS(["carousel-classes"]),ref:n,children:(0,w.jsxs)(c4,{isInView:f,children:[(0,w.jsx)(E.W,{children:(0,w.jsx)(ub,{headline:o,isRevealEnabled:!0,isInView:f})}),(0,w.jsxs)(uo.tv,{hasTrack:!1,options:u,children:[(0,w.jsx)(uo.Gj,{children:l.map(e=>(0,w.jsx)(uo.jw,{"aria-label":(0,D.$e)(a,{year:e}),children:(0,w.jsx)(cT,{year:e,inductees:i[e]},e)},e))}),(0,w.jsx)(E.W,{children:(0,w.jsx)(iE.J,{className:cS("carousel-pagination"),cta:s})})]})]})})}n(83061),n(33464);var cP=n(94385),cM=n.n(cP);let cA=O().bind(cM());function cI(e){let{label:t,value:n,count:i,onClick:r,className:a,active:s}=e,o=(0,T.useMemo)(()=>!isNaN(i)&&0===i,[i]);return(0,w.jsx)("button",{"aria-current":s?"true":"false",className:cA(["brand-chip",{active:s},a]),disabled:o,onClick:()=>null==r?void 0:r(n),children:(0,w.jsxs)("span",{className:cA("label","cta"),children:[t,"number"!=typeof i||o?null:" (".concat(i,")")]})})}var cR=n(93779),ck=n.n(cR);let cD=O().bind(ck()),cN=e=>{var t,n,i,r,a,s;let{price:o,pricingType:l}=e,{labels:u}=(0,G.i)(),c=[];if(!o||!l)return c;let[d]=l;if("ticketed"===d)o.gaPrice&&c.push({label:"".concat(null==u?void 0:null===(t=u.eventPriceLabels)||void 0===t?void 0:t.generalAdmission," $").concat(o.gaPrice)}),o.priceWithAdmission&&c.push({label:"".concat(null==u?void 0:null===(n=u.eventPriceLabels)||void 0===n?void 0:n.priceWithAdmission," $").concat(o.priceWithAdmission)}),o.membersPrice&&c.push({label:"".concat(null==u?void 0:null===(i=u.eventPriceLabels)||void 0===i?void 0:i.members," $").concat(o.membersPrice)});else switch(d){case"free-with-rsvp":c.push({label:null==u?void 0:null===(r=u.eventPriceLabels)||void 0===r?void 0:r.freeWithRsvp});break;case"free-with-admission":c.push({label:null==u?void 0:null===(a=u.eventPriceLabels)||void 0===a?void 0:a.freeWithAdmission});break;case"free":c.push({label:null==u?void 0:null===(s=u.eventPriceLabels)||void 0===s?void 0:s.free})}return c};function cF(e){let{className:t,pricingType:n,price:i}=e,r=cN({pricingType:n,price:i});return(0,w.jsx)("div",{className:cD(["event-price-pills",t]),children:r.map((e,t)=>(0,w.jsx)("span",{className:cD("pill"),children:e.label},t))})}var cO=n(80068),cj=n.n(cO);let cU=O().bind(cj());function cV(e){let{onPageChange:t,currentPage:n,totalCount:i,perPage:r,className:a,size:s}=e,o=Math.ceil(i/r),l=o<=5?Array.from({length:o},(e,t)=>t+1):n<3?[1,2,3,"...",o]:3===n?[1,2,3,4,"...",o]:n>=o-2?[1,"...",o-2,o-1,o]:[1,"...",n-1,n,n+1,"...",o],u=()=>{n>1&&t(n-1)},c=()=>{n<o&&t(n+1)},d=e=>{"number"==typeof e&&t(e)};return(0,w.jsx)("div",{className:cU(["query-pagination",a]),children:(0,w.jsxs)("div",{className:cU("query-pagination__buttons"),children:[(0,w.jsx)(ig,{size:s,icon:eQ.Z,className:cU("prev-button"),onClick:u,disabled:1===n}),(0,w.jsx)("ul",{className:cU("page-numbers"),children:l.map((e,t)=>(0,w.jsx)("li",{className:cU("page-item"),children:"..."===e?(0,w.jsx)("span",{className:cU(["ellipsis","cta"]),children:"..."}):(0,w.jsx)("button",{className:cU(["page-link","cta",{active:e===n}]),onClick:()=>d(e),children:e})},t))}),(0,w.jsx)(ig,{size:s,icon:eQ.Z,className:cU("next-button"),onClick:c,disabled:n===o})]})})}var cB=n(39880),cH=n(27236),cG=n.n(cH);let cz=O().bind(cG());function cq(e){let{inducteeLandingData:t,inductees:n}=e,i=!0,{headline:r,searchPlaceholder:a,aZLabel:s,byClassLabel:o,noResultsTitle:l,noResultsBody:u,primaryCardCta:c,noResultsCta:d}=t,h=(0,e1.useRouter)(),f=(0,T.useRef)(null),p=(0,T.useRef)(null),m=(0,T.useRef)(null),g=h.asPath.includes("/classe
244s/")?"by-class":"a-z",[v,y]=(0,T.useState)(g),[_,b]=(0,T.useState)(null),x=(0,T.useRef)(null),{currentLanguage:C}=(0,eZ.g)(),{isReady:E}=(0,N.dg)(),{mounted:S}=(0,eT.F)(),L=(0,T.useCallback)(()=>{var e;let t=null===(e=f.current)||void 0===e?void 0:e.lenis;i?t?(t.start(),requestAnimationFrame(()=>{t.scrollTo(0,{duration:.6,easing:e=>Math.min(1,1.001-Math.pow(2,-10*e)),onComplete:()=>{iP.i.refresh(!0)}})})):nT.ZP.to(window,{scrollTo:{y:0,autoKill:!1},duration:.6,ease:"power2.out",onComplete:()=>{iP.i.refresh(!0)}}):(t?t.scrollTo(0,{immediate:!0}):window.scrollTo({top:0,behavior:"auto"}),requestAnimationFrame(()=>{iP.i.refresh(!0)}))},[i]);(0,T.useEffect)(()=>{var e;return iP.i.clearScrollMemory("manual"),"scrollRestoration"in(null===(e=window)||void 0===e?void 0:e.history)&&(window.history.scrollRestoration="manual"),()=>{var e;"scrollRestoration"in(null===(e=window)||void 0===e?void 0:e.history)&&(window.history.scrollRestoration="auto")}},[]),(0,T.useEffect)(()=>{let e=h.asPath.includes("/classes/")?"by-class":"a-z";e!==v&&(y(e),L())},[h.asPath,v,L]);let P=e=>{let t="";"en"!==C&&(t="/".concat(C)),_&&(M(),b(null)),x.current&&nT.ZP.to(x.current,{opacity:1,duration:.3,ease:"power2.inOut",onComplete:()=>{y(e),L(),"by-class"===e?h.push("".concat(t,"/inductees/classes/"),void 0,{shallow:!0,scroll:!1}):h.push("".concat(t,"/inductees/"),void 0,{shallow:!0,scroll:!1}),nT.ZP.delayedCall(.9,()=>{x.current&&nT.ZP.to(x.current,{opacity:0,duration:.4,ease:"power2.inOut"})})}})},M=(0,T.useCallback)(e=>{b(e),nT.ZP.set(p.current.parentNode.parentNode,{pointerEvents:e?"none":"auto"}),e||nT.ZP.set(p.current,{opacity:0}),nT.ZP.to(p.current,{height:e?"12rem":"auto",ease:"power4.inOut",duration:e?0:.5,opacity:e?0:1,delay:e?0:.5,pointerEvents:e?"none":"auto"}),nT.ZP.to(m.current.querySelector("#carousel-spacer"),{width:e?0:"min(45vw, 700px)",marginLeft:"-3rem",ease:"power4.inOut",duration:e?.3:1})},[m,p]);return(0,T.useEffect)(()=>{function e(e){var t,n;null===(n=f.current)||void 0===n||null===(t=n.lenis)||void 0===t||t.raf(1e3*e),iP.i.update()}return nT.ZP.registerPlugin(iM.V),nT.ZP.registerPlugin(iP.i),nT.ZP.registerPlugin(nS.L),nT.ZP.ticker.add(e),nT.ZP.ticker.lagSmoothing(0),()=>nT.ZP.ticker.remove(e)},[]),(0,T.useEffect)(()=>{var e,t;if(S&&E&&(null===(e=f.current)||void 0===e?void 0:e.lenis)){let e=null===(t=f.current)||void 0===t?void 0:t.lenis;e.scrollTo(0,{immediate:!0}),e.stop()}},[f,S,E]),(0,T.useEffect)(()=>{var e;(null===(e=f.current)||void 0===e?void 0:e.lenis)&&S&&E&&f.current.lenis.start()},[v,S,E]),(0,T.useEffect)(()=>{m.current&&nT.ZP.to(m.current,{opacity:1,duration:.3})},[m]),(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(a5.ZP,{root:!0,options:{autoRaf:!1,allowNestedScroll:!0},ref:f}),(0,w.jsxs)("div",{className:"inductees-landing",ref:m,style:{opacity:0},children:[n.length>0&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(rY,{headline:r,aZLabel:s,byClassLabel:o,activeTab:v,onTabClick:P,ref:p}),(0,w.jsx)(ez.M,{initial:!1,mode:"wait",children:"a-z"===v?(0,w.jsx)(a8,{inductees:n,noResultsTitle:l,noResultsBody:u,searchPlaceholder:a,noResultsCta:d,onAnimateIn:()=>{var e,t;null===(t=f.current)||void 0===t||null===(e=t.lenis)||void 0===e||e.start()}},"a-z"):(0,w.jsx)(l7,{inductees:n,primaryCardCta:c,onSelectYear:e=>M(e)},"by-class")})]}),(0,w.jsx)("div",{ref:x,className:cz("fade-to-black")})]})]})}var cW=n(21421),c$=n(53531),cZ=n.n(c$);let cY=O().bind(cZ());function cK(e){var t,n;let{filterButtons:i,typeFilters:r,handleFilterClick:a,termCounts:s}=e,{viewWidth:o}=(0,N.dg)(),{labels:{ariaLabels:l}={}}=(0,G.i)(),u=(0,T.useRef)(null),c=(0,T.useRef)(null),[d,h]=(0,T.useState)(!1),[f,p]=(0,T.useState)(!1),[m,g]=(0,T.useState)(!1),v=(0,T.useMemo)(()=>{let e={};return s&&s.forEach(t=>{t.termSlug&&(e[t.termSlug]=t.count||0)}),e},[s]),y=()=>{if(c.current){let e=c.current.children,{scrollLeft:t,clientWidth:n}=c.current;for(let i=0;i<e.length;i++){let r=e[i];if(r.offsetLeft+r.offsetWidth>t+n){c.current.scrollTo({left:r.offsetLeft-(0,D.t3)(80),behavior:"smooth"});break}}}},_=()=>{if(c.current){let e=c.current.children,{scrollLeft:t,clientWidth:n}=c.current;for(let i=e.length-1;i>=0;i--){let r=e[i],a=r.offsetLeft;if(a<t){c.current.scrollTo({left:a-n+r.offsetWidth+(0,D.t3)(80),behavior:"smooth"});break}}}},b=e=>{let{scrollLeft:t,scrollWidth:n,clientWidth:i}=e.currentTarget;
244p(t+i>=n-5),g(t>0)},x=()=>{if(c.current){let{scrollWidth:e,clientWidth:t}=c.current;h(e>t)}};return(0,T.useEffect)(()=>{x()},[o]),(0,w.jsxs)("div",{className:cY("filters",{overflow:d,scrolled:m,"scroll-end":f}),ref:u,children:[(0,w.jsx)("div",{className:cY(["filters__button","filters__button--prev"]),children:(0,w.jsx)(ig,{onClick:_,disabled:!m,size:"small",ariaLabel:null==l?void 0:null===(t=l.filterScroll)||void 0===t?void 0:t.left,icon:eQ.Z})}),(0,w.jsx)("div",{className:cY("filters__wrapper"),ref:c,onScroll:b,children:i.map(e=>(0,w.jsx)(cI,{className:cY("filter-chip"),active:r.includes(e.slug),label:e.name,value:e.slug,count:v[e.slug],onClick:a},e.slug))}),(0,w.jsx)("div",{className:cY(["filters__button","filters__button--next"]),children:(0,w.jsx)(ig,{disabled:!d||!!f,size:"small",ariaLabel:null==l?void 0:null===(n=l.filterScroll)||void 0===n?void 0:n.right,onClick:y,icon:eQ.Z})})]})}var cX=n(47547),cQ=n.n(cX);let cJ=O().bind(cQ()),c0=(0,T.forwardRef)((e,t)=>{let{isPreview:n}=e,[i,r]=(0,T.useState)(!1);return(0,T.useEffect)(()=>{(0,D.OW)(!0);let e=setTimeout(()=>{r(!0)},550);return()=>{clearTimeout(e),(0,D.OW)(!1)}},[]),(0,w.jsx)("div",{className:cJ(["loader"]),ref:t,children:(0,w.jsxs)("div",{className:cJ(["content"]),children:[(0,w.jsx)(is.u,{className:cJ(["loader__loader"]),initial:{opacity:0}
244,animate:i?{opacity:1}:{opacity:0}}),n&&(0,w.jsx)("div",{className:cJ(["preview-text","text-l"]),children:"Loading Preview..."})]})})});var c1=R.E.create(c0),c2=n(73278),c3=n.n(c2);let c5=O().bind(c3());var c4=(0,T.forwardRef)((e,t)=>{let{children:n,className:i,isInView:r,isEnabled:a=!0,debug:s=!1}=e,{log:o}=(0,ij.q)({name:"RevealWrapper",bgColor:"#2d9cdb",textColor:"#ffffff",enabled:s}),{isDesktop:l,viewWidth:u}=(0,N.dg)(),c=k.LL,d=(0,T.useCallback)(e=>({distance:e?c.lg.distance:c.sm.distance,duration:e?c.lg.duration:c.sm.duration,ease:e?c.lg.ease:c.sm.ease}),[]),[h,f]=(0,T.useState)(()=>d(!1)),p=(0,T.useMemo)(()=>{let{distance:e,duration:t,ease:n}=h;return{initial:{opacity:c.opacity,y:e},animate:{opacity:1,y:0},transition:{duration:t,ease:n}}},[h]);return((0,T.useEffect)(()=>{f(d(l))},[l,d]),o("render",{isDesktop:l,viewWidth:u,isInView:r,isEnabled:a,motionProps:p}),a)?(0,w.jsx)(R.E.div,{ref:t,className:c5(["reveal-wrapper",i]),initial:p.initial,animate:r?p.animate:p.initial,transition:p.transition,children:n}):(o("animations disabled - rendering static container"),(0,w.jsx)("div",{className:c5(["reveal-wrapper",i]),ref:t,children:n}))});n(42854),n(68302),n(83195);var c6=n(31853),c8=n(27736),c7=n.n(c8);let c9=O().bind(c7());function de(e){let{className:t="",dataGtmSection:n}=e,[i,r]=(0,T.useState)(!1),{labels:a}=(0,G.i)(),s=(null==a?void 0:a.reduceMotion)||"Reduce Motion";(0,T.useEffect)(()=>{r((0,c6.xF)())},[]),(0,T.useEffect)(()=>{if("undefined"==typeof BroadcastChannel)return;let e=new BroadcastChannel(c6.f);return e.onmessage=e=>{var t;"boolean"==typeof(null===(t=e.data)||void 0===t?void 0:t.checked)&&r(e.data.checked)},()=>e.close()},[]);let o=()=>{let e=!i;r(e),(0,c6.Hz)(e)};return(0,w.jsxs)("button",{className:c9("reduce-motion","text-m",{checked:i},t),onClick:o,"data-gtm-section":n,children:[(0,w.jsx)("span",{children:s}),(0,w.jsx)("i",{})]})}var dt=n(73935),dn=e=>{let{children:t,selector:n,show:i}=e,r=(0,T.useRef)(null);return(0,T.useEffect)(()=>{r.current=document.getElementById(n)},[n]),i&&r.current?(0,dt.createPortal)(t,r.current):null},di=n(90825);n(41289);let dr=()=>{let e="ontouchstart"in window||navigator.maxTouchPoints>0,t=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent);return e&&t};var da=n(91296),ds=n.n(da),dl=n(522),du=n.n(dl),dc=n.p+"static/media/logo-spin.a04c1974aabda90b.mp4",dd={src:"/_next/static/media/logo-spin-fallback.1fd77eb7.png",height:962,width:1680,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAAAAABd+vKJAAAAKklEQVR42mNg4GBgYGAAElwM4RPaIoEUO8PKVStXASkuhsi2CeFACqYGAJMgBon9h+vrAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:5};let dh=O().bind(du());function df(e){let{className:t}=e,[n,i]=(0,T.useState)(!1),[r,a]=(0,T.useState)(!1),s=(0,T.useRef)(null),o=!1;return(0,T.useEffect)(()=>{o&&(a(!0),i(!0))},[]),(0,T.useEffect)(()=>{let e=s.current;if(!e||o)return;e.readyState>=2&&i(!0);let t=e.play();void 0!==t&&t.catch(()=>{a(!0),i(!0)})},[]),(0,w.jsx)("div",{className:dh("rhtv-logo",{"video-ready":n},t),role:"img","aria-label":"RRTV logo",children:r?(0,w.jsx)(M(),{src:dd,alt:"",className:dh("logo-spin"),priority:!0}):(0,w.jsx)("video",{ref:s,className:dh("logo-spin"),src:dc,loop:!0,muted:!0,playsInline:!0,preload:"auto","aria-hidden":"true",onLoadedData:()=>i(!0)})})}var dp=n(9917);function dm(e){let{registerAudioElement:t,unregisterAudioElement:n,globalVolume:i,soundEnabled:r}=(0,u5.je)(),a=(0,T.useRef)(null);return(0,T.useEffect)(()=>{let i=a.current;if(i)return t(e,i),()=>{n(e)}},[e,t,n]),(0,T.useEffect)(()=>{let e=a.current;e&&(r?(e.volume=i,e.muted=!1):(e.volume=0,e.muted=!0))},[r,i]),a}let dg={DUR_KICK:1,DUR_SCALE:.65,DUR_TRAY_OPEN:.4,DUR_TRAY_CTA:.2,EASE_KICK:"power3.inOut",EASE_SCALE_UP:"power2.inOut",EASE_SCALE_DOWN:"power2.inOut",CHANNEL_TITLES_DOWN:"100%"},dv={DURATION:.5,WHEEL_MULTIPLIER:1.3,EASING:e=>1-Math.pow(1-e,3)},dy={ROOT_MARGIN:"100px",THRESHOLD:0},d_={AT_START_THRESHOLD:.001,REVERSE_SETTLE_TIME_MS:1e3},db={AUDIO_FADE_OUT_DURATION:300,AUDIO_FADE_OUT_STEPS:10,MODAL_EXIT_FADE_DURATION:333,MODAL_EXIT_WITH_TRAY_DURATION:400,PAUSE_SCREEN_FADE_OUT_DURATION:300,PAUSE_SCREEN_FADE_OUT_DELAY:324,CONTENT_MEASUREMENT_DELAY:50},dx=250,dC={PRE_KICK_SCALE:.32,HEADER_MOVE_MULTIPLIER:.25,ITEMS_PER_SCREEN_DEFAULT:1.5,ITEMS_PER_SCREEN_VERY_WIDE:2.2,ITEMS_P
244ER_SCREEN_WIDE:1.8,ASPECT_VERY_WIDE:2,ASPECT_WIDE:1.8,WIDE_LANDSCAPE_THRESHOLD:1.6,HEADER_BUFFER_MINIMAL:0,HEADER_BUFFER_REDUCED:.08,HEADER_BUFFER_STANDARD:.15,ASPECT_PORTRAIT:9/16,ASPECT_LANDSCAPE:16/9};var dE=n(33435),dw=n.n(dE);let dT=O().bind(dw()),{log:dS}=(0,ij.q)({name:"RHTV_ChannelItem",bgColor:"#F2668B",enabled:!1});var dL=(0,T.memo)(function(e){let{rhtvChannelContent:t,title:n,slug:i,uri:r,index:a,onChannelClick:s,onChannelFocus:o,onTriggerKick:l,isKickComplete:u=!1,showModal:c=!1,isPortraitMode:d,maxItemSize:h,isTouchDevice:f=!1,sharedMinFontSize:p=null,onFontSizeCalculated:m,channelLabel:g,shouldLoadVideo:v=!1}=e,y=(0,iR.PI)("debug"),{rrtvSoundEnabled:_,globalVolume:b}=(0,u5.je)(),{showModal:x}=(0,dp.g1)(),C=(0,D.$e)(g,{title:n}),E=c||x,{thumbnail:S,previewVideo:L}=t||{},[P,M]=(0,T.useState)(!1),A=(0,T.useRef)(!1),I=(0,T.useRef)(!1),R=dm("rhtv-channel-".concat(i||a)),k=(0,T.useRef)(null),N=(0,T.useRef)(null),F=(0,T.useRef)(null),O=.26,j=(0,T.useRef)(m);(0,T.useEffect)(()=>{v&&R.current&&(4!==R.current.readyState||A.current||(A.current=!0,M(!0)))},[v,a]),(0,T.useEffect)(()=>{j.current=m},[m]),(0,T.useEffect)(()=>{let e=R.current;e&&E&&(e.pause(),e.muted=!0,e.volume=0,F.current&&F.current.kill())},[E]),(0,T.useEffect)(()=>{let e=R.current,t=k.current;if(!e||!t)return;let n=new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting?E||e.play().catch(()=>{}):e.pause()})},{rootMargin:dy.ROOT_MARGIN,threshold:dy.THRESHOLD});return n.observe(t),()=>{n.disconnect()}},[L,E]);let U=(0,T.useCallback)(e=>{if(0===e.button){if(!u){null==l||l();return}s&&s({rhtvChannelContent:t,title:n,slug:i,uri:r},null!=a?a:0)}},[s,l,t,n,i,r,a,u]),V=(0,T.useCallback)(()=>{I.current=!0;let e=R.current;e&&_&&!E&&(F.current&&F.current.kill(),e.muted=!1,F.current=nT.ZP.to(e,{volume:b,duration:O,ease:"power1.out"}))},[_,b,E]),B=(0,T.useCallback)(()=>{I.current=!1;let e=R.current;e&&(F.current&&F.current.kill(),F.current=nT.ZP.to(e,{volume:0,duration:O,ease:"power1.out",onComplete:()=>{e&&(e.muted=!0)}}))},[]),H=(0,T.useCallback)(()=>{A.current||(dS("handleLoadedData fired for channel ".concat(a," (").concat(n,")")),A.current=!0,M(!0))},[a,n]),G=(0,T.useCallback)(()=>{A.current||(dS("handleLoadedMetadata fired for channel ".concat(a," (").concat(n,")")),A.current=!0,M(!0))},[a,n]),z=(0,T.useCallback)(()=>{A.current||(dS("handleCanPlay fired for channel ".concat(a," (").concat(n,")")),A.current=!0,M(!0))},[a,n]),q=(0,T.useCallback)(e=>{dS("Video error for channel ".concat(a," (").concat(n,")"),e)},[a,n]);(0,T.useEffect)(()=>{let e=R.current;e&&!I.current?(e.muted=!0,e.volume=0):e&&I.current&&(_?(e.muted=!1,e.volume=b):(e.muted=!0,e.volume=0))},[_,b]),(0,T.useEffect)(()=>()=>{F.current&&F.current.kill()},[]),(0,T.useEffect)(()=>{let e=N.current;if(!e)return;let t=()=>{let t=e.parentElement;if(!t)return;let n=t.offsetWidth;if(null!==p){e.style.fontSize="".concat(p,"px");return}e.style.fontSize="";let i=parseFloat(window.getComputedStyle(e).fontSize),r=e.scrollWidth;if(r>n){let t=20,a=0;for(;r>n&&a<t;)i*=.95,e.style.fontSize="".concat(i,"px"),r=e.scrollWidth,a++}j.current&&void 0!==a&&j.current(i,a)};t();let n=new ResizeObserver(()=>{t()});return e.parentElement&&n.observe(e.parentElement),()=>{n.disconnect()}},[h,n,p,a]),dS("ChannelItem Render",{index:a,title:n,shouldLoadVideo:v,videoReady:P,previewVideo:!!L});let W=e=>{if("Enter"===e.key||" "===e.key){if(e.preventDefault(),!u){l&&l();return}s&&void 0!==a&&s({rhtvChannelContent:t,title:n,slug:i,uri:r},a)}},$=(0,T.useRef)(!1),Z=e=>{!$.current&&o&&void 0!==a&&k.current&&o(a,k.current),$.current=!1},Y=!E,K=(0,T.useCallback)(e=>{$.current=!0,e.stopPropagation()},[]),X=h?{width:"".concat(h.width,"px"),height:"".concat(h.height,"px")}:{};return(0,w.jsxs)("div",{ref:k,className:"".concat(dT(["channel",{debug:y},{portrait:d}])," channel-").concat(a," channel-item"),style:X,onClick:U,...!f&&{onMouseEnter:V,onMouseLeave:B},onMouseDown:K,role:"button",tabIndex:Y?0:-1,"aria-label":C,onKeyDown:W,onFocus:Z,children:[(0,w.jsxs)("div",{className:dT("media-background"),children:[(0,w.jsx)(tc.E,{className:dT("thumbnail"),image:S}),L&&v&&(0,w.jsxs)(w.Fragment,{children:[dS("Rendering video element for channel ".concat(a,", videoReady=").concat(P)),(0,w.jsx)("video",{ref:R,className:dT("preview-video"),style:{opacity:P?1:0,transition:"opacity 0.5s ease-out"}
244,src:L,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,preload:"auto",onLoadedMetadata:G,onLoadedData:H,onCanPlay:z,onError:q})]})]}),(0,w.jsx)("div",{className:dT("content-foreground"),children:(0,w.jsx)("span",{ref:N,className:"".concat(dT("title")," channel-title"),children:n})})]})}),dP=n(29916),dM=n.n(dP);let dA=O().bind(dM()),{log:dI}=(0,ij.q)({name:"RHTV_Channels",bgColor:"fuchsia",enabled:!1});function dR(e){let{channels:t,rootRef:n,rowRef:i,onChannelClick:r,onChannelFocus:a,onTriggerKick:s,isKickComplete:o=!1,showModal:l=!1,className:u,isPortraitMode:c,maxItemSize:d,isTouchDevice:h=!1,sectionLabel:f,channelLabel:p}=e,m=(0,iR.PI)("debug"),g=(0,T.useRef)(null),v=(0,T.useRef)(null),y=null!=n?n:g,_=null!=i?i:v,[b,x]=(0,T.useState)(null);(0,T.useEffect)(()=>{dI("maxItemSize changed, resetting minTitleFontSize",d),x(null)},[d]);let C=(0,T.useCallback)((e,t)=>{x(t=>(null===t||e<t)&&(null===t||Math.abs(e-t)>.1)?e:t)},[]);return dI("Render",{channelCount:null==t?void 0:t.length}),(0,w.jsx)("section",{id:"main-content",className:dA(["rock-hall-tv-channels",{debug:m},{portrait:c},u]),ref:y,tabIndex:-1,"aria-label":f,children:(0,w.jsxs)("div",{className:dA("row"),ref:_,children:[(0,w.jsx)("div",{className:dA("channels-row-sidespace"),role:"presentation"}),(0,w.jsx)("div",{className:dA("channels-wrapper"),role:"list",children:null==t?void 0:t.map((e,t)=>(0,w.jsx)("div",{role:"listitem",children:(0,w.jsx)(dL,{...e,index:t,isPortraitMode:c,isKickComplete:o,showModal:l,channelLabel:p,onChannelClick:r,onChannelFocus:a,onTriggerKick:s,maxItemSize:d,isTouchDevice:h,sharedMinFontSize:b,onFontSizeCalculated:C,shouldLoadVideo:!0})},null==e?void 0:e.uri))}),(0,w.jsx)("div",{className:dA("channels-row-sidespace"),role:"presentation"}),(0,w.jsx)("div",{className:dA("channels-row-bottomspace"),role:"presentation"})," "]})})}var dk=n(27920),dD=n(14058),dN=n(42628),dF=n.n(dN),dO=n(31197);let dj=O().bind(dF()),dU=e=>{var t,n,i;let{artist:r,isLast:a,isTrayOpen:s}=e,[o]=r.type,l="inductee"===o,u=(null===(t=r.inductee)||void 0===t?void 0:t.node)?(0,D.b6)({nodes:[r.inductee.node]})[0]:null,c=l?null==u?void 0:u.title:r.name,d=l?null==u?void 0:u.uri:null===(i=r.nameLink)||void 0===i?void 0:null===(n=i.node)||void 0===n?void 0:n.uri,h=d?dD.K:"span",f=e=>{d&&e.stopPropagation()};return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(h,{className:dj("artist",{"artist-link":!!d}),href:d||void 0,"data-artist-link":d?"true":void 0,...d&&{tabIndex:s?-1:0,onClick:f},children:c}),!a&&", "]})};function dV(e){let{channelTitle:t,videoTitle:n,artists:i,currentVideoIndex:r,totalVideos:a,externalYoutubeLink:s,isPlaying:o,trayHeight:l,isTrayOpen:u,onClose:c,onPrevious:d,onNext:h,onPauseToggle:f,isPortraitMode:p=!1,isTouchDevice:m=!1}=e,{labels:{ariaLabels:g,rhtvWatchMoreCta:v}={}}=(0,G.i)(),y=()=>u&&l>0?"translateY(-".concat(l,"px)"):"translateY(0)";return(0,w.jsxs)(w.Fragment,{children:[!p&&(0,w.jsx)("div",{className:dj("gradient-overlay")}),(0,w.jsxs)("div",{className:dj("player-ui",{"portrait-mode":p,"touch-device":m}),children:[(0,w.jsx)("div",{className:dj("player-ui-row","top"),children:(0,w.jsx)("button",{className:dj("close-button"),"aria-label":null==g?void 0:g.closeButton,onClick:c,tabIndex:u?-1:0,children:(0,w.jsx)(nb.Z,{"aria-hidden":"true"})})}),(0,w.jsxs)("div",{className:dj("player-ui-row","bottom"),style:{transform:y()},children:[(0,w.jsxs)("div",{className:dj("copy"),children:[(0,w.jsx)("p",{className:dj(["channel-title"]),"aria-label":"Channel: ".concat(t),children:t}),(0,w.jsx)("h1",{className:dj(["video-title"]),children:n}),i&&(0,w.jsx)("p",{className:dj(["video-artist"]),children:i.map((e,t)=>(0,w.jsx)(dU,{artist:e,isLast:t===i.length-1,isTrayOpen:u},t))}),s&&(0,w.jsx)(dD.z,{className:dj("watch-more-button"),noIcon:!0,target:"_blank",size:"small",url:s,label:v})]}),(0,w.jsxs)("div",{className:dj(["controls"]),children:[(0,w.jsx)("button",{className:dj(["control","prev",{disabled:0===r}]),onClick:d,"aria-label":null==g?void 0:g.prevButton,disabled:0===r,tabIndex:u?-1:0,children:(0,w.jsx)(i$,{"aria-hidden":"true"})}),(0,w.jsx)("button",{className:dj(["control","pause"]),onClick:f,"aria-label":!0===o?null==g?void 0:g.pauseButton:null==g?void 0:g.playButton,"aria-pressed":!0===o,tabIndex:u?-1:0,children:!0===o?(0,w.jsx)(dO.Z,{"aria-hidden":"true"}):(0,w.jsx)(eQ.Z,{"aria-hidden":"true"})}),(0,w.jsx)("button",{className:dj(["control","next"]),onClick:h,"aria-label":null==g?void 0:g.nextButton,tabIndex:u?-1:0,children:(0,w.jsx)(i$,{"aria-hidden":"true"})})]})]})]})]})}function dB(){return(dB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var dH=function(e){return T.createElement("svg",dB({viewBox:"0 0 14 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),s||(s=T.createElement("rect",{x:1,y:1,width:12,height:6,rx:1,stroke:"currentColor",strokeWidth:2})))};let dG=O().bind(dF()),dz=!0,dq=.1,dW=6;function d$(e){let{videos:t,activeVideoSlug:n,isOpen:i,isAnimationComplete:r,onToggle:a,onVideoSelect:s,onAnimationComplete:o,trayRowWrapperRef:l,isTouchDevice:u=!1,trayButtonLabels:c,rrtvAriaLabels:d}=e,h=(0,T.useRef)([]),[f,p]=(0,T.useState)([]),[m,g]=(0,T.useState)([]),v=(0,T.useRef)(null),y=(0,T.useRef)([]),_=(0,T.useRef)(null),b=(0,T.useRef)(null),x=(0,T.useRef)(null),C=(0,T.useRef)(null),E=(0,T.useRef)(0),S=(0,T.useRef)(!1),[L,P]=(0,T.useState)(!1),M=(0,T.useRef)(null),A=(0,T.useRef)(null),I=(0,T.useCallback)(e=>{let t=y.current[e],n=_.current,i=l.current;if(!t||!n||!i)return;let r=t.getBoundingClientRect(),a=i.getBoundingClientRect(),s=r.left<a.left,o=r.right>a.right;if(!s&&!o)return;let u=nT.ZP.getProperty(n,"x")-(s?r.left-a.left:r.right-a.right),c=Math.max(-Math.max(0,n.scrollWidth-i.clientWidth),Math.min(0,u));nT.ZP.to(n,{x:c,duration:.5,ease:"power2.out",onUpdate:()=>{var e,t;null===(t=b.current)||void 0===t||null===(e=t[0])||void 0===e||e.update(
244)}})},[]);(0,T.useEffect)(()=>{if(!i||!r||!_.current||!l.current||u)return;nT.ZP.registerPlugin(lJ);let e=_.current,t=l.current,n=()=>{let n=e.scrollWidth,i=t.offsetWidth,r=n-i;return{rowWidth:n,wrapperWidth:i,maxSlide:r}},{maxSlide:a}=n();if(a>0){if(b.current=lJ.create(e,{type:"x",trigger:t,bounds:{minX:-a,maxX:0},inertia:!0,overshootTolerance:0,onPress:()=>{S.current=!0,P(!0),dz&&null!==x.current&&(cancelAnimationFrame(x.current),x.current=null),dz&&(C.current=null,E.current=0)},onRelease:()=>{S.current=!1,P(!1)}}),dz){let n=t.getBoundingClientRect().width*dq,i=()=>{let t=C.current,n=E.current;if(t&&n>0){let r=nT.ZP.getProperty(e,"x");if("right"===t&&r<0){let t=Math.min(0,r+n);nT.ZP.set(e,{x:t}),t<0?x.current=requestAnimationFrame(i):C.current=null}else if("left"===t&&r>-a){let t=Math.max(-a,r-n);nT.ZP.set(e,{x:t}),t>-a?x.current=requestAnimationFrame(i):C.current=null}}},r=r=>{if(S.current)return;let s=t.getBoundingClientRect(),o=r.clientX-s.left,l=nT.ZP.getProperty(e,"x");if(o<n&&l<0){let e=dW*(1-o/n);C.current="right",E.current=e,null===x.current&&(x.current=requestAnimationFrame(i))}else if(o>s.width-n&&l>-a){let e=(o-(s.width-n))/n*dW;C.current="left",E.current=e,null===x.current&&(x.current=requestAnimationFrame(i))}else C.current=null,E.current=0,null!==x.current&&(cancelAnimationFrame(x.current),x.current=null)},s=()=>{C.current=null,E.current=0,null!==x.current&&(cancelAnimationFrame(x.current),x.current=null)};M.current=r,A.current=s,t.addEventListener("mousemove",r),t.addEventListener("mouseleave",s)}let i=()=>{let{maxSlide:i}=n();a=i,i<=0?(nT.ZP.set(e,{x:0}),b.current&&(b.current.forEach(e=>e.kill()),b.current=null)):(nT.ZP.getProperty(e,"x")<-i&&nT.ZP.set(e,{x:-i}),b.current&&b.current[0]?b.current[0].applyBounds({minX:-i,maxX:0}):b.current=lJ.create(e,{type:"x",trigger:t,bounds:{minX:-i,maxX:0},inertia:!0,overshootTolerance:0,onPress:()=>{S.current=!0,P(!0),dz&&null!==x.current&&(cancelAnimationFrame(x.current),x.current=null),dz&&(C.current=null,E.current=0)},onRelease:()=>{S.current=!1,P(!1)}}))};return window.addEventListener("resize",i),()=>{b.current&&(b.current.forEach(e=>e.kill()),b.current=null),dz&&(null!==x.current&&(cancelAnimationFrame(x.current),x.current=null),M.current&&t.removeEventListener("mousemove",M.current),A.current&&t.removeEventListener("mouseleave",A.current)),window.removeEventListener("resize",i)}}},[i,r,t.length,u]),(0,T.useEffect)(()=>{if(!i||!r)return;v.current&&v.current.focus();let e=e=>{if("Tab"!==e.key)return;let t=[v.current,...y.current.filter(Boolean)].filter(e=>null!==e);if(0===t.length)return;let n=t[0],i=t[t.length-1];e.shiftKey&&document.activeElement===n?(e.preventDefault(),i.focus()):e.shiftKey||document.activeElement!==i||(e.preventDefault(),n.focus())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[i,r,t.length]);let k=(0,T.useMemo)(()=>t.map((e,t)=>{var i,r;let a=e.slug===n;return{video:e,index:t,isActive:a,thumbnail:(null===(i=e.rhtvVideoContent)||void 0===i?void 0:i.thumbnail)?(0,w.jsx)(tc.E,{image:e.rhtvVideoContent.thumbnail}):(null===(r=e.rhtvVideoContent)||void 0===r?void 0:r.youtubeVideoId)?(0,w.jsx)(hL,{youtubeId:e.rhtvVideoContent.youtubeVideoId},e.rhtvVideoContent.youtubeVideoId):null}}),[t,n]);return(0,w.jsx)("div",{className:dG(["tray",{open:i,"touch-device":u}]),onClick:e=>e.stopPropagation(),children:(0,w.jsxs)("div",{className:dG("tray-content"),children:[(0,w.jsxs)("div",{className:dG("tray-ctas"),children:[(0,w.jsxs)(R.E.button,{className:dG("tray-cta","open-playlist"),onClick:a,animate:{opacity:i?0:1,y:i?-10:0},transition:{duration:dg.DUR_TRAY_CTA,ease:"easeOut",delay:i?0:dg.DUR_TRAY_OPEN},style:{pointerEvents:i?"none":"auto"},tabIndex:i?-1:0,"aria-hidden":i,children:[(0,w.jsxs)("div",{className:dG("icon"),children:[(0,w.jsx)(dH,{})," ",(0,w.jsx)(dH,{})," ",(0,w.jsx)(dH,{})]}),(0,w.jsx)("span",{className:dG("tag-s"),children:c.videoTrayOpen})]}),(0,w.jsxs)(R.E.button,{ref:v,className:dG("tray-cta","close-playlist"),onClick:a,animate:{opacity:i?1:0,y:i?0:10,x:"-50%"},transition:{duration:dg.DUR_TRAY_CTA,ease:"easeOut",delay:i?dg.DUR_TRAY_OPEN:0},style:{pointerEvents:i?"auto":"none"},tabIndex:i?0:-1,"aria-hidden":!i,children:[(0,w.jsx)("div",{className:dG("icon"),children:(0,w.jsx)(nb.Z,{})}),(0,w.jsx)("span",{className:dG("tag-s"),children:c.videoTrayClose})]})]}),(0,w.jsx)(R.E.div,{ref:l,className:dG(["tray-row-wrapper",{dragging:L},{"touch-device":u}]),initial:{y:"175%"},animate:{y:i?0:"175%"},transition:{duration:dg.DUR_TRAY_OPEN,ease:"easeInOut"},onAnimationComplete:o,style:{pointerEvents:i&&r?"auto":"none"},role:"region","aria-label":d.videoPlaylist,"aria-hidden":!i,children:(0,w.jsx)("div",{className:dG("tray-row",{"touch-device":u}),ref:_,role:"list","aria-label":d.channelVideos,children:k.map(e=>{var t;let{video:n,index:a,isActive:o,thumbnail:l}=e,c=f[a],v=m[a],_=()=>{if(u)return;let e=h.current[a];e&&e.play().catch(()=>{})},b=()=>{if(u)return;let e=h.current[a];e&&e.pause()},x=()=>{p(e=>{let t=[...e];return t[a]=!0,t})},C=e=>{1===e.opacity&&g(e=>{let t=[...e];return t[a]=!0,t})},E=e=>{s(n)},T=n.title||"Untitled video",S=o?(0,D.$e)(d.videoPlaying,{title:T}):(0,D.$e)(d.playVideo,{title:T});return(0,w.jsx)("button",{ref:e=>{y.current[a]=e},className:dG("tray-item",{active:o}),onClick:E,onFocus:()=>I(a),onKeyDown:e=>
244{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),s(n))},"aria-label":S,"aria-current":o?"true":void 0,"aria-pressed":o,tabIndex:i&&r?0:-1,...!u&&{onMouseEnter:_,onMouseLeave:b},children:(0,w.jsxs)("div",{className:dG("tray-item-media"),children:[!v&&l,(null===(t=n.rhtvVideoContent)||void 0===t?void 0:t.previewVideo)&&(0,w.jsx)(R.E.video,{ref:e=>{h.current[a]=e},initial:{opacity:0},animate:{opacity:c?1:0},transition:{duration:.35,ease:e7.hl},onAnimationComplete:C,src:n.rhtvVideoContent.previewVideo,muted:!0,loop:!0,playsInline:!0,onCanPlay:x})]})},n.slug||a)})})})]})})}let dZ=.0045,dY=.012,dK=1.2,dX=2.4;function dQ(e){let{isActive:t,className:n,imageElement:i,keepAnimatingDuringFadeOut:r=!1,isTouchDevice:a=!1}=e,s=(0,T.useRef)(null),o=(0,T.useRef)(null),l=(0,T.useRef)(null),u=(0,T.useRef)(null),c=(0,T.useRef)(null),d=(0,T.useRef)(0),h=(0,T.useRef)(!1),f=a?dY:dZ,p=a?dX:dK;return((0,T.useEffect)(()=>{if(!s.current||!i){o.current&&(cancelAnimationFrame(o.current),o.current=null);return}if(!t&&!r){h.current=!0,o.current&&(cancelAnimationFrame(o.current),o.current=null);return}t&&(h.current=!1,0===d.current&&(d.current=Date.now()));let e=s.current,n=e.getContext("webgl");if(!n)return;l.current=n;let a="\n attribute vec2 a_position;\n attribute vec2 a_texCoord;\n varying vec2 v_texCoord;\n\n void main() {\n gl_Position = vec4(a_position, 0.0, 1.0);\n v_texCoord = a_texCoord;\n }\n ",m="\n precision mediump float;\n varying vec2 v_texCoord;\n uniform float u_time;\n uniform vec2 u_resolution;\n uniform sampler2D u_texture;\n\n void main() {\n // Fix vertical flip by inverting Y coordinate\n vec2 uv = vec2(v_texCoord.x, 1.0 - v_texCoord.y);\n\n // Create horizontal wave displacement that moves from top to bottom\n float waveFrequency = 20.0; // More waves across height\n float waveAmplitude = ".concat(f,"; // Dynamic based on device type\n float waveSpeed = ").concat(p,"; // Dynamic speed based on device type\n\n // Create uniform waves (single frequency for consistency)\n // Use only one primary wave for uniform appearance\n float primaryWave = sin(uv.y * waveFrequency - u_time * waveSpeed) * waveAmplitude;\n\n // Add very subtle secondary wave for slight variation\n float secondaryWave = sin(uv.y * waveFrequency * 0.5 - u_time * waveSpeed * 0.3) * waveAmplitude * 0.2;\n\n // Combine for uniform but not completely flat waves\n float totalDisplacement = primaryWave + secondaryWave;\n\n // Apply horizontal displacement to UV coordinates\n vec2 distortedUV = vec2(uv.x + totalDisplacement, uv.y);\n\n // Sample the pause image with distorted coordinates\n // Use CLAMP_TO_EDGE behavior - stretch edge pixels instead of showing black\n distortedUV.x = clamp(distortedUV.x, 0.0, 1.0);\n distortedUV.y = clamp(distortedUV.y, 0.0, 1.0);\n\n vec4 finalColor = texture2D(u_texture, distortedUV);\n\n // Add very subtle color shift for slight analog effect\n float colorShift = totalDisplacement * 0.5;\n finalColor.r += colorShift * 0.02;\n finalColor.b -= colorShift * 0.02;\n\n // Make completely opaque\n gl_FragColor = vec4(finalColor.rgb, 1.0);\n }\n "),g=(e,t)=>{let i=n.createShader(e);return i?(n.shaderSource(i,t),n.compileShader(i),n.getShaderParameter(i,n.COMPILE_STATUS))?i:(n.deleteShader(i),null):null},v=g(n.VERTEX_SHADER,a),y=g(n.FRAGMENT_SHADER,m);if(!v||!y)return;let _=n.createProgram();if(!_||(n.attachShader(_,v),n.attachShader(_,y),n.linkProgram(_),!n.getProgramParameter(_,n.LINK_STATUS)))return;n.useProgram(_),u.current=_;let b=new Float32Array([-1,-1,0,0,1,-1,1,0,-1,1,0,1,-1,1,0,1,1,-1,1,0,1,1,1,1]),x=n.createBuffer();n.bindBuffer(n.ARRAY_BUFFER,x),n.bufferData(n.ARRAY_BUFFER,b,n.STATIC_DRAW);let C=n.getAttribLocation(_,"a_position"),E=n.getAttribLocation(_,"a_texCoord");n.enableVertexAttribArray(C),n.vertexAttribPointer(C,2,n.FLOAT,!1,16,0),n.enableVertexAttribArray(E),n.vertexAttribPointer(E,2,n.FLOAT,!1,16,8);let w=n.createTexture();if(n.bindTexture(n.TEXTURE_2D,w),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.L
244INEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.LINEAR),!i.complete||0===i.naturalWidth||0===i.naturalHeight)return;n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,i),c.current=w;let T=()=>{if(!e||!n||!_||!c.current||h.current)return;let t=e.getBoundingClientRect();(e.width!==t.width||e.height!==t.height)&&(e.width=t.width,e.height=t.height,n.viewport(0,0,e.width,e.height)),n.activeTexture(n.TEXTURE0),n.bindTexture(n.TEXTURE_2D,c.current);let i=n.getUniformLocation(_,"u_time"),r=n.getUniformLocation(_,"u_resolution"),a=n.getUniformLocation(_,"u_texture");n.uniform1f(i,(Date.now()-d.current)/1e3),n.uniform2f(r,e.width,e.height),n.uniform1i(a,0),n.clearColor(0,0,0,0),n.clear(n.COLOR_BUFFER_BIT),n.drawArrays(n.TRIANGLES,0,6),o.current=requestAnimationFrame(T)};return 0===d.current&&(d.current=Date.now()),T(),()=>{o.current&&(cancelAnimationFrame(o.current),o.current=null)}},[t,i,r,f,p]),(0,T.useEffect)(()=>{if(!t&&r){let e=setTimeout(()=>{h.current=!0,o.current&&(cancelAnimationFrame(o.current),o.current=null)},324);return()=>clearTimeout(e)}},[t,r]),t||r)?(0,w.jsx)("canvas",{ref:s,className:n,style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none",opacity:1}}):null}var dJ={src:"/_next/static/media/generic-pause.6a915d47.jpg"},d0=n.p+"static/media/static-transition-01.e561e68923322ae7.mp4",d1=n.p+"static/media/static-transition-02.5a7c37e58c358232.mp4",d2=n.p+"static/media/static-transition-03.b5e0a34605a2d8fb.mp4";let d3=O().bind(dF()),{log:d5}=(0,ij.q)({name:"RHTV-Modal",bgColor:"#F2CB05",enabled:!1}),d4=[d0,d1,d2],d6=(0,T.forwardRef)((e,t)=>{let{borderRadius:n=5,onCloseComplete:i,onContentSizeChange:r,onShouldExit:a,isPortraitMode:s,isTouchDevice:o=!1,trayButtonLabels:l,rrtvAriaLabels:u}=e,c=(0,T.useRef)(null),d=(0,T.useRef)(null),h=(0,T.useRef)(null),f=(0,T.useRef)(null),[p,m]=(0,T.useState)(null),[g,v]=(0,T.useState)(null),[y,_]=(0,T.useState)(0),b=(0,iR.PI)("debug"),{channels:x,activeChannel:C,activeVideo:E,setShowModal:S,setActiveChannel:L,setActiveVideo:P,updateRHTVRoute:M}=(0,dp.g1)(),{rrtvSoundEnabled:A,globalVolume:I}=(0,u5.je)(),{title:k,rhtvVideoContent:{videoTitle:N,youtubeVideoId:F,externalYoutubeLink:O,artists:j}={}}=E||{},{title:U}=C||{},V=(0,T.useMemo)(()=>N||k,[N,k]),[B,H]=(0,T.useState)(null),[G,z]=(0,T.useState)(!1),[q,W]=(0,T.useState)(!1),$=(0,T.useRef)(!1),[Z,Y]=(0,T.useState)(!1),[K,X]=(0,T.useState)(!1),[Q,J]=(0,T.useState)(!1),[ee,et]=(0,T.useState)(null),en=(0,T.useRef)(0);(0,T.useEffect)(()=>{Z&&(null==a||a(!0))},[Z,a]);let ei=(0,T.useMemo)(()=>{var e;let t=null==C?void 0:null===(e=C.rhtvChannelContent)||void 0===e?void 0:e.rhtvVideos;return t?(0,D.i5)(t):[]},[C]),er=(0,T.useMemo)(()=>ei.findIndex(e=>e.slug===(null==E?void 0:E.slug)),[ei,E]),ea=(0,T.useMemo)(()=>x.findIndex(e=>e.slug===(null==C?void 0:C.slug)),[x,C]);(0,T.useEffect)(()=>()=>{L(null),P(null)},[]);let es=()=>{var e;d5("handleClose"),X(!0);let t=null===(e=ec.current)||void 0===e?void 0:e.getPlayer();if(t)try{let e=t.getVolume(),n=db.AUDIO_FADE_OUT_DURATION,i=db.AUDIO_FADE_OUT_STEPS,r=n/i,a=e/i,s=0,o=setInterval(()=>{s++;let n=Math.max(0,e-a*s);t.setVolume(n),s>=i&&clearInterval(o)},r)}catch(e){}ex?(eC(!1),setTimeout(()=>Y(!0),1e3*dg.DUR_TRAY_OPEN),setTimeout(()=>{S(!1),null==i||i()},1e3*dg.DUR_TRAY_OPEN+db.MODAL_EXIT_WITH_TRAY_DURATION)):(Y(!0),setTimeout(()=>{S(!1),null==i||i()},db.MODAL_EXIT_FADE_DURATION))},eo=e=>{let t;d5("handlePrevNext",{direction:e});let n=null,i=C;if("prev"===e){if((t=er-1)<0)return}else if((t=er+1)>=ei.length){var r;let e=ea+1;e>=x.length&&(e=0),i=x[e];let t=(0,D.i5)(null==i?void 0:null===(r=i.rhtvChannelContent)||void 0===r?void 0:r.rhtvVideos);t&&t.length>0&&(n=t[0],L(i),et(n),J(!0),H(null),z(!1),W(!1),$.current=!1);return}t>=0&&t<ei.length&&(et(n=ei[t]),J(!0),H(null),z(!1),W(!1),$.current=!1)},el=()=>{var e;let t=null===(e=ec.current)||void 0===e?void 0:e.getPlayer();t&&null!==B&&(B?(t.pauseVideo(),H(!1),z(!0)):(t.playVideo(),H(!0),z(!1)))};(0,T.useEffect)(()=>{let e=e=>{switch(["Space","ArrowLeft","ArrowRight","Escape"].includes(e.code)&&e.preventDefault(),e.code){case"Space":el();break;case"ArrowLeft":er>0&&eo("prev");break;case"ArrowRight":eo("next");break;case"Escape":es()}};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[er,ei.length]);let eu=!0,ec=(0,T.useRef)(null),ed=e=>{let t={[-1]:"UNSTARTED",0:"ENDED",1:"PLAYING",2:"PAUSED",3:"BUFFERING",5:"CUED"};if(d5("YouTube state change: ".concat(t[e.data]||e.data)),Q){d5("Ignoring YouTube state change during transition");return}e.data===YT.PlayerState.PLAYING?o?$.current&&(H(!0),W(!0),z(!1)):(H(!0),W(!0),z(!1)):e.data===YT.PlayerState.PAUSED?(W(!0),H(!1)):e.data===YT.PlayerState.ENDED?eo("next"):-1===e.data&&(H(null),W(!1),z(!1),$.current=!1)},eh=dm("rhtv-transition-video");(0,T.useEffect)(()=>
244{if(Q&&eh.current&&ee){var e;let t=eh.current,n=null===(e=ec.current)||void 0===e?void 0:e.getPlayer();if(n)try{n.pauseVideo()}catch(e){d5("Error pausing YouTube video:",e)}t.currentTime=0,A&&(t.volume=.2*I);let i=t.play();void 0!==i&&i.catch(e=>{d5("Error playing transition video:",e),J(!1),P(ee),et(null)});let r=()=>{J(!1),P(ee),et(null),en.current=(en.current+1)%d4.length};return t.addEventListener("ended",r),()=>{t.removeEventListener("ended",r)}}},[Q,ee]);let ef=()=>{if(!p)return;let e=ex&&y>0&&g?g-y:p.height;return{width:"".concat(p.width,"px"),height:"".concat(p.height,"px"),"--clip-height":"".concat(e,"px")}},ep=()=>{if(p)return{width:"".concat(p.width,"px"),height:"".concat(p.height,"px")}},em=()=>!1===B&&q&&!K&&!Q,eg=()=>em()?1:0,ev=()=>em()?0:db.PAUSE_SCREEN_FADE_OUT_DURATION/1e3,ey=()=>em()?0:db.PAUSE_SCREEN_FADE_OUT_DELAY/1e3,e_=()=>em()?"auto":"none",eb=()=>em()?0:1;(0,T.useEffect)(()=>{if(!c.current||!d.current)return;let e=()=>{let e,t;if(!c.current||!d.current)return;let n=c.current.getBoundingClientRect(),i=n.width,a=n.height,s=16/9,o=i,l=o/(16/9);l<=a?(e=o,t=l):e=(t=a)*s;let u=Math.ceil(e),h=Math.ceil(t);g||v(h),m({width:u,height:h}),requestAnimationFrame(()=>{requestAnimationFrame(()=>{if(!d.current)return;let{x:e,y:t}=d.current.getBoundingClientRect();r&&r({width:u,height:h,x:e,y:t})})})},t=setTimeout(e,db.CONTENT_MEASUREMENT_DELAY);return window.addEventListener("resize",e),()=>{clearTimeout(t),window.removeEventListener("resize",e)}},[r]);let[ex,eC]=(0,T.useState)(!1),[eE,ew]=(0,T.useState)(!1),eT=()=>{eC(!ex),ex||ew(!1)},eS=e=>{!e.target.closest('[data-artist-link="true"]')&&ex&&eC(!1)};(0,T.useEffect)(()=>{E&&eC(!1)},[E]),(0,T.useEffect)(()=>{h.current&&0===y&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{h.current&&_(h.current.offsetHeight)})})},[]),(0,T.useEffect)(()=>{if("undefined"==typeof document||!c.current)return;let e=setTimeout(()=>{var e;let t=null===(e=c.current)||void 0===e?void 0:e.querySelectorAll('button:not([disabled]):not([tabindex="-1"]), a[href]:not([tabindex="-1"])');t&&t.length>0&&t[0].focus()},50);return()=>clearTimeout(e)},[]),(0,T.useEffect)(()=>{if("undefined"==typeof document||!c.current)return;let e=e=>{var t;if(ex||"Tab"!==e.key)return;let n=null===(t=c.current)||void 0===t?void 0:t.querySelectorAll('button:not([disabled]):not([tabindex="-1"]), a[href]:not([tabindex="-1"])');if(!n||0===n.length)return;let i=n[0],r=n[n.length-1];e.shiftKey&&document.activeElement===i?(e.preventDefault(),r.focus()):e.shiftKey||document.activeElement!==r||(e.preventDefault(),i.focus())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[ex]);let eL=(0,T.useMemo)(()=>{if(!V)return"";let e=null==j?void 0:j.map(e=>{var t;let[n]=e.type,i="inductee"===n,r=(null===(t=e.inductee)||void 0===t?void 0:t.node)?(0,D.b6)({nodes:[e.inductee.node]})[0]:null;return i?null==r?void 0:r.title:e.name}).filter(Boolean).join(", ");return e?"Now playing: ".concat(V," by ").concat(e):"Now playing: ".concat(V)},[V,j]);return(0,w.jsxs)("div",{className:d3(["rock-hall-tv-modal",{"portrait-mode":s},{debug:b}]),ref:t,onClick:es,role:"dialog","aria-modal":"true","aria-label":"".concat(U||"Video"," playlist"),children:[(0,w.jsxs)("div",{className:d3("content"),ref:c,style:{"--modal-border-radius":n},onClick:e=>{e.stopPropagation(),eS(e)},children:[(0,w.jsx)("div",{className:d3("player-mask"),style:ef(),children:(0,w.jsx)("div",{className:d3("player"),ref:d,style:ep(),onClick:()=>{if(!$.current&&($.current=!0,o)){H(!0),W(!0),z(!1);return}!0===B&&el()},children:p&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(dk.He,{autoplay:eu,soundEnabled:A,className:d3("youtube-embed"),ref:ec,id:F,showControls:!1,blockMouseInteraction:q,onStateChange:ed},F),(0,w.jsxs)(R.E.div,{className:d3("pause-cover"),initial:{opacity:0}
244,animate:{opacity:eg()},transition:{duration:ev(),delay:ey()},style:{pointerEvents:e_()},onClick:()=>{null!==B&&el()},children:[(0,w.jsx)("img",{ref:f,src:dJ.src,alt:"","aria-hidden":"true",style:{width:"100%",height:"100%",objectFit:"cover",opacity:eb()}}),(0,w.jsx)(dQ,{isActive:em(),imageElement:f.current,keepAnimatingDuringFadeOut:!0,className:d3("webgl-distortion"),isTouchDevice:o})]}),s?null:(0,w.jsx)(dV,{channelTitle:U,videoTitle:V,artists:j,currentVideoIndex:er,totalVideos:ei.length,isPlaying:B,trayHeight:y,externalYoutubeLink:O,isTrayOpen:ex,onClose:es,onPrevious:()=>eo("prev"),onNext:()=>eo("next"),onPauseToggle:el,isTouchDevice:o}),Q&&(0,w.jsx)("video",{ref:eh,className:d3("transition-video"),src:d4[en.current],muted:!A,playsInline:!0})]})})}),s&&p&&(0,w.jsx)(dV,{channelTitle:U,videoTitle:V,artists:j,currentVideoIndex:er,totalVideos:ei.length,isPlaying:B,trayHeight:y,externalYoutubeLink:O,isTrayOpen:ex,onClose:es,onPrevious:()=>eo("prev"),onNext:()=>eo("next"),onPauseToggle:el,isPortraitMode:!0,isTouchDevice:o}),(0,w.jsx)(d$,{videos:ei,trayButtonLabels:l,rrtvAriaLabels:u,activeVideoSlug:null==E?void 0:E.slug,isOpen:ex,isAnimationComplete:eE,onToggle:eT,onVideoSelect:P,onAnimationComplete:()=>{ex&&ew(!0)},trayRowWrapperRef:h,isTouchDevice:o})]}),(0,w.jsx)("div",{className:"sr-only",role:"status","aria-live":"polite","aria-atomic":"true",children:eL})]})});var d8=R.E.create(d6),d7=n(29705);let d9=null;function he(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};d9||(d9=new uF.Z({autoRaf:!1,smooth:!0,duration:1,easing:e=>e,...e}));try{d9.start()}catch(e){}return d9}function ht(){if(d9){try{d9.stop()}catch(e){}try{"function"==typeof d9.destroy&&d9.destroy()}catch(e){}"undefined"!=typeof document&&document.documentElement.classList.remove("lenis","lenis-smooth","lenis-stopped","lenis-scrolling"),d9=null}}function hn(){if(d9)try{d9.stop()}catch(e){}}function hi(){if(d9)try{d9.start()}catch(e){}}var hr=n(93108),ha=n.n(hr);let hs=O().bind(ha()),{log:ho}=(0,ij.q)({name:"RockHallTv",bgColor:"#13678A",textColor:"white",enabled:!1}),{log:hl}=(0,ij.q)({name:"RockHallTv",bgColor:"lime",enabled:!1});function hu(e){let{channels:t,content:n}=e,{showModal:i,activeChannel:r,activeVideo:a,setShowModal:s,setActiveChannel:o,setActiveVideo:l,updateRHTVRoute:u}=(0,dp.g1)(),c=(0,e1.useRouter)(),{isDesktop:d,isReady:h}=(0,N.dg)(),{mounted:f}=(0,eT.F)(),{labels:p}=(0,G.i)(),{headline:m,subhead:g,videoTrayOpen:v,videoTrayClose:y,rrtvAriaLabels:_}=n,{scrollPrompt:b}=p||{},x=(0,D.Ay)(m),C=(0,iR.PI)("debug"),E=!1,S=!1,[L,P]=(0,T.useState)(()=>S||dr()),M=()=>window.innerHeight>window.innerWidth,[A,I]=(0,T.useState)(null),[k,F]=(0,T.useState)(!1),O=(0,T.useRef)(!1),j=(0,T.useRef)(null),U=(0,T.useRef)(!1),[V,B]=(0,T.useState)(!0),[H,z]=(0,T.useState)(!1),[q,W]=(0,T.useState)(!1),[$,Z]=(0,T.useState)(!1),Y=null,K=null;(0,T.useEffect)(()=>{if(!h||!f)return;"undefined"!=typeof document&&(Y=document.documentElement,K=document.body);let e=M(),t=!L&&d&&!e;I(t),t||(eE(!0),eS(!0),eL.current=!0,eP.current=!0),z(!0),ho("Client ready - screen size determined",{isDesktop:d,isTouchDeviceState:L,currentIsPortrait:e,shouldShowIntro:t})},[h,f,d,L]),(0,T.useEffect)(()=>{if(H&&q){ho("Everything ready - fading out loading overlay");let e=setTimeout(()=>{B(!1)},300);return()=>clearTimeout(e)}},[H,q]),(0,T.useEffect)(()=>{if(!H||O.current)return;let e=j.current;if(j.current=A,null!==e&&e!==A){ho("ShowIntro changed: ".concat(e?"intro â no-intro":"no-intro â intro"," - ABORTING AND RELOADING")),O.current=!0,U.current=!0,i&&(ho("ABORT: Closing player"),s(!1),eO(!1)),ho("ABORT: Clearing URL deeplink"),u(),ho("ABORT: Showing loading overlay"),F(!0),B(!0),ho("ABORT: Triggering page reload"),requestAnimationFrame(()=>{requestAnimationFrame(()=>{window.location.reload()})});return}},[$,A,L,H,u]);let X=(0,T.useRef)(null),Q=(0,T.useRef)(null),J=(0,T.useRef)(null),ee=(0,T.useRef)(null),et=(0,T.useRef)(null),en=(0,T.useRef)(null),ei=(0,T.useRef)(null),er=(0,T.useRef)(null),ea=(0,T.useRef)(null),es=(0,T.useRef)(null),eo=(0,T.useCallback)(()=>{var e;return(null===(e=X.current)||void 0===e?void 0:e.offsetHeight)||0},[]),el=(0,T.useCallback)(()=>{var e;return(null===(e=Q.current)||void 0===e?void 0:e.offsetHeight)||0},[]),eu=(0,T.useCallback)(()=>eo()-el(),[eo,el]),ec=(0,T.useCallback)(()=>{null==K||K.classList.add("locked")},[]),ed=(0,T.useCallback)(()=>{null==K||K.classList.remove("locked")},[]),eh=(0,T.useCallback)(()=>{null==Y||Y.classList.remove("lenis","lenis-smooth","lenis-stopped","lenis-scrolling")},[]),ef=(0,T.useRef)(null),ep=(0,T.useRef)(null),em=(0,T.useRef)(null),eg=(0,T.useRef)(null),ev=(0,T.useRef)(null),ey=(0,T.useRef)(null),e_=(0,T.useRef)(null),eb=(0,T.useRef)(!1),ex=(0,T.useRef)(null),[eC,eE]=(0,T.useState)(!1),[ew,eS]=(0,T.useState)(!1),eL=(0,T.useRef)(!1),eP=(0,T.useRef)(!1),eM=(0,T.useRef)(!1),eA=(0,T.useRef)(null),eI=(0,T.useRef)(null),[eR,ek]=(0,T.useState)(!1),[eD,eN]=(0,T.useState)(!1),[eF,eO]=(0,T.useState)(!1),[ej,eU]=(0,T.useState)(!1),eV=(0,T.useRef)(!1),eB=(0,T.useRef)(!1),eH=(0,T.useRef)(!1),[eG,eq]=(0,T.useState)(0),eW=(0,T.useRef)(null),e$=(0,T.useRef)(!1),eZ=(0,T.useRef)(null);(0,T.useEffect)(()=>
244{if(!f)return;Z(M());let e=()=>{let e=M();e!==$&&(ho("Orientation changed",{from:$?"portrait":"landscape",to:e?"portrait":"landscape"}),Z(e),B(!0),W(!1))};return window.addEventListener("resize",e),window.addEventListener("orientationchange",e),()=>{window.removeEventListener("resize",e),window.removeEventListener("orientationchange",e)}},[f,$]),(0,T.useEffect)(()=>{null!==A&&ho("CONFIG:",{"Touch Device":L,"Show Intro":A,"Is Desktop":d,Orientation:$?"Portrait":"Landscape",Viewport:"".concat(window.innerWidth,"\xd7").concat(window.innerHeight)})},[L,A,d,$]);let eY=(0,T.useCallback)((e,t)=>{var n;ho("Channel clicked",{channel:e,channelIndex:t}),eq(t);let i=(0,D.i5)(null===(n=e.rhtvChannelContent)||void 0===n?void 0:n.rhtvVideos),r=null==i?void 0:i[0];r&&(o(e),l(r),eO(!1),s(!0),u({channelSlug:e.slug,videoSlug:r.slug}))},[o,l,s,u]),eK=(0,T.useCallback)((e,t)=>{if(!ew||i||!ea.current||!ey.current)return;let n=ea.current,r=er.current;if(!r)return;let a=r.getBoundingClientRect().width,s=t.offsetLeft+t.offsetWidth/2,o=nT.ZP.getProperty(n,"x"),l=a/2-s,u=ey.current,c=u.end-u.start,d=Math.max(-c,Math.min(0,l));Math.abs(o-d)>1&&nT.ZP.to(n,{x:d,duration:.6,ease:"power2.out",onUpdate:()=>{let e=Math.abs(nT.ZP.getProperty(n,"x")/c);u.scroll(u.start+e*c)}})},[ew,i]),eX=(0,T.useRef)(0),eQ=(0,T.useRef)(null),[eJ,e0]=(0,T.useState)(null),e2=(0,T.useCallback)(()=>{let e,t,n;let i=window.innerWidth,r=window.innerHeight,a=M(),s=i/r;e=s>=dC.ASPECT_VERY_WIDE?dC.HEADER_BUFFER_MINIMAL:s>=dC.WIDE_LANDSCAPE_THRESHOLD?dC.HEADER_BUFFER_REDUCED:dC.HEADER_BUFFER_STANDARD;let o=eu();if(o=Math.max(0,o-e*r),a){let e=Math.ceil(i/dC.ITEMS_PER_SCREEN_DEFAULT),r=Math.ceil(e/dC.ASPECT_PORTRAIT);r<=o?(t=e,n=r):t=Math.ceil((n=o)*dC.ASPECT_PORTRAIT)}else{let e=dC.ITEMS_PER_SCREEN_DEFAULT;s>=dC.ASPECT_VERY_WIDE?e=dC.ITEMS_PER_SCREEN_VERY_WIDE:s>=dC.ASPECT_WIDE&&(e=dC.ITEMS_PER_SCREEN_WIDE);let r=Math.ceil(i/e),a=Math.ceil(r/dC.ASPECT_LANDSCAPE);a<=o?(t=r,n=a):t=Math.ceil((n=o)*dC.ASPECT_LANDSCAPE)}return{width:t,height:n}},[eu]);(0,T.useEffect)(()=>{if(!f)return;let e=()=>{e0(e2()),ea.current&&ea.current.querySelectorAll(".channel-title").forEach(e=>{e.style.width=""})};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[f,e2]),(0,T.useEffect)(()=>{ew&&ey.current&&eJ&&requestAnimationFrame(()=>{if(ey.current){let e=ea.current,t=er.current;if(e&&t){let n=Math.max(0,Math.ceil(e.scrollWidth-t.clientWidth));ey.current.vars.end="+=".concat(n),ey.current.refresh()}}})},[eJ,ew]);let e3=(0,T.useCallback)(e=>{var t,n;if(L){ho("Touch device: Skipping scale animation, using fade only"),eN(!0),eU(!1);return}let i=nT.ZP.getProperty(ea.current,"x");eX.current=i,eU(!0);let a=null===(t=ea.current)||void 0===t?void 0:t.querySelectorAll(".channel-item");if(!a||0===a.length)return;let s=a[0].offsetHeight,o=e.height/s,l=nT.ZP.timeline({defaults:{ease:dg.EASE_SCALE_UP,duration:dg.DUR_SCALE},onComplete:()=>{eN(!0)}}).add("start");if(l.to(ea.current,{scale:o},"start"),a&&null!==r){let t=a[eG],n=t.offsetWidth;$&&(n=e.width/o);let i=t.offsetLeft+n/2,r=e.x+e.width/2-i*o;l.to(ea.current,{x:r},"start")}let u=a[0].getBoundingClientRect(),c=ea.current.getBoundingClientRect();e.y;let d=e.y+e.height;u.bottom;let h=d+(c.bottom-u.bottom)*o-c.bottom;if(l.to(ea.current,{y:h},"start"),l.to(null===(n=ea.current)||void 0===n?void 0:n.querySelectorAll(".channel-title"),{opacity:0},"start"),a&&null!==eG){let e=Array.from(a).filter((e,t)=>t!==eG);l.to(e,{opacity:0},"start")}if($&&a&&null!==eG){let t=a[eG],n=e.width/o;l.to(t,{width:n},"start")}l.to(es.current,{opacity:1},"start"),em.current&&em.current.kill(),em.current=l},[r,eG,$,L]),e5=(0,T.useCallback)(e=>{eQ.current=e,i&&!eD&&e3(e)},[i,eD,e3]),e4=(0,T.useCallback)(()=>{var e,t;if(L){ho("Touch device: Skipping scale down animation, using fade only"),eN(!1),eU(!1),eB.current=!1;return}ea.current&&(ea.current.style.visibility="visible");let n=nT.ZP.timeline({defaults:{ease:dg.EASE_SCALE_DOWN,duration:dg.DUR_SCALE},onComplete:()=>{if(eP.current&&!L){var e;null===(e=ey.current)||void 0===e||e.enable(!1),ed(),E||hi()}eN(!1),eU(!1),eB.current=!1}}).add("start");if(n.to(ea.current,{scale:1,x:eX.current,y:0},"start"),n.to(null===(e=ea.current)||void 0===e?void 0:e.querySelectorAll(".channel-title"),{opacity:1},"start"),n.to(null===(t=ea.current)||void 0===t?void 0:t.querySelectorAll(".channel-item"),{opacity:1},"start"),$&&null!==eG&&ea.current){let e=ea.current.querySelectorAll(".channel-item")[eG];e&&eJ&&n.to(e,{width:eJ.width},"start")}n.to(es.current,{opacity:0}
244,"start"),em.current&&em.current.kill(),em.current=n},[E,L,$,eG,eJ]);(0,T.useEffect)(()=>{r&&a&&c.isReady&&!e$.current&&(e$.current=!0,hl("\uD83D\uDD17 DEEPLINK DETECTED",{channel:r.slug,video:a.slug}),hl("â
Deeplink is valid - storing for later"),eW.current={channelSlug:r.slug,videoSlug:a.slug},eH.current=!0)},[c.isReady]),(0,T.useEffect)(()=>{if(U.current){ho("Modal effect skipped - aborting and reloading");return}if(i&&!eV.current){var e,t;ho("Show modal"),null===(e=eI.current)||void 0===e||e.call(eI),null!=eZ.current&&(clearTimeout(eZ.current),eZ.current=null),L&&es.current&&nT.ZP.to(es.current,{opacity:1,duration:.3,ease:"power2.out"}),L||null===(t=ey.current)||void 0===t||t.disable(!1),ec(),E||L||hn()}else!i&&eV.current&&(ho("Modal hide initiated"),L&&es.current&&nT.ZP.to(es.current,{opacity:0,duration:.4,ease:"power2.out"}),u());eV.current=i},[i,E,L]);let e6=(0,T.useCallback)(()=>{ho("Modal close animation complete - starting scale down"),eO(!1),eN(!1),ed(),e4()},[e4,ed]);return(0,T.useEffect)(()=>{if(E||L)return;let e=he({duration:dv.DURATION,easing:dv.EASING,wheelMultiplier:dv.WHEEL_MULTIPLIER}),t=t=>{try{null==e||e.raf(1e3*t)}catch(e){}try{null===iP.Z||void 0===iP.Z||iP.Z.update()}catch(e){}};return nT.ZP.ticker.add(t),()=>{nT.ZP.ticker.remove(t),ht()}},[E,L]),(0,iM.V)(()=>{let e;if(!H){ho("GSAP setup skipped - waiting for client ready (screen size unknown)");return}ho("GSAP setup starting - client is ready",{isDesktop:d,isTouchDeviceState:L,showIntro:A}),nT.ZP.registerPlugin(iP.Z,nS.L,lJ);let n=X.current,i=Q.current,r=ea.current,a=er.current,u=et.current;if(!n||!i||!r||!a)return;nT.ZP.set(r,{transformOrigin:"left bottom",y:0}),nT.ZP.set(J.current,{transformOrigin:"left bottom"}),nT.ZP.set(ee.current,{transformOrigin:"right bottom"});let c=en.current;if(A&&c){let e=.3,t=nT.ZP.timeline({repeat:-1});t.to(c,{y:2,scaleY:1.5,duration:e,ease:"power1.inOut"}),t.to(c,{y:0,scaleY:1,duration:2*e,ease:"power1.inOut"}),eg.current=t}function h(){let e=ea.current,t=er.current,n=Math.max(0,Math.ceil(e.scrollWidth-t.clientWidth));return ev.current&&ev.current.kill(),ev.current=nT.ZP.timeline({paused:!0,defaults:{ease:"none"}}).add("start").to(e,{x:-n,duration:n},"start").addLabel("kermit",n/2),ev.current.pause(0).progress(0),n}function f(e){ey.current&&(ey.current.kill(!0),ey.current=null),ey.current=iP.Z.create({id:"rhtv-slide",trigger:n,start:"top top",end:"+=".concat(e),animation:ev.current,scrub:!0,pin:!0,anticipatePin:1,pinSpacing:!0,invalidateOnRefresh:!0,onUpdate:e=>{e.progress<=d_.AT_START_THRESHOLD&&eP.current&&!eM.current?(null!=eZ.current&&(clearTimeout(eZ.current),eZ.current=null),eZ.current=window.setTimeout(()=>{eZ.current=null,A&&eP.current&&!eM.current?(ho("User settled at top - creating reverse gesture observer"),T()):A||ho("Skipping reverse gesture observer - not showing intro (tablet/mobile)")},d_.REVERSE_SETTLE_TIME_MS)):(null!=eZ.current&&(clearTimeout(eZ.current),eZ.current=null),w())}}),ey.current.disable(!1)}function p(e){e_.current&&(e_.current.kill(),e_.current=null);let t=ea.current;if(!t)return;let n=lJ.create(t,{type:"x",trigger:t,inertia:!1,bounds:{minX:-e,maxX:0},dragClickables:!0,allowEventDefault:!1,onDragEnd:function(){if(ev.current&&ey.current){let t=-this.x/e,n=ey.current.start+t*e;eb.current=!0,ev.current.progress(t),window.scrollTo(0,n),requestAnimationFrame(()=>{eb.current=!1})}}})[0];if(e_.current=n,ey.current){let i=ey.current.vars.onUpdate;ey.current.vars.onUpdate=function(r){if(!eb.current&&n&&!n.isDragging){let i=-r.progress*e;nT.ZP.set(t,{x:i}),n.update()}"function"==typeof i&&i.call(this,r)}}}function m(){null!=eZ.current&&(clearTimeout(eZ.current),eZ.current=null),w()}let g=()=>{if(hl("everythingIsReady called",eW.current),eW.current){var e,n;let{channelSlug:i,videoSlug:r}=eW.current;ho("Processing PENDING DEEPLINK now that GSAP is ready",{channelSlug:i,videoSlug:r});let a=t.findIndex(e=>e.slug===i);if(-1!==a&&(eq(a),ho("Set active channel index for pending deeplink:",a)),L||(ew||(ho("Pending deeplink: Fast-forwarding Kick animation to completion"),null===(e=ef.current)||void 0===e||e.progress(1),eS(!0),eP.current=!0,eE(!0),eL.current=!0),x&&(x.kill(),x=null),w()),-1!==a&&ea.current&&eJ){let e=ea.current.querySelectorAll(".channel-item")[a];if(e){if(L)ho("\uD83D\uDCCD Touch device: Scrolling channel into view (native)",{channelIndex:a}),e.scrollIntoView({behavior:"instant",block:"nearest",inline:"center"});else if(ey.current){let t=e.offsetLeft,n=eJ.width,i=t-window.innerWidth/2+n/2;window.scrollTo({top:ey.current.start+i,behavior:"instant"}),ho("\uD83D\uDCCD Desktop: Scrolled to center deeplink channel")}}}let u=t[a];if(u){hl("â
Opening deeplink channel and video",{channel:u.slug,video:r,channelIndex:a}),eq(a);let e=(0,D.i5)(null===(n=u.rhtvChannelContent)||void 0===n?void 0:n.rhtvVideos),t=null==e?void 0:e.find(e=>e.slug===r);t?(o(u),l(t),eO(!1),s(!0)):(ho("â ï¸ Video slug not found, falling back to first video"),eY(u,a))}eW.current=null,eH.current=!1,ho("â
Deeplink processing complete")}},v=()=>{if(hl("onResize - destroying and reinitializing animations"),U.current){ho("onResize skipped - aborting and reloading");return}eV.current||requestAnimationFrame(()=>{M(),I(),iP.Z.refresh(!0),W(!0),g()})},y=(e,t)=>{let n=nT.ZP.timeline({paused:!0,defaults:{ease:dg.EASE_KICK,duration:t,overwrite:"auto"},onComplete:()=>{eS(!0),eP.current=!0;let e=h();S||L||(f(e),ey.current.enable(!1),ey.current.refresh(),iP.Z.refresh()),m(),nT.ZP.set(r.querySelectorAll(".channel-title"),{clearProps:"transform,translate,rotate,scale"})}});return n.add("start"),u&&n.fromTo(u,{y:0,opacity:1},{y:-e/4,opacity:0}
244,"start"),A&&(n.to(i,{y:-e*dC.HEADER_MOVE_MULTIPLIER},"start"),n.to(J.current,{scale:.75},"start"),n.to(ee.current,{scale:.75},"start")),n.fromTo(r,{scale:dC.PRE_KICK_SCALE},{scale:1},"start"),n.set(r,{y:0},"start"),n.fromTo(r.querySelectorAll(".channel-title"),{opacity:0,y:dg.CHANNEL_TITLES_DOWN},{opacity:1,y:0},"start"),n},_=()=>{var e;ho("Creating reverse kick animation");let t=1.5,n=nT.ZP.timeline({paused:!0,defaults:{duration:t,ease:dg.EASE_KICK,overwrite:"auto"},onStart:()=>{var e;ho("Reverse kick animation STARTED"),ek(!0),eM.current=!0,m(),ey.current&&(ey.current.kill(!0),ey.current=null),null===(e=ev.current)||void 0===e||e.pause(0).progress(0)},onComplete:()=>{ho("Reverse kick animation COMPLETED"),eL.current=!1,eP.current=!1,eE(!1),eS(!1),eM.current=!1,ek(!1),ef.current&&ef.current.pause(0).progress(0).invalidate(),m(),A&&C(),ho("Reverse kick complete - returned to initial state")}});if(n.add("start"),n.to(ea.current,{scale:dC.PRE_KICK_SCALE,x:0},"start"),n.to(null===(e=ea.current)||void 0===e?void 0:e.querySelectorAll(".channel-title"),{opacity:0,y:dg.CHANNEL_TITLES_DOWN},"start"),n.to(i,{y:0},"start"),n.to(J.current,{scale:1},"start"),n.to(ee.current,{scale:1},"start"),u){let e=1;n.to(u,{y:0,opacity:1,duration:e,ease:dg.EASE_KICK},"start+="+(t-e))}return n.to(es.current,{opacity:0,duration:1,ease:dg.EASE_KICK},"start"),n},b=()=>{var e;eL.current||eM.current||(eL.current=!0,eE(!0),E(),ey.current&&ey.current.disable(!1),null===(e=ev.current)||void 0===e||e.pause(0).progress(0),m(),ef.current&&ef.current.play(0))};eA.current=b;let x=null,C=()=>{if(eL.current||eM.current){ho("firstScrollObserverCreate skipped",{isKickStarted:eL.current,isReverseActive:eM.current});return}ho("Creating first scroll observer"),x=d7.ZP.create({target:window,type:"wheel,touch,scroll",preventDefault:!0,onChangeY(){b()}});let e=e=>{("ArrowDown"===e.key||"ArrowUp"===e.key||"PageDown"===e.key||"PageUp"===e.key)&&b()};window.addEventListener("keydown",e);let t=x.kill.bind(x);x.kill=()=>{window.removeEventListener("keydown",e),t()}},E=()=>{x&&(ho("Destroying first scroll observer"),x.kill(),x=null)},w=()=>{ex.current&&(ho("Destroying reverse gesture observer"),ex.current.kill(),ex.current=null)};eI.current=w;let T=()=>{ex.current&&ex.current.kill(),ho("Creating reverse gesture observer"),ex.current=d7.ZP.create({target:window,type:"wheel,touch",onUp(){eM.current||(ho("Deliberate upward scroll detected at top - triggering reverse"),P())}})},P=()=>{var e;if(!A){ho("triggerReverse skipped - not showing intro (tablet/mobile)");return}if(eM.current||!eP.current){ho("triggerReverse skipped",{isReverseActive:eM.current,isKickComplete:eP.current});return}ho("Starting reverse kick animation"),w(),ek(!0),eM.current=!0,ep.current=_(),null===(e=ep.current)||void 0===e||e.play()},M=()=>{hl("cleanupAnimations"),e_.current&&(e_.current.kill(),e_.current=null),ey.current&&(ey.current.kill(!0),ey.current=null),ef.current&&ef.current.kill(),ep.current&&ep.current.kill(),ev.current&&ev.current.kill(),em.current&&em.current.kill(),ef.current=null,ep.current=null,ev.current=null,em.current=null,E(),w(),nT.ZP.set(n,{clearProps:"all"}),m()},I=()=>{hl("initAnimations",{isKickComplete:eP.current,isKickStarted:eL.current});let e=h();S||L||(f(e),p(e),eP.current?(ey.current.enable(!1),ey.current.refresh()):ey.current.disable(!1));let t=i.offsetHeight,n=dg.DUR_KICK;ef.current=y(t,n),(eP.current||eL.current)&&(hl("Kick already started/complete - applying end state immediately"),u&&nT.ZP.set(u,{y:-t/4,opacity:0}),A&&(nT.ZP.set(i,{y:-t*dC.HEADER_MOVE_MULTIPLIER}),nT.ZP.set(J.current,{scale:.75}),nT.ZP.set(ee.current,{scale:.75})),nT.ZP.set(r,{scale:1,y:0}),nT.ZP.set(r.querySelectorAll(".channel-title"),{opacity:1}),nT.ZP.set(r.querySelectorAll(".channel-title"),{clearProps:"transform,translate,rotate,scale"}),ef.current.progress(1,!0)),!A||eL.current||eM.current||(ho("Recreating first scroll observer after animations init"),C())},R=new ResizeObserver(()=>{eV.current||iP.Z.refresh()});R.observe(r),R.observe(a);let k=ds()(v,dx);return window.addEventListener("resize",k),window.addEventListener("orientationchange",k),ho("Checking if should create first scroll observer"),!A||eL.current||eM.current?ho("Skipping first scroll observer creation",{showIntro:A}):(ho("Calling firstScrollObserverCreate"),C(),ho("Finished calling firstScrollObserverCreate")),e=window.setTimeout(()=>{v(),W(!0),hl("GSAP animations initialized and ready")},200),()=>{void 0!==e&&clearTimeout(e),window.removeEventListener("resize",k),window.removeEventListener("orientationchange",k),R&&R.disconnect(),E(),ed(),eh(),M()}},[H]),ho("RockHallTv RENDER",{isKickComplete:ew,showModal:i,channelItemTargetSize:eJ}),(0,w.jsxs)("section",{ref:X,id:"main",className:hs(["rock-hall-tv",{debug:C},{portrait:$},{"touch-device":f&&L}]),...i?{inert:""}:{},children:[(0,w.jsxs)("div",{className:hs("rock-hall-tv-content"),children:[(0,w.jsxs)("div",{className:hs("header"),ref:Q,children:[(0,w.jsxs)("div",{className:hs("header-text"),ref:J,children:[(0,w.jsx)("h1",{className:hs(["headline",{"touch-device":f&&L}]),dangerouslySetInnerHTML:{__html:x}}),(0,w.jsx)("p",{className:hs(["subheadline"]),dangerouslySetInnerHTML:{__html:g}})]}),(0,w.jsx)("div",{className:hs("logo"),ref:ee,children:(0,w.jsx)(df,{})})]}),A&&(0,w.jsxs)("div",{className:hs("scroll-cta"),ref:et,children:[(0,w.jsx)("p",{className:hs("eyebrow-l"),children:b}),(0,w.jsx)("div",{className:hs("cta-icon"),children:(0,w.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",children:[(0,w.jsx)("path",{d:"M12 0C16.4183 0 20 3.58172 20 8V16C20 20.4183 16.4183 24 12 24C7.71994 24 4.22523 20.6389 4.01074 16.4121L4 16V8C4 3.58172 7.58172 0 12 0ZM12 2.5C8.96243 2.5 6.5 4.96243 6.5 8V16C6.5 19.0376 8.96243 21.5 12 21.5C15.0376 21.5 17.5 19.0376 17.5 16V8C17.5 4.96243 15.0376 2.5 12 2.5Z",fill:"currentColor"}
244),(0,w.jsx)("circle",{cx:"12",cy:"8",r:"2",fill:"currentColor",ref:en})]})})]}),(0,w.jsx)("div",{className:hs("dark-overlay"),ref:es}),(0,w.jsx)("div",{className:hs("channels-container"),ref:ei,children:(0,w.jsx)(dR,{channels:t,rootRef:er,rowRef:ea,sectionLabel:_.sectionLabel,channelLabel:_.channelTitle,onChannelClick:eY,onChannelFocus:eK,onTriggerKick:()=>{eA.current&&eA.current()},isKickComplete:ew,showModal:i,className:"".concat(hs({"not-interactive":!ew||i||ej||eR})," ").concat(eC?"":"pre-kick"),isPortraitMode:$,maxItemSize:eJ,isTouchDevice:L})}),(0,w.jsx)(dn,{selector:"portal",show:i,children:(0,w.jsx)(ez.M,{mode:"wait",children:i&&(0,w.jsx)(d8,{rrtvAriaLabels:_,trayButtonLabels:{videoTrayOpen:v,videoTrayClose:y},initial:{opacity:0},animate:{opacity:eF?0:L||eD?1:0},exit:{opacity:0},transition:{duration:eF?.4:L?.3:.42,ease:eF?"easeOut":e7.hl},onShouldExit:e=>{e&&(ho("Modal exit triggered"),eO(!0),!L&&ea.current&&(ho("Non-touch: Showing channel row for scale down"),ea.current.style.visibility="visible"))},onAnimationComplete:e=>{1===e.opacity&&!L&&ea.current&&(ho("Modal fade-in complete - hiding channel row"),ea.current.style.visibility="hidden")},onContentSizeChange:e5,onCloseComplete:e6,isPortraitMode:$,isTouchDevice:L},"rhtv-modal")})})]}),(0,w.jsx)(ez.M,{children:(V||k)&&(0,w.jsx)(R.E.div,{className:hs("loading-overlay"),initial:{opacity:k?0:1},animate:{opacity:1},exit:{opacity:0},transition:{duration:.24,ease:"easeOut"}})})]})}function hc(){return(hc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}n(1641);var hd=function(e){return T.createElement("svg",hc({viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),o||(o=T.createElement("g",{clipPath:"url(#clip0_5452_27455)"},T.createElement("path",{d:"M9.04546 15.0122L6.03583 12.0026L3.03947 12.0026C2.63288 12.0026 2.28145 11.8545 1.98517 11.5582C1.68925 11.2623 1.54128 10.911 1.54128 10.5044L1.54128 7.50805C1.54128 7.10146 1.69154 6.74791 1.99206 6.44739C2.29258 6.14687 2.64614 5.99661 3.05273 5.99661L6.02257 5.99661L9.0322 2.98699L9.04546 15.0122ZM10.5039 2.41688C12.0507 2.76159 13.3146 3.54365 14.2957 4.76306C15.2768 5.98317 15.7674 7.38872 15.7674 8.97971C15.7674 10.5707 15.2768 11.9759 14.2957 13.1953C13.3146 14.4154 12.0507 15.1978 10.5039 15.5425L10.5039 14.0046C11.6264 13.6776 12.5326 13.05 13.2223 12.1219C13.9114 11.1938 14.2559 10.1464 14.2559 8.97972C14.2559 7.81299 13.9114 6.76559 13.2223 5.83751C12.5326 4.90943 11.6264 4.28187 10.5039 3.95484L10.5039 2.41688ZM10.5039 5.54583C11.1579 5.89938 11.6971 6.37668 12.1214 6.97772C12.5456 7.57876 12.7578 8.25051 12.7578 8.99297C12.7578 9.73544 12.5455 10.4028 12.1208 10.995C11.6969 11.5872 11.1579 12.06 10.5039 12.4136V10.6105C10.7248 10.3895 10.9062 10.142 11.048 9.86802C11.189 9.59401 11.2596 9.306
24475 11.2596 9.00623C11.2596 8.68803 11.1912 8.38981 11.0543 8.11156C10.9172 7.83296 10.7337 7.57876 10.5039 7.34895L10.5039 5.54583Z",fill:"currentColor"}))),l||(l=T.createElement("defs",null,T.createElement("clipPath",{id:"clip0_5452_27455"},T.createElement("rect",{width:18,height:18,fill:"white"})))))};function hh(){return(hh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var hf=function(e){return T.createElement("svg",hh({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 164 165"},e),u||(u=T.createElement("circle",{cx:81.997,cy:82.501,r:62.591,stroke:"url(#paint0_linear_4019_20181)",strokeOpacity:.2,strokeWidth:3})),c||(c=T.createElement("circle",{cx:82,cy:82.5,r:43,stroke:"url(#paint1_linear_4019_20181)",strokeOpacity:.2,strokeWidth:4})),d||(d=T.createElement("circle",{cx:82,cy:82.5,r:81,stroke:"url(#paint2_linear_4019_20181)",strokeOpacity:.2,strokeWidth:2})),h||(h=T.createElement("defs",null,T.createElement("linearGradient",{id:"paint0_linear_4019_20181",x1:81.997,x2:81.997,y1:19.91,y2:145.092,gradientUnits:"userSpaceOnUse"},T.createElement("stop",{stopColor:"#303336"}),T.createElement("stop",{offset:1,stopColor:"#505152",stopOpacity:.3})),T.createElement("linearGradient",{id:"paint1_linear_4019_20181",x1:82,x2:82,y1:39.5,y2:125.5,gradientUnits:"userSpaceOnUse"},T.createElement("stop",{stopColor:"#303336"}),T.createElement("stop",{offset:1,stopColor:"#505152",stopOpacity:.3})),T.createElement("linearGradient",{id:"paint2_linear_4019_20181",x1:82,x2:82,y1:1.5,y2:163.5,gradientUnits:"userSpaceOnUse"},T.createElement("stop",{stopColor:"#303336"}),T.createElement("stop",{offset:1,stopColor:"#505152",stopOpacity:.3})))))},hp=n(46585),hm=n.n(hp);let hg=O().bind(hm()),hv=.75,hy=e7.Yw,h_=e7.UE,hb=e7.hl,hx=(0,T.forwardRef)((e,t)=>{let{hasInteracted:n,soundEnabled:i,setSoundEnabled:r}=(0,u5.je)(),{labels:{soundPrompt:{soundOffTooltip:a,disableSound:s,enableSound:o}={}}={}}=(0,G.i)(),[l,u]=(0,T.useState)(!0),c=()=>r(!i);return(0,T.useEffect)(()=>{n&&l&&setTimeout(()=>{u(!1)},1e3)},[n]),(0,w.jsxs)("button",{className:hg(["popup-small"]),ref:t,onClick:c,"aria-label":i?s:o,children:[(0,w.jsx)("p",{className:hg(["tooltip","eyebrow-s",{hidden:i,waiting:l}]),children:a}),(0,w.jsx)(hB,{animating:i})]})}),hC=(0,T.forwardRef)((e,t)=>{let{headlineOverride:n}=e,{labels:i}=(0,G.i)(),{soundPrompt:{headline:r,soundOn:a,soundOff:s}={}}=i,{setSoundEnabled:o,setHasInteracted:l}=(0,u5.je)(),u=(0,D.Ay)(n||r),c=()=>{o(!1),l(!0)},d=e=>{o(e),l(!0)};return(0,w.jsxs)("div",{className:hg(["popup-large"]),ref:t,children:[(0,w.jsxs)("div",{className:hg("copy"),children:[(0,w.jsx)("p",{className:hg(["headline","title-uc-xs"]),dangerouslySetInnerHTML:{__html:u}}),(0,w.jsxs)("div",{className:hg("buttons"),children:[(0,w.jsxs)("button",{className:hg("sound-on"),onClick:()=>d(!0),"aria-label":a,children:[(0,w.jsx)(hd,{}),(0,w.jsx)("p",{className:"cta",children:a})]}),(0,w.jsx)("button",{className:hg("sound-off"),onClick:()=>d(!1),"aria-label":s,children:s})]})]}),(0,w.jsx)("div",{className:hg("icon-container"),children:(0,w.jsxs)("div",{className:hg("icon-wrapper"),children:[(0,w.jsx)(hf,{className:hg("accent")}),(0,w.jsx)(hB,{className:hg("bars"),animating:!0})]})}),(0,w.jsx)("button",{className:hg("close-button"),onClick:c,"aria-label":"Close sound options",children:(0,w.jsx)(nb.Z,{className:hg("icon")})})]})}),hE=R.E.create(hx),hw=R.E.create(hC),hT=(0,T.forwardRef)((e,t)=>{let{hasInteracted:n}=(0,u5.je)(),{mounted:i}=(0,eT.F)();return i?(0,w.jsx)("div",{className:hg(["sound-popup"]),ref:t,children:(0,w.jsx)(ez.M,{mode:"wait",children:n||e.hideLarge?(0,w.jsx)(hE,{...e,initial:e.hideLarge?{opacity:1}:{opacity:0},animate:{opacity:1,transition:{duration:.35,ease:hb}}},"small"):(0,w.jsx)(hw,{...e,initial:{opacity:0,scale:hv},animate:{opacity:1,scale:1,transition:{delay:1,duration:.35,ease:h_}},exit:{opacity:0,scale:hv,transition:{duration:.35,ease:hy}}},"large")})}):null});var hS=R.E.create(hT);function hL(e){let{youtubeId:t,className:n,alt:i,width:r,height:a}=e,{labels:{ariaLabels:s}={}}=(0,G.i)(),o=(0,T.useMemo)(()=>(0,D.$e)(null==s?void 0:s.playFallbackAlt,{name:t}),[t]),[l,u]=(0,T.useState)((0,D.TO)(t)),c=(0,T.useRef)(!1),d=()=>{c.current||(u((0,D.TO)(t,!0)),c.current=!0)};return(0,w.jsx)(M(),{className:n,src:l,onError:d,width:r||1280,height:a||720,alt:i||o})}n(45621);var hP=n(69779),hM=n.n(hP);let hA=O().bind(hM());function hI(e){var t;let{featureData:n,uri:i}=e,{headline:r,tracks:a}=(null==n?void 0:n.sonicConnections)||{},s=(0,D.Ay)(r),{labels:o}=(0,G.i)(),{nextStoryHeadline:l,nextStoryButton:u}=o||{},c=(0,T.useMemo)(()=>(null==a?void 0:a.map(e=>null==e?void 0:e.heroImage))||[],[a]),d=(0,T.useMemo)(()=>
244c.filter((e,t,n)=>n.findIndex(t=>{var n,i;return(null==e?void 0:null===(n=e.node)||void 0===n?void 0:n.mediaItemUrl)===(null==t?void 0:null===(i=t.node)||void 0===i?void 0:i.mediaItemUrl)})===t),[c]);return(0,w.jsxs)("section",{className:hA(["next-up-story"]),children:[(0,w.jsx)(E.W,{children:(0,w.jsx)("h2",{className:hA(["title-uc-xxxxl center","next-up-title"]),children:l})}),(0,w.jsx)("ul",{className:hA("next-up-images"),children:null==d?void 0:d.map((e,t)=>(0,w.jsx)("li",{children:(0,w.jsx)(tc.E,{image:e})},t))}),(0,w.jsx)(E.W,{className:hA("next-up-story-text"),children:(0,w.jsxs)("div",{className:hA("next-up-story-text-content"),children:[(0,w.jsx)(ic,{type:"post",copy:null==o?void 0:null===(t=o.postTypeLabels)||void 0===t?void 0:t.post}),(0,w.jsx)("h2",{className:"title-uc-l",dangerouslySetInnerHTML:{__html:s}}),(0,w.jsx)(id.z,{label:u,url:i})]})})]})}var hR=n(91287),hk=n.n(hR);let hD=O().bind(hk()),hN="#505152",hF="#ffff4b",hO="#9efd62",hj="#d63c97";function hU(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=hO;return e<.2?[hN,hN,hN,hN,n]:e<.4?[hN,hN,hN,hF,n]:e<.6?[hN,hN,hF,hF,n]:e<.8?t&&Math.random()>.5?[hN,hj,hF,hF,n]:[hN,hN,hF,hF,n]:t&&Math.random()>.3?[hj,hj,hF,hF,n]:[hN,hj,hF,hF,n]}function hV(e){let{columnIndex:t,animating:n}=e,[i,r]=(0,T.useState)(()=>hU(.3,!1));return(0,T.useEffect)(()=>{let e=120+30*t,n=()=>{r(hU(Math.max(0,Math.min(1,Math.random()+.3*Math.sin(Date.now()/1e3*(1+.3*t)))),1===t)),setTimeout(n,Math.max(80,e+(Math.random()-.5)*60))},i=setTimeout(n,40*t);return()=>clearTimeout(i)},[t]),(0,w.jsx)("div",{className:hD("sound-icon-column"),children:i.map((e,t)=>(0,w.jsx)(R.E.div,{className:hD("sound-icon-bar"),animate:n?{backgroundColor:e}:{backgroundColor:hN},transition:{type:"spring",stiffness:300,damping:30,mass:.5},"data-name":"Bar"},t))})}function hB(e){let{animating:t,className:n=""}=e;return(0,w.jsx)("div",{className:hD("sound-icon",n),children:[0,1,2].map(e=>(0,w.jsx)(hV,{columnIndex:e,animating:t},e))})}class hH{}function hG(e){return e}function hz(e){return null==e}function hq(e){return null!==e&&"object"==typeof e}function hW(e){return null!==e&&"object"==typeof e}function h$(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function hZ(e,t){return Array.from(new Set([...Object.keys(e),...Object.keys(t)])).reduce((n,i)=>{let r=e[i],a=t[i];return hW(r)&&hW(a)?Object.assign(Object.assign({},n),{[i]:hZ(r,a)}):Object.assign(Object.assign({},n),{[i]:i in t?a:r})},{})}function hY(e){return!!hq(e)&&"target"in e}hH.parallaxMeshes=[],hH.toolImageCount=0,hH.toolCurrentLayer=0,hH.layerController={activeLayer:0,activeImageUrl:""};let hK={alreadydisposed:()=>"View has been already disposed",invalidparams:e=>`Invalid parameters for '${e.name}'`,nomatchingcontroller:e=>`No matching controller for '${e.key}'`,nomatchingview:e=>`No matching view for '${JSON.stringify(e.params)}'`,notbindable:()=>"Value is not bindable",notcompatible:e=>`Not compatible with plugin '${e.id}'`,propertynotfound:e=>`Property '${e.name}' not found`,shouldneverhappen:()=>"This error should never happen"};class hX{static alreadyDisposed(){return new hX({type:"alreadydisposed"})}static notBindable(){return new hX({type:"notbindable"})}static notCompatible(e,t){return new hX({type:"notcompatible",context:{id:`${e}.${t}`}})}static propertyNotFound(e){return new hX({type:"propertynotfound",context:{name:e}})}static shouldNeverHappen(){return new hX({type:"shouldneverhappen"})}constructor(e){var t;this.message=null!==(t=hK[e.type](hG(e.context)))&&void 0!==t?t:"Unexpected error",this.name=this.constructor.name,this.stack=Error(this.message).stack,this.type=e.type}toString(){return this.message}}class hQ{constructor(e,t){this.obj_=e,this.key=t}static isBindable(e){return null!==e&&("object"==typeof e||"function"==typeof e)}read(){return this.obj_[this.key]}write(e){this.obj_[this.key]=e}writeProperty(e,t){let n=this.read();if(!hQ.isBindable(n))throw hX.notBindable();if(!(e in n))throw hX.propertyNotFound(e);n[e]=t}}class hJ{constructor(){this.observers_={}}on(e,t,n){var i;let r=this.observers_[e];return r||(r=this.observers_[e]=[]),r.push({handler:t,key:null!==(i=null==n?void 0:n.key)&&void 0!==i?i:t}),this}off(e,t){let n=this.observers_[e];return n&&(this.observers_[e]=n.filter(e=>e.key!==t)),this}emit(e,t){let n=this.observers_[e];
244n&&n.forEach(e=>{e.handler(t)})}}class h0{constructor(e,t){var n;this.constraint_=null==t?void 0:t.constraint,this.equals_=null!==(n=null==t?void 0:t.equals)&&void 0!==n?n:(e,t)=>e===t,this.emitter=new hJ,this.rawValue_=e}get constraint(){return this.constraint_}get rawValue(){return this.rawValue_}set rawValue(e){this.setRawValue(e,{forceEmit:!1,last:!0})}setRawValue(e,t){let n=null!=t?t:{forceEmit:!1,last:!0},i=this.constraint_?this.constraint_.constrain(e):e,r=this.rawValue_;(!this.equals_(r,i)||n.forceEmit)&&(this.emitter.emit("beforechange",{sender:this}),this.rawValue_=i,this.emitter.emit("change",{options:n,previousRawValue:r,rawValue:i,sender:this}))}}class h1{constructor(e){this.emitter=new hJ,this.value_=e}get rawValue(){return this.value_}set rawValue(e){this.setRawValue(e,{forceEmit:!1,last:!0})}setRawValue(e,t){let n=null!=t?t:{forceEmit:!1,last:!0},i=this.value_;(i!==e||n.forceEmit)&&(this.emitter.emit("beforechange",{sender:this}),this.value_=e,this.emitter.emit("change",{options:n,previousRawValue:i,rawValue:this.value_,sender:this}))}}class h2{constructor(e){this.emitter=new hJ,this.onValueBeforeChange_=this.onValueBeforeChange_.bind(this),this.onValueChange_=this.onValueChange_.bind(this),this.value_=e,this.value_.emitter.on("beforechange",this.onValueBeforeChange_),this.value_.emitter.on("change",this.onValueChange_)}get rawValue(){return this.value_.rawValue}onValueBeforeChange_(e){this.emitter.emit("beforechange",Object.assign(Object.assign({},e),{sender:this}))}onValueChange_(e){this.emitter.emit("change",Object.assign(Object.assign({},e),{sender:this}))}}function h3(e,t){let n=null==t?void 0:t.constraint,i=null==t?void 0:t.equals;return n||i?new h0(e,t):new h1(e)}function h5(e){return[new h2(e),(t,n)=>{e.setRawValue(t,n)}]}class h4{constructor(e){for(let t in this.emitter=new hJ,this.valMap_=e,this.valMap_)this.valMap_[t].emitter.on("change",()=>{this.emitter.emit("change",{key:t,sender:this})})}static createCore(e){return Object.keys(e).reduce((t,n)=>Object.assign(t,{[n]:h3(e[n])}),{})}static fromObject(e){return new h4(this.createCore(e))}get(e){return this.valMap_[e].rawValue}set(e,t){this.valMap_[e].rawValue=t}value(e){return this.valMap_[e]}}class h6{constructor(e){this.values=h4.fromObject({max:e.max,min:e.min})}constrain(e){let t=this.values.get("max");return Math.min(Math.max(e,this.values.get("min")),t)}}class h8{constructor(e){this.values=h4.fromObject({max:e.max,min:e.min})}constrain(e){let t=this.values.get("max"),n=this.values.get("min"),i=e;return hz(n)||(i=Math.max(i,n)),hz(t)||(i=Math.min(i,t)),i}}class h7{constructor(e,t=0){this.step=e,this.origin=t}constrain(e){let t=this.origin%this.step,n=Math.round((e-t)/this.step);return t+n*this.step}}class h9{constructor(e){this.text=e}evaluate(){return Number(this.text)}toString(){return this.text}}let fe={"**":(e,t)=>Math.pow(e,t),"*":(e,t)=>e*t,"/":(e,t)=>e/t,"%":(e,t)=>e%t,"+":(e,t)=>e+t,"-":(e,t)=>e-t,"<<":(e,t)=>
244e<<t,">>":(e,t)=>e>>t,">>>":(e,t)=>e>>>t,"&":(e,t)=>e&t,"^":(e,t)=>e^t,"|":(e,t)=>e|t};class ft{constructor(e,t,n){this.left=t,this.operator=e,this.right=n}evaluate(){let e=fe[this.operator];if(!e)throw Error(`unexpected binary operator: '${this.operator}`);return e(this.left.evaluate(),this.right.evaluate())}toString(){return["b(",this.left.toString(),this.operator,this.right.toString(),")"].join(" ")}}let fn={"+":e=>e,"-":e=>-e,"~":e=>~e};class fi{constructor(e,t){this.operator=e,this.expression=t}evaluate(){let e=fn[this.operator];if(!e)throw Error(`unexpected unary operator: '${this.operator}`);return e(this.expression.evaluate())}toString(){return["u(",this.operator,this.expression.toString(),")"].join(" ")}}function fr(e){return(t,n)=>{for(let i=0;i<e.length;i++){let r=e[i](t,n);if(""!==r)return r}return""}}function fa(e,t){var n;let i=e.substr(t).match(/^\s+/);return null!==(n=i&&i[0])&&void 0!==n?n:""}function fs(e,t){let n=e.substr(t,1);return n.match(/^[1-9]$/)?n:""}function fo(e,t){var n;let i=e.substr(t).match(/^[0-9]+/);return null!==(n=i&&i[0])&&void 0!==n?n:""}function fl(e,t){let n=fo(e,t);if(""!==n)return n;let i=e.substr(t,1);if(t+=1,"-"!==i&&"+"!==i)return"";let r=fo(e,t);return""===r?"":i+r}function fu(e,t){let n=e.substr(t,1);if(t+=1,"e"!==n.toLowerCase())return"";let i=fl(e,t);return""===i?"":n+i}function fc(e,t){let n=e.substr(t,1);if("0"===n)return n;let i=fs(e,t);return(t+=i.length,""===i)?"":i+fo(e,t)}let fd=fr([function(e,t){let n=fc(e,t);if(t+=n.length,""===n)return"";let i=e.substr(t,1);if(t+=i.length,"."!==i)return"";let r=fo(e,t);return t+=r.length,n+i+r+fu(e,t)},function(e,t){let n=e.substr(t,1);if(t+=n.length,"."!==n)return"";let i=fo(e,t);return(t+=i.length,""===i)?"":n+i+fu(e,t)},function(e,t){let n=fc(e,t);return(t+=n.length,""===n)?"":n+fu(e,t)}]);function fh(e,t){var n;let i=e.substr(t).match(/^[01]+/);return null!==(n=i&&i[0])&&void 0!==n?n:""}function ff(e,t){var n;let i=e.substr(t).match(/^[0-7]+/);return null!==(n=i&&i[0])&&void 0!==n?n:""}function fp(e,t){var n;let i=e.substr(t).match(/^[0-9a-f]+/i);return null!==(n=i&&i[0])&&void 0!==n?n:""}let fm=fr([function(e,t){let n=e.substr(t,2);if(t+=n.length,"0b"!==n.toLowerCase())return"";let i=fh(e,t);return""===i?"":n+i},function(e,t){let n=e.substr(t,2);if(t+=n.length,"0o"!==n.toLowerCase())return"";let i=ff(e,t);return""===i?"":n+i},function(e,t){let n=e.substr(t,2);if(t+=n.length,"0x"!==n.toLowerCase())return"";let i=fp(e,t);return""===i?"":n+i}]),fg=fr([fm,fd]);function fv(e,t){let n=fg(e,t);return(t+=n.length,""===n)?null:{evaluable:new h9(n),cursor:t}}function fy(e,t){let n=e.substr(t,1);if(t+=n.length,"("!==n)return null;let i=fw(e,t);if(!i)return null;t=i.cursor,t+=fa(e,t).length;let r=e.substr(t,1);return(t+=r.length,")"!==r)?null:{evaluable:i.evaluable,cursor:t}}function f_(e,t){var n;return null!==(n=fv(e,t))&&void 0!==n?n:fy(e,t)}function fb(e,t){let n=f_(e,t);if(n)return n;let i=e.substr(t,1);if(t+=i.length,"+"!==i&&"-"!==i&&"~"!==i)return null;let r=fb(e,t);return r?{cursor:t=r.cursor,evaluable:new fi(i,r.evaluable)}:null}function fx(e,t,n){n+=fa(t,n).length;let i=e.filter(e=>t.startsWith(e,n))[0];return i?(n+=i.length,{cursor:n+=fa(t,n).length,operator:i}):null}function fC(e,t){return(n,i)=>{let r=e(n,i);if(!r)return null;i=r.cursor;let a=r.evaluable;for(;;){let r=fx(t,n,i);if(!r)break;let s=e(n,i=r.cursor);if(!s)return null;i=s.cursor,a=new ft(r.operator,a,s.evaluable)}return a?{cursor:i,evaluable:a}:null}}let fE=[["**"],["*","/","%"],["+","-"],["<<",">>>",">>"],["&"],["^"],["|"]].reduce((e,t)=>fC(e,t),fb);function fw(e,t){return t+=fa(e,t).length,fE(e,t)}function fT(e){let t=fw(e,0);return t&&t.cursor+fa(e,t.cursor).length===e.length?t.evaluable:null}function fS(e){var t;let n=fT(e);return null!==(t=null==n?void 0:n.evaluate())&&void 0!==t?t:null}function fL(e){if("number"==typeof e)return e;if("string"==typeof e){let t=fS(e);if(!hz(t))return t}return 0}function fP(e){return t=>t.toFixed(Math.max(Math.min(e,20),0))}function fM(e,t,n,i,r){return i+(e-t)/(n-t)*(r-i)}function fA(e){return String(e.toFixed(10)).split(".")[1].replace(/0+$/,"").length}function fI(e,t,n){return Math.min(Math.max(e,t),n)}function fR(e,t){return(e%t+t)%t}function fk(e,t){return hz(e.step)?Math.max(fA(t),2):fA(e.step)}function fD(e){var t;return null!==(t=e.step)&&void 0!==t?t:1}function fN(e,t){var n;let i=Math.abs(null!==(n=e.step)&&void 0!==n?n:t);return 0===i?.1:Math.pow(10,Math.floor(Math.log10(i))-1)}function fF(e,t){return hz(e.step)?null:new h7(e.step,t)}function fO(e){return hz(e.max)||hz(e.min)?hz(e.max)&&hz(e.min)?null:new h8({max:e.max,min:e.min}):new h6({max:e.max,min:e.min})}function fj(e,t){var n,i,r;return{formatter:null!==(n=e.format)&&void 0!==n?n:fP(fk(e,t)),keyScale:null!==(i=e.keyScale)&&void 0!==i?i:fD(e),pointerScale:null!==(r=e.pointerScale)&&void 0!==r?r:fN(e,t)}}function fU(e){return{format:e.optional.function,keyScale:e.optional.number,max:e.optional.number,min:e.optional.number,pointerScale:e.optional.number,step:e.optional.number}}function fV(e){return{constraint:e.constraint,textProps:h4.fromObject(fj(e.params,e.initialValue))}}class fB{constructor(e){this.controller=e}
244get element(){return this.controller.view.element}get disabled(){return this.controller.viewProps.get("disabled")}set disabled(e){this.controller.viewProps.set("disabled",e)}get hidden(){return this.controller.viewProps.get("hidden")}set hidden(e){this.controller.viewProps.set("hidden",e)}dispose(){this.controller.viewProps.set("disposed",!0)}importState(e){return this.controller.importState(e)}exportState(){return this.controller.exportState()}}class fH{constructor(e){this.target=e}}class fG extends fH{constructor(e,t,n){super(e),this.value=t,this.last=null==n||n}}class fz extends fH{constructor(e,t){super(e),this.expanded=t}}class fq extends fH{constructor(e,t){super(e),this.index=t}}class fW extends fH{constructor(e,t){super(e),this.native=t}}class f$ extends fB{constructor(e){super(e),this.onValueChange_=this.onValueChange_.bind(this),this.emitter_=new hJ,this.controller.value.emitter.on("change",this.onValueChange_)}get label(){return this.controller.labelController.props.get("label")}set label(e){this.controller.labelController.props.set("label",e)}get key(){return this.controller.value.binding.target.key}get tag(){return this.controller.tag}set tag(e){this.controller.tag=e}on(e,t){let n=t.bind(this);return this.emitter_.on(e,e=>{n(e)},{key:t}),this}off(e,t){return this.emitter_.off(e,t),this}refresh(){this.controller.value.fetch()}onValueChange_(e){let t=this.controller.value;this.emitter_.emit("change",new fG(this,hG(t.binding.target.read()),e.options.last))}}function fZ(e,t){return hG(Object.keys(t).reduce((n,i)=>{if(void 0===n)return;let r=(0,t[i])(e[i]);return r.succeeded?Object.assign(Object.assign({},n),{[i]:r.value}):void 0},{}))}function fY(e,t){return e.reduce((e,n)=>{if(void 0===e)return;let i=t(n);if(i.succeeded&&void 0!==i.value)return[...e,i.value]},[])}function fK(e){return null!==e&&"object"==typeof e}function fX(e){return t=>n=>{if(!t&&void 0===n)return{succeeded:!1,value:void 0};if(t&&void 0===n)return{succeeded:!0,value:void 0};let i=e(n);return void 0!==i?{succeeded:!0,value:i}:{succeeded:!1,value:void 0}}}function fQ(e){return{custom:t=>fX(t)(e),boolean:fX(e=>"boolean"==typeof e?e:void 0)(e),number:fX(e=>"number"==typeof e?e:void 0)(e),string:fX(e=>"string"==typeof e?e:void 0)(e),function:fX(e=>"function"==typeof e?e:void 0)(e),constant:t=>fX(e=>e===t?t:void 0)(e),raw:fX(e=>e)(e),object:t=>fX(e=>{if(fK(e))return fZ(e,t)})(e),array:t=>fX(e=>{if(Array.isArray(e))return fY(e,t)})(e)}}let fJ={optional:fQ(!0),required:fQ(!1)};function f0(e,t){let n=t(fJ),i=fJ.required.object(n)(e);return i.succeeded?i.value:void 0}function f1(e,t,n,i){if(t&&!t(e))return!1;let r=f0(e,n);return!!r&&i(r)}function f2(e,t){var n;return hZ(null!==(n=null==e?void 0:e())&&void 0!==n?n:{},t)}function f3(e){return"value"in e}function f5(e){return!!hq(e)&&"binding"in e&&hY(e.binding)}let f4="http://www.w3.org/2000/svg";function f6(e){e.offsetHeight}function f8(e,t){let n=e.style.transition;e.style.transition="none",t(),e.style.transition=n}function f7(e){return void 0!==e.ontouchstart}function f9(e){let t=e.ownerDocument.defaultView;return t&&"document"in t?e.getContext("2d",{willReadFrequently:!0}):null}let pe={check:'<path d="M2 8l4 4l8 -8"/>',dropdown:'<path d="M5 7h6l-3 3 z"/>',p2dpad:'<path d="M8 4v8"/><path d="M4 8h8"/><circle cx="12" cy="12" r="1.2"/>'};function pt(e,t){let n=e.createElementNS(f4,"svg");return n.innerHTML=pe[t],n}function pn(e,t,n){e.insertBefore(t,e.children[n])}function pi(e){e.parentElement&&e.parentElement.removeChild(e)}function pr(e){for(;e.children.length>0;)e.removeChild(e.children[0])}function pa(e){for(;e.childNodes.length>0;)e.removeChild(e.childNodes[0])}function ps(e){return e.relatedTarget?hG(e.relatedTarget):"explicitOriginalTarget"in e?e.explicitOriginalTarget:null}function po(e,t){e.emitter.on("change",e=>{t(e.rawValue)}),t(e.rawValue)}function pl(e,t,n){po(e.value(t),n)}let pu="tp";function pc(e){return(t,n)=>[pu,"-",e,"v",t?`_${t}`:"",n?`-${n}`:""].join("")}let pd=pc("lbl");function ph(e,t){let n=e.createDocumentFragment();return t.split("\n").map(t=>e.createTextNode(t)).forEach((t,i)=>{i>0&&n.appendChild(e.createElement("br")),n.appendChild(t)}),n}class pf{constructor(e,t){this.element=e.createElement("div"),this.element.classList.add(pd()),t.viewProps.bindClassModifiers(this.element);let n=e.createElement("div");n.classList.add(pd("l")),pl(t.props,"label",t=>{hz(t)?this.element.classList.add(pd(void 0,"nol")):(this.element.classList.remove(pd(void 0,"nol")),pa(n),n.appendChild(ph(e,t)))}),this.element.appendChild(n),this.labelElement=n;let i=e.createElement("div");i.classList.add(pd("v")),this.element.appendChild(i),this.valueElement=i}}class pp{constructor(e,t){this.props=t.props,this.valueController=t.valueController,this.viewProps=t.valueController.viewProps,this.view=new pf(e,{props:t.props,viewProps:this.viewProps}),this.view.valueElement.appendChild(this.valueController.view.element)}importProps(e){return f1(e,null,e=>({label:e.optional.string}),e=>(this.props.set("label",e.label),!0))}exportProps(){return f2(null,{label:this.props.get("label")})}}function pm(){return["veryfirst","first","last","verylast"]}let pg=pc(""),pv={veryfirst:"vfst",first:"fst",last:"lst",verylast:"vlst"};class py{constructor(e){this.parent_=null,this.blade=e.blade,this.view=e.view,this.viewProps=e.viewProps;let t=this.view.element;this.blade.value("positions").emitter.on("change",()=>
244{pm().forEach(e=>{t.classList.remove(pg(void 0,pv[e]))}),this.blade.get("positions").forEach(e=>{t.classList.add(pg(void 0,pv[e]))})}),this.viewProps.handleDispose(()=>{pi(t)})}get parent(){return this.parent_}set parent(e){this.parent_=e,this.viewProps.set("parent",this.parent_?this.parent_.viewProps:null)}importState(e){return f1(e,null,e=>({disabled:e.required.boolean,hidden:e.required.boolean}),e=>(this.viewProps.importState(e),!0))}exportState(){return f2(null,Object.assign({},this.viewProps.exportState()))}}class p_ extends fB{get label(){return this.controller.labelController.props.get("label")}set label(e){this.controller.labelController.props.set("label",e)}get title(){var e;return null!==(e=this.controller.buttonController.props.get("title"))&&void 0!==e?e:""}set title(e){this.controller.buttonController.props.set("title",e)}on(e,t){let n=t.bind(this);return this.controller.buttonController.emitter.on(e,e=>{n(new fW(this,e.nativeEvent))}),this}off(e,t){return this.controller.buttonController.emitter.off(e,t),this}}function pb(e,t,n){n?e.classList.add(t):e.classList.remove(t)}function px(e,t){return n=>{pb(e,t,n)}}function pC(e,t){po(e,e=>{t.textContent=null!=e?e:""})}let pE=pc("btn");class pw{constructor(e,t){this.element=e.createElement("div"),this.element.classList.add(pE()),t.viewProps.bindClassModifiers(this.element);let n=e.createElement("button");n.classList.add(pE("b")),t.viewProps.bindDisabled(n),this.element.appendChild(n),this.buttonElement=n;let i=e.createElement("div");i.classList.add(pE("t")),pC(t.props.value("title"),i),this.buttonElement.appendChild(i)}}class pT{constructor(e,t){this.emitter=new hJ,this.onClick_=this.onClick_.bind(this),this.props=t.props,this.viewProps=t.viewProps,this.view=new pw(e,{props:this.props,viewProps:this.viewProps}),this.view.buttonElement.addEventListener("click",this.onClick_)}importProps(e){return f1(e,null,e=>({title:e.optional.string}),e=>(this.props.set("title",e.title),!0))}exportProps(){return f2(null,{title:this.props.get("title")})}onClick_(e){this.emitter.emit("click",{nativeEvent:e,sender:this})}}class pS extends py{constructor(e,t){let n=new pT(e,{props:t.buttonProps,viewProps:t.viewProps}),i=new pp(e,{blade:t.blade,props:t.labelProps,valueController:n});super({blade:t.blade,view:i.view,viewProps:t.viewProps}),this.buttonController=n,this.labelController=i}importState(e){return f1(e,e=>super.importState(e)&&this.buttonController.importProps(e)&&this.labelController.importProps(e),()=>({}),()=>!0)}exportState(){return f2(()=>super.exportState(),Object.assign(Object.assign({},this.buttonController.exportProps()),this.labelController.exportProps()))}}class pL{constructor(e){let[t,n]=e.split("-"),i=t.split(".");this.major=parseInt(i[0],10),this.minor=parseInt(i[1],10),this.patch=parseInt(i[2],10),this.prerelease=null!=n?n:null}toString(){let e=[this.major,this.minor,this.patch].join(".");return null!==this.prerelease?[e,this.prerelease].join("-"):e}}let pP=new pL("2.0.5");function pM(e){return Object.assign({core:pP},e)}function pA(e,t){return e.addBlade(Object.assign(Object.assign({},t),{view:"button"}))}function pI(e,t){return e.addBlade(Object.assign(Object.assign({},t),{view:"folder"}))}function pR(e,t){return e.addBlade(Object.assign(Object.assign({},t),{view:"tab"}))}function pk(e){return!!hq(e)&&"refresh"in e&&"function"==typeof e.refresh}function pD(e,t){if(!hQ.isBindable(e))throw hX.notBindable();return new hQ(e,t)}pM({id:"button",type:"blade",accept(e){let t=f0(e,e=>({title:e.required.string,view:e.required.constant("button"),label:e.optional.string}));return t?{params:t}:null},controller:e=>new pS(e.document,{blade:e.blade,buttonProps:h4.fromObject({title:e.params.title}),labelProps:h4.fromObject({label:e.params.label}),viewProps:e.viewProps}),api:e=>e.controller instanceof pS?new p_(e.controller):null});class pN{constructor(e,t){this.onRackValueChange_=this.onRackValueChange_.bind(this),this.controller_=e,this.emitter_=new hJ,this.pool_=t,this.controller_.rack.emitter.on("valuechange",this.onRackValueChange_)}get children(){return this.controller_.rack.children.map(e=>this.pool_.createApi(e))}addBinding(e,t,n){let i=null!=n?n:{},r=this.controller_.element.ownerDocument,a=this.pool_.createBinding(r,pD(e,t),i),s=this.pool_.createBindingApi(a);return this.add(s,i.index)}addFolder(e){return pI(this,e)}addButton(e){return pA(this,e)}addTab(e){return pR(this,e)}add(e,t){let n=e.controller;return this.controller_.rack.add(n,t),e}remove(e){this.controller_.rack.remove(e.controller)}addBlade(e){let t=this.controller_.element.ownerDocument,n=this.pool_.createBlade(t,e),i=this.pool_.createApi(n);return this.add(i,e.index)}on(e,t){let n=t.bind(this);return this.emitter_.on(e,e=>{n(e)},{key:t}),this}off(e,t){return this.emitter_.off(e,t),this}
244refresh(){this.children.forEach(e=>{pk(e)&&e.refresh()})}onRackValueChange_(e){let t=e.bladeController,n=this.pool_.createApi(t),i=f5(t.value)?t.value.binding:null;this.emitter_.emit("change",new fG(n,i?i.target.read():t.value.rawValue,e.options.last))}}class pF extends fB{constructor(e,t){super(e),this.rackApi_=new pN(e.rackController,t)}refresh(){this.rackApi_.refresh()}}class pO extends py{constructor(e){super({blade:e.blade,view:e.view,viewProps:e.rackController.viewProps}),this.rackController=e.rackController}importState(e){return f1(e,e=>super.importState(e),e=>({children:e.required.array(e.required.raw)}),e=>this.rackController.rack.children.every((t,n)=>t.importState(e.children[n])))}exportState(){return f2(()=>super.exportState(),{children:this.rackController.rack.children.map(e=>e.exportState())})}}function pj(e){return"rackController"in e}class pU{constructor(e){this.emitter=new hJ,this.items_=[],this.cache_=new Set,this.onSubListAdd_=this.onSubListAdd_.bind(this),this.onSubListRemove_=this.onSubListRemove_.bind(this),this.extract_=e}get items(){return this.items_}allItems(){return Array.from(this.cache_)}find(e){for(let t of this.allItems())if(e(t))return t;return null}includes(e){return this.cache_.has(e)}add(e,t){if(this.includes(e))throw hX.shouldNeverHappen();let n=void 0!==t?t:this.items_.length;this.items_.splice(n,0,e),this.cache_.add(e);let i=this.extract_(e);i&&(i.emitter.on("add",this.onSubListAdd_),i.emitter.on("remove",this.onSubListRemove_),i.allItems().forEac
244h(e=>{this.cache_.add(e)})),this.emitter.emit("add",{index:n,item:e,root:this,target:this})}remove(e){let t=this.items_.indexOf(e);if(t<0)return;this.items_.splice(t,1),this.cache_.delete(e);let n=this.extract_(e);n&&(n.allItems().forEach(e=>{this.cache_.delete(e)}),n.emitter.off("add",this.onSubListAdd_),n.emitter.off("remove",this.onSubListRemove_)),this.emitter.emit("remove",{index:t,item:e,root:this,target:this})}onSubListAdd_(e){this.cache_.add(e.item),this.emitter.emit("add",{index:e.index,item:e.item,root:this,target:e.target})}onSubListRemove_(e){this.cache_.delete(e.item),this.emitter.emit("remove",{index:e.index,item:e.item,root:this,target:e.target})}}function pV(e,t){for(let n=0;n<e.length;n++){let i=e[n];if(f3(i)&&i.value===t)return i}return null}function pB(e){return pj(e)?e.rackController.rack.bcSet_:null}class pH{constructor(e){var t,n;this.emitter=new hJ,this.onBladePositionsChange_=this.onBladePositionsChange_.bind(this),this.onSetAdd_=this.onSetAdd_.bind(this),this.onSetRemove_=this.onSetRemove_.bind(this),this.onChildDispose_=this.onChildDispose_.bind(this),this.onChildPositionsChange_=this.onChildPositionsChange_.bind(this),this.onChildValueChange_=this.onChildValueChange_.bind(this),this.onChildViewPropsChange_=this.onChildViewPropsChange_.bind(this),this.onRackLayout_=this.onRackLayout_.bind(this),this.onRackValueChange_=this.onRackValueChange_.bind(this),this.blade_=null!==(t=e.blade)&&void 0!==t?t:null,null===(n=this.blade_)||void 0===n||n.value("positions").emitter.on("change",this.onBladePositionsChange_),this.viewProps=e.viewProps,this.bcSet_=ne
244w pU(pB),this.bcSet_.emitter.on("add",this.onSetAdd_),this.bcSet_.emitter.on("remove",this.onSetRemove_)}get children(){return this.bcSet_.items}add(e,t){var n;null===(n=e.parent)||void 0===n||n.remove(e),e.parent=this,this.bcSet_.add(e,t)}remove(e){e.parent=null,this.bcSet_.remove(e)}find(e){return this.bcSet_.allItems().filter(e)}onSetAdd_(e){this.updatePositions_();let t=e.target===e.root;if(this.emitter.emit("add",{bladeController:e.item,index:e.index,root:t,sender:this}),!t)return;let n=e.item;if(n.viewProps.emitter.on("change",this.onChildViewPropsChange_),n.blade.value("positions").emitter.on("change",this.onChildPositionsChange_),n.viewProps.handleDispose(this.onChildDispose_),f3(n))n.value.emitter.on("change",this.onChildValueChange_);else if(pj(n)){let e=n.rackController.rack;if(e){let t=e.emitter;t.on("layout",this.onRackLayout_),t.on("valuechange",this.onRackValueChange_)}}}onSetRemove_(e){this.updatePositions_();let t=e.target===e.root;if(this.emitter.emit("remove",{bladeController:e.item,root:t,sender:this}),!t)return;let n=e.item;if(f3(n))n.value.emitter.off("change",this.onChildValueChange_);else if(pj(n)){let e=n.rackController.rack;if(e){let t=e.emitter;t.off("layout",this.onRackLayout_),t.off("valuechange",this.onRackValueChange_)}}}updatePositions_(){let e=this.bcSet_.items.filter(e=>!e.viewProps.get("hidden")),t=e[0],n=e[e.length-1];this.bcSet_.items.forEach(e=>{let i=[];e===t&&(i.push("first"),(!this.blade_||this.blade_.get("positions").includes("veryfirst"))&&i.push("veryfirst")),e===n&&(i.push("last"),(!this.blade_||this.blade_.get("positions").includes("verylast"))&&i.push("verylast")),e.blade.set("positions",i)})}onChildPositionsChange_(){this.updatePositions_(),this.emitter.emit("layout",{sender:this})}onChildViewPropsChange_(e){this.updatePositions_(),this.emitter.emit("layout",{sender:this})}onChildDispose_(){this.bcSet_.items.filter(e=>e.viewProps.get("disposed")).forEach(e=>{this.bcSet_.remove(e)})}onChildValueChange_(e){let t=pV(this.find(f3),e.sender);if(!t)throw hX.alreadyDisposed();this.emitter.emit("valuechange",{bladeController:t,options:e.options,sender:this})}onRackLayout_(e){this.updatePositions_(),this.emitter.emit("layout",{sender:this})}onRackValueChange_(e){this.emitter.emit("valuechange",{bladeController:e.bladeController,options:e.options,sender:this})}onBladePositionsChange_(){this.updatePositions_()}}class pG{constructor(e){this.onRackAdd_=this.onRackAdd_.bind(this),this.onRackRemove_=this.onRackRemove_.bind(this),this.element=e.element,this.viewProps=e.viewProps;let t=new pH({blade:e.root?void 0:e.blade,viewProps:e.viewProps});t.emitter.on("add",this.onRackAdd_),t.emitter.on("remove",this.onRackRemove_),this.rack=t,this.viewProps.handleDispose(()=>{for(let e=this.rack.children.length-1;e>=0;e--)this.rack.children[e].viewProps.set("disposed",!0)})}onRackAdd_(e){e.root&&pn(this.element,e.bladeController.view.element,e.index)}onRackRemove_(e){e.root&&pi(e.bladeController.view.element)}}function pz(){return new h4({positions:h3([],{equals:h$})})}class pq extends h4{constructor(e){super(e)}static create(e){let t={completed:!0,expanded:e,expandedHeight:null,shouldFixHeight:!1,temporaryExpanded:null};return new pq(h4.createCore(t))}get styleExpanded(){var e;return null!==(e=this.get("temporaryExpanded"))&&void 0!==e?e:this.get("expanded")}get styleHeight(){if(!this.styleExpanded)return"0";let e=this.get("expandedHeight");return this.get("shouldFixHeight")&&!hz(e)?`${e}px`:"auto"}bindExpandedClass(e,t){let n=()=>{this.styleExpanded?e.classList.add(t):e.classList.remove(t)};pl(this,"expanded",n),pl(this,"temporaryExpanded",n)}cleanUpTransition(){this.set("shouldFixHeight",!1),this.set("expandedHeight",null),this.set("completed",!0)}}function pW(e,t){let n=0;return f8(t,()=>{e.set("expandedHeight",null),e.set("temporaryExpanded",!0),f6(t),n=t.clientHeight,e.set("temporaryExpanded",null),f6(t)}),n}function p$(e,t){t.style.height=e.styleHeight}function pZ(e,t){e.value("expanded").emitter.on("beforechange",()=>{if(e.set("completed",!1),hz(e.get("expandedHeight"))){let n=pW(e,t);n>0&&e.set("expandedHeight",n)}e.set("shouldFixHeight",!0),f6(t)}),e.emitter.on("change",()=>{p$(e,t)}),p$(e,t),t.addEventListener("transitionend",t=>{"height"===t.propertyName&&e.cleanUpTransition()})}class pY extends pF{constructor(e,t){super(e,t),this.emitter_=new hJ,this.controller.foldable.value("expanded").emitter.on("change",e=>{this.emitter_.emit("fold",new fz(this,e.sender.rawValue))}),this.rackApi_.on("change",e=>{this.emitter_.emit("change",e)})}get expanded(){return this.controller.foldable.get("expanded")}set expanded(e){this.controller.foldable.set("expanded",e)}get title(){return this.controller.props.get("title")}set title(e){this.controller.props.set("title",e)}get children(){return this.rackApi_.children}addBinding(e,t,n){return this.rackApi_.addBinding(e,t,n)}addFolder(e){return this.rackApi_.addFolder(e)}addButton(e){return this.rackApi_.addButton(e)}addTab(e){return this.rackApi_.addTab(e)}add(e,t){return this.rackApi_.add(e,t)}remove(e){this.rackApi_.remove(e)}
244addBlade(e){return this.rackApi_.addBlade(e)}on(e,t){let n=t.bind(this);return this.emitter_.on(e,e=>{n(e)},{key:t}),this}off(e,t){return this.emitter_.off(e,t),this}}let pK=pc("cnt");class pX{constructor(e,t){var n;this.className_=pc(null!==(n=t.viewName)&&void 0!==n?n:"fld"),this.element=e.createElement("div"),this.element.classList.add(this.className_(),pK()),t.viewProps.bindClassModifiers(this.element),this.foldable_=t.foldable,this.foldable_.bindExpandedClass(this.element,this.className_(void 0,"expanded")),pl(this.foldable_,"completed",px(this.element,this.className_(void 0,"cpl")));let i=e.createElement("button");i.classList.add(this.className_("b")),pl(t.props,"title",e=>{hz(e)?this.element.classList.add(this.className_(void 0,"not")):this.element.classList.remove(this.className_(void 0,"not"))}),t.viewProps.bindDisabled(i),this.element.appendChild(i),this.buttonElement=i;let r=e.createElement("div");r.classList.add(this.className_("i")),this.element.appendChild(r);let a=e.createElement("div");a.classList.add(this.className_("t")),pC(t.props.value("title"),a),this.buttonElement.appendChild(a),this.titleElement=a;let s=e.createElement("div");s.classList.add(this.className_("m")),this.buttonElement.appendChild(s);let o=e.createElement("div");o.classList.add(this.className_("c")),this.element.appendChild(o),this.containerElement=o}}class pQ extends pO{constructor(e,t){var n;let i=pq.create(null===(n=t.expanded)||void 0===n||n),r=new pX(e,{foldable:i,props:t.props,viewName:t.root?"rot":void 0,viewProps:t.viewProps});super(Object.assign(Object.assign({},t),{rackController:new pG({blade:t.blade,element:r.containerElement,root:t.root,viewProps:t.viewProps}),view:r})),this.onTitleClick_=this.onTitleClick_.bind(this),this.props=t.props,this.foldable=i,pZ(this.foldable,this.view.containerElement),this.rackController.rack.emitter.on("add",()=>{this.foldable.cleanUpTransition()}),this.rackController.rack.emitter.on("remove",()=>{this.foldable.cleanUpTransition()}),this.view.buttonElement.addEventListener("click",this.onTitleClick_)}get document(){return this.view.element.ownerDocument}importState(e){return f1(e,e=>super.importState(e),e=>({expanded:e.required.boolean,title:e.optional.string}),e=>(this.foldable.set("expanded",e.expanded),this.props.set("title",e.title),!0))}exportState(){return f2(()=>super.exportState(),{expanded:this.foldable.get("expanded"),title:this.props.get("title")})}onTitleClick_(){this.foldable.set("expanded",!this.foldable.get("expanded"))}}pM({id:"folder",type:"blade",accept(e){let t=f0(e,e=>({title:e.required.string,view:e.required.constant("folder"),expanded:e.optional.boolean}));return t?{params:t}:null},controller:e=>new pQ(e.document,{blade:e.blade,expanded:e.params.expanded,props:h4.fromObject({title:e.params.title}),viewProps:e.viewProps}),api:e=>e.controller instanceof pQ?new pY(e.controller,e.pool):null});let pJ=pc("");function p0(e,t){return px(e,pJ(void 0,t))}class p1 extends h4{constructor(e){var t;super(e),this.onDisabledChange_=this.onDisabledChange_.bind(this),this.onParentChange_=this.onParentChange_.bind(this),this.onParentGlobalDisabledChange_=this.onParentGlobalDisabledChange_.bind(this),[this.globalDisabled_,this.setGlobalDisabled_]=h5(h3(this.getGlobalDisabled_())),this.value("disabled").emitter.on("change",this.onDisabledChange_),this.value("parent").emitter.on("change",this.onParentChange_),null===(t=this.get("parent"))||void 0===t||t.globalDisabled.emitter.on("change",this.onParentGlobalDisabledChange_)}static create(e){var t,n,i;let r=null!=e?e:{};return new p1(h4.createCore({disabled:null!==(t=r.disabled)&&void 0!==t&&t,disposed:!1,hidden:null!==(n=r.hidden)&&void 0!==n&&n,parent:null!==(i=r.parent)&&void 0!==i?i:null}))}get globalDisabled(){return this.globalDisabled_}bindClassModifiers(e){po(this.globalDisabled_,p0(e,"disabled")),pl(this,"hidden",p0(e,"hidden"))}bindDisabled(e){po(this.globalDisabled_,t=>{e.disabled=t})}bindTabIndex(e){po(this.globalDisabled_,t=>{e.tabIndex=t?-1:0})}handleDispose(e){this.value("disposed").emitter.on("change",t=>{t&&e()})}importState(e){this.set("disabled",e.disabled),this.set("hidden",e.hidden)}exportState(){return{disabled:this.get("disabled"),hidden:this.get("hidden")}}getGlobalDisabled_(){let e=this.get("parent");return!!e&&e.globalDisabled.rawValue||this.get("disabled")}updateGlobalDisabled_(){this.setGlobalDisabled_(this.getGlobalDisabled_())}onDisabledChange_(){this.updateGlobalDisabled_()}onParentGlobalDisabledChange_(){this.updateGlobalDisabled_()}onParentChange_(e){var t;let n=e.previousRawValue;null==n||n.globalDisabled.emitter.off("change",this.onParentGlobalDisabledChange_),null===(t=this.get("parent"))||void 0===t||t.globalDisabled.emitter.on("change",this.onParentGlobalDisabledChange_),this.updateGlobalDisabled_()}}let p2=pc("tbp");class p3{constructor(e,t){this.element=e.createElement("div"),this.element.classList.add(p2()),t.viewProps.bindClassModifiers(this.element);let n=e.createElement("div");n.classList.add(p2("c")),this.element.appendChild(n),this.containerElement=n}}let p5=pc("tbi");class p4{constructor(e,t){this.element=e.createElement("div"),this.element.classList.add(p5()),t.viewProps.bindClassModifiers(this.element),pl(t.props,"selected",e=>{e?this.element.classList.add(p5(void 0,"sel")):this.element.classList.remove(p5(void 0,"sel"))});let n=e.createElement("button");n.classList.add(p5("b")),t.viewProps.bindDisabled(n),this.element.appendChild(n),this.buttonElement=n;let i=e.createElement("div");i.classList.add(p5("t")),pC(t.props.value("title"),i),this.buttonElement.appendChild(i),this.titleElement=i}}class p6{constructor(e,t){this.emitter=new hJ,this.onClick_=this.onClick_.bind(this),this.props=t.props,this.viewProps=t.viewProps,this.view=new p4(e,{props:t.props,viewProps:t.viewProps}),this.view.buttonElement.addEventListener("click",this.onClick_)}onClick_(){this.emitter.emit("click",{sender:this})}}class p8 extends pO{constructor(e,t){let n=new p3(e,{viewProps:t.viewProps});super(Object.assign(Object.assign({},t),{rackController:new pG({blade:t.blade,element:n.containerElement,viewProps:t.viewProps}),view:n})),this.onItemClick_=this.onItemClick_.bind(this),this.ic_=new p6(e,{props:t.itemProps,viewProps:p1.create()}),this.ic_.emitter.on("click",this.onItemClick_),this.props=t.props,pl(this.props,"selected",e=>{this.itemController.props.set("selected",e),this.viewProps.set("hidden",!e)})}get itemController(){return this.ic_}importState(e){return f1(e,e=>super.importState(e),e=>({selected:e.required.boolean,title:e.required.string}),e=>(this.ic_.props.set("selected",e.selected),this.ic_.props.set("title",e.title),!0))}exportState(){return f2(()=>super.exportState(),{selected:this.ic_.props.get("selected"),title:this.ic_.props.get("title")})}onItemClick_(){this.props.set("selected",!0)}}class p7 extends pF{constructor(e,t){super(e,t),this.emitter_=new hJ,this.onSelect_=this.onSelect_.bind(this),this.pool_=t,this.rackApi_.on("change",e=>{this.emitter_.emit("change",e)}),this.controller.tab.selectedIndex.emitter.on("change",this.onSelect_)}get pages(){return this.rackApi_.children}addPage(e){let t=new p8(this.controller.view.element.ownerDocument,{blade:pz(),itemProps:h4.fromObject({selected:!1,title:e.title}),props:h4.fromObject({selected:!1}),viewProps:p1.create()}),n=this.pool_.createApi(t);return this.rackApi_.add(n,e.index)}removePage(e){this.rackApi_.remove(this.rackApi_.children[e])}on(e,t){let n=t.bind(this);return this.emitter_.on(e,e=>{n(e)},{key:t}),this}off(e,t){return this.emitter_.off(e,t),this}onSelect_(e){this.emitter_.emit("select",new fq(this,e.rawValue))}}class p9 extends pF{get title(){var e;return null!==(e=this.controller.itemController.props.get("title"))&&void 0!==e?e:""}set title(e){this.controller.itemController.props.set("title",e)}get selected(){return this.controller.props.get("selected")}set selected(e){this.controller.props.set("selected",e)}get children(){return this.rackApi_.children}addButton(e){return this.rackApi_.addButton(e)}addFolder(e){return this.rackApi_.addFolder(e)}addTab(e){return this.rackApi_.addTab(e)}add(e,t){this.rackApi_.add(e,t)}remove(e){this.rackApi_.remove(e)}
244addBinding(e,t,n){return this.rackApi_.addBinding(e,t,n)}addBlade(e){return this.rackApi_.addBlade(e)}}let me=-1;class mt{constructor(){this.onItemSelectedChange_=this.onItemSelectedChange_.bind(this),this.empty=h3(!0),this.selectedIndex=h3(me),this.items_=[]}add(e,t){let n=null!=t?t:this.items_.length;this.items_.splice(n,0,e),e.emitter.on("change",this.onItemSelectedChange_),this.keepSelection_()}remove(e){let t=this.items_.indexOf(e);t<0||(this.items_.splice(t,1),e.emitter.off("change",this.onItemSelectedChange_),this.keepSelection_())}keepSelection_(){if(0===this.items_.length){this.selectedIndex.rawValue=me,this.empty.rawValue=!0;return}let e=this.items_.findIndex(e=>e.rawValue);e<0?(this.items_.forEach((e,t)=>{e.rawValue=0===t}),this.selectedIndex.rawValue=0):(this.items_.forEach((t,n)=>{t.rawValue=n===e}),this.selectedIndex.rawValue=e),this.empty.rawValue=!1}onItemSelectedChange_(e){if(e.rawValue){let t=this.items_.findIndex(t=>t===e.sender);this.items_.forEach((e,n)=>{e.rawValue=n===t}),this.selectedIndex.rawValue=t}else this.keepSelection_()}}let mn=pc("tab");class mi{constructor(e,t){this.element=e.createElement("div"),this.element.classList.add(mn(),pK()),t.viewProps.bindClassModifiers(this.element),po(t.empty,px(this.element,mn(void 0,"nop")));let n=e.createElement("div");n.classList.add(mn("t")),this.element.appendChild(n),this.itemsElement=n;let i=e.createElement("div");i.classList.add(mn("i")),this.element.appendChild(i);let r=e.createElement("div");r.classList.add(mn("c")),this.element.appendChild(r),this.contentsElement=r}}class mr extends pO{constructor(e,t){let n=new mt,i=new mi(e,{empty:n.empty,viewProps:t.viewProps});super({blade:t.blade,rackController:new pG({blade:t.blade,element:i.contentsElement,viewProps:t.viewProps}),view:i}),this.onRackAdd_=this.onRackAdd_.bind(this),this.onRackRemove_=this.onRackRemove_.bind(this);let r=this.rackController.rack;r.emitter.on("add",this.onRackAdd_),r.emitter.on("remove",this.onRackRemove_),this.tab=n}add(e,t){this.rackController.rack.add(e,t)}remove(e){this.rackController.rack.remove(this.rackController.rack.children[e])}onRackAdd_(e){if(!e.root)return;let t=e.bladeController;pn(this.view.itemsElement,t.itemController.view.element,e.index),t.itemController.viewProps.set("parent",this.viewProps),this.tab.add(t.props.value("selected"))}onRackRemove_(e){if(!e.root)return;let t=e.bladeController;pi(t.itemController.view.element),t.itemController.viewProps.set("parent",null),this.tab.remove(t.props.value("selected"))}}pM({id:"tab",type:"blade",accept(e){let t=f0(e,e=>({pages:e.required.array(e.required.object({title:e.required.string})),view:e.required.constant("tab")}));return t&&0!==t.pages.length?{params:t}:null},controller(e){let t=new mr(e.document,{blade:e.blade,viewProps:e.viewProps});return e.params.pages.forEach(n=>{let i=new p8(e.document,{blade:pz(),itemProps:h4.fromObject({selected:!1,title:n.title}),props:h4.fromObject({selected:!1}),viewProps:p1.create()});t.add(i)}),t},api:e=>e.controller instanceof mr?new p7(e.controller,e.pool):e.controller instanceof p8?new p9(e.controller,e.pool):null});class ma extends f${get options(){return this.controller.valueController.props.get("options")}set options(e){this.controller.valueController.props.set("options",e)}}class ms{constructor(e){this.constraints=e}constrain(e){return this.constraints.reduce((e,t)=>t.constrain(e),e)}}function mo(e,t){if(e instanceof t)return e;if(e instanceof ms){let n=e.constraints.reduce((e,n)=>e||(n instanceof t?n:null),null);if(n)return n}return null}class ml{constructor(e){this.values=h4.fromObject({options:e})}constrain(e){let t=this.values.get("options");return 0===t.length?e:t.filter(t=>t.value===e).length>0?e:t[0].value}}function mu(e){var t;let n=fJ;return Array.isArray(e)?null===(t=f0({items:e},e=>({items:e.required.array(e.required.object({text:e.required.string,value:e.required.raw}))})))||void 0===t?void 0:t.items:"object"==typeof e?n.required.raw(e).value:void 0}function mc(e){if(Array.isArray(e))return e;let t=[];return Object.keys(e).forEach(n=>{t.push({text:n,value:e[n]})}),t}function md(e){return hz(e)?null:new ml(mc(hG(e)))}let mh=pc("lst");class mf{constructor(e,t){this.onValueChange_=this.onValueChange_.bind(this),this.props_=t.props,this.element=e.createElement("div"),this.element.classList.add(mh()),t.viewProps.bindClassModifiers(this.element);let n=e.createElement("select");n.classList.add(mh("s")),t.viewProps.bindDisabled(n),this.element.appendChild(n),this.selectElement=n;let i=e.createElement("div");i.classList.add(mh("m")),i.appendChild(pt(e,"dropdown")),this.element.appendChild(i),t.value.emitter.on("change",this.onValueChange_),this.value_=t.value,pl(this.props_,"options",t=>{pr(this.selectElement),t.forEach(t=>{let n=e.createElement("option");n.textContent=t.text,this.selectElement.appendChild(n)}),this.update_()})}update_(){let e=this.props_.get("options").map(e=>e.value);this.selectElement.selectedIndex=e.indexOf(this.value_.rawValue)}onValueChange_(){this.update_()}}class mp{constructor(e,t){this.onSelectChange_=this.onSelectChange_.bind(this),this.props=t.props,this.value=t.value,this.viewProps=t.viewProps,this.view=new mf(e,{props:this.props,value:this.value,viewProps:this.viewProps}),this.view.selectElement.addEventListener("change",this.onSelectChange_)}onSelectChange_(e){let t=hG(e.currentTarget);this.value.rawValue=this.props.get("options")[t.selectedIndex].value}importProps(e){return f1(e,null,e=>({options:e.required.custom(mu)}),e=>(this.props.set("options",mc(e.options)),!0))}exportProps(){return f2(null,{options:this.props.get("options")})}}let mm=pc("pop");
244class mg{constructor(e,t){this.element=e.createElement("div"),this.element.classList.add(mm()),t.viewProps.bindClassModifiers(this.element),po(t.shows,px(this.element,mm(void 0,"v")))}}class mv{constructor(e,t){this.shows=h3(!1),this.viewProps=t.viewProps,this.view=new mg(e,{shows:this.shows,viewProps:this.viewProps})}}let my=pc("txt");class m_{constructor(e,t){this.onChange_=this.onChange_.bind(this),this.element=e.createElement("div"),this.element.classList.add(my()),t.viewProps.bindClassModifiers(this.element),this.props_=t.props,this.props_.emitter.on("change",this.onChange_);let n=e.createElement("input");n.classList.add(my("i")),n.type="text",t.viewProps.bindDisabled(n),this.element.appendChild(n),this.inputElement=n,t.value.emitter.on("change",this.onChange_),this.value_=t.value,this.refresh()}refresh(){let e=this.props_.get("formatter");this.inputElement.value=e(this.value_.rawValue)}onChange_(){this.refresh()}}class mb{constructor(e,t){this.onInputChange_=this.onInputChange_.bind(this),this.parser_=t.parser,this.props=t.props,this.value=t.value,this.viewProps=t.viewProps,this.view=new m_(e,{props:t.props,value:this.value,viewProps:this.viewProps}),this.view.inputElement.addEventListener("change",this.onInputChange_)}onInputChange_(e){let t=hG(e.currentTarget).value,n=this.parser_(t);hz(n)||(this.value.rawValue=n),this.view.refresh()}}function mx(e){return String(e)}function mC(e){return"false"!==e&&!!e}function mE(e){return mx(e)}function mw(e){return t=>e.reduce((e,n)=>null!==e?e:n(t),null)}let mT=fP(0);function mS(e){return mT(e)+"%"}function mL(e){return String(e)}function mP(e){return e}function mM({primary:e,secondary:t,forward:n,backward:i}){let r=!1;function a(e){r||(r=!0,e(),r=!1)}e.emitter.on("change",i=>{a(()=>{t.setRawValue(n(e.rawValue,t.rawValue),i.options)})}),t.emitter.on("change",r=>{a(()=>{e.setRawValue(i(e.rawValue,t.rawValue),r.options)}),a(()=>{t.setRawValue(n(e.rawValue,t.rawValue),r.options)})}),a(()=>{t.setRawValue(n(e.rawValue,t.rawValue),{forceEmit:!1,last:!0})})}function mA(e,t){let n=e*(t.altKey?.1:1)*(t.shiftKey?10:1);return t.upKey?+n:t.downKey?-n:0}function mI(e){return{altKey:e.altKey,downKey:"ArrowDown"===e.key,shiftKey:e.shiftKey,upKey:"ArrowUp"===e.key}}function mR(e){return{altKey:e.altKey,downKey:"ArrowLeft"===e.key,shiftKey:e.shiftKey,upKey:"ArrowRight"===e.key}}function mk(e){return"ArrowUp"===e||"ArrowDown"===e}function mD(e){return mk(e)||"ArrowLeft"===e||"ArrowRight"===e}function mN(e,t){var n,i;let r=t.ownerDocument.defaultView,a=t.getBoundingClientRect();return{x:e.pageX-((null!==(n=r&&r.scrollX)&&void 0!==n?n:0)+a.left),y:e.pageY-((null!==(i=r&&r.scrollY)&&void 0!==i?i:0)+a.top)}}class mF{constructor(e){this.lastTouch_=null,this.onDocumentMouseMove_=this.onDocumentMouseMove_.bind(this),this.onDocumentMouseUp_=this.onDocumentMouseUp_.bind(this),this.onMouseDown_=this.onMouseDown_.bind(this),this.onTouchEnd_=this.onTouchEnd_.bind(this),this.onTouchMove_=this.onTouchMove_.bind(this),this.onTouchStart_=this.onTouchStart_.bind(this),this.elem_=e,this.emitter=new hJ,e.addEventListener("touchstart",this.onTouchStart_,{passive:!1}),e.addEventListener("touchmove",this.onTouchMove_,{passive:!0}),e.addEventListener("touchend",this.onTouchEnd_),e.addEventListener("mousedown",this.onMouseDown_)}computePosition_(e){let t=this.elem_.getBoundingClientRect();return{bounds:{width:t.width,height:t.height},point:e?{x:e.x,y:e.y}:null}}onMouseDown_(e){var t;e.preventDefault(),null===(t=e.currentTarget)||void 0===t||t.focus();let n=this.elem_.ownerDocument;n.addEventListener("mousemove",this.onDocumentMouseMove_),n.addEventListener("mouseup",this.onDocumentMouseUp_),this.emitter.emit("down",{altKey:e.altKey,data:this.computePosition_(mN(e,this.elem_)),sender:this,shiftKey:e.shiftKey})}onDocumentMouseMove_(e){this.emitter.emit("move",{altKey:e.altKey,data:this.computePosition_(mN(e,this.elem_)),sender:this,shiftKey:e.shiftKey})}onDocumentMouseUp_(e){let t=this.elem_.ownerDocument;t.removeEventListener("mousemove",this.onDocumentMouseMove_),t.removeEventListener("mouseup",this.onDocumentMouseUp_),this.emitter.emit("up",{altKey:e.altKey,data:this.computePosition_(mN(e,this.elem_)),sender:this,shiftKey:e.shiftKey})}onTouchStart_(e){e.preventDefault();let t=e.targetTouches.item(0),n=this.elem_.getBoundingClientRect();this.emitter.emit("down",{altKey:e.altKey,data:this.computePosition_(t?{x:t.clientX-n.left,y:t.clientY-n.top}:void 0),sender:this,shiftKey:e.shiftKey}),this.lastTouch_=t}onTouchMove_(e){let t=e.targetTouches.item(0),n=this.elem_.getBoundingClientRect();this.emitter.emit("move",{altKey:e.altKey,data:this.computePosition_(t?{x:t.clientX-n.left,y:t.clientY-n.top}:void 0),sender:this,shiftKey:e.shiftKey}),this.lastTouch_=t}onTouchEnd_(e){var t;let n=null!==(t=e.targetTouches.item(0))&&void 0!==t?t:this.lastTouch_,i=this.elem_.getBoundingClientRect();this.emitter.emit("up",{altKey:e.altKey,data:this.computePosition_(n?{x:n.clientX-i.left,y:n.
244clientY-i.top}:void 0),sender:this,shiftKey:e.shiftKey})}}let mO=pc("txt");class mj{constructor(e,t){this.onChange_=this.onChange_.bind(this),this.props_=t.props,this.props_.emitter.on("change",this.onChange_),this.element=e.createElement("div"),this.element.classList.add(mO(),mO(void 0,"num")),t.arrayPosition&&this.element.classList.add(mO(void 0,t.arrayPosition)),t.viewProps.bindClassModifiers(this.element);let n=e.createElement("input");n.classList.add(mO("i")),n.type="text",t.viewProps.bindDisabled(n),this.element.appendChild(n),this.inputElement=n,this.onDraggingChange_=this.onDraggingChange_.bind(this),this.dragging_=t.dragging,this.dragging_.emitter.on("change",this.onDraggingChange_),this.element.classList.add(mO()),this.inputElement.classList.add(mO("i"));let i=e.createElement("div");i.classList.add(mO("k")),this.element.appendChild(i),this.knobElement=i;let r=e.createElementNS(f4,"svg");r.classList.add(mO("g")),this.knobElement.appendChild(r);let a=e.createElementNS(f4,"path");a.classList.add(mO("gb")),r.appendChild(a),this.guideBodyElem_=a;let s=e.createElementNS(f4,"path");s.classList.add(mO("gh")),r.appendChild(s),this.guideHeadElem_=s;let o=e.createElement("div");o.classList.add(pc("tt")()),this.knobElement.appendChild(o),this.tooltipElem_=o,t.value.emitter.on("change",this.onChange_),this.value=t.value,this.refresh()}onDraggingChange_(e){if(null===e.rawValue){this.element.classList.remove(mO(void 0,"drg"));return}this.element.classList.add(mO(void 0,"drg"));let t=e.rawValue/this.props_.get("pointerScale"),n=t+(t>0?-1:t<0?1:0),i=fI(-n,-4,4);this.guideHeadElem_.setAttributeNS(null,"d",`M ${n+i},0 L${n},4 L${n+i},8 M ${t},-1 L${t},9`),this.guideBodyElem_.setAttributeNS(null,"d",`M 0,4 L${t},4`);let r=this.props_.get("formatter");this.tooltipElem_.textContent=r(this.value.rawValue),this.tooltipElem_.style.left=`${t}px`}refresh(){let e=this.props_.get("formatter");this.inputElement.value=e(this.value.rawValue)}onChange_(){this.refresh()}}class mU{constructor(e,t){var n;this.originRawValue_=0,this.onInputChange_=this.onInputChange_.bind(this),this.onInputKeyDown_=this.onInputKeyDown_.bind(this),this.onInputKeyUp_=this.onInputKeyUp_.bind(this),this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.parser_=t.parser,this.props=t.props,this.sliderProps_=null!==(n=t.sliderProps)&&void 0!==n?n:null,this.value=t.value,this.viewProps=t.viewProps,this.dragging_=h3(null),this.view=new mj(e,{arrayPosition:t.arrayPosition,dragging:this.dragging_,props:this.props,value:this.value,viewProps:this.viewProps}),this.view.inputElement.addEventListener("change",this.onInputChange_),this.view.inputElement.addEventListener("keydown",this.onInputKeyDown_),this.view.inputElement.addEventListener("keyup",this.onInputKeyUp_);let i=new mF(this.view.knobElement);i.emitter.on("down",this.onPointerDown_),i.emitter.on("move",this.onPointerMove_),i.emitter.on("up",this.onPointerUp_)}constrainValue_(e){var t,n;let i=null===(t=this.sliderProps_)||void 0===t?void 0:t.get("min"),r=null===(n=this.sliderProps_)||void 0===n?void 0:n.get("max"),a=e;return void 0!==i&&(a=Math.max(a,i)),void 0!==r&&(a=Math.min(a,r)),a}onInputChange_(e){let t=hG(e.currentTarget).value,n=this.parser_(t);hz(n)||(this.value.rawValue=this.constrainValue_(n)),this.view.refresh()}onInputKeyDown_(e){let t=mA(this.props.get("keyScale"),mI(e));0!==t&&this.value.setRawValue(this.constrainValue_(this.value.rawValue+t),{forceEmit:!1,last:!1})}onInputKeyUp_(e){0!==mA(this.props.get("keyScale"),mI(e))&&this.value.setRawValue(this.value.rawValue,{forceEmit:!0,last:!0})}onPointerDown_(){this.originRawValue_=this.value.rawValue,this.dragging_.rawValue=0}computeDraggingValue_(e){if(!e.point)return null;let t=e.point.x-e.bounds.width/2;return this.constrainValue_(this.originRawValue_+t*this.props.get("pointerScale"))}onPointerMove_(e){let t=this.computeDraggingValue_(e.data);null!==t&&(this.value.setRawValue(t,{forceEmit:!1,last:!1}),this.dragging_.rawValue=this.value.rawValue-this.originRawValue_)}onPointerUp_(e){let t=this.computeDraggingValue_(e.data);null!==t&&(this.value.setRawValue(t,{forceEmit:!0,last:!0}),this.dragging_.rawValue=null)}}let mV=pc("sld");class mB{constructor(e,t){this.onChange_=this.onChange_.bind(this),this.props_=t.props,this.props_.emitter.on("change",this.onChange_),this.element=e.createElement("div"),this.element.classList.add(mV()),t.viewProps.bindClassModifiers(this.element);let n=e.createElement("div");n.classList.add(mV("t")),t.viewProps.bindTabIndex(n),this.element.appendChild(n),this.trackElement=n;let i=e.createElement("div");i.classList.add(mV("k")),this.trackElement.appendChild(i),this.knobElement=i,t.value.emitter.on("change",this.onChange_),this.value=t.value,this.update_()}update_(){let e=fI(fM(this.value.rawValue,this.props_.get("min"),this.props_.get("max"),0,100),0,100);this.knobElement.style.width=`${e}%`}onChange_(){this.update_()}}class mH{constructor(e,t){this.onKeyDown_=this.onKeyDown_.bind(this),this.onKeyUp_=this.onKeyUp_.bind(this),this.onPointerDownOrMove_=this.onPointerDownOrMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.value=t.value,this.viewProps=t.viewProps,this.props=t.props,this.view=new mB(e,{props:this.props,value:this.value,viewProps:this.viewProps}),this.ptHandler_=new mF(this.view.trackElement),this.ptHandler_.emitter.on("down",this.onPointerDownOrMove_),this.ptHandler_.emitter.on("move",this.onPointerDownOrMove_),this.ptHandler_.emitter.on("up",this.onPointerUp_),this.view.trackElement.addEventListener("keydown",this.onKeyDown_),this.view.trackElement.addEventListener("keyup",this.onKeyUp_)}handlePointerEvent_(e,t){e.point&&this.value.setRawValue(fM(fI(e.point.x,0,e.bounds.width),0,e.bounds.width,this.props.get("min"),this.props.get("max")),t)}onPointerDownOrMove_(e){this.handlePointerEvent_(e.data,{forceEmit:!1,last:!1})}onPointerUp_(e){this.handlePointerEvent_(e.data,{forceEmit:!0,last:!0})}onKeyDown_(e){let t=mA(this.props.get("keyScale"),mR(e));0!==t&&this.value.setRawValue(this.value.rawValue+t,{forceEmit:!1,last:!1})}onKeyUp_(e){0!==mA(this.props.get("keyScale"),mR(e))&&this.value.setRawValue(this.value.rawValue,{forceEmit:!0,last:!0})}}let mG=pc("sldtxt");class mz{constructor(e,t){this.element=e.createElement("div"),this.element.classList.add(mG());let n=e.createElement("div");n.classList.add(mG("s")),this.sliderView_=t.sliderView,n.appendChild(this.sliderView_.element),this.element.appendChild(n);let i=e.createElement("div");i.classList.add(mG("t")),this.textView_=t.textView,i.appendChild(this.textView_.element),this.element.appendChild(i)}}class mq{constructor(e,t){this.value=t.value,this.viewProps=t.viewProps,this.sliderC_=new mH(e,{props:t.sliderProps,value:t.value,viewProps:this.viewProps}),this.textC_=new mU(e,{parser:t.parser,props:t.textProps,sliderProps:t.sliderProps,value:t.value,viewProps:t.viewProps}),this.view=new mz(e,{sliderView:this.sliderC_.view,textView:this.textC_.view})}get sliderController(){return this.sliderC_}get textController(){return this.textC_}importProps(e){return f1(e,null,e=>({max:e.required.number,min:e.required.number}),e=>{let t=this.sliderC_.props;return t.set("max",e.max),t.set("min",e.min),!0})}exportProps(){let e=this.sliderC_.props;return f2(null,{max:e.get("max"),min:e.get("min")})}}function mW(e){return{sliderProps:new h4({keyScale:e.keyScale,max:e.max,min:e.min}),textProps:new h4({formatter:h3(e.formatter),keyScale:e.keyScale,pointerScale:h3(e.pointerScale)})}}let m$={containerUnitSize:"cnt-usz"};function mZ(e){return`--${m$[e]}`}function mY(e){return fU(e)}function mK(e){if(hW(e))return f0(e,mY)}
244function mX(e,t){if(!e)return;let n=[],i=fF(e,t);i&&n.push(i);let r=fO(e);return r&&n.push(r),new ms(n)}function mQ(e){if("inline"===e||"popup"===e)return e}function mJ(e,t){e.write(t)}let m0=pc("ckb");class m1{constructor(e,t){this.onValueChange_=this.onValueChange_.bind(this),this.element=e.createElement("div"),this.element.classList.add(m0()),t.viewProps.bindClassModifiers(this.element);let n=e.createElement("label");n.classList.add(m0("l")),this.element.appendChild(n),this.labelElement=n;let i=e.createElement("input");i.classList.add(m0("i")),i.type="checkbox",this.labelElement.appendChild(i),this.inputElement=i,t.viewProps.bindDisabled(this.inputElement);let r=e.createElement("div");r.classList.add(m0("w")),this.labelElement.appendChild(r);let a=pt(e,"check");r.appendChild(a),t.value.emitter.on("change",this.onValueChange_),this.value=t.value,this.update_()}update_(){this.inputElement.checked=this.value.rawValue}onValueChange_(){this.update_()}}class m2{constructor(e,t){this.onInputChange_=this.onInputChange_.bind(this),this.onLabelMouseDown_=this.onLabelMouseDown_.bind(this),this.value=t.value,this.viewProps=t.viewProps,this.view=new m1(e,{value:this.value,viewProps:this.viewProps}),this.view.inputElement.addEventListener("change",this.onInputChange_),this.view.labelElement.addEventListener("mousedown",this.onLabelMouseDown_)}onInputChange_(e){let t=hG(e.currentTarget);this.value.rawValue=t.checked,e.preventDefault(),e.stopPropagation()}onLabelMouseDown_(e){e.preventDefault()}}function m3(e){let t=[],n=md(e.options);return n&&t.push(n),new ms(t)}pM({id:"input-bool",type:"input",accept:(e,t)=>{if("boolean"!=typeof e)return null;let n=f0(t,e=>({options:e.optional.custom(mu),readonly:e.optional.constant(!1)}));return n?{initialValue:e,params:n}:null},binding:{reader:e=>mC,constraint:e=>m3(e.params),writer:e=>mJ},controller:e=>{let t=e.document,n=e.value,i=e.constraint,r=i&&mo(i,ml);return r?new mp(t,{props:new h4({options:r.values.value("options")}),value:n,viewProps:e.viewProps}):new m2(t,{value:n,viewProps:e.viewProps})},api:e=>"boolean"!=typeof e.controller.value.rawValue?null:e.controller.valueController instanceof mp?new ma(e.controller):null});let m5=pc("col");class m4{constructor(e,t){this.element=e.createElement("div"),this.element.classList.add(m5()),t.foldable.bindExpandedClass(this.element,m5(void 0,"expanded")),pl(t.foldable,"completed",px(this.element,m5(void 0,"cpl")));let n=e.createElement("div");n.classList.add(m5("h")),this.element.appendChild(n);let i=e.createElement("div");i.classList.add(m5("s")),n.appendChild(i),this.swatchElement=i;let r=e.createElement("div");if(r.classList.add(m5("t")),n.appendChild(r),this.textElement=r,"inline"===t.pickerLayout){let t=e.createElement("div");t.classList.add(m5("p")),this.element.appendChild(t),this.pickerElement=t}else this.pickerElement=null}}function m6(e,t,n){let i,r,a;let s=fR(e,360),o=fI(t/100,0,1),l=fI(n/100,0,1),u=l*o,c=u*(1-Math.abs(s/60%2-1)),d=l-u;return s>=0&&s<60?[i,r,a]=[u,c,0]:s>=60&&s<120?[i,r,a]=[c,u,0]:s>=120&&s<180?[i,r,a]=[0,u,c]:s>=180&&s<240?[i,r,a]=[0,c,u]:s>=240&&s<300?[i,r,a]=[c,0,u]:[i,r,a]=[u,0,c],[(i+d)*255,(r+d)*255,(a+d)*255]}function m8(e){return[e[0],e[1],e[2]]}function m7(e,t){return[e[0],e[1],e[2],t]}let m9={hsl:{hsl:(e,t,n)=>[e,t,n],hsv:function(e,t,n){let i=n+t*(100-Math.abs(2*n-100))/200;return[e,0!==i?t*(100-Math.abs(2*n-100))/i:0,n+t*(100-Math.abs(2*n-100))/200]},rgb:function(e,t,n){let i,r,a;let s=(e%360+360)%360,o=fI(t/100,0,1),l=fI(n/100,0,1),u=(1-Math.abs(2*l-1))*o,c=u*(1-Math.abs(s/60%2-1)),d=l-u/2;return s>=0&&s<60?[i,r,a]=[u,c,0]:s>=60&&s<120?[i,r,a]=[c,u,0]:s>=120&&s<180?[i,r,a]=[0,u,c]:s>=180&&s<240?[i,r,a]=[0,c,u]:s>=240&&s<300?[i,r,a]=[c,0,u]:[i,r,a]=[u,0,c],[(i+d)*255,(r+d)*255,(a+d)*255]}},hsv:{hsl:function(e,t,n){let i=100-Math.abs(n*(200-t)/100-100);return[e,0!==i?t*n/i:0,n*(200-t)/200]},hsv:(e,t,n)=>[e,t,n],rgb:m6},rgb:{hsl:function(e,t,n){let i=fI(e/255,0,1),r=fI(t/255,0,1),a=fI(n/255,0,1),s=Math.max(i,r,a),o=Math.min(i,r,a),l=s-o,u=0,c=0,d=(o+s)/2;return 0!==l&&(c=l/(1-Math.abs(s+o-1)),u=(u=i===s?(r-a)/l:r===s?2+(a-i)/l:4+(i-r)/l)/6+(u<0?1:0)),[360*u,100*c,100*d]},hsv:function(e,t,n){let i;let r=fI(e/255,0,1),a=fI(t/255,0,1),s=fI(n/255,0,1),o=Math.max(r,a,s),l=o-Math.min(r,a,s);return[i=0===l?0:o===r?((a-s)/l%6+6)%6*60:o===a?60*((s-r)/l+2):60*((r-a)/l+4),100*(0===o?0:l/o),100*o]},rgb:(e,t,n)=>[e,t,n]}};function ge(e,t){return["float"===t?1:"rgb"===e?255:360,"float"===t?1:"rgb"===e?255:100,"float"===t?1:"rgb"===e?255:100]}function gt(e,t){return e===t?t:fR(e,t)}function gn(e,t,n){var i;let r=ge(t,n);return["rgb"===t?fI(e[0],0,r[0]):gt(e[0],r[0]),fI(e[1],0,r[1]),fI(e[2],0,r[2]),fI(null!==(i=e[3])&&void 0!==i?i:1,0,1)]}function gi(e,t,n,i){let r=ge(t,n),a=ge(t,i);return e.map((e,t)=>e/r[t]*a[t])}function gr(e,t,n){let i=gi(e,t.mode,t.type,"int");return gi(m9[t.mode][n.mode](...i),n.mode,"int",n.type)}class ga{static black(){return new ga([0,0,0],"rgb")}constructor(e,t){this.type="int",this.mode=t,this.comps_=gn(e,t,this.type)}getComponents(e){return m7(gr(m8(this.comps_),{mode:this.mode,type:this.t
244ype},{mode:null!=e?e:this.mode,type:this.type}),this.comps_[3])}toRgbaObject(){let e=this.getComponents("rgb");return{r:e[0],g:e[1],b:e[2],a:e[3]}}}let gs=pc("colp");class go{constructor(e,t){this.alphaViews_=null,this.element=e.createElement("div"),this.element.classList.add(gs()),t.viewProps.bindClassModifiers(this.element);let n=e.createElement("div");n.classList.add(gs("hsv"));let i=e.createElement("div");i.classList.add(gs("sv")),this.svPaletteView_=t.svPaletteView,i.appendChild(this.svPaletteView_.element),n.appendChild(i);let r=e.createElement("div");r.classList.add(gs("h")),this.hPaletteView_=t.hPaletteView,r.appendChild(this.hPaletteView_.element),n.appendChild(r),this.element.appendChild(n);let a=e.createElement("div");if(a.classList.add(gs("rgb")),this.textsView_=t.textsView,a.appendChild(this.textsView_.element),this.element.appendChild(a),t.alphaViews){this.alphaViews_={palette:t.alphaViews.palette,text:t.alphaViews.text};let n=e.createElement("div");n.classList.add(gs("a"));let i=e.createElement("div");i.classList.add(gs("ap")),i.appendChild(this.alphaViews_.palette.element),n.appendChild(i);let r=e.createElement("div");r.classList.add(gs("at")),r.appendChild(this.alphaViews_.text.element),n.appendChild(r),this.element.appendChild(n)}}get allFocusableElements(){let e=[this.svPaletteView_.element,this.hPaletteView_.element,this.textsView_.modeSelectElement,...this.textsView_.inputViews.map(e=>e.inputElement)];return this.alphaViews_&&e.push(this.alphaViews_.palette.element,this.alphaViews_.text.inputElement),e}}function gl(e){return"int"===e?"int":"float"===e?"float":void 0}function gu(e){return f0(e,e=>({color:e.optional.object({alpha:e.optional.boolean,type:e.optional.custom(gl)}),expanded:e.optional.boolean,picker:e.optional.custom(mQ),readonly:e.optional.constant(!1)}))}function gc(e){return e?.1:1}function gd(e){var t;return null===(t=e.color)||void 0===t?void 0:t.type}class gh{constructor(e,t){this.type="float",this.mode=t,this.comps_=gn(e,t,this.type)}getComponents(e){return m7(gr(m8(this.comps_),{mode:this.mode,type:this.type},{mode:null!=e?e:this.mode,type:this.type}),this.comps_[3])}toRgbaObject(){let e=this.getComponents("rgb");return{r:e[0],g:e[1],b:e[2],a:e[3]}}}let gf={int:(e,t)=>
244new ga(e,t),float:(e,t)=>new gh(e,t)};function gp(e,t,n){return gf[n](e,t)}function gm(e){return"float"===e.type}function gg(e){return"int"===e.type}function gv(e){let t=e.getComponents(),n=ge(e.mode,"int");return new ga([Math.round(fM(t[0],0,1,0,n[0])),Math.round(fM(t[1],0,1,0,n[1])),Math.round(fM(t[2],0,1,0,n[2])),t[3]],e.mode)}function gy(e){let t=e.getComponents(),n=ge(e.mode,"int");return new gh([fM(t[0],0,n[0],0,1),fM(t[1],0,n[1],0,1),fM(t[2],0,n[2],0,1),t[3]],e.mode)}function g_(e,t){if(e.type===t)return e;if(gg(e)&&"float"===t)return gy(e);if(gm(e)&&"int"===t)return gv(e);throw hX.shouldNeverHappen()}function gb(e,t){return e.alpha===t.alpha&&e.mode===t.mode&&e.notation===t.notation&&e.type===t.type}function gx(e,t){let n=e.match(/^(.+)%$/);return n?Math.min(.01*parseFloat(n[1])*t,t):Math.min(parseFloat(e),t)}let gC={deg:e=>e,grad:e=>360*e/400,rad:e=>360*e/(2*Math.PI),turn:e=>360*e};function gE(e){let t=e.match(/^([0-9.]+?)(deg|grad|rad|turn)$/);if(!t)return parseFloat(e);let n=parseFloat(t[1]);return gC[t[2]](n)}function gw(e){let t=e.match(/^rgb\(\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*\)$/);if(!t)return null;let n=[gx(t[1],255),gx(t[2],255),gx(t[3],255)];return isNaN(n[0])||isNaN(n[1])||isNaN(n[2])?null:n}function gT(e){let t=gw(e);return t?new ga(t,"rgb"):null}function gS(e){let t=e.match(/^rgba\(\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*\)$/);if(!t)return null;let n=[gx(t[1],255),gx(t[2],255),gx(t[3],255),gx(t[4],1)];return isNaN(n[0])||isNaN(n[1])||isNaN(n[2])||isNaN(n[3])?null:n}function gL(e){let t=gS(e);return t?new ga(t,"rgb"):null}function gP(e){let t=e.match(/^hsl\(\s*([0-9A-Fa-f.]+(?:deg|grad|rad|turn)?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*\)$/);if(!t)return null;let n=[gE(t[1]),gx(t[2],100),gx(t[3],100)];return isNaN(n[0])||isNaN(n[1])||isNaN(n[2])?null:n}function gM(e){let t=gP(e);return t?new ga(t,"hsl"):null}function gA(e){let t=e.match(/^hsla\(\s*([0-9A-Fa-f.]+(?:deg|grad|rad|turn)?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*\)$/);if(!t)return null;let n=[gE(t[1]),gx(t[2],100),gx(t[3],100),gx(t[4],1)];return isNaN(n[0])||isNaN(n[1])||isNaN(n[2])||isNaN(n[3])?null:n}function gI(e){let t=gA(e);return t?new ga(t,"hsl"):null}function gR(e){let t=e.match(/^#([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])$/);if(t)return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)];let n=e.match(/^(?:#|0x)([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})$/);return n?[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]:null}function gk(e){let t=gR(e);return t?new ga(t,"rgb"):null}function gD(e){let t=e.match(/^#([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])$/);if(t)return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16),fM(parseInt(t[4]+t[4],16),0,255,0,1)];let n=e.match(/^(?:#|0x)?([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})$/);return n?[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16),fM(parseInt(n[4],16),0,255,0,1)]:null}function gN(e){let t=gD(e);return t?new ga(t,"rgb"):null}function gF(e){let t=e.match(/^\{\s*r\s*:\s*([0-9A-Fa-f.]+%?)\s*,\s*g\s*:\s*([0-9A-Fa-f.]+%?)\s*,\s*b\s*:\s*([0-9A-Fa-f.]+%?)\s*\}$/);if(!t)return null;let n=[parseFloat(t[1]),parseFloat(t[2]),parseFloat(t[3])];return isNaN(n[0])||isNaN(n[1])||isNaN(n[2])?null:n}function gO(e){return t=>{let n=gF(t);return n?gp(n,"rgb",e):null}}function gj(e){let t=e.match(/^\{\s*r\s*:\s*([0-9A-Fa-f.]+%?)\s*,\s*g\s*:\s*([0-9A-Fa-f.]+%?)\s*,\s*b\s*:\s*([0-9A-Fa-f.]+%?)\s*,\s*a\s*:\s*([0-9A-Fa-f.]+%?)\s*\}$/);if(!t)return null;let n=[parseFloat(t[1]),parseFloat(t[2]),parseFloat(t[3]),parseFloat(t[4])];return isNaN(n[0])||isNaN(n[1])||isNaN(n[2])||isNaN(n[3])?null:n}function gU(e){return t=>{let n=gj(t);return n?gp(n,"rgb",e):null}}let gV=[{parser:gR,result:{alpha:!1,mode:"rgb",notation:"hex"}},{parser:gD,result:{alpha:!0,mode:"rgb",notation:"hex"}},{parser:gw,result:{alpha:!1,mode:"rgb",notation:"func"}},{parser:gS,result:{alpha:!0,mode:"rgb",notation:"func"}},{parser:gP,result:{alpha:!1,mode:"hsl",notation:"func"}},{parser:gA,result:{alpha:!0,mode:"hsl",notation:"func"}},{parser:gF,result:{alpha:!1,mode:"rgb",notation:"object"}},{parser:gj,result:{alpha:!0,mode:"rgb",notation:"object"}}];function gB(e){return gV.reduce((t,{parser:n,result:i})=>t||(n(e)?i:null),null)}function gH(e,t="int"){let n=gB(e);return n?"hex"===n.notation&&"float"!==t?Object.assign(Object.assign({},n),{type:"int"}):"func"===n.notation?Object.assign(Object.assign({},n),{type:t}):null:null}function gG(e){let t=[gk,gN,gT,gL,gM,gI];"int"===e&&t.push(gO("int"),gU("int")),"float"===e&&t.push(gO("float"),gU("float"));let n=mw(t);return t=>{let i=n(t);return i?g_(i,e):null}}function gz(e){let t=gG("int");if("string"!=typeof e)return ga.black();let n=t(e);return null!=n?n:ga.black()}function gq(e){let t=fI(Math.floor(e),0,255).toString(16);return 1===t.length?`0${t}`:t}function gW(e,t="#"){let n=m8(e.getComponents("rgb")).map(gq).join("");return`${t}${n}`}function g$(e,t="#"){let n=e.getComponents("rgb"),i=[n[0],n[1],n[2],255*n[3]].map(gq).join("");return`${t}${i}`}function gZ(e){let t=fP(0),n=m8(g_(e,"int").getComponents("rgb")).map(e=>t(e));return`rgb(${n.join(", ")})`}
244function gY(e){let t=fP(2),n=fP(0),i=g_(e,"int").getComponents("rgb").map((e,i)=>(3===i?t:n)(e));return`rgba(${i.join(", ")})`}function gK(e,t){let n=fP("float"===t?2:0),i=["r","g","b"],r=m8(g_(e,t).getComponents("rgb")).map((e,t)=>`${i[t]}: ${n(e)}`);return`{${r.join(", ")}}`}function gX(e){return t=>gK(t,e)}function gQ(e,t){let n=fP(2),i=fP("float"===t?2:0),r=["r","g","b","a"],a=g_(e,t).getComponents("rgb").map((e,t)=>{let a=3===t?n:i;return`${r[t]}: ${a(e)}`});return`{${a.join(", ")}}`}function gJ(e){return t=>gQ(t,e)}let g0=[{format:{alpha:!1,mode:"rgb",notation:"hex",type:"int"},stringifier:gW},{format:{alpha:!0,mode:"rgb",notation:"hex",type:"int"},stringifier:g$},{format:{alpha:!1,mode:"rgb",notation:"func",type:"int"},stringifier:gZ},{format:{alpha:!0,mode:"rgb",notation:"func",type:"int"},stringifier:gY},{format:{alpha:!1,mode:"hsl",notation:"func",type:"int"},stringifier:function(e){let t=[fP(0),mS,mS],n=m8(g_(e,"int").getComponents("hsl")).map((e,n)=>t[n](e));return`hsl(${n.join(", ")})`}},{format:{alpha:!0,mode:"hsl",notation:"func",type:"int"},stringifier:function(e){let t=[fP(0),mS,mS,fP(2)],n=g_(e,"int").getComponents("hsl").map((e,n)=>t[n](e));return`hsla(${n.join(", ")})`}}
244,...["int","float"].reduce((e,t)=>[...e,{format:{alpha:!1,mode:"rgb",notation:"object",type:t},stringifier:gX(t)},{format:{alpha:!0,mode:"rgb",notation:"object",type:t},stringifier:gJ(t)}],[])];function g1(e){return g0.reduce((t,n)=>t||(gb(n.format,e)?n.stringifier:null),null)}let g2=pc("apl");class g3{constructor(e,t){this.onValueChange_=this.onValueChange_.bind(this),this.value=t.value,this.value.emitter.on("change",this.onValueChange_),this.element=e.createElement("div"),this.element.classList.add(g2()),t.viewProps.bindClassModifiers(this.element),t.viewProps.bindTabIndex(this.element);let n=e.createElement("div");n.classList.add(g2("b")),this.element.appendChild(n);let i=e.createElement("div");i.classList.add(g2("c")),n.appendChild(i),this.colorElem_=i;let r=e.createElement("div");r.classList.add(g2("m")),this.element.appendChild(r),this.markerElem_=r;let a=e.createElement("div");a.classList.add(g2("p")),this.markerElem_.appendChild(a),this.previewElem_=a,this.update_()}update_(){let e=this.value.rawValue,t=e.getComponents("rgb"),n=new ga([t[0],t[1],t[2],0],"rgb"),i=new ga([t[0],t[1],t[2],255],"rgb"),r=["to right",gY(n),gY(i)];this.colorElem_.style.background=`linear-gradient(${r.join(",")})`,this.previewElem_.style.backgroundColor=gY(e);let a=fM(t[3],0,1,0,100);this.markerElem_.style.left=`${a}%`}onValueChange_(){this.update_()}}class g5{constructor(e,t){this.onKeyDown_=this.onKeyDown_.bind(this),this.onKeyUp_=this.onKeyUp_.bind(this),this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.value=t.value,this.viewProps=t.viewProps,this.view=new g3(e,{value:this.value,viewProps:this.viewProps}),this.ptHandler_=new mF(this.view.element),this.ptHandler_.emitter.on("down",this.onPointerDown_),this.ptHandler_.emitter.on("move",this.onPointerMove_),this.ptHandler_.emitter.on("up",this.onPointerUp_),this.view.element.addEventListener("keydown",this.onKeyDown_),this.view.element.addEventListener("keyup",this.onKeyUp_)}handlePointerEvent_(e,t){if(!e.point)return;let n=e.point.x/e.bounds.width,[i,r,a]=this.value.rawValue.getComponents("hsv");this.value.setRawValue(new ga([i,r,a,n],"hsv"),t)}onPointerDown_(e){this.handlePointerEvent_(e.data,{forceEmit:!1,last:!1})}onPointerMove_(e){this.handlePointerEvent_(e.data,{forceEmit:!1,last:!1})}onPointerUp_(e){this.handlePointerEvent_(e.data,{forceEmit:!0,last:!0})}onKeyDown_(e){let t=mA(gc(!0),mR(e));if(0===t)return;let[n,i,r,a]=this.value.rawValue.getComponents("hsv");this.value.setRawValue(new ga([n,i,r,a+t],"hsv"),{forceEmit:!1,last:!1})}onKeyUp_(e){0!==mA(gc(!0),mR(e))&&this.value.setRawValue(this.value.rawValue,{forceEmit:!0,last:!0})}}let g4=pc("coltxt");function g6(e){let t=e.createElement("select"),n=[{text:"RGB",value:"rgb"},{text:"HSL",value:"hsl"},{text:"HSV",value:"hsv"},{text:"HEX",value:"hex"}];return t.appendChild(n.reduce((t,n)=>{let i=e.createElement("option");return i.textContent=n.text,i.value=n.value,t.appendChild(i),t},e.createDocumentFragment())),t}class g8{constructor(e,t){this.element=e.createElement("div"),this.element.classList.add(g4()),t.viewProps.bindClassModifiers(this.element);let n=e.createElement("div");n.classList.add(g4("m")),this.modeElem_=g6(e),this.modeElem_.classList.add(g4("ms")),n.appendChild(this.modeSelectElement),t.viewProps.bindDisabled(this.modeElem_);let i=e.createElement("div");i.classList.add(g4("mm")),i.appendChild(pt(e,"dropdown")),n.appendChild(i),this.element.appendChild(n);let r=e.createElement("div");r.classList.add(g4("w")),this.element.appendChild(r),this.inputsElem_=r,this.inputViews_=t.inputViews,this.applyInputViews_(),po(t.mode,e=>{this.modeElem_.value=e})}get modeSelectElement(){return this.modeElem_}get inputViews(){return this.inputViews_}set inputViews(e){this.inputViews_=e,this.applyInputViews_()}applyInputViews_(){pr(this.inputsElem_);let e=this.element.ownerDocument;this.inputViews_.forEach(t=>{let n=e.createElement("div");n.classList.add(g4("c")),n.appendChild(t.element),this.inputsElem_.appendChild(n)})}}function g7(e){return fP("float"===e?2:0)}function g9(e,t,n){return new h6({min:0,max:ge(e,t)[n]})}function ve(e,t,n){return new mU(e,{arrayPosition:0===n?"fst":2===n?"lst":"mid",parser:t.parser,props:h4.fromObject({formatter:g7(t.colorType),keyScale:gc(!1),pointerScale:"float"===t.colorType?.01:1}),value:h3(0,{constraint:g9(t.colorMode,t.colorType,n)}),viewProps:t.viewProps})}function vt(e,t){let n={colorMode:t.colorMode,colorType:t.colorType,parser:fS,viewProps:t.viewProps};return[0,1,2].map(i=>{let r=ve(e,n,i);return mM({primary:t.value,secondary:r.value,forward:e=>g_(e,t.colorType).getComponents(t.colorMode)[i],backward(e,n){let r=t.colorMode,a=g_(e,t.colorType).getComponents(r);return a[i]=n,g_(gp(m7(m8(a),a[3]),r,t.colorType),"int")}}),r})}function vn(e,t){let n=new mb(e,{parser:gG("int"),props:h4.fromObject({formatter:gW}),value:h3(ga.black()),viewProps:t.viewProps});return mM({primary:t.value,secondary:n.value,forward:e=>new ga(m8(e.getComponents()),e.mode),backward:(e,t)=>new ga(m7(m8(t.getComponents(e.mode)),e.getComponents()[3]),e.mode)}),[n]}function vi(e){return"hex"!==e}class vr{constructor(e,t){this.onModeSelectChange_=this.onModeSelectChange_.bind(this),this.colorType_=t.colorType,this.value=t.value,this.viewProps=t.viewProps,this.colorMode=h3(this.value.rawValue.mode),this.ccs_=this.createComponentControllers_(e),this.view=new g8(e,{mode:this.colorMode,inputVie
244ws:[this.ccs_[0].view,this.ccs_[1].view,this.ccs_[2].view],viewProps:this.viewProps}),this.view.modeSelectElement.addEventListener("change",this.onModeSelectChange_)}createComponentControllers_(e){let t=this.colorMode.rawValue;return vi(t)?vt(e,{colorMode:t,colorType:this.colorType_,value:this.value,viewProps:this.viewProps}):vn(e,{value:this.value,viewProps:this.viewProps})}onModeSelectChange_(e){let t=e.currentTarget;this.colorMode.rawValue=t.value,this.ccs_=this.createComponentControllers_(this.view.element.ownerDocument),this.view.inputViews=this.ccs_.map(e=>e.view)}}let va=pc("hpl");class vs{constructor(e,t){this.onValueChange_=this.onValueChange_.bind(this),this.value=t.value,this.value.emitter.on("change",this.onValueChange_),this.element=e.createElement("div"),this.element.classList.add(va()),t.viewProps.bindClassModifiers(this.element),t.viewProps.bindTabIndex(this.element);let n=e.createElement("div");n.classList.add(va("c")),this.element.appendChild(n);let i=e.createElement("div");i.classList.add(va("m")),this.element.appendChild(i),this.markerElem_=i,this.update_()}update_(){let[e]=this.value.rawValue.getComponents("hsv");this.markerElem_.style.backgroundColor=gZ(new ga([e,100,100],"hsv"));let t=fM(e,0,360,0,100);this.markerElem_.style.left=`${t}%`}onValueChange_(){this.update_()}}class vo{constructor(e,t){this.onKeyDown_=this.onKeyDown_.bind(this),this.onKeyUp_=this.onKeyUp_.bind(this),this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.value=t.value,this.viewProps=t.viewProps,this.view=new vs(e,{value:this.value,viewProps:this.viewProps}),this.ptHandler_=new mF(this.view.element),this.ptHandler_.emitter.on("down",this.onPointerDown_),this.ptHandler_.emitter.on("move",this.onPointerMove_),this.ptHandler_.emitter.on("up",this.onPointerUp_),this.view.element.addEventListener("keydown",this.onKeyDown_),this.view.element.addEventListener("keyup",this.onKeyUp_)}handlePointerEvent_(e,t){if(!e.point)return;let n=fM(fI(e.point.x,0,e.bounds.width),0,e.bounds.width,0,360),[,i,r,a]=this.value.rawValue.getComponents("hsv");this.value.setRawValue(new ga([n,i,r,a],"hsv"),t)}onPointerDown_(e){this.handlePointerEvent_(e.data,{forceEmit:!1,last:!1})}onPointerMove_(e){this.handlePointerEvent_(e.data,{forceEmit:!1,last:!1})}onPointerUp_(e){this.handlePointerEvent_(e.data,{forceEmit:!0,last:!0})}onKeyDown_(e){let t=mA(gc(!1),mR(e));if(0===t)return;let[n,i,r,a]=this.value.rawValue.getComponents("hsv");this.value.setRawValue(new ga([n+t,i,r,a],"hsv"),{forceEmit:!1,last:!1})}onKeyUp_(e){0!==mA(gc(!1),mR(e))&&this.value.setRawValue(this.value.rawValue,{forceEmit:!0,last:!0})}}let vl=pc("svp"),vu=64;class vc{constructor(e,t){this.onValueChange_=this.onValueChange_.bind(this),this.value=t.value,this.value.emitter.on("change",this.onValueChange_),this.element=e.createElement("div"),this.element.classList.add(vl()),t.viewProps.bindClassModifiers(this.element),t.viewProps.bindTabIndex(this.element);let n=e.createElement("canvas");n.height=vu,n.width=vu,n.classList.add(vl("c")),this.element.appendChild(n),this.canvasElement=n;let i=e.createElement("div");i.classList.add(vl("m")),this.element.appendChild(i),this.markerElem_=i,this.update_()}update_(){let e=f9(this.canvasElement);if(!e)return;let t=this.value.rawValue.getComponents("hsv"),n=this.canvasElement.width,i=this.canvasElement.height,r=e.getImageData(0,0,n,i),a=r.data;for(let e=0;e<i;e++)for(let r=0;r<n;r++){let s=fM(r,0,n,0,100),o=fM(e,0,i,100,0),l=m6(t[0],s,o),u=(e*n+r)*4;a[u]=l[0],a[u+1]=l[1],a[u+2]=l[2],a[u+3]=255}e.putImageData(r,0,0);let s=fM(t[1],0,100,0,100);this.markerElem_.style.left=`${s}%`;let o=fM(t[2],0,100,100,0);this.markerElem_.style.top=`${o}%`}onValueChange_(){this.update_()}}class vd{constructor(e,t){this.onKeyDown_=this.onKeyDown_.bind(this),this.onKeyUp_=this.onKeyUp_.bind(this),this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.value=t.value,this.viewProps=t.viewProps,this.view=new vc(e,{value:this.value,viewProps:this.viewProps}),this.ptHandler_=new mF(this.view.element),this.ptHandler_.emitter.on("down",this.onPointerDown_),this.ptHandler_.emitter.on("move",this.onPointerMove_),this.ptHandler_.emitter.on("up",this.onPointerUp_),this.view.element.addEventListener("keydown",this.onKeyDown_),this.view.element.addEventListener("keyup",this.onKeyUp_)}handlePointerEvent_(e,t){if(!e.point)return;let n=fM(e.point.x,0,e.bounds.width,0,100),i=fM(e.point.y,0,e.bounds.height,100,0),[r,,,a]=this.value.rawValue.getComponents("hsv");this.value.setRawValue(new ga([r,n,i,a],"hsv"),t)}onPointerDown_(e){this.handlePointerEvent_(e.data,{forceEmit:!1,last:!1})}onPointerMove_(e){this.handlePointerEvent_(e.data,{forceEmit:!1,last:!1})}onPointerUp_(e){this.handlePointerEvent_(e.data,{forceEmit:!0,last:!0})}onKeyDown_(e){mD(e.key)&&e.preventDefault();let[t,n,i,r]=this.value.rawValue.getComponents("hsv"),a=gc(!1),s=mA(a,mR(e)),o=mA(a,mI(e));(0!==s||0!==o)&&this.value.setRawValue(new ga([t,n+s,i+o,r],"hsv"),{forceEmit:!1,last:!1})}onKeyUp_(e){let t=gc(!1),n=mA(t,mR(e)),i=mA(t,mI(e));(0!==n||0!==i)&&this.value.setRawValue(this.value.rawValue,{forceEmit:!0,last:!0})}}class vh{constructor(e,t){this.value=t.value,this.viewProps=t.viewProps,this.hPaletteC_=new vo(e,{value:this.value,viewProps:this.viewProps}),this.svPaletteC_=new vd(e,{value:this.value,viewProps:this.viewProps}
244),this.alphaIcs_=t.supportsAlpha?{palette:new g5(e,{value:this.value,viewProps:this.viewProps}),text:new mU(e,{parser:fS,props:h4.fromObject({pointerScale:.01,keyScale:.1,formatter:fP(2)}),value:h3(0,{constraint:new h6({min:0,max:1})}),viewProps:this.viewProps})}:null,this.alphaIcs_&&mM({primary:this.value,secondary:this.alphaIcs_.text.value,forward:e=>e.getComponents()[3],backward:(e,t)=>{let n=e.getComponents();return n[3]=t,new ga(n,e.mode)}}),this.textsC_=new vr(e,{colorType:t.colorType,value:this.value,viewProps:this.viewProps}),this.view=new go(e,{alphaViews:this.alphaIcs_?{palette:this.alphaIcs_.palette.view,text:this.alphaIcs_.text.view}:null,hPaletteView:this.hPaletteC_.view,supportsAlpha:t.supportsAlpha,svPaletteView:this.svPaletteC_.view,textsView:this.textsC_.view,viewProps:this.viewProps})}get textsController(){return this.textsC_}}let vf=pc("colsw");class vp{constructor(e,t){this.onValueChange_=this.onValueChange_.bind(this),t.value.emitter.on("change",this.onValueChange_),this.value=t.value,this.element=e.createElement("div"),this.element.classList.add(vf()),t.viewProps.bindClassModifiers(this.element);let n=e.createElement("div");n.classList.add(vf("sw")),this.element.appendChild(n),this.swatchElem_=n;let i=e.createElement("button");i.classList.add(vf("b")),t.viewProps.bindDisabled(i),this.element.appendChild(i),this.buttonElement=i,this.update_()}update_(){let e=this.value.rawValue;this.swatchElem_.style.backgroundColor=g$(e)}onValueChange_(){this.update_()}}class vm{constructor(e,t){this.value=t.value,this.viewProps=t.viewProps,this.view=new vp(e,{value:this.value,viewProps:this.viewProps})}}class vg{constructor(e,t){this.onButtonBlur_=this.onButtonBlur_.bind(this),this.onButtonClick_=this.onButtonClick_.bind(this),this.onPopupChildBlur_=this.onPopupChildBlur_.bind(this),this.onPopupChildKeydown_=this.onPopupChildKeydown_.bind(this),this.value=t.value,this.viewProps=t.viewProps,this.foldable_=pq.create(t.expanded),this.swatchC_=new vm(e,{value:this.value,viewProps:this.viewProps});let n=this.swatchC_.view.buttonElement;n.addEventListener("blur",this.onButtonBlur_),n.addEventListener("click",this.onButtonClick_),this.textC_=new mb(e,{parser:t.parser,props:h4.fromObject({formatter:t.formatter}),value:this.value,viewProps:this.viewProps}),this.view=new m4(e,{foldable:this.foldable_,pickerLayout:t.pickerLayout}),this.view.swatchElement.appendChild(this.swatchC_.view.element),this.view.textElement.appendChild(this.textC_.view.element),this.popC_="popup"===t.pickerLayout?new mv(e,{viewProps:this.viewProps}):null;let i=new vh(e,{colorType:t.colorType,supportsAlpha:t.supportsAlpha,value:this.value,viewProps:this.viewProps});i.view.allFocusableElements.forEach(e=>{e.addEventListener("blur",this.onPopupChildBlur_),e.addEventListener("keydown",this.onPopupChildKeydown_)}),this.pickerC_=i,this.popC_?(this.view.element.appendChild(this.popC_.view.element),this.popC_.view.element.appendChild(i.view.element),mM({primary:this.foldable_.value("expanded"),secondary:this.popC_.shows,forward:e=>e,backward:(e,t)=>t})):this.view.pickerElement&&(this.view.pickerElement.appendChild(this.pickerC_.view.element),pZ(this.foldable_,this.view.pickerElement))}get textController(){return this.textC_}onButtonBlur_(e){if(!this.popC_)return;let t=this.view.element,n=hG(e.relatedTarget);n&&t.contains(n)||(this.popC_.shows.rawValue=!1)}onButtonClick_(){this.foldable_.set("expanded",!this.foldable_.get("expanded")),this.foldable_.get("expanded")&&this.pickerC_.view.allFocusableElements[0].focus()}onPopupChildBlur_(e){if(!this.popC_)return;let t=this.popC_.view.element,n=ps(e);!(n&&t.contains(n))&&(!n||n!==this.swatchC_.view.buttonElement||f7(t.ownerDocument))&&(this.popC_.shows.rawValue=!1)}onPopupChildKeydown_(e){this.popC_?"Escape"===e.key&&(this.popC_.shows.rawValue=!1):this.view.pickerElement&&"Escape"===e.key&&this.swatchC_.view.buttonElement.focus()}}function vv(e){return m8(e.getComponents("rgb")).reduce((e,t)=>e<<8|255&Math.floor(t),0)}function vy(e){return e.getComponents("rgb").reduce((e,t,n)=>e<<8|255&Math.floor(3===n?255*t:t),0)>>>0}function v_(e){return new ga([e>>16&255,e>>8&255,255&e],"rgb")}function vb(e){return new ga([e>>24&255,e>>16&255,e>>8&255,fM(255&e,0,255,0,1)],"rgb")}function vx(e){return"number"!=typeof e?ga.black():v_(e)}function vC(e){return"number"!=typeof e?ga.black():vb(e)}function vE(e,t){return!("object"!=typeof e||hz(e))&&t in e&&"number"==typeof e[t]}function vw(e){return vE(e,"r")&&vE(e,"g")&&vE(e,"b")}function vT(e){return vw(e)&&vE(e,"a")}function vS(e){return vw(e)}function vL(e,t){if(e.mode!==t.mode||e.type!==t.type)return!1;let n=e.getComponents(),i=t.getComponents();for(let e=0;e<n.length;e++)if(n[e]!==i[e])return!1;return!0}function vP(e){return"a"in e?[e.r,e.g,e.b,e.a]:[e.r,e.g,e.b]}function vM(e){let t=g1(e);return t?(e,n)=>{mJ(e,t(n))}:null}function vA(e){let t=e?vy:vv;return(e,n)=>{mJ(e,t(n))}}function vI(e,t,n){let i=g_(t,n).toRgbaObject();e.writeProperty("r",i.r),e.writeProperty("g",i.g),e.writeProperty("b",i.b),e.writeProperty("a",i.a)}function vR(e,t,n){let i=g_(t,n).toRgbaObject();e.writeProperty("r",i.r),e.writeProperty("g",i.g),e.writeProperty("b",i.b)}function vk(e,t){return(n,i)=>{e?vI(n,i,t):vR(n,i,t)}}function vD(e){var t;return null!==(t=null==e?void 0:e.color)&&void 0!==t&&!!t.alpha}function vN(e){return e?e=>g$(e,"0x"):e=>
244gW(e,"0x")}function vF(e){return"color"in e||"color"===e.view}function vO(e,t){return vS(e)?"int"===t?new ga(vP(e),"rgb"):"float"===t?new gh(vP(e),"rgb"):g_(ga.black(),"int"):g_(ga.black(),t)}function vj(e){return vT(e)}function vU(e){return t=>g_(vO(t,e),"int")}function vV(e,t){return n=>e?gQ(n,t):gK(n,t)}pM({id:"input-color-number",type:"input",accept:(e,t)=>{if("number"!=typeof e||!vF(t))return null;let n=gu(t);return n?{initialValue:e,params:Object.assign(Object.assign({},n),{supportsAlpha:vD(t)})}:null},binding:{reader:e=>e.params.supportsAlpha?vC:vx,equals:vL,writer:e=>vA(e.params.supportsAlpha)},controller:e=>{var t,n;return new vg(e.document,{colorType:"int",expanded:null!==(t=e.params.expanded)&&void 0!==t&&t,formatter:vN(e.params.supportsAlpha),parser:gG("int"),pickerLayout:null!==(n=e.params.picker)&&void 0!==n?n:"popup",supportsAlpha:e.params.supportsAlpha,value:e.value,viewProps:e.viewProps})}}),pM({id:"input-color-object",type:"input",accept:(e,t)=>{var n;if(!vS(e))return null;let i=gu(t);return i?{initialValue:e,params:Object.assign(Object.assign({},i),{colorType:null!==(n=gd(t))&&void 0!==n?n:"int"})}:null},binding:{reader:e=>vU(e.params.colorType),equals:vL,writer:e=>vk(vj(e.initialValue),e.params.colorType)},controller:e=>{var t,n;let i=vT(e.initialValue);return new vg(e.document,{colorType:e.params.colorType,expanded:null!==(t=e.params.expanded)&&void 0!==t&&t,formatter:vV(i,e.params.colorType),parser:gG("int"),pickerLayout:null!==(n=e.params.picker)&&void 0!==n?n:"popup",supportsAlpha:i,value:e.value,viewProps:e.viewProps})}}),pM({id:"input-color-string",type:"input",accept:(e,t)=>{if("string"!=typeof e||"text"===t.view)return null;let n=gH(e,gd(t));if(!n)return null;let i=g1(n);if(!i)return null;let r=gu(t);return r?{initialValue:e,params:Object.assign(Object.assign({},r),{format:n,stringifier:i})}:null},binding:{reader:()=>gz,equals:vL,writer:e=>{let t=vM(e.params.format);if(!t)throw hX.notBindable();return t}},controller:e=>{var t,n;return new vg(e.document,{colorType:e.params.format.type,expanded:null!==(t=e.params.expanded)&&void 0!==t&&t,formatter:e.params.stringifier,parser:gG("int"),pickerLayout:null!==(n=e.params.picker)&&void 0!==n?n:"popup",supportsAlpha:e.params.format.alpha,value:e.value,viewProps:e.viewProps})}});class vB{constructor(e){this.components=e.components,this.asm_=e.assembly}constrain(e){let t=this.asm_.toComponents(e).map((e,t)=>{var n,i;return null!==(i=null===(n=this.components[t])||void 0===n?void 0:n.constrain(e))&&void 0!==i?i:e});return this.asm_.fromComponents(t)}}let vH=pc("pndtxt");class vG{constructor(e,t){this.textViews=t.textViews,this.element=e.createElement("div"),this.element.classList.add(vH()),this.textViews.forEach(t=>{let n=e.createElement("div");n.classList.add(vH("a")),n.appendChild(t.element),this.element.appendChild(n)})}}function vz(e,t,n){return new mU(e,{arrayPosition:0===n?"fst":n===t.axes.length-1?"lst":"mid",parser:t.parser,props:t.axes[n].textProps,value:h3(0,{constraint:t.axes[n].constraint}),viewProps:t.viewProps})}class vq{constructor(e,t){this.value=t.value,this.viewProps=t.viewProps,this.acs_=t.axes.map((n,i)=>vz(e,t,i)),this.acs_.forEach((e,n)=>{mM({primary:this.value,secondary:e.value,forward:e=>t.assembly.toComponents(e)[n],backward:(e,i)=>{let r=t.assembly.toComponents(e);return r[n]=i,t.assembly.fromComponents(r)}})}),this.view=new vG(e,{textViews:this.acs_.map(e=>e.view)})}get textControllers(){return this.acs_}}class vW extends f${get max(){return this.controller.valueController.sliderController.props.get("max")}set max(e){this.controller.valueController.sliderController.props.set("max",e)}get min(){return this.controller.valueController.sliderController.props.get("min")}set min(e){this.controller.valueController.sliderController.props.set("min",e)}}function v$(e,t){let n=[],i=fF(e,t);i&&n.push(i);let r=fO(e);r&&n.push(r);let a=md(e.options);return a&&n.push(a),new ms(n)}pM({id:"input-number",type:"input",accept:(e,t)=>{if("number"!=typeof e)return null;let n=f0(t,e=>Object.assign(Object.assign({},fU(e)),{options:e.optional.custom(mu),readonly:e.optional.constant(!1)}));return n?{initialValue:e,params:n}:null},binding:{reader:e=>fL,constraint:e=>v$(e.params,e.initialValue),writer:e=>mJ},controller:e=>{let t=e.value,n=e.constraint,i=n&&mo(n,ml);if(i)return new mp(e.document,{props:new h4({options:i.values.value("options")}),value:t,viewProps:e.viewProps});let r=fj(e.params,t.rawValue),a=n&&mo(n,h6);return a?new mq(e.document,Object.assign(Object.assign({},mW(Object.assign(Object.assign({},r),{keyScale:h3(r.keyScale),max:a.values.value("max"),min:a.values.value("min")}))),{parser:fS,value:t,viewProps:e.viewProps})):new mU(e.document,{parser:fS,props:h4.fromObject(r),value:t,viewProps:e.viewProps})},api:e=>"number"!=typeof e.controller.value.rawValue?null:e.controller.valueController instanceof mq?new vW(e.controller):e.controller.valueController instanceof mp?new ma(e.controller):null});class vZ{constructor(e=0,t=0){this.x=e,this.y=t}getComponents(){return[this.x,this.y]}static isObject(e){if(hz(e))return!1;let t=e.x,n=e.y;return"number"==typeof t&&"number"==typeof n}static equals(e,t){return e.x===t.x&&e.y===t.y}toObject(){return{x:this.x,y:this.y}}}let vY={toComponents:e=>e.getComponents(),fromComponents:e=>new vZ(...e)}
244,vK=pc("p2d");class vX{constructor(e,t){this.element=e.createElement("div"),this.element.classList.add(vK()),t.viewProps.bindClassModifiers(this.element),po(t.expanded,px(this.element,vK(void 0,"expanded")));let n=e.createElement("div");n.classList.add(vK("h")),this.element.appendChild(n);let i=e.createElement("button");i.classList.add(vK("b")),i.appendChild(pt(e,"p2dpad")),t.viewProps.bindDisabled(i),n.appendChild(i),this.buttonElement=i;let r=e.createElement("div");if(r.classList.add(vK("t")),n.appendChild(r),this.textElement=r,"inline"===t.pickerLayout){let t=e.createElement("div");t.classList.add(vK("p")),this.element.appendChild(t),this.pickerElement=t}else this.pickerElement=null}}let vQ=pc("p2dp");class vJ{constructor(e,t){this.onFoldableChange_=this.onFoldableChange_.bind(this),this.onPropsChange_=this.onPropsChange_.bind(this),this.onValueChange_=this.onValueChange_.bind(this),this.props_=t.props,this.props_.emitter.on("change",this.onPropsChange_),this.element=e.createElement("div"),this.element.classList.add(vQ()),"popup"===t.layout&&this.element.classList.add(vQ(void 0,"p")),t.viewProps.bindClassModifiers(this.element);let n=e.createElement("div");n.classList.add(vQ("p")),t.viewProps.bindTabIndex(n),this.element.appendChild(n),this.padElement=n;let i=e.createElementNS(f4,"svg");i.classList.add(vQ("g")),this.padElement.appendChild(i),this.svgElem_=i;let r=e.createElementNS(f4,"line");r.classList.add(vQ("ax")),r.setAttributeNS(null,"x1","0"),r.setAttributeNS(null,"y1","50%"),r.setAttributeNS(null,"x2","100%"),r.setAttributeNS(null,"y2","50%"),this.svgElem_.appendChild(r);let a=e.createElementNS(f4,"line");a.classList.add(vQ("ax")),a.setAttributeNS(null,"x1","50%"),a.setAttributeNS(null,"y1","0"),a.setAttributeNS(null,"x2","50%"),a.setAttributeNS(null,"y2","100%"),this.svgElem_.appendChild(a);let s=e.createElementNS(f4,"line");s.classList.add(vQ("l")),s.setAttributeNS(null,"x1","50%"),s.setAttributeNS(null,"y1","50%"),this.svgElem_.appendChild(s),this.lineElem_=s;let o=e.createElement("div");o.classList.add(vQ("m")),this.padElement.appendChild(o),this.markerElem_=o,t.value.emitter.on("change",this.onValueChange_),this.value=t.value,this.update_()}get allFocusableElements(){return[this.padElement]}update_(){let[e,t]=this.value.rawValue.getComponents(),n=this.props_.get("max"),i=fM(e,-n,+n,0,100),r=fM(t,-n,+n,0,100),a=this.props_.get("invertsY")?100-r:r;this.lineElem_.setAttributeNS(null,"x2",`${i}%`),this.lineElem_.setAttributeNS(null,"y2",`${a}%`),this.markerElem_.style.left=`${i}%`,this.markerElem_.style.top=`${a}%`}onValueChange_(){this.update_()}onPropsChange_(){this.update_()}onFoldableChange_(){this.update_()}}function v0(e,t,n){return[mA(t[0],mR(e)),mA(t[1],mI(e))*(n?1:-1)]}class v1{constructor(e,t){this.onPadKeyDown_=this.onPadKeyDown_.bind(this),this.onPadKeyUp_=this.onPadKeyUp_.bind(this),this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.props=t.props,this.value=t.value,this.viewProps=t.viewProps,this.view=new vJ(e,{layout:t.layout,props:this.props,value:this.value,viewProps:this.viewProps}),this.ptHandler_=new mF(this.view.padElement),this.ptHandler_.emitter.on("down",this.onPointerDown_),this.ptHandler_.emitter.on("move",this.onPointerMove_),this.ptHandler_.emitter.on("up",this.onPointerUp_),this.view.padElement.addEventListener("keydown",this.onPadKeyDown_),this.view.padElement.addEventListener("keyup",this.onPadKeyUp_)}handlePointerEvent_(e,t){if(!e.point)return;let n=this.props.get("max"),i=fM(e.point.x,0,e.bounds.width,-n,+n),r=fM(this.props.get("invertsY")?e.bounds.height-e.point.y:e.point.y,0,e.bounds.height,-n,+n);this.value.setRawValue(new vZ(i,r),t)}onPointerDown_(e){this.handlePointerEvent_(e.data,{forceEmit:!1,last:!1})}onPointerMove_(e){this.handlePointerEvent_(e.data,{forceEmit:!1,last:!1})}onPointerUp_(e){this.handlePointerEvent_(e.data,{forceEmit:!0,last:!0})}onPadKeyDown_(e){mD(e.key)&&e.preventDefault();let[t,n]=v0(e,[this.props.get("xKeyScale"),this.props.get("yKeyScale")],this.props.get("invertsY"));(0!==t||0!==n)&&this.value.setRawValue(new vZ(this.value.rawValue.x+t,this.value.rawValue.y+n),{forceEmit:!1,last:!1})}onPadKeyUp_(e){let[t,n]=v0(e,[this.props.get("xKeyScale"),this.props.get("yKeyScale")],this.props.get("invertsY"));(0!==t||0!==n)&&this.value.setRawValue(this.value.rawValue,{forceEmit:!0,last:!0})}}class v2{constructor(e,t){var n,i;this.onPopupChildBlur_=this.onPopupChildBlur_.bind(this),this.onPopupChildKeydown_=this.onPopupChildKeydown_.bind(this),this.onPadButtonBlur_=this.onPadButtonBlur_.bind(this),this.onPadButtonClick_=this.onPadButtonClick_.bind(this),this.value=t.value,this.viewProps=t.viewProps,this.foldable_=pq.create(t.expanded),this.popC_="popup"===t.pickerLayout?new mv(e,{viewProps:this.viewProps}):null;let r=new v1(e,{layout:t.pickerLayout,props:new h4({invertsY:h3(t.invertsY),max:h3(t.max),xKeyScale:t.axes[0].textProps.value("keyScale"),yKeyScale:t.axes[1].textProps.value("keyScale")}
244),value:this.value,viewProps:this.viewProps});r.view.allFocusableElements.forEach(e=>{e.addEventListener("blur",this.onPopupChildBlur_),e.addEventListener("keydown",this.onPopupChildKeydown_)}),this.pickerC_=r,this.textC_=new vq(e,{assembly:vY,axes:t.axes,parser:t.parser,value:this.value,viewProps:this.viewProps}),this.view=new vX(e,{expanded:this.foldable_.value("expanded"),pickerLayout:t.pickerLayout,viewProps:this.viewProps}),this.view.textElement.appendChild(this.textC_.view.element),null===(n=this.view.buttonElement)||void 0===n||n.addEventListener("blur",this.onPadButtonBlur_),null===(i=this.view.buttonElement)||void 0===i||i.addEventListener("click",this.onPadButtonClick_),this.popC_?(this.view.element.appendChild(this.popC_.view.element),this.popC_.view.element.appendChild(this.pickerC_.view.element),mM({primary:this.foldable_.value("expanded"),secondary:this.popC_.shows,forward:e=>e,backward:(e,t)=>t})):this.view.pickerElement&&(this.view.pickerElement.appendChild(this.pickerC_.view.element),pZ(this.foldable_,this.view.pickerElement))}get textController(){return this.textC_}onPadButtonBlur_(e){if(!this.popC_)return;let t=this.view.element,n=hG(e.relatedTarget);n&&t.contains(n)||(this.popC_.shows.rawValue=!1)}onPadButtonClick_(){this.foldable_.set("expanded",!this.foldable_.get("expanded")),this.foldable_.get("expanded")&&this.pickerC_.view.allFocusableElements[0].focus()}onPopupChildBlur_(e){if(!this.popC_)return;let t=this.popC_.view.element,n=ps(e);!(n&&t.contains(n))&&(!n||n!==this.view.buttonElement||f7(t.ownerDocument))&&(this.popC_.shows.rawValue=!1)}onPopupChildKeydown_(e){this.popC_?"Escape"===e.key&&(this.popC_.shows.rawValue=!1):this.view.pickerElement&&"Escape"===e.key&&this.view.buttonElement.focus()}}function v3(e){return vZ.isObject(e)?new vZ(e.x,e.y):new vZ}function v5(e,t){e.writeProperty("x",t.x),e.writeProperty("y",t.y)}function v4(e,t){return new vB({assembly:vY,components:[mX(Object.assign(Object.assign({},e),e.x),t.x),mX(Object.assign(Object.assign({},e),e.y),t.y)]})}function v6(e,t){var n,i;return hz(e.min)&&hz(e.max)?Math.max(10*Math.abs(fD(e)),10*Math.abs(t)):Math.max(Math.abs(null!==(n=e.min)&&void 0!==n?n:0),Math.abs(null!==(i=e.max)&&void 0!==i?i:0))}function v8(e,t){var n,i;return Math.max(v6(hZ(e,null!==(n=e.x)&&void 0!==n?n:{}),t.x),v6(hZ(e,null!==(i=e.y)&&void 0!==i?i:{}),t.y))}function v7(e){if(!("y"in e))return!1;let t=e.y;return!!t&&"inverted"in t&&!!t.inverted}pM({id:"input-point2d",type:"input",accept:(e,t)=>{if(!vZ.isObject(e))return null;let n=f0(t,e=>Object.assign(Object.assign({},mY(e)),{expanded:e.optional.boolean,picker:e.optional.custom(mQ),readonly:e.optional.constant(!1),x:e.optional.custom(mK),y:e.optional.object(Object.assign(Object.assign({},mY(e)),{inverted:e.optional.boolean}))}));return n?{initialValue:e,params:n}:null},binding:{reader:()=>v3,constraint:e=>v4(e.params,e.initialValue),equals:vZ.equals,writer:()=>v5},controller:e=>{var t,n;
244let i=e.document,r=e.value,a=e.constraint,s=[e.params.x,e.params.y];return new v2(i,{axes:r.rawValue.getComponents().map((t,n)=>{var i;return fV({constraint:a.components[n],initialValue:t,params:hZ(e.params,null!==(i=s[n])&&void 0!==i?i:{})})}),expanded:null!==(t=e.params.expanded)&&void 0!==t&&t,invertsY:v7(e.params),max:v8(e.params,r.rawValue),parser:fS,pickerLayout:null!==(n=e.params.picker)&&void 0!==n?n:"popup",value:r,viewProps:e.viewProps})}});class v9{constructor(e=0,t=0,n=0){this.x=e,this.y=t,this.z=n}getComponents(){return[this.x,this.y,this.z]}static isObject(e){if(hz(e))return!1;let t=e.x,n=e.y,i=e.z;return"number"==typeof t&&"number"==typeof n&&"number"==typeof i}static equals(e,t){return e.x===t.x&&e.y===t.y&&e.z===t.z}toObject(){return{x:this.x,y:this.y,z:this.z}}}let ye={toComponents:e=>e.getComponents(),fromComponents:e=>new v9(...e)};function yt(e){return v9.isObject(e)?new v9(e.x,e.y,e.z):new v9}function yn(e,t){e.writeProperty("x",t.x),e.writeProperty("y",t.y),e.writeProperty("z",t.z)}function yi(e,t){return new vB({assembly:ye,components:[mX(Object.assign(Object.assign({},e),e.x),t.x),mX(Object.assign(Object.assign({},e),e.y),t.y),mX(Object.assign(Object.assign({},e),e.z),t.z)]})}pM({id:"input-point3d",type:"input",accept:(e,t)=>{if(!v9.isObject(e))return null;let n=f0(t,e=>Object.assign(Object.assign({},mY(e)),{readonly:e.optional.constant(!1),x:e.optional.custom(mK),y:e.optional.custom(mK),z:e.optional.custom(mK)}));return n?{initialValue:e,params:n}:null},binding:{reader:e=>yt,constraint:e=>yi(e.params,e.initialValue),equals:v9.equals,writer:e=>yn},controller:e=>{let t=e.value,n=e.constraint,i=[e.params.x,e.params.y,e.params.z];return new vq(e.document,{assembly:ye,axes:t.rawValue.getComponents().map((t,r)=>{var a;return fV({constraint:n.components[r],initialValue:t,params:hZ(e.params,null!==(a=i[r])&&void 0!==a?a:{})})}),parser:fS,value:t,viewProps:e.viewProps})}});class yr{constructor(e=0,t=0,n=0,i=0){this.x=e,this.y=t,this.z=n,this.w=i}getComponents(){return[this.x,this.y,this.z,this.w]}static isObject(e){if(hz(e))return!1;let t=e.x,n=e.y,i=e.z,r=e.w;return"number"==typeof t&&"number"==typeof n&&"number"==typeof i&&"number"==typeof r}static equals(e,t){return e.x===t.x&&e.y===t.y&&e.z===t.z&&e.w===t.w}toObject(){return{x:this.x,y:this.y,z:this.z,w:this.w}}}let ya={toComponents:e=>e.getComponents(),fromComponents:e=>new yr(...e)};function ys(e){return yr.isObject(e)?new yr(e.x,e.y,e.z,e.w):new yr}function yo(e,t){e.writeProperty("x",t.x),e.writeProperty("y",t.y),e.writeProperty("z",t.z),e.writeProperty("w",t.w)}function yl(e,t){return new vB({assembly:ya,components:[mX(Object.assign(Object.assign({},e),e.x),t.x),mX(Object.assign(Object.assign({},e),e.y),t.y),mX(Object.assign(Object.assign({},e),e.z),t.z),mX(Object.assign(Object.assign({},e),e.w),t.w)]})}function yu(e){let t=[],n=md(e.options);return n&&t.push(n),new ms(t)}pM({id:"input-point4d",type:"input",accept:(e,t)=>{if(!yr.isObject(e))return null;let n=f0(t,e=>Object.assign(Object.assign({},mY(e)),{readonly:e.optional.constant(!1),w:e.optional.custom(mK),x:e.optional.custom(mK),y:e.optional.custom(mK),z:e.optional.custom(mK)}));return n?{initialValue:e,params:n}:null},binding:{reader:e=>ys,constraint:e=>yl(e.params,e.initialValue),equals:yr.equals,writer:e=>yo},controller:e=>{let t=e.value,n=e.constraint,i=[e.params.x,e.params.y,e.params.z,e.params.w];return new vq(e.document,{assembly:ya,axes:t.rawValue.getComponents().map((t,r)=>{var a;return fV({constraint:n.components[r],initialValue:t,params:hZ(e.params,null!==(a=i[r])&&void 0!==a?a:{})})}),parser:fS,value:t,viewProps:e.viewProps})}}),pM({id:"input-string",type:"input",accept:(e,t)=>{if("string"!=typeof e)return null;let n=f0(t,e=>({readonly:e.optional.constant(!1),options:e.optional.custom(mu)}));return n?{initialValue:e,params:n}:null},binding:{reader:e=>mL,constraint:e=>yu(e.params),writer:e=>mJ},controller:e=>{let t=e.document,n=e.value,i=e.constraint,r=i&&mo(i,ml);return r?new mp(t,{props:new h4({options:r.values.value("options")}),value:n,viewProps:e.viewProps}):new mb(t,{parser:e=>e,props:h4.fromObject({formatter:mP}),value:n,viewProps:e.viewProps})},api:e=>"string"!=typeof e.controller.value.rawValue?null:e.controller.valueController instanceof mp?new ma(e.controller):null});let yc={monitor:{defaultInterval:200,defaultRows:3}},yd=pc("mll");class yh{constructor(e,t){this.onValueUpdate_=this.onValueUpdate_.bind(this),this.formatter_=t.formatter,this.element=e.createElement("div"),this.element.classList.add(yd()),t.viewProps.bindClassModifiers(this.element);let n=e.createElement("textarea");n.classList.add(yd("i")),n.style.height=`calc(var(${mZ("containerUnitSize")}) * ${t.rows})`,n.readOnly=!0,t.viewProps.bindDisabled(n),this.element.appendChild(n),this.textareaElem_=n,t.value.emitter.on("change",this.onValueUpdate_),this.value=t.value,this.update_()}update_(){let e=this.textareaElem_,t=e.scrollTop===e.scrollHeight-e.clientHeight,n=[];
244this.value.rawValue.forEach(e=>{void 0!==e&&n.push(this.formatter_(e))}),e.textContent=n.join("\n"),t&&(e.scrollTop=e.scrollHeight)}onValueUpdate_(){this.update_()}}class yf{constructor(e,t){this.value=t.value,this.viewProps=t.viewProps,this.view=new yh(e,{formatter:t.formatter,rows:t.rows,value:this.value,viewProps:this.viewProps})}}let yp=pc("sgl");class ym{constructor(e,t){this.onValueUpdate_=this.onValueUpdate_.bind(this),this.formatter_=t.formatter,this.element=e.createElement("div"),this.element.classList.add(yp()),t.viewProps.bindClassModifiers(this.element);let n=e.createElement("input");n.classList.add(yp("i")),n.readOnly=!0,n.type="text",t.viewProps.bindDisabled(n),this.element.appendChild(n),this.inputElement=n,t.value.emitter.on("change",this.onValueUpdate_),this.value=t.value,this.update_()}update_(){let e=this.value.rawValue,t=e[e.length-1];this.inputElement.value=void 0!==t?this.formatter_(t):""}onValueUpdate_(){this.update_()}}class yg{constructor(e,t){this.value=t.value,this.viewProps=t.viewProps,this.view=new ym(e,{formatter:t.formatter,value:this.value,viewProps:this.viewProps})}}pM({id:"monitor-bool",type:"monitor",accept:(e,t)=>{if("boolean"!=typeof e)return null;let n=f0(t,e=>({readonly:e.required.constant(!0),rows:e.optional.number}));return n?{initialValue:e,params:n}:null},binding:{reader:e=>mC},controller:e=>{var t;return 1===e.value.rawValue.length?new yg(e.document,{formatter:mE,value:e.value,viewProps:e.viewProps}):new yf(e.document,{formatter:mE,rows:null!==(t=e.params.rows)&&void 0!==t?t:yc.monitor.defaultRows,value:e.value,viewProps:e.viewProps})}});class yv extends f${get max(){return this.controller.valueController.props.get("max")}set max(e){this.controller.valueController.props.set("max",e)}get min(){return this.controller.valueController.props.get("min")}set min(e){this.controller.valueController.props.set("min",e)}}let yy=pc("grl");class y_{constructor(e,t){this.onCursorChange_=this.onCursorChange_.bind(this),this.onValueUpdate_=this.onValueUpdate_.bind(this),this.element=e.createElement("div"),this.element.classList.add(yy()),t.viewProps.bindClassModifiers(this.element),this.formatter_=t.formatter,this.props_=t.props,this.cursor_=t.cursor,this.cursor_.emitter.on("change",this.onCursorChange_);let n=e.createElementNS(f4,"svg");n.classList.add(yy("g")),n.style.height=`calc(var(${mZ("containerUnitSize")}) * ${t.rows})`,this.element.appendChild(n),this.svgElem_=n;let i=e.createElementNS(f4,"polyline");this.svgElem_.appendChild(i),this.lineElem_=i;let r=e.createElement("div");r.classList.add(yy("t"),pc("tt")()),this.element.appendChild(r),this.tooltipElem_=r,t.value.emitter.on("change",this.onValueUpdate_),this.value=t.value,this.update_()}get graphElement(){return this.svgElem_}update_(){let{clientWidth:e,clientHeight:t}=this.element,n=this.value.rawValue.length-1,i=this.props_.get("min"),r=this.props_.get("max"),a=[];this.value.rawValue.forEach((s,o)=>{if(void 0===s)return;let l=fM(o,0,n,0,e),u=fM(s,i,r,t,0);a.push([l,u].join(","))}),this.lineElem_.setAttributeNS(null,"points",a.join(" "));let s=this.tooltipElem_,o=this.value.rawValue[this.cursor_.rawValue];if(void 0===o){s.classList.remove(yy("t","a"));return}let l=fM(this.cursor_.rawValue,0,n,0,e),u=fM(o,i,r,t,0);s.style.left=`${l}px`,s.style.top=`${u}px`,s.textContent=`${this.formatter_(o)}`,s.classList.contains(yy("t","a"))||(s.classList.add(yy("t","a"),yy("t","in")),f6(s),s.classList.remove(yy("t","in")))}onValueUpdate_(){this.update_()}onCursorChange_(){this.update_()}}class yb{constructor(e,t){if(this.onGraphMouseMove_=this.onGraphMouseMove_.bind(this),this.onGraphMouseLeave_=this.onGraphMouseLeave_.bind(this),this.onGraphPointerDown_=this.onGraphPointerDown_.bind(this),this.onGraphPointerMove_=this.onGraphPointerMove_.bind(this),this.onGraphPointerUp_=this.onGraphPointerUp_.bind(this),this.props=t.props,this.value=t.value,this.viewProps=t.viewProps,this.cursor_=h3(-1),this.view=new y_(e,{cursor:this.cursor_,formatter:t.formatter,rows:t.rows,props:this.props,value:this.value,viewProps:this.viewProps}),f7(e)){let e=new mF(this.view.element);e.emitter.on("down",this.onGraphPointerDown_),e.emitter.on("move",this.onGraphPointerMove_),e.emitter.on("up",this.onGraphPointerUp_)}else this.view.element.addEventListener("mousemove",this.onGraphMouseMove_),this.view.element.addEventListener("mouseleave",this.onGraphMouseLeave_)}importProps(e){return f1(e,null,e=>({max:e.required.number,min:e.required.number}),e=>(this.props.set("max",e.max),this.props.set("min",e.min),!0))}exportProps(){return f2(null,{max:this.props.get("max"),min:this.props.get("min")})}onGraphMouseLeave_(){this.cursor_.rawValue=-1}onGraphMouseMove_(e){let{clientWidth:t}=this.view.element;this.cursor_.rawValue=Math.floor(fM(e.offsetX,0,t,0,this.value.rawValue.length))}onGraphPointerDown_(e){this.onGraphPointerMove_(e)}onGraphPointerMove_(e){if(!e.data.point){this.cursor_.rawValue=-1;return}this.cursor_.rawValue=Math.floor(fM(e.data.point.x,0,e.data.bounds.width,0,this.value.rawValue.length))}onGraphPointerUp_(){this.cursor_.rawValue=-1}}function yx(e){return hz(e.format)?fP(2):e.format}function yC(e){var t;return 1===e.value.rawValue.length?new yg(e.document,{formatter:yx(e.params),value:e.value,viewProps:e.viewProps}):new yf(e.document,{formatter:yx(e.params),rows:null!==(t=e.params.rows)&&void 0!==t?t:yc.monitor.defaultRows,value:e.value,viewProps:e.viewProps})}function yE(e){var t,n,i;return new yb(e.document,{formatter:yx(e.params),rows:null!==(t=e.params.rows)&&void 0!==t?t:yc.monitor.defaultRows,props:h4.fromObject({max:null!==(n=e.params.max)&&void 0!==n?n:100,min:null!==(i=e.params.min)&&void 0!==i?i:0}),value:e.value,viewProps:e.viewProps})}function yw(e){return"graph"===e.view}pM({id:"monitor-number",type:"monitor",accept:(e,t)=>
244{if("number"!=typeof e)return null;let n=f0(t,e=>({format:e.optional.function,max:e.optional.number,min:e.optional.number,readonly:e.required.constant(!0),rows:e.optional.number,view:e.optional.string}));return n?{initialValue:e,params:n}:null},binding:{defaultBufferSize:e=>yw(e)?64:1,reader:e=>fL},controller:e=>yw(e.params)?yE(e):yC(e),api:e=>e.controller.valueController instanceof yb?new yv(e.controller):null}),pM({id:"monitor-string",type:"monitor",accept:(e,t)=>{if("string"!=typeof e)return null;let n=f0(t,e=>({multiline:e.optional.boolean,readonly:e.required.constant(!0),rows:e.optional.number}));return n?{initialValue:e,params:n}:null},binding:{reader:e=>mL},controller:e=>{var t;let n=e.value;return n.rawValue.length>1||e.params.multiline?new yf(e.document,{formatter:mP,rows:null!==(t=e.params.rows)&&void 0!==t?t:yc.monitor.defaultRows,value:n,viewProps:e.viewProps}):new yg(e.document,{formatter:mP,value:n,viewProps:e.viewProps})}});class yT{constructor(){this.map_=new Map}get(e){var t;return null!==(t=this.map_.get(e))&&void 0!==t?t:null}has(e){return this.map_.has(e)}add(e,t){return this.map_.set(e,t),e.viewProps.handleDispose(()=>{this.map_.delete(e)}),t}}function yS(e){return e}function yL(e){return null==e}function yP(e){return null!==e&&"object"==typeof e}function yM(e){return null!==e&&"object"==typeof e}function yA(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function yI(e,t){return Array.from(new Set([...Object.keys(e),...Object.keys(t)])).reduce((n,i)=>{let r=e[i],a=t[i];return yM(r)&&yM(a)?Object.assign(Object.assign({},n),{[i]:yI(r,a)}):Object.assign(Object.assign({},n),{[i]:i in t?a:r})},{})}new yT,pc("spr"),new pL("4.0.5");let yR={alreadydisposed:()=>"View has been already disposed",invalidparams:e=>`Invalid parameters for '${e.name}'`,nomatchingcontroller:e=>`No matching controller for '${e.key}'`,nomatchingview:e=>`No matching view for '${JSON.stringify(e.params)}'`,notbindable:()=>"Value is not bindable",notcompatible:e=>`Not compatible with plugin '${e.id}'`,propertynotfound:e=>`Property '${e.name}' not found`,shouldneverhappen:()=>"This error should never happen"};class yk{static alreadyDisposed(){return new yk({type:"alreadydisposed"})}static notBindable(){return new yk({type:"notbindable"})}static notCompatible(e,t){return new yk({type:"notcompatible",context:{id:`${e}.${t}`}})}static propertyNotFound(e){return new yk({type:"propertynotfound",context:{name:e}})}static shouldNeverHappen(){return new yk({type:"shouldneverhappen"})}constructor(e){var t;this.message=null!==(t=yR[e.type](yS(e.context)))&&void 0!==t?t:"Unexpected error",this.name=this.constructor.name,this.stack=Error(this.message).stack,this.type=e.type}toString(){return this.message}}class yD{constructor(e,t){this.obj_=e,this.key=t}static isBindable(e){return null!==e&&("object"==typeof e||"function"==typeof e)}read(){return this.obj_[this.key]}write(e){this.obj_[this.key]=e}writeProperty(e,t){let n=this.read();if(!yD.isBindable(n))throw yk.notBindable();if(!(e in n))throw yk.propertyNotFound(e);n[e]=t}}class yN{constructor(){this.observers_={}}on(e,t,n){var i;let r=this.observers_[e];return r||(r=this.observers_[e]=[]),r.push({handler:t,key:null!==(i=null==n?void 0:n.key)&&void 0!==i?i:t}),this}off(e,t){let n=this.observers_[e];return n&&(this.observers_[e]=n.filter(e=>e.key!==t)),this}emit(e,t){let n=this.observers_[e];n&&n.forEach(e=>{e.handler(t)})}}class yF{constructor(e,t){var n;this.constraint_=null==t?void 0:t.constraint,this.equals_=null!==(n=null==t?void 0:t.equals)&&void 0!==n?n:(e,t)=>e===t,this.emitter=new yN,this.rawValue_=e}get constraint(){return this.constraint_}get rawValue(){return this.rawValue_}set rawValue(e){this.setRawValue(e,{forceEmit:!1,last:!0})}setRawValue(e,t){let n=null!=t?t:{forceEmit:!1,last:!0},i=this.constraint_?this.constraint_.constrain(e):e,r=this.rawValue_;(!this.equals_(r,i)||n.forceEmit)&&(this.emitter.emit("beforechange",{sender:this}),this.rawValue_=i,this.emitter.emit("change",{options:n,previousRawValue:r,rawValue:i,sender:this}))}}class yO{constructor(e){this.emitter=new yN,this.value_=e}get rawValue(){return this.value_}set rawValue(e){this.setRawValue(e,{forceEmit:!1,last:!0})}setRawValue(e,t){let n=null!=t?t:{forceEmit:!1,last:!0},i=this.value_;(i!==e||n.forceEmit)&&(this.emitter.emit("beforechange",{sender:this}),this.value_=e,this.emitter.emit("change",{options:n,previousRawValue:i,rawValue:this.value_,sender:this}))}}class yj{constructor(e){this.emitter=new yN,this.onValueBeforeChange_=this.onValueBeforeChange_.bind(this),this.onValueChange_=this.onValueChange_.bind(this),this.value_=e,this.value_.emitter.on("beforechange",this.onValueBeforeChange_),this.value_.emitter.on("change",this.onValueChange_)}get rawValue(){return this.value_.rawValue}onValueBeforeChange_(e){this.emitter.emit("beforechange",Object.assign(Object.assign({},e),{sender:this}))}onValueChange_(e){this.emitter.emit("change",Object.assign(Object.assign({},e),{sender:this}))}}function yU(e,t){let n=null==t?void 0:t.constraint,i=null==t?void 0:t.equals;return n||i?new yF(e,t):new yO(e)}function yV(e){return[new yj(e),(t,n)=>{e.setRawValue(t,n)}]}class yB{constructor(e){for(let t in this.emitter=new yN,this.valMap_=e,this.valMap_)this.valMap_[t].emitter.on("change",()=>{this.emitter.emit("change",{key:t,sender:this})})}static createCore(e){return Object.keys(e).reduce((t,n)=>Object.assign(t,{[n]:yU(e[n])}),{})}static fromObject(e){return new yB(this.createCore(e))}get(e){return this.valMap_[e].rawValue}set(e,t){this.valMap_[e].rawValue=t}value(e){return this.valMap_[e]}}class yH{constructor(e){this.values=yB.fromObject({max:e.max,min:e.min})}constrain(e){let t=this.values.get("max");return Math.min(Math.max(e,this.values.get("min")),t)}}class yG{constructor(e){this.values=yB.fromObject({max:e.max,min:e.min})}constrain(e){let t=this.values.get("max"),n=this.values.get("min"),i=e;return yL(n)||(i=Math.max(i,n)),yL(t)||(i=Math.min(i,t)),i}}class yz{constructor(e,t=0){this.step=e,this.origin=t}constrain(e){let t=this.origin%this.step,n=Math.round((e-t)/this.step);return t+n*this.step}}class yq{constructor(e){this.text=e}evaluate(){return Number(this.text)}toString(){return this.text}}let yW={"**":(e,t)=>
244Math.pow(e,t),"*":(e,t)=>e*t,"/":(e,t)=>e/t,"%":(e,t)=>e%t,"+":(e,t)=>e+t,"-":(e,t)=>e-t,"<<":(e,t)=>e<<t,">>":(e,t)=>e>>t,">>>":(e,t)=>e>>>t,"&":(e,t)=>e&t,"^":(e,t)=>e^t,"|":(e,t)=>e|t};class y${constructor(e,t,n){this.left=t,this.operator=e,this.right=n}evaluate(){let e=yW[this.operator];if(!e)throw Error(`unexpected binary operator: '${this.operator}`);return e(this.left.evaluate(),this.right.evaluate())}toString(){return["b(",this.left.toString(),this.operator,this.right.toString(),")"].join(" ")}}let yZ={"+":e=>e,"-":e=>-e,"~":e=>~e};class yY{constructor(e,t){this.operator=e,this.expression=t}evaluate(){let e=yZ[this.operator];if(!e)throw Error(`unexpected unary operator: '${this.operator}`);return e(this.expression.evaluate())}toString(){return["u(",this.operator,this.expression.toString(),")"].join(" ")}}function yK(e){return(t,n)=>{for(let i=0;i<e.length;i++){let r=e[i](t,n);if(""!==r)return r}return""}}function yX(e,t){var n;let i=e.substr(t).match(/^\s+/);return null!==(n=i&&i[0])&&void 0!==n?n:""}function yQ(e,t){let n=e.substr(t,1);return n.match(/^[1-9]$/)?n:""}function yJ(e,t){var n;let i=e.substr(t).match(/^[0-9]+/);return null!==(n=i&&i[0])&&void 0!==n?n:""}function y0(e,t){let n=yJ(e,t);if(""!==n)return n;let i=e.substr(t,1);if(t+=1,"-"!==i&&"+"!==i)return"";let r=yJ(e,t);return""===r?"":i+r}function y1(e,t){let n=[],i=e.substr(t,1);if(t+=1,"e"!==i.toLowerCase())return"";n.push(i);let r=y0(e,t);return""===r?"":i+r}function y2(e,t){let n=e.substr(t,1);if("0"===n)return n;let i=yQ(e,t);return(t+=i.length,""===i)?"":i+yJ(e,t)}let y3=yK([function(e,t){let n=y2(e,t);if(t+=n.length,""===n)return"";let i=e.substr(t,1);if(t+=i.length,"."!==i)return"";let r=yJ(e,t);return t+=r.length,n+i+r+y1(e,t)},function(e,t){let n=e.substr(t,1);if(t+=n.length,"."!==n)return"";let i=yJ(e,t);return(t+=i.length,""===i)?"":n+i+y1(e,t)},function(e,t){let n=y2(e,t);return(t+=n.length,""===n)?"":n+y1(e,t)}]);function y5(e,t){var n;let i=e.substr(t).match(/^[01]+/);return null!==(n=i&&i[0])&&void 0!==n?n:""}function y4(e,t){var n;let i=e.substr(t).match(/^[0-7]+/);return null!==(n=i&&i[0])&&void 0!==n?n:""}function y6(e,t){var n;let i=e.substr(t).match(/^[0-9a-f]+/i);return null!==(n=i&&i[0])&&void 0!==n?n:""}let y8=yK([function(e,t){let n=e.substr(t,2);if(t+=n.length,"0b"!==n.toLowerCase())return"";let i=y5(e,t);return""===i?"":n+i},function(e,t){let n=e.substr(t,2);if(t+=n.length,"0o"!==n.toLowerCase())return"";let i=y4(e,t);return""===i?"":n+i},function(e,t){let n=e.substr(t,2);if(t+=n.length,"0x"!==n.toLowerCase())return"";let i=y6(e,t);return""===i?"":n+i}]),y7=yK([y8,y3]);function y9(e,t){let n=y7(e,t);return(t+=n.length,""===n)?null:{evaluable:new yq(n),cursor:t}}function _e(e,t){let n=e.substr(t,1);if(t+=n.length,"("!==n)return null;let i=_s(e,t);if(!i)return null;t=i.cursor,t+=yX(e,t).length;let r=e.substr(t,1);return(t+=r.length,")"!==r)?null:{evaluable:i.evaluable,cursor:t}}function _t(e,t){var n;return null!==(n=y9(e,t))&&void 0!==n?n:_e(e,t)}function _n(e,t){let n=_t(e,t);if(n)return n;let i=e.substr(t,1);if(t+=i.length,"+"!==i&&"-"!==i&&"~"!==i)return null;let r=_n(e,t);return r?{cursor:t=r.cursor,evaluable:new yY(i,r.evaluable)}:null}function _i(e,t,n){n+=yX(t,n).length;let i=e.filter(e=>t.startsWith(e,n))[0];return i?(n+=i.length,{cursor:n+=yX(t,n).length,operator:i}):null}function _r(e,t){return(n,i)=>{let r=e(n,i);if(!r)return null;i=r.cursor;let a=r.evaluable;for(;;){let r=_i(t,n,i);if(!r)break;let s=e(n,i=r.cursor);if(!s)return null;i=s.cursor,a=new y$(r.operator,a,s.evaluable)}return a?{cursor:i,evaluable:a}:null}}let _a=[["**"],["*","/","%"],["+","-"],["<<",">>>",">>"],["&"],["^"],["|"]].reduce((e,t)=>_r(e,t),_n);function _s(e,t){return t+=yX(e,t).length,_a(e,t)}function _o(e){let t=_s(e,0);return t&&t.cursor+yX(e,t.cursor).length===e.length?t.evaluable:null}function _l(e){var t;let n=_o(e);return null!==(t=null==n?void 0:n.evaluate())&&void 0!==t?t:null}function _u(e){if("number"==typeof e)return e;if("string"==typeof e){let t=_l(e);if(!yL(t))return t}return 0}function _c(e){return t=>t.toFixed(Math.max(Math.min(e,20),0))}function _d(e,t,n,i,r){return i+(e-t)/(n-t)*(r-i)}function _h(e){return String(e.toFixed(10)).split(".")[1].replace(/0+$/,"").length}function _f(e,t,n){return Math.min(Math.max(e,t),n)}function _p(e,t){return(e%t+t)%t}function _m(e,t){return yL(e.step)?Math.max(_h(t),2):_h(e.step)}function _g(e){var t;return null!==(t=e.step)&&void 0!==t?t:1}function _v(e,t){var n;let i=Math.abs(null!==(n=e.step)&&void 0!==n?n:t);return 0===i?.1:Math.pow(10,Math.floor(Math.log10(i))-1)}function _y(e,t){return yL(e.step)?null:new yz(e.step,t)}function __(e){return yL(e.max)||yL(e.min)?yL(e.max)&&yL(e.min)?null:new yG({max:e.max,min:e.min}):new yH({max:e.max,min:e.min})}function _b(e,t){var n,i,r;return{formatter:null!==(n=e.format)&&void 0!==n?n:_c(_m(e,t)),keyScale:null!==(i=e.keyScale)&&void 0!==i?i:_g(e),pointerScale:null!==(r=e.pointerScale)&&void 0!==r?r:_v(e,t)}}function _x(e){return{format:e.optional.function,keyScale:e.optional.number,max:e.optional.number,min:e.optional.number,pointerScale:e.optional.number,step:e.optional.number}}function _C(e){return{constraint:e.constraint,textProps:yB.fromObject(_b(e.params,e.initialValue))}}class _E{constructor(e){this.controller=e}
244get element(){return this.controller.view.element}get disabled(){return this.controller.viewProps.get("disabled")}set disabled(e){this.controller.viewProps.set("disabled",e)}get hidden(){return this.controller.viewProps.get("hidden")}set hidden(e){this.controller.viewProps.set("hidden",e)}dispose(){this.controller.viewProps.set("disposed",!0)}importState(e){return this.controller.importState(e)}exportState(){return this.controller.exportState()}}class _w{constructor(e){this.target=e}}class _T extends _w{constructor(e,t,n){super(e),this.value=t,this.last=null==n||n}}class _S extends _w{constructor(e,t){super(e),this.expanded=t}}class _L extends _w{constructor(e,t){super(e),this.index=t}}class _P extends _w{constructor(e,t){super(e),this.native=t}}class _M extends _E{constructor(e){super(e),this.onValueChange_=this.onValueChange_.bind(this),this.emitter_=new yN,this.controller.value.emitter.on("change",this.onValueChange_)}get label(){return this.controller.labelController.props.get("label")}set label(e){this.controller.labelController.props.set("label",e)}get key(){return this.controller.value.binding.target.key}get tag(){return this.controller.tag}set tag(e){this.controller.tag=e}on(e,t){let n=t.bind(this);return this.emitter_.on(e,e=>{n(e)},{key:t}),this}off(e,t){return this.emitter_.off(e,t),this}refresh(){this.controller.value.fetch()}onValueChange_(e){let t=this.controller.value;this.emitter_.emit("change",new _T(this,yS(t.binding.target.read()),e.options.last))}}function _A(e,t){return yS(Object.keys(t).reduce((n,i)=>{if(void 0===n)return;let r=(0,t[i])(e[i]);return r.succeeded?Object.assign(Object.assign({},n),{[i]:r.value}):void 0},{}))}function _I(e,t){return e.reduce((e,n)=>{if(void 0===e)return;let i=t(n);if(i.succeeded&&void 0!==i.value)return[...e,i.value]},[])}function _R(e){return null!==e&&"object"==typeof e}function _k(e){return t=>n=>{if(!t&&void 0===n)return{succeeded:!1,value:void 0};if(t&&void 0===n)return{succeeded:!0,value:void 0};let i=e(n);return void 0!==i?{succeeded:!0,value:i}:{succeeded:!1,value:void 0}}}function _D(e){return{custom:t=>_k(t)(e),boolean:_k(e=>"boolean"==typeof e?e:void 0)(e),number:_k(e=>"number"==typeof e?e:void 0)(e),string:_k(e=>"string"==typeof e?e:void 0)(e),function:_k(e=>"function"==typeof e?e:void 0)(e),constant:t=>_k(e=>e===t?t:void 0)(e),raw:_k(e=>e)(e),object:t=>_k(e=>{if(_R(e))return _A(e,t)})(e),array:t=>_k(e=>{if(Array.isArray(e))return _I(e,t)})(e)}}let _N={optional:_D(!0),required:_D(!1)};function _F(e,t){let n=t(_N),i=_N.required.object(n)(e);return i.succeeded?i.value:void 0}function _O(e,t,n,i){if(t&&!t(e))return!1;let r=_F(e,n);return!!r&&i(r)}function _j(e,t){var n;return yI(null!==(n=null==e?void 0:e())&&void 0!==n?n:{},t)}let _U="http://www.w3.org/2000/svg";function _V(e){e.offsetHeight}function _B(e,t){let n=e.style.transition;e.style.transition="none",t(),e.style.transition=n}function _H(e){return void 0!==e.ontouchstart}function _G(e){let t=e.ownerDocument.defaultView;return t&&"document"in t?e.getContext("2d",{willReadFrequently:!0}):null}let _z={check:'<path d="M2 8l4 4l8 -8"/>',dropdown:'<path d="M5 7h6l-3 3 z"/>',p2dpad:'<path d="M8 4v8"/><path d="M4 8h8"/><circle cx="12" cy="12" r="1.2"/>'};function _q(e,t){let n=e.createElementNS(_U,"svg");return n.innerHTML=_z[t],n}function _W(e,t,n){e.insertBefore(t,e.children[n])}function _$(e){e.parentElement&&e.parentElement.removeChild(e)}function _Z(e){for(;e.children.length>0;)e.removeChild(e.children[0])}function _Y(e){for(;e.childNodes.length>0;)e.removeChild(e.childNodes[0])}function _K(e){return e.relatedTarget?yS(e.relatedTarget):"explicitOriginalTarget"in e?e.explicitOriginalTarget:null}function _X(e,t){e.emitter.on("change",e=>{t(e.rawValue)}),t(e.rawValue)}function _Q(e,t,n){_X(e.value(t),n)}let _J="tp";function _0(e){return(t,n)=>[_J,"-",e,"v",t?`_${t}`:"",n?`-${n}`:""].join("")}let _1=_0("lbl");function _2(e,t){let n=e.createDocumentFragment();return t.split("\n").map(t=>e.createTextNode(t)).forEach((t,i)=>{i>0&&n.appendChild(e.createElement("br")),n.appendChild(t)}),n}class _3{constructor(e,t){this.element=e.createElement("div"),this.element.classList.add(_1()),t.viewProps.bindClassModifiers(this.element);let n=e.createElement("div");n.classList.add(_1("l")),_Q(t.props,"label",t=>{yL(t)?this.element.classList.add(_1(void 0,"nol")):(this.element.classList.remove(_1(void 0,"nol")),_Y(n),n.appendChild(_2(e,t)))}),this.element.appendChild(n),this.labelElement=n;let i=e.createElement("div");i.classList.add(_1("v")),this.element.appendChild(i),this.valueElement=i}}class _5{constructor(e,t){this.props=t.props,this.valueController=t.valueController,this.viewProps=t.valueController.viewProps,this.view=new _3(e,{props:t.props,viewProps:this.viewProps}),this.view.valueElement.appendChild(this.valueController.view.element)}importProps(e){return _O(e,null,e=>({label:e.optional.string}),e=>(this.props.set("label",e.label),!0))}exportProps(){return _j(null,{label:this.props.get("label")})}}function _4(){return["veryfirst","first","last","verylast"]}let _6=_0(""),_8={veryfirst:"vfst",first:"fst",last:"lst",verylast:"vlst"};class _7{constructor(e){this.parent_=null,this.blade=e.blade,this.view=e.view,this.viewProps=e.viewProps;let t=this.view.element;this.blade.value("positions").emitter.on("change",()=>
244{_4().forEach(e=>{t.classList.remove(_6(void 0,_8[e]))}),this.blade.get("positions").forEach(e=>{t.classList.add(_6(void 0,_8[e]))})}),this.viewProps.handleDispose(()=>{_$(t)})}get parent(){return this.parent_}set parent(e){this.parent_=e,this.viewProps.set("parent",this.parent_?this.parent_.viewProps:null)}importState(e){return _O(e,null,e=>({disabled:e.required.boolean,hidden:e.required.boolean}),e=>(this.viewProps.importState(e),!0))}exportState(){return _j(null,Object.assign({},this.viewProps.exportState()))}}class _9 extends _E{get label(){return this.controller.labelController.props.get("label")}set label(e){this.controller.labelController.props.set("label",e)}get title(){var e;return null!==(e=this.controller.buttonController.props.get("title"))&&void 0!==e?e:""}set title(e){this.controller.buttonController.props.set("title",e)}on(e,t){let n=t.bind(this);return this.controller.buttonController.emitter.on(e,e=>{n(new _P(this,e.nativeEvent))}),this}off(e,t){return this.controller.buttonController.emitter.off(e,t),this}}function be(e,t,n){n?e.classList.add(t):e.classList.remove(t)}function bt(e,t){return n=>{be(e,t,n)}}function bn(e,t){_X(e,e=>{t.textContent=null!=e?e:""})}let bi=_0("btn");class br{constructor(e,t){this.element=e.createElement("div"),this.element.classList.add(bi()),t.viewProps.bindClassModifiers(this.element);let n=e.createElement("button");n.classList.add(bi("b")),t.viewProps.bindDisabled(n),this.element.appendChild(n),this.buttonElement=n;let i=e.createElement("div");i.classList.add(bi("t")),bn(t.props.value("title"),i),this.buttonElement.appendChild(i)}}class ba{constructor(e,t){this.emitter=new yN,this.onClick_=this.onClick_.bind(this),this.props=t.props,this.viewProps=t.viewProps,this.view=new br(e,{props:this.props,viewProps:this.viewProps}),this.view.buttonElement.addEventListener("click",this.onClick_)}importProps(e){return _O(e,null,e=>({title:e.optional.string}),e=>(this.props.set("title",e.title),!0))}exportProps(){return _j(null,{title:this.props.get("title")})}onClick_(e){this.emitter.emit("click",{nativeEvent:e,sender:this})}}class bs extends _7{constructor(e,t){let n=new ba(e,{props:t.buttonProps,viewProps:t.viewProps}),i=new _5(e,{blade:t.blade,props:t.labelProps,valueController:n});super({blade:t.blade,view:i.view,viewProps:t.viewProps}),this.buttonController=n,this.labelController=i}importState(e){return _O(e,e=>super.importState(e)&&this.buttonController.importProps(e)&&this.labelController.importProps(e),()=>({}),()=>!0)}exportState(){return _j(()=>super.exportState(),Object.assign(Object.assign({},this.buttonController.exportProps()),this.labelController.exportProps()))}}class bo{constructor(e){let[t,n]=e.split("-"),i=t.split(".");this.major=parseInt(i[0],10),this.minor=parseInt(i[1],10),this.patch=parseInt(i[2],10),this.prerelease=null!=n?n:null}toString(){let e=[this.major,this.minor,this.patch].join(".");return null!==this.prerelease?[e,this.prerelease].join("-"):e}}let bl=new bo("2.0.5");function bu(e){return Object.assign({core:bl},e)}function bc(e){return!!yP(e)&&"target"in e}function bd(e){return!!yP(e)&&"binding"in e&&bc(e.binding)}function bh(e,t){return e.addBlade(Object.assign(Object.assign({},t),{view:"button"}))}function bf(e,t){return e.addBlade(Object.assign(Object.assign({},t),{view:"folder"}))}function bp(e,t){return e.addBlade(Object.assign(Object.assign({},t),{view:"tab"}))}function bm(e){return!!yP(e)&&"refresh"in e&&"function"==typeof e.refresh}function bg(e,t){if(!yD.isBindable(e))throw yk.notBindable();return new yD(e,t)}bu({id:"button",type:"blade",accept(e){let t=_F(e,e=>({title:e.required.string,view:e.required.constant("button"),label:e.optional.string}));return t?{params:t}:null},controller:e=>new bs(e.document,{blade:e.blade,buttonProps:yB.fromObject({title:e.params.title}),labelProps:yB.fromObject({label:e.params.label}),viewProps:e.viewProps}),api:e=>e.controller instanceof bs?new _9(e.controller):null});class bv{constructor(e,t){this.onRackValueChange_=this.onRackValueChange_.bind(this),this.controller_=e,this.emitter_=new yN,this.pool_=t,this.controller_.rack.emitter.on("valuechange",this.onRackValueChange_)}get children(){return this.controller_.rack.children.map(e=>this.pool_.createApi(e))}addBinding(e,t,n){let i=null!=n?n:{},r=this.controller_.element.ownerDocument,a=this.pool_.createBinding(r,bg(e,t),i),s=this.pool_.createBindingApi(a);return this.add(s,i.index)}addFolder(e){return bf(this,e)}addButton(e){return bh(this,e)}addTab(e){return bp(this,e)}add(e,t){let n=e.controller;return this.controller_.rack.add(n,t),e}remove(e){this.controller_.rack.remove(e.controller)}addBlade(e){let t=this.controller_.element.ownerDocument,n=this.pool_.createBlade(t,e),i=this.pool_.createApi(n);return this.add(i,e.index)}on(e,t){let n=t.bind(this);return this.emitter_.on(e,e=>{n(e)},{key:t}),this}off(e,t){return this.emitter_.off(e,t),this}
244refresh(){this.children.forEach(e=>{bm(e)&&e.refresh()})}onRackValueChange_(e){let t=e.bladeController,n=this.pool_.createApi(t),i=bd(t.value)?t.value.binding:null;this.emitter_.emit("change",new _T(n,i?i.target.read():t.value.rawValue,e.options.last))}}class by extends _E{constructor(e,t){super(e),this.rackApi_=new bv(e.rackController,t)}refresh(){this.rackApi_.refresh()}}class b_ extends _7{constructor(e){super({blade:e.blade,view:e.view,viewProps:e.rackController.viewProps}),this.rackController=e.rackController}importState(e){return _O(e,e=>super.importState(e),e=>({children:e.required.array(e.required.raw)}),e=>this.rackController.rack.children.every((t,n)=>t.importState(e.children[n])))}exportState(){return _j(()=>super.exportState(),{children:this.rackController.rack.children.map(e=>e.exportState())})}}function bb(e){return"rackController"in e}function bx(e){return"value"in e}class bC{constructor(e){this.emitter=new yN,this.items_=[],this.cache_=new Set,this.onSubListAdd_=this.onSubListAdd_.bind(this),this.onSubListRemove_=this.onSubListRemove_.bind(this),this.extract_=e}get items(){return this.items_}allItems(){return Array.from(this.cache_)}find(e){for(let t of this.allItems())if(e(t))return t;return null}includes(e){return this.cache_.has(e)}add(e,t){if(this.includes(e))throw yk.shouldNeverHappen();let n=void 0!==t?t:this.items_.length;this.items_.splice(n,0,e),this.cache_.add(e);let i=this.extract_(e);i&&(i.emitter.on("add",this.onSubListAdd_),i.emitter.on("remove",this.onSubListRemove_),i.allItems().forEac
244h(e=>{this.cache_.add(e)})),this.emitter.emit("add",{index:n,item:e,root:this,target:this})}remove(e){let t=this.items_.indexOf(e);if(t<0)return;this.items_.splice(t,1),this.cache_.delete(e);let n=this.extract_(e);n&&(n.allItems().forEach(e=>{this.cache_.delete(e)}),n.emitter.off("add",this.onSubListAdd_),n.emitter.off("remove",this.onSubListRemove_)),this.emitter.emit("remove",{index:t,item:e,root:this,target:this})}onSubListAdd_(e){this.cache_.add(e.item),this.emitter.emit("add",{index:e.index,item:e.item,root:this,target:e.target})}onSubListRemove_(e){this.cache_.delete(e.item),this.emitter.emit("remove",{index:e.index,item:e.item,root:this,target:e.target})}}function bE(e,t){for(let n=0;n<e.length;n++){let i=e[n];if(bx(i)&&i.value===t)return i}return null}function bw(e){return bb(e)?e.rackController.rack.bcSet_:null}class bT{constructor(e){var t,n;this.emitter=new yN,this.onBladePositionsChange_=this.onBladePositionsChange_.bind(this),this.onSetAdd_=this.onSetAdd_.bind(this),this.onSetRemove_=this.onSetRemove_.bind(this),this.onChildDispose_=this.onChildDispose_.bind(this),this.onChildPositionsChange_=this.onChildPositionsChange_.bind(this),this.onChildValueChange_=this.onChildValueChange_.bind(this),this.onChildViewPropsChange_=this.onChildViewPropsChange_.bind(this),this.onRackLayout_=this.onRackLayout_.bind(this),this.onRackValueChange_=this.onRackValueChange_.bind(this),this.blade_=null!==(t=e.blade)&&void 0!==t?t:null,null===(n=this.blade_)||void 0===n||n.value("positions").emitter.on("change",this.onBladePositionsChange_),this.viewProps=e.viewProps,this.bcSet_=ne
244w bC(bw),this.bcSet_.emitter.on("add",this.onSetAdd_),this.bcSet_.emitter.on("remove",this.onSetRemove_)}get children(){return this.bcSet_.items}add(e,t){var n;null===(n=e.parent)||void 0===n||n.remove(e),e.parent=this,this.bcSet_.add(e,t)}remove(e){e.parent=null,this.bcSet_.remove(e)}find(e){return this.bcSet_.allItems().filter(e)}onSetAdd_(e){this.updatePositions_();let t=e.target===e.root;if(this.emitter.emit("add",{bladeController:e.item,index:e.index,root:t,sender:this}),!t)return;let n=e.item;if(n.viewProps.emitter.on("change",this.onChildViewPropsChange_),n.blade.value("positions").emitter.on("change",this.onChildPositionsChange_),n.viewProps.handleDispose(this.onChildDispose_),bx(n))n.value.emitter.on("change",this.onChildValueChange_);else if(bb(n)){let e=n.rackController.rack;if(e){let t=e.emitter;t.on("layout",this.onRackLayout_),t.on("valuechange",this.onRackValueChange_)}}}onSetRemove_(e){this.updatePositions_();let t=e.target===e.root;if(this.emitter.emit("remove",{bladeController:e.item,root:t,sender:this}),!t)return;let n=e.item;if(bx(n))n.value.emitter.off("change",this.onChildValueChange_);else if(bb(n)){let e=n.rackController.rack;if(e){let t=e.emitter;t.off("layout",this.onRackLayout_),t.off("valuechange",this.onRackValueChange_)}}}updatePositions_(){let e=this.bcSet_.items.filter(e=>!e.viewProps.get("hidden")),t=e[0],n=e[e.length-1];this.bcSet_.items.forEach(e=>{let i=[];e===t&&(i.push("first"),(!this.blade_||this.blade_.get("positions").includes("veryfirst"))&&i.push("veryfirst")),e===n&&(i.push("last"),(!this.blade_||this.blade_.get("positions").includes("verylast"))&&i.push("verylast")),e.blade.set("positions",i)})}onChildPositionsChange_(){this.updatePositions_(),this.emitter.emit("layout",{sender:this})}onChildViewPropsChange_(e){this.updatePositions_(),this.emitter.emit("layout",{sender:this})}onChildDispose_(){this.bcSet_.items.filter(e=>e.viewProps.get("disposed")).forEach(e=>{this.bcSet_.remove(e)})}onChildValueChange_(e){let t=bE(this.find(bx),e.sender);if(!t)throw yk.alreadyDisposed();this.emitter.emit("valuechange",{bladeController:t,options:e.options,sender:this})}onRackLayout_(e){this.updatePositions_(),this.emitter.emit("layout",{sender:this})}onRackValueChange_(e){this.emitter.emit("valuechange",{bladeController:e.bladeController,options:e.options,sender:this})}onBladePositionsChange_(){this.updatePositions_()}}class bS{constructor(e){this.onRackAdd_=this.onRackAdd_.bind(this),this.onRackRemove_=this.onRackRemove_.bind(this),this.element=e.element,this.viewProps=e.viewProps;let t=new bT({blade:e.root?void 0:e.blade,viewProps:e.viewProps});t.emitter.on("add",this.onRackAdd_),t.emitter.on("remove",this.onRackRemove_),this.rack=t,this.viewProps.handleDispose(()=>{for(let e=this.rack.children.length-1;e>=0;e--)this.rack.children[e].viewProps.set("disposed",!0)})}onRackAdd_(e){e.root&&_W(this.element,e.bladeController.view.element,e.index)}onRackRemove_(e){e.root&&_$(e.bladeController.view.element)}}class bL extends yB{constructor(e){super(e)}static create(e){let t={completed:!0,expanded:e,expandedHeight:null,shouldFixHeight:!1,temporaryExpanded:null};return new bL(yB.createCore(t))}get styleExpanded(){var e;return null!==(e=this.get("temporaryExpanded"))&&void 0!==e?e:this.get("expanded")}get styleHeight(){if(!this.styleExpanded)return"0";let e=this.get("expandedHeight");return this.get("shouldFixHeight")&&!yL(e)?`${e}px`:"auto"}bindExpandedClass(e,t){let n=()=>{this.styleExpanded?e.classList.add(t):e.classList.remove(t)};_Q(this,"expanded",n),_Q(this,"temporaryExpanded",n)}cleanUpTransition(){this.set("shouldFixHeight",!1),this.set("expandedHeight",null),this.set("completed",!0)}}function bP(e,t){let n=0;return _B(t,()=>{e.set("expandedHeight",null),e.set("temporaryExpanded",!0),_V(t),n=t.clientHeight,e.set("temporaryExpanded",null),_V(t)}),n}function bM(e,t){t.style.height=e.styleHeight}function bA(e,t){e.value("expanded").emitter.on("beforechange",()=>{if(e.set("completed",!1),yL(e.get("expandedHeight"))){let n=bP(e,t);n>0&&e.set("expandedHeight",n)}e.set("shouldFixHeight",!0),_V(t)}),e.emitter.on("change",()=>{bM(e,t)}),bM(e,t),t.addEventListener("transitionend",t=>{"height"===t.propertyName&&e.cleanUpTransition()})}class bI extends by{constructor(e,t){super(e,t),this.emitter_=new yN,this.controller.foldable.value("expanded").emitter.on("change",e=>{this.emitter_.emit("fold",new _S(this,e.sender.rawValue))}),this.rackApi_.on("change",e=>{this.emitter_.emit("change",e)})}get expanded(){return this.controller.foldable.get("expanded")}set expanded(e){this.controller.foldable.set("expanded",e)}get title(){return this.controller.props.get("title")}set title(e){this.controller.props.set("title",e)}get children(){return this.rackApi_.children}addBinding(e,t,n){return this.rackApi_.addBinding(e,t,n)}addFolder(e){return this.rackApi_.addFolder(e)}addButton(e){return this.rackApi_.addButton(e)}addTab(e){return this.rackApi_.addTab(e)}add(e,t){return this.rackApi_.add(e,t)}remove(e){this.rackApi_.remove(e)}
244addBlade(e){return this.rackApi_.addBlade(e)}on(e,t){let n=t.bind(this);return this.emitter_.on(e,e=>{n(e)},{key:t}),this}off(e,t){return this.emitter_.off(e,t),this}}let bR=_0("cnt");class bk{constructor(e,t){var n;this.className_=_0(null!==(n=t.viewName)&&void 0!==n?n:"fld"),this.element=e.createElement("div"),this.element.classList.add(this.className_(),bR()),t.viewProps.bindClassModifiers(this.element),this.foldable_=t.foldable,this.foldable_.bindExpandedClass(this.element,this.className_(void 0,"expanded")),_Q(this.foldable_,"completed",bt(this.element,this.className_(void 0,"cpl")));let i=e.createElement("button");i.classList.add(this.className_("b")),_Q(t.props,"title",e=>{yL(e)?this.element.classList.add(this.className_(void 0,"not")):this.element.classList.remove(this.className_(void 0,"not"))}),t.viewProps.bindDisabled(i),this.element.appendChild(i),this.buttonElement=i;let r=e.createElement("div");r.classList.add(this.className_("i")),this.element.appendChild(r);let a=e.createElement("div");a.classList.add(this.className_("t")),bn(t.props.value("title"),a),this.buttonElement.appendChild(a),this.titleElement=a;let s=e.createElement("div");s.classList.add(this.className_("m")),this.buttonElement.appendChild(s);let o=e.createElement("div");o.classList.add(this.className_("c")),this.element.appendChild(o),this.containerElement=o}}class bD extends b_{constructor(e,t){var n;let i=bL.create(null===(n=t.expanded)||void 0===n||n),r=new bk(e,{foldable:i,props:t.props,viewName:t.root?"rot":void 0,viewProps:t.viewProps});super(Object.assign(Object.assign({},t),{rackController:new bS({blade:t.blade,element:r.containerElement,root:t.root,viewProps:t.viewProps}),view:r})),this.onTitleClick_=this.onTitleClick_.bind(this),this.props=t.props,this.foldable=i,bA(this.foldable,this.view.containerElement),this.rackController.rack.emitter.on("add",()=>{this.foldable.cleanUpTransition()}),this.rackController.rack.emitter.on("remove",()=>{this.foldable.cleanUpTransition()}),this.view.buttonElement.addEventListener("click",this.onTitleClick_)}get document(){return this.view.element.ownerDocument}importState(e){return _O(e,e=>super.importState(e),e=>({expanded:e.required.boolean,title:e.optional.string}),e=>(this.foldable.set("expanded",e.expanded),this.props.set("title",e.title),!0))}exportState(){return _j(()=>super.exportState(),{expanded:this.foldable.get("expanded"),title:this.props.get("title")})}onTitleClick_(){this.foldable.set("expanded",!this.foldable.get("expanded"))}}bu({id:"folder",type:"blade",accept(e){let t=_F(e,e=>({title:e.required.string,view:e.required.constant("folder"),expanded:e.optional.boolean}));return t?{params:t}:null},controller:e=>new bD(e.document,{blade:e.blade,expanded:e.params.expanded,props:yB.fromObject({title:e.params.title}),viewProps:e.viewProps}),api:e=>e.controller instanceof bD?new bI(e.controller,e.pool):null});let bN=_0("");function bF(e,t){return bt(e,bN(void 0,t))}class bO extends yB{constructor(e){var t;super(e),this.onDisabledChange_=this.onDisabledChange_.bind(this),this.onParentChange_=this.onParentChange_.bind(this),this.onParentGlobalDisabledChange_=this.onParentGlobalDisabledChange_.bind(this),[this.globalDisabled_,this.setGlobalDisabled_]=yV(yU(this.getGlobalDisabled_())),this.value("disabled").emitter.on("change",this.onDisabledChange_),this.value("parent").emitter.on("change",this.onParentChange_),null===(t=this.get("parent"))||void 0===t||t.globalDisabled.emitter.on("change",this.onParentGlobalDisabledChange_)}static create(e){var t,n,i;let r=null!=e?e:{};return new bO(yB.createCore({disabled:null!==(t=r.disabled)&&void 0!==t&&t,disposed:!1,hidden:null!==(n=r.hidden)&&void 0!==n&&n,parent:null!==(i=r.parent)&&void 0!==i?i:null}))}get globalDisabled(){return this.globalDisabled_}bindClassModifiers(e){_X(this.globalDisabled_,bF(e,"disabled")),_Q(this,"hidden",bF(e,"hidden"))}bindDisabled(e){_X(this.globalDisabled_,t=>{e.disabled=t})}bindTabIndex(e){_X(this.globalDisabled_,t=>{e.tabIndex=t?-1:0})}handleDispose(e){this.value("disposed").emitter.on("change",t=>{t&&e()})}importState(e){this.set("disabled",e.disabled),this.set("hidden",e.hidden)}exportState(){return{disabled:this.get("disabled"),hidden:this.get("hidden")}}getGlobalDisabled_(){let e=this.get("parent");return!!e&&e.globalDisabled.rawValue||this.get("disabled")}updateGlobalDisabled_(){this.setGlobalDisabled_(this.getGlobalDisabled_())}onDisabledChange_(){this.updateGlobalDisabled_()}onParentGlobalDisabledChange_(){this.updateGlobalDisabled_()}onParentChange_(e){var t;let n=e.previousRawValue;null==n||n.globalDisabled.emitter.off("change",this.onParentGlobalDisabledChange_),null===(t=this.get("parent"))||void 0===t||t.globalDisabled.emitter.on("change",this.onParentGlobalDisabledChange_),this.updateGlobalDisabled_()}}function bj(){return new yB({positions:yU([],{equals:yA})})}let bU=_0("tbp");class bV{constructor(e,t){this.element=e.createElement("div"),this.element.classList.add(bU()),t.viewProps.bindClassModifiers(this.element);let n=e.createElement("div");n.classList.add(bU("c")),this.element.appendChild(n),this.containerElement=n}}let bB=_0("tbi");class bH{constructor(e,t){this.element=e.createElement("div"),this.element.classList.add(bB()),t.viewProps.bindClassModifiers(this.element),_Q(t.props,"selected",e=>{e?this.element.classList.add(bB(void 0,"sel")):this.element.classList.remove(bB(void 0,"sel"))});let n=e.createElement("button");n.classList.add(bB("b")),t.viewProps.bindDisabled(n),this.element.appendChild(n),this.buttonElement=n;let i=e.createElement("div");i.classList.add(bB("t")),bn(t.props.value("title"),i),this.buttonElement.appendChild(i),this.titleElement=i}}class bG{constructor(e,t){this.emitter=new yN,this.onClick_=this.onClick_.bind(this),this.props=t.props,this.viewProps=t.viewProps,this.view=new bH(e,{props:t.props,viewProps:t.viewProps}),this.view.buttonElement.addEventListener("click",this.onClick_)}onClick_(){this.emitter.emit("click",{sender:this})}}class bz extends b_{constructor(e,t){let n=new bV(e,{viewProps:t.viewProps});super(Object.assign(Object.assign({},t),{rackController:new bS({blade:t.blade,element:n.containerElement,viewProps:t.viewProps}),view:n})),this.onItemClick_=this.onItemClick_.bind(this),this.ic_=new bG(e,{props:t.itemProps,viewProps:bO.create()}),this.ic_.emitter.on("click",this.onItemClick_),this.props=t.props,_Q(this.props,"selected",e=>{this.itemController.props.set("selected",e),this.viewProps.set("hidden",!e)})}get itemController(){return this.ic_}importState(e){return _O(e,e=>super.importState(e),e=>({selected:e.required.boolean,title:e.required.string}),e=>(this.ic_.props.set("selected",e.selected),this.ic_.props.set("title",e.title),!0))}exportState(){return _j(()=>super.exportState(),{selected:this.ic_.props.get("selected"),title:this.ic_.props.get("title")})}onItemClick_(){this.props.set("selected",!0)}}class bq extends by{constructor(e,t){super(e,t),this.emitter_=new yN,this.onSelect_=this.onSelect_.bind(this),this.pool_=t,this.rackApi_.on("change",e=>{this.emitter_.emit("change",e)}),this.controller.tab.selectedIndex.emitter.on("change",this.onSelect_)}get pages(){return this.rackApi_.children}addPage(e){let t=new bz(this.controller.view.element.ownerDocument,{blade:bj(),itemProps:yB.fromObject({selected:!1,title:e.title}),props:yB.fromObject({selected:!1}),viewProps:bO.create()}),n=this.pool_.createApi(t);return this.rackApi_.add(n,e.index)}removePage(e){this.rackApi_.remove(this.rackApi_.children[e])}on(e,t){let n=t.bind(this);return this.emitter_.on(e,e=>{n(e)},{key:t}),this}off(e,t){return this.emitter_.off(e,t),this}onSelect_(e){this.emitter_.emit("select",new _L(this,e.rawValue))}}class bW extends by{get title(){var e;return null!==(e=this.controller.itemController.props.get("title"))&&void 0!==e?e:""}set title(e){this.controller.itemController.props.set("title",e)}get selected(){return this.controller.props.get("selected")}set selected(e){this.controller.props.set("selected",e)}get children(){return this.rackApi_.children}addButton(e){return this.rackApi_.addButton(e)}addFolder(e){return this.rackApi_.addFolder(e)}addTab(e){return this.rackApi_.addTab(e)}add(e,t){this.rackApi_.add(e,t)}remove(e){this.rackApi_.remove(e)}
244addBinding(e,t,n){return this.rackApi_.addBinding(e,t,n)}addBlade(e){return this.rackApi_.addBlade(e)}}let b$=-1;class bZ{constructor(){this.onItemSelectedChange_=this.onItemSelectedChange_.bind(this),this.empty=yU(!0),this.selectedIndex=yU(b$),this.items_=[]}add(e,t){let n=null!=t?t:this.items_.length;this.items_.splice(n,0,e),e.emitter.on("change",this.onItemSelectedChange_),this.keepSelection_()}remove(e){let t=this.items_.indexOf(e);t<0||(this.items_.splice(t,1),e.emitter.off("change",this.onItemSelectedChange_),this.keepSelection_())}keepSelection_(){if(0===this.items_.length){this.selectedIndex.rawValue=b$,this.empty.rawValue=!0;return}let e=this.items_.findIndex(e=>e.rawValue);e<0?(this.items_.forEach((e,t)=>{e.rawValue=0===t}),this.selectedIndex.rawValue=0):(this.items_.forEach((t,n)=>{t.rawValue=n===e}),this.selectedIndex.rawValue=e),this.empty.rawValue=!1}onItemSelectedChange_(e){if(e.rawValue){let t=this.items_.findIndex(t=>t===e.sender);this.items_.forEach((e,n)=>{e.rawValue=n===t}),this.selectedIndex.rawValue=t}else this.keepSelection_()}}let bY=_0("tab");class bK{constructor(e,t){this.element=e.createElement("div"),this.element.classList.add(bY(),bR()),t.viewProps.bindClassModifiers(this.element),_X(t.empty,bt(this.element,bY(void 0,"nop")));let n=e.createElement("div");n.classList.add(bY("t")),this.element.appendChild(n),this.itemsElement=n;let i=e.createElement("div");i.classList.add(bY("i")),this.element.appendChild(i);let r=e.createElement("div");r.classList.add(bY("c")),this.element.appendChild(r),this.contentsElement=r}}class bX extends b_{constructor(e,t){let n=new bZ,i=new bK(e,{empty:n.empty,viewProps:t.viewProps});super({blade:t.blade,rackController:new bS({blade:t.blade,element:i.contentsElement,viewProps:t.viewProps}),view:i}),this.onRackAdd_=this.onRackAdd_.bind(this),this.onRackRemove_=this.onRackRemove_.bind(this);let r=this.rackController.rack;r.emitter.on("add",this.onRackAdd_),r.emitter.on("remove",this.onRackRemove_),this.tab=n}add(e,t){this.rackController.rack.add(e,t)}remove(e){this.rackController.rack.remove(this.rackController.rack.children[e])}onRackAdd_(e){if(!e.root)return;let t=e.bladeController;_W(this.view.itemsElement,t.itemController.view.element,e.index),t.itemController.viewProps.set("parent",this.viewProps),this.tab.add(t.props.value("selected"))}onRackRemove_(e){if(!e.root)return;let t=e.bladeController;_$(t.itemController.view.element),t.itemController.viewProps.set("parent",null),this.tab.remove(t.props.value("selected"))}}bu({id:"tab",type:"blade",accept(e){let t=_F(e,e=>({pages:e.required.array(e.required.object({title:e.required.string})),view:e.required.constant("tab")}));return t&&0!==t.pages.length?{params:t}:null},controller(e){let t=new bX(e.document,{blade:e.blade,viewProps:e.viewProps});return e.params.pages.forEach(n=>{let i=new bz(e.document,{blade:bj(),itemProps:yB.fromObject({selected:!1,title:n.title}),props:yB.fromObject({selected:!1}),viewProps:bO.create()});t.add(i)}),t},api:e=>e.controller instanceof bX?new bq(e.controller,e.pool):e.controller instanceof bz?new bW(e.controller,e.pool):null});class bQ extends _M{get options(){return this.controller.valueController.props.get("options")}set options(e){this.controller.valueController.props.set("options",e)}}class bJ{constructor(e){this.values=yB.fromObject({options:e})}constrain(e){let t=this.values.get("options");return 0===t.length?e:t.filter(t=>t.value===e).length>0?e:t[0].value}}function b0(e){var t;let n=_N;return Array.isArray(e)?null===(t=_F({items:e},e=>({items:e.required.array(e.required.object({text:e.required.string,value:e.required.raw}))})))||void 0===t?void 0:t.items:"object"==typeof e?n.required.raw(e).value:void 0}function b1(e){if(Array.isArray(e))return e;let t=[];return Object.keys(e).forEach(n=>{t.push({text:n,value:e[n]})}),t}function b2(e){return yL(e)?null:new bJ(b1(yS(e)))}let b3=_0("lst");class b5{constructor(e,t){this.onValueChange_=this.onValueChange_.bind(this),this.props_=t.props,this.element=e.createElement("div"),this.element.classList.add(b3()),t.viewProps.bindClassModifiers(this.element);let n=e.createElement("select");n.classList.add(b3("s")),t.viewProps.bindDisabled(n),this.element.appendChild(n),this.selectElement=n;let i=e.createElement("div");i.classList.add(b3("m")),i.appendChild(_q(e,"dropdown")),this.element.appendChild(i),t.value.emitter.on("change",this.onValueChange_),this.value_=t.value,_Q(this.props_,"options",t=>{_Z(this.selectElement),t.forEach(t=>{let n=e.createElement("option");n.textContent=t.text,this.selectElement.appendChild(n)}),this.update_()})}update_(){let e=this.props_.get("options").map(e=>e.value);this.selectElement.selectedIndex=e.indexOf(this.value_.rawValue)}onValueChange_(){this.update_()}}class b4{constructor(e,t){this.onSelectChange_=this.onSelectChange_.bind(this),this.props=t.props,this.value=t.value,this.viewProps=t.viewProps,this.view=new b5(e,{props:this.props,value:this.value,viewProps:this.viewProps}),this.view.selectElement.addEventListener("change",this.onSelectChange_)}onSelectChange_(e){let t=yS(e.currentTarget);this.value.rawValue=this.props.get("options")[t.selectedIndex].value}importProps(e){return _O(e,null,e=>({options:e.required.custom(b0)}),e=>(this.props.set("options",b1(e.options)),!0))}exportProps(){return _j(null,{options:this.props.get("options")})}}let b6=_0("pop");class b8{constructor(e,t){this.element=e.createElement("div"),this.element.classList.add(b6()),t.viewProps.bindClassModifiers(this.element),_X(t.shows,bt(this.element,b6(void 0,"v")))}}class b7{constructor(e,t){this.shows=yU(!1),this.viewProps=t.viewProps,this.view=new b8(e,{shows:this.shows,viewProps:this.viewProps})}}let b9=_0("txt");class xe{constructor(e,t){this.onChange_=this.onChange_.bind(this),this.element=e.createElement("div"),this.element.classList.add(b9()),t.viewProps.bindClassModifiers(this.element),this.props_=t.props,this.props_.emitter.on("change",this.onChange_);let n=e.createElement("input");n.classList.add(b9("i")),n.type="text",t.viewProps.bindDisabled(n),this.element.appendChild(n),this.inputElement=n,t.value.emitter.on("change",this.onChange_),this.value_=t.value,this.refresh()}refresh(){let e=this.props_.get("formatter");this.inputElement.value=e(this.value_.rawValue)}onChange_(){this.refresh()}}class xt{constructor(e,t){this.onInputChange_=this.onInputChange_.bind(this),this.parser_=t.parser,this.props=t.props,this.value=t.value,this.viewProps=t.viewProps,this.view=new xe(e,{props:t.props,value:this.value,viewProps:this.viewProps}),this.view.inputElement.addEventListener("change",this.onInputChange_)}
244onInputChange_(e){let t=yS(e.currentTarget).value,n=this.parser_(t);yL(n)||(this.value.rawValue=n),this.view.refresh()}}let xn=_c(0);function xi(e){return xn(e)+"%"}function xr(e,t){let n=e*(t.altKey?.1:1)*(t.shiftKey?10:1);return t.upKey?+n:t.downKey?-n:0}function xa(e){return{altKey:e.altKey,downKey:"ArrowDown"===e.key,shiftKey:e.shiftKey,upKey:"ArrowUp"===e.key}}function xs(e){return{altKey:e.altKey,downKey:"ArrowLeft"===e.key,shiftKey:e.shiftKey,upKey:"ArrowRight"===e.key}}function xo(e){return"ArrowUp"===e||"ArrowDown"===e}function xl(e){return xo(e)||"ArrowLeft"===e||"ArrowRight"===e}function xu(e,t){var n,i;let r=t.ownerDocument.defaultView,a=t.getBoundingClientRect();return{x:e.pageX-((null!==(n=r&&r.scrollX)&&void 0!==n?n:0)+a.left),y:e.pageY-((null!==(i=r&&r.scrollY)&&void 0!==i?i:0)+a.top)}}class xc{constructor(e){this.lastTouch_=null,this.onDocumentMouseMove_=this.onDocumentMouseMove_.bind(this),this.onDocumentMouseUp_=this.onDocumentMouseUp_.bind(this),this.onMouseDown_=this.onMouseDown_.bind(this),this.onTouchEnd_=this.onTouchEnd_.bind(this),this.onTouchMove_=this.onTouchMove_.bind(this),this.onTouchStart_=this.onTouchStart_.bind(this),this.elem_=e,this.emitter=new yN,e.addEventListener("touchstart",this.onTouchStart_,{passive:!1}),e.addEventListener("touchmove",this.onTouchMove_,{passive:!0}),e.addEventListener("touchend",this.onTouchEnd_),e.addEventListener("mousedown",this.onMouseDown_)}computePosition_(e){let t=this.elem_.getBoundingClientRect();return{bounds:{width:t.width,height:t.height},point:e?{x:e.x,y:e.y}:null}}onMouseDown_(e){var t;e.preventDefault(),null===(t=e.currentTarget)||void 0===t||t.focus();let n=this.elem_.ownerDocument;n.addEventListener("mousemove",this.onDocumentMouseMove_),n.addEventListener("mouseup",this.onDocumentMouseUp_),this.emitter.emit("down",{altKey:e.altKey,data:this.computePosition_(xu(e,this.elem_)),sender:this,shiftKey:e.shiftKey})}onDocumentMouseMove_(e){this.emitter.emit("move",{altKey:e.altKey,data:this.computePosition_(xu(e,this.elem_)),sender:this,shiftKey:e.shiftKey})}onDocumentMouseUp_(e){let t=this.elem_.ownerDocument;t.removeEventListener("mousemove",this.onDocumentMouseMove_),t.removeEventListener("mouseup",this.onDocumentMouseUp_),this.emitter.emit("up",{altKey:e.altKey,data:this.computePosition_(xu(e,this.elem_)),sender:this,shiftKey:e.shiftKey})}onTouchStart_(e){e.preventDefault();let t=e.targetTouches.item(0),n=this.elem_.getBoundingClientRect();this.emitter.emit("down",{altKey:e.altKey,data:this.computePosition_(t?{x:t.clientX-n.left,y:t.clientY-n.top}:void 0),sender:this,shiftKey:e.shiftKey}),this.lastTouch_=t}onTouchMove_(e){let t=e.targetTouches.item(0),n=this.elem_.getBoundingClientRect();this.emitter.emit("move",{altKey:e.altKey,data:this.computePosition_(t?{x:t.clientX-n.left,y:t.clientY-n.top}:void 0),sender:this,shiftKey:e.shiftKey}),this.lastTouch_=t}onTouchEnd_(e){var t;let n=null!==(t=e.targetTouches.item(0))&&void 0!==t?t:this.lastTouch_,i=this.elem_.getBoundingClientRect();this.emitter.emit("up",{altKey:e.altKey,data:this.computePosition_(n?{x:n.clientX-i.left,y:n.clientY-i.top}:void 0),sender:this,shiftKey:e.shiftKey})}}let xd=_0("txt");class xh{constructor(e,t){this.onChange_=this.onChange_.bind(this),this.props_=t.props,this.props_.emitter.on("change",this.onChange_),this.element=e.createElement("div"),this.element.classList.add(xd(),xd(void 0,"num")),t.arrayPosition&&this.element.classList.add(xd(void 0,t.arrayPosition)),t.viewProps.bindClassModifiers(this.element);let n=e.createElement("input");n.classList.add(xd("i")),n.type="text",t.viewProps.bindDisabled(n),this.element.appendChild(n),this.inputElement=n,this.onDraggingChange_=this.onDraggingChange_.bind(this),this.dragging_=t.dragging,this.dragging_.emitter.on("change",this.onDraggingChange_),this.element.classList.add(xd()),this.inputElement.classList.add(xd("i"));let i=e.createElement("div");i.classList.add(xd("k")),this.element.appendChild(i),this.knobElement=i;let r=e.createElementNS(_U,"svg");r.classList.add(xd("g")),this.knobElement.appendChild(r);let a=e.createElementNS(_U,"path");a.classList.add(xd("gb")),r.appendChild(a),this.guideBodyElem_=a;let s=e.createElementNS(_U,"path");s.classList.add(xd("gh")),r.appendChild(s),this.guideHeadElem_=s;let o=e.createElement("div");o.classList.add(_0("tt")()),this.knobElement.appendChild(o),this.tooltipElem_=o,t.value.emitter.on("change",this.onChange_),this.value=t.value,this.refresh()}onDraggingChange_(e){if(null===e.rawValue){this.element.classList.remove(xd(void 0,"drg"));return}this.element.classList.add(xd(void 0,"drg"));let t=e.rawValue/this.props_.get("pointerScale"),n=t+(t>0?-1:t<0?1:0),i=_f(-n,-4,4);this.guideHeadElem_.setAttributeNS(null,"d",`M ${n+i},0 L${n},4 L${n+i},8 M ${t},-1 L${t},9`),this.guideBodyElem_.setAttributeNS(null,"d",`M 0,4 L${t},4`);let r=this.props_.get("formatter");this.tooltipElem_.textContent=r(this.value.rawValue),this.tooltipElem_.style.left=`${t}px`}refresh(){let e=this.props_.get("formatter");this.inputElement.value=e(this.value.rawValue)}onChange_(){this.refresh()}}class xf{constructor(e,t){var n;this.originRawValue_=0,this.onInputChange_=this.onInputChange_.bind(this),this.onInputKeyDown_=this.onInputKeyDown_.bind(this),this.onInputKeyUp_=this.onInputKeyUp_.bind(this),this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.parser_=t.parser,this.props=t.props,this.sliderProps_=null!==(n=t.sliderProps)&&void 0!==n?n:null,this.value=t.value,this.viewProps=t.viewProps,this.dragging_=yU(null),this.view=new xh(e,{arrayPosition:t.arrayPosition,dragging:this.dragging_,props:this.props,value:this.value,viewProps:this.viewProps}),this.view.inputElement.addEventListener("change",this.onInputChange_),this.view.inputElement.addEventListener("keydown",this.onInputKeyDown_),this.view.inputElement.addEventListener("keyup",this.onInputKeyUp_);let i=new xc(this.view.knobElement);i.emitter.on("down",this.onPointerDown_),i.emitter.on("move",this.onPointerMove_),i.emitter.on("up",this.onPointerUp_)}constrainValue_(e){var t,n;let i=null===(t=this.sliderProps_)||void 0===t?void 0:t.get("min"),r=null===(n=this.sliderProps_)||void 0===n?void 0:n.get("max"),a=e;return void 0!==i&&(a=Math.max(a,i)),void 0!==r&&(a=Math.min(a,r)),a}
244onInputChange_(e){let t=yS(e.currentTarget).value,n=this.parser_(t);yL(n)||(this.value.rawValue=this.constrainValue_(n)),this.view.refresh()}onInputKeyDown_(e){let t=xr(this.props.get("keyScale"),xa(e));0!==t&&this.value.setRawValue(this.constrainValue_(this.value.rawValue+t),{forceEmit:!1,last:!1})}onInputKeyUp_(e){0!==xr(this.props.get("keyScale"),xa(e))&&this.value.setRawValue(this.value.rawValue,{forceEmit:!0,last:!0})}onPointerDown_(){this.originRawValue_=this.value.rawValue,this.dragging_.rawValue=0}computeDraggingValue_(e){if(!e.point)return null;let t=e.point.x-e.bounds.width/2;return this.constrainValue_(this.originRawValue_+t*this.props.get("pointerScale"))}onPointerMove_(e){let t=this.computeDraggingValue_(e.data);null!==t&&(this.value.setRawValue(t,{forceEmit:!1,last:!1}),this.dragging_.rawValue=this.value.rawValue-this.originRawValue_)}onPointerUp_(e){let t=this.computeDraggingValue_(e.data);null!==t&&(this.value.setRawValue(t,{forceEmit:!0,last:!0}),this.dragging_.rawValue=null)}}let xp=_0("sld");class xm{constructor(e,t){this.onChange_=this.onChange_.bind(this),this.props_=t.props,this.props_.emitter.on("change",this.onChange_),this.element=e.createElement("div"),this.element.classList.add(xp()),t.viewProps.bindClassModifiers(this.element);let n=e.createElement("div");n.classList.add(xp("t")),t.viewProps.bindTabIndex(n),this.element.appendChild(n),this.trackElement=n;let i=e.createElement("div");i.classList.add(xp("k")),this.trackElement.appendChild(i),this.knobElement=i,t.value.emitter.on("change",this.onChange_),this.value=t.value,this.update_()}update_(){let e=_f(_d(this.value.rawValue,this.props_.get("min"),this.props_.get("max"),0,100),0,100);this.knobElement.style.width=`${e}%`}onChange_(){this.update_()}}class xg{constructor(e,t){this.onKeyDown_=this.onKeyDown_.bind(this),this.onKeyUp_=this.onKeyUp_.bind(this),this.onPointerDownOrMove_=this.onPointerDownOrMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.value=t.value,this.viewProps=t.viewProps,this.props=t.props,this.view=new xm(e,{props:this.props,value:this.value,viewProps:this.viewProps}),this.ptHandler_=new xc(this.view.trackElement),this.ptHandler_.emitter.on("down",this.onPointerDownOrMove_),this.ptHandler_.emitter.on("move",this.onPointerDownOrMove_),this.ptHandler_.emitter.on("up",this.onPointerUp_),this.view.trackElement.addEventListener("keydown",this.onKeyDown_),this.view.trackElement.addEventListener("keyup",this.onKeyUp_)}handlePointerEvent_(e,t){e.point&&this.value.setRawValue(_d(_f(e.point.x,0,e.bounds.width),0,e.bounds.width,this.props.get("min"),this.props.get("max")),t)}onPointerDownOrMove_(e){this.handlePointerEvent_(e.data,{forceEmit:!1,last:!1})}onPointerUp_(e){this.handlePointerEvent_(e.data,{forceEmit:!0,last:!0})}onKeyDown_(e){let t=xr(this.props.get("keyScale"),xs(e));0!==t&&this.value.setRawValue(this.value.rawValue+t,{forceEmit:!1,last:!1})}onKeyUp_(e){0!==xr(this.props.get("keyScale"),xs(e))&&this.value.setRawValue(this.value.rawValue,{forceEmit:!0,last:!0})}}let xv=_0("sldtxt");class xy{constructor(e,t){this.element=e.createElement("div"),this.element.classList.add(xv());let n=e.createElement("div");n.classList.add(xv("s")),this.sliderView_=t.sliderView,n.appendChild(this.sliderView_.element),this.element.appendChild(n);let i=e.createElement("div");i.classList.add(xv("t")),this.textView_=t.textView,i.appendChild(this.textView_.element),this.element.appendChild(i)}}class x_{constructor(e,t){this.value=t.value,this.viewProps=t.viewProps,this.sliderC_=new xg(e,{props:t.sliderProps,value:t.value,viewProps:this.viewProps}),this.textC_=new xf(e,{parser:t.parser,props:t.textProps,sliderProps:t.sliderProps,value:t.value,viewProps:t.viewProps}),this.view=new xy(e,{sliderView:this.sliderC_.view,textView:this.textC_.view})}get sliderController(){return this.sliderC_}get textController(){return this.textC_}importProps(e){return _O(e,null,e=>({max:e.required.number,min:e.required.number}),e=>{let t=this.sliderC_.props;return t.set("max",e.max),t.set("min",e.min),!0})}exportProps(){let e=this.sliderC_.props;return _j(null,{max:e.get("max"),min:e.get("min")})}}function xb(e){return{sliderProps:new yB({keyScale:e.keyScale,max:e.max,min:e.min}),textProps:new yB({formatter:yU(e.formatter),keyScale:e.keyScale,pointerScale:yU(e.pointerScale)})}}let xx={containerUnitSize:"cnt-usz"};function xC(e){return`--${xx[e]}`}class xE{constructor(e){this.constraints=e}constrain(e){return this.constraints.reduce((e,t)=>
244t.constrain(e),e)}}function xw(e,t){if(e instanceof t)return e;if(e instanceof xE){let n=e.constraints.reduce((e,n)=>e||(n instanceof t?n:null),null);if(n)return n}return null}function xT(e){return _x(e)}function xS(e){if(yM(e))return _F(e,xT)}function xL(e,t){if(!e)return;let n=[],i=_y(e,t);i&&n.push(i);let r=__(e);return r&&n.push(r),new xE(n)}let xP=_0("ckb");class xM{constructor(e,t){this.onValueChange_=this.onValueChange_.bind(this),this.element=e.createElement("div"),this.element.classList.add(xP()),t.viewProps.bindClassModifiers(this.element);let n=e.createElement("label");n.classList.add(xP("l")),this.element.appendChild(n),this.labelElement=n;let i=e.createElement("input");i.classList.add(xP("i")),i.type="checkbox",this.labelElement.appendChild(i),this.inputElement=i,t.viewProps.bindDisabled(this.inputElement);let r=e.createElement("div");r.classList.add(xP("w")),this.labelElement.appendChild(r);let a=_q(e,"check");r.appendChild(a),t.value.emitter.on("change",this.onValueChange_),this.value=t.value,this.update_()}update_(){this.inputElement.checked=this.value.rawValue}onValueChange_(){this.update_()}}class xA{constructor(e,t){this.onInputChange_=this.onInputChange_.bind(this),this.onLabelMouseDown_=this.onLabelMouseDown_.bind(this),this.value=t.value,this.viewProps=t.viewProps,this.view=new xM(e,{value:this.value,viewProps:this.viewProps}),this.view.inputElement.addEventListener("change",this.onInputChange_),this.view.labelElement.addEventListener("mousedown",this.onLabelMouseDown_)}onInputChange_(e){let t=yS(e.currentTarget);this.value.rawValue=t.checked,e.preventDefault(),e.stopPropagation()}onLabelMouseDown_(e){e.preventDefault()}}function xI(e){return String(e)}function xR(e){return"false"!==e&&!!e}function xk(e){return xI(e)}function xD(e,t){e.write(t)}function xN(e){let t=[],n=b2(e.options);return n&&t.push(n),new xE(t)}function xF({primary:e,secondary:t,forward:n,backward:i}){let r=!1;function a(e){r||(r=!0,e(),r=!1)}e.emitter.on("change",i=>{a(()=>{t.setRawValue(n(e.rawValue,t.rawValue),i.options)})}),t.emitter.on("change",r=>{a(()=>{e.setRawValue(i(e.rawValue,t.rawValue),r.options)}),a(()=>{t.setRawValue(n(e.rawValue,t.rawValue),r.options)})}),a(()=>{t.setRawValue(n(e.rawValue,t.rawValue),{forceEmit:!1,last:!0})})}bu({id:"input-bool",type:"input",accept:(e,t)=>{if("boolean"!=typeof e)return null;let n=_F(t,e=>({options:e.optional.custom(b0),readonly:e.optional.constant(!1)}));return n?{initialValue:e,params:n}:null},binding:{reader:e=>xR,constraint:e=>xN(e.params),writer:e=>xD},controller:e=>{let t=e.document,n=e.value,i=e.constraint,r=i&&xw(i,bJ);return r?new b4(t,{props:new yB({options:r.values.value("options")}),value:n,viewProps:e.viewProps}):new xA(t,{value:n,viewProps:e.viewProps})},api:e=>"boolean"!=typeof e.controller.value.rawValue?null:e.controller.valueController instanceof b4?new bQ(e.controller):null});let xO=_0("col");class xj{constructor(e,t){this.element=e.createElement("div"),this.element.classList.add(xO()),t.foldable.bindExpandedClass(this.element,xO(void 0,"expanded")),_Q(t.foldable,"completed",bt(this.element,xO(void 0,"cpl")));let n=e.createElement("div");n.classList.add(xO("h")),this.element.appendChild(n);let i=e.createElement("div");i.classList.add(xO("s")),n.appendChild(i),this.swatchElement=i;let r=e.createElement("div");if(r.classList.add(xO("t")),n.appendChild(r),this.textElement=r,"inline"===t.pickerLayout){let t=e.createElement("div");t.classList.add(xO("p")),this.element.appendChild(t),this.pickerElement=t}else this.pickerElement=null}}function xU(e,t,n){let i,r,a;let s=_p(e,360),o=_f(t/100,0,1),l=_f(n/100,0,1),u=l*o,c=u*(1-Math.abs(s/60%2-1)),d=l-u;return s>=0&&s<60?[i,r,a]=[u,c,0]:s>=60&&s<120?[i,r,a]=[c,u,0]:s>=120&&s<180?[i,r,a]=[0,u,c]:s>=180&&s<240?[i,r,a]=[0,c,u]:s>=240&&s<300?[i,r,a]=[c,0,u]:[i,r,a]=[u,0,c],[(i+d)*255,(r+d)*255,(a+d)*255]}function xV(e){return[e[0],e[1],e[2]]}function xB(e,t){return[e[0],e[1],e[2],t]}let xH={hsl:{hsl:(e,t,n)=>[e,t,n],hsv:function(e,t,n){let i=n+t*(100-Math.abs(2*n-100))/200;return[e,0!==i?t*(100-Math.abs(2*n-100))/i:0,n+t*(100-Math.abs(2*n-100))/200]},rgb:function(e,t,n){let i,r,a;
244let s=(e%360+360)%360,o=_f(t/100,0,1),l=_f(n/100,0,1),u=(1-Math.abs(2*l-1))*o,c=u*(1-Math.abs(s/60%2-1)),d=l-u/2;return s>=0&&s<60?[i,r,a]=[u,c,0]:s>=60&&s<120?[i,r,a]=[c,u,0]:s>=120&&s<180?[i,r,a]=[0,u,c]:s>=180&&s<240?[i,r,a]=[0,c,u]:s>=240&&s<300?[i,r,a]=[c,0,u]:[i,r,a]=[u,0,c],[(i+d)*255,(r+d)*255,(a+d)*255]}},hsv:{hsl:function(e,t,n){let i=100-Math.abs(n*(200-t)/100-100);return[e,0!==i?t*n/i:0,n*(200-t)/200]},hsv:(e,t,n)=>[e,t,n],rgb:xU},rgb:{hsl:function(e,t,n){let i=_f(e/255,0,1),r=_f(t/255,0,1),a=_f(n/255,0,1),s=Math.max(i,r,a),o=Math.min(i,r,a),l=s-o,u=0,c=0,d=(o+s)/2;return 0!==l&&(c=l/(1-Math.abs(s+o-1)),u=(u=i===s?(r-a)/l:r===s?2+(a-i)/l:4+(i-r)/l)/6+(u<0?1:0)),[360*u,100*c,100*d]},hsv:function(e,t,n){let i;let r=_f(e/255,0,1),a=_f(t/255,0,1),s=_f(n/255,0,1),o=Math.max(r,a,s),l=o-Math.min(r,a,s);return[i=0===l?0:o===r?((a-s)/l%6+6)%6*60:o===a?60*((s-r)/l+2):60*((r-a)/l+4),100*(0===o?0:l/o),100*o]},rgb:(e,t,n)=>[e,t,n]}};function xG(e,t){return["float"===t?1:"rgb"===e?255:360,"float"===t?1:"rgb"===e?255:100,"float"===t?1:"rgb"===e?255:100]}function xz(e,t){return e===t?t:_p(e,t)}function xq(e,t,n){var i;let r=xG(t,n);return["rgb"===t?_f(e[0],0,r[0]):xz(e[0],r[0]),_f(e[1],0,r[1]),_f(e[2],0,r[2]),_f(null!==(i=e[3])&&void 0!==i?i:1,0,1)]}function xW(e,t,n,i){let r=xG(t,n),a=xG(t,i);return e.map((e,t)=>e/r[t]*a[t])}function x$(e,t,n){let i=xW(e,t.mode,t.type,"int");return xW(xH[t.mode][n.mode](...i),n.mode,"int",n.type)}class xZ{static black(){return new xZ([0,0,0],"rgb")}constructor(e,t){this.type="int",this.mode=t,this.comps_=xq(e,t,this.type)}getComponents(e){return xB(x$(xV(this.comps_),{mode:this.mode,type:this.type},{mode:null!=e?e:this.mode,type:this.type}),this.comps_[3])}toRgbaObject(){let e=this.getComponents("rgb");return{r:e[0],g:e[1],b:e[2],a:e[3]}}}let xY=_0("colp");class xK{constructor(e,t){this.alphaViews_=null,this.element=e.createElement("div"),this.element.classList.add(xY()),t.viewProps.bindClassModifiers(this.element);let n=e.createElement("div");n.classList.add(xY("hsv"));let i=e.createElement("div");i.classList.add(xY("sv")),this.svPaletteView_=t.svPaletteView,i.appendChild(this.svPaletteView_.element),n.appendChild(i);let r=e.createElement("div");r.classList.add(xY("h")),this.hPaletteView_=t.hPaletteView,r.appendChild(this.hPaletteView_.element),n.appendChild(r),this.element.appendChild(n);let a=e.createElement("div");if(a.classList.add(xY("rgb")),this.textsView_=t.textsView,a.appendChild(this.textsView_.element),this.element.appendChild(a),t.alphaViews){this.alphaViews_={palette:t.alphaViews.palette,text:t.alphaViews.text};let n=e.createElement("div");n.classList.add(xY("a"));let i=e.createElement("div");i.classList.add(xY("ap")),i.appendChild(this.alphaViews_.palette.element),n.appendChild(i);let r=e.createElement("div");r.classList.add(xY("at")),r.appendChild(this.alphaViews_.text.element),n.appendChild(r),this.element.appendChild(n)}}get allFocusableElements(){let e=[this.svPaletteView_.element,this.hPaletteView_.element,this.textsView_.modeSelectElement,...this.textsView_.inputViews.map(e=>e.inputElement)];return this.alphaViews_&&e.push(this.alphaViews_.palette.element,this.alphaViews_.text.inputElement),e}}function xX(e){if("inline"===e||"popup"===e)return e}function xQ(e){return"int"===e?"int":"float"===e?"float":void 0}function xJ(e){return _F(e,e=>({color:e.optional.object({alpha:e.optional.boolean,type:e.optional.custom(xQ)}),expanded:e.optional.boolean,picker:e.optional.custom(xX),readonly:e.optional.constant(!1)}))}function x0(e){return e?.1:1}function x1(e){var t;return null===(t=e.color)||void 0===t?void 0:t.type}function x2(e){return t=>e.reduce((e,n)=>null!==e?e:n(t),null)}class x3{constructor(e,t){this.type="float",this.mode=t,this.comps_=xq(e,t,this.type)}getComponents(e){return xB(x$(xV(this.comps_),{mode:this.mode,type:this.type},{mode:null!=e?e:this.mode,type:this.type}),this.comps_[3])}toRgbaObject(){let e=this.getComponents("rgb");return{r:e[0],g:e[1],b:e[2],a:e[3]}}}let x5={int:(e,t)=>new xZ(e,t),float:(e,t)=>new x3(e,t)};function x4(e,t,n){return x5[n](e,t)}function x6(e){return"float"===e.type}function x8(e){return"int"===e.type}function x7(e){let t=e.getComponents(),n=xG(e.mode,"int");return new xZ([Math.round(_d(t[0],0,1,0,n[0])),Math.round(_d(t[1],0,1,0,n[1])),Math.round(_d(t[2],0,1,0,n[2])),t[3]],e.mode)}function x9(e){let t=e.getComponents(),n=xG(e.mode,"int");return new x3([_d(t[0],0,n[0],0,1),_d(t[1],0,n[1],0,1),_d(t[2],0,n[2],0,1),t[3]],e.mode)}function Ce(e,t){if(e.type===t)return e;if(x8(e)&&"float"===t)return x9(e);if(x6(e)&&"int"===t)return x7(e);throw yk.shouldNeverHappen()}function Ct(e,t){return e.alpha===t.alpha&&e.mode===t.mode&&e.notation===t.notation&&e.type===t.type}function Cn(e,t){let n=e.match(/^(.+)%$/);return n?Math.min(.01*parseFloat(n[1])*t,t):Math.min(parseFloat(e),t)}let Ci={deg:e=>e,grad:e=>360*e/400,rad:e=>360*e/(2*Math.PI),turn:e=>360*e};function Cr(e){let t=e.match(/^([0-9.]+?)(deg|grad|rad|turn)$/);if(!t)return parseFloat(e);let n=parseFloat(t[1]);return Ci[t[2]](n)}function Ca(e){let t=e.match(/^rgb\(\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*\)$/);if(!t)return null;
244let n=[Cn(t[1],255),Cn(t[2],255),Cn(t[3],255)];return isNaN(n[0])||isNaN(n[1])||isNaN(n[2])?null:n}function Cs(e){let t=Ca(e);return t?new xZ(t,"rgb"):null}function Co(e){let t=e.match(/^rgba\(\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*\)$/);if(!t)return null;let n=[Cn(t[1],255),Cn(t[2],255),Cn(t[3],255),Cn(t[4],1)];return isNaN(n[0])||isNaN(n[1])||isNaN(n[2])||isNaN(n[3])?null:n}function Cl(e){let t=Co(e);return t?new xZ(t,"rgb"):null}function Cu(e){let t=e.match(/^hsl\(\s*([0-9A-Fa-f.]+(?:deg|grad|rad|turn)?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*\)$/);if(!t)return null;let n=[Cr(t[1]),Cn(t[2],100),Cn(t[3],100)];return isNaN(n[0])||isNaN(n[1])||isNaN(n[2])?null:n}function Cc(e){let t=Cu(e);return t?new xZ(t,"hsl"):null}function Cd(e){let t=e.match(/^hsla\(\s*([0-9A-Fa-f.]+(?:deg|grad|rad|turn)?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*\)$/);if(!t)return null;let n=[Cr(t[1]),Cn(t[2],100),Cn(t[3],100),Cn(t[4],1)];return isNaN(n[0])||isNaN(n[1])||isNaN(n[2])||isNaN(n[3])?null:n}function Ch(e){let t=Cd(e);return t?new xZ(t,"hsl"):null}function Cf(e){let t=e.match(/^#([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])$/);if(t)return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)];let n=e.match(/^(?:#|0x)([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})$/);return n?[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]:null}function Cp(e){let t=Cf(e);return t?new xZ(t,"rgb"):null}function Cm(e){let t=e.match(/^#([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])$/);if(t)return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16),_d(parseInt(t[4]+t[4],16),0,255,0,1)];let n=e.match(/^(?:#|0x)?([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})$/);return n?[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16),_d(parseInt(n[4],16),0,255,0,1)]:null}function Cg(e){let t=Cm(e);return t?new xZ(t,"rgb"):null}function Cv(e){let t=e.match(/^\{\s*r\s*:\s*([0-9A-Fa-f.]+%?)\s*,\s*g\s*:\s*([0-9A-Fa-f.]+%?)\s*,\s*b\s*:\s*([0-9A-Fa-f.]+%?)\s*\}$/);if(!t)return null;let n=[parseFloat(t[1]),parseFloat(t[2]),parseFloat(t[3])];return isNaN(n[0])||isNaN(n[1])||isNaN(n[2])?null:n}function Cy(e){return t=>{let n=Cv(t);return n?x4(n,"rgb",e):null}}function C_(e){let t=e.match(/^\{\s*r\s*:\s*([0-9A-Fa-f.]+%?)\s*,\s*g\s*:\s*([0-9A-Fa-f.]+%?)\s*,\s*b\s*:\s*([0-9A-Fa-f.]+%?)\s*,\s*a\s*:\s*([0-9A-Fa-f.]+%?)\s*\}$/);if(!t)return null;let n=[parseFloat(t[1]),parseFloat(t[2]),parseFloat(t[3]),parseFloat(t[4])];return isNaN(n[0])||isNaN(n[1])||isNaN(n[2])||isNaN(n[3])?null:n}function Cb(e){return t=>{let n=C_(t);return n?x4(n,"rgb",e):null}}let Cx=[{parser:Cf,result:{alpha:!1,mode:"rgb",notation:"hex"}},{parser:Cm,result:{alpha:!0,mode:"rgb",notation:"hex"}},{parser:Ca,result:{alpha:!1,mode:"rgb",notation:"func"}},{parser:Co,result:{alpha:!0,mode:"rgb",notation:"func"}},{parser:Cu,result:{alpha:!1,mode:"hsl",notation:"func"}},{parser:Cd,result:{alpha:!0,mode:"hsl",notation:"func"}},{parser:Cv,result:{alpha:!1,mode:"rgb",notation:"object"}},{parser:C_,result:{alpha:!0,mode:"rgb",notation:"object"}}];function CC(e){return Cx.reduce((t,{parser:n,result:i})=>t||(n(e)?i:null),null)}function CE(e,t="int"){let n=CC(e);return n?"hex"===n.notation&&"float"!==t?Object.assign(Object.assign({},n),{type:"int"}):"func"===n.notation?Object.assign(Object.assign({},n),{type:t}):null:null}function Cw(e){let t=[Cp,Cg,Cs,Cl,Cc,Ch];"int"===e&&t.push(Cy("int"),Cb("int")),"float"===e&&t.push(Cy("float"),Cb("float"));let n=x2(t);return t=>{let i=n(t);return i?Ce(i,e):null}}function CT(e){let t=Cw("int");if("string"!=typeof e)return xZ.black();let n=t(e);return null!=n?n:xZ.black()}function CS(e){let t=_f(Math.floor(e),0,255).toString(16);return 1===t.length?`0${t}`:t}function CL(e,t="#"){let n=xV(e.getComponents("rgb")).map(CS).join("");return`${t}${n}`}function CP(e,t="#"){let n=e.getComponents("rgb"),i=[n[0],n[1],n[2],255*n[3]].map(CS).join("");return`${t}${i}`}function CM(e){let t=_c(0),n=xV(Ce(e,"int").getComponents("rgb")).map(e=>t(e));return`rgb(${n.join(", ")})`}function CA(e){let t=_c(2),n=_c(0),i=Ce(e,"int").getComponents("rgb").map((e,i)=>(3===i?t:n)(e));return`rgba(${i.join(", ")})`}function CI(e,t){let n=_c("float"===t?2:0),i=["r","g","b"],r=xV(Ce(e,t).getComponents("rgb")).map((e,t)=>`${i[t]}: ${n(e)}`);return`{${r.join(", ")}}`}function CR(e){return t=>CI(t,e)}function Ck(e,t){let n=_c(2),i=_c("float"===t?2:0),r=["r","g","b","a"],a=Ce(e,t).getComponents("rgb").map((e,t)=>{let a=3===t?n:i;return`${r[t]}: ${a(e)}`});return`{${a.join(", ")}}`}function CD(e){return t=>Ck(t,e)}let CN=[{format:{alpha:!1,mode:"rgb",notation:"hex",type:"int"},stringifier:CL},{format:{alpha:!0,mode:"rgb",notation:"hex",type:"int"},stringifier:CP},{format:{alpha:!1,mode:"rgb",notation:"func",type:"int"},stringifier:CM},{format:{alpha:!0,mode:"rgb",notation:"func",type:"int"},stringifier:CA},{format:{alpha:!1,mode:"hsl",notation:"func",type:"int"},stringifier:function(e){let t=[_c(0),xi,xi],n=xV(Ce(e,"int").getComponents("hsl")).map((e,n)=>t[n](e));return`hsl(${n.join(", ")})`}}
244,{format:{alpha:!0,mode:"hsl",notation:"func",type:"int"},stringifier:function(e){let t=[_c(0),xi,xi,_c(2)],n=Ce(e,"int").getComponents("hsl").map((e,n)=>t[n](e));return`hsla(${n.join(", ")})`}},...["int","float"].reduce((e,t)=>[...e,{format:{alpha:!1,mode:"rgb",notation:"object",type:t},stringifier:CR(t)},{format:{alpha:!0,mode:"rgb",notation:"object",type:t},stringifier:CD(t)}],[])];function CF(e){return CN.reduce((t,n)=>t||(Ct(n.format,e)?n.stringifier:null),null)}let CO=_0("apl");class Cj{constructor(e,t){this.onValueChange_=this.onValueChange_.bind(this),this.value=t.value,this.value.emitter.on("change",this.onValueChange_),this.element=e.createElement("div"),this.element.classList.add(CO()),t.viewProps.bindClassModifiers(this.element),t.viewProps.bindTabIndex(this.element);let n=e.createElement("div");n.classList.add(CO("b")),this.element.appendChild(n);let i=e.createElement("div");i.classList.add(CO("c")),n.appendChild(i),this.colorElem_=i;let r=e.createElement("div");r.classList.add(CO("m")),this.element.appendChild(r),this.markerElem_=r;let a=e.createElement("div");a.classList.add(CO("p")),this.markerElem_.appendChild(a),this.previewElem_=a,this.update_()}update_(){let e=this.value.rawValue,t=e.getComponents("rgb"),n=new xZ([t[0],t[1],t[2],0],"rgb"),i=new xZ([t[0],t[1],t[2],255],"rgb"),r=["to right",CA(n),CA(i)];this.colorElem_.style.background=`linear-gradient(${r.join(",")})`,this.previewElem_.style.backgroundColor=CA(e);let a=_d(t[3],0,1,0,100);this.markerElem_.style.left=`${a}%`}onValueChange_(){this.update_()}}class CU{constructor(e,t){this.onKeyDown_=this.onKeyDown_.bind(this),this.onKeyUp_=this.onKeyUp_.bind(this),this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.value=t.value,this.viewProps=t.viewProps,this.view=new Cj(e,{value:this.value,viewProps:this.viewProps}),this.ptHandler_=new xc(this.view.element),this.ptHandler_.emitter.on("down",this.onPointerDown_),this.ptHandler_.emitter.on("move",this.onPointerMove_),this.ptHandler_.emitter.on("up",this.onPointerUp_),this.view.element.addEventListener("keydown",this.onKeyDown_),this.view.element.addEventListener("keyup",this.onKeyUp_)}handlePointerEvent_(e,t){if(!e.point)return;let n=e.point.x/e.bounds.width,[i,r,a]=this.value.rawValue.getComponents("hsv");this.value.setRawValue(new xZ([i,r,a,n],"hsv"),t)}onPointerDown_(e){this.handlePointerEvent_(e.data,{forceEmit:!1,last:!1})}onPointerMove_(e){this.handlePointerEvent_(e.data,{forceEmit:!1,last:!1})}onPointerUp_(e){this.handlePointerEvent_(e.data,{forceEmit:!0,last:!0})}onKeyDown_(e){let t=xr(x0(!0),xs(e));if(0===t)return;let[n,i,r,a]=this.value.rawValue.getComponents("hsv");this.value.setRawValue(new xZ([n,i,r,a+t],"hsv"),{forceEmit:!1,last:!1})}onKeyUp_(e){0!==xr(x0(!0),xs(e))&&this.value.setRawValue(this.value.rawValue,{forceEmit:!0,last:!0})}}let CV=_0("coltxt");function CB(e){let t=e.createElement("select"),n=[{text:"RGB",value:"rgb"},{text:"HSL",value:"hsl"},{text:"HSV",value:"hsv"},{text:"HEX",value:"hex"}];return t.appendChild(n.reduce((t,n)=>{let i=e.createElement("option");return i.textContent=n.text,i.value=n.value,t.appendChild(i),t},e.createDocumentFragment())),t}class CH{constructor(e,t){this.element=e.createElement("div"),this.element.classList.add(CV()),t.viewProps.bindClassModifiers(this.element);let n=e.createElement("div");n.classList.add(CV("m")),this.modeElem_=CB(e),this.modeElem_.classList.add(CV("ms")),n.appendChild(this.modeSelectElement),t.viewProps.bindDisabled(this.modeElem_);let i=e.createElement("div");i.classList.add(CV("mm")),i.appendChild(_q(e,"dropdown")),n.appendChild(i),this.element.appendChild(n);let r=e.createElement("div");r.classList.add(CV("w")),this.element.appendChild(r),this.inputsElem_=r,this.inputViews_=t.inputViews,this.applyInputViews_(),_X(t.mode,e=>{this.modeElem_.value=e})}get modeSelectElement(){return this.modeElem_}get inputViews(){return this.inputViews_}set inputViews(e){this.inputViews_=e,this.applyInputViews_()}applyInputViews_(){_Z(this.inputsElem_);let e=this.element.ownerDocument;
244this.inputViews_.forEach(t=>{let n=e.createElement("div");n.classList.add(CV("c")),n.appendChild(t.element),this.inputsElem_.appendChild(n)})}}function CG(e){return _c("float"===e?2:0)}function Cz(e,t,n){return new yH({min:0,max:xG(e,t)[n]})}function Cq(e,t,n){return new xf(e,{arrayPosition:0===n?"fst":2===n?"lst":"mid",parser:t.parser,props:yB.fromObject({formatter:CG(t.colorType),keyScale:x0(!1),pointerScale:"float"===t.colorType?.01:1}),value:yU(0,{constraint:Cz(t.colorMode,t.colorType,n)}),viewProps:t.viewProps})}function CW(e,t){let n={colorMode:t.colorMode,colorType:t.colorType,parser:_l,viewProps:t.viewProps};return[0,1,2].map(i=>{let r=Cq(e,n,i);return xF({primary:t.value,secondary:r.value,forward:e=>Ce(e,t.colorType).getComponents(t.colorMode)[i],backward(e,n){let r=t.colorMode,a=Ce(e,t.colorType).getComponents(r);return a[i]=n,Ce(x4(xB(xV(a),a[3]),r,t.colorType),"int")}}),r})}function C$(e,t){let n=new xt(e,{parser:Cw("int"),props:yB.fromObject({formatter:CL}),value:yU(xZ.black()),viewProps:t.viewProps});return xF({primary:t.value,secondary:n.value,forward:e=>new xZ(xV(e.getComponents()),e.mode),backward:(e,t)=>new xZ(xB(xV(t.getComponents(e.mode)),e.getComponents()[3]),e.mode)}),[n]}function CZ(e){return"hex"!==e}class CY{constructor(e,t){this.onModeSelectChange_=this.onModeSelectChange_.bind(this),this.colorType_=t.colorType,this.value=t.value,this.viewProps=t.viewProps,this.colorMode=yU(this.value.rawValue.mode),this.ccs_=this.createComponentControllers_(e),this.view=new CH(e,{mode:this.colorMode,inputViews:[this.ccs_[0].view,this.ccs_[1].view,this.ccs_[2].view],viewProps:this.viewProps}),this.view.modeSelectElement.addEventListener("change",this.onModeSelectChange_)}createComponentControllers_(e){let t=this.colorMode.rawValue;return CZ(t)?CW(e,{colorMode:t,colorType:this.colorType_,value:this.value,viewProps:this.viewProps}):C$(e,{value:this.value,viewProps:this.viewProps})}onModeSelectChange_(e){let t=e.currentTarget;this.colorMode.rawValue=t.value,this.ccs_=this.createComponentControllers_(this.view.element.ownerDocument),this.view.inputViews=this.ccs_.map(e=>e.view)}}let CK=_0("hpl");class CX{constructor(e,t){this.onValueChange_=this.onValueChange_.bind(this),this.value=t.value,this.value.emitter.on("change",this.onValueChange_),this.element=e.createElement("div"),this.element.classList.add(CK()),t.viewProps.bindClassModifiers(this.element),t.viewProps.bindTabIndex(this.element);let n=e.createElement("div");n.classList.add(CK("c")),this.element.appendChild(n);let i=e.createElement("div");i.classList.add(CK("m")),this.element.appendChild(i),this.markerElem_=i,this.update_()}update_(){let[e]=this.value.rawValue.getComponents("hsv");this.markerElem_.style.backgroundColor=CM(new xZ([e,100,100],"hsv"));let t=_d(e,0,360,0,100);this.markerElem_.style.left=`${t}%`}onValueChange_(){this.update_()}}class CQ{constructor(e,t){this.onKeyDown_=this.onKeyDown_.bind(this),this.onKeyUp_=this.onKeyUp_.bind(this),this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.value=t.value,this.viewProps=t.viewProps,this.view=new CX(e,{value:this.value,viewProps:this.viewProps}),this.ptHandler_=new xc(this.view.element),this.ptHandler_.emitter.on("down",this.onPointerDown_),this.ptHandler_.emitter.on("move",this.onPointerMove_),this.ptHandler_.emitter.on("up",this.onPointerUp_),this.view.element.addEventListener("keydown",this.onKeyDown_),this.view.element.addEventListener("keyup",this.onKeyUp_)}handlePointerEvent_(e,t){if(!e.point)return;let n=_d(_f(e.point.x,0,e.bounds.width),0,e.bounds.width,0,360),[,i,r,a]=this.value.rawValue.getComponents("hsv");this.value.setRawValue(new xZ([n,i,r,a],"hsv"),t)}onPointerDown_(e){this.handlePointerEvent_(e.data,{forceEmit:!1,last:!1})}onPointerMove_(e){this.handlePointerEvent_(e.data,{forceEmit:!1,last:!1})}onPointerUp_(e){this.handlePointerEvent_(e.data,{forceEmit:!0,last:!0})}onKeyDown_(e){let t=xr(x0(!1),xs(e));if(0===t)return;let[n,i,r,a]=this.value.rawValue.getComponents("hsv");this.value.setRawValue(new xZ([n+t,i,r,a],"hsv"),{forceEmit:!1,last:!1})}onKeyUp_(e){0!==xr(x0(!1),xs(e))&&this.value.setRawValue(this.value.rawValue,{forceEmit:!0,last:!0})}}let CJ=_0("svp"),C0=64;class C1{constructor(e,t){this.onValueChange_=this.onValueChange_.bind(this),this.value=t.value,this.value.emitter.on("change",this.onValueChange_),this.element=e.createElement("div"),this.element.classList.add(CJ()),t.viewProps.bindClassModifiers(this.element),t.viewProps.bindTabIndex(this.element);let n=e.createElement("canvas");n.height=C0,n.width=C0,n.classList.add(CJ("c")),this.element.appendChild(n),this.canvasElement=n;let i=e.createElement("div");i.classList.add(CJ("m")),this.element.appendChild(i),this.markerElem_=i,this.update_()}update_(){let e=_G(this.canvasElement);if(!e)return;let t=this.value.rawValue.getComponents("hsv"),n=this.canvasElement.width,i=this.canvasElement.height,r=e.getImageData(0,0,n,i),a=r.data;for(let e=0;e<i;e++)for(let r=0;r<n;r++){let s=_d(r,0,n,0,100),o=_d(e,0,i,100,0),l=xU(t[0],s,o),u=(e*n+r)*4;a[u]=l[0],a[u+1]=l[1],a[u+2]=l[2],a[u+3]=255}e.putImageData(r,0,0);let s=_d(t[1],0,100,0,100);this.markerElem_.style.left=`${s}%`;let o=_d(t[2],0,100,100,0);this.markerElem_.style.top=`${o}%`}onValueChange_(){this.update_()}}class C2{constructor(e,t){this.onKeyDown_=this.onKeyDown_.bind(this),this.onKeyUp_=this.onKeyUp_.bind(this),this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.value=t.value,this.viewProps=t.viewProps,this.view=new C1(e,{value:this.value,viewProps:this.viewProps}),this.ptHandler_=new xc(this.view.element),this.ptHandler_.emitter.on("down",this.onPointerDown_),this.ptHandler_.emitter.on("move",this.onPointerMove_),this.ptHandler_.emitter.on("up",this.onPointerUp_),this.view.element.addEventListener("keydown",this.onKeyDown_),this.view.element.addEventListener("keyup",this.onKeyUp_)}handlePointerEvent_(e,t){if(!e.point)return;let n=_d(e.point.x,0,e.bounds.width,0,100),i=_d(e.point.y,0,e.bounds.height,100,0),[r,,,a]=this.value.rawValue.getComponents("hsv");this.value.setRawValue(new xZ([r,n,i,a],"hsv"),t)}onPointerDown_(e){this.handlePointerEvent_(e.data,{forceEmit:!1,last:!1})}onPointerMove_(e){this.handlePointerEvent_(e.data,{forceEmit:!1,last:!1})}onPointerUp_(e){this.handlePointerEvent_(e.data,{forceEmit:!0,last:!0})}onKeyDown_(e){xl(e.key)&&e.preventDefault();let[t,n,i,r]=this.value.rawValue.getComponents("hsv"),a=x0(!1),s=xr(a,xs(e)),o=xr(a,xa(e));(0!==s||0!==o)&&this.value.setRawValue(new xZ([t,n+s,i+o,r],"hsv"),{forceEmit:!1,last:!1})}onKeyUp_(e){let t=x0(!1),n=xr(t,xs(e)),i=xr(t,xa(e));(0!==n||0!==i)&&this.value.setRawValue(this.value.rawValue,{forceEmit:!0,last:!0})}}class C3{constructor(e,t){this.value=t.value,this.viewProps=t.viewProps,this.hPaletteC_=new CQ(e,{value:this.value,viewProps:this.viewProps}),this.svPaletteC_=new C2(e,{value:this.value,viewProps:this.viewProps}
244),this.alphaIcs_=t.supportsAlpha?{palette:new CU(e,{value:this.value,viewProps:this.viewProps}),text:new xf(e,{parser:_l,props:yB.fromObject({pointerScale:.01,keyScale:.1,formatter:_c(2)}),value:yU(0,{constraint:new yH({min:0,max:1})}),viewProps:this.viewProps})}:null,this.alphaIcs_&&xF({primary:this.value,secondary:this.alphaIcs_.text.value,forward:e=>e.getComponents()[3],backward:(e,t)=>{let n=e.getComponents();return n[3]=t,new xZ(n,e.mode)}}),this.textsC_=new CY(e,{colorType:t.colorType,value:this.value,viewProps:this.viewProps}),this.view=new xK(e,{alphaViews:this.alphaIcs_?{palette:this.alphaIcs_.palette.view,text:this.alphaIcs_.text.view}:null,hPaletteView:this.hPaletteC_.view,supportsAlpha:t.supportsAlpha,svPaletteView:this.svPaletteC_.view,textsView:this.textsC_.view,viewProps:this.viewProps})}get textsController(){return this.textsC_}}let C5=_0("colsw");class C4{constructor(e,t){this.onValueChange_=this.onValueChange_.bind(this),t.value.emitter.on("change",this.onValueChange_),this.value=t.value,this.element=e.createElement("div"),this.element.classList.add(C5()),t.viewProps.bindClassModifiers(this.element);let n=e.createElement("div");n.classList.add(C5("sw")),this.element.appendChild(n),this.swatchElem_=n;let i=e.createElement("button");i.classList.add(C5("b")),t.viewProps.bindDisabled(i),this.element.appendChild(i),this.buttonElement=i,this.update_()}update_(){let e=this.value.rawValue;this.swatchElem_.style.backgroundColor=CP(e)}onValueChange_(){this.update_()}}class C6{constructor(e,t){this.value=t.value,this.viewProps=t.viewProps,this.view=new C4(e,{value:this.value,viewProps:this.viewProps})}}class C8{constructor(e,t){this.onButtonBlur_=this.onButtonBlur_.bind(this),this.onButtonClick_=this.onButtonClick_.bind(this),this.onPopupChildBlur_=this.onPopupChildBlur_.bind(this),this.onPopupChildKeydown_=this.onPopupChildKeydown_.bind(this),this.value=t.value,this.viewProps=t.viewProps,this.foldable_=bL.create(t.expanded),this.swatchC_=new C6(e,{value:this.value,viewProps:this.viewProps});let n=this.swatchC_.view.buttonElement;n.addEventListener("blur",this.onButtonBlur_),n.addEventListener("click",this.onButtonClick_),this.textC_=new xt(e,{parser:t.parser,props:yB.fromObject({formatter:t.formatter}),value:this.value,viewProps:this.viewProps}),this.view=new xj(e,{foldable:this.foldable_,pickerLayout:t.pickerLayout}),this.view.swatchElement.appendChild(this.swatchC_.view.element),this.view.textElement.appendChild(this.textC_.view.element),this.popC_="popup"===t.pickerLayout?new b7(e,{viewProps:this.viewProps}):null;let i=new C3(e,{colorType:t.colorType,supportsAlpha:t.supportsAlpha,value:this.value,viewProps:this.viewProps});i.view.allFocusableElements.forEach(e=>{e.addEventListener("blur",this.onPopupChildBlur_),e.addEventListener("keydown",this.onPopupChildKeydown_)}),this.pickerC_=i,this.popC_?(this.view.element.appendChild(this.popC_.view.element),this.popC_.view.element.appendChild(i.view.element),xF({primary:this.foldable_.value("expanded"),secondary:this.popC_.shows,forward:e=>e,backward:(e,t)=>t})):this.view.pickerElement&&(this.view.pickerElement.appendChild(this.pickerC_.view.element),bA(this.foldable_,this.view.pickerElement))}get textController(){return this.textC_}onButtonBlur_(e){if(!this.popC_)return;let t=this.view.element,n=yS(e.relatedTarget);n&&t.contains(n)||(this.popC_.shows.rawValue=!1)}onButtonClick_(){this.foldable_.set("expanded",!this.foldable_.get("expanded")),this.foldable_.get("expanded")&&this.pickerC_.view.allFocusableElements[0].focus()}onPopupChildBlur_(e){if(!this.popC_)return;let t=this.popC_.view.element,n=_K(e);!(n&&t.contains(n))&&(!n||n!==this.swatchC_.view.buttonElement||_H(t.ownerDocument))&&(this.popC_.shows.rawValue=!1)}onPopupChildKeydown_(e){this.popC_?"Escape"===e.key&&(this.popC_.shows.rawValue=!1):this.view.pickerElement&&"Escape"===e.key&&this.swatchC_.view.buttonElement.focus()}}function C7(e){return xV(e.getComponents("rgb")).reduce((e,t)=>e<<8|255&Math.floor(t),0)}function C9(e){return e.getComponents("rgb").reduce((e,t,n)=>e<<8|255&Math.floor(3===n?255*t:t),0)>>>0}function Ee(e){return new xZ([e>>16&255,e>>8&255,255&e],"rgb")}function Et(e){return new xZ([e>>24&255,e>>16&255,e>>8&255,_d(255&e,0,255,0,1)],"rgb")}function En(e){return"number"!=typeof e?xZ.black():Ee(e)}function Ei(e){return"number"!=typeof e?xZ.black():Et(e)}function Er(e){let t=CF(e);return t?(e,n)=>{xD(e,t(n))}:null}function Ea(e){let t=e?C9:C7;return(e,n)=>{xD(e,t(n))}}function Es(e,t,n){let i=Ce(t,n).toRgbaObject();e.writeProperty("r",i.r),e.writeProperty("g",i.g),e.writeProperty("b",i.b),e.writeProperty("a",i.a)}function Eo(e,t,n){let i=Ce(t,n).toRgbaObject();e.writeProperty("r",i.r),e.writeProperty("g",i.g),e.writeProperty("b",i.b)}function El(e,t){return(n,i)=>{e?Es(n,i,t):Eo(n,i,t)}}function Eu(e,t){return!("object"!=typeof e||yL(e))&&t in e&&"number"==typeof e[t]}function Ec(e){return Eu(e,"r")&&Eu(e,"g")&&Eu(e,"b")}function Ed(e){return Ec(e)&&Eu(e,"a")}function Eh(e){return Ec(e)}function Ef(e,t){if(e.mode!==t.mode||e.type!==t.type)return!1;let n=e.getComponents(),i=t.getComponents();for(let e=0;e<n.length;e++)if(n[e]!==i[e])return!1;return!0}function Ep(e){return"a"in e?[e.r,e.g,e.b,e.a]:[e.r,e.g,e.b]}function Em(e){var t;return null!==(t=null==e?void 0:e.color)&&void 0!==t&&!!t.alpha}function Eg(e){return e?e=>CP(e,"0x"):e=>CL(e,"0x")}function Ev(e){return"color"in e||"color"===e.view}function Ey(e,t){return Eh(e)?"int"===t?new xZ(Ep(e),"rgb"):"float"===t?new x3(Ep(e),"rgb"):Ce(xZ.black(),"int"):Ce(xZ.black(),t)}function E_(e){return Ed(e)}function Eb(e){return t=>Ce(Ey(t,e),"int")}function Ex(e,t){return n=>e?Ck(n,t):CI(n,t)}bu({id:"input-color-number",type:"input",accept:(e,t)=>
244{if("number"!=typeof e||!Ev(t))return null;let n=xJ(t);return n?{initialValue:e,params:Object.assign(Object.assign({},n),{supportsAlpha:Em(t)})}:null},binding:{reader:e=>e.params.supportsAlpha?Ei:En,equals:Ef,writer:e=>Ea(e.params.supportsAlpha)},controller:e=>{var t,n;return new C8(e.document,{colorType:"int",expanded:null!==(t=e.params.expanded)&&void 0!==t&&t,formatter:Eg(e.params.supportsAlpha),parser:Cw("int"),pickerLayout:null!==(n=e.params.picker)&&void 0!==n?n:"popup",supportsAlpha:e.params.supportsAlpha,value:e.value,viewProps:e.viewProps})}}),bu({id:"input-color-object",type:"input",accept:(e,t)=>{var n;if(!Eh(e))return null;let i=xJ(t);return i?{initialValue:e,params:Object.assign(Object.assign({},i),{colorType:null!==(n=x1(t))&&void 0!==n?n:"int"})}:null},binding:{reader:e=>Eb(e.params.colorType),equals:Ef,writer:e=>El(E_(e.initialValue),e.params.colorType)},controller:e=>{var t,n;let i=Ed(e.initialValue);return new C8(e.document,{colorType:e.params.colorType,expanded:null!==(t=e.params.expanded)&&void 0!==t&&t,formatter:Ex(i,e.params.colorType),parser:Cw("int"),pickerLayout:null!==(n=e.params.picker)&&void 0!==n?n:"popup",supportsAlpha:i,value:e.value,viewProps:e.viewProps})}}),bu({id:"input-color-string",type:"input",accept:(e,t)=>{if("string"!=typeof e||"text"===t.view)return null;let n=CE(e,x1(t));if(!n)return null;let i=CF(n);if(!i)return null;let r=xJ(t);return r?{initialValue:e,params:Object.assign(Object.assign({},r),{format:n,stringifier:i})}:null},binding:{reader:()=>CT,equals:Ef,writer:e=>{let t=Er(e.params.format);if(!t)throw yk.notBindable();return t}},controller:e=>{var t,n;return new C8(e.document,{colorType:e.params.format.type,expanded:null!==(t=e.params.expanded)&&void 0!==t&&t,formatter:e.params.stringifier,parser:Cw("int"),pickerLayout:null!==(n=e.params.picker)&&void 0!==n?n:"popup",supportsAlpha:e.params.format.alpha,value:e.value,viewProps:e.viewProps})}});let EC=_0("pndtxt");class EE{constructor(e,t){this.textViews=t.textViews,this.element=e.createElement("div"),this.element.classList.add(EC()),this.textViews.forEach(t=>{let n=e.createElement("div");n.classList.add(EC("a")),n.appendChild(t.element),this.element.appendChild(n)})}}function Ew(e,t,n){return new xf(e,{arrayPosition:0===n?"fst":n===t.axes.length-1?"lst":"mid",parser:t.parser,props:t.axes[n].textProps,value:yU(0,{constraint:t.axes[n].constraint}),viewProps:t.viewProps})}class ET{constructor(e,t){this.value=t.value,this.viewProps=t.viewProps,this.acs_=t.axes.map((n,i)=>Ew(e,t,i)),this.acs_.forEach((e,n)=>{xF({primary:this.value,secondary:e.value,forward:e=>t.assembly.toComponents(e)[n],backward:(e,i)=>{let r=t.assembly.toComponents(e);return r[n]=i,t.assembly.fromComponents(r)}})}),this.view=new EE(e,{textViews:this.acs_.map(e=>e.view)})}get textControllers(){return this.acs_}}class ES extends _M{get max(){return this.controller.valueController.sliderController.props.get("max")}set max(e){this.controller.valueController.sliderController.props.set("max",e)}get min(){return this.controller.valueController.sliderController.props.get("min")}set min(e){this.controller.valueController.sliderController.props.set("min",e)}}function EL(e,t){let n=[],i=_y(e,t);i&&n.push(i);let r=__(e);r&&n.push(r);let a=b2(e.options);return a&&n.push(a),new xE(n)}bu({id:"input-number",type:"input",accept:(e,t)=>{if("number"!=typeof e)return null;let n=_F(t,e=>Object.assign(Object.assign({},_x(e)),{options:e.optional.custom(b0),readonly:e.optional.constant(!1)}));return n?{initialValue:e,params:n}:null},binding:{reader:e=>_u,constraint:e=>EL(e.params,e.initialValue),writer:e=>xD},controller:e=>{let t=e.value,n=e.constraint,i=n&&xw(n,bJ);if(i)return new b4(e.document,{props:new yB({options:i.values.value("options")}),value:t,viewProps:e.viewProps});let r=_b(e.params,t.rawValue),a=n&&xw(n,yH);return a?new x_(e.document,Object.assign(Object.assign({},xb(Object.assign(Object.assign({},r),{keyScale:yU(r.keyScale),max:a.values.value("max"),min:a.values.value("min")}))),{parser:_l,value:t,viewProps:e.viewProps})):new xf(e.document,{parser:_l,props:yB.fromObject(r),value:t,viewProps:e.viewProps})},api:e=>"number"!=typeof e.controller.value.rawValue?null:e.controller.valueController instanceof x_?new ES(e.controller):e.controller.valueController instanceof b4?new bQ(e.controller):null});class EP{constructor(e=0,t=0){this.x=e,this.y=t}getComponents(){return[this.x,this.y]}static isObject(e){if(yL(e))return!1;let t=e.x,n=e.y;return"number"==typeof t&&"number"==typeof n}static equals(e,t){return e.x===t.x&&e.y===t.y}toObject(){return{x:this.x,y:this.y}}}let EM={toComponents:e=>e.getComponents(),fromComponents:e=>new EP(...e)},EA=_0("p2d");class EI{constructor(e,t){this.element=e.createElement("div"),this.element.classList.add(EA()),t.viewProps.bindClassModifiers(this.element),_X(t.expanded,bt(this.element,EA(void 0,"expanded")));let n=e.createElement("div");n.classList.add(EA("h")),this.element.appendChild(n);let i=e.createElement("button");i.classList.add(EA("b")),i.appendChild(_q(e,"p2dpad")),t.viewProps.bindDisabled(i),n.appendChild(i),this.buttonElement=i;let r=e.createElement("div");if(r.classList.add(EA("t")),n.appendChild(r),this.textElement=r,"inline"===t.pickerLayout){let t=e.createElement("div");t.classList.add(EA("p")),this.element.appendChild(t),this.pickerElement=t}else this.pickerElement=null}}let ER=_0("p2dp");class Ek{constructor(e,t){this.onFoldableChange_=this.onFoldableChange_.bind(this),this.onPropsChange_=this.onPropsChange_.bind(this),this.onValueChange_=this.onValueChange_.bind(this),this.props_=t.props,this.props_.emitter.on("change",this.onPropsChange_),this.element=e.createElement("div"),this.element.classList.add(ER()),"popup"===t.layout&&this.element.classList.add(ER(void 0,"p")),t.viewProps.bindClassModifiers(this.element);let n=e.createElement("div");n.classList.add(ER("p")),t.viewProps.bindTabIndex(n),this.element.appendChild(n),this.padElement=n;let i=e.createElementNS(_U,"svg");i.classList.add(ER("g")),this.padElement.appendChild(i),this.svgElem_=i;let r=e.createElementNS(_U,"line");r.classList.add(ER("ax")),r.setAttributeNS(null,"x1","0"),r.setAttributeNS(null,"y1","50%"),r.setAttributeNS(null,"x2","100%"),r.setAttributeNS(null,"y2","50%"),this.svgElem_.appendChild(r);let a=e.createElementNS(_U,"line");a.classList.add(ER("ax")),a.setAttributeNS(null,"x1","50%"),a.setAttributeNS(null,"y1","0"),a.setAttributeNS(null,"x2","50%"),a.setAttributeNS(null,"y2","100%"),this.svgElem_.appendChild(a);let s=e.createElementNS(_U,"line");s.classList.add(ER("l")),s.setAttributeNS(null,"x1","50%"),s.setAttributeNS(null,"y1","50%"),this.svgElem_.appendChild(s),this.lineElem_=s;let o=e.createElement("div");o.classList.add(ER("m")),this.padElement.appendChild(o),this.markerElem_=o,t.value.emitter.on("change",this.onValueChange_),this.value=t.value,this.update_()}get allFocusableElements(){return[this.padElement]}update_(){let[e,t]=this.value.rawValue.getComponents(),n=this.props_.get("max"),i=_d(e,-n,+n,
2440,100),r=_d(t,-n,+n,0,100),a=this.props_.get("invertsY")?100-r:r;this.lineElem_.setAttributeNS(null,"x2",`${i}%`),this.lineElem_.setAttributeNS(null,"y2",`${a}%`),this.markerElem_.style.left=`${i}%`,this.markerElem_.style.top=`${a}%`}onValueChange_(){this.update_()}onPropsChange_(){this.update_()}onFoldableChange_(){this.update_()}}function ED(e,t,n){return[xr(t[0],xs(e)),xr(t[1],xa(e))*(n?1:-1)]}class EN{constructor(e,t){this.onPadKeyDown_=this.onPadKeyDown_.bind(this),this.onPadKeyUp_=this.onPadKeyUp_.bind(this),this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.props=t.props,this.value=t.value,this.viewProps=t.viewProps,this.view=new Ek(e,{layout:t.layout,props:this.props,value:this.value,viewProps:this.viewProps}),this.ptHandler_=new xc(this.view.padElement),this.ptHandler_.emitter.on("down",this.onPointerDown_),this.ptHandler_.emitter.on("move",this.onPointerMove_),this.ptHandler_.emitter.on("up",this.onPointerUp_),this.view.padElement.addEventListener("keydown",this.onPadKeyDown_),this.view.padElement.addEventListener("keyup",this.onPadKeyUp_)}handlePointerEvent_(e,t){if(!e.point)return;let n=this.props.get("max"),i=_d(e.point.x,0,e.bounds.width,-n,+n),r=_d(this.props.get("invertsY")?e.bounds.height-e.point.y:e.point.y,0,e.bounds.height,-n,+n);this.value.setRawValue(new EP(i,r),t)}onPointerDown_(e){this.handlePointerEvent_(e.data,{forceEmit:!1,last:!1})}onPointerMove_(e){this.handlePointerEvent_(e.data,{forceEmit:!1,last:!1})}onPointerUp_(e){this.handlePointerEvent_(e.data,{forceEmit:!0,last:!0})}onPadKeyDown_(e){xl(e.key)&&e.preventDefault();let[t,n]=ED(e,[this.props.get("xKeyScale"),this.props.get("yKeyScale")],this.props.get("invertsY"));(0!==t||0!==n)&&this.value.setRawValue(new EP(this.value.rawValue.x+t,this.value.rawValue.y+n),{forceEmit:!1,last:!1})}onPadKeyUp_(e){let[t,n]=ED(e,[this.props.get("xKeyScale"),this.props.get("yKeyScale")],this.props.get("invertsY"));(0!==t||0!==n)&&this.value.setRawValue(this.value.rawValue,{forceEmit:!0,last:!0})}}class EF{constructor(e,t){var n,i;this.onPopupChildBlur_=this.onPopupChildBlur_.bind(this),this.onPopupChildKeydown_=this.onPopupChildKeydown_.bind(this),this.onPadButtonBlur_=this.onPadButtonBlur_.bind(this),this.onPadButtonClick_=this.onPadButtonClick_.bind(this),this.value=t.value,this.viewProps=t.viewProps,this.foldable_=bL.create(t.expanded),this.popC_="popup"===t.pickerLayout?new b7(e,{viewProps:this.viewProps}):null;let r=new EN(e,{layout:t.pickerLayout,props:new yB({invertsY:yU(t.invertsY),max:yU(t.max),xKeyScale:t.axes[0].textProps.value("keyScale"),yKeyScale:t.axes[1].textProps.value("keyScale")}),value:this.value,viewProps:this.viewProps});r.view.allFocusableElements.forEach(e=>{e.addEventListener("blur",this.onPopupChildBlur_),e.addEventListener("keydown",this.onPopupChildKeydown_)}),this.pickerC_=r,this.textC_=new ET(e,{assembly:EM,axes:t.axes,parser:t.parser,value:this.value,viewProps:this.viewProps}),this.view=new EI(e,{expanded:this.foldable_.value("expanded"),pickerLayout:t.pickerLayout,viewProps:this.viewProps}),this.view.textElement.appendChild(this.textC_.view.element),null===(n=this.view.buttonElement)||void 0===n||n.addEventListener("blur",this.onPadButtonBlur_),null===(i=this.view.buttonElement)||void 0===i||i.addEventListener("click",this.onPadButtonClick_),this.popC_?(this.view.element.appendChild(this.popC_.view.element),this.popC_.view.element.appendChild(this.pickerC_.view.element),xF({primary:this.foldable_.value("expanded"),secondary:this.popC_.shows,forward:e=>e,backward:(e,t)=>t})):this.view.pickerElement&&(this.view.pickerElement.appendChild(this.pickerC_.view.element),bA(this.foldable_,this.view.pickerElement))}get textController(){return this.textC_}onPadButtonBlur_(e){if(!this.popC_)return;let t=this.view.element,n=yS(e.relatedTarget);n&&t.contains(n)||(this.popC_.shows.rawValue=!1)}onPadButtonClick_(){this.foldable_.set("expanded",!this.foldable_.get("expanded")),this.foldable_.get("expanded")&&this.pickerC_.view.allFocusableElements[0].focus()}onPopupChildBlur_(e){if(!this.popC_)return;let t=this.popC_.view.element,n=_K(e);!(n&&t.contains(n))&&(!n||n!==this.view.buttonElement||_H(t.ownerDocument))&&(this.popC_.shows.rawValue=!1)}onPopupChildKeydown_(e){this.popC_?"Escape"===e.key&&(this.popC_.shows.rawValue=!1):this.view.pickerElement&&"Escape"===e.key&&this.view.buttonElement.focus()}}class EO{constructor(e){this.components=e.components,this.asm_=e.assembly}constrain(e){let t=this.asm_.toComponents(e).map((e,t)=>{var n,i;return null!==(i=null===(n=this.components[t])||void 0===n?void 0:n.constrain(e))&&void 0!==i?i:e});return this.asm_.fromComponents(t)}}function Ej(e){return EP.isObject(e)?new EP(e.x,e.y):new EP}function EU(e,t){e.writeProperty("x",t.x),e.writeProperty("y",t.y)}function EV(e,t){return new EO({assembly:EM,components:[xL(Object.assign(Object.assign({},e),e.x),t.x),xL(Object.assign(Object.assign({},e),e.y),t.y)]})}function EB(e,t){var n,i;return yL(e.min)&&yL(e.max)?Math.max(10*Math.abs(_g(e)),10*Math.abs(t)):Math.max(Math.abs(null!==(n=e.min)&&void 0!==n?n:0),Math.abs(null!==(i=e.max)&&void 0!==i?i:0))}function EH(e,t){var n,i;return Math.max(EB(yI(e,null!==(n=e.x)&&void 0!==n?n:{}),t.x),EB(yI(e,null!==(i=e.y)&&void 0!==i?i:{}),t.y))}function EG(e){if(!("y"in e))return!1;let t=e.y;return!!t&&"inverted"in t&&!!t.inverted}bu({id:"input-point2d",type:"input",accept:(e,t)=>
244{if(!EP.isObject(e))return null;let n=_F(t,e=>Object.assign(Object.assign({},xT(e)),{expanded:e.optional.boolean,picker:e.optional.custom(xX),readonly:e.optional.constant(!1),x:e.optional.custom(xS),y:e.optional.object(Object.assign(Object.assign({},xT(e)),{inverted:e.optional.boolean}))}));return n?{initialValue:e,params:n}:null},binding:{reader:()=>Ej,constraint:e=>EV(e.params,e.initialValue),equals:EP.equals,writer:()=>EU},controller:e=>{var t,n;let i=e.document,r=e.value,a=e.constraint,s=[e.params.x,e.params.y];return new EF(i,{axes:r.rawValue.getComponents().map((t,n)=>{var i;return _C({constraint:a.components[n],initialValue:t,params:yI(e.params,null!==(i=s[n])&&void 0!==i?i:{})})}),expanded:null!==(t=e.params.expanded)&&void 0!==t&&t,invertsY:EG(e.params),max:EH(e.params,r.rawValue),parser:_l,pickerLayout:null!==(n=e.params.picker)&&void 0!==n?n:"popup",value:r,viewProps:e.viewProps})}});class Ez{constructor(e=0,t=0,n=0){this.x=e,this.y=t,this.z=n}getComponents(){return[this.x,this.y,this.z]}static isObject(e){if(yL(e))return!1;let t=e.x,n=e.y,i=e.z;return"number"==typeof t&&"number"==typeof n&&"number"==typeof i}static equals(e,t){return e.x===t.x&&e.y===t.y&&e.z===t.z}toObject(){return{x:this.x,y:this.y,z:this.z}}}let Eq={toComponents:e=>e.getComponents(),fromComponents:e=>new Ez(...e)};function EW(e){return Ez.isObject(e)?new Ez(e.x,e.y,e.z):new Ez}function E$(e,t){e.writeProperty("x",t.x),e.writeProperty("y",t.y),e.writeProperty("z",t.z)}function EZ(e,t){return new EO({assembly:Eq,components:[xL(Object.assign(Object.assign({},e),e.x),t.x),xL(Object.assign(Object.assign({},e),e.y),t.y),xL(Object.assign(Object.assign({},e),e.z),t.z)]})}bu({id:"input-point3d",type:"input",accept:(e,t)=>{if(!Ez.isObject(e))return null;let n=_F(t,e=>Object.assign(Object.assign({},xT(e)),{readonly:e.optional.constant(!1),x:e.optional.custom(xS),y:e.optional.custom(xS),z:e.optional.custom(xS)}));return n?{initialValue:e,params:n}:null},binding:{reader:e=>EW,constraint:e=>EZ(e.params,e.initialValue),equals:Ez.equals,writer:e=>E$},controller:e=>{let t=e.value,n=e.constraint,i=[e.params.x,e.params.y,e.params.z];return new ET(e.document,{assembly:Eq,axes:t.rawValue.getComponents().map((t,r)=>{var a;return _C({constraint:n.components[r],initialValue:t,params:yI(e.params,null!==(a=i[r])&&void 0!==a?a:{})})}),parser:_l,value:t,viewProps:e.viewProps})}});class EY{constructor(e=0,t=0,n=0,i=0){this.x=e,this.y=t,this.z=n,this.w=i}getComponents(){return[this.x,this.y,this.z,this.w]}static isObject(e){if(yL(e))return!1;let t=e.x,n=e.y,i=e.z,r=e.w;return"number"==typeof t&&"number"==typeof n&&"number"==typeof i&&"number"==typeof r}static equals(e,t){return e.x===t.x&&e.y===t.y&&e.z===t.z&&e.w===t.w}toObject(){return{x:this.x,y:this.y,z:this.z,w:this.w}}}let EK={toComponents:e=>e.getComponents(),fromComponents:e=>new EY(...e)};function EX(e){return EY.isObject(e)?new EY(e.x,e.y,e.z,e.w):new EY}function EQ(e,t){e.writeProperty("x",t.x),e.writeProperty("y",t.y),e.writeProperty("z",t.z),e.writeProperty("w",t.w)}function EJ(e,t){return new EO({assembly:EK,components:[xL(Object.assign(Object.assign({},e),e.x),t.x),xL(Object.assign(Object.assign({},e),e.y),t.y),xL(Object.assign(Object.assign({},e),e.z),t.z),xL(Object.assign(Object.assign({},e),e.w),t.w)]})}function E0(e){return String(e)}function E1(e){return e}function E2(e){let t=[],n=b2(e.options);return n&&t.push(n),new xE(t)}bu({id:"input-point4d",type:"input",accept:(e,t)=>{if(!EY.isObject(e))return null;let n=_F(t,e=>Object.assign(Object.assign({},xT(e)),{readonly:e.optional.constant(!1),w:e.optional.custom(xS),x:e.optional.custom(xS),y:e.optional.custom(xS),z:e.optional.custom(xS)}));return n?{initialValue:e,params:n}:null},binding:{reader:e=>EX,constraint:e=>EJ(e.params,e.initialValue),equals:EY.equals,writer:e=>EQ},controller:e=>{let t=e.value,n=e.constraint,i=[e.params.x,e.params.y,e.params.z,e.params.w];return new ET(e.document,{assembly:EK,axes:t.rawValue.getComponents().map((t,r)=>{var a;return _C({constraint:n.components[r],initialValue:t,params:yI(e.params,null!==(a=i[r])&&void 0!==a?a:{})})}),parser:_l,value:t,viewProps:e.viewProps})}}),bu({id:"input-string",type:"input",accept:(e,t)=>
244{if("string"!=typeof e)return null;let n=_F(t,e=>({readonly:e.optional.constant(!1),options:e.optional.custom(b0)}));return n?{initialValue:e,params:n}:null},binding:{reader:e=>E0,constraint:e=>E2(e.params),writer:e=>xD},controller:e=>{let t=e.document,n=e.value,i=e.constraint,r=i&&xw(i,bJ);return r?new b4(t,{props:new yB({options:r.values.value("options")}),value:n,viewProps:e.viewProps}):new xt(t,{parser:e=>e,props:yB.fromObject({formatter:E1}),value:n,viewProps:e.viewProps})},api:e=>"string"!=typeof e.controller.value.rawValue?null:e.controller.valueController instanceof b4?new bQ(e.controller):null});let E3={monitor:{defaultInterval:200,defaultRows:3}},E5=_0("mll");class E4{constructor(e,t){this.onValueUpdate_=this.onValueUpdate_.bind(this),this.formatter_=t.formatter,this.element=e.createElement("div"),this.element.classList.add(E5()),t.viewProps.bindClassModifiers(this.element);let n=e.createElement("textarea");n.classList.add(E5("i")),n.style.height=`calc(var(${xC("containerUnitSize")}) * ${t.rows})`,n.readOnly=!0,t.viewProps.bindDisabled(n),this.element.appendChild(n),this.textareaElem_=n,t.value.emitter.on("change",this.onValueUpdate_),this.value=t.value,this.update_()}update_(){let e=this.textareaElem_,t=e.scrollTop===e.scrollHeight-e.clientHeight,n=[];this.value.rawValue.forEach(e=>{void 0!==e&&n.push(this.formatter_(e))}),e.textContent=n.join("\n"),t&&(e.scrollTop=e.scrollHeight)}onValueUpdate_(){this.update_()}}class E6{constructor(e,t){this.value=t.value,this.viewProps=t.viewProps,this.view=new E4(e,{formatter:t.formatter,rows:t.rows,value:this.value,viewProps:this.viewProps})}}let E8=_0("sgl");class E7{constructor(e,t){this.onValueUpdate_=this.onValueUpdate_.bind(this),this.formatter_=t.formatter,this.element=e.createElement("div"),this.element.classList.add(E8()),t.viewProps.bindClassModifiers(this.element);let n=e.createElement("input");n.classList.add(E8("i")),n.readOnly=!0,n.type="text",t.viewProps.bindDisabled(n),this.element.appendChild(n),this.inputElement=n,t.value.emitter.on("change",this.onValueUpdate_),this.value=t.value,this.update_()}update_(){let e=this.value.rawValue,t=e[e.length-1];this.inputElement.value=void 0!==t?this.formatter_(t):""}onValueUpdate_(){this.update_()}}class E9{constructor(e,t){this.value=t.value,this.viewProps=t.viewProps,this.view=new E7(e,{formatter:t.formatter,value:this.value,viewProps:this.viewProps})}}bu({id:"monitor-bool",type:"monitor",accept:(e,t)=>{if("boolean"!=typeof e)return null;let n=_F(t,e=>({readonly:e.required.constant(!0),rows:e.optional.number}));return n?{initialValue:e,params:n}:null},binding:{reader:e=>xR},controller:e=>{var t;return 1===e.value.rawValue.length?new E9(e.document,{formatter:xk,value:e.value,viewProps:e.viewProps}):new E6(e.document,{formatter:xk,rows:null!==(t=e.params.rows)&&void 0!==t?t:E3.monitor.defaultRows,value:e.value,viewProps:e.viewProps})}});class we extends _M{get max(){return this.controller.valueController.props.get("max")}set max(e){this.controller.valueController.props.set("max",e)}get min(){return this.controller.valueController.props.get("min")}set min(e){this.controller.valueController.props.set("min",e)}}let wt=_0("grl");class wn{constructor(e,t){this.onCursorChange_=this.onCursorChange_.bind(this),this.onValueUpdate_=this.onValueUpdate_.bind(this),this.element=e.createElement("div"),this.element.classList.add(wt()),t.viewProps.bindClassModifiers(this.element),this.formatter_=t.formatter,this.props_=t.props,this.cursor_=t.cursor,this.cursor_.emitter.on("change",this.onCursorChange_);let n=e.createElementNS(_U,"svg");n.classList.add(wt("g")),n.style.height=`calc(var(${xC("containerUnitSize")}) * ${t.rows})`,this.element.appendChild(n),this.svgElem_=n;let i=e.createElementNS(_U,"polyline");this.svgElem_.appendChild(i),this.lineElem_=i;let r=e.createElement("div");r.classList.add(wt("t"),_0("tt")()),this.element.appendChild(r),this.tooltipElem_=r,t.value.emitter.on("change",this.onValueUpdate_),this.value=t.value,this.update_()}get graphElement(){return this.svgElem_}update_(){let{clientWidth:e,clientHeight:t}=this.element,n=this.value.rawValue.length-1,i=this.props_.get("min"),r=this.props_.get("max"),a=[];this.value.rawValue.forEach((s,o)=>
244{if(void 0===s)return;let l=_d(o,0,n,0,e),u=_d(s,i,r,t,0);a.push([l,u].join(","))}),this.lineElem_.setAttributeNS(null,"points",a.join(" "));let s=this.tooltipElem_,o=this.value.rawValue[this.cursor_.rawValue];if(void 0===o){s.classList.remove(wt("t","a"));return}let l=_d(this.cursor_.rawValue,0,n,0,e),u=_d(o,i,r,t,0);s.style.left=`${l}px`,s.style.top=`${u}px`,s.textContent=`${this.formatter_(o)}`,s.classList.contains(wt("t","a"))||(s.classList.add(wt("t","a"),wt("t","in")),_V(s),s.classList.remove(wt("t","in")))}onValueUpdate_(){this.update_()}onCursorChange_(){this.update_()}}class wi{constructor(e,t){if(this.onGraphMouseMove_=this.onGraphMouseMove_.bind(this),this.onGraphMouseLeave_=this.onGraphMouseLeave_.bind(this),this.onGraphPointerDown_=this.onGraphPointerDown_.bind(this),this.onGraphPointerMove_=this.onGraphPointerMove_.bind(this),this.onGraphPointerUp_=this.onGraphPointerUp_.bind(this),this.props=t.props,this.value=t.value,this.viewProps=t.viewProps,this.cursor_=yU(-1),this.view=new wn(e,{cursor:this.cursor_,formatter:t.formatter,rows:t.rows,props:this.props,value:this.value,viewProps:this.viewProps}),_H(e)){let e=new xc(this.view.element);e.emitter.on("down",this.onGraphPointerDown_),e.emitter.on("move",this.onGraphPointerMove_),e.emitter.on("up",this.onGraphPointerUp_)}else this.view.element.addEventListener("mousemove",this.onGraphMouseMove_),this.view.element.addEventListener("mouseleave",this.onGraphMouseLeave_)}importProps(e){return _O(e,null,e=>({max:e.required.number,min:e.required.number}),e=>(this.props.set("max",e.max),this.props.set("min",e.min),!0))}exportProps(){return _j(null,{max:this.props.get("max"),min:this.props.get("min")})}onGraphMouseLeave_(){this.cursor_.rawValue=-1}onGraphMouseMove_(e){let{clientWidth:t}=this.view.element;this.cursor_.rawValue=Math.floor(_d(e.offsetX,0,t,0,this.value.rawValue.length))}onGraphPointerDown_(e){this.onGraphPointerMove_(e)}onGraphPointerMove_(e){if(!e.data.point){this.cursor_.rawValue=-1;return}this.cursor_.rawValue=Math.floor(_d(e.data.point.x,0,e.data.bounds.width,0,this.value.rawValue.length))}onGraphPointerUp_(){this.cursor_.rawValue=-1}}function wr(e){return yL(e.format)?_c(2):e.format}function wa(e){var t;return 1===e.value.rawValue.length?new E9(e.document,{formatter:wr(e.params),value:e.value,viewProps:e.viewProps}):new E6(e.document,{formatter:wr(e.params),rows:null!==(t=e.params.rows)&&void 0!==t?t:E3.monitor.defaultRows,value:e.value,viewProps:e.viewProps})}function ws(e){var t,n,i;return new wi(e.document,{formatter:wr(e.params),rows:null!==(t=e.params.rows)&&void 0!==t?t:E3.monitor.defaultRows,props:yB.fromObject({max:null!==(n=e.params.max)&&void 0!==n?n:100,min:null!==(i=e.params.min)&&void 0!==i?i:0}),value:e.value,viewProps:e.viewProps})}function wo(e){return"graph"===e.view}bu({id:"monitor-number",type:"monitor",accept:(e,t)=>{if("number"!=typeof e)return null;let n=_F(t,e=>({format:e.optional.function,max:e.optional.number,min:e.optional.number,readonly:e.required.constant(!0),rows:e.optional.number,view:e.optional.string}));return n?{initialValue:e,params:n}:null},binding:{defaultBufferSize:e=>wo(e)?64:1,reader:e=>_u},controller:e=>wo(e.params)?ws(e):wa(e),api:e=>e.controller.valueController instanceof wi?new we(e.controller):null}),bu({id:"monitor-string",type:"monitor",accept:(e,t)=>{if("string"!=typeof e)return null;let n=_F(t,e=>({multiline:e.optional.boolean,readonly:e.required.constant(!0),rows:e.optional.number}));return n?{initialValue:e,params:n}:null},binding:{reader:e=>E0},controller:e=>{var t;let n=e.value;return n.rawValue.length>1||e.params.multiline?new E6(e.document,{formatter:E1,rows:null!==(t=e.params.rows)&&void 0!==t?t:E3.monitor.defaultRows,value:n,viewProps:e.viewProps}):new E9(e.document,{formatter:E1,value:n,viewProps:e.viewProps})}});class wl{constructor(){this.map_=new Map}get(e){var t;return null!==(t=this.map_.get(e))&&void 0!==t?t:null}has(e){return this.map_.has(e)}add(e,t){return this.map_.set(e,t),e.viewProps.handleDispose(()=>{this.map_.delete(e)}),t}}function wu(e){let t=new Image;return t.crossOrigin="anonymous",t.src=e,t}new wl;let wc=_0("img");class wd{constructor(e,t){this.element=e.createElement("div"),this.element.classList.add(wc()),t.viewProps.bindClassModifiers(this.element),this.input=e.createElement("input"),this.input.classList.add(wc("input")),this.input.setAttribute("type","file"),this.input.setAttribute("accept",t.extensions.join(",")),this.placeholder_=e.createElement("div"),this.placeholder_.classList.add(wc("placeholder")),this.placeholder_.textContent="No Image",this.image_=e.createElement("img"),this.image_.id="tpimg_"+Math.random().toString(36).slice(2),this.image_.classList.add(wc("image")),this.image_.classList.add(wc(`image_${t.imageFit}`)),this.image_.crossOrigin="anonymous",this.image_.style.display="none";let n=e=>t.clickCallback?t.clickCallback(e,this.input):this.input.click();this.image_.onclick=n,this.placeholder_.onclick=n,this.element.classList.add(wc("area_root")),this.element.appendChild(this.placeholder_),this.element.appendChild(this.image_),this.element.appendChild(this.input)}changeImage(e){e&&""!==e&&"placeholder"!==e?(this.image_.onload=()=>{this.image_.style.display="block",this.placeholder_.style.display="none"},this.image_.src=e):(this.image_.style.display="none",this.placeholder_.style.display="flex")}changeDraggingState(e){let t=this.element;e?null==t||t.classList.add(wc("area_dragging")):null==t||t.classList.remove(wc("area_dragging"))}}class wh{constructor(e,t){this.value=t.value,this.viewProps=t.viewProps,this.view=new wd(e,{viewProps:this.viewProps,extensions:t.extensions,imageFit:t.imageFit,clickCallback:t.clickCallback}),this.onFile=this.onFile.bind(this),this.onDrop=this.onDrop.bind(this),this.onDragStart=this.onDragStart.bind(this),this.onDragOver=this.onDragOver.bind(this),this.onDragLeave=this.onDragLeave.bind(this),this.view.input.addEventListener("change",this.onFile),this.view.element.addEventListener("drop",this.onDrop),this.view.element.addEventListener("dragstart",this.onDragStart),this.view.element.addEventListener("dragover",this.onDragOver),this.view.element.addEventListener("dragleave",this.onDragLeave),this.viewProps.handleDispose(()=>{this.view.input.removeEventListener("change",this.onFile),this.view.element.removeEventListener("drop",this.onDrop),this.view.element.removeEventListener("dragstart",this.onDragStart),this.view.element.removeEventListener("dragover",this.onDragOver),this.view.element.removeEventListener("dragleave",this.onDragLeave)}),this.value.emitter.on("change",()=>this.handleValueChange()),this.handleValueChange()}onFile(e){let t=(null==e?void 0:e.target).files;if(!t||!t.length)return;let n=t[0];this.setValue(n)}onDrop(e){e.preventDefault();try{let{dataTransfer:t}=e,n=null==t?void 0:t.files[0];if(n)this.setValue(n);else{let e=null==t?void 0:t.getData("img-id");if(e){let t=document.getElementById(e);this.setValue(t)}else{let e=null==t?void 0:t.getData("url");
244if(!e)throw Error("No url");this.setValue(e)}}}catch(e){console.error("Could not parse the dropped image",e)}finally{this.view.changeDraggingState(!1)}}onDragStart(e){var t,n;null===(t=e.dataTransfer)||void 0===t||t.setData("img-id",this.view.image_.id),null===(n=e.dataTransfer)||void 0===n||n.setDragImage(this.view.image_,0,0)}onDragOver(e){e.preventDefault(),this.view.changeDraggingState(!0)}onDragLeave(){this.view.changeDraggingState(!1)}handleImage(e){e instanceof HTMLImageElement?this.updateImage(e.src):"string"!=typeof e&&e?this.setValue(e):this.updateImage(e||"")}updateImage(e){this.view.changeImage(e)}setValue(e){if(e instanceof HTMLImageElement)this.value.setRawValue(e);else if(e instanceof File){let t=URL.createObjectURL(e)+"#"+e.name;e.src=t;let n=wu(t);this.value.setRawValue(n||e)}else e?this.value.setRawValue(wu(e)):this.value.setRawValue("placeholder")}handleValueChange(){this.handleImage(this.value.rawValue)}}let wf=[".jpg",".png",".gif"];bu({id:"input-image",type:"input",accept(e,t){if(!(e instanceof HTMLImageElement||"string"==typeof e))return null;let n=_F(t,e=>({view:e.required.constant("input-image"),acceptUrl:e.optional.boolean,clickCallback:e.optional.function,imageFit:e.optional.custom(e=>"contain"===e||"cover"===e?e:void 0),extensions:e.optional.array(e.required.string)}));return n?{initialValue:e,params:n}:null},binding:{reader:e=>e=>void 0!==e.src?""===e.src?"placeholder":e.src:e,writer:e=>(e,t)=>{e.write(t)}},controller(e){var t,n;return new wh(e.document,{value:e.value,imageFit:null!==(t=e.params.imageFit)&&void 0!==t?t:"cover",clickCallback:e.params.clickCallback,viewProps:e.viewProps,extensions:null!==(n=e.params.extensions)&&void 0!==n?n:wf})}});var wp=n(64799),wm=n.n(wp);O().bind(wm());var wg=n(55831),wv=n.n(wg);let wy=O().bind(wv());function w_(e){let{headline:t,inducteeInfo:n,showReverb:i,className:r,canAnimateIn:a,hasReveal:s}=e,{inductedBy:o,category:l,class:u}=n,{labels:c}=(0,G.i)(),{inducted:d,inductedBy:h,category:f}=c||{},p=(0,D.Vb)(l,c),[m,g]=(0,T.useState)(!0);(0,T.useEffect)(()=>{let e=0;null==t||t.map(t=>{let n=t.line.trim().length;e<n&&(e=n)}),e>0&&e>=11&&g(!1)},[t]);let v=(e,n)=>3===t.length&&0===e?n.length>=11:n.trim().length>=7,y={hidden:{opacity:0,y:20},visible:{opacity:1,y:0}};return(0,w.jsx)("div",{className:wy(["inductee-hero-content",r]),children:(0,w.jsxs)(E.W,{className:wy("content"),children:[(0,w.jsx)(R.E.div,{className:wy("headline-container"),initial:s?"hidden":{},animate:s?a?"visible":"hidden":{},transition:{duration:k.LL.lg.duration,delay:.3,ease:k.LL.ease},variants:y,children:(0,w.jsx)("div",{className:wy(["headline",{"display-xxxxl":m,"display-xxxl":!m,"has-reverb":i,"small-font-size":!m}]),children:null==t?void 0:t.map((e,n)=>(0,w.jsx)("div",{className:wy("line","line-".concat(t.length,"-").concat(n+1),{"line-long":v(n,e.line)}),children:(0,w.jsx)("span",{className:wy("line-text"),children:e.line.trim()})},n))})}),(0,w.jsxs)(R.E.div,{className:wy("info"),initial:s?"hidden":{},animate:s?a?"visible":"hidden":{},transition:{duration:k.LL.lg.duration,delay:.4,ease:k.LL.ease},variants:y,children:[(0,w.jsxs)("span",{className:wy("item"),children:[(0,w.jsx)("p",{className:wy("eyebrow-l","eyebrow"),children:d}),(0,w.jsx)("p",{className:wy("title-uc-xs","value"),children:u})]}),(0,w.jsxs)("span",{className:wy("item"),children:[(0,w.jsx)("p",{className:wy("eyebrow-l","eyebrow"),children:f}),(0,w.jsx)("p",{className:wy("title-uc-xs","value"),children:null==p?void 0:p.headline})]}),o&&(0,w.jsxs)("span",{className:wy("item"),children:[(0,w.jsx)("p",{className:wy("eyebrow-l","eyebrow"),children:h}),(0,w.jsx)("p",{className:wy("title-uc-xs","value"),children:o})]})]})]})})}n(66571),n(35782);let wb=!1,wx=!1,wC=10,wE=600,ww=!1,wT={TILE_REVEALED:"\uD83D\uDFEA",INCORRECT_GUESS:"â",CORRECT_GUESS:"â
",UNUSED:"â¬"},wS={TILE_FLIP_DURATION:320,TILE_HOVER_DURATION:200,INCORRECT_FEEDBACK_DURATION:1500,SHAKE_DURATION:100,SHAKE_DISTANCE:12,SHAKE_TIMES:3,SHAKE_SPEED:1.65,TOAST_FADE_IN:300,TOAST_FADE_OUT:250,GAME_OVER_FADE_TILES_DUR:.2,GAME_OVER_FADE_TILES_GAP_DUR:.05,GAME_OVER_SOUNDWAVE_DUR:1.25,AUTOCOMPLETE_FADE:150,AUTOCOMPLETE_HEIGHT:250,AUTOCOMPLETE_BLUR_DELAY:200},wL={MAX_STRENGTH:30,DURATION:1200,BASE_FREQ_X:.018,BASE_FREQ_Y:.004,FREQ_VARIATION_X:.005,FREQ_VARIATION_Y:.002,FREQ_TIME_MULTIPLIER_X:1.2,FREQ_TIME_MULTIPLIER_Y:.8,NOISE_INTENSITY:.003,FREQ_CHANGE_STEPS:8,OCTAVES:2},{log:wP}=(0,ij.q)({name:"GameLocalStorage",bgColor:"orange",enabled:wb}),wM="coverStoryGameData",wA=()=>{try{let e=localStorage.getItem(wM);if(!e)return wP("getGameData","No data found in localStorage"),{hasSeenInfoModal:!1,completedGames:[],inProgressGames:[]};let t=JSON.parse(e);return t.inProgressGames||(t.inProgressGames=[]),wP("getGameData","Data loaded",t),t}catch(e){return wP("getGameData","Error reading data",e),{hasSeenInfoModal:!1,completedGames:[],inProgressGames:[]}}},wI=e=>{try{localStorage.setItem(wM,JSON.stringify(e)),wP("saveGameData","Data saved",{completedGames:e.completedGames.length,hasSeenInfoModal:e.hasSeenInfoModal})}catch(e){wP("saveGameData","Error saving data",e)}},wR=()=>wA().hasSeenInfoModal,wk=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=wA();t.hasSeenInfoModal=e,wI(t),wP("setHasSeenInfoModal","Set hasSeenInfoModal",e)},wD=e=>wA().completedGames.find(t=>t.gameNumber===e)||null,wN=e=>{let t=wA();t.completedGames=t.completedGames.filter(t=>t.gameNumber!==e.gameNumber),t.completedGames.push(e),t.inProgressGames=t.inProgressGames.filter(t=>t.gameNumber!==e.gameNumber),wI(t),wP("saveCompletedGame","Saved completed game",{gameNumber:e.gameNumber,won:e.won,guessCount:e.guessCount})},wF=e=>wA().inProgressGames.find(t=>t.gameNumber===e)||null,wO=e=>{let t=wA();t.inProgressGames=t.inProgressGames.filter(t=>t.gameNumber!==e.gameNumber),e.lastUpdated=new Date().toISOString(),t.inProgressGames.push(e),wI(t),wP("saveInProgressGame","Saved in-progress game",{gameNumber:e.gameNumber,flippedTiles:e.flippedTileIds.length,guesses:e.guessesUsed})},wj=e=>{let t=wA(),n=t.inProgressGames.length;t.inProgressGames=t.inProgressGames.filter(t=>t.gameNumber!==e),n!==t.inProgressGames.length&&(wI(t),wP("clearInProgressGame","Cleared in-progress game",{gameNumber:e}))},wU=()=>{try{localStorage.removeItem(wM),wP("clearGameData","All data cleared")}catch(e){wP("clearGameData","Error clearing data",e)}};var wV=n(12631),wB=n.n(wV);let wH=O().bind(wB());function wG(e){let{headline:t,subhead:n,ctaLabel:i,resumeCtaLabel:r,solvedCtaLabel:a,lostCtaLabel:s,image:o,latestGame:l}=e,{log:u}=(0,ij.q)({name:"CoverStoryHero",bgColor:"rebeccapurple",textColor:"white",enabled:!1});u({headline:t,subhead:n,ctaLabel:i,resumeCtaLabel:r,solvedCtaLabel:a,lostCtaLabel:s,latestGame:l});let c={headline:t||"Missing headline",subhead:n||"Missing subhead",ctaLabel:i||"Missing play game",solvedCtaLabel:a||"Missing played",lostCtaLabel:s||"Missing you lost"},d=(0,D.Ay)(c.headline).replace(/<br\s*\/?>/gi,""),h=(null==l?void 0:l.gameData.gameNumber)||null,f=(null==l?void 0:l.title)||null,p=(null==l?void 0:l.uri)||"#",m=(0,T.useRef)(null),g=(0,T.useRef)(null),v=(0,T.useRef)(null),[y,_]=(0,T.useState)(0),[b,x]=(0,T.useState)(!1),[C,S]=(0,T.useState)(null),{mounted:L}=(0,eT.F)(),{isReady:P}=(0,N.dg)();(0,T.useEffect)(()=>
244{if(!L||!h)return;let e=wD(String(h));e?(x(!0),S(e.won),u("Checked game completion status",{gameNumber:h,played:!0,won:e.won})):(x(!1),S(null))},[L,h]),(0,iM.V)(()=>{L&&P&&g.current&&v.current&&(u("Animation initialized"),M())},[L,P,y]);let M=()=>{u("initializeAnimations");let e=nT.ZP.timeline().add("start","+=0.9");m.current&&e.fromTo(m.current,{y:"6rem",opacity:0},{y:"0rem",opacity:1,duration:.5,ease:"power3.out"},0);let t="1rem";g.current&&e.fromTo(g.current,{opacity:0,y:t},{opacity:1,y:0,duration:.3,ease:"power1.out"},"start"),v.current&&e.fromTo(v.current,{opacity:0,y:t},{opacity:1,y:0,duration:.3,ease:"power1.out"},"-=0.2")};return(0,w.jsx)("section",{className:wH(["cover-story-hero"]),children:(0,w.jsx)(E.W,{className:wH("container"),children:(0,w.jsxs)("div",{className:wH("content"),ref:m,children:[(0,w.jsx)(tc.E,{image:o,sizes:"2048px",className:wH("image")}),(0,w.jsxs)("div",{className:wH("copy"),children:[(0,w.jsx)(cr,{tag:"h1",text:d,className:wH(["headline","title-uc-xxxxl"]),isRevealEnabled:!0,isInView:!0},y),(0,w.jsx)("p",{className:wH(["subhead","title-lc-xs"]),ref:g,dangerouslySetInnerHTML:{__html:c.subhead}}),(0,w.jsxs)("div",{ref:v,className:wH("current-game"),children:[(0,w.jsx)("p",{className:wH(["text","title-lc-xs"]),children:"#".concat(h," - ").concat(f)}),(0,w.jsx)(id.z,{label:b?C?c.solvedCtaLabel:c.lostCtaLabel:c.ctaLabel,url:p})]})]})]})})})}var wz=n(30138);let wq=(0,T.createContext)({});function wW(e){let t=(0,T.useRef)(null);return null===t.current&&(t.current=e()),t.current}let w$="undefined"!=typeof window,wZ=w$?T.useLayoutEffect:T.useEffect,wY=(0,T.createContext)(null);function wK(e){return"object"==typeof e&&null!==e}function wX(e){return wK(e)&&"offsetHeight"in e}let wQ=(0,T.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class wJ extends T.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,n=wX(e)&&e.offsetWidth||0,i=this.props.sizeRef.current;i.height=t.offsetHeight||0,i.width=t.offsetWidth||0,i.top=t.offsetTop,i.left=t.offsetLeft,i.right=n-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function w0({children:e,isPresent:t,anchorX:n}){let i=(0,T.useId)(),r=(0,T.useRef)(null),a=(0,T.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:s}=(0,T.useContext)(wQ);return(0,T.useInsertionEffect)(()=>{let{width:e,height:o,top:l,left:u,right:c}=a.current;if(t||!r.current||!e||!o)return;let d="left"===n?`left: ${u}`:`right: ${c}`;r.current.dataset.motionPopId=i;let h=document.createElement("style");return s&&(h.nonce=s),document.head.appendChild(h),h.sheet&&h.sheet.insertRule(` 245 [data-motion-pop-id="${i}"] { 246 position: absolute !important; 247 width: ${e}px !important; 248 height: ${o}px !important; 249 ${d}px !important; 250 top: ${l}px !important; 251 } 252 `),()=>{document.head.contains(h)&&document.head.removeChild(h)}},[t]),(0,w.jsx)(wJ,{isPresent:t,childRef:r,sizeRef:a,children:T.cloneElement(e,{ref:r})})}let w1=({children:e,initial:t,isPresent:n,onExitComplete:i,custom:r,presenceAffectsLayout:a,mode:s,anchorX:o})=>{let l=wW(w2),u=(0,T.useId)(),c=!0,d=(0,T.useMemo)(()=>(c=!1,{id:u,initial:t,isPresent:n,custom:r,onExitComplete:e=>
252{for(let t of(l.set(e,!0),l.values()))if(!t)return;i&&i()},register:e=>(l.set(e,!1),()=>l.delete(e))}),[n,l,i]);return a&&c&&(d={...d}),(0,T.useMemo)(()=>{l.forEach((e,t)=>l.set(t,!1))},[n]),T.useEffect(()=>{n||l.size||!i||i()},[n]),"popLayout"===s&&(e=(0,w.jsx)(w0,{isPresent:n,anchorX:o,children:e})),(0,w.jsx)(wY.Provider,{value:d,children:e})};function w2(){return new Map}function w3(e=!0){let t=(0,T.useContext)(wY);if(null===t)return[!0,null];let{isPresent:n,onExitComplete:i,register:r}=t,a=(0,T.useId)();(0,T.useEffect)(()=>{if(e)return r(a)},[e]);let s=(0,T.useCallback)(()=>e&&i&&i(a),[a,i,e]);return!n&&i?[!1,s]:[!0]}let w5=e=>e.key||"";function w4(e){let t=[];return T.Children.forEach(e,e=>{(0,T.isValidElement)(e)&&t.push(e)}),t}let w6=({children:e,custom:t,initial:n=!0,onExitComplete:i,presenceAffectsLayout:r=!0,mode:a="sync",propagate:s=!1,anchorX:o="left"})=>{let[l,u]=w3(s),c=(0,T.useMemo)(()=>w4(e),[e]),d=s&&!l?[]:c.map(w5),h=(0,T.useRef)(!0),f=(0,T.useRef)(c),p=wW(()=>new Map),[m,g]=(0,T.useState)(c),[v,y]=(0,T.useState)(c);wZ(()=>{h.current=!1,f.current=c;for(let e=0;e<v.length;e++){let t=w5(v[e]);d.includes(t)?p.delete(t):!0!==p.get(t)&&p.set(t,!1)}},[v,d.length,d.join("-")]);let _=[];if(c!==m){let e=[...c];for(let t=0;t<v.length;t++){let n=v[t],i=w5(n);d.includes(i)||(e.splice(t,0,n),_.push(n))}return"wait"===a&&_.length&&(e=_),y(w4(e)),g(c),null}let{forceRender:b}=(0,T.useContext)(wq);return(0,w.jsx)(w.Fragment,{children:v.map(e=>{let m=w5(e),g=(!s||!!l)&&(c===v||d.includes(m)),_=()=>{if(!p.has(m))return;p.set(m,!0);let e=!0;p.forEach(t=>{t||(e=!1)}),e&&(b?.(),y(f.current),s&&u?.(),i&&i())};return(0,w.jsx)(w1,{isPresent:g,initial:(!h.current||!!n)&&void 0,custom:t,presenceAffectsLayout:r,mode:a,onExitComplete:g?void 0:_,anchorX:o,children:e},m)})})};function w8(e){if("undefined"==typeof Proxy)return e;let t=new Map;return new Proxy((...t)=>e(...t),{get:(n,i)=>"create"===i?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}function w7(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function w9(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Te(e,t,n,i){if("function"==typeof t){let[r,a]=w9(i);t=t(void 0!==n?n:e.custom,r,a)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[r,a]=w9(i);t=t(void 0!==n?n:e.custom,r,a)}return t}function Tt(e,t,n){let i=e.getProps();return Te(i,t,void 0!==n?n:i.custom,e)}function Tn(e,t){return e?.[t]??e?.default??e}let Ti=e=>e,Tr={},Ta=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],Ts={value:null,addProjectionMetrics:null};function To(e,t){let n=new Set,i=new Set,r=!1,a=!1,s=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1},l=0;function u(t){s.has(t)&&(c.schedule(t),e()),l++,t(o)}let c={schedule:(e,t=!1,a=!1)=>{let o=a&&r?n:i;return t&&s.add(e),o.has(e)||o.add(e),e},cancel:e=>{i.delete(e),s.delete(e)},process:e=>{if(o=e,r){a=!0;return}
252r=!0,[n,i]=[i,n],n.forEach(u),t&&Ts.value&&Ts.value.frameloop[t].push(l),l=0,n.clear(),r=!1,a&&(a=!1,c.process(e))}};return c}let Tl=40;function Tu(e,t){let n=!1,i=!0,r={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,s=Ta.reduce((e,n)=>(e[n]=To(a,t?n:void 0),e),{}),{setup:o,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:h,render:f,postRender:p}=s,m=()=>{let a=Tr.useManualTiming?r.timestamp:performance.now();n=!1,Tr.useManualTiming||(r.delta=i?1e3/60:Math.max(Math.min(a-r.timestamp,Tl),1)),r.timestamp=a,r.isProcessing=!0,o.process(r),l.process(r),u.process(r),c.process(r),d.process(r),h.process(r),f.process(r),p.process(r),r.isProcessing=!1,n&&t&&(i=!1,e(m))},g=()=>{n=!0,i=!0,r.isProcessing||e(m)};return{schedule:Ta.reduce((e,t)=>{let i=s[t];return e[t]=(e,t=!1,r=!1)=>(n||g(),i.schedule(e,t,r)),e},{}),cancel:e=>{for(let t=0;t<Ta.length;t++)s[Ta[t]].cancel(e)},state:r,steps:s}}let{schedule:Tc,cancel:Td,state:Th,steps:Tf}=Tu("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:Ti,!0),Tp=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Tm=new Set(Tp),Tg=new Set(["width","height","top","left","right","bottom",...Tp]);function Tv(e,t){-1===e.indexOf(t)&&e.push(t)}function Ty(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class T_{constructor(){this.subscriptions=[]}add(e){return Tv(this.subscriptions,e),()=>Ty(this.subscriptions,e)}notify(e,t,n){let i=this.subscriptions.length;if(i){if(1===i)this.subscriptions[0](e,t,n);else for(let r=0;r<i;r++){let i=this.subscriptions[r];i&&i(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Tb(e,t){return t?1e3/t*e:0}function Tx(){i=void 0}let TC={now:()=>(void 0===i&&TC.set(Th.isProcessing||Tr.useManualTiming?Th.timestamp:performance.now()),i),set:e=>{i=e,queueMicrotask(Tx)}},TE=30,Tw=e=>!isNaN(parseFloat(e)),TT={current:void 0};class TS{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{let n=TC.now();if(this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty();t&&this.events.renderRequest?.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=TC.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=Tw(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new T_);let n=this.events[e].add(t);return"change"===e?()=>{n(),Tc.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return TT.current&&TT.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=TC.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>TE)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,TE);return Tb(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function TL(e,t){return new TS(e,t)}let TP=e=>Array.isArray(e);function TM(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,TL(n))}function TA(e){return TP(e)?e[e.length-1]||0:e}function TI(e,t){let{transitionEnd:n={},transition:i={},...r}=Tt(e,t)||{};for(let t in r={...r,...n}){let n=TA(r[t]);TM(e,t,n)}}let TR=e=>!!(e&&e.getVelocity);function Tk(e){return!!(TR(e)&&e.add)}function TD(e,t){let n=e.getValue("willChange");if(Tk(n))return n.add(t);if(!n&&Tr.WillChange){let n=new Tr.WillChange("auto");e.addValue("willChange",n),n.add(t)}}let TN=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),TF="data-"+TN("framerAppearId");function TO(e){return e.props[TF]}let Tj=(e,t)=>n=>t(e(n)),TU=(...e)=>e.reduce(Tj),TV=(e,t,n)=>n>t?t:n<e?e:n,TB=e=>1e3*e,TH=e=>e/1e3,TG={layout:0,mainThread:0,waapi:0},Tz=()=>{},Tq=()=>{},TW=e=>t=>"string"==typeof t&&t.startsWith(e),T$=TW("--"),TZ=TW("var(--"),TY=e=>!!TZ(e)&&TK.test(e.split("/*")[0].trim()),TK=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,TX={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},TQ={...TX,transform:e=>TV(0,1,e)},TJ={...TX,default:1},T0=e=>Math.round(1e5*e)/1e5,T1=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function T2(e){return null==e}let T3=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,T5=(e,t)=>n=>!!("string"==typeof n&&T3.test(n)&&n.startsWith(e)||t&&!T2(n)&&Object.prototype.hasOwnProperty.call(n,t)),T4=(e,t,n)=>i=>{if("string"!=typeof i)return i;let[r,a,s,o]=i.match(T1);return{[e]:parseFloat(r),[t]:parseFloat(a),[n]:parseFloat(s),alpha:void 0!==o?parseFloat(o):1}},T6=e=>TV(0,255,e),T8={...TX,transform:e=>Math.round(T6(e))},T7={test:T5("rgb","red"),parse:T4("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+T8.transform(e)+", "+T8.transform(t)+", "+T8.transform(n)+", "+T0(TQ.transform(i))+")"};function T9(e){let t="",n="",i="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,i+=i,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alph
252a:r?parseInt(r,16)/255:1}}let Se={test:T5("#"),parse:T9,transform:T7.transform},St=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Sn=St("deg"),Si=St("%"),Sr=St("px"),Sa=St("vh"),Ss=St("vw"),So={...Si,parse:e=>Si.parse(e)/100,transform:e=>Si.transform(100*e)},Sl={test:T5("hsl","hue"),parse:T4("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+Si.transform(T0(t))+", "+Si.transform(T0(n))+", "+T0(TQ.transform(i))+")"},Su={test:e=>T7.test(e)||Se.test(e)||Sl.test(e),parse:e=>T7.test(e)?T7.parse(e):Sl.test(e)?Sl.parse(e):Se.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?T7.transform(e):Sl.transform(e)},Sc=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Sd="number",Sh="color",Sf="var",Sp="var(",Sm="${}",Sg=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Sv(e){let t=e.toString(),n=[],i={color:[],number:[],var:[]},r=[],a=0,s=t.replace(Sg,e=>(Su.test(e)?(i.color.push(a),r.push(Sh),n.push(Su.parse(e))):e.startsWith(Sp)?(i.var.push(a),r.push(Sf),n.push(e)):(i.number.push(a),r.push(Sd),n.push(parseFloat(e))),++a,Sm)).split(Sm);return{values:n,split:s,indexes:i,types:r}}function Sy(e){return Sv(e).values}function S_(e){let{split:t,types:n}=Sv(e),i=t.length;return e=>{let r="";for(let a=0;a<i;a++)if(r+=t[a],void 0!==e[a]){let t=n[a];t===Sd?r+=T0(e[a]):t===Sh?r+=Su.transform(e[a]):r+=e[a]}return r}}let Sb=e=>"number"==typeof e?0:e;function Sx(e){let t=Sy(e);return S_(e)(t.map(Sb))}let SC={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(T1)?.length||0)+(e.match(Sc)?.length||0)>0},parse:Sy,createTransformer:S_,getAnimatableNone:Sx};function SE(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Sw({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,n/=100;let r=0,a=0,s=0;if(t/=100){let i=n<.5?n*(1+t):n+t-n*t,o=2*n-i;r=SE(o,i,e+1/3),a=SE(o,i,e),s=SE(o,i,e-1/3)}else r=a=s=n;return{red:Math.round(255*r),green:Math.round(255*a),blue:Math.round(255*s),alpha:i}}function ST(e,t){return n=>n>0?t:e}let SS=(e,t,n)=>e+(t-e)*n,SL=(e,t,n)=>{let i=e*e,r=n*(t*t-i)+i;return r<0?0:Math.sqrt(r)},SP=[Se,T7,Sl],SM=e=>SP.find(t=>t.test(e));function SA(e){let t=SM(e);if(Tz(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Sl&&(n=Sw(n)),n}let SI=(e,t)=>{let n=SA(e),i=SA(t);if(!n||!i)return ST(e,t);let r={...n};return e=>(r.red=SL(n.red,i.red,e),r.green=SL(n.green,i.green,e),r.blue=SL(n.blue,i.blue,e),r.alpha=SS(n.alpha,i.alpha,e),T7.transform(r))},SR=new Set(["none","hidden"]);function Sk(e,t){return SR.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function SD(e,t){return n=>SS(e,t,n)}function SN(e){return"number"==typeof e?SD:"string"==typeof e?TY(e)?ST:Su.test(e)?SI:SU:Array.isArray(e)?SF:"object"==typeof e?Su.test(e)?SI:SO:ST}function SF(e,t){let n=[...e],i=n.length,r=e.map((e,n)=>SN(e)(e,t[n]));return e=>{for(let t=0;t<i;t++)n[t]=r[t](e);return n}}function SO(e,t){let n={...e,...t},i={};for(let r in n)void 0!==e[r]&&void 0!==t[r]&&(i[r]=SN(e[r])(e[r],t[r]));return e=>{for(let t in i)n[t]=i[t](e);return n}}function Sj(e,t){let n=[],i={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){let a=t.types[r],s=e.indexes[a][i[a]],o=e.values[s]??0;n[r]=o,i[a]++}return n}let SU=(e,t)=>{let n=SC.createTransformer(t),i=Sv(e),r=Sv(t);return i.indexes.var.length===r.indexes.var.length&&i.indexes.color.length===r.indexes.color.length&&i.indexes.number.length>=r.indexes.number.length?SR.has(e)&&!r.values.length||SR.has(t)&&!i.values.length?Sk(e,t):TU(SF(Sj(i,r),r.values),n):(Tz(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),ST(e,t))};function SV(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?SS(e,t,n):SN(e)(e,t)}let SB=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>Tc.update(t,e),stop:()=>Td(t),now:()=>Th.isProcessing?Th.timestamp:TC.now()}},SH=(e,t,n=10)=>{let i="",r=Math.max(Math.round(t/n),2);for(let t=0;t<r;t++)i+=e(t/(r-1))+", ";return`linear(${i.substring(0,i.length-2)})`},SG=2e4;function Sz(e){let t=0,n=50,i=e.next(t);for(;!i.done&&t<SG;)t+=n,i=e.next(t);return t>=SG?1/0:t}function Sq(e,t=100,n){let i=n({...e,keyframes:[0,t]}),r=Math.min(Sz(i),SG);return{type:"keyframes",ease:e=>i.next(r*e).value/t,duration:TH(r)}
252}let SW=5;function S$(e,t,n){let i=Math.max(t-SW,0);return Tb(n-e(i),t-i)}let SZ={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},SY=.001;function SK({duration:e=SZ.duration,bounce:t=SZ.bounce,velocity:n=SZ.velocity,mass:i=SZ.mass}){let r,a;Tz(e<=TB(SZ.maxDuration),"Spring duration must be 10 seconds or less");let s=1-t;s=TV(SZ.minDamping,SZ.maxDamping,s),e=TV(SZ.minDuration,SZ.maxDuration,TH(e)),s<1?(r=t=>{let i=t*s,r=i*e;return SY-(i-n)/SJ(t,s)*Math.exp(-r)},a=t=>{let i=t*s*e,a=i*n+n,o=Math.pow(s,2)*Math.pow(t,2)*e,l=Math.exp(-i),u=SJ(Math.pow(t,2),s);return(a-o)*l*(-r(t)+SY>0?-1:1)/u}):(r=t=>-SY+Math.exp(-t*e)*((t-n)*e+1),a=t=>e*e*(n-t)*Math.exp(-t*e));let o=SQ(r,a,5/e);if(e=TB(e),isNaN(o))return{stiffness:SZ.stiffness,damping:SZ.damping,duration:e};{let t=Math.pow(o,2)*i;return{stiffness:t,damping:2*s*Math.sqrt(i*t),duration:e}}}let SX=12;function SQ(e,t,n){let i=n;for(let n=1;n<SX;n++)i-=e(i)/t(i);return i}function SJ(e,t){return e*Math.sqrt(1-t*t)}let S0=["duration","bounce"],S1=["stiffness","damping","mass"];function S2(e,t){return t.some(t=>void 0!==e[t])}function S3(e){let t={velocity:SZ.velocity,stiffness:SZ.stiffness,damping:SZ.damping,mass:SZ.mass,isResolvedFromDuration:!1,...e};if(!S2(e,S1)&&S2(e,S0)){if(e.visualDuration){let n=2*Math.PI/(1.2*e.visualDuration),i=n*n,r=2*TV(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:SZ.mass,stiffness:i,damping:r}}else{let n=SK(e);(t={...t,...n,mass:SZ.mass}).isResolvedFromDuration=!0}}return t}function S5(e=SZ.visualDuration,t=SZ.bounce){let n;let i="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:r,restDelta:a}=i,s=i.keyframes[0],o=i.keyframes[i.keyframes.length-1],l={done:!1,value:s},{stiffness:u,damping:c,mass:d,duration:h,velocity:f,isResolvedFromDuration:p}=S3({...i,velocity:-TH(i.velocity||0)}),m=f||0,g=c/(2*Math.sqrt(u*d)),v=o-s,y=TH(Math.sqrt(u/d)),_=5>Math.abs(v);if(r||(r=_?SZ.restSpeed.granular:SZ.restSpeed.default),a||(a=_?SZ.restDelta.granular:SZ.restDelta.default),g<1){let e=SJ(y,g);n=t=>o-Math.exp(-g*y*t)*((m+g*y*v)/e*Math.sin(e*t)+v*Math.cos(e*t))}else if(1===g)n=e=>o-Math.exp(-y*e)*(v+(m+y*v)*e);else{let e=y*Math.sqrt(g*g-1);n=t=>{let n=Math.exp(-g*y*t),i=Math.min(e*t,300);return o-n*((m+g*y*v)*Math.sinh(i)+e*v*Math.cosh(i))/e}}let b={calculatedDuration:p&&h||null,next:e=>{let t=n(e);if(p)l.done=e>=h;else{let i=0===e?m:0;g<1&&(i=0===e?TB(m):S$(n,e,t));let s=Math.abs(i)<=r,u=Math.abs(o-t)<=a;l.done=s&&u}return l.value=l.done?o:t,l},toString:()=>{let e=Math.min(Sz(b),SG),t=SH(t=>b.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return b}function S4({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:a=500,modifyTarget:s,min:o,max:l,restDelta:u=.5,restSpeed:c}){let d,h;let f=e[0],p={done:!1,value:f},m=e=>void 0!==o&&e<o||void 0!==l&&e>l,g=e=>void 0===o?l:void 0===l?o:Math.abs(o-e)<Math.abs(l-e)?o:l,v=n*t,y=f+v,_=void 0===s?y:s(y);_!==y&&(v=_-f);let b=e=>-v*Math.exp(-e/i),x=e=>_+b(e),C=e=>{let t=b(e),n=x(e);p.done=Math.abs(t)<=u,p.value=p.done?_:n},E=e=>{m(p.value)&&(d=e,h=S5({keyframes:[p.value,g(p.value)],velocity:S$(x,e,p.value),damping:r,stiffness:a,restDelta:u,restSpeed:c}))};return E(0),{calculatedDuration:null,next:e=>{let t=!1;return(h||void 0!==d||(t=!0,C(e),E(e)),void 0!==d&&e>=d)?h.next(e-d):(t||C(e),p)}}}S5.applyToOptions=e=>{let t=Sq(e,100,S5);return e.ease=t.ease,e.duration=TB(t.duration),e.type="keyframes",e};let S6=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,S8=1e-7,S7=12;function S9(e,t,n,i,r){let a,s;let o=0;do(a=S6(s=t+(n-t)/2,i,r)-e)>0?n=s:t=s;while(Math.abs(a)>S8&&++o<S7);return s}function Le(e,t,n,i){if(e===t&&n===i)return Ti;let r=t=>S9(t,0,1,e,n);return e=>0===e||1===e?e:S6(r(e),t,i)}let Lt=Le(.42,0,1,1),Ln=Le(0,0,.58,1),Li=Le(.42,0,.58,1),Lr=e=>Array.isArray(e)&&"number"!=typeof e[0],La=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ls=e=>t=>1-e(1-t),Lo=Le(.33,1.53,.69,.99),Ll=Ls(Lo),Lu=La(Ll),Lc=e=>(e*=2)<1?.5*Ll(e):.5*(2-Math.pow(2,-10*(e-1))),Ld=e=>1-Math.sin(Math.acos(e)),Lh=Ls(Ld),Lf=La(Ld),Lp=e=>Array.isArray(e)&&"number"==typeof e[0],Lm={linear:Ti,easeIn:Lt,easeInOut:Li,easeOut:Ln,circIn:Ld,circInOut:Lf,circOut:Lh,backIn:Ll,backInOut:Lu,backOut:Lo,anticipate:Lc},Lg=e=>"string"==typeof e,Lv=e=>{if(Lp(e)){Tq(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,n,i,r]=e;return Le(t,n,i,r)}return Lg(e)?(Tq(void 0!==Lm[e],`Invalid easing type '${e}'`),Lm[e]):e},Ly=(e,t,n)=>{let i=t-e;return 0===i?1:(n-e)/i};function L_(e,t,n){let i=[],r=n||Tr.mix||SV,a=e.length-1;for(let n=0;n<a;n++){let a=r(e[n],e[n+1]);t&&(a=TU(Array.isArray(t)?t[n]||Ti:t,a)),i.push(a)}return i}
252function Lb(e,t,{clamp:n=!0,ease:i,mixer:r}={}){let a=e.length;if(Tq(a===t.length,"Both input and output ranges must be the same length"),1===a)return()=>t[0];if(2===a&&t[0]===t[1])return()=>t[1];let s=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let o=L_(t,i,r),l=o.length,u=n=>{if(s&&n<e[0])return t[0];let i=0;if(l>1)for(;i<e.length-2&&!(n<e[i+1]);i++);let r=Ly(e[i],e[i+1],n);return o[i](r)};return n?t=>u(TV(e[0],e[a-1],t)):u}function Lx(e,t){let n=e[e.length-1];for(let i=1;i<=t;i++){let r=Ly(0,t,i);e.push(SS(n,1,r))}}function LC(e){let t=[0];return Lx(t,e.length-1),t}function LE(e,t){return e.map(e=>e*t)}function Lw(e,t){return e.map(()=>t||Li).splice(0,e.length-1)}function LT({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){let r=Lr(i)?i.map(Lv):Lv(i),a={done:!1,value:t[0]},s=Lb(LE(n&&n.length===t.length?n:LC(t),e),t,{ease:Array.isArray(r)?r:Lw(t,r)});return{calculatedDuration:e,next:t=>(a.value=s(t),a.done=t>=e,a)}}let LS=e=>null!==e;function LL(e,{repeat:t,repeatType:n="loop"},i,r=1){let a=e.filter(LS),s=r<0||t&&"loop"!==n&&t%2==1?0:a.length-1;return s&&void 0!==i?i:a[s]}let LP={decay:S4,inertia:S4,tween:LT,keyframes:LT,spring:S5};function LM(e){"string"==typeof e.type&&(e.type=LP[e.type])}class LA{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let LI=e=>e/100;class LR extends LA{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==TC.now()&&this.tick(TC.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},TG.mainThread++,this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;LM(e);let{type:t=LT,repeat:n=0,repeatDelay:i=0,repeatType:r,velocity:a=0}=e,{keyframes:s}=e,o=t||LT;o!==LT&&"number"!=typeof s[0]&&(this.mixKeyframes=TU(LI,SV(s[0],s[1])),s=[0,100]);let l=o({...e,keyframes:s});"mirror"===r&&(this.mirroredGenerator=o({...e,keyframes:[...s].reverse(),velocity:-a})),null===l.calculatedDuration&&(l.calculatedDuration=Sz(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(n+1)-i,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let{generator:n,totalDuration:i,mixKeyframes:r,mirroredGenerator:a,resolvedDuration:s,calculatedDuration:o}=this;if(null===this.startTime)return n.next(0);let{delay:l=0,keyframes:u,repeat:c,repeatType:d,repeatDelay:h,type:f,onUpdate:p,finalKeyframe:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?g<0:g>i;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=i);let y=this.currentTime,_=n;if(c){let e=Math.min(this.currentTime,i)/s,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,c+1))%2&&("reverse"===d?(n=1-n,h&&(n-=h/s)):"mirror"===d&&(_=a)),y=TV(0,1,n)*s}let b=v?{done:!1,value:u[0]}:_.next(y);r&&(b.value=r(b.value));let{done:x}=b;v||null===o||(x=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);let C=null===this.holdTime&&("finished"===this.state||"running"===this.state&&x);return C&&f!==S4&&(b.value=LL(u,this.options,m,this.speed)),p&&p(b.value),C&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return TH(this.calculatedDuration)}get time(){return TH(this.currentTime)}set time(e){e=TB(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(TC.now());let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=TH(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=SB,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(TC.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,TG.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function Lk(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}let LD=e=>180*e/Math.PI,LN=e=>LO(LD(Math.atan2(e[1],e[0]))),LF={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:LN,rotateZ:LN,skewX:e=>LD(Math.atan(e[1])),skewY:e=>LD(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},LO=e=>((e%=360)<0&&(e+=360),e),Lj=LN,LU=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),LV=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),LB={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:LU,scaleY:LV,scale:e=>(LU(e)+LV(e))/2,rotateX:e=>LO(LD(Math.atan2(e[6],e[5]))),rotateY:e=>LO(LD(Math.atan2(-e[2],e[0]))),rotateZ:Lj,rotate:Lj,skewX:e=>LD(Math.atan(e[4])),skewY:e=>LD(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function LH(e){return e.includes("scale")?1:0}function LG(e,t){let n,i;if(!e||"none"===e)return LH(t);let r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)n=LB,i=r;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=LF,i=t}if(!i)return LH(t);let a=n[t],s=i[1].split(",").map(Lq);return"function"==typeof a?a(s):s[a]}let Lz=(e,t)=>
252{let{transform:n="none"}=getComputedStyle(e);return LG(n,t)};function Lq(e){return parseFloat(e.trim())}let LW=e=>e===TX||e===Sr,L$=new Set(["x","y","z"]),LZ=Tp.filter(e=>!L$.has(e));function LY(e){let t=[];return LZ.forEach(n=>{let i=e.getValue(n);void 0!==i&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),t}let LK={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>LG(t,"x"),y:(e,{transform:t})=>LG(t,"y")};LK.translateX=LK.x,LK.translateY=LK.y;let LX=new Set,LQ=!1,LJ=!1,L0=!1;function L1(){if(LJ){let e=Array.from(LX).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=LY(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}LJ=!1,LQ=!1,LX.forEach(e=>e.complete(L0)),LX.clear()}function L2(){LX.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(LJ=!0)})}function L3(){L0=!0,L2(),L1(),L0=!1}class L5{constructor(e,t,n,i,r,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=i,this.element=r,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(LX.add(this),LQ||(LQ=!0,Tc.read(L2),Tc.resolveKeyframes(L1))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:i}=this;if(null===e[0]){let r=i?.get(),a=e[e.length-1];if(void 0!==r)e[0]=r;else if(n&&t){let i=n.readValue(t,a);null!=i&&(e[0]=i)}void 0===e[0]&&(e[0]=a),i&&void 0===r&&i.set(e[0])}Lk(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),LX.delete(this)}cancel(){"scheduled"===this.state&&(LX.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let L4=e=>e.startsWith("--");function L6(e,t,n){L4(t)?e.style.setProperty(t,n):e.style[t]=n}function L8(e){let t;return()=>(void 0===t&&(t=e()),t)}let L7=L8(()=>void 0!==window.ScrollTimeline),L9={},Pe=function(e,t){let n=L8(e);return()=>L9[t]??n()}(()=>{try{document.createElement("div").animate({opacity:0}
252,{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),Pt=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,Pn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Pt([0,.65,.55,1]),circOut:Pt([.55,0,1,.45]),backIn:Pt([.31,.01,.66,-.59]),backOut:Pt([.33,1.53,.69,.99])};function Pi(e,t){if(e)return"function"==typeof e?Pe()?SH(e,t):"ease-out":Lp(e)?Pt(e):Array.isArray(e)?e.map(e=>Pi(e,t)||Pn.easeOut):Pn[e]}function Pr(e,t,n,{delay:i=0,duration:r=300,repeat:a=0,repeatType:s="loop",ease:o="easeOut",times:l}={},u){let c={[t]:n};l&&(c.offset=l);let d=Pi(o,r);Array.isArray(d)&&(c.easing=d),Ts.value&&TG.waapi++;let h={delay:i,duration:r,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:a+1,direction:"reverse"===s?"alternate":"normal"};u&&(h.pseudoElement=u);let f=e.animate(c,h);return Ts.value&&f.finished.finally(()=>{TG.waapi--}),f}function Pa(e){return"function"==typeof e&&"applyToOptions"in e}function Ps({type:e,...t}){return Pa(e)&&Pe()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Po extends LA{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;let{element:t,name:n,keyframes:i,pseudoElement:r,allowFlatten:a=!1,finalKeyframe:s,onComplete:o}=e;this.isPseudoElement=!!r,this.allowFlatten=a,this.options=e,Tq("string"!=typeof e.type,'animateMini doesn\'t support "type" as a string. Did you mean to import { spring } from "motion"?');let l=Ps(e);this.animation=Pr(t,n,i,l,r),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let e=LL(i,this.options,s,this.speed);this.updateMotionValue?this.updateMotionValue(e):L6(t,n,e),this.animation.cancel()}o?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){return TH(Number(this.animation.effect?.getComputedTiming?.().duration||0))}get time(){return TH(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=TB(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&L7())?(this.animation.timeline=e,Ti):t(this)}}let Pl={anticipate:Lc,backInOut:Lu,circInOut:Lf};function Pu(e){return e in Pl}function Pc(e){"string"==typeof e.ease&&Pu(e.ease)&&(e.ease=Pl[e.ease])}let Pd=10;class Ph extends Po{constructor(e){Pc(e),LM(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:i,element:r,...a}=this.options;if(!t)return;if(void 0!==e){t.set(e);return}let s=new LR({...a,autoplay:!1}),o=TB(this.finishedTime??this.time);t.setWithVelocity(s.sample(o-Pd).value,s.sample(o).value,Pd),s.stop()}}let Pf=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(SC.test(e)||"0"===e)&&!e.startsWith("url("));function Pp(e){let t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Pm(e,t,n,i){let r=e[0];if(null===r)return!1;if("display"===t||"visibility"===t)return!0;let a=e[e.length-1],s=Pf(r,t),o=Pf(a,t);return Tz(s===o,`You are trying to animate ${t} from "${r}" to "${a}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${a} via the \`style\` property.`),!!s&&!!o&&(Pp(e)||("spring"===n||Pa(n))&&i)}let Pg=new Set(["opacity","clipPath","filter","transform"]),Pv=L8(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Py(e){let{motionValue:t,name:n,repeatDelay:i,repeatType:r,damping:a,type:s}=e;if(!wX(t?.owner?.current))return!1;
252let{onUpdate:o,transformTemplate:l}=t.owner.getProps();return Pv()&&n&&Pg.has(n)&&("transform"!==n||!l)&&!o&&!i&&"mirror"!==r&&0!==a&&"inertia"!==s}let P_=40;class Pb extends LA{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:a="loop",keyframes:s,name:o,motionValue:l,element:u,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=TC.now();let d={autoplay:e,delay:t,type:n,repeat:i,repeatDelay:r,repeatType:a,name:o,motionValue:l,element:u,...c},h=u?.KeyframeResolver||L5;this.keyframeResolver=new h(s,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),o,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,i){this.keyframeResolver=void 0;let{name:r,type:a,velocity:s,delay:o,isHandoff:l,onUpdate:u}=n;this.resolvedAt=TC.now(),Pm(e,r,a,s)||((Tr.instantAnimations||!o)&&u?.(LL(e,n,t)),e[0]=e[e.length-1],n.duration=0,n.repeat=0);let c={startTime:i?this.resolvedAt&&this.resolvedAt-this.createdAt>P_?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},d=!l&&Py(c)?new Ph({...c,element:c.motionValue.owner.current}):new LR(c);d.finished.then(()=>this.notifyFinished()).catch(Ti),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),L3()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let Px=e=>null!==e;function PC(e,{repeat:t,repeatType:n="loop"},i){let r=e.filter(Px),a=t&&"loop"!==n&&t%2==1?0:r.length-1;return a&&void 0!==i?i:r[a]}let PE={type:"spring",stiffness:500,damping:25,restSpeed:10},Pw=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),PT={type:"keyframes",duration:.8},PS={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},PL=(e,{keyframes:t})=>t.length>2?PT:Tm.has(e)?e.startsWith("scale")?Pw(t[1]):PE:PS;function PP({when:e,delay:t,delayChildren:n,staggerChildren:i,staggerDirection:r,repeat:a,repeatType:s,repeatDelay:o,from:l,elapsed:u,...c}){return!!Object.keys(c).length}let PM=(e,t,n,i={},r,a)=>s=>{let o=Tn(i,e)||{},l=o.delay||i.delay||0,{elapsed:u=0}=i;u-=TB(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-u,onUpdate:e=>{t.set(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{s(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:a?void 0:r};PP(o)||Object.assign(c,PL(e,c)),c.duration&&(c.duration=TB(c.duration)),c.repeatDelay&&(c.repeatDelay=TB(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(c.duration=0,0!==c.delay||(d=!0)),(Tr.instantAnimations||Tr.skipAnimations)&&(d=!0,c.duration=0,c.delay=0),c.allowFlatten=!o.type&&!o.ease,d&&!a&&void 0!==t.get()){let e=PC(c.keyframes,o);if(void 0!==e){Tc.update(()=>{c.onUpdate(e),c.onComplete()});return}}return o.isSync?new LR(c):new Pb(c)};function PA({protectedKeys:e,needsAnimating:t},n){let i=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,i}function PI(e,t,{delay:n=0,transitionOverride:i,type:r}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:s,...o}=t;i&&(a=i);let l=[],u=r&&e.animationState&&e.animationState.getState()[r];for(let t in o){let i=e.getValue(t,e.latestValues[t]??null),r=o[t];if(void 0===r||u&&PA(u,t))continue;let s={delay:n,...Tn(a||{},t)},c=i.get();if(void 0!==c&&!i.isAnimating&&!Array.isArray(r)&&r===c&&!s.velocity)continue;let d=!1;if(window.MotionHandoffAnimation){let n=TO(e);if(n){let e=window.MotionHandoffAnimation(n,t,Tc);null!==e&&(s.startTime=e,d=!0)}}TD(e,t),i.start(PM(t,i,r,e.shouldReduceMotion&&Tg.has(t)?{type:!1}:s,e,d));let h=i.animation;h&&l.push(h)}return s&&Promise.all(l).then(()=>{Tc.update(()=>{s&&TI(e,s)})}),l}function PR(e,t,n={}){let i=Tt(e,t,"exit"===n.type?e.presenceContext?.custom:void 0),{transition:r=e.getDefaultTransition()||{}}=i||{};
252n.transitionOverride&&(r=n.transitionOverride);let a=i?()=>Promise.all(PI(e,i,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(i=0)=>{let{delayChildren:a=0,staggerChildren:s,staggerDirection:o}=r;return Pk(e,t,a+i,s,o,n)}:()=>Promise.resolve(),{when:o}=r;if(!o)return Promise.all([a(),s(n.delay)]);{let[e,t]="beforeChildren"===o?[a,s]:[s,a];return e().then(()=>t())}}function Pk(e,t,n=0,i=0,r=1,a){let s=[],o=(e.variantChildren.size-1)*i,l=1===r?(e=0)=>e*i:(e=0)=>o-e*i;return Array.from(e.variantChildren).sort(PD).forEach((e,i)=>{e.notify("AnimationStart",t),s.push(PR(e,t,{...a,delay:n+l(i)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(s)}function PD(e,t){return e.sortNodePosition(t)}function PN(e,t,n={}){let i;if(e.notify("AnimationStart",t),Array.isArray(t))i=Promise.all(t.map(t=>PR(e,t,n)));else if("string"==typeof t)i=PR(e,t,n);else{let r="function"==typeof t?Tt(e,t,n.custom):t;i=Promise.all(PI(e,r,n))}return i.then(()=>{e.notify("AnimationComplete",t)})}function PF(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}function PO(e){return"string"==typeof e||Array.isArray(e)}let Pj=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],PU=["initial",...Pj],PV=PU.length;function PB(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&PB(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<PV;n++){let i=PU[n],r=e.props[i];(PO(r)||!1===r)&&(t[i]=r)}return t}let PH=[...Pj].reverse(),PG=Pj.length;function Pz(e){return t=>Promise.all(t.map(({animation:t,options:n})=>PN(e,t,n)))}function Pq(e){let t=Pz(e),n=PZ(),i=!0,r=t=>(n,i)=>{let r=Tt(e,i,"exit"===t?e.presenceContext?.custom:void 0);if(r){let{transition:e,transitionEnd:t,...i}=r;n={...n,...i,...t}}return n};function a(a){let{props:s}=e,o=PB(e.parent)||{},l=[],u=new Set,c={},d=1/0;for(let t=0;t<PG;t++){let h=PH[t],f=n[h],p=void 0!==s[h]?s[h]:o[h],m=PO(p),g=h===a?f.isActive:null;!1===g&&(d=t);let v=p===o[h]&&p!==s[h]&&m;if(v&&i&&e.manuallyAnimateOnMount&&(v=!1),f.protectedKeys={...c},!f.isActive&&null===g||!p&&!f.prevProp||w7(p)||"boolean"==typeof p)continue;let y=PW(f.prevProp,p),_=y||h===a&&f.isActive&&!v&&m||t>d&&m,b=!1,x=Array.isArray(p)?p:[p],C=x.reduce(r(h),{});!1===g&&(C={});let{prevResolvedValues:E={}}=f,w={...E,...C},T=t=>{_=!0,u.has(t)&&(b=!0,u.delete(t)),f.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in w){let t=C[e],n=E[e];if(c.hasOwnProperty(e))continue;let i=!1;(i=TP(t)&&TP(n)?!PF(t,n):t!==n)?null!=t?T(e):u.add(e):void 0!==t&&u.has(e)?T(e):f.protectedKeys[e]=!0}f.prevProp=p,f.prevResolvedValues=C,f.isActive&&(c={...c,...C}),i&&e.blockInitialAnimation&&(_=!1);let S=!(v&&y)||b;_&&S&&l.push(...x.map(e=>({animation:e,options:{type:h}})))}if(u.size){let t={};if("boolean"!=typeof s.initial){let n=Tt(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let i=e.getBaseTarget(n),r=e.getValue(n);r&&(r.liveStyle=!0),t[n]=i??null}),l.push({animation:t})}let h=!!l.length;return i&&(!1===s.initial||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(h=!1),i=!1,h?t(l):Promise.resolve()}function s(t,i){if(n[t].isActive===i)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,i)),n[t].isActive=i;let r=a(t);for(let e in n)n[e].protectedKeys={};return r}return{animateChanges:a,setActive:s,setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=PZ(),i=!0}}}function PW(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!PF(t,e)}function P$(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function PZ(){return{animate:P$(!0),whileInView:P$(),whileHover:P$(),whileTap:P$(),whileDrag:P$(),whileFocus:P$(),exit:P$()}}class PY{constructor(e){this.isMounted=!1,this.node=e}update(){}}class PK extends PY{constructor(e){super(e),e.animationState||(e.animationState=Pq(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();w7(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let PX=0;class PQ extends PY{constructor(){super(...arguments),this.id=PX++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let i=this.node.animationState.setActive("exit",!e);t&&!e&&i.then(()=>
252{t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}let PJ={animation:{Feature:PK},exit:{Feature:PQ}},P0={x:!1,y:!1};function P1(){return P0.x||P0.y}function P2(e){return"x"===e||"y"===e?P0[e]?null:(P0[e]=!0,()=>{P0[e]=!1}):P0.x||P0.y?null:(P0.x=P0.y=!0,()=>{P0.x=P0.y=!1})}function P3(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n)}let P5=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function P4(e){return{point:{x:e.pageX,y:e.pageY}}}let P6=e=>t=>P5(t)&&e(t,P4(t));function P8(e,t,n,i){return P3(e,t,P6(n),i)}function P7({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function P9({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Me(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}let Mt=.9999,Mn=1.0001,Mi=-.01,Mr=.01;function Ma(e){return e.max-e.min}function Ms(e,t,n){return Math.abs(e-t)<=n}function Mo(e,t,n,i=.5){e.origin=i,e.originPoint=SS(t.min,t.max,e.origin),e.scale=Ma(n)/Ma(t),e.translate=SS(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Mt&&e.scale<=Mn||isNaN(e.scale))&&(e.scale=1),(e.translate>=Mi&&e.translate<=Mr||isNaN(e.translate))&&(e.translate=0)}function Ml(e,t,n,i){Mo(e.x,t.x,n.x,i?i.originX:void 0),Mo(e.y,t.y,n.y,i?i.originY:void 0)}function Mu(e,t,n){e.min=n.min+t.min,e.max=e.min+Ma(t)}function Mc(e,t,n){Mu(e.x,t.x,n.x),Mu(e.y,t.y,n.y)}function Md(e,t,n){e.min=t.min-n.min,e.max=e.min+Ma(t)}function Mh(e,t,n){Md(e.x,t.x,n.x),Md(e.y,t.y,n.y)}let Mf=()=>({translate:0,scale:1,origin:0,originPoint:0}),Mp=()=>({x:Mf(),y:Mf()}),Mm=()=>({min:0,max:0}),Mg=()=>({x:Mm(),y:Mm()});function Mv(e){return[e("x"),e("y")]}function My(e){return void 0===e||1===e}function M_({scale:e,scaleX:t,scaleY:n}){return!My(e)||!My(t)||!My(n)}function Mb(e){return M_(e)||Mx(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Mx(e){return MC(e.x)||MC(e.y)}function MC(e){return e&&"0%"!==e}function ME(e,t,n){let i=t*(e-n);return n+i}function Mw(e,t,n,i,r){return void 0!==r&&(e=ME(e,r,i)),ME(e,n,i)+t}function MT(e,t=0,n=1,i,r){e.min=Mw(e.min,t,n,i,r),e.max=Mw(e.max,t,n,i,r)}function MS(e,{x:t,y:n}){MT(e.x,t.translate,t.scale,t.originPoint),MT(e.y,n.translate,n.scale,n.originPoint)}let ML=.999999999999,MP=1.0000000000001;function MM(e,t,n,i=!1){let r,a;let s=n.length;if(s){t.x=t.y=1;for(let o=0;o<s;o++){a=(r=n[o]).projectionDelta;let{visualElement:s}=r.options;(!s||!s.props.style||"contents"!==s.props.style.display)&&(i&&r.options.layoutScroll&&r.scroll&&r!==r.root&&MR(e,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,MS(e,a)),i&&Mb(r.latestValues)&&MR(e,r.latestValues))}t.x<MP&&t.x>ML&&(t.x=1),t.y<MP&&t.y>ML&&(t.y=1)}}function MA(e,t){e.min=e.min+t,e.max=e.max+t}function MI(e,t,n,i,r=.5){let a=SS(e.min,e.max,r);MT(e,t,n,a,i)}function MR(e,t){MI(e.x,t.x,t.scaleX,t.scale,t.originX),MI(e.y,t.y,t.scaleY,t.scale,t.originY)}function Mk(e,t){return P7(Me(e.getBoundingClientRect(),t))}function MD(e,t,n){let i=Mk(e,n),{scroll:r}=t;return r&&(MA(i.x,r.offset.x),MA(i.y,r.offset.y)),i}let MN=({current:e})=>e?e.ownerDocument.defaultView:null;function MF(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}let MO=(e,t)=>Math.abs(e-t);function Mj(e,t){return Math.sqrt(MO(e.x,t.x)**2+MO(e.y,t.y)**2)}class MU{constructor(e,t,{transformPagePoint:n,contextWindow:i,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=MH(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=Mj(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:i}=e,{timestamp:r}=Th;this.history.push({...i,timestamp:r});let{onStart:a,onMove:s}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>
252{this.lastMoveEvent=e,this.lastMoveEventInfo=MV(t,this.transformPagePoint),Tc.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:i,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=MH("pointercancel"===e.type?this.lastMoveEventInfo:MV(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),i&&i(e,a)},!P5(e))return;this.dragSnapToOrigin=r,this.handlers=t,this.transformPagePoint=n,this.contextWindow=i||window;let a=MV(P4(e),this.transformPagePoint),{point:s}=a,{timestamp:o}=Th;this.history=[{...s,timestamp:o}];let{onSessionStart:l}=t;l&&l(e,MH(a,this.history)),this.removeListeners=TU(P8(this.contextWindow,"pointermove",this.handlePointerMove),P8(this.contextWindow,"pointerup",this.handlePointerUp),P8(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Td(this.updatePoint)}}function MV(e,t){return t?{point:t(e.point)}:e}function MB(e,t){return{x:e.x-t.x,y:e.y-t.y}}function MH({point:e},t){return{point:e,delta:MB(e,Mz(t)),offset:MB(e,MG(t)),velocity:Mq(t,.1)}}function MG(e){return e[0]}function Mz(e){return e[e.length-1]}function Mq(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,i=null,r=Mz(e);for(;n>=0&&(i=e[n],!(r.timestamp-i.timestamp>TB(t)));)n--;if(!i)return{x:0,y:0};let a=TH(r.timestamp-i.timestamp);if(0===a)return{x:0,y:0};let s={x:(r.x-i.x)/a,y:(r.y-i.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function MW(e,{min:t,max:n},i){return void 0!==t&&e<t?e=i?SS(t,e,i.min):Math.max(e,t):void 0!==n&&e>n&&(e=i?SS(n,e,i.max):Math.min(e,n)),e}function M$(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function MZ(e,{top:t,left:n,bottom:i,right:r}){return{x:M$(e.x,n,r),y:M$(e.y,t,i)}}function MY(e,t){let n=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,i]=[i,n]),{min:n,max:i}}function MK(e,t){return{x:MY(e.x,t.x),y:MY(e.y,t.y)}}function MX(e,t){let n=.5,i=Ma(e),r=Ma(t);return r>i?n=Ly(t.min,t.max-i,e.min):i>r&&(n=Ly(e.min,e.max-r,t.min)),TV(0,1,n)}function MQ(e,t){let n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}let MJ=.35;function M0(e=MJ){return!1===e?e=0:!0===e&&(e=MJ),{x:M1(e,"left","right"),y:M1(e,"top","bottom")}}function M1(e,t,n){return{min:M2(e,t),max:M2(e,n)}}function M2(e,t){return"number"==typeof e?e:e[t]||0}let M3=new WeakMap;class M5{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Mg(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let i=e=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(P4(e).point)},r=(e,t)=>{let{drag:n,dragPropagation:i,onDragStart:r}=this.getProps();if(n&&!i&&(this.openDragLock&&this.openDragLock(),this.openDragLock=P2(n),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Mv(e=>{let t=this.getAxisMotionValue(e).get()||0;if(Si.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let i=n.layout.layoutBox[e];if(i){let e=Ma(i);t=parseFloat(t)/100*e}}}this.originPoint[e]=t}),r&&Tc.postRender(()=>r(e,t)),TD(this.visualElement,"transform");let{animationState:a}=this.visualElement;a&&a.setActive("whileDrag",!0)},a=(e,t)=>{let{dragPropagation:n,dragDirectionLock:i,onDirectionLock:r,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:s}=t;if(i&&null===this.currentDirection){this.currentDirection=M6(s),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),a&&a(e,t)},s=(e,t)=>this.stop(e,t),o=()=>Mv(e=>"paused"===this.getAnimationState(e)&&this.getAxisMotionValue(e).animation?.play()),{dragSnapToOrigin:l}=this.getProps();this.panSession=new MU(e,{onSessionStart:i,onStart:r,onMove:a,onSessionEnd:s,resumeAnimation:o},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:MN(this.visualElement)})}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:i}=t;this.startAnimation(i);let{onDragEnd:r}=this.getProps();r&&Tc.postRender(()=>r(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){let{drag:i}=this.getProps();if(!n||!M4(e,i,this.currentDirection))return;let r=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=MW(a,this.constraints[e],this.elastic[e])),r.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;e&&MF(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=MZ(n.layoutBox,e):this.constraints=!1,this.elastic=M0(t),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Mv(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=MQ(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!MF(e))return!1;let n=e.current;Tq(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let r=MD(n,i.root,this.visualElement.getTransformPagePoint()),a=MK(i.layout.layoutBox,r);if(t){let e=t(P9(a));this.hasMutatedConstraints=!!e,e&&(a=P7(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:i,dragTransition:r,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),o=this.constraints||{};return Promise.all(Mv(s=>{if(!M4(s,t,this.currentDirection))return;let l=o&&o[s]||{};a&&(l={min:0,max:0});let u=i?200:1e6,c=i?40:1e7,d={type:"inertia",velocity:n?e[s]:0,bounceStiffness:u,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(s,d)})).then(s)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return TD(this.visualElement,e),n.start(PM(e,n,0,t,this.visualElement,!1))}stopAnimation(){Mv(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Mv(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){Mv(t=>{let{drag:n}=this.getProps();if(!M4(t,n,this.currentDirection))return;let{projection:i}=this.visualElement,r=this.getAxisMotionValue(t);if(i&&i.layout){let{min:n,max:a}=i.layout.layoutBox[t];r.set(e[t]-SS(n,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!MF(t)||!n||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};Mv(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let n=t.get();i[e]=MX({min:n,max:n},this.constraints[e])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Mv(t=>{if(!M4(t,e,null))return;let n=this.getAxisMotionValue(t),{min:r,max:a}=this.constraints[t];n.set(SS(r,a,i[t]))})}addListeners(){if(!this.visualElement.current)return;M3.set(this.visualElement,this);let e=P8(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:n=!0}
252=this.getProps();t&&n&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();MF(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,i=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),Tc.read(t);let r=P3(window,"resize",()=>this.scalePositionWithinConstraints()),a=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Mv(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{r(),e(),i(),a&&a()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:a=MJ,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:i,dragConstraints:r,dragElastic:a,dragMomentum:s}}}function M4(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}function M6(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class M8 extends PY{constructor(e){super(e),this.removeGroupControls=Ti,this.removeListeners=Ti,this.controls=new M5(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ti}unmount(){this.removeGroupControls(),this.removeListeners()}}let M7=e=>(t,n)=>{e&&Tc.postRender(()=>e(t,n))};class M9 extends PY{constructor(){super(...arguments),this.removePointerDownListener=Ti}onPointerDown(e){this.session=new MU(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:MN(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:M7(e),onStart:M7(t),onMove:n,onEnd:(e,t)=>{delete this.session,i&&Tc.postRender(()=>i(e,t))}}}mount(){this.removePointerDownListener=P8(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let{schedule:Ae,cancel:At}=Tu(queueMicrotask,!1),An=(0,T.createContext)({}),Ai={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ar(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let Aa={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!Sr.test(e))return e;e=parseFloat(e)}let n=Ar(e,t.target.x),i=Ar(e,t.target.y);return`${n}% ${i}%`}},As={correct:(e,{treeScale:t,projectionDelta:n})=>{let i=e,r=SC.parse(e);if(r.length>5)return i;let a=SC.createTransformer(e),s="number"!=typeof r[0]?1:0,o=n.x.scale*t.x,l=n.y.scale*t.y;r[0+s]/=o,r[1+s]/=l;let u=SS(o,l,.5);return"number"==typeof r[2+s]&&(r[2+s]/=u),"number"==typeof r[3+s]&&(r[3+s]/=u),a(r)}},Ao={};function Al(e){for(let t in e)Ao[t]=e[t],T$(t)&&(Ao[t].isCSSVariable=!0)}class Au extends T.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:i}=this.props,{projection:r}=e;Al(Ad),r&&(t.group&&t.group.add(r),n&&n.register&&i&&n.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),Ai.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:i,isPresent:r}=this.props,{projection:a}=n;return a&&(a.isPresent=r,i||e.layoutDependency!==t||void 0===t||e.isPresent!==r?a.willUpdate():this.safeToRemove(),e.isPresent===r||(r?a.promote():a.relegate()||Tc.postRender(()=>{let e=a.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Ae.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Ac(e){let[t,n]=w3(),i=(0,T.useContext)(wq);return(0,w.jsx)(Au,{...e,layoutGroup:i,switchLayoutGroup:(0,T.useContext)(An),isPresent:t,safeToRemove:n})}let Ad={borderRadius:{...Aa,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Aa,borderTopRightRadius:Aa,borderBottomLeftRadius:Aa,borderBottomRightRadius:Aa,boxShadow:As};function Ah(e){return wK(e)&&"ownerSVGElement"in e}function Af(e){return Ah(e)&&"svg"===e.tagName}function Ap(e,t,n){let i=TR(e)?e:TL(e);return i.start(PM("",i,t,n)),i.animation}let Am=(e,t)=>
252e.depth-t.depth;class Ag{constructor(){this.children=[],this.isDirty=!1}add(e){Tv(this.children,e),this.isDirty=!0}remove(e){Ty(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Am),this.isDirty=!1,this.children.forEach(e)}}function Av(e,t){let n=TC.now(),i=({timestamp:r})=>{let a=r-n;a>=t&&(Td(i),e(a-t))};return Tc.setup(i,!0),()=>Td(i)}function Ay(e){return TR(e)?e.get():e}let A_=["TopLeft","TopRight","BottomLeft","BottomRight"],Ab=A_.length,Ax=e=>"string"==typeof e?parseFloat(e):e,AC=e=>"number"==typeof e||Sr.test(e);function AE(e,t,n,i,r,a){r?(e.opacity=SS(0,n.opacity??1,AT(i)),e.opacityExit=SS(t.opacity??1,0,AS(i))):a&&(e.opacity=SS(t.opacity??1,n.opacity??1,i));for(let r=0;r<Ab;r++){let a=`border${A_[r]}Radius`,s=Aw(t,a),o=Aw(n,a);(void 0!==s||void 0!==o)&&(s||(s=0),o||(o=0),0===s||0===o||AC(s)===AC(o)?(e[a]=Math.max(SS(Ax(s),Ax(o),i),0),(Si.test(o)||Si.test(s))&&(e[a]+="%")):e[a]=o)}(t.rotate||n.rotate)&&(e.rotate=SS(t.rotate||0,n.rotate||0,i))}function Aw(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let AT=AL(0,.5,Lh),AS=AL(.5,.95,Ti);function AL(e,t,n){return i=>i<e?0:i>t?1:n(Ly(e,t,i))}function AP(e,t){e.min=t.min,e.max=t.max}function AM(e,t){AP(e.x,t.x),AP(e.y,t.y)}function AA(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function AI(e,t,n,i,r){return e-=t,e=ME(e,1/n,i),void 0!==r&&(e=ME(e,1/r,i)),e}function AR(e,t=0,n=1,i=.5,r,a=e,s=e){if(Si.test(t)&&(t=parseFloat(t),t=SS(s.min,s.max,t/100)-s.min),"number"!=typeof t)return;let o=SS(a.min,a.max,i);e===a&&(o-=t),e.min=AI(e.min,t,n,o,r),e.max=AI(e.max,t,n,o,r)}function Ak(e,t,[n,i,r],a,s){AR(e,t[n],t[i],t[r],t.scale,a,s)}let AD=["x","scaleX","originX"],AN=["y","scaleY","originY"];function AF(e,t,n,i){Ak(e.x,t,AD,n?n.x:void 0,i?i.x:void 0),Ak(e.y,t,AN,n?n.y:void 0,i?i.y:void 0)}function AO(e){return 0===e.translate&&1===e.scale}function Aj(e){return AO(e.x)&&AO(e.y)}function AU(e,t){return e.min===t.min&&e.max===t.max}function AV(e,t){return AU(e.x,t.x)&&AU(e.y,t.y)}function AB(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function AH(e,t){return AB(e.x,t.x)&&AB(e.y,t.y)}function AG(e){return Ma(e.x)/Ma(e.y)}function Az(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Aq{constructor(){this.members=[]}add(e){Tv(this.members,e),e.scheduleRender()}remove(e){if(Ty(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t;let n=this.members.findIndex(t=>e===t);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){t=n;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:i}=e.options;!1===i&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function AW(e,t,n){let i="",r=e.x.translate/t.x,a=e.y.translate/t.y,s=n?.z||0;if((r||a||s)&&(i=`translate3d(${r}px, ${a}px, ${s}px) `),(1!==t.x||1!==t.y)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:r,rotateY:a,skewX:s,skewY:o}=n;e&&(i=`perspective(${e}px) ${i}`),t&&(i+=`rotate(${t}deg) `),r&&(i+=`rotateX(${r}deg) `),a&&(i+=`rotateY(${a}deg) `),s&&(i+=`skewX(${s}deg) `),o&&(i+=`skewY(${o}deg) `)}let o=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==o||1!==l)&&(i+=`scale(${o}, ${l})`),i||"none"}let A$={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},AZ=["","X","Y","Z"],AY={visibility:"hidden"},AK=1e3,AX=0;function AQ(e,t,n,i){let{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),i&&(i[e]=0))}function AJ(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=TO(t);if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Tc,!(t||i))}let{parent:i}=e;
vendor: 2,070 bytes, line 252
252i&&!i.hasCheckedOptimisedAppear&&AJ(i)}function A0({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(e={},n=t?.()){this.id=AX++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Ts.value&&(A$.nodes=A$.calculatedTargetDeltas=A$.calculatedProjections=0),this.nodes.forEach(A3),this.nodes.forEach(Ie),this.nodes.forEach(It),this.nodes.forEach(A5),Ts.addProjectionMetrics&&Ts.addProjectionMetrics(A$)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Ag)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new T_),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=Ah(t)&&!Af(t),this.instance=t;let{layoutId:n,layout:i,visualElement:r}=this.options;if(r&&!r.current&&r.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(i||n)&&(this.isLayoutDirty=!0),e){let n;let i=()=>this.root.updateBlockedByResize=!1;e(t,()=>
252{this.root.updateBlockedByResize=!0,n&&n(),n=Av(i,250),Ai.hasAnimatedSinceResize&&(Ai.hasAnimatedSinceResize=!1,this.nodes.forEach(A9))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&r&&(n||i)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:i})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||r.getDefaultTransition()||Il,{onLayoutAnimationStart:s,onLayoutAnimationComplete:o}=r.getProps(),l=!this.targetLayout||!AH(this.targetLayout,i),u=!t&&n;if(this.options.layoutRoot||this.resumeFrom||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...Tn(a,"layout"),onPlay:s,onComplete:o};(r.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,u)}else t||A9(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Td(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(In),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&AJ(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;let i=this.getTransformTemplate();this.prevTransformTemplateValue=i?i(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(A6);return}this.isUpdating||this.nodes.forEach(A8),this.isUpdating=!1,this.nodes.forEach(A7),this.nodes.forEach(A1),this.nodes.forEach(A2),this.clearAllSnapshots();let e=TC.now();Th.delta=TV(0,1e3/60,e-Th.timestamp),Th.timestamp=e,Th.isProcessing=!0,Tf.update.process(Th),Tf.preRender.process(Th),Tf.render.process(Th),Th.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ae.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(A4),this.sharedNodes.forEach(Ii)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Tc.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Tc.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||Ma(this.snapshot.measuredBox.x)||Ma(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Mg(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=i(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!r)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!Aj(this.projectionDelta),n=this.getTransformTemplate(),i=n?n(this.latestValues,""):void 0,a=i!==this.prevTransformTemplateValue;e&&this.instance&&(t||Mb(this.latestValues)||a)&&(r(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),Ih(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return Mg();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Ip))){let{scroll:e}=this.root;e&&(MA(t.x,e.offset.x),MA(t.y,e.offset.y))}return t}removeElementScroll(e){let t=Mg();if(AM(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let i=this.path[n],{scroll:r,options:a}=i;i!==this.root&&r&&a.layoutScroll&&(r.wasRoot&&AM(t,e),MA(t.x,r.offset.x),MA(t.y,r.offset.y))}return t}applyTransform(e,t=!1){let n=Mg();AM(n,e);for(let e=0;e<this.path.length;e++){let i=this.path[e];!t&&i.options.layoutScroll&&i.scroll&&i!==i.root&&MR(n,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),Mb(i.latestValues)&&MR(n,i.latestValues)}return Mb(this.latestValues)&&MR(n,this.latestValues),n}removeTransform(e){let t=Mg();AM(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!Mb(n.latestValues))continue;M_(n.latestValues)&&n.updateSnapshot();let i=Mg();AM(i,n.measurePageBox()),AF(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,i)}return Mb(this.latestValues)&&AF(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Th.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.
252isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:i,layoutId:r}=this.options;if(this.layout&&(i||r)){if(this.resolvedRelativeTargetAt=Th.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Mg(),this.relativeTargetOrigin=Mg(),Mh(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),AM(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=Mg(),this.targetWithTransforms=Mg()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Mc(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):AM(this.target,this.layout.layoutBox),MS(this.target,this.targetDelta)):AM(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Mg(),this.relativeTargetOrigin=Mg(),Mh(this.relativeTargetOrigin,this.target,e.target),AM(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Ts.value&&A$.calculatedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||M_(this.parent.latestValues)||Mx(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===Th.timestamp&&(n=!1),n)return;let{layout:i,layoutId:r}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(i||r))return;AM(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,s=this.treeScale.y;MM(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=Mg());let{target:o}=e;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(AA(this.prevProjectionDelta.x,this.projectionDelta.x),AA(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),Ml(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===a&&this.treeScale.y===s&&Az(this.projectionDelta.x,this.prevProjectionDelta.x)&&Az(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o)),Ts.value&&A$.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Mp(),this.projectionDelta=Mp(),this.projectionDeltaWithTransform=Mp()}setAnimationOrigin(e,t=!1){let n;let i=this.snapshot,r=i?i.latestValues:{},a={...this.latestValues},s=Mp();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=Mg(),l=(i?i.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,d=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(Io));this.animationProgress=0,this.mixTargetDelta=t=>{let i=t/1e3;Ir(s.x,e.x,i),Ir(s.y,e.y,i),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Mh(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Is(this.relativeTarget,this.relativeTargetOrigin,o,i),n&&AV(this.relativeTarget,n)&&(this.isProjectionDirty=!1),n||(n=Mg()),AM(n,this.relativeTarget)),l&&(this.animationValues=a,AE(a,r,this.latestValues,i,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Td(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Tc.update(()=>{Ai.hasAnimatedSinceResize=!0,TG.layout++,this.motionValue||(this.motionValue=TL(0)),this.currentAnimation=Ap(this.motionValue,[0,1e3],{...e,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{TG.layout--},onComplete:()=>{TG.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(AK),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:i,latestValues:r}=e;
252if(t&&n&&i){if(this!==e&&this.layout&&i&&If(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||Mg();let t=Ma(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let i=Ma(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+i}AM(t,n),MR(t,r),Ml(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Aq),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let i=this.getStack();i&&i.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let i={};n.z&&AQ("z",e,i,this.animationValues);for(let t=0;t<AZ.length;t++)AQ(`rotate${AZ[t]}`,e,i,this.animationValues),AQ(`skew${AZ[t]}`,e,i,this.animationValues);for(let t in e.render(),i)e.setStaticValue(t,i[t]),this.animationValues&&(this.animationValues[t]=i[t]);e.scheduleRender()}getProjectionStyles(e){if(!this.instance||this.isSVG)return;if(!this.isVisible)return AY;let t={visibility:""},n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,t.opacity="",t.pointerEvents=Ay(e?.pointerEvents)||"",t.transform=n?n(this.latestValues,""):"none",t;let i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){let t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=Ay(e?.pointerEvents)||""),this.hasProjected&&!Mb(this.latestValues)&&(t.transform=n?n({},""):"none",this.hasProjected=!1),t}let r=i.animationValues||i.latestValues;this.applyTransformsToTarget(),t.transform=AW(this.projectionDeltaWithTransform,this.treeScale,r),n&&(t.transform=n(r,t.transform));let{x:a,y:s}=this.projectionDelta;for(let e in t.transformOrigin=`${100*a.origin}% ${100*s.origin}% 0`,i.animationValues?t.opacity=i===this?r.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:t.opacity=i===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,Ao){if(void 0===r[e])continue;let{correct:n,applyTo:a,isCSSVariable:s}=Ao[e],o="none"===t.transform?r[e]:n(r[e],i);if(a){let e=a.length;for(let n=0;n<e;n++)t[a[n]]=o}else s?this.options.visualElement.renderState.vars[e]=o:t[e]=o}return this.options.layoutId&&(t.pointerEvents=i===this?Ay(e?.pointerEvents)||"":"none"),t}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(A6),this.root.sharedNodes.clear()}}}function A1(e){e.updateLayout()}function A2(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:n,measuredBox:i}=e.layout,{animationType:r}=e.options,a=t.source!==e.layout.source;"size"===r?Mv(e=>{let i=a?t.measuredBox[e]:t.layoutBox[e],r=Ma(i);i.min=n[e].min,i.max=i.min+r}):If(r,t.layoutBox,n)&&Mv(i=>{let r=a?t.measuredBox[i]:t.layoutBox[i],s=Ma(n[i]);r.max=r.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[i].max=e.relativeTarget[i].min+s)});let s=Mp();Ml(s,n,t.layoutBox);let o=Mp();a?Ml(o,e.applyTransform(i,!0),t.measuredBox):Ml(o,n,t.layoutBox);let l=!Aj(s),u=!1;if(!e.resumeFrom){let i=e.getClosestProjectingParent();if(i&&!i.resumeFrom){let{snapshot:r,layout:a}=i;if(r&&a){let s=Mg();Mh(s,t.layoutBox,r.layoutBox);let o=Mg();Mh(o,n,a.layoutBox),AH(s,o)||(u=!0),i.options.layoutRoot&&(e.relativeTarget=o,e.relativeTargetOrigin=s,e.relativeParent=i)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:o,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function A3(e){Ts.value&&A$.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function A5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function A4(e){e.clearSnapshot()}function A6(e){e.clearMeasurements()}function A8(e){e.isLayoutDirty=!1}function A7(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function A9(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Ie(e){e.resolveTargetDelta()}function It(e){e.calcProjection()}
252function In(e){e.resetSkewAndRotation()}function Ii(e){e.removeLeadSnapshot()}function Ir(e,t,n){e.translate=SS(t.translate,0,n),e.scale=SS(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ia(e,t,n,i){e.min=SS(t.min,n.min,i),e.max=SS(t.max,n.max,i)}function Is(e,t,n,i){Ia(e.x,t.x,n.x,i),Ia(e.y,t.y,n.y,i)}function Io(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let Il={duration:.45,ease:[.4,0,.1,1]},Iu=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ic=Iu("applewebkit/")&&!Iu("chrome/")?Math.round:Ti;function Id(e){e.min=Ic(e.min),e.max=Ic(e.max)}function Ih(e){Id(e.x),Id(e.y)}function If(e,t,n){return"position"===e||"preserve-aspect"===e&&!Ms(AG(t),AG(n),.2)}function Ip(e){return e!==e.root&&e.scroll?.wasRoot}let Im=A0({attachResizeListener:(e,t)=>P3(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ig={current:void 0},Iv=A0({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ig.current){let e=new Im({});e.mount(window),e.setOptions({layoutScroll:!0}),Ig.current=e}return Ig.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),Iy={pan:{Feature:M9},drag:{Feature:M8,ProjectionNode:Iv,MeasureLayout:Ac}};function I_(e,t,n){if(e instanceof EventTarget)return[e];if("string"==typeof e){let i=document;t&&(i=t.current);let r=n?.[e]??i.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e)}function Ib(e,t){let n=I_(e),i=new AbortController;return[n,{passive:!0,...t,signal:i.signal},()=>i.abort()]}function Ix(e){return!("touch"===e.pointerType||P1())}function IC(e,t,n={}){let[i,r,a]=Ib(e,n),s=e=>{if(!Ix(e))return;let{target:n}=e,i=t(n,e);if("function"!=typeof i||!n)return;let a=e=>{Ix(e)&&(i(e),n.removeEventListener("pointerleave",a))};n.addEventListener("pointerleave",a,r)};return i.forEach(e=>{e.addEventListener("pointerenter",s,r)}),a}function IE(e,t,n){let{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover","Start"===n);let r=i["onHover"+n];r&&Tc.postRender(()=>r(t,P4(t)))}class Iw extends PY{mount(){let{current:e}=this.node;e&&(this.unmount=IC(e,(e,t)=>(IE(this.node,t,"Start"),e=>IE(this.node,e,"End"))))}unmount(){}}class IT extends PY{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=TU(P3(this.node.current,"focus",()=>this.onFocus()),P3(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let IS=(e,t)=>!!t&&(e===t||IS(e,t.parentElement)),IL=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function IP(e){return IL.has(e.tagName)||-1!==e.tabIndex}let IM=new WeakSet;function IA(e){return t=>{"Enter"===t.key&&e(t)}}function II(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}let IR=(e,t)=>{let n=e.currentTarget;if(!n)return;let i=IA(()=>{if(IM.has(n))return;II(n,"down");let e=IA(()=>{II(n,"up")}),i=()=>II(n,"cancel");n.addEventListener("keyup",e,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",i,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),t)};function Ik(e){return P5(e)&&!P1()}function ID(e,t,n={}){let[i,r,a]=Ib(e,n),s=e=>{let i=e.currentTarget;if(!Ik(e))return;IM.add(i);let a=t(i,e),s=(e,t)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),IM.has(i)&&IM.delete(i),Ik(e)&&"function"==typeof a&&a(e,{success:t})},o=e=>{s(e,i===window||i===document||n.useGlobalTarget||IS(i,e.target))},l=e=>{s(e,!1)};window.addEventListener("pointerup",o,r),window.addEventListener("pointercancel",l,r)};return i.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener("pointerdown",s,r),
252!wX(e)||(e.addEventListener("focus",e=>IR(e,r)),IP(e)||e.hasAttribute("tabindex")||(e.tabIndex=0))}),a}function IN(e,t,n){let{props:i}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&i.whileTap&&e.animationState.setActive("whileTap","Start"===n);let r=i["onTap"+("End"===n?"":n)];r&&Tc.postRender(()=>r(t,P4(t)))}class IF extends PY{mount(){let{current:e}=this.node;e&&(this.unmount=ID(e,(e,t)=>(IN(this.node,t,"Start"),(e,{success:t})=>IN(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let IO=new WeakMap,Ij=new WeakMap,IU=e=>{let t=IO.get(e.target);t&&t(e)},IV=e=>{e.forEach(IU)};function IB({root:e,...t}){let n=e||document;Ij.has(n)||Ij.set(n,{});let i=Ij.get(n),r=JSON.stringify(t);return i[r]||(i[r]=new IntersectionObserver(IV,{root:e,...t})),i[r]}function IH(e,t,n){let i=IB(t);return IO.set(e,n),i.observe(e),()=>{IO.delete(e),i.unobserve(e)}}let IG={some:0,all:1};class Iz extends PY{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:i="some",once:r}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:IG[i]},s=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,r&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),a=t?n:i;a&&a(e)};return IH(this.node.current,a,s)}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(Iq(e,t))&&this.startObserver()}unmount(){}}function Iq({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}let IW={inView:{Feature:Iz},tap:{Feature:IF},focus:{Feature:IT},hover:{Feature:Iw}},I$={layout:{ProjectionNode:Iv,MeasureLayout:Ac}},IZ=(0,T.createContext)({strict:!1}),IY=(0,T.createContext)({});function IK(e){return w7(e.animate)||PU.some(t=>PO(e[t]))}function IX(e){return!!(IK(e)||e.variants)}function IQ(e,t){if(IK(e)){let{initial:t,animate:n}=e;return{initial:!1===t||PO(t)?t:void 0,animate:PO(n)?n:void 0}}return!1!==e.inherit?t:{}}function IJ(e){let{initial:t,animate:n}=IQ(e,(0,T.useContext)(IY));return(0,T.useMemo)(()=>({initial:t,animate:n}),[I0(t),I0(n)])}function I0(e){return Array.isArray(e)?e.join(" "):e}let I1={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},I2={};for(let e in I1)I2[e]={isEnabled:t=>I1[e].some(e=>!!t[e])};function I3(e){for(let t in e)I2[t]={...I2[t],...e[t]}}let I5=Symbol.for("motionComponentSymbol");function I4(e,t,n){return(0,T.useCallback)(i=>{i&&e.onMount&&e.onMount(i),t&&(i?t.mount(i):t.unmount()),n&&("function"==typeof n?n(i):MF(n)&&(n.current=i))},[t])}function I6(e,t,n,i,r){let{visualElement:a}=(0,T.useContext)(IY),s=(0,T.useContext)(IZ),o=(0,T.useContext)(wY),l=(0,T.useContext)(wQ).reducedMotion,u=(0,T.useRef)(null);i=i||s.renderer,!u.current&&i&&(u.current=i(e,{visualState:t,parent:a,props:n,presenceContext:o,blockInitialAnimation:!!o&&!1===o.initial,reducedMotionConfig:l}));let c=u.current,d=(0,T.useContext)(An);c&&!c.projection&&r&&("html"===c.type||"svg"===c.type)&&I8(u.current,n,r,d);let h=(0,T.useRef)(!1);(0,T.useInsertionEffect)(()=>{c&&h.current&&c.update(n,o)});let f=n[TF],p=(0,T.useRef)(!!f&&!window.MotionHandoffIsComplete?.(f)&&window.MotionHasOptimisedAnimation?.(f));return wZ(()=>{c&&(h.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),Ae.render(c.render),p.current&&c.animationState&&c.animationState.animateChanges())}),(0,T.useEffect)(()=>{c&&(!p.current&&c.animationState&&c.animationState.animateChanges(),p.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(f)}),p.current=!1))}),c}function I8(e,t,n,i){let{layoutId:r,layout:a,drag:s,dragConstraints:o,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:I7(e.parent)),e.projection.setOptions({layoutId:r,layout:a,alwaysMeasureLayout:!!s||o&&MF(o),visualElement:e,animationType:"string"==typeof a?a:"both",initialPromotionConfig:i,crossfade:c,layoutScroll:l,layoutRoot:u})}function I7(e){if(e)return!1!==e.options.allowProjection?e.projection:I7(e.parent)}function I9({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:i,Component:r}){function a(a,s){let o;let l={...(0,T.useContext)(wQ),...a,layoutId:Re(a)},{isStatic:u}=l,c=IJ(a),d=i(a,u);if(!u&&w$){Rt(l,e);let n=Rn(l);o=n.MeasureLayout,c.visualElement=I6(r,d,l,t,n.ProjectionNode)}return(0,w.jsxs)(IY.Provider,{value:c,children:[o&&c.visualElement?(0,w.jsx)(o,{visualElement:c.visualElement,...l}):null,n(r,a,I4(d,c.visualElement,s),d,u,c.visualElement)]})}e&&I3(e),a.displayName=`motion.${"string"==typeof r?r:`create(${r.displayName??r.name??""})`}`;let s=(0,T.forwardRef)(a);return s[I5]=r,s}function Re({layoutId:e}){let t=(0,T.useContext)(wq).id;return t&&void 0!==e?t+"-"+e:e}function Rt(e,t){(0,T.useContext)(IZ).strict}function Rn(e){let{drag:t,layout:n}=I2;if(!t&&!n)return{};let i={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}
252function Ri(e,{layout:t,layoutId:n}){return Tm.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!Ao[e]||"opacity"===e)}let Rr=(e,t)=>t&&"number"==typeof e?t.transform(e):e,Ra={...TX,transform:Math.round},Rs={rotate:Sn,rotateX:Sn,rotateY:Sn,rotateZ:Sn,scale:TJ,scaleX:TJ,scaleY:TJ,scaleZ:TJ,skew:Sn,skewX:Sn,skewY:Sn,distance:Sr,translateX:Sr,translateY:Sr,translateZ:Sr,x:Sr,y:Sr,z:Sr,perspective:Sr,transformPerspective:Sr,opacity:TQ,originX:So,originY:So,originZ:Sr},Ro={borderWidth:Sr,borderTopWidth:Sr,borderRightWidth:Sr,borderBottomWidth:Sr,borderLeftWidth:Sr,borderRadius:Sr,radius:Sr,borderTopLeftRadius:Sr,borderTopRightRadius:Sr,borderBottomRightRadius:Sr,borderBottomLeftRadius:Sr,width:Sr,maxWidth:Sr,height:Sr,maxHeight:Sr,top:Sr,right:Sr,bottom:Sr,left:Sr,padding:Sr,paddingTop:Sr,paddingRight:Sr,paddingBottom:Sr,paddingLeft:Sr,margin:Sr,marginTop:Sr,marginRight:Sr,marginBottom:Sr,marginLeft:Sr,backgroundPositionX:Sr,backgroundPositionY:Sr,...Rs,zIndex:Ra,fillOpacity:TQ,strokeOpacity:TQ,numOctaves:Ra},Rl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ru=Tp.length;function Rc(e,t,n){let i="",r=!0;for(let a=0;a<Ru;a++){let s=Tp[a],o=e[s];if(void 0===o)continue;let l=!0;if(!(l="number"==typeof o?o===(s.startsWith("scale")?1:0):0===parseFloat(o))||n){let e=Rr(o,Ro[s]);if(!l){r=!1;let t=Rl[s]||s;i+=`${t}(${e}) `}n&&(t[s]=e)}}return i=i.trim(),n?i=n(t,r?"":i):r&&(i="none"),i}function Rd(e,t,n){let{style:i,vars:r,transformOrigin:a}=e,s=!1,o=!1;for(let e in t){let n=t[e];if(Tm.has(e)){s=!0;continue}if(T$(e)){r[e]=n;continue}{let t=Rr(n,Ro[e]);e.startsWith("origin")?(o=!0,a[e]=t):i[e]=t}}if(!t.transform&&(s||n?i.transform=Rc(t,e.transform,n):i.transform&&(i.transform="none")),o){let{originX:e="50%",originY:t="50%",originZ:n=0}=a;i.transformOrigin=`${e} ${t} ${n}`}}let Rh=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Rf(e,t,n){for(let i in t)TR(t[i])||Ri(i,n)||(e[i]=t[i])}function Rp({transformTemplate:e},t){return(0,T.useMemo)(()=>{let n=Rh();return Rd(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Rm(e,t){let n=e.style||{},i={};return Rf(i,n,e),Object.assign(i,Rp(e,t)),i}function Rg(e,t){let n={},i=Rm(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=i,n}let Rv={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ry={offset:"strokeDashoffset",array:"strokeDasharray"};function R_(e,t,n=1,i=0,r=!0){e.pathLength=1;let a=r?Rv:Ry;e[a.offset]=Sr.transform(-i);let s=Sr.transform(t),o=Sr.transform(n);e[a.array]=`${s} ${o}`}function Rb(e,{attrX:t,attrY:n,attrScale:i,pathLength:r,pathSpacing:a=1,pathOffset:s=0,...o},l,u,c){if(Rd(e,o,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:h}=e;d.transform&&(h.transform=d.transform,delete d.transform),(h.transform||d.transformOrigin)&&(h.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),h.transform&&(h.transformBox=c?.transformBox??"fill-box",delete d.transformBox),void 0!==t&&(d.x=t),void 0!==n&&(d.y=n),void 0!==i&&(d.scale=i),void 0!==r&&R_(d,r,a,s,!1)}let Rx=()=>({...Rh(),attrs:{}}),RC=e=>"string"==typeof e&&"svg"===e.toLowerCase();function RE(e,t,n,i){let r=(0,T.useMemo)(()=>{let n=Rx();return Rb(n,t,RC(i),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};Rf(t,e.style,e),r.style={...t,...r.style}}return r}let Rw=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function RT(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Rw.has(e)}let RS=e=>!RT(e);function RL(e){e&&(RS=t=>t.startsWith("on")?!RT(t):e(t))}try{RL(require("@emotion/is-prop-valid").default)}catch{}function RP(e,t,n){let i={};for(let r in e)("values"!==r||"object"!=typeof e.values)&&(RS(r)||!0===n&&RT(r)||!t&&!RT(r)||e.draggable&&r.startsWith("onDrag"))&&(i[r]=e[r]);return i}let RM=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function RA(e){if("string"!=typeof e||e.includes("-"));else if(RM.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}function RI(e=!1){return(t,n,i,{latestValues:r},a)=>{let s=(RA(t)?RE:Rg)(n,r,a,t),o=RP(n,"string"==typeof t,e),l=t!==T.Fragment?{...o,...s,ref:i}:{},{children:u}=n,c=(0,T.useMemo)(()=>TR(u)?u.get():u,[u]);return(0,T.createElement)(t,{...l,children:c})}}function RR({scrapeMotionValuesFromProps:e,createRenderState:t},n,i,r){return{latestValues:RD(n,i,r,e),renderState:t()}}let Rk=e=>(t,n)=>{let i=(0,T.useContext)(IY),r=(0,T.useContext)(wY),a=()=>RR(e,t,i,r);return n?a():wW(a)};function RD(e,t,n,i){let r={},a=i(e,{});for(let e in a)r[e]=Ay(a[e]);let{initial:s,animate:o}=e,l=IK(e),u=IX(e);t&&u&&!l&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===o&&(o=t.animate));let c=!!n&&!1===n.initial,d=(c=c||!1===s)?o:s;if(d&&"boolean"!=typeof d&&!w7(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let i=Te(e,t[n]);if(i){let{transitionEnd:e,transition:t,...n}=i;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(r[e]=t)}for(let t in e)r[t]=e[t]}}}return r}function RN(e,t,n){let{style:i}=e,r={};for(let a in i)(TR(i[a])||t.style&&TR(t.style[a])||Ri(a,e)||n?.getValue(a)?.liveStyle!==void 0)&&(r[a]=i[a]);return r}let RF={useVisualState:Rk({scrapeMotionValuesFromProps:RN,createRenderState:Rh})};function RO(e,t,n){let i=RN(e,t,n);for(let n in e)(TR(e[n])||TR(t[n]))&&(i[-1!==Tp.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return i}let Rj={useVisualState:Rk({scrapeMotionValuesFromProps:RO,createRenderState:Rx})};function RU(e,t){return function(n,{forwardMotionProps:i}={forwardMotionProps:!1}){return I9({...RA(n)?Rj:RF,preloadedFeatures:e,useRender:RI(i),createVisualElement:t,Component:n})}}let RV=e=>t=>t.test(e),RB=[TX,Sr,Si,Sn,Ss,Sa,{test:e=>"auto"===e,parse:e=>e}],RH=e=>RB.find(RV(e)),RG=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Rz=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Rq(e){let t=Rz.exec(e);if(!t)return[,];let[,n,i,r]=t;return[`--${n??i}`,r]}let RW=4;function R$(e,t,n=1){Tq(n<=RW,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[i,r]=Rq(e);if(!i)return;let a=window.getComputedStyle(t).getPropertyValue(i);if(a){let e=a.trim();return RG(e)?parseFloat(e):e}return TY(r)?R$(r,t,n+1):r}let RZ=e=>/^0[^.\s]+$/u.test(e);function RY(e){return"number"==typeof e?0===e:null===e||"none"===e||"0"===e||RZ(e)}let RK=new Set(["brightness","contrast","saturate","opacity"]);function RX(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[i]=n.match(T1)||[];if(!i)return e;let r=n.replace(i,""),a=RK.has(t)?1:0;return i!==n&&(a*=100),t+"("+a+r+")"}let RQ=/\b([a-z-]*)\(.*?\)/gu,RJ={...SC,getAnimatableNone:e=>{let t=e.match(RQ);return t?t.map(RX).join(" "):e}},R0={...Ro,color:Su,backgroundColor:Su,outlineColor:Su,fill:Su,stroke:Su,borderColor:Su,borderTopColor:Su,borderRightColor:Su,borderBottomColor:Su,borderLeftColor:Su,filter:RJ,WebkitFilter:RJ},R1=e=>R0[e];function R2(e,t){let n=R1(e);return n!==RJ&&(n=SC),n.getAnimatableNone?n.getAnimatableNone(t):void 0}
252let R3=new Set(["auto","none","0"]);function R5(e,t,n){let i,r=0;for(;r<e.length&&!i;){let t=e[r];"string"==typeof t&&!R3.has(t)&&Sv(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=R2(n,i)}class R4 extends L5{constructor(e,t,n,i,r){super(e,t,n,i,r,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let i=e[n];if("string"==typeof i&&TY(i=i.trim())){let r=R$(i,t.current);void 0!==r&&(e[n]=r),n===e.length-1&&(this.finalKeyframe=i)}}if(this.resolveNoneKeyframes(),!Tg.has(n)||2!==e.length)return;let[i,r]=e,a=RH(i),s=RH(r);if(a!==s){if(LW(a)&&LW(s))for(let t=0;t<e.length;t++){let n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else LK[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(null===e[t]||RY(e[t]))&&n.push(t);n.length&&R5(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=LK[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let i=t[t.length-1];void 0!==i&&e.getValue(n,i).jump(i,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let i=e.getValue(t);i&&i.jump(this.measuredOrigin,!1);let r=n.length-1,a=n[r];n[r]=LK[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEac
252h(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}let R6=[...RB,Su,SC],R8=e=>R6.find(RV(e)),R7={current:null},R9={current:!1};function ke(){if(R9.current=!0,w$){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>R7.current=e.matches;e.addListener(t),t()}else R7.current=!1}}let kt=new WeakMap;function kn(e,t,n){for(let i in t){let r=t[i],a=n[i];if(TR(r))e.addValue(i,r);else if(TR(a))e.addValue(i,TL(r,{owner:e}));else if(a!==r){if(e.hasValue(i)){let t=e.getValue(i);!0===t.liveStyle?t.jump(r):t.hasAnimated||t.set(r)}else{let t=e.getStaticValue(i);e.addValue(i,TL(void 0!==t?t:r,{owner:e}))}}}for(let i in n)void 0===t[i]&&e.removeValue(i);return t}let ki=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class kr{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:r,visualState:a},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=L5,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=TC.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,Tc.render(this.render,!1,!0))};let{latestValues:o,renderState:l}=a;this.latestValues=o,this.baseTarget={...o},this.initialValues=t.initial?{...o}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.blockInitialAnimation=!!r,this.isControllingVariants=IK(t),this.isVariantNode=IX(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...c}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in c){let t=c[e];void 0!==o[e]&&TR(t)&&t.set(o[e],!1)}}mount(e){this.current=e,kt.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),R9.current||ke(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||R7.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in this.projection&&this.projection.unmount(),Td(this.notifyUpdate),Td(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){let n;this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let i=Tm.has(e);i&&this.onBindTransform&&this.onBindTransform();let r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&Tc.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),a=t.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),a(),n&&n(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in I2){let t=I2[e];if(!t)continue;let{isEnabled:n,Feature:i}=t;if(!this.features[e]&&i&&n(this.props)&&(this.features[e]=new i(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Mg()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<ki.length;t++){let n=ki[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let i=e["on"+n];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=kn(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}
252addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=TL(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=n&&("string"==typeof n&&(RG(n)||RZ(n))?n=parseFloat(n):!R8(n)&&SC.test(t)&&(n=R2(e,t)),this.setBaseTarget(e,TR(n)?n.get():n)),TR(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t;let{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let i=Te(this.props,n,this.presenceContext?.custom);i&&(t=i[e])}if(n&&void 0!==t)return t;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||TR(i)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new T_),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class ka extends kr{constructor(){super(...arguments),this.KeyframeResolver=R4}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;TR(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function ks(e,{style:t,vars:n},i,r){for(let a in Object.assign(e.style,t,r&&r.getProjectionStyles(i)),n)e.style.setProperty(a,n[a])}function ko(e){return window.getComputedStyle(e)}class kl extends ka{constructor(){super(...arguments),this.type="html",this.renderInstance=ks}readValueFromInstance(e,t){if(Tm.has(t))return this.projection?.isProjecting?LH(t):Lz(e,t);{let n=ko(e),i=(T$(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof i?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Mk(e,t)}build(e,t,n){Rd(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return RN(e,t,n)}}let ku=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function kc(e,t,n,i){for(let n in ks(e,t,void 0,i),t.attrs)e.setAttribute(ku.has(n)?n:TN(n),t.attrs[n])}class kd extends ka{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Mg}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Tm.has(t)){let e=R1(t);return e&&e.default||0}return t=ku.has(t)?t:TN(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return RO(e,t,n)}
252build(e,t,n){Rb(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,i){kc(e,t,n,i)}mount(e){this.isSVGTag=RC(e.tagName),super.mount(e)}}let kh=(e,t)=>RA(e)?new kd(t):new kl(t,{allowProjection:e!==T.Fragment}),kf=w8(RU({...PJ,...IW,...Iy,...I$},kh));var kp=n(65149),km=n.n(kp);let kg=O().bind(km());function kv(e){let{title:t,uri:n,gameData:i,variants:r,solvedLabelSingular:a,solvedLabelPlural:s,lostLabel:o}=e,{coverStoryDate:l,gameNumber:u}=i||{},c=(0,T.useMemo)(()=>(0,D.p6)(l),[l]),[d,h]=(0,T.useState)(!1),[f,p]=(0,T.useState)(null),[m,g]=(0,T.useState)(0),v={solvedSingular:a||"Missing Solved in 1 Tile",solvedPlural:s||"Missing Solved in {{COUNT}} Tiles",lostLabel:o||"Missing you lost"};(0,T.useEffect)(()=>{if(u){let e=wD(String(u));e&&(h(!0),p(e.won),g(e.guessCount))}},[u]);let y=()=>{window.scrollTo({top:0,behavior:"smooth"})};return(0,w.jsx)(kf.div,{variants:r,children:(0,w.jsxs)(td.K,{href:n,className:kg(["list-cover-stories-item"]),onClick:y,children:[(0,w.jsxs)("p",{className:kg(["title","title-lc-s"]),children:["#",u," - ",t]}),(0,w.jsxs)("div",{className:kg("pill-wrapper"),children:[d&&(0,w.jsx)("p",{className:kg("pill","pill--played"),children:f?1===m?v.solvedSingular:v.solvedPlural.replace("{{COUNT}}",String(m)):v.lostLabel}),(0,w.jsx)("p",{className:kg("pill"),children:c})]})]})})}var ky=n(92576);let k_=O().bind(km()),kb=!1,kx={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.085,delayChildren:0}},exit:{opacity:0,transition:{duration:.2,ease:e7.hl}}},kC={hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{duration:.3,ease:e7.hl}},exit:{opacity:0}};function kE(e){let{coverStories:t,headline:n,subhead:i,labels:r,pageUri:a,notIn:s=[]}=e,{log:o}=(0,ij.q)({name:"ListCoverStories",bgColor:"#F2CB05",enabled:!1}),l={solvedSingular:(null==r?void 0:r.solvedSingular)||"Missing Solved in 1 Tile",solvedPlural:(null==r?void 0:r.solvedPlural)||"Missing Solved in {{COUNT}} Tiles",resume:(null==r?void 0:r.resume)||"Missing Resume",lost:(null==r?void 0:r.lost)||"Missing you lost",ctaPlayMore:(null==r?void 0:r.playMore)||"Missing play more"},[u,c]=(0,T.useState)(1),[d,h]=(0,T.useState)(!1),{isReady:f,isDesktop:p}=(0,N.dg)(),{mounted:m}=(0,eT.F)(),[g]=(0,wz.t)(ky.xE),v=(0,T.useMemo)(()=>{if(!kb||!(null==t?void 0:t.nodes))return t;let e=t.nodes,n=[];for(let t=0;t<10;t++)n.push(...e.map((e,n)=>({...e,uri:"".concat(e.uri,"-duplicate-").concat(t,"-").concat(n),title:"".concat(e.title," (Copy ").concat(t+1,")")})));return{...t,nodes:n,pageInfo:{offsetPagination:{hasMore:!0,total:n.length}}}},[t]),y=kb?v:t,_=15,b=(0,T.useMemo)(()=>{var e;return(null==y?void 0:null===(e=y.nodes)||void 0===e?void 0:e.slice(0,_))||[]},[y]),[x,C]=(0,T.useState)(b),{pageInfo:{offsetPagination:{hasMore:S,total:L}}}=y||{pageInfo:{offsetPagination:{hasMore:!1,total:0}}},P=(0,T.useMemo)(()=>null==y?void 0:y.pageInfo.offsetPagination.hasMore,[y]),M=(0,T.useMemo)(()=>(null==y?void 0:y.pageInfo.offsetPagination.total)||0,[y]),A=async e=>{if(h(!0),c(e),kb&&(null==y?void 0:y.nodes)){let t=y.nodes,n=(e-1)*_,i=n+_,r=t.slice(n,i);setTimeout(()=>{C(r),h(!1)},300);return}let{data:t}=await g({variables:{offset:(e-1)*_,notIn:s}});(null==t?void 0:t.coverStories.nodes)?C(t.coverStories.nodes):C([]),h(!1)},I=m&&f;return o("Render",{headline:n,subhead:i,total:L,hasMore:S,coverStoriesCount:x.length,isClientReady:I}),(0,w.jsx)("section",{className:k_(["list-cover-stories"]),children:(0,w.jsxs)(E.W,{children:[(0,w.jsx)(ub,{headline:n,subhead:i}),(0,w.jsxs)("div",{className:k_(["list"]),children:[d&&(0,w.jsx)(is.u,{}),!d&&I&&(0,w.jsx)(w6,{mode:"wait",children:(0,w.jsx)(kf.div,{variants:kx,initial:"hidden",animate:"visible",exit:"exit",className:k_("list-cover-stories__items-wrapper"),children:x.map((e,t)=>(0,w.jsx)(kv,{...e,variants:kC,solvedLabelSingular:l.solvedSingular,solvedLabelPlural:l.solvedPlural,lostLabel:l.lost},e.uri))},u)})]}),I&&a&&(0,w.jsx)("div",{className:k_("list-cover-stories__cta"),children:(0,w.jsx)(id.z,{label:l.ctaPlayMore,url:a})}),I&&!a&&P&&(0,w.jsx)(cV,{className:k_("list-cover-stories__pagination"),totalCount:M,perPage:_,size:"small",currentPage:u,onPageChange:A})]})})}var kw=n(88515);let kT=new Map;function kS(e){let{imageSrc:t,canvasSize:n}=e,{log:i}=(0,ij.q)({name:"useAlbumImage",bgColor:"goldenrod",enabled:!0}),[r,a]=(0,T.useState)(null),[s,o]=(0,T.useState)(!0),l=(0,T.useCallback)(async()=>{let e=await fetch(t),n=await e.blob();return new Promise((e,t)=>
252{let i=new FileReader;i.onloadend=()=>e(i.result),i.onerror=t,i.readAsDataURL(n)})},[t]);return(0,T.useEffect)(()=>{(async()=>{let e="".concat(t,"_").concat(n),i=kT.get(e);if(i){a(i),o(!1);return}o(!0);try{let t=await l(),i=new Image;i.onload=()=>{let t=document.createElement("canvas");t.width=n,t.height=n;let r=t.getContext("2d");if(r){let s=i.width/i.height,l=n,u=n,c=0,d=0;s>1?(u=n/s,d=(n-u)/2):(l=n*s,c=(n-l)/2),r.fillStyle="#000",r.fillRect(0,0,n,n),r.drawImage(i,c,d,l,u);let h=new Image;h.onload=()=>{kT.set(e,h),a(h),o(!1)},h.src=t.toDataURL()}else o(!1)},i.onerror=()=>{o(!1)},i.src=t}catch(e){o(!1)}})()},[l,n]),{albumImage:r,isLoading:s}}let kL=e=>{let{containerRef:t,isDisabled:n}=e,{log:i}=(0,ij.q)({name:"CustomCursor",bgColor:"#042940",textColor:"white",enabled:!1}),[r,a]=(0,T.useState)({x:-100,y:-100}),[s,o]=(0,T.useState)(!1);return(0,T.useEffect)(()=>{let e=e=>{a({x:e.clientX,y:e.clientY})},i=e=>{a({x:e.clientX,y:e.clientY}),n||o(!0)},r=()=>{o(!1)},s=t.current;if(s)return s.addEventListener("mousemove",e),s.addEventListener("mouseenter",i),s.addEventListener("mouseleave",r),()=>{s.removeEventListener("mousemove",e),s.removeEventListener("mouseenter",i),s.removeEventListener("mouseleave",r)}},[t,n,i]),(0,T.useEffect)(()=>{n&&o(!1)},[n]),{cursorPos:r,showCursor:s}};var kP=n(92911),kM=n.n(kP);function kA(){return(kA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var kI=function(e){return T.createElement("svg",kA({viewBox:"0 0 31 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f||(f=T.createElement("g",{filter:"url(#filter0_d_515_14555)"},T.createElement("path",{d:"M8.14887 22.3806L3.07184 3.52305C2.67413 2.04583 4.01467 0.687208 5.49709 1.06508L22.7283 5.45734C25.6429 6.20029 27.6826 8.82516 27.6826 11.833C27.6826 13.6731 26.912 15.4292 25.5578 16.675L16.6719 24.8501C15.7142 25.7312 14.4603 26.2202 13.159 26.2202C10.8129 26.2202 8.75878 24.646 8.14887 22.3806Z",fill:"white"}),T.createElement("path",{d:"M8.14887 22.3806L3.07184 3.52305C2.67413 2.04583 4.01467 0.687208 5.49709 1.06508L22.7283 5.45734C25.6429 6.20029 27.6826 8.82516 27.6826 11.833C27.6826 13.6731 26.912 15.4292 25.5578 16.675L16.6719 24.8501C15.7142 25.7312 14.4603 26.2202 13.159 26.2202C10.8129 26.2202 8.75878 24.646 8.14887 22.3806Z",stroke:"#303336",strokeWidth:2}))),p||(p=T.createElement("defs",null,T.createElement("filter",{id:"filter0_d_515_14555",x:0,y:0,width:30.6826,height:31.2202,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},T.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),T.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),T.createElement("feOffset",{dy:2}),T.createElement("feGaussianBlur",{stdDeviation:1}),T.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),T.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),T.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_515_14555"}),T.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_515_14555",result:"shape"})))))};let kR=e=>{let{x:t,y:n,visible:i}=e,{isReady:r}=(0,N.dg)(),{mounted:a}=(0,eT.F)();return a&&r&&i?(0,w.jsx)("div",{className:kM()["custom-cursor"],style:{left:"".concat(t,"px"),top:"".concat(n,"px")},children:(0,w.jsx)(kI,{})}):null};var kk=n(28614),kD=n.n(kk);let kN=O().bind(kD()),kF={MAX_STRENGTH:40,DURATION:1200,BASE_FREQ_X:.018,BASE_FREQ_Y:.004,FREQ_VARIATION_X:.005,FREQ_VARIATION_Y:.002,FREQ_TIME_MULTIPLIER_X:1.2,FREQ_TIME_MULTIPLIER_Y:.8,NOISE_INTENSITY:.003,FREQ_CHANGE_STEPS:8,OCTAVES:2},kO=(0,T.forwardRef)((e,t)=>{let{children:n,borderRadius:i="1rem",className:r="",config:a=kF}=e,s=(0,T.useRef)(null),o=(0,T.useRef)(null),[l,u]=T.useState(!1),c=()=>{u(!0);let e={scale:a.MAX_STRENGTH,time:0};nT.ZP.to(e,{scale:0,time:a.DURATION/1e3,duration:a.DURATION/1e3,ease:"steps("+a.FREQ_CHANGE_STEPS+")",onUpdate:()=>{let t=s.current,n=o.current;if(!t||!n)return;let i=(Math.random()-.5)*a.NOISE_INTENSITY,r=(Math.random()-.5)*a.NOISE_INTENSITY,l=a.BASE_FREQ_X+Math.sin(e.time*a.FREQ_TIME_MULTIPLIER_X)*a.FREQ_VARIATION_X+i,u=a.BASE_FREQ_Y+Math.sin(e.time*a.FREQ_TIME_MULTIPLIER_Y)*a.FREQ_VARIATION_Y+r;t.setAttribute("baseFrequency","".concat(l," ").concat(u)),n.setAttribute("scale",String(e.scale))},onComplete:()=>{u(!1)}})};return(0,T.useImperativeHandle)(t,()=>({triggerWarble:c})),(0,w.jsxs)("div",{className:kN("warble-input-wrap",r,{"is-warbling":l}),style:{borderRadius:i},children:[n,(0,w.jsx)("div",{className:kN("warble-border"),style:{borderRadius:i}}),(0,w.jsx)("svg",{className:kN("warble-svg"),children:(0,w.jsxs)("filter",{id:"warbleEffect",children:[(0,w.jsx)("feTurbulence",{ref:s,t
252ype:"fractalNoise",baseFrequency:"".concat(a.BASE_FREQ_X," ").concat(a.BASE_FREQ_Y),numOctaves:String(a.OCTAVES),result:"noise",seed:"0"}),(0,w.jsx)("feDisplacementMap",{ref:o,in:"SourceGraphic",in2:"noise",scale:"0",xChannelSelector:"G",yChannelSelector:"R"})]})})]})});kO.displayName="WarbleInput";var kj=kO,kU=n(49228),kV=n.n(kU);function kB(){return(kB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var kH=function(e){return T.createElement("svg",kB({viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),m||(m=T.createElement("path",{d:"M1 9.58429L9.58624 1L11.0003 2.41406L2.41406 10.9983L1 9.58429Z",fill:"currentColor"})),g||(g=T.createElement("path",{d:"M2.41504 0.999023L10.9993 9.58526L9.58526 10.9993L1.00098 2.41309L2.41504 0.999023Z",fill:"currentColor"})))};let kG=O().bind(kV()),kz=T.memo(e=>{let{item:t,isHighlighted:n,guess:i,onSelect:r,index:a}=e,s=(0,T.useMemo)(()=>{let e=i,n=t.display;if(!e.trim())return[n];let r=e.toLowerCase().split(/\s+/).filter(e=>e.length>0);if(0===r.length)return[n];let a=n.toLowerCase(),s=[];r.forEach(e=>{if(1===e.length){let t;let n=RegExp("\\b".concat(e,"\\b"),"gi");for(;null!==(t=n.exec(a));)s.push({start:t.index,end:t.index+e.length})}else{let t=a.indexOf(e);for(;-1!==t;)s.push({start:t,end:t+e.length}),t=a.indexOf(e,t+1)}}),s.sort((e,t)=>e.start-t.start);let o=[];s.forEach(e=>{if(0===o.length)o.push(e);else{let t=o[o.length-1];e.start<=t.end?t.end=Math.max(t.end,e.end):o.push(e)}});let l=[],u=0;return o.forEach((e,t)=>{e.start>u&&l.push((0,w.jsx)("span",{children:n.substring(u,e.start)},"text-".concat(u))),l.push((0,w.jsx)("strong",{children:n.substring(e.start,e.end)},"bold-".concat(e.start,"-").concat(t))),u=e.end}),u<n.length&&l.push((0,w.jsx)("span",{children:n.substring(u)},"text-".concat(u))),l},[t.display,i]);return(0,w.jsx)("button",{className:O().bind(kV())("autocomplete-item",{highlighted:n}),onClick:()=>r(t),onMouseDown:e=>e.preventDefault(),type:"button",role:"option","aria-selected":n,tabIndex:0,id:"album-option-".concat(a),children:s.map(e=>e)})});kz.displayName="AutocompleteItem";let kq=e=>{let{guess:t,onGuessChange:n,onSubmit:i,onKeyDown:r,gameOver:a,correctAnswer:s,disabled:o=!1,showIncorrectFeedback:l=!1,copy:u}=e,{log:c}=(0,ij.q)({name:"GameInput",bgColor:"hotpink",enabled:wb}),d=/iPad|iPhone|iPod/.test(navigator.userAgent),{isReady:h}=(0,N.dg)(),{mounted:f}=(0,eT.F)(),{allAlbums:p}=(0,kw.BX)(),[m,g]=(0,T.useState)(!1),[v,y]=(0,T.useState)(!1),[_,b]=(0,T.useState)(-1),x=(0,T.useRef)(null),C=(0,T.useRef)(null),E=(0,T.useRef)(null),S=(0,T.useRef)(null),L=(0,T.useRef)(null),P=(0,T.useMemo)(()=>new aJ(p,{keys:["search_name"],includeScore:!0,useExtendedSearch:!0,ignoreLocation:!0,findAllMatches:!0,threshold:.3,minMatchCharLength:1}),[p]),M=(0,T.useMemo)(()=>!t.trim()||v?[]:P.search(t).slice(0,6).map(e=>({album:e.item.album||"",artist:e.item.artist_name||"",display:"".concat(e.item.album||"").concat(e.item.artist_name?" - "+e.item.artist_name:"")})).filter(e=>e.album),[t,P,v]);(0,T.useEffect)(()=>{b(-1)},[M]),(0,T.useEffect)(()=>()=>{L.current&&clearTimeout(L.current)},[]);let A=(0,T.useMemo)(()=>{if(!t.trim())return!1;let e=t.trim().toLowerCase();return p.some(t=>{var n;return(null===(n=t.album)||void 0===n?void 0:n.toLowerCase())===e})},[t,p]),I=m&&t.trim().length>0&&!v,R=t.trim().length>0&&!l,k=(null==u?void 0:u.placeholderGuessAlbum)+"â¦",D=()=>{var e;n(""),y(!1),L.current&&(clearTimeout(L.current),L.current=null),null===(e=x.current)||void 0===e||e.focus()},F=()=>{L.current&&(clearTimeout(L.current),L.current=null),g(!0),d&&setTimeout(()=>{var e;null===(e=x.current)||void 0===e||e.scrollIntoView({block:"center"})},100)},O=()=>{L.current=setTimeout(()=>{g(!1),L.current=null},wS.AUTOCOMPLETE_BLUR_DELAY)},j=e=>{n(e.album),y(!0)},U=e=>{n(e),y(!1)},V=e=>{if(I&&M.length>0){if("ArrowDown"===e.key)e.preventDefault(),b(e=>e<M.length-1?e+1:e);else if("ArrowUp"===e.key)e.preventDefault(),b(e=>e>0?e-1:-1);else if("Tab"===e.key)e.preventDefault(),b(e=>e<M.length-1?e+1:0);else if("Enter"===e.key&&_>=0){e.preventDefault(),j(M[_]);return}}if("Enter"===e.key&&!A){e.preventDefault();return}r(e)};return((0,iM.V)(()=>{var e;if(l){if(null===(e=C.current)||void 0===e||e.triggerWarble(),E.current){let e=nT.p8.timeline();e.to(E.current,{x:-wS.SHAKE_DISTANCE,duration:wS.SHAKE_DURATION/1e3,ease:"power2.out"});for(let t=0;t<wS.SHAKE_TIMES;t++){let n=wS.SHAKE_DISTANCE-wS.SHAKE_DISTANCE/wS.SHAKE_TIMES*t;e.to(E.current,{x:n,duration:wS.SHAKE_DURATION/1e3,ease:"power2.inOut"}).to(E.current,{x:-n,duration:wS.SHAKE_DURATION/1e3,ease:"power2.inOut"})}e.to(E.current,{x:0,duration:wS.SHAKE_DURATION/1e3,ease:"power2.inOut"}).timeScale(wS.SHAKE_SPEED)}if(S.current){let e=(wS.INCORRECT_FEEDBACK_DURATION-wS.TOAST_FADE_IN-wS.TOAST_FADE_OUT)/1e3;nT.p8.timeline().fromTo(S.current,{opacity:0,y:10,scale:.8},{opacity:1,y:0,scale:1,duration:wS.TOAST_FADE_IN/1e3,ease:"back.out(1.7)"}).to(S.current,{opacity:0,duration:wS.TOAST_FADE_OUT/1e3,ease:"power1.out"},"+=".concat(e))}}},{dependencies:[l]}),f&&h)?(0,w.jsxs)("div",{className:kG("game-input"),children:[(0,w.jsxs)("div",{ref:E,className:kG("input-control
252s"),children:[(0,w.jsx)(kj,{ref:C,className:t.trim().length>0?"has-value":"",config:wL,children:(0,w.jsxs)("div",{className:kG("input-wrapper"),children:[(0,w.jsx)("input",{ref:x,id:"album-guess-input",className:kG("text-m","guess-input",{incorrect:l}),type:"text",placeholder:k,value:t,onChange:e=>U(e.target.value),onKeyDown:V,onFocus:F,onBlur:O,disabled:a||o,autoComplete:"off",role:"combobox","aria-autocomplete":"list","aria-expanded":I,"aria-controls":"album-autocomplete-listbox","aria-activedescendant":_>=0?"album-option-".concat(_):void 0}),R&&(0,w.jsx)("button",{className:kG("clear-button"),onClick:D,type:"button","aria-label":null==u?void 0:u.clearButtonAriaLabel,children:(0,w.jsx)(kH,{"aria-hidden":"true",className:"game-icon"})}),(0,w.jsx)(w6,{children:I&&(0,w.jsx)(kf.div,{className:kG("autocomplete-wrapper"),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:wS.AUTOCOMPLETE_FADE/1e3},children:(0,w.jsx)(kf.div,{className:kG("autocomplete-animator"),initial:{height:0},animate:{height:"auto"},exit:{height:0},transition:{duration:wS.AUTOCOMPLETE_HEIGHT/1e3,ease:[.25,.1,.25,1]},children:(0,w.jsx)("div",{className:kG("autocomplete"),role:"listbox",id:"album-autocomplete-listbox",children:M.map((e,n)=>(0,w.jsx)(kz,{item:e,isHighlighted:n===_,guess:t,onSelect:j,index:n},"".concat(e.album,"-").concat(n)))})})})})]})}),(0,w.jsx)("button",{className:kG("guess-input-submit"),onClick:()=>A&&i(),disabled:!A||a||o,"aria-label":null==u?void 0:u.submitButtonAriaLabel,children:(0,w.jsx)(ta.Z,{"aria-hidden":"true"})})]}),(0,w.jsx)("div",{className:kG("toast-incorrect"),ref:S,"aria-live":"polite","aria-atomic":"true","aria-hidden":"true",children:(0,w.jsx)("span",{className:kG("eyebrow-l"),children:(null==u?void 0:u.incorrectGuess)||"Incorrect"})})]}):null};var kW=T.memo(kq),k$=n(20909),kZ=n.n(k$);function kY(){return(kY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var kK=function(e){return T.createElement("svg",kY({viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),v||(v=T.createElement("path",{d:"M14 1.41L12.59 0L7 5.59L1.41 0L0 1.41L5.59 7L0 12.59L1.41 14L7 8.41L12.59 14L14 12.59L8.41 7L14 1.41Z",fill:"currentColor"})))};let kX=O().bind(kZ());var kQ=e=>{let{guessesUsed:t,incorrectGuesses:n,copy:i}=e,r=(0,T.useRef)(new Map),a=(0,T.useRef)(new Map),s=(0,T.useRef)(new Set),o=wC-t,l=()=>{let e=1===o?null==i?void 0:i.singular:null==i?void 0:i.plural;return(null==e?void 0:e.replace("{{count}}",String(o)))||"".concat(o," tiles left")};return(0,T.useEffect)(()=>{let e=[];return n.forEach(t=>{if(!s.current.has(t)){let n=r.current.get(t),i=a.current.get(t);if(n){let r=nT.p8.timeline().add("start");r.fromTo(n,{opacity:0},{opacity:1,duration:.16},"start"),r.fromTo(n,{scale:4},{scale:1,duration:.8,ease:"bounce.out"},"start"),i&&(r.add("square-back-normal","start+=1"),r.set(i,{borderWidth:"1.5px",borderColor:"var(--highlight-color)",scale:1.75,zIndex:1},"start"),r.to(i,{borderWidth:"1px",scale:1,duration:.32,ease:"power1.in"},"square-back-normal"),r.set(i,{borderColor:"var(--gray-2)"},"square-back-normal")),e.push(r),s.current.add(t)}}}),()=>{e.forEach(e=>e.kill())}},[n]),(0,w.jsxs)("div",{className:kX("guess-meter"),children:[(0,w.jsx)("div",{className:kX("guess-meter-squares"),children:Array.from({length:wC},(e,i)=>{let s=i+1,o=s<=t,l=n.includes(s);return(0,w.jsx)("div",{className:kX("guess-square",{used:o&&!l,incorrect:l}),ref:e=>{e&&l&&a.current.set(s,e)},children:l&&(0,w.jsx)("div",{className:kX("icon-x-wrap"),ref:e=>{e&&r.current.set(s,e)},children:(0,w.jsx)(kK,{width:"100%",height:"100%","aria-hidden":"true",className:kX("icon-x")})})},i)})}),(0,w.jsx)("div",{className:kX("text-s","guess-meter-label"),children:l()})]})};let kJ=O().bind(kM());var k0=e=>{var t;let{canvasSize:n=600,gridSize:i=6,imageSrc:r="/test-album.jpg",correctAnswer:a="Answer",onGameStateUpdate:s,onGuessUsed:o,onGuessMeterUpdate:l,onGameOver:u,onGetRemainingTiles:c,onGetFlipTileFunction:d,onGetTilesMap:h,onGetwrapperGameInputRef:f,onGetwrapperGameMeterRef:p,onTileFlipped:m,onTriggerGameOver:g,initialGuessesUsed:v=0,initialIncorrectGuesses:y=[],copy:_}=e,{log:b}=(0,ij.q)({name:"GameBoard",bgColor:"#005C53",textColor:"white",enabled:wb}),{isTouchDevice:x,isDesktop:C}=(0,N.dg)(),E=(0,T.useRef)(null),S=(0,T.useRef)(null),L=(0,T.useRef)(null),P=(0,T.useRef)(null),M=(0,T.useRef)(null),A=(0,T.useRef)(null),I=(0,T.useRef)(!1),R=(0,T.useRef)(null),k=(0,T.useRef)(new Map),D=(0,T.useRef)(new Map),F=(0,T.useRef)(new Set),O=(0,T.useRef)(null),j=(0,T.useRef)(v>=wC),U=(0,T.useRef)(v>=wC),V=(0,T.useRef)(y),B=(0,T.useRef)(!1),H=(0,T.useRef)(!1),[G,z]=(0,T.useState)([]),[q,W]=(0,T.useState)(""),[$,Z]=(0,T.useState)(v),[Y,K]=(0,T.useState)(y),[X,Q]=(0,T.useState)(v>0),[J,ee]=(0,T.useState)(!1),[et,en]=(0,T.useState)(!1),[ei,er]=(0,T.useState)(v>=wC),ea=(0,T.useRef)(!1),es=(0,T.useRef)(!1),eo=!x&&C,{albumImage:el,isLoading:eu}=kS({imageSrc:r,canvasSize:n}),{cursorPos:ec,showCursor:ed}=kL({containerRef:A,isDisabled:ei||et||!eo}),eh=(0,T.useCallback)(()=>
252{if(!L.current||Number(nT.p8.getProperty(L.current,"autoAlpha"))>0)return;O.current&&O.current.kill();let e=nT.p8.timeline();O.current=e,nT.p8.set(L.current,{autoAlpha:0,y:-20}),e.to(L.current,{autoAlpha:1,y:0,duration:.3,ease:"power2.out"}),e.to({},{duration:2.5}),e.to(L.current,{autoAlpha:0,y:-20,duration:.3,ease:"power2.in"})},[]),ef=(0,T.useCallback)(()=>{ei&&!et&&(b("User clicked on disabled board - showing final guess toast reminder"),eh())},[ei,et,eh]),ep=(0,T.useCallback)(()=>{let e=[],t=n/i;for(let n=0;n<i;n++)for(let r=0;r<i;r++)e.push({id:n*i+r,row:n,col:r,x:r*t,y:n*t,width:t,height:t,isRevealed:!1,isFlipping:!1});b("Tiles initialized:",{gridSize:i,totalTiles:e.length}),z(e)},[n,i]);(0,T.useEffect)(()=>{b("GameBoard mounted - initializing"),ep(),F.current.clear(),v<wC&&(j.current=!1,U.current=!1,er(!1))},[ep,v]),(0,T.useEffect)(()=>{ea.current=!0},[]),(0,T.useEffect)(()=>{ea.current&&v>=wC&&(b("User is out of guesses on mount - showing final guess toast"),setTimeout(()=>{eh()},500))},[v,eh]),(0,T.useEffect)(()=>{if(G.length>0&&ea.current){let e=i*i;null==s||s(0,e)}},[G.length,i]),(0,T.useEffect)(()=>{ea.current&&$>0&&(null==o||o($,wC))},[$,o]),(0,T.useEffect)(()=>{ea.current&&$>0&&(null==l||l($,Y))},[$,Y,l]),(0,T.useEffect)(()=>{if(ea.current&&F.current.size>0){let e=F.current.size,t=i*i;null==s||s(e,t)}},[G,i,s]),(0,T.useEffect)(()=>{if(et&&ea.current){let e=es.current?"won":"out-of-guesses";b("Triggering onGameOver with reason:",e),null==u||u(e,I.current),S.current&&(S.current.style.visibility="hidden")}},[et,u]),(0,T.useEffect)(()=>{c&&c(()=>{let e=G.map(e=>e.id),t=Array.from(F.current),n=e.filter(e=>!F.current.has(e));return b("getRemainingTiles called:",{totalTiles:e.length,flipped:t,remaining:n}),n})},[G,c]),(0,T.useEffect)(()=>{d&&d(e=>{if(F.current.has(e)){b("Tile already flipped, skipping:",e);return}let t=k.current.get(e);if(!t){b("No tile elements found for:",e);return}if(!G.find(t=>t.id===e)){b("No tile data found for:",e);return}F.current.add(e),z(t=>t.map(t=>t.id===e?{...t,isFlipping:!0}:t)),nT.p8.to(t.wrapper,{rotationY:180,duration:wS.TILE_FLIP_DURATION/1e3,ease:"power1.out",transformOrigin:"center center",onComplete:()=>{z(t=>t.map(t=>t.id===e?{...t,isRevealed:!0,isFlipping:!1}:t)),null==m||m(e)}})})},[G,d,m]),(0,T.useEffect)(()=>{h&&h(()=>k.current)},[h]),(0,T.useEffect)(()=>{f&&P.current&&!B.current&&(f(P.current),B.current=!0)}),(0,T.useEffect)(()=>{p&&M.current&&!H.current&&(p(M.current),H.current=!0)}),(0,T.useEffect)(()=>{g&&g(e=>{b("Parent triggered game over with reason:",e),"won"===e&&(es.current=!0),en(!0)})},[g]),(0,T.useEffect)(()=>{if(!E.current)return;let e=()=>{let e=E.current;if(!e)return;e.style.width="";let t=Math.floor(e.getBoundingClientRect().width);e.style.width="".concat(t,"px")};requestAnimationFrame(()=>{e()});let t=()=>{requestAnimationFrame(()=>{e()})};return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[]),(0,T.useEffect)(()=>{k.current.size>0&&G.forEach(e=>{let t=k.current.get(e.id);t&&e.isRevealed&&!F.current.has(e.id)&&(nT.p8.set(t.wrapper,{rotationY:180}),F.current.add(e.id))})},[G]);let em=(0,T.useCallback)(()=>{let e=S.current;if(!e)return;let t=e.getContext("2d");t&&(t.clearRect(0,0,n,n),t.fillStyle="#000",t.fillRect(0,0,n,n))},[n]),eg=(0,T.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return!et&&!j.current&&(Z(t=>{let n=t+1;return e&&K(e=>{let t=[...e,n];return V.current=t,t}),n>=wC&&(j.current=!0,U.current=!0,b("Out of guesses!"),er(!0),eh(),k.current.forEach((e,t)=>{if(!F.current.has(t)){let n=D.current.get(t);n&&(e.front.removeEventListener("mouseenter",n.mouseenter),e.front.removeEventListener("mouseleave",n.mouseleave),e.front.removeEventListener("click",n.click))}})),n}),!0)},[et,eh]),ev=(0,T.useCallback)(e=>{if(et||U.current||F.current.has(e)||j.current)return;eg();let t=k.current.get(e);if(!t)return;let n=G.find(t=>t.id===e);n&&(b("Flipping tile:",{tileId:e,row:n.row,col:n.col}),F.current.add(e),X||Q(!0),z(t=>t.map(t=>t.id===e?{...t,isFlipping:!0}:t)),nT.p8.to(t.wrapper,{rotationY:180,duration:wS.TILE_FLIP_DURATION/1e3,ease:"power1.out",transformOrigin:"center center",onComplete:()=>{t.front.setAttribute("aria-label","Tile at row ".concat(n.row+1,", column ").concat(n.col+1," revealed")),z(t=>t.map(t=>
252t.id===e?{...t,isRevealed:!0,isFlipping:!1}:t)),null==m||m(e)}}))},[G,i,eg,et,X,m]);(0,T.useEffect)(()=>{if(!R.current||0===G.length||!el)return;let e=R.current;0===k.current.size&&(e.innerHTML="",k.current.clear(),G.forEach(t=>{let i=document.createElement("div");i.className=kJ("tile-wrapper"),i.style.setProperty("--tile-left","".concat(t.x/n*100,"%")),i.style.setProperty("--tile-top","".concat(t.y/n*100,"%")),i.style.setProperty("--tile-width","".concat(t.width/n*100,"%")),i.style.setProperty("--tile-height","".concat(t.height/n*100,"%"));let r=document.createElement("div");r.className=kJ("tile-face","tile-front"),r.setAttribute("role","button"),r.setAttribute("tabIndex","0"),r.setAttribute("aria-label","Reveal tile at row ".concat(t.row+1,", column ").concat(t.col+1)),r.setAttribute("aria-pressed","false");let a=document.createElement("div");a.className=kJ("tile-face","tile-back");let s=document.createElement("canvas");s.width=t.width,s.height=t.height;let o=s.getContext("2d");o&&o.drawImage(el,t.x,t.y,t.width,t.height,0,0,t.width,t.height),a.appendChild(s),i.appendChild(r),i.appendChild(a),e.appendChild(i),k.current.set(t.id,{wrapper:i,front:r,back:a}),t.isRevealed&&(nT.p8.set(i,{rotationY:180}),F.current.add(t.id));let l=()=>{U.current||et||t.isFlipping||!eo||nT.p8.to(r,{backgroundColor:"var(--highlight-color)",duration:wS.TILE_HOVER_DURATION/1e3,ease:"power2.out"})},u=()=>{U.current||et||t.isFlipping||!eo||nT.p8.to(r,{backgroundColor:"#000",duration:wS.TILE_HOVER_DURATION/1e3,ease:"power2.out"})},c=()=>{F.current.has(t.id)||ev(t.id)},d=e=>{if(U.current||et){e.preventDefault();return}"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),F.current.has(t.id)||ev(t.id))};D.current.set(t.id,{mouseenter:l,mouseleave:u,click:c}),r.addEventListener("mouseenter",l),r.addEventListener("mouseleave",u),r.addEventListener("click",c),r.addEventListener("keydown",d)}),em())},[el,em,ev]),(0,T.useEffect)(()=>{G.forEach(e=>{let t=k.current.get(e.id);if(!t)return;let n=F.current.has(e.id);n&&!e.isFlipping?(nT.p8.set(t.wrapper,{rotationY:180}),t.front.style.pointerEvents="none",t.front.setAttribute("aria-pressed","true"),t.front.setAttribute("tabIndex","-1")):n||e.isFlipping||(nT.p8.set(t.wrapper,{rotationY:0}),t.front.style.pointerEvents="auto",t.front.setAttribute("aria-pressed","false"),t.front.setAttribute("tabIndex",ei?"-1":"0"))})},[G,ei]);let ey=(0,T.useCallback)(()=>{if(q.trim()&&!et){let e=q.trim(),t=e.toLowerCase()===a.toLowerCase();I.current=!0,b("Submitting guess:",{guess:e,guessLowercase:e.toLowerCase(),correctAnswer:a,correctAnswerLowercase:a.toLowerCase(),isCorrect:t,isOutOfGuesses:j.current}),t?(W(""),b("Correct answer! Game won!"),es.current=!0,en(!0)):(ee(!0),setTimeout(()=>{W(""),ee(!1)},wS.INCORRECT_FEEDBACK_DURATION),j.current?(b("Final guess attempt made - Game lost after feedback completes!"),setTimeout(()=>{en(!0)},wS.INCORRECT_FEEDBACK_DURATION)):eg(!0))}},[q,et,a,eg]),e_=(0,T.useCallback)(e=>{"Enter"===e.key&&ey()},[ey]);return eu?(0,w.jsx)("div",{className:kJ("game-board-container")}):(0,w.jsxs)("div",{ref:E,className:kJ("game-board-container",{"touch-device":x,"use-custom-cursor":eo}),children:[(0,w.jsx)(kR,{visible:ed&&!ei&&!et&&eo,x:ec.x,y:ec.y}),(0,w.jsxs)("div",{ref:A,className:kJ("game-board",{disabled:ei||et}),onClick:ef,children:[(0,w.jsxs)("div",{className:kJ("canvas-wrapper",{"fade-out":et}),children:[(0,w.jsx)("canvas",{ref:S,width:n,height:n,className:kJ("background-canvas")}),(0,w.jsx)("div",{ref:R,className:kJ("tile-container")})]}),(0,w.jsx)("div",{className:kJ("toast-final-guess"),ref:L,children:(0,w.jsx)("span",{className:kJ("text-m"),children:(null==_?void 0:null===(t=_.finalGuessToast)||void 0===t?void 0:t.message)||"You're out of tiles. Time to make a final guess."})})]}),(0,w.jsx)("div",{className:kJ("wrapper-game-input"),ref:P,children:(0,w.jsx)(kW,{guess:q,onGuessChange:W,onSubmit:ey,onKeyDown:e_,gameOver:et,correctAnswer:a,showIncorrectFeedback:J,copy:null==_?void 0:_.gameInput})}),(0,w.jsx)("div",{className:kJ("wrapper-game-meter"),ref:M,children:(0,w.jsx)(kQ,{guessesUsed:$,incorrectGuesses:Y,copy:null==_?void 0:_.gameMeter})})]})},k1=JSON.parse('{"metadata":{"totalFrames":274,"duration":1.17551,"barCount":51,"recordedAt":"2025-11-13T18:20:03.879Z"},"frames":[{"frame":9,"timestamp":0.033452,"frequencies":[480,361,276,292,239,266,203,215,254,259,291,301,289,276,310,207,233,234,230,266,174,161,173,186,176,172,176,186,173,161,174,266,230,234,233,207,310,276,289,301,291,259,254,215,203,266,239,292,276,361,480]},{"frame":13,"timestamp":0.064514,"frequencies":[581,452,296,281,292,317,262,245,301,272,292,320,279,266,298,277,253,237,248,259,222,181,181,203,144,155,144,203,181,181,222,259,248,237,253,277,298,266,279,320,292,272,301,245,262,317,292,281,296,452,581]},{"frame":17,"timestamp":0.09288,"frequencies":[566,449,303,282,284,276,269,236,287,259,284,276,245,281,264,237,259,234,242,251,207,181,159,192,139,127,139,192,159,181,207,251,242,234,259,237,264,281,245,276,284,259,287,236,269,276,284,282,303,449,566]},{"frame":21,"timestamp":0.129009,"frequencies":[524,414,333,291,264,256,258,250,269,248,236,250,222,256,261,245,248,245,243,224,192,168,132,172,156,131,156,172,132,168,192,224,243,245,248,245,261,256,222,250,236,248,269,250,258,256,264,291,333,414,524]},{"frame":25,"timestamp":0.16254,"frequencies":[564,404,310,266,245,243,240,243,250,210,216,221,209,262,254,225,219,213,216,182,151,146,129,140,125,120,125,140,129,146,151,182,216,213,219,225,254,262,209,221,216,210,250,243,240,243,245,266,310,404,564]},{"frame":29,"timestamp":0.194467,"frequencies":[564,431,301,267,303,319,259,231,237,212,207,224,224,245,250,210,193,189,222,181,169,185,174,172,135,132,135,172,174,185,169,181,222,189,193,210,250,245,224,224,207,212,237,231,259,319,303,267,301,431,564]},{"frame":33,"timestamp":0.226395,"frequencies":[590,464,424,328,317,324,313,355,242,306,329,372,292,264,284,245,181,190,219,261,258,245,227,209,182,154,182,209,227,245,258,261,219,190,181,245,284,264,292,372,329,306,242,355,313,324,317,328,424,464,590]},{"frame":37,"timestamp":0.262158,"frequencies":[600,469,408,340,365,424,339,359,264,308,313,376,326,340,294,251,239,240,207,236,239,253,261,246,196,163,196,246,261,253,239,236,207,240,239,251,294,340,326,376,313,308,264,359,339,424,365,340,408,469,600]},{"frame":41,"timestamp":0.295325,"frequencies":[586,480,372,331,402,500,353,344,266,281,303,372,312,335,292,251,253,239,185,228,221,234,237,204,184,133,184,204,237,234,221,228,185,239,253,251,292,335,312,372,303,281,266,344,353,500,402,331,372,480,586]},{"frame":45,"timestamp":0.327982,"frequencies":[598,437,348,319,380,456,328,328,261,306,333,380,305,329,312,281,274,274,193,236,253,227,207,185,158,142,158,185,207,227,253,236,193,274,274,281,312,329,305,380,333,306,261,328,328,456,380,319,348,437,598]},{"frame":49,"timestamp":0.359909,"frequencies":[578,452,328,305,390,437,333,299,233,299,322,361,299,337,326,298,264,245,199,253,281,207,185,169,159,145,159,169,185,207,281,253,199,245,264,298,326,337,299,361,322,299,233,299,333,437,390,305,328,452,578]}
252,{"frame":53,"timestamp":0.39582,"frequencies":[548,433,310,310,346,394,372,305,248,319,346,398,392,410,346,259,237,233,215,248,281,197,170,156,153,119,153,156,170,197,281,248,215,233,237,259,346,410,392,398,346,319,248,305,372,394,346,310,310,433,548]},{"frame":57,"timestamp":0.42896,"frequencies":[574,464,301,317,382,400,348,274,234,306,361,424,404,404,357,234,242,234,243,277,284,213,168,161,182,166,182,161,168,213,284,277,243,234,242,234,357,404,404,424,361,306,234,274,348,400,382,317,301,464,574]},{"frame":61,"timestamp":0.461497,"frequencies":[564,456,310,319,437,437,337,272,250,274,371,390,374,467,384,224,240,237,231,281,243,224,192,181,196,154,196,181,192,224,243,281,231,237,240,224,384,467,374,390,371,274,250,272,337,437,437,319,310,456,564]},{"frame":65,"timestamp":0.496402,"frequencies":[613,504,491,348,433,473,400,408,348,342,352,388,384,445,353,276,230,243,253,294,258,246,281,264,236,181,236,264,281,246,258,294,253,243,230,276,353,445,384,388,352,342,348,408,400,473,433,348,491,504,613]},{"frame":69,"timestamp":0.529387,"frequencies":[640,480,447,394,443,447,445,447,371,329,346,363,371,402,313,256,261,246,266,281,262,242,267,264,254,222,254,264,267,242,262,281,266,246,261,256,313,402,371,363,346,329,371,447,445,447,443,394,447,480,640]},{"frame":73,"timestamp":0.562524,"frequencies":[650,469,422,398,402,452,443,428,376,340,359,353,333,365,299,224,233,225,246,237,222,212,269,246,225,193,225,246,269,212,222,237,246,225,233,224,299,365,333,353,359,340,376,428,443,452,402,398,422,469,650]},{"frame":77,"timestamp":0.595011,"frequencies":[650,495,484,414,369,473,456,428,378,317,340,348,322,313,266,213,218,236,215,225,192,185,224,227,206,188,206,227,224,185,192,225,215,236,218,213,266,313,322,348,340,317,378,428,456,473,369,414,484,495,650]},{"frame":81,"timestamp":0.626939,"frequencies":[643,462,437,372,335,449,464,420,396,322,298,313,312,384,296,219,225,256,228,264,210,204,227,212,206,173,206,212,227,204,210,264,228,256,225,219,296,384,312,313,298,322,396,420,464,449,335,372,437,462,643]},{"frame":85,"timestamp":0.662894,"frequencies":[650,471,378,331,299,392,416,374,352,298,267,308,279,353,284,215,207,237,188,243,212,199,231,204,174,163,174,204,231,199,212,243,188,237,207,215,284,353,279,308,267,298,352,374,416,392,299,331,378,471,650]},{"frame":89,"timestamp":0.69587,"frequencies":[648,426,329,301,274,365,372,346,308,253,228,274,231,294,242,172,164,203,158,195,177,174,192,169,149,124,149,169,192,174,177,195,158,203,164,172,242,294,231,274,228,253,308,346,372,365,274,301,329,426,648]},{"frame":93,"timestamp":0.728526,"frequencies":[645,410,319,282,294,369,350,326,274,219,204,256,234,261,202,155,150,186,172,196,168,210,203,246,178,181,178,246,203,210,168,196,172,186,150,155,202,261,234,256,204,219,274,326,350,369,294,282,319,410,645]},{"frame":97,"timestamp":0.760454,"frequencies":[630,392,308,233,240,333,342,291,246,222,212,218,197,231,212,197,169,216,221,267,248,264,292,312,329,299,329,312,292,264,248,267,221,216,169,197,212,231,197,218,212,222,246,291,342,333,240,233,308,392,630]},{"frame":101,"timestamp":0.797035,"frequencies":[608,480,282,246,262,331,378,340,245,233,236,212,178,239,250,233,218,248,242,254,253,259,269,262,261,245,261,262,269,259,253,254,242,248,218,233,250,239,178,212,236,233,245,340,378,331,262,246,282,480,608]},{"frame":105,"timestamp":0.829922,"frequencies":[603,477,287,254,266,460,502,402,264,319,296,253,231,312,310,254,250,264,256,286,287,291,271,228,221,225,221,228,271,291,287,286,256,264,250,254,310,312,231,253,296,319,264,402,502,460,266,254,287,477,603]},{"frame":109,"timestamp":0.862041,"frequencies":[600,435,281,236,246,509,522,384,272,335,301,254,240,326,291,272,261,272,274,299,253,277,264,209,192,192,192,209,264,277,253,299,274,272,261,272,291,326,240,254,301,335,272,384,522,509,246,236,281,435,600]},{"frame":113,"timestamp":0.893968,"frequencies":[613,422,274,233,251,509,488,374,292,352,286,248,250,320,324,245,243,261,266,301,246,266,242,204,219,213,219,204,242,266,246,301,266,261,243,245,324,320,250,248,286,352,292,374,488,509,251,233,274,422,613]},{"frame":117,"timestamp":0.926814,"frequencies":[615,404,259,234,240,441,418,331,259,340,256,231,259,276,287,197,212,231,210,245,233,222,196,172,180,186,180,172,196,222,233,245,210,231,212,197,287,276,259,231,256,340,259,331,418,441,240,234,259,404,615]},{"frame":121,"timestamp":0.960253,"frequencies":[569,431,254,233,272,414,406,317,215,284,240,203,251,294,267,192,207,228,192,230,202,206,170,149,149,155,149,149,170,206,202,230,192,228,207,192,267,294,251,203,240,284,215,317,406,414,272,233,254,431,569]},{"frame":125,"timestamp":0.995556,"frequencies":[576,435,230,200,264,363,378,301,192,246,213,227,264,298,239,165,188,231,184,200,164,190,193,189,158,125,158,189,193,190,164,200,184,231,188,165,239,298,264,227,213,246,192,301,378,363,264,200,230,435,576]},{"frame":129,"timestamp":1.027483,"frequencies":[550,420,242,189,261,333,365,287,166,228,209,210,259,269,219,146,172,215,180,174,150,174,166,159,144,105,144,159,166,174,150,174,180,215,172,146,219,269,259,210,209,228,166,287,365,333,261,189,242,420,550]},{"frame":133,"timestamp":1.060394,"frequencies":[506,398,250,180,264,324,353,286,161,206,196,227,281,308,230,132,202,202,164,144,127,145,153,150,130,98,130,150,153,145,127,144,164,202,202,132,230,308,281,227,196,206,161,286,353,324,264,180,250,398,506]},{"frame":137,"timestamp":1.093861,"frequencies":[562,493,467,328,422,460,382,394,308,384,346,308,352,357,346,335,346,315,292,261,206,233,271,227,182,163,182,227,271,233,206,261,292,315,346,335,346,357,352,308,346,384,308,394,382,460,422,328,467,493,562]},{"frame":141,"timestamp":1.126168,"frequencies":[615,497,464,371,488,460,396,372,342,372,390,365,388,380,365,333,363,315,312,317,291,281,306,352,264,250,264,352,306,281,291,317,312,315,363,333,365,380,388,365,390,372,342,372,396,460,488,371,464,497,615]},{"frame":145,"timestamp":1.158095,"frequencies":[605,482,445,392,464,449,414,384,369,380,380,339,355,378,335,342,331,319,296,282,277,306,308,299,272,251,272,299,308,306,277,282,296,319,331,342,335,378,355,339,380,380,369,384,414,449,464,392,445,482,605]},{"frame":149,"timestamp":1.193936,"frequencies":[613,513,482,458,486,408,400,359,382,352,369,337,346,380,359,342,328,303,326,303,276,277,286,262,259,258,259,262,286,277,276,303,326,303,328,342,359,380,346,337,369,352,382,359,400,408,486,458,482,513,613]},{"frame":153,"timestamp":1.227142,"frequencies":[583,502,469,437,428,396,374,376,355,324,348,331,317,378,365,353,328,286,310,276,251,269,261,261,237,236,237,261,261,269,251,276,310,286,328,353,365,378,317,331,348,324,355,376,374,396,428,437,469,502,583]},{"frame":157,"timestamp":1.259683,"frequencies":[571,500,477,408,371,371,363,337,328,298,310,308,313,353,315,320,313,248,284,262,253,248,246,212,207,195,207,212,246,248,253,262,284,248,313,320,315,353,313,308,310,298,328,337,363,371,371,408,477,500,571]},{"frame":161,"timestamp":1.29161,"frequencies":[529,486,437,382,350,340,348,340,299,292,315,298,306,328,291,303,271,272,292,240,213,248,221,186,182,177,182,186,221,248,213,240,292,272,271,303,291,328,306,298,315,292,299,340,348,340,350,382,437,486,529]},{"frame":165,"timestamp":1.327369,"frequencies":[484,460,386,333,328,326,342,303,266,267,282,266,274,296,251,264,256,246,274,216,186,202,200,200,178,170,178,200,200,202,186,216,274,246,256,264,251,296,274,266,282,267,266,303,342,326,328,333,386,460,484]}
252,{"frame":169,"timestamp":1.360611,"frequencies":[488,480,386,313,322,328,329,274,269,253,266,259,272,254,279,271,253,243,231,204,215,196,196,225,197,155,197,225,196,196,215,204,231,243,253,271,279,254,272,259,266,253,269,274,329,328,322,313,386,480,488]},{"frame":173,"timestamp":1.393197,"frequencies":[524,511,386,384,308,340,320,299,253,227,264,259,289,308,315,305,287,287,296,272,299,266,242,258,218,243,218,258,242,266,299,272,296,287,287,305,315,308,289,259,264,227,253,299,320,340,308,384,386,511,524]},{"frame":177,"timestamp":1.428131,"frequencies":[529,486,406,394,386,382,337,298,294,348,324,294,365,287,298,308,298,277,296,292,326,317,287,291,261,289,261,291,287,317,326,292,296,277,298,308,298,287,365,294,324,348,294,298,337,382,386,394,406,486,529]},{"frame":181,"timestamp":1.461582,"frequencies":[559,473,388,376,410,477,452,313,305,422,355,317,378,339,277,267,279,289,271,261,296,282,267,253,233,251,233,253,267,282,296,261,271,289,279,267,277,339,378,317,355,422,305,313,452,477,410,376,388,473,559]},{"frame":185,"timestamp":1.494126,"frequencies":[595,471,371,342,378,445,469,340,308,431,361,335,348,340,317,250,259,271,230,227,245,245,261,253,219,237,219,253,261,245,245,227,230,271,259,250,317,340,348,335,361,431,308,340,469,445,378,342,371,471,595]},{"frame":189,"timestamp":1.526712,"frequencies":[576,452,352,352,390,454,491,369,329,475,346,310,372,353,319,264,250,237,231,204,258,254,286,254,236,261,236,254,286,254,258,204,231,237,250,264,319,353,372,310,346,475,329,369,491,454,390,352,352,452,576]},{"frame":193,"timestamp":1.558639,"frequencies":[552,420,372,331,376,433,471,400,324,477,335,331,359,326,317,243,246,242,251,215,251,266,301,261,239,274,239,261,301,266,251,215,251,242,246,243,317,326,359,331,335,477,324,400,471,433,376,331,372,420,552]},{"frame":197,"timestamp":1.594404,"frequencies":[552,392,361,350,322,433,484,369,328,475,363,339,371,303,305,219,248,236,248,222,245,274,281,240,231,240,231,240,281,274,245,222,248,236,248,219,305,303,371,339,363,475,328,369,484,433,322,350,361,392,552]},{"frame":201,"timestamp":1.627521,"frequencies":[531,396,315,320,317,475,502,369,331,435,353,352,363,282,272,218,236,264,242,221,231,237,240,243,216,224,216,243,240,237,231,221,242,264,236,218,272,282,363,352,353,435,331,369,502,475,317,320,315,396,531]},{"frame":205,"timestamp":1.660227,"frequencies":[562,404,339,319,317,475,527,374,335,410,352,333,331,266,254,199,251,271,207,215,254,233,240,213,193,196,193,213,240,233,254,215,207,271,251,199,254,266,331,333,352,410,335,374,527,475,317,319,339,404,562]},{"frame":209,"timestamp":1.692154,"frequencies":[650,477,328,306,301,426,491,339,310,378,310,291,291,267,282,199,248,258,224,262,250,243,242,248,225,225,225,248,242,243,250,262,224,258,248,199,282,267,291,291,310,378,310,339,491,426,301,306,328,477,650]},{"frame":213,"timestamp":1.727909,"frequencies":[650,452,315,266,287,384,452,324,267,324,251,272,294,292,242,180,216,224,219,228,227,213,213,221,236,234,236,221,213,213,227,228,219,224,216,180,242,292,294,272,251,324,267,324,452,384,287,266,315,452,650]},{"frame":217,"timestamp":1.761269,"frequencies":[650,445,286,246,274,335,396,298,243,286,253,267,284,296,231,163,180,231,196,189,189,181,185,181,195,192,195,181,185,181,189,189,196,231,180,163,231,296,284,267,253,286,243,298,396,335,274,246,286,445,650]},{"frame":221,"timestamp":1.793741,"frequencies":[650,414,269,225,256,315,382,299,215,281,248,248,259,317,218,159,166,212,172,166,158,178,168,161,154,160,154,161,168,178,158,166,172,212,166,159,218,317,259,248,248,281,215,299,382,315,256,225,269,414,650]},{"frame":225,"timestamp":1.825669,"frequencies":[643,460,259,227,264,357,406,308,200,264,218,227,262,326,202,148,161,185,149,144,142,169,156,149,145,158,145,149,156,169,142,144,149,185,161,148,202,326,262,227,218,264,200,308,406,357,264,227,259,460,643]},{"frame":229,"timestamp":1.861416,"frequencies":[645,467,243,218,251,337,420,313,181,250,185,202,269,342,197,132,151,206,140,119,124,185,165,144,143,180,143,144,165,185,124,119,140,206,151,132,197,342,269,202,185,250,181,313,420,337,251,218,243,467,645]},{"frame":233,"timestamp":1.895329,"frequencies":[645,482,236,230,258,335,445,340,174,224,161,213,310,350,202,129,161,216,130,114,122,177,159,124,138,176,138,124,159,177,122,114,130,216,161,129,202,350,310,213,161,224,174,340,445,335,258,230,236,482,645]},{"frame":237,"timestamp":1.927256,"frequencies":[648,458,261,216,236,324,416,312,146,212,148,202,292,367,222,118,138,200,133,117,125,172,154,114,109,168,109,114,154,172,125,117,133,200,138,118,222,367,292,202,148,212,146,312,416,324,236,216,261,458,648]},{"frame":241,"timestamp":1.959184,"frequencies":[603,445,246,227,242,306,374,292,132,210,144,184,266,333,188,123,128,156,110,122,153,164,156,107,97,168,97,107,156,164,153,122,110,156,128,123,188,333,266,184,144,210,132,292,374,306,242,227,246,445,603]},{"frame":245,"timestamp":1.994929,"frequencies":[615,469,378,298,464,484,431,333,251,269,287,292,267,320,243,197,209,230,196,234,218,256,261,230,184,233,184,230,261,256,218,234,196,230,209,197,243,320,267,292,287,269,251,333,431,484,464,298,378,469,615]},{"frame":249,"timestamp":2.028291,"frequencies":[650,552,513,353,477,454,422,372,319,294,319,296,310,329,315,287,233,264,242,279,264,282,286,259,197,212,197,259,286,282,264,279,242,264,233,287,315,329,310,296,319,294,319,372,422,454,477,353,513,552,650]},{"frame":253,"timestamp":2.060771,"frequencies":[625,509,467,376,473,452,426,392,305,313,291,301,289,346,317,296,258,259,266,250,259,277,261,239,185,209,185,239,261,277,259,250,266,259,258,296,317,346,289,301,291,313,305,392,426,452,473,376,467,509,625]},{"frame":257,"timestamp":2.092698,"frequencies":[615,471,467,424,454,410,424,408,310,317,289,289,299,322,305,322,261,274,266,221,237,251,245,237,197,195,197,237,245,251,237,221,266,274,261,322,305,322,299,289,289,317,310,408,424,410,454,424,467,471,615]},{"frame":261,"timestamp":2.128425,"frequencies":[623,497,475,441,464,416,408,390,284,301,303,303,303,289,279,289,253,258,242,233,248,237,267,231,218,199,218,231,267,237,248,233,242,258,253,289,279,289,303,303,303,301,284,390,408,416,464,441,475,497,623]},{"frame":265,"timestamp":2.16211,"frequencies":[562,477,506,467,458,396,371,353,274,298,298,267,284,282,284,286,261,253,237,267,258,258,313,317,215,206,215,317,313,258,258,267,237,253,261,286,284,282,284,267,298,298,274,353,371,396,458,467,506,477,562]},{"frame":269,"timestamp":2.194286,"frequencies":[524,482,491,422,414,353,348,337,258,296,258,239,243,248,251,239,243,242,233,250,224,258,319,306,209,189,209,306,319,258,224,250,233,242,243,239,251,248,243,239,258,296,258,337,348,353,414,422,491,482,524]},{"frame":273,"timestamp":2.226213,"frequencies":[545,460,482,469,361,319,340,320,261,281,222,218,213,218,267,312,286,271,258,253,240,276,326,303,219,172,219,303,326,276,240,253,258,271,286,312,267,218,213,218,222,281,261,320,340,319,361,469,482,460,545]},{"frame":277,"timestamp":2.262563,"frequencies":[548,475,443,471,392,392,404,319,274,266,242,279,264,319,337,340,331,324,284,272,269,308,344,320,207,170,207,320,344,308,269,272,284,324,331,340,337,319,264,279,242,266,274,319,404,392,392,471,443,475,548]},{"frame":281,"timestamp":2.295517,"frequencies":[590,513,433,493,398,431,410,319,331,355,319,312,361,357,329,335,322,333,342,326,324,326,353,310,254,292,254,310,353,326,324,326,342,333,322,335,329,357,361,312,319,355,331,319,410,431,398,493,433,513,590]},{"frame":285,"timestamp":2.3278,"frequencies":[598,497,464,452,416,460,443,331,371,408,386,326,348,344,353,310,328,329,324,335,335,335,382,320,254,266,254,320,382,335,335,335,324,329,328,310,353,344,348,326,386,408,371,331,443,460,416,452,464,497,598]},{"frame":289,"timestamp":2.359728,"frequencies":[650,493,443,402,380,456,515,328,406,428,400,344,363,353,339,322,320,355,361,328,303,301,352,289,230,253,230,289,352,301,303,328,361,355,320,322,339,353,363,344,400,428,406,328,515,456,380,402,443,493,650]},{"frame":293,"timestamp":2.394689,"frequencies":[618,464,424,402,355,477,522,326,394,458,384,342,346,369,365,324,329,357,324,294,294,281,324,277,196,228,196,277,324,281,294,294,324,357,329,324,365,369,346,342,384,458,394,326,522,477,355,402,424,464,618]},{"frame":297,"timestamp":2.427986,"frequencies":[588,452,388,386,353,439,497,346,348,428,350,296,324,374,386,328,294,344,303,287,306,298,292,254,250,262,250,254,292,298,306,287,303,344,294,328,386,374,324,296,350,428,348,346,497,439,353,386,388,452,588]},{"frame":301,"timestamp":2.461315,"frequencies":[524,431,328,337,317,376,428,312,305,372,306,306,299,319,337,306,254,284,272,277,292,312,267,266,274,253,274,266,267,312,292,277,272,284,254,306,337,319,299,306,306,372,305,312,428,376,317,337,328,431,524]},{"frame":305,"timestamp":2.493243,"frequencies":[569,435,306,292,271,331,365,271,261,329,286,264,253,282,281,272,237,253,245,269,277,326,357,359,340,328,340,359,357,326,277,269,245,253,237,272,281,282,253,264,286,329,261,271,365,331,271,292,306,435,569]},{"frame":309,"timestamp":2.528823,"frequencies":[520,398,289,246,269,329,340,274,264,310,256,230,234,261,259,236,227,230,259,274,286,313,384,361,340,284,340,361,384,313,286,274,259,230,227,236,259,261,234,230,256,310,264,274,340,329,269,246,289,398,520]},{"frame":313,"timestamp":2.562461,"frequencies":[534,437,320,305,392,396,350,363,299,319,292,348,296,274,282,237,218,267,272,274,276,319,348,326,286,242,286,326,348,319,276,274,272,267,218,237,282,274,296,348,292,319,299,363,350,396,392,3
25205,320,437,534]},{"frame":317,"timestamp":2.59483,"frequencies":[595,464,357,294,462,462,346,320,350,352,320,374,335,299,326,271,271,315,261,284,277,284,319,284,259,243,259,284,319,284,277,284,261,315,271,271,326,299,335,374,320,352,350,320,346,462,462,294,357,464,595]},{"frame":321,"timestamp":2.626757,"frequencies":[608,464,369,306,441,449,396,324,392,372,319,331,313,256,317,312,305,324,262,253,258,287,292,261,248,227,248,261,292,287,258,253,262,324,305,312,317,256,313,331,319,372,392,324,396,449,441,306,369,464,608]},{"frame":325,"timestamp":2.662554,"frequencies":[600,454,315,277,359,398,376,277,333,346,303,271,308,259,287,286,264,269,222,224,237,246,266,251,253,228,253,251,266,246,237,224,222,269,264,286,287,259,308,271,303,346,333,277,376,398,359,277,315,454,600]},{"frame":329,"timestamp":2.695961,"frequencies":[590,431,279,245,319,357,329,267,281,287,248,231,248,234,237,240,224,228,196,174,193,213,228,233,206,182,206,233,228,213,193,174,196,228,224,240,237,234,248,231,248,287,281,267,329,357,319,245,279,431,590]},{"frame":333,"timestamp":2.728345,"frequencies":[552,380,245,218,326,333,282,236,242,256,213,251,224,202,224,210,193,181,172,169,176,209,218,190,160,145,160,190,218,209,176,169,172,181,193,210,224,202,224,251,213,256,242,236,282,333,326,218,245,380,552]},{"frame":337,"timestamp":2.760272,"frequencies":[543,380,254,261,350,342,256,210,234,245,213,240,222,192,192,203,195,173,169,145,163,182,193,173,178,169,178,173,193,182,163,145,169,173,195,203,192,192,222,240,213,245,234,210,256,342,350,261,254,380,543]},{"frame":341,"timestamp":2.795546,"frequencies":[504,374,274,289,363,324,269,178,203,234,212,212,196,181,184,218,188,177,149,153,185,203,176,170,199,174,199,170,176,203,185,153,149,177,188,218,184,181,196,212,212,234,203,178,269,324,363,289,274,374,504]},{"frame":345,"timestamp":2.829543,"frequencies":[509,511,371,386,464,388,346,233,227,250,225,213,218,209,190,206,192,230,218,240,272,315,248,233,253,213,253,233,248,315,272,240,218,230,192,206,190,209,218,213,225,250,227,233,346,388,464,386,371,511,509]},{"frame":349,"timestamp":2.861859,"frequencies":[650,527,400,404,462,410,344,359,355,237,228,271,287,248,219,261,279,279,262,282,267,277,282,274,266,242,266,274,282,277,267,282,262,279,279,261,219,248,287,271,228,237,355,359,344,410,462,404,400,527,650]},{"frame":353,"timestamp":2.893787,"frequencies":[650,502,392,420,497,431,340,328,353,248,225,259,277,221,199,227,253,259,253,253,221,233,231,231,231,225,231,231,231,233,221,253,253,259,253,227,199,221,277,259,225,248,353,328,340,431,497,420,392,502,650]},{"frame":357,"timestamp":2.929522,"frequencies":[650,500,441,467,471,445,359,353,424,284,234,250,303,195,181,233,258,246,254,272,206,200,195,186,190,196,190,186,195,200,206,272,254,246,258,233,181,195,303,250,234,284,424,353,359,445,471,467,441,500,650]},{"frame":361,"timestamp":2.962494,"frequencies":[650,471,414,441,464,477,396,363,404,320,259,259,292,164,159,206,250,237,221,222,193,180,169,148,165,174,165,148,169,180,193,222,221,237,250,206,159,164,292,259,259,320,404,363,396,477,464,441,414,471,650]},{"frame":365,"timestamp":2.995374,"frequencies":[648,445,384,390,424,477,433,342,346,310,242,231,262,190,169,213,213,190,207,213,189,155,172,138,139,148,139,138,172,155,189,213,207,190,213,213,169,190,262,231,242,310,346,342,433,477,424,390,384,445,648]},{"frame":369,"timestamp":3.027302,"frequencies":[638,416,328,339,374,439,372,299,317,271,202,216,218,172,143,180,182,174,180,190,160,143,139,124,120,118,120,124,139,143,160,190,180,174,182,180,143,172,218,216,202,271,317,299,372,439,374,339,328,416,638]},{"frame":373,"timestamp":3.060398,"frequencies":[628,398,310,310,322,382,317,264,291,231,178,178,188,143,127,155,164,160,146,156,135,102,96,100,92,97,92,100,96,102,135,156,146,160,164,155,127,143,188,178,178,231,291,264,317,382,322,310,310,398,628]},{"frame":377,"timestamp":3.093354,"frequencies":[595,418,301,312,340,371,298,261,277,209,161,156,169,138,138,140,138,164,151,169,138,124,172,144,113,112,113,144,172,124,138,169,151,164,138,140,138,138,169,156,161,209,277,261,298,371,340,312,301,418,595]},{"frame":381,"timestamp":3.128889,"frequencies":[574,469,326,281,306,382,388,317,264,267,212,225,225,202,251,272,231,242,206,206,199,188,182,150,172,149,172,150,182,188,199,206,206,242,231,272,251,202,225,225,212,267,264,317,388,382,306,281,326,469,574]},{"frame":385,"timestamp":3.160816,"frequencies":[569,497,353,279,319,477,471,337,348,376,242,245,250,243,306,315,246,225,209,215,207,182,166,193,177,196,177,193,166,182,207,215,209,225,246,315,306,243,250,245,242,376,348,337,471,477,319,279,353,497,569]},{"frame":389,"timestamp":3.193638,"frequencies":[633,534,382,324,353,497,435,319,320,418,292,261,246,231,284,271,245,237,215,209,203,160,145,185,173,161,173,185,145,160,203,209,215,237,245,271,284,231,246,261,292,418,320,319,435,497,353,324,382,534,633]},{"frame":393,"timestamp":3.227159,"frequencies":[559,475,328,279,361,581,431,294,271,390,258,224,227,237,242,254,218,242,236,219,193,144,144,182,196,150,196,182,144,144,193,219,236,242,218,254,242,237,227,224,258,390,271,294,431,581,361,279,328,475,559]},{"frame":397,"timestamp":3.259501,"frequencies":[518,431,310,289,371,578,422,303,267,382,233,188,224,216,224,212,221,224,204,195,178,132,163,186,168,144,168,186,163,132,178,195,204,224,221,212,224,216,224,188,233,382,267,303,422,578,371,289,310,431,518]},{"frame":401,"timestamp":3.291429,"frequencies":[522,441,340,281,344,541,396,289,258,376,239,207,199,192,219,189,200,206,189,172,153,131,180,159,136,121,136,159,180,131,153,172,189,206,200,189,219,192,199,207,239,376,258,289,396,541,344,281,340,441,522]},{"frame":405,"timestamp":3.327203,"frequencies":[495,412,310,256,303,477,353,240,234,333,216,199,185,188,224,190,212,185,155,144,136,123,174,190,114,103,114,190,174,123,136,144,155,185,212,190,224,188,185,199,216,333,234,240,353,477,303,256,310,412,495]},{"frame":409,"timestamp":3.361088,"frequencies":[488,380,266,234,269,433,319,219,192,294,196,189,182,182,200,163,169,159,144,133,118,94,139,158,114,96,114,158,139,94,118,133,144,159,169,163,200,182,182,189,196,294,192,219,319,433,269,234,266,380,488]},{"frame":413,"timestamp":3.393016,"frequencies":[555,408,243,206,296,410,291,222,173,245,196,209,202,204,177,144,148,135,138,114,81,76,113,129,107,101,107,129,113,76,81,114,138,135,148,144,177,204,202,209,196,245,173,222,291,410,296,206,243,408,555]},{"frame":417,"timestamp":3.424943,"frequencies":[600,464,378,371,422,447,357,365,319,365,416,326,342,320,359,326,350,346,284,272,299,213,289,234,209,248,209,234,289,213,299,272,284,346,350,326,359,320,342,326,416,365,319,365,357,447,422,371,378,464,600]},{"frame":421,"timestamp":3.460456,"frequencies":[645,500,433,369,435,473,408,406,335,410,410,435,359,371,378,337,355,352,279,322,342,308,279,284,240,266,240,284,279,308,342,322,279,352,355,337,378,371,359,435,410,410,335,406,408,473,435,369,433,500,645]},{"frame":425,"timestamp":3.493996,"frequencies":[552,502,408,355,437,437,412,380,329,404,394,422,344,359,371,329,335,319,279,291,329,291,282,299,250,271,250,299,282,291,329,291,279,319,335,329,371,359,344,422,394,404,329,380,412,437,437,355,408,502,552]},{"frame":429,"timestamp":3.526531,"frequencies":[495,486,398,344,398,380,384,329,315,361,344,388,326,335,363,352,326,315,291,308,312,298,267,292,272,258,272,292,267,298,312,308,291,315,326,352,363,335,326,388,344,361,315,329,384,380,398,344,398,486,495]},{"frame":433,"timestamp":3.558458,"frequencies":[550,473,371,315,337,344,337,296,287,305,291,357,301,315,326,329,284,291,284,291,291,284,253,251,250,248,250,251,253,284,291,291,284,291,284,329,326,315,301,357,291,305,287,296,337,344,337,315,371,473,550]},{"frame":437,"timestamp":3.594254,"frequencies":[552,458,344,296,326,331,339,313,272,281,310,331,286,281,292,305,282,286,287,279,277,276,284,292,305,277,305,292,284,276,277,279,287,286,282,305,292,281,286,331,310,281,272,313,339,331,326,296,344,458,552]},{"frame":441,"timestamp":3.62674,"frequencies":[531,456,331,254,291,299,291,267,246,253,277,312,276,269,272,272,259,281,319,313,308,306,320,299,312,299,312,299,320,306,308,313,319,281,259,272,272,269,276,312,277,253,246,267,291,299,291,254,331,456,531]},{"frame":445,"timestamp":3.660045,"frequencies":[564,447,287,248,305,292,262,246,239,227,269,272,231,227,233,219,245,258,303,272,269,274,277,282,313,305,313,282,277,274,269,272,303,258,245,219,233,227,231,272,269,227,239,246,262,292,305,248,287,447,564]},{"frame":449,"timestamp":3.691973,"frequencies":[583,443,261,239,286,272,251,224,224,216,233,242,212,221,230,239,204,219,242,250,225,236,234,245,262,243,262,245,234,236,225,250,242,219,204,239,230,221,212,242,233,216,224,224,251,272,286,239,261,443,583]},{"frame":453,"timestamp":3.727815,"frequencies":[586,475,308,250,299,376,384,346,251,284,237,234,228,242,251,245,184,218,243,228,210,230,219,250,228,204,228,250,219,230,210,228,243,218,184,245,251,242,228,234,237,284,251,346,384,376,299,250,308,475,586]},{"frame":457,"timestamp":3.761097,"frequencies":[557,545,396,267,320,428,454,406,312,315,266,317,299,287,277,284,221,225,239,267,225,228,221,234,240,236,240,234,221,228,225,267,239,225,221,284,277,287,299,317,266,315,312,406,454,428,320,267,396,545,557]},{"frame":461,"timestamp":3.79335,"frequencies":[578,518,484,361,350,449,426,382,369,308,296,331,319,326,289,261,234,243,237,250,258,219,212,228,239,243,239,228,212,219,258,250,237,243,234,261,289,326,319,331,296,308,369,382,426,449,350,361,484,518,578]},{"frame":465,"timestamp":3.825488,"frequencies":[586,506,576,374,416,420,418,396,361,310,284,329,298,333,276,266,225,259,246,245,250,209,177,200,195,193,195,200,177,209,250,245,246,259,225,266,276,333,298,329,284,310,361,396,418,420,416,374,576,506,586]},{"frame":469,"timestamp":3.861176,"frequencies":[590,458,506,404,445,408,384,424,353,308,301,344,319,312,251,243,224,245,245,246,216,176,145,185,161,166,161,185,145,176,216,246,245,245,224,243,251,312,319,344,301,308,353,424,384,408,445,404,506,458,590]},{"frame":473,"timestamp":3.894476,"frequencies":[586,422,426,404,462,416,369,428,359,305,317,369,372,329,222,240,243,259,250,237,213,176,155,166,142,151,142,166,155,176,213,237,250,259,243,240,222,329,372,369,317,305,359,428,369,416,462,404,426,422,586]},{"frame":477,"timestamp":3.927075,"frequencies":[588,449,428,460,515,418,386,437,344,299,322,367,371,359,221,225,253,258,230,23
2521,188,148,137,137,149,139,149,137,137,148,188,231,230,258,253,225,221,359,371,367,322,299,344,437,386,418,515,460,428,449,588]},{"frame":481,"timestamp":3.959002,"frequencies":[562,414,435,433,515,435,380,396,312,274,301,329,348,324,212,228,242,256,213,218,177,151,136,132,137,129,137,132,136,151,177,218,213,256,242,228,212,324,348,329,301,274,312,396,380,435,515,433,435,414,562]},{"frame":485,"timestamp":3.994811,"frequencies":[493,404,435,420,484,433,390,447,329,335,324,357,344,319,264,303,296,277,231,291,228,225,203,222,184,153,184,222,203,225,228,291,231,277,296,303,264,319,344,357,324,335,329,447,390,433,484,420,435,404,493]},{"frame":489,"timestamp":4.02827,"frequencies":[650,422,408,486,513,386,394,412,371,331,305,350,357,308,259,286,279,279,253,274,239,224,227,231,236,215,236,231,227,224,239,274,253,279,279,286,259,308,357,350,305,331,371,412,394,386,513,486,408,422,650]},{"frame":493,"timestamp":4.06059,"frequencies":[650,424,394,462,495,371,400,404,340,303,312,352,365,322,256,266,266,251,233,233,216,192,190,230,248,239,248,230,190,192,216,233,233,251,266,266,256,322,365,352,312,303,340,404,400,371,495,462,394,424,650]},{"frame":497,"timestamp":4.092517,"frequencies":[650,445,398,522,504,412,420,412,363,317,328,340,335,308,251,250,239,225,225,200,184,178,176,182,209,193,209,182,176,178,184,200,225,225,239,250,251,308,335,340,328,317,363,412,420,412,504,522,398,445,650]},{"frame":501,"timestamp":4.128106,"frequencies":[643,410,378,486,477,398,410,424,344,310,313,322,344,329,269,248,231,219,215,182,153,153,158,155,176,173,176,155,158,153,153,182,215,219,231,248,269,329,344,322,313,310,344,424,410,398,477,486,378,410,643]},{"frame":505,"timestamp":4.1609,"frequencies":[640,416,348,437,443,420,420,424,329,269,310,337,342,305,253,239,236,216,180,177,148,130,139,148,142,149,142,148,139,130,148,177,180,216,236,239,253,305,342,337,310,269,329,424,420,420,443,437,348,416,640]},{"frame":509,"timestamp":4.194104,"frequencies":[630,416,346,416,433,394,404,424,333,281,313,324,317,296,259,237,213,197,164,180,144,122,131,133,118,133,118,133,131,122,144,180,164,197,213,237,259,296,317,324,313,281,333,424,404,394,433,416,346,416,630]},{"frame":513,"timestamp":4.229967,"frequencies":[615,426,367,491,518,378,378,386,350,277,299,308,317,303,284,274,221,222,199,192,142,101,124,150,136,113,136,150,124,101,142,192,199,222,221,274,284,303,317,308,299,277,350,386,378,378,518,491,367,426,615]},{"frame":517,"timestamp":4.262227,"frequencies":[635,441,414,538,518,382,400,416,352,292,298,320,313,305,287,271,231,219,176,168,139,96,122,136,130,85,130,136,122,96,139,168,176,219,231,271,287,305,313,320,298,292,352,416,400,382,518,538,414,441,635]},{"frame":521,"timestamp":4.294346,"frequencies":[605,484,420,504,471,420,469,456,384,298,335,346,324,296,261,261,253,213,174,174,139,110,144,168,116,105,116,168,144,110,139,174,174,213,253,261,261,296,324,346,335,298,384,456,469,420,471,504,420,484,605]},{"frame":525,"timestamp":4.327619,"frequencies":[618,493,414,497,491,418,456,456,422,388,371,335,326,333,251,267,246,210,156,184,165,155,200,209,160,153,160,209,200,155,165,184,156,210,246,267,251,333,326,335,371,388,422,456,456,418,491,497,414,493,618]},{"frame":529,"timestamp":4.359546,"frequencies":[643,531,414,493,484,471,458,452,435,384,357,328,296,298,219,251,228,188,182,166,174,168,199,206,163,148,163,206,199,168,174,166,182,188,228,251,219,298,296,328,357,384,435,452,458,471,484,493,414,531,643]},{"frame":533,"timestamp":4.395574,"frequencies":[615,534,452,500,486,462,447,441,433,369,359,346,340,305,264,258,222,210,153,138,154,140,185,188,153,158,153,188,185,140,154,138,153,210,222,258,264,305,340,346,359,369,433,441,447,462,486,500,452,534,615]},{"frame":537,"timestamp":4.428792,"frequencies":[640,529,406,475,456,406,420,467,414,333,324,344,326,298,256,267,236,239,140,143,145,139,182,178,158,151,158,178,182,139,145,143,140,239,236,267,256,298,326,344,324,333,414,467,420,406,456,475,406,529,640]},{"frame":541,"timestamp":4.461134,"frequencies":[630,529,376,477,484,418,416,424,344,294,315,319,326,298,231,267,213,216,144,148,117,125,182,170,173,159,173,170,182,125,117,148,144,216,213,267,231,298,326,319,315,294,344,424,416,418,484,477,376,529,630]},{"frame":545,"timestamp":4.493061,"frequencies":[618,502,402,473,449,410,447,428,335,286,287,294,337,276,261,259,207,218,149,140,101,108,173,202,166,150,166,202,173,108,101,140,149,218,207,259,261,276,337,294,287,286,335,428,447,410,449,473,402,502,618]},{"frame":549,"timestamp":4.52907,"frequencies":[618,477,426,441,435,394,408,416,324,269,301,308,328,279,258,254,195,200,148,130,105,99,176,215,177,165,177,215,176,99,105,130,148,200,195,254,258,279,328,308,301,269,324,416,408,394,435,441,426,477,618]},{"frame":553,"timestamp":4.562445,"frequencies":[630,462,458,475,488,400,384,420,326,254,286,305,308,261,250,264,196,204,153,138,128,138,203,207,178,155,178,207,203,138,128,138,153,204,196,264,250,261,308,305,286,254,326,420,384,400,488,475,458,462,630]},{"frame":557,"timestamp":4.594536,"frequencies":[643,471,495,477,502,406,402,380,388,363,342,355,306,312,361,324,310,326,267,224,195,182,215,216,221,234,221,216,215,182,195,224,267,326,310,324,361,312,306,355,342,363,388,380,402,406,502,477,495,471,643]},{"frame":561,"timestamp":4.626576,"frequencies":[638,495,527,486,511,431,439,433,414,384,369,374,340,333,335,328,331,315,277,274,224,192,234,261,254,254,254,261,234,192,224,274,277,315,331,328,335,333,340,374,369,384,414,433,439,431,511,486,527,495,638]},{"frame":565,"timestamp":4.662567,"frequencies":[615,491,541,469,497,398,437,416,424,365,340,363,352,333,329,294,324,340,267,276,256,227,242,261,227,243,227,261,242,227,256,276,267,340,324,294,329,333,352,363,340,365,424,416,437,398,497,469,541,491,615]},{"frame":569,"timestamp":4.695438,"frequencies":[650,513,506,447,473,418,420,420,414,376,344,363,350,317,340,335,320,312,301,271,228,209,228,239,202,228,202,239,228,209,228,271,301,312,320,335,340,317,350,363,344,376,414,420,420,418,473,447,506,513,650]}
252,{"frame":573,"timestamp":4.728163,"frequencies":[640,518,506,454,456,402,410,376,374,339,350,333,312,324,329,299,301,296,261,246,225,216,228,227,204,193,204,227,228,216,225,246,261,296,301,299,329,324,312,333,350,339,374,376,410,402,456,454,506,518,640]},{"frame":577,"timestamp":4.760091,"frequencies":[650,524,531,437,454,355,355,355,342,303,326,317,301,306,299,298,301,298,258,236,219,203,221,216,178,163,178,216,221,203,219,236,258,298,301,298,299,306,301,317,326,303,342,355,355,355,454,437,531,524,650]},{"frame":581,"timestamp":4.795951,"frequencies":[650,513,500,445,471,331,319,339,317,281,267,267,258,267,281,279,284,271,272,215,190,173,196,199,153,150,153,199,196,173,190,215,272,271,284,279,281,267,258,267,267,281,317,339,319,331,471,445,500,513,650]},{"frame":585,"timestamp":4.82912,"frequencies":[650,524,531,452,477,392,353,369,312,271,258,258,246,269,258,269,264,243,239,189,170,164,192,213,148,137,148,213,192,164,170,189,239,243,264,269,258,269,246,258,258,271,312,369,353,392,477,452,531,524,650]},{"frame":589,"timestamp":4.861678,"frequencies":[650,504,500,410,454,386,361,372,310,274,258,258,253,231,243,254,264,225,218,195,170,148,173,169,139,136,139,169,173,148,170,195,218,225,264,254,243,231,253,258,258,274,310,372,361,386,454,410,500,504,650]},{"frame":593,"timestamp":4.893605,"frequencies":[645,486,445,380,515,420,374,355,355,294,284,284,286,269,243,271,240,210,206,188,172,161,170,176,158,140,158,176,170,161,172,188,206,210,240,271,243,269,286,284,284,294,355,355,374,420,515,380,445,486,645]},{"frame":597,"timestamp":4.929403,"frequencies":[638,545,447,458,538,420,372,384,371,355,342,296,291,267,274,298,239,227,225,195,185,182,186,181,159,165,159,181,186,182,185,195,225,227,239,298,274,267,291,296,342,355,371,384,372,420,538,458,447,545,638]},{"frame":601,"timestamp":4.962579,"frequencies":[645,552,520,462,529,418,394,410,372,340,322,287,266,261,250,281,228,202,202,180,174,185,185,186,180,172,180,186,185,185,174,180,202,202,228,281,250,261,266,287,322,340,372,410,394,418,529,462,520,552,645]},{"frame":605,"timestamp":4.995193,"frequencies":[625,545,557,449,515,426,416,400,361,329,284,274,250,258,213,242,218,218,188,161,160,156,180,184,203,222,203,184,180,156,160,161,188,218,218,242,213,258,250,274,284,329,361,400,416,426,515,449,557,545,625]},{"frame":609,"timestamp":5.02712,"frequencies":[640,536,477,406,529,422,374,352,335,301,259,256,236,227,196,234,233,206,181,169,159,139,154,178,197,199,197,178,154,139,159,169,181,206,233,234,196,227,236,256,259,301,335,352,374,422,529,406,477,536,640]},{"frame":613,"timestamp":5.063026,"frequencies":[650,529,420,384,518,467,396,348,322,284,242,239,239,218,218,246,225,184,173,169,136,131,158,174,166,164,166,174,158,131,136,169,173,184,225,246,218,218,239,239,242,284,322,348,396,467,518,384,420,529,650]},{"frame":617,"timestamp":5.096043,"frequencies":[650,504,437,355,443,404,353,292,303,267,222,221,200,219,207,237,207,174,165,156,135,121,124,145,130,123,130,145,124,121,135,156,165,174,207,237,207,219,200,221,222,267,303,292,353,404,443,355,437,504,650]},{"frame":621,"timestamp":5.128707,"frequencies":[650,500,408,340,439,420,363,291,320,306,250,219,200,231,212,242,196,165,154,142,128,105,129,129,113,127,113,129,129,105,128,142,154,165,196,242,212,231,200,219,250,306,320,291,363,420,439,340,408,500,650]},{"frame":625,"timestamp":5.160635,"frequencies":[620,504,456,374,408,473,410,346,361,340,291,261,215,231,199,210,182,181,153,159,145,150,154,139,123,122,123,139,154,150,145,159,153,181,182,210,199,231,215,261,291,340,361,346,410,473,408,374,456,504,620]},{"frame":629,"timestamp":5.192956,"frequencies":[650,538,431,353,388,473,456,420,422,352,350,322,296,291,258,251,227,219,227,225,213,215,228,219,210,135,210,219,228,215,213,225,227,219,227,251,258,291,296,322,350,352,422,420,456,473,388,353,431,538,650]},{"frame":633,"timestamp":5.227392,"frequencies":[650,548,428,340,348,437,435,404,416,331,329,331,298,274,259,243,227,212,253,262,222,228,251,204,212,213,212,204,251,228,222,262,253,212,227,243,259,274,298,331,329,331,416,404,435,437,348,340,428,548,650]},{"frame":637,"timestamp":5.262222,"frequencies":[650,518,386,324,374,424,416,378,406,346,331,326,294,303,240,239,215,188,230,221,181,204,242,193,206,195,206,193,242,204,181,221,230,188,215,239,240,303,294,326,331,346,406,378,416,424,374,324,386,518,650]},{"frame":641,"timestamp":5.29415,"frequencies":[650,552,394,329,359,408,435,408,422,355,344,329,306,281,242,227,196,197,195,202,204,189,218,206,181,169,181,206,218,189,204,202,195,
252197,196,227,242,281,306,329,344,355,422,408,435,408,359,329,394,552,650]},{"frame":645,"timestamp":5.327026,"frequencies":[650,509,372,331,365,426,435,408,396,382,346,333,298,246,224,207,189,227,199,192,210,189,215,193,176,146,176,193,215,189,210,192,199,227,189,207,224,246,298,333,346,382,396,408,435,426,365,331,372,509,650]},{"frame":649,"timestamp":5.360289,"frequencies":[643,513,369,331,371,439,480,449,404,361,322,328,337,250,240,212,180,190,197,185,230,219,219,196,158,118,158,196,219,219,230,185,197,190,180,212,240,250,337,328,322,361,404,449,480,439,371,331,369,513,643]},{"frame":653,"timestamp":5.392834,"frequencies":[620,511,392,369,344,396,482,422,433,388,305,313,308,258,222,219,178,176,181,195,218,199,193,212,195,130,195,212,193,199,218,195,181,176,178,219,222,258,308,313,305,388,433,422,482,396,344,369,392,511,620]},{"frame":657,"timestamp":5.424762,"frequencies":[613,506,371,357,346,380,460,422,406,376,303,296,306,253,221,206,182,169,178,192,227,178,184,188,190,153,190,188,184,178,227,192,178,169,182,206,221,253,306,296,303,376,406,422,460,380,346,357,371,506,613]},{"frame":661,"timestamp":5.460639,"frequencies":[623,491,353,363,363,382,447,390,408,371,284,303,289,272,206,181,195,172,173,190,212,173,168,181,176,139,176,181,168,173,212,190,173,172,195,181,206,272,289,303,284,371,408,390,447,382,363,363,353,491,623]},{"frame":665,"timestamp":5.493868,"frequencies":[610,500,382,355,372,412,475,388,369,340,317,319,292,279,195,169,164,159,150,169,178,188,197,184,172,136,172,184,197,188,178,169,150,159,164,169,195,279,292,319,317,340,369,388,475,412,372,355,382,500,610]},{"frame":669,"timestamp":5.526349,"frequencies":[643,488,380,380,376,408,449,394,369,353,322,315,342,279,199,168,176,172,169,164,184,176,212,174,182,150,182,174,212,176,184,164,169,172,176,168,199,279,342,315,322,353,369,394,449,408,376,380,380,488,643]},{"frame":673,"timestamp":5.558277,"frequencies":[605,469,348,329,369,398,422,380,396,355,305,298,340,267,184,172,158,165,156,160,181,172,173,165,164,156,164,165,173,172,181,160,156,165,158,172,184,267,340,298,305,355,396,380,422,398,369,329,348,469,605]},{"frame":677,"timestamp":5.594272,"frequencies":[541,500,372,346,361,422,439,420,431,378,312,262,296,286,164,138,156,163,150,148,169,153,143,153,136,137,136,153,143,153,169,148,150,163,156,138,164,286,296,262,312,378,431,420,439,422,361,346,372,500,541]},{"frame":681,"timestamp":5.627937,"frequencies":[500,482,367,335,357,412,424,422,406,361,298,272,301,279,165,156,153,153,125,127,148,135,142,137,118,106,118,137,142,135,148,127,125,153,153,156,165,279,301,272,298,361,406,422,424,412,357,335,367,482,500]},{"frame":685,"timestamp":5.659864,"frequencies":[555,486,361,322,380,408,443,428,400,361,313,272,299,272,173,145,150,139,106,102,142,137,146,130,105,95,105,130,146,137,142,102,106,139,150,145,173,272,299,272,313,361,400,428,443,408,380,322,361,486,555]},{"frame":689,"timestamp":5.691791,"frequencies":[566,500,365,353,402,371,441,408,412,372,298,269,299,256,166,142,128,149,102,101,125,127,136,123,98,70,98,123,136,127,125,101,102,149,128,142,166,256,299,269,298,372,412,408,441,371,402,353,365,500,566]},{"frame":693,"timestamp":5.727823,"frequencies":[559,536,374,346,367,335,410,406,426,372,276,284,317,262,160,148,123,153,100,103,139,129,117,121,118,89,118,121,117,129,139,103,100,153,123,148,160,262,317,284,276,372,426,406,410,335,367,346,374,536,559]},{"frame":697,"timestamp":5.760795,"frequencies":[586,576,414,337,374,386,441,404,447,390,319,282,335,298,282,259,237,224,193,169,195,224,193,160,227,184,227,160,193,224,195,169,193,224,237,259,282,298,335,282,319,390,447,404,441,386,374,337,414,576,586]},{"frame":701,"timestamp":5.793379,"frequencies":[625,600,412,352,398,416,445,374,378,353,329,306,355,320,289,289,305,287,250,262,269,258,219,230,272,259,272,230,219,258,269,262,250,287,305,289,289,320,355,306,329,353,378,374,445,416,398,352,412,600,625]},{"frame":705,"timestamp":5.825306,"frequencies":[650,603,431,369,388,431,441,361,376,335,340,335,353,337,296,303,328,320,284,281,264,237,225,225,274,225,274,225,225,237,264,281,284,320,328,303,296,337,353,335,340,335,376,361,441,431,388,369,431,603,650]},{"frame":709,"timestamp":5.860241,"frequencies":[650,578,412,363,365,402,422,363,363,371,329,326,344,353,312,310,312,296,246,276,237,210,200,218,251,216,251,218,200,210,237,276,246,296,312,310,312,353,344,326,329,371,363,363,422,402,365,363,412,578,650]},{"frame":713,"timestamp":5.894575,"frequencies":[650,524,342,320,346,365,400,361,333,339,322,315,319,342,296,308,326,310,272,264,210,228,195,196,213,181,213,196,195,228,210,264,272,310,326,308,296,342,319,3
25215,322,339,333,361,400,365,346,320,342,524,650]},{"frame":717,"timestamp":5.926893,"frequencies":[615,500,312,282,310,306,333,313,326,317,281,277,274,291,299,301,299,276,276,250,239,200,182,184,193,165,193,184,182,200,239,250,276,276,299,301,299,291,274,277,281,317,326,313,333,306,310,282,312,500,615]},{"frame":721,"timestamp":5.958821,"frequencies":[590,484,292,267,286,276,298,276,282,289,266,262,269,287,281,276,266,245,248,224,209,186,168,155,153,144,153,155,168,186,209,224,248,245,266,276,281,287,269,262,266,289,282,276,298,276,286,267,292,484,590]},{"frame":725,"timestamp":5.994671,"frequencies":[527,447,286,248,271,254,291,243,253,261,246,234,243,245,233,256,243,251,242,218,196,163,142,130,127,125,127,130,142,163,196,218,242,251,243,256,233,245,243,234,246,261,253,243,291,254,271,248,286,447,527]},{"frame":729,"timestamp":6.027167,"frequencies":[531,439,301,234,281,236,267,248,245,243,230,219,213,240,231,225,219,243,230,188,181,136,142,124,120,103,120,124,142,136,181,188,230,243,219,225,231,240,213,219,230,243,245,248,267,236,281,234,301,439,531]},{"frame":733,"timestamp":6.060408,"frequencies":[531,464,296,242,267,301,329,317,328,292,269,230,215,213,227,227,188,199,209,181,165,114,114,116,104,94,104,116,114,114,165,181,209,199,188,227,227,213,215,230,269,292,328,317,329,301,267,242,296,464,531]},{"frame":737,"timestamp":6.092336,"frequencies":[603,441,322,310,320,355,390,371,342,287,269,272,284,262,234,239,197,210,197,170,168,111,139,138,139,122,139,138,139,111,168,170,197,210,197,239,234,262,284,272,269,287,342,371,390,355,320,310,322,441,603]},{"frame":741,"timestamp":6.128184,"frequencies":[586,469,353,367,326,406,418,394,355,337,294,251,277,274,228,222,206,185,192,186,153,136,159,160,151,133,151,160,159,136,153,186,192,185,206,222,228,274,277,251,294,337,355,394,418,406,326,367,353,469,586]},{"frame":745,"timestamp":6.161659,"frequencies":[586,491,342,326,322,392,406,374,361,344,286,272,294,276,204,207,218,182,181,165,158,170,158,150,136,149,136,150,158,170,158,165,181,182,218,207,204,276,294,272,286,344,361,374,406,392,322,326,342,491,586]},{"frame":749,"timestamp":6.193923,"frequencies":[625,497,326,319,335,376,402,346,359,326,298,239,266,253,200,164,192,182,169,164,144,131,119,129,132,137,132,129,119,131,144,164,169,182,192,164,200,253,266,239,298,326,359,346,402,376,335,319,326,497,625]},{"frame":753,"timestamp":6.22585,"frequencies":[593,493,301,284,294,313,340,315,299,281,243,189,215,216,184,153,200,181,178,158,129,121,108,99,102,113,102,99,108,121,129,158,178,181,200,153,184,216,215,189,243,281,299,315,340,313,294,284,301,493,593]},{"frame":757,"timestamp":6.261795,"frequencies":[595,502,264,266,267,287,324,287,267,246,204,195,193,204,180,181,204,178,151,132,127,119,105,91,89,88,89,91,105,119,127,132,151,178,204,181,180,204,193,195,204,246,267,287,324,287,267,266,264,502,595]},{"frame":761,"timestamp":6.29406,"frequencies":[562,441,228,228,264,277,292,254,250,234,190,190,184,193,161,177,200,181,161,135,108,93,79,77,86,77,86,77,79,93,108,135,161,181,200,177,161,193,184,190,190,234,250,254,292,277,264,228,228,441,562]},{"frame":765,"timestamp":6.327438,"frequencies":[590,435,210,224,218,248,282,237,216,212,164,151,160,168,170,165,180,145,135,131,99,75,78,65,66,54,66,65,78,75,99,131,135,145,180,165,170,168,160,151,164,212,216,237,282,248,218,224,210,435,590]},{"frame":769,"timestamp":6.362631,"frequencies":[650,460,317,289,292,308,367,303,355,292,236,225,254,236,196,189,210,173,188,186,178,173,155,135,140,125,140,135,155,173,178,186,188,173,210,189,196,236,254,225,236,292,355,303,367,308,292,289,317,460,650]},{"frame":773,"timestamp":6.396735,"frequencies":[650,493,371,337,324,326,402,380,390,329,254,253,279,251,227,218,219,176,200,228,212,242,202,188,155,189,155,188,202,242,212,228,200,176,219,218,227,251,279,253,254,329,390,380,402,326,324,337,371,493,650]},{"frame":777,"timestamp":6.429025,"frequencies":[650,538,369,331,352,355,418,361,390,369,261,254,262,253,242,216,189,188,202,219,231,212,202,193,189,225,189,193,202,212,231,219,202,188,189,216,242,253,262,254,261,369,390,361,418,355,352,331,369,538,650]},{"frame":781,"timestamp":6.460952,"frequencies":[645,495,328,289,344,350,388,359,372,359,259,237,234,221,212,200,176,182,189,192,212,200,200,184,185,221,185,184,200,200,212,192,189,182,176,200,212,221,234,237,259,359,372,359,388,350,344,289,328,495,645]},{"frame":785,"timestamp":6.49288,"frequencies":[628,475,289,271,292,317,359,324,335,324,221,222,213,204,188,164,158,155,155,177,176,170,165,158,174,186,174,158,165,170,176,177,155,155,158,164,188,204,213,222,221,324,335,324,359,317,292,271,289,475,628]},{"frame":789,"timestamp":6.528063,"frequencies":[608,456,262,261,254,303,333,281,286,277,200,192,203,188,156,138,133,127,130,150,139,143,132,132,136,144,136,132,132,143,139,150,130,127,133,138,156,188,203,192,200,277,286,281,333,303,254,261,262,456,608]},{"frame":793,"timestamp":6.562342,"frequencies":[638,477,266,254,245,296,306,279,253,236,185,174,188,166,117,107,104,95,114,124,109,122,112,109,100,112,100,109,112,122,109,124,114,95,104,107,117,166,188,174,185,236,253,279,306,296,245,254,266,477,638]},{"frame":797,"timestamp":6.594467,"frequencies":[608,471,266,242,237,271,286,253,240,207,160,166,160,
252142,100,100,85,91,95,96,86,90,89,80,82,93,82,80,89,90,86,96,95,91,85,100,100,142,160,166,160,207,240,253,286,271,237,242,266,471,608]},{"frame":801,"timestamp":6.626395,"frequencies":[588,447,292,254,239,298,329,291,296,291,231,200,209,161,116,88,97,114,97,103,102,99,82,85,71,69,71,85,82,99,102,103,97,114,97,88,116,161,209,200,231,291,296,291,329,298,239,254,292,447,588]},{"frame":805,"timestamp":6.662148,"frequencies":[593,445,329,331,355,369,376,329,357,346,308,236,282,239,176,104,90,119,96,94,82,94,116,108,94,75,94,108,116,94,82,94,96,119,90,104,176,239,282,236,308,346,357,329,376,369,355,331,329,445,593]},{"frame":809,"timestamp":6.69534,"frequencies":[620,515,333,372,344,414,433,380,422,339,306,240,233,233,185,143,155,150,166,160,132,150,181,160,109,154,109,160,181,150,132,160,166,150,155,143,185,233,233,240,306,339,422,380,433,414,344,372,333,515,620]},{"frame":813,"timestamp":6.727982,"frequencies":[638,534,315,335,342,386,410,384,404,372,294,225,245,237,196,117,140,143,140,140,132,137,159,133,119,153,119,133,159,137,132,140,140,143,140,117,196,237,245,225,294,372,404,384,410,386,342,335,315,534,638]},{"frame":817,"timestamp":6.759909,"frequencies":[650,515,289,335,315,378,418,361,346,326,261,233,253,219,165,130,130,138,121,102,112,113,139,125,113,146,113,125,139,113,112,102,121,138,130,130,165,219,253,233,261,326,346,361,418,378,315,335,289,515,650]},{"frame":821,"timestamp":6.795869,"frequencies":[638,495,287,294,310,382,422,355,355,296,236,216,250,221,142,110,108,110,97,102,93,90,105,110,86,119,86,110,105,90,93,102,97,110,108,110,142,221,250,216,236,296,355,355,422,382,310,294,287,495,638]},{"frame":825,"timestamp":6.829569,"frequencies":[645,504,298,284,329,363,376,344,339,301,253,206,259,209,106,88,100,101,81,78,81,70,77,81,71,81,71,81,77,70,81,78,81,101,100,88,106,209,259,206,253,301,339,344,376,363,329,284,298,504,645]},{"frame":829,"timestamp":6.861497,"frequencies":[635,480,305,274,289,376,388,357,365,329,256,221,258,204,101,96,84,102,62,89,70,65,81,99,78,74,78,99,81,65,70,89,62,102,84,96,101,204,258,221,256,329,365,357,388,376,289,274,305,480,635]},{"frame":833,"timestamp":6.893424,"frequencies":[581,488,369,315,312,357,380,371,339,299,266,254,282,228,124,95,102,107,62,96,91,85,91,101,71,63,71,101,91,85,91,96,62,107,102,95,124,228,282,254,266,299,339,371,380,357,312,315,369,488,581]},{"frame":837,"timestamp":6.928535,"frequencies":[603,502,352,296,344,380,408,369,339,306,305,259,353,284,163,95,131,142,88,118,107,124,104,127,86,59,86,127,104,124,107,118,88,142,131,95,163,284,353,259,305,306,339,369,408,380,344,296,352,502,603]},{"frame":841,"timestamp":6.963084,"frequencies":[615,482,441,380,388,374,443,420,392,337,337,329,394,355,266,237,258,246,219,172,215,215,177,193,213,180,213,193,177,215,215,172,219,246,258,237,266,355,394,329,337,337,392,420,443,374,388,380,441,482,615]},{"frame":845,"timestamp":6.998595,"frequencies":[610,529,435,344,408,467,475,410,424,410,315,312,376,357,337,324,289,298,248,233,261,261,240,245,256,237,256,245,240,261,261,233,248,298,289,324,337,357,376,312,315,410,424,410,475,467,408,344,435,529,610]},{"frame":849,"timestamp":7.030702,"frequencies":[588,509,404,344,412,439,495,433,398,392,331,337,350,324,301,306,286,284,279,267,254,239,240,261,261,276,261,261,240,239,254,267,279,284,286,306,301,324,350,337,331,392,398,433,495,439,412,344,404,509,588]},{"frame":853,"timestamp":7.062314,"frequencies":[630,529,437,328,378,418,467,426,384,400,380,329,344,308,294,291,294,284,242,251,248,228,233,239,242,256,242,239,233,228,248,251,242,284,294,291,294,308,344,329,380,400,384,426,467,418,378,328,437,529,630]},{"frame":857,"timestamp":7.096453,"frequencies":[628,555,449,324,367,449,482,439,388,386,357,308,346,306,296,305,267,251,279,253,222,199,206,210,202,212,202,210,206,199,222,253,279,251,267,305,296,306,346,308,357,386,388,439,482,449,367,324,449,555,628]},{"frame":861,"timestamp":7.128526,"frequencies":[598,509,437,335,374,428,428,416,376,398,342,298,335,313,294,272,248,250,262,231,206,188,195,209,173,176,173,209,195,188,206,231,262,250,248,272,294,313,335,298,342,398,376,416,428,428,374,335,437,509,598]},{"frame":865,"timestamp":7.160454,"frequencies":[569,509,428,353,378,416,408,378,382,400,346,331,329,291,264,262,246,274,245,193,185,204,174,181,184,159,184,181,174,204,185,193,245,274,246,262,264,291,329,331,346,400,382,378,408,416,378,353,428,509,569]},{"frame":869,"timestamp":7.196386,"frequencies":[571,488,439,335,392,402,426,388,369,400,344,335,324,286,267,248,225,236,224,216,182,185,174,165,160,136,160,165,174,185,182,216,224,236,225,248,267,286,324,335,344,400,369,388,426,402,392,335,439,488,571]},{"frame":873,"timestamp":7.228905,"frequencies":[559,493,384,352,390,424,464,431,408,394,317,319,319,269,242,248,239,242,199,189,180,200,165,149,142,128,142,149,165,200,180,189,199,242,239,248,242,269,319,3
25219,317,394,408,431,464,424,390,352,384,493,559]},{"frame":877,"timestamp":7.262041,"frequencies":[562,509,378,329,382,394,435,418,390,404,310,312,298,258,224,216,215,209,189,178,170,169,145,156,137,119,137,156,145,169,170,178,189,209,215,216,224,258,298,312,310,404,390,418,435,394,382,329,378,509,562]},{"frame":881,"timestamp":7.293968,"frequencies":[548,482,371,319,422,437,454,424,396,376,313,292,320,254,230,216,210,212,225,186,195,212,168,195,196,184,196,195,168,212,195,186,225,212,210,216,230,254,320,292,313,376,396,424,454,437,422,319,371,482,548]},{"frame":885,"timestamp":7.327288,"frequencies":[564,520,382,310,420,433,441,422,363,352,337,310,319,274,227,207,210,203,192,155,172,207,178,197,186,165,186,197,178,207,172,155,192,203,210,207,227,274,319,310,337,352,363,422,441,433,420,310,382,520,564]},{"frame":889,"timestamp":7.360208,"frequencies":[574,527,361,312,414,452,471,418,357,340,322,306,315,269,196,189,213,192,164,168,173,168,161,168,161,149,161,168,161,168,173,168,164,192,213,189,196,269,315,306,322,340,357,418,471,452,414,312,361,527,574]},{"frame":893,"timestamp":7.395556,"frequencies":[620,495,335,322,369,452,475,388,371,355,326,294,310,312,203,181,212,186,139,156,148,156,151,168,145,133,145,168,151,156,148,156,139,186,212,181,203,312,310,294,326,355,371,388,475,452,369,322,335,495,620]},{"frame":897,"timestamp":7.427483,"frequencies":[578,513,361,329,342,412,431,372,380,359,306,289,299,284,189,182,193,174,146,148,140,149,132,148,133,101,133,148,132,149,140,148,146,174,193,182,189,284,299,289,306,359,380,372,431,412,342,329,361,513,578]},{"frame":901,"timestamp":7.460403,"frequencies":[583,515,365,328,337,418,435,369,353,357,298,262,305,237,160,158,172,170,142,145,117,145,121,148,109,75,109,148,121,145,117,145,142,170,172,158,160,237,305,262,298,357,353,369,435,418,337,328,365,515,583]},{"frame":905,"timestamp":7.493795,"frequencies":[578,500,363,329,326,384,477,456,380,337,294,294,333,267,173,150,166,155,153,138,132,132,114,135,118,82,118,135,114,132,132,138,153,155,166,150,173,267,333,294,294,337,380,456,477,384,326,329,363,500,578]},{"frame":909,"timestamp":7.526168,"frequencies":[581,559,380,319,305,404,473,433,386,329,305,277,329,286,184,146,164,131,130,150,117,125,140,140,110,83,110,140,140,125,117,150,130,131,164,146,184,286,329,277,305,329,386,433,473,404,305,319,380,559,581]},{"frame":913,"timestamp":7.558095,"frequencies":[650,564,369,301,374,420,445,394,365,331,312,287,303,284,233,239,219,199,243,248,193,188,219,218,180,177,180,218,219,188,193,248,243,199,219,239,233,284,303,287,312,331,365,394,445,420,374,301,369,564,650]},{"frame":917,"timestamp":7.593357,"frequencies":[650,557,359,331,350,431,480,412,348,317,287,286,284,258,234,221,181,177,239,213,177,190,215,224,206,189,206,224,215,190,177,213,239,177,181,221,234,258,284,286,287,317,348,412,480,431,350,331,359,557,650]},{"frame":921,"timestamp":7.627269,"frequencies":[650,545,402,331,310,376,458,396,367,308,277,276,292,259,195,188,172,160,203,196,188,207,204,222,203,209,203,222,204,207,188,196,203,160,172,188,195,259,292,276,277,308,367,396,458,376,310,331,402,545,650]},{"frame":925,"timestamp":7.659683,"frequencies":[650,552,380,328,328,392,460,398,374,328,276,271,281,279,178,156,190,173,176,188,163,161,188,193,177,185,177,193,188,161,163,188,176,173,190,156,178,279,281,271,276,328,374,398,460,392,328,328,380,552,650]},{"frame":929,"timestamp":7.69161,"frequencies":[650,581,394,331,339,402,477,394,386,335,284,267,271,245,158,163,195,166,164,169,165,145,166,174,159,159,159,174,166,145,165,169,164,166,195,163,158,245,271,267,284,335,386,394,477,402,339,331,394,581,650]},{"frame":933,"timestamp":7.726566,"frequencies":[603,550,378,329,363,384,456,388,402,369,286,274,317,245,160,150,160,145,131,133,135,144,146,156,132,124,132,156,146,144,135,133,131,145,160,150,160,245,317,274,286,369,402,388,456,384,363,329,378,550,603]},{"frame":937,"timestamp":7.76067,"frequencies":[595,536,371,346,369,390,454,400,367,365,301,284,286,246,156,129,158,148,98,118,123,118,124,148,127,119,127,148,124,118,123,118,98,148,158,129,156,246,286,284,301,365,367,400,454,390,369,346,371,536,595]},{"frame":941,"timestamp":7.793197,"frequencies":[615,536,376,322,328,365,443,418,376,357,310,289,269,243,161,112,133,122,88,116,109,105,111,145,119,100,119,145,111,105,109,116,88,122,133,112,161,243,269,289,310,357,376,418,443,365,328,322,376,536,615]},{"frame":945,"timestamp":7.825125,"frequencies":[625,541,378,324,339,390,439,386,369,386,289,310,305,264,156,113,138,113,95,111,108,127,128,150,94,88,94,150,128,127,108,111,95,113,138,113,156,264,305,310,289,386,369,386,439,390,339,324,378,541,625]},{"frame":949,"timestamp":7.861225,"frequencies":[635,562,384,326,380,426,431,402,365,369,320,301,292,286,174,145,163,121,139,111,159,146,151,153,143,161,143,153,151,146,159,111,139,121,163,145,174,286,292,301,320,369,365,402,431,426,380,326,384,562,635]},{"frame":953,"timestamp":7.894506,"frequencies":[578,527,386,315,376,398,392,404,369,357,299,294,272,264,169,128,181,161,165,177,173,151,163,165,150,165,150,165,163,151,173,177,165,161,181,128,169,264,272,294,299,357,369,404,392,398,376,315,386,527,578]},{"frame":957,"timestamp":7.926626,"frequencies":[574,520,386,331,392,398,396,404,382,320,269,284,281,269,172,117,138,129,130,151,133,142,151,150,132,131,132,150,151,142,133,151,130,129,138,117,172,269,281,284,269,320,382,404,396,398,392,331,386,520,574]},{"frame":961,"timestamp":0,"frequencies":[559,543,384,301,390,414,428,410,365,298,281,264,282,269,169,101,136,116,106,117,123,130,136,142,109,101,109,142,136,130,123,117,106,116,136,101,169,269,282,264,281,298,365,410,428,414,390,301,384,543,559]},{"frame":965,"timestamp":0.027262,"frequencies":[578,548,376,340,386,424,426,386,363,335,262,261,284,286,156,124,148,138,107,116,135,153,151,132,90,92,90,132,151,153,135,116,107,138,148,124,156,286,284,261,262,335,363,386,426,424,386,340,376,548,578]},{"frame":969,"timestamp":0.060752,"frequencies":[557,511,376,371,346,416,408,353,352,315,286,264,298,281,199,142,164,178,151,123,153,136,128,133,109,125,109,133,128,136,153,123,151,178,164,142,199,281,298,264,286,315,352,353,408,416,346,371,376,511,557]},{"frame":973,"timestamp":0.096116,"frequencies":[548,491,350,346,328,388,428,398,335,339,271,254,281,276,186,170,163,177,186,140,177,163,131,154,127,124,127,154,131,163,177,140,186,177,163,170,186,276,281,254,271,339,335,398,428,388,328,346,350,491,548]},{"frame":977,"timestamp":0.124807,"frequencies":[538,502,357,328,326,346,418,369,328,340,292,258,272,266,212,180,197,188,192,170,166,169,136,153,145,122,145,153,136,169,166,170,192,188,197,180,212,266,272,258,292,340,328,369,418,346,326,328,357,502,538]},{"frame":981,"timestamp":0.16076,"frequencies":[574,500,365,348,369,365,420,371,339,348,337,335,320,352,363,279,315,292,264,287,267,216,233,224,182,210,182,224,233,216,267,287,264,292,315,279,363,352,320,335,337,348,339,371,420,365,369,348,365,500,574]},{"frame":985,"timestamp":0.193953,"frequencies":[638,506,355,312,371,378,435,388,346,371,331,337,333,317,319,286,315,298,266,289,272,284,266,218,246,230,246,218,266,284,272,289,266,298,315,286,319,317,333,337,331,371,346,388,435,378,371,312,355,506,638]},{"frame":989,"timestamp":0.22635,"frequencies":[623,524,337,308,331,384,445,371,374,369,340,315,346,328,359,289,303,266,276,294,267,264,240,228,245,222,245,228,240,264,267,294,276,266,303,289,359,328,346,315,340,369,374,371,445,384,331,308,337,524,623]},{"frame":993,"timestamp":0.258322,"frequencies":[640,520,312,315,339,363,422,365,359,329,299,294,324,313,320,269,313,279,305,298,276,237,206,212,248,216,248,212,206,237,276,298,305,279,313,269,320,313,324,294,299,329,359,365,422,363,339,315,312,520,640]},{"frame":997,"timestamp":0.294231,"frequencies":[630,488,333,308,328,378,402,378,361,384,320,315,312,298,317,301,312,287,305,267,253,243,216,237,237,204,237,237,216,243,253,267,305,287,312,301,317,298,312,315,320,384,361,378,402,378,328,308,333,488,630]},{"frame":1001,"timestamp":0.326664,"frequencies":[590,443,339,312,335,404,402,372,340,367,350,324,299,317,308,308,286,296,286,250,245,243,225,207,231,209,231,207,225,243,245,250,286,296,286,308,308,317,299,324,350,367,340,372,402,404,335,312,339,443,590]},{"frame":1005,"timestamp":0.359909,"frequencies":[562,454,333,294,322,390,414,404,337,339,299,310,298,306,296,296,267,271,279,243,231,234,253,207,209,193,209,207,253,234,231,243,279,271,267,296,296,306,298,310,299,339,337,404,414,390,322,294,333,454,562]},{"frame":1009,"timestamp":0.391837,"frequencies":[648,473,352,331,319,342,39
2520,378,342,333,299,308,279,312,272,279,269,253,246,227,216,234,236,219,215,202,215,219,236,234,216,227,246,253,269,279,272,312,279,308,299,333,342,378,390,342,319,331,352,473,648]},{"frame":1013,"timestamp":0.427739,"frequencies":[643,513,357,378,363,355,382,369,388,380,331,294,292,298,253,239,267,253,289,230,227,227,222,207,221,204,221,207,222,227,227,230,289,253,267,239,253,298,292,294,331,380,388,369,382,355,363,378,357,513,643]},{"frame":1017,"timestamp":0.460895,"frequencies":[603,482,339,363,363,319,350,340,342,374,350,277,298,319,277,230,248,272,303,231,230,258,234,207,216,237,216,207,234,258,230,231,303,272,248,230,277,319,298,277,350,374,342,340,350,319,363,363,339,482,603]},{"frame":1021,"timestamp":0.493424,"frequencies":[650,482,355,378,378,350,394,378,371,355,365,313,281,313,284,272,287,258,276,228,234,234,230,204,213,219,213,204,230,234,234,228,276,258,287,272,284,313,281,313,365,355,371,378,394,350,378,378,355,482,650]},{"frame":1025,"timestamp":0.525362,"frequencies":[633,475,348,346,388,386,414,372,355,372,335,292,294,319,287,261,269,254,264,230,231,250,210,222,230,230,230,222,210,250,231,230,264,254,269,261,287,319,294,292,335,372,355,372,414,386,388,346,348,475,633]},{"frame":1029,"timestamp":0.560286,"frequencies":[645,495,353,337,365,363,388,372,378,353,348,310,312,306,274,250,251,230,240,221,207,224,231,219,254,228,254,219,231,224,207,221,240,230,251,250,274,306,312,310,348,353,378,372,388,363,365,337,353,495,645]},{"frame":1033,"timestamp":0.594352,"frequencies":[640,518,363,328,352,352,357,382,394,353,371,335,328,331,266,269,267,236,269,233,216,227,254,245,243,196,243,245,254,227,216,233,269,236,267,269,266,331,328,335,371,353,394,382,357,352,352,328,363,518,640]},{"frame":1037,"timestamp":0.626939,"frequencies":[608,491,344,317,306,348,372,398,352,363,367,337,337,322,274,259,250,236,266,246,209,199,221,240,239,209,239,240,221,199,209,246,266,236,250,259,274,322,337,337,367,363,352,398,372,348,306,317,344,491,608]},{"frame":1041,"timestamp":0.658866,"frequencies":[650,531,382,428,445,424,418,435,449,386,400,390,384,374,365,382,367,353,322,363,382,342,352,298,277,324,277,298,352,342,382,363,322,353,367,382,365,374,384,390,400,386,449,435,418,424,445,428,382,531,650]},{"frame":1045,"timestamp":0.69397,"frequencies":[650,555,402,406,447,447,392,400,437,400,398,386,394,378,346,371,390,394,333,353,353,329,329,312,333,335,333,312,329,329,353,353,333,394,390,371,346,378,394,386,398,400,437,400,392,447,447,406,402,555,650]},{"frame":1049,"timestamp":0.727989,"frequencies":[650,557,412,406,424,435,422,392,426,422,394,378,384,361,355,355,394,376,340,353,361,306,324,277,313,299,313,277,324,306,361,353,340,376,394,355,355,361,384,378,394,422,426,392,422,435,424,406,412,557,650]},{"frame":1053,"timestamp":0.760454,"frequencies":[650,566,437,418,414,392,374,398,380,398,402,372,367,355,322,317,372,335,333,348,329,310,312,262,296,305,296,262,312,310,329,348,333,335,372,317,322,355,367,372,402,398,380,398,374,392,414,418,437,566,650]},{"frame":1057,"timestamp":0.792381,"frequencies":[650,562,420,388,374,422,404,384,386,408,424,359,369,371,320,320,340,320,322,306,298,305,317,262,272,296,272,262,317,305,298,306,322,320,340,320,320,371,369,359,424,408,386,384,404,422,374,388,420,562,650]},{"frame":1061,"timestamp":0.828266,"frequencies":[650,545,458,406,388,400,414,388,369,433,424,342,386,352,298,312,335,306,329,277,282,294,294,250,256,306,256,250,294,294,282,277,329,306,335,312,298,352,386,342,424,433,369,388,414,400,388,406,458,545,650]},{"frame":1065,"timestamp":0.861509,"frequencies":[650,506,439,398,410,400,433,384,400,433,386,337,384,339,292,306,329,312,289,279,264,286,298,253,269,279,269,253,298,286,264,279,289,312,329,306,292,339,384,337,386,433,400,384,433,400,410,398,439,506,650]},{"frame":1069,"timestamp":0.893805,"frequencies":[650,534,428,400,388,402,420,386,406,441,388,378,348,294,276,284,310,306,284,266,269,274,279,256,282,308,282,256,279,274,269,266,284,306,310,284,276,294,348,378,388,441,406,386,420,402,388,400,428,534,650]},{"frame":1073,"timestamp":0.925896,"frequencies":[650,534,418,404,386,402,410,402,369,408,398,386,353,359,344,306,322,291,267,240,284,303,277,251,296,292,296,251,277,303,284,240,267,291,322,306,344,359,353,386,398,408,369,402,410,402,386,404,418,534,650]},{"frame":1077,"timestamp":0.958017,"frequencies":[650,543,410,452,392,406,402,402,367,414,412,374,359,348,324,301,339,298,289,253,256,287,262,254,299,272,299,254,262,287,256,253,289,298,339,301,324,348,359,374,412,414,367,402,402,406,392,452,410,543,650]},{"frame":1081,"timestamp":0.994924,"frequencies":[650,524,392,422,418,404,390,422,408,408,392,380,361,355,317,340,299,284,286,286,267,303,282,251,315,272,315,251,282,303,267,286,286,284,299,340,317,355,361,380,392,408,408,422,39
2520,404,418,422,392,524,650]},{"frame":1085,"timestamp":1.027483,"frequencies":[650,522,390,414,410,410,396,408,412,416,369,378,390,352,326,328,306,292,294,279,254,264,286,277,276,259,276,277,286,264,254,279,294,292,306,328,326,352,390,378,369,416,412,408,396,410,410,414,390,522,650]},{"frame":1089,"timestamp":1.05941,"frequencies":[650,488,394,384,410,386,418,412,386,416,396,380,394,350,331,331,329,277,291,266,250,258,279,256,292,279,292,256,279,258,250,266,291,277,329,331,331,350,394,380,396,416,386,412,418,386,410,384,394,488,650]},{"frame":1093,"timestamp":1.09215,"frequencies":[650,511,396,382,416,376,447,359,388,428,361,350,378,333,289,315,328,298,261,251,228,256,269,221,250,277,250,221,269,256,228,251,261,298,328,315,289,333,378,350,361,428,388,359,447,376,416,382,396,511,650]},{"frame":1097,"timestamp":1.124738,"frequencies":[650,506,416,382,443,458,480,402,460,416,394,400,388,359,342,396,402,348,324,320,398,350,353,251,315,292,315,251,353,350,398,320,324,348,402,396,342,359,388,400,394,416,460,402,480,458,443,382,416,506,650]},{"frame":1101,"timestamp":1.158095,"frequencies":[650,571,420,414,422,408,443,406,428,396,416,353,363,346,344,396,398,324,337,322,350,335,342,286,346,313,346,286,342,335,350,322,337,324,398,396,344,346,363,353,416,396,428,406,443,408,422,414,420,571,650]}]}'),k2=n(48633),k3=n.n(k2);let k5=O().bind(k3()),k4=4,k6=8,k8=.3;function k7(e,t,n){let i;if(!e.length||n<=1)return 0;let r=n-1,a=r>0?t/r:0;i=a<=.5?.5-a:1.5-a;let s=e.length-1,o=i*s,l=Math.floor(o),u=Math.min(s,Math.ceil(o)),c=o-l,d=e[l]||0,h=e[u]||d;return d+(h-d)*c}var k9=(0,T.forwardRef)((e,t)=>{let{animationDuration:n=1.5}=e,{log:i}=(0,ij.q)({name:"SoundWave",bgColor:"cyan",enabled:!1}),{isReady:r}=(0,N.dg)(),{mounted:a}=(0,eT.F)(),s=(0,T.useRef)(null),o=(0,T.useRef)([]),[l,u]=(0,T.useState)([]),c=(0,T.useRef)(0),d=(0,T.useRef)(null),h=(0,T.useRef)(null),f={width:1024,height:192},p=6,m=4;(0,T.useEffect)(()=>{let e=Math.floor((f.width+m)/(p+m)),t=.1*f.height,n=.9*f.height;u(Array.from({length:e},(e,i)=>({x:i*(p+m),min:t,max:n}))),i("Generated bars",{count:e,svgWidth:f.width})},[]),(0,T.useEffect)(()=>{0===l.length||o.current.length<l.length||(o.current.forEach((e,t)=>{e&&nT.p8.set(e,{attr:{height:0,y:f.height/2}})}),i("Set initial bar heights to 0"))},[l]);let g=(0,T.useCallback)(()=>{i("stop"),d.current&&cancelAnimationFrame(d.current),d.current=null,h.current&&clearTimeout(h.current),h.current=null,o.current.forEach(e=>e&&nT.p8.killTweensOf(e))},[]),v=(0,T.useCallback)(()=>{let e=null==k1?void 0:k1.frames;if(e&&0!==e.length){if(c.current%k6==0){let t=e[Math.floor(c.current/k6)%e.length].frequencies||[],n=Math.max(...t.filter(e=>e>0),1);o.current.forEach((e,i)=>{if(!e||!l[i])return;let r=l[i],a=k7(t,i,o.current.length)/n;a=Math.max(0,Math.min(1,(a-.5)*k4+.5));let s=r.min+a*(r.max-r.min),u=(f.height-s)/2;nT.p8.to(e,{attr:{height:s,y:u},duration:k8,ease:"sine.out"})})}c.current++,d.current=requestAnimationFrame(v)}},[l]),y=(0,T.useCallback)(()=>{if(0===l.length){i("start skipped no bars");return}g(),c.current=0,d.current=requestAnimationFrame(v),h.current=setTimeout(()=>{i("Auto-stopping SoundWave after duration"),g()},1e3*n)},[l,g,v,n]);return((0,T.useImperativeHandle)(t,()=>({start:y,stop:g})),a&&r)?(0,w.jsx)("div",{ref:s,className:k5("sound-wave"),children:(0,w.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(f.width," ").concat(f.height),width:"100%",height:"100%",style:{display:"block"},children:l.map((e,t)=>(0,w.jsx)("rect",{ref:e=>{o.current[t]=e},x:e.x,y:f.height/2,width:p,height:2,fill:"currentColor",rx:4,ry:4},t))})}):null}),De=n(68720),Dt=n.n(De);let Dn=O().bind(Dt()),Di=(0,T.forwardRef)((e,t)=>{let{children:n,className:i}=e,r=(0,T.useRef)(null),a=(0,T.useRef)(null),s=()=>{a.current&&nT.p8.timeline().set(a.current,{autoAlpha:1}).fromTo(a.current,{x:"-80%"},{x:"80%",duration:.8,ease:"power1.inOut"}).set(a.current,{autoAlpha:0})};return(0,T.useImperativeHandle)(t,()=>({shimmer:s})),(0,w.jsxs)("div",{className:Dn("shimmer",i),ref:r,onClick:s,children:[n,(0,w.jsx)("div",{ref:a,className:Dn("shimmer-overlay")})]})});Di.displayName="Shimmer";var Dr=Di,Da=n(46779),Ds=n.n(Da);function Do(){return(Do=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var Dl=function(e){return T.createElement("svg",Do({viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),y||(y=T.createElement("g",{clipPath:"url(#clip_757)"},T.createElement("path",{d:"M9 8.04C8.62 8.04 8.28 8.19 8.02 8.425L4.455 6.35C4.48 6.235 4.5 6.12 4.5 6C4.5 5.88 4.48 5.765 4.455 5.65L7.98 3.595C8.25 3.845 8.605 4 9 4C9.83 4 10.5 3.33 10.5 2.5C10.5 1.67 9.83 1 9 1C8.17 1 7.5 1.67 7.5 2.5C7.5 2.62 7.52 2.735 7.545 2.85L4.02 4.905C3.75 4.655 3.395 4.5 3 4.5C2.17 4.5 1.5 5.17 1.5 6C1.5 6.83 2.17 7.5 3 7.5C3.395 7.5 3.75 7.345 4.02 7.095L7.58 9.175C7.555 9.28 7.54 9.39 7.54 9.5C7.54 10.305 8.195 10.96 9 10.96C9.805 10.96 10.46 10.305 10.46 9.5C10.46 8.695 9.805 8.04 9 8.04Z",fill:"currentColor"}))),_||(_=T.createElement("defs",null,T.createElement("clipPath",{id:"clip_757"},T.createElement("rect",{width:12,height:12,fill:"white"})))))};function Du(){return(Du=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var Dc=function(e){return T.createElement("svg",Du({viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),b||(b=T.createElement("path",{d:"M3.66346 20.6315C2.51734 19.5245 1.60315 18.2004 0.974242 16.7363C0.345334 15.2723 0.0142989 13.6976 0.000453081 12.1043C-0.0133927 10.5109 0.290228 8.93077 0.893598 7.45601C1.49697 5.98125 2.38801 4.64143 3.51472 3.51472C4.64143 2.38801 5.98125 1.49697 7.45601 0.893598C8.93077 0.290228 10.5109 -0.0133927 12.1043 0.000453081C13.6976 0.0142989 15.2723 0.345334 16.7363 0.974242C18.2004 1.60315 19.5245 2.51734 20.6315 3.66346C22.8174 5.92668 24.0269 8.95791 23.9995 12.1043C23.9722 15.2506 22.7102 18.2604 20.4853 20.4853C18.2604 22.7102 15.2506 23.9722 12.1043 23.9995C8.95791 24.0269 5.92668 22.8174 3.66346 20.6315ZM5.35546 18.9395C7.15681 20.7408 9.59996 21.7528 12.1475 21.7528C14.695 21.7528 17.1381 20.7408 18.9395 18.9395C20.7408 17.1381 21.7528 14.695 21.7528 12.1475C21.7528 9.59996 20.7408 7.15681 18.9395 5.35546C17.1381 3.55411 14.695 2.54212 12.1475 2.54212C9.59996 2.54212 7.15681 3.55411 5.35546 5.35546C3.55411 7.15681 2.54212 9.59996 2.54212 12.1475C2.54212 14.695 3.55411 17.1381 5.35546 18.9395Z",fill:"currentColor"})),x||(x=T.createElement("path",{d:"M16.9229 9.78809L11.2217 16.6289L7.44727 12.8545L8.86133 11.4404L11.0859 13.665L15.3857 8.50684L16.9229 9.78809Z",fill:"currentColor"})))};let Dd=O().bind(Ds()),Dh=(0,T.forwardRef)((e,t)=>{let{gameResult:n,albumImage:i,guessMeterEmoji:r,gameTitle:a,gameNumber:s,guessCount:o,copy:l}=e,{log:u}=(0,ij.q)({name:"GameOver",bgColor:"yellow",enabled:wb}),c=(0,iR.PI)("hideShimmer"),{isReady:d}=(0,N.dg)(),{mounted:h}=(0,eT.F)(),f=(0,T.useRef)(null),p=(0,T.useRef)(null),m=(0,T.useRef)(null),g=(0,T.useRef)(null),v=(0,T.useRef)(null),y=(0,T.useRef)(null),_=(0,T.useRef)(null),b=(0,T.useRef)(null),x=(0,T.useRef)(null),C=(0,T.useRef)(null),E=(0,T.useRef)(null),S=(0,T.useRef)(null),L=(0,T.useRef)(!1);(0,T.useImperativeHandle)(t,()=>({animateIn:()=>{S.current&&S.current.play()}}));let P=()=>{u("Building animation timeline"),S.current=nT.p8.timeline({paused:!0}).add("start");let e=.6;g.current&&(S.current.add("recordIn","start+=0.3"),S.current.fromTo(g.current,{x:0,rotation:-45},{x:"28%",rotation:0,duration:e,ease:"power1.out"},"recordIn")),v.current&&(S.current.add("soundWaveIn","start+=0.1"),S.current.fromTo(v.current,{scaleY:0},{scaleY:1,duration:1,ease:"power1.out",clearProps:"transform",onStart:()=>{var e;null===(e=y.current)||void 0===e||e.start()}},"soundWaveIn"));let t=.4,n=.34,i="power1.out",r="1.25rem";_.current&&(S.current.add("headlineIn","-=0.4"),S.current.fromTo(_.current,{autoAlpha:0,y:r},{autoAlpha:1,y:0,duration:t,ease:i},"headlineIn")),b.current&&(S.current.add("subheadIn","-=".concat(n)),S.current.fromTo(b.current,{autoAlpha:0,y:r},{autoAlpha:1,y:0,duration:t,ease:i},"subheadIn")),x.current&&(S.current.add("bodyIn","-=".concat(n)),S.current.fromTo(x.current,{autoAlpha:0,y:r},{autoAlpha:1,y:0,duration:t,ease:i},"bodyIn")),C.current&&(S.current.add("buttonRowIn","-=".concat(n)),S.current.fromTo(C.current,{autoAlpha:0,y:r},{autoAlpha:1,y:0,duration:t,ease:i},"buttonRowIn")),m.current&&!c&&(S.current.add("shimmer","-=0.3"),S.current.call(()=>{var e;u("Triggering shimmer animation"),null===(e=m.current)||void 0===e||e.shimmer()},[],"shimmer"))};(0,iM.V)(()=>{u("Game over screen mounted:",n),L.current||(L.current=!0,P())},{dependencies:[],scope:g});let A=async()=>
252{if(!r)return;let e=window.location.href,t=[s?"CoverStory #".concat(s):"CoverStory",a?'"'.concat(a,'" ').concat(o||""):"",r,e].filter(Boolean).join("\n");if("undefined"!=typeof navigator&&/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)&&navigator.maxTouchPoints>0&&"undefined"!=typeof navigator&&navigator.share)try{await navigator.share({title:"Rock Hall Game",text:t}),u("Shared via native share sheet");return}catch(e){return}try{if(await navigator.clipboard.writeText(t),u("Share text copied to clipboard:",t),E.current){let e=nT.p8.timeline();e.fromTo(E.current,{autoAlpha:0,y:20},{autoAlpha:1,y:0,duration:.2,ease:"power2.out"}),e.to({},{duration:1.5}),e.to(E.current,{autoAlpha:0,y:20,duration:.2,ease:"power2.in"})}}catch(e){u("Failed to copy share text:",e)}},I=()=>{let e=document.querySelector('[class*="list-cover-stories"]');u("Play More button clicked",{listSection:e}),e&&e.scrollIntoView({behavior:"smooth"})},R=(null==l?void 0:l.shopUrl)&&""!==l.shopUrl.trim()?(0,D.Cr)({linkType:["external"],label:l.shopButton||"SHOP THE VINYL",externalLink:l.shopUrl}):null;return h&&d?(0,w.jsxs)("div",{className:Dd("game-over",n),ref:f,children:[(0,w.jsxs)("div",{className:Dd("game-over-top"),children:[(0,w.jsx)("div",{className:Dd("sound-wave-wrapper"),ref:v,children:(0,w.jsx)(k9,{ref:y,animationDuration:wS.GAME_OVER_SOUNDWAVE_DUR})}),(0,w.jsxs)("div",{className:Dd("album-cover"),ref:p,children:[(0,w.jsx)("div",{ref:g,className:Dd("record"),children:(0,w.jsx)(M(),{src:iB,alt:"Vinyl Record"})}),(0,w.jsx)(Dr,{ref:m,children:(0,w.jsx)("img",{src:i,alt:"Album cover",className:Dd("album-cover-image")})})]})]}),(0,w.jsxs)("div",{className:Dd("game-over-bottom"),children:[(0,w.jsx)("h2",{className:Dd("title-uc-s","headline"),ref:_,children:null==l?void 0:l.headline}),(0,w.jsx)("p",{className:Dd("text-m","subhead"),ref:b,children:null==l?void 0:l.subhead}),(null==l?void 0:l.body)&&(0,w.jsx)("p",{className:Dd("text-m","body"),ref:x,children:l.body}),(0,w.jsxs)("div",{className:Dd("button-row"),ref:C,id:"game-over-button-row",children:[(0,w.jsx)(id.z,{label:(null==l?void 0:l.shareButton)||"SHARE",onClick:A,icon:Dl}),(0,w.jsx)(id.z,{label:(null==l?void 0:l.playMoreButton)||"PLAY MORE",onClick:I,icon:ta.Z,className:Dd("play-more-button")}),R&&(0,w.jsx)(id.z,{...R})]}),(0,w.jsxs)("div",{className:Dd("toast-copied"),ref:E,"aria-hidden":"true",children:[(0,w.jsx)(Dc,{})," ",(0,w.jsx)("span",{className:Dd("text-m"),children:null==l?void 0:l.copiedToast})]})]})]}):null});Dh.displayName="GameOver";var Df=Dh,Dp=n(49752),Dm=n.n(Dp),Dg={src:"/_next/static/media/info-illustration-01.44afd868.svg"},Dv={src:"/_next/static/media/info-illustration-02.ae079439.svg"},Dy={src:"/_next/static/media/info-illustration-03.080be600.svg"};let D_=O().bind(Dm());var Db=e=>{var t,n,i,r,a,s;let{isVisible:o,onClose:l,copy:u}=e,{log:c}=(0,ij.q)({name:"GameInfoModal",bgColor:"#FF4858",enabled:wb}),d=(0,T.useRef)(!0),h=(0,T.useRef)(null),f=(0,D.Ay)(null==u?void 0:u.headline),p=()=>{c("Info modal closed"),l()};return(0,T.useEffect)(()=>{o&&d.current&&(d.current=!1)},[o]),(0,T.useEffect)(()=>{if(!o)return;let e=e=>{"Escape"===e.key&&p()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[o]),(0,T.useEffect)(()=>{if(!o||"undefined"==typeof document)return;let e=setTimeout(()=>{var e;let t=null===(e=h.current)||void 0===e?void 0:e.querySelectorAll('button:not([disabled]):not([tabindex="-1"]), a[href]:not([tabindex="-1"])');if(t&&t.length>0){let e=t[0];null==e||e.focus()}},100),t=e=>{var t,n;if("Tab"!==e.key)return;let i=null===(t=h.current)||void 0===t?void 0:t.querySelectorAll('button:not([disabled]):not([tabindex="-1"]), a[href]:not([tabindex="-1"])');if(!i||0===i.length)return;let r=i[0],a=i[i.length-1];if(!(null===(n=h.current)||void 0===n?void 0:n.contains(document.activeElement))){e.preventDefault(),null==r||r.focus();return}e.shiftKey&&document.activeElement===r?(e.preventDefault(),null==a||a.focus()):e.shiftKey||document.activeElement!==a||(e.preventDefault(),null==r||r.focus())};return document.addEventListener("keydown",t),()=>{clearTimeout(e),document.removeEventListener("keydown",t)}},[o]),(0,w.jsx)(w6,{children:o&&(0,w.jsxs)("div",{className:D_("game-info-modal"),children:[(0,w.jsx)(kf.div,{className:D_("overlay"),initial:d.current?{opacity:1}:{opacity:0}
252,animate:{opacity:1},exit:{opacity:0},transition:{duration:.3,ease:[.25,.1,.25,1]},onClick:p}),(0,w.jsxs)(kf.div,{ref:h,className:D_("content"),initial:{opacity:0,scale:.92},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.92},transition:{duration:.4,ease:[.25,.1,.25,1],delay:.1},children:[(0,w.jsxs)("div",{className:D_("game-info-modal-top"),children:[(0,w.jsx)("div",{className:D_("eyebrow-l","eyebrow"),children:null==u?void 0:u.eyebrow}),(0,w.jsx)("h1",{className:D_("title-lc-m","headline"),dangerouslySetInnerHTML:{__html:f}})]}),(0,w.jsx)("div",{className:D_("divider")}),(0,w.jsxs)("div",{className:D_("instruction-row"),children:[(0,w.jsxs)("div",{className:D_("instruction-column"),children:[(0,w.jsx)("div",{className:D_("instruction-image"),children:(0,w.jsx)("img",{src:Dg.src,alt:""})}),(0,w.jsx)("h3",{className:D_("title-lc-xs","instruction-heading"),children:null==u?void 0:null===(t=u.stepOne)||void 0===t?void 0:t.headline}),(0,w.jsx)("p",{className:D_("eyebrow-s","instruction-subheading"),children:null==u?void 0:null===(n=u.stepOne)||void 0===n?void 0:n.subhead})]}),(0,w.jsxs)("div",{className:D_("instruction-column"),children:[(0,w.jsx)("div",{className:D_("instruction-image"),children:(0,w.jsx)("img",{src:Dv.src,alt:""})}),(0,w.jsx)("h3",{className:D_("title-lc-xs","instruction-heading"),children:null==u?void 0:null===(i=u.stepTwo)||void 0===i?void 0:i.headline}),(0,w.jsx)("p",{className:D_("eyebrow-s","instruction-subheading"),children:null==u?void 0:null===(r=u.stepTwo)||void 0===r?void 0:r.subhead})]}),(0,w.jsxs)("div",{className:D_("instruction-column"),children:[(0,w.jsx)("div",{className:D_("instruction-image"),children:(0,w.jsx)("img",{src:Dy.src,alt:""})}),(0,w.jsx)("h3",{className:D_("title-lc-xs","instruction-heading"),children:null==u?void 0:null===(a=u.stepThree)||void 0===a?void 0:a.headline}),(0,w.jsx)("p",{className:D_("eyebrow-s","instruction-subheading"),children:null==u?void 0:null===(s=u.stepThree)||void 0===s?void 0:s.subhead})]})]}),(0,w.jsx)(id.z,{label:null==u?void 0:u.ctaButton,onClick:p,ariaLabel:(null==u?void 0:u.ariaLabel)||(null==u?void 0:u.ctaButton)})]})]})})},Dx=n(49690),DC=n.n(Dx);let DE=O().bind(DC());var Dw=e=>{let{title:t,gameData:n,gameState:i="playing"}=e,r=null==n?void 0:n.gameNumber,[a,s]=T.useState(null),o=(0,D.p6)(n.coverStoryDate,"EEE MMM d, yyyy"),l="#".concat(r," - ").concat(o),u=t;function c(e){return"won"===e||"lost"===e?"".concat(null==a?void 0:a.artist," - ").concat(null==a?void 0:a.album):""}let d=(0,T.useMemo)(()=>c(i),[i,a]),h="playing"===i?u:d,f=(0,T.useCallback)(async()=>{s(await (0,D.Mw)(n.albumFormatted))},[n]);return(0,T.useEffect)(()=>{f()},[n]),(0,w.jsxs)("div",{className:DE("game-header"),children:[(0,w.jsx)("div",{className:DE("tag-l","metadata-pill"),children:l}),(0,w.jsx)("h2",{className:DE("title-uc-xs","headline"),children:(0,w.jsx)(w6,{mode:"wait",children:(0,w.jsx)(kf.span,{initial:{opacity:0,y:"-100%"},animate:{opacity:1,y:0},exit:{opacity:0,y:"100%"},transition:{duration:.4,ease:e7.hl},style:{display:"block"},children:h},i)})})]})},DT=n(38005),DS=n.n(DT);function DL(){return(DL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var DP=function(e){return T.createElement("svg",DL({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),C||(C=T.createElement("path",{d:"M8.0168 10.6667C7.75013 10.6667 7.52524 10.5722 7.34213 10.3833C7.15857 10.1944 7.07791 9.97222 7.10013 9.71667C7.13346 9.25 7.24457 8.84444 7.43346 8.5C7.62235 8.15556 7.92235 7.8 8.33346 7.43333C8.78902 7.03333 9.13613 6.686 9.3748 6.39133C9.61391 6.09711 9.73346 5.76111 9.73346 5.38333C9.73346 4.92778 9.5808 4.55 9.27546 4.25C8.96969 3.95 8.54457 3.8 8.00013 3.8C7.64457 3.8 7.34191 3.87489 7.09213 4.02467C6.84191 4.17489 6.63902 4.36111 6.48346 4.58333C6.32791 4.80556 6.13635 4.95556 5.9088 5.03333C5.6808 5.11111 5.46124 5.10556 5.25013 5.01667C4.99457 4.90556 4.81969 4.72222 4.72546 4.46667C4.6308 4.21111 4.65013 3.97222 4.78346 3.75C5.10569 3.25 5.53902 2.83333 6.08346 2.5C6.62791 2.16667 7.2668 2 8.00013 2C9.1668 2 10.0641 2.32511 10.6921 2.97533C11.3197 3.62511 11.6335 4.40556 11.6335 5.31667C11.6335 5.87222 11.5141 6.34733 11.2755 6.742C11.0364 7.13622 10.6612 7.58333 10.1501 8.08333C9.77235 8.43889 9.50568 8.72778 9.35013 8.95C9.19457 9.17222 9.08902 9.42778 9.03346 9.71667C8.98902 9.99444 8.87235 10.2222 8.68346 10.4C8.49457 10.5778 8.27235 10.6667 8.0168 10.6667ZM8.00013 14.6667C7.63346 14.6667 7.31969 14.5362 7.0588 14.2753C6.79746 14.014 6.6668 13.7 6.6668 13.3333C6.6668 12.9667 6.79746 12.6527 7.0588 12.3913C7.31969 12.1304 7.63346 12 8.00013 12C8.3668 12 8.6808 12.1304 8.94213 12.39
25213C9.20302 12.6527 9.33346 12.9667 9.33346 13.3333C9.33346 13.7 9.20302 14.014 8.94213 14.2753C8.6808 14.5362 8.3668 14.6667 8.00013 14.6667Z",fill:"currentColor"})))},DM=n(27987);class DA{init(){window.addEventListener("keydown",this.handleKeyDown),this.debug}onKeyDown(e){let t=e.target;if("INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable){if(1===e.key.length){let t=this.caseSensitive?e.key:e.key.toLowerCase();this.buffer+=t,this.buffer.length>this.maxLength&&(this.buffer=this.buffer.slice(-this.maxLength)),this.debug,this.checkSequences()}else this.resetOnNonMatch&&this.reset()}}checkSequences(){for(let e of this.sequences){let t=this.caseSensitive?e.sequence:e.sequence.toLowerCase();if(this.buffer.endsWith(t)){this.debug,e.callback(),this.reset();break}}}reset(){this.buffer="",this.debug}addSequence(e){this.sequences.push(e),this.maxLength=Math.max(this.maxLength,e.sequence.length),this.debug}removeSequence(e){this.sequences=this.sequences.filter(t=>t.sequence!==e),this.maxLength=this.sequences.length>0?Math.max(...this.sequences.map(e=>e.sequence.length)):0,this.debug}destroy(){window.removeEventListener("keydown",this.handleKeyDown),this.buffer="",this.debug}getBuffer(){return this.buffer}constructor(e){var t,n,i;this.buffer="",this.sequences=e.sequences,this.caseSensitive=null!==(t=e.caseSensitive)&&void 0!==t&&t,this.resetOnNonMatch=null===(n=e.resetOnNonMatch)||void 0===n||n,this.debug=null!==(i=e.debug)&&void 0!==i&&i,this.maxLength=Math.max(...this.sequences.map(e=>e.sequence.length)),this.handleKeyDown=this.onKeyDown.bind(this),this.init()}}let DI=e=>{let{rootRef:t,enabled:n}=e,[i,r]=(0,T.useState)(!1),[a,s]=(0,T.useState)(null),o=(0,T.useCallback)(()=>{var e;let n=(null===(e=t.current)||void 0===e?void 0:e.clientWidth)||window.innerWidth,i=window.innerHeight,r=0,a=0;if(r=n-48-8,n>=1024)a=i-148;else{let e=document.getElementById("game-over-button-row");if(e){let t=e.getBoundingClientRect();a=window.scrollY+t.bottom}else a=window.scrollY+i-32}return{x:r,y:a}},[t]);return(0,T.useEffect)(()=>{if(!i||!n)return;let e=()=>{let e=o();e&&s(e)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[i,n,o]),{showCursorFollower:i,setShowCursorFollower:r,externalCursorPos:a,setExternalCursorPos:s,calculateCursorFollowerPosition:o}},DR=O().bind(DS());var Dk=e=>{var t,n;let{title:i,options:r,gameData:a}=e,{log:s}=(0,ij.q)({name:"Game",bgColor:"#9FC131",enabled:wb}),{gameState:o,setGameState:l}=(0,kw.BX)(),{globalVolume:u}=(0,u5.je)(),{isReady:c,isDesktop:d}=(0,N.dg)(),{mounted:h}=(0,eT.F)(),f=a.gameNumber?String(a.gameNumber):"",[p,m]=(0,T.useState)(""),[g,v]=(0,T.useState)(""),y=(0,T.useMemo)(()=>f?wD(f):null,[f]),_=(0,T.useMemo)(()=>!f||y?null:wF(f),[f,y]),b=(0,T.useMemo)(()=>{var e,t,n,i,a,s,o;return{eyebrow:(null===(e=r.howToModal)||void 0===e?void 0:e.eyebrow)||"Missing eyebrow",headline:(null===(t=r.howToModal)||void 0===t?void 0:t.headline)||"Missing headline",ctaButton:(null===(n=r.howToModal)||void 0===n?void 0:n.ctaLabel)||"Missing label",ariaLabel:(null===(i=r.ariaLabels)||void 0===i?void 0:i.playGame)||"Play game",stepOne:(null===(a=r.howToModal)||void 0===a?void 0:a.stepOne)||{headline:"Missing step one headline",subhead:"Missing step one subhead"},stepTwo:(null===(s=r.howToModal)||void 0===s?void 0:s.stepTwo)||{headline:"Missing step two headline",subhead:"Missing step two subhead"},stepThree:(null===(o=r.howToModal)||void 0===o?void 0:o.stepThree)||{headline:"Missing step three headline",subhead:"Missing step three subhead"}}},[r]),x=(0,T.useMemo)(()=>{var e,t;return{placeholderGuessAlbum:r.searchPlacholder||"Missing placeholderâ¦",clearButtonAriaLabel:(null===(e=r.ariaLabels)||void 0===e?void 0:e.clearInput)||"Missing clear input",submitButtonAriaLabel:(null===(t=r.ariaLabels)||void 0===t?void 0:t.submitInput)||"Missing submit input",incorrectGuess:r.incorrectGuess||"Missing incorrect"}},[r]),C=(0,T.useMemo)(()=>{var e,t;return{singular:(null===(e=r.tileCount)||void 0===e?void 0:e.singular)||"{{count}} Missing tile copy",plural:(null===(t=r.tileCount)||void 0===t?void 0:t.plural)||"{{count}} Missing tile copy"}},[r]),E=(0,T.useMemo)(()=>({message:r.finalGuess||"You're out of tiles. Time to make a final guess."}),[r]),S=(0,T.useMemo)(()=>{var e,t,n,i,s,o,l,u,c;return{headlineSingular:(null===(e=r.coverStoryEndScreenHeadline)||void 0===e?void 0:e.singular)||"You got it in {{count}} tile!",headlinePlural:(null===(t=r.coverStoryEndScreenHeadline)||void 0===t?void 0:t.plural)||"You got it in {{count}} tiles!",incorrectHeadline:(null===(n=r.coverStoryEndScreenIncorrect)||void 0===n?void 0:n.headline)||"Missing incorrect headline",incorrectSubhead:(null===(i=r.coverStoryEndScreenIncorrect)||void 0===i?void 0:i.subhead)||"Missing incorrect subhead",tileText:r.coverStoryEndScreenTileText||{},shareButton:(null===(s=r.coverStoryEndScreenButtonLabels)||void 0===s?void 0:s.share)||"Share",playMoreButton:(null===(o=r.coverStoryEndScreenButtonLabels)||void 0===o?void 0:o.playMore)||"Play More",shopButton:(null===(l=r.coverStoryEndScreenButtonLabels)||void 0===l?void 0:l.shop)||"Shop",shopUrl:a.coverStoryVinylShopLink||void 0,copiedToast:(null===(u=r.coverStoryEndScreenButtonLabels)||void 0===u?void 0:u.copied)||"Copied to clipboard",circleCta:(null===(c=r.coverStoryEndScreenButtonLabels)||void 0===c?void 0:c.cursorText)||"THE STORY"}},[r,a.coverStoryVinylShopLink]),L=e=>{let t=e.match(/\d+/);return t?parseInt(t[0],10):6},P=6;
252(null===(t=r.coverStoryGridSize)||void 0===t?void 0:t[0])&&(P=L(r.coverStoryGridSize[0]));let M={name:"".concat(P,"x").concat(P),imageSrc:p,gridSize:P,canvasSize:wE},[A,I]=(0,T.useState)(()=>{if(y){var e;let t=null!==(e=y.tilesRevealed)&&void 0!==e?e:y.emojiSet.split("").filter(e=>e===wT.TILE_REVEALED).length;return{tilesRevealed:t,totalTiles:P*P,progress:t/(P*P)*100,remaining:P*P-t}}return{tilesRevealed:0,totalTiles:36,progress:0,remaining:36}}),[R,k]=(0,T.useState)(()=>y?{guessesUsed:y.guessCount,totalGuesses:10,remaining:10-y.guessCount}:_?{guessesUsed:_.guessesUsed,totalGuesses:10,remaining:10-_.guessesUsed}:{guessesUsed:0,totalGuesses:10,remaining:10}),[F,O]=(0,T.useState)(!!y),[j,U]=(0,T.useState)(()=>!wR()),[V,B]=(0,T.useState)(()=>_?_.guessesUsed:0),[H,G]=(0,T.useState)(()=>{if(_){let e=[];return _.guessMeterData.forEach((t,n)=>{"incorrect"===t&&e.push(n+1)}),e}return[]}),[z,q]=(0,T.useState)(()=>y?Array.from(y.emojiSet).slice(0,y.guessCount).map(e=>e===wT.TILE_REVEALED?"tile":"incorrect"):_?[..._.guessMeterData]:[]);(0,T.useEffect)(()=>{ei.current=z},[z]);let[W,$]=(0,T.useState)(null),Z=(0,T.useRef)([]),Y=(0,T.useRef)([]),K=(0,T.useRef)(!1),X=(0,T.useRef)(!1),Q=(0,T.useRef)(null),J=(0,T.useRef)(null),ee=(0,T.useRef)(null),et=(0,T.useRef)(!1),en=(0,T.useRef)(null),ei=(0,T.useRef)([]),er=(0,T.useRef)({guessesUsed:0,totalGuesses:10,remaining:10}),ea=(0,T.useRef)({tilesRevealed:0,totalTiles:0,progress:0,remaining:0}),es=(0,T.useRef)(null),eo=(0,T.useRef)(null),el=(0,T.useRef)(null),eu=(0,T.useRef)(null),ec=(0,T.useRef)(null),ed=(0,T.useRef)(null),eh=(0,T.useRef)(null),ef=(0,T.useRef)(null),ep=(0,T.useRef)(null),em=(0,T.useRef)(null),eg=(0,T.useRef)(null),ev=(0,T.useRef)(null),ey=(0,T.useCallback)((e,t)=>{let n;n=0===t?"tiles0":1===t?"tiles1":t>=2&&t<=4?"tiles2Through4":t>=5&&t<=7?"tiles5Through7":"tiles8Through10";let i="",r="",a=null;if(e){var s;i=1===t?S.headlineSingular:S.headlinePlural;let e=null===(s=S.tileText)||void 0===s?void 0:s[n];if(Array.isArray(e)&&e.length>0){let t=Math.floor(Math.random()*e.length),n=e[t];
252n&&"object"==typeof n&&"subhead"in n&&(r=n.subhead||"")}}else i=S.incorrectHeadline,r=S.incorrectSubhead;return{headline:(null==i?void 0:i.replace("{{count}}",String(t)))||"",subhead:r,body:a,shareButton:S.shareButton,playMoreButton:S.playMoreButton,shopButton:S.shopButton,shopUrl:S.shopUrl,copiedToast:S.copiedToast,circleCta:S.circleCta}},[S]),e_=(0,T.useCallback)(async()=>{m(await (0,D.Am)(a.coverStoryAlbumImage||""));let{album:e}=await (0,D.Mw)(a.albumFormatted)||{};v(e)},[a]),{showCursorFollower:eb,setShowCursorFollower:ex,externalCursorPos:eC,setExternalCursorPos:eE,calculateCursorFollowerPosition:ew}=DI({rootRef:es,enabled:!0});(0,T.useEffect)(()=>{s("Component mounted - resetting refs and game state"),K.current=!1,X.current=!1,l("playing")},[]),(0,T.useEffect)(()=>{let e=new DA({sequences:[{sequence:"99999",callback:()=>{s("Secret code activated! Clearing localStorage."),localStorage.clear()},description:"Clear localStorage and reload"}],debug:!1});return()=>e.destroy()},[]),(0,T.useEffect)(()=>{e_()},[a]),(0,T.useEffect)(()=>{let e=document.body;return j?e.classList.add("locked"):e.classList.remove("locked"),()=>{e.classList.remove("locked")}},[j]);let eS=(0,T.useCallback)((e,t)=>{var n;let i="won"===e?"won":"lost";l(i),s("gameOverMan",{reason:e,newGameState:i,playerSubmitted:t});let r=ey("won"===i,R.guessesUsed);s("gameOverMan - Generated game over copy",r),$(r),O(!0);let a=Z.current,o={};for(let e=0;e<a.length;e++){let t=a[e],n=t%P;o[n]||(o[n]=[]),o[n].push(t)}let c=null===(n=ep.current)||void 0===n?void 0:n.call(ep);if(!c){s("ERROR: tilesMap not available");return}let d=nT.p8.timeline({onComplete:()=>{s("Timeline complete - all tiles faded out"),eo.current&&nT.p8.set(eo.current,{pointerEvents:"none",visibility:"hidden"}),ed.current&&ed.current.animateIn(),S.circleCta&&setTimeout(()=>{let e=ew();e&&(eE(e),ex(!0))},1500)}}).add("start");em.current&&(d.add("gameInputOut","start+=0.1"),d.to(em.current,{autoAlpha:0,duration:.4,ease:"power1.out"},"gameInputOut")),eg.current&&(d.add("gameMeterOut","start+=0.1"),d.to(eg.current,{autoAlpha:0,duration:.4,ease:"power1.out"},"gameMeterOut")),el.current&&(s("Adding GameFooter fade out"),d.add("gameFooterOut","start+=-0.1"),d.set(el.current,{pointerEvents:"none"},"gameFooterOut"),d.to(el.current,{autoAlpha:0,y:24,duration:.4,ease:"power1.out"},"gameFooterOut"));let h=wS.GAME_OVER_FADE_TILES_GAP_DUR,f=wS.GAME_OVER_FADE_TILES_DUR;for(let e=0;e<P;e++)(o[e]||[]).forEach(t=>{let n=c.get(t);(null==n?void 0:n.wrapper)&&d.to(n.wrapper,{opacity:0,duration:f,ease:"power1.out"},e*h)});t&&Q.current&&d.call(()=>{let e=1e3;Q.current.play(),Q.current.fade(0,u,e),J.current&&clearTimeout(J.current),J.current=setTimeout(()=>{Q.current.fade(u,0,e)},1e3*Q.current.duration()-e)},[],">=")},[l,P,R.guessesUsed]),eL=(0,T.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Q.current;if(!n)return;if(J.current&&(clearTimeout(J.current),J.current=null),ee.current&&(clearTimeout(ee.current),ee.current=null),!n.playing()){n.stop(),t&&(n.unload(),Q.current=null);return}let i=n.volume();if(i>0){n.fade(i,0,e),ee.current=setTimeout(()=>{n.stop(),t&&(n.unload(),Q.current===n&&(Q.current=null))},e);return}n.stop(),t&&(n.unload(),Q.current=null)},[]),eP=(0,T.useCallback)(e=>{s("Restoring in-progress game - flipping tiles...",e),et.current=!0,e.flippedTileIds.length>0&&ef.current?(s("Restoring flipped tiles:",e.flippedTileIds),Y.current=Z.current.filter(t=>!e.flippedTileIds.includes(t)),e.flippedTileIds.forEach((t,n)=>{setTimeout(()=>{var i;null===(i=ef.current)||void 0===i||i.call(ef,t),n===e.flippedTileIds.length-1&&setTimeout(()=>{et.current=!1,s("Game state restoration complete")},200)},50*n)})):(et.current=!1,s("No tiles to restore, state restoration complete"))},[]),eM=(0,T.useCallback)((e,t)=>{if(K.current){s("handleGameOver already triggered, ignoring duplicate call");return}K.current=!0,eS(e,t)},[eS]),eA=(0,T.useCallback)(()=>{if(!f||"playing"!==o)return;if(0===Z.current.length){s("Skipping save - tile tracking not initialized yet");return}let e=Z.current.filter(e=>!Y.current.includes(e));wO({gameNumber:String(f),gameTitle:i,gridSize:P,flippedTileIds:e,guessMeterData:[...ei.current],guessesUsed:er.current.guessesUsed,tilesRevealed:ea.current.tilesRevealed,lastUpdated:new Date().toISOString()})},[f,i,P,o,s]);(0,T.useEffect)(()=>{en.current=eA},[eA]);let eI=(0,T.useCallback)((e,t)=>{let n={tilesRevealed:e,totalTiles:t,progress:Math.round(e/t*100),remaining:t-e};if(I(n),ea.current=n,0===Z.current.length&&t>0){let e=Array.from({length:t},(e,t)=>t);Z.current=e,Y.current=[...e],s("Initialized tile tracking:",{totalTiles:t,allIds:e});let n=wD(String(f));if(n)s("User has already completed this game before:",{gameNumber:f}),ev.current&&setTimeout(()=>{ev.current(n.won?"won":"out-of-guesses")},824);else{let e=wF(String(f));
252if(e){if(s("Found in-progress game data:",e),e.gridSize!==P){s("WARNING: Grid size mismatch. Saved:",e.gridSize,"Current:",P),s("Clearing invalid in-progress data"),wj(String(f));return}setTimeout(()=>{eP(e)},300)}}}},[]),eR=(0,T.useCallback)((e,t)=>{let n={guessesUsed:e,totalGuesses:t,remaining:t-e};k(n),er.current=n},[]),ek=(0,T.useCallback)((e,t)=>{if("playing"!==o)return;let n=[];for(let i=1;i<=e;i++)t.includes(i)?n.push("incorrect"):n.push("tile");if(q(n),ei.current=n,!et.current&&t.length>0){var i;null===(i=en.current)||void 0===i||i.call(en)}},[o]),eD=(0,T.useCallback)(()=>{U(!1),wk(!0)},[]),eN=(0,T.useCallback)(()=>{U(!0)},[]),eF=(0,T.useCallback)(e=>{eh.current=e},[]),eO=(0,T.useCallback)(e=>{ef.current=e},[]),ej=(0,T.useCallback)(e=>{ep.current=e},[]),eU=(0,T.useCallback)(e=>{em.current=e},[]),eV=(0,T.useCallback)(e=>{eg.current=e},[]),eB=(0,T.useCallback)(e=>{ev.current=e},[]),eH=(0,T.useCallback)(e=>{if(Y.current=Y.current.filter(t=>t!==e),!et.current){var t;null===(t=en.current)||void 0===t||t.call(en)}},[]),eG=(0,T.useMemo)(()=>{let e=10,t="";for(let e=0;e<z.length;e++)"incorrect"===z[e]?t+=wT.INCORRECT_GUESS:t+=wT.TILE_REVEALED;if("won"===o){if(z.length<e){t+=ww?wT.CORRECT_GUESS:wT.UNUSED;let n=e-z.length-1;n>0&&(t+=wT.UNUSED.repeat(n))}}else{let n=e-z.length;n>0&&(t+=wT.UNUSED.repeat(n))}return t},[o,z]);return((0,T.useEffect)(()=>{if("won"!==o&&"lost"!==o||!a.gameNumber||wD(String(a.gameNumber)))return;let e={gameNumber:String(a.gameNumber),emojiSet:eG,completedAt:new Date().toISOString(),guessCount:R.guessesUsed,won:"won"===o,tilesRevealed:A.tilesRevealed,gameTitle:i,guessCountFormatted:"(".concat(R.guessesUsed,"/10)")};wN(e),s("Saved completed game to localStorage",e)},[o,a.gameNumber,eG,R.guessesUsed,s,A.tilesRevealed,i]),(0,T.useEffect)(()=>{eL(200,!0),a.audio&&(Q.current=new uN.Howl({src:a.audio,volume:0,html5:!1,autoplay:!1}))},[a,eL]),(0,T.useEffect)(()=>()=>{eL(300,!0)},[eL]),h&&c)?(0,w.jsxs)("div",{className:DR("game",{"game-over":F}),ref:es,children:[(0,w.jsx)(Dw,{title:i,gameData:a,gameState:o}),(0,w.jsxs)("div",{className:DR("game-main-content"),ref:ec,...j&&{inert:""},children:[(0,w.jsx)("div",{className:DR("wrapper-game-board",{"game-is-over":F}),ref:eo,children:(0,w.jsx)(k0,{gridSize:M.gridSize,canvasSize:M.canvasSize,imageSrc:M.imageSrc,correctAnswer:g,onGameStateUpdate:eI,onGuessUsed:eR,onGuessMeterUpdate:ek,onGameOver:eM,onGetRemainingTiles:eF,onGetFlipTileFunction:eO,onGetTilesMap:ej,onGetwrapperGameInputRef:eU,onGetwrapperGameMeterRef:eV,onTileFlipped:eH,onTriggerGameOver:eB,initialGuessesUsed:V,initialIncorrectGuesses:H,copy:{gameInput:x,gameMeter:C,finalGuessToast:E}},"".concat(M.imageSrc,"-").concat(M.gridSize))}),F&&W&&(0,w.jsx)("div",{className:DR("wrapper-game-over"),ref:eu,children:(0,w.jsx)(Df,{ref:ed,gameResult:"won"===o?"won":"lost",albumImage:p,guessMeterEmoji:eG,gameTitle:i,gameNumber:a.gameNumber?String(a.gameNumber):"",guessCount:"(".concat(R.guessesUsed,"/10)"),copy:W})})]}),(0,w.jsxs)("div",{className:DR("game-footer"),ref:el,...j&&{inert:""},children:[(0,w.jsx)("span",{className:DR("title-uc-xs","game-footer-name"),children:"Cover Story"}),(0,w.jsx)("button",{className:DR("help-button"),onClick:eN,"aria-label":(null===(n=r.ariaLabels)||void 0===n?void 0:n.showInstructions)||"How to play",children:(0,w.jsx)(DP,{"aria-hidden":"true",className:"game-icon"})})]}),(0,w.jsx)(Db,{isVisible:j,onClose:eD,copy:b}),wx&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("button",{className:"debug-button ".concat(DR("debug-clear-storage-button")),onClick:()=>{wU(),s("localStorage cleared via debug button")},children:"Clear Storage"}),(0,w.jsx)("div",{className:DR("debug-fake-privacy-element"),children:"Privacy"})]}),(0,w.jsx)(uD.P,{propClassName:DR("circle-cta"),circleText:S.circleCta,container:es,icon:DM.Z,iconClass:DR(["circle-cta-icon"]),isVisible:eb,mouseActive:!1,externalPos:eC,onClick:()=>{let e=es.current;if(e){let t=e.getBoundingClientRect(),n=window.scrollY+t.bottom;window.scrollTo({top:n,behavior:"smooth"})}}})]}):null},DD=n(463),DN=n.n(DD);let DF=O().bind(DN());function DO(e){let{artifactSingularHeadline:t,artifactSingularBody:n,image:i,cta:r,className:a}=e,s=(0,D.Cr)(r),o=(0,T.useRef)(null),{isDesktop:l}=(0,N.dg)(),u=k.LL,c=l?u.lg.triggerPercent:u.sm.triggerPercent,d=(0,I.Y)(o,{amount:c,once:u.once});return(0,w.jsx)("div",{className:DF(["album-desc-block",a]),ref:o,children:(0,w.jsx)(c4,{isInView:d,children:(0,w.jsxs)(E.W,{className:DF("content"),children:[(0,w.jsx)("div",{className:DF("column-visual"),children:(0,w.jsx)(tc.E,{className:DF("image"),image:i})}),(0,w.jsxs)("div",{className:DF("column-copy"),children:[(0,w.jsx)("div",{className:DF("title"),children:(0,w.jsx)("h2",{className:DF("title-uc-xl","title__lines"),children:t.map((e,t)=>(0,w.jsx)("span",{className:DF(["line","title__lines__line-".concat(t)]),dangerouslySetInnerHTML:{__html:(0,D.Ay)(e.line)}},t))})}),(0,w.jsx)("div",{className:DF("body"),children:n.map((e,t)=>(0,w.jsxs)("div",{className:DF("body__p-container"),children:[(0,w.jsx)("p",{className:"text-m",dangerouslySetInnerHTML:{__html:e.text}}),t===n.length-1&&s&&(0,w.jsx)(id.z,{...s})]},t))})]})]})})})}var Dj=n(2888),DU=n.n(Dj);let DV=O().bind(DU());
252function DB(e){let{coverStories:t,gameData:n,options:i,pageUri:r}=e,{log:a}=(0,ij.q)({name:"CoverStoryEndScreen",bgColor:"#D92929",textColor:"white",enabled:!1}),{coverStoryListHeadline:s,coverStoryListSubhead:o,coverStoryListLabels:l,coverStoryEndScreenBanner:u}=i,{artistFeature:{body:c,cta:d,image:h},databaseId:f}=n,p=(0,T.useMemo)(()=>(null==c?void 0:c.map(e=>({text:e.text})))||[],[c]),m=(0,T.useMemo)(()=>d||null,[d]);return a({gameData:n,options:i,coverStories:t,bodyText:p,featureCta:m}),(0,w.jsxs)("section",{className:DV(["cover-story-end-screen"]),children:[(0,w.jsx)(DO,{className:DV("cover-story-end-feature"),artifactSingularHeadline:[{line:"Cover"},{line:"**Story**"}],artifactSingularBody:p,image:h,cta:m}),(0,w.jsx)(ui.j,{...u}),(0,w.jsx)(kE,{coverStories:t,notIn:[f],headline:s,subhead:o,labels:l,pageUri:r})]})}var DH=n(42787),DG=n.n(DH);let Dz=O().bind(DG());function Dq(e){let{coverStories:t,gameData:n,options:i,title:r,pageUri:a}=e,{log:s}=(0,ij.q)({name:"CoverStory",bgColor:"#044BD9",textColor:"white",enabled:!1}),{gameState:o}=(0,kw.BX)();return s({options:i,gameData:n,coverStories:t,gameState:o}),(0,w.jsxs)("section",{className:Dz(["cover-story"]),children:[(0,w.jsx)(Dk,{title:r,options:i,gameData:n},n.gameNumber),("won"===o||"lost"===o)&&(0,w.jsx)(DB,{options:i,coverStories:t,gameData:n,pageUri:a})]})}var DW=n(67187),D$=n.n(DW);let DZ=O().bind(D$());function DY(e){let{inducteeLandingData:t}=e,{allInductees:n,inducteesLoading:i}=(0,rB.Z)();return(0,w.jsx)(ez.M,{mode:"wait",children:i?(0,w.jsx)(R.E.div,{className:DZ("inductee-landing-loader"),initial:{opacity:0}
252,animate:{opacity:1},exit:{opacity:0},children:(0,w.jsx)(is.u,{className:DZ("spinner")})},"inductee-landing-loader"):(0,w.jsx)(cq,{inducteeLandingData:t,inductees:n})})}},81221:function(e,t,n){"use strict";n.d(t,{JU:function(){return a},QE:function(){return i},df:function(){return s},e_:function(){return r}});let i={OutQuad:[.5,1,.89,1],InQuad:[.11,0,.5,0],InOutQuad:[.45,0,.55,1]},r={BLUE:"var(--blue)",GREEN:"var(--green)",YELLOW:"var(--yellow)",PINK:"var(--pink)",ORANGE:"var(--orange)"},a={museum:r.BLUE,brand:r.GREEN,induction:r.YELLOW,features:r.PINK,play:r.PINK,post:r.PINK},s="/rrtv/"},43397:function(e,t,n){"use strict";n.d(t,{UE:function(){return s},Yw:function(){return a},hl:function(){return i},w2:function(){return r}});let i=[.5,1,.89,1],r=[.33,1,.68,1],a=[.36,0,.66,-.56],s=[.34,1.56,.64,1]},15799:function(e,t,n){"use strict";let i;n.d(t,{f7:function(){return lJ},F3:function(){return l1},sf:function(){return l9},Mw:function(){return ui},Am:function(){return un},xd:function(){return lX},b6:function(){return lW},i5:function(){return l$},p6:function(){return lq},sC:function(){return l4},Mu:function(){return l5},Y_:function(){return lz},Ay:function(){return lk},Vb:function(){return lN},A3:function(){return l6},Cr:function(){return l3},pz:function(){return lQ},iT:function(){return lY},Dy:function(){return lF},tj:function(){return l7},TO:function(){return l8},eu:function(){return lH},Ee:function(){return lB},b1:function(){return lR},Sf:function(){return lO},JW:function(){return lj},bz:function(){return lK},ug:function(){return l0},IQ:function(){return lZ},VT:function(){return lD},$e:function(){return l2},t3:function(){return lG},rL:function(){return lV},OW:function(){return lU}});let r=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)},a=Number.isSafeInteger||function(e){return"number"==typeof e&&Math.abs(e)<=s},s=Number.MAX_SAFE_INTEGER||9007199254740991,o=function(e){return e.NETWORK_ERROR="networkError",e.MEDIA_ERROR="mediaError",e.KEY_SYSTEM_ERROR="keySystemError",e.MUX_ERROR="muxError",e.OTHER_ERROR="otherError",e}({}),l=function(e){return e.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",e.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",e.KEY_SYSTEM_NO_SESSION="keySystemNoSession",e.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",e.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",e.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",e.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",e.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",e.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",e.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",e.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR="keySystemDestroyMediaKeysError",e.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR="keySystemDestroyCloseSessionError",e.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR="keySystemDestroyRemoveSessionError",e.MANIFEST_LOAD_ERROR="manifestLoadError",e.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",e.MANIFEST_PARSING_ERROR="manifestParsingError",e.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",e.LEVEL_EMPTY_ERROR="levelEmptyError",e.LEVEL_LOAD_ERROR="levelLoadError",e.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",e.LEVEL_PARSING_ERROR="levelParsingError",e.LEVEL_SWITCH_ERROR="levelSwitchError",e.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",e.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",e.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",e.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",e.FRAG_LOAD_ERROR="fragLoadError",e.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",e.FRAG_DECRYPT_ERROR="fragDecryptError",e.FRAG_PARSING_ERROR="fragParsingError",e.FRAG_GAP="fragGap",e.REMUX_ALLOC_ERROR="remuxAllocError",e.KEY_LOAD_ERROR="keyLoadError",e.KEY_LOAD_TIMEOUT="keyLoadTimeOut",e.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",e.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",e.BUFFER_APPEND_ERROR="bufferAppendError",e.BUFFER_APPENDING_ERROR="bufferAppendingError",e.BUFFER_STALLED_ERROR="bufferStalledError",e.BUFFER_FULL_ERROR="bufferFullError",e.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",e.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",e.ASSET_LIST_LOAD_ERROR="assetListLoadError",e.ASSET_LIST_LOAD_TIMEOUT="assetListLoadTimeout",e.ASSET_LIST_PARSING_ERROR="assetListParsingError",e.INTERSTITIAL_ASSET_ITEM_ER
vendor: 4,101 bytes, line 252
252ROR="interstitialAssetItemError",e.INTERNAL_EXCEPTION="internalException",e.INTERNAL_ABORTED="aborted",e.ATTACH_MEDIA_ERROR="attachMediaError",e.UNKNOWN="unknown",e}({}),u=function(e){return e.MEDIA_ATTACHING="hlsMediaAttaching",e.MEDIA_ATTACHED="hlsMediaAttached",e.MEDIA_DETACHING="hlsMediaDetaching",e.MEDIA_DETACHED="hlsMediaDetached",e.MEDIA_ENDED="hlsMediaEnded",e.STALL_RESOLVED="hlsStallResolved",e.BUFFER_RESET="hlsBufferReset",e.BUFFER_CODECS="hlsBufferCodecs",e.BUFFER_CREATED="hlsBufferCreated",e.BUFFER_APPENDING="hlsBufferAppending",e.BUFFER_APPENDED="hlsBufferAppended",e.BUFFER_EOS="hlsBufferEos",e.BUFFERED_TO_END="hlsBufferedToEnd",e.BUFFER_FLUSHING="hlsBufferFlushing",e.BUFFER_FLUSHED="hlsBufferFlushed",e.MANIFEST_LOADING="hlsManifestLoading",e.MANIFEST_LOADED="hlsManifestLoaded",e.MANIFEST_PARSED="hlsManifestParsed",e.LEVEL_SWITCHING="hlsLevelSwitching",e.LEVEL_SWITCHED="hlsLevelSwitched",e.LEVEL_LOADING="hlsLevelLoading",e.LEVEL_LOADED="hlsLevelLoaded",e.LEVEL_UPDATED="hlsLevelUpdated",e.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",e.LEVELS_UPDATED="hlsLevelsUpdated",e.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",e.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",e.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",e.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",e.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",e.AUDIO_TRACK_UPDATED="hlsAudioTrackUpdated",e.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",e.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",e.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",e.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",e.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",e.SUBTITLE_TRACK_UPDATED="hlsSubtitleTrackUpdated",e.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",e.CUES_PARSED="hlsCuesParsed",e.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",e.INIT_PTS_FOUND="hlsInitPtsFound",e.FRAG_LOADING="hlsFragLoading",e.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",e.FRAG_LOADED="hlsFragLoaded",e.FRAG_DECRYPTED="hlsFragDecrypted",e.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",e.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",e.FRAG_PARSING_METADATA="hlsFragParsingMetadata",e.FRAG_PARSED="hlsFragParsed",e.FRAG_BUFFERED="hlsFragBuffered",e.FRAG_CHANGED="hlsFragChanged",e.FPS_DROP="hlsFpsDrop",e.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",e.MAX_AUTO_LEVEL_UPDATED="hlsMaxAutoLevelUpdated",e.ERROR="hlsError",e.DESTROYING="hlsDestroying",e.KEY_LOADING="hlsKeyLoading",e.KEY_LOADED="hlsKeyLoaded",e.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",e.BACK_BUFFER_REACHED="hlsBackBufferReached",e.STEERING_MANIFEST_LOADED="hlsSteeringManifestLoaded",e.ASSET_LIST_LOADING="hlsAssetListLoading",e.ASSET_LIST_LOADED="hlsAssetListLoaded",e.INTERSTITIALS_UPDATED="hlsInterstitialsUpdated",e.INTERSTITIALS_BUFFERED_TO_BOUNDARY="hlsInterstitialsBufferedToBoundary",e.INTERSTITIAL_ASSET_PLAYER_CREATED="hlsInterstitialAssetPlayerCreated",e.INTERSTITIAL_STARTED="hlsInterstitialStarted",e.INTERSTITIAL_ASSET_STARTED="hlsInterstitialAssetStarted",e.INTERSTITIAL_ASSET_ENDED="hlsInterstitialAssetEnded",e.INTERSTITIAL_ASSET_ERROR="hlsInterstitialAssetError",e.INTERSTITIAL_ENDED="hlsInterstitialEnded",e.INTERSTITIALS_PRIMARY_RESUMED="hlsInterstitialsPrimaryResumed",e.PLAYOUT_LIMIT_REACHED="hlsPlayoutLimitReached",e.EVENT_CUE_ENTER="hlsEventCueEnter",e}({});var c,d,h={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},f={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};class p{constructor(e,t=0,n=0){this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=e,this.alpha_=e?Math.exp(Math.log(.5)/e):0,this.estimate_=t,this.totalWeight_=n}sample(e,t){let n=Math.pow(this.alpha_,e);this.estimate_=t*(1-n)+n*this.estimate_,this.totalWeight_+=e}getTotalWeight(){return this.totalWeight_}getEstimate(){if(this.alpha_){let e=1-Math.pow(this.alpha_,this.totalWeight_);if(e)return this.estimate_/e}return this.estimate_}}class m{constructor(e,t,n,i=100){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_
252=void 0,this.fast_=void 0,this.defaultTTFB_=void 0,this.ttfb_=void 0,this.defaultEstimate_=n,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new p(e),this.fast_=new p(t),this.defaultTTFB_=i,this.ttfb_=new p(e)}update(e,t){let{slow_:n,fast_:i,ttfb_:r}=this;n.halfLife!==e&&(this.slow_=new p(e,n.getEstimate(),n.getTotalWeight())),i.halfLife!==t&&(this.fast_=new p(t,i.getEstimate(),i.getTotalWeight())),r.halfLife!==e&&(this.ttfb_=new p(e,r.getEstimate(),r.getTotalWeight()))}sample(e,t){let n=(e=Math.max(e,this.minDelayMs_))/1e3,i=8*t/n;this.fast_.sample(n,i),this.slow_.sample(n,i)}sampleTTFB(e){let t=Math.sqrt(2)*Math.exp(-Math.pow(e/1e3,2)/2);this.ttfb_.sample(t,Math.max(e,5))}canEstimate(){return this.fast_.getTotalWeight()>=this.minWeight_}getEstimate(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_}getEstimateTTFB(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_}get defaultEstimate(){return this.defaultEstimate_}destroy(){}}function g(e,t,n){return(t=x(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(){return(v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function b(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t);if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function x(e){var t=b(e,"string");return"symbol"==typeof t?t:t+""}class C{constructor(e,t){this.trace=void 0,this.debug=void 0,this.log=void 0,this.warn=void 0,this.info=void 0,this.error=void 0;let n=`[${e}]:`;this.trace=E,this.debug=t.debug.bind(null,n),this.log=t.log.bind(null,n),this.warn=t.warn.bind(null,n),this.info=t.info.bind(null,n),this.error=t.error.bind(null,n)}}let E=function(){},w={trace:E,debug:E,log:E,warn:E,info:E,error:E};function T(){return v({},w)}function S(e,t){let n=self.console[e];return n?n.bind(self.console,`${t?"["+t+"] ":""}[${e}] >`):E}function L(e,t,n){return t[e]?t[e].bind(t):S(e,n)}let P=T();function M(e,t,n){let i=T();if("object"==typeof console&&!0===e||"object"==typeof e){let r=["debug","log","info","warn","error"];r.forEach(t=>{i[t]=L(t,e,n)});try{i.log(`Debug logs enabled for "${t}" in hls.js version 1.6.10`)}catch(e){return T()}r.forEach(t=>{P[t]=L(t,e)})}else v(P,i);return i}let A=P;function I(e=!0){if("undefined"!=typeof self)return(e||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function R(e){return"undefined"!=typeof self&&e===self.ManagedMediaSource}function k(e,t){let n=Object.keys(e),i=Object.keys(t),r=n.length,a=i.length;return!r||!a||r===a&&!n.some(e=>-1===i.indexOf(e))}function D(e,t=!1){let n,i;if("undefined"!=typeof TextDecoder){let n=new TextDecoder("utf-8").decode(e);if(t){let e=n.indexOf("\0");return -1!==e?n.substring(0,e):n}return n.replace(/\0/g,"")}let r=e.length,a="",s=0;for(;s<r&&(0!==(n=e[s++])||!t);)if(0!==n&&3!==n)switch(n>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:a+=String.fromCharCode(n);break;case 12:case 13:a+=String.fromCharCode((31&n)<<6|63&(i=e[s++]));break;case 14:a+=String.fromCharCode((15&n)<<12|(63&(i=e[s++]))<<6|(63&e[s++])<<0)}return a}let N={hexDump:function(e){let t="";for(let n=0;n<e.length;n++){let i=e[n].toString(16);i.length<2&&(i="0"+i),t+=i}return t}};function F(e){return Uint8Array.from(e.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}
252function O(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var j={exports:{}},U=function(){return c||(c=1,function(e,t){!function(t){var n=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,i=/^(?=([^\/?#]*))\1([^]*)$/,r=/(?:\/|^)\.(?=\/)/g,a=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,s={buildAbsoluteURL:function(e,t,n){if(n=n||{},e=e.trim(),!(t=t.trim())){if(!n.alwaysNormalize)return e;var r=s.parseURL(e);if(!r)throw Error("Error trying to parse base URL.");return r.path=s.normalizePath(r.path),s.buildURLFromParts(r)}var a=s.parseURL(t);if(!a)throw Error("Error trying to parse relative URL.");if(a.scheme)return n.alwaysNormalize?(a.path=s.normalizePath(a.path),s.buildURLFromParts(a)):t;var o=s.parseURL(e);if(!o)throw Error("Error trying to parse base URL.");if(!o.netLoc&&o.path&&"/"!==o.path[0]){var l=i.exec(o.path);o.netLoc=l[1],o.path=l[2]}o.netLoc&&!o.path&&(o.path="/");var u={scheme:o.scheme,netLoc:a.netLoc,path:null,params:a.params,query:a.query,fragment:a.fragment};if(!a.netLoc&&(u.netLoc=o.netLoc,"/"!==a.path[0])){if(a.path){var c=o.path,d=c.substring(0,c.lastIndexOf("/")+1)+a.path;u.path=s.normalizePath(d)}else u.path=o.path,a.params||(u.params=o.params,a.query||(u.query=o.query))}return null===u.path&&(u.path=n.alwaysNormalize?s.normalizePath(a.path):a.path),s.buildURLFromParts(u)},parseURL:function(e){var t=n.exec(e);return t?{scheme:t[1]||"",netLoc:t[2]||"",path:t[3]||"",params:t[4]||"",query:t[5]||"",fragment:t[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(r,"");e.length!==(e=e.replace(a,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}};e.exports=s}()}(j)),j.exports}();class V{constructor(){this.aborted=!1,this.loaded=0,this.retry=0,this.total=0,this.chunkCount=0,this.bwEstimate=0,this.loading={start:0,first:0,end:0},this.parsing={start:0,end:0},this.buffering={start:0,first:0,end:0}}}var B={AUDIO:"audio",VIDEO:"video",AUDIOVIDEO:"audiovideo"};class H{constructor(e){this._byteRange=null,this._url=null,this._stats=null,this._streams=null,this.base=void 0,this.relurl=void 0,"string"==typeof e&&(e={url:e}),this.base=e,$(this,"stats")}setByteRange(e,t){let n;let i=e.split("@",2);n=1===i.length?(null==t?void 0:t.byteRangeEndOffset)||0:parseInt(i[1]),this._byteRange=[n,parseInt(i[0])+n]}get baseurl(){return this.base.url}get byteRange(){return null===this._byteRange?[]:this._byteRange}get byteRangeStartOffset(){return this.byteRange[0]}get byteRangeEndOffset(){return this.byteRange[1]}get elementaryStreams(){return null===this._streams&&(this._streams={[B.AUDIO]:null,[B.VIDEO]:null,[B.AUDIOVIDEO]:null}),this._streams}set elementaryStreams(e){this._streams=e}get hasStats(){return null!==this._stats}get hasStreams(){return null!==this._streams}get stats(){return null===this._stats&&(this._stats=new V),this._stats}set stats(e){this._stats=e}get url(){return!this._url&&this.baseurl&&this.relurl&&(this._url=U.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""}set url(e){this._url=e}clearElementaryStreamInfo(){let{elementaryStreams:e}=this;e[B.AUDIO]=null,e[B.VIDEO]=null,e[B.AUDIOVIDEO]=null}}function G(e){return"initSegment"!==e.sn}class z extends H{constructor(e,t){super(t),this._decryptdata=null,this._programDateTime=null,this._ref=null,this._bitrate=void 0,this.rawProgramDateTime=null,this.tagList=[],this.duration=0,this.sn=0,this.levelkeys=void 0,this.type=void 0,this.loader=null,this.keyLoader=null,this.level=-1,this.cc=0,this.startPTS=void 0,this.endPTS=void 0,this.startDTS=void 0,this.endDTS=void 0,this.start=0,this.playlistOffset=0,this.deltaPTS=void 0,this.maxStartPTS=void 0,this.minEndPTS=void 0,this.data=void 0,this.bitrateTest=!1,this.title=null,this.initSegment=null,this.endList=void 0,this.gap=void 0,this.urlId=0,this.type=e}get byteLength(){if(this.hasStats){let e=this.stats.total;if(e)return e}if(this.byteRange.length){let e=this.byteRange[0],t=this.byteRange[1];if(r(e)&&r(t))return t-e}return null}get bitrate(){return this.byteLength?8*this.byteLength/this.duration:this._bitrate?this._bitrate:null}set bitrate(e){this._bitrate=e}get decryptdata(){let{levelkeys:e}=this;if(!e&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkeys&&!this.levelkeys.NONE){let e=this.levelkeys.identity;if(e)this._decryptdata=e.getDecryptData(this.sn);else{let e=Object.keys(this.levelkeys);if(1===e.length){let t=this._decryptdata=this.levelkeys[e[0]]||null;if(t)return t.getDecryptData(this.sn)}}}return this._decryptdata}get end(){return this.start+this.duration}get endProgramDateTime(){if(null===this.programDateTime)return null;let e=r(this.duration)?this.duration:0;return this.programDateTime+1e3*e}get encrypted(){var e,t;if(null!=(e=this._decryptdata)&&e.encrypted)return!0;
252if(this.levelkeys){let e=Object.keys(this.levelkeys),n=e.length;if(n>1||1===n&&null!=(t=this.levelkeys[e[0]])&&t.encrypted)return!0}return!1}get programDateTime(){return null===this._programDateTime&&this.rawProgramDateTime&&(this.programDateTime=Date.parse(this.rawProgramDateTime)),this._programDateTime}set programDateTime(e){if(!r(e)){this._programDateTime=this.rawProgramDateTime=null;return}this._programDateTime=e}get ref(){return G(this)?(this._ref||(this._ref={base:this.base,start:this.start,duration:this.duration,sn:this.sn,programDateTime:this.programDateTime}),this._ref):null}addStart(e){this.setStart(this.start+e)}setStart(e){this.start=e,this._ref&&(this._ref.start=e)}setDuration(e){this.duration=e,this._ref&&(this._ref.duration=e)}setKeyFormat(e){if(this.levelkeys){let t=this.levelkeys[e];t&&!this._decryptdata&&(this._decryptdata=t.getDecryptData(this.sn))}}abortRequests(){var e,t;null==(e=this.loader)||e.abort(),null==(t=this.keyLoader)||t.abort()}setElementaryStreamInfo(e,t,n,i,r,a=!1){let{elementaryStreams:s}=this,o=s[e];if(!o){s[e]={startPTS:t,endPTS:n,startDTS:i,endDTS:r,partial:a};return}o.startPTS=Math.min(o.startPTS,t),o.endPTS=Math.max(o.endPTS,n),o.startDTS=Math.min(o.startDTS,i),o.endDTS=Math.max(o.endDTS,r)}}class q extends H{constructor(e,t,n,i,r){super(n),this.fragOffset=0,this.duration=0,this.gap=!1,this.independent=!1,this.relurl=void 0,this.fragment=void 0,this.index=void 0,this.duration=e.decimalFloatingPoint("DURATION"),this.gap=e.bool("GAP"),this.independent=e.bool("INDEPENDENT"),this.relurl=e.enumeratedString("URI"),this.fragment=t,this.index=i;let a=e.enumeratedString("BYTERANGE");a&&this.setByteRange(a,r),r&&(this.fragOffset=r.fragOffset+r.duration)}get start(){return this.fragment.start+this.fragOffset}get end(){return this.start+this.duration}get loaded(){let{elementaryStreams:e}=this;return!!(e.audio||e.video||e.audiovideo)}}function W(e,t){let n=Object.getPrototypeOf(e);if(n)return Object.getOwnPropertyDescriptor(n,t)||W(n,t)}function $(e,t){let n=W(e,t);n&&(n.enumerable=!0,Object.defineProperty(e,t,n))}let Z=4294967295,Y=[].push,K={video:1,audio:2,id3:3,text:4};function X(e){return String.fromCharCode.apply(null,e)}function Q(e,t){let n=e[t]<<8|e[t+1];return n<0?65536+n:n}function J(e,t){let n=et(e,t);return n<0?4294967296+n:n}function ee(e,t){let n=J(e,t);return n*=4294967296,n+=J(e,t+4)}function et(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function en(e){let t=e.byteLength;for(let n=0;n<t;){let i=J(e,n);if(i>8&&109===e[n+4]&&111===e[n+5]&&111===e[n+6]&&102===e[n+7])return!0;n=i>1?n+i:t}return!1}function ei(e,t){let n=[];if(!t.length)return n;let i=e.byteLength;for(let r=0;r<i;){let a=J(e,r),s=X(e.subarray(r+4,r+8)),o=a>1?r+a:i;if(s===t[0]){if(1===t.length)n.push(e.subarray(r+8,o));else{let i=ei(e.subarray(r+8,o),t.slice(1));i.length&&Y.apply(n,i)}}r=o}return n}function er(e){let t=[],n=e[0],i=8,r=J(e,8);i+=4;let a=0,s=0;0===n?(a=J(e,i),s=J(e,i+4),i+=8):(a=ee(e,i),s=ee(e,i+8),i+=16),i+=2;let o=e.length+s,l=Q(e,i);i+=2;for(let n=0;n<l;n++){let n=i,a=J(e,n);n+=4;let s=2147483647&a;if(1==(2147483648&a)>>>31)return A.warn("SIDX has hierarchical references (not supported)"),null;let l=J(e,n);n+=4,t.push({referenceSize:s,subsegmentDuration:l,info:{duration:l/r,start:o,end:o+s-1}}),o+=s,n+=4,i=n}return{earliestPresentationTime:a,timescale:r,version:n,referencesCount:l,references:t}}function ea(e){let t=[],n=ei(e,["moov","trak"]);for(let e=0;e<n.length;e++){let i=n[e],r=ei(i,["tkhd"])[0];if(r){let e=r[0],n=J(r,0===e?12:20),a=ei(i,["mdia","mdhd"])[0];if(a){e=a[0];let r=J(a,0===e?12:20),s=ei(i,["mdia","hdlr"])[0];if(s){let e=X(s.subarray(8,12)),a={soun:B.AUDIO,vide:B.VIDEO}[e],o=es(ei(i,["mdia","minf","stbl","stsd"])[0]);a?(t[n]={timescale:r,type:a,stsd:o},t[a]=_({timescale:r,id:n},o)):t[n]={timescale:r,type:e,stsd:o}}}}}return ei(e,["moov","mvex","trex"]).forEach(e=>{let n=t[J(e,4)];n&&(n.default={duration:J(e,12),flags:J(e,20)})}),t}function es(e){let t;let n=e.subarray(8),i=n.subarray(86),r=X(n.subarray(4,8)),a=r,s="enca"===r||"encv"===r;if(s){let e=ei(n,[r])[0].subarray("enca"===r?28:78);
252ei(e,["sinf"]).forEach(e=>{let t=ei(e,["schm"])[0];if(t){let n=X(t.subarray(4,8));if("cbcs"===n||"cenc"===n){let t=ei(e,["frma"])[0];t&&(a=X(t))}}})}let o=a;switch(a){case"avc1":case"avc2":case"avc3":case"avc4":{let e=ei(i,["avcC"])[0];e&&e.length>3&&(a+="."+ec(e[1])+ec(e[2])+ec(e[3]),t=eo("avc1"===o?"dva1":"dvav",i));break}case"mp4a":{let e=ei(n,[r])[0],t=ei(e.subarray(28),["esds"])[0];if(t&&t.length>7){let e=4;if(3!==t[e++])break;e=eu(t,e)+2;let n=t[e++];if(128&n&&(e+=2),64&n&&(e+=t[e++]),4!==t[e++])break;e=eu(t,e);let i=t[e++];if(64===i)a+="."+ec(i);else break;if(e+=12,5!==t[e++])break;e=eu(t,e);let r=t[e++],s=(248&r)>>3;31===s&&(s+=1+((7&r)<<3)+((224&t[e])>>5)),a+="."+s}break}case"hvc1":case"hev1":{let e=ei(i,["hvcC"])[0];if(e&&e.length>12){let t=e[1],n=["","A","B","C"][t>>6],i=31&t,r=J(e,2),s=(32&t)>>5?"H":"L",o=e[12],l=e.subarray(6,12);a+="."+n+i+"."+el(r).toString(16).toUpperCase()+"."+s+o;let u="";for(let e=l.length;e--;){let t=l[e];(t||u)&&(u="."+t.toString(16).toUpperCase()+u)}a+=u}t=eo("hev1"==o?"dvhe":"dvh1",i);break}case"dvh1":case"dvhe":case"dvav":case"dva1":case"dav1":a=eo(a,i)||a;break;case"vp09":{let e=ei(i,["vpcC"])[0];if(e&&e.length>6){let t=e[4],n=e[5],i=e[6]>>4&15;a+="."+ed(t)+"."+ed(n)+"."+ed(i)}break}case"av01":{let e=ei(i,["av1C"])[0];if(e&&e.length>2){let n=e[1]>>>5,r=31&e[1],s=e[2]>>>7?"H":"M",o=(64&e[2])>>6,l=(32&e[2])>>5,u=2===n&&o?l?12:10:o?10:8,c=(16&e[2])>>4,d=(8&e[2])>>3,h=(4&e[2])>>2,f=3&e[2],p=1,m=1,g=1,v=0;a+="."+n+"."+ed(r)+s+"."+ed(u)+"."+c+"."+d+h+f+"."+ed(p)+"."+ed(m)+"."+ed(g)+"."+v,t=eo("dav1",i)}}}return{codec:a,encrypted:s,supplemental:t}}function eo(e,t){let n=ei(t,["dvvC"]),i=n.length?n[0]:ei(t,["dvcC"])[0];if(i){let t=i[2]>>1&127,n=i[2]<<5&32|i[3]>>3&31;return e+"."+ed(t)+"."+ed(n)}}function el(e){let t=0;for(let n=0;n<32;n++)t|=(e>>n&1)<<31-n;return t>>>0}function eu(e,t){let n=t+5;for(;128&e[t++]&&t<n;);return t}function ec(e){return("0"+e.toString(16).toUpperCase()).slice(-2)}function ed(e){return(e<10?"0":"")+e}function eh(e,t){if(!e||!t)return;let n=t.keyId;n&&t.isCommonEncryption&&ei(e,["moov","trak"]).forEach(e=>{let t=ei(e,["mdia","minf","stbl","stsd"])[0].subarray(8),i=ei(t,["enca"]),r=i.length>0;
252r||(i=ei(t,["encv"])),i.forEach(e=>{ei(r?e.subarray(28):e.subarray(78),["sinf"]).forEach(e=>{let t=ef(e);if(t){let e=t.subarray(8,24);e.some(e=>0!==e)||(A.log(`[eme] Patching keyId in 'enc${r?"a":"v"}>sinf>>tenc' box: ${N.hexDump(e)} -> ${N.hexDump(n)}`),t.set(n,8))}})})})}function ef(e){let t=ei(e,["schm"])[0];if(t){let n=X(t.subarray(4,8));if("cbcs"===n||"cenc"===n)return ei(e,["schi","tenc"])[0]}return null}function ep(e,t,n){let i={},a=ei(e,["moof","traf"]);for(let e=0;e<a.length;e++){let s=a[e],o=ei(s,["tfhd"])[0],l=J(o,4),u=t[l];if(!u)continue;i[l]||(i[l]={start:NaN,duration:0,sampleCount:0,timescale:u.timescale,type:u.type});let c=i[l],d=ei(s,["tfdt"])[0];if(d){let e=d[0],t=J(d,4);1===e&&(t===Z?n.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"):(t*=Z+1,t+=J(d,8))),r(t)&&(!r(c.start)||t<c.start)&&(c.start=t)}let h=u.default,f=J(o,0)|(null==h?void 0:h.flags),p=(null==h?void 0:h.duration)||0;8&f&&(p=2&f?J(o,12):J(o,8));let m=ei(s,["trun"]),g=c.start||0,v=0,y=p;for(let e=0;e<m.length;e++){let t=m[e],n=J(t,4),i=c.sampleCount;c.sampleCount+=n;let r=1&t[3],a=4&t[3],s=1&t[2],o=2&t[2],l=4&t[2],u=8&t[2],d=8,h=n;for(r&&(d+=4),a&&n&&(1&t[d+1]||void 0!==c.keyFrameIndex||(c.keyFrameIndex=i),d+=4,s?(y=J(t,d),d+=4):y=p,o&&(d+=4),u&&(d+=4),g+=y,v+=y,h--);h--;)s?(y=J(t,d),d+=4):y=p,o&&(d+=4),l&&(1&t[d+1]||void 0!==c.keyFrameIndex||(c.keyFrameIndex=c.sampleCount-(h+1),c.keyFrameStart=g),d+=4),u&&(d+=4),g+=y,v+=y;!v&&p&&(v+=p*n)}c.duration+=v}if(!Object.keys(i).some(e=>i[e].duration)){let t=1/0,n=0,a=ei(e,["sidx"]);for(let e=0;e<a.length;e++){let i=er(a[e]);if(null!=i&&i.references){t=Math.min(t,i.earliestPresentationTime/i.timescale);let e=i.references.reduce((e,t)=>e+t.info.duration||0,0);n=Math.max(n,e+i.earliestPresentationTime/i.timescale)}}
252n&&r(n)&&Object.keys(i).forEach(e=>{i[e].duration||(i[e].duration=n*i[e].timescale-i[e].start)})}return i}function em(e){let t={valid:null,remainder:null},n=ei(e,["moof"]);if(n.length<2)return t.remainder=e,t;let i=n[n.length-1];return t.valid=e.slice(0,i.byteOffset-8),t.remainder=e.slice(i.byteOffset-8),t}function eg(e,t){let n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function ev(e,t){let n=[],i=t.samples,r=t.timescale,a=t.id,s=!1;return ei(i,["moof"]).map(o=>{let l=o.byteOffset-8;ei(o,["traf"]).map(o=>{let u=ei(o,["tfdt"]).map(e=>{let t=e[0],n=J(e,4);return 1===t&&(n*=4294967296,n+=J(e,8)),n/r})[0];return void 0!==u&&(e=u),ei(o,["tfhd"]).map(u=>{let c=J(u,4),d=16777215&J(u,0),h=(1&d)!=0,f=(2&d)!=0,p=(8&d)!=0,m=0,g=(16&d)!=0,v=0,y=(32&d)!=0,_=8;c===a&&(h&&(_+=8),f&&(_+=4),p&&(m=J(u,_),_+=4),g&&(v=J(u,_),_+=4),y&&(_+=4),"video"===t.type&&(s=ey(t.codec)),ei(o,["trun"]).map(a=>{let o=a[0],u=16777215&J(a,0),c=(1&u)!=0,d=0,h=(4&u)!=0,f=(256&u)!=0,p=0,g=(512&u)!=0,y=0,_=(1024&u)!=0,b=(2048&u)!=0,x=0,C=J(a,4),E=8;c&&(d=J(a,E),E+=4),h&&(E+=4);let w=d+l;for(let l=0;l<C;l++){if(f?(p=J(a,E),E+=4):p=m,g?(y=J(a,E),E+=4):y=v,_&&(E+=4),b&&(x=0===o?J(a,E):et(a,E),E+=4),t.type===B.VIDEO){let t=0;for(;t<y;){let a=J(i,w);w+=4,e_(s,i[w])&&eb(i.subarray(w,w+a),s?2:1,e+x/r,n),w+=a,t+=a+4}}e+=p/r}}))})})}),n}function ey(e){if(!e)return!1;let t=e.substring(0,4);return"hvc1"===t||"hev1"===t||"dvh1"===t||"dvhe"===t}function e_(e,t){if(!e)return 6==(31&t);{let e=t>>1&63;return 39===e||40===e}}function eb(e,t,n,i){let r;let a=ex(e);r=0+t;let s=0,o=0,l=0;for(;r<a.length;){s=0;do{if(r>=a.length)break;s+=l=a[r++]}while(255===l);o=0;do{if(r>=a.length)break;o+=l=a[r++]}while(255===l);let e=a.length-r,t=r;if(o<e)r+=o;else if(o>e){A.error(`Malformed SEI payload. ${o} is too small, only ${e} bytes left to parse.`);break}if(4===s){if(181===a[t++]){let e=Q(a,t);if(t+=2,49===e){let e=J(a,t);if(t+=4,1195456820===e){let e=a[t++];if(3===e){let r=a[t++],o=31&r,l=64&r,u=l?2+3*o:0,c=new Uint8Array(u);if(l){c[0]=r;for(let e=1;e<u;e++)c[e]=a[t++]}i.push({type:e,payloadType:s,pts:n,bytes:c})}}}}}else if(5===s&&o>16){let e=[];for(let n=0;n<16;n++){let i=a[t++].toString(16);e.push(1==i.length?"0"+i:i),(3===n||5===n||7===n||9===n)&&e.push("-")}let r=o-16,l=new Uint8Array(r);for(let e=0;e<r;e++)l[e]=a[t++];i.push({payloadType:s,pts:n,uuid:e.join(""),userData:D(l),userDataBytes:l})}}}function ex(e){let t=e.byteLength,n=[],i=1;for(;i<t-2;)0===e[i]&&0===e[i+1]&&3===e[i+2]?(n.push(i+2),i+=2):i++;if(0===n.length)return e;let r=t-n.length,a=new Uint8Array(r),s=0;for(i=0;i<r;s++,i++)s===n[0]&&(s++,n.shift()),a[i]=e[s];return a}function eC(e){let t=e[0],n="",i="",r=0,s=0,o=0,l=0,u=0,c=0;if(0===t){for(;"\0"!==X(e.subarray(c,c+1));)n+=X(e.subarray(c,c+1)),c+=1;for(n+=X(e.subarray(c,c+1)),c+=1;"\0"!==X(e.subarray(c,c+1));)i+=X(e.subarray(c,c+1)),c+=1;i+=X(e.subarray(c,c+1)),c+=1,r=J(e,12),s=J(e,16),l=J(e,20),u=J(e,24),c=28}else if(1===t){c+=4,r=J(e,c);let t=J(e,c+=4),s=J(e,c+=4);for(c+=4,a(o=4294967296*t+s)||(o=Number.MAX_SAFE_INTEGER,A.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),l=J(e,c),c+=4,u=J(e,c),c+=4;"\0"!==X(e.subarray(c,c+1));)n+=X(e.subarray(c,c+1)),c+=1;for(n+=X(e.subarray(c,c+1)),c+=1;"\0"!==X(e.subarray(c,c+1));)i+=X(e.subarray(c,c+1)),c+=1;i+=X(e.subarray(c,c+1)),c+=1}return{schemeIdUri:n,value:i,timeScale:r,presentationTime:o,presentationTimeDelta:s,eventDuration:l,id:u,payload:e.subarray(c,e.byteLength)}}function eE(e,...t){let n=t.length,i=8,r=n;for(;r--;)i+=t[r].byteLength;let a=new Uint8Array(i);for(a[0]=i>>24&255,a[1]=i>>16&255,a[2]=i>>8&255,a[3]=255&i,a.set(e,4),r=0,i=8;r<n;r++)a.set(t[r],i),i+=t[r].byteLength;return a}function ew(e,t,n){let i,r,a;if(16!==e.byteLength)throw RangeError("Invalid system id");i=0,r=new Uint8Array,i>0?(a=new Uint8Array(4),t.length>0&&new DataView(a.buffer).setUint32(0,t.length,!1)):a=new Uint8Array;let s=new Uint8Array(4);return n.byteLength>0&&new DataView(s.buffer).setUint32(0,n.byteLength,!1),eE([112,115,115,104],new Uint8Array([i,0,0,0]),e,a,r,s,n)}let eT=()=>/\(Windows.+Firefox\//i.test(navigator.userAgent),eS={audio:{a3ds:1,"ac-3":.95,"ac-4":1,alac:.9,alaw:1,dra1:1,"dts+":1,"dts-":1,dtsc:1,dtse:1,dtsh:1,"ec-3":.9,enca:1,fLaC:.9,flac:.9,FLAC:.9,g719:1,g726:1,m4ae:1,mha1:1,mha2:1,mhm1:1,mhm2:1,mlpa:1,mp4a:1,"raw ":1,Opus:1,opus:1,samr:1,sawb:1,sawp:1,sevc:1,sqcp:1,ssmv:1,twos:1,ulaw:1},video:{avc1:1,avc2:1,avc3:1,avc4:1,avcp:1,av01:.8,dav1:.8,drac:1,dva1:1,dvav:1,dvh1:.7,dvhe:.7,encv:1,hev1:.75,hvc1:.75,mjp2:1,mp4v:1,mvc1:1,mvc2:1,mvc3:1,mvc4:1,resv:1,rv
25260:1,s263:1,svc1:1,svc2:1,"vc-1":1,vp08:1,vp09:.9},text:{stpp:1,wvtt:1}};function eL(e,t){let n=eS[t];return!!n&&!!n[e.slice(0,4)]}function eP(e,t,n=!0){return!e.split(",").some(e=>!eM(e,t,n))}function eM(e,t,n=!0){var i;let r=I(n);return null!=(i=null==r?void 0:r.isTypeSupported(eA(e,t)))&&i}function eA(e,t){return`${t}/mp4;codecs=${e}`}function eI(e){if(e){let t=e.substring(0,4);return eS.video[t]}return 2}function eR(e){let t=eT();return e.split(",").reduce((e,n)=>{let i=t&&ey(n)?9:eS.video[n];return i?(2*i+e)/(e?3:2):(eS.audio[n]+e)/(e?2:1)},0)}let ek={};function eD(e,t=!0){if(ek[e])return ek[e];let n={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"],"mp4a.40.34":["mp3"]}[e];for(let r=0;r<n.length;r++){var i;if(eM(n[r],"audio",t))return ek[e]=n[r],n[r];if("mp3"===n[r]&&null!=(i=I(t))&&i.isTypeSupported("audio/mpeg"))return""}return e}let eN=/flac|opus|mp4a\.40\.34/i;function eF(e,t=!0){return e.replace(eN,e=>eD(e.toLowerCase(),t))}function eO(e,t){let n=[];if(e){let t=e.split(",");for(let e=0;e<t.length;e++)eL(t[e],"video")||n.push(t[e])}return t&&n.push(t),n.join(",")}function ej(e,t){if(e&&(e.length>4||-1!==["ac-3","ec-3","alac","fLaC","Opus"].indexOf(e))&&(eU(e,"audio")||eU(e,"video")))return e;if(t){let n=t.split(",");if(n.length>1){if(e){for(let t=n.length;t--;)if(n[t].substring(0,4)===e.substring(0,4))return n[t]}return n[0]}}return t||e}function eU(e,t){return eL(e,t)&&eM(e,t)}function eV(e){let t=e.split(",");for(let e=0;e<t.length;e++){let n=t[e].split(".");n.length>2&&"avc1"===n[0]&&(t[e]=`avc1.${parseInt(n[1]).toString(16)}${("000"+parseInt(n[2]).toString(16)).slice(-4)}`)}return t.join(",")}function eB(e){if(e.startsWith("av01.")){let t=e.split("."),n=["0","111","01","01","01","0"];for(let e=t.length;e>4&&e<10;e++)t[e]=n[e-4];return t.join(".")}return e}function eH(e){let t=I(e)||{isTypeSupported:()=>!1};return{mpeg:t.isTypeSupported("audio/mpeg"),mp3:t.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:t.isTypeSupported('audio/mp4; codecs="ac-3"')}}function eG(e){return e.replace(/^.+codecs=["']?([^"']+).*$/,"$1")}
252let ez={supported:!0,configurations:[],decodingInfoResults:[{supported:!0,powerEfficient:!0,smooth:!0}]};function eq(e,t){return{supported:!1,configurations:t,decodingInfoResults:[{supported:!1,smooth:!1,powerEfficient:!1}],error:e}}function eW(e,t,n,i,a,s){let o=e.videoCodec,l=e.audioCodec?e.audioGroups:null,u=null==s?void 0:s.audioCodec,c=null==s?void 0:s.channels,d=c?parseInt(c):u?1/0:2,h=null;if(null!=l&&l.length)try{h=1===l.length&&l[0]?t.groups[l[0]].channels:l.reduce((e,n)=>{if(n){let i=t.groups[n];if(!i)throw Error(`Audio track group ${n} not found`);Object.keys(i.channels).forEach(t=>{e[t]=(e[t]||0)+i.channels[t]})}return e},{2:0})}catch(e){return!0}return void 0!==o&&(o.split(",").some(e=>ey(e))||e.width>1920&&e.height>1088||e.height>1920&&e.width>1088||e.frameRate>Math.max(i,30)||"SDR"!==e.videoRange&&e.videoRange!==n||e.bitrate>Math.max(a,8e6))||!!h&&r(d)&&Object.keys(h).some(e=>parseInt(e)>d)}function e$(e,t,n,i={}){let r=e.videoCodec;if(!r&&!e.audioCodec||!n)return Promise.resolve(ez);let a=[],s=eZ(e),o=s.length,l=eY(e,t,o>0),u=l.length;for(let e=o||1*u||1;e--;){let t={type:"media-source"};if(o&&(t.video=s[e%o]),u){t.audio=l[e%u];let n=t.audio.bitrate;t.video&&n&&(t.video.bitrate-=n)}a.push(t)}if(r){let e=navigator.userAgent;if(r.split(",").some(e=>ey(e))&&eT())return Promise.resolve(eq(Error(`Overriding Windows Firefox HEVC MediaCapabilities result based on user-agent string: (${e})`),a))}return Promise.all(a.map(e=>{let t=eQ(e);return i[t]||(i[t]=n.decodingInfo(e))})).then(e=>({supported:!e.some(e=>!e.supported),configurations:a,decodingInfoResults:e})).catch(e=>({supported:!1,configurations:a,decodingInfoResults:[],error:e}))}function eZ(e){var t;let n=null==(t=e.videoCodec)?void 0:t.split(","),i=eX(e),r=e.width||640,a=e.height||480,s=e.frameRate||30,o=e.videoRange.toLowerCase();return n?n.map(e=>{let t={contentType:eA(eB(e),"video"),width:r,height:a,bitrate:i,framerate:s};return"sdr"!==o&&(t.transferFunction=o),t}):[]}function eY(e,t,n){var i;let r=null==(i=e.audioCodec)?void 0:i.split(","),a=eX(e);return r&&e.audioGroups?e.audioGroups.reduce((e,i)=>{var s;let o=i?null==(s=t.groups[i])?void 0:s.tracks:null;return o?o.reduce((e,t)=>{if(t.groupId===i){let i=parseFloat(t.channels||"");r.forEach(t=>{let r={contentType:eA(t,"audio"),bitrate:n?eK(t,a):a};i&&(r.channels=""+i),e.push(r)})}return e},e):e},[]):[]}function eK(e,t){if(t<=1)return 1;let n=128e3;return"ec-3"===e?n=768e3:"ac-3"===e&&(n=64e4),Math.min(t/2,n)}function eX(e){return 1e3*Math.ceil(Math.max(.9*e.bitrate,e.averageBitrate)/1e3)||1}function eQ(e){let t="",{audio:n,video:i}=e;if(i){let e=eG(i.contentType);t+=`${e}_r${i.height}x${i.width}f${Math.ceil(i.framerate)}${i.transferFunction||"sd"}_${Math.ceil(i.bitrate/1e5)}`}if(n){let e=eG(n.contentType);t+=`${i?"_":""}${e}_c${n.channels}`}return t}let eJ=["NONE","TYPE-0","TYPE-1",null];function e0(e){return eJ.indexOf(e)>-1}let e1=["SDR","PQ","HLG"];function e2(e){return!!e&&e1.indexOf(e)>-1}var e3={No:"",Yes:"YES",v2:"v2"};function e5(e){let{canSkipUntil:t,canSkipDateRanges:n,age:i}=e,r=i<t/2;return t&&r?n?e3.v2:e3.Yes:e3.No}class e4{constructor(e,t,n){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=e,this.part=t,this.skip=n}addDirectives(e){let t=new self.URL(e);return void 0!==this.msn&&t.searchParams.set("_HLS_msn",this.msn.toString()),void 0!==this.part&&t.searchParams.set("_HLS_part",this.part.toString()),this.skip&&t.searchParams.set("_HLS_skip",this.skip),t.href}}class e6{constructor(e){if(this._attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.url=void 0,this.frameRate=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.supplemental=void 0,this.videoCodec=void 0,this.width=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.supportedPromise=void 0,this.supportedResult=void 0,this._avgBitrate=0,this._audioGroups=void 0,this._subtitleGroups=void 0,this._urlId=0,this.url=[e.url],this._attrs=[e.attrs],this.bitrate=e.bitrate,e.details&&(this.details=e.details),this.id=e.id||0,this.name=e.name,this.width=e.width||0,this.height=e.height||0,this.frameRate=e.attrs.optionalFloat("FRAME-RATE",0),this._avgBitrate=e.attrs.decimalInteger("AVERAGE-BANDWIDTH"),this.audioCodec=e.audioCodec,this.videoCodec=e.videoCodec,this.codecSet=[e.videoCodec,e.audioCodec].filter(e=>!!e).map(e=>e.substring(0,4)).join(","),"supplemental"in e){var t;this.supplemental=e.supplemental;let n=null==(t=e.supplemental)?void 0:t.videoCodec;n&&n!==e.videoCodec&&(this.codecSet+=`,${n.substring(0,4)}`)}this.addGroupId("audio",e.attrs.AUDIO),this.addGroupId("text",e.attrs.SUBTITLES)}get maxBitrate(){return Math.max(this.realBitrate,this.bitrate)}get averageBitrate(){return this._avgBitrate||this.realBitrate||this.bitrate}get attrs(){return this._attrs[0]}get codecs(){return this.attrs.CODECS||""}get pathwayId(){return this.attrs["PATHWAY-ID"]||"."}get videoRange(){return this.attrs["VIDEO-RANGE"]||"SDR"}get score(){return this.attrs.optionalFloat("SCORE",0)}get uri(){return this.url[0]||""}hasAudioGroup(e){return e8(this._audioGroups,e)}hasSubtitleGroup(e){return e8(this._subtitleGroups,e)}get audioGroups(){return this._audioGroups}get subtitleGroups(){return this._subtitleGroups}addGroupId(e,t){if(t){if("audio"===e){let e=this._audioGroups;e||(e=this._audioGroups=[]),-1===e.indexOf(t)&&e.push(t)}else if("text"===e){let e=this._subtitleGroups;e||(e=this._subtitleGroups=[]),-1===e.indexOf(t)&&e.push(t)}}}get urlId(){return 0}set urlId(e){}get audioGroupIds(){return this.audioGroups?[this.audioGroupId]:void 0}get textGroupIds(){return this.subtitleGroups?[this.textGroupId]:void 0}get audioGroupId(){var e;return null==(e=this.audioGroups)?void 0:e[0]}get textGroupId(){var e;return null==(e=this.subtitleGroups)?void 0:e[0]}addFallback(){}}function e8(e,t){return!!t&&!!e&&-1!==e.indexOf(t)}function e7(){if("function"==typeof matchMedia){let e=matchMedia("(dynamic-range: high)"),t=matchMedia("bad query");if(e.media!==t.media)return!0===e.matches}return!1}function e9(e,t){let n=!1,i=[];if(e&&(n="SDR"!==e,i=[e]),t){let e="SDR"!==(i=t.allowedVideoRanges||e1.slice(0)).join("")&&!t.videoCodec;(n=void 0!==t.preferHDR?t.preferHDR:e&&e7())||(i=["SDR"])}return{preferHDR:n,allowedVideoRanges:i}}let te=e=>{let t=new WeakSet;return(n,i)=>{if(e&&(i=e(n,i)),"object"==typeof i&&null!==i){if(t.has(i))return;t.add(i)}return i}},tt=(e,t)=>JSON.stringify(e,te(t));function tn(e,t,n,i,a){let s=Object.keys(e),o=null==i?void 0:i.channels,l=null==i?void 0:i.audioCodec,u=null==a?void 0:a.videoCodec,c=o&&2===parseInt(o),d=!1,h=!1,f=1/0,p=1/0,m=1/0,g=1/0,v=0,y=[],{preferHDR:_,allowedVideoRanges:b}=e9(t,a);for(let t=s.length;t--;){let n=e[s[t]];d||(d=n.channels[2]>0),f=Math.min(f,n.minHeight),p=Math.min(p,n.minFramerate),m=Math.min(m,n.minBitrate),b.filter(e=>n.videoRanges[e]>0).length>0&&(h=!0)}f=r(f)?f:0,p=r(p)?p:0;let x=Math.max(1080,f),C=Math.max(30,p);n=Math.max(m=r(m)?m:n,n),h||(t=void 0);let E=s.length>1;return{codecSet:s.reduce((t,i)=>{let r=e[i];if(i===t)return t;if(y=h?b.filter(e=>r.videoRanges[e]>
2520):[],E){if(r.minBitrate>n)return ti(i,`min bitrate of ${r.minBitrate} > current estimate of ${n}`),t;if(!r.hasDefaultAudio)return ti(i,"no renditions with default or auto-select sound found"),t;if(l&&i.indexOf(l.substring(0,4))%5!=0)return ti(i,`audio codec preference "${l}" not found`),t;if(o&&!c){if(!r.channels[o])return ti(i,`no renditions with ${o} channel sound found (channels options: ${Object.keys(r.channels)})`),t}else if((!l||c)&&d&&0===r.channels["2"])return ti(i,"no renditions with stereo sound found"),t;if(r.minHeight>x)return ti(i,`min resolution of ${r.minHeight} > maximum of ${x}`),t;if(r.minFramerate>C)return ti(i,`min framerate of ${r.minFramerate} > maximum of ${C}`),t;if(!y.some(e=>r.videoRanges[e]>0))return ti(i,`no variants with VIDEO-RANGE of ${tt(y)} found`),t;if(u&&i.indexOf(u.substring(0,4))%5!=0)return ti(i,`video codec preference "${u}" not found`),t;if(r.maxScore<v)return ti(i,`max score of ${r.maxScore} < selected max of ${v}`),t}return t&&(eR(i)>=eR(t)||r.fragmentError>e[t].fragmentError)?t:(g=r.minIndex,v=r.maxScore,i)},void 0),videoRanges:y,preferHDR:_,minFramerate:p,minBitrate:m,minIndex:g}}function ti(e,t){A.log(`[abr] start candidates with "${e}" ignored because ${t}`)}function tr(e){return e.reduce((e,t)=>{let n=e.groups[t.groupId];n||(n=e.groups[t.groupId]={tracks:[],channels:{2:0},hasDefault:!1,hasAutoSelect:!1}),n.tracks.push(t);let i=t.channels||"2";return n.channels[i]=(n.channels[i]||0)+1,n.hasDefault=n.hasDefault||t.default,n.hasAutoSelect=n.hasAutoSelect||t.autoselect,n.hasDefault&&(e.hasDefaultAudio=!0),n.hasAutoSelect&&(e.hasAutoSelectAudio=!0),e},{hasDefaultAudio:!1,hasAutoSelectAudio:!1,groups:{}})}function ta(e,t,n,i){return e.slice(n,i+1).reduce((e,n,i)=>{if(!n.codecSet)return e;let r=n.audioGroups,a=e[n.codecSet];a||(e[n.codecSet]=a={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,minIndex:i,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!r,fragmentError:0}),a.minBitrate=Math.min(a.minBitrate,n.bitrate);let s=Math.min(n.height,n.width);return a.minHeight=Math.min(a.minHeight,s),a.minFramerate=Math.min(a.minFramerate,n.frameRate),a.minIndex=Math.min(a.minIndex,i),a.maxScore=Math.max(a.maxScore,n.score),a.fragmentError+=n.fragmentError,a.videoRanges[n.videoRange]=(a.videoRanges[n.videoRange]||0)+1,r&&r.forEach(e=>{if(!e)return;let n=t.groups[e];n&&(a.hasDefaultAudio=a.hasDefaultAudio||t.hasDefaultAudio?n.hasDefault:n.hasAutoSelect||!t.hasDefaultAudio&&!t.hasAutoSelectAudio,Object.keys(n.channels).forEach(e=>{a.channels[e]=(a.channels[e]||0)+n.channels[e]}))}),e},{})}function ts(e){if(!e)return e;let{lang:t,assocLang:n,characteristics:i,channels:r,audioCodec:a}=e;return{lang:t,assocLang:n,characteristics:i,channels:r,audioCodec:a}}function to(e,t,n){if("attrs"in e){let n=t.indexOf(e);if(-1!==n)return n}for(let i=0;i<t.length;i++)if(tl(e,t[i],n))return i;return -1}function tl(e,t,n){let{groupId:i,name:r,lang:a,assocLang:s,default:o}=e,l=e.forced;return(void 0===i||t.groupId===i)&&(void 0===r||t.name===r)&&(void 0===a||tu(a,t.lang))&&(void 0===a||t.assocLang===s)&&(void 0===o||t.default===o)&&(void 0===l||t.forced===l)&&(!("characteristics"in e)||tc(e.characteristics||"",t.characteristics))&&(void 0===n||n(e,t))}function tu(e,t="--"){return e.length===t.length?e===t:e.startsWith(t)||t.startsWith(e)}function tc(e,t=""){let n=e.split(","),i=t.split(",");return n.length===i.length&&!n.some(e=>-1===i.indexOf(e))}function td(e,t){let{audioCodec:n,channels:i}=e;return(void 0===n||(t.audioCodec||"").substring(0,4)===n.substring(0,4))&&(void 0===i||i===(t.channels||"2"))}function th(e,t,n,i,r){let a=t[i],s=t.reduce((e,t,n)=>{let i=t.uri;return(e[i]||(e[i]=[])).push(n),e},{})[a.uri];s.length>1&&(i=Math.max.apply(Math,s));let o=a.videoRange,l=a.frameRate,u=a.codecSet.substring(0,4),c=tf(t,i,t=>{if(t.videoRange!==o||t.frameRate!==l||t.codecSet.substring(0,4)!==u)return!1;let i=t.audioGroups;return to(e,n.filter(e=>!i||-1!==i.indexOf(e.groupId)),r)>-1});return c>-1?c:tf(t,i,t=>{let i=t.audioGroups;return to(e,n.filter(e=>!i||-1!==i.indexOf(e.groupId)),r)>-1})}function tf(e,t,n){for(let i=t;i>-1;i--)if(n(e[i]))return i;for(let i=t+1;i<e.length;i++)if(n(e[i]))return i;return -1}function tp(e,t){var n;return!!e&&e!==(null==(n=t.loadLevelObj)?void 0:n.uri)}class tm extends C{constructor(e){super("abr",e.logger),this.hls=void 0,this.lastLevelLoadSec=0,this.lastLoadedFragLevel=-1,this.firstSelection=-1,this._nextAutoLevel=-1,this.nextAutoLevelKey="",this.audioTracksByGroup=null,this.co
252decTiers=null,this.timer=-1,this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.rebufferNotice=-1,this.supportedCache={},this.bwEstimator=void 0,this._abandonRulesCheck=e=>{var t;let n;let{fragCurrent:i,partCurrent:a,hls:s}=this,{autoLevelEnabled:o,media:l}=s;if(!i||!l)return;let c=performance.now(),d=a?a.stats:i.stats,h=a?a.duration:i.duration,f=c-d.loading.start,p=s.minAutoLevel,m=i.level,g=this._nextAutoLevel;if(d.aborted||d.loaded&&d.loaded===d.total||m<=p){this.clearTimer(),this._nextAutoLevel=-1;return}if(!o)return;let v=g>-1&&g!==m,y=!!e||v;if(!y&&(l.paused||!l.playbackRate||!l.readyState))return;let _=s.mainForwardBufferInfo;if(!y&&null===_)return;let b=this.bwEstimator.getEstimateTTFB(),x=Math.abs(l.playbackRate);if(f<=Math.max(b,h/(2*x)*1e3))return;let C=_?_.len/x:0,E=d.loading.first?d.loading.first-d.loading.start:-1,w=d.loaded&&E>-1,T=this.getBwEstimate(),S=s.levels,L=S[m],P=Math.max(d.loaded,Math.round(h*(i.bitrate||L.averageBitrate)/8)),M=w?f-E:f;M<1&&w&&(M=Math.min(f,8*d.loaded/T));let A=w?1e3*d.loaded/M:0,I=b/1e3,R=A?(P-d.loaded)/A:8*P/T+I;if(R<=C)return;let k=A?8*A:T,D=(null==(t=(null==e?void 0:e.details)||this.hls.latestLevelDetails)?void 0:t.live)===!0,N=this.hls.config.abrBandWidthUpFactor,F=Number.POSITIVE_INFINITY;for(n=m-1;n>p;n--){let e=S[n].maxBitrate,t=!S[n].details||D;if((F=this.getTimeToLoadFrag(I,k,h*e,t))<Math.min(C,h+I))break}if(F>=R||F>10*h)return;w?this.bwEstimator.sample(f-Math.min(b,E),d.loaded):this.bwEstimator.sampleTTFB(f);let O=S[n].maxBitrate;this.getBwEstimate()*N>O&&this.resetEstimator(O);let j=this.findBestLevel(O,p,n,0,C,1,1);j>-1&&(n=j),this.warn(`Fragment ${i.sn}${a?" part "+a.index:""} of level ${m} is loading too slowly; 253 Fragment duration: ${i.duration.toFixed(3)} 254 Time to underbuffer: ${C.toFixed(3)} s 255 Estimated load time for current fragment: ${R.toFixed(3)} s 256 Estimated load time for down switch fragment: ${F.toFixed(3)} s 257 TTFB estimate: ${0|E} ms 258 Current BW estimate: ${r(T)?0|T:"Unknown"} bps 259 New BW estimate: ${0|this.getBwEstimate()} bps 260 Switching to level ${n} @ ${0|O} bps`),s.nextLoadLevel=s.nextAutoLevel=n,this.clearTimer();let U=()=>{if(this.clearTimer(),this.fragCurrent===i&&this.hls.loadLevel===n&&n>0){let e=this.getStarvationDelay();if(this.warn(`Aborting inflight request ${n>0?"and switching down":""} 261 Fragment duration: ${i.duration.toFixed(3)} s 262 Time to underbuffer: ${e.toFixed(3)} s`),i.abortRequests(),this.fragCurrent=this.partCurrent=null,n>p){let t=this.findBestLevel(this.hls.levels[p].bitrate,p,n,0,e,1,1);-1===t&&(t=p),this.hls.nextLoadLevel=this.hls.nextAutoLevel=t,this.resetEstimator(this.hls.levels[t].bitrate)}}};v||R>2*F?U():this.timer=self.setInterval(U,1e3*F),s.trigger(u.FRAG_LOAD_EMERGENCY_ABORTED,{frag:i,part:a,stats:d})},this.hls=e,this.bwEstimator=this.initEstimator(),this.registerListeners()}resetEstimator(e){e&&(this.log(`setting initial bwe to ${e}`),this.hls.config.abrEwmaDefaultEstimate=e),this.firstSelection=-1,this.bwEstimator=this.initEstimator()}initEstimator(){let e=this.hls.config;return new m(e.abrEwmaSlowVoD,e.abrEwmaFastVoD,e.abrEwmaDefaultEstimate)}registerListeners(){let{hls:e}=this;e.on(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.FRAG_LOADING,this.onFragLoading,this),e.on(u.FRAG_LOADED,this.onFragLoaded,this),e.on(u.FRAG_BUFFERED,this.onFragBuffered,this),e.on(u.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(u.LEVEL_LOADED,this.onLevelLoaded,this),e.on(u.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(u.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.on(u.ERROR,this.onError,this)}unregisterListeners(){let{hls:e}=this;e&&(e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.FRAG_LOADING,this.onFragLoading,this),e.off(u.FRAG_LOADED,this.onFragLoaded,this),e.off(u.FRAG_BUFFERED,this.onFragBuffered,this),e.off(u.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(u.LEVEL_LOADED,this.onLevelLoaded,this),e.off(u.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(u.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.off(u.ERROR,this.onError,this))}destroy(){this.unregisterListeners(),this.clearTimer(),this.hls=this._abandonRulesCheck=this.supportedCache=null,this.fragCurrent=this.partCurrent=null}onManifestLoading(e,t){this.lastLoadedFragLevel=-1,this.firstSelection=-1,this.lastLevelLoadSec=0,this.supportedCache={},this.fragCurrent=this.partCurrent=null,this.onLevelsUpdated(),this.clearTimer()}onLevelsUpdated(){this.lastLoadedFragLevel>-1&&this.fragCurrent&&(this.lastLoadedFragLevel=this.fragCurrent.level),this._nextAutoLevel=-1,this.onMaxAutoLevelUpdated(),this.codecTiers=null,this.audioTracksByGroup=null}onMaxAutoLevelUpdated(){this.firstSelection=-1,this.nextAutoLevelKey=""}onFragLoading(e,t){let n=t.frag;
vendor: 3,189 bytes, line 262
262if(!this.ignoreFragment(n)){if(!n.bitrateTest){var i;this.fragCurrent=n,this.partCurrent=null!=(i=t.part)?i:null}this.clearTimer(),this.timer=self.setInterval(this._abandonRulesCheck,100)}}onLevelSwitching(e,t){this.clearTimer()}onError(e,t){if(!t.fatal)switch(t.details){case l.BUFFER_ADD_CODEC_ERROR:case l.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case l.FRAG_LOAD_TIMEOUT:{let e=t.frag,{fragCurrent:n,partCurrent:i}=this;if(e&&n&&e.sn===n.sn&&e.level===n.level){let t=performance.now(),n=i?i.stats:e.stats,r=t-n.loading.start,a=n.loading.first?n.loading.first-n.loading.start:-1;if(n.loaded&&a>-1){let e=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(r-Math.min(e,a),n.loaded)}else this.bwEstimator.sampleTTFB(r)}}}}getTimeToLoadFrag(e,t,n,i){return e+n/t+(i?e+this.lastLevelLoadSec:0)}onLevelLoaded(e,t){let n=this.hls.config,{loading:i}=t.stats,a=i.end-i.first;r(a)&&(this.lastLevelLoadSec=a/1e3),t.details.live?this.bwEstimator.update(n.abrEwmaSlowLive,n.abrEwmaFastLive):this.bwEstimator.update(n.abrEwmaSlowVoD,n.abrEwmaFastVoD),this.timer>-1&&this._abandonRulesCheck(t.levelInfo)}onFragLoaded(e,{frag:t,part:n}){let i=n?n.stats:t.stats;if(t.type===f.MAIN&&this.bwEstimator.sampleTTFB(i.loading.first-i.loading.start),!this.ignoreFragment(t)){if(this.clearTimer(),t.level===this._nextAutoLevel&&(this._nextAutoLevel=-1),this.firstSelection=-1,this.hls.config.abrMaxWithRealBitrate){let e=n?n.duration:t.duration,r=this.hls.levels[t.level],a=(r.loaded?r.loaded.bytes:0)+i.loaded,s=(r.loaded?r.loaded.duration:0)+e;r.loaded={bytes:a,duration:s},r.realBitrate=Math.round(8*a/s)}if(t.bitrateTest){let e={stats:i,frag:t,part:n,id:t.type};this.onFragBuffered(u.FRAG_BUFFERED,e),t.bitrateTest=!1}else this.lastLoadedFragLevel=t.level}}onFragBuffered(e,t){let{frag:n,part:i}=t,r=null!=i&&i.stats.loaded?i.stats:n.stats;if(r.aborted||this.ignoreFragment(n))return;let a=r.parsing.end-r.loading.start-Math.min(r.loading.first-r.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(a,r.loaded),r.bwEstimate=this.getBwEstimate(),n.bitrateTest?this.bitrateTestDelay=a/1e3:this.bitrateTestDelay=0}ignoreFragment(e){return e.type!==f.MAIN||"initSegment"===e.sn}clearTimer(){this.timer>-1&&(self.clearInterval(this.timer),this.timer=-1)}get firstAutoLevel(){let{maxAutoLevel:e,minAutoLevel:t}=this.hls,n=this.getBwEstimate(),i=this.hls.config.maxStarvationDelay,r=this.findBestLevel(n,t,e,0,i,1,1);if(r>-1)return r;let a=this.hls.firstLevel,s=Math.min(Math.max(a,t),e);return this.warn(`Could not find best starting auto level. Defaulting to first in playlist ${a} clamped to ${s}`),s}get forcedAutoLevel(){return this.nextAutoLevelKey?-1:this._nextAutoLevel}get nextAutoLevel(){let e=this.forcedAutoLevel,t=this.bwEstimator.canEstimate(),n=this.lastLoadedFragLevel>-1;if(-1!==e&&(!t||!n||this.nextAutoLevelKey===this.getAutoLevelKey()))return e;let i=t&&n?this.getNextABRAutoLevel():this.firstAutoLevel;if(-1!==e){let t=this.hls.levels;if(t.length>Math.max(e,i)&&t[e].loadError<=t[i].loadError)return e}return this._nextAutoLevel=i,this.nextAutoLevelKey=this.getAutoLevelKey(),i}getAutoLevelKey(){return`${this.getBwEstimate()}
262_${this.getStarvationDelay().toFixed(2)}`}getNextABRAutoLevel(){let{fragCurrent:e,partCurrent:t,hls:n}=this;if(n.levels.length<=1)return n.loadLevel;let{maxAutoLevel:i,config:r,minAutoLevel:a}=n,s=t?t.duration:e?e.duration:0,o=this.getBwEstimate(),l=this.getStarvationDelay(),u=r.abrBandWidthFactor,c=r.abrBandWidthUpFactor;if(l){let e=this.findBestLevel(o,a,i,l,0,u,c);if(e>=0)return this.rebufferNotice=-1,e}let d=s?Math.min(s,r.maxStarvationDelay):r.maxStarvationDelay;if(!l){let e=this.bitrateTestDelay;e&&(d=(s?Math.min(s,r.maxLoadingDelay):r.maxLoadingDelay)-e,this.info(`bitrate test took ${Math.round(1e3*e)}ms, set first fragment max fetchDuration to ${Math.round(1e3*d)} ms`),u=c=1)}let h=this.findBestLevel(o,a,i,l,d,u,c);if(this.rebufferNotice!==h&&(this.rebufferNotice=h,this.info(`${l?"rebuffering expected":"buffer is empty"}, optimal quality level ${h}`)),h>-1)return h;let f=n.levels[a],p=n.loadLevelObj;return p&&(null==f?void 0:f.bitrate)<p.bitrate?a:n.loadLevel}getStarvationDelay(){let e=this.hls,t=e.media;if(!t)return 1/0;let n=t&&0!==t.playbackRate?Math.abs(t.playbackRate):1,i=e.mainForwardBufferInfo;return(i?i.len:0)/n}getBwEstimate(){return this.bwEstimator.canEstimate()?this.bwEstimator.getEstimate():this.hls.config.abrEwmaDefaultEstimate}findBestLevel(e,t,n,i,a,s,o){var l,u;let c;let d=i+a,h=this.lastLoadedFragLevel,f=-1===h?this.hls.firstLevel:h,{fragCurrent:p,partCurrent:m}=this,{levels:g,allAudioTracks:v,loadLevel:y,config:_}=this.hls;if(1===g.length)return 0;let b=g[f],x=!!(null!=(l=this.hls.latestLevelDetails)&&l.live),C=-1===y||-1===h,E="SDR",w=(null==b?void 0:b.frameRate)||0,{audioPreference:T,videoPreference:S}=_,L=this.audioTracksByGroup||(this.audioTracksByGroup=tr(v)),P=-1;if(C){if(-1!==this.firstSelection)return this.firstSelection;let i=tn(this.codecTiers||(this.codecTiers=ta(g,L,t,n)),E,e,T,S),{codecSet:r,videoRanges:a,minFramerate:s,minBitrate:o,minIndex:l,preferHDR:u}=i;P=l,c=r,E=u?a[a.length-1]:a[0],w=s,e=Math.max(e,o),this.log(`picked start tier ${tt(i)}`)}else c=null==b?void 0:b.codecSet,E=null==b?void 0:b.videoRange;let M=m?m.duration:p?p.duration:0,A=this.bwEstimator.getEstimateTTFB()/1e3,I=[];for(let l=n;l>=t;l--){let t;let p=g[l],v=l>f;if(!p)continue;if(_.useMediaCapabilities&&!p.supportedResult&&!p.supportedPromise){let t=navigator.mediaCapabilities;"function"==typeof(null==t?void 0:t.decodingInfo)&&eW(p,L,E,w,e,T)?(p.supportedPromise=e$(p,L,t,this.supportedCache),p.supportedPromise.then(e=>{if(!this.hls)return;p.supportedResult=e;let t=this.hls.levels,n=t.indexOf(p);e.error?this.warn(`MediaCapabilities decodingInfo error: "${e.error}" for level ${n} ${tt(e)}`):e.supported?e.decodingInfoResults.some(e=>!1===e.smooth||!1===e.powerEfficient)&&this.log(`MediaCapabilities decodingInfo for level ${n} not smooth or powerEfficient: ${tt(e)}`):(this.warn(`Unsupported MediaCapabilities decodingInfo result for level ${n} ${tt(e)}`),n>-1&&t.length>1&&(this.log(`Removing unsupported level ${n}`),this.hls.removeLevel(n),-1===this.hls.loadLevel&&(this.hls.nextLoadLevel=0)))})):p.supportedResult=ez}if((c&&p.codecSet!==c||E&&p.videoRange!==E||v&&w>p.frameRate||!v&&w>0&&w<p.frameRate||null!=(u=p.supportedResult)&&null!=(u=u.decodingInfoResults)&&u.some(e=>!1===e.smooth))&&(!C||l!==P)){I.push(l);continue}let b=p.details,S=(m?null==b?void 0:b.partTarget:null==b?void 0:b.averagetargetduration)||M;t=v?o*e:s*e;let R=M&&i>=2*M&&0===a?p.averageBitrate:p.maxBitrate,k=this.getTimeToLoadFrag(A,t,R*S,void 0===b);if(t>=R&&(l===h||0===p.loadError&&0===p.fragmentError)&&(k<=A||!r(k)||x&&!this.bitrateTestDelay||k<d)){let e=this.forcedAutoLevel;return l!==y&&(-1===e||e!==y)&&(I.length&&this.trace(`Skipped level(s) ${I.join(",")} of ${n} max with CODECS and VIDEO-RANGE:"${g[I[0]].codecs}" ${g[I[0]].videoRange}; not compatible with "${c}" ${E}`),this.info(`switch candidate:${f}->${l} adjustedbw(${Math.round(t)})-bitrate=${Math.round(t-R)} ttfb:${A.toFixed(1)} avgDuration:${S.toFixed(1)} maxFetchDuration:${d.toFixed(1)} fetchDuration:${k.toFixed(1)} firstSelection:${C} codecSet:${p.codecSet} videoRange:${p.videoRange} hls.loadLevel:${y}
262`)),C&&(this.firstSelection=l),l}}return -1}set nextAutoLevel(e){let t=this.deriveNextAutoLevel(e);this._nextAutoLevel!==t&&(this.nextAutoLevelKey="",this._nextAutoLevel=t)}deriveNextAutoLevel(e){let{maxAutoLevel:t,minAutoLevel:n}=this.hls;return Math.min(Math.max(e,n),t)}}let tg={search:function(e,t){let n=0,i=e.length-1,r=null,a=null;for(;n<=i;){let s=t(a=e[r=(n+i)/2|0]);if(s>0)n=r+1;else{if(!(s<0))return a;i=r-1}}return null}};function tv(e,t,n){if(null===t||!Array.isArray(e)||!e.length||!r(t)||t<(e[0].programDateTime||0)||t>=(e[e.length-1].endProgramDateTime||0))return null;for(let i=0;i<e.length;++i){let r=e[i];if(tx(t,n,r))return r}return null}function ty(e,t,n=0,i=0,r=.005){let a=null;if(e){a=t[1+e.sn-t[0].sn]||null;let i=e.endDTS-n;i>0&&i<15e-7&&(n+=15e-7),a&&e.level!==a.level&&a.end<=e.end&&(a=t[2+e.sn-t[0].sn]||null)}else 0===n&&0===t[0].start&&(a=t[0]);if(a&&((!e||e.level===a.level)&&0===tb(n,i,a)||t_(a,e,Math.min(r,i))))return a;let s=tg.search(t,tb.bind(null,n,i));return s&&(s!==e||!a)?s:a}function t_(e,t,n){if(t&&0===t.start&&t.level<e.level&&(t.endPTS||0)>0){let i=t.tagList.reduce((e,t)=>("INF"===t[0]&&(e+=parseFloat(t[1])),e),n);return e.start<=i}return!1}function tb(e=0,t=0,n){if(n.start<=e&&n.start+n.duration>e)return 0;let i=Math.min(t,n.duration+(n.deltaPTS?n.deltaPTS:0));return n.start+n.duration-i<=e?1:n.start-i>e&&n.start?-1:0}function tx(e,t,n){let i=1e3*Math.min(t,n.duration+(n.deltaPTS?n.deltaPTS:0));return(n.endProgramDateTime||0)-i>e}function tC(e,t,n){if(e&&e.startCC<=t&&e.endCC>=t){let i,r=e.fragments,{fragmentHint:a}=e;return a&&(r=r.concat(a)),tg.search(r,e=>e.cc<t?1:e.cc>t?-1:(i=e,e.end<=n)?1:e.start>n?-1:0),i||null}return null}function tE(e){switch(e.details){case l.FRAG_LOAD_TIMEOUT:case l.KEY_LOAD_TIMEOUT:case l.LEVEL_LOAD_TIMEOUT:case l.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function tw(e,t){let n=tE(t);return e.default[`${n?"timeout":"error"}Retry`]}function tT(e,t){return Math.min(("linear"===e.backoff?1:Math.pow(2,t))*e.retryDelayMs,e.maxRetryDelayMs)}function tS(e){return _(_({},e),{errorRetry:null,timeoutRetry:null})}function tL(e,t,n,i){if(!e)return!1;let r=null==i?void 0:i.code,a=t<e.maxNumRetry&&(tP(r)||!!n);return e.shouldRetry?e.shouldRetry(e,t,n,i,a):a}function tP(e){return 0===e&&!1===navigator.onLine||!!e&&(e<400||e>499)}var tM={DoNothing:0,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,RetryRequest:5},tA={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2};class tI extends C{constructor(e){super("error-controller",e.logger),this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.hls=e,this.registerListeners()}registerListeners(){let e=this.hls;e.on(u.ERROR,this.onError,this),e.on(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){let e=this.hls;e&&(e.off(u.ERROR,this.onError,this),e.off(u.ERROR,this.onErrorOut,this),e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.LEVEL_UPDATED,this.onLevelUpdated,this))}destroy(){this.unregisterListeners(),this.hls=null,this.penalizedRenditions={}}startLoad(e){}stopLoad(){this.playlistError=0}getVariantLevelIndex(e){return(null==e?void 0:e.type)===f.MAIN?e.level:this.hls.loadLevel}onManifestLoading(){this.playlistError=0,this.penalizedRenditions={}}onLevelUpdated(){this.playlistError=0}onError(e,t){var n,i,r;if(t.fatal)return;let a=this.hls,s=t.context;switch(t.details){case l.FRAG_LOAD_ERROR:case l.FRAG_LOAD_TIMEOUT:case l.KEY_LOAD_ERROR:case l.KEY_LOAD_TIMEOUT:t.errorAction=this.getFragRetryOrSwitchAction(t);return;case l.FRAG_PARSING_ERROR:if(null!=(n=t.frag)&&n.gap){t.errorAction=tR();return}case l.FRAG_GAP:case l.FRAG_DECRYPT_ERROR:t.errorAction=this.getFragRetryOrSwitchAction(t),t.errorAction.action=tM.SendAlternateToPenaltyBox;return;case l.LEVEL_EMPTY_ERROR:case l.LEVEL_PARSING_ERROR:{let e=t.parent===f.MAIN?t.level:a.loadLevel;t.details===l.LEVEL_EMPTY_ERROR&&null!=(i=t.context)&&null!=(i=i.levelDetails)&&i.live?t.errorAction=this.getPlaylistRetryOrSwitchAction(t,e):(t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,e))}return;case l.LEVEL_LOAD_ERROR:case l.LEVEL_LOAD_TIMEOUT:"number"==typeof(null==s?void 0:s.level)&&(t.errorAction=this.getPlaylistRetryOrSwitchAction(t,s.level));return;case l.AUDIO_TRACK_LOAD_ERROR:case l.AUDIO_TRACK_LOAD_TIMEOUT:case l.SUBTITLE_LOAD_ERROR:case l.SUBTITLE_TRACK_LOAD_TIMEOUT:if(s){let e=a.loadLevelObj;e&&(s.type===h.AUDIO_TRACK&&e.hasAudioGroup(s.groupId)||s.type===h.SUBTITLE_TRACK&&e.hasSubtitleGroup(s.groupId))&&(t.errorAction=this.getPlaylistRetryOrSwitchAction(t,a.loadLevel),t.errorAction.action=tM.SendAlternateToPenaltyBox,t.errorAction.flags=tA.MoveAllAlternatesMatchingHost)}return;case l.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:{let e=a.loadLevelObj,n=null==e?void 0:e.attrs["HDCP-LEVEL"];n?t.errorAction={action:tM.SendAlternateToPenaltyBox,flags:tA.MoveAllAlternatesMatchingHDCP,hdcpLevel:n}:this.keySystemError(t)}return;
262case l.BUFFER_ADD_CODEC_ERROR:case l.REMUX_ALLOC_ERROR:case l.BUFFER_APPEND_ERROR:t.errorAction||(t.errorAction=this.getLevelSwitchAction(t,null!=(r=t.level)?r:a.loadLevel));return;case l.INTERNAL_EXCEPTION:case l.BUFFER_APPENDING_ERROR:case l.BUFFER_FULL_ERROR:case l.LEVEL_SWITCH_ERROR:case l.BUFFER_STALLED_ERROR:case l.BUFFER_SEEK_OVER_HOLE:case l.BUFFER_NUDGE_ON_STALL:t.errorAction=tR();return}t.type===o.KEY_SYSTEM_ERROR&&this.keySystemError(t)}keySystemError(e){let t=this.getVariantLevelIndex(e.frag);e.levelRetry=!1,e.errorAction=this.getLevelSwitchAction(e,t)}getPlaylistRetryOrSwitchAction(e,t){let n=tw(this.hls.config.playlistLoadPolicy,e),i=this.playlistError++;if(tL(n,i,tE(e),e.response))return{action:tM.RetryRequest,flags:tA.None,retryConfig:n,retryCount:i};let r=this.getLevelSwitchAction(e,t);return n&&(r.retryConfig=n,r.retryCount=i),r}getFragRetryOrSwitchAction(e){let t=this.hls,n=this.getVariantLevelIndex(e.frag),i=t.levels[n],{fragLoadPolicy:r,keyLoadPolicy:a}=t.config,s=tw(e.details.startsWith("key")?a:r,e),o=t.levels.reduce((e,t)=>e+t.fragmentError,0);if(i&&(e.details!==l.FRAG_GAP&&i.fragmentError++,tL(s,o,tE(e),e.response)))return{action:tM.RetryRequest,flags:tA.None,retryConfig:s,retryCount:o};let u=this.getLevelSwitchAction(e,n);return s&&(u.retryConfig=s,u.retryCount=o),u}getLevelSwitchAction(e,t){let n=this.hls;null==t&&(t=n.loadLevel);let i=this.hls.levels[t];if(i){var r,a,s,o;let t=e.details;i.loadError++,t===l.BUFFER_APPEND_ERROR&&i.fragmentError++;let u=-1,{levels:c,loadLevel:d,minAutoLevel:p,maxAutoLevel:m}=n;n.autoLevelEnabled||n.config.preserveManualLevelOnError||(n.loadLevel=-1);let g=null==(r=e.frag)?void 0:r.type,v=(g===f.AUDIO&&t===l.FRAG_PARSING_ERROR||"audio"===e.sourceBufferName&&(t===l.BUFFER_ADD_CODEC_ERROR||t===l.BUFFER_APPEND_ERROR))&&c.some(({audioCodec:e})=>i.audioCodec!==e),y="video"===e.sourceBufferName&&(t===l.BUFFER_ADD_CODEC_ERROR||t===l.BUFFER_APPEND_ERROR)&&c.some(({codecSet:e,audioCodec:t})=>i.codecSet!==e&&i.audioCodec===t),{type:_,groupId:b}=null!=(a=e.context)?a:{};for(let n=c.length;n--;){let r=(n+d)%c.length;if(r!==d&&r>=p&&r<=m&&0===c[r].loadError){let n=c[r];if(t===l.FRAG_GAP&&g===f.MAIN&&e.frag){let t=c[r].details;if(t){let n=ty(e.frag,t.fragments,e.frag.start);if(null!=n&&n.gap)continue}}else if(_===h.AUDIO_TRACK&&n.hasAudioGroup(b)||_===h.SUBTITLE_TRACK&&n.hasSubtitleGroup(b))continue;else if(g===f.AUDIO&&null!=(s=i.audioGroups)&&s.some(e=>n.hasAudioGroup(e))||g===f.SUBTITLE&&null!=(o=i.subtitleGroups)&&o.some(e=>n.hasSubtitleGroup(e))||v&&i.audioCodec===n.audioCodec||y&&i.codecSet===n.codecSet||!v&&i.codecSet!==n.codecSet)continue;u=r;break}}if(u>-1&&n.loadLevel!==u)return e.levelRetry=!0,this.playlistError=0,{action:tM.SendAlternateToPenaltyBox,flags:tA.None,nextAutoLevel:u}}return{action:tM.SendAlternateToPenaltyBox,flags:tA.MoveAllAlternatesMatchingHost}}onErrorOut(e,t){var n;switch(null==(n=t.errorAction)?void 0:n.action){case tM.DoNothing:break;case tM.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(t),t.errorAction.resolved||t.details===l.FRAG_GAP?/MediaSource readyState: ended/.test(t.error.message)&&(this.warn(`MediaSource ended after "${t.sourceBufferName}" sourceBuffer append error. Attempting to recover from media error.`),this.hls.recoverMediaError()):t.fatal=!0;case tM.RetryRequest:}if(t.fatal){this.hls.stopLoad();return}}sendAlternateToPenaltyBox(e){let t=this.hls,n=e.errorAction;if(!n)return;let{flags:i,hdcpLevel:r,nextAutoLevel:a}=n;switch(i){case tA.None:this.switchLevel(e,a);break;case tA.MoveAllAlternatesMatchingHDCP:r&&(t.maxHdcpLevel=eJ[eJ.indexOf(r)-1],n.resolved=!0),this.warn(`Restricting playback to HDCP-LEVEL of "${t.maxHdcpLevel}" or lower`)}n.resolved||this.switchLevel(e,a)}switchLevel(e,t){if(void 0!==t&&e.errorAction&&(this.warn(`switching to level ${t} after ${e.details}`),this.hls.nextAutoLevel=t,e.errorAction.resolved=!0,this.hls.nextLoadLevel=this.hls.nextAutoLevel,e.details===l.BUFFER_ADD_CODEC_ERROR&&e.mimeType&&"audiovideo"!==e.sourceBufferName)){let t=eG(e.mimeType),n=this.hls.levels;for(let i=n.length;i--;)n[i][`${e.sourceBufferName}Codec`]===t&&this.hls.removeLevel(i)}}}function tR(e){let t={action:tM.DoNothing,flags:tA.None};return e&&(t.resolved=!0),t}var tk={NOT_LOADED:"NOT_LOADED",APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"};class tD{constructor(e){this.activePartLists=Object.create(null),this.endListFragments=Object.create(null),this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hasGaps=!1,this.hls=e,this._registerListeners()}_registerListeners(){let{hls:e}=this;e&&(e.on(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.BUFFER_APPENDED,this.onBufferAppended,this),e.on(u.FRAG_BUFFERED,this.onFragBuffered,this),e.on(u.FRAG_LOADED,this.onFragLoaded,this))}_unregisterListeners(){let{hls:e}=this;e&&(e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.BUFFER_APPENDED,this.onBufferAppended,this),e.off(u.FRAG_BUFFERED,this.onFragBuffered,this),e.off(u.FRAG_LOADED,this.onFragLoaded,this))}destroy(){this._unregisterListeners(),this.hls=this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null}getAppendedFrag(e,t){let n=this.activePartLists[t];if(n)for(let t=n.length;t--;){let i=n[t];if(!i)break;if(i.start<=e&&e<=i.end&&i.loaded)return i}return this.getBufferedFrag(e,t)}getBufferedFrag(e,t){return this.getFragAtPos(e,t,!0)}getFragAtPos(e,t,n){let{fragments:i}=this,r=Object.keys(i);for(let a=r.length;a--;){let s=i[r[a]];if((null==s?void 0:s.body.type)===t&&(!n||s.buffered)){let t=s.body;if(t.start<=e&&e<=t.end)return t}}return null}detectEvictedFragments(e,t,n,i,r){this.timeRanges&&(this.timeRanges[e]=t);let a=(null==i?void 0:i.fragment.sn)||-1;
262Object.keys(this.fragments).forEach(i=>{let s=this.fragments[i];if(!s||a>=s.body.sn)return;if(!s.buffered&&(!s.loaded||r)){s.body.type===n&&this.removeFragment(s.body);return}let o=s.range[e];if(o){if(0===o.time.length){this.removeFragment(s.body);return}o.time.some(e=>{let n=!this.isTimeBuffered(e.startPTS,e.endPTS,t);return n&&this.removeFragment(s.body),n})}})}detectPartialFragments(e){let t=this.timeRanges;if(!t||"initSegment"===e.frag.sn)return;let n=e.frag,i=tF(n),r=this.fragments[i];if(!r||r.buffered&&n.gap)return;let a=!n.relurl;Object.keys(t).forEach(i=>{let s=n.elementaryStreams[i];if(!s)return;let o=t[i],l=a||!0===s.partial;r.range[i]=this.getBufferedTimes(n,e.part,l,o)}),r.loaded=null,Object.keys(r.range).length?(r.buffered=!0,(r.body.endList=n.endList||r.body.endList)&&(this.endListFragments[r.body.type]=r),tN(r)||this.removeParts(n.sn-1,n.type)):this.removeFragment(r.body)}removeParts(e,t){let n=this.activePartLists[t];n&&(this.activePartLists[t]=tO(n,t=>t.fragment.sn>=e))}fragBuffered(e,t){let n=tF(e),i=this.fragments[n];!i&&t&&(i=this.fragments[n]={body:e,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},e.gap&&(this.hasGaps=!0)),i&&(i.loaded=null,i.buffered=!0)}getBufferedTimes(e,t,n,i){let r={time:[],partial:n},a=e.start,s=e.end,o=e.minEndPTS||s,l=e.maxStartPTS||a;for(let e=0;e<i.length;e++){let t=i.start(e)-this.bufferPadding,n=i.end(e)+this.bufferPadding;if(l>=t&&o<=n){r.time.push({startPTS:Math.max(a,i.start(e)),endPTS:Math.min(s,i.end(e))});break}if(a<n&&s>t){let t=Math.max(a,i.start(e)),n=Math.min(s,i.end(e));n>t&&(r.partial=!0,r.time.push({startPTS:t,endPTS:n}))}else if(s<=t)break}return r}getPartialFragment(e){let t,n,i,r=null,a=0,{bufferPadding:s,fragments:o}=this;return Object.keys(o).forEach(l=>{let u=o[l];u&&tN(u)&&(n=u.body.start-s,i=u.body.end+s,e>=n&&e<=i&&a<=(t=Math.min(e-n,i-e))&&(r=u.body,a=t))}),r}isEndListAppended(e){let t=this.endListFragments[e];return void 0!==t&&(t.buffered||tN(t))}getState(e){let t=tF(e),n=this.fragments[t];return n?n.buffered?tN(n)?tk.PARTIAL:tk.OK:tk.APPENDING:tk.NOT_LOADED}isTimeBuffered(e,t,n){let i,r;for(let a=0;a<n.length;a++){if(i=n.start(a)-this.bufferPadding,r=n.end(a)+this.bufferPadding,e>=i&&t<=r)return!0;if(t<=i)break}return!1}onManifestLoading(){this.removeAllFragments()}onFragLoaded(e,t){if("initSegment"===t.frag.sn||t.frag.bitrateTest)return;let n=t.frag,i=t.part?null:t,r=tF(n);this.fragments[r]={body:n,appendedPTS:null,loaded:i,buffered:!1,range:Object.create(null)}}onBufferAppended(e,t){let{frag:n,part:i,timeRanges:r,type:a}=t;if("initSegment"===n.sn)return;let s=n.type;if(i){let e=this.activePartLists[s];e||(this.activePartLists[s]=e=[]),e.push(i)}this.timeRanges=r;let o=r[a];this.detectEvictedFragments(a,o,s,i)}onFragBuffered(e,t){this.detectPartialFragments(t)}hasFragment(e){let t=tF(e);return!!this.fragments[t]}hasFragments(e){let{fragments:t}=this,n=Object.keys(t);if(!e)return n.length>0;for(let i=n.length;i--;){let r=t[n[i]];if((null==r?void 0:r.body.type)===e)return!0}return!1}hasParts(e){var t;return!!(null!=(t=this.activePartLists[e])&&t.length)}removeFragmentsInRange(e,t,n,i,r){(!i||this.hasGaps)&&Object.keys(this.fragments).forEach(a=>{let s=this.fragments[a];if(!s)return;let o=s.body;o.type===n&&(!i||o.gap)&&o.start<t&&o.end>e&&(s.buffered||r)&&this.removeFragment(o)})}removeFragment(e){let t=tF(e);e.clearElementaryStreamInfo();let n=this.activePartLists[e.type];if(n){let t=e.sn;this.activePartLists[e.type]=tO(n,e=>e.fragment.sn!==t)}delete this.fragments[t],e.endList&&delete this.endListFragments[e.type]}removeAllFragments(){var e;this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1;let t=null==(e=this.hls)||null==(e=e.latestLevelDetails)?void 0:e.partList;t&&t.forEach(e=>e.clearElementaryStreamInfo())}}function tN(e){var t,n,i;return e.buffered&&!!(e.body.gap||null!=(t=e.range.video)&&t.partial||null!=(n=e.range.audio)&&n.partial||null!=(i=e.range.audiovideo)&&i.partial)}function tF(e){return`${e.type}_${e.level}_${e.sn}`}function tO(e,t){return e.filter(e=>{let n=t(e);return n||e.clearElementaryStreamInfo(),n})}var tj={cbc:0,ctr:1};class tU{constructor(e,t,n){this.subtle=void 0,this.aesIV=void 0,this.aesMode=void 0,this.subtle=e,this.aesIV=t,this.aesMode=n}decrypt(e,t){switch(this.aesMode){case tj.cbc:return this.subtle.decrypt({
262name:"AES-CBC",iv:this.aesIV},t,e);case tj.ctr:return this.subtle.decrypt({name:"AES-CTR",counter:this.aesIV,length:64},t,e);default:throw Error(`[AESCrypto] invalid aes mode ${this.aesMode}`)}}}function tV(e){let t=e.byteLength,n=t&&new DataView(e.buffer).getUint8(t-1);return n?e.slice(0,t-n):e}class tB{constructor(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}uint8ArrayToUint32Array_(e){let t=new DataView(e),n=new Uint32Array(4);for(let e=0;e<4;e++)n[e]=t.getUint32(4*e);return n}initTable(){let e=this.sBox,t=this.invSBox,n=this.subMix,i=n[0],r=n[1],a=n[2],s=n[3],o=this.invSubMix,l=o[0],u=o[1],c=o[2],d=o[3],h=new Uint32Array(256),f=0,p=0,m=0;for(m=0;m<256;m++)m<128?h[m]=m<<1:h[m]=m<<1^283;for(m=0;m<256;m++){let n=p^p<<1^p<<2^p<<3^p<<4;n=n>>>8^255&n^99,e[f]=n,t[n]=f;let o=h[f],m=h[o],g=h[m],v=257*h[n]^16843008*n;i[f]=v<<24|v>>>8,r[f]=v<<16|v>>>16,a[f]=v<<8|v>>>24,s[f]=v,v=16843009*g^65537*m^257*o^16843008*f,l[n]=v<<24|v>>>8,u[n]=v<<16|v>>>16,c[n]=v<<8|v>>>24,d[n]=v,f?(f=o^h[h[h[g^o]]],p^=h[h[p]]):f=p=1}}expandKey(e){let t,n,i,r;let a=this.uint8ArrayToUint32Array_(e),s=!0,o=0;for(;o<a.length&&s;)s=a[o]===this.key[o],o++;if(s)return;this.key=a;let l=this.keySize=a.length;if(4!==l&&6!==l&&8!==l)throw Error("Invalid aes key size="+l);let u=this.ksRows=(l+6+1)*4,c=this.keySchedule=new Uint32Array(u),d=this.invKeySchedule=new Uint32Array(u),h=this.sBox,f=this.rcon,p=this.invSubMix,m=p[0],g=p[1],v=p[2],y=p[3];for(t=0;t<u;t++){if(t<l){i=c[t]=a[t];continue}r=i,t%l==0?r=(h[(r=r<<8|r>>>24)>>>24]<<24|h[r>>>16&255]<<16|h[r>>>8&255]<<8|h[255&r])^f[t/l|0]<<24:l>6&&t%l==4&&(r=h[r>>>24]<<24|h[r>>>16&255]<<16|h[r>>>8&255]<<8|h[255&r]),c[t]=i=(c[t-l]^r)>>>0}for(n=0;n<u;n++)t=u-n,r=3&n?c[t]:c[t-4],n<4||t<=4?d[n]=r:d[n]=m[h[r>>>24]]^g[h[r>>>16&255]]^v[h[r>>>8&255]]^y[h[255&r]],d[n]=d[n]>>>0}networkToHostOrderSwap(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24}decrypt(e,t,n){let i,r,a,s,o,l,u,c,d,h,f,p,m,g;let v=this.keySize+6,y=this.invKeySchedule,_=this.invSBox,b=this.invSubMix,x=b[0],C=b[1],E=b[2],w=b[3],T=this.uint8ArrayToUint32Array_(n),S=T[0],L=T[1],P=T[2],M=T[3],A=new Int32Array(e),I=new Int32Array(A.length),R=this.networkToHostOrderSwap;for(;t<A.length;){for(g=1,d=R(A[t]),h=R(A[t+1]),f=R(A[t+2]),p=R(A[t+3]),o=d^y[0],l=p^y[1],u=f^y[2],c=h^y[3],m=4;g<v;g++)i=x[o>>>24]^C[l>>16&255]^E[u>>8&255]^w[255&c]^y[m],r=x[l>>>24]^C[u>>16&255]^E[c>>8&255]^w[255&o]^y[m+1],a=x[u>>>24]^C[c>>16&255]^E[o>>8&255]^w[255&l]^y[m+2],s=x[c>>>24]^C[o>>16&255]^E[l>>8&255]^w[255&u]^y[m+3],o=i,l=r,u=a,c=s,m+=4;i=_[o>>>24]<<24^_[l>>16&255]<<16^_[u>>8&255]<<8^_[255&c]^y[m],r=_[l>>>24]<<24^_[u>>16&255]<<16^_[c>>8&255]<<8^_[255&o]^y[m+1],a=_[u>>>24]<<24^_[c>>16&255]<<16^_[o>>8&255]<<8^_[255&l]^y[m+2],s=_[c>>>24]<<24^_[o>>16&255]<<16^_[l>>8&255]<<8^_[255&u]^y[m+3],I[t]=R(i^S),I[t+1]=R(s^L),I[t+2]=R(a^P),I[t+3]=R(r^M),S=d,L=h,P=f,M=p,t+=4}return I.buffer}}class tH{constructor(e,t,n){this.subtle=void 0,this.key=void 0,this.aesMode=void 0,this.subtle=e,this.key=t,this.aesMode=n}expandKey(){let e=tG(this.aesMode);return this.subtle.importKey("raw",this.key,{name:e},!1,["encrypt","decrypt"])}}function tG(e){switch(e){case tj.cbc:return"AES-CBC";case tj.ctr:return"AES-CTR";default:throw Error(`[FastAESKey] invalid aes mode ${e}`)}}let tz=16;class tq{constructor(e,{removePKCS7Padding:t=!0}={}){if(this.logEnabled=!0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.useSoftware=void 0,this.enableSoftwareAES=void 0,this.enableSoftwareAES=e.enableSoftwareAES,this.removePKCS7Padding=t,t)try{let e=self.crypto;e&&(this.subtle=e.subtle||e.webkitSubtle)}catch(e){}this.useSoftware=!this.subtle}destroy(){this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null}isSync(){return this.useSoftware}flush(){let{currentResult:e,remainderData:t}=this;if(!e||t)return this.reset(),null;let n=new Uint8Array(e);return(this.reset(),this.removePKCS7Padding)?tV(n):n}reset(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)}decrypt(e,t,n,i){return this.useSoftware?new Promise((r,a)=>{let s=ArrayBuffer.isView(e)?e:new Uint8Array(e);this.softwareDecrypt(s,t,n,i);let o=this.flush();o?r(o.buffer):a(Error("[softwareDecrypt] Failed to decrypt data"))}
vendor: 4,217 bytes, line 262
262):this.webCryptoDecrypt(new Uint8Array(e),t,n,i)}softwareDecrypt(e,t,n,i){let{currentIV:r,currentResult:a,remainderData:s}=this;if(i!==tj.cbc||16!==t.byteLength)return A.warn("SoftwareDecrypt: can only handle AES-128-CBC"),null;this.logOnce("JS AES decrypt"),s&&(e=eg(s,e),this.remainderData=null);let o=this.getValidChunk(e);if(!o.length)return null;r&&(n=r);let l=this.softwareDecrypter;l||(l=this.softwareDecrypter=new tB),l.expandKey(t);let u=a;return(this.currentResult=l.decrypt(o.buffer,0,n),this.currentIV=o.slice(-16).buffer,u)?u:null}webCryptoDecrypt(e,t,n,i){if(this.key!==t||!this.fastAesKey){if(!this.subtle)return Promise.resolve(this.onWebCryptoError(e,t,n,i));this.key=t,this.fastAesKey=new tH(this.subtle,t,i)}return this.fastAesKey.expandKey().then(t=>this.subtle?(this.logOnce("WebCrypto AES decrypt"),new tU(this.subtle,new Uint8Array(n),i).decrypt(e.buffer,t)):Promise.reject(Error("web crypto not initialized"))).catch(r=>(A.warn(`[decrypter]: WebCrypto Error, disable WebCrypto API, ${r.name}: ${r.message}`),this.onWebCryptoError(e,t,n,i)))}onWebCryptoError(e,t,n,i){let r=this.enableSoftwareAES;if(r){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(e,t,n,i);let r=this.flush();if(r)return r.buffer}throw Error("WebCrypto"+(r?" and softwareDecrypt":"")+": failed to decrypt data")}getValidChunk(e){let t=e,n=e.length-e.length%tz;return n!==e.length&&(t=e.slice(0,n),this.remainderData=e.slice(n)),t}logOnce(e){this.logEnabled&&(A.log(`[decrypter]: ${e}`),this.logEnabled=!1)}}let tW=131072;class t${constructor(e){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=e}destroy(){this.loader&&(this.loader.destroy(),this.loader=null)}abort(){this.loader&&this.loader.abort()}load(e,t){let n=e.url;if(!n)return Promise.reject(new tX({type:o.NETWORK_ERROR,details:l.FRAG_LOAD_ERROR,fatal:!1,frag:e,error:Error(`Fragment does not have a ${n?"part list":"url"}`),networkDetails:null}));this.abort();let i=this.config,r=i.fLoader,a=i.loader;return new Promise((s,u)=>{if(this.loader&&this.loader.destroy(),e.gap){if(e.tagList.some(e=>"GAP"===e[0])){u(tY(e));return}e.gap=!1}let c=this.loader=r?new r(i):new a(i),d=tZ(e);e.loader=c;let h=tS(i.fragLoadPolicy.default),f={loadPolicy:h,timeout:h.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:"initSegment"===e.sn?1/0:tW};e.stats=c.stats;let p={onSuccess:(t,n,i,r)=>{this.resetLoader(e,c);let a=t.data;i.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(a.slice(0,16)),a=a.slice(16)),s({frag:e,part:null,payload:a,networkDetails:r})},onError:(t,i,r,a)=>{this.resetLoader(e,c),u(new tX({type:o.NETWORK_ERROR,details:l.FRAG_LOAD_ERROR,fatal:!1,frag:e,response:_({url:n,data:void 0},t),error:Error(`HTTP Error ${t.code} ${t.text}`),networkDetails:r,stats:a}))},onAbort:(t,n,i)=>{this.resetLoader(e,c),u(new tX({type:o.NETWORK_ERROR,details:l.INTERNAL_ABORTED,fatal:!1,frag:e,error:Error("Aborted"),networkDetails:i,stats:t}))},onTimeout:(t,n,i)=>{this.resetLoader(e,c),u(new tX({type:o.NETWORK_ERROR,details:l.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,error:Error(`Timeout after ${f.timeout}ms`),networkDetails:i,stats:t}))}};t&&(p.onProgress=(n,i,r,a)=>t({frag:e,part:null,payload:r,networkDetails:a})),c.load(d,f,p)})}loadPart(e,t,n){this.abort();let i=this.config,r=i.fLoader,a=i.loader;return new Promise((s,u)=>{if(this.loader&&this.loader.destroy(),e.gap||t.gap){u(tY(e,t));return}let c=this.loader=r?new r(i):new a(i),d=tZ(e,t);e.loader=c;let h=tS(i.fragLoadPolicy.default),f={loadPolicy:h,timeout:h.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:tW};t.stats=c.stats,c.load(d,f,{onSuccess:(i,r,a,o)=>{this.resetLoader(e,c),this.updateStatsFromPart(e,t);let l={frag:e,part:t,payload:i.data,networkDetails:o};n(l),s(l)},onError:(n,i,r,a)=>{this.resetLoader(e,c),u(new tX({type:o.NETWORK_ERROR,details:l.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:t,response:_({url:d.url,data:void 0},n),error:Error(`HTTP Error ${n.code} ${n.text}`),networkDetails:r,stats:a}))},onAbort:(n,i,r)=>{e.stats.aborted=t.stats.aborted,this.resetLoader(e,c),u(new tX({type:o.NETWORK_ERROR,details:l.INTERNAL_ABORTED,fatal:!1,frag:e,part:t,error:Error("Aborted"),networkDetails:r,stats:n}))},onTimeout:(n,i,r)=>
262{this.resetLoader(e,c),u(new tX({type:o.NETWORK_ERROR,details:l.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,part:t,error:Error(`Timeout after ${f.timeout}ms`),networkDetails:r,stats:n}))}})})}updateStatsFromPart(e,t){let n=e.stats,i=t.stats,r=i.total;if(n.loaded+=i.loaded,r){let i=Math.round(e.duration/t.duration),a=Math.min(Math.round(n.loaded/r),i),s=(i-a)*Math.round(n.loaded/a);n.total=n.loaded+s}else n.total=Math.max(n.loaded,n.total);let a=n.loading,s=i.loading;a.start?a.first+=s.first-s.start:(a.start=s.start,a.first=s.first),a.end=s.end}resetLoader(e,t){e.loader=null,this.loader===t&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),t.destroy()}}function tZ(e,t=null){let n=t||e,i={frag:e,part:t,responseType:"arraybuffer",url:n.url,headers:{},rangeStart:0,rangeEnd:0},a=n.byteRangeStartOffset,s=n.byteRangeEndOffset;if(r(a)&&r(s)){var o;let t=a,n=s;if("initSegment"===e.sn&&tK(null==(o=e.decryptdata)?void 0:o.method)){let e=s-a;e%16&&(n=s+(16-e%16)),0!==a&&(i.resetIV=!0,t=a-16)}i.rangeStart=t,i.rangeEnd=n}return i}function tY(e,t){let n=Error(`GAP ${e.gap?"tag":"attribute"} found`),i={type:o.MEDIA_ERROR,details:l.FRAG_GAP,fatal:!1,frag:e,error:n,networkDetails:null};return t&&(i.part=t),(t||e).stats.aborted=!0,new tX(i)}function tK(e){return"AES-128"===e||"AES-256"===e}class tX extends Error{constructor(e){super(e.error.message),this.data=void 0,this.data=e}}class tQ extends C{constructor(e,t){super(e,t),this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}destroy(){this.onHandlerDestroying(),this.onHandlerDestroyed()}onHandlerDestroying(){this.clearNextTick(),this.clearInterval()}onHandlerDestroyed(){}hasInterval(){return!!this._tickInterval}hasNextTick(){return!!this._tickTimer}setInterval(e){return!this._tickInterval&&(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,e),!0)}clearInterval(){return!!this._tickInterval&&(self.clearInterval(this._tickInterval),this._tickInterval=null,!0)}clearNextTick(){return!!this._tickTimer&&(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0)}tick(){this._tickCallCount++,1===this._tickCallCount&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)}tickImmediate(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)}doTick(){}}class tJ{constructor(e,t,n,i=0,r=-1,a=!1){this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing=t0(),this.buffering={audio:t0(),video:t0(),audiovideo:t0()},this.level=e,this.sn=t,this.id=n,this.size=i,this.part=r,this.partial=a}}function t0(){return{start:0,executeStart:0,executeEnd:0,end:0}}let t1={length:0,start:()=>0,end:()=>0};class t2{static isBuffered(e,t){if(e){let n=t2.getBuffered(e);for(let e=n.length;e--;)if(t>=n.start(e)&&t<=n.end(e))return!0}return!1}static bufferedRanges(e){if(e){let t=t2.getBuffered(e);return t2.timeRangesToArray(t)}return[]}static timeRangesToArray(e){let t=[];for(let n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t}static bufferInfo(e,t,n){if(e){let i=t2.bufferedRanges(e);if(i.length)return t2.bufferedInfo(i,t,n)}return{len:0,start:t,end:t,bufferedIndex:-1}}static bufferedInfo(e,t,n){let i;t=Math.max(0,t),e.length>1&&e.sort((e,t)=>e.start-t.start||t.end-e.end);let r=-1,a=[];if(n)for(let i=0;i<e.length;i++){t>=e[i].start&&t<=e[i].end&&(r=i);let s=a.length;if(s){let t=a[s-1].end;e[i].start-t<n?e[i].end>t&&(a[s-1].end=e[i].end):a.push(e[i])}else a.push(e[i])}else a=e;let s=0,o=t,l=t;for(let e=0;e<a.length;e++){let u=a[e].start,c=a[e].end;if(-1===r&&t>=u&&t<=c&&(r=e),t+n>=u&&t<c)o=u,s=(l=c)-t;else if(t+n<u){i=u;break}}return{len:s,start:o||0,end:l||0,nextStart:i,buffered:e,bufferedIndex:r}}static getBuffered(e){try{return e.buffered||t1}catch(e){return A.log("failed to get media.buffered",e),t1}}}let t3=/\{\$([a-zA-Z0-9-_]+)\}/g;function t5(e){return t3.test(e)}function t4(e,t){if(null!==e.variableList||e.hasVariableRefs){let n=e.variableList;return t.replace(t3,t=>{let i=t.substring(2,t.length-1),r=null==n?void 0:n[i];return void 0===r?(e.playlistParsingError||(e.playlistParsingError=Error(`Missing preceding EXT-X-DEFINE tag for Variable Reference: "${i}"`)),t):r})}return t}
262function t6(e,t,n){let i,r,a=e.variableList;if(a||(e.variableList=a={}),"QUERYPARAM"in t){i=t.QUERYPARAM;try{let e=new self.URL(n).searchParams;if(e.has(i))r=e.get(i);else throw Error(`"${i}" does not match any query parameter in URI: "${n}"`)}catch(t){e.playlistParsingError||(e.playlistParsingError=Error(`EXT-X-DEFINE QUERYPARAM: ${t.message}`))}}else i=t.NAME,r=t.VALUE;i in a?e.playlistParsingError||(e.playlistParsingError=Error(`EXT-X-DEFINE duplicate Variable Name declarations: "${i}"`)):a[i]=r||""}function t8(e,t,n){let i=t.IMPORT;if(n&&i in n){let t=e.variableList;t||(e.variableList=t={}),t[i]=n[i]}else e.playlistParsingError||(e.playlistParsingError=Error(`EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "${i}"`))}let t7=/^(\d+)x(\d+)$/,t9=/(.+?)=(".*?"|.*?)(?:,|$)/g;class ne{constructor(e,t){"string"==typeof e&&(e=ne.parseAttrList(e,t)),v(this,e)}get clientAttrs(){return Object.keys(this).filter(e=>"X-"===e.substring(0,2))}decimalInteger(e){let t=parseInt(this[e],10);return t>Number.MAX_SAFE_INTEGER?1/0:t}hexadecimalInteger(e){if(this[e]){let t=(this[e]||"0x").slice(2),n=new Uint8Array((t=(1&t.length?"0":"")+t).length/2);for(let e=0;e<t.length/2;e++)n[e]=parseInt(t.slice(2*e,2*e+2),16);return n}return null}hexadecimalIntegerAsNumber(e){let t=parseInt(this[e],16);return t>Number.MAX_SAFE_INTEGER?1/0:t}decimalFloatingPoint(e){return parseFloat(this[e])}optionalFloat(e,t){let n=this[e];return n?parseFloat(n):t}enumeratedString(e){return this[e]}enumeratedStringList(e,t){let n=this[e];return(n?n.split(/[ ,]+/):[]).reduce((e,t)=>(e[t.toLowerCase()]=!0,e),t)}bool(e){return"YES"===this[e]}decimalResolution(e){let t=t7.exec(this[e]);if(null!==t)return{width:parseInt(t[1],10),height:parseInt(t[2],10)}}static parseAttrList(e,t){let n;let i={},r='"';for(t9.lastIndex=0;null!==(n=t9.exec(e));){let a=n[1].trim(),s=n[2],o=0===s.indexOf(r)&&s.lastIndexOf(r)===s.length-1,l=!1;if(o)s=s.slice(1,-1);else switch(a){case"IV":case"SCTE35-CMD":case"SCTE35-IN":case"SCTE35-OUT":l=!0}if(t&&(o||l))s=t4(t,s);else if(!l&&!o)switch(a){case"CLOSED-CAPTIONS":if("NONE"===s)break;case"ALLOWED-CPC":case"CLASS":case"ASSOC-LANGUAGE":case"AUDIO":case"BYTERANGE":case"CHANNELS":case"CHARACTERISTICS":case"CODECS":case"DATA-ID":case"END-DATE":case"GROUP-ID":case"ID":case"IMPORT":case"INSTREAM-ID":case"KEYFORMAT":case"KEYFORMATVERSIONS":case"LANGUAGE":case"NAME":case"PATHWAY-ID":case"QUERYPARAM":case"RECENTLY-REMOVED-DATERANGES":case"SERVER-URI":case"STABLE-RENDITION-ID":case"STABLE-VARIANT-ID":case"START-DATE":case"SUBTITLES":case"SUPPLEMENTAL-CODECS":case"URI":case"VALUE":case"VIDEO":case"X-ASSET-LIST":case"X-ASSET-URI":A.warn(`${e}: attribute ${a} is missing quotes`)}i[a]=s}return i}}let nt="com.apple.hls.interstitial";function nn(e){return"ID"!==e&&"CLASS"!==e&&"CUE"!==e&&"START-DATE"!==e&&"DURATION"!==e&&"END-DATE"!==e&&"END-ON-NEXT"!==e}function ni(e){return"SCTE35-OUT"===e||"SCTE35-IN"===e||"SCTE35-CMD"===e}class nr{constructor(e,t,n=0){var i;if(this.attr=void 0,this.tagAnchor=void 0,this.tagOrder=void 0,this._startDate=void 0,this._endDate=void 0,this._dateAtEnd=void 0,this._cue=void 0,this._badValueForSameId=void 0,this.tagAnchor=(null==t?void 0:t.tagAnchor)||null,this.tagOrder=null!=(i=null==t?void 0:t.tagOrder)?i:n,t){let n=t.attr;for(let t in n)if(Object.prototype.hasOwnProperty.call(e,t)&&e[t]!==n[t]){A.warn(`DATERANGE tag attribute: "${t}" does not match for tags with ID: "${e.ID}"`),this._badValueForSameId=t;break}e=v(new ne({}),n,e)}if(this.attr=e,t?(this._startDate=t._startDate,this._cue=t._cue,this._endDate=t._endDate,this._dateAtEnd=t._dateAtEnd):this._startDate=new Date(e["START-DATE"]),"END-DATE"in this.attr){let e=(null==t?void 0:t.endDate)||new Date(this.attr["END-DATE"]);r(e.getTime())&&(this._endDate=e)}}get id(){return this.attr.ID}get class(){return this.attr.CLASS}get cue(){let e=this._cue;return void 0===e?this._cue=this.attr.enumeratedStringList(this.attr.CUE?"CUE":"X-CUE",{pre:!1,post:!1,once:!1}):e}get startTime(){let{tagAnchor:e}=this;return null===e||null===e.programDateTime?(A.warn(`Expected tagAnchor Fragment with PDT set for DateRange "${this.id}": ${e}`),NaN):e.start+(this.startDate.getTime()-e.programDateTime)/1e3}get startDate(){return this._startDate}get endDate(){let e=this._endDate||this._dateAtEnd;if(e)return e;let t=this.duration;return null!==t?this._dateAtEnd=new Date(this._startDate.getTime()+1e3*t):null}get duration(){if("DURATION"in this.attr){let e=this.attr.decimalFloatingPoint("DURATION");if(r(e))return e}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}get plannedDuration(){return"PLANNED-DURATION"in this.attr?this.attr.decimalFloatingPoint("PLANNED-DURATION"):null}get endOnNext(){return this.attr.bool("END-ON-NEXT")}get isInterstitial(){return this.class===nt}get isValid(){return!!this.id&&!this._badValueForSameId&&r(this.startDate.getTime())&&(null===this.duration||this.duration>=0)&&(!this.endOnNext||!!this.class)&&(!this.attr.CUE||!this.cue.pre&&!this.cue.post||this.cue.pre!==this.cue.post)&&(!this.isInterstitial||"X-ASSET-URI"in this.attr||"X-ASSET-LIST"in this.attr)}}let na=10;class ns{constructor(e){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.dateRanges=void 0,this.dateRangeTagCount=0,this.live=!0,this.requestScheduled=-1,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.misses=0,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.drift
262StartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.encryptedFragments=void 0,this.playlistParsingError=null,this.variableList=null,this.hasVariableRefs=!1,this.appliedTimelineOffset=void 0,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=e}reloaded(e){if(!e){this.advanced=!0,this.updated=!0;return}let t=this.lastPartSn-e.lastPartSn,n=this.lastPartIndex-e.lastPartIndex;this.updated=this.endSN!==e.endSN||!!n||!!t||!this.live,this.advanced=this.endSN>e.endSN||t>0||0===t&&n>0,this.updated||this.advanced?this.misses=Math.floor(.6*e.misses):this.misses=e.misses+1}get hasProgramDateTime(){return!!this.fragments.length&&r(this.fragments[this.fragments.length-1].programDateTime)}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||na}get drift(){let e=this.driftEndTime-this.driftStartTime;return e>0?1e3*(this.driftEnd-this.driftStart)/e:1}get edge(){return this.partEnd||this.fragmentEnd}get partEnd(){var e;return null!=(e=this.partList)&&e.length?this.partList[this.partList.length-1].end:this.fragmentEnd}get fragmentEnd(){return this.fragments.length?this.fragments[this.fragments.length-1].end:0}get fragmentStart(){return this.fragments.length?this.fragments[0].start:0}get age(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}get lastPartIndex(){var e;return null!=(e=this.partList)&&e.length?this.partList[this.partList.length-1].index:-1}get maxPartIndex(){let e=this.partList;if(e){let t=this.lastPartIndex;if(-1!==t){for(let n=e.length;n--;)if(e[n].index>t)return e[n].index;return t}}return 0}get lastPartSn(){var e;return null!=(e=this.partList)&&e.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}get expired(){if(this.live&&this.age&&this.misses<3){let e=this.partEnd-this.fragmentStart;return this.age>Math.max(e,this.totalduration)+this.levelTargetDuration}return!1}}function no(e){return"AES-128"===e||"AES-256"===e||"AES-256-CTR"===e}function nl(e){switch(e){case"AES-128":case"AES-256":return tj.cbc;case"AES-256-CTR":return tj.ctr;default:throw Error(`invalid full segment method ${e}`)}}function nu(e){return Uint8Array.from(atob(e),e=>e.charCodeAt(0))}function nc(e){return Uint8Array.from(unescape(encodeURIComponent(e)),e=>e.charCodeAt(0))}function nd(e){let t=nc(e).subarray(0,16),n=new Uint8Array(16);return n.set(t,16-t.length),n}function nh(e){let t=function(e,t,n){let i=e[t];e[t]=e[n],e[n]=i};t(e,0,3),t(e,1,2),t(e,4,5),t(e,6,7)}function nf(e){let t=e.split(":"),n=null;if("data"===t[0]&&2===t.length){let e=t[1].split(";"),i=e[e.length-1].split(",");if(2===i.length){let t="base64"===i[0],r=i[1];t?(e.splice(-1,1),n=nu(r)):n=nd(r)}}return n}let np="undefined"!=typeof self?self:void 0;var nm={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},ng={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function nv(e){switch(e){case ng.FAIRPLAY:return nm.FAIRPLAY;case ng.PLAYREADY:return nm.PLAYREADY;case ng.WIDEVINE:return nm.WIDEVINE;case ng.CLEARKEY:return nm.CLEARKEY}}function ny(e){switch(e){case nm.FAIRPLAY:return ng.FAIRPLAY;case nm.PLAYREADY:return ng.PLAYREADY;case nm.WIDEVINE:return ng.WIDEVINE;case nm.CLEARKEY:return ng.CLEARKEY}}function n_(e){let{drmSystems:t,widevineLicenseUrl:n}=e,i=t?[nm.FAIRPLAY,nm.WIDEVINE,nm.PLAYREADY,nm.CLEARKEY].filter(e=>!!t[e]):[];return!i[nm.WIDEVINE]&&n&&i.push(nm.WIDEVINE),i}let nb=function(e){return null!=np&&null!=(e=np.navigator)&&e.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}();function nx(e,t,n,i){let r;switch(e){case nm.FAIRPLAY:r=["cenc","sinf"];break;case nm.WIDEVINE:case nm.PLAYREADY:r=["cenc"];break;case nm.CLEARKEY:r=["cenc","keyids"];break;default:throw Error(`Unknown key-system: ${e}`)}return nC(r,t,n,i)}function nC(e,t,n,i){return[{initDataTypes:e,persistentState:i.persistentState||"optional",distinctiveIdentifier:i.distinctiveIdentifier||"optional",sessionTypes:i.sessionTypes||[i.sessionType||"temporary"],audioCapabilities:t.map(e=>({contentType:`audio/mp4; codecs=${e}
262`,robustness:i.audioRobustness||"",encryptionScheme:i.audioEncryptionScheme||null})),videoCapabilities:n.map(e=>({contentType:`video/mp4; codecs=${e}`,robustness:i.videoRobustness||"",encryptionScheme:i.videoEncryptionScheme||null}))}]}function nE(e){var t;return"persistent-license"===e.sessionType||!!(null!=(t=e.sessionTypes)&&t.some(e=>"persistent-license"===e))}function nw(e){let t=new Uint16Array(e.buffer,e.byteOffset,e.byteLength/2),n=String.fromCharCode.apply(null,Array.from(t)),i=n.substring(n.indexOf("<"),n.length),r=new DOMParser().parseFromString(i,"text/xml").getElementsByTagName("KID")[0];if(r){let e=r.childNodes[0]?r.childNodes[0].nodeValue:r.getAttribute("VALUE");if(e){let t=nu(e).subarray(0,16);return nh(t),t}}return null}let nT={};class nS{static clearKeyUriToKeyIdMap(){nT={}}constructor(e,t,n,i=[1],r=null,a){this.uri=void 0,this.method=void 0,this.keyFormat=void 0,this.keyFormatVersions=void 0,this.encrypted=void 0,this.isCommonEncryption=void 0,this.iv=null,this.key=null,this.keyId=null,this.pssh=null,this.method=e,this.uri=t,this.keyFormat=n,this.keyFormatVersions=i,this.iv=r,this.encrypted=!!e&&"NONE"!==e,this.isCommonEncryption=this.encrypted&&!no(e),null!=a&&a.startsWith("0x")&&(this.keyId=new Uint8Array(F(a)))}matches(e){var t,n;return e.uri===this.uri&&e.method===this.method&&e.encrypted===this.encrypted&&e.keyFormat===this.keyFormat&&e.keyFormatVersions.join(",")===this.keyFormatVersions.join(",")&&(null==(t=e.iv)?void 0:t.join(","))===(null==(n=this.iv)?void 0:n.join(","))}isSupported(){if(this.method){if(no(this.method)||"NONE"===this.method)return!0;if("identity"===this.keyFormat)return"SAMPLE-AES"===this.method;switch(this.keyFormat){case ng.FAIRPLAY:case ng.WIDEVINE:case ng.PLAYREADY:case ng.CLEARKEY:return -1!==["ISO-23001-7","SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)}}return!1}getDecryptData(e){if(!this.encrypted||!this.uri)return null;if(no(this.method)&&this.uri&&!this.iv){"number"!=typeof e&&(A.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),e=0);let t=nL(e);return new nS(this.method,this.uri,"identity",this.keyFormatVersions,t)}if(this.pssh&&this.keyId)return this;let t=nf(this.uri);if(t)switch(this.keyFormat){case ng.WIDEVINE:if(this.pssh=t,!this.keyId&&t.length>=22){let e=t.length-22;this.keyId=t.subarray(e,e+16)}break;case ng.PLAYREADY:{let e=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=ew(e,null,t),this.keyId=nw(t);break}default:{let e=t.subarray(0,16);if(16!==e.length){let t=new Uint8Array(16);t.set(e,16-e.length),e=t}this.keyId=e}}if(!this.keyId||16!==this.keyId.byteLength){let e=nT[this.uri];if(!e){let t=Object.keys(nT).length%Number.MAX_SAFE_INTEGER;new DataView((e=new Uint8Array(16)).buffer,12,4).setUint32(0,t),nT[this.uri]=e}this.keyId=e}return this}}function nL(e){let t=new Uint8Array(16);for(let n=12;n<16;n++)t[n]=e>>8*(15-n)&255;return t}let nP=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-(SESSION-DATA|SESSION-KEY|DEFINE|CONTENT-STEERING|START):([^\r\n]*)[\r\n]+/g,nM=/#EXT-X-MEDIA:(.*)/g,nA=/^#EXT(?:INF|-X-TARGETDURATION):/m,nI=RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#.*/.source].join("|"),"g"),nR=new RegExp([/#EXT-X-(PROGRAM-DATE-TIME|BYTERANGE|DATERANGE|DEFINE|KEY|MAP|PART|PART-INF|PLAYLIST-TYPE|PRELOAD-HINT|RENDITION-REPORT|SERVER-CONTROL|SKIP|START):(.+)/.source,/#EXT-X-(BITRATE|DISCONTINUITY-SEQUENCE|MEDIA-SEQUENCE|TARGETDURATION|VERSION): *(\d+)/.source,/#EXT-X-(DISCONTINUITY|ENDLIST|GAP|INDEPENDENT-SEGMENTS)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|"));class nk{static findGroup(e,t){for(let n=0;n<e.length;n++){let i=e[n];if(i.id===t)return i}}static resolve(e,t){return U.buildAbsoluteURL(t,e,{alwaysNormalize:!0})}static isMediaPlaylist(e){return nA.test(e)}static parseMasterPlaylist(e,t){let n;let i={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:t5(e)},r=[];for(nP.lastIndex=0;null!=(n=nP.exec(e));)if(n[1]){var a;let e=new ne(n[1],i),s=t4(i,n[2]),o={attrs:e,bitrate:e.decimalInteger("BANDWIDTH")||e.decimalInteger("AVERAGE-BANDWIDTH"),name:e.NAME,url:nk.resolve(s,t)},l=e.decimalResolution("RESOLUTION");l&&(o.width=l.width,o.height=l.height),nj(e.CODECS,o);let u=e["SUPPLEMENTAL-CODECS"];u&&(o.supplemental={},nj(u,o.supplemental)),null!=(a=o.unknownCodecs)&&a.length||r.push(o),i.levels.push(o)}else if(n[3]){let e=n[3],r=n[4];switch(e){case"SESSION-DATA":{let e=new ne(r,i),t=e["DATA-ID"];t&&(null===i.sessionData&&(i.sessionData={}),i.sessionData[t]=e);break}case"SESSION-KEY":{let e=nF(r,t,i);e.encrypted&&e.isSupported()?(null===i.sessionKeys&&(i.sessionKeys=[]),i.sessionKeys.push(e)):A.warn(`[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "${r}"`);break}case"DEFINE":{let e=new ne(r,i);t6(i,e,t)}break;case"CONTENT-STEERING":{let e=new ne(r,i);i.contentSteering={uri:nk.resolve(e["SERVER-URI"],t),pathwayId:e["PATHWAY-ID"]||"."};break}case"START":i.startTimeOffset=nO(r)}}let s=r.length>0&&r.length<i.levels.length;return i.levels=s?r:i.levels,0===i.levels.length&&(i.playlistParsingError=Error("no levels found in manifest")),i}
262static parseMasterPlaylistMedia(e,t,n){let i;let r={},a=n.levels,s={AUDIO:a.map(e=>({id:e.attrs.AUDIO,audioCodec:e.audioCodec})),SUBTITLES:a.map(e=>({id:e.attrs.SUBTITLES,textCodec:e.textCodec})),"CLOSED-CAPTIONS":[]},o=0;for(nM.lastIndex=0;null!==(i=nM.exec(e));){let e=new ne(i[1],n),a=e.TYPE;if(a){let n=s[a],i=r[a]||[];r[a]=i;let l=e.LANGUAGE,u=e["ASSOC-LANGUAGE"],c=e.CHANNELS,d=e.CHARACTERISTICS,h=e["INSTREAM-ID"],f={attrs:e,bitrate:0,id:o++,groupId:e["GROUP-ID"]||"",name:e.NAME||l||"",type:a,default:e.bool("DEFAULT"),autoselect:e.bool("AUTOSELECT"),forced:e.bool("FORCED"),lang:l,url:e.URI?nk.resolve(e.URI,t):""};if(u&&(f.assocLang=u),c&&(f.channels=c),d&&(f.characteristics=d),h&&(f.instreamId=h),null!=n&&n.length){let e=nk.findGroup(n,f.groupId)||n[0];nU(f,e,"audioCodec"),nU(f,e,"textCodec")}i.push(f)}}return r}static parseLevelPlaylist(e,t,n,i,a,s){var o;let l,u,c,d;let h={url:t},f=new ns(t),p=f.fragments,m=[],g=null,y=0,_=0,b=0,x=0,C=0,E=null,w=new z(i,h),T=-1,S=!1,L=null;if(nI.lastIndex=0,f.m3u8=e,f.hasVariableRefs=t5(e),(null==(o=nI.exec(e))?void 0:o[0])!=="#EXTM3U")return f.playlistParsingError=Error("Missing format identifier #EXTM3U"),f;for(;null!==(l=nI.exec(e));){S&&(S=!1,(w=new z(i,h)).playlistOffset=b,w.setStart(b),w.sn=y,w.cc=x,C&&(w.bitrate=C),w.level=n,g&&(w.initSegment=g,g.rawProgramDateTime&&(w.rawProgramDateTime=g.rawProgramDateTime,g.rawProgramDateTime=null),L&&(w.setByteRange(L),L=null)));let e=l[1];if(e){w.duration=parseFloat(e);let t=(" "+l[2]).slice(1);w.title=t||null,w.tagList.push(t?["INF",e,t]:["INF",e])}else if(l[3]){if(r(w.duration)){w.playlistOffset=b,w.setStart(b),c&&nG(w,c,f),w.sn=y,w.level=n,w.cc=x,p.push(w);let e=(" "+l[3]).slice(1);w.relurl=t4(f,e),nB(w,E,m),E=w,b+=w.duration,y++,_=0,S=!0}}else{if(!(l=l[0].match(nR))){A.warn("No matches on slow regex match for level playlist!");continue}for(u=1;u<l.length&&void 0===l[u];u++);let e=(" "+l[u]).slice(1),a=(" "+l[u+1]).slice(1),o=l[u+2]?(" "+l[u+2]).slice(1):null;switch(e){case"BYTERANGE":E?w.setByteRange(a,E):w.setByteRange(a);break;case"PROGRAM-DATE-TIME":w.rawProgramDateTime=a,w.tagList.push(["PROGRAM-DATE-TIME",a]),-1===T&&(T=p.length);break;case"PLAYLIST-TYPE":f.type&&nz(f,e,l),f.type=a.toUpperCase();break;case"MEDIA-SEQUENCE":0!==f.startSN?nz(f,e,l):p.length>0&&nq(f,e,l),y=f.startSN=parseInt(a);break;case"SKIP":{f.skippedSegments&&nz(f,e,l);let t=new ne(a,f),n=t.decimalInteger("SKIPPED-SEGMENTS");if(r(n)){f.skippedSegments+=n;for(let e=n;e--;)p.push(null);y+=n}let i=t.enumeratedString("RECENTLY-REMOVED-DATERANGES");i&&(f.recentlyRemovedDateranges=(f.recentlyRemovedDateranges||[]).concat(i.split(" ")));break}case"TARGETDURATION":0!==f.targetduration&&nz(f,e,l),f.targetduration=Math.max(parseInt(a),1);break;case"VERSION":null!==f.version&&nz(f,e,l),f.version=parseInt(a);break;case"INDEPENDENT-SEGMENTS":break;case"ENDLIST":f.live||nz(f,e,l),f.live=!1;break;case"#":(a||o)&&w.tagList.push(o?[a,o]:[a]);break;case"DISCONTINUITY":x++,w.tagList.push(["DIS"]);break;case"GAP":w.gap=!0,w.tagList.push([e]);break;case"BITRATE":w.tagList.push([e,a]),r(C=1e3*parseInt(a))?w.bitrate=C:C=0;break;case"DATERANGE":{let e=new ne(a,f),t=new nr(e,f.dateRanges[e.ID],f.dateRangeTagCount);f.dateRangeTagCount++,t.isValid||f.skippedSegments?f.dateRanges[t.id]=t:A.warn(`Ignoring invalid DATERANGE tag: "${a}"`),w.tagList.push(["EXT-X-DATERANGE",a]);break}case"DEFINE":{let e=new ne(a,f);"IMPORT"in e?t8(f,e,s):t6(f,e,t)}break;case"DISCONTINUITY-SEQUENCE":0!==f.startCC?nz(f,e,l):p.length>0&&nq(f,e,l),f.startCC=x=parseInt(a);break;case"KEY":{let e=nF(a,t,f);if(e.isSupported()){if("NONE"===e.method){c=void 0;break}c||(c={});let t=c[e.keyFormat];null!=t&&t.matches(e)||(t&&(c=v({},c)),c[e.keyFormat]=e)}else A.warn(`[Keys] Ignoring invalid EXT-X-KEY tag: "${a}"`);break}case"START":f.startTimeOffset=nO(a);break;case"MAP":{let e=new ne(a,f);if(w.duration){let t=new z(i,h);nH(t,e,n,c),g=t,w.initSegment=g,g.rawProgramDateTime&&!w.rawProgramDateTime&&(w.rawProgramDateTime=g.rawProgramDateTime)}else{let t=w.byteRangeEndOffset;if(t){let e=w.byteRangeStartOffset;L=`${t-e}@${e}`}else L=null;nH(w,e,n,c),g=w,S=!0}g.cc=x;break}case"SERVER-CONTROL":d&&nz(f,e,l),d=new ne(a),f.canBlockReload=d.bool("CAN-BLOCK-RELOAD"),f.canSkipUntil=d.optionalFloat("CAN-SKIP-UNTIL",0),f.canSkipDateRanges=f.canSkipUntil>0&&d.bool("CAN-SKIP-DATERANGES"),f.partHoldBack=d.optionalFloat("PART-HOLD-BACK",0),f.holdBack=d.optionalFloat("HOLD-BACK",0);break;case"PART-INF":{f.partTarget&&nz(f,e,l);let t=new ne(a);f.partTarget=t.decimalFloatingPoint("PART-TARGET");break}case"PART":{let e=f.partList;e||(e=f.partList=[]);let t=_>0?e[e.length-1]:void 0,n=_++,i=new q(new ne(a,f),w,h,n,t);e.push(i),w.duration+=i.duration;break}case"PRELOAD-HINT":{let e=new ne(a,f);f.preloadHint=e;break}case"RENDITION-REPORT":{let e=new ne(a,f);f.renditionReports=f.renditionReports||[],f.renditionReports.push(e);break}default:A.warn(`line parsed but not handled: ${l}`)}}}E&&!E.relurl?(p.pop(),b-=E.duration,f.partList&&(f.fragmentHint=E)):f.partList&&(nB(w,E,m),w.cc=x,f.fragmentHint=w,c&&nG(w,c,f)),f.targetduration||(f.playlistParsingError=Error("#EXT-X-TARGETDURATION is required"));let P=p.length,M=p[0],I=p[P-1];if((b+=f.skippedSegments*f.targetduration)>0&&P&&I){f.averagetargetduration=b/P;let e=I.sn;f.endSN="initSegment"!==e?e:0,f.live||(I.endList=!0),T>0&&(nV(p,T),M&&m.unshift(M))}return f.fragmentHint&&(b+=f.fragmentHint.duration),f.totalduration=b,m.length&&f.dateRangeTagCount&&M&&nD(m,f),f.endCC=x,f}}function nD(e,t){let n=e.length;
262if(!n){if(!t.hasProgramDateTime)return;{let i=t.fragments[t.fragments.length-1];e.push(i),n++}}let i=e[n-1],r=t.live?1/0:t.totalduration,a=Object.keys(t.dateRanges);for(let o=a.length;o--;){let l=t.dateRanges[a[o]],u=l.startDate.getTime();l.tagAnchor=i.ref;for(let i=n;i--;){var s;if((null==(s=e[i])?void 0:s.sn)<t.startSN)break;let n=nN(t,u,e,i,r);if(-1!==n){l.tagAnchor=t.fragments[n].ref;break}}}}function nN(e,t,n,i,r){let a=n[i];if(a){let o=a.programDateTime;if(t>=o||0===i){var s;if(t<=o+1e3*(((null==(s=n[i+1])?void 0:s.start)||r)-a.start)){let r=n[i].sn-e.startSN;if(r<0)return -1;let a=e.fragments;if(a.length>n.length){let s=(n[i+1]||a[a.length-1]).sn-e.startSN;for(let e=s;e>r;e--){let n=a[e].programDateTime;if(t>=n&&t<n+1e3*a[e].duration)return e}}return r}}}return -1}function nF(e,t,n){var i,r;let a=new ne(e,n),s=null!=(i=a.METHOD)?i:"",o=a.URI,l=a.hexadecimalInteger("IV"),u=a.KEYFORMATVERSIONS,c=null!=(r=a.KEYFORMAT)?r:"identity";return o&&a.IV&&!l&&A.error(`Invalid IV: ${a.IV}`),new nS(s,o?nk.resolve(o,t):"",c,(u||"1").split("/").map(Number).filter(Number.isFinite),l,a.KEYID)}function nO(e){let t=new ne(e).decimalFloatingPoint("TIME-OFFSET");return r(t)?t:null}function nj(e,t){let n=(e||"").split(/[ ,]+/).filter(e=>e);["video","audio","text"].forEach(e=>{let i=n.filter(t=>eL(t,e));i.length&&(t[`${e}Codec`]=i.map(e=>e.split("/")[0]).join(","),n=n.filter(e=>-1===i.indexOf(e)))}),t.unknownCodecs=n}function nU(e,t,n){let i=t[n];i&&(e[n]=i)}function nV(e,t){let n=e[t];for(let i=t;i--;){let t=e[i];if(!t)return;t.programDateTime=n.programDateTime-1e3*t.duration,n=t}}function nB(e,t,n){e.rawProgramDateTime?n.push(e):null!=t&&t.programDateTime&&(e.programDateTime=t.endProgramDateTime)}function nH(e,t,n,i){e.relurl=t.URI,t.BYTERANGE&&e.setByteRange(t.BYTERANGE),e.level=n,e.sn="initSegment",i&&(e.levelkeys=i),e.initSegment=null}function nG(e,t,n){e.levelkeys=t;let{encryptedFragments:i}=n;(!i.length||i[i.length-1].levelkeys!==t)&&Object.keys(t).some(e=>t[e].isCommonEncryption)&&i.push(e)}function nz(e,t,n){e.playlistParsingError=Error(`#EXT-X-${t} must not appear more than once (${n[0]})`)}function nq(e,t,n){e.playlistParsingError=Error(`#EXT-X-${t} must appear before the first Media Segment (${n[0]})`)}function nW(e,t){let n=t.startPTS;if(r(n)){let i,r=0;t.sn>e.sn?(r=n-e.start,i=e):(r=e.start-n,i=t),i.duration!==r&&i.setDuration(r)}else t.sn>e.sn?e.cc===t.cc&&e.minEndPTS?t.setStart(e.start+(e.minEndPTS-e.start)):t.setStart(e.start+e.duration):t.setStart(Math.max(e.start-t.duration,0))}function n$(e,t,n,i,a,s,o){let l;i-n<=0&&(o.warn("Fragment should have a positive duration",t),i=n+t.duration,s=a+t.duration);let u=n,c=i,d=t.startPTS,h=t.endPTS;if(r(d)){let l=Math.abs(d-n);e&&l>e.totalduration?o.warn(`media timestamps and playlist times differ by ${l}s for level ${t.level} ${e.url}`):r(t.deltaPTS)?t.deltaPTS=Math.max(l,t.deltaPTS):t.deltaPTS=l,u=Math.max(n,d),n=Math.min(n,d),a=void 0!==t.startDTS?Math.min(a,t.startDTS):a,c=Math.min(i,h),i=Math.max(i,h),s=void 0!==t.endDTS?Math.max(s,t.endDTS):s}let f=n-t.start;0!==t.start&&t.setStart(n),t.setDuration(i-t.start),t.startPTS=n,t.maxStartPTS=u,t.startDTS=a,t.endPTS=i,t.minEndPTS=c,t.endDTS=s;let p=t.sn;if(!e||p<e.startSN||p>e.endSN)return 0;let m=p-e.startSN,g=e.fragments;for(g[m]=t,l=m;l>0;l--)nW(g[l],g[l-1]);for(l=m;l<g.length-1;l++)nW(g[l],g[l+1]);return e.fragmentHint&&nW(g[g.length-1],e.fragmentHint),e.PTSKnown=e.alignedSliding=!0,f}function nZ(e,t,n){let i;if(e===t)return;let a=null,s=e.fragments;for(let e=s.length-1;e>=0;e--){let t=s[e].initSegment;if(t){a=t;break}}e.fragmentHint&&delete e.fragmentHint.endPTS,nX(e,t,(e,n,s,o)=>{if((!t.startCC||t.skippedSegments)&&n.cc!==e.cc){let i=e.cc-n.cc;for(let e=s;e<o.length;e++)o[e].cc+=i;t.endCC=o[o.length-1].cc}r(e.startPTS)&&r(e.endPTS)&&(n.setStart(n.startPTS=e.startPTS),n.startDTS=e.startDTS,n.maxStartPTS=e.maxStartPTS,n.endPTS=e.endPTS,n.endDTS=e.endDTS,n.minEndPTS=e.minEndPTS,n.setDuration(e.endPTS-e.startPTS),n.duration&&(i=n),t.PTSKnown=t.alignedSliding=!0),e.hasStream
262s&&(n.elementaryStreams=e.elementaryStreams),n.loader=e.loader,e.hasStats&&(n.stats=e.stats),e.initSegment&&(n.initSegment=e.initSegment,a=e.initSegment)});let o=t.fragments,l=t.fragmentHint?o.concat(t.fragmentHint):o;if(a&&l.forEach(e=>{var t;e&&(!e.initSegment||e.initSegment.relurl===(null==(t=a)?void 0:t.relurl))&&(e.initSegment=a)}),t.skippedSegments){if(t.deltaUpdateFailed=o.some(e=>!e),t.deltaUpdateFailed){n.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(let e=t.skippedSegments;e--;)o.shift();t.startSN=o[0].sn}else{t.canSkipDateRanges&&(t.dateRanges=nY(e.dateRanges,t,n));let i=e.fragments.filter(e=>e.rawProgramDateTime);if(e.hasProgramDateTime&&!t.hasProgramDateTime)for(let e=1;e<l.length;e++)null===l[e].programDateTime&&nB(l[e],l[e-1],i);nD(i,t)}t.endCC=o[o.length-1].cc}if(!t.startCC){var u;let n=n2(e,t.startSN-1);t.startCC=null!=(u=null==n?void 0:n.cc)?u:o[0].cc}nK(e.partList,t.partList,(e,t)=>{t.elementaryStreams=e.elementaryStreams,t.stats=e.stats}),i?n$(t,i,i.startPTS,i.endPTS,i.startDTS,i.endDTS,n):nJ(e,t),o.length&&(t.totalduration=t.edge-o[0].start),t.driftStartTime=e.driftStartTime,t.driftStart=e.driftStart;let c=t.advancedDateTime;if(t.advanced&&c){let e=t.edge;t.driftStart||(t.driftStartTime=c,t.driftStart=e),t.driftEndTime=c,t.driftEnd=e}else t.driftEndTime=e.driftEndTime,t.driftEnd=e.driftEnd,t.advancedDateTime=e.advancedDateTime;-1===t.requestScheduled&&(t.requestScheduled=e.requestScheduled)}function nY(e,t,n){let{dateRanges:i,recentlyRemovedDateranges:r}=t,a=v({},e);r&&r.forEach(e=>{delete a[e]});let s=Object.keys(a).length;
262return s?(Object.keys(i).forEach(e=>{let t=a[e],r=new nr(i[e].attr,t);r.isValid?(a[e]=r,t||(r.tagOrder+=s)):n.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${tt(i[e].attr)}"`)}),a):i}function nK(e,t,n){if(e&&t){let i=0;for(let r=0,a=e.length;r<=a;r++){let a=e[r],s=t[r+i];a&&s&&a.index===s.index&&a.fragment.sn===s.fragment.sn?n(a,s):i--}}}function nX(e,t,n){let i=t.skippedSegments,r=Math.max(e.startSN,t.startSN)-t.startSN,a=(e.fragmentHint?1:0)+(i?t.endSN:Math.min(e.endSN,t.endSN))-t.startSN,s=t.startSN-e.startSN,o=t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments,l=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments;for(let u=r;u<=a;u++){let r=l[s+u],a=o[u];if(i&&!a&&r&&(a=t.fragments[u]=r),r&&a){n(r,a,u,o);let i=r.relurl,s=a.relurl;if(i&&n6(i,s)){t.playlistParsingError=nQ(`media sequence mismatch ${a.sn}:`,e,t,r,a);return}if(r.cc!==a.cc){t.playlistParsingError=nQ(`discontinuity sequence mismatch (${r.cc}!=${a.cc})`,e,t,r,a);return}}}}function nQ(e,t,n,i,r){return Error(`${e} ${r.url} 263Playlist starting @${t.startSN} 264${t.m3u8} 265 266Playlist starting @${n.startSN} 267${n.m3u8}`)}function nJ(e,t,n=!0){let i=t.startSN+t.skippedSegments-e.startSN,r=e.fragments,a=i>=0,s=0;if(a&&i<r.length)s=r[i].start;else if(a&&t.startSN===e.endSN+1)s=e.fragmentEnd;else if(a&&n)s=e.fragmentStart+i*t.levelTargetDuration;else{if(t.skippedSegments||0!==t.fragmentStart)return;s=e.fragmentStart}n0(t,s)}function n0(e,t){if(t){let n=e.fragments;for(let i=e.skippedSegments;i<n.length;i++)n[i].addStart(t);e.fragmentHint&&e.fragmentHint.addStart(t)}}function n1(e,t=1/0){let n=1e3*e.targetduration;if(e.updated){let i=e.fragments,r=4;if(i.length&&n*r>t){let e=1e3*i[i.length-1].duration;e<n&&(n=e)}}else n/=2;return Math.round(n)}function n2(e,t,n){if(!e)return null;let i=e.fragments[t-e.startSN];return i||(i=e.fragmentHint)&&i.sn===t?i:t<e.startSN&&n&&n.sn===t?n:null}function n3(e,t,n){return e?n5(e.partList,t,n):null}function n5(e,t,n){if(e)for(let i=e.length;i--;){let r=e[i];if(r.index===n&&r.fragment.sn===t)return r}return null}function n4(e){e.forEach((e,t)=>{var n;null==(n=e.details)||n.fragments.forEach(e=>{e.level=t,e.initSegment&&(e.initSegment.level=t)})})}function n6(e,t){return e!==t&&!!t&&n8(e)!==n8(t)}function n8(e){return e.replace(/\?[^?]*$/,"")}function n7(e,t){for(let i=0,r=e.length;i<r;i++){var n;if((null==(n=e[i])?void 0:n.cc)===t)return e[i]}return null}function n9(e,t){return!!e&&t.startCC<e.endCC&&t.endCC>e.startCC}function ie(e,t){let n=e.start+t;e.startPTS=n,e.setStart(n),e.endPTS=n+e.duration}function it(e,t){let n=t.fragments;for(let t=0,i=n.length;t<i;t++)ie(n[t],e);t.fragmentHint&&ie(t.fragmentHint,e),t.alignedSliding=!0}function ii(e,t){e&&(ir(t,e),t.alignedSliding||ia(t,e),t.alignedSliding||t.skippedSegments||nJ(e,t,!1))}function ir(e,t){if(!n9(t,e))return;let n=Math.min(t.endCC,e.endCC),i=n7(t.fragments,n),r=n7(e.fragments,n);i&&r&&(A.log(`Aligning playlist at start of dicontinuity sequence ${n}`),it(i.start-r.start,e))}function ia(e,t){let n,i;if(!e.hasProgramDateTime||!t.hasProgramDateTime)return;let r=e.fragments,a=t.fragments;if(!r.length||!a.length)return;let s=Math.min(t.endCC,e.endCC);t.startCC<s&&e.startCC<s&&(n=n7(a,s),i=n7(r,s)),n&&i||(i=n7(r,(n=a[Math.floor(a.length/2)]).cc)||r[Math.floor(r.length/2)]);let o=n.programDateTime,l=i.programDateTime;o&&l&&it((l-o)/1e3-(i.start-n.start),e)}let is={},io={STOPPED:"STOPPED",IDLE:"IDLE",KEY_LOADING:"KEY_LOADING",FRAG_LOADING:"FRAG_LOADING",FRAG_LOADING_WAITING_RETRY:"FRAG_LOADING_WAITING_RETRY",WAITING_TRACK:"WAITING_TRACK",PARSING:"PARSING",PARSED:"PARSED",ENDED:"ENDED",ERROR:"ERROR",WAITING_INIT_PTS:"WAITING_INIT_PTS",WAITING_LEVEL:"WAITING_LEVEL"};class il extends tQ{constructor(e,t,n,i,a){super(i,e.logger),this.hls=void 0,this.fragPrevious=null,this.fragCurrent=null,this.fragmentTracker=void 0,this.transmuxer=null,this._state=io.STOPPED,this.playlistType=void 0,this.media=null,this.mediaBuffer=null,this.config=void 0,this.bitrateTest=!1,this.lastCurrentTime=0,this.nextLoadPosition=0,this.startPosition=0,this.startTimeOffset=null,this.retryDate=0,this.levels=null,this.fragmentLoader=void 0,this.keyLoader=void 0,this.levelLastLoaded=null,this.startFragRequested=!1,this.decrypter=void 0,this.initPTS=[],this.buffering=!0,this.loadingParts=!1,this.loopSn=void 0,this.onMediaSeeking=()=>{let{config:e,fragCurrent:t,media:n,mediaBuffer:i,state:a}=this,s=n?n.currentTime:0,o=t2.bufferInfo(i||n,s,e.maxBufferHole),l=!o.len;if(this.log(`Media seeking to ${r(s)?s.toFixed(3):s}, state: ${a}, ${l?"out of":"in"} buffer`),this.state===io.ENDED)this.resetLoadingState();else if(t){let n=e.maxFragLookUpTolerance,i=t.start-n,r=t.start+t.duration+n;if(l||r<o.start||i>o.end){let e=s>r;(s<i||e)&&(e&&t.loader&&(this.log(`Cancelling fragment load for seek (sn: ${t.sn})`),t.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}if(n&&(this.fragmentTracker.removeFragmentsInRange(s,1/0,this.playlistType,!0),s>this.lastCurrentTime&&(this.lastCurrentTime=s),!this.loadingParts)){let e=Math.max(o.end,s),t=this.shouldLoadParts(this.getLevelDetails(),e);t&&(this.log(`LL-Part loading ON after seeking to ${s.toFixed(2)} with buffer @${e.toFixed(2)}`),this.loadingParts=t)}!this.hls.hasEnoughToStart&&(this.log(`Setting ${l?"startPosition":"nextLoadPosition"} to ${s} for seek without enough to start`),this.nextLoadPosition=s,l&&(this.startPosition=s)),this.tickImmediate()},this.onMediaEnded=()=>{this.log("setting startPosition to 0 because media ended"),this.startPosition=this.lastCurrentTime=0},this.playlistType=a,this.hls=e,this.fragmentLoader=new t$(e.config),this.keyLoader=n,this.fragmentTracker=t,this.config=e.config,this.decrypter=new tq(e.config)}registerListeners(){let{hls:e}=this;
267e.on(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(u.ERROR,this.onError,this)}unregisterListeners(){let{hls:e}=this;e.off(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(u.ERROR,this.onError,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(e){}stopLoad(){if(this.state===io.STOPPED)return;this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);let e=this.fragCurrent;null!=e&&e.loader&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=io.STOPPED}get startPositionValue(){let{nextLoadPosition:e,startPosition:t}=this;return -1===t&&e?e:t}get bufferingEnabled(){return this.buffering}pauseBuffering(){this.buffering=!1}resumeBuffering(){this.buffering=!0}get inFlightFrag(){return{frag:this.fragCurrent,state:this.state}}_streamEnded(e,t){if(t.live||!this.media)return!1;let n=e.end||0,i=this.config.timelineOffset||0;if(n<=i)return!1;let r=e.buffered;this.config.maxBufferHole&&r&&r.length>1&&(e=t2.bufferedInfo(r,e.start,0));let a=e.nextStart;if(a&&a>i&&a<t.edge||this.media.currentTime<e.start)return!1;let s=t.partList;if(null!=s&&s.length){let e=s[s.length-1];return t2.isBuffered(this.media,e.start+e.duration/2)}let o=t.fragments[t.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(o)}getLevelDetails(){if(this.levels&&null!==this.levelLastLoaded)return this.levelLastLoaded.details}get timelineOffset(){let e=this.config.timelineOffset;if(e){var t;return(null==(t=this.getLevelDetails())?void 0:t.appliedTimelineOffset)||e}return 0}onMediaAttached(e,t){let n=this.media=this.mediaBuffer=t.media;n.removeEventListener("seeking",this.onMediaSeeking),n.removeEventListener("ended",this.onMediaEnded),n.addEventListener("seeking",this.onMediaSeeking),n.addEventListener("ended",this.onMediaEnded);let i=this.config;this.levels&&i.autoStartLoad&&this.state===io.STOPPED&&this.startLoad(i.startPosition)}onMediaDetaching(e,t){let n=!!t.transferMedia,i=this.media;if(null!==i){if(i.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),i.removeEventListener("seeking",this.onMediaSeeking),i.removeEventListener("ended",this.onMediaEnded),this.keyLoader&&!n&&this.keyLoader.detach(),this.media=this.mediaBuffer=null,this.loopSn=void 0,n){this.resetLoadingState(),this.resetTransmuxer();return}this.loadingParts=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()}}onManifestLoading(){this.initPTS=[],this.levels=this.levelLastLoaded=this.fragCurrent=null,this.lastCurrentTime=this.startPosition=0,this.startFragRequested=!1}onError(e,t){}onManifestLoaded(e,t){this.startTimeOffset=t.startTimeOffset}onHandlerDestroying(){this.stopLoad(),this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null),super.onHandlerDestroying(),this.hls=this.onMediaSeeking=this.onMediaEnded=null}onHandlerDestroyed(){this.state=io.STOPPED,this.fragmentLoader&&this.fragmentLoader.destroy(),this.keyLoader&&this.keyLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.keyLoader=this.fragmentLoader=this.fragmentTracker=null,super.onHandlerDestroyed()}loadFragment(e,t,n){this.startFragRequested=!0,this._loadFragForPlayback(e,t,n)}_loadFragForPlayback(e,t,n){let i=e=>{let t=e.frag;if(this.fragContextChanged(t)){this.warn(`${t.type} sn: ${t.sn}${e.part?" part: "+e.part.index:""} of ${this.fragInfo(t,!1,e.part)}) was dropped during download.`),this.fragmentTracker.removeFragment(t);return}t.stats.chunkCount++,this._handleFragmentLoadProgress(e)};this._doFragLoad(e,t,n,i).then(e=>{if(!e)return;let t=this.state,n=e.frag;if(this.fragContextChanged(n)){t!==io.FRAG_LOADING&&(this.fragCurrent||t!==io.PARSING)||(this.fragmentTracker.removeFragment(n),this.state=io.IDLE);return}"payload"in e&&(this.log(`Loaded ${n.type} sn: ${n.sn} of ${this.playlistLabel()} ${n.level}`),this.hls.trigger(u.FRAG_LOADED,e)),this._handleFragmentLoadComplete(e)}).catch(t=>{this.state!==io.STOPPED&&this.state!==io.ERROR&&(this.warn(`Frag error: ${(null==t?void 0:t.message)||t}`),this.resetFragmentLoading(e))})}clearTrackerIfNeeded(e){var t;let{fragmentTracker:n}=this;if(n.getState(e)===tk.APPENDING){let t=e.type,i=this.getFwdBufferInfo(this.mediaBuffer,t),r=Math.max(e.duration,i?i.len:this.config.maxBufferLength),a=this.backtrackFragment;(1==(a?e.sn-a.sn:0)||this.reduceMaxBufferLength(r,e.duration))&&n.removeFragment(e)}else(null==(t=this.mediaBuffer)?void 0:t.buffered.length)===0?n.removeAllFragments():n.hasParts(e.type)&&(n.detectPartialFragments({frag:e,part:null,stats:e.stats,id:e.type}),n.getState(e)===tk.PARTIAL&&n.removeFragment(e))}checkLiveUpdate(e){if(e.updated&&!e.live){let t=e.fragments[e.fragments.length-1];this.fragmentTracker.detectPartialFragments({frag:t,part:null,stats:t.stats,id:t.type})}e.fragments[0]||(e.deltaUpdateFailed=!0)}waitForLive(e){let t=e.details;return(null==t?void 0:t.live)&&"EVENT"!==t.type&&(this.levelLastLoaded!==e||t.expired)}flushMainBuffer(e,t,n=null){if(!(e-t))return;let i={startOffset:e,endOffset:t,type:n};this.hls.trigger(u.BUFFER_FLUSHING,i)}_loadInitSegment(e,t){this._doFragLoad(e,t).then(e=>{let t=null==e?void 0:e.frag;if(!t||this.fragContextChanged(t)||!this.levels)throw Error("init load aborted");return e}).then(e=>{let{hls:t}=this,{frag:n,payload:i}=e,r=n.decryptdata;if(i&&i.byteLength>
2670&&null!=r&&r.key&&r.iv&&no(r.method)){let a=self.performance.now();return this.decrypter.decrypt(new Uint8Array(i),r.key.buffer,r.iv.buffer,nl(r.method)).catch(e=>{throw t.trigger(u.ERROR,{type:o.MEDIA_ERROR,details:l.FRAG_DECRYPT_ERROR,fatal:!1,error:e,reason:e.message,frag:n}),e}).then(i=>{let r=self.performance.now();return t.trigger(u.FRAG_DECRYPTED,{frag:n,payload:i,stats:{tstart:a,tdecrypt:r}}),e.payload=i,this.completeInitSegmentLoad(e)})}return this.completeInitSegmentLoad(e)}).catch(t=>{this.state!==io.STOPPED&&this.state!==io.ERROR&&(this.warn(t),this.resetFragmentLoading(e))})}completeInitSegmentLoad(e){let{levels:t}=this;if(!t)throw Error("init load aborted, missing levels");let n=e.frag.stats;this.state!==io.STOPPED&&(this.state=io.IDLE),e.frag.data=new Uint8Array(e.payload),n.parsing.start=n.buffering.start=self.performance.now(),n.parsing.end=n.buffering.end=self.performance.now(),this.tick()}unhandledEncryptionError(e,t){var n,i;let r=e.tracks;if(r&&!t.encrypted&&(null!=(n=r.audio)&&n.encrypted||null!=(i=r.video)&&i.encrypted)&&(!this.config.emeEnabled||!this.keyLoader.emeController)){let e=this.media,n=Error(`Encrypted track with no key in ${this.fragInfo(t)} (media ${e?"attached mediaKeys: "+e.mediaKeys:"detached"})`);return this.warn(n.message),!!e&&!e.mediaKeys&&(this.hls.trigger(u.ERROR,{type:o.KEY_SYSTEM_ERROR,details:l.KEY_SYSTEM_NO_KEYS,fatal:!1,error:n,frag:t}),this.resetTransmuxer(),!0)}return!1}fragContextChanged(e){let{fragCurrent:t}=this;return!e||!t||e.sn!==t.sn||e.level!==t.level}fragBufferedComplete(e,t){let n=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log(`Buffered ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.fragInfo(e,!1,t)} > buffer:${n?is.toString(t2.getBuffered(n)):"(detached)"})`),G(e)){var i;if(e.type!==f.SUBTITLE){let t=e.elementaryStreams;if(!Object.keys(t).some(e=>!!t[e])){this.state=io.IDLE;return}}let t=null==(i=this.levels)?void 0:i[e.level];null!=t&&t.fragmentError&&(this.log(`Resetting level fragment error count of ${t.fragmentError} on frag buffered`),t.fragmentError=0)}this.state=io.IDLE}_handleFragmentLoadComplete(e){let{transmuxer:t}=this;if(!t)return;let{frag:n,part:i,partsLoaded:r}=e,a=!r||0===r.length||r.some(e=>!e),s=new tJ(n.level,n.sn,n.stats.chunkCount+1,0,i?i.index:-1,!a);t.flush(s)}_handleFragmentLoadProgress(e){}_doFragLoad(e,t,n=null,i){var a,s;let o;this.fragCurrent=e;let l=t.details;if(!this.levels||!l)throw Error(`frag load aborted, missing level${l?"":" detail"}s`);let c=null;e.encrypted&&!(null!=(a=e.decryptdata)&&a.key)?(this.log(`Loading key for ${e.sn} of [${l.startSN}-${l.endSN}], ${this.playlistLabel()} ${e.level}`),this.state=io.KEY_LOADING,this.fragCurrent=e,c=this.keyLoader.load(e).then(e=>{if(!this.fragContextChanged(e.frag))return this.hls.trigger(u.KEY_LOADED,e),this.state===io.KEY_LOADING&&(this.state=io.IDLE),e}),this.hls.trigger(u.KEY_LOADING,{frag:e}),null===this.fragCurrent&&(c=Promise.reject(Error("frag load aborted, context changed in KEY_LOADING")))):!e.encrypted&&(c=this.keyLoader.loadClear(e,l.encryptedFragments,this.startFragRequested))&&this.log("[eme] blocking frag load until media-keys acquired");let d=this.fragPrevious;if(G(e)&&(!d||e.sn!==d.sn)){let n=this.shouldLoadParts(t.details,e.end);n!==this.loadingParts&&(this.log(`LL-Part loading ${n?"ON":"OFF"} loading sn ${null==d?void 0:d.sn}->${e.sn}`),this.loadingParts=n)}if(n=Math.max(e.start,n||0),this.loadingParts&&G(e)){let r=l.partList;if(r&&i){n>l.fragmentEnd&&l.fragmentHint&&(e=l.fragmentHint);let a=this.getNextPart(r,e,n);if(a>-1){let s;let o=r[a];return(e=this.fragCurrent=o.fragment,this.log(`Loading ${e.type} sn: ${e.sn} part: ${o.index} (${a}/${r.length-1}) of ${this.fragInfo(e,!1,o)}) cc: ${e.cc} [${l.startSN}-${l.endSN}], target: ${parseFloat(n.toFixed(3))}`),this.nextLoadPosition=o.start+o.duration,this.state=io.FRAG_LOADING,s=c?c.then(n=>!n||this.fragContextChanged(n.frag)?null:this.doFragPartsLoad(e,o,t,i)).catch(e=>this.handleFragLoadError(e)):this.doFragPartsLoad(e,o,t,i).catch(e=>this.handleFragLoadError(e)),this.hls.trigger(u.FRAG_LOADING,{frag:e,part:o,targetBufferTime:n}),null===this.fragCurrent)?Promise.reject(Error("frag load aborted, context changed in FRAG_LOADING parts")):s}if(!e.url||this.loadedEndOfParts(r,n))return Promise.resolve(null)}}if(G(e)&&this.loadingParts)this.log(`LL-Part loading OFF after next part miss @${n.toFixed(2)} Check buffer at sn: ${e.sn} loaded parts: ${null==(s=l.partList)?void 0:s.filter(e=>e.loaded).map(e=>`[${e.start}-${e.end}]`)}`),this.loadingParts=!1;else if(!e.url)return Promise.resolve(null);this.log(`Loading ${e.type} sn: ${e.sn} of ${this.fragInfo(e,!1)}) cc: ${e.cc} ${"["+l.startSN+"-"+l.endSN+"]"}, target: ${parseFloat(n.toFixed(3))}`),r(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=io.FRAG_LOADING;let h=this.config.progressive;return(o=h&&c?c.then(t=>!t||this.fragContextChanged(t.frag)?null:this.fragmentLoader.load(e,i)).catch(e=>this.handleFragLoadError(e)):Promise.all([this.fragmentLoader.load(e,h?i:void 0),c]).then(([e])=>(!h&&i&&i(e),e)).catch(e=>this.handleFragLoadError(e)),this.hls.trigger(u.FRAG_LOADING,{frag:e,targetBufferTime:n}),null===this.fragCurrent)?Promise.reject(Error("frag load aborted, context changed in FRAG_LOADING")):o}doFragPartsLoad(e,t,n,i){return new Promise((r,a)=>{var s;let o=[],l=null==(s=n.details)?void 0:s.partList,c=t=>{this.fragmentLoader.loadPart(e,t,i).then(i=>{o[t.index]=i;let a=i.part;this.hls.trigger(u.FRAG_LOADED,i);let s=n3(n.details,e.sn,t.index+1)||n5(l,e.sn,t.index+1);if(!s)return r({frag:e,part:a,partsLoaded:o});c(s)}).catch(a)};c(t)})}handleFragLoadError(e){if("data"in e){let t=e.data;t&&t.details===l.INTERNAL_ABORTED?this.handleFragLoadAborted(t.frag,t.part):this.hls.trigger(u.ERROR,t)}else this.hls.trigger(u.ERROR,{type:o.OTHER_ERROR,details:l.INTERNAL_EXCEPTION,err:e,error:e,fatal:!0});return null}_handleTransmuxerFlush(e){let t=this.getCurrentContext(e);if(!t||this.state!==io.PARSING){this.fragCurrent||this.state===io.STOPPED||this.state===io.ERROR||(this.state=io.IDLE);return}let{frag:n,part:i,level:r}=t,a=self.performance.now();n.stats.parsing.end=a,i&&(i.stats.parsing.end=a);let s=this.getLevelDetails(),o=s&&n.sn>s.endSN||this.shouldLoadParts(s,n.end);o!==this.loadingParts&&(this.log(`LL-Part loading ${o?"ON":"OFF"} after parsing segment ending @${n.end.toFixed(2)}`),this.loadingParts=o),this.updateLevelTiming(n,i,r,e.partial)}shouldLoadParts(e,t){if(this.config.lowLatencyMode){if(!e)return this.loadingParts;if(e.partList){var n,i;let r=e.partList[0];if(r.fragment.type===f.SUBTITLE)return!1;if(t>=r.end+((null==(n=e.fragmentHint)?void 0:n.duration)||0)&&(this.hls.hasEnoughToStart?(null==(i=this.media)?void 0:i.currentTime)||this.lastCurrentTime:this.getLoadPosition())>r.start-r.fragment.duration)return!0}}return!1}getCurrentContext(e){let{levels:t,fragCurrent:n}=this,{level:i,sn:r,part:a}=e;if(!(null!=t&&t[i]))return this.warn(`Levels object was unset while buffering fragment ${r} of ${this.playlistLabel()} ${i}. The current chunk will not be buffered.`),null;let s=t[i],o=s.details,l=a>-1?n3(o,r,a):null,u=l?l.fragment:n2(o,r,n);return u?(n&&n!==u&&(u.stats=n.stats),{frag:u,part:l,level:s}):null}bufferFragmentData(e,t,n,i,r){if(this.state!==io.PARSING)return;let{data1:a,data2:s}=e,o=a;if(s&&(o=eg(a,s)),!o.length)return;let l=this.initPTS[t.cc],c=l?-l.baseTime/l.timescale:void 0,d={type:e.type,frag:t,part:n,chunkMeta:i,offset:c,parent:t.type,data:o};if(this.hls.trigger(u.BUFFER_APPENDING,d),e.dropped&&e.independent&&!n){if(r)return;this.flushBufferGap(t)}}flushBufferGap(e){let t=this.media;if(!t)return;if(!t2.isBuffered(t,t.currentTime)){this.flushMainBuffer(0,e.start);return}let n=t.currentTime,i=t2.bufferInfo(t,n,0),r=e.duration,a=Math.min(2*this.config.maxFragLookUpTolerance,.25*r),s=Math.max(Math.min(e.start-a,i.end-a),n+a);e.start-s>a&&this.flushMainBuffer(s,e.start)}getFwdBufferInfo(e,t){var n;let i=this.getLoadPosition();if(!r(i))return null;let a=this.lastCurrentTime>i||null!=(n=this.media)&&n.paused?0:this.config.maxBufferHole;return this.getFwdBufferInfoAtPos(e,i,t,a)}getFwdBufferInfoAtPos(e,t,n,i){let r=t2.bufferInfo(e,t,i);if(0===r.len&&void 0!==r.nextStart){let a=this.fragmentTracker.getBufferedFrag(t,n);if(a&&(r.nextStart<=a.end||a.gap)){let n=Math.max(Math.min(r.nextStart,a.end)-t,i);return t2.bufferInfo(e,t,n)}}return r}getMaxBufferLength(e){let t;let{config:n}=this;return Math.min(t=e?Math.max(8*n.maxBufferSize/e,n.maxBufferLength):n.maxBufferLength,n.maxMaxBufferLength)}reduceMaxBufferLength(e,t){let n=this.config,i=Math.max(Math.min(e-t,n.maxBufferLength),t),r=Math.max(e-3*t,n.maxMaxBufferLength/2,i);return r>=i&&(n.maxMaxBufferLength=r,this.warn(`Reduce max buffer length to ${r}s`),!0)}getAppendedFrag(e,t=f.MAIN){let n=this.fragmentTracker?this.fragmentTracker.getAppendedFrag(e,t):null;return n&&"fragment"in n?n.fragment:n}getNextFragment(e,t){let n=t.fragments,i=n.length;if(!i)return null;let{config:r}=this,a=n[0].start,s=r.lowLatencyMode&&!!t.partList,o=null;if(t.live){let n=r.initialLiveManifestSize;if(i<n)return this.warn(`Not enough fragments to start playback (have: ${i}, need: ${n})`),null;if(!t.PTSKnown&&!this.startFragRequested&&-1===this.startPosition||e<a){var l;s&&!this.loadingParts&&(this.log("LL-Part loading ON for initial live fragment"),this.loadingParts=!0),o=this.getInitialLiveFragment(t);let n=this.hls.startPosition,i=this.hls.liveSyncPosition,r=o?(-1!==n&&n>=a?n:i)||o.start:e;this.log(`Setting startPosition to ${r} to match start frag at live edge. mainStart: ${n} liveSyncPosition: ${i} frag.start: ${null==(l=o)?void 0:l.start}`),this.startPosition=this.nextLoadPosition=r}}else e<=a&&(o=n[0]);if(!o){let n=this.loadingParts?t.partEnd:t.fragmentEnd;o=this.getFragmentAtPosition(e,n,t)}let u=this.filterReplacedPrimary(o,t);
267if(!u&&o){let e=o.sn-t.startSN;u=this.filterReplacedPrimary(n[e+1]||null,t)}return this.mapToInitFragWhenRequired(u)}isLoopLoading(e,t){let n=this.fragmentTracker.getState(e);return(n===tk.OK||n===tk.PARTIAL&&!!e.gap)&&this.nextLoadPosition>t}getNextFragmentLoopLoading(e,t,n,i,r){let a=null;if(e.gap&&(a=this.getNextFragment(this.nextLoadPosition,t))&&!a.gap&&n.nextStart){let e=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,n.nextStart,i,0);if(null!==e&&n.len+e.len>=r){let e=a.sn;return this.loopSn!==e&&(this.log(`buffer full after gaps in "${i}" playlist starting at sn: ${e}`),this.loopSn=e),null}}return this.loopSn=void 0,a}get primaryPrefetch(){if(iu(this.config)){var e;if(null==(e=this.hls.interstitialsManager)||null==(e=e.playingItem)?void 0:e.event)return!0}return!1}filterReplacedPrimary(e,t){if(!e)return e;if(iu(this.config)&&e.type!==f.SUBTITLE){let n=this.hls.interstitialsManager,i=null==n?void 0:n.bufferingItem;if(i){let n=i.event;if(n){if(n.appendInPlace||Math.abs(e.start-i.start)>1||0===i.start)return null}else if(e.end<=i.start&&(null==t?void 0:t.live)===!1||e.start>i.end&&i.nextEvent&&(i.nextEvent.appendInPlace||e.start-i.end>1))return null}let r=null==n?void 0:n.playerQueue;if(r)for(let t=r.length;t--;){let n=r[t].interstitial;if(n.appendInPlace&&e.start>=n.startTime&&e.end<=n.resumeTime)return null}}return e}mapToInitFragWhenRequired(e){return null==e||!e.initSegment||e.initSegment.data||this.bitrateTest?e:e.initSegment}getNextPart(e,t,n){let i=-1,r=!1,a=!0;for(let s=0,o=e.length;s<o;s++){let o=e[s];if(a=a&&!o.independent,i>-1&&n<o.start)break;let l=o.loaded;l?i=-1:(r||(o.independent||a)&&o.fragment===t)&&(o.fragment!==t&&this.warn(`Need buffer at ${n} but next unloaded part starts at ${o.start}`),i=s),r=l}return i}loadedEndOfParts(e,t){let n;for(let i=e.length;i--&&(n=e[i]).loaded;)if(t>n.start)return!0;return!1}getInitialLiveFragment(e){let t=e.fragments,n=this.fragPrevious,i=null;if(n){if(e.hasProgramDateTime&&(this.log(`Live playlist, switching playlist, load frag with same PDT: ${n.programDateTime}`),i=tv(t,n.endProgramDateTime,this.config.maxFragLookUpTolerance)),!i){let r=n.sn+1;if(r>=e.startSN&&r<=e.endSN){let a=t[r-e.startSN];n.cc===a.cc&&(i=a,this.log(`Live playlist, switching playlist, load frag with next SN: ${i.sn}`))}!i&&(i=tC(e,n.cc,n.end))&&this.log(`Live playlist, switching playlist, load frag with same CC: ${i.sn}`)}}else{let t=this.hls.liveSyncPosition;null!==t&&(i=this.getFragmentAtPosition(t,this.bitrateTest?e.fragmentEnd:e.edge,e))}return i}getFragmentAtPosition(e,t,n){let i;let{config:r}=this,{fragPrevious:a}=this,{fragments:s,endSN:o}=n,{fragmentHint:l}=n,{maxFragLookUpTolerance:u}=r,c=n.partList,d=!!(this.loadingParts&&null!=c&&c.length&&l);if(d&&!this.bitrateTest&&c[c.length-1].fragment.sn===l.sn&&(s=s.concat(l),o=l.sn),e<t){var h;let n=e<this.lastCurrentTime||e>t-u||null!=(h=this.media)&&h.paused||!this.startFragRequested?0:u;i=ty(a,s,e,n)}else i=s[s.length-1];if(i){let e=i.sn-n.startSN,t=this.fragmentTracker.getState(i);if((t===tk.OK||t===tk.PARTIAL&&i.gap)&&(a=i),a&&i.sn===a.sn&&(!d||c[0].fragment.sn>i.sn||!n.live)&&i.level===a.level){let t=s[e+1];i=i.sn<o&&this.fragmentTracker.getState(t)!==tk.OK?t:null}}return i}alignPlaylists(e,t,n){let i=e.fragments.length;if(!i)return this.warn("No fragments in live playlist"),0;let a=e.fragmentStart,s=!t,o=e.alignedSliding&&r(a);if(s||!o&&!a){ii(n,e);let r=e.fragmentStart;return this.log(`Live playlist sliding: ${r.toFixed(2)} start-sn: ${t?t.startSN:"na"}->${e.startSN} fragments: ${i}`),r}return a}waitForCdnTuneIn(e){let t=3;return e.live&&e.canBlockReload&&e.partTarget&&e.tuneInGoal>Math.max(e.partHoldBack,e.partTarget*t)}setStartPosition(e,t){let n=this.startPosition;n<t&&(n=-1);let i=this.timelineOffset;if(-1===n){let a=null!==this.startTimeOffset,s=a?this.startTimeOffset:e.startTimeOffset;null!==s&&r(s)?(n=t+s,s<0&&(n+=e.edge),n=Math.min(Math.max(t,n),t+e.totalduration),this.log(`Setting startPosition to ${n} for start time offset ${s} found in ${a?"multivariant":"media"} playlist`),this.startPosition=n):e.live?(n=this.hls.liveSyncPosition||t,this.log(`Setting startPosition to -1 to start at live edge ${n}`),this.startPosition=-1):(this.log("setting startPosition to 0 by default"),this.startPosition=n=0),this.lastCurrentTime=n+i}this.nextLoadPosition=n+i}getLoadPosition(){var e;let{media:t}=this,n=0;return null!=(e=this.hls)&&e.hasEnoughToStart&&t?n=t.currentTime:this.nextLoadPosition>=0&&(n=this.nextLoadPosition),n}handleFragLoadAborted(e,t){this.transmuxer&&e.type===this.playlistType&&G(e)&&e.stats.aborted&&(this.log(`Fragment ${e.sn}${t?" part "+t.index:""} of ${this.playlistLabel()} ${e.level} was aborted`),this.resetFragmentLoading(e))}resetFragmentLoading(e){this.fragCurrent&&(this.fragContextChanged(e)||this.state===io.FRAG_LOADING_WAITING_RETRY)||(this.state=io.IDLE)}onFragmentOrKeyLoadError(e,t){var n,i;if(t.chunkMeta&&!t.frag){let e=this.getCurrentContext(t.chunkMeta);e&&(t.frag=e.frag)}let r=t.frag;if(!r||r.type!==e||!this.levels)return;if(this.fragContextChanged(r)){this.warn(`Frag load error must match current frag to retry ${r.url} > ${null==(i=this.fragCurrent)?void 0:i.url}`);return}let a=t.details===l.FRAG_GAP;a&&this.fragmentTracker.fragBuffered(r,!0);let s=t.errorAction,{action:o,flags:u,retryCount:c=0,retryConfig:d}=s||{},h=!!s&&!!d,f=h&&o===tM.RetryRequest,p=h&&!s.resolved&&u===tA.MoveAllAlternatesMatchingHost,m=(null==(n=t.response)?void 0:n.code)||0;if(!f&&p&&G(r)&&!r.endList&&0!==m)this.resetFragmentErrors(e),this.treatAsGap(r),s.resolved=!0;else if((f||p)&&c<d.maxNumRetry){this.resetStartWhenNotLoaded(this.levelLastLoaded);let n=tT(d,c);this.warn(`Fragment ${r.sn} of ${e} ${r.level} errored with ${t.details}, retrying loading ${c+1}/${d.maxNumRetry} in ${n}ms`),s.resolved=!0,this.retryDate=self.performance.now()+n,this.state=io.FRAG_LOADING_WAITING_RETRY}else if(d&&s){if(this.resetFragmentErrors(e),c<d.maxNumRetry)a||o===tM.RemoveAlternatePermanently||(s.resolved=!0);else{this.warn(`${t.details} reached or exceeded max retry (${c})`);return}}else o===tM.SendAlternateToPenaltyBox?this.state=io.WAITING_LEVEL:this.state=io.ERROR;this.tickImmediate()}reduceLengthAndFlushBuffer(e){if(this.state===io.PARSING||this.state===io.PARSED){let t=e.frag,n=e.parent,i=this.getFwdBufferInfo(this.mediaBuffer,n),r=i&&i.len>.5;r&&this.reduceMaxBufferLength(i.len,(null==t?void 0:t.duration)||10);let a=!r;return a&&this.warn(`Buffer full error while media.currentTime (${this.getLoadPosition()}) is not buffered, flush ${n} buffer`),t&&(this.fragmentTracker.removeFragment(t),this.nextLoadPosition=t.start),this.resetLoadingState(),a}return!1}resetFragmentErrors(e){e===f.AUDIO&&(this.fragCurrent=null),this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.state!==io.STOPPED&&(this.state=io.IDLE)}afterBufferFlushed(e,t,n){if(!e)return;let i=t2.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,i,n),this.state===io.ENDED&&this.resetLoadingState()}
267resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state!==io.STOPPED&&(this.state=io.IDLE)}resetStartWhenNotLoaded(e){if(!this.hls.hasEnoughToStart){this.startFragRequested=!1;let t=e?e.details:null;null!=t&&t.live?(this.log("resetting startPosition for live start"),this.startPosition=-1,this.setStartPosition(t,t.fragmentStart),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}resetWhenMissingContext(e){this.warn(`The loading context changed while buffering fragment ${e.sn} of ${this.playlistLabel()} ${e.level}. This chunk will not be buffered.`),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState()}removeUnbufferedFrags(e=0){this.fragmentTracker.removeFragmentsInRange(e,1/0,this.playlistType,!1,!0)}updateLevelTiming(e,t,n,i){let r=n.details;if(!r){this.warn("level.details undefined");return}if(!Object.keys(e.elementaryStreams).reduce((t,a)=>{let s=e.elementaryStreams[a];if(s){let o=s.endPTS-s.startPTS;if(o<=0)return this.warn(`Could not parse fragment ${e.sn} ${a} duration reliably (${o})`),t||!1;let l=i?0:n$(r,e,s.startPTS,s.endPTS,s.startDTS,s.endDTS,this);return this.hls.trigger(u.LEVEL_PTS_UPDATED,{details:r,level:n,drift:l,type:a,frag:e,start:s.startPTS,end:s.endPTS}),!0}return t},!1)){var a;if(0===n.fragmentError&&this.treatAsGap(e,n),(null==(a=this.transmuxer)?void 0:a.error)===null){let t=Error(`Found no media in fragment ${e.sn} of ${this.playlistLabel()} ${e.level} resetting transmuxer to fallback to playlist timing`);if(this.warn(t.message),this.hls.trigger(u.ERROR,{type:o.MEDIA_ERROR,details:l.FRAG_PARSING_ERROR,fatal:!1,error:t,frag:e,reason:`Found no media in msn ${e.sn} of ${this.playlistLabel()} "${n.url}"`}),!this.hls)return;this.resetTransmuxer()}}this.state=io.PARSED,this.log(`Parsed ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.fragInfo(e,!1,t)})`),this.hls.trigger(u.FRAG_PARSED,{frag:e,part:t})}playlistLabel(){return this.playlistType===f.MAIN?"level":"track"}fragInfo(e,t=!0,n){var i,r;return`${this.playlistLabel()} ${e.level} (${n?"part":"frag"}:[${(null!=(i=t&&!n?e.startPTS:(n||e).start)?i:NaN).toFixed(3)}-${(null!=(r=t&&!n?e.endPTS:(n||e).end)?r:NaN).toFixed(3)}]${n&&"main"===e.type?"INDEPENDENT="+(n.independent?"YES":"NO"):""}`}treatAsGap(e,t){t&&t.fragmentError++,e.gap=!0,this.fragmentTracker.removeFragment(e),this.fragmentTracker.fragBuffered(e,!0)}resetTransmuxer(){var e;null==(e=this.transmuxer)||e.reset()}recoverWorkerError(e){"demuxerWorker"===e.event&&(this.fragmentTracker.removeAllFragments(),this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState())}set state(e){let t=this._state;t!==e&&(this._state=e,this.log(`${t}->${e}`))}get state(){return this._state}}function iu(e){return!!e.interstitialsController&&!1!==e.enableInterstitialPlayback}class ic{constructor(){this.chunks=[],this.dataLength=0}push(e){this.chunks.push(e),this.dataLength+=e.length}flush(){let e;let{chunks:t,dataLength:n}=this;return t.length?(e=1===t.length?t[0]:id(t,n),this.reset(),e):new Uint8Array(0)}reset(){this.chunks.length=0,this.dataLength=0}}function id(e,t){let n=new Uint8Array(t),i=0;for(let t=0;t<e.length;t++){let r=e[t];n.set(r,i),i+=r.length}return n}var ih={exports:{}},ip=O(function(){return d||(d=1,function(e){var t=Object.prototype.hasOwnProperty,n="~";function i(){}function r(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(e,t,i,a,s){if("function"!=typeof i)throw TypeError("The listener must be a function");var o=new r(i,a||e,s),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],o]:e._events[l].push(o):(e._events[l]=o,e._eventsCount++),e}function s(e,t){0==--e._eventsCount?e._events=new i:delete e._events[t]}function o(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(n=!1)),o.prototype.eventNames=function(){var e,i,r=[];if(0===this._eventsCount)return r;for(i in e=this._events)t.call(e,i)&&r.push(n?i.slice(1):i);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},o.prototype.listeners=function(e){var t=n?n+e:e,i=this._events[t];if(!i)return[];if(i.fn)return[i.fn];for(var r=0,a=i.length,s=Array(a);r<a;r++)s[r]=i[r].fn;return s},o.prototype.listenerCount=function(e){var t=n?n+e:e,i=this._events[t];return i?i.fn?1:i.length:0},o.prototype.emit=function(e,t,i,r,a,s){var o=n?n+e:e;if(!this._events[o])return!1;var l,u,c=this._events[o],d=arguments.length;
267if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,i),!0;case 4:return c.fn.call(c.context,t,i,r),!0;case 5:return c.fn.call(c.context,t,i,r,a),!0;case 6:return c.fn.call(c.context,t,i,r,a,s),!0}for(u=1,l=Array(d-1);u<d;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var h,f=c.length;for(u=0;u<f;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),d){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,i);break;case 4:c[u].fn.call(c[u].context,t,i,r);break;default:if(!l)for(h=1,l=Array(d-1);h<d;h++)l[h-1]=arguments[h];c[u].fn.apply(c[u].context,l)}}return!0},o.prototype.on=function(e,t,n){return a(this,e,t,n,!1)},o.prototype.once=function(e,t,n){return a(this,e,t,n,!0)},o.prototype.removeListener=function(e,t,i,r){var a=n?n+e:e;if(!this._events[a])return this;if(!t)return s(this,a),this;var o=this._events[a];if(o.fn)o.fn!==t||r&&!o.once||i&&o.context!==i||s(this,a);else{for(var l=0,u=[],c=o.length;l<c;l++)(o[l].fn!==t||r&&!o[l].once||i&&o[l].context!==i)&&u.push(o[l]);u.length?this._events[a]=1===u.length?u[0]:u:s(this,a)}return this},o.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&s(this,t)):(this._events=new i,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=n,o.EventEmitter=o,e.exports=o}(ih)),ih.exports}());let im="1.6.10",ig={};function iv(){return"function"==typeof __HLS_WORKER_BUNDLE__}function iy(){let e=ig[im];if(e)return e.clientCount++,e;let t=new self.Blob([`var exports={};var module={exports:exports};function define(f){f()};define.amd=true;(${__HLS_WORKER_BUNDLE__.toString()})(true);`],{type:"text/javascript"}),n=self.URL.createObjectURL(t),i={worker:new self.Worker(n),objectURL:n,clientCount:1};return ig[im]=i,i}function i_(e){let t=ig[e];if(t)return t.clientCount++,t;let n=new self.URL(e,self.location.href).href,i={worker:new self.Worker(n),scriptURL:n,clientCount:1};return ig[e]=i,i}function ib(e){let t=ig[e||im];if(t&&1==t.clientCount--){let{worker:n,objectURL:i}=t;delete ig[e||im],i&&self.URL.revokeObjectURL(i),n.terminate()}}function ix(e,t){return t+10<=e.length&&51===e[t]&&68===e[t+1]&&73===e[t+2]&&e[t+3]<255&&e[t+4]<255&&e[t+6]<128&&e[t+7]<128&&e[t+8]<128&&e[t+9]<128}function iC(e,t){return t+10<=e.length&&73===e[t]&&68===e[t+1]&&51===e[t+2]&&e[t+3]<255&&e[t+4]<255&&e[t+6]<128&&e[t+7]<128&&e[t+8]<128&&e[t+9]<128}function iE(e,t){return(127&e[t])<<21|(127&e[t+1])<<14|(127&e[t+2])<<7|127&e[t+3]}function iw(e,t){let n=t,i=0;for(;iC(e,t);)i+=10+iE(e,t+6),ix(e,t+10)&&(i+=10),t+=i;if(i>0)return e.subarray(n,n+i)}function iT(e,t,n,i){let r=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],a=t[n+2],s=a>>2&15;if(s>12){let t=Error(`invalid ADTS sampling index:${s}`);e.emit(u.ERROR,u.ERROR,{type:o.MEDIA_ERROR,details:l.FRAG_PARSING_ERROR,fatal:!0,error:t,reason:t.message});return}let c=(a>>6&3)+1,d=t[n+3]>>6&3|(1&a)<<2,h="mp4a.40."+c,f=r[s],p=s;(5===c||29===c)&&(p-=3);let m=[c<<3|(14&p)>>1,(1&p)<<7|d<<3];return A.log(`manifest codec:${i}, parsed codec:${h}, channels:${d}, rate:${f} (ADTS object type:${c} sampling index:${s})`),{config:m,samplerate:f,channelCount:d,codec:h,parsedCodec:h,manifestCodec:i}}function iS(e,t){return 255===e[t]&&(246&e[t+1])==240}function iL(e,t){return 1&e[t+1]?7:9}function iP(e,t){return(3&e[t+3])<<11|e[t+4]<<3|(224&e[t+5])>>>5}function iM(e,t){return t+5<e.length}function iA(e,t){return t+1<e.length&&iS(e,t)}function iI(e,t){return iM(e,t)&&iS(e,t)&&iP(e,t)<=e.length-t}function iR(e,t){if(iA(e,t)){let n=iL(e,t);if(t+n>=e.length)return!1;let i=iP(e,t);if(i<=n)return!1;let r=t+i;return r===e.length||iA(e,r)}return!1}function ik(e,t,n,i,r){if(!e.samplerate){let a=iT(t,n,i,r);a&&v(e,a)}}function iD(e){return 9216e4/e}function iN(e,t){let n=iL(e,t);if(t+n<=e.length){let i=iP(e,t)-n;if(i>0)return{headerLength:n,frameLength:i}}}function iF(e,t,n,i,r){let a;let s=i+r*iD(e.samplerate),o=iN(t,n);if(o){let{frameLength:i,headerLength:r}=o,l=r+i,u=Math.max(0,n+l-t.length);u?(a=new Uint8Array(l-r)).set(t.subarray(n+r,t.length),0):a=t.subarray(n+r,n+l);let c={unit:a,pts:s};return u||e.samples.push(c),{sample:c,length:l,missing:u}}let l=t.length-n;return(a=new Uint8Array(l)).set(t.subarray(n,t.length),0),{sample:{unit:a,pts:s},length:l,missing:-1}}function iO(e,t){return iC(e,t)&&iE(e,t+6)+10<=e.length-t}function ij(e){return e instanceof ArrayBuffer?e:0==e.byteOffset&&e.byteLength==e.buffer.byteLength?e.buffer:new Uint8Array(e).buffer}function iU(e,t=0,n=1/0){return iV(e,t,n,Uint8Array)}function iV(e,t,n,i){let r=iB(e),a=1;"BYTES_PER_ELEMENT"in i&&(a=i.BYTES_PER_ELEMENT);let s=iH(e)?e.byteOffset:0,o=(s+e.byteLength)/a,l=Math.floor(Math.max(0,Math.min((s+t)/a,o))),u=Math.floor(Math.min(l+Math.max(n,0),o));return new i(r,l,u-l)}function iB(e){return e instanceof ArrayBuffer?e:e.buffer}function iH(e){return e&&e.buffer instanceof ArrayBuffer&&void 0!==e.byteLength&&void 0!==e.byteOffset}function iG(e){let t;let n={key:e.type,description:"",data:"",mimeType:null,pictureType:null},i=3;if(e.size<2)return;if(e.data[0]!==i){console.log("Ignore frame with unrecognized character encoding");return}let r=e.data.subarray(1).indexOf(0);if(-1===r)return;let a=D(iU(e.data,1,r)),s=e.data[2+r],o=e.data.subarray(3+r).indexOf(0);if(-1===o)return;let l=D(iU(e.data,3+r,o));return t="-->"===a?D(iU(e.data,4+r+o)):ij(e.data.subarray(4+r+o)),n.mimeType=a,n.pictureType=s,n.description=l,n.data=t,n}function iz(e){if(e.size<2)return;let t=D(e.data,!0),n=new Uint8Array(e.data.subarray(t.length+1));return{key:e.type,info:t,data:n.buffer}}function iq(e){if(e.size<2)return;if("TXXX"===e.type){let t=1,n=D(e.data.subarray(t),!0);t+=n.length+1;let i=D(e.data.subarray(t));return{key:e.type,info:n,data:i}}let t=D(e.data.subarray(1));return{key:e.type,info:"",data:t}}function iW(e){if("WXXX"===e.type){if(e.size<2)return;let t=1,n=D(e.data.subarray(t),!0);t+=n.length+1;let i=D(e.data.subarray(t));return{key:e.type,info:n,data:i}}let t=D(e.data);return{key:e.type,info:"",data:t}}function i$(e){return"PRIV"===e.type?iz(e):"W"===e.type[0]?iW(e):"APIC"===e.type?iG(e):iq(e)}function iZ(e){let t=String.fromCharCode(e[0],e[1],e[2],e[3]),n=iE(e,4),i=10;return{type:t,size:n,data:e.subarray(i,i+n)}}let iY=10,iK=10;function iX(e){let t=0,n=[];for(;iC(e,t);){let i=iE(e,t+6);e[t+5]>>6&1&&(t+=iY);let r=(t+=iY)+i;for(;t+iK<r;){let i=iZ(e.subarray(t)),r=i$(i);r&&n.push(r),t+=i.size+iY}ix(e,t)&&(t+=iY)}return n}function iQ(e){return e&&"PRIV"===e.key&&"com.apple.streaming.transportStreamTimestamp"===e.info}function iJ(e){if(8===e.data.byteLength){let t=new Uint8Array(e.data),n=1&t[3],i=(t[4]<<23)+(t[5]<<15)+(t[6]<<7)+t[7];return i/=45,n&&(i+=47721858.84),Math.round(i)}}function i0(e){let t=iX(e);for(let e=0;e<t.length;e++){let n=t[e];if(iQ(n))return iJ(n)}}let i1=function(e){return e.audioId3="org.id3",e.dateRange="com.apple.quicktime.HLS",e.emsg="https://aomedia.org/emsg/ID3",e.misbklv="urn:misb:KLV:bin:1910.1",e}({});function i2(e="",t=9e4){return{type:e,id:-1,pid:-1,inputTimeScale:t,sequenceNumber:-1,samples:[],dropped:0}}class i3{constructor(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.basePTS=null,this.initPTS=null,this.lastPTS=null}resetInitSegment(e,t,n,i){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}}resetTimeStamp(e){this.initPTS=e,this.resetContiguity()}resetContiguity(){this.basePTS=null,this.lastPTS=null,this.frameIndex=0}canParse(e,t){return!1}appendFrame(e,t,n){}demux(e,t){let n;this.cachedData&&(e=eg(this.cachedData,e),this.cachedData=null);let i=iw(e,0),a=i?i.length:0,s=this._audioTrack,o=this._id3Track,l=i?i0(i):void 0,u=e.length;for((null===this.basePTS||0===this.frameIndex&&r(l))&&(this.basePTS=i5(l,t,this.initPTS),this.lastPTS=this.basePTS),null===this.lastPTS&&(this.lastPTS=this.basePTS),i&&i.length>0&&o.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:i,type:i1.audioId3,duration:Number.POSITIVE_INFINITY});a<u;){if(this.canParse(e,a)){let t=this.appendFrame(s,e,a);
267t?(this.frameIndex++,this.lastPTS=t.sample.pts,a+=t.length,n=a):a=u}else iO(e,a)?(i=iw(e,a),o.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:i,type:i1.audioId3,duration:Number.POSITIVE_INFINITY}),a+=i.length,n=a):a++;if(a===u&&n!==u){let t=e.slice(n);this.cachedData?this.cachedData=eg(this.cachedData,t):this.cachedData=t}}return{audioTrack:s,videoTrack:i2(),id3Track:o,textTrack:i2()}}demuxSampleAes(e,t,n){return Promise.reject(Error(`[${this}] This demuxer does not support Sample-AES decryption`))}flush(e){let t=this.cachedData;return t&&(this.cachedData=null,this.demux(t,0)),{audioTrack:this._audioTrack,videoTrack:i2(),id3Track:this._id3Track,textTrack:i2()}}destroy(){this.cachedData=null,this._audioTrack=this._id3Track=void 0}}let i5=(e,t,n)=>r(e)?90*e:9e4*t+(n?9e4*n.baseTime/n.timescale:0),i4=null,i6=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],i8=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],i7=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],i9=[0,1,1,4];function re(e,t,n,i,r){if(n+24>t.length)return;let a=rt(t,n);if(a&&n+a.frameLength<=t.length){let s=i+9e4*a.samplesPerFrame/a.sampleRate*r,o={unit:t.subarray(n,n+a.frameLength),pts:s,dts:s};return e.config=[],e.channelCount=a.channelCount,e.samplerate=a.sampleRate,e.samples.push(o),{sample:o,length:a.frameLength,missing:0}}}function rt(e,t){let n=e[t+1]>>3&3,i=e[t+1]>>1&3,r=e[t+2]>>4&15,a=e[t+2]>>2&3;if(1!==n&&0!==r&&15!==r&&3!==a){let s=e[t+2]>>1&1,o=e[t+3]>>6,l=1e3*i6[14*(3===n?3-i:3===i?3:4)+r-1],u=i8[3*(3===n?0:2===n?1:2)+a],c=3===o?1:2,d=i7[n][i],h=i9[i],f=8*d*h,p=Math.floor(d*l/u+s)*h;if(null===i4){let e=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);i4=e?parseInt(e[1]):0}return i4&&i4<=87&&2===i&&l>=224e3&&0===o&&(e[t+3]=128|e[t+3]),{sampleRate:u,channelCount:c,frameLength:p,samplesPerFrame:f}}}function rn(e,t){return 255===e[t]&&(224&e[t+1])==224&&(6&e[t+1])!=0}function ri(e,t){return t+1<e.length&&rn(e,t)}function rr(e,t){let n=4;return rn(e,t)&&n<=e.length-t}function ra(e,t){if(t+1<e.length&&rn(e,t)){let n=4,i=rt(e,t),r=n;null!=i&&i.frameLength&&(r=i.frameLength);let a=t+r;return a===e.length||ri(e,a)}return!1}class rs extends i3{constructor(e,t){super(),this.observer=void 0,this.config=void 0,this.observer=e,this.config=t}resetInitSegment(e,t,n,i){super.resetInitSegment(e,t,n,i),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:t,duration:i,inputTimeScale:9e4,dropped:0}}static probe(e,t){if(!e)return!1;let n=iw(e,0),i=(null==n?void 0:n.length)||0;if(ra(e,i))return!1;for(let n=e.length;i<n;i++)if(iR(e,i))return t.log("ADTS sync word found !"),!0;return!1}canParse(e,t){return iI(e,t)}appendFrame(e,t,n){ik(e,this.observer,t,n,e.manifestCodec);let i=iF(e,t,n,this.basePTS,this.frameIndex);if(i&&0===i.missing)return i}}let ro=(e,t)=>{let n=0,i=5;t+=5;let r=new Uint32Array(1),a=new Uint32Array(1),s=new Uint8Array(1);for(;i>0;){s[0]=e[t];let o=Math.min(i,8),l=8-o;a[0]=4278190080>>>24+l<<l,r[0]=(s[0]&a[0])>>l,n=n?n<<o|r[0]:r[0],t+=1,i-=o}return n};class rl extends i3{constructor(e){super(),this.observer=void 0,this.observer=e}resetInitSegment(e,t,n,i){super.resetInitSegment(e,t,n,i),this._audioTrack={container:"audio/ac-3",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"ac3",samples:[],manifestCodec:t,duration:i,inputTimeScale:9e4,dropped:0}}canParse(e,t){return t+64<e.length}appendFrame(e,t,n){let i=ru(e,t,n,this.basePTS,this.frameIndex);if(-1!==i)return{sample:e.samples[e.samples.length-1],length:i,missing:0}}static probe(e){if(!e)return!1;let t=iw(e,0);if(!t)return!1;let n=t.length;return!!(11===e[n]&&119===e[n+1]&&void 0!==i0(t)&&16>ro(e,n))}}function ru(e,t,n,i,r){if(n+8>t.length||11!==t[n]||119!==t[n+1])return -1;let a=t[n+4]>>6;if(a>=3)return -1;let s=[48e3,44100,32e3][a],o=63&t[n+4],l=2*[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344,1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][3*o+a];if(n+l>t.length)return -1;let u=t[n+6]>>5,c=0;2===u?c+=2:(1&u&&1!==u&&(c+=2),4&u&&(c+=2));let d=(t[n+6]<<8|t[n+7])>>12-c&1,h=[2,1,2,3,3,4,4,5][u]+d,f=t[n+5]>>3,p=7&t[n+5],m=new Uint8Array([a<<6|f<<1|p>>2,(3&p)<<6|u<<3|d<<2|o>>4,o<<4&224]),g=i+1536/s*9e4*r,v=t.subarray(n,n+l);return e.config=m,e.channelCount=h,e.samplerate=s,e.samples.push({unit:v,pts:g}),l}class rc extends i3{resetInitSegment(e,t,n,i){super.resetInitSegment(e,t,n,i),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:t,duration:i,inputTimeScale:9e4,dropped:0}}static probe(e){if(!e)return!1;let t=iw(e,0),n=(null==t?void 0:t.length)||0;if(t&&11===e[n]&&119===e[n+1]&&void 0!==i0(t)&&16>=ro(e,n))return!1;for(let t=e.length;n<t;n++)if(ra(e,n))return A.log("MPEG Audio sync word found !"),!0;return!1}canParse(e,t){return rr(e,t)}appendFrame(e,t,n){if(null!==this.basePTS)return re(e,t,n,this.basePTS,this.frameIndex)}}let rd=/\/emsg[-/]ID3/i;class rh{constructor(e,t){this.remainderData=null,this.timeOffset=0,this.config=void 0,this.videoTrack=void 0,this.audioTrack=void 0,this.id3Track=void 0,this.txtTrack=void 0,this.config=t}resetTimeStamp(){}resetInitSegment(e,t,n,i){let r=this.videoTrack=i2("video",1),a=this.audioTrack=i2("audio",1),s=this.txtTrack=i2("text",1);if(this.id3Track=i2("id3",1),this.timeOffset=0,!(null!=e&&e.byteLength))return;let o=ea(e);if(o.video){let{id:e,timescale:t,codec:n,supplemental:i}=o.video;r.id=e,r.timescale=s.timescale=t,r.codec=n,r.supplemental=i}if(o.audio){let{id:e,timescale:t,codec:n}=o.audio;a.id=e,a.timescale=t,a.codec=n}s.id=K.text,r.sampleDuration=0,r.duration=a.duration=i}resetContiguity(){this.remainderData=null}static probe(e){return en(e)}demux(e,t){this.timeOffset=t;let n=e,i=this.videoTrack,r=this.txtTrack;if(this.config.progressive){this.remainderData&&(n=eg(this.remainderData,e));let t=em(n);this.remainderData=t.remainder,i.samples=t.valid||new Uint8Array}else i.samples=n;let a=this.extractID3Track(i,t);
267return r.samples=ev(t,i),{videoTrack:i,audioTrack:this.audioTrack,id3Track:a,textTrack:this.txtTrack}}flush(){let e=this.timeOffset,t=this.videoTrack,n=this.txtTrack;t.samples=this.remainderData||new Uint8Array,this.remainderData=null;let i=this.extractID3Track(t,this.timeOffset);return n.samples=ev(e,t),{videoTrack:t,audioTrack:i2(),id3Track:i,textTrack:i2()}}extractID3Track(e,t){let n=this.id3Track;if(e.samples.length){let i=ei(e.samples,["emsg"]);i&&i.forEach(e=>{let i=eC(e);if(rd.test(i.schemeIdUri)){let e=rf(i,t),r=4294967295===i.eventDuration?Number.POSITIVE_INFINITY:i.eventDuration/i.timeScale;r<=.001&&(r=Number.POSITIVE_INFINITY);let a=i.payload;n.samples.push({data:a,len:a.byteLength,dts:e,pts:e,type:i1.emsg,duration:r})}else if(this.config.enableEmsgKLVMetadata&&i.schemeIdUri.startsWith("urn:misb:KLV:bin:1910.1")){let e=rf(i,t);n.samples.push({data:i.payload,len:i.payload.byteLength,dts:e,pts:e,type:i1.misbklv,duration:Number.POSITIVE_INFINITY})}})}return n}demuxSampleAes(e,t,n){return Promise.reject(Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}destroy(){this.config=null,this.remainderData=null,this.videoTrack=this.audioTrack=this.id3Track=this.txtTrack=void 0}}function rf(e,t){return r(e.presentationTime)?e.presentationTime/e.timeScale:t+e.presentationTimeDelta/e.timeScale}class rp{constructor(e,t,n){this.keyData=void 0,this.decrypter=void 0,this.keyData=n,this.decrypter=new tq(t,{removePKCS7Padding:!1})}decryptBuffer(e){return this.decrypter.decrypt(e,this.keyData.key.buffer,this.keyData.iv.buffer,tj.cbc)}decryptAacSample(e,t,n){let i=e[t].unit;if(i.length<=16)return;let r=i.subarray(16,i.length-i.length%16),a=r.buffer.slice(r.byteOffset,r.byteOffset+r.length);this.decryptBuffer(a).then(r=>{let a=new Uint8Array(r);i.set(a,16),this.decrypter.isSync()||this.decryptAacSamples(e,t+1,n)})}decryptAacSamples(e,t,n){for(;;t++){if(t>=e.length){n();return}if(!(e[t].unit.length<32)&&(this.decryptAacSample(e,t,n),!this.decrypter.isSync()))return}}getAvcEncryptedData(e){let t=new Int8Array(16*Math.floor((e.length-48)/160)+16),n=0;for(let i=32;i<e.length-16;i+=160,n+=16)t.set(e.subarray(i,i+16),n);return t}getAvcDecryptedUnit(e,t){let n=new Uint8Array(t),i=0;for(let t=32;t<e.length-16;t+=160,i+=16)e.set(n.subarray(i,i+16),t);return e}decryptAvcSample(e,t,n,i,r){let a=ex(r.data),s=this.getAvcEncryptedData(a);this.decryptBuffer(s.buffer).then(s=>{r.data=this.getAvcDecryptedUnit(a,s),this.decrypter.isSync()||this.decryptAvcSamples(e,t,n+1,i)})}decryptAvcSamples(e,t,n,i){if(e instanceof Uint8Array)throw Error("Cannot decrypt samples of type Uint8Array");for(;;t++,n=0){if(t>=e.length){i();return}let r=e[t].units;for(;!(n>=r.length);n++){let a=r[n];if(!(a.data.length<=48)&&(1===a.type||5===a.type)&&(this.decryptAvcSample(e,t,n,i,a),!this.decrypter.isSync()))return}}}}class rm{constructor(){this.VideoSample=null}createVideoSample(e,t,n){return{key:e,frame:!1,pts:t,dts:n,units:[],length:0}}getLastNalUnit(e){var t;let n;let i=this.VideoSample;if(i&&0!==i.units.length||(i=e[e.length-1]),null!=(t=i)&&t.units){let e=i.units;n=e[e.length-1]}return n}pushAccessUnit(e,t){if(e.units.length&&e.frame){if(void 0===e.pts){let n=t.samples,i=n.length;if(i){let t=n[i-1];e.pts=t.pts,e.dts=t.dts}else{t.dropped++;return}}t.samples.push(e)}}parseNALu(e,t,n){let i,r,a;let s=t.byteLength,o=e.naluState||0,l=o,u=[],c=0,d=-1,h=0;for(-1===o&&(d=0,h=this.getNALuType(t,0),o=0,c=1);c<s;){if(i=t[c++],!o){o=i?0:1;continue}if(1===o){o=i?0:2;continue}if(i){if(1===i){if(r=c-o-1,d>=0){let e={data:t.subarray(d,r),type:h};u.push(e)}else{let n=this.getLastNalUnit(e.samples);n&&(l&&c<=4-l&&n.state&&(n.data=n.data.subarray(0,n.data.byteLength-l)),r>0&&(n.data=eg(n.data,t.subarray(0,r)),n.state=0))}c<s?(a=this.getNALuType(t,c),d=c,h=a,o=0):o=-1}else o=0}else o=3}if(d>=0&&o>=0){let e={data:t.subarray(d,s),type:h,state:o};u.push(e)}if(0===u.length){let n=this.getLastNalUnit(e.samples);n&&(n.data=eg(n.data,t))}return e.naluState=o,u}}class rg{constructor(e){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=e,this.bytesAvailable=e.byteLength,this.word=0,this.bitsAvailable=0}loadWord(){let e=this.data,t=this.bytesAvailable,n=e.byteLength-t,i=new Uint8Array(4),r=Math.min(4,t);if(0===r)throw Error("no bytes available");i.set(e.subarray(n,n+r)),this.word=new DataView(i.buffer).getUint32(0),this.bitsAvailable=8*r,this.bytesAvailable-=r}skipBits(e){let t;e=Math.min(e,8*this.bytesAvailable+this.bitsAvailable),this.bitsAvailable>e||(e-=this.bitsAvailable,t=e>>3,e-=t<<3,this.bytesAvailable-=t,this.loadWord()),this.word<<=e,this.bitsAvailable-=e}readBits(e){let t=Math.min(this.bitsAvailable,e),n=this.word>>>32-t;if(e>32&&A.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=t,this.bitsAvailable>0)this.word<<=t;else if(this.bytesAvailable>0)this.loadWord();else throw Error("no bits available");return(t=e-t)>0&&this.bitsAvailable?n<<t|this.readBits(t):n}skipLZ(){let e;for(e=0;e<this.bitsAvailable;++e)if((this.word&2147483648>>>e)!=0)return this.word<<=e,this.bitsAvailable-=e,e;return this.loadWord(),e+this.skipLZ()}skipUEG(){this.skipBits(1+this.skipLZ())}skipEG(){this.skipBits(1+this.skipLZ())}readUEG(){let e=this.skipLZ();return this.readBits(e+1)-1}readEG(){let e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)}readBoolean(){return 1===this.readBits(1)}readUByte(){return this.readBits(8)}readUShort(){return this.readBits(16)}readUInt(){return this.readBits(32)}}class rv extends rm{parsePES(e,t,n,i){let r;let a=this.parseNALu(e,n.data,i),s=this.VideoSample,o=!1;n.data=null,s&&a.length&&!e.audFound&&(this.pushAccessUnit(s,e),s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),a.forEach(i=>
267{var a,l,u,c,d;switch(i.type){case 1:{let t=!1;r=!0;let a=i.data;if(o&&a.length>4){let e=this.readSliceType(a);(2===e||4===e||7===e||9===e)&&(t=!0)}t&&null!=(u=s)&&u.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null),s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.frame=!0,s.key=t;break}case 5:r=!0,null!=(a=s)&&a.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null),s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.key=!0,s.frame=!0;break;case 6:r=!0,eb(i.data,1,n.pts,t.samples);break;case 7:{r=!0,o=!0;let t=i.data,n=this.readSPS(t);if(!e.sps||e.width!==n.width||e.height!==n.height||(null==(c=e.pixelRatio)?void 0:c[0])!==n.pixelRatio[0]||(null==(d=e.pixelRatio)?void 0:d[1])!==n.pixelRatio[1]){e.width=n.width,e.height=n.height,e.pixelRatio=n.pixelRatio,e.sps=[t];let i=t.subarray(1,4),r="avc1.";for(let e=0;e<3;e++){let t=i[e].toString(16);t.length<2&&(t="0"+t),r+=t}e.codec=r}break}case 8:r=!0,e.pps=[i.data];break;case 9:r=!0,e.audFound=!0,null!=(l=s)&&l.frame&&(this.pushAccessUnit(s,e),s=null),s||(s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts));break;case 12:r=!0;break;default:r=!1}s&&r&&s.units.push(i)}),i&&s&&(this.pushAccessUnit(s,e),this.VideoSample=null)}getNALuType(e,t){return 31&e[t]}readSliceType(e){let t=new rg(e);return t.readUByte(),t.readUEG(),t.readUEG()}skipScalingList(e,t){let n=8,i=8;for(let r=0;r<e;r++)0!==i&&(i=(n+t.readEG()+256)%256),n=0===i?n:i}readSPS(e){let t,n,i;let r=new rg(e),a=0,s=0,o=0,l=0,u=r.readUByte.bind(r),c=r.readBits.bind(r),d=r.readUEG.bind(r),h=r.readBoolean.bind(r),f=r.skipBits.bind(r),p=r.skipEG.bind(r),m=r.skipUEG.bind(r),g=this.skipScalingList.bind(this);u();let v=u();if(c(5),f(3),u(),m(),100===v||110===v||122===v||244===v||44===v||83===v||86===v||118===v||128===v){let e=d();if(3===e&&f(1),m(),m(),f(1),h())for(i=0,n=3!==e?8:12;i<n;i++)h()&&g(i<6?16:64,r)}m();let y=d();if(0===y)d();else if(1===y)for(f(1),p(),p(),t=d(),i=0;i<t;i++)p();m(),f(1);let _=d(),b=d(),x=c(1);0===x&&f(1),f(1),h()&&(a=d(),s=d(),o=d(),l=d());let C=[1,1];if(h()&&h())switch(u()){case 1:C=[1,1];break;case 2:C=[12,11];break;case 3:C=[10,11];break;case 4:C=[16,11];break;case 5:C=[40,33];break;case 6:C=[24,11];break;case 7:C=[20,11];break;case 8:C=[32,11];break;case 9:C=[80,33];break;case 10:C=[18,11];break;case 11:C=[15,11];break;case 12:C=[64,33];break;case 13:C=[160,99];break;case 14:C=[4,3];break;case 15:C=[3,2];break;case 16:C=[2,1];break;case 255:C=[u()<<8|u(),u()<<8|u()]}return{width:Math.ceil((_+1)*16-2*a-2*s),height:(2-x)*(b+1)*16-(x?2:4)*(o+l),pixelRatio:C}}}class ry extends rm{constructor(...e){super(...e),this.initVPS=null}parsePES(e,t,n,i){let r;let a=this.parseNALu(e,n.data,i),s=this.VideoSample,o=!1;n.data=null,s&&a.length&&!e.audFound&&(this.pushAccessUnit(s,e),s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),a.forEach(i=>{var a,l,u;switch(i.type){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:s||(s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),s.frame=!0,r=!0;break;case 16:case 17:case 18:case 21:r=!0,o&&null!=(u=s)&&u.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null),s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.key=!0,s.frame=!0;break;case 19:case 20:r=!0,null!=(a=s)&&a.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null),s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.key=!0,s.frame=!0;break;case 39:r=!0,eb(i.data,2,n.pts,t.samples);break;case 32:r=!0,e.vps||("object"!=typeof e.params&&(e.params={}),e.params=v(e.params,this.readVPS(i.data)),this.initVPS=i.data),e.vps=[i.data];break;case 33:if(r=!0,o=!0,void 0===e.vps||e.vps[0]===this.initVPS||void 0===e.sps||this.matchSPS(e.sps[0],i.data)||(this.initVPS=e.vps[0],e.sps=e.pps=void 0),!e.sps){let t=this.readSPS(i.data);for(let n in e.width=t.width,e.height=t.height,e.pixelRatio=t.pixelRatio,e.codec=t.codecString,e.sps=[],"object"!=typeof e.params&&(e.params={}),t.params)e.params[n]=t.params[n]}this.pushParameterSet(e.sps,i.data,e.vps),s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.key=!0;break;case 34:if(r=!0,"object"==typeof e.params){if(!e.pps){e.pps=[];let t=this.readPPS(i.data);for(let n in t)e.params[n]=t[n]}this.pushParameterSet(e.pps,i.data,e.vps)}break;case 35:r=!0,e.audFound=!0,null!=(l=s)&&l.frame&&(this.pushAccessUnit(s,e),s=null),s||(s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts));break;default:r=!1}s&&r&&s.units.push(i)}),i&&s&&(this.pushAccessUnit(s,e),this.VideoSample=null)}pushParameterSet(e,t,n){(!n||n[0]!==this.initVPS)&&(n||e.length)||e.push(t)}getNALuType(e,t){return(126&e[t])>>>1}ebsp2rbsp(e){let t=new Uint8Array(e.byteLength),n=0;for(let i=0;i<e.byteLength;i++)(!(i>
267=2)||3!==e[i]||0!==e[i-1]||0!==e[i-2])&&(t[n]=e[i],n++);return new Uint8Array(t.buffer,0,n)}pushAccessUnit(e,t){super.pushAccessUnit(e,t),this.initVPS&&(this.initVPS=null)}readVPS(e){let t=new rg(e);return t.readUByte(),t.readUByte(),t.readBits(4),t.skipBits(2),t.readBits(6),{numTemporalLayers:t.readBits(3)+1,temporalIdNested:t.readBoolean()}}readSPS(e){let t=new rg(this.ebsp2rbsp(e));t.readUByte(),t.readUByte(),t.readBits(4);let n=t.readBits(3);t.readBoolean();let i=t.readBits(2),r=t.readBoolean(),a=t.readBits(5),s=t.readUByte(),o=t.readUByte(),l=t.readUByte(),u=t.readUByte(),c=t.readUByte(),d=t.readUByte(),h=t.readUByte(),f=t.readUByte(),p=t.readUByte(),m=t.readUByte(),g=t.readUByte(),v=[],y=[];for(let e=0;e<n;e++)v.push(t.readBoolean()),y.push(t.readBoolean());if(n>0)for(let e=n;e<8;e++)t.readBits(2);for(let e=0;e<n;e++)v[e]&&(t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte()),y[e]&&t.readUByte();t.readUEG();let _=t.readUEG();3==_&&t.skipBits(1);let b=t.readUEG(),x=t.readUEG(),C=t.readBoolean(),E=0,w=0,T=0,S=0;C&&(E+=t.readUEG(),w+=t.readUEG(),T+=t.readUEG(),S+=t.readUEG());let L=t.readUEG(),P=t.readUEG(),M=t.readUEG(),A=t.readBoolean();for(let e=A?0:n;e<=n;e++)t.skipUEG(),t.skipUEG(),t.skipUEG();if(t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG(),t.readBoolean()&&t.readBoolean())for(let e=0;e<4;e++)for(let n=0;n<(3===e?2:6);n++)if(t.readBoolean()){let n=Math.min(64,1<<4+(e<<1));e>1&&t.readEG();for(let e=0;e<n;e++)t.readEG()}else t.readUEG();t.readBoolean(),t.readBoolean(),t.readBoolean()&&(t.readUByte(),t.skipUEG(),t.skipUEG(),t.readBoolean());let I=t.readUEG(),R=0;for(let e=0;e<I;e++){let n=!1;if(0!==e&&(n=t.readBoolean()),n){e===I&&t.readUEG(),t.readBoolean(),t.readUEG();let n=0;for(let e=0;e<=R;e++){let e=t.readBoolean(),i=!1;e||(i=t.readBoolean()),(e||i)&&n++}R=n}else{let e=t.readUEG(),n=t.readUEG();R=e+n;for(let n=0;n<e;n++)t.readUEG(),t.readBoolean();for(let e=0;e<n;e++)t.readUEG(),t.readBoolean()}}if(t.readBoolean()){let e=t.readUEG();for(let n=0;n<e;n++){for(let e=0;e<M+4;e++)t.readBits(1);t.readBits(1)}}let k=0,D=1,N=1,F=!0,O=1,j=0;t.readBoolean(),t.readBoolean();let U=!1;if(t.readBoolean()){if(t.readBoolean()){let e=t.readUByte(),n=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],i=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];e>0&&e<16?(D=n[e-1],N=i[e-1]):255===e&&(D=t.readBits(16),N=t.readBits(16))}if(t.readBoolean()&&t.readBoolean(),t.readBoolean()&&(t.readBits(3),t.readBoolean(),t.readBoolean()&&(t.readUByte(),t.readUByte(),t.readUByte())),t.readBoolean()&&(t.readUEG(),t.readUEG()),t.readBoolean(),t.readBoolean(),t.readBoolean(),(U=t.readBoolean())&&(t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG()),t.readBoolean()&&(O=t.readBits(32),j=t.readBits(32),t.readBoolean()&&t.readUEG(),t.readBoolean())){let e=t.readBoolean(),i=t.readBoolean(),r=!1;(e||i)&&((r=t.readBoolean())&&(t.readUByte(),t.readBits(5),t.readBoolean(),t.readBits(5)),t.readBits(4),t.readBits(4),r&&t.readBits(4),t.readBits(5),t.readBits(5),t.readBits(5));for(let a=0;a<=n;a++){let n=(F=t.readBoolean())||t.readBoolean(),a=!1;n?t.readEG():a=t.readBoolean();let s=a?1:t.readUEG()+1;if(e)for(let e=0;e<s;e++)t.readUEG(),t.readUEG(),r&&(t.readUEG(),t.readUEG()),t.skipBits(1);if(i)for(let e=0;e<s;e++)t.readUEG(),t.readUEG(),r&&(t.readUEG(),t.readUEG()),t.skipBits(1)}}t.readBoolean()&&(t.readBoolean(),t.readBoolean(),t.readBoolean(),k=t.readUEG())}let V=b,B=x;if(C){let e=1,t=1;1===_?e=t=2:2==_&&(e=2),V=b-e*w-e*E,B=x-t*S-t*T}let H=i?["A","B","C"][i]:"",G=s<<24|o<<16|l<<8|u,z=0;for(let e=0;e<32;e++)z=(z|(G>>e&1)<<31-e)>>>0;let q=z.toString(16);1===a&&"2"===q&&(q="6");let W=r?"H":"L";return{codecString:`hvc1.${H}${a}.${q}.${W}${g}.B0`,params:{general_tier_flag:r,general_profile_idc:a,general_profile_space:i,general_profile_compatibility_flags:[s,o,l,u],general_constraint_indicator_flags:[c,d,h,f,p,m],general_level_idc:g,bit_depth:L+8,bit_depth_luma_minus8:L,bit_depth_chroma_minus8:P,min_spatial_segmentation_idc:k,chroma_format_idc:_,frame_rate:{fixed:F,fps:j/O}},width:V,height:B,pixelRatio:[D,N]}}readPPS(e){let t=new rg(this.ebsp2rbsp(e));t.readUByte(),t.readUByte(),t.skipUEG(),t.skipUEG(),t.skipBits(2),t.skipBits(3),t.skipBits(2),t.skipUEG(),t.skipUEG(),t.skipEG(),t.skipBits(2),t.readBoolean()&&t.skipUEG(),t.skipEG(),t.skipEG(),t.skipBits(4);let n=t.readBoolean(),i=t.readBoolean(),r=1;return i&&n?r=0:i?r=3:n&&(r=2),{parallelismType:r}}matchSPS(e,t){return String.fromCharCode.apply(null,e).substr(3)===String.fromCharCode.apply(null,t).substr(3)}}let r_=188;class rb{constructor(e,t,n,i){this.logger=void 0,this.observer=void 0,this.config=void 0,this.typeSupp
267orted=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._pmtId=-1,this._videoTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.remainderData=null,this.videoParser=void 0,this.observer=e,this.config=t,this.typeSupported=n,this.logger=i,this.videoParser=null}static probe(e,t){let n=rb.syncOffset(e);return n>0&&t.warn(`MPEG2-TS detected but first sync word found @ offset ${n}`),-1!==n}static syncOffset(e){let t=e.length,n=Math.min(5*r_,t-r_)+1,i=0;for(;i<n;){let r=!1,a=-1,s=0;for(let o=i;o<t;o+=r_)if(71===e[o]&&(t-o===r_||71===e[o+r_])){if(s++,-1===a&&0!==(a=o)&&(n=Math.min(a+99*r_,e.length-r_)+1),r||(r=0===rx(e,o)),r&&s>1&&(0===a&&s>2||o+r_>n))return a}else if(s)return -1;else break;i++}return -1}static createTrack(e,t){return{container:"video"===e||"audio"===e?"video/mp2t":void 0,type:e,id:K[e],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:"audio"===e?t:void 0}}resetInitSegment(e,t,n,i){this.pmtParsed=!1,this._pmtId=-1,this._videoTrack=rb.createTrack("video"),this._videoTrack.duration=i,this._audioTrack=rb.createTrack("audio",i),this._id3Track=rb.createTrack("id3"),this._txtTrack=rb.createTrack("text"),this._audioTrack.segmentCodec="aac",this.videoParser=null,this.aacOverFlow=null,this.remainderData=null,this.audioCodec=t,this.videoCodec=n}resetTimeStamp(){}resetContiguity(){let{_audioTrack:e,_videoTrack:t,_id3Track:n}=this;e&&(e.pesData=null),t&&(t.pesData=null),n&&(n.pesData=null),this.aacOverFlow=null,this.remainderData=null}demux(e,t,n=!1,i=!1){let r;n||(this.sampleAes=null);let a=this._videoTrack,s=this._audioTrack,o=this._id3Track,l=this._txtTrack,u=a.pid,c=a.pesData,d=s.pid,h=o.pid,f=s.pesData,p=o.pesData,m=null,g=this.pmtParsed,v=this._pmtId,y=e.length;if(this.remainderData&&(y=(e=eg(this.remainderData,e)).length,this.remainderData=null),y<r_&&!i)return this.remainderData=e,{audioTrack:s,videoTrack:a,id3Track:o,textTrack:l};let _=Math.max(0,rb.syncOffset(e));(y-=(y-_)%r_)<e.byteLength&&!i&&(this.remainderData=new Uint8Array(e.buffer,y,e.buffer.byteLength-y));let b=0;for(let t=_;t<y;t+=r_)if(71===e[t]){let i;let y=!!(64&e[t+1]),b=rx(e,t);if((48&e[t+3])>>4>1){if((i=t+5+e[t+4])===t+r_)continue}else i=t+4;switch(b){case u:y&&(c&&(r=rS(c,this.logger))&&(this.readyVideoParser(a.segmentCodec),null!==this.videoParser&&this.videoParser.parsePES(a,l,r,!1)),c={data:[],size:0}),c&&(c.data.push(e.subarray(i,t+r_)),c.size+=t+r_-i);break;case d:if(y){if(f&&(r=rS(f,this.logger)))switch(s.segmentCodec){case"aac":this.parseAACPES(s,r);break;case"mp3":this.parseMPEGPES(s,r);break;case"ac3":this.parseAC3PES(s,r)}f={data:[],size:0}}f&&(f.data.push(e.subarray(i,t+r_)),f.size+=t+r_-i);break;case h:y&&(p&&(r=rS(p,this.logger))&&this.parseID3PES(o,r),p={data:[],size:0}),p&&(p.data.push(e.subarray(i,t+r_)),p.size+=t+r_-i);break;case 0:y&&(i+=e[i]+1),v=this._pmtId=rC(e,i);break;case v:{y&&(i+=e[i]+1);let r=rE(e,i,this.typeSupported,n,this.observer,this.logger);(u=r.videoPid)>0&&(a.pid=u,a.segmentCodec=r.segmentVideoCodec),(d=r.audioPid)>0&&(s.pid=d,s.segmentCodec=r.segmentAudioCodec),(h=r.id3Pid)>0&&(o.pid=h),null===m||g||(this.logger.warn(`MPEG-TS PMT found at ${t} after unknown PID '${m}'. Backtracking to sync byte @${_} to parse all TS packets.`),m=null,t=_-188),g=this.pmtParsed=!0;break}case 17:case 8191:break;default:m=b}}else b++;b>0&&rw(this.observer,Error(`Found ${b} TS packet/s that do not start with 0x47`),void 0,this.logger),a.pesData=c,s.pesData=f,o.pesData=p;let x={audioTrack:s,videoTrack:a,id3Track:o,textTrack:l};return i&&this.extractRemainingSamples(x),x}flush(){let e;let{remainderData:t}=this;return(this.remainderData=null,e=t?this.demux(t,-1,!1,!0):{videoTrack:this._videoTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(e),this.sampleAes)?this.decrypt(e,this.sampleAes):e}extractRemainingSamples(e){let t;let{audioTrack:n,videoTrack:i,id3Track:r,textTrack:a}=e,s=i.pesData,o=n.pesData,l=r.pesData;if(s&&(t=rS(s,this.logger))?(this.readyVideoParser(i.segmentCodec),null!==this.videoParser&&(this.videoParser.parsePES(i,a,t,!0),i.pesData=null)):i.pesData=s,o&&(t=rS(o,this.logger))){switch(n.segmentCodec){case"aac":this.parseAACPES(n,t);break;case"mp3":this.parseMPEGPES(n,t);break;case"ac3":this.parseAC3PES(n,t)}n.pesData=null}else null!=o&&o.size&&this.logger.log("last AAC PES packet truncated,might overlap between fragments"),n.pesData=o;l&&(t=rS(l,this.logger))?(this.parseID3PES(r,t),r.pesData=null):r.pesData=l}
267demuxSampleAes(e,t,n){let i=this.demux(e,n,!0,!this.config.progressive),r=this.sampleAes=new rp(this.observer,this.config,t);return this.decrypt(i,r)}readyVideoParser(e){null===this.videoParser&&("avc"===e?this.videoParser=new rv:"hevc"===e&&(this.videoParser=new ry))}decrypt(e,t){return new Promise(n=>{let{audioTrack:i,videoTrack:r}=e;i.samples&&"aac"===i.segmentCodec?t.decryptAacSamples(i.samples,0,()=>{r.samples?t.decryptAvcSamples(r.samples,0,0,()=>{n(e)}):n(e)}):r.samples&&t.decryptAvcSamples(r.samples,0,0,()=>{n(e)})})}destroy(){this.observer&&this.observer.removeAllListeners(),this.config=this.logger=this.observer=null,this.aacOverFlow=this.videoParser=this.remainderData=this.sampleAes=null,this._videoTrack=this._audioTrack=this._id3Track=this._txtTrack=void 0}parseAACPES(e,t){let n,i,r,a,s=0,o=this.aacOverFlow,l=t.data;if(o){this.aacOverFlow=null;let t=o.missing,n=o.sample.unit.byteLength;if(-1===t)l=eg(o.sample.unit,l);else{let i=n-t;o.sample.unit.set(l.subarray(0,t),i),e.samples.push(o.sample),s=o.missing}}for(n=s,i=l.length;n<i-1&&!iA(l,n);n++);if(n!==s){let e;let t=n<i-1;if(e=t?`AAC PES did not start with ADTS header,offset:${n}`:"No ADTS header found in AAC PES",rw(this.observer,Error(e),t,this.logger),!t)return}if(ik(e,this.observer,l,n,this.audioCodec),void 0!==t.pts)r=t.pts;else if(o){let t=iD(e.samplerate);r=o.sample.pts+t}else{this.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}let u=0;for(;n<i;){if(a=iF(e,l,n,r,u),n+=a.length,a.missing){this.aacOverFlow=a;break}for(u++;n<i-1&&!iA(l,n);n++);}}parseMPEGPES(e,t){let n=t.data,i=n.length,r=0,a=0,s=t.pts;if(void 0===s){this.logger.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;a<i;)if(ri(n,a)){let t=re(e,n,a,s,r);if(t)a+=t.length,r++;else break}else a++}parseAC3PES(e,t){{let n;let i=t.data,r=t.pts;if(void 0===r){this.logger.warn("[tsdemuxer]: AC3 PES unknown PTS");return}let a=i.length,s=0,o=0;for(;o<a&&(n=ru(e,i,o,r,s++))>0;)o+=n}}parseID3PES(e,t){if(void 0===t.pts){this.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}let n=v({},t,{type:this._videoTrack?i1.emsg:i1.audioId3,duration:Number.POSITIVE_INFINITY});e.samples.push(n)}}function rx(e,t){return((31&e[t+1])<<8)+e[t+2]}function rC(e,t){return(31&e[t+10])<<8|e[t+11]}function rE(e,t,n,i,r,a){let s={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},o=(15&e[t+1])<<8|e[t+2],l=t+3+o-4,u=(15&e[t+10])<<8|e[t+11];for(t+=12+u;t<l;){let o=rx(e,t),l=(15&e[t+3])<<8|e[t+4];switch(e[t]){case 207:if(!i){rT("ADTS AAC",a);break}case 15:-1===s.audioPid&&(s.audioPid=o);break;case 21:-1===s.id3Pid&&(s.id3Pid=o);break;case 219:if(!i){rT("H.264",a);break}case 27:-1===s.videoPid&&(s.videoPid=o);break;case 3:case 4:n.mpeg||n.mp3?-1===s.audioPid&&(s.audioPid=o,s.segmentAudioCodec="mp3"):a.log("MPEG audio found, not supported in this browser");break;case 193:if(!i){rT("AC-3",a);break}case 129:n.ac3?-1===s.audioPid&&(s.audioPid=o,s.segmentAudioCodec="ac3"):a.log("AC-3 audio found, not supported in this browser");break;case 6:if(-1===s.audioPid&&l>0){let i=t+5,r=l;for(;r>2;){106===e[i]&&(!0!==n.ac3?a.log("AC-3 audio found, not supported in this browser for now"):(s.audioPid=o,s.segmentAudioCodec="ac3"));let t=e[i+1]+2;i+=t,r-=t}}break;case 194:case 135:return rw(r,Error("Unsupported EC-3 in M2TS found"),void 0,a),s;case 36:-1===s.videoPid&&(s.videoPid=o,s.segmentVideoCodec="hevc",a.log("HEVC in M2TS found"))}t+=l+5}return s}function rw(e,t,n,i){i.warn(`parsing error: ${t.message}`),e.emit(u.ERROR,u.ERROR,{type:o.MEDIA_ERROR,details:l.FRAG_PARSING_ERROR,fatal:!1,levelRetry:n,error:t,reason:t.message})}function rT(e,t){t.log(`${e} with AES-128-CBC encryption found in unencrypted stream`)}function rS(e,t){let n,i,r,a,s,o=0,l=e.data;if(!e||0===e.size)return null;for(;l[0].length<19&&l.length>1;)l[0]=eg(l[0],l[1]),l.splice(1,1);if(1===((n=l[0])[0]<<16)+(n[1]<<8)+n[2]){if((i=(n[4]<<8)+n[5])&&i>e.size-6)return null;let u=n[7];192&u&&(a=(14&n[9])*536870912+(255&n[10])*4194304+(254&n[11])*16384+(255&n[12])*128+(254&n[13])/2,64&u?a-(s=(14&n[14])*536870912+(255&n[15])*4194304+(254&n[16])*16384+(255&n[17])*128+(254&n[18])/2)>54e5&&(t.warn(`${Math.round((a-s)/9e4)}s delta between PTS and DTS, align them`),a=s):s=a);let c=(r=n[8])+9;if(e.size<=c)return null;e.size-=c;let d=new Uint8Array(e.size);for(let e=0,t=l.length;e<t;e++){let t=(n=l[e]).byteLength;if(c){if(c>t){c-=t;continue}n=n.subarray(c),t-=c,c=0}d.set(n,o),o+=t}return i&&(i-=r+3),{data:d,pts:a,dts:s,len:i}}return null}class rL{static getSilentFrame(e,t){if("mp4a.40.2"===e){if(1===t)return new Uint8Array([0,200,0,128,35,128]);if(2===t)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);else if(5===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);else if(6===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(1===t)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===t||3===t)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}}}let rP=4294967295;class rM{static init(){let e;for(e in rM.types={avc1:[],avcC:[],hvc1:[],hvcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],dac3:[],"ac-3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]},rM.types)rM.types.hasOwnProperty(e)&&(rM.types[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);let t=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),n=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);rM.HDLR_TYPES={video:t,audio:n};let i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),r=new
267Uint8Array([0,0,0,0,0,0,0,0]);rM.STTS=rM.STSC=rM.STCO=r,rM.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),rM.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),rM.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),rM.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);let a=new Uint8Array([105,115,111,109]),s=new Uint8Array([97,118,99,49]),o=new Uint8Array([0,0,0,1]);rM.FTYP=rM.box(rM.types.ftyp,a,o,a,s),rM.DINF=rM.box(rM.types.dinf,rM.box(rM.types.dref,i))}static box(e,...t){let n=8,i=t.length,r=i;for(;i--;)n+=t[i].byteLength;let a=new Uint8Array(n);for(a[0]=n>>24&255,a[1]=n>>16&255,a[2]=n>>8&255,a[3]=255&n,a.set(e,4),i=0,n=8;i<r;i++)a.set(t[i],n),n+=t[i].byteLength;return a}static hdlr(e){return rM.box(rM.types.hdlr,rM.HDLR_TYPES[e])}static mdat(e){return rM.box(rM.types.mdat,e)}static mdhd(e,t){let n=Math.floor((t*=e)/(rP+1)),i=Math.floor(t%(rP+1));return rM.box(rM.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,255&e,n>>24,n>>16&255,n>>8&255,255&n,i>>24,i>>16&255,i>>8&255,255&i,85,196,0,0]))}static mdia(e){return rM.box(rM.types.mdia,rM.mdhd(e.timescale||0,e.duration||0),rM.hdlr(e.type),rM.minf(e))}static mfhd(e){return rM.box(rM.types.mfhd,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,255&e]))}static minf(e){return"audio"===e.type?rM.box(rM.types.minf,rM.box(rM.types.smhd,rM.SMHD),rM.DINF,rM.stbl(e)):rM.box(rM.types.minf,rM.box(rM.types.vmhd,rM.VMHD),rM.DINF,rM.stbl(e))}static moof(e,t,n){return rM.box(rM.types.moof,rM.mfhd(e),rM.traf(n,t))}static moov(e){let t=e.length,n=[];for(;t--;)n[t]=rM.trak(e[t]);return rM.box.apply(null,[rM.types.moov,rM.mvhd(e[0].timescale||0,e[0].duration||0)].concat(n).concat(rM.mvex(e)))}static mvex(e){let t=e.length,n=[];for(;t--;)n[t]=rM.trex(e[t]);return rM.box.apply(null,[rM.types.mvex,...n])}static mvhd(e,t){let n=Math.floor((t*=e)/(rP+1)),i=Math.floor(t%(rP+1)),r=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,255&e,n>>24,n>>16&255,n>>8&255,255&n,i>>24,i>>16&255,i>>8&255,255&i,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return rM.box(rM.types.mvhd,r)}static sdtp(e){let t,n;let i=e.samples||[],r=new Uint8Array(4+i.length);for(t=0;t<i.length;t++)n=i[t].flags,r[t+4]=n.dependsOn<<4|n.isDependedOn<<2|n.hasRedundancy;return rM.box(rM.types.sdtp,r)}static stbl(e){return rM.box(rM.types.stbl,rM.stsd(e),rM.box(rM.types.stts,rM.STTS),rM.box(rM.types.stsc,rM.STSC),rM.box(rM.types.stsz,rM.STSZ),rM.box(rM.types.stco,rM.STCO))}static avc1(e){let t,n,i,r=[],a=[];for(t=0;t<e.sps.length;t++)i=(n=e.sps[t]).byteLength,r.push(i>>>8&255),r.push(255&i),r=r.concat(Array.prototype.slice.call(n));for(t=0;t<e.pps.length;t++)i=(n=e.pps[t]).byteLength,a.push(i>>>8&255),a.push(255&i),a=a.concat(Array.prototype.slice.call(n));let s=rM.box(rM.types.avcC,new Uint8Array([1,r[3],r[4],r[5],255,224|e.sps.length].concat(r).concat([e.pps.length]).concat(a))),o=e.width,l=e.height,u=e.pixelRatio[0],c=e.pixelRatio[1];return rM.box(rM.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,o>>8&255,255&o,l>>8&255,255&l,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),s,rM.box(rM.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),rM.box(rM.types.pasp,new Uint8Array([u>>24,u>>16&255,u>>8&255,255&u,c>>24,c>>16&255,c>>8&255,255&c])))}static esds(e){return new Uint8Array([0,0,0,0,3,25,0,1,0,4,17,64,21,0,0,0,0,0,0,0,0,0,0,0,5,2,...e.config,6,1,2])}static audioStsd(e){let t=e.samplerate||0;return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount||0,0,16,0,0,0,0,t>>8&255,255&t,0,0])}static mp4a(e){return rM.box(rM.types.mp4a,rM.audioStsd(e),rM.box(rM.types.esds,rM.esds(e)))}static mp3(e){return rM.box(rM.types[".mp3"],rM.audioStsd(e))}static ac3(e){return rM.box(rM.types["ac-3"],rM.audioStsd(e),rM.box(rM.types.dac3,e.config))}static stsd(e){let{segmentCodec:t}=e;if("audio"===e.type){if("aac"===t)return rM.box(rM.types.stsd,rM.STSD,rM.mp4a(e));if("ac3"===t&&e.config)return rM.box(rM.types.stsd,rM.STSD,rM.ac3(e));if("mp3"===t&&"mp3"===e.codec)return rM.box(rM.types.stsd,rM.STSD,rM.mp3(e))}else if(e.pps&&e.sps){if("avc"===t)return rM.box(rM.types.stsd,rM.STSD,rM.avc1(e));if("hevc"===t&&e.vps)return rM.box(rM.types.stsd,rM.STSD,rM.hvc1(e))}
267else throw Error("video track missing pps or sps");throw Error(`unsupported ${e.type} segment codec (${t}/${e.codec})`)}static tkhd(e){let t=e.id,n=(e.duration||0)*(e.timescale||0),i=e.width||0,r=e.height||0,a=Math.floor(n/(rP+1)),s=Math.floor(n%(rP+1));return rM.box(rM.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,255&t,0,0,0,0,a>>24,a>>16&255,a>>8&255,255&a,s>>24,s>>16&255,s>>8&255,255&s,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,i>>8&255,255&i,0,0,r>>8&255,255&r,0,0]))}static traf(e,t){let n=rM.sdtp(e),i=e.id,r=Math.floor(t/(rP+1)),a=Math.floor(t%(rP+1));return rM.box(rM.types.traf,rM.box(rM.types.tfhd,new Uint8Array([0,0,0,0,i>>24,i>>16&255,i>>8&255,255&i])),rM.box(rM.types.tfdt,new Uint8Array([1,0,0,0,r>>24,r>>16&255,r>>8&255,255&r,a>>24,a>>16&255,a>>8&255,255&a])),rM.trun(e,n.length+16+20+8+16+8+8),n)}static trak(e){return e.duration=e.duration||4294967295,rM.box(rM.types.trak,rM.tkhd(e),rM.mdia(e))}static trex(e){let t=e.id;return rM.box(rM.types.trex,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}static trun(e,t){let n,i,r,a,s,o;let l=e.samples||[],u=l.length,c=12+16*u,d=new Uint8Array(c);for(t+=8+c,d.set(["video"===e.type?1:0,0,15,1,u>>>24&255,u>>>16&255,u>>>8&255,255&u,t>>>24&255,t>>>16&255,t>>>8&255,255&t],0),n=0;n<u;n++)r=(i=l[n]).duration,a=i.size,s=i.flags,o=i.cts,d.set([r>>>24&255,r>>>16&255,r>>>8&255,255&r,a>>>24&255,a>>>16&255,a>>>8&255,255&a,s.isLeading<<2|s.dependsOn,s.isDependedOn<<6|s.hasRedundancy<<4|s.paddingValue<<1|s.isNonSync,61440&s.degradPrio,15&s.degradPrio,o>>>24&255,o>>>16&255,o>>>8&255,255&o],12+16*n);return rM.box(rM.types.trun,d)}static initSegment(e){rM.types||rM.init();let t=rM.moov(e);return eg(rM.FTYP,t)}static hvc1(e){let t=e.params,n=[e.vps,e.sps,e.pps],i=4,r=new Uint8Array([1,t.general_profile_space<<6|(t.general_tier_flag?32:0)|t.general_profile_idc,t.general_profile_compatibility_flags[0],t.general_profile_compatibility_flags[1],t.general_profile_compatibility_flags[2],t.general_profile_compatibility_flags[3],t.general_constraint_indicator_flags[0],t.general_constraint_indicator_flags[1],t.general_constraint_indicator_flags[2],t.general_constraint_indicator_flags[3],t.general_constraint_indicator_flags[4],t.general_constraint_indicator_flags[5],t.general_level_idc,240|t.min_spatial_segmentation_idc>>8,255&t.min_spatial_segmentation_idc,252|t.parallelismType,252|t.chroma_format_idc,248|t.bit_depth_luma_minus8,248|t.bit_depth_chroma_minus8,0,parseInt(t.frame_rate.fps),i-1|t.temporal_id_nested<<2|t.num_temporal_layers<<3|(t.frame_rate.fixed?64:0),n.length]),a=r.length;for(let e=0;e<n.length;e+=1){a+=3;for(let t=0;t<n[e].length;t+=1)a+=2+n[e][t].length}let s=new Uint8Array(a);s.set(r,0),a=r.length;let o=n.length-1;for(let e=0;e<n.length;e+=1){s.set(new Uint8Array([32+e|(e===o?128:0),0,n[e].length]),a),a+=3;for(let t=0;t<n[e].length;t+=1)s.set(new Uint8Array([n[e][t].length>>8,255&n[e][t].length]),a),a+=2,s.set(n[e][t],a),a+=n[e][t].length}let l=rM.box(rM.types.hvcC,s),u=e.width,c=e.height,d=e.pixelRatio[0],h=e.pixelRatio[1];return rM.box(rM.types.hvc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,u>>8&255,255&u,c>>8&255,255&c,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),l,rM.box(rM.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),rM.box(rM.types.pasp,new Uint8Array([d>>24,d>>16&255,d>>8&255,255&d,h>>24,h>>16&255,h>>8&255,255&h])))}}rM.types=void 0,rM.HDLR_TYPES=void 0,rM.STTS=void 0,rM.STSC=void 0,rM.STCO=void 0,rM.STSZ=void 0,rM.VMHD=void 0,rM.SMHD=void 0,rM.STSD=void 0,rM.FTYP=void 0,rM.DINF=void 0;let rA=9e4;function rI(e,t,n=1,i=!1){let r=e*t*n;return i?Math.round(r):r}function rR(e,t,n=1,i=!1){return rI(e,t,1/n,i)}function rk(e,t=!1){return rI(e,1e3,1/rA,t)}function rD(e,t=1){return rI(e,rA,1/t)}let rN=1e4,rF=1024,rO=1152,rj=1536,rU=null,rV=null;function rB(e,t,n,i){return{duration:t,size:n,cts:i,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:e?2:1,isNonSync:e?0:1}}}class rH extends C{constructor(e,t,n,i){if(super("mp4-remuxer",i),this.observer=void 0,this.config=void 0,this.typeSupp
267orted=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextVideoTs=null,this.nextAudioTs=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.videoTrackConfig=void 0,this.observer=e,this.config=t,this.typeSupported=n,this.ISGenerated=!1,null===rU){let e=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);rU=e?parseInt(e[1]):0}if(null===rV){let e=navigator.userAgent.match(/Safari\/(\d+)/i);rV=e?parseInt(e[1]):0}}destroy(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null}resetTimeStamp(e){this.log("initPTS & initDTS reset"),this._initPTS=this._initDTS=e}resetNextTimestamp(){this.log("reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}resetInitSegment(){this.log("ISGenerated flag reset"),this.ISGenerated=!1,this.videoTrackConfig=void 0}getVideoStartPts(e){let t=!1,n=e[0].pts,i=e.reduce((e,i)=>{let r=i.pts,a=r-e;return(a<-4294967296&&(t=!0,a=(r=rG(r,n))-e),a>0)?e:r},n);return t&&this.debug("PTS rollover detected"),i}remux(e,t,n,i,r,a,s,o){let l,u,c,d,h,p;let m=r,g=r,v=e.pid>-1,y=t.pid>-1,_=t.samples.length,b=e.samples.length>0,x=s&&_>0||_>1;
267if((!v||b)&&(!y||x)||this.ISGenerated||s){let n;if(this.ISGenerated){var C,E,w,T;let e=this.videoTrackConfig;(e&&(t.width!==e.width||t.height!==e.height||(null==(C=t.pixelRatio)?void 0:C[0])!==(null==(E=e.pixelRatio)?void 0:E[0])||(null==(w=t.pixelRatio)?void 0:w[1])!==(null==(T=e.pixelRatio)?void 0:T[1]))||!e&&x||null===this.nextAudioTs&&b)&&this.resetInitSegment()}this.ISGenerated||(c=this.generateIS(e,t,r,a));let i=this.isVideoContiguous,s=-1;if(x&&(s=rz(t.samples),!i&&this.config.forceKeyFrameOnDiscontinuity)){if(p=!0,s>0){this.warn(`Dropped ${s} out of ${_} video samples due to a missing keyframe`);let e=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(s),t.dropped+=s,g+=(t.samples[0].pts-e)/t.inputTimeScale,n=g}else -1===s&&(this.warn(`No keyframe found out of ${_} video samples`),p=!1)}if(this.ISGenerated){if(b&&x){let n=this.getVideoStartPts(t.samples),i=(rG(e.samples[0].pts,n)-n)/t.inputTimeScale;m+=Math.max(0,i),g+=Math.max(0,-i)}if(b){if(e.samplerate||(this.warn("regenerate InitSegment as audio detected"),c=this.generateIS(e,t,r,a)),u=this.remuxAudio(e,m,this.isAudioContiguous,a,y||x||o===f.AUDIO?g:void 0),x){let n=u?u.endPTS-u.startPTS:0;t.inputTimeScale||(this.warn("regenerate InitSegment as video detected"),c=this.generateIS(e,t,r,a)),l=this.remuxVideo(t,g,i,n)}}else x&&(l=this.remuxVideo(t,g,i,0));l&&(l.firstKeyFrame=s,l.independent=-1!==s,l.firstKeyFramePTS=n)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(n.samples.length&&(h=rq(n,r,this._initPTS,this._initDTS)),i.samples.length&&(d=rW(i,r,this._initPTS))),{audio:u,video:l,initSegment:c,independent:p,text:d,id3:h}}generateIS(e,t,n,i){let r,a,s;let o=e.samples,l=t.samples,u=this.typeSupported,c={},d=this._initPTS,h=!d||i,f="audio/mp4",p=-1;if(h&&(r=a=1/0),e.config&&o.length){switch(e.timescale=e.samplerate,e.segmentCodec){case"mp3":u.mpeg?(f="audio/mpeg",e.codec=""):u.mp3&&(e.codec="mp3");break;case"ac3":e.codec="ac-3"}c.audio={id:"audio",container:f,codec:e.codec,initSegment:"mp3"===e.segmentCodec&&u.mpeg?new Uint8Array(0):rM.initSegment([e]),metadata:{channelCount:e.channelCount}},h&&(p=e.id,s=e.inputTimeScale,d&&s===d.timescale?h=!1:r=a=o[0].pts-Math.round(s*n))}if(t.sps&&t.pps&&l.length){if(t.timescale=t.inputTimeScale,c.video={id:"main",container:"video/mp4",codec:t.codec,initSegment:rM.initSegment([t]),metadata:{width:t.width,height:t.height}},h){if(p=t.id,s=t.inputTimeScale,d&&s===d.timescale)h=!1;else{let e=this.getVideoStartPts(l),t=Math.round(s*n);a=Math.min(a,rG(l[0].dts,e)-t),r=Math.min(r,e-t)}}this.videoTrackConfig={width:t.width,height:t.height,pixelRatio:t.pixelRatio}}if(Object.keys(c).length)return this.ISGenerated=!0,h?(d&&this.warn(`Timestamps at playlist time: ${i?"":"~"}${n} ${r/s} != initPTS: ${d.baseTime/d.timescale} (${d.baseTime}/${d.timescale}) trackId: ${d.trackId}`),this.log(`Found initPTS at playlist time: ${n} offset: ${r/s} (${r}/${s}) trackId: ${p}`),this._initPTS={baseTime:r,timescale:s,trackId:p},this._initDTS={baseTime:a,timescale:s,trackId:p}):r=s=void 0,{tracks:c,initPTS:r,timescale:s,trackId:p}}remuxVideo(e,t,n,i){let r,a,s;let c=e.inputTimeScale,d=e.samples,h=[],f=d.length,p=this._initPTS,m=p.baseTime*c/p.timescale,g=this.nextVideoTs,y=8,_=this.videoSampleDuration,b=Number.POSITIVE_INFINITY,x=Number.NEGATIVE_INFINITY,C=!1;if(!n||null===g){let e=m+t*c,i=d[0].pts-rG(d[0].dts,d[0].pts);rU&&null!==g&&15e3>Math.abs(e-i-(g+m))?n=!0:g=e-i-m}let E=g+m;for(let e=0;e<f;e++){let t=d[e];t.pts=rG(t.pts,E),t.dts=rG(t.dts,E),t.dts<d[e>0?e-1:e].dts&&(C=!0)}C&&d.sort(function(e,t){let n=e.dts-t.dts,i=e.pts-t.pts;return n||i}),r=d[0].dts;let w=(a=d[d.length-1].dts)-r,T=w?Math.round(w/(f-1)):_||e.inputTimeScale/30;if(n){let n=r-E,i=n>T,a=n<-1;if((i||a)&&(i?this.warn(`${(e.segmentCodec||"").toUpperCase()}: ${rk(n,!0)} ms (${n}dts) hole between fragments detected at ${t.toFixed(3)}`):this.warn(`${(e.segmentCodec||"").toUpperCase()}: ${rk(-n,!0)} ms (${n}dts) overlapping between fragments detected at ${t.toFixed(3)}`),!a||E>=d[0].pts||rU)){r=E;let e=d[0].pts-n;if(i)d[0].dts=r,d[0].pts=e;else{let t=!0;for(let i=0;i<d.length&&(!(d[i].dts>e)||!t);i++){let e=d[i].pts;if(d[i].dts-=n,d[i].pts-=n,i<d.length-1){let n=d[i+1].pts;t=n<=d[i].pts==n<=e}}}this.log(`Video: Initial PTS/DTS adjusted: ${rk(e,!0)}/${rk(r,!0)}, delta: ${rk(n,!0)} ms`)}}let S=0,L=0,P=r=Math.max(0,r);for(let e=0;e<f;e++){let t=d[e],n=t.units,i=n.length,r=0;for(let e=0;e<i;e++)r+=n[e].data.length;L+=r,S+=i,t.length=r,t.dts<P?(t.dts=P,P+=T/4|0||1):P=t.dts,b=Math.min(t.pts,b),x=Math.max(t.pts,x)}a=d[f-1].dts;let M=L+4*S+8;try{s=new Uint8Array(M)}catch(e){this.observer.emit(u.ERROR,u.ERROR,{type:o.MUX_ERROR,details:l.REMUX_ALLOC_ER
267ROR,fatal:!1,error:e,bytes:M,reason:`fail allocating video mdat ${M}`});return}let A=new DataView(s.buffer);A.setUint32(0,M),s.set(rM.types.mdat,4);let I=!1,R=Number.POSITIVE_INFINITY,k=Number.POSITIVE_INFINITY,D=Number.NEGATIVE_INFINITY,N=Number.NEGATIVE_INFINITY;for(let e=0;e<f;e++){let t;let n=d[e],r=n.units,a=0;for(let e=0,t=r.length;e<t;e++){let t=r[e],n=t.data,i=t.data.byteLength;A.setUint32(y,i),y+=4,s.set(n,y),y+=i,a+=4+i}if(e<f-1)_=d[e+1].dts-n.dts,t=d[e+1].pts-n.pts;else{let r=this.config,a=e>0?n.dts-d[e-1].dts:T;if(t=e>0?n.pts-d[e-1].pts:T,r.stretchShortVideoTrack&&null!==this.nextAudioTs){let e=Math.floor(r.maxBufferHole*c),t=(i?b+i*c:this.nextAudioTs+m)-n.pts;t>e?((_=t-a)<0?_=a:I=!0,this.log(`It is approximately ${t/90} ms to the next segment; using duration ${_/90} ms for the last video frame.`)):_=a}else _=a}let o=Math.round(n.pts-n.dts);R=Math.min(R,_),D=Math.max(D,_),k=Math.min(k,t),N=Math.max(N,t),h.push(rB(n.key,_,a,o))}if(h.length){if(rU){if(rU<70){let e=h[0].flags;e.dependsOn=2,e.isNonSync=0}}else if(rV&&N-k<D-R&&T/D<.025&&0===h[0].cts){this.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");let e=r;for(let t=0,n=h.length;t<n;t++){let i=e+h[t].duration,r=e+h[t].cts;if(t<n-1){let e=i+h[t+1].cts;h[t].duration=e-r}else h[t].duration=t?h[t-1].duration:T;h[t].cts=0,e=i}}}let F=a+(_=I||!_?T:_);this.nextVideoTs=g=F-m,this.videoSampleDuration=_,this.isVideoContiguous=!0;let O={data1:rM.moof(e.sequenceNumber++,r,v(e,{samples:h})),data2:s,startPTS:(b-m)/c,endPTS:(x+_-m)/c,startDTS:(r-m)/c,endDTS:g/c,type:"video",hasAudio:!1,hasVideo:!0,nb:h.length,dropped:e.dropped};return e.samples=[],e.dropped=0,O}getSamplesPerFrame(e){switch(e.segmentCodec){case"mp3":return rO;case"ac3":return rj;default:return rF}}remuxAudio(e,t,n,i,r){let a;let s=e.inputTimeScale,c=e.samplerate?e.samplerate:s,d=s/c,h=this.getSamplesPerFrame(e),f=h*d,p=this._initPTS,m="mp3"===e.segmentCodec&&this.typeSupported.mpeg,g=[],y=void 0!==r,_=e.samples,b=m?0:8,x=this.nextAudioTs||-1,C=p.baseTime*s/p.timescale,E=C+t*s;if(this.isAudioContiguous=n=n||_.length&&x>0&&(i&&9e3>Math.abs(E-(x+C))||Math.abs(rG(_[0].pts,E)-(x+C))<20*f),_.forEach(function(e){e.pts=rG(e.pts,E)}),!n||x<0){if(!(_=_.filter(e=>e.pts>=0)).length)return;x=0===r?0:i&&!y?Math.max(0,E-C):_[0].pts-C}if("aac"===e.segmentCodec){let t=this.config.maxAudioFramesDrift;for(let n=0,i=x+C;n<_.length;n++){let r=_[n],a=r.pts,o=a-i,l=Math.abs(1e3*o/s);
267if(o<=-t*f&&y)0===n&&(this.warn(`Audio frame @ ${(a/s).toFixed(3)}s overlaps marker by ${Math.round(1e3*o/s)} ms.`),this.nextAudioTs=x=a-C,i=a);else if(o>=t*f&&l<rN&&y){let t=Math.round(o/f);for(i=a-t*f;i<0&&t&&f;)t--,i+=f;0===n&&(this.nextAudioTs=x=i-C),this.warn(`Injecting ${t} audio frames @ ${((i-C)/s).toFixed(3)}s due to ${Math.round(1e3*o/s)} ms gap.`);for(let a=0;a<t;a++){let t=rL.getSilentFrame(e.parsedCodec||e.manifestCodec||e.codec,e.channelCount);t||(this.log("Unable to get silent frame for given audio codec; duplicating last frame instead."),t=r.unit.subarray()),_.splice(n,0,{unit:t,pts:i}),i+=f,n++}}r.pts=i,i+=f}}let w=null,T=null,S=0,L=_.length;for(;L--;)S+=_[L].unit.byteLength;for(let t=0,i=_.length;t<i;t++){let i=_[t],r=i.unit,s=i.pts;if(null!==T)g[t-1].duration=Math.round((s-T)/d);else{if(n&&"aac"===e.segmentCodec&&(s=x+C),w=s,!(S>0))return;S+=b;try{a=new Uint8Array(S)}catch(e){this.observer.emit(u.ERROR,u.ERROR,{type:o.MUX_ERROR,details:l.REMUX_ALLOC_ERROR,fatal:!1,error:e,bytes:S,reason:`fail allocating audio mdat ${S}`});return}m||(new DataView(a.buffer).setUint32(0,S),a.set(rM.types.mdat,4))}a.set(r,b);let c=r.byteLength;b+=c,g.push(rB(!0,h,c,0)),T=s}let P=g.length;if(!P)return;let M=g[g.length-1];x=T-C,this.nextAudioTs=x+d*M.duration;let A=m?new Uint8Array(0):rM.moof(e.sequenceNumber++,w/d,v({},e,{samples:g}));e.samples=[];let I=(w-C)/s,R=x/s,k={data1:A,data2:a,startPTS:I,endPTS:R,startDTS:I,endDTS:R,type:"audio",hasAudio:!0,hasVideo:!1,nb:P};return this.isAudioContiguous=!0,k}}function rG(e,t){let n;if(null===t)return e;for(n=t<e?-8589934592:8589934592;Math.abs(e-t)>4294967296;)e+=n;return e}function rz(e){for(let t=0;t<e.length;t++)if(e[t].key)return t;return -1}function rq(e,t,n,i){let r=e.samples.length;if(!r)return;let a=e.inputTimeScale;for(let s=0;s<r;s++){let r=e.samples[s];r.pts=rG(r.pts-n.baseTime*a/n.timescale,t*a)/a,r.dts=rG(r.dts-i.baseTime*a/i.timescale,t*a)/a}let s=e.samples;return e.samples=[],{samples:s}}function rW(e,t,n){let i=e.samples.length;if(!i)return;let r=e.inputTimeScale;for(let a=0;a<i;a++){let i=e.samples[a];i.pts=rG(i.pts-n.baseTime*r/n.timescale,t*r)/r}e.samples.sort((e,t)=>e.pts-t.pts);let a=e.samples;return e.samples=[],{samples:a}}class r$ extends C{constructor(e,t,n,i){super("passthrough-remuxer",i),this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=null,this.initTracks=void 0,this.lastEndTime=null,this.isVideoContiguous=!1}destroy(){}resetTimeStamp(e){this.lastEndTime=null;let t=this.initPTS;t&&e&&t.baseTime===e.baseTime&&t.timescale===e.timescale||(this.initPTS=e)}resetNextTimestamp(){this.isVideoContiguous=!1,this.lastEndTime=null}resetInitSegment(e,t,n,i){this.audioCodec=t,this.videoCodec=n,this.generateInitSegment(e,i),this.emitInitSegment=!0}generateInitSegment(e,t){let{audioCodec:n,videoCodec:i}=this;if(!(null!=e&&e.byteLength)){this.initTracks=void 0,this.initData=void 0;return}let{audio:r,video:a}=this.initData=ea(e);if(t)eh(e,t);else{let e=r||a;null!=e&&e.encrypted&&this.warn(`Init segment with encrypted track with has no key ("${e.codec}")!`)}r&&(n=rK(r,B.AUDIO,this)),a&&(i=rK(a,B.VIDEO,this));let s={};r&&a?s.audiovideo={container:"video/mp4",codec:n+","+i,supplemental:a.supplemental,encrypted:a.encrypted,initSegment:e,id:"main"}:r?s.audio={container:"audio/mp4",codec:n,encrypted:r.encrypted,initSegment:e,id:"audio"}:a?s.video={container:"video/mp4",codec:i,supplemental:a.supplemental,encrypted:a.encrypted,initSegment:e,id:"main"}:this.warn("initSegment does not contain moov or trak boxes."),this.initTracks=s}remux(e,t,n,i,a,s){var o,l;let{initPTS:u,lastEndTime:c}=this,d={audio:void 0,video:void 0,text:i,id3:n,initSegment:void 0};r(c)||(c=this.lastEndTime=a||0);let h=t.samples;if(!h.length)return d;let f={initPTS:void 0,timescale:void 0,trackId:void 0},p=this.initData;if(null!=(o=p)&&o.length||(this.generateInitSegment(h),p=this.initData),!(null!=(l=p)&&l.length))return this.warn("Failed to generate initSegment."),d;this.emitInitSegment&&(f.tracks=this.initTracks,this.emitInitSegment=!1);let m=ep(h,p,this),g=p.audio?m[p.audio.id]:null,v=p.video?m[p.video.id]:null,y=rZ(v,1/0),_=rZ(g,1/0),b=rZ(v,0,!0),x=rZ(g,0,!0),C=a,E=0,w=g&&(!v||!u&&_<y||u&&u.trackId===p.audio.id),T=w?g:v;if(T){let e=T.timescale,t=T.start-a*e,n=w?p.audio.id:p.video.id;C=T.start/e,E=w?x-_:b-y,(s||!u)&&(rY(u,C,a,E)||e!==u.timescale)&&(u&&this.warn(`Timestamps at playlist time: ${s?"":"~"}${a} ${t/e} != initPTS: ${u.baseTime/u.timescale} (${u.baseTime}/${u.timescale}) trackId: ${u.trackId}`),this.log(`Found initPTS at playlist time: ${a} offset: ${C-a} (${t}/${e}) trackId: ${n}`),u=null,f.initPTS=t,f.timescale=e,f.trackId=n)}else this.warn(`No audio or video samples found for initPTS at playlist time: ${a}`);u?(f.initPTS=u.baseTime,f.timescale=u.timescale,f.trackId=u.trackId):(f.timescale&&void 0!==f.trackId&&void 0!==f.initPTS||(this.warn("Could not set initPTS"),f.initPTS=C,f.timescale=1,f.trackId=-1),this.initPTS=u={baseTime:f.initPTS,timescale:f.timescale,trackId:f.trackId});let S=C-u.baseTime/u.timescale,L=S+E;E>0?this.lastEndTime=L:(this.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());let P=!!p.audio,M=!!p.video,A="";P&&(A+="audio"),M&&(A+="video");let I={data1:h,startPTS:S,startDTS:S,endPTS:L,endDTS:L,type:A,hasAudio:P,hasVideo:M,nb:1,dropped:0,encrypted:!!p.audio&&p.audio.encrypted||!!p.video&&p.video.encrypted};d.audio=P&&!M?I:void 0,d.video=M?I:void 0;
267let R=null==v?void 0:v.sampleCount;if(R){let e=v.keyFrameIndex,t=-1!==e;I.nb=R,I.dropped=0===e||this.isVideoContiguous?0:t?e:R,I.independent=t,I.firstKeyFrame=e,t&&v.keyFrameStart&&(I.firstKeyFramePTS=(v.keyFrameStart-u.baseTime)/u.timescale),this.isVideoContiguous||(d.independent=t),this.isVideoContiguous||(this.isVideoContiguous=t),I.dropped&&this.warn(`fmp4 does not start with IDR: firstIDR ${e}/${R} dropped: ${I.dropped} start: ${I.firstKeyFramePTS||"NA"}`)}return d.initSegment=f,d.id3=rq(n,a,u,u),i.samples.length&&(d.text=rW(i,a,u)),d}}function rZ(e,t,n=!1){return(null==e?void 0:e.start)!==void 0?(e.start+(n?e.duration:0))/e.timescale:t}function rY(e,t,n,i){if(null===e)return!0;let r=Math.max(i,1);return Math.abs(t-e.baseTime/e.timescale-n)>r}function rK(e,t,n){let i=e.codec;return i&&i.length>4?i:t===B.AUDIO?"ec-3"===i||"ac-3"===i||"alac"===i?i:"fLaC"===i||"Opus"===i?eF(i,!1):(n.warn(`Unhandled audio codec "${i}" in mp4 MAP`),i||"mp4a"):(n.warn(`Unhandled video codec "${i}" in mp4 MAP`),i||"avc1")}try{i=self.performance.now.bind(self.performance)}catch(e){i=Date.now}let rX=[{demux:rh,remux:r$},{demux:rb,remux:rH},{demux:rs,remux:rH},{demux:rc,remux:rH}];rX.splice(2,0,{demux:rl,remux:rH});class rQ{constructor(e,t,n,i,r,a){this.asyncResult=!1,this.logger=void 0,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.observer=e,this.typeSupported=t,this.config=n,this.id=r,this.logger=a}configure(e){this.transmuxConfig=e,this.decrypter&&this.decrypter.reset()}push(e,t,n,r){let a=n.transmuxing;a.executeStart=i();let s=new Uint8Array(e),{currentTransmuxState:c,transmuxConfig:d}=this;r&&(this.currentTransmuxState=r);let{contiguous:h,discontinuity:f,trackSwitch:p,accurateTimeOffset:m,timeOffset:g,initSegmentChange:v}=r||c,{audioCodec:y,videoCodec:_,defaultInitPts:b,duration:x,initSegmentData:C}=d,E=rJ(s,t);if(E&&no(E.method)){let e=this.getDecrypter(),t=nl(E.method);if(!e.isSync())return this.asyncResult=!0,this.decryptionPromise=e.webCryptoDecrypt(s,E.key.buffer,E.iv.buffer,t).then(e=>{let t=this.push(e,null,n);return this.decryptionPromise=null,t}),this.decryptionPromise;{let r=e.softwareDecrypt(s,E.key.buffer,E.iv.buffer,t);if(n.part>-1){let t=e.flush();r=t?t.buffer:t}if(!r)return a.executeEnd=i(),r0(n);s=new Uint8Array(r)}}let w=this.needsProbing(f,p);if(w){let e=this.configureTransmuxer(s);if(e)return this.logger.warn(`[transmuxer] ${e.message}`),this.observer.emit(u.ERROR,u.ERROR,{type:o.MEDIA_ERROR,details:l.FRAG_PARSING_ERROR,fatal:!1,error:e,reason:e.message}),a.executeEnd=i(),r0(n)}(f||p||v||w)&&this.resetInitSegment(C,y,_,x,t),(f||v||w)&&this.resetInitialTimestamp(b),h||this.resetContiguity();let T=this.transmux(s,E,g,m,n);this.asyncResult=r1(T);let S=this.currentTransmuxState;return S.contiguous=!0,S.discontinuity=!1,S.trackSwitch=!1,a.executeEnd=i(),T}flush(e){let t=e.transmuxing;t.executeStart=i();let{decrypter:n,currentTransmuxState:r,decryptionPromise:a}=this;if(a)return this.asyncResult=!0,a.then(()=>this.flush(e));let s=[],{timeOffset:o}=r;if(n){let t=n.flush();t&&s.push(this.push(t.buffer,null,e))}let{demuxer:l,remuxer:u}=this;if(!l||!u){t.executeEnd=i();let n=[r0(e)];return this.asyncResult?Promise.resolve(n):n}let c=l.flush(o);return r1(c)?(this.asyncResult=!0,c.then(t=>(this.flushRemux(s,t,e),s))):(this.flushRemux(s,c,e),this.asyncResult)?Promise.resolve(s):s}flushRemux(e,t,n){let{audioTrack:r,videoTrack:a,id3Track:s,textTrack:o}=t,{accurateTimeOffset:l,timeOffset:u}=this.currentTransmuxState;this.logger.log(`[transmuxer.ts]: Flushed ${this.id} sn: ${n.sn}${n.part>-1?" part: "+n.part:""} of ${this.id===f.MAIN?"level":"track"} ${n.level}`);let c=this.remuxer.remux(r,a,s,o,u,l,!0,this.id);e.push({remuxResult:c,chunkMeta:n}),n.transmuxing.executeEnd=i()}resetInitialTimestamp(e){let{demuxer:t,remuxer:n}=this;t&&n&&(t.resetTimeStamp(e),n.resetTimeStamp(e))}resetContiguity(){let{demuxer:e,remuxer:t}=this;e&&t&&(e.resetContiguity(),t.resetNextTimestamp())}resetInitSegment(e,t,n,i,r){let{demuxer:a,remuxer:s}=this;a&&s&&(a.resetInitSegment(e,t,n,i),s.resetInitSegment(e,t,n,r))}destroy(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)}transmux(e,t,n,i,r){return t&&"SAMPLE-AES"===t.method?this.transmuxSampleAes(e,t,n,i,r):this.transmuxUnencrypted(e,n,i,r)}transmuxUnencrypted(e,t,n,i){let{audioTrack:r,videoTrack:a,id3Track:s,textTrack:o}=this.demuxer.demux(e,t,!1,!this.config.progressive);return{remuxResult:this.remuxer.remux(r,a,s,o,t,n,!1,this.id),chunkMeta:i}}transmuxSampleAes(e,t,n,i,r){return this.demuxer.demuxSampleAes(e,t,n
267).then(e=>({remuxResult:this.remuxer.remux(e.audioTrack,e.videoTrack,e.id3Track,e.textTrack,n,i,!1,this.id),chunkMeta:r}))}configureTransmuxer(e){let t;let{config:n,observer:i,typeSupported:r}=this;for(let n=0,i=rX.length;n<i;n++){var a;if(null!=(a=rX[n].demux)&&a.probe(e,this.logger)){t=rX[n];break}}if(!t)return Error("Failed to find demuxer by probing fragment data");let s=this.demuxer,o=this.remuxer,l=t.remux,u=t.demux;o&&o instanceof l||(this.remuxer=new l(i,n,r,this.logger)),s&&s instanceof u||(this.demuxer=new u(i,n,r,this.logger),this.probe=u.probe)}needsProbing(e,t){return!this.demuxer||!this.remuxer||e||t}getDecrypter(){let e=this.decrypter;return e||(e=this.decrypter=new tq(this.config)),e}}function rJ(e,t){let n=null;return e.byteLength>0&&(null==t?void 0:t.key)!=null&&null!==t.iv&&null!=t.method&&(n=t),n}let r0=e=>({remuxResult:{},chunkMeta:e});function r1(e){return"then"in e&&e.then instanceof Function}class r2{constructor(e,t,n,i,r){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=e,this.videoCodec=t,this.initSegmentData=n,this.duration=i,this.defaultInitPts=r||null}}class r3{constructor(e,t,n,i,r,a){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=e,this.contiguous=t,this.accurateTimeOffset=n,this.trackSwitch=i,this.timeOffset=r,this.initSegmentChange=a}}let r5=0;class r4{constructor(e,t,n,i){this.error=null,this.hls=void 0,this.id=void 0,this.instanceNo=r5++,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.onWorkerMessage=e=>{let t=e.data,n=this.hls;if(n&&null!=t&&t.event&&t.instanceNo===this.instanceNo)switch(t.event){case"init":{var i;let e=null==(i=this.workerContext)?void 0:i.objectURL;e&&self.URL.revokeObjectURL(e);break}case"transmuxComplete":this.handleTransmuxComplete(t.data);break;case"flush":this.onFlush(t.data);break;case"workerLog":n.logger[t.data.logType]&&n.logger[t.data.logType](t.data.message);break;default:t.data=t.data||{},t.data.frag=this.frag,t.data.part=this.part,t.data.id=this.id,n.trigger(t.event,t.data)}},this.onWorkerError=e=>{if(!this.hls)return;let t=Error(`${e.message} (${e.filename}:${e.lineno})`);this.hls.config.enableWorker=!1,this.hls.logger.warn(`Error in "${this.id}" Web Worker, fallback to inline`),this.hls.trigger(u.ERROR,{type:o.OTHER_ERROR,details:l.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:t})};let r=e.config;this.hls=e,this.id=t,this.useWorker=!!r.enableWorker,this.onTransmuxComplete=n,this.onFlush=i;let a=(e,t)=>{(t=t||{}).frag=this.frag||void 0,e===u.ERROR&&(t.parent=this.id,t.part=this.part,this.error=t.error),this.hls.trigger(e,t)};this.observer=new ip,this.observer.on(u.FRAG_DECRYPTED,a),this.observer.on(u.ERROR,a);let s=eH(r.preferManagedMediaSource);if(this.useWorker&&"undefined"!=typeof Worker){let n=this.hls.logger;if(r.workerPath||iv()){try{r.workerPath?(n.log(`loading Web Worker ${r.workerPath} for "${t}"`),this.workerContext=i_(r.workerPath)):(n.log(`injecting Web Worker for "${t}"`),this.workerContext=iy());let{worker:e}=this.workerContext;e.addEventListener("message",this.onWorkerMessage),e.addEventListener("error",this.onWorkerError),e.postMessage({instanceNo:this.instanceNo,cmd:"init",typeSupported:s,id:t,config:tt(r)})}catch(i){n.warn(`Error setting up "${t}" Web Worker, fallback to inline`,i),this.terminateWorker(),this.error=null,this.transmuxer=new rQ(this.observer,s,r,"",t,e.logger)}return}}this.transmuxer=new rQ(this.observer,s,r,"",t,e.logger)}reset(){if(this.frag=null,this.part=null,this.workerContext){let e=this.instanceNo;this.instanceNo=r5++;let t=this.hls.config,n=eH(t.preferManagedMediaSource);this.workerContext.worker.postMessage({instanceNo:this.instanceNo,cmd:"reset",resetNo:e,typeSupported:n,id:this.id,c
vendor: 4,934 bytes, lines 267-273
267onfig:tt(t)})}}terminateWorker(){if(this.workerContext){let{worker:e}=this.workerContext;this.workerContext=null,e.removeEventListener("message",this.onWorkerMessage),e.removeEventListener("error",this.onWorkerError),ib(this.hls.config.workerPath)}}destroy(){if(this.workerContext)this.terminateWorker(),this.onWorkerMessage=this.onWorkerError=null;else{let e=this.transmuxer;e&&(e.destroy(),this.transmuxer=null)}let e=this.observer;e&&e.removeAllListeners(),this.frag=null,this.part=null,this.observer=null,this.hls=null}push(e,t,n,i,r,a,s,o,l,u){var c,d;l.transmuxing.start=self.performance.now();let{instanceNo:h,transmuxer:p}=this,m=a?a.start:r.start,g=r.decryptdata,v=this.frag,y=!(v&&r.cc===v.cc),_=!(v&&l.level===v.level),b=v?l.sn-v.sn:-1,x=this.part?l.part-this.part.index:-1,C=0===b&&l.id>1&&l.id===(null==v?void 0:v.stats.chunkCount),E=!_&&(1===b||0===b&&(1===x||C&&x<=0)),w=self.performance.now();(_||b||0===r.stats.parsing.start)&&(r.stats.parsing.start=w),a&&(x||!E)&&(a.stats.parsing.start=w);let T=!(v&&(null==(c=r.initSegment)?void 0:c.url)===(null==(d=v.initSegment)?void 0:d.url)),S=new r3(y,E,o,_,m,T);if(!E||y||T){this.hls.logger.log(`[transmuxer-interface]: Starting new transmux session for ${r.type} sn: ${l.sn}${l.part>-1?" part: "+l.part:""} ${this.id===f.MAIN?"level":"track"}: ${l.level} id: ${l.id} 268 discontinuity: ${y} 269 trackSwitch: ${_} 270 contiguous: ${E} 271 accurateTimeOffset: ${o} 272 timeOffset: ${m} 273 initSegmentChange: ${T}`);let e=new r2(n,i,t,s,u);this.configureTransmuxer(e)}if(this.frag=r,this.part=a,this.workerContext)this.workerContext.worker.postMessage({instanceNo:h,cmd:"demux",data:e,decryptdata:g,chunkMeta:l,state:S},e instanceof ArrayBuffer?[e]:[]);else if(p){let t=p.push(e,g,l,S);r1(t)?t.then(e=>{this.handleTransmuxComplete(e)}).catch(e=>{this.transmuxerError(e,l,"transmuxer-interface push error")}):this.handleTransmuxComplete(t)}}flush(e){e.transmuxing.start=self.performance.now();let{instanceNo:t,transmuxer:n}=this;if(this.workerContext)this.workerContext.worker.postMessage({instanceNo:t,cmd:"flush",chunkMeta:e});else if(n){let t=n.flush(e);r1(t)?t.then(t=>{this.handleFlushResult(t,e)}).catch(t=>{this.transmuxerError(t,e,"transmuxer-interface flush error")}):this.handleFlushResult(t,e)}}transmuxerError(e,t,n){this.hls&&(this.error=e,this.hls.trigger(u.ERROR,{type:o.MEDIA_ERROR,details:l.FRAG_PARSING_ERROR,chunkMeta:t,frag:this.frag||void 0,part:this.part||void 0,fatal:!1,error:e,err:e,reason:n}))}handleFlushResult(e,t){e.forEach(e=>{this.handleTransmuxComplete(e)}),this.onFlush(t)}configureTransmuxer(e){let{instanceNo:t,transmuxer:n}=this;this.workerContext?this.workerContext.worker.postMessage({instanceNo:t,cmd:"configure",config:e}):n&&n.configure(e)}handleTransmuxComplete(e){e.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(e)}}let r6=100;class r8 extends il{constructor(e,t,n){super(e,t,n,"audio-stream-controller",f.AUDIO),this.mainAnchor=null,this.mainFragLoading=null,this.audioOnly=!1,this.bufferedTrack=null,this.switchingTrack=null,this.trackId=-1,this.waitingData=null,this.mainDetails=null,this.flushing=!1,this.bufferFlushed=!1,this.cachedTrackLoadedData=null,this.registerListeners()}onHandlerDestroying(){this.unregisterListeners(),super.onHandlerDestroying(),this.resetItem()}resetItem(){this.mainDetails=this.mainAnchor=this.mainFragLoading=this.bufferedTrack=this.switchingTrack=this.waitingData=this.cachedTrackLoadedData=null}registerListeners(){super.registerListeners();let{hls:e}=this;e.on(u.LEVEL_LOADED,this.onLevelLoaded,this),e.on(u.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.on(u.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(u.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(u.BUFFER_RESET,this.onBufferReset,this),e.on(u.BUFFER_CREATED,this.onBufferCreated,this),e.on(u.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(u.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(u.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(u.FRAG_LOADING,this.onFragLoading,this),e.on(u.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){let{hls:e}=this;e&&(super.unregisterListeners(),e.off(u.LEVEL_LOADED,this.onLevelLoaded,this),e.off(u.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.off(u.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(u.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(u.BUFFER_RESET,this.onBufferReset,this),e.off(u.BUFFER_CREATED,this.onBufferCreated,this),e.off(u.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(u.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(u.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(u.FRAG_LOADING,this.onFragLoading,this),e.off(u.FRAG_BUFFERED,this.onFragBuffered,this))}onInitPtsFound(e,{frag:t,id:n,initPTS:i,timescale:r,trackId:a}){if(n===f.MAIN){let e=t.cc,n=this.fragCurrent;if(this.initPTS[e]={baseTime:i,timescale:r,trackId:a},this.log(`InitPTS for cc: ${e}
273 found from main: ${i/r} (${i}/${r}) trackId: ${a}`),this.mainAnchor=t,this.state===io.WAITING_INIT_PTS){let n=this.waitingData;(n||this.loadingParts)&&(!n||n.frag.cc===e)||this.syncWithAnchor(t,null==n?void 0:n.frag)}else!this.hls.hasEnoughToStart&&n&&n.cc!==e?(n.abortRequests(),this.syncWithAnchor(t,n)):this.state===io.IDLE&&this.tick()}}getLoadPosition(){return!this.startFragRequested&&this.nextLoadPosition>=0?this.nextLoadPosition:super.getLoadPosition()}syncWithAnchor(e,t){var n;let i=(null==(n=this.mainFragLoading)?void 0:n.frag)||null;if(t&&(null==i?void 0:i.cc)===t.cc)return;let r=(i||e).cc,a=tC(this.getLevelDetails(),r,this.getLoadPosition());a&&(this.log(`Syncing with main frag at ${a.start} cc ${a.cc}`),this.startFragRequested=!1,this.nextLoadPosition=a.start,this.resetLoadingState(),this.state===io.IDLE&&this.doTickIdle())}startLoad(e,t){if(!this.levels){this.startPosition=e,this.state=io.STOPPED;return}let n=this.lastCurrentTime;this.stopLoad(),this.setInterval(r6),n>0&&-1===e?(this.log(`Override startPosition with lastCurrentTime @${n.toFixed(3)}`),e=n,this.state=io.IDLE):this.state=io.WAITING_TRACK,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}doTick(){switch(this.state){case io.IDLE:this.doTickIdle();break;case io.WAITING_TRACK:{let{levels:e,trackId:t}=this,n=null==e?void 0:e[t],i=null==n?void 0:n.details;if(i&&!this.waitForLive(n)){if(this.waitForCdnTuneIn(i))break;this.state=io.WAITING_INIT_PTS}break}case io.FRAG_LOADING_WAITING_RETRY:{var e;let t=performance.now(),n=this.retryDate;if(!n||t>=n||null!=(e=this.media)&&e.seeking){let{levels:e,trackId:t}=this;this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded((null==e?void 0:e[t])||null),this.state=io.IDLE}break}case io.WAITING_INIT_PTS:{let e=this.waitingData;if(e){let{frag:t,part:n,cache:i,complete:r}=e,a=this.mainAnchor;if(void 0!==this.initPTS[t.cc]){this.waitingData=null,this.state=io.FRAG_LOADING;let e={frag:t,part:n,payload:i.flush().buffer,networkDetails:null};this._handleFragmentLoadProgress(e),r&&super._handleFragmentLoadComplete(e)}else a&&a.cc!==e.frag.cc&&this.syncWithAnchor(a,e.frag)}else this.state=io.IDLE}}this.onTickEnd()}resetLoadingState(){let e=this.waitingData;e&&(this.fragmentTracker.removeFragment(e.frag),this.waitingData=null),super.resetLoadingState()}onTickEnd(){let{media:e}=this;null!=e&&e.readyState&&(this.lastCurrentTime=e.currentTime)}doTickIdle(){var e;let{hls:t,levels:n,media:i,trackId:r}=this,a=t.config;if(!this.buffering||!i&&!this.primaryPrefetch&&(this.startFragRequested||!a.startFragPrefetch)||!(null!=n&&n[r]))return;let s=n[r],o=s.details;if(!o||this.waitForLive(s)||this.waitForCdnTuneIn(o)){this.state=io.WAITING_TRACK,this.startFragRequested=!1;return}let l=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&l&&(this.bufferFlushed=!1,this.afterBufferFlushed(l,B.AUDIO,f.AUDIO));let c=this.getFwdBufferInfo(l,f.AUDIO);if(null===c)return;if(!this.switchingTrack&&this._streamEnded(c,o)){t.trigger(u.BUFFER_EOS,{type:"audio"}),this.state=io.ENDED;return}let d=c.len,h=t.maxBufferLength,p=o.fragments,m=p[0].start,g=this.getLoadPosition(),v=this.flushing?g:c.end;if(this.switchingTrack&&i){let e=g;o.PTSKnown&&e<m&&(c.end>m||c.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),i.currentTime=m+.05)}if(d>=h&&!this.switchingTrack&&v<p[p.length-1].start)return;let y=this.getNextFragment(v,o);if(y&&this.isLoopLoading(y,v)&&(y=this.getNextFragmentLoopLoading(y,o,c,f.MAIN,h)),!y){this.bufferFlushed=!0;return}let _=(null==(e=this.mainFragLoading)?void 0:e.frag)||null;if(!this.audioOnly&&this.startFragRequested&&_&&G(y)&&!y.endList&&(!o.live||!this.loadingParts&&v<this.hls.liveSyncPosition)&&(this.fragmentTracker.getState(_)===tk.OK&&(this.mainFragLoading=_=null),_&&G(_))){if(y.start>_.end){let e=this.fragmentTracker.getFragAtPos(v,f.MAIN);e&&e.end>_.end&&(_=e,this.mainFragLoading={frag:e,targetBufferTime:null})}if(y.start>_.end)return}this.loadFragment(y,s,v)}onMediaDetaching(e,t){this.bufferFlushed=this.flushing=!1,super.onMediaDetaching(e,t)}onAudioTracksUpdated(e,{audioTracks:t}){this.resetTransmuxer(),this.levels=t.map(e=>new e6(e))}onAudioTrackSwitching(e,t){let n=!!t.url;this.trackId=t.id;let{fragCurrent:i}=this;i&&(i.abortRequests(),this.removeUnbufferedFrags(i.start)),this.resetLoadingState(),n?(this.switchingTrack=t,this.flushAudioIfNeeded(t),this.state!==io.STOPPED&&(this.setInterval(r6),this.state=io.IDLE,this.tick())):(this.resetTransmuxer(),this.switchingTrack=null,this.bufferedTrack=t,this.clearInterval())}onManifestLoading(){super.onManifestLoading(),this.bufferFlushed=this.flushing=this.audioOnly=!1,this.resetItem(),this.trackId=-1}onLevelLoaded(e,t){this.mainDetails=t.details;let n=this.cachedTrackLoadedData;n&&(this.cachedTrackLoadedData=null,this.onAudioTrackLoaded(u.AUDIO_TRACK_LOADED,n))}onAudioTrackLoaded(e,t){var n,i;let{levels:r}=this,{details:a,id:s,groupId:o,track:l}=t;if(!r){this.warn(`Audio tracks reset while loading track ${s} "${l.name}" of "${o}"`);return}let c=this.mainDetails;if(!c||a.endCC>c.endCC||c.expired){this.cachedTrackLoadedData=t,this.state!==io.STOPPED&&(this.state=io.WAITING_TRACK);return}this.cachedTrackLoadedData=null,this.log(`Audio track ${s} "${l.name}" of "${o}" loaded [${a.startSN},${a.endSN}]${a.lastPartSn?`[part-${a.lastPartSn}-${a.lastPartIndex}]`:""},duration:${a.totalduration}`);let d=r[s],h=0;if(a.live||null!=(n=d.details)&&n.live){if(this.checkLiveUpdate(a),a.deltaUpdateFailed)return;d.details&&(h=this.alignPlaylists(a,d.details,null==(i=this.levelLastLoaded)?void 0:i.details)),a.alignedSliding||(ir(a,c),a.alignedSliding||ia(a,c),h=a.fragmentStart)}d.details=a,this.levelLastLoaded=d,this.startFragRequested||this.setStartPosition(c,h),this.hls.trigger(u.AUDIO_TRACK_UPDATED,{details:a,id:s,groupId:t.groupId}),this.state!==io.WAITING_TRACK||this.waitForCdnTuneIn(a)||(this.state=io.IDLE),this.tick()}_handleFragmentLoadProgress(e){var t;let n=e.frag,{part:i,payload:r}
273=e,{config:a,trackId:s,levels:o}=this;if(!o){this.warn(`Audio tracks were reset while fragment load was in progress. Fragment ${n.sn} of level ${n.level} will not be buffered`);return}let l=o[s];if(!l){this.warn("Audio track is undefined on fragment load progress");return}let u=l.details;if(!u){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(n.start);return}let c=a.defaultAudioCodec||l.audioCodec||"mp4a.40.2",d=this.transmuxer;d||(d=this.transmuxer=new r4(this.hls,f.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));let h=this.initPTS[n.cc],p=null==(t=n.initSegment)?void 0:t.data;if(void 0!==h){let e=!1,t=i?i.index:-1,a=-1!==t,s=new tJ(n.level,n.sn,n.stats.chunkCount,r.byteLength,t,a);d.push(r,p,c,"",n,i,u.totalduration,e,s,h)}else{this.log(`Unknown video PTS for cc ${n.cc}, waiting for video PTS before demuxing audio frag ${n.sn} of [${u.startSN} ,${u.endSN}],track ${s}`);let{cache:e}=this.waitingData=this.waitingData||{frag:n,part:i,cache:new ic,complete:!1};e.push(new Uint8Array(r)),this.state!==io.STOPPED&&(this.state=io.WAITING_INIT_PTS)}}_handleFragmentLoadComplete(e){if(this.waitingData){this.waitingData.complete=!0;return}super._handleFragmentLoadComplete(e)}onBufferReset(){this.mediaBuffer=null}onBufferCreated(e,t){this.bufferFlushed=this.flushing=!1;let n=t.tracks.audio;n&&(this.mediaBuffer=n.buffer||null)}onFragLoading(e,t){!this.audioOnly&&t.frag.type===f.MAIN&&G(t.frag)&&(this.mainFragLoading=t,this.state===io.IDLE&&this.tick())}onFragBuffered(e,t){let{frag:n,part:i}=t;if(n.type!==f.AUDIO){this.audioOnly||n.type!==f.MAIN||n.elementaryStreams.video||n.elementaryStreams.audiovideo||(this.audioOnly=!0,this.mainFragLoading=null);return}if(this.fragContextChanged(n)){this.warn(`Fragment ${n.sn}${i?" p: "+i.index:""} of level ${n.level} finished buffering, but was aborted. state: ${this.state}, audioSwitch: ${this.switchingTrack?this.switchingTrack.name:"false"}`);return}if(G(n)){this.fragPrevious=n;let e=this.switchingTrack;e&&(this.bufferedTrack=e,this.switchingTrack=null,this.hls.trigger(u.AUDIO_TRACK_SWITCHED,_({},e)))}this.fragBufferedComplete(n,i),this.media&&this.tick()}onError(e,t){var n;if(t.fatal){this.state=io.ERROR;return}switch(t.details){case l.FRAG_GAP:case l.FRAG_PARSING_ERROR:case l.FRAG_DECRYPT_ERROR:case l.FRAG_LOAD_ERROR:case l.FRAG_LOAD_TIMEOUT:case l.KEY_LOAD_ERROR:case l.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(f.AUDIO,t);break;case l.AUDIO_TRACK_LOAD_ERROR:case l.AUDIO_TRACK_LOAD_TIMEOUT:case l.LEVEL_PARSING_ERROR:t.levelRetry||this.state!==io.WAITING_TRACK||(null==(n=t.context)?void 0:n.type)!==h.AUDIO_TRACK||(this.state=io.IDLE);break;case l.BUFFER_ADD_CODEC_ERROR:case l.BUFFER_APPEND_ERROR:if("audio"!==t.parent)return;this.reduceLengthAndFlushBuffer(t)||this.resetLoadingState();break;case l.BUFFER_FULL_ERROR:if("audio"!==t.parent)return;this.reduceLengthAndFlushBuffer(t)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case l.INTERNAL_EXCEPTION:this.recoverWorkerError(t)}}onBufferFlushing(e,{type:t}){t!==B.VIDEO&&(this.flushing=!0)}onBufferFlushed(e,{type:t}){if(t!==B.VIDEO){this.flushing=!1,this.bufferFlushed=!0,this.state===io.ENDED&&(this.state=io.IDLE);let e=this.mediaBuffer||this.media;e&&(this.afterBufferFlushed(e,t,f.AUDIO),this.tick())}}_handleTransmuxComplete(e){var t;let n="audio",{hls:i}=this,{remuxResult:r,chunkMeta:a}=e,s=this.getCurrentContext(a);if(!s){this.resetWhenMissingContext(a);return}let{frag:o,part:l,level:c}=s,{details:d}=c,{audio:h,text:f,id3:p,initSegment:m}=r;if(this.fragContextChanged(o)||!d){this.fragmentTracker.removeFragment(o);return}if(this.state=io.PARSING,this.switchingTrack&&h&&this.completeAudioSwitch(this.switchingTrack),null!=m&&m.tracks){let e=o.initSegment||o;if(this.unhandledEncryptionError(m,o))return;this._bufferInitSegment(c,m.tracks,e,a),i.trigger(u.FRAG_PARSING_INIT_SEGMENT,{frag:e,id:n,tracks:m.tracks})}if(h){let{startPTS:e,endPTS:t,startDTS:n,endDTS:i}=h;l&&(l.elementaryStreams[B.AUDIO]={startPTS:e,endPTS:t,startDTS:n,endDTS:i}
273),o.setElementaryStreamInfo(B.AUDIO,e,t,n,i),this.bufferFragmentData(h,o,l,a)}if(null!=p&&null!=(t=p.samples)&&t.length){let e=v({id:n,frag:o,details:d},p);i.trigger(u.FRAG_PARSING_METADATA,e)}if(f){let e=v({id:n,frag:o,details:d},f);i.trigger(u.FRAG_PARSING_USERDATA,e)}}_bufferInitSegment(e,t,n,i){if(this.state!==io.PARSING||(t.video&&delete t.video,t.audiovideo&&delete t.audiovideo,!t.audio))return;let r=t.audio;r.id=f.AUDIO;let a=e.audioCodec;this.log(`Init audio buffer, container:${r.container}, codecs[level/parsed]=[${a}/${r.codec}]`),a&&1===a.split(",").length&&(r.levelCodec=a),this.hls.trigger(u.BUFFER_CODECS,t);let s=r.initSegment;if(null!=s&&s.byteLength){let e={type:"audio",frag:n,part:null,chunkMeta:i,parent:n.type,data:s};this.hls.trigger(u.BUFFER_APPENDING,e)}this.tickImmediate()}loadFragment(e,t,n){let i=this.fragmentTracker.getState(e);if(this.switchingTrack||i===tk.NOT_LOADED||i===tk.PARTIAL){var r;if(G(e)){if(null!=(r=t.details)&&r.live&&!this.initPTS[e.cc]){this.log(`Waiting for video PTS in continuity counter ${e.cc} of live stream before loading audio fragment ${e.sn} of level ${this.trackId}`),this.state=io.WAITING_INIT_PTS;let n=this.mainDetails;n&&n.fragmentStart!==t.details.fragmentStart&&ia(t.details,n)}else super.loadFragment(e,t,n)}else this._loadInitSegment(e,t)}else this.clearTrackerIfNeeded(e)}flushAudioIfNeeded(e){if(this.media&&this.bufferedTrack){let{name:t,lang:n,assocLang:i,characteristics:r,audioCodec:a,channels:s}=this.bufferedTrack;tl({name:t,lang:n,assocLang:i,characteristics:r,audioCodec:a,channels:s},e,td)||(tp(e.url,this.hls)?(this.log("Switching audio track : flushing all audio"),super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"),this.bufferedTrack=null):this.bufferedTrack=e)}}completeAudioSwitch(e){let{hls:t}=this;this.flushAudioIfNeeded(e),this.bufferedTrack=e,this.switchingTrack=null,t.trigger(u.AUDIO_TRACK_SWITCHED,_({},e))}}class r7 extends C{constructor(e,t){super(t,e.logger),this.hls=void 0,this.canLoad=!1,this.timer=-1,this.hls=e}destroy(){this.clearTimer(),this.hls=this.log=this.warn=null}clearTimer(){-1!==this.timer&&(self.clearTimeout(this.timer),this.timer=-1)}startLoad(){this.canLoad=!0,this.loadPlaylist()}stopLoad(){this.canLoad=!1,this.clearTimer()}switchParams(e,t,n){let i=null==t?void 0:t.renditionReports;if(i){let r=-1;for(let n=0;n<i.length;n++){let a;let s=i[n];try{a=new self.URL(s.URI,t.url).href}catch(e){this.warn(`Could not construct new URL for Rendition Report: ${e}`),a=s.URI||""}if(a===e){r=n;break}a===e.substring(0,a.length)&&(r=n)}if(-1!==r){let e=i[r],a=parseInt(e["LAST-MSN"])||t.lastPartSn,s=parseInt(e["LAST-PART"])||t.lastPartIndex;if(this.hls.config.lowLatencyMode){let e=Math.min(t.age-t.partTarget,t.targetduration);s>=0&&e>t.partTarget&&(s+=1)}return new e4(a,s>=0?s:void 0,n&&e5(n))}}}loadPlaylist(e){this.clearTimer()}loadingPlaylist(e,t){this.clearTimer()}shouldLoadPlaylist(e){return this.canLoad&&!!e&&!!e.url&&(!e.details||e.details.live)}getUrlWithDirectives(e,t){if(t)try{return t.addDirectives(e)}catch(e){this.warn(`Could not construct new URL with HLS Delivery Directives: ${e}`)}return e}playlistLoaded(e,t,n){let{details:i,stats:r}=t,a=self.performance.now(),s=r.loading.first?Math.max(0,a-r.loading.first):0;i.advancedDateTime=Date.now()-s;let c=this.hls.config.timelineOffset;if(c!==i.appliedTimelineOffset){let e=Math.max(c||0,0);i.appliedTimelineOffset=e,i.fragments.forEach(t=>{t.setStart(t.playlistOffset+e)})}if(i.live||null!=n&&n.live){let c,h,f;let p="levelInfo"in t?t.levelInfo:t.track;if(i.reloaded(n),n&&i.fragments.length>0){nZ(n,i,this);let e=i.playlistParsingError;if(e){this.warn(e);let n=this.hls;if(!n.config.ignorePlaylistParsingErrors){var d;let{networkDetails:a}=t;n.trigger(u.ERROR,{type:o.NETWORK_ERROR,details:l.LEVEL_PARSING_ERROR,fatal:!1,url:i.url,error:e,reason:e.message,level:t.level||void 0,parent:null==(d=i.fragments[0])?void 0:d.type,networkDetails:a,stats:r});return}i.playlistParsingError=null}}-1===i.requestScheduled&&(i.requestScheduled=r.loading.start);let m=this.hls.mainForwardBufferInfo,g=m?m.end-m.len:0,v=(i.edge-g)*1e3,y=n1(i,v);if(i.requestScheduled+y<a?i.requestScheduled=a:i.requestScheduled+=y,this.log(`live playlist ${e} ${i.advanced?"REFRESHED "+i.lastPartSn+"-"+i.lastPartIndex:i.updated?"UPDATED":"MISSED"}`),!this.canLoad||!i.live)return;if(i.canBlockReload&&i.endSN&&i.advanced){let e=this.hls.config.lowLatencyMode,r=i.lastPartSn,s=i.endSN,o=i.lastPartIndex,l=r===s;-1!==o?l?(h=s+1,f=e?0:o):(h=r,f=e?o+1:i.maxPartIndex):h=s+1;let u=i.age,d=u+i.ageHeader,m=Math.min(d-i.partTarget,1.5*i.targetduration);if(m>0){if(d>3*i.targetduration)this.log(`Playlist last advanced ${u.toFixed(2)}s ago. Omitting segment and part directives.`),h=void 0,f=void 0;else if(null!=n&&n.tuneInGoal&&d-i.partTarget>n.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${n.tuneInGoal} to: ${m} with playlist age: ${i.age}`),m=0;else{let e=Math.floor(m/i.targetduration);h+=e,void 0!==f&&(f+=Math.round(m%i.targetduration/i.partTarget)),this.log(`CDN Tune-in age: ${i.ageHeader}s last advanced ${u.toFixed(2)}s goal: ${m} skip sn ${e} to part ${f}`)}i.tuneInGoal=m}if(c=this.getDeliveryDirectives(i,t.deliveryDirectives,h,f),e||!l){i.requestScheduled=a,this.loadingPlaylist(p,c);return}}else(i.canBlockReload||i.canSkipUntil)&&(c=this.getDeliveryDirectives(i,t.deliveryDirectives,h,f));c&&void 0!==h&&i.canBlockReload&&(i.requestScheduled=r.loading.first+Math.max(y-2*s,y/2)),this.scheduleLo
273ading(p,c,i)}else this.clearTimer()}scheduleLoading(e,t,n){let i=n||e.details;if(!i){this.loadingPlaylist(e,t);return}let r=self.performance.now(),a=i.requestScheduled;if(r>=a){this.loadingPlaylist(e,t);return}let s=a-r;this.log(`reload live playlist ${e.name||e.bitrate+"bps"} in ${Math.round(s)} ms`),this.clearTimer(),this.timer=self.setTimeout(()=>this.loadingPlaylist(e,t),s)}getDeliveryDirectives(e,t,n,i){let r=e5(e);return null!=t&&t.skip&&e.deltaUpdateFailed&&(n=t.msn,i=t.part,r=e3.No),new e4(n,i,r)}checkRetry(e){let t=e.details,n=tE(e),i=e.errorAction,{action:r,retryCount:a=0,retryConfig:s}=i||{},o=!!i&&!!s&&(r===tM.RetryRequest||!i.resolved&&r===tM.SendAlternateToPenaltyBox);if(o){var l;if(a>=s.maxNumRetry)return!1;if(n&&null!=(l=e.context)&&l.deliveryDirectives)this.warn(`Retrying playlist loading ${a+1}/${s.maxNumRetry} after "${t}" without delivery-directives`),this.loadPlaylist();else{let e=tT(s,a);this.clearTimer(),this.timer=self.setTimeout(()=>this.loadPlaylist(),e),this.warn(`Retrying playlist loading ${a+1}/${s.maxNumRetry} after "${t}" in ${e}ms`)}e.levelRetry=!0,i.resolved=!0}return o}}function r9(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!ae(e[n].attrs,t[n].attrs))return!1;return!0}function ae(e,t,n){let i=e["STABLE-RENDITION-ID"];return i&&!n?i===t["STABLE-RENDITION-ID"]:!(n||["LANGUAGE","NAME","CHARACTERISTICS","AUTOSELECT","DEFAULT","FORCED","ASSOC-LANGUAGE"]).some(n=>e[n]!==t[n])}function at(e,t){return t.label.toLowerCase()===e.name.toLowerCase()&&(!t.language||t.language.toLowerCase()===(e.lang||"").toLowerCase())}class an extends r7{constructor(e){super(e,"audio-track-controller"),this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.registerListeners()}registerListeners(){let{hls:e}=this;e.on(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.MANIFEST_PARSED,this.onManifestParsed,this),e.on(u.LEVEL_LOADING,this.onLevelLoading,this),e.on(u.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(u.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(u.ERROR,this.onError,this)}unregisterListeners(){let{hls:e}=this;e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.MANIFEST_PARSED,this.onManifestParsed,this),e.off(u.LEVEL_LOADING,this.onLevelLoading,this),e.off(u.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(u.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(u.ERROR,this.onError,this)}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,super.destroy()}onManifestLoading(){this.tracks=[],this.tracksInGroup=[],this.groupIds=null,this.currentTrack=null,this.trackId=-1,this.selectDefaultTrack=!0}onManifestParsed(e,t){this.tracks=t.audioTracks||[]}onAudioTrackLoaded(e,t){let{id:n,groupId:i,details:r}=t,a=this.tracksInGroup[n];if(!a||a.groupId!==i){this.warn(`Audio track with id:${n} and group:${i} not found in active group ${null==a?void 0:a.groupId}`);return}let s=a.details;a.details=t.details,this.log(`Audio track ${n} "${a.name}" lang:${a.lang} group:${i} loaded [${r.startSN}-${r.endSN}]`),n===this.trackId&&this.playlistLoaded(n,t,s)}onLevelLoading(e,t){this.switchLevel(t.level)}onLevelSwitching(e,t){this.switchLevel(t.level)}switchLevel(e){let t=this.hls.levels[e];if(!t)return;let n=t.audioGroups||null,i=this.groupIds,r=this.currentTrack;if(!n||(null==i?void 0:i.length)!==(null==n?void 0:n.length)||null!=n&&n.some(e=>(null==i?void 0:i.indexOf(e))===-1)){this.groupIds=n,this.trackId=-1,this.currentTrack=null;let e=this.tracks.filter(e=>!n||-1!==n.indexOf(e.groupId));if(e.length)this.selectDefaultTrack&&!e.some(e=>e.default)&&(this.selectDefaultTrack=!1),e.forEach((e,t)=>{e.id=t});else if(!r&&!this.tracksInGroup.length)return;this.tracksInGroup=e;let t=this.hls.config.audioPreference;if(!r&&t){let n=to(t,e,td);if(n>-1)r=e[n];else{let e=to(t,this.tracks);r=this.tracks[e]}}let i=this.findTrackId(r);-1===i&&r&&(i=this.findTrackId(null));let s={audioTracks:e};this.log(`Updating audio tracks, ${e.length} track(s) found in group(s): ${null==n?void 0:n.join(",")}`),this.hls.trigger(u.AUDIO_TRACKS_UPDATED,s);let c=this.trackId;if(-1!==i&&-1===c)this.setAudioTrack(i);else if(e.length&&-1===c){var a;let t=Error(`No audio track selected for current audio group-ID(s): ${null==(a=this.groupIds)?void 0:a.join(",")} track count: ${e.length}`);this.warn(t.message),this.hls.trigger(u.ERROR,{type:o.MEDIA_ERROR,details:l.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:t})}}}onError(e,t){!t.fatal&&t.context&&(t.context.type!==h.AUDIO_TRACK||t.context.
273id!==this.trackId||this.groupIds&&-1===this.groupIds.indexOf(t.context.groupId)||this.checkRetry(t))}get allAudioTracks(){return this.tracks}get audioTracks(){return this.tracksInGroup}get audioTrack(){return this.trackId}set audioTrack(e){this.selectDefaultTrack=!1,this.setAudioTrack(e)}setAudioOption(e){let t=this.hls;if(t.config.audioPreference=e,e){let n=this.allAudioTracks;if(this.selectDefaultTrack=!1,n.length){let i=this.currentTrack;if(i&&tl(e,i,td))return i;let r=to(e,this.tracksInGroup,td);if(r>-1){let e=this.tracksInGroup[r];return this.setAudioTrack(r),e}if(i){let i=t.loadLevel;-1===i&&(i=t.firstAutoLevel);let r=th(e,t.levels,n,i,td);if(-1===r)return null;t.nextLoadLevel=r}if(e.channels||e.audioCodec){let t=to(e,n);if(t>-1)return n[t]}}}return null}setAudioTrack(e){let t=this.tracksInGroup;if(e<0||e>=t.length){this.warn(`Invalid audio track id: ${e}`);return}this.selectDefaultTrack=!1;let n=this.currentTrack,i=t[e],r=i.details&&!i.details.live;if(e===this.trackId&&i===n&&r||(this.log(`Switching to audio-track ${e} "${i.name}" lang:${i.lang} group:${i.groupId} channels:${i.channels}`),this.trackId=e,this.currentTrack=i,this.hls.trigger(u.AUDIO_TRACK_SWITCHING,_({},i)),r))return;let a=this.switchParams(i.url,null==n?void 0:n.details,i.details);this.loadPlaylist(a)}findTrackId(e){let t=this.tracksInGroup;for(let n=0;n<t.length;n++){let i=t[n];if((!this.selectDefaultTrack||i.default)&&(!e||tl(e,i,td)))return n}if(e){let{name:n,lang:i,assocLang:r,characteristics:a,audioCodec:s,channels:o}=e;for(let e=0;e<t.length;e++)if(tl({name:n,lang:i,assocLang:r,characteristics:a,audioCodec:s,channels:o},t[e],td))return e;for(let n=0;n<t.length;n++){let i=t[n];if(ae(e.attrs,i.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return n}for(let n=0;n<t.length;n++){let i=t[n];if(ae(e.attrs,i.attrs,["LANGUAGE"]))return n}}return -1}loadPlaylist(e){super.loadPlaylist();let t=this.currentTrack;this.shouldLoadPlaylist(t)&&tp(t.url,this.hls)&&this.scheduleLoading(t,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);let n=e.id,i=e.groupId,r=this.getUrlWithDirectives(e.url,t),a=e.details,s=null==a?void 0:a.age;this.log(`Loading audio-track ${n} "${e.name}" lang:${e.lang} group:${i}${(null==t?void 0:t.msn)!==void 0?" at sn "+t.msn+" part "+t.part:""}${s&&a.live?" age "+s.toFixed(1)+(a.type?" "+a.type:""):""} ${r}`),this.hls.trigger(u.AUDIO_TRACK_LOADING,{url:r,id:n,groupId:i,deliveryDirectives:t||null,track:e})}}class ai{constructor(e){this.tracks=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.tracks=e}destroy(){this.tracks=this.queues=null}append(e,t,n){if(null===this.queues||null===this.tracks)return;let i=this.queues[t];i.push(e),1!==i.length||n||this.executeNext(t)}appendBlocker(e){return new Promise(t=>{let n={label:"async-blocker",execute:t,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.append(n,e)})}prependBlocker(e){return new Promise(t=>{if(this.queues){let n={label:"async-blocker-prepend",execute:t,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.queues[e].unshift(n)}})}removeBlockers(){null!==this.queues&&[this.queues.video,this.queues.audio,this.queues.audiovideo].forEach(e=>{var t;let n=null==(t=e[0])?void 0:t.label;("async-blocker"===n||"async-blocker-prepend"===n)&&(e[0].execute(),e.splice(0,1))})}unblockAudio(e){null!==this.queues&&this.queues.audio[0]===e&&this.shiftAndExecuteNext("audio")}executeNext(e){if(null===this.queues||null===this.tracks)return;let t=this.queues[e];if(t.length){let i=t[0];try{i.execute()}catch(r){var n;if(i.onError(r),null===this.queues||null===this.tracks)return;let t=null==(n=this.tracks[e])?void 0:n.buffer;null!=t&&t.updating||this.shiftAndExecuteNext(e)}}}shiftAndExecuteNext(e){null!==this.queues&&(this.queues[e].shift(),this.executeNext(e))}current(e){var t;return(null==(t=this.queues)?void 0:t[e][0])||null}toString(){let{queues:e,tracks:t}=this;return null===e||null===t?"<destroyed>":` 274${this.list("video")} 275${this.list("audio")} 276${this.list("audiovideo")}}`}list(e){var t,n;return null!=(t=this.queues)&&t[e]||null!=(n=this.tracks)&&n[e]?`${e}: (${this.listSbInfo(e)}) ${this.listOps(e)}`:""}listSbInfo(e){var t;let n=null==(t=this.tracks)?void 0:t[e],i=null==n?void 0:n.buffer;return i?`SourceBuffer${i.updating?" updating":""}${n.ended?" ended":""}${n.ending?" ending":""}`:"none"}listOps(e){var t;return(null==(t=this.queues)?void 0:t[e].map(e=>e.label).join(", "))||""}}let ar=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/,aa="HlsJsTrackRemovedError";
276class as extends Error{constructor(e){super(e),this.name=aa}}class ao extends C{constructor(e,t){super("buffer-controller",e.logger),this.hls=void 0,this.fragmentTracker=void 0,this.details=null,this._objectUrl=null,this.operationQueue=null,this.bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.blockedAudioAppend=null,this.lastVideoAppendEnd=0,this.appendSource=void 0,this.transferData=void 0,this.overrides=void 0,this.appendErrors={audio:0,video:0,audiovideo:0},this.tracks={},this.sourceBuffers=[[null,null],[null,null]],this._onEndStreaming=e=>{var t;this.hls&&(null==(t=this.mediaSource)?void 0:t.readyState)==="open"&&this.hls.pauseBuffering()},this._onStartStreaming=e=>{this.hls&&this.hls.resumeBuffering()},this._onMediaSourceOpen=e=>{let{media:t,mediaSource:n}=this;e&&this.log("Media source opened"),t&&n&&(n.removeEventListener("sourceopen",this._onMediaSourceOpen),t.removeEventListener("emptied",this._onMediaEmptied),this.updateDuration(),this.hls.trigger(u.MEDIA_ATTACHED,{media:t,mediaSource:n}),null!==this.mediaSource&&this.checkPendingTracks())},this._onMediaSourceClose=()=>{this.log("Media source closed")},this._onMediaSourceEnded=()=>{this.log("Media source ended")},this._onMediaEmptied=()=>{let{mediaSrc:e,_objectUrl:t}=this;e!==t&&this.error(`Media element src was set while attaching MediaSource (${t} > ${e})`)},this.hls=e,this.fragmentTracker=t,this.appendSource=R(I(e.config.preferManagedMediaSource)),this.initTracks(),this.registerListeners()}hasSourceTypes(){return Object.keys(this.tracks).length>0}destroy(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=this.blockedAudioAppend=null,this.transferData=this.overrides=void 0,this.operationQueue&&(this.operationQueue.destroy(),this.operationQueue=null),this.hls=this.fragmentTracker=null,this._onMediaSourceOpen=this._onMediaSourceClose=null,this._onMediaSourceEnded=null,this._onStartStreaming=this._onEndStreaming=null}registerListeners(){let{hls:e}=this;
vendor: 4,549 bytes, lines 276-278
276e.on(u.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.MANIFEST_PARSED,this.onManifestParsed,this),e.on(u.BUFFER_RESET,this.onBufferReset,this),e.on(u.BUFFER_APPENDING,this.onBufferAppending,this),e.on(u.BUFFER_CODECS,this.onBufferCodecs,this),e.on(u.BUFFER_EOS,this.onBufferEos,this),e.on(u.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(u.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(u.FRAG_PARSED,this.onFragParsed,this),e.on(u.FRAG_CHANGED,this.onFragChanged,this),e.on(u.ERROR,this.onError,this)}unregisterListeners(){let{hls:e}=this;e.off(u.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.MANIFEST_PARSED,this.onManifestParsed,this),e.off(u.BUFFER_RESET,this.onBufferReset,this),e.off(u.BUFFER_APPENDING,this.onBufferAppending,this),e.off(u.BUFFER_CODECS,this.onBufferCodecs,this),e.off(u.BUFFER_EOS,this.onBufferEos,this),e.off(u.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(u.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(u.FRAG_PARSED,this.onFragParsed,this),e.off(u.FRAG_CHANGED,this.onFragChanged,this),e.off(u.ERROR,this.onError,this)}transferMedia(){let{media:e,mediaSource:t}=this;if(!e)return null;let n={};if(this.operationQueue){let e=this.isUpdating();e||this.operationQueue.removeBlockers();let t=this.isQueued();(e||t)&&this.warn(`Transfering MediaSource with${t?" operations in queue":""}${e?" updating SourceBuffer(s)":""} ${this.operationQueue}`),this.operationQueue.destroy()}let i=this.transferData;return!this.sourceBufferCount&&i&&i.mediaSource===t?v(n,i.tracks):this.sourceBuffers.forEach(e=>{let[t]=e;t&&(n[t]=v({},this.tracks[t]),this.removeBuffer(t)),e[0]=e[1]=null}),{media:e,mediaSource:t,tracks:n}}initTracks(){let e={};this.sourceBuffers=[[null,null],[null,null]],this.tracks=e,this.resetQueue(),this.resetAppendErrors(),this.lastMpegAudioChunk=this.blockedAudioAppend=null,this.lastVideoAppendEnd=0}onManifestLoading(){this.bufferCodecEventsTotal=0,this.details=null}onManifestParsed(e,t){var n;let i=2;(!t.audio||t.video)&&t.altAudio||(i=1),this.bufferCodecEventsTotal=i,this.log(`${i} bufferCodec event(s) expected.`),null!=(n=this.transferData)&&n.mediaSource&&this.sourceBufferCount&&i&&this.bufferCreated()}onMediaAttaching(e,t){let n=this.media=t.media;this.transferData=this.overrides=void 0;let i=I(this.appendSource);if(i){let e=!!t.mediaSource;(e||t.overrides)&&(this.transferData=t,this.overrides=t.overrides);let r=this.mediaSource=t.mediaSource||new i;if(this.assignMediaSource(r),e)this._objectUrl=n.src,this.attachTransferred();else{let e=this._objectUrl=self.URL.createObjectURL(r);if(this.appendSource)try{n.removeAttribute("src");let t=self.ManagedMediaSource;n.disableRemotePlayback=n.disableRemotePlayback||t&&r instanceof t,al(n),au(n,e),n.load()}catch(t){n.src=e}else n.src=e}n.addEventListener("emptied",this._onMediaEmptied)}}assignMediaSource(e){var t,n;this.log(`${(null==(t=this.transferData)?void 0:t.mediaSource)===e?"transferred":"created"} media source: ${null==(n=e.constructor)?void 0:n.name}`),e.addEventListener("sourceopen",this._onMediaSourceOpen),e.addEventListener("sourceended",this._onMediaSourceEnded),e.addEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(e.addEventListener("startstreaming",this._onStartStreaming),e.addEventListener("endstreaming",this._onEndStreaming))}attachTransferred(){let e=this.media,t=this.transferData;if(!t||!e)return;let n=this.tracks,i=t.tracks,r=i?Object.keys(i):null,a=r?r.length:0,s=()=>{Promise.resolve().then(()=>{this.media&&this.mediaSourceOpenOrEnded&&this._onMediaSourceOpen()})};if(i&&r&&a){if(!this.tracksReady){this.hls.config.startFragPrefetch=!0,this.log("attachTransferred: waiting for SourceBuffer track info");return}if(this.log(`attachTransferred: (bufferCodecEventsTotal ${this.bufferCodecEventsTotal}) 277required tracks: ${tt(n,(e,t)=>"initSegment"===e?void 0:t)}; 278transfer tracks: ${tt(i,(e,t)=>"initSegment"===e?void 0:t)}}`),!k(i,n)){t.mediaSource=null,t.tracks=void 0;let r=e.currentTime,a=this.details,s=Math.max(r,(null==a?void 0:a.fragments[0].start)||0);if(s-r>1){this.log(`attachTransferred: waiting for playback to reach new tracks start time ${r} -> ${s}`);return}this.warn(`attachTransferred: resetting MediaSource for incompatible tracks ("${Object.keys(i)}"->"${Object.keys(n)}") start time: ${s} currentTime: ${r}`),this.onMediaDetaching(u.MEDIA_DETACHING,{}
278),this.onMediaAttaching(u.MEDIA_ATTACHING,t),e.currentTime=s;return}this.transferData=void 0,r.forEach(e=>{let t=e,n=i[t];if(n){let e=n.buffer;if(e){let i=this.fragmentTracker,r=n.id;if(i.hasFragments(r)||i.hasParts(r)){let n=t2.getBuffered(e);i.detectEvictedFragments(t,n,r,null,!0)}let a=ac(t),s=[t,e];this.sourceBuffers[a]=s,e.updating&&this.operationQueue&&this.operationQueue.prependBlocker(t),this.trackSourceBuffer(t,n)}}}),s(),this.bufferCreated()}else this.log("attachTransferred: MediaSource w/o SourceBuffers"),s()}get mediaSourceOpenOrEnded(){var e;let t=null==(e=this.mediaSource)?void 0:e.readyState;return"open"===t||"ended"===t}onMediaDetaching(e,t){let n=!!t.transferMedia;this.transferData=this.overrides=void 0;let{media:i,mediaSource:r,_objectUrl:a}=this;if(r){if(this.log(`media source ${n?"transferring":"detaching"}`),n)this.sourceBuffers.forEach(([e])=>{e&&this.removeBuffer(e)}),this.resetQueue();else{if(this.mediaSourceOpenOrEnded){let e="open"===r.readyState;try{let t=r.sourceBuffers;for(let n=t.length;n--;)e&&t[n].abort(),r.removeSourceBuffer(t[n]);e&&r.endOfStream()}catch(e){this.warn(`onMediaDetaching: ${e.message} while calling endOfStream`)}}this.sourceBufferCount&&this.onBufferReset()}r.removeEventListener("sourceopen",this._onMediaSourceOpen),r.removeEventListener("sourceended",this._onMediaSourceEnded),r.removeEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(r.removeEventListener("startstreaming",this._onStartStreaming),r.removeEventListener("endstreaming",this._onEndStreaming)),this.mediaSource=null,this._objectUrl=null}i&&(i.removeEventListener("emptied",this._onMediaEmptied),n||(a&&self.URL.revokeObjectURL(a),this.mediaSrc===a?(i.removeAttribute("src"),this.appendSource&&al(i),i.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.media=null),this.hls.trigger(u.MEDIA_DETACHED,t)}onBufferReset(){this.sourceBuffers.forEach(([e])=>{e&&this.resetBuffer(e)}),this.initTracks()}resetBuffer(e){var t,n;let i=null==(t=this.tracks[e])?void 0:t.buffer;if(this.removeBuffer(e),i)try{null!=(n=this.mediaSource)&&n.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(i)}catch(t){this.warn(`onBufferReset ${e}`,t)}delete this.tracks[e]}removeBuffer(e){this.removeBufferListeners(e),this.sourceBuffers[ac(e)]=[null,null];let t=this.tracks[e];t&&(t.buffer=void 0)}resetQueue(){this.operationQueue&&this.operationQueue.destroy(),this.operationQueue=new ai(this.tracks)}onBufferCodecs(e,t){let n=this.tracks,i=Object.keys(t);this.log(`BUFFER_CODECS: "${i}" (current SB count ${this.sourceBufferCount})`);let r="audiovideo"in t&&(n.audio||n.video)||n.audiovideo&&("audio"in t||"video"in t),a=!r&&this.sourceBufferCount&&this.media&&i.some(e=>!n[e]);if(r||a){this.warn(`Unsupported transition between "${Object.keys(n)}" and "${i}" SourceBuffers`);return}i.forEach(e=>{var i,r;let{id:a,codec:s,levelCodec:o,container:l,metadata:u,supplemental:c}=t[e],d=n[e],h=null==(i=this.transferData)||null==(i=i.tracks)?void 0:i[e],f=null!=h&&h.buffer?h:d,p=(null==f?void 0:f.pendingCodec)||(null==f?void 0:f.codec),m=null==f?void 0:f.levelCodec;d||(d=n[e]={buffer:void 0,listeners:[],codec:s,supplemental:c,container:l,levelCodec:o,metadata:u,id:a});let g=ej(p,m),v=null==g?void 0:g.replace(ar,"$1"),y=ej(s,o),_=null==(r=y)?void 0:r.replace(ar,"$1");y&&g&&v!==_&&("audio"===e.slice(0,5)&&(y=eF(y,this.appendSource)),this.log(`switching codec ${p} to ${y}`),y!==(d.pendingCodec||d.codec)&&(d.pendingCodec=y),d.container=l,this.appendChangeType(e,l,y))}),(this.tracksReady||this.sourceBufferCount)&&(t.tracks=this.sourceBufferTracks),!this.sourceBufferCount&&this.mediaSourceOpenOrEnded&&this.checkPendingTracks()}get sourceBufferTracks(){return Object.keys(this.tracks).reduce((e,t)=>{let n=this.tracks[t];return e[t]={id:n.id,container:n.container,codec:n.codec,levelCodec:n.levelCodec},e},{})}appendChangeType(e,t,n){let i=`${t};codecs=${n}`,r={label:`change-type=${i}`,execute:()=>{let r=this.tracks[e];if(r){let a=r.buffer;null!=a&&a.changeType&&(this.log(`changing ${e} sourceBuffer type to ${i}`),a.changeType(i),r.codec=n,r.container=t)}this.shiftAndExecuteNext(e)},onStart:()=>{},onComplete:()=>{},onError:t=>{this.warn(`Failed to change ${e} SourceBuffer type`,t)}};this.append(r,e,this.isPending(this.tracks[e]))}blockAudio(e){var t;let n=e.start,i=n+.05*e.duration;if((null==(t=this.fragmentTracker.getAppendedFrag(n,f.MAIN))?void 0:t.gap)===!0)return;let r={label:"block-audio",execute:()=>{var e;let t=this.tracks.video;(this.lastVideoAppendEnd>i||null!=t&&t.buffer&&t2.isBuffered(t.buffer,i)||(null==(e=this.fragmentTracker.getAppendedFrag(i,f.MAIN))?void 0:e.gap)===!0)&&(this.blockedAudioAppend=null,this.shiftAndExecuteNext("audio"))},onStart:()=>{},onComplete:()=>{},onError:e=>{this.warn("Error executing block-audio operation",e)}};this.blockedAudioAppend={op:r,frag:e},this.append(r,"audio",!0)}unblockAudio(){let{blockedAudioAppend:e,operationQueue:t}=this;e&&t&&(this.blockedAudioAppend=null,t.unblockAudio(e.op))}onBufferAppending(e,t){let{tracks:n}=this,{data:i,type:a,parent:s,frag:c,part:d,chunkMeta:h,offset:f}=t,p=h.buffering[a],{sn:m,cc:g}=c,v=self.performance.now();p.start=v;let y=c.stats.buffering,_=d?d.stats.buffering:null;0===y.start&&(y.start=v),_&&0===_.start&&(_.start=v);let b=n.audio,x=!1;"audio"===a&&(null==b?void 0:b.container)==="audio/mpeg"&&(x=!this.lastMpegAudioChunk||1===h.id||this.lastMpegAudioChunk.sn!==h.sn,this.lastMpegAudioChunk=h);let C=n.video,E=null==C?void 0:C.buffer;if(E&&"initSegment"!==m){let e=d||c,t=this.blockedAudioAppend;if("audio"!==a||"main"===s||this.blockedAudioAppend||C.ending||C.ended){if("video"===a){let n=e.end;if(t){let e=t.frag.start;(n>e||n<this.lastVideoAppendEnd||t2.isBuffered(E,e))&&this.unblockAudio()}this.lastVideoAppendEnd=n}}else{let t=e.start+.05*e.duration,n=E.buffered,i=this.currentOp("video");(n.length||i)&&(i||t2.isBuffered(E,t)||!(this.lastVideoAppendEnd<t))||this.blockAudio(e)}}let w=(d||c).start,T={label:`append-${a}`,execute:()=>{var e;p.executeStart=self.performance.now();let t=null==(e=this.tracks[a])?void 0:e.buffer;t&&(x?this.updateTimestampOffset(t,w,.1,a,m,g):void 0!==f&&r(f)&&this.updateTimestampOffset(t,f,1e-6,a,m,g)),this.appendExecutor(i,a)},onStart:()=>{},onComplete:()=>{let e=self.performance.now();p.executeEnd=p.end=e,0===y.first&&(y.first=e),_&&0===_.first&&(_.first=e);let t={};
278this.sourceBuffers.forEach(([e,n])=>{e&&(t[e]=t2.getBuffered(n))}),this.appendErrors[a]=0,"audio"===a||"video"===a?this.appendErrors.audiovideo=0:(this.appendErrors.audio=0,this.appendErrors.video=0),this.hls.trigger(u.BUFFER_APPENDED,{type:a,frag:c,part:d,chunkMeta:h,parent:c.type,timeRanges:t})},onError:e=>{var t;let n={type:o.MEDIA_ERROR,parent:c.type,details:l.BUFFER_APPEND_ERROR,sourceBufferName:a,frag:c,part:d,chunkMeta:h,error:e,err:e,fatal:!1},i=null==(t=this.media)?void 0:t.error;if(e.code===DOMException.QUOTA_EXCEEDED_ERR||"QuotaExceededError"==e.name||"quota"in e)n.details=l.BUFFER_FULL_ERROR;else if(e.code===DOMException.INVALID_STATE_ERR&&this.mediaSourceOpenOrEnded&&!i)n.errorAction=tR(!0);else if(e.name===aa&&0===this.sourceBufferCount)n.errorAction=tR(!0);else{let e=++this.appendErrors[a];this.warn(`Failed ${e}/${this.hls.config.appendErrorMaxRetry} times to append segment in "${a}" sourceBuffer (${i||"no media error"})`),(e>=this.hls.config.appendErrorMaxRetry||i)&&(n.fatal=!0)}this.hls.trigger(u.ERROR,n)}};this.append(T,a,this.isPending(this.tracks[a]))}getFlushOp(e,t,n){return this.log(`queuing "${e}" remove ${t}-${n}`),{label:"remove",execute:()=>{this.removeExecutor(e,t,n)},onStart:()=>{},onComplete:()=>{this.hls.trigger(u.BUFFER_FLUSHED,{type:e})},onError:i=>{this.warn(`Failed to remove ${t}-${n} from "${e}" SourceBuffer`,i)}}}onBufferFlushing(e,t){let{type:n,startOffset:i,endOffset:r}=t;n?this.append(this.getFlushOp(n,i,r),n):this.sourceBuffers.forEach(([e])=>{e&&this.append(this.getFlushOp(e,i,r),e)})}onFragParsed(e,t){let{frag:n,part:i}=t,r=[],a=i?i.elementaryStreams:n.elementaryStreams;a[B.AUDIOVIDEO]?r.push("audiovideo"):(a[B.AUDIO]&&r.push("audio"),a[B.VIDEO]&&r.push("video"));let s=()=>{let e=self.performance.now();n.stats.buffering.end=e,i&&(i.stats.buffering.end=e);let t=i?i.stats:n.stats;this.hls.trigger(u.FRAG_BUFFERED,{frag:n,part:i,stats:t,id:n.type})};0===r.length&&this.warn(`Fragments must have at least one ElementaryStreamType set. type: ${n.type} level: ${n.level} sn: ${n.sn}`),this.blockBuffers(s,r).catch(e=>{this.warn(`Fragment buffered callback ${e}`),this.stepOperationQueue(this.sourceBufferTypes)})}onFragChanged(e,t){this.trimBuffers()}get bufferedToEnd(){return this.sourceBufferCount>0&&!this.sourceBuffers.some(([e])=>{if(e){let t=this.tracks[e];if(t)return!t.ended||t.ending}return!1})}onBufferEos(e,t){var n;this.sourceBuffers.forEach(([e])=>{if(e){let n=this.tracks[e];t.type&&t.type!==e||(n.ending=!0,n.ended||(n.ended=!0,this.log(`${e} buffer reached EOS`)))}});let i=(null==(n=this.overrides)?void 0:n.endOfStream)!==!1;this.sourceBufferCount>0&&!this.sourceBuffers.some(([e])=>{var t;return e&&!(null!=(t=this.tracks[e])&&t.ended)})?i?(this.log("Queueing EOS"),this.blockUntilOpen(()=>{this.tracksEnded();let{mediaSource:e}=this;if(!e||"open"!==e.readyState){e&&this.log(`Could not call mediaSource.endOfStream(). mediaSource.readyState: ${e.readyState}`);return}this.log("Calling mediaSource.endOfStream()"),e.endOfStream(),this.hls.trigger(u.BUFFERED_TO_END,void 0)})):(this.tracksEnded(),this.hls.trigger(u.BUFFERED_TO_END,void 0)):"video"===t.type&&this.unblockAudio()}tracksEnded(){this.sourceBuffers.forEach(([e])=>{if(null!==e){let t=this.tracks[e];t&&(t.ending=!1)}})}onLevelUpdated(e,{details:t}){t.fragments.length&&(this.details=t,this.updateDuration())}updateDuration(){this.blockUntilOpen(()=>{let e=this.getDurationAndRange();e&&this.updateMediaSource(e)})}onError(e,t){if(t.details===l.BUFFER_APPEND_ERROR&&t.frag){var n;let e=null==(n=t.errorAction)?void 0:n.nextAutoLevel;r(e)&&e!==t.frag.level&&this.resetAppendErrors()}}resetAppendErrors(){this.appendErrors={audio:0,video:0,audiovideo:0}}trimBuffers(){let{hls:e,details:t,media:n}=this;if(!n||null===t||!this.sourceBufferCount)return;let i=e.config,a=n.currentTime,s=t.levelTargetDuration,o=t.live&&null!==i.liveBackBufferLength?i.liveBackBufferLength:i.backBufferLength;if(r(o)&&o>=0){let e=Math.max(o,s),t=Math.floor(a/s)*s-e;this.flushBackBuffer(a,s,t)}let l=i.frontBufferFlushThreshold;if(r(l)&&l>0){let e=Math.max(Math.max(i.maxBufferLength,l),s),t=Math.floor(a/s)*s+e;this.flushFrontBuffer(a,s,t)}}
278flushBackBuffer(e,t,n){this.sourceBuffers.forEach(([e,t])=>{if(t){let r=t2.getBuffered(t);if(r.length>0&&n>r.start(0)){var i;this.hls.trigger(u.BACK_BUFFER_REACHED,{bufferEnd:n});let t=this.tracks[e];if(null!=(i=this.details)&&i.live)this.hls.trigger(u.LIVE_BACK_BUFFER_REACHED,{bufferEnd:n});else if(null!=t&&t.ended){this.log(`Cannot flush ${e} back buffer while SourceBuffer is in ended state`);return}this.hls.trigger(u.BUFFER_FLUSHING,{startOffset:0,endOffset:n,type:e})}}})}flushFrontBuffer(e,t,n){this.sourceBuffers.forEach(([t,i])=>{if(i){let r=t2.getBuffered(i),a=r.length;if(a<2)return;let s=r.start(a-1),o=r.end(a-1);n>s||e>=s&&e<=o||this.hls.trigger(u.BUFFER_FLUSHING,{startOffset:s,endOffset:1/0,type:t})}})}getDurationAndRange(){var e;let{details:t,mediaSource:n}=this;if(!t||!this.media||(null==n?void 0:n.readyState)!=="open")return null;let i=t.edge;if(t.live&&this.hls.config.liveDurationInfinity){if(t.fragments.length&&n.setLiveSeekableRange){let e=Math.max(0,t.fragmentStart),n=Math.max(e,i);return{duration:1/0,start:e,end:n}}return{duration:1/0}}let a=null==(e=this.overrides)?void 0:e.duration;if(a)return r(a)?{duration:a}:null;let s=this.media.duration;return i>(r(n.duration)?n.duration:0)&&i>s||!r(s)?{duration:i}:null}updateMediaSource({duration:e,start:t,end:n}){let i=this.mediaSource;this.media&&i&&"open"===i.readyState&&(i.duration!==e&&(r(e)&&this.log(`Updating MediaSource duration to ${e.toFixed(3)}`),i.duration=e),void 0!==t&&void 0!==n&&(this.log(`MediaSource duration is set to ${i.duration}. Setting seekable range to ${t}-${n}.`),i.setLiveSeekableRange(t,n)))}get tracksReady(){let e=this.pendingTrackCount;return e>0&&(e>=this.bufferCodecEventsTotal||this.isPending(this.tracks.audiovideo))}checkPendingTracks(){let{bufferCodecEventsTotal:e,pendingTrackCount:t,tracks:n}=this;if(this.log(`checkPendingTracks (pending: ${t} codec events expected: ${e}) ${tt(n)}`),this.tracksReady){var i;let e=null==(i=this.transferData)?void 0:i.tracks;e&&Object.keys(e).length?this.attachTransferred():this.createSourceBuffers()}}bufferCreated(){if(this.sourceBufferCount){let e={};this.sourceBuffers.forEach(([t,n])=>{if(t){let i=this.tracks[t];e[t]={buffer:n,container:i.container,codec:i.codec,supplemental:i.supplemental,levelCodec:i.levelCodec,id:i.id,metadata:i.metadata}}}),this.hls.trigger(u.BUFFER_CREATED,{tracks:e}),this.log(`SourceBuffers created. Running queue: ${this.operationQueue}`),this.sourceBuffers.forEach(([e])=>{this.executeNext(e)})}else{let e=Error("could not create source buffer for media codec(s)");this.hls.trigger(u.ERROR,{type:o.MEDIA_ERROR,details:l.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:e,reason:e.message})}}createSourceBuffers(){let{tracks:e,sourceBuffers:t,mediaSource:n}=this;if(!n)throw Error("createSourceBuffers called when mediaSource was null");for(let r in e){let a=r,s=e[a];if(this.isPending(s)){let e=this.getTrackCodec(s,a),r=`${s.container};codecs=${e}`;s.codec=e,this.log(`creating sourceBuffer(${r})${this.currentOp(a)?" Queued":""} ${tt(s)}`);try{let e=n.addSourceBuffer(r),i=ac(a),o=[a,e];t[i]=o,s.buffer=e}catch(e){var i;this.error(`error while trying to add sourceBuffer: ${e.message}`),this.shiftAndExecuteNext(a),null==(i=this.operationQueue)||i.removeBlockers(),delete this.tracks[a],this.hls.trigger(u.ERROR,{type:o.MEDIA_ERROR,details:l.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:e,sourceBufferName:a,mimeType:r,parent:s.id});return}this.trackSourceBuffer(a,s)}}this.bufferCreated()}getTrackCodec(e,t){let n=e.supplemental,i=e.codec;n&&("video"===t||"audiovideo"===t)&&eP(n,"video")&&(i=eO(i,n));let r=ej(i,e.levelCodec);return r?"audio"===t.slice(0,5)?eF(r,this.appendSource):r:""}trackSourceBuffer(e,t){let n=t.buffer;if(!n)return;let i=this.getTrackCodec(t,e);this.tracks[e]={buffer:n,codec:i,container:t.container,levelCodec:t.levelCodec,supplemental:t.supplemental,metadata:t.metadata,id:t.id,listeners:[]},this.removeBufferListeners(e),this.addBufferListener(e,"updatestart",this.onSBUpdateStart),this.addBufferListener(e,"updateend",this.onSBUpdateEnd),this.addBufferListener(e,"error",this.onSBUpdateError),this.appendSource&&this.addBufferListener(e,"bufferedchange",(e,t)=>{let n=t.removedRanges;null!=n&&n.length&&this.hls.trigger(u.BUFFER_FLUSHED,{type:e})})}get mediaSrc(){var e,t;let n=(null==(e=this.media)||null==(t=e.querySelector)?void 0:t.call(e,"source"))||this.media;return null==n?void 0:n.src}onSBUpdateStart(e){let t=this.currentOp(e);t&&t.onStart()}onSBUpdateEnd(e){var t;if((null==(t=this.mediaSource)?void 0:t.readyState)==="closed"){this.resetBuffer(e);return}let n=this.currentOp(e);n&&(n.onComplete(),this.shiftAndExecuteNext(e))}onSBUpdateError(e,t){var n;let i=Error(`${e} SourceBuffer error. MediaSource readyState: ${null==(n=this.mediaSource)?void 0:n.readyState}`);this.error(`${i}`,t),this.hls.trigger(u.ERROR,{type:o.MEDIA_ERROR,details:l.BUFFER_APPENDING_ERROR,sourceBufferName:e,error:i,fatal:!1});let r=this.currentOp(e);r&&r.onError(i)}updateTimestampOffset(e,t,n,i,r,a){Math.abs(t-e.timestampOffset)>=n&&(this.log(`Updating ${i} SourceBuffer timestampOffset to ${t} (sn: ${r} cc: ${a})`),e.timestampOffset=t)}removeExecutor(e,t,n){let{media:i,mediaSource:a}=this,s=this.tracks[e],o=null==s?void 0:s.buffer;if(!i||!a||!o){this.warn(`Attempting to remove from the ${e} SourceBuffer, but it does not exist`),this.shiftAndExecuteNext(e);return}let l=r(i.duration)?i.duration:1/0,u=r(a.duration)?a.duration:1/0,c=Math.max(0,t),d=Math.min(n,l,u);d>c&&(!s.ending||s.ended)?(s.ended=!1,this.log(`Removing [${c},${d}] from the ${e} SourceBuffer`),o.remove(c,d)):this.shiftAndExecuteNext(e)}appendExecutor(e,t){let n=this.tracks[t],i=null==n?void 0:n.buffer;if(!i)throw new as(`Attempting to append to the ${t} SourceBuffer, but it does not exist`);n.ending=!1,n.ended=!1,i.appendBuffer(e)}blockUntilOpen(e){if(this.isUpdating()||this.isQueued())this.blockBuffers(e).catch(e=>{this.warn(`SourceBuffer blocked callback ${e}
278`),this.stepOperationQueue(this.sourceBufferTypes)});else try{e()}catch(e){this.warn(`Callback run without blocking ${this.operationQueue} ${e}`)}}isUpdating(){return this.sourceBuffers.some(([e,t])=>e&&t.updating)}isQueued(){return this.sourceBuffers.some(([e])=>e&&!!this.currentOp(e))}isPending(e){return!!e&&!e.buffer}blockBuffers(e,t=this.sourceBufferTypes){if(!t.length)return this.log("Blocking operation requested, but no SourceBuffers exist"),Promise.resolve().then(e);let{operationQueue:n}=this,i=t.map(e=>this.appendBlocker(e));return t.length>1&&this.blockedAudioAppend&&this.unblockAudio(),Promise.all(i).then(t=>{n===this.operationQueue&&(e(),this.stepOperationQueue(this.sourceBufferTypes))})}stepOperationQueue(e){e.forEach(e=>{var t;let n=null==(t=this.tracks[e])?void 0:t.buffer;n&&!n.updating&&this.shiftAndExecuteNext(e)})}append(e,t,n){this.operationQueue&&this.operationQueue.append(e,t,n)}appendBlocker(e){if(this.operationQueue)return this.operationQueue.appendBlocker(e)}currentOp(e){return this.operationQueue?this.operationQueue.current(e):null}executeNext(e){e&&this.operationQueue&&this.operationQueue.executeNext(e)}shiftAndExecuteNext(e){this.operationQueue&&this.operationQueue.shiftAndExecuteNext(e)}get pendingTrackCount(){return Object.keys(this.tracks).reduce((e,t)=>e+(this.isPending(this.tracks[t])?1:0),0)}get sourceBufferCount(){return this.sourceBuffers.reduce((e,[t])=>e+(t?1:0),0)}get sourceBufferTypes(){return this.sourceBuffers.map(([e])=>e).filter(e=>!!e)}addBufferListener(e,t,n){let i=this.tracks[e];if(!i)return;let r=i.buffer;if(!r)return;let a=n.bind(this,e);i.listeners.push({event:t,listener:a}),r.addEventListener(t,a)}removeBufferListeners(e){let t=this.tracks[e];if(!t)return;let n=t.buffer;n&&(t.listeners.forEach(e=>{n.removeEventListener(e.event,e.listener)}),t.listeners.length=0)}}function al(e){let t=e.querySelectorAll("source");[].slice.call(t).forEach(t=>{e.removeChild(t)})}function au(e,t){let n=self.document.createElement("source");n.type="video/mp4",n.src=t,e.appendChild(n)}function ac(e){return"audio"===e?1:0}class ad{constructor(e){this.hls=void 0,this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.clientRect=void 0,this.streamController=void 0,this.hls=e,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}setStreamController(e){this.streamController=e}destroy(){this.hls&&this.unregisterListener(),this.timer&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null}registerListeners(){let{hls:e}=this;e.on(u.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.on(u.MEDIA_ATTA
278CHING,this.onMediaAttaching,this),e.on(u.MANIFEST_PARSED,this.onManifestParsed,this),e.on(u.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(u.BUFFER_CODECS,this.onBufferCodecs,this),e.on(u.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){let{hls:e}=this;e.off(u.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.off(u.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(u.MANIFEST_PARSED,this.onManifestParsed,this),e.off(u.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(u.BUFFER_CODECS,this.onBufferCodecs,this),e.off(u.MEDIA_DETACHING,this.onMediaDetaching,this)}onFpsDropLevelCapping(e,t){let n=this.hls.levels[t.droppedLevel];this.isLevelAllowed(n)&&this.restrictedLevels.push({bitrate:n.bitrate,height:n.height,width:n.width})}onMediaAttaching(e,t){this.media=t.media instanceof HTMLVideoElement?t.media:null,this.clientRect=null,this.timer&&this.hls.levels.length&&this.detectPlayerSize()}onManifestParsed(e,t){let n=this.hls;this.restrictedLevels=[],this.firstLevel=t.firstLevel,n.config.capLevelToPlayerSize&&t.video&&this.startCapping()}onLevelsUpdated(e,t){this.timer&&r(this.autoLevelCapping)&&this.detectPlayerSize()}onBufferCodecs(e,t){this.hls.config.capLevelToPlayerSize&&t.video&&this.startCapping()}onMediaDetaching(){this.stopCapping(),this.media=null}detectPlayerSize(){if(this.media){if(this.mediaHeight<=0||this.mediaWidth<=0){this.clientRect=null;return}let e=this.hls.levels;if(e.length){let t=this.hls,n=this.getMaxLevel(e.length-1);n!==this.autoLevelCapping&&t.logger.log(`Setting autoLevelCapping to ${n}: ${e[n].height}p@${e[n].bitrate} for media ${this.mediaWidth}x${this.mediaHeight}`),t.autoLevelCapping=n,t.autoLevelEnabled&&t.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=t.autoLevelCapping}}}getMaxLevel(e){let t=this.hls.levels;if(!t.length)return -1;let n=t.filter((t,n)=>this.isLevelAllowed(t)&&n<=e);return this.clientRect=null,ad.getMaxLevelByMediaSize(n,this.mediaWidth,this.mediaHeight)}startCapping(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())}stopCapping(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)}getDimensions(){if(this.clientRect)return this.clientRect;let e=this.media,t={width:0,height:0};if(e){let n=e.getBoundingClientRect();t.width=n.width,t.height=n.height,t.width||t.height||(t.width=n.right-n.left||e.width||0,t.height=n.bottom-n.top||e.height||0)}return this.clientRect=t,t}get mediaWidth(){return this.getDimensions().width*this.contentScaleFactor}get mediaHeight(){return this.getDimensions().height*this.contentScaleFactor}get contentScaleFactor(){let e=1;if(!this.hls.config.ignoreDevicePixelRatio)try{e=self.devicePixelRatio}catch(e){}return Math.min(e,this.hls.config.maxDevicePixelRatio)}isLevelAllowed(e){return!this.restrictedLevels.some(t=>e.bitrate===t.bitrate&&e.width===t.width&&e.height===t.height)}static getMaxLevelByMediaSize(e,t,n){if(!(null!=e&&e.length))return -1;let i=(e,t)=>!t||e.width!==t.width||e.height!==t.height,r=e.length-1,a=Math.max(t,n);for(let t=0;t<e.length;t+=1){let n=e[t];if((n.width>=a||n.height>=a)&&i(n,e[t+1])){r=t;break}}return r}}let ah={MANIFEST:"m",AUDIO:"a",VIDEO:"v",MUXED:"av",INIT:"i",TIMED_TEXT:"tt"},af="h";class ap{constructor(e,t){Array.isArray(e)&&(e=e.map(e=>e instanceof ap?e:new ap(e))),this.value=e,this.params=t}}let am="Dict";function ag(e){return Array.isArray(e)?JSON.stringify(e):e instanceof Map?"Map{}":e instanceof Set?"Set{}":"object"==typeof e?JSON.stringify(e):String(e)}function av(e,t,n,i){return Error(`failed to ${e} "${ag(t)}" as ${n}`,{cause:i})}function ay(e,t,n){return av("serialize",e,t,n)}class a_{constructor(e){this.description=e}}let ab="Bare Item",ax="Boolean";function aC(e){if("boolean"!=typeof e)throw ay(e,ax);return e?"?1":"?0"}function aE(e){return btoa(String.fromCharCode(...e))}let aw="Byte Sequence";function aT(e){if(!1===ArrayBuffer.isView(e))throw ay(e,aw);return`:${aE(e)}:`}let aS="Integer";function aL(e){return e<-999999999999999||999999999999999<e}function aP(e){if(aL(e))throw ay(e,aS);return e.toString()}function aM(e){return`@${aP(e.getTime()/1e3)}`}function aA(e,t){if(e<0)return-aA(-e,t);let n=Math.pow(10,t);if(!(Math.abs(e*n%1-.5)<Number.EPSILON))return Math.round(e*n)/n;{let t=Math.floor(e*n);return(t%2==0?t:t+1)/n}}let aI="Decimal";function aR(e){let t=aA(e,3);if(Math.floor(Math.abs(t)).toString().length>12)throw ay(e,aI);let n=t.toString();return n.includes(".")?n:`${n}.0`}let ak="String",aD=/[\x00-\x1f\x7f]+/;function aN(e){if(aD.test(e))throw ay(e,ak);return`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function aF(e){return e.description||e.toString().slice(7,-1)}let aO="Token";function aj(e){let t=aF(e);if(!1===/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(t))throw ay(t,aO);return t}function aU(e){switch(typeof e){case"number":if(!r(e))throw ay(e,ab);if(Number.isInteger(e))return aP(e);return aR(e);case"string":return aN(e);case"symbol":return aj(e);case"boolean":return aC(e);case"object":if(e instanceof Date)return aM(e);if(e instanceof Uint8Array)return aT(e);if(e instanceof a_)return aj(e);default:throw ay(e,ab)}}let aV="Key";function aB(e){if(!1===/^[a-z*][a-z0-9\-_.*]*$/.test(e))throw ay(e,aV);return e}function aH(e){return null==e?"":Object.entries(e).map(([e,t])=>!0===t?`;${aB(e)}`:`;${aB(e)}=${aU(t)}`).join("")}function aG(e){return e instanceof ap?`${aU(e.value)}${aH(e.params)}`:aU(e)}function az(e){return`(${e.value.map(aG).join(" ")})${aH(e.params)}`}function aq(e,t={whitespace:!0}){if("object"!=typeof e||null==e)throw ay(e,am);let n=e instanceof Map?e.entries():Object.entries(e),i=(null==t?void 0:t.whitespace)?" ":"";return Array.from(n).map(([e,t])=>{t instanceof ap==!1&&(t=new ap(t));let n=aB(e);return!0===t.value?n+=aH(t.params):(n+="=",Array.isArray(t.value)?n+=az(t):n+=aG(t)),n}).join(`,${i}`)}function aW(e,t){return aq(e,t)}let a$="CMCD-Object",aZ="CMCD-Request",aY="CMCD-Session",aK="CMCD-Status",aX={br:a$,ab:a$,d:a$,ot:a$,tb:a$,tpb:a$,lb:a$,tab:a$,lab:a$,url:a$,pb:aZ,bl:aZ,tbl:aZ,dl:aZ,ltc:aZ,mtp:aZ,nor:aZ,nrr:aZ,rc:aZ,sn:aZ,sta:aZ,su:aZ,ttfb:aZ,ttfbb:aZ,ttlb:aZ,cmsdd:aZ,cmsds:aZ,smrt:aZ,df:aZ,cs:aZ,ts:aZ,cid:aY,pr:aY,sf:aY,sid:aY,st:aY,v:aY,msd:aY,bs:aK,bsd:aK,cdn:aK,rtp:aK,bg:aK,pt:aK,ec:aK,e:aK},aQ={REQUEST:aZ};function aJ(e){return Object.keys(e).reduce((t,n)=>{var i;
278return null===(i=e[n])||void 0===i||i.forEach(e=>t[e]=n),t},{})}function a0(e,t){let n={};if(!e)return n;let i=Object.keys(e),r=t?aJ(t):{};return i.reduce((t,n)=>{var i;let a=aX[n]||r[n]||aQ.REQUEST;return(null!==(i=t[a])&&void 0!==i?i:t[a]={})[n]=e[n],t},n)}function a1(e){return["ot","sf","st","e","sta"].includes(e)}function a2(e){return"number"==typeof e?r(e):null!=e&&""!==e&&!1!==e}let a3="event";function a5(e,t){let n=new URL(e),i=new URL(t);if(n.origin!==i.origin)return e;let r=n.pathname.split("/").slice(1),a=i.pathname.split("/").slice(1,-1);for(;r[0]===a[0];)r.shift(),a.shift();for(;a.length;)a.shift(),r.unshift("..");return r.join("/")+n.search+n.hash}let a4=e=>Math.round(e),a6=(e,t)=>Array.isArray(e)?e.map(e=>a6(e,t)):e instanceof ap&&"string"==typeof e.value?new ap(a6(e.value,t),e.params):(t.baseUrl&&(e=a5(e,t.baseUrl)),1===t.version?encodeURIComponent(e):e),a8=e=>100*a4(e/100),a7={br:a4,d:a4,bl:a8,dl:a8,mtp:a8,nor:(e,t)=>{let n=e;return t.version>=2&&(e instanceof ap&&"string"==typeof e.value?n=new ap([e]):"string"==typeof e&&(n=[e])),a6(n,t)},rtp:a8,tb:a4},a9="request",se="response",st=["ab","bg","bl","br","bs","bsd","cdn","cid","cs","df","ec","lab","lb","ltc","msd","mtp","pb","pr","pt","sf","sid","sn","st","sta","tab","tb","tbl","tpb","ts","v"],sn=["e"],si=/^[a-zA-Z0-9-.]+-[a-zA-Z0-9-.]+$/;function sr(e){return si.test(e)}let sa=["d","dl","nor","ot","rtp","su"],ss=["cmsdd","cmsds","rc","smrt","ttfb","ttfbb","ttlb","url"],so=["bl","br","bs","cid","d","dl","mtp","nor","nrr","ot","pr","rtp","sf","sid","st","su","tb","v"];function sl(e){return so.includes(e)||sr(e)}let su={[se]:function(e){return st.includes(e)||sa.includes(e)||ss.includes(e)||sr(e)},[a3]:function(e){return st.includes(e)||sn.includes(e)||sr(e)},[a9]:function(e){return st.includes(e)||sa.includes(e)||sr(e)}};function sc(e,t={}){let n={};if(null==e||"object"!=typeof e)return n;let i=t.version||e.v||1,a=t.reportingMode||a9,s=1===i?sl:su[a],o=Object.keys(e).filter(s),l=t.filter;"function"==typeof l&&(o=o.filter(l));let u=a===se||a===a3;u&&!o.includes("ts")&&o.push("ts"),i>1&&!o.includes("v")&&o.push("v");let c=v({},a7,t.formatters),d={version:i,reportingMode:a,baseUrl:t.baseUrl};return o.sort().forEach(t=>{let a=e[t],s=c[t];if("function"==typeof s&&(a=s(a,d)),"v"===t){if(1===i)return;a=i}("pr"!=t||1!==a)&&(u&&"ts"===t&&!r(a)&&(a=Date.now()),a2(a)&&(a1(t)&&"string"==typeof a&&(a=new a_(a)),n[t]=a))}),n}function sd(e,t={}){let n={};return e?Object.entries(a0(sc(e,t),null==t?void 0:t.customHeaderMap)).reduce((e,[t,n])=>{let i=aW(n,{whitespace:!1});return i&&(e[t]=i),e},n):n}function sh(e,t,n){return v(e,sd(t,n))}let sf="CMCD";function sp(e,t={}){return e?aW(sc(e,t),{whitespace:!1}):""}function sm(e,t={}){return e?encodeURIComponent(sp(e,t)):""}function sg(e,t={}){if(!e)return"";let n=sm(e,t);return`${sf}=${n}`}let sv=/CMCD=[^&#]+/;function sy(e,t,n){let i=sg(t,n);if(!i)return e;if(sv.test(e))return e.replace(sv,i);let r=e.includes("?")?"&":"?";return`${e}${r}${i}`}class s_{constructor(e){this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.includeKeys=void 0,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=()=>{this.initialized&&(this.starved=!0),this.buffering=!0},this.onPlaying=()=>{this.initialized||(this.initialized=!0),this.buffering=!1},this.applyPlaylistData=e=>{try{this.apply(e,{ot:ah.MANIFEST,su:!this.initialized})}catch(e){this.hls.logger.warn("Could not generate manifest CMCD data.",e)}},this.applyFragmentData=e=>{try{let{frag:t,part:n}=e,i=this.hls.levels[t.level],r=this.getObjectType(t),a={d:1e3*(n||t).duration,ot:r};(r===ah.VIDEO||r===ah.AUDIO||r==ah.MUXED)&&(a.br=i.bitrate/1e3,a.tb=this.getTopBandwidth(r)/1e3,a.bl=this.getBufferLength(r));let s=n?this.getNextPart(n):this.getNextFrag(t);null!=s&&s.url&&s.url!==t.url&&(a.nor=s.url),this.apply(e,a)}catch(e){this.hls.logger.warn("Could not generate segment CMCD data.",e)}},this.hls=e;let t=this.config=e.config,{cmcd:n}=t;null!=n&&(t.pLoader=this.createPlaylistLoader(),t.fLoader=this.createFragmentLoader(),this.sid=n.sessionId||e.sessionId,this.cid=n.contentId,this.useHeaders=!0===n.useHeaders,this.includeKeys=n.includeKeys,this.registerListeners())}registerListeners(){let e=this.hls;
278e.on(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(u.MEDIA_DETACHED,this.onMediaDetached,this),e.on(u.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){let e=this.hls;e.off(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(u.MEDIA_DETACHED,this.onMediaDetached,this),e.off(u.BUFFER_CREATED,this.onBufferCreated,this)}destroy(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null,this.onWaiting=this.onPlaying=this.media=null}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)}onMediaDetached(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)}onBufferCreated(e,t){var n,i;this.audioBuffer=null==(n=t.tracks.audio)?void 0:n.buffer,this.videoBuffer=null==(i=t.tracks.video)?void 0:i.buffer}createData(){var e;return{v:1,sf:af,sid:this.sid,cid:this.cid,pr:null==(e=this.media)?void 0:e.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(e,t={}){v(t,this.createData());let n=t.ot===ah.INIT||t.ot===ah.VIDEO||t.ot===ah.MUXED;this.starved&&n&&(t.bs=!0,t.su=!0,this.starved=!1),null==t.su&&(t.su=this.buffering);let{includeKeys:i}=this;i&&(t=Object.keys(t).reduce((e,n)=>(i.includes(n)&&(e[n]=t[n]),e),{}));let r={baseUrl:e.url};this.useHeaders?(e.headers||(e.headers={}),sh(e.headers,t,r)):e.url=sy(e.url,t,r)}getNextFrag(e){var t;let n=null==(t=this.hls.levels[e.level])?void 0:t.details;if(n){let t=e.sn-n.startSN;return n.fragments[t+1]}}getNextPart(e){var t;let{index:n,fragment:i}=e,r=null==(t=this.hls.levels[i.level])||null==(t=t.details)?void 0:t.partList;if(r){let{sn:e}=i;for(let t=r.length-1;t>=0;t--){let i=r[t];if(i.index===n&&i.fragment.sn===e)return r[t+1]}}}getObjectType(e){let{type:t}=e;return"subtitle"===t?ah.TIMED_TEXT:"initSegment"===e.sn?ah.INIT:"audio"===t?ah.AUDIO:"main"===t?this.hls.audioTracks.length?ah.VIDEO:ah.MUXED:void 0}getTopBandwidth(e){let t,n=0,i=this.hls;if(e===ah.AUDIO)t=i.audioTracks;else{let e=i.maxAutoLevel,n=e>-1?e+1:i.levels.length;t=i.levels.slice(0,n)}return t.forEach(e=>{e.bitrate>n&&(n=e.bitrate)}),n>0?n:NaN}getBufferLength(e){let t=this.media,n=e===ah.AUDIO?this.audioBuffer:this.videoBuffer;return n&&t?1e3*t2.bufferInfo(n,t.currentTime,this.config.maxBufferHole).len:NaN}createPlaylistLoader(){let{pLoader:e}=this.config,t=this.applyPlaylistData,n=e||this.config.loader;return class{constructor(e){this.loader=void 0,this.loader=new n(e)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(e,n,i){t(e),this.loader.load(e,n,i)}}}createFragmentLoader(){let{fLoader:e}=this.config,t=this.applyFragmentData,n=e||this.config.loader;return class{constructor(e){this.loader=void 0,this.loader=new n(e)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(e,n,i){t(e),this.loader.load(e,n,i)}}}}let sb=3e5;class sx extends C{constructor(e){super("content-steering",e.logger),this.hls=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this._pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=e,this.registerListeners()}registerListeners(){let e=this.hls;e.on(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(u.MANIFEST_PARSED,this.onManifestParsed,this),e.on(u.ERROR,this.onError,this)}unregisterListeners(){let e=this.hls;e&&(e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(u.MANIFEST_PARSED,this.onManifestParsed,this),e.off(u.ERROR,this.onError,this))}pathways(){return(this.levels||[]).reduce((e,t)=>(-1===e.indexOf(t.pathwayId)&&e.push(t.pathwayId),e),[])}get pathwayPriority(){return this._pathwayPriority}set pathwayPriority(e){this.updatePathwayPriority(e)}
278startLoad(){if(this.started=!0,this.clearTimeout(),this.enabled&&this.uri){if(this.updated){let e=1e3*this.timeToLoad-(performance.now()-this.updated);if(e>0){this.scheduleRefresh(this.uri,e);return}}this.loadSteeringManifest(this.uri)}}stopLoad(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),this.clearTimeout()}clearTimeout(){-1!==this.reloadTimer&&(self.clearTimeout(this.reloadTimer),this.reloadTimer=-1)}destroy(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null}removeLevel(e){let t=this.levels;t&&(this.levels=t.filter(t=>t!==e))}onManifestLoading(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null}onManifestLoaded(e,t){let{contentSteering:n}=t;null!==n&&(this.pathwayId=n.pathwayId,this.uri=n.uri,this.started&&this.startLoad())}onManifestParsed(e,t){this.audioTracks=t.audioTracks,this.subtitleTracks=t.subtitleTracks}onError(e,t){let{errorAction:n}=t;if((null==n?void 0:n.action)===tM.SendAlternateToPenaltyBox&&n.flags===tA.MoveAllAlternatesMatchingHost){let e=this.levels,i=this._pathwayPriority,r=this.pathwayId;if(t.context){let{groupId:n,pathwayId:i,type:a}=t.context;n&&e?r=this.getPathwayForGroupId(n,a,r):i&&(r=i)}r in this.penalizedPathways||(this.penalizedPathways[r]=performance.now()),!i&&e&&(i=this.pathways()),i&&i.length>1&&(this.updatePathwayPriority(i),n.resolved=this.pathwayId!==r),t.details!==l.BUFFER_APPEND_ERROR||t.fatal?n.resolved||this.warn(`Could not resolve ${t.details} ("${t.error.message}") with content-steering for Pathway: ${r} levels: ${e?e.length:e} priorities: ${tt(i)} penalized: ${tt(this.penalizedPathways)}`):n.resolved=!0}}filterParsedLevels(e){this.levels=e;let t=this.getLevelsForPathway(this.pathwayId);if(0===t.length){let n=e[0].pathwayId;this.log(`No levels found in Pathway ${this.pathwayId}. Setting initial Pathway to "${n}"`),t=this.getLevelsForPathway(n),this.pathwayId=n}return t.length!==e.length&&this.log(`Found ${t.length}/${e.length} levels in Pathway "${this.pathwayId}"`),t}getLevelsForPathway(e){return null===this.levels?[]:this.levels.filter(t=>e===t.pathwayId)}updatePathwayPriority(e){let t;this._pathwayPriority=e;let n=this.penalizedPathways,i=performance.now();Object.keys(n).forEach(e=>{i-n[e]>sb&&delete n[e]});for(let i=0;i<e.length;i++){let r=e[i];if(r in n)continue;if(r===this.pathwayId)return;let a=this.hls.nextLoadLevel,s=this.hls.levels[a];if((t=this.getLevelsForPathway(r)).length>0){this.log(`Setting Pathway to "${r}"`),this.pathwayId=r,n4(t),this.hls.trigger(u.LEVELS_UPDATED,{levels:t});let e=this.hls.levels[a];s&&e&&this.levels&&(e.attrs["STABLE-VARIANT-ID"]!==s.attrs["STABLE-VARIANT-ID"]&&e.bitrate!==s.bitrate&&this.log(`Unstable Pathways change from bitrate ${s.bitrate} to ${e.bitrate}`),this.hls.nextLoadLevel=a);break}}}getPathwayForGroupId(e,t,n){let i=this.getLevelsForPathway(n).concat(this.levels||[]);for(let n=0;n<i.length;n++)if(t===h.AUDIO_TRACK&&i[n].hasAudioGroup(e)||t===h.SUBTITLE_TRACK&&i[n].hasSubtitleGroup(e))return i[n].pathwayId;return n}clonePathways(e){let t=this.levels;if(!t)return;let n={},i={};e.forEach(e=>{let{ID:r,"BASE-ID":a,"URI-REPLACEMENT":s}=e;if(t.some(e=>e.pathwayId===r))return;let o=this.getLevelsForPathway(a).map(e=>{let t=new ne(e.attrs);t["PATHWAY-ID"]=r;let a=t.AUDIO&&`${t.AUDIO}_clone_${r}`,o=t.SUBTITLES&&`${t.SUBTITLES}_clone_${r}`;a&&(n[t.AUDIO]=a,t.AUDIO=a),o&&(i[t.SUBTITLES]=o,t.SUBTITLES=o);let l=sE(e.uri,t["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",s),u=new e6({attrs:t,audioCodec:e.audioCodec,bitrate:e.bitrate,height:e.height,name:e.name,url:l,videoCodec:e.videoCodec,width:e.width});if(e.audioGroups)for(let t=1;t<e.audioGroups.length;t++)u.addGroupId("audio",`${e.audioGroups[t]}_clone_${r}`);if(e.subtitleGroups)for(let t=1;t<e.subtitleGroups.length;t++)u.addGroupId("text",`${e.subtitleGroups[t]}_clone_${r}`);return u});t.push(...o),sC(this.audioTracks,n,s,r),sC(this.subtitleTracks,i,s,r)})}loadSteeringManifest(e){let t;let n=this.hls.config,i=n.loader;this.loader&&this.loader.destroy(),this.loader=new i(n);try{t=new self.URL(e)}catch(t){this.enabled=!1,this.log(`Failed to parse Steering Manifest URI: ${e}`);return}if("data:"!==t.protocol){let e=0|(this.hls.bandwidthEstimate||n.abrEwmaDefaultEstimate);t.searchParams.set("_HLS_pathway",this.pathwayId),t.searchParams.set("_HLS_throughput",""+e)}let r={responseType:"json",url:t.href},a=n.steeringManifestLoadPolicy.default,s=a.errorRetry||a.timeoutRetry||{},o={loadPolicy:a,timeout:a.maxLoadTimeMs,maxRetry:s.maxNumRetry||0,retryDelay:s.retryDelayMs||0,maxRetryDelay:s.maxRetryDelayMs||0},l={onSuccess:(e,n,i,r)=>{this.log(`Loaded steering manifest: "${t}"`);let a=e.data;if((null==a?void 0:a.VERSION)!==1){this.log(`Steering VERSION ${a.VERSION} not supported!`);return}this.updated=performance.now(),this.timeToLoad=a.TTL;let{"RELOAD-URI":s,"PATHWAY-CLONES":o,"PATHWAY-PRIORITY":l}=a;if(s)try{this.uri=new self.URL(s,t).href}catch(e){this.enabled=!1,this.log(`Failed to parse Steering Manifest RELOAD-URI: ${s}`);return}this.scheduleRefresh(this.uri||i.url),o&&this.clonePathways(o);let c={steeringManifest:a,url:t.toString()};this.hls.trigger(u.STEERING_MANIFEST_LOADED,c),l&&this.updatePathwayPriority(l)},onError:(e,t,n,i)=>{if(this.log(`Error loading steering manifest: ${e.code} ${e.text} (${t.url})`),this.stopLoad(),410===e.code){this.enabled=!1,this.log(`Steering manifest ${t.url} no longer available`);return}let r=1e3*this.timeToLoad;if(429===e.code){let e=this.loader;if("function"==typeof(null==e?void 0:e.getResponseHeader)){let t=e.getResponseHeader("Retry-After");t&&(r=1e3*parseFloat(t))}this.log(`Steering manifest ${t.url} rate limited`);return}this.scheduleRefresh(this.uri||t.url,r)},onTimeout:(e,t,n)=>{this.log(`Timeout loading steering manifest (${t.url})`),this.scheduleRefresh(this.uri||t.url)}};this.log(`Requesting steering manifest: ${t}`),this.loader.load(r,o,l)}scheduleRefresh(e,t=1e3*this.timeToLoad){this.clearTimeout(),this.reloadTimer=self.setTimeout(()=>{var t;let n=null==(t=this.hls)?void 0:t.media;if(n&&!n.ended){this.loadSteeringManifest(e);return}this.scheduleRefresh(e,1e3*this.timeToLoad)},t)}}function sC(e,t,n,i){e&&Object.keys(t).forEach(r=>{let a=e.filter(e=>e.groupId===r).map(e=>{let a=v({},e);return a.details=void 0,a.attrs=new ne(a.attrs),a.url=a.attrs.URI=sE(e.url,e.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",n),a.groupId=a.attrs["GROUP-ID"]=t[r],a.attrs["PATHWAY-ID"]=i,a});e.push(...a)})}function sE(e,t,n,i){let r;let{HOST:a,PARAMS:s,[n]:o}=i;t&&(r=null==o?void 0:o[t])&&(e=r);let l=new self.URL(e);
278return a&&!r&&(l.host=a),s&&Object.keys(s).sort().forEach(e=>{e&&l.searchParams.set(e,s[e])}),l.href}function sw(e,t,n){sT(e,t,n),e.addEventListener(t,n)}function sT(e,t,n){e.removeEventListener(t,n)}class sS extends C{constructor(e){super("eme",e.logger),this.hls=void 0,this.config=void 0,this.media=null,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.mediaKeys=null,this.setMediaKeysQueue=sS.CDMCleanupPromise?[sS.CDMCleanupPromise]:[],this.onMediaEncrypted=e=>{let{initDataType:t,initData:n}=e,i=`"${e.type}" event: init data type: "${t}"`;if(this.debug(i),null!==n){if(!this.keyFormatPromise){let e=Object.keys(this.keySystemAccessPromises);e.length||(e=n_(this.config));let t=e.map(ny).filter(e=>!!e);this.keyFormatPromise=this.getKeyFormatPromise(t)}this.keyFormatPromise.then(r=>{let a;let s=nv(r);if("sinf"!==t||s!==nm.FAIRPLAY){this.log(`Ignoring "${e.type}" event with init data type: "${t}" for selected key-system ${s}`);return}try{let e=X(new Uint8Array(n)),t=nu(JSON.parse(e).sinf),i=ef(t);if(!i)throw Error("'schm' box missing or not cbcs/cenc with schi > tenc");a=new Uint8Array(i.subarray(8,24))}catch(e){this.warn(`${i} Failed to parse sinf: ${e}`);return}let o=N.hexDump(a),{keyIdToKeySessionPromise:l,mediaKeySessions:u}=this,c=l[o];for(let e=0;e<u.length;e++){let i=u[e],r=i.decryptdata;if(!r.keyId)continue;let s=N.hexDump(r.keyId);if(o===s||-1!==r.uri.replace(/-/g,"").indexOf(o)){if(!(c=l[s]))continue;if(r.pssh)break;delete l[s],r.pssh=new Uint8Array(n),r.keyId=a,(c=l[o]=c.then(()=>this.generateRequestWithPreferredKeySession(i,t,n,"encrypted-event-key-match"))).catch(e=>this.handleError(e));break}}c||this.handleError(Error(`Key ID ${o} not encountered in playlist. Key-system sessions ${u.length}.`))}).catch(e=>this.handleError(e))}},this.onWaitingForKey=e=>{this.log(`"${e.type}" event`)},this.hls=e,this.config=e.config,this.registerListeners()}destroy(){this.onDestroying(),this.onMediaDetached();let e=this.config;e.requestMediaKeySystemAccessFunc=null,e.licenseXhrSetup=e.licenseResponseCallback=void 0,e.drmSystems=e.drmSystemOptions={},this.hls=this.config=this.keyIdToKeySessionPromise=null,this.onWaitingForKey=null}
278registerListeners(){this.hls.on(u.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(u.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(u.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(u.MANIFEST_LOADED,this.onManifestLoaded,this),this.hls.on(u.DESTROYING,this.onDestroying,this)}unregisterListeners(){this.hls.off(u.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(u.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(u.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(u.MANIFEST_LOADED,this.onManifestLoaded,this),this.hls.off(u.DESTROYING,this.onDestroying,this)}getLicenseServerUrl(e){let{drmSystems:t,widevineLicenseUrl:n}=this.config,i=t[e];return i?i.licenseUrl:e===nm.WIDEVINE&&n?n:void 0}getLicenseServerUrlOrThrow(e){let t=this.getLicenseServerUrl(e);if(void 0===t)throw Error(`no license server URL configured for key-system "${e}"`);return t}getServerCertificateUrl(e){let{drmSystems:t}=this.config,n=t[e];if(n)return n.serverCertificateUrl;this.log(`No Server Certificate in config.drmSystems["${e}"]`)}attemptKeySystemAccess(e){let t=this.hls.levels,n=(e,t,n)=>!!e&&n.indexOf(e)===t,i=t.map(e=>e.audioCodec).filter(n),r=t.map(e=>e.videoCodec).filter(n);return i.length+r.length===0&&r.push("avc1.42e01e"),new Promise((t,n)=>{let a=e=>{let s=e.shift();this.getMediaKeysPromise(s,i,r).then(e=>t({keySystem:s,mediaKeys:e})).catch(t=>{e.length?a(e):t instanceof sL?n(t):n(new sL({type:o.KEY_SYSTEM_ERROR,details:l.KEY_SYSTEM_NO_ACCESS,error:t,fatal:!0},t.message))})};a(e)})}requestMediaKeySystemAccess(e,t){let{requestMediaKeySystemAccessFunc:n}=this.config;if("function"!=typeof n){let e=`Configured requestMediaKeySystemAccess is not a function ${n}`;return null===nb&&"http:"===self.location.protocol&&(e=`navigator.requestMediaKeySystemAccess is not available over insecure protocol ${location.protocol}`),Promise.reject(Error(e))}return n(e,t)}getMediaKeysPromise(e,t,n){let i=nx(e,t,n,this.config.drmSystemOptions),r=this.keySystemAccessPromises[e],a=null==r?void 0:r.keySystemAccess;if(!a){this.log(`Requesting encrypted media "${e}" key-system access with config: ${tt(i)}`),a=this.requestMediaKeySystemAccess(e,i);let t=this.keySystemAccessPromises[e]={keySystemAccess:a};return a.catch(t=>{this.log(`Failed to obtain access to key-system "${e}": ${t}`)}),a.then(n=>{this.log(`Access for key-system "${n.keySystem}" obtained`);let i=this.fetchServerCertificate(e);return this.log(`Create media-keys for "${e}"`),t.mediaKeys=n.createMediaKeys().then(n=>(this.log(`Media-keys created for "${e}"`),t.hasMediaKeys=!0,i.then(t=>t?this.setMediaKeysServerCertificate(n,e,t):n))),t.mediaKeys.catch(t=>{this.error(`Failed to create media-keys for "${e}"}: ${t}`)}),t.mediaKeys})}return a.then(()=>r.mediaKeys)}createMediaKeySessionContext({decryptdata:e,keySystem:t,mediaKeys:n}){this.log(`Creating key-system session "${t}" keyId: ${N.hexDump(e.keyId||[])}`);let i=n.createSession(),r={decryptdata:e,keySystem:t,mediaKeys:n,mediaKeysSession:i,keyStatus:"status-pending"};return this.mediaKeySessions.push(r),r}renewKeySession(e){let t=e.decryptdata;if(t.pssh){let n=this.createMediaKeySessionContext(e),i=this.getKeyIdString(t),r="cenc";this.keyIdToKeySessionPromise[i]=this.generateRequestWithPreferredKeySession(n,r,t.pssh.buffer,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(e)}getKeyIdString(e){if(!e)throw Error("Could not read keyId of undefined decryptdata");if(null===e.keyId)throw Error("keyId is null");return N.hexDump(e.keyId)}updateKeySession(e,t){var n;let i=e.mediaKeysSession;return this.log(`Updating key-session "${i.sessionId}" for keyID ${N.hexDump((null==(n=e.decryptdata)?void 0:n.keyId)||[])} 279 } (data length: ${t?t.byteLength:t})`),i.update(t)}getSelectedKeySystemFormats(){return Object.keys(this.keySystemAccessPromises).map(e=>({keySystem:e,hasMediaKeys:this.keySystemAccessPromises[e].hasMediaKeys})).filter(({hasMediaKeys:e})=>!!e).map(({keySystem:e})=>ny(e)).filter(e=>!!e)}getKeySystemAccess(e){return this.getKeySystemSelectionPromise(e).then(({keySystem:e,mediaKeys:t})=>this.attemptSetMediaKeys(e,t))}selectKeySystem(e){return new Promise((t,n)=>this.getKeySystemSelectionPromise(e).then(({keySystem:e})=>{let i=ny(e);i?t(i):n(Error(`Unable to find format for key-system "${e}"`))}).catch(n))}selectKeySystemFormat(e){let t=Object.keys(e.levelkeys||{});return this.keyFormatPromise||(this.log(`Selecting key-system from fragment (sn: ${e.sn} ${e.type}: ${e.level}) key formats ${t.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(t)),this.keyFormatPromise}getKeyFormatPromise(e){let t=n_(this.config),n=e.map(nv).filter(e=>!!e&&-1!==t.indexOf(e));return this.selectKeySystem(n)}loadKey(e){let t=e.keyInfo.decryptdata,n=this.getKeyIdString(t),i=`(keyId: ${n} format: "${t.keyFormat}" method: ${t.method} uri: ${t.uri})`;this.log(`Starting session for key ${i}`);let r=this.keyIdToKeySessionPromise[n];return r||(r=this.getKeySystemForKeyPromise(t).then(({keySystem:n,mediaKeys:r})=>(this.throwIfDestroyed(),this.log(`Handle encrypted media sn: ${e.frag.sn} ${e.frag.type}: ${e.frag.level} using key ${i}`),this.attemptSetMediaKeys(n,r).then(()=>(this.throwIfDestroyed(),this.createMediaKeySessionContext({keySystem:n,mediaKeys:r,decryptdata:t}))))),(this.keyIdToKeySessionPromise[n]=r.then(e=>{let n="cenc",i=t.pssh?t.pssh.buffer:null;return this.generateRequestWithPreferredKeySession(e,n,i,"playlist-key")}
279)).catch(e=>this.handleError(e))),r}throwIfDestroyed(e="Invalid state"){if(!this.hls)throw Error("invalid state")}handleError(e){this.hls&&(this.error(e.message),e instanceof sL?this.hls.trigger(u.ERROR,e.data):this.hls.trigger(u.ERROR,{type:o.KEY_SYSTEM_ERROR,details:l.KEY_SYSTEM_NO_KEYS,error:e,fatal:!0}))}getKeySystemForKeyPromise(e){let t=this.getKeyIdString(e),n=this.keyIdToKeySessionPromise[t];if(!n){let t=nv(e.keyFormat),n=t?[t]:n_(this.config);return this.attemptKeySystemAccess(n)}return n}getKeySystemSelectionPromise(e){if(e.length||(e=n_(this.config)),0===e.length)throw new sL({type:o.KEY_SYSTEM_ERROR,details:l.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${tt({drmSystems:this.config.drmSystems})}`);return this.attemptKeySystemAccess(e)}attemptSetMediaKeys(e,t){if(this.mediaKeys===t)return Promise.resolve();let n=this.setMediaKeysQueue.slice();this.log(`Setting media-keys for "${e}"`);let i=Promise.all(n).then(()=>{if(!this.media)throw this.mediaKeys=null,Error("Attempted to set mediaKeys without media element attached");return this.media.setMediaKeys(t)});return this.mediaKeys=t,this.setMediaKeysQueue.push(i),i.then(()=>{this.log(`Media-keys set for "${e}"`),n.push(i),this.setMediaKeysQueue=this.setMediaKeysQueue.filter(e=>-1===n.indexOf(e))})}generateRequestWithPreferredKeySession(e,t,n,i){var r,a;let s=null==(r=this.config.drmSystems)||null==(r=r[e.keySystem])?void 0:r.generateRequest;if(s)try{let i=s.call(this.hls,t,n,e);if(!i)throw Error("Invalid response from configured generateRequest filter");t=i.initDataType,n=i.initData?i.initData:null,e.decryptdata.pssh=n?new Uint8Array(n):null}catch(e){if(this.warn(e.message),null!=(a=this.hls)&&a.config.debug)throw e}if(null===n)return this.log(`Skipping key-session request for "${i}" (no initData)`),Promise.resolve(e);let u=this.getKeyIdString(e.decryptdata);this.log(`Generating key-session request for "${i}": ${u} (init data type: ${t} length: ${n?n.byteLength:null})`);let c=new ip,d=e._onmessage=t=>{let n=e.mediaKeysSession;if(!n){c.emit("error",Error("invalid state"));return}let{messageType:i,message:r}=t;this.log(`"${i}" message event for session "${n.sessionId}" message size: ${r.byteLength}`),"license-request"===i||"license-renewal"===i?this.renewLicense(e,r).catch(e=>{c.eventNames().length?c.emit("error",e):this.handleError(e)}):"license-release"===i?e.keySystem===nm.FAIRPLAY&&(this.updateKeySession(e,nc("acknowledged")),this.removeSession(e)):this.warn(`unhandled media key message type "${i}"`)},h=e._onkeystatuseschange=t=>{if(!e.mediaKeysSession){c.emit("error",Error("invalid state"));return}this.onKeyStatusChange(e);let n=e.keyStatus;c.emit("keyStatus",n),"expired"===n&&(this.warn(`${e.keySystem} expired for key ${u}`),this.renewKeySession(e))};sw(e.mediaKeysSession,"message",d),sw(e.mediaKeysSession,"keystatuseschange",h);let f=new Promise((e,t)=>{c.on("error",t),c.on("keyStatus",n=>{n.startsWith("usable")?e():"output-restricted"===n?t(new sL({type:o.KEY_SYSTEM_ERROR,details:l.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):"internal-error"===n?t(new sL({type:o.KEY_SYSTEM_ERROR,details:l.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},`key status changed to "${n}"`)):"expired"===n?t(Error("key expired while generating request")):this.warn(`unhandled key status change "${n}"`)})});return e.mediaKeysSession.generateRequest(t,n).then(()=>{var t;this.log(`Request generated for key-session "${null==(t=e.mediaKeysSession)?void 0:t.sessionId}" keyId: ${u}`)}).catch(e=>{throw new sL({type:o.KEY_SYSTEM_ERROR,details:l.KEY_SYSTEM_NO_SESSION,error:e,fatal:!1},`Error generating key-session request: ${e}`)}).then(()=>f).catch(t=>{throw c.removeAllListeners(),this.removeSession(e),t}).then(()=>(c.removeAllListeners(),e))}onKeyStatusChange(e){e.mediaKeysSession.keyStatuses.forEach((t,n)=>{if("string"==typeof n&&"object"==typeof t){let e=n;n=t,t=e}this.log(`key status change "${t}" for keyStatuses keyId: ${N.hexDump("buffer"in n?new Uint8Array(n.buffer,n.byteOffset,n.byteLength):new Uint8Array(n))} session keyId: ${N.hexDump(new Uint8Array(e.decryptdata.keyId||[]))} uri: ${e.decryptdata.uri}`),e.keyStatus=t})}fetchServerCertificate(e){let t=this.config,n=new t.loader(t),i=this.getServerCertificateUrl(e);return i?(this.log(`Fetching server certificate for "${e}"`),new Promise((r,a)=>{let s={responseType:"arraybuffer",url:i},u=t.certLoadPolicy.default,c={loadPolicy:u,timeout:u.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},d={onSuccess:(e,t,n,i)=>{r(e.data)},onError:(t,n,r,u)=>{a(new sL({type:o.KEY_SYSTEM_ERROR,details:l.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:r,response:_({url:s.url,data:void 0},t)},`"${e}" certificate request failed (${i}). Status: ${t.code} (${t.text})`))},onTimeout:(t,n,r)=>{a(new sL({type:o.KEY_SYSTEM_ERROR,details:l.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:r,response:{url:s.url,data:void 0}},`"${e}" certificate request timed out (${i})`))},onAbort:(e,t,n)=>{a(Error("aborted"))}};n.load(s,c,d)})):Promise.resolve()}setMediaKeysServerCertificate(e,t,n){return new Promise((i,r)=>{e.setServerCertificate(n).then(r=>{this.log(`setServerCertificate ${r?"success":"not supported by CDM"} (${null==n?void 0:n.byteLength}) on "${t}"`),i(e)}).catch(e=>{r(new sL({type:o.KEY_SYSTEM_ERROR,details:l.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:e,fatal:!0},e.message))})})}renewLicense(e,t){return this.requestLicense(e,new Uint8Array(t)).then(t=>this.updateKeySession(e,new Uint8Array(t)).catch(e=>{throw new sL({type:o.KEY_SYSTEM_ERROR,details:l.KEY_SYSTEM_SESSION_UPDATE_FAILED,error:e,fatal:!0},e.message)}))}unpackPlayReadyKeyMessage(e,t){let n=String.fromCharCode.apply(null,new Uint16Array(t.buffer));if(!n.includes("PlayReadyKeyMessage"))return e.setRequestHeader("Content-Type","text/xml; charset=utf-8"),t;let i=new DOMParser().parseFromString(n,"application/xml"),r=i.querySelectorAll("HttpHeader");if(r.length>0){let t;for(let n=0,i=r.length;n<i;n++){var a,s;let i=null==(a=(t=r[n]).querySelector("name"))?void 0:a.textContent,o=null==(s=t.querySelector("value"))?void 0:s.textContent;i&&o&&e.setRequestHeader(i,o)}}let o=i.querySelector("Challenge"),l=null==o?void 0:o.textContent;
279if(!l)throw Error("Cannot find <Challenge> in key message");return nc(atob(l))}setupLicenseXHR(e,t,n,i){let r=this.config.licenseXhrSetup;return r?Promise.resolve().then(()=>{if(!n.decryptdata)throw Error("Key removed");return r.call(this.hls,e,t,n,i)}).catch(a=>{if(!n.decryptdata)throw a;return e.open("POST",t,!0),r.call(this.hls,e,t,n,i)}).then(n=>(e.readyState||e.open("POST",t,!0),{xhr:e,licenseChallenge:n||i})):(e.open("POST",t,!0),Promise.resolve({xhr:e,licenseChallenge:i}))}requestLicense(e,t){let n=this.config.keyLoadPolicy.default;return new Promise((i,r)=>{let a=this.getLicenseServerUrlOrThrow(e.keySystem);this.log(`Sending license request to URL: ${a}`);let s=new XMLHttpRequest;s.responseType="arraybuffer",s.onreadystatechange=()=>{if(!this.hls||!e.mediaKeysSession)return r(Error("invalid state"));if(4===s.readyState){if(200===s.status){this._requestLicenseFailureCount=0;let t=s.response;this.log(`License received ${t instanceof ArrayBuffer?t.byteLength:t}`);let n=this.config.licenseResponseCallback;if(n)try{t=n.call(this.hls,s,a,e)}catch(e){this.error(e)}i(t)}else{let u=n.errorRetry,c=u?u.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>c||s.status>=400&&s.status<500)r(new sL({type:o.KEY_SYSTEM_ERROR,details:l.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:s,response:{url:a,data:void 0,code:s.status,text:s.statusText}},`License Request XHR failed (${a}). Status: ${s.status} (${s.statusText})`));else{let n=c-this._requestLicenseFailureCount+1;this.warn(`Retrying license request, ${n} attempts left`),this.requestLicense(e,t).then(i,r)}}}},e.licenseXhr&&e.licenseXhr.readyState!==XMLHttpRequest.DONE&&e.licenseXhr.abort(),e.licenseXhr=s,this.setupLicenseXHR(s,a,e,t).then(({xhr:t,licenseChallenge:n})=>{e.keySystem==nm.PLAYREADY&&(n=this.unpackPlayReadyKeyMessage(t,n)),t.send(n)})})}onDestroying(){this.unregisterListeners(),this._clear()}onMediaAttached(e,t){if(!this.config.emeEnabled)return;let n=t.media;this.media=n,sw(n,"encrypted",this.onMediaEncrypted),sw(n,"waitingforkey",this.onWaitingForKey)}onMediaDetached(){let e=this.media;e&&(sT(e,"encrypted",this.onMediaEncrypted),sT(e,"waitingforkey",this.onWaitingForKey),this.media=null,this.mediaKeys=null)}_clear(){var e;if(this._requestLicenseFailureCount=0,this.keyIdToKeySessionPromise={},!this.mediaKeys&&!this.mediaKeySessions.length)return;let t=this.media,n=this.mediaKeySessions.slice();this.mediaKeySessions=[],this.mediaKeys=null,nS.clearKeyUriToKeyIdMap();let i=n.length;sS.CDMCleanupPromise=Promise.all(n.map(e=>this.removeSession(e)).concat(null==t||null==(e=t.setMediaKeys(null))?void 0:e.catch(e=>{var t;this.log(`Could not clear media keys: ${e}`),null==(t=this.hls)||t.trigger(u.ERROR,{type:o.OTHER_ERROR,details:l.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR,fatal:!1,error:Error(`Could not clear media keys: ${e}`)})}))).catch(e=>{var t;this.log(`Could not close sessions and clear media keys: ${e}`),null==(t=this.hls)||t.trigger(u.ERROR,{type:o.OTHER_ERROR,details:l.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:Error(`Could not close sessions and clear media keys: ${e}`)})}).then(()=>{i&&this.log("finished closing key sessions and clearing media keys")})}onManifestLoading(){this.keyFormatPromise=null}onManifestLoaded(e,{sessionKeys:t}){if(t&&this.config.emeEnabled&&!this.keyFormatPromise){let e=t.reduce((e,t)=>(-1===e.indexOf(t.keyFormat)&&e.push(t.keyFormat),e),[]);this.log(`Selecting key-system from session-keys ${e.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(e)}}removeSession(e){let{mediaKeysSession:t,licenseXhr:n}=e;if(t){this.log(`Remove licenses and keys and close session ${t.sessionId}`),e._onmessage&&(t.removeEventListener("message",e._onmessage),e._onmessage=void 0),e._onkeystatuseschange&&(t.removeEventListener("keystatuseschange",e._onkeystatuseschange),e._onkeystatuseschange=void 0),n&&n.readyState!==XMLHttpRequest.DONE&&n.abort(),e.mediaKeysSession=e.decryptdata=e.licenseXhr=void 0;let i=this.mediaKeySessions.indexOf(e);i>-1&&this.mediaKeySessions.splice(i,1);let{drmSystemOptions:r}=this.config;
279return(nE(r)?new Promise((e,n)=>{self.setTimeout(()=>n(Error("MediaKeySession.remove() timeout")),8e3),t.remove().then(e)}):Promise.resolve()).catch(e=>{var t;this.log(`Could not remove session: ${e}`),null==(t=this.hls)||t.trigger(u.ERROR,{type:o.OTHER_ERROR,details:l.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR,fatal:!1,error:Error(`Could not remove session: ${e}`)})}).then(()=>t.close()).catch(e=>{var t;this.log(`Could not close session: ${e}`),null==(t=this.hls)||t.trigger(u.ERROR,{type:o.OTHER_ERROR,details:l.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:Error(`Could not close session: ${e}`)})})}}}sS.CDMCleanupPromise=void 0;class sL extends Error{constructor(e,t){super(t),this.data=void 0,e.error||(e.error=Error(t)),this.data=e,e.err=e.error}}class sP{constructor(e){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=e,this.registerListeners()}setStreamController(e){this.streamController=e}
279registerListeners(){this.hls.on(u.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.on(u.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListeners(){this.hls.off(u.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.off(u.MEDIA_DETACHING,this.onMediaDetaching,this)}destroy(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null}onMediaAttaching(e,t){let n=this.hls.config;if(n.capLevelOnFPSDrop){let e=t.media instanceof self.HTMLVideoElement?t.media:null;this.media=e,e&&"function"==typeof e.getVideoPlaybackQuality&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),n.fpsDroppedMonitoringPeriod)}}onMediaDetaching(){this.media=null}checkFPS(e,t,n){let i=performance.now();if(t){if(this.lastTime){let e=i-this.lastTime,r=n-this.lastDroppedFrames,a=t-this.lastDecodedFrames,s=1e3*r/e,o=this.hls;if(o.trigger(u.FPS_DROP,{currentDropped:r,currentDecoded:a,totalDroppedFrames:n}),s>0&&r>o.config.fpsDroppedMonitoringThreshold*a){let e=o.currentLevel;o.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+e),e>0&&(-1===o.autoLevelCapping||o.autoLevelCapping>=e)&&(e-=1,o.trigger(u.FPS_DROP_LEVEL_CAPPING,{level:e,droppedLevel:o.currentLevel}),o.autoLevelCapping=e,this.streamController.nextLevelSwitch())}}this.lastTime=i,this.lastDroppedFrames=n,this.lastDecodedFrames=t}}checkFPSInterval(){let e=this.media;if(e){if(this.isVideoPlaybackQualityAvailable){let t=e.getVideoPlaybackQuality();this.checkFPS(e,t.totalVideoFrames,t.droppedVideoFrames)}else this.checkFPS(e,e.webkitDecodedFrameCount,e.webkitDroppedFrameCount)}}}function sM(e,t){let n;try{n=new Event("addtrack")}catch(e){(n=document.createEvent("Event")).initEvent("addtrack",!1,!1)}n.track=e,t.dispatchEvent(n)}function sA(e,t){let n=e.mode;if("disabled"===n&&(e.mode="hidden"),e.cues&&!e.cues.getCueById(t.id))try{if(e.addCue(t),!e.cues.getCueById(t.id))throw Error(`addCue is failed for: ${t}`)}catch(n){A.debug(`[texttrack-utils]: ${n}`);try{let n=new self.TextTrackCue(t.startTime,t.endTime,t.text);n.id=t.id,e.addCue(n)}catch(e){A.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${e}`)}}"disabled"===n&&(e.mode=n)}function sI(e,t){let n=e.mode;if("disabled"===n&&(e.mode="hidden"),e.cues)for(let n=e.cues.length;n--;)t&&e.cues[n].removeEventListener("enter",t),e.removeCue(e.cues[n]);"disabled"===n&&(e.mode=n)}function sR(e,t,n,i){let r=e.mode;if("disabled"===r&&(e.mode="hidden"),e.cues&&e.cues.length>0){let r=sD(e.cues,t,n);for(let t=0;t<r.length;t++)(!i||i(r[t]))&&e.removeCue(r[t])}"disabled"===r&&(e.mode=r)}function sk(e,t){let n;if(t<=e[0].startTime)return 0;let i=e.length-1;if(t>e[i].endTime)return -1;let r=0,a=i;for(;r<=a;)if(t<e[n=Math.floor((a+r)/2)].startTime)a=n-1;else{if(!(t>e[n].startTime)||!(r<i))return n;r=n+1}return e[r].startTime-t<t-e[a].startTime?r:a}function sD(e,t,n){let i=[],r=sk(e,t);if(r>-1)for(let a=r,s=e.length;a<s;a++){let r=e[a];if(r.startTime>=t&&r.endTime<=n)i.push(r);else if(r.startTime>n)break}return i}function sN(e){let t=[];for(let n=0;n<e.length;n++){let i=e[n];("subtitles"===i.kind||"captions"===i.kind)&&i.label&&t.push(e[n])}return t}class sF extends r7{constructor(e){super(e,"subtitle-track-controller"),this.media=null,this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.queuedDefaultTrack=-1,this.useTextTrackPolling=!1,this.subtitlePollingInterval=-1,this._subtitleDisplay=!0,this.asyncPollTrackChange=()=>this.pollTrackChange(0),this.onTextTracksChanged=()=>{if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;let e=null,t=sN(this.media.textTracks);for(let n=0;n<t.length;n++)if("hidden"===t[n].mode)e=t[n];else if("showing"===t[n].mode){e=t[n];break}let n=this.findTrackForTextTrack(e);this.subtitleTrack!==n&&this.setSubtitleTrack(n)},this.registerListeners()}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,this.onTextTracksChanged=this.asyncPollTrackChange=null,super.destroy()}get subtitleDisplay(){return this._subtitleDisplay}set subtitleDisplay(e){this._subtitleDisplay=e,this.trackId>-1&&this.toggleTrackModes()}registerListeners(){let{hls:e}=this;
vendor: 1,686 bytes, line 279
279e.on(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.MANIFEST_PARSED,this.onManifestParsed,this),e.on(u.LEVEL_LOADING,this.onLevelLoading,this),e.on(u.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(u.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(u.ERROR,this.onError,this)}unregisterListeners(){let{hls:e}=this;e.off(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.MANIFEST_PARSED,this.onManifestParsed,this),e.off(u.LEVEL_LOADING,this.onLevelLoading,this),e.off(u.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(u.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(u.ERROR,this.onError,this)}onMediaAttached(e,t){this.media=t.media,this.media&&(this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange))}pollTrackChange(e){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.onTextTracksChanged,e)}onMediaDetaching(e,t){let n=this.media;if(!n)return;let i=!!t.transferMedia;self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||n.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId),this.subtitleTrack=-1,this.media=null,i||sN(n.textTracks).forEac
279h(e=>{sI(e)})}onManifestLoading(){this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0}onManifestParsed(e,t){this.tracks=t.subtitleTracks}onSubtitleTrackLoaded(e,t){let{id:n,groupId:i,details:r}=t,a=this.tracksInGroup[n];if(!a||a.groupId!==i){this.warn(`Subtitle track with id:${n} and group:${i} not found in active group ${null==a?void 0:a.groupId}`);return}let s=a.details;a.details=t.details,this.log(`Subtitle track ${n} "${a.name}" lang:${a.lang} group:${i} loaded [${r.startSN}-${r.endSN}]`),n===this.trackId&&this.playlistLoaded(n,t,s)}onLevelLoading(e,t){this.switchLevel(t.level)}onLevelSwitching(e,t){this.switchLevel(t.level)}switchLevel(e){let t=this.hls.levels[e];if(!t)return;let n=t.subtitleGroups||null,i=this.groupIds,r=this.currentTrack;if(!n||(null==i?void 0:i.length)!==(null==n?void 0:n.length)||null!=n&&n.some(e=>(null==i?void 0:i.indexOf(e))===-1)){this.groupIds=n,this.trackId=-1,this.currentTrack=null;let e=this.tracks.filter(e=>!n||-1!==n.indexOf(e.groupId));if(e.length)this.selectDefaultTrack&&!e.some(e=>e.default)&&(this.selectDefaultTrack=!1),e.forEach((e,t)=>{e.id=t});else if(!r&&!this.tracksInGroup.length)return;this.tracksInGroup=e;let t=this.hls.config.subtitlePreference;if(!r&&t){this.selectDefaultTrack=!1;let n=to(t,e);if(n>-1)r=e[n];else{let e=to(t,this.tracks);r=this.tracks[e]}}let i=this.findTrackId(r);-1===i&&r&&(i=this.findTrackId(null));let a={subtitleTracks:e};this.log(`Updating subtitle tracks, ${e.length} track(s) found in "${null==n?void 0:n.join(",")}" group-id`),this.hls.trigger(u.SUBTITLE_TRACKS_UPDATED,a),-1!==i&&-1===this.trackId&&this.setSubtitleTrack(i)}}findTrackId(e){let t=this.tracksInGroup,n=this.selectDefaultTrack;for(let i=0;i<t.length;i++){let r=t[i];if((!n||r.default)&&(n||e)&&(!e||tl(r,e)))return i}if(e){for(let n=0;n<t.length;n++){let i=t[n];if(ae(e.attrs,i.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return n}for(let n=0;n<t.length;n++){let i=t[n];if(ae(e.attrs,i.attrs,["LANGUAGE"]))return n}}return -1}findTrackForTextTrack(e){if(e){let t=this.tracksInGroup;for(let n=0;n<t.length;n++)if(at(t[n],e))return n}return -1}onError(e,t){!t.fatal&&t.context&&(t.context.type!==h.SUBTITLE_TRACK||t.context.id!==this.trackId||this.groupIds&&-1===this.groupIds.indexOf(t.context.groupId)||this.checkRetry(t))}get allSubtitleTracks(){return this.tracks}get subtitleTracks(){return this.tracksInGroup}get subtitleTrack(){return this.trackId}set subtitleTrack(e){this.selectDefaultTrack=!1,this.setSubtitleTrack(e)}setSubtitleOption(e){if(this.hls.config.subtitlePreference=e,e){if(-1===e.id)return this.setSubtitleTrack(-1),null;let t=this.allSubtitleTracks;if(this.selectDefaultTrack=!1,t.length){let n=this.currentTrack;if(n&&tl(e,n))return n;let i=to(e,this.tracksInGroup);if(i>-1){let e=this.tracksInGroup[i];return this.setSubtitleTrack(i),e}if(n);else{let n=to(e,t);if(n>-1)return t[n]}}}return null}loadPlaylist(e){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentTrack)&&this.scheduleLoading(this.currentTrack,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);let n=e.id,i=e.groupId,r=this.getUrlWithDirectives(e.url,t),a=e.details,s=null==a?void 0:a.age;this.log(`Loading subtitle ${n} "${e.name}" lang:${e.lang} group:${i}${(null==t?void 0:t.msn)!==void 0?" at sn "+t.msn+" part "+t.part:""}${s&&a.live?" age "+s.toFixed(1)+(a.type?" "+a.type:""):""} ${r}`),this.hls.trigger(u.SUBTITLE_TRACK_LOADING,{url:r,id:n,groupId:i,deliveryDirectives:t||null,track:e})}toggleTrackModes(){let e;let{media:t}=this;if(!t)return;let n=sN(t.textTracks),i=this.currentTrack;if(!i||(e=n.filter(e=>at(i,e))[0])||this.warn(`Unable to find subtitle TextTrack with name "${i.name}" and language "${i.lang}"`),[].slice.call(n).forEach(t=>{"disabled"!==t.mode&&t!==e&&(t.mode="disabled")}),e){let t=this.subtitleDisplay?"showing":"hidden";e.mode!==t&&(e.mode=t)}}setSubtitleTrack(e){let t=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=e;return}if(e<-1||e>=t.length||!r(e)){this.warn(`Invalid subtitle track id: ${e}`);return}this.selectDefaultTrack=!1;let n=this.currentTrack,i=t[e]||null;if(this.trackId=e,this.currentTrack=i,this.toggleTrackModes(),!i){this.hls.trigger(u.SUBTITLE_TRACK_SWITCH,{id:e});return}let a=!!i.details&&!i.details.live;if(e===this.trackId&&i===n&&a)return;this.log(`Switching to subtitle-track ${e}`+(i?` "${i.name}" lang:${i.lang} group:${i.groupId}`:""));let{id:s,groupId:o="",name:l,type:c,url:d}=i;this.hls.trigger(u.SUBTITLE_TRACK_SWITCH,{id:s,groupId:o,name:l,type:c,url:d});let h=this.switchParams(i.url,null==n?void 0:n.details,i.details);this.loadPlaylist(h)}}function sO(){try{return crypto.randomUUID()}catch(e){try{let e=URL.createObjectURL(new Blob),t=e.toString();return URL.revokeObjectURL(e),t.slice(t.lastIndexOf("/")+1)}catch(t){let e=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{let n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?n:3&n|8).toString(16)})}}}function sj(e){let t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return(t>>>0).toString()}let sU=.025,sV=function(e){return e[e.Point=0]="Point",e[e.Range=1]="Range",e}({});function sB(e,t,n){return`${e.identifier}-${n+1}-${sj(t)}`}class sH{constructor(e,t){this.base=void 0,this._duration=null,this._timelineStart=null,this.appendInPlaceDisabled=void 0,this.appendInPlaceStarted=void 0,this.dateRange=void 0,this.hasPlayed=!1,this.cumulativeDuration=0,this.resumeOffset=NaN,this.playoutLimit=NaN,this.restrictions={skip:!1,jump:!1},this.snapOptions={out:!1,in:!1},this.assetList=[],this.assetListLoader=void 0,this.assetListResponse=null,this.resumeAnchor=void 0,this.error=void 0,this.resetOnResume=void 0,this.base=t,this.dateRange=e,this.setDateRange(e)}setDateRange(e){this.dateRange=e,this.resumeOffset=e.attr.optionalFloat("X-RESUME-OFFSET",this.resumeOffset),this.playoutLimit=e.attr.optionalFloat("X-PLAYOUT-LIMIT",this.playoutLimit),this.restrictions=e.attr.enumeratedStringList("X-RESTRICT",this.restrictions),this.snapOptions=e.attr.enumeratedStringList("X-SNAP",this.snapOptions)}reset(){var e;this.appendInPlaceStarted=!1,null==(e=this.assetListLoader)||e.destroy(),this.assetListLoader=void 0,this.supplementsPrimary||(this.assetListResponse=null,this.assetList=[],this._duration=null)}isAssetPastPlayoutLimit(e){var t;if(e>0&&e>=this.assetList.length)return!0;let n=this.playoutLimit;return!(e<=0||isNaN(n))&&(0===n||((null==(t=this.assetList[e])?void 0:t.startOffset)||0)>n)}findAssetIndex(e){return this.assetList.indexOf(e)}get identifier(){return this.dateRange.id}get startDate(){return this.dateRange.startDate}get startTime(){let e=this.dateRange.startTime;if(this.snapOptions.out){let t=this.dateRange.tagAnchor;if(t)return sG(e,t)}return e}get startOffset(){return this.cue.pre?0:this.startTime}get startIsAligned(){if(0===this.startTime||this.snapOptions.out)return!0;let e=this.dateRange.tagAnchor;if(e){let t=this.dateRange.startTime,n=sG(t,e);return t-n<.1}return!1}get resumptionOffset(){let e=this.resumeOffset,t=r(e)?e:this.duration;return this.cumulativeDuration+t}get resumeTime(){let e=this.startOffset+this.resumptionOffset;if(this.snapOptions.in){let t=this.resumeAnchor;if(t)return sG(e,t)}return e}get appendInPlace(){return!!this.appendInPlaceStarted||!this.appendInPlaceDisabled&&!!(!this.cue.once&&!this.cue.pre&&this.startIsAligned&&(isNaN(this.playoutLimit)&&isNaN(this.resumeOffset)||this.resumeOffset&&this.duration&&Math.abs(this.resumeOffset-this.duration)<sU))}set appendInPlace(e){if(this.appendInPlaceStarted){this.resetOnResume=!e;return}this.appendInPlaceDisabled=!e}get timelineStart(){return null!==this._timelineStart?this._timelineStart:this.startTime}set timelineStart(e){this._timelineStart=e}get duration(){let e;let t=this.playoutLimit;return e=null!==this._duration?this._duration:this.dateRange.duration?this.dateRange.duration:this.dateRange.plannedDuration||0,!isNaN(t)&&t<e&&(e=t),e}set duration(e){this._duration=e}get cue(){return this.dateRange.cue}get timelineOccupancy(){return"RANGE"===this.dateRange.attr["X-TIMELINE-OCCUPIES"]?sV.Range:sV.Point}get supplementsPrimary(){return"PRIMARY"===this.dateRange.attr["X-TIMELINE-STYLE"]}get contentMayVary(){return"NO"!==this.dateRange.attr["X-CONTENT-MAY-VARY"]}get assetUrl(){return this.dateRange.attr["X-ASSET-URI"]}get assetListUrl(){return this.dateRange.attr["X-ASSET-LIST"]}get baseUrl(){return this.base.url}get assetListLoaded(){return this.assetList.length>0||null!==this.assetListResponse}toString(){return sW(this)}}function sG(e,t){return e-t.start<t.duration/2&&!(Math.abs(e-(t.start+t.duration))<sU)?t.start:t.start+t.duration}function sz(e,t,n){let i=new self.URL(e,n);return"data:"!==i.protocol&&i.searchParams.set("_HLS_primary_id",t),i}function sq(e,t){for(;null!=(n=e.assetList[++t])&&n.error;)var n;return t}function sW(e){return`["${e.identifier}" ${e.cue.pre?"<pre>":e.cue.post?"<post>":""}${e.timelineStart.toFixed(2)}-${e.resumeTime.toFixed(2)}]`}function s$(e){let t=e.timelineStart,n=e.duration||0;return`["${e.identifier}" ${t.toFixed(2)}-${(t+n).toFixed(2)}]`}class sZ{constructor(e,t,n,i){this.hls=void 0,this.interstitial=void 0,this.assetItem=void 0,this.tracks=null,this.hasDetail
279s=!1,this.mediaAttached=null,this._currentTime=void 0,this._bufferedEosTime=void 0,this.checkPlayout=()=>{this.reachedPlayout(this.currentTime)&&this.hls&&this.hls.trigger(u.PLAYOUT_LIMIT_REACHED,{})};let r=this.hls=new e(t);this.interstitial=n,this.assetItem=i;let a=()=>{this.hasDetails=!0};r.once(u.LEVEL_LOADED,a),r.once(u.AUDIO_TRACK_LOADED,a),r.once(u.SUBTITLE_TRACK_LOADED,a),r.on(u.MEDIA_ATTACHING,(e,{media:t})=>{this.removeMediaListeners(),this.mediaAttached=t,this.interstitial.playoutLimit&&(t.addEventListener("timeupdate",this.checkPlayout),this.appendInPlace&&r.on(u.BUFFER_APPENDED,()=>{let e=this.bufferedEnd;this.reachedPlayout(e)&&(this._bufferedEosTime=e,r.trigger(u.BUFFERED_TO_END,void 0))}))})}get appendInPlace(){return this.interstitial.appendInPlace}loadSource(){let e=this.hls;if(e){if(e.url)e.levels.length&&!e.started&&e.startLoad(-1,!0);else{let t=this.assetItem.uri;try{t=sz(t,e.config.primarySessionId||"").href}catch(e){}e.loadSource(t)}}}bufferedInPlaceToEnd(e){var t;if(!this.appendInPlace)return!1;if(null!=(t=this.hls)&&t.bufferedToEnd)return!0;if(!e)return!1;let n=Math.min(this._bufferedEosTime||1/0,this.duration),i=this.timelineOffset,r=t2.bufferInfo(e,i,0);return this.getAssetTime(r.end)>=n-.02}reachedPlayout(e){let t=this.interstitial.playoutLimit;return this.startOffset+e>=t}get destroyed(){var e;return!(null!=(e=this.hls)&&e.userConfig)}get assetId(){return this.assetItem.identifier}get interstitialId(){return this.assetItem.parentIdentifier}get media(){var e;return(null==(e=this.hls)?void 0:e.media)||null}get bufferedEnd(){let e=this.media||this.mediaAttached;if(!e)return this._bufferedEosTime?this._bufferedEosTime:this.currentTime;let t=t2.bufferInfo(e,e.currentTime,.001);return this.getAssetTime(t.end)}get currentTime(){let e=this.media||this.mediaAttached;return e?this.getAssetTime(e.currentTime):this._currentTime||0}get duration(){let e=this.assetItem.duration;if(!e)return 0;let t=this.interstitial.playoutLimit;if(t){let n=t-this.startOffset;if(n>0&&n<e)return n}return e}get remaining(){let e=this.duration;return e?Math.max(0,e-this.currentTime):0}get startOffset(){return this.assetItem.startOffset}get timelineOffset(){var e;return(null==(e=this.hls)?void 0:e.config.timelineOffset)||0}set timelineOffset(e){let t=this.timelineOffset;if(e!==t&&Math.abs(e-t)>1/9e4&&this.hls){if(this.hasDetails)throw Error("Cannot set timelineOffset after playlists are loaded");this.hls.config.timelineOffset=e}}getAssetTime(e){return Math.min(Math.max(0,e-this.timelineOffset),this.duration)}removeMediaListeners(){let e=this.mediaAttached;e&&(this._currentTime=e.currentTime,this.bufferSnapShot(),e.removeEventListener("timeupdate",this.checkPlayout))}bufferSnapShot(){if(this.mediaAttached){var e;null!=(e=this.hls)&&e.bufferedToEnd&&(this._bufferedEosTime=this.bufferedEnd)}}destroy(){this.removeMediaListeners(),this.hls&&this.hls.destroy(),this.hls=null,this.tracks=this.mediaAttached=this.checkPlayout=null}attachMedia(e){var t;this.loadSource(),null==(t=this.hls)||t.attachMedia(e)}detachMedia(){var e;this.removeMediaListeners(),this.mediaAttached=null,null==(e=this.hls)||e.detachMedia()}resumeBuffering(){var e;null==(e=this.hls)||e.resumeBuffering()}pauseBuffering(){var e;null==(e=this.hls)||e.pauseBuffering()}transferMedia(){var e;return this.bufferSnapShot(),(null==(e=this.hls)?void 0:e.transferMedia())||null}resetDetails(){let e=this.hls;if(e&&this.hasDetails){e.stopLoad();let t=e=>delete e.details;e.levels.forEach(t),e.allAudioTracks.forEach(t),e.allSubtitleTracks.forEach(t),this.hasDetails=!1}}on(e,t,n){var i;null==(i=this.hls)||i.on(e,t)}once(e,t,n){var i;null==(i=this.hls)||i.once(e,t)}off(e,t,n){var i;null==(i=this.hls)||i.off(e,t)}toString(){var e;return`HlsAssetPlayer: ${s$(this.assetItem)} ${null==(e=this.hls)?void 0:e.sessionId} ${this.appendInPlace?"append-in-place":""}`}}let sY=.033;class sK extends C{constructor(e,t){super("interstitials-sched",t),this.onScheduleUpdate=void 0,this.eventMap={},this.events=null,this.items=null,this.durations={primary:0,playout:0,integrated:0},this.onScheduleUpdate=e}destroy(){this.reset(),this.onScheduleUpdate=null}reset(){this.eventMap={}
279,this.setDurations(0,0,0),this.events&&this.events.forEach(e=>e.reset()),this.events=this.items=null}resetErrorsInRange(e,t){return this.events?this.events.reduce((n,i)=>e<=i.startOffset&&t>i.startOffset?(delete i.error,n+1):n,0):0}get duration(){let e=this.items;return e?e[e.length-1].end:0}get length(){return this.items?this.items.length:0}getEvent(e){return e&&this.eventMap[e]||null}hasEvent(e){return e in this.eventMap}findItemIndex(e,t){if(e.event)return this.findEventIndex(e.event.identifier);let n=-1;e.nextEvent?n=this.findEventIndex(e.nextEvent.identifier)-1:e.previousEvent&&(n=this.findEventIndex(e.previousEvent.identifier)+1);let i=this.items;if(i)for(i[n]||(void 0===t&&(t=e.start),n=this.findItemIndexAtTime(t));n>=0&&null!=(r=i[n])&&r.event;){var r;n--}return n}findItemIndexAtTime(e,t){let n=this.items;if(n)for(let i=0;i<n.length;i++){let r=n[i];if(t&&"primary"!==t&&(r=r[t]),e===r.start||e>r.start&&e<r.end)return i}return -1}findJumpRestrictedIndex(e,t){let n=this.items;if(n)for(let i=e;i<=t&&n[i];i++){let e=n[i].event;if(null!=e&&e.restrictions.jump&&!e.appendInPlace)return i}return -1}findEventIndex(e){let t=this.items;if(t)for(let i=t.length;i--;){var n;if((null==(n=t[i].event)?void 0:n.identifier)===e)return i}return -1}findAssetIndex(e,t){let n=e.assetList,i=n.length;if(i>1)for(let e=0;e<i;e++){let r=n[e];if(!r.error){let n=r.timelineStart;if(t===n||t>n&&(t<n+(r.duration||0)||e===i-1))return e}}return 0}get assetIdAtEnd(){var e;let t=null==(e=this.items)||null==(e=e[this.length-1])?void 0:e.event;if(t){let e=t.assetList,n=e[e.length-1];if(n)return n.identifier}return null}parseInterstitialDateRanges(e,t){let n=e.main.details,{dateRanges:i}=n,r=this.events,a=this.parseDateRanges(i,{url:n.url},t),s=Object.keys(i),o=r?r.filter(e=>!s.includes(e.identifier)):[];a.length&&a.sort((e,t)=>{let n=e.cue.pre,i=e.cue.post,r=t.cue.pre,a=t.cue.post;if(n&&!r)return -1;if(r&&!n||i&&!a)return 1;if(a&&!i)return -1;if(!n&&!r&&!i&&!a){let n=e.startTime,i=t.startTime;if(n!==i)return n-i}return e.dateRange.tagOrder-t.dateRange.tagOrder}),this.events=a,o.forEach(e=>{this.removeEvent(e)}),this.updateSchedule(e,o)}updateSchedule(e,t=[],n=!1){let i=this.events||[];
279if(i.length||t.length||this.length<2){let r=this.items,a=this.parseSchedule(i,e);(n||t.length||(null==r?void 0:r.length)!==a.length||a.some((e,t)=>Math.abs(e.playout.start-r[t].playout.start)>.005||Math.abs(e.playout.end-r[t].playout.end)>.005))&&(this.items=a,this.onScheduleUpdate(t,r))}}parseDateRanges(e,t,n){let i=[],r=Object.keys(e);for(let a=0;a<r.length;a++){let s=r[a],o=e[s];if(o.isInterstitial){let e=this.eventMap[s];e?e.setDateRange(o):(e=new sH(o,t),this.eventMap[s]=e,!1===n&&(e.appendInPlace=n)),i.push(e)}}return i}parseSchedule(e,t){let n=[],i=t.main.details,r=i.live?1/0:i.edge,a=0;if((e=e.filter(e=>!e.error&&!(e.cue.once&&e.hasPlayed))).length){this.resolveOffsets(e,t);let i=0,o=0;if(e.forEach((t,s)=>{let l=t.cue.pre,u=t.cue.post,c=e[s-1]||null,d=t.appendInPlace,h=u?r:t.startOffset,f=t.duration,p=t.timelineOccupancy===sV.Range?f:0,m=t.resumptionOffset,g=(null==c?void 0:c.startTime)===h,v=h+t.cumulativeDuration,y=d?v+f:h+m;if(l||!u&&h<=0){let e=o;o+=p,t.timelineStart=v;let i=a;a+=f,n.push({event:t,start:v,end:y,playout:{start:i,end:a},integrated:{start:e,end:o}})}else{if(!(h<=r))return;if(!g){let r=h-i;if(r>sY){let l=i,u=o;o+=r;let c=a;a+=r;let d={previousEvent:e[s-1]||null,nextEvent:t,start:l,end:l+r,playout:{start:c,end:a},integrated:{start:u,end:o}};n.push(d)}else r>0&&c&&(c.cumulativeDuration+=r,n[n.length-1].end=h)}u&&(y=v),t.timelineStart=v;let l=o;o+=p;let d=a;a+=f,n.push({event:t,start:v,end:y,playout:{start:d,end:a},integrated:{start:l,end:o}})}let _=t.resumeTime;i=u||_>r?r:_}),i<r){var s;let e=i,t=o,l=r-i;o+=l;let u=a;a+=l,n.push({previousEvent:(null==(s=n[n.length-1])?void 0:s.event)||null,nextEvent:null,start:i,end:e+l,playout:{start:u,end:a},integrated:{start:t,end:o}})}this.setDurations(r,a,o)}else{let e=0;n.push({previousEvent:null,nextEvent:null,start:e,end:r,playout:{start:e,end:r},integrated:{start:e,end:r}}),this.setDurations(r,r,r)}return n}setDurations(e,t,n){this.durations={primary:e,playout:t,integrated:n}}resolveOffsets(e,t){let n=t.main.details,i=n.live?1/0:n.edge,a=0,s=-1;e.forEach((o,l)=>{let u=o.cue.pre,c=o.cue.post,d=u?0:c?i:o.startTime;this.updateAssetDurations(o),s===d?o.cumulativeDuration=a:(a=0,s=d),!c&&o.snapOptions.in&&(o.resumeAnchor=ty(null,n.fragments,o.startOffset+o.resumptionOffset,0,0)||void 0),!o.appendInPlace||o.appendInPlaceStarted||this.primaryCanResumeInPlaceAt(o,t)||(o.appendInPlace=!1),!o.appendInPlace&&l+1<e.length&&e[l+1].startTime-e[l].resumeTime<sY&&(e[l+1].appendInPlace=!1,e[l+1].appendInPlace&&this.warn(`Could not change append strategy for abutting event ${o}`));let h=r(o.resumeOffset)?o.resumeOffset:o.duration;a+=h})}primaryCanResumeInPlaceAt(e,t){let n=e.resumeTime,i=e.startTime+e.resumptionOffset;return Math.abs(n-i)>sU?(this.log(`"${e.identifier}" resumption ${n} not aligned with estimated timeline end ${i}`),!1):!Object.keys(t).some(i=>{let r=t[i].details,a=r.edge;if(n>=a)return this.log(`"${e.identifier}" resumption ${n} past ${i} playlist end ${a}`),!1;let s=ty(null,r.fragments,n);if(!s)return this.log(`"${e.identifier}" resumption ${n} does not align with any fragments in ${i} playlist (${r.fragStart}-${r.fragmentEnd})`),!0;let o="audio"===i?.175:0;return!(Math.abs(s.start-n)<sU+o||Math.abs(s.end-n)<sU+o)&&(this.log(`"${e.identifier}" resumption ${n} not aligned with ${i} fragment bounds (${s.start}-${s.end} sn: ${s.sn} cc: ${s.cc})`),!0)})}updateAssetDurations(e){if(!e.assetListLoaded)return;let t=e.timelineStart,n=0,i=!1,r=!1;for(let a=0;a<e.assetList.length;a++){let s=e.assetList[a],o=t+n;s.startOffset=n,s.timelineStart=o,i||(i=null===s.duration),r||(r=!!s.error),n+=s.error?0:s.duration||0}i&&!r?e.duration=Math.max(n,e.duration):e.duration=n}removeEvent(e){e.reset(),delete this.eventMap[e.identifier]}}function sX(e){return`[${e.event?'"'+e.event.identifier+'"':"primary"}: ${e.start.toFixed(2)}-${e.end.toFixed(2)}]`}class sQ{constructor(e){this.hls=void 0,this.hls=e}destroy(){this.hls=null}loadAssetList(e,t){let n;let i=e.assetListUrl;try{n=sz(i,this.hls.sessionId,e.baseUrl)}catch(n){let t=this.assignAssetListError(e,l.ASSET_LIST_LOAD_ERROR,n,i);this.hls.trigger(u.ERROR,t);return}t&&"data:"!==n.protocol&&n.searchParams.set("_HLS_start_offset",""+t);let r=this.hls.config,a=new r.loader(r),s={responseType:"json",url:n.href},o=r.interstitialAssetListLoadPolicy.default,c={loadPolicy:o,timeout:o.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},d={onSuccess:(t,n,i,r)=>{let a=t.data;if(!Array.isArray(null==a?void 0:a.ASSETS)){let t=this.assignAssetListError(e,l.ASSET_LIST_PARSING_ERROR,Error("Invalid interstitial asset list"),i.url,n,r);this.hls.trigger(u.ERROR,t);return}e.assetListResponse=a,this.hls.trigger(u.ASSET_LIST_LOADED,{event:e,assetListResponse:a,networkDetails:r})},onError:(t,n,i,r)=>{let a=this.assignAssetListError(e,l.ASSET_LIST_LOAD_ERROR,Error(`Error loading X-ASSET-LIST: HTTP status ${t.code} ${t.text} (${n.url})`),n.url,r,i);this.hls.trigger(u.ERROR,a)},onTimeout:(t,n,i)=>{let r=this.assignAssetListError(e,l.ASSET_LIST_LOAD_TIMEOUT,Error(`Timeout loading X-ASSET-LIST (${n.url})`),n.url,t,i);this.hls.trigger(u.ERROR,r)}};return a.load(s,c,d),this.hls.trigger(u.ASSET_LIST_LOADING,{event:e}),a}assignAssetListError(e,t,n,i,r,a){return e.error=n,{type:o.NETWORK_E
279RROR,details:t,fatal:!1,interstitial:e,url:i,error:n,networkDetails:a,stats:r}}}function sJ(e){null==e||e.play().catch(()=>{})}class s0 extends C{constructor(e,t){super("interstitials",e.logger),this.HlsPlayerClass=void 0,this.hls=void 0,this.assetListLoader=void 0,this.mediaSelection=null,this.altSelection=null,this.media=null,this.detachedData=null,this.requiredTracks=null,this.manager=null,this.playerQueue=[],this.bufferedPos=-1,this.timelinePos=-1,this.schedule=void 0,this.playingItem=null,this.bufferingItem=null,this.waitingItem=null,this.endedItem=null,this.playingAsset=null,this.endedAsset=null,this.bufferingAsset=null,this.shouldPlay=!1,this.onPlay=()=>{this.shouldPlay=!0},this.onPause=()=>{this.shouldPlay=!1},this.onSeeking=()=>{var e,t;let n=this.currentTime;if(void 0===n||this.playbackDisabled||!this.schedule)return;let i=n-this.timelinePos;if(Math.abs(i)<1/7056e5)return;let r=i<=-.01;this.timelinePos=n,this.bufferedPos=n;let a=this.playingItem;if(!a){this.checkBuffer();return}if(r&&this.schedule.resetErrorsInRange(n,n-i)&&this.updateSchedule(!0),this.checkBuffer(),r&&n<a.start||n>=a.end){let t=this.findItemIndex(a),i=this.schedule.findItemIndexAtTime(n);if(-1===i&&(i=t+(r?-1:1),this.log(`seeked ${r?"back ":""}to position not covered by schedule ${n} (resolving from ${t} to ${i})`)),!this.isInterstitial(a)&&null!=(e=this.media)&&e.paused&&(this.shouldPlay=!1),!r&&i>t){let e=this.schedule.findJumpRestrictedIndex(t+1,i);if(e>t){this.setSchedulePosition(e);return}}this.setSchedulePosition(i);return}let s=this.playingAsset;if(!s){if(this.playingLastItem&&this.isInterstitial(a)){let e=a.event.assetList[0];e&&(this.endedItem=this.playingItem,this.playingItem=null,this.setScheduleToAssetAtTime(n,e))}return}let o=s.timelineStart,l=s.duration||0;(r&&n<o||n>=o+l)&&(null!=(t=a.event)&&t.appendInPlace&&(this.clearInterstitial(a.event,a),this.flushFrontBuffer(n)),this.setScheduleToAssetAtTime(n,s))},this.onTimeupdate=()=>{let e=this.currentTime;if(void 0===e||this.playbackDisabled||!(e>this.timelinePos))return;this.timelinePos=e,e>this.bufferedPos&&this.checkBuffer();let t=this.playingItem;if(!t||this.playingLastItem)return;if(e>=t.end){this.timelinePos=t.end;let e=this.findItemIndex(t);this.setSchedulePosition(e+1)}let n=this.playingAsset;n&&e>=n.timelineStart+(n.duration||0)&&this.setScheduleToAssetAtTime(e,n)},this.onScheduleUpdate=(e,t)=>{let n=this.schedule;if(!n)return;let i=this.playingItem,r=n.events||[],a=n.items||[],s=n.durations,o=e.map(e=>e.identifier),l=!!(r.length||o.length);(l||t)&&this.log(`INTERSTITIALS_UPDATED (${r.length}): ${r} 280Schedule: ${a.map(e=>sX(e))} pos: ${this.timelinePos}`),o.length&&this.log(`Removed events ${o}`);let c=null,d=null;i&&(c=this.updateItem(i,this.timelinePos),this.itemsMatch(i,c)?this.playingItem=c:this.waitingItem=this.endedItem=null),this.waitingItem=this.updateItem(this.waitingItem),this.endedItem=this.updateItem(this.endedItem);let h=this.bufferingItem;if(h&&(d=this.updateItem(h,this.bufferedPos),this.itemsMatch(h,d)?this.bufferingItem=d:h.event&&(this.bufferingItem=this.playingItem,this.clearInterstitial(h.event,null))),e.forEach(e=>{e.assetList.forEach(e=>{this.clearAssetPlayer(e.identifier,null)})}),this.playerQueue.forEach(e=>{if(e.interstitial.appendInPlace){let t=e.assetItem.timelineStart,n=e.timelineOffset-t;if(n)try{e.timelineOffset=t}catch(i){Math.abs(n)>sU&&this.warn(`${i} ("${e.assetId}" ${e.timelineOffset}->${t})`)}}}),l||t){if(this.hls.trigger(u.INTERSTITIALS_UPDATED,{events:r.slice(0),schedule:a.slice(0),durations:s,removedIds:o}),this.isInterstitial(i)&&o.includes(i.event.identifier)){this.warn(`Interstitial "${i.event.identifier}" removed while playing`),this.primaryFallback(i.event);return}i&&this.trimInPlace(c,i),h&&this.trimInPlace(d,h),this.checkBuffer()}},this.hls=e,this.HlsPlayerClass=t,this.assetListLoader=new sQ(e),this.schedule=new sK(this.onScheduleUpdate,e.logger),this.registerListeners()}registerListeners(){let e=this.hls;
280e&&(e.on(u.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(u.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(u.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),e.on(u.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(u.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),e.on(u.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),e.on(u.ASSET_LIST_LOADED,this.onAssetListLoaded,this),e.on(u.BUFFER_APPENDED,this.onBufferAppended,this),e.on(u.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(u.BUFFERED_TO_END,this.onBufferedToEnd,this),e.on(u.MEDIA_ENDED,this.onMediaEnded,this),e.on(u.ERROR,this.onError,this),e.on(u.DESTROYING,this.onDestroying,this))}unregisterListeners(){let e=this.hls;e&&(e.off(u.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(u.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(u.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),e.off(u.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(u.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),e.off(u.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),e.off(u.ASSET_LIST_LOADED,this.onAssetListLoaded,this),e.off(u.BUFFER_CODECS,this.onBufferCodecs,this),e.off(u.BUFFER_APPENDED,this.onBufferAppended,this),e.off(u.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(u.BUFFERED_TO_END,this.onBufferedToEnd,this),e.off(u.MEDIA_ENDED,this.onMediaEnded,this),e.off(u.ERROR,this.onError,this),e.off(u.DESTROYING,this.onDestroying,this))}startLoad(){this.resumeBuffering()}stopLoad(){this.pauseBuffering()}resumeBuffering(){var e;null==(e=this.getBufferingPlayer())||e.resumeBuffering()}pauseBuffering(){var e;null==(e=this.getBufferingPlayer())||e.pauseBuffering()}destroy(){this.unregisterListeners(),this.stopLoad(),this.assetListLoader&&this.assetListLoader.destroy(),this.emptyPlayerQueue(),this.clearScheduleState(),this.schedule&&this.schedule.destroy(),this.media=this.detachedData=this.mediaSelection=this.requiredTracks=this.altSelection=this.schedule=this.manager=null,this.hls=this.HlsPlayerClass=this.log=null,this.assetListLoader=null,this.onPlay=this.onPause=this.onSeeking=this.onTimeupdate=null,this.onScheduleUpdate=null}onDestroying(){let e=this.primaryMedia||this.media;e&&this.removeMediaListeners(e)}removeMediaListeners(e){sT(e,"play",this.onPlay),sT(e,"pause",this.onPause),sT(e,"seeking",this.onSeeking),sT(e,"timeupdate",this.onTimeupdate)}onMediaAttaching(e,t){let n=this.media=t.media;sw(n,"seeking",this.onSeeking),sw(n,"timeupdate",this.onTimeupdate),sw(n,"play",this.onPlay),sw(n,"pause",this.onPause)}onMediaAttached(e,t){let n=this.effectivePlayingItem,i=this.detachedData;if(this.detachedData=null,null===n)this.checkStart();else if(!i){this.clearScheduleState();let e=this.findItemIndex(n);this.setSchedulePosition(e)}}clearScheduleState(){this.playingItem=this.bufferingItem=this.waitingItem=this.endedItem=this.playingAsset=this.endedAsset=this.bufferingAsset=null}onMediaDetaching(e,t){let n=!!t.transferMedia,i=this.media;if(this.media=null,!n&&(i&&this.removeMediaListeners(i),this.detachedData)){let e=this.getBufferingPlayer();e&&(this.playingAsset=this.endedAsset=this.bufferingAsset=this.bufferingItem=this.waitingItem=this.detachedData=null,e.detachMedia()),this.shouldPlay=!1}}get interstitialsManager(){if(!this.hls)return null;if(this.manager)return this.manager;let e=this,t=()=>e.bufferingItem||e.waitingItem,n=t=>t?e.getAssetPlayer(t.identifier):t,i=(t,i,r,s,o)=>{if(t){let l=t[i].start,u=t.event;if(u){if("playout"===i||u.timelineOccupancy!==sV.Point){let e=n(r);(null==e?void 0:e.interstitial)===u&&(l+=e.assetItem.startOffset+e[o])}}else l+=("bufferedPos"===s?a():e[s])-t.start;return l}return 0},r=(t,n)=>{var i,r;if(0!==t&&"primary"!==n&&null!=(i=e.schedule)&&i.length){let i=e.sc
280hedule.findItemIndexAtTime(t),a=null==(r=e.schedule.items)?void 0:r[i];if(a)return t+(a[n].start-a.start)}return t},a=()=>{let t=e.bufferedPos;return t===Number.MAX_VALUE?s("primary"):Math.max(t,0)},s=t=>{var n,i;return null!=(n=e.primaryDetails)&&n.live?e.primaryDetails.edge:(null==(i=e.schedule)?void 0:i.durations[t])||0},o=(t,r)=>{var a,s;let o=e.effectivePlayingItem;if(null!=o&&null!=(a=o.event)&&a.restrictions.skip||!e.schedule)return;e.log(`seek to ${t} "${r}"`);let l=e.effectivePlayingItem,u=e.schedule.findItemIndexAtTime(t,r),c=null==(s=e.schedule.items)?void 0:s[u],d=e.getBufferingPlayer(),h=null==d?void 0:d.interstitial,f=null==h?void 0:h.appendInPlace,p=l&&e.itemsMatch(l,c);if(l&&(f||p)){let a=n(e.playingAsset),s=(null==a?void 0:a.media)||e.primaryMedia;if(s){let n="primary"===r?s.currentTime:i(l,r,e.playingAsset,"timelinePos","currentTime"),o=t-n,u=(f?n:s.currentTime)+o;if(u>=0&&(!a||f||u<=a.duration)){s.currentTime=u;return}}}if(c){let n=t;if("primary"!==r){let e=t-c[r].start;n=c.start+e}let i=!e.isInterstitial(c);if((!e.isInterstitial(l)||l.event.appendInPlace)&&(i||c.event.appendInPlace)){let t=e.media||(f?null==d?void 0:d.media:null);t&&(t.currentTime=n)}else if(l){let a=e.findItemIndex(l);if(u>a){let t=e.schedule.findJumpRestrictedIndex(a+1,u);if(t>a){e.setSchedulePosition(t);return}}let s=0;if(i)e.timelinePos=n,e.checkBuffer();else{let e=c.event.assetList,n=t-(c[r]||c).start;for(let t=e.length;t--;){let i=e[t];if(i.duration&&n>=i.startOffset&&n<i.startOffset+i.duration){s=t;break}}}e.setSchedulePosition(u,s)}}},l=()=>{let n=e.effectivePlayingItem;if(e.isInterstitial(n))return n;let i=t();return e.isInterstitial(i)?i:null},u={get bufferedEnd(){let n=t(),r=e.bufferingItem;if(r&&r===n){var c;return i(r,"playout",e.bufferingAsset,"bufferedPos","bufferedEnd")-r.playout.start||(null==(c=e.bufferingAsset)?void 0:c.startOffset)||0}return 0},get currentTime(){let t=l(),n=e.effectivePlayingItem;if(n&&n===t)return i(n,"playout",e.effectivePlayingAsset,"timelinePos","currentTime")-n.playout.start;return 0},set currentTime(time){let t=l(),n=e.effectivePlayingItem;n&&n===t&&o(time+n.playout.start,"playout")},get duration(){let e=l();if(e)return e.playout.end-e.playout.start;return 0},get assetPlayers(){var d;let t=null==(d=l())?void 0:d.event.assetList;if(t)return t.map(t=>e.getAssetPlayer(t.identifier));return[]},get playingIndex(){var h;let t=null==(h=l())?void 0:h.event;if(t&&e.effectivePlayingAsset)return t.findAssetIndex(e.effectivePlayingAsset);return -1},get scheduleItem(){return l()}};return this.manager={get events(){var f;return(null==(f=e.schedule)||null==(f=f.events)?void 0:f.slice(0))||[]},get schedule(){var p;return(null==(p=e.schedule)||null==(p=p.items)?void 0:p.slice(0))||[]},get interstitialPlayer(){if(l())return u;return null},get playerQueue(){return e.playerQueue.slice(0)},get bufferingAsset(){return e.bufferingAsset},get bufferingItem(){return t()},get bufferingIndex(){let n=t();return e.findItemIndex(n)},get playingAsset(){return e.effectivePlayingAsset},get playingItem(){return e.effectivePlayingItem},get playingIndex(){let t=e.effectivePlayingItem;return e.findItemIndex(t)},primary:{get bufferedEnd(){return a()},get currentTime(){let t=e.timelinePos;return t>0?t:0},set currentTime(time){o(time,"primary")},get duration(){return s("primary")},get seekableStart(){var m;return(null==(m=e.primaryDetails)?void 0:m.fragmentStart)||0}},integrated:{get bufferedEnd(){return i(t(),"integrated",e.bufferingAsset,"bufferedPos","bufferedEnd")},get currentTime(){return i(e.effectivePlayingItem,"integrated",e.effectivePlayingAsset,"timelinePos","currentTime")},set currentTime(time){o(time,"integrated")},get duration(){return s("integrated")},get seekableStart(){var g;return r((null==(g=e.primaryDetails)?void 0:g.fragmentStart)||0,"integrated")}},skip:()=>{let t=e.effectivePlayingItem,n=null==t?void 0:t.event;if(n&&!n.restrictions.skip){let i=e.findItemIndex(t);n.appendInPlace?o(t.playout.start+t.event.duration+.001,"playout"):e.advanceAfterAssetEnded(n,i,1/0)}}}}get effectivePlayingItem(){return this.waitingItem||this.playingItem||this.endedItem}get effectivePlayingAsset(){return this.playingAsset||this.endedAsset}get playingLastItem(){var e;let t=this.playingItem,n=null==(e=this.schedule)?void 0:e.items;return!!this.playbackStarted&&!!t&&!!n&&this.findItemIndex(t)===n.length-1}get playbackStarted(){return null!==this.effectivePlayingItem}get currentTime(){var e,t;if(null===this.mediaSelection)return;let n=this.waitingItem||this.playingItem;if(this.isInterstitial(n)&&!n.event.appendInPlace)return;let i=this.media;!i&&null!=(e=this.bufferingItem)&&null!=(e=e.event)&&e.appendInPlace&&(i=this.primaryMedia);let a=null==(t=i)?void 0:t.currentTime;if(void 0!==a&&r(a))return a}get primaryMedia(){var e;return this.media||(null==(e=this.detachedData)?void 0:e.media)||null}isInterstitial(e){return!!(null!=e&&e.event)}retreiveMediaSource(e,t){let n=this.getAssetPlayer(e);n&&this.transferMediaFromPlayer(n,t)}transferMediaFromPlayer(e,t){let n=e.interstitial.appendInPlace,i=e.media;if(n&&i===this.primaryMedia){if(this.bufferingAsset=null,(!t||this.isInterstitial(t)&&!t.event.appendInPlace)&&t&&i){this.detachedData={media:i};return}let n=e.transferMedia();this.log(`transfer MediaSource from ${e} ${tt(n)}`),this.detachedData=n}else t&&i&&(this.shouldPlay||(this.shouldPlay=!i.paused))}transferMediaTo(e,t){var n,i;let r;if(e.media===t)return;let a=null,s=this.hls,o=e!==s,l=o&&e.interstitial.appendInPlace,u=null==(n=this.detachedData)?void 0:n.mediaSource;if(s.media)l&&(a=s.transferMedia(),this.detachedData=a),r="Primary";
280else if(u){let e=this.getBufferingPlayer();e?(a=e.transferMedia(),r=`${e}`):r="detached MediaSource"}else r="detached media";if(!a){if(u)a=this.detachedData,this.log(`using detachedData: MediaSource ${tt(a)}`);else if(!this.detachedData||s.media===t){let e=this.playerQueue;e.length>1&&e.forEach(e=>{if(o&&e.interstitial.appendInPlace!==l){let t=e.interstitial;this.clearInterstitial(e.interstitial,null),t.appendInPlace=!1,t.appendInPlace&&this.warn(`Could not change append strategy for queued assets ${t}`)}}),this.hls.detachMedia(),this.detachedData={media:t}}}let c=a&&"mediaSource"in a&&(null==(i=a.mediaSource)?void 0:i.readyState)!=="closed",d=c&&a?a:t;this.log(`${c?"transfering MediaSource":"attaching media"} to ${o?e:"Primary"} from ${r} (media.currentTime: ${t.currentTime})`);let h=this.schedule;if(d===a&&h){let t=o&&e.assetId===h.assetIdAtEnd;d.overrides={duration:h.duration,endOfStream:!o||t,cueRemoval:!o}}e.attachMedia(d)}onInterstitialCueEnter(){this.onTimeupdate()}checkStart(){let e=this.schedule,t=null==e?void 0:e.events;if(!t||this.playbackDisabled||!this.media)return;-1===this.bufferedPos&&(this.bufferedPos=0);let n=this.timelinePos,i=this.effectivePlayingItem;if(-1===n){let n=this.hls.startPosition;if(this.timelinePos=n,t.length&&t[0].cue.pre){let n=e.findEventIndex(t[0].identifier);this.setSchedulePosition(n)}else if(n>=0||!this.primaryLive){let t=this.timelinePos=n>0?n:0,i=e.findItemIndexAtTime(t);this.setSchedulePosition(i)}}else if(i&&!this.playingItem){let t=e.findItemIndex(i);this.setSchedulePosition(t)}}advanceAssetBuffering(e,t){let n=e.event,i=n.findAssetIndex(t),r=sq(n,i);if(n.isAssetPastPlayoutLimit(r)){if(this.schedule){var a;let t=null==(a=this.schedule.items)?void 0:a[this.findItemIndex(e)+1];t&&this.bufferedToItem(t)}}else this.bufferedToEvent(e,r)}advanceAfterAssetEnded(e,t,n){let i=sq(e,n);if(e.isAssetPastPlayoutLimit(i)){if(this.schedule){let n=this.schedule.items;if(n){let i=t+1;if(i>=n.length){this.setSchedulePosition(-1);return}let r=e.resumeTime;this.timelinePos<r&&(this.timelinePos=r,e.appendInPlace&&this.advanceInPlace(r),this.checkBuffer(this.bufferedPos<r)),this.setSchedulePosition(i)}}}else{if(e.appendInPlace){let t=e.assetList[i];t&&this.advanceInPlace(t.timelineStart)}this.setSchedulePosition(t,i)}}setScheduleToAssetAtTime(e,t){let n=this.schedule;if(!n)return;let i=t.parentIdentifier,r=n.getEvent(i);if(r){let t=n.findEventIndex(i),a=n.findAssetIndex(r,e);this.advanceAfterAssetEnded(r,t,a-1)}}setSchedulePosition(e,t){var n,i,r;let a=null==(n=this.schedule)?void 0:n.items;if(!a||this.playbackDisabled)return;let s=e>=0?a[e]:null;this.log(`setSchedulePosition ${e}, ${t} (${s?sX(s):s})`);let o=this.waitingItem||this.playingItem,l=this.playingLastItem;if(this.isInterstitial(o)){let n=o.event,c=this.playingAsset,d=null==c?void 0:c.identifier,h=d?this.getAssetPlayer(d):null;if(h&&d&&(!this.eventItemsMatch(o,s)||void 0!==t&&d!==n.assetList[t].identifier)){let t=n.findAssetIndex(c);if(this.log(`INTERSTITIAL_ASSET_ENDED ${t+1}/${n.assetList.length} ${s$(c)}`),this.endedAsset=c,this.playingAsset=null,this.hls.trigger(u.INTERSTITIAL_ASSET_ENDED,{asset:c,assetListIndex:t,event:n,schedule:a.slice(0),scheduleIndex:e,player:h}),o!==this.playingItem){this.itemsMatch(o,this.playingItem)&&!this.playingAsset&&this.advanceAfterAssetEnded(n,this.findItemIndex(this.playingItem),t);return}this.retreiveMediaSource(d,s),h.media&&!(null!=(i=this.detachedData)&&i.mediaSource)&&h.detachMedia()}if(!this.eventItemsMatch(o,s)&&(this.endedItem=o,this.playingItem=null,this.log(`INTERSTITIAL_ENDED ${n} ${sX(o)}`),n.hasPlayed=!0,this.hls.trigger(u.INTERSTITIAL_ENDED,{event:n,schedule:a.slice(0),scheduleIndex:e}),n.cue.once)){this.updateSchedule();let e=null==(r=this.schedule)?void 0:r.items;if(s&&e){let n=this.findItemIndex(s);this.advanceSchedule(n,e,t,o,l)}return}}this.advanceSchedule(e,a,t,o,l)}advanceSchedule(e,t,n,i,r){let a=this.schedule;if(!a)return;let s=e>=0?t[e]:null,o=this.primaryMedia,l=this.playerQueue;if(l.length&&l.forEach(t=>{let n=t.interstitial,i=a.findEventIndex(n.identifier);(i<e||i>e+1)&&this.clearInterstitial(n,s)}),this.isInterstitial(s)){this.timelinePos=Math.min(Math.max(this.timelinePos,s.start),s.end);let r=s.event;if(void 0===n){n=a.findAssetIndex(r,this.timelinePos);let t=sq(r,n-1);if(r.isAssetPastPlayoutLimit(t)||r.appendInPlace&&this.timelinePos===s.end){this.advanceAfterAssetEnded(r,e,n);return}n=t}let l=this.waitingItem;this.assetsBuffered(s,o)||this.setBufferingItem(s);let c=this.preloadAssets(r,n);if(this.eventItemsMatch(s,l||i)||(this.waitingItem=s,this.log(`INTERSTITIAL_STARTED ${sX(s)} ${r.appendInPlace?"append in place":""}`),this.hls.trigger(u.INTERSTITIAL_STARTED,{event:r,schedule:t.slice(0),scheduleIndex:e})),!r.assetListLoaded){this.log(`Waiting for ASSET-LIST to complete loading ${r}`);return}if(r.assetListLoader&&(r.assetListLoader.destroy(),r.assetListLoader=void 0),!o){this.log(`Waiting for attachMedia to start Interstitial ${r}`);return}this.waitingItem=this.endedItem=null,this.playingItem=s;let d=r.assetList[n];if(!d){this.advanceAfterAssetEnded(r,e,n||0);return}if(c||(c=this.getAssetPlayer(d.identifier)),null===c||c.destroyed){let e=r.assetList.length;this.warn(`asset ${n+1}/${e} player destroyed ${r}`),(c=this.createAssetPlayer(r,d,n)).loadSource()}if(!this.eventItemsMatch(s,this.bufferingItem)&&r.appendInPlace&&this.isAssetBuffered(d))return;this.startAssetPlayer(c,n,t,e,o),this.shouldPlay&&sJ(c.media)}else null!==s?(this.resumePrimary(s,e,i),this.shouldPlay&&sJ(this.hls.media)):r&&this.isInterstitial(i)&&(this.endedItem=null,this.playingItem=i,i.event.appendInPlace||this.attachPrimary(a.durations.primary,null))}get playbackDisabled(){return!1===this.hls.config.enableInterstitialPlayback}get primaryDetails(){var e;return null==(e=this.mediaSelection)?void 0:e.main.details}get primaryLive(){var e;return!!(null!=(e=this.primaryDetails)&&e.live)}
280resumePrimary(e,t,n){var i,r;if(this.playingItem=e,this.playingAsset=this.endedAsset=null,this.waitingItem=this.endedItem=null,this.bufferedToItem(e),this.log(`resuming ${sX(e)}`),!(null!=(i=this.detachedData)&&i.mediaSource)){let n=this.timelinePos;(n<e.start||n>=e.end)&&(n=this.getPrimaryResumption(e,t),this.timelinePos=n),this.attachPrimary(n,e)}if(!n)return;let a=null==(r=this.schedule)?void 0:r.items;a&&(this.log(`INTERSTITIALS_PRIMARY_RESUMED ${sX(e)}`),this.hls.trigger(u.INTERSTITIALS_PRIMARY_RESUMED,{schedule:a.slice(0),scheduleIndex:t}),this.checkBuffer())}getPrimaryResumption(e,t){let n=e.start;if(this.primaryLive){let e=this.primaryDetails;if(0===t)return this.hls.startPosition;if(e&&(n<e.fragmentStart||n>e.edge))return this.hls.liveSyncPosition||-1}return n}isAssetBuffered(e){let t=this.getAssetPlayer(e.identifier);return null!=t&&t.hls?t.hls.bufferedToEnd:t2.bufferInfo(this.primaryMedia,this.timelinePos,0).end+1>=e.timelineStart+(e.duration||0)}attachPrimary(e,t,n){t?this.setBufferingItem(t):this.bufferingItem=this.playingItem,this.bufferingAsset=null;let i=this.primaryMedia;if(!i)return;let r=this.hls;r.media?this.checkBuffer():(this.transferMediaTo(r,i),n&&this.startLoadingPrimaryAt(e,n)),n||(this.timelinePos=e,this.startLoadingPrimaryAt(e,n))}startLoadingPrimaryAt(e,t){var n;let i=this.hls;!i.loadingEnabled||!i.media||Math.abs(((null==(n=i.mainForwardBufferInfo)?void 0:n.start)||i.media.currentTime)-e)>.5?i.startLoad(e,t):i.bufferingEnabled||i.resumeBuffering()}onManifestLoading(){var e;this.stopLoad(),null==(e=this.schedule)||e.reset(),this.emptyPlayerQueue(),this.clearScheduleState(),this.shouldPlay=!1,this.bufferedPos=this.timelinePos=-1,this.mediaSelection=this.altSelection=this.manager=this.requiredTracks=null,this.hls.off(u.BUFFER_CODECS,this.onBufferCodecs,this),this.hls.on(u.BUFFER_CODECS,this.onBufferCodecs,this)}onLevelUpdated(e,t){if(-1===t.level||!this.schedule)return;let n=this.hls.levels[t.level],i=_(_({},this.mediaSelection||this.altSelection),{},{main:n});this.mediaSelection=i,this.schedule.parseInterstitialDateRanges(i,this.hls.config.interstitialAppendInPlace),!this.effectivePlayingItem&&this.schedule.items&&this.checkStart()}onAudioTrackUpdated(e,t){let n=this.hls.audioTracks[t.id],i=this.mediaSelection;if(!i){this.altSelection=_(_({},this.altSelection),{},{audio:n});return}let r=_(_({},i),{},{audio:n});this.mediaSelection=r}onSubtitleTrackUpdated(e,t){let n=this.hls.subtitleTracks[t.id],i=this.mediaSelection;if(!i){this.altSelection=_(_({},this.altSelection),{},{subtitles:n});return}let r=_(_({},i),{},{subtitles:n});this.mediaSelection=r}onAudioTrackSwitching(e,t){let n=ts(t);this.playerQueue.forEach(({hls:e})=>e&&(e.setAudioOption(t)||e.setAudioOption(n)))}onSubtitleTrackSwitch(e,t){let n=ts(t);this.playerQueue.forEach(({hls:e})=>e&&(e.setSubtitleOption(t)||-1!==t.id&&e.setSubtitleOption(n)))}onBufferCodecs(e,t){let n=t.tracks;n&&(this.requiredTracks=n)}onBufferAppended(e,t){this.checkBuffer()}onBufferFlushed(e,t){let n=this.playingItem;if(n&&!this.itemsMatch(n,this.bufferingItem)&&!this.isInterstitial(n)){let e=this.timelinePos;this.bufferedPos=e,this.checkBuffer()}}onBufferedToEnd(e){if(!this.schedule)return;let t=this.schedule.events;if(this.bufferedPos<Number.MAX_VALUE&&t){for(let e=0;e<t.length;e++){let i=t[e];if(i.cue.post){var n;let e=this.schedule.findEventIndex(i.identifier),t=null==(n=this.schedule.items)?void 0:n[e];this.isInterstitial(t)&&this.eventItemsMatch(t,this.bufferingItem)&&this.bufferedToItem(t,0);break}}this.bufferedPos=Number.MAX_VALUE}}onMediaEnded(e){let t=this.playingItem;if(!this.playingLastItem&&t){let e=this.findItemIndex(t);this.setSchedulePosition(e+1)}else this.shouldPlay=!1}updateItem(e,t){var n;let i=null==(n=this.schedule)?void 0:n.items;return e&&i&&i[this.findItemIndex(e,t)]||null}trimInPlace(e,t){if(this.isInterstitial(e)&&e.event.appendInPlace&&t.end-e.end>.25){e.event.assetList.forEach((t,n)=>{e.event.isAssetPastPlayoutLimit(n)&&this.clearAssetPlayer(t.identifier,null)});let t=e.end+.25,n=t2.bufferInfo(this.primaryMedia,t,0);(n.end>
280t||(n.nextStart||0)>t)&&(this.attachPrimary(t,null),this.flushFrontBuffer(t))}}itemsMatch(e,t){return!!t&&(e===t||e.event&&t.event&&this.eventItemsMatch(e,t)||!e.event&&!t.event&&this.findItemIndex(e)===this.findItemIndex(t))}eventItemsMatch(e,t){var n;return!!t&&(e===t||e.event.identifier===(null==(n=t.event)?void 0:n.identifier))}findItemIndex(e,t){return e&&this.schedule?this.schedule.findItemIndex(e,t):-1}updateSchedule(e=!1){var t;let n=this.mediaSelection;n&&(null==(t=this.schedule)||t.updateSchedule(n,[],e))}checkBuffer(e){var t;let n=null==(t=this.schedule)?void 0:t.items;if(!n)return;let i=t2.bufferInfo(this.primaryMedia,this.timelinePos,0);e&&(this.bufferedPos=this.timelinePos),e||(e=i.len<1),this.updateBufferedPos(i.end,n,e)}updateBufferedPos(e,t,n){let i=this.schedule,r=this.bufferingItem;if(this.bufferedPos>e||!i)return;if(1===t.length&&this.itemsMatch(t[0],r)){this.bufferedPos=e;return}let a=this.playingItem,s=this.findItemIndex(a),o=i.findItemIndexAtTime(e);if(this.bufferedPos<e){var l;let n=this.findItemIndex(r),i=Math.min(n+1,t.length-1),a=t[i];if((-1===o&&r&&e>=r.end||null!=(l=a.event)&&l.appendInPlace&&e+.01>=a.start)&&(o=i),this.isInterstitial(r)){let e=r.event;if(i-s>1&&!1===e.appendInPlace||0===e.assetList.length&&e.assetListLoader)return}if(this.bufferedPos=e,o>n&&o>s)this.bufferedToItem(a);else{let t=this.primaryDetails;this.primaryLive&&t&&e>t.edge-t.targetduration&&a.start<t.edge+this.hls.config.interstitialLiveLookAhead&&this.isInterstitial(a)&&this.preloadAssets(a.event,0)}}else n&&a&&!this.itemsMatch(a,r)&&(o===s?this.bufferedToItem(a):o===s+1&&this.bufferedToItem(t[o]))}assetsBuffered(e,t){return 0!==e.event.assetList.length&&!e.event.assetList.some(e=>{let n=this.getAssetPlayer(e.identifier);return!(null!=n&&n.bufferedInPlaceToEnd(t))})}setBufferingItem(e){let t=this.bufferingItem,n=this.schedule;if(!this.itemsMatch(e,t)&&n){let{items:i,events:r}=n;if(!i||!r)return t;let a=this.isInterstitial(e),s=this.getBufferingPlayer();this.bufferingItem=e,this.bufferedPos=Math.max(e.start,Math.min(e.end,this.timelinePos));let o=s?s.remaining:t?t.end-this.timelinePos:0;if(this.log(`INTERSTITIALS_BUFFERED_TO_BOUNDARY ${sX(e)}`+(t?` (${o.toFixed(2)} remaining)`:"")),!this.playbackDisabled){if(a){let t=n.findAssetIndex(e.event,this.bufferedPos);e.event.assetList.forEach((e,n)=>{let i=this.getAssetPlayer(e.identifier);i&&(n===t&&i.loadSource(),i.resumeBuffering())})}else this.hls.resumeBuffering(),this.playerQueue.forEach(e=>e.pauseBuffering())}this.hls.trigger(u.INTERSTITIALS_BUFFERED_TO_BOUNDARY,{events:r.slice(0),schedule:i.slice(0),bufferingIndex:this.findItemIndex(e),playingIndex:this.findItemIndex(this.playingItem)})}else this.bufferingItem!==e&&(this.bufferingItem=e);return t}bufferedToItem(e,t=0){let n=this.setBufferingItem(e);if(!this.playbackDisabled){if(this.isInterstitial(e))this.bufferedToEvent(e,t);else if(null!==n){this.bufferingAsset=null;let t=this.detachedData;if(t){if(t.mediaSource){let t=!0;this.attachPrimary(e.start,e,t)}else this.preloadPrimary(e)}else this.preloadPrimary(e)}}}preloadPrimary(e){let t=this.findItemIndex(e),n=this.getPrimaryResumption(e,t);this.startLoadingPrimaryAt(n)}bufferedToEvent(e,t){let n=e.event,i=0===n.assetList.length&&!n.assetListLoader,r=n.cue.once;if(i||!r){let e=this.preloadAssets(n,t);if(null!=e&&e.interstitial.appendInPlace){let t=this.primaryMedia;t&&this.bufferAssetPlayer(e,t)}}}preloadAssets(e,t){let n=e.assetUrl,i=e.assetList.length,r=0===i&&!e.assetListLoader,a=e.cue.once;if(r){let r;let a=e.timelineStart;if(e.appendInPlace){var s;let t=this.playingItem;this.isInterstitial(t)||(null==t||null==(s=t.nextEvent)?void 0:s.identifier)!==e.identifier||this.flushFrontBuffer(a+.25)}let o=0;if(!this.playingItem&&this.primaryLive&&-1===(o=this.hls.startPosition)&&(o=this.hls.liveSyncPosition||0),o&&!(e.cue.pre||e.cue.post)){let e=o-a;e>0&&(r=Math.round(1e3*e)/1e3)}if(this.log(`Load interstitial asset ${t+1}/${n?1:i} ${e}${r?` live-start: ${o} start-offset: ${r}`:""}`),n)return this.createAsset(e,0,0,a,e.duration,n);let l=this.assetListLoader.loadAssetList(e,r);l&&(e.assetListLoader=l)}else if(!a&&i){for(let n=t;n<i;n++){let t=e.assetList[n],i=this.getAssetPlayerQueueIndex(t.identifier);(-1===i||this.playerQueue[i].destroyed)&&!t.error&&this.createAssetPlayer(e,t,n)}let n=e.assetList[t];if(n){let e=this.getAssetPlayer(n.identifier);return e&&e.loadSource(),e}}return null}flushFrontBuffer(e){let t=this.requiredTracks;t&&(this.log(`Removing front buffer starting at ${e}`),Object.keys(t).forEach(t=>{this.hls.trigger(u.BUFFER_FLUSHING,{startOffset:e,endOffset:1/0,type:t})}))}getAssetPlayerQueueIndex(e){let t=this.playerQueue;for(let n=0;n<t.length;n++)if(e===t[n].assetId)return n;return -1}getAssetPlayer(e){let t=this.getAssetPlayerQueueIndex(e);return this.playerQueue[t]||null}
280getBufferingPlayer(){let{playerQueue:e,primaryMedia:t}=this;if(t){for(let n=0;n<e.length;n++)if(e[n].media===t)return e[n]}return null}createAsset(e,t,n,i,r,a){let s={parentIdentifier:e.identifier,identifier:sB(e,a,t),duration:r,startOffset:n,timelineStart:i,uri:a};return this.createAssetPlayer(e,s,t)}createAssetPlayer(e,t,n){let i=this.hls,r=i.userConfig,a=r.videoPreference,s=i.loadLevelObj||i.levels[i.currentLevel];(a||s)&&(a=v({},a),s.videoCodec&&(a.videoCodec=s.videoCodec),s.videoRange&&(a.allowedVideoRanges=[s.videoRange]));let c=i.audioTracks[i.audioTrack],d=i.subtitleTracks[i.subtitleTrack],h=0;if(this.primaryLive||e.appendInPlace){let e=this.timelinePos-t.timelineStart;if(e>1){let n=t.duration;n&&e<n&&(h=e)}}let f=t.identifier,p=_(_({},r),{},{maxMaxBufferLength:Math.min(180,i.config.maxMaxBufferLength),autoStartLoad:!0,startFragPrefetch:!0,primarySessionId:i.sessionId,assetPlayerId:f,abrEwmaDefaultEstimate:i.bandwidthEstimate,interstitialsController:void 0,startPosition:h,liveDurationInfinity:!1,testBandwidth:!1,videoPreference:a,audioPreference:c||r.audioPreference,subtitlePreference:d||r.subtitlePreference});e.appendInPlace&&(e.appendInPlaceStarted=!0,t.timelineStart&&(p.timelineOffset=t.timelineStart));let m=p.cmcd;null!=m&&m.sessionId&&m.contentId&&(p.cmcd=v({},m,{contentId:sj(t.uri)})),this.getAssetPlayer(f)&&this.warn(`Duplicate date range identifier ${e} and asset ${f}`);let g=new sZ(this.HlsPlayerClass,p,e,t);this.playerQueue.push(g),e.assetList[n]=t;let y=!0,b=i=>{if(i.live){var r;let t=Error(`Interstitials MUST be VOD assets ${e}`),i={fatal:!0,type:o.OTHER_ERROR,details:l.INTERSTITIAL_ASSET_ITEM_ERROR,error:t},a=(null==(r=this.schedule)?void 0:r.findEventIndex(e.identifier))||-1;this.handleAssetItemError(i,e,a,n,t.message);return}let a=i.edge-i.fragmentStart,s=t.duration;(y||null===s||a>s)&&(y=!1,this.log(`Interstitial asset "${f}" duration change ${s} > ${a}`),t.duration=a,this.updateSchedule())};g.on(u.LEVEL_UPDATED,(e,{details:t})=>b(t)),g.on(u.LEVEL_PTS_UPDATED,(e,{details:t})=>b(t)),g.on(u.EVENT_CUE_ENTER,()=>this.onInterstitialCueEnter());let x=(e,t)=>{let n=this.getAssetPlayer(f);if(n&&t.tracks){n.off(u.BUFFER_CODECS,x),n.tracks=t.tracks;let e=this.primaryMedia;this.bufferingAsset===n.assetItem&&e&&!n.media&&this.bufferAssetPlayer(n,e)}};g.on(u.BUFFER_CODECS,x);let C=()=>{var n;let i=this.getAssetPlayer(f);if(this.log(`buffered to end of asset ${i}`),!i||!this.schedule)return;let r=this.schedule.findEventIndex(e.identifier),a=null==(n=this.schedule.items)?void 0:n[r];this.isInterstitial(a)&&this.advanceAssetBuffering(a,t)};g.on(u.BUFFERED_TO_END,C);let E=t=>()=>{if(!this.getAssetPlayer(f)||!this.schedule)return;this.shouldPlay=!0;let n=this.schedule.findEventIndex(e.identifier);this.advanceAfterAssetEnded(e,n,t)};return g.once(u.MEDIA_ENDED,E(n)),g.once(u.PLAYOUT_LIMIT_REACHED,E(1/0)),g.on(u.ERROR,(t,i)=>{if(!this.schedule)return;let r=this.getAssetPlayer(f);if(i.details===l.BUFFER_STALLED_ERROR){if(null!=r&&r.appendInPlace){this.handleInPlaceStall(e);return}this.onTimeupdate(),this.checkBuffer(!0);return}this.handleAssetItemError(i,e,this.schedule.findEventIndex(e.identifier),n,`Asset player error ${i.error} ${e}`)}),g.on(u.DESTROYING,()=>{if(!this.getAssetPlayer(f)||!this.schedule)return;let t=Error(`Asset player destroyed unexpectedly ${f}`),i={fatal:!0,type:o.OTHER_ERROR,details:l.INTERSTITIAL_ASSET_ITEM_ERROR,error:t};this.handleAssetItemError(i,e,this.schedule.findEventIndex(e.identifier),n,t.message)}),this.log(`INTERSTITIAL_ASSET_PLAYER_CREATED ${s$(t)}`),this.hls.trigger(u.INTERSTITIAL_ASSET_PLAYER_CREATED,{asset:t,assetListIndex:n,event:e,player:g}),g}clearInterstitial(e,t){e.assetList.forEach(e=>{this.clearAssetPlayer(e.identifier,t)}),e.reset()}resetAssetPlayer(e){let t=this.getAssetPlayerQueueIndex(e);if(-1!==t){this.log(`reset asset player "${e}" after error`);let n=this.playerQueue[t];this.transferMediaFromPlayer(n,null),n.resetDetails()}}clearAssetPlayer(e,t){let n=this.getAssetPlayerQueueIndex(e);if(-1!==n){this.log(`clear asset player "${e}" toSegment: ${t?sX(t):t}`);let i=this.playerQueue[n];this.transferMediaFromPlayer(i,t),this.playerQueue.splice(n,1),i.destroy()}}emptyPlayerQueue(){let e;for(;e=this.playerQueue.pop();)e.destroy();this.playerQueue=[]}
280startAssetPlayer(e,t,n,i,r){let{interstitial:a,assetItem:s,assetId:o}=e,l=a.assetList.length,c=this.playingAsset;this.endedAsset=null,this.playingAsset=s,c&&c.identifier===o||(c&&(this.clearAssetPlayer(c.identifier,n[i]),delete c.error),this.log(`INTERSTITIAL_ASSET_STARTED ${t+1}/${l} ${s$(s)}`),this.hls.trigger(u.INTERSTITIAL_ASSET_STARTED,{asset:s,assetListIndex:t,event:a,schedule:n.slice(0),scheduleIndex:i,player:e})),this.bufferAssetPlayer(e,r)}bufferAssetPlayer(e,t){var n,i;if(!this.schedule)return;let{interstitial:r,assetItem:a}=e,s=this.schedule.findEventIndex(r.identifier),u=null==(n=this.schedule.items)?void 0:n[s];if(!u)return;e.loadSource(),this.setBufferingItem(u),this.bufferingAsset=a;let c=this.getBufferingPlayer();if(c===e)return;let d=r.appendInPlace;if(d&&(null==c?void 0:c.interstitial.appendInPlace)===!1)return;let h=(null==c?void 0:c.tracks)||(null==(i=this.detachedData)?void 0:i.tracks)||this.requiredTracks;if(d&&a!==this.playingAsset){if(!e.tracks){this.log(`Waiting for track info before buffering ${e}`);return}if(h&&!k(h,e.tracks)){let t=Error(`Asset ${s$(a)} SourceBuffer tracks ('${Object.keys(e.tracks)}') are not compatible with primary content tracks ('${Object.keys(h)}')`),n={fatal:!0,type:o.OTHER_ERROR,details:l.INTERSTITIAL_ASSET_ITEM_ERROR,error:t},i=r.findAssetIndex(a);this.handleAssetItemError(n,r,s,i,t.message);return}}this.transferMediaTo(e,t)}handleInPlaceStall(e){let t=this.schedule,n=this.primaryMedia;if(!t||!n)return;let i=n.currentTime,r=t.findAssetIndex(e,i),a=e.assetList[r];if(a){let s=this.getAssetPlayer(a.identifier);if(s){let o=s.currentTime||i-a.timelineStart,l=s.duration-o;if(this.warn(`Stalled at ${o} of ${o+l} in ${s} ${e} (media.currentTime: ${i})`),o&&(l/n.playbackRate<.5||s.bufferedInPlaceToEnd(n))&&s.hls){let n=t.findEventIndex(e.identifier);this.advanceAfterAssetEnded(e,n,r)}}}}advanceInPlace(e){let t=this.primaryMedia;t&&t.currentTime<e&&(t.currentTime=e)}handleAssetItemError(e,t,n,i,r){if(e.details===l.BUFFER_STALLED_ERROR)return;let a=t.assetList[i]||null;if(this.warn(`INTERSTITIAL_ASSET_ERROR ${a?s$(a):a} ${e.error}`),!this.schedule)return;let s=(null==a?void 0:a.identifier)||"",o=this.getAssetPlayerQueueIndex(s),c=this.playerQueue[o]||null,d=this.schedule.items,h=v({},e,{fatal:!1,errorAction:tR(!0),asset:a,assetListIndex:i,event:t,schedule:d,scheduleIndex:n,player:c});if(this.hls.trigger(u.INTERSTITIAL_ASSET_ERROR,h),!e.fatal)return;let f=this.playingAsset,p=this.bufferingAsset,m=Error(r);if(a&&(this.clearAssetPlayer(s,null),a.error=m),t.assetList.some(e=>!e.error))for(let e=i;e<t.assetList.length;e++)this.resetAssetPlayer(t.assetList[e].identifier);else t.error=m;this.updateSchedule(!0),t.error?this.primaryFallback(t):f&&f.identifier===s?this.advanceAfterAssetEnded(t,n,i):p&&p.identifier===s&&this.isInterstitial(this.bufferingItem)&&this.advanceAssetBuffering(this.bufferingItem,p)}primaryFallback(e){let t=e.timelineStart,n=this.effectivePlayingItem;if(n){this.log(`Fallback to primary from event "${e.identifier}" start: ${t} pos: ${this.timelinePos} playing: ${sX(n)} error: ${e.error}`);let i=this.timelinePos;-1===i&&(i=this.hls.startPosition);let r=this.updateItem(n,i);if(this.itemsMatch(n,r)&&this.clearInterstitial(e,null),e.appendInPlace&&(this.attachPrimary(t,null),this.flushFrontBuffer(t)),!this.schedule)return;let a=this.schedule.findItemIndexAtTime(i);this.setSchedulePosition(a)}else this.checkStart()}onAssetListLoaded(e,t){var n,i,r;let a=t.event,s=a.identifier,o=t.assetListResponse.ASSETS;if(!(null!=(n=this.schedule)&&n.hasEvent(s)))return;let l=a.timelineStart,u=a.duration,c=0;o.forEach((e,t)=>{let n=parseFloat(e.DURATION);this.createAsset(a,t,c,l+c,n,e.URI),c+=n}),a.duration=c,this.log(`Loaded asset-list with duration: ${c} (was: ${u}) ${a}`);let d=this.waitingItem,h=(null==d?void 0:d.event.identifier)===s;this.updateSchedule();let f=null==(i=this.bufferingItem)?void 0:i.event;if(h){let e=this.schedule.findEventIndex(s),t=null==(r=this.schedule.items)?void 0:r[e];if(t){if(!this.playingItem&&this.timelinePos>t.end&&this.schedule.findItemIndexAtTime(this.timelinePos)!==e){a.error=Error(`Interstitial no longer within playback range ${this.timelinePos} ${a}`),this.updateSchedule(!0),this.primaryFallback(a);return}this.setBufferingItem(t)}this.setSchedulePosition(e)}else if((null==f?void 0:f.identifier)===s){let e=a.assetList[0];if(e){let t=this.getAssetPlayer(e.identifier);if(f.appendInPlace){let e=this.primaryMedia;t&&e&&this.bufferAssetPlayer(t,e)}else t&&t.loadSource()}}}onError(e,t){if(this.schedule)switch(t.details){case l.ASSET_LIST_PARSING_ERROR:case l.ASSET_LIST_LOAD_ERROR:case l.ASSET_LIST_LOAD_TIMEOUT:{let e=t.interstitial;e&&(this.updateSchedule(!0),this.primaryFallback(e));break}case l.BUFFER_STALLED_ERROR:{let e=this.endedItem||this.waitingItem||this.playingItem;if(this.isInterstitial(e)&&e.event.appendInPlace){this.handleInPlaceStall(e.event);return}this.log(`Primary player stall @${this.timelinePos} bufferedPos: ${this.bufferedPos}`),this.onTimeupdate(),this.checkBuffer(!0)}}}}let s1=500;
280class s2 extends il{constructor(e,t,n){super(e,t,n,"subtitle-stream-controller",f.SUBTITLE),this.currentTrackId=-1,this.tracksBuffered=[],this.mainDetails=null,this.registerListeners()}onHandlerDestroying(){this.unregisterListeners(),super.onHandlerDestroying(),this.mainDetails=null}registerListeners(){super.registerListeners();let{hls:e}=this;e.on(u.LEVEL_LOADED,this.onLevelLoaded,this),e.on(u.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(u.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(u.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(u.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.on(u.BUFFER_FLUSHING,this.onBufferFlushing,this)}unregisterListeners(){super.unregisterListeners();let{hls:e}=this;e.off(u.LEVEL_LOADED,this.onLevelLoaded,this),e.off(u.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(u.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(u.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(u.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.off(u.BUFFER_FLUSHING,this.onBufferFlushing,this)}startLoad(e,t){this.stopLoad(),this.state=io.IDLE,this.setInterval(s1),this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}onManifestLoading(){super.onManifestLoading(),this.mainDetails=null}onMediaDetaching(e,t){this.tracksBuffered=[],super.onMediaDetaching(e,t)}onLevelLoaded(e,t){this.mainDetails=t.details}onSubtitleFragProcessed(e,t){let n;let{frag:i,success:r}=t;if(this.fragContextChanged(i)||(G(i)&&(this.fragPrevious=i),this.state=io.IDLE),!r)return;let a=this.tracksBuffered[this.currentTrackId];if(!a)return;let s=i.start;for(let e=0;e<a.length;e++)if(s>=a[e].start&&s<=a[e].end){n=a[e];break}let o=i.start+i.duration;n?n.end=o:(n={start:s,end:o},a.push(n)),this.fragmentTracker.fragBuffered(i),this.fragBufferedComplete(i,null),this.media&&this.tick()}onBufferFlushing(e,t){let{startOffset:n,endOffset:i}=t;if(0===n&&i!==Number.POSITIVE_INFINITY){let e=i-1;if(e<=0)return;t.endOffsetSubtitles=Math.max(0,e),this.tracksBuffered.forEach(t=>{for(let n=0;n<t.length;){if(t[n].end<=e){t.shift();continue}if(t[n].start<e)t[n].start=e;else break;n++}}),this.fragmentTracker.removeFragmentsInRange(n,e,f.SUBTITLE)}}onError(e,t){let n=t.frag;(null==n?void 0:n.type)===f.SUBTITLE&&(t.details===l.FRAG_GAP&&this.fragmentTracker.fragBuffered(n,!0),this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==io.STOPPED&&(this.state=io.IDLE))}onSubtitleTracksUpdated(e,{subtitleTracks:t}){if(this.levels&&r9(this.levels,t)){this.levels=t.map(e=>new e6(e));return}this.tracksBuffered=[],this.levels=t.map(e=>{let t=new e6(e);return this.tracksBuffered[t.id]=[],t}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,f.SUBTITLE),this.fragPrevious=null,this.mediaBuffer=null}onSubtitleTrackSwitch(e,t){var n;if(this.currentTrackId=t.id,!(null!=(n=this.levels)&&n.length)||-1===this.currentTrackId){this.clearInterval();return}let i=this.levels[this.currentTrackId];null!=i&&i.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,i&&this.state!==io.STOPPED&&this.setInterval(s1)}onSubtitleTrackLoaded(e,t){var n,i;let{currentTrackId:r,levels:a}=this,{details:s,id:o}=t;if(!a){this.warn(`Subtitle tracks were reset while loading level ${o}`);return}let l=a[o];if(o>=a.length||!l)return;this.log(`Subtitle track ${o} loaded [${s.startSN},${s.endSN}]${s.lastPartSn?`[part-${s.lastPartSn}-${s.lastPartIndex}]`:""},duration:${s.totalduration}`),this.mediaBuffer=this.mediaBufferTimeRanges;let c=0;if(s.live||null!=(n=l.details)&&n.live){if(s.deltaUpdateFailed)return;let e=this.mainDetails;if(!e){this.startFragRequested=!1;return}let t=e.fragments[0];l.details?0===(c=this.alignPlaylists(s,l.details,null==(i=this.levelLastLoaded)?void 0:i.details))&&t&&n0(s,c=t.start):s.hasProgramDateTime&&e.hasProgramDateTime?(ia(s,e),c=s.fragmentStart):t&&n0(s,c=t.start),e&&!this.startFragRequested&&this.setStartPosition(e,c)}l.details=s,this.levelLastLoaded=l,o===r&&(this.hls.trigger(u.SUBTITLE_TRACK_UPDATED,{details:s,id:o,groupId:t.groupId}),this.tick(),s.live&&!this.fragCurrent&&this.media&&this.state===io.IDLE&&!ty(null,s.fragments,this.media.currentTime,0)&&(this.warn("Subtitle playlist not aligned with playback"),l.details=void 0))}_handleFragmentLoadComplete(e){let{frag:t,payload:n}=e,i=t.decryptdata,r=this.hls;if(!this.fragContextChanged(t)&&n&&n.byteLength>0&&null!=i&&i.key&&i.iv&&no(i.method)){let e=performance.now();
280this.decrypter.decrypt(new Uint8Array(n),i.key.buffer,i.iv.buffer,nl(i.method)).catch(e=>{throw r.trigger(u.ERROR,{type:o.MEDIA_ERROR,details:l.FRAG_DECRYPT_ERROR,fatal:!1,error:e,reason:e.message,frag:t}),e}).then(n=>{let i=performance.now();r.trigger(u.FRAG_DECRYPTED,{frag:t,payload:n,stats:{tstart:e,tdecrypt:i}})}).catch(e=>{this.warn(`${e.name}: ${e.message}`),this.state=io.IDLE})}}doTick(){if(!this.media){this.state=io.IDLE;return}if(this.state===io.IDLE){let{currentTrackId:e,levels:t}=this,n=null==t?void 0:t[e];if(!n||!t.length||!n.details||this.waitForLive(n))return;let{config:i}=this,r=this.getLoadPosition(),{end:a,len:s}=t2.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],r,i.maxBufferHole),o=n.details;if(s>this.hls.maxBufferLength+o.levelTargetDuration)return;let l=o.fragments,u=l.length,c=o.edge,d=null,h=this.fragPrevious;if(a<c){let e=i.maxFragLookUpTolerance,t=a>c-e?0:e;(d=ty(h,l,Math.max(l[0].start,a),t))||!h||!(h.start<l[0].start)||(d=l[0])}else d=l[u-1];if(!(d=this.filterReplacedPrimary(d,n.details)))return;let f=l[d.sn-o.startSN-1];if(f&&f.cc===d.cc&&this.fragmentTracker.getState(f)===tk.NOT_LOADED&&(d=f),this.fragmentTracker.getState(d)===tk.NOT_LOADED){let e=this.mapToInitFragWhenRequired(d);e&&this.loadFragment(e,n,a)}}}loadFragment(e,t,n){G(e)?super.loadFragment(e,t,n):this._loadInitSegment(e,t)}get mediaBufferTimeRanges(){return new s3(this.tracksBuffered[this.currentTrackId]||[])}}class s3{constructor(e){this.buffered=void 0;let t=(t,n,i)=>{if((n>>>=0)>i-1)throw new DOMException(`Failed to execute '${t}' on 'TimeRanges': The index provided (${n}) is greater than the maximum bound (${i})`);return e[n][t]};this.buffered={get length(){return e.length},end:n=>t("end",n,e.length),start:n=>t("start",n,e.length)}}}let s5={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},s4=e=>String.fromCharCode(s5[e]||e),s6=15,s8=100,s7={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},s9={17:2,18:4,21:6,22:8,23:10,19:13,20:15},oe={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},ot={25:2,26:4,29:6,30:8,31:10,27:13,28:15},on=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class oi{constructor(){this.time=null,this.verboseLevel=0}log(e,t){if(this.verboseLevel>=e){let n="function"==typeof t?t():t;A.log(`${this.time} [${e}] ${n}`)}}}let or=function(e){let t=[];for(let n=0;n<e.length;n++)t.push(e[n].toString(16));return t};class oa{constructor(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}reset(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}setStyles(e){let t=["foreground","underline","italics","background","flash"];for(let n=0;n<t.length;n++){let i=t[n];e.hasOwnProperty(i)&&(this[i]=e[i])}}isDefault(){return"white"===this.foreground&&!this.underline&&!this.italics&&"black"===this.background&&!this.flash}equals(e){return this.foreground===e.foreground&&this.underline===e.underline&&this.italics===e.italics&&this.background===e.background&&this.flash===e.flash}copy(e){this.foreground=e.foreground,this.underline=e.underline,this.italics=e.italics,this.background=e.background,this.flash=e.flash}toString(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash}}class os{constructor(){this.uchar=" ",this.penState=new oa}reset(){this.uchar=" ",this.penState.reset()}setChar(e,t){this.uchar=e,this.penState.copy(t)}setPenState(e){this.penState.copy(e)}equals(e){return this.uchar===e.uchar&&this.penState.equals(e.penState)}copy(e){this.uchar=e.uchar,this.penState.copy(e.penState)}isEmpty(){return" "===this.uchar&&this.penState.isDefault()}}class oo{constructor(e){this.chars=[],this.pos=0,this.currPenState=new oa,this.cueStartTime=null,this.logger=void 0;for(let e=0;e<s8;e++)this.chars.push(new os);this.logger=e}equals(e){for(let t=0;t<s8;t++)if(!this.chars[t].equals(e.chars[t]))return!1;return!0}copy(e){for(let t=0;t<s8;t++)this.chars[t].copy(e.chars[t])}isEmpty(){let e=!0;for(let t=0;t<s8;t++)if(!this.chars[t].isEmpty()){e=!1;break}return e}
vendor: 5,638 bytes, line 280
280setCursor(e){this.pos!==e&&(this.pos=e),this.pos<0?(this.logger.log(3,"Negative cursor position "+this.pos),this.pos=0):this.pos>s8&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=s8)}moveCursor(e){let t=this.pos+e;if(e>1)for(let e=this.pos+1;e<t+1;e++)this.chars[e].setPenState(this.currPenState);this.setCursor(t)}backSpace(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)}insertChar(e){e>=144&&this.backSpace();let t=s4(e);if(this.pos>=s8){this.logger.log(0,()=>"Cannot insert "+e.toString(16)+" ("+t+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(t,this.currPenState),this.moveCursor(1)}clearFromPos(e){let t;for(t=e;t<s8;t++)this.chars[t].reset()}clear(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()}clearToEndOfRow(){this.clearFromPos(this.pos)}getTextString(){let e=[],t=!0;for(let n=0;n<s8;n++){let i=this.chars[n].uchar;" "!==i&&(t=!1),e.push(i)}return t?"":e.join("")}setPenStyles(e){this.currPenState.setStyles(e),this.chars[this.pos].setPenState(this.currPenState)}}class ol{constructor(e){this.rows=[],this.currRow=s6-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.logger=void 0;for(let t=0;t<s6;t++)this.rows.push(new oo(e));this.logger=e}reset(){for(let e=0;e<s6;e++)this.rows[e].clear();this.currRow=s6-1}equals(e){let t=!0;for(let n=0;n<s6;n++)if(!this.rows[n].equals(e.rows[n])){t=!1;break}return t}copy(e){for(let t=0;t<s6;t++)this.rows[t].copy(e.rows[t])}isEmpty(){let e=!0;for(let t=0;t<s6;t++)if(!this.rows[t].isEmpty()){e=!1;break}return e}backSpace(){this.rows[this.currRow].backSpace()}clearToEndOfRow(){this.rows[this.currRow].clearToEndOfRow()}insertChar(e){this.rows[this.currRow].insertChar(e)}setPen(e){this.rows[this.currRow].setPenStyles(e)}moveCursor(e){this.rows[this.currRow].moveCursor(e)}setCursor(e){this.logger.log(2,"setCursor: "+e),this.rows[this.currRow].setCursor(e)}setPAC(e){this.logger.log(2,()=>"pacData = "+tt(e));let t=e.row-1;if(this.nrRollUpRows&&t<this.nrRollUpRows-1&&(t=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==t){for(let e=0;e<s6;e++)this.rows[e].clear();let e=this.currRow+1-this.nrRollUpRows,n=this.lastOutputScreen;if(n){let i=n.rows[e].cueStartTime,r=this.logger.time;if(null!==i&&null!==r&&i<r)for(let i=0;i<this.nrRollUpRows;i++)this.rows[t-this.nrRollUpRows+i+1].copy(n.rows[e+i])}}this.currRow=t;let n=this.rows[this.currRow];if(null!==e.indent){let t=Math.max(e.indent-1,0);n.setCursor(e.indent),e.color=n.chars[t].penState.foreground}let i={foreground:e.color,underline:e.underline,italics:e.italics,background:"black",flash:!1};this.setPen(i)}setBkgData(e){this.logger.log(2,()=>"bkgData = "+tt(e)),this.backSpace(),this.setPen(e),this.insertChar(32)}setRollUpRows(e){this.nrRollUpRows=e}rollUp(){if(null===this.nrRollUpRows){this.logger.log(3,"roll_up but nrRollUpRows not set yet");return}this.logger.log(1,()=>this.getDisplayText());let e=this.currRow+1-this.nrRollUpRows,t=this.rows.splice(e,1)[0];t.clear(),this.rows.splice(this.currRow,0,t),this.logger.log(2,"Rolling up")}getDisplayText(e){e=e||!1;let t=[],n="",i=-1;for(let n=0;n<s6;n++){let r=this.rows[n].getTextString();r&&(i=n+1,e?t.push("Row "+i+": '"+r+"'"):t.push(r.trim()))}return t.length>0&&(n=e?"["+t.join(" | ")+"]":t.join("\n")),n}getTextAndFormat(){return this.rows}}class ou{constructor(e,t,n){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=e,this.outputFilter=t,this.mode=null,this.verbose=0,this.displayedMemory=new ol(n),this.nonDisplayedMemory=new ol(n),this.lastOutputScreen=new ol(n),this.currRollUpRow=this.displayedMemory.rows[s6-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=n}reset(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[s6-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}getHandler(){return this.outputFilter}setHandler(e){this.outputFilter=e}setPAC(e){this.writeScreen.setPAC(e)}setBkgData(e){this.writeScreen.setBkgData(e)}setMode(e){e!==this.mode&&(this.mode=e,this.logger.log(2,()=>"MODE="+e),"MODE_POP-ON"===this.mode?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),"MODE_ROLL-UP"!==this.mode&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=e)}insertChars(e){for(let t=0;t<e.length;t++)this.writeScreen.insertChar(e[t]);let t=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(2,()=>t+": "+this.writeScreen.getDisplayText(!0)),("MODE_PAINT-ON"===this.mode||"MODE_ROLL-UP"===this.mode)&&(this.logger.log(1,()=>"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())}ccRCL(){this.logger.log(2,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")}ccBS(){this.logger.log(2,"BS - BackSpace"),"MODE_TEXT"!==this.mode&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())}ccAOF(){}ccAON(){}ccDER(){this.logger.log(2,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()}ccRU(e){this.logger.log(2,"RU("+e+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(e)}ccFON(){this.logger.log(2,"FON - Flash On"),this.writeScreen.setPen({flash:!0})}
280ccRDC(){this.logger.log(2,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")}ccTR(){this.logger.log(2,"TR"),this.setMode("MODE_TEXT")}ccRTD(){this.logger.log(2,"RTD"),this.setMode("MODE_TEXT")}ccEDM(){this.logger.log(2,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)}ccCR(){this.logger.log(2,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)}ccENM(){this.logger.log(2,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()}ccEOC(){if(this.logger.log(2,"EOC - End Of Caption"),"MODE_POP-ON"===this.mode){let e=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=e,this.writeScreen=this.nonDisplayedMemory,this.logger.log(1,()=>"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)}ccTO(e){this.logger.log(2,"TO("+e+") - Tab Offset"),this.writeScreen.moveCursor(e)}ccMIDROW(e){let t={flash:!1};if(t.underline=e%2==1,t.italics=e>=46,t.italics)t.foreground="white";else{let n=Math.floor(e/2)-16,i=["white","green","blue","cyan","red","yellow","magenta"];t.foreground=i[n]}this.logger.log(2,"MIDROW: "+tt(t)),this.writeScreen.setPen(t)}outputDataUpdate(e=!1){let t=this.logger.time;null!==t&&this.outputFilter&&(null!==this.cueStartTime||this.displayedMemory.isEmpty()?this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,t,this.lastOutputScreen),e&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:t):this.cueStartTime=t,this.lastOutputScreen.copy(this.displayedMemory))}cueSplitAtTime(e){this.outputFilter&&!this.displayedMemory.isEmpty()&&(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,e,this.displayedMemory),this.cueStartTime=e)}}class oc{constructor(e,t,n){this.channels=void 0,this.currentChannel=0,this.cmdHistory=of(),this.logger=void 0;let i=this.logger=new oi;this.channels=[null,new ou(e,t,i),new ou(e+1,n,i)]}getHandler(e){return this.channels[e].getHandler()}setHandler(e,t){this.channels[e].setHandler(t)}addData(e,t){this.logger.time=e;for(let e=0;e<t.length;e+=2){let n=127&t[e],i=127&t[e+1],r=!1,a=null;if(0===n&&0===i)continue;this.logger.log(3,()=>"["+or([t[e],t[e+1]])+"] -> ("+or([n,i])+")");let s=this.cmdHistory;if(n>=16&&n<=31){if(oh(n,i,s)){od(null,null,s),this.logger.log(3,()=>"Repeated command ("+or([n,i])+") is dropped");continue}od(n,i,this.cmdHistory),(r=this.parseCmd(n,i))||(r=this.parseMidrow(n,i)),r||(r=this.parsePAC(n,i)),r||(r=this.parseBackgroundAttributes(n,i))}else od(null,null,s);if(!r&&(a=this.parseChars(n,i))){let e=this.currentChannel;e&&e>0?this.channels[e].insertChars(a):this.logger.log(2,"No channel found yet. TEXT-MODE?")}r||a||this.logger.log(2,()=>"Couldn't parse cleaned data "+or([n,i])+" orig: "+or([t[e],t[e+1]]))}}parseCmd(e,t){let n=(20===e||28===e||21===e||29===e)&&t>=32&&t<=47,i=(23===e||31===e)&&t>=33&&t<=35;if(!(n||i))return!1;let r=20===e||21===e||23===e?1:2,a=this.channels[r];return 20===e||21===e||28===e||29===e?32===t?a.ccRCL():33===t?a.ccBS():34===t?a.ccAOF():35===t?a.ccAON():36===t?a.ccDER():37===t?a.ccRU(2):38===t?a.ccRU(3):39===t?a.ccRU(4):40===t?a.ccFON():41===t?a.ccRDC():42===t?a.ccTR():43===t?a.ccRTD():44===t?a.ccEDM():45===t?a.ccCR():46===t?a.ccENM():47===t&&a.ccEOC():a.ccTO(t-32),this.currentChannel=r,!0}parseMidrow(e,t){let n=0;if((17===e||25===e)&&t>=32&&t<=47){if((n=17===e?1:2)!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;let i=this.channels[n];return!!i&&(i.ccMIDROW(t),this.logger.log(3,()=>"MIDROW ("+or([e,t])+")"),!0)}return!1}parsePAC(e,t){let n;let i=(e>=17&&e<=23||e>=25&&e<=31)&&t>=64&&t<=127,r=(16===e||24===e)&&t>=64&&t<=95;if(!(i||r))return!1;let a=e<=23?1:2;n=t>=64&&t<=95?1===a?s7[e]:oe[e]:1===a?s9[e]:ot[e];let s=this.channels[a];return!!s&&(s.setPAC(this.interpretPAC(n,t)),this.currentChannel=a,!0)}interpretPAC(e,t){let n;let i={color:null,italics:!1,indent:null,underline:!1,row:e};return n=t>95?t-96:t-64,i.underline=(1&n)==1,n<=13?i.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(n/2)]:n<=15?(i.italics=!0,i.color="white"):i.indent=4*Math.floor((n-16)/2),i}parseChars(e,t){let n;let i=null,r=null;if(e>=25?(n=2,r=e-8):(n=1,r=e),r>=17&&r<=19){let e;e=17===r?t+80:18===r?t+112:t+144,this.logger.log(2,()=>"Special char '"+s4(e)+"' in channel "+n),i=[e]}else e>=32&&e<=127&&(i=0===t?[e]:[e,t]);return i&&this.logger.log(3,()=>"Char codes = "+or(i).join(",")),i}
280parseBackgroundAttributes(e,t){let n;let i=(16===e||24===e)&&t>=32&&t<=47,r=(23===e||31===e)&&t>=45&&t<=47;if(!(i||r))return!1;let a={};16===e||24===e?(n=Math.floor((t-32)/2),a.background=on[n],t%2==1&&(a.background=a.background+"_semi")):45===t?a.background="transparent":(a.foreground="black",47===t&&(a.underline=!0));let s=e<=23?1:2;return this.channels[s].setBkgData(a),!0}reset(){for(let e=0;e<Object.keys(this.channels).length;e++){let t=this.channels[e];t&&t.reset()}od(null,null,this.cmdHistory)}cueSplitAtTime(e){for(let t=0;t<this.channels.length;t++){let n=this.channels[t];n&&n.cueSplitAtTime(e)}}}function od(e,t,n){n.a=e,n.b=t}function oh(e,t,n){return n.a===e&&n.b===t}function of(){return{a:null,b:null}}var op=function(){if(null!=np&&np.VTTCue)return self.VTTCue;let e=["","lr","rl"],t=["start","middle","end","left","right"];function n(e,t){if("string"!=typeof t||!Array.isArray(e))return!1;let n=t.toLowerCase();return!!~e.indexOf(n)&&n}function i(t){return n(e,t)}function r(e){return n(t,e)}function a(e,...t){let n=1;for(;n<arguments.length;n++){let t=arguments[n];for(let n in t)e[n]=t[n]}return e}function s(e,t,n){let s=this,o={enumerable:!0};s.hasBeenReset=!1;let l="",u=!1,c=e,d=t,h=n,f=null,p="",m=!0,g="auto",v="start",y=50,_="middle",b=50,x="middle";Object.defineProperty(s,"id",a({},o,{get:function(){return l},set:function(e){l=""+e}})),Object.defineProperty(s,"pauseOnExit",a({},o,{get:function(){return u},set:function(e){u=!!e}})),Object.defineProperty(s,"startTime",a({},o,{get:function(){return c},set:function(e){if("number"!=typeof e)throw TypeError("Start time must be set to a number.");c=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"endTime",a({},o,{get:function(){return d},set:function(e){if("number"!=typeof e)throw TypeError("End time must be set to a number.");d=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"text",a({},o,{get:function(){return h},set:function(e){h=""+e,this.hasBeenReset=!0}})),Object.defineProperty(s,"region",a({},o,{get:function(){return f},set:function(e){f=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"vertical",a({},o,{get:function(){return p},set:function(e){let t=i(e);if(!1===t)throw SyntaxError("An invalid or illegal string was specified.");p=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"snapToLines",a({},o,{get:function(){return m},set:function(e){m=!!e,this.hasBeenReset=!0}})),Object.defineProperty(s,"line",a({},o,{get:function(){return g},set:function(e){if("number"!=typeof e&&"auto"!==e)throw SyntaxError("An invalid number or illegal string was specified.");g=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"lineAlign",a({},o,{get:function(){return v},set:function(e){let t=r(e);if(!t)throw SyntaxError("An invalid or illegal string was specified.");v=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"position",a({},o,{get:function(){return y},set:function(e){if(e<0||e>100)throw Error("Position must be between 0 and 100.");y=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"positionAlign",a({},o,{get:function(){return _},set:function(e){let t=r(e);if(!t)throw SyntaxError("An invalid or illegal string was specified.");_=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"size",a({},o,{get:function(){return b},set:function(e){if(e<0||e>100)throw Error("Size must be between 0 and 100.");b=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"align",a({},o,{get:function(){return x},set:function(e){let t=r(e);if(!t)throw SyntaxError("An invalid or illegal string was specified.");x=t,this.hasBeenReset=!0}})),s.displayState=void 0}return s.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},s}();class om{decode(e,t){if(!e)return"";if("string"!=typeof e)throw Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}function og(e){function t(e,t,n,i){return(0|e)*3600+(0|t)*60+(0|n)+parseFloat(i||0)}let n=e.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return n?parseFloat(n[2])>59?t(n[2],n[3],0,n[4]):t(n[1],n[2],n[3],n[4]):null}class ov{constructor(){this.values=Object.create(null)}set(e,t){this.get(e)||""===t||(this.values[e]=t)}get(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t}has(e){return e in this.values}alt(e,t,n){for(let i=0;i<n.length;++i)if(t===n[i]){this.set(e,t);break}}integer(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))}percent(e,t){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(t)){let n=parseFloat(t);if(n>=0&&n<=100)return this.set(e,n),!0}return!1}}function oy(e,t,n,i){let r=i?e.split(i):[e];for(let e in r){if("string"!=typeof r[e])continue;let i=r[e].split(n);2===i.length&&t(i[0],i[1])}}let o_=new op(0,0,""),ob="middle"===o_.align?"middle":"center";
280function ox(e,t,n){let i=e;function r(){let t=og(e);if(null===t)throw Error("Malformed timestamp: "+i);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function a(e,t){let i=new ov;oy(e,function(e,t){let r;switch(e){case"region":for(let r=n.length-1;r>=0;r--)if(n[r].id===t){i.set(e,n[r].region);break}break;case"vertical":i.alt(e,t,["rl","lr"]);break;case"line":r=t.split(","),i.integer(e,r[0]),i.percent(e,r[0])&&i.set("snapToLines",!1),i.alt(e,r[0],["auto"]),2===r.length&&i.alt("lineAlign",r[1],["start",ob,"end"]);break;case"position":r=t.split(","),i.percent(e,r[0]),2===r.length&&i.alt("positionAlign",r[1],["start",ob,"end","line-left","line-right","auto"]);break;case"size":i.percent(e,t);break;case"align":i.alt(e,t,["start",ob,"end","left","right"])}},/:/,/\s/),t.region=i.get("region",null),t.vertical=i.get("vertical","");let r=i.get("line","auto");"auto"===r&&-1===o_.line&&(r=-1),t.line=r,t.lineAlign=i.get("lineAlign","start"),t.snapToLines=i.get("snapToLines",!0),t.size=i.get("size",100),t.align=i.get("align",ob);let a=i.get("position","auto");"auto"===a&&50===o_.position&&(a="start"===t.align||"left"===t.align?0:"end"===t.align||"right"===t.align?100:50),t.position=a}function s(){e=e.replace(/^\s+/,"")}if(s(),t.startTime=r(),s(),"-->"!==e.slice(0,3))throw Error("Malformed time stamp (time stamps must be separated by '-->'): "+i);e=e.slice(3),s(),t.endTime=r(),s(),a(e,t)}function oC(e){return e.replace(/<br(?: \/)?>/gi,"\n")}class oE{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new om,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}parse(e){let t=this;function n(){let e=t.buffer,n=0;for(e=oC(e);n<e.length&&"\r"!==e[n]&&"\n"!==e[n];)++n;let i=e.slice(0,n);return"\r"===e[n]&&++n,"\n"===e[n]&&++n,t.buffer=e.slice(n),i}function i(e){oy(e,function(e,t){},/:/)}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{let e="";if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;let i=(e=n()).match(/^()?WEBVTT([ \t].*)?$/);if(!(null!=i&&i[0]))throw Error("Malformed WebVTT signature.");t.state="HEADER"}let r=!1;for(;t.buffer&&/\r\n|\n/.test(t.buffer);)switch(r?r=!1:e=n(),t.state){case"HEADER":/:/.test(e)?i(e):e||(t.state="ID");continue;case"NOTE":e||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(e)){t.state="NOTE";break}if(!e)continue;if(t.cue=new op(0,0,""),t.state="CUE",-1===e.indexOf("-->")){t.cue.id=e;continue}case"CUE":if(!t.cue){t.state="BADCUE";continue}try{ox(e,t.cue,t.regionList)}catch(e){t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":{let n=-1!==e.indexOf("-->");if(!e||n&&(r=!0)){t.oncue&&t.cue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}if(null===t.cue)continue;t.cue.text&&(t.cue.text+="\n"),t.cue.text+=e}continue;case"BADCUE":e||(t.state="ID")}}catch(e){"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this}flush(){let e=this;try{if((e.cue||"HEADER"===e.state)&&(e.buffer+="\n\n",e.parse()),"INITIAL"===e.state||"BADWEBVTT"===e.state)throw Error("Malformed WebVTT signature.")}catch(t){e.onparsingerror&&e.onparsingerror(t)}return e.onflush&&e.onflush(),this}}let ow=/\r\n|\n\r|\n|\r/g,oT=function(e,t,n=0){return e.slice(n,n+t.length)===t},oS=function(e){let t=parseInt(e.slice(-3)),n=parseInt(e.slice(-6,-4)),i=parseInt(e.slice(-9,-7)),a=e.length>9?parseInt(e.substring(0,e.indexOf(":"))):0;if(!r(t)||!r(n)||!r(i)||!r(a))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${e}`);return t+(1e3*n+6e4*i+36e5*a)};function oL(e,t,n){return sj(e.toString())+sj(t.toString())+sj(n)}let oP=function(e,t,n){let i=e[t],r=e[i.prevCC];if(!r||!r.new&&i.new){e.ccOffset=e.presentationOffset=i.start,i.new=!1;return}for(;null!=(a=r)&&a.new;){var a;e.ccOffset+=i.start-r.start,i.new=!1,r=e[(i=r).prevCC]}e.presentationOffset=n};function oM(e,t,n,i,r,a,s){let o;let l=new oE,u=D(new Uint8Array(e)).trim().replace(ow,"\n").split("\n"),c=[],d=t?rD(t.baseTime,t.timescale):0,h="00:00.000",f=0,p=0,m=!0;l.oncue=function(e){let a=n[i],s=n.ccOffset,l=(f-d)/9e4;if(null!=a&&a.new&&(void 0!==p?s=n.ccOffset=a.start:oP(n,i,l)),l){if(!t){o=Error("Missing initPTS for VTT MPEGTS");return}s=l-n.presentationOffset}let u=e.endTime-e.startTime,h=rG((e.startTime+s-p)*9e4,9e4*r)/9e4;e.startTime=Math.max(h,0),e.endTime=Math.max(h+u,0);let m=e.text.trim();e.text=decodeURIComponent(encodeURIComponent(m)),e.id||(e.id=oL(e.startTime,e.endTime,m)),e.endTime>0&&c.push(e)},l.onparsingerror=function(e){o=e}
280,l.onflush=function(){if(o){s(o);return}a(c)},u.forEach(e=>{if(m){if(oT(e,"X-TIMESTAMP-MAP=")){m=!1,e.slice(16).split(",").forEach(e=>{oT(e,"LOCAL:")?h=e.slice(6):oT(e,"MPEGTS:")&&(f=parseInt(e.slice(7)))});try{p=oS(h)/1e3}catch(e){o=e}return}""===e&&(m=!1)}l.parse(e+"\n")}),l.flush()}let oA="stpp.ttml.im1t",oI=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,oR=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,ok={left:"start",center:"center",right:"end",start:"start",end:"end"};function oD(e,t,n,i){let r=ei(new Uint8Array(e),["mdat"]);if(0===r.length){i(Error("Could not parse IMSC1 mdat"));return}let a=r.map(e=>D(e)),s=rR(t.baseTime,1,t.timescale);try{a.forEach(e=>n(oN(e,s)))}catch(e){i(e)}}function oN(e,t){let n=new DOMParser().parseFromString(e,"text/xml").getElementsByTagName("tt")[0];if(!n)throw Error("Invalid ttml");let i={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},r=Object.keys(i).reduce((e,t)=>(e[t]=n.getAttribute(`ttp:${t}`)||i[t],e),{}),a="preserve"!==n.getAttribute("xml:space"),s=oO(oF(n,"styling","style")),o=oO(oF(n,"layout","region")),l=oF(n,"body","[begin]");return[].map.call(l,e=>{let n=oj(e,a);if(!n||!e.hasAttribute("begin"))return null;let i=oH(e.getAttribute("begin"),r),l=oH(e.getAttribute("dur"),r),u=oH(e.getAttribute("end"),r);if(null===i)throw oB(e);if(null===u){if(null===l)throw oB(e);u=i+l}let c=new op(i-t,u-t,n);c.id=oL(c.startTime,c.endTime,c.text);let d=oU(o[e.getAttribute("region")],s[e.getAttribute("style")],s),{textAlign:h}=d;if(h){let e=ok[h];e&&(c.lineAlign=e),c.align=h}return v(c,d),c}).filter(e=>null!==e)}function oF(e,t,n){let i=e.getElementsByTagName(t)[0];return i?[].slice.call(i.querySelectorAll(n)):[]}function oO(e){return e.reduce((e,t)=>{let n=t.getAttribute("xml:id");return n&&(e[n]=t),e},{})}function oj(e,t){return[].slice.call(e.childNodes).reduce((e,n,i)=>{var r;return"br"===n.nodeName&&i?e+"\n":null!=(r=n.childNodes)&&r.length?oj(n,t):t?e+n.textContent.trim().replace(/\s+/g," "):e+n.textContent},"")}function oU(e,t,n){let i="http://www.w3.org/ns/ttml#styling",r=null,a=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],s=null!=e&&e.hasAttribute("style")?e.getAttribute("style"):null;return s&&n.hasOwnProperty(s)&&(r=n[s]),a.reduce((n,a)=>{let s=oV(t,i,a)||oV(e,i,a)||oV(r,i,a);return s&&(n[a]=s),n},{})}function oV(e,t,n){return e&&e.hasAttributeNS(t,n)?e.getAttributeNS(t,n):null}function oB(e){return Error(`Could not parse ttml timestamp ${e}`)}function oH(e,t){if(!e)return null;let n=og(e);return null===n&&(oI.test(e)?n=oG(e,t):oR.test(e)&&(n=oz(e,t))),n}function oG(e,t){let n=oI.exec(e),i=(0|n[4])+(0|n[5])/t.subFrameRate;return(0|n[1])*3600+(0|n[2])*60+(0|n[3])+i/t.frameRate}function oz(e,t){let n=oR.exec(e),i=Number(n[1]);switch(n[2]){case"h":return 3600*i;case"m":return 60*i;case"ms":return 1e3*i;case"f":return i/t.frameRate;case"t":return i/t.tickRate}return i}class oq{constructor(e,t){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=e,this.trackName=t}dispatchCue(){null!==this.startTime&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)}newCue(e,t,n){(null===this.startTime||this.startTime>e)&&(this.startTime=e),this.endTime=t,this.screen=n,this.timelineController.createCaptionsTrack(this.trackName)}reset(){this.cueRanges=[],this.startTime=null}}class oW{constructor(e){this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=oK(),this.captionsProperties=void 0,this.hls=e,this.config=e.config,this.Cues=e.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}}
vendor: 3,553 bytes, line 280
280,e.on(u.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(u.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(u.FRAG_LOADING,this.onFragLoading,this),e.on(u.FRAG_LOADED,this.onFragLoaded,this),e.on(u.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.on(u.FRAG_DECRYPTED,this.onFragDecrypted,this),e.on(u.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(u.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.on(u.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){let{hls:e}=this;e.off(u.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(u.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(u.FRAG_LOADING,this.onFragLoading,this),e.off(u.FRAG_LOADED,this.onFragLoaded,this),e.off(u.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.off(u.FRAG_DECRYPTED,this.onFragDecrypted,this),e.off(u.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(u.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.off(u.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.media=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){let e=new oq(this,"textTrack1"),t=new oq(this,"textTrack2"),n=new oq(this,"textTrack3"),i=new oq(this,"textTrack4");this.cea608Parser1=new oc(1,e,t),this.cea608Parser2=new oc(3,n,i)}addCues(e,t,n,i,r){let a=!1;for(let e=r.length;e--;){let i=r[e],s=oY(i[0],i[1],t,n);if(s>=0&&(i[0]=Math.min(i[0],t),i[1]=Math.max(i[1],n),a=!0,s/(n-t)>.5))return}if(a||r.push([t,n]),this.config.renderTextTracksNatively){let r=this.captionsTracks[e];this.Cues.newCue(r,t,n,i)}else{let r=this.Cues.newCue(null,t,n,i);this.hls.trigger(u.CUES_PARSED,{type:"captions",cues:r,track:e})}}onInitPtsFound(e,{frag:t,id:n,initPTS:i,timescale:r,trackId:a}){let{unparsedVttFrags:s}=this;n===f.MAIN&&(this.initPTS[t.cc]={baseTime:i,timescale:r,trackId:a}),s.length&&(this.unparsedVttFrags=[],s.forEach(e=>{this.initPTS[e.frag.cc]?this.onFragLoaded(u.FRAG_LOADED,e):this.hls.trigger(u.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e.frag,error:Error("Subtitle discontinuity domain does not match main")})}))}getExistingTrack(e,t){let{media:n}=this;if(n)for(let i=0;i<n.textTracks.length;i++){let r=n.textTracks[i];if(oZ(r,{name:e,lang:t,characteristics:"transcribes-spoken-dialog,describes-music-and-sound"}))return r}return null}createCaptionsTrack(e){this.config.renderTextTracksNatively?this.createNativeTrack(e):this.createNonNativeTrack(e)}createNativeTrack(e){if(this.captionsTracks[e])return;let{captionsProperties:t,captionsTracks:n,media:i}=this,{label:r,languageCode:a}=t[e],s=this.getExistingTrack(r,a);if(s)n[e]=s,sI(n[e]),sM(n[e],i);else{let t=this.createTextTrack("captions",r,a);t&&(t[e]=!0,n[e]=t)}}createNonNativeTrack(e){if(this.nonNativeCaptionsTracks[e])return;let t=this.captionsProperties[e];if(!t)return;let n={_id:e,label:t.label,kind:"captions",default:!!t.media&&!!t.media.default,closedCaptions:t.media};this.nonNativeCaptionsTracks[e]=n,this.hls.trigger(u.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[n]})}createTextTrack(e,t,n){let i=this.media;if(i)return i.addTextTrack(e,t,n)}onMediaAttaching(e,t){this.media=t.media,t.mediaSource||this._cleanTracks()}onMediaDetaching(e,t){let n=!!t.transferMedia;if(this.media=null,n)return;let{captionsTracks:i}=this;
280Object.keys(i).forEach(e=>{sI(i[e]),delete i[e]}),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=oK(),this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())}_cleanTracks(){let{media:e}=this;if(!e)return;let t=e.textTracks;if(t)for(let e=0;e<t.length;e++)sI(t[e])}onSubtitleTracksUpdated(e,t){let n=t.subtitleTracks||[],i=n.some(e=>e.textCodec===oA);if(this.config.enableWebVTT||i&&this.config.enableIMSC1){if(r9(this.tracks,n)){this.tracks=n;return}if(this.textTracks=[],this.tracks=n,this.config.renderTextTracksNatively){let e=this.media,t=e?sN(e.textTracks):null;if(this.tracks.forEach((e,n)=>{let i;if(t){let n=null;for(let i=0;i<t.length;i++)if(t[i]&&oZ(t[i],e)){n=t[i],t[i]=null;break}n&&(i=n)}if(i)sI(i);else{let t=o$(e);(i=this.createTextTrack(t,e.name,e.lang))&&(i.mode="disabled")}i&&this.textTracks.push(i)}),null!=t&&t.length){let e=t.filter(e=>null!==e).map(e=>e.label);e.length&&this.hls.logger.warn(`Media element contains unused subtitle tracks: ${e.join(", ")}. Replace media element for each source to clear TextTracks and captions menu.`)}}else if(this.tracks.length){let e=this.tracks.map(e=>({label:e.name,kind:e.type.toLowerCase(),default:e.default,subtitleTrack:e}));this.hls.trigger(u.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:e})}}}onManifestLoaded(e,t){this.config.enableCEA708Captions&&t.captions&&t.captions.forEach(e=>{let t=/(?:CC|SERVICE)([1-4])/.exec(e.instreamId);if(!t)return;let n=`textTrack${t[1]}`,i=this.captionsProperties[n];i&&(i.label=e.name,e.lang&&(i.languageCode=e.lang),i.media=e)})}closedCaptionsForLevel(e){let t=this.hls.levels[e.level];return null==t?void 0:t.attrs["CLOSED-CAPTIONS"]}onFragLoading(e,t){if(this.enabled&&t.frag.type===f.MAIN){var n,i;let{cea608Parser1:e,cea608Parser2:r,lastSn:a}=this,{cc:s,sn:o}=t.frag,l=null!=(n=null==(i=t.part)?void 0:i.index)?n:-1;e&&r&&(o!==a+1||o===a&&l!==this.lastPartIndex+1||s!==this.lastCc)&&(e.reset(),r.reset()),this.lastCc=s,this.lastSn=o,this.lastPartIndex=l}}onFragLoaded(e,t){let{frag:n,payload:i}=t;if(n.type===f.SUBTITLE){if(i.byteLength){let e=n.decryptdata,r="stats"in t;if(null==e||!e.encrypted||r){let e=this.tracks[n.level],r=this.vttCCs;r[n.cc]||(r[n.cc]={start:n.start,prevCC:this.prevCC,new:!0},this.prevCC=n.cc),e&&e.textCodec===oA?this._parseIMSC1(n,i):this._parseVTTs(t)}}else this.hls.trigger(u.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:Error("Empty subtitle payload")})}}_parseIMSC1(e,t){let n=this.hls;oD(t,this.initPTS[e.cc],t=>{this._appendCues(t,e.level),n.trigger(u.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:e})},t=>{n.logger.log(`Failed to parse IMSC1: ${t}`),n.trigger(u.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e,error:t})})}_parseVTTs(e){var t;let{frag:n,payload:i}=e,{initPTS:r,unparsedVttFrags:a}=this,s=r.length-1;if(!r[n.cc]&&-1===s){a.push(e);return}let o=this.hls;oM(null!=(t=n.initSegment)&&t.data?eg(n.initSegment.data,new Uint8Array(i)).buffer:i,this.initPTS[n.cc],this.vttCCs,n.cc,n.start,e=>{this._appendCues(e,n.level),o.trigger(u.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:n})},t=>{let r="Missing initPTS for VTT MPEGTS"===t.message;r?a.push(e):this._fallbackToIMSC1(n,i),o.logger.log(`Failed to parse VTT cue: ${t}`),r&&s>n.cc||o.trigger(u.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:t})})}_fallbackToIMSC1(e,t){let n=this.tracks[e.level];n.textCodec||oD(t,this.initPTS[e.cc],()=>{n.textCodec=oA,this._parseIMSC1(e,t)},()=>{n.textCodec="wvtt"})}_appendCues(e,t){let n=this.hls;if(this.config.renderTextTracksNatively){let n=this.textTracks[t];if(!n||"disabled"===n.mode)return;e.forEach(e=>sA(n,e))}else{let i=this.tracks[t];if(!i)return;let r=i.default?"default":"subtitles"+t;n.trigger(u.CUES_PARSED,{type:"subtitles",cues:e,track:r})}}onFragDecrypted(e,t){let{frag:n}=t;n.type===f.SUBTITLE&&this.onFragLoaded(u.FRAG_LOADED,t)}onSubtitleTracksCleared(){this.tracks=[],this.captionsTracks={}}onFragParsingUserdata(e,t){if(!this.enabled||!this.config.enableCEA708Captions)return;let{frag:n,samples:i}=t;if(n.type!==f.MAIN||"NONE"!==this.closedCaptionsForLevel(n))for(let e=0;e<i.length;e++){let t=i[e].bytes;if(t){this.cea608Parser1||this.initCea608Parsers();let n=this.extractCea608Data(t);this.cea608Parser1.addData(i[e].pts,n[0]),this.cea608Parser2.addData(i[e].pts,n[1])}}}onBufferFlushing(e,{startOffset:t,endOffset:n,endOffsetSubtitles:i,type:r}){let{media:a}=this;
280if(a&&!(a.currentTime<n)){if(!r||"video"===r){let{captionsTracks:e}=this;Object.keys(e).forEach(i=>sR(e[i],t,n))}if(this.config.renderTextTracksNatively&&0===t&&void 0!==i){let{textTracks:e}=this;Object.keys(e).forEach(n=>sR(e[n],t,i))}}}extractCea608Data(e){let t=[[],[]],n=31&e[0],i=2;for(let r=0;r<n;r++){let n=e[i++],r=127&e[i++],a=127&e[i++];if((0!==r||0!==a)&&(4&n)!=0){let e=3&n;(0===e||1===e)&&(t[e].push(r),t[e].push(a))}}return t}}function o$(e){return e.characteristics&&/transcribes-spoken-dialog/gi.test(e.characteristics)&&/describes-music-and-sound/gi.test(e.characteristics)?"captions":"subtitles"}function oZ(e,t){return!!e&&e.kind===o$(t)&&at(t,e)}function oY(e,t,n,i){return Math.min(t,i)-Math.max(e,n)}function oK(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}}}let oX=/\s/,oQ={newCue(e,t,n,i){let r,a,s,o,l;let u=[],c=self.VTTCue||self.TextTrackCue;for(let h=0;h<i.rows.length;h++)if(r=i.rows[h],s=!0,o=0,l="",!r.isEmpty()){var d;for(let e=0;e<r.chars.length;e++)oX.test(r.chars[e].uchar)&&s?o++:(l+=r.chars[e].uchar,s=!1);r.cueStartTime=t,t===n&&(n+=1e-4),o>=16?o--:o++;let i=oC(l.trim()),f=oL(t,n,i);null!=e&&null!=(d=e.cues)&&d.getCueById(f)||((a=new c(t,n,i)).id=f,a.line=h+1,a.align="left",a.position=10+Math.min(80,10*Math.floor(8*o/32)),u.push(a))}return e&&u.length&&(u.sort((e,t)=>"auto"===e.line||"auto"===t.line?0:e.line>8&&t.line>8?t.line-e.line:e.line-t.line),u.forEach(t=>sA(e,t))),u}};function oJ(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(e){}return!1}let o0=/(\d+)-(\d+)\/(\d+)/;class o1{constructor(e){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=null,this.response=null,this.controller=void 0,this.context=null,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=e.fetchSetup||o4,this.controller=new self.AbortController,this.stats=new V}destroy(){this.loader=this.callbacks=this.context=this.config=this.request=null,this.abortInternal(),this.response=null,this.fetchSetup=this.controller=this.stats=null}abortInternal(){this.controller&&!this.stats.loading.end&&(this.stats.aborted=!0,this.controller.abort())}abort(){var e;this.abortInternal(),null!=(e=this.callbacks)&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)}load(e,t,n){let i=this.stats;if(i.loading.start)throw Error("Loader can only be used once.");i.loading.start=self.performance.now();let a=o2(e,this.controller.signal),s="arraybuffer"===e.responseType,o=s?"byteLength":"length",{maxTimeToFirstByteMs:l,maxLoadTimeMs:u}=t.loadPolicy;this.context=e,this.config=t,this.callbacks=n,this.request=this.fetchSetup(e,a),self.clearTimeout(this.requestTimeout),t.timeout=l&&r(l)?l:u,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(i,e,this.response))},t.timeout),(r1(this.request)?this.request.then(self.fetch):self.fetch(this.request)).then(n=>{var a;this.response=this.loader=n;let o=Math.max(self.performance.now(),i.loading.start);if(self.clearTimeout(this.requestTimeout),t.timeout=u,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(i,e,this.response))},u-(o-i.loading.start)),!n.ok){let{status:e,statusText:t}=n;throw new o6(t||"fetch, bad network response",e,n)}i.loading.first=o,i.total=o5(n.headers)||i.total;let l=null==(a=this.callbacks)?void 0:a.onProgress;return l&&r(t.highWaterMark)?this.loadProgressively(n,i,e,t.highWaterMark,l):s?n.arrayBuffer():"json"===e.responseType?n.json():n.text()}).then(n=>{var a,s;let l=this.response;if(!l)throw Error("loader destroyed");self.clearTimeout(this.requestTimeout),i.loading.end=Math.max(self.performance.now(),i.loading.first);let u=n[o];u&&(i.loaded=i.total=u);let c={url:l.url,data:n,code:l.status},d=null==(a=this.callbacks)?void 0:a.onProgress;d&&!r(t.highWaterMark)&&d(i,e,n,l),null==(s=this.callbacks)||s.onSuccess(c,i,e,l)}).catch(t=>{var n;if(self.clearTimeout(this.requestTimeout),i.aborted)return;let r=t&&t.code||0,a=t?t.message:null;null==(n=this.callbacks)||n.onError({code:r,text:a},e,t?t.details:null,i)})}getCacheAge(){let e=null;if(this.response){let t=this.response.headers.get("age");e=t?parseFloat(t):null}return e}getResponseHeader(e){return this.response?this.response.headers.get(e):null}loadProgressively(e,t,n,i=0,r){let a=new ic,s=e.body.getReader(),o=()=>s.read().then(s=>{if(s.done)return a.dataLength&&r(t,n,a.flush().buffer,e),Promise.resolve(new ArrayBuffer(0));let l=s.value,u=l.length;return t.loaded+=u,u<i||a.dataLength?(a.push(l),a.dataLength>=i&&r(t,n,a.flush().buffer,e)):r(t,n,l.buffer,e),o()}).catch(()=>Promise.reject());return o()}}function o2(e,t){let n={method:"GET",mode:"cors",credentials:"same-origin",signal:t,headers:new self.Headers(v({},e.headers))};return e.rangeEnd&&n.headers.set("Range","bytes="+e.rangeStart+"-"+String(e.rangeEnd-1)),n}function o3(e){let t=o0.exec(e);if(t)return parseInt(t[2])-parseInt(t[1])+1}function o5(e){let t=e.get("Content-Range");if(t){let e=o3(t);if(r(e))return e}let n=e.get("Content-Length");if(n)return parseInt(n)}
280function o4(e,t){return new self.Request(e.url,t)}class o6 extends Error{constructor(e,t,n){super(e),this.code=void 0,this.details=void 0,this.code=t,this.details=n}}let o8=/^age:\s*[\d.]+\s*$/im;class o7{constructor(e){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=null,this.loader=null,this.stats=void 0,this.xhrSetup=e&&e.xhrSetup||null,this.stats=new V,this.retryDelay=0}destroy(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null,this.context=null,this.xhrSetup=null}abortInternal(){let e=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),e&&(e.onreadystatechange=null,e.onprogress=null,4!==e.readyState&&(this.stats.aborted=!0,e.abort()))}abort(){var e;this.abortInternal(),null!=(e=this.callbacks)&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)}load(e,t,n){if(this.stats.loading.start)throw Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=e,this.config=t,this.callbacks=n,this.loadInternal()}loadInternal(){let{config:e,context:t}=this;if(!e||!t)return;let n=this.loader=new self.XMLHttpRequest,i=this.stats;i.loading.first=0,i.loaded=0,i.aborted=!1;let r=this.xhrSetup;r?Promise.resolve().then(()=>{if(this.loader===n&&!this.stats.aborted)return r(n,t.url)}).catch(e=>{if(this.loader===n&&!this.stats.aborted)return n.open("GET",t.url,!0),r(n,t.url)}).then(()=>{this.loader!==n||this.stats.aborted||this.openAndSendXhr(n,t,e)}).catch(e=>{var r;null==(r=this.callbacks)||r.onError({code:n.status,text:e.message},t,n,i)}):this.openAndSendXhr(n,t,e)}openAndSendXhr(e,t,n){e.readyState||e.open("GET",t.url,!0);let i=t.headers,{maxTimeToFirstByteMs:a,maxLoadTimeMs:s}=n.loadPolicy;if(i)for(let t in i)e.setRequestHeader(t,i[t]);t.rangeEnd&&e.setRequestHeader("Range","bytes="+t.rangeStart+"-"+(t.rangeEnd-1)),e.onreadystatechange=this.readystatechange.bind(this),e.onprogress=this.loadprogress.bind(this),e.responseType=t.responseType,self.clearTimeout(this.requestTimeout),n.timeout=a&&r(a)?a:s,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.timeout),e.send()}readystatechange(){let{context:e,loader:t,stats:n}=this;if(!e||!t)return;let i=t.readyState,r=this.config;if(!n.aborted&&i>=2&&(0===n.loading.first&&(n.loading.first=Math.max(self.performance.now(),n.loading.start),r.timeout!==r.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),r.timeout=r.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),r.loadPolicy.maxLoadTimeMs-(n.loading.first-n.loading.start)))),4===i)){var a,s,o;self.clearTimeout(this.requestTimeout),t.onreadystatechange=null,t.onprogress=null;let i=t.status,l="text"===t.responseType?t.responseText:null;if(i>=200&&i<300){let r=null!=l?l:t.response;if(null!=r){n.loading.end=Math.max(self.performance.now(),n.loading.first);let o="arraybuffer"===t.responseType?r.byteLength:r.length;n.loaded=n.total=o,n.bwEstimate=8e3*n.total/(n.loading.end-n.loading.first);let l=null==(a=this.callbacks)?void 0:a.onProgress;l&&l(n,e,r,t);let u={url:t.responseURL,data:r,code:i};null==(s=this.callbacks)||s.onSuccess(u,n,e,t);return}}let u=r.loadPolicy.errorRetry;tL(u,n.retry,!1,{url:e.url,data:void 0,code:i})?this.retry(u):(A.error(`${i} while loading ${e.url}`),null==(o=this.callbacks)||o.onError({code:i,text:t.statusText},e,t,n))}}loadtimeout(){if(!this.config)return;let e=this.config.loadPolicy.timeoutRetry;if(tL(e,this.stats.retry,!0))this.retry(e);else{var t;A.warn(`timeout while loading ${null==(t=this.context)?void 0:t.url}`);let e=this.callbacks;e&&(this.abortInternal(),e.onTimeout(this.stats,this.context,this.loader))}}retry(e){let{context:t,stats:n}=this;this.retryDelay=tT(e,n.retry),n.retry++,A.warn(`${status?"HTTP Status "+status:"Timeout"} while loading ${null==t?void 0:t.url}, retrying ${n.retry}/${e.maxNumRetry} in ${this.retryDelay}ms`),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)}loadprogress(e){let t=this.stats;t.loaded=e.loaded,e.lengthComputable&&(t.total=e.total)}getCacheAge(){let e=null;if(this.loader&&o8.test(this.loader.getAllResponseHeaders())){let t=this.loader.getResponseHeader("age");e=t?parseFloat(t):null}return e}getResponseHeader(e){return this.loader&&RegExp(`^${e}:\\s*[\\d.]+\\s*$`,"im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(e):null}}let o9=_(_({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,maxDevicePixelRatio:Number.POSITIVE_INFINITY,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,startOnSegmentBoundary:!1,maxBufferSize:6e7,maxFragLookUpTolerance:.25,maxBufferHole:.1,detectStallWithCurrentTimeMs:1250,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,nudgeOnVideoHole:!0,liveSyncMode:"edge",liveSyncDurationCount:3,liveSyncOnStallIncrease:1,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftw
280areAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,ignorePlaylistParsingErrors:!1,loader:o7,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:tm,bufferController:ao,capLevelController:ad,errorController:tI,fpsController:sP,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrEwmaDefaultEstimateMax:5e6,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:nb,requireKeySystemAccessOnStart:!1,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableEmsgKLVMetadata:!1,enableID3MetadataCues:!0,enableInterstitialPlayback:!0,interstitialAppendInPlace:!0,interstitialLiveLookAhead:10,useMediaCapabilities:!0,preserveManualLevelOnError:!1,certLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null}},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},interstitialAssetListLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:3e4,timeoutRetry:{maxNumRetry:0,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:0,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},le()),{},{subtitleStreamController:s2,subtitleTrackController:sF,timelineController:oW,audioStreamController:r8,audioTrackController:an,emeController:sS,cmcdController:s_,contentSteeringController:sx,interstitialsController:s0});function le(){return{cueHandler:oQ,enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}}function lt(e,t,n){if((t.liveSyncDurationCount||t.liveMaxLatencyDurationCount)&&(t.liveSyncDuration||t.liveMaxLatencyDuration))throw Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(void 0!==t.liveMaxLatencyDurationCount&&(void 0===t.liveSyncDurationCount||t.liveMaxLatencyDurationCount<=t.liveSyncDurationCount))throw Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(void 0!==t.liveMaxLatencyDuration&&(void 0===t.liveSyncDuration||t.liveMaxLatencyDuration<=t.liveSyncDuration))throw Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');let i=ln(e),r=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];
280return["manifest","level","frag"].forEach(e=>{let a=`${"level"===e?"playlist":e}LoadPolicy`,s=void 0===t[a],o=[];r.forEach(n=>{let r=`${e}Loading${n}`,l=t[r];if(void 0!==l&&s){o.push(r);let e=i[a].default;switch(t[a]={default:e},n){case"TimeOut":e.maxLoadTimeMs=l,e.maxTimeToFirstByteMs=l;break;case"MaxRetry":e.errorRetry.maxNumRetry=l,e.timeoutRetry.maxNumRetry=l;break;case"RetryDelay":e.errorRetry.retryDelayMs=l,e.timeoutRetry.retryDelayMs=l;break;case"MaxRetryTimeout":e.errorRetry.maxRetryDelayMs=l,e.timeoutRetry.maxRetryDelayMs=l}}}),o.length&&n.warn(`hls.js config: "${o.join('", "')}" setting(s) are deprecated, use "${a}": ${tt(t[a])}`)}),_(_({},i),t)}function ln(e){return e&&"object"==typeof e?Array.isArray(e)?e.map(ln):Object.keys(e).reduce((t,n)=>(t[n]=ln(e[n]),t),{}):e}function li(e,t){let n=e.loader;n!==o1&&n!==o7?(t.log("[config]: Custom loader detected, cannot enable progressive streaming"),e.progressive=!1):oJ()&&(e.loader=o1,e.progressive=!0,e.enableSoftwareAES=!0,t.log("[config]: Progressive streaming enabled, using FetchLoader"))}let lr=2,la=.1,ls=.05,lo=100;class ll extends tQ{constructor(e,t){super("gap-controller",e.logger),this.hls=void 0,this.fragmentTracker=void 0,this.media=null,this.mediaSource=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.buffered={},this.lastCurrentTime=0,this.ended=0,this.waiting=0,this.onMediaPlaying=()=>{this.ended=0,this.waiting=0},this.onMediaWaiting=()=>{var e;null!=(e=this.media)&&e.seeking||(this.waiting=self.performance.now(),this.tick())},this.onMediaEnded=()=>{if(this.hls){var e;this.ended=(null==(e=this.media)?void 0:e.currentTime)||1,this.hls.trigger(u.MEDIA_ENDED,{stalled:!1})}},this.hls=e,this.fragmentTracker=t,this.registerListeners()}registerListeners(){let{hls:e}=this;
280e&&(e.on(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(u.BUFFER_APPENDED,this.onBufferAppended,this))}unregisterListeners(){let{hls:e}=this;e&&(e.off(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(u.BUFFER_APPENDED,this.onBufferAppended,this))}destroy(){super.destroy(),this.unregisterListeners(),this.media=this.hls=this.fragmentTracker=null,this.mediaSource=void 0}onMediaAttached(e,t){this.setInterval(lo),this.mediaSource=t.mediaSource;let n=this.media=t.media;sw(n,"playing",this.onMediaPlaying),sw(n,"waiting",this.onMediaWaiting),sw(n,"ended",this.onMediaEnded)}onMediaDetaching(e,t){this.clearInterval();let{media:n}=this;n&&(sT(n,"playing",this.onMediaPlaying),sT(n,"waiting",this.onMediaWaiting),sT(n,"ended",this.onMediaEnded),this.media=null),this.mediaSource=void 0}onBufferAppended(e,t){this.buffered=t.timeRanges}get hasBuffered(){return Object.keys(this.buffered).length>0}tick(){var e;if(!(null!=(e=this.media)&&e.readyState)||!this.hasBuffered)return;let t=this.media.currentTime;this.poll(t,this.lastCurrentTime),this.lastCurrentTime=t}poll(e,t){var n,i,r;let a=null==(n=this.hls)?void 0:n.config;if(!a)return;let s=this.media;if(!s)return;let{seeking:o}=s,l=this.seeking&&!o,c=!this.seeking&&o,d=s.paused&&!o||s.ended||0===s.playbackRate;if(this.seeking=o,e!==t){t&&(this.ended=0),this.moved=!0,!o&&(this.nudgeRetry=0,a.nudgeOnVideoHole&&!d&&e>t&&this.nudgeOnVideoHole(e,t)),0===this.waiting&&this.stallResolved(e);return}if(c||l){l&&this.stallResolved(e);return}if(d){this.nudgeRetry=0,this.stallResolved(e),!this.ended&&s.ended&&this.hls&&(this.ended=e||1,this.hls.trigger(u.MEDIA_ENDED,{stalled:!1}));return}if(!t2.getBuffered(s).length){this.nudgeRetry=0;return}let h=t2.bufferInfo(s,e,0),f=h.nextStart||0,p=this.fragmentTracker;if(o&&p&&this.hls){let t=lu(this.hls.inFlightFragments,e),n=h.len>lr,i=!f||t||f-e>lr&&!p.getPartialFragment(e);if(n||i)return;this.moved=!1}let m=null==(i=this.hls)?void 0:i.latestLevelDetails;if(!this.moved&&null!==this.stalled&&p){if(!(h.len>0)&&!f)return;
280let t=Math.max(f,h.start||0)-e,n=null!=m&&m.live?2*m.targetduration:lr,i=ld(e,p);if(t>0&&(t<=n||i)){s.paused||this._trySkipBufferHole(i);return}}let g=a.detectStallWithCurrentTimeMs,v=self.performance.now(),y=this.waiting,_=this.stalled;if(null===_){if(y>0&&v-y<g)_=this.stalled=y;else{this.stalled=v;return}}let b=v-_;if(!o&&(b>=g||y)&&this.hls){if((null==(r=this.mediaSource)?void 0:r.readyState)==="ended"&&!(null!=m&&m.live)&&1>Math.abs(e-((null==m?void 0:m.edge)||0))){if(this.ended)return;this.ended=e||1,this.hls.trigger(u.MEDIA_ENDED,{stalled:!0});return}if(this._reportStall(h),!this.media||!this.hls)return}let x=t2.bufferInfo(s,e,a.maxBufferHole);this._tryFixBufferStall(x,b,e)}stallResolved(e){let t=this.stalled;if(t&&this.hls&&(this.stalled=null,this.stallReported)){let n=self.performance.now()-t;this.log(`playback not stuck anymore @${e}, after ${Math.round(n)}ms`),this.stallReported=!1,this.waiting=0,this.hls.trigger(u.STALL_RESOLVED,{})}}nudgeOnVideoHole(e,t){var n;let i=this.buffered.video;if(this.hls&&this.media&&this.fragmentTracker&&null!=(n=this.buffered.audio)&&n.length&&i&&i.length>1&&e>i.end(0)){let n=t2.bufferedInfo(t2.timeRangesToArray(this.buffered.audio),e,0);if(n.len>1&&t>=n.start){let n=t2.timeRangesToArray(i),r=t2.bufferedInfo(n,t,0).bufferedIndex;if(r>-1&&r<n.length-1){let t=t2.bufferedInfo(n,e,0).bufferedIndex,i=n[r].end,a=n[r+1].start;if((-1===t||t>r)&&a-i<1&&e-i<2){let n=Error(`nudging playhead to flush pipeline after video hole. currentTime: ${e} hole: ${i} -> ${a} buffered index: ${t}`);this.warn(n.message),this.media.currentTime+=1e-6;let r=ld(e,this.fragmentTracker);r&&"fragment"in r?r=r.fragment:r||(r=void 0);let s=t2.bufferInfo(this.media,e,0);this.hls.trigger(u.ERROR,{type:o.MEDIA_ERROR,details:l.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:n,reason:n.message,frag:r,buffer:s.len,bufferInfo:s})}}}}}_tryFixBufferStall(e,t,n){var i,r;let{fragmentTracker:a,media:s}=this,o=null==(i=this.hls)?void 0:i.config;if(!s||!a||!o)return;let l=null==(r=this.hls)?void 0:r.latestLevelDetails,u=ld(n,a);if((u||null!=l&&l.live&&n<l.fragmentStart)&&(this._trySkipBufferHole(u)||!this.media))return;let c=e.buffered,d=this.adjacentTraversal(e,n);(c&&c.length>1&&e.len>o.maxBufferHole||e.nextStart&&(e.nextStart-n<o.maxBufferHole||d))&&(t>1e3*o.highBufferWatchdogPeriod||this.waiting)&&(this.warn("Trying to nudge playhead over buffer-hole"),this._tryNudgeBuffer(e))}adjacentTraversal(e,t){let n=this.fragmentTracker,i=e.nextStart;if(n&&i){let e=n.getFragAtPos(t,f.MAIN),r=n.getFragAtPos(i,f.MAIN);if(e&&r)return r.sn-e.sn<2}return!1}_reportStall(e){let{hls:t,media:n,stallReported:i,stalled:r}=this;if(!i&&null!==r&&n&&t){this.stallReported=!0;let i=Error(`Playback stalling at @${n.currentTime} due to low buffer (${tt(e)})`);this.warn(i.message),t.trigger(u.ERROR,{type:o.MEDIA_ERROR,details:l.BUFFER_STALLED_ERROR,fatal:!1,error:i,buffer:e.len,bufferInfo:e,stalled:{start:r}})}}_trySkipBufferHole(e){var t,n;let{fragmentTracker:i,media:r}=this,a=null==(t=this.hls)?void 0:t.config;if(!r||!i||!a)return 0;let s=r.currentTime,c=t2.bufferInfo(r,s,0),d=s<c.start?c.start:c.nextStart;if(d&&this.hls){let t=c.len<=a.maxBufferHole,h=c.len>0&&c.len<1&&r.readyState<3,p=d-s;if(p>0&&(t||h)){if(p>a.maxBufferHole){let t=!1;if(0===s){let e=i.getAppendedFrag(0,f.MAIN);e&&d<e.end&&(t=!0)}if(!t&&e){if(!(null!=(n=this.hls.loadLevelObj)&&n.details)||lu(this.hls.inFlightFragments,d))return 0;let t=!1,r=e.end;for(;r<d;){let e=ld(r,i);if(e)r+=e.duration;else{t=!0;break}}if(t)return 0}}let t=Math.max(d+ls,s+la);if(this.warn(`skipping hole, adjusting currentTime from ${s} to ${t}`),this.moved=!0,r.currentTime=t,!(null!=e&&e.gap)){let n=Error(`fragment loaded with buffer holes, seeking from ${s} to ${t}`),i={type:o.MEDIA_ERROR,details:l.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:n,reason:n.message,buffer:c.len,bufferInfo:c};e&&("fragment"in e?i.part=e:i.frag=e),this.hls.trigger(u.ERROR,i)}return t}}return 0}_tryNudgeBuffer(e){let{hls:t,media:n,nudgeRetry:i}=this,r=null==t?void 0:t.config;if(!n||!r)return 0;let a=n.currentTime;if(this.nudgeRetry++,i<r.nudgeMaxRetry){let s=a+(i+1)*r.nudgeOffset,c=Error(`Nudging 'currentTime' from ${a} to ${s}`);this.warn(c.message),n.currentTime=s,t.trigger(u.ERROR,{type:o.MEDIA_ERROR,details:l.BUFFER_NUDGE_ON_STALL,error:c,fatal:!1,buffer:e.len,bufferInfo:e})}else{let n=Error(`Playhead still not moving while enough data buffered @${a} after ${r.nudgeMaxRetry} nudges`);this.error(n.message),t.trigger(u.ERROR,{type:o.MEDIA_ERROR,details:l.BUFFER_STALLED_ERROR,error:n,fatal:!0,buffer:e.len,bufferInfo:e})}}}function lu(e,t){let n=lc(e.main);if(n&&n.start<=t)return n;let i=lc(e.audio);return i&&i.start<=t?i:null}function lc(e){if(!e)return null;switch(e.state){case io.IDLE:case io.STOPPED:case io.ENDED:case io.ERROR:return null}return e.frag}function ld(e,t){return t.getAppendedFrag(e,f.MAIN)||t.getPartialFragment(e)}let lh=.25;function lf(){if("undefined"!=typeof self)return self.VTTCue||self.TextTrackCue}function lp(e,t,n,i,r){let a=new e(t,n,"");try{a.value=i,r&&(a.type=r)}catch(s){a=new e(t,n,tt(r?_({type:r},i):i))}return a}let lm=(()=>{let e=lf();try{e&&new e(0,Number.POSITIVE_INFINITY,"")}catch(e){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();class lg{constructor(e){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.removeCues=!0,this.assetCue=void 0,this.onEventCueEnter=()=>{this.hls&&this.hls.trigger(u.EVENT_CUE_ENTER,{})},this.hls=e,this._registerListeners()}destroy(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=this.onEventCueEnter=null}_registerListeners(){let{hls:e}=this;
280e&&(e.on(u.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.on(u.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(u.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(u.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this))}_unregisterListeners(){let{hls:e}=this;e&&(e.off(u.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.off(u.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(u.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(u.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this))}onMediaAttaching(e,t){var n;this.media=t.media,(null==(n=t.overrides)?void 0:n.cueRemoval)===!1&&(this.removeCues=!1)}onMediaAttached(){var e;let t=null==(e=this.hls)?void 0:e.latestLevelDetails;t&&this.updateDateRangeCues(t)}onMediaDetaching(e,t){this.media=null,t.transferMedia||(this.id3Track&&(this.removeCues&&sI(this.id3Track,this.onEventCueEnter),this.id3Track=null),this.dateRangeCuesAppended={})}onManifestLoading(){this.dateRangeCuesAppended={}}createTrack(e){let t=this.getID3Track(e.textTracks);return t.mode="hidden",t}getID3Track(e){if(this.media){for(let t=0;t<e.length;t++){let n=e[t];if("metadata"===n.kind&&"id3"===n.label)return sM(n,this.media),n}return this.media.addTextTrack("metadata","id3")}}onFragParsingMetadata(e,t){if(!this.media||!this.hls)return;let{enableEmsgMetadataCues:n,enableID3MetadataCues:i}=this.hls.config;if(!n&&!i)return;let{samples:r}=t;this.id3Track||(this.id3Track=this.createTrack(this.media));let a=lf();if(a)for(let e=0;e<r.length;e++){let t=r[e].type;if(t===i1.emsg&&!n||!i)continue;let s=iX(r[e].data),o=r[e].pts,l=o+r[e].duration;l>lm&&(l=lm),l-o<=0&&(l=o+lh);for(let e=0;e<s.length;e++){let n=s[e];if(!iQ(n)){this.updateId3CueEnds(o,t);let e=lp(a,o,l,n,t);e&&this.id3Track.addCue(e)}}}}updateId3CueEnds(e,t){var n;let i=null==(n=this.id3Track)?void 0:n.cues;if(i)for(let n=i.length;n--;){let r=i[n];r.type===t&&r.startTime<e&&r.endTime===lm&&(r.endTime=e)}}onBufferFlushing(e,{startOffset:t,endOffset:n,type:i}){let{id3Track:r,hls:a}=this;if(!a)return;let{config:{enableEmsgMetadataCues:s,enableID3MetadataCues:o}}=a;if(r&&(s||o)){let e;sR(r,t,n,e="audio"===i?e=>e.type===i1.audioId3&&o:"video"===i?e=>e.type===i1.emsg&&s:e=>e.type===i1.audioId3&&o||e.type===i1.emsg&&s)}}onLevelUpdated(e,{details:t}){this.updateDateRangeCues(t,!0)}onLevelPtsUpdated(e,t){Math.abs(t.drift)>.01&&this.updateDateRangeCues(t.details)}updateDateRangeCues(e,t){if(!this.hls||!this.media)return;let{assetPlayerId:n,timelineOffset:i,enableDateRangeMetadataCues:a,interstitialsController:s}=this.hls.config;if(!a)return;let o=lf();if(n&&i&&!s){let{fragmentStart:t,fragmentEnd:i}=e,r=this.assetCue;r?(r.startTime=t,r.endTime=i):o&&(r=this.assetCue=lp(o,t,i,{assetPlayerId:this.hls.config.assetPlayerId},"hlsjs.interstitial.asset"))&&(r.id=n,this.id3Track||(this.id3Track=this.createTrack(this.media)),this.id3Track.addCue(r),r.addEventListener("enter",this.onEventCueEnter))}if(!e.hasProgramDateTime)return;let{id3Track:l}=this,{dateRanges:u}=e,c=Object.keys(u),d=this.dateRangeCuesAppended;if(l&&t){var h,f;if(null!=(h=l.cues)&&h.length){let e=Object.keys(d).filter(e=>!c.includes(e));for(let t=e.length;t--;){let n=e[t],i=null==(f=d[n])?void 0:f.cues;
280delete d[n],i&&Object.keys(i).forEach(e=>{let t=i[e];if(t){t.removeEventListener("enter",this.onEventCueEnter);try{l.removeCue(t)}catch(e){}}})}}else d=this.dateRangeCuesAppended={}}let p=e.fragments[e.fragments.length-1];if(0!==c.length&&r(null==p?void 0:p.programDateTime)){this.id3Track||(this.id3Track=this.createTrack(this.media));for(let e=0;e<c.length;e++){let t=c[e],n=u[t],i=n.startTime,r=d[t],a=(null==r?void 0:r.cues)||{},l=(null==r?void 0:r.durationKnown)||!1,h=lm,{duration:f,endDate:p}=n;if(p&&null!==f)h=i+f,l=!0;else if(n.endOnNext&&!l){let e=c.reduce((e,t)=>{if(t!==n.id){let i=u[t];if(i.class===n.class&&i.startDate>n.startDate&&(!e||n.startDate<e.startDate))return i}return e},null);e&&(h=e.startTime,l=!0)}let m=Object.keys(n.attr);for(let e=0;e<m.length;e++){let u=m[e];if(!nn(u))continue;let c=a[u];if(c)l&&!(null!=r&&r.durationKnown)?c.endTime=h:Math.abs(c.startTime-i)>.01&&(c.startTime=i,c.endTime=h);else if(o){let e=n.attr[u];ni(u)&&(e=F(e));let r=lp(o,i,h,{key:u,data:e},i1.dateRange);r&&(r.id=t,this.id3Track.addCue(r),a[u]=r,s&&("X-ASSET-LIST"===u||"X-ASSET-URL"===u)&&r.addEventListener("enter",this.onEventCueEnter))}}d[t]={cues:a,dateRange:n,durationKnown:l}}}}}class lv{constructor(e){this.hls=void 0,this.config=void 0,this.media=null,this.currentTime=0,this.stallCount=0,this._latency=null,this._targetLatencyUpdated=!1,this.onTimeupdate=()=>{let{media:e}=this,t=this.levelDetails;if(!e||!t)return;this.currentTime=e.currentTime;let n=this.computeLatency();if(null===n)return;this._latency=n;let{lowLatencyMode:i,maxLiveSyncPlaybackRate:r}=this.config;if(!i||1===r||!t.live)return;let a=this.targetLatency;if(null===a)return;let s=n-a;if(s<Math.min(this.maxLatency,a+t.targetduration)&&s>.05&&this.forwardBufferLength>1){let t=Math.min(Math.min(2,Math.max(1,r)),Math.max(1,Math.round(2/(1+Math.exp(-.75*s-this.edgeStalled))*20)/20));this.changeMediaPlaybackRate(e,t)}else 1!==e.playbackRate&&0!==e.playbackRate&&this.changeMediaPlaybackRate(e,1)},this.hls=e,this.config=e.config,this.registerListeners()}get levelDetails(){var e;return(null==(e=this.hls)?void 0:e.latestLevelDetails)||null}get latency(){return this._latency||0}get maxLatency(){let{config:e}=this;if(void 0!==e.liveMaxLatencyDuration)return e.liveMaxLatencyDuration;let t=this.levelDetails;return t?e.liveMaxLatencyDurationCount*t.targetduration:0}get targetLatency(){let e=this.levelDetails;if(null===e||null===this.hls)return null;let{holdBack:t,partHoldBack:n,targetduration:i}=e,{liveSyncDuration:r,liveSyncDurationCount:a,lowLatencyMode:s}=this.config,o=this.hls.userConfig,l=s&&n||t;(this._targetLatencyUpdated||o.liveSyncDuration||o.liveSyncDurationCount||0===l)&&(l=void 0!==r?r:a*i);let u=i;return l+Math.min(this.stallCount*this.config.liveSyncOnStallIncrease,u)}set targetLatency(e){this.stallCount=0,this.config.liveSyncDuration=e,this._targetLatencyUpdated=!0}get liveSyncPosition(){let e=this.estimateLiveEdge(),t=this.targetLatency;if(null===e||null===t)return null;let n=this.levelDetails;if(null===n)return null;let i=n.edge,r=e-t-this.edgeStalled;return Math.min(Math.max(i-n.totalduration,r),i-(this.config.lowLatencyMode&&n.partTarget||n.targetduration))}get drift(){let e=this.levelDetails;return null===e?1:e.drift}get edgeStalled(){let e=this.levelDetails;if(null===e)return 0;let t=3*(this.config.lowLatencyMode&&e.partTarget||e.targetduration);return Math.max(e.age-t,0)}get forwardBufferLength(){let{media:e}=this,t=this.levelDetails;if(!e||!t)return 0;let n=e.buffered.length;return(n?e.buffered.end(n-1):t.edge)-this.currentTime}destroy(){this.unregisterListeners(),this.onMediaDetaching(),this.hls=null}registerListeners(){let{hls:e}=this;
280e&&(e.on(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(u.ERROR,this.onError,this))}unregisterListeners(){let{hls:e}=this;e&&(e.off(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(u.ERROR,this.onError,this))}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("timeupdate",this.onTimeupdate)}onMediaDetaching(){this.media&&(this.media.removeEventListener("timeupdate",this.onTimeupdate),this.media=null)}onManifestLoading(){this._latency=null,this.stallCount=0}onLevelUpdated(e,{details:t}){t.advanced&&this.onTimeupdate(),!t.live&&this.media&&this.media.removeEventListener("timeupdate",this.onTimeupdate)}onError(e,t){var n;t.details===l.BUFFER_STALLED_ERROR&&(this.stallCount++,this.hls&&null!=(n=this.levelDetails)&&n.live&&this.hls.logger.warn("[latency-controller]: Stall detected, adjusting target latency"))}changeMediaPlaybackRate(e,t){var n,i;e.playbackRate!==t&&(null==(n=this.hls)||n.logger.debug(`[latency-controller]: latency=${this.latency.toFixed(3)}, targetLatency=${null==(i=this.targetLatency)?void 0:i.toFixed(3)}, forwardBufferLength=${this.forwardBufferLength.toFixed(3)}: adjusting playback rate from ${e.playbackRate} to ${t}`),e.playbackRate=t)}estimateLiveEdge(){let e=this.levelDetails;return null===e?null:e.edge+e.age}computeLatency(){let e=this.estimateLiveEdge();return null===e?null:e-this.currentTime}}class ly extends r7{constructor(e,t){super(e,"level-controller"),this._levels=[],this._firstLevel=-1,this._maxAutoLevel=-1,this._startLevel=void 0,this.currentLevel=null,this.currentLevelIndex=-1,this.manualLevelIndex=-1,this.steering=void 0,this.onParsedComplete=void 0,this.steering=t,this._registerListeners()}_registerListeners(){let{hls:e}=this;e.on(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(u.LEVEL_LOADED,this.onLevelLoaded,this),e.on(u.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(u.FRAG_BUFFERED,this.onFragBuffered,this),e.on(u.ERROR,this.onError,this)}_unregisterListeners(){let{hls:e}=this;e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(u.LEVEL_LOADED,this.onLevelLoaded,this),e.off(u.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(u.FRAG_BUFFERED,this.onFragBuffered,this),e.off(u.ERROR,this.onError,this)}destroy(){this._unregisterListeners(),this.steering=null,this.resetLevels(),super.destroy()}stopLoad(){this._levels.forEach(e=>{e.loadError=0,e.fragmentError=0}),super.stopLoad()}resetLevels(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[],this._maxAutoLevel=-1}onManifestLoading(e,t){this.resetLevels()}onManifestLoaded(e,t){let n=this.hls.config.preferManagedMediaSource,i=[],r={},a={},s=!1,o=!1,l=!1;t.levels.forEach(e=>{let t=e.attrs,{audioCodec:u,videoCodec:c}=e;u&&(e.audioCodec=u=eF(u,n)||void 0),c&&(c=e.videoCodec=eV(c));let{width:d,height:h,unknownCodecs:f}=e,p=f?f.length:0;if(f)for(let t=p;t--;){let n=f[t];this.isAudioSupported(n)?(e.audioCodec=u=u?`${u},${n}`:n,p--,eS.audio[u.substring(0,4)]=2):this.isVideoSupported(n)&&(e.videoCodec=c=c?`${c},${n}`:n,p--,eS.video[c.substring(0,4)]=2)}if(s||(s=!!(d&&h)),o||(o=!!c),l||(l=!!u),p||u&&!this.isAudioSupported(u)||c&&!this.isVideoSupported(c)){this.log(`Some or all CODECS not supported "${t.CODECS}"`);return}let{CODECS:m,"FRAME-RATE":g,"HDCP-LEVEL":v,"PATHWAY-ID":y,RESOLUTION:_,"VIDEO-RANGE":b}=t,x=`${y||"."}-`,C=`${x}${e.bitrate}-${_}-${g}-${m}-${b}-${v}`;if(r[C]){if(r[C].uri===e.url||e.attrs["PATHWAY-ID"])r[C].addGroupId("audio",t.AUDIO),r[C].addGroupId("text",t.SUBTITLES);else{let t=a[C]+=1;e.attrs["PATHWAY-ID"]=Array(t+1).join(".");let n=this.createLevel(e);r[C]=n,i.push(n)}}else{let t=this.createLevel(e);r[C]=t,a[C]=1,i.push(t)}}),this.filterAndSortMediaOptions(i,t,s,o,l)}createLevel(e){let t=new e6(e),n=e.supplemental;if(null!=n&&n.videoCodec&&!this.isVideoSupported(n.videoCodec)){let e=Error(`SUPPLEMENTAL-CODECS not supported "${n.videoCodec}"`);this.log(e.message),t.supportedResult=eq(e,[])}return t}isAudioSupported(e){return eP(e,"audio",this.hls.config.preferManagedMediaSource)}isVideoSupported(e){return eP(e,"video",this.hls.config.preferManagedMediaSource)}filterAndSortMediaOptions(e,t,n,i,r){let a=[],s=[],c=e;if((n||i)&&r&&(c=c.filter(({videoCodec:e,videoRange:t,width:n,height:i})=>(!!e||!!(n&&i))&&e2(t))),0===c.length){Promise.resolve().then(()=>
280{if(this.hls){let e="no level with compatible codecs found in manifest",n=e;t.levels.length&&(n=`one or more CODECS in variant not supported: ${tt(t.levels.map(e=>e.attrs.CODECS).filter((e,t,n)=>n.indexOf(e)===t))}`,this.warn(n),e+=` (${n})`);let i=Error(e);this.hls.trigger(u.ERROR,{type:o.MEDIA_ERROR,details:l.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:t.url,error:i,reason:n})}});return}t.audioTracks&&l_(a=t.audioTracks.filter(e=>!e.audioCodec||this.isAudioSupported(e.audioCodec))),t.subtitles&&l_(s=t.subtitles);let d=c.slice(0);c.sort((e,t)=>{if(e.attrs["HDCP-LEVEL"]!==t.attrs["HDCP-LEVEL"])return(e.attrs["HDCP-LEVEL"]||"")>(t.attrs["HDCP-LEVEL"]||"")?1:-1;if(n&&e.height!==t.height)return e.height-t.height;if(e.frameRate!==t.frameRate)return e.frameRate-t.frameRate;if(e.videoRange!==t.videoRange)return e1.indexOf(e.videoRange)-e1.indexOf(t.videoRange);if(e.videoCodec!==t.videoCodec){let n=eI(e.videoCodec),i=eI(t.videoCodec);if(n!==i)return i-n}if(e.uri===t.uri&&e.codecSet!==t.codecSet){let n=eR(e.codecSet),i=eR(t.codecSet);if(n!==i)return i-n}return e.averageBitrate!==t.averageBitrate?e.averageBitrate-t.averageBitrate:0});let h=d[0];if(this.steering&&(c=this.steering.filterParsedLevels(c)).length!==d.length){for(let e=0;e<d.length;e++)if(d[e].pathwayId===c[0].pathwayId){h=d[e];break}}this._levels=c;for(let e=0;e<c.length;e++)if(c[e]===h){var f;this._firstLevel=e;let t=h.bitrate,n=this.hls.bandwidthEstimate;if(this.log(`manifest loaded, ${c.length} level(s) found, first bitrate: ${t}`),(null==(f=this.hls.userConfig)?void 0:f.abrEwmaDefaultEstimate)===void 0){let e=Math.min(t,this.hls.config.abrEwmaDefaultEstimateMax);e>n&&n===this.hls.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=e)}break}let p=r&&!i,m=this.hls.config,g=!!(m.audioStreamController&&m.audioTrackController),v={levels:c,audioTracks:a,subtitleTracks:s,sessionData:t.sessionData,sessionKeys:t.sessionKeys,firstLevel:this._firstLevel,stats:t.stats,audio:r,video:i,altAudio:g&&!p&&a.some(e=>!!e.url)};this.hls.trigger(u.MANIFEST_PARSED,v)}get levels(){return 0===this._levels.length?null:this._levels}get loadLevelObj(){return this.currentLevel}get level(){return this.currentLevelIndex}set level(e){let t=this._levels;if(0===t.length)return;if(e<0||e>=t.length){let n=Error("invalid level idx"),i=e<0;if(this.hls.trigger(u.ERROR,{type:o.OTHER_ERROR,details:l.LEVEL_SWITCH_ERROR,level:e,fatal:i,error:n,reason:n.message}),i)return;e=Math.min(e,t.length-1)}let n=this.currentLevelIndex,i=this.currentLevel,r=i?i.attrs["PATHWAY-ID"]:void 0,a=t[e],s=a.attrs["PATHWAY-ID"];if(this.currentLevelIndex=e,this.currentLevel=a,n===e&&i&&r===s)return;this.log(`Switching to level ${e} (${a.height?a.height+"p ":""}${a.videoRange?a.videoRange+" ":""}${a.codecSet?a.codecSet+" ":""}@${a.bitrate})${s?" with Pathway "+s:""} from level ${n}${r?" with Pathway "+r:""}`);let c={level:e,attrs:a.attrs,details:a.details,bitrate:a.bitrate,averageBitrate:a.averageBitrate,maxBitrate:a.maxBitrate,realBitrate:a.realBitrate,width:a.width,height:a.height,codecSet:a.codecSet,audioCodec:a.audioCodec,videoCodec:a.videoCodec,audioGroups:a.audioGroups,subtitleGroups:a.subtitleGroups,loaded:a.loaded,loadError:a.loadError,fragmentError:a.fragmentError,name:a.name,id:a.id,uri:a.uri,url:a.url,urlId:0,audioGroupIds:a.audioGroupIds,textGroupIds:a.textGroupIds};this.hls.trigger(u.LEVEL_SWITCHING,c);let d=a.details;if(!d||d.live){let e=this.switchParams(a.uri,null==i?void 0:i.details,d);this.loadPlaylist(e)}}get manualLevel(){return this.manualLevelIndex}set manualLevel(e){this.manualLevelIndex=e,void 0===this._startLevel&&(this._startLevel=e),-1!==e&&(this.level=e)}get firstLevel(){return this._firstLevel}set firstLevel(e){this._firstLevel=e}get startLevel(){if(void 0===this._startLevel){let e=this.hls.config.startLevel;return void 0!==e?e:this.hls.firstAutoLevel}return this._startLevel}set startLevel(e){this._startLevel=e}get pathways(){return this.steering?this.steering.pathways():[]}get pathwayPriority(){return this.steering?this.steering.pathwayPriority:null}set pathwayPriority(e){if(this.steering){let t=this.steering.pathways(),n=e.filter(e=>-1!==t.indexOf(e));if(e.length<1){this.warn(`pathwayPriority ${e} should contain at least one pathway from list: ${t}`);return}this.steering.pathwayPriority=n}}onError(e,t){!t.fatal&&t.context&&t.context.type===h.LEVEL&&t.context.level===this.level&&this.checkRetry(t)}onFragBuffered(e,{frag:t}){if(void 0!==t&&t.type===f.MAIN){let e=t.elementaryStreams;if(!Object.keys(e).some(t=>!!e[t]))return;let n=this._levels[t.level];null!=n&&n.loadError&&(this.log(`Resetting level error count of ${n.loadError} on frag buffered`),n.loadError=0)}}onLevelLoaded(e,t){var n,i;let{level:r,details:a}=t,s=t.levelInfo;if(!s){this.warn(`Invalid level index ${r}`),null!=(i=t.deliveryDirectives)&&i.skip&&(a.deltaUpdateFailed=!0);return}if(s===this.currentLevel||t.withoutMultiVariant){0===s.fragmentError&&(s.loadError=0);let e=s.details;e===t.details&&e.advanced&&(e=void 0),this.playlistLoaded(r,t,e)}else null!=(n=t.deliveryDirectives)&&n.skip&&(a.deltaUpdateFailed=!0)}loadPlaylist(e){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentLevel)&&this.scheduleLo
280ading(this.currentLevel,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);let n=this.getUrlWithDirectives(e.uri,t),i=this.currentLevelIndex,r=e.attrs["PATHWAY-ID"],a=e.details,s=null==a?void 0:a.age;this.log(`Loading level index ${i}${(null==t?void 0:t.msn)!==void 0?" at sn "+t.msn+" part "+t.part:""}${r?" Pathway "+r:""}${s&&a.live?" age "+s.toFixed(1)+(a.type?" "+a.type:""):""} ${n}`),this.hls.trigger(u.LEVEL_LOADING,{url:n,level:i,levelInfo:e,pathwayId:e.attrs["PATHWAY-ID"],id:0,deliveryDirectives:t||null})}get nextLoadLevel(){return -1!==this.manualLevelIndex?this.manualLevelIndex:this.hls.nextAutoLevel}set nextLoadLevel(e){this.level=e,-1===this.manualLevelIndex&&(this.hls.nextAutoLevel=e)}removeLevel(e){var t;if(1===this._levels.length)return;let n=this._levels.filter((t,n)=>n!==e||(this.steering&&this.steering.removeLevel(t),t===this.currentLevel&&(this.currentLevel=null,this.currentLevelIndex=-1,t.details&&t.details.fragments.forEach(e=>e.level=-1)),!1));n4(n),this._levels=n,this.currentLevelIndex>-1&&null!=(t=this.currentLevel)&&t.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.manualLevelIndex>-1&&(this.manualLevelIndex=this.currentLevelIndex);let i=n.length-1;this._firstLevel=Math.min(this._firstLevel,i),this._startLevel&&(this._startLevel=Math.min(this._startLevel,i)),this.hls.trigger(u.LEVELS_UPDATED,{levels:n})}onLevelsUpdated(e,{levels:t}){this._levels=t}checkMaxAutoUpdated(){let{autoLevelCapping:e,maxAutoLevel:t,maxHdcpLevel:n}=this.hls;this._maxAutoLevel!==t&&(this._maxAutoLevel=t,this.hls.trigger(u.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:e,levels:this.levels,maxAutoLevel:t,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:n}))}}function l_(e){let t={};e.forEach(e=>{let n=e.groupId||"";e.id=t[n]=t[n]||0,t[n]++})}function lb(){return self.SourceBuffer||self.WebKitSourceBuffer}function lx(){if(!I())return!1;let e=lb();return!e||e.prototype&&"function"==typeof e.prototype.appendBuffer&&"function"==typeof e.prototype.remove}function lC(){if(!lx())return!1;let e=I();return"function"==typeof(null==e?void 0:e.isTypeSupported)&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some(t=>e.isTypeSupported(eA(t,"video")))||["mp4a.40.2","fLaC"].some(t=>e.isTypeSupported(eA(t,"audio"))))}function lE(){var e;let t=lb();return"function"==typeof(null==t||null==(e=t.prototype)?void 0:e.changeType)}let lw=100;class lT extends il{constructor(e,t,n){super(e,t,n,"stream-controller",f.MAIN),this.audioCodecSwap=!1,this.level=-1,this._forceStartLoad=!1,this._hasEnoughToStart=!1,this.altAudio=0,this.audioOnly=!1,this.fragPlaying=null,this.fragLastKbps=0,this.couldBacktrack=!1,this.backtrackFragment=null,this.audioCodecSwitch=!1,this.videoBuffer=null,this.onMediaPlaying=()=>{this.tick()},this.onMediaSeeked=()=>{let e=this.media,t=e?e.currentTime:null;if(null===t||!r(t)||(this.log(`Media seeked to ${t.toFixed(3)}`),!this.getBufferedFrag(t)))return;let n=this.getFwdBufferInfoAtPos(e,t,f.MAIN,0);if(null===n||0===n.len){this.warn(`Main forward buffer length at ${t} on "seeked" event ${n?n.len:"empty"})`);return}this.tick()},this.registerListeners()}registerListeners(){super.registerListeners();let{hls:e}=this;e.on(u.MANIFEST_PARSED,this.onManifestParsed,this),e.on(u.LEVEL_LOADING,this.onLevelLoading,this),e.on(u.LEVEL_LOADED,this.onLevelLoaded,this),e.on(u.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.on(u.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(u.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.on(u.BUFFER_CREATED,this.onBufferCreated,this),e.on(u.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(u.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(u.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){super.unregisterListeners();let{hls:e}=this;e.off(u.MANIFEST_PARSED,this.onManifestParsed,this),e.off(u.LEVEL_LOADED,this.onLevelLoaded,this),e.off(u.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.off(u.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(u.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.off(u.BUFFER_CREATED,this.onBufferCreated,this),e.off(u.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(u.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(u.FRAG_BUFFERED,this.onFragBuffered,this)}onHandlerDestroying(){this.onMediaPlaying=this.onMediaSeeked=null,this.unregisterListeners(),super.onHandlerDestroying()}
280startLoad(e,t){if(this.levels){let{lastCurrentTime:n,hls:i}=this;if(this.stopLoad(),this.setInterval(lw),this.level=-1,!this.startFragRequested){let e=i.startLevel;-1===e&&(i.config.testBandwidth&&this.levels.length>1?(e=0,this.bitrateTest=!0):e=i.firstAutoLevel),i.nextLoadLevel=e,this.level=i.loadLevel,this._hasEnoughToStart=!!t}n>0&&-1===e&&!t&&(this.log(`Override startPosition with lastCurrentTime @${n.toFixed(3)}`),e=n),this.state=io.IDLE,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}else this._forceStartLoad=!0,this.state=io.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case io.WAITING_LEVEL:{let{levels:e,level:t}=this,n=null==e?void 0:e[t],i=null==n?void 0:n.details;if(!i||i.live&&(this.levelLastLoaded!==n||this.waitForLive(n)))this.hls.nextLoadLevel!==this.level&&(this.state=io.IDLE);else{if(this.waitForCdnTuneIn(i))break;this.state=io.IDLE}break}case io.FRAG_LOADING_WAITING_RETRY:{var e;let t=self.performance.now(),n=this.retryDate;if(!n||t>=n||null!=(e=this.media)&&e.seeking){let{levels:e,level:t}=this,n=null==e?void 0:e[t];this.resetStartWhenNotLoaded(n||null),this.state=io.IDLE}}}this.state===io.IDLE&&this.doTickIdle(),this.onTickEnd()}onTickEnd(){var e;super.onTickEnd(),null!=(e=this.media)&&e.readyState&&!1===this.media.seeking&&(this.lastCurrentTime=this.media.currentTime),this.checkFragmentChanged()}doTickIdle(){let{hls:e,levelLastLoaded:t,levels:n,media:i}=this;if(null===t||!i&&!this.primaryPrefetch&&(this.startFragRequested||!e.config.startFragPrefetch)||this.altAudio&&this.audioOnly)return;let r=this.buffering?e.nextLoadLevel:e.loadLevel;if(!(null!=n&&n[r]))return;let a=n[r],s=this.getMainFwdBufferInfo();if(null===s)return;let o=this.getLevelDetails();if(o&&this._streamEnded(s,o)){let e={};2===this.altAudio&&(e.type="video"),this.hls.trigger(u.BUFFER_EOS,e),this.state=io.ENDED;return}if(!this.buffering)return;e.loadLevel!==r&&-1===e.manualLevel&&this.log(`Adapting to level ${r} from level ${this.level}`),this.level=e.nextLoadLevel=r;let l=a.details;if(!l||this.state===io.WAITING_LEVEL||this.waitForLive(a)){this.level=r,this.state=io.WAITING_LEVEL,this.startFragRequested=!1;return}let c=s.len,d=this.getMaxBufferLength(a.maxBitrate);if(c>=d)return;this.backtrackFragment&&this.backtrackFragment.start>s.end&&(this.backtrackFragment=null);let h=this.backtrackFragment?this.backtrackFragment.start:s.end,p=this.getNextFragment(h,l);if(this.couldBacktrack&&!this.fragPrevious&&p&&G(p)&&this.fragmentTracker.getState(p)!==tk.OK){var m;let e=(null!=(m=this.backtrackFragment)?m:p).sn-l.startSN,t=l.fragments[e-1];t&&p.cc===t.cc&&(p=t,this.fragmentTracker.removeFragment(t))}else this.backtrackFragment&&s.len&&(this.backtrackFragment=null);if(p&&this.isLoopLoading(p,h)){if(!p.gap){let e=this.audioOnly&&!this.altAudio?B.AUDIO:B.VIDEO,t=(e===B.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;t&&this.afterBufferFlushed(t,e,f.MAIN)}p=this.getNextFragmentLoopLoading(p,l,s,f.MAIN,d)}p&&(!p.initSegment||p.initSegment.data||this.bitrateTest||(p=p.initSegment),this.loadFragment(p,a,h))}loadFragment(e,t,n){let i=this.fragmentTracker.getState(e);i===tk.NOT_LOADED||i===tk.PARTIAL?G(e)?this.bitrateTest?(this.log(`Fragment ${e.sn} of level ${e.level} is being downloaded to test bitrate and will not be buffered`),this._loadBitrateTestFrag(e,t)):super.loadFragment(e,t,n):this._loadInitSegment(e,t):this.clearTrackerIfNeeded(e)}getBufferedFrag(e){return this.fragmentTracker.getBufferedFrag(e,f.MAIN)}followingBufferedFrag(e){return e?this.getBufferedFrag(e.end+.5):null}immediateLevelSwitch(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)}nextLevelSwitch(){let{levels:e,media:t}=this;if(null!=t&&t.readyState){let n;let i=this.getAppendedFrag(t.currentTime);i&&i.start>1&&this.flushMainBuffer(0,i.start-1);let r=this.getLevelDetails();if(null!=r&&r.live){let e=this.getMainFwdBufferInfo();if(!e||e.len<2*r.targetduration)return}if(!t.paused&&e){let t=e[this.hls.nextLoadLevel],i=this.fragLastKbps;n=i&&this.fragCurrent?this.fragCurrent.duration*t.maxBitrate/(1e3*i)+1:0}else n=0;let a=this.getBufferedFrag(t.currentTime+n);if(a){let e=this.followingBufferedFrag(a);if(e){this.abortCurrentFrag();let t=e.maxStartPTS?e.maxStartPTS:e.start,n=e.duration,i=Math.max(a.end,t+Math.min(Math.max(n-this.config.maxFragLookUpTolerance,n*(this.couldBacktrack?.5:.125)),n*(this.couldBacktrack?.75:.25)));this.flushMainBuffer(i,Number.POSITIVE_INFINITY)}}}}abortCurrentFrag(){let e=this.fragCurrent;switch(this.fragCurrent=null,this.backtrackFragment=null,e&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.state){case io.KEY_LOADING:case io.FRAG_LOADING:case io.FRAG_LOADING_WAITING_RETRY:case io.PARSING:case io.PARSED:this.state=io.IDLE}this.nextLoadPosition=this.getLoadPosition()}flushMainBuffer(e,t){super.flushMainBuffer(e,t,2===this.altAudio?"video":null)}onMediaAttached(e,t){super.onMediaAttached(e,t);let n=t.media;sw(n,"playing",this.onMediaPlaying),sw(n,"seeked",this.onMediaSeeked)}onMediaDetaching(e,t){let{media:n}=this;n&&(sT(n,"playing",this.onMediaPlaying),sT(n,"seeked",this.onMediaSeeked)),this.videoBuffer=null,this.fragPlaying=null,super.onMediaDetaching(e,t),t.transferMedia||(this._hasEnoughToStart=!1)}onManifestLoading(){super.onManifestLoading(),this.log("Trigger BUFFER_RESET"),this.hls.trigger(u.BUFFER_RESET,void 0),this.couldBacktrack=!1,this.fragLastKbps=0,this.fragPlaying=this.backtrackFragment=null,this.altAudio=0,this.audioOnly=!1}onManifestParsed(e,t){let n=!1,i=!1;for(let e=0;e<t.levels.length;e++){let r=t.levels[e].audioCodec;r&&(n=n||-1!==r.indexOf("mp4a.40.2"),i=i||-1!==r.indexOf("mp4a.40.5"))}this.audioCodecSwitch=n&&i&&!lE(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=t.levels,this.startFragRequested=!1}onLevelLoading(e,t){let{levels:n}=this;if(!n||this.state!==io.IDLE)return;let i=t.levelInfo;(!i.details||i.details.live&&(this.levelLastLoaded!==i||i.details.expired)||this.waitForCdnTuneIn(i.details))&&(this.state=io.WAITING_LEVEL)}onLevelLoaded(e,t){var n,i;let{levels:r,startFragRequested:a}=this,s=t.level,o=t.details,l=o.totalduration;if(!r){this.warn(`Levels were reset while loading level ${s}`);return}this.log(`Level ${s} loaded [${o.startSN},${o.endSN}]${o.lastPartSn?`[part-${o.lastPartSn}-${o.lastPartIndex}]`:""}, cc [${o.startCC}, ${o.endCC}] duration:${l}`);let c=t.levelInfo,d=this.fragCurrent;d&&(this.state===io.FRAG_LOADING||this.state===io.FRAG_LOADING_WAITING_RETRY)&&d.level!==t.level&&d.loader&&this.abortCurrentFrag();let h=0;if(o.live||null!=(n=c.details)&&n.live){if(this.checkLiveUpdate(o),o.deltaUpdateFailed)return;h=this.alignPlaylists(o,c.details,null==(i=this.levelLastLoaded)?void 0:i.details)}if(c.details=o,this.levelLastLoaded=c,a||this.setStartPosition(o,h),this.hls.trigger(u.LEVEL_UPDATED,{details:o,level:s}),this.state===io.WAITING_LEVEL){if(this.waitForCdnTuneIn(o))return;this.state=io.IDLE}a&&o.live&&this.synchronizeToLiveEdge(o),this.tick()}
280synchronizeToLiveEdge(e){let{config:t,media:n}=this;if(!n)return;let i=this.hls.liveSyncPosition,r=this.getLoadPosition(),a=e.fragmentStart,s=e.edge,o=r>=a-t.maxFragLookUpTolerance&&r<=s;if(null!==i&&n.duration>i&&(r<i||!o)){let a=void 0!==t.liveMaxLatencyDuration?t.liveMaxLatencyDuration:t.liveMaxLatencyDurationCount*e.targetduration;if((!o&&n.readyState<4||r<s-a)&&(this._hasEnoughToStart||(this.nextLoadPosition=i),n.readyState)){if(this.warn(`Playback: ${r.toFixed(3)} is located too far from the end of live sliding playlist: ${s}, reset currentTime to : ${i.toFixed(3)}`),"buffered"===this.config.liveSyncMode){var l;let e=t2.bufferInfo(n,i,0);if(!(null!=(l=e.buffered)&&l.length)||e.start<=r){n.currentTime=i;return}let{nextStart:t}=t2.bufferedInfo(e.buffered,r,0);t&&(n.currentTime=t)}else n.currentTime=i}}}_handleFragmentLoadProgress(e){var t;let n=e.frag,{part:i,payload:r}=e,{levels:a}=this;if(!a){this.warn(`Levels were reset while fragment load was in progress. Fragment ${n.sn} of level ${n.level} will not be buffered`);return}let s=a[n.level];if(!s){this.warn(`Level ${n.level} not found on progress`);return}let o=s.details;if(!o){this.warn(`Dropping fragment ${n.sn} of level ${n.level} after level details were reset`),this.fragmentTracker.removeFragment(n);return}let l=s.videoCodec,u=o.PTSKnown||!o.live,c=null==(t=n.initSegment)?void 0:t.data,d=this._getAudioCodec(s),h=this.transmuxer=this.transmuxer||new r4(this.hls,f.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),p=i?i.index:-1,m=-1!==p,g=new tJ(n.level,n.sn,n.stats.chunkCount,r.byteLength,p,m),v=this.initPTS[n.cc];h.push(r,c,d,l,n,i,o.totalduration,u,g,v)}onAudioTrackSwitching(e,t){let n=this.hls,i=2===this.altAudio;if(tp(t.url,n))this.altAudio=1;else{if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;let e=this.fragCurrent;e&&(this.log("Switching to main audio track, cancel main fragment load"),e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();if(i){this.fragmentTracker.removeAllFragments(),n.once(u.BUFFER_FLUSHED,()=>{this.hls&&this.hls.trigger(u.AUDIO_TRACK_SWITCHED,t)}),n.trigger(u.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null});return}n.trigger(u.AUDIO_TRACK_SWITCHED,t)}}onAudioTrackSwitched(e,t){let n=tp(t.url,this.hls);if(n){let e=this.videoBuffer;e&&this.mediaBuffer!==e&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=e)}this.altAudio=n?2:0,this.tick()}onBufferCreated(e,t){let n,i;let r=t.tracks,a=!1;for(let e in r){let t=r[e];if("main"===t.id){if(i=e,n=t,"video"===e){let t=r[e];t&&(this.videoBuffer=t.buffer)}}else a=!0}a&&n?(this.log(`Alternate track found, use ${i}.buffered to schedule main fragment loading`),this.mediaBuffer=n.buffer):this.mediaBuffer=this.media}onFragBuffered(e,t){let{frag:n,part:i}=t,r=n.type===f.MAIN;if(r){if(this.fragContextChanged(n)){this.warn(`Fragment ${n.sn}${i?" p: "+i.index:""} of level ${n.level} finished buffering, but was aborted. state: ${this.state}`),this.state===io.PARSED&&(this.state=io.IDLE);return}let e=i?i.stats:n.stats;this.fragLastKbps=Math.round(8*e.total/(e.buffering.end-e.loading.first)),G(n)&&(this.fragPrevious=n),this.fragBufferedComplete(n,i)}let a=this.media;a&&(!this._hasEnoughToStart&&t2.getBuffered(a).length&&(this._hasEnoughToStart=!0,this.seekToStartPos()),r&&this.tick())}get hasEnoughToStart(){return this._hasEnoughToStart}onError(e,t){var n;if(t.fatal){this.state=io.ERROR;return}switch(t.details){case l.FRAG_GAP:case l.FRAG_PARSING_ERROR:case l.FRAG_DECRYPT_ERROR:case l.FRAG_LOAD_ERROR:case l.FRAG_LOAD_TIMEOUT:case l.KEY_LOAD_ERROR:case l.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(f.MAIN,t);break;case l.LEVEL_LOAD_ERROR:case l.LEVEL_LOAD_TIMEOUT:case l.LEVEL_PARSING_ERROR:t.levelRetry||this.state!==io.WAITING_LEVEL||(null==(n=t.context)?void 0:n.type)!==h.LEVEL||(this.state=io.IDLE);break;case l.BUFFER_ADD_CODEC_ERROR:case l.BUFFER_APPEND_ERROR:if("main"!==t.parent)return;this.reduceLengthAndFlushBuffer(t)&&this.resetLoadingState();break;case l.BUFFER_FULL_ERROR:if("main"!==t.parent)return;this.reduceLengthAndFlushBuffer(t)&&(!this.config.interstitialsController&&this.config.assetPlayerId?this._hasEnoughToStart=!0:this.flushMainBuffer(0,Number.POSITIVE_INFINITY));break;case l.INTERNAL_EXCEPTION:this.recoverWorkerError(t)}}onFragLoadEmergencyAborted(){this.state=io.IDLE,this._hasEnoughToStart||(this.startFragRequested=!1,this.nextLoadPosition=this.lastCurrentTime),this.tickImmediate()}onBufferFlushed(e,{type:t}){if(t!==B.AUDIO||!this.altAudio){let e=(t===B.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;e&&(this.afterBufferFlushed(e,t,f.MAIN),this.tick())}}onLevelsUpdated(e,t){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level,-1===this.level&&this.resetWhenMissingContext(this.fragCurrent)),this.levels=t.levels}swapAudioCodec(){this.audioCodecSwap=!this.audioCodecSwap}seekToStartPos(){let{media:e}=this;if(!e)return;let t=e.currentTime,n=this.startPosition;if(n>=0&&t<n){if(e.seeking){this.log(`could not seek to ${n}, already seeking at ${t}`);return}let i=this.timelineOffset;i&&n&&(n+=i);let r=this.getLevelDetails(),a=t2.getBuffered(e),s=a.length?a.start(0):0,o=s-n,l=Math.max(this.config.maxBufferHole,this.config.maxFragLookUpTolerance);(this.config.startOnSegmentBoundary||o>0&&(o<l||this.loadingParts&&o<2*((null==r?void 0:r.partTarget)||0)))&&(this.log(`adjusting start position by ${o} to match buffer start`),n+=o,this.startPosition=n),t<n&&(this.log(`seek to target start position ${n} from current time ${t} buffer start ${s}`),e.currentTime=n)}}_getAudioCodec(e){let t=this.config.defaultAudioCodec||e.audioCodec;return this.audioCodecSwap&&t&&(this.log("Swapping audio codec"),t=-1!==t.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5"),t}_loadBitrateTestFrag(e,t){e.bitrateTest=!0,this._doFragLoad(e,t).then(e=>{let{hls:n}=this,i=null==e?void 0:e.frag;if(!i||this.fragContextChanged(i))return;t.fragmentError=0,this.state=io.IDLE,this.startFragRequested=!1,this.bitrateTest=!1;let r=i.stats;r.parsing.start=r.parsing.end=r.buffering.start=r.buffering.end=self.performance.now(),n.trigger(u.FRAG_LOADED,e),i.bitrateTest=!1})}_handleTransmuxComplete(e){let t=this.playlistType,{hls:n}=this,{remuxResult:i,chunkMeta:a}=e,s=this.getCurrentContext(a);if(!s){this.resetWhenMissingContext(a);return}let{frag:o,part:l,level:c}=s,{video:d,text:h,id3:f,initSegment:p}=i,{details:m}=c,g=this.altAudio?void 0:i.audio;if(this.fragContextChanged(o)){this.fragmentTracker.removeFragment(o);return}if(this.state=io.PARSING,p){let e=p.tracks;
280if(e){let i=o.initSegment||o;if(this.unhandledEncryptionError(p,o))return;this._bufferInitSegment(c,e,i,a),n.trigger(u.FRAG_PARSING_INIT_SEGMENT,{frag:i,id:t,tracks:e})}let i=p.initPTS,s=p.timescale,l=this.initPTS[o.cc];if(r(i)&&(!l||l.baseTime!==i||l.timescale!==s)){let e=p.trackId;this.initPTS[o.cc]={baseTime:i,timescale:s,trackId:e},n.trigger(u.INIT_PTS_FOUND,{frag:o,id:t,initPTS:i,timescale:s,trackId:e})}}if(d&&m){g&&"audiovideo"===d.type&&this.logMuxedErr(o);let e=m.fragments[o.sn-1-m.startSN],t=o.sn===m.startSN,n=!e||o.cc>e.cc;if(!1!==i.independent){let{startPTS:e,endPTS:i,startDTS:r,endDTS:s}=d;if(l)l.elementaryStreams[d.type]={startPTS:e,endPTS:i,startDTS:r,endDTS:s};else if(d.firstKeyFrame&&d.independent&&1===a.id&&!n&&(this.couldBacktrack=!0),d.dropped&&d.independent){let r=this.getMainFwdBufferInfo(),a=(r?r.end:this.getLoadPosition())+this.config.maxBufferHole,l=d.firstKeyFramePTS?d.firstKeyFramePTS:e;if(t||!(a<l-this.config.maxBufferHole)||n)n&&(o.gap=!0);else{this.backtrack(o);return}o.setElementaryStreamInfo(d.type,o.start,i,o.start,s,!0)}else t&&e-(m.appliedTimelineOffset||0)>lr&&(o.gap=!0);o.setElementaryStreamInfo(d.type,e,i,r,s),this.backtrackFragment&&(this.backtrackFragment=o),this.bufferFragmentData(d,o,l,a,t||n)}else if(t||n)o.gap=!0;else{this.backtrack(o);return}}if(g){let{startPTS:e,endPTS:t,startDTS:n,endDTS:i}=g;l&&(l.elementaryStreams[B.AUDIO]={startPTS:e,endPTS:t,startDTS:n,endDTS:i}),o.setElementaryStreamInfo(B.AUDIO,e,t,n,i),this.bufferFragmentData(g,o,l,a)}if(m&&null!=f&&f.samples.length){let e={id:t,frag:o,details:m,samples:f.samples};n.trigger(u.FRAG_PARSING_METADATA,e)}if(m&&h){let e={id:t,frag:o,details:m,samples:h.samples};n.trigger(u.FRAG_PARSING_USERDATA,e)}}logMuxedErr(e){this.warn(`${G(e)?"Media":"Init"} segment with muxed audiovideo where only video expected: ${e.url}`)}_bufferInitSegment(e,t,n,i){if(this.state!==io.PARSING)return;this.audioOnly=!!t.audio&&!t.video,this.altAudio&&!this.audioOnly&&(delete t.audio,t.audiovideo&&this.logMuxedErr(n));let{audio:r,video:a,audiovideo:s}=t;if(r){let n=e.audioCodec,i=ej(r.codec,n);"mp4a"===i&&(i="mp4a.40.5");let a=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){i&&(i=-1!==i.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5");let e=r.metadata;e&&"channelCount"in e&&1!==(e.channelCount||1)&&-1===a.indexOf("firefox")&&(i="mp4a.40.5")}i&&-1!==i.indexOf("mp4a.40.5")&&-1!==a.indexOf("android")&&"audio/mpeg"!==r.container&&(i="mp4a.40.2",this.log(`Android: force audio codec to ${i}`)),n&&n!==i&&this.log(`Swapping manifest audio codec "${n}" for "${i}"`),r.levelCodec=i,r.id=f.MAIN,this.log(`Init audio buffer, container:${r.container}, codecs[selected/level/parsed]=[${i||""}/${n||""}/${r.codec}]`),delete t.audiovideo}if(a){a.levelCodec=e.videoCodec,a.id=f.MAIN;let n=a.codec;if((null==n?void 0:n.length)===4)switch(n){case"hvc1":case"hev1":a.codec="hvc1.1.6.L120.90";break;case"av01":a.codec="av01.0.04M.08";break;case"avc1":a.codec="avc1.42e01e"}this.log(`Init video buffer, container:${a.container}, codecs[level/parsed]=[${e.videoCodec||""}/${n}]${a.codec!==n?" parsed-corrected="+a.codec:""}${a.supplemental?" supplemental="+a.supplemental:""}`),delete t.audiovideo}s&&(this.log(`Init audiovideo buffer, container:${s.container}, codecs[level/parsed]=[${e.codecs}/${s.codec}]`),delete t.video,delete t.audio);let o=Object.keys(t);if(o.length){if(this.hls.trigger(u.BUFFER_CODECS,t),!this.hls)return;o.forEach(e=>{let r=t[e].initSegment;null!=r&&r.byteLength&&this.hls.trigger(u.BUFFER_APPENDING,{type:e,data:r,frag:n,part:null,chunkMeta:i,parent:n.type})})}this.tickImmediate()}getMainFwdBufferInfo(){let e=this.mediaBuffer&&2===this.altAudio?this.mediaBuffer:this.media;return this.getFwdBufferInfo(e,f.MAIN)}get maxBufferLength(){let{levels:e,level:t}=this,n=null==e?void 0:e[t];return n?this.getMaxBufferLength(n.maxBitrate):this.config.maxBufferLength}backtrack(e){this.couldBacktrack=!0,this.backtrackFragment=e,this.resetTransmuxer(),this.flushBufferGap(e),this.fragmentTracker.removeFragment(e),this.fragPrevious=null,this.nextLoadPosition=e.start,this.state=io.IDLE}checkFragmentChanged(){let e=this.media,t=null;if(e&&e.readyState>1&&!1===e.seeking){let n=e.currentTime;if(t2.isBuffered(e,n)?t=this.getAppendedFrag(n):t2.isBuffered(e,n+.1)&&
280(t=this.getAppendedFrag(n+.1)),t){this.backtrackFragment=null;let e=this.fragPlaying,n=t.level;e&&t.sn===e.sn&&e.level===n||(this.fragPlaying=t,this.hls.trigger(u.FRAG_CHANGED,{frag:t}),e&&e.level===n||this.hls.trigger(u.LEVEL_SWITCHED,{level:n}))}}}get nextLevel(){let e=this.nextBufferedFrag;return e?e.level:-1}get currentFrag(){var e;if(this.fragPlaying)return this.fragPlaying;let t=(null==(e=this.media)?void 0:e.currentTime)||this.lastCurrentTime;return r(t)?this.getAppendedFrag(t):null}get currentProgramDateTime(){var e;let t=(null==(e=this.media)?void 0:e.currentTime)||this.lastCurrentTime;if(r(t)){let e=this.getLevelDetails(),n=this.currentFrag||(e?ty(null,e.fragments,t):null);if(n){let e=n.programDateTime;if(null!==e)return new Date(e+(t-n.start)*1e3)}}return null}get currentLevel(){let e=this.currentFrag;return e?e.level:-1}get nextBufferedFrag(){let e=this.currentFrag;return e?this.followingBufferedFrag(e):null}get forceStartLoad(){return this._forceStartLoad}}class lS{constructor(e){this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=e}abort(e){for(let n in this.keyUriToKeyInfo){let i=this.keyUriToKeyInfo[n].loader;if(i){var t;if(e&&e!==(null==(t=i.context)?void 0:t.frag.type))return;i.abort()}}}detach(){for(let e in this.keyUriToKeyInfo){let t=this.keyUriToKeyInfo[e];(t.mediaKeySessionContext||t.decryptdata.isCommonEncryption)&&delete this.keyUriToKeyInfo[e]}}destroy(){for(let e in this.detach(),this.keyUriToKeyInfo){let t=this.keyUriToKeyInfo[e].loader;t&&t.destroy()}this.keyUriToKeyInfo={}}createKeyLoadError(e,t=l.KEY_LOAD_ERROR,n,i,r){return new tX({type:o.NETWORK_ERROR,details:t,fatal:!1,frag:e,response:r,error:n,networkDetails:i})}loadClear(e,t,n){if(this.emeController&&this.config.emeEnabled&&!this.emeController.getSelectedKeySystemFormats().length){if(t.length)for(let i=0,r=t.length;i<r;i++){let a=t[i];if(e.cc<=a.cc&&(!G(e)||!G(a)||e.sn<a.sn)||!n&&i==r-1)return this.emeController.selectKeySystemFormat(a).then(e=>{if(!this.emeController)return;a.setKeyFormat(e);let t=nv(e);if(t)return this.emeController.getKeySystemAccess([t])})}if(this.config.requireKeySystemAccessOnStart){let e=n_(this.config);if(e.length)return this.emeController.getKeySystemAccess(e)}}return null}load(e){return!e.decryptdata&&e.encrypted&&this.emeController&&this.config.emeEnabled?this.emeController.selectKeySystemFormat(e).then(t=>this.loadInternal(e,t)):this.loadInternal(e)}loadInternal(e,t){var n,i,r;t&&e.setKeyFormat(t);let a=e.decryptdata;if(!a){let n=Error(t?`Expected frag.decryptdata to be defined after setting format ${t}`:"Missing decryption data on fragment in onKeyLoading");return Promise.reject(this.createKeyLoadError(e,l.KEY_LOAD_ERROR,n))}let s=a.uri;if(!s)return Promise.reject(this.createKeyLoadError(e,l.KEY_LOAD_ERROR,Error(`Invalid key URI: "${s}"`)));let o=this.keyUriToKeyInfo[s];if(null!=(n=o)&&n.decryptdata.key)return a.key=o.decryptdata.key,Promise.resolve({frag:e,keyInfo:o});if(null!=(i=o)&&i.keyLoadPromise)switch(null==(r=o.mediaKeySessionContext)?void 0:r.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return o.keyLoadPromise.then(t=>(a.key=t.keyInfo.decryptdata.key,{frag:e,keyInfo:o}))}switch(o=this.keyUriToKeyInfo[s]={decryptdata:a,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},a.method){case"ISO-23001-7":case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":if("identity"===a.keyFormat)return this.loadKeyHTTP(o,e);return this.loadKeyEME(o,e);case"AES-128":case"AES-256":case"AES-256-CTR":return this.loadKeyHTTP(o,e);default:return Promise.reject(this.createKeyLoadError(e,l.KEY_LOAD_ERROR,Error(`Key supplied with unsupported METHOD: "${a.method}"`)))}}loadKeyEME(e,t){let n={frag:t,keyInfo:e};if(this.emeController&&this.config.emeEnabled){let t=this.emeController.loadKey(n);if(t)return(e.keyLoadPromise=t.then(t=>(e.mediaKeySessionContext=t,n))).catch(t=>{throw e.keyLoadPromise=null,t})}return Promise.resolve(n)}loadKeyHTTP(e,t){let n=this.config,i=new n.loader(n);return t.keyLoader=e.loader=i,e.keyLoadPromise=new Promise((r,a)=>{let s={keyInfo:e,frag:t,responseType:"arraybuffer",url:e.decryptdata.uri},o=n.keyLoadPolicy.default,u={loadPolicy:o,timeout:o.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},c={onSuccess:(e,t,n,i)=>{let{frag:s,keyInfo:o,url:u}=n;if(!s.decryptdata||o!==this.keyUriToKeyInfo[u])return a(this.createKeyLoadError(s,l.KEY_LOAD_ERROR,Error("after key load, decryptdata unset or changed"),i));o.decryptdata.key=s.decryptdata.key=new Uint8Array(e.data),s.keyLoader=null,o.loader=null,r({frag:s,keyInfo:o})},onError:(e,n,i,r)=>{this.resetLoader(n),a(this.createKeyLoadError(t,l.KEY_LOAD_ERROR,Error(`HTTP Error ${e.code} loading key ${e.text}`),i,_({url:s.url,data:void 0},e)))},onTimeout:(e,n,i)=>{this.resetLoader(n),a(this.createKeyLoadError(t,l.KEY_LOAD_TIMEOUT,Error("key loading timed out"),i))},onAbort:(e,n,i)=>{this.resetLoader(n),a(this.createKeyLoadError(t,l.INTERNAL_ABORTED,Error("key loading aborted"),i))}};i.load(s,u,c)})}
280resetLoader(e){let{frag:t,keyInfo:n,url:i}=e,r=n.loader;t.keyLoader===r&&(t.keyLoader=null,n.loader=null),delete this.keyUriToKeyInfo[i],r&&r.destroy()}}function lL(e){let{type:t}=e;switch(t){case h.AUDIO_TRACK:return f.AUDIO;case h.SUBTITLE_TRACK:return f.SUBTITLE;default:return f.MAIN}}function lP(e,t){let n=e.url;return(void 0===n||0===n.indexOf("data:"))&&(n=t.url),n}class lM{constructor(e){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.onManifestLoaded=this.checkAutostartLoad,this.hls=e,this.registerListeners()}startLoad(e){}stopLoad(){this.destroyInternalLoaders()}registerListeners(){let{hls:e}=this;e.on(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.LEVEL_LOADING,this.onLevelLoading,this),e.on(u.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.on(u.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),e.on(u.LEVELS_UPDATED,this.onLevelsUpdated,this)}unregisterListeners(){let{hls:e}=this;e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.LEVEL_LOADING,this.onLevelLoading,this),e.off(u.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.off(u.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),e.off(u.LEVELS_UPDATED,this.onLevelsUpdated,this)}createInternalLoader(e){let t=this.hls.config,n=t.pLoader,i=t.loader,r=new(n||i)(t);return this.loaders[e.type]=r,r}getInternalLoader(e){return this.loaders[e.type]}resetInternalLoader(e){this.loaders[e]&&delete this.loaders[e]}destroyInternalLoaders(){for(let e in this.loaders){let t=this.loaders[e];t&&t.destroy(),this.resetInternalLoader(e)}}destroy(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()}onManifestLoading(e,t){let{url:n}=t;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:h.MANIFEST,url:n,deliveryDirectives:null,levelOrTrack:null})}onLevelLoading(e,t){let{id:n,level:i,pathwayId:r,url:a,deliveryDirectives:s,levelInfo:o}=t;this.load({id:n,level:i,pathwayId:r,responseType:"text",type:h.LEVEL,url:a,deliveryDirectives:s,levelOrTrack:o})}onAudioTrackLoading(e,t){let{id:n,groupId:i,url:r,deliveryDirectives:a,track:s}=t;this.load({id:n,groupId:i,level:null,responseType:"text",type:h.AUDIO_TRACK,url:r,deliveryDirectives:a,levelOrTrack:s})}onSubtitleTrackLoading(e,t){let{id:n,groupId:i,url:r,deliveryDirectives:a,track:s}=t;this.load({id:n,groupId:i,level:null,responseType:"text",type:h.SUBTITLE_TRACK,url:r,deliveryDirectives:a,levelOrTrack:s})}onLevelsUpdated(e,t){let n=this.loaders[h.LEVEL];if(n){let e=n.context;e&&!t.levels.some(t=>t===e.levelOrTrack)&&(n.abort(),delete this.loaders[h.LEVEL])}}load(e){var t;let n;let i=this.hls.config,a=this.getInternalLoader(e);if(a){let t=this.hls.logger,n=a.context;if(n&&n.levelOrTrack===e.levelOrTrack&&(n.url===e.url||n.deliveryDirectives&&!e.deliveryDirectives)){n.url===e.url?t.log(`[playlist-loader]: ignore ${e.url} ongoing request`):t.log(`[playlist-loader]: ignore ${e.url} in favor of ${n.url}`);return}t.log(`[playlist-loader]: aborting previous loader for type: ${e.type}`),a.abort()}if(n=e.type===h.MANIFEST?i.manifestLoadPolicy.default:v({},i.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),a=this.createInternalLoader(e),r(null==(t=e.deliveryDirectives)?void 0:t.part)){let t;if(e.type===h.LEVEL&&null!==e.level?t=this.hls.levels[e.level].details:e.type===h.AUDIO_TRACK&&null!==e.id?t=this.hls.audioTracks[e.id].details:e.type===h.SUBTITLE_TRACK&&null!==e.id&&(t=this.hls.subtitleTracks[e.id].details),t){let e=t.partTarget,i=t.targetduration;if(e&&i){let t=1e3*Math.max(3*e,.8*i);n=v({},n,{maxTimeToFirstByteMs:Math.min(t,n.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(t,n.maxTimeToFirstByteMs)})}}}let s=n.errorRetry||n.timeoutRetry||{},o={loadPolicy:n,timeout:n.maxLoadTimeMs,maxRetry:s.maxNumRetry||0,retryDelay:s.retryDelayMs||0,maxRetryDelay:s.maxRetryDelayMs||0},l={onSuccess:(e,t,n,i)=>{let r=this.getInternalLoader(n);this.resetInternalLoader(n.type);let a=e.data;if(0!==a.indexOf("#EXTM3U")){this.handleManifestParsingError(e,n,Error("no EXTM3U delimiter"),i||null,t);return}t.parsing.start=performance.now(),nk.isMediaPlaylist(a)||n.type!==h.MANIFEST?this.handleTrackOrLevelPlaylist(e,t,n,i||null,r):this.handleMasterPlaylist(e,t,n,i)},onError:(e,t,n,i)=>{this.handleNetworkError(t,n,!1,e,i)},onTimeout:(e,t,n)=>{this.handleNetworkError(t,n,!0,void 0,e)}};a.load(e,o,l)}
vendor: 14,317 bytes, line 280
280checkAutostartLoad(){if(!this.hls)return;let{config:{autoStartLoad:e,startPosition:t},forceStartLoad:n}=this.hls;(e||n)&&(this.hls.logger.log(`${e?"auto":"force"} startLoad with configured startPosition ${t}`),this.hls.startLoad(t))}handleMasterPlaylist(e,t,n,i){let r=this.hls,a=e.data,s=lP(e,n),o=nk.parseMasterPlaylist(a,s);if(o.playlistParsingError){this.handleManifestParsingError(e,n,o.playlistParsingError,i,t);return}let{contentSteering:l,levels:c,sessionData:d,sessionKeys:h,startTimeOffset:f,variableList:p}=o;this.variableList=p;let{AUDIO:m=[],SUBTITLES:g,"CLOSED-CAPTIONS":v}=nk.parseMasterPlaylistMedia(a,s,o);m.length&&!m.some(e=>!e.url)&&c[0].audioCodec&&!c[0].attrs.AUDIO&&(this.hls.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),m.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new ne({}),bitrate:0,url:""})),r.trigger(u.MANIFEST_LOADED,{levels:c,audioTracks:m,subtitles:g,captions:v,contentSteering:l,url:s,stats:t,networkDetails:i,sessionData:d,sessionKeys:h,startTimeOffset:f,variableList:p})}handleTrackOrLevelPlaylist(e,t,n,i,a){let s=this.hls,{id:o,level:l,type:c}=n,d=lP(e,n),f=r(l)?l:r(o)?o:0,p=lL(n),m=nk.parseLevelPlaylist(e.data,d,f,p,0,this.variableList);if(c===h.MANIFEST){let e={attrs:new ne({}),bitrate:0,details:m,name:"",url:d};m.requestScheduled=t.loading.start+n1(m,0),s.trigger(u.MANIFEST_LOADED,{levels:[e],audioTracks:[],url:d,stats:t,networkDetails:i,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}t.parsing.end=performance.now(),n.levelDetails=m,this.handlePlaylistLoaded(m,e,t,n,i,a)}handleManifestParsingError(e,t,n,i,r){this.hls.trigger(u.ERROR,{type:o.NETWORK_ERROR,details:l.MANIFEST_PARSING_ERROR,fatal:t.type===h.MANIFEST,url:e.url,err:n,error:n,reason:n.message,response:e,context:t,networkDetails:i,stats:r})}handleNetworkError(e,t,n=!1,i,r){let a=`A network ${n?"timeout":"error"+(i?" (status "+i.code+")":"")} occurred while loading ${e.type}`;e.type===h.LEVEL?a+=`: ${e.level} id: ${e.id}`:(e.type===h.AUDIO_TRACK||e.type===h.SUBTITLE_TRACK)&&(a+=` id: ${e.id} group-id: "${e.groupId}"`);let s=Error(a);this.hls.logger.warn(`[playlist-loader]: ${a}`);let c=l.UNKNOWN,d=!1,f=this.getInternalLoader(e);switch(e.type){case h.MANIFEST:c=n?l.MANIFEST_LOAD_TIMEOUT:l.MANIFEST_LOAD_ERROR,d=!0;break;case h.LEVEL:c=n?l.LEVEL_LOAD_TIMEOUT:l.LEVEL_LOAD_ERROR,d=!1;break;case h.AUDIO_TRACK:c=n?l.AUDIO_TRACK_LOAD_TIMEOUT:l.AUDIO_TRACK_LOAD_ERROR,d=!1;break;case h.SUBTITLE_TRACK:c=n?l.SUBTITLE_TRACK_LOAD_TIMEOUT:l.SUBTITLE_LOAD_ERROR,d=!1}f&&this.resetInternalLoader(e.type);let p={type:o.NETWORK_ERROR,details:c,fatal:d,url:e.url,loader:f,context:e,error:s,networkDetails:t,stats:r};if(i){let n=(null==t?void 0:t.url)||e.url;p.response=_({url:n,data:void 0},i)}this.hls.trigger(u.ERROR,p)}handlePlaylistLoaded(e,t,n,i,r,a){let s=this.hls,{type:c,level:d,id:p,groupId:m,deliveryDirectives:g}=i,v=lP(t,i),y=lL(i),_="number"==typeof i.level&&y===f.MAIN?d:void 0;if(!e.fragments.length){let a=e.playlistParsingError=Error("No Segments found in Playlist");s.trigger(u.ERROR,{type:o.NETWORK_ERROR,details:l.LEVEL_EMPTY_ERROR,fatal:!1,url:v,error:a,reason:a.message,response:t,context:i,level:_,parent:y,networkDetails:r,stats:n});return}e.targetduration||(e.playlistParsingError=Error("Missing Target Duration"));let b=e.playlistParsingError;if(b){if(this.hls.logger.warn(`${b} ${e.url}`),!s.config.ignorePlaylistParsingErrors){s.trigger(u.ERROR,{type:o.NETWORK_ERROR,details:l.LEVEL_PARSING_ERROR,fatal:!1,url:v,error:b,reason:b.message,response:t,context:i,level:_,parent:y,networkDetails:r,stats:n});return}e.playlistParsingError=null}switch(e.live&&a&&(a.getCacheAge&&(e.ageHeader=a.getCacheAge()||0),(!a.getCacheAge||isNaN(e.ageHeader))&&(e.ageHeader=0)),c){case h.MANIFEST:case h.LEVEL:s.trigger(u.LEVEL_LOADED,{details:e,levelInfo:i.levelOrTrack||s.levels[0],level:_||0,id:p||0,stats:n,networkDetails:r,deliveryDirectives:g,withoutMultiVariant:c===h.MANIFEST});break;case h.AUDIO_TRACK:s.trigger(u.AUDIO_TRACK_LOADED,{details:e,track:i.levelOrTrack,id:p||0,groupId:m||"",stats:n,networkDetails:r,deliveryDirectives:g});break;case h.SUBTITLE_TRACK:s.trigger(u.SUBTITLE_TRACK_LOADED,{details:e,track:i.levelOrTrack,id:p||0,groupId:m||"",stats:n,networkDetails:r,deliveryDirectives:g})}}}class lA{static get version(){return im}static isMSESupported(){return lx()}static isSupported(){return lC()}static getMediaSource(){return I()}static get Events(){return u}static get MetadataSchema(){return i1}static get ErrorTypes(){return o}static get ErrorDetails(){return l}static get DefaultConfig(){return lA.defaultConfig?lA.defaultConfig:o9}static set DefaultConfig(e){lA.defaultConfig=e}constructor(e={}){this.config=void 0,this.userConfig=void 0,this.logger=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new ip,this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioStreamController=void 0,this.subtititleStreamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.interstitialsController=void 0,this.gapController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this._url=null,this._sessionId=void 0,this.triggeringException=void 0,this.started=!1;let t=this.logger=M(e.debug||!1,"Hls instance",e.assetPlayerId),n=this.config=lt(lA.DefaultConfig,e,t);this.userConfig=e,n.progressive&&li(n,t);let{abrController:i,bufferController:r,capLevelController:a,errorController:s,fpsController:o}=n,l=new s(this),c=this.abrController=new i(this),d=new tD(this),h=n.interstitialsController,f=h?this.interstitialsController=new h(this,lA):null,p=this.bufferController=new r(this,d),m=this.capLevelController=new a(this),g=new o(this),v=new lM(this),y=n.contentSteeringController,_=y?new y(this):null,b=this.levelController=new ly(this,_),x=new lg(this),C=new lS(this.config),E=this.streamController=new lT(this,d,C),w=this.gapController=new ll(this,d);m.setStreamController(E),g.setStreamController(E);let T=[v,b,E];f&&T.splice(1,0,f),_&&T.splice(1,0,_),this.networkControllers=T;let S=[c,p,w,m,g,x,d];this.audioTrackController=this.createController(n.audioTrackController,T);let L=n.audioStreamController;L&&T.push(this.audioStreamController=new L(this,d,C)),this.subtitleTrackController=this.createController(n.subtitleTrackController,T);let P=n.subtitleStreamController;P&&T.push(this.subtititleStreamController=new P(this,d,C)),this.createController(n.timelineController,S),C.emeController=this.emeController=this.createController(n.emeController,S),this.cmcdController=this.createController(n.cmcdController,S),this.latencyController=this.createController(lv,S),this.coreComponents=S,T.push(l);let A=l.onErrorOut;"function"==typeof A&&this.on(u.ERROR,A,l),this.on(u.MANIFEST_LOADED,v.onManifestLoaded,v)}createController(e,t){if(e){let n=new e(this);return t&&t.push(n),n}return null}on(e,t,n=this){this._emitter.on(e,t,n)}once(e,t,n=this){this._emitter.once(e,t,n)}removeAllListeners(e){this._emitter.removeAllListeners(e)}off(e,t,n=this,i){this._emitter.off(e,t,n,i)}listeners(e){return this._emitter.listeners(e)}emit(e,t,n){return this._emitter.emit(e,t,n)}trigger(e,t){if(this.config.debug)return this.emit(e,e,t);try{return this.emit(e,e,t)}catch(t){if(this.logger.error("An internal error happened while handling event "+e+'. Error message: "'+t.message+'". Here is a stacktrace:',t),!this.triggeringException){this.triggeringException=!0;let n=e===u.ERROR;this.trigger(u.ERROR,{type:o.OTHER_ERROR,details:l.INTERNAL_EXCEPTION,fatal:n,event:e,error:t}),this.triggeringException=!1}}return!1}listenerCount(e){return this._emitter.listenerCount(e)}destroy(){this.logger.log("destroy"),this.trigger(u.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this._url=null,this.networkControllers.forEach(e=>e.destroy()),this.networkControllers.length=0,this.coreComponents.forEach(e=>e.destroy()),this.coreComponents.length=0;let e=this.config;e.xhrSetup=e.fetchSetup=void 0,this.userConfig=null}attachMedia(e){if(!e||"media"in e&&!e.media){let t=Error(`attachMedia failed: invalid argument (${e})`);this.trigger(u.ERROR,{type:o.OTHER_ERROR,details:l.ATTACH_MEDIA_ERROR,fatal:!0,error:t});return}this.logger.log("attachMedia"),this._media&&(this.logger.warn("media must be detached before attaching"),this.detachMedia());let t="media"in e,n=t?e.media:e,i=t?e:{media:n};this._media=n,this.trigger(u.MEDIA_ATTACHING,i)}detachMedia(){this.logger.log("detachMedia"),this.trigger(u.MEDIA_DETACHING,{}),this._media=null}transferMedia(){this._media=null;let e=this.bufferController.transferMedia();return this.trigger(u.MEDIA_DETACHING,{transferMedia:e}),e}loadSource(e){this.stopLoad();let t=this.media,n=this._url,i=this._url=U.buildAbsoluteURL(self.location.href,e,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.logger.log(`loadSource:${i}`),t&&n&&(n!==i||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(t)),this.trigger(u.MANIFEST_LOADING,{url:e})}get url(){return this._url}get hasEnoughToStart(){return this.streamController.hasEnoughToStart}get startPosition(){return this.streamController.startPositionValue}startLoad(e=-1,t){this.logger.log(`startLoad(${e+(t?", <skip seek to start>":"")})`),this.started=!0,this.resumeBuffering();for(let n=0;n<this.networkControllers.length&&(this.networkControllers[n].startLoad(e,t),this.started&&this.networkControllers);n++);}stopLoad(){this.logger.log("stopLoad"),this.started=!1;for(let e=0;e<this.networkControllers.length&&(this.networkControllers[e].stopLoad(),!this.started&&this.networkControllers);e++);}get loadingEnabled(){return this.started}get bufferingEnabled(){return this.streamController.bufferingEnabled}resumeBuffering(){this.bufferingEnabled||(this.logger.log("resume buffering"),this.networkControllers.forEach(e=>{e.resumeBuffering&&e.resumeBuffering()}))}pauseBuffering(){this.bufferingEnabled&&(this.logger.log("pause buffering"),this.networkControllers.forEach(e=>{e.pauseBuffering&&e.pauseBuffering()}))}get inFlightFragments(){let e={[f.MAIN]:this.streamController.inFlightFrag};return this.audioStreamController&&(e[f.AUDIO]=this.audioStreamController.inFlightFrag),this.subtititleStreamController&&(e[f.SUBTITLE]=this.subtititleStreamController.inFlightFrag),e}swapAudioCodec(){this.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()}recoverMediaError(){this.logger.log("recoverMediaError");let e=this._media,t=null==e?void 0:e.currentTime;this.detachMedia(),e&&(this.attachMedia(e),t&&this.startLoad(t))}removeLevel(e){this.levelController.removeLevel(e)}get sessionId(){let e=this._sessionId;return e||(e=this._sessionId=sO()),e}get levels(){return this.levelController.levels||[]}get latestLevelDetails(){return this.streamController.getLevelDetails()||null}get loadLevelObj(){return this.levelController.loadLevelObj}get currentLevel(){return this.streamController.currentLevel}set currentLevel(e){this.logger.log(`set currentLevel:${e}`),this.levelController.manualLevel=e,this.streamController.immediateLevelSwitch()}get nextLevel(){return this.streamController.nextLevel}set nextLevel(e){this.logger.log(`set nextLevel:${e}`),this.levelController.manualLevel=e,this.streamController.nextLevelSwitch()}get loadLevel(){return this.levelController.level}set loadLevel(e){this.logger.log(`set loadLevel:${e}`),this.levelController.manualLevel=e}get nextLoadLevel(){return this.levelController.nextLoadLevel}set nextLoadLevel(e){this.levelController.nextLoadLevel=e}get firstLevel(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)}set firstLevel(e){this.logger.log(`set firstLevel:${e}`),this.levelController.firstLevel=e}get startLevel(){let e=this.levelController.startLevel;return -1===e&&this.abrController.forcedAutoLevel>-1?this.abrController.forcedAutoLevel:e}set startLevel(e){this.logger.log(`set startLevel:${e}`),-1!==e&&(e=Math.max(e,this.minAutoLevel)),this.levelController.startLevel=e}get capLevelToPlayerSize(){return this.config.capLevelToPlayerSize}set capLevelToPlayerSize(e){let t=!!e;t!==this.config.capLevelToPlayerSize&&(t?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=t)}get autoLevelCapping(){return this._autoLevelCapping}get bandwidthEstimate(){let{bwEstimator:e}=this.abrController;return e?e.getEstimate():NaN}set bandwidthEstimate(e){this.abrController.resetEstimator(e)}get abrEwmaDefaultEstimate(){let{bwEstimator:e}=this.abrController;return e?e.defaultEstimate:NaN}get ttfbEstimate(){let{bwEstimator:e}=this.abrController;return e?e.getEstimateTTFB():NaN}set autoLevelCapping(e){this._autoLevelCapping!==e&&(this.logger.log(`set autoLevelCapping:${e}`),this._autoLevelCapping=e,this.levelController.checkMaxAutoUpdated())}get maxHdcpLevel(){return this._maxHdcpLevel}set maxHdcpLevel(e){e0(e)&&this._maxHdcpLevel!==e&&(this._maxHdcpLevel=e,this.levelController.checkMaxAutoUpdated())}get autoLevelEnabled(){return -1===this.levelController.manualLevel}get manualLevel(){return this.levelController.manualLevel}get minAutoLevel(){let{levels:e,config:{minAutoBitrate:t}}=this;if(!e)return 0;let n=e.length;for(let i=0;i<n;i++)if(e[i].maxBitrate>=t)return i;return 0}get maxAutoLevel(){let e;let{levels:t,autoLevelCapping:n,maxHdcpLevel:i}=this;if(e=-1===n&&null!=t&&t.length?t.length-1:n,i)for(let n=e;n--;){let e=t[n].attrs["HDCP-LEVEL"];if(e&&e<=i)return n}return e}get firstAutoLevel(){return this.abrController.firstAutoLevel}get nextAutoLevel(){return this.abrController.nextAutoLevel}set nextAutoLevel(e){this.abrController.nextAutoLevel=e}get playingDate(){return this.streamController.currentProgramDateTime}get mainForwardBufferInfo(){return this.streamController.getMainFwdBufferInfo()}get maxBufferLength(){return this.streamController.maxBufferLength}setAudioOption(e){var t;return(null==(t=this.audioTrackController)?void 0:t.setAudioOption(e))||null}
280setSubtitleOption(e){var t;return(null==(t=this.subtitleTrackController)?void 0:t.setSubtitleOption(e))||null}get allAudioTracks(){let e=this.audioTrackController;return e?e.allAudioTracks:[]}get audioTracks(){let e=this.audioTrackController;return e?e.audioTracks:[]}get audioTrack(){let e=this.audioTrackController;return e?e.audioTrack:-1}set audioTrack(e){let t=this.audioTrackController;t&&(t.audioTrack=e)}get allSubtitleTracks(){let e=this.subtitleTrackController;return e?e.allSubtitleTracks:[]}get subtitleTracks(){let e=this.subtitleTrackController;return e?e.subtitleTracks:[]}get subtitleTrack(){let e=this.subtitleTrackController;return e?e.subtitleTrack:-1}get media(){return this._media}set subtitleTrack(e){let t=this.subtitleTrackController;t&&(t.subtitleTrack=e)}get subtitleDisplay(){let e=this.subtitleTrackController;return!!e&&e.subtitleDisplay}set subtitleDisplay(e){let t=this.subtitleTrackController;t&&(t.subtitleDisplay=e)}get lowLatencyMode(){return this.config.lowLatencyMode}set lowLatencyMode(e){this.config.lowLatencyMode=e}get liveSyncPosition(){return this.latencyController.liveSyncPosition}get latency(){return this.latencyController.latency}get maxLatency(){return this.latencyController.maxLatency}get targetLatency(){return this.latencyController.targetLatency}set targetLatency(e){this.latencyController.targetLatency=e}get drift(){return this.latencyController.drift}get forceStartLoad(){return this.streamController.forceStartLoad}get pathways(){return this.levelController.pathways}get pathwayPriority(){return this.levelController.pathwayPriority}set pathwayPriority(e){this.levelController.pathwayPriority=e}get bufferedToEnd(){var e;return!!(null!=(e=this.bufferController)&&e.bufferedToEnd)}get interstitialsManager(){var e;return(null==(e=this.interstitialsController)?void 0:e.interstitialsManager)||null}getMediaDecodingInfo(e,t=this.allAudioTracks){return e$(e,tr(t),navigator.mediaCapabilities)}}lA.defaultConfig=void 0;var lI=n(30120);let lR=()=>document.body.classList.contains("touch"),lk=e=>e?null==e?void 0:e.replace(/\*\*(.+?)\*\*/g,'<span class="highlighted-text">$1</span>'):"",lD=e=>e?e.replace(/-/g," "):"",lN=(e,t)=>{let n=Object.keys((null==t?void 0:t.listingInducteesCopy)||{}).find(t=>{let n=null==e?void 0:e.replace(/-/g,"").toLowerCase();return t.toLowerCase()===n}),i=n?null==t?void 0:t.listingInducteesCopy[n]:null;return"object"!=typeof i?null:i},lF=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=null==e?void 0:e.match(/^\/(en|es)(\/|$)/);return n?n[1]:t?"en":null},lO=e=>{if(!e)return!1;try{return new URL(e,window.location.origin).origin===window.location.origin}catch(e){return!1}},lj=(e,t)=>lO(e)&&lF(e)!==t&&"en"!==t?"/".concat(t).concat(e.startsWith("/")?"":"/").concat(e):e,lU=e=>{e?document.body.classList.add("locked"):document.body.classList.remove("locked")},lV=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return[...e].sort((e,n)=>{var i,r,a,s,o,l;if(t){let t=(null===(o=e.title)||void 0===o?void 0:o.toLowerCase())||"",i=(null===(l=n.title)||void 0===l?void 0:l.toLowerCase())||"";return t.localeCompare(i)}let u=((null===(r=e.inducteeData)||void 0===r?void 0:null===(i=r.sortName)||void 0===i?void 0:i.trim())||e.title||"").toLowerCase(),c=((null===(s=n.inducteeData)||void 0===s?void 0:null===(a=s.sortName)||void 0===a?void 0:a.trim())||n.title||"").toLowerCase();return u.localeCompare(c)})},lB=e=>e.reduce((e,t)=>{var n,i;let r=(null===(i=t.inducteeData)||void 0===i?void 0:null===(n=i.inducteeClass[0])||void 0===n?void 0:n.slug)||"Unknown Year";return e[r]||(e[r]=[]),e[r].push(t),e},{}),lH=e=>e.reduce((e,t)=>{var n;let[i]=(null===(n=t.inducteeData)||void 0===n?void 0:n.category)||[];return i&&(e[i]||(e[i]=[]),e[i].push(t)),e},{}),lG=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=window.innerWidth/100,i=390;return window.innerWidth>=768&&(i=834),window.innerWidth>1024&&(i=1440),Math.floor(e/i*100*n*t)},lz=(e,t)=>{let n=lI.ou.fromISO(e,{setZone:!0,zone:"America/New_York"}),i=n.toFormat("MMM d"),r=t?lI.ou.fromISO(t,{setZone:!0,zone:"America/Ne
280w_York"}):n,a=n.month===r.month?"d":"MMM d",s=t?r.toFormat(a):"",o=t&&n.hasSame(r,"day"),l=0===n.minute?"h":"h:mm",u=n.toFormat(l),c=n.toFormat("a");if(o){let e=0===r.minute?"h":"h:mm",t=r.toFormat(e),n=r.toFormat("a");return c===n?"".concat(i,", ").concat(u,"-").concat(t).concat(n):"".concat(i,", ").concat(u).concat(c,"-").concat(t).concat(n)}return t?"".concat(i,"-").concat(s):"".concat(i,", ").concat(u).concat(c)},lq=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"MMM d, yyyy",n=lI.ou.fromISO(e,{setZone:!0,zone:"America/New_York"});return n.isValid?n.toFormat(t):e},lW=e=>{var t;return(null===(t=e.nodes)||void 0===t?void 0:t.filter(e=>e&&"Inductee"===e.__typename))||[]},l$=e=>{var t;return(null===(t=e.nodes)||void 0===t?void 0:t.filter(e=>e&&"RhtvVideo"===e.__typename))||[]},lZ=e=>e?e.replace(/<[^>]+>/g,""):"",lY=e=>e?lZ(e.replace(/<br\s*\/?>/gi," ").replace(/ /gi," ")).replace(/[*`]/g,"").replace(/\s+/g," ").trim():"",lK=e=>e?e.replace(/<p>/,"").replace(/<\/p>/,"").split(/<br \/>(?:\r\n)?/).map(e=>e.trim()).filter(e=>e.length>0):[],lX=e=>e?null==e?void 0:e.replace(/(<br\s*\/?>[\s\r\n]*){2,}/g,"<br />"):"",lQ=(e,t)=>t?"".concat(t," | ").concat(e):e,lJ=()=>{if(!1===window.__rhYtApiAllowed||window.YT&&window.YT.Player)return;let e=document.createElement("script");e.src="https://www.youtube.com/iframe_api";let t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)},l0=e=>new Promise(t=>{if(!e){t();return}setTimeout(()=>{null==e||e.style.removeProperty("filter"),null==e||e.style.removeProperty("opacity"),t()},500)}),l1=(e,t)=>{if(t<=0)return[e];let n=[];for(let i=0;i<e.length;i+=t)n.push(e.slice(i,i+t));return n},l2=(e,t)=>{let n=e;return Object.entries(t).forEach(e=>
280{let[t,i]=e,r=RegExp("{{".concat(t,"}}"),"gi");n=null==n?void 0:n.replace(r,i||"")}),n},l3=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e||!(null==e?void 0:e.linkType))return null;let{linkType:n,label:i,page:r,externalLink:a,sectionId:s}=e,[o]=n||[];if(!o||!i&&!t)return null;switch(o){case"internal":var l,u;if(!(null==r?void 0:null===(l=r.node)||void 0===l?void 0:l.uri))return null;let c=null==r?void 0:null===(u=r.node)||void 0===u?void 0:u.uri;return s&&c&&(c+="#".concat(s)),{label:i,url:c||""};case"external":if(!a)return null;return{label:i,url:a||"",target:"_blank"};default:return null}},l5=e=>e||"",l4=(e,t)=>{let{databaseId:n,uri:i}=e,{asPreview:r}=t;return{databaseId:n,asPreview:r,language:lF(i)}},l6=e=>{let{uri:t}=e;return{language:lF(t)}},l8=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?"https://i.ytimg.com/vi/".concat(e,"/hqdefault.jpg"):"https://i.ytimg.com/vi/".concat(e,"/maxresdefault.jpg")},l7=e=>{if(!e)return null;let{videoType:t,videoUrl:n,youtubeThumbnail:i,videoThumbnail:r,youtubeVideoId:a,previewVideoUrl:s}=e;switch(null==t?void 0:t[0]){case"youtube":return a?{videoId:a,thumbnail:i,previewVideoUrl:s,isYoutube:!0}:null;case"dam-link":return n?{videoUrl:n,thumbnail:r,previewVideoUrl:s,isYoutube:!1}:null;default:return null}},l9=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(e||t).replace(/\*/g,"")};async function ue(){let e=new TextEncoder().encode("iZdPTJ1GRg7GQuEvfhAVQkWAh0rRZWUt"),t=await crypto.subtle.digest("SHA-256",e);return await crypto.subtle.importKey("raw",t,{name:"AES-CBC"},!1,["decrypt"])}async function ut(e){try{let t=atob(e),n=16,i=new Uint8Array(Array.from(t.substring(0,n)).map(e=>e.charCodeAt(0))),r=new Uint8Array(Array.from(t.substring(n)).map(e=>e.charCodeAt(0))),a=await ue(),s=await crypto.subtle.decrypt({name:"AES-CBC",iv:i},a,r);return new TextDecoder().decode(s)}catch(e){return""}}async function un(e){return ut(e)}async function ui(e){return new Promise(async t=>{if(!e){t(null);return}let{artist:n,album:i}=e;try{let[e,r]=await Promise.all([ut(n),ut(i)]);t({artist:e,album:r})}catch(e){t(null)}})}},39065:function(e,t,n){"use strict";n.d(t,{a:function(){return a}});var i=n(82729);function r(){let e=(0,i._)(["\n fragment ACFMedia on MediaItemConnectionEdge {\n node {\n title\n mediaItemUrl\n srcSet\n sizes\n altText\n mediaDetails {\n height\n width\n }\n }\n }\n"]);return r=function(){return e},e}let a=(0,n(68806).Ps)(r())},37346:function(e,t,n){"use strict";n.d(t,{q:function(){return a}});var i=n(82729);function r(){let e=(0,i._)(["\n fragment DetailHero on DetailHero {\n includeTimeInfo\n timeText\n timeSubtext\n dateSubtext\n location\n locationSubtext\n accessibilityFriendly\n accessibilitySubtext\n assetType\n video\n videoThumbnail {\n ...ACFMedia\n }\n image {\n ...ACFMedia\n }\n }\n"]);return r=function(){return e},e}let a=(0,n(68806).Ps)(r())},54192:function(e,t,n){"use strict";n.d(t,{Ez:function(){return S},uU:function(){return M}});var i=n(82729),r=n(68806),a=n(35605),s=n(39065),o=n(32285);function l(){let e=(0,i._)(["\n fragment DigitalExhibitSettings on DigitalExhibit {\n digitalExhibitSettings {\n fontTheme\n textCase\n accent1\n accent2\n accent3\n navFontColor\n soundPopupColor\n soundPopupOverride\n }\n }\n"]);return l=function(){return e},e}function u(){let e=(0,i._)(["\n ","\n fragment DigitalExhibitHero on DigitalExhibit {\n digitalExhibitHero {\n backgroundDesktop {\n backgroundType\n accent\n image {\n ...ACFMedia\n }\n }\n backgroundMobile {\n backgroundType\n accent\n image {\n ...ACFMedia\n }\n }\n videoUrl\n videoUrlMobile\n videoPoster {\n ...ACFMedia\n }\n logo {\n ...ACFMedia\n }\n logoAltText\n subheading\n pillAccent\n arrowOverride {\n ...ACFMedia\n }\n arrowAccent\n }\n }\n"]);return u=function(){return e},e}function c(){let e=(0,i._)(["\n fragment DigitalExhibitCardGallery on Digital
280ExhibitContentModulesCardGalleryLayout {\n heading\n headingAccent\n cardAccent\n cardFrontStyle\n knockoutEnabled\n knockoutColor\n shareEnabled\n ogTitle\n ogDescription\n ogImage {\n ...ACFMedia\n }\n cardImageAttributions\n cards {\n frontImage {\n ...ACFMedia\n }\n frontText\n cardBackType\n audioUrl\n quote\n attribution\n backImage {\n ...ACFMedia\n }\n backVideoPreviewUrl\n backYoutubeUrl\n }\n }\n"]);return c=function(){return e},e}function d(){let e=(0,i._)(["\n fragment DigitalExhibitCarousel on DigitalExhibitContentModulesCarouselHighlightLayout {\n heading\n accent\n shareEnabled\n ogTitle\n ogDescription\n ogImage {\n ...ACFMedia\n }\n items {\n mediaType\n image {\n ...ACFMedia\n }\n imageAttribution\n videoLoopUrl\n youtubeUrl\n itemTitle\n songTitle\n caption\n }\n }\n"]);return d=function(){return e},e}function h(){let e=(0,i._)(["\n fragment DigitalExhibitBigText on DigitalExhibitContentModulesBigTextLayout {\n text\n attribution\n accent\n knockoutEnabled\n
280knockoutColor\n background {\n backgroundType\n accent\n image {\n ...ACFMedia\n }\n imageAttribution\n }\n }\n"]);return h=function(){return e},e}function f(){let e=(0,i._)(["\n ","\n fragment DigitalExhibitDeepDive on DigitalExhibitContentModulesDeepDiveLayout {\n accent\n shareEnabled\n ogTitle\n ogDescription\n ogImage {\n ...ACFMedia\n }\n deepDive {\n nodes {\n ... on DeepDive {\n slug\n deepDiveFields {\n moduleEyebrow\n moduleHeadline\n moduleBody\n moduleCtaLabel\n moduleImages {\n image { ...ACFMedia }\n }\n imageAttributions\n drawerEyebrow\n drawerHeadline\n body\n drawerContent {\n __typename\n ... on DeepDiveFieldsDrawerContentVideoLayout {\n videoType\n youtubeVideoId\n videoUrl\n videoThumbnail { ...ACFMedia }\n youtubeThumbnail { ...ACFMedia }\n }\n ... on DeepDiveFieldsDrawerContentOutroLayout {\n headline\n outroBody\n images {\n image { ...ACFMedia }\n imageAttribution\n caption\n }\n }\n ... on DeepDiveFieldsDrawerContentQuoteLayout {\n quote\n name\n role\n knockoutEnabled\n knockoutColor\n dimImagery\n imageAttribution\n image { ...ACFMedia }\n }\n ... on DeepDiveFieldsDrawerContentGalleryLayout {\n headline\n galleryItems {\n image { ...ACFMedia }\n imageAttribution\n headline\n body\n }\n }\n }\n }\n }\n }\n }\n }\n"]);return f=function(){return e},e}function p(){let e=(0,i._)(["\n fragment DigitalExhibitMusicExplorer on DigitalExhibitContentModulesMusicExplorerLayout {\n eyebrow\n headline\n accent\n shareEnabled\n ogTitle\n ogDescription\n ogImage {\n ...ACFMedia\n }\n playlistButton {\n label\n url\n }\n musicExplorerAlbumItems {\n cardType\n albumImage {\n ...ACFMedia\n }\n audioTrack\n songTitle\n songArtist\n songDescription\n playlistImage {\n ...ACFMedia\n }\n playlistHeadline\n playlistBody\n playlistCta {\n label\n url\n }\n }\n }\n"]);return p=function(){return e},e}function m(){let e=(0,i._)(["\n ","\n fragment QuizFragment on Quiz {\n slug\n quizFields {\n eyebrow\n title\n supportingCopy\n ctaLabel\n image { ...ACFMedia }\n imageAttribution\n knockoutEnabled\n knockoutColor\n dimImagery\n imageMode\n quizType\n resultsImageMode\n resultsImage { ...ACFMedia }\n resultsImageAttribution\n enableShare\n questions {\n questionText\n image { ...ACFMedia }\n imageAttribution\n options { label isCorrect resultKey }\n }\n resultLevels { minScore eyebrow headline message shareText }\n results {\n resultKey\n eyebrow\n headline\n message\n shareText\n image { ...ACFMedia }\n imageAttribution\n }\n }\n }\n"]);return m=function(){return e},e}function g(){let e=(0,i._)(["\n ","\n fragment DigitalExhibitQuiz on DigitalExhibitContentModulesQuizLayout {\n accent\n quiz {\n nodes {\n ...QuizFragment\n }\n }\n }\n"]);return g=function(){return e},e}function v(){let e=(0,i._)(["\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n fragment DigitalExhibitContent on DigitalExhibit {\n digitalExhibitContent {\n intro {\n statement\n statementAccent\n knockoutEnabled\n knockoutColor\n }
280\n modules {\n __typename\n ...DigitalExhibitCardGallery\n ...DigitalExhibitCarousel\n ...DigitalExhibitBigText\n ...DigitalExhibitDeepDive\n ...DigitalExhibitMusicExplorer\n ...DigitalExhibitQuiz\n }\n pageEnder {\n tickerAccent\n showCta\n cta {\n type\n eyebrow\n headline\n subhead\n link {\n linkType\n externalLink\n sectionId\n page {\n node {\n uri\n }\n }\n }\n }\n showInductees\n inductees {\n colorOverride\n headline\n cta {\n linkType\n label\n externalLink\n page {\n node {\n uri\n }\n }\n }\n featuredInductees {\n ...FeaturedInductees\n }\n }\n showShop\n shop {\n headline\n type\n shopifyCollection\n shopifyTag\n searchValue\n }\n }\n }\n }\n"]);return v=function(){return e},e}function y(){let e=(0,i._)(["\n ","\n ","\n ","\n ","\n fragment DigitalExhibitDetailFragment on DigitalExhibit {\n title\n slug\n ...PageData\n ...DigitalExhibitSettings\n ...DigitalExhibitHero\n ...DigitalExhibitContent\n }\n"]);return y=function(){return e},e}let _=(0,r.Ps)(l()),b=(0,r.Ps)(u(),s.a),x=(0,r.Ps)(c()),C=(0,r.Ps)(d()),E=(0,r.Ps)(h()),w=(0,r.Ps)(f(),s.a),T=(0,r.Ps)(p()),S=(0,r.Ps)(m(),s.a),L=(0,r.Ps)(g(),S),P=(0,r.Ps)(v(),s.a,o.A,x,C,E,w,T,L),M=(0,r.Ps)(y(),a.X,_,b,P)},21782:function(e,t,n){"use strict";n.d(t,{Q:function(){return c},o:function(){return d}});var i=n(82729),r=n(68806),a=n(44819),s=n(37346),o=n(35605);function l(){let e=(0,i._)(["\n ","\n ","\n fragment EventFragment on Event {\n databaseId\n uri\n title\n ...PageData\n eventTypes {\n nodes {\n name\n slug\n }\n }\n featuredEventImage {\n ...ACFMedia\n }\n eventData {\n eventDescription\n ticketLink\n customCursorText\n startDate\n endDate\n pricingType\n price {\n gaPrice\n membersPrice\n priceWithAdmission\n }\n performers {\n performerName\n }\n }\n }\n"]);return l=function(){return e},e}function u(){let e=(0,i._)(["\n ","\n ","\n fragment EventDetailFragment on Event {\n ...EventFragment\n detailHero {\n ...DetailHero\n }\n }\n"]);return u=function(){return e},e}let c=(0,r.Ps)(l(),a.ab,o.X),d=(0,r.Ps)(u(),c,s.q)},94367:function(e,t,n){"use strict";n.d(t,{U9:function(){return d},dz:function(){return c},sm:function(){return h}});var i=n(82729),r=n(68806),a=n(37346),s=n(35605);function o(){let e=(0,i._)(["\n fragment ExhibitType on Exhibit {\n exhibitTypes {\n nodes {\n slug\n name\n }\n }\n }\n"]);return o=function(){return e},e}function l(){let e=(0,i._)(["\n ","\n fragment ExhibitFragment on Exhibit {\n title\n uri\n ...ExhibitType\n exhibitData {\n cardTitle\n excerpt\n ticketLink\n customCursorText\n exhibitType {\n id\n slug\n }\n exhibitMedia {\n mediaType\n image {\n ...ACFMedia\n }\n videoUrl\n videoThumbnail {\n ...ACFMedia\n }\n }\n }\n }\n"]);return l=function(){return e},e}function u(){let e=(0,i._)(["\n ","\n ","\n ","\n ","\n fragment ExhibitDetailFragment on Exhibit {\n ...ExhibitType\n ...PageData\n ...ExhibitFragment\n detailHero {\n ...DetailHero\n }\n }\n"]);return u=function(){return e},e}let c=(0,r.Ps)(o()),d=(0,r.Ps)(l(),c),h=(0,r.Ps)(u(),d,a.q,c,s.X)},32285:function(e,t,n){"use strict";n.d(t,{A:function(){return l}});var i=n(82729),r=n(68806),a=n(39065),s=n(35605);function o(){let e=(0,i._)(["\n "," \n ","\n fragment FeaturedInductees on AcfContentNodeConnection {\n nodes {\n ... on Inductee {\n title\n uri\n ...PageData\n inducteeData {\n category\n inducteeClass {\n slug\n }\n }\n }\n }\n }\n"]);return o=function(){return e},e}let l=(0,r.Ps)(o(),a.a,s.X)},28985:function(e,t,n){"use strict";n.d(t,{Fr:function(){return d},SX:function(){return c},cq:function(){return h}});var i=n(82729),r=n(68806),a=n(39065),s=n(35605);function o(){let e=(0,i._)(["\n ","\n ","\n fragment BaseInducteeInfo on Inductee {\n uri\n title\n ...PageData\n inducteeData {\n category\n sortName\n inducteeClass {\n slug\n }\n }\n }\n"]);return o=function(){return e},e}function l(){let e=(0,i._)(["\n ","\n fragment InducteeLandingInfo on Inductee {\n uri\n title\n pageData {\n featuredImage {\n ...ACFMedia\n }\n }\n inducteeLandingMembers {\n name\n }\n inducteeData {\n category\n sortName\n inducteeClass {\n slug\n }\n relatedSearchTerms {\n searchTerm\n }\n }\n }\n"]);return l=function(){return e},e}function u(){let e=(0,i._)(["\n ","\n fragment InducteeInfo on Inductee {\n ...BaseInducteeInfo\n inducteeMembers {\n name\n signature\n link\n }\n inducteeData {\n inductedBy\n intro {\n headline\n body\n }\n }\n }\n"]);return u=function(){return e},e}let c=(0,r.Ps)(o(),a.a,s.X),d=(0,r.Ps)(l(),a.a),h=(0,r.Ps)(u(),c)},35605:function(e,t,n){"use strict";n.d(t,{X:function(){return o}});var i=n(82729),r=n(68806),a=n(39065);function s(){let e=(0,i._)(["\n ","\n fragment PageData on ContentNode {\n pageData {\n ogTitle\n ogDescription\n pageCategory {\n slug\n name\n }\n featuredImage {\n ...ACFMedia\n }\n }\n }\n"]);return s=function(){return e},e}let o=(0,r.Ps)(s(),a.a)},68282:function(e,t,n){"use strict";n.d(t,{$:function(){return a}});var i=n(82729);function r(){let e=(0,i._)(["\n fragment Ticket on TicketPrice {\n title\n ticketPriceFields {\n price\n groupTicketPrice {\n node {\n ... on TicketPrice {\n title\n ticketPriceFields {\n price\n ticketing {\n title\n description\n ticketureId\n }\n }\n }\n }\n }\n pricing {\n title\n description\n cta {\n linkType\n label\n externalLink\n page {\n node {\n uri\n }\n }\n }\n }\n ticketing {\n title\n description\n ticketureId\n ticketingType\n membersTicketLink {\n linkType\n label\n externalLink\n page {\n node {\n uri\n }\n }\n }\n cta {\n linkType\n label\n externalLink\n page {\n node {\n uri\n }\n }\n }\n }\n }\n }\n"]);return r=function(){return e},e}let a=(0,n(68806).Ps)(r())},44819:function(e,t,n){"use strict";n.d(t,{ab:function(){return l.a},cq:function(){return o.cq}});var i=n(82729),r=n(68806);function a(){let e=(0,i._)(["\n fragment BlogInfo on RootQuery {\n generalSettings {\n title\n description\n }\n }\n"]);return a=function(){return e},e}function s(){let e=(0,i._)(["\n fragment FeaturedImage on NodeWithFeaturedImage {\n featuredImage {\n node {\n id\n sourceUrl\n altText\n mediaDetails {\n width\n height\n }\n }\n }\n }\n"]);return s=function(){return e},e}(0,r.Ps)(a()),(0,r.Ps)(s());var o=n(28985),l=n(39065)},86317:function(e,t,n){"use strict";n.d(t,{C:function(){return s}});var i=n(87048),r=n(39583),a=n(67294);let s=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],[s,o]=(0,a.useState)(t),{mounted:l}=(0,i.F)(),{isReady:u}=(0,r.dg)();return(0,a.useEffect)(()=>
280{if(!e.current||!u||!l)return;let n=()=>{let n=e.current.offsetHeight,i=window.innerHeight;n>i?o(Math.min(t,.65*i/n)):o(t)};return n(),window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[t,e,u,l,...n]),{triggerAmount:s}}},69065:function(e,t,n){"use strict";n.d(t,{k:function(){return o}});var i=n(83177);let r={Event:"event",Inductee:"inductee",Ceremony:"induction",Post:"post",Exhibit:"exhibit",DigitalExhibit:null,Option:null,GraphqlDocument:null,Page:null,MediaItem:null,TicketPrice:null,RhtvChannel:"rhtv",RhtvVideo:"rhtv",PressRelease:null,CoverStory:null,DeepDive:null,Quiz:null},a={interactive:"interactive"},s=e=>{var t,n,i;let s=null==e?void 0:e.node;if(!s)return null;let{__typename:o}=s,l=o.toLowerCase(),u=Object.keys(r).find(e=>e.toLowerCase()===l);if(!u)return null;let c=u;return"Exhibit"!==e.node.__typename?r[c]:a[null==e?void 0:null===(i=e.node)||void 0===i?void 0:null===(n=i.exhibitTypes)||void 0===n?void 0:null===(t=n.nodes[0])||void 0===t?void 0:t.slug]||r[c]},o=function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1];let{labels:t}=(0,i.i)(),n=null==t?void 0:t.postTypeLabels,r=s(e);if(!r)return null;let a=null==n?void 0:n[r];return a?{label:a,key:r}:null}},35798:function(e,t,n){"use strict";n.d(t,{u:function(){return y}});var i=n(83394),r=n.n(i),a=n(96618),s=n.n(a),o=n(34543),l=n.n(o),u=n(97086),c=n.n(u),d=n(96895),h=n.n(d),f=n(2164),p=n.n(f),m=n(24532),g=n.n(m);let v={sohne:"",barlow:r().variable,fraunces:g().variable,raleway:s().variable,syne:l().variable,"playfair-display":c().variable,oswald:h().variable,"hepta-slab":p().variable};function y(e){var t;return null!==(t=v[e])&&void 0!==t?t:""}},70817:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return iM}});var i,r=n(85893),a=n(67294),s=n(40336),o=n.n(s),l=n(47239),u=n.n(l),c=n(93967),d=n.n(c),h=n(30775),f=n(95430),p=n(87048),m=n(81334),g=n(43397),v=n(76606),y=n(270),_=n(42875),b=n(47021),x=n(59447),C=n(24983),E=n(47371),w=n(517),T=n(60055),S=n(83177),L=n(96761);function P(e){var t,n;return!!e&&!!(e&&((null===(t=e.template)||void 0===t?void 0:t.templateName)==="Rock Hall TV"||Array.isArray(e.templates)&&e.templates.includes("template-Rock Hall TV")||(null===(n=e.template)||void 0===n?void 0:n.__typename)==="Template_RockHallTV"))}function M(e){var t,n;return!!e&&!!(e&&("CoverStory"===e.__typename||(null===(n=e.contentType)||void 0===n?void 0:null===(t=n.node)||void 0===t?void 0:t.name)==="cover-story"||"cover_story"===e.contentTypeName))}var A=n(88515),I=n(39332);function R(e){let{footerSettings:t,isCoverStoryTemplate:n,isRockHallTv:i}=e,a=(0,A.mZ)(),s=(0,I.usePathname)(),o=n&&"/cover-story"!==s;return i||o&&"playing"===a?null:(0,r.jsx)(v.$_,{...t})}function k(e){var t;return!!e&&!!(e&&((null===(t=e.template)||void 0===t?void 0:t.templateName)==="Digital Exhibit"||"DigitalExhibit"===e.__typename))}var D=e=>{let{children:t,className:n="",pageWrapperData:i}=e,s=e.__SEED_NODE__,o=P(s),l=M(s),u=k(s),c=o,{isLoading:d}=(0,L.k)(),{businessHours:f,languages:p,footerSettings:m,navigationSettings:A}=i||{},I=[n,o?"rhtv":"",l?"coverstory":""].filter(Boolean).join(" ");return((0,a.useEffect)(()=>{if("undefined"!=typeof document)return document.body.classList.toggle("rhtv",o),document.body.classList.toggle("coverstory",l),document.body.classList.toggle("digital-exhibit",u),()=>{document.body.classList.remove("rhtv"),document.body.classList.remove("coverstory"),document.body.classList.remove("digital-exhibit")}},[o,l,u]),i)?(0,r.jsxs)("div",{className:I,suppressHydrationWarning:!0,children:[(0,r.jsx)(h.M,{children:d&&(0,r.jsx)(v.nt,{initial:{opacity:0}
280,animate:{opacity:1},exit:{opacity:0},transition:{duration:.3,ease:g.hl}},"loader")}),(0,r.jsx)(y.X,{children:(0,r.jsx)(_.IS,{children:(0,r.jsx)(C.I,{children:(0,r.jsx)(b.j,{children:(0,r.jsxs)(S.O,{...i,children:[(0,r.jsx)(x.I,{children:(0,r.jsx)(v.h4,{...A,languages:p,disableHideOnScroll:c})}),(0,r.jsx)(E.e,{businessHours:f,children:(0,r.jsx)(T.p,{children:(0,r.jsx)(w.V,{children:t})})}),(0,r.jsx)(R,{footerSettings:m,isCoverStoryTemplate:l,isRockHallTv:o})]})})})})})]}):(0,r.jsx)(r.Fragment,{})},N=n(72862),F=n(39583),O=n(15414),j=n(11163),U=n(22372);let{log:V}=(0,U.q)({name:"ScrollRestorationManager",bgColor:"brown",textColor:"white",enabled:!1});function B(){let e=(0,j.useRouter)(),{asPath:t}=e,n=(0,a.useRef)(!1),i=(0,a.useRef)(null),r=(0,a.useRef)(t),s=["/inductees/"],o=e=>{let t=s.some(t=>e.startsWith(t));return V("Checking if ".concat(e," is excluded: ").concat(t)),t};return(0,a.useEffect)(()=>{V("Initializing scroll restoration manager");let t=(()=>{let e=history.pushState,t=history.replaceState;history.pushState=function(){for(var t=arguments.length,r=Array(t),a=0;a<t;a++)r[a]=arguments[a];return i.current="push",n.current=!0,V("Navigation type: push"),e.apply(this,r)};let r=()=>{i.current="back",n.current=!0,V("Navigation type: back (popstate)")};return window.addEventListener("popstate",r),()=>{history.pushState=e,history.replaceState=t,window.removeEventListener("popstate",r),V("Cleaned up navigation tracking")}})(),a=()=>{let e=r.current;if(V("Attempting to save scroll position for: ".concat(e)),o(e)){V("Skipping save for excluded route: ".concat(e));return}let t=JSON.parse(sessionStorage.getItem("scrollPositions")||"{}"),n={x:window.scrollX,y:window.scrollY,timestamp:Date.now()};t[e]=n,V("Saved scroll position for ".concat(e,":"),n),sessionStorage.setItem("scrollPositions",JSON.stringify(t))},s=t=>{let a=i.current,s=e.asPath.split("#")[1];V("Route change to: ".concat(t,", navigation type: ").concat(a,", section: ").concat(s||"none")),setTimeout(()=>{n.current=!1,i.current=null},100),o(t)||s?(V("Scrolling to top for ".concat(t," (excluded route or has section)")),setTimeout(()=>{window.scrollTo(0,0)},0)):"back"===a||"forward"===a?(V("Restoring scroll position for back/forward navigation to: ".concat(t)),l(t)):(V("Scrolling to top for new navigation to: ".concat(t)),setTimeout(()=>{window.scrollTo(0,0)},0)),r.current=t},l=e=>{let t=JSON.parse(sessionStorage.getItem("scrollPositions")||"{}")[e];t?(V("Restoring scroll position for ".concat(e,":"),t),requestAnimationFrame(()=>{window.scrollTo(t.x,t.y)})):(V("No saved position found for ".concat(e,", scrolling to top")),setTimeout(()=>{window.scrollTo(0,0)},0))},u=()=>{V("Route change starting, saving current position"),a()},c=()=>{V("Page unloading, saving current position"),a()},d=()=>{let e=JSON.parse(sessionStorage.getItem("scrollPositions")||"{}"),t=Date.now()-36e5,n={},i=0;Object.entries(e).forEach(e=>{let[r,a]=e;a.timestamp>t?n[r]=a:i++}),V("Cleaned up ".concat(i," old scroll positions")),sessionStorage.setItem("scrollPositions",JSON.stringify(n))};return e.events.on("routeChangeStart",u),e.events.on("routeChangeComplete",s),window.addEventListener("beforeunload",c),d(),()=>{t(),e.events.off("routeChangeStart",u),e.events.off("routeChangeComplete",s),window.removeEventListener("beforeunload",c),V("Scroll restoration manager cleanup complete")}},[e]),(0,a.useEffect)(()=>{V("asPath updated to: ".concat(t)),r.current=t},[t]),null}var H=n(58291);function G(){let e=(0,j.useRouter)();(0,a.useEffect)(()=>{let e=1600,t=8,n=1440,i=(0,H.lX)("maxwidth",e);if(i!==e){let e=t*i/n;document.documentElement.style.setProperty("--container-max-width","".concat(i,"px")),document.documentElement.style.setProperty("--clamp","".concat(e,"px"))}else document.documentElement.style.removeProperty("--container-max-width"),document.documentElement.style.removeProperty("--clamp")},[e.asPath])}function z(){let[e,t]=(0,a.useState)(!1),n=(0,a.useRef)(e);return(0,a.useEffect)(()=>{n.current=e},[e]),(0,a.useEffect)(()=>{let e=()=>{document.cookie.includes("cookieyes-consent")&&document.cookie.includes("analytics:yes")?t(!0):n.current&&window.location.reload()};return document.addEventListener("cookieyes_consent_update",e),e(),()=>document.removeEventListener("cookieyes_consent_update",e)},[]),(0,a.useEffect)(()=>
280{if(e){let e=document.createElement("script");e.innerHTML="(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','GTM-NL5RM5BN');",document.body.appendChild(e)}},[e]),(0,r.jsx)(r.Fragment,{})}var q=n(81221);n(2851);var W=n(15799),$=n(5152),Z=n.n($);let Y={FlexiblePageContentContentHeroLayout:Z()(()=>Promise.resolve().then(n.bind(n,88034)),{loadableGenerated:{webpack:()=>[88034]}}),FlexiblePageContentContentStickyNavLayout:Z()(()=>Promise.resolve().then(n.bind(n,60858)),{loadableGenerated:{webpack:()=>[60858]}}),FlexiblePageContentContentFeatureLayout:Z()(()=>Promise.resolve().then(n.bind(n,71639)),{loadableGenerated:{webpack:()=>[71639]}}),FlexiblePageContentContentCarouselStoriesLayout:Z()(()=>Promise.resolve().then(n.bind(n,49831)),{loadableGenerated:{webpack:()=>[49831]}}),FlexiblePageContentContentListInducteesLayout:Z()(()=>Promise.resolve().then(n.bind(n,62859)),{loadableGenerated:{webpack:()=>[62859]}}),FlexiblePageContentContentInlineRedirectLayout:Z()(()=>Promise.resolve().then(n.bind(n,57506)),{loadableGenerated:{webpack:()=>[57506]}}),FlexiblePageContentContentTitleLayout:Z()(()=>Promise.resolve().then(n.bind(n,48497)),{loadableGenerated:{webpack:()=>[48497]}}),FlexiblePageContentContentCarouselShopLayout:Z()(()=>Promise.resolve().then(n.bind(n,99978)),{loadableGenerated:{webpack:()=>[99978]}}),FlexiblePageContentContentEventsLayout:Z()(()=>Promise.resolve().then(n.bind(n,43436)),{loadableGenerated:{webpack:()=>[43436]}}),FlexiblePageContentContentGridInducteesLayout:Z()(()=>Promise.resolve().then(n.bind(n,10525)),{loadableGenerated:{webpack:()=>[10525]}}),FlexiblePageContentContentBannerLayout:Z()(()=>Promise.resolve().then(n.bind(n,4612)),{loadableGenerated:{webpack:()=>[4612]}}),FlexiblePageContentContentSectionEndLayout:Z()(()=>Promise.resolve().then(n.bind(n,97919)),{loadableGenerated:{webpack:()=>[97919]}}),FlexiblePageContentContentFloatSpotlightLayout:Z()(()=>Promise.resolve().then(n.bind(n,19872)),{loadableGenerated:{webpack:()=>[19872]}}),FlexiblePageContentContentQuickLinksLayout:Z()(()=>Promise.resolve().then(n.bind(n,67541)),{loadableGenerated:{webpack:()=>[67541]}}),FlexiblePageContentContentMilestonesLayout:Z()(()=>Promise.resolve().then(n.bind(n,81629)),{loadableGenerated:{webpack:()=>[81629]}}),FlexiblePageContentContentTextImageLayout:Z()(()=>Promise.resolve().then(n.bind(n,53922)),{loadableGenerated:{webpack:()=>[53922]}}),FlexiblePageContentContentQuoteCarouselLayout:Z()(()=>Promise.resolve().then(n.bind(n,20088)),{loadableGenerated:{webpack:()=>[20088]}}),FlexiblePageContentContentLogosLayout:Z()(()=>Promise.resolve().then(n.bind(n,76256)),{loadableGenerated:{webpack:()=>[76256]}}),FlexiblePageContentContentFormEmbedLayout:Z()(()=>Promise.resolve().then(n.bind(n,67438)),{loadableGenerated:{webpack:()=>[67438]}}),FlexiblePageContentContentComparisonTableLayout:Z()(()=>Promise.resolve().then(n.bind(n,20575)),{loadableGenerated:{webpack:()=>[20575]}}),FlexiblePageContentContentAccordionLayout:Z()(()=>Promise.resolve().then(n.bind(n,16710)),{loadableGenerated:{webpack:()=>[16710]}}),FlexiblePageContentContentHoursManualLayout:Z()(()=>Promise.resolve().then(n.bind(n,95064)),{loadableGenerated:{webpack:()=>[95064]}}),FlexiblePageContentContentListLayout:Z()(()=>Promise.resolve().then(n.bind(n,80314)),{loadableGenerated:{webpack:()=>[80314]}}),FlexiblePageContentContentPricingLayout:Z()(()=>Promise.resolve().then(n.bind(n,33899)),{loadableGenerated:{webpack:()=>[33899]}}),FlexiblePageContentContentIconGridLayout:Z()(()=>Promise.resolve().then(n.bind(n,55938)),{loadableGenerated:{webpack:()=>[55938]}}),FlexiblePageContentContentImageSingularLayout:Z()(()=>Promise.resolve().then(n.bind(n,84966)),{loadableGenerated:{webpack:()=>[84966]}}),FlexiblePageContentContentImageGalleryLayout:Z()(()=>Promise.resolve().then(n.bind(n,69957)),{loadableGenerated:{webpack:()=>[69957]}}),FlexiblePageContentContentVideoPlaylistLayout:Z()(()=>Promise.resolve().then(n.bind(n,24802)),{loadableGenerated:{webpack:()=>[24802]}}),FlexiblePageContentContentVideoSingularLayout:Z()(()=>Promise.resolve().then(n.bind(n,60175)),{loadableGenerated:{webpack:()=>[60175]}}),FlexiblePageContentContentVideoCarouselLayout:Z()(()=>Promise.resolve().then(n.bind(n,44269)),{loadableGenerated:{webpack:()=>[44269]}}),FlexiblePageContentContentCarouselInducteesLayout:Z()(()=>Promise.resolve().then(n.bind(n,34068)),{loadableGenerated:{webpack:()=>[34068]}}),FlexiblePageContentContentGoogleMapLayout:Z()(()=>Promise.resolve().then(n.bind(n,80115)),{loadableGenerated:{webpack:()=>[80115]}}),FlexiblePageContentContentWifiFormLayout:Z()(()=>Promise.resolve().then(n.bind(n,4086)),{loadableGenerated:{webpack:()=>[4086]}}),FlexiblePageContentContentFeatureEventsLayout:Z()(()=>Promise.resolve().then(n.bind(n,2384)),{loadableGenerated:{webpack:()=>[2384]}
280}),FlexiblePageContentContentListingEventsFullLayout:Z()(()=>Promise.resolve().then(n.bind(n,47832)),{loadableGenerated:{webpack:()=>[47832]}}),FlexiblePageContentContentIntroLayout:Z()(()=>Promise.resolve().then(n.bind(n,78885)),{loadableGenerated:{webpack:()=>[78885]}}),FlexiblePageContentContentTicketingLayout:Z()(()=>Promise.resolve().then(n.bind(n,77022)),{loadableGenerated:{webpack:()=>[77022]}}),FlexiblePageContentContentDonateFormLayout:Z()(()=>Promise.resolve().then(n.bind(n,98941)),{loadableGenerated:{webpack:()=>[98941]}}),FlexiblePageContentContentDetailHeroLayout:Z()(()=>Promise.resolve().then(n.bind(n,52145)),{loadableGenerated:{webpack:()=>[52145]}}),FlexiblePageContentContentRichTextLayout:Z()(()=>Promise.resolve().then(n.bind(n,13167)),{loadableGenerated:{webpack:()=>[13167]}}),FlexiblePageContentContentGenericEmbedLayout:Z()(()=>Promise.resolve().then(n.bind(n,8477)),{loadableGenerated:{webpack:()=>[8477]}}),FlexiblePageContentContentCarouselRhtvLayout:Z()(()=>Promise.resolve().then(n.bind(n,82404)),{loadableGenerated:{webpack:()=>[82404]}}),FlexiblePageContentContentFeatureExhibitsInteractivesLayout:Z()(()=>Promise.resolve().then(n.bind(n,22479)),{loadableGenerated:{webpack:()=>[22479]}}),FlexiblePageContentContentListingPressReleasesLayout:Z()(()=>Promise.resolve().then(n.bind(n,38778)),{loadableGenerated:{webpack:()=>[38778]}}),FlexiblePageContentContentArtifactSingularLayout:Z()(()=>Promise.resolve().then(n.bind(n,53752)),{loadableGenerated:{webpack:()=>[53752]}}),FlexiblePageContentContentQuizLayout:Z()(()=>Promise.resolve().then(n.bind(n,14771)),{loadableGenerated:{webpack:()=>[14771]}})},K=["FlexiblePageContentContentStickyNavLayout"];function X(e){let{content:t,listInductees:n,recentStories:i,initialPressReleases:s,initialEvents:o}=e;return(0,r.jsx)(r.Fragment,{children:null==t?void 0:t.map((e,t)=>{let l=Y[e.__typename];if(!l)return null;let u={...e};if("FlexiblePageContentContentListInducteesLayout"===e.__typename){if(!(null==n?void 0:n.length)&&!u.nomineeVariant)return null;u.listInductees=n}return("FlexiblePageContentContentCarouselStoriesLayout"===e.__typename&&(u.recentStories=i),"FlexiblePageContentContentListingPressReleasesLayout"===e.__typename&&(u.initialPressReleases=s),"FlexiblePageContentContentListingEventsFullLayout"===e.__typename&&(u.initialEvents=o),"FlexiblePageContentContentQuizLayout"===e.__typename&&(u.isDefault=!0),K.indexOf(e.__typename)>-1)?(0,r.jsx)(x.I,{children:(0,r.jsx)(l,{...u})},t):(0,a.createElement)(l,{...u,key:t})})})}var Q=n(14771);
280function J(e){let{content:t}=e;return(0,r.jsx)(r.Fragment,{children:null==t?void 0:t.map((e,t)=>{switch(e.__typename){case"InducteeDataImpactFlexibleContentSoundExplorerLayout":return(0,r.jsx)(v.sN,{...e},t);case"InducteeDataImpactFlexibleContentArtifactSingularLayout":return(0,r.jsx)(v.M$,{...e},t);case"InducteeDataImpactFlexibleContentArtifactPaperLayout":return(0,r.jsx)(v.QH,{...e},t);case"InducteeDataImpactFlexibleContentSpotlightLayout":return(0,r.jsx)(v.$1,{...e},t);case"InducteeDataImpactFlexibleContentQuoteLayout":return(0,r.jsx)(v.pu,{...e},t);case"InducteeDataImpactFlexibleContentHallOfFameEssayLayout":return(0,r.jsx)(v.Re,{...e},t);case"InducteeDataImpactFlexibleContentQuizLayout":return(0,r.jsx)(Q.default,{...e,isDefault:!0},t);default:return null}})})}var ee=n(82729),et=n(68806),en=n(35605),ei=n(28985),er=n(36403),ea=n(938),es=n(74075),eo=n(10756),el=n(1641),eu=n(14189),ec=n(16928),ed=n(30244),eh=n(39880),ef=n(68302),ep=n(44654),em=n(83061),eg=n(45621),ev=n(99375),ey=n(35871),e_=n(41289),eb=n(81060),ex=n(69764),eC=n(90453),eE=n(35782),ew=n(4386),eT=n(11901),eS=n(25707),eL=n(89174),eP=n(77655),eM=n(1943),eA=n(68875),eI=n(88938),eR=n(33464),ek=n(66571),eD=n(8424),eN=n(47225),eF=n(62351),eO=n(65071),ej=n(1477),eU=n(83195),eV=n(1418),eB=n(74076),eH=n(36398),eG=n(42854),ez=n(97731),eq=n(28890),eW=n(81996),e$=n(40415),eZ=n(76094);function eY(){let e=(0,ee._)(["\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n fragment ContentFragment on FlexiblePageContent {\n content {\n ...Hero\n ...Feature\n ...CarouselStories\n ...ListInductees\n ...Title\n ...InlineRedirect\n ...CarouselShop\n ...ListingEvents\n ...GridInductees\n ...Banner\n ...StickyNav\n ...SectionEnd\n ...FloatSpotlight\n ...QuickLinks\n ...Milestones\n ...TextImage\n ...QuoteCarousel\n ...Logos\n ...FormEmbed\n ...ComparisonTable\n ...Accordion\n ...List\n ...Pricing\n ...IconGrid\n ...ImageSingular\n ...ImageGallery\n ...VideoPlaylist\n ...VideoSingular\n ...VideoCarousel\n ...CarouselInductees\n ...GoogleMap\n ...WifiForm\n ...FeatureEvents\n ...ListingEventsFull\n ...Intro\n ...Ticketing\n ...DonateForm\n ...DetailHeroFlexibleContent\n ...RichText\n ...GenericEmbed\n ...CarouselRHTV\n ...FeatureExhibitsInteractives\n ...ListingPressReleases\n ...ArtifactSingular\n ...HoursManual\n ...FlexibleLayoutQuiz\n }\n }\n"]);return eY=function(){return e},e}let eK=(0,et.Ps)(eY(),eC.V.fragments.entry,ep.L.fragments.entry,ec.d.fragments.entry,eA.m.fragments.entry,eL.h.fragments.entry,ez.D.fragments.entry,eu.Z.fragments.entry,eI.U.fragments.entry,ex.g.fragments.entry,es.j.fragments.entry,eB.B.fragments.entry,eV.H.fragments.entry,ev.l.fragments.entry,eO.g.fragments.entry,eN.V.fragments.entry,eH.Q.fragments.entry,ej.g.fragments.entry,eD.x.fragments.entry,ey.Y.fragments.entry,ed.R.fragments.entry,er.U.fragments.entry,eM.a.fragments.entry,eF.n.fragments.entry,ew.w.fragments.entry,eS.Z.fragments.entry,eT.h.fragments.entry,eW.L.fragments.entry,e$.W.fragments.entry,eq.F.fragments.entry,eo.v.fragments.entry,eb.b.fragments.entry,eZ.w.fragments.entry,em.S.fragments.entry,eR.M.fragments.entry,eP.p.fragments.entry,eG.P.fragments.entry,ef.$.fragments.entry,eh.w.fragments.entry,eU.H.fragments.entry,e_.k.fragments.entry,el.R.fragments.entry,eg.y.fragments.entry,ek.i.fragments.entry,ea.M.fragments.entry,eE.z.fragments.entry,Q.default.fragments.entry);function eX(){let e=(0,ee._)(["\n","\n","\n","\n query GetFrontPageData($databaseId: ID!, $language: String!, $asPreview: Boolean = false) {\n rhPage(id: $databaseId, asPreview: $asPreview, language: $language) {\n title\n ...PageData\n flexiblePageContent {\n ...ContentFragment\n }\n listInductees(language: $language) {\n nodes {\n ...BaseInducteeInfo\n }\n }\n }\n }\n"]);return eX=function(){return e},e}let eQ=(0,et.Ps)(eX(),en.X,ei.SX,eK),eJ=e=>{let{loading:t,pageWrapperData:n}=e,{setHighlightColor:i}=(0,_.$h)(),s=(0,f.XE)(eQ),{listInductees:o,flexiblePageContent:l,pageData:{ogDescription:u,featuredImage:c,pageCategory:d}={}}
280=(null==s?void 0:s.rhPage)||{},{siteSettings:{customSettings:h}={},recentStories:p}=n,{siteTitle:m}=h,{previewLoading:g,setPreviewLoading:y}=(0,L.k)(),b=(0,W.pz)(m),[x]=d||[];if((0,a.useEffect)(()=>{i(q.JU[null==x?void 0:x.slug]||q.e_.GREEN)},[x]),(0,N.O2)(null==x?void 0:x.slug),(0,a.useEffect)(()=>{!t&&g&&y(!1)},[t,g]),s&&!t)return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v.HJ,{title:b,description:u,image:c}),(0,r.jsx)(X,{content:null==l?void 0:l.content,listInductees:null==o?void 0:o.nodes,recentStories:p})]})};eJ.queries=[{query:eQ,variables:W.sC}];var e0=eJ,e1=n(44819);function e2(){let e=(0,ee._)(["\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n fragment TheirImpact on Inductee {\n inducteeData {\n includeImpactSection\n impactHero {\n headline\n type\n quote {\n quote\n role\n name\n imageAttribution\n image {\n ...ACFMedia\n }\n }\n video {\n videoTitle\n videoType\n youtubeVideoId\n videoUrl\n previewVideoUrl\n videoThumbnail {\n ...ACFMedia\n }\n youtubeThumbnail {\n ...ACFMedia\n }\n }\n }\n impactFlexibleContent {\n ...SoundExplorer\n ...InducteeArtifactSingular\n ...InducteeArtifactPaper\n ...InducteeSpotlight\n ...InducteeQuote\n ...InducteeEssay\n ...ImpactQuiz\n }\n }\n }\n"]);return e2=function(){return e},e}let e3=(0,et.Ps)(e2(),v.sN.fragments.entry,v.M$.fragments.inducteeEntry,v.QH.fragments.entry,v.$1.fragments.inducteeEntry,v.pu.fragments.inducteeEntry,v.Re.fragments.entry,Q.default.fragments.inducteeEntry
280);function e5(){let e=(0,ee._)(["\n fragment TheirInduction on Inductee {\n inducteeData {\n includeInductionSection\n inductionHero {\n headline\n type\n singleVideo {\n videoTitle\n videoType\n youtubeVideoId\n videoUrl\n previewVideoUrl\n videoThumbnail {\n ...ACFMedia\n }\n youtubeThumbnail {\n ...ACFMedia\n }\n }\n videoPlaylist {\n primaryVideo {\n performanceName\n videoType\n youtubeVideoId\n videoUrl\n previewVideoUrl\n videoThumbnail {\n ...ACFMedia\n }\n youtubeThumbnail {\n ...ACFMedia\n }\n }\n videos {\n performanceName\n videoType\n youtubeVideoId\n videoUrl\n videoThumbnail {\n ...ACFMedia\n }\n youtubeThumbnail {\n ...ACFMedia\n }\n }\n }\n }\n includeVideoCarousel\n inductionVideoCarousel {\n videos {\n title\n videoEmbed {\n videoType\n youtubeVideoId\n videoUrl\n videoThumbnail {\n ...ACFMedia\n }\n youtubeThumbnail {\n ...ACFMedia\n }\n }\n }\n }\n includeConnectedInductees\n connectedInductees {\n listType\n inductees {\n nodes {\n ... on Inductee {\n title\n uri\n ...PageData\n }\n }\n }\n }\n }\n }\n"]);return e5=function(){return e},e}let e4=(0,et.Ps)(e5());function e6(){let e=(0,ee._)(["\n fragment TheirInfluence on Inductee {\n inducteeData {\n includeInfluenceSection\n inducteeInfluence {\n headline\n body\n imageAttribution\n image {\n ...ACFMedia\n }\n influences {\n type\n name\n inductee {\n node {\n ... on Inductee {\n title\n uri\n }\n }\n }\n }\n influenced {\n type\n name\n inductee {\n node {\n ... on Inductee {\n title\n uri\n }\n }\n }\n }\n }\n membersSection {\n headline\n body\n }\n }\n }\n"]);return e6=function(){return e},e}let e8=(0,et.Ps)(e6());var e7=n(21782);function e9(){let e=(0,ee._)(["\n ","\n ","\n fragment AdditionalContent on Inductee {\n inducteeData {\n overrideDefaultFeature\n feature {\n headline\n items {\n body\n ctaLabel\n headline\n linkType\n sectionId\n pillLabel\n image {\n ...ACFMedia\n }\n externalLink\n page {\n node {\n databaseId\n __typename\n uri\n ... on Event {\n ...EventFragment\n }\n }\n }\n }\n }\n includeShopCarousel\n inducteeShopCarousel {\n headline\n type\n shopifyCollection\n shopifyTag\n searchValue\n cta {\n linkType\n label\n externalLink\n page {\n node {\n uri\n }\n }\n }\n }\n gridInductees {\n headline\n cta {\n linkType\n label\n externalLink\n page {\n node {\n uri\n }\n }\n }\n featuredInductees(first: 12) {\n nodes {\n ... on Inductee {\n title\n uri\n ...PageData\n inducteeData {\n inducteeClass {\n slug\n }\n }\n }\n }\n }\n }\n }\n }\n"]);return e9=function(){return e},e}let te=(0,et.Ps)(e9(),e7.Q,en.X);function tt(){let e=(0,ee._)(["\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ",'\n query Inductee($databaseId: ID!, $asPreview: Boolean = false, $language: String = "en") {\n rhInductee(id: $databaseId, asPreview: $asPreview, language: $language) {\n title\n ...PageData\n ...InducteeHero\n ...InducteeInfo\n ...TheirInduction\n ...TheirImpact\n ...TheirInfluence\n ...AdditionalContent\n }\n }\n']);return tt=function(){return e},e}let tn=e=>{var t;let{log:n}=(0,U.q)({name:"SingleInductee",bgColor:"deeppink",textColor:"white",enabled:!1}),{data:i,loading:s,pageWrapperData:o}=e,{setHighlightColor:l}=(0,_.$h)(),{previewLoading:u,setPreviewLoading:c}=(0,L.k)(),{siteTitle:d}=(0,S.i)(),{rhInductee:h}=i||{},{title:f,pageData:{ogTitle:p,ogDescription:m,featuredImage:g,pageCategory:y}={},inducteeMembers:b,inducteeData:{category:C,includeInductionSection:E,includeInfluenceSection:w,includeImpactSection:T,inductedBy:P,intro:M,inducteeClass:A,inductionHero:I,includeVideoCarousel:R,inductionVideoCarousel:k,includeConnectedInductees:D,connectedInductees:F,impactHero:O,impactFlexibleContent:j,inducteeHero:V,inducteeInfluence:B,membersSection:H,overrideDefaultFeature:G,feature:z,includeShopCarousel:$,inducteeShopCarousel:Z,gridInductees:Y}={}}=h||{},[K]=y||[],X={title:f,inductedBy:P,category:(null==C?void 0:C[0])||"",class:(null==A?void 0:null===(t=A[0])||void 0===t?void 0:t.slug)||""},Q=(0,a.useMemo)(()=>(0,W.pz)(d,p||f),[o,p,f]),ee=(0,a.useMemo)(()=>{var e,t,n;return G&&(null==z?void 0:z.headline)?z.headline:(null===(n=o.siteSettings)||void 0===n?void 0:null===(t=n.customSettings)||void 0===t?void 0:null===(e=t.defaultIdpFeature)||void 0===e?void 0:e.headline)||""},[z,G]),et=(0,a.useMemo)(()=>{var e,t,n;return G&&(null==z?void 0:z.items)?z.items:(null===(n=o.siteSettings)||void 0===n?void 0:null===(t=n.customSettings)||void 0===t?void 0:null===(e=t.defaultIdpFeature)||void 0===e?void 0:e.items)||[]},[z,G]),en=(0,a.useRef)(null),ei=(0,a.useRef)(null),er=(0,a.useRef)(null),ea=[{id:"idp-section-induction",include:!!E,sectionRef:en,label:(0,W.sf)(null==I?void 0:I.headline,"Induction")},{id:"idp-section-impact",include:!0,sectionRef:ei,label:(0,W.sf)(null==O?void 0:O.headline,"Impact")},{id:"idp-section-influence",include:!!w,sectionRef:er,label:(0,W.sf)(null==B?void 0:B.headline,"Influence")}],es=3===ea.filter(e=>e.include).length,[eo,el]=(0,a.useState)(ea.reduce((e,t)=>
280(e[t.id]=!1,e),{})),eu=(0,a.useMemo)(()=>null==b?void 0:b.every(e=>e.name&&e.signature),[b]);if((0,a.useEffect)(()=>{l(q.e_.YELLOW)},[K]),(0,N.O2)(null==K?void 0:K.slug),(0,a.useEffect)(()=>{!s&&u&&c(!1)},[s,u]),!s)return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v.HJ,{title:Q,description:m,image:g}),(0,r.jsx)(v.q3,{data:V,inducteeInfo:X}),(0,r.jsx)(v.jF,{...M,inducteeDetail:!0}),es&&(n("Rendering StickyNav"),(0,r.jsx)(x.I,{children:(0,r.jsx)(v.BO,{items:ea.filter(e=>e.include).map(e=>({label:e.label,sectionId:e.id})),showImmediately:!1,onActiveSectionChange:e=>{el(t=>{let n={...t};return e&&!n[e]&&(n[e]=!0),n})},centerActiveAtMid:!0,fadeUntilActive:!0})})),E&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("section",{id:"idp-section-induction",ref:en,children:[(0,r.jsx)(v.fc,{...I}),R&&(0,r.jsx)(v.FD,{...k}),D&&F&&(0,r.jsx)(v.k6,{...F})]}),es&&(0,r.jsx)(v.H_,{sectionId:"idp-section-induction"})]}),T&&(0,r.jsxs)("section",{id:"idp-section-impact",ref:ei,children:[(0,r.jsx)(v.xo,{...O}),(0,r.jsx)(J,{content:j})]}),es&&(0,r.jsx)(v.H_,{sectionId:"idp-section-impact"}),w&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("section",{id:"idp-section-influence",ref:er,children:(0,r.jsx)(v.UX,{inducteeInfluence:B,inducteeName:f})}),es&&(0,r.jsx)(v.H_,{sectionId:"idp-section-influence"})]}),eu&&(0,r.jsx)(v.HD,{content:H,members:b}),$&&(0,r.jsx)(v.Zh,{...Z}),ee&&(0,r.jsx)(v.Dx,{headline:ee}),(null==et?void 0:et.length)?(0,r.jsx)(v.L0,{items:et,float:!1}):null,(null==Y?void 0:Y.headline)&&(0,r.jsx)(v.gq,{headline:null==Y?void 0:Y.headline,cta:null==Y?void 0:Y.cta,inductees:null==Y?void 0:Y.featuredInductees.nodes})]})};tn.query=(0,et.Ps)(tt(),e1.ab,v.q3.fragments.entry,e1.cq,e3,e4,e8,te,en.X),tn.variables=W.sC;var ti=tn,tr=n(30120);let ta={"@type":"Place",name:"Rock & Roll Hall of Fame",address:{"@type":"PostalAddress",streetAddress:"1100 Rock & Roll Blvd",addressLocality:"Cleveland",addressRegion:"OH",postalCode:"44114",addressCountry:"US"}}
280,ts="America/New_York";function to(e){var t;if(!e)return;let n=e.trim().replace(/(?:Z|[+-]00:00)$/,""),i=tr.ou.fromISO(n,{zone:ts});return i.isValid&&null!==(t=i.toISO({suppressMilliseconds:!0}))&&void 0!==t?t:void 0}function tl(e){let t=(null!=e?e:[]).map(e=>(null!=e?e:"").trim()).filter(Boolean).map(e=>({"@type":"MusicGroup",name:e}));if(0!==t.length)return 1===t.length?t[0]:t}function tu(e){let t=to(e.startDate),n=to(e.endDate),i=tl(e.performerNames),r={"@context":"https://schema.org","@type":"MusicEvent",name:e.name,url:e.url,eventAttendanceMode:"https://schema.org/OfflineEventAttendanceMode",eventStatus:"https://schema.org/EventScheduled",location:ta,organizer:{"@type":"Organization",name:"Rock & Roll Hall of Fame",url:"https://rockhall.com/"}};return t&&(r.startDate=t),n&&(r.endDate=n),e.description&&(r.description=e.description),e.imageUrl&&(r.image=e.imageUrl),i&&(r.performer=i),e.ticketLink&&(r.offers={"@type":"Offer",url:e.ticketLink,priceCurrency:"USD",availability:"https://schema.org/InStock"}),r}var tc=n(66432);function td(){let e=(0,ee._)(["\n ","\n ","\n query Event($databaseId: ID!, $asPreview: Boolean = false, $language: String!) {\n rhEvent(id: $databaseId, asPreview: $asPreview, language: $language) {\n ...EventDetailFragment\n ...PageData\n flexiblePageContent {\n ...ContentFragment\n }\n }\n }\n"]);return td=function(){return e},e}let th=e=>{var t,n;let{data:i,loading:s,pageWrapperData:o}=e,{setHighlightColor:l}=(0,_.$h)(),{recentStories:u}=o,{previewLoading:c,setPreviewLoading:d}=(0,L.k)(),{siteTitle:h}=(0,S.i)(),{title:f,uri:p,pageData:{ogTitle:m,ogDescription:g,featuredImage:y,pageCategory:b}={},eventTypes:x,detailHero:C,flexiblePageContent:E,featuredEventImage:w,eventData:{eventDescription:T,startDate:P,endDate:M,pricingType:A,price:I,ticketLink:R,customCursorText:k,performers:D}={}}=(null==i?void 0:i.rhEvent)||{},F=null==x?void 0:x.nodes.some(e=>"members-only"===e.slug),O=(0,W.pz)(h,m||f),[j]=b||[],U=tu({name:null!=f?f:"",url:"https://rockhall.com".concat(null!=p?p:""),startDate:P,endDate:M,description:T||g,imageUrl:(0,tc.Kg)((null==w?void 0:null===(t=w.node)||void 0===t?void 0:t.mediaItemUrl)||(null==y?void 0:null===(n=y.node)||void 0===n?void 0:n.mediaItemUrl)),ticketLink:R,performerNames:(null!=D?D:[]).map(e=>null==e?void 0:e.performerName)});if((0,a.useEffect)(()=>
280{l(q.e_.BLUE)},[b]),(0,N.O2)(null==j?void 0:j.slug),(0,a.useEffect)(()=>{!s&&c&&d(!1)},[s,c]),!s)return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v.HJ,{title:O,description:g,image:y,jsonLd:U}),(0,r.jsx)(v.FU,{page:{node:{...i.rhEvent,__typename:"Event"}},headline:f,heroLink:R,cursorText:k,isMembersOnly:F,startDate:P,endDate:M,pricingType:A,price:I,...C}),(null==E?void 0:E.content)&&(0,r.jsx)(X,{content:null==E?void 0:E.content,recentStories:u})]})};th.query=(0,et.Ps)(td(),e7.o,eK),th.variables=W.sC;var tf=th,tp=n(94367);function tm(){let e=(0,ee._)(["\n ","\n ","\n query Exhibit($databaseId: ID!, $asPreview: Boolean = false, $language: String!) {\n rhExhibit(id: $databaseId, asPreview: $asPreview, language: $language) {\n ...ExhibitDetailFragment\n flexiblePageContent {\n ...ContentFragment\n }\n }\n }\n"]);return tm=function(){return e},e}let tg=e=>{let{data:t,loading:n,pageWrapperData:i}=e,{setHighlightColor:s}=(0,_.$h)(),{previewLoading:o,setPreviewLoading:l}=(0,L.k)(),{siteTitle:u}=(0,S.i)(),{recentStories:c}=i,{detailHero:d,title:h,flexiblePageContent:f,pageData:{ogTitle:p,ogDescription:m,featuredImage:g,pageCategory:y}={},exhibitData:{ticketLink:b,customCursorText:x}={}}=(null==t?void 0:t.rhExhibit)||{},[C]=y||[],E=(0,W.pz)(u,p||h);if((0,a.useEffect)(()=>{s(q.e_.BLUE)},[C]),(0,N.O2)(null==C?void 0:C.slug),(0,a.useEffect)(()=>{!n&&o&&l(!1)},[n,o]),!n)return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v.HJ,{title:E,description:m,image:g}),(0,r.jsx)(v.FU,{page:{node:{...t.rhExhibit,__typename:"Exhibit"}},headline:h,heroLink:b,cursorText:x,...d}),(null==f?void 0:f.content)&&(0,r.jsx)(X,{content:f.content,recentStories:c})]})};tg.query=(0,et.Ps)(tm(),eK,tp.sm),tg.variables=W.sC;var tv=tg,ty=n(43775),t_=n(68563),tb=n(14902),tx=n(54192),tC=n(31853),tE=n(11810);let tw={sohne:{id:"sohne",label:"S\xf6hne",core:!0,defaultCase:"uppercase"},barlow:{id:"barlow",label:"Barlow",defaultCase:"uppercase"},fraunces:{id:"fraunces",label:"Fraunces",defaultCase:"as-entered"},raleway:{id:"raleway",label:"Raleway",defaultCase:"as-entered"},syne:{id:"syne",label:"Syne",defaultCase:"as-entered"},"playfair-display":{id:"playfair-display",label:"Playfair Display",defaultCase:"as-entered"},oswald:{id:"oswald",label:"Oswald",defaultCase:"uppercase"},"hepta-slab":{id:"hepta-slab",label:"Hepta Slab",defaultCase:"as-entered"}};function tT(e){var t;return null!==(t=Array.isArray(e)?e[0]:e)&&void 0!==t?t:""}function tS(e){var t;
280return null!==(t=tw[tT(e)])&&void 0!==t?t:tw.sohne}function tL(e,t){let n=tT(e);return"uppercase"===n?"uppercase":"as_entered"===n?"as-entered":t.defaultCase}var tP=n(35798);function tM(e){let{children:t,fontId:n,dxCase:i,accent1:a,accent2:s,accent3:o,navFontColor:l}=e,[u]=l||[];return(0,r.jsx)("div",{className:d()("dx-theme",(0,tP.u)(n)),"data-dx-font":n,"data-dx-case":i,"data-dx-nav":u||"white",style:{"--dx-accent-1":a||"var(--white)","--dx-accent-2":s||"var(--white)","--dx-accent-3":o||"var(--white)"},children:t})}var tA=n(19845),tI=n.n(tA),tR=n(34715);let tk=.7,tD=.9,tN=22050,tF=200;function tO(e){let{soundEnabled:t}=(0,m.je)(),n=(0,a.useRef)(t);n.current=t;let i=(0,a.useRef)({ctx:null,filter:null,gain:null,mode:"unset"}),r=(0,a.useRef)(0),s=(0,a.useCallback)(()=>{let t=e.current,n=i.current;if(t&&"unset"===n.mode)try{let e=new(window.AudioContext||window.webkitAudioContext),a=e.createMediaElementSource(t),s=e.createBiquadFilter();s.type="lowpass",s.frequency.value=tN,s.Q.value=.7;let o=e.createGain();o.gain.value=1,a.connect(s),s.connect(o),o.connect(e.destination),n.ctx=e,n.filter=s,n.gain=o,n.mode="webaudio";let l=e.createAnalyser();l.fftSize=256,o.connect(l);let u=new Uint8Array(l.frequencyBinCount);setTimeout(()=>{if("webaudio"===i.current.mode&&!t.paused&&!t.muted&&(l.getByteTimeDomainData(u),u.every(e=>128===e||0===e)&&r.current<tk)){var e;null===(e=n.gain)||void 0===e||e.disconnect(),n.mode="volume"}},1500)}catch(e){n.mode="volume"}},[e]),o=(0,a.useCallback)(t=>{var a;r.current=t;let o=e.current;if(!o)return;if(!n.current){o.muted=!0;return}if(t>=tD){o.muted||(o.muted=!0);let e=i.current.ctx;(null==e?void 0:e.state)==="running"&&e.suspend().catch(()=>{});return}let l=i.current;"unset"===l.mode&&s(),(null===(a=l.ctx)||void 0===a?void 0:a.state)==="suspended"&&l.ctx.resume();let u=o.muted;o.muted=!1;let c=1,d=tN;if(t>=tD)c=0,d=tF;else if(t>tk){let e=(t-tk)/(tD-tk);c=Math.max(0,1-e),d=tN*(tF/tN)**e}if("webaudio"===l.mode&&l.gain&&l.filter){if(u){let e=l.gain.context.currentTime;l.gain.gain.cancelScheduledValues(e),l.gain.gain.setValueAtTime(0,e),l.gain.gain.linearRampToValueAtTime(c,e+.4)}else l.gain.gain.value=c;l.filter.frequency.value=d,o.volume=1}else o.volume=c},[s,e]);return(0,a.useEffect)(()=>{o(r.current)},[t,o]),(0,a.useEffect)(()=>()=>{var e;null===(e=i.current.ctx)||void 0===e||e.close().catch(()=>{})},[]),o}var tj=n(27987);function tU(){return(tU=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var tV=function(e){return a.createElement("svg",tU({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i||(i=a.createElement("path",{d:"M18 13L12 19L6 13M12 18.5V5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"})))},tB=n(73151),tH=n.n(tB);let tG=tI().bind(tH());ty.ZP.registerPlugin(t_.i);let tz=800,tq=320,tW=2400,t$=1800,tZ=2120,tY=1250,tK=.25,tX=.6,tQ=e=>e*e*(3-2*e),tJ=e=>Math.max(0,Math.min(1,e));function t0(e){var t,n,i,s;let{hero:o,statement:l,statementAccent:u}=e,{backgroundDesktop:c,backgroundMobile:d,videoUrl:h,videoUrlMobile:f,videoPoster:p,logo:m,logoAltText:g,subheading:y,pillAccent:_,arrowOverride:b,arrowAccent:x}=o||{},{labels:C}=(0,S.i)(),[E,w]=(0,a.useState)(!1),[T,L]=(0,a.useState)(!1),P=(0,a.useRef)(null),M=(0,a.useRef)(null),A=(0,a.useRef)(null),I=(0,a.useRef)(null),R=(0,a.useRef)(null),k=(0,a.useRef)(null),D=(0,a.useRef)(null),N=(0,a.useRef)(null),O=(0,a.useRef)(null),j=(0,a.useRef)(null),U=(0,a.useRef)(null),V=(0,a.useRef)(null),B=(0,a.useRef)(null),H=(0,a.useRef)(null),G=(0,a.useRef)({visual:0,text:0}),z=(0,a.useRef)({visual:0,text:0}),q=(0,a.useRef)(null),W=(0,a.useRef)(-1),$=(0,a.useRef)(0),Z=(0,a.useRef)(1),Y=(0,a.useRef)(1),K=(0,a.useRef)(1),X=(0,a.useRef)(1),Q=(0,a.useRef)(1),J=(0,a.useRef)(null),ee=(0,a.useRef)(13),et=tO(k);(0,a.useEffect)(()=>{w((0,tC.xF)())},[]),(0,a.useEffect)(()=>{let e=k.current;if(!e){L(!0);return}let t=!1,n=()=>{t||(t=!0,L(!0))};if(e.readyState>=2){n();return}e.addEventListener("loadeddata",n);let i=null,r=e.getAttribute("poster");r&&((i=new window.Image).onload=n,i.src=r,i.complete&&i.naturalWi
280dth>0&&n());let a=window.setTimeout(n,5e3);return()=>{e.removeEventListener("loadeddata",n),i&&(i.onload=null),window.clearTimeout(a)}},[]);let en=(0,a.useMemo)(()=>{let e=(l||"").replace(/\*\*/g,""),t=[];return e.split("`").forEach((e,n)=>{let i=n%2==1;e.split(/\s+/).filter(Boolean).forEach(e=>t.push({text:e,verbatim:i}))}),t},[l]),ei="image"===(0,tE.PF)(null==c?void 0:c.backgroundType),er="image"===(0,tE.PF)(null==d?void 0:d.backgroundType),ea=()=>{var e,t,n,i,r,a,s,o,l,u,c,d,h,f,p,g,v,y,_;let b=window.innerWidth,x=b<=F.dG,C=!x&&b<=F.wQ,E=x||C,w=Math.min(1,b/1440),T=Math.min(1,b/390),S=x?T:C?Math.min(1,b/768):w,L=z.current.visual,P=z.current.text,M=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--header-height"))||92,k=E?16:40*w;if(A.current){let e=$.current,t=Math.round(k*(1-L)+e),n=Math.round(M*(1-L)+e);A.current.style.clipPath="inset(".concat(n,"px ").concat(t,"px ").concat(t,"px ").concat(t,"px round 1px)")}if(I.current){let e=x?.55:.6;I.current.style.background="rgba(0, 0, 0, ".concat(e+.1*L,")")}R.current&&(R.current.style.opacity=tJ(L).toFixed(3)),(r=J).current||(r.current=document.querySelector("header"));let G=!!J.current&&!J.current.className.includes("scrolled");ee.current=G?ee.current+1:0;let q=ee.current>12?tJ(1-L/.06):0,ei=tJ((L-.85)/.15);Q.current=-1===K.current?q:Math.max(q,ei),X.current+=(Q.current-X.current)*.25,.01>Math.abs(Q.current-X.current)&&(X.current=Q.current);let er=!(0,tC.xF)()&&P<.75;document.body.style.setProperty("--dx-header-opacity",X.current.toFixed(3)),document.body.toggleAttribute("data-dx-header-hidden",!er&&X.current<.05),document.body.toggleAttribute("data-dx-header-riding",er),document.body.style.setProperty("--dx-header-shift","".concat(Math.round(-M*L),"px"));let ea=tQ(L),es=1-(1-Math.min(1,P/.35))**2,eo=tQ(Math.min(1,P/.35)),el=x?t$:tW,eu=tq+.89*el,ec=tJ((window.scrollY-eu)/(.25*el)),ed=x?1-.2*ea-.25*es:1-.3*ea-.35*eo,eh=x?Math.max(0,20-7*L):Math.max(0,(24-20*L)*w);N.current&&(N.current.style.transform="scale(".concat(ed*Z.current,")"),N.current.style.gap="".concat(eh,"px")),D.current&&(D.current.style.opacity=String(1-.8*ec));let ef=x?333*T:860*w;if(j.current){let e=x?98*T:252*w;null==m||null===(s=m.node)||void 0===s||null===(a=s.mediaDetails)||void 0===a||a.width;let t=ef*((null==m?void 0:null===(l=m.node)||void 0===l?void 0:null===(o=l.mediaDetails)||void 0===o?void 0:o.height)||(x?98:252))/860,n=t>e+.5;j.current.style.width="".concat(Math.round(ef),"px"),j.current.style.height="".concat(Math.round(n?e:t),"px"),j.current.style.setProperty("--dx-logo-top",n?"-10.7%":"0px")}if(U.current&&(U.current.style.fontSize="".concat(Math.max(14,Math.round(24*ef/860)),"px")),O.current){let e=parseFloat(getComputedStyle(document.documentElement).fontSize)/8,t=x?T:w;O.current.style.transform="scale(".concat(t/e,")"),O.current.style.height="".concat(Math.round(25*t),"px")}if(V.current){let e=x?85*T:171*w;V.current.style.height="".concat(Math.round(e),"px"),V.current.style.bottom="".concat(Math.round((x?48:80)*(x?T:w)),"px")}let ep=Math.max(0,1-3*L);O.current&&(O.current.style.opacity=String(ep)),V.current&&(V.current.style.opacity=String(ep*Y.current));let em=(x?32:C?56:64)*S,eg=Math.round(x?em:Math.min(em,58.88*b/1129)),ev=Math.round(x?358*T:1129*eg/64),ey=x?1.1:1.375-.275*es;B.current&&(B.current.style.fontSize="".concat(eg,"px"),B.current.style.width="".concat(ev,"px"),B.current.style.maxWidth="1129px",B.current.style.lineHeight=String(ey));let e_=(null===(e=D.current)||void 0===e?void 0:e.offsetHeight)||window.innerHeight,eb=(null===(t=N.current)||void 0===t?void 0:t.offsetHeight)||0,ex=(null===(n=B.current)||void 0===n?void 0:n.offsetHeight)||0,eC=(null===(i=O.current)||void 0===i?void 0:i.offsetHeight)||0;if(x&&ex>0&&B.current&&H.current){let e=.55,t=13,n=(eC>0?eC+t:0)*.55,i=null!==(h=null===(u=N.current)||void 0===u?void 0:u.getBoundingClientRect().bottom)&&void 0!==h?h:0,r=null!==(f=null===(d=j.current)||void 0===d?void 0:null===(c=d.querySelector("img"))||void 0===c?void 0:c.getBoundingClientRect().bottom)&&void 0!==f?f:i,a=ed>0?Math.max(0,r-i)/ed*e:0,s=24,o=Math.min(1,Math.max(.7,Math.sqrt(Math.max(0,2*(e_-(parseFloat(getComputedStyle(H.current).bottom)||0)-H.current.offsetHeight-16-(e_/2+s/2-n/2+eb*e/2+a))/ex))));o<1&&(eg=Math.round(eg*o),B.current.style.fontSize="".concat(eg,"px"),ex=B.current.offsetHeight)}let eE=x?24:24*w,ew=en.length>0&&ex>0,eT=ew?es:0,eS=x?0:eT*(27+12*w),eL=e_/2-eT*((ew?eE:0)+ex)/2-(eC>0?eC+eh:0)*ed/2-eS;if(D.current&&(D.current.style.transform="translateY(".concat(Math.round(eL-eb/2),"px)")),B.current){let e=null!==(y=null===(p=N.current)||void 0===p?void 0:p.getBoundingClientRect().bottom)&&void 0!==y?y:0,t=eL+eb*ed/2+Math.max(0,(null!==(_=null===(v=j.current)||void 0===v?void 0:null===(g=v.querySelector("img"))||void 0===g?void 0:g.getBoundingClientRect().bottom)&&void 0!==_?_:e)-e)+eT*eE,n=(1-es)*(x?16:8);if(B.current.style.top="".concat(Math.round(t),"px"),B.current.style.transform="translate(-50%, ".concat(Math.round(n),"px)"),B.current.style.opacity=String(es*(1-.8*ec)),!x){let e=Math.floor(tJ((P-tK)/(tX-tK))*en.length);e!==W.current&&(W.current=e,B.current.querySelectorAll("span").forEach((t,n)=>t.toggleAttribute("data-revealed",n<e)))}}H.current&&(H.current.style.opacity=String(es*(1-.8*ec))),et(P)},es=()=>{let e=(0,tC.xF)(),t=G.current.visual-z.current.visual,n=G.current.text-z.current.text;for(let[i,r]of[["visual",t],["text",n]])if(Math.abs(r)>.4)z.current[i]=G.current[i];else{let t=e||window.innerWidth<=F.dG?.5:.3-.18*z.current[i],n=Math.min(1,3*Math.abs(r));z.current[i]+=r*(t+(1-t)*n)}ea();let i=X.current!==Q.current||ee.current>0&&ee.current<=12;Math.abs(t)>1e-4||Math.abs(n)>1e-4||i?q.current=requestAnimationFrame(es):(z.current.visual=G.current.visual,z.current.text=G.current.text,q.current=null)},eo=()=>{var e;(e=q).current||(e.current=requestAnimationFrame(es))};if((0,tR.V)(()=>
280{if(!P.current)return;if(E){z.current={visual:1,text:.7},G.current={visual:1,text:.7},Z.current=1,Y.current=1,ea();let e=()=>ea();return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}if(!T)return;let e=window.innerWidth<=F.dG?t$:tW;t_.i.create({trigger:P.current,start:"top top",end:"+=".concat(tz),scrub:!0,onUpdate:e=>{G.current.visual=e.progress,K.current=e.direction,eo()}}),t_.i.create({trigger:P.current,start:"top+=".concat(tq," top"),end:"+=".concat(e),onUpdate:e=>{G.current.text=e.progress,K.current=e.direction,eo()}});let t={v:100};$.current=100;let n=ty.ZP.timeline();if(M.current&&n.to(M.current,{autoAlpha:0,duration:1.4,ease:"power3.inOut"},0),n.to(t,{v:0,duration:1.4,ease:"power3.inOut",onUpdate:()=>{$.current=t.v,ea()}},0),k.current&&n.fromTo(k.current,{scale:1.1},{scale:1,duration:1.4,ease:"power3.inOut"},0),N.current){ty.ZP.set(N.current,{opacity:0,filter:"blur(12px)"}),n.to(N.current,{opacity:1,filter:"blur(0px)",duration:2,ease:"expo.inOut",clearProps:"filter"},0);let e={v:.88};Z.current=e.v,n.to(e,{v:1,duration:2,ease:"expo.inOut",onUpdate:()=>{Z.current=e.v,ea()}},0)}let i={v:0};Y.current=0,n.to(i,{v:1,duration:.8,ease:"power2.out",onUpdate:()=>{Y.current=i.v,ea()}},1.2),ea();let r=()=>eo();return window.addEventListener("resize",r),window.addEventListener("scroll",r,{passive:!0}),()=>{window.removeEventListener("resize",r),window.removeEventListener("scroll",r)}},{dependencies:[E,T],revertOnUpdate:!0,scope:P}),(0,a.useEffect)(()=>()=>{q.current&&cancelAnimationFrame(q.current),document.body.style.removeProperty("--dx-header-opacity"),document.body.removeAttribute("data-dx-header-hidden"),document.body.style.removeProperty("--dx-header-shift"),document.body.removeAttribute("data-dx-header-riding")},[]),!h)return null;let el=window.innerWidth<=F.dG&&f||h,eu=(e,t,n)=>(0,r.jsx)("div",{className:tG("dx-heroin__background","dx-heroin__background--".concat(n)),style:t?void 0:{background:(0,tE.NX)(null==e?void 0:e.accent)},children:t&&(0,r.jsx)(v.Ee,{image:null==e?void 0:e.image,className:tG("dx-heroin__background-image")})}),ec=()=>(0,r.jsx)("p",{ref:B,className:tG("dx-heroin__statement","dx-display-1"),"aria-label":l,style:{"--highlight-color":(0,tE.NX)(u)},children:en.map((e,t)=>(0,r.jsxs)("span",{"aria-hidden":"true","data-revealed":!!E||void 0,className:e.verbatim?"dx-verbatim":void 0,children:[e.text," "]},t))});return(0,r.jsx)("section",{ref:P,className:tG("dx-heroin",{"dx-heroin--static":E}),style:E?void 0:{"--dx-pin-desktop":"".concat(tZ,"px"),"--dx-pin-mobile":"".concat(tY,"px")},children:(0,r.jsxs)("div",{className:tG("dx-heroin__stage"),children:[eu(c,ei,"desktop"),eu(d,er,"mobile"),(0,r.jsx)("div",{ref:R,className:tG("dx-heroin__frame-dim")}),(0,r.jsxs)("div",{ref:A,className:tG("dx-heroin__media"),children:[(0,r.jsx)("video",{ref:k,className:tG("dx-heroin__video"),src:el||"",poster:(null==p?void 0:null===(t=p.node)||void 0===t?void 0:t.mediaItemUrl)||"",crossOrigin:"anonymous",autoPlay:!0,muted:!0,loop:!0,playsInline:!0}),(0,r.jsx)("div",{ref:I,className:tG("dx-heroin__media-overlay")})]}),(0,r.jsx)("div",{ref:D,className:tG("dx-heroin__center"),children:(0,r.jsxs)("div",{ref:N,className:tG("dx-heroin__lockup"),children:[(0,r.jsx)("div",{ref:O,className:tG("dx-heroin__pill"),style:{"--highlight-color":(0,tE.NX)(_)},children:(0,r.jsx)(v.eo,{type:"exhibit",copy:null==C?void 0:null===(n=C.postTypeLabels)||void 0===n?void 0:n.exhibit,className:tG("dx-heroin__pill-type")})}),m&&(0,r.jsx)("div",{ref:j,className:tG("dx-heroin__logo"),style:(null===(s=m.node)||void 0===s?void 0:null===(i=s.mediaDetails)||void 0===i?void 0:i.width)?{"--dx-logo-w-pct":m.node.mediaDetails.width/860}:void 0,children:(0,r.jsx)(v.Ee,{image:m,alt:g||"",className:tG("dx-heroin__logo-image")})}),y&&(0,r.jsx)("p",{ref:U,className:tG("dx-heroin__subhead","dx-subhead"),dangerouslySetInnerHTML:{__html:(0,tE.RG)(y)}})]})}),en.length>0&&ec(),(0,r.jsx)("div",{ref:V,className:tG("dx-heroin__arrow"),style:{"--dx-arrow-color":(0,tE.NX)(x)},children:b?(0,r.jsx)(v.Ee,{image:b,className:tG("dx-heroin__arrow-image")}):(0,r.jsx)(tj.Z,{className:tG("dx-heroin__arrow-icon")})}),(0,r.jsxs)("div",{ref:H,className:tG("dx-heroin__prompt"),children:[(0,r.jsx)("span",{className:tG("dx-caption"),children:(null==C?void 0:C.continueScrolling)||"Continue Scrolling"}),(0,r.jsx)(tV,{className:tG("dx-heroin__prompt-arrow")})]}),(0,r.jsx)("div",{ref:M,className:tG("dx-heroin__cover")})]})})}
280let t1={DigitalExhibitContentModulesBigTextLayout:Z()(()=>Promise.all([n.e(883),n.e(283)]).then(n.bind(n,71283)),{loadableGenerated:{webpack:()=>[71283]}}),DigitalExhibitContentModulesCardGalleryLayout:Z()(()=>Promise.all([n.e(563),n.e(69)]).then(n.bind(n,6069)),{loadableGenerated:{webpack:()=>[6069]}}),DigitalExhibitContentModulesCarouselHighlightLayout:Z()(()=>Promise.all([n.e(563),n.e(398)]).then(n.bind(n,90398)),{loadableGenerated:{webpack:()=>[90398]}}),DigitalExhibitContentModulesDeepDiveLayout:Z()(()=>Promise.all([n.e(510),n.e(625)]).then(n.bind(n,58625)),{loadableGenerated:{webpack:()=>[58625]}}),DigitalExhibitContentModulesMusicExplorerLayout:Z()(()=>Promise.all([n.e(519),n.e(77)]).then(n.bind(n,84077)),{loadableGenerated:{webpack:()=>[84077]}}),DigitalExhibitContentModulesQuizLayout:Z()(()=>Promise.resolve().then(n.bind(n,14771)),{loadableGenerated:{webpack:()=>[14771]}})};function t2(e){let{modules:t,fontTheme:n,textCase:i}=e;return(null==t?void 0:t.length)?(0,r.jsx)(r.Fragment,{children:t.map((e,t)=>{if(!(null==e?void 0:e.__typename))return null;let a=t1[e.__typename];return a?(0,r.jsx)(a,{...e,fontTheme:n,textCase:i},t):null})}):null}var t3=n(46052),t5=n.n(t3);let t4=tI().bind(t5()),t6=8;function t8(e){var t;let{tickerAccent:n,showCta:i,cta:s,showInductees:o,inductees:l,showShop:u,shop:c}=e||{},{labels:d}=(0,S.i)(),h=(null==d?void 0:d.exploreMore)||"Explore More",[f,p]=(0,a.useState)(!1);return((0,a.useEffect)(()=>{p((0,tC.xF)())},[]),i&&s||o&&l||u&&c)?(0,r.jsxs)("section",{className:t4("dx-page-ender"),style:{"--highlight-color":(0,tE.NX)(n)},children:[(0,r.jsx)("div",{className:t4("dx-page-ender__ticker"),"aria-hidden":"true",children:(0,r.jsx)("div",{className:t4("dx-page-ender__ticker-track",{"dx-page-ender__ticker-track--static":f}),children:Array.from({length:t6},(e,t)=>(0,r.jsxs)("span",{className:t4("dx-page-ender__ticker-item",{"dx-page-ender__ticker-item--accent":t%2==1}),children:[(0,r.jsx)("span",{className:t4("dx-page-ender__ticker-text"),children:h}),(0,r.jsx)("span",{className:t4("dx-page-ender__ticker-arrow"),children:"â"})]},t))})}),i&&s&&(0,r.jsx)(v.jL,{...s}),o&&l&&(0,r.jsx)(v.gq,{colorOverride:l.colorOverride,headline:l.headline,cta:l.cta,inductees:null===(t=l.featuredInductees)||void 0===t?void 0:t.nodes}),u&&c&&(0,r.jsx)(v.Zh,{...c})]}):null}function t7(){let e=(0,ee._)(["\n ","\n query DigitalExhibit($databaseId: ID!, $asPreview: Boolean = false, $language: String!) {\n rhDigitalExhibit(id: $databaseId, asPreview: $asPreview, language: $language) {\n ...DigitalExhibitDetailFragment\n }\n }\n"]);return t7=function(){return e},e}let t9=e=>{var t;let{data:n,loading:i}=e,{setHighlightColor:s}=(0,_.$h)(),{previewLoading:o,setPreviewLoading:l}=(0,L.k)(),{siteTitle:u}=(0,S.i)(),{title:c,digitalExhibitSettings:d,digitalExhibitHero:h,digitalExhibitContent:{intro:f,modules:p,pageEnder:m}={},pageData:{ogTitle:g,ogDescription:y,featuredImage:b,pageCategory:x}={}}=(null==n?void 0:n.rhDigitalExhibit)||{},[C]=x||[],E=(0,W.pz)(u,g||c),{accent1:w,accent2:T,accent3:P,soundPopupColor:M,soundPopupOverride:A,navFontColor:I,fontTheme:R,textCase:k}=d||{},D=tS(R),F=tL(k,D),O={accent_1:w,accent_2:T,accent_3:P}[(0,tE.PF)(M)]||"var(--green)";(0,N.O2)(null==C?void 0:C.slug),(0,a.useEffect)(()=>{(null==d?void 0:d.accent1)&&s(d.accent1)},[null==d?void 0:d.accent1]),(0,a.useEffect)(()=>{!i&&o&&l(!1)},[i,o]);let U=(0,a.useRef)(null),V=(0,tC.xF)();(0,a.useEffect)(()=>{if((0,tC.xF)())return;let e=e=>{var t,n;null===(n=U.current)||void 0===n||null===(t=n.lenis)||void 0===t||t.raf(1e3*e),t_.i.update()};return ty.ZP.ticker.add(e),ty.ZP.ticker.lagSmoothing(0),()=>ty.ZP.ticker.remove(e)},[]);let B=(0,j.useRouter)();if((0,a.useEffect)(()=>{let e=()=>{var e;let t="string"==typeof(null===(e=B.query)||void 0===e?void 0:e.module)?B.query.module:null,n=window.location.hash.slice(1)||null,i=t||n;if(!i)return;let r=(e,t)=>{var n;let i=(0,tC.xF)(),a=null===(n=U.current)||void 0===n?void 0:n.lenis,s=()=>{!(t>=4)&&Math.abs(e.getBoundingClientRect().top)>6&&r(e,t+1)};a&&!i?(a.resize(),a.scrollTo(e,{duration:0===t?1.2:.4,onComplete:s})):(e.scrollIntoView({behavior:i?"auto":"smooth"}),window.setTimeout(s,i?0:500))},a=0,s=NaN,o=0,l=()=>{a+=1;let e=document.getElementById("dx-".concat(i));if(e){let t=e.offsetTop;if(t===s?o+=1:(o=0,s=t),o>=6||a>=240){r(e,0);return}}requestAnimationFrame(l)};requestAnimationFrame(l)};return i||e(),B.events.on("routeChangeComplete",e),B.events.on("hashChangeComplete",e),()=>{B.events.off("routeChangeComplete",e),B.events.off("hashChangeComplete",e)}}
280,[null===(t=B.query)||void 0===t?void 0:t.module,B.events,i]),!i)return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v.HJ,{title:E,description:y,image:b}),!V&&(0,r.jsx)(tb.ZP,{root:!0,options:{autoRaf:!1,allowNestedScroll:!0,lerp:.18,smoothWheel:!0,wheelMultiplier:1},ref:U}),(0,r.jsxs)(tM,{fontId:D.id,dxCase:F,accent1:w,accent2:T,accent3:P,navFontColor:I,children:[(0,r.jsx)(t0,{hero:h,...f}),(0,r.jsx)(t2,{modules:p,fontTheme:D.id,textCase:F}),(0,r.jsx)(t8,{...m})]}),(0,r.jsx)("div",{className:"dx-sound-popup-wrap",style:{"--highlight-color":O},children:(0,r.jsx)(v.sE,{headlineOverride:A})})]})};t9.query=(0,et.Ps)(t7(),tx.uU),t9.variables=W.sC;var ne=t9;function nt(){let e=(0,ee._)(["\n ","\n query GetInducteesByClass($databaseId: ID!) {\n relatedInductees(databaseId: $databaseId) {\n nodes {\n ...BaseInducteeInfo\n }\n }\n }\n"]);return nt=function(){return e},e}function nn(){let e=(0,ee._)(["\n ","\n query GetInducteeListItems($in: [ID]!) {\n inductees(where: {in: $in}, first: 40) {\n nodes {\n ...BaseInducteeInfo\n }\n }\n }\n"]);return nn=function(){return e},e}function ni(){let e=(0,ee._)(["\n ","\n query GetAllInductees {\n allInductees {\n ...InducteeLandingInfo\n }\n }\n"]);return ni=function(){return e},e}let nr=(0,et.Ps)(nt(),ei.SX);(0,et.Ps)(nn(),ei.SX),(0,et.Ps)(ni(),ei.Fr);var na=n(58400);function ns(e){let{content:t}=e;return(0,r.jsx)(r.Fragment,{children:null==t?void 0:t.map((e,t)=>{switch(e.__typename){case"CeremonyLandingMediaFlexibleContentImageGalleryLayout":return(0,r.jsx)(v.hJ,{largeTitle:0===t,...e},t);case"CeremonyLandingMediaFlexibleContentVideoCarouselLayout":return(0,r.jsx)(v.FD,{largeTitle:0===t,...e},t);case"CeremonyLandingMediaFlexibleContentVideoPlaylistLayout":return(0,r.jsx)(v.L6,{largeTitle:0===t,...e},t);default:return null}})})}function no(){let e=(0,ee._)(["\n fragment AdditionalFlexibleContent on CeremonyLanding {\n additionalFlexibleContent {\n ... on CeremonyLandingAdditionalFlexibleContentCarouselShopLayout {\n headline\n type\n shopifyCollection\n shopifyTag\n searchValue\n cta {\n linkType\n label\n externalLink\n page {\n node {\n uri\n }\n }\n }\n }\n ... on CeremonyLandingAdditionalFlexibleContentFloatSpotlightLayout {\n eyebrow\n headline\n smallText\n cta {\n linkType\n externalLink\n label\n page {\n node {\n uri\n }\n }\n }\n secondaryCta {\n linkType\n externalLink\n label\n page {\n node {\n uri\n }\n }\n }\n images {\n topLeft {\n ...ACFMedia\n }\n top {\n ...ACFMedia\n }\n topRight {\n ...ACFMedia\n }\n bottomLeft {\n ...ACFMedia\n }\n bottomRight {\n ...ACFMedia\n }\n }\n }\n ... on CeremonyLandingAdditionalFlexibleContentTitleLayout {\n headline\n }\n ... on CeremonyLandingAdditionalFlexibleContentFeatureLayout {\n headline\n float\n items {\n body\n ctaLabel\n headline\n linkType\n pillLabel\n image {\n ...ACFMedia\n }\n externalLink\n page {\n node {\n databaseId\n __typename\n uri\n ... on Event {\n ...EventFragment\n }\n }\n }\n }\n }\n ... on CeremonyLandingAdditionalFlexibleContentBannerLayout {\n type\n largeBorder\n eyebrow\n headline\n subhead\n link {\n linkType\n externalLink\n page {\n node {\n uri\n }\n }\n }\n }\n }\n }\n"]);return no=function(){return e},e}let nl=(0,et.Ps)(no());function nu(){let e=(0,ee._)(["\n fragment MediaFlexibleContent on CeremonyLanding {\n mediaFlexibleContent {\n ... on CeremonyLandingMediaFlexibleContentVideoPlaylistLayout {\n eyebrow\n headline\n body\n primaryVideo {\n performanceName\n videoType\n youtubeVideoId\n videoUrl\n videoThumbnail {\n ...ACFMedia\n }
280\n youtubeThumbnail {\n ...ACFMedia\n }\n }\n videos {\n performanceName\n videoType\n youtubeVideoId\n videoUrl\n videoThumbnail {\n ...ACFMedia\n }\n youtubeThumbnail {\n ...ACFMedia\n }\n }\n }\n ... on CeremonyLandingMediaFlexibleContentImageGalleryLayout {\n variant\n standardHeader {\n headline\n subhead\n }\n textHeader {\n eyebrow\n headline\n subhead\n cta {\n linkType\n label\n externalLink\n page {\n node {\n uri\n }\n }\n }\n lineItems {\n headline\n body\n }\n }\n imageGalleryImages: images {\n image {\n ...ACFMedia\n }\n }\n }\n ... on CeremonyLandingMediaFlexibleContentVideoCarouselLayout {\n eyebrow\n headline\n body\n videos {\n title\n videoEmbed {\n videoType\n youtubeVideoId\n videoUrl\n videoThumbnail {\n ...ACFMedia\n }\n youtubeThumbnail {\n ...ACFMedia\n }\n }\n }\n }\n }\n }\n"]);return nu=function(){return e},e}let nc=(0,et.Ps)(nu());function nd(){let e=(0,ee._)(["\n ","\n ","\n ","\n ","\n ","\n query GetCeremonyLanding($databaseId: ID!, $asPreview: Boolean, $language: String!) {\n rhCeremony(id: $databaseId, asPreview: $asPreview, language: $language) {\n title\n uri\n slug\n ...PageData\n ceremonyLanding {\n featuredCeremony\n season\n useDefaultContent\n classYear {\n slug\n }\n featuredHero {\n contentType\n assetType\n headline\n body\n video\n videoThumbnail {\n ...ACFMedia\n }\n linkHero\n customCursorText\n heroLink {\n linkType\n externalLink\n page {\n node {\n uri\n }\n }\n }\n image {\n ...ACFMedia\n }\n }\n ...MediaFlexibleContent\n ...AdditionalFlexibleContent\n }\n }\n }\n"]);return nd=function(){return e},e}let nh=(0,et.Ps)(nd(),e1.ab,e7.Q,nc,nl,en.X);function nf(){let e=(0,ee._)(["\n query GetCeremonies($cursor: String = null) {\n ceremonies(first: 100, after: $cursor) {\n pageInfo {\n hasNextPage\n endCursor\n }\n nodes {\n slug\n }\n }\n }\n"]);return nf=function(){return e},e}function np(){let e=(0,ee._)(["\n query GetAdjacentClasses($databaseId: ID!) {\n adjacentInducteeClasses(databaseId: $databaseId) {\n title\n inducteeData {\n inducteeClass {\n slug\n }\n }\n }\n }\n"]);return np=function(){return e},e}(0,et.Ps)(nf());let nm=(0,et.Ps)(np());function ng(){let e=(0,ee._)(["\n ","\n ","\n query GetClassExhibit($databaseId: ID!) {\n classOfExhibit(databaseId: $databaseId) {\n ...ExhibitFragment\n }\n }\n"]);return ng=function(){return e},e}let nv=(0,et.Ps)(ng(),e1.ab,tp.U9);function ny(e){let{content:t}=e;return(0,r.jsx)(r.Fragment,{children:null==t?void 0:t.map((e,t)=>{switch(e.__typename){case"CeremonyLandingAdditionalFlexibleContentCarouselShopLayout":return(0,r.jsx)(v.Zh,{...e},t);case"CeremonyLandingAdditionalFlexibleContentFloatSpotlightLayout":return(0,r.jsx)(v.l7,{...e},t);case"CeremonyLandingAdditionalFlexibleContentTitleLayout":return(0,r.jsx)(v.Dx,{...e},t);case"CeremonyLandingAdditionalFlexibleContentFeatureLayout":return(0,r.jsx)(v.L0,{...e},t);case"CeremonyLandingAdditionalFlexibleContentBannerLayout":return(0,r.jsx)(v.jL,{...e},t);default:return null}})})}var n_=n(98017);let nb=e=>{var t;let{loading:n}=e,i=(0,f.XE)(nh),s=(0,f.XE)(nr),o=(0,f.XE)(nv),l=(0,f.XE)(nm),{rhCeremony:u}=i||{},{labels:c,siteSettings:d}=(0,S.i)(),{ceremonyFeature:h,ceremonyFloatSpotlight:p,ceremonyHero:m}=d||{},{setHighlightColor:g}=(0,_.$h)(),{previewLoading:y,setPreviewLoading:b}=(0,L.k)(),x=(null==c?void 0:c.ceremonyLandingOgTitle)?(0,W.$e)(c.ceremonyLandingOgTitle,{year:null==u?void 0:u.slug}):"",{pageData:{ogDescription:C,featuredImage:E,pageCategory:w}={}}=u||{},{featuredCeremony:T,season:P,classYear:M,featuredHero:A,useDefaultContent:I,mediaFlexibleContent:R,additionalFlexibleContent:k}=(null==u?void 0:u.ceremonyLanding)||{},D=(null==M?void 0:null===(t=M[0])||void 0===t?void 0:t.slug)||"NO YEAR",[F]=P||[""],O="inductee-season"===F,j=(null==s?void 0:s.relatedInductees)||{nodes:[]},U=(null==l?void 0:l.adjacentInducteeClasses)||[],[V]=w||[],B=(0,a.useMemo)(()=>(0,W.$e)((null==m?void 0:m.headline)||"",{year:D}),[D]);if((0,a.useEffect)(()=>{g(q.e_.YELLOW)},[V]),(0,N.O2)(null==V?void 0:V.slug),(0,a.useEffect)(()=>{!n&&y&&b(!1)},[n,y]),!n&&i&&i.rhCeremony)return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v.HJ,{title:x,description:C,image:E}),T?(0,r.jsx)(v.VM,{...A,variant:["primary"],eyebrow:null==m?void 0:m.eyebrow}):(0,r.jsx)(v.VM,{...m,variant:["secondary"],contentType:["induction"],headline:B}),!O&&R&&(0,r.jsx)(ns,{content:R}),(null==o?void 0:o.classOfExhibit)&&O&&(0,r.jsx)(na.z,{exhibit:(0,n_.A)(o.classOfExhibit),headline:null==c?void 0:c.featuredExhibitHeadline,largeTitle:!0,pillLabel:null==c?void 0:c.ceremonyNewExhibit}),(0,r.jsx)(v.qq,{showHeader:T,inductees:j,classYear:D}),I&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v.l7,{...p}),(0,r.jsx)(v.Dx,{headline:(null==h?void 0:h.headline)||""}),(0,r.jsx)(v.L0,{items:(null==h?void 0:h.items)||[],float:!1})]}),k&&!I&&(0,r.jsx)(ny,{content:k}),U.length&&(0,r.jsx)(v.F8,{inductees:U})]})};nb.queries=[{query:nh,variables:W.sC},{query:nr,variables:e=>{let{databaseId:t}=e;return{databaseId:t}}},{query:nv,variables:e=>{let{databaseId:t}=e;return{databaseId:t}}},{query:nm,variables:e=>{let{databaseId:t}=e;return{databaseId:t}}}];var nx=nb;function nC(){let e=(0,ee._)(["\n ",'\n query GetInducteeLanding($databaseId: ID!, $asPreview: Boolean = false, $language: String = "en") {\n rhPage(id: $databaseId, asPreview: $asPreview, language: $language) {\n title\n ...PageData\n inducteeLanding {\n headline\n searchPlaceholder\n aZLabel\n byClassLabel\n noResultsTitle\n noResultsBody\n primaryCardCta {\n linkType\n externalLink\n label\n page {\n node {\n uri\n }\n }\n }\n noResultsCta {\n linkType\n externalLink\n label\n page {\n node {\n uri\n }\n }\n }\n }\n }\n }\n']);return nC=function(){return e},e}let nE=(0,et.Ps)(nC(),en.X);var nw=n(94483);let nT=e=>{var t,n;let{loading:i}=e,s=(0,f.XE)(nE),{setHighlightColor:o}=(0,_.$h)(),{siteTitle:l}=(0,S.i)(),{previewLoading:u,setPreviewLoading:c}=(0,L.k)(),{ogTitle:d,ogDescription:h,featuredImage:p,pageCategory:m}=s.rhPage.pageData||{},g=(0,W.pz)(l,d||(null==s?void 0:null===(t=s.rhPage)||void 0===t?void 0:t.t
280itle)),[y]=m||[];if((0,a.useEffect)(()=>{o(q.e_.YELLOW)},[]),(0,N.O2)(null==y?void 0:y.slug),(0,a.useEffect)(()=>{!i&&u&&c(!1)},[i,u]),!i)return(0,r.jsxs)(nw.R,{children:[(0,r.jsx)(v.HJ,{title:g,description:h,image:p}),(0,r.jsx)(v._,{inducteeLandingData:null==s?void 0:null===(n=s.rhPage)||void 0===n?void 0:n.inducteeLanding})]})};nT.queries=[{query:nE,variables:W.sC}];var nS=nT;function nL(){let e=(0,ee._)(["\n ","\n query PressRelease($databaseId: ID!, $asPreview: Boolean = false, $language: String!) {\n rhPressRelease(id: $databaseId, asPreview: $asPreview, language: $language) {\n title\n pressReleaseFields {\n publishDate\n ogTitleOverride\n ogDescription\n }\n flexiblePageContent {\n ...ContentFragment\n }\n }\n }\n"]);return nL=function(){return e},e}let nP=e=>{let{data:t,loading:n,pageWrapperData:i}=e,{setHighlightColor:s}=(0,_.$h)(),{recentStories:o}=i,{previewLoading:l,setPreviewLoading:u}=(0,L.k)(),{featuredInductees:c,siteSettings:d,siteTitle:h}=(0,S.i)(),{title:f,flexiblePageContent:p,pressReleaseFields:{publishDate:m,ogTitleOverride:g,ogDescription:y}={}}=(null==t?void 0:t.rhPressRelease)||{},{pressReleaseFeature:b,pressReleaseHeroImage:x,pressReleaseTitle:C,pressReleaseInducteesHeadline:E,pressReleaseInducteesCta:w}=d||{},T=(0,W.pz)(h,g||f);if((0,a.useEffect)(()=>{s(q.e_.GREEN)},[]),(0,N.O2)("brand"),(0,a.useEffect)(()=>{!n&&l&&u(!1)},[n,l]),!n)return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v.HJ,{title:T,description:y,image:x}),(0,r.jsx)(v.FU,{publishDate:m,image:x,headline:C}),(null==p?void 0:p.content)&&(0,r.jsx)(X,{content:p.content,recentStories:o}),(null==b?void 0:b.headline)&&(0,r.jsx)(v.Dx,{headline:b.headline||""}),(null==b?void 0:b.items)&&(0,r.jsx)(v.L0,{items:b.items||[],float:!1}),(null==c?void 0:c.nodes)&&(0,r.jsx)(v.gq,{headline:E,cta:w,inductees:c.nodes})]})};nP.query=(0,et.Ps)(nL(),eK),nP.variables=W.sC;var nM=nP;function nA(){let e=(0,ee._)(["\n ","\n ",'\n query GetPressReleasePageData($databaseId: ID!, $asPreview: Boolean = false, $language: String = "en") {\n rhPage(id: $databaseId, asPreview: $asPreview, language: $language) {\n title\n ...PageData\n flexiblePageContent {\n ...ContentFragment\n }\n }\n initialPressReleases: pressReleases(\n where: { language: $language, offsetPagination: { size: 12 }, sortByDate: true }\n ) {\n pageInfo {\n offsetPagination {\n hasMore\n total\n }\n }\n nodes {\n title\n uri\n pressReleaseFields {\n publishDate\n }\n }\n }\n }\n']);return nA=function(){return e},e}let nI=e=>{let{pageWrapperData:t,data:n,loading:i}=e,{siteTitle:s}=(0,S.i)(),{recentStories:o}=t,{setHighlightColor:l}=(0,_.$h)(),{initialPressReleases:u}=n,{title:c,flexiblePageContent:d,pageData:{pageCategory:h,ogTitle:f,ogDescription:p,featuredImage:m}={}}=(null==n?void 0:n.rhPage)||{},g=(0,W.pz)(s,f||c),{previewLoading:y,setPreviewLoading:b}=(0,L.k)(),[x]=h||[];if((0,a.useEffect)(()=>
280{l(q.JU[null==x?void 0:x.slug]||q.e_.GREEN)},[x]),(0,N.O2)(null==x?void 0:x.slug),(0,a.useEffect)(()=>{!i&&y&&b(!1)},[i,y]),!i)return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v.HJ,{title:g,description:p||"",image:m}),(0,r.jsx)(X,{content:null==d?void 0:d.content,initialPressReleases:u,recentStories:o})]})};nI.variables=W.sC,nI.query=(0,et.Ps)(nA(),en.X,eK);var nR=nI,nk=n(92576);let nD=e=>{let{pageWrapperData:t,loading:n}=e,{log:i}=(0,U.q)({name:"page-cover-story",bgColor:"#4ECDC4",enabled:!1}),{setHighlightColor:s}=(0,_.$h)(),{previewLoading:o,setPreviewLoading:l}=(0,L.k)(),{siteSettings:{customSettings:{siteTitle:u}}}=t,c=(0,f.XE)(nk.Q7),d=(0,f.XE)(nk.QW),{title:h,coverStoryLanding:p,featuredCoverStory:m,pageData:{pageCategory:g,ogTitle:y,ogDescription:b,featuredImage:x}={}}=(null==c?void 0:c.rhPage)||{},[C]=g||[],{coverStories:E}=c,{coverStoryOptions:{coverStoryOptions:{coverStoryListHeadline:w,coverStoryListLabels:T,soundPopupOverride:S}={}}={}}=d||{},P=(0,W.pz)(u,y||h);if((0,a.useEffect)(()=>{i({coverStories:E})},[E]),(0,a.useEffect)(()=>{s(q.JU[null==C?void 0:C.slug]||q.e_.GREEN)},[C]),(0,N.O2)(null==C?void 0:C.slug),(0,a.useEffect)(()=>{!n&&o&&l(!1)},[n,o]),!n)return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v.HJ,{title:P,description:b||"",image:x}),(0,r.jsx)(v.uc,{...null==p?void 0:p.coverStoryHero,latestGame:m}),(0,r.jsx)(v.gT,{coverStories:E,headline:w,labels:T})]})};nD.queries=[{query:nk.Q7,variables:W.sC},{query:nk.QW,variables:W.A3}];var nN=nD;let nF=e=>{var t;let{pageWrapperData:n,loading:i}=e,{log:s}=(0,U.q)({name:"single-cover-story",bgColor:"#F3BAD6",enabled:!1}),{setHighlightColor:o}=(0,_.$h)(),{previewLoading:l,setPreviewLoading:u}=(0,L.k)(),{siteSettings:{customSettings:{siteTitle:c}}}=n,d=(0,f.XE)(nk.JJ),h=(0,f.XE)(nk.QW),p=(0,f.XE)(nk.xE),{title:m,gameData:g,databaseId:y}=(null==d?void 0:d.rhCoverStory)||{},b={...g,databaseId:y},{coverStoryOptions:{coverStoryOptions:x}={}}=h||{},{coverStoryDetailOgImage:C}=x||{},E=null==h?void 0:null===(t=h.coverStoryLandingPage)||void 0===t?void 0:t.uri,{coverStories:w}=p||{},T=(0,W.pz)(c,m);if(s("pageData:",{coverStories:w,coverStoryOptions:x,gameData:g}),(0,a.useEffect)(()=>{o(q.e_.PINK)},[]),(0,N.O2)("watch"),(0,a.useEffect)(()=>{!i&&l&&u(!1)},[i,l]),!i)return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v.HJ,{title:T,image:C}),(0,r.jsx)(A.vW,{options:x,children:(0,r.jsx)(v.Kg,{coverStories:w,gameData:b,options:x,title:m,pageUri:E})})]})};nF.queries=[{query:nk.JJ,variables:W.sC},{query:nk.QW,variables:W.A3},{query:nk.xE,variables:e=>{let{databaseId:t}=e,{language:n}=(0,W.A3)(e);return{language:n,notIn:[t]}}}];var nO=nF;function nj(){let e=(0,ee._)(["\n ","\n ",'\n query GetPageData($databaseId: ID!, $asPreview: Boolean = false, $language: String = "en") {\n rhPage(id: $databaseId, asPreview: $asPreview, language: $language) {\n title\n ...PageData\n flexiblePageContent {\n ...ContentFragment\n }\n }\n }\n']);return nj=function(){return e},e}let nU=e=>{let{pageWrapperData:t,data:n,loading:i,__SEED_NODE__:s}=e,{siteTitle:o}=(0,S.i)(),{recentStories:l}=t,{setHighlightColor:u}=(0,_.$h)(),{title:c,flexiblePageContent:d,pageData:{pageCategory:h,ogTitle:f,ogDescription:p,featuredImage:m}={}}=(null==n?void 0:n.rhPage)||{},g=(0,W.pz)(o,f||c),{previewLoading:y,setPreviewLoading:b}=(0,L.k)(),x=(0,j.useRouter)(),[C]=h||[];(0,a.useEffect)(()=>{u(q.JU[null==C?void 0:C.slug]||q.e_.GREEN)},[C]),(0,N.O2)(null==C?void 0:C.slug),(0,a.useEffect)(()=>{!i&&y&&b(!1)},[i,y]);let E=()=>{let e=(0,H.O8)("base_grant_url",""),t=(0,H.O8)("user_continue_url","");localStorage.setItem("base_grant_url",e),localStorage.setItem("user_continue_url",t)};if((0,a.useEffect)(()=>{(null==s?void 0:s.template.templateName)==="Wifi Form"&&x.isReady&&E()},[x.isReady]),!i)return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v.HJ,{title:g,description:p||"",image:m}),(0,r.jsx)(X,{content:null==d?void 0:d.content,recentStories:l})]})};nU.variables=W.sC,nU.query=(0,et.Ps)(nj(),en.X,eK);var nV=nU;function nB(){let e=(0,ee._)(["\n ","\n query RecentPosts($language: String) {\n posts(\n first: 10\n where: {status: PUBLISH, orderby: {field: DATE, order: DESC}, language: $language}\n ) {\n nodes {\n uri\n title\n pageData {\n featuredImage {\n ...ACFMedia\n }\n }\n featureData {\n excerpt\n }\n }\n }\n }\n"]);return nB=function(){return e},e}var nH=(0,et.Ps)(nB(),e1.ab);function nG(){let e=(0,ee._)(["\n ","\n ","\n ","\n fragment SonicConnections on FeatureDataSonicConnections {\n headline\n subhead\n tracks {\n heroImage {\n ...ACFMedia\n }\n trackName\n artistName\n releaseYear\n audio\n flipContentOrder\n images {\n image {\n ...ACFMedia\n }\n }\n blurbs {\n eyebrow\n copy\n }\n }\n includeFeature\n feature {\n headline\n items {\n body\n ctaLabel\n headline\n sectionId\n linkType\n pillLabel\n image {\n ...ACFMedia\n }\n externalLink\n page {\n node {\n __typename\n uri\n ... on Exhibit {\n ...ExhibitType\n }\n ... on Event {\n ...EventFragment\n }\n }\n }\n }\n }\n gridInductees {\n headline\n featuredInductees(first: 40) {\n nodes {\n ... on Inductee {\n title\n uri\n ...PageData\n inducteeData {\n inducteeClass {\n slug\n }\n }\n }\n }\n }\n cta {\n linkType\n label\n externalLink\n page {\n node {\n uri\n }\n }\n }\n }\n }\n"]);return nG=function(){return e},e}let nz=(0,et.Ps)(nG(),en.X,e7.Q,tp.dz);function nq(){let e=(0,ee._)(["\n ","\n ","\n ","\n query GetPost($databaseId: ID!, $asPreview: Boolean, $language: String!) {\n rhPost(id: $databaseId, asPreview: $asPreview, language: $language) {\n ...PageData\n title\n date\n author {\n node {\n name\n }\n }\n pageData {\n featuredImage {\n ...ACFMedia\n }\n }\n featureData {\n excerpt\n sonicConnections {\n ...SonicConnections\n }\n }\n }\n }\n"]);return nq=function(){return e},e}let nW=(0,et.ZP)(nq(),e1.ab,nz,en.X);function n$(){let e=(0,ee._)(["\n ","\n query GetNextUpPost($databaseId: ID!) {\n nextUpStory(postId: $databaseId) {\n uri\n featureData {\n sonicConnections {\n headline\n tracks {\n heroImage {\n ...ACFMedia\n }\n }\n }\n }\n }\n }\n"]);return n$=function(){return e},e}let nZ=(0,et.Ps)(n$(),e1.ab),nY=e=>{var t;let{loading:n,pageWrapperData:i}=e,{setHighlightColor:s}=(0,_.$h)(),{previewLoading:o,setPreviewLoading:l}=(0,L.k)(),u=(0,f.XE)(nW),c=(0,f.XE)(nZ),{pageData:{ogTitle:d,ogDescription:h,featuredImage:p,pageCategory:m}={},featureData:{sonicConnections:g}={},title:y}=(null==u?void 0:u.rhPost)||{},{includeFeature:b,feature:x,gridInductees:C}=g||{},{nextUpStory:E}=c||{},[w]=m||[];if((0,a.useEffect)(()=>{s(q.e_.PINK)},[w]),(0,N.O2)(null==w?void 0:w.slug),(0,a.useEffect)(()=>{!n&&o&&l(!1)},[n,o]),!n)return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v.HJ,{title:d,description:h,image:p}),(null==g?void 0:g.headline)?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v.wY,{...g}),E&&(0,r.jsx)(v.ZS,{...E}),b&&(0,r.jsxs)(r.Fragment,{children:[(null==x?void 0:x.headline)&&(0,r.jsx)(v.Dx,{headline:x.headline}),(null==x?void 0:x.items)&&(0,r.jsx)(v.L0,{items:x.items,float:!1})]}),(null==C?void 0:C.headline)&&(0,r.jsx)(v.gq,{headline:null==C?void 0:C.headline,cta:null==C?void 0:C.cta,inductees:null==C?void 0:null===(t=C.featuredInductees)||void 0===t?void 0:t.nodes}),(0,r.jsx)(v.sE,{})]}):(0,r.jsx)(v.W2,{children:(0,r.jsx)(v._q,{headline:y,subhead:"FPO ONLY: No data entered for sonic connections."})})]})};nY.queries=[{query:nW,variables:W.sC},{query:nZ,variables:e=>{let{databaseId:t}=e;return{databaseId:t}}},{query:nH}];var nK=nY;function nX(){let e=(0,ee._)(["\n ",'\n query GetSearchPage($databaseId: ID!, $asPreview: Boolean = false, $language: String = "en") {\n rhPage(id: $databaseId, asPreview: $asPreview, language: $language) {\n title\n databaseId\n ...PageData\n searchPageData {\n searchPlaceholder\n resultsText\n noResults {\n headline\n body\n cta {\n linkType\n externalLink\n label\n page {\n node {\n uri\n }\n }\n }\n }\n noShopResults {\n headline\n body\n cta {\n linkType\n externalLink\n label\n page {\n node {\n uri\n }\n }\n }\n }
280\n rockHallLabel\n shopLabel\n brandFilterLabel\n shopCarousel {\n headline\n ctaLabel\n }\n }\n }\n }\n']);return nX=function(){return e},e}function nQ(){let e=(0,ee._)(['\n query GetPageCategories($language: String = "en") {\n pageCategories( where: { language: $language, parent: 0 } ) {\n nodes {\n databaseId\n name\n slug\n }\n }\n }\n']);return nQ=function(){return e},e}let nJ=e=>{let{loading:t,pageWrapperData:n}=e,i=(0,f.XE)(n0),s=(0,f.XE)(n1),{setHighlightColor:o,highlightColor:l}=(0,_.$h)(),{previewLoading:u,setPreviewLoading:c}=(0,L.k)(),{siteSettings:d}=(0,S.i)(),{pressReleaseSearchImage:h,siteTitle:p}=d||{},{title:m,searchPageData:g,databaseId:y,pageData:{ogTitle:b,ogDescription:x,featuredImage:C,pageCategory:E}={}}=(null==i?void 0:i.rhPage)||{},{pageCategories:w}=s,[T]=E||[];(0,a.useEffect)(()=>{l||o(q.e_.GREEN)},[E]),(0,N.O2)(null==T?void 0:T.slug),(0,a.useEffect)(()=>{!t&&u&&c(!1)},[t,u]);let P=(0,W.pz)(p,b||m);if(!t)return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v.HJ,{title:P,description:x,image:C}),(0,r.jsx)(v.ol,{page:g,pressReleaseSearchImage:h,databaseId:y,categories:w.nodes})]})},n0=(0,et.Ps)(nX(),en.X),n1=(0,et.Ps)(nQ());nJ.queries=[{query:n0,variables:W.sC},{query:n1,variables:e=>{let{uri:t}=e;return{language:(0,W.Dy)(t)}}}];var n2=nJ;function n3(){let e=(0,ee._)(["\n ",'\n query RHTVPage($databaseId: ID!, $asPreview: Boolean = false, $language: String = "en") {\n rhPage(id: $databaseId, asPreview: $asPreview, language: $language) {\n ...PageData\n rhtvPageContent {\n headline\n subhead\n videoTrayOpen\n videoTrayClose\n soundPopupHeadlineOverride\n rrtvAriaLabels {\n sectionLabel\n channelTitle\n videoPlaylist\n channelVideos\n playVideo\n videoPlaying\n }\n }\n }\n }\n']);return n3=function(){return e},e}let n5=(0,et.Ps)(n3(),en.X);function n4(){let e=(0,ee._)(["\n fragment RhtvVideo on RhtvVideo {\n title\n slug\n rhtvVideoContent {\n videoTitle\n youtubeVideoId\n previewVideo\n externalYoutubeLink\n thumbnail {\n ...ACFMedia\n }\n channels {\n nodes {\n ... on RhtvChannel {\n title\n slug\n }\n }\n }\n artists {\n type\n name\n nameLink {\n node {\n uri\n }\n }\n inductee {\n node {\n ... on Inductee {\n title\n uri\n }\n }\n }\n }\n }\n }\n"]);return n4=function(){return e},e}let n6=(0,et.Ps)(n4());var n8=n(39065);function n7(){let e=(0,ee._)(["\n ","\n ","\n fragment RhtvChannel on RhtvChannel {\n title\n slug\n uri\n rhtvChannelContent {\n excerpt\n previewVideo\n thumbnail {\n ...ACFMedia\n }\n rhtvVideos(first: 100) {\n nodes {\n ...RhtvVideo\n }\n }\n }\n }\n"]);return n7=function(){return e},e}let n9=(0,et.Ps)(n7(),n6,n8.a);function ie(){let e=(0,ee._)(["\n ","\n query RHTVChannels($language: String!) {\n rhtvChannels(first: 50, where: {language: $language}) {\n nodes {\n ...RhtvChannel\n }\n }\n }\n"]);return ie=function(){return e},e}let it=(0,et.Ps)(ie(),n9);var ii=n(9917);let ir=e=>{let{loading:t}=e,{setHighlightColor:n}=(0,_.$h)(),i=(0,f.XE)(n5),s=(0,f.XE)(it),o=(0,j.useRouter)(),{isDesktop:l}=(0,F.dg)(),{previewLoading:u,setPreviewLoading:c}=(0,L.k)(),{rhtvPageContent:d}=(null==i?void 0:i.rhPage)||{},{pageData:{pageCategory:h,ogDescription:p,ogTitle:m,featuredImage:g}}=(null==i?void 0:i.rhPage)||{},[y]=h||[],b=(0,a.useMemo)(()=>{let e=o.query;return(null==e?void 0:e.wordpressNode)&&Array.isArray(e.wordpressNode)&&e.wordpressNode.length>2?e.wordpressNode[2]:null},[o.asPath]),x=(0,a.useMemo)(()=>{var e;return b&&(null==s?void 0:null===(e=s.rhtvChannels)||void 0===e?void 0:e.nodes)&&s.rhtvChannels.nodes.find(e=>(null==e?void 0:e.slug)===b)||null},[b,s]),C=(0,a.useMemo)(()=>{var e;if(!x)return null;let t=o.query,n=(0,W.i5)(null==x?void 0:null===(e=x.rhtvChannelContent)||void 0===e?void 0:e.rhtvVideos),i=n[0]||null;if((null==t?void 0:t.wordpressNode)&&Array.isArray(t.wordpressNode)&&t.wordpressNode.length>3){let e=t.wordpressNode[4],i=n.find(t=>(null==t?void 0:t.slug)===e);if(i)return i}return i},[x]);if((0,a.useEffect)(()=>{n(q.e_.PINK)},[]),(0,N.O2)(null==y?void 0:y.slug),(0,a.useEffect)(()=>{!t&&u&&c(!1)},[t,u]),!t)return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v.HJ,{title:m,description:p,image:g}),(0,r.jsxs)(ii.fB,{channels:(null==s?void 0:s.rhtvChannels.nodes)||[],defaultChannel:x,defaultVideo:C,children:[(0,r.jsx)(v.Sn,{channels:null==s?void 0:s.rhtvChannels.nodes,content:d}),(0,r.jsx)(v.Bx,{selector:"portal",show:l,children:(0,r.jsx)(v.sE,{headlineOverride:null==d?void 0:d.soundPopupHeadlineOverride})})]})]})};ir.queries=[{query:n5,variables:W.sC},{query:it,variables:e=>{let{uri:t}=e;return{language:(0,W.Dy)(t)}}}];var ia=ir;function is(){let e=(0,ee._)(["\n ","\n ","\n ",'\n query GetEventsPageData($databaseId: ID!, $asPreview: Boolean = false, $language: String = "en") {\n rhPage(id: $databaseId, asPreview: $asPreview, language: $language) {\n title\n ...PageData\n flexiblePageContent {\n ...ContentFragment\n }\n }\n initialEvents: events(\n where: { afterToday: true, language: $language, offsetPagination: { size: 12, offset: 0 } }\n ) {\n pageInfo {\n totalCount\n offsetPagination {\n hasMore\n }\n }\n nodes {\n ...EventFragment\n }\n }\n }\n']);return is=function(){return e},e}let io=e=>{var t;let{pageWrapperData:n,data:i,loading:s}=e,{siteTitle:o}=(0,S.i)(),{recentStories:l}=n,{setHighlightColor:u}=(0,_.$h)(),{initialEvents:c}=i,{title:d,flexiblePageContent:h,pageData:{pageCategory:f,ogTitle:p,ogDescription:m,featuredImage:g}={}}=(null==i?void 0:i.rhPage)||{},y=(0,W.pz)(o,p||d),{previewLoading:b,setPreviewLoading:x}=(0,L.k)(),[C]=f||[],E=null!==(t=null==c?void 0:c.nodes)&&void 0!==t?t:[],w={"@context":"https://schema.org","@type":"ItemList",itemListElement:E.map((e,t)=>{var n,i,r,a,s,o,l,u,c,d,h,f,p,m;return{"@type":"ListItem",position:t+1,item:tu({name:null!==(f=e.title)&&void 0!==f?f:"",url:"https://rockhall.com".concat(null!==(p=e.uri)&&void 0!==p?p:""),startDate:null===(n=e.eventData)||void 0===n?void 0:n.startDate,endD
280ate:null===(i=e.eventData)||void 0===i?void 0:i.endDate,description:(null===(r=e.eventData)||void 0===r?void 0:r.eventDescription)||(null===(a=e.pageData)||void 0===a?void 0:a.ogDescription),imageUrl:(0,tc.Kg)((null===(o=e.featuredEventImage)||void 0===o?void 0:null===(s=o.node)||void 0===s?void 0:s.mediaItemUrl)||(null===(c=e.pageData)||void 0===c?void 0:null===(u=c.featuredImage)||void 0===u?void 0:null===(l=u.node)||void 0===l?void 0:l.mediaItemUrl)),ticketLink:null===(d=e.eventData)||void 0===d?void 0:d.ticketLink,performerNames:(null!==(m=null===(h=e.eventData)||void 0===h?void 0:h.performers)&&void 0!==m?m:[]).map(e=>null==e?void 0:e.performerName)})}})};if((0,a.useEffect)(()=>{u(q.JU[null==C?void 0:C.slug]||q.e_.GREEN)},[C]),(0,N.O2)(null==C?void 0:C.slug),(0,a.useEffect)(()=>{!s&&b&&x(!1)},[s,b]),!s)return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v.HJ,{title:y,description:m||"",image:g,jsonLd:E.length>0?w:void 0}),(0,r.jsx)(X,{content:null==h?void 0:h.content,initialEvents:c,recentStories:l})]})};io.variables=W.sC,io.query=(0,et.Ps)(is(),en.X,eK,e7.Q);var il=io,iu={"front-page":e0,"template-Homepage":e0,"single-inductee":ti,"single-event":tf,"single-exhibit":tv,"single-digital-exhibit":ne,"single-ceremony":nx,"single-press-release":nM,"single-cover-story":nO,"template-Inductees Landing Page":nS,"template-Search Page":n2,"template-Rock Hall TV":ia,"template-Press Release Landing":nR,"template-Cover Story Landing Page":nN,"template-Events Landing Page":il,"page-events":il,page:nV,single:nK},ic=JSON.parse('{"WithAcfOptionsPageAdminSettings":["RootQuery"],"AcfOptionsPage":["AdminSettings","PageGenerationSettings"],"Node":["AdminSettings","ContentType","Taxonomy","EnqueuedScript","EnqueuedStylesheet","User","Comment","MediaItem","PageCategory","Ceremony","Event","EventType","Exhibit","ExhibitType","Inductee","InducteeClass","Page","CoverStory","Post","Category","PostFormat","Tag","RhtvChannel","RhtvVideo","UserRole","PageGenerationSettings","DeepDive","DigitalExhibit","GraphqlDocument","GraphqlDocumentGroup","Option","Menu","MenuItem","PressRelease","TicketPrice","Plugin","Theme","CommentAuthor"],"AcfFieldGroup":["AdminSettingsFields","CeremonyLanding","EventData","DetailHero","FlexiblePageContent","ExhibitData","InducteeData","CoverStoryLanding","InducteeLanding","RhtvPageContent","SearchPageData","TicketingComponent","GameData","FeatureData","RhtvChannelContent","RhtvVideoContent","DeepDiveFields","DigitalExhibitSettings","DigitalExhibitHero","DigitalExhibitContent","Hours","CoverStoryOptions","FooterSettingsFields","Labels","NavigationSettingsFields","CustomSettings","PressReleaseFields","TicketPriceFields","AccordionComponentAccordionsCta","AccordionComponentAccordions","AccordionComponentFooterCtas","AccordionComponentFooter","AccordionComponent","AdminSettingsFieldsPostTypeCategories","AdminSettingsFieldsPermanentRedirects","ArtifactPaperComponentArtifactPaperHeadline","ArtifactPaperComponentArtifactPaperBody","ArtifactPaperComponentCta","ArtifactPaperComponentImages","ArtifactPaperComponent","ArtifactComponentHeadlineLines","ArtifactComponentBody","ArtifactComponentCta","ArtifactComponentVideoEmbed","ArtifactComponent","AssetSelect","BannerComponentLink","BannerComponent","HoursMonthRangesDailyHoursSunday","HoursMonthRangesDailyHoursMonday","HoursMonthRangesDailyHoursTuesday","HoursMonthRangesDailyHoursWednesday","HoursMonthRangesDailyHoursThursday","HoursMonthRangesDailyHoursFriday","HoursMonthRangesDailyHoursSaturday","HoursMonthRangesDailyHours","HoursMonthRanges","HoursSpecialHoursSpecialDatesRelatedDates","HoursSpecialHoursSpecialDates","HoursSpecialHours","CarouselInducteesComponentCta","CarouselInducteesComponent","CarouselRockHallTvChannelsManualSlideLink","CarouselRockHallTvChannelsManualSlide","CarouselRockHallTvChannels","CarouselRockHallTvCta","CarouselRockHallTv","CarouselShopCta","CarouselShop","CarouselStoriesCta","CarouselStories","CeremonyLandingFeaturedHeroHeroLink","CeremonyLandingFeaturedHero","VideoComponentPrimaryVideo","CeremonyLandingMediaFlexibleContentVideoPlaylistLayout","CeremonyLandingMediaFlexibleContentVideoCarouselLayout","ImageGalleryComponentStandardHeader","ImageGalleryComponentTextHeaderCta","ImageGalleryComponentTextHeaderLineItems","ImageGalleryComponentTextHeader","CeremonyLandingMediaFlexibleContentImageGalleryLayout","CeremonyLandingAdditionalFlexibleContentCarouselShopLayout","FloatSpotlightCta","FloatSpotlightSecondaryCta","FloatSpotlightImages","CeremonyLandingAdditionalFlexibleContentFloatSpotlightLayout","CeremonyLandingAdditionalFlexibleContentTitleLayout","CeremonyLandingAdditionalFlexibleContentFeatureLayout","CeremonyLandingAdditionalFlexibleContentBannerLayout","ComparisonTableTableColumnHeaders","ComparisonTableTableRowsRowValues","ComparisonTableTableRows","ComparisonTableTableComparisonTableFooterCta","ComparisonTableTableComparisonTableFooterLinks","ComparisonTableTableComparisonTableFooter","ComparisonTableTable","ComparisonTable","GameDataArtistFeatureBody","GameDataArtistFeatureCta","GameDataArtistFeature","CoverStoryLandingCoverStoryHero","CoverStoryOptionsCoverStoryListLabels","CoverStoryOptionsHowToModalStepOne","CoverStoryOptionsHowToModalStepTwo","CoverStoryOptionsHowToModalStepThree","CoverStoryOptionsHowToModal","CoverStoryOptionsTileCount","CoverStoryOptionsCoverStoryEndScreenHeadline","CoverStoryOptionsCoverStoryEndScreenIncorrect","CoverStoryOptionsCoverStoryEndScreenTileTextTiles0","CoverStoryOptionsCoverStoryEndScreenTileTextTiles1","CoverStoryOptionsCoverStoryEndScreenTileTextTiles2Through4","CoverStoryOptionsCoverStoryEndScreenTileTextTiles5Through7","CoverStoryOptionsCoverStoryEndScreenTileTextTiles8Through10","CoverStoryOptionsCoverStoryEndScreenTileText","CoverStoryOptionsCoverStoryEndScreenButtonLabels","CoverStoryOptionsCoverStoryEndScreenBanner","CoverStoryOptionsAriaLabels","DeepDiveFieldsModuleImages","DeepDiveFieldsDrawerContentVideoLayout","DeepDiveFieldsDrawerContentImages","DeepDiveFieldsDrawerContentOutroLayout","DeepDiveFieldsDrawerContentQuoteLayout","DeepDiveFieldsDrawerContentGalleryItems","DeepDiveFieldsDrawerContentGalleryLayout","DetailHeroComponent","Digital
280ExhibitAccentComponent","DigitalExhibitBigTextComponentBackground","DigitalExhibitBigTextComponent","DigitalExhibitCardGalleryComponentCards","DigitalExhibitCardGalleryComponent","DigitalExhibitCarouselComponentItems","DigitalExhibitCarouselComponent","DigitalExhibitHeroComponentBackgroundDesktop","DigitalExhibitHeroComponentBackgroundMobile","DigitalExhibitHeroComponent","DigitalExhibitIntroComponent","DigitalExhibitKnockoutComponent","DigitalExhibitShareComponent","DonateFormComponentFormAmounts","DonateFormComponent","EventDataPrice","ExhibitDataExhibitMedia","FeatureItems","Feature","CarouseCta","Carouse","FeatureExhibitsInteractivesExhibitsManualExhibitLink","FeatureExhibitsInteractivesExhibitsManualExhibit","FeatureExhibitsInteractivesExhibits","FeatureExhibitsInteractivesCta","FeatureExhibitsInteractives","FloatSpotlight","FooterSettingsFieldsNewsletterFormForm","FooterSettingsFieldsNewsletterForm","FooterSettingsFieldsSocialLinks","FooterSettingsFieldsFindUsAddress","FooterSettingsFieldsFindUsPhone","FooterSettingsFieldsFindUsEmail","FooterSettingsFieldsFindUs","FooterSettingsFieldsFooterColumnsLinks","FooterSettingsFieldsFooterColumns","Formembed","GenericEmbedComponent","GoogleMapComponent","GridInducteesComponentCta","GridInducteesComponent","PrimaryHeroHeroLink","PrimaryHeroSlideHeroLink","PrimaryHeroAdditionalSlides","PrimaryHero","HighlightHeadlineField","HoursComponent","HoursManualComponentMonthRangesDayRows","HoursManualComponentMonthRanges","HoursManualComponentSpecialDatesDayRows","HoursManualComponentSpecialDates","HoursManualComponent","IcongridItemsCta","IcongridItems","Icongrid","ImageField","ImageGalleryComponentImages","ImageGalleryComponent","ImageSingularComponent","InducteeDataMembers","InducteeDataIntro","InducteeDataInducteeHeroHeadline","InducteeDataInducteeHero","InducteeDataInductionHeroSingleVideo","InducteeDataInductionHeroVideoPlaylistPrimaryVideo","InducteeDataInductionHeroVideoPlaylistVideos","InducteeDataInductionHeroVideoPlaylist","InducteeDataInductionHero","VideoCarouselComponentVideosVideoEmbed","InducteeDataInductionVideoCarouselVideos","InducteeDataInductionVideoCarousel","InducteeDataConnectedInductees","InducteeDataImpactHeroQuote","InducteeDataImpactHeroVideo","InducteeDataImpactHero","InducteeDataImpactFlexibleContentSlides","InducteeDataImpactFlexibleContentSoundExplorerLayout","InducteeDataImpactFlexibleContentArtifactSingularLayout","InducteeDataImpactFlexibleContentArtifactPaperLayout","SpotlightComponentVideo","InducteeDataImpactFlexibleContentSpotlightLayout","InducteeDataImpactFlexibleContentQuoteLayout","InducteeDataImpactFlexibleContentCta","InducteeDataImpactFlexibleContentHallOfFameEssayLayout","InducteeDataInducteeInfluenceInfluences","InducteeDataInducteeInfluenceInfluenced","InducteeDataInducteeInfluence","InducteeDataMembersSection","InducteeDataFeatureItems","InducteeDataFeature","InducteeDataInducteeShopCarousel","InducteeDataGridInductees","InducteeDataRelatedSearchTerms","InducteeLandingPrimaryCardCta","InducteeLandingNoResultsCta","InlineRedirectComponentItems","InlineRedirectComponent","InternalExternalCtaField","InternalCtaCta","InternalCta","IntroComponent","LabelsHoursLabels","LabelsPostTypeLabels","LabelsSoundPrompt","LabelsAriaLabelsFilterScroll","LabelsAriaLabels","LabelsNewsletterFormGlobalSuccess","LabelsNewsletterFormGlobal","LabelsListingInducteesCopyPerformer","LabelsListingInducteesCopyMusicalInfluence","LabelsListingInducteesCopyMusicalExcellence","LabelsListingInducteesCopyAhmetErtegunAward","LabelsListingInducteesCopy","LabelsCarouselClassesCta","LabelsEventPriceLabels","LabelsLocationLabels","LabelsConnectedInducteesMembers","LabelsConnectedInducteesGroups","LabelsConnectedInductees","ListComponentTextItemsCta","ListComponentTextItems","ListComponentLinkItemsCta","ListComponentLinkItems","ListComponent","ListInducteesComponentNomineesLink","ListInducteesComponentNominees","ListInducteesComponentCta","ListInducteesComponent","ListingEventsCta","ListingEvents","ListingEventsFullComponent","ListingPressReleasesComponent","LogosComponentLogos","LogosComponent","MilestonesComponentItems","MilestonesComponent","MusicExplorerComponentMusicExplorerAlbumItemsPlaylistCta","MusicExplorerComponentMusicExplorerAlbumItems","MusicExplorerComponent","NavigationSettingsFieldsTopLevelNavigationLink","NavigationSettingsFieldsTopLevelNavigationLinkGroupsImageLink","NavigationSettingsFieldsTopLevelNavigationLinkGroupsLinks","NavigationSettingsFieldsTopLevelNavigationLinkGroups","NavigationSettingsFieldsTopLevelNavigation","NavigationSettingsFieldsT
280icketsCta","NavigationSettingsFieldsMembershipLink","NavigationSettingsFieldsDonateLink","NavigationSettingsFieldsHostEventLink","NavigationSettingsFieldsSearchPlaceholders","PricingComponent","PrimaryHeroSlide","QuickLinksComponentLinks","QuickLinksComponent","QuoteComponent","QuoteCarouselComponentsItemsAttribution","QuoteCarouselComponentsItems","QuoteCarouselComponents","RhtvPageContentRrtvAriaLabels","RhtvVideoContentArtists","RichTextComponent","SearchPageDataNoResultsCta","SearchPageDataNoResults","SearchPageDataNoShopResultsCta","SearchPageDataNoShopResults","SearchPageDataShopCarousel","SectionEndComponent","CustomSettingsRedirects","CustomSettingsAddressAddressLines","CustomSettingsAddress","CustomSettingsDefaultIdpFeatureItems","CustomSettingsDefaultIdpFeature","CustomSettingsCeremonyHero","CustomSettingsCeremonyFloatSpotlight","CustomSettingsCeremonyFeatureItems","CustomSettingsCeremonyFeature","CustomSettingsPressReleaseFeatureItems","CustomSettingsPressReleaseFeature","CustomSettingsPressReleaseInducteesCta","SonicConnectionsFeatureItems","SonicConnectionsFeature","SonicConnectionsGridInducteesCta","SonicConnectionsGridInductees","FeatureDataSonicConnections","SonicConnectionsTracksImages","SonicConnectionsTracksBlurbs","SonicConnectionsTracks","SonicConnections","SpotlightComponentImages","SpotlightComponentHeadline","SpotlightComponentBody","SpotlightComponent","StickyNavComponentItems","StickyNavComponent","TextImageItemsCta","TextImageItemsSecondaryCta","TextImageItems","TextImage","TicketPriceFieldsPricingCta","TicketPriceFieldsPricing","TicketPriceFieldsTicketingMembersTicketLink","TicketPriceFieldsTicketingCta","TicketPriceFieldsTicketing","TicketingComponentTicketingFormDiscountedTickets","TicketingComponentTicketingForm","TitleComponent","VideoCarouselComponentVideos","VideoCarouselComponent","VideoSelectField","VideoComponentVideos","VideoComponent","VideoSingularComponentCta","VideoSingularComponent","WififormFormSuccess","WififormForm","Wifiform","FlexiblePageContentContentAccordionLayout","FlexiblePageContentContentArtifactSingularLayout","FlexiblePageContentContentBannerLayout","FlexiblePageContentContentCarouselInducteesLayout","FlexiblePageContentContentCarouselRhtvLayout","FlexiblePageContentContentCarouselShopLayout","FlexiblePageContentContentCarouselStoriesLayout","FlexiblePageContentContentComparisonTableLayout","FlexiblePageContentContentDetailHeroLayout","FlexiblePageContentContentDonateFormLayout","FlexiblePageContentContentFeatureLayout","FlexiblePageContentContentFeatureEventsLayout","FlexiblePageContentContentFeatureExhibitsInteractivesLayout","FlexiblePageContentContentFloatSpotlightLayout","FlexiblePageContentContentFormEmbedLayout","FlexiblePageContentContentGenericEmbedLayout","GoogleMapComponentFooter","FlexiblePageContentContentGoogleMapLayout","FlexiblePageContentContentGridInducteesLayout","FlexiblePageContentContentHeroLayout","FlexiblePageContentContentHoursManualLayout","IcongridFooter","FlexiblePageContentContentIconGridLayout","FlexiblePageContentContentImageGalleryLayout","ImageSingularComponentFooter","FlexiblePageContentContentImageSingularLayout","FlexiblePageContentContentInlineRedirectLayout","FlexiblePageContentContentIntroLayout","FlexiblePageContentContentListLayout","FlexiblePageContentContentListInducteesLayout","FlexiblePageContentContentEventsLayout","FlexiblePageContentContentListingEventsFullLayout","FlexiblePageContentContentListingPressReleasesLayout","FlexiblePageContentContentLogosLayout","MilestonesComponentFooter","FlexiblePageContentContentMilestonesLayout","FlexiblePageContentContentPricingLayout","FlexiblePageContentContentQuickLinksLayout","FlexiblePageContentContentQuoteCarouselLayout","FlexiblePageContentContentRichTextLayout","FlexiblePageContentContentSectionEndLayout","FlexiblePageContentContentStickyNavLayout","FlexiblePageContentContentTextImageLayout","FlexiblePageContentContentTicketingLayout","FlexiblePageContentContentTitleLayout","FlexiblePageContentContentVideoCarouselLayout","FlexiblePageContentContentVideoPlaylistLayout","FlexiblePageContentContentVideoSingularLayout","FlexiblePageContentContentWifiFormLayout","Digital
280ExhibitContentIntro","DigitalExhibitContentModulesCardGalleryLayout","DigitalExhibitContentModulesCarouselHighlightLayout","DigitalExhibitContentModulesBigTextLayout","DigitalExhibitContentModulesDeepDiveLayout","DigitalExhibitContentModulesMusicExplorerAlbumItems","DigitalExhibitContentModulesMusicExplorerLayout","DigitalExhibitContentPageEnderCta","DigitalExhibitContentPageEnderInductees","DigitalExhibitContentPageEnderShop","DigitalExhibitContentPageEnder"],"AcfFieldGroupFields":["AdminSettingsFields","CeremonyLanding","EventData","DetailHero","FlexiblePageContent","ExhibitData","InducteeData","CoverStoryLanding","InducteeLanding","RhtvPageContent","SearchPageData","TicketingComponent","GameData","FeatureData","RhtvChannelContent","RhtvVideoContent","DeepDiveFields","DigitalExhibitSettings","DigitalExhibitHero","DigitalExhibitContent","Hours","CoverStoryOptions","FooterSettingsFields","Labels","NavigationSettingsFields","CustomSettings","PressReleaseFields","TicketPriceFields","AccordionComponentAccordionsCta","AccordionComponentAccordions","AccordionComponentFooterCtas","AccordionComponentFooter","AccordionComponent","AdminSettingsFieldsPostTypeCategories","AdminSettingsFieldsPermanentRedirects","ArtifactPaperComponentArtifactPaperHeadline","ArtifactPaperComponentArtifactPaperBody","ArtifactPaperComponentCta","ArtifactPaperComponentImages","ArtifactPaperComponent","ArtifactComponentHeadlineLines","ArtifactComponentBody","ArtifactComponentCta","ArtifactComponentVideoEmbed","ArtifactComponent","AssetSelect","BannerComponentLink","BannerComponent","HoursMonthRangesDailyHoursSunday","HoursMonthRangesDailyHoursMonday","HoursMonthRangesDailyHoursTuesday","HoursMonthRangesDailyHoursWednesday","HoursMonthRangesDailyHoursThursday","HoursMonthRangesDailyHoursFriday","HoursMonthRangesDailyHoursSaturday","HoursMonthRangesDailyHours","HoursMonthRanges","HoursSpecialHoursSpecialDatesRelatedDates","HoursSpecialHoursSpecialDates","HoursSpecialHours","CarouselInducteesComponentCta","CarouselInducteesComponent","CarouselRockHallTvChannelsManualSlideLink","CarouselRockHallTvChannelsManualSlide","CarouselRockHallTvChannels","CarouselRockHallTvCta","CarouselRockHallTv","CarouselShopCta","CarouselShop","CarouselStoriesCta","CarouselStories","CeremonyLandingFeaturedHeroHeroLink","CeremonyLandingFeaturedHero","VideoComponentPrimaryVideo","CeremonyLandingMediaFlexibleContentVideoPlaylistLayout","CeremonyLandingMediaFlexibleContentVideoCarouselLayout","ImageGalleryComponentStandardHeader","ImageGalleryComponentTextHeaderCta","ImageGalleryComponentTextHeaderLineItems","ImageGalleryComponentTextHeader","CeremonyLandingMediaFlexibleContentImageGalleryLayout","CeremonyLandingAdditionalFlexibleContentCarouselShopLayout","FloatSpotlightCta","FloatSpotlightSecondaryCta","FloatSpotlightImages","CeremonyLandingAdditionalFlexibleContentFloatSpotlightLayout","CeremonyLandingAdditionalFlexibleContentTitleLayout","CeremonyLandingAdditionalFlexibleContentFeatureLayout","CeremonyLandingAdditionalFlexibleContentBannerLayout","ComparisonTableTableColumnHeaders","ComparisonTableTableRowsRowValues","ComparisonTableTableRows","ComparisonTableTableComparisonTableFooterCta","ComparisonTableTableComparisonTableFooterLinks","ComparisonTableTableComparisonTableFooter","ComparisonTableTable","ComparisonTable","GameDataArtistFeatureBody","GameDataArtistFeatureCta","GameDataArtistFeature","CoverStoryLandingCoverStoryHero","CoverStoryOptionsCoverStoryListLabels","CoverStoryOptionsHowToModalStepOne","CoverStoryOptionsHowToModalStepTwo","CoverStoryOptionsHowToModalStepThree","CoverStoryOptionsHowToModal","CoverStoryOptionsTileCount","CoverStoryOptionsCoverStoryEndScreenHeadline","CoverStoryOptionsCoverStoryEndScreenIncorrect","CoverStoryOptionsCoverStoryEndScreenTileTextTiles0","CoverStoryOptionsCoverStoryEndScreenTileTextTiles1","CoverStoryOptionsCoverStoryEndScreenTileTextTiles2Through4","CoverStoryOptionsCoverStoryEndScreenTileTextTiles5Through7","CoverStoryOptionsCoverStoryEndScreenTileTextTiles8Through10","CoverStoryOptionsCoverStoryEndScreenTileText","CoverStoryOptionsCoverStoryEndScreenButtonLabels","CoverStoryOptionsCoverStoryEndScreenBanner","CoverStoryOptionsAriaLabels","DeepDiveFieldsModuleImages","DeepDiveFieldsDrawerContentVideoLayout","DeepDiveFieldsDrawerContentImages","DeepDiveFieldsDrawerContentOutroLayout","DeepDiveFieldsDrawerContentQuoteLayout","DeepDiveFieldsDrawerContentGalleryItems","DeepDiveFieldsDrawerContentGalleryLayout","DetailHeroComponent","Digital
280ExhibitAccentComponent","DigitalExhibitBigTextComponentBackground","DigitalExhibitBigTextComponent","DigitalExhibitCardGalleryComponentCards","DigitalExhibitCardGalleryComponent","DigitalExhibitCarouselComponentItems","DigitalExhibitCarouselComponent","DigitalExhibitHeroComponentBackgroundDesktop","DigitalExhibitHeroComponentBackgroundMobile","DigitalExhibitHeroComponent","DigitalExhibitIntroComponent","DigitalExhibitKnockoutComponent","DigitalExhibitShareComponent","DonateFormComponentFormAmounts","DonateFormComponent","EventDataPrice","ExhibitDataExhibitMedia","FeatureItems","Feature","CarouseCta","Carouse","FeatureExhibitsInteractivesExhibitsManualExhibitLink","FeatureExhibitsInteractivesExhibitsManualExhibit","FeatureExhibitsInteractivesExhibits","FeatureExhibitsInteractivesCta","FeatureExhibitsInteractives","FloatSpotlight","FooterSettingsFieldsNewsletterFormForm","FooterSettingsFieldsNewsletterForm","FooterSettingsFieldsSocialLinks","FooterSettingsFieldsFindUsAddress","FooterSettingsFieldsFindUsPhone","FooterSettingsFieldsFindUsEmail","FooterSettingsFieldsFindUs","FooterSettingsFieldsFooterColumnsLinks","FooterSettingsFieldsFooterColumns","Formembed","GenericEmbedComponent","GoogleMapComponent","GridInducteesComponentCta","GridInducteesComponent","PrimaryHeroHeroLink","PrimaryHeroSlideHeroLink","PrimaryHeroAdditionalSlides","PrimaryHero","HighlightHeadlineField","HoursComponent","HoursManualComponentMonthRangesDayRows","HoursManualComponentMonthRanges","HoursManualComponentSpecialDatesDayRows","HoursManualComponentSpecialDates","HoursManualComponent","IcongridItemsCta","IcongridItems","Icongrid","ImageField","ImageGalleryComponentImages","ImageGalleryComponent","ImageSingularComponent","InducteeDataMembers","InducteeDataIntro","InducteeDataInducteeHeroHeadline","InducteeDataInducteeHero","InducteeDataInductionHeroSingleVideo","InducteeDataInductionHeroVideoPlaylistPrimaryVideo","InducteeDataInductionHeroVideoPlaylistVideos","InducteeDataInductionHeroVideoPlaylist","InducteeDataInductionHero","VideoCarouselComponentVideosVideoEmbed","InducteeDataInductionVideoCarouselVideos","InducteeDataInductionVideoCarousel","InducteeDataConnectedInductees","InducteeDataImpactHeroQuote","InducteeDataImpactHeroVideo","InducteeDataImpactHero","InducteeDataImpactFlexibleContentSlides","InducteeDataImpactFlexibleContentSoundExplorerLayout","InducteeDataImpactFlexibleContentArtifactSingularLayout","InducteeDataImpactFlexibleContentArtifactPaperLayout","SpotlightComponentVideo","InducteeDataImpactFlexibleContentSpotlightLayout","InducteeDataImpactFlexibleContentQuoteLayout","InducteeDataImpactFlexibleContentCta","InducteeDataImpactFlexibleContentHallOfFameEssayLayout","InducteeDataInducteeInfluenceInfluences","InducteeDataInducteeInfluenceInfluenced","InducteeDataInducteeInfluence","InducteeDataMembersSection","InducteeDataFeatureItems","InducteeDataFeature","InducteeDataInducteeShopCarousel","InducteeDataGridInductees","InducteeDataRelatedSearchTerms","InducteeLandingPrimaryCardCta","InducteeLandingNoResultsCta","InlineRedirectComponentItems","InlineRedirectComponent","InternalExternalCtaField","InternalCtaCta","InternalCta","IntroComponent","LabelsHoursLabels","LabelsPostTypeLabels","LabelsSoundPrompt","LabelsAriaLabelsFilterScroll","LabelsAriaLabels","LabelsNewsletterFormGlobalSuccess","LabelsNewsletterFormGlobal","LabelsListingInducteesCopyPerformer","LabelsListingInducteesCopyMusicalInfluence","LabelsListingInducteesCopyMusicalExcellence","LabelsListingInducteesCopyAhmetErtegunAward","LabelsListingInducteesCopy","LabelsCarouselClassesCta","LabelsEventPriceLabels","LabelsLocationLabels","LabelsConnectedInducteesMembers","LabelsConnectedInducteesGroups","LabelsConnectedInductees","ListComponentTextItemsCta","ListComponentTextItems","ListComponentLinkItemsCta","ListComponentLinkItems","ListComponent","ListInducteesComponentNomineesLink","ListInducteesComponentNominees","ListInducteesComponentCta","ListInducteesComponent","ListingEventsCta","ListingEvents","ListingEventsFullComponent","ListingPressReleasesComponent","LogosComponentLogos","LogosComponent","MilestonesComponentItems","MilestonesComponent","MusicExplorerComponentMusicExplorerAlbumItemsPlaylistCta","MusicExplorerComponentMusicExplorerAlbumItems","MusicExplorerComponent","NavigationSettingsFieldsTopLevelNavigationLink","NavigationSettingsFieldsTopLevelNavigationLinkGroupsImageLink","NavigationSettingsFieldsTopLevelNavigationLinkGroupsLinks","NavigationSettingsFieldsTopLevelNavigationLinkGroups","NavigationSettingsFieldsTopLevelNavigation","NavigationSettingsFieldsT
280icketsCta","NavigationSettingsFieldsMembershipLink","NavigationSettingsFieldsDonateLink","NavigationSettingsFieldsHostEventLink","NavigationSettingsFieldsSearchPlaceholders","PricingComponent","PrimaryHeroSlide","QuickLinksComponentLinks","QuickLinksComponent","QuoteComponent","QuoteCarouselComponentsItemsAttribution","QuoteCarouselComponentsItems","QuoteCarouselComponents","RhtvPageContentRrtvAriaLabels","RhtvVideoContentArtists","RichTextComponent","SearchPageDataNoResultsCta","SearchPageDataNoResults","SearchPageDataNoShopResultsCta","SearchPageDataNoShopResults","SearchPageDataShopCarousel","SectionEndComponent","CustomSettingsRedirects","CustomSettingsAddressAddressLines","CustomSettingsAddress","CustomSettingsDefaultIdpFeatureItems","CustomSettingsDefaultIdpFeature","CustomSettingsCeremonyHero","CustomSettingsCeremonyFloatSpotlight","CustomSettingsCeremonyFeatureItems","CustomSettingsCeremonyFeature","CustomSettingsPressReleaseFeatureItems","CustomSettingsPressReleaseFeature","CustomSettingsPressReleaseInducteesCta","SonicConnectionsFeatureItems","SonicConnectionsFeature","SonicConnectionsGridInducteesCta","SonicConnectionsGridInductees","FeatureDataSonicConnections","SonicConnectionsTracksImages","SonicConnectionsTracksBlurbs","SonicConnectionsTracks","SonicConnections","SpotlightComponentImages","SpotlightComponentHeadline","SpotlightComponentBody","SpotlightComponent","StickyNavComponentItems","StickyNavComponent","TextImageItemsCta","TextImageItemsSecondaryCta","TextImageItems","TextImage","TicketPriceFieldsPricingCta","TicketPriceFieldsPricing","TicketPriceFieldsTicketingMembersTicketLink","TicketPriceFieldsTicketingCta","TicketPriceFieldsTicketing","TicketingComponentTicketingFormDiscountedTickets","TicketingComponentTicketingForm","TitleComponent","VideoCarouselComponentVideos","VideoCarouselComponent","VideoSelectField","VideoComponentVideos","VideoComponent","VideoSingularComponentCta","VideoSingularComponent","WififormFormSuccess","WififormForm","Wifiform","FlexiblePageContentContentAccordionLayout","FlexiblePageContentContentArtifactSingularLayout","FlexiblePageContentContentBannerLayout","FlexiblePageContentContentCarouselInducteesLayout","FlexiblePageContentContentCarouselRhtvLayout","FlexiblePageContentContentCarouselShopLayout","FlexiblePageContentContentCarouselStoriesLayout","FlexiblePageContentContentComparisonTableLayout","FlexiblePageContentContentDetailHeroLayout","FlexiblePageContentContentDonateFormLayout","FlexiblePageContentContentFeatureLayout","FlexiblePageContentContentFeatureEventsLayout","FlexiblePageContentContentFeatureExhibitsInteractivesLayout","FlexiblePageContentContentFloatSpotlightLayout","FlexiblePageContentContentFormEmbedLayout","FlexiblePageContentContentGenericEmbedLayout","GoogleMapComponentFooter","FlexiblePageContentContentGoogleMapLayout","FlexiblePageContentContentGridInducteesLayout","FlexiblePageContentContentHeroLayout","FlexiblePageContentContentHoursManualLayout","IcongridFooter","FlexiblePageContentContentIconGridLayout","FlexiblePageContentContentImageGalleryLayout","ImageSingularComponentFooter","FlexiblePageContentContentImageSingularLayout","FlexiblePageContentContentInlineRedirectLayout","FlexiblePageContentContentIntroLayout","FlexiblePageContentContentListLayout","FlexiblePageContentContentListInducteesLayout","FlexiblePageContentContentEventsLayout","FlexiblePageContentContentListingEventsFullLayout","FlexiblePageContentContentListingPressReleasesLayout","FlexiblePageContentContentLogosLayout","MilestonesComponentFooter","FlexiblePageContentContentMilestonesLayout","FlexiblePageContentContentPricingLayout","FlexiblePageContentContentQuickLinksLayout","FlexiblePageContentContentQuoteCarouselLayout","FlexiblePageContentContentRichTextLayout","FlexiblePageContentContentSectionEndLayout","FlexiblePageContentContentStickyNavLayout","FlexiblePageContentContentTextImageLayout","FlexiblePageContentContentTicketingLayout","FlexiblePageContentContentTitleLayout","FlexiblePageContentContentVideoCarouselLayout","FlexiblePageContentContentVideoPlaylistLayout","FlexiblePageContentContentVideoSingularLayout","FlexiblePageContentContentWifiFormLayout","Digital
280ExhibitContentIntro","DigitalExhibitContentModulesCardGalleryLayout","DigitalExhibitContentModulesCarouselHighlightLayout","DigitalExhibitContentModulesBigTextLayout","DigitalExhibitContentModulesDeepDiveLayout","DigitalExhibitContentModulesMusicExplorerAlbumItems","DigitalExhibitContentModulesMusicExplorerLayout","DigitalExhibitContentPageEnderCta","DigitalExhibitContentPageEnderInductees","DigitalExhibitContentPageEnderShop","DigitalExhibitContentPageEnder"],"ContentNodeConnection":["AcfContentNodeConnection","ContentTypeToContentNodeConnection","HierarchicalContentNodeToContentNodeAncestorsConnection","HierarchicalContentNodeToContentNodeChildrenConnection","PageCategoryToContentNodeConnection","EventTypeToContentNodeConnection","ExhibitTypeToContentNodeConnection","InducteeClassToContentNodeConnection","CategoryToContentNodeConnection","PostFormatToContentNodeConnection","TagToContentNodeConnection","UserToRevisionsConnection","RootQueryToContentNodeConnection","GraphqlDocumentGroupToContentNodeConnection","RootQueryToRevisionsConnection"],"Connection":["AcfContentNodeConnection","ContentTypeToTaxonomyConnection","TaxonomyToContentTypeConnection","TaxonomyToTermNodeConnection","TermNodeToEnqueuedScriptConnection","TermNodeToEnqueuedStylesheetConnection","ContentTypeToContentNodeConnection","UserToCommentConnection","CommentToCommentConnection","UserToEnqueuedScriptConnection","UserToEnqueuedStylesheetConnection","UserToMediaItemConnection","HierarchicalContentNodeToContentNodeAncestorsConnection","HierarchicalContentNodeToContentNodeChildrenConnection","ContentNodeToEnqueuedScriptConnection","ContentNodeToEnqueuedStylesheetConnection","PageCategoryToCeremonyConnection","CeremonyToCeremonyConnection","CeremonyToPageCategoryConnection","CeremonyToTermNodeConnection","PageCategoryToContentNodeConnection","PageCategoryToEventConnection","AcfTermNodeConnection","EventToEventConnection","EventToEventTypeConnection","EventTypeToContentNodeConnection","EventTypeToEventConnection","EventToPageCategoryConnection","EventToTermNodeConnection","PageCategoryToExhibitConnection","ExhibitToExhibitConnection","ExhibitToExhibitTypeConnection","ExhibitTypeToContentNodeConnection","ExhibitTypeToExhibitConnection","ExhibitToPageCategoryConnection","ExhibitToTermNodeConnection","PageCategoryToInducteeConnection","InducteeToInducteeConnection","InducteeToInducteeClassConnection","InducteeClassToContentNodeConnection","InducteeClassToInducteeConnection","InducteeToPageCategoryConnection","InducteeToTermNodeConnection","PageCategoryToPageConnection","CoverStoryToCoverStoryConnection","RootQueryToInducteeConnection","PageToPageCategoryConnection","PageToRevisionConnection","PageToTermNodeConnection","PageCategoryToPostConnection","PostToPostConnection","PostToCategoryConnection","CategoryToAncestorsCategoryConnection","CategoryToCategoryConnection","CategoryToContentNodeConnection","CategoryToPostConnection","PostToPageCategoryConnection","PostToPostFormatConnection","PostFormatToContentNodeConnection","PostFormatToPostConnection","PostToRevisionConnection","PostToTagConnection","TagToContentNodeConnection","TagToPostConnection","PostToTermNodeConnection","PageCategoryToRhtvChannelConnection","RhtvChannelToRhtvChannelConnection","RhtvChannelToPageCategoryConnection","RhtvChannelToTermNodeConnection","PageCategoryToRhtvVideoConnection","RhtvVideoToRhtvVideoConnection","RhtvVideoToPageCategoryConnection","RhtvVideoToTermNodeConnection","UserToPageConnection","UserToPostConnection","UserToRevisionsConnection","UserToUserRoleConnection","RootQueryToCategoryConnection","RootQueryToCeremonyConnection","RootQueryToCommentConnection","RootQueryToContentNodeConnection","RootQueryToContentTypeConnection","RootQueryToCoverStoryConnection","DeepDiveToDeepDiveConnection","RootQueryToDeepDiveConnection","DigitalExhibitToDigitalExhibitConnection","RootQueryToDigitalExhibitConnection","RootQueryToEventTypeConnection","RootQueryToEventConnection","RootQueryToExhibitTypeConnection","RootQueryToExhibitConnection","GraphqlDocumentToGraphqlDocumentConnection","GraphqlDocumentToGraphqlDocumentGroupConnection","GraphqlDocumentGroupToContentNodeConnection","GraphqlDocumentGroupToGraphqlDocumentConnection","GraphqlDocumentToTermNodeConnection","RootQueryToGraphqlDocumentGroupConnection","RootQueryToGraphqlDocumentConnection","RootQueryToInducteeClassConnection","OptionToOptionConnection","RootQueryToMediaItemConnection","MenuToMenuItemConnection","MenuItemToMenuItemConnection","PressReleaseToPressReleaseConnection","TicketPriceToTicketPriceConnection","RootQueryToMenuItemConnection","RootQueryToMenuConnection","RootQueryToOptionConnection","RootQueryToPageCategoryConnection","RootQueryToPageConnection","RootQueryToPluginConnection","RootQueryToPostFormatConnection","RootQueryToPostConnection","RootQueryToPressReleaseConnection","RootQueryToEnqueuedScriptConnection","RootQueryToEnqueuedStylesheetConnection","RootQueryToRevisionsConnection","RootQueryToRhtvChannelConnection","RootQueryToRhtvVideoConnection","RootQueryToTagConnection","RootQueryToTaxonomyConnection","RootQueryToTermNodeConnection","RootQueryToThemeConnection","RootQueryToTicketPriceConnection","RootQueryToUserRoleConnection","RootQueryToUserConnection"],"Edge":["ContentNodeToContentTypeConnectionEdge","TaxonomyToContentTypeConnectionEdge","TermNodeToEnqueuedScriptConnectionEdge","TermNodeToEnqueuedStylesheetConnectionEdge","TaxonomyToTermNodeConnectionEdge","ContentTypeToTaxonomyConnectionEdge","ContentTypeToContentNodeConnectionEdge","ContentNodeToEditLockConnectionEdge","CommentToCommenterConnectionEdge","CommentToContentNodeConnectionEdge","CommentToParentCommentConnectionEdge","CommentToCommentConnectionEdge","UserToCommentConnectionEdge","UserToEnqueuedScriptConnectionEdge","UserToEnqueuedStylesheetConnectionEdge","NodeWithAuthorToUserConnectionEdge","HierarchicalContentNodeToContentNodeAncestorsConnectionEdge","HierarchicalContentNodeToContentNodeChildrenConnectionEdge","ContentNodeToEnqueuedScriptConnectionEdge","ContentNodeToEnqueuedStylesheetConnectionEdge","ContentNodeToEditLastConnectionEdge","AcfMediaItemConnectionEdge","AcfContentNodeConnectionEdge","CeremonyToCeremonyConnectionEdge","CeremonyToPageCategoryConnectionEdge","CeremonyToParentConnectionEdge","CeremonyToPreviewConnectionEdge","CeremonyToTermNodeConnectionEdge","PageCategoryToCeremonyConnectionEdge","PageCategoryToContentNodeConnectionEdge","NodeWithFeaturedImageToMediaItemConnectionEdge","AcfTermNodeConnectionEdge","EventToEventConnectionEdge","EventTypeToContentNodeConnectionEdge","EventTypeToEventConnectionEdge","EventTypeToTaxonomyConnectionEdge","EventToEventTypeConnectionEdge","EventToPageCategoryConnectionEdge","EventToParentConnectionEdge","EventToPreviewConnectionEdge","EventToTermNodeConnectionEdge","PageCategoryToEventConnectionEdge","ExhibitToExhibitConnectionEdge","ExhibitTypeToContentNodeConnectionEdge","ExhibitTypeToExhibitConnectionEdge","ExhibitTypeToTaxonomyConnectionEdge","ExhibitToExhibitTypeConnectionEdge","ExhibitToPageCategoryConnectionEdge","ExhibitToParentConnectionEdge","ExhibitToPreviewConnectionEdge","ExhibitToTermNodeConnectionEdge","PageCategoryToExhibitConnectionEdge","InducteeToInducteeConnectionEdge","InducteeClassToContentNodeConnectionEdge","InducteeClassToInducteeConnectionEdge","InducteeClassToTaxonomyConnectionEdge","InducteeToInducteeClassConnectionEdge","InducteeToPageCategoryConnectionEdge","InducteeToParentConnectionEdge","InducteeToPreviewConnectionEdge","InducteeToTermNodeConnectionEdge","PageCategoryToInducteeConnectionEdge","NodeWithRevisionsToContentNodeConnectionEdge","CoverStoryToCoverStoryConnectionEdge","CoverStoryToParentConnectionEdge","CoverStoryToPreviewConnectionEdge","RootQueryToInducteeConnectionEdge","PageToPageCategoryConnectionEdge","HierarchicalContentNodeToParentContentNodeConnectionEdge","PageToPreviewConnectionEdge","PageToRevisionConnectionEdge","PageToTermNodeConnectionEdge","PageCategoryToPageConnectionEdge","PostToPostConnectionEdge","CategoryToAncestorsCategoryConnectionEdge","CategoryToCategoryConnectionEdge","CategoryToContentNodeConnectionEdge","CategoryToParentCategoryConnectionEdge","CategoryToPostConnectionEdge","CategoryToTaxonomyConnectionEdge","PostToCategoryConnectionEdge","PostToPageCategoryConnectionEdge","PostToParentConnectionEdge","PostFormatToContentNodeConnectionEdge","PostFormatToPostConnectionEdge","PostFormatToTaxonomyConnectionEdge","PostToPostFormatConnectionEdge","PostToPreviewConnectionEdge","PostToRevisionConnectionEdge","TagToContentNodeConnectionEdge","TagToPostConnectionEdge","TagToTaxonomyConnectionEdge","PostToTagConnectionEdge","PostToTermNodeConnectionEdge","PageCategoryToPostConnectionEdge","RhtvChannelToRhtvChannelConnectionEdge","RhtvChannelToPageCategoryConnectionEdge","RhtvChannelToParentConnectionEdge","RhtvChannelToPreviewConnectionEdge","RhtvChannelToTermNodeConnectionEdge","PageCategoryToRhtvChannelConnectionEdge","RhtvVideoToRhtvVideoConnectionEdge","RhtvVideoToPageCategoryConnectionEdge","RhtvVideoToParentConnectionEdge","RhtvVideoToPreviewConnectionEdge","RhtvVideoToTermNodeConnectionEdge","PageCategoryToRhtvVideoConnectionEdge","PageCategoryToTaxonomyConnectionEdge","UserToMediaItemConnectionEdge","UserToPageConnectionEdge","UserToPostConnectionEdge","UserToRevisionsConnectionEdge","UserToUserRoleConnectionEdge","RootQueryToCategoryConnectionEdge","RootQueryToCeremonyConnectionEdge","RootQueryToCommentConnectionEdge","RootQueryToContentNodeConnectionEdge","RootQueryToContentTypeConnectionEdge","RootQueryToCoverStoryConnectionEdge","DeepDiveToDeepDiveConnectionEdge","DeepDiveToParentConnectionEdge","DeepDiveToPreviewConnectionEdge","RootQueryToDeepDiveConnectionEdge","Digital
280ExhibitToDigitalExhibitConnectionEdge","DigitalExhibitToParentConnectionEdge","DigitalExhibitToPreviewConnectionEdge","RootQueryToDigitalExhibitConnectionEdge","RootQueryToEventTypeConnectionEdge","RootQueryToEventConnectionEdge","RootQueryToExhibitTypeConnectionEdge","RootQueryToExhibitConnectionEdge","GraphqlDocumentToGraphqlDocumentConnectionEdge","GraphqlDocumentGroupToContentNodeConnectionEdge","GraphqlDocumentGroupToGraphqlDocumentConnectionEdge","GraphqlDocumentGroupToTaxonomyConnectionEdge","GraphqlDocumentToGraphqlDocumentGroupConnectionEdge","GraphqlDocumentToParentConnectionEdge","GraphqlDocumentToPreviewConnectionEdge","GraphqlDocumentToTermNodeConnectionEdge","RootQueryToGraphqlDocumentGroupConnectionEdge","RootQueryToGraphqlDocumentConnectionEdge","RootQueryToInducteeClassConnectionEdge","OptionToOptionConnectionEdge","OptionToParentConnectionEdge","OptionToPreviewConnectionEdge","RootQueryToMediaItemConnectionEdge","MenuItemToMenuItemConnectionEdge","MenuItemToMenuItemLinkableConnectionEdge","PressReleaseToPressReleaseConnectionEdge","PressReleaseToParentConnectionEdge","PressReleaseToPreviewConnectionEdge","TicketPriceToTicketPriceConnectionEdge","TicketPriceToParentConnectionEdge","TicketPriceToPreviewConnectionEdge","MenuItemToMenuConnectionEdge","MenuToMenuItemConnectionEdge","RootQueryToMenuItemConnectionEdge","RootQueryToMenuConnectionEdge","RootQueryToOptionConnectionEdge","RootQueryToPageCategoryConnectionEdge","RootQueryToPageConnectionEdge","RootQueryToPluginConnectionEdge","RootQueryToPostFormatConnectionEdge","RootQueryToPostConnectionEdge","RootQueryToPressReleaseConnectionEdge","RootQueryToEnqueuedScriptConnectionEdge","RootQueryToEnqueuedStylesheetConnectionEdge","RootQueryToRevisionsConnectionEdge","RootQueryToRhtvChannelConnectionEdge","RootQueryToRhtvVideoConnectionEdge","RootQueryToTagConnectionEdge","RootQueryToTaxonomyConnectionEdge","RootQueryToTermNodeConnectionEdge","RootQueryToThemeConnectionEdge","RootQueryToTicketPriceConnectionEdge","RootQueryToUserRoleConnectionEdge","RootQueryToUserConnectionEdge"],"PageInfo":["TaxonomyToContentTypeConnectionPageInfo","TermNodeToEnqueuedScriptConnectionPageInfo","TermNodeToEnqueuedStylesheetConnectionPageInfo","TaxonomyToTermNodeConnectionPageInfo","ContentTypeToTaxonomyConnectionPageInfo","ContentTypeToContentNodeConnectionPageInfo","CommentToCommentConnectionPageInfo","UserToCommentConnectionPageInfo","UserToEnqueuedScriptConnectionPageInfo","UserToEnqueuedStylesheetConnectionPageInfo","HierarchicalContentNodeToContentNodeAncestorsConnectionPageInfo","HierarchicalContentNodeToContentNodeChildrenConnectionPageInfo","ContentNodeToEnqueuedScriptConnectionPageInfo","ContentNodeToEnqueuedStylesheetConnectionPageInfo","CeremonyToCeremonyConnectionPageInfo","CeremonyToPageCategoryConnectionPageInfo","CeremonyToTermNodeConnectionPageInfo","PageCategoryToCeremonyConnectionPageInfo","PageCategoryToContentNodeConnectionPageInfo","AcfTermNodeConnectionPageInfo","EventToEventConnectionPageInfo","EventTypeToContentNodeConnectionPageInfo","EventTypeToEventConnectionPageInfo","EventToEventTypeConnectionPageInfo","EventToPageCategoryConnectionPageInfo","EventToTermNodeConnectionPageInfo","PageCategoryToEventConnectionPageInfo","ExhibitToExhibitConnectionPageInfo","ExhibitTypeToContentNodeConnectionPageInfo","ExhibitTypeToExhibitConnectionPageInfo","ExhibitToExhibitTypeConnectionPageInfo","ExhibitToPageCategoryConnectionPageInfo","ExhibitToTermNodeConnectionPageInfo","PageCategoryToExhibitConnectionPageInfo","InducteeToInducteeConnectionPageInfo","InducteeClassToContentNodeConnectionPageInfo","InducteeClassToInducteeConnectionPageInfo","InducteeToInducteeClassConnectionPageInfo","InducteeToPageCategoryConnectionPageInfo","InducteeToTermNodeConnectionPageInfo","PageCategoryToInducteeConnectionPageInfo","CoverStoryToCoverStoryConnectionPageInfo","RootQueryToInducteeConnectionPageInfo","PageToPageCategoryConnectionPageInfo","PageToRevisionConnectionPageInfo","PageToTermNodeConnectionPageInfo","PageCategoryToPageConnectionPageInfo","PostToPostConnectionPageInfo","CategoryToAncestorsCategoryConnectionPageInfo","CategoryToCategoryConnectionPageInfo","CategoryToContentNodeConnectionPageInfo","CategoryToPostConnectionPageInfo","PostToCategoryConnectionPageInfo","PostToPageCategoryConnectionPageInfo","PostFormatToContentNodeConnectionPageInfo","PostFormatToPostConnectionPageInfo","PostToPostFormatConnectionPageInfo","PostToRevisionConnectionPageInfo","TagToContentNodeConnectionPageInfo","TagToPostConnectionPageInfo","PostToTagConnectionPageInfo","PostToTermNodeConnectionPageInfo","PageCategoryToPostConnectionPageInfo","RhtvChannelToRhtvChannelConnectionPageInfo","RhtvChannelToPageCategoryConnectionPageInfo","RhtvChannelToTermNodeConnectionPageInfo","PageCategoryToRhtvChannelConnectionPageInfo","RhtvVideoToRhtvVideoConnectionPageInfo","RhtvVideoToPageCategoryConnectionPageInfo","RhtvVideoToTermNodeConnectionPageInfo","PageCategoryToRhtvVideoConnectionPageInfo","UserToMediaItemConnectionPageInfo","UserToPageConnectionPageInfo","UserToPostConnectionPageInfo","UserToRevisionsConnectionPageInfo","UserToUserRoleConnectionPageInfo","AcfContentNodeConnectionPageInfo","RootQueryToCategoryConnectionPageInfo","RootQueryToCeremonyConnectionPageInfo","RootQueryToCommentConnectionPageInfo","RootQueryToContentNodeConnectionPageInfo","RootQueryToContentTypeConnectionPageInfo","RootQueryToCoverStoryConnectionPageInfo","DeepDiveToDeepDiveConnectionPageInfo","RootQueryToDeepDiveConnectionPageInfo","Digital
280ExhibitToDigitalExhibitConnectionPageInfo","RootQueryToDigitalExhibitConnectionPageInfo","RootQueryToEventTypeConnectionPageInfo","RootQueryToEventConnectionPageInfo","RootQueryToExhibitTypeConnectionPageInfo","RootQueryToExhibitConnectionPageInfo","GraphqlDocumentToGraphqlDocumentConnectionPageInfo","GraphqlDocumentGroupToContentNodeConnectionPageInfo","GraphqlDocumentGroupToGraphqlDocumentConnectionPageInfo","GraphqlDocumentToGraphqlDocumentGroupConnectionPageInfo","GraphqlDocumentToTermNodeConnectionPageInfo","RootQueryToGraphqlDocumentGroupConnectionPageInfo","RootQueryToGraphqlDocumentConnectionPageInfo","RootQueryToInducteeClassConnectionPageInfo","OptionToOptionConnectionPageInfo","RootQueryToMediaItemConnectionPageInfo","MenuItemToMenuItemConnectionPageInfo","PressReleaseToPressReleaseConnectionPageInfo","TicketPriceToTicketPriceConnectionPageInfo","MenuToMenuItemConnectionPageInfo","RootQueryToMenuItemConnectionPageInfo","RootQueryToMenuConnectionPageInfo","RootQueryToOptionConnectionPageInfo","RootQueryToPageCategoryConnectionPageInfo","RootQueryToPageConnectionPageInfo","RootQueryToPluginConnectionPageInfo","RootQueryToPostFormatConnectionPageInfo","RootQueryToPostConnectionPageInfo","RootQueryToPressReleaseConnectionPageInfo","RootQueryToEnqueuedScriptConnectionPageInfo","RootQueryToEnqueuedStylesheetConnectionPageInfo","RootQueryToRevisionsConnectionPageInfo","RootQueryToRhtvChannelConnectionPageInfo","RootQueryToRhtvVideoConnectionPageInfo","RootQueryToTagConnectionPageInfo","RootQueryToTaxonomyConnectionPageInfo","RootQueryToTermNodeConnectionPageInfo","RootQueryToThemeConnectionPageInfo","RootQueryToTicketPriceConnectionPageInfo","RootQueryToUserRoleConnectionPageInfo","RootQueryToUserConnectionPageInfo"],"ContentNodeConnectionEdge":["ContentTypeToContentNodeConnectionEdge","CommentToContentNodeConnectionEdge","HierarchicalContentNodeToContentNodeAncestorsConnectionEdge","HierarchicalContentNodeToContentNodeChildrenConnectionEdge","AcfContentNodeConnectionEdge","PageCategoryToContentNodeConnectionEdge","EventTypeToContentNodeConnectionEdge","ExhibitTypeToContentNodeConnectionEdge","InducteeClassToContentNodeConnectionEdge","NodeWithRevisionsToContentNodeConnectionEdge","HierarchicalContentNodeToParentContentNodeConnectionEdge","CategoryToContentNodeConnectionEdge","PostFormatToContentNodeConnectionEdge","TagToContentNodeConnectionEdge","UserToRevisionsConnectionEdge","RootQueryToContentNodeConnectionEdge","GraphqlDocumentGroupToContentNodeConnectionEdge","RootQueryToRevisionsConnectionEdge"],"ContentNode":["MediaItem","Ceremony","Event","Exhibit","Inductee","Page","CoverStory","Post","RhtvChannel","RhtvVideo","DeepDive","DigitalExhibit","GraphqlDocument","Option","PressRelease","TicketPrice"],"UniformResourceIdentifiable":["ContentType","User","Comment","MediaItem","PageCategory","Ceremony","Event","EventType","Exhibit","ExhibitType","Inductee","InducteeClass","Page","CoverStory","Post","Category","PostFormat","Tag","RhtvChannel","RhtvVideo","DeepDive","DigitalExhibit","GraphqlDocument","GraphqlDocumentGroup","Option","PressRelease","TicketPrice"],"OneToOneConnection":["ContentNodeToContentTypeConnectionEdge","ContentNodeToEditLockConnectionEdge","CommentToCommenterConnectionEdge","CommentToContentNodeConnectionEdge","CommentToParentCommentConnectionEdge","NodeWithAuthorToUserConnectionEdge","ContentNodeToEditLastConnectionEdge","AcfMediaItemConnectionEdge","AcfContentNodeConnectionEdge","CeremonyToParentConnectionEdge","CeremonyToPreviewConnectionEdge","NodeWithFeaturedImageToMediaItemConnectionEdge","EventTypeToTaxonomyConnectionEdge","EventToParentConnectionEdge","EventToPreviewConnectionEdge","ExhibitTypeToTaxonomyConnectionEdge","ExhibitToParentConnectionEdge","ExhibitToPreviewConnectionEdge","InducteeClassToTaxonomyConnectionEdge","InducteeToParentConnectionEdge","InducteeToPreviewConnectionEdge","NodeWithRevisionsToContentNodeConnectionEdge","CoverStoryToParentConnectionEdge","CoverStoryToPreviewConnectionEdge","HierarchicalContentNodeToParentContentNodeConnectionEdge","PageToPreviewConnectionEdge","CategoryToParentCategoryConnectionEdge","CategoryToTaxonomyConnectionEdge","PostToParentConnectionEdge","PostFormatToTaxonomyConnectionEdge","PostToPreviewConnectionEdge","TagToTaxonomyConnectionEdge","RhtvChannelToParentConnectionEdge","RhtvChannelToPreviewConnectionEdge","RhtvVideoToParentConnectionEdge","RhtvVideoToPreviewConnectionEdge","PageCategoryToTaxonomyConnectionEdge","DeepDiveToParentConnectionEdge","DeepDiveToPreviewConnectionEdge","Digital
280ExhibitToParentConnectionEdge","DigitalExhibitToPreviewConnectionEdge","GraphqlDocumentGroupToTaxonomyConnectionEdge","GraphqlDocumentToParentConnectionEdge","GraphqlDocumentToPreviewConnectionEdge","OptionToParentConnectionEdge","OptionToPreviewConnectionEdge","MenuItemToMenuItemLinkableConnectionEdge","PressReleaseToParentConnectionEdge","PressReleaseToPreviewConnectionEdge","TicketPriceToParentConnectionEdge","TicketPriceToPreviewConnectionEdge","MenuItemToMenuConnectionEdge"],"ContentTypeConnectionEdge":["ContentNodeToContentTypeConnectionEdge","TaxonomyToContentTypeConnectionEdge","RootQueryToContentTypeConnectionEdge"],"TaxonomyConnection":["ContentTypeToTaxonomyConnection","RootQueryToTaxonomyConnection"],"TaxonomyConnectionEdge":["ContentTypeToTaxonomyConnectionEdge","EventTypeToTaxonomyConnectionEdge","ExhibitTypeToTaxonomyConnectionEdge","InducteeClassToTaxonomyConnectionEdge","CategoryToTaxonomyConnectionEdge","PostFormatToTaxonomyConnectionEdge","TagToTaxonomyConnectionEdge","PageCategoryToTaxonomyConnectionEdge","GraphqlDocumentGroupToTaxonomyConnectionEdge","RootQueryToTaxonomyConnectionEdge"],"ContentTypeConnection":["TaxonomyToContentTypeConnection","RootQueryToContentTypeConnection"],"ContentTypeConnectionPageInfo":["TaxonomyToContentTypeConnectionPageInfo","RootQueryToContentTypeConnectionPageInfo"],"WPPageInfo":["TaxonomyToContentTypeConnectionPageInfo","TermNodeToEnqueuedScriptConnectionPageInfo","TermNodeToEnqueuedStylesheetConnectionPageInfo","TaxonomyToTermNodeConnectionPageInfo","ContentTypeToTaxonomyConnectionPageInfo","ContentTypeToContentNodeConnectionPageInfo","CommentToCommentConnectionPageInfo","UserToCommentConnectionPageInfo","UserToEnqueuedScriptConnectionPageInfo","UserToEnqueuedStylesheetConnectionPageInfo","HierarchicalContentNodeToContentNodeAncestorsConnectionPageInfo","HierarchicalContentNodeToContentNodeChildrenConnectionPageInfo","ContentNodeToEnqueuedScriptConnectionPageInfo","ContentNodeToEnqueuedStylesheetConnectionPageInfo","CeremonyToCeremonyConnectionPageInfo","CeremonyToPageCategoryConnectionPageInfo","CeremonyToTermNodeConnectionPageInfo","PageCategoryToCeremonyConnectionPageInfo","PageCategoryToContentNodeConnectionPageInfo","AcfTermNodeConnectionPageInfo","EventToEventConnectionPageInfo","EventTypeToContentNodeConnectionPageInfo","EventTypeToEventConnectionPageInfo","EventToEventTypeConnectionPageInfo","EventToPageCategoryConnectionPageInfo","EventToTermNodeConnectionPageInfo","PageCategoryToEventConnectionPageInfo","ExhibitToExhibitConnectionPageInfo","ExhibitTypeToContentNodeConnectionPageInfo","ExhibitTypeToExhibitConnectionPageInfo","ExhibitToExhibitTypeConnectionPageInfo","ExhibitToPageCategoryConnectionPageInfo","ExhibitToTermNodeConnectionPageInfo","PageCategoryToExhibitConnectionPageInfo","InducteeToInducteeConnectionPageInfo","InducteeClassToContentNodeConnectionPageInfo","InducteeClassToInducteeConnectionPageInfo","InducteeToInducteeClassConnectionPageInfo","InducteeToPageCategoryConnectionPageInfo","InducteeToTermNodeConnectionPageInfo","PageCategoryToInducteeConnectionPageInfo","CoverStoryToCoverStoryConnectionPageInfo","RootQueryToInducteeConnectionPageInfo","PageToPageCategoryConnectionPageInfo","PageToRevisionConnectionPageInfo","PageToTermNodeConnectionPageInfo","PageCategoryToPageConnectionPageInfo","PostToPostConnectionPageInfo","CategoryToAncestorsCategoryConnectionPageInfo","CategoryToCategoryConnectionPageInfo","CategoryToContentNodeConnectionPageInfo","CategoryToPostConnectionPageInfo","PostToCategoryConnectionPageInfo","PostToPageCategoryConnectionPageInfo","PostFormatToContentNodeConnectionPageInfo","PostFormatToPostConnectionPageInfo","PostToPostFormatConnectionPageInfo","PostToRevisionConnectionPageInfo","TagToContentNodeConnectionPageInfo","TagToPostConnectionPageInfo","PostToTagConnectionPageInfo","PostToTermNodeConnectionPageInfo","PageCategoryToPostConnectionPageInfo","RhtvChannelToRhtvChannelConnectionPageInfo","RhtvChannelToPageCategoryConnectionPageInfo","RhtvChannelToTermNodeConnectionPageInfo","PageCategoryToRhtvChannelConnectionPageInfo","RhtvVideoToRhtvVideoConnectionPageInfo","RhtvVideoToPageCategoryConnectionPageInfo","RhtvVideoToTermNodeConnectionPageInfo","PageCategoryToRhtvVideoConnectionPageInfo","UserToMediaItemConnectionPageInfo","UserToPageConnectionPageInfo","UserToPostConnectionPageInfo","UserToRevisionsConnectionPageInfo","UserToUserRoleConnectionPageInfo","AcfContentNodeConnectionPageInfo","RootQueryToCategoryConnectionPageInfo","RootQueryToCeremonyConnectionPageInfo","RootQueryToCommentConnectionPageInfo","RootQueryToContentNodeConnectionPageInfo","RootQueryToContentTypeConnectionPageInfo","RootQueryToCoverStoryConnectionPageInfo","DeepDiveToDeepDiveConnectionPageInfo","RootQueryToDeepDiveConnectionPageInfo","Digital
280ExhibitToDigitalExhibitConnectionPageInfo","RootQueryToDigitalExhibitConnectionPageInfo","RootQueryToEventTypeConnectionPageInfo","RootQueryToEventConnectionPageInfo","RootQueryToExhibitTypeConnectionPageInfo","RootQueryToExhibitConnectionPageInfo","GraphqlDocumentToGraphqlDocumentConnectionPageInfo","GraphqlDocumentGroupToContentNodeConnectionPageInfo","GraphqlDocumentGroupToGraphqlDocumentConnectionPageInfo","GraphqlDocumentToGraphqlDocumentGroupConnectionPageInfo","GraphqlDocumentToTermNodeConnectionPageInfo","RootQueryToGraphqlDocumentGroupConnectionPageInfo","RootQueryToGraphqlDocumentConnectionPageInfo","RootQueryToInducteeClassConnectionPageInfo","OptionToOptionConnectionPageInfo","RootQueryToMediaItemConnectionPageInfo","MenuItemToMenuItemConnectionPageInfo","PressReleaseToPressReleaseConnectionPageInfo","TicketPriceToTicketPriceConnectionPageInfo","MenuToMenuItemConnectionPageInfo","RootQueryToMenuItemConnectionPageInfo","RootQueryToMenuConnectionPageInfo","RootQueryToOptionConnectionPageInfo","RootQueryToPageCategoryConnectionPageInfo","RootQueryToPageConnectionPageInfo","RootQueryToPluginConnectionPageInfo","RootQueryToPostFormatConnectionPageInfo","RootQueryToPostConnectionPageInfo","RootQueryToPressReleaseConnectionPageInfo","RootQueryToEnqueuedScriptConnectionPageInfo","RootQueryToEnqueuedStylesheetConnectionPageInfo","RootQueryToRevisionsConnectionPageInfo","RootQueryToRhtvChannelConnectionPageInfo","RootQueryToRhtvVideoConnectionPageInfo","RootQueryToTagConnectionPageInfo","RootQueryToTaxonomyConnectionPageInfo","RootQueryToTermNodeConnectionPageInfo","RootQueryToThemeConnectionPageInfo","RootQueryToTicketPriceConnectionPageInfo","RootQueryToUserRoleConnectionPageInfo","RootQueryToUserConnectionPageInfo"],"TermNodeConnection":["TaxonomyToTermNodeConnection","CeremonyToTermNodeConnection","AcfTermNodeConnection","EventToTermNodeConnection","ExhibitToTermNodeConnection","InducteeToTermNodeConnection","PageToTermNodeConnection","PostToTermNodeConnection","RhtvChannelToTermNodeConnection","RhtvVideoToTermNodeConnection","GraphqlDocumentToTermNodeConnection","RootQueryToTermNodeConnection"],"TermNodeConnectionEdge":["TaxonomyToTermNodeConnectionEdge","CeremonyToTermNodeConnectionEdge","AcfTermNodeConnectionEdge","EventToTermNodeConnectionEdge","ExhibitToTermNodeConnectionEdge","InducteeToTermNodeConnectionEdge","PageToTermNodeConnectionEdge","PostToTermNodeConnectionEdge","RhtvChannelToTermNodeConnectionEdge","RhtvVideoToTermNodeConnectionEdge","GraphqlDocumentToTermNodeConnectionEdge","RootQueryToTermNodeConnectionEdge"],"TermNode":["PageCategory","EventType","ExhibitType","InducteeClass","Category","PostFormat","Tag","GraphqlDocumentGroup"],"EnqueuedScriptConnection":["TermNodeToEnqueuedScriptConnection","UserToEnqueuedScriptConnection","ContentNodeToEnqueuedScriptConnection","RootQueryToEnqueuedScriptConnection"],"EnqueuedScriptConnectionEdge":["TermNodeToEnqueuedScriptConnectionEdge","UserToEnqueuedScriptConnectionEdge","ContentNodeToEnqueuedScriptConnectionEdge","RootQueryToEnqueuedScriptConnectionEdge"],"EnqueuedAsset":["EnqueuedScript","EnqueuedStylesheet"],"EnqueuedScriptConnectionPageInfo":["TermNodeToEnqueuedScriptConnectionPageInfo","UserToEnqueuedScriptConnectionPageInfo","ContentNodeToEnqueuedScriptConnectionPageInfo","RootQueryToEnqueuedScriptConnectionPageInfo"],"EnqueuedStylesheetConnection":["TermNodeToEnqueuedStylesheetConnection","UserToEnqueuedStylesheetConnection","ContentNodeToEnqueuedStylesheetConnection","RootQueryToEnqueuedStylesheetConnection"],"EnqueuedStylesheetConnectionEdge":["TermNodeToEnqueuedStylesheetConnectionEdge","UserToEnqueuedStylesheetConnectionEdge","ContentNodeToEnqueuedStylesheetConnectionEdge","RootQueryToEnqueuedStylesheetConnectionEdge"],"EnqueuedStylesheetConnectionPageInfo":["TermNodeToEnqueuedStylesheetConnectionPageInfo","UserToEnqueuedStylesheetConnectionPageInfo","ContentNodeToEnqueuedStylesheetConnectionPageInfo","RootQueryToEnqueuedStylesheetConnectionPageInfo"],"TermNodeConnectionPageInfo":["TaxonomyToTermNodeConnectionPageInfo","CeremonyToTermNodeConnectionPageInfo","AcfTermNodeConnectionPageInfo","EventToTermNodeConnectionPageInfo","ExhibitToTermNodeConnectionPageInfo","InducteeToTermNodeConnectionPageInfo","PageToTermNodeConnectionPageInfo","PostToTermNodeConnectionPageInfo","RhtvChannelToTermNodeConnectionPageInfo","RhtvVideoToTermNodeConnectionPageInfo","GraphqlDocumentToTermNodeConnectionPageInfo","RootQueryToTermNodeConnectionPageInfo"],"TaxonomyConnectionPageInfo":["ContentTypeToTaxonomyConnectionPageInfo","RootQueryToTaxonomyConnectionPageInfo"],"ContentNodeConnectionPageInfo":["ContentTypeToContentNodeConnectionPageInfo","HierarchicalContentNodeToContentNodeAncestorsConnectionPageInfo","HierarchicalContentNodeToContentNodeChildrenConnectionPageInfo","PageCategoryToContentNodeConnectionPageInfo","EventTypeToContentNodeConnectionPageInfo","ExhibitTypeToContentNodeConnectionPageInfo","InducteeClassToContentNodeConnectionPageInfo","CategoryToContentNodeConnectionPageInfo","PostFormatToContentNodeConnectionPageInfo","TagToContentNodeConnectionPageInfo","UserToRevisionsConnectionPageInfo","AcfContentNodeConnectionPageInfo","RootQueryToContentNodeConnectionPageInfo","GraphqlDocumentGroupToContentNodeConnectionPageInfo","RootQueryToRevisionsConnectionPageInfo"],"UserConnectionEdge":["ContentNodeToEditLockConnectionEdge","NodeWithAuthorToUserConnectionEdge","ContentNodeToEditLastConnectionEdge","RootQueryToUserConnectionEdge"],"Commenter":["User","CommentAuthor"],"DatabaseIdentifier":["User","Comment","MediaItem","PageCategory","Ceremony","Event","EventType","Exhibit","ExhibitType","Inductee","InducteeClass","Page","CoverStory","Post","Category","PostFormat","Tag","RhtvChannel","RhtvVideo","DeepDive","Digital
280Exhibit","GraphqlDocument","GraphqlDocumentGroup","Option","Menu","MenuItem","PressRelease","TicketPrice","CommentAuthor"],"CommentConnection":["UserToCommentConnection","CommentToCommentConnection","RootQueryToCommentConnection"],"CommentConnectionEdge":["CommentToParentCommentConnectionEdge","CommentToCommentConnectionEdge","UserToCommentConnectionEdge","RootQueryToCommentConnectionEdge"],"CommenterConnectionEdge":["CommentToCommenterConnectionEdge"],"CommentConnectionPageInfo":["CommentToCommentConnectionPageInfo","UserToCommentConnectionPageInfo","RootQueryToCommentConnectionPageInfo"],"MediaItemConnection":["UserToMediaItemConnection","RootQueryToMediaItemConnection"],"MediaItemConnectionEdge":["AcfMediaItemConnectionEdge","NodeWithFeaturedImageToMediaItemConnectionEdge","UserToMediaItemConnectionEdge","RootQueryToMediaItemConnectionEdge"],"NodeWithTemplate":["MediaItem","Ceremony","Event","Exhibit","Inductee","Page","CoverStory","Post","RhtvChannel","RhtvVideo","DeepDive","DigitalExhibit","GraphqlDocument","Option","PressRelease","TicketPrice"],"ContentTemplate":["DefaultTemplate","Template_CoverStoryLandingPage","Template_Homepage","Template_InducteesLandingPage","Template_MuseumLanding","Template_PressReleaseLanding","Template_RockHallTV","Template_SearchPage","Template_WifiForm","Template_BusinessHours","Template_CoverStoryOptions","Template_FooterSettings","Template_GlobalLabels","Template_NavigationSettings","Template_SiteSettings"],"NodeWithTitle":["MediaItem","Ceremony","Event","Exhibit","Inductee","Page","CoverStory","Post","RhtvChannel","RhtvVideo","DeepDive","DigitalExhibit","GraphqlDocument","Option","PressRelease","TicketPrice"],"NodeWithAuthor":["MediaItem","Page","Post"],"HierarchicalContentNode":["MediaItem","Page"],"HierarchicalNode":["MediaItem","Page","Category"],"MenuItemLinkable":["PageCategory","Ceremony","Event","EventType","Exhibit","ExhibitType","Inductee","Page","CoverStory","Post","Category","Tag","RhtvChannel","RhtvVideo","DigitalExhibit","Option","PressRelease","TicketPrice"],"CeremonyConnection":["PageCategoryToCeremonyConnection","CeremonyToCeremonyConnection","RootQueryToCeremonyConnection"],"CeremonyConnectionEdge":["CeremonyToCeremonyConnectionEdge","CeremonyToParentConnectionEdge","CeremonyToPreviewConnectionEdge","PageCategoryToCeremonyConnectionEdge","RootQueryToCeremonyConnectionEdge"],"Previewable":["Ceremony","Event","Exhibit","Inductee","Page","CoverStory","Post","RhtvChannel","RhtvVideo","DeepDive","DigitalExhibit","Option","PressRelease","TicketPrice"],"CeremonyConnectionPageInfo":["CeremonyToCeremonyConnectionPageInfo","PageCategoryToCeremonyConnectionPageInfo","RootQueryToCeremonyConnectionPageInfo"],"PageCategoryConnection":["CeremonyToPageCategoryConnection","EventToPageCategoryConnection","ExhibitToPageCategoryConnection","InducteeToPageCategoryConnection","PageToPageCategoryConnection","PostToPageCategoryConnection","RhtvChannelToPageCategoryConnection","RhtvVideoToPageCategoryConnection","RootQueryToPageCategoryConnection"],"PageCategoryConnectionEdge":["CeremonyToPageCategoryConnectionEdge","EventToPageCategoryConnectionEdge","ExhibitToPageCategoryConnectionEdge","InducteeToPageCategoryConnectionEdge","PageToPageCategoryConnectionEdge","PostToPageCategoryConnectionEdge","RhtvChannelToPageCategoryConnectionEdge","RhtvVideoToPageCategoryConnectionEdge","RootQueryToPageCategoryConnectionEdge"],"PageCategoryConnectionPageInfo":["CeremonyToPageCategoryConnectionPageInfo","EventToPageCategoryConnectionPageInfo","ExhibitToPageCategoryConnectionPageInfo","InducteeToPageCategoryConnectionPageInfo","PageToPageCategoryConnectionPageInfo","PostToPageCategoryConnectionPageInfo","RhtvChannelToPageCategoryConnectionPageInfo","RhtvVideoToPageCategoryConnectionPageInfo","RootQueryToPageCategoryConnectionPageInfo"],"EventConnection":["PageCategoryToEventConnection","EventToEventConnection","EventTypeToEventConnection","RootQueryToEventConnection"],"EventConnectionEdge":["EventToEventConnectionEdge","EventTypeToEventConnectionEdge","EventToParentConnectionEdge","EventToPreviewConnectionEdge","PageCategoryToEventConnectionEdge","RootQueryToEventConnectionEdge"],"NodeWithFeaturedImage":["Event","Exhibit","Page","Digital
280Exhibit"],"EventConnectionPageInfo":["EventToEventConnectionPageInfo","EventTypeToEventConnectionPageInfo","PageCategoryToEventConnectionPageInfo","RootQueryToEventConnectionPageInfo"],"EventTypeConnection":["EventToEventTypeConnection","RootQueryToEventTypeConnection"],"EventTypeConnectionEdge":["EventToEventTypeConnectionEdge","RootQueryToEventTypeConnectionEdge"],"EventTypeConnectionPageInfo":["EventToEventTypeConnectionPageInfo","RootQueryToEventTypeConnectionPageInfo"],"ExhibitConnection":["PageCategoryToExhibitConnection","ExhibitToExhibitConnection","ExhibitTypeToExhibitConnection","RootQueryToExhibitConnection"],"ExhibitConnectionEdge":["ExhibitToExhibitConnectionEdge","ExhibitTypeToExhibitConnectionEdge","ExhibitToParentConnectionEdge","ExhibitToPreviewConnectionEdge","PageCategoryToExhibitConnectionEdge","RootQueryToExhibitConnectionEdge"],"ExhibitConnectionPageInfo":["ExhibitToExhibitConnectionPageInfo","ExhibitTypeToExhibitConnectionPageInfo","PageCategoryToExhibitConnectionPageInfo","RootQueryToExhibitConnectionPageInfo"],"ExhibitTypeConnection":["ExhibitToExhibitTypeConnection","RootQueryToExhibitTypeConnection"],"ExhibitTypeConnectionEdge":["ExhibitToExhibitTypeConnectionEdge","RootQueryToExhibitTypeConnectionEdge"],"ExhibitTypeConnectionPageInfo":["ExhibitToExhibitTypeConnectionPageInfo","RootQueryToExhibitTypeConnectionPageInfo"],"InducteeConnection":["PageCategoryToInducteeConnection","InducteeToInducteeConnection","InducteeClassToInducteeConnection","RootQueryToInducteeConnection"],"InducteeConnectionEdge":["InducteeToInducteeConnectionEdge","InducteeClassToInducteeConnectionEdge","InducteeToParentConnectionEdge","InducteeToPreviewConnectionEdge","PageCategoryToInducteeConnectionEdge","RootQueryToInducteeConnectionEdge"],"InducteeConnectionPageInfo":["InducteeToInducteeConnectionPageInfo","InducteeClassToInducteeConnectionPageInfo","PageCategoryToInducteeConnectionPageInfo","RootQueryToInducteeConnectionPageInfo"],"InducteeClassConnection":["InducteeToInducteeClassConnection","RootQueryToInducteeClassConnection"],"InducteeClassConnectionEdge":["InducteeToInducteeClassConnectionEdge","RootQueryToInducteeClassConnectionEdge"],"InducteeClassConnectionPageInfo":["InducteeToInducteeClassConnectionPageInfo","RootQueryToInducteeClassConnectionPageInfo"],"PageConnection":["PageCategoryToPageConnection","PageToRevisionConnection","UserToPageConnection","RootQueryToPageConnection"],"PageConnectionEdge":["PageToPreviewConnectionEdge","PageToRevisionConnectionEdge","PageCategoryToPageConnectionEdge","UserToPageConnectionEdge","RootQueryToPageConnectionEdge"],"NodeWithContentEditor":["Page","Post","GraphqlDocument"],"NodeWithRevisions":["Page","Post"],"NodeWithPageAttributes":["Page"],"CoverStoryConnection":["CoverStoryToCoverStoryConnection","RootQueryToCoverStoryConnection"],"CoverStoryConnectionEdge":["CoverStoryToCoverStoryConnectionEdge","CoverStoryToParentConnectionEdge","CoverStoryToPreviewConnectionEdge","RootQueryToCoverStoryConnectionEdge"],"CoverStoryConnectionPageInfo":["CoverStoryToCoverStoryConnectionPageInfo","RootQueryToCoverStoryConnectionPageInfo"],"PageConnectionPageInfo":["PageToRevisionConnectionPageInfo","PageCategoryToPageConnectionPageInfo","UserToPageConnectionPageInfo","RootQueryToPageConnectionPageInfo"],"PostConnection":["PageCategoryToPostConnection","PostToPostConnection","CategoryToPostConnection","PostFormatToPostConnection","PostToRevisionConnection","TagToPostConnection","UserToPostConnection","RootQueryToPostConnection"],"PostConnectionEdge":["PostToPostConnectionEdge","CategoryToPostConnectionEdge","PostToParentConnectionEdge","PostFormatToPostConnectionEdge","PostToPreviewConnectionEdge","PostToRevisionConnectionEdge","TagToPostConnectionEdge","PageCategoryToPostConnectionEdge","UserToPostConnectionEdge","RootQueryToPostConnectionEdge"],"NodeWithExcerpt":["Post"],"PostConnectionPageInfo":["PostToPostConnectionPageInfo","CategoryToPostConnectionPageInfo","PostFormatToPostConnectionPageInfo","PostToRevisionConnectionPageInfo","TagToPostConnectionPageInfo","PageCategoryToPostConnectionPageInfo","UserToPostConnectionPageInfo","RootQueryToPostConnectionPageInfo"],"CategoryConnection":["PostToCategoryConnection","CategoryToAncestorsCategoryConnection","CategoryToCategoryConnection","RootQueryToCategoryConnection"],"CategoryConnectionEdge":["CategoryToAncestorsCategoryConnectionEdge","CategoryToCategoryConnectionEdge","CategoryToParentCategoryConnectionEdge","PostToCategoryConnectionEdge","RootQueryToCategoryConnectionEdge"],"HierarchicalTermNode":["Category"],"CategoryConnectionPageInfo":["CategoryToAncestorsCategoryConnectionPageInfo","CategoryToCategoryConnectionPageInfo","PostToCategoryConnectionPageInfo","RootQueryToCategoryConnectionPageInfo"],"PostFormatConnection":["PostToPostFormatConnection","RootQueryToPostFormatConnection"],"PostFormatConnectionEdge":["PostToPostFormatConnectionEdge","RootQueryToPostFormatConnectionEdge"],"PostFormatConnectionPageInfo":["PostToPostFormatConnectionPageInfo","RootQueryToPostFormatConnectionPageInfo"],"TagConnection":["PostToTagConnection","RootQueryToTagConnection"],"TagConnectionEdge":["PostToTagConnectionEdge","RootQueryToTagConnectionEdge"],"TagConnectionPageInfo":["PostToTagConnectionPageInfo","RootQueryToTagConnectionPageInfo"],"RhtvChannelConnection":["PageCategoryToRhtvChannelConnection","RhtvChannelToRhtvChannelConnection","RootQueryToRhtvChannelConnection"],"RhtvChannelConnectionEdge":["RhtvChannelToRhtvChannelConnectionEdge","RhtvChannelToParentConnectionEdge","RhtvChannelToPreviewConnectionEdge","PageCategoryToRhtvChannelConnectionEdge","RootQueryToRhtvChannelConnectionEdge"],"RhtvChannelConnectionPageInfo":["RhtvChannelToRhtvChannelConnectionPageInfo","PageCategoryToRhtvChannelConnectionPageInfo","RootQueryToRhtvChannelConnectionPageInfo"],"RhtvVideoConnection":["PageCategoryToRhtvVideoConnection","RhtvVideoToRhtvVideoConnection","RootQueryToRhtvVideoConnection"],"RhtvVideoConnectionEdge":["RhtvVideoToRhtvVideoConnectionEdge","RhtvVideoToParentConnectionEdge","RhtvVideoToPreviewConnectionEdge","PageCategoryToRhtvVideoConnectionEdge","RootQueryToRhtvVideoConnectionEdge"],"RhtvVideoConnectionPageInfo":["RhtvVideoToRhtvVideoConnectionPageInfo","PageCategoryToRhtvVideoConnectionPageInfo","RootQueryToRhtvVideoConnectionPageInfo"],"MediaItemConnectionPageInfo":["UserToMediaItemConnectionPageInfo","RootQueryToMediaItemConnectionPageInfo"],"UserRoleConnection":["UserToUserRoleConnection","RootQueryToUserRoleConnection"],"
280UserRoleConnectionEdge":["UserToUserRoleConnectionEdge","RootQueryToUserRoleConnectionEdge"],"UserRoleConnectionPageInfo":["UserToUserRoleConnectionPageInfo","RootQueryToUserRoleConnectionPageInfo"],"WithAcfOptionsPagePageGenerationSettings":["RootQuery"],"DeepDiveConnection":["DeepDiveToDeepDiveConnection","RootQueryToDeepDiveConnection"],"DeepDiveConnectionEdge":["DeepDiveToDeepDiveConnectionEdge","DeepDiveToParentConnectionEdge","DeepDiveToPreviewConnectionEdge","RootQueryToDeepDiveConnectionEdge"],"DeepDiveConnectionPageInfo":["DeepDiveToDeepDiveConnectionPageInfo","RootQueryToDeepDiveConnectionPageInfo"],"DigitalExhibitConnection":["DigitalExhibitToDigitalExhibitConnection","RootQueryToDigitalExhibitConnection"],"DigitalExhibitConnectionEdge":["DigitalExhibitToDigitalExhibitConnectionEdge","DigitalExhibitToParentConnectionEdge","DigitalExhibitToPreviewConnectionEdge","RootQueryToDigitalExhibitConnectionEdge"],"DigitalExhibitConnectionPageInfo":["DigitalExhibitToDigitalExhibitConnectionPageInfo","RootQueryToDigitalExhibitConnectionPageInfo"],"GraphqlDocumentConnection":["GraphqlDocumentToGraphqlDocumentConnection","GraphqlDocumentGroupToGraphqlDocumentConnection","RootQueryToGraphqlDocumentConnection"],"GraphqlDocumentConnectionEdge":["GraphqlDocumentToGraphqlDocumentConnectionEdge","GraphqlDocumentGroupToGraphqlDocumentConnectionEdge","GraphqlDocumentToParentConnectionEdge","GraphqlDocumentToPreviewConnectionEdge","RootQueryToGraphqlDocumentConnectionEdge"],"GraphqlDocumentConnectionPageInfo":["GraphqlDocumentToGraphqlDocumentConnectionPageInfo","GraphqlDocumentGroupToGraphqlDocumentConnectionPageInfo","RootQueryToGraphqlDocumentConnectionPageInfo"],"GraphqlDocumentGroupConnection":["GraphqlDocumentToGraphqlDocumentGroupConnection","RootQueryToGraphqlDocumentGroupConnection"],"GraphqlDocumentGroupConnectionEdge":["GraphqlDocumentToGraphqlDocumentGroupConnectionEdge","RootQueryToGraphqlDocumentGroupConnectionEdge"],"GraphqlDocumentGroupConnectionPageInfo":["GraphqlDocumentToGraphqlDocumentGroupConnectionPageInfo","RootQueryToGraphqlDocumentGroupConnectionPageInfo"],"OptionConnection":["OptionToOptionConnection","RootQueryToOptionConnection"],"OptionConnectionEdge":["OptionToOptionConnectionEdge","OptionToParentConnectionEdge","OptionToPreviewConnectionEdge","RootQueryToOptionConnectionEdge"],"OptionConnectionPageInfo":["OptionToOptionConnectionPageInfo","RootQueryToOptionConnectionPageInfo"],"MenuItemConnection":["MenuToMenuItemConnection","MenuItemToMenuItemConnection","RootQueryToMenuItemConnection"],"MenuItemConnectionEdge":["MenuItemToMenuItemConnectionEdge","MenuToMenuItemConnectionEdge","RootQueryToMenuItemConnectionEdge"],"MenuItemConnectionPageInfo":["MenuItemToMenuItemConnectionPageInfo","MenuToMenuItemConnectionPageInfo","RootQueryToMenuItemConnectionPageInfo"],"MenuItemLinkableConnectionEdge":["MenuItemToMenuItemLinkableConnectionEdge"],"MenuItemObjectUnion":["Post","Page","Ceremony","CoverStory","DigitalExhibit","Event","Exhibit","Inductee","Option","PressRelease","RhtvChannel","RhtvVideo","TicketPrice","Category","Tag","EventType","ExhibitType","PageCategory"],"PressReleaseConnection":["PressReleaseToPressReleaseConnection","RootQueryToPressReleaseConnection"],"PressReleaseConnectionEdge":["PressReleaseToPressReleaseConnectionEdge","PressReleaseToParentConnectionEdge","PressReleaseToPreviewConnectionEdge","RootQueryToPressReleaseConnectionEdge"],"PressReleaseConnectionPageInfo":["PressReleaseToPressReleaseConnectionPageInfo","RootQueryToPressReleaseConnectionPageInfo"],"TicketPriceConnection":["TicketPriceToTicketPriceConnection","RootQueryToTicketPriceConnection"],"TicketPriceConnectionEdge":["TicketPriceToTicketPriceConnectionEdge","TicketPriceToParentConnectionEdge","TicketPriceToPreviewConnectionEdge","RootQueryToTicketPriceConnectionEdge"],"TicketPriceConnectionPageInfo":["TicketPriceToTicketPriceConnectionPageInfo","RootQueryToTicketPriceConnectionPageInfo"],"MenuConnectionEdge":["MenuItemToMenuConnectionEdge","RootQueryToMenuConnectionEdge"],"MenuConnection":["RootQueryToMenuConnection"],"MenuConnectionPageInfo":["RootQueryToMenuConnectionPageInfo"],"PluginConnection":["RootQueryToPluginConnection"],"PluginConnectionEdge":["RootQueryToPluginConnectionEdge"],"PluginConnectionPageInfo":["RootQueryToPluginConnectionPageInfo"],"ThemeConnection":["RootQueryToThemeConnection"],"ThemeConnectionEdge":["RootQueryToThemeConnectionEdge"],"ThemeConnectionPageInfo":["RootQueryToThemeConnectionPageInfo"],"UserConnection":["RootQueryToUserConnection"],"
280UserConnectionPageInfo":["RootQueryToUserConnectionPageInfo"],"AccordionComponentAccordionsCta_Fields":["AccordionComponentAccordionsCta"],"AccordionComponentAccordions_Fields":["AccordionComponentAccordions"],"AccordionComponentFooterCtas_Fields":["AccordionComponentFooterCtas"],"AccordionComponentFooter_Fields":["AccordionComponentFooter"],"AccordionComponent_Fields":["AccordionComponent","FlexiblePageContentContentAccordionLayout"],"AdminSettingsFieldsPostTypeCategories_Fields":["AdminSettingsFieldsPostTypeCategories"],"AdminSettingsFieldsPermanentRedirects_Fields":["AdminSettingsFieldsPermanentRedirects"],"WithAcfAdminSettingsFields":["AdminSettings"],"AdminSettingsFields_Fields":["AdminSettingsFields"],"ArtifactPaperComponentArtifactPaperHeadline_Fields":["ArtifactPaperComponentArtifactPaperHeadline"],"ArtifactPaperComponentArtifactPaperBody_Fields":["ArtifactPaperComponentArtifactPaperBody"],"ArtifactPaperComponentCta_Fields":["ArtifactPaperComponentCta"],"ArtifactPaperComponentImages_Fields":["ArtifactPaperComponentImages"],"ArtifactPaperComponent_Fields":["ArtifactPaperComponent","InducteeDataImpactFlexibleContentArtifactPaperLayout"],"ArtifactComponentHeadlineLines_Fields":["ArtifactComponentHeadlineLines"],"ArtifactComponentBody_Fields":["ArtifactComponentBody"],"ArtifactComponentCta_Fields":["ArtifactComponentCta"],"ArtifactComponentVideoEmbed_Fields":["ArtifactComponentVideoEmbed"],"ArtifactComponent_Fields":["ArtifactComponent","InducteeDataImpactFlexibleContentArtifactSingularLayout","FlexiblePageContentContentArtifactSingularLayout"],"AssetSelect_Fields":["DetailHero","AssetSelect","PrimaryHeroAdditionalSlides","PrimaryHero","PrimaryHeroSlide","FlexiblePageContentContentHeroLayout"],"BannerComponentLink_Fields":["BannerComponentLink"],"BannerComponent_Fields":["BannerComponent","CeremonyLandingAdditionalFlexibleContentBannerLayout","CoverStoryOptionsCoverStoryEndScreenBanner","FlexiblePageContentContentBannerLayout","DigitalExhibitContentPageEnderCta"],"HoursMonthRangesDailyHoursSunday_Fields":["HoursMonthRangesDailyHoursSunday"],"HoursMonthRangesDailyHoursMonday_Fields":["HoursMonthRangesDailyHoursMonday"],"HoursMonthRangesDailyHoursTuesday_Fields":["HoursMonthRangesDailyHoursTuesday"],"HoursMonthRangesDailyHoursWednesday_Fields":["HoursMonthRangesDailyHoursWednesday"],"HoursMonthRangesDailyHoursThursday_Fields":["HoursMonthRangesDailyHoursThursday"],"HoursMonthRangesDailyHoursFriday_Fields":["HoursMonthRangesDailyHoursFriday"],"HoursMonthRangesDailyHoursSaturday_Fields":["HoursMonthRangesDailyHoursSaturday"],"HoursMonthRangesDailyHours_Fields":["HoursMonthRangesDailyHours"],"HoursMonthRanges_Fields":["HoursMonthRanges"],"HoursSpecialHoursSpecialDatesRelatedDates_Fields":["HoursSpecialHoursSpecialDatesRelatedDates"],"HoursSpecialHoursSpecialDates_Fields":["HoursSpecialHoursSpecialDates"],"HoursSpecialHours_Fields":["HoursSpecialHours"],"WithAcfHours":["Option"],"Hours_Fields":["Hours"],"CarouselInducteesComponentCta_Fields":["CarouselInducteesComponentCta"],"CarouselInducteesComponent_Fields":["CarouselInducteesComponent","FlexiblePageContentContentCarouselInducteesLayout"],"CarouselRockHallTvChannelsManualSlideLink_Fields":["CarouselRockHallTvChannelsManualSlideLink"],"CarouselRockHallTvChannelsManualSlide_Fields":["CarouselRockHallTvChannelsManualSlide"],"CarouselRockHallTvChannels_Fields":["CarouselRockHallTvChannels"],"CarouselRockHallTvCta_Fields":["CarouselRockHallTvCta"],"CarouselRockHallTv_Fields":["CarouselRockHallTv","FlexiblePageContentContentCarouselRhtvLayout"],"CarouselShopCta_Fields":["CarouselShopCta"],"CarouselShop_Fields":["CarouselShop","CeremonyLandingAdditionalFlexibleContentCarouselShopLayout","InducteeDataInducteeShopCarousel","FlexiblePageContentContentCarouselShopLayout","DigitalExhibitContentPageEnderShop"],"CarouselStoriesCta_Fields":["CarouselStoriesCta"],"CarouselStories_Fields":["CarouselStories","FlexiblePageContentContentCarouselStoriesLayout"],"CeremonyLandingFeaturedHeroHeroLink_Fields":["CeremonyLandingFeaturedHeroHeroLink"],"CeremonyLandingFeaturedHero_Fields":["CeremonyLandingFeaturedHero"],"CeremonyLandingMediaFlexibleContent_Layout":["CeremonyLandingMediaFlexibleContentVideoPlaylistLayout","CeremonyLandingMediaFlexibleContentVideoCarouselLayout","CeremonyLandingMediaFlexibleContentImageGalleryLayout"],"VideoComponentPrimaryVideo_Fields":["VideoComponentPrimaryVideo"],"CeremonyLandingMediaFlexibleContentVideoPlaylistLayout_Fields":["CeremonyLandingMediaFlexibleContentVideoPlaylistLayout"],"CeremonyLandingMediaFlexibleContentVideoCarouselLayout_Fields":["CeremonyLandingMediaFlexibleContentVideoCarouselLayout"],"ImageGalleryComponentStandardHeader_Fields":["ImageGalleryComponentStandardHeader"],"ImageGalleryComponentTextHeaderCta_Fields":["ImageGalleryComponentTextHeaderCta"],"ImageGalleryComponentTextHeaderLineItems_Fields":["ImageGalleryComponentTextHeaderLineItems"],"ImageGalleryComponentTextHeader_Fields":["ImageGalleryComponentTextHeader"],"CeremonyLandingMediaFlexibleContentImageGalleryLayout_Fields":["CeremonyLandingMediaFlexibleContentImageGalleryLayout"],"CeremonyLandingAdditionalFlexibleContent_Layout":["CeremonyLandingAdditionalFlexibleContentCarouselShopLayout","CeremonyLandingAdditionalFlexibleContentFloatSpotlightLayout","CeremonyLandingAdditionalFlexibleContentTitleLayout","CeremonyLandingAdditionalFlexibleContentFeatureLayout","CeremonyLandingAdditionalFlexibleContentBannerLayout"],"CeremonyLandingAdditionalFlexibleContentCarouselShopLayout_Fields":["CeremonyLandingAdditionalFlexibleContentCarouselShopLayout"],"FloatSpotlightCta_Fields":["FloatSpotlightCta"],"FloatSpotlightSecondaryCta_Fields":["FloatSpotlightSecondaryCta"],"FloatSpotlightImages_Fields":["FloatSpotlightImages"],"CeremonyLandingAdditionalFlexibleContentFloatSpotlightLayout_Fields":["CeremonyLandingAdditionalFlexibleContentFloatSpotlightLayout"],"CeremonyLandingAdditionalFlexibleContentTitleLayout_Fields":["CeremonyLandingAdditionalFlexibleContentTitleLayout"],"CeremonyLandingAdditionalFlexibleContentFeatureLayout_Fields":["CeremonyLandingAdditionalFlexibleContentFeatureLayout"],"CeremonyLandingAdditionalFlexibleContentBannerLayout_Fields":["CeremonyLandingAdditionalFlexibleContentBannerLayout"],"WithAcfCeremonyLanding":["Ceremony"],"CeremonyLanding_Fields":["CeremonyLanding"],"ComparisonTableTableColumnHeaders_Fields":["ComparisonTableTableColumnHeaders"],"ComparisonTableTableRowsRowValues_Fields":["ComparisonTableTableRowsRowValues"],"ComparisonTableTableRows_Fields":["ComparisonTableTableRows"],"ComparisonTableTableComparisonTableFooterCta_Fields":["ComparisonTableTableComparisonTableFooterCta"],"ComparisonTableTableComparisonTableFooterLinks_Fields":["ComparisonTableTableComparisonTableFooterLinks"],"ComparisonTableTableComparisonTableFooter_Fields":["ComparisonTableTableComparisonTableFooter"],"ComparisonTableTable_Fields":["ComparisonTableTable"],"ComparisonTable_Fields":["ComparisonTable","FlexiblePageContentContentComparisonTableLayout"],"GameDataArtistFeatureBody_Fields":["GameDataArtistFeatureBody"],"GameDataArtistFeatureCta_Fields":["GameDataArtistFeatureCta"],"GameDataArtistFeature_Fields":["GameDataArtistFeature"],"WithAcfGameData":["CoverStory"],"GameData_Fields":["GameData"],"CoverStoryLandingCoverStoryHero_Fields":["CoverStoryLandingCoverStoryHero"],"WithAcfCoverStoryLanding":["Page"],"CoverStoryLanding_Fields":["CoverStoryLanding"],"CoverStoryOptionsCoverStoryListLabels_Fields":["CoverStoryOptionsCoverStoryListLabels"],"CoverStoryOptionsHowToModalStepOne_Fields":["CoverStoryOptionsHowToModalStepOne"],"CoverStoryOptionsHowToModalStepTwo_Fields":["CoverStoryOptionsHowToModalStepTwo"],"CoverStoryOptionsHowToModalStepThree_Fields":["CoverStoryOptionsHowToModalStepThree"],"CoverStoryOptionsHowToModal_Fields":["CoverStoryOptionsHowToModal"],"CoverStoryOptionsTileCount_Fields":["CoverStoryOptionsTileCount"],"CoverStoryOptionsCoverStoryEndScreenHeadline_Fields":["CoverStoryOptionsCoverStoryEndScreenHeadline"],"CoverStoryOptionsCoverStoryEndScreenIncorrect_Fields":["CoverStoryOptionsCoverStoryEndScreenIncorrect"],"CoverStoryOptionsCoverStoryEndScreenTileTextTiles0_Fields":["CoverStoryOptionsCoverStoryEndScreenTileTextTiles0"],"CoverStoryOptionsCoverStoryEndScreenTileTextTiles1_Fields":["CoverStoryOptionsCoverStoryEndScreenTileTextTiles1"],"CoverStoryOptionsCoverStoryEndScreenTileTextTiles2Through4_Fields":["CoverStoryOptionsCoverStoryEndScreenTileTextTiles2Through4"],"CoverStoryOptionsCoverStoryEndScreenTileTextTiles5Through7_Fields":["CoverStoryOptionsCoverStoryEndScreenTileTextTiles5Through7"],"CoverStoryOptionsCoverStoryEndScreenTileTextTiles8Through10_Fields":["CoverStoryOptionsCoverStoryEndScreenTileTextTiles8Through10"],"CoverStoryOptionsCoverStoryEndScreenTileText_Fields":["CoverStoryOptionsCoverStoryEndScreenTileText"],"CoverStoryOptionsCoverStoryEndScreenButtonLabels_Fields":["CoverStoryOptionsCoverStoryEndScreenButtonLabels"],"CoverStoryOptionsCoverStoryEndScreenBanner_Fields":["CoverStoryOptionsCoverStoryEndScreenBanner"],"CoverStoryOptionsAriaLabels_Fields":["CoverStoryOptionsAriaLabels"],"WithAcfCoverStoryOptions":["Option","Template_CoverStoryOptions"],"CoverStoryOptions_Fields":["CoverStoryOptions"],"DeepDiveFieldsModuleImages_Fields":["DeepDiveFieldsModuleImages"],"DeepDiveFieldsDrawerContent_Layout":["DeepDiveFieldsDrawerContentVideoLayout","DeepDiveFieldsDrawerContentOutroLayout","DeepDiveFieldsDrawerContentQuoteLayout","DeepDiveFieldsDrawerContentGalleryLayout"],"DeepDiveFieldsDrawerContentVideoLayout_Fields":["DeepDiveFieldsDrawerContentVideoLayout"],"DeepDiveFieldsDrawerContentImages_Fields":["DeepDiveFieldsDrawerContentImages"],"DeepDiveFieldsDrawerContentOutroLayout_Fields":["DeepDiveFieldsDrawerContentOutroLayout"],"DeepDiveFieldsDrawerContentQuoteLayout_Fields":["DeepDiveFieldsDrawerContentQuoteLayout"],"DeepDiveFieldsDrawerContentGalleryItems_Fields":["DeepDiveFieldsDrawerContentGalleryItems"],"DeepDiveFieldsDrawerContentGalleryLayout_Fields":["DeepDiveFieldsDrawerContentGalleryLayout"],"WithAcfDeepDiveFields":["DeepDive"],"DeepDiveFields_Fields":["DeepDiveFields"],"DetailHeroComponent_Fields":["DetailHeroComponent","FlexiblePageContentContentDetailHeroLayout"],"Digital
280ExhibitAccentComponent_Fields":["DigitalExhibitAccentComponent","DigitalExhibitBigTextComponent","DigitalExhibitCarouselComponent","DigitalExhibitContentModulesCarouselHighlightLayout","DigitalExhibitContentModulesBigTextLayout"],"DigitalExhibitBigTextComponentBackground_Fields":["DigitalExhibitBigTextComponentBackground"],"DigitalExhibitBigTextComponent_Fields":["DigitalExhibitBigTextComponent","DigitalExhibitContentModulesBigTextLayout"],"DigitalExhibitCardGalleryComponentCards_Fields":["DigitalExhibitCardGalleryComponentCards"],"DigitalExhibitCardGalleryComponent_Fields":["DigitalExhibitCardGalleryComponent","DigitalExhibitContentModulesCardGalleryLayout"],"DigitalExhibitCarouselComponentItems_Fields":["DigitalExhibitCarouselComponentItems"],"DigitalExhibitCarouselComponent_Fields":["DigitalExhibitCarouselComponent","DigitalExhibitContentModulesCarouselHighlightLayout"],"DigitalExhibitHeroComponentBackgroundDesktop_Fields":["DigitalExhibitHeroComponentBackgroundDesktop"],"DigitalExhibitHeroComponentBackgroundMobile_Fields":["DigitalExhibitHeroComponentBackgroundMobile"],"DigitalExhibitHeroComponent_Fields":["DigitalExhibitHero","DigitalExhibitHeroComponent"],"DigitalExhibitIntroComponent_Fields":["DigitalExhibitIntroComponent","DigitalExhibitContentIntro"],"DigitalExhibitKnockoutComponent_Fields":["DigitalExhibitBigTextComponent","DigitalExhibitCardGalleryComponent","DigitalExhibitIntroComponent","DigitalExhibitKnockoutComponent","DigitalExhibitContentIntro","DigitalExhibitContentModulesCardGalleryLayout","DigitalExhibitContentModulesBigTextLayout"],"WithAcfDigitalExhibitSettings":["DigitalExhibit"],"DigitalExhibitSettings_Fields":["DigitalExhibitSettings"],"DigitalExhibitShareComponent_Fields":["DigitalExhibitCardGalleryComponent","DigitalExhibitCarouselComponent","DigitalExhibitShareComponent","MusicExplorerComponent","DigitalExhibitContentModulesCardGalleryLayout","DigitalExhibitContentModulesCarouselHighlightLayout","DigitalExhibitContentModulesDeepDiveLayout"],"DonateFormComponentFormAmounts_Fields":["DonateFormComponentFormAmounts"],"DonateFormComponent_Fields":["DonateFormComponent","FlexiblePageContentContentDonateFormLayout"],"EventDataPrice_Fields":["EventDataPrice"],"WithAcfEventData":["Event"],"EventData_Fields":["EventData"],"ExhibitDataExhibitMedia_Fields":["ExhibitDataExhibitMedia"],"WithAcfExhibitData":["Exhibit"],"ExhibitData_Fields":["ExhibitData"],"FeatureItems_Fields":["FeatureItems"],"Feature_Fields":["CeremonyLandingAdditionalFlexibleContentFeatureLayout","Feature","FlexiblePageContentContentFeatureLayout"],"CarouseCta_Fields":["CarouseCta"],"Carouse_Fields":["Carouse","FlexiblePageContentContentFeatureEventsLayout"],"FeatureExhibitsInteractivesExhibitsManualExhibitLink_Fields":["FeatureExhibitsInteractivesExhibitsManualExhibitLink"],"FeatureExhibitsInteractivesExhibitsManualExhibit_Fields":["FeatureExhibitsInteractivesExhibitsManualExhibit"],"FeatureExhibitsInteractivesExhibits_Fields":["FeatureExhibitsInteractivesExhibits"],"FeatureExhibitsInteractivesCta_Fields":["FeatureExhibitsInteractivesCta"],"FeatureExhibitsInteractives_Fields":["FeatureExhibitsInteractives","FlexiblePageContentContentFeatureExhibitsInteractivesLayout"],"FloatSpotlight_Fields":["CeremonyLandingAdditionalFlexibleContentFloatSpotlightLayout","FloatSpotlight","CustomSettingsCeremonyFloatSpotlight","FlexiblePageContentContentFloatSpotlightLayout"],"FooterSettingsFieldsNewsletterFormForm_Fields":["FooterSettingsFieldsNewsletterFormForm"],"FooterSettingsFieldsNewsletterForm_Fields":["FooterSettingsFieldsNewsletterForm"],"FooterSettingsFieldsSocialLinks_Fields":["FooterSettingsFieldsSocialLinks"],"FooterSettingsFieldsFindUsAddress_Fields":["FooterSettingsFieldsFindUsAddress"],"FooterSettingsFieldsFindUsPhone_Fields":["FooterSettingsFieldsFindUsPhone"],"FooterSettingsFieldsFindUsEmail_Fields":["FooterSettingsFieldsFindUsEmail"],"FooterSettingsFieldsFindUs_Fields":["FooterSettingsFieldsFindUs"],"FooterSettingsFieldsFooterColumnsLinks_Fields":["FooterSettingsFieldsFooterColumnsLinks"],"FooterSettingsFieldsFooterColumns_Fields":["FooterSettingsFieldsFooterColumns"],"WithAcfFooterSettingsFields":["Option"],"FooterSettingsFields_Fields":["FooterSettingsFields"],"Formembed_Fields":["Formembed","FlexiblePageContentContentFormEmbedLayout"],"GenericEmbedComponent_Fields":["GenericEmbedComponent","FlexiblePageContentContentGenericEmbedLayout"],"GoogleMapComponent_Fields":["GoogleMapComponent","FlexiblePageContentContentGoogleMapLayout"],"GridInducteesComponentCta_Fields":["GridInducteesComponentCta"],"GridInducteesComponent_Fields":["GridInducteesComponent","InducteeDataGridInductees","FlexiblePageContentContentGridInducteesLayout","Digital
280ExhibitContentPageEnderInductees"],"PrimaryHeroHeroLink_Fields":["PrimaryHeroHeroLink"],"PrimaryHeroSlideHeroLink_Fields":["PrimaryHeroSlideHeroLink"],"PrimaryHeroAdditionalSlides_Fields":["PrimaryHeroAdditionalSlides"],"PrimaryHero_Fields":["PrimaryHero","FlexiblePageContentContentHeroLayout"],"HighlightHeadlineField_Fields":["TicketingComponent","AccordionComponent","CarouselInducteesComponent","CarouselRockHallTv","CarouselStories","CeremonyLandingMediaFlexibleContentVideoPlaylistLayout","CeremonyLandingMediaFlexibleContentVideoCarouselLayout","CeremonyLandingAdditionalFlexibleContentFeatureLayout","DonateFormComponent","Feature","Carouse","FeatureExhibitsInteractives","Formembed","GoogleMapComponent","HighlightHeadlineField","HoursComponent","HoursManualComponent","Icongrid","ImageSingularComponent","InlineRedirectComponent","ListComponent","ListingEventsFullComponent","ListingPressReleasesComponent","MilestonesComponent","PricingComponent","QuoteCarouselComponents","VideoCarouselComponent","VideoComponent","VideoSingularComponent","Wifiform","FlexiblePageContentContentAccordionLayout","FlexiblePageContentContentCarouselInducteesLayout","FlexiblePageContentContentCarouselRhtvLayout","FlexiblePageContentContentCarouselStoriesLayout","FlexiblePageContentContentDonateFormLayout","FlexiblePageContentContentFeatureLayout","FlexiblePageContentContentFeatureEventsLayout","FlexiblePageContentContentFeatureExhibitsInteractivesLayout","FlexiblePageContentContentFormEmbedLayout","FlexiblePageContentContentGoogleMapLayout","FlexiblePageContentContentHoursManualLayout","FlexiblePageContentContentIconGridLayout","FlexiblePageContentContentImageSingularLayout","FlexiblePageContentContentInlineRedirectLayout","FlexiblePageContentContentListLayout","FlexiblePageContentContentListingEventsFullLayout","FlexiblePageContentContentListingPressReleasesLayout","FlexiblePageContentContentMilestonesLayout","FlexiblePageContentContentPricingLayout","FlexiblePageContentContentQuoteCarouselLayout","FlexiblePageContentContentTicketingLayout","FlexiblePageContentContentVideoCarouselLayout","FlexiblePageContentContentVideoPlaylistLayout","FlexiblePageContentContentVideoSingularLayout","FlexiblePageContentContentWifiFormLayout"],"HoursComponent_Fields":["HoursComponent"],"HoursManualComponentMonthRangesDayRows_Fields":["HoursManualComponentMonthRangesDayRows"],"HoursManualComponentMonthRanges_Fields":["HoursManualComponentMonthRanges"],"HoursManualComponentSpecialDatesDayRows_Fields":["HoursManualComponentSpecialDatesDayRows"],"HoursManualComponentSpecialDates_Fields":["HoursManualComponentSpecialDates"],"HoursManualComponent_Fields":["HoursManualComponent","FlexiblePageContentContentHoursManualLayout"],"IcongridItemsCta_Fields":["IcongridItemsCta"],"IcongridItems_Fields":["IcongridItems"],"Icongrid_Fields":["Icongrid","FlexiblePageContentContentIconGridLayout"],"ImageField_Fields":["ImageField"],"ImageGalleryComponentImages_Fields":["ImageGalleryComponentImages"],"ImageGalleryComponent_Fields":["CeremonyLandingMediaFlexibleContentImageGalleryLayout","ImageGalleryComponent","FlexiblePageContentContentImageGalleryLayout"],"ImageSingularComponent_Fields":["ImageSingularComponent","FlexiblePageContentContentImageSingularLayout"],"InducteeDataMembers_Fields":["InducteeDataMembers"],"InducteeDataIntro_Fields":["InducteeDataIntro"],"InducteeDataInducteeHeroHeadline_Fields":["InducteeDataInducteeHeroHeadline"],"InducteeDataInducteeHero_Fields":["InducteeDataInducteeHero"],"InducteeDataInductionHeroSingleVideo_Fields":["InducteeDataInductionHeroSingleVideo"],"InducteeDataInductionHeroVideoPlaylistPrimaryVideo_Fields":["InducteeDataInductionHeroVideoPlaylistPrimaryVideo"],"InducteeDataInductionHeroVideoPlaylistVideos_Fields":["InducteeDataInductionHeroVideoPlaylistVideos"],"InducteeDataInductionHeroVideoPlaylist_Fields":["InducteeDataInductionHeroVideoPlaylist"],"InducteeDataInductionHero_Fields":["InducteeDataInductionHero"],"VideoCarouselComponentVideosVideoEmbed_Fields":["VideoCarouselComponentVideosVideoEmbed"],"InducteeDataInductionVideoCarouselVideos_Fields":["InducteeDataInductionVideoCarouselVideos"],"InducteeDataInductionVideoCarousel_Fields":["InducteeDataInductionVideoCarousel"],"InducteeDataConnectedInductees_Fields":["InducteeDataConnectedInductees"],"InducteeDataImpactHeroQuote_Fields":["InducteeDataImpactHeroQuote"],"InducteeDataImpactHeroVideo_Fields":["InducteeDataImpactHeroVideo"],"InducteeDataImpactHero_Fields":["InducteeDataImpactHero"],"InducteeDataImpactFlexibleContent_Layout":["InducteeDataImpactFlexibleContentSoundExplorerLayout","InducteeDataImpactFlexibleContentArtifactSingularLayout","InducteeDataImpactFlexibleContentArtifactPaperLayout","InducteeDataImpactFlexibleContentSpotlightLayout","InducteeDataImpactFlexibleContentQuoteLayout","InducteeDataImpactFlexibleContentHallOfFameEssayLayout"],"InducteeDataImpactFlexibleContentSlides_Fields":["InducteeDataImpactFlexibleContentSlides"],"InducteeDataImpactFlexibleContentSoundExplorerLayout_Fields":["InducteeDataImpactFlexibleContentSoundExplorerLayout"],"InducteeDataImpactFlexibleContentArtifactSingularLayout_Fields":["InducteeDataImpactFlexibleContentArtifactSingularLayout"],"InducteeDataImpactFlexibleContentArtifactPaperLayout_Fields":["InducteeDataImpactFlexibleContentArtifactPaperLayout"],"SpotlightComponentVideo_Fields":["SpotlightComponentVideo"],"InducteeDataImpactFlexibleContentSpotlightLayout_Fields":["InducteeDataImpactFlexibleContentSpotlightLayout"],"InducteeDataImpactFlexibleContentQuoteLayout_Fields":["InducteeDataImpactFlexibleContentQuoteLayout"],"InducteeDataImpactFlexibleContentCta_Fields":["InducteeDataImpactFlexibleContentCta"],"InducteeDataImpactFlexibleContentHallOfFameEssayLayout_Fields":["InducteeDataImpactFlexibleContentHallOfFameEssayLayout"],"InducteeDataInducteeInfluenceInfluences_Fields":["InducteeDataInducteeInfluenceInfluences"],"InducteeDataInducteeInfluenceInfluenced_Fields":["InducteeDataInducteeInfluenceInfluenced"],"InducteeDataInducteeInfluence_Fields":["InducteeDataInducteeInfluence"],"InducteeDataMembersSection_Fields":["InducteeDataMembersSection"],"InducteeDataFeatureItems_Fields":["InducteeDataFeatureItems"],"InducteeDataFeature_Fields":["InducteeDataFeature"],"InducteeDataInducteeShopCarousel_Fields":["InducteeDataInducteeShopCarousel"],"InducteeDataGridInductees_Fields":["InducteeDataGridInductees"],"InducteeDataRelatedSearchTerms_Fields":["InducteeDataRelatedSearchTerms"],"WithAcfInducteeData":["Inductee"],"InducteeData_Fields":["InducteeData"],"InducteeLandingPrimaryCardCta_Fields":["InducteeLandingPrimaryCardCta"],"InducteeLandingNoResultsCta_Fields":["InducteeLandingNoResultsCta"],"WithAcfInducteeLanding":["Page","Template_InducteesLandingPage"],"InducteeLanding_Fields":["InducteeLanding"],"InlineRedirectComponentItems_Fields":["InlineRedirectComponentItems"],"InlineRedirectComponent_Fields":["InlineRedirectComponent","FlexiblePageContentContentInlineRedirectLayout"],"InternalExternalCtaField_Fields":["ArtifactComponentCta","CarouselRockHallTvCta","CarouselShopCta","CarouselStoriesCta","CarouseCta","FeatureExhibitsInteractivesCta","GridInducteesComponentCta","InducteeDataImpactFlexibleContentCta","InducteeLandingPrimaryCardCta","InducteeLandingNoResultsCta","InternalExternalCtaField","LabelsCarouselClassesCta","ListInducteesComponentCta","ListingEventsCta","NavigationSettingsFieldsTopLevelNavigationLink","NavigationSettingsFieldsTopLevelNavigationLinkGroupsLinks","NavigationSettingsFieldsT
280icketsCta","NavigationSettingsFieldsMembershipLink","NavigationSettingsFieldsDonateLink","NavigationSettingsFieldsHostEventLink","SearchPageDataNoResultsCta","SearchPageDataNoShopResultsCta","CustomSettingsPressReleaseInducteesCta","TicketPriceFieldsPricingCta","TicketPriceFieldsTicketingMembersTicketLink","TicketPriceFieldsTicketingCta","VideoSingularComponentCta"],"InternalCtaCta_Fields":["InternalCtaCta"],"InternalCta_Fields":["InternalCta"],"IntroComponent_Fields":["InducteeDataIntro","IntroComponent","FlexiblePageContentContentIntroLayout"],"LabelsHoursLabels_Fields":["LabelsHoursLabels"],"LabelsPostTypeLabels_Fields":["LabelsPostTypeLabels"],"LabelsSoundPrompt_Fields":["LabelsSoundPrompt"],"LabelsAriaLabelsFilterScroll_Fields":["LabelsAriaLabelsFilterScroll"],"LabelsAriaLabels_Fields":["LabelsAriaLabels"],"LabelsNewsletterFormGlobalSuccess_Fields":["LabelsNewsletterFormGlobalSuccess"],"LabelsNewsletterFormGlobal_Fields":["LabelsNewsletterFormGlobal"],"LabelsListingInducteesCopyPerformer_Fields":["LabelsListingInducteesCopyPerformer"],"LabelsListingInducteesCopyMusicalInfluence_Fields":["LabelsListingInducteesCopyMusicalInfluence"],"LabelsListingInducteesCopyMusicalExcellence_Fields":["LabelsListingInducteesCopyMusicalExcellence"],"LabelsListingInducteesCopyAhmetErtegunAward_Fields":["LabelsListingInducteesCopyAhmetErtegunAward"],"LabelsListingInducteesCopy_Fields":["LabelsListingInducteesCopy"],"LabelsCarouselClassesCta_Fields":["LabelsCarouselClassesCta"],"LabelsEventPriceLabels_Fields":["LabelsEventPriceLabels"],"LabelsLocationLabels_Fields":["LabelsLocationLabels"],"LabelsConnectedInducteesMembers_Fields":["LabelsConnectedInducteesMembers"],"LabelsConnectedInducteesGroups_Fields":["LabelsConnectedInducteesGroups"],"LabelsConnectedInductees_Fields":["LabelsConnectedInductees"],"WithAcfLabels":["Option"],"Labels_Fields":["Labels"],"ListComponentTextItemsCta_Fields":["ListComponentTextItemsCta"],"ListComponentTextItems_Fields":["ListComponentTextItems"],"ListComponentLinkItemsCta_Fields":["ListComponentLinkItemsCta"],"ListComponentLinkItems_Fields":["ListComponentLinkItems"],"ListComponent_Fields":["ListComponent","FlexiblePageContentContentListLayout"],"ListInducteesComponentNomineesLink_Fields":["ListInducteesComponentNomineesLink"],"ListInducteesComponentNominees_Fields":["ListInducteesComponentNominees"],"ListInducteesComponentCta_Fields":["ListInducteesComponentCta"],"ListInducteesComponent_Fields":["ListInducteesComponent","FlexiblePageContentContentListInducteesLayout"],"ListingEventsCta_Fields":["ListingEventsCta"],"ListingEvents_Fields":["ListingEvents","FlexiblePageContentContentEventsLayout"],"ListingEventsFullComponent_Fields":["ListingEventsFullComponent","FlexiblePageContentContentListingEventsFullLayout"],"ListingPressReleasesComponent_Fields":["ListingPressReleasesComponent","FlexiblePageContentContentListingPressReleasesLayout"],"LogosComponentLogos_Fields":["LogosComponentLogos"],"LogosComponent_Fields":["LogosComponent","FlexiblePageContentContentLogosLayout"],"MilestonesComponentItems_Fields":["MilestonesComponentItems"],"MilestonesComponent_Fields":["MilestonesComponent","FlexiblePageContentContentMilestonesLayout"],"MusicExplorerComponentMusicExplorerAlbumItemsPlaylistCta_Fields":["MusicExplorerComponentMusicExplorerAlbumItemsPlaylistCta"],"MusicExplorerComponentMusicExplorerAlbumItems_Fields":["MusicExplorerComponentMusicExplorerAlbumItems"],"MusicExplorerComponent_Fields":["MusicExplorerComponent"],"NavigationSettingsFieldsTopLevelNavigationLink_Fields":["NavigationSettingsFieldsTopLevelNavigationLink"],"NavigationSettingsFieldsTopLevelNavigationLinkGroupsImageLink_Fields":["NavigationSettingsFieldsTopLevelNavigationLinkGroupsImageLink"],"NavigationSettingsFieldsTopLevelNavigationLinkGroupsLinks_Fields":["NavigationSettingsFieldsTopLevelNavigationLinkGroupsLinks"],"NavigationSettingsFieldsTopLevelNavigationLinkGroups_Fields":["NavigationSettingsFieldsTopLevelNavigationLinkGroups"],"NavigationSettingsFieldsTopLevelNavigation_Fields":["NavigationSettingsFieldsTopLevelNavigation"],"NavigationSettingsFieldsT
280icketsCta_Fields":["NavigationSettingsFieldsTicketsCta"],"NavigationSettingsFieldsMembershipLink_Fields":["NavigationSettingsFieldsMembershipLink"],"NavigationSettingsFieldsDonateLink_Fields":["NavigationSettingsFieldsDonateLink"],"NavigationSettingsFieldsHostEventLink_Fields":["NavigationSettingsFieldsHostEventLink"],"NavigationSettingsFieldsSearchPlaceholders_Fields":["NavigationSettingsFieldsSearchPlaceholders"],"WithAcfNavigationSettingsFields":["Option","Template_NavigationSettings"],"NavigationSettingsFields_Fields":["NavigationSettingsFields"],"WithAcfPageGenerationSettings":["PageGenerationSettings"],"PageGenerationSettings_Fields":[],"WithAcfPressReleaseFields":["PressRelease"],"PressReleaseFields_Fields":["PressReleaseFields"],"PricingComponent_Fields":["PricingComponent","FlexiblePageContentContentPricingLayout"],"PrimaryHeroSlide_Fields":["PrimaryHeroAdditionalSlides","PrimaryHeroSlide"],"QuickLinksComponentLinks_Fields":["QuickLinksComponentLinks"],"QuickLinksComponent_Fields":["QuickLinksComponent","FlexiblePageContentContentQuickLinksLayout"],"QuoteComponent_Fields":["InducteeDataImpactFlexibleContentQuoteLayout","QuoteComponent"],"QuoteCarouselComponentsItemsAttribution_Fields":["QuoteCarouselComponentsItemsAttribution"],"QuoteCarouselComponentsItems_Fields":["QuoteCarouselComponentsItems"],"QuoteCarouselComponents_Fields":["QuoteCarouselComponents","FlexiblePageContentContentQuoteCarouselLayout"],"WithAcfRhtvChannelContent":["RhtvChannel"],"RhtvChannelContent_Fields":["RhtvChannelContent"],"RhtvPageContentRrtvAriaLabels_Fields":["RhtvPageContentRrtvAriaLabels"],"WithAcfRhtvPageContent":["Page","Template_RockHallTV"],"RhtvPageContent_Fields":["RhtvPageContent"],"RhtvVideoContentArtists_Fields":["RhtvVideoContentArtists"],"WithAcfRhtvVideoContent":["RhtvVideo"],"RhtvVideoContent_Fields":["RhtvVideoContent"],"RichTextComponent_Fields":["RichTextComponent","FlexiblePageContentContentRichTextLayout"],"SearchPageDataNoResultsCta_Fields":["SearchPageDataNoResultsCta"],"SearchPageDataNoResults_Fields":["SearchPageDataNoResults"],"SearchPageDataNoShopResultsCta_Fields":["SearchPageDataNoShopResultsCta"],"SearchPageDataNoShopResults_Fields":["SearchPageDataNoShopResults"],"SearchPageDataShopCarousel_Fields":["SearchPageDataShopCarousel"],"WithAcfSearchPageData":["Page"],"SearchPageData_Fields":["SearchPageData"],"SectionEndComponent_Fields":["SectionEndComponent","FlexiblePageContentContentSectionEndLayout"],"CustomSettingsRedirects_Fields":["CustomSettingsRedirects"],"CustomSettingsAddressAddressLines_Fields":["CustomSettingsAddressAddressLines"],"CustomSettingsAddress_Fields":["CustomSettingsAddress"],"CustomSettingsDefaultIdpFeatureItems_Fields":["CustomSettingsDefaultIdpFeatureItems"],"CustomSettingsDefaultIdpFeature_Fields":["CustomSettingsDefaultIdpFeature"],"CustomSettingsCeremonyHero_Fields":["CustomSettingsCeremonyHero"],"CustomSettingsCeremonyFloatSpotlight_Fields":["CustomSettingsCeremonyFloatSpotlight"],"CustomSettingsCeremonyFeatureItems_Fields":["CustomSettingsCeremonyFeatureItems"],"CustomSettingsCeremonyFeature_Fields":["CustomSettingsCeremonyFeature"],"CustomSettingsPressReleaseFeatureItems_Fields":["CustomSettingsPressReleaseFeatureItems"],"CustomSettingsPressReleaseFeature_Fields":["CustomSettingsPressReleaseFeature"],"CustomSettingsPressReleaseInducteesCta_Fields":["CustomSettingsPressReleaseInducteesCta"],"WithAcfCustomSettings":["Option"],"CustomSettings_Fields":["CustomSettings"],"SonicConnectionsFeatureItems_Fields":["SonicConnectionsFeatureItems"],"SonicConnectionsFeature_Fields":["SonicConnectionsFeature"],"SonicConnectionsGridInducteesCta_Fields":["SonicConnectionsGridInducteesCta"],"SonicConnectionsGridInductees_Fields":["SonicConnectionsGridInductees"],"FeatureDataSonicConnections_Fields":["FeatureDataSonicConnections"],"WithAcfFeatureData":["Post"],"FeatureData_Fields":["FeatureData"],"SonicConnectionsTracksImages_Fields":["SonicConnectionsTracksImages"],"SonicConnectionsTracksBlurbs_Fields":["SonicConnectionsTracksBlurbs"],"SonicConnectionsTracks_Fields":["SonicConnectionsTracks"],"SonicConnections_Fields":["FeatureDataSonicConnections","SonicConnections"],"SpotlightComponentImages_Fields":["SpotlightComponentImages"],"SpotlightComponentHeadline_Fields":["SpotlightComponentHeadline"],"SpotlightComponentBody_Fields":["SpotlightComponentBody"],"SpotlightComponent_Fields":["InducteeDataImpactFlexibleContentSpotlightLayout","SpotlightComponent"],"StickyNavComponentItems_Fields":["StickyNavComponentItems"],"StickyNavComponent_Fields":["StickyNavComponent","FlexiblePageContentContentStickyNavLayout"],"TextImageItemsCta_Fields":["TextImageItemsCta"],"TextImageItemsSecondaryCta_Fields":["TextImageItemsSecondaryCta"],"TextImageItems_Fields":["TextImageItems"],"TextImage_Fields":["TextImage","FlexiblePageContentContentTextImageLayout"],"TicketPriceFieldsPricingCta_Fields":["TicketPriceFieldsPricingCta"],"TicketPriceFieldsPricing_Fields":["TicketPriceFieldsPricing"],"TicketPriceFieldsTicketingMembersTicketLink_Fields":["TicketPriceFieldsTicketingMembersTicketLink"],"TicketPriceFieldsTicketingCta_Fields":["TicketPriceFieldsTicketingCta"],"TicketPriceFieldsTicketing_Fields":["TicketPriceFieldsTicketing"],"WithAcfTicketPriceFields":["TicketPrice"],"TicketPriceFields_Fields":["TicketPriceFields"],"TicketingComponentTicketingFormDiscountedTickets_Fields":["TicketingComponentTicketingFormDiscountedTickets"],"TicketingComponentTicketingForm_Fields":["TicketingComponentTicketingForm"],"WithAcfTicketingComponent":["Page"],"TicketingComponent_Fields":["TicketingComponent","FlexiblePageContentContentTicketingLayout"],"TitleComponent_Fields":["TitleComponent","FlexiblePageContentContentTitleLayout"],"VideoCarouselComponentVideos_Fields":["VideoCarouselComponentVideos"],"VideoCarouselComponent_Fields":["CeremonyLandingMediaFlexibleContentVideoCarouselLayout","VideoCarouselComponent","FlexiblePageContentContentVideoCarouselLayout"],"VideoSelectField_Fields":["ArtifactComponentVideoEmbed","VideoSelectField","VideoComponentVideos"],"VideoComponentVideos_Fields":["VideoComponentVideos"],"VideoComponent_Fields":["CeremonyLandingMediaFlexibleContentVideoPlaylistLayout","VideoComponent","FlexiblePageContentContentVideoPlaylistLayout"],"VideoSingularComponentCta_Fields":["VideoSingularComponentCta"],"VideoSingularComponent_Fields":["VideoSingularComponent","FlexiblePageContentContentVideoSingularLayout"],"WififormFormSuccess_Fields":["WififormFormSuccess"],"WififormForm_Fields":["WififormForm"],"Wifiform_Fields":["Wifiform","FlexiblePageContentContentWifiFormLayout"],"WithAcfDetailHero":["Event","Exhibit"],"DetailHero_Fields":["DetailHero"],"WithAcfDigitalExhibitHero":["Digital
280Exhibit"],"DigitalExhibitHero_Fields":["DigitalExhibitHero"],"FlexiblePageContentContent_Layout":["FlexiblePageContentContentAccordionLayout","FlexiblePageContentContentArtifactSingularLayout","FlexiblePageContentContentBannerLayout","FlexiblePageContentContentCarouselInducteesLayout","FlexiblePageContentContentCarouselRhtvLayout","FlexiblePageContentContentCarouselShopLayout","FlexiblePageContentContentCarouselStoriesLayout","FlexiblePageContentContentComparisonTableLayout","FlexiblePageContentContentDetailHeroLayout","FlexiblePageContentContentDonateFormLayout","FlexiblePageContentContentFeatureLayout","FlexiblePageContentContentFeatureEventsLayout","FlexiblePageContentContentFeatureExhibitsInteractivesLayout","FlexiblePageContentContentFloatSpotlightLayout","FlexiblePageContentContentFormEmbedLayout","FlexiblePageContentContentGenericEmbedLayout","FlexiblePageContentContentGoogleMapLayout","FlexiblePageContentContentGridInducteesLayout","FlexiblePageContentContentHeroLayout","FlexiblePageContentContentHoursManualLayout","FlexiblePageContentContentIconGridLayout","FlexiblePageContentContentImageGalleryLayout","FlexiblePageContentContentImageSingularLayout","FlexiblePageContentContentInlineRedirectLayout","FlexiblePageContentContentIntroLayout","FlexiblePageContentContentListLayout","FlexiblePageContentContentListInducteesLayout","FlexiblePageContentContentEventsLayout","FlexiblePageContentContentListingEventsFullLayout","FlexiblePageContentContentListingPressReleasesLayout","FlexiblePageContentContentLogosLayout","FlexiblePageContentContentMilestonesLayout","FlexiblePageContentContentPricingLayout","FlexiblePageContentContentQuickLinksLayout","FlexiblePageContentContentQuoteCarouselLayout","FlexiblePageContentContentRichTextLayout","FlexiblePageContentContentSectionEndLayout","FlexiblePageContentContentStickyNavLayout","FlexiblePageContentContentTextImageLayout","FlexiblePageContentContentTicketingLayout","FlexiblePageContentContentTitleLayout","FlexiblePageContentContentVideoCarouselLayout","FlexiblePageContentContentVideoPlaylistLayout","FlexiblePageContentContentVideoSingularLayout","FlexiblePageContentContentWifiFormLayout"],"FlexiblePageContentContentAccordionLayout_Fields":["FlexiblePageContentContentAccordionLayout"],"FlexiblePageContentContentArtifactSingularLayout_Fields":["FlexiblePageContentContentArtifactSingularLayout"],"FlexiblePageContentContentBannerLayout_Fields":["FlexiblePageContentContentBannerLayout"],"FlexiblePageContentContentCarouselInducteesLayout_Fields":["FlexiblePageContentContentCarouselInducteesLayout"],"FlexiblePageContentContentCarouselRhtvLayout_Fields":["FlexiblePageContentContentCarouselRhtvLayout"],"FlexiblePageContentContentCarouselShopLayout_Fields":["FlexiblePageContentContentCarouselShopLayout"],"FlexiblePageContentContentCarouselStoriesLayout_Fields":["FlexiblePageContentContentCarouselStoriesLayout"],"FlexiblePageContentContentComparisonTableLayout_Fields":["FlexiblePageContentContentComparisonTableLayout"],"FlexiblePageContentContentDetailHeroLayout_Fields":["FlexiblePageContentContentDetailHeroLayout"],"FlexiblePageContentContentDonateFormLayout_Fields":["FlexiblePageContentContentDonateFormLayout"],"FlexiblePageContentContentFeatureLayout_Fields":["FlexiblePageContentContentFeatureLayout"],"FlexiblePageContentContentFeatureEventsLayout_Fields":["FlexiblePageContentContentFeatureEventsLayout"],"FlexiblePageContentContentFeatureExhibitsInteractivesLayout_Fields":["FlexiblePageContentContentFeatureExhibitsInteractivesLayout"],"FlexiblePageContentContentFloatSpotlightLayout_Fields":["FlexiblePageContentContentFloatSpotlightLayout"],"FlexiblePageContentContentFormEmbedLayout_Fields":["FlexiblePageContentContentFormEmbedLayout"],"FlexiblePageContentContentGenericEmbedLayout_Fields":["FlexiblePageContentContentGenericEmbedLayout"],"GoogleMapComponentFooter_Fields":["GoogleMapComponentFooter"],"FlexiblePageContentContentGoogleMapLayout_Fields":["FlexiblePageContentContentGoogleMapLayout"],"FlexiblePageContentContentGridInducteesLayout_Fields":["FlexiblePageContentContentGridInducteesLayout"],"FlexiblePageContentContentHeroLayout_Fields":["FlexiblePageContentContentHeroLayout"],"FlexiblePageContentContentHoursManualLayout_Fields":["FlexiblePageContentContentHoursManualLayout"],"IcongridFooter_Fields":["IcongridFooter"],"FlexiblePageContentContentIconGridLayout_Fields":["FlexiblePageContentContentIconGridLayout"],"FlexiblePageContentContentImageGalleryLayout_Fields":["FlexiblePageContentContentImageGalleryLayout"],"ImageSingularComponentFooter_Fields":["ImageSingularComponentFooter"],"FlexiblePageContentContentImageSingularLayout_Fields":["FlexiblePageContentContentImageSingularLayout"],"FlexiblePageContentContentInlineRedirectLayout_Fields":["FlexiblePageContentContentInlineRedirectLayout"],"FlexiblePageContentContentIntroLayout_Fields":["FlexiblePageContentContentIntroLayout"],"FlexiblePageContentContentListLayout_Fields":["FlexiblePageContentContentListLayout"],"FlexiblePageContentContentListInducteesLayout_Fields":["FlexiblePageContentContentListInducteesLayout"],"FlexiblePageContentContentEventsLayout_Fields":["FlexiblePageContentContentEventsLayout"],"FlexiblePageContentContentListingEventsFullLayout_Fields":["FlexiblePageContentContentListingEventsFullLayout"],"FlexiblePageContentContentListingPressReleasesLayout_Fields":["FlexiblePageContentContentListingPressReleasesLayout"],"FlexiblePageContentContentLogosLayout_Fields":["FlexiblePageContentContentLogosLayout"],"MilestonesComponentFooter_Fields":["MilestonesComponentFooter"],"FlexiblePageContentContentMilestonesLayout_Fields":["FlexiblePageContentContentMilestonesLayout"],"FlexiblePageContentContentPricingLayout_Fields":["FlexiblePageContentContentPricingLayout"],"FlexiblePageContentContentQuickLinksLayout_Fields":["FlexiblePageContentContentQuickLinksLayout"],"FlexiblePageContentContentQuoteCarouselLayout_Fields":["FlexiblePageContentContentQuoteCarouselLayout"],"FlexiblePageContentContentRichTextLayout_Fields":["FlexiblePageContentContentRichTextLayout"],"FlexiblePageContentContentSectionEndLayout_Fields":["FlexiblePageContentContentSectionEndLayout"],"FlexiblePageContentContentStickyNavLayout_Fields":["FlexiblePageContentContentStickyNavLayout"],"FlexiblePageContentContentTextImageLayout_Fields":["FlexiblePageContentContentTextImageLayout"],"FlexiblePageContentContentTicketingLayout_Fields":["FlexiblePageContentContentTicketingLayout"],"FlexiblePageContentContentTitleLayout_Fields":["FlexiblePageContentContentTitleLayout"],"FlexiblePageContentContentVideoCarouselLayout_Fields":["FlexiblePageContentContentVideoCarouselLayout"],"FlexiblePageContentContentVideoPlaylistLayout_Fields":["FlexiblePageContentContentVideoPlaylistLayout"],"FlexiblePageContentContentVideoSingularLayout_Fields":["FlexiblePageContentContentVideoSingularLayout"],"FlexiblePageContentContentWifiFormLayout_Fields":["FlexiblePageContentContentWifiFormLayout"],"WithAcfFlexiblePageContent":["Event","Exhibit","Page","PressRelease"],"FlexiblePageContent_Fields":["FlexiblePageContent"],"Digital
280ExhibitContentIntro_Fields":["DigitalExhibitContentIntro"],"DigitalExhibitContentModules_Layout":["DigitalExhibitContentModulesCardGalleryLayout","DigitalExhibitContentModulesCarouselHighlightLayout","DigitalExhibitContentModulesBigTextLayout","DigitalExhibitContentModulesDeepDiveLayout","DigitalExhibitContentModulesMusicExplorerLayout"],"DigitalExhibitContentModulesCardGalleryLayout_Fields":["DigitalExhibitContentModulesCardGalleryLayout"],"DigitalExhibitContentModulesCarouselHighlightLayout_Fields":["DigitalExhibitContentModulesCarouselHighlightLayout"],"DigitalExhibitContentModulesBigTextLayout_Fields":["DigitalExhibitContentModulesBigTextLayout"],"DigitalExhibitContentModulesDeepDiveLayout_Fields":["DigitalExhibitContentModulesDeepDiveLayout"],"DigitalExhibitContentModulesMusicExplorerAlbumItems_Fields":["DigitalExhibitContentModulesMusicExplorerAlbumItems"],"DigitalExhibitContentModulesMusicExplorerLayout_Fields":["DigitalExhibitContentModulesMusicExplorerLayout"],"DigitalExhibitContentPageEnderCta_Fields":["DigitalExhibitContentPageEnderCta"],"DigitalExhibitContentPageEnderInductees_Fields":["DigitalExhibitContentPageEnderInductees"],"DigitalExhibitContentPageEnderShop_Fields":["DigitalExhibitContentPageEnderShop"],"DigitalExhibitContentPageEnder_Fields":["DigitalExhibitContentPageEnder"],"WithAcfDigitalExhibitContent":["DigitalExhibit"],"DigitalExhibitContent_Fields":["DigitalExhibitContent"],"ACFE_AdvancedLink":["ACFE_AdvancedLink_Url","ACFE_AdvancedLink_ContentNode","ACFE_AdvancedLink_TermNode"]}');class id{apply(e){let{addFilter:t}=e;t("resolvedUrl","rockhall",e=>{let t=/^\/([a-z]{2})?\/?inductees\/classes\/(\d{4})\/?$/,n=/^\/([a-z]{2})?\/?inductees\/classes\/?$/,i=e.match(t),r=e.match(n);if(i){let e=i[1]?i[1]:"",t=i[2];return"/".concat(e?e+"/":"","ceremony/").concat(t,"/")}if(r){let e=r&&r[1]?r[1]:"";return"/".concat(e?e+"/":"","inductees/")}return e})}}class ih{apply(e){let{addFilter:t}=e;t("resolvedUrl","rockhall",e=>e.match(/^\/rrtv\/c\/[^\/]+(?:\/v\/[^\/]+)?/)?"/rrtv/"+new URL(e,"http://dummy").search:e)}}function ip(){let e=(0,ee._)(['\n query GetSeedNode(\n $id: ID! = 0\n $uri: String! = ""\n $asPreview: Boolean = false\n $language: String! = "en"\n ) {\n ... on RootQuery @skip(if: $asPreview) {\n rhNodeByUri(uri: $uri, language: $language) {\n __typename\n ...GetNode\n }\n }\n ... on RootQuery @include(if: $asPreview) {\n contentNode(id: $id, idType: DATABASE_ID, asPreview: true) {\n __typename\n ...GetNode\n }\n }\n }\n\n fragment GetNode on UniformResourceIdentifiable {\n __typename\n uri\n id\n ...DatabaseIdentifier\n ...ContentType\n ...User\n ...TermNode\n ...ContentNode\n ...MediaItem\n ...Page\n }\n\n fragment DatabaseIdentifier on DatabaseIdentifier {\n databaseId\n }\n\n fragment MediaItem on MediaItem {\n id\n mimeType\n }\n\n fragment ContentType on ContentType {\n name\n isFrontPage\n\n # This is currently broken. The home page (blog page) can not be\n # resolved when set to a custom page until the below issue is resolved.\n # Link: https://github.com/wp-graphql/wp-graphql/issues/2514\n isPostsPage\n }\n\n fragment Page on Page {\n isFrontPage\n isPostsPage\n }\n\n fragment TermNode on TermNode {\n isTermNode\n slug\n taxonomyName\n }\n\n fragment ContentNode on ContentNode {\n isContentNode\n slug\n contentType {\n node {\n name\n }\n }\n template {\n templateName\n }\n }\n\n fragment User on User {\n name\n userId\n databaseId\n }\n']);return ip=function(){return e},e}var im=(0,et.Ps)(ip());let ig=/^\/(en|es)(\/|$)/;class iv{apply(e){let{addFilter:t}=e;t("resolvedUrl","rockhall",e=>e.match(ig)?e.replace(ig,"/"):e),t("seedQueryDocumentNode","rockhall",(e,t)=>im)}}var iy=n(97582),i_=n(48702),ib=n(48216);function ix(e){var t=e||{},n=t.initial,i=void 0===n?300:n,r=t.jitter,a=void 0===r||r,s=t.max,o=void 0===s?1/0:s,l=a?i:i/2;return function(e){var t=Math.min(o,l*Math.pow(2,e));return a&&(t=Math.random()*t),t}}function iC(e){var t=e||{},n=t.retryIf,i=t.max,r=void 0===i?5:i;return function(e,t,i){return!(e>=r)&&(n?n(i,t):!!i)}}var iE=n(30990),iw=function(){function e(e,t,n,i,r){var a=this;this.observer=e,this.operation=t,this.forward=n,this.delayFor=i,this.retryIf=r,this.retryCount=0,this.currentSubscription=null,this.onError=function(e){return(0,iy.mG)(a,void 0,void 0,function(){return(0,iy.Jh)(this,function(t){switch(t.label){case 0:return this.retryCount+=1,[4,this.retryIf(this.retryCount,this.operation,e)];case 1:if(t.sent())return this.scheduleRetry(this.delayFor(this.retryCount,this.operation,e)),[2];return this.observer.error(e),[2]}})})},this.try()}return e.prototype.cancel=function(){this.currentSubscription&&this.currentSubscription.unsubscribe(),clearTimeout(this.timerId),this.timerId=void 0,this.currentSubscription=null},e.prototype.try=function(){var e=this;this.currentSubscription=this.forward(this.operation).subscribe({next:function(t){var n;if((0,iE.ls)(t)){e.onError(new iE.cA({protocolErrors:t.extensions[iE.YG]})),null===(n=e.currentSubscription)||void 0===n||n.unsubscribe();return}e.observer.next(t)},error:this.onError,complete:this.observer.complete.bind(this.observer)})},e.prototype.scheduleRetry=function(e){var t=this;if(this.timerId)throw Error("RetryLink BUG! Encountered overlapping retries");this.timerId=setTimeout(function(){t.timerId=void 0,t.try()},e)},e}(),iT=function(e){function t(t){var n=e.call(this)||this,i=t||{},r=i.attempts,a=i.delay;return n.delayFor="function"==typeof a?a:ix(a),n.retryIf="function"==typeof r?r:iC(r),n}return(0,iy.ZT)(t,e),t.prototype.request=function(e,t){var n=this;return new ib.y(function(i){var r=new iw(i,e,t,n.delayFor,n.retryIf);return function(){r.cancel()}})},t}(i_.i);let iS=/already been associated with another query/i;class iL{apply(e){e.addFilter("apolloClientOptions","rockhall",e=>{let t=new iT({delay:{initial:150,max:2e3,jitter:!0},attempts:{max:5,retryIf:e=>{var t,n,i;if(!e||500!==(null!==(i=e.statusCode)&&void 0!==i?i:null===(t=e.response)||void 0===t?void 0:t.status))return!1;let r=[];"string"==typeof e.message&&r.push(e.message);let a=null===(n=e.result)||void 0===n?void 0:n.errors;
280return Array.isArray(a)&&a.forEach(e=>{(null==e?void 0:e.message)&&r.push(e.message)}),r.some(e=>iS.test(e))}}}),n=e.link?t.concat(e.link):t;return{...e,link:n}})}}var iP=n(83454);function iM(e){let{Component:t,pageProps:n,router:i}=e,s=d()(o().variable,u().variable),l=(0,a.useMemo)(()=>{let e=/^\/(?:[a-z]{2}\/)?inductees(?:\/classes\/?)?\/?$/;return i.asPath.match(e)?"/inductees/":i.asPath.includes("rrtv")?q.df:i.asPath.split(/[?#]/)[0]},[i.asPath]);(0,a.useMemo)(()=>{i.prefetch=async()=>{}},[i]),(0,a.useEffect)(()=>{let e=()=>{document.body.classList.add("touch"),window.removeEventListener("touchstart",e)};return window.addEventListener("touchstart",e,{passive:!0}),()=>{window.removeEventListener("touchstart",e)}},[]);let c=!P(null==n?void 0:n.__SEED_NODE__);return G(),(0,r.jsxs)(f.Ou,{pageProps:n,children:[(0,r.jsx)(p.r,{children:(0,r.jsxs)(L.v,{children:[c&&(0,r.jsx)(B,{}),(0,r.jsx)(F.Ae,{children:(0,r.jsx)(N.L8,{children:(0,r.jsx)(m.Sj,{children:(0,r.jsx)(O.W,{children:(0,r.jsxs)(D,{...n,className:s,children:[(0,r.jsx)("div",{id:"portal"}),(0,r.jsx)(h.M,{mode:"wait",children:(0,a.createElement)(t,{...n,key:l})})]})})})})})]})}),(0,r.jsx)(z,{})]})}(0,f.v6)({templates:iu,plugins:[new id,new ih,new iv,..."off"===iP.env.PQ_RETRY?[]:[new iL]],experimentalToolbar:!1,usePersistedQueries:!0,possibleTypes:ic})},47371:function(e,t,n){"use strict";n.d(t,{B:function(){return C},e:function(){return x}});var i=n(85893),r=n(67294),a=n(30120),s=n(11163),o=n(15799);let l=(0,r.createContext)(void 0),u=(e,t,n)=>{let i=a.ou.fromISO(e,{zone:"utc"}).setLocale(n),r=a.ou.fromISO(t,{zone:"utc"}).setLocale(n),s=i.toFormat("LLLL"),o=r.toFormat("LLLL");return"".concat(s," - ").concat(o)},c=e=>["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].indexOf(e.toLowerCase()),d=(e,t)=>{let n=c(e);return a.ou.fromObject({year:2023,month:1,day:1},{locale:t}).plus({days:n}).setLocale(t).toFormat("cccc")},h=(e,t)=>"".concat(null==e?void 0:e.replace(":00 ","")," - ").concat(null==t?void 0:t.replace(":00 ","")),f=(e,t)=>{if(!e.length)return[];let n={};e.forEach(e=>{let{day:t,openTime:i,closeTime:r}=e,a="".concat(i,"-").concat(r);n[a]||(n[a]=[]),n[a].push(t)});let i=[];return Object.entries(n).forEach(e=>{let[n,r]=e,[a,s]=n.split("-"),o=r.sort((e,t)=>c(e)-c(t)),l=[],u=[o[0]];for(let e=1;e<o.length;e++){let t=c(o[e-1]);c(o[e])===t+1?u.push(o[e]):(l.push(u),u=[o[e]])}l.push(u);let f="";l.forEach((e,n)=>{n>0&&(f+=", "),1===e.length?f+=d(e[0],t):2===e.length?f+="".concat(d(e[0],t)," & ").concat(d(e[1],t)):f+="".concat(d(e[0],t)," â ").concat(d(e[e.length-1],t))}),i.push({label:f,startDay:c(o[0]),endDay:c(o[o.length-1]),timeRange:h(a,s),openTime:a,closeTime:s})}),i},p=e=>{if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},m=(e,t)=>{let n=a.ou.fromISO(e,{zone:"utc"}),i=n.toFormat("cccc"),r=n.toFormat("LLLL"),s=n.day,o="".concat(s).concat(p(s));if(t){let e=a.ou.fromISO(t,{zone:"utc"}).day,n="".concat(e).concat(p(e));return"".concat(i,", ").concat(r," ").concat(o," â ").concat(n)}return"".concat(i,", ").concat(r," ").concat(o)},g=e=>e&&e.length?e.map(e=>{var t;let n="",i="",r=!1;return e.dateType.includes("custom")?(n=e.customLabel||"Special Date",i=e.customValue||"CLOSED",r=!0):e.dateType.includes("basic")&&e.startDate&&(n=m(e.startDate,e.endDate||void 0),i=e.openTime&&e.closeTime?h(e.openTime,e.closeTime):"CLOSED",r=!1),{startDate:e.startDate,endDate:e.endDate,relatedDates:null===(t=e.relatedDates)||void 0===t?void 0:t.map(e=>e.date),label:n,openTime:e.openTime,closeTime:e.closeTime,timeRange:i,isCustom:r}}).filter(e=>e.label&&e.timeRange).sort((e,t)=>{if(!e.isCustom&&!t.isCustom&&(null==e?void 0:e.startDate)&&(null==t?void 0:t.startDate)){let n=a.ou.fromISO(e.startDate,{zone:"utc"}),i=a.ou.fromISO(t.startDate,{zone:"utc"});return n.toMillis()-i.toMillis()}return e.isCustom&&!t.isCustom?1:!e.isCustom&&t.isCustom?-1:0}).map(e=>{let{isCustom:t,endDate:n,startDate:i,label:r,relatedDates:a,openTime:s,closeTime:o,timeRange:l}=e;return{label:r,timeRange:l,openTime:s,relatedDates:a,closeTime:o,startDate:i,endDate:n,isCustom:t}}):[],v=(e,t)=>
280{let{monthRanges:n}=(null==e?void 0:e.hours)||{};return n?n.map(e=>{let n=a.ou.fromISO(e.startMonth||"",{zone:"utc"}),i=a.ou.fromISO(e.endMonth||"",{zone:"utc"}),r=i<n,s=u(e.startMonth||"",e.endMonth||"",t),o=n.toFormat("LLLL"),l=i.toFormat("LLLL"),c=n.month-1,d=r?i.month-1+12:i.month-1,h=[],p=e.dailyHours;p&&Object.entries(p).forEach(e=>{let[t,n]=e;"__typename"!==t&&n&&"object"==typeof n&&"openTime"in n&&"closeTime"in n&&n.openTime&&n.closeTime&&h.push({day:t,openTime:n.openTime,closeTime:n.closeTime})});let m=f(h,t);return{monthLabel:s,startMonth:e.startMonth||"",endMonth:e.endMonth||"",startMonthName:o,endMonthName:l,startMonthIndex:c,endMonthIndex:d,dayRanges:m}}):[]},y=(e,t)=>e.find(e=>{let n=t.month-1,i=t.year;if(e.endMonthIndex>11){let r=a.ou.fromISO(e.startMonth,{zone:"utc"}),s=e.endMonthIndex-12,o=n<s?i:i+1,l=a.ou.fromObject({year:o,month:s+1,day:1},{zone:"utc"}).endOf("month");return t>=r&&t<=l}return e.startMonthIndex<=n&&n<=e.endMonthIndex}),_=(e,t,n)=>{n.month;let i=n.weekday%7,r=n.toISODate(),s=t.find(e=>{if(e.isCustom&&e.relatedDates&&e.relatedDates.some(e=>a.ou.fromISO(e,{zone:"utc"}).toISODate()===r))return{startDate:e.startDate,endDate:e.endDate,relatedDates:e.relatedDates,label:e.label,openTime:null,closeTime:null,isCustom:!0};if(!e.startDate)return!1;let t=a.ou.fromISO(e.startDate,{zone:"utc"}).toISODate();if(!e.endDate)return r===t;let n=a.ou.fromISO(e.endDate,{zone:"utc"}).toISODate();return r>=t&&r<=n});if(s){var o,l;let e=a.ou.fromISO(s.startDate,{zone:"utc"}),t=e.toFormat("LLL"),n=e.day;return{startDateLabel:"".concat(t," ").concat(n),timeRange:null==s?void 0:s.timeRange,openTime:(null==s?void 0:s.openTime)||"",closeTime:(null==s?void 0:s.closeTime)||"",openTimeLabel:null==s?void 0:null===(o=s.openTime)||void 0===o?void 0:o.replace(":00 ",""),closeTimeLabel:null==s?void 0:null===(l=s.closeTime)||void 0===l?void 0:l.replace(":00 ",""),isCustom:null==s?void 0:s.isCustom}}let u=y(e,n);if(!u)return null;let c=u.dayRanges.find(e=>i>=e.startDay&&i<=e.endDay);if(c){let e=a.ou.fromISO(n.toISODate(),{zone:"utc"}),t=e.toFormat("LLL"),i=e.day;return{startDateLabel:"".concat(t," ").concat(i),timeRange:c.timeRange,openTime:c.openTime,openTimeLabel:c.openTime.replace(":00 ",""),closeTime:c.closeTime,closeTimeLabel:c.closeTime.replace(":00 ",""),isCustom:!1}}return null},b=e=>{let t;if(e&&"string"==typeof e){if(!(t=a.ou.fromISO(e,{zone:"America/New_York"})).isValid||0===t.hour&&0===t.minute&&0===t.second){let e=a.ou.now().setZone("America/New_York");t=t.set({hour:e.hour,minute:e.minute,second:e.second,millisecond:e.millisecond})}}else t=a.ou.now().setZone("America/New_York");return t},x=e=>{let{children:t,businessHours:n}=e,u=(0,s.useRouter)(),{query:{current_date:c,debug_hours:d}}=u,h=(0,r.useMemo)(()=>b(c),[c]),f=(0,r.useMemo)(()=>"true"===d,[d,u.query,u.isReady]),[p,m]=(0,r.useState)(!0),{specialHours:x}=(null==n?void 0:n.hours)||{},C=(0,r.useMemo)(()=>(0,o.Dy)(u.asPath),[u.asPath]),E=(0,r.useCallback)((e,t)=>{},[f]),w=(0,r.useMemo)(()=>v(n,C),[n]);E("Processed month ranges",w);let T=(0,r.useMemo)(()=>g(null==x?void 0:x.specialDates),[n]);E("Processed special dates",T);let S=(0,r.useMemo)(()=>(E("Processing today's business hours",{currentDateTime:h.toISO()}),_(w,T,h)),[w,null==x?void 0:x.specialDates]),L=(0,r.useMemo)(()=>!!((null==S?void 0:S.openTime)&&(null==S?void 0:S.closeTime)),[S]),P=(0,r.useMemo)(()=>{let e=null,t=!0,n=30,i=h.plus({days:1});for(;!(null==e?void 0:e.openTime)&&n>0;){let r=_(w,T,i);(null==r?void 0:r.openTime)?e=r:(E("No business hours found for ".concat(i.toISODate(),", checking next day...")),i=i.plus({days:1}),E("Next date to check: ".concat(i.toISODate())),t=!1),n--}return E("Next open hours found",e),E("Open tomorrow status",t),m(t),e},[w,null==x?void 0:x.specialDates,h]),M=(0,r.useMemo)(()=>{if(!S)return!1;let{openTime:e,closeTime:t}=S;if(!e||!t)return!1;let n=h.setZone("America/New_York"),i=a.ou.fromFormat("".concat(h.toISODate()," ").concat(e),"yyyy-MM-dd h:mm a",{zone:"America/New_York"}),r=a.ou.fromFormat("".concat(h.toISODate()," ").concat(t),"yyyy-MM-dd h:mm a",{zone:"America/Ne
280w_York"}),s=n>=i&&n<=r;return E("Checking if currently open: ".concat(n," >= ").concat(i," && ").concat(n," <= ").concat(r),{currentlyOpen:s}),s},[S,h]),A=(0,r.useMemo)(()=>{if(!S)return!1;let{openTime:e,closeTime:t}=S;if(!e||!t)return!1;let n=h.setZone("America/New_York"),i=a.ou.fromFormat("".concat(h.toISODate()," ").concat(t),"yyyy-MM-dd h:mm a",{zone:"America/New_York"}),r=n>i;return E("Checking if after business hours: ".concat(n," > ").concat(i),{afterBusinessHours:r}),r},[S,h]),I=(0,r.useMemo)(()=>{if(!S)return!1;let{openTime:e}=S;if(!e)return!1;let t=h.setZone("America/New_York"),n=a.ou.fromFormat("".concat(h.toISODate()," ").concat(e),"yyyy-MM-dd h:mm a",{zone:"America/New_York"}),i=n.minus({hours:4}),r=t<n&&t>=i;return E("Checking if before business hours (within 4 hours): ".concat(t," < ").concat(n," && ").concat(t," >= ").concat(i),{beforeBusinessHours:r}),r},[S,h]),R=(0,r.useMemo)(()=>y(w,h),[w,h]);return(0,i.jsx)(l.Provider,{value:{specialDates:{dates:T,label:null==x?void 0:x.label},currentDateTime:h,businessHours:n,processedRanges:w,nextOpenHours:P,openToday:L,currentMonthRange:R,openTomorrow:p,todaysHours:S,afterBusinessHours:A,beforeBusinessHours:I,currentlyOpen:M},children:t})},C=()=>(0,r.useContext)(l)||{currentlyOpen:!1,beforeBusinessHours:!1,afterBusinessHours:!1,openToday:!1,openTomorrow:!1,businessHours:null,currentDateTime:a.ou.now().setZone("America/New_York"),processedRanges:[],currentMonthRange:{monthLabel:"",startMonth:"",endMonth:"",startMonthName:"",endMonthName:"",startMonthIndex:0,endMonthIndex:0,dayRanges:[]},todaysHours:null,nextOpenHours:null,specialDates:{dates:[],label:""}}},15414:function(e,t,n){"use strict";n.d(t,{W:function(){return o},a:function(){return l}});var i=n(85893),r=n(67294),a=n(39583);let s=(0,r.createContext)(void 0),o=e=>{let{children:t,elementSelector:n=".carousel-paging"}=e,[o,l]=(0,r.useState)(0),u=(0,r.useRef)(n),c=(0,r.useRef)(null),{viewWidth:d}=(0,a.dg)(),h=()=>{c.current&&l(c.current.getBoundingClientRect().left)},f=e=>{let t=e||document.querySelector(u.current);t&&(c.current=t,h())},p=e=>{u.current=e,f()};(0,r.useEffect)(()=>{h()},[d]);let m=(0,r.useMemo)(()=>({offsetLeft:o,updateOffsetLeft:h,updateContainerEl:f,setElementSelector:p}),[o]);return(0,i.jsx)(s.Provider,{value:m,children:t})},l=()=>(0,r.useContext)(s)||{offsetLeft:0,updateOffsetLeft:()=>{},updateContainerEl:()=>{},setElementSelector:()=>{}}},87048:function(e,t,n){"use strict";n.d(t,{F:function(){return o},r:function(){return s}});var i=n(85893),r=n(67294);let a=(0,r.createContext)(void 0),s=e=>{let{children:t}=e,[n,s]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let e=null,t=null,n=()=>{window.innerWidth&&window.innerWidth>0?s(!0):(e=window.requestAnimationFrame(n),null==t&&(t=window.setTimeout(()=>{s(!0)},300)))};return n(),()=>{null!=e&&window.cancelAnimationFrame(e),null!=t&&window.clearTimeout(t)}},[]),(0,i.jsx)(a.Provider,{value:{mounted:n},children:t})},o=()=>(0,r.useContext)(a)||{mounted:!1}},88515:function(e,t,n){"use strict";n.d(t,{BX:function(){return d},mZ:function(){return l},vW:function(){return c}});var i=n(85893),r=n(67294);let a="playing",s=new Set,o=e=>{a=e,s.forEach(t=>t(e))},l=()=>{let[e,t]=(0,r.useState)(a);return(0,r.useEffect)(()=>{let e=e=>t(e);return s.add(e),()=>{s.delete(e)}},[]),e},u=(0,r.createContext)(void 0),c=e=>{var t;let{children:n,options:a}=e,[s]=(0,r.useState)(null==a?void 0:null===(t=a.coverStoryGridSize)||void 0===t?void 0:t[0]),[l,c]=(0,r.useState)([]),[d,h]=(0,r.useState)("playing"),f=e=>{h(e),o(e)},p=async()=>{try{let e=await fetch("/api/cover-story/albums/"),t=await e.json();c(t.albums)}catch(e){}};(0,r.useEffect)(()=>{p()},[]);let m=(0,r.useMemo)(()=>({gridSize:s,allAlbums:l,gameState:d,setGameState:f}),[s,l,d]);return(0,i.jsx)(u.Provider,{value:m,children:n})},d=()=>(0,r.useContext)(u)||{gridSize:"",allAlbums:[],gameState:"playing",setGameState:()=>{}}},24983:function(e,t,n){"use strict";n.d(t,{I:function(){return l},g:function(){return u}});var i=n(85893),r=n(15799),a=n(11163),s=n(67294);let o=(0,s.createContext)(void 0),l=e=>{let{children:t}
280=e,n=(0,a.useRouter)(),[l,u]=(0,s.useState)(!1),[c,d]=(0,s.useState)(null),[h,f]=(0,s.useState)(!0),[p,m]=(0,s.useState)(!1),[g,v]=(0,s.useState)(!1),[y,_]=(0,s.useState)(!1),[b,x]=(0,s.useState)(!0),[C,E]=(0,s.useState)(!1),w=(0,s.useRef)(null),[T,S]=(0,s.useState)(null),[L]=(0,s.useState)((0,r.Dy)(n.asPath)),P={isScrolled:l,setIsScrolled:u,scrollDirection:c,setScrollDirection:e=>{d(e),f("up"===e)},canExpandDropdown:b,setCanExpandDropdown:x,currentLanguage:L,menuExpanded:C,headerVisible:h,expandedMenu:T,setExpandedMenu:S,setHeaderVisible:f,setHeaderRef:e=>{e?w.current=e:w.current=null},setIsHeaderFixed:m,isHeaderFixed:p,headerRef:w,ignoreScroll:g,setIgnoreScroll:v,dropdownExpanded:y,setDropdownExpanded:_,setMenuExpanded:E};return(0,i.jsx)(o.Provider,{value:P,children:t})},u=()=>(0,s.useContext)(o)||{isScrolled:!1,headerVisible:!0,isHeaderFixed:!1,ignoreScroll:!1,scrollDirection:null,canExpandDropdown:!1,currentLanguage:"en",expandedMenu:null,headerRef:{current:null},setExpandedMenu:()=>{},setCanExpandDropdown:()=>{},setIsScrolled:()=>{},setHeaderVisible:()=>{},setIsHeaderFixed:()=>{},setIgnoreScroll:()=>{},setDropdownExpanded:()=>{},setMenuExpanded:()=>{},setHeaderRef:()=>{},setScrollDirection:()=>{}}},94483:function(e,t,n){"use strict";n.d(t,{R:function(){return s},Z:function(){return o}});var i=n(85893),r=n(67294);let a=(0,r.createContext)(void 0),s=e=>{let{children:t}=e,[n,s]=(0,r.useState)(null),[o,l]=(0,r.useState)(null),[u,c]=(0,r.useState)(null),[d,h]=(0,r.useState)(0),[f,p]=(0,r.useState)(!1),[m,g]=(0,r.useState)(!1),[v,y]=(0,r.useState)([]),[_,b]=(0,r.useState)(!0),x=async()=>{let e=await fetch("/api/all-inductees/");e.ok&&(y(await e.json()),b(!1))};return(0,r.useEffect)(()=>{x()},[]),(0,i.jsx)(a.Provider,{value:{headlineEl:n,setHeadlineEl:s,headerEl:o,setHeaderEl:l,contentEl:u,setContentEl:c,setScrollCoef:h,scrollCoef:d,tabAffix:f,setTabAffix:p,extraFixedTab:m,setExtraFixedTab:g,allInductees:v,inducteesLoading:_},children:t})},o=()=>(0,r.useContext)(a)||{headlineEl:null,headerEl:null,contentEl:null,setHeadlineEl:()=>{},setHeaderEl:()=>{},setContentEl:()=>{},setScrollCoef:()=>{},scrollCoef:0,tabAffix:!1,setTabAffix:()=>{},extraFixedTab:!1,setExtraFixedTab:()=>{},allInductees:[],inducteesLoading:!0}},96761:function(e,t,n){"use strict";n.d(t,{k:function(){return l},v:function(){return o}});var i=n(85893),r=n(67294),a=n(11163);let s=(0,r.createContext)(void 0),o=e=>{let{children:t}=e,n=(0,a.useRouter)(),[o,l]=(0,r.useState)(!1),[u,c]=(0,r.useState)(n.asPath.includes("preview=true")),d=(0,r.useCallback)((e,t)=>{let{shallow:i}=t;i||e===n.asPath||l(!0)},[n]),h=()=>{setTimeout(()=>{l(!1)},100)};return(0,r.useEffect)(()=>(n.events.on("routeChangeStart",d),n.events.on("routeChangeComplete",h),n.events.on("routeChangeError",h),()=>{n.events.off("routeChangeStart",d),n.events.off("routeChangeComplete",h),n.events.off("routeChangeError",h)}),[n]),(0,i.jsx)(s.Provider,{value:{isLoading:o,previewLoading:u,setPreviewLoading:c},children:t})},l=()=>(0,r.useContext)(s)||{isLoading:!1,previewLoading:!1,setPreviewLoading:()=>{}}},81388:function(e,t,n){"use strict";n.d(t,{i:function(){return o},t:function(){return s}});var i=n(85893),r=n(67294);let a=(0,r.createContext)(null),s=e=>{let{children:t}=e,[n,s]=(0,r.useState)({x:0,y:0,scrollY:0});return(0,r.useEffect)(()=>{let e=e=>{s(t=>({...t,x:e.clientX,y:e.clientY}))},t=()=>{s(e=>({...e,scrollY:window.scrollY}))};return s(e=>({...e,scrollY:window.scrollY})),window.addEventListener("mousemove",e),window.addEventListener("scroll",t),()=>{window.removeEventListener("mousemove",e),window.removeEventListener("scroll",t)}},[]),(0,i.jsx)(a.Provider,{value:n,children:t})},o=()=>(0,r.useContext)(a)},42875:function(e,t,n){"use strict";n.d(t,{$h:function(){return o},IS:function(){return l}});var i=n(85893),r=n(67294);let a={highlightColor:"",setHighlightColor:()=>{}},s=(0,r.createContext)(a),o=()=>(0,r.useContext)(s)||a,l=e=>{let{children:t}=e,[n,o]=(0,r.useState)(a.highlightColor);return(0,i.jsx)(s.Provider,{value:{highlightColor:n,setHighlightColor:o},children:t})}},83177:function(e,t,n){"use strict";n.d(t,{O:function(){return s},i:function(){return o}});var i=n(85893),r=n(67294);let a=(0,r.createContext)(void 0),s=e=>{let{globalLabels:t,siteSettings:n,upcomingEvents:s,todaysEvents:o,eventTypes:l,children:u}=e,c=(0,r.useMemo)(()=>{var e;return{labels:(null==t?void 0:t.labels)||{},siteSettings:(null==n?void 0:n.customSettings)||{},featuredInductees:(null==n?void 0:n.featuredInductees)||{nodes:[]},siteTitle:(null==n?void 0:null===(e=n.customSettings)||void 0===e?void 0:e.siteTitle)||"Rock & Roll Hall of Fame",eventTypes:l||{nodes:[]},todaysEvents:o||[],upcomingEvents:s||[]}},[t,n,s,o,l]);return(0,i.jsx)(a.Provider,{value:c,children:u})},o=()=>(0,r.useContext)(a)||{labels:{},siteSettings:{},featuredInductees:{nodes:[]},eventTypes:{nodes:[]},siteTitle:"Rock & Roll Hall of Fame",todaysEvents:[],upcomingEvents:[]}},47021:function(e,t,n){"use strict";n.d(t,{j:function(){return s},x:function(){return o}});var i=n(85893),r=n(67294);let a=(0,r.createContext)(void 0),s=e=>{let{children:t}=e,[n,s]=(0,r.useState)(null);return(0,i.jsx)(a.Provider,{value:{footerRef:n,setFooterRef:s},children:t})},o=()=>(0,r.useContext)(a)||{footerRef:null,setFooterRef:()=>{}}},9917:function(e,t,n){"use strict";n.d(t,{fB:function(){return l},g1:function(){return u}});var i=n(85893),r=n(67294),a=n(11163),s=n(81221);let o=(0,r.createContext)(void 0),l=e=>{let{children:t,channels:n=[],defaultChannel:l=null,defaultVideo:u=null}=e,[c,d]=(0,r.useState)(l),[h,f]=(0,r.useState)(u),[p,m]=(0,r.useState)(!1),g=(0,a.useRouter)(),v=(0,r.useRef)(g.asPath),y=(0,r.useCallback)(e=>{let{channelSlug:t,videoSlug:n}=e||{},i=s.df;t&&n&&(i+="c/".concat(t,"/v/").concat(n));let r=new URLSearchParams(window.location.search).toString();r&&(i+="?".concat(r)),v.current!==i&&g.asPath!==i&&(v.current=i,g.replace(i,void 0,{shallow:!0,scroll:!1}))},[g]),_=(0,r.useCallback)(e=>{d(e)},[]),b=(0,r.useCallback)(e=>{f(e),c&&e&&y({channelSlug:c.slug,videoSlug:e.slug})},[c,y]);(0,r.useEffect)(()=>{g.asPath.startsWith(s.df)&&g.asPath!==v.current&&(v.current=g.asPath)},[g.asPath]);let x={channels:n,activeChannel:c,activeVideo:h,showModal:p,setA
280ctiveChannel:_,setActiveVideo:b,setShowModal:m,updateRHTVRoute:y};return(0,i.jsx)(o.Provider,{value:x,children:t})},u=()=>{let e=(0,r.useContext)(o);if(void 0===e)throw Error("useRockHallTV must be used within a RockHallTVProvider");return e}},59447:function(e,t,n){"use strict";n.d(t,{I:function(){return s},v:function(){return o}});var i=n(85893),r=n(67294);let a=(0,r.createContext)(void 0),s=e=>{let{children:t}=e,[n,s]=(0,r.useState)(0),[o,l]=(0,r.useState)(0),u=()=>{let e=window.scrollY;e<0&&(e=0),s(e)};return(0,r.useEffect)(()=>(window.addEventListener("scroll",u),()=>window.removeEventListener("scroll",u)),[]),(0,i.jsx)(a.Provider,{value:{scrollY:n,lastScrollY:o,setLastScrollY:l},children:t})},o=()=>(0,r.useContext)(a)||{scrollY:0,lastScrollY:0,setLastScrollY:()=>{}}},270:function(e,t,n){"use strict";n.d(t,{X:function(){return p},R:function(){return m}});var i=n(85893),r=n(67294),a=n(30138),s=n(82729),o=n(44819);function l(){let e=(0,s._)(["\n ",'\n query Search($searchTerm: String!, $language: String = "en", $size: Int = 9999, $offset: Int = 0, $exclude: [ID!] = [], $pageCategoryFilters: [ID!] = []) {\n search(\n where: {\n contentTypes: [CEREMONY, EVENT, EXHIBIT, PAGE, POST, INDUCTEE, RHTV_VIDEO, RHTV_CHANNEL, PRESS_RELEASE]\n search: $searchTerm,\n language: $language,\n pageCategoryFilters: $pageCategoryFilters,\n excludeFrontPage: true,\n excludeIds: $exclude,\n status: PUBLISH, \n offsetPagination: {size: $size, offset: $offset}\n }\n ) {\n pageInfo {\n hasNextPage\n total\n }\n termCounts {\n termId\n termSlug\n count\n }\n nodes {\n contentTypeName\n ... on NodeWithTitle {\n title\n }\n ... on ContentNode {\n uri\n slug\n databaseId\n }\n ... on RhtvVideo {\n title\n slug\n rhtvVideoContent {\n videoTitle\n youtubeVideoId\n channels(first: 1) {\n nodes {\n uri\n }\n }\n thumbnail {\n ...ACFMedia\n }\n }\n }\n ... on RhtvChannel {\n title\n uri\n rhtvChannelContent {\n thumbnail {\n ...ACFMedia\n }\n }\n }\n ... on ContentNode {\n pageData {\n featuredImage {\n ...ACFMedia\n }\n pageCategory {\n name\n slug\n }\n }\n }\n }\n shopifyProducts {\n title\n onlineStoreUrl\n featuredImage {\n url\n }\n priceRange {\n minVariantPrice {\n amount\n currencyCode\n }\n maxVariantPrice {\n amount\n currencyCode\n }\n }\n }\n }\n }\n']);return l=function(){return e},e}let u=(0,n(68806).Ps)(l(),o.ab);var c=n(11163),d=n(15799),h=n(72862);let f=(0,r.createContext)(void 0),p=e=>{let{children:t}=e,n=(0,c.useRouter)(),[s,o]=(0,r.useState)(""),[l,p]=(0,r.useState)(""),m=(0,r.useRef)(""),g=(0,r.useRef)(!1),[v,y]=(0,r.useState)(0),[_,b]=(0,r.useState)(0),[x,C]=(0,r.useState)(!1),[E,w]=(0,r.useState)(!1),[T,S]=(0,r.useState)([]),[L,P]=(0,r.useState)(!1),M=(0,r.useRef)(1),[A,I]=(0,r.useState)(1),R=(0,r.useRef)(!1),[k,D]=(0,r.useState)(!1),N=8,F=3,O=(0,r.useRef)([]),[j,U]=(0,r.useState)(!1),[V,B]=(0,r.useState)(!1),[H,G]=(0,r.useState)([]),[z,q]=(0,r.useState)([]),W=(0,r.useMemo)(()=>(0,d.Dy)(n.asPath),[n.asPath]),$=(0,r.useMemo)(()=>W&&"en"!==W?"/".concat(W,"/search"):"/search",[W]),[Z,Y]=(0,r.useState)([]),[K,X]=(0,r.useState)([]),{trackSearch:Q}=(0,h.rS)(),J=(0,r.useRef)(new Map),ee=(0,r.useRef)(new Map),et=50,[en]=(0,a.t)(u),ei=()=>new URLSearchParams(window.location.search).has("searchViaGraphql"),er=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(ei())return en({variables:{searchTerm:e,language:W,pageCategoryFilters:t,offset:0}});let n=new URLSearchParams({s:e});W&&n.set("language",W),t.length&&n.set("filters",t.join(","));let i=n.toString(),r=J.current.get(i);if(r)return{data:r};let a=ee.current.get(i);if(a)return a;let s=(async()=>{let e=await fetch("/api/search/?".concat(i));if(!e.ok)throw Error("Search request failed: ".concat(e.status));let t=await e.json();return(null==t?void 0:t.search)&&!t.shopifyFailed&&(J.current.size>=et&&J.current.delete(J.current.keys().next().value),J.current.set(i,t)),{data:t}})();ee.current.set(i,s);try{return await s}finally{ee.current.delete(i)}},ea=e=>{O.current=e},es=e=>{I(e),M.current=e},eo=e=>{g.current=e},el=()=>{o(""),w(!1),B(!1),p(""),m.current="",M.current=1,setTimeout(()=>{Y([]),G([]),X([])},350)},eu=()=>{z.length&&(es(1),G(z),y(_),w(!0))},ec=async e=>{e?(Q(e,!0),m.current=e,B(!0),er(e).then(t=>{var n,i,r,a,s;let{data:o}=t;m.current===e&&((null==o?void 0:null===(n=o.search)||void 0===n?void 0:n.nodes.length)?(Y(o.search.nodes.slice(0,F)),R.current?(q(o.search.nodes),S(o.search.termCounts||[]),b(null===(a=o.search.pageInfo)||void 0===a?void 0:a.total)):(G(o.search.nodes),y(null===(r=o.search.pageInfo)||void 0===r?void 0:r.total),S(o.search.termCounts||[]))):Y([]),X(null!==(s=null==o?void 0:null===(i=o.search)||void 0===i?void 0:i.shopifyProducts)&&void 0!==s?s:[]),p(e),w(!0),B(!1))}).catch(t=>{m.current===e&&B(!1)})):Y([])},ed=(0,r.useRef)(""),eh=async(e,t)=>{if(e){Q(e,!1),U(!0);let n="".concat(e,"|").concat((t||[]).join(","));ed.current=n,er(e,t||[]).then(t=>{var i,r,a;let{data:s}=t;ed.current===n&&((null==s?void 0:null===(i=s.search)||void 0===i?void 0:i.nodes)?(G(s.search.nodes),y(null===(r=s.search.pageInfo)||void 0===r?void 0:r.total),S(s.search.termCounts||[]),X(null!==(a=s.search.shopifyProducts)&&void 0!==a?a:[])):(G([]),y(0),X([])),o(e),p(e),U(!1),w(!0))}).catch(e=>{ed.current===n&&(U(!1),w(!0))})}else G([]),y(0),U(!1)};return(0,r.useEffect)(()=>{R.current=k},[k]),(0,i.jsx)(f.Provider,{value:{loading:j,searchTerm:s,lastSearchTerm:l,hasSearched:E,perPage:N,termCounts:T,results:H,searchPath:$,language:W,ignoreSearch:L,isSearchPage:k,resultsCount:v,autoCompleteLoading:V,goingToSearch:g.current,currentPage:A,autoCompleteResults:Z,shopResults:K,setSearchTerm:o,setGoingToSearch:eo,setIgnoreSearch:P,resetSearch:el,setHasSearched:w,updateResults:eu,setExclude:ea,setResults:G,setShopResults:X,setIsSearchPage:D,fetchAutoCompleteResults:ec,setCurrentPage:es,fetchSearchResults:eh,setShowSearchTray:C,showSearchTray:x},children:t})},m=()=>(0,r.useContext)(f)||{loading:!1,autoCompleteLoading:!1,hasSearched:!1,searchTerm:"",language:"en",searchPath:"/search",termCounts:[],lastSearchTerm:"",showSearchTray:!1,resultsCount:0,isSearchPage:!1,ignoreSearch:!1,perPage:6,currentPage:1,goingToSearch:!1,results:[],autoCompleteResults:[],shopResults:[],resetSearch:()=>{},updateResults:()=>{},setIgnoreSearch:()=>{},setIsSearchPage:()=>{},setExclude:()=>{},setCurrentPage:()=>{},setHasSearched:()=>{},setSearchTerm:()=>{},setShowSearchTray:()=>{},setGoingToSearch:()=>{},setResults:()=>{},setShopResults:()=>{},fetchAutoCompleteResults:()=>{},fetchSearchResults:()=>{}}},81334:function(e,t,n){"use strict";n.d(t,{Sj:function(){return d},je:function(){return h}});var i=n(85893),r=n(67294),a=n(39583),s=n(87048);let o=.75,l="globalVolume",u="soundDenied",c=(0,r.createContext)(void 0),d=e=>{let{children:t}=e,{isDesktop:n,isReady:d}=(0,a.dg)(),{mounted:h}=(0,s.F)(),[f,p]=(0,r.useState)(()=>{{let e=localStorage.getItem(l);return e?parseFloat(e):o}}),[m,g]=(0,r.useState)(!1),[v,y]=(0,r.useState)(!1),[_,b]=(0,r.useState)(!1),x=(0,r.useRef)(!1);(0,r.useEffect)(()=>{"true"===localStorage.getItem(u)&&b(!0)},[]),(0,r.useEffect)(()=>
280{!x.current&&d&&h&&(y(!n),x.current=!0)},[n,d,h]);let C=(0,r.useRef)(new Map),E=(0,r.useCallback)(e=>{g(e),n&&y(e),e?localStorage.removeItem(u):localStorage.setItem(u,"true")},[n]),w=(0,r.useCallback)(e=>{let t=Math.max(0,Math.min(1,e));p(t),localStorage.setItem(l,t.toString()),C.current.forEach(e=>{try{e.volume=t}catch(e){}})},[]),T=(0,r.useCallback)((e,t)=>{C.current.set(e,t);try{t.volume=f}catch(e){}},[f]),S=(0,r.useCallback)(e=>{C.current.delete(e)},[]);(0,r.useEffect)(()=>{C.current.forEach(e=>{try{e.volume=f}catch(e){}})},[f]);let L={soundEnabled:m,rrtvSoundEnabled:v,setSoundEnabled:E,hasInteracted:_,setHasInteracted:b,globalVolume:f,setGlobalVolume:w,registerAudioElement:T,unregisterAudioElement:S};return(0,i.jsx)(c.Provider,{value:L,children:t})},h=()=>(0,r.useContext)(c)||{soundEnabled:!1,rrtvSoundEnabled:!1,setSoundEnabled:()=>{},hasInteracted:!1,setHasInteracted:()=>{},globalVolume:o,setGlobalVolume:()=>{},registerAudioElement:()=>{},unregisterAudioElement:()=>{}}},72862:function(e,t,n){"use strict";n.d(t,{L8:function(){return u},O2:function(){return d},rS:function(){return c}});var i=n(85893);let r=e=>{let{asPath:t,query:n}=e,i=["_ga","_gl","gclid","utm_id","utm_source","utm_medium","utm_campaign","utm_source_platform","utm_content","utm_term","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],r=[/.{4}@.{4}/i,/.{4}%40.{4}/i,/.{4}%2540.{4}/i],{protocol:a,hostname:s}=window.location,o=document.title,l=t.split("?")[0].split("#")[0].toLowerCase(),u=new URLSearchParams;for(let e in n)if(i.includes(e)){let t=Array.isArray(n[e])?n[e].join(","):n[e];t&&u.set(e,t)}let c=e=>r.some(t=>t.test(e));c(l)&&(l=l.split("/").map(e=>c(e)?"REDACTED_EMAIL":e).join("/")),u.forEach((e,t)=>{c(e)&&u.set(t,"REDACTED_EMAIL")});let d=null==s?void 0:s.toLowerCase().replace("www.",""),h=null==u?void 0:u.toString();return h&&(l+="?".concat(h)),{pageLocationClean:"".concat(a,"//").concat(d).concat(l),pageTitleClean:o}};var a=n(11163),s=n(67294),o=n(58291);let l=(0,s.createContext)(void 0),u=e=>{let{children:t}=e,n=(0,a.useRouter)(),u=(0,s.useRef)(!0),c=(0,s.useRef)(null),d=(0,s.useRef)(0),h=(0,s.useRef)(new Set),f=(0,s.useRef)([25,50,75,90,100]),p=(0,s.useRef)((0,o.PI)("debugTracking")),m=(0,s.useRef)((0,o.PI)("emitPageReady")),g=(0,s.useCallback)((e,t)=>{var n;null===(n=window.dataLayer)||void 0===n||n.push({event:e,...t}),p.current},[p.current]),v=(e,t)=>{g("site_search_submit",{search_term:e.trim().toLowerCase(),autocomplete_used:t?"true":"false"})},y=(0,s.useCallback)(()=>{d.current=Date.now()+1e3,h.current.clear(),p.current,g("scroll_depth",{scroll_percentage:"0%"})},[n]),_=(0,s.useCallback)(e=>{let{pageLocationClean:t,pageTitleClean:i}=r(n);if(m.current){let e=new CustomEvent("page_ready");window.dispatchEvent(e)}if(u.current){u.current=!1;let n={pageLocationClean:t,pageTitleClean:i,pageCategory:e||"uncategorized"};c.current&&(n.pageReferrer=c.current),g("",n),y(),c.current=t;return}p.current,g("manual_page_view",{pageReferrer:c.current,pageLocationClean:t,pageTitleClean:i,pageCategory:e||"uncategorized"}),y(),c.current=t},[n]);return(0,s.useEffect)(()=>{let e=()=>{let e=Math.max(0,window.scrollY);if(Date.now()>=d.current&&n.isReady){let t=(e+window.innerHeight)/(Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)-1)*100;for(let e of f.current)t>=e&&!h.current.has(e)&&(h.current.add(e),p.current,g("scroll_depth",{scroll_percentage:"".concat(e,"%")}))}};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[n.isReady]),(0,i.jsx)(l.Provider,{value:{trackSearch:v,trackRouteChange:_},children:t})},c=()=>(0,s.useContext)(l)||{trackSearch:()=>{},trackRouteChange:()=>{}},d=e=>{let t=(0,a.useRouter)(),{trackRouteChange:n}=c();(0,s.useEffect)(()=>{t.isReady&&n(e)},[t.isReady])}},60055:function(e,t,n){"use strict";n.d(t,{V:function(){return p},p:function(){return f}});var i=n(85893),r=n(67294),a=n(11163);let s=(0,r.createContext)(void 0);window.__rhYtApiAllowed=!1;let o="functional",l="rh-video-consent",u=["functional","analytics"],c=["functional","analytics","performance","advertisement","other"],d=e=>{let t=!1;
280return c.forEach(n=>{let i=e.includes(n);["ckySwitch","ckyCategoryDirect"].forEach(e=>{let r=document.getElementById("".concat(e).concat(n));r&&(r.checked=i,t=!0)})}),t},h=()=>{var e,t,n;let i=null===(e=(t=window).getCkyConsent)||void 0===e?void 0:e.call(t);if(i)return!!(i.isUserActionCompleted&&(null===(n=i.categories)||void 0===n?void 0:n[o]));try{return"granted"===window.localStorage.getItem(l)}catch(e){return!1}},f=e=>{var t;let{children:n}=e,o=(0,a.useRouter)(),c=(null==o?void 0:null===(t=o.query)||void 0===t?void 0:t.v)==="vimeo"?"vimeo":"consent",[f,p]=(0,r.useState)(!1),[m,g]=(0,r.useState)(null);(0,r.useEffect)(()=>{p(h());let e=()=>p(h());return document.addEventListener("cookieyes_consent_update",e),()=>document.removeEventListener("cookieyes_consent_update",e)},[]),(0,r.useEffect)(()=>(window.__rhYtApiAllowed="vimeo"!==c&&f,()=>{window.__rhYtApiAllowed=!1}),[c,f]);let v=(0,r.useCallback)(e=>{let t=window.performBannerAction;if("function"==typeof t&&d(u))t("accept_partial");else try{window.localStorage.setItem(l,"granted")}catch(e){}g(null!=e?e:null),p(!0)},[]);return(0,i.jsx)(s.Provider,{value:{mode:c,consented:f,granterToken:m,accept:v},children:n})},p=()=>(0,r.useContext)(s)||{mode:"consent",consented:!0,granterToken:null,accept:()=>{}}},39583:function(e,t,n){"use strict";n.d(t,{Ae:function(){return p},dG:function(){return u},dg:function(){return m},wQ:function(){return d}});var i=n(85893),r=n(67294),a=n(4149),s=n.n(a),o=n(23279),l=n.n(o);let u=767,c=768,d=1024,h=1025,f=(0,r.createContext)(void 0),p=e=>{let{children:t}=e,[n,a]=(0,r.useState)(0),[o,p]=(0,r.useState)(0),[m,g]=(0,r.useState)(!1),[v,y]=(0,r.useState)(!1),[_,b]=(0,r.useState)(!1),[x,C]=(0,r.useState)(!1),[E,w]=(0,r.useState)(!1),T=()=>{s().measure(()=>{let e=window.innerWidth,t=window.innerHeight;a(e),p(t),g(e<=u),y(e>=c&&e<=d),b(e>=h),w(!0)})};(0,r.useEffect)(()=>{let e=l()(T,50);return T(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e),e.cancel()}},[]),(0,r.useEffect)(()=>{(()=>{var e;C("ontouchstart"in window||(null===(e=navigator)||void 0===e?void 0:e.maxTouchPoints)>0)})()},[]);let S={viewWidth:n,viewHeight:o,isMobile:m,isTablet:v,isDesktop:_,isTouchDevice:x,isReady:E};return(0,i.jsx)(f.Provider,{value:S,children:t})},m=()=>(0,r.useContext)(f)||{viewWidth:0,viewHeight:0,isMobile:!1,isTablet:!1,isDesktop:!1,isTouchDevice:!1,isReady:!1}},517:function(e,t,n){"use strict";n.d(t,{V:function(){return s},v:function(){return o}});var i=n(85893),r=n(67294);let a=(0,r.createContext)(void 0),s=e=>{let{children:t}=e,[n,s]=(0,r.useState)(null),o={video:n,setCurrentVideo:e=>{s(e)},clearVideo:()=>{s(null)}};return(0,i.jsx)(a.Provider,{value:o,children:t})},o=()=>(0,r.useContext)(a)||{video:null,setCurrentVideo:()=>{},clearVideo:()=>{}}},92576:function(e,t,n){"use strict";n.d(t,{xE:function(){return h},JJ:function(){return p},Q7:function(){return c},QW:function(){return o}});var i=n(82729),r=n(44819),a=n(68806);function s(){let e=(0,i._)(["\n ",'\n query GetCoverStoryOptions($language: String!) {\n coverStoryLandingPage: pageBy(uri: "/cover-story") {\n uri\n }\n coverStoryOptions: localizedOptionPage(slug: "cover-story", language: $language) {\n coverStoryOptions {\n coverStoryGridSize\n coverStoryListHeadline\n coverStoryListSubhead\n coverStoryListLabels {\n solvedPlural\n solvedSingular\n resume\n lost\n playMore\n }\n soundPopupOverride\n searchPlacholder\n incorrectGuess\n finalGuess\n coverStoryDetailOgImage {\n ...ACFMedia\n }\n howToModal {\n eyebrow\n headline\n ctaLabel\n stepOne {\n headline\n subhead\n }\n stepTwo {\n headline\n subhead\n }\n stepThree {\n headline\n subhead\n }\n }\n tileCount {\n plural\n singular\n }\n coverStoryEndScreenHeadline {\n singular\n plural\n }\n coverStoryEndScreenIncorrect {\n headline\n subhead\n }\n coverStoryEndScreenButtonLabels {\n shop\n share\n playMore\n copied\n cursorText\n }\n coverStoryEndScreenBanner {\n type\n largeBorder\n eyebrow\n headline\n subhead\n link {\n linkType\n externalLink\n sectionId\n page {\n node {\n uri\n }\n }\n }\n }\n coverStoryEndScreenTileText {\n tiles0 {\n subhead\n }\n tiles1 {\n subhead\n }\n tiles2Through4 {\n subhead\n }\n tiles5Through7 {\n subhead\n }\n tiles8Through10 {\n subhead\n }\n }\n ariaLabels {\n playGame\n showInstructions\n clearInput\n submitInput\n }\n }\n }\n }\n']);return s=function(){return e},e}var o=(0,a.Ps)(s(),r.ab),l=n(35605);function u(){let e=(0,i._)(["\n ",'\n query GetCoverStoryPageData($databaseId: ID!, $asPreview: Boolean = false, $language: String = "en") {\n rhPage(id: $databaseId, asPreview: $asPreview, language: $language) {\n title\n uri\n ...PageData\n featuredCoverStory {\n databaseId\n title\n uri\n gameData {\n gameNumber\n coverStoryDate\n }\n }\n coverStoryLanding {\n coverStoryHero {\n headline\n subhead\n ctaLabel\n resumeCtaLabel\n solvedCtaLabel\n lostCtaLabel\n image {\n ...ACFMedia\n }\n }\n }\n }\n coverStories(where: { language: $language, filterCoverStoryByDate: true, offsetPagination: { size: 15, offset: 1 }}) {\n pageInfo {\n offsetPagination {\n hasMore\n total\n }\n }\n nodes {\n databaseId\n title\n uri\n gameData {\n gameNumber\n coverStoryDate\n }\n }\n }\n }\n']);return u=function(){return e},e}var c=(0,a.Ps)(u(),l.X);function d(){let e=(0,i._)(['\n query GetCoverStories($language: String = "en", $size: Int = 15, $offset: Int = 0, $notIn: [ID!] = []) {\n coverStories(\n where: {\
280n language: $language,\n notIn: $notIn,\n filterCoverStoryByDate: true\n offsetPagination: {\n size: $size\n offset: $offset\n }\n }\n ) {\n pageInfo {\n offsetPagination {\n hasMore\n total\n }\n }\n nodes {\n databaseId\n title\n uri\n gameData {\n gameNumber\n coverStoryDate\n }\n }\n }\n }\n']);return d=function(){return e},e}var h=(0,a.Ps)(d());function f(){let e=(0,i._)(["\n ",'\n query GetCoverStoryDetail($databaseId: ID!, $language: String = "en") {\n rhCoverStory(id: $databaseId, language: $language) {\n databaseId\n title\n gameData {\n gameNumber\n coverStoryDate\n audio\n albumFormatted {\n album\n artist\n }\n coverStoryAlbumImage\n coverStoryVinylShopLink\n artistFeature {\n image {\n ...ACFMedia\n }\n body {\n text\n }\n cta {\n linkType\n externalLink\n label\n page {\n node {\n uri\n }\n }\n }\n }\n }\n }\n }\n']);return f=function(){return e},e}var p=(0,a.Ps)(f(),r.ab)},29366:function(e,t,n){"use strict";n.d(t,{LL:function(){return a},Tm:function(){return r}});var i=n(43397);let r="subtle",a={once:!0,opacity:0,ease:i.w2,sm:{distance:"5rem",duration:.72,delay:.08,ease:i.w2,triggerPercent:.2},lg:{distance:"7rem",duration:.64,delay:.35,ease:i.w2,triggerPercent:.2},ImageAnim:{duplicates:[{scale:.85},{scale:.75},{scale:.65}],duration:.9,ease:"power3.out"},HeadlineAnim:{charDistance:"100%",charOpacity:1,duration:.9,ease:"power3.out",stagger:.014}}},31853:function(e,t,n){"use strict";n.d(t,{Hz:function(){return s},f:function(){return i},xF:function(){return a}});let i="reduceMotion",r="reduceMotion";function a(){{let e=localStorage.getItem(r);if(null!==e)return JSON.parse(e)}return!1}function s(e){if(localStorage.setItem(r,JSON.stringify(e)),"undefined"!=typeof BroadcastChannel){let t=new BroadcastChannel(i);t.postMessage({checked:e}),t.close()}}},22424:function(e,t,n){"use strict";n.d(t,{r:function(){return i}});let i=()=>"undefined"!=typeof navigator&&"function"==typeof navigator.share&&/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)&&navigator.maxTouchPoints>0},58291:function(e,t,n){"use strict";function i(e,t){if(!window.location)return t;try{let n=new URLSearchParams(window.location.search||"").get(e);if(null===n)return t;let i=Number(n);return Number.isNaN(i)?t:i}catch(e){return t}}function r(e,t){if(!window.location)return t;try{let n=new URLSearchParams(window.location.search||"").get(e);return null===n?t:n}catch(e){return t}}function a(e){if(!window.location)return!1;try{return new URLSearchParams(window.location.search||"").has(e)}catch(e){return!1}}n.d(t,{O8:function(){return r},PI:function(){return a},lX:function(){return i}})},22372:function(e,t,n){"use strict";n.d(t,{q:function(){return r}});let i=()=>void 0!==window.location,r=e=>{let{name:t,bgColor:n,textColor:r,enabled:a}=e;return{log:function(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];a&&i()&&"background:".concat(n,";color:").concat(r||"black",";padding:4px 10px;border-radius:4px;")}}}},17594:function(e,t,n){"use strict";n.d(t,{H:function(){return s}});var i=n(67294),r=n(43775),a=n(68563);function s(){let{root:e,rootRef:t,debounceMs:n=150,triggersRef:r,enabled:s=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,i.useEffect)(()=>{var i,o,l,u;if(!s||t&&!t.current)return;let c=null!==(u=null!=e?e:null==t?void 0:t.current)&&void 0!==u?u:document,d=0,h=null,f=!1,p=0,m=Date.now(),g=0,v=4,y=1e3,_=()=>{let e=Date.now();!f&&(e-m>y&&(m=e,g=0),g>=v||(h&&clearTimeout(h),h=setTimeout(()=>{d=requestAnimationFrame(()=>{f=!0;try{(null==r?void 0:r.current)&&r.current.length>0?r.current.forEach(e=>{try{null==e||e.refresh()}catch(e){}}
280):c instanceof HTMLElement?a.i.getAll().forEach(e=>{let t=e.trigger,n=e.scrollingElement;(t&&(t===c||c.contains(t))||n&&(n===c||c.contains(n)))&&e.refresh()}):a.i.refresh(),p=Date.now(),g++}finally{setTimeout(()=>{f=!1},80)}})},n)))},b=[],x=[],C=e=>{let t=new ResizeObserver(()=>_());t.observe(e),b.push(t),x.push(e)};c instanceof Document?C(document.documentElement):c instanceof HTMLElement&&C(c);let E=new MutationObserver(e=>{e.some(e=>"childList"===e.type||"attributes"===e.type&&/style|class/.test(e.attributeName||""))&&_()}),w=c instanceof HTMLElement?c:document.documentElement;E.observe(w,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}),(e=>{Array.from(e.querySelectorAll("img")||[]).forEach(e=>{e.complete||(e.addEventListener("load",_,{once:!0}),e.addEventListener("error",_,{once:!0}))})})(c),(null===(i=document.fonts)||void 0===i?void 0:i.ready)&&document.fonts.ready.then(_).catch(()=>{}),null===(l=document.fonts)||void 0===l||null===(o=l.addEventListener)||void 0===o||o.call(l,"loadingdone",_);let T=e=>{e.propertyName&&/height|width|top|bottom|left|right|margin|padding|transform/.test(e.propertyName)&&_()};(c instanceof HTMLElement?c:document.body).addEventListener("transitionend",T,!0);let S=()=>_();return window.addEventListener("load",S),()=>{h&&clearTimeout(h),cancelAnimationFrame(d),f=!1,b.forEach(e=>e.disconnect()),E.disconnect(),(c instanceof HTMLElement?c:document.body).removeEventListener("transitionend",T,!0),window.removeEventListener("load",S)}},[e,null==t?void 0:t.current,n,r])}r.ZP.registerPlugin(a.i)},66432:function(e,t,n){"use strict";n.d(t,{Kg:function(){return s},SA:function(){return o},r5:function(){return a}});let i=()=>"https://rockhall25.wpenginepowered.com",r=()=>"https://rockhall.com";function a(e){if(!e)return;let t=i();return t&&e.startsWith(t)?"/api/wp-media".concat(encodeURI(e.slice(t.length))):e}function s(e){let t=a(e);return t&&t.startsWith("/api/wp-media")?"".concat(r()).concat(t):t}function o(e){if(e)return e.split(",").map(e=>{let t=e.trim(),n=t.match(/\s+(\d+(?:\.\d+)?[wx])$/),i=n?t.slice(0,n.index):t,r=n?n[1]:void 0,s=a(i);return r?"".concat(s," ").concat(r):s}).join(", ")}},22141:function(e){e.exports={accordion:"Accordion_accordion__heJes",header:"Accordion_header__d_v7I","accordion-item":"Accordion_accordion-item__gv6Vx","accordion-button":"Accordion_accordion-button__MruRt",text:"Accordion_text__vGQzq",subhead:"Accordion_subhead__AqsYv","icon-container":"Accordion_icon-container__5K3kh",icon:"Accordion_icon__cNiYt",vertical:"Accordion_vertical__JfHXT",open:"Accordion_open__g1jxn",horizontal:"Accordion_horizontal__28iC6",hover:"Accordion_hover__ZL0kc",content:"Accordion_content__il9x9","content-inner":"Accordion_content-inner__87Bhu",image:"Accordion_image__XwlWe",body:"Accordion_body__SYjFL"}},26844:function(e){e.exports={"artifact-paper":"ArtifactPaper_artifact-paper__BQWev",content:"ArtifactPaper_content__IUyW_",content__text:"ArtifactPaper_content__text__OWUrP",title:"ArtifactPaper_title__5jmtj",eyebrow:"ArtifactPaper_eyebrow__me6pb",title__lines:"ArtifactPaper_title__lines__QRaPZ",line:"ArtifactPaper_line__PwuZH","title__lines__line-0":"ArtifactPaper_title__lines__line-0__mf_IR","title__lines__line-1":"ArtifactPaper_title__lines__line-1__R_4tR","title__lines__line-2":"ArtifactPaper_title__lines__line-2__IPY3_",body:"ArtifactPaper_body__mv_tg","body__p-container":"ArtifactPaper_body__p-container__iGoW2",content__imagery:"ArtifactPaper_content__imagery__oa96y","image-wrapper":"ArtifactPaper_image-wrapper__Z_CeU","image-container":"ArtifactPaper_image-container__T14_E","media-right":"ArtifactPaper_media-right__w8X6P","artifact-paper-modal":"ArtifactPaper_artifact-paper-modal__PQ0KI","close-button":"ArtifactPaper_close-button__XCBIo",circle:"ArtifactPaper_circle__GJYzs",icon:"ArtifactPaper_icon__r7orU",hover:"ArtifactPaper_hover__qohkN","artifact-paper-modal__content":"ArtifactPaper_artifact-paper-modal__content__Fx_tQ",slide:"ArtifactPaper_slide__q0YYs",bottom:"ArtifactPaper_bottom__PwGcp",pagination:"ArtifactPaper_pagination__fRiJC","modal-image-bg":"ArtifactPaper_modal-image-bg__cLfY1","modal-image-container":"ArtifactPaper_modal-image-container__9PlsC","modal-image":"ArtifactPaper_modal-image__F4iIK","modal-caption":"ArtifactPaper_modal-caption__Qs6kJ"}},63556:function(e){e.exports={"artifact-singular":"ArtifactSingular_artifact-singular__xlODA",content:"ArtifactSingular_content__xhKuZ",title:"ArtifactSingular_title__Phuhi",eyebrow:"ArtifactSingular_eyebrow__xJQXN",title__lines:"ArtifactSingular_title__lines__UGAwA",line:"ArtifactSingular_line__ZuBAQ","title__lines__line-0":"ArtifactSingular_title__lines__line-0__202qm","t
280itle__lines__line-1":"ArtifactSingular_title__lines__line-1__fJ_Xr","title__lines__line-2":"ArtifactSingular_title__lines__line-2__bPKq7",body:"ArtifactSingular_body__zg7De","body__p-container":"ArtifactSingular_body__p-container__CWF_c",artifact__artifact:"ArtifactSingular_artifact__artifact__wCLaM",video:"ArtifactSingular_video__3aNIB","consent-gate__headline":"ArtifactSingular_consent-gate__headline__u_s54","variant-image-right":"ArtifactSingular_variant-image-right__XQALS",artifact__imagery:"ArtifactSingular_artifact__imagery__Vwx5V","variant-image-left":"ArtifactSingular_variant-image-left__vsgm7","artifact-singular-image-right__desktop":"ArtifactSingular_artifact-singular-image-right__desktop__87JJg","copy-col":"ArtifactSingular_copy-col__veMIt",copy:"ArtifactSingular_copy__VFrpa","artifact-col":"ArtifactSingular_artifact-col__JlGce","variant-image-bottom":"ArtifactSingular_variant-image-bottom__4cxu8"}},19690:function(e){e.exports={banner:"Banner_banner__jid0L",link:"Banner_link__DZ_Qp","large-border":"Banner_large-border__mvZ_Y",hover:"Banner_hover__K2nVG",border:"Banner_border__gcPic",eyebrow:"Banner_eyebrow__vBXUZ",title:"Banner_title__yiq9O",body:"Banner_body__XMKrS",arrow:"Banner_arrow__z4MrT",content:"Banner_content__EKH5J"}},94385:function(e){e.exports={"brand-chip":"BrandChip_brand-chip__C_oQ2",active:"BrandChip_active__WhKnz",hover:"BrandChip_hover__idtJ0"}},61666:function(e){e.exports={button:"Button_button__8B4nB",small:"Button_small__3B0kO",label:"Button_label__YUlJz",icon:"Button_icon__V37WX","mobile-collapse":"Button_mobile-collapse___N4EM",hover:"Button_hover__IJg_v"}},77537:function(e){e.exports={"cant-unhear-it":"CantUnhearIt_cant-unhear-it__a3WsN",tracks:"CantUnhearIt_tracks__v1JY9","cant-unhear-it-container":"CantUnhearIt_cant-unhear-it-container__5nm0T","scroll-indicator":"CantUnhearIt_scroll-indicator__huFZs","scroll-indicator-desktop":"CantUnhearIt_scroll-indicator-desktop__5jBD9",wheel:"CantUnhearIt_wheel___qCXS","scroll-wheel":"CantUnhearIt_scroll-wheel__UmCz3","scroll-indicator-mobile":"CantUnhearIt_scroll-indicator-mobile__HtLNY"}},2097:function(e){e.exports={"cant-unhear-it__background-container":"CantUnhearItBackground_cant-unhear-it__background-container__6Y04T","cant-unhear-it__background":"CantUnhearItBackground_cant-unhear-it__background__Yh3AR",subhead:"CantUnhearItBackground_subhead__hUrqt","cant-unhear-it__black-over":"CantUnhearItBackground_cant-unhear-it__black-over__SFhZm","cant-unhear-it__background-images":"CantUnhearItBackground_cant-unhear-it__background-images__BNiP2","cant-unhear-it__background-image":"CantUnhearItBackground_cant-unhear-it__background-image__Sm5AL","cant-unhear-it__flat-images":"CantUnhearItBackground_cant-unhear-it__flat-images__2Ju5O","cant-unhear-it__flat-image":"CantUnhearItBackground_cant-unhear-it__flat-image__zB96e","cant-unhear-it__disc":"CantUnhearItBackground_cant-unhear-it__disc__U0h5b","cant-unhear-it__disc-image":"CantUnhearItBackground_cant-unhear-it__disc-image__EYelb","cant-unhear-it__titles":"CantUnhearItBackground_cant-unhear-it__titles__VK_rz","cant-unhear-it__title":"CantUnhearItBackground_cant-unhear-it__title__KzAU4","track-name":"CantUnhearItBackground_track-name__sjMqd","artist-name":"CantUnhearItBackground_artist-name__oEsur",rotate:"CantUnhearItBackground_rotate__YTRp4"}},37511:function(e){e.exports={"cant-unhear-it__bullets":"CantUnhearItBullets_cant-unhear-it__bullets__sqX43","cant-unhear-it__bullet":"CantUnhearItBullets_cant-unhear-it__bullet__WQlbP",active:"CantUnhearItBullets_active__zDaV3"}},71194:function(e){e.exports={"cant-unhear-it__header-container":"CantUnhearItHeader_cant-unhear-it__header-container__yKONi","cant-unhear-it__header":"CantUnhearItHeader_cant-unhear-it__header__PU5I0",subhead:"CantUnhearItHeader_subhead__qeXD7","cant-unhear-it__header-images":"CantUnhearItHeader_cant-unhear-it__header-images__oEhV7"}},94845:function(e){e.exports={track:"CantUnhearItTrack_track__HFv75","track-hero":"CantUnhearItTrack_track-hero__RVbug","track-info":"CantUnhearItTrack_track-info__Q6Dkl","artist-name":"CantUnhearItTrack_artist-name__JegzM","track-mobile-header":"CantUnhearItTrack_track-mobile-header__l_N_0",sticky:"CantUnhearItTrack_sticky__bWs6P","is-scrolled":"CantUnhearItTrack_
280is-scrolled__HCGVs",tint:"CantUnhearItTrack_tint__JqNX_","track-album":"CantUnhearItTrack_track-album___rJAz","disc-image":"CantUnhearItTrack_disc-image__FstgP",rotate:"CantUnhearItTrack_rotate__RPd_v",animate:"CantUnhearItTrack_animate__yfioN","track-mobile-header-text":"CantUnhearItTrack_track-mobile-header-text__zQecb","track-name":"CantUnhearItTrack_track-name__nWbkJ","track-images-and-blurbs":"CantUnhearItTrack_track-images-and-blurbs__0IuzX","track-detail-group-container":"CantUnhearItTrack_track-detail-group-container__NEZwi","track-detail-group":"CantUnhearItTrack_track-detail-group__DpwOe","track-detail-group-reverse":"CantUnhearItTrack_track-detail-group-reverse__GtcqU",blurb:"CantUnhearItTrack_blurb__iW4Ms",eyebrow:"CantUnhearItTrack_eyebrow__e_TBm","track-image":"CantUnhearItTrack_track-image__t3TLe","track-blurbs":"CantUnhearItTrack_track-blurbs__ZLAzn","track-blurbs-absolute":"CantUnhearItTrack_track-blurbs-absolute__J8wDJ","track-blurb-item":"CantUnhearItTrack_track-blurb-item__Gagwi"}},3048:function(e){e.exports={"carousel-classes":"CarouselClasses_carousel-classes__4fSTZ","carousel-pagination":"CarouselClasses_carousel-pagination__gCbl_","carousel-classes-card":"CarouselClasses_carousel-classes-card__7oj1q",active:"CarouselClasses_active__TZCrx","expand-icon":"CarouselClasses_expand-icon__sqCpU",hover:"CarouselClasses_hover__LQhxv","expanded-content":"CarouselClasses_expanded-content__BxtgD","year-header":"CarouselClasses_year-header__2RvQO",class:"CarouselClasses_class__nVoPS",year:"CarouselClasses_year__r1rbe","inductees-list":"CarouselClasses_inductees-list__hR4KF","inductee-item":"CarouselClasses_inductee-item__LwSQ8",name:"CarouselClasses_name__hm6UX",spacer:"CarouselClasses_spacer__q9FdF"}},88191:function(e){e.exports={"carousel-inductees":"CarouselInductees_carousel-inductees__dWbqw","carousel-inductees__track":"CarouselInductees_carousel-inductees__track__L69lZ","carousel-inductees__pagination":"CarouselInductees_carousel-inductees__pagination__XKib_"}},16379:function(e){e.exports={"carousel-pagination":"CarouselPagination_carousel-pagination__fmOQd","center-mobile":"CarouselPagination_center-mobile__joj5P","carousel-pagination__pagination":"CarouselPagination_carousel-pagination__pagination__80l1L",cta:"CarouselPagination_cta__NJQSP"}},47289:function(e){e.exports={"carousel-rock-hall-tv":"CarouselRockHallTv_carousel-rock-hall-tv__LXT5C",bottom:"CarouselRockHallTv_bottom__WpFjc",slide:"CarouselRockHallTv_slide__wg03O","no-border":"CarouselRockHallTv_no-border__BOkP2",image:"CarouselRockHallTv_image__cpn8U",video:"CarouselRockHallTv_video__g8FKS",container:"CarouselRockHallTv_container__VrAUx","container-top":"CarouselRockHallTv_container-top__WYIy0","container-top-content":"CarouselRockHallTv_container-top-content__k6AuT",pill:"CarouselRockHallTv_pill__cIiKZ","headline-wrapper":"CarouselRockHallTv_headline-wrapper__osCC8","slide-headline":"CarouselRockHallTv_slide-headline__OD_f8","learn-more":"CarouselRockHallTv_learn-more__vpi_J","container-bottom":"CarouselRockHallTv_container-bottom__10TFk",copy:"CarouselRockHallTv_copy__J9FIy"}},14669:function(e){e.exports={"carousel-shop":"CarouselShop_carousel-shop__x_rrq","splide-container":"CarouselShop_splide-container__RYPqd","carousel-shop__pagination":"CarouselShop_carousel-shop__pagination__RKM10","carousel-shop-item":"CarouselShop_carousel-shop-item__O3Pou","carousel-shop-item__link":"CarouselShop_carousel-shop-item__link__ervTU","carousel-shop-item__image":"CarouselShop_carousel-shop-item__image__cPXr1",hover:"CarouselShop_hover__jL1Vd","carousel-shop-item__info":"CarouselShop_carousel-shop-item__info__R6_IT","carousel-shop-item__price":"CarouselShop_carousel-shop-item__price__PJo9V"}},16641:function(e){e.exports={"carousel-stories":"CarouselStories_carousel-stories__ACDcs","splide-container":"CarouselStories_splide-container__u_RA7","story-carousel-bottom":"CarouselStories_story-carousel-bottom__t_4vE","story-carousel-slide":"CarouselStories_story-carousel-slide__rPOsv",link:"CarouselStories_link___Xhlp",content:"CarouselStories_content__ynxp1",hover:"CarouselStories_hover__NqD_7","image-container":"CarouselStories_image-container__vW_bA",type:"CarouselStories_type__BFV9J","sub-headline":"CarouselStories_sub-headline__e16S2"}},23094:function(e){e.exports={"comparison-table":"ComparisonTable_comparison-table__UFbWA",header:"ComparisonTable_header__G9Bl6",body:"ComparisonTable_body__fEKON","table-wrapper":"ComparisonTable_table-wrapper__6mtRz","header-cell":"C
280omparisonTable_header-cell__9OkoG","row-label":"ComparisonTable_row-label__fkPHo",cell:"ComparisonTable_cell__muhMN","footer-label":"ComparisonTable_footer-label__O3a_U","footer-cell":"ComparisonTable_footer-cell__IrdEh",content:"ComparisonTable_content__NQbMl",text:"ComparisonTable_text__KFpJT",links:"ComparisonTable_links__eWA82",link:"ComparisonTable_link__h8q4P",hover:"ComparisonTable_hover__J_MYP"}},3452:function(e){e.exports={"connected-inductees":"ConnectedInductees_connected-inductees__RrMeH",intro:"ConnectedInductees_intro__6Nx68",grid:"ConnectedInductees_grid__N2Wrf","card-wrap":"ConnectedInductees_card-wrap__I4lqd",card:"ConnectedInductees_card___xI5N",image:"ConnectedInductees_image__W_4Ov",content:"ConnectedInductees_content__ePcaM",name:"ConnectedInductees_name__d3ihP",arrow:"ConnectedInductees_arrow__ehjAX",hover:"ConnectedInductees_hover__c8Hfp"}},1089:function(e){e.exports={container:"Container_container__A7FAx","full-width":"Container_full-width__iIPZC"}},42787:function(e){e.exports={"cover-story":"CoverStory_cover-story__b7ssK"}},463:function(e){e.exports={"album-desc-block":"AlbumDescBlock_album-desc-block__tAtf4",content:"AlbumDescBlock_content__VyKy1","column-visual":"AlbumDescBlock_column-visual__LbTeU",image:"AlbumDescBlock_image__kpTWt","column-copy":"AlbumDescBlock_column-copy__CIqVe",title:"AlbumDescBlock_title___j_Yj",title__lines:"AlbumDescBlock_title__lines__kVKKZ","title__lines__line-1":"AlbumDescBlock_title__lines__line-1__cOUQD",body:"AlbumDescBlock_body__oh03k","body__p-container":"AlbumDescBlock_body__p-container__XmmJ4"}},2888:function(){},38005:function(e){e.exports={game:"Game_game__q8cRT","game-over":"Game_game-over__T9h85","game-main-content":"Game_game-main-content__nb1Kx","wrapper-game-board":"Game_wrapper-game-board__XC3Vd","game-is-over":"Game_game-is-over__MyEuw","wrapper-game-over":"Game_wrapper-game-over__Q8yjd","game-footer":"Game_game-footer__gWJ1F","game-footer-name":"Game_game-footer-name__eJymk","help-button":"Game_help-button__s_eSd",hover:"Game_hover__SkHe_","circle-cta":"Game_circle-cta__ETTYG","circle-cta-icon":"Game_circle-cta-icon__d870E","debug-answer":"Game_debug-answer__xZVQc","debug-clear-storage-button":"Game_debug-clear-storage-button__An9_v","debug-fake-privacy-element":"Game_debug-fake-privacy-element___vVuS"}},92911:function(e){e.exports={"game-board-container":"GameBoard_game-board-container__5jnre","custom-cursor":"GameBoard_custom-cursor__HMqsg","game-board":"GameBoard_game-board__7Mlum","canvas-wrapper":"GameBoard_canvas-wrapper__PZn40","fade-out":"GameBoard_fade-out__la2jl","background-canvas":"GameBoard_background-canvas__YMox6","tile-container":"GameBoard_tile-container__FoV1M","tile-wrapper":"GameBoard_tile-wrapper__FOLGz","tile-face":"GameBoard_tile-face__F9KTG","tile-front":"GameBoard_tile-front__xrxgt","tile-back":"GameBoard_tile-back__TjNwd","toast-final-guess":"GameBoard_toast-final-guess__E_e5D",disabled:"GameBoard_disabled__CiBPH","wrapper-game-input":"GameBoard_wrapper-game-input__MES0C","wrapper-game-meter":"GameBoard_wrapper-game-meter__rTHlg","use-custom-cursor":"GameBoard_use-custom-cursor__rQ8T9"}},49690:function(e){e.exports={"game-header":"GameHeader_game-header__6DrxL","metadata-pill":"GameHeader_metadata-pill__EeQNO",headline:"GameHeader_headline__fTwmz"}},49752:function(e){e.exports={"game-info-modal":"GameInfoModal_game-info-modal__FlxzP",overlay:"GameInfoModal_overlay__gI8wn",content:"GameInfoModal_content__Jwymg","game-info-modal-top":"GameInfoModal_game-info-modal-top__Aal7T",divider:"GameInfoModal_divider__isQb5",eyebrow:"GameInfoModal_eyebrow___zzeX",headline:"GameInfoModal_headline__zSlq7",highlight:"GameInfoModal_highlight__O99XG","instruction-row":"GameInfoModal_instruction-row__2jFr0","instruction-column":"GameInfoModal_instruction-column__BktnZ","instruction-image":"GameInfoModal_instruction-image__RNtFV","instruction-heading":"GameInfoModal_instruction-heading__yqFta","instruction-subheading":"GameInfoModal_instruction-subheading__EHGG0"}},49228:function(e){e.exports={"game-input":"GameInput_game-input__GTSiB","input-control
280s":"GameInput_input-controls__lA7fT","input-wrapper":"GameInput_input-wrapper__lOS8G","guess-input":"GameInput_guess-input__7WOre",disabled:"GameInput_disabled__cZ608",incorrect:"GameInput_incorrect__a3BJX","clear-button":"GameInput_clear-button__P0NTu",hover:"GameInput_hover__uKvC6","autocomplete-wrapper":"GameInput_autocomplete-wrapper__dsIHo","autocomplete-animator":"GameInput_autocomplete-animator__DcuQm",autocomplete:"GameInput_autocomplete__8JrzC","autocomplete-item":"GameInput_autocomplete-item__W3fY_",highlighted:"GameInput_highlighted__rm4ku","guess-input-submit":"GameInput_guess-input-submit__2tosC","toast-incorrect":"GameInput_toast-incorrect__u_lCe"}},20909:function(e){e.exports={"guess-meter":"GameMeter_guess-meter__LGoFF","guess-meter-squares":"GameMeter_guess-meter-squares__FFX3h","guess-square":"GameMeter_guess-square__xIzdu",used:"GameMeter_used__LxQte",scaleIn:"GameMeter_scaleIn__m3bAx","icon-x-wrap":"GameMeter_icon-x-wrap__tBmbA","guess-meter-label":"GameMeter_guess-meter-label__s3SYe",flipIn:"GameMeter_flipIn__Tzygf"}},46779:function(e){e.exports={"game-over":"GameOver_game-over__eaJx2","game-over-top":"GameOver_game-over-top__koMhi","album-cover":"GameOver_album-cover__3REGm","album-cover-image":"GameOver_album-cover-image__geF3s",record:"GameOver_record__XGahi","sound-wave-wrapper":"GameOver_sound-wave-wrapper__boDcu","game-over-bottom":"GameOver_game-over-bottom__z2JT4",headline:"GameOver_headline__J9pEn",subhead:"GameOver_subhead__nRiOB",body:"GameOver_body__YWEZO","button-row":"GameOver_button-row__Pyapr","play-more-button":"GameOver_play-more-button__lfofn","toast-copied":"GameOver_toast-copied__TMtKL","debug-replay-button":"GameOver_debug-replay-button__NtwB5"}},48633:function(e){e.exports={"sound-wave":"SoundWave_sound-wave__dybiN"}},68720:function(e){e.exports={shimmer:"Shimmer_shimmer__5gy_C","shimmer-overlay":"Shimmer_shimmer-overlay__9IapX"}},28614:function(e){e.exports={"warble-input-wrap":"WarbleInput_warble-input-wrap__uwSL4","warble-border":"WarbleInput_warble-border__WZTJY","has-value":"WarbleInput_has-value__9zzAJ","is-warbling":"WarbleInput_is-warbling__VZ1G9","warble-svg":"WarbleInput_warble-svg__RDUMI"}},12631:function(e){e.exports={"cover-story-hero":"CoverStoryHero_cover-story-hero__Ykgt0",container:"CoverStoryHero_container__eUkQn",content:"CoverStoryHero_content__bd53z",copy:"CoverStoryHero_copy__FpXy_",headline:"CoverStoryHero_headline___ru4T",subhead:"CoverStoryHero_subhead__g0_ZC","current-game":"CoverStoryHero_current-game__mi3gx",image:"CoverStoryHero_image__7_BOu","debug-button":"CoverStoryHero_debug-button__vH28z"}},96112:function(e){e.exports={"cursor-follower":"CursorFollower_cursor-follower__B1zTz",pop:"CursorFollower_pop__q3aZY",icon:"CursorFollower_icon__Yx_S6",flip:"CursorFollower_flip__SQWLE"}},7723:function(e){e.exports={"detail-hero":"DetailHero_detail-hero__AeXzp",link:"DetailHero_link__Prcnn","detail-hero__overlay":"DetailHero_detail-hero__overlay__TpIiT","detail-hero__image-container":"DetailHero_detail-hero__image-container__TmtJA","detail-hero__image-wrapper":"DetailHero_detail-hero__image-wrapper__jI1xR","detail-hero__image":"DetailHero_detail-hero__image__VpeAp","detail-hero__video":"DetailHero_detail-hero__video__qCTR8","detail-hero__container":"DetailHero_detail-hero__container__7EPPF","detail-hero__content":"DetailHero_detail-hero__content__J3KD3","headline-wrap":"DetailHero_headline-wrap__ZaBqp",info:"DetailHero_info__e8RmJ",details:"DetailHero_details__ONatq","detail-item":"DetailHero_detail-item__ITL3_","detail-hero__content__bottom":"DetailHero_detail-hero__content__bottom__0NY2C"}},73151:function(e){e.exports={"dx-heroin":"DigitalExhibitHeroIntro_dx-heroin__eQxBs","dx-heroin__stage":"DigitalExhibitHeroIntro_dx-heroin__stage__a_zBZ","dx-heroin__background":"DigitalExhibitHeroIntro_dx-heroin__background__e_j_x","dx-heroin__background--desktop":"DigitalExhibitHeroIntro_dx-heroin__background--desktop__Ckkh7","dx-heroin__background--mobile":"DigitalExhibitHeroIntro_dx-heroin__background--mobile__iPL2a","dx-heroin__background-image":"DigitalExhibitHeroIntro_dx-heroin__background-image__SHLtl","dx-heroin__frame-dim"
280:"DigitalExhibitHeroIntro_dx-heroin__frame-dim__6GSo4","dx-heroin__media":"DigitalExhibitHeroIntro_dx-heroin__media__M15HR","dx-heroin__video":"DigitalExhibitHeroIntro_dx-heroin__video__7PJT2","dx-heroin__media-overlay":"DigitalExhibitHeroIntro_dx-heroin__media-overlay__pj5ww","dx-heroin__center":"DigitalExhibitHeroIntro_dx-heroin__center__D6Hbv","dx-heroin__pill":"DigitalExhibitHeroIntro_dx-heroin__pill__RWPFm","dx-heroin__pill-type":"DigitalExhibitHeroIntro_dx-heroin__pill-type__hXBK0","dx-heroin__lockup":"DigitalExhibitHeroIntro_dx-heroin__lockup__rfqKD","dx-heroin__logo":"DigitalExhibitHeroIntro_dx-heroin__logo__ly_OH","dx-heroin__logo-image":"DigitalExhibitHeroIntro_dx-heroin__logo-image__K10E1","dx-heroin__subhead":"DigitalExhibitHeroIntro_dx-heroin__subhead___7wyi","dx-heroin__arrow":"DigitalExhibitHeroIntro_dx-heroin__arrow__9Fr2m","dx-heroin__arrow-image":"DigitalExhibitHeroIntro_dx-heroin__arrow-image__n6i3J","dx-heroin__arrow-icon":"DigitalExhibitHeroIntro_dx-heroin__arrow-icon__KcrBd","dx-heroin__statement":"DigitalExhibitHeroIntro_dx-heroin__statement__YINRU","dx-heroin__prompt":"DigitalExhibitHeroIntro_dx-heroin__prompt__eJeg4","dx-heroin__prompt-arrow":"DigitalExhibitHeroIntro_dx-heroin__prompt-arrow__GWZ_p","dx-scroll-hint":"DigitalExhibitHeroIntro_dx-scroll-hint__0gPN0","dx-heroin__cover":"DigitalExhibitHeroIntro_dx-heroin__cover__17SuO","dx-heroin--static":"DigitalExhibitHeroIntro_dx-heroin--static__xZPPV"}},46052:function(e){e.exports={"dx-page-ender":"DigitalExhibitPageEnder_dx-page-ender__tqqN1","dx-page-ender__ticker":"DigitalExhibitPageEnder_dx-page-ender__ticker__zTz39","dx-page-ender__ticker-track":"DigitalExhibitPageEnder_dx-page-ender__ticker-track__RaZHY","dx-marquee":"DigitalExhibitPageEnder_dx-marquee__sYYm6","dx-page-ender__ticker-track--static":"DigitalExhibitPageEnder_dx-page-ender__ticker-track--static__lvsqt","dx-page-ender__ticker-item":"DigitalExhibitPageEnder_dx-page-ender__ticker-item__KQckS","dx-page-ender__ticker-item--accent":"DigitalExhibitPageEnder_dx-page-ender__ticker-item--accent__fD4aT","dx-page-ender__ticker-arrow":"DigitalExhibitPageEnder_dx-page-ender__ticker-arrow__0wfJ8"}},57033:function(e){e.exports={"dx-quiz":"DigitalExhibitQuiz_dx-quiz__B9TWc","dx-quiz__stage":"DigitalExhibitQuiz_dx-quiz__stage__K3RR4","dx-quiz__media":"DigitalExhibitQuiz_dx-quiz__media__yQaAO","is-started":"DigitalExhibitQuiz_is-started__pRsXd","dx-quiz__media-attribution-wrapper":"DigitalExhibitQuiz_dx-quiz__media-attribution-wrapper__gE9_B","dx-quiz__media-attribution":"DigitalExhibitQuiz_dx-quiz__media-attribution__a99S8","dx-quiz__media-parallax":"DigitalExhibitQuiz_dx-quiz__media-parallax__5MBiP","dx-quiz__media-image":"DigitalExhibitQuiz_dx-quiz__media-image__9bnLC","dx-quiz__media-dim":"DigitalExhibitQuiz_dx-quiz__media-dim__5rcqk","dx-quiz__media-scrim":"DigitalExhibitQuiz_dx-quiz__media-scrim__UHIjD","is-dim":"DigitalExhibitQuiz_is-dim__ne5a7","dx-quiz__panel":"DigitalExhibitQuiz_dx-quiz__panel__asE0C","dx-quiz__lockup":"DigitalExhibitQuiz_dx-quiz__lockup__cV7HT","dx-quiz__progress":"DigitalExhibitQuiz_dx-quiz__progress__2CUfG","dx-quiz__progress-track":"DigitalExhibitQuiz_dx-quiz__progress-track__M0rI5","dx-quiz__progress-fill":"DigitalExhibitQuiz_dx-quiz__progress-fill__2WbKr","dx-quiz--static":"DigitalExhibitQuiz_dx-quiz--static__WIuwc","dx-quiz__progress-count":"DigitalExhibitQuiz_dx-quiz__progress-count__8qcv_","dx-quiz__landing":"DigitalExhibitQuiz_dx-quiz__landing__ULwzB","dx-quiz__question":"DigitalExhibitQuiz_dx-quiz__question__unBu6","dx-quiz__results":"DigitalExhibitQuiz_dx-quiz__results__5ml_C","dx-quiz__eyebrow":"DigitalExhibitQuiz_dx-quiz__eyebrow__qRCjv","dx-quiz__title":"DigitalExhibitQuiz_dx-quiz__title__idfjp","dx-knockout--line":"DigitalExhibitQuiz_dx-knockout--line__Voa99","is-knockout":"DigitalExhibitQuiz_is-knockout__7X2Ky","dx-quiz__supporting":"DigitalExhibitQuiz_dx-quiz__supporting__boAxQ","dx-quiz__landing-actions":"DigitalExhibitQuiz_dx-quiz__landing-actions__BpvKq","dx-quiz__landing-button":"DigitalExhibitQuiz_dx-quiz__landing-button__BfnSX","dx-quiz__prompt":"DigitalExhibitQuiz_dx-quiz__prompt__7rVNw","dx-quiz__options":"DigitalExhibitQuiz_dx-quiz__options__CReAS","dx-quiz__option":"DigitalExhibitQuiz_dx-quiz__option__wQwP7",hover:"DigitalExhibitQuiz_hover__o6sZq","is-selected":"DigitalExhibitQuiz_is-selected__gqDee","dx-quiz__option-dot":"DigitalExhibitQuiz_dx-quiz__option-dot__dZGaT","dot-icon":"DigitalExhibitQuiz_dot-icon__J4N9w","dx-quiz__controls":"DigitalExhibitQuiz_dx-quiz__controls__IKqD2","dx-quiz__controls--results":"DigitalExhibitQuiz_dx-quiz__controls--results__cj_LG","dx-quiz__results-copy":"DigitalExhibitQuiz_dx-quiz__results-copy__kyECu","dx-quiz__score":"DigitalExhibitQuiz_dx-quiz__score__a_Gp_","dx-quiz__results-headline":"DigitalExhibitQuiz_dx-quiz__results-headline__2X1LP","dx-quiz__results-message":"DigitalExhibitQuiz_dx-quiz__results-message__OGsc7","dx-quiz--default":"DigitalExhibitQuiz_dx-quiz--default__vHFLN"}},1098:function(e){e.exports={"dx-share":"ShareButton_dx-share__1EZ6t","dx-share__btn":"ShareButton_dx-share__btn__UHNm_","dx-share__label--mobile":"ShareButton_dx-share__label--mobile__YfgGj","dx-share__label--desktop":"ShareButton_dx-share__label--desktop__prVd1","dx-share__measure":"ShareButton_dx-share__measure__niNkU","dx-share--instant":"ShareButton_dx-share--instant__ezBQg"}},59527:function(e){e.exports={"donate-form":"DonateForm_donate-form__sbuAi",row:"DonateForm_row__ibgK3","content-wrapper":"DonateForm_content-wrapper__Fzjzl",copy:"DonateForm_copy__Bdspe","form-wrapper":"DonateForm_form-wrapper__QHkTO","form-headline":"DonateForm_form-headline__mDK8W",form:"DonateForm_form__indx7",form__loader:"DonateForm_form__loader__kA7m6",form__loader__loader:"DonateForm_form__loader__loader__GECYg",amounts:"DonateForm_amounts__DOE1Q","other-input-wrapper":"DonateForm_other-input-wrapper__n3_Su","other-input":"DonateForm_other-input__Xy87w","amount-button":"DonateForm_amount-button__qgapK","form-bottom":"DonateForm_form-bottom__m6znW","form-error":"DonateForm_form-error__TkcQV",image:"DonateForm_image__ej0dP"}},93779:function(e){e.exports={"event-price-pills":"EventPricePills_event-price-pills__cB9rl"}},82924:function(e){e.exports={feature:"Feature_feature__J11eP",headline:"Feature_headline__s_fau","sub-headline":"Feature_sub-headline__P4so_","feature-row":"Feature_feature-row__RQpr1",columns:"Feature_c
280olumns__v5L_M","feature-item":"Feature_feature-item__yoMq4","image-wrapper":"Feature_image-wrapper__he_Fs",float:"Feature_float__B6xsK","feature-item__reveal-wrapper":"Feature_feature-item__reveal-wrapper__VyeIP","feature-item__link":"Feature_feature-item__link__Dp0yK",bento:"Feature_bento__eJUGZ","is-odd":"Feature_is-odd__h6HoY","feature-item--0":"Feature_feature-item--0__dUcRA",content:"Feature_content__0EHf_","feature-item__content-wrapper":"Feature_feature-item__content-wrapper__k1skh",single:"Feature_single__XzrZZ","lower-content":"Feature_lower-content__nvytS","type-pill":"Feature_type-pill__TT_69","image-inner-wrapper":"Feature_image-inner-wrapper__rmsqZ",body:"Feature_body__BGNTB","button-row":"Feature_button-row__rEtcX",date:"Feature_date__Hc2A6","feature-item--alt":"Feature_feature-item--alt__MDYcS",hover:"Feature_hover__5poJI","feature-item--option2":"Feature_feature-item--option2___9hxw","feature-item--option3":"Feature_feature-item--option3__7aSfs","feature-item--option4":"Feature_feature-item--option4__7uMW0","feature-item--option5":"Feature_feature-item--option5__D0_gx"}},63978:function(e){e.exports={"feature-events":"FeatureEvents_feature-events__6xdAo","carousel-pagination":"FeatureEvents_carousel-pagination__Ntw3D",slide:"FeatureEvents_slide__c_2MS","slide__image-wrapper":"FeatureEvents_slide__image-wrapper__mgleG",hover:"FeatureEvents_hover__lg2ww",slide__content:"FeatureEvents_slide__content__BKTx4",type:"FeatureEvents_type__RZLfU",info:"FeatureEvents_info__fXKyq"}},46258:function(e){e.exports={"carousel-exhibits-interactives":"CarouselExhibitsInteractives_carousel-exhibits-interactives__FPUxe",headline:"CarouselExhibitsInteractives_headline__NZU23",bottom:"CarouselExhibitsInteractives_bottom__UgPvv",slide:"CarouselExhibitsInteractives_slide__hpVLM",image:"CarouselExhibitsInteractives_image__BPB6D",video:"CarouselExhibitsInteractives_video__dDEV8",container:"CarouselExhibitsInteractives_container__T6xi3","container-top":"CarouselExhibitsInteractives_container-top__MKGMh","container-top-content":"CarouselExhibitsInteractives_container-top-content__qVR6v",pill:"CarouselExhibitsInteractives_pill__qfRYQ","headline-wrapper":"CarouselExhibitsInteractives_headline-wrapper__0d6t5","slide-headline":"CarouselExhibitsInteractives_slide-headline__JirZm","learn-more":"CarouselExhibitsInteractives_learn-more__ViimP","container-bottom":"CarouselExhibitsInteractives_container-bottom__XcrPa",copy:"CarouselExhibitsInteractives_copy__G7ZdW"}},55115:function(e){e.exports={"feature-exhibits-interactives":"SingleExhibitsInteractives_feature-exhibits-interactives__0hCgV",headline:"SingleExhibitsInteractives_headline__zw6g1",slide:"SingleExhibitsInteractives_slide__m01N7",image:"SingleExhibitsInteractives_image__IMVs1",video:"SingleExhibitsInteractives_video__fPPj5",container:"SingleExhibitsInteractives_container__8_8b_","container-top":"SingleExhibitsInteractives_container-top___XCYT","container-top-content":"SingleExhibitsInteractives_container-top-content__ZZ5aD",pill:"SingleExhibitsInteractives_pill__8ivWr","is-new":"SingleExhibitsInteractives_is-new__TleNy","headline-wrapper":"SingleExhibitsInteractives_headline-wrapper__wtWZu","slide-headline":"SingleExhibitsInteractives_slide-headline__qRjJe","learn-more":"SingleExhibitsInteractives_learn-more__vrfOw","container-bottom":"SingleExhibitsInteractives_container-bottom__Xytdy",copy:"SingleExhibitsInteractives_copy__J16s2"}},53531:function(e){e.exports={filters:"Filters_filters__vitNv",overflow:"Filters_overflow__k8ZHS","filters__button--next":"Filters_filters__button--next__7Tm_Z",scrolled:"Filters_scrolled__cxYRj","filters__button--prev":"Filters_filters__button--prev__4_cJP","scroll-end":"Filters_scroll-end__667CX",filters__button:"Filters_filters__button__ZZKFK",filters__wrapper:"Filters_filters__wrapper__1O6mb"}},93983:function(e){e.exports={"float-spotlight":"FloatSpotlight_float-spotlight__N0Eyn","image-container":"FloatSpotlight_image-container__D7oP1",image:"FloatSpotlight_image__pi__A","image--topLeft":"FloatSpotlight_image--topLeft__vESf2","image--top":"FloatSpotlight_image--top__ZAtnC","image--topRight":"FloatSpotlight_image--topRight__tdOMx","image--bottomLeft":"FloatSpotlight_image--bottomLeft__cXHsP","image--bottomRight":"FloatSpotlight_image--bottomRight__nEHC4","image-wrapper-overlay":"FloatSpotlight_image-wrapper-overlay__jgj9T",container:"FloatSpotlight_container__WGqIw",content:"FloatSpotlight_content__GoXBi",eyebrow:"FloatSpotlight_eyebrow__kh9_f",headline:"FloatSpotlight_headline__ulVOS","button-wrapper":"FloatSpotlight_button-wrapper__FzUuK"}},15834:function(e){e.exports={footer:"Footer_footer__OYoYH","footer-container":"Footer_footer-container__yMAft",divider:"Footer_divider__bfFrr","newsletter-form":"Footer_newsletter-form__21w66","newsletter-form__copy":"Footer_newsletter-form__copy__Ut5wB",eyebrow:"Footer_eyebrow__ptWF2","form-wrapper":"Footer_form-wrapper__h5hVF",form:"Footer_form__l8GwQ","success-card":"Footer_success-card__D_2Lx","input-wrapper":"Footer_input-wrapper__AOXQO","form-eyebrow":"Footer_form-eyebrow__9Fzwu",show:"Footer_show__cTG4A",input:"Footer_input__DS0UA",filled:"Footer_filled__sRGNZ",full:"Footer_full__Rtrx
280H",half:"Footer_half__DJs_U",quarter:"Footer_quarter__BS1jd","submit-wrapper":"Footer_submit-wrapper__l8Raj","error-message":"Footer_error-message__B8s3D",submit:"Footer_submit__ehW5N","success-card__message":"Footer_success-card__message__6n_ga","social-links":"Footer_social-links__EELn2","social-link":"Footer_social-link__QkMtj",icon:"Footer_icon__7yN_X","social-link__copy":"Footer_social-link__copy__A_SJJ",count:"Footer_count__6TRnh",hover:"Footer_hover__eyzBr","find-us-columns-wrapper":"Footer_find-us-columns-wrapper__i30hY","find-us":"Footer_find-us__0CXX0","find-us__copy":"Footer_find-us__copy__B1Afi","footer-legal":"Footer_footer-legal___AYZ3","footer-logos":"Footer_footer-logos__Eh_Kr","logo--ohio":"Footer_logo--ohio__Uaeg3","logo--united":"Footer_logo--united__NgDSt","logo--cuyahoga":"Footer_logo--cuyahoga__WKFdz","footer-logo-wrapper":"Footer_footer-logo-wrapper__CATR0","footer-logo-stacked":"Footer_footer-logo-stacked__7XJoL","footer-logo":"Footer_footer-logo__SdTep"}},65293:function(e){e.exports={"footer-columns":"FooterColumns_footer-columns__DmVpX","footer-column":"FooterColumns_footer-column__LdvZe","footer-column__header":"FooterColumns_footer-column__header__ZV6oJ","footer-column__header__label":"FooterColumns_footer-column__header__label__LsI3j","footer-column__header__icon":"FooterColumns_footer-column__header__icon__18t6m",vertical:"FooterColumns_vertical__pUksf","footer-column__links":"FooterColumns_footer-column__links__TOUrn","is-collapsed":"FooterColumns_is-collapsed__eH7U4","footer-link":"FooterColumns_footer-link__BwFs7",hover:"FooterColumns_hover__FcmZY",address:"FooterColumns_address__Au1Fo","is-expanded":"FooterColumns_is-expanded__elRwD","reduce-motion":"FooterColumns_reduce-motion__UHFFz","reduce-motion__label":"FooterColumns_reduce-motion__label__k740Y","reduce-motion__toggle":"FooterColumns_reduce-motion__toggle__7pI9n"}},30104:function(e){e.exports={counter:"Counter_counter__NvNHC",counter__count:"Counter_counter__count__eHJJY",counter__button:"Counter_counter__button__Ik1Jq",inc:"Counter_inc__6Bz_h",hover:"Counter_hover___K26s",icon:"Counter_icon__J9YiB"}},87577:function(e){e.exports={"form-input":"Input_form-input___EvFD","form-eyebrow":"Input_form-eyebrow__iVDZN",show:"Input_show__k6L1r",input:"Input_input__SwtMe",filled:"Input_filled__hrw12",full:"Input_full__NhsnJ",half:"Input_half__rpfBM",quarter:"Input_quarter__phYlr"}},79144:function(e){e.exports={"radio-button":"RadioButton_radio-button__3M1jZ",hover:"RadioButton_hover__XCAD_",active:"RadioButton_active__d751r",circle:"RadioButton_circle__zeY6n",icon:"RadioButton_icon__fkvUZ"}},97777:function(e){e.exports={"form-embed":"FormEmbed_form-embed___W3kz",content:"FormEmbed_content__UG51w",intro:"FormEmbed_intro__lcbW1",form:"FormEmbed_form__SAYe1",filled:"FormEmbed_filled__vd1PF",hover:"FormEmbed_hover__VZ7Bo"}},97096:function(e){e.exports={"generic-embed":"GenericEmbed_generic-embed__TW9Rw","embed-responsive":"GenericEmbed_embed-responsive__Ra6SD"}},60432:function(e){e.exports={"google-map":"GoogleMap_google-map__pMJab",container:"GoogleMap_container__5d3FQ","google-map__map":"GoogleMap_google-map__map__CzPXC"}},81067:function(e){e.exports={"grid-inductees":"GridInductees_grid-inductees__8OJWH",grid:"GridInductees_grid__Zzhxz","inductee-item":"GridInductees_inductee-item__Q42hp",cta:"GridInductees_cta___Mxmn"}},43858:function(e){e.exports={"desktop-menu":"DesktopMenu_desktop-menu__U4z2z","desktop-menu__buttons":"DesktopMenu_desktop-menu__buttons__8rqVX","search-button":"DesktopMenu_search-button__omct2",active:"DesktopMenu_active__1zow9",hover:"DesktopMenu_hover__3koP7"}},73811:function(e){e.exports={"top-level-link":"TopLevelLink_top-level-link__nc4IW",label:"TopLevelLink_label__PYR69",active:"TopLevelLink_active__Y4gIp",hover:"TopLevelLink_hover__Igeiq"}},84127:function(e){e.exports={"desktop-side-nav":"DesktopSideNav_desktop-side-nav__Qsq9C",group:"DesktopSideNav_group__r_6Qv","side-nav-link":"DesktopSideNav_side-nav-link__2t20k",hover:"DesktopSideNav_hover___ejAe"}},58084:function(e){e.exports={"language-select":"LanguageSelect_language-select__v1ow7",hover:"LanguageSelect_hover__uom57",focused:"LanguageSelect_focused__m5IA_",icon:"LanguageSelect_icon__M_r91",arrow:"LanguageSelect_arrow__rThhr",label:"LanguageSelect_label__Rgx8X",select:"LanguageSelect_select__eS5s_"}},82417:function(e){e.exports={"dropdown-menu":"DropdownMenu_dropdown-menu__v_V6u",expanded:"DropdownMenu_expanded__z8p0O","dropdown-menu__content":"DropdownMenu_dropdown-menu__content__58vaJ"}},3927:function(e){e.exports={"header-dropdown":"HeaderDropdown_header-dropdown__kdXqt","header-dropdown__button":"HeaderDropdown_header-dropdown__button__9r_nj",label:"HeaderDropdown_label__iSWyW",arrow:"HeaderDropdown_arrow__SbR
280Q_",hover:"HeaderDropdown_hover__1VAuo",expanded:"HeaderDropdown_expanded__ppbfk"}},4483:function(e){e.exports={"image-link":"ImageLink_image-link__9hQdR","content-wrapper":"ImageLink_content-wrapper__Ibg6X",hover:"ImageLink_hover__N8kGv",image:"ImageLink_image__HStIw",content:"ImageLink_content__5SGAV",copy:"ImageLink_copy__t1P31",subtitle:"ImageLink_subtitle__z1jrp",title:"ImageLink_title__Ci0Dd",arrow:"ImageLink_arrow__UYTH0"}},2839:function(e){e.exports={"language-radio-select":"LanguageRadioSelect_language-radio-select__K355X",content:"LanguageRadioSelect_content__V60Gi",icon:"LanguageRadioSelect_icon__BeE6C","language-options":"LanguageRadioSelect_language-options__pjYoK","language-option":"LanguageRadioSelect_language-option__7AeN0",label:"LanguageRadioSelect_label__diNUH",circle:"LanguageRadioSelect_circle__if_HJ"}},94525:function(e){e.exports={"link-list":"LinkList_link-list__StNn1",item:"LinkList_item__VvElS"}},93859:function(e){e.exports={"menu-icon":"MenuIcon_menu-icon__emJr7",active:"MenuIcon_active__i_kC_","menu-icon-inner":"MenuIcon_menu-icon-inner__Ue7NG","menu-icon-box":"MenuIcon_menu-icon-box__vYbdl"}},38886:function(e){e.exports={"top-level-link":"Links_top-level-link___ty7O",icon:"Links_icon__bHfyz","inline-link":"Links_inline-link__3x8uB"}},56341:function(e){e.exports={"menu-accordion":"MenuAccordion_menu-accordion__fomB_","accordion-button":"MenuAccordion_accordion-button__fr_AV",open:"MenuAccordion_open__QV7HV",icon:"MenuAccordion_
280icon__BEFU1","icon-container":"MenuAccordion_icon-container___YHiB",vertical:"MenuAccordion_vertical__juy3W","accordion-content":"MenuAccordion_accordion-content__7nqtA"}},4284:function(e){e.exports={"mobile-menu":"MobileMenu_mobile-menu__LKYEm",container:"MobileMenu_container__JeJ50","tickets-cta":"MobileMenu_tickets-cta__9m3mT",links:"MobileMenu_links__jyI2q"}},7478:function(e){e.exports={"mobile-side-nav":"MobileSideNav_mobile-side-nav__mEp_x","icon-link":"MobileSideNav_icon-link__6YLWx",icon:"MobileSideNav_icon__GoFtJ",search:"MobileSideNav_search__ClKGD",active:"MobileSideNav_active__r6GJn",tickets:"MobileSideNav_tickets__TKWBF"}},31980:function(e){e.exports={"tablet-side-menu":"TabletSideMenu_tablet-side-menu__aeCra",links:"TabletSideMenu_links__M3W1N",link:"TabletSideMenu_link__FXQJv"}},16814:function(e){e.exports={"secondary-link":"SecondaryLink_secondary-link__KXg_x",hover:"SecondaryLink_hover__bnp9a",label:"SecondaryLink_label__JM8jb",icon:"SecondaryLink_icon__p8NMJ"}},98034:function(e){e.exports={header:"Header_header__MwWvM",header__background:"Header_header__background__z3Doe",scrolled:"Header_scrolled__gq__C","tray-open":"Header_tray-open__pmXrG","menu-expanded":"Header_menu-expanded__ZlBiO","hide-header":"Header_hide-header__oysbN","show-header":"Header_show-header__6IwHF",header__container:"Header_header__container__i383M","header__logo-wrapper":"Header_header__logo-wrapper__vv0Ds",header__logo:"Header_header__logo___DqV1",resizing:"Header_resizing__z0efL",header__navbar:"Header_header__navbar__0bA31",hover:"Header_hover__GuEaW",active:"Header_active__v7PU5","skip-to-content-link":"Header_skip-to-content-link__HlI8q","reduce-motion-toggle":"Header_reduce-motion-toggle__k4sFL"}},23791:function(e){e.exports={"headline-anim":"HeadlineAnim_headline-anim__7CLwX",base:"HeadlineAnim_base__Aygxe",hidden:"HeadlineAnim_hidden__SAgBr",anim:"HeadlineAnim_anim__uzc0j",centered:"HeadlineAnim_centered__Wlb6U"}},71836:function(e){e.exports={"headline-anim-split-line":"HeadlineAnimSplitLine_headline-anim-split-line__ZNpqw",base:"HeadlineAnimSplitLine_base__y1_q7",hidden:"HeadlineAnimSplitLine_hidden__Wh2fD",anim:"HeadlineAnimSplitLine_anim__H0QB7","anim-wrap":"HeadlineAnimSplitLine_anim-wrap__6LQh8",centered:"HeadlineAnimSplitLine_centered__0f_CF"}},91655:function(e){e.exports={hero:"Hero_hero__F1sxj",primary:"Hero_primary__CdQ1A","has-carousel":"Hero_has-carousel__iTdqP","media-bg":"Hero_media-bg__sKB4m","media-bg--no-overlay":"Hero_media-bg--no-overlay__thcXb","media-bg__inner":"Hero_media-bg__inner__voVkG",wrap_canvas:"Hero_wrap_canvas__cIYMK","wrap_image-video":"Hero_wrap_image-video__IJWcp","poster-overlay":"Hero_poster-overlay__K6S2b",container:"Hero_container__Ty3ee","border-container":"Hero_border-container__xwc9w",border:"Hero_border__RP4Wi",content:"Hero_content__Ivut2","pill-wrap":"Hero_pill-wrap__kiftK","headline-wrap":"Hero_headline-wrap__MVzix",headline:"Hero_headline__42tZE","mobile-sm":"Hero_mobile-sm__qJDcs","has-reverb":"Hero_has-reverb__GTbEe","body-wrap":"Hero_body-wrap__2dzb4",body:"Hero_body__xM2Gn","logo-wrap":"Hero_logo-wrap__EpM3Y",link:"Hero_link__7tQfr","focus-outline":"Hero_focus-outline__9_QeU","hours-address":"Hero_hours-address__fG98W",column:"Hero_column__vMaq9",copy:"Hero_copy__CsT2H",hover:"Hero_hover__kqBUD","carousel-viewport":"Hero_carousel-viewport__TqmTq","carousel-container":"Hero_carousel-container__NMmHi","carousel-slide":"Hero_carousel-slide__0OkEl","border-wrapper":"Hero_border-wrapper__BMsUl","carousel-controls":"Hero_carousel-controls__Oob3w","carousel-controls-left":"Hero_carousel-controls-left__1VUD9","carousel-play-toggle-button":"Hero_carousel-play-toggle-button__mvSQS","icon-wrapper":"Hero_icon-wrapper__399KO","icon-pause":"Hero_icon-pause__bsvB9","icon-play":"Hero_icon-play__vvw5U","carousel-timer-ring-base":"Hero_carousel-timer-ring-base__Olddu","carousel-timer-ring":"Hero_carousel-timer-ring__Lkojf","carousel-dots":"Hero_carousel-dots__UXxtE","carousel-nav-arrows":"Hero_carousel-nav-arrows__5Bivc","carousel-arrow-button":"Hero_carousel-arrow-button__Q1M0n","carousel-arrow-button--prev":"Hero_carousel-arrow-button--prev__Yc
280Riv",active:"Hero_active__r_AWE"}},62439:function(e){e.exports={"hero-border":"HeroBorder_hero-border__LDVZO"}},94275:function(e){e.exports={"hours-manual":"HoursManual_hours-manual__ANFDW",grid:"HoursManual_grid__7sJ3U","current-month":"HoursManual_current-month__U4OO8","other-dates":"HoursManual_other-dates__eOuDP",title:"HoursManual_title__4tAv2","hours-list":"HoursManual_hours-list__PuF8t","other-date":"HoursManual_other-date__29iBb","hours-list__hours":"HoursManual_hours-list__hours__icEG3",divider:"HoursManual_divider__7vqRc",text:"HoursManual_text__0_IYH"}},42969:function(e){e.exports={"icon-button":"IconButton_icon-button__Xg6Pl",icon:"IconButton_icon__WVF0q",hover:"IconButton_hover__t_4K1",large:"IconButton_large__sHlsV",medium:"IconButton_medium__oDN6S",small:"IconButton_small__vc2jd"}},47470:function(e){e.exports={"icon-grid":"IconGrid_icon-grid__IEI_T","icon-grid__items":"IconGrid_icon-grid__items__8Bc4O","icon-grid-item":"IconGrid_icon-grid-item__s_ZEH",icon:"IconGrid_icon__2tWWW",footer:"IconGrid_footer__b8_Tn","footer-ctas":"IconGrid_footer-ctas__wcL_v"}},39779:function(e){e.exports={"image-anim":"ImageAnim_image-anim__b5vYE","image-anim__base":"ImageAnim_image-anim__base__u6Apt","image-anim__dupe":"ImageAnim_image-anim__dupe__fGHhG"}},33898:function(e){e.exports={"image-attribution":"ImageAttribution_image-attribution__ovCBa","image-attribution__icon-wrapper":"ImageAttribution_image-attribution__icon-wrapper__AruTq",icon:"ImageAttribution_icon__hUkOU","image-attribution__attribution":"ImageAttribution_image-attribution__attribution__jCTG8",right:"ImageAttribution_right__6hXFk",left:"ImageAttribution_left__1EzMd",center:"ImageAttribution_center__VSlDb"}},34627:function(e){e.exports={"image-gallery":"ImageGallery_image-gallery__Z5eoC","text-header":"ImageGallery_text-header__QDQRG",content:"ImageGallery_content__G4sEy",eyebrow:"ImageGallery_eyebrow__y9UYf",headline:"ImageGallery_headline__ae91z",cta:"ImageGallery_cta__gfQgZ",subhead:"ImageGallery_subhead__FaFrh","line-items":"ImageGallery_line-items__qOxOR","line-item":"ImageGallery_line-item__KhLU5","line-item__headline":"ImageGallery_line-item__headline__KMjiX","gallery-wrapper":"ImageGallery_gallery-wrapper__y0pOn","gallery-inner":"ImageGallery_gallery-inner__K_28i","gallery-grid":"ImageGallery_gallery-grid__R7O2Y","gallery-item":"ImageGallery_gallery-item__yFcd7","gallery-overlay":"ImageGallery_gallery-overlay__LaCLG","gallery-toggle":"ImageGallery_gallery-toggle__R28A_",icon:"ImageGallery_icon__w1WMv",expanded:"ImageGallery_expanded__w3Lsj"}},55383:function(e){e.exports={"image-singular__image":"ImageSingular_image-singular__image__wK6vx","image-singular__image__image":"ImageSingular_image-singular__image__image__0aorq"}},64799:function(e){e.exports={"inductee-3d-hero":"Inductee3DHero_inductee-3d-hero__bRXPm","hide-content":"Inductee3DHero_hide-content__H7REM","hero-content":"Inductee3DHero_hero-content__t7CsA","hide-gradient":"Inductee3DHero_hide-gradient__ZIfdA","inductee-3d-hero__media":"Inductee3DHero_inductee-3d-hero__media__Eh16s",canvas:"Inductee3DHero_canvas__JtUfe","mobile-image":"Inductee3DHero_mobile-image__VWgdF"}},58794:function(e){e.exports={"inductee-card":"InducteeCard_inductee-card__3iORf","content-wrapper":"InducteeCard_content-wrapper__xeugw",image:"InducteeCard_image___ZrNS",hover:"InducteeCard_hover__qGTBA","image-wrapper":"InducteeCard_image-wrapper__I1dHM","no-image":"InducteeCard_no-image__xYzT_",class:"InducteeCard_class__5bQs1",category:"InducteeCard_category__tZWSK",pills:"InducteeCard_pills__wEGaI","text-wrapper":"InducteeCard_text-wrapper__K1QpG"}},40790:function(e){e.exports={"inductee-essay":"InducteeEssay_inductee-essay__iDzvi",content:"InducteeEssay_content__Vypiu","content-side":"InducteeEssay_content-side__ILZVy","image-container":"InducteeEssay_image-container__L3OG4","image-attribution":"InducteeEssay_image-attribution__H9rA4",copy:"InducteeEssay_copy__aESS4",attribution:"InducteeEssay_attribution__bR6op",button:"InducteeEssay_button__gNCvp"}},62017:function(e){e.exports={"inductee-hero":"InducteeHero_inductee-hero__t_C63","inductee-hero__image-wrapper":"InducteeHero_inductee-hero__image-wrapper__jAsT7",image:"InducteeHero_image__H4vq_","image--desktop":"InducteeHero_image--desktop__QOt9c","image--mobile":"InducteeHero_image--mobile__XxKCY","hero-image-attribution":"InducteeHero_hero-image-attribution__Xbjkc",content:"InducteeHero_content__ZjCwq",headline:"InducteeHero_headline__nXa1w","has-reverb":"InducteeHero_has-reverb__YmSML",line:"InducteeHero_line___obv6",info:"InducteeHero_info___NODD",item:"InducteeHero_item__Czaaq",value:"InducteeHero_value__t0Ljg"}},55831:function(e){e.exports={"inductee-hero-content":"InducteeHeroContent_inductee-hero-content__dyPhF",content:"InducteeHeroContent_content__SNbRS","headline-container":"InducteeHeroContent_headline-container__RZ2Wk",headline:"InducteeHeroContent_headline__u_HtX","small-font-size":"InducteeHeroContent_small-font-size__j1h1j","has-reverb":"InducteeHeroContent_has-reverb__TwNud",line:"InducteeHeroContent_line__QHeQS","line-text":"InducteeHeroContent_line-text__U7orf","line-3-1":"InducteeHeroContent_line-3
280-1__Ifqn2","line-long":"InducteeHeroContent_line-long__ddQRw","line-2-2":"InducteeHeroContent_line-2-2__uHmhB","line-3-3":"InducteeHeroContent_line-3-3__7In2S",info:"InducteeHeroContent_info__Mi6Hl",item:"InducteeHeroContent_item__bNAAL",value:"InducteeHeroContent_value__C_rYr"}},44246:function(e){e.exports={"inductee-impact-hero":"InducteeImpactHero_inductee-impact-hero__Vj_z6"}},5643:function(e){e.exports={"inductee-induction-hero":"InducteeInductionHero_inductee-induction-hero__A54li"}},76424:function(e){e.exports={"inductee-influence":"InducteeInfluence_inductee-influence__6JV9g",content:"InducteeInfluence_content__r1gQi",content__text:"InducteeInfluence_content__text__MQcEg",headline:"InducteeInfluence_headline__nYZzk",body:"InducteeInfluence_body__tcrt0",content__imagery:"InducteeInfluence_content__imagery__LEcch",inductee:"InducteeInfluence_inductee__nvbqY","inductee__image-wrapper":"InducteeInfluence_inductee__image-wrapper__4ohMJ","influence-attribution":"InducteeInfluence_influence-attribution__HBQJx",inductee__name:"InducteeInfluence_inductee__name__RAPZ2",flatlines:"InducteeInfluence_flatlines__g_1ER",bands:"InducteeInfluence_bands__6OMqU",left:"InducteeInfluence_left__f_W0Y",influences:"InducteeInfluence_influences__Fr3zg",bands__title:"InducteeInfluence_bands__title__accIQ",right:"InducteeInfluence_right___ZPtk",influenced:"InducteeInfluence_influenced__7v0kR","inductee-influence-name":"InducteeInfluence_inductee-influence-name__q_iQY",link:"InducteeInfluence_link__gys21",hover:"InducteeInfluence_hover__W2_tA",line:"InducteeInfluence_line__Uo27H","is-in-view":"InducteeInfluence_is-in-view__65K2z","reveal-fade":"InducteeInfluence_reveal-fade__5duy_","reveal-line":"InducteeInfluence_reveal-line__tFHUE","is-reveal-disabled":"InducteeInfluence_is-reveal-disabled__e20F0"}},81927:function(e){e.exports={"inductee-landing-header":"InducteeLandingHeader_inductee-landing-header__61m5b",container:"InducteeLandingHeader_container__w_SJx",headline:"InducteeLandingHeader_headline__jGh1u","tab-container":"InducteeLandingHeader_tab-container__5iUuq","is-fixed":"InducteeLandingHeader_is-fixed__bYdyP","tab-controls":"InducteeLandingHeader_tab-controls__cZ8bv","is-scrolled":"InducteeLandingHeader_is-scrolled__J_rJv",background:"InducteeLandingHeader_background__kvgEb","tab-button":"InducteeLandingHeader_tab-button__DcO0x",active:"InducteeLandingHeader_active__8h5L3"}},9053:function(e){e.exports={"tab-controls":"Tabs_tab-controls__Gy2tf","is-fixed":"Tabs_is-fixed__IU81I","is-scrolled":"Tabs_is-scrolled___4WSx","is-visible":"Tabs_is-visible__o5VnV",background:"Tabs_background__GTJ_b","by-class":"Tabs_by-class__Z1K_x","tab-button":"Tabs_tab-button__qHgLK",active:"Tabs_active__uczu0"}},67187:function(e){e.exports={"inductee-landing-loader":"InducteeLandingLoader_inductee-landing-loader__gjldm",spinner:"InducteeLandingLoader_spinner__IZXxh"}},5980:function(e){e.exports={"inductee-members":"InducteeMembers_inductee-members__TpbXb","inductee-members-content":"InducteeMembers_inductee-members-content__WnT5F","inductee-members-content-side":"InducteeMembers_inductee-members-content-side__AOkxY",copy:"InducteeMembers_copy__RfP6n",body:"InducteeMembers_body__OyaHy",members:"InducteeMembers_members__7HOPM",member:"InducteeMembers_member__v5_22","has-link":"InducteeMembers_has-link__JRn_9",name:"InducteeMembers_name__9lSL_",hover:"InducteeMembers_hover__WTl6v",single:"InducteeMembers_single__i58bj"}},53235:function(e){e.exports={"inductees-a-to-z":"InducteesAToZ_inductees-a-to-z__FZ0cl",container:"InducteesAToZ_container__8THuZ","search-bar-bg":"InducteesAToZ_search-bar-bg__uteKB","search-bar-bg--focused":"InducteesAToZ_search-bar-bg--focused__AEmYg","search-bar":"InducteesAToZ_search-bar__z0goO","search-bar--focused":"InducteesAToZ_search-bar--focused__gXwuo","search-bar--focused-desktop":"InducteesAToZ_search-bar--focused-desktop__IprWV","search-icon":"InducteesAToZ_search-icon__mXDW5","search-input":"InducteesAToZ_search-input__g78GE","alphabet-buttons":"InducteesAToZ_alphabet-buttons__QJ5Uv","full-size":"InducteesAToZ_full-size__I6vqo","alphabet-button":"InducteesAToZ_alphabet-button__NSXzn","is-active":"InducteesAToZ_is-active__ei_PC","inductee-grid":"InducteesAToZ_inductee-grid__4iqCd","inductee-item":"InducteesAToZ_inductee-item__VQru_","image-wrapper":"InducteesAToZ_image-wrapper__Ne_qD","image-loaded":"InducteesAToZ_image-loaded__VSUep",placeholder:"InducteesAToZ_placeholder__0O_9o",copy:"InducteesAToZ_copy__fS8Hg",name:"InducteesAToZ_name__9Ew5E",hover:"InducteesAToZ_hover__ut_Gq","no-results-container":"InducteesAToZ_no-results-container__Pl
280cAA"}},76337:function(e){e.exports={timeline:"Timeline_timeline__9cyLC",container:"Timeline_container__wOkt9","timeline-drag":"Timeline_timeline-drag__ES7VF",track:"Timeline_track__q4J_l",mark:"Timeline_mark__lMm1Y",line:"Timeline_line__egJ4z",hover:"Timeline_hover__itAO4",label:"Timeline_label__Bb8eR","mark--medium":"Timeline_mark--medium__Uz03_","mark--small":"Timeline_mark--small__s8d5A",tickMark:"Timeline_tickMark__L4wuS",tickLine:"Timeline_tickLine__PU9rV","tickMark--large":"Timeline_tickMark--large__nFZFW","tickMark--medium":"Timeline_tickMark--medium__Btn_c","tickMark--small":"Timeline_tickMark--small__6jboI",tickLabel:"Timeline_tickLabel__IGYK7"}},5239:function(e){e.exports={"inductees-by-class":"InducteesByClass_inductees-by-class__dPIhl","inductees-by-class-timeline":"InducteesByClass_inductees-by-class-timeline__31tO2","scroll-to-discover":"InducteesByClass_scroll-to-discover__R7mlQ","rotate-scroll":"InducteesByClass_rotate-scroll__CRmMB","scroll-to-discover--hidden":"InducteesByClass_scroll-to-discover--hidden__iIaGg",swipe:"InducteesByClass_swipe__jWjqY","icon-desktop":"InducteesByClass_icon-desktop__HWVk0","icon-mobile":"InducteesByClass_icon-mobile__53fTB","icon-mobile-arrow":"InducteesByClass_icon-mobile-arrow__lIjR5","rotate-scroll-invert":"InducteesByClass_rotate-scroll-invert__nST2r","list-row":"InducteesByClass_list-row__UpSBv","year-opened":"InducteesByClass_year-opened__OqjEw","expand-icon":"InducteesByClass_expand-icon__bxrd1",carousel:"InducteesByClass_carousel__4bFBB","carousel-spacer":"InducteesByClass_carousel-spacer__Xaq_p","is-scrolled":"InducteesByClass_is-scrolled__1TWP5","timeline-container":"InducteesByClass_timeline-container__HZApw","carousel-controls":"InducteesByClass_carousel-controls__ayHtr","active-year":"InducteesByClass_active-year__I_wM7",previous:"InducteesByClass_previous__B0jo3","inductees-by-class-grid":"InducteesByClass_inductees-by-class-grid__F_v5q",container:"InducteesByClass_container__k7iBU","inductees-grid":"InducteesByClass_inductees-grid__7rc4m","inductee-item":"InducteesByClass_inductee-item__8_Oz9","image-wrapper":"InducteesByClass_image-wrapper__YkyXg","image-loaded":"InducteesByClass_image-loaded__69rne",placeholder:"InducteesByClass_placeholder__VMnXW",copy:"InducteesByClass_copy__Q1NzI",name:"InducteesByClass_name__PzYXe",hover:"InducteesByClass_hover__Vm5sE","inductees-by-class-list-item":"InducteesByClass_inductees-by-class-list-item__Y1J1N","inductees-by-class-list":"InducteesByClass_inductees-by-class-list__SAmWD",active:"InducteesByClass_active__UI3Nn","collapsed-year-header":"InducteesByClass_collapsed-year-header__7uPIT","expanded-content":"InducteesByClass_expanded-content__mLMRk","expanded-content__content":"InducteesByClass_expanded-content__content__4Gb_f","year-header":"InducteesByClass_year-header__OwkyD",class:"InducteesByClass_class__DniIA",year:"InducteesByClass_year__zoSB3","inductees-list":"InducteesByClass_inductees-list__z0_VY",spacer:"InducteesByClass_spacer__N_dhf"}},27236:function(e){e.exports={"fade-to-black":"InducteesLandingWrapper_fade-to-black__tXNbv"}},10323:function(e){e.exports={"inline-redirect":"InlineRedirect_inline-redirect__hHr1H","inline-redirect-row":"InlineRedirect_inline-redirect-row__Xg2IR","inline-redirect-item":"InlineRedirect_inline-redirect-item__O4nhT","inline-redirect-item-content":"InlineRedirect_inline-redirect-item-content__poObb","inline-redirect-item-image":"InlineRedirect_inline-redirect-item-image__fGExZ",arrow:"InlineRedirect_arrow__hMhPF",hover:"InlineRedirect_hover__wOnGd",content:"InlineRedirect_content__5gi0S",headline:"InlineRedirect_headline__V0yMc","image-small":"InlineRedirect_image-small__F44p4","inline-redirect-item-body":"InlineRedirect_inline-redirect-item-body__WCsts"}},5886:function(e){e.exports={intro:"Intro_intro__b52rV",detail:"Intro_detail__E_jso",intro__content:"Intro_intro__content__zrHuF",headline:"Intro_headline__b4Fow",body:"Intro_body__FxYE1"}},9457:function(e){e.exports={list:"List_list__zLjGi",header:"List_header__dbGIq",subhead:"List_subhead__B8sHe",list__items:"List_list__items__qEe0y","list-item":"List_list-item__4OguN","list-item--last-row":"List_list-item--last-row__4Gm8h","list-item--link":"List_list-item--link__HQYo2","list-item--link--link":"List_list-item--link--link__6opzQ","list-item--text":"List_list-item--text__4Vsz8",title:"List_title__cx4IT",content:"List_content__E8_dM","content--link":"List_content--link__C_6LK"}},65149:function(e){e.exports={"list-cover-stories":"ListCoverStories_list-cover-stories__FSrp5",list:"ListCoverStories_list__V_mzM","list-cover-stories-item":"ListCoverStories_list-cover-stories-item__yq0ww",title:"ListCoverStories_title__9a5vJ","pill-wrapper":"ListCoverStories_pill-wrapper__Uxrbr","pill--played":"ListCoverStories_pill--played__mCKWw",hover:"ListCoverStories_hover__VBkf9","list-cover-stories__pagination":"ListCoverStories_list-cover-stories__pagination__g45_7","list-cover-stories__
280cta":"ListCoverStories_list-cover-stories__cta__KtG4h"}},1175:function(e){e.exports={"list-inductees":"ListInductees_list-inductees__pNIGb",header:"ListInductees_header__nTHXj","button-row":"ListInductees_button-row__2T6jb","inductee-list":"ListInductees_inductee-list__rysfv","inductee-text":"ListInductees_inductee-text__fxeC5","text-measure":"ListInductees_text-measure__JcjgB",inductee:"ListInductees_inductee__WgRvR",hovered:"ListInductees_hovered__i_dE_","inductee-image":"ListInductees_inductee-image__gzhQt",reversed:"ListInductees_reversed__nNHjQ",spacer:"ListInductees_spacer__VspQr","spacer-reveal":"ListInductees_spacer-reveal__A6Bc9"}},37252:function(e){e.exports={"listing-events":"ListingEvents_listing-events__VL6Qf",headline:"ListingEvents_headline__oPOed","list-container":"ListingEvents_list-container__RCKlK","button-row":"ListingEvents_button-row__SERKf",events:"ListingEvents_events__SEulm",event:"ListingEvents_event__tQydj",line:"ListingEvents_line__IP_VM",hovered:"ListingEvents_hovered__zlww1",image:"ListingEvents_image__gxafn",copy:"ListingEvents_copy__rbWem",wrapper:"ListingEvents_wrapper__fMjxA",title:"ListingEvents_title__6Wu4m",content:"ListingEvents_content__N6x2M","image-mobile":"ListingEvents_image-mobile__T41pi",item:"ListingEvents_item__44Jh4",sub:"ListingEvents_sub__sbRC4"}},70160:function(e){e.exports={"listing-events-full":"ListingEventsFull_listing-events-full__WoWCn",content:"ListingEventsFull_content__codpk",loading:"ListingEventsFull_loading__W6bsm","listing-events-full__loading":"ListingEventsFull_listing-events-full__loading__eDoP6","listing-events-full__loading__loader":"ListingEventsFull_listing-events-full__loading__loader__TNXFt","listing-events-full__empty":"ListingEventsFull_listing-events-full__empty__7ky_W","listing-events-full__list":"ListingEventsFull_listing-events-full__list__DBQ4L","listing-events-full-item":"ListingEventsFull_listing-events-full-item__6U_yk",image:"ListingEventsFull_image__Sv5Ha",content__wrapper:"ListingEventsFull_content__wrapper__URbGW",eyebrow:"ListingEventsFull_eyebrow__fyDKk","info-pills":"ListingEventsFull_info-pills__qBajM","info-pills--desktop":"ListingEventsFull_info-pills--desktop__p8DyQ",date:"ListingEventsFull_date__f40fY",price:"ListingEventsFull_price__jc2lh",buttons:"ListingEventsFull_buttons__MJxU9","listing-events-full__pagination":"ListingEventsFull_listing-events-full__pagination__RGToS"}},39114:function(e){e.exports={"listing-inductees":"ListingInductees_listing-inductees__AtbLv","listing-inductees__header":"ListingInductees_listing-inductees__header__F5Xkq",title:"ListingInductees_title__AlDQT",body:"ListingInductees_body__dqJig","listing-inductees__groups":"ListingInductees_listing-inductees__groups__5_BQZ",group:"ListingInductees_group__S1bXZ",group__copy:"ListingInductees_group__copy__nCZ5s",group__list:"ListingInductees_group__list__GVJ_D","listing-inductee-card":"ListingInductees_listing-inductee-card__hqSGs","image-wrapper":"ListingInductees_image-wrapper__2YaUu",hover:"ListingInductees_hover__eZwcR"}},88907:function(e){e.exports={"listing-press-releases":"ListingPressReleases_listing-press-releases__F7Imb","listing-press-releases__loading":"ListingPressReleases_listing-press-releases__loading__SWCLE","listing-press-releases__loading__loader":"ListingPressReleases_listing-press-releases__loading__loader__fQiHR","listing-press-releases__items":"ListingPressReleases_listing-press-releases__items__O2rUs","listing-press-releases-item":"ListingPressReleases_listing-press-releases-item__VaNOS",copy:"ListingPressReleases_copy__VO8oG",date:"ListingPressReleases_date__IjF2z",cta:"ListingPressReleases_cta__S596l","listing-press-releases__pagination":"ListingPressReleases_listing-press-releases__pagination__BfP8U"}},47547:function(e){e.exports={loader:"Loader_loader__GrUtG",content:"Loader_content__xtQu_",loader__loader:"Loader_loader__loader__mt_LZ"}},12767:function(e){e.exports={logos:"Logos_logos__0p9WF",content:"Logos_content__J9wak","logos-track":"Logos_logos-track__Oxw6U","logos-pagination":"Logos_logos-pagination__yrJ3a","logos-grid":"Logos_logos-grid__udzrL",logo:"Logos_logo__M0pV9","logo-group":"Logos_logo-group__x8CN6"}},7703:function(e){e.exports={main:"Main_main__Kkd1U"}},55230:function(e){e.exports={"material-loader":"MaterialLoader_material-loader__f9H5S","material-loader__spinner":"MaterialLoader_material-loader__spinner__xlcbs",rotation:"MaterialLoader_rotation__ObDMK","material-loader__spinner__circle":"MaterialLoader_material-loader__spinner__circle__SHmf8",turn:"MaterialLoader_turn__4tc5K"}},33973:function(e){e.exports={milestones:"Milestones_milestones__u9Xsj",row:"Milestones_row__hdZ7D",milestone:"Milestones_milestone__9RIwa"}},69779:function(e){e.exports={"next-up-story":"NextUpStory_next-up-story__b41uF","next-up-title":"NextUpStory_next-up-title__CU7ya","next-up-story-text":"NextUpStory_next-up-story-text__sm_32","next-up-story-text-content":"NextUpStory_next-up-story-text-content__Kr7
280pa","next-up-images":"NextUpStory_next-up-images__4be2_"}},55171:function(e){e.exports={pricing:"Pricing_pricing__GO0T9",pricing__items:"Pricing_pricing__items__BQNfK","price-item":"Pricing_price-item__DEQjg","price-item--last-row":"Pricing_price-item--last-row__llFmj","price-item__header":"Pricing_price-item__header__rs_p0"}},80068:function(e){e.exports={"query-pagination__buttons":"QueryPagination_query-pagination__buttons__h54HX","prev-button":"QueryPagination_prev-button__9Vocz","page-numbers":"QueryPagination_page-numbers__DSeVB","page-item":"QueryPagination_page-item__TFOnF",ellipsis:"QueryPagination_ellipsis__dr9ES",active:"QueryPagination_active__3_poM",hover:"QueryPagination_hover__x3DQ1"}},90902:function(e){e.exports={"quick-links":"QuickLinks_quick-links__DxWQF",header:"QuickLinks_header__gyf62",subhead:"QuickLinks_subhead__5FXB3",links:"QuickLinks_links__XSC8V","link-wrapper":"QuickLinks_link-wrapper__Fh5ML",link:"QuickLinks_link__gNE58",content:"QuickLinks_content__qazAU",hover:"QuickLinks_hover__dXcTh",icon:"QuickLinks_icon__7Z1p5",label:"QuickLinks_label__RGZ5n"}},81834:function(e){e.exports={quote:"Quote_quote__hEgfm","quote-content":"Quote_quote-content__mnion","quote-attribution":"Quote_quote-attribution__ibrFj","background-image":"Quote_background-image__vTQ6f","no-overlay":"Quote_no-overlay__bkb8l","quote-icon-wrapper":"Quote_quote-icon-wrapper__N0rV5","quote-icon":"Quote_quote-icon__RyZ_Q",closing:"Quote_closing__VRfWN",content:"Quote_content__QUc1Z",copy:"Quote_copy__BMr5w","quote-text":"Quote_quote-text__gD6Ne","dx-knockout--line":"Quote_dx-knockout--line__t1EdO","line-wrapper":"Quote_line-wrapper__NNG3e",line:"Quote_line__LkLni",attribution:"Quote_attribution__VYUNM","dx-knockout":"Quote_dx-knockout__YlC2T",name:"Quote_name__tbrEO",role:"Quote_role__KH3JJ"}},86123:function(e){e.exports={"quote-carousel":"QuoteCarousel_quote-carousel__e_3Lu",headline:"QuoteCarousel_headline__mvlzb","splide-container":"QuoteCarousel_splide-container__XN9s_","story-carousel-bottom":"QuoteCarousel_story-carousel-bottom__fakAT",slide:"QuoteCarousel_slide__j7ysS",image:"QuoteCarousel_image__gU5u0",type:"QuoteCarousel_type__Ge9Pk",content:"QuoteCarousel_content__BiE4i",quote:"QuoteCarousel_quote__cCFNZ",text:"QuoteCarousel_text__5ohlx",attribution:"QuoteCarousel_attribution__ixybj",name:"QuoteCarousel_name__2bp68"}},27736:function(e){e.exports={"reduce-motion":"ReduceMotionToggle_reduce-motion__U6kiK",checked:"ReduceMotionToggle_checked__fLymb"}},73278:function(e){e.exports={"reveal-wrapper":"RevealWrapper_reveal-wrapper__rbKYu"}},11604:function(e){e.exports={"rich-text":"RichText_rich-text__Xj3Dc","rich-text__content":"RichText_rich-text__content__d6pnz",hover:"RichText_hover__kFbJQ"}},33435:function(e){e.exports={channel:"RHTV-ChannelItem_channel__EaBBA",portrait:"RHTV-ChannelItem_portrait__wO0_o","media-background":"RHTV-ChannelItem_media-background__yfjh0","content-foreground":"RHTV-ChannelItem_content-foreground__kLQbO",title:"RHTV-ChannelItem_title__J0KG9",hover:"RHTV-ChannelItem_hover__F1gtj",debug:"RHTV-ChannelItem_debug__OfUVu"}},29916:function(e){e.exports={"rock-hall-tv-channels":"RHTV-Channels_rock-hall-tv-channels__h92we",debug:"RHTV-Channels_debug__j8yRE",row:"RHTV-Channels_row___MHmp","channels-row-sidespace":"RHTV-Channels_channels-row-sidespace__7TqWh","channels-wrapper":"RHTV-Channels_channels-wrapper__naOIu","channels-row-bottomspace":"RHTV-Channels_channels-row-bottomspace__cuuTH"}},522:function(e){e.exports={"rhtv-logo":"RHTV-Logo_rhtv-logo__NiMRd","video-ready":"RHTV-Logo_video-ready__r28fV","logo-spin":"RHTV-Logo_logo-spin__rO3v2"}},42628:function(e){e.exports={"rock-hall-tv-modal":"RHTV-Modal_rock-hall-tv-modal__KlQup",content:"RHTV-Modal_content___ZU5A","player-mask":"RHTV-Modal_player-mask__4t_9b","portrait-mode":"RHTV-Modal_portrait-mode__9iYC_",player:"RHTV-Modal_player__j7XNG","youtube-embed":"RHTV-Modal_youtube-embed__JocPM","pause-cover":"RHTV-Modal_pause-cover__Y1yRC","gradient-overlay":"RHTV-Modal_gradient-overlay__nh6Ju","transition-video":"RHTV-Modal_transition-video__1aS_W",debug:"RHTV-Modal_debug__aLdU0","player-ui":"RHTV-Modal_player-ui__6wrMT","player-ui-row":"RHTV-Modal_player-ui-row__FqsJC",top:"RHTV-Modal_top__IHil2",bottom:"RHTV-Modal_bottom__MGPo3",copy:"RHTV-Modal_copy__0B4Qm","channel-title":"RHTV-Modal_channel-title__LWLTj","video-title":"RHTV-Modal_video-title__r80LD","video-artist":"RHTV-Modal_video-artist__6cCs_",artist:"RHTV-Modal_artist__6_lib","artist-link":"RHTV-Modal_artist-link__yWZQc",hover:"RHTV-Modal_hover__QmbO0","watch-more-button":"RHTV-Modal_watch-more-button__v_TL_","touch-device":"RHTV-Modal_touch-device__67u7c","close-button":"RHTV-Modal_close-button__2OO19",controls:"RHTV-Modal_controls__rA9fm",control:"RHTV-Modal_control__UJ315",active:"RHTV-Modal_active__u1Hp0",prev:"RHTV-Modal_prev__GBNK6",next:"RHTV-Modal_next__w9_uj",pause:"RHTV-Modal_pause__qrFyx",disabled:"RHTV-Modal_disabled__ECATz",tray:"RHTV-Modal_tray__2ujjB","tray-content":"RHTV-Modal_tray-content__6OeYE","tray-ctas":"RHTV-Modal_tray-ctas__GcJIa","tray-cta":"RHTV-Modal_tray-cta__xmFFc",icon:"RHTV-Modal_icon__E_XGG","close-playlist":"RHTV-Modal_close-playlist__g9oFJ","tray-row-wrapper":"RHTV-Modal_tray-row-wrapper__jM85E","tray-row":"RHTV-Modal_tray-row__xjRY3",dragging:"RHTV-Modal_dragging__nY4xl","tray-item":"RHTV-Modal_tray-item__z9gZH","tray-item-media":"RHTV-Modal_tray-item-media__qjLO5","tray-row-sidespace":"RHTV-Modal_tray-row-sidespace__mdTwG"}},93108:function(e){e.exports={"rock-hall-tv":"RockHallTv_rock-hall-tv__mYMfs","rock-hall-tv-content":"RockHallTv_rock-hall-tv-content__6xNaz",header:"RockHallTv_header__An2I4","header-text":"RockHallTv_header-text__CR33W",headline:"RockHallTv_headline__z6CLB",subheadline:"RockHallTv_subheadline__Z1IHN",logo:"RockHallTv_logo__xksks","scroll-cta":"RockHallTv_scroll-cta___qWoB","cta-icon":"RockHallTv_cta-icon__KYVA5","channels-container":"RockHallTv_channels-container__jgF7l","dark-overlay":"RockHallTv_dark-overlay__XQZF9","touch-device":"RockHallTv_touch-device__znALp",debug:"RockHallTv_debug__D6DQ8","loading-overlay":"RockHallTv_loading-overlay__WMYwh"}},77630:function(e){e.exports={"rockhall-results":"RockHallResults_rockhall-results__ZdSlb",container:"RockHallResults_container__u1tHD",heading:"RockHallResults_heading__8PYnS",sup:"RockHallResults_sup__Ac5IQ","rockhall-results__filters":"RockHallResults_rockhall-results__filters__Lmis8","shop-cta":"RockHallResults_shop-cta__6heQE","rockhall-results__cards":"RockHallResults_rockhall-results__cards__m0Ji5","rockhall-result":"RockHallResults_rockhall-result__0eMCx","rockhall-result__image":"RockHallResults_rockhall-result__image__htIy_","rockhall-result__content":"RockHallResults_rockhall-result__content__fGZC7",hover:"RockHallResults_hover__D_sQo",fallback:"RockHallResults_fallback__Ej0cN","rockhall-result__arrow":"RockHallResults_rockhall-result__arrow__n3gMz","rockhall-result--shop":"RockHallResults_rockhall-result--shop__1rDfZ","shop-price":"RockHallResults_shop-price__BeYYf","rockhall-results__pagination":"RockHallResults_rockhall-results__pagination__ak3UE"}},17850:function(e){e.exports={search:"Search_search__8zDgT",loading:"Search_loading__OSxAI",search__loader:"Search_search__loader__IFo18","rockhall-results":"Search_rockhall-results__RaNGA","shop-results":"Search_shop-results__1XBMJ",container:"Search_container__zFSIi","no-results":"Search_no-results__KIBEB","no-results__copy":"Search_no-results__copy__GSZxO","search-container":"Search_search-container__f4m6q","search-container__results-loading":"Search_search-container__results-loading__lHrma",spinner:"Search_spinner__O6_Oa",hasSearched:"Search_hasSearched__HEd_3","search-form":"Search_search-form__KitKW","search-form__form":"Search_search-form__form__T9x1y","search-input":"Search_search-input__L39nN",focused:"Search_focused__proXu","search-input__icon":"Search_search-input__icon__EVTDq","search-input__input":"Search_search-input__input__1OFui","search-input__clear":"Search_search-input__clear__xLha_",hover:"Search_hover__1Wrb3"}},12943:function(e){e.exports={"search-results":"Results_search-results__lrxSQ","search-results__content":"Results_search-results__content__8yrmD",loading:"Results_loading__X6sye","search-results__button-row":"Results_search-results__button-row__4GlQv","search-result":"Results_search-result__WXFxc","search-result__image":"Results_search-result__image__dh_IB","search-result__content":"Results_search-result__content__f84Tf",copy:"Results_copy__nqvQN",hover:"Results_hover__NiiMJ","search-result--shop":"Results_search-result--shop__gV15R",arrow:"Results_arrow__5Zg4d","shop-price":"Results_shop-price__cbTER"}},24937:function(e){e.exports={"search-tray":"SearchTray_search-tray__mJxJJ",content:"SearchTray_content__Ljo3J","search-input-wrapper":"SearchTray_search-input-wrapper__2zpKu","search-input":"SearchTray_search-input__cV_kG",focused:"SearchTray_focused__xfYk0","search-input__icon":"SearchTray_search-input__icon__IvzBw","search-input__input":"SearchTray_search-input__input__5gbZb",loading:"SearchTray_loading__dodOu","search-input__clear":"SearchTray_search-input__clear__O0fZN",hover:"SearchTray_hover__8DjbF","results-wrapper":"SearchTray_results-wrapper__PZnOa",loader:"SearchTray_loader__SVMWZ",backdrop:"SearchTray_backdrop__OaB5r"}},84706:function(){},16842:function(e){e.exports={"section-footer":"SectionFooter_section-footer__LzMq5","footer-text":"SectionFooter_footer-text__m3TFW",hover:"SectionFooter_hover__RD1MS","footer-ctas":"SectionFooter_footer-ctas__cgpKJ"}},21910:function(e){e.exports={"section-header":"SectionHeader_section-header__nq96t",title:"SectionHeader_title__CkbrA",eyebrow:"SectionHeader_eyebrow__upw7j",subhead:"SectionHeader_subhead__WED9_",hover:"SectionHeader_hover__H9mW8","no-margin":"SectionHeader_no-margin__rdh67"}},92953:function(e){e.exports={"sound-explorer":"SoundExplorer_sound-explorer__6PwMG","sound-explorer__left-hit":"SoundExplorer_sound-explorer__left-hit__vUtaV","
280sound-explorer__right-hit":"SoundExplorer_sound-explorer__right-hit__7ijfY","icon-prev":"SoundExplorer_icon-prev__pmxvj","icon-next":"SoundExplorer_icon-next__AXaXa","sound-explorer-content":"SoundExplorer_sound-explorer-content__2Cei_",copy:"SoundExplorer_copy__ihRY3",eyebrow:"SoundExplorer_eyebrow__UpqqW",conveyor:"SoundExplorer_conveyor__DBRnz","conveyor-track":"SoundExplorer_conveyor-track__9AG1c","conveyor-track-container":"SoundExplorer_conveyor-track-container__KuDl1","controls-description-wrapper":"SoundExplorer_controls-description-wrapper__qAuwO",controls:"SoundExplorer_controls__YJdQu",control:"SoundExplorer_control__yrQKc",hover:"SoundExplorer_hover__TkY9r",prev:"SoundExplorer_prev__Snntf",next:"SoundExplorer_next__a57dx",pause:"SoundExplorer_pause__VtrNt",disabled:"SoundExplorer_disabled__qYY_S",description:"SoundExplorer_description__Xsd1M",slide:"SoundExplorer_slide__4iU5p","slide-image":"SoundExplorer_slide-image__40eCa","slide-record":"SoundExplorer_slide-record__HEVAP","record-center":"SoundExplorer_record-center__ETgxj","slide-cover":"SoundExplorer_slide-cover__MjaSI","slide-play-button":"SoundExplorer_slide-play-button__z58d2","slide-content":"SoundExplorer_slide-content__51ki9","slide-content-top":"SoundExplorer_slide-content-top__RL5dK",song:"SoundExplorer_song__ZEmZL",album:"SoundExplorer_album__xjVPJ"}},91287:function(e){e.exports={"sound-icon":"SoundIcon_sound-icon__4mfMN","sound-icon-column":"SoundIcon_sound-icon-column__fdKPZ","sound-icon-bar":"SoundIcon_sound-icon-bar__Wr60x"}},46585:function(e){e.exports={"sound-popup":"SoundPopup_sound-popup__iTKoe","popup-large":"SoundPopup_popup-large__N_sfj","close-button":"SoundPopup_close-button__PF9sh",hover:"SoundPopup_hover__gdwTW",icon:"SoundPopup_icon__v74iw",copy:"SoundPopup_copy__tSVlE",buttons:"SoundPopup_buttons__NOGDQ","sound-on":"SoundPopup_sound-on__JvgDi","sound-off":"SoundPopup_sound-off__yJkZd",headline:"SoundPopup_headline__ti0Vs","icon-container":"SoundPopup_icon-container__F0Tet",accent:"SoundPopup_accent__wvuTc",bars:"SoundPopup_bars__LUNTo","icon-wrapper":"SoundPopup_icon-wrapper__w8Hnx","popup-small":"SoundPopup_popup-small__dVMdW",tooltip:"SoundPopup_tooltip__VbzIT",hidden:"SoundPopup_hidden__aexw6",waiting:"SoundPopup_waiting__KKy9T"}},11483:function(e){e.exports={spotlight:"Spotlight_spotlight__knnJR",content:"Spotlight_content__Gas59",content__text:"Spotlight_content__text__v3YKu",title:"Spotlight_title__g7_vS",eyebrow:"Spotlight_eyebrow__Snxfa",title__lines:"Spotlight_title__lines__9pJ9P",line:"Spotlight_line__81zNb","title__lines__line-0":"Spotlight_title__lines__line-0__DuF5e","title__lines__line-1":"Spotlight_title__lines__line-1__UKbyr","title__lines__line-2":"Spotlight_title__lines__line-2__3S2LS",body:"Spotlight_body__NupRs","body__p-container":"Spotlight_body__p-container__H6jRn",content__imagery:"Spotlight_content__imagery__Jmghs","spotlight-image-attribution":"Spotlight_spotlight-image-attribution__68zoH","image-column":"Spotlight_image-column__rGhKz","image-wrapper":"Spotlight_image-wrapper__gPrth","direction-right":"Spotlight_direction-right__kAo_h","variant-imagery-single":"Spotlight_variant-imagery-single__lM9Je","variant-imagery-video":"Spotlight_variant-imagery-video__vvdIn",debug:"Spotlight_debug__gNDYK"}},75429:function(e){e.exports={"sticky-nav":"StickyNav_sticky-nav__hkLgo","sticky-nav-content":"StickyNav_sticky-nav-content__E9oxQ","sticky-nav-list":"StickyNav_sticky-nav-list__VOlfw","sticky-nav-item":"StickyNav_sticky-nav-item__g2kTS","sticky-nav-link":"StickyNav_sticky-nav-link__hY9US","show-immediately":"StickyNav_show-immediately__jqN3_","is-stuck":"StickyNav_is-stuck__lDeTL","is-touch":"StickyNav_is-touch__5d6ah",hover:"StickyNav_hover__9Wpyp"}},92806:function(e){e.exports={"text-image":"TextImage_text-image__svVuG",header:"TextImage_header__smgi7",subhead:"TextImage_subhead__VtW2o",container:"TextImage_container__XSLmb","text-image-item":"TextImage_text-image-item__Jzm7X",image:"TextImage_image__LLhOM",content:"TextImage_content__ggjdR",eyebrow:"TextImage_eyebrow__FJm6S",headline:"TextImage_headline__zLCmq",buttons:"TextImage_buttons__FO1_v"}},47233:function(e){e.exports={"ticketing-form":"TicketingForm_ticketing-form__9SvAB",form:"TicketingForm_form__0xJ8y",form__loader:"TicketingForm_form__loader__t7XN2",form__loader__loader:"TicketingForm_form__loader__loader__UPxzG",step:"TicketingForm_step___tswF",step__copy:"TicketingForm_step__copy__Bv_Ef","step-label":"TicketingForm_step-label__xHEOJ",form__submit:"TicketingForm_form__submit__Ul6Yc","step-one":"TicketingForm_step-one__vRHgm","date-options":"TicketingForm_date-options__fjZUh","day-select":"TicketingForm_day-select__4JcL_","date-picker":"TicketingForm_date-picker__gVxt3","date-select":"TicketingForm_date-select__Focjj",hover:"TicketingForm_hover__hxTw4",active:"TicketingForm_active__crk8w",circle:"TicketingForm_circle__EOE1J",icon:"TicketingForm_icon__lR5hz","step-two__no-times":"TicketingForm_step-two__no-times__75TND","step-two__info-message":"TicketingForm_step-two__info-message__H3yzT","step-two__loader":"TicketingForm_step-two__loader___hQn1","step-two__session-info":"TicketingForm_step-two__session-info__WsBXL","step-two__session-buttons":"TicketingForm_step-two__session-buttons__lTsyJ","session-button":"TicketingForm_session-button__KgtUb","step-three__ticket-options":"TicketingForm_step-three__ticket-options__5SrNS","step-three":"TicketingForm_step-three__E133x",ticket:"TicketingForm_ticket__oNDvn",name:"TicketingForm_name___abbf",price:"TicketingForm_price__Vts80",link:"TicketingForm_link__IDcio",ticket__content:"TicketingForm_ticket__content__V6rgV","member-link":"TicketingForm_member-link__ZXylX","step-three__content-wrapper":"TicketingForm_step-three__content-wrapper__Rdczi","ticketing-accordion":"TicketingForm_ticketing-accordion__JTQz3",button:"TicketingForm_button__f0rwO",expanded:"TicketingForm_expanded__ZBh_x","ticketing-accordion__content-wrapper":"TicketingForm_ticketing-accordion__content-wrapper__xCY_G","ticketing-accordion__content":"TicketingForm_ticketing-accordion__content__4psfD","included-ticket":"TicketingForm_included-ticket__9y2MU",title:"TicketingForm_title__yneye"}},46385:function(e){e.exports={ticketing:"Ticketing_ticketing__0yfAV",ticketing__container:"Ticketing_ticketing__container__ZHYZ3",ticketing__content:"Ticketing_ticketing__content__EJ8lg",copy:"Ticketing_copy__TbFlp"}},45091:function(e){e.exports={title:"Title_title__MZ67h",headline:"Title_headline__ztVQY","title-uc-xxxxl":"Title_title-uc-xxxxl__LZoh9"}},96749:function(e){e.exports={"type-pill":"TypePill_type-pill__05a9i","type-pill__background":"TypePill_type-pill__background__V2Aah",copy:"TypePill_copy__0efgG"}},43313:function(e){e.exports={"video-carousel":"VideoCarousel_video-carousel__d__ES","video-carousel__wrapper":"VideoCarousel_video-carousel__wrapper__WxJZV","toggle-overlay":"VideoCarousel_toggle-overlay__KVrdL",toggle:"VideoCarousel_toggle__GRzso",icon:"VideoCarousel_icon__jmr55",expanded:"VideoCarousel_expanded__8myeW","video-carousel__pagination":"VideoCarousel_video-carousel__pagination__uXT7P","video-carousel-item":"VideoCarousel_video-carousel-item__sIo40",hover:"
280VideoCarousel_hover___OVyg"}},95329:function(e){e.exports={"basic-embed":"BasicEmbed_basic-embed__ei272","basic-embed__overlay":"BasicEmbed_basic-embed__overlay__EQ9kt",image:"BasicEmbed_image__KmydD","play-button":"BasicEmbed_play-button__bN7qg"}},33128:function(e){e.exports={"consent-gate":"ConsentGate_consent-gate__Soe77","consent-gate-static":"ConsentGate_consent-gate-static__PgCqm","consent-gate__text":"ConsentGate_consent-gate__text__5DTkZ","consent-gate__actions":"ConsentGate_consent-gate__actions__xzrfT","consent-gate__accept":"ConsentGate_consent-gate__accept__aDA8h","consent-gate__external":"ConsentGate_consent-gate__external__8K129"}},66962:function(e){e.exports={"vimeo-embed":"VimeoEmbed_vimeo-embed__YxObp"}},28998:function(e){e.exports={"youtube-embed":"YoutubeEmbed_youtube-embed__YTlk7","block-interaction":"YoutubeEmbed_block-interaction__XeBWv","youtube-image-preview":"YoutubeEmbed_youtube-image-preview__aXdfT","youtube-video-preview":"YoutubeEmbed_youtube-video-preview__Ol84r",overlay:"YoutubeEmbed_overlay__tEZqT","play-button":"YoutubeEmbed_play-button__FuosK",image:"YoutubeEmbed_image__R96hV",video:"YoutubeEmbed_video__pu80z"}},93147:function(e){e.exports={video:"VideoPlaylist_video__P2stJ",content:"VideoPlaylist_content__m8_fD"}}
280,68982:function(e){e.exports={"video-container":"VideoPlaylistDesktop_video-container__R5U7g","video-items":"VideoPlaylistDesktop_video-items__VQ1UY",video:"VideoPlaylistDesktop_video__1_2TZ","video-playlist-vid":"VideoPlaylistDesktop_video-playlist-vid__r7wLn",active:"VideoPlaylistDesktop_active___B8Eg","video-items-title":"VideoPlaylistDesktop_video-items-title__b7RWn","video-thumbnails":"VideoPlaylistDesktop_video-thumbnails__nslwN","video-thumbnail":"VideoPlaylistDesktop_video-thumbnail__ZAVuG","image-wrapper":"VideoPlaylistDesktop_image-wrapper__uX7Ls",hover:"VideoPlaylistDesktop_hover__skF42",icon:"VideoPlaylistDesktop_icon__MMfI2",copy:"VideoPlaylistDesktop_copy__1QNmi"}},55885:function(e){e.exports={"video-playlist-mobile":"VideoPlaylistMobile_video-playlist-mobile__dfkbH","video-item":"VideoPlaylistMobile_video-item__HOG6r","video-embed":"VideoPlaylistMobile_video-embed___VaL0"}},95311:function(e){e.exports={"video-singular":"VideoSingular_video-singular__KXeoG",detail:"VideoSingular_detail__ZFr_l","video-singular-content":"VideoSingular_video-singular-content__pV4Fz","video-title":"VideoSingular_video-title__qmhE8"}},39176:function(e){e.exports={"wifi-form":"WifiForm_wifi-form__EOmOQ",content:"WifiForm_content__grW3w",intro:"WifiForm_intro__kVvqd","form-container":"WifiForm_form-container__gSRAf",form:"WifiForm_form__jye2N","success-card":"WifiForm_success-card__HNYw0","input-wrapper":"WifiForm_input-wrapper__3WL4L",label:"WifiForm_label___aoUS",input:"WifiForm_input__C3mPj",filled:"WifiForm_filled__46X7p","submit-wrapper":"WifiForm_submit-wrapper__uZvus","required-message":"WifiForm_required-message__uqzIi","error-message":"WifiForm_error-message__9fP9J",submit:"WifiForm_submit__CtCYp","success-card__message":"WifiForm_success-card__message__DBRbQ"}},92315:function(){},2851:function(){},24532:function(e){e.exports={style:{fontFamily:"'__fraunces_2987e3', '__fraunces_Fallback_2987e3', serif"},className:"__className_2987e3",variable:"__variable_2987e3"}},83394:function(e){e.exports={style:{fontFamily:"'__barlow_7297f5', '__barlow_Fallback_7297f5', sans-serif"},className:"__className_7297f5",variable:"__variable_7297f5"}},2164:function(e){e.exports={style:{fontFamily:"'__heptaSlab_cd2e06', '__heptaSlab_Fallback_cd2e06', serif"},className:"__className_cd2e06",variable:"__variable_cd2e06"}},96895:function(e){e.exports={style:{fontFamily:"'__oswald_d48e11', '__oswald_Fallback_d48e11', sans-serif"},className:"__className_d48e11",variable:"__variable_d48e11"}},97086:function(e){e.exports={style:{fontFamily:"'__playfairDisplay_059009', '__playfairDisplay_Fallback_059009', serif"},className:"__className_059009",variable:"__variable_059009"}},96618:function(e){e.exports={style:{fontFamily:"'__raleway_679227', '__raleway_Fallback_679227', sans-serif"},className:"__className_679227",variable:"__variable_679227"}},34543:function(e){e.exports={style:{fontFamily:"'__syne_f2b9ea', '__syne_Fallback_f2b9ea', sans-serif"},className:"__className_f2b9ea",variable:"__variable_f2b9ea"}},40336:function(e){e.exports={style:{fontFamily:"'__GenerationSansPro_7609b2', '__GenerationSansPro_Fallback_7609b2'"},className:"__className_7609b2",variable:"__variable_7609b2"}},47239:function(e){e.exports={style:{fontFamily:"'__Sohne_4e0f9b', '__Sohne_Fallback_4e0f9b'"},className:"__className_4e0f9b",variable:"__variable_4e0f9b"}},77663:function(e){var t="/";!function(){var n={229:function(e){var t,n,i,r=e.exports={};function a(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}function l(e){if(n===clearTimeout)return clearTimeout(e);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{n="function"==typeof clearTimeout?clearTimeout:s}
280catch(e){n=s}}();var u=[],c=!1,d=-1;function h(){c&&i&&(c=!1,i.length?u=i.concat(u):d=-1,u.length&&f())}function f(){if(!c){var e=o(h);c=!0;for(var t=u.length;t;){for(i=u,u=[];++d<t;)i&&i[d].run();d=-1,t=u.length}i=null,c=!1,l(e)}}function p(e,t){this.fun=e,this.array=t}function m(){}r.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new p(e,t)),1!==u.length||c||o(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=m,r.addListener=m,r.once=m,r.off=m,r.removeListener=m,r.removeAllListeners=m,r.emit=m,r.prependListener=m,r.prependOnceListener=m,r.listeners=function(e){return[]},r.binding=function(e){throw Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw Error("process.chdir is not supported")},r.umask=function(){return 0}}},i={};function r(e){var t=i[e];if(void 0!==t)return t.exports;var a=i[e]={exports:{}},s=!0;try{n[e](a,a.exports,r),s=!1}finally{s&&delete i[e]}return a.exports}r.ab=t+"/";var a=r(229);e.exports=a}()},5152:function(e,t,n){e.exports=n(32602)},9008:function(e,t,n){e.exports=n(23867)},25675:function(e,t,n){e.exports=n(76210)},41664:function(e,t,n){e.exports=n(98342)},39332:function(e,t,n){e.exports=n(8199)},11163:function(e,t,n){e.exports=n(43079)},47279:function(e,t,n){"use strict";n.d(t,{Gj:function(){return nw},jw:function(){return nS},tv:function(){return nT}});var i=n(67294);function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var s="(prefers-reduced-motion: reduce)",o=1,l=3,u=4,c=5,d=6,h=7,f={CREATED:1,MOUNTED:2,IDLE:3,MOVING:4,SCROLLING:5,DRAGGING:6,DESTROYED:7};function p(e){e.length=0}function m(e,t,n){return Array.prototype.slice.call(e,t,n)}function g(e){return e.bind.apply(e,[null].concat(m(arguments,1)))}var v=setTimeout,y=function(){};function _(e){return requestAnimationFrame(e)}function b(e,t){return typeof t===e}function x(e){return!S(e)&&b("object",e)}var C=Array.isArray,E=g(b,"function"),w=g(b,"string"),T=g(b,"undefined");function S(e){return null===e}function L(e){try{return e instanceof(e.ownerDocument.defaultView||window).HTMLElement}catch(e){return!1}}function P(e){return C(e)?e:[e]}function M(e,t){P(e).forEach(t)}function A(e,t){return e.indexOf(t)>-1}function I(e,t){return e.push.apply(e,P(t)),e}function R(e,t,n){e&&M(t,function(t){t&&e.classList[n?"add":"remove"](t)})}function k(e,t){R(e,w(t)?t.split(" "):t,!0)}function D(e,t){M(t,e.appendChild.bind(e))}function N(e,t){M(e,function(e){var n=(t||e).parentNode;n&&n.insertBefore(e,t)})}function F(e,t){return L(e)&&(e.msMatchesSelector||e.matches).call(e,t)}function O(e,t){var n=e?m(e.children):[];return t?n.filter(function(e){return F(e,t)}):n}function j(e,t){return t?O(e,t)[0]:e.firstElementChild}var U=Object.keys;function V(e,t,n){return e&&(n?U(e).reverse():U(e)).forEach(function(n){"__proto__"!==n&&t(e[n],n)}),e}function B(e){return m(arguments,1).forEach(function(t){V(t,function(n,i){e[i]=t[i]})}),e}function H(e){return m(arguments,1).forEach(function(t){V(t,function(t,n){C(t)?e[n]=t.slice():x(t)?e[n]=H({},x(e[n])?e[n]:{},t):e[n]=t})}),e}function G(e,t){M(t||U(e),function(t){delete e[t]})}function z(e,t){M(e,function(e){M(t,function(t){e&&e.removeAttribute(t)})})}function q(e,t,n){x(t)?V(t,function(t,n){q(e,n,t)}):M(e,function(e){S(n)||""===n?z(e,t):e.setAttribute(t,String(n))})}function W(e,t,n){var i=document.createElement(e);return t&&(w(t)?k(i,t):q(i,t)),n&&D(n,i),i}function $(e,t,n){if(T(n))return getComputedStyle(e)[t];S(n)||(e.style[t]=""+n)}function Z(e,t){$(e,"display",t)}function Y(e){e.setActive&&e.setActive()||e.focus({preventScroll:!0})}function K(e,t){return e.getAttribute(t)}function X(e,t){return e&&e.classList.contains(t)}function Q(e){return e.getBoundingClientRect()}function J(e){M(e,function(e){e&&e.parentNode&&e.parentNode.removeChild(e)})}function ee(e){return j(new DOMParser().parseFromString(e,"text/html").body)}function et(e,t){e.preventDefault(),t&&(e.stopPropagation(),e.stopImmediatePropagation())}function en(e,t){return e&&e.querySelector(t)}function ei(e,t){return t?m(e.querySelectorAll(t)):[]}function er(e,t){R(e,t,!1)}function ea(e){return e.timeStamp}function es(e){return w(e)?e:e?e+"px":""}var eo="splide",el="data-"+eo;function eu(e,t){if(!e)throw Error("["+eo+"] "+(t||""))}var ec=Math.min,ed=Math.max,eh=Math.floor,ef=Math.ceil,ep=Math.abs;function em(e,t,n){return ep(e-t)<n}function eg(e,t,n,i){var r=ec(t,n),a=ed(t,n);return i?r<e&&e<a:r<=e&&e<=a}function ev(e,t,n){var i=ec(t,n),r=ed(t,n);return ec(ed(i,e),r)}function ey(e){return+(e>0)-+(e<0)}function e_(e,t){return M(t,function(t){e=e.replace("%s",""+t)}),e}function eb(e){return e<10?"0"+e:""+e}var ex={};function eC(e){return""+e+eb(ex[e]=(ex[e]||0)+1)}function eE(){var e=[];function t(e,t,n){M(e,function(e){e&&M(t,function(t){t.split(" ").forEach(function(t){var i=t.split(".");n(e,i[0],i[1])})})})}return{bind:function(n,i,r,a){t(n,i,function(t,n,i){var s="addEventListener"in t,o=s?t.removeEventListener.bind(t,n,r,a):t.removeListener.bind(t,r);s?t.addEventListener(n,r,a):t.addListener(r),e.push([t,n,i,r,o])})},unbind:function(n,i,r){t(n,i,function(t,n,i){e=e.filter(function(e){return e[0]!==t||e[1]!==n||e[2]!==i||!!r&&e[3]!==r||(e[4](),!1)})})},dispatch:function(e,t,n){var i,r=!0;return"function"==typeof CustomEvent?i=new CustomEvent(t,{bubbles:r,detail
vendor: 4,138 bytes, line 280
280:n}):(i=document.createEvent("CustomEvent")).initCustomEvent(t,r,!1,n),e.dispatchEvent(i),i},destroy:function(){e.forEach(function(e){e[4]()}),p(e)}}}var ew="mounted",eT="ready",eS="move",eL="moved",eP="click",eM="active",eA="inactive",eI="visible",eR="hidden",ek="refresh",eD="updated",eN="resize",eF="resized",eO="drag",ej="dragging",eU="dragged",eV="scroll",eB="scrolled",eH="overflow",eG="destroy",ez="arrows:mounted",eq="arrows:updated",eW="pagination:mounted",e$="pagination:updated",eZ="navigation:mounted",eY="autoplay:play",eK="autoplay:playing",eX="autoplay:pause",eQ="lazyload:loaded",eJ="sk",e0="sh",e1="ei";function e2(e){var t=e?e.event.bus:document.createDocumentFragment(),n=eE();function i(e,i){n.bind(t,P(e).join(" "),function(e){i.apply(i,C(e.detail)?e.detail:[])})}function r(e){n.dispatch(t,e,m(arguments,1))}return e&&e.event.on(eG,n.destroy),B(n,{bus:t,on:i,off:g(n.unbind,t),emit:r})}function e3(e,t,n,i){var r,a,s=Date.now,o=0,l=!0,u=0;function c(){if(!l){if(o=e?ec((s()-r)/e,1):1,n&&n(o),o>=1&&(t(),r=s(),i&&++u>=i))return d();a=_(c)}}function d(){l=!0}function h(){a&&cancelAnimationFrame(a),o=0,a=0,l=!0}return{start:function(t){t||h(),r=s()-(t?o*e:0),l=!1,a=_(c)},rewind:function(){r=s(),o=0,n&&n(o)},pause:d,cancel:h,set:function(t){e=t},isPaused:function(){return l}}}function e5(e){var t=e;return{set:function(e){t=e},is:function(e){return A(P(e),t)}}}function e4(e,t){var n=e3(t||0,e,null,1);return function(){n.isPaused()&&n.start()}}var e6="Arrow",e8=e6+"Left",e7=e6+"Right",e9=e6+"Up",te=e6+"Down",tt="rtl",tn="ttb",ti={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[e9,e7],ArrowRight:[te,e8]},tr="role",ta="tabindex",ts="aria-",to=ts+"controls",tl=ts+"current",tu=ts+"selected",tc=ts+"label",td=ts+"labelledby",th=ts+"hidden",tf=ts+"orientation",tp=ts+"roledescription",tm=ts+"live",tg=ts+"busy",tv=ts+"atomic",ty=[tr,ta,"disabled",to,tl,tc,td,th,tf,tp],t_=eo+"__",tb="is-",tx=eo,tC=t_+"track",tE=t_+"list",tw=t_+"slide",tT=tw+"--clone",tS=tw+"__container",tL=t_+"arrows",tP=t_+"arrow",tM=tP+"--prev",tA=tP+"--next",tI=t_+"pagination",tR=tI+"__page",tk=t_+"progress__bar",tD=t_+"toggle",tN=t_+"spinner",tF=t_+"sr",tO=tb+"initialized",tj=tb+"active",tU=tb+"prev",tV=tb+"next",tB=tb+"visible",tH=tb+"loading",tG=tb+"focus-in",tz=tb+"overflow",tq=[tj,tB,tU,tV,tH,tG,tz],tW={slide:tw,clone:tT,arrows:tL,arrow:tP,prev:tM,next:tA,pagination:tI,page:tR,spinner:tN};function t$(e,t){if(E(e.closest))return e.closest(t);for(var n=e;n&&1===n.nodeType&&!F(n,t);)n=n.parentElement;return n}var tZ=5,tY=200,tK="touchstart mousedown",tX="touchmove mousemove",tQ="touchend touchcancel mouseup click",tJ="slide",t0="loop",t1="fade";function t2(e,t,n,i){var r,a=e2(e),s=a.on,o=a.emit,l=a.bind,d=e.Components,h=e.root,f=e.options,p=f.isNavigation,m=f.updateOnMove,v=f.i18n,y=f.pagination,_=f.slideFocus,b=d.Direction.resolve,x=K(i,"style"),C=K(i,tc),E=n>-1,w=j(i,"."+tS);function T(){E||(i.id=h.id+"-slide"+eb(t+1),q(i,tr,y?"tabpanel":"group"),q(i,tp,v.slide),q(i,tc,C||e_(v.slideLabel,[t+1,e.length]))),S()}function S(){l(i,"click",g(o,eP,U)),l(i,"keydown",g(o,eJ,U)),s([eL,e0,eB],A),s(eZ,P),m&&s(eS,M)}function L(){r=!0,a.destroy(),er(i,tq),z(i,ty),q(i,"style",x),q(i,tc,C||"")}function P(){var r=e.splides.map(function(e){var n=e.splide.Components.Slides.getAt(t);return n?n.slide.id:""}).join(" ");q(i,tc,e_(v.slideX,(E?n:t)+1)),q(i,to,r),q(i,tr,_?"button":""),_&&z(i,tp)}function M(){r||A()}function A(){if(!r){var n=e.index;I(),k(),R(i,tU,t===n-1),R(i,tV,t===n+1)}}function I(){var e=N();e!==X(i,tj)&&(R(i,tj,e),q(i,tl,p&&e||""),o(e?eM:eA,U))}function k(){var t=F(),n=!t&&(!N()||E);if(e.state.is([u,c])||q(i,th,n||""),q(ei(i,f.focusableNodes||""),ta,n?-1:""),_&&q(i,ta,n?-1:0),t!==X(i,tB)&&(R(i,tB,t),o(t?eI:eR,U)),!t&&document.activeElement===i){var r=d.Slides.getAt(e.index);r&&Y(r.slide)}}function D(e,t,n){$(n&&w||i,e,t)}function N(){var i=e.index;return i===t||f.cloneStatus&&i===n}function F(){if(e.is(t1))return N();var t=Q(d.Elements.track),n=Q(i),r=b("left",!0),a=b("right",!0);return eh(t[r])<=ef(n[r])&&eh(n[a])<=ef(t[a])}function O(n,i){var r=ep(n-t);
280return!E&&(f.rewind||e.is(t0))&&(r=ec(r,e.length-r)),r<=i}var U={index:t,slideIndex:n,slide:i,container:w,isClone:E,mount:T,destroy:L,update:A,style:D,isWithin:O};return U}var t3=2,t5="http://www.w3.org/2000/svg",t4="m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z",t6=40,t8=el+"-interval",t7=10,t9=600,ne=.6,nt=1.5,nn=800,ni={passive:!1,capture:!0},nr={Spacebar:" ",Right:e7,Left:e8,Up:e9,Down:te};function na(e){return nr[e=w(e)?e:e.key]||e}var ns="keydown",no=el+"-lazy",nl=no+"-srcset",nu="["+no+"], ["+nl+"]",nc=[" ","Enter"],nd=90,nh=Object.freeze({__proto__:null,Media:function(e,t,n){var i=e.state,r=n.breakpoints||{},a=n.reducedMotion||{},l=eE(),u=[];function c(e){e&&l.destroy()}function d(e,t){var n=matchMedia(t);l.bind(n,"change",f),u.push([e,n])}function f(){var t=i.is(h),r=n.direction,a=u.reduce(function(e,t){return H(e,t[1].matches?t[0]:{})},{});G(n),p(a),n.destroy?e.destroy("completely"===n.destroy):t?(c(!0),e.mount()):r!==n.direction&&e.refresh()}function p(t,r,a){H(n,t),r&&H(Object.getPrototypeOf(n),t),(a||!i.is(o))&&e.emit(eD,n)}return{setup:function(){var e="min"===n.mediaQuery;U(r).sort(function(t,n){return e?+t-+n:+n-+t}
280).forEach(function(t){d(r[t],"("+(e?"min":"max")+"-width:"+t+"px)")}),d(a,s),f()},destroy:c,reduce:function(e){matchMedia(s).matches&&(e?H(n,a):G(n,U(a)))},set:p}},Direction:function(e,t,n){return{resolve:function(e,t,i){var r=(i=i||n.direction)!==tt||t?i===tn?0:-1:1;return ti[e]&&ti[e][r]||e.replace(/width|left|right/i,function(e,t){var n=ti[e.toLowerCase()][r]||e;return t>0?n.charAt(0).toUpperCase()+n.slice(1):n})},orient:function(e){return e*(n.direction===tt?1:-1)}}},Elements:function(e,t,n){var i,r,a,s=e2(e),o=s.on,l=s.bind,u=e.root,c=n.i18n,d={},h=[],f=[],m=[];function g(){b(),x(),_()}function v(){o(ek,y),o(ek,g),o(eD,_),l(document,tK+" keydown",function(e){a="keydown"===e.type},{capture:!0}),l(u,"focusin",function(){R(u,tG,!!a)})}function y(e){var t=ty.concat("style");p(h),er(u,f),er(i,m),z([i,r],t),z(u,e?t:["style",tp])}function _(){er(u,f),er(i,m),f=E(tx),m=E(tC),k(u,f),k(i,m),q(u,tc,n.label),q(u,td,n.labelledby)}function b(){r=j(i=C("."+tC),"."+tE),eu(i&&r,"A track/list element is missing."),I(h,O(r,"."+tw+":not(."+tT+")")),V({arrows:tL,pagination:tI,prev:tM,next:tA,bar:tk,toggle:tD},function(e,t){d[t]=C("."+e)}),B(d,{root:u,track:i,list:r,slides:h})}function x(){var e=u.id||eC(eo),t=n.role;u.id=e,i.id=i.id||e+"-track",r.id=r.id||e+"-list",!K(u,tr)&&"SECTION"!==u.tagName&&t&&q(u,tr,t),q(u,tp,c.carousel),q(r,tr,"presentation")}function C(e){var t=en(u,e);return t&&t$(t,"."+tx)===u?t:void 0}function E(e){return[e+"--"+n.type,e+"--"+n.direction,n.drag&&e+"--draggable",n.isNavigation&&e+"--nav",e===tx&&tj]}return B(d,{setup:g,mount:v,destroy:y})},Slides:function(e,t,n){var i=e2(e),r=i.on,a=i.emit,s=i.bind,o=t.Elements,l=o.slides,u=o.list,c=[];function d(){l.forEach(function(e,t){f(e,t,-1)})}function h(){v(function(e){e.destroy()}),p(c)}function f(t,n,i){var r=t2(e,n,i,t);r.mount(),c.push(r),c.sort(function(e,t){return e.index-t.index})}function m(e){return e?y(function(e){return!e.isClone}):c}function v(e,t){m(t).forEach(e)}function y(e){return c.filter(E(e)?e:function(t){return w(e)?F(t.slide,e):A(P(e),t.index)})}function _(e,t,n){v(function(i){i.style(e,t,n)})}
280function b(e,t){var n=ei(e,"img"),i=n.length;i?n.forEach(function(e){s(e,"load error",function(){--i||t()})}):t()}return{mount:function(){d(),r(ek,h),r(ek,d)},destroy:h,update:function(){v(function(e){e.update()})},register:f,get:m,getIn:function(e){var i=t.Controller,r=i.toIndex(e),a=i.hasFocus()?1:n.perPage;return y(function(e){return eg(e.index,r,r+a-1)})},getAt:function(e){return y(e)[0]},add:function(e,t){M(e,function(e){if(w(e)&&(e=ee(e)),L(e)){var i=l[t];i?N(e,i):D(u,e),k(e,n.classes.slide),b(e,g(a,eN))}}),a(ek)},remove:function(e){J(y(e).map(function(e){return e.slide})),a(ek)},forEach:v,filter:y,style:_,getLength:function(e){return e?l.length:c.length},isEnough:function(){return c.length>n.perPage}}},Layout:function(e,t,n){var i,r,a,s=e2(e),o=s.on,l=s.bind,u=s.emit,c=t.Slides,d=t.Direction.resolve,h=t.Elements,f=h.root,p=h.track,m=h.list,v=c.getAt,y=c.style;function _(){i=n.direction===tn,$(f,"maxWidth",es(n.width)),$(p,d("paddingLeft"),C(!1)),$(p,d("paddingRight"),C(!0)),b(!0)}function b(e){var t=Q(f);(e||r.width!==t.width||r.height!==t.height)&&($(p,"height",E()),y(d("marginRight"),es(n.gap)),y("width",T()),y("height",S(),!0),r=t,u(eF),a!==(a=D())&&(R(f,tz,a),u(eH,a)))}function C(e){var t=n.padding,i=d(e?"right":"left");return t&&es(t[i]||(x(t)?0:t))||"0px"}function E(){var e="";return i&&(eu(e=w(),"height or heightRatio is missing."),e="calc("+e+" - "+C(!1)+" - "+C(!0)+")"),e}function w(){return es(n.height||Q(m).width*n.heightRatio)}function T(){return n.autoWidth?null:es(n.fixedWidth)||(i?"":L())}function S(){return es(n.fixedHeight)||(i?n.autoHeight?null:L():w())}function L(){var e=es(n.gap);return"calc((100%"+(e&&" + "+e)+")/"+(n.perPage||1)+(e&&" - "+e)+")"}function P(){return Q(m)[d("width")]}function M(e,t){var n=v(e||0);return n?Q(n.slide)[d("width")]+(t?0:k()):0}function A(e,t){var n=v(e);return n?ep(Q(n.slide)[d("right")]-Q(m)[d("left")])+(t?0:k()):0}function I(t){return A(e.length-1)-A(0)+M(0,t)}function k(){var e=v(0);return e&&parseFloat($(e.slide,d("marginRight")))||0}function D(){return e.is(t1)||I(!0)>P()}return{mount:function(){_(),l(window,"resize load",e4(g(u,eN))),o([eD,ek],_),o(eN,b)},resize:b,listSize:P,slideSize:M,sliderSize:I,totalSize:A,getPadding:function(e){return parseFloat($(p,d("padding"+(e?"Right":"Left"))))||0},isOverflow:D}},Clones:function(e,t,n){var i,r=e2(e),a=r.on,s=t.Elements,o=t.Slides,l=t.Direction.resolve,u=[];function c(){a(ek,d),a([eD,eN],f),(i=v())&&(m(i),t.Layout.resize(!0))}function d(){h(),c()}function h(){J(u),p(u),r.destroy()}function f(){var e=v();i!==e&&(i<e||!e)&&r.emit(ek)}function m(e){var t=o.get().slice(),n=t.length;if(n){for(;t.length<e;)I(t,t);I(t.slice(-e),t.slice(0,e)).forEach(function(i,r){var a=r<e,l=g(i.slide,r);a?N(l,t[0].slide):D(s.list,l),I(u,l),o.register(l,r-e+(a?0:n),i.index)})}}function g(t,i){var r=t.cloneNode(!0);return k(r,n.classes.clone),r.id=e.root.id+"-clone"+eb(i+1),r}function v(){var i=n.clones;if(e.is(t0)){if(T(i)){var r=n[l("fixedWidth")]&&t.Layout.slideSize(0);i=r&&ef(Q(s.track)[l("width")]/r)||n[l("autoWidth")]&&e.length||n.perPage*t3}}else i=0;return i}return{mount:c,destroy:h}},Move:function(e,t,n){var i,r=e2(e),a=r.on,s=r.emit,o=e.state.set,c=t.Layout,d=c.slideSize,h=c.getPadding,f=c.totalSize,p=c.listSize,m=c.sliderSize,g=t.Direction,v=g.resolve,y=g.orient,_=t.Elements,b=_.list,x=_.track;function C(){t.Controller.isBusy()||(t.Scroll.cancel(),E(e.index),t.Slides.update())}function E(e){w(A(e,!0))}function w(t,n){if(!e.is(t1)){var i=n?t:S(t);$(b,"transform","translate"+v("X")+"("+i+"px)"),t!==i&&s(e0)}}function S(n){if(e.is(t0)){var i=M(n),r=i>t.Controller.getEnd();(i<0||r)&&(n=L(n,r))}return n}function L(e,t){var n=e-D(t),i=m();return e-y(i*(ef(ep(n)/i)||1))*(t?1:-1)}function P(){w(I(),!0),i.cancel()}function M(e){for(var n=t.Slides.get(),i=0,r=1/0,a=0;a<n.length;a++){var s=n[a].index,o=ep(A(s,!0)-e);if(o<=r)r=o,i=s;else break}return i}function A(e,t){var n=y(f(e-1)-k(e));return t?R(n):n}function I(){var e=v("left");return Q(b)[e]-Q(x)[e]+y(h(!1))}function R(t){return n.trimSpace&&e.is(tJ)&&(t=ev(t,0,y(m(!0)-p()))),t}function k(e){var t=n.focus;return"center"===t?(p()-d(e,!0))/2:+t*d(e)||0}function D(e){return A(e?t.Controller.getEnd():0,!!n.trimSpace)}function N(e){var t=y(L(I(),e));return e?t>=0:t<=b[v("scrollWidth")]-Q(x)[v("width")]}function F(e,t){t=T(t)?I():t;var n=!0!==e&&y(t)<y(D(!1)),i=!1!==e&&y(t)>y(D(!0));return n||i}return{mount:function(){i=t.Transition,a([ew,eF,eD,ek],C)},move:function(e,t,n,r){e!==t&&N(e>n)&&(P(),w(L(I(),e>n),!0)),o(u),s(eS,t,n,e),i.start(t,function(){o(l),s(eL,t,n,e),r&&r()})},jump:E,translate:w,shift:L,cancel:P,toIndex:M,toPosition:A,getPosition:I,getLimit:D,exceededLimit:F,reposition:C}},Controller:function(e,t,n){var i,r,a,s,o=e2(e),l=o.on,d=o.emit,h=t.Move,f=h.getPosition,p=h.getLimit,m=h.toPosition,v=t.Slides,y=v.isEnough,_=v.getLength,b=n.omitEnd,x=e.is(t0),C=e.is(tJ),E=g(R,!1),S=g(R,!0),L=n.start||0,P=L;function M(){r=_(!0),a=n.perMove,s=n.perPage,i=F();var e=ev(L,0,b?i:r-1);e!==L&&(L=e,h.reposition())}function A(){i!==F()&&d(e1)}function I(e){var t=L;if(w(e)){var n=e.match(/([+\-<>])(\d+)?/)||[],r=n[1],a=n[2];"+"===r||"-"===r?t=k(L+ +(""+r+(+a||1)),L):">
280"===r?t=a?O(+a):E(!0):"<"===r&&(t=S(!0))}else t=x?e:ev(e,0,i);return t}function R(e,t){var n=a||(V()?1:s),r=k(L+n*(e?-1:1),L,!(a||V()));return -1===r&&C&&!em(f(),p(!e),1)?e?0:i:t?r:N(r)}function k(e,t,o){if(y()||V()){var l=D(e);l!==e&&(t=e,e=l,o=!1),e<0||e>i?e=!a&&(eg(0,e,t,!0)||eg(i,t,e,!0))?O(j(e)):x?o?e<0?-(r%s||s):r:e:n.rewind?e<0?i:0:-1:o&&e!==t&&(e=O(j(t)+(e<t?-1:1)))}else e=-1;return e}function D(t){if(C&&"move"===n.trimSpace&&t!==L)for(var i=f();i===m(t,!0)&&eg(t,0,e.length-1,!n.rewind);)t<L?--t:++t;return t}function N(e){return x?(e+r)%r||0:e}function F(){for(var e=r-(V()||x&&a?1:s);b&&e-- >0;)if(m(r-1,!0)!==m(e,!0)){e++;break}return ev(e,0,r-1)}function O(e){return ev(V()?e:s*e,0,i)}function j(e){return V()?ec(e,i):eh((e>=i?r-1:e)/s)}function U(e){e!==L&&(P=L,L=e)}function V(){return!T(n.focus)||n.isNavigation}function B(){return e.state.is([u,c])&&!!n.waitForTransition}return{mount:function(){M(),l([eD,ek,e1],M),l(eF,A)},go:function(e,t,n){if(!B()){var i=I(e),r=N(i);r>-1&&(t||r!==L)&&(U(r),h.move(i,r,P,n))}},scroll:function(e,n,r,a){t.Scroll.scroll(e,n,r,function(){var e=N(h.toIndex(f()));U(b?ec(e,i):e),a&&a()})},getNext:E,getPrev:S,getAdjacent:R,getEnd:F,setIndex:U,getIndex:function(e){return e?P:L},toIndex:O,toPage:j,toDest:function(e){var t=h.toIndex(e);return C?ev(t,0,i):t},hasFocus:V,isBusy:B}},Arrows:function(e,t,n){var i,r,a=e2(e),s=a.on,o=a.bind,l=a.emit,u=n.classes,c=n.i18n,d=t.Elements,h=t.Controller,f=d.arrows,p=d.track,m=f,v=d.prev,y=d.next,_={};function b(){C(),s(eD,x)}function x(){E(),b()}function C(){var e=n.arrows;e&&!(v&&y)&&S(),v&&y&&(B(_,{prev:v,next:y}),Z(m,e?"":"none"),k(m,r=tL+"--"+n.direction),e&&(w(),P(),q([v,y],to,p.id),l(ez,v,y)))}function E(){a.destroy(),er(m,r),i?(J(f?[v,y]:m),v=y=null):z([v,y],ty)}function w(){s([ew,eL,ek,eB,e1],P),o(y,"click",g(T,">")),o(v,"click",g(T,"<"))}function T(e){h.go(e,!0)}function S(){m=f||W("div",u.arrows),v=L(!0),y=L(!1),i=!0,D(m,[v,y]),f||N(m,p)}function L(e){return ee('<button class="'+u.arrow+" "+(e?u.prev:u.next)+'" type="button"><svg xmlns="'+t5+'" viewBox="0 0 '+t6+" "+t6+'" width="'+t6+'" height="'+t6+'" focusable="false"><path d="'+(n.arrowPath||t4)+'" />')}function P(){if(v&&y){var t=e.index,n=h.getPrev(),i=h.getNext(),r=n>-1&&t<n?c.last:c.prev,a=i>-1&&t>i?c.first:c.next;v.disabled=n<0,y.disabled=i<0,q(v,tc,r),q(y,tc,a),l(eq,v,y,n,i)}}return{arrows:_,mount:b,destroy:E,update:P}},Autoplay:function(e,t,n){var i,r,a=e2(e),s=a.on,o=a.bind,l=a.emit,u=e3(n.interval,e.go.bind(e,">"),C),c=u.isPaused,d=t.Elements,h=t.Elements,f=h.root,p=h.toggle,m=n.autoplay,g="pause"===m;function v(){n.pauseOnHover&&o(f,"mouseenter mouseleave",function(e){i="mouseenter"===e.type,b()}),n.pauseOnFocus&&o(f,"focusin focusout",function(e){r="focusin"===e.type,b()}),p&&o(p,"click",function(){g?y():_(!0)}),s([eS,eV,ek],u.rewind),s(eS,E)}function y(){c()&&t.Slides.isEnough()&&(u.start(!n.resetProgress),r=i=g=!1,x(),l(eY))}function _(e){void 0===e&&(e=!0),g=!!e,x(),c()||(u.pause(),l(eX))}function b(){g||(i||r?_(!1):y())}function x(){p&&(R(p,tj,!g),q(p,tc,n.i18n[g?"play":"pause"]))}function C(e){var t=d.bar;t&&$(t,"width",100*e+"%"),l(eK,e)}function E(e){var i=t.Slides.getAt(e);u.set(i&&+K(i.slide,t8)||n.interval)}return{mount:function(){m&&(v(),p&&q(p,to,d.track.id),g||y(),x())},destroy:u.cancel,play:y,pause:_,isPaused:c}},Cover:function(e,t,n){var i=e2(e).on;function r(e){t.Slides.forEach(function(t){var n=j(t.container||t.slide,"img");n&&n.src&&a(e,n,t)})}function a(e,t,n){n.style("background",e?'center/cover no-repeat url("'+t.src+'")':"",!0),Z(t,e?"none":"")}return{mount:function(){n.cover&&(i(eQ,g(a,!0)),i([ew,eD,ek],g(r,!0)))},destroy:g(r,!1)}},Scroll:function(e,t,n){var i,r,a=e2(e),s=a.on,o=a.emit,u=e.state.set,d=t.Move,h=d.getPosition,f=d.getLimit,p=d.exceededLimit,m=d.translate,v=e.is(tJ),y=1;function _(e,n,a,s,l){var f=h();if(C(),a&&(!v||!p())){var m=t.Layout.sliderSize(),_=ey(e)*m*eh(ep(e)/m)||0;e=d.toPosition(t.Controller.toDest(e%m))+_}var E=em(f,e,1);y=1,n=E?0:n||ed(ep(e-f)/nt,nn),r=s,i=e3(n,b,g(x,f,e,l),1),u(c),o(eV),i.start()}function b(){u(l),r&&r(),o(eB)}function x(e,t,n,i){var a=h(),s=(e+(t-e)*w(i)-a)*y;m(a+s),v&&!n&&p()&&(y*=ne,ep(s)<t7&&_(f(p(!0)),t9,!1,r,!0))}function C(){i&&i.cancel()}
vendor: 4,846 bytes, line 280
280function E(){i&&!i.isPaused()&&(C(),b())}function w(e){var t=n.easingFunc;return t?t(e):1-Math.pow(1-e,4)}return{mount:function(){s(eS,C),s([eD,ek],E)},destroy:C,scroll:_,cancel:E}},Drag:function(e,t,n){var i,r,a,s,o,h,f,p,m=e2(e),g=m.on,v=m.emit,_=m.bind,b=m.unbind,C=e.state,E=t.Move,w=t.Scroll,T=t.Controller,S=t.Elements.track,L=t.Media.reduce,P=t.Direction,M=P.resolve,A=P.orient,I=E.getPosition,R=E.exceededLimit,k=!1;function D(){var e=n.drag;J(!e),s="free"===e}function N(e){if(h=!1,!f){var t=Q(e);X(e.target)&&(t||!e.button)&&(T.isBusy()?et(e,!0):(p=t?S:window,o=C.is([u,c]),a=null,_(p,tX,O,ni),_(p,tQ,j,ni),E.cancel(),w.cancel(),V(e)))}}function O(e){if(C.is(d)||(C.set(d),v(eO)),e.cancelable){if(o){E.translate(i+K(W(e)));var t=$(e)>tY,n=k!==(k=R());(t||n)&&V(e),h=!0,v(ej),et(e)}else G(e)&&(o=H(e),et(e))}}function j(e){C.is(d)&&(C.set(l),v(eU)),o&&(B(e),et(e)),b(p,tX,O),b(p,tQ,j),o=!1}function U(e){!f&&h&&et(e,!0)}function V(e){a=r,r=e,i=I()}function B(t){var i=z(t),r=q(i),a=n.rewind&&n.rewindByDrag;L(!1),s?T.scroll(r,0,n.snap):e.is(t1)?T.go(0>A(ey(i))?a?"<":"-":a?">":"+"):e.is(tJ)&&k&&a?T.go(R(!0)?">":"<"):T.go(T.toDest(r),!0),L(!0)}function H(e){var t=n.dragMinThreshold,i=x(t),r=i&&t.mouse||0,a=(i?t.touch:+t)||10;return ep(W(e))>(Q(e)?a:r)}function G(e){return ep(W(e))>ep(W(e,!0))}function z(t){if(e.is(t0)||!k){var n=$(t);if(n&&n<tY)return W(t)/n}return 0}function q(e){return I()+ey(e)*ec(ep(e)*(n.flickPower||600),s?1/0:t.Layout.listSize()*(n.flickMaxPages||1))}function W(e,t){return Y(e,t)-Y(Z(e),t)}function $(e){return ea(e)-ea(Z(e))}function Z(e){return r===e&&a||r}function Y(e,t){return(Q(e)?e.changedTouches[0]:e)["page"+M(t?"Y":"X")]}function K(t){return t/(k&&e.is(tJ)?tZ:1)}function X(e){var t=n.noDrag;return!F(e,"."+tR+", ."+tP)&&(!t||!F(e,t))}function Q(e){return"undefined"!=typeof TouchEvent&&e instanceof TouchEvent}function J(e){f=e}return{mount:function(){_(S,tX,y,ni),_(S,tQ,y,ni),_(S,tK,N,ni),_(S,"click",U,{capture:!0}),_(S,"dragstart",et),g([ew,eD],D)},disable:J,isDragging:function(){return o}}},Keyboard:function(e,t,n){var i,r,a=e2(e),s=a.on,o=a.bind,l=a.unbind,u=e.root,c=t.Direction.resolve;function d(){var e=n.keyboard;e&&o(i="global"===e?window:u,ns,p)}function h(){l(i,ns)}function f(){var e=r;r=!0,v(function(){r=e})}function p(t){if(!r){var n=na(t);n===c(e8)?e.go("<"):n===c(e7)&&e.go(">")}}return{mount:function(){d(),s(eD,h),s(eD,d),s(eS,f)},destroy:h,disable:function(e){r=e}}},LazyLoad:function(e,t,n){var i=e2(e),r=i.on,a=i.off,s=i.bind,o=i.emit,l="sequential"===n.lazyLoad,u=[eL,eB],c=[];function d(){p(c),h(),l?y():(a(u),r(u,f),f())}function h(){t.Slides.forEach(function(e){ei(e.slide,nu).forEach(function(t){var i=K(t,no),r=K(t,nl);if(i!==t.src||r!==t.srcset){var a=n.classes.spinner,s=t.parentElement,o=j(s,"."+a)||W("span",a,s);c.push([t,e,o]),t.src||Z(t,"none")}})})}function f(){(c=c.filter(function(t){var i=n.perPage*((n.preloadPages||1)+1)-1;return!t[1].isWithin(e.index,i)||m(t)})).length||a(u)}function m(e){var t=e[0];k(e[1].slide,tH),s(t,"load error",g(v,e)),q(t,"src",K(t,no)),q(t,"srcset",K(t,nl)),z(t,no),z(t,nl)}function v(e,t){var n=e[0],i=e[1];er(i.slide,tH),"error"!==t.type&&(J(e[2]),Z(n,""),o(eQ,n,i),o(eN)),l&&y()}function y(){c.length&&m(c.shift())}return{mount:function(){n.lazyLoad&&(d(),r(ek,d))},destroy:g(p,c),check:f}},Pagination:function(e,t,n){var i,r,a=e2(e),s=a.on,o=a.emit,l=a.bind,u=t.Slides,c=t.Elements,d=t.Controller,h=d.hasFocus,f=d.getIndex,v=d.go,y=t.Direction.resolve,_=c.pagination,b=[];function x(){C(),s([eD,ek,e1],x);var t=n.pagination;_&&Z(_,t?"":"none"),t&&(s([eS,eV,eB],P),E(),P(),o(eW,{list:i,items:b},L(e.index)))}function C(){i&&(J(_?m(i.children):i),er(i,r),p(b),i=null),a.destroy()}function E(){var t=e.length,a=n.classes,s=n.i18n,o=n.perPage,f=h()?d.getEnd()+1:ef(t/o);k(i=_||W("ul",a.pagination,c.track.parentElement),r=tI+"--"+S()),q(i,tr,"tablist"),q(i,tc,s.select),q(i,tf,S()===tn?"vertical":"");for(var p=0;p<f;p++){var m=W("li",null,i),v=W("button",{class:a.page,type:"button"},m),y=u.getIn(p).map(function(e){return e.slide.id}),x=!h()&&o>1?s.pageX:s.slideX;l(v,"click",g(w,p)),n.paginationKeyboard&&l(v,"keydown",g(T,p)),q(m,tr,"presentation"),q(v,tr,"tab"),q(v,to,y.join(" ")),q(v,tc,e_(x,p+1)),q(v,ta,-1),b.push({li:m,button:v,page:p})}}function w(e){v(">"+e,!0)}function T(e,t){var n=b.length,i=na(t),r=S(),a=-1;i===y(e7,!1,r)?a=++e%n:i===y(e8,!1,r)?a=(--e+n)%n:"Home"===i?a=0:"End"===i&&(a=n-1);var s=b[a];s&&(Y(s.button),v(">"+a),et(t,!0))}function S(){return n.paginationDirection||n.direction}function L(e){return b[d.toPage(e)]}function P(){var e=L(f(!0)),t=L(f());if(e){var n=e.button;er(n,tj),z(n,tu),q(n,ta,-1)}if(t){var r=t.button;k(r,tj),q(r,tu,!0),q(r,ta,"")}o(e$,{list:i,items:b},e,t)}return{items:b,mount:x,destroy:C,getAt:L,update:P}},Sync:function(e,t,n){var i=n.isNavigation,r=n.slideFocus,a=[];
vendor: 1,982 bytes, line 280
280function s(){e.splides.forEach(function(t){t.isParent||(u(e,t.splide),u(t.splide,e))}),i&&c()}function o(){a.forEach(function(e){e.destroy()}),p(a)}function l(){o(),s()}function u(e,t){var n=e2(e);n.on(eS,function(e,n,i){t.go(t.is(t0)?i:e)}),a.push(n)}function c(){var t=e2(e),n=t.on;n(eP,h),n(eJ,f),n([ew,eD],d),a.push(t),t.emit(eZ,e.splides)}function d(){q(t.Elements.list,tf,n.direction===tn?"vertical":"")}function h(t){e.go(t.index)}function f(e,t){A(nc,na(t))&&(h(e),et(t))}return{setup:g(t.Media.set,{slideFocus:T(r)?i:r},!0),mount:s,destroy:o,remount:l}},Wheel:function(e,t,n){var i=e2(e).bind,r=0;function a(t){if(t.cancelable){var i=t.deltaY,a=i<0,o=ea(t),l=n.wheelMinThreshold||0,u=n.wheelSleep||0;ep(i)>l&&o-r>u&&(e.go(a?"<":">"),r=o),s(a)&&et(t)}}function s(i){return!n.releaseWheel||e.state.is(u)||-1!==t.Controller.getAdjacent(i)}return{mount:function(){n.wheel&&i(t.Elements.track,"wheel",a,ni)}}},Live:function(e,t,n){var i=e2(e).on,r=t.Elements.track,a=n.live&&!n.isNavigation,s=W("span",tF),o=e3(nd,g(l,!1));function l(e){q(r,tg,e),e?(D(r,s),o.start()):(J(s),o.cancel())}function u(e){a&&q(r,tm,e?"off":"polite")}return{mount:function(){a&&(u(!t.Autoplay.isPaused()),q(r,tv,!0),s.textContent="â¦",i(eY,g(u,!0)),i(eX,g(u,!1)),i([eL,eB],g(l,!0)))},disable:u,destroy:function(){z(r,[tm,tv,tg]),J(s)}}}}),nf={type:"slide",role:"region",speed:400,perPage:1,cloneStatus:!0,arrows:!0,pagination:!0,paginationKeyboard:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,easing:"cubic-bezier(0.25, 1, 0.5, 1)",drag:!0,direction:"ltr",trimSpace:!0,focusableNodes:"a, button, textarea, input, select, iframe",live:!0,classes:tW,i18n:{prev:"Previous slide",next:"Next slide",first:"Go to first slide",last:"Go to last slide",slideX:"Go to slide %s",pageX:"Go to page %s",play:"Start autoplay",pause:"Pause autoplay",carousel:"carousel",slide:"slide",select:"Select a slide to show",slideLabel:"%s of %s"},reducedMotion:{speed:0,rewindSpeed:0,autoplay:"pause"}};
280function np(e,t,n){var i=t.Slides;function r(){i.forEach(function(e){e.style("transform","translateX(-"+100*e.index+"%)")})}return{mount:function(){e2(e).on([ew,ek],r)},start:function(e,t){i.style("transition","opacity "+n.speed+"ms "+n.easing),v(t)},cancel:y}}function nm(e,t,n){var i,r=t.Move,a=t.Controller,s=t.Scroll,o=t.Elements.list,l=g($,o,"transition");function u(){l(""),s.cancel()}function c(t){var i=n.rewindSpeed;if(e.is(tJ)&&i){var r=a.getIndex(!0),s=a.getEnd();if(0===r&&t>=s||r>=s&&0===t)return i}return n.speed}return{mount:function(){e2(e).bind(o,"transitionend",function(e){e.target===o&&i&&(u(),i())})},start:function(e,t){var a=r.toPosition(e,!0),o=r.getPosition(),u=c(e);ep(a-o)>=1&&u>=1?n.useScroll?s.scroll(a,u,!1,t):(l("transform "+u+"ms "+n.easing),r.translate(a,!0),i=t):(r.jump(e),t())},cancel:u}}var ng=function(){function e(t,n){this.event=e2(),this.Components={},this.state=e5(o),this.splides=[],this._o={},this._E={};var i=w(t)?en(document,t):t;eu(i,i+" is invalid."),this.root=i,n=H({label:K(i,tc)||"",labelledby:K(i,td)||""},nf,e.defaults,n||{});try{H(n,JSON.parse(K(i,el)))}catch(e){eu(!1,"Invalid JSON")}this._o=Object.create(H({},n))}var t=e.prototype;return t.mount=function(e,t){var n=this,i=this.state,r=this.Components;return eu(i.is([o,h]),"Already mounted!"),i.set(o),this._C=r,this._T=t||this._T||(this.is(t1)?np:nm),this._E=e||this._E,V(B({},nh,this._E,{Transition:this._T}),function(e,t){var i=e(n,r,n._o);r[t]=i,i.setup&&i.setup()}),V(r,function(e){e.mount&&e.mount()}),this.emit(ew),k(this.root,tO),i.set(l),this.emit(eT),this},t.sync=function(e){return this.splides.push({splide:e}),e.splides.push({splide:this,isParent:!0}),this.state.is(l)&&(this._C.Sync.remount(),e.Components.Sync.remount()),this},t.go=function(e){return this._C.Controller.go(e),this},t.on=function(e,t){return this.event.on(e,t),this},t.off=function(e){return this.event.off(e),this},t.emit=function(e){var t;return(t=this.event).emit.apply(t,[e].concat(m(arguments,1))),this},t.add=function(e,t){return this._C.Slides.add(e,t),this},t.remove=function(e){return this._C.Slides.remove(e),this},t.is=function(e){return this._o.type===e},t.refresh=function(){return this.emit(ek),this},t.destroy=function(e){void 0===e&&(e=!0);var t=this.event,n=this.state;return n.is(o)?e2(this).on(eT,this.destroy.bind(this,e)):(V(this._C,function(t){t.destroy&&t.destroy(e)},!0),t.emit(eG),t.destroy(),e&&p(this.splides),n.set(h)),this},a(e,[{key:"options",get:function(){return this._o},set:function(e){this._C.Media.set(e,!0,!0)}},{key:"length",get:function(){return this._C.Slides.getLength(!0)}},{key:"index",get:function(){return this._C.Controller.getIndex()}}]),e}();ng.defaults={},ng.STATES=f;var nv=[[ew,"onMounted"],[eT,"onReady"],[eS,"onMove"],[eL,"onMoved"],[eP,"onClick"],[eM,"onActive"],[eA,"onInactive"],[eI,"onVisible"],[eR,"onHidden"],[ek,"onRefresh"],[eD,"onUpdated"],[eN,"onResize"],[eF,"onResized"],[eO,"onDrag"],[ej,"onDragging"],[eU,"onDragged"],[eV,"onScroll"],[eB,"onScrolled"],[eG,"onDestroy"],[ez,"onArrowsMounted"],[eq,"onArrowsUpdated"],[eW,"onPaginationMounted"],[e$,"onPaginationUpdated"],[eZ,"onNavigationMounted"],[eY,"onAutoplayPlay"],[eK,"onAutoplayPlaying"],[eX,"onAutoplayPause"],[eQ,"onLazyLoadLoaded"]];function ny(...e){return e.filter(Boolean).join(" ")}function n_(e){return null!==e&&"object"==typeof e}function nb(e,t){if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&!e.some((e,n)=>!nb(e,t[n]));if(n_(e)&&n_(t)){let n=Object.keys(e),i=Object.keys(t);return n.length===i.length&&!n.some(n=>!Object.prototype.hasOwnProperty.call(t,n)||!nb(e[n],t[n]))}return e===t}function nx(e,t){return e.length===t.length&&!e.some((e,n)=>e!==t[n])}function nC(e,t){if(e){let n=Object.keys(e);for(let i=0;i<n.length;i++){let r=n[i];if("__proto__"!==r&&!1===t(e[r],r))break}}return e}function nE(e,t){let n=e;return nC(t,(e,t)=>{Array.isArray(e)?n[t]=e.slice():n_(e)?n[t]=nE(n_(n[t])?n[t]:{},e):n[t]=e}),n}var nw=({children:e,className:t,...n})=>i.createElement("div",{className:ny("splide__track",t),...n},i.createElement("ul",{className:"splide__list"},e)),nT=class extends i.Component{constructor(){super(...arguments),this.splideRef=i.createRef(),this.slides=[]}componentDidMount(){let{options:e,extensions:t,transition:n}=this.props,{current:i}=this.splideRef;i&&(this.splide=new ng(i,e),this.bind(this.splide),this.splide.mount(t,n),this.options=nE({},e||{}),this.slides=this.getSlides())}componentWillUnmount(){this.splide&&(this.splide.destroy(),this.splide=void 0),this.options=void 0,this.slides.length=0}componentDidUpdate(){if(!this.splide)return;let{options:e}=this.props;e&&!nb(this.options,e)&&(this.splide.options=e,this.options=nE({},e));let t=this.getSlides();nx(this.slides,t)||(this.splide.refresh(),this.slides=t)}sync(e){var t;null==(t=this.splide)||t.sync(e)}go(e){var t;null==(t=this.splide)||t.go(e)}getSlides(){var e;if(this.splide){let t=null==(e=this.splide.Components.Elements)?void 0:e.list.children;return t&&Array.prototype.slice.call(t)||[]}return[]}bind(e){nv.forEach(([t,n])=>{let i=this.props[n];"function"==typeof i&&e.on(t,(...t)=>{i(e,...t)})})}omit(e,t){return t.forEach(t=>{Object.prototype.hasOwnProperty.call(e,t)&&delete e[t]}),e}render(){let{className:e,tag:t="div",hasTrack:n=!0,children:r,...a}=this.props;return i.createElement(t,{className:ny("splide",e),ref:this.splideRef,...this.omit(a,["options",...nv.map(e=>e[1])])},n?i.createElement(nw,null,r):r)}},nS=({children:e,className:t,...n})=>i.createElement("li",{className:ny("splide__slide",t),...n},e)},73914:function(e,t,n){"use strict";
280e.exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=void 0,e.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,e.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,Object.assign(e.exports,n(67294))},14153:function(e){let t=/^[-+]?0x[a-fA-F0-9]+$/,n=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,i={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function r(e,r={}){if(r=Object.assign({},i,r),!e||"string"!=typeof e)return e;let o=e.trim();if(void 0!==r.skipLike&&r.skipLike.test(o))return e;if("0"===e)return 0;if(r.hex&&t.test(o))return s(o,16);if(-1!==o.search(/[eE]/)){let t=o.match(/^([-\+])?(0*)([0-9]*(\.[0-9]*)?[eE][-\+]?[0-9]+)$/);if(!t)return e;if(r.leadingZeros)o=(t[1]||"")+t[3];else if("0"!==t[2]||"."!==t[3][0])return e;return r.eNotation?Number(o):e}{let t=n.exec(o);if(!t)return e;{let n=t[1],i=t[2],s=a(t[3]);if(!r.leadingZeros&&i.length>0&&n&&"."!==o[2])return e;{if(!r.leadingZeros&&i.length>0&&!n&&"."!==o[1])return e;if(r.leadingZeros&&i===e)return 0;let t=Number(o),a=""+t;return -1!==a.search(/[eE]/)?r.eNotation?t:e:-1!==o.indexOf(".")?"0"===a&&""===s?t:a===s?t:n&&a==="-"+s?t:e:i?s===a||n+s===a?t:e:o===a||o===n+a?t:e}}}}function a(e){return e&&-1!==e.indexOf(".")&&("."===(e=e.replace(/0+$/,""))?e="0":"."===e[0]?e="0"+e:"."===e[e.length-1]&&(e=e.substr(0,e.length-1))),e}function s(e,t){if(parseInt)return parseInt(e,t);if(Number.parseInt)return Number.parseInt(e,t);if(window&&window.parseInt)return window.parseInt(e,t);throw Error("parseInt, Number.parseInt, window.parseInt are not supported")}e.exports=r},8555:function(e){"use strict";e.exports={stdout:!1,stderr:!1}},19845:function(e,t){var n;!function(){"use strict";var i={}.hasOwnProperty;function r(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=s(e,a.call(this,n)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return this&&this[e]||e;if("object"!=typeof e)return"";if(Array.isArray(e))return r.apply(this,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)i.call(e,n)&&e[n]&&(t=s(t,this&&this[n]||n));return t}function s(e,t){return t?e?e+" "+t:e+t:e}e.exports?(r.default=r,e.exports=r):void 0!==(n=(function(){return r}).apply(t,[]))&&(e.exports=n)}()},93967:function(e,t){var n;!function(){"use strict";var i={}.hasOwnProperty;function r(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=s(e,a(n)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)i.call(e,n)&&e[n]&&(t=s(t,n));return t}function s(e,t){return t?e?e+" "+t:e+t:e}e.exports?(r.default=r,e.exports=r):void 0!==(n=(function(){return r}).apply(t,[]))&&(e.exports=n)}()},22599:function(e,t,n){"use strict";n.d(t,{u:function(){return _},D:function(){return x}});var i=n(97582),r=n(78287),a=n(30020),s=n(1644),o=n(36765),l=n(53712),u=n(79487);function c(e){return e.catch(function(){}),e}var d=n(18263),h=n(48216),f=n(86403),p=n(30990),m=n(39613),g=n(56275),v=Object.assign,y=Object.hasOwnProperty,_=function(e){function t(n){var r=n.queryManager,a=n.queryInfo,s=n.options,l=this,u=t.inactiveOnCreation.getValue();(l=e.call(this,function(e){u&&(r.queries.set(l.queryId,a),u=!1);try{var t=e._subscription._observer;t&&!t.error&&(t.error=b)}catch(e){}var n=!l.observers.size;l.observers.add(e);var i=l.last;return i&&i.error?e.error&&e.error(i.error):i&&i.result&&e.next&&e.next(l.maskResult(i.result)),n&&l.reobserve().catch(function(){}),function(){l.observers.delete(e)&&!l.observers.size&&l.tearDownQuery()}})||this).observers=new Set,l.subscriptions=new Set,l.dirty=!1,l.queryInfo=a,l.queryManager=r,l.waitForOwnResult=C(s.fetchPolicy),l.isTornDown=!1,l.subscribeToMore=l.subscribeToMore.bind(l),l.maskResult=l.maskResult.bind(l);var c=r.defaultOptions.watchQuery,d=(void 0===c?{}:c).fetchPolicy,h=void 0===d?"cache-first":d,f=s.fetchPolicy,p=void 0===f?h:f,m=s.initialFetchPolicy,g=void 0===m?"standby"===p?h:p:m;l.options=(0,i.pi)((0,i.pi)({},s),{initialFetchPolicy:g,fetchPolicy:p}),l.queryId=a.queryId||r.generateQueryId();var v=(0,o.$H)(l.query);return l.queryName=v&&v.name&&v.name.value,l}return(0,i.ZT)(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query}
280,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise(function(t,n){var i={next:function(n){t(n),e.observers.delete(i),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){r.unsubscribe()},0)},error:n},r=e.subscribe(i)})},t.prototype.resetDiff=function(){this.queryInfo.resetDiff()},t.prototype.getCurrentFullResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),n=this.queryInfo.networkStatus||t&&t.networkStatus||s.Ie.ready,r=(0,i.pi)((0,i.pi)({},t),{loading:(0,s.Oj)(n),networkStatus:n}),o=this.options.fetchPolicy,l=void 0===o?"cache-first":o;if(C(l)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers);else if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var u=this.queryInfo.getDiff();(u.complete||this.options.returnPartialData)&&(r.data=u.result),(0,a.D)(r.data,{})&&(r.data=void 0),u.complete?(delete r.partial,u.complete&&r.networkStatus===s.Ie.loading&&("cache-first"===l||"cache-only"===l)&&(r.networkStatus=s.Ie.ready,r.loading=!1)):r.partial=!0,r.networkStatus===s.Ie.ready&&(r.error||r.errors)&&(r.networkStatus=s.Ie.error),!1===globalThis.__DEV__||u.complete||this.options.partialRefetch||r.loading||r.data||r.error||x(u.missing)}return e&&this.updateLastResult(r),r},t.prototype.getCurrentResult=function(e){return void 0===e&&(e=!0),this.maskResult(this.getCurrentFullResult(e))},t.prototype.isDifferentFromLastResult=function(e,t){if(!this.last)return!0;var n=this.queryManager.getDocumentInfo(this.query),i=this.queryManager.dataMasking,r=i?n.nonReactiveQuery:this.query;return(i||n.hasNonreactiveDirective?!(0,m.W)(r,this.last.result,e,this.variables):!(0,a.D)(this.last.result,e))||t&&!(0,a.D)(this.last.variables,t)},t.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||(0,a.D)(n.variables,this.variables)))return n[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,n={pollInterval:0};if("no-cache"===this.options.fetchPolicy?n.fetchPolicy="no-cache":n.fetchPolicy="network-only",!1!==globalThis.__DEV__&&e&&y.call(e,"variables")){var l=(0,o.iW)(this.query),u=l.variableDefinitions;u&&u.some(function(e){return"variables"===e.variable.name.value})||!1===globalThis.__DEV__||r.kG.warn(21,e,(null===(t=l.name)||void 0===t?void 0:t.value)||l)}return e&&!(0,a.D)(this.options.variables,e)&&(n.variables=this.options.variables=(0,i.pi)((0,i.pi)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(n,s.Ie.refetch)},t.prototype.fetchMore=function(e){var t=this,n=(0,i.pi)((0,i.pi)({},e.query?e:(0,i.pi)((0,i.pi)((0,i.pi)((0,i.pi)({},this.options),{query:this.options.query}),e),{variables:(0,i.pi)((0,i.pi)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"});n.query=this.transformDocument(n.query);var a=this.queryManager.generateQueryId();this.lastQuery=e.query?this.transformDocument(this.options.query):n.query;var o=this.queryInfo,l=o.networkStatus;o.networkStatus=s.Ie.fetchMore,n.notifyOnNetworkStatusChange&&this.observe();var u=new Set,c=null==e?void 0:e.updateQuery,d="no-cache"!==this.options.fetchPolicy;return d||(0,r.kG)(c,22),this.queryManager.fetchQuery(a,n,s.Ie.fetchMore).then(function(r){if(t.queryManager.removeQuery(a),o.networkStatus===s.Ie.fetchMore&&(o.networkStatus=l),d)t.queryManager.cache.batch({update:function(i){var a=e.updateQuery;a?i.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},function(e){return a(e,{fetchMoreResult:r.data,variables:n.variables})}):i.writeQuery({query:n.query,variables:n.variables,data:r.data})},onWatchUpdated:function(e){u.add(e.query)}});else{var h=t.getLast("result"),f=c(h.data,{fetchMoreResult:r.data,variables:n.variables});t.reportResult((0,i.pi)((0,i.pi)({},h),{networkStatus:l,loading:(0,s.Oj)(l),data:f}),t.variables)}return t.maskResult(r)}).finally(function(){d&&!u.has(t.query)&&t.reobserveCacheFirst()})},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery(function(e,t){return r(e,(0,i.pi)({subscriptionData:n},t))})},error:function(t){if(e.onError){e.onError(t);return}!1!==globalThis.__DEV__&&r.kG.error(23,t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.silentSetOptions=function(e){var t=(0,l.o)(this.options,e||{});v(this.options,t)},t.prototype.setVariables=function(e){return(0,a.D)(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size)?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},s.Ie.setVariables):Promise.resolve()},t.prototype.updateQuery=function(e){var t=this.queryManager,n=t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}),i=n.result,r=n.complete,a=e(i,{variables:this.variables,complete:!!r,previousData:i});a&&(t.cache.writeQuery({query:this.options.query,data:a,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var n=t.fetchPolicy,i=void 0===n?"cache-first":n,r=t.initialFetchPolicy,a=void 0===r?i:r;"standby"===i||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(i,{reason:e,options:t,observable:this,initialFetchPolicy:a}):"variables-changed"===e?t.fetchPolicy=a:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t,n){var i=this.queryManager.getOrCreateQuery(this.queryId);return i.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(i,e,t,n)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this,n=t.pollingInfo,i=t.options.pollInterval;if(!i||!this.hasObservers()){n&&(clearTimeout(n.timeout),delete this.pollingInfo);return}if(!n||n.interval!==i){(0,r.kG)(i,24),(n||(this.pollingInfo={})).interval=i;var a=function(){var t,n;e.pollingInfo&&((0,s.Oj)(e.queryInfo.networkStatus)||(null===(n=(t=e.options).skipPollAttempt)||void 0===n?void 0:n.call(t))?o():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},s.Ie.poll).then(o,o))},o=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(a,t.interval))};o()}}},t.prototype.updateLastResult=function(e,t){void 0===t&&(t=this.variables);var n=this.getLastError();return n&&this.last&&!(0,a.D)(t,this.last.variables)&&(n=void 0),this.last=(0,i.pi)({result:this.queryManager.assumeImmutableResults?e:(0,u.X)(e),variables:t},n?{error:n}:null)},t.prototype.reobserveAsConcast=function(e,t){var n=this;this.isTornDown=!1;
280var r=t===s.Ie.refetch||t===s.Ie.fetchMore||t===s.Ie.poll,o=this.options.variables,u=this.options.fetchPolicy,c=(0,l.o)(this.options,e||{}),d=r?c:v(this.options,c),h=this.transformDocument(d.query);this.lastQuery=h,!r&&(this.updatePolling(),e&&e.variables&&!(0,a.D)(e.variables,o)&&"standby"!==d.fetchPolicy&&(d.fetchPolicy===u||"function"==typeof d.nextFetchPolicy)&&(this.applyNextFetchPolicy("variables-changed",d),void 0===t&&(t=s.Ie.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=C(d.fetchPolicy));var f=function(){n.concast===y&&(n.waitForOwnResult=!1)},m=d.variables&&(0,i.pi)({},d.variables),g=this.fetch(d,t,h),y=g.concast,_=g.fromLink,b={next:function(e){(0,a.D)(n.variables,m)&&(f(),n.reportResult(e,m))},error:function(e){(0,a.D)(n.variables,m)&&((0,p.MS)(e)||(e=new p.cA({networkError:e})),f(),n.reportError(e,m))}};return r||!_&&this.concast||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=y,this.observer=b),y.addObserver(b),y},t.prototype.reobserve=function(e,t){return c(this.reobserveAsConcast(e,t).promise.then(this.maskResult))},t.prototype.resubscribeAfterError=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.last;this.resetLastResults();var i=this.subscribe.apply(this,e);return this.last=n,i},t.prototype.observe=function(){this.reportResult(this.getCurrentFullResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var n=this.getLastError(),i=this.isDifferentFromLastResult(e,t);(n||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),(n||i)&&(0,d.p)(this.observers,"next",this.maskResult(e))},t.prototype.reportError=function(e,t){var n=(0,i.pi)((0,i.pi)({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:s.Ie.error,loading:!1});this.updateLastResult(n,t),(0,d.p)(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(e){return this.queryManager.transform(e)},t.prototype.maskResult=function(e){return e&&"data"in e?(0,i.pi)((0,i.pi)({},e),{data:this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):e},t.prototype.resetNotifications=function(){this.cancelNotifyTimeout(),this.dirty=!1},t.prototype.cancelNotifyTimeout=function(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0)},t.prototype.scheduleNotify=function(){var e=this;this.dirty||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return e.notify()},0)))},t.prototype.notify=function(){this.cancelNotifyTimeout(),this.dirty&&("cache-only"==this.options.fetchPolicy||"cache-and-network"==this.options.fetchPolicy||!(0,s.Oj)(this.queryInfo.networkStatus))&&(this.queryInfo.getDiff().fromOptimisticTransaction?this.observe():this.reobserveCacheFirst()),this.dirty=!1},t.prototype.reobserveCacheFirst=function(){var e=this.options,t=e.fetchPolicy,n=e.nextFetchPolicy;return"cache-and-network"===t||"network-only"===t?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(e,i){return(this.nextFetchPolicy=n,"function"==typeof this.nextFetchPolicy)?this.nextFetchPolicy(e,i):t}}):this.reobserve()},t.inactiveOnCreation=new g.g7,t}(h.y);function b(e){!1!==globalThis.__DEV__&&r.kG.error(25,e.message,e.stack)}function x(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&r.kG.debug(26,e)}function C(e){return"network-only"===e||"no-cache"===e||"standby"===e}(0,f.D)(_)},39613:function(e,t,n){"use strict";n.d(t,{W:function(){return u}});var i=n(97582),r=n(30020),a=n(36765),s=n(23361),o=n(19065),l=n(51761);function u(e,t,n,o){var l=t.data,u=(0,i._T)(t,["data"]),d=n.data,h=(0,i._T)(n,["data"]);return(0,r.Z)(u,h)&&c((0,a.p$)(e).selectionSet,l,d,{fragmentMap:(0,s.F)((0,a.kU)(e)),variables:o})}function c(e,t,n,i){if(t===n)return!0;var a=new Set;
280return e.selections.every(function(e){if(a.has(e)||(a.add(e),!(0,o.LZ)(e,i.variables)||d(e)))return!0;if((0,l.My)(e)){var u=(0,l.u2)(e),h=t&&t[u],f=n&&n[u],p=e.selectionSet;if(!p)return(0,r.Z)(h,f);var m=Array.isArray(h),g=Array.isArray(f);if(m!==g)return!1;if(m&&g){var v=h.length;if(f.length!==v)return!1;for(var y=0;y<v;++y)if(!c(p,h[y],f[y],i))return!1;return!0}return c(p,h,f,i)}var _=(0,s.hi)(e,i.fragmentMap);if(_)return!!d(_)||c(_.selectionSet,t,n,i)})}function d(e){return!!e.directives&&e.directives.some(h)}function h(e){return"nonreactive"===e.name.value}},1644:function(e,t,n){"use strict";var i;function r(e){return!!e&&e<7}n.d(t,{Ie:function(){return i},Oj:function(){return r}}),function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(i||(i={}))},30990:function(e,t,n){"use strict";n.d(t,{MS:function(){return o},YG:function(){return a},cA:function(){return u},ls:function(){return s}});var i=n(97582);n(78287);var r=n(13154),a=Symbol();function s(e){return!!e.extensions&&Array.isArray(e.extensions[a])}function o(e){return e.hasOwnProperty("graphQLErrors")}var l=function(e){var t=(0,i.ev)((0,i.ev)((0,i.ev)([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&t.push(e.networkError),t.map(function(e){return(0,r.s)(e)&&e.message||"Error message not found."}).join("\n")},u=function(e){function t(n){var r=n.graphQLErrors,a=n.protocolErrors,s=n.clientErrors,o=n.networkError,u=n.errorMessage,c=n.extraInfo,d=e.call(this,u)||this;return d.name="ApolloError",d.graphQLErrors=r||[],d.protocolErrors=a||[],d.clientErrors=s||[],d.networkError=o||null,d.message=u||l(d),d.extraInfo=c,d.cause=(0,i.ev)((0,i.ev)((0,i.ev)([o],r||[],!0),a||[],!0),s||[],!0).find(function(e){return!!e})||null,d.__proto__=t.prototype,d}return(0,i.ZT)(t,e),t}(Error)},48702:function(e,t,n){"use strict";n.d(t,{i:function(){return f}});var i=n(78287),r=n(48216),a=n(97582);function s(e,t){var n=(0,a.pi)({},e),i=function(){return(0,a.pi)({},n)};return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n="function"==typeof e?(0,a.pi)((0,a.pi)({},n),e(n)):(0,a.pi)((0,a.pi)({},n),e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:i}),t}var o=n(36765);function l(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?(0,o.rY)(t.query)||void 0:""),t}function u(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n<r.length;n++){var a=r[n];if(0>t.indexOf(a))throw(0,i._K)(46,a)}return e}function c(e,t){return t?t(e):r.y.of()}function d(e){return"function"==typeof e?new f(e):e}function h(e){return e.request.length<=1}var f=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return r.y.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(d).reduce(function(e,t){return e.concat(t)})},e.split=function(t,n,i){var a,s=d(n),o=d(i||new e(c));return Object.assign(a=new e(h(s)&&h(o)?function(e){return t(e)?s.request(e)||r.y.of():o.request(e)||r.y.of()}:function(e,n){return t(e)?s.request(e,n)||r.y.of():o.request(e,n)||r.y.of()}),{left:s,right:o})},e.execute=function(e,t){return e.request(s(t.context,l(u(t))))||r.y.of()},e.concat=function(t,n){var a,s=d(t);if(h(s))return!1!==globalThis.__DEV__&&i.kG.warn(38,s),s;var o=d(n);return Object.assign(a=new e(h(o)?function(e){return s.request(e,function(e){return o.request(e)||r.y.of()})||r.y.of()}:function(e,t){return s.request(e,function(e){return o.request(e,t)||r.y.of()})||r.y.of()}),{left:s,right:o})},e.prototype.split=function(t,n,i){return this.concat(e.split(t,n,i||new e(c)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw(0,i._K)(39)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}()},85317:function(e,t,n){"use strict";n.d(t,{K:function(){return l}});var i,r=n(73914),a=n(30320),s=n(78287),o=a.aS?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function l(){(0,s.kG)("createContext"in(i||(i=n.t(r,2))),54);var e=r.createContext[o];return e||(Object.defineProperty(r.createContext,o,{value:e=r.createContext({}
280),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}},30138:function(e,t,n){"use strict";n.d(t,{t:function(){return u}});var i=n(97582),r=n(73914),a=n(14012),s=n(76312),o=n(30320).Nq?r.useLayoutEffect:r.useEffect,l=["refetch","reobserve","fetchMore","updateQuery","startPolling","stopPolling","subscribeToMore"];function u(e,t){var n,u=r.useRef(void 0),d=r.useRef(void 0),h=r.useRef(void 0),f=(0,a.J)(t,u.current||{}),p=null!==(n=null==f?void 0:f.query)&&void 0!==n?n:e;d.current=t,h.current=p;var m=(0,i.pi)((0,i.pi)({},f),{skip:!u.current}),g=(0,s.p1)(p,m),v=g.obsQueryFields,y=g.result,_=g.client,b=g.resultData,x=g.observable,C=g.onQueryExecuted,E=x.options.initialFetchPolicy||(0,s._F)(m.defaultOptions,_.defaultOptions),w=r.useReducer(function(e){return e+1},0)[1],T=r.useMemo(function(){for(var e={},t=function(t){var n=v[t];e[t]=function(){return u.current||(u.current=Object.create(null),w()),n.apply(this,arguments)}},n=0,i=l;n<i.length;n++)t(i[n]);return e},[w,v]),S=!!u.current,L=r.useMemo(function(){return(0,i.pi)((0,i.pi)((0,i.pi)({},y),T),{called:S})},[y,T,S]),P=r.useCallback(function(e){u.current=e?(0,i.pi)((0,i.pi)({},e),{fetchPolicy:e.fetchPolicy||E}):{fetchPolicy:E};var t=(0,a.J)(d.current,(0,i.pi)({query:h.current},u.current)),n=c(b,x,_,p,(0,i.pi)((0,i.pi)({},t),{skip:!1}),C).then(function(e){return Object.assign(e,T)});return n.catch(function(){}),n},[_,p,T,E,x,b,C]),M=r.useRef(P);return o(function(){M.current=P}),[r.useCallback(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return M.current.apply(M,e)},[]),L]}function c(e,t,n,i,r,a){var o=r.query||i,l=(0,s.mp)(n,o,r,!1)(t),u=t.reobserveAsConcast((0,s.RN)(t,n,r,l));return a(l),new Promise(function(i){var r;u.subscribe({next:function(e){r=e},error:function(){i((0,s.KH)(t.getCurrentResult(),e.previousData,t,n))},complete:function(){i((0,s.KH)(t.maskResult(r),e.previousData,t,n))}})})}},76312:function(e,t,n){"use strict";n.d(t,{mp:function(){return B},_F:function(){return W},RN:function(){return H},KH:function(){return Z},aM:function(){return D},p1:function(){return O}});var i,r,a=n(97582),s=n(78287),o=n(73914),l=n.t(o,2),u=n(30320),c=!1,d=l.useSyncExternalStore||function(e,t,n){var i=t();!1===globalThis.__DEV__||c||i===t()||(c=!0,!1!==globalThis.__DEV__&&s.kG.error(68));var r=o.useState({inst:{value:i,getSnapshot:t}}),a=r[0].inst,l=r[1];return u.JC?o.useLayoutEffect(function(){Object.assign(a,{value:i,getSnapshot:t}),h(a)&&l({inst:a})},[e,i,t]):Object.assign(a,{value:i,getSnapshot:t}),o.useEffect(function(){return h(a)&&l({inst:a}),e(function(){h(a)&&l({inst:a})})},[e]),i};function h(e){var t=e.value,n=e.getSnapshot;try{return t!==n()}catch(e){return!0}}var f=n(30020),p=n(14012),m=n(85317),g=n(30990),v=n(22599),y=n(1644),_=n(38991),b=n(66331),x=n(88244);function C(e){var t;switch(e){case i.Query:t="Query";break;case i.Mutation:t="Mutation";break;case i.Subscription:t="Subscription"}return t}function E(e){r||(r=new _.s(b.Q.parser||1e3));var t,n,a,o=r.get(e);if(o)return o;(0,s.kG)(!!e&&!!e.kind,70,e);for(var l=[],u=[],c=[],d=[],h=0,f=e.definitions;h<f.length;h++){var p=f[h];if("FragmentDefinition"===p.kind){l.push(p);continue}if("OperationDefinition"===p.kind)switch(p.operation){case"query":u.push(p);break;case"mutation":c.push(p);break;case"subscription":d.push(p)}}(0,s.kG)(!l.length||u.length||c.length||d.length,71),(0,s.kG)(u.length+c.length+d.length<=1,72,e,u.length,d.length,c.length),n=u.length?i.Query:i.Mutation,u.length||c.length||(n=i.Subscription);var m=u.length?u:c.length?c:d;(0,s.kG)(1===m.length,73,e,m.length);var g=m[0];t=g.variableDefinitions||[];var v={name:a=g.name&&"Name"===g.name.kind?g.name.value:"data",type:n,variables:t};return r.set(e,v),v}function w(e,t){var n=E(e),i=C(t),r=C(n.type);(0,s.kG)(n.type===t,74,i,i,r)}function T(e){var t=o.useContext((0,m.K)()),n=e||t.client;return(0,s.kG)(!!n,58),n}!function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(i||(i={})),E.resetCache=function(){r=void 0},!1!==globalThis.__DEV__&&(0,x.zP)("parser",function(){return r?r.size:0});var S=n(53712),L=n(21436),P=n(10542),M=Symbol.for("apollo.hook.wrappers");function A(e,t,n){var i=n.queryManager,r=i&&i[M],a=r&&r[e];return a?a(t):t}var I=Object.prototype.hasOwnProperty;function R(){}var k=Symbol();function D(e,t){return void 0===t&&(t=Object.create(null)),A("useQuery",N,T(t&&t.client))(e,t)}function N(e,t){var n=O(e,t),i=n.result,r=n.obsQueryFields;return o.useMemo(function(){return(0,a.pi)((0,a.pi)({},i),r)},[i,r])}
280function F(e,t,n,r,s){function l(a){var o;return w(t,i.Query),{client:e,query:t,observable:r&&r.getSSRObservable(s())||v.u.inactiveOnCreation.withValue(!r,function(){return e.watchQuery(H(void 0,e,n,s()))}),resultData:{previousData:null===(o=null==a?void 0:a.resultData.current)||void 0===o?void 0:o.data}}}var u=o.useState(l),c=u[0],d=u[1];function h(e){Object.assign(c.observable,((t={})[k]=e,t));var t,n,i=c.resultData;d((0,a.pi)((0,a.pi)({},c),{query:e.query,resultData:Object.assign(i,{previousData:(null===(n=i.current)||void 0===n?void 0:n.data)||i.previousData,current:void 0})}))}if(e!==c.client||t!==c.query){var f=l(c);return d(f),[f,h]}return[c,h]}function O(e,t){var n=T(t.client),i=o.useContext((0,m.K)()).renderPromises,r=!!i,a=n.disableNetworkFetches,s=!1!==t.ssr&&!t.skip,l=t.partialRefetch,u=B(n,e,t,r),c=F(n,e,t,i,u),d=c[0],h=d.observable,f=d.resultData,p=c[1],g=u(h);V(f,h,n,t,g);var v=o.useMemo(function(){return Q(h)},[h]);return U(h,i,s),{result:j(f,h,n,t,g,a,l,r,{onCompleted:t.onCompleted||R,onError:t.onError||R}),obsQueryFields:v,observable:h,resultData:f,client:n,onQueryExecuted:p}}function j(e,t,n,i,r,a,s,l,u){var c=o.useRef(u);o.useEffect(function(){c.current=u});var h=(l||a)&&!1===i.ssr&&!i.skip?K:i.skip||"standby"===r.fetchPolicy?X:void 0,p=e.previousData,m=o.useMemo(function(){return h&&Z(h,p,t,n)},[n,t,h,p]);return d(o.useCallback(function(i){if(l)return function(){};var r=function(){var r=e.current,a=t.getCurrentResult();r&&r.loading===a.loading&&r.networkStatus===a.networkStatus&&(0,f.D)(r.data,a.data)||G(a,e,t,n,s,i,c.current)},a=function(l){if(o.current.unsubscribe(),o.current=t.resubscribeAfterError(r,a),!I.call(l,"graphQLErrors"))throw l;var u=e.current;(!u||u&&u.loading||!(0,f.D)(l,u.error))&&G({data:u&&u.data,error:l,loading:!1,networkStatus:y.Ie.error},e,t,n,s,i,c.current)},o={current:t.subscribe(r,a)};return function(){setTimeout(function(){return o.current.unsubscribe()})}},[a,l,t,e,s,n]),function(){return m||q(e,t,c.current,s,n)},function(){return m||q(e,t,c.current,s,n)})}function U(e,t,n){t&&n&&(t.registerSSRObservable(e),e.getCurrentResult().loading&&t.addObservableQueryPromise(e))}function V(e,t,n,i,r){var a;t[k]&&!(0,f.D)(t[k],r)&&(t.reobserve(H(t,n,i,r)),e.previousData=(null===(a=e.current)||void 0===a?void 0:a.data)||e.previousData,e.current=void 0),t[k]=r}function B(e,t,n,i){void 0===n&&(n={});var r=n.skip,s=(n.ssr,n.onCompleted,n.onError,n.defaultOptions),o=(0,a._T)(n,["skip","ssr","onCompleted","onError","defaultOptions"]);return function(n){var a=Object.assign(o,{query:t});return i&&("network-only"===a.fetchPolicy||"cache-and-network"===a.fetchPolicy)&&(a.fetchPolicy="cache-first"),a.variables||(a.variables={}),r?(a.initialFetchPolicy=a.initialFetchPolicy||a.fetchPolicy||W(s,e.defaultOptions),a.fetchPolicy="standby"):a.fetchPolicy||(a.fetchPolicy=(null==n?void 0:n.options.initialFetchPolicy)||W(s,e.defaultOptions)),a}}function H(e,t,n,i){var r=[],a=t.defaultOptions.watchQuery;return a&&r.push(a),n.defaultOptions&&r.push(n.defaultOptions),r.push((0,S.o)(e&&e.options,i)),r.reduce(p.J)}function G(e,t,n,i,r,a,s){var o=t.current;o&&o.data&&(t.previousData=o.data),!e.error&&(0,L.O)(e.errors)&&(e.error=new g.cA({graphQLErrors:e.errors})),t.current=Z(Y(e,n,r),t.previousData,n,i),a(),z(e,null==o?void 0:o.networkStatus,s)}function z(e,t,n){if(!e.loading){var i=$(e);Promise.resolve().then(function(){i?n.onError(i):e.data&&t!==e.networkStatus&&e.networkStatus===y.Ie.ready&&n.onCompleted(e.data)}).catch(function(e){!1!==globalThis.__DEV__&&s.kG.warn(e)})}}function q(e,t,n,i,r){return e.current||G(t.getCurrentResult(),e,t,r,i,function(){},n),e.current}function W(e,t){var n;return(null==e?void 0:e.fetchPolicy)||(null===(n=null==t?void 0:t.watchQuery)||void 0===n?void 0:n.fetchPolicy)||"cache-first"}function $(e){return(0,L.O)(e.errors)?new g.cA({graphQLErrors:e.errors}):e.error}function Z(e,t,n,i){var r=e.data,s=(e.partial,(0,a._T)(e,["data","partial"]));return(0,a.pi)((0,a.pi)({data:r},s),{client:i,observable:n,variables:n.variables,called:e!==K&&e!==X,previousData:t})}function Y(e,t,n){return e.partial&&n&&!e.loading&&(!e.data||0===Object.keys(e.data).length)&&"cac
280he-only"!==t.options.fetchPolicy?(t.refetch(),(0,a.pi)((0,a.pi)({},e),{loading:!0,networkStatus:y.Ie.refetch})):e}var K=(0,P.J)({loading:!0,data:void 0,error:void 0,networkStatus:y.Ie.loading}),X=(0,P.J)({loading:!1,data:void 0,error:void 0,networkStatus:y.Ie.ready});function Q(e){return{refetch:e.refetch.bind(e),reobserve:e.reobserve.bind(e),fetchMore:e.fetchMore.bind(e),updateQuery:e.updateQuery.bind(e),startPolling:e.startPolling.bind(e),stopPolling:e.stopPolling.bind(e),subscribeToMore:e.subscribeToMore.bind(e)}}},38991:function(e,t,n){"use strict";n.d(t,{L:function(){return l},s:function(){return o}});var i=n(99869),r=n(2379),a=new WeakSet;function s(e){!(e.size<=(e.max||-1))&&(a.has(e)||(a.add(e),setTimeout(function(){e.clean(),a.delete(e)},100)))}var o=function(e,t){var n=new i.k(e,t);return n.set=function(e,t){var n=i.k.prototype.set.call(this,e,t);return s(this),n},n},l=function(e,t){var n=new r.e(e,t);return n.set=function(e,t){var n=r.e.prototype.set.call(this,e,t);return s(this),n},n}},88244:function(e,t,n){"use strict";n.d(t,{Kb:function(){return u},q4:function(){return l},su:function(){return o},zP:function(){return s}});var i=n(97582),r=n(66331),a={};function s(e,t){a[e]=t}var o=!1!==globalThis.__DEV__?d:void 0,l=!1!==globalThis.__DEV__?f:void 0,u=!1!==globalThis.__DEV__?h:void 0;function c(){return Object.fromEntries(Object.entries({parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4}).map(function(e){var t=e[0],n=e[1];return[t,r.Q[t]||n]}))}function d(){var e,t,n,r,s;if(!(!1!==globalThis.__DEV__))throw Error("only supported in development mode");return{limits:c(),sizes:(0,i.pi)({print:null===(e=a.print)||void 0===e?void 0:e.call(a),parser:null===(t=a.parser)||void 0===t?void 0:t.call(a),canonicalStringify:null===(n=a.canonicalStringify)||void 0===n?void 0:n.call(a),links:_(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:v(this.queryManager.documentTransform)}},null===(s=(r=this.cache).getMemoryInternals)||void 0===s?void 0:s.call(r))}}function h(){return{cache:{fragmentQueryDocuments:m(this.getFragmentDoc)}}}function f(){var e=this.config.fragments;return(0,i.pi)((0,i.pi)({},h.apply(this)),{addTypenameDocumentTransform:v(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:m(this.storeReader.executeSelectionSet),executeSubSelectedArray:m(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:m(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:m(null==e?void 0:e.findFragmentSpreads),lookup:m(null==e?void 0:e.lookup),transform:m(null==e?void 0:e.transform)}})}function p(e){return!!e&&"dirtyKey"in e}function m(e){return p(e)?e.size:void 0}function g(e){return null!=e}function v(e){return y(e).map(function(e){return{cache:e}})}function y(e){return e?(0,i.ev)((0,i.ev)([m(null==e?void 0:e.performWork)],y(null==e?void 0:e.left),!0),y(null==e?void 0:e.right),!0).filter(g):[]}function _(e){var t;return e?(0,i.ev)((0,i.ev)([null===(t=null==e?void 0:e.getMemoryInternals)||void 0===t?void 0:t.call(e)],_(null==e?void 0:e.left),!0),_(null==e?void 0:e.right),!0).filter(g):[]}},66331:function(e,t,n){"use strict";n.d(t,{Q:function(){return s}});var i=n(97582),r=n(78287),a=Symbol.for("apollo.cacheSize"),s=(0,i.pi)({},r.CO[a])},21436:function(e,t,n){"use strict";n.d(t,{O:function(){return r},k:function(){return i}});var i=Array.isArray;function r(e){return Array.isArray(e)&&e.length>0}},30320:function(e,t,n){"use strict";n.d(t,{DN:function(){return l},JC:function(){return d},Nq:function(){return u},aS:function(){return o},mr:function(){return a},sy:function(){return s}});var i=n(78287),r="ReactNative"==(0,i.wY)(function(){return navigator.product}),a="function"==typeof WeakMap&&!(r&&!global.HermesInternal),s="function"==typeof WeakSet,o="function"==typeof Symbol&&"function"==typeof Symbol.for,l=o&&Symbol.asyncIterator,u="function"==typeof(0,i.wY)(function(){return window.document.createElement}),c=(0,i.wY)(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1,d=(u||r)&&!c},5466:function(e,t,n){"use strict";n.d(t,{B:function(){return o}});var i,r=n(38991),a=n(66331),s=n(88244),o=Object.assign(function(e){return JSON.stringify(e,l)},{reset:function(){i=new r.L(a.Q.canonicalStringify||1e3)}});function l(e,t){if(t&&"object"==typeof t){var n=Object.getPrototypeOf(t);if(n===Object.prototype||null===n){var r=Object.keys(t);if(r.every(u))return t;var a=JSON.stringify(r),s=i.get(a);if(!s){r.sort();var o=JSON.stringify(r);s=i.get(o)||r,i.set(a,s),i.set(o,s)}var l=Object.create(n);
280return s.forEach(function(e){l[e]=t[e]}),l}}return t}function u(e,t,n){return 0===t||n[t-1]<=e}!1!==globalThis.__DEV__&&(0,s.zP)("canonicalStringify",function(){return i.size}),o.reset()},79487:function(e,t,n){"use strict";n.d(t,{X:function(){return r}});var i=Object.prototype.toString;function r(e){return a(e)}function a(e,t){switch(i.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var n=e.slice(0);return t.set(e,n),n.forEach(function(e,i){n[i]=a(e,t)}),n;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var r=Object.create(Object.getPrototypeOf(e));return t.set(e,r),Object.keys(e).forEach(function(n){r[n]=a(e[n],t)}),r;default:return e}}},53712:function(e,t,n){"use strict";function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object.create(null);return e.forEach(function(e){e&&Object.keys(e).forEach(function(t){var i=e[t];void 0!==i&&(n[t]=i)})}),n}n.d(t,{o:function(){return i}})},60897:function(e,t,n){"use strict";n.d(t,{X:function(){return r}});var i=new Map;function r(e){var t=i.get(e)||1;return i.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}},10542:function(e,t,n){"use strict";n.d(t,{J:function(){return s}});var i=n(13154);function r(e){var t=new Set([e]);return t.forEach(function(e){(0,i.s)(e)&&a(e)===e&&Object.getOwnPropertyNames(e).forEach(function(n){(0,i.s)(e[n])&&t.add(e[n])})}),e}function a(e){if(!1!==globalThis.__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}function s(e){return!1!==globalThis.__DEV__&&r(e),e}},14012:function(e,t,n){"use strict";n.d(t,{J:function(){return a}});var i=n(97582),r=n(53712);function a(e,t){return(0,r.o)(e,t,t.variables&&{variables:(0,r.o)((0,i.pi)((0,i.pi)({},e&&e.variables),t.variables))})}},13154:function(e,t,n){"use strict";function i(e){return null!==e&&"object"==typeof e}n.d(t,{s:function(){return i}})},13887:function(e,t,n){"use strict";n.d(t,{v:function(){return r}});var i=n(60897);function r(e,t){void 0===t&&(t=0);var n=(0,i.X)("stringifyForDisplay");return JSON.stringify(e,function(e,t){return void 0===t?n:t},t).split(JSON.stringify(n)).join("<undefined>")}},78287:function(e,t,n){"use strict";n.d(t,{CO:function(){return p},kG:function(){return v},wY:function(){return f},_K:function(){return y}});var i=n(97582),r="Invariant Violation",a=Object.setPrototypeOf,s=void 0===a?function(e,t){return e.__proto__=t,e}:a,o=function(e){function t(n){void 0===n&&(n=r);var i=e.call(this,"number"==typeof n?r+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return i.framesToPop=1,i.name=r,s(i,t.prototype),i}return(0,i.ZT)(t,e),t}(Error);function l(e,t){if(!e)throw new o(t)}var u=["debug","log","warn","error","silent"],c=u.indexOf("log");function d(e){return function(){if(u.indexOf(e)>=c)return(console[e]||console.log).apply(console,arguments)}}!function(e){e.debug=d("debug"),e.log=d("log"),e.warn=d("warn"),e.error=d("error")}(l||(l={}));var h=n(49379);function f(e){try{return e()}catch(e){}}var p=f(function(){return globalThis})||f(function(){return window})||f(function(){return self})||f(function(){return global})||f(function(){return f.constructor("return this")()}),m=n(13887);function g(e){return function(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];if("number"==typeof t){var r=t;(t=x(r))||(t=C(r,n),n=[])}e.apply(void 0,[t].concat(n))}}var v=Object.assign(function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];e||l(e,x(t,n)||C(t,n))},{debug:g(l.debug),log:g(l.log),warn:g(l.warn),error:g(l.error)});function y(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new o(x(e,t)||C(e,t))}var _=Symbol.for("ApolloErrorMessageHandler_"+h.i);function b(e){if("string"==typeof e)return e;try{return(0,m.v)(e,2).slice(0,1e3)}catch(e){return"<non-serializable>"}}function x(e,t){if(void 0===t&&(t=[]),e)return p[_]&&p[_](e,t.map(b))}function C(e,t){if(void 0===t&&(t=[]),e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:h.i,message:e,args:t.map(b)})))}},19065:function(e,t,n){"use strict";n.d(t,{FS:function(){return o},GT:function(){return d},LZ:function(){return s},mj:function(){return l}});var i=n(78287),r=n(77304),a=n(97359);function s(e,t){var n=e.directives;return!n||!n.length||c(n).every(function(e){var n=e.directive,r=e.ifArgument,a=!1;return"Variable"===r.value.kind?(a=t&&t[r.value.name.value],(0,i.kG)(void 0!==a,78,n.name.value)):a=r.value.value,"skip"===n.name.value?!a:a})}function o(e,t,n){var i=new Set(e),a=i.size;return(0,r.Vn)(t,{Directive:function(e){if(i.delete(e.name.value)&&(!n||!i.size))return r.$_}}),n?!i.size:i.size<a}function l(e){return e&&o(["client","export"],e,!0)}function u(e){var t=e.name.value;return"skip"===t||"include"===t}function c(e){var t=[];return e&&e.length&&e.forEach(function(e){if(u(e)){var n=e.arguments,r=e.name.value;(0,i.kG)(n&&1===n.length,79,r);var a=n[0];(0,i.kG)(a.name&&"if"===a.name.value,80,r);var s=a.value;(0,i.kG)(s&&("Variable"===s.kind||"BooleanValue"===s.kind),81,r),t.push({directive:e,ifArgument:a})}}),t}function d(e){var t,n,r=null===(t=e.directives)||void 0===t?void 0:t.find(function(e){return"unmask"===e.name.value});if(!r)return"mask";var s=null===(n=r.arguments)||void 0===n?void 0:n.find(function(e){return"mode"===e.name.value});return(!1!==globalThis.__DEV__&&s&&(s.value.kind===a.h.VARIABLE?!1!==globalThis.__DEV__&&i.kG.warn(82):s.value.kind!==a.h.STRING?!1!==globalThis.__DEV__&&i.kG.warn(83):"migrate"!==s.value.value&&!1!==globalThis.__DEV__&&i.kG.warn(84,s.value.value)),s&&"value"in s.value&&"migrate"===s.value.value)?"migrate":"unmask"}},23361:function(e,t,n){"use strict";n.d(t,{F:function(){return o},YU:function(){return u},Yk:function(){return s},hi:function(){return l}});var i=n(97582),r=n(78287),a=n(77304);function s(e,t){var n=t,a=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw(0,r._K)(85,e.operation,e.name?" named '".concat(e.name.value,"'"):"");"FragmentDefinition"===e.kind&&a.push(e)}),void 0===n&&((0,r.kG)(1===a.length,86,a.length),n=a[0].name.value),(0,i.pi)((0,i.pi)({},e),{definitions:(0,i.ev)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)})}function o(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function l(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=e.name.value;if("function"==typeof t)return t(n);var i=t&&t[n];return(0,r.kG)(i,87,n),i||null;default:return null}}function u(e){var t=!0;return(0,a.Vn)(e,{FragmentSpread:function(e){if(!(t=!!e.directives&&e.directives.some(function(e){return"unmask"===e.name.value})))return a.$_}}),t}},36765:function(e,t,n){"use strict";n.d(t,{$H:function(){return s},A$:function(){return a},O4:function(){return h},iW:function(){return u},kU:function(){return l},p$:function(){return d},pD:function(){return c},rY:function(){return o}});var i=n(78287),r=n(51761);function a(e){(0,i.kG)(e&&"Document"===e.kind,88);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw(0,i._K)(89,e.kind);return e});return(0,i.kG)(t.length<=1,90,t.length),e}function s(e){return a(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function o(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&!!e.name}).map(function(e){return e.name.value})[0]||null}function l(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function u(e){var t=s(e);return(0,i.kG)(t&&"query"===t.operation,91),t}function c(e){(0,i.kG)("Document"===e.kind,92),(0,i.kG)(e.definitions.length<=1,93);var t=e.definitions[0];return(0,i.kG)("FragmentDefinition"===t.kind,94),t}function d(e){a(e);for(var t,n=0,r=e.definitions;n<r.length;n++){var s=r[n];if("OperationDefinition"===s.kind){var o=s.operation;if("query"===o||"mutation"===o||"subscription"===o)return s}"FragmentDefinition"!==s.kind||t||(t=s)}if(t)return t;throw(0,i._K)(95)}function h(e){var t=Object.create(null),n=e&&e.variableDefinitions;
280return n&&n.length&&n.forEach(function(e){e.defaultValue&&(0,r.vb)(t,e.variable.name,e.defaultValue)}),t}},51761:function(e,t,n){"use strict";n.d(t,{Ao:function(){return P},JW:function(){return u},My:function(){return L},NC:function(){return w},PT:function(){return E},Yk:function(){return l},kQ:function(){return o},qw:function(){return S},u2:function(){return T},vb:function(){return _},vf:function(){return b}});var i=n(78287),r=n(13154),a=n(23361),s=n(5466);function o(e){return{__ref:String(e)}}function l(e){return!!(e&&"object"==typeof e&&"string"==typeof e.__ref)}function u(e){return(0,r.s)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}function c(e){return"StringValue"===e.kind}function d(e){return"BooleanValue"===e.kind}function h(e){return"IntValue"===e.kind}function f(e){return"FloatValue"===e.kind}function p(e){return"Variable"===e.kind}function m(e){return"ObjectValue"===e.kind}function g(e){return"ListValue"===e.kind}function v(e){return"EnumValue"===e.kind}function y(e){return"NullValue"===e.kind}function _(e,t,n,r){if(h(n)||f(n))e[t.value]=Number(n.value);else if(d(n)||c(n))e[t.value]=n.value;else if(m(n)){var a={};n.fields.map(function(e){return _(a,e.name,e.value,r)}),e[t.value]=a}else if(p(n)){var s=(r||{})[n.name.value];e[t.value]=s}else if(g(n))e[t.value]=n.values.map(function(e){var n={};return _(n,t,e,r),n[t.value]});else if(v(n))e[t.value]=n.value;else if(y(n))e[t.value]=null;else throw(0,i._K)(96,t.value,n.kind)}function b(e,t){var n=null;e.directives&&(n={},e.directives.forEach(function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach(function(i){var r=i.name,a=i.value;return _(n[e.name.value],r,a,t)})}));var i=null;return e.arguments&&e.arguments.length&&(i={},e.arguments.forEach(function(e){var n=e.name,r=e.value;return _(i,n,r,t)})),E(e.name.value,i,n)}var x=["connection","include","skip","client","rest","export","nonreactive"],C=s.B,E=Object.assign(function(e,t,n){if(t&&n&&n.connection&&n.connection.key){if(!n.connection.filter||!(n.connection.filter.length>0))return n.connection.key;var i=n.connection.filter?n.connection.filter:[];i.sort();var r={};return i.forEach(function(e){r[e]=t[e]}),"".concat(n.connection.key,"(").concat(C(r),")")}var a=e;if(t){var s=C(t);a+="(".concat(s,")")}return n&&Object.keys(n).forEach(function(e){-1===x.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?a+="@".concat(e,"(").concat(C(n[e]),")"):a+="@".concat(e))}),a},{setStringify:function(e){var t=C;return C=e,t}});function w(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(e){return _(n,e.name,e.value,t)}),n}return null}function T(e){return e.alias?e.alias.value:e.name.value}function S(e,t,n){for(var i,r=0,s=t.selections;r<s.length;r++){var o=s[r];if(L(o)){if("__typename"===o.name.value)return e[T(o)]}else i?i.push(o):i=[o]}if("string"==typeof e.__typename)return e.__typename;if(i)for(var l=0,u=i;l<u.length;l++){var o=u[l],c=S(e,(0,a.hi)(o,n).selectionSet,n);if("string"==typeof c)return c}}function L(e){return"Field"===e.kind}function P(e){return"InlineFragment"===e.kind}},18263:function(e,t,n){"use strict";function i(e,t,n){var i=[];e.forEach(function(e){return e[t]&&i.push(e)}),i.forEach(function(e){return e[t](n)})}n.d(t,{p:function(){return i}})},86403:function(e,t,n){"use strict";n.d(t,{D:function(){return a}});var i=n(48216),r=n(30320);function a(e){function t(t){Object.defineProperty(e,t,{value:i.y})}return r.aS&&Symbol.species&&t(Symbol.species),t("@@species"),e}},49379:function(e,t,n){"use strict";n.d(t,{i:function(){return i}});var i="3.13.8"},95430:function(e,t,n){"use strict";let i,r,a,s,o;n.d(t,{Ou:function(){return rf},a4:function(){return rb},v6:function(){return iM},XE:function(){return rx}});var l,u=n(67294),c=n(97582),d=n(78287),h=n(73914),f=n(85317),p=function(e){var t=e.client,n=e.children,i=(0,f.K)(),r=h.useContext(i),a=h.useMemo(function(){return(0,c.pi)((0,c.pi)({},r),{client:t||r.client})},[r,t]);return(0,d.kG)(a.client,55),h.createElement(i.Provider,{value:a},n)},m=n(11163),g=n(48702),v=n(19065),y=n(48216),_=function(e,t){var n;try{n=JSON.stringify(e)}catch(e){var i=(0,d._K)(42,t,e.message);throw i.parseError=e,i}return n},b=function(e,t){return e.getContext().uri||("function"==typeof t?t(e):t||"/graphql")},x=n(30320);function C(e){var t,n=e[Symbol.asyncIterator]();return(t={next:function(){return n.next()}})[Symbol.asyncIterator]=function(){return this},t}function E(e){var t=null,n=null,i=!1,r=[],a=[];
280function s(e){if(!n){if(a.length){var t=a.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}r.push(e)}}function o(e){n=e,a.slice().forEach(function(t){t[1](e)}),t&&t()}function l(){i=!0,a.slice().forEach(function(e){e[0]({value:void 0,done:!0})}),t&&t()}function u(){return new Promise(function(e,t){return n?t(n):r.length?e({value:r.shift(),done:!1}):i?e({value:void 0,done:!0}):void a.push([e,t])})}t=function(){t=null,e.removeListener("data",s),e.removeListener("error",o),e.removeListener("end",l),e.removeListener("finish",l),e.removeListener("close",l)},e.on("data",s),e.on("error",o),e.on("end",l),e.on("finish",l),e.on("close",l);var c={next:function(){return u()}};return x.DN&&(c[Symbol.asyncIterator]=function(){return this}),c}function w(e){var t=!1,n={next:function(){return t?Promise.resolve({value:void 0,done:!0}):(t=!0,new Promise(function(t,n){e.then(function(e){t({value:e,done:!1})}).catch(n)}))}};return x.DN&&(n[Symbol.asyncIterator]=function(){return this}),n}function T(e){var t={next:function(){return e.read()}};return x.DN&&(t[Symbol.asyncIterator]=function(){return this}),t}function S(e){return!!e.body}function L(e){return!!e.getReader}function P(e){return!!(x.DN&&e[Symbol.asyncIterator])}function M(e){return!!e.stream}function A(e){return!!e.arrayBuffer}function I(e){return!!e.pipe}function R(e){var t=e;if(S(e)&&(t=e.body),P(t))return C(t);if(L(t))return T(t.getReader());if(M(t))return T(t.stream().getReader());if(A(t))return w(t.arrayBuffer());if(I(t))return E(t);throw Error("Unknown body type for responseIterator. Please pass a streamable response.")}var k=function(e,t,n){var i=Error(n);throw i.name="ServerError",i.response=e,i.statusCode=e.status,i.result=t,i},D=n(30990),N=n(13154),F=n(21436),O=Object.prototype.hasOwnProperty;function j(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return U(e)}function U(e){var t=e[0]||{},n=e.length;if(n>1)for(var i=new B,r=1;r<n;++r)t=i.merge(t,e[r]);return t}var V=function(e,t,n){return this.merge(e[n],t[n])},B=function(){function e(e){void 0===e&&(e=V),this.reconciler=e,this.isObject=N.s,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var n=this,i=[],r=2;r<arguments.length;r++)i[r-2]=arguments[r];return(0,N.s)(t)&&(0,N.s)(e)?(Object.keys(t).forEach(function(r){if(O.call(e,r)){var a=e[r];if(t[r]!==a){var s=n.reconciler.apply(n,(0,c.ev)([e,t,r],i,!1));s!==a&&((e=n.shallowCopyForMerge(e))[r]=s)}}else(e=n.shallowCopyForMerge(e))[r]=t[r]}),e):t},e.prototype.shallowCopyForMerge=function(e){return(0,N.s)(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):(0,c.pi)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}();function H(e){return"incremental"in e}function G(e){return"hasNext"in e&&"data"in e}function z(e){return H(e)||G(e)}function q(e){return(0,N.s)(e)&&"payload"in e}function W(e,t){var n=e,i=new B;return H(t)&&(0,F.O)(t.incremental)&&t.incremental.forEach(function(e){for(var t=e.data,r=e.path,a=r.length-1;a>=0;--a){var s=r[a],o=isNaN(+s)?{}:[];o[s]=t,t=o}n=i.merge(n,t)}),n}var $=Object.prototype.hasOwnProperty;function Z(e,t){return(0,c.mG)(this,void 0,void 0,function(){var n,i,r,a,s,o,l,u,d,h,f,p,m,g,v,y,_,b,x,C,E,w,T;return(0,c.Jh)(this,function(S){switch(S.label){case 0:if(void 0===TextDecoder)throw Error("TextDecoder must be defined in the environment: please import a polyfill.");n=new TextDecoder("utf-8"),i=null===(T=e.headers)||void 0===T?void 0:T.get("content-type"),r="boundary=",a=(null==i?void 0:i.includes(r))?null==i?void 0:i.substring((null==i?void 0:i.indexOf(r))+r.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",s="\r\n--".concat(a),o="",l=R(e),u=!0,S.label=1;case 1:if(!u)return[3,3];return[4,l.next()];case 2:for(h=(d=S.sent()).value,f=d.done,p="string"==typeof h?h:n.decode(h),m=o.length-s.length+1,u=!f,o+=p,g=o.indexOf(s,m);g>-1;){if(v=void 0,v=(E=[o.slice(0,g),o.slice(g+s.length)])[0],o=E[1],y=v.indexOf("\r\n\r\n"),(_=Y(v.slice(0,y))["content-type"])&&-1===_.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");
280if(b=v.slice(y)){if(Object.keys(x=K(e,b)).length>1||"data"in x||"incremental"in x||"errors"in x||"payload"in x){if(q(x)){if(C={},"payload"in x){if(1===Object.keys(x).length&&null===x.payload)return[2];C=(0,c.pi)({},x.payload)}"errors"in x&&(C=(0,c.pi)((0,c.pi)({},C),{extensions:(0,c.pi)((0,c.pi)({},"extensions"in C?C.extensions:null),((w={})[D.YG]=x.errors,w))})),t(C)}else t(x)}else if(1===Object.keys(x).length&&"hasNext"in x&&!x.hasNext)return[2]}g=o.indexOf(s)}return[3,1];case 3:return[2]}})})}function Y(e){var t={};return e.split("\n").forEach(function(e){var n=e.indexOf(":");if(n>-1){var i=e.slice(0,n).trim().toLowerCase(),r=e.slice(n+1).trim();t[i]=r}}),t}function K(e,t){e.status>=300&&k(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status));try{return JSON.parse(t)}catch(i){var n=i;throw n.name="ServerParseError",n.response=e,n.statusCode=e.status,n.bodyText=t,n}}function X(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}function Q(e){return function(t){return t.text().then(function(e){return K(t,e)}).then(function(n){return Array.isArray(n)||$.call(n,"data")||$.call(n,"errors")||k(t,n,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName,"'.")),n})}}var J=function(e){if(!e&&"undefined"==typeof fetch)throw(0,d._K)(40)},ee=n(87392);function et(e){return`"${e.replace(en,ei)}"`}let en=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function ei(e){return er[e.charCodeAt(0)]}let er=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];var ea=n(77304);function es(e){return(0,ea.Vn)(e,el)}let eo=80,el={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>eu(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=ed("(",eu(e.variableDefinitions,", "),")"),n=eu([e.operation,eu([e.name,t]),eu(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:i})=>e+": "+t+ed(" = ",n)+ed(" ",eu(i," "))},SelectionSet:{leave:({selections:e})=>ec(e)},Field:{leave({alias:e,name:t,arguments:n,directives:i,selectionSet:r}){let a=ed("",e,": ")+t,s=a+ed("(",eu(n,", "),")");return s.length>eo&&(s=a+ed("(\n",eh(eu(n,"\n")),"\n)")),eu([s,eu(i," "),r]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+ed(" ",eu(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>eu(["...",ed("on ",e),eu(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:i,selectionSet:r})=>`fragment ${e}${ed("(",eu(n,", "),")")} on ${t} ${ed("",eu(i," ")," ")}`+r},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,ee.LZ)(e):et(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+eu(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+eu(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+ed("(",eu(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>ed("",e,"\n")+eu(["schema",eu(t," "),ec(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>ed("",e,"\n")+eu(["scalar",t,eu(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:i,fields:r})=>ed("",e,"\n")+eu(["type",t,ed("implements ",eu(n," & ")),eu(i," "),ec(r)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:i,directives:r})=>
280ed("",e,"\n")+t+(ef(n)?ed("(\n",eh(eu(n,"\n")),"\n)"):ed("(",eu(n,", "),")"))+": "+i+ed(" ",eu(r," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:i,directives:r})=>ed("",e,"\n")+eu([t+": "+n,ed("= ",i),eu(r," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:i,fields:r})=>ed("",e,"\n")+eu(["interface",t,ed("implements ",eu(n," & ")),eu(i," "),ec(r)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:i})=>ed("",e,"\n")+eu(["union",t,eu(n," "),ed("= ",eu(i," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:i})=>ed("",e,"\n")+eu(["enum",t,eu(n," "),ec(i)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>ed("",e,"\n")+eu([t,eu(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:i})=>ed("",e,"\n")+eu(["input",t,eu(n," "),ec(i)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:i,locations:r})=>ed("",e,"\n")+"directive @"+t+(ef(n)?ed("(\n",eh(eu(n,"\n")),"\n)"):ed("(",eu(n,", "),")"))+(i?" repeatable":"")+" on "+eu(r," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>eu(["extend schema",eu(e," "),ec(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>eu(["extend scalar",e,eu(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:i})=>eu(["extend type",e,ed("implements ",eu(t," & ")),eu(n," "),ec(i)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:i})=>eu(["extend interface",e,ed("implements ",eu(t," & ")),eu(n," "),ec(i)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>eu(["extend union",e,eu(t," "),ed("= ",eu(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>eu(["extend enum",e,eu(t," "),ec(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>eu(["extend input",e,eu(t," "),ec(n)]," ")}};function eu(e,t=""){var n;return null!==(n=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==n?n:""}function ec(e){return ed("{\n",eh(eu(e,"\n")),"\n}")}function ed(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function eh(e){return ed(" ",e.replace(/\n/g,"\n "))}function ef(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}var ep=n(38991),em=n(66331),eg=n(88244),ev=Object.assign(function(e){var t=l.get(e);return t||(t=es(e),l.set(e,t)),t},{reset:function(){l=new ep.s(em.Q.print||2e3)}});ev.reset(),!1!==globalThis.__DEV__&&(0,eg.zP)("print",function(){return l?l.size:0});var ey={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},e_=function(e,t){return t(e)};function eb(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var r={},a={};n.forEach(function(e){r=(0,c.pi)((0,c.pi)((0,c.pi)({},r),e.options),{headers:(0,c.pi)((0,c.pi)({},r.headers),e.headers)}),e.credentials&&(r.credentials=e.credentials),a=(0,c.pi)((0,c.pi)({},a),e.http)}),r.headers&&(r.headers=ex(r.headers,a.preserveHeaderCase));var s=e.operationName,o=e.extensions,l=e.variables,u=e.query,d={operationName:s,variables:l};return a.includeExtensions&&(d.extensions=o),a.includeQuery&&(d.query=t(u,ev)),{options:r,body:d}}function ex(e,t){if(!t){var n={};
280return Object.keys(Object(e)).forEach(function(t){n[t.toLowerCase()]=e[t]}),n}var i={};Object.keys(Object(e)).forEach(function(t){i[t.toLowerCase()]={originalName:t,value:e[t]}});var r={};return Object.keys(i).forEach(function(e){r[i[e].originalName]=i[e].value}),r}function eC(e,t){var n=[],i=function(e,t){n.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&i("query",t.query),t.operationName&&i("operationName",t.operationName),t.variables){var r=void 0;try{r=_(t.variables,"Variables map")}catch(e){return{parseError:e}}i("variables",r)}if(t.extensions){var a=void 0;try{a=_(t.extensions,"Extensions map")}catch(e){return{parseError:e}}i("extensions",a)}var s="",o=e,l=e.indexOf("#");-1!==l&&(s=e.substr(l),o=e.substr(0,l));var u=-1===o.indexOf("?")?"?":"&";return{newURI:o+u+n.join("&")+s}}function eE(e){return new y.y(function(t){t.error(e)})}function ew(e,t){var n=(0,c.pi)({},e),i=new Set(Object.keys(e));return(0,ea.Vn)(t,{Variable:function(e,t,n){n&&"VariableDefinition"!==n.kind&&i.delete(e.name.value)}}
280),i.forEach(function(e){delete n[e]}),n}var eT=n(97359),eS=n(36765),eL=n(51761),eP=n(23361),eM={kind:eT.h.FIELD,name:{kind:eT.h.NAME,value:"__typename"}};function eA(e,t){return!e||e.selectionSet.selections.every(function(e){return e.kind===eT.h.FRAGMENT_SPREAD&&eA(t[e.name.value],t)})}function eI(e){return eA((0,eS.$H)(e)||(0,eS.pD)(e),(0,eP.F)((0,eS.kU)(e)))?null:e}function eR(e){var t=new Map,n=new Map;return e.forEach(function(e){e&&(e.name?t.set(e.name,e):e.test&&n.set(e.test,e))}),function(e){var i=t.get(e.name.value);return!i&&n.size&&n.forEach(function(t,n){n(e)&&(i=t)}),i}}function ek(e){var t=new Map;return function(n){void 0===n&&(n=e);var i=t.get(n);return i||t.set(n,i={variables:new Set,fragmentSpreads:new Set}),i}}function eD(e,t){(0,eS.A$)(t);for(var n=ek(""),i=ek(""),r=function(e){for(var t=0,r=void 0;t<e.length&&(r=e[t]);++t)if(!(0,F.k)(r)){if(r.kind===eT.h.OPERATION_DEFINITION)return n(r.name&&r.name.value);if(r.kind===eT.h.FRAGMENT_DEFINITION)return i(r.name.value)}return!1!==globalThis.__DEV__&&d.kG.error(97),null},a=0,s=t.definitions.length-1;s>=0;--s)t.definitions[s].kind===eT.h.OPERATION_DEFINITION&&++a;var o=eR(e),l=function(e){return(0,F.O)(e)&&e.map(o).some(function(e){return e&&e.remove})},u=new Map,h=!1,f={enter:function(e){if(l(e.directives))return h=!0,null}},p=(0,ea.Vn)(t,{Field:f,InlineFragment:f,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,n,i,a){var s=r(a);s&&s.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,n,i,a){if(l(e.directives))return h=!0,null;var s=r(a);s&&s.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,n,i){u.set(JSON.stringify(i),e)},leave:function(e,t,n,r){return e===u.get(JSON.stringify(r))?e:a>0&&e.selectionSet.selections.every(function(e){return e.kind===eT.h.FIELD&&"__typename"===e.name.value})?(i(e.name.value).removed=!0,h=!0,null):void 0}},Directive:{leave:function(e){if(o(e))return h=!0,null}}});if(!h)return t;var m=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){m(i(t)).transitiveVars.forEach(function(t){e.transitiveVars.add(t)})})),e},g=new Set;p.definitions.forEach(function(e){e.kind===eT.h.OPERATION_DEFINITION?m(n(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){g.add(e)}):e.kind!==eT.h.FRAGMENT_DEFINITION||0!==a||i(e.name.value).removed||g.add(e.name.value)}),g.forEach(function(e){m(i(e)).fragmentSpreads.forEach(function(e){g.add(e)})});var v=function(e){return!!(!g.has(e)||i(e).removed)},y={enter:function(e){if(v(e.name.value))return null}};return eI((0,ea.Vn)(p,{FragmentSpread:y,FragmentDefinition:y,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=m(n(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return(0,c.pi)((0,c.pi)({},e),{variableDefinitions:e.variableDefinitions.filter(function(e){return t.has(e.variable.name.value)})})}}}}))}var eN=Object.assign(function(e){return(0,ea.Vn)(e,{SelectionSet:{enter:function(e,t,n){if(!n||n.kind!==eT.h.OPERATION_DEFINITION){var i=e.selections;if(!(!i||i.some(function(e){return(0,eL.My)(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))){var r=n;if(!((0,eL.My)(r)&&r.directives&&r.directives.some(function(e){return"export"===e.name.value})))return(0,c.pi)((0,c.pi)({},e),{selections:(0,c.ev)((0,c.ev)([],i,!0),[eM],!1)})}}}}})},{added:function(e){return e===eM}});function eF(e){return"query"===(0,eS.p$)(e).operation?e:(0,ea.Vn)(e,{OperationDefinition:{enter:function(e){return(0,c.pi)((0,c.pi)({},e),{operation:"query"})}}})}function eO(e){return(0,eS.A$)(e),eD([{test:function(e){return"client"===e.name.value},remove:!0}],e)}function ej(e){return(0,eS.A$)(e),(0,ea.Vn)(e,{FragmentSpread:function(e){var t;if(null===(t=e.directives)||void 0===t||!t.some(function(e){return"unmask"===e.name.value}))return(0,c.pi)((0,c.pi)({},e),{directives:(0,c.ev)((0,c.ev)([],e.directives||[],!0),[{kind:eT.h.DIRECTIVE,name:{kind:eT.h.NAME,value:"nonreactive"}}
280],!1)})}})}var eU=(0,d.wY)(function(){return fetch}),eV=function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,i=e.fetch,r=e.print,a=void 0===r?e_:r,s=e.includeExtensions,o=e.preserveHeaderCase,l=e.useGETForQueries,u=e.includeUnusedVariables,h=void 0!==u&&u,f=(0,c._T)(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&J(i||eU);var p={http:{includeExtensions:s,preserveHeaderCase:o},options:f.fetchOptions,credentials:f.credentials,headers:f.headers};return new g.i(function(e){var t,r=b(e,n),s=e.getContext(),o={};if(s.clientAwareness){var u=s.clientAwareness,f=u.name,m=u.version;f&&(o["apollographql-client-name"]=f),m&&(o["apollographql-client-version"]=m)}var g=(0,c.pi)((0,c.pi)({},o),s.headers),x={http:s.http,options:s.fetchOptions,credentials:s.credentials,headers:g};if((0,v.FS)(["client"],e.query)){var C=eO(e.query);if(!C)return eE(Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));e.query=C}var E=eb(e,a,ey,p,x),w=E.options,T=E.body;T.variables&&!h&&(T.variables=ew(T.variables,e.query)),w.signal||"undefined"==typeof AbortController||(t=new AbortController,w.signal=t.signal);var S=function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation},L=function(e){return"OperationDefinition"===e.kind&&"subscription"===e.operation}((0,eS.p$)(e.query)),P=(0,v.FS)(["defer"],e.query);if(l&&!e.query.definitions.some(S)&&(w.method="GET"),P||L){w.headers=w.headers||{};var M="multipart/mixed;";L&&P&&!1!==globalThis.__DEV__&&d.kG.warn(41),L?M+="boundary=graphql;subscriptionSpec=1.0,application/json":P&&(M+="deferSpec=20220824,application/json"),w.headers.accept=M}if("GET"===w.method){var A=eC(r,T),I=A.newURI,R=A.parseError;if(R)return eE(R);r=I}else try{w.body=_(T,"Payload")}catch(e){return eE(e)}return new y.y(function(n){var a=i||(0,d.wY)(function(){return fetch})||eU,s=n.next.bind(n);return a(r,w).then(function(t){e.setContext({response:t});var n,i=null===(n=t.headers)||void 0===n?void 0:n.get("content-type");return null!==i&&/^multipart\/mixed/i.test(i)?Z(t,s):Q(e)(t).then(s)}).then(function(){t=void 0,n.complete()}).catch(function(e){t=void 0,X(e,n)}),function(){t&&t.abort()}})})},eB=n(56275),eH=n(30020),eG=n(99869),ez=n(39613),eq=x.mr?WeakMap:Map,eW=x.sy?WeakSet:Set,e$=new eB.g7,eZ=!1;function eY(){eZ||(eZ=!0,!1!==globalThis.__DEV__&&d.kG.warn(52))}var eK=n(10542);function eX(e,t,n){return e$.withValue(!0,function(){var i=eJ(e,t,n,!1);return Object.isFrozen(e)&&(0,eK.J)(i),i})}function eQ(e,t){if(t.has(e))return t.get(e);var n=Array.isArray(e)?[]:Object.create(null);return t.set(e,n),n}function eJ(e,t,n,i,r){var a,s=n.knownChanged,o=eQ(e,n.mutableTargets);if(Array.isArray(e)){for(var l=0,u=Array.from(e.entries());l<u.length;l++){var c=u[l],h=c[0],f=c[1];if(null===f){o[h]=null;continue}var p=eJ(f,t,n,i,!1!==globalThis.__DEV__?"".concat(r||"","[").concat(h,"]"):void 0);s.has(p)&&s.add(o),o[h]=p}return s.has(o)?o:e}for(var m=0,g=t.selections;m<g.length;m++){var y=g[m],_=void 0;if(i&&s.add(o),y.kind===eT.h.FIELD){var b=(0,eL.u2)(y),x=y.selectionSet;if(void 0===(_=o[b]||e[b]))continue;if(x&&null!==_){var p=eJ(e[b],x,n,i,!1!==globalThis.__DEV__?"".concat(r||"",".").concat(b):void 0);s.has(p)&&(_=p)}!1!==globalThis.__DEV__||(o[b]=_),!1!==globalThis.__DEV__&&(!i||"__typename"===b||(null===(a=Object.getOwnPropertyDescriptor(o,b))||void 0===a?void 0:a.value)?(delete o[b],o[b]=_):Object.defineProperty(o,b,e0(b,_,r||"",n.operationName,n.operationType)))}if(y.kind===eT.h.INLINE_FRAGMENT&&(!y.typeCondition||n.cache.fragmentMatches(y,e.__typename))&&(_=eJ(e,y.selectionSet,n,i,r)),y.kind===eT.h.FRAGMENT_SPREAD){var C=y.name.value,E=n.fragmentMap[C]||(n.fragmentMap[C]=n.cache.lookupFragment(C));(0,d.kG)(E,47,C);var w=(0,v.GT)(y);"mask"!==w&&(_=eJ(e,E.selectionSet,n,"migrate"===w,r))}s.has(_)&&s.add(o)}return"__typename"in e&&!("__typename"in o)&&(o.__typename=e.__typename),Object.keys(o).length!==Object.keys(e).length&&s.add(o),s.has(o)?o:e}function e0(e,t,n,i,r){var a=function(){return e$.getValue()||(!1!==globalThis.__DEV__&&d.kG.warn(48,i?"".concat(r," '").concat(i,"'"):"anonymous ".concat(r),"".concat(n,".").concat(e).replace(/^\./,"")),a=function(){return t}),t};return{get:function(){return a()},set:function(e){a=function(){return e}},enumerable:!0,configurable:!0}}function e1(e,t,n,i){if(!n.fragmentMatches)return!1!==globalThis.__DEV__&&eY(),e;var r=t.definitions.filter(function(e){return e.kind===eT.h.FRAGMENT_DEFINITION});void 0===i&&((0,d.kG)(1===r.length,49,r.length),i=r[0].name.value);var a=r.find(function(e){return e.name.value===i});return((0,d.kG)(!!a,50,i),null==e||(0,eH.Z)(e,{}))?e:eX(e,a.selectionSet,{operationType:"fragment",operationName:a.name.value,fragmentMap:(0,eP.F)((0,eS.kU)(t)),cache:n,mutableTargets:new eq,knownChanged:new eW})}var e2=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=(0,eB.re)(eP.Yk,{max:em.Q["cache.fragmentQueryDocuments"]||1e3,cache:eG.k})}return e.prototype.lookupFragment=function(e){return null},e.prototype.batch=function(e){var t,n=this,i="string"==typeof e.o
280ptimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(function(){return t=e.update(n)},i),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,c.pi)((0,c.pi)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.watchFragment=function(e){var t,n=this,i=e.fragment,r=e.fragmentName,a=e.from,s=e.optimistic,o=void 0===s||s,l=(0,c._T)(e,["fragment","fragmentName","from","optimistic"]),u=this.getFragmentDoc(i,r),h=void 0===a||"string"==typeof a?a:this.identify(a),f=!!e[Symbol.for("apollo.dataMasking")];if(!1!==globalThis.__DEV__){var p=r||(0,eS.pD)(i).name.value;h||!1===globalThis.__DEV__||d.kG.warn(1,p)}var m=(0,c.pi)((0,c.pi)({},l),{returnPartialData:!0,id:h,query:u,optimistic:o});return new y.y(function(a){return n.watch((0,c.pi)((0,c.pi)({},m),{immediate:!0,callback:function(s){var o=f?e1(s.result,i,n,r):s.result;if(!(t&&(0,ez.W)(u,{data:t.result},{data:o},e.variables))){var l={data:o,complete:!!s.complete};s.missing&&(l.missing=U(s.missing.map(function(e){return e.missing}))),t=(0,c.pi)((0,c.pi)({},s),{result:o}),a.next(l)}}}))})},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,c.pi)((0,c.pi)({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,n=e.data,i=(0,c._T)(e,["id","data"]);return this.write(Object.assign(i,{dataId:t||"ROOT_QUERY",result:n}))},e.prototype.writeFragment=function(e){var t=e.id,n=e.data,i=e.fragment,r=e.fragmentName,a=(0,c._T)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(i,r),dataId:t,result:n}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(n){var i=n.readQuery(e),r=t(i);return null==r?i:(n.writeQuery((0,c.pi)((0,c.pi)({},e),{data:r})),r)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(n){var i=n.readFragment(e),r=t(i);return null==r?i:(n.writeFragment((0,c.pi)((0,c.pi)({},e),{data:r})),r)}})},e}();!1!==globalThis.__DEV__&&(e2.prototype.getMemoryInternals=eg.Kb);var e3=function(e){function t(n,i,r,a){var s,o=e.call(this,n)||this;if(o.message=n,o.path=i,o.query=r,o.variables=a,Array.isArray(o.path)){o.missing=o.message;for(var l=o.path.length-1;l>=0;--l)o.missing=((s={})[o.path[l]]=o.missing,s)}else o.missing=o.path;return o.__proto__=t.prototype,o}return(0,c.ZT)(t,e),t}(Error),e5=n(75028);function e4(e){return e}var e6=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=x.sy?new WeakSet:new Set,this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}return e.prototype.getCacheKey=function(e){return[e]},e.identity=function(){return new e(e4,{cache:!1})},e.split=function(t,n,i){return void 0===i&&(i=e.identity()),Object.assign(new e(function(e){return(t(e)?n:i).transformDocument(e)},{cache:!1}),{left:n,right:i})},e.prototype.resetCache=function(){var t=this;if(this.cached){var n=new e5.B(x.mr);this.performWork=(0,eB.re)(e.prototype.performWork.bind(this),{makeCacheKey:function(e){var i=t.getCacheKey(e);if(i)return(0,d.kG)(Array.isArray(i),77),n.lookupArray(i)},max:em.Q["documentTransform.cache"],cache:eG.k})}},e.prototype.performWork=function(e){return(0,eS.A$)(e),this.transform(e)},e.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.performWork(e);return this.resultCache.add(t),t},e.prototype.concat=function(t){var n=this;return Object.assign(new e(function(e){return t.transformDocument(n.transformDocument(e))},{cache:!1}),{left:this,right:t})},e}(),e8=n(5466),e7=n(53712),e9=Object.prototype.hasOwnProperty;function te(e){return null==e}function tt(e,t){var n=e.__typename,i=e.id,r=e._id;if("string"==typeof n&&(t&&(t.keyObject=te(i)?te(r)?void 0:{_id:r}:{id:i}),te(i)&&!te(r)&&(i=r),!te(i)))return"".concat(n,":").concat("number"==typeof i||"string"==typeof i?i:JSON.stringify(i))}var tn={dataIdFromObject:tt,addTypename:!0,resultCaching:!0,canonizeResults:!1};function ti(e){return(0,e7.o)(tn,e)}function tr(e){var t=e.canonizeResults;return void 0===t?tn.canonizeResults:t}function ta(e,t){return(0,eL.Yk)(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var ts=/^[_a-z][_0-9a-z]*/i;function to(e){var t=e.match(ts);return t?t[0]:e}function tl(e,t,n){return!!(0,N.s)(t)&&((0,F.k)(t)?t.every(function(t){return tl(e,t,n)}):e.selections.every(function(e){if((0,eL.My)(e)&&(0,v.LZ)(e,n)){var i=(0,eL.u2)(e);return e9.call(t,i)&&(!e.selectionSet||tl(e.selectionSet,t[i],n))}return!0}))}function tu(e){return(0,N.s)(e)&&!(0,eL.Yk)(e)&&!(0,F.k)(e)}function tc(){return new B}function td(e,t){var n=(0,eP.F)((0,eS.kU)(e));return{fragmentMap:n,lookupFragment:function(e){var i=n[e];return!i&&t&&(i=t.lookup(e)),i||null}}}var th=Object.create(null),tf=function(){return th},tp=Object.create(null),tm=function(){function e(e,t){var n=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return(0,eK.J)((0,eL.Yk)(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return(0,eL.Yk)(e)?n.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return(0,eL.kQ)(e);if((0,eL.Yk)(e))return e;var i=n.policies.identify(e)[0];if(i){var r=(0,eL.kQ)(i);return t&&n.merge(i,e),r}}}return e.prototype.toObject=function(){return(0,c.pi)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),e9.call(this.data,e)){var n=this.data[e];if(n&&e9.call(n,t))return n[t]}return"__typename"===t&&e9.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof t_?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return(t&&this.group.depend(e,"__exists"),e9.call(this.data,e))?this.data[e]:this instanceof t_?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var n,i=this;(0,eL.Yk)(e)&&(e=e.__ref),(0,eL.Yk)(t)&&(t=t.__ref);
280var r="string"==typeof e?this.lookup(n=e):e,a="string"==typeof t?this.lookup(n=t):t;if(a){(0,d.kG)("string"==typeof n,2);var s=new B(tx).merge(r,a);if(this.data[n]=s,s!==r&&(delete this.refs[n],this.group.caching)){var o=Object.create(null);r||(o.__exists=1),Object.keys(a).forEach(function(e){if(!r||r[e]!==s[e]){o[e]=1;var t=to(e);t===e||i.policies.hasKeyArgs(s.__typename,t)||(o[t]=1),void 0!==s[e]||i instanceof t_||delete s[e]}}),o.__typename&&!(r&&r.__typename)&&this.policies.rootTypenamesById[n]===s.__typename&&delete o.__typename,Object.keys(o).forEach(function(e){return i.group.dirty(n,e)})}}},e.prototype.modify=function(e,t){var n=this,i=this.lookup(e);if(i){var r=Object.create(null),a=!1,s=!0,o={DELETE:th,INVALIDATE:tp,isReference:eL.Yk,toReference:this.toReference,canRead:this.canRead,readField:function(t,i){return n.policies.readField("string"==typeof t?{fieldName:t,from:i||(0,eL.kQ)(e)}:t,{store:n})}};if(Object.keys(i).forEach(function(l){var u=to(l),h=i[l];if(void 0!==h){var f="function"==typeof t?t:t[l]||t[u];if(f){var p=f===tf?th:f((0,eK.J)(h),(0,c.pi)((0,c.pi)({},o),{fieldName:u,storeFieldName:l,storage:n.getStorage(e,l)}));if(p===tp)n.group.dirty(e,l);else if(p===th&&(p=void 0),p!==h&&(r[l]=p,a=!0,h=p,!1!==globalThis.__DEV__)){var m=function(e){if(void 0===n.lookup(e.__ref))return!1!==globalThis.__DEV__&&d.kG.warn(3,e),!0};if((0,eL.Yk)(p))m(p);else if(Array.isArray(p))for(var g=!1,v=void 0,y=0,_=p;y<_.length;y++){var b=_[y];if((0,eL.Yk)(b)){if(g=!0,m(b))break}else"object"==typeof b&&b&&n.policies.identify(b)[0]&&(v=b);if(g&&void 0!==v){!1!==globalThis.__DEV__&&d.kG.warn(4,v);break}}}}void 0!==h&&(s=!1)}}),a)return this.merge(e,r),s&&(this instanceof t_?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,n){var i,r=this.lookup(e);if(r){var a=this.getFieldValue(r,"__typename"),s=t&&n?this.policies.getStoreFieldName({typename:a,fieldName:t,args:n}):t;return this.modify(e,s?((i={})[s]=tf,i):tf)}return!1},e.prototype.evict=function(e,t){var n=!1;return e.id&&(e9.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof t_&&this!==t&&(n=this.parent.evict(e,t)||n),(e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||"__exists")),n},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),n=[];return this.getRootIdSet().forEach(function(t){e9.call(e.policies.rootTypenamesById,t)||n.push(t)}),n.length&&(t.__META={extraRootIds:n.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(n){e&&e9.call(e,n)||t.delete(n)}),e){var n=e.__META,i=(0,c._T)(e,["__META"]);
280Object.keys(i).forEach(function(e){t.merge(e,i[e])}),n&&n.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof t_?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach(function(i){e9.call(n,i)&&(Object.keys(e.findChildRefIds(i)).forEach(t.add,t),delete n[i])});var i=Object.keys(n);if(i.length){for(var r=this;r instanceof t_;)r=r.parent;i.forEach(function(e){return r.delete(e)})}return i},e.prototype.findChildRefIds=function(e){if(!e9.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return t;var i=new Set([n]);i.forEach(function(e){(0,eL.Yk)(e)&&(t[e.__ref]=!0),(0,N.s)(e)&&Object.keys(e).forEach(function(t){var n=e[t];(0,N.s)(n)&&i.add(n)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),tg=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?(0,eB.dP)():null,this.keyMaker=new e5.B(x.mr)}
280,e.prototype.depend=function(e,t){if(this.d){this.d(tv(e,t));var n=to(t);n!==t&&this.d(tv(e,n)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(tv(e,t),"__exists"===t?"forget":"setDirty")},e}();function tv(e,t){return t+"#"+e}function ty(e,t){tC(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var n=t.policies,i=t.resultCaching,r=void 0===i||i,a=t.seed,s=e.call(this,n,new tg(r))||this;return s.stump=new tb(s),s.storageTrie=new e5.B(x.mr),a&&s.replace(a),s}return(0,c.ZT)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e);e.Root=t}(tm||(tm={}));var t_=function(e){function t(t,n,i,r){var a=e.call(this,n.policies,r)||this;return a.id=t,a.parent=n,a.replay=i,a.group=r,i(a),a}return(0,c.ZT)(t,e),t.prototype.addLayer=function(e,n){return new t(e,this,n,this.group)},t.prototype.removeLayer=function(e){var t=this,n=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var i=t.data[e],r=n.lookup(e);
280r?i?i!==r&&Object.keys(i).forEach(function(n){(0,eH.D)(i[n],r[n])||t.group.dirty(e,n)}):(t.group.dirty(e,"__exists"),Object.keys(r).forEach(function(n){t.group.dirty(e,n)})):t.delete(e)}),n):n===this.parent?this:n.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,c.pi)((0,c.pi)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return e9.call(this.data,t)?(0,c.pi)((0,c.pi)({},n),e.prototype.findChildRefIds.call(this,t)):n},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(tm),tb=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new tg(t.group.caching,t.group))||this}return(0,c.ZT)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(e,t){return this.parent.merge(e,t)},t}(t_);function tx(e,t,n){var i=e[n],r=t[n];return(0,eH.D)(i,r)?i:r}function tC(e){return!!(e instanceof tm&&e.group.caching)}function tE(e){return(0,N.s)(e)?(0,F.k)(e)?e.slice(0):(0,c.pi)({__proto__:Object.getPrototypeOf(e)},e):e}var tw=function(){function e(){this.known=new(x.sy?WeakSet:Set),this.pool=new e5.B(x.mr),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return(0,N.s)(e)&&this.known.has(e)},e.prototype.pass=function(e){if((0,N.s)(e)){var t=tE(e);return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if((0,N.s)(e)){var n=this.passes.get(e);if(n)return n;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))break;var i=e.map(this.admit,this),r=this.pool.lookupArray(i);return r.array||(this.known.add(r.array=i),!1!==globalThis.__DEV__&&Object.freeze(i)),r.array;case null:case Object.prototype:if(this.known.has(e))break;var a=Object.getPrototypeOf(e),s=[a],o=this.sortedKeys(e);s.push(o.json);var l=s.length;o.sorted.forEach(function(n){s.push(t.admit(e[n]))});var r=this.pool.lookupArray(s);if(!r.object){var u=r.object=Object.create(a);this.known.add(u),o.sorted.forEach(function(e,t){u[e]=s[l+t]}),!1!==globalThis.__DEV__&&Object.freeze(u)}return r.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),n=this.pool.lookupArray(t);if(!n.keys){t.sort();var i=JSON.stringify(t);(n.keys=this.keysByJSON.get(i))||this.keysByJSON.set(i,n.keys={sorted:t,json:i})}return n.keys},e}();function tT(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var tS=function(){function e(e){var t=this;this.knownResults=new(x.mr?WeakMap:Map),this.config=(0,e7.o)(e,{addTypename:!1!==e.addTypename,canonizeResults:tr(e)}),this.canon=e.canon||new tw,this.executeSelectionSet=(0,eB.re)(function(e){var n,i=e.context.canonizeResults,r=tT(e);r[3]=!i;var a=(n=t.executeSelectionSet).peek.apply(n,r);return a?i?(0,c.pi)((0,c.pi)({},a),{result:t.canon.admit(a.result)}):a:(ty(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize||em.Q["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:tT,makeCacheKey:function(e,t,n,i){if(tC(n.store))return n.store.makeCacheKey(e,(0,eL.Yk)(t)?t.__ref:t,n.varString,i)}}),this.executeSubSelectedArray=(0,eB.re)(function(e){return ty(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize||em.Q["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(e){var t=e.field,n=e.array,i=e.context;if(tC(i.store))return i.store.makeCacheKey(t,n,i.varString)}})}return e.prototype.resetCanon=function(){this.canon=new tw},e.prototype.diffQueryAgainstStore=function(e){var t,n=e.store,i=e.query,r=e.rootId,a=void 0===r?"ROOT_QUERY":r,s=e.variables,o=e.returnPartialData,l=void 0===o||o,u=e.canonizeResults,d=void 0===u?this.config.canonizeResults:u,h=this.config.cache.policies;s=(0,c.pi)((0,c.pi)({},(0,eS.O4)((0,eS.iW)(i))),s);var f=(0,eL.kQ)(a),p=this.executeSelectionSet({selectionSet:(0,eS.p$)(i).selectionSet,objectOrReference:f,enclosingRef:f,context:(0,c.pi)({store:n,query:i,policies:h,variables:s,varString:(0,e8.B)(s),canonizeResults:d},td(i,this.config.fragments))});if(p.missing&&(t=[new e3(tL(p.missing),p.missing,i,s)],!l))throw t[0];return{result:p.result,complete:!t,missing:t}},e.prototype.isFresh=function(e,t,n,i){if(tC(i.store)&&this.knownResults.get(e)===n){var r=this.executeSelectionSet.peek(n,t,i,this.canon.isKnown(e));if(r&&e===r.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t,n=this,i=e.selectionSet,r=e.objectOrReference,a=e.enclosingRef,s=e.context;if((0,eL.Yk)(r)&&!s.policies.rootTypenamesById[r.__ref]&&!s.store.has(r.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(r.__ref," object")};var o=s.variables,l=s.policies,u=s.store.getFieldValue(r,"__typename"),c=[],h=new B;function f(e,n){var i;return e.missing&&(t=h.merge(t,((i={})[n]=e.missing,i))),e.result}this.config.addTypename&&"string"==typeof u&&!l.rootIdsByTypename[u]&&c.push({__typename:u});var p=new Set(i.selections);p.forEach(function(e){var i,m;if((0,v.LZ)(e,o)){if((0,eL.My)(e)){var g=l.readField({fieldName:e.n
280ame.value,field:e,variables:s.variables,from:r},s),y=(0,eL.u2)(e);void 0===g?eN.added(e)||(t=h.merge(t,((i={})[y]="Can't find field '".concat(e.name.value,"' on ").concat((0,eL.Yk)(r)?r.__ref+" object":"object "+JSON.stringify(r,null,2)),i))):(0,F.k)(g)?g.length>0&&(g=f(n.executeSubSelectedArray({field:e,array:g,enclosingRef:a,context:s}),y)):e.selectionSet?null!=g&&(g=f(n.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:g,enclosingRef:(0,eL.Yk)(g)?g:a,context:s}),y)):s.canonizeResults&&(g=n.canon.pass(g)),void 0!==g&&c.push(((m={})[y]=g,m))}else{var _=(0,eP.hi)(e,s.lookupFragment);if(!_&&e.kind===eT.h.FRAGMENT_SPREAD)throw(0,d._K)(10,e.name.value);_&&l.fragmentMatches(_,u)&&_.selectionSet.selections.forEach(p.add,p)}}});var m={result:U(c),missing:t},g=s.canonizeResults?this.canon.admit(m):(0,eK.J)(m);return g.result&&this.knownResults.set(g.result,i),g},e.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,i=e.field,r=e.array,a=e.enclosingRef,s=e.context,o=new B;function l(e,n){var i;return e.missing&&(t=o.merge(t,((i={})[n]=e.missing,i))),e.result}return i.selectionSet&&(r=r.filter(s.store.canRead)),r=r.map(function(e,t){return null===e?null:(0,F.k)(e)?l(n.executeSubSelectedArray({field:i,array:e,enclosingRef:a,context:s}),t):i.selectionSet?l(n.executeSelectionSet({selectionSet:i.selectionSet,objectOrReference:e,enclosingRef:(0,eL.Yk)(e)?e:a,context:s}),t):(!1!==globalThis.__DEV__&&tP(s.store,i,e),e)}),{result:s.canonizeResults?this.canon.admit(r):r,missing:t}},e}();function tL(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(e){return e}}function tP(e,t,n){if(!t.selectionSet){var i=new Set([n]);i.forEach(function(n){(0,N.s)(n)&&((0,d.kG)(!(0,eL.Yk)(n),11,ta(e,n),t.name.value),Object.values(n).forEach(i.add,i))})}}var tM=n(79487),tA=n(13887),tI=new eB.g7,tR=new WeakMap;function tk(e){var t=tR.get(e);return t||tR.set(e,t={vars:new Set,dep:(0,eB.dP)()}),t}function tD(e){tk(e).vars.forEach(function(t){return t.forgetCache(e)})}function tN(e){tk(e).vars.forEach(function(t){return t.attachCache(e)})}function tF(e){var t=new Set,n=new Set,i=function(a){if(arguments.length>0){if(e!==a){e=a,t.forEach(function(e){tk(e).dep.dirty(i),tO(e)});var s=Array.from(n);n.clear(),s.forEach(function(t){return t(e)})}}else{var o=tI.getValue();o&&(r(o),tk(o).dep(i))}return e};i.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var r=i.attachCache=function(e){return t.add(e),tk(e).vars.add(i),i};return i.forgetCache=function(e){return t.delete(e)},i}function tO(e){e.broadcastWatches&&e.broadcastWatches()}var tj=Object.create(null);function tU(e){var t=JSON.stringify(e);return tj[t]||(tj[t]=Object.create(null))}function tV(e){var t=tU(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,n){var i=function(e,t){return n.readField(t,e)},r=n.keyObject=tH(e,function(e){var r=tq(n.storeObject,e,i);return void 0===r&&t!==n.storeObject&&e9.call(t,e[0])&&(r=tq(t,e,tz)),(0,d.kG)(void 0!==r,5,e.join("."),t),r});return"".concat(n.typename,":").concat(JSON.stringify(r))})}function tB(e){var t=tU(e);return t.keyArgsFn||(t.keyArgsFn=function(t,n){var i=n.field,r=n.variables,a=n.fieldName,s=JSON.stringify(tH(e,function(e){var n=e[0],a=n.charAt(0);if("@"===a){if(i&&(0,F.O)(i.directives)){var s=n.slice(1),o=i.directives.find(function(e){return e.name.value===s}),l=o&&(0,eL.NC)(o,r);return l&&tq(l,e.slice(1))}return}if("$"===a){var u=n.slice(1);if(r&&e9.call(r,u)){var c=e.slice(0);return c[0]=u,tq(r,c)}return}if(t)return tq(t,e)}));return(t||"{}"!==s)&&(a+=":"+s),a})}function tH(e,t){var n=new B;return tG(e).reduce(function(e,i){var r,a=t(i);if(void 0!==a){for(var s=i.length-1;s>=0;--s)(r={})[i[s]]=a,a=r;e=n.merge(e,a)}return e},Object.create(null))}function tG(e){var t=tU(e);if(!t.paths){var n=t.paths=[],i=[];e.forEach(function(t,r){(0,F.k)(t)?(tG(t).forEach(function(e){return n.push(i.concat(e))}),i.length=0):(i.push(t),(0,F.k)(e[r+1])||(n.push(i.slice(0)),i.length=0))})}return t.paths}function tz(e,t){return e[t]}function tq(e,t,n){return n=n||tz,tW(t.reduce(function e(t,i){return(0,F.k)(t)?t.map(function(t){return e(t,i)}):t&&n(t,i)},e))}function tW(e){return(0,N.s)(e)?(0,F.k)(e)?e.map(tW):tH(Object.keys(e).sort(),function(t){return tq(e,t)}):e}
280function t$(e){return void 0!==e.args?e.args:e.field?(0,eL.NC)(e.field,e.variables):null}var tZ=function(){},tY=function(e,t){return t.fieldName},tK=function(e,t,n){return(0,n.mergeObjects)(e,t)},tX=function(e,t){return t},tQ=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,c.pi)({dataIdFromObject:tt},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var n,i,r=this,a=t&&(t.typename||(null===(n=t.storeObject)||void 0===n?void 0:n.__typename))||e.__typename;if(a===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];var s=t&&t.storeObject||e,o=(0,c.pi)((0,c.pi)({},t),{typename:a,storeObject:s,readField:t&&t.readField||function(){var e=t0(arguments,s);return r.readField(e,{store:r.cache.data,variables:e.variables})}}),l=a&&this.getTypePolicy(a),u=l&&l.keyFn||this.config.dataIdFromObject;return e$.withValue(!0,function(){for(;u;){var t=u((0,c.pi)((0,c.pi)({},e),s),o);if((0,F.k)(t))u=tV(t);else{i=t;break}}}),i=i?String(i):void 0,o.keyObject?[i,o.keyObject]:[i]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(n){var i=e[n],r=i.queryType,a=i.mutationType,s=i.subscriptionType,o=(0,c._T)(i,["queryType","mutationType","subscriptionType"]);r&&t.setRootTypename("Query",n),a&&t.setRootTypename("Mutation",n),s&&t.setRootTypename("Subscription",n),e9.call(t.toBeAdded,n)?t.toBeAdded[n].push(o):t.toBeAdded[n]=[o]})},e.prototype.updateTypePolicy=function(e,t){var n=this,i=this.getTypePolicy(e),r=t.keyFields,a=t.fields;function s(e,t){e.merge="function"==typeof t?t:!0===t?tK:!1===t?tX:e.merge}s(i,t.merge),i.keyFn=!1===r?tZ:(0,F.k)(r)?tV(r):"function"==typeof r?r:i.keyFn,a&&Object.keys(a).forEach(function(t){var i=n.getFieldPolicy(e,t,!0),r=a[t];if("function"==typeof r)i.read=r;else{var o=r.keyArgs,l=r.read,u=r.merge;i.keyFn=!1===o?tY:(0,F.k)(o)?tB(o):"function"==typeof o?o:i.keyFn,"function"==typeof l&&(i.read=l),s(i,u)}i.read&&i.merge&&(i.keyFn=i.keyFn||tY)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),i=this.rootTypenamesById[n];t!==i&&((0,d.kG)(!i||i===e,6,e),i&&delete this.rootIdsByTypename[i],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(n){t.getSupertypeSet(n,!0),e[n].forEach(function(e){t.getSupertypeSet(e,!0).add(n);var i=e.match(ts);i&&i[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!e9.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var i=this.supertypeMap.get(e);!i&&this.fuzzySubtypes.size&&(i=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(function(n,r){if(n.test(e)){var a=t.supertypeMap.get(r);a&&a.forEach(function(e){return i.add(e)})}})),i&&i.size&&i.forEach(function(e){var i=t.getTypePolicy(e),r=i.fields;Object.assign(n,(0,c._T)(i,["fields"])),Object.assign(n.fields,r)})}var r=this.toBeAdded[e];return r&&r.length&&r.splice(0).forEach(function(n){t.updateTypePolicy(e,n)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,n){if(e){var i=this.getTypePolicy(e).fields;return i[t]||n&&(i[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},e.prototype.fragmentMatches=function(e,t,n,i){var r=this;if(!e.typeCondition)return!0;if(!t)return!1;var a=e.typeCondition.name.value;if(t===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var s=this.getSupertypeSet(t,!0),o=[s],l=function(e){var t=r.getSupertypeSet(e,!1);t&&t.size&&0>o.indexOf(t)&&o.push(t)},u=!!(n&&this.fuzzySubtypes.size),c=!1,h=0;h<o.length;++h){var f=o[h];if(f.has(a))return s.has(a)||(c&&!1!==globalThis.__DEV__&&d.kG.warn(7,t,a),s.add(a)),!0;f.forEach(l),u&&h===o.length-1&&tl(e.selectionSet,n,i)&&(u=!1,c=!0,this.fuzzySubtypes.forEac
280h(function(e,n){var i=t.match(e);i&&i[0]===t&&l(n)}))}return!1},e.prototype.hasKeyArgs=function(e,t){var n=this.getFieldPolicy(e,t,!1);return!!(n&&n.keyFn)},e.prototype.getStoreFieldName=function(e){var t,n=e.typename,i=e.fieldName,r=this.getFieldPolicy(n,i,!1),a=r&&r.keyFn;if(a&&n)for(var s={typename:n,fieldName:i,field:e.field||null,variables:e.variables},o=t$(e);a;){var l=a(o,s);if((0,F.k)(l))a=tB(l);else{t=l||i;break}}return(void 0===t&&(t=e.field?(0,eL.vf)(e.field,e.variables):(0,eL.PT)(i,t$(e))),!1===t)?i:i===to(t)?t:i+":"+t},e.prototype.readField=function(e,t){var n=e.from;if(n&&(e.field||e.fieldName)){if(void 0===e.typename){var i=t.store.getFieldValue(n,"__typename");i&&(e.typename=i)}var r=this.getStoreFieldName(e),a=to(r),s=t.store.getFieldValue(n,r),o=this.getFieldPolicy(e.typename,a,!1),l=o&&o.read;if(l){var u=tJ(this,n,e,t,t.store.getStorage((0,eL.Yk)(n)?n.__ref:n,r));return tI.withValue(this.cache,l,[s,u])}return s}},e.prototype.getReadFunction=function(e,t){var n=this.getFieldPolicy(e,t,!1);return n&&n.read},e.prototype.getMergeFunction=function(e,t,n){var i=this.getFieldPolicy(e,t,!1),r=i&&i.merge;return!r&&n&&(r=(i=this.getTypePolicy(n))&&i.merge),r},e.prototype.runMergeFunction=function(e,t,n,i,r){var a=n.field,s=n.typename,o=n.merge;return o===tK?t1(i.store)(e,t):o===tX?t:(i.overwrite&&(e=void 0),o(e,t,tJ(this,void 0,{typename:s,fieldName:a.name.value,field:a,variables:i.variables},i,r||Object.create(null))))},e}();function tJ(e,t,n,i,r){var a=e.getStoreFieldName(n),s=to(a),o=n.variables||i.variables,l=i.store,u=l.toReference,c=l.canRead;return{args:t$(n),field:n.field||null,fieldName:s,storeFieldName:a,variables:o,isReference:eL.Yk,toReference:u,storage:r,cache:e.cache,canRead:c,readField:function(){return e.readField(t0(arguments,t,o),i)},mergeObjects:t1(i.store)}}function t0(e,t,n){var i,r=e[0],a=e[1],s=e.length;return"string"==typeof r?i={fieldName:r,from:s>1?a:t}:(i=(0,c.pi)({},r),e9.call(i,"from")||(i.from=t)),!1!==globalThis.__DEV__&&void 0===i.from&&!1!==globalThis.__DEV__&&d.kG.warn(8,(0,tA.v)(Array.from(e))),void 0===i.variables&&(i.variables=n),i}function t1(e){return function(t,n){if((0,F.k)(t)||(0,F.k)(n))throw(0,d._K)(9);if((0,N.s)(t)&&(0,N.s)(n)){var i=e.getFieldValue(t,"__typename"),r=e.getFieldValue(n,"__typename");if(i&&r&&i!==r)return n;if((0,eL.Yk)(t)&&tu(n))return e.merge(t.__ref,n),t;if(tu(t)&&(0,eL.Yk)(n))return e.merge(t,n.__ref),n;if(tu(t)&&tu(n))return(0,c.pi)((0,c.pi)({},t),n)}return n}}function t2(e,t,n){var i="".concat(t).concat(n),r=e.flavors.get(i);return r||e.flavors.set(i,r=e.clientOnly===t&&e.deferred===n?e:(0,c.pi)((0,c.pi)({},e),{clientOnly:t,deferred:n})),r}var t3=function(){function e(e,t,n){this.cache=e,this.reader=t,this.fragments=n}return e.prototype.writeToStore=function(e,t){var n=this,i=t.query,r=t.result,a=t.dataId,s=t.variables,o=t.overwrite,l=(0,eS.$H)(i),u=tc();s=(0,c.pi)((0,c.pi)({},(0,eS.O4)(l)),s);var h=(0,c.pi)((0,c.pi)({store:e,written:Object.create(null),merge:function(e,t){return u.merge(e,t)},variables:s,varString:(0,e8.B)(s)},td(i,this.fragments)),{overwrite:!!o,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),f=this.processSelectionSet({result:r||Object.create(null),dataId:a,selectionSet:l.selectionSet,mergeTree:{map:new Map},context:h});if(!(0,eL.Yk)(f))throw(0,d._K)(12,r);return h.incomingById.forEach(function(t,i){var r=t.storeObject,a=t.mergeTree,s=t.fieldNodeSet,o=(0,eL.kQ)(i);if(a&&a.map.size){var l=n.applyMerges(a,o,r,h);if((0,eL.Yk)(l))return;r=l}if(!1!==globalThis.__DEV__&&!h.overwrite){var u=Object.create(null);s.forEach(function(e){e.selectionSet&&(u[e.name.value]=!0)});var c=function(e){return!0===u[to(e)]},d=function(e){var t=a&&a.map.get(e);return!!(t&&t.info&&t.info.merge)};Object.keys(r).forEach(function(e){c(e)&&!d(e)&&ne(o,r,e,h.store)})}e.merge(i,r)}),e.retain(f.__ref),f},e.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,i=e.result,r=e.selectionSet,a=e.context,s=e.mergeTree,o=this.cache.policies,l=Object.create(null),u=n&&o.rootTypenamesById[n]||(0,eL.qw)(i,r,a.fragmentMap)||n&&a.store.get(n,"__typename");"string"==typeof u&&(l.__typename=u);var h=function(){var e=t0(arguments,l,a.variables);if((0,eL.Yk)(e.from)){var t=a.incomingById.get(e.from.__ref);
280if(t){var n=o.readField((0,c.pi)((0,c.pi)({},e),{from:t.storeObject}),a);if(void 0!==n)return n}}return o.readField(e,a)},f=new Set;this.flattenFields(r,i,a,u).forEach(function(e,n){var r,a=i[(0,eL.u2)(n)];if(f.add(n),void 0!==a){var c=o.getStoreFieldName({typename:u,fieldName:n.name.value,field:n,variables:e.variables}),p=t4(s,c),m=t.processFieldValue(a,n,n.selectionSet?t2(e,!1,!1):e,p),g=void 0;n.selectionSet&&((0,eL.Yk)(m)||tu(m))&&(g=h("__typename",m));var v=o.getMergeFunction(u,n.name.value,g);v?p.info={field:n,typename:u,merge:v}:t7(s,c),l=e.merge(l,((r={})[c]=m,r))}else!1===globalThis.__DEV__||e.clientOnly||e.deferred||eN.added(n)||o.getReadFunction(u,n.name.value)||!1===globalThis.__DEV__||d.kG.error(13,(0,eL.u2)(n),i)});try{var p=o.identify(i,{typename:u,selectionSet:r,fragmentMap:a.fragmentMap,storeObject:l,readField:h}),m=p[0],g=p[1];n=n||m,g&&(l=a.merge(l,g))}catch(e){if(!n)throw e}if("string"==typeof n){var v=(0,eL.kQ)(n),y=a.written[n]||(a.written[n]=[]);if(y.indexOf(r)>=0||(y.push(r),this.reader&&this.reader.isFresh(i,v,r,a)))return v;var _=a.incomingById.get(n);return _?(_.storeObject=a.merge(_.storeObject,l),_.mergeTree=t6(_.mergeTree,s),f.forEach(function(e){return _.fieldNodeSet.add(e)})):a.incomingById.set(n,{storeObject:l,mergeTree:t8(s)?void 0:s,fieldNodeSet:f}),v}return l},e.prototype.processFieldValue=function(e,t,n,i){var r=this;return t.selectionSet&&null!==e?(0,F.k)(e)?e.map(function(e,a){var s=r.process
280FieldValue(e,t,n,t4(i,a));return t7(i,a),s}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:i}):!1!==globalThis.__DEV__?(0,tM.X)(e):e},e.prototype.flattenFields=function(e,t,n,i){void 0===i&&(i=(0,eL.qw)(t,e,n.fragmentMap));var r=new Map,a=this.cache.policies,s=new e5.B(!1);return function e(o,l){var u=s.lookup(o,l.clientOnly,l.deferred);u.visited||(u.visited=!0,o.selections.forEach(function(s){if((0,v.LZ)(s,n.variables)){var o=l.clientOnly,u=l.deferred;if(!(o&&u)&&(0,F.O)(s.directives)&&s.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(o=!0),"defer"===t){var i=(0,eL.NC)(e,n.variables);i&&!1===i.if||(u=!0)}}),(0,eL.My)(s)){var c=r.get(s);c&&(o=o&&c.clientOnly,u=u&&c.deferred),r.set(s,t2(n,o,u))}else{var h=(0,eP.hi)(s,n.lookupFragment);if(!h&&s.kind===eT.h.FRAGMENT_SPREAD)throw(0,d._K)(14,s.name.value);h&&a.fragmentMatches(h,i,t,n.variables)&&e(h.selectionSet,t2(n,o,u))}}}))}(e,n),r},e.prototype.applyMerges=function(e,t,n,i,r){var a=this;if(e.map.size&&!(0,eL.Yk)(n)){var s,o,l=!(0,F.k)(n)&&((0,eL.Yk)(t)||tu(t))?t:void 0,u=n;l&&!r&&(r=[(0,eL.Yk)(l)?l.__ref:l]);var h=function(e,t){return(0,F.k)(e)?"number"==typeof t?e[t]:void 0:i.store.getFieldValue(e,String(t))};e.map.forEach(function(e,t){var n=h(l,t),s=h(u,t);if(void 0!==s){r&&r.push(t);var c=a.applyMerges(e,n,s,i,r);c!==s&&(o=o||new Map).set(t,c),r&&(0,d.kG)(r.pop()===t)}}),o&&(n=(0,F.k)(u)?u.slice(0):(0,c.pi)({},u),o.forEach(function(e,t){n[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,i,r&&(s=i.store).getStorage.apply(s,r)):n},e}(),t5=[];function t4(e,t){var n=e.map;return n.has(t)||n.set(t,t5.pop()||{map:new Map}),n.get(t)}function t6(e,t){if(e===t||!t||t8(t))return e;if(!e||t8(e))return t;var n=e.info&&t.info?(0,c.pi)((0,c.pi)({},e.info),t.info):e.info||t.info,i=e.map.size&&t.map.size,r={info:n,map:i?new Map:e.map.size?e.map:t.map};if(i){var a=new Set(t.map.keys());e.map.forEach(function(e,n){r.map.set(n,t6(e,t.map.get(n))),a.delete(n)}),a.forEach(function(n){r.map.set(n,t6(t.map.get(n),e.map.get(n)))})}return r}function t8(e){return!e||!(e.info||e.map.size)}function t7(e,t){var n=e.map,i=n.get(t);i&&t8(i)&&(t5.push(i),n.delete(t))}var t9=new Set;function ne(e,t,n,i){var r=function(e){var t=i.getFieldValue(e,n);return"object"==typeof t&&t},a=r(e);if(a){var s=r(t);if(!(!s||(0,eL.Yk)(a)||(0,eH.D)(a,s)||Object.keys(a).every(function(e){return void 0!==i.getFieldValue(s,e)}))){var o=i.getFieldValue(e,"__typename")||i.getFieldValue(t,"__typename"),l=to(n),u="".concat(o,".").concat(l);if(!t9.has(u)){t9.add(u);var h=[];
280(0,F.k)(a)||(0,F.k)(s)||[a,s].forEach(function(e){var t=i.getFieldValue(e,"__typename");"string"!=typeof t||h.includes(t)||h.push(t)}),!1!==globalThis.__DEV__&&d.kG.warn(15,l,o,h.length?"either ensure all objects of type "+h.join(" and ")+" have an ID or a custom merge function, or ":"",u,(0,c.pi)({},a),(0,c.pi)({},s))}}}}var nt=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;return n.watches=new Set,n.addTypenameTransform=new e6(eN),n.assumeImmutableResults=!0,n.makeVar=tF,n.txCount=0,n.config=ti(t),n.addTypename=!!n.config.addTypename,n.policies=new tQ({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return(0,c.ZT)(t,e),t.prototype.init=function(){var e=this.data=new tm.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,n=this.storeReader,i=this.config.fragments;this.storeWriter=new t3(this,this.storeReader=new tS({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:tr(this.config),canon:e?void 0:n&&n.canon,fragments:i}),i),this.maybeBroadcastWatch=(0,eB.re)(function(e,n){return t.broadcastWatch(e,n)},{max:this.config.resultCacheMaxSize||em.Q["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if(tC(n)){var i=e.optimistic,r=e.id,a=e.variables;return n.makeCacheKey(e.query,e.callback,(0,e8.B)({optimistic:i,id:r,variables:a}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData,n=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore((0,c.pi)((0,c.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:n})).result||null}catch(e){if(e instanceof e3)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(e9.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore((0,c.pi)((0,c.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||tN(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&tD(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){e8.B.reset(),ev.reset(),this.addTypenameTransform.resetCache(),null===(t=this.config.fragments)||void 0===t||t.resetCaches();var t,n=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),n},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if((0,eL.Yk)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){!1!==globalThis.__DEV__&&d.kG.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(e9.call(e,"id"))return!1;e=(0,c.pi)((0,c.pi)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),e8.B.reset(),e&&e.discardWatches?(this.watches.forEach(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),tD(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,n=this,i=e.update,r=e.optimistic,a=void 0===r||r,s=e.removeOptimistic,o=e.onWatchUpdated,l=function(e){var r=n,a=r.data,s=r.optimisticData;++n.txCount,e&&(n.data=n.optimisticData=e);try{return t=i(n)}finally{--n.txCount,n.data=a,n.optimisticData=s}},u=new Set;return o&&!this.txCount&&this.broadcastWatches((0,c.pi)((0,c.pi)({},e),{onWatchUpdated:function(e){return u.add(e),!1}})),"string"==typeof a?this.optimisticData=this.optimisticData.addLayer(a,l):!1===a?l(this.data):l(),"string"==typeof s&&(this.optimisticData=this.optimisticData.removeLayer(s)),o&&u.size?(this.broadcastWatches((0,c.pi)((0,c.pi)({},e),{onWatchUpdated:function(e,t){var n=o.call(this,e,t);return!1!==n&&u.delete(e),n}})),u.size&&u.forEach(function(e){return n.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.fragmentMatches=function(e,t){return this.policies.fragmentMatches(e,t)},t.prototype.lookupFragment=function(e){var t;return(null===(t=this.config.fragments)||void 0===t?void 0:t.lookup(e))||null},t.prototype.broadcastWatches=function(e){var t=this;
280this.txCount||this.watches.forEach(function(n){return t.maybeBroadcastWatch(n,e)})},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var n=e.lastDiff,i=this.diff(e);(!t||(e.optimistic&&"string"==typeof t.optimistic&&(i.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,i,n)))&&(n&&(0,eH.D)(n.result,i.result)||e.callback(e.lastDiff=i,n))},t}(e2);!1!==globalThis.__DEV__&&(nt.prototype.getMemoryInternals=eg.q4);var nn=g.i.execute,ni=n(49379),nr=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,eV(t).request)||this;return n.options=t,n}return(0,c.ZT)(t,e),t}(g.i);function na(e,t,n){return new y.y(function(i){var r={then:function(e){return new Promise(function(t){return t(e())})}};function a(e,t){return function(n){if(e){var a=function(){return i.closed?0:e(n)};r=r.then(a,a).then(function(e){return i.next(e)},function(e){return i.error(e)})}else i[t](n)}}var s={next:a(t,"next"),error:a(n,"error"),complete:function(){r.then(function(){return i.complete()})}},o=e.subscribe(s);return function(){return o.unsubscribe()}})}function ns(e){var t=no(e);return(0,F.O)(t)}function no(e){var t=(0,F.O)(e.errors)?e.errors.slice(0):[];return H(e)&&(0,F.O)(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}var nl=n(60897),nu=n(18263),nc=n(86403);function nd(e){return e&&"function"==typeof e.then}var nh=function(e){function t(t){var n=e.call(this,function(e){return n.addObserver(e),function(){return n.removeObserver(e)}})||this;return n.observers=new Set,n.promise=new Promise(function(e,t){n.resolve=e,n.reject=t}),n.handlers={next:function(e){null!==n.sub&&(n.latest=["next",e],n.notify("next",e),(0,nu.p)(n.observers,"next",e))},error:function(e){var t=n.sub;null!==t&&(t&&setTimeout(function(){return t.unsubscribe()}),n.sub=null,n.latest=["error",e],n.reject(e),n.notify("error",e),(0,nu.p)(n.observers,"error",e))},complete:function(){var e=n,t=e.sub,i=e.sources,r=void 0===i?[]:i;if(null!==t){var a=r.shift();a?nd(a)?a.then(function(e){return n.sub=e.subscribe(n.handlers)},n.handlers.error):n.sub=a.subscribe(n.handlers):(t&&setTimeout(function(){return t.unsubscribe()}),n.sub=null,n.latest&&"next"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),n.notify("complete"),(0,nu.p)(n.observers,"complete"))}}},n.nextResultListeners=new Set,n.cancel=function(e){n.reject(e),n.sources=[],n.handlers.error(e)},n.promise.catch(function(e){}),"function"==typeof t&&(t=[new y.y(t)]),nd(t)?t.then(function(e){return n.start(e)},n.handlers.error):n.start(t),n}return(0,c.ZT)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],n=e[t];n&&n.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var n=this.nextResultListeners;n.size&&(this.nextResultListeners=new Set,n.forEach(function(n){return n(e,t)}))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add(function(n,i){t||(t=!0,e(n,i))})},t}(y.y);(0,nc.D)(nh);var nf=n(22599),np=n(1644),nm=new(x.mr?WeakMap:Map);function ng(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return nm.set(e,(nm.get(e)+1)%1e15),n.apply(this,arguments)})}var nv=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.document=null,this.lastRequestId=1,this.stopped=!1,this.observableQuery=null;var n=this.cache=e.cache;nm.has(n)||(nm.set(n,0),ng(n,"evict"),ng(n,"modify"),ng(n,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||np.Ie.loading;return this.variables&&this.networkStatus!==np.Ie.loading&&!(0,eH.D)(this.variables,e.variables)&&(t=np.Ie.setVariables),(0,eH.D)(e.variables,this.variables)||(this.lastDiff=void 0,this.cancel()),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&(0,eH.D)(e,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var t=this.observableQuery;if(t&&"no-cache"===t.options.fetchPolicy)return{complete:!1};var n=this.cache.diff(e);return this.updateLastDiff(n,e),n},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t,n,i=this.lastDiff&&this.lastDiff.diff;!(e&&!e.complete&&(null===(t=this.observableQuery)||void 0===t?void 0:t.getLastError()))&&(this.updateLastDiff(e),(0,eH.D)(i&&i.result,e&&e.result)||null===(n=this.observableQuery)||void 0===n||n.scheduleNotify())},e.prototype.setObservableQuery=function(e){e!==this.observableQuery&&(this.observableQuery=e,e&&(e.queryInfo=this))},e.prototype.stop=function(){var e;if(!this.stopped){this.stopped=!0,null===(e=this.observableQuery)||void 0===e||e.resetNotifications(),this.cancel();var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){var e;null===(e=this.cancelWatch)||void 0===e||e.call(this),this.cancelWatch=void 0},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var n=this.observableQuery;if(!n||"no-cache"!==n.options.fetchPolicy){var i=(0,c.pi)((0,c.pi)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});
280this.lastWatch&&(0,eH.D)(i,this.lastWatch)||(this.cancel(),this.cancelWatch=this.cache.watch(this.lastWatch=i))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===nm.get(this.cache)&&(0,eH.D)(t,n.variables)&&(0,eH.D)(e.data,n.result.data))},e.prototype.markResult=function(e,t,n,i){var r,a=this,s=new B,o=(0,F.O)(e.errors)?e.errors.slice(0):[];if(null===(r=this.observableQuery)||void 0===r||r.resetNotifications(),"incremental"in e&&(0,F.O)(e.incremental)){var l=W(this.getDiff().result,e);e.data=l}else if("hasNext"in e&&e.hasNext){var u=this.getDiff();e.data=s.merge(u.result,e.data)}this.graphQLErrors=o,"no-cache"===n.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(n.variables)):0!==i&&(ny(e,n.errorPolicy)?this.cache.performTransaction(function(r){if(a.shouldWrite(e,n.variables))r.writeQuery({query:t,data:e.data,variables:n.variables,overwrite:1===i}),a.lastWrite={result:e,variables:n.variables,dmCount:nm.get(a.cache)};else if(a.lastDiff&&a.lastDiff.diff.complete){e.data=a.lastDiff.diff.result;return}var s=a.getDiffOptions(n.variables),o=r.diff(s);!a.stopped&&(0,eH.D)(a.variables,n.variables)&&a.updateWatch(n.variables),a.updateLastDiff(o,s),o.complete&&(e.data=o.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=np.Ie.ready},e.prototype.markError=function(e){var t;return this.networkStatus=np.Ie.error,this.lastWrite=void 0,null===(t=this.observableQuery)||void 0===t||t.resetNotifications(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function ny(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,i=!ns(e);return!i&&n&&e.data&&(i=!0),i}function n_(e,t,n){if(!n.fragmentMatches)return!1!==globalThis.__DEV__&&eY(),e;var i,r=(0,eS.$H)(t);return((0,d.kG)(r,51),null==e)?e:eX(e,r.selectionSet,{operationType:r.operation,operationName:null===(i=r.name)||void 0===i?void 0:i.value,fragmentMap:(0,eP.F)((0,eS.kU)(t)),cache:n,mutableTargets:new eq,knownChanged:new eW})}var nb=Object.prototype.hasOwnProperty,nx=Object.create(null),nC=function(){function e(e){var t=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new ep.s(em.Q["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new e5.B(!1),this.noCacheWarningsByQueryId=new Set;var n=new e6(function(e){return t.cache.transformDocument(e)},{cache:!1});this.cache=e.cache,this.link=e.link,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientAwareness=e.clientAwareness,this.localState=e.localState,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking;var i=e.documentTransform;this.documentTransform=i?n.concat(i).concat(n):n,this.defaultContext=e.defaultContext||Object.create(null),(this.onBroadcast=e.onBroadcast)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach(function(t,n){e.stopQueryNoBroadcast(n)}),this.cancelPendingFetches((0,d._K)(27))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){return(0,c.mG)(this,arguments,void 0,function(e){var t,n,i,r,a,s,o,l=e.mutation,u=e.variables,h=e.optimisticResponse,f=e.updateQueries,p=e.refetchQueries,m=void 0===p?[]:p,g=e.awaitRefetchQueries,v=void 0!==g&&g,y=e.update,_=e.onQueryUpdated,b=e.fetchPolicy,x=void 0===b?(null===(s=this.defaultOptions.mutate)||void 0===s?void 0:s.fetchPolicy)||"network-only":b,C=e.errorPolicy,E=void 0===C?(null===(o=this.defaultOptions.mutate)||void 0===o?void 0:o.errorPolicy)||"none":C,w=e.keepRootFields,T=e.context;return(0,c.Jh)(this,function(e){switch(e.label){case 0:if((0,d.kG)(l,28),(0,d.kG)("network-only"===x||"no-cache"===x,29),t=this.generateMutationId(),l=this.cache.transformForLink(this.transform(l)),n=this.getDocumentInfo(l).hasClientExports,u=this.getVariables(l,u),!n)return[3,2];return[4,this.localState.addExportedVariables(l,u,T)];case 1:u=e.sent(),e.label=2;case 2:return i=this.mutationStore&&(this.mutationStore[t]={mutation:l,variables:u,loading:!0,error:null}),r=h&&this.markMutationOptimistic(h,{mutationId:t,document:l,variables:u,fetchPolicy:x,errorPolicy:E,context:T,updateQueries:f,update:y,keepRootFields:w}),this.broadcastQueries(),a=this,[2,new Promise(function(e,n){return na(a.getObservableFromLink(l,(0,c.pi)((0,c.pi)({},T),{optimisticResponse:r?h:void 0}),u,{},!1),function(e){if(ns(e)&&"none"===E)throw new D.cA({graphQLErrors:no(e)});i&&(i.loading=!1,i.error=null);var n=(0,c.pi)({},e);return"function"==typeof m&&(m=m(n)),"ignore"===E&&ns(n)&&delete n.errors,a.markMutationResult({mutationId:t,result:n,document:l,variables:u,fetchPolicy:x,errorPolicy:E,context:T,update:y,updateQueries:f,awaitRefetchQueries:v,refetchQueries:m,removeOptimistic:r?t:void 0,onQueryUpdated:_,keepRootFields:w})}).subscribe({next:function(n){a.broadcastQueries(),"hasNext"in n&&!1!==n.hasNext||e((0,c.pi)((0,c.pi)({},n),{data:a.maskOperation({document:l,data:n.data,fetchPolicy:x,id:t})}))},error:function(e){i&&(i.loading=!1,i.error=e),r&&a.cache.removeOptimistic(t),a.broadcastQueries(),n(e instanceof D.cA?e:new D.cA({networkError:e}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var n=this;void 0===t&&(t=this.cache);var i=e.result,r=[],a="no-cache"===e.fetchPolicy;if(!a&&ny(i,e.errorPolicy)){if(H(i)||r.push({result:i.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),H(i)&&(0,F.O)(i.incremental)){var s=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}
280),o=void 0;s.result&&(o=W(s.result,i)),void 0!==o&&(i.data=o,r.push({result:o,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var l=e.updateQueries;l&&this.queries.forEach(function(e,a){var s=e.observableQuery,o=s&&s.queryName;if(o&&nb.call(l,o)){var u=l[o],c=n.queries.get(a),d=c.document,h=c.variables,f=t.diff({query:d,variables:h,returnPartialData:!0,optimistic:!1}),p=f.result;if(f.complete&&p){var m=u(p,{mutationResult:i,queryName:d&&(0,eS.rY)(d)||void 0,queryVariables:h});m&&r.push({result:m,dataId:"ROOT_QUERY",query:d,variables:h})}}})}if(r.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var u=[];if(this.refetchQueries({updateCache:function(t){a||r.forEach(function(e){return t.write(e)});var s=e.update,o=!z(i)||H(i)&&!i.hasNext;if(s){if(!a){var l=t.diff({id:"ROOT_MUTATION",query:n.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});l.complete&&("incremental"in(i=(0,c.pi)((0,c.pi)({},i),{data:l.result}))&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}o&&s(t,i,{context:e.context,variables:e.variables})}a||e.keepRootFields||!o||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var n=t.fieldName,i=t.DELETE;return"__typename"===n?e:i}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(e){return u.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(u).then(function(){return i})}return Promise.resolve(i)},e.prototype.markMutationOptimistic=function(e,t){var n=this,i="function"==typeof e?e(t.variables,{IGNORE:nx}):e;return i!==nx&&(this.cache.recordOptimisticTransaction(function(e){try{n.markMutationResult((0,c.pi)((0,c.pi)({},t),{result:{data:i}}),e)}catch(e){!1!==globalThis.__DEV__&&d.kG.error(e)}},t.mutationId),!0)},e.prototype.fetchQuery=function(e,t,n){return this.fetchConcastWithInfo(this.getOrCreateQuery(e),t,n).concast.promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(t,n){e[n]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var n={hasClientExports:(0,v.mj)(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:(0,v.FS)(["nonreactive"],e),nonReactiveQuery:ej(e),clientQuery:this.localState.clientQuery(e),serverQuery:eD([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),defaultVars:(0,eS.O4)((0,eS.$H)(e)),asQuery:(0,c.pi)((0,c.pi)({},e),{definitions:e.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,c.pi)((0,c.pi)({},e),{operation:"query"}):e})})};t.set(e,n)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,c.pi)((0,c.pi)({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=(0,c.pi)((0,c.pi)({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var n=new nv(this),i=new nf.u({queryManager:this,queryInfo:n,options:e});return i.lastQuery=t,nf.u.inactiveOnCreation.getValue()||this.queries.set(i.queryId,n),n.init({document:t,observableQuery:i,variables:i.variables}),i},e.prototype.query=function(e,t){var n=this;void 0===t&&(t=this.generateQueryId()),(0,d.kG)(e.query,30),(0,d.kG)("Document"===e.query.kind,31),(0,d.kG)(!e.returnPartialData,32),(0,d.kG)(!e.pollInterval,33);var i=this.transform(e.query);return this.fetchQuery(t,(0,c.pi)((0,c.pi)({},e),{query:i})).then(function(r){return r&&(0,c.pi)((0,c.pi)({},r),{data:n.maskOperation({document:i,data:r.data,fetchPolicy:e.fetchPolicy,id:t})})}).finally(function(){return n.stopQuery(t)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}
280),this.cancelPendingFetches((0,d._K)(34)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=np.Ie.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var n=new Map,i=new Map,r=new Map,a=new Set;return Array.isArray(e)&&e.forEach(function(e){if("string"==typeof e)i.set(e,e),r.set(e,!1);else if((0,eL.JW)(e)){var n=ev(t.transform(e));i.set(n,(0,eS.rY)(e)),r.set(n,!1)}else(0,N.s)(e)&&e.query&&a.add(e)}),this.queries.forEach(function(t,i){var a=t.observableQuery,s=t.document;if(a){if("all"===e){n.set(i,a);return}var o=a.queryName;if("standby"===a.options.fetchPolicy||"active"===e&&!a.hasObservers())return;("active"===e||o&&r.has(o)||s&&r.has(ev(s)))&&(n.set(i,a),o&&r.set(o,!0),s&&r.set(ev(s),!0))}}),a.size&&a.forEach(function(e){var i=(0,nl.X)("legacyOneTimeQuery"),r=t.getOrCreateQuery(i).init({document:e.query,variables:e.variables}),a=new nf.u({queryManager:t,queryInfo:r,options:(0,c.pi)((0,c.pi)({},e),{fetchPolicy:"network-only"})});(0,d.kG)(a.queryId===i),r.setObservableQuery(a),n.set(i,a)}),!1!==globalThis.__DEV__&&r.size&&r.forEach(function(e,t){if(!e){var n=i.get(t);n?!1!==globalThis.__DEV__&&d.kG.warn(35,n):!1!==globalThis.__DEV__&&d.kG.warn(36)}}),n},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach(function(i,r){var a=i.options.fetchPolicy;i.resetLastResults(),(e||"standby"!==a&&"cache-only"!==a)&&n.push(i.refetch()),(t.queries.get(r)||i.queryInfo).setDiff(null)}),this.broadcastQueries(),Promise.all(n)},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,i=e.variables,r=e.fetchPolicy,a=e.errorPolicy,s=void 0===a?"none":a,o=e.context,l=void 0===o?{}:o,u=e.extensions,c=void 0===u?{}:u;n=this.transform(n),i=this.getVariables(n,i);var d=function(e){return t.getObservableFromLink(n,l,e,c).map(function(i){"no-cache"!==r&&(ny(i,s)&&t.cache.write({query:n,result:i.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var a=ns(i),o=(0,D.ls)(i);if(a||o){var l={};if(a&&(l.graphQLErrors=i.errors),o&&(l.protocolErrors=i.extensions[D.YG]),"none"===s||o)throw new D.cA(l)}return"ignore"===s&&delete i.errors,i})};if(this.getDocumentInfo(n).hasClientExports){var h=this.localState.addExportedVariables(n,i,l).then(d);return new y.y(function(e){var t=null;return h.then(function(n){return t=n.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return d(i)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){var t;this.fetchCancelFns.delete(e),this.queries.has(e)&&(null===(t=this.queries.get(e))||void 0===t||t.stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){var t;return null===(t=e.observableQuery)||void 0===t?void 0:t.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,i,r){var a,s,o=this;void 0===r&&(r=null!==(a=null==t?void 0:t.queryDeduplication)&&void 0!==a?a:this.queryDeduplication);var l=this.getDocumentInfo(e),u=l.serverQuery,d=l.clientQuery;if(u){var h=this,f=h.inFlightLinkObservables,p=h.link,m={query:u,variables:n,operationName:(0,eS.rY)(u)||void 0,context:this.prepareContext((0,c.pi)((0,c.pi)({},t),{forceFetch:!r})),extensions:i};if(t=m.context,r){var g=ev(u),v=(0,e8.B)(n),_=f.lookup(g,v);if(!(s=_.observable)){var b=new nh([nn(p,m)]);s=_.observable=b,b.beforeNext(function e(t,n){"next"===t&&"hasNext"in n&&n.hasNext?b.beforeNext(e):f.remove(g,v)})}}else s=new nh([nn(p,m)])}else s=new nh([y.y.of({data:{}})]),t=this.prepareContext(t);return d&&(s=na(s,function(e){return o.localState.runResolvers({document:d,remoteResult:e,context:t,variables:n})})),s},e.prototype.getResultsFromLink=function(e,t,n){var i=e.lastRequestId=this.generateRequestId(),r=this.cache.transformForLink(n.query);return na(this.getObservableFromLink(r,n.context,n.variables),function(a){var s=no(a),o=s.length>0,l=n.errorPolicy;if(i>
280=e.lastRequestId){if(o&&"none"===l)throw e.markError(new D.cA({graphQLErrors:s}));e.markResult(a,r,n,t),e.markReady()}var u={data:a.data,loading:!1,networkStatus:np.Ie.ready};return o&&"none"===l&&(u.data=void 0),o&&"ignore"!==l&&(u.errors=s,u.networkStatus=np.Ie.error),u},function(t){var n=(0,D.MS)(t)?t:new D.cA({networkError:t});throw i>=e.lastRequestId&&e.markError(n),n})},e.prototype.fetchConcastWithInfo=function(e,t,n,i){var r,a,s=this;void 0===n&&(n=np.Ie.loading),void 0===i&&(i=t.query);var o=this.getVariables(i,t.variables),l=this.defaultOptions.watchQuery,u=t.fetchPolicy,c=void 0===u?l&&l.fetchPolicy||"cache-first":u,d=t.errorPolicy,h=void 0===d?l&&l.errorPolicy||"none":d,f=t.returnPartialData,p=void 0!==f&&f,m=t.notifyOnNetworkStatusChange,g=void 0!==m&&m,v=t.context,y=Object.assign({},t,{query:i,variables:o,fetchPolicy:c,errorPolicy:h,returnPartialData:p,notifyOnNetworkStatusChange:g,context:void 0===v?{}:v}),_=function(i){y.variables=i;var r=s.fetchQueryByPolicy(e,y,n);return"standby"!==y.fetchPolicy&&r.sources.length>0&&e.observableQuery&&e.observableQuery.applyNextFetchPolicy("after-fetch",t),r},b=function(){return s.fetchCancelFns.delete(e.queryId)};if(this.fetchCancelFns.set(e.queryId,function(e){b(),setTimeout(function(){return r.cancel(e)})}),this.getDocumentInfo(y.query).hasClientExports)r=new nh(this.localState.addExportedVariables(y.query,y.variables,y.context).then(_).then(function(e){return e.sources})),a=!0;else{var x=_(y.variables);a=x.fromLink,r=new nh(x.sources)}return r.promise.then(b,b),{concast:r,fromLink:a}},e.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,i=e.include,r=e.optimistic,a=void 0!==r&&r,s=e.removeOptimistic,o=void 0===s?a?(0,nl.X)("refetchQueries"):void 0:s,l=e.onQueryUpdated,u=new Map;i&&this.getObservableQueries(i).forEach(function(e,n){u.set(n,{oq:e,lastDiff:(t.queries.get(n)||e.queryInfo).getDiff()})});var c=new Map;return n&&this.cache.batch({update:n,optimistic:a&&o||!1,removeOptimistic:o,onWatchUpdated:function(e,t,n){var i=e.watcher instanceof nv&&e.watcher.observableQuery;if(i){if(l){u.delete(i.queryId);var r=l(i,t,n);return!0===r&&(r=i.refetch()),!1!==r&&c.set(i,r),r}null!==l&&u.set(i.queryId,{oq:i,lastDiff:n,diff:t})}}}),u.size&&u.forEach(function(e,n){var i,r=e.oq,a=e.lastDiff,s=e.diff;l&&(s||(s=t.cache.diff(r.queryInfo.getDiffOptions())),i=l(r,s,a)),l&&!0!==i||(i=r.refetch()),!1!==i&&c.set(r,i),n.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(n)}),o&&this.cache.removeOptimistic(o),c},e.prototype.maskOperation=function(e){var t,n,i,r=e.document,a=e.data;if(!1!==globalThis.__DEV__){var s=e.fetchPolicy,o=e.id,l=null===(t=(0,eS.$H)(r))||void 0===t?void 0:t.operation,u=(null!==(n=null==l?void 0:l[0])&&void 0!==n?n:"o")+o;!this.dataMasking||"no-cache"!==s||(0,eP.YU)(r)||this.noCacheWarningsByQueryId.has(u)||(this.noCacheWarningsByQueryId.add(u),!1!==globalThis.__DEV__&&d.kG.warn(37,null!==(i=(0,eS.rY)(r))&&void 0!==i?i:"Unnamed ".concat(null!=l?l:"operation")))}return this.dataMasking?n_(a,r,this.cache):a},e.prototype.maskFragment=function(e){var t=e.data,n=e.fragment,i=e.fragmentName;return this.dataMasking?e1(t,n,this.cache,i):t},e.prototype.fetchQueryByPolicy=function(e,t,n){var i=this,r=t.query,a=t.variables,s=t.fetchPolicy,o=t.refetchWritePolicy,l=t.errorPolicy,u=t.returnPartialData,d=t.context,h=t.notifyOnNetworkStatusChange,f
280=e.networkStatus;e.init({document:r,variables:a,networkStatus:n});var p=function(){return e.getDiff()},m=function(t,n){void 0===n&&(n=e.networkStatus||np.Ie.loading);var s=t.result;!1===globalThis.__DEV__||u||(0,eH.D)(s,{})||(0,nf.D)(t.missing);var o=function(e){return y.y.of((0,c.pi)({data:e,loading:(0,np.Oj)(n),networkStatus:n},t.complete?null:{partial:!0}))};return s&&i.getDocumentInfo(r).hasForcedResolvers?i.localState.runResolvers({document:r,remoteResult:{data:s},context:d,variables:a,onlyRunForcedResolvers:!0}).then(function(e){return o(e.data||void 0)}):"none"===l&&n===np.Ie.refetch&&Array.isArray(t.missing)?o(void 0):o(s)},g="no-cache"===s?0:n===np.Ie.refetch&&"merge"!==o?1:2,v=function(){return i.getResultsFromLink(e,g,{query:r,variables:a,context:d,fetchPolicy:s,errorPolicy:l})},_=h&&"number"==typeof f&&f!==n&&(0,np.Oj)(n);switch(s){default:case"cache-first":var b=p();if(b.complete)return{fromLink:!1,sources:[m(b,e.markReady())]};if(u||_)return{fromLink:!0,sources:[m(b),v()]};return{fromLink:!0,sources:[v()]};case"cache-and-network":var b=p();if(b.complete||u||_)return{fromLink:!0,sources:[m(b),v()]};return{fromLink:!0,sources:[v()]};case"cache-only":return{fromLink:!1,sources:[m(p(),e.markReady())]};case"network-only":if(_)return{fromLink:!0,sources:[m(p()),v()]};return{fromLink:!0,sources:[v()]};case"no-cache":if(_)return{fromLink:!0,sources:[m(e.getDiff()),v()]};return{fromLink:!0,sources:[v()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getOrCreateQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new nv(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,c.pi)((0,c.pi)((0,c.pi)({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},e}();function nE(e){return e.kind===eT.h.FIELD||e.kind===eT.h.FRAGMENT_SPREAD||e.kind===eT.h.INLINE_FRAGMENT}var nw=function(){function e(e){var t=e.cache,n=e.client,i=e.resolvers,r=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,n&&(this.client=n),i&&this.addResolvers(i),r&&this.setFragmentMatcher(r)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=j(t.resolvers,e)}):this.resolvers=j(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){return(0,c.mG)(this,arguments,void 0,function(e){var t=e.document,n=e.remoteResult,i=e.context,r=e.variables,a=e.onlyRunForcedResolvers,s=void 0!==a&&a;return(0,c.Jh)(this,function(e){return t?[2,this.resolveDocument(t,n.data,i,r,this.fragmentMatcher,s).then(function(e){return(0,c.pi)((0,c.pi)({},n),{data:e.result})})]:[2,n]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return(0,v.FS)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return eO(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,c.pi)((0,c.pi)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e){return(0,c.mG)(this,arguments,void 0,function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),(0,c.Jh)(this,function(i){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then(function(e){return(0,c.pi)((0,c.pi)({},t),e.exportedVariables)})]:[2,(0,c.pi)({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,ea.Vn)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value})))return ea.$_}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:eF(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t){return(0,c.mG)(this,arguments,void 0,function(e,t,n,i,r,a){var s,o,l,u,d,h,f,p,m,g,v;return void 0===n&&(n={}),void 0===i&&(i={}),void 0===r&&(r=function(){return!0}),void 0===a&&(a=!1),(0,c.Jh)(this,function(y){return s=(0,eS.p$)(e),o=(0,eS.kU)(e),l=(0,eP.F)(o),u=this.collectSelectionsToResolve(s,l),h=(d=s.operation)?d.charAt(0).toUpperCase()+d.slice(1):"Query",f=this,p=f.cache,m=f.client,g={fragmentMap:l,context:(0,c.pi)((0,c.pi)({}
280,n),{cache:p,client:m}),variables:i,fragmentMatcher:r,defaultOperationType:h,exportedVariables:{},selectionsToResolve:u,onlyRunForcedResolvers:a},v=!1,[2,this.resolveSelectionSet(s.selectionSet,v,t,g).then(function(e){return{result:e,exportedVariables:g.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,n,i){return(0,c.mG)(this,void 0,void 0,function(){var r,a,s,o,l,u=this;return(0,c.Jh)(this,function(h){return r=i.fragmentMap,a=i.context,s=i.variables,o=[n],l=function(e){return(0,c.mG)(u,void 0,void 0,function(){var l,u;return(0,c.Jh)(this,function(c){return(t||i.selectionsToResolve.has(e))&&(0,v.LZ)(e,s)?(0,eL.My)(e)?[2,this.resolveField(e,t,n,i).then(function(t){var n;void 0!==t&&o.push(((n={})[(0,eL.u2)(e)]=t,n))})]:((0,eL.Ao)(e)?l=e:(l=r[e.name.value],(0,d.kG)(l,19,e.name.value)),l&&l.typeCondition&&(u=l.typeCondition.name.value,i.fragmentMatcher(n,u,a)))?[2,this.resolveSelectionSet(l.selectionSet,t,n,i).then(function(e){o.push(e)})]:[2]:[2]})})},[2,Promise.all(e.selections.map(l)).then(function(){return U(o)})]})})},e.prototype.resolveField=function(e,t,n,i){return(0,c.mG)(this,void 0,void 0,function(){var r,a,s,o,l,u,d,h,f,p=this;return(0,c.Jh)(this,function(c){return n?(r=i.variables,o=(a=e.name.value)!==(s=(0,eL.u2)(e)),u=Promise.resolve(l=n[s]||n[a]),(!i.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(d=n.__typename||i.defaultOperationType,(h=this.resolvers&&this.resolvers[d])&&(f=h[o?a:s])&&(u=Promise.resolve(tI.withValue(this.cache,f,[n,(0,eL.NC)(e,r),i.context,{field:e,fragmentMap:i.fragmentMap}])))),[2,u.then(function(n){if(void 0===n&&(n=l),e.directives&&e.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(i.exportedVariables[e.value.value]=n)})}),!e.selectionSet||null==n)return n;var r,a,s=null!==(a=null===(r=e.directives)||void 0===r?void 0:r.some(function(e){return"client"===e.name.value}))&&void 0!==a&&a;return Array.isArray(n)?p.resolveSubSelectedArray(e,t||s,n,i):e.selectionSet?p.resolveSelectionSet(e.selectionSet,t||s,n,i):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(e,t,n,i){var r=this;return Promise.all(n.map(function(n){return null===n?null:Array.isArray(n)?r.resolveSubSelectedArray(e,t,n,i):e.selectionSet?r.resolveSelectionSet(e.selectionSet,t,n,i):void 0}))},e.prototype.collectSelectionsToResolve=function(e,t){var n=function(e){return!Array.isArray(e)},i=this.selectionsToResolveCache;function r(e){if(!i.has(e)){var a=new Set;i.set(e,a),(0,ea.Vn)(e,{Directive:function(e,t,i,r,s){"client"===e.name.value&&s.forEach(function(e){n(e)&&nE(e)&&a.add(e)})},FragmentSpread:function(e,i,s,o,l){var u=t[e.name.value];(0,d.kG)(u,20,e.name.value);var c=r(u);c.size>0&&(l.forEach(function(e){n(e)&&nE(e)&&a.add(e)}),a.add(e),c.forEach(function(e){a.add(e)}))}})}return i.get(e)}return r(e)},e}(),nT=n(14012),nS=!1,nL=function(){function e(e){var t,n=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw(0,d._K)(16);var i=e.uri,r=e.credentials,a=e.headers,s=e.cache,o=e.documentTransform,l=e.ssrMode,u=void 0!==l&&l,h=e.ssrForceFetchDelay,f=void 0===h?0:h,p=e.connectToDevTools,m=e.queryDeduplication,v=void 0===m||m,y=e.defaultOptions,_=e.defaultContext,b=e.assumeImmutableResults,x=void 0===b?s.assumeImmutableResults:b,C=e.resolvers,E=e.typeDefs,w=e.fragmentMatcher,T=e.name,S=e.version,L=e.devtools,P=e.dataMasking,M=e.link;M||(M=i?new nr({uri:i,credentials:r,headers:a}):g.i.empty()),this.link=M,this.cache=s,this.disableNetworkFetches=u||f>0,this.queryDeduplication=v,this.defaultOptions=y||Object.create(null),this.typeDefs=E,this.devtoolsConfig=(0,c.pi)((0,c.pi)({},L),{enabled:null!==(t=null==L?void 0:L.enabled)&&void 0!==t?t:p}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1!==globalThis.__DEV__),f&&setTimeout(function(){return n.disableNetworkFetches=!1},f),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=ni.i,this.localState=new nw({cac
280he:s,client:this,resolvers:C,fragmentMatcher:w}),this.queryManager=new nC({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:_,documentTransform:o,queryDeduplication:v,ssrMode:u,dataMasking:!!P,clientAwareness:{name:T,version:S},localState:this.localState,assumeImmutableResults:x,onBroadcast:this.devtoolsConfig.enabled?function(){n.devToolsHookCb&&n.devToolsHookCb({action:{},state:{queries:n.queryManager.getQueryStore(),mutations:n.queryManager.mutationStore||{}},dataWithOptimisticResults:n.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if("undefined"!=typeof window){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,!nS&&!1!==globalThis.__DEV__&&(nS=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var e=window.navigator,t=e&&e.userAgent,n=void 0;"string"==typeof t&&(t.indexOf("Chrome/")>-1?n="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":t.indexOf("Firefox/")>-1&&(n="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),n&&!1!==globalThis.__DEV__&&d.kG.log("Download the Apollo DevTools for a better development experience: %s",n)}},1e4))}},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=(0,nT.J)(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=(0,c.pi)((0,c.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=(0,nT.J)(this.defaultOptions.query,e)),(0,d.kG)("cache-and-network"!==e.fetchPolicy,17),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,c.pi)((0,c.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=(0,nT.J)(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){var t=this,n=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(e).map(function(i){return(0,c.pi)((0,c.pi)({},i),{data:t.queryManager.maskOperation({document:e.query,data:i.data,fetchPolicy:e.fetchPolicy,id:n})})})},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.watchFragment=function(e){var t;return this.cache.watchFragment((0,c.pi)((0,c.pi)({},e),((t={})[Symbol.for("apollo.dataMasking")]=this.queryManager.dataMasking,t)))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return nn(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),n=[],i=[];t.forEach(function(e,t){n.push(t),i.push(e)});var r=Promise.all(i);return r.queries=n,r.results=i,r.catch(function(e){!1!==globalThis.__DEV__&&d.kG.debug(18,e)}),r},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext}
280,enumerable:!1,configurable:!0}),e}();!1!==globalThis.__DEV__&&(nL.prototype.getMemoryInternals=eg.su);var nP=n(9996),nM=n(18446);function nA(e){return new g.i(function(t,n){var i=(0,c._T)(t,[]);return new y.y(function(r){var a,s=!1;return Promise.resolve(i).then(function(n){return e(n,t.getContext())}).then(t.setContext).then(function(){s||(a=n(t).subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)}))}).catch(r.error.bind(r)),function(){s=!0,a&&a.unsubscribe()}})})}var nI=1;function nR(e){var t=Object.create(null),n=Object.create(null);return(0,F.O)(e)&&e.forEach(function(e){var i;t[e.message]=e,"string"==typeof(null===(i=e.extensions)||void 0===i?void 0:i.code)&&(n[e.extensions.code]=e)}),{persistedQueryNotSupported:!!(t.PersistedQueryNotSupported||n.PERSISTED_QUERY_NOT_SUPPORTED),persistedQueryNotFound:!!(t.PersistedQueryNotFound||n.PERSISTED_QUERY_NOT_FOUND)}}var nk={disable:function(e){return e.meta.persistedQueryNotSupported},retry:function(e){var t=e.meta;return t.persistedQueryNotSupported||t.persistedQueryNotFound},useGETForHashedQueries:!1};function nD(e){return e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})}var nN=function(e){function t(){n=void 0}(0,d.kG)(e&&("function"==typeof e.sha256||"function"==typeof e.generateHash),43);var n,i=(0,e7.o)(nk,e),r=i.sha256,a=i.generateHash,s=void 0===a?function(e){return Promise.resolve(r(ev(e)))}:a,o=i.disable,l=i.retry,u=i.useGETForHashedQueries,h=!0,f=function(e){return new Promise(function(t){return t(s(e))})};function p(e){if(!e||"object"!=typeof e)return f(e);n||(n=new ep.s(em.Q["PersistedQueryLink.persistedQueryHashes"]||2e3));var t=n.get(e);return t||n.set(e,t=f(e)),t}return Object.assign(new g.i(function(e,n){(0,d.kG)(n,44);var i=e.query;return new y.y(function(r){var a,s,d=!1,f=!1,m=function(i,r){var u=i.response,c=i.networkError;if(!d&&(u&&u.errors||c)){d=!0;var p=[],m=u&&u.errors;(0,F.O)(m)&&p.push.apply(p,m);var v=void 0;"string"!=typeof(null==c?void 0:c.result)&&(v=c&&c.result&&c.result.errors),(0,F.O)(v)&&p.push.apply(p,v);var y={response:u,networkError:c,operation:e,graphQLErrors:(0,F.O)(p)?p:void 0,meta:nR(p)};if((h=!o(y))||t(),l(y)){a&&a.unsubscribe(),e.setContext({http:{includeQuery:!0,includeExtensions:h},fetchOptions:{method:"POST"}}),f&&e.setContext({fetchOptions:s}),a=n(e).subscribe(g);return}}r()},g={next:function(e){m({response:e},function(){return r.next(e)})},error:function(e){m({networkError:e},function(){return r.error(e)})},complete:r.complete.bind(r)};return e.setContext({http:{includeQuery:!h,includeExtensions:h}}),u&&h&&!nD(e)&&(e.setContext(function(e){var t=e.fetchOptions,n=void 0===t?{}:t;return s=n,{fetchOptions:(0,c.pi)((0,c.pi)({},n),{method:"GET"})}}),f=!0),h?p(i).then(function(t){e.extensions.persistedQuery={version:nI,sha256Hash:t},a=n(e).subscribe(g)}).catch(r.error.bind(r)):a=n(e).subscribe(g),function(){a&&a.unsubscribe()}})}),{resetHashCache:t},!1!==globalThis.__DEV__?{getMemoryInternals:function(){var e;return{PersistedQueryLink:{persistedQueryHashes:null!==(e=null==n?void 0:n.size)&&void 0!==e?e:0}}}}:{})},nF=n(72023),nO=n(34061);n(83454);let nj={brand:nO.bold.whiteBright,info:nO.cyan,warn:nO.yellow,error:nO.red,success:nO.blueBright,debug:nO.magenta.italic},nU=(e,t,...n)=>{let i="";switch(e){case"info":i=nj.info("info");break;case"warn":i=nj.warn("warn");break;case"error":i=nj.error("error");break;case"debug":i=nj.debug("debug")}console.log(`${i} - ${t}`,...n)},nV=(e,...t)=>{nU("warn",e,...t)},nB=(e,...t)=>{nU("error",e,...t)};function nH(e){return"object"==typeof e&&null!==e&&"response"in e&&"result"in e&&"statusCode"in e}class nG extends g.i{request(e,t){return new y.y(n=>{let i=t(e).subscribe({next:e=>{e.errors&&e.errors.length>0&&nB("GraphQL errors:",e.errors),n.next(e)},error:e=>{nH(e)?(nB("Server error:",e),nB("Fetch result:",e.result)):nB("Network error:",e),n.error(e)},complete:()=>{n.complete()}});return()=>{i.unsubscribe()}})}}n(94301);var nz=n(47037),nq=n(92742),nW=function(e){return"string"!=typeof e||""===e?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)},n$=function(e){return"string"!=typeof e||""===e?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)},nZ=function(e,t){return function(n,i,r,a=10){let s=e[t];if(!n$(n)||!nW(i))return;if("function"!=typeof r){console.error("The hook callback must be a function.");return}if("number"!=typeof a){console.error("If specified, the hook priority must be a number.");return}let o={callback:r,priority:a,namespace:i};if(s[n]){let e;let t=s[n].handlers;for(e=t.length;e>0&&!(a>=t[e-1].priority);e--);e===t.length?t[e]=o:t.splice(e,0,o),s.__current.forEach(t=>{t.name===n&&t.currentIndex>=e&&t.currentIndex++})}else s[n]={handlers:[o],runs:0};"hookAdded"!==n&&e.doAction("hookAdded",n,i,r,a)}},nY=function(e,t,n=!1){return function(i,r){let a=e[t];if(!n$(i)||!n&&!nW(r))return;if(!a[i])return 0;let s=0;if(n)s=a[i].handlers.length,a[i]={runs:a[i].runs,handlers:[]};else{let e=a[i].handlers;for(let t=e.length-1;t>=0;t--)e[t].namespace===r&&(e.splice(t,1),s++,a.__current.forEach(e
280=>{e.name===i&&e.currentIndex>=t&&e.currentIndex--}))}return"hookRemoved"!==i&&e.doAction("hookRemoved",i,r),s}},nK=function(e,t){return function(n,i){let r=e[t];return void 0!==i?n in r&&r[n].handlers.some(e=>e.namespace===i):n in r}},nX=function(e,t,n=!1){return function(i,...r){let a=e[t];a[i]||(a[i]={handlers:[],runs:0}),a[i].runs++;let s=a[i].handlers;if(!s||!s.length)return n?r[0]:void 0;let o={name:i,currentIndex:0};for(a.__current.push(o);o.currentIndex<s.length;){let e=s[o.currentIndex].callback.apply(null,r);n&&(r[0]=e),o.currentIndex++}if(a.__current.pop(),n)return r[0]}},nQ=function(e,t){return function(){var n;let i=e[t];return null!==(n=i.__current[i.__current.length-1]?.name)&&void 0!==n?n:null}},nJ=function(e,t){return function(n){let i=e[t];return void 0===n?void 0!==i.__current[0]:!!i.__current[0]&&n===i.__current[0].name}},n0=function(e,t){return function(n){let i=e[t];if(n$(n))return i[n]&&i[n].runs?i[n].runs:0}};class n1{constructor(){this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=nZ(this,"actions"),this.addFilter=nZ(this,"filters"),this.removeAction=nY(this,"actions"),this.removeFilter=nY(this,"filters"),this.hasAction=nK(this,"actions"),this.hasFilter=nK(this,"filters"),this.removeAllActions=nY(this,"actions",!0),this.removeAllFilters=nY(this,"filters",!0),this.doAction=nX(this,"actions"),this.applyFilters=nX(this,"filters",!0),this.currentAction=nQ(this,"actions"),this.currentFilter=nQ(this,"filters"),this.doingAction=nJ(this,"actions"),this.doingFilter=nJ(this,"filters"),this.didAction=n0(this,"actions"),this.didFilter=n0(this,"filters")}}var n2=function(){return new n1};let{addAction:n3,addFilter:n5,removeAction:n4,removeFilter:n6,hasAction:n8,hasFilter:n7,removeAllActions:n9,removeAllFilters:ie,doAction:it,applyFilters:ii,currentAction:ir,currentFilter:ia,doingAction:is,doingFilter:io,didAction:il,didFilter:iu,actions:ic,filters:id}=n2(),ih=n2();function ip(e=""){let t=nq("https://rockhall25.wpenginepowered.com","/");return(t=ih.applyFilters("wpUrl",t,{}),e)?`${t}/${e}`:t}function im(){return"undefined"==typeof window}var ig=n(98612),iv=n(41609),iy=n(52353);n(48764).lW;let i_=/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;function ib(e){if(!e)return;let t=i_.exec(e);if(!(!ig(t)||iv(t)||iy(t[4])&&"/"!==e[0]))return{href:t[0],protocol:t[1],baseUrl:`${t[1]}${t[3]}`,host:t[4],pathname:t[5],search:t[6],hash:t[8]}}function ix(e,t){if(!nz(e)||!nz(t)||iv(e)||iv(t))return"";let n=ib(e);if(iy(n)||!nz(n.search))return"";let i=n.search;"?"===i[0]&&(i=i.substring(1));let r=i.split("&");for(let e=0;e<r.length;e+=1){let n=r[e].split("=");if(decodeURIComponent(n[0])===t)return decodeURIComponent(n[1])}return""}function iC(e,t){let n=e.split("?");if(n.length>=2){let e=`${encodeURIComponent(t)}=`,i=n[1].split(/[&;]/g);for(let t=i.length;t-- >0;)-1!==i[t].lastIndexOf(e,0)&&i.splice(t,1);return n[0]+(i.length>0?`?${i.join("&")}`:"")}return e}let iE="/api/faust",iw="auth/token",iT="auth/logout";var iS=n(91747),iL=n(22205),iP=n(51463);function iM(e){return iP(()=>{i=e;let{experimentalPlugins:t,plugins:n}=e,r=[...t||[],...n||[]];null==r||r.forEach(e=>{var t;null===(t=null==e?void 0:e.apply)||void 0===t||t.call(e,ih)}),(null==t?void 0:t.length)&&nV('Plugin System: The "experimentalPlugins" configuration option will be deprecated
280in the near future. Please use "plugins" instead in the faust.config.js.')})()}function iA(e){let t=iS({},e,{loginPagePath:"/login",experimentalToolbar:!1,usePersistedQueries:!1,useGETForQueries:!0,basePath:""});return Object.keys(t).forEach(e=>{let n=e,i=t[n];nz(i)&&(t[n]=i.trim())}),t.experimentalToolbar&&console.warn("[Faust.js] As the team shifts focus to new work on [Headless WordPress](https://github.com/wpengine/hwptoolkit), the Admin Toolbar, which was ~~experimental~~, will no longer be actively maintained. No further updates will be made."),iL(t,{})}function iI(){return iA(i)}function iR(){let{basePath:e}=iI();return null!=e?e:""}let ik=60;function iD(){return r}function iN(e){r=e}function iF(){return null==a?void 0:a.token}function iO(){return null==a?void 0:a.expiration}function ij(e,t){im()||(a={token:e,expiration:t})}function iU(){let e=Math.floor(Date.now()/1e3),t=iO();void 0!==t&&iN(setTimeout(()=>void iB(),1e3*(t-e-ik)))}function iV(){let e=iD();void 0!==e&&clearTimeout(e)}async function iB(e){let t=`${iR()}${iE}/${iw}`;nz(e)&&e.length>0&&(t+=`?code=${encodeURIComponent(e)}`);try{let e=await fetch(t,{method:"GET",headers:{"Content-Type":"application/json"}}),n=await e.json();if(!e.ok)return ij(void 0,void 0),null;return ij(n.accessToken,n.accessTokenExpiration),iV(),iU(),n.accessToken}catch(e){return ij(void 0,void 0),null}}async function iH(e){if(iF())return!0;let t=ip(),{redirectUri:n,loginPageUri:i}=e||{},r="undefined"!=typeof window?ix(window.location.href,"code"):void 0,a={};return(nz(n)&&(a.redirect=`${t}/generate?redirect_uri=${encodeURIComponent(n)}`),nz(i)&&(a.login=i),await iB(r))?(r&&window.history.replaceState({},document.title,iC(window.location.href,"code")),!0):a}function iG(){let e=ip(),t=`${e}/index.php?graphql`;return ih.applyFilters("graphqlEndpoint",t,{wpUrl:e})}let iz="__APOLLO_STATE__",iq="undefined"!=typeof window?window[iz]:{};function iW(e=!1){let{possibleTypes:t,usePersistedQueries:n,useGETForQueries:i}=iI(),r={possibleTypes:t,typePolicies:{RootQuery:{queryType:!0,fields:{viewer:{merge:!0}}},RootMutation:{mutationType:!0}}};r=ih.applyFilters("apolloClientInMemoryCacheOptions",r,{});let a=g.i.from([new nG,eV({uri:iG(),useGETForQueries:i&&!n})]);n&&(a=nN({sha256:nF.sha256,useGETForHashedQueries:i}).concat(a)),e&&(a=nA((e,{headers:t})=>{let n=iF();return{headers:Object.assign(Object.assign({},t),{authorization:n?`Bearer ${n}`:""})}}).concat(a));let s={ssrMode:"undefined"==typeof window,devtools:{enabled:"undefined"!=typeof window},link:a,cache:new nt(r).restore(iq)};return new nL(s=ih.applyFilters("apolloClientOptions",s,{}))}function i$(e=null){let t=null!=s?s:iW();if(e){let n=nP(t.extract(),e,{arrayMerge:(e,t)=>[...t,...e.filter(e=>t.every(t=>!nM(e,t)))]});t.cache.restore(n)}return"undefined"==typeof window||s||(s=t),t}function iZ(){let e=null!=o?o:iW(!0);return o||(o=e),e}function iY(e){let t=e[iz];return(0,u.useMemo)(()=>i$(t),[t])}var iK=n(76312),iX=n(68806);function iQ(e){let t=iS(e,{strategy:"redirect",shouldRedirect:!1,skip:!1});if("local"===t.strategy&&!t.loginPageUrl)throw Error('useAuth: Local strategies must specify the "loginPageUrl"');let[n,i]=(0,u.useState)(null),[r,a]=(0,u.useState)(!1),[s,o]=(0,u.useState)(null),[l,c]=(0,u.useState)(!1),[d,h]=(0,u.useState)(null);return(0,u.useEffect)(()=>{if(!0===t.skip||l)return;c(!0);let e={redirectUri:window.location.href};"local"===t.strategy&&(e.loginPageUri=`/${nq(t.loginPageUrl,"/")}?redirect_uri=${encodeURIComponent(window.location.href)}`),(async()=>{let n=await iH(e);i(!0===n),!0!==n&&(null==n?void 0:n.login)&&"local"===t.strategy&&o(n.login),!0!==n&&(null==n?void 0:n.redirect)&&"redirect"===t.strategy&&o(n.redirect),a(!0)})()},[l,t]),(0,u.useEffect)(()=>{!0!==t.skip&&t.shouldRedirect&&r&&!1===n&&s&&setTimeout(()=>{window.location.assign(s)},200)},[r,n,s,t]),(0,u.useEffect)(()=>{!0!==t.skip&&!0===n&&(async()=>{let e=iZ(),{data:t}=await e.query({query:(0,iX.Ps)` 281 query GetFaustViewer { 282 viewer { 283 name 284 username 285 capabilities 286 databaseId 287 description 288 email 289 firstName 290 id 291 lastName 292 nickname 293 locale 294 registeredDate 295 slug 296 templates 297 uri 298 url 299 userId 300 avatar { 301 url 302 } 303 } 304 } 305 `});h(t.viewer)})()},[n,t.skip]),{isAuthenticated:n,isReady:r,loginUrl:s,viewer:d}}function iJ(e=""){let t=ip("wp-admin");return e?`${t}/${e}`:t}function i0({seedNode:e}){var t,n;let{query:{p:i,typeName:r}}=(0,m.useRouter)();if((null==e?void 0:e.isFrontPage)||(null==e?void 0:e.isPostsPage))return null;
305let a=null!==(t=null==e?void 0:e.__typename)&&void 0!==t?t:r,s=null!==(n=null==e?void 0:e.databaseId)&&void 0!==n?n:i;if(!s||!a)return null;let o=iJ(`post.php?post=${s}&action=edit`);return u.createElement(ro,{href:o},"Edit ",a)}let i1={backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgNDAwIj48cGF0aCBmaWxsPSIjRTEwMDk4IiBkPSJNNTcuNDY4IDMwMi42NmwtMTQuMzc2LTguMyAxNjAuMTUtMjc3LjM4IDE0LjM3NiA4LjN6Ii8+PHBhdGggZmlsbD0iI0UxMDA5OCIgZD0iTTM5LjggMjcyLjJoMzIwLjN2MTYuNkgzOS44eiIvPjxwYXRoIGZpbGw9IiNFMTAwOTgiIGQ9Ik0yMDYuMzQ4IDM3NC4wMjZsLTE2MC4yMS05Mi41IDguMy0xNC4zNzYgMTYwLjIxIDkyLjV6TTM0NS41MjIgMTMyLjk0N2wtMTYwLjIxLTkyLjUgOC4zLTE0LjM3NiAxNjAuMjEgOTIuNXoiLz48cGF0aCBmaWxsPSIjRTEwMDk4IiBkPSJNNTQuNDgyIDEzMi44ODNsLTguMy0xNC4zNzUgMTYwLjIxLTkyLjUgOC4zIDE0LjM3NnoiLz48cGF0aCBmaWxsPSIjRTEwMDk4IiBkPSJNMzQyLjU2OCAzMDIuNjYzbC0xNjAuMTUtMjc3LjM4IDE0LjM3Ni04LjMgMTYwLjE1IDI3Ny4zOHpNNTIuNSAxMDcuNWgxNi42djE4NUg1Mi41ek0zMzAuOSAxMDcuNWgxNi42djE4NWgtMTYuNnoiLz48cGF0aCBmaWxsPSIjRTEwMDk4IiBkPSJNMjAzLjUyMiAzNjdsLTcuMjUtMTIuNTU4IDEzOS4zNC04MC40NSA3LjI1IDEyLjU1N3oiLz48cGF0aCBmaWxsPSIjRTEwMDk4IiBkPSJNMzY5LjUgMjk3LjljLTkuNiAxNi43LTMxIDIyLjQtNDcuNyAxMi44LTE2LjctOS42LTIyLjQtMzEtMTIuOC00Ny43IDkuNi0xNi43IDMxLTIyLjQgNDcuNy0xMi44IDE2LjggOS43IDIyLjUgMzEgMTIuOCA0Ny43TTkwLjkgMTM3Yy05LjYgMTYuNy0zMSAyMi40LTQ3LjcgMTIuOC0xNi43LTkuNi0yMi40LTMxLTEyLjgtNDcuNyA5LjYtMTYuNyAzMS0yMi40IDQ3LjctMTIuOCAxNi43IDkuNyAyMi40IDMxIDEyLjggNDcuN00zMC41IDI5Ny45Yy05LjYtMTYuNy0zLjktMzggMTIuOC00Ny43IDE2LjctOS42IDM4LTMuOSA0Ny43IDEyLjggOS42IDE2LjcgMy45IDM4LTEyLjggNDcuNy0xNi44IDkuNi0zOC4xIDMuOS00Ny43LTEyLjhNMzA5LjEgMTM3Yy05LjYtMTYuNy0zLjktMzggMTIuOC00Ny43IDE2LjctOS42IDM4LTMuOSA0Ny43IDEyLjggOS42IDE2LjcgMy45IDM4LTEyLjggNDcuNy0xNi43IDkuNi0zOC4xIDMuOS00Ny43LTEyLjhNMjAwIDM5NS44Yy0xOS4zIDAtMzQuOS0xNS42LTM0LjktMzQuOSAwLTE5LjMgMTUuNi0zNC45IDM0LjktMzQuOSAxOS4zIDAgMzQuOSAxNS42IDM0LjkgMzQuOSAwIDE5LjItMTUuNiAzNC45LTM0LjkgMzQuOU0yMDAgNzRjLTE5LjMgMC0zNC45LTE1LjYtMzQuOS0zNC45IDAtMTkuMyAxNS42LTM0LjkgMzQuOS0zNC45IDE5LjMgMCAzNC45IDE1LjYgMzQuOSAzNC45IDAgMTkuMy0xNS42IDM0LjktMzQuOSAzNC45Ii8+PC9zdmc+')",float:"left",width:"22px",height:"22px",marginLeft:"5px",marginTop:"5px",marginRight:"5px"};function i2({url:e=iJ("admin.php?page=graphiql-ide"),title:t="GraphiQL IDE"}){return u.createElement(ro,{href:e},u.createElement("span",{className:"custom-icon",style:i1}),t)}function i3(){let[e,t]=(0,u.useState)(void 0),[n,i]=(0,u.useState)(!1);return{error:e,logout:async function(e){var n,r;i(!0);let a=`${iR()}${iE}/${iT}`,s=await fetch(a,{method:"POST"});if(!s.ok){t(s),i(!1);return}let o=null===(r=null===(n=null==window?void 0:window.location)||void 0===n?void 0:n.search)||void 0===r?void 0:r.includes("preview=true");e?window.location.assign(e):o?window.location.assign("/"):window.location.reload(),i(!1)},loading:n}}function i5(){var e,t,n,i,r,a,s,o,l,c,d,h,f,p,m;let g=iZ(),{logout:v}=i3(),{data:y,loading:_}=(0,iK.aM)((0,iX.Ps)` 306 { 307 viewer { 308 name 309 username 310 avatar26: avatar(size: 26) { 311 url 312 } 313 avatar52: avatar(size: 52) { 314 url 315 } 316 avatar64: avatar(size: 64) { 317 url 318 } 319 avatar128: avatar(size: 128) { 320 url 321 } 322 } 323 } 324 `,{client:g});if(_)return u.createElement(ra,null);let b=e=>{"Enter"===e.key&&(e.preventDefault(),v())},x=e=>{e.preventDefault(),v()};return u.createElement(u.Fragment,null,u.createElement(ro,{"aria-haspopup":"true"},"Howdy, ",u.createElement("span",{className:"display-name"},null===(e=null==y?void 0:y.viewer)||void 0===e?void 0:e.name),(null===(n=null===(t=null==y?void 0:y.viewer)||void 0===t?void 0:t.avatar64)||void 0===n?void 0:n.url)?u.createElement("img",{alt:"",src:null===(r=null===(i=null==y?void 0:y.viewer)||void 0===i?void 0:i.avatar26)||void 0===r?void 0:r.url,srcSet:`${null===(s=null===(a=null==y?void 0:y.viewer)||void 0===a?void 0:a.avatar52)||void 0===s?void 0:s.url} 2x`,className:"avatar avatar-26 photo",height:"26",width:"26",loading:"lazy",decoding:"async"}):null),u.createElement(rd,null,u.createElement(ru,{id:"wp-admin-bar-user-actions"},u.createElement("li",{id:"wp-admin-bar-user-info"},u.createElement(ro,{tabIndex:-1,href:iJ("profile.php")},(null===(l=null===(o=null==y?void 0:y.viewer)||void 0===o?void 0:o.avatar64)||void 0===l?void 0:l.url)?u.createElement("img",{alt:"",src:null===(d=null===(c=null==y?void 0:y.viewer)||void 0===c?void 0:c.avatar64)||void 0===d?void 0:d.url,srcSet:`${null===(f=null===(h=null==y?void 0:y.viewer)||void 0===h?void 0:h.avatar128)||void 0===f?void 0:f.url} 2x`,className:"avatar avatar-64 photo",height:"64",width:"64",loading:"lazy",decoding:"async"}):null,u.createElement("span",{className:"display-name"},null===(p=null==y?void 0:y.viewer)||void 0===p?void 0:p.name),u.createElement("span",{className:"username"},null===(m=null==y?void 0:y.viewer)||void 0===m?void 0:m.username))),u.createElement("li",{id:"wp-admin-bar-edit-profile"},u.createElement(ro,{href:iJ("profile.php")},"Edit Profile")),u.createElement("li",{id:"wp-admin-bar-logout"},u.createElement(ro,{href:"#",onKeyDown:b,onClick:x},"Log Out")))))}function i4(){let{isAuthenticated:e,isReady:t}=iQ({strategy:"redirect",shouldRedirect:!1});return t?!0===e?u.createElement(i5,null):null:u.createElement(ra,null)}function i6({url:e=iJ(),title:t="WordPress"}){return u.createElement(ro,{href:e},t)}var i8=n(93967),i7=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)0>t.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n};function i9(e){return e?`wp-admin-bar-${e}`:""}function re(e){var{id:t="",children:n,additionalClassNames:i=""}=e,r=i7(e,["id","children","additionalClassNames"]);let[a,s]=(0,u.useState)(!1),o=e=>{"Enter"===e.key?s(!a):"Escape"===e.key&&s(!1)};return u.createElement("li",Object.assign({id:i9(t),className:i8("menupop",{hover:a},i),onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),onKeyDown:o},r),n)}var rt=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)0>t.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n};function rn({seedNode:e}){let t=(0,u.useMemo)(()=>[{id:"site-name",location:"primary",component:u.createElement(i6,null)},{id:"edit",location:"primary",component:u.createElement(i0,{seedNode:e})},{id:"graphiql",location:"primary",component:u.createElement(i2,null)},{id:"my-account",location:"secondary",component:u.createElement(i4,null),additionalClassNames:"with-avatar"}],[e]),[n,i]=(0,u.useState)(t);(0,u.useEffect)(()=>{let n=ih.applyFilters("toolbarNodes",t,{seedNode:e});if(new Set(n.map(e=>e.id)).size<n.length)throw Error("Toolbar Nodes must have unique keys.");i(n)},[t,e]),(0,u.useEffect)(()=>(null==document||document.body.classList.add("admin-bar"),()=>{null==document||document.body.classList.remove("admin-bar")}),[]);let r=n.filter(({location:e})=>"primary"===e),a=n.filter(({location:e})=>"secondary"===e);return u.createElement("div",{id:"wpadminbar",className:"nojq"},u.createElement("div",{id:"wp-toolbar",className:"quicklinks",role:"navigation","aria-label":"Toolbar"},u.createElement("ul",{id:"wp-admin-bar-root-default",className:"ab-top-menu","aria-label":"primary toolbar menu items"},r.map(e=>{var{component:t,id:n}=e,i=rt(e,["component","id"]);return u.createElement(re,Object.assign({key:n,id:n},i),t)})),u.createElement("ul",{id:"wp-admin-bar-top-secondary",className:"ab-top-secondary ab-top-menu","aria-label":"secondary toolbar menu items"},a.map(e=>{var{component:t,id:n}=e,i=rt(e,["component","id"]);return u.createElement(re,Object.assign({key:n,id:n},i),t)}))))}function ri({seedNode:e}){let t=iZ(),{data:n,error:i}=(0,iK.aM)((0,iX.Ps)` 325 { 326 viewer { 327 shouldShowFaustToolbar 328 } 329 } 330 `,{client:t});return i?u.createElement(rn,{seedNode:e}):n&&!1!==n.viewer.shouldShowFaustToolbar?u.createElement(rn,{seedNode:e}):null}function rr({seedNode:e}){let{isAuthenticated:t}=iQ();
330return(console.warn("[Faust.js] As the team shifts focus to new work on [Headless WordPress](https://github.com/wpengine/hwptoolkit), the Admin Toolbar, which was ~~experimental~~, will no longer be actively maintained. No further updates will be made."),!0!==t)?null:u.createElement(ri,{seedNode:e})}function ra(){return u.createElement("div",{className:"toolbar-node-skeleton-wrapper"},u.createElement("div",{"aria-hidden":"true",className:"toolbar-node-skeleton"}))}var rs=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)0>t.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n};function ro(e){var{href:t,children:n}=e,i=rs(e,["href","children"]);return u.createElement("a",Object.assign({role:"menuitem",tabIndex:0,className:"ab-item",href:t},i),n)}var rl=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)0>t.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n};function ru(e){var{secondary:t,children:n}=e,i=rl(e,["secondary","children"]);return u.createElement("ul",Object.assign({className:i8("ab-submenu",{"ab-sub-secondary":t})},i),n)}var rc=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)0>t.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n};function rd(e){var{children:t}=e,n=rc(e,["children"]);return u.createElement("div",Object.assign({className:"ab-sub-wrapper"},n),t)}let rh=(0,u.createContext)(void 0);function rf(e){let{pageProps:t,children:n}=e,{experimentalToolbar:i}=iI(),r=(0,m.useRouter)(),a=iY(t),s=e=>{l(t=>Object.assign(Object.assign({},t),{queries:e}))},[o,l]=(0,u.useState)({queries:t.__FAUST_QUERIES__,setQueries:s});return(0,u.useEffect)(()=>{t.__FAUST_QUERIES__&&s(t.__FAUST_QUERIES__)},[t.__FAUST_QUERIES__]),u.createElement(rh.Provider,{value:o},u.createElement(p,{client:a},i&&u.createElement(rr,{key:`faust-toolbar-${r.asPath}`,seedNode:t.__SEED_NODE__}),n))}function rp(e){var t,n,i,r,a,s,o,l,u,c,d,h,f,p,m,g,v,y;let _=[];if((null===(t=e.template)||void 0===t?void 0:t.templateName)&&"Default"!==e.template.templateName&&_.push(`template-${e.template.templateName}`),e.isFrontPage&&_.push("front-page"),e.isPostsPage&&_.push("home"),"ContentType"===e.__typename&&!1===e.isPostsPage&&(e.name&&_.push(`archive-${e.name}`),_.push("archive")),e.isTermNode){let{taxonomyName:t}=e;switch(t){case"category":e.slug&&_.push(`category-${e.slug}`),e.databaseId&&_.push(`category-${e.databaseId}`),_.push("category");break;case"post_tag":e.slug&&_.push(`tag-${e.slug}`),e.databaseId&&_.push(`tag-${e.databaseId}`),_.push("tag");break;default:t&&(e.slug&&_.push(`taxonomy-${t}-${e.slug}`),e.databaseId&&_.push(`taxonomy-${t}-${e.databaseId}`),_.push(`taxonomy-${t}`)),_.push("taxonomy")}_.push("archive")}return e.userId&&(e.name&&_.push(`author-${null===(n=e.name)||void 0===n?void 0:n.toLocaleLowerCase()}`),_.push(`author-${e.userId}`),_.push("author"),_.push("archive")),e.isContentNode&&((null===(r=null===(i=null==e?void 0:e.contentType)||void 0===i?void 0:i.node)||void 0===r?void 0:r.name)!=="page"&&(null===(s=null===(a=null==e?void 0:e.contentType)||void 0===a?void 0:a.node)||void 0===s?void 0:s.name)!=="post"&&((null===(l=null===(o=e.contentType)||void 0===o?void 0:o.node)||void 0===l?void 0:l.name)&&e.slug&&_.push(`single-${null===(c=null===(u=e.contentType)||void 0===u?void 0:u.node)||void 0===c?void 0:c.name}-${e.slug}`),(null===(h=null===(d=e.contentType)||void 0===d?void 0:d.node)||void 0===h?void 0:h.name)&&_.push(`
330single-${null===(p=null===(f=e.contentType)||void 0===f?void 0:f.node)||void 0===p?void 0:p.name}`)),(null===(g=null===(m=null==e?void 0:e.contentType)||void 0===m?void 0:m.node)||void 0===g?void 0:g.name)==="page"&&(e.slug&&_.push(`page-${e.slug}`),e.databaseId&&_.push(`page-${e.databaseId}`),_.push("page")),(null===(y=null===(v=null==e?void 0:e.contentType)||void 0===v?void 0:v.node)||void 0===y?void 0:y.name)==="post"&&(e.slug&&_.push(`single-${e.contentType.node.name}-${e.slug}`),_.push(`single-${e.contentType.node.name}`),_.push("single")),_.push("singular")),_.push("index"),_=ih.applyFilters("possibleTemplatesList",_,{seedNode:e})}function rm(e,t){if(!e)return null;let n=rp(e);for(let e=0;e<n.length;e++){let i=n[e];if(t[i])return t[i]}return null}let rg=(0,iX.Ps)` 331 query GetSeedNode( 332 $id: ID! = 0 333 $uri: String! = "" 334 $asPreview: Boolean = false 335 ) { 336 ... on RootQuery @skip(if: $asPreview) { 337 nodeByUri(uri: $uri) { 338 __typename 339 ...GetNode 340 } 341 } 342 ... on RootQuery @include(if: $asPreview) { 343 contentNode(id: $id, idType: DATABASE_ID, asPreview: true) { 344 __typename 345 ...GetNode 346 } 347 } 348 } 349 350 fragment GetNode on UniformResourceIdentifiable { 351 __typename 352 uri 353 id 354 ...DatabaseIdentifier 355 ...ContentType 356 ...User 357 ...TermNode 358 ...ContentNode 359 ...MediaItem 360 ...Page 361 } 362 363 fragment DatabaseIdentifier on DatabaseIdentifier { 364 databaseId 365 } 366 367 fragment MediaItem on MediaItem { 368 id 369 mimeType 370 } 371 372 fragment ContentType on ContentType { 373 name 374 isFrontPage 375 376 # This is currently broken. The home page (blog page) can not be 377 # resolved when set to a custom page until the below issue is resolved. 378 # Link: https://github.com/wp-graphql/wp-graphql/issues/2514 379 isPostsPage 380 } 381 382 fragment Page on Page { 383 isFrontPage 384 isPostsPage 385 } 386 387 fragment TermNode on TermNode { 388 isTermNode 389 slug 390 taxonomyName 391 } 392 393 fragment ContentNode on ContentNode { 394 isContentNode 395 slug 396 contentType { 397 node { 398 name 399 } 400 } 401 template { 402 templateName 403 } 404 } 405 406 fragment User on User { 407 name 408 userId 409 databaseId 410 } 411`;function rv(e){let t=new URLSearchParams(e);return t.has("preview")&&"true"===t.get("preview")}var ry=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)0>t.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n};function r_(e){let{templates:t}=iI();if(!t)throw Error("Templates are required. Please add them to your config.");let{seedNode:n,isAuthenticated:i,isPreview:r,__TEMPLATE_QUERY_DATA__:a,loading:s,setLoading:o}=e,l=ry(e,["seedNode","isAuthenticated","isPreview","__TEMPLATE_QUERY_DATA__","loading","setLoading"]),c=rm(n,t),[d,h]=(0,u.useState)(a),{setQueries:f}=(0,u.useContext)(rh)||{};if(c&&c.queries&&c.query)throw Error("`Only either `Component.query` or `Component.queries` can be provided, but not both.");if((0,u.useEffect)(()=>{(async()=>{let e=r?iZ():i$();if(!c||c.query||!c.queries||!f)return;let t=null,i=c.queries.map(({query:t,variables:i})=>{let a=i?i(n,{asPreview:r}):void 0;return e.query({query:t,variables:a})}),a=await Promise.all(i);t={},a.forEach((e,n)=>{t&&c.queries&&(t[(0,nF.sha256)(ev(c.queries[n].query))]=e.data)}),f(t),o(!1)})()},[i,r,n,c,f,o]),(0,u.useEffect)(()=>{(async()=>{let e=r?iZ():i$();if(!c||!(null==c?void 0:c.query)||(null==c?void 0:c.queries)||!n||d)return;o(!0);let t={query:null==c?void 0:c.query,variables:(null==c?void 0:c.variables)?null==c?void 0:c.variables(n,{asPreview:r}):void 0};h((await e.query(t)).data),o(!1)})()},[d,c,n,r,i,o]),!c)return null;let p=c,m=Object.assign(Object.assign({},l),{__TEMPLATE_QUERY_DATA__:a,data:d,loading:s});return u.createElement(p,m,null)}function rb(e){let{basePath:t,templates:n}=iI();if(!n)throw Error("Templates are required. Please add them to your config.");let{__SEED_NODE__:i,__TEMPLATE_QUERY_DATA__:r}=e,[a,s]=(0,u.useState)(null!=i?i:null),o=rm(a,n),[l,c]=(0,u.useState)(null===o),[d,h]=(0,u.useState)(!r&&null),{isAuthenticated:f,loginUrl:p}=iQ({strategy:"redirect",shouldRedirect:!1,skip:!d});return((0,u.useEffect)(()=>{window&&h(rv(window.location.search))},[]),(0,u.useEffect)(()=>{window&&d&&!1===f&&p&&window.location.assign(p)},[f,d,p]),(0,u.useEffect)(()=>{null===d||d&&!f||a||(async()=>{var e,n;let i=d?iZ():i$(),r=window.location.href.replace(window.location.origin,""),a="";if(d&&(r=ix(window.location.href,"previewPathname"),a=ix(window.location.href,"p"),t&&(r=r.replace(t,"")),""===r))throw Error('The URL must contain the proper "previewPathname" query param for previews.');let o={query:rg,variables:Object.assign(Object.assign(Object.assign({},!d&&{uri:r}),d&&{id:a}),d&&{asPreview:!0})};c(!0);let l=await i.query(o);s(d?null===(e=null==l?void 0:l.data)||void 0===e?void 0:e.contentNode:null===(n=null==l?void 0:l.data)||void 0===n?void 0:n.nodeByUri)})()},[a,d,f,t]),a&&(!d||f))?u.createElement(r_,Object.assign({},e,{seedNode:a,isPreview:!0===d,isAuthenticated:!0===f,loading:l,setLoading:c})):null}function rx(e){var t;let n=(0,u.useContext)(rh);if(void 0===n)throw Error("useFaustQuery must be used within a FaustProvider");let i=(0,nF.sha256)(ev(e));return null===(t=null==n?void 0:n.queries)||void 0===t?void 0:t[i]}n(51584),n(13218),n(76489),n(14293),n(81763),n(83454),n(10691),n(23560),n(1469),n(16932),(0,iX.Ps)` 412 mutation GenerateAuthorizationCode( 413 $email: String 414 $username: String 415 $password: String! 416 ) { 417 generateAuthorizationCode(
418 input: { email: $email, username: $username, password: $password } 419 ) { 420 code 421 error 422 } 423 } 424`},82729:function(e,t,n){"use strict";function i(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{_:function(){return i}})},2379:function(e,t,n){"use strict";function i(){}n.d(t,{e:function(){return r}});class r{constructor(e=1/0,t=i){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:n}=t;n&&(n.older=e),e&&(e.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t}set(e,t){let n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){let t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}},99869:function(e,t,n){"use strict";function i(){}n.d(t,{k:function(){return u}});let r=i,a="undefined"!=typeof WeakRef?WeakRef:function(e){return{deref:()=>e}},s="undefined"!=typeof WeakMap?WeakMap:Map,o="undefined"!=typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:i,unregister:i}},l=10024;class u{constructor(e=1/0,t=r){this.max=e,this.dispose=t,this.map=new s,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{let e=this.unfinalizedNodes.values();for(let t=0;t<l;t++){let t=e.next().value;if(!t)break;this.unfinalizedNodes.delete(t);let n=t.key;delete t.key,t.keyRef=new a(n),this.registry.register(n,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new o(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:n}=t;n&&(n.older=e),e&&(e.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t}set(e,t){let n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.scheduleFinalization(n),this.map.set(e,n),this.size++,n.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;let t=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,t),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),t&&this.map.delete(t)}delete(e){let t=this.map.get(e);return!!t&&(this.deleteNode(t),!0)}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}},30020:function(e,t,n){"use strict";n.d(t,{D:function(){return o}});let{toString:i,hasOwnProperty:r}=Object.prototype,a=Function.prototype.toString,s=new Map;function o(e,t){try{return l(e,t)}finally{s.clear()}}function l(e,t){if(e===t)return!0;let n=i.call(e);if(n!==i.call(t))return!1;switch(n){case"[object Array]":if(e.length!==t.length)break;case"[object Object]":{if(f(e,t))return!0;let n=u(e),i=u(t),a=n.length;if(a!==i.length)return!1;for(let e=0;e<a;++e)if(!r.call(t,n[e]))return!1;for(let i=0;i<a;++i){let r=n[i];if(!l(e[r],t[r]))return!1}return!0}case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!=e)return t!=t;case"[object Boolean]":case"[object Date]":return+e==+t;case"[object RegExp]":case"[object String]":return e==`${t}`;case"[object Map]":case"[object Set]":{if(e.size!==t.size)return!1;if(f(e,t))return!0;let i=e.entries(),r="[object Map]"===n;for(;;){let e=i.next();if(e.done)break;let[n,a]=e.value;if(!t.has(n)||r&&!l(a,t.get(n)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":{let n=e.byteLength;if(n===t.byteLength)for(;n--&&e[n]===t[n];);return -1===n}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{let n=a.call(e);
424if(n!==a.call(t))return!1;return!h(n,d)}}return!1}function u(e){return Object.keys(e).filter(c,e)}function c(e){return void 0!==this[e]}t.Z=o;let d="{ [native code] }";function h(e,t){let n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}function f(e,t){let n=s.get(e);if(n){if(n.has(t))return!0}else s.set(e,n=new Set);return n.add(t),!1}},75028:function(e,t,n){"use strict";n.d(t,{B:function(){return o}});let i=()=>Object.create(null),{forEach:r,slice:a}=Array.prototype,{hasOwnProperty:s}=Object.prototype;class o{constructor(e=!0,t=i){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return r.call(e,e=>t=t.getChildTrie(e)),s.call(t,"data")?t.data:t.data=this.makeData(a.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let n=0,i=e.length;t&&n<i;++n){let i=t.mapFor(e[n],!1);t=i&&i.get(e[n])}return t&&t.data}remove(){return this.removeArray(arguments)}removeArray(e){let t;if(e.length){let n=e[0],i=this.mapFor(n,!1),r=i&&i.get(n);!r||(t=r.removeArray(a.call(e,1)),r.data||r.weak||r.strong&&r.strong.size||i.delete(n))}else t=this.data,delete this.data;return t}getChildTrie(e){let t=this.mapFor(e,!0),n=t.get(e);return n||t.set(e,n=new o(this.weakness,this.makeData)),n}mapFor(e,t){return this.weakness&&l(e)?this.weak||(t?this.weak=new WeakMap:void 0):this.strong||(t?this.strong=new Map:void 0)}}function l(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}},37826:function(e,t,n){"use strict";function i(e,t){if(!e)throw Error(t)}n.d(t,{a:function(){return i}})},25821:function(e,t,n){"use strict";n.d(t,{X:function(){return a}});let i=10,r=2;function a(e){return s(e,[])}function s(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return o(e,t);default:return String(e)}}function o(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";let n=[...t,e];if(l(e)){let t=e.toJSON();if(t!==e)return"string"==typeof t?t:s(t,n)}else if(Array.isArray(e))return c(e,n);return u(e,n)}function l(e){return"function"==typeof e.toJSON}function u(e,t){let n=Object.entries(e);return 0===n.length?"{}":t.length>r?"["+d(e)+"]":"{ "+n.map(([e,n])=>e+": "+s(n,t)).join(", ")+" }"}function c(e,t){if(0===e.length)return"[]";if(t.length>r)return"[Array]";let n=Math.min(i,e.length),a=e.length-n,o=[];for(let i=0;i<n;++i)o.push(s(e[i],t));return 1===a?o.push("... 1 more item"):a>1&&o.push(`... ${a} more items`),"["+o.join(", ")+"]"}function d(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}},72380:function(e,t,n){"use strict";var i;n.d(t,{UG:function(){return l},WU:function(){return a},Ye:function(){return r},h8:function(){return s},ku:function(){return i}});class r{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class a{constructor(e,t,n,i,r,a){this.kind=e,this.start=t,this.end=n,this.line=i,this.column=r,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}let s={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},o=new Set(Object.keys(s));function l(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&o.has(t)}!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(i||(i={}))},87392:function(e,t,n){"use strict";n.d(t,{LZ:function(){return s},wv:function(){return r}});var i=n(68297);function r(e){var t,n;let i=Number.MAX_SAFE_INTEGER,r=null,s=-1;for(let t=0;t<e.length;++t){let o=e[t],l=a(o);l!==o.length&&(r=null!==(n=r)&&void 0!==n?n:t,s=t,0!==t&&l<i&&(i=l))}return e.map((e,t)=>0===t?e:e.slice(i)).slice(null!==(t=r)&&void 0!==t?t:0,s+1)}function a(e){let t=0;for(;t<e.length&&(0,i.FD)(e.charCodeAt(t));)++t;return t}function s(e,t){let n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),a=1===r.length,s=r.length>1&&r.slice(1).every(e=>0===e.length||(0,i.FD)(e.charCodeAt(0))),o=n.endsWith('\\"""'),l=e.endsWith('"')&&!o,u=e.endsWith("\\"),c=l||u,d=!(null!=t&&t.minimize)&&(!a||e.length>70||c||s||o),h="",f=a&&(0,i.FD)(e.charCodeAt(0));return(d&&!f||s)&&(h+="\n"),h+=n,(d||c)&&(h+="\n"),'"""'+h+'"""'}},68297:function(e,t,n){"use strict";function i(e){return 9===e||32===e}function r(e){return e>=48&&e<=57}function a(e){return e>=97&&e<=122||e>=65&&e<=90}function s(e){return a(e)||95===e}function o(e){return a(e)||r(e)||95===e}n.d(t,{FD:function(){return i},HQ:function(){return o},LQ:function(){return s},X1:function(){return r}})},97359:function(e,t,n){"use strict";var i;n.d(t,{h:function(){return i}}),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="Str
424ingValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(i||(i={}))},77304:function(e,t,n){"use strict";n.d(t,{$_:function(){return o},Vn:function(){return l}});var i=n(37826),r=n(25821),a=n(72380),s=n(97359);let o=Object.freeze({});function l(e,t,n=a.h8){let l,c,d;let h=new Map;for(let e of Object.values(s.h))h.set(e,u(t,e));let f=Array.isArray(e),p=[e],m=-1,g=[],v=e,y=[],_=[];do{var b,x,C;let e;let s=++m===p.length,u=s&&0!==g.length;if(s){if(c=0===_.length?void 0:y[y.length-1],v=d,d=_.pop(),u){if(f){v=v.slice();let e=0;for(let[t,n]of g){let i=t-e;null===n?(v.splice(i,1),e++):v[i]=n}}else for(let[e,t]of(v={...v},g))v[e]=t}m=l.index,p=l.keys,g=l.edits,f=l.inArray,l=l.prev}else if(d){if(null==(v=d[c=f?m:p[m]]))continue;y.push(c)}if(!Array.isArray(v)){(0,a.UG)(v)||(0,i.a)(!1,`Invalid AST Node: ${(0,r.X)(v)}.`);let n=s?null===(b=h.get(v.kind))||void 0===b?void 0:b.leave:null===(x=h.get(v.kind))||void 0===x?void 0:x.enter;if((e=null==n?void 0:n.call(t,v,c,d,y,_))===o)break;if(!1===e){if(!s){y.pop();continue}}else if(void 0!==e&&(g.push([c,e]),!s)){if((0,a.UG)(e))v=e;else{y.pop();continue}}}void 0===e&&u&&g.push([c,v]),s?y.pop():(l={inArray:f,index:m,keys:p,edits:g,prev:l},p=(f=Array.isArray(v))?v:null!==(C=n[v.kind])&&void 0!==C?C:[],m=-1,g=[],d&&_.push(d),d=v)}while(void 0!==l);return 0!==g.length?g[g.length-1][1]:e}function u(e,t){let n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}},14902:function(e,t,n){"use strict";n.d(t,{LZ:function(){return h},ZP:function(){return c}});var i=n(46126),r=n(67294),a=n(85893),s=class{constructor(e){this.state=e}listeners=[];set(e){for(let t of(this.state=e,this.listeners))t(this.state)}subscribe(e){return this.listeners=[...this.listeners,e],()=>{this.listeners=this.listeners.filter(t=>t!==e)}}get(){return this.state}};function o(e){let[t,n]=(0,r.useState)(e.get());return(0,r.useEffect)(()=>e.subscribe(e=>n(e)),[e]),t}var l=(0,r.createContext)(null),u=new s(null),c=(0,r.forwardRef)(({children:e,root:t=!1,options:n={},className:s,autoRaf:o=!0,style:c,props:d},h)=>{let f=(0,r.useRef)(null),p=(0,r.useRef)(null),[m,g]=(0,r.useState)(void 0);(0,r.useImperativeHandle)(h,()=>({wrapper:f.current,content:p.current,lenis:m}),[m]),(0,r.useEffect)(()=>{let e=new i.Z({...n,...!t&&{wrapper:f.current,content:p.current},autoRaf:n?.autoRaf??o});return g(e),()=>{e.destroy(),g(void 0)}},[t,JSON.stringify(n)]);let v=(0,r.useRef)([]),y=(0,r.useCallback)((e,t)=>{v.current.push({callback:e,priority:t}),v.current.sort((e,t)=>e.priority-t.priority)},[]),_=(0,r.useCallback)(e=>{v.current=v.current.filter(t=>t.callback!==e)},[]);return(0,r.useEffect)(()=>{if(t&&m)return u.set({lenis:m,addCallback:y,removeCallback:_}),()=>u.set(null)},[t,m,y,_]),(0,r.useEffect)(()=>{if(!m)return;let e=e=>{for(let t=0;t<v.current.length;t++)v.current[t]?.callback(e)};return m.on("scroll",e),()=>{m.off("scroll",e)}},[m]),(0,a.jsx)(l.Provider,{value:{lenis:m,addCallback:y,removeCallback:_},children:t?e:(0,a.jsx)("div",{ref:f,className:s,style:c,...d,children:(0,a.jsx)("div",{ref:p,children:e})})})}),d={};function h(e,t=[],n=0){let i=(0,r.useContext)(l),a=o(u),{lenis:s,addCallback:c,removeCallback:h}=i??a??d;return(0,r.useEffect)(()=>
424{if(e&&c&&h&&s)return c(e,n),e(s),()=>{h(e)}},[s,c,h,n,...t]),s}},46126:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var i="1.3.8";function r(e,t,n){return Math.max(e,Math.min(t,n))}function a(e,t,n){return(1-n)*e+n*t}function s(e,t,n,i){return a(e,t,1-Math.exp(-n*i))}function o(e,t){return(e%t+t)%t}var l=class{isRunning=!1;value=0;from=0;to=0;currentTime=0;lerp;duration;easing;onUpdate;advance(e){if(!this.isRunning)return;let t=!1;if(this.duration&&this.easing){this.currentTime+=e;let n=r(0,this.currentTime/this.duration,1),i=(t=n>=1)?1:this.easing(n);this.value=this.from+(this.to-this.from)*i}else this.lerp?(this.value=s(this.value,this.to,60*this.lerp,e),Math.round(this.value)===this.to&&(this.value=this.to,t=!0)):(this.value=this.to,t=!0);t&&this.stop(),this.onUpdate?.(this.value,t)}stop(){this.isRunning=!1}fromTo(e,t,{lerp:n,duration:i,easing:r,onStart:a,onUpdate:s}){this.from=this.value=e,this.to=t,this.lerp=n,this.duration=i,this.easing=r,this.currentTime=0,this.isRunning=!0,a?.(),this.onUpdate=s}};function u(e,t){let n;return function(...i){let r=this;clearTimeout(n),n=setTimeout(()=>{n=void 0,e.apply(r,i)},t)}}var c=class{constructor(e,t,{autoResize:n=!0,debounce:i=250}={}){this.wrapper=e,this.content=t,n&&(this.debouncedResize=u(this.resize,i),this.wrapper instanceof Window?window.addEventListener("resize",this.debouncedResize,!1):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}width=0;height=0;scrollHeight=0;scrollWidth=0;debouncedResize;wrapperResizeObserver;contentResizeObserver;destroy(){this.wrapperResizeObserver?.disconnect(),this.contentResizeObserver?.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener("resize",this.debouncedResize,!1)}resize=()=>{this.onWrapperResize(),this.onContentResize()};onWrapperResize=()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)};onContentResize=()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)};get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},d=class{events={};emit(e,...t){let n=this.events[e]||[];for(let e=0,i=n.length;e<i;e++)n[e]?.(...t)}on(e,t){return this.events[e]?.push(t)||(this.events[e]=[t]),()=>{this.events[e]=this.events[e]?.filter(e=>t!==e)}}off(e,t){this.events[e]=this.events[e]?.filter(e=>t!==e)}destroy(){this.events={}}},h=100/6,f={passive:!1},p=class{constructor(e,t={wheelMultiplier:1,touchMultiplier:1}){this.element=e,this.options=t,window.addEventListener("resize",this.onWindowResize,!1),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,f),this.element.addEventListener("touchstart",this.onTouchStart,f),this.element.addEventListener("touchmove",this.onTouchMove,f),this.element.addEventListener("touchend",this.onTouchEnd,f)}touchStart={x:0,y:0};lastDelta={x:0,y:0};window={width:0,height:0};emitter=new d;on(e,t){return this.emitter.on(e,t)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize,!1),this.element.removeEventListener("wheel",this.onWheel,f),this.element.removeEventListener("touchstart",this.onTouchStart,f),this.element.removeEventListener("touchmove",this.onTouchMove,f),this.element.removeEventListener("touchend",this.onTouchEnd,f)}onTouchStart=e=>{let{clientX:t,clientY:n}=e.targetTouches?e.targetTouches[0]:e;this.touchStart.x=t,this.touchStart.y=n,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:e})};onTouchMove=e=>{let{clientX:t,clientY:n}=e.targetTouches?e.targetTouches[0]:e,i=-(t-this.touchStart.x)*this.options.touchMultiplier,r=-(n-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=t,this.touchStart.y=n,this.lastDelta={x:i,y:r},this.emitter.emit("scroll",{deltaX:i,deltaY:r,event:e})};onTouchEnd=e=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:e})};onWheel=e=>{let{deltaX:t,deltaY:n,deltaMode:i}=e,r=1===i?h:2===i?this.window.width:1,a=1===i?h:2===i?this.window.height:1;t*=r,n*=a,t*=this.options.wheelMultiplier,n*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:t,deltaY:n,event:e})};onWindowResize=()=>{this.window={width:window.innerWidth,height:window.innerHeight}}},m=e=>Math.min(1,1.001-Math.pow(2,-10*e)),g=class{_isScrolling=!1;_isStopped=!1;_isLocked=!1;_preventNextNativeScrollEvent=!1;_resetVelocityTimeout=null;__rafID=null;isTouching;time=0;userData={};lastVelocity=0;velocity=0;direction=0;options;targetScroll;animatedScroll;animate=new l;emitter=new d;dimensions;virtualScroll;constructor({wrapper:e=window,content:t=document.documentElement,eventsTarget:n=e,smoothWheel:r=!0,syncTouch:a=!1,syncTouchLerp:s=.075,touchInertiaExponent:o=1.7,duration:l,easing:u,lerp:d=.1,infinite:h=!1,orientation:f="vertical",gestureOrientation:g="vertical",touchMultiplier:v=1,wheelMultiplier:y=1,autoResize:_=!0,prevent:b,virtualScroll:x,overscroll:C=!0,autoRaf:E=!1,anchors:w=!1,autoToggle:T=!1,allowNestedScroll:S=!1,__experimental__naiveDimensions:L=!1}
424={}){window.lenisVersion=i,e&&e!==document.documentElement||(e=window),"number"==typeof l&&"function"!=typeof u?u=m:"function"==typeof u&&"number"!=typeof l&&(l=1),this.options={wrapper:e,content:t,eventsTarget:n,smoothWheel:r,syncTouch:a,syncTouchLerp:s,touchInertiaExponent:o,duration:l,easing:u,lerp:d,infinite:h,gestureOrientation:g,orientation:f,touchMultiplier:v,wheelMultiplier:y,autoResize:_,prevent:b,virtualScroll:x,overscroll:C,autoRaf:E,anchors:w,autoToggle:T,allowNestedScroll:S,__experimental__naiveDimensions:L},this.dimensions=new c(e,t,{autoResize:_}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.addEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.anchors&&this.options.wrapper===window&&this.options.wrapper.addEventListener("click",this.onClick,!1),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown,!1),this.virtualScroll=new p(n,{touchMultiplier:v,wheelMultiplier:y}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoToggle&&this.rootElement.addEventListener("transitionend",this.onTransitionEnd,{passive:!0}),this.options.autoRaf&&(this.__rafID=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.removeEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown,!1),this.options.anchors&&this.options.wrapper===window&&this.options.wrapper.removeEventListener("click",this.onClick,!1),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this.__rafID&&cancelAnimationFrame(this.__rafID)}on(e,t){return this.emitter.on(e,t)}off(e,t){return this.emitter.off(e,t)}onScrollEnd=e=>{e instanceof CustomEvent||"smooth"!==this.isScrolling&&!1!==this.isScrolling||e.stopPropagation()};dispatchScrollendEvent=()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))};onTransitionEnd=e=>{if(e.propertyName.includes("overflow")){let e=this.isHorizontal?"overflow-x":"overflow-y";["hidden","clip"].includes(getComputedStyle(this.rootElement)[e])?this.internalStop():this.internalStart()}};setScroll(e){this.isHorizontal?this.options.wrapper.scrollTo({left:e,behavior:"instant"}):this.options.wrapper.scrollTo({top:e,behavior:"instant"})}onClick=e=>{let t=e.composedPath().find(e=>e instanceof HTMLAnchorElement&&(e.getAttribute("href")?.startsWith("#")||e.getAttribute("href")?.startsWith("/#")||e.getAttribute("href")?.startsWith("./#")));if(t){let e=t.getAttribute("href");if(e){let t="object"==typeof this.options.anchors&&this.options.anchors?this.options.anchors:void 0,n=`#${e.split("#")[1]}`;["#","/#","./#","#top","/#top","./#top"].includes(e)&&(n=0),this.scrollTo(n,t)}}};onPointerDown=e=>{1===e.button&&this.reset()};onVirtualScroll=e=>{if("function"==typeof this.options.virtualScroll&&!1===this.options.virtualScroll(e))return;let{deltaX:t,deltaY:n,event:i}=e;if(this.emitter.emit("virtual-scroll",{deltaX:t,deltaY:n,event:i}),i.ctrlKey||i.lenisStopPropagation)return;let r=i.type.includes("touch"),a=i.type.includes("wheel");this.isTouching="touchstart"===i.type||"touchmove"===i.type;let s=0===t&&0===n;if(this.options.syncTouch&&r&&"touchstart"===i.type&&s&&!this.isStopped&&!this.isLocked){this.reset();return}let o="vertical"===this.options.gestureOrientation&&0===n||"horizontal"===this.options.gestureOrientation&&0===t;if(s||o)return;let l=i.composedPath();l=l.slice(0,l.indexOf(this.rootElement));let u=this.options.prevent;if(l.find(e=>e instanceof HTMLElement&&("function"==typeof u&&u?.(e)||e.hasAttribute?.("data-lenis-prevent")||r&&e.hasAttribute?.("data-lenis-prevent-touch")||a&&e.hasAttribute?.("data-lenis-prevent-wheel")||this.options.allowNestedScroll&&this.checkNestedScroll(e,{deltaX:t,deltaY:n}))))return;if(this.isStopped||this.isLocked){i.cancelable&&i.preventDefault();return}if(!(this.options.syncTouch&&r||this.options.smoothWheel&&a)){this.isScrolling="native",this.animate.stop(),i.lenisStopPropagation=!0;return}let c=n;"both"===this.options.gestureOrientation?c=Math.abs(n)>Math.abs(t)?n:t:"horizontal"===this.options.gestureOrientation&&(c=t),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&(this.animatedScroll>0&&this.animatedScroll<this.limit||0===this.animatedScroll&&n>0||this.animatedScroll===this.limit&&n<0))&&(i.lenisStopPropagation=!0),i.cancelable&&i.preventDefault();let d=r&&this.options.syncTouch,h=r&&"touchend"===i.type;h&&(c=Math.sign(this.velocity)*Math.pow(Math.abs(this.velocity),this.options.touchInertiaExponent)),this.scrollTo(this.targetScroll+c,{programmatic:!1,...d?{lerp:h?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})};resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit
424()}emit(){this.emitter.emit("scroll",this)}onNativeScroll=()=>{if(null!==this._resetVelocityTimeout&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(!1===this.isScrolling||"native"===this.isScrolling){let e=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-e,this.direction=Math.sign(this.animatedScroll-e),this.isStopped||(this.isScrolling="native"),this.emit(),0!==this.velocity&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}};reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){if(this.isStopped){if(this.options.autoToggle){this.rootElement.style.removeProperty("overflow");return}this.internalStart()}}internalStart(){this.isStopped&&(this.reset(),this.isStopped=!1,this.emit())}stop(){if(!this.isStopped){if(this.options.autoToggle){this.rootElement.style.setProperty("overflow","clip");return}this.internalStop()}}internalStop(){this.isStopped||(this.reset(),this.isStopped=!0,this.emit())}raf=e=>{let t=e-(this.time||e);this.time=e,this.animate.advance(.001*t),this.options.autoRaf&&(this.__rafID=requestAnimationFrame(this.raf))};scrollTo(e,{offset:t=0,immediate:n=!1,lock:i=!1,duration:a=this.options.duration,easing:s=this.options.easing,lerp:o=this.options.lerp,onStart:l,onComplete:u,force:c=!1,programmatic:d=!0,userData:h}={}){if(!this.isStopped&&!this.isLocked||c){if("string"==typeof e&&["top","left","start"].includes(e))e=0;else if("string"==typeof e&&["bottom","right","end"].includes(e))e=this.limit;else{let n;if("string"==typeof e?n=document.querySelector(e):e instanceof HTMLElement&&e?.nodeType&&(n=e),n){if(this.options.wrapper!==window){let e=this.rootElement.getBoundingClientRect();t-=this.isHorizontal?e.left:e.top}let i=n.getBoundingClientRect();e=(this.isHorizontal?i.left:i.top)+this.animatedScroll}}if("number"==typeof e){if(e+=t,e=Math.round(e),this.options.infinite){if(d){this.targetScroll=this.animatedScroll=this.scroll;let t=e-this.animatedScroll;t>this.limit/2?e-=this.limit:t<-this.limit/2&&(e+=this.limit)}}else e=r(0,e,this.limit);if(e===this.targetScroll){l?.(this),u?.(this);return}if(this.userData=h??{},n){this.animatedScroll=this.targetScroll=e,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),u?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}d||(this.targetScroll=e),"number"==typeof a&&"function"!=typeof s?s=m:"function"==typeof s&&"number"!=typeof a&&(a=1),this.animate.fromTo(this.animatedScroll,e,{duration:a,easing:s,lerp:o,onStart:()=>{i&&(this.isLocked=!0),this.isScrolling="smooth",l?.(this)},onUpdate:(e,t)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=e-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=e,this.setScroll(this.scroll),d&&(this.targetScroll=e),t||this.emit(),t&&(this.reset(),this.emit(),u?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())}})}}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}checkNestedScroll(e,{deltaX:t,deltaY:n}){let i,r,a,s,o,l,u,c,d,h,f,p,m,g;let v=Date.now(),y=e._lenis??={},_=this.options.gestureOrientation;if(v-(y.time??0)>2e3){y.time=Date.now();let t=window.getComputedStyle(e);y.computedStyle=t;let n=t.overflowX,d=t.overflowY;if(i=["auto","overlay","scroll"].includes(n),r=["auto","overlay","scroll"].includes(d),y.hasOverflowX=i,y.hasOverflowY=r,!i&&!r||"vertical"===_&&!r||"horizontal"===_&&!i)return!1;o=e.scrollWidth,l=e.scrollHeight,u=e.clientWidth,c=e.clientHeight,a=o>u,s=l>c,y.isScrollableX=a,y.isScrollableY=s,y.scrollWidth=o,y.scrollHeight=l,y.clientWidth=u,y.clientHeight=c}else a=y.isScrollableX,s=y.isScrollableY,i=y.hasOverflowX,r=y.hasOverflowY,o=y.scrollWidth,l=y.scrollHeight,u=y.clientWidth,c=y.clientHeight;if(!i&&!r||!a&&!s||"vertical"===_&&(!r||!s)||"horizontal"===_&&(!i||!a)||("horizontal"===_?d="x":"vertical"===_?d="y":(0!==t&&i&&a&&(d="x"),0!==n&&r&&s&&(d="y")),!d))return!1;if("x"===d)h=e.scrollLeft,f=o-u,p=t,m=i,g=a;else{if("y"!==d)return!1;h=e.scrollTop,f=l-c,p=n,m=r,g=s}return(p>0?h<f:h>0)&&m&&g}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.__experimental__naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return"horizontal"===this.options.orientation}get actualScroll(){let e=this.options.wrapper;return this.isHorizontal?e.scrollX??e.scrollLeft:e.scrollY??e.scrollTop}get scroll(){return this.options.infinite?o(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return 0===this.limit?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(e){this._isScrolling!==e&&(this._isScrolling=e,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(e){this._isStopped!==e&&(this._isStopped=e,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(e){this._isLocked!==e&&(this._isLocked=e,this.updateClassName())}get isSmooth(){return"smooth"===this.isScrolling}get className(){let e="lenis";return this.options.autoToggle&&(e+=" lenis-autoToggle"),this.isStopped&&(e+=" lenis-stopped"),this.isLocked&&(e+=" lenis-locked"),this.isScrolling&&(e+=" lenis-scrolling"),"smooth"===this.isScrolling&&(e+=" lenis-smooth"),e}updateClassName(){this.cleanUpClassName(),this.rootElement.className=`${this.rootElement.className} ${this.className}`.trim()}cleanUpClassName(){this.rootElement.className=this.rootElement.className.replace(/lenis(-\w+)?/g,"").trim()}}},30120:function(e,t,n){"use strict";let i;n.d(t,{ou:function(){return iH}});
424class r extends Error{}class a extends r{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class s extends r{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class o extends r{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class l extends r{}class u extends r{constructor(e){super(`Invalid unit ${e}`)}}class c extends r{}class d extends r{constructor(){super("Zone is an abstract class")}}let h="numeric",f="short",p="long",m={year:h,month:h,day:h},g={year:h,month:f,day:h},v={year:h,month:f,day:h,weekday:f},y={year:h,month:p,day:h},_={year:h,month:p,day:h,weekday:p},b={hour:h,minute:h},x={hour:h,minute:h,second:h},C={hour:h,minute:h,second:h,timeZoneName:f},E={hour:h,minute:h,second:h,timeZoneName:p},w={hour:h,minute:h,hourCycle:"h23"},T={hour:h,minute:h,second:h,hourCycle:"h23"},S={hour:h,minute:h,second:h,hourCycle:"h23",timeZoneName:f},L={hour:h,minute:h,second:h,hourCycle:"h23",timeZoneName:p},P={year:h,month:h,day:h,hour:h,minute:h},M={year:h,month:h,day:h,hour:h,minute:h,second:h},A={year:h,month:f,day:h,hour:h,minute:h},I={year:h,month:f,day:h,hour:h,minute:h,second:h},R={year:h,month:f,day:h,weekday:f,hour:h,minute:h},k={year:h,month:p,day:h,hour:h,minute:h,timeZoneName:f},D={year:h,month:p,day:h,hour:h,minute:h,second:h,timeZoneName:f},N={year:h,month:p,day:h,weekday:p,hour:h,minute:h,timeZoneName:p},F={year:h,month:p,day:h,weekday:p,hour:h,minute:h,second:h,timeZoneName:p};class O{get type(){throw new d}get name(){throw new d}get ianaName(){return this.name}get isUniversal(){throw new d}offsetName(e,t){throw new d}formatOffset(e,t){throw new d}offset(e){throw new d}equals(e){throw new d}get isValid(){throw new d}}let j=null;class U extends O{static get instance(){return null===j&&(j=new U),j}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return tv(e,t,n)}formatOffset(e,t){return tx(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return"system"===e.type}get isValid(){return!0}}let V=new Map;function B(e){let t=V.get(e);return void 0===t&&(t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),V.set(e,t)),t}let H={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function G(e,t){let n=e.format(t).replace(/\u200E/g,""),[,i,r,a,s,o,l,u]=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n);return[a,i,r,s,o,l,u]}function z(e,t){let n=e.formatToParts(t),i=[];for(let e=0;e<n.length;e++){let{type:t,value:r}=n[e],a=H[t];"era"===t?i[a]=r:e1(a)||(i[a]=parseInt(r,10))}return i}let q=new Map;class W extends O{static create(e){let t=q.get(e);return void 0===t&&q.set(e,t=new W(e)),t}static resetCache(){q.clear(),V.clear()}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}}constructor(e){super(),this.zoneName=e,this.valid=W.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return tv(e,t,n,this.name)}formatOffset(e,t){return tx(this.offset(e),t)}offset(e){if(!this.valid)return NaN;let t=new Date(e);if(isNaN(t))return NaN;let n=B(this.name),[i,r,a,s,o,l,u]=n.formatToParts?z(n,t):G(n,t);"BC"===s&&(i=-Math.abs(i)+1);let c=tf({year:i,month:r,day:a,hour:24===o?0:o,minute:l,second:u,millisecond:0}),d=+t,h=d%1e3;return(c-(d-=h>=0?h:1e3+h))/6e4}equals(e){return"iana"===e.type&&e.name===this.name}get isValid(){return this.valid}}let $={};function Z(e,t={}){let n=JSON.stringify([e,t]),i=$[n];return i||(i=new Intl.ListFormat(e,t),$[n]=i),i}let Y=new Map;function K(e,t={}){let n=JSON.stringify([e,t]),i=Y.get(n);return void 0===i&&(i=new Intl.DateTimeFormat(e,t),Y.set(n,i)),i}let X=new Map;function Q(e,t={}){let n=JSON.stringify([e,t]),i=X.get(n);return void 0===i&&(i=new Intl.NumberFormat(e,t),X.set(n,i)),i}let J=new Map;function ee(e,t={}){let{base:n,...i}=t,r=JSON.stringify([e,i]),a=J.get(r);return void 0===a&&(a=new Intl.RelativeTimeFormat(e,t),J.set(r,a)),a}let et=null;function en(){return et||(et=new Intl.DateTimeFormat().resolvedOptions().locale)}let ei=new Map;function er(e){let t=ei.get(e);return void 0===t&&(t=new Intl.DateTimeFormat(e).resolvedOptions(),ei.set(e,t)),t}let ea=new Map;function es(e){let t=ea.get(e);if(!t){let n=new Intl.Locale(e);"minimalDays"in(t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo)||(t={...eg,...t}),ea.set(e,t)}return t}function eo(e){let t=e.indexOf("-x-");-1!==t&&(e=e.substring(0,t));let n=e.indexOf("-u-");if(-1===n)return[e];{let t,i;try{t=K(e).resolvedOptions(),i=e}catch(a){let r=e.substring(0,n);t=K(r).resolvedOptions(),i=r}let{numberingSystem:r,calendar:a}=t;return[i,r,a]}}function el(e,t,n){return(n||t)&&(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e}function eu(e){let t=[];for(let n=1;n<=12;n++){let i=iH.utc(2009,n,1);t.push(e(i))}return t}function ec(e){let t=[];for(let n=1;n<=7;n++){let i=iH.utc(2016,11,13+n);t.push(e(i))}return t}function ed(e,t,n,i){let r=e.listingMode();return"error"===r?null:"en"===r?n(t):i(t)}function eh(e){return(!e.numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||"latn"===er(e.locale).numberingSystem)}class ef{constructor(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;let{padTo:i,floor:r,...a}=n;if(!t||Object.keys(a).length>0){let t={useGrouping:!1,...n};n.padTo>0&&(t.minimumIntegerDigits=n.padTo),this.inf=Q(e,t)}}format(e){if(!this.inf)return ta(this.floor?Math.floor(e):tu(e,3),this.padTo);{let t=this.floor?Math.floor(e):e;return this.inf.format(t)}}}class ep{constructor(e,t,n){let i;if(this.opts=n,this.originalZone=void 0,this.opts.timeZone)this.dt=e;else if("fixed"===e.zone.type){let t=-(e.offset/60*1),n=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;0!==e.offset&&W.create(n).valid?(i=n,this.dt=e):(i="UTC",this.dt=0===e.offset?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else"system"===e.zone.type?this.dt=e:"iana"===e.zone.type?(this.dt=e,i=e.zone.name):(i="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);let r={...this.opts};r.timeZone=r.timeZone||i,this.dtf=K(t,r)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(e=>{if("timeZoneName"!==e.type)return e;{let t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class em{constructor(e,t,n){this.opts={style:"long",...n},!t&&e6()&&(this.rtf=ee(e,n))}format(e,t){return this.rtf?this.rtf.format(e,t):tV(t,e,this.opts.numeric,"long"!==this.opts.style)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}let eg={firstDay:1,minimalDays:4,weekend:[6,7]};class ev{static fromOpts(e){return ev.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,n,i,r=!1){let a=e||eO.defaultLocale,s=a||(r?"en-US":en());return new ev(s,t||eO.defaultNumberingSystem,n||eO.defaultOutputCalendar,tn(i)||eO.defaultWeekSettings,a)}static resetCache(){et=null,Y.clear(),X.clear(),J.clear(),ei.clear(),ea.clear()}static fromObject({locale:e,numberingSystem:t,outputCalendar:n,weekSettings:i}={}){return ev.create(e,t,n,i)}constructor(e,t,n,i,r){let[a,s,o]=eo(e);this.locale=a,this.numberingSystem=t||s||null,this.outputCalendar=n||o||null,this.weekSettings=i,this.intl=el(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}get fastNumbers(){return null==this.fastNumbersCached&&(this.fastNumbersCached=eh(this)),this.fastNumbersCached}listingMode(){let e=this.isEnglish(),t=(null===this.numberingSystem||"latn"===this.numberingSystem)&&(null===this.outputCalendar||"gregory"===this.outputCalendar);return e&&t?"en":"intl"}clone(e){return e&&0!==Object.getOwnPropertyNames(e).length?ev.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,tn(e.weekSettings)||this.weekSettings,e.defaultToEN||!1):this}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1){return ed(this,e,tS,()=>{let n=t?{month:e,day:"numeric"}:{month:e},i=t?"format":"standalone";return this.monthsCache[i][e]||(this.monthsCache[i][e]=eu(e=>this.extract(e,n,"month"))),this.monthsCache[i][e]})}weekdays(e,t=!1){return ed(this,e,tA,()=>{let n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=t?"format":"standalone";return this.weekdaysCache[i][e]||(this.weekdaysCache[i][e]=ec(e=>this.extract(e,n,"weekday"))),this.weekdaysCache[i][e]})}meridiems(){return ed(this,void 0,()=>tI,()=>{if(!this.meridiemCache){let e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[iH.utc(2016,11,13,9),iH.utc(2016,11,13,19)].map(t=>this.extract(t,e,"dayperiod"))}return this.meridiemCache})}eras(e){return ed(this,e,tN,()=>{let t={era:e};return this.eraCache[e]||(this.eraCache[e]=[iH.utc(-40,1,1),iH.utc(2017,1,1)].map(e=>this.extract(e,t,"era"))),this.eraCache[e]}
424)}extract(e,t,n){let i=this.dtFormatter(e,t).formatToParts().find(e=>e.type.toLowerCase()===n);return i?i.value:null}numberFormatter(e={}){return new ef(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new ep(e,this.intl,t)}relFormatter(e={}){return new em(this.intl,this.isEnglish(),e)}listFormatter(e={}){return Z(this.intl,e)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||er(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:e8()?es(this.locale):eg}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let ey=null;class e_ extends O{static get utcInstance(){return null===ey&&(ey=new e_(0)),ey}static instance(e){return 0===e?e_.utcInstance:new e_(e)}static parseSpecifier(e){if(e){let t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new e_(ty(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${tx(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${tx(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return tx(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return"fixed"===e.type&&e.fixed===this.fixed}get isValid(){return!0}}class eb extends O{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function ex(e,t){if(e1(e)||null===e)return t;if(e instanceof O)return e;if(e5(e)){let n=e.toLowerCase();return"default"===n?t:"local"===n||"system"===n?U.instance:"utc"===n||"gmt"===n?e_.utcInstance:e_.parseSpecifier(n)||W.create(e)}return e2(e)?e_.instance(e):"object"==typeof e&&"offset"in e&&"function"==typeof e.offset?e:new eb(e)}let eC={arab:"[Ù -Ù©]",arabext:"[Û°-Û¹]",bali:"[á-á]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[ï¼-ï¼]",gujr:"[૦-૯]",hanidec:"[ã|ä¸|äº|ä¸|å|äº|å
|ä¸|å
«|ä¹]",khmr:"[á -á©]",knda:"[೦-೯]",laoo:"[à»-à»]",limb:"[á¥-á¥]",mlym:"[൦-൯]",mong:"[á -á ]",mymr:"[á-á]",orya:"[à¦-à¯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[à¹-à¹]",tibt:"[༠-༩]",latn:"\\d"},eE={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},ew=eC.hanidec.replace(/[\[|\]]/g,"").split("");function eT(e){let t=parseInt(e,10);if(!isNaN(t))return t;t="";for(let n=0;n<e.length;n++){let i=e.charCodeAt(n);if(-1!==e[n].search(eC.hanidec))t+=ew.indexOf(e[n]);else for(let e in eE){let[n,r]=eE[e];i>=n&&i<=r&&(t+=i-n)}}return parseInt(t,10)}let eS=new Map;function eL(){eS.clear()}function eP({numberingSystem:e},t=""){let n=e||"latn",i=eS.get(n);void 0===i&&(i=new Map,eS.set(n,i));let r=i.get(t);return void 0===r&&(r=RegExp(`${eC[n]}${t}`),i.set(t,r)),r}let eM=()=>Date.now(),eA="system",eI=null,eR=null,ek=null,eD=60,eN,eF=null;class eO{static get now(){return eM}static set now(e){eM=e}static set defaultZone(e){eA=e}static get defaultZone(){return ex(eA,U.instance)}static get defaultLocale(){return eI}static set defaultLocale(e){eI=e}static get defaultNumberingSystem(){return eR}static set defaultNumberingSystem(e){eR=e}
424static get defaultOutputCalendar(){return ek}static set defaultOutputCalendar(e){ek=e}static get defaultWeekSettings(){return eF}static set defaultWeekSettings(e){eF=tn(e)}static get twoDigitCutoffYear(){return eD}static set twoDigitCutoffYear(e){eD=e%100}static get throwOnInvalid(){return eN}static set throwOnInvalid(e){eN=e}static resetCaches(){ev.resetCache(),W.resetCache(),iH.resetCache(),eL()}}class ej{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}let eU=[0,31,59,90,120,151,181,212,243,273,304,334],eV=[0,31,60,91,121,152,182,213,244,274,305,335];function eB(e,t){return new ej("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function eH(e,t,n){let i=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&i.setUTCFullYear(i.getUTCFullYear()-1900);let r=i.getUTCDay();return 0===r?7:r}function eG(e,t,n){return n+(tc(e)?eV:eU)[t-1]}function ez(e,t){let n=tc(e)?eV:eU,i=n.findIndex(e=>e<t),r=t-n[i];return{month:i+1,day:r}}function eq(e,t){return(e-t+7)%7+1}function eW(e,t=4,n=1){let{year:i,month:r,day:a}=e,s=eG(i,r,a),o=eq(eH(i,r,a),n),l=Math.floor((s-o+14-t)/7),u;return l<1?l=tm(u=i-1,t,n):l>tm(i,t,n)?(u=i+1,l=1):u=i,{weekYear:u,weekNumber:l,weekday:o,...tC(e)}}function e$(e,t=4,n=1){let{weekYear:i,weekNumber:r,weekday:a}=e,s=eq(eH(i,1,t),n),o=td(i),l=7*r+a-s-7+t,u;l<1?l+=td(u=i-1):l>o?(u=i+1,l-=td(i)):u=i;let{month:c,day:d}=ez(u,l);return{year:u,month:c,day:d,...tC(e)}}function eZ(e){let{year:t,month:n,day:i}=e,r=eG(t,n,i);return{year:t,ordinal:r,...tC(e)}}function eY(e){let{year:t,ordinal:n}=e,{month:i,day:r}=ez(t,n);return{year:t,month:i,day:r,...tC(e)}}function eK(e,t){if(!(!e1(e.localWeekday)||!e1(e.localWeekNumber)||!e1(e.localWeekYear)))return{minDaysInFirstWeek:4,startOfWeek:1};if(!e1(e.weekday)||!e1(e.weekNumber)||!e1(e.weekYear))throw new l("Cannot mix locale-based week fields with ISO-based week fields");return e1(e.localWeekday)||(e.weekday=e.localWeekday),e1(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),e1(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}function eX(e,t=4,n=1){let i=e3(e.weekYear),r=ti(e.weekNumber,1,tm(e.weekYear,t,n)),a=ti(e.weekday,1,7);return i?r?!a&&eB("weekday",e.weekday):eB("week",e.weekNumber):eB("weekYear",e.weekYear)}function eQ(e){let t=e3(e.year),n=ti(e.ordinal,1,td(e.year));return t?!n&&eB("ordinal",e.ordinal):eB("year",e.year)}function eJ(e){let t=e3(e.year),n=ti(e.month,1,12),i=ti(e.day,1,th(e.year,e.month));return t?n?!i&&eB("day",e.day):eB("month",e.month):eB("year",e.year)}function e0(e){let{hour:t,minute:n,second:i,millisecond:r}=e,a=ti(t,0,23)||24===t&&0===n&&0===i&&0===r,s=ti(n,0,59),o=ti(i,0,59),l=ti(r,0,999);return a?s?o?!l&&eB("millisecond",r):eB("second",i):eB("minute",n):eB("hour",t)}function e1(e){return void 0===e}function e2(e){return"number"==typeof e}function e3(e){return"number"==typeof e&&e%1==0}function e5(e){return"string"==typeof e}function e4(e){return"[object Date]"===Object.prototype.toString.call(e)}function e6(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function e8(){try{return"undefined"!=typeof Intl&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return!1}}function e7(e){return Array.isArray(e)?e:[e]}function e9(e,t,n){if(0!==e.length)return e.reduce((e,i)=>{let r=[t(i),i];return e&&n(e[0],r[0])===e[0]?e:r},null)[1]}function te(e,t){return t.reduce((t,n)=>(t[n]=e[n],t),{})}function tt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function tn(e){if(null==e)return null;if("object"!=typeof e)throw new c("Week settings must be an object");if(!ti(e.firstDay,1,7)||!ti(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(e=>!ti(e,1,7)))throw new c("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function ti(e,t,n){return e3(e)&&e>=t&&e<=n}function tr(e,t){return e-t*Math.floor(e/t)}function ta(e,t=2){return e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0")}function ts(e){if(!e1(e)&&null!==e&&""!==e)return parseInt(e,10)}function to(e){if(!e1(e)&&null!==e&&""!==e)return parseFloat(e)}function tl(e){if(!e1(e)&&null!==e&&""!==e)return Math.floor(1e3*parseFloat("0."+e))}function tu(e,t,n=!1){let i=10**t;return(n?Math.trunc:Math.round)(e*i)/i}function tc(e){return e%4==0&&(e%100!=0||e%400==0)}function td(e){return tc(e)?366:365}function th(e,t){let n=tr(t-1,12)+1,i=e+(t-n)/12;return 2===n?tc(i)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function tf(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t)).setUTCFullYear(e.year,e.month-1,e.day),+t}function tp(e,t,n){return-eq(eH(e,1,t),n)+t-1}function tm(e,t=4,n=1){let i=tp(e,t,n),r=tp(e+1,t,n);return(td(e)-i+r)/7}function tg(e){return e>99?e:e>eO.twoDigitCutoffYear?1900+e:2e3+e}function tv(e,t,n,i=null){let r=new Date(e),a={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};i&&(a.timeZone=i);let s={timeZoneName:t,...a},o=new Intl.DateTimeFormat(n,s).formatToParts(r).find(e=>"timezonename"===e.type.toLowerCase());return o?o.value:null}function ty(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);let i=parseInt(t,10)||0,r=n<0||Object.is(n,-0)?-i:i;return 60*n+r}function t_(e){let t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new c(`Invalid unit value ${e}`);return t}function tb(e,t){let n={};for(let i in e)if(tt(e,i)){let r=e[i];if(null==r)continue;n[t(i)]=t_(r)}return n}function tx(e,t){let n=Math.trunc(Math.abs(e/60)),i=Math.trunc(Math.abs(e%60)),r=e>=0?"+":"-";switch(t){case"short":return`${r}${ta(n,2)}:${ta(i,2)}`;case"narrow":return`${r}${n}${i>0?`:${i}`:""}`;case"techie":return`${r}${ta(n,2)}${ta(i,2)}`;default:throw RangeError(`Value format ${t} is out of range for property format`)}}function tC(e){return te(e,["hour","minute","second","millisecond"])}let tE=["January","February","March","April","May","June","July","August","September","October","November","December"],tw=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],tT=["J","F","M","A","M","J","J","A","S","O","N","D"];function tS(e){switch(e){case"narrow":return[...tT];case"short":return[...tw];case"long":return[...tE];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}
424let tL=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],tP=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],tM=["M","T","W","T","F","S","S"];function tA(e){switch(e){case"narrow":return[...tM];case"short":return[...tP];case"long":return[...tL];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}let tI=["AM","PM"],tR=["Before Christ","Anno Domini"],tk=["BC","AD"],tD=["B","A"];function tN(e){switch(e){case"narrow":return[...tD];case"short":return[...tk];case"long":return[...tR];default:return null}}function tF(e){return tI[e.hour<12?0:1]}function tO(e,t){return tA(t)[e.weekday-1]}function tj(e,t){return tS(t)[e.month-1]}function tU(e,t){return tN(t)[e.year<0?0:1]}function tV(e,t,n="always",i=!1){let r={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},a=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===n&&a){let n="days"===e;switch(t){case 1:return n?"tomorrow":`next ${r[e][0]}`;case -1:return n?"yesterday":`last ${r[e][0]}`;case 0:return n?"today":`this ${r[e][0]}`}}let s=Object.is(t,-0)||t<0,o=Math.abs(t),l=1===o,u=r[e],c=i?l?u[1]:u[2]||u[1]:l?r[e][0]:e;return s?`${o} ${c} ago`:`in ${o} ${c}`}function tB(e,t){let n="";for(let i of e)i.literal?n+=i.val:n+=t(i.val);return n}let tH={D:m,DD:g,DDD:y,DDDD:_,t:b,tt:x,ttt:C,tttt:E,T:w,TT:T,TTT:S,TTTT:L,f:P,ff:A,fff:k,ffff:N,F:M,FF:I,FFF:D,FFFF:F};class tG{static create(e,t={}){return new tG(e,t)}static parseFormat(e){let t=null,n="",i=!1,r=[];for(let a=0;a<e.length;a++){let s=e.charAt(a);"'"===s?(n.length>0&&r.push({literal:i||/^\s+$/.test(n),val:n}),t=null,n="",i=!i):i?n+=s:s===t?n+=s:(n.length>0&&r.push({literal:/^\s+$/.test(n),val:n}),n=s,t=s)}return n.length>0&&r.push({literal:i||/^\s+$/.test(n),val:n}),r}static macroTokenToFormatOpts(e){return tH[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple)return ta(e,t);let n={...this.opts};return t>0&&(n.padTo=t),this.loc.numberFormatter(n).format(e)}formatDateTimeFromString(e,t){let n="en"===this.loc.listingMode(),i=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,r=(t,n)=>this.loc.extract(e,t,n),a=t=>e.isOffsetFixed&&0===e.offset&&t.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,t.format):"",s=()=>n?tF(e):r({hour:"numeric",hourCycle:"h12"},"dayperiod"),o=(t,i)=>n?tj(e,t):r(i?{month:t}:{month:t,day:"numeric"},"month"),l=(t,i)=>n?tO(e,t):r(i?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),u=t=>{let n=tG.macroTokenToFormatOpts(t);return n?this.formatWithSystemDefault(e,n):t},c=t=>n?tU(e,t):r({era:t},"era"),d=t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12==0?12:e.hour%12);case"hh":return this.num(e.hour%12==0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return s();case"d":return i?r({day:"numeric"},"day"):this.num(e.day);case"dd":return i?r({day:"2-digit"},"day"):this.num(e.day,2);case"c":case"E":return this.num(e.weekday);case"ccc":return l("short",!0);case"cccc":return l("long",!0);case"ccccc":return l("narrow",!0);case"EEE":return l("short",!1);case"EEEE":return l("long",!1);case"EEEEE":return l("narrow",!1);case"L":return i?r({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return i?r({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return o("short",!0);case"LLLL":return o("long",!0);case"LLLLL":return o("narrow",!0);case"M":return i?r({month:"numeric"},"month"):this.num(e.month);case"MM":return i?r({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return o("short",!1);case"MMMM":return o("long",!1);case"MMMMM":return o("narrow",!1);case"y":return i?r({year:"numeric"},"year"):this.num(e.year);case"yy":return i?r({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return i?r({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return i?r({year:"numeric"},"year"):this.num(e.year,6);case"G":return c("short");case"GG":return c("long");case"GGGGG":return c("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);
424case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return u(t)}};return tB(tG.parseFormat(t),d)}formatDurationFromString(e,t){let n=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},i=e=>t=>{let i=n(t);return i?this.num(e.get(i),t.length):t},r=tG.parseFormat(t),a=r.reduce((e,{literal:t,val:n})=>t?e:e.concat(n),[]);return tB(r,i(e.shiftTo(...a.map(n).filter(e=>e))))}}let tz=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function tq(...e){let t=e.reduce((e,t)=>e+t.source,"");return RegExp(`^${t}$`)}function tW(...e){return t=>e.reduce(([e,n,i],r)=>{let[a,s,o]=r(t,i);return[{...e,...a},s||n,o]},[{},null,1]).slice(0,2)}function t$(e,...t){if(null==e)return[null,null];for(let[n,i]of t){let t=n.exec(e);if(t)return i(t)}return[null,null]}function tZ(...e){return(t,n)=>{let i;let r={};for(i=0;i<e.length;i++)r[e[i]]=ts(t[n+i]);return[r,null,n+i]}}let tY=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,tK=`(?:${tY.source}?(?:\\[(${tz.source})\\])?)?`,tX=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,tQ=RegExp(`${tX.source}${tK}`),tJ=RegExp(`(?:T${tQ.source})?`),t0=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,t1=/(\d{4})-?W(\d\d)(?:-?(\d))?/,t2=/(\d{4})-?(\d{3})/,t3=tZ("weekYear","weekNumber","weekDay"),t5=tZ("year","ordinal"),t4=/(\d{4})-(\d\d)-(\d\d)/,t6=RegExp(`${tX.source} ?(?:${tY.source}|(${tz.source}))?`),t8=RegExp(`(?: ${t6.source})?`);function t7(e,t,n){let i=e[t];return e1(i)?n:ts(i)}function t9(e,t){return[{year:t7(e,t),month:t7(e,t+1,1),day:t7(e,t+2,1)},null,t+3]}function ne(e,t){return[{hours:t7(e,t,0),minutes:t7(e,t+1,0),seconds:t7(e,t+2,0),milliseconds:tl(e[t+3])},null,t+4]}function nt(e,t){let n=!e[t]&&!e[t+1],i=ty(e[t+1],e[t+2]);return[{},n?null:e_.instance(i),t+3]}function nn(e,t){return[{},e[t]?W.create(e[t]):null,t+1]}let ni=RegExp(`^T?${tX.source}$`),nr=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function na(e){let[t,n,i,r,a,s,o,l,u]=e,c="-"===t[0],d=l&&"-"===l[0],h=(e,t=!1)=>void 0!==e&&(t||e&&c)?-e:e;return[{years:h(to(n)),months:h(to(i)),weeks:h(to(r)),days:h(to(a)),hours:h(to(s)),minutes:h(to(o)),seconds:h(to(l),"-0"===l),milliseconds:h(tl(u),d)}]}let ns={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function no(e,t,n,i,r,a,s){let o={year:2===t.length?tg(ts(t)):ts(t),month:tw.indexOf(n)+1,day:ts(i),hour:ts(r),minute:ts(a)};return s&&(o.second=ts(s)),e&&(o.weekday=e.length>3?tL.indexOf(e)+1:tP.indexOf(e)+1),o}let nl=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function nu(e){let t;let[,n,i,r,a,s,o,l,u,c,d,h]=e;return[no(n,a,r,i,s,o,l),new e_(t=u?ns[u]:c?0:ty(d,h))]}function nc(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}let nd=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,nh=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,nf=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function np(e){let[,t,n,i,r,a,s,o]=e;return[no(t,r,i,n,a,s,o),e_.utcInstance]}function nm(e){let[,t,n,i,r,a,s,o]=e;return[no(t,o,n,i,r,a,s),e_.utcInstance]}let ng=tq(t0,tJ),nv=tq(t1,tJ),ny=tq(t2,tJ),n_=tq(tQ),nb=tW(t9,ne,nt,nn),nx=tW(t3,ne,nt,nn),nC=tW(t5,ne,nt,nn),nE=tW(ne,nt,nn);function nw(e){return t$(e,[ng,nb],[nv,nx],[ny,nC],[n_,nE])}function nT(e){return t$(nc(e),[nl,nu])}function nS(e){return t$(e,[nd,np],[nh,np],[nf,nm])}function nL(e){return t$(e,[nr,na])}let nP=tW(ne);function nM(e){return t$(e,[ni,nP])}let nA=tq(t4,t8),nI=tq(t6),nR=tW(ne,nt,nn);function nk(e){return t$(e,[nA,nb],[nI,nR])}let nD="Invalid Duration",nN={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},nF={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...nN},nO={years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:31556952,milliseconds:31556952e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:7889238,milliseconds:7889238e3},months:{weeks:30.436875/7,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...nN},nj=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],nU=nj.slice(0).reverse();function nV(e,t,n=!1){return new nz({values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix})}function nB(e,t){let n=t.milliseconds??0;for(let i of nU.slice(1))t[i]&&(n+=t[i]*e[i].milliseconds);return n}function nH(e,t){let n=0>nB(e,t)?-1:1;nj.reduceRight((i,r)=>{if(e1(t[r]))return i;if(i){let a=t[i]*n,s=e[r][i],o=Math.floor(a/s);t[r]+=o*n,t[i]-=o*s*n}return r},null),nj.reduce((n,i)=>{if(e1(t[i]))return n;if(n){let r=t[n]%1;t[n]-=r,t[i]+=r*e[n][i]}return i},null)}function nG(e){let t={};for(let[n,i]of Object.entries(e))0!==i&&(t[n]=i);return t}class nz{constructor(e){let t="longterm"===e.conversionAccuracy,n=t?nO:nF;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||ev.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,t){return nz.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(null==e||"object"!=typeof e)throw new c(`Duration.fromObject: argument expected to be an object, got ${null===e?"null":typeof e}`);return new nz({values:tb(e,nz.normalizeUnit),loc:ev.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(e2(e))return nz.fromMillis(e);if(nz.isDuration(e))return e;if("object"==typeof e)return nz.fromObject(e);throw new c(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){let[n]=nL(e);
424return n?nz.fromObject(n,t):nz.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){let[n]=nM(e);return n?nz.fromObject(n,t):nz.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new c("need to specify a reason the Duration is invalid");let n=e instanceof ej?e:new ej(e,t);if(!eO.throwOnInvalid)return new nz({invalid:n});throw new o(n)}static normalizeUnit(e){let t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new u(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){let n={...t,floor:!1!==t.round&&!1!==t.floor};return this.isValid?tG.create(this.loc,n).formatDurationFromString(this,e):nD}toHuman(e={}){if(!this.isValid)return nD;let t=nj.map(t=>{let n=this.values[t];return e1(n)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(n)}).filter(e=>e);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return 0!==this.years&&(e+=this.years+"Y"),(0!==this.months||0!==this.quarters)&&(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),(0!==this.hours||0!==this.minutes||0!==this.seconds||0!==this.milliseconds)&&(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),(0!==this.seconds||0!==this.milliseconds)&&(e+=tu(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;let t=this.toMillis();return t<0||t>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},iH.fromMillis(t,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?nB(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;let t=nz.fromDurationLike(e),n={};for(let e of nj)(tt(t.values,e)||tt(this.values,e))&&(n[e]=t.get(e)+this.get(e));return nV(this,{values:n},!0)}minus(e){if(!this.isValid)return this;let t=nz.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;let t={};for(let n of Object.keys(this.values))t[n]=t_(e(this.values[n],n));return nV(this,{values:t},!0)}get(e){return this[nz.normalizeUnit(e)]}set(e){return this.isValid?nV(this,{values:{...this.values,...tb(e,nz.normalizeUnit)}}):this}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:n,matrix:i}={}){return nV(this,{loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:i,conversionAccuracy:n})}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;let e=this.toObject();return nH(this.matrix,e),nV(this,{values:e},!0)}rescale(){return this.isValid?nV(this,{values:nG(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...e){let t;if(!this.isValid||0===e.length)return this;e=e.map(e=>nz.normalizeUnit(e));let n={},i={},r=this.toObject();for(let a of nj)if(e.indexOf(a)>=0){t=a;let e=0;for(let t in i)e+=this.matrix[t][a]*i[t],i[t]=0;e2(r[a])&&(e+=r[a]);let s=Math.trunc(e);n[a]=s,i[a]=(1e3*e-1e3*s)/1e3}else e2(r[a])&&(i[a]=r[a]);for(let e in i)0!==i[e]&&(n[t]+=e===t?i[e]:i[e]/this.matrix[t][e]);return nH(this.matrix,n),nV(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let e={};for(let t of Object.keys(this.values))e[t]=0===this.values[t]?0:-this.values[t];return nV(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function t(e,t){return void 0===e||0===e?void 0===t||0===t:e===t}for(let n of nj)if(!t(this.values[n],e.values[n]))return!1;return!0}}let nq="Invalid Interval";
424function nW(e,t){return e&&e.isValid?t&&t.isValid?t<e?n$.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null:n$.invalid("missing or invalid end"):n$.invalid("missing or invalid start")}class n${constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new c("need to specify a reason the Interval is invalid");let n=e instanceof ej?e:new ej(e,t);if(!eO.throwOnInvalid)return new n$({invalid:n});throw new s(n)}static fromDateTimes(e,t){let n=iG(e),i=iG(t),r=nW(n,i);return null==r?new n$({start:n,end:i}):r}static after(e,t){let n=nz.fromDurationLike(t),i=iG(e);return n$.fromDateTimes(i,i.plus(n))}static before(e,t){let n=nz.fromDurationLike(t),i=iG(e);return n$.fromDateTimes(i.minus(n),i)}static fromISO(e,t){let[n,i]=(e||"").split("/",2);if(n&&i){let e,r,a,s;try{r=(e=iH.fromISO(n,t)).isValid}catch(e){r=!1}try{s=(a=iH.fromISO(i,t)).isValid}catch(e){s=!1}if(r&&s)return n$.fromDateTimes(e,a);if(r){let n=nz.fromISO(i,t);if(n.isValid)return n$.after(e,n)}else if(s){let e=nz.fromISO(n,t);if(e.isValid)return n$.before(a,e)}}return n$.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",t){let n;if(!this.isValid)return NaN;let i=this.start.startOf(e,t);return Math.floor((n=(n=t?.useLocaleWeeks?this.end.reconfigure({locale:i.locale}):this.end).startOf(e,t)).diff(i,e).get(e))+(n.valueOf()!==this.end.valueOf())}hasSame(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return!!this.isValid&&this.s>e}isBefore(e){return!!this.isValid&&this.e<=e}contains(e){return!!this.isValid&&this.s<=e&&this.e>e}set({start:e,end:t}={}){return this.isValid?n$.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];let t=e.map(iG).filter(e=>this.contains(e)).sort((e,t)=>e.toMillis()-t.toMillis()),n=[],{s:i}=this,r=0;for(;i<this.e;){let e=t[r]||this.e,a=+e>+this.e?this.e:e;n.push(n$.fromDateTimes(i,a)),i=a,r+=1}return n}splitBy(e){let t=nz.fromDurationLike(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];let{s:n}=this,i=1,r,a=[];for(;n<this.e;){let e=this.start.plus(t.mapUnits(e=>e*i));r=+e>+this.e?this.e:e,a.push(n$.fromDateTimes(n,r)),n=r,i+=1}return a}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return!!this.isValid&&+this.e==+e.s}abutsEnd(e){return!!this.isValid&&+e.e==+this.s}engulfs(e){return!!this.isValid&&this.s<=e.s&&this.e>=e.e}equals(e){return!!this.isValid&&!!e.isValid&&this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;let t=this.s>e.s?this.s:e.s,n=this.e<e.e?this.e:e.e;return t>=n?null:n$.fromDateTimes(t,n)}union(e){if(!this.isValid)return this;let t=this.s<e.s?this.s:e.s,n=this.e>e.e?this.e:e.e;return n$.fromDateTimes(t,n)}static merge(e){let[t,n]=e.sort((e,t)=>e.s-t.s).reduce(([e,t],n)=>t?t.overlaps(n)||t.abutsStart(n)?[e,t.union(n)]:[e.concat([t]),n]:[e,n],[[],null]);return n&&t.push(n),t}static xor(e){let t=null,n=0,i=[],r=e.map(e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}]);for(let e of Array.prototype.concat(...r).sort((e,t)=>e.time-t.time))1===(n+="s"===e.type?1:-1)?t=e.time:(t&&+t!=+e.time&&i.push(n$.fromDateTimes(t,e.time)),t=null);return n$.merge(i)}difference(...e){return n$.xor([this].concat(e)).map(e=>this.intersection(e)).filter(e=>e&&!e.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} â ${this.e.toISO()})`:nq}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}
424toLocaleString(e=m,t={}){return this.isValid?tG.create(this.s.loc.clone(t),e).formatInterval(this):nq}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:nq}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:nq}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:nq}toFormat(e,{separator:t=" â "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:nq}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):nz.invalid(this.invalidReason)}mapEndpoints(e){return n$.fromDateTimes(e(this.s),e(this.e))}}class nZ{static hasDST(e=eO.defaultZone){let t=iH.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return W.isValidZone(e)}static normalizeZone(e){return ex(e,eO.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||ev.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||ev.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||ev.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:n=null,locObj:i=null,outputCalendar:r="gregory"}={}){return(i||ev.create(t,n,r)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:i=null,outputCalendar:r="gregory"}={}){return(i||ev.create(t,n,r)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:n=null,locObj:i=null}={}){return(i||ev.create(t,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:i=null}={}){return(i||ev.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return ev.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return ev.create(t,null,"gregory").eras(e)}static features(){return{relative:e6(),localeWeek:e8()}}}function nY(e,t){let n=e=>e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),i=n(t)-n(e);return Math.floor(nz.fromMillis(i).as("days"))}function nK(e,t,n){let i,r;let a={},s=e;for(let[o,l]of[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+(t.year-e.year)*4],["months",(e,t)=>t.month-e.month+(t.year-e.year)*12],["weeks",(e,t)=>{let n=nY(e,t);return(n-n%7)/7}],["days",nY]])n.indexOf(o)>=0&&(i=o,a[o]=l(e,t),(r=s.plus(a))>t?(a[o]--,(e=s.plus(a))>t&&(r=e,a[o]--,e=s.plus(a))):e=r);return[e,a,r,i]}function nX(e,t,n,i){let[r,a,s,o]=nK(e,t,n),l=t-r,u=n.filter(e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0);0===u.length&&(s<t&&(s=r.plus({[o]:1})),s!==r&&(a[o]=(a[o]||0)+l/(s-r)));let c=nz.fromObject(a,i);return u.length>0?nz.fromMillis(l,i).shiftTo(...u).plus(c):c}let nQ="missing Intl.DateTimeFormat.formatToParts support";function nJ(e,t=e=>e){return{regex:e,deser:([e])=>t(eT(e))}}let n0=String.fromCharCode(160),n1=`[ ${n0}]`,n2=RegExp(n1,"g");function n3(e){return e.replace(/\./g,"\\.?").replace(n2,n1)}function n5(e){return e.replace(/\./g,"").replace(n2," ").toLowerCase()}function n4(e,t){return null===e?null:{regex:RegExp(e.map(n3).join("|")),deser:([n])=>e.findIndex(e=>n5(n)===n5(e))+t}}function n6(e,t){return{regex:e,deser:([,e,t])=>ty(e,t),groups:t}}function n8(e){return{regex:e,deser:([e])=>e}}
424function n7(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function n9(e,t){let n=eP(t),i=eP(t,"{2}"),r=eP(t,"{3}"),a=eP(t,"{4}"),s=eP(t,"{6}"),o=eP(t,"{1,2}"),l=eP(t,"{1,3}"),u=eP(t,"{1,6}"),c=eP(t,"{1,9}"),d=eP(t,"{2,4}"),h=eP(t,"{4,6}"),f=e=>({regex:RegExp(n7(e.val)),deser:([e])=>e,literal:!0}),p=(p=>{if(e.literal)return f(p);switch(p.val){case"G":return n4(t.eras("short"),0);case"GG":return n4(t.eras("long"),0);case"y":return nJ(u);case"yy":case"kk":return nJ(d,tg);case"yyyy":case"kkkk":return nJ(a);case"yyyyy":return nJ(h);case"yyyyyy":return nJ(s);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return nJ(o);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return nJ(i);case"MMM":return n4(t.months("short",!0),1);case"MMMM":return n4(t.months("long",!0),1);case"LLL":return n4(t.months("short",!1),1);case"LLLL":return n4(t.months("long",!1),1);case"o":case"S":return nJ(l);case"ooo":case"SSS":return nJ(r);case"u":return n8(c);case"uu":return n8(o);case"uuu":case"E":case"c":return nJ(n);case"a":return n4(t.meridiems(),0);case"EEE":return n4(t.weekdays("short",!1),1);case"EEEE":return n4(t.weekdays("long",!1),1);case"ccc":return n4(t.weekdays("short",!0),1);case"cccc":return n4(t.weekdays("long",!0),1);case"Z":case"ZZ":return n6(RegExp(`([+-]${o.source})(?::(${i.source}))?`),2);case"ZZZ":return n6(RegExp(`([+-]${o.source})(${i.source})?`),2);case"z":return n8(/[a-z_+-/]{1,256}?/i);case" ":return n8(/[^\S\n\r]/);default:return f(p)}})(e)||{invalidReason:nQ};return p.token=e,p}let ie={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function it(e,t,n){let{type:i,value:r}=e;if("literal"===i){let e=/^\s+$/.test(r);return{literal:!e,val:e?" ":r}}let a=t[i],s=i;"hour"===i&&(s=null!=t.hour12?t.hour12?"hour12":"hour24":null!=t.hourCycle?"h11"===t.hourCycle||"h12"===t.hourCycle?"hour12":"hour24":n.hour12?"hour12":"hour24");let o=ie[s];if("object"==typeof o&&(o=o[a]),o)return{literal:!1,val:o}}function ii(e){let t=e.map(e=>e.regex).reduce((e,t)=>`${e}(${t.source})`,"");return[`^${t}$`,e]}function ir(e,t,n){let i=e.match(t);if(!i)return[i,{}];{let e={},t=1;for(let r in n)if(tt(n,r)){let a=n[r],s=a.groups?a.groups+1:1;!a.literal&&a.token&&(e[a.token.val[0]]=a.deser(i.slice(t,t+s))),t+=s}return[i,e]}}function ia(e){let t;let n=e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},i=null;return e1(e.z)||(i=W.create(e.z)),e1(e.Z)||(i||(i=new e_(e.Z)),t=e.Z),e1(e.q)||(e.M=(e.q-1)*3+1),e1(e.h)||(e.h<12&&1===e.a?e.h+=12:12!==e.h||0!==e.a||(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),e1(e.u)||(e.S=tl(e.u)),[Object.keys(e).reduce((t,i)=>{let r=n(i);return r&&(t[r]=e[i]),t},{}),i,t]}let is=null;function io(){return is||(is=iH.fromMillis(1555555555555)),is}function il(e,t){if(e.literal)return e;let n=ip(tG.macroTokenToFormatOpts(e.val),t);return null==n||n.includes(void 0)?e:n}function iu(e,t){return Array.prototype.concat(...e.map(e=>il(e,t)))}class ic{constructor(e,t){if(this.locale=e,this.format=t,this.tokens=iu(tG.parseFormat(t),e),this.units=this.tokens.map(t=>n9(t,e)),this.disqualifyingUnit=this.units.find(e=>e.invalidReason),!this.disqualifyingUnit){let[e,t]=ii(this.units);this.regex=RegExp(e,"i"),this.handlers=t}}explainFromTokens(e){if(!this.isValid)return{input:e,tokens:this.tokens,invalidReason:this.invalidReason};{let[t,n]=ir(e,this.regex,this.handlers),[i,r,a]=n?ia(n):[null,null,void 0];if(tt(n,"a")&&tt(n,"H"))throw new l("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:t,matches:n,result:i,zone:r,specificOffset:a}}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invali
424dReason:null}}function id(e,t,n){return new ic(e,n).explainFromTokens(t)}function ih(e,t,n){let{result:i,zone:r,specificOffset:a,invalidReason:s}=id(e,t,n);return[i,r,a,s]}function ip(e,t){if(!e)return null;let n=tG.create(t,e).dtFormatter(io()),i=n.formatToParts(),r=n.resolvedOptions();return i.map(t=>it(t,e,r))}let im="Invalid DateTime",ig=864e13;function iv(e){return new ej("unsupported zone",`the zone "${e.name}" is not supported`)}function iy(e){return null===e.weekData&&(e.weekData=eW(e.c)),e.weekData}function i_(e){return null===e.localWeekData&&(e.localWeekData=eW(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function ib(e,t){let n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new iH({...n,...t,old:n})}function ix(e,t,n){let i=e-6e4*t,r=n.offset(i);if(t===r)return[i,t];i-=(r-t)*6e4;let a=n.offset(i);return r===a?[i,r]:[e-6e4*Math.min(r,a),Math.max(r,a)]}function iC(e,t){let n=new Date(e+=6e4*t);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function iE(e,t,n){return ix(tf(e),t,n)}function iw(e,t){let n=e.o,i=e.c.year+Math.trunc(t.years),r=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),a={...e.c,year:i,month:r,day:Math.min(e.c.day,th(i,r))+Math.trunc(t.days)+7*Math.trunc(t.weeks)},s=nz.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),[o,l]=ix(tf(a),n,e.zone);return 0!==s&&(o+=s,l=e.zone.offset(o)),{ts:o,o:l}}function iT(e,t,n,i,r,a){let{setZone:s,zone:o}=n;if((!e||0===Object.keys(e).length)&&!t)return iH.invalid(new ej("unparsable",`the input "${r}" can't be parsed as ${i}`));{let i=t||o,r=iH.fromObject(e,{...n,zone:i,specificOffset:a});return s?r:r.setZone(o)}}function iS(e,t,n=!0){return e.isValid?tG.create(ev.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function iL(e,t){let n=e.c.year>9999||e.c.year<0,i="";return n&&e.c.year>=0&&(i+="+"),i+=ta(e.c.year,n?6:4),t?i+="-"+ta(e.c.month)+"-"+ta(e.c.day):i+=ta(e.c.month)+ta(e.c.day),i}function iP(e,t,n,i,r,a){let s=ta(e.c.hour);return t?(s+=":"+ta(e.c.minute),0===e.c.millisecond&&0===e.c.second&&n||(s+=":")):s+=ta(e.c.minute),0===e.c.millisecond&&0===e.c.second&&n||(s+=ta(e.c.second),0===e.c.millisecond&&i||(s+="."+ta(e.c.millisecond,3))),r&&(e.isOffsetFixed&&0===e.offset&&!a?s+="Z":e.o<0?s+="-"+ta(Math.trunc(-e.o/60))+":"+ta(Math.trunc(-e.o%60)):s+="+"+ta(Math.trunc(e.o/60))+":"+ta(Math.trunc(e.o%60))),a&&(s+="["+e.zone.ianaName+"]"),s}let iM={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},iA={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},iI={ordinal:1,hour:0,minute:0,second:0,millisecond:0},iR=["year","month","day","hour","minute","second","millisecond"],ik=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],iD=["year","ordinal","hour","minute","second","millisecond"];function iN(e){let t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new u(e);return t}function iF(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return iN(e)}}function iO(e){if(void 0===i&&(i=eO.now()),"iana"!==e.type)return e.offset(i);let t=e.name,n=iB.get(t);return void 0===n&&(n=e.offset(i),iB.set(t,n)),n}function ij(e,t){let n,i;let r=ex(t.zone,eO.defaultZone);if(!r.isValid)return iH.invalid(iv(r));let a=ev.fromObject(t);if(e1(e.year))n=eO.now();else{for(let t of iR)e1(e[t])&&(e[t]=iM[t]);let t=eJ(e)||e0(e);if(t)return iH.invalid(t);let a=iO(r);[n,i]=iE(e,a,r)}return new iH({ts:n,zone:r,loc:a,o:i})}
424function iU(e,t,n){let i=!!e1(n.round)||n.round,r=(e,r)=>(e=tu(e,i||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(e,r)),a=i=>n.calendary?t.hasSame(e,i)?0:t.startOf(i).diff(e.startOf(i),i).get(i):t.diff(e,i).get(i);if(n.unit)return r(a(n.unit),n.unit);for(let e of n.units){let t=a(e);if(Math.abs(t)>=1)return r(t,e)}return r(e>t?-0:0,n.units[n.units.length-1])}function iV(e){let t={},n;return e.length>0&&"object"==typeof e[e.length-1]?(t=e[e.length-1],n=Array.from(e).slice(0,e.length-1)):n=Array.from(e),[t,n]}let iB=new Map;class iH{constructor(e){let t=e.zone||eO.defaultZone,n=e.invalid||(Number.isNaN(e.ts)?new ej("invalid input"):null)||(t.isValid?null:iv(t));this.ts=e1(e.ts)?eO.now():e.ts;let i=null,r=null;if(!n){if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[i,r]=[e.old.c,e.old.o];else{let a=e2(e.o)&&!e.old?e.o:t.offset(this.ts);i=(n=Number.isNaN((i=iC(this.ts,a)).year)?new ej("invalid input"):null)?null:i,r=n?null:a}}this._zone=t,this.loc=e.loc||ev.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=i,this.o=r,this.isLuxonDateTime=!0}static now(){return new iH({})}static local(){let[e,t]=iV(arguments),[n,i,r,a,s,o,l]=t;return ij({year:n,month:i,day:r,hour:a,minute:s,second:o,millisecond:l},e)}static utc(){let[e,t]=iV(arguments),[n,i,r,a,s,o,l]=t;return e.zone=e_.utcInstance,ij({year:n,month:i,day:r,hour:a,minute:s,second:o,millisecond:l},e)}static fromJSDate(e,t={}){let n=e4(e)?e.valueOf():NaN;if(Number.isNaN(n))return iH.invalid("invalid input");let i=ex(t.zone,eO.defaultZone);return i.isValid?new iH({ts:n,zone:i,loc:ev.fromObject(t)}):iH.invalid(iv(i))}static fromMillis(e,t={}){if(e2(e))return e<-ig||e>ig?iH.invalid("Timestamp out of range"):new iH({ts:e,zone:ex(t.zone,eO.defaultZone),loc:ev.fromObject(t)});throw new c(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(e2(e))return new iH({ts:1e3*e,zone:ex(t.zone,eO.defaultZone),loc:ev.fromObject(t)});throw new c("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};let n=ex(t.zone,eO.defaultZone);if(!n.isValid)return iH.invalid(iv(n));let i=ev.fromObject(t),r=tb(e,iF),{minDaysInFirstWeek:a,startOfWeek:s}=eK(r,i),o=eO.now(),u=e1(t.specificOffset)?n.offset(o):t.specificOffset,c=!e1(r.ordinal),d=!e1(r.year),h=!e1(r.month)||!e1(r.day),f=d||h,p=r.weekYear||r.weekNumber;if((f||c)&&p)throw new l("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(h&&c)throw new l("Can't mix ordinal dates with month/day");let m=p||r.weekday&&!f,g,v,y=iC(o,u);m?(g=ik,v=iA,y=eW(y,a,s)):c?(g=iD,v=iI,y=eZ(y)):(g=iR,v=iM);let _=!1;for(let e of g)e1(r[e])?_?r[e]=v[e]:r[e]=y[e]:_=!0;let b=(m?eX(r,a,s):c?eQ(r):eJ(r))||e0(r);if(b)return iH.invalid(b);let[x,C]=iE(m?e$(r,a,s):c?eY(r):r,u,n),E=new iH({ts:x,zone:n,o:C,loc:i});return r.weekday&&f&&e.weekday!==E.weekday?iH.invalid("mismatched weekday",`you can't specify both a weekday of ${r.weekday} and a date of ${E.toISO()}`):E.isValid?E:iH.invalid(E.invalid)}static fromISO(e,t={}){let[n,i]=nw(e);return iT(n,i,t,"ISO 8601",e)}static fromRFC2822(e,t={}){let[n,i]=nT(e);return iT(n,i,t,"RFC 2822",e)}static fromHTTP(e,t={}){let[n,i]=nS(e);return iT(n,i,t,"HTTP",t)}static fromFormat(e,t,n={}){if(e1(e)||e1(t))throw new c("fromFormat requires an input string and a format");let{locale:i=null,numberingSystem:r=null}=n,[a,s,o,l]=ih(ev.fromOpts({locale:i,numberingSystem:r,defaultToEN:!0}),e,t);return l?iH.invalid(l):iT(a,s,n,`format ${t}`,e,o)}static fromString(e,t,n={}){return iH.fromFormat(e,t,n)}static fromSQL(e,t={}){let[n,i]=nk(e);return iT(n,i,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new c("need to specify a reason the DateTime is invalid");let n=e instanceof ej?e:new ej(e,t);if(!eO.throwOnInvalid)return new iH({invalid:n});throw new a(n)}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){let n=ip(e,ev.fromObject(t));return n?n.map(e=>e?e.val:null).join(""):null}static expandFormat(e,t={}){return iu(tG.parseFormat(e),ev.fromObject(t)).map(e=>e.val).join("")}static resetCache(){i=void 0,iB.clear()}get(e){return this[e]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}
vendor: 4,461 bytes, line 424
424get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?iy(this).weekYear:NaN}get weekNumber(){return this.isValid?iy(this).weekNumber:NaN}get weekday(){return this.isValid?iy(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?i_(this).weekday:NaN}get localWeekNumber(){return this.isValid?i_(this).weekNumber:NaN}get localWeekYear(){return this.isValid?i_(this).weekYear:NaN}get ordinal(){return this.isValid?eZ(this.c).ordinal:NaN}get monthShort(){return this.isValid?nZ.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?nZ.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?nZ.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?nZ.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let e=864e5,t=6e4,n=tf(this.c),i=this.zone.offset(n-e),r=this.zone.offset(n+e),a=this.zone.offset(n-i*t),s=this.zone.offset(n-r*t);if(a===s)return[this];let o=n-a*t,l=n-s*t,u=iC(o,a),c=iC(l,s);return u.hour===c.hour&&u.minute===c.minute&&u.second===c.second&&u.millisecond===c.millisecond?[ib(this,{ts:o}),ib(this,{ts:l})]:[this]}get isInLeapYear(){return tc(this.year)}get daysInMonth(){return th(this.year,this.month)}get daysInYear(){return this.isValid?td(this.year):NaN}get weeksInWeekYear(){return this.isValid?tm(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?tm(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){let{locale:t,numberingSystem:n,calendar:i}=tG.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:n,outputCalendar:i}}toUTC(e=0,t={}){return this.setZone(e_.instance(e),t)}toLocal(){return this.setZone(eO.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:n=!1}={}){if((e=ex(e,eO.defaultZone)).equals(this.zone))return this;if(!e.isValid)return iH.invalid(iv(e));{let i=this.ts;if(t||n){let t=e.offset(this.ts),n=this.toObject();[i]=iE(n,t,e)}return ib(this,{ts:i,zone:e})}}reconfigure({locale:e,numberingSystem:t,outputCalendar:n}={}){return ib(this,{loc:this.loc.clone({locale:e,numberingSystem:t,outputCalendar:n})})}setLocale(e){return this.reconfigure({locale:e})}set(e){let t;if(!this.isValid)return this;let n=tb(e,iF),{minDaysInFirstWeek:i,startOfWeek:r}=eK(n,this.loc),a=!e1(n.weekYear)||!e1(n.weekNumber)||!e1(n.weekday),s=!e1(n.ordinal),o=!e1(n.year),u=!e1(n.month)||!e1(n.day),c=o||u,d=n.weekYear||n.weekNumber;if((c||s)&&d)throw new l("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&s)throw new l("Can't mix ordinal dates with month/day");a?t=e$({...eW(this.c,i,r),...n},i,r):e1(n.ordinal)?(t={...this.toObject(),...n},e1(n.day)&&(t.day=Math.min(th(t.year,t.month),t.day))):t=eY({...eZ(this.c),...n});let[h,f]=iE(t,this.o,this.zone);return ib(this,{ts:h,o:f})}plus(e){return this.isValid?ib(this,iw(this,nz.fromDurationLike(e))):this}minus(e){return this.isValid?ib(this,iw(this,nz.fromDurationLike(e).negate())):this}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;let n={},i=nz.normalizeUnit(e);switch(i){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0}
424if("weeks"===i){if(t){let e=this.loc.getStartOfWeek(),{weekday:t}=this;t<e&&(n.weekNumber=this.weekNumber-1),n.weekday=e}else n.weekday=1}if("quarters"===i){let e=Math.ceil(this.month/3);n.month=(e-1)*3+1}return this.set(n)}endOf(e,t){return this.isValid?this.plus({[e]:1}).startOf(e,t).minus(1):this}toFormat(e,t={}){return this.isValid?tG.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):im}toLocaleString(e=m,t={}){return this.isValid?tG.create(this.loc.clone(t),e).formatDateTime(this):im}toLocaleParts(e={}){return this.isValid?tG.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:n=!1,includeOffset:i=!0,extendedZone:r=!1}={}){if(!this.isValid)return null;let a="extended"===e;return iL(this,a)+"T"+iP(this,a,t,n,i,r)}toISODate({format:e="extended"}={}){return this.isValid?iL(this,"extended"===e):null}toISOWeekDate(){return iS(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:n=!0,includePrefix:i=!1,extendedZone:r=!1,format:a="extended"}={}){return this.isValid?(i?"T":"")+iP(this,"extended"===a,t,e,n,r):null}toRFC2822(){return iS(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return iS(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?iL(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:n=!0}={}){let i="HH:mm:ss.SSS";return(t||e)&&(n&&(i+=" "),t?i+="z":e&&(i+="ZZ")),iS(this,i,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():im}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};let t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",n={}){if(!this.isValid||!e.isValid)return nz.invalid("created by diffing an invalid DateTime");let i={locale:this.locale,numberingSystem:this.numberingSystem,...n},r=e7(t).map(nz.normalizeUnit),a=e.valueOf()>this.valueOf(),s=nX(a?this:e,a?e:this,r,i);return a?s.negate():s}diffNow(e="milliseconds",t={}){return this.diff(iH.now(),e,t)}until(e){return this.isValid?n$.fromDateTimes(this,e):this}hasSame(e,t,n){if(!this.isValid)return!1;let i=e.valueOf(),r=this.setZone(e.zone,{keepLocalTime:!0});return r.startOf(t,n)<=i&&i<=r.endOf(t,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;let t=e.base||iH.fromObject({},{zone:this.zone}),n=e.padding?this<t?-e.padding:e.padding:0,i=["years","months","days","hours","minutes","seconds"],r=e.unit;return Array.isArray(e.unit)&&(i=e.unit,r=void 0),iU(t,this.plus(n),{...e,numeric:"always",units:i,unit:r})}toRelativeCalendar(e={}){return this.isValid?iU(e.base||iH.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(iH.isDateTime))throw new c("min requires all arguments be DateTimes");return e9(e,e=>e.valueOf(),Math.min)}static max(...e){if(!e.every(iH.isDateTime))throw new c("max requires all arguments be DateTimes");return e9(e,e=>e.valueOf(),Math.max)}static fromFormatExplain(e,t,n={}){let{locale:i=null,numberingSystem:r=null}=n;return id(ev.fromOpts({locale:i,numberingSystem:r,defaultToEN:!0}),e,t)}static fromStringExplain(e,t,n={}){return iH.fromFormatExplain(e,t,n)}static buildFormatParser(e,t={}){let{locale:n=null,numberingSystem:i=null}=t;return new ic(ev.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0}),e)}static fromFormatParser(e,t,n={}){if(e1(e)||e1(t))throw new c("fromFormatParser requires an input string and a format parser");let{locale:i=null,numberingSystem:r=null}=n,a=ev.fromOpts({locale:i,numberingSystem:r,defaultToEN:!0});if(!a.equals(t.locale))throw new c(`fromFormatParser called with a locale of ${a}, but the format parser was created for ${t.locale}`);let{result:s,zone:o,specificOffset:l,invalidReason:u}=t.explainFromTokens(e);return u?iH.invalid(u):iT(s,o,n,`format ${t.format}`,e,l)}static get DATE_SHORT(){return m}static get DATE_MED(){return g}static get DATE_MED_WITH_WEEKDAY(){return v}static get DATE_FULL(){return y}static get DATE_HUGE(){return _}static get TIME_SIMPLE(){return b}static get TIME_WITH_SECONDS(){return x}static get TIME_WITH_SHORT_OFFSET(){return C}static get TIME_WITH_LONG_OFFSET(){return E}static get TIME_24_SIMPLE(){return w}static get TIME_24_WITH_SECONDS(){return T}static get TIME_24_WITH_SHORT_OFFSET(){return S}static get TIME_24_WITH_LONG_OFFSET(){return L}static get DATETIME_SHORT(){return P}static get DATETIME_SHORT_WITH_SECONDS(){return M}static get DATETIME_MED(){return A}static get DATETIME_MED_WITH_SECONDS(){return I}static get DATETIME_MED_WITH_WEEKDAY(){return R}static get DATETIME_FULL(){return k}static get DATETIME_FULL_WITH_SECONDS(){return D}static get DATETIME_HUGE(){return N}static get DATETIME_HUGE_WITH_SECONDS(){return F}}function iG(e){if(iH.isDateTime(e))return e;if(e&&e.valueOf&&e2(e.valueOf()))return iH.fromJSDate(e);if(e&&"object"==typeof e)return iH.fromObject(e);throw new c(`Unknown datetime argument: ${e}, of type ${typeof e}`)}},70772:function(e,t,n){"use strict";function i(e){return"object"==typeof e&&!Array.isArray(e)}n.d(t,{j:function(){return ee}});var r=n(7900);function a(e,t,n,a){return"string"==typeof e&&i(t)?(0,r.I)(e,n,a):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function s(e,t,n){return e*(t+1)}function o(e,t,n,i){return"number"==typeof t?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):"<"===t?n:i.get(t)??e}var l=n(98272);
424let u=(e,t,n)=>{let i=t-e;return((n-e)%i+i)%i+e};var c=n(88181);function d(e,t){return(0,c.N)(e)?e[u(0,e.length,t)]:e}var h=n(39515);function f(e,t,n){for(let i=0;i<e.length;i++){let r=e[i];r.at>t&&r.at<n&&((0,h.cl)(e,r),i--)}}function p(e,t,n,i,r,a){f(e,r,a);for(let s=0;s<t.length;s++)e.push({value:t[s],at:(0,l.t)(r,a,i[s]),easing:d(n,s)})}function m(e,t){for(let n=0;n<e.length;n++)e[n]=e[n]/(t+1)}function g(e,t){return e.at!==t.at?e.at-t.at:null===e.value?1:null===t.value?-1:0}var v=n(9585),y=n(11354),_=n(45283),b=n(42982),x=n(45845),C=n(15888),E=n(49181),w=n(718);let T="easeInOut",S=20;function L(e,{defaultTransition:t={},...n}={},i,r){let l=t.duration||.3,u=new Map,c=new Map,h={},f=new Map,L=0,R=0,D=0;for(let n=0;n<e.length;n++){let u=e[n];if("string"==typeof u){f.set(u,R);continue}if(!Array.isArray(u)){f.set(u.name,o(R,u.at,L,f));continue}let[g,E,T={}]=u;void 0!==T.at&&(R=o(R,T.at,L,f));let N=0,F=(e,n,i,a=0,o=0)=>{let u=A(e),{delay:c=0,times:h=(0,y.Y)(u),type:f="keyframes",repeat:g,repeatType:v,repeatDelay:E=0,...T}=n,{ease:L=t.ease||"easeOut",duration:P}=n,M="function"==typeof c?c(a,o):c,I=u.length,F=(0,_.x)(f)?f:r?.[f];if(I<=2&&F){let e=100;2===I&&k(u)&&(e=Math.abs(u[1]-u[0]));let t={...T};void 0!==P&&(t.duration=(0,w.w)(P));let n=(0,b.S)(t,e,F);L=n.ease,P=n.duration}P??(P=l);let O=R+M;1===h.length&&0===h[0]&&(h[1]=1);let j=h.length-u.length;if(j>0&&(0,x.c)(h,j),1===u.length&&u.unshift(null),g){(0,C.k)(g<S,"Repeat count too high, must be less than 20"),P=s(P,g);let e=[...u],t=[...h],n=[...L=Array.isArray(L)?[...L]:[L]];for(let i=0;i<g;i++){u.push(...e);for(let r=0;r<e.length;r++)h.push(t[r]+(i+1)),L.push(0===r?"linear":d(n,r-1))}m(h,g)}let U=O+P;p(i,u,L,h,O,U),N=Math.max(M+P,N),D=Math.max(U,D)};if((0,v.i)(g))F(E,T,M("default",P(g,c)));else{let e=a(g,E,i,h),t=e.length;for(let n=0;n<t;n++){let i=P(e[n],c);for(let e in E)F(E[e],I(T,e),M(e,i),n,t)}}L=R,R+=N}return c.forEach((e,i)=>{for(let r in e){let a=e[r];a.sort(g);let s=[],o=[],l=[];for(let e=0;e<a.length;e++){let{at:t,value:n,easing:i}=a[e];s.push(n),o.push((0,E.Y)(0,D,t)),l.push(i||"easeOut")}0!==o[0]&&(o.unshift(0),s.unshift(s[0]),l.unshift(T)),1!==o[o.length-1]&&(o.push(1),s.push(null)),u.has(i)||u.set(i,{keyframes:{},transition:{}});let c=u.get(i);c.keyframes[r]=s,c.transition[r]={...t,duration:D,ease:l,times:o,...n}}}),u}function P(e,t){return t.has(e)||t.set(e,{}),t.get(e)}function M(e,t){return t[e]||(t[e]=[]),t[e]}function A(e){return Array.isArray(e)?e:[e]}function I(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}let R=e=>"number"==typeof e,k=e=>e.every(R);var D=n(95483),N=n(48208),F=n(63138),O=n(63427),j=n(97227);function U(e,t){return e in t}class V extends j.l{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,t){if(U(t,e)){let n=e[t];if("string"==typeof n||"number"==typeof n)return n}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return(0,O.dO)()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}}var B=n(83470),H=n(66326),G=n(65569);function z(e){let t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=(0,H.v)(e)&&!(0,G.r)(e)?new B.e(t):new F.W(t);n.mount(e),D.R.set(e,n)}function q(e){let t=new V({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});t.mount(e),D.R.set(e,t)}var W=n(30379);function $(e,t){return(0,v.i)(e)||"number"==typeof e||"string"==typeof e&&!i(t)}function Z(e,t,n,r){let s=[];if($(e,t))s.push((0,W.D)(e,i(t)&&t.default||t,n&&n.default||n));else{let i=a(e,t,r),o=i.length;(0,C.k)(!!o,"No valid elements provided.");for(let e=0;e<o;e++){let r=i[e],a=r instanceof Element?z:q;D.R.has(r)||a(r);let l=D.R.get(r),u={...n};"delay"in u&&"function"==typeof u.delay&&(u.delay=u.delay(e,o)),s.push(...(0,N.w)(l,{...t,transition:u},{}))}}return s}var Y=n(1225);function K(e,t,n){let i=[];return L(e,t,n,{spring:Y.S}).forEach(({keyframes:e,transition:t},n)=>{i.push(...Z(n,e,t))}),i}class X{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class Q extends X{then(e,t){return this.finished.finally(e).then(()=>{})}}function J(e){return Array.isArray(e)&&e.some(Array.isArray)}let ee=function(e){return function(t,n,i){let r=[],a=new Q(r=J(t)?K(t,n,void 0):Z(t,n,i,void 0));return e&&e.animations.push(a),a}}()},30379:function(e,t,n){"use strict";n.d(t,{D:function(){return s}});var i=n(68972),r=n(9585),a=n(15353);function s(e,t,n){let s=(0,r.i)(e)?e:(0,a.BX)(e);return s.start((0,i.v)("",s,t,n)),s.animation}},68972:function(e,t,n){"use strict";n.d(t,{v:function(){return e8}});let i=e=>null!==e;function r(e,{repeat:t,repeatType:n="loop"},r){let a=e.filter(i),s=t&&"loop"!==n&&t%2==1?0:a.length-1;return s&&void 0!==r?r:a[s]}var a=n(36297);let s={type:"spring",stiffness:500,damping:25,restSpeed:10},o=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),l={type:"keyframes",duration:.8},u={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},c=(e,{keyframes:t})=>t.length>2?l:a.G.has(e)?e.startsWith("scale")?o(t[1]):s:u;function d({when:e,delay:t,delayChildren:n,staggerChildren:i,staggerDirection:r,repeat:a,repeatType:s,repeatDelay:o,from:l,elapsed:u,...c}){return!!Object.keys(c).length}var h=n(70128),f=n(718),p=n(55732),m=n(75364),g=n(5293),v=n(13153),y=n(19566),_=n(10058),b=n(90477),x=n(29250),C=n(90973);function E(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function w({hue:e,saturation:t,lightness:n,alpha:i}
424){e/=360,n/=100;let r=0,a=0,s=0;if(t/=100){let i=n<.5?n*(1+t):n+t-n*t,o=2*n-i;r=E(o,i,e+1/3),a=E(o,i,e),s=E(o,i,e-1/3)}else r=a=s=n;return{red:Math.round(255*r),green:Math.round(255*a),blue:Math.round(255*s),alpha:i}}var T=n(76599);function S(e,t){return n=>n>0?t:e}var L=n(98272),P=n(15888);let M=(e,t,n)=>{let i=e*e,r=n*(t*t-i)+i;return r<0?0:Math.sqrt(r)},A=[x.$,T.m,C.J],I=e=>A.find(t=>t.test(e));function R(e){let t=I(e);if((0,P.K)(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===C.J&&(n=w(n)),n}let k=(e,t)=>{let n=R(e),i=R(t);if(!n||!i)return S(e,t);let r={...n};return e=>(r.red=M(n.red,i.red,e),r.green=M(n.green,i.green,e),r.blue=M(n.blue,i.blue,e),r.alpha=(0,L.t)(n.alpha,i.alpha,e),T.m.transform(r))},D=new Set(["none","hidden"]);function N(e,t){return D.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}var F=n(79552);function O(e,t){return n=>(0,L.t)(e,t,n)}function j(e){return"number"==typeof e?O:"string"==typeof e?(0,y.t)(e)?S:_.$.test(e)?k:H:Array.isArray(e)?U:"object"==typeof e?_.$.test(e)?k:V:S}function U(e,t){let n=[...e],i=n.length,r=e.map((e,n)=>j(e)(e,t[n]));return e=>{for(let t=0;t<i;t++)n[t]=r[t](e);return n}}function V(e,t){let n={...e,...t},i={};for(let r in n)void 0!==e[r]&&void 0!==t[r]&&(i[r]=j(e[r])(e[r],t[r]));return e=>{for(let t in i)n[t]=i[t](e);return n}}function B(e,t){let n=[],i={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){let a=t.types[r],s=e.indexes[a][i[a]],o=e.values[s]??0;n[r]=o,i[a]++}return n}let H=(e,t)=>{let n=b.P.createTransformer(t),i=(0,b.V)(e),r=(0,b.V)(t);return i.indexes.var.length===r.indexes.var.length&&i.indexes.color.length===r.indexes.color.length&&i.indexes.number.length>=r.indexes.number.length?D.has(e)&&!r.values.length||D.has(t)&&!i.values.length?N(e,t):(0,F.z)(U(B(i,r),r.values),n):((0,P.K)(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),S(e,t))};function G(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?(0,L.t)(e,t,n):j(e)(e,t)}let z=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>m.Wi.update(t,e),stop:()=>(0,m.Pn)(t),now:()=>m.frameData.isProcessing?m.frameData.timestamp:g.X.now()}};var q=n(1225),W=n(85380);function $({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:a=500,modifyTarget:s,min:o,max:l,restDelta:u=.5,restSpeed:c}){let d,h;let f=e[0],p={done:!1,value:f},m=e=>void 0!==o&&e<o||void 0!==l&&e>l,g=e=>void 0===o?l:void 0===l?o:Math.abs(o-e)<Math.abs(l-e)?o:l,v=n*t,y=f+v,_=void 0===s?y:s(y);_!==y&&(v=_-f);let b=e=>-v*Math.exp(-e/i),x=e=>_+b(e),C=e=>{let t=b(e),n=x(e);p.done=Math.abs(t)<=u,p.value=p.done?_:n},E=e=>{m(p.value)&&(d=e,h=(0,q.S)({keyframes:[p.value,g(p.value)],velocity:(0,W.P)(x,e,p.value),damping:r,stiffness:a,restDelta:u,restSpeed:c}))};return E(0),{calculatedDuration:null,next:e=>{let t=!1;return(h||void 0!==d||(t=!0,C(e),E(e)),void 0!==d&&e>=d)?h.next(e-d):(t||C(e),p)}}}var Z=n(45060),Y=n(52308),K=n(49181);function X(e,t,n){let i=[],r=n||p.c.mix||G,a=e.length-1;for(let n=0;n<a;n++){let a=r(e[n],e[n+1]);if(t){let e=Array.isArray(t)?t[n]||Y.Z:t;a=(0,F.z)(e,a)}i.push(a)}return i}function Q(e,t,{clamp:n=!0,ease:i,mixer:r}={}){let a=e.length;if((0,P.k)(a===t.length,"Both input and output ranges must be the same length"),1===a)return()=>t[0];if(2===a&&t[0]===t[1])return()=>t[1];let s=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let o=X(t,i,r),l=o.length,u=n=>{if(s&&n<e[0])return t[0];let i=0;if(l>1)for(;i<e.length-2&&!(n<e[i+1]);i++);let r=(0,K.Y)(e[i],e[i+1],n);return o[i](r)};return n?t=>u((0,Z.u)(e[0],e[a-1],t)):u}var J=n(11354);function ee(e,t){return e.map(e=>e*t)}let et=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,en=1e-7,ei=12;function er(e,t,n,i,r){let a,s;let o=0;do(a=et(s=t+(n-t)/2,i,r)-e)>0?n=s:t=s;while(Math.abs(a)>en&&++o<ei);return s}function ea(e,t,n,i){if(e===t&&n===i)return Y.Z;let r=t=>er(t,0,1,e,n);return e=>0===e||1===e?e:et(r(e),t,i)}let es=ea(.42,0,1,1),eo=ea(0,0,.58,1),el=ea(.42,0,.58,1);var eu=n(88181),ec=n(82669),ed=n(21219);let eh=ea(.33,1.53,.69,.99),ef=(0,ed.M)(eh),ep=(0,ec.o)(ef),em=e=>(e*=2)<1?.5*ef(e):.5*(2-Math.pow(2,-10*(e-1)));var eg=n(28105);let ev=e=>Array.isArray(e)&&"number"==typeof e[0],ey={linear:Y.Z,easeIn:es,easeInOut:el,easeOut:eo,circIn:eg.Z7,circInOut:eg.X7,circOut:eg.Bn,backIn:ef,backInOut:ep,backOut:eh,anticipate:em},e_=e=>"string"==typeof e,eb=e=>{if(ev(e)){(0,P.k)(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,n,i,r]=e;return ea(t,n,i,r)}return e_(e)?((0,P.k)(void 0!==ey[e],`Invalid easing type '${e}'`),ey[e]):e};function ex(e,t){return e.map(()=>t||el).splice(0,e.length-1)}function eC({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){let r=(0,eu.N)(i)?i.map(eb):eb(i),a={done:!1,value:t[0]},s=Q(ee(n&&n.length===t.length?n:(0,J.Y)(t),e),t,{ease:Array.isArray(r)?r:ex(t,r)});return{calculatedDuration:e,next:t=>(a.value=s(t),a.done=t>=e,a)}}var eE=n(47633);let ew=e=>null!==e;function eT(e,{repeat:t,repeatType:n="loop"}
424,i,r=1){let a=e.filter(ew),s=r<0||t&&"loop"!==n&&t%2==1?0:a.length-1;return s&&void 0!==i?i:a[s]}let eS={decay:$,inertia:$,tween:eC,keyframes:eC,spring:q.S};function eL(e){"string"==typeof e.type&&(e.type=eS[e.type])}class eP{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let eM=e=>e/100;class eA extends eP{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==g.X.now()&&this.tick(g.X.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},v.P.mainThread++,this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;eL(e);let{type:t=eC,repeat:n=0,repeatDelay:i=0,repeatType:r,velocity:a=0}=e,{keyframes:s}=e,o=t||eC;o!==eC&&"number"!=typeof s[0]&&(this.mixKeyframes=(0,F.z)(eM,G(s[0],s[1])),s=[0,100]);let l=o({...e,keyframes:s});"mirror"===r&&(this.mirroredGenerator=o({...e,keyframes:[...s].reverse(),velocity:-a})),null===l.calculatedDuration&&(l.calculatedDuration=(0,eE.i)(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(n+1)-i,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let{generator:n,totalDuration:i,mixKeyframes:r,mirroredGenerator:a,resolvedDuration:s,calculatedDuration:o}=this;if(null===this.startTime)return n.next(0);let{delay:l=0,keyframes:u,repeat:c,repeatType:d,repeatDelay:h,type:f,onUpdate:p,finalKeyframe:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?g<0:g>i;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=i);let y=this.currentTime,_=n;if(c){let e=Math.min(this.currentTime,i)/s,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,c+1))%2&&("reverse"===d?(n=1-n,h&&(n-=h/s)):"mirror"===d&&(_=a)),y=(0,Z.u)(0,1,n)*s}let b=v?{done:!1,value:u[0]}:_.next(y);r&&(b.value=r(b.value));let{done:x}=b;v||null===o||(x=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);let C=null===this.holdTime&&("finished"===this.state||"running"===this.state&&x);return C&&f!==$&&(b.value=eT(u,this.options,m,this.speed)),p&&p(b.value),C&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return(0,f.X)(this.calculatedDuration)}get time(){return(0,f.X)(this.currentTime)}set time(e){e=(0,f.w)(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(g.X.now());let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=(0,f.X)(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=z,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(g.X.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,v.P.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}var eI=n(63990);let eR=e=>e.startsWith("--");
424function ek(e,t,n){eR(t)?e.style.setProperty(t,n):e.style[t]=n}function eD(e){let t;return()=>(void 0===t&&(t=e()),t)}let eN=eD(()=>void 0!==window.ScrollTimeline);var eF=n(19062);let eO={},ej=function(e,t){let n=eD(e);return()=>eO[t]??n()}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing");var eU=n(5714);let eV=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,eB={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:eV([0,.65,.55,1]),circOut:eV([.55,0,1,.45]),backIn:eV([.31,.01,.66,-.59]),backOut:eV([.33,1.53,.69,.99])};function eH(e,t){if(e)return"function"==typeof e?ej()?(0,eU.w)(e,t):"ease-out":ev(e)?eV(e):Array.isArray(e)?e.map(e=>eH(e,t)||eB.easeOut):eB[e]}function eG(e,t,n,{delay:i=0,duration:r=300,repeat:a=0,repeatType:s="loop",ease:o="easeOut",times:l}={},u){let c={[t]:n};l&&(c.offset=l);let d=eH(o,r);Array.isArray(d)&&(c.easing=d),eF.f.value&&v.P.waapi++;let h={delay:i,duration:r,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:a+1,direction:"reverse"===s?"alternate":"normal"};u&&(h.pseudoElement=u);let f=e.animate(c,h);return eF.f.value&&f.finished.finally(()=>{v.P.waapi--}),f}var ez=n(45283);function eq({type:e,...t}){return(0,ez.x)(e)&&ej()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class eW extends eP{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;let{element:t,name:n,keyframes:i,pseudoElement:r,allowFlatten:a=!1,finalKeyframe:s,onComplete:o}=e;this.isPseudoElement=!!r,this.allowFlatten=a,this.options=e,(0,P.k)("string"!=typeof e.type,'animateMini doesn\'t support "type" as a string. Did you mean to import { spring } from "motion"?');let l=eq(e);this.animation=eG(t,n,i,l,r),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let e=eT(i,this.options,s,this.speed);this.updateMotionValue?this.updateMotionValue(e):ek(t,n,e),this.animation.cancel()}o?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return(0,f.X)(Number(e))}get time(){return(0,f.X)(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=(0,f.w)(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&eN())?(this.animation.timeline=e,Y.Z):t(this)}}let e$={anticipate:em,backInOut:ep,circInOut:eg.X7};function eZ(e){return e in e$}function eY(e){"string"==typeof e.ease&&eZ(e.ease)&&(e.ease=e$[e.ease])}let eK=10;class eX extends eW{constructor(e){eY(e),eL(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:i,element:r,...a}=this.options;if(!t)return;if(void 0!==e){t.set(e);return}let s=new eA({...a,autoplay:!1}),o=(0,f.w)(this.finishedTime??this.time);t.setWithVelocity(s.sample(o-eK).value,s.sample(o).value,eK),s.stop()}}let eQ=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(b.P.test(e)||"0"===e)&&!e.startsWith("url("));function eJ(e){let t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function e0(e,t,n,i){let r=e[0];if(null===r)return!1;if("display"===t||"visibility"===t)return!0;let a=e[e.length-1],s=eQ(r,t),o=eQ(a,t);return(0,P.K)(s===o,`You are trying to animate ${t} from "${r}" to "${a}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${a} via the \`style\` property.`),!!s&&!!o&&(eJ(e)||("spring"===n||(0,ez.x)(n))&&i)}var e1=n(52099);let e2=new Set(["opacity","clipPath","filter","transform"]),e3=eD(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function e5(e){let{motionValue:t,name:n,repeatDelay:i,repeatType:r,damping:a,type:s}=e;if(!(0,e1.R)(t?.owner?.current))return!1;
424let{onUpdate:o,transformTemplate:l}=t.owner.getProps();return e3()&&n&&e2.has(n)&&("transform"!==n||!l)&&!o&&!i&&"mirror"!==r&&0!==a&&"inertia"!==s}let e4=40;class e6 extends eP{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:a="loop",keyframes:s,name:o,motionValue:l,element:u,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=g.X.now();let d={autoplay:e,delay:t,type:n,repeat:i,repeatDelay:r,repeatType:a,name:o,motionValue:l,element:u,...c},h=u?.KeyframeResolver||eI.e;this.keyframeResolver=new h(s,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),o,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,i){this.keyframeResolver=void 0;let{name:r,type:a,velocity:s,delay:o,isHandoff:l,onUpdate:u}=n;this.resolvedAt=g.X.now(),e0(e,r,a,s)||((p.c.instantAnimations||!o)&&u?.(eT(e,n,t)),e[0]=e[e.length-1],n.duration=0,n.repeat=0);let c={startTime:i?this.resolvedAt&&this.resolvedAt-this.createdAt>e4?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},d=!l&&e5(c)?new eX({...c,element:c.motionValue.owner.current}):new eA(c);d.finished.then(()=>this.notifyFinished()).catch(Y.Z),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),(0,eI.m)()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let e8=(e,t,n,i={},a,s)=>o=>{let l=(0,h.e)(i,e)||{},u=l.delay||i.delay||0,{elapsed:g=0}=i;g-=(0,f.w)(u);let v={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-g,onUpdate:e=>{t.set(e),l.onUpdate&&l.onUpdate(e)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:s?void 0:a};d(l)||Object.assign(v,c(e,v)),v.duration&&(v.duration=(0,f.w)(v.duration)),v.repeatDelay&&(v.repeatDelay=(0,f.w)(v.repeatDelay)),void 0!==v.from&&(v.keyframes[0]=v.from);let y=!1;if(!1!==v.type&&(0!==v.duration||v.repeatDelay)||(v.duration=0,0!==v.delay||(y=!0)),(p.c.instantAnimations||p.c.skipAnimations)&&(y=!0,v.duration=0,v.delay=0),v.allowFlatten=!l.type&&!l.ease,y&&!s&&void 0!==t.get()){let e=r(v.keyframes,l);if(void 0!==e){m.Wi.update(()=>{v.onUpdate(e),v.onComplete()});return}}return l.isSync?new eA(v):new e6(v)}},48208:function(e,t,n){"use strict";n.d(t,{w:function(){return g}});var i=n(16181),r=n(5196),a=n(15353);function s(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,(0,a.BX)(n))}function o(e){return(0,i.C)(e)?e[e.length-1]||0:e}function l(e,t){let{transitionEnd:n={},transition:i={},...a}=(0,r.x)(e,t)||{};for(let t in a={...a,...n}){let n=o(a[t]);s(e,t,n)}}var u=n(82685),c=n(49588),d=n(68972),h=n(70128),f=n(75364),p=n(16467);function m({protectedKeys:e,needsAnimating:t},n){let i=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,i}function g(e,t,{delay:n=0,transitionOverride:i,type:r}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:s,...o}=t;i&&(a=i);let g=[],v=r&&e.animationState&&e.animationState.getState()[r];for(let t in o){let i=e.getValue(t,e.latestValues[t]??null),r=o[t];if(void 0===r||v&&m(v,t))continue;let s={delay:n,...(0,h.e)(a||{},t)},l=i.get();if(void 0!==l&&!i.isAnimating&&!Array.isArray(r)&&r===l&&!s.velocity)continue;let y=!1;if(window.MotionHandoffAnimation){let n=(0,c.s)(e);
424if(n){let e=window.MotionHandoffAnimation(n,t,f.Wi);null!==e&&(s.startTime=e,y=!0)}}(0,u.K)(e,t),i.start((0,d.v)(t,i,r,e.shouldReduceMotion&&p.z.has(t)?{type:!1}:s,e,y));let _=i.animation;_&&g.push(_)}return s&&Promise.all(g).then(()=>{f.Wi.update(()=>{s&&l(e,s)})}),g}},80949:function(e,t,n){"use strict";n.d(t,{M:function(){return a}});var i=n(53246);let r="framerAppearId",a="data-"+(0,i.D)(r)},49588:function(e,t,n){"use strict";n.d(t,{s:function(){return r}});var i=n(80949);function r(e){return e.props[i.M]}},80488:function(e,t,n){"use strict";function i(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}n.d(t,{H:function(){return i}})},16181:function(e,t,n){"use strict";n.d(t,{C:function(){return i}});let i=e=>Array.isArray(e)},30775:function(e,t,n){"use strict";n.d(t,{M:function(){return y}});var i=n(85893),r=n(67294),a=n(40910),s=n(47281),o=n(14822),l=n(4048),u=n(77439),c=n(52099);class d extends r.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,n=(0,c.R)(e)&&e.offsetWidth||0,i=this.props.sizeRef.current;i.height=t.offsetHeight||0,i.width=t.offsetWidth||0,i.top=t.offsetTop,i.left=t.offsetLeft,i.right=n-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function h({children:e,isPresent:t,anchorX:n}){let a=(0,r.useId)(),s=(0,r.useRef)(null),o=(0,r.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:l}=(0,r.useContext)(u._);return(0,r.useInsertionEffect)(()=>{let{width:e,height:i,top:r,left:u,right:c}=o.current;if(t||!s.current||!e||!i)return;let d="left"===n?`left: ${u}`:`right: ${c}`;s.current.dataset.motionPopId=a;let h=document.createElement("style");return l&&(h.nonce=l),document.head.appendChild(h),h.sheet&&h.sheet.insertRule(` 425 [data-motion-pop-id="${a}"] { 426 position: absolute !important; 427 width: ${e}px !important; 428 height: ${i}px !important; 429 ${d}px !important; 430 top: ${r}px !important; 431 } 432 `),()=>{document.head.contains(h)&&document.head.removeChild(h)}},[t]),(0,i.jsx)(d,{isPresent:t,childRef:s,sizeRef:o,children:r.cloneElement(e,{ref:s})})}let f=({children:e,initial:t,isPresent:n,onExitComplete:a,custom:o,presenceAffectsLayout:u,mode:c,anchorX:d})=>{let f=(0,s.h)(p),m=(0,r.useId)(),g=!0,v=(0,r.useMemo)(()=>(g=!1,{id:m,initial:t,isPresent:n,custom:o,onExitComplete:e=>{for(let t of(f.set(e,!0),f.values()))if(!t)return;a&&a()},register:e=>(f.set(e,!1),()=>f.delete(e))}),[n,f,a]);return u&&g&&(v={...v}),(0,r.useMemo)(()=>{f.forEach((e,t)=>f.set(t,!1))},[n]),r.useEffect(()=>{n||f.size||!a||a()},[n]),"popLayout"===c&&(e=(0,i.jsx)(h,{isPresent:n,anchorX:d,children:e})),(0,i.jsx)(l.O.Provider,{value:v,children:e})};function p(){return new Map}var m=n(89805);let g=e=>e.key||"";function v(e){let t=[];return r.Children.forEach(e,e=>{(0,r.isValidElement)(e)&&t.push(e)}),t}let y=({children:e,custom:t,initial:n=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:c="sync",propagate:d=!1,anchorX:h="left"})=>{let[p,y]=(0,m.oO)(d),_=(0,r.useMemo)(()=>v(e),[e]),b=d&&!p?[]:_.map(g),x=(0,r.useRef)(!0),C=(0,r.useRef)(_),E=(0,s.h)(()=>new Map),[w,T]=(0,r.useState)(_),[S,L]=(0,r.useState)(_);(0,o.L)(()=>{x.current=!1,C.current=_;for(let e=0;e<S.length;e++){let t=g(S[e]);b.includes(t)?E.delete(t):!0!==E.get(t)&&E.set(t,!1)}},[S,b.length,b.join("-")]);let P=[];if(_!==w){let e=[..._];for(let t=0;t<S.length;t++){let n=S[t],i=g(n);b.includes(i)||(e.splice(t,0,n),P.push(n))}return"wait"===c&&P.length&&(e=P),L(v(e)),T(_),null}let{forceRender:M}=(0,r.useContext)(a.p);return(0,i.jsx)(i.Fragment,{children:S.map(e=>{let r=g(e),a=(!d||!!p)&&(_===S||b.includes(r)),s=()=>
432{if(!E.has(r))return;E.set(r,!0);let e=!0;E.forEach(t=>{t||(e=!1)}),e&&(M?.(),L(C.current),d&&y?.(),l&&l())};return(0,i.jsx)(f,{isPresent:a,initial:(!x.current||!!n)&&void 0,custom:t,presenceAffectsLayout:u,mode:c,onExitComplete:a?void 0:s,anchorX:h,children:e},r)})})}},89805:function(e,t,n){"use strict";n.d(t,{hO:function(){return s},oO:function(){return a}});var i=n(67294),r=n(4048);function a(e=!0){let t=(0,i.useContext)(r.O);if(null===t)return[!0,null];let{isPresent:n,onExitComplete:a,register:s}=t,o=(0,i.useId)();(0,i.useEffect)(()=>{if(e)return s(o)},[e]);let l=(0,i.useCallback)(()=>e&&a&&a(o),[o,a,e]);return!n&&a?[!1,l]:[!0]}function s(){return o((0,i.useContext)(r.O))}function o(e){return null===e||e.isPresent}},40910:function(e,t,n){"use strict";n.d(t,{p:function(){return i}});let i=(0,n(67294).createContext)({})},77439:function(e,t,n){"use strict";n.d(t,{_:function(){return i}});let i=(0,n(67294).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},4048:function(e,t,n){"use strict";n.d(t,{O:function(){return i}});let i=(0,n(67294).createContext)(null)},17427:function(e,t,n){"use strict";n.d(t,{featureDefinitions:function(){return r}});let i={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},r={};for(let e in i)r[e]={isEnabled:t=>i[e].some(e=>!!t[e])}},7672:function(e,t,n){"use strict";n.d(t,{j:function(){return a}});var i=n(41434),r=n(36297);function a(e,{layout:t,layoutId:n}){return r.G.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!i.P[e]||"opacity"===e)}},53276:function(e,t,n){"use strict";function i({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function r({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function a(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}n.d(t,{d7:function(){return a},i8:function(){return i},z2:function(){return r}})},72895:function(e,t,n){"use strict";n.d(t,{D2:function(){return p},YY:function(){return d},am:function(){return h},o2:function(){return l},q2:function(){return a}});var i=n(34210),r=n(98272);function a(e,t,n){let i=t*(e-n);return n+i}function s(e,t,n,i,r){return void 0!==r&&(e=a(e,r,i)),a(e,n,i)+t}function o(e,t=0,n=1,i,r){e.min=s(e.min,t,n,i,r),e.max=s(e.max,t,n,i,r)}function l(e,{x:t,y:n}){o(e.x,t.translate,t.scale,t.originPoint),o(e.y,n.translate,n.scale,n.originPoint)}let u=.999999999999,c=1.0000000000001;function d(e,t,n,r=!1){let a,s;let o=n.length;if(o){t.x=t.y=1;for(let u=0;u<o;u++){s=(a=n[u]).projectionDelta;let{visualElement:o}=a.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&p(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,l(e,s)),r&&(0,i.ud)(a.latestValues)&&p(e,a.latestValues))}t.x<c&&t.x>u&&(t.x=1),t.y<c&&t.y>u&&(t.y=1)}}function h(e,t){e.min=e.min+t,e.max=e.max+t}function f(e,t,n,i,a=.5){let s=(0,r.t)(e.min,e.max,a);o(e,t,n,s,i)}function p(e,t){f(e.x,t.x,t.scaleX,t.scale,t.originX),f(e.y,t.y,t.scaleY,t.scale,t.originY)}},63427:function(e,t,n){"use strict";n.d(t,{dO:function(){return s},wc:function(){return r}});let i=()=>({translate:0,scale:1,origin:0,originPoint:0}),r=()=>({x:i(),y:i()}),a=()=>({min:0,max:0}),s=()=>({x:a(),y:a()})},41434:function(e,t,n){"use strict";n.d(t,{B:function(){return a},P:function(){return r}});var i=n(19566);let r={};function a(e){for(let t in e)r[t]=e[t],(0,i.f)(t)&&(r[t].isCSSVariable=!0)}},34210:function(e,t,n){"use strict";function i(e){return void 0===e||1===e}function r({scale:e,scaleX:t,scaleY:n}){return!i(e)||!i(t)||!i(n)}function a(e){return r(e)||s(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function s(e){return o(e.x)||o(e.y)}function o(e){return e&&"0%"!==e}n.d(t,{D_:function(){return s},Lj:function(){return r},ud:function(){return a}})},93091:function(e,t,n){"use strict";n.d(t,{J:function(){return a},z:function(){return s}});var i=n(53276),r=n(72895);function a(e,t){return(0,i.i8)((0,i.d7)(e.getBoundingClientRect(),t))}function s(e,t,n){let i=a(e,n),{scroll:s}=t;return s&&((0,r.am)(i.x,s.offset.x),(0,r.am)(i.y,s.offset.y)),i}},97227:function(e,t,n){"use strict";n.d(t,{l:function(){return A}});var i=n(17427),r=n(63427),a=n(28269);let s={current:null},o={current:!1};function l(){if(o.current=!0,a.j){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>s.current=e.matches;e.addListener(t),t()}else s.current=!1}}var u=n(95483),c=n(87602),d=n(9585),h=n(15353);function f(e,t,n){for(let i in t){let r=t[i],a=n[i];if((0,d.i)(r))e.addValue(i,r);else if((0,d.i)(a))e.addValue(i,(0,h.BX)(r,{owner:e}));else if(a!==r){if(e.hasValue(i)){let t=e.getValue(i);!0===t.liveStyle?t.jump(r):t.hasAnimated||t.set(r)}else{let t=e.getStaticValue(i);e.addValue(i,(0,h.BX)(void 0!==t?t:r,{owner:e}))}}}for(let i in n)void 0===t[i]&&e.removeValue(i);return t}var p=n(2145),m=n(63990),g=n(5293),v=n(75364),y=n(36297),_=n(67228),b=n(8688),x=n(10058),C=n(90477),E=n(58193),w=n(51178);let T=[...E.$,x.$,C.P],S=e=>T.find((0,w.l)(e));var L=n(39535),P=n(97689);let M=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class A{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:r,visualState:a},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=m.e,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=g.X.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,v.Wi.render(this.render,!1,!0))};let{latestValues:o,renderState:l}=a;this.latestValues=o,this.baseTarget={...o},this.initialValues=t.initial?{...o}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.blockInitialAnimation=!!r,this.isControllingVariants=(0,c.G)(t),this.isVariantNode=(0,c.M)(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...h}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in h){let t=h[e];void 0!==o[e]&&(0,d.i)(t)&&t.set(o[e],!1)}}mount(e){this.current=e,u.R.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
432h((e,t)=>this.bindToMotionValue(t,e)),o.current||l(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||s.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in this.projection&&this.projection.unmount(),(0,v.Pn)(this.notifyUpdate),(0,v.Pn)(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){let n;this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let i=y.G.has(e);i&&this.onBindTransform&&this.onBindTransform();let r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&v.Wi.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),a=t.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),a(),n&&n(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in i.featureDefinitions){let t=i.featureDefinitions[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):(0,r.dO)()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<M.length;t++){let n=M[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let i=e["on"+n];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=f(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=(0,h.BX)(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=n&&("string"==typeof n&&((0,_.P)(n)||(0,b.W)(n))?n=parseFloat(n):!S(n)&&C.P.test(t)&&(n=(0,L.T)(e,t)),this.setBaseTarget(e,(0,d.i)(n)?n.get():n)),(0,d.i)(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t;let{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let i=(0,p.o)(this.props,n,this.presenceContext?.custom);i&&(t=i[e])}if(n&&void 0!==t)return t;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||(0,d.i)(i)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new P.L),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}},4801:function(e,t,n){"use strict";function i(e){if("undefined"==typeof Proxy)return e;let t=new Map;return new Proxy((...t)=>e(...t),{get:(n,i)=>"create"===i?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}n.d(t,{E:function(){return iA}});var r=n(80488),a=n(5196),s=n(48208);function o(e,t,n={}){let i=(0,a.x)(e,t,"exit"===n.type?e.presenceContext?.custom:void 0),{transition:r=e.getDefaultTransition()||{}}=i||{};
432n.transitionOverride&&(r=n.transitionOverride);let o=i?()=>Promise.all((0,s.w)(e,i,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(i=0)=>{let{delayChildren:a=0,staggerChildren:s,staggerDirection:o}=r;return l(e,t,a+i,s,o,n)}:()=>Promise.resolve(),{when:c}=r;if(!c)return Promise.all([o(),u(n.delay)]);{let[e,t]="beforeChildren"===c?[o,u]:[u,o];return e().then(()=>t())}}function l(e,t,n=0,i=0,r=1,a){let s=[],l=(e.variantChildren.size-1)*i,c=1===r?(e=0)=>e*i:(e=0)=>l-e*i;return Array.from(e.variantChildren).sort(u).forEach((e,i)=>{e.notify("AnimationStart",t),s.push(o(e,t,{...a,delay:n+c(i)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(s)}function u(e,t){return e.sortNodePosition(t)}function c(e,t,n={}){let i;if(e.notify("AnimationStart",t),Array.isArray(t))i=Promise.all(t.map(t=>o(e,t,n)));else if("string"==typeof t)i=o(e,t,n);else{let r="function"==typeof t?(0,a.x)(e,t,n.custom):t;i=Promise.all((0,s.w)(e,r,n))}return i.then(()=>{e.notify("AnimationComplete",t)})}var d=n(16181);function h(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}var f=n(94355),p=n(77871);let m=p.V.length;function g(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&g(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<m;n++){let i=p.V[n],r=e.props[i];((0,f.$)(r)||!1===r)&&(t[i]=r)}return t}let v=[...p.e].reverse(),y=p.e.length;function _(e){return t=>Promise.all(t.map(({animation:t,options:n})=>c(e,t,n)))}function b(e){let t=_(e),n=E(),i=!0,s=t=>(n,i)=>{let r=(0,a.x)(e,i,"exit"===t?e.presenceContext?.custom:void 0);if(r){let{transition:e,transitionEnd:t,...i}=r;n={...n,...i,...t}}return n};function o(o){let{props:l}=e,u=g(e.parent)||{},c=[],p=new Set,m={},_=1/0;for(let t=0;t<y;t++){let a=v[t],g=n[a],y=void 0!==l[a]?l[a]:u[a],b=(0,f.$)(y),C=a===o?g.isActive:null;!1===C&&(_=t);let E=y===u[a]&&y!==l[a]&&b;if(E&&i&&e.manuallyAnimateOnMount&&(E=!1),g.protectedKeys={...m},!g.isActive&&null===C||!y&&!g.prevProp||(0,r.H)(y)||"boolean"==typeof y)continue;let w=x(g.prevProp,y),T=w||a===o&&g.isActive&&!E&&b||t>_&&b,S=!1,L=Array.isArray(y)?y:[y],P=L.reduce(s(a),{});!1===C&&(P={});let{prevResolvedValues:M={}}=g,A={...M,...P},I=t=>{T=!0,p.has(t)&&(S=!0,p.delete(t)),g.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in A){let t=P[e],n=M[e];if(m.hasOwnProperty(e))continue;let i=!1;(i=(0,d.C)(t)&&(0,d.C)(n)?!h(t,n):t!==n)?null!=t?I(e):p.add(e):void 0!==t&&p.has(e)?I(e):g.protectedKeys[e]=!0}g.prevProp=y,g.prevResolvedValues=P,g.isActive&&(m={...m,...P}),i&&e.blockInitialAnimation&&(T=!1);let R=!(E&&w)||S;T&&R&&c.push(...L.map(e=>({animation:e,options:{type:a}})))}if(p.size){let t={};if("boolean"!=typeof l.initial){let n=(0,a.x)(e,Array.isArray(l.initial)?l.initial[0]:l.initial);n&&n.transition&&(t.transition=n.transition)}p.forEach(n=>{let i=e.getBaseTarget(n),r=e.getValue(n);r&&(r.liveStyle=!0),t[n]=i??null}),c.push({animation:t})}let b=!!c.length;return i&&(!1===l.initial||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(b=!1),i=!1,b?t(c):Promise.resolve()}function l(t,i){if(n[t].isActive===i)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,i)),n[t].isActive=i;let r=o(t);for(let e in n)n[e].protectedKeys={};return r}return{animateChanges:o,setActive:l,setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=E(),i=!0}}}function x(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!h(t,e)}function C(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function E(){return{animate:C(!0),whileInView:C(),whileHover:C(),whileTap:C(),whileDrag:C(),whileFocus:C(),exit:C()}}class w{constructor(e){this.isMounted=!1,this.node=e}update(){}}class T extends w{constructor(e){super(e),e.animationState||(e.animationState=b(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();(0,r.H)(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let S=0;class L extends w{constructor(){super(...arguments),this.id=S++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let i=this.node.animationState.setActive("exit",!e);t&&!e&&i.then(()=>
432{t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}let P={animation:{Feature:T},exit:{Feature:L}};var M=n(68972);function A(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n)}let I=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function R(e){return{point:{x:e.pageX,y:e.pageY}}}let k=e=>t=>I(t)&&e(t,R(t));function D(e,t,n,i){return A(e,t,k(n),i)}var N=n(53276),F=n(98272);let O=.9999,j=1.0001,U=-.01,V=.01;function B(e){return e.max-e.min}function H(e,t,n){return Math.abs(e-t)<=n}function G(e,t,n,i=.5){e.origin=i,e.originPoint=(0,F.t)(t.min,t.max,e.origin),e.scale=B(n)/B(t),e.translate=(0,F.t)(n.min,n.max,e.origin)-e.originPoint,(e.scale>=O&&e.scale<=j||isNaN(e.scale))&&(e.scale=1),(e.translate>=U&&e.translate<=V||isNaN(e.translate))&&(e.translate=0)}function z(e,t,n,i){G(e.x,t.x,n.x,i?i.originX:void 0),G(e.y,t.y,n.y,i?i.originY:void 0)}function q(e,t,n){e.min=n.min+t.min,e.max=e.min+B(t)}function W(e,t,n){q(e.x,t.x,n.x),q(e.y,t.y,n.y)}function $(e,t,n){e.min=t.min-n.min,e.max=e.min+B(t)}function Z(e,t,n){$(e.x,t.x,n.x),$(e.y,t.y,n.y)}var Y=n(63427);function K(e){return[e("x"),e("y")]}var X=n(93091);let Q=({current:e})=>e?e.ownerDocument.defaultView:null;function J(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}var ee=n(82685);let et=(e,t)=>Math.abs(e-t);function en(e,t){return Math.sqrt(et(e.x,t.x)**2+et(e.y,t.y)**2)}var ei=n(75364),er=n(79552),ea=n(718);class es{constructor(e,t,{transformPagePoint:n,contextWindow:i,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=eu(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=en(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:i}=e,{timestamp:r}=ei.frameData;this.history.push({...i,timestamp:r});let{onStart:a,onMove:s}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=eo(t,this.transformPagePoint),ei.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:i,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=eu("pointercancel"===e.type?this.lastMoveEventInfo:eo(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),i&&i(e,a)},!I(e))return;this.dragSnapToOrigin=r,this.handlers=t,this.transformPagePoint=n,this.contextWindow=i||window;let a=eo(R(e),this.transformPagePoint),{point:s}=a,{timestamp:o}=ei.frameData;this.history=[{...s,timestamp:o}];let{onSessionStart:l}=t;l&&l(e,eu(a,this.history)),this.removeListeners=(0,er.z)(D(this.contextWindow,"pointermove",this.handlePointerMove),D(this.contextWindow,"pointerup",this.handlePointerUp),D(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),(0,ei.Pn)(this.updatePoint)}}function eo(e,t){return t?{point:t(e.point)}:e}function el(e,t){return{x:e.x-t.x,y:e.y-t.y}}function eu({point:e},t){return{point:e,delta:el(e,ed(t)),offset:el(e,ec(t)),velocity:eh(t,.1)}}function ec(e){return e[0]}function ed(e){return e[e.length-1]}function eh(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,i=null,r=ed(e);for(;n>=0&&(i=e[n],!(r.timestamp-i.timestamp>(0,ea.w)(t)));)n--;if(!i)return{x:0,y:0};let a=(0,ea.X)(r.timestamp-i.timestamp);if(0===a)return{x:0,y:0};let s={x:(r.x-i.x)/a,y:(r.y-i.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}var ef=n(49181),ep=n(45060);function em(e,{min:t,max:n},i){return void 0!==t&&e<t?e=i?(0,F.t)(t,e,i.min):Math.max(e,t):void 0!==n&&e>n&&(e=i?(0,F.t)(n,e,i.max):Math.min(e,n)),e}function eg(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function ev(e,{top:t,left:n,bottom:i,right:r}){return{x:eg(e.x,n,r),y:eg(e.y,t,i)}}function ey(e,t){let n=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,i]=[i,n]),{min:n,max:i}}function e_(e,t){return{x:ey(e.x,t.x),y:ey(e.y,t.y)}}function eb(e,t){let n=.5,i=B(e),r=B(t);return r>i?n=(0,ef.Y)(t.min,t.max-i,e.min):i>r&&(n=(0,ef.Y)(e.min,e.max-r,t.min)),(0,ep.u)(0,1,n)}function ex(e,t){let n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}let eC=.35;function eE(e=eC){return!1===e?e=0:!0===e&&(e=eC),{x:ew(e,"left","right"),y:ew(e,"top","bottom")}}
432function ew(e,t,n){return{min:eT(e,t),max:eT(e,n)}}function eT(e,t){return"number"==typeof e?e:e[t]||0}var eS=n(15888);let eL={x:!1,y:!1};function eP(){return eL.x||eL.y}function eM(e){return"x"===e||"y"===e?eL[e]?null:(eL[e]=!0,()=>{eL[e]=!1}):eL.x||eL.y?null:(eL.x=eL.y=!0,()=>{eL.x=eL.y=!1})}var eA=n(83617);let eI=new WeakMap;class eR{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,Y.dO)(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let i=e=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(R(e).point)},r=(e,t)=>{let{drag:n,dragPropagation:i,onDragStart:r}=this.getProps();if(n&&!i&&(this.openDragLock&&this.openDragLock(),this.openDragLock=eM(n),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),K(e=>{let t=this.getAxisMotionValue(e).get()||0;if(eA.aQ.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let i=n.layout.layoutBox[e];if(i){let e=B(i);t=parseFloat(t)/100*e}}}this.originPoint[e]=t}),r&&ei.Wi.postRender(()=>r(e,t)),(0,ee.K)(this.visualElement,"transform");let{animationState:a}=this.visualElement;a&&a.setActive("whileDrag",!0)},a=(e,t)=>{let{dragPropagation:n,dragDirectionLock:i,onDirectionLock:r,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:s}=t;if(i&&null===this.currentDirection){this.currentDirection=eD(s),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),a&&a(e,t)},s=(e,t)=>this.stop(e,t),o=()=>K(e=>"paused"===this.getAnimationState(e)&&this.getAxisMotionValue(e).animation?.play()),{dragSnapToOrigin:l}=this.getProps();this.panSession=new es(e,{onSessionStart:i,onStart:r,onMove:a,onSessionEnd:s,resumeAnimation:o},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:Q(this.visualElement)})}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:i}=t;this.startAnimation(i);let{onDragEnd:r}=this.getProps();r&&ei.Wi.postRender(()=>r(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){let{drag:i}=this.getProps();if(!n||!ek(e,i,this.currentDirection))return;let r=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=em(a,this.constraints[e],this.elastic[e])),r.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;e&&J(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=ev(n.layoutBox,e):this.constraints=!1,this.elastic=eE(t),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&K(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=ex(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!J(e))return!1;let n=e.current;(0,eS.k)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let r=(0,X.z)(n,i.root,this.visualElement.getTransformPagePoint()),a=e_(i.layout.layoutBox,r);if(t){let e=t((0,N.z2)(a));this.hasMutatedConstraints=!!e,e&&(a=(0,N.i8)(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:i,dragTransition:r,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),o=this.constraints||{};return Promise.all(K(s=>{if(!ek(s,t,this.currentDirection))return;let l=o&&o[s]||{};a&&(l={min:0,max:0});let u=i?200:1e6,c=i?40:1e7,d={type:"inertia",velocity:n?e[s]:0,bounceStiffness:u,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(s,d)})).then(s)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return(0,ee.K)(this.visualElement,e),n.start((0,M.v)(e,n,0,t,this.visualElement,!1))}stopAnimation(){K(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){K(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){K(t=>{let{drag:n}=this.getProps();if(!ek(t,n,this.currentDirection))return;let{projection:i}=this.visualElement,r=this.getAxisMotionValue(t);if(i&&i.layout){let{min:n,max:a}=i.layout.layoutBox[t];r.set(e[t]-(0,F.t)(n,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!J(t)||!n||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};K(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let n=t.get();i[e]=eb({min:n,max:n},this.constraints[e])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),K(t=>{if(!ek(t,e,null))return;let n=this.getAxisMotionValue(t),{min:r,max:a}=this.constraints[t];n.set((0,F.t)(r,a,i[t]))})}addListeners(){if(!this.visualElement.current)return;eI.set(this.visualElement,this);let e=D(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:n=!0}
432=this.getProps();t&&n&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();J(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,i=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),ei.Wi.read(t);let r=A(window,"resize",()=>this.scalePositionWithinConstraints()),a=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(K(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{r(),e(),i(),a&&a()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:a=eC,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:i,dragConstraints:r,dragElastic:a,dragMomentum:s}}}function ek(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}function eD(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}var eN=n(52308);class eF extends w{constructor(e){super(e),this.removeGroupControls=eN.Z,this.removeListeners=eN.Z,this.controls=new eR(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||eN.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}let eO=e=>(t,n)=>{e&&ei.Wi.postRender(()=>e(t,n))};class ej extends w{constructor(){super(...arguments),this.removePointerDownListener=eN.Z}onPointerDown(e){this.session=new es(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Q(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:eO(e),onStart:eO(t),onMove:n,onEnd:(e,t)=>{delete this.session,i&&ei.Wi.postRender(()=>i(e,t))}}}mount(){this.removePointerDownListener=D(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var eU=n(85893),eV=n(67294),eB=n(89805),eH=n(40910);let eG=(0,eV.createContext)({}),ez={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function eq(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let eW={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!eA.px.test(e))return e;e=parseFloat(e)}let n=eq(e,t.target.x),i=eq(e,t.target.y);return`${n}% ${i}%`}};var e$=n(90477);let eZ={correct:(e,{treeScale:t,projectionDelta:n})=>{let i=e,r=e$.P.parse(e);if(r.length>5)return i;let a=e$.P.createTransformer(e),s="number"!=typeof r[0]?1:0,o=n.x.scale*t.x,l=n.y.scale*t.y;r[0+s]/=o,r[1+s]/=l;let u=(0,F.t)(o,l,.5);return"number"==typeof r[2+s]&&(r[2+s]/=u),"number"==typeof r[3+s]&&(r[3+s]/=u),a(r)}};var eY=n(41434);let{schedule:eK,cancel:eX}=(0,n(15397).Z)(queueMicrotask,!1);class eQ extends eV.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:i}=this.props,{projection:r}=e;(0,eY.B)(e0),r&&(t.group&&t.group.add(r),n&&n.register&&i&&n.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),ez.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:i,isPresent:r}=this.props,{projection:a}=n;return a&&(a.isPresent=r,i||e.layoutDependency!==t||void 0===t||e.isPresent!==r?a.willUpdate():this.safeToRemove(),e.isPresent===r||(r?a.promote():a.relegate()||ei.Wi.postRender(()=>{let e=a.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),eK.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function eJ(e){let[t,n]=(0,eB.oO)(),i=(0,eV.useContext)(eH.p);return(0,eU.jsx)(eQ,{...e,layoutGroup:i,switchLayoutGroup:(0,eV.useContext)(eG),isPresent:t,safeToRemove:n})}let e0={borderRadius:{...eW,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:eW,borderTopRightRadius:eW,borderBottomLeftRadius:eW,borderBottomRightRadius:eW,boxShadow:eZ};var e1=n(30379),e2=n(49588);let e3=(e,t)=>
432e.depth-t.depth;var e5=n(39515);class e4{constructor(){this.children=[],this.isDirty=!1}add(e){(0,e5.y4)(this.children,e),this.isDirty=!0}remove(e){(0,e5.cl)(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(e3),this.isDirty=!1,this.children.forEach(e)}}var e6=n(5293);function e8(e,t){let n=e6.X.now(),i=({timestamp:r})=>{let a=r-n;a>=t&&((0,ei.Pn)(i),e(a-t))};return ei.Wi.setup(i,!0),()=>(0,ei.Pn)(i)}var e7=n(9585);function e9(e){return(0,e7.i)(e)?e.get():e}var te=n(28105);let tt=["TopLeft","TopRight","BottomLeft","BottomRight"],tn=tt.length,ti=e=>"string"==typeof e?parseFloat(e):e,tr=e=>"number"==typeof e||eA.px.test(e);function ta(e,t,n,i,r,a){r?(e.opacity=(0,F.t)(0,n.opacity??1,to(i)),e.opacityExit=(0,F.t)(t.opacity??1,0,tl(i))):a&&(e.opacity=(0,F.t)(t.opacity??1,n.opacity??1,i));for(let r=0;r<tn;r++){let a=`border${tt[r]}Radius`,s=ts(t,a),o=ts(n,a);(void 0!==s||void 0!==o)&&(s||(s=0),o||(o=0),0===s||0===o||tr(s)===tr(o)?(e[a]=Math.max((0,F.t)(ti(s),ti(o),i),0),(eA.aQ.test(o)||eA.aQ.test(s))&&(e[a]+="%")):e[a]=o)}(t.rotate||n.rotate)&&(e.rotate=(0,F.t)(t.rotate||0,n.rotate||0,i))}function ts(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let to=tu(0,.5,te.Bn),tl=tu(.5,.95,eN.Z);function tu(e,t,n){return i=>i<e?0:i>t?1:n((0,ef.Y)(e,t,i))}function tc(e,t){e.min=t.min,e.max=t.max}function td(e,t){tc(e.x,t.x),tc(e.y,t.y)}function th(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var tf=n(72895);function tp(e,t,n,i,r){return e-=t,e=(0,tf.q2)(e,1/n,i),void 0!==r&&(e=(0,tf.q2)(e,1/r,i)),e}function tm(e,t=0,n=1,i=.5,r,a=e,s=e){if(eA.aQ.test(t)&&(t=parseFloat(t),t=(0,F.t)(s.min,s.max,t/100)-s.min),"number"!=typeof t)return;let o=(0,F.t)(a.min,a.max,i);e===a&&(o-=t),e.min=tp(e.min,t,n,o,r),e.max=tp(e.max,t,n,o,r)}function tg(e,t,[n,i,r],a,s){tm(e,t[n],t[i],t[r],t.scale,a,s)}let tv=["x","scaleX","originX"],ty=["y","scaleY","originY"];function t_(e,t,n,i){tg(e.x,t,tv,n?n.x:void 0,i?i.x:void 0),tg(e.y,t,ty,n?n.y:void 0,i?i.y:void 0)}function tb(e){return 0===e.translate&&1===e.scale}function tx(e){return tb(e.x)&&tb(e.y)}function tC(e,t){return e.min===t.min&&e.max===t.max}function tE(e,t){return tC(e.x,t.x)&&tC(e.y,t.y)}function tw(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function tT(e,t){return tw(e.x,t.x)&&tw(e.y,t.y)}function tS(e){return B(e.x)/B(e.y)}function tL(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class tP{constructor(){this.members=[]}add(e){(0,e5.y4)(this.members,e),e.scheduleRender()}remove(e){if((0,e5.cl)(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t;let n=this.members.findIndex(t=>e===t);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){t=n;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:i}=e.options;!1===i&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function tM(e,t,n){let i="",r=e.x.translate/t.x,a=e.y.translate/t.y,s=n?.z||0;if((r||a||s)&&(i=`translate3d(${r}px, ${a}px, ${s}px) `),(1!==t.x||1!==t.y)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:r,rotateY:a,skewX:s,skewY:o}=n;e&&(i=`perspective(${e}px) ${i}`),t&&(i+=`rotate(${t}deg) `),r&&(i+=`rotateX(${r}deg) `),a&&(i+=`rotateY(${a}deg) `),s&&(i+=`skewX(${s}deg) `),o&&(i+=`skewY(${o}deg) `)}let o=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==o||1!==l)&&(i+=`scale(${o}, ${l})`),i||"none"}var tA=n(34210),tI=n(19062),tR=n(97689),tk=n(66326),tD=n(65569),tN=n(70128),tF=n(13153),tO=n(15353);let tj={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},tU=["","X","Y","Z"],tV={visibility:"hidden"},tB=1e3,tH=0;function tG(e,t,n,i){let{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),i&&(i[e]=0))}function tz(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=(0,e2.s)(t);if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ei.Wi,!(t||i))}let{parent:i}=e;
432i&&!i.hasCheckedOptimisedAppear&&tz(i)}function tq({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(e={},n=t?.()){this.id=tH++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,tI.f.value&&(tj.nodes=tj.calculatedTargetDeltas=tj.calculatedProjections=0),this.nodes.forEach(tZ),this.nodes.forEach(t1),this.nodes.forEach(t2),this.nodes.forEach(tY),tI.f.addProjectionMetrics&&tI.f.addProjectionMetrics(tj)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new e4)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new tR.L),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=(0,tk.v)(t)&&!(0,tD.r)(t),this.instance=t;let{layoutId:n,layout:i,visualElement:r}=this.options;if(r&&!r.current&&r.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(i||n)&&(this.isLayoutDirty=!0),e){let n;let i=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=e8(i,250),ez.hasAnimatedSinceResize&&(ez.hasAnimatedSinceResize=!1,this.nodes.forEach(t0))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&r&&(n||i)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:i})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||r.getDefaultTransition()||t9,{onLayoutAnimationStart:s,onLayoutAnimationComplete:o}=r.getProps(),l=!this.targetLayout||!tT(this.targetLayout,i),u=!t&&n;if(this.options.layoutRoot||this.resumeFrom||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...(0,tN.e)(a,"layout"),onPlay:s,onComplete:o};(r.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,u)}else t||t0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),(0,ei.Pn)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(t3),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&tz(this),this.root.isUpdating||this.root.startUpd
432ate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;let i=this.getTransformTemplate();this.prevTransformTemplateValue=i?i(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(tX);return}this.isUpdating||this.nodes.forEach(tQ),this.isUpdating=!1,this.nodes.forEach(tJ),this.nodes.forEach(tW),this.nodes.forEach(t$),this.clearAllSnapshots();let e=e6.X.now();ei.frameData.delta=(0,ep.u)(0,1e3/60,e-ei.frameData.timestamp),ei.frameData.timestamp=e,ei.frameData.isProcessing=!0,ei.yL.update.process(ei.frameData),ei.yL.preRender.process(ei.frameData),ei.yL.render.process(ei.frameData),ei.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,eK.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(tK),this.sharedNodes.forEach(t5)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ei.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ei.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||B(this.snapshot.measuredBox.x)||B(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=(0,Y.dO)(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=i(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!r)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!tx(this.projectionDelta),n=this.getTransformTemplate(),i=n?n(this.latestValues,""):void 0,a=i!==this.prevTransformTemplateValue;e&&this.instance&&(t||(0,tA.ud)(this.latestValues)||a)&&(r(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),ni(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return(0,Y.dO)();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(na))){let{scroll:e}=this.root;e&&((0,tf.am)(t.x,e.offset.x),(0,tf.am)(t.y,e.offset.y))}return t}removeElementScroll(e){let t=(0,Y.dO)();if(td(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let i=this.path[n],{scroll:r,options:a}=i;i!==this.root&&r&&a.layoutScroll&&(r.wasRoot&&td(t,e),(0,tf.am)(t.x,r.offset.x),(0,tf.am)(t.y,r.offset.y))}return t}applyTransform(e,t=!1){let n=(0,Y.dO)();td(n,e);for(let e=0;e<this.path.length;e++){let i=this.path[e];!t&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(0,tf.D2)(n,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),(0,tA.ud)(i.latestValues)&&(0,tf.D2)(n,i.latestValues)}return(0,tA.ud)(this.latestValues)&&(0,tf.D2)(n,this.latestValues),n}removeTransform(e){let t=(0,Y.dO)();td(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!(0,tA.ud)(n.latestValues))continue;(0,tA.Lj)(n.latestValues)&&n.updateSnapshot();let i=(0,Y.dO)();td(i,n.measurePageBox()),t_(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,i)}return(0,tA.ud)(this.latestValues)&&t_(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ei.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.
432isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:i,layoutId:r}=this.options;if(this.layout&&(i||r)){if(this.resolvedRelativeTargetAt=ei.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,Y.dO)(),this.relativeTargetOrigin=(0,Y.dO)(),Z(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),td(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=(0,Y.dO)(),this.targetWithTransforms=(0,Y.dO)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),W(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):td(this.target,this.layout.layoutBox),(0,tf.o2)(this.target,this.targetDelta)):td(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,Y.dO)(),this.relativeTargetOrigin=(0,Y.dO)(),Z(this.relativeTargetOrigin,this.target,e.target),td(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}tI.f.value&&tj.calculatedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||(0,tA.Lj)(this.parent.latestValues)||(0,tA.D_)(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===ei.frameData.timestamp&&(n=!1),n)return;let{layout:i,layoutId:r}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(i||r))return;td(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,s=this.treeScale.y;(0,tf.YY)(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=(0,Y.dO)());let{target:o}=e;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(th(this.prevProjectionDelta.x,this.projectionDelta.x),th(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),z(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===a&&this.treeScale.y===s&&tL(this.projectionDelta.x,this.prevProjectionDelta.x)&&tL(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o)),tI.f.value&&tj.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,Y.wc)(),this.projectionDelta=(0,Y.wc)(),this.projectionDeltaWithTransform=(0,Y.wc)()}setAnimationOrigin(e,t=!1){let n;let i=this.snapshot,r=i?i.latestValues:{},a={...this.latestValues},s=(0,Y.wc)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=(0,Y.dO)(),l=(i?i.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,d=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(t7));this.animationProgress=0,this.mixTargetDelta=t=>{let i=t/1e3;t4(s.x,e.x,i),t4(s.y,e.y,i),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Z(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),t8(this.relativeTarget,this.relativeTargetOrigin,o,i),n&&tE(this.relativeTarget,n)&&(this.isProjectionDirty=!1),n||(n=(0,Y.dO)()),td(n,this.relativeTarget)),l&&(this.animationValues=a,ta(a,r,this.latestValues,i,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,ei.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ei.Wi.update(()=>{ez.hasAnimatedSinceResize=!0,tF.P.layout++,this.motionValue||(this.motionValue=(0,tO.BX)(0)),this.currentAnimation=(0,e1.D)(this.motionValue,[0,1e3],{...e,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{tF.P.layout--},onComplete:()=>{tF.P.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(tB),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:i,latestValues:r}=e;
432if(t&&n&&i){if(this!==e&&this.layout&&i&&nr(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||(0,Y.dO)();let t=B(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let i=B(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+i}td(t,n),(0,tf.D2)(t,r),z(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new tP),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let i=this.getStack();i&&i.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let i={};n.z&&tG("z",e,i,this.animationValues);for(let t=0;t<tU.length;t++)tG(`rotate${tU[t]}`,e,i,this.animationValues),tG(`skew${tU[t]}`,e,i,this.animationValues);for(let t in e.render(),i)e.setStaticValue(t,i[t]),this.animationValues&&(this.animationValues[t]=i[t]);e.scheduleRender()}getProjectionStyles(e){if(!this.instance||this.isSVG)return;if(!this.isVisible)return tV;let t={visibility:""},n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,t.opacity="",t.pointerEvents=e9(e?.pointerEvents)||"",t.transform=n?n(this.latestValues,""):"none",t;let i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){let t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=e9(e?.pointerEvents)||""),this.hasProjected&&!(0,tA.ud)(this.latestValues)&&(t.transform=n?n({},""):"none",this.hasProjected=!1),t}let r=i.animationValues||i.latestValues;this.applyTransformsToTarget(),t.transform=tM(this.projectionDeltaWithTransform,this.treeScale,r),n&&(t.transform=n(r,t.transform));let{x:a,y:s}=this.projectionDelta;for(let e in t.transformOrigin=`${100*a.origin}% ${100*s.origin}% 0`,i.animationValues?t.opacity=i===this?r.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:t.opacity=i===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,eY.P){if(void 0===r[e])continue;let{correct:n,applyTo:a,isCSSVariable:s}=eY.P[e],o="none"===t.transform?r[e]:n(r[e],i);if(a){let e=a.length;for(let n=0;n<e;n++)t[a[n]]=o}else s?this.options.visualElement.renderState.vars[e]=o:t[e]=o}return this.options.layoutId&&(t.pointerEvents=i===this?e9(e?.pointerEvents)||"":"none"),t}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(tX),this.root.sharedNodes.clear()}}}function tW(e){e.updateLayout()}function t$(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:n,measuredBox:i}=e.layout,{animationType:r}=e.options,a=t.source!==e.layout.source;"size"===r?K(e=>{let i=a?t.measuredBox[e]:t.layoutBox[e],r=B(i);i.min=n[e].min,i.max=i.min+r}):nr(r,t.layoutBox,n)&&K(i=>{let r=a?t.measuredBox[i]:t.layoutBox[i],s=B(n[i]);r.max=r.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[i].max=e.relativeTarget[i].min+s)});let s=(0,Y.wc)();z(s,n,t.layoutBox);let o=(0,Y.wc)();a?z(o,e.applyTransform(i,!0),t.measuredBox):z(o,n,t.layoutBox);let l=!tx(s),u=!1;if(!e.resumeFrom){let i=e.getClosestProjectingParent();if(i&&!i.resumeFrom){let{snapshot:r,layout:a}=i;if(r&&a){let s=(0,Y.dO)();Z(s,t.layoutBox,r.layoutBox);let o=(0,Y.dO)();Z(o,n,a.layoutBox),tT(s,o)||(u=!0),i.options.layoutRoot&&(e.relativeTarget=o,e.relativeTargetOrigin=s,e.relativeParent=i)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:o,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function tZ(e){tI.f.value&&tj.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function tY(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function tK(e){e.clearSnapshot()}function tX(e){e.clearMeasurements()}function tQ(e){e.isLayoutDirty=!1}function tJ(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function t0(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function t1(e){e.resolveTargetDelta()}function t2(e){e.calcProjection()}
432function t3(e){e.resetSkewAndRotation()}function t5(e){e.removeLeadSnapshot()}function t4(e,t,n){e.translate=(0,F.t)(t.translate,0,n),e.scale=(0,F.t)(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function t6(e,t,n,i){e.min=(0,F.t)(t.min,n.min,i),e.max=(0,F.t)(t.max,n.max,i)}function t8(e,t,n,i){t6(e.x,t.x,n.x,i),t6(e.y,t.y,n.y,i)}function t7(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let t9={duration:.45,ease:[.4,0,.1,1]},ne=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),nt=ne("applewebkit/")&&!ne("chrome/")?Math.round:eN.Z;function nn(e){e.min=nt(e.min),e.max=nt(e.max)}function ni(e){nn(e.x),nn(e.y)}function nr(e,t,n){return"position"===e||"preserve-aspect"===e&&!H(tS(t),tS(n),.2)}function na(e){return e!==e.root&&e.scroll?.wasRoot}let ns=tq({attachResizeListener:(e,t)=>A(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),no={current:void 0},nl=tq({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!no.current){let e=new ns({});e.mount(window),e.setOptions({layoutScroll:!0}),no.current=e}return no.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),nu={pan:{Feature:ej},drag:{Feature:eF,ProjectionNode:nl,MeasureLayout:eJ}};var nc=n(7900);function nd(e,t){let n=(0,nc.I)(e),i=new AbortController;return[n,{passive:!0,...t,signal:i.signal},()=>i.abort()]}function nh(e){return!("touch"===e.pointerType||eP())}function nf(e,t,n={}){let[i,r,a]=nd(e,n),s=e=>{if(!nh(e))return;let{target:n}=e,i=t(n,e);if("function"!=typeof i||!n)return;let a=e=>{nh(e)&&(i(e),n.removeEventListener("pointerleave",a))};n.addEventListener("pointerleave",a,r)};return i.forEach(e=>{e.addEventListener("pointerenter",s,r)}),a}
432function np(e,t,n){let{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover","Start"===n);let r=i["onHover"+n];r&&ei.Wi.postRender(()=>r(t,R(t)))}class nm extends w{mount(){let{current:e}=this.node;e&&(this.unmount=nf(e,(e,t)=>(np(this.node,t,"Start"),e=>np(this.node,e,"End"))))}unmount(){}}class ng extends w{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,er.z)(A(this.node.current,"focus",()=>this.onFocus()),A(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var nv=n(52099);let ny=(e,t)=>!!t&&(e===t||ny(e,t.parentElement)),n_=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function nb(e){return n_.has(e.tagName)||-1!==e.tabIndex}let nx=new WeakSet;function nC(e){return t=>{"Enter"===t.key&&e(t)}}function nE(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}let nw=(e,t)=>{let n=e.currentTarget;if(!n)return;let i=nC(()=>{if(nx.has(n))return;nE(n,"down");let e=nC(()=>{nE(n,"up")}),i=()=>nE(n,"cancel");n.addEventListener("keyup",e,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",i,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),t)};function nT(e){return I(e)&&!eP()}function nS(e,t,n={}){let[i,r,a]=nd(e,n),s=e=>{let i=e.currentTarget;if(!nT(e))return;nx.add(i);let a=t(i,e),s=(e,t)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),nx.has(i)&&nx.delete(i),nT(e)&&"function"==typeof a&&a(e,{success:t})},o=e=>{s(e,i===window||i===document||n.useGlobalTarget||ny(i,e.target))},l=e=>{s(e,!1)};window.addEventListener("pointerup",o,r),window.addEventListener("pointercancel",l,r)};return i.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener("pointerdown",s,r),!(0,nv.R)(e)||(e.addEventListener("focus",e=>nw(e,r)),nb(e)||e.hasAttribute("tabindex")||(e.tabIndex=0))}),a}function nL(e,t,n){let{props:i}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&i.whileTap&&e.animationState.setActive("whileTap","Start"===n);let r=i["onTap"+("End"===n?"":n)];r&&ei.Wi.postRender(()=>r(t,R(t)))}class nP extends w{mount(){let{current:e}=this.node;e&&(this.unmount=nS(e,(e,t)=>(nL(this.node,t,"Start"),(e,{success:t})=>nL(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let nM=new WeakMap,nA=new WeakMap,nI=e=>{let t=nM.get(e.target);t&&t(e)},nR=e=>{e.forEach(nI)};function nk({root:e,...t}){let n=e||document;nA.has(n)||nA.set(n,{});let i=nA.get(n),r=JSON.stringify(t);return i[r]||(i[r]=new IntersectionObserver(nR,{root:e,...t})),i[r]}function nD(e,t,n){let i=nk(t);return nM.set(e,n),i.observe(e),()=>{nM.delete(e),i.unobserve(e)}}let nN={some:0,all:1};
432class nF extends w{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:i="some",once:r}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:nN[i]},s=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,r&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),a=t?n:i;a&&a(e)};return nD(this.node.current,a,s)}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(nO(e,t))&&this.startObserver()}unmount(){}}function nO({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}let nj={inView:{Feature:nF},tap:{Feature:nP},focus:{Feature:ng},hover:{Feature:nm}},nU={layout:{ProjectionNode:nl,MeasureLayout:eJ}},nV=(0,eV.createContext)({strict:!1});var nB=n(77439);let nH=(0,eV.createContext)({});var nG=n(87602);function nz(e,t){if((0,nG.G)(e)){let{initial:t,animate:n}=e;return{initial:!1===t||(0,f.$)(t)?t:void 0,animate:(0,f.$)(n)?n:void 0}}return!1!==e.inherit?t:{}}function nq(e){let{initial:t,animate:n}=nz(e,(0,eV.useContext)(nH));return(0,eV.useMemo)(()=>({initial:t,animate:n}),[nW(t),nW(n)])}function nW(e){return Array.isArray(e)?e.join(" "):e}var n$=n(28269),nZ=n(17427);function nY(e){for(let t in e)nZ.featureDefinitions[t]={...nZ.featureDefinitions[t],...e[t]}}let nK=Symbol.for("motionComponentSymbol");function nX(e,t,n){return(0,eV.useCallback)(i=>{i&&e.onMount&&e.onMount(i),t&&(i?t.mount(i):t.unmount()),n&&("function"==typeof n?n(i):J(n)&&(n.current=i))},[t])}var nQ=n(80949),nJ=n(4048),n0=n(14822);function n1(e,t,n,i,r){let{visualElement:a}=(0,eV.useContext)(nH),s=(0,eV.useContext)(nV),o=(0,eV.useContext)(nJ.O),l=(0,eV.useContext)(nB._).reducedMotion,u=(0,eV.useRef)(null);i=i||s.renderer,!u.current&&i&&(u.current=i(e,{visualState:t,parent:a,props:n,presenceContext:o,blockInitialAnimation:!!o&&!1===o.initial,reducedMotionConfig:l}));let c=u.current,d=(0,eV.useContext)(eG);c&&!c.projection&&r&&("html"===c.type||"svg"===c.type)&&n2(u.current,n,r,d);let h=(0,eV.useRef)(!1);(0,eV.useInsertionEffect)(()=>{c&&h.current&&c.update(n,o)});let f=n[nQ.M],p=(0,eV.useRef)(!!f&&!window.MotionHandoffIsComplete?.(f)&&window.MotionHasOptimisedAnimation?.(f));return(0,n0.L)(()=>{c&&(h.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),eK.render(c.render),p.current&&c.animationState&&c.animationState.animateChanges())}),(0,eV.useEffect)(()=>{c&&(!p.current&&c.animationState&&c.animationState.animateChanges(),p.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(f)}),p.current=!1))}),c}function n2(e,t,n,i){let{layoutId:r,layout:a,drag:s,dragConstraints:o,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:n3(e.parent)),e.projection.setOptions({layoutId:r,layout:a,alwaysMeasureLayout:!!s||o&&J(o),visualElement:e,animationType:"string"==typeof a?a:"both",initialPromotionConfig:i,crossfade:c,layoutScroll:l,layoutRoot:u})}function n3(e){if(e)return!1!==e.options.allowProjection?e.projection:n3(e.parent)}function n5({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:i,Component:r}){function a(a,s){let o;let l={...(0,eV.useContext)(nB._),...a,layoutId:n4(a)},{isStatic:u}=l,c=nq(a),d=i(a,u);if(!u&&n$.j){n6(l,e);let n=n8(l);o=n.MeasureLayout,c.visualElement=n1(r,d,l,t,n.ProjectionNode)}return(0,eU.jsxs)(nH.Provider,{value:c,children:[o&&c.visualElement?(0,eU.jsx)(o,{visualElement:c.visualElement,...l}):null,n(r,a,nX(d,c.visualElement,s),d,u,c.visualElement)]})}e&&nY(e),a.displayName=`motion.${"string"==typeof r?r:`create(${r.displayName??r.name??""})`}`;let s=(0,eV.forwardRef)(a);return s[nK]=r,s}function n4({layoutId:e}){let t=(0,eV.useContext)(eH.p).id;return t&&void 0!==e?t+"-"+e:e}function n6(e,t){(0,eV.useContext)(nV).strict}function n8(e){let{drag:t,layout:n}=nZ.featureDefinitions;if(!t&&!n)return{};let i={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}
432var n7=n(7672),n9=n(66463);let ie=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function it(e,t,n){for(let i in t)(0,e7.i)(t[i])||(0,n7.j)(i,n)||(e[i]=t[i])}function ii({transformTemplate:e},t){return(0,eV.useMemo)(()=>{let n=ie();return(0,n9.r)(n,t,e),Object.assign({},n.vars,n.style)},[t])}function ir(e,t){let n=e.style||{},i={};return it(i,n,e),Object.assign(i,ii(e,t)),i}function ia(e,t){let n={},i=ir(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=i,n}var is=n(25558);let io=()=>({...ie(),attrs:{}});var il=n(42781);function iu(e,t,n,i){let r=(0,eV.useMemo)(()=>{let n=io();return(0,is.i)(n,t,(0,il.a)(i),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};it(t,e.style,e),r.style={...t,...r.style}}return r}let ic=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function id(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ic.has(e)}let ih=e=>!id(e);function ip(e){e&&(ih=t=>t.startsWith("on")?!id(t):e(t))}try{ip(require("@emotion/is-prop-valid").default)}catch{}function im(e,t,n){let i={};for(let r in e)("values"!==r||"object"!=typeof e.values)&&(ih(r)||!0===n&&id(r)||!t&&!id(r)||e.draggable&&r.startsWith("onDrag"))&&(i[r]=e[r]);return i}let ig=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function iv(e){if("string"!=typeof e||e.includes("-"));else if(ig.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}function iy(e=!1){return(t,n,i,{latestValues:r},a)=>{let s=(iv(t)?iu:ia)(n,r,a,t),o=im(n,"string"==typeof t,e),l=t!==eV.Fragment?{...o,...s,ref:i}:{},{children:u}=n,c=(0,eV.useMemo)(()=>(0,e7.i)(u)?u.get():u,[u]);return(0,eV.createElement)(t,{...l,children:c})}}var i_=n(2145),ib=n(47281);function ix({scrapeMotionValuesFromProps:e,createRenderState:t},n,i,r){return{latestValues:iE(n,i,r,e),renderState:t()}}let iC=e=>(t,n)=>{let i=(0,eV.useContext)(nH),r=(0,eV.useContext)(nJ.O),a=()=>ix(e,t,i,r);return n?a():(0,ib.h)(a)};function iE(e,t,n,i){let a={},s=i(e,{});for(let e in s)a[e]=e9(s[e]);let{initial:o,animate:l}=e,u=(0,nG.G)(e),c=(0,nG.M)(e);t&&c&&!u&&!1!==e.inherit&&(void 0===o&&(o=t.initial),void 0===l&&(l=t.animate));let d=!!n&&!1===n.initial,h=(d=d||!1===o)?l:o;if(h&&"boolean"!=typeof h&&!(0,r.H)(h)){let t=Array.isArray(h)?h:[h];for(let n=0;n<t.length;n++){let i=(0,i_.o)(e,t[n]);if(i){let{transitionEnd:e,transition:t,...n}=i;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=d?t.length-1:0;t=t[e]}null!==t&&(a[e]=t)}for(let t in e)a[t]=e[t]}}}return a}let iw={useVisualState:iC({scrapeMotionValuesFromProps:n(32e3).U,createRenderState:ie})},iT={useVisualState:iC({scrapeMotionValuesFromProps:n(30909).U,createRenderState:io})};function iS(e,t){return function(n,{forwardMotionProps:i}={forwardMotionProps:!1}){return n5({...iv(n)?iT:iw,preloadedFeatures:e,useRender:iy(i),createVisualElement:t,Component:n})}}var iL=n(63138),iP=n(83470);let iM=(e,t)=>iv(e)?new iP.e(t):new iL.W(t,{allowProjection:e!==eV.Fragment}),iA=i(iS({...P,...nj,...nu,...nU},iM))},40585:function(e,t,n){"use strict";n.d(t,{J:function(){return E}});var i=n(97227),r=n(16467),a=n(58193),s=n(19566),o=n(15888),l=n(67228);let u=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function c(e){let t=u.exec(e);if(!t)return[,];let[,n,i,r]=t;return[`--${n??i}`,r]}let d=4;
432function h(e,t,n=1){(0,o.k)(n<=d,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[i,r]=c(e);if(!i)return;let a=window.getComputedStyle(t).getPropertyValue(i);if(a){let e=a.trim();return(0,l.P)(e)?parseFloat(e):e}return(0,s.t)(r)?h(r,t,n+1):r}var f=n(63990),p=n(8688);function m(e){return"number"==typeof e?0===e:null===e||"none"===e||"0"===e||(0,p.W)(e)}var g=n(90477),v=n(39535);let y=new Set(["auto","none","0"]);function _(e,t,n){let i,r=0;for(;r<e.length&&!i;){let t=e[r];"string"==typeof t&&!y.has(t)&&(0,g.V)(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=(0,v.T)(n,i)}var b=n(99163);class x extends f.e{constructor(e,t,n,i,r){super(e,t,n,i,r,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let i=e[n];if("string"==typeof i&&(i=i.trim(),(0,s.t)(i))){let r=h(i,t.current);void 0!==r&&(e[n]=r),n===e.length-1&&(this.finalKeyframe=i)}}if(this.resolveNoneKeyframes(),!r.z.has(n)||2!==e.length)return;let[i,o]=e,l=(0,a.C)(i),u=(0,a.C)(o);if(l!==u){if((0,b.mP)(l)&&(0,b.mP)(u))for(let t=0;t<e.length;t++){let n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else b.lw[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(null===e[t]||m(e[t]))&&n.push(t);n.length&&_(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=b.lw[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let i=t[t.length-1];void 0!==i&&e.getValue(n,i).jump(i,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let i=e.getValue(t);i&&i.jump(this.measuredOrigin,!1);let r=n.length-1,a=n[r];n[r]=b.lw[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEac
432h(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}var C=n(9585);class E extends i.l{constructor(){super(...arguments),this.KeyframeResolver=x}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;(0,C.i)(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}},53246:function(e,t,n){"use strict";n.d(t,{D:function(){return i}});let i=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase()},63138:function(e,t,n){"use strict";n.d(t,{W:function(){return h}});var i=n(93091),r=n(40585),a=n(66463),s=n(49907),o=n(32e3),l=n(36297),u=n(80753),c=n(19566);function d(e){return window.getComputedStyle(e)}class h extends r.J{constructor(){super(...arguments),this.type="html",this.renderInstance=s.N}readValueFromInstance(e,t){if(l.G.has(t))return this.projection?.isProjecting?(0,u.E$)(t):(0,u.RT)(e,t);{let n=d(e),i=((0,c.f)(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof i?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:t}){return(0,i.J)(e,t)}build(e,t,n){(0,a.r)(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return(0,o.U)(e,t,n)}}},66463:function(e,t,n){"use strict";n.d(t,{r:function(){return c}});var i=n(36297);let r=(e,t)=>t&&"number"==typeof e?t.transform(e):e;var a=n(89635);let s={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},o=i._.length;function l(e,t,n){let l="",u=!0;for(let c=0;c<o;c++){let o=i._[c],d=e[o];if(void 0===d)continue;let h=!0;if(!(h="number"==typeof d?d===(o.startsWith("scale")?1:0):0===parseFloat(d))||n){let e=r(d,a.j[o]);if(!h){u=!1;let t=s[o]||o;l+=`${t}(${e}) `}n&&(t[o]=e)}}return l=l.trim(),n?l=n(t,u?"":l):u&&(l="none"),l}var u=n(19566);function c(e,t,n){let{style:s,vars:o,transformOrigin:c}=e,d=!1,h=!1;for(let e in t){let n=t[e];if(i.G.has(e)){d=!0;continue}if((0,u.f)(e)){o[e]=n;continue}{let t=r(n,a.j[e]);e.startsWith("origin")?(h=!0,c[e]=t):s[e]=t}}if(!t.transform&&(d||n?s.transform=l(t,e.transform,n):s.transform&&(s.transform="none")),h){let{originX:e="50%",originY:t="50%",originZ:n=0}=c;s.transformOrigin=`${e} ${t} ${n}`}}},49907:function(e,t,n){"use strict";function i(e,{style:t,vars:n},i,r){for(let a in Object.assign(e.style,t,r&&r.getProjectionStyles(i)),n)e.style.setProperty(a,n[a])}n.d(t,{N:function(){return i}})},32e3:function(e,t,n){"use strict";n.d(t,{U:function(){return a}});var i=n(7672),r=n(9585);function a(e,t,n){let{style:a}=e,s={};for(let o in a)((0,r.i)(a[o])||t.style&&(0,r.i)(t.style[o])||(0,i.j)(o,e)||n?.getValue(o)?.liveStyle!==void 0)&&(s[o]=a[o]);return s}},95483:function(e,t,n){"use strict";n.d(t,{R:function(){return i}});let i=new WeakMap},83470:function(e,t,n){"use strict";n.d(t,{e:function(){return p}});var i=n(63427),r=n(40585),a=n(53246),s=n(25558);let o=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);var l=n(42781),u=n(49907);function c(e,t,n,i){for(let n in(0,u.N)(e,t,void 0,i),t.attrs)e.setAttribute(o.has(n)?n:(0,a.D)(n),t.attrs[n])}var d=n(30909),h=n(36297),f=n(57210);class p extends r.J{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=i.dO}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(h.G.has(t)){let e=(0,f.A)(t);return e&&e.default||0}return t=o.has(t)?t:(0,a.D)(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return(0,d.U)(e,t,n)}
432build(e,t,n){(0,s.i)(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,i){c(e,t,n,i)}mount(e){this.isSVGTag=(0,l.a)(e.tagName),super.mount(e)}}},25558:function(e,t,n){"use strict";n.d(t,{i:function(){return l}});var i=n(66463),r=n(83617);let a={offset:"stroke-dashoffset",array:"stroke-dasharray"},s={offset:"strokeDashoffset",array:"strokeDasharray"};function o(e,t,n=1,i=0,o=!0){e.pathLength=1;let l=o?a:s;e[l.offset]=r.px.transform(-i);let u=r.px.transform(t),c=r.px.transform(n);e[l.array]=`${u} ${c}`}function l(e,{attrX:t,attrY:n,attrScale:r,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...u},c,d,h){if((0,i.r)(e,u,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:f,style:p}=e;f.transform&&(p.transform=f.transform,delete f.transform),(p.transform||f.transformOrigin)&&(p.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),p.transform&&(p.transformBox=h?.transformBox??"fill-box",delete f.transformBox),void 0!==t&&(f.x=t),void 0!==n&&(f.y=n),void 0!==r&&(f.scale=r),void 0!==a&&o(f,a,s,l,!1)}},42781:function(e,t,n){"use strict";n.d(t,{a:function(){return i}});let i=e=>"string"==typeof e&&"svg"===e.toLowerCase()},30909:function(e,t,n){"use strict";n.d(t,{U:function(){return s}});var i=n(32e3),r=n(9585),a=n(36297);function s(e,t,n){let s=(0,i.U)(e,t,n);for(let n in e)((0,r.i)(e[n])||(0,r.i)(t[n]))&&(s[-1!==a._.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return s}},87602:function(e,t,n){"use strict";n.d(t,{G:function(){return s},M:function(){return o}});var i=n(80488),r=n(94355),a=n(77871);function s(e){return(0,i.H)(e.animate)||a.V.some(t=>(0,r.$)(e[t]))}function o(e){return!!(s(e)||e.variants)}},94355:function(e,t,n){"use strict";function i(e){return"string"==typeof e||Array.isArray(e)}n.d(t,{$:function(){return i}})},5196:function(e,t,n){"use strict";n.d(t,{x:function(){return r}});var i=n(2145);function r(e,t,n){let r=e.getProps();return(0,i.o)(r,t,void 0!==n?n:r.custom,e)}},2145:function(e,t,n){"use strict";function i(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function r(e,t,n,r){if("function"==typeof t){let[a,s]=i(r);t=t(void 0!==n?n:e.custom,a,s)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[a,s]=i(r);t=t(void 0!==n?n:e.custom,a,s)}return t}n.d(t,{o:function(){return r}})},77871:function(e,t,n){"use strict";n.d(t,{V:function(){return r},e:function(){return i}});let i=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],r=["initial",...i]},28269:function(e,t,n){"use strict";n.d(t,{j:function(){return i}});let i="undefined"!=typeof window},47281:function(e,t,n){"use strict";n.d(t,{h:function(){return r}});var i=n(67294);function r(e){let t=(0,i.useRef)(null);return null===t.current&&(t.current=e()),t.current}},79867:function(e,t,n){"use strict";n.d(t,{Y:function(){return o}});var i=n(67294),r=n(7900);let a={some:0,all:1};function s(e,t,{root:n,margin:i,amount:s="some"}={}){let o=(0,r.I)(e),l=new WeakMap,u=new IntersectionObserver(e=>{e.forEach(e=>{let n=l.get(e.target);if(!!n!==e.isIntersecting){if(e.isIntersecting){let n=t(e.target,e);"function"==typeof n?l.set(e.target,n):u.unobserve(e.target)}else"function"==typeof n&&(n(e),l.delete(e.target))}})},{root:n,rootMargin:i,threshold:"number"==typeof s?s:a[s]});return o.forEach(e=>u.observe(e)),()=>u.disconnect()}function o(e,{root:t,margin:n,amount:r,once:a=!1,initial:o=!1}={}){let[l,u]=(0,i.useState)(o);return(0,i.useEffect)(()=>{if(!e.current||a&&l)return;let i=()=>(u(!0),a?void 0:()=>u(!1)),o={root:t&&t.current||void 0,margin:n,amount:r};return s(e.current,i,o)},[t,e,n,a,r]),l}},14822:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});var i=n(67294);let r=n(28269).j?i.useLayoutEffect:i.useEffect},82685:function(e,t,n){"use strict";n.d(t,{K:function(){return s}});var i=n(9585);function r(e){return!!((0,i.i)(e)&&e.add)}var a=n(55732);function s(e,t){let n=e.getValue("willChange");if(r(n))return n.add(t);if(!n&&a.c.WillChange){let n=new a.c.WillChange("auto");e.addValue("willChange",n),n.add(t)}}},1225:function(e,t,n){"use strict";n.d(t,{S:function(){return b}});var i=n(5714),r=n(47633),a=n(42982),s=n(85380);let o={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};var l=n(15888),u=n(718),c=n(45060);let d=.001;function h({duration:e=o.duration,bounce:t=o.bounce,velocity:n=o.velocity,mass:i=o.mass}){let r,a;
432(0,l.K)(e<=(0,u.w)(o.maxDuration),"Spring duration must be 10 seconds or less");let s=1-t;s=(0,c.u)(o.minDamping,o.maxDamping,s),e=(0,c.u)(o.minDuration,o.maxDuration,(0,u.X)(e)),s<1?(r=t=>{let i=t*s,r=i*e;return d-(i-n)/m(t,s)*Math.exp(-r)},a=t=>{let i=t*s*e,a=i*n+n,o=Math.pow(s,2)*Math.pow(t,2)*e,l=Math.exp(-i),u=m(Math.pow(t,2),s);return(a-o)*l*(-r(t)+d>0?-1:1)/u}):(r=t=>-d+Math.exp(-t*e)*((t-n)*e+1),a=t=>e*e*(n-t)*Math.exp(-t*e));let h=p(r,a,5/e);if(e=(0,u.w)(e),isNaN(h))return{stiffness:o.stiffness,damping:o.damping,duration:e};{let t=Math.pow(h,2)*i;return{stiffness:t,damping:2*s*Math.sqrt(i*t),duration:e}}}let f=12;function p(e,t,n){let i=n;for(let n=1;n<f;n++)i-=e(i)/t(i);return i}function m(e,t){return e*Math.sqrt(1-t*t)}let g=["duration","bounce"],v=["stiffness","damping","mass"];function y(e,t){return t.some(t=>void 0!==e[t])}function _(e){let t={velocity:o.velocity,stiffness:o.stiffness,damping:o.damping,mass:o.mass,isResolvedFromDuration:!1,...e};if(!y(e,v)&&y(e,g)){if(e.visualDuration){let n=2*Math.PI/(1.2*e.visualDuration),i=n*n,r=2*(0,c.u)(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:o.mass,stiffness:i,damping:r}}else{let n=h(e);(t={...t,...n,mass:o.mass}).isResolvedFromDuration=!0}}return t}function b(e=o.visualDuration,t=o.bounce){let n;let a="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:l,restDelta:c}=a,d=a.keyframes[0],h=a.keyframes[a.keyframes.length-1],f={done:!1,value:d},{stiffness:p,damping:g,mass:v,duration:y,velocity:b,isResolvedFromDuration:x}=_({...a,velocity:-(0,u.X)(a.velocity||0)}),C=b||0,E=g/(2*Math.sqrt(p*v)),w=h-d,T=(0,u.X)(Math.sqrt(p/v)),S=5>Math.abs(w);if(l||(l=S?o.restSpeed.granular:o.restSpeed.default),c||(c=S?o.restDelta.granular:o.restDelta.default),E<1){let e=m(T,E);n=t=>h-Math.exp(-E*T*t)*((C+E*T*w)/e*Math.sin(e*t)+w*Math.cos(e*t))}else if(1===E)n=e=>h-Math.exp(-T*e)*(w+(C+T*w)*e);else{let e=T*Math.sqrt(E*E-1);n=t=>{let n=Math.exp(-E*T*t),i=Math.min(e*t,300);return h-n*((C+E*T*w)*Math.sinh(i)+e*w*Math.cosh(i))/e}}let L={calculatedDuration:x&&y||null,next:e=>{let t=n(e);if(x)f.done=e>=y;else{let i=0===e?C:0;E<1&&(i=0===e?(0,u.w)(C):(0,s.P)(n,e,t));let r=Math.abs(i)<=l,a=Math.abs(h-t)<=c;f.done=r&&a}return f.value=f.done?h:t,f},toString:()=>{let e=Math.min((0,r.i)(L),r.E),t=(0,i.w)(t=>L.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return L}b.applyToOptions=e=>{let t=(0,a.S)(e,100,b);return e.ease=t.ease,e.duration=(0,u.w)(t.duration),e.type="keyframes",e}},47633:function(e,t,n){"use strict";n.d(t,{E:function(){return i},i:function(){return r}});let i=2e4;function r(e){let t=0,n=50,r=e.next(t);for(;!r.done&&t<i;)t+=n,r=e.next(t);return t>=i?1/0:t}},42982:function(e,t,n){"use strict";n.d(t,{S:function(){return a}});var i=n(47633),r=n(718);function a(e,t=100,n){let a=n({...e,keyframes:[0,t]}),s=Math.min((0,i.i)(a),i.E);return{type:"keyframes",ease:e=>a.next(s*e).value/t,duration:(0,r.X)(s)}}},45283:function(e,t,n){"use strict";function i(e){return"function"==typeof e&&"applyToOptions"in e}n.d(t,{x:function(){return i}})},85380:function(e,t,n){"use strict";n.d(t,{P:function(){return a}});var i=n(60039);let r=5;function a(e,t,n){let a=Math.max(t-r,0);return(0,i.R)(n-e(a),t-a)}},63990:function(e,t,n){"use strict";function i(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}n.d(t,{e:function(){return f},m:function(){return h}});var r=n(99163),a=n(75364);let s=new Set,o=!1,l=!1,u=!1;function c(){if(l){let e=Array.from(s).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=(0,r.Ei)(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}l=!1,o=!1,s.forEach(e=>e.complete(u)),s.clear()}function d(){s.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(l=!0)})}function h(){u=!0,d(),c(),u=!1}class f{constructor(e,t,n,i,r,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=i,this.element=r,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(s.add(this),o||(o=!0,a.Wi.read(d),a.Wi.resolveKeyframes(c))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(null===e[0]){let i=r?.get(),a=e[e.length-1];if(void 0!==i)e[0]=i;else if(n&&t){let i=n.readValue(t,a);null!=i&&(e[0]=i)}void 0===e[0]&&(e[0]=a),r&&void 0===i&&r.set(e[0])}i(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),s.delete(this)}cancel(){"scheduled"===this.state&&(s.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}},11354:function(e,t,n){"use strict";n.d(t,{Y:function(){return r}});var i=n(45845);function r(e){let t=[0];return(0,i.c)(t,e.length-1),t}},45845:function(e,t,n){"use strict";n.d(t,{c:function(){return a}});var i=n(98272),r=n(49181);function a(e,t){let n=e[e.length-1];for(let a=1;a<=t;a++){let s=(0,r.Y)(0,t,a);e.push((0,i.t)(n,1,s))}}}
432,99163:function(e,t,n){"use strict";n.d(t,{Ei:function(){return c},lw:function(){return d},mP:function(){return o}});var i=n(80753),r=n(36297),a=n(35636),s=n(83617);let o=e=>e===a.Rx||e===s.px,l=new Set(["x","y","z"]),u=r._.filter(e=>!l.has(e));function c(e){let t=[];return u.forEach(n=>{let i=e.getValue(n);void 0!==i&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),t}let d={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>(0,i.WK)(t,"x"),y:(e,{transform:t})=>(0,i.WK)(t,"y")};d.translateX=d.x,d.translateY=d.y},70128:function(e,t,n){"use strict";function i(e,t){return e?.[t]??e?.default??e}n.d(t,{e:function(){return i}})},19566:function(e,t,n){"use strict";n.d(t,{f:function(){return r},t:function(){return s}});let i=e=>t=>"string"==typeof t&&t.startsWith(e),r=i("--"),a=i("var(--"),s=e=>!!a(e)&&o.test(e.split("/*")[0].trim()),o=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu},5714:function(e,t,n){"use strict";n.d(t,{w:function(){return i}});let i=(e,t,n=10)=>{let i="",r=Math.max(Math.round(t/n),2);for(let t=0;t<r;t++)i+=e(t/(r-1))+", ";return`linear(${i.substring(0,i.length-2)})`}},15397:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});let i=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];var r=n(19062);function a(e,t){let n=new Set,i=new Set,a=!1,s=!1,o=new WeakSet,l={delta:0,timestamp:0,isProcessing:!1},u=0;function c(t){o.has(t)&&(d.schedule(t),e()),u++,t(l)}let d={schedule:(e,t=!1,r=!1)=>{let s=r&&a?n:i;return t&&o.add(e),s.has(e)||s.add(e),e},cancel:e=>{i.delete(e),o.delete(e)},process:e=>{if(l=e,a){s=!0;return}
432a=!0,[n,i]=[i,n],n.forEach(c),t&&r.f.value&&r.f.value.frameloop[t].push(u),u=0,n.clear(),a=!1,s&&(s=!1,d.process(e))}};return d}var s=n(55732);let o=40;function l(e,t){let n=!1,r=!0,l={delta:0,timestamp:0,isProcessing:!1},u=()=>n=!0,c=i.reduce((e,n)=>(e[n]=a(u,t?n:void 0),e),{}),{setup:d,read:h,resolveKeyframes:f,preUpdate:p,update:m,preRender:g,render:v,postRender:y}=c,_=()=>{let i=s.c.useManualTiming?l.timestamp:performance.now();n=!1,s.c.useManualTiming||(l.delta=r?1e3/60:Math.max(Math.min(i-l.timestamp,o),1)),l.timestamp=i,l.isProcessing=!0,d.process(l),h.process(l),f.process(l),p.process(l),m.process(l),g.process(l),v.process(l),y.process(l),l.isProcessing=!1,n&&t&&(r=!1,e(_))},b=()=>{n=!0,r=!0,l.isProcessing||e(_)};return{schedule:i.reduce((e,t)=>{let i=c[t];return e[t]=(e,t=!1,r=!1)=>(n||b(),i.schedule(e,t,r)),e},{}),cancel:e=>{for(let t=0;t<i.length;t++)c[i[t]].cancel(e)},state:l,steps:c}}},75364:function(e,t,n){"use strict";n.d(t,{Pn:function(){return s},Wi:function(){return a},frameData:function(){return o},yL:function(){return l}});var i=n(15397),r=n(52308);let{schedule:a,cancel:s,state:o,steps:l}=(0,i.Z)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:r.Z,!0)},5293:function(e,t,n){"use strict";let i;n.d(t,{X:function(){return o}});var r=n(75364),a=n(55732);function s(){i=void 0}let o={now:()=>(void 0===i&&o.set(r.frameData.isProcessing||a.c.useManualTiming?r.frameData.timestamp:performance.now()),i),set:e=>{i=e,queueMicrotask(s)}}},80753:function(e,t,n){"use strict";n.d(t,{E$:function(){return d},RT:function(){return f},WK:function(){return h}});let i=e=>180*e/Math.PI,r=e=>s(i(Math.atan2(e[1],e[0]))),a={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:r,rotateZ:r,skewX:e=>i(Math.atan(e[1])),skewY:e=>i(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},s=e=>((e%=360)<0&&(e+=360),e),o=r,l=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),u=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),c={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:l,scaleY:u,scale:e=>(l(e)+u(e))/2,rotateX:e=>s(i(Math.atan2(e[6],e[5]))),rotateY:e=>s(i(Math.atan2(-e[2],e[0]))),rotateZ:o,rotate:o,skewX:e=>i(Math.atan(e[4])),skewY:e=>i(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function d(e){return e.includes("scale")?1:0}function h(e,t){let n,i;if(!e||"none"===e)return d(t);let r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)n=c,i=r;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=a,i=t}if(!i)return d(t);let s=n[t],o=i[1].split(",").map(p);return"function"==typeof s?s(o):o[s]}let f=(e,t)=>{let{transform:n="none"}=getComputedStyle(e);return h(n,t)};function p(e){return parseFloat(e.trim())}},16467:function(e,t,n){"use strict";n.d(t,{z:function(){return i}});let i=new Set(["width","height","top","left","right","bottom",...n(36297)._])},36297:function(e,t,n){"use strict";n.d(t,{G:function(){return r},_:function(){return i}});let i=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],r=new Set(i)},13153:function(e,t,n){"use strict";n.d(t,{P:function(){return i}});let i={layout:0,mainThread:0,waapi:0}},19062:function(e,t,n){"use strict";n.d(t,{f:function(){return i}});let i={value:null,addProjectionMetrics:null}},52099:function(e,t,n){"use strict";n.d(t,{R:function(){return r}});var i=n(47030);function r(e){return(0,i.K)(e)&&"offsetHeight"in e}},66326:function(e,t,n){"use strict";n.d(t,{v:function(){return r}});var i=n(47030);function r(e){return(0,i.K)(e)&&"ownerSVGElement"in e}},65569:function(e,t,n){"use strict";n.d(t,{r:function(){return r}});var i=n(66326);function r(e){return(0,i.v)(e)&&"svg"===e.tagName}},98272:function(e,t,n){"use strict";n.d(t,{t:function(){return i}});let i=(e,t,n)=>e+(t-e)*n},7900:function(e,t,n){"use strict";function i(e,t,n){if(e instanceof EventTarget)return[e];if("string"==typeof e){let i=document;t&&(i=t.current);let r=n?.[e]??i.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e)}n.d(t,{I:function(){return i}})},15353:function(e,t,n){"use strict";n.d(t,{BX:function(){return d}});var i=n(5293),r=n(75364),a=n(97689),s=n(60039);let o=30,l=e=>!isNaN(parseFloat(e)),u={current:void 0};class c{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{let n=i.X.now();if(this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty();t&&this.events.renderRequest?.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=i.X.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=l(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new a.L);let n=this.events[e].add(t);return"change"===e?()=>{n(),r.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}
432setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return u.current&&u.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=i.X.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>o)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,o);return(0,s.R)(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function d(e,t){return new c(e,t)}},29250:function(e,t,n){"use strict";n.d(t,{$:function(){return a}});var i=n(76599);function r(e){let t="",n="",i="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,i+=i,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}}let a={test:(0,n(90762).i)("#"),parse:r,transform:i.m.transform}},90973:function(e,t,n){"use strict";n.d(t,{J:function(){return o}});var i=n(35636),r=n(83617),a=n(70698),s=n(90762);let o={test:(0,s.i)("hsl","hue"),parse:(0,s.d)("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:s=1})=>"hsla("+Math.round(e)+", "+r.aQ.transform((0,a.N)(t))+", "+r.aQ.transform((0,a.N)(n))+", "+(0,a.N)(i.Fq.transform(s))+")"}},10058:function(e,t,n){"use strict";n.d(t,{$:function(){return s}});var i=n(29250),r=n(90973),a=n(76599);let s={test:e=>a.m.test(e)||i.$.test(e)||r.J.test(e),parse:e=>a.m.test(e)?a.m.parse(e):r.J.test(e)?r.J.parse(e):i.$.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?a.m.transform(e):r.J.transform(e)}},76599:function(e,t,n){"use strict";n.d(t,{m:function(){return u}});var i=n(35636),r=n(70698),a=n(90762),s=n(45060);let o=e=>(0,s.u)(0,255,e),l={...i.Rx,transform:e=>Math.round(o(e))},u={test:(0,a.i)("rgb","red"),parse:(0,a.d)("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:a=1})=>"rgba("+l.transform(e)+", "+l.transform(t)+", "+l.transform(n)+", "+(0,r.N)(i.Fq.transform(a))+")"}},90762:function(e,t,n){"use strict";n.d(t,{i:function(){return s},d:function(){return o}});var i=n(54739);function r(e){return null==e}let a=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,s=(e,t)=>n=>!!("string"==typeof n&&a.test(n)&&n.startsWith(e)||t&&!r(n)&&Object.prototype.hasOwnProperty.call(n,t)),o=(e,t,n)=>r=>{if("string"!=typeof r)return r;let[a,s,o,l]=r.match(i.K);return{[e]:parseFloat(a),[t]:parseFloat(s),[n]:parseFloat(o),alpha:void 0!==l?parseFloat(l):1}}},30049:function(e,t,n){"use strict";n.d(t,{h:function(){return l}});var i=n(90477),r=n(54739);let a=new Set(["brightness","contrast","saturate","opacity"]);function s(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[i]=n.match(r.K)||[];if(!i)return e;let s=n.replace(i,""),o=a.has(t)?1:0;return i!==n&&(o*=100),t+"("+o+s+")"}let o=/\b([a-z-]*)\(.*?\)/gu,l={...i.P,getAnimatableNone:e=>{let t=e.match(o);return t?t.map(s).join(" "):e}}},90477:function(e,t,n){"use strict";n.d(t,{V:function(){return f},P:function(){return y}});var i=n(10058);let r=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var a=n(54739),s=n(70698);let o="number",l="color",u="var",c="var(",d="${}",h=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function f(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},a=[],s=0,f=t.replace(h,e=>(i.$.test(e)?(r.color.push(s),a.push(l),n.push(i.$.parse(e))):e.startsWith(c)?(r.var.push(s),a.push(u),n.push(e)):(r.number.push(s),a.push(o),n.push(parseFloat(e))),++s,d)).split(d);return{values:n,split:f,indexes:r,types:a}}function p(e){return f(e).values}function m(e){let{split:t,types:n}=f(e),r=t.length;return e=>{let a="";for(let u=0;u<r;u++)if(a+=t[u],void 0!==e[u]){let t=n[u];t===o?a+=(0,s.N)(e[u]):t===l?a+=i.$.transform(e[u]):a+=e[u]}return a}}let g=e=>"number"==typeof e?0:e;function v(e){let t=p(e);return m(e)(t.map(g))}let y={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(a.K)?.length||0)+(e.match(r)?.length||0)>0},parse:p,createTransformer:m,getAnimatableNone:v}},58193:function(e,t,n){"use strict";n.d(t,{$:function(){return o},C:function(){return l}});let i={test:e=>"auto"===e,parse:e=>e};var r=n(35636),a=n(83617),s=n(51178);let o=[r.Rx,a.px,a.aQ,a.RW,a.vw,a.vh,i],l=e=>o.find((0,s.l)(e))},57210:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var i=n(10058),r=n(30049);let a={...n(89635).j,color:i.$,backgroundColor:i.$,outlineColor:i.$,fill:i.$,stroke:i.$,borderColor:i.$,borderTopColor:i.$,borderRightColor:i.$,borderBottomColor:i.$,borderLeftColor:i.$,filter:r.h,WebkitFilter:r.h},s=e=>a[e]}
432,89635:function(e,t,n){"use strict";n.d(t,{j:function(){return o}});var i=n(35636);let r={...i.Rx,transform:Math.round};var a=n(83617);let s={rotate:a.RW,rotateX:a.RW,rotateY:a.RW,rotateZ:a.RW,scale:i.bA,scaleX:i.bA,scaleY:i.bA,scaleZ:i.bA,skew:a.RW,skewX:a.RW,skewY:a.RW,distance:a.px,translateX:a.px,translateY:a.px,translateZ:a.px,x:a.px,y:a.px,z:a.px,perspective:a.px,transformPerspective:a.px,opacity:i.Fq,originX:a.$C,originY:a.$C,originZ:a.px},o={borderWidth:a.px,borderTopWidth:a.px,borderRightWidth:a.px,borderBottomWidth:a.px,borderLeftWidth:a.px,borderRadius:a.px,radius:a.px,borderTopLeftRadius:a.px,borderTopRightRadius:a.px,borderBottomRightRadius:a.px,borderBottomLeftRadius:a.px,width:a.px,maxWidth:a.px,height:a.px,maxHeight:a.px,top:a.px,right:a.px,bottom:a.px,left:a.px,padding:a.px,paddingTop:a.px,paddingRight:a.px,paddingBottom:a.px,paddingLeft:a.px,margin:a.px,marginTop:a.px,marginRight:a.px,marginBottom:a.px,marginLeft:a.px,backgroundPositionX:a.px,backgroundPositionY:a.px,...s,zIndex:r,fillOpacity:i.Fq,strokeOpacity:i.Fq,numOctaves:r}},35636:function(e,t,n){"use strict";n.d(t,{Fq:function(){return a},Rx:function(){return r},bA:function(){return s}});var i=n(45060);let r={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},a={...r,transform:e=>(0,i.u)(0,1,e)},s={...r,default:1}},83617:function(e,t,n){"use strict";n.d(t,{$C:function(){return u},RW:function(){return r},aQ:function(){return a},px:function(){return s},vh:function(){return o},vw:function(){return l}});let i=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),r=i("deg"),a=i("%"),s=i("px"),o=i("vh"),l=i("vw"),u={...a,parse:e=>a.parse(e)/100,transform:e=>a.transform(100*e)}},51178:function(e,t,n){"use strict";n.d(t,{l:function(){return i}});let i=e=>t=>t.test(e)},39535:function(e,t,n){"use strict";n.d(t,{T:function(){return s}});var i=n(90477),r=n(30049),a=n(57210);function s(e,t){let n=(0,a.A)(e);return n!==r.h&&(n=i.P),n.getAnimatableNone?n.getAnimatableNone(t):void 0}},54739:function(e,t,n){"use strict";n.d(t,{K:function(){return i}});let i=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},70698:function(e,t,n){"use strict";n.d(t,{N:function(){return i}});let i=e=>Math.round(1e5*e)/1e5},9585:function(e,t,n){"use strict";n.d(t,{i:function(){return i}});let i=e=>!!(e&&e.getVelocity)},39515:function(e,t,n){"use strict";function i(e,t){-1===e.indexOf(t)&&e.push(t)}function r(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}n.d(t,{cl:function(){return r},y4:function(){return i}})},45060:function(e,t,n){"use strict";n.d(t,{u:function(){return i}});let i=(e,t,n)=>n>t?t:n<e?e:n},28105:function(e,t,n){"use strict";n.d(t,{Bn:function(){return s},X7:function(){return o},Z7:function(){return a}});var i=n(82669),r=n(21219);let a=e=>1-Math.sin(Math.acos(e)),s=(0,r.M)(a),o=(0,i.o)(a)},82669:function(e,t,n){"use strict";n.d(t,{o:function(){return i}});let i=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2},21219:function(e,t,n){"use strict";n.d(t,{M:function(){return i}});let i=e=>t=>1-e(1-t)},88181:function(e,t,n){"use strict";n.d(t,{N:function(){return i}});let i=e=>Array.isArray(e)&&"number"!=typeof e[0]},15888:function(e,t,n){"use strict";n.d(t,{K:function(){return i},k:function(){return r}});let i=()=>{},r=()=>{}},55732:function(e,t,n){"use strict";n.d(t,{c:function(){return i}});let i={}},67228:function(e,t,n){"use strict";n.d(t,{P:function(){return i}});let i=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)},47030:function(e,t,n){"use strict";function i(e){return"object"==typeof e&&null!==e}n.d(t,{K:function(){return i}})},8688:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});let i=e=>/^0[^.\s]+$/u.test(e)},52308:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});let i=e=>e},79552:function(e,t,n){"use strict";n.d(t,{z:function(){return r}});let i=(e,t)=>n=>t(e(n)),r=(...e)=>e.reduce(i)},49181:function(e,t,n){"use strict";n.d(t,{Y:function(){return i}});let i=(e,t,n)=>{let i=t-e;return 0===i?1:(n-e)/i}},97689:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});var i=n(39515);class r{constructor(){this.subscriptions=[]}add(e){return(0,i.y4)(this.subscriptions,e),()=>(0,i.cl)(this.subscriptions,e)}
432notify(e,t,n){let i=this.subscriptions.length;if(i){if(1===i)this.subscriptions[0](e,t,n);else for(let r=0;r<i;r++){let i=this.subscriptions[r];i&&i(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},718:function(e,t,n){"use strict";n.d(t,{X:function(){return r},w:function(){return i}});let i=e=>1e3*e,r=e=>e/1e3},60039:function(e,t,n){"use strict";function i(e,t){return t?1e3/t*e:0}n.d(t,{R:function(){return i}})},56275:function(e,t,n){"use strict";let i;n.d(t,{g7:function(){return f},dP:function(){return H},re:function(){return q}});var r=n(75028),a=n(2379);let s=null,o={},l=1,u=()=>class{constructor(){this.id=["slot",l++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=s;e;e=e.parent)if(this.id in e.slots){let t=e.slots[this.id];if(t===o)break;return e!==s&&(s.slots[this.id]=t),!0}return s&&(s.slots[this.id]=o),!1}getValue(){if(this.hasValue())return s.slots[this.id]}withValue(e,t,n,i){let r={__proto__:null,[this.id]:e},a=s;s={parent:a,slots:r};try{return t.apply(i,n)}finally{s=a}}static bind(e){let t=s;return function(){let n=s;try{return s=t,e.apply(this,arguments)}finally{s=n}}}static noContext(e,t,n){if(!s)return e.apply(n,t);{let i=s;try{return s=null,e.apply(n,t)}finally{s=i}}}};function c(e){try{return e()}catch(e){}}let d="@wry/context:Slot",h=c(()=>globalThis)||c(()=>global)||Object.create(null),f=h[d]||Array[d]||function(e){try{Object.defineProperty(h,d,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(u()),{bind:p,noContext:m}=f,g=new f,{hasOwnProperty:v}=Object.prototype,y=Array.from||function(e){let t=[];return e.forEach(e=>t.push(e)),t};function _(e){let{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}let b=[],x=100;function C(e,t){if(!e)throw Error(t||"assertion failure")}function E(e,t){let n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}function w(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function T(e){return e.slice(0)}class S{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++S.count}peek(){if(1===this.value.length&&!A(this))return L(this),this.value[0]}recompute(e){return C(!this.recomputing,"already recomputing"),L(this),A(this)?P(this,e):w(this.value)}setDirty(){this.dirty||(this.dirty=!0,R(this),_(this))}dispose(){this.setDirty(),j(this),D(this,(e,t)=>{e.setDirty(),U(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=b.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(y(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),b.push(this.deps),this.deps=null)}}function L(e){let t=g.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),A(e)?N(t,e):F(t,e),t}function P(e,t){return j(e),g.withValue(e,M,[e,t]),V(e,t)&&I(e),w(e.value)}function M(e,t){let n;
432e.recomputing=!0;let{normalizeResult:i}=e;i&&1===e.value.length&&(n=T(e.value)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),i&&n&&!E(n,e.value))try{e.value[0]=i(e.value[0],n[0])}catch(e){}}catch(t){e.value[1]=t}e.recomputing=!1}function A(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function I(e){e.dirty=!1,A(e)||k(e)}function R(e){D(e,N)}function k(e){D(e,F)}function D(e,t){let n=e.parents.size;if(n){let i=y(e.parents);for(let r=0;r<n;++r)t(i[r],e)}}function N(e,t){C(e.childValues.has(t)),C(A(t));let n=!A(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=b.pop()||new Set;e.dirtyChildren.add(t),n&&R(e)}function F(e,t){C(e.childValues.has(t)),C(!A(t));let n=e.childValues.get(t);0===n.length?e.childValues.set(t,T(t.value)):E(n,t.value)||e.setDirty(),O(e,t),A(e)||k(e)}function O(e,t){let n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(b.length<x&&b.push(n),e.dirtyChildren=null))}function j(e){e.childValues.size>0&&e.childValues.forEach((t,n)=>{U(e,n)}),e.forgetDeps(),C(null===e.dirtyChildren)}function U(e,t){t.parents.delete(e),e.childValues.delete(t),O(e,t)}function V(e,t){if("function"==typeof e.subscribe)try{_(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}S.count=0;let B={setDirty:!0,dispose:!0,forget:!0};function H(e){let t=new Map,n=e&&e.subscribe;function i(e){let i=g.getValue();if(i){let r=t.get(e);r||t.set(e,r=new Set),i.dependOn(r),"function"==typeof n&&(_(r),r.unsubscribe=n(e))}}return i.dirty=function(e,n){let i=t.get(e);if(i){let r=n&&v.call(B,n)?n:"setDirty";y(i).forEach(e=>e[r]()),t.delete(e),_(i)}},i}function G(...e){return(i||(i=new r.B("function"==typeof WeakMap))).lookupArray(e)}let z=new Set;function q(e,{max:t=65536,keyArgs:n,makeCacheKey:i=G,normalizeResult:r,subscribe:s,cache:o=a.e}=Object.create(null)){let l="function"==typeof o?new o(t,e=>e.dispose()):o,u=function(){let t=i.apply(null,n?n.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let a=l.get(t);a||(l.set(t,a=new S(e)),a.normalizeResult=r,a.subscribe=s,a.forget=()=>l.delete(t));let o=a.recompute(Array.prototype.slice.call(arguments));return l.set(t,a),z.add(l),g.hasValue()||(z.forEach(e=>e.clean()),z.clear()),o};function c(e){let t=e&&l.get(e);t&&t.setDirty()}function d(e){let t=e&&l.get(e);if(t)return t.peek()}function h(e){return!!e&&l.delete(e)}return Object.defineProperty(u,"size",{get:()=>l.size,configurable:!1,enumerable:!1}),Object.freeze(u.options={max:t,keyArgs:n,makeCacheKey:i,normalizeResult:r,subscribe:s,cache:l}),u.dirtyKey=c,u.dirty=function(){c(i.apply(null,arguments))},u.peekKey=d,u.peek=function(){return d(i.apply(null,arguments))},u.forgetKey=h,u.forget=function(){return h(i.apply(null,arguments))},u.makeCacheKey=i,u.getKey=n?function(){return i.apply(null,n.apply(null,arguments))}:i,Object.freeze(u)}},97582:function(e,t,n){"use strict";n.d(t,{Jh:function(){return l},ZT:function(){return r},_T:function(){return s},ev:function(){return u},mG:function(){return o},pi:function(){return a}});var i=function(e,t){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function r(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return(a=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function s(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)0>t.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}function o(e,t,n,i){function r(e){return e instanceof n?e:new n(function(t){t(e)})}
432return new(n||(n=Promise))(function(n,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){e.done?n(e.value):r(e.value).then(s,o)}l((i=i.apply(e,t||[])).next())})}function l(e,t){var n,i,r,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=o(0),s.throw=o(1),s.return=o(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(e){return function(t){return l([e,t])}}function l(o){if(n)throw TypeError("Generator is already executing.");for(;s&&(s=0,o[0]&&(a=0)),a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}function u(e,t,n){if(n||2==arguments.length)for(var i,r=0,a=t.length;r<a;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError},48216:function(e,t,n){"use strict";function i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=r(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{y:function(){return S}});var l=function(){return"function"==typeof Symbol},u=function(e){return l()&&!!Symbol[e]},c=function(e){return u(e)?Symbol[e]:"@@"+e};l()&&!u("observable")&&(Symbol.observable=Symbol("observable"));var d=c("iterator"),h=c("observable"),f=c("species");function p(e,t){var n=e[t];if(null!=n){if("function"!=typeof n)throw TypeError(n+" is not a function");return n}}function m(e){var t=e.constructor;return void 0!==t&&null===(t=t[f])&&(t=void 0),void 0!==t?t:S}function g(e){return e instanceof S}function v(e){v.log?v.log(e):setTimeout(function(){throw e})}function y(e){Promise.resolve().then(function(){try{e()}catch(e){v(e)}})}function _(e){var t=e._cleanup;if(void 0!==t){if(e._cleanup=void 0,!t)return;try{if("function"==typeof t)t();else{var n=p(t,"unsubscribe");n&&n.call(t)}}catch(e){v(e)}}}function b(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function x(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(C(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}function C(e,t,n){e._state="running";var i=e._observer;try{var r=p(i,t);switch(t){case"next":r&&r.call(i,n);break;case"error":if(b(e),r)r.call(i,n);else throw n;break;case"complete":b(e),r&&r.call(i)}}catch(e){v(e)}"closed"===e._state?_(e):"running"===e._state&&(e._state="ready")}function E(e,t,n){if("closed"!==e._state){if("buffering"===e._state){e._queue.push({type:t,value:n});return}if("ready"!==e._state){e._state="buffering",e._queue=[{type:t,value:n}],y(function(){return x(e)});return}C(e,t,n)}}var w=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var n=new T(this);try{this._cleanup=t.call(void 0,n)}catch(e){n.error(e)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(b(this),_(this))},o(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),T=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){E(this._subscription,"next",e)},t.error=function(e){E(this._subscription,"error",e)},t.complete=function(){E(this._subscription,"complete")},o(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),S=function(){function e(t){if(!(this instanceof e))throw TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return("object"!=typeof e||null===e)&&(e={next:e,error:arguments[1],complete:arguments[2]}),new w(e,this._subscriber)},t.forEach=function(e){var t=this;
432return new Promise(function(n,i){if("function"!=typeof e){i(TypeError(e+" is not a function"));return}function r(){a.unsubscribe(),n()}var a=t.subscribe({next:function(t){try{e(t,r)}catch(e){i(e),a.unsubscribe()}},error:i,complete:n})})},t.map=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(m(this))(function(n){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})})},t.filter=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(m(this))(function(n){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})})},t.reduce=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var n=m(this),i=arguments.length>1,r=!1,a=arguments[1],s=a;return new n(function(n){return t.subscribe({next:function(t){var a=!r;if(r=!0,!a||i)try{s=e(s,t)}catch(e){return n.error(e)}else s=t},error:function(e){n.error(e)},complete:function(){if(!r&&!i)return n.error(TypeError("Cannot reduce an empty sequence"));n.next(s),n.complete()}})})},t.concat=function(){for(var e=this,t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=m(this);return new r(function(t){var i,a=0;function s(e){i=e.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){a===n.length?(i=void 0,t.complete()):s(r.from(n[a++]))}})}return s(e),function(){i&&(i.unsubscribe(),i=void 0)}})},t.flatMap=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var n=m(this);return new n(function(i){var r=[],a=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return i.error(e)}var a=n.from(t).subscribe({next:function(e){i.next(e)},error:function(e){i.error(e)},complete:function(){var e=r.indexOf(a);e>=0&&r.splice(e,1),s()}});r.push(a)},error:function(e){i.error(e)},complete:function(){s()}});function s(){a.closed&&0===r.length&&i.complete()}return function(){r.forEach(function(e){return e.unsubscribe()}),a.unsubscribe()}})},t[h]=function(){return this},e.from=function(t){var n="function"==typeof this?this:e;if(null==t)throw TypeError(t+" is not an object");var r=p(t,h);if(r){var a=r.call(t);if(Object(a)!==a)throw TypeError(a+" is not an object");return g(a)&&a.constructor===n?a:new n(function(e){return a.subscribe(e)})}if(u("iterator")&&(r=p(t,d)))return new n(function(e){y(function(){if(!e.closed){for(var n,a=i(r.call(t));!(n=a()).done;){var s=n.value;if(e.next(s),e.closed)return}e.complete()}})});if(Array.isArray(t))return new n(function(e){y(function(){if(!e.closed){for(var n=0;n<t.length;++n)if(e.next(t[n]),e.closed)return;e.complete()}})});throw TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return new("function"==typeof this?this:e)(function(e){y(function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}})})},o(e,null,[{key:f,get:function(){return this}}]),e}();l()&&Object.defineProperty(S,Symbol("extensions"),{value:{symbol:h,hostReportError:v},configurable:!0})}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[774,179],function(){return t(6840),t(43079)}),_N_E=e.O()}]); 433//# sourceMappingURL=_app-35d3f66367864eb1.js.map
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.