PageSourceSearch

https://printframeco.com/cdn/shop/t/6/assets/studio.js?v=75428465259141803561791055944&sb=2026-08-25-2

js printframeco.com collected 2026-10-04 17:17:08 UTC 1,382,467 bytes, 2 lines download raw bytes

vendor: 4,201 bytes, lines 1-2
1/*! For license information please see bundle.js.LICENSE.txt */
2(()=>{var e,t,n={23:(e,t,n)=>{"use strict";e.exports=n(941)},87:(e,t,n)=>{"use strict";e.exports=n(174)},174:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.iterator,m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function x(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}function y(){}function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}x.prototype.isReactComponent={},x.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},x.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=x.prototype;var b=v.prototype=new y;b.constructor=v,h(b,x.prototype),b.isPureReactComponent=!0;var Y=Array.isArray,M=Object.prototype.hasOwnProperty,w={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function j(e,t,r){var o,a={},i=null,l=null;if(null!=t)for(o in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(i=""+t.key),t)M.call(t,o)&&!S.hasOwnProperty(o)&&(a[o]=t[o]);var s=arguments.length-2;if(1===s)a.children=r;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];a.children=c}if(e&&e.defaultProps)for(o in s=e.defaultProps)void 0===a[o]&&(a[o]=s[o]);return{$$typeof:n,type:e,key:i,ref:l,props:a,_owner:w.current}}function T(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var N=/\/+/g;function W(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function I(e,t,o,a,i){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var s=!1;if(null===e)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case n:case r:s=!0}}if(s)return i=i(s=e),e=""===a?"."+W(s,0):a,Y(i)?(o="",null!=e&&(o=e.replace(N,"$&/")+"/"),I(i,t,o,"",function(e){return e})):null!=i&&(T(i)&&(i=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,o+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(N,"$&/")+"/")+e)),t.push(i)),1;if(s=0,a=""===a?".":a+":",Y(e))for(var c=0;c<e.length;c++){var u=a+W(l=e[c],c);s+=I(l,t,o,u,i)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(l=e.next()).done;)s+=I(l=l.value,t,o,u=a+W(l,c++),i);else if("object"===l)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function U(e,t,n){if(null==e)return e;var r=[],o=0;return I(e,r,"","",function(e){return t.call(n,e,o++)}),r}function k(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var D={current:null},A={transition:null},C={ReactCurrentDispatcher:D,ReactCurrentBatchConfig:A,ReactCurrentOwner:w};function L(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:U,forEach:function(e,t,n){U(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return U(e,function(){t++}),t},toArray:function(e){return U(e,function(e){return e})||[]},only:function(e){if(!T(e))throw Error("React.Children.only expected to receive a single React element child.");return e}}
vendor: 4,217 bytes, line 2
2,t.Component=x,t.Fragment=o,t.Profiler=i,t.PureComponent=v,t.StrictMode=a,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=C,t.act=L,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=h({},e.props),a=e.key,i=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,l=w.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)M.call(t,c)&&!S.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==s?s[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){s=Array(c);for(var u=0;u<c;u++)s[u]=arguments[u+2];o.children=s}return{$$typeof:n,type:e.type,key:a,ref:i,props:o,_owner:l}},t.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=j,t.createFactory=function(e){var t=j.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=T,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:k}},t.memo=function(e,t){return{$$typeof:p,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=A.transition;A.transition={};try{e()}finally{A.transition=t}},t.unstable_act=L,t.useCallback=function(e,t){return D.current.useCallback(e,t)},t.useContext=function(e){return D.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return D.current.useDeferredValue(e)},t.useEffect=function(e,t){return D.current.useEffect(e,t)},t.useId=function(){return D.current.useId()},t.useImperativeHandle=function(e,t,n){return D.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return D.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return D.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return D.current.useMemo(e,t)},t.useReducer=function(e,t,n){return D.current.useReducer(e,t,n)},t.useRef=function(e){return D.current.useRef(e)},t.useState=function(e){return D.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return D.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return D.current.useTransition()},t.version="18.3.1"},189:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},222:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},242:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(720),o=n.n(r),a=n(857),i=n.n(a)()(o());i.push([e.id,'*, ::before, ::after {\n  --tw-border-spacing-x: 0;\n  --tw-border-spacing-y: 0;\n  --tw-translate-x: 0;\n  --tw-translate-y: 0;\n  --tw-rotate: 0;\n  --tw-skew-x: 0;\n  --tw-skew-y: 0;\n  --tw-scale-x: 1;\n  --tw-scale-y: 1;\n  --tw-pan-x:  ;\n  --tw-pan-y:  ;\n  --tw-pinch-zoom:  ;\n  --tw-scroll-snap-strictness: proximity;\n  --tw-gradient-from-position:  ;\n  --tw-gradient-via-position:  ;\n  --tw-gradient-to-position:  ;\n  --tw-ordinal:  ;\n  --tw-slashed-zero:  ;\n  --tw-numeric-figure:  ;\n  --tw-numeric-spacing:  ;\n  --tw-numeric-fraction:  ;\n  --tw-ring-inset:  ;\n  --tw-ring-offset-width: 0px;\n  --tw-ring-offset-color: #fff;\n  --tw-ring-color: rgb(59 130 246 / 0.5);\n  --tw-ring-offset-shadow: 0 0 #0000;\n  --tw-ring-shadow: 0 0 #0000;\n  --tw-shadow: 0 0 #0000;\n  --tw-shadow-colored: 0 0 #0000;\n  --tw-blur:  ;\n  --tw-brightness:  ;\n  --tw-contrast:  ;\n  --tw-grayscale:  ;\n  --tw-hue-rotate:  ;\n  --tw-invert:  ;\n  --tw-saturate:  ;\n  --tw-sepia:  ;\n  --tw-drop-shadow:  ;\n  --tw-backdrop-blur:  ;\n  --tw-backdrop-brightness:  ;\n  --tw-backdrop-contrast:  ;\n  --tw-backdrop-grayscale:  ;\n  --tw-backdrop-hue-rotate:  ;\n  --tw-backdrop-invert:  ;
2\n  --tw-backdrop-opacity:  ;\n  --tw-backdrop-saturate:  ;\n  --tw-backdrop-sepia:  ;\n  --tw-contain-size:  ;\n  --tw-contain-layout:  ;\n  --tw-contain-paint:  ;\n  --tw-contain-style:  ;\n}\n::backdrop {\n  --tw-border-spacing-x: 0;\n  --tw-border-spacing-y: 0;\n  --tw-translate-x: 0;\n  --tw-translate-y: 0;\n  --tw-rotate: 0;\n  --tw-skew-x: 0;\n  --tw-skew-y: 0;\n  --tw-scale-x: 1;\n  --tw-scale-y: 1;\n  --tw-pan-x:  ;\n  --tw-pan-y:  ;\n  --tw-pinch-zoom:  ;\n  --tw-scroll-snap-strictness: proximity;\n  --tw-gradient-from-position:  ;\n  --tw-gradient-via-position:  ;\n  --tw-gradient-to-position:  ;\n  --tw-ordinal:  ;\n  --tw-slashed-zero:  ;\n  --tw-numeric-figure:  ;\n  --tw-numeric-spacing:  ;\n  --tw-numeric-fraction:  ;\n  --tw-ring-inset:  ;\n  --tw-ring-offset-width: 0px;\n  --tw-ring-offset-color: #fff;\n  --tw-ring-color: rgb(59 130 246 / 0.5);\n  --tw-ring-offset-shadow: 0 0 #0000;\n  --tw-ring-shadow: 0 0 #0000;\n  --tw-shadow: 0 0 #0000;\n  --tw-shadow-colored: 0 0 #0000;\n  --tw-blur:  ;\n  --tw-brightness:  ;\n  --tw-contrast:  ;\n  --tw-grayscale:  ;\n  --tw-hue-rotate:  ;\n  --tw-invert:  ;\n  --tw-saturate:  ;\n  --tw-sepia:  ;\n  --tw-drop-shadow:  ;\n  --tw-backdrop-blur:  ;\n  --tw-backdrop-brightness:  ;\n  --tw-backdrop-contrast:  ;\n  --tw-backdrop-grayscale:  ;\n  --tw-backdrop-hue-rotate:  ;\n  --tw-backdrop-invert:  ;\n  --tw-backdrop-opacity:  ;\n  --tw-backdrop-saturate:  ;\n  --tw-backdrop-sepia:  ;\n  --tw-contain-size:  ;\n  --tw-contain-layout:  ;\n  --tw-contain-paint:  ;\n  --tw-contain-style:  ;\n}\n.tpe-sr-only {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  padding: 0;\n  margin: -1px;\n  overflow: hidden;\n  clip: rect(0, 0, 0, 0);\n  white-space: nowrap;\n  border-width: 0;\n}\n.tpe-pointer-events-none {\n  pointer-events: none;\n}\n.tpe-invisible {\n  visibility: hidden;\n}\n.tpe-fixed {\n  position: fixed;\n}\n.tpe-absolute {\n  position: absolute;\n}\n.tpe-relative {\n  position: relative;\n}\n.tpe-sticky {\n  position: sticky;\n}\n.tpe-inset-0 {\n  inset: 0em;\n}\n.tpe-inset-x-0 {\n  left: 0em;\n  right: 0em;\n}\n.tpe-bottom-0 {\n  bottom: 0em;\n}\n.tpe-bottom-1 {\n  bottom: 0.25em;\n}\n.tpe-bottom-2 {\n  bottom: 0.5em;\n}\n.tpe-bottom-3 {\n  bottom: 0.75em;\n}\n.tpe-bottom-4 {\n  bottom: 1em;\n}\n.tpe-bottom-8 {\n  bottom: 2em;\n}\n.tpe-left-0 {\n  left: 0em;\n}\n.tpe-left-1 {\n  left: 0.25em;\n}\n.tpe-left-1\\/2 {\n  left: 50%;\n}\n.tpe-left-2 {\n  left: 0.5em;\n}\n.tpe-left-2\\.5 {\n  left: 0.625rem;\n}\n.tpe-left-3 {\n  left: 0.75em;\n}\n.tpe-left-4 {\n  left: 1em;\n}\n.tpe-right-0 {\n  right: 0em;\n}\n.tpe-right-0\\.5 {\n  right: 0.125rem;\n}\n.tpe-right-1 {\n  right: 0.25em;\n}\n.tpe-right-1\\.5 {\n  right: 0.375rem;\n}\n.tpe-right-2 {\n  right: 0.5em;\n}\n.tpe-right-3 {\n  right: 0.75em;\n}\n.tpe-right-4 {\n  right: 1em;\n}\n.tpe-top-0 {\n  top: 0em;\n}\n.tpe-top-0\\.5 {\n  top: 0.125rem;\n}\n.tpe-top-1 {\n  top: 0.25em;\n}\n.tpe-top-1\\.5 {\n  top: 0.375rem;\n}\n.tpe-top-1\\/2 {\n  top: 50%;\n}\n.tpe-top-2 {\n  top: 0.5em;\n}\n.tpe-top-2\\.5 {\n  top: 0.625rem;\n}\n.tpe-top-3 {\n  top: 0.75em;\n}\n.tpe-top-4 {\n  top: 1em;\n}\n.tpe-top-9 {\n  top: 2.25em;\n}\n.tpe-top-full {\n  top: 100%;\n}\n.tpe-z-10 {\n  z-index: 10;\n}\n.tpe-z-20 {\n  z-index: 20;\n}\n.tpe-z-30 {\n  z-index: 30;\n}\n.tpe-z-40 {\n  z-index: 40;\n}\n.tpe-z-50 {\n  z-index: 50;\n}\n.tpe-z-\\[100000\\] {\n  z-index: 100000;\n}\n.tpe-z-\\[100001\\] {\n  z-index: 100001;\n}\n.tpe-z-\\[10000\\] {\n  z-index: 10000;\n}\n.tpe-z-\\[10001\\] {\n  z-index: 10001;\n}\n.tpe-z-\\[400\\] {\n  z-index: 400;\n}\n.tpe-z-\\[50000\\] {\n  z-index: 50000;\n}\n.tpe-z-\\[99999\\] {\n  z-index: 99999;\n}\n.tpe-z-\\[9999\\] {\n  z-index: 9999;\n}\n.tpe-mx-auto {\n  margin-left: auto;\n  margin-right: auto;\n}\n.tpe-my-2 {\n  margin-top: 0.5em;\n  margin-bottom: 0.5em;\n}\n.tpe--mt-1 {\n  margin-top: -0.25em;\n}\n.tpe-mb-1 {\n  margin-bottom: 0.25em;\n}\n.tpe-mb-2 {\n  margin-bottom: 0.5em;\n}\n.tpe-mb-2\\.5 {\n  margin-bottom: 0.625rem;\n}\n.tpe-mb-3 {\n  margin-bottom: 0.75em;\n}\n.tpe-mb-4 {\n  margin-bottom: 1em;\n}\n.tpe-mb-6 {\n  margin-bottom: 1.5em;\n}\n.tpe-mb-8 {\n  margin-bottom: 2em;\n}\n.tpe-ml-1 {\n  margin-left: 0.25em;\n}\n.tpe-ml-2 {\n  margin-left: 0.5em;\n}\n.tpe-ml-auto {\n  margin-left: auto;\n}\n.tpe-mr-1 {\n  margin-right: 0.25em;\n}\n.tpe-mt-0\\.5 {\n  margin-top: 0.125rem;\n}\n.tpe-mt-1 {\n  margin-top: 0.25em;\n}\n.tpe-mt-1\\.5 {\n  margin-top: 0.375rem;\n}\n.tpe-mt-10 {\n  margin-top: 2.5em;
2\n}\n.tpe-mt-2 {\n  margin-top: 0.5em;\n}\n.tpe-mt-3 {\n  margin-top: 0.75em;\n}\n.tpe-mt-4 {\n  margin-top: 1em;\n}\n.tpe-mt-5 {\n  margin-top: 1.25em;\n}\n.tpe-mt-auto {\n  margin-top: auto;\n}\n.tpe-box-border {\n  box-sizing: border-box;\n}\n.\\!tpe-block {\n  display: block !important;\n}\n.tpe-block {\n  display: block;\n}\n.tpe-inline-block {\n  display: inline-block;\n}\n.tpe-flex {\n  display: flex;\n}\n.tpe-inline-flex {\n  display: inline-flex;\n}\n.tpe-grid {\n  display: grid;\n}\n.tpe-hidden {\n  display: none;\n}\n.tpe-aspect-square {\n  aspect-ratio: 1 / 1;\n}\n.\\!tpe-h-full {\n  height: 100% !important;\n}\n.tpe-h-0 {\n  height: 0em;\n}\n.tpe-h-0\\.5 {\n  height: 0.125rem;\n}\n.tpe-h-1 {\n  height: 0.25em;\n}\n.tpe-h-1\\.5 {\n  height: 0.375rem;\n}\n.tpe-h-10 {\n  height: 2.5em;\n}\n.tpe-h-11 {\n  height: 2.75em;\n}\n.tpe-h-12 {\n  height: 3em;\n}\n.tpe-h-14 {\n  height: 3.5em;\n}\n.tpe-h-16 {\n  height: 4em;\n}\n.tpe-h-2 {\n  height: 0.5em;\n}\n.tpe-h-2\\.5 {\n  height: 0.625rem;\n}\n.tpe-h-20 {\n  height: 5em;\n}\n.tpe-h-24 {\n  height: 6em;\n}\n.tpe-h-3 {\n  height: 0.75em;\n}\n.tpe-h-3\\.5 {\n  height: 0.875rem;\n}\n.tpe-h-32 {\n  height: 8em;\n}\n.tpe-h-4 {\n  height: 1em;\n}\n.tpe-h-5 {\n  height: 1.25em;\n}\n.tpe-h-56 {\n  height: 14em;\n}\n.tpe-h-6 {\n  height: 1.5em;\n}\n.tpe-h-7 {\n  height: 1.75em;\n}\n.tpe-h-8 {\n  height: 2em;\n}\n.tpe-h-9 {\n  height: 2.25em;\n}\n.tpe-h-\\[100dvh\\] {\n  height: 100dvh;\n}\n.tpe-h-\\[25vh\\] {\n  height: 25vh;\n}\n.tpe-h-\\[2px\\] {\n  height: 2px;\n}\n.tpe-h-\\[40\\%\\] {\n  height: 40%;\n}\n.tpe-h-\\[80vh\\] {\n  height: 80vh;\n}\n.tpe-h-auto {\n  height: auto;\n}\n.tpe-h-full {\n  height: 100%;\n}\n.tpe-h-screen {\n  height: 100vh;\n}\n.tpe-max-h-48 {\n  max-height: 12em;\n}\n.tpe-max-h-80 {\n  max-height: 20em;\n}\n.tpe-max-h-\\[70vh\\] {\n  max-height: 70vh;\n}\n.tpe-max-h-\\[90vh\\] {\n  max-height: 90vh;\n}\n.tpe-max-h-full {\n  max-height: 100%;\n}\n.tpe-min-h-0 {\n  min-height: 0em;\n}\n.tpe-min-h-11 {\n  min-height: 2.75em;\n}\n.tpe-min-h-9 {\n  min-height: 2.25em;\n}\n.tpe-min-h-\\[250px\\] {\n  min-height: 250px;\n}\n.tpe-w-1 {\n  width: 0.25em;\n}\n.tpe-w-1\\.5 {\n  width: 0.375rem;\n}\n.tpe-w-10 {\n  width: 2.5em;\n}\n.tpe-w-12 {\n  width: 3em;\n}\n.tpe-w-14 {\n  width: 3.5em;\n}\n.tpe-w-16 {\n  width: 4em;\n}\n.tpe-w-2\\.5 {\n  width: 0.625rem;\n}\n.tpe-w-2\\/3 {\n  width: 66.666667%;\n}\n.tpe-w-20 {\n  width: 5em;\n}\n.tpe-w-24 {\n  width: 6em;\n}\n.tpe-w-3 {\n  width: 0.75em;\n}\n.tpe-w-3\\.5 {\n  width: 0.875rem;\n}\n.tpe-w-32 {\n  width: 8em;\n}\n.tpe-w-4 {\n  width: 1em;\n}\n.tpe-w-48 {\n  width: 12em;\n}\n.tpe-w-5 {\n  width: 1.25em;\n}\n.tpe-w-5\\/6 {\n  width: 83.333333%;\n}\n.tpe-w-56 {\n  width: 14em;\n}\n.tpe-w-6 {\n  width: 1.5em;\n}\n.tpe-w-7 {\n  width: 1.75em;\n}\n.tpe-w-8 {\n  width: 2em;\n}\n.tpe-w-9 {\n  width: 2.25em;\n}\n.tpe-w-auto {\n  width: auto;\n}\n.tpe-w-full {\n  width: 100%;\n}\n.tpe-w-px {\n  width: 1px;\n}\n.tpe-min-w-0 {\n  min-width: 0em;\n}\n.tpe-min-w-\\[200px\\] {\n  min-width: 200px;\n}\n.tpe-min-w-\\[70px\\] {\n  min-width: 70px;\n}\n.tpe-min-w-\\[96px\\] {\n  min-width: 96px;\n}\n.tpe-min-w-fit {\n  min-width: -moz-fit-content;\n  min-width: fit-content;\n}\n.tpe-max-w-2xl {\n  max-width: 42em;\n}\n.tpe-max-w-5xl {\n  max-width: 64em;\n}\n.tpe-max-w-\\[50\\%\\] {\n  max-width: 50%;\n}\n.tpe-max-w-\\[60px\\] {\n  max-width: 60px;\n}\n.tpe-max-w-full {\n  max-width: 100%;\n}\n.tpe-max-w-lg {\n  max-width: 32em;\n}\n.tpe-max-w-md {\n  max-width: 28em;\n}\n.tpe-max-w-none {\n  max-width: none;\n}\n.tpe-max-w-sm {\n  max-width: 24em;\n}\n.tpe-max-w-xl {\n  max-width: 36em;\n}\n.tpe-flex-1 {\n  flex: 1 1 0%;\n}\n.tpe-flex-shrink-0 {\n  flex-shrink: 0;\n}\n.tpe-shrink-0 {\n  flex-shrink: 0;\n}\n.tpe-grow {\n  flex-grow: 1;\n}\n.tpe-origin-bottom-left {\n  transform-origin: bottom left;\n}\n.tpe-origin-top-left {\n  transform-origin: top left;\n}\n.tpe--translate-x-1\\/2 {\n  --tw-translate-x: -50%;\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.tpe--translate-y-1\\/2 {\n  --tw-translate-y: -50%;\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.tpe-rotate-180 {\n  --tw-rotate: 180deg;\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.tpe-scale-110 {\n  --tw-scale-x: 1.1;\n  --tw-scale-y: 1.1;\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.tpe-transform {\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n@keyframes tpe-pulse {\n  50% {\n    opacity: .5;\n  }\n}\n.tpe-animate-pulse {\n  animation: tpe-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;\n}\n@keyframes tpe-spin {\n  to {\n    transform: rotate(360deg);\n  }\n}\n.tpe-animate-spin {\n  animation: tpe-spin 1s linear infinite;\n}\n.tpe-cursor-default {\n  cursor: default;\n}\n.tpe-cursor-grab {\n  cursor: grab;\n}\n.tpe-cursor-move {\n  cursor: move;\n}
2\n.tpe-cursor-not-allowed {\n  cursor: not-allowed;\n}\n.tpe-cursor-pointer {\n  cursor: pointer;\n}\n.tpe-cursor-wait {\n  cursor: wait;\n}\n.tpe-touch-none {\n  touch-action: none;\n}\n.tpe-select-none {\n  -webkit-user-select: none;\n     -moz-user-select: none;\n          user-select: none;\n}\n.tpe-resize-y {\n  resize: vertical;\n}\n.tpe-list-inside {\n  list-style-position: inside;\n}\n.tpe-list-disc {\n  list-style-type: disc;\n}\n.tpe-appearance-none {\n  -webkit-appearance: none;\n     -moz-appearance: none;\n          appearance: none;\n}\n.tpe-grid-cols-1 {\n  grid-template-columns: repeat(1, minmax(0, 1fr));\n}\n.tpe-grid-cols-2 {\n  grid-template-columns: repeat(2, minmax(0, 1fr));\n}\n.tpe-grid-cols-3 {\n  grid-template-columns: repeat(3, minmax(0, 1fr));\n}\n.tpe-grid-cols-4 {\n  grid-template-columns: repeat(4, minmax(0, 1fr));\n}\n.tpe-grid-cols-\\[96px_1fr\\] {\n  grid-template-columns: 96px 1fr;\n}\n.tpe-flex-col {\n  flex-direction: column;\n}\n.tpe-flex-wrap {\n  flex-wrap: wrap;\n}\n.tpe-items-start {\n  align-items: flex-start;\n}\n.tpe-items-end {\n  align-items: flex-end;\n}\n.tpe-items-center {\n  align-items: center;\n}\n.tpe-items-baseline {\n  align-items: baseline;\n}\n.tpe-justify-end {\n  justify-content: flex-end;\n}\n.tpe-justify-center {\n  justify-content: center;\n}\n.tpe-justify-between {\n  justify-content: space-between;\n}\n.tpe-gap-0\\.5 {\n  gap: 0.125rem;\n}\n.tpe-gap-1 {\n  gap: 0.25em;\n}\n.tpe-gap-1\\.5 {\n  gap: 0.375rem;\n}\n.tpe-gap-2 {\n  gap: 0.5em;\n}\n.tpe-gap-2\\.5 {\n  gap: 0.625rem;\n}\n.tpe-gap-3 {\n  gap: 0.75em;\n}\n.tpe-gap-4 {\n  gap: 1em;\n}\n.tpe-gap-6 {\n  gap: 1.5em;\n}\n.tpe-gap-\\[3px\\] {\n  gap: 3px;\n}\n.tpe-space-y-0\\.5 > :not([hidden]) ~ :not([hidden]) {\n  --tw-space-y-reverse: 0;\n  margin-top: calc(0.125rem * calc(1 - var(--tw-space-y-reverse)));\n  margin-bottom: calc(0.125rem * var(--tw-space-y-reverse));\n}\n.tpe-space-y-1\\.5 > :not([hidden]) ~ :not([hidden]) {\n  --tw-space-y-reverse: 0;\n  margin-top: calc(0.375rem * calc(1 - var(--tw-space-y-reverse)));\n  margin-bottom: calc(0.375rem * var(--tw-space-y-reverse));\n}\n.tpe-space-y-2 > :not([hidden]) ~ :not([hidden]) {\n  --tw-space-y-reverse: 0;\n  margin-top: calc(0.5em * calc(1 - var(--tw-space-y-reverse)));\n  margin-bottom: calc(0.5em * var(--tw-space-y-reverse));\n}\n.tpe-space-y-2\\.5 > :not([hidden]) ~ :not([hidden]) {\n  --tw-space-y-reverse: 0;\n  margin-top: calc(0.625rem * calc(1 - var(--tw-space-y-reverse)));\n  margin-bottom: calc(0.625rem * var(--tw-space-y-reverse));\n}\n.tpe-space-y-3 > :not([hidden]) ~ :not([hidden]) {\n  --tw-space-y-reverse: 0;\n  margin-top: calc(0.75em * calc(1 - var(--tw-space-y-reverse)));\n  margin-bottom: calc(0.75em * var(--tw-space-y-reverse));\n}\n.tpe-space-y-4 > :not([hidden]) ~ :not([hidden]) {\n  --tw-space-y-reverse: 0;\n  margin-top: calc(1em * calc(1 - var(--tw-space-y-reverse)));\n  margin-bottom: calc(1em * var(--tw-space-y-reverse));\n}\n.tpe-space-y-5 > :not([hidden]) ~ :not([hidden]) {\n  --tw-space-y-reverse: 0;\n  margin-top: calc(1.25em * calc(1 - var(--tw-space-y-reverse)));\n  margin-bottom: calc(1.25em * var(--tw-space-y-reverse));\n}\n.tpe-space-y-6 > :not([hidden]) ~ :not([hidden]) {\n  --tw-space-y-reverse: 0;\n  margin-top: calc(1.5em * calc(1 - var(--tw-space-y-reverse)));\n  margin-bottom: calc(1.5em * var(--tw-space-y-reverse));\n}\n.tpe-self-start {\n  align-self: flex-start;\n}\n.tpe-overflow-auto {\n  overflow: auto;\n}\n.tpe-overflow-hidden {\n  overflow: hidden;\n}\n.tpe-overflow-visible {\n  overflow: visible;\n}\n.tpe-overflow-x-auto {\n  overflow-x: auto;\n}\n.tpe-overflow-y-auto {\n  overflow-y: auto;\n}\n.tpe-overflow-x-hidden {\n  overflow-x: hidden;\n}\n.tpe-truncate {\n  overflow: hidden;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n}\n.tpe-whitespace-nowrap {\n  white-space: nowrap;\n}\n.tpe-break-all {\n  word-break: break-all;\n}\n.tpe-rounded {\n  border-radius: 0.25rem;\n}\n.tpe-rounded-2xl {\n  border-radius: 1rem;\n}\n.tpe-rounded-full {\n  border-radius: 9999px;\n}\n.tpe-rounded-lg {\n  border-radius: 0.5rem;\n}\n.tpe-rounded-md {\n  border-radius: 0.375rem;\n}\n.tpe-rounded-sm {\n  border-radius: 0.125rem;\n}\n.tpe-rounded-st {\n  border-radius: var(--st-radius);\n}\n.tpe-rounded-st-sm {\n  border-radius: var(--st-radius-sm);\n}\n.tpe-rounded-xl {\n  border-radius: 0.75rem;\n}\n.tpe-rounded-t-2xl {\n  border-top-left-radius: 1rem;\n  border-top-right-radius: 1rem;\n}\n.tpe-border {\n  border-width: 1px;\n}\n.tpe-border-0 {\n  border-width: 0px;\n}\n.tpe-border-2 {\n  border-width: 2px;\n}\n.tpe-border-\\[length\\:var\\(--st-border-w\\)\\] {\n  border-width: var(--st-border-w);\n}\n.tpe-border-y {\n  border-top-width: 1px;\n  border-bottom-width: 1px;\n}\n.tpe-border-b {\n  border-bottom-width: 1px;\n}\n.tpe-border-l {\n  border-left-width: 1px;\n}\n.tpe-border-t {\n  border-top-width: 1px;\n}\n.tpe-border-solid {\n  border-style: solid;\n}\n.tpe-border-dashed {\n  border-style: dashed;\n}\n.\\!tpe-border-indigo-600 {\n  --tw-border-opacity: 1 !important;\n  border-color: rgb(79 70 229 / var(--tw-border-opacity, 1)) !important;\n}\n.tpe-border-amber-200 {\n  --tw-border-opacity: 1;\n  border-color: rgb(253 230 138 / var(--tw-border-opacity, 1));\n}\n.tpe-border-amber-300 {\n  --tw-border-opacity: 1;\n  border-color: rgb(252 211 77 / var(--tw-border-opacity, 1));\n}\n.tpe-border-black\\/10 {\n  border-color: rgb(0 0 0 / 0.1);\n}\n.tpe-border-blue-100 {\n  --tw-border-opacity: 1;\n  border-color: rgb(219 234 254 / var(--tw-border-opacity, 1));\n}\n.tpe-border-blue-500 {\n  --tw-border-opacity: 1;\n  border-color: rgb(59 130 246 / var(--tw-border-opacity, 1));\n}\n.tpe-border-blue-600 {\n  --tw-border-opacity: 1;\n  border-color: rgb(37 99 235 / var(--tw-border-opacity, 1));\n}\n.tpe-border-brand-ink {\n  --tw-border-opacity: 1;\n  border-color: rgb(var(--st-ink) / var(--tw-border-opacity, 1));\n}\n.tpe-border-brand-lime {\n  --tw-border-opacity: 1;\n  border-color: rgb(var(--st-accent) / var(--tw-border-opacity, 1));\n}\n.tpe-border-brand-line {\n  --tw-border-opacity: 1;\n  border-color: rgb(var(--st-line) / var(--tw-border-opacity, 1));\n}\n.tpe-border-gray-100 {\n  --tw-border-opacity: 1;\n  border-color: rgb(243 244 246 / var(--tw-border-opacity, 1));\n}\n.tpe-border-gray-200 {\n  --tw-border-opacity: 1;\n  border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));\n}\n.tpe-border-gray-300 {\n  --tw-border-opacity: 1;\n  border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));\n}\n.tpe-border-gray-400 {\n  --tw-border-opacity: 1;\n  border-color: rgb(156 163 175 / var(--tw-border-opacity, 1));\n}\n.tpe-border-gray-900 {\n  --tw-border-opacity: 1;\n  border-color: rgb(17 24 39 / var(--tw-border-opacity, 1));\n}\n.tpe-border-gray-950 {\n  --tw-border-opacity: 1;\n  border-color: rgb(3 7 18 / var(--tw-border-opacity, 1));\n}\n.tpe-border-red-100 {\n  --tw-border-opacity: 1;\n  border-color: rgb(254 226 226 / var(--tw-border-opacity, 1));\n}\n.tpe-border-red-200 {\n  --tw-border-opacity: 1;\n  border-color: rgb(254 202 202 / var(--tw-border-opacity, 1));\n}\n.tpe-border-red-300 {\n  --tw-border-opacity: 1;\n  border-color: rgb(252 165 165 / var(--tw-border-opacity, 1));\n}\n.tpe-border-rose-500 {\n  --tw-border-opacity: 1;\n  border-color: rgb(244 63 94 / var(--tw-border-opacity, 1));\n}\n.tpe-border-transparent {\n  border-color: transparent;\n}\n.tpe-border-white {\n  --tw-border-opacity: 1;\n  border-color: rgb(255 255 255 / var(--tw-border-opacity, 1));\n}\n.tpe-border-white\\/60 {\n  border-color: rgb(255 255 255 / 0.6);\n}\n.tpe-border-yellow-100 {\n  --tw-border-opacity: 1;\n  border-color: rgb(254 249 195 / var(--tw-border-opacity, 1));\n}\n.tpe-bg-\\[\\#FC4C02\\] {\n  --tw-bg-opacity: 1;\n  background-color: rgb(252 76 2 / var(--tw-bg-opacity, 1));\n}\n.tpe-bg-\\[\\#e9e4dc\\] {\n  --tw-bg-opacity: 1;\n  background-color: rgb(233 228 220 / var(--tw-bg-opacity, 1));\n}\n.tpe-bg-amber-100 {\n  --tw-bg-opacity: 1;\n  background-color: rgb(254 243 199 / var(--tw-bg-opacity, 1));\n}\n.tpe-bg-amber-50 {\n  --tw-bg-opacity: 1;\n  background-color: rgb(255 251 235 / var(--tw-bg-opacity, 1));\n}\n.tpe-bg-amber-50\\/50 {\n  background-color: rgb(255 251 235 / 0.5);\n}\n.tpe-bg-amber-500 {\n  --tw-bg-opacity: 1;\n  background-color: rgb(245 158 11 / var(--tw-bg-opacity, 1));\n}\n.tpe-bg-black {\n  --tw-bg-opacity: 1;\n  background-color: rgb(0 0 0 / var(--tw-bg-opacity, 1));\n}\n.tpe-bg-black\\/40 {\n  background-color: rgb(0 0 0 / 0.4);\n}\n.tpe-bg-black\\/50 {\n  background-color: rgb(0 0 0 / 0.5);\n}\n.tpe-bg-black\\/60 {\n  background-color: rgb(0 0 0 / 0.6);\n}\n.tpe-bg-black\\/80 {\n  background-color: rgb(0 0 0 / 0.8);\n}\n.tpe-bg-black\\/90 {\n  background-color: rgb(0 0 0 / 0.9);\n}\n.tpe-bg-blue-50 {\n  --tw-bg-opacity: 1;\n  background-color: rgb(239 246 255 / var(--tw-bg-opacity, 1));\n}\n.tpe-bg-blue-500 {\n  --tw-bg-opacity: 1;\n  background-color: rgb(59 130 246 / var(--tw-bg-opacity, 1));\n}\n.tpe-bg-blue-600 {\n  --tw-bg-opacity: 1;\n  background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1));\n}
2\n.tpe-bg-brand-ground {\n  --tw-bg-opacity: 1;\n  background-color: rgb(var(--st-ground) / var(--tw-bg-opacity, 1));\n}\n.tpe-bg-brand-lime {\n  --tw-bg-opacity: 1;\n  background-color: rgb(var(--st-accent) / var(--tw-bg-opacity, 1));\n}\n.tpe-bg-brand-lime\\/10 {\n  background-color: rgb(var(--st-accent) / 0.1);\n}\n.tpe-bg-brand-lime\\/70 {\n  background-color: rgb(var(--st-accent) / 0.7);\n}\n.tpe-bg-brand-line {\n  --tw-bg-opacity: 1;\n  background-color: rgb(var(--st-line) / var(--tw-bg-opacity, 1));\n}\n.tpe-bg-brand-panel {\n  --tw-bg-opacity: 1;\n  background-color: rgb(var(--st-panel) / var(--tw-bg-opacity, 1));\n}\n.tpe-bg-brand-sunk {\n  --tw-bg-opacity: 1;\n  background-color: rgb(var(--st-sunk) / var(--tw-bg-opacity, 1));\n}\n.tpe-bg-brand-wall {\n  --tw-bg-opacity: 1;\n  background-color: rgb(var(--st-wall) / var(--tw-bg-opacity, 1));\n}\n.tpe-bg-emerald-50 {\n  --tw-bg-opacity: 1;\n  background-color: rgb(236 253 245 / var(--tw-bg-opacity, 1));\n}\n.tpe-bg-emerald-500 {\n  --tw-bg-opacity: 1;\n  background-color: rgb(16 185 129 / var(--tw-bg-opacity, 1));\n}\n.tpe-bg-gray-100 {\n  --tw-bg-opacity: 1;\n  background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));\n}\n.tpe-bg-gray-200 {\n  --tw-bg-opacity: 1;\n  background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1));\n}\n.tpe-bg-gray-300 {\n  --tw-bg-opacity: 1;\n  background-color: rgb(209 213 219 / var(--tw-bg-opacity, 1));\n}\n.tpe-bg-gray-400 {\n  --tw-bg-opacity: 1;\n  background-color: rgb(156 163 175 / var(--tw-bg-opacity, 1));\n}\n.tpe-bg-gray-50 {\n  --tw-bg-opacity: 1;\n  background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));\n}\n.tpe-bg-gray-50\\/50 {\n  background-color: rgb(249 250 251 / 0.5);\n}\n.tpe-bg-gray-800 {\n  --tw-bg-opacity: 1;\n  background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));\n}\n.tpe-bg-gray-800\\/50 {\n  background-color: rgb(31 41 55 / 0.5);\n}\n.tpe-bg-gray-800\\/80 {\n  background-color: rgb(31 41 55 / 0.8);\n}\n.tpe-bg-gray-900 {\n  --tw-bg-opacity: 1;\n  background-color: rgb(17 24 39 / var(--tw-bg-opacity, 1));\n}\n.tpe-bg-gray-900\\/10 {\n  background-color: rgb(17 24 39 / 0.1);\n}\n.tpe-bg-gray-900\\/90 {\n  background-color: rgb(17 24 39 / 0.9);\n}\n.tpe-bg-gray-950 {\n  --tw-bg-opacity: 1;\n  background-color: rgb(3 7 18 / var(--tw-bg-opacity, 1));\n}\n.tpe-bg-green-100 {\n  --tw-bg-opacity: 1;\n  background-color: rgb(220 252 231 / var(--tw-bg-opacity, 1));\n}\n.tpe-bg-green-600 {\n  --tw-bg-opacity: 1;\n  background-color: rgb(22 163 74 / var(--tw-bg-opacity, 1));\n}\n.tpe-bg-neutral-900 {\n  --tw-bg-opacity: 1;\n  background-color: rgb(23 23 23 / var(--tw-bg-opacity, 1));\n}\n.tpe-bg-orange-300 {\n  --tw-bg-opacity: 1;\n  background-color: rgb(253 186 116 / var(--tw-bg-opacity, 1));\n}\n.tpe-bg-red-100 {\n  --tw-bg-opacity: 1;\n  background-color: rgb(254 226 226 / var(--tw-bg-opacity, 1));\n}\n.tpe-bg-red-50 {\n  --tw-bg-opacity: 1;\n  background-color: rgb(254 242 242 / var(--tw-bg-opacity, 1));\n}\n.tpe-bg-red-500 {\n  --tw-bg-opacity: 1;\n  background-color: rgb(239 68 68 / var(--tw-bg-opacity, 1));\n}\n.tpe-bg-red-600 {\n  --tw-bg-opacity: 1;\n  background-color: rgb(220 38 38 / var(--tw-bg-opacity, 1));\n}\n.tpe-bg-rose-500 {\n  --tw-bg-opacity: 1;\n  background-color: rgb(244 63 94 / var(--tw-bg-opacity, 1));\n}\n.tpe-bg-transparent {\n  background-color: transparent;\n}\n.tpe-bg-white {\n  --tw-bg-opacity: 1;\n  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));\n}\n.tpe-bg-white\\/10 {\n  background-color: rgb(255 255 255 / 0.1);\n}\n.tpe-bg-white\\/50 {\n  background-color: rgb(255 255 255 / 0.5);\n}\n.tpe-bg-white\\/70 {\n  background-color: rgb(255 255 255 / 0.7);\n}\n.tpe-bg-white\\/85 {\n  background-color: rgb(255 255 255 / 0.85);\n}\n.tpe-bg-white\\/90 {\n  background-color: rgb(255 255 255 / 0.9);\n}\n.tpe-bg-white\\/95 {\n  background-color: rgb(255 255 255 / 0.95);\n}\n.tpe-bg-yellow-100 {\n  --tw-bg-opacity: 1;\n  background-color: rgb(254 249 195 / var(--tw-bg-opacity, 1));\n}\n.tpe-bg-yellow-50 {\n  --tw-bg-opacity: 1;\n  background-color: rgb(254 252 232 / var(--tw-bg-opacity, 1));\n}\n.tpe-bg-yellow-500 {\n  --tw-bg-opacity: 1;\n  background-color: rgb(234 179 8 / var(--tw-bg-opacity, 1));\n}\n.tpe-fill-emerald-100 {\n  fill: #d1fae5;\n}\n.tpe-fill-emerald-500 {\n  fill: #10b981;\n}\n.tpe-stroke-none {\n  stroke: none;\n}\n.tpe-object-contain {\n  -o-object-fit: contain;\n     object-fit: contain;\n}\n.tpe-object-cover {\n  -o-object-fit: cover;\n     object-fit: cover;\n}
2\n.tpe-object-fill {\n  -o-object-fit: fill;\n     object-fit: fill;\n}\n.tpe-p-0 {\n  padding: 0em;\n}\n.tpe-p-0\\.5 {\n  padding: 0.125rem;\n}\n.tpe-p-1 {\n  padding: 0.25em;\n}\n.tpe-p-1\\.5 {\n  padding: 0.375rem;\n}\n.tpe-p-2 {\n  padding: 0.5em;\n}\n.tpe-p-2\\.5 {\n  padding: 0.625rem;\n}\n.tpe-p-3 {\n  padding: 0.75em;\n}\n.tpe-p-4 {\n  padding: 1em;\n}\n.tpe-p-5 {\n  padding: 1.25em;\n}\n.tpe-p-6 {\n  padding: 1.5em;\n}\n.tpe-p-8 {\n  padding: 2em;\n}\n.tpe-px-1 {\n  padding-left: 0.25em;\n  padding-right: 0.25em;\n}\n.tpe-px-1\\.5 {\n  padding-left: 0.375rem;\n  padding-right: 0.375rem;\n}\n.tpe-px-2 {\n  padding-left: 0.5em;\n  padding-right: 0.5em;\n}\n.tpe-px-2\\.5 {\n  padding-left: 0.625rem;\n  padding-right: 0.625rem;\n}\n.tpe-px-3 {\n  padding-left: 0.75em;\n  padding-right: 0.75em;\n}\n.tpe-px-4 {\n  padding-left: 1em;\n  padding-right: 1em;\n}\n.tpe-px-5 {\n  padding-left: 1.25em;\n  padding-right: 1.25em;\n}\n.tpe-px-6 {\n  padding-left: 1.5em;\n  padding-right: 1.5em;\n}\n.tpe-py-0\\.5 {\n  padding-top: 0.125rem;\n  padding-bottom: 0.125rem;\n}\n.tpe-py-1 {\n  padding-top: 0.25em;\n  padding-bottom: 0.25em;\n}\n.tpe-py-1\\.5 {\n  padding-top: 0.375rem;\n  padding-bottom: 0.375rem;\n}\n.tpe-py-10 {\n  padding-top: 2.5em;\n  padding-bottom: 2.5em;\n}\n.tpe-py-2 {\n  padding-top: 0.5em;\n  padding-bottom: 0.5em;\n}\n.tpe-py-2\\.5 {\n  padding-top: 0.625rem;\n  padding-bottom: 0.625rem;\n}\n.tpe-py-3 {\n  padding-top: 0.75em;\n  padding-bottom: 0.75em;\n}\n.tpe-py-4 {\n  padding-top: 1em;\n  padding-bottom: 1em;\n}\n.tpe-py-5 {\n  padding-top: 1.25em;\n  padding-bottom: 1.25em;\n}\n.tpe-py-6 {\n  padding-top: 1.5em;\n  padding-bottom: 1.5em;\n}\n.tpe-pb-1 {\n  padding-bottom: 0.25em;\n}\n.tpe-pb-3 {\n  padding-bottom: 0.75em;\n}\n.tpe-pb-4 {\n  padding-bottom: 1em;\n}\n.tpe-pb-5 {\n  padding-bottom: 1.25em;\n}\n.tpe-pb-6 {\n  padding-bottom: 1.5em;\n}\n.tpe-pb-8 {\n  padding-bottom: 2em;\n}\n.tpe-pl-11 {\n  padding-left: 2.75em;\n}\n.tpe-pl-12 {\n  padding-left: 3em;\n}\n.tpe-pl-2 {\n  padding-left: 0.5em;\n}\n.tpe-pl-3 {\n  padding-left: 0.75em;\n}\n.tpe-pl-4 {\n  padding-left: 1em;\n}\n.tpe-pl-6 {\n  padding-left: 1.5em;\n}\n.tpe-pl-8 {\n  padding-left: 2em;\n}\n.tpe-pr-1 {\n  padding-right: 0.25em;\n}\n.tpe-pr-10 {\n  padding-right: 2.5em;\n}\n.tpe-pr-2 {\n  padding-right: 0.5em;\n}\n.tpe-pr-6 {\n  padding-right: 1.5em;\n}\n.tpe-pt-1 {\n  padding-top: 0.25em;\n}\n.tpe-pt-1\\.5 {\n  padding-top: 0.375rem;\n}\n.tpe-pt-2 {\n  padding-top: 0.5em;\n}\n.tpe-pt-3 {\n  padding-top: 0.75em;\n}\n.tpe-pt-4 {\n  padding-top: 1em;\n}\n.tpe-pt-5 {\n  padding-top: 1.25em;\n}\n.tpe-pt-6 {\n  padding-top: 1.5em;\n}\n.tpe-text-left {\n  text-align: left;\n}\n.tpe-text-center {\n  text-align: center;\n}\n.tpe-text-right {\n  text-align: right;\n}\n.tpe-font-Archivo {\n  font-family: Archivo, sans-serif;\n}\n.tpe-font-Dancing_Script {\n  font-family: "Dancing Script", cursive;\n}\n.tpe-font-Inconsolata {\n  font-family: Inconsolata, monospace;\n}\n.tpe-font-JetBrains_Mono {\n  font-family: "JetBrains Mono", monospace;\n}\n.tpe-font-Jost {\n  font-family: Jost, sans-serif;\n}\n.tpe-font-Oswald {\n  font-family: Oswald, sans-serif;\n}\n.tpe-font-Pacifico {\n  font-family: Pacifico, cursive;\n}\n.tpe-font-Playfair_Display {\n  font-family: "Playfair Display", serif;\n}\n.tpe-font-Roboto {\n  font-family: Roboto, sans-serif;\n}\n.tpe-font-mono {\n  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;\n}\n.tpe-font-sans {\n  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";\n}\n.tpe-font-serif {\n  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;\n}\n.tpe-text-2xl {\n  font-size: 1.5em;\n}\n.tpe-text-\\[10px\\] {\n  font-size: 10px;\n}\n.tpe-text-\\[11px\\] {\n  font-size: 11px;\n}\n.tpe-text-\\[16px\\] {\n  font-size: 16px;\n}\n.tpe-text-\\[8px\\] {\n  font-size: 8px;\n}\n.tpe-text-\\[9px\\] {\n  font-size: 9px;\n}\n.tpe-text-base {\n  font-size: 1rem;\n  line-height: 1.5rem;\n}\n.tpe-text-lg {\n  font-size: 1.125em;\n}\n.tpe-text-sm {\n  font-size: 0.875em;\n}\n.tpe-text-xl {\n  font-size: 1.25em;\n}\n.tpe-text-xs {\n  font-size: 0.75em;\n}\n.tpe-font-bold {\n  font-weight: 700;\n}\n.tpe-font-medium {\n  font-weight: 500;\n}\n.tpe-font-normal {\n  font-weight: 400;\n}\n.tpe-font-semibold {\n  font-weight: 600;\n}\n.tpe-uppercase {\n  text-transform: uppercase;\n}\n.tpe-capitalize {\n  text-transform: capitalize;\n}\n.tpe-normal-case {\n  text-transform: none;\n}\n.tpe-italic {\n  font-style: italic;\n}
2\n.tpe-tabular-nums {\n  --tw-numeric-spacing: tabular-nums;\n  font-variant-numeric: var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction);\n}\n.tpe-leading-none {\n  line-height: 1;\n}\n.tpe-leading-relaxed {\n  line-height: 1.625;\n}\n.tpe-leading-snug {\n  line-height: 1.375;\n}\n.tpe-leading-tight {\n  line-height: 1.25;\n}\n.tpe-tracking-normal {\n  letter-spacing: 0em;\n}\n.tpe-tracking-tight {\n  letter-spacing: -0.025em;\n}\n.tpe-tracking-wide {\n  letter-spacing: 0.025em;\n}\n.tpe-tracking-wider {\n  letter-spacing: 0.05em;\n}\n.tpe-tracking-widest {\n  letter-spacing: 0.1em;\n}\n.tpe-text-amber-500 {\n  --tw-text-opacity: 1;\n  color: rgb(245 158 11 / var(--tw-text-opacity, 1));\n}\n.tpe-text-amber-600 {\n  --tw-text-opacity: 1;\n  color: rgb(217 119 6 / var(--tw-text-opacity, 1));\n}\n.tpe-text-amber-700 {\n  --tw-text-opacity: 1;\n  color: rgb(180 83 9 / var(--tw-text-opacity, 1));\n}\n.tpe-text-amber-900 {\n  --tw-text-opacity: 1;\n  color: rgb(120 53 15 / var(--tw-text-opacity, 1));\n}\n.tpe-text-blue-500 {\n  --tw-text-opacity: 1;\n  color: rgb(59 130 246 / var(--tw-text-opacity, 1));\n}\n.tpe-text-blue-600 {\n  --tw-text-opacity: 1;\n  color: rgb(37 99 235 / var(--tw-text-opacity, 1));\n}\n.tpe-text-blue-700 {\n  --tw-text-opacity: 1;\n  color: rgb(29 78 216 / var(--tw-text-opacity, 1));\n}\n.tpe-text-brand-accentink {\n  --tw-text-opacity: 1;\n  color: rgb(var(--st-accent-ink) / var(--tw-text-opacity, 1));\n}\n.tpe-text-brand-ink {\n  --tw-text-opacity: 1;\n  color: rgb(var(--st-ink) / var(--tw-text-opacity, 1));\n}\n.tpe-text-brand-muted {\n  --tw-text-opacity: 1;\n  color: rgb(var(--st-muted) / var(--tw-text-opacity, 1));\n}\n.tpe-text-current {\n  color: currentColor;\n}\n.tpe-text-emerald-600 {\n  --tw-text-opacity: 1;\n  color: rgb(5 150 105 / var(--tw-text-opacity, 1));\n}\n.tpe-text-emerald-700 {\n  --tw-text-opacity: 1;\n  color: rgb(4 120 87 / var(--tw-text-opacity, 1));\n}\n.tpe-text-gray-300 {\n  --tw-text-opacity: 1;\n  color: rgb(209 213 219 / var(--tw-text-opacity, 1));\n}\n.tpe-text-gray-400 {\n  --tw-text-opacity: 1;\n  color: rgb(156 163 175 / var(--tw-text-opacity, 1));\n}\n.tpe-text-gray-500 {\n  --tw-text-opacity: 1;\n  color: rgb(107 114 128 / var(--tw-text-opacity, 1));\n}\n.tpe-text-gray-600 {\n  --tw-text-opacity: 1;\n  color: rgb(75 85 99 / var(--tw-text-opacity, 1));\n}\n.tpe-text-gray-700 {\n  --tw-text-opacity: 1;\n  color: rgb(55 65 81 / var(--tw-text-opacity, 1));\n}\n.tpe-text-gray-800 {\n  --tw-text-opacity: 1;\n  color: rgb(31 41 55 / var(--tw-text-opacity, 1));\n}\n.tpe-text-gray-900 {\n  --tw-text-opacity: 1;\n  color: rgb(17 24 39 / var(--tw-text-opacity, 1));\n}\n.tpe-text-gray-950 {\n  --tw-text-opacity: 1;\n  color: rgb(3 7 18 / var(--tw-text-opacity, 1));\n}\n.tpe-text-green-500 {\n  --tw-text-opacity: 1;\n  color: rgb(34 197 94 / var(--tw-text-opacity, 1));\n}\n.tpe-text-green-600 {\n  --tw-text-opacity: 1;\n  color: rgb(22 163 74 / var(--tw-text-opacity, 1));\n}\n.tpe-text-green-700 {\n  --tw-text-opacity: 1;\n  color: rgb(21 128 61 / var(--tw-text-opacity, 1));\n}\n.tpe-text-green-800 {\n  --tw-text-opacity: 1;\n  color: rgb(22 101 52 / var(--tw-text-opacity, 1));\n}\n.tpe-text-indigo-400 {\n  --tw-text-opacity: 1;\n  color: rgb(129 140 248 / var(--tw-text-opacity, 1));\n}\n.tpe-text-indigo-500 {\n  --tw-text-opacity: 1;\n  color: rgb(99 102 241 / var(--tw-text-opacity, 1));\n}\n.tpe-text-indigo-600 {\n  --tw-text-opacity: 1;\n  color: rgb(79 70 229 / var(--tw-text-opacity, 1));\n}\n.tpe-text-indigo-600\\/80 {\n  color: rgb(79 70 229 / 0.8);\n}\n.tpe-text-indigo-900 {\n  --tw-text-opacity: 1;\n  color: rgb(49 46 129 / var(--tw-text-opacity, 1));\n}\n.tpe-text-purple-500 {\n  --tw-text-opacity: 1;\n  color: rgb(168 85 247 / var(--tw-text-opacity, 1));\n}\n.tpe-text-red-500 {\n  --tw-text-opacity: 1;\n  color: rgb(239 68 68 / var(--tw-text-opacity, 1));\n}\n.tpe-text-red-600 {\n  --tw-text-opacity: 1;\n  color: rgb(220 38 38 / var(--tw-text-opacity, 1));\n}\n.tpe-text-red-700 {\n  --tw-text-opacity: 1;\n  color: rgb(185 28 28 / var(--tw-text-opacity, 1));\n}\n.tpe-text-red-800 {\n  --tw-text-opacity: 1;\n  color: rgb(153 27 27 / var(--tw-text-opacity, 1));\n}\n.tpe-text-rose-600 {\n  --tw-text-opacity: 1;\n  color: rgb(225 29 72 / var(--tw-text-opacity, 1));\n}\n.tpe-text-rose-700 {\n  --tw-text-opacity: 1;\n  color: rgb(190 18 60 / var(--tw-text-opacity, 1));\n}\n.tpe-text-slate-500 {\n  --tw-text-opacity: 1;\n  color: rgb(100 116 139 / var(--tw-text-opacity, 1));\n}\n.tpe-text-slate-900 {\n  --tw-text-opacity: 1;\n  color: rgb(15 23 42 / var(--tw-text-opacity, 1));\n}\n.tpe-text-white {\n  --tw-text-opacity: 1;\n  color: rgb(255 255 255 / var(--tw-text-opacity, 1));\n}\n.tpe-text-yellow-800 {\n  --tw-text-opacity: 1;\n  color: rgb(133 77 14 / var(--tw-text-opacity, 1));\n}\n.tpe-underline {\n  text-decoration-line: underline;\n}\n.tpe-line-through {\n  text-decoration-line: line-through;\n}\n.tpe-decoration-gray-300 {\n  text-decoration-color: #d1d5db;\n}\n.tpe-decoration-dashed {\n  text-decoration-style: dashed;\n}\n.tpe-underline-offset-2 {\n  text-underline-offset: 2px;\n}\n.tpe-accent-brand-lime {\n  accent-color: rgb(var(--st-accent) / 1);\n}\n.tpe-accent-gray-900 {\n  accent-color: #111827;\n}\n.tpe-accent-neutral-900 {\n  accent-color: #171717;\n}\n.tpe-opacity-0 {\n  opacity: 0;\n}\n.tpe-opacity-100 {\n  opacity: 1;\n}\n.tpe-opacity-25 {\n  opacity: 0.25;\n}\n.tpe-opacity-30 {\n  opacity: 0.3;\n}\n.tpe-opacity-40 {\n  opacity: 0.4;\n}\n.tpe-opacity-50 {\n  opacity: 0.5;\n}\n.tpe-opacity-60 {\n  opacity: 0.6;\n}\n.tpe-opacity-70 {\n  opacity: 0.7;\n}\n.tpe-opacity-75 {\n  opacity: 0.75;\n}\n.tpe-opacity-80 {\n  opacity: 0.8;\n}\n.tpe-opacity-90 {\n  opacity: 0.9;\n}\n.tpe-shadow {\n  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
2\n  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.tpe-shadow-2xl {\n  --tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);\n  --tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);\n  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.tpe-shadow-\\[0_-4px_6px_-1px_rgba\\(0\\,0\\,0\\,0\\.05\\)\\] {\n  --tw-shadow: 0 -4px 6px -1px rgba(0,0,0,0.05);\n  --tw-shadow-colored: 0 -4px 6px -1px var(--tw-shadow-color);\n  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.tpe-shadow-\\[0_-8px_24px_rgba\\(15\\,23\\,42\\,0\\.05\\)\\] {\n  --tw-shadow: 0 -8px 24px rgba(15,23,42,0.05);\n  --tw-shadow-colored: 0 -8px 24px var(--tw-shadow-color);\n  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.tpe-shadow-\\[0_24px_70px_rgba\\(36\\,30\\,22\\,0\\.16\\)\\] {\n  --tw-shadow: 0 24px 70px rgba(36,30,22,0.16);
2\n  --tw-shadow-colored: 0 24px 70px var(--tw-shadow-color);\n  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.tpe-shadow-inner {\n  --tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);\n  --tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);\n  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.tpe-shadow-lg {\n  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);\n  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);\n  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.tpe-shadow-md {\n  --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);\n  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);\n  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-sha
2dow);\n}\n.tpe-shadow-sm {\n  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);\n  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\n  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.tpe-shadow-st-art {\n  --tw-shadow: var(--st-art-shadow);\n  --tw-shadow-colored: var(--st-art-shadow);\n  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.tpe-shadow-st-cta {\n  --tw-shadow: var(--st-cta-shadow);\n  --tw-shadow-colored: var(--st-cta-shadow);\n  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.tpe-shadow-xl {\n  --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);\n  --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);\n  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.tpe-outline-none {\n  outline: 2px solid transparent;\n  outline-offset: 2px;\n}\n.tpe-ring-1 {\n  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-sha
2dow, 0 0 #0000);\n}\n.tpe-ring-2 {\n  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);\n}\n.tpe-ring-4 {\n  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);\n}\n.tpe-ring-blue-500 {\n  --tw-ring-opacity: 1;\n  --tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity, 1));\n}\n.tpe-ring-brand-ink\\/15 {\n  --tw-ring-color: rgb(var(--st-ink) / 0.15);\n}\n.tpe-ring-brand-lime\\/40 {\n  --tw-ring-color: rgb(var(--st-accent) / 0.4);\n}\n.tpe-ring-gray-200 {\n  --tw-ring-opacity: 1;\n  --tw-ring-color: rgb(229 231 235 / var(--tw-ring-opacity, 1));\n}\n.tpe-ring-gray-900 {\n  --tw-ring-opacity: 1;\n  --tw-ring-color: rgb(17 24 39 / var(--tw-ring-opacity, 1));\n}\n.tpe-ring-gray-900\\/15 {\n  --tw-ring-color: rgb(17 24 39 / 0.15);\n}\n.tpe-ring-gray-900\\/20 {\n  --tw-ring-color: rgb(17 24 39 / 0.2);\n}\n.tpe-ring-gray-900\\/30 {\n  --tw-ring-color: rgb(17 24 39 / 0.3);\n}\n.tpe-ring-gray-950\\/20 {\n  --tw-ring-color: rgb(3 7 18 / 0.2);\n}\n.tpe-ring-green-400 {\n  --tw-ring-opacity: 1;\n  --tw-ring-color: rgb(74 222 128 / var(--tw-ring-opacity, 1));\n}\n.tpe-ring-indigo-400 {\n  --tw-ring-opacity: 1;\n  --tw-ring-color: rgb(129 140 248 / var(--tw-ring-opacity, 1));\n}\n.tpe-ring-opacity-50 {\n  --tw-ring-opacity: 0.5;\n}\n.tpe-ring-offset-1 {\n  --tw-ring-offset-width: 1px;\n}\n.tpe-drop-shadow-lg {\n  --tw-drop-shadow: drop-shadow(0 10px 8px rgb(0 0 0 / 0.04)) drop-shadow(0 4px 3px rgb(0 0 0 / 0.1));\n  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n}\n.tpe-backdrop-blur {\n  --tw-backdrop-blur: blur(8px);\n  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);\n}\n.tpe-backdrop-blur-md {\n  --tw-backdrop-blur: blur(12px);\n  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);\n}\n.tpe-backdrop-blur-sm {\n  --tw-backdrop-blur: blur(4px);\n  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);\n}\n.tpe-backdrop-blur-xl {\n  --tw-backdrop-blur: blur(24px);\n  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);\n}\n.tpe-transition {\n  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n  transition-duration: 150ms;\n}\n.tpe-transition-all {\n  transition-property: all;\n  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n  transition-duration: 150ms;\n}\n.tpe-transition-colors {\n  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;\n  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n  transition-duration: 150ms;\n}\n.tpe-transition-opacity {\n  transition-property: opacity;\n  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n  transition-duration: 150ms;\n}\n.tpe-transition-transform {\n  transition-property: transform;\n  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n  transition-duration: 150ms;\n}\n.tpe-duration-200 {\n  transition-duration: 200ms;\n}\n.tpe-duration-300 {\n  transition-duration: 300ms;\n}\n.tpe-duration-500 {\n  transition-duration: 500ms;\n}\n.tpe-ease-in-out {\n  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n.tpe-\\@container {\n  container-type: inline-size;\n}\n\n/* --- Studio theme tokens ---------------------------------------------------\n   Defaults reproduce the studio\'s original look EXACTLY (the `today` scheme +\n   The Poster Edit lime), so a store that emits no theme config sees no change.\n   theme.ts overwrites these on the root element at boot.\n\n   Declared on :root rather than #tpe-design-studio because several modals\n   render through a portal to <body>, outside the mount node — scoping the\n   tokens to the mount would leave those modals unthemed.\n\n   Values are space-separated RGB channels: Tailwind wraps them as\n   rgb(var(--st-accent) / <alpha-value>) so opacity modifiers keep working. */\n:root {\n  --st-accent: 230 255 61;\n  --st-accent-ink: 20 22 27;\n  --st-ground: 243 244 246;\n  --st-wall: 229 231 235;\n  --st-panel: 255 255 255;\n  --st-ink: 17 24 39;\n  --st-muted: 107 114 128;\n  --st-line: 229 231 235;\n  --st-sunk: 249 250 251;\n  --st-sel: 17 24 39;\n  --st-radius: 8px;\n  --st-radius-sm: 6px;\n  --st-art-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.10), 0 8px 10px -6px rgba(0, 0, 0, 0.10);\n  --st-cta-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.10), 0 4px 6px -4px rgba(0, 0, 0, 0.10);\n  --st-border-w: 1px;\n}\n\n/* --- Animations --- */\n@keyframes fadeIn {\n  from {\n    opacity: 0;\n    transform: scale(0.98);\n  }\n\n  to {\n    opacity: 1;\n    transform: scale(1);\n  }\n}\n\n@keyframes tpe-spin {\n  0% {\n    transform: rotate(0deg);\n  }\n\n  100% {\n    transform: rotate(360deg);\n  }\n}\n\n.tpe-animate-fade-in {\n  animation: fadeIn 0.3s ease-out forwards;\n}\n\n/* Custom-framing panels change in place inside a fixed rail. A restrained\n   entrance helps maintain context without making the configurator feel like a\n   wizard or drawing attention away from the artwork. */\n@keyframes tpe-cf-panel-in {\n  from { opacity: 0; transform: translateY(5px); }\n  to { opacity: 1; transform: translateY(0); }\n}\n\n.tpe-cf-panel {\n  animation: tpe-cf-panel-in 180ms ease-out both;\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .tpe-cf-panel {\n    animation: none;\n  }\n}\n\n/* --- Layout Helpers --- */\n.tpe-app-wrapper>div {\n  height: 100% !important;\n}\n\n/* --- Base brand typography --- */\n/* Store uses Archivo as primary sans. Default all studio UI to it so portal modals + unstyled text inherit (no Times fallback). */\n#tpe-design-studio,\n.tpe-app-wrapper,\n[class*="tpe-font-Archivo"],\n.tpe-fixed[class*="tpe-z-"] {\n  font-family: \'Archivo\', sans-serif;\n}\n\n/* --- Host-independent typography base --- */\n/* Tailwind preflight is OF
2F (see tailwind.config.js), so nothing here resets the\n   host page — and this theme\'s fontSize / spacing / maxWidth scales are all `em`,\n   meaning EVERY size in the studio compounds from whatever font-size the host\n   happens to hand us. A studio embedded in a page with a different body\n   font-size, line-height or box-sizing lays out differently and CAPTURES a\n   different print file. Pin the studio\'s own roots so one design renders\n   identically on any host: the two PFC storefronts, The Poster Edit, and the\n   headless print-file renderer.\n\n   The values are the ones both live PFC storefronts already resolve to\n   (body 16px, line-height 1.8 unitless, border-box), so PFC output is unchanged\n   — this only stops a foreign host from moving it. The Poster Edit\'s theme\n   resolves 1.45 leading, so its studio text with no leading of its own moves a\n   few px; that is accepted, PFC is the reference. See .tpe-print-root below for\n   letter-spacing, which is pinned at a narrower scope.\n\n   Two roots, because the launcher renders the studio through a portal to\n   <body>, outside #tpe-design-studio. Direct children of <body> only: a nested\n   .tpe-fixed must keep inheriting the em cascade, not restart it at 16px. */\n#tpe-design-studio,\nbody > .tpe-fixed[class*="tpe-z-"] {\n  font-size: 16px;\n  line-height: 1.8;\n  box-sizing: border-box;\n}\n\n/* letter-spacing is pinned on the CAPTURED element only, not the studio roots.\n   It has to be pinned somewhere — Dawn gives PFC 0.06rem (0.6px) and TPE\n   `normal`, and that moves text inside the print — but applying it studio-wide\n   widens the UI\'s option labels enough to truncate them ("Copper Metal\n   (Brush…"). The print root is the narrowest scope that covers the artwork. */\n.tpe-print-root {\n  letter-spacing: 0.6px;\n}\n\n#tpe-design-studio *,\n#tpe-design-studio *::before,\n#tpe-design-studio *::after,\nbody > .tpe-fixed[class*="tpe-z-"] *,\nbody > .tpe-fixed[class*="tpe-z-"] *::before,\nbody > .tpe-fixed[class*="tpe-z-"] *::after {\n  box-sizing: border-box;\n}\n\n/* --- Custom Reset for TPE prefixed elements --- */\n/* Fixes "browser default" look caused by disabling Tailwind preflight */\n\n#tpe-design-studio h1,\n#tpe-design-studio h2,\n#tpe-design-studio h3,\n#tpe-design-studio h4,\n#tpe-design-studio h5,\n#tpe-design-studio h6 {\n  margin: 0 !important;\n  margin-block: 0 !important;\n  margin-block-end: 0 !important;\n  margin-block-start: 0 !important;\n  padding: 0;\n  font-weight: inherit;\n  font-size: inherit;\n  line-height: inherit;\n}\n\n:where(button[class*="tpe-"]),\n:where([role="button"][class*="tpe-"]) {\n  cursor: pointer;\n  background-color: transparent;\n  background-image: none;\n  border-style: solid;\n  border-width: 0;\n  padding: 0;\n  margin: 0;\n  text-transform: none;\n  font-family: inherit;\n  font-size: 100%;\n  line-height: inherit;\n  color: inherit;\n  -webkit-appearance: button;\n}\n\n/* Reset inputs (except checkbox/radio) */\n:where(input[class*="tpe-"]:not([type="checkbox"]):not([type="radio"])),\n:where(textarea[class*="tpe-"]),\n:where(select[class*="tpe-"]) {\n  -webkit-appearance: none;\n     -moz-appearance: none;\n          appearance: none;\n  background-color: transparent;\n  border-style: solid;\n  border-width: 0;\n  padding: 0;\n  margin: 0;\n  font-family: inherit;\n  font-size: 100%;\n  line-height: inherit;\n  color: inherit;\n}\n\n/* Reset placeholder color */\n:where([class*="tpe-"]::-moz-placeholder) {\n  color: #9ca3af;\n  opacity: 1;\n}\n:where([class*="tpe-"]::placeholder) {\n  color: #9ca3af;\n  opacity: 1;\n}\n\n/* Ensure images block display */\n:where(img[class*="tpe-"]) {\n  display: block;\n  vertical-align: middle;\n  max-width: 100%;\n  height: auto;\n}\n\n[hidden] {\n  display: none;\n}\n\n/* --- Components --- */\n.tpe-spinner {\n  border: 2px solid rgba(255, 255, 255, 0.3);\n  border-radius: 50%;\n  border-top: 2px solid white;\n  width: 16px;\n  height: 16px;\n  animation: tpe-spin 1s linear infinite;\n}\n\n/*a:empty, ul:empty, dl:empty, div:empty, section:empty, article:empty, p:empty, h1:empty, h2:empty, h3:empty, h4:empty, h5:empty, h6:empty {\
2n    display: block !important;\n}*/\n\n.mapboxgl-ctrl-bottom-left {\n  display: none;\n}\n\n/* --- Scroll Locking --- */\n.tpe-no-scroll {\n  overflow: hidden !important;\n  position: fixed !important;\n  width: 100% !important;\n  height: 100% !important;\n  overscroll-behavior: none !important;\n}\n\n/* Studio\'s LocationSearchModal renders its <input> fixed at the top of\n   the viewport. The pac-container must also be position: fixed so it\n   tracks the modal-input\'s getBoundingClientRect when the user scrolls\n   behind the modal backdrop.\n\n   Previously this rule applied globally and leaked to any other\n   pac-container on the host page (e.g. address-search sections on\n   Shopify hub-landing templates), positioning their dropdowns\n   off-screen. Scoped now via the .tpe-studio-pac-fixed class added\n   to <body> by LocationSearchModal when its modal opens. */\nbody.tpe-studio-pac-fixed .pac-container {\n  position: fixed !important;\n}\n.pac-container {\n  z-index: 200000 !important;\n  border-radius: 0.5rem;\n  margin-top: 4px;\n  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n  border: 1px solid #e5e7eb;\n  font-family: inherit;\n  max-width: 98vw;\n}\n\n.pac-item {\n  padding: 8px 12px;\n  font-size: 16px;\n  color: #374151;\n  cursor: pointer;\n  line-height: 1.5;\n}\n\n.pac-item-query {\n  font-size: 14px;\n  color: #111827;\n  font-weight: 600;\n}\n\n.pac-icon {\n  margin-top: 4px;\n}\n\n/* Mapbox custom overrides */\n.mapboxgl-canvas {\n  width: 100% !important;\n  height: 100% !important;\n}
2\n\n#tpe-design-studio div:empty {\n  display: inherit;\n}\n\n/*[class*="tpe-"]:empty {\n  display: inherit;\n}*/\n\nbody > .tpe-fixed div:empty {\n  display: inherit;\n}\n\n.after\\:tpe-absolute::after {\n  content: var(--tw-content);\n  position: absolute;\n}\n\n.after\\:tpe-left-\\[2px\\]::after {\n  content: var(--tw-content);\n  left: 2px;\n}\n\n.after\\:tpe-top-\\[2px\\]::after {\n  content: var(--tw-content);\n  top: 2px;\n}\n\n.after\\:tpe-h-4::after {\n  content: var(--tw-content);\n  height: 1em;\n}\n\n.after\\:tpe-h-5::after {\n  content: var(--tw-content);\n  height: 1.25em;\n}\n\n.after\\:tpe-w-4::after {\n  content: var(--tw-content);\n  width: 1em;\n}\n\n.after\\:tpe-w-5::after {\n  content: var(--tw-content);\n  width: 1.25em;\n}\n\n.after\\:tpe-rounded-full::after {\n  content: var(--tw-content);\n  border-radius: 9999px;\n}\n\n.after\\:tpe-border::after {\n  content: var(--tw-content);\n  border-width: 1px;\n}\n\n.after\\:tpe-border-gray-300::after {\n  content: var(--tw-content);\n  --tw-border-opacity: 1;\n  border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));\n}\n\n.after\\:tpe-bg-white::after {\n  content: var(--tw-content);\n  --tw-bg-opacity: 1;\n  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));\n}\n\n.after\\:tpe-transition-all::after {\n  content: var(--tw-content);\n  transition-property: all;\n  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n  transition-duration: 150ms;\n}\n\n.after\\:tpe-content-\\[\\\'\\\'\\]::after {\n  --tw-content: \'\';\n  content: var(--tw-content);\n}\n\n.last\\:tpe-border-0:last-child {\n  border-width: 0px;\n}\n\n.focus-within\\:tpe-border-gray-900:focus-within {\n  --tw-border-opacity: 1;\n  border-color: rgb(17 24 39 / var(--tw-border-opacity, 1));\n}\n\n.focus-within\\:tpe-ring-1:focus-within {\n  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-sha
2dow, 0 0 #0000);\n}\n\n.focus-within\\:tpe-ring-gray-900:focus-within {\n  --tw-ring-opacity: 1;\n  --tw-ring-color: rgb(17 24 39 / var(--tw-ring-opacity, 1));\n}\n\n.hover\\:tpe--translate-y-0\\.5:hover {\n  --tw-translate-y: -0.125rem;\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.hover\\:tpe--translate-y-1:hover {\n  --tw-translate-y: -0.25em;\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.hover\\:tpe-scale-105:hover {\n  --tw-scale-x: 1.05;\n  --tw-scale-y: 1.05;\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.hover\\:tpe-scale-110:hover {\n  --tw-scale-x: 1.1;\n  --tw-scale-y: 1.1;\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.hover\\:tpe-border-blue-200:hover {\n  --tw-border-opacity: 1;\n  border-color: rgb(191 219 254 / var(--tw-border-opacity, 1));\n}\n\n.hover\\:tpe-border-blue-300:hover {\n  --tw-border-opacity: 1;\n  border-color: rgb(147 197 253 / var(--tw-border-opacity, 1));\n}\n\n.hover\\:tpe-border-blue-400:hover {\n  --tw-border-opacity: 1;\n  border-color: rgb(96 165 250 / var(--tw-border-opacity, 1));\n}\n\n.hover\\:tpe-border-brand-lime:hover {\n  --tw-border-opacity: 1;\n  border-color: rgb(var(--st-accent) / var(--tw-border-opacity, 1));\n}\n\n.hover\\:tpe-border-brand-muted:hover {\n  --tw-border-opacity: 1;\n  border-color: rgb(var(--st-muted) / var(--tw-border-opacity, 1));\n}\n\n.hover\\:tpe-border-gray-300:hover {\n  --tw-border-opacity: 1;\n  border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));\n}\n\n.hover\\:tpe-border-gray-400:hover {\n  --tw-border-opacity: 1;\n  border-color: rgb(156 163 175 / var(--tw-border-opacity, 1));\n}\n\n.hover\\:tpe-border-gray-500:hover {\n  --tw-border-opacity: 1;\n  border-color: rgb(107 114 128 / var(--tw-border-opacity, 1));\n}\n\n.hover\\:tpe-border-gray-900:hover {\n  --tw-border-opacity: 1;\n  border-color: rgb(17 24 39 / var(--tw-border-opacity, 1));\n}\n\n.hover\\:tpe-border-red-200:hover {\n  --tw-border-opacity: 1;\n  border-color: rgb(254 202 202 / var(--tw-border-opacity, 1));\n}\n\n.hover\\:tpe-bg-\\[\\#e44402\\]:hover {\n  --tw-bg-opacity: 1;\n  background-color: rgb(228 68 2 / var(--tw-bg-opacity, 1));\n}\n\n.hover\\:tpe-bg-black:hover {\n  --tw-bg-opacity: 1;\n  background-color: rgb(0 0 0 / var(--tw-bg-opacity, 1));\n}\n\n.hover\\:tpe-bg-black\\/55:hover {\n  background-color: rgb(0 0 0 / 0.55);\n}\n\n.hover\\:tpe-bg-blue-100:hover {\n  --tw-bg-opacity: 1;\n  background-color: rgb(219 234 254 / var(--tw-bg-opacity, 1));\n}\n\n.hover\\:tpe-bg-blue-700:hover {\n  --tw-bg-opacity: 1;\n  background-color: rgb(29 78 216 / var(--tw-bg-opacity, 1));\n}\n\n.hover\\:tpe-bg-brand-sunk:hover {\n  --tw-bg-opacity: 1;\n  background-color: rgb(var(--st-sunk) / var(--tw-bg-opacity, 1));\n}\n\n.hover\\:tpe-bg-gray-100:hover {\n  --tw-bg-opacity: 1;\n  background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));\n}\n\n.hover\\:tpe-bg-gray-200:hover {\n  --tw-bg-opacity: 1;\n  background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1));\n}\n\n.hover\\:tpe-bg-gray-50:hover {\n  --tw-bg-opacity: 1;\n  background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));\n}\n\n.hover\\:tpe-bg-gray-700:hover {\n  --tw-bg-opacity: 1;\n  background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));\n}\n\n.hover\\:tpe-bg-gray-800:hover {\n  --tw-bg-opacity: 1;\n  background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));\n}\n\n.hover\\:tpe-bg-gray-900:hover {\n  --tw-bg-opacity: 1;\n  background-color: rgb(17 24 39 / var(--tw-bg-opacity, 1));\n}\n\n.hover\\:tpe-bg-neutral-800:hover {\n  --tw-bg-opacity: 1;\n  background-color: rgb(38 38 38 / var(--tw-bg-opacity, 1));\n}\n\n.hover\\:tpe-bg-red-100:hover {\n  --tw-bg-opacity: 1;\n  background-color: rgb(254 226 226 / var(--tw-bg-opacity, 1));\n}\n\n.hover\\:tpe-bg-red-50:hover {\n  --tw-bg-opacity: 1;\n  background-color: rgb(254 242 242 / var(--tw-bg-opacity, 1));\n}\n\n.hover\\:tpe-bg-red-600:hover {\n  --tw-bg-opacity: 1;\n  background-color: rgb(220 38 38 / var(--tw-bg-opacity, 1));\n}\n\n.hover\\:tpe-bg-red-700:hover {\n  --tw-bg-opacity: 1;\n  background-color: rgb(185 28 28 / var(--tw-bg-opacity, 1));\n}\n\n.hover\\:tpe-bg-white:hover {\n  --tw-bg-opacity: 1;\n  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));\n}\n\n.hover\\:tpe-bg-white\\/20:hover {\n  background-color: rgb(255 255 255 / 0.2);\n}\n\n.hover\\:tpe-text-blue-300:hover {\n  --tw-text-opacity: 1;\n  color: rgb(147 197 253 / var(--tw-text-opacity, 1));\n}\n\n.hover\\:tpe-text-brand-ink:hover {\n  --tw-text-opacity: 1;\n  color: rgb(var(--st-ink) / var(--tw-text-opacity, 1));\n}\n\n.hover\\:tpe-text-gray-700:hover {\n  --tw-text-opacity: 1;\n  color: rgb(55 65 81 / var(--tw-text-opacity, 1));\n}\n\n.hover\\:tpe-text-gray-800:hover {\n  --tw-text-opacity: 1;\n  color: rgb(31 41 55 / var(--tw-text-opacity, 1));\n}\n\n.hover\\:tpe-text-gray-900:hover {\n  --tw-text-opacity: 1;\n  color: rgb(17 24 39 / var(--tw-text-opacity, 1));\n}\n\n.hover\\:tpe-text-gray-950:hover {\n  --tw-text-opacity: 1;\n  color: rgb(3 7 18 / var(--tw-text-opacity, 1));\n}\n\n.hover\\:tpe-text-red-500:hover {\n  --tw-text-opacity: 1;\n  color: rgb(239 68 68 / var(--tw-text-opacity, 1));\n}\n\n.hover\\:tpe-text-red-600:hover {\n  --tw-text-opacity: 1;\n  color: rgb(220 38 38 / var(--tw-text-opacity, 1));\n}\n\n.hover\\:tpe-text-red-700:hover {\n  --tw-text-opacity: 1;\n  color: rgb(185 28 28 / var(--tw-text-opacity, 1));\n}\n\n.hover\\:tpe-text-red-800:hover {\n  --tw-text-opacity: 1;\n  color: rgb(153 27 27 / var(--tw-text-opacity, 1));\n}\n\n.hover\\:tpe-underline:hover {\n  text-decoration-line: underline;\n}\n\n.hover\\:tpe-opacity-100:hover {\n  opacity: 1;\n}\n\n.hover\\:tpe-shadow-2xl:hover {\n  --tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
2\n  --tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);\n  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.hover\\:tpe-shadow-md:hover {\n  --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);\n  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);\n  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.hover\\:tpe-shadow-xl:hover {\n  --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);\n  --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);\n  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.hover\\:tpe-brightness-95:hover {\n  --tw-brightness: brightness(.95);\n  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n}\n\n.focus\\:tpe-border-blue-500:focus {\n  --tw-border-opacity: 1;\n  border-color: rgb(59 130 246 / var(--tw-border-opacity, 1));\n}\n\n.focus\\:tpe-border-gray-900:focus {\n  --tw-border-opacity: 1;\n  border-color: rgb(17 24 39 / var(--tw-border-opacity, 1));\n}\n\n.focus\\:tpe-border-red-500:focus {\n  --tw-border-opacity: 1;\n  border-color: rgb(239 68 68 / var(--tw-border-opacity, 1));\n}\n\n.focus\\:tpe-outline-none:focus {\n  outline: 2px solid transparent;\n  outline-offset: 2px;\n}\n\n.focus\\:tpe-ring-1:focus {\n  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-sha
2dow, 0 0 #0000);\n}\n\n.focus\\:tpe-ring-2:focus {\n  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);\n}\n\n.focus\\:tpe-ring-blue-500:focus {\n  --tw-ring-opacity: 1;\n  --tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity, 1));\n}\n\n.focus\\:tpe-ring-gray-400:focus {\n  --tw-ring-opacity: 1;\n  --tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity, 1));\n}\n\n.focus\\:tpe-ring-gray-900:focus {\n  --tw-ring-opacity: 1;\n  --tw-ring-color: rgb(17 24 39 / var(--tw-ring-opacity, 1));\n}\n\n.focus\\:tpe-ring-gray-900\\/20:focus {\n  --tw-ring-color: rgb(17 24 39 / 0.2);\n}\n\n.focus\\:tpe-ring-red-200:focus {\n  --tw-ring-opacity: 1;\n  --tw-ring-color: rgb(254 202 202 / var(--tw-ring-opacity, 1));\n}\n\n.focus\\:tpe-ring-red-500:focus {\n  --tw-ring-opacity: 1;\n  --tw-ring-color: rgb(239 68 68 / var(--tw-ring-opacity, 1));\n}\n\n.active\\:tpe-scale-95:active {\n  --tw-scale-x: .95;\n  --tw-scale-y: .95;\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.active\\:tpe-cursor-grabbing:active {\n  cursor: grabbing;\n}\n\n.disabled\\:tpe-cursor-not-allowed:disabled {\n  cursor: not-allowed;\n}\n\n.disabled\\:tpe-cursor-wait:disabled {\n  cursor: wait;\n}\n\n.disabled\\:tpe-opacity-40:disabled {\n  opacity: 0.4;\n}\n\n.disabled\\:tpe-opacity-50:disabled {\n  opacity: 0.5;\n}\n\n.disabled\\:tpe-opacity-60:disabled {\n  opacity: 0.6;\n}\n\n.disabled\\:tpe-opacity-70:disabled {\n  opacity: 0.7;\n}\n\n.tpe-group:hover .group-hover\\:tpe-translate-x-1 {\n  --tw-translate-x: 0.25em;\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.tpe-group:hover .group-hover\\:tpe-scale-105 {\n  --tw-scale-x: 1.05;\n  --tw-scale-y: 1.05;\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.tpe-group:hover .group-hover\\:tpe-border-gray-400 {\n  --tw-border-opacity: 1;\n  border-color: rgb(156 163 175 / var(--tw-border-opacity, 1));\n}\n\n.tpe-group:hover .group-hover\\:tpe-text-gray-600 {\n  --tw-text-opacity: 1;\n  color: rgb(75 85 99 / var(--tw-text-opacity, 1));\n}\n\n.tpe-group:hover .group-hover\\:tpe-text-gray-700 {\n  --tw-text-opacity: 1;\n  color: rgb(55 65 81 / var(--tw-text-opacity, 1));\n}\n\n.tpe-group:hover .group-hover\\:tpe-text-gray-900 {\n  --tw-text-opacity: 1;\n  color: rgb(17 24 39 / var(--tw-text-opacity, 1));\n}\n\n.tpe-group:hover .group-hover\\:tpe-opacity-100 {\n  opacity: 1;\n}\n\n.tpe-peer:checked ~ .peer-checked\\:tpe-bg-brand-lime {\n  --tw-bg-opacity: 1;\n  background-color: rgb(var(--st-accent) / var(--tw-bg-opacity, 1));\n}\n\n.tpe-peer:checked ~ .peer-checked\\:tpe-bg-gray-900 {\n  --tw-bg-opacity: 1;\n  background-color: rgb(17 24 39 / var(--tw-bg-opacity, 1));\n}\n\n.tpe-peer:checked ~ .peer-checked\\:after\\:tpe-translate-x-full::after {\n  content: var(--tw-content);\n  --tw-translate-x: 100%;\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.tpe-peer:checked ~ .peer-checked\\:after\\:tpe-border-white::after {\n  content: var(--tw-content);\n  --tw-border-opacity: 1;\n  border-color: rgb(255 255 255 / var(--tw-border-opacity, 1));\n}\n\n.tpe-peer:focus ~ .peer-focus\\:tpe-outline-none {\n  outline: 2px solid transparent;\n  outline-offset: 2px;\n}\n\n@container (min-width: 450px) {\n  .\\@\\[450px\\]\\:tpe-grid-cols-2 {\n    grid-template-columns: repeat(2, minmax(0, 1fr));\n  }\n}\n\n@container (min-width: 500px) {\n  .\\@\\[500px\\]\\:tpe-p-12 {\n    padding: 3em;\n  }\n}\n\n@media (min-width: 640px) {\n  .sm\\:tpe-inline {\n    display: inline;\n  }\n  .sm\\:tpe-grid-cols-3 {\n    grid-template-columns: repeat(3, minmax(0, 1fr));\n  }\n  .sm\\:tpe-px-3 {\n    padding-left: 0.75em;\n    padding-right: 0.75em;\n  }\n  .sm\\:tpe-px-4 {\n    padding-left: 1em;\n    padding-right: 1em;\n  }\n  .sm\\:tpe-py-2 {\n    padding-top: 0.5em;\n    padding-bottom: 0.5em;\n  }\n  .sm\\:tpe-py-3 {\n    padding-top: 0.75em;\n    padding-bottom: 0.75em;\n  }\n  .sm\\:tpe-text-sm {\n    font-size: 0.875em;\n  }\n}\n\n@media (min-width: 768px) {\n  .md\\:tpe-block {\n    display: block;\n  }\n  .md\\:tpe-inline {\n    display: inline;\n  }\n  .md\\:tpe-flex {\n    display: flex;\n  }\n  .md\\:tpe-hidden {\n    display: none;\n  }\n  .md\\:tpe-h-full {\n    height: 100%;\n  }\n  .md\\:tpe-w-28 {\n    width: 7em;
2\n  }\n  .md\\:tpe-w-72 {\n    width: 18em;\n  }\n  .md\\:tpe-w-\\[clamp\\(340px\\2c 26vw\\2c 460px\\)\\] {\n    width: clamp(340px,26vw,460px);\n  }\n  .md\\:tpe-flex-1 {\n    flex: 1 1 0%;\n  }\n  .md\\:tpe-flex-none {\n    flex: none;\n  }\n  .md\\:tpe-grid-cols-2 {\n    grid-template-columns: repeat(2, minmax(0, 1fr));\n  }\n  .md\\:tpe-flex-row {\n    flex-direction: row;\n  }\n  .md\\:tpe-flex-col {\n    flex-direction: column;\n  }\n  .md\\:tpe-items-center {\n    align-items: center;\n  }\n  .md\\:tpe-rounded-2xl {\n    border-radius: 1rem;\n  }\n  .md\\:tpe-border-l {\n    border-left-width: 1px;\n  }\n  .md\\:tpe-border-t-0 {\n    border-top-width: 0px;\n  }\n  .md\\:tpe-p-10 {\n    padding: 2.5em;\n  }\n  .md\\:tpe-p-4 {\n    padding: 1em;\n  }\n  .md\\:tpe-px-8 {\n    padding-left: 2em;\n    padding-right: 2em;\n  }\n  .md\\:tpe-text-base {\n    font-size: 1rem;\n    line-height: 1.5rem;\n  }\n}\n',""]);const l=i},270:(e,t,n)=>{"use strict";var r=n(87),o=n(929);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,l={};function s(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(l[e]=t,e=0;e<t.length;e++)i.add(t[e])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),p=Object.prototype.hasOwnProperty,d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f={},m={};function h(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){g[e]=new h(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];g[t]=new h(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){g[e]=new h(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){g[e]=new h(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){g[e]=new h(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){g[e]=new h(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){g[e]=new h(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){g[e]=new h(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){g[e]=new h(e,5,!1,e.toLowerCase(),null,!1,!1)});var x=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function v(e,t,n,r){var o=g.hasOwnProperty(t)?g[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!p.call(m,e)||!p.call(f,e)&&(d.test(e)?m[e]=!0:(f[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode
2-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(x,y);g[t]=new h(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(x,y);g[t]=new h(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(x,y);g[t]=new h(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){g[e]=new h(e,1,!1,e.toLowerCase(),null,!1,!1)}),g.xlinkHref=new h("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){g[e]=new h(e,1,!1,e.toLowerCase(),null,!0,!0)});var b=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Y=Symbol.for("react.element"),M=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),N=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),D=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var A=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var C=Symbol.iterator;function L(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=C&&e[C]||e["@@iterator"])?e:null}var O,E=Object.assign;function V(e){if(void 0===O)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);O=t&&t[1]||""}return"\n"+O+e}var z=!1;function X(e,t){if(!e||z)return"";z=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),a=r.stack.split("\n"),i=o.length-1,l=a.length-1;1<=i&&0<=l&&o[i]!==a[l];)l--;for(;1<=i&&0<=l;i--,l--)if(o[i]!==a[l]){if(1!==i||1!==l)do{if(i--,0>--l||o[i]!==a[l]){var s="\n"+o[i].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=i&&0<=l);break}}}finally{z=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?V(e):""}function P(e){switch(e.tag){case 5:return V(e.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 2:case 15:return X(e.type,!1);case 11:return X(e.type.render,!1);case 1:return X(e.type,!0);default:return""}}function Z(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case w:return"Fragment";case M:return"Portal";case j:return"Profiler";case S:return"StrictMode";case I:return"Suspense";case U:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case N:return(e.displayName||"Context")+".Consumer";case T:return(e._context.displayName||"Context")+".Provider";case W:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case k:return null!==(t=e.displayName||null)?t:Z(e.type)||"Memo";case D:t=e._payload,e=e._init;try{return Z(e(t))}catch(e){}}return null}function G(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Z(t);case 8:return t===S?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function F(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function B(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function R(e){e._valueTracker||(e._valueTracker=function(e){var t=B(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)}
vendor: 5,933 bytes, line 2
2,set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=B(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function H(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function K(e,t){var n=t.checked;return E({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function J(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=F(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function q(e,t){null!=(t=t.checked)&&v(e,"checked",t,!1)}function _(e,t){q(e,t);var n=F(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,F(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function $(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&H(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+F(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return E({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(te(n)){if(1<n.length)throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:F(n)}}function ae(e,t){var n=F(t.value),r=F(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ie(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function le(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function se(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,pe=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return ue(e,t)})}:ue);function de(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var fe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},me=["Webkit","ms","Moz","O"];function he(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||fe.hasOwnProperty(e)&&fe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=he(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(fe).forEach(function(e){me.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fe[t]=fe[e]})});var xe=E({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(xe[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function ve(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var be=null;function Ye(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.n
vendor: 5,847 bytes, line 2
2odeType?e.parentNode:e}var Me=null,we=null,Se=null;function je(e){if(e=xo(e)){if("function"!=typeof Me)throw Error(a(280));var t=e.stateNode;t&&(t=vo(t),Me(e.stateNode,e.type,t))}}function Te(e){we?Se?Se.push(e):Se=[e]:we=e}function Ne(){if(we){var e=we,t=Se;if(Se=we=null,je(e),t)for(e=0;e<t.length;e++)je(t[e])}}function We(e,t){return e(t)}function Ie(){}var Ue=!1;function ke(e,t,n){if(Ue)return e(t,n);Ue=!0;try{return We(e,t,n)}finally{Ue=!1,(null!==we||null!==Se)&&(Ie(),Ne())}}function De(e,t){var n=e.stateNode;if(null===n)return null;var r=vo(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var Ae=!1;if(u)try{var Ce={};Object.defineProperty(Ce,"passive",{get:function(){Ae=!0}}),window.addEventListener("test",Ce,Ce),window.removeEventListener("test",Ce,Ce)}catch(ue){Ae=!1}function Le(e,t,n,r,o,a,i,l,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var Oe=!1,Ee=null,Ve=!1,ze=null,Xe={onError:function(e){Oe=!0,Ee=e}};function Pe(e,t,n,r,o,a,i,l,s){Oe=!1,Ee=null,Le.apply(Xe,arguments)}function Ze(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ge(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Fe(e){if(Ze(e)!==e)throw Error(a(188))}function Be(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ze(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Fe(o),e;if(i===r)return Fe(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var l=!1,s=o.child;s;){if(s===n){l=!0,n=o,r=i;break}if(s===r){l=!0,r=o,n=i;break}s=s.sibling}if(!l){for(s=i.child;s;){if(s===n){l=!0,n=i,r=o;break}if(s===r){l=!0,r=i,n=o;break}s=s.sibling}if(!l)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e))?Re(e):null}function Re(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Re(e);if(null!==t)return t;e=e.sibling}return null}var Qe=o.unstable_scheduleCallback,He=o.unstable_cancelCallback,Ke=o.unstable_shouldYield,Je=o.unstable_requestPaint,qe=o.unstable_now,_e=o.unstable_getCurrentPriorityLevel,$e=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,at=null,it=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(lt(e)/st|0)|0},lt=Math.log,st=Math.LN2,ct=64,ut=4194304;function pt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=268435455&n;if(0!==i){var l=i&~o;0!==l?r=pt(l):0!==(a&=i)&&(r=pt(a))}else 0!==(i=n&~o)?r=pt(i):0!==a&&(r=pt(a));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(a=t&-t)||16===o&&4194240&a))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-it(t)),r|=e[n],t&=~o;return r}function ft(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function mt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function ht(){var e=ct;return!(4194240&(ct<<=1))&&(ct=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function xt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-it(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-it(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var vt=0;function bt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var Yt,Mt,wt,St,jt,Tt=!1,Nt=[],Wt=null,It=null,Ut=null,kt=new Map,Dt=new Map,At=[],Ct="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Lt(e,t){switch(e){case"focusin":case"focusout":Wt=null;break;case"dragenter":case"dragleave":It=null;break;case"mouseover":case"mouseout":Ut=null;break;case"pointerover":case"pointerout":kt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Dt.delete(t.pointerId)}}function Ot(e,t,n,r,o,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[o]},null!==t&&null!==(t=xo(t))&&Mt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.pu
vendor: 5,436 bytes, line 2
2sh(o),e)}function Et(e){var t=go(e.target);if(null!==t){var n=Ze(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ge(n)))return e.blockedOn=t,void jt(e.priority,function(){wt(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Vt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Kt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=xo(n))&&Mt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);be=r,n.target.dispatchEvent(r),be=null,t.shift()}return!0}function zt(e,t,n){Vt(e)&&n.delete(t)}function Xt(){Tt=!1,null!==Wt&&Vt(Wt)&&(Wt=null),null!==It&&Vt(It)&&(It=null),null!==Ut&&Vt(Ut)&&(Ut=null),kt.forEach(zt),Dt.forEach(zt)}function Pt(e,t){e.blockedOn===t&&(e.blockedOn=null,Tt||(Tt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Xt)))}function Zt(e){function t(t){return Pt(t,e)}if(0<Nt.length){Pt(Nt[0],e);for(var n=1;n<Nt.length;n++){var r=Nt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Wt&&Pt(Wt,e),null!==It&&Pt(It,e),null!==Ut&&Pt(Ut,e),kt.forEach(t),Dt.forEach(t),n=0;n<At.length;n++)(r=At[n]).blockedOn===e&&(r.blockedOn=null);for(;0<At.length&&null===(n=At[0]).blockedOn;)Et(n),null===n.blockedOn&&At.shift()}var Gt=b.ReactCurrentBatchConfig,Ft=!0;function Bt(e,t,n,r){var o=vt,a=Gt.transition;Gt.transition=null;try{vt=1,Qt(e,t,n,r)}finally{vt=o,Gt.transition=a}}function Rt(e,t,n,r){var o=vt,a=Gt.transition;Gt.transition=null;try{vt=4,Qt(e,t,n,r)}finally{vt=o,Gt.transition=a}}function Qt(e,t,n,r){if(Ft){var o=Kt(e,t,n,r);if(null===o)Pr(e,t,r,Ht,n),Lt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Wt=Ot(Wt,e,t,n,r,o),!0;case"dragenter":return It=Ot(It,e,t,n,r,o),!0;case"mouseover":return Ut=Ot(Ut,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return kt.set(a,Ot(kt.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,Dt.set(a,Ot(Dt.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Lt(e,r),4&t&&-1<Ct.indexOf(e)){for(;null!==o;){var a=xo(o);if(null!==a&&Yt(a),null===(a=Kt(e,t,n,r))&&Pr(e,t,r,Ht,n),a===o)break;o=a}null!==o&&r.stopPropagation()}else Pr(e,t,r,null,n)}}var Ht=null;function Kt(e,t,n,r){if(Ht=null,null!==(e=go(e=Ye(r))))if(null===(t=Ze(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ge(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ht=e,null}function Jt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(_e()){case $e:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var qt=null,_t=null,$t=null;function en(){if($t)return $t;var e,t,n=_t,r=n.length,o="value"in qt?qt.value:qt.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);return $t=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,a){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return E(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,ln,sn,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),pn=E({},cn,{view:0,detail:0}),dn=on(pn),fn=E({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.from
vendor: 4,324 bytes, line 2
2Element===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sn&&(sn&&"mousemove"===e.type?(an=e.screenX-sn.screenX,ln=e.screenY-sn.screenY):ln=an=0,sn=e),an)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),mn=on(fn),hn=on(E({},fn,{dataTransfer:0})),gn=on(E({},pn,{relatedTarget:0})),xn=on(E({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=on(E({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),vn=on(E({},cn,{data:0})),bn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Yn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Mn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Mn[e])&&!!t[e]}function Sn(){return wn}var jn=on(E({},pn,{key:function(e){if(e.key){var t=bn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Yn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Tn=on(E({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Nn=on(E({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sn})),Wn=on(E({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),In=on(E({},fn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Un=[9,13,27,32],kn=u&&"CompositionEvent"in window,Dn=null;u&&"documentMode"in document&&(Dn=document.documentMode);var An=u&&"TextEvent"in window&&!Dn,Cn=u&&(!kn||Dn&&8<Dn&&11>=Dn),Ln=String.fromCharCode(32),On=!1;function En(e,t){switch(e){case"keyup":return-1!==Un.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var zn=!1,Xn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Pn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Xn[e.type]:"textarea"===t}function Zn(e,t,n,r){Te(r),0<(t=Gr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Gn=null,Fn=null;function Bn(e){Lr(e,0)}function Rn(e){if(Q(yo(e)))return e}function Qn(e,t){if("change"===e)return t}var Hn=!1;if(u){var Kn;if(u){var Jn="oninput"in document;if(!Jn){var qn=document.createElement("div");qn.setAttribute("oninput","return;"),Jn="function"==typeof qn.oninput}Kn=Jn}else Kn=!1;Hn=Kn&&(!document.documentMode||9<document.documentMode)}function _n(){Gn&&(Gn.detachEvent("onpropertychange",$n),Fn=Gn=null)}function $n(e){if("value"===e.propertyName&&Rn(Fn)){var t=[];Zn(t,Fn,e,Ye(e)),ke(Bn,t)}}function er(e,t,n){"focusin"===e?(_n(),Fn=n,(Gn=t).attachEvent("onpropertychange",$n)):"focusout"===e&&_n()}function tr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Rn(Fn)}function nr(e,t){if("click"===e)return Rn(t)}function rr(e,t){if("input"===e||"change"===e)return Rn(t)}var or="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ar(e,t){if(or(e,t))return!0;
vendor: 4,826 bytes, line 2
2if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!p.call(t,o)||!or(e[o],t[o]))return!1}return!0}function ir(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function lr(e,t){var n,r=ir(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ir(r)}}function sr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?sr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function cr(){for(var e=window,t=H();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=H((e=t.contentWindow).document)}return t}function ur(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function pr(e){var t=cr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&sr(n.ownerDocument.documentElement,n)){if(null!==r&&ur(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=void 0===r.end?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=lr(n,a);var i=lr(n,r);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var dr=u&&"documentMode"in document&&11>=document.documentMode,fr=null,mr=null,hr=null,gr=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;gr||null==fr||fr!==H(r)||(r="selectionStart"in(r=fr)&&ur(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},hr&&ar(hr,r)||(hr=r,0<(r=Gr(mr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=fr)))}function yr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var vr={animationend:yr("Animation","AnimationEnd"),animationiteration:yr("Animation","AnimationIteration"),animationstart:yr("Animation","AnimationStart"),transitionend:yr("Transition","TransitionEnd")},br={},Yr={};function Mr(e){if(br[e])return br[e];if(!vr[e])return e;var t,n=vr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Yr)return br[e]=n[t];return e}u&&(Yr=document.createElement("div").style,"AnimationEvent"in window||(delete vr.animationend.animation,delete vr.animationiteration.animation,delete vr.animationstart.animation),"TransitionEvent"in window||delete vr.transitionend.transition);var wr=Mr("animationend"),Sr=Mr("animationiteration"),jr=Mr("animationstart"),Tr=Mr("transitionend"),Nr=new Map,Wr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ir(e,t){Nr.set(e,t),s(t,[e])}for(var Ur=0;Ur<Wr.length;Ur++){var kr=Wr[Ur];Ir(kr.toLowerCase(),"on"+(kr[0].toUpperCase()+kr.slice(1)))}Ir(wr,"onAnimationEnd"),Ir(Sr,"onAnimationIteration"),Ir(jr,"onAnimationStart"),Ir("dblclick","onDoubleClick"),Ir("focusin","onFocus"),Ir("focusout","onBlur"),Ir(Tr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focu
2sin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ar=new Set("cancel close invalid load scroll toggle".split(" ").concat(Dr));function Cr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,l,s,c){if(Pe.apply(this,arguments),Oe){if(!Oe)throw Error(a(198));var u=Ee;Oe=!1,Ee=null,Ve||(Ve=!0,ze=u)}}(r,t,void 0,e),e.currentTarget=null}function Lr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==a&&o.isPropagationStopped())break e;Cr(o,l,c),a=s}else for(i=0;i<r.length;i++){if(s=(l=r[i]).instance,c=l.currentTarget,l=l.listener,s!==a&&o.isPropagationStopped())break e;Cr(o,l,c),a=s}}}if(Ve)throw e=ze,Ve=!1,ze=null,e}function Or(e,t){var n=t[fo];void 0===n&&(n=t[fo]=new Set);var r=e+"__bubble";n.has(r)||(Xr(t,e,2,!1),n.add(r))}function Er(e,t,n){var r=0;t&&(r|=4),Xr(n,e,r,t)}var Vr="_reactListening"+Math.random().toString(36).slice(2);function zr(e){if(!e[Vr]){e[Vr]=!0,i.forEach(function(t){"selectionchange"!==t&&(Ar.has(t)||Er(t,!1,e),Er(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Vr]||(t[Vr]=!0,Er("selectionchange",!1,t))}}function Xr(e,t,n,r){switch(Jt(t)){case 1:var o=Bt;break;case 4:o=Rt;break;default:o=Qt}n=o.bind(null,t,n,e),o=void 0,!Ae||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Pr(e,t,n,r,o){var a=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===i)for(i=r.return;null!==i;){var s=i.tag;if((3===s||4===s)&&((s=i.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;i=i.return}for(;null!==l;){if(null===(i=go(l)))return;if(5===(s=i.tag)||6===s){r=a=i;continue e}l=l.parentNode}}r=r.return}ke(function(){var r=a,o=Ye(n),i=[];e:{var l=Nr.get(e);if(void 0!==l){var s=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":s=jn;break;case"focusin":c="focus",s=gn;break;case"focusout":c="blur",s=gn;break;case"beforeblur":case"afterblur":s=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=hn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Nn;break;case wr:case Sr:case jr:s=xn;break;case Tr:s=Wn;break;case"scroll":s=dn;break;case"wheel":s=In;break;case"copy":case"cut":case"paste":s=yn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Tn}var u=!!(4&t),p=!u&&"scroll"===e,d=u?null!==l?l+"Capture":null:l;u=[];for(var f,m=r;null!==m;){var h=(f=m).stateNode;if(5===f.tag&&null!==h&&(f=h,null!==d&&null!=(h=De(m,d))&&u.push(Zr(m,h,f))),p)break;m=m.return}0<u.length&&(l=new s(l,c,null,n,o),i.push({event:l,listeners:u}))}}if(!(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===be||!(c=n.relatedTarget||n.fromElement)||!go(c)&&!c[po])&&(s||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(c=(c=n.relatedTarget||n.toElement)?go(c):null)&&(c!==(p=Ze(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(s=null,c=r),s!==c)){if(u=mn,h="onMouseLeave",d="onMouseEnter",m="mou
2se","pointerout"!==e&&"pointerover"!==e||(u=Tn,h="onPointerLeave",d="onPointerEnter",m="pointer"),p=null==s?l:yo(s),f=null==c?l:yo(c),(l=new u(h,m+"leave",s,n,o)).target=p,l.relatedTarget=f,h=null,go(o)===r&&((u=new u(d,m+"enter",c,n,o)).target=f,u.relatedTarget=p,h=u),p=h,s&&c)e:{for(d=c,m=0,f=u=s;f;f=Fr(f))m++;for(f=0,h=d;h;h=Fr(h))f++;for(;0<m-f;)u=Fr(u),m--;for(;0<f-m;)d=Fr(d),f--;for(;m--;){if(u===d||null!==d&&u===d.alternate)break e;u=Fr(u),d=Fr(d)}u=null}else u=null;null!==s&&Br(i,l,s,u,!1),null!==c&&null!==p&&Br(i,p,c,u,!0)}if("select"===(s=(l=r?yo(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var g=Qn;else if(Pn(l))if(Hn)g=rr;else{g=tr;var x=er}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=nr);switch(g&&(g=g(e,r))?Zn(i,g,n,o):(x&&x(e,l,r),"focusout"===e&&(x=l._wrapperState)&&x.controlled&&"number"===l.type&&ee(l,"number",l.value)),x=r?yo(r):window,e){case"focusin":(Pn(x)||"true"===x.contentEditable)&&(fr=x,mr=r,hr=null);break;case"focusout":hr=mr=fr=null;break;case"mousedown":gr=!0;break;case"contextmenu":case"mouseup":case"dragend":gr=!1,xr(i,n,o);break;case"selectionchange":if(dr)break;case"keydown":case"keyup":xr(i,n,o)}var y;if(kn)e:{switch(e){case"compositionstart":var v="onCompositionStart";break e;case"compositionend":v="onCompositionEnd";break e;case"compositionupdate":v="onCompositionUpdate";break e}v=void 0}else zn?En(e,n)&&(v="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(v="onCompositionStart");v&&(Cn&&"ko"!==n.locale&&(zn||"onCompositionStart"!==v?"onCompositionEnd"===v&&zn&&(y=en()):(_t="value"in(qt=o)?qt.value:qt.textContent,zn=!0)),0<(x=Gr(r,v)).length&&(v=new vn(v,e,null,n,o),i.push({event:v,listeners:x}),(y||null!==(y=Vn(n)))&&(v.data=y))),(y=An?function(e,t){switch(e){case"compositionend":return Vn(t);case"keypress":return 32!==t.which?null:(On=!0,Ln);case"textInput":return(e=t.data)===Ln&&On?null:e;default:return null}}(e,n):function(e,t){if(zn)return"compositionend"===e||!kn&&En(e,t)?(e=en(),$t=_t=qt=null,zn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Cn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Gr(r,"onBeforeInput")).length&&(o=new vn("onBeforeInput","beforeinput",null,n,o),i.push({event:o,listeners:r}),o.data=y)}Lr(i,t)})}function Zr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Gr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=De(e,n))&&r.unshift(Zr(e,a,o)),null!=(a=De(e,t))&&r.push(Zr(e,a,o))),e=e.return}return r}function Fr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Br(e,t,n,r,o){for(var a=t._reactName,i=[];null!==n&&n!==r;){var l=n,s=l.alternate,c=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==c&&(l=c,o?null!=(s=De(n,a))&&i.unshift(Zr(n,s,l)):o||null!=(s=De(n,a))&&i.push(Zr(n,s,l))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Rr=/\r\n?/g,Qr=/\u0000|\uFFFD/g;function Hr(e){return("string"==typeof e?e:""+e).replace(Rr,"\n").replace(Qr,"")}function Kr(e,t,n){if(t=Hr(t),Hr(e)!==t&&n)throw Error(a(425))}function Jr(){}var qr=null,_r=null;function $r(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var eo="function"==typeof setTimeout?setTimeout:void 0,to="function"==typeof clearTimeout?clearTimeout:void 0,no="function"==typeof Promise?Promise:void 0,ro="function"==typeof queueMicrotask?queueMicrotask:void 0!==no?function(e){return no.resolve(null).then(e).catch(oo)}:eo;function oo(e){setTimeout(function(){throw e})}function ao(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Zt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Zt(t)}function io(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;
vendor: 4,229 bytes, line 2
2if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function lo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var so=Math.random().toString(36).slice(2),co="__reactFiber$"+so,uo="__reactProps$"+so,po="__reactContainer$"+so,fo="__reactEvents$"+so,mo="__reactListeners$"+so,ho="__reactHandles$"+so;function go(e){var t=e[co];if(t)return t;for(var n=e.parentNode;n;){if(t=n[po]||n[co]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=lo(e);null!==e;){if(n=e[co])return n;e=lo(e)}return t}n=(e=n).parentNode}return null}function xo(e){return!(e=e[co]||e[po])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function yo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function vo(e){return e[uo]||null}var bo=[],Yo=-1;function Mo(e){return{current:e}}function wo(e){0>Yo||(e.current=bo[Yo],bo[Yo]=null,Yo--)}function So(e,t){Yo++,bo[Yo]=e.current,e.current=t}var jo={},To=Mo(jo),No=Mo(!1),Wo=jo;function Io(e,t){var n=e.type.contextTypes;if(!n)return jo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Uo(e){return null!=e.childContextTypes}function ko(){wo(No),wo(To)}function Do(e,t,n){if(To.current!==jo)throw Error(a(168));So(To,t),So(No,n)}function Ao(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(a(108,G(e)||"Unknown",o));return E({},n,r)}function Co(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||jo,Wo=To.current,So(To,e),So(No,No.current),!0}function Lo(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Ao(e,t,Wo),r.__reactInternalMemoizedMergedChildContext=e,wo(No),wo(To),So(To,e)):wo(No),So(No,n)}var Oo=null,Eo=!1,Vo=!1;function zo(e){null===Oo?Oo=[e]:Oo.push(e)}function Xo(){if(!Vo&&null!==Oo){Vo=!0;var e=0,t=vt;try{var n=Oo;for(vt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Oo=null,Eo=!1}catch(t){throw null!==Oo&&(Oo=Oo.slice(e+1)),Qe($e,Xo),t}finally{vt=t,Vo=!1}}return null}var Po=[],Zo=0,Go=null,Fo=0,Bo=[],Ro=0,Qo=null,Ho=1,Ko="";function Jo(e,t){Po[Zo++]=Fo,Po[Zo++]=Go,Go=e,Fo=t}function qo(e,t,n){Bo[Ro++]=Ho,Bo[Ro++]=Ko,Bo[Ro++]=Qo,Qo=e;var r=Ho;e=Ko;var o=32-it(r)-1;r&=~(1<<o),n+=1;var a=32-it(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,Ho=1<<32-it(t)+o|n<<o|r,Ko=a+e}else Ho=1<<a|n<<o|r,Ko=e}function _o(e){null!==e.return&&(Jo(e,1),qo(e,1,0))}function $o(e){for(;e===Go;)Go=Po[--Zo],Po[Zo]=null,Fo=Po[--Zo],Po[Zo]=null;for(;e===Qo;)Qo=Bo[--Ro],Bo[Ro]=null,Ko=Bo[--Ro],Bo[Ro]=null,Ho=Bo[--Ro],Bo[Ro]=null}var ea=null,ta=null,na=!1,ra=null;function oa(e,t){var n=Wc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function aa(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ea=e,ta=io(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ea=e,ta=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Qo?{id:Ho,overflow:Ko}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Wc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ea=e,ta=null,!0);default:return!1}}function ia(e){return!(!(1&e.mode)||128&e.flags)}function la(e){if(na){var t=ta;if(t){var n=t;if(!aa(e,t)){if(ia(e))throw Error(a(418));t=io(n.nextSibling);var r=ea;t&&aa(e,t)?oa(r,n):(e.flags=-4097&e.flags|2,na=!1,ea=e)}}else{if(ia(e))throw Error(a(418));e.flags=-4097&e.flags|2,na=!1,ea=e}}}function sa(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ea=e}function ca(e){if(e!==ea)return!1;if(!na)return sa(e),na=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!$r(e.type,e.memoizedProps)),t&&(t=ta)){if
vendor: 4,512 bytes, line 2
2(ia(e))throw ua(),Error(a(418));for(;t;)oa(e,t),t=io(t.nextSibling)}if(sa(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ta=io(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ta=null}}else ta=ea?io(e.stateNode.nextSibling):null;return!0}function ua(){for(var e=ta;e;)e=io(e.nextSibling)}function pa(){ta=ea=null,na=!1}function da(e){null===ra?ra=[e]:ra.push(e)}var fa=b.ReactCurrentBatchConfig;function ma(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=r,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=o.refs;null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function ha(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ga(e){return(0,e._init)(e._payload)}function xa(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Uc(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Cc(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){var a=n.type;return a===w?p(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===D&&ga(a)===t.type)?((r=o(t,n.props)).ref=ma(e,t,n),r.return=e,r):((r=kc(n.type,n.key,n.props,null,e.mode,r)).ref=ma(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Lc(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function p(e,t,n,r,a){return null===t||7!==t.tag?((t=Dc(n,e.mode,r,a)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Cc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Y:return(n=kc(t.type,t.key,t.props,null,e.mode,n)).ref=ma(e,null,t),n.return=e,n;case M:return(t=Lc(t,e.mode,n)).return=e,t;case D:return d(e,(0,t._init)(t._payload),n)}if(te(t)||L(t))return(t=Dc(t,e.mode,n,null)).return=e,t;ha(e,t)}return null}function f(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Y:return n.key===o?c(e,t,n,r):null;case M:return n.key===o?u(e,t,n,r):null;case D:return f(e,t,(o=n._init)(n._payload),r)}if(te(n)||L(n))return null!==o?null:p(e,t,n,r,null);ha(e,n)}return null}function m(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Y:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case M:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case D:return m(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||L(r))return p(t,e=e.get(n)||null,r,o,null);ha(t,r)}return null}function h(o,a,l,s){for(var c=null,u=null,p=a,h=a=0,g=null;null!==p&&h<l.length;h++){p.index>h?(g=p,p=null):g=p.sibling;var x=f(o,p,l[h],s);if(null===x){null===p&&(p=g);break}e&&p&&null===x.alternate&&t(o,p),a=i(x,a,h),null===u?c=x:u.sibling=x,u=x,p=g}if(h===l.length)return n(o,p),na&&Jo(o,h),c;if(null===p){for(;h<l.length;h++)null!==(p=d(o,l[h],s))&&(a=i(p,a,h),null===u?c=p:u.sibling=p,u=p);return na&&Jo(o,h),c}for(p=r(o,p);h<l.length;h++)null!==(g=m(p,o,h,l[h],s))&&(e&&null!==g.alternate&&p.delete(null===g.key?h:g.key),a=i(g,a,h),null===u?c=g:u.sibling=g,u=g);return e&&p.forEach(function(e){return t(o,e)}),na&&Jo(o,h),c}function g(o,l,s,c){var u=L(s);if("function"!=typeof u)throw Error(a(150));if(null==(s=u.call(s)))throw Error(a(151));for(var p=u=null,h=l,g=l=0,x=null,y=s.next();null!==h&&!y.done;g++,y=s.next()){h.index>g?(x=h,h=null):x=h.sibling;var v=f(o,h,y.value,c);
vendor: 16,863 bytes, line 2
2if(null===v){null===h&&(h=x);break}e&&h&&null===v.alternate&&t(o,h),l=i(v,l,g),null===p?u=v:p.sibling=v,p=v,h=x}if(y.done)return n(o,h),na&&Jo(o,g),u;if(null===h){for(;!y.done;g++,y=s.next())null!==(y=d(o,y.value,c))&&(l=i(y,l,g),null===p?u=y:p.sibling=y,p=y);return na&&Jo(o,g),u}for(h=r(o,h);!y.done;g++,y=s.next())null!==(y=m(h,o,g,y.value,c))&&(e&&null!==y.alternate&&h.delete(null===y.key?g:y.key),l=i(y,l,g),null===p?u=y:p.sibling=y,p=y);return e&&h.forEach(function(e){return t(o,e)}),na&&Jo(o,g),u}return function e(r,a,i,s){if("object"==typeof i&&null!==i&&i.type===w&&null===i.key&&(i=i.props.children),"object"==typeof i&&null!==i){switch(i.$$typeof){case Y:e:{for(var c=i.key,u=a;null!==u;){if(u.key===c){if((c=i.type)===w){if(7===u.tag){n(r,u.sibling),(a=o(u,i.props.children)).return=r,r=a;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===D&&ga(c)===u.type){n(r,u.sibling),(a=o(u,i.props)).ref=ma(r,u,i),a.return=r,r=a;break e}n(r,u);break}t(r,u),u=u.sibling}i.type===w?((a=Dc(i.props.children,r.mode,s,i.key)).return=r,r=a):((s=kc(i.type,i.key,i.props,null,r.mode,s)).ref=ma(r,a,i),s.return=r,r=s)}return l(r);case M:e:{for(u=i.key;null!==a;){if(a.key===u){if(4===a.tag&&a.stateNode.containerInfo===i.containerInfo&&a.stateNode.implementation===i.implementation){n(r,a.sibling),(a=o(a,i.children||[])).return=r,r=a;break e}n(r,a);break}t(r,a),a=a.sibling}(a=Lc(i,r.mode,s)).return=r,r=a}return l(r);case D:return e(r,a,(u=i._init)(i._payload),s)}if(te(i))return h(r,a,i,s);if(L(i))return g(r,a,i,s);ha(r,i)}return"string"==typeof i&&""!==i||"number"==typeof i?(i=""+i,null!==a&&6===a.tag?(n(r,a.sibling),(a=o(a,i)).return=r,r=a):(n(r,a),(a=Cc(i,r.mode,s)).return=r,r=a),l(r)):n(r,a)}}var ya=xa(!0),va=xa(!1),ba=Mo(null),Ya=null,Ma=null,wa=null;function Sa(){wa=Ma=Ya=null}function ja(e){var t=ba.current;wo(ba),e._currentValue=t}function Ta(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Na(e,t){Ya=e,wa=Ma=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(gl=!0),e.firstContext=null)}function Wa(e){var t=e._currentValue;if(wa!==e)if(e={context:e,memoizedValue:t,next:null},null===Ma){if(null===Ya)throw Error(a(308));Ma=e,Ya.dependencies={lanes:0,firstContext:e}}else Ma=Ma.next=e;return t}var Ia=null;function Ua(e){null===Ia?Ia=[e]:Ia.push(e)}function ka(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ua(t)):(n.next=o.next,o.next=n),t.interleaved=n,Da(e,r)}function Da(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Aa=!1;function Ca(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function La(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Oa(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ea(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&js){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Da(e,n)}return null===(o=r.interleaved)?(t.next=t,Ua(r)):(t.next=o.next,o.next=t),r.interleaved=t,Da(e,n)}function Va(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function za(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?o=a=i:a=a.next=i,n=n.next}while(null!==n);null===a?o=a=t:a=a.next=t}else o=a=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Xa(e,t,n,r){var o=e.updateQueue;Aa=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,c=s.next;s.next=null,null===i?a=c:i.next=c,i=s;var u=e.alternate;null!==u&&(l=(u=u.updateQueue).lastBaseUpdate)!==i&&(null===l?u.firstBaseUpdate=c:l.next=c,u.lastBaseUpdate=s)}if(null!==a){var p=o.baseState;for(i=0,u=c=s=null,l=a;;){var d=l.lane,f=l.eventTime;if((r&d)===d){null!==u&&(u=u.next={eventTime:f,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var m=e,h=l;switch(d=t,f=n,h.tag){case 1:if("function"==typeof(m=h.payload)){p=m.call(f,p,d);break e}p=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(d="function"==typeof(m=h.payload)?m.call(f,p,d):m))break e;p=E({},p,d);break e;case 2:Aa=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(d=o.effects)?o.effects=[l]:d.push(l))}else f={eventTime:f,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===u?(c=u=f,s=p):u=u.next=f,i|=d;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(d=l).next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}if(null===u&&(s=p),o.baseState=s,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{i|=o.lane,o=o.next}while(o!==t)}else null===a&&(o.shared.lanes=0);As|=i,e.lanes=i,e.memoizedState=p}}function Pa(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(a(191,o));o.call(r)}}}var Za={},Ga=Mo(Za),Fa=Mo(Za),Ba=Mo(Za);function Ra(e){if(e===Za)throw Error(a(174));return e}function Qa(e,t){switch(So(Ba,t),So(Fa,e),So(Ga,Za),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:se(null,"");break;default:t=se(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}wo(Ga),So(Ga,t)}function Ha(){wo(Ga),wo(Fa),wo(Ba)}function Ka(e){Ra(Ba.current);var t=Ra(Ga.current),n=se(t,e.type);t!==n&&(So(Fa,e),So(Ga,n))}function Ja(e){Fa.current===e&&(wo(Ga),wo(Fa))}var qa=Mo(0);function _a(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var $a=[];function ei(){for(var e=0;e<$a.length;e++)$a[e]._workInProgressVersionPrimary=null;$a.length=0}var ti=b.ReactCurrentDispatcher,ni=b.ReactCurrentBatchConfig,ri=0,oi=null,ai=null,ii=null,li=!1,si=!1,ci=0,ui=0;function pi(){throw Error(a(321))}function di(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!or(e[n],t[n]))return!1;return!0}function fi(e,t,n,r,o,i){if(ri=i,oi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ti.current=null===e||null===e.memoizedState?Ji:qi,e=n(r,o),si){i=0;do{if(si=!1,ci=0,25<=i)throw Error(a(301));i+=1,ii=ai=null,t.updateQueue=null,ti.current=_i,e=n(r,o)}while(si)}if(ti.current=Ki,t=null!==ai&&null!==ai.next,ri=0,ii=ai=oi=null,li=!1,t)throw Error(a(300));return e}function mi(){var e=0!==ci;return ci=0,e}function hi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ii?oi.memoizedState=ii=e:ii=ii.next=e,ii}function gi(){if(null===ai){var e=oi.alternate;e=null!==e?e.memoizedState:null}else e=ai.next;var t=null===ii?oi.memoizedState:ii.next;if(null!==t)ii=t,ai=e;else{if(null===e)throw Error(a(310));e={memoizedState:(ai=e).memoizedState,baseState:ai.baseState,baseQueue:ai.baseQueue,queue:ai.queue,next:null},null===ii?oi.memoizedState=ii=e:ii=ii.next=e}return ii}function xi(e,t){return"function"==typeof t?t(e):t}function yi(e){var t=gi(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=ai,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var l=o.next;o.next=i.next,i.next=l}r.baseQueue=o=i,n.pending=null}if(null!==o){i=o.next,r=r.baseState;var s=l=null,c=null,u=i;do{var p=u.lane;if((ri&p)===p)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:p,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(s=c=d,l=r):c=c.next=d,oi.lanes|=p,As|=p}u=u.next}while(null!==u&&u!==i);null===c?l=r:c.next=s,or(r,t.memoizedState)||(gl=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,oi.lanes|=i,As|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function vi(e){var t=gi(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var l=o=o.next;do{i=e(i,l.action),l=l.next}while(l!==o);or(i,t.memoizedState)||(gl=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function bi(){}function Yi(e,t){var n=oi,r=gi(),o=t(),i=!or(r.memoizedState,o);if(i&&(r.memoizedState=o,gl=!0),r=r.queue,Ai(Si.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==ii&&1&ii.memoizedState.tag){if(n.flags|=2048,Wi(9,wi.bind(null,n,r,o,t),void 0,null),null===Ts)throw Error(a(349));30&ri||Mi(n,t,o)}return o}function Mi(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=oi.updateQueue)?(t={lastEffect:null,stores:null},oi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function wi(e,t,n,r){t.value=n,t.getSnapshot=r,ji(t)&&Ti(e)}function Si(e,t,n){return n(function(){ji(t)&&Ti(e)})}function ji(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!or(e,n)}catch(e){return!0}}function Ti(e){var t=Da(e,1);null!==t&&$s(t,e,1,-1)}function Ni(e){var t=hi();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:xi,lastRenderedState:e},t.queue=e,e=e.dispatch=Bi.bind(null,oi,e),[t.memoizedState,e]}function Wi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=oi.updateQueue)?(t={lastEffect:null,stores:null},oi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ii(){return gi().memoizedState}function Ui(e,t,n,r){var o=hi();oi.flags|=e,o.memoizedState=Wi(1|t,n,void 0,void 0===r?null:r)}function ki(e,t,n,r){var o=gi();r=void 0===r?null:r;var a=void 0;if(null!==ai){var i=ai.memoizedState;if(a=i.destroy,null!==r&&di(r,i.deps))return void(o.memoizedState=Wi(t,n,a,r))}oi.flags|=e,o.memoizedState=Wi(1|t,n,a,r)}function Di(e,t){return Ui(8390656,8,e,t)}function Ai(e,t){return ki(2048,8,e,t)}function Ci(e,t){return ki(4,2,e,t)}function Li(e,t){return ki(4,4,e,t)}function Oi(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ei(e,t,n){return n=null!=n?n.concat([e]):null,ki(4,4,Oi.bind(null,t,e),n)}function Vi(){}function zi(e,t){var n=gi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&di(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Xi(e,t){var n=gi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&di(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Pi(e,t,n){return 21&ri?(or(n,t)||(n=ht(),oi.lanes|=n,As|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,gl=!0),e.memoizedState=n)}function Zi(e,t){var n=vt;vt=0!==n&&4>n?n:4,e(!0);var r=ni.transition;ni.transition={};try{e(!1),t()}finally{vt=n,ni.transition=r}}function Gi(){return gi().memoizedState}function Fi(e,t,n){var r=_s(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ri(e)?Qi(t,n):null!==(n=ka(e,t,n,r))&&($s(n,e,r,qs()),Hi(n,t,r))}function Bi(e,t,n){var r=_s(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ri(e))Qi(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,l=a(i,n);if(o.hasEagerState=!0,o.eagerState=l,or(l,i)){var s=t.interleaved;return null===s?(o.next=o,Ua(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=ka(e,t,o,r))&&($s(n,e,r,o=qs()),Hi(n,t,r))}}function Ri(e){var t=e.alternate;return e===oi||null!==t&&t===oi}function Qi(e,t){si=li=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Hi(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var Ki={readContext:Wa,useCallback:pi,useContext:pi,useEffect:pi,useImperativeHandle:pi,useInsertionEffect:pi,useLayoutEffect:pi,useMemo:pi,useReducer:pi,useRef:pi,useState:pi,useDebugValue:pi,useDeferredValue:pi,useTransition:pi,useMutableSource:pi,useSyncExternalStore:pi,useId:pi,unstable_isNewReconciler:!1},Ji={readContext:Wa,useCallback:function(e,t){return hi().memoizedState=[e,void 0===t?null:t],e},useContext:Wa,useEffect:Di,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ui(4194308,4,Oi.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ui(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ui(4,2,e,t)},useMemo:function(e,t){var n=hi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=hi();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Fi.bind(null,oi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},hi().memoizedState=e},useState:Ni,useDebugValue:Vi,useDeferredValue:function(e){return hi().memoizedState=e},useTransition:function(){var e=Ni(!1),t=e[0];return e=Zi.bind(null,e[1]),hi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=oi,o=hi();if(na){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===Ts)throw Error(a(349));30&ri||Mi(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Di(Si.bind(null,r,i,e),[e]),r.flags|=2048,Wi(9,wi.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=hi(),t=Ts.identifierPrefix;if(na){var n=Ko;t=":"+t+"R"+(n=(Ho&~(1<<32-it(Ho)-1)).toString(32)+n),0<(n=ci++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ui++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},qi={readContext:Wa,useCallback:zi,useContext:Wa,useEffect:Ai,useImperativeHandle:Ei,useInsertionEffect:Ci,useLayoutEffect:Li,useMemo:Xi,useReducer:yi,useRef:Ii,useState:function(){return yi(xi)},useDebugValue:Vi,useDeferredValue:function(e){return Pi(gi(),ai.memoizedState,e)},useTransition:function(){return[yi(xi)[0],gi().memoizedState]},useMutableSource:bi,useSyncExternalStore:Yi,useId:Gi,unstable_isNewReconciler:!1},_i={readContext:Wa,useCallback:zi,useContext:Wa,useEffect:Ai,useImperativeHandle:Ei,useInsertionEffect:Ci,useLayoutEffect:Li,useMemo:Xi,useReducer:vi,useRef:Ii,useState:function(){return vi(xi)},useDebugValue:Vi,useDeferredValue:function(e){var t=gi();return null===ai?t.memoizedState=e:Pi(t,ai.memoizedState,e)},useTransition:function(){return[vi(xi)[0],gi().memoizedState]},useMutableSource:bi,useSyncExternalStore:Yi,useId:Gi,unstable_isNewReconciler:!1};function $i(e,t){if(e&&e.defaultProps){for(var n in t=E({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function el(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:E({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var tl={isMounted:function(e){return!!(e=e._reactInternals)&&Ze(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=qs(),o=_s(e),a=Oa(r,o);a.payload=t,null!=n&&(a.callback=n),null!==(t=Ea(e,a,o))&&($s(t,e,o,r),Va(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=qs(),o=_s(e),a=Oa(r,o);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=Ea(e,a,o))&&($s(t,e,o,r),Va(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=qs(),r=_s(e),o=Oa(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Ea(e,o,r))&&($s(t,e,r,n),Va(t,e,r))}};function nl(e,t,n,r,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!(t.prototype&&t.prototype.isPureReactComponent&&ar(n,r)&&ar(o,a))}function rl(e,t,n){var r=!1,o=jo,a=t.contextType;return"object"==typeof a&&null!==a?a=Wa(a):(o=Uo(t)?Wo:To.current,a=(r=null!=(r=t.contextTypes))?Io(e,o):jo),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=tl,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a
vendor: 4,248 bytes, line 2
2),t}function ol(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&tl.enqueueReplaceState(t,t.state,null)}function al(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Ca(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=Wa(a):(a=Uo(t)?Wo:To.current,o.context=Io(e,a)),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(el(e,t,a,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&tl.enqueueReplaceState(o,o.state,null),Xa(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function il(e,t){try{var n="",r=t;do{n+=P(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function ll(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function sl(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var cl="function"==typeof WeakMap?WeakMap:Map;function ul(e,t,n){(n=Oa(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ps||(Ps=!0,Zs=r),sl(0,t)},n}function pl(e,t,n){(n=Oa(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){sl(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){sl(0,t),"function"!=typeof r&&(null===Gs?Gs=new Set([this]):Gs.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function dl(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new cl;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Mc.bind(null,e,t,n),t.then(e,e))}function fl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ml(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Oa(-1,1)).tag=2,Ea(n,t,1))),n.lanes|=1),e)}var hl=b.ReactCurrentOwner,gl=!1;function xl(e,t,n,r){t.child=null===e?va(t,null,n,r):ya(t,e.child,n,r)}function yl(e,t,n,r,o){n=n.render;var a=t.ref;return Na(t,o),r=fi(e,t,n,r,a,o),n=mi(),null===e||gl?(na&&n&&_o(t),t.flags|=1,xl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Pl(e,t,o))}function vl(e,t,n,r,o){if(null===e){var a=n.type;return"function"!=typeof a||Ic(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=kc(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,bl(e,t,a,r,o))}if(a=e.child,0===(e.lanes&o)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:ar)(i,r)&&e.ref===t.ref)return Pl(e,t,o)}return t.flags|=1,(e=Uc(a,r)).ref=t.ref,e.return=t,t.child=e}function bl(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(ar(a,r)&&e.ref===t.ref){if(gl=!1,t.pendingProps=r=a,0===(e.lanes&o))return t.lanes=e.lanes,Pl(e,t,o);131072&e.flags&&(gl=!0)}}return wl(e,t,n,r,o)}function Yl(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,So(Us,Is),Is|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,So(Us,Is),Is|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},So(Us,Is),Is|=n;else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,So(Us,Is),Is|=r;return xl(e,t,o,n),t.child}function Ml(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}
vendor: 9,150 bytes, line 2
2function wl(e,t,n,r,o){var a=Uo(n)?Wo:To.current;return a=Io(t,a),Na(t,o),n=fi(e,t,n,r,a,o),r=mi(),null===e||gl?(na&&r&&_o(t),t.flags|=1,xl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Pl(e,t,o))}function Sl(e,t,n,r,o){if(Uo(n)){var a=!0;Co(t)}else a=!1;if(Na(t,o),null===t.stateNode)Xl(e,t),rl(t,n,r),al(t,n,r,o),r=!0;else if(null===e){var i=t.stateNode,l=t.memoizedProps;i.props=l;var s=i.context,c=n.contextType;c="object"==typeof c&&null!==c?Wa(c):Io(t,c=Uo(n)?Wo:To.current);var u=n.getDerivedStateFromProps,p="function"==typeof u||"function"==typeof i.getSnapshotBeforeUpdate;p||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==r||s!==c)&&ol(t,i,r,c),Aa=!1;var d=t.memoizedState;i.state=d,Xa(t,r,i,o),s=t.memoizedState,l!==r||d!==s||No.current||Aa?("function"==typeof u&&(el(t,n,u,r),s=t.memoizedState),(l=Aa||nl(t,n,l,r,d,s,c))?(p||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),i.props=r,i.state=s,i.context=c,r=l):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,La(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:$i(t.type,l),i.props=c,p=t.pendingProps,d=i.context,s="object"==typeof(s=n.contextType)&&null!==s?Wa(s):Io(t,s=Uo(n)?Wo:To.current);var f=n.getDerivedStateFromProps;(u="function"==typeof f||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==p||d!==s)&&ol(t,i,r,s),Aa=!1,d=t.memoizedState,i.state=d,Xa(t,r,i,o);var m=t.memoizedState;l!==p||d!==m||No.current||Aa?("function"==typeof f&&(el(t,n,f,r),m=t.memoizedState),(c=Aa||nl(t,n,c,r,d,m,s)||!1)?(u||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,m,s),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,m,s)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),i.props=r,i.state=m,i.context=s,r=c):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return jl(e,t,n,r,a,o)}function jl(e,t,n,r,o,a){Ml(e,t);var i=!!(128&t.flags);if(!r&&!i)return o&&Lo(t,n,!1),Pl(e,t,a);r=t.stateNode,hl.current=t;var l=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=ya(t,e.child,null,a),t.child=ya(t,null,l,a)):xl(e,t,l,a),t.memoizedState=r.state,o&&Lo(t,n,!0),t.child}function Tl(e){var t=e.stateNode;t.pendingContext?Do(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Do(0,t.context,!1),Qa(e,t.containerInfo)}function Nl(e,t,n,r,o){return pa(),da(o),t.flags|=256,xl(e,t,n,r),t.child}var Wl,Il,Ul,kl,Dl={dehydrated:null,treeContext:null,retryLane:0};function Al(e){return{baseLanes:e,cachePool:null,transitions:null}}function Cl(e,t,n){var r,o=t.pendingProps,i=qa.current,l=!1,s=!!(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&!!(2&i)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),So(qa,1&i),null===e)return la(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=o.children,e=o.fallback,l?(o=t.mode,l=t.child,s={mode:"hidden",children:s},1&o||null===l?l=Ac(s,o,0,null):(l.childLanes=0,l.pendingProps=s),e=Dc(e,o,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Al(n),t.memoizedState=Dl,e):Ll(t,s));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,o,i,l){if(n)return 256&t.flags?(t.flags&=-257,Ol(e,t,l,r=ll(Error(a(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Ac({mode:"visible",children:r.children},o,0,null),(i=Dc(i,o,l,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,1&t.mode&&ya(t,e.child,null,l),t.child.memoizedState=Al(l),t.memoizedState=Dl,i);if(!(1&t.mode))return Ol(e,t,l,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var s=r.dgst;return r=s,Ol(e,t,l,r=ll(i=Error(a(419)),r,void 0))}if(s=0!==(l&e.childLanes),gl||s){if(null!==(r=Ts)){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!==(o&(r.suspendedLanes|l))?0:o)&&o!==i.retryLane&&(i.retryLane=o,Da(e,o),$s(r,e,o,-1))}return dc(),Ol(e,t,l,r=ll(Error(a(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Sc.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,ta=io(o.nextSibling),ea=t,na=!0,ra=null,null!==e&&(Bo[Ro++]=Ho,Bo[Ro++]=Ko,Bo[Ro++]=Qo,Ho=e.id,Ko=e.overflow,Qo=t),(t=Ll(t,r.children)).flags|=4096,t)}(e,t,s,o,r,i,n);if(l){l=o.fallback,s=t.mode,r=(i=e.child).sibling;var c={mode:"hidden",children:o.children};return 1&s||t.child===i?(o=Uc(i,c)).subtreeFlags=14680064&i.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=c,t.deletions=null),null!==r?l=Uc(r,l):(l=Dc(l,s,n,null)).flags|=2,l.return=t,o.return=t,o.sibling=l,t.child=o,o=l,l=t.child,s=null===(s=e.child.memoizedState)?Al(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~n,t.memoizedState=Dl,o}return e=(l=e.child).sibling,o=Uc(l,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Ll(e,t){return(t=Ac({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ol(e,t,n,r){return null!==r&&da(r),ya(t,e.child,null,n),(e=Ll(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function El(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ta(e.return,t,n)}function Vl(e,t,n,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function zl(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(xl(e,t,r.children,n),2&(r=qa.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&El(e,n,t);else if(19===e.tag)El(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(So(qa,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===_a(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Vl(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===_a(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Vl(t,!0,n,null,a);break;case"together":Vl(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Xl(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Pl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),As|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Uc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Uc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Zl(e,t){if(!na)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Gl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Fl(e,t,n){var r=t.pendingProps;switch($o(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gl
vendor: 1,435 bytes, line 2
2(t),null;case 1:case 17:return Uo(t.type)&&ko(),Gl(t),null;case 3:return r=t.stateNode,Ha(),wo(No),wo(To),ei(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(ca(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ra&&(rc(ra),ra=null))),Il(e,t),Gl(t),null;case 5:Ja(t);var o=Ra(Ba.current);if(n=t.type,null!==e&&null!=t.stateNode)Ul(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(a(166));return Gl(t),null}if(e=Ra(Ga.current),ca(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[co]=t,r[uo]=i,e=!!(1&t.mode),n){case"dialog":Or("cancel",r),Or("close",r);break;case"iframe":case"object":case"embed":Or("load",r);break;case"video":case"audio":for(o=0;o<Dr.length;o++)Or(Dr[o],r);break;case"source":Or("error",r);break;case"img":case"image":case"link":Or("error",r),Or("load",r);break;case"details":Or("toggle",r);break;case"input":J(r,i),Or("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Or("invalid",r);break;case"textarea":oe(r,i),Or("invalid",r)}for(var s in ye(n,i),o=null,i)if(i.hasOwnProperty(s)){var c=i[s];"children"===s?"string"==typeof c?r.textContent!==c&&(!0!==i.suppressHydrationWarning&&Kr(r.textContent,c,e),o=["children",c]):"number"==typeof c&&r.textContent!==""+c&&(!0!==i.suppressHydrationWarning&&Kr(r.textContent,c,e),o=["children",""+c
vendor: 9,710 bytes, line 2
2]):l.hasOwnProperty(s)&&null!=c&&"onScroll"===s&&Or("scroll",r)}switch(n){case"input":R(r),$(r,i,!0);break;case"textarea":R(r),ie(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=Jr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{s=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=le(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[co]=t,e[uo]=r,Wl(e,t,!1,!1),t.stateNode=e;e:{switch(s=ve(n,r),n){case"dialog":Or("cancel",e),Or("close",e),o=r;break;case"iframe":case"object":case"embed":Or("load",e),o=r;break;case"video":case"audio":for(o=0;o<Dr.length;o++)Or(Dr[o],e);o=r;break;case"source":Or("error",e),o=r;break;case"img":case"image":case"link":Or("error",e),Or("load",e),o=r;break;case"details":Or("toggle",e),o=r;break;case"input":J(e,r),o=K(e,r),Or("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=E({},r,{value:void 0}),Or("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Or("invalid",e)}for(i in ye(n,o),c=o)if(c.hasOwnProperty(i)){var u=c[i];"style"===i?ge(e,u):"dangerouslySetInnerHTML"===i?null!=(u=u?u.__html:void 0)&&pe(e,u):"children"===i?"string"==typeof u?("textarea"!==n||""!==u)&&de(e,u):"number"==typeof u&&de(e,""+u):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(l.hasOwnProperty(i)?null!=u&&"onScroll"===i&&Or("scroll",e):null!=u&&v(e,i,u,s))}switch(n){case"input":R(e),$(e,r,!1);break;case"textarea":R(e),ie(e);break;case"option":null!=r.value&&e.setAttribute("value",""+F(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?ne(e,!!r.multiple,i,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Gl(t),null;case 6:if(e&&null!=t.stateNode)kl(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));if(n=Ra(Ba.current),Ra(Ga.current),ca(t)){if(r=t.stateNode,n=t.memoizedProps,r[co]=t,(i=r.nodeValue!==n)&&null!==(e=ea))switch(e.tag){case 3:Kr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Kr(r.nodeValue,n,!!(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[co]=t,t.stateNode=r}return Gl(t),null;case 13:if(wo(qa),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(na&&null!==ta&&1&t.mode&&!(128&t.flags))ua(),pa(),t.flags|=98560,i=!1;else if(i=ca(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(a(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(a(317));i[co]=t}else pa(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Gl(t),i=!1}else null!==ra&&(rc(ra),ra=null),i=!0;if(!i)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&qa.current?0===ks&&(ks=3):dc())),null!==t.updateQueue&&(t.flags|=4),Gl(t),null);case 4:return Ha(),Il(e,t),null===e&&zr(t.stateNode.containerInfo),Gl(t),null;case 10:return ja(t.type._context),Gl(t),null;case 19:if(wo(qa),null===(i=t.memoizedState))return Gl(t),null;if(r=!!(128&t.flags),null===(s=i.rendering))if(r)Zl(i,!1);else{if(0!==ks||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(s=_a(e))){for(t.flags|=128,Zl(i,!1),null!==(r=s.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(s=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return So(qa,1&qa.current|2),t.child}e=e.sibling}null!==i.tail&&qe()>zs&&(t.flags|=128,r=!0,Zl(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=_a(s))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Zl(i,!0),null===i.tail&&"hidden"===i.tailMode&&!s.alternate&&!na)return Gl(t),null}else 2*qe()-i.renderingStartTime>zs&&1073741824!==n&&(t.flags|=128,r=!0,Zl(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=i.last)?n.sibling=s:t.child=s,i.last=s)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=qe(),t.sibling=null,n=qa.current,So(qa,r?1&n|2:1&n),t):(Gl(t),null);case 22:case 23:return sc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Is)&&(Gl(t),6&t.subtreeFlags&&(t.flags|=8192)):Gl(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function Bl(e,t){switch($o(t),t.tag){case 1:return Uo(t.type)&&ko(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Ha(),wo(No),wo(To),ei(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Ja(t),null;case 13:if(wo(qa),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));pa()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return wo(qa),null;case 4:return Ha(),null;case 10:return ja(t.type._context),null;case 22:case 23:return sc(),null;default:return null}}Wl=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Il=function(){},Ul=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Ra(Ga.current);var a,i=null;switch(n){case"input":o=K(e,o),r=K(e,r),i=[];break;case"select":o=E({},o,{value:void 0}),r=E({},r,{value:void 0}),i=[];break;case"textarea":o=re(e,o),r=re(e,r),i=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Jr)}for(u in ye(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var s=o[u];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(l.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var c=r[u];if(s=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&c!==s&&(null!=c||null!=s))if("style"===u)if(s){for(a in s)!s.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&s[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(i||(i=[]),i.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,s=s?s.__html:void 0,null!=c&&s!==c&&(i=i||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(i=i||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(l.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Or("scroll",e),i||s===c||(i=[])):(i=i||[]).push(u,c))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}},kl=function(e,t,n,r){n!==r&&(t.flags|=4)};var Rl=!1,Ql=!1,Hl="function"==typeof WeakSet?WeakSet:Set,Kl=null;function Jl(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Yc(e,t,n)}else n.current=null}function ql(e,t,n){try{n()}catch(n){Yc(e,t,n)}}var _l=!1;function $l(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,void 0!==a&&ql(t,n,a)}o=o.next}while(o!==r)}}function es(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ts(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function ns(e){var t=e.alternate;null!==t&&(e.alternate=null,ns(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[co],delete t[uo],delete t[fo],delete t[mo],delete t[ho]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function rs(e){return 5===e.tag||3===e.tag||4===e.tag}function os(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||rs(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function as(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(as(e,t,n),e=e.sibling;null!==e;)as(e,t,n),e=e.sibling}function is(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(is(e,t,n),e=e.sibling;null!==e;)is(e,t,n),e=e.sibling}var ls=null,ss=!1;function cs(e,t,n){for(n=n.child;null!==n;)us(e,t,n),n=n.sibling}
vendor: 18,751 bytes, line 2
2function us(e,t,n){if(at&&"function"==typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Ql||Jl(n,t);case 6:var r=ls,o=ss;ls=null,cs(e,t,n),ss=o,null!==(ls=r)&&(ss?(e=ls,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ls.removeChild(n.stateNode));break;case 18:null!==ls&&(ss?(e=ls,n=n.stateNode,8===e.nodeType?ao(e.parentNode,n):1===e.nodeType&&ao(e,n),Zt(e)):ao(ls,n.stateNode));break;case 4:r=ls,o=ss,ls=n.stateNode.containerInfo,ss=!0,cs(e,t,n),ls=r,ss=o;break;case 0:case 11:case 14:case 15:if(!Ql&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(2&a||4&a)&&ql(n,t,i),o=o.next}while(o!==r)}cs(e,t,n);break;case 1:if(!Ql&&(Jl(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Yc(n,t,e)}cs(e,t,n);break;case 21:cs(e,t,n);break;case 22:1&n.mode?(Ql=(r=Ql)||null!==n.memoizedState,cs(e,t,n),Ql=r):cs(e,t,n);break;default:cs(e,t,n)}}function ps(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Hl),t.forEach(function(t){var r=jc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function ds(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,l=t,s=l;e:for(;null!==s;){switch(s.tag){case 5:ls=s.stateNode,ss=!1;break e;case 3:case 4:ls=s.stateNode.containerInfo,ss=!0;break e}s=s.return}if(null===ls)throw Error(a(160));us(i,l,o),ls=null,ss=!1;var c=o.alternate;null!==c&&(c.return=null),o.return=null}catch(e){Yc(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)fs(t,e),t=t.sibling}function fs(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ds(t,e),ms(e),4&r){try{$l(3,e,e.return),es(3,e)}catch(t){Yc(e,e.return,t)}try{$l(5,e,e.return)}catch(t){Yc(e,e.return,t)}}break;case 1:ds(t,e),ms(e),512&r&&null!==n&&Jl(n,n.return);break;case 5:if(ds(t,e),ms(e),512&r&&null!==n&&Jl(n,n.return),32&e.flags){var o=e.stateNode;try{de(o,"")}catch(t){Yc(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var i=e.memoizedProps,l=null!==n?n.memoizedProps:i,s=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===s&&"radio"===i.type&&null!=i.name&&q(o,i),ve(s,l);var u=ve(s,i);for(l=0;l<c.length;l+=2){var p=c[l],d=c[l+1];"style"===p?ge(o,d):"dangerouslySetInnerHTML"===p?pe(o,d):"children"===p?de(o,d):v(o,p,d,u)}switch(s){case"input":_(o,i);break;case"textarea":ae(o,i);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var m=i.value;null!=m?ne(o,!!i.multiple,m,!1):f!==!!i.multiple&&(null!=i.defaultValue?ne(o,!!i.multiple,i.defaultValue,!0):ne(o,!!i.multiple,i.multiple?[]:"",!1))}o[uo]=i}catch(t){Yc(e,e.return,t)}}break;case 6:if(ds(t,e),ms(e),4&r){if(null===e.stateNode)throw Error(a(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(t){Yc(e,e.return,t)}}break;case 3:if(ds(t,e),ms(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Zt(t.containerInfo)}catch(t){Yc(e,e.return,t)}break;case 4:default:ds(t,e),ms(e);break;case 13:ds(t,e),ms(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(Vs=qe())),4&r&&ps(e);break;case 22:if(p=null!==n&&null!==n.memoizedState,1&e.mode?(Ql=(u=Ql)||p,ds(t,e),Ql=u):ds(t,e),ms(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!p&&1&e.mode)for(Kl=e,p=e.child;null!==p;){for(d=Kl=p;null!==Kl;){switch(m=(f=Kl).child,f.tag){case 0:case 11:case 14:case 15:$l(4,f,f.return);break;case 1:Jl(f,f.return);var h=f.stateNode;if("function"==typeof h.componentWillUnmount){r=f,n=f.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){Yc(r,n,e)}}break;case 5:Jl(f,f.return);break;case 22:if(null!==f.memoizedState){ys(d);continue}}null!==m?(m.return=f,Kl=m):ys(d)}p=p.sibling}e:for(p=null,d=e;;){if(5===d.tag){if(null===p){p=d;try{o=d.stateNode,u?"function"==typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(s=d.stateNode,l=null!=(c=d.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,s.style.display=he("display",l))}catch(t){Yc(e,e.return,t)}}}else if(6===d.tag){if(null===p)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(t){Yc(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;p===d&&(p=null),d=d.return}p===d&&(p=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:ds(t,e),ms(e),4&r&&ps(e);case 21:}}function ms(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(rs(n)){var r=n;break e}n=n.return}throw Error(a(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(de(o,""),r.flags&=-33),is(e,os(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;as(e,os(e),i);break;default:throw Error(a(161))}}catch(t){Yc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function hs(e,t,n){Kl=e,gs(e,t,n)}function gs(e,t,n){for(var r=!!(1&e.mode);null!==Kl;){var o=Kl,a=o.child;if(22===o.tag&&r){var i=null!==o.memoizedState||Rl;if(!i){var l=o.alternate,s=null!==l&&null!==l.memoizedState||Ql;l=Rl;var c=Ql;if(Rl=i,(Ql=s)&&!c)for(Kl=o;null!==Kl;)s=(i=Kl).child,22===i.tag&&null!==i.memoizedState?vs(o):null!==s?(s.return=i,Kl=s):vs(o);for(;null!==a;)Kl=a,gs(a,t,n),a=a.sibling;Kl=o,Rl=l,Ql=c}xs(e)}else 8772&o.subtreeFlags&&null!==a?(a.return=o,Kl=a):xs(e)}}function xs(e){for(;null!==Kl;){var t=Kl;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Ql||es(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ql)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:$i(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Pa(t,i,r);break;case 3:var l=t.updateQueue;if(null!==l){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Pa(t,l,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var p=u.memoizedState;if(null!==p){var d=p.dehydrated;null!==d&&Zt(d)}}}break;default:throw Error(a(163))}Ql||512&t.flags&&ts(t)}catch(e){Yc(t,t.return,e)}}if(t===e){Kl=null;break}if(null!==(n=t.sibling)){n.return=t.return,Kl=n;break}Kl=t.return}}function ys(e){for(;null!==Kl;){var t=Kl;if(t===e){Kl=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Kl=n;break}Kl=t.return}}function vs(e){for(;null!==Kl;){var t=Kl;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{es(4,t)}catch(e){Yc(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Yc(t,o,e)}}var a=t.return;try{ts(t)}catch(e){Yc(t,a,e)}break;case 5:var i=t.return;try{ts(t)}catch(e){Yc(t,i,e)}}}catch(e){Yc(t,t.return,e)}if(t===e){Kl=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Kl=l;break}Kl=t.return}}var bs,Ys=Math.ceil,Ms=b.ReactCurrentDispatcher,ws=b.ReactCurrentOwner,Ss=b.ReactCurrentBatchConfig,js=0,Ts=null,Ns=null,Ws=0,Is=0,Us=Mo(0),ks=0,Ds=null,As=0,Cs=0,Ls=0,Os=null,Es=null,Vs=0,zs=1/0,Xs=null,Ps=!1,Zs=null,Gs=null,Fs=!1,Bs=null,Rs=0,Qs=0,Hs=null,Ks=-1,Js=0;function qs(){return 6&js?qe():-1!==Ks?Ks:Ks=qe()}function _s(e){return 1&e.mode?2&js&&0!==Ws?Ws&-Ws:null!==fa.transition?(0===Js&&(Js=ht()),Js):0!==(e=vt)?e:e=void 0===(e=window.event)?16:Jt(e.type):1}function $s(e,t,n,r){if(50<Qs)throw Qs=0,Hs=null,Error(a(185));xt(e,n,r),2&js&&e===Ts||(e===Ts&&(!(2&js)&&(Cs|=n),4===ks&&oc(e,Ws)),ec(e,r),1===n&&0===js&&!(1&t.mode)&&(zs=qe()+500,Eo&&Xo()))}function ec(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-it(a),l=1<<i,s=o[i];-1===s?0!==(l&n)&&0===(l&r)||(o[i]=ft(l,t)):s<=t&&(e.expiredLanes|=l),a&=~l}}(e,t);var r=dt(e,e===Ts?Ws:0);if(0===r)null!==n&&He(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&He(n),1===t)0===e.tag?function(e){Eo=!0,zo(e)}(ac.bind(null,e)):zo(ac.bind(null,e)),ro(function(){!(6&js)&&Xo()}),n=null;else{switch(bt(r)){case 1:n=$e;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Tc(n,tc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function tc(e,t){if(Ks=-1,Js=0,6&js)throw Error(a(327));var n=e.callbackNode;if(vc()&&e.callbackNode!==n)return null;var r=dt(e,e===Ts?Ws:0);if(0===r)return null;if(30&r||0!==(r&e.expiredLanes)||t)t=fc(e,r);else{t=r;var o=js;js|=2;var i=pc();for(Ts===e&&Ws===t||(Xs=null,zs=qe()+500,cc(e,t));;)try{hc();break}catch(t){uc(e,t)}Sa(),Ms.current=i,js=o,null!==Ns?t=0:(Ts=null,Ws=0,t=ks)}if(0!==t){if(2===t&&0!==(o=mt(e))&&(r=o,t=nc(e,o)),1===t)throw n=Ds,cc(e,0),oc(e,r),ec(e,qe()),n;if(6===t)oc(e,r);else{if(o=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],a=o.getSnapshot;o=o.value;try{if(!or(a(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=fc(e,r),2===t&&(i=mt(e),0!==i&&(r=i,t=nc(e,i))),1!==t)))throw n=Ds,cc(e,0),oc(e,r),ec(e,qe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(a(345));case 2:case 5:yc(e,Es,Xs);break;case 3:if(oc(e,r),(130023424&r)===r&&10<(t=Vs+500-qe())){if(0!==dt(e,0))break;if(((o=e.suspendedLanes)&r)!==r){qs(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=eo(yc.bind(null,e,Es,Xs),t);break}yc(e,Es,Xs);break;case 4:if(oc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-it(r);i=1<<l,(l=t[l])>o&&(o=l),r&=~i}if(r=o,10<(r=(120>(r=qe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ys(r/1960))-r)){e.timeoutHandle=eo(yc.bind(null,e,Es,Xs),r);break}yc(e,Es,Xs);break;default:throw Error(a(329))}}}return ec(e,qe()),e.callbackNode===n?tc.bind(null,e):null}function nc(e,t){var n=Os;return e.current.memoizedState.isDehydrated&&(cc(e,t).flags|=256),2!==(e=fc(e,t))&&(t=Es,Es=n,null!==t&&rc(t)),e}function rc(e){null===Es?Es=e:Es.push.apply(Es,e)}function oc(e,t){for(t&=~Ls,t&=~Cs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-it(t),r=1<<n;e[n]=-1,t&=~r}}function ac(e){if(6&js)throw Error(a(327));vc();var t=dt(e,0);if(!(1&t))return ec(e,qe()),null;var n=fc(e,t);if(0!==e.tag&&2===n){var r=mt(e);0!==r&&(t=r,n=nc(e,r))}if(1===n)throw n=Ds,cc(e,0),oc(e,t),ec(e,qe()),n;if(6===n)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,yc(e,Es,Xs),ec(e,qe()),null}function ic(e,t){var n=js;js|=1;try{return e(t)}finally{0===(js=n)&&(zs=qe()+500,Eo&&Xo())}}function lc(e){null!==Bs&&0===Bs.tag&&!(6&js)&&vc();var t=js;js|=1;var n=Ss.transition,r=vt;try{if(Ss.transition=null,vt=1,e)return e()}finally{vt=r,Ss.transition=n,!(6&(js=t))&&Xo()}}function sc(){Is=Us.current,wo(Us)}function cc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,to(n)),null!==Ns)for(n=Ns.return;null!==n;){var r=n;switch($o(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&ko();break;case 3:Ha(),wo(No),wo(To),ei();break;case 5:Ja(r);break;case 4:Ha();break;case 13:case 19:wo(qa);break;case 10:ja(r.type._context);break;case 22:case 23:sc()}n=n.return}if(Ts=e,Ns=e=Uc(e.current,null),Ws=Is=t,ks=0,Ds=null,Ls=Cs=As=0,Es=Os=null,null!==Ia){for(t=0;t<Ia.length;t++)if(null!==(r=(n=Ia[t]).interleaved)){n.interleaved=null;var o=r.next,a=n.pending;if(null!==a){var i=a.next;a.next=o,r.next=i}n.pending=r}Ia=null}return e}function uc(e,t){for(;;){var n=Ns;try{if(Sa(),ti.current=Ki,li){for(var r=oi.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}li=!1}if(ri=0,ii=ai=oi=null,si=!1,ci=0,ws.current=null,null===n||null===n.return){ks=1,Ds=t,Ns=null;break}e:{var i=e,l=n.return,s=n,c=t;if(t=Ws,s.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var u=c,p=s,d=p.tag;if(!(1&p.mode||0!==d&&11!==d&&15!==d)){var f=p.alternate;f?(p.updateQueue=f.updateQueue,p.memoizedState=f.memoizedState,p.lanes=f.lanes):(p.updateQueue=null,p.memoizedState=null)}var m=fl(l);if(null!==m){m.flags&=-257,ml(m,l,s,0,t),1&m.mode&&dl(i,u,t),c=u;var h=(t=m).updateQueue;if(null===h){var g=new Set;g.add(c),t.updateQueue=g}else h.add(c);break e}if(!(1&t)){dl(i,u,t),dc();break e}c=Error(a(426))}else if(na&&1&s.mode){var x=fl(l);if(null!==x){!(65536&x.flags)&&(x.flags|=256),ml(x,l,s,0,t),da(il(c,s));break e}}i=c=il(c,s),4!==ks&&(ks=2),null===Os?Os=[i]:Os.push(i),i=l;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,za(i,ul(0,c,t));break e;case 1:s=c;var y=i.type,v=i.stateNode;if(!(128&i.flags||"function"!=typeof y.getDerivedStateFromError&&(null===v||"function"!=typeof v.componentDidCatch||null!==Gs&&Gs.has(v)))){i.flags|=65536,t&=-t,i.lanes|=t,za(i,pl(i,s,t));break e}}i=i.return}while(null!==i)}xc(n)}catch(e){t=e,Ns===n&&null!==n&&(Ns=n=n.return);continue}break}}function pc(){var e=Ms.current;return Ms.current=Ki,null===e?Ki:e}function dc(){0!==ks&&3!==ks&&2!==ks||(ks=4),null===Ts||!(268435455&As)&&!(268435455&Cs)||oc(Ts,Ws)}function fc(e,t){var n=js;js|=2;var r=pc();for(Ts===e&&Ws===t||(Xs=null,cc(e,t));;)try{mc();break}catch(t){uc(e,t)}if(Sa(),js=n,Ms.current=r,null!==Ns)throw Error(a(261));return Ts=null,Ws=0,ks}function mc(){for(;null!==Ns;)gc(Ns)}function hc(){for(;null!==Ns&&!Ke();)gc(Ns)}function gc(e){var t=bs(e.alternate,e,Is);e.memoizedProps=e.pendingProps,null===t?xc(e):Ns=t,ws.current=null}function xc(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Bl(n,t)))return n.flags&=32767,void(Ns=n);if(null===e)return ks=6,void(Ns=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Fl(n,t,Is)))return void(Ns=n);if(null!==(t=t.sibling))return void(Ns=t);Ns=t=e}while(null!==t);0===ks&&(ks=5)}function yc(e,t,n){var r=vt,o=Ss.transition;try{Ss.transition=null,vt=1,function(e,t,n,r){do{vc()}while(null!==Bs);if(6&js)throw Error(a(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-it(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}(e,i),e===Ts&&(Ns=Ts=null,Ws=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Fs||(Fs=!0,Tc(tt,function(){return vc(),null})),i=!!(15990&n.flags),15990&n.subtreeFlags||i){i=Ss.transition,Ss.transition=null;var l=vt;vt=1;var s=js;js|=4,ws.current=null,function(e,t){if(qr=Ft,ur(e=cr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(e){n=null;break e}var l=0,s=-1,c=-1,u=0,p=0,d=e,f=null;t:for(;;){for(var m;d!==n||0!==o&&3!==d.nodeType||(s=l+o),d!==i||0!==r&&3!==d.nodeType||(c=l+r),3===d.nodeType&&(l+=d.nodeValue.length),null!==(m=d.firstChild);)f=d,d=m;for(;;){if(d===e)break t;if(f===n&&++u===o&&(s=l),f===i&&++p===r&&(c=l),null!==(m=d.nextSibling))break;f=(d=f).parentNode}d=m}n=-1===s||-1===c?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(_r={focusedElem:e,selectionRange:n},Ft=!1,Kl=t;null!==Kl;)if(e=(t=Kl).child,1028&t.subtreeFlags&&null!==e)e.return=t,Kl=e;else for(;null!==Kl;){t=Kl;try{var h=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==h){var g=h.memoizedProps,x=h.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:$i(t.type,g),x);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(a(163))}}catch(e){Yc(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Kl=e;break}Kl=t.return}h=_l,_l=!1}(e,n),fs(n,e),pr(_r),Ft=!!qr,_r=qr=null,e.current=n,hs(n,e,o),Je(),js=s,vt=l,Ss.transition=i}else e.current=n;if(Fs&&(Fs=!1,Bs=e,Rs=o),0===(i=e.pendingLanes)&&(Gs=null),function(e){if(at&&"function"==typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(ot,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),ec(e,qe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((o=t[n]).value,{componentStack:o.stack,digest:o.digest});if(Ps)throw Ps=!1,e=Zs,Zs=null,e;!!(1&Rs)&&0!==e.tag&&vc(),1&(i=e.pendingLanes)?e===Hs?Qs++:(Qs=0,Hs=e):Qs=0,Xo()}(e,t,n,r)}finally{Ss.transition=o,vt=r}return null}function vc(){if(null!==Bs){var e=bt(Rs),t=Ss.transition,n=vt;try{if(Ss.transition=null,vt=16>e?16:e,null===Bs)var r=!1;else{if(e=Bs,Bs=null,Rs=0,6&js)throw Error(a(331));var o=js;for(js|=4,Kl=e.current;null!==Kl;){var i=Kl,l=i.child;if(16&Kl.flags){var s=i.deletions;if(null!==s){for(var c=0;c<s.length;c++){var u=s[c];for(Kl=u;null!==Kl;){var p=Kl;switch(p.tag){case 0:case 11:case 15:$l(8,p,i)}var d=p.child;if(null!==d)d.return=p,Kl=d;else for(;null!==Kl;){var f=(p=Kl).sibling,m=p.return;if(ns(p),p===u){Kl=null;break}if(null!==f){f.return=m,Kl=f;break}Kl=m}}}var h=i.alternate;if(null!==h){var g=h.child;if(null!==g){h.child=null;do{var x=g.sibling;g.sibling=null,g=x}while(null!==g)}}Kl=i}}if(2064&i.subtreeFlags&&null!==l)l.return=i,Kl=l;else e:for(;null!==Kl;){if(2048&(i=Kl).flags)switch(i.tag){case 0:case 11:case 15:$l(9,i,i.return)}var y=i.sibling;if(null!==y){y.return=i.return,Kl=y;break e}Kl=i.return}}var v=e.current;for(Kl=v;null!==Kl;){var b=(l=Kl).child;if(2064&l.subtreeFlags&&null!==b)b.return=l,Kl=b;else e:for(l=v;null!==Kl;){if(2048&(s=Kl).flags)try{switch(s.tag){case 0:case 11:case 15:es(9,s)}}catch(e){Yc(s,s.return,e)}if(s===l){Kl=null;break e}var Y=s.sibling;if(null!==Y){Y.return=s.return,Kl=Y;break e}Kl=s.return}}if(js=o,Xo(),at&&"function"==typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{vt=n,Ss.transition=t}}return!1}
vendor: 4,643 bytes, line 2
2function bc(e,t,n){e=Ea(e,t=ul(0,t=il(n,t),1),1),t=qs(),null!==e&&(xt(e,1,t),ec(e,t))}function Yc(e,t,n){if(3===e.tag)bc(e,e,n);else for(;null!==t;){if(3===t.tag){bc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Gs||!Gs.has(r))){t=Ea(t,e=pl(t,e=il(n,e),1),1),e=qs(),null!==t&&(xt(t,1,e),ec(t,e));break}}t=t.return}}function Mc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=qs(),e.pingedLanes|=e.suspendedLanes&n,Ts===e&&(Ws&n)===n&&(4===ks||3===ks&&(130023424&Ws)===Ws&&500>qe()-Vs?cc(e,0):Ls|=n),ec(e,t)}function wc(e,t){0===t&&(1&e.mode?(t=ut,!(130023424&(ut<<=1))&&(ut=4194304)):t=1);var n=qs();null!==(e=Da(e,t))&&(xt(e,t,n),ec(e,n))}function Sc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),wc(e,n)}function jc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(t),wc(e,n)}function Tc(e,t){return Qe(e,t)}function Nc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Wc(e,t,n,r){return new Nc(e,t,n,r)}function Ic(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Uc(e,t){var n=e.alternate;return null===n?((n=Wc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function kc(e,t,n,r,o,i){var l=2;if(r=e,"function"==typeof e)Ic(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case w:return Dc(n.children,o,i,t);case S:l=8,o|=8;break;case j:return(e=Wc(12,n,t,2|o)).elementType=j,e.lanes=i,e;case I:return(e=Wc(13,n,t,o)).elementType=I,e.lanes=i,e;case U:return(e=Wc(19,n,t,o)).elementType=U,e.lanes=i,e;case A:return Ac(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case T:l=10;break e;case N:l=9;break e;case W:l=11;break e;case k:l=14;break e;case D:l=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Wc(l,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Dc(e,t,n,r){return(e=Wc(7,e,r,t)).lanes=n,e}function Ac(e,t,n,r){return(e=Wc(22,e,r,t)).elementType=A,e.lanes=n,e.stateNode={isHidden:!1},e}function Cc(e,t,n){return(e=Wc(6,e,null,t)).lanes=n,e}function Lc(e,t,n){return(t=Wc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Oc(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Ec(e,t,n,r,o,a,i,l,s){return e=new Oc(e,t,n,l,s),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Wc(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ca(a),e}function Vc(e){if(!e)return jo;e:{if(Ze(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Uo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var n=e.type;if(Uo(n))return Ao(e,n,t)}return t}function zc(e,t,n,r,o,a,i,l,s){return(e=Ec(n,r,!0,e,0,a,0,l,s)).context=Vc(null),n=e.current,(a=Oa(r=qs(),o=_s(n))).callback=null!=t?t:null,Ea(n,a,o),e.current.lanes=o,xt(e,o,r),ec(e,r),e}function Xc(e,t,n,r){var o=t.current,a=qs(),i=_s(o);return n=Vc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Oa(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Ea(o,t,i))&&
vendor: 4,502 bytes, line 2
2($s(e,o,i,a),Va(e,o,i)),i}function Pc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Zc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Gc(e,t){Zc(e,t),(e=e.alternate)&&Zc(e,t)}bs=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||No.current)gl=!0;else{if(0===(e.lanes&n)&&!(128&t.flags))return gl=!1,function(e,t,n){switch(t.tag){case 3:Tl(t),pa();break;case 5:Ka(t);break;case 1:Uo(t.type)&&Co(t);break;case 4:Qa(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;So(ba,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(So(qa,1&qa.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Cl(e,t,n):(So(qa,1&qa.current),null!==(e=Pl(e,t,n))?e.sibling:null);So(qa,1&qa.current);break;case 19:if(r=0!==(n&t.childLanes),128&e.flags){if(r)return zl(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),So(qa,qa.current),r)break;return null;case 22:case 23:return t.lanes=0,Yl(e,t,n)}return Pl(e,t,n)}(e,t,n);gl=!!(131072&e.flags)}else gl=!1,na&&1048576&t.flags&&qo(t,Fo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Xl(e,t),e=t.pendingProps;var o=Io(t,To.current);Na(t,n),o=fi(null,t,r,e,o,n);var i=mi();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Uo(r)?(i=!0,Co(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Ca(t),o.updater=tl,t.stateNode=o,o._reactInternals=t,al(t,r,e,n),t=jl(null,t,r,!0,i,n)):(t.tag=0,na&&i&&_o(t),xl(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Xl(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Ic(e)?1:0;if(null!=e){if((e=e.$$typeof)===W)return 11;if(e===k)return 14}return 2}(r),e=$i(r,e),o){case 0:t=wl(null,t,r,e,n);break e;case 1:t=Sl(null,t,r,e,n);break e;case 11:t=yl(null,t,r,e,n);break e;case 14:t=vl(null,t,r,$i(r.type,e),n);break e}throw Error(a(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,wl(e,t,r,o=t.elementType===r?o:$i(r,o),n);case 1:return r=t.type,o=t.pendingProps,Sl(e,t,r,o=t.elementType===r?o:$i(r,o),n);case 3:e:{if(Tl(t),null===e)throw Error(a(387));r=t.pendingProps,o=(i=t.memoizedState).element,La(e,t),Xa(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Nl(e,t,r,n,o=il(Error(a(423)),t));break e}if(r!==o){t=Nl(e,t,r,n,o=il(Error(a(424)),t));break e}for(ta=io(t.stateNode.containerInfo.firstChild),ea=t,na=!0,ra=null,n=va(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(pa(),r===o){t=Pl(e,t,n);break e}xl(e,t,r,n)}t=t.child}return t;case 5:return Ka(t),null===e&&la(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,l=o.children,$r(r,o)?l=null:null!==i&&$r(r,i)&&(t.flags|=32),Ml(e,t),xl(e,t,l,n),t.child;case 6:return null===e&&la(t),null;case 13:return Cl(e,t,n);case 4:return Qa(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ya(t,null,r,n):xl(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,yl(e,t,r,o=t.elementType===r?o:$i(r,o),n);case 7:return xl(e,t,t.pendingProps,n),t.child;case 8:case 12:return xl(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,So(ba,r._currentValue),r._currentValue=l,null!==i)if(or(i.value,l)){if(i.children===o.children&&!No.current){t=Pl(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var s=i.dependencies;if(null!==s){l=i.child;for(var c=s.firstContext;null!==c;){if(c.context===r){if(1===i.tag){(c=Oa(-1,n&-n)).tag=2;var u=i.updateQueue;if(null!==u){var p=(u=u.shared).pending;null===p?c.next=c:(c.next=p.next,p.next=c),u.pending=c}}i.lanes|=n,null!==(c=i.alternate)&&(c.lanes|=n),Ta(i.return,n,t),s.lanes|=n;break}c=c.next}}else if(10===i.tag)l=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(l=i.return))throw Error(a(341));l.lanes|=n,null!==(s=l.alternate)&&(s.lanes|=n),Ta(l,n,t),l=i.sibling}else l=i.child;if(null!==l)l.return=i;else for(l=i;null!==l;){if(l===t){l=null;break}if(null!==(i=l.sibling)){i.return=l.return,l=i;break}l=l.return}i=l}xl(e,t,o.children,n),t=t.child}return t;
vendor: 5,192 bytes, line 2
2case 9:return o=t.type,r=t.pendingProps.children,Na(t,n),r=r(o=Wa(o)),t.flags|=1,xl(e,t,r,n),t.child;case 14:return o=$i(r=t.type,t.pendingProps),vl(e,t,r,o=$i(r.type,o),n);case 15:return bl(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:$i(r,o),Xl(e,t),t.tag=1,Uo(r)?(e=!0,Co(t)):e=!1,Na(t,n),rl(t,r,o),al(t,r,o,n),jl(null,t,r,!0,e,n);case 19:return zl(e,t,n);case 22:return Yl(e,t,n)}throw Error(a(156,t.tag))};var Fc="function"==typeof reportError?reportError:function(e){console.error(e)};function Bc(e){this._internalRoot=e}function Rc(e){this._internalRoot=e}function Qc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Hc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Kc(){}function Jc(e,t,n,r,o){var a=n._reactRootContainer;if(a){var i=a;if("function"==typeof o){var l=o;o=function(){var e=Pc(i);l.call(e)}}Xc(t,i,e,o)}else i=function(e,t,n,r,o){if(o){if("function"==typeof r){var a=r;r=function(){var e=Pc(i);a.call(e)}}var i=zc(t,r,e,0,null,!1,0,"",Kc);return e._reactRootContainer=i,e[po]=i.current,zr(8===e.nodeType?e.parentNode:e),lc(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=Pc(s);l.call(e)}}var s=Ec(e,0,!1,null,0,!1,0,"",Kc);return e._reactRootContainer=s,e[po]=s.current,zr(8===e.nodeType?e.parentNode:e),lc(function(){Xc(t,s,n,r)}),s}(n,t,e,o,r);return Pc(i)}Rc.prototype.render=Bc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));Xc(e,t,null,null)},Rc.prototype.unmount=Bc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;lc(function(){Xc(null,e,null,null)}),t[po]=null}},Rc.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<At.length&&0!==t&&t<At[n].priority;n++);At.splice(n,0,e),0===n&&Et(e)}},Yt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=pt(t.pendingLanes);0!==n&&(yt(t,1|n),ec(t,qe()),!(6&js)&&(zs=qe()+500,Xo()))}break;case 13:lc(function(){var t=Da(e,1);if(null!==t){var n=qs();$s(t,e,1,n)}}),Gc(e,1)}},Mt=function(e){if(13===e.tag){var t=Da(e,134217728);null!==t&&$s(t,e,134217728,qs()),Gc(e,134217728)}},wt=function(e){if(13===e.tag){var t=_s(e),n=Da(e,t);null!==n&&$s(n,e,t,qs()),Gc(e,t)}},St=function(){return vt},jt=function(e,t){var n=vt;try{return vt=e,t()}finally{vt=n}},Me=function(e,t,n){switch(t){case"input":if(_(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=vo(r);if(!o)throw Error(a(90));Q(r),_(r,o)}}}break;case"textarea":ae(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},We=ic,Ie=lc;var qc={usingClientEntryPoint:!1,Events:[xo,yo,vo,Te,Ne,ic]},_c={findFiberByHostInstance:go,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},$c={bundleType:_c.bundleType,version:_c.version,rendererPackageName:_c.rendererPackageName,rendererConfig:_c.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:b.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Be(e))?null:e.stateNode},findFiberByHostInstance:_c.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var eu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!eu.isDisabled&&eu.supportsFiber)try{ot=eu.inject($c),at=eu}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=qc,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Qc(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:M,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Qc(e))throw Error(a(299));var n=!1,r="",o=Fc;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Ec(e,1,!1,null,0,n,0,r,o),e[po]=t.current,zr(8===e.nodeType?e.parentNode:e),new Bc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return null===(e=Be(t))?null:e.stateNode},t.flushSync=function(e){return lc(e)},t.hydrate=function(e,t,n){if(!Hc(t))throw Error(a(200));return Jc(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Qc(e))throw Error(a(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",l=Fc;
vendor: 6,526 bytes, line 2
2if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),t=zc(t,null,e,1,null!=n?n:null,o,0,i,l),e[po]=t.current,zr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Rc(t)},t.render=function(e,t,n){if(!Hc(t))throw Error(a(200));return Jc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Hc(e))throw Error(a(40));return!!e._reactRootContainer&&(lc(function(){Jc(null,null,e,!1,function(){e._reactRootContainer=null,e[po]=null})}),!0)},t.unstable_batchedUpdates=ic,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Hc(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return Jc(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},330:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(270)},365:(e,t,n)=>{e.exports=n(716)},374:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<a(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,i=o>>>1;r<i;){var l=2*(r+1)-1,s=e[l],c=l+1,u=e[c];if(0>a(s,n))c<o&&0>a(u,s)?(e[r]=u,e[c]=n,r=c):(e[r]=s,e[l]=n,r=l);else{if(!(c<o&&0>a(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var l=Date,s=l.now();t.unstable_now=function(){return l.now()-s}}var c=[],u=[],p=1,d=null,f=3,m=!1,h=!1,g=!1,x="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function Y(e){if(g=!1,b(e),!h)if(null!==r(c))h=!0,A(M);else{var t=r(u);null!==t&&C(Y,t.startTime-e)}}function M(e,n){h=!1,g&&(g=!1,y(T),T=-1),m=!0;var a=f;try{for(b(n),d=r(c);null!==d&&(!(d.expirationTime>n)||e&&!I());){var i=d.callback;if("function"==typeof i){d.callback=null,f=d.priorityLevel;var l=i(d.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?d.callback=l:d===r(c)&&o(c),b(n)}else o(c);d=r(c)}if(null!==d)var s=!0;else{var p=r(u);null!==p&&C(Y,p.startTime-n),s=!1}return s}finally{d=null,f=a,m=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var w,S=!1,j=null,T=-1,N=5,W=-1;function I(){return!(t.unstable_now()-W<N)}function U(){if(null!==j){var e=t.unstable_now();W=e;var n=!0;try{n=j(!0,e)}finally{n?w():(S=!1,j=null)}}else S=!1}if("function"==typeof v)w=function(){v(U)};else if("undefined"!=typeof MessageChannel){var k=new MessageChannel,D=k.port2;k.port1.onmessage=U,w=function(){D.postMessage(null)}}else w=function(){x(U,0)};function A(e){j=e,S||(S=!0,w())}function C(e,n){T=x(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){h||m||(h=!0,A(M))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,o,a){var i=t.unstable_now();switch(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0<a?i+a:i,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:p++,callback:o,priorityLevel:e,startTime:a,expirationTime:l=a+l,sortIndex:-1},a>i?(e.sortIndex=a,n(u,e),null===r(c)&&e===r(u)&&(g?(y(T),T=-1):g=!0,C(Y,a-i))):(e.sortIndex=l,n(c,e),h||m||(h=!0,A(M))),e},t.unstable_shouldYield=I,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},378:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},462:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},513:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},551:function(e,t,n){function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o,a;e=n.nmd(e),o="undefined"!=typeof self?self:this,a=function(){"use strict";var e="#fafaf6",t=[{key:"fine",label:"Fine 3mm stripes",type:"stripes",bandWidthMm:3,group:"stripe",groupLabel:"Str
2ipe",scaleLabel:"Fine"},{key:"vertical",label:"Vertical stripes",type:"stripes",bands:19,group:"stripe",groupLabel:"Stripe",scaleLabel:"Regular"},{key:"wc-fine",label:"Watercolour stripe — Fine",type:"watercolour",bandMm:12,gapMm:8,wobbleMm:1.8,poolAmt:.45,seed:7,group:"watercolour",groupLabel:"Watercolour",scaleLabel:"Fine"},{key:"wc-even",label:"Watercolour stripe — Even",type:"watercolour",bandMm:22,gapMm:18,wobbleMm:3,poolAmt:.55,seed:7,group:"watercolour",groupLabel:"Watercolour",scaleLabel:"Regular"},{key:"wc-cabana",label:"Watercolour stripe — Cabana",type:"watercolour",bandMm:34,gapMm:9,wobbleMm:3.4,poolAmt:.6,seed:7,group:"watercolour",groupLabel:"Watercolour",scaleLabel:"Bold"},{key:"gingham",label:"Gingham",type:"gingham",cellMm:16,group:"gingham",groupLabel:"Gingham"},{key:"checker",label:"Checkered",type:"checkers",checkMm:15,group:"checker",groupLabel:"Checked"},{key:"polka",label:"Polka dot",type:"polka",dotMm:18,group:"polka",groupLabel:"Polka dot"},{key:"chevron",label:"Chevron",type:"chevron",bandMm:14,group:"chevron",groupLabel:"Chevron"},{key:"accent",label:"Accent keyline",type:"accent",gapMm:10,lineMm:1.4,group:"accent",groupLabel:"Keyline"}];function n(e){return e?("#"!==(e=String(e).trim())[0]&&(e="#"+e),/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.test(e)?e:null):null}function r(e){return t.find(function(t){return t.key===e})||t[0]}function o(e){if(!e)return null;var n=String(e).trim().toLowerCase();return t.find(function(e){return e.label.toLowerCase()===n})||null}function a(e,t){if(t.bands)return t.bands;if(t.bandWidthMm){var n=Math.round((e||210)/t.bandWidthMm);return n<5?5:n}return 19}function i(){var e=[],n={};return t.forEach(function(t){var r=t.group||t.key;n[r]||(n[r]={group:r,label:t.groupLabel||t.label,items:[]},e.push(n[r])),n[r].items.push(t)}),e}function l(e){for(var t=function(e){return function(){e=1831565813+(e|=0)|0;var t=Math.imul(e^e>>>15,1|e);return(((t=t+Math.imul(t^t>>>7,61|t)^t)^t>>>14)>>>0)/4294967296}}(e>>>0),n=new Float32Array(512),r=0;r<512;r++)n[r]=2*t()-1;return function(e){var t=Math.floor(e),r=e-t,o=n[511&t];return o+(n[t+1&511]-o)*(r*r*(3-2*r))}}function s(e,t){var n=function(e){3===(e=String(e||"#888888").replace("#","")).length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);var t=parseInt(e,16);return[t>>16&255,t>>8&255,255&t]}(e),r=t<0?0:255,o=Math.abs(t);return"rgb("+(Math.round((r-n[0])*o)+n[0])+","+(Math.round((r-n[1])*o)+n[1])+","+(Math.round((r-n[2])*o)+n[2])+")"}function c(t,n,r,o,i,c,u){var p=!(!u||!u.printMode);if(u&&u.premium&&u.pattern){var d=u.pattern,f=u.stripeColour||"#888888";if(p||(t.fillStyle=e,t.fillRect(n,r,o,i)),"stripes"===d.type)for(var m=a(c,d),h=o/m,g=0;g<m;g++){if(g%2==0){if(p)continue;t.fillStyle=e}else t.fillStyle=f;t.fillRect(n+g*h,r,Math.ceil(h)+1,i)}else if("checkers"===d.type){var x=o/(c||210),y=Math.max(6,(d.checkMm||15)*x),v=Math.ceil(o/y),b=Math.ceil(i/y);t.save(),t.beginPath(),t.rect(n,r,o,i),t.clip(),t.fillStyle=f;for(var Y=0;Y<b;Y++)for(var M=0;M<v;M++)(M+Y)%2!=0&&t.fillRect(n+M*y,r+Y*y,Math.ceil(y)+1,Math.ceil(y)+1);t.restore()}else if("gingham"===d.type){var w=o/(c||210),S=Math.max(6,(d.cellMm||16)*w);t.save(),t.beginPath(),t.rect(n,r,o,i),t.clip(),t.fillStyle=f,t.globalAlpha=.42;for(var j=Math.ceil(o/S),T=Math.ceil(i/S),N=0;N<j;N+=2)t.fillRect(n+N*S,r,Math.ceil(S)+1,i);for(var W=0;W<T;W+=2)t.fillRect(n,r+W*S,o,Math.ceil(S)+1);t.globalAlpha=1,t.restore()}else if("polka"===d.type){var I=o/(c||210),U=Math.max(8,(d.dotMm||18)*I),k=.3*U;t.save(),t.beginPath(),t.rect(n,r,o,i),t.clip(),t.fillStyle=f;for(var D=Math.ceil(i/U)+1,A=Math.ceil(o/U)+1,C=0;C<D;C++)for(var L=0;L<A;L++){var O=n+L*U+(C%2?U/2:0)+U/2,E=r+C*U+U/2;t.beginPath(),t.arc(O,E,k,0,2*Math.PI),t.fill()}t.restore()}else if("chevron"===d.type){var V=o/(c||210),z=Math.max(5,(d.bandMm||14)*V);t.save(),t.beginPath(),t.rect(n,r,o,i),t.clip(),t.strokeStyle=f,t.lineWidth=Math.max(2,.5*z),t.lineCap="butt";for(var X=r-i;X<r+2*i;X+=2*z){t.beginPath();for(var P=!0,Z=n;Z<=n+o+z;Z+=z){var G=X+(P?0:z);Z===n?t.moveTo(Z,G):t.lineTo(Z,G),P=!P}t.stroke()}t.restore()}else if("watercolour"===d.type)t.save(),t.beginPath(),t.rect(n,r,o,i),t.clip(),function(e,t,n,r,o,a,i,c){var u=r/(a||210),p=(i.bandMm||26)*u,d=(i.gapMm||14)*u,f=p+d;f<=0&&(p=f=1);var m=Math.ceil(r/f)+1,h=(i.wobbleMm||3)*u,g=null!=i.poolAmt?i.poolAmt:.55,x=l(2654435761*(i.seed||7)>>>0),y=Math.max(4,o/160),v=Math.max(y,h)+2,b=n-v,Y=n+o+v;function M(e,t,r){return e+function(e,t,n){return.7*e(1*t+n)+.3*e(2.7*t+1.7*n)}(x,(r-n)/u/52,t)*h}for(var w,S,j,T,N,W,I,U,k,D=function(){function n(){for(e.beginPath(),N=b;N<=Y;N+=y){var t=M(w,j,N);N===b?e.moveTo(t,N):e.lineTo(t,N)}for(e.lineTo(M(w,j,Y),Y),N=Y;N>=b;N-=y)e.lineTo(M(S,T,N),N);e.closePath()}for(w=t+A*f,S=t+A*f+p,j=2*A*11.37,T=11.37*(2*A+1),n(),e.fillStyle=s(c,.5*x(3.1*A)*.06),e.fill(),g>0&&(e.save(),e.clip(),e.lineWidth=Math.max(2,.9*h+3),e.strokeStyle=s(c,-.35),e.globalAlpha=.16*g,e.stroke(),e.lineWidth=Math.max(1,.4*h+1.5),e.globalAlpha=.22*g,e.stroke(),e.globalAlpha=1,e.restore(
2)),e.save(),n(),e.clip(),W=2+7*A%3,I=0;I<W;I++)U=w+(.2+.6*x(5*A+13*I))*p,(k=e.createLinearGradient(U-6,0,U+6,0)).addColorStop(0,"rgba(0,0,0,0)"),k.addColorStop(.5,s(c,-.25)),k.addColorStop(1,"rgba(0,0,0,0)"),e.globalAlpha=.05,e.fillStyle=k,e.fillRect(U-6,b,12,Y-b);e.globalAlpha=1,e.restore()},A=0;A<m;A++)D()}(t,n,r,o,i,c,d,f),t.restore();else if("accent"===d.type){var F=u.apertureMm;if(F&&F.w&&F.h&&c){var B=o/c,R=F.w*B,Q=F.h*B,H=Math.max(1,(d.gapMm||10)*B),K=Math.max(1,(d.lineMm||1.4)*B),J=n+(o-R)/2-H,q=r+(i-Q)/2-H;J>n&&q>r&&(t.save(),t.strokeStyle=f,t.lineWidth=K,t.strokeRect(J,q,R+2*H,Q+2*H),t.restore())}}}else p||(t.fillStyle=u&&u.plainHex||"#fafaf6",t.fillRect(n,r,o,i))}function u(e,t){return Math.round((e||0)/25.4*(t||300))}function p(e,t){return"600 "+e+'px "'+(t||"serif")+'", serif'}return{STRIPE_BASE_HEX:e,MOUNT_PATTERNS:t,STRIPE_PRESETS:[{label:"Navy",hex:"#23395d"},{label:"Black",hex:"#1a1a1a"},{label:"Sage",hex:"#7d8c6a"},{label:"Burgundy",hex:"#6e2433"},{label:"Mustard",hex:"#c79a3a"},{label:"Dusty pink",hex:"#c98b8b"},{label:"Slate grey",hex:"#6b7280"},{label:"Teal",hex:"#2e6e6a"}],normaliseHex:n,patternByKey:r,patternByLabel:o,patternGroups:i,groupOf:function(e){var t=r(e),n=t.group||t.key;return i().find(function(e){return e.group===n})},stripeBandCount:a,paintMountFill:c,mmToPx:u,parseFrameSizeMm:function(e){if(!e)return null;var t=String(e).replace(/mm/gi,"").match(/(\d+(?:\.\d+)?)\s*[×x*]\s*(\d+(?:\.\d+)?)/i);return t?{w:parseFloat(t[1]),h:parseFloat(t[2])}:null},specFromOrderAttrs:function(e){e=e||{};var t="premium"===String(e.Mount||"").toLowerCase()?o(e.Pattern):null,r=String(e["Pattern colour"]||"").match(/#([0-9a-f]{6}|[0-9a-f]{3})/i),a="black"===String(e["Mount colour"]||"").toLowerCase()?"#1a1a1a":"#fafaf6";return{premium:!!t,pattern:t,stripeColour:r?n(r[0]):"#888888",plainHex:a}},renderMountPrint:function(e,t){var n=t.dpi||300;return c(e,0,0,u(t.widthMm,n),u(t.heightMm,n),t.widthMm,t.spec),e.canvas},renderPersonalisationText:function(e,t,n,r){if(t&&t.bandMm){var o=(n||300)/25.4,a={x:t.bandMm.x*o,y:t.bandMm.y*o,w:t.bandMm.w*o,h:t.bandMm.h*o},i=(null!=t.boxPadMm?t.boxPadMm:3)*o,l={x:a.x+i,y:a.y+i,w:a.w-2*i,h:a.h-2*i};(l.w<=4||l.h<=4)&&(l=a);var s=t.align||"center",c=(t.capMm||7)*o;if(t.patterned){var u=function(e,t,n,r,o,a,i,l,s){var c=(t||[]).filter(function(e){return e&&e.trim()});if(!c.length)return null;var u=c.length,d=a/(u+.4)*.74,f=d;l&&(d=f=Math.min(d,l)),c.forEach(function(t){var n=d;for(e.font=p(n,s);e.measureText(t).width>o&&n>6;)n-=1,e.font=p(n,s);n<f&&(f=n)}),e.font=p(f,s);var m=0;c.forEach(function(t){m=Math.max(m,e.measureText(t).width)});var h=1.32*f;return{x:"left"===i?n:"right"===i?n+o-m:n+(o-m)/2,y:r+(a-h*u)/2+h/2-f/2,w:m,h:(u-1)*h+f}}(e,t.lines,l.x,l.y,l.w,l.h,s,c,t.font);if(u&&u.w>0&&u.h>0){var d=Math.max(a.x,u.x-i),f=Math.max(a.y,u.y-i),m=Math.min(a.x+a.w,u.x+u.w+i)-d,h=Math.min(a.y+a.h,u.y+u.h+i)-f,g=.2*Math.min(m,h);e.save(),e.beginPath(),e.roundRect?e.roundRect(d,f,m,h,g):e.rect(d,f,m,h),r?(e.globalCompositeOperation="destination-out",e.fillStyle="#000"):e.fillStyle=t.mountBaseHex||"#fafaf6",e.fill(),e.restore()}}!function(e,t,n,r,o,a,i,l,s,c){if((t=(t||[]).filter(function(e){return e&&e.trim()})).length){var u=t.length,d=a/(u+.4)*.74;s&&(d=Math.min(d,s));var f=d;t.forEach(function(t){var n=d;for(e.font=p(n,c);e.measureText(t).width>o&&n>6;)n-=1,e.font=p(n,c);n<f&&(f=n)}),e.font=p(f,c),e.fillStyle=l,e.textBaseline="middle",e.textAlign=i;var m="left"===i?n:"right"===i?n+o:n+o/2,h=1.32*f,g=r+(a-h*u)/2+h/2;t.forEach(function(t,n){e.fillText(t,m,g+n*h)})}}(e,t.lines,l.x,l.y,l.w,l.h,s,t.inkHex||"#1a1a1a",c,t.font)}}}}(),"object"===r(e)&&e.exports&&(e.exports=a),void 0!==o&&(o.PFCMountCore=a)},617:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var a={},i=[],l=0;l<e.length;l++){var s=e[l],c=r.base?s[0]+r.base:s[0],u=a[c]||0,p="".concat(c," ").concat(u);a[c]=u+1;var d=n(p),f={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==d)t[d].references++,t[d].updater(f);else{var m=o(f,r);r.byIndex=l,t.splice(l,0,{identifier:p,updater:m,references:1})}i.push(p)}return i}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var a=r(e=e||[],o=o||{});return function(e){e=e||[];for(var i=0;i<a.length;i++){var l=n(a[i]);t[l].references--}for(var s=r(e,o),c=0;c<a.length;c++){var u=n(a[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}a=s}}},716:(e,t,n)=>{"use strict";var r=n(918),o=n(996);function a(e){var t=0,n=0,r=0,o=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120
2),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=10*t,o=10*n,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||o)&&e.deltaMode&&(1==e.deltaMode?(r*=40,o*=40):(r*=800,o*=800)),r&&!t&&(t=r<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:o}}a.getEventType=function(){return r.firefox()?"DOMMouseScroll":o("wheel")?"wheel":"mousewheel"},e.exports=a},720:e=>{"use strict";e.exports=function(e){return e[1]}},841:e=>{"use strict";var t=!("undefined"==typeof window||!window.document||!window.document.createElement),n={canUseDOM:t,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:t&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:t&&!!window.screen,isInWorker:!t};e.exports=n},857:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n}).join("")},t.i=function(e,n,r,o,a){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(r)for(var l=0;l<this.length;l++){var s=this[l][0];null!=s&&(i[s]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);r&&i[u[0]]||(void 0!==a&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=a),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},907:(e,t,n)=>{"use strict";var r=n(330);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},918:e=>{var t,n,r,o,a,i,l,s,c,u,p,d,f,m,h,g=!1;function x(){if(!g){g=!0;var e=navigator.userAgent,x=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Ice
2weasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),y=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(d=/\b(iPhone|iP[ao]d)/.exec(e),f=/\b(iP[ao]d)/.exec(e),u=/Android/i.exec(e),m=/FBAN\/\w+;/i.exec(e),h=/Mobile/i.exec(e),p=!!/Win64/.exec(e),x){(t=x[1]?parseFloat(x[1]):x[5]?parseFloat(x[5]):NaN)&&document&&document.documentMode&&(t=document.documentMode);var v=/(?:Trident\/(\d+.\d+))/.exec(e);i=v?parseFloat(v[1])+4:t,n=x[2]?parseFloat(x[2]):NaN,r=x[3]?parseFloat(x[3]):NaN,(o=x[4]?parseFloat(x[4]):NaN)?(x=/(?:Chrome\/(\d+\.\d+))/.exec(e),a=x&&x[1]?parseFloat(x[1]):NaN):a=NaN}else t=n=r=a=o=NaN;if(y){if(y[1]){var b=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);l=!b||parseFloat(b[1].replace("_","."))}else l=!1;s=!!y[2],c=!!y[3]}else l=s=c=!1}}var y={ie:function(){return x()||t},ieCompatibilityMode:function(){return x()||i>t},ie64:function(){return y.ie()&&p},firefox:function(){return x()||n},opera:function(){return x()||r},webkit:function(){return x()||o},safari:function(){return y.webkit()},chrome:function(){return x()||a},windows:function(){return x()||s},osx:function(){return x()||l},linux:function(){return x()||c},iphone:function(){return x()||d},mobile:function(){return x()||d||f||u||h},nativeApp:function(){return x()||m},android:function(){return x()||u},ipad:function(){return x()||f}};e.exports=y},929:(e,t,n)=>{"use strict";e.exports=n(374)},941:(e,t,n)=>{"use strict";var r=n(87),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,a={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,r)&&!s.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:a,_owner:l.current}}t.Fragment=a,t.jsx=c,t.jsxs=c},989:e=>{e.exports=function(e,t){"use strict";var n
vendor: 65,028 bytes, line 2
2="XIXHXHXGXGXQXQXPXPXOXOXN##U6U6UW#$U%U%U%U%U%XFXEXEXRXRXVXVXWXWXXXXXYXYXZXZY#Y#Y$Y$Y%Y%XSXSXTXTXUXIXHXHXGXGXQXQV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S-S-S-S-S-S-S.S-S-S-S.S.30S.31SMSMSM31S.31S.S.313233SMT$T$T$33T$33T$XESKSKXRSQS@S@SQS@S331S3S3S3S331S331SOSOSOSOSOSO3131SG32SGSOSO32SGSGSWSWSW3132SGSWW>VXW>W>W>W>W431W431W4W4W>31W432W?W?WLW?W?31W?W?Y$W?W$31W?W?WCWCU+U+U=U+U+U+U+U=U#U#3.U#U#U#U#3.S7S7S73.S73.XRSNSNSJ3.SJ3.SJSJSJ3.SJSNSN3.SJSNSNS7S73.SJSOSGSO3.SO3.3/SISOSOSO3/SISISI3/S8S83/S8SOS>SOS>3.S>SISISI3.3/3030SWSWSWS>30S>S>30SWS>SWSWSW30SW30S>S>S>30WCWCWCUB30V$V$V$V$V$30V.30V.V.V(V(T=30V(V(30U@T=30T=T=30U@T=U@T=U@T=T=V(U#3/V(3/U#V(V(V(V(3/V(V(V(V([email protected](U@[email protected]/30S>S>SP30SPS6S6S6SPSPSP3/S6S6S63/SR3/SR30S630SRSRW4WCW4WCU=U=U=3/U=V,V,V,V,U<V,V,U<U<3-T5U<U<T5T53,TGTGTGTGTGTG3,TPTP3,V.TGV.3,V.TG3,TGV.V.T=T=T=SNSNT(T(SD3*SCSDSCSDSCSDSDSDSE3)S6S63)SRSD3)SDSDSDSD3)SDT53)T5T5T5T;T53)T/3)T/T/T83)T8T0T/T/T2T/T/T03(3)T0T0T03)T;T;3)T;3)3*T;T;T;3*T;TGT;3*T;T0T03*3+V.3+T0T0T0T0T0V.V.T0V.3*V.SC3*3+SESCSESESESCSCSC3*SESESE3*3*SSSSSSSESESSSSSESE3)ST3)XDXDXDXD3)XDXDT3T6T3T3T53(T53)T3T33)3*3*3+T73,T7T0T7T0T0T0T03+T0T0T5T5T0T03*T.T0T.T5T.T03)T.T.T5T.T5T.T03(3)UMUM3)UMUM3)UM3*UMT03*T03+T0T03+T0T03+T0UM3+UMUMUMV.V.V.3+V.V.UMUMUMV.UMUMV.V.3)V.3)UMT.T.UMUM3)UMUMUM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,W,W,7676WYWYWY76WYWYWYW,76W,W,76WYW,W,WYWYW,WYWYWY75WYWYWYWY75WYWYW#W#W,W,W#W#73W#W#W#7374W,W,7475W,W,75W,W,W,W,W,W#W#W#W#W#74W#W,74W,W,W,W,W#WYWY73WYW,W,W,W#WYWYW#W#71W#W#W#7172WYWYW#727374WYWYWYW#W#WYWYWY72WYWYWYWS72WS73W,W,73WSW,W,7374W#WYW#WYWY73WYW#W#W#W#73W#W#WYW#WY72WYWY72WYWYWYWYW#WYWYWYWY7172WYWY72W#72W#W#W#W#W#WYWYW#W#71W#W#W#717272W#WYWYW#W#W#72W#W#727373W#WY747475WYWYWYWYW#WYWYWYWY74WYWYWY74WY7475W#WYWYWY757576W#W#7677W#W#77W#W#W#WYWYWY77WY7778W#78W#W#W#WYWYW#WYWYWYW#W#WYWY767777W#W#W#W#77W#W#WY7778W#WY78WY7979W#7:W#VNVNW#W#VNVNW#W#VNVNW#78W#78W#W#78VNW#W#VNW#W#W#WUWUWU77WUWU77WUWUWUWU77WUWU77WM77WMWMWMWMWM77WMWUWMWMWMWU76WMWMWMWMWT76WT76WTWTWMWMWM767677WTWTWMWMWM77WM7778WT78WTWTWTWMWMWM78WM78WTWT78WTWTWT78WTWTWTWU78WMWMWUWM7879WM79WM7:WMWMWM7:WMWM7:7;WT7;WTWTU>UYU>UYU>7:U>7;U>U>U>7;U>7;U>U>U>UYUYUYU>U>7:7;U>U>7;V:U>U>V:V:U>U>V:V:U>79V:V:U>U>79V:U>U>V:V:U>U>V:V:U>77V:V:77U>V:V:U>77UYUY77U>UYUY7778UYUYV:UYV:78V:UY78U/UYUY7879UYUYUYTTUYUYTTTT77TTTTTTUY77U/U/7778U/U/78U/U/U/U/78U/U/7879U/U/TTTTUUUUTTTTUUUUTTTT77TTUU77UUUUUU77UUUU77TTUU78TTTT78TTUUTTUUUUUPUP77UPTLUP77UP77YBY>YBY>YBY>777778S:79797:S:S:S:7:7;S;S0S07;7<7<S0S:S:W-W-7<7=W-7=7>WFW-W-7>W-WFW-WFWFY9Y9W(7=7=W(W(W(Y9Y9W(7=Y9Y97=Y9W-W-WFW-W-W-WFWFW(W(7;7<W(W(7<7=VZ7=VZW(7=W(W(W(VZVZVZW(VZVZVZW(VZW6VZW6W6W6W6W/W679W6W6W(W(79W(79W(W6W(VO79VOVOW(W(79W(VOW(VOW(W6W6W.78W.W.78W6W.W.W.W6W6W6W/W/W6W/W/W/W6W6W675W6VOW6VO7475W(W(W(VUW(VUW(74W(VU74W(W(W(Y9Y9Y974VU74VUVUY9Y9VUY9X#73X#X#7374X#X#VUVU747575X#VUVU75X#76X#X#X#VUX#VU7576X#X#X#VUX#X#X#7576X#X#X#76X#X#VUVUX#X#VU7575X#VUX#VUX#VUVU7475VUVUVUVUW@W@X#X#74X#X#X#VUX#VU73VU74VSVSX#VSX#73X#X#VSVS73VSX#X#X#7373VSVSVSW773W7W773WSW7WSW773W7W77374W7W77475W77676W,W777W,W,77W,77W,W778W,W,78W,W778W7W778W,W7W,W7W7W,W7W,W7W,W,W7W9W7W9W775W7W7W9W975W975W9W7W7W775W9W97576W7W7W9W9W7W7W9W975W975W9W7W9W7W775W975W9W9W9W7W9W7W974W9W9W9W7W9W7W773W<W<W<W9W9W97373W<W<W<73W<W9W9W9W<W9W9W9W9W972W972W<W<W9W<W<W<W9W9W971W9W9W9W<W970W9W970TLUU71TM7172UL72UL737474TLUE75UE75UEUETLTL75TL75TLUE76UETLUE76TLTL76TL76TLTLTLTLTLUE767677UE78UE78UEUE78TL79TLUE79UEUE797:UEUETLUPTL7:TL7:UPUP7:X#VUVUX#X#7:7;W+W+W+7;W+WEW+W+7:WE7;WEWEWE7;7<WEWE7<7=WEWE7=W+WEW+W+W+WE7<WEW+W9W97<W9X#7<X#W9W<7<W<7=W<W:W<W:7<W:W<W<7<WUW:7=W)W<W)7=W<W<7=W<7=W<W<W<W<W<7=W<W)7=W)7>7>W<W<W<WU7>7?7@WUWUWU7@WUWUWU7@WU7@W1W17@W1W1W1WUWUW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XDXDXDX;XDXDX;X;XDXDX;XDXDXDT3T3T5T3T5T3T5T5T3T3T5T3T3T3T5T3T3T3T5T5T3T3T5T5T3T3T5T5T.T0T.T.T0T0T.T0T.T0T.T.T.T0T.T.UMUMT0UMUMV.UMUMV.UMUMUMV.V.UMV.T0UMT0UMT0T0T0UMT0T0T0UMT0UMUMUMT0UMT0T0T0UMT0T0T0T0T.T.T.T0T.T.T0UMT0UMT0UMUMUMUMV.UMV.V.V.UMUMUMV.UMUMUMV.UMUMV.V.UMUMSESSSSSSXDXDXBXBXDXDXBXDXBXDXBXDXDXDXBXDXDXDXBXDXBXDXBXBXDXDXBXDXBXDXBXBXDXDXBXBXDXDXBXDXDXDXBXDXBXDXBXBXDXDXBXBT5T.T5T5T.T.T5T5",
2r=["Africa/Abidjan","Africa/Accra","Africa/Addis_Ababa","Africa/Algiers","Africa/Asmara","Africa/Bamako","Africa/Bangui","Africa/Banjul","Africa/Bissau","Africa/Blantyre","Africa/Brazzaville","Africa/Bujumbura","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/Conakry","Africa/Dakar","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Douala","Africa/El_Aaiun","Africa/Freetown","Africa/Gaborone","Africa/Harare","Africa/Johannesburg","Africa/Juba","Africa/Kampala","Africa/Khartoum","Africa/Kigali","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Lome","Africa/Luanda","Africa/Lubumbashi","Africa/Lusaka","Africa/Malabo","Africa/Maputo","Africa/Maseru","Africa/Mbabane","Africa/Mogadishu","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Niamey","Africa/Nouakchott","Africa/Ouagadougou","Africa/Porto-Novo","Africa/Sao_Tome","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Anguilla","America/Antigua","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Aruba","America/Asuncion","America/Atikokan","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Cayenne","America/Cayman","America/Chicago","America/Chihuahua","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson_Creek","America/Denver","America/Detroit","America/Dominica","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Fort_Nelson","America/Fortaleza","America/Glace_Bay","America/Godthab","America/Goose_Bay","America/Grand_Turk","America/Grenada","America/Guadeloupe","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vincennes","America/Iqaluit","America/Jamaica","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/Kralendijk","America/La_Paz","America/Lima","America/Los_Angeles","America/Lower_Princes","America/Maceio","America/Managua","America/Manaus","America/Marigot","America/Martinique","America/Matamoros","America/Mazatlan","America/Menominee","America/Merida","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/Montserrat","America/Nassau","America/New_York","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/New_Salem","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rankin_Inlet","America/Recife","America/Regina","America/Rio_Branco","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Sitka","America/St_Barthelemy","America/St_Johns","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Tortola","America/Vancouver","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/McMurdo","Antarctica/Rothera","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","Arctic/Longyearbyen","Asia/Aden","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Atyrau","Asia/Baghdad","Asia/Bahrain","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Chita","Asia/Choibalsan","Asia/Colombo","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kathmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Kuwait","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Muscat","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Phnom_Penh","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Riyadh","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Urumqi","Asia/Ust-Nera","Asia/Vientiane","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faroe","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/St_Helena","Atlantic/Stanley","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Currie","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/Lord_Howe","Australia/Melbourne","Australia/Perth","Australia/Sydney","Et
2c/GMT","Etc/GMT+1","Etc/GMT+10","Etc/GMT+11","Etc/GMT+12","Etc/GMT+2","Etc/GMT+3","Etc/GMT+4","Etc/GMT+5","Etc/GMT+6","Etc/GMT+7","Etc/GMT+8","Etc/GMT+9","Etc/GMT-1","Etc/GMT-10","Etc/GMT-11","Etc/GMT-12","Etc/GMT-2","Etc/GMT-3","Etc/GMT-4","Etc/GMT-5","Etc/GMT-6","Etc/GMT-7","Etc/GMT-8","Etc/GMT-9","Etc/UTC","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Busingen","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Guernsey","Europe/Helsinki","Europe/Isle_of_Man","Europe/Istanbul","Europe/Jersey","Europe/Kaliningrad","Europe/Kiev","Europe/Kirov","Europe/Lisbon","Europe/Ljubljana","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Mariehamn","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Oslo","Europe/Paris","Europe/Podgorica","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/San_Marino","Europe/Sarajevo","Europe/Saratov","Europe/Simferopol","Europe/Skopje","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Ulyanovsk","Europe/Uzhgorod","Europe/Vaduz","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zagreb","Europe/Zaporozhye","Europe/Zurich","Indian/Antananarivo","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Comoro","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Mayotte","Indian/Reunion","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Chuuk","Pacific/Easter","Pacific/Efate","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Midway","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Pohnpei","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Saipan","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Wake","Pacific/Wallis"];if(t=+t,!(-90<=(e=+e)&&e<=90&&-180<=t&&t<=180))throw new RangeError("invalid coordinates");if(90<=e)return"Etc/GMT";var o=-1,a=48*(180+t)/360.00000000000006,i=24*(90-e)/180.00000000000003,l=0|a,s=0|i,c=96*s+2*l;for(c=56*n.charCodeAt(c)+n.charCodeAt(c+1)-1995;c+r.length<3136;)c=56*n.charCodeAt(c=8*(o=o+c+1)+4*(s=0|(i=2*(i-s)%2))+2*(l=0|(a=2*(a-l)%2))+2304)+n.charCodeAt(c+1)-1995;return r[c+r.length-3136]}},996:(e,t,n)=>{"use strict";var r,o=n(841);o.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=function(e,t){if(!o.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,a=n in document;if(!a){var i=document.createElement("div");i.setAttribute(n,"return;"),a="function"==typeof i[n]}return!a&&r&&"wheel"===e&&(a=document.implementation.hasFeature("Events.wheel","3.0")),a}}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var a=r[e]={id:e,loaded:!1,exports:{}};return n[e].call(a.exports,a,a.exports,o),a.loaded=!0,a.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var a=Object.create(null);o.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var l=2&r&&n;("object"==typeof l||"function"==typeof l)&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach(e=>i[e]=()=>n[e]);return i.default=()=>n,o.d(a,i),a},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),o.nc=void 0,(()=>{"use strict";var e=o(87),t=o.t(e,2),n=o(907),r=o(617),a=o.n(r),i=o(462),l=o.n(i),s=o(222),c=o.n(s),u=o(513),p=o.n(u),d=o(189),f=o.n(d),m=o(378),h=o.n(m),g=o(242),x={};x.styleTagTransform=h(),x.setAttributes=p(),x.insert=c().bind(null,"head"),x.domAPI=l(),x.insertStyleElement=f(),a()(g.A,x),g.A&&g.A.locals&&g.A.locals;var y=o(330),v=function(e){return e.IMPERIAL="IMPERIAL",e.METRIC="METRIC",e}({});function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function Y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?Y(Object(n),!0).forEach(function(t){w(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 w(e,t,n){return(t=function(e){var t=function(e){if("object"!=b(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==b(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S="#FF0000";function j(e){var t;if(!e)return e;if(e=function(e){var t=I(M({},e));return Array.isArray(t.routes)&&(t.routes=t.routes.map(I)),t}(e),Array.isArray(e.routes)){var n,r,o=e.routes.map(N);return M(M({},e),{},{routes:o,activeRouteId:e.activeRouteId&&o.some(function(t){return t.id===e.activeRouteId})?e.activeRouteId:null===(n=o[0])||void 0===n?void 0:n.id,routeUiMode:null!==(r=e.routeUiMode)&&void 0!==r?r:T(e)})}var a=function(e){var t,n=!!e.geoJsonRoute||!!e.routeUrl,r=!!e.customRoutePoints&&e.customRoutePoints.length>0;return n||r?{id:"legacy-route-1",source:n?"gpx":"custom",geoJsonRoute:e.geoJsonRoute,routeUrl:e.routeUrl,customRoutePoints:e.customRoutePoints,color:e.routeColor||S,colorMode:"solid",widthMultiplier:null!==(t=e.routeWidth)&&void 0!==t?t:3,visible:!0}:null}(e),i=a?[a]:[];return M(M({},e),{},{routes:i,activeRouteId:null===(t=i[0])||void 0===t?void 0:t.id,routeUiMode:T(e)})}function T(e){return e.drawMode?"draw":e.editMode?"edit":"idle"}function N(e){var t,n,r,o;return M(M({},e),{},{color:null!==(t=e.color)&&void 0!==t?t:S,colorMode:null!==(n=e.colorMode)&&void 0!==n?n:"solid",widthMultiplier:null!==(r=e.widthMultiplier)&&void 0!==r?r:3,visible:null===(o=e.visible)||void 0===o||o})}function W(e){if(!e)return e;var t=M({},e);return Array.isArray(t.customRoutePoints)&&(t.customRoutePointsJson=JSON.stringify(t.customRoutePoints),delete t.customRoutePoints),t.geoJsonRoute&&!t.routeUrl&&(t.geoJsonRouteJson=JSON.stringify(t.geoJsonRoute),delete t.geoJsonRoute),t}function I(e){if(!e)return e;var t=M({},e);if("string"==typeof t.customRoutePointsJson){try{t.customRoutePoints=JSON.parse(t.customRoutePointsJson)}catch(e){}delete t.customRoutePointsJson}if("string"==typeof t.geoJsonRouteJson){try{t.geoJsonRoute=JSON.parse(t.geoJsonRouteJson)}catch(e){}delete t.geoJsonRouteJson}return t}function U(e){var t=W(M({},e));return Array.isArray(t.routes)&&(t.routes=t.routes.map(W)),t}function k(e){var t=(e.routes||[])[0],n=M({},e);return t?(n.geoJsonRoute=t.geoJsonRoute,n.routeUrl=t.routeUrl,n.customRoutePoints=t.customRoutePoints,n.routeColor=t.color,n.routeWidth=t.widthMultiplier,n.drawMode="draw"===e.routeUiMode,n.editMode="edit"===e.routeUiMode,n):(delete n.geoJsonRoute,delete n.routeUrl,delete n.routeColor,delete n.routeWidth,delete n.customRoutePoints,delete n.drawMode,delete n.editMode,n)}function D(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var C=function(e){return e*Math.PI/180};function L(e,t){var n=D(e,2),r=n[0],o=n[1],a=D(t,2),i=a[0],l=a[1],s=C(l-o),c=C(i-r),u=Math.sin(s/2),p=Math.sin(c/2),d=u*u+Math.cos(C(o))*Math.cos(C(l))*p*p;return 12742*Math.asin(Math.min(1,Math.sqrt(d)))}function O(e,t,n){var r=function(e){for(var t=0,n=1;n<e.length;n++)t+=L(e[n-1],e[n]);return t}(e),o=t?function(e){var t=e.filter(function(e){return"number"==typeof e&&Number.isFinite(e)}
2);if(!(t.length<2)){for(var n=0,r=1;r<t.length;r++){var o=t[r]-t[r-1];o>1&&(n+=o)}return n}}(t):void 0,a=n?function(e){var t=e.filter(function(e){return"string"==typeof e&&e.length>0});if(!(t.length<2)){var n=Date.parse(t[0]),r=Date.parse(t[t.length-1]);if(Number.isFinite(n)&&Number.isFinite(r)&&!(r<n))return Math.round((r-n)/1e3)}}(n):void 0;return{distanceKm:r,distanceMi:.621371*r,elevationM:o,elevationFt:void 0!==o?3.28084*o:void 0,durationSec:a,pointCount:e.length}}function E(e,t){var n=t?e.distanceMi:e.distanceKm,r=t?"mi":"km",o=n>=100?0:n>=10?1:2;return"".concat(n.toFixed(o)," ").concat(r)}function V(e,t){if(void 0===e.elevationM)return null;var n=t?e.elevationFt:e.elevationM,r=t?"ft":"m";return"".concat(Math.round(n)," ").concat(r)}function z(e){if(void 0===e.durationSec)return null;var t=Math.floor(e.durationSec/3600),n=Math.floor(e.durationSec%3600/60);return t>0?"".concat(t,"h ").concat(n,"m"):"".concat(n,"m")}function X(e){return X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},X(e)}function P(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return Z(c,"_invoke",function(n,r,o){var a,l,s,c=0,u=o||[],p=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,d.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!p&&c&&!o&&t<u.length;t++){var o,a=u[t],f=d.p,m=a[2];n>3?(o=m===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,d.v=r,d.n=a[1]):f<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,d.n=m,l=0))}if(o||n>1)return i;throw p=!0,r}return function(o,u,m){if(c>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!p;){a||(l?l<3?(l>1&&(d.n=-1),f(l,s)):d.n=s:d.v=s);try{if(c=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(p=d.n<0)?s:n.call(r,d))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:p}}}(n,o,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Z(t={},r,function(){return this}),t),p=c.prototype=l.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Z(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=c,Z(p,"constructor",c),Z(c,"constructor",s),s.displayName="GeneratorFunction",Z(c,o,"GeneratorFunction"),Z(p),Z(p,o,"Generator"),Z(p,r,function(){return this}),Z(p,"toString",function(){return"[object Generator]"}),(P=function(){return{w:a,m:d}})()}function Z(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Z=function(e,t,n,r){function a(t,n){Z(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Z(e,t,n,r)}function G(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function F(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){G(a,r,o,i,l,"next",e)}function l(e){G(a,r,o,i,l,"throw",e)}i(void 0)})}}function B(e){var t="function"==typeof Map?new Map:void 0;return B=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(R())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&Q(o,n.prototype),o}(e,arguments,H(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Q(n,e)},B(e)}function R(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(R=function(){return!!e})()}
2function Q(e,t){return Q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Q(e,t)}function H(e){return H=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},H(e)}function K(){var e,t="undefined"!=typeof window&&(null===(e=window.SHOPIFY_CONFIG)||void 0===e?void 0:e.strava)||{},n=t.endpoint||"https://strava-auth-703394682156.europe-west1.run.app",r=t.landingOrigin||"";if(!r)try{r=new URL(n).origin}catch(e){r=n}return{clientId:t.clientId||"59089",authorizeUrl:t.authorizeUrl||"https://www.strava.com/oauth/authorize",scope:t.scope||"read,activity:read_all",endpoint:n,landingOrigin:r}}var J=function(e){function t(e,n){var r,o,a,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=this,a=t,i=[n],a=H(a),r=function(e,t){if(t&&("object"==X(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(o,R()?Reflect.construct(a,i||[],H(o).constructor):a.apply(o,i))).code=e,r.name="StravaError",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Q(e,t)}(t,e),n=t,Object.defineProperty(n,"prototype",{writable:!1}),n;var n}(B(Error));function q(){var e;if("undefined"!=typeof window&&null!==(e=window.history)&&void 0!==e&&e.replaceState){var t=new URL(window.location.href);["stoken","suser","susername"].forEach(function(e){return t.searchParams.delete(e)}),window.history.replaceState({},document.title,t.toString())}}function _(){var e=K(),t="undefined"!=typeof window?window.location.origin:"",n="".concat(e.authorizeUrl,"?client_id=").concat(encodeURIComponent(e.clientId))+"&response_type=code"+"&redirect_uri=".concat(encodeURIComponent(e.endpoint))+"&approval_prompt=auto"+"&scope=".concat(encodeURIComponent(e.scope))+"&state=".concat(encodeURIComponent(t));return new Promise(function(t,r){var o=window.open(n,"StravaAuth","popup=true,width=500,height=650");if(o){var a=!1,i=function(){window.removeEventListener("message",l),clearInterval(s)},l=function(n){if(n.origin===e.landingOrigin){var r=n.data;if(r&&"pfc-strava-auth"===r.type&&r.stoken&&r.suser){a=!0,i();try{o.close()}catch(e){}t({stoken:r.stoken,suser:r.suser,susername:r.susername})}}};window.addEventListener("message",l);var s=setInterval(function(){a||o.closed&&(i(),r(new J("cancelled","Strava connection was cancelled.")))},700)}else r(new J("popup-blocked","Could not open the Strava window. Allow pop-ups, or upload a GPX file instead."))})}function $(e){return ee.apply(this,arguments)}function ee(){return ee=F(P().m(function e(t){var n,r,o,a,i,l,s;return P().w(function(e){for(;;)switch(e.p=e.n){case 0:return o=K(),e.p=1,e.n=2,fetch(o.endpoint,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({stoken:t.stoken,suser:t.suser})});case 2:return i=e.v,e.n=3,i.json();case 3:a=e.v,e.n=5;break;case 4:throw e.p=4,e.v,new J("network","Could not load your Strava routes. Please try again.");case 5:if(l=(null===(n=a)||void 0===n||null===(n=n.mapData)||void 0===n?void 0:n.geoJSON)||[],s=(null===(r=a)||void 0===r||null===(r=r.user)||void 0===r?void 0:r.data)||[],Array.isArray(l)&&0!==l.length){e.n=6;break}throw new J("empty","No routes found on your Strava account.");case 6:return e.a(2,l.map(function(e,t){return re(e,s[t],t)}).filter(function(e){return null!==e}))}},e,null,[[1,4]])})),ee.apply(this,arguments)}function te(){return ne.apply(this,arguments)}function ne(){return(ne=F(P().m(function e(){var t;return P().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,_();case 1:return t=e.v,e.a(2,$(t))}},e)}))).apply(this,arguments)}function re(e,t,n){var r="Feature"===(null==e?void 0:e.type)?e.geometry:e,o=null==r?void 0:r.coordinates;if(!r||"LineString"!==r.type||!Array.isArray(o)||o.length<2)return null;var a=function(e,t){if(e&&"number"==typeof e.distance){var n=e.distance/1e3;return{distanceKm:n,distanceMi:.621371*n,elevationM:"number"==typeof e.total_elevation_gain?e.total_elevation_gain:void 0,elevationFt:"number"==typeof e.total_elevation_gain?3.28084*e.total_elevation_gain:void 0,durationSec:"number"==typeof e.moving_time?e.moving_time:void 0,pointCount:t.length}}return O(t)}(t,o);return{id:"route-".concat(Date.now(),"-").concat(n,"-").concat(Math.random().toString(36).slice(2,6)),source:"gpx",name:t&&t.name||"Strava route ".concat(n+1),geoJsonRoute:{type:"Feature",properties:{},geometry:{type:"LineString",coordinates:o}},color:"#FF0000",colorMode:"solid",widthMultiplier:3,visible:!0,stats:a}}function oe(e,t,n){if(null!=n&&""!==n){var r=String(n).trim();r&&!/^(data:|blob:)/i.test(r)&&e(t,r.slice(0,300))}}function ae(e){return e?Object.values(e)[0]:void 0}function ie(){var e=window.bbFlush;if("function"==typeof e)try{e()}catch(e){}}var le=o(551),se=o.n(le),ce={UK:1.36,US:2.51}
2;function ue(e,t){var n,r,o,a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=t.mouldings.find(function(t){return t.code===e.mouldingCode})||null;if(!i||e.widthMm<=0||e.heightMm<=0)return{raw:0,frame:0,glaze:0,mount:0,paper:0,moulding:null,glazeOpt:null,mountOpt:null,paperOpt:null,bucket:null};var l=e.mountId?Math.max(0,e.mountBorderMm):0,s=e.widthMm+2*l,c=e.heightMm+2*l,u=2*(s+c)/1e3,p=s*c/1e6,d=e.widthMm*e.heightMm/1e6,f=null!==(n=ce[t.market||""])&&void 0!==n?n:1.36,m=u*i.pricePerMeter*1.1*f,h=t.glazing.options.find(function(t){return t.id===e.glazingId})||null,g=h?p*h.ratePerM2:0,x=e.mountId&&t.mount.options.find(function(t){return t.id===e.mountId})||null,y=x?(x.baseFee||0)+p*x.ratePerM2:0,v=a&&t.paper.options.find(function(t){return t.id===e.paperId})||null,b=v?(v.baseFee||0)+d*v.ratePerM2:0,Y=m+g+y+b,M=Math.max(Y,t.minOrderTotal||0),w=x?"m":"f",S="m"===w?null===(r=t.ladderPrices)||void 0===r?void 0:r.mount:null===(o=t.ladderPrices)||void 0===o?void 0:o.frame,j=i.hasLadder?function(e,t,n){var r=null;if("string"==typeof t)try{r=JSON.parse(t)}catch(e){r=null}else Array.isArray(t)&&(r=t);if(!Array.isArray(r))return null;var o=r.filter(function(e){return"number"==typeof e&&isFinite(e)}).sort(function(e,t){return e-t});if(!o.length)return null;var a=o.find(function(t){return t>=e-.001}),i=void 0===a?o[o.length-1]:a;return{id:"".concat(n).concat(Math.round(i)),price:i}}(M,S,w):null;return{raw:M,frame:m,glaze:g,mount:y,paper:b,moulding:i,glazeOpt:h,mountOpt:x,paperOpt:v,bucket:j}}function pe(e){return(e.mouldings||[]).filter(function(e){return e.hasLadder&&e.pricePerMeter>0})}function de(e,t){var n,r,o,a,i,l=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=t.mouldings.find(function(t){return t.code===e.mouldingCode}),c=(null==s?void 0:s.mouldingWidthMm)||0,u=e.mountId?Math.max(0,e.mountBorderMm):0,p=e.widthMm+2*u+2*c,d=e.heightMm+2*u+2*c,f=Math.min(p,d),m=function(e){return"".concat(Number((e/10).toFixed(1)),"cm")};if(e.widthMm<=0||e.heightMm<=0)return"Enter a width and height greater than zero.";if(f<t.minSideMm)return"Too small to frame — the finished frame must be at least ".concat(m(t.minSideMm)," on every side.");var h=l?null!==(n=t.maxPrintWidthMm)&&void 0!==n?n:609.6:null!==(r=t.maxFrameOnlyWidthMm)&&void 0!==r?r:660.4,g=null!==(o=t.maxHeightMm)&&void 0!==o?o:1300,x=null!==(a=t.maxMountBorderMm)&&void 0!==a?a:152.4,y=null!==(i=t.maxMountedExternalMm)&&void 0!==i?i:1e3,v=Math.min(e.widthMm,e.heightMm),b=Math.max(e.widthMm,e.heightMm);return v>h||b>g?"".concat(l?"Printed artwork":"Frame-only opening"," can be up to ").concat(m(h)," × ").concat(m(g)," — either way round."):u>x?"Mount border can be up to ".concat(m(x)," on each side."):e.mountId&&(p>y||d>y)?"With a mount, the outside frame size can be up to ".concat(m(y)," × ").concat(m(y),"."):null}function fe(e){var t,n,r,o,a,i;return{widthMm:210,heightMm:297,lockAspect:!1,unit:"cm",mouldingCode:(null===(t=e.mouldings[0])||void 0===t?void 0:t.code)||"",glazingId:(null===(n=e.glazing.options[0])||void 0===n?void 0:n.id)||"",mountId:e.mount.allowNone?null:(null===(r=e.mount.options[0])||void 0===r?void 0:r.id)||null,mountBorderMm:50,mountColour:"white",mountPattern:(null===(o=se().MOUNT_PATTERNS[0])||void 0===o?void 0:o.key)||"vertical",mountStripeHex:(null===(a=se().STRIPE_PRESETS[0])||void 0===a?void 0:a.hex)||"#23395d",paperId:(null===(i=e.paper.options[0])||void 0===i?void 0:i.id)||"",imageCrop:null}}var me=[{label:"A4",widthMm:210,heightMm:297},{label:"A3",widthMm:297,heightMm:420},{label:"A2",widthMm:420,heightMm:594},{label:"A1",widthMm:594,heightMm:841},{label:"30×40",widthMm:300,heightMm:400},{label:"40×50",widthMm:400,heightMm:500},{label:"50×70",widthMm:500,heightMm:700},{label:"60×80",widthMm:600,heightMm:800}];function he(e,t){return"cm"===t?Math.round(e/10*10)/10:"in"===t?Math.round(e/25.4*100)/100:Math.round(e)}function ge(e,t){return"cm"===t?Math.round(10*e):"in"===t?Math.round(25.4*e*100)/100:Math.round(e)}function xe(e,t){return!e||t<=0?null:e/(t/25.4)}var ye=[{id:"linear",name:"Linear",description:"Tall bars rising from baseline",barC
2ount:140},{id:"linear-mirror",name:"Mirror",description:"Bars mirrored above/below center",barCount:140},{id:"linear-split-3",name:"Split 3",description:"Waveform across 3 stacked rows",barCount:180},{id:"linear-split-4",name:"Split 4",description:"Waveform across 4 stacked rows",barCount:240},{id:"gradient-bars",name:"Gradient Bars",description:"Linear bars fading downward",barCount:140},{id:"ribbon",name:"Ribbon",description:"Filled mirrored area",barCount:200},{id:"curve",name:"Curve",description:"Smoothed waveform line",barCount:200},{id:"radial",name:"Radial",description:"Bars radiating outward",barCount:180},{id:"radial-mirror",name:"Radial Mirror",description:"Bars in + out from circle",barCount:180},{id:"concentric-rings",name:"Concentric Rings",description:"Three stacked radial rings",barCount:240},{id:"dots",name:"Dots",description:"Five-row dot grid",barCount:200}],ve=[{id:"light",name:"White",background:"#FFFFFF",waveColor:"#111111",textColor:"#111111"},{id:"cream",name:"Cream",background:"#F5EFE3",waveColor:"#3B2A1A",textColor:"#3B2A1A"},{id:"dark",name:"Midnight",background:"#0F172A",waveColor:"#FFFFFF",textColor:"#FFFFFF"},{id:"black",name:"Black",background:"#000000",waveColor:"#FFFFFF",textColor:"#FFFFFF"},{id:"sand",name:"Sand",background:"#E7D9C3",waveColor:"#5A4632",textColor:"#5A4632"},{id:"blush",name:"Blush",background:"#F6E1E1",waveColor:"#7A2E3A",textColor:"#7A2E3A"},{id:"sage",name:"Sage",background:"#DDE6D5",waveColor:"#3A4A33",textColor:"#3A4A33"},{id:"sky",name:"Sky",background:"#DCE8F2",waveColor:"#1E3A5F",textColor:"#1E3A5F"},{id:"coral",name:"Coral",background:"#FFF4EE",waveColor:"#E2562B",textColor:"#E2562B"},{id:"mustard",name:"Mustard",background:"#FBF3DD",waveColor:"#C58A11",textColor:"#5A4A18"},{id:"forest",name:"Forest",background:"#13231A",waveColor:"#9CCBA0",textColor:"#E6F0E6"},{id:"wine",name:"Wine",background:"#2A0E16",waveColor:"#E0A6B2",textColor:"#F3DEE3"},{id:"navy",name:"Navy",background:"#10204A",waveColor:"#9DB8E8",textColor:"#E6EDFA"},{id:"plum",name:"Plum",background:"#241433",waveColor:"#C9A6E8",textColor:"#EDE2F5"},{id:"charcoal",name:"Charcoal",background:"#1C1C1C",waveColor:"#D4AF37",textColor:"#EDE6D0"},{id:"teal",name:"Teal",background:"#08312F",waveColor:"#7FD1C4",textColor:"#DDF2EE"}];function be(){return{source:"preview",barData:[],barCount:240,waveformStyle:"linear-split-4",amplitude:1,waveColor:"#FFFFFF",backgroundColor:"#0F172A",showAlbumArt:!1,scanCode:{enabled:!1,type:"none",position:"br",sizePct:10,color:"#FFFFFF"}}}var Ye=["#000000","#555555","#FFFFFF","#DC2626","#9D174D","#EC4899","#EA580C","#D4AF37","#F59E0B","#059669","#15803D","#84CC16","#2563EB","#0E7490","#1E3A5F","#7C3AED","#8B5E3C","#6B2D2D"],Me=[{name:"Jost",value:"tpe-font-Jost"},{name:"Roboto",value:"tpe-font-Roboto"},{name:"Oswald",value:"tpe-font-Oswald"},{name:"Playfair Display",value:"tpe-font-Playfair_Display"},{name:"Bebas Neue",value:"tpe-font-Bebas_Neue"},{name:"Dancing Script",value:"tpe-font-Dancing_Script"},{name:"Inconsolata",value:"tpe-font-Inconsolata"},{name:"Pacifico",value:"tpe-font-Pacifico"}],we=[{id:"p-9x12",imperial:'9" x 12"',metric:"22cm x 30cm",widthIn:9,heightIn:12,widthMm:229,heightMm:305,unit:"I",category:"Portrait",priceMultiplier:1},{id:"p-12x16",imperial:'12" x 16"',metric:"30cm x 40cm",widthIn:12,heightIn:16,widthMm:305,heightMm:406,unit:"I",category:"Portrait",priceMultiplier:1.4},{id:"p-18x24",imperial:'18" x 24"',metric:"45cm x 60cm",widthIn:18,heightIn:24,widthMm:457,heightMm:610,unit:"I",category:"Portrait",priceMultiplier:2},{id:"p-24x32",imperial:'24" x 32"',metric:"60cm x 80cm",widthIn:24,heightIn:32,widthMm:610,heightMm:813,unit:"I",category:"Portrait",priceMultiplier:2.8},{id:"l-12x9",imperial:'12" x 9"',metric:"30cm x 22cm",widthIn:12,heightIn:9,widthMm:305,heightMm:229,unit:"I",category:"Landscape",priceMultiplier:1},{id:"l-16x12",imperial:'16" x 12"',metric:"40cm x 30cm",widthIn:16,heightIn:12,widthMm:406,heightMm:305,unit:"I",category:"Landscape",priceMultiplier:1.4},{id:"l-24x18",imperial:'24" x 18"',metric:"60cm x 45cm",widthIn:24,heightIn:18,widthMm:610,heightMm:457,unit:"I",category:"Landscape",priceMultiplier:2},{id:"l-32x24",imperial:'32" x 24"',metric:"80cm x 60cm",widthIn:32,heightIn:24,widthMm:813,heightMm:610,unit:"I",category:"Landscape",priceMultiplier:2.8},{id:"s-12x12",imperial:'12" x 12"',metric:"30cm x 30cm",widthIn:12,heightIn:12,widthMm:305,heightMm:305,unit:"I",category:"Square",priceMultiplier:1.2},{id:"s-16x16",imperial:'16" x 16"',metric:"40cm x 40cm",widthIn:16,heightIn:16,widthMm:406,heightMm:406,unit:"I",category:"Square",priceMultiplier:1.6},{id:"s-20x20",imperial:'20" x 20"',metric:"50cm x 50cm",widthIn:20,heightIn:20,widthMm:508,heightMm:508,unit:"I",category:"Square",priceMultiplier:2.2},{id:"s-24x24",imperial:'24" x 24"',metric:"60cm x 60cm",widthIn:24,heightIn:24,widthMm:610,heightMm:610,unit:"I",category:"Square",priceMultiplier:2.6}
2,{id:"v-14x40",imperial:'14" x 40"',metric:"35cm x 100cm",widthIn:14,heightIn:40,widthMm:356,heightMm:1016,unit:"I",category:"Vertoramic",priceMultiplier:2.5},{id:"pan-40x14",imperial:'40" x 14"',metric:"100cm x 35cm",widthIn:40,heightIn:14,widthMm:1016,heightMm:356,unit:"I",category:"Panoramic",priceMultiplier:2.5},{id:"pan-24x6",imperial:'24" x 6"',metric:"60cm x 15cm",widthIn:24,heightIn:6,widthMm:610,heightMm:152,unit:"I",category:"Panoramic",priceMultiplier:1.8},{id:"pan-40x10",imperial:'40" x 10"',metric:"100cm x 25cm",widthIn:40,heightIn:10,widthMm:1016,heightMm:254,unit:"I",category:"Panoramic",priceMultiplier:2.8},{id:"v-6x24",imperial:'6" x 24"',metric:"15cm x 60cm",widthIn:6,heightIn:24,widthMm:152,heightMm:610,unit:"I",category:"Vertoramic",priceMultiplier:1.8},{id:"v-10x40",imperial:'10" x 40"',metric:"25cm x 100cm",widthIn:10,heightIn:40,widthMm:254,heightMm:1016,unit:"I",category:"Vertoramic",priceMultiplier:2.8},{id:"v-35x100cm",imperial:'~13.8" x 39.4"',metric:"35cm x 100cm",widthIn:13.78,heightIn:39.37,widthMm:350,heightMm:1e3,unit:"M",category:"Vertoramic",priceMultiplier:2.5},{id:"pan-100x35cm",imperial:'~39.4" x 13.8"',metric:"100cm x 35cm",widthIn:39.37,heightIn:13.78,widthMm:1e3,heightMm:350,unit:"M",category:"Panoramic",priceMultiplier:2.5},{id:"v-25x100cm",imperial:'~9.8" x 39.4"',metric:"25cm x 100cm",widthIn:9.84,heightIn:39.37,widthMm:250,heightMm:1e3,unit:"M",category:"Vertoramic",priceMultiplier:2.8},{id:"pan-100x25cm",imperial:'~39.4" x 9.8"',metric:"100cm x 25cm",widthIn:39.37,heightIn:9.84,widthMm:1e3,heightMm:250,unit:"M",category:"Panoramic",priceMultiplier:2.8},{id:"v-15x60cm",imperial:'~5.9" x 23.6"',metric:"15cm x 60cm",widthIn:5.91,heightIn:23.62,widthMm:150,heightMm:600,unit:"M",category:"Vertoramic",priceMultiplier:1.8},{id:"pan-60x15cm",imperial:'~23.6" x 5.9"',metric:"60cm x 15cm",widthIn:23.62,heightIn:5.91,widthMm:600,heightMm:150,unit:"M",category:"Panoramic",priceMultiplier:1.8},{id:"p-8x12",imperial:'8" x 12"',metric:"20cm x 30cm",widthIn:8,heightIn:12,widthMm:203,heightMm:305,unit:"I",category:"Portrait",priceMultiplier:1.5},{id:"p-12x18",imperial:'12" x 18"',metric:"30cm x 45cm",widthIn:12,heightIn:18,widthMm:305,heightMm:457,unit:"I",category:"Portrait",priceMultiplier:2},{id:"p-16x24",imperial:'16" x 24"',metric:"40cm x 60cm",widthIn:16,heightIn:24,widthMm:406,heightMm:610,unit:"I",category:"Portrait",priceMultiplier:2.5},{id:"p-24x36",imperial:'24" x 36"',metric:"60cm x 90cm",widthIn:24,heightIn:36,widthMm:610,heightMm:914,unit:"I",category:"Portrait",priceMultiplier:3},{id:"p-20x30cm",imperial:'~7.9" x 11.8"',metric:"20cm x 30cm",widthIn:7.87,heightIn:11.81,widthMm:200,heightMm:300,unit:"M",category:"Portrait",priceMultiplier:1.5},{id:"p-30x45cm",imperial:'~11.8" x 17.7"',metric:"30cm x 45cm",widthIn:11.81,heightIn:17.72,widthMm:300,heightMm:450,unit:"M",category:"Portrait",priceMultiplier:2},{id:"p-40x60cm",imperial:'~15.7" x 23.6"',metric:"40cm x 60cm",widthIn:15.75,heightIn:23.62,widthMm:400,heightMm:600,unit:"M",category:"Portrait",priceMultiplier:2.5},{id:"p-60x90cm",imperial:'~23.6" x 35.4"',metric:"60cm x 90cm",widthIn:23.62,heightIn:35.43,widthMm:600,heightMm:900,unit:"M",category:"Portrait",priceMultiplier:3},{id:"p-8x10",imperial:'8" x 10"',metric:"20cm x 25cm",widthIn:8,heightIn:10,widthMm:203,heightMm:254,unit:"I",category:"Portrait",priceMultiplier:.75},{id:"l-10x8",imperial:'10" x 8"',metric:"25cm x 20cm",widthIn:10,heightIn:8,widthMm:254,heightMm:203,unit:"I",category:"Landscape",priceMultiplier:.75},{id:"p-16x20",imperial:'16" x 20"',metric:"40cm x 50cm",widthIn:16,heightIn:20,widthMm:406,heightMm:508,unit:"I",category:"Portrait",priceMultiplier:1.7},{id:"l-20x16",imperial:'20" x 16"',metric:"50cm x 40cm",widthIn:20,heightIn:16,widthMm:508,heightMm:406,unit:"I",category:"Landscape",priceMultiplier:1.7},{id:"s-30x30cm",imperial:'~11.8" x 11.8"',metric:"30cm x 30cm",widthIn:11.81,heightIn:11.81,widthMm:300,heightMm:300,unit:"M",category:"Square",priceMultiplier:1.05},{id:"s-40x40cm",imperial:'~15.7" x 15.7"',metric:"40cm x 40cm",widthIn:15.75,heightIn:15.75,widthMm:400,heightMm:400,unit:"M",category:"Square",priceMultiplier:1.55},{id:"s-50x50cm",imperial:'~19.7" x 19.7"',metric:"50cm x 50cm",widthIn:19.69,heightIn:19.69,widthMm:500,heightMm:500,unit:"M",category:"Square",priceMultiplier:2.1},{id:"s-60x60cm",imperial:'~23.6" x 23.6"',metric:"60cm x 60cm",widthIn:23.62,heightIn:23.62,widthMm:600,heightMm:600,unit:"M",category:"Square",priceMultiplier:2.5},{id:"p-22x30cm",imperial:'~8.7" x 11.8"',metric:"22cm x 30cm",widthIn:8.66,heightIn:11.81,widthMm:220,heightMm:300,unit:"M",category:"Portrait",priceMultiplier:1},{id:"l-30x22cm",imperial:'~11.8" x 8.7"',metric:"30cm x 22cm",widthIn:11.81,heightIn:8.66,widthMm:300,heightMm:220,unit:"M",category:"Landscape",priceMultiplier:1},{id:"p-30x40cm",imperial:'~11.8" x 15.7"',metric:"30cm x 40cm",widthIn:11.81,heightIn:15.75,widthMm:300,heightMm:400,unit:"M",category:"Portrait",priceMultiplier:1.4},{id:"l-40x30cm",imperial:'~15.7" x 11.8"',metric:"40cm x 30cm",widthIn:15.75,heightIn:11.81,widthMm:400,heightMm:300,unit:"M",category:"Landscape",priceMultiplier:1.4},{id:"p-40x50cm",imperial:'~15.7" x 19.7"',metric:"40cm x 50cm",widthIn:15.75,heightIn:19.69,widthMm:400,heightMm:500,unit:"M",category:"Portrait",priceMultiplier:1.7},{id:"l-50x40cm",imperial:'~19.7" x 15.7"',metric:"50cm x 40cm",widthIn:19.69,heightIn:15.75,widthMm:500,heightMm:400,unit:"M",category:"Landscape",priceMultiplier:1.7},{id:"p-45x60cm",imperial:'~17.7" x 23.6"',metric:"45cm x 60cm",widthIn:17.72,heightIn:23.62,widthMm:450,heightMm:600,unit:"M",category:"Portrait",priceMultiplier:2},{id:"l-60x45cm",imperial:'~23.6" x 17.7"',metric:"60cm x 45cm",widthIn:23.62,heightIn:17.72,widthMm:600,heightMm:450,unit:"M",category:"Landscape",priceMultiplier:2},{id:"p-60x80cm",imperial:'~23.6" x 31.5"',metric:"60cm x 80cm",widthIn:23.62,heightIn:31.5,widthMm:600,heightMm:800,unit:"M",category:"Portrait",priceMultiplier:2.8},{id:"l-80x60cm",imperial:'~31.5" x 23.6"',metric:"80cm x 60cm",widthIn:31.5,heightIn:23.62,widthMm:800,heightMm:600,unit:"M",category:"Landscape",priceMultiplier:2.8},{id:"p-a4",imperial:'8.27" x 11.69"',metric:"A4 (21cm × 29.7cm)",widthIn:8.27,heightIn:11.69,widthMm:210,heightMm:297,unit:"M",aPaperKey:"A4",category:"Portrait",priceMultiplier:.9},{id:"l-a4",imperial:'11.69" x 8.27"',metric:"A4 Landscape (29.7cm × 21cm)",widthIn:11.69,heightIn:8.27,widthMm:297,heightMm:210,unit:"M",aPaperKey:"A4",category:"Landscape",priceMultiplier:.9},{id:"p-a3",imperial:'11.69" x 16.54"',metric:"A3 (29.7cm × 42cm)",widthIn:11.69,heightIn:16.54,widthMm:297,heightMm:420,unit:"M",aPaperKey:"A3",category:"Portrait",priceMultiplier:1.4},{id:"l-a3",imperial:'16.54" x 11.69"',metric:"A3 Landscape (42cm × 29.7cm)",widthIn:16.54,heightIn:11.69,widthMm:420,heightMm:297,unit:"M",aPaperKey:"A3",category:"Landscape",priceMultiplier:1.4},{id:"p-a2",imperial:'16.54" x 23.39"',metric:"A2 (42cm × 59.4cm)",widthIn:16.54,heightIn:23.39,widthMm:420,heightMm:594,unit:"M",aPaperKey:"A2",category:"Portrait",priceMultiplier:2},{id:"l-a2",imperial:'23.39" x 16.54"',metric:"A2 Landscape (59.4cm × 42cm)",widthIn:23.39,heightIn:16.54,widthMm:594,he
2ightMm:420,unit:"M",aPaperKey:"A2",category:"Landscape",priceMultiplier:2},{id:"p-a1",imperial:'23.39" x 33.11"',metric:"A1 (59.4cm × 84.1cm)",widthIn:23.39,heightIn:33.11,widthMm:594,heightMm:841,unit:"M",aPaperKey:"A1",category:"Portrait",priceMultiplier:4},{id:"l-a1",imperial:'33.11" x 23.39"',metric:"A1 Landscape (84.1cm × 59.4cm)",widthIn:33.11,heightIn:23.39,widthMm:841,heightMm:594,unit:"M",aPaperKey:"A1",category:"Landscape",priceMultiplier:4}],Se=[{id:"none",name:"No Frame (Print Only)",cssClass:"tpe-border-0 tpe-shadow-sm",priceAddon:0,thicknessCm:0},{id:"white-wood",name:"White Wood",skuCode:"CREATE20X20WADDON",cssClass:"",style:{backgroundColor:"#f3f3f0"},priceAddon:30,thicknessCm:1.7},{id:"black-wood",name:"Black Wood",skuCode:"CREATE20X20BADDON",cssClass:"tpe-bg-black",priceAddon:30,thicknessCm:1.7},{id:"gold-wood",name:"Gold Wood",skuCode:"CREATE20X20GADDON",cssClass:"tpe-bg-neutral-900",style:{backgroundImage:'url("https://res.cloudinary.com/dmoqthczr/image/upload/v1677642975/Frame%20Patterns/teddington-deepgold_kbqotw.jpg")'},priceAddon:30,thicknessCm:1.7},{id:"matt-black",name:"Matt Black",skuCode:"ALPHA180MBADDON",cssClass:"tpe-bg-neutral-900",priceAddon:25,thicknessCm:.79},{id:"brushed-copper",name:"Brushed Copper",skuCode:"ALPHA180BCADDON",cssClass:"tpe-bg-orange-300",style:{backgroundImage:'url("https://printframeco-fulfilment.s3.us-east-1.amazonaws.com/mouldings/1780137507017-frame-alpha-bc.jpg")'},priceAddon:45,thicknessCm:.79},{id:"brushed-gold",name:"Brushed Champagne Gold",skuCode:"ALPHA180CGADDON",cssClass:"tpe-bg-yellow-100",style:{backgroundImage:'url("https://printframeco-fulfilment.s3.us-east-1.amazonaws.com/mouldings/1780137629146-frame-alpha-bg.png")'},priceAddon:45,thicknessCm:.79},{id:"white-box-float",name:"White Box Frame (Float)",skuCode:"CREATE20X33WADDON",cssClass:"",style:{backgroundColor:"#f3f3f0"},priceAddon:50,thicknessCm:2,type:"box_float"},{id:"black-box-float",name:"Black Box Frame (Float)",skuCode:"CREATE20X33BADDON",cssClass:"tpe-bg-black",priceAddon:50,thicknessCm:2,type:"box_float"},{id:"white-gallery",name:"White Gallery Frame",skuCode:"B220X33WADDON",cssClass:"",style:{backgroundColor:"#f3f3f0"},priceAddon:50,thicknessCm:2},{id:"black-gallery",name:"Black Gallery Frame",skuCode:"B220X33BADDON",cssClass:"tpe-bg-black",priceAddon:50,thicknessCm:2},{id:"gold-gallery",name:"Dark Gold Gallery Frame",skuCode:"B220X33GADDON",cssClass:"tpe-bg-yellow-500",style:{backgroundImage:'url("https://res.cloudinary.com/dmoqthczr/image/upload/v1677642975/Frame%20Patterns/teddington-deepgold_kbqotw.jpg")'},priceAddon:50,thicknessCm:2},{id:"alberta-white-50",name:"Alberta White",skuCode:"ALBERTA50WADDON",cssClass:"tpe-bg-neutral-900",style:{backgroundImage:'url("https://res.cloudinary.com/dmoqthczr/image/upload/v1762126335/Frame%20Patterns/2651WH-alberta-white_yfwx7q.jpg")'},priceAddon:30,thicknessCm:5},{id:"alberta-white-84",name:"Alberta White",skuCode:"ALBERTA84WADDON",cssClass:"tpe-bg-neutral-900",style:{backgroundImage:'url("https://res.cloudinary.com/dmoqthczr/image/upload/v1762126335/Frame%20Patterns/2651WH-alberta-white_yfwx7q.jpg")'},priceAddon:30,thicknessCm:8.4},{id:"alberta-black-50",name:"Alberta Black",skuCode:"ALBERTA50BADDON",cssClass:"tpe-bg-neutral-900",priceAddon:30,thicknessCm:5},{id:"alberta-black-84",name:"Alberta Black",skuCode:"ALBERTA84BADDON",cssClass:"tpe-bg-neutral-900",priceAddon:30,thicknessCm:8.4},{id:"pfc-black-metal",name:"Black Metal (Matt)",skuCode:"PFC-FRAME-NAMB",cssClass:"tpe-bg-neutral-900",priceAddon:0,thicknessCm:.79},{id:"pfc-gold-metal",name:"Gold Metal (Brushed)",skuCode:"PFC-FRAME-NABG",cssClass:"tpe-bg-yellow-100",style:{backgroundImage:'url("https://printframeco-fulfilment.s3.us-east-1.amazonaws.com/mouldings/1780137629146-frame-alpha-bg.png")'},priceAddon:0,thicknessCm:.79},{id:"pfc-copper-metal",name:"Copper Metal (Brushed)",skuCode:"PFC-FRAME-NABC",cssClass:"tpe-bg-orange-300",style:{backgroundImage:'url("https://printframeco-fulfilment.s3.us-east-1.amazonaws.com/mouldings/1780137507017-frame-alpha-bc.jpg")'},priceAddon:0,thicknessCm:.79},{id:"pfc-black-wood-17x17",name:"Black Wood (17x17)",skuCode:"PFC-FRAME-CC17X17BKC",cssClass:"tpe-bg-black",priceAddon:0,thicknessCm:1.7},{id:"pfc-white-wood-17x17",name:"White Wood (17x17)",skuCode:"PFC-FRAME-CC17X17WHC",cssClass:"",style:{backgroundColor:"#f3f3f0"},priceAddon:0,thicknessCm:1.7}],je={none:{description:"A standalone high-quality giclée print without a frame. We use a 12-colour printing process to ensure rich, vibrant colours and deep blacks. This option is ideal if you plan to use your own frame or prefer a casual, pinned-up display.",paper:"Printed on premium 310gsm Cotton Rag paper. This museum-quality paper is acid-free and archival, designed to resist fading and yellowing for over 100 years.",features:["Museum-quality Giclée print","Sustainably sourced paper","Water-based inks"]},"matt-black":{description:"A bespoke gallery-grade frame with a premium anodized matt black finish. Handmade and professionally framed in the UK using premium materials sourced from Germany.",paper:"Printed on thick 310gsm archival cotton rag paper, acid free and contains 100% cotton rag fibres, which are longer, stronger and more durable than wood fibres. Designed specifically for high quality fine art & photographic inkjet reproduction, it ensures a print life of more than 85 years, meeting the Fine Art Trade Guild lightfastness requirements of '6 or more on the Blue Wool Scale'.",features:["Aluminium frame manufactured in Germany","Modern slim profile","Premium anodised finish","Museum grade 2mm thick acrylic glazing with high optical clarity"]},"white-wood":{description:"A bespoke gallery-grade frame with a white painted finish. Handmade and professionally framed in the UK using premium wood mouldings manufactured in Italy",paper:"Printed on thick 310gsm archival cotton rag paper, acid free and contains 100% cotton rag fibres, which are longer, stronger and more durable than wood fibres. Designed specifically for high quality fine art & photographic inkjet reproduction, it ensures a print life of more than 85 years, meeting the Fine Art Trade Guild lightfastness requirements of '6 or more on the Blue Wool Scale'.",features:["Wood mouldings manufactured in Italy","FSC certified wood","Solid wood painted white","Museum grade 2mm thick acrylic glazing with high optical clarity"]},"black-wood":{description:"A bespoke gallery-grade frame with a premium black painted finish. Handmade and professionally framed in the UK using premium wood mouldings manufactured in Italy",paper:"Printed on thick 310gsm archival cotton rag paper, acid free and contains 100% cotton rag fibres, which are longer, stronger and more durable than wood fibres. Designed specifically for high quality fine art & photographic inkjet reproduction, it ensures a print life of more than 85 years, meeting the Fine Art Trade Guild lightfastness requirements of '6 or more on the Blue Wool Scale'.",features:["Wood mouldings manufactured in Italy","FSC certified wood","Solid wood painted black","Museum grade 2mm thick acrylic glazing with high optical clarity"]},"gold-wood":{description:"A bespoke gallery-grade frame with a premium metallic gold luxe painted finish. Handmade and professionally framed in the UK using premium wood mouldings manufactured in Italy.",paper:"Printed on thick 310gsm archival cotton rag paper, acid free and contains 100% cotton rag fibres, which are longer, stronger and more durable than wood fibres. Designed specifically for high quality fine art & photographic inkjet reproduction, it ensures a print life of more than 85 years, meeting the Fine Art Trade Guild lightfastness requirements of '6 or more on the Blue Wool Scale'.",features:["Wood mouldings manufactured in Italy","FSC certified wood","Solid wood painted black","Museum grade 2mm thick acrylic glazing with high optical clarity"]},"brushed-copper":{description:"A bespoke gallery-grade frame with a premium anodized brushed copper finish. Handmade and professionally framed in the UK using premium materials sourced from Germany.",paper:"Printed on thick 310gsm archival cotton rag paper, acid free and contains 100% cotton rag fibres, which are longer, stronger and more durable than wood fibres. Designed specifically for high quality fine art & photographic inkjet reproduction, it ensures a print life of more than 85 years, meeting the Fine Art Trade Guild lightfastness requirements of '6 or more on the Blue Wool Scale'.",features:["Aluminium frame manufactured in Germany","Modern slim profile","Premium anodised finish","Museum grade 2mm thick acrylic glazing with high optical clarity"]},"brushed-gold":{description:"A bespoke gallery-grade frame with a premium anodized brushed champagne gold finish. Handmade and professionally framed in the UK using premium materials sourced from Germany.",paper:"Printed on thick 310gsm archival cotton rag paper, acid free and contains 100% cotton rag fibres, which are longer, stronger and more durable than wood fibres. Designed specifically for high quality fine art & photographic inkjet reproduction, it ensures a print life of more than 85 years, meeting the Fine Art Trade Guild lightfastness requirements of '6 or more on the Blue Wool Scale'.",features:["Aluminium frame manufactured in Germany","Modern slim profile","Premium anodised finish","Museum grade 2mm thick acrylic glazing with high optical clarity"]},"white-box-float":{description:"A bespoke gallery-grade solid wood frame with a painted white finish. Handmade and professionally framed in the UK using premium materials sourced from Italy. The artwork is professionally float mounted with a shadow gap between the print and the frame edge. The print appears to float inside the frame, adding depth and a premium gallery feel.",paper:"Printed on thick 310gsm archival cotton rag paper, acid free and contains 100% cotton rag fibres, which are longer, stronger and more durable than wood fibres. Designed specifically for high quality fine art & photographic inkjet reproduction, it ensures a print life of more than 85 years, meeting the Fine Art Trade Guild lightfastness requirements of '6 or more on the Blue Wool Scale'.",features:["Solid wood mouldings manufactured in Italy","Artwork professionally float mounted","Internal spacers create floating effect","Museum grade 2mm thick acrylic glazing with high optical clarity"]},"black-box-float":{description:"A bespoke gallery-grade solid wood frame with a painted black finish. Handmade and professionally framed in the UK using premium materials sourced from Italy. The artwork is professionally float mounted with a shadow gap between the print and the frame edge. The print appears to float inside the frame, adding depth and a premium gallery feel.",paper:"Printed on thick 310gsm archival cotton rag paper, acid free and contains 100% cotton rag fibres, which are longer, stronger and more durable than wood fibres. Designed specifically for high quality fine art & photographic inkjet reproduction, it ensures a print life of more than 85 years, meeting the Fine Art Trade Guild lightfastness requirements of '6 or more on the Blue Wool Scale'.",features:["Solid wood mouldings manufactured in Italy","Artwork professionally float mounted","Internal spacers create floating effect","Museum grade 2mm thick acrylic glazing with high optical clarity"]},"white-gallery":{description:"A bespoke gallery-grade solid wood frame with a painted white finish. Handmade and professionally framed in the UK using premium materials sourced from Italy. The artwork is professionally float mounted with a shadow gap between the print and the frame edge. The print appears to float inside the frame, adding depth and a premium gallery feel.",paper:"Printed on thick 310gsm archival cotton rag paper, acid free and contains 100% cotton rag fibres, which are longer, stronger and more durable than wood fibres. Designed specifically for high quality fine art & photographic inkjet reproduction, it ensures a print life of more than 85 years, meeting the Fine Art Trade Guild lightfastness requirements of '6 or more on the Blue Wool Scale'.",features:["Solid wood mouldings manufactured in Italy","Pairs well with our thick mounts","Museum grade 2mm thick acrylic glazing with high optical clarity"]},"black-gallery":{description:"A bespoke gallery-grade solid wood frame with a painted black finish. Handmade and professionally framed in the UK using premium materials sourced from Italy. The artwork is professionally float mounted with a shadow gap between the print and the frame edge. The print appears to float inside the frame, adding depth and a premium gallery feel.",paper:"Printed on thick 310gsm archival cotton rag paper, acid free and contains 100% cotton rag fibres, which are longer, stronger and more durable than wood fibres. Designed specifically for high quality fine art & photographic inkjet reproduction, it ensures a print life of more than 85 years, meeting the Fine Art Trade Guild lightfastness requirements of '6 or more on the Blue Wool Scale'.",features:["Solid wood mouldings manufactured in Italy","Pairs well with our thick mounts","Museum grade 2mm thick acrylic glazing with high optical clarity"]},"gold-gallery":{description:"A bespoke gallery-grade wood frame with a deep gold finish. Handmade and professionally framed in the UK using premium materials sourced from Italy.",paper:"Printed on thick 310gsm archival cotton rag paper, acid free and contains 100% cotton rag fibres, which are longer, stronger and more durable than wood fibres. Designed specifically for high quality fine art & photographic inkjet reproduction, it ensures a print life of more than 85 years, meeting the Fine Art Trade Guild lightfastness requirements of '6 or more on the Blue Wool Scale'.",features:["Solid wood mouldings manufactured in Italy","Pairs well with our thick mounts","Museum grade 2mm thick acrylic glazing with high optical clarity"]},"alberta-white-50":{description:"Solid wood gallery-grade cassetta frame style created with an inner and outer molding separated by a central flat recessed band called the frieze. This frame style creates a double frame effect which compliments artwork perfectly.",paper:"Printed on thick 310gsm archival cotton rag paper, acid free and contains 100% cotton rag fibres, which are longer, stronger and more durable than wood fibres. Designed specifically for high quality fine art & photographic inkjet reproduction, it ensures a print life of more than 85 years, meeting the Fine Art Trade Guild lightfastness requirements of '6 or more on the Blue Wool Scale'.",features:["Solid wood mouldings","Gallery-grade cassetta style frame","Open grain white painted finish","Museum grade 2mm thick acrylic glazing with high optical clarity"]},"alberta-white-84":{description:"Solid wood gallery-grade cassetta frame style created with an inner and outer molding separated by a central flat recessed band called the frieze. This frame style creates a double frame effect which compliments artwork perfectly.",paper:"Printed on thick 310gsm archival cotton rag paper, acid free and contains 100% cotton rag fibres, which are longer, stronger and more durable than wood fibres. Designed specifically for high quality fine art & photographic inkjet reproduction, it ensures a print life of more than 85 years, meeting the Fine Art Trade Guild lightfastness requirements of '6 or more on the Blue Wool Scale'.",features:["Solid wood mouldings","Gallery-grade cassetta style frame","Open grain white painted finish","Museum grade 2mm thick acrylic glazing with high optical clarity"]},"alberta-black-50":{description:"Solid wood gallery-grade cassetta frame style created with an inner and outer molding separated by a central flat recessed band called the frieze. This frame style creates a double frame effect which compliments artwork perfectly.",paper:"Printed on thick 310gsm archival cotton rag paper, acid free and contains 100% cotton rag fibres, which are longer, stronger and more durable than wood fibres. Designed specifically for high quality fine art & photographic inkjet reproduction, it ensures a print life of more than 85 years, meeting the Fine Art Trade Guild lightfastness requirements of '6 or more on the Blue Wool Scale'.",feat
2ures:["Solid wood mouldings","Gallery-grade cassetta style frame","Open grain black painted finish","Museum grade 2mm thick acrylic glazing with high optical clarity"]},"alberta-black-84":{description:"Solid wood gallery-grade cassetta frame style created with an inner and outer molding separated by a central flat recessed band called the frieze. This frame style creates a double frame effect which compliments artwork perfectly.",paper:"Printed on thick 310gsm archival cotton rag paper, acid free and contains 100% cotton rag fibres, which are longer, stronger and more durable than wood fibres. Designed specifically for high quality fine art & photographic inkjet reproduction, it ensures a print life of more than 85 years, meeting the Fine Art Trade Guild lightfastness requirements of '6 or more on the Blue Wool Scale'.",features:["Solid wood mouldings","Gallery-grade cassetta style frame","Open grain black painted finish","Museum grade 2mm thick acrylic glazing with high optical clarity"]},default:{description:"High-quality framing option.",paper:"Printed on thick 310gsm archival cotton rag paper, acid free and contains 100% cotton rag fibres, which are longer, stronger and more durable than wood fibres. Designed specifically for high quality fine art & photographic inkjet reproduction, it ensures a print life of more than 85 years, meeting the Fine Art Trade Guild lightfastness requirements of '6 or more on the Blue Wool Scale'.",features:["Premium materials","Ready to hang"]}},Te=[{id:"white",name:"Snow White",color:"#FFFFFF"},{id:"black",name:"Black",color:"#1a1a1a"}],Ne=[{id:"white-core",name:"White Core",color:"#FFFFFF"}];function We(e,t){var n=e.replace("#","");3===n.length&&(n=n.split("").map(function(e){return e+e}).join(""));var r=parseInt(n.slice(0,2),16),o=parseInt(n.slice(2,4),16),a=parseInt(n.slice(4,6),16);return"rgba(".concat(r,",").concat(o,",").concat(a,",").concat(t,")")}var Ie=1500,Ue=ve.map(function(e){return"black"===e.id?{id:e.id,name:e.name,background:"#000000",starMapBackground:"#000000",stars:"#FFFFFF",lines:We("#FFFFFF",.28),planets:"#FFFFFF"}:{id:e.id,name:e.name,background:e.background,starMapBackground:e.waveColor,stars:e.background,lines:We(e.background,.25),planets:e.background}}),ke=function(e){var t=((Ue.find(function(t){return t.id===e})||Ue[0]).background||"#000000").replace("#","");return(.299*parseInt(t.substring(0,2),16)+.587*parseInt(t.substring(2,4),16)+.114*parseInt(t.substring(4,6),16))/255>.6?"#000000":"#FFFFFF"},De=[{name:"OS County Series",id:"uk-osgb10k1888",printScale:10560,caption:"Earliest, most detailed OS map edition covering all of GB",date:"1888-1913",description:"This collection of OS maps is the earliest, most detailed topographic mapping that covers all of Great Britain. This is our most popular option as in certain areas bodies of water are also coloured which produces an aestheticly pleasing map.",zoom:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17],mime:"jpg",extraid:"Six_Inch_GB_WFS"},{name:"OS Hills Edition",id:"uk-osgb63k1885",printScale:63360,caption:"Features an unique early hill-shading technique to depict relief",date:"1885-1903",description:"This collection allows for a good general overview of the landscape, settlement patterns, roads, railways, parkland and woodland. It isn't as detailed as the County Series but uniquely features hill-shading which was produced with a second copper plate of brown or black hachures to depict relief, rather than the conventional contour lines of the 'Outline' edition.",zoom:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],mime:"png",extraid:"OS_One_Inch_GB_Hills_WFS"},{name:"Provisional Edition",id:"uk-osgb25k1937",printScale:25e3,caption:"The first civilian map series at medium scale that later lead to the modern Explorer and Outdoor Leisure maps.",date:"1937-1961",de
2scription:"Covers 80% of Great Britain, everywhere apart from the Scottish Highlands and Islands. This collection of maps is useful for showing rural and urban areas in much greater detail than the standard OS.",zoom:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],mime:"jpg",extraid:"OS_1_25K_Provisional_WFS"},{name:"Ordnance Survey Seventh Series",id:"uk-osgb63k1955",printScale:63360,caption:"The first civilian map series at medium scale that later lead to the modern Explorer and Outdoor Leisure maps.",date:"1955-1961",description:"Originally intended for a wide-range of outdoor and recreational purposes it features many touring and cycling routes which later became the basis for the moden Landranger OS map style. Also printed using six to ten colours which allows for a clear differentiation and display of topographic features, types of roads, railways, water, woodland, urban areas, land use, footpaths, and relief contours at 50 foot intervals.",zoom:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],mime:"jpg",extrainfo:"catalog_one_inch_7th_series"},{name:"Ireland — OS Six-Inch, 2nd Edition",id:"ie-os6k-2nd",printScale:10560,caption:"The late-Victorian and Edwardian edition — closest to living memory, and the most legible",date:"1888-1915",description:"The second edition of the six-inch survey, and the most recent of the three. Towns have expanded, the railway network is complete and the engraving is cleaner than the earlier surveys — usually the best choice for a recognisable view of a town, or a house that is still standing.",zoom:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17],mime:"png",tileUrl:"https://mapseries-tilesets.s3.amazonaws.com/os/{county}_2nd/{z}/{x}/{y}.png",countyIndex:"ireland_counties",extraid:"OS_6inch_all_find",editionFilter:"2nd revision",coverage:[-11,51.2,-5.3,55.5]},{name:"Ireland — OS Six-Inch, 1st Edition",id:"ie-os6k-1st",printScale:10560,caption:"The original Ordnance Survey of Ireland — the first six-inch survey of any country in the world",date:"1829-1842",description:"The first edition of the Ordnance Survey of Ireland, surveyed from 1829. Ireland was mapped at six inches to the mile before anywhere else in the world, and this is that survey: townland boundaries, field patterns, mills, holy wells and the pre-Famine landscape, drawn before the railways arrived.",zoom:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17],mime:"png",tileUrl:"https://mapseries-tilesets.s3.amazonaws.com/os/{county}/{z}/{x}/{y}.png",countyIndex:"ireland_counties",extraid:"OS_6inch_all_find",editionFilter:"1st Edition",coverage:[-11,51.2,-5.3,55.5]},{name:"Ireland — OS Six-Inch, 1st Revision",id:"ie-os6k-1strev",printScale:10560,caption:"The mid-Victorian revision — the famine-era landscape, with the first railways",date:"1840s-1860s",description:"The first revision of the six-inch survey, redrawn between the 1840s and 1860s. The early railways appear here, along with the changes to settlement and field boundaries that followed the Famine years, making it the sharpest record of how the countryside altered within a single generation.",zoom:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17],mime:"png",tileUrl:"https://mapseries-tilesets.s3.amazonaws.com/os/{county}1/{z}/{x}/{y}.png",countyIndex:"ireland_counties",extraid:"OS_6inch_all_find",editionFilter:"1st revision",coverage:[-11,51.2,-5.3,55.5]}],Ae=function(e){return e.date?"".concat(e.name," (").concat(e.date.replace(/-/g,"–"),")"):e.name},Ce=function(e,t){if(void 0===e||void 0===t)return De;var n=De.filter(function(n){return n.coverage&&function(n){return t>=n[0]&&t<=n[2]&&e>=n[1]&&e<=n[3]}(n.coverage)});return n.length?n:De.filter(function(e){return!e.coverage})},Le="8WyAfakeOuGWdc0i7eTKdAVy9elmTeTQ",Oe="https://api.os.uk/maps/raster/v1/zxy",Ee=[{name:"OS Leisure",id:"Leisure_27700",maxZoom:9}],Ve="+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000 +ellps=airy +towgs84=446.448,-125.157,542.06,0.15,0.247,0.842,-20.489 +units=m +no_defs",ze=[896,448,224,112,56,28,14,7,3.5,1.75,.875,.4375,.21875,.109375],Xe=[-238375,1376256],Pe=[{denominator:25e3,label:"1:25 000",series:"OS Explorer",seriesZoom:9},{denominator:5e4,label:"1:50 000",series:"OS Landranger",seriesZoom:7}],Ze=function(e){var t;return(null!==(t=Pe.find(function(t){return t.denominator===e}))&&void 0!==t?t:Pe[0]).seriesZoom}
2,Ge=function(e){return"1:".concat(Math.round(e).toLocaleString("en-GB").replace(/,/g," "))},Fe=function(e){var t=e/100;return t>=1e3?"1cm = ".concat((t/1e3).toFixed(t%1e3==0?0:1),"km"):"1cm = ".concat(Math.round(t),"m")},Be=function(e,t,n){return e*(t/100)*.0254*n},Re=Be,Qe=function(e){return(De.find(function(t){return t.id===e})||De[0]).printScale},He=function(e,t){return 156543.03392*Math.cos(e*Math.PI/180)/Math.pow(2,t)},Ke=function(e,t,n,r,o){for(var a=r;a>1;){var i=He(n,a);if(e/i<=o&&t/i<=o)break;a--}var l=He(n,a);return{zoom:a,bufferW:Math.max(1,Math.round(e/l)),bufferH:Math.max(1,Math.round(t/l))}},Je=[{id:"classic",name:"Classic",url:"mapbox://styles/tman16/cjz88vqz12k6t1cr6smf1otoy",image:"https://ucarecdn.com/0eb5a9b3-5a28-4e3e-8e7b-89a5d40104e8/White.jpg"},{id:"nautical",name:"Nautical",url:"mapbox://styles/tman16/ck4ou2xv709wn1co6zi232ku4",image:"https://ucarecdn.com/9d248a39-91c7-4a43-b0f5-3a6058c0fc39/Nautical.jpg"},{id:"urban",name:"Urban",url:"mapbox://styles/tman16/ck5yk0u4j01zo1io0pche8ioa",image:"https://ucarecdn.com/562ad0ba-705b-4939-bfe7-c6083a964f93/Urban.jpg"},{id:"streets",name:"Streets",url:"mapbox://styles/tman16/ck3y8f50p1sos1cpnheob2xkw",image:"https://ucarecdn.com/1f08f7c7-37a8-4324-ba9b-aaf8cc2ead49/Streets.jpg"},{id:"satellite",name:"Satellite",url:"mapbox://styles/tman16/ck0i0d0fa0a7h1dmdgop0zgr1",image:"https://ucarecdn.com/4bf1d56c-a9a4-4730-b805-cc2575d738fa/Satellite.jpg"},{id:"pop",name:"Pop",url:"mapbox://styles/tman16/ck5n7ihw15fbk1io9ay9zghb5",image:"https://ucarecdn.com/459a5852-5b1c-4f53-89bc-8a98bf3c203a/Pop.jpg"},{id:"maritime",name:"Maritime",url:"mapbox://styles/tman16/ck5spo97o3e7u1in3r5f0om68",image:"https://ucarecdn.com/b3156fa9-84a0-40a1-ba87-08bcf14b8db7/Maritime.jpg"},{id:"mondrian",name:"Mondrian",url:"mapbox://styles/tman16/ck5uaabwt01401ilorq94bgjy",image:"https://ucarecdn.com/7a9cf423-5365-4c71-83d1-697d02df3426/Mondrian.jpg"},{id:"outdoors",name:"Outdoors",url:"mapbox://styles/tman16/ck7g4djj1025w1io4djfvus0o",image:"https://ucarecdn.com/a96fb794-1d61-4593-bc3a-da2a73ae56e6/Outdoors.jpg"},{id:"pastel",name:"Pastel",url:"mapbox://styles/tman16/ckmzpsx1b0djz17p0axe30hn7",image:"https://cdn.shopify.com/s/files/1/0272/8512/7220/files/Pastel.png?v=1617393196"},{id:"tricolore",name:"Tricolore",url:"mapbox://styles/tman16/ckbcuao6e1kdu1ildxzeg3wdw",image:"https://cdn.shopify.com/s/files/1/0272/8512/7220/files/Tricolore.jpg?v=1621200524"},{id:"custom-light",name:"Custom",base:"mapbox://styles/mapbox/streets-v12",image:"https://ucarecdn.com/0eb5a9b3-5a28-4e3e-8e7b-89a5d40104e8/White.jpg",theme:{water:"#bcd4e6",land:"#f5f5f0",roads:"#ffffff",labels:"#333333"},variations:[{id:"mono",name:"Mono",theme:{water:"#e0e0e0",land:"#f7f7f7",roads:"#ffffff",labels:"#222222"}},{id:"blueprint",name:"Blueprint",theme:{water:"#1b3a5b",land:"#21507a",roads:"#cfe2f3",labels:"#ffffff"}},{id:"sand",name:"Sand",theme:{water:"#a8c8d8",land:"#efe2c9",roads:"#fffaf0",labels:"#5a4a32"}},{id:"midnight",name:"Midnight",theme:{water:"#0d1b2a",land:"#1b263b",roads:"#415a77",labels:"#e0e1dd"}}]}],qe=["poi-label","poi-label (1)","airport-label"],_e=[{id:"pin",name:"Pin",svg:'<svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/></svg>'},{id:"heart",name:"Heart",svg:'<svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>'},{id:"star",name:"Star",svg:'<svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/></svg>'},{id:"home",name:"Home",svg:'<svg viewBox="0 0 24 24" fill="currentColor"><path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/></svg>'},{id:"circle",name:"Dot",svg:'<svg viewBox="0 0 24 24" fill="currentColor"><circle cx="12" cy="12" r="10"/></svg>'}],$e=[{code:"AF",name:"Afghanistan",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"AX",name:"Åland Islands",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"AL",name:"Albania",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"DZ",name:"Algeria",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"AS",name:"American Samoa",locale:"en-US",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"AD",name:"Andorra",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:19.95},express:{min:10,max:10,price:34.95}}}
2,{code:"AO",name:"Angola",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"AI",name:"Anguilla",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"AQ",name:"Antarctica",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"AG",name:"Antigua and Barbuda",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:19.95},express:{min:10,max:10,price:34.95}}},{code:"AR",name:"Argentina",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"AM",name:"Armenia",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"AW",name:"Aruba",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"AC",name:"Ascension Island",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"AU",name:"Australia",locale:"en-AU",exclusions:[0,6],methods:{standard:{min:12,max:12,price:14.95},express:{min:7,max:7,price:24.95}}},{code:"AT",name:"Austria",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:7,max:7,price:12.95},express:{min:5,max:5,price:19.95}}},{code:"AZ",name:"Azerbaijan",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"BS",name:"Bahamas",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:19.95},express:{min:10,max:10,price:34.95}}},{code:"BH",name:"Bahrain",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"BD",name:"Bangladesh",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"BB",name:"Barbados",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:19.95},express:{min:10,max:10,price:34.95}}},{code:"BY",name:"Belarus",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:19.95},express:{min:10,max:10,price:34.95}}},{code:"BE",name:"Belgium",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:7,max:7,price:12.95},express:{min:4,max:4,price:19.95}}},{code:"BZ",name:"Belize",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"BJ",name:"Benin",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"BM",name:"Bermuda",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:19.95},express:{min:10,max:10,price:34.95}}},{code:"BT",name:"Bhutan",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"BO",name:"Bolivia",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:19.95},express:{min:10,max:10,price:34.95}}},{code:"BA",name:"Bosnia and Herzegovina",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:19.95},express:{min:10,max:10,price:34.95}}},{code:"BW",name:"Botswana",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"BV",name:"Bouvet Island",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"BR",name:"Brazil",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"IO",name:"British Indian Ocean Territory",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"VG",name:"British Virgin Islands",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:19.95},express:{min:10,max:10,price:34.95}}},{code:"BN",name:"Brunei",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"BG",name:"Bulgaria",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:11,max:11,price:19.95},express:{min:7,max:7,price:34.95}}},{code:"BF",name:"Burkina Faso",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"BI",name:"Burundi",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"KH",name:"Cambodia",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"CM",name:"Cameroon",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"CA",name:"Canada",locale:"en-CA",exclusions:[0,6],methods:{standard:{min:7,max:7,price:14.95},express:{min:4,max:4,price:23.5}}},{code:"CV",name:"Cape Verde",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"BQ",name:"Caribbean Netherlands",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"KY",name:"Cayman Islands",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:19.95},express:{min:10,max:10,price:34.95}}},{code:"CF",name:"Central African Republic",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"TD",name:"Chad",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"CL",name:"Chile",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"CN",name:"China",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"CX",name:"Christmas Island",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"CC",name:"Cocos Islands",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"CO",name:"Colombia",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"KM",name:"Comoros",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"CG",name:"Congo - Brazzaville",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"CD",name:"Congo - Kinshasa",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"CK",name:"Cook Islands",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"CR",name:"Costa Rica",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"CI",name:"Côte d’Ivoire",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"HR",name:"Croatia",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:9,max:9,price:19.95},express:{min:4,max:4,price:34.95}}},{code:"CU",name:"Cuba",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"CW",name:"Curaçao",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"CY",name:"Cyprus",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:9,max:9,price:19.95},express:{min:7,max:7,price:34.95}}},{code:"CZ",name:"Czech Republic",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:7,max:7,price:19.95},express:{min:4,max:4,price:34.95}}},{code:"DK",name:"Denmark",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:7,max:7,price:12.95},express:{min:4,max:4,price:24.95}}},{code:"DJ",name:"Djibouti",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"DM",name:"Dominica",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"DO",name:"Dominican Republic",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"TL",name:"East Timor",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"EC",name:"Ecuador",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"EG",name:"Egypt",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"SV",name:"El Salvador",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"GQ",name:"Equatorial Guinea",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"ER",name:"Eritrea",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"EE",name:"Estonia",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:10,max:10,price:19.95},express:{min:6,max:6,price:34.95}}},{code:"SZ",name:"Eswantini",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"ET",name:"Ethiopia",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"FK",name:"Falkland Islands",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"FO",name:"Faroe Islands",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"FJ",name:"Fiji",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"FI",name:"Finland",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:7,max:7,price:12.95},express:{min:4,max:4,price:24.95}}},{code:"FR",name:"France",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:6,max:6,price:12.95},express:{min:2,max:2,price:24.95}}},{code:"GF",name:"French Guiana",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"PF",name:"French Polynesia",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"TF",name:"French Southern Territories",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"GA",name:"Gabon",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"GM",name:"Gambia",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"GE",name:"Georgia",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"DE",name:"Germany",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:6,max:6,price:12.95},express:{min:2,max:2,price:24.95}}},{code:"GH",name:"Ghana",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"GI",name:"Gibraltar",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:7,max:7,price:12.95},express:{min:4,max:4,price:24.95}}},{code:"GR",name:"Greece",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:8,max:8,price:12.95},express:{min:5,max:5,price:24.95}}},{code:"GL",name:"Greenland",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"GD",name:"Grenada",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"GP",name:"Guadeloupe",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"GU",name:"Guam",locale:"en-US",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"GT",name:"Guatemala",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}}
2,{code:"GG",name:"Guernsey",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:5,max:5,price:3.95},express:{min:3,max:3,price:24.95}}},{code:"GN",name:"Guinea",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"GW",name:"Guinea-Bissau",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"GY",name:"Guyana",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"HT",name:"Haiti",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"HM",name:"Heard Island and McDonald Islands",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"HN",name:"Honduras",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"HK",name:"Hong Kong",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:8,max:8,price:19.95},express:{min:5,max:5,price:34.95}}},{code:"HU",name:"Hungary",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:7,max:7,price:12.95},express:{min:4,max:4,price:24.95}}},{code:"IS",name:"Iceland",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:7,max:7,price:12.95},express:{min:4,max:4,price:24.95}}},{code:"IN",name:"India",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"ID",name:"Indonesia",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"IR",name:"Iran",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"IQ",name:"Iraq",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"IE",name:"Ireland",locale:"en-IE",exclusions:[0,6],methods:{standard:{min:5,max:5,price:12.95},express:{min:3,max:3,price:24.95}}},{code:"IM",name:"Isle of Man",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:5,max:5,price:3.95},express:{min:3,max:3,price:24.95}}},{code:"IL",name:"Israel",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:10,max:10,price:24.95},express:{min:7,max:7,price:34.95}}},{code:"IT",name:"Italy",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:8,max:8,price:12.95},express:{min:4,max:4,price:24.95}}},{code:"JM",name:"Jamaica",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:19.95},express:{min:10,max:10,price:34.95}}},{code:"JP",name:"Japan",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:12,max:12,price:24.95},express:{min:6,max:6,price:34.95}}},{code:"JE",name:"Jersey",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:5,max:5,price:3.95},express:{min:3,max:3,price:24.95}}},{code:"JO",name:"Jordan",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"KZ",name:"Kazakhstan",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"KE",name:"Kenya",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"KI",name:"Kiribati",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"XK",name:"Kosovo",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"KW",name:"Kuwait",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:10,max:10,price:24.95},express:{min:6,max:6,price:34.95}}},{code:"KG",name:"Kyrgyzstan",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"LA",name:"Laos",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"LV",name:"Latvia",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:7,max:7,price:24.95},express:{min:5,max:5,price:34.95}}},{code:"LB",name:"Lebanon",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"LS",name:"Lesotho",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"LR",name:"Liberia",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"LY",name:"Libya",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"LI",name:"Liechtenstein",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:8,max:8,price:24.95},express:{min:6,max:6,price:34.95}}},{code:"LT",name:"Lithuania",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:8,max:8,price:19.95},express:{min:5,max:5,price:34.95}}},{code:"LU",name:"Luxembourg",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:7,max:7,price:12.95},express:{min:4,max:4,price:24.95}}},{code:"MO",name:"Macao",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:12,max:12,price:24.95},express:{min:7,max:7,price:34.95}}},{code:"MK",name:"Macedonia",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:9,max:9,price:19.95},express:{min:6,max:6,price:34.95}}},{code:"MG",name:"Madagascar",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"MW",name:"Malawi",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"MY",name:"Malaysia",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"MV",name:"Maldives",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"ML",name:"Mali",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"MT",name:"Malta",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:9,max:9,price:19.95},express:{min:6,max:6,price:34.95}}},{code:"MH",name:"Marshall Islands",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"MQ",name:"Martinique",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"MR",name:"Mauritania",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"MU",name:"Mauritius",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"YT",name:"Mayotte",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"MX",name:"Mexico",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:12,max:12,price:24.95},express:{min:7,max:7,price:34.95}}},{code:"FM",name:"Micronesia",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"MD",name:"Moldova",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:10,max:10,price:19.95},express:{min:6,max:6,price:34.95}}},{code:"MC",name:"Monaco",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:8,max:8,price:12.95},express:{min:5,max:5,price:24.95}}},{code:"MN",name:"Mongolia",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"ME",name:"Montenegro",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"MS",name:"Montserrat",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"MA",name:"Morocco",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"MZ",name:"Mozambique",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"MM",name:"Myanmar",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"NA",name:"Namibia",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"NR",name:"Nauru",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"NP",name:"Nepal",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"NL",name:"Netherlands",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:7,max:7,price:12.95},express:{min:4,max:4,price:24.95}}},{code:"AN",name:"Netherlands Antilles",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:7,max:7,price:34.95}}},{code:"NC",name:"New Caledonia",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"NZ",name:"New Zealand",locale:"en-NZ",exclusions:[0,6],methods:{standard:{min:12,max:12,price:14.95},express:{min:8,max:8,price:34.95}}},{code:"NI",name:"Nicaragua",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"NE",name:"Niger",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"NG",name:"Nigeria",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"NU",name:"Niue",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"NF",name:"Norfolk Island",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"KP",name:"North Korea",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"MK",name:"North Macedonia",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:9,max:9,price:24.95},express:{min:6,max:6,price:34.95}}},{code:"MP",name:"Northern Mariana Islands",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"NO",name:"Norway",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:7,max:7,price:12.95},express:{min:4,max:4,price:24.95}}},{code:"OM",name:"Oman",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"PK",name:"Pakistan",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"PW",name:"Palau",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"PS",name:"Palestinian Territory",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"PA",name:"Panama",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"PG",name:"Papua New Guinea",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"PY",name:"Paraguay",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"PE",name:"Peru",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"PH",name:"Philippines",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:13,max:13,price:24.95},express:{min:8,max:8,price:34.95}}},{code:"PN",name:"Pitcairn",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"PL",name:"Poland",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:7,max:7,price:12.95},express:{min:4,max:4,price:24.95}}},{code:"PT",name:"Portugal",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:7,max:7,price:12.95},express:{min:4,max:4,price:24.95}}},{code:"PR",name:"Puerto Rico",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"QA",name:"Qatar",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:10,max:10,price:24.95},express:{min:7,max:7,price:34.95}}},{code:"CG",name:"Republic of the Congo",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"RE",name:"Reunion",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"RO",name:"Romania",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:7,max:7,price:19.95},express:{min:5,max:5,price:34.95}}},{code:"RU",name:"Russia",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:13,max:13,price:24.95},express:{min:7,max:7,price:34.95}}},{code:"RW",name:"Rwanda",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"BL",name:"Saint Barthélemy",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"SH",name:"Saint Helena",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"KN",name:"Saint Kitts and Nevis",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"LC",name:"Saint Lucia",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"MF",name:"Saint Martin",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"PM",name:"Saint Pierre and Miquelon",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"VC",name:"Saint Vincent and the Grenadines",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"WS",name:"Samoa",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"SM",name:"San Marino",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"ST",name:"Sao Tome and Principe",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"SX",name:"Sint Maarten",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"SA",name:"Saudi Arabia",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"SN",name:"Senegal",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"RS",name:"Serbia",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"CS",name:"Serbia and Montenegro",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"SC",name:"Seychelles",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}}
2,{code:"SL",name:"Sierra Leone",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"SG",name:"Singapore",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:12,max:12,price:24.95},express:{min:7,max:7,price:34.95}}},{code:"SK",name:"Slovakia",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:10,max:10,price:19.95},express:{min:7,max:7,price:34.95}}},{code:"SI",name:"Slovenia",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:10,max:10,price:19.95},express:{min:7,max:7,price:34.95}}},{code:"SB",name:"Solomon Islands",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"SO",name:"Somalia",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"ZA",name:"South Africa",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:12,max:12,price:24.95},express:{min:8,max:8,price:34.95}}},{code:"GS",name:"South Georgia and the South Sandwich Islands",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"KR",name:"South Korea",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:10,max:10,price:24.95},express:{min:7,max:7,price:34.95}}},{code:"SS",name:"South Sudan",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"ES",name:"Spain",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:7,max:7,price:12.95},express:{min:4,max:4,price:24.95}}},{code:"LK",name:"Sri Lanka",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"SD",name:"Sudan",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"SR",name:"Suriname",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"SJ",name:"Svalbard and Jan Mayen",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:5,max:5,price:34.95}}},{code:"SZ",name:"Swaziland",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"SE",name:"Sweden",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:7,max:7,price:12.95},express:{min:4,max:4,price:24.95}}},{code:"CH",name:"Switzerland",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:7,max:7,price:12.95},express:{min:4,max:4,price:24.95}}},{code:"SY",name:"Syria",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"TW",name:"Taiwan",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"TJ",name:"Tajikistan",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"TZ",name:"Tanzania",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"TH",name:"Thailand",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"TL",name:"Timor-Leste",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"TG",name:"Togo",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"TK",name:"Tokelau",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"TO",name:"Tonga",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"TT",name:"Trinidad and Tobago",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"TA",name:"Tristan da Cunha",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"TN",name:"Tunisia",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"TR",name:"Turkey",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:19.95},express:{min:10,max:10,price:34.95}}},{code:"TM",name:"Turkmenistan",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"TC",name:"Turks and Caicos Islands",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"TV",name:"Tuvalu",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"VI",name:"U.S. Virgin Islands",locale:"en-US",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"UG",name:"Uganda",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"UA",name:"Ukraine",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:19.95},express:{min:10,max:10,price:34.95}}},{code:"AE",name:"United Arab Emirates",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:9,max:9,price:24.95},express:{min:5,max:5,price:34.95}}},{code:"GB",name:"United Kingdom",locale:"en-GB",exclusions:[0],methods:{standard:{min:5,max:5,price:4.95},express:{min:2,max:2,price:7.95}}},{code:"US",name:"United States",locale:"en-US",exclusions:[0,6],methods:{standard:{min:6,max:6,price:7.95},express:{min:3,max:3,price:24.95}}},{code:"UM",name:"United States Minor Outlying Islands",locale:"en-US",exclusions:[0,6],methods:{standard:{min:10,max:10,price:24.95},express:{min:7,max:7,price:34.95}}},{code:"UY",name:"Uruguay",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"UZ",name:"Uzbekistan",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"VU",name:"Vanuatu",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"VA",name:"Vatican",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:8,max:8,price:24.95},express:{min:5,max:5,price:34.95}}},{code:"VE",name:"Venezuela",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"VN",name:"Vietnam",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"WF",name:"Wallis and Futuna",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"EH",name:"Western Sahara",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"YE",name:"Yemen",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"ZM",name:"Zambia",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"ZW",name:"Zimbabwe",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}},{code:"*",name:"Various",locale:"en-GB",exclusions:[0,6],methods:{standard:{min:15,max:15,price:24.95},express:{min:10,max:10,price:34.95}}}],et=(Array.from({length:9}).map(function(e,t){return{id:"s".concat(t),x:t%3*33.33,y:33.33*Math.floor(t/3),w:33.33,h:33.33}}),{"starmap-constellations":{title:"Constellations",image:"https://the-poster-edit.s3.eu-west-2.amazonaws.com/starmap-constellations.jpg",description:"Include the constellations on your star map. Each one drawn as the connecting lines astronomers use to identify the shape in the night sky.",bullets:["Authentic IAU constellation lines","Subtle styling that complements the stars","Toggle on/off any time"]},"starmap-milkyway":{title:"Milky Way",image:"https://the-poster-edit.s3.eu-west-2.amazonaws.com/starmap-milkyway.jpg",description:"Show the band of the Milky Way galaxy as it appeared on your chosen date and location. Adds depth and a striking visual to darker themes.",bullets:["Accurate galactic plane positioning","Looks best on dark themes","Recommended for moments away from city lights"]},"starmap-planets":{title:"Planets",image:"https://the-poster-edit.s3.eu-west-2.amazonaws.com/starmap-planets.jpg",description:"Plot the visible planets where they actually sat in the sky at your chosen moment — Mercury, Venus, Mars, Jupiter, Saturn, Uranus and Neptune. This setting also toggles the moon/sun/pluto.",bullets:["Real positions calculated for your date/time/location","Each planet labeled","A unique detail few competitors offer"]},"map-markers":{title:"Custom Markers",image:"https://the-poster-edit.s3.eu-west-2.amazonaws.com/ma
2p-markers.jpg",description:"Pin meaningful places on your map — where you met, got engaged, your favourite coffee shop. Each marker is fully customisable.",bullets:["Add unlimited markers","Custom labels and icon styles","Drag to fine-tune position"]},"map-routes":{title:"Routes",image:"https://the-poster-edit.s3.eu-west-2.amazonaws.com/map-routes.jpg",description:"Trace a journey across your map — a road trip, a hike, a marathon route. Upload a GPX file from Strava or Komoot, or draw your own.",bullets:["GPX file upload (Strava, Komoot, Garmin)","Or draw a custom route by hand","Auto-calculated distance and elevation stats"]},"map-styles":{title:"Map Styles",description:"Choose from a curated set of map styles — clean minimal, vintage parchment, satellite, dark mode and more. Each one redrawn for print quality.",bullets:["Multiple distinct visual styles","All optimised for print resolution","Switch instantly to preview"]},"soundwave-scan":{title:"Scan Code",description:"Add a QR or Spotify code to your print. Scan with a phone camera to play the actual audio behind the soundwave — a recording, a song, a message.",bullets:["QR code links to your uploaded audio","Spotify code plays the linked track","Position anywhere on the print"]},"oldmap-styles":{title:"Historic Map Styles",description:"Each style is a real historic Ordnance Survey or vintage cartography style, redrawn at print resolution. Pick the era that matches your location’s story.",bullets:["Authentic historic cartography","Multiple eras and styles","Detailed enough for large prints"]}});function tt(e){return tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tt(e)}function nt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||rt(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rt(e,t){if(e){if("string"==typeof e)return ot(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ot(e,t):void 0}}function ot(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function at(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function it(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?at(Object(n),!0).forEach(function(t){lt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):at(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function lt(e,t,n){return(t=function(e){var t=function(e){if("object"!=tt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=tt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==tt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}for(var st=[{id:"poster-classic",name:"Poster",type:"soundwave",hasCaption:!1,defaultLineCount:2,preferredStyle:"linear-split-4",posterMeta:{variant:"split-corners",titleAt:"tl",metaAt:"br",align:"left"}},{id:"poster-centered",name:"Centered",type:"soundwave",hasCaption:!1,defaultLineCount:2,preferredStyle:"linear-mirror",posterMeta:{variant:"centered",titleAt:"top",metaAt:"bottom",align:"center",titleScale:1.1}},{id:"poster-bottom-stack",name:"Stacked",type:"soundwave",hasCaption:!1,defaultLineCount:2,preferredStyle:"linear-split-4",posterMeta:{variant:"bottom-stack",titleAt:"bl",metaAt:"bl",align:"left"}}
2,{id:"poster-minimal",name:"Minimal",type:"soundwave",hasCaption:!1,defaultLineCount:2,preferredStyle:"curve",posterMeta:{variant:"minimal-line",titleAt:"bottom",metaAt:"bottom",align:"center",titleScale:.85}},{id:"poster-border",name:"Border",type:"soundwave",hasCaption:!1,defaultLineCount:2,preferredStyle:"linear-split-4",posterMeta:{variant:"split-corners",titleAt:"tl",metaAt:"br",align:"left"},printBorderMm:20}],ct={Portrait:{"poster-classic":{id:"1",x:8,y:40,w:84,h:28},"poster-centered":{id:"1",x:8,y:38,w:84,h:24},"poster-bottom-stack":{id:"1",x:6,y:14,w:88,h:34},"poster-minimal":{id:"1",x:10,y:42,w:80,h:16},"poster-border":{id:"1",x:8,y:40,w:84,h:28}},Landscape:{"poster-classic":{id:"1",x:6,y:36,w:88,h:30},"poster-centered":{id:"1",x:8,y:34,w:84,h:30},"poster-bottom-stack":{id:"1",x:6,y:14,w:88,h:40},"poster-minimal":{id:"1",x:10,y:40,w:80,h:18},"poster-border":{id:"1",x:6,y:36,w:88,h:30}},Square:{"poster-classic":{id:"1",x:8,y:38,w:84,h:28},"poster-centered":{id:"1",x:8,y:36,w:84,h:28},"poster-bottom-stack":{id:"1",x:6,y:14,w:88,h:38},"poster-minimal":{id:"1",x:10,y:42,w:80,h:16},"poster-border":{id:"1",x:8,y:38,w:84,h:28}},Vertoramic:{"poster-classic":{id:"1",x:8,y:42,w:84,h:26},"poster-centered":{id:"1",x:8,y:40,w:84,h:22},"poster-bottom-stack":{id:"1",x:6,y:12,w:88,h:36},"poster-minimal":{id:"1",x:10,y:44,w:80,h:14},"poster-border":{id:"1",x:8,y:42,w:84,h:26}},Panoramic:{"poster-classic":{id:"1",x:5,y:34,w:90,h:34},"poster-centered":{id:"1",x:5,y:32,w:90,h:34},"poster-bottom-stack":{id:"1",x:4,y:16,w:92,h:44},"poster-minimal":{id:"1",x:8,y:40,w:84,h:20},"poster-border":{id:"1",x:5,y:34,w:90,h:34}}},ut={single:{Portrait:[{id:"classic-caption",name:"Classic Caption",type:"single",hasCaption:!0,defaultLineCount:2,slots:[{id:"main",x:10,y:10,w:80,h:65}]},{id:"full-bleed",name:"Full Bleed",type:"single",hasCaption:!1,slots:[{id:"main",x:0,y:0,w:100,h:100}]}],Landscape:[{id:"classic-caption",name:"Classic Caption",type:"single",hasCaption:!0,defaultLineCount:2,slots:[{id:"main",x:10,y:10,w:80,h:65}]},{id:"full-bleed",name:"Full Bleed",type:"single",hasCaption:!1,slots:[{id:"main",x:0,y:0,w:100,h:100}]}],Square:[{id:"classic-caption",name:"Classic Caption",type:"single",hasCaption:!0,defaultLineCount:2,slots:[{id:"main",x:10,y:10,w:80,h:60}]},{id:"full-bleed",name:"Full Bleed",type:"single",hasCaption:!1,slots:[{id:"main",x:0,y:0,w:100,h:100}]}],Vertoramic:[{id:"classic-caption",name:"Classic Caption",type:"single",hasCaption:!0,defaultLineCount:2,slots:[{id:"main",x:10,y:5,w:80,h:75}]},{id:"full-bleed",name:"Full Bleed",type:"single",hasCaption:!1,slots:[{id:"main",x:0,y:0,w:100,h:100}]}],Panoramic:[{id:"classic-caption",name:"Classic Caption",type:"single",hasCaption:!0,defaultLineCount:2,slots:[{id:"main",x:5,y:10,w:90,h:60}]},{id:"full-bleed",name:"Full Bleed",type:"single",hasCaption:!1,slots:[{id:"main",x:0,y:0,w:100,h:100}]}]},preset:{Portrait:[{id:"full-bleed",name:"Full Bleed",type:"preset",hasCaption:!1,slots:[{id:"main",x:0,y:0,w:100,h:100}]}],Landscape:[{id:"full-bleed",name:"Full Bleed",type:"preset",hasCaption:!1,slots:[{id:"main",x:0,y:0,w:100,h:100}]}],Square:[{id:"full-bleed",name:"Full Bleed",type:"preset",hasCaption:!1,slots:[{id:"main",x:0,y:0,w:100,h:100}]}],Vertoramic:[{id:"full-bleed",name:"Full Bleed",type:"preset",hasCaption:!1,slots:[{id:"main",x:0,y:0,w:100,h:100}]}],Panoramic:[{id:"full-bleed",name:"Full Bleed",type:"preset",hasCaption:!1,slots:[{id:"main",x:0,y:0,w:100,h:100}]}]},collage:{Portrait:[{id:"grid-2x2",name:"Grid 2x2",type:"collage",hasCaption:!1,slots:[{id:"tl",x:5,y:5,w:42.5,h:42.5},{id:"tr",x:52.5,y:5,w:42.5,h:42.5},{id:"bl",x:5,y:52.5,w:42.5,h:42.5},{id:"br",x:52.5,y:52.5,w:42.5,h:42.5}]},{id:"hero-plus-2",name:"Hero + 2",type:"collage",hasCaption:!1,slots:[{id:"hero",x:5,y:5,w:90,h:55},{id:"sub1",x:5,y:65,w:42.5,h:30},{id:"sub2",x:52.5,y:65,w:42.5,h:30}]},{id:"triple-stack",name:"Triple Stack",type:"collage",hasCaption:!1,slots:[{id:"1",x:10,y:5,w:80,h:28},{id:"2",x:10,y:36,w:80,h:28},{id:"3",x:10,y:67,w:80,h:28}]},{id:"grid-2x3",name:"Grid 2x3",type:"collage",hasCaption:!1,slots:[{id:"r1c1",x:5,y:5,w:42.5,h:28},{id:"r1c2",x:52.5,y:5,w:42.5,h:28},{id:"r2c1",x:5,y:36,w:42.5,h:28},{id:"r2c2",x:52.5,y:36,w:42.5,h:28},{id:"r3c1",x:5,y:67,w:42.5,h:28},{id:"r3c2",x:52.5,y:67,w:42.5,h:28}]},{id:"big-top-2",name:"Big Top + 2",type:"collage",hasCaption:!1,slots:[{id:"top",x:5,y:5,w:90,h:45},{id:"b1",x:5,y:53,w:42.5,h:42},{id:"b2",x:52.5,y:53,w:42.5,h:42}]},{id:"left-strip-hero",name:"Strip + Hero",type:"collage",hasCaption:!1,slots:[{id:"s1",x:5,y:5,w:27,h:28.5},{id:"s2",x:5,y:36,w:27,h:28.5},{id:"s3",x:5,y:67,w:27,h:28},{id:"hero",x:35,y:5,w:60,h:90}]}],Landscape:[{id:"grid-2x2",name:"Grid 2x2",type:"collage",hasCaption:!1,slots:[{id:"tl",x:5,y:5,w:42.5,h:42.5},{id:"tr",x:52.5,y:5,w:42.5,h:42.5},{id:"bl",x:5,y:52.5,w:42.5,h:42.5},{id:"br",x:52.5,y:52.5,w:42.5,h:42.5}]},{id:"hero-plus-2",name:"Hero + 2",type:"collage",hasCaption:!1,slots:[{id:"hero",x:5,y:5,w:
255,h:90},{id:"sub1",x:65,y:5,w:30,h:42.5},{id:"sub2",x:65,y:52.5,w:30,h:42.5}]},{id:"hero-right",name:"Hero Right",type:"collage",hasCaption:!1,slots:[{id:"sub1",x:5,y:5,w:30,h:42.5},{id:"sub2",x:5,y:52.5,w:30,h:42.5},{id:"hero",x:40,y:5,w:55,h:90}]},{id:"double-up",name:"Side by Side",type:"collage",hasCaption:!1,slots:[{id:"1",x:5,y:5,w:43.5,h:90},{id:"2",x:51.5,y:5,w:43.5,h:90}]},{id:"row-3-wide",name:"Three Across",type:"collage",hasCaption:!1,slots:[{id:"1",x:5,y:5,w:28,h:90},{id:"2",x:36,y:5,w:28,h:90},{id:"3",x:67,y:5,w:28,h:90}]},{id:"big-left-stack",name:"Big + Stack",type:"collage",hasCaption:!1,slots:[{id:"hero",x:5,y:5,w:55,h:90},{id:"s1",x:65,y:5,w:30,h:28},{id:"s2",x:65,y:36,w:30,h:28},{id:"s3",x:65,y:67,w:30,h:28}]}],Square:[{id:"grid-2x2",name:"Grid 2x2",type:"collage",hasCaption:!1,slots:[{id:"tl",x:5,y:5,w:42.5,h:42.5},{id:"tr",x:52.5,y:5,w:42.5,h:42.5},{id:"bl",x:5,y:52.5,w:42.5,h:42.5},{id:"br",x:52.5,y:52.5,w:42.5,h:42.5}]},{id:"grid-3x3",name:"Grid 3x3",type:"collage",hasCaption:!1,slots:Array.from({length:9}).map(function(e,t){return{id:"s".concat(t),x:t%3*33.33,y:33.33*Math.floor(t/3),w:33.33,h:33.33}})},{id:"mosaic-grid",name:"Mosaic Grid",type:"collage",hasCaption:!1,slots:[{id:"m1",x:0,y:0,w:66,h:66},{id:"m2",x:68,y:0,w:32,h:32},{id:"m3",x:68,y:34,w:32,h:32},{id:"m4",x:0,y:68,w:32,h:32},{id:"m5",x:34,y:68,w:32,h:32},{id:"m6",x:68,y:68,w:32,h:32}],gridConfig:{rows:3,cols:3,spacing:2,internalSlots:[{id:"m1",col:0,row:0,colSpan:2,rowSpan:2},{id:"m2",col:2,row:0,colSpan:1,rowSpan:1},{id:"m3",col:2,row:1,colSpan:1,rowSpan:1},{id:"m4",col:0,row:2,colSpan:1,rowSpan:1},{id:"m5",col:1,row:2,colSpan:1,rowSpan:1},{id:"m6",col:2,row:2,colSpan:1,rowSpan:1}]}},{id:"quad-strips",name:"Four Strips",type:"collage",hasCaption:!1,slots:[{id:"1",x:5,y:5,w:90,h:20},{id:"2",x:5,y:28.3,w:90,h:20},{id:"3",x:5,y:51.6,w:90,h:20},{id:"4",x:5,y:75,w:90,h:20}]},{id:"hero-top-3",name:"Hero + Row 3",type:"collage",hasCaption:!1,slots:[{id:"hero",x:5,y:5,w:90,h:55},{id:"s1",x:5,y:63,w:28,h:32},{id:"s2",x:36,y:63,w:28,h:32},{id:"s3",x:67,y:63,w:28,h:32}]},{id:"left-big-2",name:"Big + Two",type:"collage",hasCaption:!1,slots:[{id:"hero",x:5,y:5,w:55,h:90},{id:"s1",x:63,y:5,w:32,h:42.5},{id:"s2",x:63,y:52.5,w:32,h:42.5}]}],Vertoramic:[{id:"stack-3",name:"Vertical Stack 3",type:"collage",hasCaption:!1,slots:[{id:"1",x:5,y:2,w:90,h:30},{id:"2",x:5,y:35,w:90,h:30},{id:"3",x:5,y:68,w:90,h:30}]},{id:"stack-4",name:"Vertical Stack 4",type:"collage",hasCaption:!1,slots:[{id:"1",x:5,y:2,w:90,h:22},{id:"2",x:5,y:26.5,w:90,h:22},{id:"3",x:5,y:51,w:90,h:22},{id:"4",x:5,y:75.5,w:90,h:22}]},{id:"stack-2",name:"Vertical Stack 2",type:"collage",hasCaption:!1,slots:[{id:"1",x:5,y:2,w:90,h:47},{id:"2",x:5,y:51,w:90,h:47}]},{id:"stack-5",name:"Vertical Stack 5",type:"collage",hasCaption:!1,slots:[{id:"1",x:5,y:2,w:90,h:17.6},{id:"2",x:5,y:21.6,w:90,h:17.6},{id:"3",x:5,y:41.2,w:90,h:17.6},{id:"4",x:5,y:60.8,w:90,h:17.6},{id:"5",x:5,y:80.4,w:90,h:17.6}]},{id:"big-top-stack-2",name:"Big + Stack 2",type:"collage",hasCaption:!1,slots:[{id:"hero",x:5,y:2,w:90,h:48},{id:"1",x:5,y:52,w:90,h:22},{id:"2",x:5,y:76,w:90,h:22}]},{id:"duo-then-single",name:"Pair + One",type:"collage",hasCaption:!1,slots:[{id:"1",x:5,y:2,w:43.5,h:47},{id:"2",x:51.5,y:2,w:43.5,h:47},{id:"3",x:5,y:51,w:90,h:47}]}],Panoramic:[{id:"row-3",name:"Horizontal Row 3",type:"collage",hasCaption:!1,slots:[{id:"1",x:2,y:5,w:30,h:90},{id:"2",x:35,y:5,w:30,h:90},{id:"3",x:68,y:5,w:30,h:90}]},{id:"row-4",name:"Horizontal Row 4",type:"collage",hasCaption:!1,slots:[{id:"1",x:2,y:5,w:22,h:90},{id:"2",x:26.5,y:5,w:22,h:90},{id:"3",x:51,y:5,w:22,h:90},{id:"4",x:75.5,y:5,w:22,h:90}]},{id:"film-strip-5",name:"Film Strip 5",type:"collage",hasCaption:!1,slots:[{id:"1",x:2,y:10,w:18,h:80},{id:"2",x:21.5,y:10,w:18,h:80},{id:"3",x:41,y:10,w:18,h:80},{id:"4",x:60.5,y:10,w:18,h:80},{id:"5",x:80,y:10,w:18,h:80}]},{id:"row-2",name:"Two Across",type:"collage",hasCaption:!1,slots:[{id:"1",x:2,y:5,w:47,h:90},{id:"2",x:51,y:5,w:47,h:90}]},{id:"hero-left-2",name:"Hero + Two",type:"collage",hasCaption:!1,slots:[{id:"hero",x:2,y:5,w:58,h:90},{id:"s1",x:62,y:5,w:36,h:42.5},{id:"s2",x:62,y:52.5,w:36,h:42.5}]},{id:"wide-grid-2x3",name:"Grid 3x2",type:"collage",hasCaption:!1,slots:[{id:"r1c1",x:2,y:5,w:30,h:42.5},{id:"r1c2",x:35,y:5,w:30,h:42.5},{id:"r1c3",x:68,y:5,w:30,h:42.5},{id:"r2c1",x:2,y:52.5,w:30,h:42.5},{id:"r2c2",x:35,y:52.5,w:30,h:42.5},{id:"r2c3",x:68,y:52.5,w:30,h:42.5}]}]},starmap:{Portrait:[{id:"starmap-classic",name:"Classic Top",type:"starmap",hasCaption:!0,captionPosition:"bottom",defaultLineCount:3,slots:[{id:"1",x:10,y:10,w:80,h:65}]},{id:"starmap-bottom",name:"Classic Bottom",type:"starmap",hasCaption:!0,captionPosition:"top",defaultLineCount:3,slots:[{id:"1",x:10,y:25,w:80,h:65}]}],Landscape:[{id:"starmap-classic",name:"Classic Top",type:"starmap",hasCaption:!0,captionPosition:"bottom",defaultLineCount:3,slots:[{id:"1",x:10,y:10,w:80,h:65}]},{id:"starmap-bottom",name:"Classic Bottom",type:"starmap",hasCaption:!0,captionPosition:"top",defaultLineCount:3,slots:[{id:"1",x:10,y:25,w:80,h:65}]}],Square:[{id:"starmap-classic",name:"Classic Top",type:"starmap",hasCaption:!0,captionPosition:"bottom",defaultLineCount:3,slots:[{id:"1",x:10,y:10,w:80,h:60}]},{id:"starmap-bottom",name:"Classic Bottom",type:"starmap",hasCaption:!0,captionPosition:"top",defaultLineCount:3,slots:[{id:"1",x:10,y:30,w:80,h:60}]}],Vertoramic:[{id:"starmap-classic",name:"Classic Top",type:"starmap",hasCaption:!0,captionPosition:"bottom",defaultLineCount:3,slots:[{id:"1",x:10,y:5,w:80,h:75}]},{id:"starmap-bottom",name:"Classic Bottom",type:"starmap",hasCaption:!0,captionPosition:"top",defaultLineCount:3,slots:[{id:"1",x:10,y:20,w:80,h:75}]}],Panoramic:[{id:"starmap-classic",name:"Classic Top",type:"starmap",hasCaption:!0,captionPosition:"bottom",defaultLineCount:3,slots:[{id:"1",x:10,y:10,w:80,h:60}]},{id:"starmap-bottom",name:"Classic Bottom",type:"starmap",hasCaption:!0,captionPosition:"top",defaultLineCount:3,slots:[{id:"1",x:10,y:30,w:80,h:60}]}]},oldmap:{Portrait:[{id:"oldmap-classic",name:"Classic Map",type:"single",hasCaption:!0,defaultLineCount:3,slots:[{id:"1",x:10,y:10,w:80,h:65}]},{id:"oldmap-no-text",name:"Classic No Text",type:"single",hasCaption:!1,slots:[{id:"1",x:10,y:7.5,w:80,h:85}]},{id:"oldmap-full-bleed",name:"Full Bleed",type:"single",hasCaption:!1,slots:[{id:"1",x:0,y:0,w:100,h:100}]}],Landscape:[{id:"oldmap-classic",name:"Classic Map",type:"single",hasCaption:!0,defaultLineCount:3,slots:[{id:"1",x:10,y:10,w:80,h:65}]},{id:"oldmap-no-text",name:"Classic No Text",type:"single",hasCaption:!1,slots:[{id:"1",x:7.5,y:10,w:85,h:80}]},{id:"oldmap-full-bleed",name:"Full Bleed",type:"single",hasCaption:!1,slots:[{id:"1",x:0,y:0,w:100,h:100}]}],Square:[{id:"oldmap-classic",name:"Classic Map",type:"single",hasCaption:!0,defaultLineCount:3,slots:[{id:"1",x:10,y:10,w:80,h:60}]},{id:"oldmap-no-text",name:"Classic No Text",type:"single",hasCaption:!1,slots:[{id:"1",x:10,y:10,w:80,h:80}]},{id:"oldmap-full-bleed",name:"Full Bleed",type:"single",hasCaption:!1,slots:[{id:"1",x:0,y:0,w:100,h:100}]}],Vertoramic:[{id:"oldmap-classic",name:"Classic Map",type:"single",hasCaption:!0,defaultLineCount:3,slots:[{id:"1",x:10,y:5,w:80,h:75}]},{id:"oldmap-no-text",name:"Classic No Text",type:"single",hasCaption:!1,slots:[{id:"1",x:10,y:3.5,w:80,h:93}]},{id:"oldmap-full-bleed",name:"Full Bleed",type:"single",hasCaption:!1,slots:[{id:"1",x:0,y:0,w:100,h:100}]}],Panoramic:[{id:"oldmap-classic",name:"Classic Map",type:"single",hasCaption:!0,defaultLineCount:3,slots:[{id:"1",x:10,y:10,w:80,h:60}]},{id:"oldmap-no-text",name:"Classic No Text",type:"single",hasCaption:!1,slots:[{id:"1",x:3.5,y:10,w:93,h:80}]},{id:"oldmap-full-bleed",name:"Full Bleed",type:"single",hasCaption:!1,slots:[{id:"1",x:0,y:0,w:100,h:100}]}]},osmap:{Portrait:[{id:"osmap-classic",name:"Classic Map",type:"single",hasCaption:!0,defaultLineCount:3,allowCaptionAlign:!0,slots:[{id:"1",x:10,y:10,w:80,h:65}]},{id:"osmap-no-text",name:"Classic No Text",type:"single",hasCaption:!1,slots:[{id:"1",x:10,y:7.5,w:80,h:85}]},{id:"osmap-full-bleed",name:"Full Bleed",type:"single",hasCaption:!1,slots:[{id:"1",x:0,y:0,w:100,h:100}]},{id:"osmap-title-plate",name:"Title Plate",type:"single",hasCaption:!1,osT
2itlePlate:!0,slots:[{id:"1",x:0,y:0,w:100,h:100}]}],Landscape:[{id:"osmap-classic",name:"Classic Map",type:"single",hasCaption:!0,defaultLineCount:3,allowCaptionAlign:!0,slots:[{id:"1",x:10,y:10,w:80,h:65}]},{id:"osmap-no-text",name:"Classic No Text",type:"single",hasCaption:!1,slots:[{id:"1",x:7.5,y:10,w:85,h:80}]},{id:"osmap-full-bleed",name:"Full Bleed",type:"single",hasCaption:!1,slots:[{id:"1",x:0,y:0,w:100,h:100}]},{id:"osmap-title-plate",name:"Title Plate",type:"single",hasCaption:!1,osTitlePlate:!0,slots:[{id:"1",x:0,y:0,w:100,h:100}]}],Square:[{id:"osmap-classic",name:"Classic Map",type:"single",hasCaption:!0,defaultLineCount:3,allowCaptionAlign:!0,slots:[{id:"1",x:10,y:10,w:80,h:60}]},{id:"osmap-no-text",name:"Classic No Text",type:"single",hasCaption:!1,slots:[{id:"1",x:10,y:10,w:80,h:80}]},{id:"osmap-full-bleed",name:"Full Bleed",type:"single",hasCaption:!1,slots:[{id:"1",x:0,y:0,w:100,h:100}]},{id:"osmap-title-plate",name:"Title Plate",type:"single",hasCaption:!1,osTitlePlate:!0,slots:[{id:"1",x:0,y:0,w:100,h:100}]}],Vertoramic:[{id:"osmap-classic",name:"Classic Map",type:"single",hasCaption:!0,defaultLineCount:3,allowCaptionAlign:!0,slots:[{id:"1",x:10,y:5,w:80,h:75}]},{id:"osmap-no-text",name:"Classic No Text",type:"single",hasCaption:!1,slots:[{id:"1",x:10,y:3.5,w:80,h:93}]},{id:"osmap-full-bleed",name:"Full Bleed",type:"single",hasCaption:!1,slots:[{id:"1",x:0,y:0,w:100,h:100}]},{id:"osmap-title-plate",name:"Title Plate",type:"single",hasCaption:!1,osT
2itlePlate:!0,slots:[{id:"1",x:0,y:0,w:100,h:100}]}],Panoramic:[{id:"osmap-classic",name:"Classic Map",type:"single",hasCaption:!0,defaultLineCount:3,allowCaptionAlign:!0,slots:[{id:"1",x:10,y:10,w:80,h:60}]},{id:"osmap-no-text",name:"Classic No Text",type:"single",hasCaption:!1,slots:[{id:"1",x:3.5,y:10,w:93,h:80}]},{id:"osmap-full-bleed",name:"Full Bleed",type:"single",hasCaption:!1,slots:[{id:"1",x:0,y:0,w:100,h:100}]},{id:"osmap-title-plate",name:"Title Plate",type:"single",hasCaption:!1,osTitlePlate:!0,slots:[{id:"1",x:0,y:0,w:100,h:100}]}]},map:{Portrait:[{id:"map-classic",name:"Classic Map",type:"single",hasCaption:!0,defaultLineCount:3,slots:[{id:"1",x:10,y:10,w:80,h:65}]},{id:"map-modern-fade",name:"Modern Fade",type:"single",hasCaption:!0,defaultLineCount:3,slots:[{id:"1",x:0,y:0,w:100,h:100}]},{id:"map-no-text",name:"Classic No Text",type:"single",hasCaption:!1,slots:[{id:"1",x:10,y:7.5,w:80,h:85}]},{id:"map-full-bleed",name:"Full Bleed",type:"single",hasCaption:!1,slots:[{id:"1",x:0,y:0,w:100,h:100}]}],Landscape:[{id:"map-classic",name:"Classic Map",type:"single",hasCaption:!0,defaultLineCount:3,slots:[{id:"1",x:10,y:10,w:80,h:65}]},{id:"map-modern-fade",name:"Modern Fade",type:"single",hasCaption:!0,defaultLineCount:3,slots:[{id:"1",x:0,y:0,w:100,h:100}]},{id:"map-no-text",name:"Classic No Text",type:"single",hasCaption:!1,slots:[{id:"1",x:7.5,y:10,w:85,h:80}]},{id:"map-full-bleed",name:"Full Bleed",type:"single",hasCaption:!1,slots:[{id:"1",x:0,y:0,w:100,h:100}]}],Square:[{id:"map-classic",name:"Classic Map",type:"single",hasCaption:!0,defaultLineCount:3,slots:[{id:"1",x:10,y:10,w:80,h:60}]},{id:"map-modern-fade",name:"Modern Fade",type:"single",hasCaption:!0,defaultLineCount:3,slots:[{id:"1",x:0,y:0,w:100,h:100}]},{id:"map-no-text",name:"Classic No Text",type:"single",hasCaption:!1,slots:[{id:"1",x:10,y:10,w:80,h:80}]},{id:"map-full-bleed",name:"Full Bleed",type:"single",hasCaption:!1,slots:[{id:"1",x:0,y:0,w:100,h:100}]}],Vertoramic:[{id:"map-classic",name:"Classic Map",type:"single",hasCaption:!0,defaultLineCount:3,slots:[{id:"1",x:10,y:5,w:80,h:75}]},{id:"map-modern-fade",name:"Modern Fade",type:"single",hasCaption:!0,defaultLineCount:3,slots:[{id:"1",x:0,y:0,w:100,h:100}]},{id:"map-no-text",name:"Classic No Text",type:"single",hasCaption:!1,slots:[{id:"1",x:10,y:3.5,w:80,h:93}]},{id:"map-full-bleed",name:"Full Bleed",type:"single",hasCaption:!1,slots:[{id:"1",x:0,y:0,w:100,h:100}]}],Panoramic:[{id:"map-classic",name:"Classic Map",type:"single",hasCaption:!0,defaultLineCount:3,slots:[{id:"1",x:10,y:10,w:80,h:60}]},{id:"map-modern-fade",name:"Modern Fade",type:"single",hasCaption:!0,defaultLineCount:3,slots:[{id:"1",x:0,y:0,w:100,h:100}]},{id:"map-no-text",name:"Classic No Text",type:"single",hasCaption:!1,slots:[{id:"1",x:3.5,y:10,w:93,h:80}]},{id:"map-full-bleed",name:"Full Bleed",type:"single",hasCaption:!1,slots:[{id:"1",x:0,y:0,w:100,h:100}]}]},soundwave:function(){for(var e={},t=function(){var t=r[n];e[t]=st.map(function(e){return it(it({},e),{},{slots:[ct[t][e.id]]})})},n=0,r=["Portrait","Landscape","Square","Vertoramic","Panoramic"];n<r.length;n++)t();return e}(),vinyl:function(){for(var e={},t=0,n=["Portrait","Landscape","Square","Vertoramic","Panoramic"];t<n.length;t++)e[n[t]]=[{id:"vinyl-classic",name:"Classic",type:"vinyl",hasCaption:!1,slots:[{id:"1",x:3,y:3,w:94,h:94}]},{id:"vinyl-header",name:"Title Header",type:"vinyl",hasCaption:!1,slots:[{id:"1",x:3,y:3,w:94,h:94}]},{id:"vinyl-photo",name:"Photo Centre",type:"vinyl",hasCaption:!1,slots:[{id:"1",x:3,y:3,w:94,h:94}]},{id:"vinyl-border",name:"Bordered",type:"vinyl",hasCaption:!1,printBorderMm:24,slots:[{id:"1",x:8,y:8,w:84,h:84}]}];return e}(),album:function(){for(var e={},t=0,n=["Portrait","Landscape","Square","Vertoramic","Panoramic"];t<n.length;t++)e[n[t]]=[{id:"album-classic",name:"Classic",type:"album",hasCaption:!1,slots:[{id:"1",x:0,y:0,w:100,h:100}]},{id:"album-border",name:"Bordered",type:"album",hasCaption:!1,printBorderMm:24,slots:[{id:"1",x:8,y:8,w:84,h:84}]}];return e}()},pt=0,dt=Object.entries({map:"modern",osmap:"os",oldmap:"antique"});pt<dt.length;pt++){var ft=nt(dt[pt],2),mt=ft[0],ht=ft[1],gt=ut[mt];
2if(gt)for(var xt=0,yt=Object.keys(gt);xt<yt.length;xt++)gt[yt[xt]].push({id:"".concat(mt,"-cartographic"),name:"Cartographic",type:"single",hasCaption:!1,mapFrameStyle:ht,slots:[{id:"1",x:0,y:0,w:100,h:100}]})}var vt={id:"hero-plus-4",name:"Hero + 4",type:"collage",hasCaption:!1,slots:[{id:"hero",x:5,y:5,w:90,h:43},{id:"s1",x:5,y:50.5,w:42.5,h:21.5},{id:"s2",x:52.5,y:50.5,w:42.5,h:21.5},{id:"s3",x:5,y:74.5,w:42.5,h:21.5},{id:"s4",x:52.5,y:74.5,w:42.5,h:21.5}]},bt={id:"hero-plus-6",name:"Hero + 6",type:"collage",hasCaption:!1,slots:[{id:"hero",x:5,y:5,w:90,h:40},{id:"s1",x:5,y:48,w:26.67,h:21},{id:"s2",x:36.67,y:48,w:26.67,h:21},{id:"s3",x:68.33,y:48,w:26.67,h:21},{id:"s4",x:5,y:74,w:26.67,h:21},{id:"s5",x:36.67,y:74,w:26.67,h:21},{id:"s6",x:68.33,y:74,w:26.67,h:21}]};if(ut.collage)for(var Yt=0,Mt=Object.keys(ut.collage);Yt<Mt.length;Yt++){var wt=Mt[Yt];ut.collage[wt].push(it(it({},vt),{},{slots:vt.slots.map(function(e){return it({},e)})}),it(it({},bt),{},{slots:bt.slots.map(function(e){return it({},e)})}))}function St(e,t){return Math.max(1.2,Math.min(5,30/Math.max(e,t)))}function jt(e,t){for(var n=St(e,t),r=(90-(t-1)*n)/t,o=(90-(e-1)*n)/e,a=function(e){return Math.round(1e3*e)/1e3},i=[],l=[],s=0;s<e;s++)for(var c=0;c<t;c++){var u="r".concat(s,"c").concat(c);i.push({id:u,x:a(5+c*(r+n)),y:a(5+s*(o+n)),w:a(r),h:a(o)}),l.push({id:u,row:s,col:c,rowSpan:1,colSpan:1})}return{id:"grid-".concat(e,"x").concat(t),name:"Grid ".concat(e,"×").concat(t),type:"collage",hasCaption:!1,slots:i,gridConfig:{rows:e,cols:t,spacing:n,internalSlots:l},autoCount:e*t}}function Tt(e,t,n){var r=1.8,o=(92-(e-1)*r)/e,a=(92-(t-1)*r)/t,i=function(e){return Math.round(1e3*e)/1e3},l=function(e){return 4+e*(o+r)},s=function(e){return 4+e*(a+r)},c=Array.from({length:t},function(){return Array(e).fill(!1)}),u=[],p=0;n.forEach(function(e){for(var t=nt(e,2),n=t[0],d=t[1],f=0;f<2;f++)for(var m=0;m<2;m++)c[n+f][d+m]=!0;u.push({id:"b".concat(p++),x:i(l(d)),y:i(s(n)),w:i(2*o+r),h:i(2*a+r)})});for(var d=0;d<t;d++)for(var f=0;f<e;f++)c[d][f]||u.push({id:"b".concat(p++),x:i(l(f)),y:i(s(d)),w:i(o),h:i(a)});return{id:"bento-".concat(e,"x").concat(t,"-").concat(n.length),name:"Bento ".concat(e,"×").concat(t),type:"collage",hasCaption:!1,slots:u,autoCount:u.length}}var Nt={13:[4,4,[[0,0]]],17:[4,5,[[1,1]]],19:[5,5,[[0,0],[3,3]]],21:[4,6,[[2,1]]]};function Wt(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(n>=.8&&n<=1.25&&Nt[e])return Tt.apply(void 0,function(e){if(Array.isArray(e))return ot(e)}(t=Nt[e])||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||rt(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(e<2)return null;for(var n=null,r=1;r<=e;r++)if(e%r===0){var o=e/r,a=St(o,r),i=(90-(r-1)*a)/r,l=(90-(o-1)*a)/o;if(!(i<=0||l<=0)){var s=i*t/l,c=Math.abs(Math.log(s));(!n||c<n.score)&&(n={rows:o,cols:r,score:c})}}return!n||n.score>.92?null:{rows:n.rows,cols:n.cols}}(e,n);return r?jt(r.rows,r.cols):function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=1.8,r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(e<=2)return[e];if(3===e)return[2,1];for(var n=Math.max(2,Math.round(Math.sqrt(e*t))),r=Math.max(6,n+2),o=[n,n+1,n-1,n,n+1],a=[],i=e,l=0;i>0;){var s=Math.max(2,Math.min(r,o[l%o.length]));if(i-s===1&&(s+=1),s>i&&(s=i),1===s){a[a.length-1]+=1;break}a.push(s),i-=s,l++}return a}(e,t),o=r.map(function(e){return 1===e?41.4*t:(92-(e-1)*n)/e*t}),a=o.reduce(function(e,t){return e+t},0),i=(92-(r.length-1)*n)/a,l=function(e){return Math.round(1e3*e)/1e3},s=[],c=4,u=0;return r.forEach(function(e,t){for(var r=o[t]*i,a=(92-(e-1)*n)/e,p=4,d=0;d<e;d++)s.push({id:"m".concat(u++),x:l(p),y:l(c),w:l(a),h:l(r)}),p+=a+n;c+=r+n}),{id:"mosaic-".concat(e),name:"Mosaic ".concat(e),type:"collage",hasCaption:!1,slots:s,autoCount:e}}(e,n)}function It(e){var t,n,r,o;
2if(!e)return 1;var a=null!==(t=null!==(n=e.widthMm)&&void 0!==n?n:e.widthIn)&&void 0!==t?t:0,i=null!==(r=null!==(o=e.heightMm)&&void 0!==o?o:e.heightIn)&&void 0!==r?r:0;return a>0&&i>0?a/i:1}function Ut(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return kt(c,"_invoke",function(n,r,o){var a,l,s,c=0,u=o||[],p=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,d.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!p&&c&&!o&&t<u.length;t++){var o,a=u[t],f=d.p,m=a[2];n>3?(o=m===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,d.v=r,d.n=a[1]):f<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,d.n=m,l=0))}if(o||n>1)return i;throw p=!0,r}return function(o,u,m){if(c>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!p;){a||(l?l<3?(l>1&&(d.n=-1),f(l,s)):d.n=s:d.v=s);try{if(c=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(p=d.n<0)?s:n.call(r,d))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:p}}}(n,o,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(kt(t={},r,function(){return this}),t),p=c.prototype=l.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,kt(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=c,kt(p,"constructor",c),kt(c,"constructor",s),s.displayName="GeneratorFunction",kt(c,o,"GeneratorFunction"),kt(p),kt(p,o,"Generator"),kt(p,r,function(){return this}),kt(p,"toString",function(){return"[object Generator]"}),(Ut=function(){return{w:a,m:d}})()}function kt(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}kt=function(e,t,n,r){function a(t,n){kt(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},kt(e,t,n,r)}function Dt(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}var At=function(e,t){var n=20037508.34*t/180,r=Math.log(Math.tan((90+e)*Math.PI/360))/(Math.PI/180);return{x:n,y:r=20037508.34*r/180}};function Ct(e,t,n){return Lt.apply(this,arguments)}function Lt(){var e;return e=Ut().m(function e(t,n,r){var o,a,i,l,s,c,u,p,d,f,m,h,g,x;return Ut().w(function(e){for(;;)switch(e.p=e.n){case 0:if(o=De.find(function(e){return e.id===r}),o&&o.extraid){e.n=1;break}return e.a(2,null);case 1:return a=At(t,n),i=2e3,l="".concat(a.x-i,",").concat(a.y-i,",").concat(a.x+i,",").concat(a.y+i),s="https://geoserver.nls.uk/geoserver/wfs?service=WFS&version=1.1.0&request=GetFeature&typename=nls:".concat(o.extraid,"&outputFormat=application/json&srsname=EPSG:3857&bbox=").concat(l,",EPSG:3857"),e.p=2,e.n=3,fetch(s);case 3:if((c=e.v).ok){e.n=4;break}return e.a(2,null);case 4:return e.n=5,c.json();case 5:if(u=e.v,p=u.features||[],o.editionFilter&&(d=o.editionFilter.toLowerCase(),p=p.filter(function(e){var t;return String((null==e||null===(t=e.properties)||void 0===t?void 0:t.EDITION)||"").trim().toLowerCase().startsWith(d)})),p.length){e.n=6;break}return e.a(2,{sheetCount:0,sheets:[]});case 6:return f=[],m=new Set,p.forEach(function(e){var t=(null==e?void 0:e.properties)||{};[t.PUB_STA,t.PUB_END,t.YEAR].forEach(function(e){var t=e?parseInt(String(e),10):NaN;!isNaN(t)&&t>1500&&t<2100&&f.push(t)});var n=(t.SHEET_MAP||t.SHEET||"").toString().trim();n&&m.add(n),!h&&t.SERIES&&(h=String(t.SERIES).trim()),!g&&t.COUNTY&&(g=String(t.COUNTY).trim())}),f.sort(function(e,t){return e-t}),e.a(2,{minYear:f[0],maxYear:f[f.length-1],sheetCount:p.length,sheets:Array.from(m),series:h,county:g});case 7:return e.p=7,x=e.v,console.warn("fetchOldMapArchive failed",x),e.a(2,null)}},e,null,[[2,7]])}),Lt=function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){Dt(a,r,o,i,l,"next",e)}function l(e){Dt(a,r,o,i,l,"throw",e)}i(void 0)})},Lt.apply(this,arguments)}var Ot=o(989),Et=o.n(Ot);function Vt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function zt(e,t){var n,r={},o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
2if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Vt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vt(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}(new Intl.DateTimeFormat("en-US",{timeZone:e,hour12:!1,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).formatToParts(new Date(t)));try{for(o.s();!(n=o.n()).done;){var a=n.value;r[a.type]=a.value}}catch(e){o.e(e)}finally{o.f()}var i="24"===r.hour?0:Number(r.hour),l=Date.UTC(Number(r.year),Number(r.month)-1,Number(r.day),i,Number(r.minute),Number(r.second));return Math.round((l-t)/6e4)}function Xt(e,t,n,r,o,a,i){var l=Date.UTC(n,r-1,o,a,i,0),s=function(e,t){try{var n=Et()(e,t);return"string"==typeof n&&n?n:null}catch(e){return null}}(e,t);if(!s){var c=60*Math.round(t/15);return{utcMs:l-6e4*c,offsetMinutes:c,zone:null}}var u=zt(s,l),p=zt(s,l-6e4*u);return{utcMs:l-6e4*p,offsetMinutes:p,zone:s}}function Pt(e,t){return new Date(e+6e4*t)}var Zt=o(23);function Gt(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return Ft(c,"_invoke",function(n,r,o){var a,l,s,c=0,u=o||[],p=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,d.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!p&&c&&!o&&t<u.length;t++){var o,a=u[t],f=d.p,m=a[2];n>3?(o=m===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,d.v=r,d.n=a[1]):f<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,d.n=m,l=0))}if(o||n>1)return i;throw p=!0,r}return function(o,u,m){if(c>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!p;){a||(l?l<3?(l>1&&(d.n=-1),f(l,s)):d.n=s:d.v=s);try{if(c=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(p=d.n<0)?s:n.call(r,d))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:p}}}(n,o,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Ft(t={},r,function(){return this}),t),p=c.prototype=l.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Ft(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=c,Ft(p,"constructor",c),Ft(c,"constructor",s),s.displayName="GeneratorFunction",Ft(c,o,"GeneratorFunction"),Ft(p),Ft(p,o,"Generator"),Ft(p,r,function(){return this}),Ft(p,"toString",function(){return"[object Generator]"}),(Gt=function(){return{w:a,m:d}})()}function Ft(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Ft=function(e,t,n,r){function a(t,n){Ft(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Ft(e,t,n,r)}function Bt(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Rt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Qt={},Ht=(0,e.forwardRef)(function(t,n){var r,o,a=t.width,i=t.height,l=t.config,s=t.onDataUpdate,c=t.onStarCount,u=t.onLoadingChange,p=t.discWidthIn,d=t.highRes,f=void 0!==d&&d,m=t.isAdmin,h=void 0!==m&&m,g
2=(0,e.useRef)(null),x=(r=(0,e.useState)(function(){return"celestial-map-".concat(Math.random().toString(36).substring(2,9))}),o=1,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(r,o)||function(e,t){if(e){if("string"==typeof e)return Rt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rt(e,t):void 0}}(r,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],y=(0,e.useRef)(!1),v=(0,e.useRef)(null),b=(0,e.useRef)(null),Y=(0,e.useRef)(!1),M=(0,e.useRef)(u);(0,e.useEffect)(function(){M.current=u},[u]);var w=(0,e.useCallback)(function(e){c&&c(e),s&&s({count:e})},[c,s]),S=(0,e.useRef)(w);(0,e.useEffect)(function(){S.current=w},[w]),(0,e.useImperativeHandle)(n,function(){return{capture:(e=Gt().m(function e(){var t,n;return Gt().w(function(e){for(;;)if(0===e.n)return n=null===(t=g.current)||void 0===t?void 0:t.querySelector("canvas"),e.a(2,n?n.toDataURL("image/png"):null)},e)}),t=function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){Bt(a,r,o,i,l,"next",e)}function l(e){Bt(a,r,o,i,l,"throw",e)}i(void 0)})},function(){return t.apply(this,arguments)}),getCanvas:function(){var e;return(null===(e=g.current)||void 0===e?void 0:e.querySelector("canvas"))||null}};var e,t});var j=(0,e.useCallback)(function(){var e;Y.current||(Y.current=!0,null===(e=M.current)||void 0===e||e.call(M,!0))},[]),T=(0,e.useCallback)(function(){var e;Y.current&&(Y.current=!1,null===(e=M.current)||void 0===e||e.call(M,!1))},[]),N=(0,e.useCallback)(function(e){var t=document.getElementById(e);t&&t.querySelectorAll("canvas, svg").forEach(function(e){e.style.setProperty("max-width","100%","important"),e.style.setProperty("max-height","100%","important"),e.style.setProperty("object-fit","contain","important"),e.style.display="block"})},[]),W=(0,e.useMemo)(function(){return JSON.stringify({d:l.date,la:l.lat,ln:l.lng,mag:l.magnitude,w:a,h:i,dw:p,hr:f,adm:h})},[l.date,l.lat,l.lng,l.magnitude,a,i,p,f,h]),I=(0,e.useMemo)(function(){return JSON.stringify({t:l.themeId,c:l.showConstellations,m:l.showMilkyWay,p:l.showPlanets,bc:l.borderColor,bw:l.borderWidth,nc:l.naturalColors})},[l.themeId,l.showConstellations,l.showMilkyWay,l.showPlanets,l.borderColor,l.borderWidth,l.naturalColors]),U=(0,e.useRef)(null);return(0,e.useEffect)(function(){return function(){var e=window;e.Celestial&&(e.Celestial.container=null,"function"==typeof e.Celestial.addCallback&&e.Celestial.addCallback(null)),T()}},[T]),(0,e.useEffect)(function(){if(g.current){var e=window;if(e.Celestial&&e.d3){var t=null;e.d3.originalJson||(e.d3.originalJson=e.d3.json,e.d3.json=function(e,t){var n=function(e){return"function"==typeof structuredClone?structuredClone(e):JSON.parse(JSON.stringify(e))};if(Qt[e]){var r=Qt[e];return r instanceof Promise?(r.then(function(e){t&&t(null,n(e))}).catch(function(e){t&&t(e,null)}),{header:function(){},get:function(){},post:function(){}}):(setTimeout(function(){t&&t(null,n(r))},0),{header:function(){},get:function(){},post:function(){}})}var o=fetch(e).then(function(e){return e.json()}).then(function(t){return Qt[e]=t,t});return Qt[e]=o,o.then(function(e){t&&t(null,n(e))}).catch(function(n){delete Qt[e],t&&t(n,null)}),{header:function(){},get:function(){},post:function(){}}}),U.current!==W&&j();var n=setTimeout(function(){try{var n,r,o=Ue.find(function(e){return e.id===l.themeId})||Ue[0],s=!!l.naturalColors,c=o.stars||"#ffffff",u=s?"#b68133":o.planets||o.stars||"#b68133",d=s?"#db7b04":u,m=s?"#00ccff":u,Y=s?"#db7b04":u,M=Math.max(a,i),w=p?16*p/Ie:0,j=w>
20?Math.min(.16,Math.max(.075,w))/w:1,I=Math.max(.05,a/Ie*j),k=function(e){return Math.round(e*I*100)/100},D=function(e){return e.replace(/(\d+(?:\.\d+)?)px/,function(e,t){return"".concat(Math.max(1,Math.round(parseFloat(t)*I)),"px")})},A=f||h?"stars.8.json":"stars.6.json",C=f||h?null!==(n=l.magnitude)&&void 0!==n?n:7:6,L={disableAnimations:!0,width:M,projection:"stereographic",projectionRatio:null,transform:"equatorial",center:[l.lat,l.lng],orientationfixed:!0,geopos:null,follow:"zenith",zoomlevel:null,zoomextend:10,adaptable:!0,interactive:!1,form:!1,location:!1,advanced:!1,controls:!1,container:x,datapath:"https://cdn.jsdelivr.net/gh/tman16/tpe-star-data/data/",stars:{show:!0,limit:C,colors:s,style:{fill:s?"#ffffff":c,opacity:1},designation:!1,designationType:"desig",designationStyle:{fill:"#ddddbb",font:D("11px 'Palatino Linotype', Georgia, Times, 'Times Roman', serif"),align:"left",baseline:"top"},designationLimit:2.5,propername:!1,propernameType:"name",propernameStyle:{fill:"#ddddbb",font:D("13px 'Palatino Linotype', Georgia, Times, 'Times Roman', serif"),align:"right",baseline:"bottom"},propernameLimit:1.5,size:k(7),exponent:-.28,data:A},dsos:{show:!1,limit:6,colors:!0,style:{fill:"#cccccc",stroke:"#cccccc",width:k(2),opacity:1},names:!0,namesType:"name",nameStyle:{fill:"#cccccc",font:D("11px Helvetica, Arial, serif"),align:"left",baseline:"top"},nameLimit:6,size:null,exponent:1.4,data:"dsos.bright.json",symbols:{}},constellations:{names:!!l.showConstellations,namesType:"name",nameStyle:{fill:s?"#ffffff":c,font:D("small-caps 16px Cormorant Garamond")},lines:!!l.showConstellations,lineStyle:{stroke:o.lines,width:k(2),opacity:1},bounds:!1,boundStyle:{stroke:"#cccc00",width:k(.5),opacity:1,dash:[k(2),k(4)]}},mw:{show:!!l.showMilkyWay,style:{fill:s?"#ffffff":c,opacity:.15}},lines:{graticule:{show:!0,stroke:o.lines,width:k(.5),opacity:.3,lon:{pos:[""],fill:"#eee",font:D("10px Helvetica, Arial, sans-serif")},lat:{pos:[""],fill:"#eee",font:D("10px Helvetica, Arial, sans-serif")}},equatorial:{show:!1},ecliptic:{show:!1},galactic:{show:!1},supergalactic:{show:!1}},planets:{show:!!l.showPlanets,which:["sol","mer","ven","ter","lun","mar","jup","sat","ura","nep"],symbols:{sol:{symbol:"☉",letter:"Su",fill:u,stroke:d,size:k(10)},mer:{symbol:"☿",letter:"Me",fill:u,stroke:d},ven:{symbol:"♀",letter:"V",fill:u,stroke:d},ter:{symbol:"⊕",letter:"T",fill:u,stroke:d},lun:{symbol:"●",letter:"L",fill:u,stroke:d,size:k(4)},mar:{symbol:"♂",letter:"Ma",fill:u,stroke:d},cer:{symbol:"⚳",letter:"C",fill:u,stroke:d},ves:{symbol:"⚶",letter:"Ma",fill:u,stroke:d},jup:{symbol:"♃",letter:"J",fill:u,stroke:d},sat:{symbol:"♄",letter:"Sa",fill:u,stroke:d},ura:{symbol:"♅",letter:"U",fill:u,stroke:d},nep:{symbol:"♆",letter:"N",fill:u,stroke:d},plu:{symbol:"♇",letter:"P",fill:u,stroke:d},eri:{symbol:"⚪",letter:"E",fill:u,stroke:d}},symbolStyle:{fill:m,font:D("bold 17px 'Lucida Sans Unicode', Consolas, sans-serif"),align:"center",baseline:"middle"},symbolType:"disk",names:!0,nameStyle:{fill:Y,font:D("small-caps 14px Cormorant Garamond"),align:"right",baseline:"top"},namesType:"en"},background:{fill:o.starMapBackground||o.background,opacity:1,stroke:l.borderColor||"#000000",width:k(null!==(r=l.borderWidth)&&void 0!==r?r:2)},horizon:{show:!1,stroke:"#cccccc",width:k(1),fill:"#000000",opacity:.5},daylight:{show:!1}},O=function(){var t,n=null!==(t=l.magnitude)&&void 0!==t?t:7;e.d3.json("https://cdn.jsdelivr.net/gh/tman16/tpe-star-data/data/stars.8.json",function(e,t){if(!e&&t){var r=function(e,t,n,r){if(!e||!e.features)return 0;for(var o=Math.PI/180,a=t*o,i=n*o,l=Math.cos(90*o),s=0,c=e.features,u=0;u<c.length;u++){var p=c[u];if(!(p.properties.mag>r)){var d=p.geometry.coordinates[0]*o,f=p.geometry.coordinates[1]*o;Math.sin(a)*Math.sin(f)+Math.cos(a)*Math.cos(f)*Math.cos(d-i)>=l&&s++}}return s}(t,l.lat,l.lng,n);S.current&&S.current(r)}})};e.Celestial.addCallback(function(){N(x),t&&clearTimeout(t),t=setTimeout(function(){O(),T()},150)});var E=document.getElementById(x),V=v.current!==A,z=b.current!==M,X=new Date(Date.parse(l.date)+24e4*(l.lng||0));if(y.current&&E&&e.Celestial.map&&!V&&!z)e.Celestial.apply(L),e.Celestial.date(X),N(x),O(),T(
2);else{if(g.current){g.current.innerHTML='<div id="'.concat(x,'" style="width:100%;height:100%;display:flex;justify-content:center;align-items:center;" class="!tpe-h-full"></div>');var P=new MutationObserver(function(){N(x)}),Z=document.getElementById(x);Z&&P.observe(Z,{childList:!0,subtree:!0})}e.Celestial.display(L),e.Celestial.date(X),y.current=!0,v.current=A,b.current=M}}catch(e){console.error("Star map error",e),T()}U.current=W},50),r=setTimeout(function(){Y.current&&T()},8e3);return function(){clearTimeout(n),clearTimeout(r),t&&clearTimeout(t)}}T()}},[W,I,x,a,i,p,T,j,N,f,h]),(0,Zt.jsx)("div",{className:"starmap-wrapper tpe-relative tpe-w-full tpe-h-full tpe-overflow-hidden",onContextMenu:function(e){return e.preventDefault()},children:(0,Zt.jsx)("div",{ref:g,className:"starmap-container tpe-w-full tpe-h-full tpe-flex tpe-items-center tpe-justify-center"})})});Ht.displayName="StarMapCanvas";const Kt=Ht;function Jt(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return qt(c,"_invoke",function(n,r,o){var a,l,s,c=0,u=o||[],p=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,d.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!p&&c&&!o&&t<u.length;t++){var o,a=u[t],f=d.p,m=a[2];n>3?(o=m===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,d.v=r,d.n=a[1]):f<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,d.n=m,l=0))}if(o||n>1)return i;throw p=!0,r}return function(o,u,m){if(c>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!p;){a||(l?l<3?(l>1&&(d.n=-1),f(l,s)):d.n=s:d.v=s);try{if(c=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(p=d.n<0)?s:n.call(r,d))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:p}}}(n,o,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(qt(t={},r,function(){return this}),t),p=c.prototype=l.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,qt(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=c,qt(p,"constructor",c),qt(c,"constructor",s),s.displayName="GeneratorFunction",qt(c,o,"GeneratorFunction"),qt(p),qt(p,o,"Generator"),qt(p,r,function(){return this}),qt(p,"toString",function(){return"[object Generator]"}),(Jt=function(){return{w:a,m:d}})()}function qt(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}qt=function(e,t,n,r){function a(t,n){qt(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},qt(e,t,n,r)}function _t(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=tn(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function $t(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function en(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||tn(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tn(e,t){if(e){if("string"==typeof e)return nn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nn(e,t):void 0}}function nn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var rn=new Map,on=function(e,t){var n=20037508.34*e/180,r=Math.log(Math.tan((90+t)*Math.PI/360))/(Math.PI/180);return[n,r=20037508.34*r/180]},an=function(e,t,n,r){var o=en(on(e,t),2),a=o[0],i=o[1],l=en(on(n,r),2),s=l[0],c=l[1];return"".concat(a,",").concat(i,",").concat(s,",").concat(c)},ln=function(e){var t=1/0,n=1/0,r=-1/0,o=-1/0;return e.forEach(function(e){return e.forEach(function(e){var a=en(e,2),i=a[0],l=a[1];i<t&&(t=i),i>r&&(r=i),l<n&&(n=l),l>o&&(o=l)})}),[t,n,r,o]},sn=function(e,t,n){for(var r=!1,o=0,a=n.length-1;o<n.length;a=o++){var i=en(n[o],2),l=i[0],s=i[1],c=en(n[a],2),u=c[0],p=c[1];s>t!=p>t&&e<(u-l)*(t-s)/(p-s)+l&&(r=!r)}return r};function cn(e,t){return un.apply(this,arguments)}function un(){var e;return e=Jt().m(function e(t,n){var r,o,a,i,l,s,c;return Jt().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t.countyIndex){e.n=1;break}return e.a(2,[]);case 1:if(r="".concat(t.countyIndex,"|").concat(n),!(o=rn.get(r))){e.n=2;break}return e.a(2,o);case 2:return a="https://geoserver.nls.uk/geoserver/wfs?service=WFS&version=1.1.0&request=GetFeature"+"&typename=nls:".concat(t.countyIndex,"&outputFormat=application/json&srsname=EPSG:3857")+"&bbox=".concat(n,",EPSG:3857"),e.p=3,e.n=4,fetch(a);case 4:if((i=e.v).ok){e.n=5;break}return e.a(2,[]);case 5:return e.n=6,i.json();case 6:return l=e.v,s=[],(l.features||[]).forEach(function(e){var t,n=String((null==e||null===(t=e.properties)||void 0===t?void 0:t.COUNTY)||"").trim().toLowerCase();if(n){var r,o,a=(r=e.geometry)?"Polygon"===r.type?[(null===(o=r.coordinates)||void 0===o?void 0:o[0])||[]]:"MultiPolygon"===r.type?(r.coordinates||[]).map(function(e){return(null==e?void 0:e[0])||[]}):[]:[];a.length&&s.push({slug:n,rings:a,bbox:ln(a)})}}),rn.set(r,s),e.a(2,s);case 7:return e.p=7,c=e.v,console.warn("countyAreasForBbox failed",c),e.a(2,[])}},e,null,[[3,7]])}),un=function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){$t(a,r,o,i,l,"next",e)}function l(e){$t(a,r,o,i,l,"throw",e)}i(void 0)})},un.apply(this,arguments)}function pn(e,t,n){if(!e.length)return null;var r,o=_t(e);try{for(o.s();!(r=o.n()).done;){var a=r.value,i=en(a.bbox,4),l=i[0],s=i[1],c=i[2],u=i[3];if(!(t<l||t>c||n<s||n>u)&&a.rings.some(function(e){return sn(t,n,e)}))return a.slug}}catch(e){o.e(e)}finally{o.f()}var p,d=e[0],f=1/0,m=_t(e);try{for(m.s();!(p=m.n()).done;){var h=p.value,g=(h.bbox[0]+h.bbox[2])/2,x=(h.bbox[1]+h.bbox[3])/2,y=Math.pow(g-t,2)+Math.pow(x-n,2);y<f&&(f=y,d=h)}}catch(e){m.e(e)}finally{m.f()}return d.slug}var dn=function(e,t,n,r,o,a){return e.tileUrl?e.tileUrl.replace("{county}",t||"").replace("{z}",String(n)).replace("{x}",String(r)).replace("{y}",String(o)):"https://api.maptiler.com/tiles/".concat(e.id,"/").concat(n,"/").concat(r,"/").concat(o,".").concat(e.mime,"?key=").concat(a)};function fn(e){return fn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fn(e)}function mn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hn(r.key),r)}}function hn(e){var t=function(e){if("object"!=fn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=fn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fn(t)?t:t+""}var gn=Math.PI/180,xn=function(){return e=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.size=t.size||256},t=[{key:"px",value:function(e,t){var n=this.size*Math.pow(2,t),r=n/360,o=n/(2*Math.PI),a=n/2,i=Math.min(Math.max(Math.sin(gn*e[1]),-.9999),.9999),l=a+e[0]*r,s=a+.5*Math.log((1+i)/(1-i))*-o;return l>n&&(l=n),s>n&&(s=n),[l,s]}},{key:"ll",value:function(e,t){var n=this.size*Math.pow(2,t),r=n/360,o=n/(2*Math.PI),a=n/2,i=(e[1]-a)/-o;return[(e[0]-a)/r,(2*Math.atan(Math.exp(i))-Math.PI/2)/gn]}},{key:"xyz",value:function(e,t){var n=this.px([e[0],e[3]],t),r=this.px([e[2],e[1]],t);return{minX:Math.floor(n[0]/this.size),minY:Math.floor(n[1]/this.size),maxX:Math.floor(r[0]/this.size),maxY:M
2ath.floor(r[1]/this.size)}}}],t&&mn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function yn(e){return function(e){if(Array.isArray(e))return jn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Sn(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vn(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return bn(c,"_invoke",function(n,r,o){var a,l,s,c=0,u=o||[],p=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,d.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!p&&c&&!o&&t<u.length;t++){var o,a=u[t],f=d.p,m=a[2];n>3?(o=m===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,d.v=r,d.n=a[1]):f<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,d.n=m,l=0))}if(o||n>1)return i;throw p=!0,r}return function(o,u,m){if(c>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!p;){a||(l?l<3?(l>1&&(d.n=-1),f(l,s)):d.n=s:d.v=s);try{if(c=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(p=d.n<0)?s:n.call(r,d))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:p}}}(n,o,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(bn(t={},r,function(){return this}),t),p=c.prototype=l.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,bn(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=c,bn(p,"constructor",c),bn(c,"constructor",s),s.displayName="GeneratorFunction",bn(c,o,"GeneratorFunction"),bn(p),bn(p,o,"Generator"),bn(p,r,function(){return this}),bn(p,"toString",function(){return"[object Generator]"}),(vn=function(){return{w:a,m:d}})()}function bn(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}bn=function(e,t,n,r){function a(t,n){bn(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},bn(e,t,n,r)}function Yn(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Mn(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){Yn(a,r,o,i,l,"next",e)}function l(e){Yn(a,r,o,i,l,"throw",e)}i(void 0)})}}function wn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||Sn(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Sn(e,t){if(e){if("string"==typeof e)return jn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jn(e,t):void 0}}function jn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Tn=(0,e.forwardRef)(function(t,n){var r=t.width,o=t.height,a=t.config,i=t.printWidthIn,l=t.printHeightIn,s=t.slotWidthPercent,c=void 0===s?100:s,u=t.slotHeightPercent,p=void 0===u?100:u,d=t.onLoadingChange,f=(0,e.useRef)(null),m=wn((0,e.useState)(!1),2),h=m[0],g=m[1],x=wn((0,e.useState)(0),2),y=x[0],v=x[1];return(0,e.useEffect)(function(){null==d||d(h)},[h,d]),(0,e.useImperativeHandle)(n,function(){return{capture:(e=Mn(vn().m(function e(){return vn().w(function(e){for(;;)switch(e.n){case 0:if(!f.current){e.n=1;break}return e.a(2,f.current.toDataURL("image/jpeg",.9));case 1:return e.a(2,null)}},e)})),function(){return e.apply(this,arguments)}),getCanvas:function(){return f.current}};var e}),(0,e.useEffect)(function(){var e=!1,t=function(){var t=Mn(vn().m(function t(){var n,r,o,s,u,d,m,h,x,y,b,Y,M,w,S,j,T,N,W,I,U,k,D,A,C,L,O,E,V,z,X,P,Z,G,F,B,R,Q,H,K,J,q,_,$,ee,te,ne,re,oe,ae;return vn().w(function(t){for(;;)switch(t.n){case 0:if(n=f.current){t.n=1;break}return t.a(2);case 1:if(r=n.getContext("2d")){t.n=2;break}return t.a(2);case 2:if(g(!0),v(0),o=De.find(function(e){return e.id===a.styleId})||De[0],s=Math.max.apply(Math,yn(o.zoom)),u=i*(c/100),d=l*(p/100),m=4500,h=s,a.scale?(b=Be(i,c,a.scale),Y=Be(l,p,a.scale),M=Ke(b,Y,a.lat,s,m),h=M.zoom,x=M.bufferW,y=M.bufferH):(w=Math.round(300*u),S=Math.round(300*d),j=window.innerWidth<600?.4:.8,x=Math.min(Math.round(w*j),m),y=Math.min(Math.round(S*j),m)),T=new xn({size:256}),N=T.px([a.lng,a.lat],h),n.width=x,n.height=y,W=x/2,I=y/2,U=N[0]-W,k=N[1]-I,D=Math.floor(U/256),A=Math.floor(k/256),C=Math.floor((N[0]+W)/256),L=Math.floor((N[1]+I)/256),O=T.ll([256*D,256*A],h),E=T.ll([256*(C+1),256*(L+1)],h),!o.countyIndex){t.n=4;break}return t.n=3,cn(o,an(O[0],E[1],E[0],O[1]));case 3:ae=t.v,t.n=5;break;case 4:ae=[];case 5:if(V=ae,!e){t.n=6;break}return t.a(2);case 6:for(z=[],X=D;X<=C;X++)for(P=A;P<=L;P++)Z=256*X-U,G=256*P-k,F=null,V.length&&(B=T.ll([256*X+128,256*P+128],h),R=wn(B,2),Q=R[0],H=R[1],K=on(Q,H),J=wn(K,2),q=J[0],_=J[1],F=pn(V,q,_)),z.push({tx:X,ty:P,x:Z,y:G,url:dn(o,F,h,X,P,"7Y0Q1ck46BnB8cXXXg8X")});$=0,ee=z.length,r.fillStyle="#f3f4f6",r.fillRect(0,0,x,y),te=function(t){return new Promise(function(n){var o=new Image;o.crossOrigin="Anonymous",o.onload=function(){e||(r.drawImage(o,t.x,t.y,256,256),$++,v(Math.round($/ee*100))),n()},o.onerror=function(){e||($++,v(Math.round($/ee*100))),n()},o.src=t.url})},ne=16,re=0;case 7:if(!(re<z.length)){t.n=10;break}if(!e){t.n=8;break}return t.a(2);case 8:return oe=z.slice(re,re+ne),t.n=9,Promise.all(oe.map(te));case 9:re+=ne,t.n=7;break;case 10:if(!e){t.n=11;break}return t.a(2);case 11:g(!1),v(100);case 12:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}();return t(),function(){e=!0}},[r,o,a,i,l,c,p]),(0,Zt.jsxs)("div",{className:"tpe-relative tpe-w-full tpe-h-full tpe-bg-gray-200",onContextMenu:function(e){return e.preventDefault()},children:[(0,Zt.jsx)("canvas",{ref:f,className:"tpe-block tpe-w-full tpe-h-full",style:{width:"100%",height:"100%"}}),h&&(0,Zt.jsx)("div",{className:"tpe-ignore-capture tpe-absolute tpe-inset-0 tpe-flex tpe-items-center tpe-justify-center tpe-bg-white/50 tpe-backdrop-blur-sm tpe-z-10 tpe-transition-all",children:(0,Zt.jsxs)("div",{className:"tpe-bg-white tpe-px-4 tpe-py-2 tpe-rounded-full tpe-shadow-lg tpe-flex tpe-items-center tpe-gap-3",children:[(0,Zt.jsxs)("svg",{className:"tpe-animate-spin tpe-h-5 tpe-w-5 tpe-text-indigo-600",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,Zt.jsx)("circle",{className:"tpe-opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,Zt.jsx)("path",{className:"tpe-opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),(0,Zt.jsxs)("span",{className:"tpe-text-sm tpe-font-bold tpe-text-gray-700",children:["Loading High Res Map... ",y,"%"]})]})})]})});Tn.displayName="OldMapCanvas";const Nn=Tn;function Wn(e){return Wn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wn(e)}function In(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return Un(c,"_invoke",function(n,r,o){var a,l,s,c=0,u=o||[],p=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,d.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!p&&c&&!o&&t<u.length;t++){var o,a=u[t],f=d.p,m=a[2];n>3?(o=m===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,d.v=r,d.n=a[1]):f<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,d.n=m,l=0))}if(o||n>1)return i;throw p=!0,r}return function(o,u,m){if(c>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!p;){a||(l?l<3?(l>1&&(d.n=-1),f(l,s)):d.n=s:d.v=s);try{if(c=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(p=d.n<0)?s:n.call(r,d))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:p}}}(n,o,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Un(t={},r,function(){return this}),t),p=c.prototype=l.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Un(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=c,Un(p,"constructor",c),Un(c,"constructor",s),s.displayName="GeneratorFunction",Un(c,o,"GeneratorFunction"),Un(p),Un(p,o,"Generator"),Un(p,r,function(){return this}),Un(p,"toString",function(){return"[object Generator]"}),(In=function(){return{w:a,m:d}})()}function Un(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Un=function(e,t,n,r){function a(t,n){Un(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Un(e,t,n,r)}function kn(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Dn(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){kn(a,r,o,i,l,"next",e)}function l(e){kn(a,r,o,i,l,"throw",e)}i(void 0)})}}function An(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Cn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Cn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Cn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ln(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function On(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ln(Object(n),!0).forEach(function(t){En(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ln(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function En(e,t,n){return(t=function(e){var t=function(e){if("object"!=Wn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Wn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wn(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vn=16384,zn=2e8,Xn=function(e,t,n,r){var o;if(void 0!==r)o=Math.min(r,n);else{o=n;for(var a=0;a<=n;a++)if(e/ze[a]>=t){o=a;break}}return o},Pn=function(e){var t=ze;if(!(e>0))return 0;if(e>=t[0])return 0;if(e<=t[t.length-1])return t.length-1;for(var n=1/e,r=0;r<t.length-1;r++){var o=1/t[r],a=1/t[r+1];if(n>=o&&n<=a)return r+(n-o)/(a-o)}return 0},Zn=!1,Gn=function(){var e=window.proj4;return e?(Zn||(e.defs("EPSG:27700",Ve),Zn=!0),e):null},Fn=function(e){return Ee.find(function(t){return t.id===e})||Ee[0]},Bn=function(){var e,t=null===(e=window.SHOPIFY_CONFIG)||void 0===e?void 0:e.osMapPrintImage;return"string"==typeof t&&t?t:null},Rn=function(e){return new Promise(function(t){var n=new Image;n.crossOrigin="Anonymous",n.onload=function(){return t(n)},n.onerror=function(){return t(null)},n.src=e})},Qn=function(e){return"".concat(Oe,"/").concat(e,"/{z}/{x}/{y}.png?key=").concat(Le)},Hn=(0,e.forwardRef)(function(t,n){var r=t.width,o=t.height,a=t.config,i=t.printWidthIn,l=t.printHeightIn,s=t.slotWidthPercent,c=void 0===s?100:s,u=t.slotHeightPercent,p=void 0===u?100:u,d=t.highRes,f=void 0!==d&&d,m=t.onLoadingChange,h=t.onViewChange,g=(0,e.useRef)(null),x=(0,e.useRef)(null),y=(0,e.useRef)(null),v=(0,e.useRef)(null),b=An((0,e.useState)(!1),2),Y=b[0],M=b[1],w=An((0,e.useState)(0),2),S=w[0],j=w[1],T=(0,e.useRef)(!1),N=(0,e.useRef)(h);(0,e.useEffect)(function(){N.current=h},[h]);var W=(0,e.useRef)(a);(0,e.useEffect)(function(){W.current=a},[a]);var I=(0,e.useRef)({printWidthIn:i,slotWidthPercent:c}
2);(0,e.useEffect)(function(){I.current={printWidthIn:i,slotWidthPercent:c}},[i,c]),(0,e.useEffect)(function(){null==m||m(Y)},[Y,m]);var U=function(){var e=Dn(In().m(function e(t,n,a){var s,u,d,f,m,h,g,x,v,b,Y,M,w,S,T,N,I,U,k,D,A,C,L,O,E,V,z,X,P,Z,G,F,B,R,Q,H,K,J,q,_,$,ee,te,ne,re,oe,ae,ie,le,se,ce,ue,pe,de,fe,me,he,ge,xe,ye,ve,be;return In().w(function(e){for(;;)switch(e.n){case 0:if(s=Gn()){e.n=1;break}return e.a(2,null);case 1:if(u=y.current,d=Fn(W.current.styleId),u?(v=u.getCenter(),f=v.lat,m=v.lng,h=Math.round(u.getZoom()),b=u.getSize(),g=b.x||r,x=b.y||o):(f=W.current.lat,m=W.current.lng,h=W.current.zoom,g=r,x=o),h=Math.min(Math.max(Math.round(h),0),d.maxZoom),Y=ze[h],M=s("EPSG:4326","EPSG:27700",[m,f]),w=An(M,2),S=w[0],T=w[1],N=W.current.scale,I=N?Re(i,c,N):g*Y,U=N?Re(l,p,N):x*Y,k=S-I/2,D=T+U/2,A=Math.max(Math.round(t),1),C=U/I,(L=Math.min(A,Vn))*(L*C)>zn&&(L=Math.floor(Math.sqrt(zn/C))),L*C>Vn&&(L=Math.floor(Vn/C)),L=Math.max(1,L),O=Math.max(1,Math.round(L*C)),!(E=Bn())){e.n=4;break}return e.n=2,Rn(E);case 2:if(!(V=e.v)){e.n=3;break}if((z=n||document.createElement("canvas")).width=L,z.height=O,!(X=z.getContext("2d"))){e.n=3;break}return X.imageSmoothingEnabled=!0,X.imageSmoothingQuality="high",X.drawImage(V,0,0,V.naturalWidth,V.naturalHeight,0,0,L,O),window.__tpeOsMapPrintOverride={state:"used",url:E,srcPx:"".concat(V.naturalWidth,"x").concat(V.naturalHeight),outPx:"".concat(L,"x").concat(O)},null==a||a(1,1),j(100),e.a(2,z);case 3:window.__tpeOsMapPrintOverride={state:"failed",url:E},console.warn("[osmap] print override did not load, falling back to tiles:",E);case 4:if(P=Xn(I,L,d.maxZoom,N?Ze(N):void 0),Z=ze[P],G=Math.max(1,Math.round(I/Z)),F=Math.max(1,Math.round(U/Z)),B=(k-Xe[0])/Z,R=(Xe[1]-D)/Z,(Q=n||document.createElement("canvas")).width=L,Q.height=O,H=Q.getContext("2d")){e.n=5;break}return e.a(2,null);case 5:if(H.fillStyle="#f3f4f6",H.fillRect(0,0,L,O),H.imageSmoothingEnabled=!0,H.imageSmoothingQuality="high",(K=document.createElement("canvas")).width=G,J=K.getContext("2d")){e.n=6;break}return e.a(2,null);case 6:q=Math.floor(B/256),_=Math.floor((B+G)/256),$=Math.max(1,Math.floor(1024*O/F)),ee=0,te=[],ne=0;case 7:if(!(ne<O)){e.n=10;break}if(re=Math.min(ne+$,O),oe=ne*F/O,ae=re*F/O,ie=Math.floor(oe),!((le=Math.ceil(ae))<=ie)){e.n=8;break}return e.a(3,9);case 8:se=Math.floor((R+ie)/256),ce=Math.floor((R+le-1)/256),te.push({y0:ie,y1:le,d0:ne,d1:re,sy:oe-ie,sh:ae-oe,tyMin:se,tyMax:ce}),ee+=(_-q+1)*(ce-se+1);case 9:ne+=$,e.n=7;break;case 10:ue=0,pe=function(e,t,n,r){return new Promise(function(o){var i=new Image;i.crossOrigin="Anonymous",i.onload=function(){e.drawImage(i,n,r,256,256),ue++,j(Math.round(ue/ee*100)),null==a||a(ue,ee),o()},i.onerror=function(){e.fillStyle="#e5e7eb",e.fillRect(n,r,256,256),ue++,null==a||a(ue,ee),o()},i.src=t})},de=48,fe=0,me=te;case 11:if(!(fe<me.length)){e.n=16;break}for(he=me[fe],ge=he.y1-he.y0,K.height=ge,J.fillStyle="#f3f4f6",J.fillRect(0,0,G,ge),xe=[],ye=q;ye<=_;ye++)for(ve=he.tyMin;ve<=he.tyMax;ve++)xe.push({url:"".concat(Oe,"/").concat(d.id,"/").concat(P,"/").concat(ye,"/").concat(ve,".png?key=").concat(Le),x:256*ye-B,y:256*ve-R-he.y0});be=0;case 12:if(!(be<xe.length)){e.n=14;break}return e.n=13,Promise.all(xe.slice(be,be+de).map(function(e){return pe(J,e.url,e.x,e.y)}));case 13:be+=de,e.n=12;break;case 14:H.drawImage(K,0,he.sy,G,he.sh,0,he.d0,L,Math.max(1,he.d1-he.d0));case 15:fe++,e.n=11;break;case 16:return K.width=1,K.height=1,e.a(2,Q)}},e)}));return function(t,n,r){return e.apply(this,arguments)}}();(0,e.useImperativeHandle)(n,function(){return{capture:(t=Dn(In().m(function e(){var t;return In().w(function(e){for(;;)switch(e.n){case 0:if(!(x.current&&x.current.width>1)){e.n=1;break}return e.a(2,x.current.toDataURL("image/jpeg",.9));case 1:return e.n=2,U(Math.round(i*(c/100)*300));case 2:return t=e.v,e.a(2,t?t.toDataURL("image/jpeg",.9):null)}},e)})),function(){return t.apply(this,arguments)}),getCanvas:function(){return x.current},captureTiled:(e=Dn(In().m(function e(t,n,r){return In().w(function(e){for(;;)if(0===e.n)return e.a(2,U(t,void 0,null==r?void 0:r.onProgress))},e)})),function(t,n,r){return e.apply(this,arguments)})};var e,t}),(0,e.useEffect)(function(){var e=window.L,t=Gn();if(e&&e.Proj&&t&&g.current){Fn(a.styleId);var n=new e.Proj.CRS("EPSG:27700",Ve,{resolutions:ze,origin:Xe});M(!0);var r=ze.length-1,o=e.map(g.current,{crs:n,minZoom:0,maxZoom:r,zoomSnap:0,zoomDelta:.5,center:[a.lat,a.lng],zoom:Math.min(a.zoom,r),attributionControl:!1,zoomControl:!1,scrollWheelZoom:!1,doubleClickZoom:!1,touchZoom:!1,boxZoom:!1,keyboard:!1,preferCanvas:!0});y.current=o,C.current();var i=function(){var e,t;if(T.current)T.current=!1;else{var n=o.getCenter();null===(e=N.current)||void 0===e||e.call(N,n.lat,n.lng,Math.round(o.getZoom()),null!==(t=W.current.scale)&&void 0!==t?t:0)}};return o.on("moveend",i),o.on("zoomend",i),function(){D.current&&window.clearTimeout(D.current);try{o.remove()}catch(e){}y.current=null,v.current=null,A.current=null}}},[]);var k=(0,e.useRef)(function(){});k.current=function(){var e=y.current,t=W.current.scale;if(e&&t){var n=e.getSize().x;if(n){var r=I.current,o=r.printWidthIn,a=r.slotWidthPercent,i=Math.min(Pn(Re(o,a,t)/n),ze.length-1),l=Math.round(e.getZoom());if(Math.abs(e.getZoom()-i)>5e-4){T.current=!0;try{e.setZoom(i,{animate:!1})}catch(e){T.current=!1}}Math.round(e.getZoom())!==l&&C.current()}}};var D=(0,e.useRef)(null),A=(0,e.useRef)(null),C=(0,e.useRef)(function(){});C.current=function(){var e=y.current,t=window.L;
2if(e&&t){var n=Fn(W.current.styleId),r=I.current,o=r.printWidthIn,a=r.slotWidthPercent;if(A.current)try{e.removeLayer(A.current)}catch(e){}if(v.current)try{e.removeLayer(v.current)}catch(e){}var i=function(e,t,n,r,o){var a,i={minZoom:0,maxZoom:ze.length-1,maxNativeZoom:e.maxZoom};if(!t||!o)return i;var l=Re(n,r,t),s=n*(r/100)*300,c=Ze(t),u=Xn(l,s,e.maxZoom,c),p=(null===(a=o.getSize)||void 0===a||null===(a=a.call(o))||void 0===a?void 0:a.x)||0;if(p>0)for(var d=Math.max(0,c-1);u>d&&l/ze[u]>4*p;)u--;var f=Math.min(Math.max(u-Math.round(o.getZoom()),0),6);return 0===f?i:On(On({},i),{},{zoomOffset:f,tileSize:256/Math.pow(2,f)})}(n,W.current.scale,o,a,e),l="zoomOffset"in i;A.current=l?t.tileLayer(Qn(n.id),{minZoom:0,maxZoom:ze.length-1,maxNativeZoom:n.maxZoom}).addTo(e):null,M(!0),j(0);var s=t.tileLayer(Qn(n.id),i);!function(e){var t=0,n=0,r=function(){D.current&&window.clearTimeout(D.current),D.current=window.setTimeout(function(){return M(!1)},2e4)},o=function(){n++,j(t>0?Math.min(99,Math.round(n/t*100)):100),r(),n>=t&&(M(!1),j(100))};e.on("loading",function(){t=0,n=0,j(0),M(!0),r()}),e.on("tileloadstart",function(){t++}),e.on("tileload",o),e.on("tileerror",o),e.on("load",function(){D.current&&window.clearTimeout(D.current),j(100),M(!1)})}(s),s.addTo(e),v.current=s}},(0,e.useEffect)(function(){var e=y.current;e&&!f&&requestAnimationFrame(function(){try{e.invalidateSize({animate:!1})}catch(e){}k.current()})},[r,o,f]),(0,e.useEffect)(function(){var e=g.current;if(e&&"undefined"!=typeof ResizeObserver){var t=new ResizeObserver(function(){var e=y.current;e&&!f&&requestAnimationFrame(function(){try{e.invalidateSize({animate:!1})}catch(e){}k.current()})});return t.observe(e),function(){return t.disconnect()}}},[f]),(0,e.useEffect)(function(){var e=y.current;if(e&&!f){var t,n=ze.length-1;if(a.scale){var o=e.getSize().x||r;if(!o)return;var l=Re(i,c,a.scale);t=Math.min(Pn(l/o),n)}else t=Math.min(a.zoom,Fn(a.styleId).maxZoom);var s=e.getCenter(),u=Math.abs(s.lat-a.lat)+Math.abs(s.lng-a.lng),p=Math.round(e.getZoom());if(u>1e-5||Math.abs(e.getZoom()-t)>.001){T.current=!0;try{e.setView([a.lat,a.lng],t,{animate:!1})}catch(e){T.current=!1}}Math.round(e.getZoom())!==p&&C.current()}},[a.lat,a.lng,a.zoom,a.scale,a.styleId,i,c,r,o,f]);var L=a.scale;return(0,e.useEffect)(function(){y.current&&!f&&L&&C.current()},[L,i,c]),(0,e.useEffect)(function(){y.current&&C.current()},[a.styleId]),(0,e.useEffect)(function(){if(f){var e=!1;M(!0),j(0);var t=Math.round(i*(c/100)*300);return U(t,x.current||void 0).then(function(){e||(M(!1),j(100))}).catch(function(){e||M(!1)}),function(){e=!0}}},[f,a.lat,a.lng,a.zoom,a.scale,a.styleId,i,c]),(0,Zt.jsxs)("div",{className:"tpe-relative tpe-w-full tpe-h-full tpe-bg-gray-200",onContextMenu:function(e){return e.preventDefault()},children:[(0,Zt.jsx)("div",{ref:g,className:"tpe-w-full tpe-h-full",style:{width:"100%",height:"100%",display:f?"none":"block"}}),(0,Zt.jsx)("canvas",{ref:x,className:"tpe-block tpe-w-full tpe-h-full",style:{width:"100%",height:"100%",display:f?"block":"none"}}),Y&&(0,Zt.jsx)("div",{className:"tpe-ignore-capture tpe-absolute tpe-inset-0 tpe-flex tpe-items-center tpe-justify-center tpe-bg-white/50 tpe-backdrop-blur-sm tpe-z-[400] tpe-transition-all tpe-pointer-events-none",children:(0,Zt.jsxs)("div",{className:"tpe-bg-white tpe-px-4 tpe-py-2 tpe-rounded-full tpe-shadow-lg tpe-flex tpe-items-center tpe-gap-3",children:[(0,Zt.jsxs)("svg",{className:"tpe-animate-spin tpe-h-5 tpe-w-5 tpe-text-indigo-600",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,Zt.jsx)("circle",{className:"tpe-opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,Zt.jsx)("path",{className:"tpe-opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),(0,Zt.jsx)("span",{className:"tpe-text-sm tpe-font-bold tpe-text-gray-700",children:f?"Loading High Res Map... ".concat(S,"%"):"Loading map… ".concat(S,"%")})]})})]})});Hn.displayName="OsMapCanvas";const Kn=Hn;function Jn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function qn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _n(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return $n(c,"_invoke",function(n,r,o){var a,l,s,c=0,u=o||[],p=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,d.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!p&&c&&!o&&t<u.length;t++){var o,a=u[t],f=d.p,m=a[2];n>3?(o=m===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,d.v=r,d.n=a[1]):f<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,d.n=m,l=0))}if(o||n>1)return i;throw p=!0,r}return function(o,u,m){if(c>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!p;){a||(l?l<3?(l>1&&(d.n=-1),f(l,s)):d.n=s:d.v=s);try{if(c=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(p=d.n<0)?s:n.call(r,d))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:p}}}(n,o,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):($n(t={},r,function(){return this}),t),p=c.prototype=l.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,$n(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=c,$n(p,"constructor",c),$n(c,"constructor",s),s.displayName="GeneratorFunction",$n(c,o,"GeneratorFunction"),$n(p),$n(p,o,"Generator"),$n(p,r,function(){return this}),$n(p,"toString",function(){return"[object Generator]"}),(_n=function(){return{w:a,m:d}})()}function $n(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}$n=function(e,t,n,r){function a(t,n){$n(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},$n(e,t,n,r)}function er(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function tr(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){er(a,r,o,i,l,"next",e)}function l(e){er(a,r,o,i,l,"throw",e)}i(void 0)})}}var nr="v3.9.0",rr="https://api.mapbox.com/mapbox-gl-js/".concat(nr,"/mapbox-gl.js"),or="https://api.mapbox.com/mapbox-gl-js/".concat(nr,"/mapbox-gl.css"),ar=function(){return!(!window.mapboxgl||!window.mapboxgl.Map)},ir=null,lr=function(e){return new Promise(function(t){return setTimeout(t,e)})};function sr(e){return cr.apply(this,arguments)}function cr(){return(cr=tr(_n().m(function e(t){var n;return _n().w(function(e){for(;;)switch(e.n){case 0:n=Date.now();case 1:if(!(Date.now()-n<t)){e.n=4;break}if(!ar()){e.n=2;break}return e.a(2,!0);case 2:return e.n=3,lr(200);case 3:e.n=1;break;case 4:return e.a(2,ar())}},e)}))).apply(this,arguments)}function ur(){return new Promise(function(e){try{if(!document.querySelector('link[href="'.concat(or,'"]'))){var t=document.createElement("link");t.rel="stylesheet",t.href=or,document.head.appendChild(t)}var n=document.createElement("script");n.src=rr,n.async=!0,n.onload=function(){return e(ar())},n.onerror=function(){return e(!1)},document.head.appendChild(n),setTimeout(function(){return e(ar())},12e3)}catch(t){e(!1)}})}var pr=null;function dr(){var t,n,r=(t=(0,e.useState)(function(){return ar()?"ready":"loading"}),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return qn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qn(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=r[0],a=r[1];return(0,e.useEffect)(function(){if("ready"!==o){var e=!1;return(ar()?Promise.resolve(!0):pr||(pr=tr(_n().m(function e(){var t;return _n().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,sr(3e3);case 1:if(!e.v){e.n=2;break}return e.a(2,!0);case 2:t=0;case 3:if(!(t<2)){e.n=7;break}return e.n=4,ur();case 4:if(!e.v){e.n=5;break}return e.a(2,!0);case 5:return e.n=6,lr(1500);case 6:t++,e.n=3;break;case 7:return e.a(2,ar())}},e)}))().finally(function(){pr=null}))).then(function(t){e||a(t?"ready":"failed")}),function(){e=!0}}},[]),o}function fr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var mr=function(){try{return"1"===new URLSearchParams(window.location.search).get("pfcRender")}catch(e){return!1}}();function hr(e){var t,n=window;n.__tpeStudioSuppressedAutofill=[].concat(function(e){if(Array.isArray(e))return fr(e)}(t=n.__tpeStudioSuppressedAutofill||[])||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return fr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fr(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[e])}function gr(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return xr(c,"_invoke",function(n,r,o){var a,l,s,c=0,u=o||[],p=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,d.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!p&&c&&!o&&t<u.length;t++){var o,a=u[t],f=d.p,m=a[2];n>3?(o=m===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,d.v=r,d.n=a[1]):f<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,d.n=m,l=0))}if(o||n>1)return i;throw p=!0,r}return function(o,u,m){if(c>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!p;){a||(l?l<3?(l>1&&(d.n=-1),f(l,s)):d.n=s:d.v=s);try{if(c=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(p=d.n<0)?s:n.call(r,d))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:p}}}(n,o,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(xr(t={},r,function(){return this}),t),p=c.prototype=l.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,xr(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=c,xr(p,"constructor",c),xr(c,"constructor",s),s.displayName="GeneratorFunction",xr(c,o,"GeneratorFunction"),xr(p),xr(p,o,"Generator"),xr(p,r,function(){return this}),xr(p,"toString",function(){return"[object Generator]"}),(gr=function(){return{w:a,m:d}})()}function xr(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}xr=function(e,t,n,r){function a(t,n){xr(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},xr(e,t,n,r)}function yr(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function vr(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){yr(a,r,o,i,l,"next",e)}function l(e){yr(a,r,o,i,l,"throw",e)}i(void 0)})}}function br(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||Yr(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yr(e,t){if(e){if("string"==typeof e)return Mr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mr(e,t):void 0}}function Mr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function wr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Sr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wr(Object(n),!0).forEach(function(t){jr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jr(e,t,n){return(t=function(e){var t=function(e){if("object"!=Tr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Tr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Tr(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tr(e){return Tr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tr(e)}var Nr=("undefined"!=typeof process&&process.env,"pk.eyJ1IjoidG1hbjE2IiwiYSI6ImNqejg4Yzg1cjAwM2MzYmxsZWpkbWozNDMifQ.ESsDNKgFYq0IvVnRUtRi5w"),Wr=function(){if("undefined"==typeof window)return 4096;try{var e=document.createElement("canvas"),t=e.getContext("webgl")||e.getContext("experimental-webgl");if(t)return t.getParameter(t.MAX_TEXTURE_SIZE)}catch(e){console.warn("Could not retrieve MAX_TEXTURE_SIZE, defaulting to safe limit.")}return 4096},Ir=function(e){var t=Je.find(function(t){return t.id===e});return(null==t?void 0:t.base)||(null==t?void 0:t.url)||"mapbox://styles/tman16/ckbcuao6e1kdu1ildxzeg3wdw"},Ur=function(e,t){if(1===t)return function(){};var n,r=[],o=0,a=0,i=[],l=function(e){return Array.isArray(e)&&("zoom"===e[0]||e.some(function(e){return l(e)}))},s=function(e){if(null==e)return e;if("number"==typeof e)return e*t;if("object"===Tr(e)&&!Array.isArray(e)&&Array.isArray(e.stops))return Sr(Sr({},e),{},{stops:e.stops.map(function(e){var t=br(e,2),n=t[0],r=t[1];return[n,s(r)]})});if(!Array.isArray(e))return e;if(!l(e))return["*",e,t];var n=e.slice(),r=e[0];if("interpolate"===r||"interpolate-hcl"===r||"interpolate-lab"===r){for(var o=4;o<n.length;o+=2)n[o]=s(n[o]);return n}if("step"===r){n[2]=s(n[2]);for(var a=4;a<n.length;a+=2)n[a]=s(n[a]);return n}if("match"===r){for(var i=3;i<n.length-1;i+=2)n[i]=s(n[i]);return n[n.length-1]=s(n[n.length-1]),n}if("case"===r){for(var c=2;c<n.length-1;c+=2)n[c]=s(n[c]);return n[n.length-1]=s(n[n.length-1]),n}return e},c=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=Yr(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}(e.getStyle().layers||[]);try{var u=function(){var t=n.value;if("symbol"!==t.type)return 1;o++;for(var l=t.layout||{},c=t.paint||{},u=function(){var n=br(d[p],2),o=n[0],l=n[1];if(null==l)return 1;try{e.setLayoutProperty(t.id,o,s(l)),"text-size"===o&&a++,r.push(function(){try{e.setLayoutProperty(t.id,o,l)}catch(e){}})}catch(e){i.length<5&&i.push("".concat(t.id,"/").concat(o,": ").concat(e.message))}},p=0,d=[["text-size",null!==(f=l["text-size"])&&void 0!==f?f:16],["icon-size",l["icon-size"]]];p<d.length;p++){var f;u()}var m=c["text-halo-width"];if(null!=m)try{e.setPaintProperty(t.id,"text-halo-width",s(m)),r.push(function(){try{e.setPaintProperty(t.id,"text-halo-width",m)}catch(e){}})}catch(e){}};for(c.s();!(n=c.n()).done;)u()}catch(e){c.e(e)}finally{c.f()}var p=(e.getStyle().layers||[]).filter(function(e){return"symbol"===e.type&&/settlement|place|city|town|village|label/i.test(e.id)}).map(function(e){var t;return"".concat(e.id,"=").concat(JSON.stringify(null===(t=e.layout)||void 0===t?void 0:t["text-size"]))});return console.log("[textScale] x".concat(t,": ").concat(a,"/").concat(o," symbol layers scaled")+(i.length?" — failures: ".concat(i.join(" | ")):"")+"\n[textScale] place layers: ".concat(p.join(" ; ")||"NONE MATCHED")),function(){return r.forEach(function(e){return e()})}},kr=function(e){var t,n=Je.find(function(t){return t.id===e.styleId});if(null==n||!n.base)return null;var r=null===(t=n.variations)||void 0===t?void 0:t.find(function(t){return t.id===e.variationId});return Sr(Sr(Sr({},n.theme||{}),(null==r?void 0:r.theme)||{}),e.userTheme||{})},Dr={background:"background-color",fill:"fill-color",line:"line-color",symbol
2:"text-color"},Ar=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t){var o=r.hideLabels,a=void 0!==o&&o,i=r.hideTransit,l=void 0!==i&&i,s=r.hideBuildings,c=void 0!==s&&s,u=r.hideStateLines,p=void 0!==u&&u,d=r.hideRelief,f=void 0!==d&&d;qe.forEach(function(t){try{e.getLayer(t)&&e.setLayoutProperty(t,"visibility","none")}catch(e){}}),((null===(n=e.getStyle())||void 0===n?void 0:n.layers)||[]).forEach(function(n){var r;if(!qe.includes(n.id)){if(function(e){return"waterway"===e["source-layer"]&&"line"===e.type||/(^|[-_])(rail|ferry|aerialway|cablecar|funicular|transit)/.test(e.id||"")}(n)){try{e.setLayoutProperty(n.id,"visibility",l?"none":"visible")}catch(e){}if(l)return}if(function(e){return"building"===e["source-layer"]||"aeroway"===e["source-layer"]}(n)){try{e.setLayoutProperty(n.id,"visibility",c?"none":"visible")}catch(e){}if(c)return}if(function(e){return"line"===e.type&&/admin-1/.test(e.id||"")}(n)){try{e.setLayoutProperty(n.id,"visibility",p?"none":"visible")}catch(e){}if(p)return}if(function(e){return"hillshade"===e.type||"hillshade"===e["source-layer"]||/hillshade/.test(e.id||"")}(n)){try{e.setLayoutProperty(n.id,"visibility",f?"none":"visible")}catch(e){}if(f)return}if("symbol"===n.type&&void 0!==(null===(r=n.layout)||void 0===r?void 0:r["text-field"])){try{e.setLayoutProperty(n.id,"visibility",a?"none":"visible")}catch(e){}if(a)return}var o=function(e){var t=e["source-layer"],n=e.type;return"background"===n?"land":"water"===t&&"fill"===n||"waterway"===t&&"line"===n?"water":"landuse"!==t&&"landcover"!==t&&"landuse_overlay"!==t&&"national_park"!==t||"fill"!==n?"road"===t&&"line"===n?"roads":"symbol"!==n||"road"!==t&&"place_label"!==t&&"natural_label"!==t?null:"labels":"land"}(n);if(o){var i=t[o];if(i){var s=Dr[n.type];if(s)try{e.setPaintProperty(n.id,s,i)}catch(e){}}}}})}},Cr=(0,e.forwardRef)(function(t,n){var r,o,a,i=t.width,l=(t.height,t.config),s=t.printWidthIn,c=t.printHeightIn,u=t.onLoadingChange,p=t.highRes,d=void 0!==p&&p,f=t.transparentBg,m=void 0!==f&&f,h=t.customDpi,g=t.onMarkerDrag,x=t.onBoundsChange,y=t.onCustomRouteUpdate,v=t.onAppendCustomRoutePoint,b=t.onError,Y=t.onRendered,M=t.repositionMarkerId,w=t.onRepositionMove,S=(0,e.useRef)(null),j=(0,e.useRef)(null),T=br((0,e.useState)(!0),2),N=T[0],W=T[1],I=(0,e.useRef)(new Map),U=(0,e.useRef)([]),k=br((0,e.useState)(Wr),1)[0],D=(0,e.useRef)(!1),A=dr(),C=(0,e.useRef)(0),L=(0,e.useRef)(null),O=function(e){var t;mr||null===(t=ve.current)||void 0===t||t.call(ve,e)},E=function(e){var t=++C.current;if(L.current)try{e.off("idle",L.current)}catch(e){}var n=function(){if(L.current=null,t===C.current){var n=e.getBounds();n&&O([n.getWest(),n.getSouth(),n.getEast(),n.getNorth()])}};L.current=n,e.once("idle",n)},V=(0,e.useRef)(new Map),z=br((0,e.useState)(0),2),X=z[0],P=z[1],Z=function(){return P(function(e){return e+1})},G=h||(d?300:120),F=Math.round(s*G),B=Math.round(c*G),R="undefined"!=typeof window&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?{MAX_DIMENSION:8028.16,MAX_AREA:16441671.68}:{MAX_DIMENSION:16056.32,MAX_AREA:131533373.44},Q=Math.min(k,R.MAX_DIMENSION);if(F>Q||B>
2Q){var H=Math.min(Q/F,Q/B);F=Math.floor(F*H),B=Math.floor(B*H)}var K=F*B;if(K>R.MAX_AREA){var J=Math.sqrt(R.MAX_AREA/K);F=Math.floor(F*J),B=Math.floor(B*J)}var q=F,_=B,$=Math.round(s*G),ee=$>0?Math.log2(q/$):0,te=(l.zoom||12)+ee,ne=q>0?i/q:1,re=s>0?q/s:G,oe=(l.routeWidth,function(e){var t;return.03*re*(null!==(t=e.widthMultiplier)&&void 0!==t?t:3)}),ae=(0,e.useRef)(new Map),ie=function(e){return["interpolate",["linear"],["line-progress"],0,e.gradientStart||e.color||"#FF0000",1,e.gradientEnd||"#0000FF"]},le=(0,e.useMemo)(function(){var e;if(l.routes&&l.routes.length>0)return l.routes;var t=!!l.geoJsonRoute||!!l.routeUrl,n=!!l.customRoutePoints&&l.customRoutePoints.length>0;return t||n?[{id:"legacy-route-1",source:t?"gpx":"custom",geoJsonRoute:l.geoJsonRoute,routeUrl:l.routeUrl,customRoutePoints:l.customRoutePoints,color:l.routeColor||"#FF0000",colorMode:"solid",widthMultiplier:null!==(e=l.routeWidth)&&void 0!==e?e:3,visible:!0}]:[]},[l.routes,l.geoJsonRoute,l.routeUrl,l.customRoutePoints,l.routeColor,l.routeWidth]),se=null!==(r=l.activeRouteId)&&void 0!==r?r:null===(o=le[0])||void 0===o?void 0:o.id,ce=le.find(function(e){return e.id===se}),ue=null!==(a=l.routeUiMode)&&void 0!==a?a:l.drawMode?"draw":l.editMode?"edit":"idle";(0,e.useImperativeHandle)(n,function(){return{capture:(t=vr(gr().m(function e(){var t;return gr().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!j.current){e.n=3;break}return e.p=1,e.a(2,j.current.getCanvas().toDataURL("image/png"));case 2:return e.p=2,t=e.v,console.warn("Map capture failed",t),e.a(2,null);case 3:return e.a(2,null)}},e,null,[[1,2]])})),function(){return t.apply(this,arguments)}),getCanvas:function(){return j.current?j.current.getCanvas():null},captureTiled:(e=vr(gr().m(function e(t,n,r){var o,a,l,s,c,u,p,d,f,m,h,g,x,y,v,b,Y,M,w,T,N,W,I,U,k,D,A,C,L,O,E,V,z,X,P,Z,G,F,B,R,Q,H,K,J,q,_,$,ee,te;return gr().w(function(e){for(;;)switch(e.p=e.n){case 0:if(a=j.current,l=S.current,a&&l){e.n=1;break}return e.a(2,null);case 1:s=null!==(o=null==r?void 0:r.tilePx)&&void 0!==o?o:2048,c=window.mapboxgl,u={center:a.getCenter(),zoom:a.getZoom(),bearing:a.getBearing(),pitch:a.getPitch(),w:l.style.width,h:l.style.height,transform:l.style.transform},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2e4;return new Promise(function(t){var n=!1,r=function(){n||(n=!0,t())},o=function(){n||(a.loaded()&&a.areTilesLoaded()?r():a.once("idle",o))};a.once("idle",o),setTimeout(r,e)})},d=null,e.p=2,a.setBearing(0),a.setPitch(0),f=u.center,m=l.clientWidth||i,l.style.transform="none",l.style.width="".concat(s,"px"),l.style.height="".concat(s,"px"),a.resize(),h=Math.max(1,Number(window.__tpeTextScale)||1),console.log("[textScale] captureTiled target ".concat(t,"x").concat(n)),d=Ur(a,h),g=u.zoom+Math.log2(t/m),x=512*Math.pow(2,g),y=function(e,t){var n=c.MercatorCoordinate.fromLngLat({lng:e,lat:t});return[n.x*x,n.y*x]},v=function(e,t){return new c.MercatorCoordinate(e/x,t/x,0).toLngLat()},b=y(f.lng,f.lat),Y=br(b,2),M=Y[0],w=Y[1],T=[M-t/2,w-n/2],N=g+Math.log2(1),W=Math.round(s/1),I=Math.max(1,a.getCanvas().width/l.clientWidth),U=Math.min(2,1*I),k=Math.round(t*U),D=Math.round(n*U),A=Math.round(W*U),C=Math.ceil(t/W),L=Math.ceil(n/W),O=C*L,(E=document.createElement("canvas")).width=k,E.height=D,(V=E.getContext("2d")).imageSmoothingEnabled=!0,V.imageSmoothingQuality="high",z=0,X=0;case 3:if(!(X<L)){e.n=9;break}P=0;case 4:if(!(P<C)){e.n=8;break}return G=T[0]+(P+.5)*W,F=T[1]+(X+.5)*W,B=v(G,F),a.jumpTo({center:B,zoom:N}),e.n=5,p();case 5:return e.n=6,new Promise(function(e){return requestAnimationFrame(function(){return requestAnimationFrame(e)})});case 6:R=a.getCanvas(),Q=Math.round(P*A),H=Math.round(X*A),K=Math.min(A,E.width-Q),J=Math.min(A,E.height-H),q=K/A*R.width,_=J/A*R.height,V.drawImage(R,0,0,q,_,Q,H,K,J),z++,null==r||null===(Z=r.onProgress)||void 0===Z||Z.call(r,z,O);case 7:P++,e.n=4;break;case 8:X++,e.n=3;break;case 9:return e.a(2,E);case 10:return e.p=10,te=e.v,console.error("captureTiled failed",te),e.a(2,null);case 11:return e.p=11,null===($=d)||void 0===$||$(),l.style.width=u.w,l.style.height=u.h,l.style.transform=u.transform,a.resize(),(ee=function(){return a.jumpTo({center:u.center,zoom:u.zoom,bearing:u.bearing,pitch:u.pitch})})(),requestAnimationFrame(function(){ee()}),e.f(11);case 12:return e.a(2)}},e,null,[[2,10,11,12]])})),function(t,n,r){return e.apply(this,arguments)})};var e,t}),(0,e.useEffect)(function(){var e=!1,t=V.current,n=new Set(le.map(function(e){return e.id}));
2Array.from(t.keys()).forEach(function(e){n.has(e)||t.delete(e)});var r=0,o=!1;return le.forEach(function(n){"gpx"===n.source&&(n.geoJsonRoute?t.get(n.id)!==n.geoJsonRoute&&(t.set(n.id,n.geoJsonRoute),o=!0):n.routeUrl&&!t.has(n.id)&&(r++,fetch(n.routeUrl).then(function(e){return e.json()}).then(function(t){e||(V.current.set(n.id,t),Z())}).catch(function(e){console.error("Failed to load offloaded route data for",n.id,e)})))}),(o&&0===r||o)&&Z(),function(){e=!0}},[le]),(0,e.useEffect)(function(){null==u||u(N)},[N,u]),(0,e.useEffect)(function(){if(D.current&&j.current)try{W(!0),requestAnimationFrame(function(){j.current&&(j.current.resize(),l.bounds&&j.current.fitBounds(l.bounds,{animate:!1,padding:0}),E(j.current),j.current.once("idle",function(){return W(!1)}))})}catch(e){console.warn("Resize failed on map instance",e),W(!1)}},[q,_]),(0,e.useEffect)(function(){if(S.current&&!D.current&&"loading"!==A){var e,t,n,r,o,a,i,s=window.mapboxgl;if("failed"===A||!s||!s.Map)return W(!1),void(null===(e=be.current)||void 0===e||e.call(be,"fatal",new Error("Mapbox GL JS failed to load")));if(!function(){if(null!==ir)return ir;var e=window.mapboxgl;try{if(e&&"function"==typeof e.supported)ir=!!e.supported();else{var t=document.createElement("canvas"),n=t.getContext("webgl2")||t.getContext("webgl");try{var r;null==n||null===(r=n.getExtension("WEBGL_lose_context"))||void 0===r||r.loseContext()}catch(e){}ir=!!n}}catch(e){ir=!1}return ir}())return W(!1),void(null===(t=be.current)||void 0===t||t.call(be,"fatal",new Error("WebGL is unavailable in this browser")));s.config||(s.config={}),Object.assign(s.config,{REFERRER:window.location.href,collectResourceTiming:!1,trackResize:!1,performance:!1}),s.accessToken=Nr,W(!0);try{var c,u={container:S.current,style:Ir(l.styleId),center:[l.lng,l.lat],zoom:te,preserveDrawingBuffer:!0,maxCanvasSize:[k,k],attributionControl:!1,pitchWithRotate:!1,dragRotate:!1,touchZoomRotate:!0,touchPitch:!1,doubleClickZoom:!1,fadeDuration:0,trackResize:!1,collectResourceTiming:!1,transformRequest:function(e){return{url:e,referrerPolicy:"no-referrer"}}};l.bounds&&(u.bounds=l.bounds,u.fitBoundsOptions={padding:0,animate:!1});var p=new s.Map(u);j.current=p,D.current=!0,null!==(c=p.touchZoomRotate)&&void 0!==c&&c.disableRotation&&p.touchZoomRotate.disableRotation(),p.on("load",function(){he(p),Ar(p,kr(ge.current),{hideLabels:!!ge.current.hideLabels,hideTransit:!!ge.current.hideTransit,hideBuildings:!!ge.current.hideBuildings,hideStateLines:!!ge.current.hideStateLines,hideRelief:!!ge.current.hideRelief})});var d=(n=function(e){e&&O([e.getWest(),e.getSouth(),e.getEast(),e.getNorth()])},r=null,o=null,a=function(){if(o){var e=o;o=null,r=null,n.apply(void 0,function(e){if(Array.isArray(e))return Jn(e)}(t=e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return Jn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jn(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else r=null;var t},i=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];o=t,r&&clearTimeout(r),r=setTimeout(a,150)},i.flush=function(){r&&(clearTimeout(r),r=null,a())},i.cancel=function(){r&&(clearTimeout(r),r=null),o=null},i);p.__debouncedBounds=d,E(p),p.once("idle",function(){var e;W(!1),null===(e=Ye.current)||void 0===e||e.call(Ye)}),p.on("move",function(e){null!=e&&e.originalEvent&&d(p.getBounds())}),p.on("idle",function(){d.flush()}),p.on("error",function(e){var t,n,r=null==e||null===(t=e.error)||void 0===t?void 0:t.status;401===r||403===r?(console.warn("Mapbox fatal error:",e),null===(n=be.current)||void 0===n||n.call(be,"fatal",e)):console.warn("Mapbox non-fatal error:",e),N&&W(!1)})}catch(e){var f;console.warn("Mapbox init failed:",e),W(!1),null===(f=be.current)||void 0===f||f.call(be,"fatal",e)}return function(){if(j.current){try{var e,t;null===(e=j.current.__debouncedBounds)||void 0===e||null===(t=e.cancel)||void 0===t||t.call(e),j.current.remove()}catch(e){}j.current=null,D.current=!1}}}},[A]);var pe=(0,e.useRef)(void 0);(0,e.useEffect)(function(){var e=j.current;if(e&&D.current)if(void 0!==pe.current){if(pe.current!==l.styleId){pe.current=l.styleId,W(!0);var t=!1;try{e.setStyle(Ir(l.styleId));var n=function(){he(e),Ar(e,kr(l),{hideLabels:!!l.hideLabels,hideTransit:!!l.hideTransit,hideBuildings:!!l.hideBuildings,hideStateLines:!!l.hideStateLines,hideRelief:!!l.hideRelief})},r=function(){e.isStyleLoaded()&&(e.off("styledata",r),n())};e.on("styledata",r);var o=function(){t||(n(),W(!1))};return e.once("idle",o),function(){t=!0,e.off("styledata",r),e.off("idle",o)}}catch(e){console.warn("setStyle failed:",e),W(!1)}}}else pe.current=l.styleId},[l.styleId]);var de=function(e){return"route-src-".concat(e)},fe=function(e){return"route-line-".concat(e)},me=function(e){return"gpx"===e.source?V.current.get(e.id)||null:{type:"Feature",properties:{},geometry:{type:"LineString",coordinates:e.customRoutePoints||[]}}},he=function(e){Me.current.forEach(function(t){if(!1!==t.visible){var n=me(t);if(n){var r=de(t.id),o=fe(t.id);e.getSource(r)||e.addSource(r,{type:"geojson",data:n}),e.getLayer(o)||e.addLayer({id:o,type:"line",source:r,layout:{"line-join":"round","line-cap":"round"},paint:{"line-color":t.color||"#FF0000","line-width":oe(t)}})}}})};(0,e.useEffect)(function(){var e=j.current;if(e&&D.current){if(!e.isStyleLoaded()){var t=function(){e.isStyleLoaded()&&(e.off("styledata",t),Ar(e,kr(l),{hideLabels:!!l.hideLabels,hideTransit:!!l.hideTransit,hideBuildings:!!l.hideBuildings,hideStateLines:!!l.hideStateLines,hideRelief:!!l.hideRelief}))};return e.on("styledata",t),function(){return e.off("styledata",t)}}Ar(e,kr(l),{hideLabels:!!l.hideLabels,hideTransit:!!l.hideTransit,hideBuildings:!!l.hideBuildings,hideStateLines:!!l.hideStateLines,hideRelief:!!l.hideRelief})}},[l.variationId,l.userTheme,l.styleId,l.hideLabels,l.hideTransit,l.hideBuildings,l.hideStateLines,l.hideRelief]);var ge=(0,e.useRef)(l);(0,e.useEffect)(function(){ge.current=l},[l]);var xe=(0,e.useRef)(y);(0,e.useEffect)(function(){xe.current=y},[y]);var ye=(0,e.useRef)(v);(0,e.useEffect)(function(){ye.current=v},[v]);var ve=(0,e.useRef)(x);(0,e.useEffect)(function(){ve.current=x},[x]);var be=(0,e.useRef)(b);(0,e.useEffect)(function(){be.current=b},[b]);var Ye=(0,e.useRef)(Y);(0,e.useEffect)(function(){Ye.current=Y},[Y]);var Me=(0,e.useRef)(le);(0,e.useEffect)(function(){Me.current=le},[le]);var we=(0,e.useRef)(se);(0,e.useEffect)(function(){we.current=se},[se]);var Se=(0,e.useRef)(ue);(0,e.useEffect)(function(){Se.current=ue},[ue]),(0,e.useEffect)(function(){var e=j.current;if(e){var t=function(e){var t;if("draw"===Se.current){var n=e.lngLat,r=n.lng,o=n.lat;null===(t=ye.current)||void 0===t||t.call(ye,r,o)}};return e.on("click",t),function(){e.off("click",t)}}},[]),(0,e.useEffect)(function(){if(j.current)try{var e=j.current.getCenter(),t=j.current.getZoom();if(l.bounds){var n=j.current.getBounds(),r=1e-5,o=br(l.bounds,4),a=o[0],i=o[1],s=o[2],c=o[3];(Math.abs(n.getWest()-a)>
2r||Math.abs(n.getSouth()-i)>r||Math.abs(n.getEast()-s)>r||Math.abs(n.getNorth()-c)>r)&&(j.current.fitBounds(l.bounds,{padding:0,animate:!1}),E(j.current))}else{var u=Math.abs(e.lat-l.lat)+Math.abs(e.lng-l.lng),p=Math.abs(t-te);u>1e-5?(j.current.jumpTo({center:[l.lng,l.lat],zoom:te}),E(j.current)):p>.01&&(j.current.setZoom(te),E(j.current))}}catch(e){}},[l.lat,l.lng,te,l.bounds]),(0,e.useEffect)(function(){var e=j.current;e&&("draw"===ue?(e.getCanvas().style.cursor="crosshair",e.doubleClickZoom.disable()):e.getCanvas().style.cursor="")},[ue]),(0,e.useEffect)(function(){var e=j.current;if(e){var t=function(){var n=new Set(le.map(function(e){return e.id})),r=[];try{var o=e.getStyle();null!=o&&o.layers&&o.layers.forEach(function(e){"string"==typeof e.id&&e.id.startsWith("route-line-")&&r.push(e.id)})}catch(e){}r.forEach(function(t){var r=t.replace("route-line-","");if(!n.has(r)){try{e.removeLayer(t)}catch(e){}try{e.removeSource(de(r))}catch(e){}}}),le.forEach(function(n){var r=de(n.id),o=fe(n.id),a=me(n),i=e.getSource(r),l=e.getLayer(o);if(!1!==n.visible){if(a){var s="gradient"===n.colorMode,c=!0===ae.current.get(n.id);if(i&&s!==c){if(l)try{e.removeLayer(o)}catch(e){}try{e.removeSource(r)}catch(e){}i=void 0,l=void 0}if(i)try{i.setData(a)}catch(e){console.warn("[mapcanvas] setData failed for",n.id,e)}if(l)try{e.setPaintProperty(o,"line-width",oe(n)),s?e.setPaintProperty(o,"line-gradient",ie(n)):e.setPaintProperty(o,"line-color",n.color||"#FF0000")}catch(e){console.warn("[mapcanvas] setPaintProperty failed for",n.id,e)}if(!i||!l)try{if(i||e.addSource(r,{type:"geojson",data:a,lineMetrics:s}),!l){var u={"line-width":oe(n)};s?u["line-gradient"]=ie(n):u["line-color"]=n.color||"#FF0000",e.addLayer({id:o,type:"line",source:r,layout:{"line-join":"round","line-cap":"round"},paint:u}),ae.current.set(n.id,s)}}catch(r){console.warn("Route layer add failed, retrying on styledata",n.id,r),e.once("styledata",t)}}}else{if(l)try{e.removeLayer(o)}catch(e){}if(i)try{e.removeSource(r)}catch(e){}ae.current.delete(n.id)}})};t()}},[le,X,ne]),(0,e.useEffect)(function(){var e=j.current;if(e){var t=window.mapboxgl;if(t&&(U.current.forEach(function(e){return e.remove()}),U.current=[],("draw"===ue||"edit"===ue)&&ce&&"custom"===ce.source)){var n=ce.customRoutePoints||[];if(0!==n.length){var r=1/ne,o=30*r,a=12*r,i=2*r;n.forEach(function(r,l){var s=document.createElement("div");s.className="route-vertex-container",s.style.width="".concat(o,"px"),s.style.height="".concat(o,"px"),s.style.display="flex",s.style.alignItems="center",s.style.justifyContent="center",s.style.cursor="grab",s.style.touchAction="none";var c=document.createElement("div");c.style.width="".concat(a,"px"),c.style.height="".concat(a,"px"),c.style.borderRadius="50%",c.style.backgroundColor="#FFFFFF",c.style.border="".concat(i,"px solid ").concat(ce.color||"#FF0000"),c.style.boxShadow="0 0 2px rgba(0,0,0,0.3)",s.appendChild(c);var u=new t.Marker({element:s,draggable:!0}).setLngLat(r).addTo(e);u.on("dragend",function(){var e,t,r=u.getLngLat(),o=r.lng,a=r.lat,i=Me.current.find(function(e){return e.id===ce.id}),s=function(e){if(Array.isArray(e))return Mr(e)}(t=(null==i?void 0:i.customRoutePoints)||n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||Yr(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();s[l]=[o,a],null===(e=xe.current)||void 0===e||e.call(xe,s)}),U.current.push(u)})}}}},[ue,null==ce?void 0:ce.id,null==ce?void 0:ce.customRoutePoints,null==ce?void 0:ce.color,ne]);var je=(0,e.useRef)(null);(0,e.useEffect)(function(){var e=j.current;if(e){var t=window.mapboxgl;if(t){je.current=t;var n=l.markers||[],r=new Set(n.map(function(e){return e.id})),o=new Set(I.current.keys());Array.from(o).forEach(function(e){var t;r.has(e)||(null===(t=I.current.get(e))||void 0===t||t.instance.remove(),I.current.delete(e))}),n.forEach(function(n){var r=I.current.get(n.id);if(r)return function(e,t,n){t.label&&!e.label?(e.label=document.createElement("div"),e.label.style.position="absolute",e.label.style.top="100%",e.label.style.left="50%",e.label.style.transform="translateX(-50%)",e.label.style.whiteSpace="nowrap",e.label.style.textAlign="center",e.label.style.lineHeight="1.2",e.label.style.fontWeight="bold",e.label.style.textShadow="0 1px 4px rgba(255,255,255,0.8), 0 0 2px white",e.wrapper.appendChild(e.label)):!t.label&&e.label&&(e.label.remove(),e.label=void 0),Or(e,t),Er(e,t,n)}(r,n,re),void r.instance.setLngLat([n.lng,n.lat]);var o=function(e,t){var n=document.createElement("div");n.style.display="flex",n.style.flexDirection="column",n.style.alignItems="center",n.style.position="absolute",n.style.cursor="grab";var r,o=document.createElement("div");o.style.display="block",n.appendChild(o),e.label&&((r=document.createElement("div")).style.position="absolute",r.style.top="100%",r.style.left="50%",r.style.transform="translateX(-50%)",r.style.whiteSpace="nowrap",r.style.textAlign="center",r.style.lineHeight="1.2",r.style.fontWeight="bold",r.style.textShadow="0 1px 4px rgba(255,255,255,0.8), 0 0 2px white",n.appendChild(r));var a={wrapper:n,icon:o,label:r};return Or(a,e),Er(a,e,t),{wrapper:n,icon:o,label:r}}(n,re),a=new t.Marker({element:o.wrapper,anchor:"custom-photo"===n.styleId?"center":"bottom",draggable:!0}).setLngLat([n.lng,n.lat]).addTo(e);a.on("dragend",function(){var e,t=a.getLngLat();null===(e=Te.current)||void 0===e||e.call(Te,n.id,t.lat,t.lng)}),I.current.set(n.id,Sr(Sr({},o),{},{instance:a}
2))})}}},[l.markers,l.styleId]),(0,e.useEffect)(function(){(l.markers||[]).forEach(function(e){var t=I.current.get(e.id);t&&Er(t,e,re)})},[re,l.markers]);var Te=(0,e.useRef)(g);(0,e.useEffect)(function(){Te.current=g},[g]);var Ne=(0,e.useRef)(w);return(0,e.useEffect)(function(){Ne.current=w},[w]),(0,e.useEffect)(function(){var e=j.current;if(e&&M){var t=[];I.current.forEach(function(e,n){var r=e.wrapper,o=r.style.visibility,a=r.style.opacity,i=r.style.transition;n===M?r.style.visibility="hidden":(r.style.transition="opacity 150ms",r.style.opacity="0.5"),t.push(function(){r.style.visibility=o,r.style.opacity=a,r.style.transition=i})});var n=(l.markers||[]).find(function(e){return e.id===M});if(n)try{e.jumpTo({center:[n.lng,n.lat]})}catch(e){}var r=function(){var t,n=e.getCenter();null===(t=Ne.current)||void 0===t||t.call(Ne,M,n.lat,n.lng)};return e.on("moveend",r),function(){try{e.off("moveend",r)}catch(e){}t.forEach(function(e){return e()})}}},[M]),(0,Zt.jsxs)("div",{className:"tpe-relative tpe-w-full tpe-h-full tpe-overflow-hidden",style:d||m?void 0:{background:"repeating-conic-gradient(#e2e2e2 0% 25%, #f7f7f7 0% 50%) 50% / 16px 16px"},children:[(0,Zt.jsx)("div",{ref:S,className:"tpe-absolute tpe-origin-top-left tpe-shadow-sm",style:{width:"".concat(q,"px"),height:"".concat(_,"px"),transform:"scale(".concat(ne,")")}}),N&&(0,Zt.jsx)("div",{className:"tpe-ignore-capture tpe-absolute tpe-inset-0 tpe-flex tpe-items-center tpe-justify-center tpe-bg-white/50 tpe-backdrop-blur-sm tpe-z-10",children:(0,Zt.jsx)("div",{className:"tpe-spinner !tpe-border-indigo-600 tpe-w-8 tpe-h-8"})})]})});Cr.displayName="MapCanvas";const Lr=Cr;function Or(e,t){var n=e.icon,r=e.label;if("custom-photo"===t.styleId&&t.image){n.innerHTML="",n.style.borderRadius="50%",n.style.backgroundColor="#FFF",n.style.overflow="hidden",n.style.position="relative",n.style.boxSizing="border-box",n.style.boxShadow="0 2px 5px rgba(0,0,0,0.3)",n.style.color="";var o=t.imageCrop||{x:50,y:50,zoom:1},a=document.createElement("img");a.crossOrigin="anonymous",a.src=t.image,a.style.position="absolute",a.style.maxWidth="none",a.style.maxHeight="none";var i=function(){var e=n.clientWidth,t=a.naturalWidth,r=a.naturalHeight;if(e&&t&&r){var i=o.zoom||1,l=Math.max(e/t,e/r),s=t*l*i,c=r*l*i,u=(e-t*l)/2,p=(e-r*l)/2,d=o.x/100*e,f=o.y/100*e;a.style.width="".concat(s,"px"),a.style.height="".concat(c,"px"),a.style.left="".concat(d+i*(u-d),"px"),a.style.top="".concat(f+i*(p-f),"px")}};a.complete&&a.naturalWidth?i():a.onload=i,n.__relayoutPhoto=i,n.appendChild(a)}else{var l=_e.find(function(e){return e.id===t.styleId})||_e[0];n.style.borderRadius="",n.style.backgroundColor="",n.style.overflow="",n.style.position="",n.style.boxShadow="",n.style.border="",n.style.boxSizing="",n.style.color=t.color,n.innerHTML=l.svg}r&&(r.innerText=t.label,r.style.color=t.labelColor||t.color||"#000000",r.className="",t.labelFont?(r.classList.add(t.labelFont),r.style.fontFamily=""):r.style.fontFamily="sans-serif")}function Er(e,t,n){var r=e.icon,o=e.label,a=.35*n*(t.scale||1);if(r.style.width="".concat(a,"px"),r.style.height="".concat(a,"px"),"custom-photo"===t.styleId&&t.image){var i,l,s=void 0!==t.imageBorderWidth?t.imageBorderWidth:4;r.style.border="".concat(s/50*n,"px solid ").concat(t.color),null===(i=(l=r).__relayoutPhoto)||void 0===i||i.call(l)}if(o){o.style.marginTop="".concat(.08*n,"px");var c=.28*n;o.style.fontSize="".concat(c*(t.labelSize||1),"px")}}var Vr={modern:{margin:.055,marginColor:"#ffffff",ink:"#1f2937",accent:"#9ca3af",font:"'Helvetica Neue', Helvetica, Arial, sans-serif",double:!1,ornaments:!1,d:{neatline:!0,cartouche:!0,scaleBar:!0,legend:!1,compass:!1,graticule:!1}},os:{margin:.06,marginColor:"#ffffff",ink:"#111827",accent:"#1d4ed8",font:"'Helvetica Neue', Arial, sans-serif",double:!0,ornaments:!1,d:{neatline:!0,cartouche:!0,scaleBar:!1,legend:!1,compass:!1,graticule:!1}},antique:{margin:.085,marginColor:"#f3e9d2",ink:"#262320",accent:"#3f3a33",font:"Georgia, 'Times New Roman', serif",double:!0,ornaments:!1,d:{neatline:!0,cartouche:!0,scaleBar:!0,legend:!1,compass:!1,graticule:!1}}};const zr=function(e){var t,n,r,o,a=e.style,i=e.cfg,l=e.widthPx,s=e.he
2ightPx,c=e.locationLabel,u=e.subtitle,p=(e.printWidthIn,e.printHeightIn),d=e.zIndex,f=void 0===d?15:d,m=e.groundMetersPerPx,h=e.infoText,g=e.infoText2,x=e.gridInfo,y=e.showLogo,v=e.customText,b=e.marginCoords;if("none"===a||!Vr[a])return null;var Y=Vr[a],M=Math.max(1,Math.round(l||800)),w=Math.max(1,Math.round(s||800)),S=Math.round(Math.min(M,w)*Y.margin),j=function(e){var t;return null!==(t=null==i?void 0:i["show".concat(e[0].toUpperCase()).concat(e.slice(1))])&&void 0!==t?t:Y.d[e]},T=j("neatline"),N=j("cartouche"),W=j("scaleBar"),I=j("legend"),U=j("compass"),k=j("graticule"),D=(null!==(t=null!==(n=null==i?void 0:i.cartoucheTitle)&&void 0!==n?n:c)&&void 0!==t?t:"").trim(),A=(null!==(r=null!==(o=null==i?void 0:i.cartoucheSubtitle)&&void 0!==o?o:u)&&void 0!==r?r:"").trim(),C=Math.max(1,Math.round(.0028*Math.min(M,w))),L=p&&p>0?w/p/2.54:.04*Math.min(M,w),O=Math.ceil(L),E=Math.max(2,Math.round(.012*Math.min(M,w))),V=Math.round(.058*Math.min(M,w)),z=Math.max(S,O),X=N?Math.max(z,O+V+2*E):z,P=M-2*X,Z=w-2*X,G=[];if(k)for(var F=Math.round(.32*S),B=1;B<8;B++){var R=X+P*B/8,Q=X+Z*B/8;G.push((0,Zt.jsx)("line",{x1:R,y1:X,x2:R,y2:X+F,stroke:Y.accent,strokeWidth:C},"tt".concat(B))),G.push((0,Zt.jsx)("line",{x1:R,y1:w-X,x2:R,y2:w-X-F,stroke:Y.accent,strokeWidth:C},"tb".concat(B))),G.push((0,Zt.jsx)("line",{x1:X,y1:Q,x2:X+F,y2:Q,stroke:Y.accent,strokeWidth:C},"tl".concat(B))),G.push((0,Zt.jsx)("line",{x1:M-X,y1:Q,x2:M-X-F,y2:Q,stroke:Y.accent,strokeWidth:C},"tr".concat(B)))}var H,K,J,q,_,$,ee,te,ne,re,oe,ae,ie,le,se,ce,ue,pe,de,fe,me=Math.round(Math.min(.56*P,.5*M)),he=w-O-E-V,ge=Math.round(.42*V),xe=Math.round(.26*V),ye=Math.max(2,Math.round(.006*Math.min(M,w))),ve=m&&m>0?m:0,be=ve?function(e,t){if(!isFinite(e)||e<=0)return{meters:0,label:""};if(t){var n=1609.344,r=e/n;if(r>=.4){var o=[.5,1,2,5,10,20,50],a=o.reduce(function(e,t){return Math.abs(t-r)<Math.abs(e-r)?t:e},o[0]);return{meters:a*n,label:"".concat(a," ").concat(1===a?"mile":"miles")}}var i=.9144,l=e/i,s=[100,200,440,880],c=s.reduce(function(e,t){return Math.abs(t-l)<Math.abs(e-l)?t:e},s[0]);return{meters:c*i,label:"".concat(c," yds")}}var u=Math.pow(10,Math.floor(Math.log10(e))),p=e/u,d=(p<1.5?1:p<3.5?2:p<7.5?5:10)*u;return{meters:d,label:d>=1e3?"".concat(d/1e3," km"):"".concat(d," m")}}(.18*P*ve,"antique"===a):null,Ye=be&&be.meters>0?Math.max(.06*P,Math.min(.22*P,be.meters/ve)):Math.round(.16*P),Me=be?be.label:"antique"===a?"mi":"km",we=X,Se=Math.min(w-O-ye-xe,w-X+Math.round(.35*(X-O))),je=Math.max(Math.round(1.5*xe),Math.round(.03*Math.min(M,w))),Te=Math.round(.012*Math.min(M,w)),Ne=Math.round(1.35*xe),We=Math.round(Math.min(.32*P,.22*Math.max(M,w))),Ie=Ne+5*je+2*Te,Ue=M-X-Math.round(.5*S)-We,ke=X+Math.round(.5*S),De=Math.max(8,Math.round(.62*xe)),Ae=Math.round(.42*S),Ce=Math.round(.8*S),Le=X+Ce+Ae,Oe=X+Ce+Ae+Math.round(.9*xe);return(0,Zt.jsxs)("svg",{className:"tpe-absolute tpe-inset-0 tpe-pointer-events-none",width:"100%",height:"100%",viewBox:"0 0 ".concat(M," ").concat(w),preserveAspectRatio:"none",style:{zIndex:f},"aria-hidden":"true",children:[(0,Zt.jsxs)("g",{children:[(0,Zt.jsx)("rect",{x:0,y:0,width:M,height:X,fill:Y.marginColor}),(0,Zt.jsx)("rect",{x:0,y:w-X,width:M,height:X,fill:Y.marginColor}),(0,Zt.jsx)("rect",{x:0,y:X,width:X,height:w-2*X,fill:Y.marginColor}),(0,Zt.jsx)("rect",{x:M-X,y:X,width:X,height:w-2*X,fill:Y.marginColor})]}),"os"===a&&x&&x.res>0&&function(){for(var e=x.centerE,t=x.centerN,n=x.res,r="#00aeef",o=Math.max(7,Math.round(.6*xe)),a=function(t){return M/2+(t-e)/n},i=function(e){return w/2-(e-t)/n},l=e+(X-M/2)*n,s=e+(M-X-M/2)*n,c=t-(X-w/2)*n,u=t-(w-X-w/2)*n,p=1e3,d=p/n,f=Math.max(1,Math.ceil(2.4*o/d)),m=function(e){return Math.round(e/p)%f===0},h=function(e){return String((Math.round(e/1e3)%100+100)%100).padStart(2,"0")},g=[],y=0,v=Math.ceil(l/p)*p;v<=s&&y<120;v+=p,y++)if(m(v)){var b=a(v);g.push((0,Zt.jsx)("text",{x:b,y:w-X+1.25*o,fontFamily:Y.font,fontSize:o,fill:r,textAnchor:"middle",children:h(v)},"geb".concat(v)))}y=0;for(var S=Math.ceil(u/p)*p;S<=c&&y<120;S+=p,y++)if(m(S)){var j=i(S);g.push((0,Zt.jsx)("text",{x:X-.45*o,y:j,fontFamily:Y.font,fontSize:o,fill:r,textAnchor:"end",dominantBaseline:"middle",children:h(S)},"gnl".concat(S))),g.push((0,Zt.jsx)("text",{x:M-X+.45*o,y:j,fontFamily:Y.font,fontSize:o,fill:r,textAnchor:"start",dominantBaseline:"middle",children:h(S)},"gnr".concat(S)))}return(0,Zt.jsx)("g",{children:g})}(),T&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)("rect",{x:X,y:X,width:P,height:Z,fill:"none",stroke:Y.ink,strokeWidth:C*(Y.double?2.2:1.6)}),Y.double&&"os"!==a&&(0,Zt.jsx)("rect",{x:X+.28*S,y:X+.28*S,width:P-.56*S,height:Z-.56*S,fill:"none",stroke:Y.ink,strokeWidth:C})]}),G,W&&(0,Zt.jsxs)("g",{children:[(0,Zt.jsx)("rect",{x:we-.22*S,y:Se-2.1*ye,width:Ye+.44*S,height:3.5*ye,fill:Y.marginColor,opacity:.82,rx:.6*ye}),(0,Zt.jsx)("rect",{x:we,y:Se,width:Ye/2,height:ye,fill:Y.ink}),(0,Zt.jsx)("rect",{x:we+Ye/2,y:Se,width:Ye/2,height:ye,fill:Y.marginColor,stroke:Y.ink,strokeWidth:C}),(0,Zt.jsx)("rect",{x:we,y:Se,width:Ye,height:ye,fill:"none",stroke:Y.ink,strokeWidth:C}),(0,Zt.jsx)("text",{x:we,y:Se-.7*ye,fontFamily:Y.font,fontSize:.68*xe,fill:Y.ink,children:"0"}),(0,Zt.jsx)("text",{x:we+Ye,y:Se-.7*ye,fontFamily:Y.font,fontSize:.68*xe,fill:Y.ink,textAnchor:"end",children:Me})]}),b&&(0,Zt.jsx)("text",{x:M-X,y:Se-.7*ye,fontFamily:Y.font,fontSize:.72*xe,fill:Y.ink,textAnchor:"end",dominantBaseline:"alphabetic",letterSpacing:.06*xe,children:b.toUpperCase()}),I&&(ie=.26*We,le=Ue+Te+ie/2,se=Ue+Te+ie+.6*Te,ce=function(e){return ke+Ne+Te+(e+.5)*je},ue="#1d4ed8",pe="#2563eb",de=function(e,t){return(0,Zt.jsx)("text",{x:se,y:ce(e),fontFamily:Y.font,fontSize:De,fill:Y.ink,dominantBaseline:"middle",children:t})},fe=Math.max(2,.16*je),(0,Zt.jsxs)("g",{children:[(0,Zt.jsx)("rect",{x:Ue,y:ke,width:We,height:Ie,fill:"#ffffff",opacity:.9,stroke:Y.ink,strokeWidth:C,rx:1.5*C}),(0,Zt.jsx)("text",{x:Ue+We/2,y:ke+.62*Ne,fontFamily:Y.font,fontSize:1.05*De,fill:Y.ink,fontWeight:"bold",textAnchor:"middle",letterSpacing:.12*De,children:"KEY"}),(0,Zt.jsxs)("g",{children:[(0,Zt.jsx)("path",{d:"M ".concat(le," ").concat(ce(0)-fe," L ").concat(le+fe," ").concat(ce(0)+.8*fe," L ").concat(le-fe," ").concat(ce(0)+.8*fe," Z"),fill:"none",stroke:ue,strokeWidth:1.4*C}),(0,Zt.jsx)("circle",{cx:le,cy:ce(0)+.1*fe,r:Math.max(.8,.9*C),fill:ue})]}),de(0,"Triangulation pillar"),(0,Zt.jsx)("path",{d:"M ".concat(le-.42*ie," ").concat(ce(1)," q ").concat(.42*ie," ").concat(.28*-je," ").concat(.84*ie," 0"),fill:"none",stroke:"#c2410c",strokeWidth:C}),de(1,"Contour line"),(0,Zt.jsx)("line",{x1:le-.42*ie,y1:ce(2),x2:le+.42*ie,y2:ce(2),stroke:"#15803d",strokeWidth:1.6*C,strokeDasharray:"".concat(2.4*C," ").concat(1.8*C),strokeLinecap:"round"}),de(2,"Public footpath"),(0,Zt.jsxs)("g",{fill:"#166534",children:[(0,Zt.jsx)("circle",{cx:le-.7*fe,cy:ce(3),r:.7*fe}),(0,Zt.jsx)("circle",{cx:le+.6*fe,cy:ce(3)+.15*fe,r:.85*fe})]}),de(3,"Woodland"),(0,Zt.jsx)("rect",{x:le-.4*ie,y:ce(4)-.7*fe,width:.8*ie,height:1.4*fe,rx:.6*fe,fill:pe,opacity:.55,stroke:pe,strokeWidth:.6*C}),de(4,"Lake / water")]})),U&&(0,Zt.jsxs)("g",{transform:"translate(".concat(Le," ").concat(Oe,")"),children:[(0,Zt.jsx)("circle",{cx:0,cy:0,r:1.55*Ae,fill:Y.marginColor,opacity:.7}),"antique"===a&&(0,Zt.jsx)("circle",{cx:0,cy:0,r:Ae,fill:"none",stroke:Y.ink,strokeWidth:C}),(0,Zt.jsx)("path",{d:"M 0 ".concat(-Ae," L ").concat(.32*Ae," ").concat(.55*Ae," L 0 ").concat(.2*Ae," L ").concat(.32*-Ae," ").concat(.55*Ae," Z"),fill:Y.ink,stroke:"none"}),(0,Zt.jsx)("text",{x:0,y:-Ae-.12*S,fontFamily:Y.font,fontSize:.85*xe,fill:Y.ink,textAnchor:"middle",fontWeight:"bold",children:"N"})]}),N&&D&&"os"===a&&(te=Math.max(X-O,2*xe),ne=Math.max(9,Math.min(Math.round(.42*te),Math.round(.024*Math.min(M,w)))),re=Math.round(.6*ne),oe=ne+(A?1.3*re:0),ae=O+Math.max(0,(X-O-oe)/2),(0,Zt.jsxs)("g",{children:[(0,Zt.jsx)("text",{x:X,y:ae,fontFamily:Y.font,fontSize:ne,fill:Y.ink,fontWeight:"bold",letterSpacing:.05*ne,dominantBaseline:"hanging",children:D.toUpperCase()}),A&&(0,Zt.jsx)("text",{x:X,y:ae+ne+.3*re,fontFamily:Y.font,fontSize:re,fill:"#4b5563",letterSpacing:.1*re,dominantBaseline:"hanging",children:A.toUpperCase()})]})),N&&D&&"os"!==a&&(J=M/2,q=he+V*(A?.44:.56),_=he+.08*V,$=Math.min(me,Math.max(5*ge,ge*D.length*.62)),ee=3*C,(0,Zt.jsxs)("g",{children:[(0,Zt.jsx)("line",{x1:J-$/2,y1:_,x2:J-("antique"===a?1.6*ee:0),y2:_,stroke:Y.ink,strokeWidth:C}),(0,Zt.jsx)("line",{x1:J+("antique"===a?1.6*ee:0),y1:_,x2:J+$/2,y2:_,stroke:Y.ink,strokeWidth:C}),"antique"===a&&(0,Zt.jsx)("path",{d:"M ".concat(J," ").concat(_-ee," L ").concat(J+ee," ").concat(_," L ").concat(J," ").concat(_+ee," L ").concat(J-ee," ").concat(_," Z"),fill:Y.ink}),(0,Zt.jsx)("text",{x:J,y:q,fontFamily:Y.font,fontSize:ge,fill:Y.ink,textAnchor:"middle",dominantBaseline:"middle",letterSpacing:.11*ge,fontWeight:"modern"===a?600:"bold",style:"antique"===a?{fontStyle:"italic"}:void 0,children:D.toUpperCase()}),A&&(0,Zt.jsx)("text",{x:J,y:he+.86*V,fontFamily:Y.font,fontSize:xe,fill:Y.ink,textAnchor:"middle",dominantBaseline:"middle",letterSpacing:.24*xe,children:A.toUpperCase()})]})),h&&(0,Zt.jsx)("text",{x:M/2,y:g?.4*X:.52*X,fontFamily:Y.font,fontSize:.82*xe,fill:Y.ink,textAnchor:"middle",dominantBaseline:"middle",letterSpacing:.18*xe,style:{fontStyle:"antique"===a?"italic":"normal"},children:h.toUpperCase()}),g&&(0,Zt.jsx)("text",{x:M/2,y:.68*X,fontFamily:Y.font,fontSize:.64*xe,fill:Y.accent,textAnchor:"middle",dominantBaseline:"middle",letterSpacing:.12*xe,children:g.toUpperCase()}),v&&(0,Zt.jsx)("text",{x:"os"===a?X:M-X,y:w-O-.2*xe,fontFamily:Y.font,fontSize:.7*xe,fill:Y.ink,textAnchor:"os"===a?"start":"end",dominantBaseline:"alphabetic",children:v}),y&&"os"===a&&(H=Math.min(.2*P,3.2*S),K=H*(32/130),(0,Zt.jsx)("image",{href:"data:image/svg+xml;
2base64,PHN2ZyBhcmlhLWhpZGRlbj0idHJ1ZSIgZmlsbD0ibm9uZSIgaGVpZ2h0PSIzMiIgdmlld0JveD0iMCAwIDEzMCAzMiIgd2lkdGg9IjEzMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04LjYxMDY2IDEuOTQ3MTRDOC45OTI4NyAzLjg5ODcyIDkuMjIyOSA1Ljg3NTg4IDkuMjk4NzcgNy44NjE1NkM5LjMyMjA1IDkuOTQ4NzUgOS4yMzMzNyAxMi4wMzU3IDkuMDMzMDkgMTQuMTEzOEw5LjA4MDkxIDE0LjQ5MzJMOS4wOTAwMSAxNC41NzA1QzkuMzUyNzUgMTYuODAxOSA5LjYyMzQzIDE5LjEwMDggMTAuNTkgMjEuMTUwOEMxMC43NDAzIDIxLjM4NjUgMTAuODMxMyAyMS42NTM3IDEwLjg1NTYgMjEuOTMwNEwxNC44MTY5IDIyLjA2ODFDMTQuOTkxNiAyMi4wODY3IDE1LjE2NzggMjIuMDUyMiAxNS4zMjE3IDIxLjk2OTRD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NjcgNS44NjY3OCAxMDcuMzA1IDUuODA5ODggMTA3LjIzMiA1LjgxMDJIMTA1Ljk0OEMxMDUuODcgNS44MTAyIDEwNS44MDcgNS44NzQ4OSAxMDUuODA3IDUuOTU0NjlWMTQuMjczNUMxMDUuODA3IDE0LjM1MzMgMTA1Ljg3IDE0LjQxNzkgMTA1Ljk0OCAxNC40MTc5SDEwNy4zNDJDMTA3LjM3OSAxNC40MTc5IDEwNy40MTUgMTQuNDAyNyAxMDcuNDQyIDE0LjM3NTZDMTA3LjQ2OCAxNC4zNDg1IDEwNy40ODMgMTQuMzExOCAxMDcuNDgzIDE0LjI3MzVWOS4wNTA0OEMxMDcuNDgzIDcuODkxOSAxMDguOTIxIDcuMDU0NDEgMTA5Ljg4NyA3LjA1NDQxQzExMC42NzEgNy4wNTQ0MSAxMTEuMTM4IDcuMzU2NzYgMTExLjM4NiA4LjAwOTYzQzExMS42MDggOC41OTgyOSAxMTEuNjA4IDkuMzk4MzIgMTExLjYwOCAxMC4xMjA4VjE0LjI3MzVDMTExLjYwOCAxNC4zNTMzIDExMS42NzEgMTQuNDE3OSAxMTEuNzQ5IDE0LjQxNzlIMTEzLjE0M0MxMTMuMjIxIDE0LjQxNzkgMTEzLjI4NCAxNC4zNTMzIDExMy4yODQgMTQuMjczNVY5Ljc1NDE5WiIgZmlsbD0iIzQ1M0M5MCIgZmlsbC1ydWxlPSJldmVub2RkIj48L3BhdGg+PC9zdmc+",x:M-X-H,y:w-O-K,width:H,height:K,preserveAspectRatio:"xMaxYMax meet"}))]})};function Xr(e){return function(e){if(Array.isArray(e))return Pr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Pr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pr(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Zr(e,t,n,r,o){if(!e.length)return null;var a=Math.ceil(e.length/o),i=t/a,l=.8*i,s=n/o,c=.92*s,u=1.6*s,p=n/2-u*(o-1)/2;return(0,Zt.jsx)("g",{children:Array.from({length:o}).flatMap(function(t,n){var o=e.slice(n*a,(n+1)*a),s=p+n*u;return o.map(function(e,t){var o=Math.max(1,e*c*.5),a=t*i+(i-l)/2;return(0,Zt.jsx)("rect",{x:a,y:s-o,width:l,height:2*o,fill:r,rx:.25*l,ry:.25*l},"".concat(n,"-").concat(t))})})})}function Gr(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(!e.length)return null;var a=t/2,i=n/2,l=Math.min(t,n),s=o?.2*l:.13*l,c=.49*l-s,u=2*Math.PI/e.length,p=2*Math.PI*s/e.length*.78;return(0,Zt.jsx)("g",{children:e.map(function(e,t){var n=t*u-Math.PI/2,l=Math.max(2,e*c),d=o?Math.max(2,s-.55*l):s,f=o?s+.55*l:s+l,m=a+d*Math.cos(n),h=i+d*Math.sin(n),g=a+f*Math.cos(n),x=i+f*Math.sin(n);return(0,Zt.jsx)("line",{x1:m,y1:h,x2:g,y2:x,stroke:r,strokeWidth:p,strokeLinecap:"round"},t)})})}function Fr(e,t,n,r,o,a){switch(e){case"linear":return function(e,t,n,r){if(!e.length)return null;var o=t/e.length,a=.8*o;return(0,Zt.jsx)("g",{children:e.map(function(e,t){var i=Math.max(2,e*n*.98),l=t*o+(o-a)/2,s=n-i;return(0,Zt.jsx)("rect",{x:l,y:s,width:a,height:i,fill:r,rx:.25*a,ry:.25*a},t)})})}(t,n,r,o);case"linear-mirror":default:return function(e,t,n,r){if(!e.length)return null;var o=t/e.length,a=.8*o,i=n/2;return(0,Zt.jsx)("g",{children:e.map(function(e,t){var l=Math.max(1,e*n*.49),s=t*o+(o-a)/2;return(0,Zt.jsx)("rect",{x:s,y:i-l,width:a,height:2*l,fill:r,rx:.25*a,ry:.25*a},t)})})}(t,n,r,o);case"linear-split-3":return Zr(t,n,r,o,3);case"linear-split-4":return Zr(t,n,r,o,4);case"radial":return Gr(t,n,r,o,!1);case"radial-mirror":return Gr(t,n,r,o,!0);case"dots":return function(e,t,n,r){if(!e.length)return null;var o=Math.ceil(e.length/5),a=t/o,i=n/5,l=Math.min(.46*i,.9*a),s=1.6*i,c=n/2-4*s/2;return(0,Zt.jsx)("g",{children:Array.from({length:5}).flatMap(function(t,n){return e.slice(n*o,(n+1)*o).map(function(e,t){var o=t*a+a/2,i=c+n*s,u=Math.max(1,e*l);return(0,Zt.jsx)("circle",{cx:o,cy:i,r:u,fill:r},"".concat(n,"-").concat(t))})})})}(t,n,r,o);case"gradient-bars":return function(e,t,n,r,o){if(!e.length)return null;var a=t/e.length,i=.8*a;return(0,Zt.jsxs)("g",{children:[(0,Zt.jsx)("defs",{children:(0,Zt.jsxs)("linearGradient",{id:o,x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,Zt.jsx)("stop",{offset:"0%",stopColor:r,stopOpacity:"1"}),(0,Zt.jsx)("stop",{offset:"100%",stopColor:r,stopOpacity:"0.2"})]})}),e.map(function(e,t){var r=Math.max(2,e*n*.98),l=t*a+(a-i)/2,s=n-r;return(0,Zt.jsx)("rect",{x:l,y:s,width:i,height:r,fill:"url(#".concat(o,")"),rx:.25*i,ry:.25*i},t)}
2)]})}(t,n,r,o,a);case"concentric-rings":return function(e,t,n,r){if(!e.length)return null;var o=t/2,a=n/2,i=Math.min(t,n),l=.16*i,s=(.46*i-l)/2,c=Math.ceil(e.length/3);return(0,Zt.jsx)("g",{children:Array.from({length:3}).flatMap(function(t,n){var i=l+n*s,u=e.slice(n*c,(n+1)*c),p=2*Math.PI/u.length,d=2*Math.PI*i/u.length*.7;return u.map(function(e,t){var l=t*p-Math.PI/2,c=Math.max(1,e*s*.7),u=i-c/2,f=i+c/2,m=o+u*Math.cos(l),h=a+u*Math.sin(l),g=o+f*Math.cos(l),x=a+f*Math.sin(l);return(0,Zt.jsx)("line",{x1:m,y1:h,x2:g,y2:x,stroke:r,strokeWidth:d,strokeLinecap:"round"},"".concat(n,"-").concat(t))})})})}(t,n,r,o);case"ribbon":return function(e,t,n,r,o){if(e.length<2)return null;var a=n/2,i=t/(e.length-1),l=e.map(function(e,t){return[t*i,a-e*n*.48]}),s=e.map(function(e,t){return[t*i,a+e*n*.48]}),c=["M ".concat(l[0][0]," ").concat(l[0][1])].concat(Xr(l.slice(1).map(function(e){return"L ".concat(e[0]," ").concat(e[1])})),Xr(s.slice().reverse().map(function(e){return"L ".concat(e[0]," ").concat(e[1])})),["Z"]).join(" ");return(0,Zt.jsxs)("g",{children:[(0,Zt.jsx)("defs",{children:(0,Zt.jsxs)("linearGradient",{id:o,x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,Zt.jsx)("stop",{offset:"0%",stopColor:r,stopOpacity:"0.4"}),(0,Zt.jsx)("stop",{offset:"50%",stopColor:r,stopOpacity:"1"}),(0,Zt.jsx)("stop",{offset:"100%",stopColor:r,stopOpacity:"0.4"})]})}),(0,Zt.jsx)("path",{d:c,fill:"url(#".concat(o,")")})]})}(t,n,r,o,a);case"curve":return function(e,t,n,r){if(e.length<2)return null;var o=n/2,a=t/(e.length-1),i=e.map(function(e,t){return[t*a,o-e*n*.48]}),l=e.map(function(e,t){return[t*a,o+e*n*.48]}),s=function(e){for(var t="M ".concat(e[0][0]," ").concat(e[0][1]),n=0;n<e.length-1;n++){var r=e[n],o=e[n+1],a=(r[0]+o[0])/2;t+=" Q ".concat(r[0]," ").concat(r[1]," ").concat(a," ").concat((r[1]+o[1])/2)}return t+" L ".concat(e[e.length-1][0]," ").concat(e[e.length-1][1])},c=Math.max(2,.012*n);return(0,Zt.jsxs)("g",{children:[(0,Zt.jsx)("path",{d:s(i),fill:"none",stroke:r,strokeWidth:c,strokeLinecap:"round",strokeLinejoin:"round"}),(0,Zt.jsx)("path",{d:s(l),fill:"none",stroke:r,strokeWidth:c,strokeLinecap:"round",strokeLinejoin:"round"})]})}(t,n,r,o)}}var Br=(0,e.forwardRef)(function(t,n){var r,o=t.config,a=t.widthPx,i=t.heightPx,l=(0,e.useRef)(null),s="radial"===o.waveformStyle||"radial-mirror"===o.waveformStyle||"concentric-rings"===o.waveformStyle,c=s?1e3:Math.max(100,Math.round(i/a*1e3)),u=(0,e.useMemo)(function(){return"sw-grad-".concat(Math.random().toString(36).slice(2,8))},[]),p=null!==(r=o.amplitude)&&void 0!==r?r:1,d=(0,e.useMemo)(function(){return o.barData.map(function(e){return(.18+(1-.18)*Math.pow(Math.min(1,Math.max(0,e)),.6))*p})},[o.barData,p]),f=(0,e.useMemo)(function(){return d.reduce(function(e,t){return Math.max(e,t)},0)},[d]),m=function(){if(s)return 1;switch(o.waveformStyle){case"linear":case"gradient-bars":case"linear-mirror":default:return Math.max(1,.98*f);case"ribbon":case"curve":return Math.max(1,.96*f);case"linear-split-3":case"linear-split-4":var e="linear-split-4"===o.waveformStyle?4:3,t=1/e,n=1.6*t*(e-1)/2+.92*t*f/2;return Math.max(1,2*n);case"dots":var r=.2*1.6*4/2+.2*.46*f;return Math.max(1,2*r)}}(),h=s?c:Math.round(c*m*1.02),g=(h-c)/2,x=i*(h/c),y=s?{display:"block",overflow:"visible",width:"100%",height:"100%"}:{display:"block",overflow:"visible",position:"absolute",top:"-".concat((x-i)/2,"px"),left:0,width:"100%",height:"".concat(x,"px")};return(0,e.useImperativeHandle)(n,function(){return{getSvgString:function(){var e,t;return null!==(e=null===(t=l.current)||void 0===t?void 0:t.outerHTML)&&void 0!==e?e:""}}}),(0,Zt.jsx)("svg",{ref:l,width:"100%",height:"100%",viewBox:"0 0 ".concat(1e3," ").concat(h),preserveAspectRatio:s?"xMidYMid meet":"none",style:y,children:(0,Zt.jsx)("g",{transform:"translate(0, ".concat(g,")"),children:Fr(o.waveformStyle,d,1e3,c,o.waveColor,u)})})});const Rr=Br;function Qr(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return Hr(c,"_invoke",function(n,r,o){var a,l,s,c=0,u=o||[],p=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,d.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!p&&c&&!o&&t<u.length;t++){var o,a=u[t],f=d.p,m=a[2];n>3?(o=m===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,d.v=r,d.n=a[1]):f<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,d.n=m,l=0))}if(o||n>1)return i;throw p=!0,r}return function(o,u,m){if(c>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!p;){a||(l?l<3?(l>1&&(d.n=-1),f(l,s)):d.n=s:d.v=s);try{if(c=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");
vendor: 4,686 bytes, line 2
2if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(p=d.n<0)?s:n.call(r,d))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:p}}}(n,o,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Hr(t={},r,function(){return this}),t),p=c.prototype=l.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Hr(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=c,Hr(p,"constructor",c),Hr(c,"constructor",s),s.displayName="GeneratorFunction",Hr(c,o,"GeneratorFunction"),Hr(p),Hr(p,o,"Generator"),Hr(p,r,function(){return this}),Hr(p,"toString",function(){return"[object Generator]"}),(Qr=function(){return{w:a,m:d}})()}function Hr(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Hr=function(e,t,n,r){function a(t,n){Hr(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Hr(e,t,n,r)}function Kr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Jr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function qr(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}var _r="\n@font-face{font-family:'Oswald';font-style:normal;font-weight:100 900;font-display:block;src:url(data:font/woff2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++JrcIlIVGJQEpcEo+gxJbYT1SYSbc6ZRRcdl0/K0NdpPyUWtgRJvPk674IuBxx0yHY7nHQKDdNoOmabaZ655ps2PUmT6IXpTmCkixlaxoXjvRGHEcyZWSpZO7/xwBNIpVQJTvBCEKKQhCwUoQqNhfwt8EC/hx4ZCCHLZsy0tM/tWthVmBZn+zqysYi3YEFvWipXaPK6W7pn1ERL+tLI5rJSq453yjsUI3KpRon9WaS5cKTqGOhiHSe+R8xHYEts5nHjRWeeOl0k/49zIE+QlctUjz5VViHV8pNqCv8TPdKVfE97YVvHOkmUfEzOO9XjWArnp7OdqjJl6Zy+PuQo7OTMcEln3/xTr6u6Tcg1sUtuhSNWAA==) format('woff2');}\n@font-face{font-family:'Dancing Script';font-style:normal;font-weight:400 700;font-display:block;src:url(data:font/woff2;base64,d09GMgABAAAAAGTQAA8AAAAAzOwAAGRvAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGnYbgYhwHIVKBmA/U1RBVCoAhDIRCAqB6UyBwGcLg3QAATYCJAOHZAQgBYVcB4Z2G4q1B8TTTuC53qzKs3HB/751FLVgsgoyEiFsHABC8dHZ///3BCpjuBbMBihefeAQHJEZkEVVMGpQc0pJLSK1RhCJJJJnXJI7tqcbfjQsz339UqvbwoKlYTbsRbAywWxs0gBKnWWpFNC0t46mfZhLLvvEQMvf7dNml9k8D/zGZ4i/B4Og6KvI3eljxac78olPag2XtNJh+0Vg3MJH1ZyXqNoP3p699wk46BgUACp2qUhEmYrRrGMBUBHu8Py53tfwJ1RTC9AxADpaHQNP7DZA09nRNo3JJblL7iIX96Z2iTfxNk0qTgWt0VLECsWKDJMJwzdksAETg21MlJkCM2P89mxjCP0jt3t/oTePWppgAl78/2/OqsP1PIvvPrvHAcYGTAo7BRSq2BWDxBZ9gW2lp9o0+C7fOiQbgUDkAmMV0yXbK2fpiT//vZ9YpOakeokvWVThKjQ8yEkghzrztEodBVaUsuERpo4duwXLzpdgm0LwwIYHZhfA//j9poh71TYntI70/4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j3T9/To9Pr9PL0Kb2ZpePpXfqc2oVM/tRZY5pxywTtgLNvNFU2U72NzN/bRnEb27Y8hpd0zLD4T2Vrvf4Pp51W7F1+fV7e6nj/dKUWzHThXZI8nl8kRUUwTD5/XWo4UZ+E/qfUVChBGj0tu09S+z6vxT7Ro7vkl/ZBcZtrz8Kf29sO4NkW7LiX+X87AwA=) format('woff2');}\n",$r=null;function eo(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return to(c,"_invoke",function(n,r,o){var a,l,s,c=0,u=o||[],p=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,d.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!p&&c&&!o&&t<u.length;t++){var o,a=u[t],f=d.p,m=a[2];n>3?(o=m===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,d.v=r,d.n=a[1]):f<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,d.n=m,l=0))}if(o||n>1)return i;throw p=!0,r}return function(o,u,m){if(c>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!p;){a||(l?l<3?(l>1&&(d.n=-1),f(l,s)):d.n=s:d.v=s);try{if(c=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(p=d.n<0)?s:n.call(r,d))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:p}}}(n,o,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(to(t={},r,function(){return this}),t),p=c.prototype=l.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,to(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=c,to(p,"constructor",c),to(c,"constructor",s),s.displayName="GeneratorFunction",to(c,o,"GeneratorFunction"),to(p),to(p,o,"Generator"),to(p,r,function(){return this}),to(p,"toString",function(){return"[object Generator]"}),(eo=function(){return{w:a,m:d}})()}function to(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}to=function(e,t,n,r){function a(t,n){to(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},to(e,t,n,r)}function no(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function ro(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){no(a,r,o,i,l,"next",e)}function l(e){no(a,r,o,i,l,"throw",e)}i(void 0)})}}function oo(e){if(e)return e.replace(/\s*-\s*(Single|EP)\s*$/i,"").trim()}function ao(e){return{title:e.trackName,artist:e.artistName,album:oo(e.collectionName),collectionId:e.collectionId,releaseYear:e.releaseDate?e.releaseDate.slice(0,4):void 0,durationSec:e.trackTimeMillis?Math.round(e.trackTimeMillis/1e3):void 0,genre:e.primaryGenreName,trackNumber:e.trackNumber,discNumber:e.discNumber,albumArtUrl:e.artworkUrl100?e.artworkUrl100.replace("100x100bb","600x600bb"):void 0,appleMusicUrl:e.trackViewUrl?e.trackViewUrl.replace(/[?&]uo=\d+/,""):void 0,previewUrl:e.previewUrl}}function io(e){return lo.apply(this,arguments)}function lo(){return lo=ro(eo().m(function e(t){var n,r,o,a,i,l,s;return eo().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t){e.n=1;break}return e.a(2,null);case 1:return e.p=1,e.n=2,fetch("https://itunes.apple.com/lookup?id=".concat(t,"&entity=album"));case 2:if((n=e.v).ok){e.n=3;break}return e.a(2,null);case 3:return e.n=4,n.json();case 4:if(r=e.v,o=(r.results||[]).find(function(e){return"collection"===e.wrapperType}),a=(null==o?void 0:o.copyright)||""){e.n=5;break}return e.a(2,null);case 5:return i=a.split(/[;,]/).map(function(e){return e.trim()}
2).filter(Boolean),l=(l=(l=i.find(function(e){return/[℗©]/.test(e)})||i[0]||"").replace(/[℗©]\s*/g," ").replace(/\b(19|20)\d{2}\b/g," ").replace(/\s+/g," ").trim()).replace(/^(under (an? )?exclusive licen[cs]e to|licen[cs]ed to|distributed by|marketed by)\s+/i,"").trim(),s=/[\s,]+(Inc\.?|Ltd\.?|Limited|LLC|L\.L\.C\.|LLP|GmbH|B\.?V\.?|N\.?V\.?|S\.?A\.?R\.?L\.?|S\.?A\.?|S\.?L\.?|A\/S|Pty\.?|Corp\.?|Corporation|Company|Co\.)$/i,l=(l=l.replace(s,"").trim().replace(s,"").trim()).replace(/\s+(a division of|an imprint of).*$/i,"").trim(),e.a(2,l||null);case 6:return e.p=6,e.v,e.a(2,null)}},e,null,[[1,6]])})),lo.apply(this,arguments)}function so(e){return co.apply(this,arguments)}function co(){return co=ro(eo().m(function e(t){var n,r,o;return eo().w(function(e){for(;;)switch(e.n){case 0:return n="https://itunes.apple.com/search?term=".concat(encodeURIComponent(t),"&entity=song&limit=20"),e.n=1,fetch(n);case 1:if((r=e.v).ok){e.n=2;break}return e.a(2,[]);case 2:return e.n=3,r.json();case 3:return o=e.v,e.a(2,(o.results||[]).map(ao).filter(function(e){return e.title&&e.artist}))}},e)})),co.apply(this,arguments)}var uo=0;function po(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6e3;return new Promise(function(n,r){var o="__tpeDeezerCb".concat(uo++),a=e.includes("?")?"&":"?",i="".concat(e).concat(a,"output=jsonp&callback=").concat(o),l=document.createElement("script"),s=!1,c=function(){delete window[o],l.parentNode&&l.parentNode.removeChild(l),clearTimeout(u)},u=setTimeout(function(){s||(s=!0,c(),r(new Error("Deezer JSONP timeout")))},t);window[o]=function(e){s||(s=!0,c(),n(e))},l.onerror=function(){s||(s=!0,c(),r(new Error("Deezer JSONP error")))},l.src=i,document.head.appendChild(l)})}function fo(e){var t,n,r,o;return{title:e.title,artist:(null===(t=e.artist)||void 0===t?void 0:t.name)||"",album:null===(n=e.album)||void 0===n?void 0:n.title,durationSec:e.duration,albumArtUrl:(null===(r=e.album)||void 0===r?void 0:r.cover_xl)||(null===(o=e.album)||void 0===o?void 0:o.cover_big),isrc:e.isrc,deezerUrl:e.link,previewUrl:e.preview}}function mo(e){return ho.apply(this,arguments)}function ho(){return ho=ro(eo().m(function e(t){var n,r;return eo().w(function(e){for(;;)switch(e.n){case 0:return n="https://api.deezer.com/search?q=".concat(encodeURIComponent(t),"&limit=20"),e.n=1,po(n);case 1:if((r=e.v)&&!r.error&&Array.isArray(r.data)){e.n=2;break}return e.a(2,[]);case 2:return e.a(2,r.data.map(fo).filter(function(e){return e.title&&e.artist}))}},e)})),ho.apply(this,arguments)}function go(e,t){return xo.apply(this,arguments)}function xo(){return(xo=ro(eo().m(function e(t,n){var r,o,a,i,l;return eo().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,a="https://api.deezer.com/search?q=".concat(encodeURIComponent('track:"'.concat(t,'" artist:"').concat(n,'"')),"&limit=1"),e.n=1,po(a);case 1:if(i=e.v,null!==(r=i)&&void 0!==r&&null!==(r=r.data)&&void 0!==r&&r.length){e.n=3;break}return l="https://api.deezer.com/search?q=".concat(encodeURIComponent("".concat(t," ").concat(n)),"&limit=1"),e.n=2,po(l);case 2:i=e.v;case 3:return e.a(2,(null===(o=i)||void 0===o||null===(o=o.data)||void 0===o||null===(o=o[0])||void 0===o?void 0:o.isrc)||null);case 4:return e.p=4,e.v,e.a(2,null)}},e,null,[[0,4]])}))).apply(this,arguments)}function yo(e){return vo.apply(this,arguments)}function vo(){return(vo=ro(eo().m(function e(t){var n;return eo().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t.trim()){e.n=1;break}return e.a(2,[]);case 1:return e.p=1,e.n=2,so(t);case 2:if(!(n=e.v).length){e.n=3;break}return e.a(2,n);case 3:e.n=5;break;case 4:e.p=4,e.v;case 5:return e.p=5,e.n=6,mo(t);case 6:return e.a(2,e.v);case 7:return e.p=7,e.v,e.a(2,[])}},e,null,[[5,7],[1,4]])}))).apply(this,arguments)}function bo(e){return bo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bo(e)}function Yo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Mo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?Yo(Object(n),!0).forEach(function(t){wo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wo(e,t,n){return(t=function(e){var t=function(e){if("object"!=bo(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=bo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==bo(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function So(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return jo(c,"_invoke",function(n,r,o){var a,l,s,c=0,u=o||[],p=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,d.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!p&&c&&!o&&t<u.length;t++){var o,a=u[t],f=d.p,m=a[2];n>3?(o=m===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,d.v=r,d.n=a[1]):f<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,d.n=m,l=0))}if(o||n>1)return i;throw p=!0,r}return function(o,u,m){if(c>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!p;){a||(l?l<3?(l>1&&(d.n=-1),f(l,s)):d.n=s:d.v=s);try{if(c=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(p=d.n<0)?s:n.call(r,d))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:p}}}(n,o,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(jo(t={},r,function(){return this}),t),p=c.prototype=l.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,jo(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=c,jo(p,"constructor",c),jo(c,"constructor",s),s.displayName="GeneratorFunction",jo(c,o,"GeneratorFunction"),jo(p),jo(p,o,"Generator"),jo(p,r,function(){return this}),jo(p,"toString",function(){return"[object Generator]"}),(So=function(){return{w:a,m:d}})()}function jo(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}jo=function(e,t,n,r){function a(t,n){jo(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},jo(e,t,n,r)}function To(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return No(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?No(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function No(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Wo(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Io(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){Wo(a,r,o,i,l,"next",e)}function l(e){Wo(a,r,o,i,l,"throw",e)}i(void 0)})}}var Uo=/open\.spotify\.com\/track\/([A-Za-z0-9]{22})/;function ko(e){return{id:e,uri:"spotify:track:".concat(e)}}function Do(e){return Ao.apply(this,arguments)}function Ao(){return Ao=Io(So().m(function e(t){var n,r,o,a,i,l,s,c,u,p,d,f,m,h,g,x,y,v,b;return So().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t){e.n=1;break}return e.a(2,null);case 1:return n=new AbortController,r=setTimeout(function(){return n.abort()},4e3),e.p=2,a="https://musicbrainz.org/ws/2/isrc/".concat(encodeURIComponent(t),"?inc=url-rels&fmt=json"),e.n=3,fetch(a,{signal:n.signal});case 3:if((i=e.v).ok){e.n=4;break}return e.a(2,null);case 4:return e.n=5,i.json();case 5:l=e.v,s=To(null!==(o=null==l?void 0:l.recordings)&&void 0!==o?o:[]),e.p=6,s.s();case 7:if((c=s.n()).done){e.n=15;break}p=c.value,d=To(null!==(u=null==p?void 0:p.relations)&&void 0!==u?u:[]),e.p=8,d.s();case 9:if((f=d.n()).done){e.n=11;break}if(g=f.value,x=null!==(m=null==g||null===(h=g.url)||void 0===h?void 0:h.resource)&&void 0!==m?m:"",!(y=x.match(Uo))){e.n=10;break}return e.a(2,ko(y[1]));case 10:e.n=9;break;case 11:e.n=13;break;case 12:e.p=12,v=e.v,d.e(v);case 13:return e.p=13,d.f(),e.f(13);case 14:e.n=7;break;case 15:e.n=17;break;case 16:e.p=16,b=e.v,s.e(b);case 17:return e.p=17,s.f(),e.f(17);case 18:return e.a(2,null);case 19:return e.p=19,e.v,e.a(2,null);case 20:return e.p=20,clearTimeout(r),e.f(20);case 21:return e.a(2)}},e,null,[[8,12,13,14],[6,16,17,18],[2,19,20,21]])})),Ao.apply(this,arguments)}function Co(e){return Lo.apply(this,arguments)}function Lo(){return(Lo=Io(So().m(function e(t){var n,r,o;return So().w(function(e){for(;;)switch(e.n){case 0:if(!t.spotifyUri){e.n=1;break}return e.a(2,t);case 1:if((n=t.isrc)||!t.title||!t.artist){e.n=4;break}return e.n=2,go(t.title,t.artist);case 2:if(o=e.v){e.n=3;break}o=void 0;case 3:n=o;case 4:if(n){e.n=5;break}return e.a(2,t);case 5:return e.n=6,Do(n);case 6:if(r=e.v){e.n=7;break}return e.a(2,Mo(Mo({},t),{},{isrc:n}));case 7:return e.a(2,Mo(Mo({},t),{},{isrc:n,spotifyTrackId:r.id,spotifyUri:r.uri}))}},e)}))).apply(this,arguments)}function Oo(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"white",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:640,o=t.replace("#","").toLowerCase();return"https://scannables.scdn.co/uri/plain/svg/".concat(o,"/").concat(n,"/").concat(r,"/").concat(encodeURIComponent(e))}function Eo(e,t){return Vo.apply(this,arguments)}function Vo(){return Vo=Io(So().m(function e(t,n){var r,o,a,i,l,s,c=arguments;return So().w(function(e){for(;;)switch(e.p=e.n){case 0:return r="https://scannables.scdn.co/uri/plain/svg/ffffff/black/".concat(c.length>2&&void 0!==c[2]?c[2]:640,"/").concat(encodeURIComponent(t)),e.p=1,e.n=2,fetch(r,{mode:"cors"});case 2:if((o=e.v).ok){e.n=3;break}return e.a(2,"");case 3:return e.n=4,o.text();case 4:if(a=e.v,i=(new DOMParser).parseFromString(a,"image/svg+xml"),"svg"===(l=i.documentElement).nodeName.toLowerCase()){e.n=5;break}return e.a(2,"");case 5:return s=!1,l.querySelectorAll("[fill]").forEach(function(e){s||"rect"!==e.nodeName.toLowerCase()?e.setAttribute("fill",n):(e.setAttribute("fill","transparent"),s=!0)}),l.setAttribute("width","100%"),l.setAttribute("height","100%"),l.setAttribute("preserveAspectRatio","xMidYMid meet"),l.setAttribute("style","display:block"),e.a(2,(new XMLSerializer).serializeToString(l));case 6:return e.p=6,e.v,e.a(2,"")}},e,null,[[1,6]])})),Vo.apply(this,arguments)}function zo(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return Xo(c,"_invoke",function(n,r,o){var a,l,s,c=0,u=o||[],p=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,d.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!p&&c&&!o&&t<u.length;t++){var o,a=u[t],f=d.p,m=a[2];n>3?(o=m===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,d.v=r,d.n=a[1]):f<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,d.n=m,l=0))}if(o||n>1)return i;throw p=!0,r}return function(o,u,m){if(c>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!p;){a||(l?l<3?(l>1&&(d.n=-1),f(l,s)):d.n=s:d.v=s);try{if(c=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");
vendor: 2,218 bytes, line 2
2if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(p=d.n<0)?s:n.call(r,d))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:p}}}(n,o,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Xo(t={},r,function(){return this}),t),p=c.prototype=l.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Xo(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=c,Xo(p,"constructor",c),Xo(c,"constructor",s),s.displayName="GeneratorFunction",Xo(c,o,"GeneratorFunction"),Xo(p),Xo(p,o,"Generator"),Xo(p,r,function(){return this}),Xo(p,"toString",function(){return"[object Generator]"}),(zo=function(){return{w:a,m:d}})()}function Xo(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Xo=function(e,t,n,r){function a(t,n){Xo(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Xo(e,t,n,r)}function Po(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}var Zo={spotify:"M12 0C5.4 0 0 5.4 0 12s5.4 12 12 12 12-5.4 12-12S18.66 0 12 0zm5.521 17.34c-.24.359-.66.48-1.021.24-2.82-1.74-6.36-2.101-10.561-1.141-.418.122-.779-.179-.899-.539-.12-.421.18-.78.54-.9 4.56-1.021 8.52-.6 11.64 1.32.42.18.479.659.301 1.02zm1.44-3.3c-.301.42-.841.6-1.262.3-3.239-1.98-8.159-2.58-11.939-1.38-.479.12-1.02-.12-1.14-.6-.12-.48.12-1.021.6-1.141C9.6 9.9 15 10.561 18.72 12.84c.361.181.54.78.241 1.2zm.12-3.36C15.24 8.4 8.82 8.16 5.16 9.301c-.6.179-1.2-.181-1.38-.721-.18-.601.18-1.2.72-1.381 4.26-1.26 11.28-1.02 15.721 1.621.539.3.719 1.02.419 1.56-.299.421-1.02.599-1.559.3z",apple:"M23.994 6.124a9.23 9.23 0 00-.24-2.19c-.317-1.31-1.062-2.31-2.18-3.043a5.022 5.022 0 00-1.877-.726 10.496 10.496 0 00-1.564-.15c-.04-.003-.083-.01-.124-.013H5.986c-.152.01-.303.017-.455.026-.747.043-1.49.123-2.193.4-1.336.53-2.3 1.452-2.865 2.78-.192.448-.292.925-.363 1.408-.056.392-.088.785-.1 1.18 0 .032-.007.062-.01.
2093v12.223c.01.14.017.283.027.424.05.815.154 1.624.497 2.373.65 1.42 1.738 2.353 3.234 2.801.42.127.856.187 1.293.228.555.053 1.11.06 1.667.06h11.03a12.5 12.5 0 001.57-.1c.822-.106 1.596-.35 2.295-.81a5.046 5.046 0 001.88-2.207c.186-.42.293-.87.37-1.324.113-.675.138-1.358.137-2.04-.002-3.8 0-7.595-.003-11.393zm-6.423 3.99v5.712c0 .417-.058.827-.244 1.206-.29.59-.76.962-1.388 1.14-.35.1-.706.157-1.07.173-.95.045-1.773-.6-1.943-1.536a1.88 1.88 0 011.038-2.022c.323-.16.67-.25 1.018-.324.378-.082.758-.153 1.134-.24.274-.063.457-.23.51-.516a.904.904 0 00.02-.193c0-1.815 0-3.63-.002-5.443a.725.725 0 00-.026-.185c-.04-.15-.15-.243-.304-.234-.16.01-.318.035-.475.066-.76.15-1.52.303-2.28.456l-2.325.47-1.374.278c-.016.003-.032.01-.048.013-.277.077-.377.203-.39.49-.002.042 0 .086 0 .13-.002 2.602 0 5.204-.003 7.805 0 .42-.047.836-.215 1.227-.278.64-.77 1.04-1.434 1.233-.35.1-.71.16-1.075.172-.96.036-1.755-.6-1.92-1.544-.14-.812.23-1.685 1.154-2.075.357-.15.73-.232 1.108-.31.287-.06.575-.116.86-.177.383-.083.583-.323.6-.714v-.15c0-2.96 0-5.922.002-8.882 0-.123.013-.25.042-.37.07-.285.273-.448.546-.518.255-.066.515-.112.774-.165.733-.15 1.466-.296 2.2-.444l2.27-.46c.67-.134 1.34-.27 2.01-.403.22-.043.442-.088.663-.106.31-.025.523.17.554.482.008.073.012.148.012.223.002 1.91.002 3.822 0 5.732z",deezer:"M.693 10.024c.381 0 .693-1.256.693-2.807 0-1.55-.312-2.807-.693-2.807C.312 4.41 0 5.666 0 7.217s.312 2.808.693 2.808ZM21.038 1.56c-.364 0-.684.805-.91 2.096C19.765 1.446 19.184 0 18.526 0c-.78 0-1.464 2.036-1.784 5-.312-2.158-.788-3.536-1.325-3.536-.745 0-1.386 2.704-1.62 6.472-.442-1.932-1.083-3.145-1.793-3.145s-1.35 1.213-1.793 3.145c-.242-3.76-.874-6.463-1.628-6.463-.537 0-1.013 1.378-1.325 3.535C6.938 2.036 6.262 0 5.474 0c-.658 0-1.247 1.447-1.602 3.665-.217-1.291-.546-2.105-.91-2.105-.675 0-1.221 2.807-1.221 6.272 0 3.466.546 6.273 1.221 6.273.277 0 .537-.476.736-1.273.32 2.928.996 4.938 1.776 4.938.606 0 1.143-1.204 1.507-3.11.251 3.622.875 6.195 1.602 6.195.46 0 .875-1.023 1.187-2.677C10.142 21.6 11 24 12.004 24c1.005 0 1.863-2.4 2.235-5.822.312 1.654.727 2.677 1.186 2.677.728 0 1.352-2.573 1.603-6.195.364 1.906.9 3.11 1.507 3.11.78 0 1.455-2.01 1.775-4.938.208.797.46 1.273.737 1.273.675 0 1.22-2.807 1.22-6.273-.008-3.457-.553-6.272-1.23-6.272ZM23.307 10.024c.381 0 .693-1.256.693-2.807 0-1.55-.312-2.807-.693-2.807-.381 0-.693 1.256-.693 2.807s.312 2.808.693 2.808Z"};function Go(e,t){var n='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">'+'<path d="'.concat(Zo[e],'" fill="').concat(t,'"/></svg>');return"data:image/svg+xml;utf8,".concat(encodeURIComponent(n))}function Fo(e){return Bo.apply(this,arguments)}function Bo(){var e;return e=zo().m(function e(t){var n,r,o,a,i,l,s,c,u,p,d,f,m;return zo().w(function(e){for(;;)switch(e.p=e.n){case 0:if(n=t.data,r=t.color,o=t.logo,a=void 0===o?"none":o,i=t.size,l=void 0===i?512:i,s=window.QRCodeStyling){e.n=1;break}return e.a(2,Ro(n,r));case 1:return c="none"!==a?Go(a,r):void 0,u=new s({width:l,height:l,type:"svg",data:n,margin:0,qrOptions:{errorCorrectionLevel:"H"},dotsOptions:{type:"rounded",color:r},cornersSquareOptions:{type:"extra-rounded",color:r},cornersDotOptions:{type:"dot",color:r},backgroundOptions:{color:"transparent"},image:c,imageOptions:{crossOrigin:"anonymous",margin:2,imageSize:.22,hideBackgroundDots:!0}}),e.n=2,u.getRawData("svg");case 2:return p=e.v,e.n=3,p.text();case 3:return d=e.v,e.p=4,f=(new DOMParser).parseFromString(d,"image/svg+xml"),(m=f.documentElement).getAttribute("viewBox")||m.setAttribute("viewBox","0 0 ".concat(l," ").concat(l)),m.setAttribute("width","100%"),m.setAttribute("height","100%"),m.setAttribute("preserveAspectRatio","xMidYMid meet"),m.setAttribute("style","display:block"),e.a(2,(new XMLSerializer).serializeToString(m));case 5:return e.p=5,e.v,e.a(2,d)}},e,null,[[4,5]])}),Bo=function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){Po(a,r,o,i,l,"next",e)}function l(e){Po(a,r,o,i,l,"throw",e)}i(void 0)})},Bo.apply(this,arguments)}function Ro(e,t){return new Promise(function(n){var r=window.QRCode;
2r?r.toString(e,{type:"svg",margin:1,color:{dark:t,light:"#0000"}},function(e,t){return n(e?"":t)}):n("")})}function Qo(e){return Qo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qo(e)}function Ho(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ko(e,t,n){return(t=function(e){var t=function(e){if("object"!=Qo(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Qo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Qo(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return qo(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qo(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _o(e){switch(e){case"apple":return"apple";case"deezer":return"deezer";default:return"none"}}var $o={tl:{top:"4%",left:"4%"},tr:{top:"4%",right:"4%"},bl:{bottom:"4%",left:"4%"},br:{bottom:"4%",right:"4%"},caption:{bottom:"-12%",left:"50%",transform:"translateX(-50%)"}};function ea(e,t,n){switch(e){case"apple":return(null==t?void 0:t.appleMusicUrl)||"";case"deezer":return(null==t?void 0:t.deezerUrl)||"";case"audio":case"qr":return n||"";default:return""}}var ta=function(t){var n=t.scanCode,r=t.metadata,o=t.audioUrl,a=t.backgroundHex,i=t.sizePx,l=Jo((0,e.useState)(""),2),s=l[0],c=l[1],u=Jo((0,e.useState)(""),2),p=u[0],d=u[1],f=ea(n.type,r,o),m=null==r?void 0:r.spotifyUri;if((0,e.useEffect)(function(){if("none"!==n.type&&"spotify"!==n.type&&f){var e=!1;return Fo({data:f,color:n.color,logo:_o(n.type)}).then(function(t){e||c(t)}),function(){e=!0}}c("")},[n.type,n.color,f]),(0,e.useEffect)(function(){if("spotify"===n.type&&m){var e=!1;return Eo(m,n.color).then(function(t){e||d(t)}),function(){e=!0}}d("")},[n.type,n.color,m]),!n.enabled||"none"===n.type)return null;if("spotify"===n.type&&m){if(p)return(0,Zt.jsx)("div",{style:{height:.55*i,width:.55*i*4,lineHeight:0},dangerouslySetInnerHTML:{__html:p}});var h=na(a)?"white":"black",g=Oo(m,a,h,640);return(0,Zt.jsx)("img",{src:g,alt:"Spotify code",crossOrigin:"anonymous",style:{height:.55*i,width:"auto"}})}return s?(0,Zt.jsx)("div",{style:{width:i,height:i,lineHeight:0},dangerouslySetInnerHTML:{__html:s}}):null};function na(e){var t=e.replace("#","");return 6===t.length&&.299*parseInt(t.slice(0,2),16)+.587*parseInt(t.slice(2,4),16)+.114*parseInt(t.slice(4,6),16)<128}const ra=function(t){var n=t.scanCode,r=t.audioUrl,o=t.metadata,a=t.backgroundHex,i=t.slotWidthPx,l=Jo((0,e.useState)(""),2),s=l[0],c=l[1],u=Jo((0,e.useState)(""),2),p=u[0],d=u[1],f=i*n.sizePct/100,m=ea(n.type,o,r),h=null==o?void 0:o.spotifyUri;if((0,e.useEffect)(function(){if(n.enabled&&"none"!==n.type&&"spotify"!==n.type&&m){var e=!1;return Fo({data:m,color:n.color,logo:_o(n.type)}).then(function(t){e||c(t)}),function(){e=!0}}c("")},[n.enabled,n.type,n.color,m]),(0,e.useEffect)(function(){if(n.enabled&&"spotify"===n.type&&h){var e=!1;return Eo(h,n.color).then(function(t){e||d(t)}),function(){e=!0}}d("")},[n.enabled,n.type,n.color,h]),!n.enabled||"none"===n.type)return null;var g=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?Ho(Object(n),!0).forEach(function(t){Ko(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ho(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({position:"absolute",width:f,height:f,pointerEvents:"none"},$o[n.position]);if("spotify"===n.type&&h){if(p)return(0,Zt.jsx)("div",{style:g,dangerouslySetInnerHTML:{__html:p}});var x=na(a)?"white":"black",y=Oo(h,a,x,640);return(0,Zt.jsx)("img",{src:y,alt:"Spotify code",style:g,crossOrigin:"anonymous"})}return s?(0,Zt.jsx)("div",{style:g,dangerouslySetInnerHTML:{__html:s}}):null};function oa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function aa(t,n,r){var o,a,i=(o=(0,e.useState)(null),a=2,function(e){if(Array.isArray(e))return e}(o)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(o,a)||function(e,t){if(e){if("string"==typeof e)return oa(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oa(e,t):void 0}}(o,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=i[0],s=i[1],c=(0,e.useRef)(r);if(c.current=r,(0,e.useEffect)(function(){var e;if(t&&!t.startsWith("data:")){var r=!1;null===(e=c.current)||void 0===e||e.call(c,!0);var o=new Image;return o.crossOrigin="anonymous",o.onload=function(){var e;if(!r){try{var a=Math.min(o.naturalWidth,o.naturalHeight),i=Math.max(1,Math.min(n,a)),l=document.createElement("canvas");l.width=i,l.height=i;var u=l.getContext("2d");u.imageSmoothingEnabled=!0,u.imageSmoothingQuality="high",u.drawImage(o,(o.naturalWidth-a)/2,(o.naturalHeight-a)/2,a,a,0,0,i,i),s({src:t,data:l.toDataURL("image/jpeg",.92)})}catch(e){console.warn("Could not inline photo for capture",e)}null===(e=c.current)||void 0===e||e.call(c,!1)}},o.onerror=function(){var e;r||null===(e=c.current)||void 0===e||e.call(c,!1)},o.src=t,function(){var e;r=!0,null===(e=c.current)||void 0===e||e.call(c,!1)}}},[t,n]),t)return l&&l.src===t?l.data:t}function ia(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return la(c,"_invoke",function(n,r,o){var a,l,s,c=0,u=o||[],p=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,d.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!p&&c&&!o&&t<u.length;t++){var o,a=u[t],f=d.p,m=a[2];n>3?(o=m===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,d.v=r,d.n=a[1]):f<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,d.n=m,l=0))}if(o||n>1)return i;throw p=!0,r}return function(o,u,m){if(c>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!p;){a||(l?l<3?(l>1&&(d.n=-1),f(l,s)):d.n=s:d.v=s);try{if(c=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(p=d.n<0)?s:n.call(r,d))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:p}}}(n,o,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(la(t={},r,function(){return this}),t),p=c.prototype=l.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,la(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=c,la(p,"constructor",c),la(c,"constructor",s),s.displayName="GeneratorFunction",la(c,o,"GeneratorFunction"),la(p
2),la(p,o,"Generator"),la(p,r,function(){return this}),la(p,"toString",function(){return"[object Generator]"}),(ia=function(){return{w:a,m:d}})()}function la(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}la=function(e,t,n,r){function a(t,n){la(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},la(e,t,n,r)}function sa(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function ca(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||ua(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ua(e,t){if(e){if("string"==typeof e)return pa(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pa(e,t):void 0}}function pa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var da="YOUR FAVOURITE SONG LYRICS WILL SPIRAL AROUND THE RECORD JUST LIKE THIS SEARCH FOR A SONG OR PASTE THE WORDS YOURSELF AND WATCH THEM WRAP THE GROOVES ".repeat(8);function fa(e,t,n,r,o){for(var a=[],i=Math.PI/120,l=o/(2*Math.PI),s=-Math.PI/2,c=0,u=n;u>r;){u=n-l*c;var p=s+c;a.push([e+u*Math.cos(p),t+u*Math.sin(p)]),c+=i}for(var d=0,f="",m=0;m<a.length;m++){var h=ca(a[m],2),g=h[0],x=h[1];if(0===m)f="M ".concat(g.toFixed(2)," ").concat(x.toFixed(2));else{var y=ca(a[m-1],2),v=y[0],b=y[1];d+=Math.hypot(g-v,x-b),f+=" L ".concat(g.toFixed(2)," ").concat(x.toFixed(2))}}return{d:f,len:d}}var ma=(0,e.forwardRef)(function(t,n){var r,o,a,i,l,s,c=t.config,u=t.widthPx,p=t.heightPx,d=t.variant,f=void 0===d?"classic":d,m=t.photoUrl,h=t.printWidthMm,g=t.printHeightMm,x=t.marginFrac,y=void 0===x?.03:x,v=t.freezeFit,b=void 0!==v&&v,Y=aa("photo"===f?m:void 0,2400,t.onLoadingChange),M=(0,e.useRef)(null),w=(0,e.useId)().replace(/[:]/g,""),S="vinyl-spiral-".concat(w),j="vinyl-labelclip-".concat(w),T="vinyl-photoclip-".concat(w);(0,e.useImperativeHandle)(n,function(){return{getSvgString:function(){var e,t;return null!==(e=null===(t=M.current)||void 0===t?void 0:t.outerHTML)&&void 0!==e?e:""}}});var N=p>0?p/u:1,W=1e3,I=Math.round(W*N),U="header"===f?.16*I:0,k=500,D=U+(I-U)/2,A=Math.min(W,I-U)/2*.985,C=.3*A,L=1.04*C,O=(c.lyrics||"").replace(/\s+/g," ").trim(),E=!!c.lyricsLoading&&!O,V=c.cursiveLyrics?O||da:(O||da).toUpperCase(),z=(0,e.useMemo)(function(){var e=Math.max(40,V.length),t=c.cursiveLyrics?.46:.5,n=1.16,r=.985*A,o=1.8*C,a=.055*A,i=n*a,l=e*t*a,s=Math.sqrt(L*L+l*i/Math.PI);if(s>r){for(var u=fa(k,D,s=r,L,i),p=0;p<5;p++){l=e*t*a;var d=u.len/Math.max(1,l);a*=Math.sqrt(d),u=fa(k,D,s,L,i=n*a)}return a=Math.max(.012*A,a),{spiralD:(u=fa(k,D,s,L,i=n*a)).d,fontSize:a,discR:Math.min(A,s+.55*i)}}s=Math.max(o,s);for(var f=0;f<3;f++){var m=fa(k,D,s,L,i),h=l/Math.max(1,m.len);s=Math.min(r,Math.max(o,Math.sqrt(L*L+(s*s-L*L)*h)))}return{spiralD:fa(k,D,s,L,i).d,fontSize:a,discR:Math.min(A,s+.55*i)}},[V,c.cursiveLyrics,k,D,L,A,C]),X=z.spiralD,P=z.fontSize,Z=z.discR,G=c.cursiveLyrics?"'Dancing Script','Brush Script MT',cursive":"'Oswald','Arial Narrow','Helvetica Neue',sans-serif",F=c.cursiveLyrics?"'Dancing Script'":"'Oswald'",B=.3*P,R=1.6*P,Q=(0,e.useRef)(null),H=(0,e.useRef)(null),K=(0,e.useRef)(null),J=ca((0,e.useState)(null),2),q=J[0],_=J[1],$=(0,e.useRef)(b);$.current=b;var ee=(0,e.useRef)(q);ee.current=q,(0,e.useLayoutEffect)(function(){var e,t="undefined"!=typeof navigator?navigator.userAgent:"",n=/iP(hone|ad|od)/.test(t),r=/^((?!chrome|chromium|android|crios|fxios|edgios|edg).)*safari/i.test(t),o=n||r?1.05:1,a=!1,i=function(){if(!(a||$.current&&ee.current)){var e=V.length,t=c.cursiveLyrics?0:.02*P,n="".concat(c.cursiveLyrics?600:500," ").concat(P,"px ").concat(G),r=0;try{var i=document.fonts,l=!i||i.check("".concat(c.cursiveLyrics?600:500," ").concat(P,"px ").concat(F)),s=K.current||(K.current=document.createElement("canvas").getContext("2d"));if(s&&l){s.font=n;var u=s.measureText(V).width;u&&isFinite(u)&&(r=u+t*e)}}catch(e){}if(!r){var p=H.current||Q.current;
2if(!p)return;try{r=p.getComputedTextLength()}catch(e){return}}if(r&&isFinite(r)){var d=r*o,f=1.16*P,m=Math.min(.985*A,A-1.05*P),h=d+B+R,g=Math.sqrt(L*L+h*f/Math.PI);g=Math.min(m,Math.max(1.8*C,g));var x=fa(k,D,g,L,f),y=Math.max(B,x.len-d-.5*P),v=Math.min(A,g+1*P);_(function(e){return e&&e.spiralD===x.d&&Math.abs(e.startOffset-y)<.5?e:{spiralD:x.d,discR:v,startOffset:y}})}}};i(),($r||($r=(e=Qr().m(function e(){var t,n,r,o,a,i,l,s,c,u;return Qr().w(function(e){for(;;)switch(e.n){case 0:if((t="undefined"!=typeof document?document.fonts:null)&&"function"==typeof globalThis.FontFace){e.n=1;break}return e.a(2);case 1:for(n=/@font-face\{font-family:'([^']+)';font-style:(\w+);font-weight:([^;]+);[^}]*?src:url\((data:[^)]+)\)/g,o=[];null!==(r=n.exec(_r));){a=Kr(r,5),i=a[1],l=a[2],s=a[3],c=a[4];try{u=new globalThis.FontFace(i,"url(".concat(c,")"),{style:l,weight:s,display:"block"}),t.add(u),o.push(u.load().catch(function(){}))}catch(e){}}return e.n=2,Promise.all(o).catch(function(){});case 2:return e.a(2)}},e)}),function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){qr(a,r,o,i,l,"next",e)}function l(e){qr(a,r,o,i,l,"throw",e)}i(void 0)})})(),$r)).then(i).catch(function(){});var l=document.fonts;if(l){l.ready.then(i).catch(function(){});try{l.load("500 20px Oswald").then(i).catch(function(){}),l.load('600 20px "Dancing Script"').then(i).catch(function(){})}catch(e){}}var s=[120,300,600,1e3,1600,2400].map(function(e){return window.setTimeout(i,e)});return function(){a=!0,s.forEach(clearTimeout)}},[X,P,k,D,L,A,C,V,c.cursiveLyrics]);var te=null!==(r=null==q?void 0:q.spiralD)&&void 0!==r?r:X,ne=null!==(o=null==q?void 0:q.discR)&&void 0!==o?o:Z,re=c.scanCode,oe=c.label.line1||c.label.line2?"#000000":c.labelTextColor,ae=ca((0,e.useState)(""),2),ie=ae[0],le=ae[1];(0,e.useEffect)(function(){var e,t=!1;return(e=ia().m(function e(){var n,r,o,a;return ia().w(function(e){for(;;)switch(e.p=e.n){case 0:if(null!=re&&re.enabled&&"none"!==re.type){e.n=1;break}return le(""),e.a(2);case 1:if(n="",e.p=2,"spotify"!==re.type){e.n=5;break}if(!(o=null===(r=c.metadata)||void 0===r?void 0:r.spotifyUri)){e.n=4;break}return e.n=3,Eo(o,oe);case 3:n=e.v;case 4:e.n=7;break;case 5:if(!(a=ea(re.type,c.metadata,void 0))){e.n=7;break}return e.n=6,Fo({data:a,color:oe,logo:"apple"===re.type?"apple":"deezer"===re.type?"deezer":"none"});case 6:n=e.v;case 7:e.n=9;break;case 8:e.p=8,e.v,n="";case 9:t||le(n);case 10:return e.a(2)}},e,null,[[2,8]])}),function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){sa(a,r,o,i,l,"next",e)}function l(e){sa(a,r,o,i,l,"throw",e)}i(void 0)})})(),function(){t=!0}},[null==re?void 0:re.enabled,null==re?void 0:re.type,oe,null===(a=c.metadata)||void 0===a?void 0:a.spotifyUri,null===(i=c.metadata)||void 0===i?void 0:i.appleMusicUrl,null===(l=c.metadata)||void 0===l?void 0:l.deezerUrl]);var se=c.label,ce="'Oswald','Arial Narrow','Helvetica Neue',sans-serif",ue=c.labelTextColor,pe="photo"===f,de="header"!==f,fe=.34*C,me=.135*C,he=.064*C,ge=.1*C,xe=D+.3*C,ye=(se.songTitle||"").toUpperCase(),ve=.135*C,be=.55*ye.length*ve,Ye=be>1.5*C?ve*(1.5*C)/be:ve,Me=.098*C,we=D+.62*C,Se=k-.66*C,je=k+.66*C,Te=function(e,t){return.55*e.length*t},Ne=(se.year||"").toUpperCase(),We=se.length?"LENGTH ".concat(se.length).toUpperCase():"",Ie=Math.max(Te(Ne,he),Te(We,he)),Ue=.08*C,ke=Math.max(.2*C,je-Se-Ie-Ue),De=function(e){var t=(e||"").toUpperCase().trim();if(!t)return{lines:[],fs:he};if(Te(t,he)<=ke)return{lines:[t],fs:he};var n=ke/Te(t,he)*he;if(n>=.75*he)return{lines:[t],fs:n};var r,o=.75*he,a=[],i="",l=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=ua(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}(t.split(/\s+/));try{for(l.s();!(r=l.n()).done;){var s=r.value,c=i?"".concat(i," ").concat(s):s;!i||Te(c,o)<=ke?i=c:(a.push(i),i=s)}}catch(e){l.e(e)}finally{l.f()}i&&a.push(i);var u,p=a.length<=2?a:[].concat(function(e){if(Array.isArray(e))return pa(e)}(u=a.slice(0,1))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(u)||ua(u)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[a.slice(1).join(" ")]),d=Math.max(1,Math.floor(ke/(.55*o)));return{lines:p.map(function(e){return Te(e,o)<=ke?e:"".concat(e.slice(0,d-1).trimEnd(),"…")}),fs:o}}(se.recordLabel),Ae=(se.country||"").toUpperCase(),Ce=Te(Ae,he),Le=Math.min(De.fs,
2Ce>ke?ke/Ce*he:he),Oe=ce,Ee="#161616",Ve=ye||"YOUR SONG",ze=.55*Ve.length*52,Xe=ze>900?46800/ze:52,Pe=.5*Xe;return(0,Zt.jsxs)("svg",{ref:M,width:"100%",height:"100%",viewBox:"0 0 ".concat(W," ").concat(I),preserveAspectRatio:"xMidYMid meet",style:{display:"block",overflow:"visible"},children:[(0,Zt.jsxs)("defs",{children:[(0,Zt.jsx)("style",{children:_r}),(0,Zt.jsx)("path",{id:S,d:te,fill:"none"}),(0,Zt.jsx)("clipPath",{id:j,children:(0,Zt.jsx)("circle",{cx:k,cy:D,r:C})}),(0,Zt.jsx)("clipPath",{id:T,children:(0,Zt.jsx)("circle",{cx:k,cy:D,r:.92*C})})]}),"header"===f&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)("text",{x:k,y:.56*U,fill:Ee,fontFamily:Oe,fontSize:Xe,fontWeight:700,textAnchor:"middle",style:{textTransform:"uppercase"},children:Ve}),se.artist?(0,Zt.jsx)("text",{x:k,y:.56*U+.55*Xe+Pe,fill:Ee,fontFamily:Oe,fontSize:Pe,fontWeight:400,textAnchor:"middle",letterSpacing:.08*Pe,style:{textTransform:"uppercase"},children:se.artist}):null]}),(0,Zt.jsx)("circle",{cx:k,cy:D,r:ne,fill:c.discColor}),(0,Zt.jsx)("text",{ref:H,x:-99999,y:-99999,fontFamily:G,fontSize:P,fontWeight:c.cursiveLyrics?600:500,letterSpacing:c.cursiveLyrics?0:.02*P,style:{visibility:"hidden"},"aria-hidden":"true","data-html2canvas-ignore":"true",children:V}),(0,Zt.jsxs)("text",{ref:Q,fill:c.discTextColor,fontFamily:G,fontSize:P,fontWeight:c.cursiveLyrics?600:500,letterSpacing:c.cursiveLyrics?0:.02*P,opacity:E?.45:1,style:{textTransform:c.cursiveLyrics?"none":"uppercase"},children:[E&&(0,Zt.jsx)("animate",{attributeName:"opacity",values:"0.25;0.65;0.25",dur:"1.3s",repeatCount:"indefinite"}),(0,Zt.jsx)("textPath",{href:"#".concat(S),xlinkHref:"#".concat(S),startOffset:null!==(s=null==q?void 0:q.startOffset)&&void 0!==s?s:B,children:V})]}),(0,Zt.jsxs)("g",{children:[(0,Zt.jsx)("circle",{cx:k,cy:D,r:C,fill:c.labelColor}),(0,Zt.jsx)("circle",{cx:k,cy:D,r:C,fill:"none",stroke:c.labelTextColor,strokeOpacity:.35,strokeWidth:.012*C}),pe?(0,Zt.jsxs)(Zt.Fragment,{children:[Y?(0,Zt.jsx)("image",{href:Y,xlinkHref:Y,x:k-.92*C,y:D-.92*C,width:1.84*C,height:1.84*C,preserveAspectRatio:"xMidYMid slice",clipPath:"url(#".concat(T,")"),crossOrigin:"anonymous"}):(0,Zt.jsx)("text",{x:k,y:D,fill:ue,fontFamily:ce,fontSize:.12*C,fontWeight:700,textAnchor:"middle",dominantBaseline:"middle",style:{textTransform:"uppercase"},children:"ADD A PHOTO"}),de&&ye?(0,Zt.jsxs)("g",{clipPath:"url(#".concat(j,")"),children:[(0,Zt.jsx)("rect",{x:k-C,y:D+.36*C,width:2*C,height:.56*C,fill:"#000000",fillOpacity:.55}),(0,Zt.jsx)("text",{x:k,y:D+.55*C,fill:"#FFFFFF",fontFamily:ce,fontSize:.8*Ye,fontWeight:700,textAnchor:"middle",style:{textTransform:"uppercase"},children:ye}),se.artist?(0,Zt.jsx)("text",{x:k,y:D+.55*C+1.1*Me,fill:"#FFFFFF",fontFamily:ce,fontSize:.85*Me,fontWeight:400,textAnchor:"middle",style:{textTransform:"uppercase"},children:se.artist}):null]}):null,(0,Zt.jsx)("circle",{cx:k,cy:D,r:.05*C,fill:"#111111"})]}):(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)("g",{clipPath:"url(#".concat(j,")"),children:(0,Zt.jsx)("rect",{x:k-C,y:D-fe/2,width:2*C,height:fe,fill:c.labelTextColor})}),se.line1?(0,Zt.jsx)("text",{x:k,y:D-.45*C,fill:ue,fontFamily:ce,fontSize:me,fontWeight:700,textAnchor:"middle",style:{textTransform:"uppercase"},children:se.line1}
2):null,se.line2?(0,Zt.jsx)("text",{x:k,y:D-.45*C+1.15*me,fill:ue,fontFamily:ce,fontSize:me,fontWeight:700,textAnchor:"middle",style:{textTransform:"uppercase"},children:se.line2}):null,(0,Zt.jsx)("text",{x:k-.62*C,y:D+.35*ge,fill:c.labelColor,fontFamily:ce,fontSize:ge,fontWeight:700,textAnchor:"start",style:{textTransform:"uppercase"},children:"STEREO"}),(0,Zt.jsx)("text",{x:k+.62*C,y:D+.35*ge,fill:c.labelColor,fontFamily:ce,fontSize:ge,fontWeight:700,textAnchor:"end",style:{textTransform:"uppercase"},children:se.sideText||"SIDE A"}),(0,Zt.jsx)("circle",{cx:k,cy:D,r:.06*C,fill:c.labelColor}),se.recordLabel||se.country?(0,Zt.jsxs)(Zt.Fragment,{children:[De.lines.map(function(e,t){return(0,Zt.jsx)("text",{x:Se,y:xe+t*De.fs*1.2,fill:ue,fontFamily:ce,fontSize:De.fs,fontWeight:600,textAnchor:"start",style:{textTransform:"uppercase"},children:e},t)}),Ae?(0,Zt.jsx)("text",{x:Se,y:xe+De.lines.length*De.fs*1.2,fill:ue,fontFamily:ce,fontSize:Le,fontWeight:400,textAnchor:"start",style:{textTransform:"uppercase"},children:Ae}):null]}):null,se.year||se.length?(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)("text",{x:je,y:xe,fill:ue,fontFamily:ce,fontSize:he,fontWeight:600,textAnchor:"end",style:{textTransform:"uppercase"},children:se.year}),(0,Zt.jsx)("text",{x:je,y:xe+1.2*he,fill:ue,fontFamily:ce,fontSize:he,fontWeight:400,textAnchor:"end",style:{textTransform:"uppercase"},children:se.length?"LENGTH ".concat(se.length):""})]}):null,de&&ye?(0,Zt.jsx)("text",{x:k,y:we,fill:ue,fontFamily:ce,fontSize:Ye,fontWeight:700,textAnchor:"middle",style:{textTransform:"uppercase"},children:ye}):null,de&&se.artist?(0,Zt.jsx)("text",{x:k,y:we+.55*Ye+Me,fill:ue,fontFamily:ce,fontSize:Me,fontWeight:400,textAnchor:"middle",style:{textTransform:"uppercase"},children:se.artist}):null]})]}),ie&&function(){var e="spotify"===re.type;if(!se.line1&&!se.line2){var t=e?1.3*C:.55*C,n=e?.33*C:.55*C,r=D-.52*C;return(0,Zt.jsx)("svg",{x:k-t/2,y:r-n/2,width:t,height:n,overflow:"visible",dangerouslySetInnerHTML:{__html:ie}})}var o=e?220:140,a=e?58:140,i=(h||0)*(1-2*y),l=(g||0)*(1-2*y),s=(h||0)*y,c=(g||0)*y,u=i>0?Math.max(0,20-s)/i*W:20,p=l>0?Math.max(0,20-c)/l*I:.02*I,d=W-u,f=I-p;return(0,Zt.jsx)("svg",{x:d-o,y:f-a,width:o,height:a,overflow:"visible",dangerouslySetInnerHTML:{__html:ie}})}()]})});ma.displayName="VinylCanvas";const ha=ma;function ga(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return xa(c,"_invoke",function(n,r,o){var a,l,s,c=0,u=o||[],p=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,d.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!p&&c&&!o&&t<u.length;t++){var o,a=u[t],f=d.p,m=a[2];n>3?(o=m===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,d.v=r,d.n=a[1]):f<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,d.n=m,l=0))}if(o||n>1)return i;throw p=!0,r}return function(o,u,m){if(c>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!p;){a||(l?l<3?(l>1&&(d.n=-1),f(l,s)):d.n=s:d.v=s);try{if(c=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(p=d.n<0)?s:n.call(r,d))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:p}}}(n,o,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(xa(t={},r,function(){return this}),t),p=c.prototype=l.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,xa(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=c,xa(p,"constructor",c),xa(c,"constructor",s),s.displayName="GeneratorFunction",xa(c,o,"GeneratorFunction"),xa(p),xa(p,o,"Generator"),xa(p,r,function(){return this}),xa(p,"toString",function(){return"[object Generator]"}),(ga=function(){return{w:a,m:d}})()}function xa(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}
2xa=function(e,t,n,r){function a(t,n){xa(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},xa(e,t,n,r)}function ya(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function va(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||ba(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ba(e,t){if(e){if("string"==typeof e)return Ya(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ya(e,t):void 0}}function Ya(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ma="Your favourite song lyrics will print here in a clean justified block beneath the album cover. Search for a song to pull the artwork and details, then auto-fill the lyrics or paste your own — every word, exactly how you want it remembered.";var wa=1.14;function Sa(e,t,n,r){for(var o=Math.max(2,.006*t),a=function(n){return function(e,t){var n,r=[],o="",a=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=ba(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}(e);try{for(a.s();!(n=a.n()).done;){var i=n.value;o?o.length+1+i.length>t?(r.push(o),o=i):o+=" "+i:o=i}}catch(e){a.e(e)}finally{a.f()}return o&&r.push(o),r}(e,Math.max(6,Math.floor(t/(r*n))))},i=.06*t,l=a(i),s=0;s<22;s++){var c=l.length*i*wa;if(c<=n||i<=o)break;l=a(i=Math.max(o,i*Math.min(.95,Math.sqrt(n/c))))}for(var u=0;u<2;u++){var p=l.length*i*wa;if(p<=n||i<=o)break;l=a(i=Math.max(o,i*(n/p)))}return{lines:l,fs:i}}var ja=(0,e.forwardRef)(function(t,n){var r,o,a,i,l,s=t.config,c=t.widthPx,u=t.heightPx,p=t.coverUrl,d=t.printWidthMm,f=t.printHeightMm,m=t.marginFrac,h=void 0===m?.03:m,g=aa(p,4e3,t.onLoadingChange),x=(0,e.useRef)(null),y=(0,e.useId)().replace(/[:]/g,""),v="album-coverclip-".concat(y);(0,e.useImperativeHandle)(n,function(){return{getSvgString:function(){var e,t;return null!==(e=null===(t=x.current)||void 0===t?void 0:t.outerHTML)&&void 0!==e?e:""}}});var b=u>0?u/c:1,Y=1e3,M=Math.round(Y*b),w=500,S=s.label,j="'Oswald','Arial Narrow','Helvetica Neue',sans-serif",T=s.cursiveLyrics?"'Dancing Script','Brush Script MT',cursive":"'Oswald','Arial Narrow','Helvetica Neue',sans-serif",N=s.textColor,W=.085*M+33.2,I=Math.min(830,.46*M),U=W+16.6,k=U+I,D=(S.songTitle||"").toUpperCase(),A=Math.max(1,.55*D.length*43.16),C=A>830?35822.799999999996/A:43.16,L=k+1.25*C,O=L+.7*C,E=Math.min(415,Math.max(149.4,.3*D.length*C)),V=[S.recordLabel,S.year,S.length&&"LENGTH ".concat(S.length)].filter(Boolean).join("   ·   ").toUpperCase(),z=O+35.856,X=(V?z:O)+(V?27.888:.9*C),P=.93*M,Z=Math.max(10,P-X),G=.92*I,F=w-G/2,B=(s.lyrics||"").replace(/\s+/g," ").trim(),R=!!s.lyricsLoading&&!B,Q=s.cursiveLyrics?B||Ma:(B||Ma).toUpperCase(),H=(0,e.useMemo)(function(){return Q.split(" ").filter(Boolean)},[Q]),K=(0,e.useMemo)(function(){return Sa(H,G,Z,s.cursiveLyrics?.42:.52)},[H,G,Z,s.cursiveLyrics]),J=(0,e.useRef)(null),q=va((0,e.useState)(null),2),_=q[0],$=q[1];(0,e.useLayoutEffect)(function(){var e=!1,t=function(){if(!e){var t=J.current;if(t){var n=0;try{n=t.getComputedTextLength()}catch(e){return}if(n&&isFinite(n)){var r=Math.max(1,Q.length),o=Sa(H,G,Z,n/r/40),a=o.lines,i=o.fs;$(function(e){return e&&e.fs===i&&e.lines.length===a.length&&e.lines.join("\n")===a.join("\n")?e:{lines:a,fs:i}})}}}};t();var n=document.fonts;
2if(n){n.ready.then(t).catch(function(){});try{n.load("300 20px Oswald").then(t).catch(function(){}),n.load('600 20px "Dancing Script"').then(t).catch(function(){})}catch(e){}}var r=[120,300,600,1e3,1600,2400].map(function(e){return window.setTimeout(t,e)});return function(){e=!0,r.forEach(clearTimeout)}},[H,Q,G,Z,s.cursiveLyrics,K]);var ee,te,ne,re,oe,ae,ie,le,se,ce,ue,pe=null!==(r=null==_?void 0:_.lines)&&void 0!==r?r:K.lines,de=null!==(o=null==_?void 0:_.fs)&&void 0!==o?o:K.fs,fe=de*wa,me=s.scanCode,he=N,ge=va((0,e.useState)(""),2),xe=ge[0],ye=ge[1];return(0,e.useEffect)(function(){var e,t=!1;return(e=ga().m(function e(){var n,r,o,a;return ga().w(function(e){for(;;)switch(e.p=e.n){case 0:if(null!=me&&me.enabled&&"none"!==me.type){e.n=1;break}return ye(""),e.a(2);case 1:if(n="",e.p=2,"spotify"!==me.type){e.n=5;break}if(!(o=null===(r=s.metadata)||void 0===r?void 0:r.spotifyUri)){e.n=4;break}return e.n=3,Eo(o,he);case 3:n=e.v;case 4:e.n=7;break;case 5:if(!(a=ea(me.type,s.metadata,void 0))){e.n=7;break}return e.n=6,Fo({data:a,color:he,logo:"apple"===me.type?"apple":"deezer"===me.type?"deezer":"none"});case 6:n=e.v;case 7:e.n=9;break;case 8:e.p=8,e.v,n="";case 9:t||ye(n);case 10:return e.a(2)}},e,null,[[2,8]])}),function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){ya(a,r,o,i,l,"next",e)}function l(e){ya(a,r,o,i,l,"throw",e)}i(void 0)})})(),function(){t=!0}},[null==me?void 0:me.enabled,null==me?void 0:me.type,he,null===(a=s.metadata)||void 0===a?void 0:a.spotifyUri,null===(i=s.metadata)||void 0===i?void 0:i.appleMusicUrl,null===(l=s.metadata)||void 0===l?void 0:l.deezerUrl]),(0,Zt.jsxs)("svg",{ref:x,width:"100%",height:"100%",viewBox:"0 0 ".concat(Y," ").concat(M),preserveAspectRatio:"xMidYMid meet",style:{display:"block",overflow:"visible",backgroundColor:s.bgColor},children:[(0,Zt.jsxs)("defs",{children:[(0,Zt.jsx)("style",{children:_r}),(0,Zt.jsx)("clipPath",{id:v,children:(0,Zt.jsx)("rect",{x:w-I/2,y:U,width:I,height:I})})]}),(0,Zt.jsx)("rect",{x:0,y:0,width:Y,height:M,fill:s.bgColor}),S.artist?(0,Zt.jsx)("text",{x:w-I/2,y:W,fill:N,fontFamily:j,fontSize:33.2,fontWeight:600,textAnchor:"start",letterSpacing:1.992,style:{textTransform:"uppercase"},children:S.artist}):null,g?(0,Zt.jsx)("image",{href:g,xlinkHref:g,x:w-I/2,y:U,width:I,height:I,preserveAspectRatio:"xMidYMid slice",clipPath:"url(#".concat(v,")"),crossOrigin:"anonymous"}):(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)("rect",{x:w-I/2,y:U,width:I,height:I,fill:"none",stroke:N,strokeOpacity:.3,strokeWidth:3}),(0,Zt.jsx)("text",{x:w,y:U+I/2,fill:N,fillOpacity:.45,fontFamily:j,fontSize:37.35,fontWeight:600,textAnchor:"middle",dominantBaseline:"middle",style:{textTransform:"uppercase"},children:"ALBUM COVER"})]}),D?(0,Zt.jsx)("text",{x:w,y:L,fill:N,fontFamily:j,fontSize:C,fontWeight:700,textAnchor:"middle",style:{textTransform:"uppercase"},children:D}):null,(0,Zt.jsx)("rect",{x:w-E/2,y:O,width:E,height:Math.max(1.5,1.8),fill:N}),V?(0,Zt.jsx)("text",{x:w,y:z,fill:N,fillOpacity:.85,fontFamily:j,fontSize:19.92,fontWeight:400,textAnchor:"middle",letterSpacing:.04*19.92,style:{textTransform:"uppercase"},children:V}):null,(0,Zt.jsx)("text",{ref:J,x:-99999,y:-99999,fontFamily:T,fontSize:40,fontWeight:s.cursiveLyrics?600:300,style:{visibility:"hidden"},"aria-hidden":"true","data-html2canvas-ignore":"true",children:Q}),(0,Zt.jsxs)("g",{opacity:R?.4:1,children:[R&&(0,Zt.jsx)("animate",{attributeName:"opacity",values:"0.25;0.6;0.25",dur:"1.3s",repeatCount:"indefinite"}),pe.map(function(e,t){var n=t===pe.length-1,r=X+de+t*fe;return n?(0,Zt.jsx)("text",{x:w,y:r,fill:N,fontFamily:T,fontSize:de,fontWeight:s.cursiveLyrics?600:300,textAnchor:"middle",style:{textTransform:s.cursiveLyrics?"none":"uppercase"},children:e},t):(0,Zt.jsx)("text",{x:F,y:r,fill:N,fontFamily:T,fontSize:de,fontWeight:s.cursiveLyrics?600:300,textAnchor:"start",textLength:G,lengthAdjust:"spacing",style:{textTransform:s.cursiveLyrics?"none":"uppercase"},children:e},t)})]}),xe&&(ee="spotify"===me.type,te=ee?220:130,ne=ee?58:130,re=(d||0)*(1-2*h),oe=(f||0)*(1-2*h),ae=(d||0)*h,ie=(f||0)*h,le=re>0?Math.max(0,20-ae)/re*Y:20,se=oe>0?Math.max(0,20-ie)/oe*M:.02*M,ce=Y-le,ue=M-se,(0,Zt.jsx)("svg",{x:ce-te,y:ue-ne,width:te,height:ne,overflow:"visible",dangerouslySetInnerHTML:{__html:xe}}))]})});ja.displayName="AlbumCanvas";const Ta=ja;function Na(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Wa=!1,Ia=function(e,t){var n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4,a=function(){var e="undefined"!=typeof window?window.proj4:null;if(!e)return null;if(!Wa)try{e.defs("EPSG:27700",Ve),Wa=!0}catch(e){Wa=!0}return e}();if(!a)return null;try{var i=(n=a("EPSG:4326","EPSG:27700",[t,e]),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Na(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Na(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4,r=Math.floor(e/1e5),o=Math.floor(t/1e5);if(r<0||r>6||o<0||o>12)return null;var a=19-o-(19-o)%5+Math.floor((r+10)/5),i=5*(19-o)%25+r%5;a>7&&a++,i>7&&i++;var l=String.fromCharCode(a+"A".charCodeAt(0),i+"A".charCodeAt(0)),s=Math.pow(10,5-n),c=Math.floor(e%1e5/s),u=Math.floor(t%1e5/s),p=function(e){return e.toString().padStart(n,"0")};return"".concat(l," ").concat(p(c)," ").concat(p(u))}(i[0],i[1],o)}catch(e){return null}};function Ua(e){return Ua="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ua(e)}function ka(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Da(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ka(Object(n),!0).forEach(function(t){Aa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ka(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Aa(e,t,n){return(t=function(e){var t=function(e){if("object"!=Ua(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ua(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ua(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ca(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Xa(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function La(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return Oa(c,"_invoke",function(n,r,o){var a,l,s,c=0,u=o||[],p=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,d.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!p&&c&&!o&&t<u.length;t++){var o,a=u[t],f=d.p,m=a[2];n>3?(o=m===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,d.v=r,d.n=a[1]):f<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,d.n=m,l=0))}if(o||n>1)return i;throw p=!0,r}return function(o,u,m){if(c>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!p;){a||(l?l<3?(l>1&&(d.n=-1),f(l,s)):d.n=s:d.v=s);try{if(c=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(p=d.n<0)?s:n.call(r,d))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:p}}}(n,o,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Oa(t={},r,function(){return this}),t),p=c.prototype=l.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Oa(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=c,Oa(p,"constructor",c),Oa(c,"constructor",s),s.displayName="GeneratorFunction",Oa(c,o,"GeneratorFunction"),Oa(p),Oa(p,o,"Generator"),Oa(p,r,function(){return this}),Oa(p,"toString",function(){return"[object Generator]"}),(La=function(){return{w:a,m:d}})()}function Oa(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Oa=function(e,t,n,r){function a(t,n){Oa(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Oa(e,t,n,r)}function Ea(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Va(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){Ea(a,r,o,i,l,"next",e)}function l(e){Ea(a,r,o,i,l,"throw",e)}i(void 0)})}}function za(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||Xa(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xa(e,t){if(e){if("string"==typeof e)return Pa(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pa(e,t):void 0}}function Pa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Za=!1,Ga=function(e){if(!e||"string"!=typeof e.tagName||-1===e.tagName.indexOf("-"))return!1;var t="undefined"!=typeof document?document.getElementById("tpe-design-studio"):null;return!!t&&!t.contains(e)&&!e.contains(t)},Fa=function(e){try{var t=e.createElement("style");t.textContent="*,*::before,*::after{transition:none!important;animation:none!important;transition-duration:0s!important;animation-duration:0s!important;transition-delay:0s!important;animation-delay:0s!important}",(e.head||e.documentElement).appendChild(t),e.querySelectorAll("svg").forEach(function(e){try{var t;null===(t=e.pauseAnimations)||void 0===t||t.call(e)}catch(e){}})}catch(e){}},Ba=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1.2,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1.2,n=20240522,r=function(e,t,r){return(.15+.85*function(e,t){return.45*(.5*Math.sin(6.3*e+t)+.5)+.3*(.5*Math.sin(23*e+2.1*t)+.5)+(n=1103515245*n+12345&2147483647)/2147483647*.25}(e,t))*r},o=[],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:90,i=function(e,t){return"".concat(e.toFixed(2),"% ").concat(t.toFixed(2),"%")},l=0;l<=a;l++){var s=l/a;o.push(i(100*s,r(s,0,t)))}for(var c=1;c<=a;c++){var u=c/a;o.push(i(100-r(u,11.7,e),100*u))}for(var p=1;p<=a;p++){var d=p/a;o.push(i(100-100*d,100-r(d,23.4,t)))}for(var f=1;f<a;f++){var m=f/a;o.push(i(r(m,35.1,e),100-100*m))}return"polygon(".concat(o.join(", "),")")},Ra=function(e,t){var n=Math.abs(e),r=Math.floor(n),o=60*(n-r),a=Math.floor(o),i=Math.floor(60*(o-a)),l=t?e>=0?"N":"S":e>=0?"E":"W";return"".concat(r,"° ").concat(a,"' ").concat(i,'" ').concat(l)},Qa=function(){var e,t="undefined"!=typeof window&&(null===(e=window.SHOPIFY_CONFIG)||void 0===e?void 0:e.brandName)||"";return String(t).trim().toUpperCase()||"THE POSTER EDIT"},Ha=function(e,t){var n=document.createElement("canvas");n.width=e.width,n.height=e.height;var r=n.getContext("2d");if(!r)return e.toDataURL("image/jpeg",.9);r.drawImage(e,0,0);var o=Math.max(20,Math.floor(.04*n.width));return r.font="900 ".concat(o,"px sans-serif"),r.textAlign="center",r.textBaseline="middle",[{x:.5,y:.5},{x:.25,y:.25},{x:.75,y:.25},{x:.25,y:.75},{x:.75,y:.75}].forEach(function(e){var a=n.width*e.x,i=n.height*e.y;r.save(),r.translate(a,i),r.rotate(-45*Math.PI/180),r.lineWidth=.05*o,r.strokeStyle="rgba(0, 0, 0, 0.3)",r.strokeText(t,0,0),r.fillStyle="rgba(255, 255, 255, 0.5)",r.fillText(t,0,0),r.restore()}),n.toDataURL("image/jpeg",.9)},Ka=(0,e.forwardRef)(function(t,n){var r,o,a,i,l,s,c,u,p,d,f,m=t.size,h=t.frame,g=t.layout,x=t.design,v=t.images,b=t.imagesHighRes,Y=t.onSlotClick,M=t.activeSlotId,w=t.onTextOverflow,S=t.onMaxFontSizeChange,j=(t.scale,t.sizingMode),T=void 0===j?"contain":j,N=t.onImageSwap,W=t.onImageAssignToSlot,I=t.productType,U=t.guideStep,k=t.onStarMapDataChange,D=t.onMapLoading,A=t.onMapCaptureProgress,C=t.isMapLoading,L=t.suppressGlobalLoader,O=void 0!==L&&L,E=t.captureProgress,V=void 0===E?null:E,z=t.isAdmin,X=void 0!==z&&z,P=t.onMarkerDrag,Z=t.onMapZoomChange,G=t.onMapBoundsChange,F=t.onMapUnavailable,B=t.onMapRendered,R=t.onRoutePatch,Q=t.onSetRouteUiMode,H=t.onOsMapViewChange,K=t.onOsMapScaleChange,J=t.onCustomRouteUpdate,q=t.onAppendCustomRoutePoint,_=t.repositioningMarker,$=t.onRepositionMove,ee=t.onCommitReposition,te=t.onCancelReposition,ne=(0,e.useRef)(null),re=(0,e.useRef)(null),oe=(0,e.useRef)(null),ae=(0,e.useRef)(null),ie=(0,e.useRef)(null),le=(0,e.useRef)(null),se=(0,e.useRef)({}),ce=(0,e.useRef)({}),ue=(0,e.useRef)({}),pe=(0,e.useRef)({}),de=(0,e.useRef)({}),fe=(0,e.useRef)({}),me=(0,e.useRef)({}),he=(0,e.useRef)({}),ge=za((0,e.useState)(void 0),2),xe=ge[0],ye=ge[1],ve=za((0,e.useState)(void 0),2),be=ve[0],Ye=ve[1],Me="oldmap"===I?x.oldMaps[1]:void 0,we=!(null==g||!g.mapFrameStyle||!Me),Se=we?"".concat(Me.styleId,"|").concat(Me.lat.toFixed(3),"|").concat(Me.lng.toFixed(3)):"";(0,e.useEffect)(function(){if(!we||!Me)return ye(void 0),void Ye(void 0);var e=De.find(function(e){return e.id===Me.styleId});ye(null!=e&&e.name?"Ordnance Survey  ·  ".concat(e.name):"Ordnance Survey"),Ye(void 0);var t=!1,n=setTimeout(Va(La().m(function e(){var n,r,o,a;return La().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,Ct(Me.lat,Me.lng,Me.styleId);case 1:if(n=e.v,!t&&n){e.n=2;break}return e.a(2);case 2:r=function(e){return 0===e.length?"":1===e.length?"Sheet ".concat(e[0]):e.length<=3?"Sheets ".concat(e.join(", ")):"Sheets ".concat(e.slice(0,3).join(", ")," & ").concat(e.length-3," more")},o=n.minYear?n.maxYear&&n.maxYear!==n.minYear?"Published ".concat(n.minYear,"–").concat(n.maxYear):"Published ".concat(n.minYear):"",(a=[r(n.sheets),o].filter(
2Boolean).join("  ·  "))&&Ye(a);case 3:return e.a(2)}},e)})),400);return function(){t=!0,clearTimeout(n)}},[Se,we]);var je=function(e,t,n,r){if(t&&"number"==typeof t.lat){var o=Math.cos(t.lat*Math.PI/180);if("osmap"===e){var a,i=Math.max(0,Math.min(ze.length-1,Math.round(null!==(a=t.zoom)&&void 0!==a?a:6)));return ze[i]}if("map"===e)return 156543.03392*o/Math.pow(2,t.zoom||12);if("oldmap"===e){if(n<=0)return;if(t.scale)return Be(r,100,t.scale)/n;var l=De.find(function(e){return e.id===t.styleId})||De[0],s=Math.max.apply(Math,function(e){if(Array.isArray(e))return Pa(e)}(p=l.zoom)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(p)||Xa(p)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=156543.03392*o/Math.pow(2,s),u="undefined"!=typeof window&&window.innerWidth<600?.4:.8;return c*Math.min(Math.round(300*r*u),4500)/n}}var p},We=function(e,t,n){if(e&&"number"==typeof e.lat){var r=function(){var e=window.proj4;return e?(Za||(e.defs("EPSG:27700",Ve),Za=!0),e):null}();if(r)try{var o,a=za(r("EPSG:4326","EPSG:27700",[e.lng,e.lat]),2),i=a[0],l=a[1];if(e.scale&&n>0)return{centerE:i,centerN:l,res:Re(m.widthIn,t,e.scale)/n};var s=Math.max(0,Math.min(ze.length-1,Math.round(null!==(o=e.zoom)&&void 0!==o?o:6)));return{centerE:i,centerN:l,res:ze[s]}}catch(e){return}}},ke=(0,e.useRef)(0),Ae=za((0,e.useState)(null),2),Ce=Ae[0],Le=Ae[1],Oe=za((0,e.useState)({}),2),Ee=Oe[0],Xe=Oe[1],Ze=za((0,e.useState)(null),2),Qe=Ze[0],He=Ze[1],Ke=za((0,e.useState)(null),2),Je=Ke[0],qe=Ke[1],_e=za((0,e.useState)(null),2),$e=_e[0],et=_e[1],tt=za((0,e.useState)(!1),2),nt=tt[0],rt=tt[1],ot=za((0,e.useState)(!1),2),at=ot[0],it=ot[1],lt=za((0,e.useState)(!1),2),st=lt[0],ct=lt[1],ut=za((0,e.useState)(null),2),pt=ut[0],dt=ut[1],ft=za((0,e.useState)(300),2),mt=ft[0],ht=ft[1],gt=za((0,e.useState)("idle"),2),xt=gt[0],yt=gt[1],vt=za((0,e.useState)(!1),2),bt=vt[0],Yt=vt[1];(0,e.useEffect)(function(){"starmap"!==I&&"oldmap"!==I&&"osmap"!==I&&"map"!==I&&"soundwave"!==I&&"vinyl"!==I&&"album"!==I&&Yt(!1)},[I]);var Mt=za((0,e.useState)(function(){return Math.random().toString(36).substring(7)}),1)[0],wt=za((0,e.useState)(1),2),St=wt[0],jt=wt[1],Tt=za((0,e.useState)({x:0,y:0}),2),Nt=Tt[0],Wt=Tt[1],It=za((0,e.useState)(!1),2),Ut=It[0],kt=It[1],Dt=za((0,e.useState)({x:0,y:0}),2),At=Dt[0],Lt=Dt[1],Ot=(0,e.useRef)(null),Et=(0,e.useRef)(1);(0,e.useEffect)(function(){$e||nt?(document.body.style.overflow="hidden",document.body.style.touchAction="none"):(document.body.style.overflow="",document.body.style.touchAction="")},[$e,nt]),(0,e.useEffect)(function(){if("idle"!==xt){if("init"===xt&&(it(!0),yt("waiting-for-loading")),"waiting-for-loading"===xt){if(!C){var e=setTimeout(function(){"waiting-for-loading"===xt&&yt("ready")},2e3);return function(){return clearTimeout(e)}}yt("loading")}if("loading"===xt&&(C||yt("ready")),"ready"===xt){var t=function(){var e=Va(La().m(function e(){var t,n,r,o,a,i,l,s,c,u,p,d,f,h,x,y,v,b,Y,M,w,S,j,T,N,W,U,k,D,A;return La().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t=null,"starmap"!==I){e.n=1;break}t=null===(n=se.current[pt])||void 0===n?void 0:n.getCanvas(),e.n=13;break;case 1:if("oldmap"!==I){e.n=2;break}t=null===(r=ce.current[pt])||void 0===r?void 0:r.getCanvas(),e.n=13;break;case 2:if("osmap"!==I){e.n=5;break}return l=g.slots.find(function(e){return e.id===pt})||g.slots[0],s=m.widthIn*((null!==(o=null==l?void 0:l.w)&&void 0!==o?o:100)/100),c=m.heightIn*((null!==(a=null==l?void 0:l.h)&&void 0!==a?a:100)/100),u=c/s,p=Math.round(2400*u),e.n=3,null===(i=ue.current[pt])||void 0===i?void 0:i.captureTiled(2400,p);case 3:if(k=e.v){e.n=4;break}k=null;case 4:t=k,e.n=13;break;case 5:if("map"!==I){e.n=13;break}return x=g.slots.find(function(e){return e.id===pt})||g.slots[0],y=m.widthIn*((null!==(d=null==x?void 0:x.w)&&void 0!==d?d:100)/100),v=m.heightIn*((null!==(f=null==x?void 0:x.h)&&void 0!==f?f:100)/100),b=v/y,Y=2400,M=Math.round(Y*b),e.n=6,null===(h=pe.current[pt])||void 0===h?void 0:h.captureTiled(Y,M,{tilePx:2048});case 6:if(D=e.v){e.n=7;break}D=null;case 7:if(!(w=D)){e.n=12;break}if(e.p=8,!(S=he.current[pt])||!window.html2canvas){e.n=10;break}return j=S.getBoundingClientRect(),T=Y/j.width,e.n=9,window.html2canvas(S,{useCORS:!0,scale:T,backgroundColor:null,logging:!1,width:j.width,height:j.height,ignoreElements:function(e){if(Ga(e))return!0;
2if("CANVAS"===e.tagName)return!0;var t="string"==typeof e.className?e.className:"";return-1!==t.indexOf("mapboxgl-ctrl")||-1!==t.indexOf("mapboxgl-control-container")},onclone:function(e){return Fa(e)}});case 9:N=e.v,(W=w.getContext("2d"))&&(W.imageSmoothingEnabled=!0,W.imageSmoothingQuality="high",W.drawImage(N,0,0,w.width,w.height));case 10:e.n=12;break;case 11:e.p=11,A=e.v,console.warn("Fullscreen marker overlay failed",A);case 12:t=w;case 13:if(t)try{U=Ha(t,Qa()),et(U),jt(1),Wt({x:0,y:0})}catch(e){console.error("Fullscreen processing failed",e)}rt(!1),it(!1),dt(null),yt("idle");case 14:return e.a(2)}},e,null,[[8,11]])}));return function(){return e.apply(this,arguments)}}(),n=setTimeout(function(){t()},150);return function(){return clearTimeout(n)}}}},[xt,C,pt,I]),(0,e.useImperativeHandle)(n,function(){return{capturePreview:(e=Va(La().m(function e(){var t,n,r,o,a,i,l,s,c,u,p,d,f,h,y,v,b,Y,M,w,S,j,T,N,W,U,k,D,C,L,O,E,V,z,X,P,Z,G,F,B,R=arguments;return La().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!(t=R.length>0&&void 0!==R[0]?R[0]:{quality:"high"}).widthPx){e.n=1;break}return n=t.widthPx/m.widthIn,ht(n),e.n=1,new Promise(function(e){return setTimeout(e,50)});case 1:if(r=t.printOnly?ae.current:ne.current,!("map"===I&&t.widthPx&&r&&window.html2canvas)){e.n=18;break}if(a=r.offsetWidth,i=r.offsetHeight,l=t.widthPx,s=null!==(o=t.heightPx)&&void 0!==o?o:Math.round(l*(i/a)),c=l/a,p=(u=r).getBoundingClientRect(),d=g.slots.map(function(e){var t=he.current[e.id];if(!t||!pe.current[e.id])return null;var n=t.getBoundingClientRect();return{slotId:e.id,dx:Math.round((n.left-p.left)*c),dy:Math.round((n.top-p.top)*c),dw:Math.round(n.width*c),dh:Math.round(n.height*c)}}).filter(Boolean),e.p=2,(f=document.createElement("canvas")).width=l,f.height=s,h=f.getContext("2d")){e.n=3;break}throw new Error("No 2D context for print canvas");case 3:console.warn("[transparency] mapTransparentBg=",Bn,"slotConfigs=",g.slots.map(function(e){var t;return{id:e.id,t:null===(t=x.maps)||void 0===t||null===(t=t[e.id])||void 0===t?void 0:t.transparentBackground}})),y=getComputedStyle(u).backgroundColor,!Bn&&y&&"rgba(0, 0, 0, 0)"!==y&&"transparent"!==y&&(h.fillStyle=y,h.fillRect(0,0,f.width,f.height)),v=ae.current,b=null,v&&(Y=u.getBoundingClientRect(),M=v.getBoundingClientRect(),b={x:Math.round((M.left-Y.left)*c),y:Math.round((M.top-Y.top)*c),w:Math.round(M.width*c),h:Math.round(M.height*c)},Jt&&!Bn&&(h.save(),h.shadowColor="rgba(0,0,0,0.25)",h.shadowBlur=Math.max(6,10*c),h.shadowOffsetX=0,h.shadowOffsetY=0,h.fillStyle="rgba(0,0,0,0.001)",h.fillRect(b.x,b.y,b.w,b.h),h.restore()),w=getComputedStyle(v).backgroundColor,!Bn&&w&&"rgba(0, 0, 0, 0)"!==w&&"transparent"!==w&&(h.fillStyle=w,h.fillRect(b.x,b.y,b.w,b.h))),h.save(),b&&(h.beginPath(),h.rect(b.x,b.y,b.w,b.h),h.clip()),S=Ca(d),e.p=4,S.s();case 5:if((j=S.n()).done){e.n=8;break}return N=j.value,e.n=6,null===(T=pe.current[N.slotId])||void 0===T?void 0:T.captureTiled(N.dw,N.dh,{tilePx:2048,onProgress:function(e,t){return null==A?void 0:A(e,t)}});case 6:(W=e.v)&&(h.imageSmoothingEnabled=!0,h.imageSmoothingQuality="high",h.drawImage(W,N.dx,N.dy,N.dw,N.dh));case 7:e.n=5;break;case 8:e.n=10;break;case 9:e.p=9,B=e.v,S.e(B);case 10:return e.p=10,S.f(),e.f(10);case 11:return h.restore(),U=function(e){if(!e||!e.classList)return!1;if(e.classList.contains("tpe-ignore-capture"))return!0;if("CANVAS"===e.tagName)return!0;var t="string"==typeof e.className?e.className:"";return-1!==t.indexOf("mapboxgl-ctrl")||-1!==t.indexOf("mapboxgl-control-container")},ct(!0),e.n=12,new Promise(function(e){return requestAnimationFrame(function(){return e(null)})});case 12:return k=u.style.backgroundColor,u.style.backgroundColor="transparent",D=ae.current,C=null==D?void 0:D.style.backgroundColor,D&&D!==u&&(D.style.backgroundColor="transparent"),e.p=13,e.n=14,window.html2canvas(u,{useCORS:!0,scale:c,backgroundColor:null,logging:!1,width:a,height:i,windowWidth:a,windowHeight:i,ignoreElements:function(e){return Ga(e)||U(e)},onclone:function(e,t){Fa(e),e.documentElement.style.overflow="hidden",e.body&&(e.body.style.overflow="hidden"),t.style.position="fixed",t.style.left="0",t.style.top="0",t.style.margin="0",t.style.flexShrink="0",t.style.aspectRatio="auto",t.style.maxWidth="none",t.style.maxHeight="none",t.style.minWidth="".concat(a,"px"),t.style.minHeight="".concat(i,"px"),t.style.width="".concat(a,"px"),t.style.height="".concat(i,"px")}});case 14:L=e.v;case 15:return e.p=15,u.style.backgroundColor=k,D&&D!==u&&void 0!==C&&(D.style.backgroundColor=C),ct(!1),e.f(15);case 16:return h.drawImage(L,0,0,f.width,f.height),e.a(2,f);case 17:return e.p=17,it(!1),dt(null),e.f(17);case 18:if(!(O=t.printOnly&&ae.current?ae.current:ne.current)||!window.html2canvas){e.n=27;break}if(V=2,t.widthPx&&t.heightPx?(z=O.offsetWidth,V=t.widthPx/z):("medium"===t.quality&&(V=1),"low"===t.quality&&(V=.3)),X=t.printOnly&&O===ne.current,P="none"!==(null===(E=oe.current)||void 0===E?void 0:E.style.display),X&&oe.current&&(oe.current.style.display="none"),it(!0),dt("__ALL__"),"map"!==I&&"starmap"!==I&&"oldmap"!==I&&"osmap"!==I){e.
2n=21;break}return e.n=19,wr();case 19:return Z=!!t.widthPx||!!t.printOnly,e.n=20,Mr(Z?12e4:void 0);case 20:e.n=23;break;case 21:return e.n=22,Sr();case 22:return e.n=23,Mr();case 23:return G=O.offsetWidth,F=O.offsetHeight,e.p=24,e.n=25,window.html2canvas(O,{useCORS:!0,scale:V,backgroundColor:null,logging:!1,width:G,height:F,windowWidth:G,windowHeight:F,ignoreElements:function(e){return Ga(e)||e.classList.contains("tpe-ignore-capture")},onclone:function(e,t){Fa(e),e.documentElement.style.overflow="hidden",e.body&&(e.body.style.overflow="hidden"),t.style.position="fixed",t.style.left="0",t.style.top="0",t.style.margin="0",t.style.flexShrink="0",t.style.aspectRatio="auto",t.style.maxWidth="none",t.style.maxHeight="none",t.style.minWidth="".concat(G,"px"),t.style.minHeight="".concat(F,"px"),t.style.width="".concat(G,"px"),t.style.height="".concat(F,"px")}});case 25:return e.a(2,e.v);case 26:return e.p=26,it(!1),dt(null),X&&oe.current&&P&&(oe.current.style.display="block"),e.f(26);case 27:throw new Error("Preview capture failed");case 28:return e.a(2)}},e,null,[[24,,26,27],[13,,15,16],[4,9,10,11],[2,,17,18]])})),function(){return e.apply(this,arguments)}),triggerFullScreen:function(e){var t=e||M||(g.slots.length>0?g.slots[0].id:null);t&&function(e){if(rt(!0),dt(e),"starmap"===I||"map"===I||"osmap"===I){var t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);ht(t?150:300),yt("init")}else setTimeout(Va(La().m(function e(){var t,n,r;return La().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t=null,"oldmap"!==I){e.n=4;break}if(!ne.current||!window.html2canvas){e.n=4;break}return e.p=1,e.n=2,window.html2canvas(ne.current,{useCORS:!0,scale:2,backgroundColor:null,logging:!1,width:ne.current.offsetWidth,height:ne.current.offsetHeight,ignoreElements:function(e){return Ga(e)||e.classList.contains("tpe-ignore-capture")},onclone:function(e){return Fa(e)}});case 2:t=e.v,e.n=4;break;case 3:e.p=3,r=e.v,console.error("Fullscreen capture failed",r);case 4:if(t)try{n=Ha(t,Qa()),et(n),jt(1),Wt({x:0,y:0})}catch(e){console.error("Fullscreen processing failed",e)}rt(!1),dt(null);case 5:return e.a(2)}},e,null,[[1,3]])})),100)}(t)},isBusy:function(){return ke.current>0}};var e}),(0,e.useEffect)(function(){if(re.current){var e=new ResizeObserver(function(e){var t=e[0];t&&He({w:t.contentRect.width,h:t.contentRect.height})});return e.observe(re.current),function(){return e.disconnect()}}},[]),(0,e.useEffect)(function(){if(ne.current){var e=new ResizeObserver(function(e){var t=e[0];t&&qe({w:t.contentRect.width,h:t.contentRect.height})});return e.observe(ne.current),function(){return e.disconnect()}}},[]);var Vt=.393701,zt=m.widthIn,Xt=m.heightIn,Gt=x.mount.enabled&&"none"!==h.id,Ft=Gt?x.mount.top*Vt:0,Bt=Gt?x.mount.bottom*Vt:0,Rt=Gt?x.mount.left*Vt:0,Qt=Gt?x.mount.right*Vt:0,Ht=h.thicknessCm*Vt,Jt="box_float"===h.type,qt=(Jt?.5:0)*Vt,_t=zt+Rt+Qt+2*Ht+2*qt,$t=Xt+Ft+Bt+2*Ht+2*qt,en=_t/$t,tn=Ht/_t*100,nn=Ht/$t*100,rn=qt/_t*100,on=qt/$t*100,an=Jt?"0px":"1px",ln=Vt/zt*100,sn=Jt&&"deckled"===x.edgeType,cn=sn?.393701:0,un=zt?cn/zt*100:0,pn=Xt?cn/Xt*100:0,dn=.17716545,fn=sn?Ba(zt?dn/zt*100:0,Xt?dn/Xt*100:0):void 0,mn="soundwave"!==I&&"vinyl"!==I&&"album"!==I||!g.printBorderMm?0:g.printBorderMm,hn=mn>0?mn/10*Vt:0,gn=hn&&zt?hn/zt*100:0,xn=hn&&Xt?hn/Xt*100:0,yn=gn>0&&!sn,vn=((null==Je?void 0:Je.w)||(null==Qe?void 0:Qe.w)||1e3)*(zt/_t),bn=vn/zt,Yn=.3*bn,Mn=za((0,e.useState)(null),2),wn=Mn[0],Sn=Mn[1],jn=null!==wn?Math.min(x.fontSize,Math.max(.5,wn)):x.fontSize,Tn=Yn*jn,Wn=.11*bn,In=.4*bn,Un=.11*bn,kn=2*bn,Dn=Math.max(1,.025*bn),An=.25*bn,Cn=Tn,Ln=za((0,e.useState)(1),2),On=Ln[0],En=Ln[1],Vn=(0,e.useRef)(null),zn=Math.min(1.5,Math.max(.3,.065*zt))*bn*(null!==(r=null===(o=g.posterMeta)||void 0===o?void 0:o.titleScale)&&void 0!==r?r:1),Xn=zn*On,Pn=.5*Xn,Zn="starmap"===I?x.starMaps[1]:null,Gn=Zn?Ue.find(function(e){return e.id===Zn.themeId}):null,Fn="soundwave"===I?null===(a=x.soundwaves)||void 0===a?void 0:a[1]:null,Bn="map"===I&&g.slots.some(function(e){var t;return!(null===(t=x.maps)||void 0===t||null===(t=t[e.id])||void 0===t||!t.transparentBackgroun
2d)}),Rn=Gn?Gn.background:Fn?Fn.backgroundColor:Bn?"transparent":"#FFFFFF",Qn="",Hn=!1,Jn="",qn=!1;if("starmap"===I&&Zn){if((Hn=!!Zn.showCoordinates)&&(Qn="".concat(Ra(Zn.lat,!0),", ").concat(Ra(Zn.lng,!1))),(qn=!!Zn.showDate)&&Zn.date){var _n,$n=Pt(Date.parse(Zn.date),null!==(_n=Zn.tzOffset)&&void 0!==_n?_n:0);if(!isNaN($n.getTime())){var er=Zn.dateFormat||"en-US",tr=new Intl.DateTimeFormat(er,{year:"numeric",month:"long",day:"numeric",timeZone:"UTC"}).format($n);if(Zn.showTime){var nr=new Intl.DateTimeFormat(er,{hour:"numeric",minute:"2-digit",timeZone:"UTC"}).format($n);Jn="".concat(tr," at ").concat(nr)}else Jn=tr}}}else if("oldmap"===I&&x.oldMaps[1])(Hn=!!x.oldMaps[1].showCoordinates)&&(Qn="".concat(Ra(x.oldMaps[1].lat,!0),", ").concat(Ra(x.oldMaps[1].lng,!1)));else if("osmap"===I&&x.osMaps[1]){var rr,or=x.osMaps[1],ar=null!==(rr=or.coordinateMode)&&void 0!==rr?rr:"dms";Hn="none"!==ar,"gridref"===ar?Qn=Ia(or.lat,or.lng)||"".concat(Ra(or.lat,!0),", ").concat(Ra(or.lng,!1)):"dms"===ar&&(Qn="".concat(Ra(or.lat,!0),", ").concat(Ra(or.lng,!1)))}else"map"===I&&x.maps[1]&&(Hn=!!x.maps[1].showCoordinates)&&(Qn="".concat(Ra(x.maps[1].lat,!0),", ").concat(Ra(x.maps[1].lng,!1)));var ir=g.slots[0],lr=g.allowCaptionAlign&&ir&&null!==(i=x.captionAlign)&&void 0!==i?i:"center",sr="center"===lr?0:null!==(l=null==ir?void 0:ir.x)&&void 0!==l?l:0,cr="center"===lr?0:Math.max(0,100-(null!==(s=null==ir?void 0:ir.x)&&void 0!==s?s:0)-(null!==(c=null==ir?void 0:ir.w)&&void 0!==c?c:100)),ur="left"===lr?"tpe-items-start":"right"===lr?"tpe-items-end":"tpe-items-center",pr=(0,e.useRef)(jn);pr.current=jn;var dr=(0,e.useRef)(x.fontSize);dr.current=x.fontSize,(0,e.useLayoutEffect)(function(){var e;if(!g.hasCaption||!le.current||!ie.current)return w(!1),Sn(null),void(null==S||S(null));var t=!1,n=function(){if(!t&&le.current&&ie.current){var e=ie.current,n=le.current,r=window.getComputedStyle(e),o=parseFloat(r.paddingTop)||0,a=parseFloat(r.paddingBottom)||0,i=e.clientHeight-o-a,l=n.getBoundingClientRect().height,s=pr.current;if(l<=0||i<=0||s<=0)return w(!1),Sn(null),void(null==S||S(null));var c=i/(l/s)+.04,u=Math.floor(10*c)/10;Sn(function(e){return null===e?u:Math.abs(u-e)<.1?e:u}),null==S||S(u),w(dr.current>u+.05)}};return"undefined"!=typeof document&&null!==(e=document.fonts)&&void 0!==e&&e.ready?document.fonts.ready.then(function(){return n()}):n(),function(){t=!0}},[x.captionLines,x.fontFamily,x.metaFontFamily,g.hasCaption,m,x.mount,bn,Qn,Jn,Dn,sr,cr,w,S]);var fr=(null===(u=x.captionLines)||void 0===u||null===(u=u[0])||void 0===u?void 0:u.text)||(null==Fn||null===(p=Fn.metadata)||void 0===p?void 0:p.title)||"";(0,e.useLayoutEffect)(function(){var e;if("soundwave"===I&&g.posterMeta&&Vn.current){var t=!1,n=function(){var e=Vn.current;if(!t&&e){e.style.fontSize="".concat(zn,"px");var n=1*zn,r=e.scrollHeight;if(n<=0||r<=0||!fr)En(1);else{var o=Math.round(r/n),a=1;o>2&&(a=2/o);var i=.3*bn/Math.max(1,zn);a=Math.max(i,Math.min(1,a)),En(function(e){return Math.abs(e-a)<.02?e:a})}}};return"undefined"!=typeof document&&null!==(e=document.fonts)&&void 0!==e&&e.ready?document.fonts.ready.then(function(){return n()}):n(),function(){t=!0}}En(1)},[I,g.posterMeta,fr,x.fontFamily,zn,bn,m]);var mr=Te.find(function(e){return e.id===x.mount.colorId})||Te[0],hr=Ne.find(function(e){return e.id===x.mount.coreId})||Ne[0],gr="matt-black"!==h.id&&"black-wood"!==h.id||"black"!==mr.id?mr.color:"#262626",xr={aspectRatio:"".concat(en)};"contain"===T?Qe?en>Qe.w/Qe.h?(xr.width="100%",xr.height="auto"):(xr.height="100%",xr.width="auto"):(xr.maxWidth="100%",xr.maxHeight="100%"):(xr.width="100%",xr.height="auto");var yr={"--f-t":"".concat(nn,"%"),"--f-b":"".concat(nn,"%"),"--f-l":"".concat(tn,"%"),"--f-r":"".concat(tn,"%")},vr=(0,e.useRef)({}),br=function(e,t){(vr.current[e]||!1)!==t&&(vr.current[e]=t,ke.current+=t?1:-1,ke.current<0&&(ke.current=0)),null==D||D(t),t||Yt(!0)},Yr=function(e,t){(vr.current[e]||!1)!==t&&(vr.current[e]=t,ke.current+=t?1:-1,ke.current<0&&(ke.current=0))},Mr=function(){var e=Va(La().m(function e(){var t,n,r=arguments;return La().w(function(e){for(;;)switch(e.n){case 0:t=r.length>0&&void 0!==r[0]?r[0]:15e3,n=Date.now();case 1:if(!(ke.current>0&&Date.now()-n<t)){e.n=3;break}return e.n=2,new Promise(function(e){return setTimeout(e,100)});case 2:e.n=1;break;case 3:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),wr=function(){var e=Va(La().m(function e(){var t,n,r=arguments;return La().w(function(e){for(;;)switch(e.n){case 0:t=r.length>0&&void 0!==r[0]?r[0]:1500,n=Date.now();case 1:if(!(0===ke.current&&Date.now()-n<t)){e.n=3;break}return e.n=2,new Promise(function(e){return setTimeout(e,50)});case 2:e.n=1;break;case 3:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),Sr=function(){var e=Va(La().m(function e(){var t,n,r=arguments;return La().w(function(e){for(;;)switch(e.n){case 0:if(t=r.length>0&&void 0!==r[0]?r[0]:8e3,ne.current){e.n=1;break}return e.a(2);case 1:return n=Array.from(ne.current.querySelectorAll("img")),e.n=2,Promise.race([Promise.all(n.map(function(e){return e.complete&&e.naturalWi
2dth>0?e.decode?e.decode().catch(function(){}):Promise.resolve():new Promise(function(t){e.addEventListener("load",function(){return t()},{once:!0}),e.addEventListener("error",function(){return t()},{once:!0})})})),new Promise(function(e){return setTimeout(e,t)})]);case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();(0,e.useEffect)(function(){k&&k(Ee)},[Ee,k]);var jr,Tr,Nr,Wr,Ir,Ur,kr,Dr,Ar,Cr,Or,Er,Vr,Xr,Pr,Zr,Gr,Fr,Br,Qr,Hr,Kr,Jr,qr,_r,$r,eo,to,no,ro,oo,ao=function(e){kt(!0);var t="touches"in e?e.touches[0].clientX:e.clientX,n="touches"in e?e.touches[0].clientY:e.clientY;Lt({x:t-Nt.x,y:n-Nt.y})},io=function(e){if(Ut){var t="touches"in e?e.touches[0].clientX:e.clientX,n="touches"in e?e.touches[0].clientY:e.clientY;Wt({x:t-At.x,y:n-At.y})}},lo=function(){return kt(!1)},so=null===(d=h.style)||void 0===d?void 0:d.backgroundImage,co="string"==typeof so&&so.includes("url"),uo=Da(Da({display:"block",width:"100%",height:"100%"},h.style),co?{backgroundSize:"auto 100%",backgroundRepeat:"repeat-x"}:{}),po="starmap"===I||"oldmap"===I||"osmap"===I||"map"===I||"soundwave"===I||"vinyl"===I||"album"===I,fo="top"===(g.captionPosition||"bottom"),mo=M||(g.slots.length>0?g.slots[0].id:null),ho="map"===I&&mo?x.maps[mo]:null;return(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)("style",{children:"\n        @keyframes star-twinkle {\n        0%, 100% { transform: scale(1); opacity: 1; }\n        50% { transform: scale(0.6); opacity: 0.5; }\n        }\n        @keyframes map-float {\n          0%, 100% { transform: translateY(0); }\n          50% { transform: translateY(-8px); }\n        }\n        @keyframes map-pulse {\n          0% { transform: scale(0.8); opacity: 0.5; }\n          100% { transform: scale(1.5); opacity: 0; }\n        }\n        .star-loader { animation: star-twinkle 1.5s infinite ease-in-out; }\n        .star-delay-1 { animation-delay: 0s; }\n        .star-delay-2 { animation-delay: 0.3s; }\n        .star-delay-3 { animation-delay: 0.6s; }\n        .map-icon { animation: map-float 2s infinite ease-in-out; }\n        .map-pulse-circle { animation: map-pulse 2s infinite ease-out; }\n    "}),(C&&!bt&&!O||nt)&&(0,y.createPortal)((0,Zt.jsxs)("div",{className:"tpe-fixed tpe-inset-0 tpe-z-[100000] tpe-bg-white/95 tpe-backdrop-blur-md tpe-flex tpe-flex-col tpe-items-center tpe-justify-center tpe-animate-fade-in tpe-ignore-capture",children:["starmap"===I?(0,Zt.jsxs)("div",{className:"tpe-relative tpe-w-32 tpe-h-32 tpe-mb-8",children:[(0,Zt.jsx)("svg",{className:"tpe-absolute tpe-top-1/2 tpe-left-1/2 tpe-w-16 tpe-h-16 tpe-text-indigo-600 star-loader star-delay-1",style:{marginLeft:"-2rem",marginTop:"-2rem"},viewBox:"0 0 24 24",fill:"currentColor",children:(0,Zt.jsx)("path",{d:"M12 2L14.5 9.5L22 12L14.5 14.5L12 22L9.5 14.5L2 12L9.5 9.5L12 2Z"})}),(0,Zt.jsx)("svg",{className:"tpe-absolute tpe-top-2 tpe-right-2 tpe-w-8 tpe-h-8 tpe-text-indigo-400 star-loader star-delay-2",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Zt.jsx)("path",{d:"M12 2L14.5 9.5L22 12L14.5 14.5L12 22L9.5 14.5L2 12L9.5 9.5L12 2Z"})}),(0,Zt.jsx)("svg",{className:"tpe-absolute tpe-bottom-2 tpe-left-2 tpe-w-10 tpe-h-10 tpe-text-indigo-500 star-loader star-delay-3",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Zt.jsx)("path",{d:"M12 2L14.5 9.5L22 12L14.5 14.5L12 22L9.5 14.5L2 12L9.5 9.5L12 2Z"})})]}):(0,Zt.jsxs)("div",{className:"tpe-relative tpe-w-32 tpe-h-32 tpe-mb-8 tpe-flex tpe-items-center tpe-justify-center",children:[(0,Zt.jsx)("div",{className:"tpe-absolute tpe-inset-0 tpe-flex tpe-items-center tpe-justify-center",children:(0,Zt.jsx)("div",{className:"tpe-w-24 tpe-h-24 tpe-rounded-full tpe-bg-emerald-50 map-pulse-circle"})}),(0,Zt.jsxs)("svg",{className:"tpe-w-16 tpe-h-16 tpe-text-emerald-600 map-icon tpe-relative tpe-z-10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("path",{d:"M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z",className:"tpe-fill-emerald-100"}),(0,Zt.jsx)("circle",{cx:"12",cy:"10",r:"3",className:"tpe-fill-emerald-500 tpe-stroke-none"})]})]}),(0,Zt.jsx)("h3",{className:"tpe-text-2xl tpe-font-bold tpe-mb-2 tpe-tracking-tight ".concat("starmap"===I?"tpe-text-indigo-900":"tpe-text-gray-900"),children:nt?"Preparing High-Res View":"starmap"===I?"Creating Your Star Map":"Generating Your Map"}),(0,Zt.jsx)("p",{className:"tpe-text-base tpe-font-medium ".concat("starmap"===I?"tpe-text-indigo-600/80":"tpe-text-gray-500"),children:V&&V.total>1?"Rendering tile ".concat(V.done," of ").concat(V.total):nt?"starmap"===I?"Processing celestial details...":"Processing map details...":"starmap"===I?"Calculating celestial alignment...":"Retrieving cartographic data..."}),V&&V.total>1&&(0,Zt.jsx)("div",{className:"tpe-mt-5 tpe-w-56 tpe-h-1.5 tpe-rounded-full tpe-bg-brand-line tpe-overflow-hidden",role:"progressbar","aria-valuenow":V.done,"aria-valuemin":0,"aria-valuemax":V.total,children:(0,Zt.jsx)("div",{className:"tpe-h-full tpe-rounded-full tpe-bg-brand-lime tpe-transition-all tpe-duration-300",style:{width:"".concat(Math.round(V.done/V.total*100),"%")}})})]}),document.body),(0,Zt.jsxs)("div",{ref:re,className:"tpe-w-full tpe-h-full tpe-flex tpe-items-center tpe-justify-center tpe-p-4 md:tpe-p-10 tpe-overflow-hidden tpe-select-none ".concat("contain"===T?"tpe-bg-brand-wall":""),children:["osmap"===I&&mo&&(null===(f=x.osMaps[mo])||void 0===f?void 0:f.scale)&&(oo=x.osMaps[mo].scale,(0,Zt.jsxs)("div",{className:"tpe-absolute tpe-bottom-4 tpe-left-1/2 tpe--translate-x-1/2 tpe-z-[10000] tpe-flex tpe-items-center tpe-gap-3 tpe-px-3 tpe-py-2 tpe-bg-white tpe-rounded-full tpe-shadow-lg tpe-border tpe-border-gray-100",children:[(0,Zt.jsx)("div",{className:"tpe-flex tpe-items-center tpe-gap-1 tpe-bg-gray-100 tpe-rounded-full tpe-p-0.5",children:Pe.map(function(e){var t=oo===e.denominator;return(0,Zt.jsx)("button",{onClick:function(){return null==K?void 0:K(mo,e.denominator)},className:"tpe-px-3 tpe-py-1 tpe-text-xs tpe-font-bold tpe-rounded-full tpe-transition-colors ".concat(t?"tpe-bg-gray-900 tpe-text-white tpe-shadow":"tpe-text-gray-600 hover:tpe-text-gray-900"),title:"".concat(e.series," — ").concat(e.label),children:e.series.replace("OS ","")},e.denominator)})}),(0,Zt.jsxs)("div",{className:"tpe-text-[11px] tpe-leading-tight tpe-text-gray-700 tpe-font-bold tpe-pr-1",children:[(0,Zt.jsx)("div",{children:Ge(oo)}),(0,Zt.jsx)("div",{className:"tpe-font-normal tpe-text-gray-500",children:Fe(oo)})]})]})),"map"===I&&mo&&ho&&("draw"===ho.routeUiMode||"edit"===ho.routeUiMode)&&(eo=ho,to=eo.routes||[],no=to.find(function(e){return e.id===eo.activeRouteId})||to[to.length-1],ro="draw"===eo.routeUiMode,(0,Zt.jsxs)(Zt.Fragment,{children:[ro&&(0,Zt.jsxs)("div",{className:"tpe-absolute tpe-top-4 tpe-left-1/2 tpe--translate-x-1/2 tpe-z-30 tpe-px-4 tpe-py-2 tpe-bg-gray-900/90 tpe-text-white tpe-rounded-full tpe-shadow-lg tpe-text-xs tpe-font-medium tpe-flex tpe-items-center tpe-gap-2 tpe-whitespace-nowrap tpe-pointer-events-none",children:[(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("path",{d:"M12 19l7-7 3 3-7 7-3-3z"}),(0,Zt.jsx)("path",{d:"M18 13l-1.5-7.5L2 2l3.5 14.5L13 18l5-5z"})]}),"Tap the map to trace your route"]}),no&&(0,Zt.jsxs)("div",{className:"tpe-absolute tpe-bottom-4 tpe-left-1/2 tpe--translate-x-1/2 tpe-z-30 tpe-flex tpe-items-center tpe-gap-3 tpe-px-3 tpe-py-2 tpe-bg-white tpe-rounded-full tpe-shadow-lg tpe-border tpe-border-gray-100",children:[(0,Zt.jsxs)("label",{className:"tpe-relative tpe-w-7 tpe-h-7 tpe-rounded-full tpe-overflow-hidden tpe-shrink-0 tpe-cursor-pointer tpe-border tpe-border-gray-200",title:"Line colour",children:[(0,Zt.jsx)("span",{className:"tpe-absolute tpe-inset-0",style:{backgroundColor:no.color||"#FF0000"}}),(0,Zt.jsx)("input",{type:"color",value:no.color||"#FF0000",onChange:function(e){return null==R?void 0:R(mo,no.id,{color:e.target.value,colorMode:"solid"})},className:"tpe-absolute tpe-inset-0 tpe-opacity-0 tpe-cursor-pointer"})]}),(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-gap-2",children:[(0,Zt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:(0,Zt.jsx)("line",{x1:"3",y1:"12",x2:"21",y2:"12"})}),(0,Zt.jsx)("input",{type:"range",min:1,max:8,step:.5,value:null!==($r=no.widthMultiplier)&&void 0!==$r?$r:3,onChange:function(e){return null==R?void 0:R(mo,no.id,{widthMultiplier:parseFloat(e.target.value)})},className:"tpe-w-20 md:tpe-w-28 tpe-accent-gray-900",title:"Line thickness"})]}),(0,Zt.jsx)("button",{onClick:function(){return null==Q?void 0:Q(mo,"idle")},className:"tpe-px-3 tpe-py-1.5 tpe-bg-gray-900 tpe-text-white tpe-text-xs tpe-font-bold tpe-rounded-full hover:tpe-bg-gray-700 tpe-transition-colors",children:"Done"})]})]})),ho&&Z&&mo&&(0,Zt.jsxs)("div",{className:"tpe-absolute tpe-bottom-4 tpe-left-4 tpe-z-30 tpe-flex tpe-gap-2",children:[(0,Zt.jsx)("button",{onClick:function(){return Z(mo,(ho.zoom||12)-1)},className:"tpe-w-10 tpe-h-10 tpe-bg-white tpe-rounded-full tpe-shadow-lg tpe-flex tpe-items-center tpe-justify-center tpe-text-gray-600 hover:tpe-bg-gray-50 hover:tpe-text-gray-900 tpe-transition-colors",title:"Zoom Out",children:(0,Zt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Zt.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"})})}),(0,Zt.jsx)("button",{onClick:function(){return Z(mo,(ho.zoom||12)+1)},className:"tpe-w-10 tpe-h-10 tpe-bg-white tpe-rounded-full tpe-shadow-lg tpe-flex tpe-items-center tpe-justify-center tpe-text-gray-600 hover:tpe-bg-gray-50 hover:tpe-text-gray-900 tpe-transition-colors",title:"Zoom In",children:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),(0,Zt.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})})]}),(0,Zt.jsxs)("div",{ref:ne,className:"tpe-relative tpe-shadow-st-art tpe-transition-all tpe-duration-500 tpe-ease-in-out tpe-bg-white",style:xr,children:["none"!==h.id&&(0,Zt.jsxs)("div",{ref:oe,className:"tpe-absolute tpe-inset-0 tpe-z-20 tpe-pointer-events-none",style:yr,children:[(0,Zt.jsx)("div",{className:"tpe-absolute tpe-top-0 tpe-left-0 tpe-w-full ".concat(h.cssClass),style:{height:"calc(".concat(nn,"% + ").concat(an,")"),clipPath:"pol
2ygon(0 0, 100% 0, calc(100% - var(--f-r)) 100%, var(--f-l) 100%)"},children:(0,Zt.jsx)("div",{className:"tpe-w-full tpe-h-full",style:uo})}),(0,Zt.jsx)("div",{className:"tpe-absolute tpe-bottom-0 tpe-left-0 tpe-w-full ".concat(h.cssClass),style:{height:"calc(".concat(nn,"% + ").concat(an,")"),clipPath:"polygon(var(--f-l) 0, calc(100% - var(--f-r)) 0, 100% 100%, 0 100%)"},children:(0,Zt.jsx)("div",{className:"tpe-w-full tpe-h-full",style:Da(Da({},uo),{},{transform:"rotate(180deg)"})})}),(0,Zt.jsx)("div",{className:"tpe-absolute tpe-top-0 tpe-left-0 tpe-h-full ".concat(h.cssClass),style:{width:"calc(".concat(tn,"% + ").concat(an,")"),clipPath:"polygon(0 0, 100% var(--f-t), 100% calc(100% - var(--f-b)), 0 100%)"},children:(0,Zt.jsx)("div",{className:"tpe-origin-bottom-left tpe-absolute",style:Da(Da({},uo),{},{transform:"rotate(270deg)",width:"200vmax",height:"var(--f-t)",bottom:0,left:"100%"})})}),(0,Zt.jsx)("div",{className:"tpe-absolute tpe-top-0 tpe-right-0 tpe-h-full ".concat(h.cssClass),style:{width:"calc(".concat(tn,"% + ").concat(an,")"),clipPath:"polygon(0 var(--f-t), 100% 0, 100% 100%, 0 calc(100% - var(--f-b)))"},children:(0,Zt.jsx)("div",{className:"tpe-origin-top-left tpe-absolute",style:Da(Da({},uo),{},{transform:"rotate(90deg)",width:"200vmax",height:"var(--f-t)",top:0,left:"100%"})})})]}),(0,Zt.jsx)("div",{className:"tpe-absolute tpe-transition-all tpe-duration-500",style:{to
2p:"".concat(nn+on,"%"),bottom:"".concat(nn+on,"%"),left:"".concat(tn+rn,"%"),right:"".concat(tn+rn,"%"),backgroundColor:Gt?gr:"transparent",boxShadow:Jt?"0 0 10px rgba(0,0,0,0.2)":Gt?"inset 2px 2px 5px rgba(0,0,0,0.1)":"none"},children:(0,Zt.jsx)("div",{ref:ae,className:"tpe-absolute tpe-overflow-hidden tpe-transition-all tpe-duration-500 tpe-print-root",style:{top:Gt?"".concat(Ft/($t-2*(Ht+qt))*100,"%"):0,bottom:Gt?"".concat(Bt/($t-2*(Ht+qt))*100,"%"):0,left:Gt?"".concat(Rt/(_t-2*(Ht+qt))*100,"%"):0,right:Gt?"".concat(Qt/(_t-2*(Ht+qt))*100,"%"):0,border:Gt?"2px solid ".concat(hr.color):"none",boxShadow:sn?"none":Gt?"0 0 4px rgba(0,0,0,0.2)":"none",backgroundColor:sn?"#FBFAF7":yn?"#FFFFFF":Rn,clipPath:fn,WebkitClipPath:fn,filter:sn?"drop-shadow(0 1px 2px rgba(0,0,0,0.18))":void 0},children:(0,Zt.jsxs)("div",{className:"tpe-relative tpe-w-full tpe-h-full",style:sn?{position:"absolute",top:"".concat(pn,"%"),bottom:"".concat(pn,"%"),left:"".concat(un,"%"),right:"".concat(un,"%"),width:"auto",height:"auto"}:yn?{position:"absolute",top:"".concat(xn,"%"),bottom:"".concat(xn,"%"),left:"".concat(gn,"%"),right:"".concat(gn,"%"),width:"auto",height:"auto",backgroundColor:Rn}:void 0,children:[g.slots.map(function(t){var n,r,o,a,i,l=x.assignedImages[t.id],s=(null==Je||Je.w,t.w,null==b?void 0:b[(null==l?void 0:l.imageId)||""]),c=v[(null==l?void 0:l.imageId)||""],u=l?s||c:null,p=u&&/^https?:\/\//.test(u)?u+(u.includes("?")?"&":"?")+"tpecors=1":u,d=x.starMaps[t.id],f=at&&(pt===t.id||"__ALL__"===pt),h="undefined"!=typeof window&&window.devicePixelRatio||1,y=t.h/(t.w||100)||1,w=f?Math.round(m.widthIn*(t.w/100)*mt):Math.round(Ie*h),S=Math.round(w*y)||100,j=Math.max(w,S);if(j>8192){var T=8192/j;w=Math.round(w*T),S=Math.round(S*T)}var k,D=Math.max(1,Math.round(w/h)),A=Math.max(1,Math.round(S/h)),L=x.oldMaps[t.id],O=x.osMaps[t.id],E=x.maps[t.id],V="SELECT_SLOT"===U&&!l&&"starmap"!==I&&"oldmap"!==I&&"osmap"!==I&&"map"!==I&&"soundwave"!==I&&"vinyl"!==I&&"album"!==I,z=Object.keys(v).length>0,Z="oldmap"===I,R="osmap"===I,Q="map"===I,K="";(Z||R||Q)&&!g.hasCaption&&(Z&&null!=L&&L.showCoordinates?K="".concat(Ra(L.lat,!0),", ").concat(Ra(L.lng,!1)):R&&O&&"none"!==(null!==(k=O.coordinateMode)&&void 0!==k?k:"dms")?K="gridref"===O.coordinateMode&&Ia(O.lat,O.lng)||"".concat(Ra(O.lat,!0),", ").concat(Ra(O.lng,!1)):Q&&null!=E&&E.showCoordinates&&(K="".concat(Ra(E.lat,!0),", ").concat(Ra(E.lng,!1))));var ne,re,oe=!po&&M===t.id,ae=!po&&Ce===t.id,ie=V;return(0,Zt.jsxs)(e.Fragment,{children:[(0,Zt.jsxs)("div",{ref:function(e){e&&(he.current[t.id]=e)},onClick:function(e){var n;(null===(n=x.maps[t.id])||void 0===n?void 0:n.drawMode)||("single"!==I&&"collage"!==I&&"preset"!==I||e.stopPropagation(),Y(t.id))},onDragStart:function(e){return function(e,t){N&&"starmap"!==I&&"oldmap"!==I&&"osmap"!==I&&"map"!==I&&"soundwave"!==I&&"vinyl"!==I&&"album"!==I&&(e.dataTransfer.setData("text/plain",t),e.dataTransfer.effectAllowed="move")}(e,t.id)},onDragOver:function(e){return function(e,t){"starmap"!==I&&"oldmap"!==I&&"osmap"!==I&&"map"!==I&&"soundwave"!==I&&"vinyl"!==I&&"album"!==I&&(N||W)&&(e.preventDefault(),Le(t))}(e,t.id)},onDrop:function(e){return function(e,t){if("starmap"!==I&&"oldmap"!==I&&"osmap"!==I&&"map"!==I&&"soundwave"!==I&&"vinyl"!==I&&"album"!==I){e.preventDefault();var n=e.dataTransfer.getData("text/plain");if(Le(null),n)if(n.startsWith("img:")){var r=n.slice(4);r&&W&&W(r,t)}else n!==t&&N&&N(n,t)}}(e,t.id)},onDragLeave:function(){return Le(null)},draggable:"starmap"!==I&&"oldmap"!==I&&"osmap"!==I&&"map"!==I&&"soundwave"!==I&&"vinyl"!==I&&"album"!==I&&!!l,className:"tpe-absolute ".concat("soundwave"===I?"tpe-overflow-visible":"tpe-overflow-hidden"," tpe-transition-all tpe-duration-200 tpe-group tpe-cursor-pointer ").concat(M===t.id||V?"tpe-z-10":""),style:{left:"".concat(t.x,"%"),top:"".concat(t.y,"%"),width:"".concat(t.w,"%"),height:"".concat(t.h,"%"),backgroundColor:(at||st)&&"map"===I?"transparent":"starmap"===I?Rn:"soundwave"===I||"vinyl"===I||"album"===I?"transparent":"#f3f4f6"},children:["starmap"===I?d?(0,Zt.jsxs)("div",{className:"tpe-w-full tpe-h-full tpe-relative tpe-group",children:[(0,Zt.jsx)(Kt,{ref:function(e){e&&(se.current[t.id]=e)},width:D,height:A,discWidthIn:m.widthIn*(t.w/100),config:d,highRes:at&&(pt===t.id||"__ALL__"===pt),isAdmin:X,onDataUpdate:function(e){return function(e,t){Xe(function(n){var r,o;return(null===(r=n[e])||void 0===r?void 0:r.count)===t.count&&JSON.stringify(null===(o=n[e])||void 0===o?void 0:o.visiblePlanets)===JSON.stringify(t.visiblePlanets)?n:Da(Da({},n),{},Aa({},e,t))})}(t.id,e)},onLoadingChange:function(e){return br("star-".concat(t.id),e)}},"".concat(t.id,"-").concat(Mt)),d.showStarCount&&(0,Zt.jsxs)("div",{className:"tpe-absolute tpe-opacity-70 tpe-pointer-events-none tpe-font-mono tpe-tracking-widest tpe-uppercase",style:{color:"white"===d.themeId?"#000":"#FFF",fontSize:"".concat(Un,"px"),bottom:"".concat(.8*Un,"px"),right:"".concat(.8*Un,"px")}
2,children:["Stars: ",((null===(n=Ee[t.id])||void 0===n?void 0:n.count)||0).toLocaleString()]}),C&&bt&&!nt&&(0,Zt.jsxs)("div",{className:"tpe-ignore-capture tpe-absolute tpe-inset-0 tpe-z-30 tpe-flex tpe-flex-col tpe-items-center tpe-justify-center tpe-bg-white/90 tpe-backdrop-blur-sm",children:[(0,Zt.jsxs)("div",{className:"tpe-relative tpe-w-20 tpe-h-20 tpe-mb-4",children:[(0,Zt.jsx)("svg",{className:"tpe-absolute tpe-top-1/2 tpe-left-1/2 tpe-w-10 tpe-h-10 tpe-text-indigo-600 star-loader star-delay-1",style:{marginLeft:"-1.25rem",marginTop:"-1.25rem"},viewBox:"0 0 24 24",fill:"currentColor",children:(0,Zt.jsx)("path",{d:"M12 2L14.5 9.5L22 12L14.5 14.5L12 22L9.5 14.5L2 12L9.5 9.5L12 2Z"})}),(0,Zt.jsx)("svg",{className:"tpe-absolute tpe-top-0 tpe-right-2 tpe-w-5 tpe-h-5 tpe-text-indigo-400 star-loader star-delay-2",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Zt.jsx)("path",{d:"M12 2L14.5 9.5L22 12L14.5 14.5L12 22L9.5 14.5L2 12L9.5 9.5L12 2Z"})}),(0,Zt.jsx)("svg",{className:"tpe-absolute tpe-bottom-1 tpe-left-2 tpe-w-6 tpe-h-6 tpe-text-indigo-500 star-loader star-delay-3",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Zt.jsx)("path",{d:"M12 2L14.5 9.5L22 12L14.5 14.5L12 22L9.5 14.5L2 12L9.5 9.5L12 2Z"})})]}),(0,Zt.jsx)("span",{className:"tpe-text-xs tpe-font-bold tpe-text-indigo-900 tpe-uppercase tpe-tracking-widest",children:"Updating..."})]})]}):null:"oldmap"===I?L?(0,Zt.jsxs)("div",{className:"tpe-w-full tpe-h-full tpe-relative tpe-group",children:[(0,Zt.jsx)(Nn,{ref:function(e){e&&(ce.current[t.id]=e)},width:Math.round(null!=Je&&Je.w?Je.w*(t.w/100):800),height:Math.round(null!=Je&&Je.h?Je.h*(t.h/100):800),config:L,printWidthIn:m.widthIn,printHeightIn:m.heightIn,slotWidthPercent:t.w,slotHeightPercent:t.h,onLoadingChange:function(e){return br("old-".concat(t.id),e)}},"".concat(t.id,"-").concat(Mt)),g.mapFrameStyle&&(0,Zt.jsx)(zr,{style:g.mapFrameStyle,widthPx:Math.round(null!=Je&&Je.w?Je.w*(t.w/100):800),heightPx:Math.round(null!=Je&&Je.h?Je.h*(t.h/100):800),printWidthIn:m.widthIn,printHeightIn:m.heightIn,locationLabel:L.locationLabel,groundMetersPerPx:je("oldmap",L,Math.round(null!=Je&&Je.w?Je.w*(t.w/100):800),m.widthIn),infoText:xe,infoText2:be,customText:L.customText,marginCoords:K})]}):null:"osmap"===I?O?(0,Zt.jsxs)("div",{className:"tpe-w-full tpe-h-full tpe-relative tpe-group",children:[(0,Zt.jsx)(Kn,{ref:function(e){e&&(ue.current[t.id]=e)},width:Math.round(null!=Je&&Je.w?Je.w*(t.w/100):800),height:Math.round(null!=Je&&Je.h?Je.h*(t.h/100):800),config:O,printWidthIn:m.widthIn,printHeightIn:m.heightIn,slotWidthPercent:t.w,slotHeightPercent:t.h,highRes:at&&(pt===t.id||"__ALL__"===pt),onViewChange:function(e,n,r,o){return null==H?void 0:H(t.id,e,n,r,o)},onLoadingChange:function(e){return br("os-".concat(t.id),e)}},"".concat(t.id,"-").concat(Mt)),g.mapFrameStyle&&(0,Zt.jsx)(zr,{style:g.mapFrameStyle,widthPx:Math.round(null!=Je&&Je.w?Je.w*(t.w/100):800),heightPx:Math.round(null!=Je&&Je.h?Je.h*(t.h/100):800),printWidthIn:m.widthIn,printHeightIn:m.heightIn,locationLabel:O.locationLabel,subtitle:K,gridInfo:We(O,t.w,Math.round(null!=Je&&Je.w?Je.w*(t.w/100):800)),showLogo:null===(r=O.showOsLogo)||void 0===r||r,customText:O.customText,zIndex:9999})]}):null:"map"===I?E?(0,Zt.jsxs)("div",{className:"tpe-w-full tpe-h-full tpe-relative tpe-group",children:[(0,Zt.jsx)(Lr,{ref:function(e){e&&(pe.current[t.id]=e)},width:Math.round(null!=Je&&Je.w?Je.w*(t.w/100):800),height:Math.round(null!=Je&&Je.h?Je.h*(t.h/100):800),config:E,printWidthIn:m.widthIn*(t.w/100),printHeightIn:m.heightIn*(t.h/100),onLoadingChange:function(e){return br("map-".concat(t.id),e)},highRes:at&&(pt===t.id||"__ALL__"===pt),transparentBg:st,customDpi:!at||pt!==t.id&&"__ALL__"!==pt?void 0:mt,onMarkerDrag:function(e,n,r){return null==P?void 0:P(t.id,e,n,r)},onBoundsChange:function(e){return null==G?void 0:G(t.id,e)},onRendered:function(){return null==B?void 0:B()},onError:function(e,t){"fatal"===e&&(null==F||F((null==t?void 0:t.message)||"Map failed to load"))},onCustomRouteUpdate:function(e){return J&&J(t.id,e)},onAppendCustomRoutePoint:function(e,n){return q&&q(t.id,e,n)},repositionMarkerId:(null==_?void 0:_.slotId)===t.id?_.markerId:void 0,onRepositionMove:function(e,n,r){return null==$?void 0:$(t.id,e,n,r)}},"".concat(t.id,"-").concat(Mt)),g.mapFrameStyle&&(0,Zt.jsx)(zr,{style:g.mapFrameStyle,widthPx:Math.round(null!=Je&&Je.w?Je.w*(t.w/100):800),heightPx:Math.round(null!=Je&&Je.h?Je.h*(t.h/100):800),printWidthIn:m.widthIn,printHeightIn:m.heightIn,locationLabel:E.locationLabel,groundMetersPerPx:je("map",E,Math.round(null!=Je&&Je.w?Je.w*(t.w/100):800),m.widthIn)}),(null==_?void 0:_.slotId)===t.id&&!st&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)("div",{className:"tpe-pointer-events-none tpe-absolute tpe-inset-0 tpe-flex tpe-items-center tpe-justify-center tpe-z-20",children:(0,Zt.jsxs)("svg",{width:"56",height:"56",viewBox:"0 0 48 48",fill:"none",className:"tpe-drop-shadow-lg",children:[(0,Zt.jsx)("circle",{cx:"24",cy:"24",r:"22",stroke:"#000",strokeWidth:"1.5",strokeOpacity:"0.4"}),(0,Zt.jsx)("circle",{cx:"24",cy:"24",r:"6",stroke:"#000",strokeWidth:"2.5",fill:"white",fillOpacity:"0.7"}),(0,Zt.jsx)("line",{x1:"24",y1:"2",x2:"24",y2:"14",stroke:"#000",strokeWidth:"2.5"}),(0,Zt.jsx)("line",{x1:"24",y1:"34",x2:"24",y2:"46",stroke:"#000",strokeWidth:"2.5"}),(0,Zt.jsx)("line",{x1:"2",y1:"24",x2:"14",y2:"24",stroke:"#000",strokeWidth:"2.5"}),(0,Zt.jsx)("line",{x1:"34",y1:"24",x2:"46",y2:"24",stroke:"#000",strokeWidth:"2.5"})]})}),(0,Zt.jsxs)("div",{className:"tpe-absolute tpe-bottom-0 tpe-left-0 tpe-right-0 tpe-z-30 tpe-bg-white/95 tpe-backdrop-blur tpe-border-t tpe-border-gray-200 tpe-shadow-lg tpe-flex tpe-items-center tpe-justify-between tpe-gap-2 tpe-px-2 tpe-py-2 sm:tpe-px-3 sm:tpe-py-3",children:[(0,Zt.jsx)("span",{className:"tpe-hidden md:tpe-inline tpe-text-sm tpe-text-gray-700 tpe-font-medium tpe-truncate",children:"Pan map to position"}),(0,Zt.jsxs)("div",{className:"tpe-flex tpe-gap-1.5 tpe-shrink-0 tpe-ml-auto",children:[(0,Zt.jsx)("button",{onClick:te,"aria-label":"Cancel",className:"tpe-px-2.5 tpe-py-1.5 sm:tpe-px-3 sm:tpe-py-2 tpe-rounded-lg tpe-border tpe-border-gray-300 tpe-text-gray-700 tpe-text-xs sm:tpe-text-sm hover:tpe-bg-gray-50",children:"Cancel"}),(0,Zt.jsx)("button",{onClick:ee,"aria-label":"Done",className:"tpe-px-3 tpe-py-1.5 sm:tpe-px-4 sm:tpe-py-2 tpe-rounded-lg tpe-bg-gray-900 tpe-text-white tpe-font-bold tpe-text-xs sm:tpe-text-sm hover:tpe-bg-black",children:"Done"})]})]})]})]}):null:"vinyl"===I?null!==(o=x.vinyls)&&void 0!==o&&o[t.id]?(0,Zt.jsx)("div",{className:"tpe-w-full tpe-h-full tpe-relative",children:(0,Zt.jsx)(ha,{ref:function(e){e&&(fe.current[t.id]=e)},config:x.vinyls[t.id],variant:"vinyl-header"===g.id?"header":"vinyl-photo"===g.id?"photo":"classic",printWidthMm:25.4*m.widthIn,printHeightMm:25.4*m.heightIn,marginFrac:(t.x||3)/100,photoUrl:function(){var e=x.vinyls[t.id].centrePhotoId;if(e){var n=(null==b?void 0:b[e])||v[e];if(n)return/^https?:\/\//.test(n)?n+(n.includes("?")?"&":"?")+"tpecors=1":n}}(),widthPx:Math.round(null!=Je&&Je.w?Je.w*(t.w/100):800),heightPx:Math.round(null!=Je&&Je.h?Je.h*(t.h/100):800),freezeFit:at||st,onLoadingChange:function(e){return Yr("vinyl-".concat(t.id),e)}})}):null:"album"===I?null!==(a=x.albums)&&void 0!==a&&a[t.id]?(0,Zt.jsx)("div",{className:"tpe-w-full tpe-h-full tpe-relative",style:{backgroundColor:x.albums[t.id].bgColor},children:(0,Zt.jsx)(Ta,{ref:function(e){e&&(me.current[t.id]=e)},config:x.albums[t.id],printWidthMm:25.4*m.widthIn,printHeightMm:25.4*m.heightIn,marginFrac:(t.x||3)/100,coverUrl:function(){var e=x.albums[t.id];if(e.useCustomCover&&e.coverPhotoId){var n=(null==b?void 0:b[e.coverPhotoId])||v[e.coverPhotoId];if(!n)return;return/^https?:\/\//.test(n)?n+(n.includes("?")?"&":"?")+"tpecors=1":n}var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1500;return e&&/\d+x\d+bb\.(jpg|png)/i.test(e)?e.replace(/\d+x\d+bb\.(jpg|png)/i,"".concat(t,"x").concat(t,"bb.$1")):e}(e.coverArtUrl);if(r)return/^https?:\/\//.test(r)?r+(r.includes("?")?"&":"?")+"tpecors=1":r}(),widthPx:Math.round(null!=Je&&Je.w?Je.w*(t.w/100):800),heightPx:Math.round(null!=Je&&Je.h?Je.h*(t.h/100):800),onLoadingChange:function(e){return Yr("album-".concat(t.id),e)}})}):null:"soundwave"===I?null!==(i=x.soundwaves)&&void 0!==i&&i[t.id]?(0,Zt.jsxs)("div",{className:"tpe-w-full tpe-h-full tpe-relative",children:[(0,Zt.jsx)(Rr,{ref:function(e){e&&(de.current[t.id]=e)},config:x.soundwaves[t.id],widthPx:Math.round(null!=Je&&Je.w?Je.w*(t.w/100):800),heightPx:Math.round(null!=Je&&Je.h?Je.h*(t.h/100):400)}),!g.posterMeta&&(0,Zt.jsx)(ra,{scanCode:x.soundwaves[t.id].scanCode,audioUrl:x.soundwaves[t.id].audioUrl,metadata:x.soundwaves[t.id].metadata,backgroundHex:x.soundwaves[t.id].backgroundColor,slotWidthPx:Math.round(null!=Je&&Je.w?Je.w*(t.w/100):800),slotHeightPx:Math.round(null!=Je&&Je.h?Je.h*(t.h/100):400)})]}):null:p?(0,Zt.jsxs)("div",{className:"tpe-w-full tpe-h-full tpe-relative tpe-overflow-hidden tpe-bg-gray-100",children:[(0,Zt.jsx)("img",{src:p,crossOrigin:"anonymous",alt:"User upload",className:"tpe-absolute tpe-max-w-none",style:{position:"absolute",top:"50%",left:"50%",maxWidth:"100%",maxHeight:"100%",width:"auto",height:"auto",transformOrigin:l.crop?"".concat(l.crop.x,"% ").concat(l.crop.y,"%"):"50% 50%",transform:l.crop?"translate(-50%, -50%) translate(".concat(50-l.crop.x,"%, ").concat(50-l.crop.y,"%) scale(").concat(l.crop.zoom,")"):"translate(-50%, -50%) scale(1)"}}),l.recropped&&(0,Zt.jsx)("div",{"data-html2canvas-ignore":"true",className:"tpe-absolute tpe-top-1 tpe-left-1 tpe-bg-amber-500 tpe-text-white tpe-text-[10px] tpe-font-bold tpe-px-1.5 tpe-py-0.5 tpe-rounded tpe-shadow tpe-pointer-events-none",title:"Auto-recropped after size change — click to adjust",children:"Recropped"})]}):(0,Zt.jsxs)("div",{className:"tpe-w-full tpe-h-full tpe-flex tpe-flex-col tpe-items-center tpe-justify-center tpe-text-gray-400 group-hover:tpe-text-gray-600 tpe-transition-colors tpe-p-1 tpe-text-center",children:[(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:V?"tpe-text-indigo-500 tpe-scale-110":"",children:[(0,Zt.jsx)("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2"}),(0,Zt.jsx)("circle",{cx:"9",cy:"9",r:"2"}),(0,Zt.jsx)("path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"})]}),(0,Zt.jsx)("span",{className:"tpe-text-xs tpe-mt-1 tpe-font-medium ".concat(V?"tpe-text-indigo-600":""),children:M!==t.id||z?V?"Tap Here":"Click to Add":"Upload photo first"})]}),(ne="oldmap"===I&&!!g.mapFrameStyle,re="osmap"===I&&(g.osTitlePlate||!!g.mapFrameStyle),!K||re||ne?null:(0,Zt.jsx)("div",{className:x.metaFontFamily||x.fontFamily,style:{position:"absolute",bottom:"".concat(In,"px"),right:"".concat(In,"px"),backgroundColor:ne?"transparent":"rgba(255, 255, 255, 0.9)",padding:"0.4em 0.6em",fontSize:"".concat(Wn,"px"),color:ne?"#262320":"#000000",zIndex:25,pointerEvents:"none",borderRadius:"2px",boxShadow:ne?"none":"0 1px 3px rgba(0,0,0,0.15)",lineHeight:1,whiteSpace:"nowrap"},children:K})),"osmap"===I&&g.osTitlePlate&&O&&(0,Zt.jsxs)("div",{style:{position:"absolute",bottom:"".concat(In,"px"),left:"".concat(In,"px"),maxWidth:"64%",backgroundColor:"rgba(255, 255, 255, 0.95)",border:"1px solid rgba(0,0,0,0.18)",borderLeft:"".concat(Math.max(2,.3*Wn),"px solid #c2185b"),padding:"0.55em 0.8em",zIndex:25,pointerEvents:"none",boxShadow:"0 1px 4px rgba(0,0,0,0.18)",borderRadius:"2px"},children:[(0,Zt.jsx)("div",{className:x.fontFamily,style:{fontSize:"".concat(1.7*Wn,"px"),fontWeight:700,textTransform:"uppercase",letterSpacing:"0.04em",color:"#1f2937",lineHeight:1.1,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:O.locationLabel||"Location"}),K&&(0,Zt.jsx)("div",{className:x.metaFontFamily||x.fontFamily,style:{fontSize:"".concat(Wn,"px"),color:"#4b5563",marginTop:"0.3em",lineHeight:1,whiteSpace:"nowrap"},children:K})]})]}),(oe||ae||ie)&&(0,Zt.jsx)("div",{className:"tpe-absolute tpe-pointer-events-none tpe-transition-all tpe-duration-200 tpe-z-20 tpe-ignore-capture ".concat(ae?"tpe-ring-4 tpe-ring-green-400 tpe-opacity-80":oe?"tpe-ring-4 tpe-ring-blue-500":"tpe-ring-4 tpe-ring-indigo-400 tpe-ring-opacity-50 tpe-
2animate-pulse"),style:{left:"".concat(t.x,"%"),top:"".concat(t.y,"%"),width:"".concat(t.w,"%"),height:"".concat(t.h,"%")}})]},t.id)}),"map-modern-fade"===g.id&&(0,Zt.jsx)(Zt.Fragment,{children:(0,Zt.jsx)("div",{className:"tpe-absolute tpe-bottom-0 tpe-left-0 tpe-w-full tpe-h-[40%] tpe-pointer-events-none tpe-z-20",style:{background:"linear-gradient(to top, #FFFFFF 20%, #FFFFFF 40%, rgba(255,255,255,0) 100%)"}})}),g.hasCaption&&(0,Zt.jsx)("div",{ref:ie,className:"tpe-absolute tpe-left-0 tpe-w-full tpe-flex tpe-items-center tpe-justify-center tpe-overflow-hidden tpe-pointer-events-none ".concat(fo?"tpe-top-0":"tpe-bottom-0"," ").concat("map-modern-fade"===g.id?"tpe-z-20":""),style:{height:"20%",paddingBottom:fo?0:"".concat(ln,"%"),paddingTop:fo?"".concat(ln,"%"):0,paddingLeft:"".concat(sr,"%"),paddingRight:"".concat(cr,"%"),textAlign:lr},children:(0,Zt.jsxs)("div",{ref:le,className:"tpe-w-full tpe-flex tpe-flex-col ".concat(ur," tpe-justify-center"),style:{color:x.textColor,lineHeight:"1.2"},children:[x.captionLines.map(function(t,n){return(0,Zt.jsxs)(e.Fragment,{children:[(0,Zt.jsx)("div",{className:t.fontFamily||x.fontFamily,style:{fontWeight:t.isBold?700:400,fontSize:"".concat(Cn,"px"),width:"100%",whiteSpace:"pre-wrap",overflowWrap:"break-word",color:t.color||x.textColor},children:t.text||(0,Zt.jsx)("span",{className:"tpe-opacity-30",children:"Enter text"})}),"map-modern-fade"===g.id&&0===n&&(0,Zt.jsx)("div",{style:{backgroundColor:x.textColor,width:"".concat(kn,"px"),height:"".concat(Dn,"px"),marginTop:"".concat(An,"px"),marginBottom:"".concat(An,"px")}})]},t.id)}),qn&&Jn&&(0,Zt.jsx)("div",{className:x.metaFontFamily||x.fontFamily,style:{fontWeight:400,fontSize:"".concat(Cn,"px"),textTransform:"uppercase",marginTop:"".concat(.5*Cn,"px")},children:Jn}),Hn&&Qn&&(0,Zt.jsx)("div",{className:x.metaFontFamily||x.fontFamily,style:{fontWeight:400,fontSize:"".concat(Cn,"px"),textTransform:"uppercase",marginTop:"".concat(.5*Cn,"px")},children:Qn})]})}),"soundwave"===I&&g.posterMeta&&(Ir=g.posterMeta,Ur=null===(jr=x.soundwaves)||void 0===jr?void 0:jr[1],kr=null==Ur?void 0:Ur.metadata,Dr=(null===(Tr=x.captionLines)||void 0===Tr||null===(Tr=Tr[0])||void 0===Tr?void 0:Tr.text)||(null==kr?void 0:kr.title)||"",Ar=(null===(Nr=x.captionLines)||void 0===Nr||null===(Nr=Nr[1])||void 0===Nr?void 0:Nr.text)||(null==kr?void 0:kr.artist)||"",Cr=(null==kr?void 0:kr.releaseYear)||"",Or=null!=kr&&kr.durationSec?"".concat(Math.floor(kr.durationSec/60),":").concat(String(kr.durationSec%60).padStart(2,"0")):"",Er=(null==kr?void 0:kr.label)||(null==kr?void 0:kr.album)||"",Vr=Xn,Xr=Pn,Pr=.5*zn,Zr=.6*Pr,Gr=Math.max(1,.88*vn),Fr="center"===Ir.align,Br="right"===Ir.align?"tpe-items-end":Fr?"tpe-items-center":"tpe-items-start",Qr=null!==(Wr=Ir.align)&&void 0!==Wr?Wr:"left",Hr=function(e){var t="".concat(6,"%"),n={position:"absolute"};return"top"===e||"bottom"===e?(n.left=t,n.right=t,n["top"===e?"top":"bottom"]=t):(n["t"===e[0]?"top":"bottom"]=t,n["l"===e[1]?"left":"right"]=t),n}
2,Kr=Ir.metaAt===Ir.titleAt,Jr=Cr||Or||Er?(0,Zt.jsxs)(Zt.Fragment,{children:[Er&&(0,Zt.jsx)("div",{style:{fontSize:"".concat(Pr,"px"),fontWeight:400,marginBottom:"".concat(.3*Pr,"px")},children:Er}),(Cr||Or)&&(0,Zt.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",fontSize:"".concat(Zr,"px"),lineHeight:"".concat(1.35*Zr,"px"),height:"".concat(1.35*Zr+.4*Pr,"px"),border:"".concat(Math.max(1,.08*Pr),"px solid ").concat(x.textColor),padding:"0 ".concat(.5*Pr,"px"),boxSizing:"border-box",whiteSpace:"nowrap"},children:[Cr,Or?"Length ".concat(Or):""].filter(Boolean).join(" // ")})]}):null,qr=(0,Zt.jsxs)("div",{className:"tpe-flex tpe-flex-col ".concat(Br," ").concat(x.fontFamily),style:Da(Da({},Hr(Ir.titleAt)),{},{textAlign:Qr}),children:[(0,Zt.jsx)("div",{ref:Vn,style:{fontWeight:800,fontSize:"".concat(Vr,"px"),lineHeight:1,letterSpacing:"-0.01em",whiteSpace:"pre-wrap",overflowWrap:"break-word",maxWidth:"".concat(Gr,"px")},children:Dr||(0,Zt.jsx)("span",{className:"tpe-opacity-30",children:"Title"})}),(0,Zt.jsx)("div",{style:{fontWeight:700,fontSize:"".concat(Xr,"px"),marginTop:"".concat(.35*Yn,"px"),letterSpacing:"0.02em",maxWidth:"".concat(Gr,"px"),whiteSpace:"pre-wrap",overflowWrap:"break-word"},children:Ar||(0,Zt.jsx)("span",{className:"tpe-opacity-30",children:"Artist"})}),Ur&&Ur.scanCode.enabled&&"none"!==Ur.scanCode.type&&(0,Zt.jsx)("div",{style:{marginTop:"".concat(.45*Yn,"px")},children:(0,Zt.jsx)(ta,{scanCode:Ur.scanCode,metadata:kr,audioUrl:Ur.audioUrl,backgroundHex:Ur.backgroundColor,sizePx:Ur.scanCode.sizePct/100*vn})}),Kr&&Jr&&(0,Zt.jsx)("div",{className:"tpe-flex tpe-flex-col ".concat(Br," ").concat(x.metaFontFamily||x.fontFamily),style:{marginTop:"".concat(.6*Yn,"px")},children:Jr})]}),_r=!Ir.metaAt||"tr"!==Ir.metaAt&&"br"!==Ir.metaAt?"top"!==Ir.metaAt&&"bottom"!==Ir.metaAt||!Fr?"tpe-items-start":"tpe-items-center":"tpe-items-end",(0,Zt.jsxs)("div",{className:"tpe-absolute tpe-inset-0 tpe-pointer-events-none",style:{color:x.textColor},children:[qr,Ir.metaAt&&Jr&&!Kr&&(0,Zt.jsx)("div",{className:"tpe-flex tpe-flex-col ".concat(_r," ").concat(x.metaFontFamily||x.fontFamily),style:Da(Da({},Hr(Ir.metaAt)),{},{textAlign:"top"===Ir.metaAt||"bottom"===Ir.metaAt?Qr:void 0}),children:Jr})]}))]})})})]})]}),$e&&(0,y.createPortal)((0,Zt.jsxs)("div",{className:"tpe-fixed tpe-inset-0 tpe-z-[99999] tpe-bg-black tpe-flex tpe-items-center tpe-justify-center tpe-animate-fade-in tpe-overflow-hidden tpe-select-none",children:[(0,Zt.jsx)("button",{onClick:function(){return et(null)},className:"tpe-absolute tpe-top-4 tpe-right-4 tpe-text-white tpe-z-50 tpe-p-2 tpe-bg-gray-800/50 tpe-rounded-full hover:tpe-bg-gray-700 tpe-backdrop-blur",children:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,Zt.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),(0,Zt.jsx)("div",{className:"tpe-w-full tpe-h-full tpe-flex tpe-items-center tpe-justify-center tpe-cursor-move",onWheel:function(e){e.stopPropagation();var t=-.001*e.deltaY,n=Math.min(Math.max(1,St+t),4);jt(n)},onMouseDown:ao,onMouseMove:io,onMouseUp:lo,onMouseLeave:lo,onTouchStart:function(e){if(2===e.touches.length){kt(!1);var t=Math.hypot(e.touches[0].clientX-e.touches[1].clientX,e.touches[0].clientY-e.touches[1].clientY);Ot.current=t,Et.current=St}else ao(e)},onTouchMove:function(e){if(2===e.touches.length&&Ot.current){var t=Math.hypot(e.touches[0].clientX-e.touches[1].clientX,e.touches[0].clientY-e.touches[1].clientY)/Ot.current,n=Math.min(Math.max(1,Et.current*t),4);jt(n)}else io(e)},onTouchEnd:function(e){e.touches.length<2&&(Ot.current=null),lo()},children:(0,Zt.jsx)("img",{src:$e,alt:"Map Fullscreen",style:{transform:"translate(".concat(Nt.x,"px, ").concat(Nt.y,"px) scale(").concat(St,")"),transition:Ut?"none":"transform 0.1s ease-out",maxWidth:"90%",maxHeight:"90%",pointerEvents:"none"},className:"tpe-shadow-2xl"})}),(0,Zt.jsxs)("div",{className:"tpe-absolute tpe-bottom-8 tpe-left-1/2 tpe--translate-x-1/2 tpe-flex tpe-items-center tpe-gap-4 tpe-bg-gray-800/80 tpe-backdrop-blur tpe-px-4 tpe-py-2 tpe-rounded-full tpe-text-white",children:[(0,Zt.jsx)("button",{onClick:function(){return jt(function(e){return Math.max(1,e-.5)})},className:"hover:tpe-text-blue-300",children:"-"}),(0,Zt.jsxs)("span",{className:"tpe-text-xs tpe-font-mono tpe-w-12 tpe-text-center",children:[(100*St).toFixed(0),"%"]}),(0,Zt.jsx)("button",{onClick:function(){return jt(function(e){return Math.min(4,e+.5)})},className:"hover:tpe-text-blue-300",children:"+"})]})]}),document.body)]})});Ka.displayName="ProductPreview";
2const Ja=Ka;function qa(e,[t,n]){return Math.min(n,Math.max(t,e))}function _a(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function $a(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function ei(...e){return t=>{let n=!1;const r=e.map(e=>{const r=$a(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():$a(e[t],null)}}}}function ti(...t){return e.useCallback(ei(...t),t)}function ni(t,n=[]){let r=[];const o=()=>{const n=r.map(t=>e.createContext(t));return function(r){const o=r?.[t]||n;return e.useMemo(()=>({[`__scope${t}`]:{...r,[t]:o}}),[r,o])}};return o.scopeName=t,[function(n,o){const a=e.createContext(o),i=r.length;r=[...r,o];const l=n=>{const{scope:r,children:o,...l}=n,s=r?.[t]?.[i]||a,c=e.useMemo(()=>l,Object.values(l));return(0,Zt.jsx)(s.Provider,{value:c,children:o})};return l.displayName=n+"Provider",[l,function(r,l){const s=l?.[t]?.[i]||a,c=e.useContext(s);if(c)return c;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},ri(o,...n)]}function ri(...t){const n=t[0];if(1===t.length)return n;const r=()=>{const r=t.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(t){const o=r.reduce((e,{useScope:n,scopeName:r})=>({...e,...n(t)[`__scope${r}`]}),{});return e.useMemo(()=>({[`__scope${n.scopeName}`]:o}),[o])}};return r.scopeName=n.scopeName,r}"undefined"==typeof window||!window.document||window.document.createElement;var oi=globalThis?.document?e.useLayoutEffect:()=>{},ai=t[" useInsertionEffect ".trim().toString()]||oi;Symbol("RADIX:SYNC_STATE");var ii=e.createContext(void 0);function li(t){const n=si(t),r=e.forwardRef((t,r)=>{const{children:o,...a}=t,i=e.Children.toArray(o),l=i.find(ui);if(l){const t=l.props.children,o=i.map(n=>n===l?e.Children.count(t)>1?e.Children.only(null):e.isValidElement(t)?t.props.children:null:n);return(0,Zt.jsx)(n,{...a,ref:r,children:e.isValidElement(t)?e.cloneElement(t,void 0,o):null})}return(0,Zt.jsx)(n,{...a,ref:r,children:o})});return r.displayName=`${t}.Slot`,r}function si(t){const n=e.forwardRef((t,n)=>{const{children:r,...o}=t;if(e.isValidElement(r)){const t=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}(r),a=function(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(o,r.props);return r.type!==e.Fragment&&(a.ref=n?ei(n,t):t),e.cloneElement(r,a)}return e.Children.count(r)>1?e.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}var ci=Symbol("radix.slottable");function ui(t){return e.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===ci}var pi=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((t,n)=>{const r=li(`Primitive.${n}`),o=e.forwardRef((e,t)=>{const{asChild:o,...a}=e,i=o?r:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,Zt.jsx)(i,{...a,ref:t})});return o.displayName=`Primitive.${n}`,{...t,[n]:o}},{});Map;var di=["PageUp","PageDown"],fi=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],mi={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},hi="Slider",[gi,xi,yi]=function(t){const n=t+"CollectionProvider",[r,o]=ni(n),[a,i]=r(n,{collectionRef:{current:null},itemMap:new Map}),l=t=>{const{scope:n,children:r}=t,o=e.useRef(null),i=e.useRef(new Map).current;return(0,Zt.jsx)(a,{scope:n,itemMap:i,collectionRef:o,children:r})};l.displayName=n;const s=t+"CollectionSlot",c=li(s),u=e.forwardRef((e,t)=>
vendor: 4,463 bytes, line 2
2{const{scope:n,children:r}=e,o=ti(t,i(s,n).collectionRef);return(0,Zt.jsx)(c,{ref:o,children:r})});u.displayName=s;const p=t+"CollectionItemSlot",d="data-radix-collection-item",f=li(p),m=e.forwardRef((t,n)=>{const{scope:r,children:o,...a}=t,l=e.useRef(null),s=ti(n,l),c=i(p,r);return e.useEffect(()=>(c.itemMap.set(l,{ref:l,...a}),()=>{c.itemMap.delete(l)})),(0,Zt.jsx)(f,{[d]:"",ref:s,children:o})});return m.displayName=p,[{Provider:l,Slot:u,ItemSlot:m},function(n){const r=i(t+"CollectionConsumer",n),o=e.useCallback(()=>{const e=r.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${d}]`)),n=Array.from(r.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current));return n},[r.collectionRef,r.itemMap]);return o},o]}(hi),[vi,bi]=ni(hi,[yi]),[Yi,Mi]=vi(hi),wi=e.forwardRef((t,n)=>{const{name:r,min:o=0,max:a=100,step:i=1,orientation:l="horizontal",disabled:s=!1,minStepsBetweenThumbs:c=0,defaultValue:u=[o],value:p,onValueChange:d=()=>{},onValueCommit:f=()=>{},inverted:m=!1,form:h,...g}=t,x=e.useRef(new Set),y=e.useRef(0),v="horizontal"===l?Ti:Ni,[b=[],Y]=function({prop:t,defaultProp:n,onChange:r=()=>{},caller:o}){const[a,i,l]=function({defaultProp:t,onChange:n}){const[r,o]=e.useState(t),a=e.useRef(r),i=e.useRef(n);return ai(()=>{i.current=n},[n]),e.useEffect(()=>{a.current!==r&&(i.current?.(r),a.current=r)},[r,a]),[r,o,i]}({defaultProp:n,onChange:r}),s=void 0!==t,c=s?t:a;{const n=e.useRef(void 0!==t);e.useEffect(()=>{const e=n.current;if(e!==s){const t=e?"controlled":"uncontrolled",n=s?"controlled":"uncontrolled";console.warn(`${o} is changing from ${t} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}n.current=s},[s,o])}const u=e.useCallback(e=>{if(s){const n=function(e){return"function"==typeof e}(e)?e(t):e;n!==t&&l.current?.(n)}else i(e)},[s,t,i,l]);return[c,u]}({prop:p,defaultProp:u,onChange:e=>{const t=[...x.current];t[y.current]?.focus(),d(e)}}),M=e.useRef(b);function w(e,t,{commit:n}={commit:!1}){const r=function(e){return(String(e).split(".")[1]||"").length}(i),l=function(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}(Math.round((e-o)/i)*i+o,r),s=qa(l,[o,a]);Y((e=[])=>{const r=function(e=[],t,n){const r=[...e];return r[n]=t,r.sort((e,t)=>e-t)}(e,s,t);if(function(e,t){if(t>0){const n=function(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}(e);return Math.min(...n)>=t}return!0}(r,c*i)){y.current=r.indexOf(s);const t=String(r)!==String(e);return t&&n&&f(r),t?r:e}return e})}return(0,Zt.jsx)(Yi,{scope:t.__scopeSlider,name:r,disabled:s,min:o,max:a,valueIndexToChangeRef:y,thumbs:x.current,values:b,orientation:l,form:h,children:(0,Zt.jsx)(gi.Provider,{scope:t.__scopeSlider,children:(0,Zt.jsx)(gi.Slot,{scope:t.__scopeSlider,children:(0,Zt.jsx)(v,{"aria-disabled":s,"data-disabled":s?"":void 0,...g,ref:n,onPointerDown:_a(g.onPointerDown,()=>{s||(M.current=b)}),min:o,max:a,inverted:m,onSlideStart:s?void 0:function(e){const t=function(e,t){if(1===e.length)return 0;const n=e.map(e=>Math.abs(e-t)),r=Math.min(...n);return n.indexOf(r)}(b,e);w(e,t)},onSlideMove:s?void 0:function(e){w(e,y.current)},onSlideEnd:s?void 0:function(){const e=M.current[y.current];b[y.current]!==e&&f(b)},onHomeKeyDown:()=>!s&&w(o,0,{commit:!0}),onEndKeyDown:()=>!s&&w(a,b.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!s){const n=di.includes(e.key)||e.shiftKey&&fi.includes(e.key)?10:1,r=y.current;w(b[r]+i*n*t,r,{commit:!0})}}})})})})});wi.displayName=hi;var[Si,ji]=vi(hi,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Ti=e.forwardRef((t,n)=>{const{min:r,max:o,dir:a,inverted:i,onSlideStart:l,onSlideMove:s,onSlideEnd:c,onStepKeyDown:u,...p}=t,[d,f]=e.useState(null),m=ti(n,e=>f(e)),h=e.useRef(void 0),g=function(t){const n=e.useContext(ii);return t||n||"ltr"}(a),x="ltr"===g,y=x&&!i||!x&&i;function v(e){const t=h.current||d.getBoundingClientRect(),n=Vi([0,t.width],y?[r,o]:[o,r]);return h.current=t,n(e-t.left)}return(0,Zt.jsx)(Si,{scope:t.__scopeSlider,startEdge:y?"left":"right",endEdge:y?"right":"left",direction:y?1:-1,size:"width",children:(0,Zt.jsx)(Wi,{dir:g,"data-orientation":"horizontal",...p,ref:m,style:{...p.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{const t=v(e.clientX);l?.(t)},onSlideMove:e=>{const t=v(e.clientX);s?.(t)},onSlideEnd:()=>{h.current=void 0,c?.()},onStepKeyDown:e=>
2{const t=mi[y?"from-left":"from-right"].includes(e.key);u?.({event:e,direction:t?-1:1})}})})}),Ni=e.forwardRef((t,n)=>{const{min:r,max:o,inverted:a,onSlideStart:i,onSlideMove:l,onSlideEnd:s,onStepKeyDown:c,...u}=t,p=e.useRef(null),d=ti(n,p),f=e.useRef(void 0),m=!a;function h(e){const t=f.current||p.current.getBoundingClientRect(),n=Vi([0,t.height],m?[o,r]:[r,o]);return f.current=t,n(e-t.top)}return(0,Zt.jsx)(Si,{scope:t.__scopeSlider,startEdge:m?"bottom":"top",endEdge:m?"top":"bottom",size:"height",direction:m?1:-1,children:(0,Zt.jsx)(Wi,{"data-orientation":"vertical",...u,ref:d,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{const t=h(e.clientY);i?.(t)},onSlideMove:e=>{const t=h(e.clientY);l?.(t)},onSlideEnd:()=>{f.current=void 0,s?.()},onStepKeyDown:e=>{const t=mi[m?"from-bottom":"from-top"].includes(e.key);c?.({event:e,direction:t?-1:1})}})})}),Wi=e.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:a,onHomeKeyDown:i,onEndKeyDown:l,onStepKeyDown:s,...c}=e,u=Mi(hi,n);return(0,Zt.jsx)(pi.span,{...c,ref:t,onKeyDown:_a(e.onKeyDown,e=>{"Home"===e.key?(i(e),e.preventDefault()):"End"===e.key?(l(e),e.preventDefault()):di.concat(fi).includes(e.key)&&(s(e),e.preventDefault())}),onPointerDown:_a(e.onPointerDown,e=>{const t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),u.thumbs.has(t)?t.focus():r(e)}),onPointerMove:_a(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&o(e)}),onPointerUp:_a(e.onPointerUp,e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),a(e))})})}),Ii="SliderTrack",Ui=e.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=Mi(Ii,n);return(0,Zt.jsx)(pi.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})});Ui.displayName=Ii;var ki="SliderRange",Di=e.forwardRef((t,n)=>{const{__scopeSlider:r,...o}=t,a=Mi(ki,r),i=ji(ki,r),l=ti(n,e.useRef(null)),s=a.values.length,c=a.values.map(e=>Ei(e,a.min,a.max)),u=s>1?Math.min(...c):0,p=100-Math.max(...c);return(0,Zt.jsx)(pi.span,{"data-orientation":a.orientation,"data-disabled":a.disabled?"":void 0,...o,ref:l,style:{...t.style,[i.startEdge]:u+"%",[i.endEdge]:p+"%"}})});Di.displayName=ki;var Ai="SliderThumb",Ci=e.forwardRef((t,n)=>{const r=xi(t.__scopeSlider),[o,a]=e.useState(null),i=ti(n,e=>a(e)),l=e.useMemo(()=>o?r().findIndex(e=>e.ref.current===o):-1,[r,o]);return(0,Zt.jsx)(Li,{...t,ref:i,index:l})}),Li=e.forwardRef((t,n)=>{const{__scopeSlider:r,index:o,name:a,...i}=t,l=Mi(Ai,r),s=ji(Ai,r),[c,u]=e.useState(null),p=ti(n,e=>u(e)),d=!c||l.form||!!c.closest("form"),f=function(t){const[n,r]=e.useState(void 0);return oi(()=>
2{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const e=new ResizeObserver(e=>{if(!Array.isArray(e))return;if(!e.length)return;const n=e[0];let o,a;if("borderBoxSize"in n){const e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,a=t.blockSize}else o=t.offsetWidth,a=t.offsetHeight;r({width:o,height:a})});return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}r(void 0)},[t]),n}(c),m=l.values[o],h=void 0===m?0:Ei(m,l.min,l.max),g=function(e,t){return t>2?`Value ${e+1} of ${t}`:2===t?["Minimum","Maximum"][e]:void 0}(o,l.values.length),x=f?.[s.size],y=x?function(e,t,n){const r=e/2;return(r-Vi([0,50],[0,r])(t)*n)*n}(x,h,s.direction):0;return e.useEffect(()=>{if(c)return l.thumbs.add(c),()=>{l.thumbs.delete(c)}},[c,l.thumbs]),(0,Zt.jsxs)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[s.startEdge]:`calc(${h}% + ${y}px)`},children:[(0,Zt.jsx)(gi.ItemSlot,{scope:t.__scopeSlider,children:(0,Zt.jsx)(pi.span,{role:"slider","aria-label":t["aria-label"]||g,"aria-valuemin":l.min,"aria-valuenow":m,"aria-valuemax":l.max,"aria-orientation":l.orientation,"data-orientation":l.orientation,"data-disabled":l.disabled?"":void 0,tabIndex:l.disabled?void 0:0,...i,ref:p,style:void 0===m?{display:"none"}:t.style,onFocus:_a(t.onFocus,()=>{l.valueIndexToChangeRef.current=o})})}),d&&(0,Zt.jsx)(Oi,{name:a??(l.name?l.name+(l.values.length>1?"[]":""):void 0),form:l.form,value:m},o)]})});Ci.displayName=Ai;var Oi=e.forwardRef(({__scopeSlider:t,value:n,...r},o)=>{const a=e.useRef(null),i=ti(a,o),l=function(t){const n=e.useRef({value:t,previous:t});return e.useMemo(()=>(n.current.value!==t&&(n.current.previous=n.current.value,n.current.value=t),n.current.previous),[t])}(n);return e.useEffect(()=>{const e=a.current;if(!e)return;const t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(t,"value").set;if(l!==n&&r){const t=new Event("input",{bubbles:!0});r.call(e,n),e.dispatchEvent(t)}},[l,n]),(0,Zt.jsx)(pi.input,{style:{display:"none"},...r,ref:i,defaultValue:n})});function Ei(e,t,n){return qa(100/(n-t)*(e-t),[0,100])}function Vi(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}Oi.displayName="RadioBubbleInput";var zi=wi,Xi=Ui,Pi=Di,Zi=Ci;function Gi(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return Fi(c,"_invoke",function(n,r,o){var a,l,s,c=0,u=o||[],p=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,d.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!p&&c&&!o&&t<u.length;t++){var o,a=u[t],f=d.p,m=a[2];n>3?(o=m===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,d.v=r,d.n=a[1]):f<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,d.n=m,l=0))}if(o||n>1)return i;throw p=!0,r}return function(o,u,m){if(c>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!p;){a||(l?l<3?(l>1&&(d.n=-1),f(l,s)):d.n=s:d.v=s);try{if(c=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(p=d.n<0)?s:n.call(r,d))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:p}}}(n,o,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Fi(t={},r,function(){return this}),t),p=c.prototype=l.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Fi(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=c,Fi(p,"constructor",c),Fi(c,"constructor",s),s.displayName="GeneratorFunction",Fi(c,o,"GeneratorFunction"),Fi(p),Fi(p,o,"Generator"),Fi(p,r,function(){return this}),Fi(p,"toString",function(){return"[object Generator]"}),(Gi=function(){return{w:a,m:d}})()}function Fi(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Fi=function(e,t,n,r){function a(t,n){Fi(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Fi(e,t,n,r)}function Bi(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Ri(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){Bi(a,r,o,i,l,"next",e)}function l(e){Bi(a,r,o,i,l,"throw",e)}i(void 0)})}}function Qi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Hi(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Hi(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Hi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ki=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.85;return new Promise(function(r){var o=e.naturalWidth,a=e.naturalHeight,i=Math.max(o,a),l=i>t?t/i:1,s=Math.round(o*l),c=Math.round(a*l),u=document.createElement("canvas");u.width=s,u.height=c;var p=u.getContext("2d");p?(p.drawImage(e,0,0,s,c),u.toBlob(function(t){return r(t?URL.createObjectURL(t):e.src)},"image/jpeg",n)):r(e.src)})};const Ji=function(t){var n=t.onImagesUploaded,r=t.uploadedImages,o=t.onDeleteImage,a=(0,e.useRef)(null),i=Qi((0,e.useState)(!1),2),l=i[0],s=i[1],c=function(e){if(e){var t=[],r=[];Array.from(e).forEach(function(e){if(e.type.startsWith("image/")){var n=new Promise(function(n){var r=URL.createObjectURL(e),o=new Image;o.onload=Ri(Gi().m(function a(){var i,l,s,c;return Gi().w(function(a){for(;;)switch(a.n){case 0:return a.n=1,Promise.all([Ki(o,400),Ki(o,1200)]);case 1:i=a.v,l=Qi(i,2),s=l[0],c=l[1],URL.revokeObjectURL(r),t.push({id:Math.random().toString(36).substr(2,9),url:c,displayUrl:c,thumbUrl:s,file:e,width:o.naturalWidth,height:o.naturalHeight}),n();case 2:return a.a(2)}},a)})),o.onerror=function(){t.push({id:Math.random().toString(36).substr(2,9),url:r,displayUrl:r,thumbUrl:r,file:e}),n()},o.src=r});r.push(n)}}),Promise.all(r).then(function(){n(t)})}};return(0,Zt.jsxs)("div",{className:"tpe-mb-6",children:[(0,Zt.jsxs)("div",{className:"tpe-border-2 tpe-border-dashed tpe-rounded-xl tpe-p-6 tpe-text-center tpe-transition-colors tpe-cursor-pointer ".concat(l?"tpe-border-blue-500 tpe-bg-blue-50":"tpe-border-gray-300 hover:tpe-border-blue-400 tpe-bg-gray-50"),onDragOver:function(e){e.preventDefault(),s(!0)},onDragLeave:function(){return s(!1)},onDrop:function(e){e.preventDefault(),s(!1),c(e.dataTransfer.files)},onClick:function(){var e;return null===(e=a.current)||void 0===e?void 0:e.click()},children:[(0,Zt.jsx)("input",{type:"file",ref:a,multiple:!0,accept:"image/*",className:"tpe-hidden",onChange:function(e){return c(e.target.files)}}),(0,Zt.jsxs)("div",{className:"tpe-flex tpe-flex-col tpe-items-center tpe-gap-2",children:[(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"tpe-text-gray-400",children:[(0,Zt.jsx)("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),(0,Zt.jsx)("polyline",{points:"17 8 12 3 7 8"}),(0,Zt.jsx)("line",{x1:"12",x2:"12",y1:"3",y2:"15"})]}),(0,Zt.jsx)("span",{className:"tpe-text-sm tpe-font-medium tpe-text-gray-700",children:"Click to upload photos"}),(0,Zt.jsx)("span",{className:"tpe-text-xs tpe-text-gray-500",children:"or drag and drop here"})]})]}),r.length>0&&(0,Zt.jsx)("div",{className:"tpe-flex tpe-gap-2 tpe-overflow-x-auto tpe-py-2",children:r.map(function(e){return(0,Zt.jsxs)("div",{draggable:!0,onDragStart:function(t){t.dataTransfer.setData("text/plain","img:".concat(e.id)),t.dataTransfer.effectAllowed="copy"},className:"tpe-flex-shrink-0 tpe-w-16 tpe-h-16 tpe-rounded-md tpe-overflow-hidden tpe-border tpe-border-gray-200 tpe-relative tpe-group tpe-cursor-grab active:tpe-cursor-grabbing",title:"Drag onto a slot to place",children:[(0,Zt.jsx)("img",{src:e.thumbUrl||e.url,alt:"upload",className:"tpe-w-full tpe-h-full tpe-object-cover tpe-pointer-events-none"}),o&&(0,Zt.jsx)("button",{onClick:function(t){t.stopPropagation(),o(e.id)},className:"tpe-absolute tpe-top-0.5 tpe-right-0.5 tpe-bg-red-500 tpe-text-white tpe-rounded-full tpe-p-0.5 tpe-opacity-0 group-hover:tpe-
2opacity-100 tpe-transition-opacity",title:"Remove",children:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,Zt.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]},e.id)})})]})};var qi=function(e,t){return qi=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])},qi(e,t)};var _i=function(){return _i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},_i.apply(this,arguments)};Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var $i=o(365);function el(e,t,n,r,o){void 0===o&&(o=0);var a=ll(t.width,t.height,o),i=a.width,l=a.height;return{x:tl(e.x,i,n.width,r),y:tl(e.y,l,n.height,r)}}function tl(e,t,n,r){var o=t*r/2-n/2;return sl(e,-o,o)}function nl(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function rl(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function ol(e,t){return Math.min(e,Math.max(0,t))}function al(e,t){return t}function il(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function ll(e,t,n){var r=n*Math.PI/180;return{width:Math.abs(Math.cos(r)*e)+Math.abs(Math.sin(r)*t),height:Math.abs(Math.sin(r)*e)+Math.abs(Math.cos(r)*t)}}function sl(e,t,n){return Math.min(Math.max(e,t),n)}function cl(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(function(e){return"string"==typeof e&&e.length>0}).join(" ").trim()}var ul=function(t){function n(){var r=null!==t&&t.apply(this,arguments)||this;return r.cropperRef=e.createRef(),r.imageRef=e.createRef(),r.videoRef=e.createRef(),r.containerPosition={x:0,y:0},r.containerRef=null,r.styleRef=null,r.containerRect=null,r.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},r.dragStartPosition={x:0,y:0},r.dragStartCrop={x:0,y:0},r.gestureZoomStart=0,r.gestureRotationStart=0,r.isTouching=!1,r.lastPinchDistance=0,r.lastPinchRotation=0,r.rafDragTimeout=null,r.rafPinchTimeout=null,r.wheelTimer=null,r.currentDoc="undefined"!=typeof document?document:null,r.currentWindow="undefined"!=typeof window?window:null,r.resizeObserver=null,r.previousCropSize=null,r.isInitialized=!1,r.state={cropSize:null,hasWheelJustStarted:!1,mediaObjectFit:void 0},r.initResizeObserver=function(){if(void 0!==window.ResizeObserver&&r.containerRef){var e=!0;r.resizeObserver=new window.ResizeObserver(function(t){e?e=!1:r.computeSizes()}),r.resizeObserver.observe(r.containerRef)}},r.preventZoomSafari=function(e){return e.preventDefault()},r.cleanEvents=function(){r.currentDoc&&(r.currentDoc.removeEventListener("mousemove",r.onMouseMove),r.currentDoc.removeEventListener("mouseup",r.onDragStopped),r.currentDoc.removeEventListener("touchmove",r.onTouchMove),r.currentDoc.removeEventListener("touchend",r.onDragStopped),r.currentDoc.removeEventListener("gesturechange",r.onGestureChange),r.currentDoc.removeEventListener("gestureend",r.onGestureEnd),r.currentDoc.removeEventListener("scroll",r.onScroll))},r.clearScrollEvent=function(){r.containerRef&&r.containerRef.removeEventListener("wheel",r.onWheel),r.wheelTimer&&clearTimeout(r.wheelTimer)},r.onMediaLoad=function(){var e=r.computeSizes();e&&(r.previousCropSize=e,r.emitCropData(),r.setInitialCrop(e),r.isInitialized=!0),r.props.onMediaLoaded&&r.props.onMediaLoaded(r.mediaSize)},r.setInitialCrop=function(e){if(r.props.initialCroppedAreaPercentages){var t=function(e,t,n,r,o,a){var i=ll(t.width,t.height,n),l=sl(r.width/i.width*(100/e.width),o,a);return{crop:{x:l*i.width/2-r.width/2-i.width*l*(e.x/100),y:l*i.height/2-r.height/2-i.height*l*(e.y/100)},zoom:l}}(r.props.initialCroppedAreaPercentages,r.mediaSize,r.props.rotation,e,r.props.minZoom,r.props.maxZoom),n=t.crop,o=t.zoom;r.props.onCropChange(n),r.props.onZoomChange&&r.props.onZoomChange(o)}else if(r.props.initialCroppedAreaPixels){var a=function(e,t,n,r,o,a){void 0===n&&(n=0);
2var i=ll(t.naturalWidth,t.naturalHeight,n),l=sl(function(e,t,n){var r=function(e){return e.width>e.height?e.width/e.naturalWidth:e.height/e.naturalHeight}(t);return n.height>n.width?n.height/(e.height*r):n.width/(e.width*r)}(e,t,r),o,a),s=r.height>r.width?r.height/e.height:r.width/e.width;return{crop:{x:((i.width-e.width)/2-e.x)*s,y:((i.height-e.height)/2-e.y)*s},zoom:l}}(r.props.initialCroppedAreaPixels,r.mediaSize,r.props.rotation,e,r.props.minZoom,r.props.maxZoom);n=a.crop,o=a.zoom,r.props.onCropChange(n),r.props.onZoomChange&&r.props.onZoomChange(o)}},r.computeSizes=function(){var e,t,n,o,a,i,l=r.imageRef.current||r.videoRef.current;if(l&&r.containerRef){r.containerRect=r.containerRef.getBoundingClientRect(),r.saveContainerPosition();var s=r.containerRect.width/r.containerRect.height,c=(null===(e=r.imageRef.current)||void 0===e?void 0:e.naturalWidth)||(null===(t=r.videoRef.current)||void 0===t?void 0:t.videoWidth)||0,u=(null===(n=r.imageRef.current)||void 0===n?void 0:n.naturalHeight)||(null===(o=r.videoRef.current)||void 0===o?void 0:o.videoHeight)||0,p=c/u,d=void 0;if(l.offsetWidth<c||l.offsetHeight<u)switch(r.state.mediaObjectFit){default:case"contain":d=s>p?{width:r.containerRect.height*p,height:r.containerRect.height}:{width:r.containerRect.width,height:r.containerRect.width/p};break;case"horizontal-cover":d={width:r.containerRect.width,height:r.containerRect.width/p};break;case"vertical-cover":d={width:r.containerRect.height*p,height:r.containerRect.height}}else d={width:l.offsetWidth,height:l.offsetHeight};r.mediaSize=_i(_i({},d),{naturalWidth:c,naturalHeight:u}),r.props.setMediaSize&&r.props.setMediaSize(r.mediaSize);var f=r.props.cropSize?r.props.cropSize:function(e,t,n,r,o,a){void 0===a&&(a=0);var i=ll(e,t,a),l=i.width,s=i.height,c=Math.min(l,n),u=Math.min(s,r);return c>u*o?{width:u*o,height:u}:{width:c,height:c/o}}(r.mediaSize.width,r.mediaSize.height,r.containerRect.width,r.containerRect.height,r.props.aspect,r.props.rotation);return(null===(a=r.state.cropSize)||void 0===a?void 0:a.height)===f.height&&(null===(i=r.state.cropSize)||void 0===i?void 0:i.width)===f.width||r.props.onCropSizeChange&&r.props.onCropSizeChange(f),r.setState({cropSize:f},r.recomputeCropPosition),r.props.setCropSize&&r.props.setCropSize(f),f}},r.saveContainerPosition=function(){if(r.containerRef){var e=r.containerRef.getBoundingClientRect();r.containerPosition={x:e.left,y:e.top}}},r.onMouseDown=function(e){r.currentDoc&&(e.preventDefault(),r.currentDoc.addEventListener("mousemove",r.onMouseMove),r.currentDoc.addEventListener("mouseup",r.onDragStopped),r.saveContainerPosition(),r.onDragStart(n.getMousePoint(e)))},r.onMouseMove=function(e){return r.onDrag(n.getMousePoint(e))},r.onScroll=function(e){r.currentDoc&&(e.preventDefault(),r.saveContainerPosition())},r.onTouchStart=function(e){r.currentDoc&&(r.isTouching=!0,r.props.onTouchRequest&&!r.props.onTouchRequest(e)||(r.currentDoc.addEventListener("touchmove",r.onTouchMove,{passive:!1}),r.currentDoc.addEventListener("touchend",r.onDragStopped),r.saveContainerPosition(),2===e.touches.length?r.onPinchStart(e):1===e.touches.length&&r.onDragStart(n.getTouchPoint(e.touches[0]))))},r.onTouchMove=function(e){e.preventDefault(),2===e.touches.length?r.onPinchMove(e):1===e.touches.length&&r.onDrag(n.getTouchPoint(e.touches[0]))},r.onGestureStart=function(e){r.currentDoc&&(e.preventDefault(),r.currentDoc.addEventListener("gesturechange",r.onGestureChange),r.currentDoc.addEventListener("gestureend",r.onGestureEnd),r.gestureZoomStart=r.props.zoom,r.gestureRotationStart=r.props.rotation)},r.onGestureChange=function(e){if(e.preventDefault(),!r.isTouching){var t=n.getMousePoint(e),o=r.gestureZoomStart-1+e.scale;if(r.setNewZoom(o,t,{shouldUpdatePosition:!0}),r.props.onRotationChange){var a=r.gestureRotationStart+e.rotation;r.props.onRotationChange(a)}}},r.onGestureEnd=function(e){r.cleanEvents()},r.onDragStart=function(e){var t,n,o=e.x,a=e.y;r.dragStartPosition={x:o,y:a},r.dragStartCrop=_i({},r.props.crop),null===(n=(t=r.props).onInteractionStart)||void 0===n||n.call(t)},r.onDrag=function(e){var t=e.x,n=e.y;r.currentWindow&&(r.rafDragTimeout&&r.currentWindow.cancelAnimationFrame(r.rafDragTimeout),r.rafDragTimeout=r.currentWindow.requestAnimationFrame(function(){if(r.state.cropSize&&void 0!==t&&void 0!==n){var e=t-r.dragStartPosition.x,o=n-r.dragStartPosition.y,a={x:r.dragStartCrop.x+e,y:r.dragStartCrop.y+o},i=r.props.restrictPosition?el(a,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):a;r.props.onCropChange(i)}}))},r.onDragStopped=function(){var e,t;r.isTouching=!1,r.cleanEvents(),r.emitCropData(),null===(t=(e=r.props).onInteractionEnd)||void 0===t||t.call(e)},r.onWheel=function(e){if(r.currentWindow&&(!r.props.onWheelRequest||r.props.onWheelRequest(e))){e.preventDefault();var t=n.getMousePoint(e),o=$i(e).pixelY,a=r.props.zoom-o*r.props.zoomSpeed/200;r.setNewZoom(a,t,{shouldUpdatePosition:!0}),r.state.hasWheelJustStarted||r.setState({hasWheelJustStarted:!0},function(){var e,t;return null===(t=(e=r.props).onInteractionStart)||void 0===t?void 0:t.call(e)}),r.wheelTimer&&clearTimeout(r.wheelTimer),r.wheelTimer=r.currentWindow.setTimeout(function(){return r.setState({hasWheelJustStarted:!1},function(){var e,t;return null===(t=(e=r.props).onInteractionEnd)||void 0===t?void 0:t.call(e)})},250)}},r.getPointOnContainer=function(e,t){var n=e.x,o=e.y;if(!r.containerRect)throw new Error("The Cropper is not mounted");return{x:r.containerRect.width/2-(n-t.x),y:r.containerRect.height/2-(o-t.y)}},r.getPointOnMedia=function(e){var t=e.x,n=e.y,o=r.props,a=o.crop,i=o.zoom;return{x:(t+a.x)/i,y:(n+a.y)/i}},r.setNewZoom=function(e,t,n){var o=(void 0===n?{}:n).shouldUpdatePosition,a=void 0===o||o;if(r.state.cropSize&&r.props.onZoomChange){var i=sl(e,r.props.minZoom,r.props.maxZoom);if(a){var l=r.getPointOnContainer(t,r.containerPosition),s=r.getPointOnMedia(l),c={x:s.x*i-l.x,y:s.y*i-l.y},u=r.props.restrictPosition?el(c,r.mediaSize,r.state.cropSize,i,r.props.rotation):c;r.props.onCropChange(u)}r.props.onZoomChange(i)}},r.getCropData=function(){return r.state.cropSize?function(e,t,n,r,o,a,i){void 0===a&&(a=0),void 0===i&&(i=!0);
2var l=i?ol:al,s=ll(t.width,t.height,a),c=ll(t.naturalWidth,t.naturalHeight,a),u={x:l(100,((s.width-n.width/o)/2-e.x/o)/s.width*100),y:l(100,((s.height-n.height/o)/2-e.y/o)/s.height*100),width:l(100,n.width/s.width*100/o),height:l(100,n.height/s.height*100/o)},p=Math.round(l(c.width,u.width*c.width/100)),d=Math.round(l(c.height,u.height*c.height/100)),f=c.width>=c.height*r?{width:Math.round(d*r),height:d}:{width:p,height:Math.round(p/r)};return{croppedAreaPercentages:u,croppedAreaPixels:_i(_i({},f),{x:Math.round(l(c.width-f.width,u.x*c.width/100)),y:Math.round(l(c.height-f.height,u.y*c.height/100))})}}(r.props.restrictPosition?el(r.props.crop,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):r.props.crop,r.mediaSize,r.state.cropSize,r.getAspect(),r.props.zoom,r.props.rotation,r.props.restrictPosition):null},r.emitCropData=function(){var e=r.getCropData();if(e){var t=e.croppedAreaPercentages,n=e.croppedAreaPixels;r.props.onCropComplete&&r.props.onCropComplete(t,n),r.props.onCropAreaChange&&r.props.onCropAreaChange(t,n)}},r.emitCropAreaChange=function(){var e=r.getCropData();if(e){var t=e.croppedAreaPercentages,n=e.croppedAreaPixels;r.props.onCropAreaChange&&r.props.onCropAreaChange(t,n)}},r.recomputeCropPosition=function(){var e,t;if(r.state.cropSize){var n=r.props.crop;if(r.isInitialized&&(null===(e=r.previousCropSize)||void 0===e?void 0:e.width)&&(null===(t=r.previousCropSize)||void 0===t?void 0:t.height)&&(Math.abs(r.previousCropSize.width-r.state.cropSize.width)>1e-6||Math.abs(r.previousCropSize.height-r.state.cropSize.height)>1e-6)){var o=r.state.cropSize.width/r.previousCropSize.width,a=r.state.cropSize.height/r.previousCropSize.height;n={x:r.props.crop.x*o,y:r.props.crop.y*a}}var i=r.props.restrictPosition?el(n,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):n;r.previousCropSize=r.state.cropSize,r.props.onCropChange(i),r.emitCropData()}},r.onKeyDown=function(e){var t,n,o=r.props,a=o.crop,i=o.onCropChange,l=o.keyboardStep,s=o.zoom,c=o.rotation,u=l;if(r.state.cropSize){e.shiftKey&&(u*=.2);var p=_i({},a);switch(e.key){case"ArrowUp":p.y-=u,e.preventDefault();break;case"ArrowDown":p.y+=u,e.preventDefault();break;case"ArrowLeft":p.x-=u,e.preventDefault();break;case"ArrowRight":p.x+=u,e.preventDefault();break;default:return}r.props.restrictPosition&&(p=el(p,r.mediaSize,r.state.cropSize,s,c)),e.repeat||null===(n=(t=r.props).onInteractionStart)||void 0===n||n.call(t),i(p)}},r.onKeyUp=function(e){var t,n;switch(e.key){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":e.preventDefault();break;default:return}r.emitCropData(),null===(n=(t=r.props).onInteractionEnd)||void 0===n||n.call(t)},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}qi(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(n,t),n.prototype.componentDidMount=function(){this.currentDoc&&this.currentWindow&&(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),void 0===window.ResizeObserver&&this.currentWindow.addEventListener("resize",this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.currentDoc.addEventListener("scroll",this.onScroll),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),this.styleRef.innerHTML=".reactEasyCrop_Container {\n  position: absolute;\n  top: 0;\n  left: 0;\n  right: 0;\n  bottom: 0;\n  overflow: hidden;\n  user-select: none;\n  touch-action: none;\n  cursor: move;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n  will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_Contain {\n  max-width: 100%;\n  max-height: 100%;\n  margin: auto;\n  position: absolute;\n  top: 0;\n  bottom: 0;\n  left: 0;\n  right: 0;\n}\n.reactEasyCrop_Cover_Horizontal {\n  width: 100%;\n  height: auto;\n}\n.reactEasyCrop_Cover_Vertical {\n  width: auto;\n  height: 100%;\n}\n\n.reactEasyCrop_CropArea {\n  position: absolute;\n  left: 50%;\n  top: 50%;\n  transform: translate(-50%, -50%);\n  border: 1px solid rgba(255, 255, 255, 0.5);\n  box-sizing: border-box;\n  box-shadow: 0 0 0 9999em;\n  color: rgba(0, 0, 0, 0.5);\n  overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n  border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n  content: ' ';\n  box-sizing: border-box;\n  position: absolute;\n  border: 1px solid rgba(255, 255, 255, 0.5);\n  top: 0;\n  bottom: 0;\n  left: 33.33%;\n  right: 33.33%;\n  border-top: 0;\n  border-bottom: 0;\n}
2\n\n.reactEasyCrop_CropAreaGrid::after {\n  content: ' ';\n  box-sizing: border-box;\n  position: absolute;\n  border: 1px solid rgba(255, 255, 255, 0.5);\n  top: 33.33%;\n  bottom: 33.33%;\n  left: 0;\n  right: 0;\n  border-left: 0;\n  border-right: 0;\n}\n",this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef),this.props.setCropperRef&&this.props.setCropperRef(this.cropperRef))},n.prototype.componentWillUnmount=function(){var e,t;this.currentDoc&&this.currentWindow&&(void 0===window.ResizeObserver&&this.currentWindow.removeEventListener("resize",this.computeSizes),null===(e=this.resizeObserver)||void 0===e||e.disconnect(),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef&&(null===(t=this.styleRef.parentNode)||void 0===t||t.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent())},n.prototype.componentDidUpdate=function(e){var t,n,r,o,a,i,l,s,c;e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect||e.objectFit!==this.props.objectFit?this.computeSizes():e.zoom!==this.props.zoom?this.recomputeCropPosition():(null===(t=e.cropSize)||void 0===t?void 0:t.height)!==(null===(n=this.props.cropSize)||void 0===n?void 0:n.height)||(null===(r=e.cropSize)||void 0===r?void 0:r.width)!==(null===(o=this.props.cropSize)||void 0===o?void 0:o.width)?this.computeSizes():(null===(a=e.crop)||void 0===a?void 0:a.x)===(null===(i=this.props.crop)||void 0===i?void 0:i.x)&&(null===(l=e.crop)||void 0===l?void 0:l.y)===(null===(s=this.props.crop)||void 0===s?void 0:s.y)||this.emitCropAreaChange(),e.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),e.video!==this.props.video&&(null===(c=this.videoRef.current)||void 0===c||c.load());var u=this.getObjectFit();u!==this.state.mediaObjectFit&&this.setState({mediaObjectFit:u},this.computeSizes)},n.prototype.getAspect=function(){var e=this.props,t=e.cropSize,n=e.aspect;return t?t.width/t.height:n},n.prototype.getObjectFit=function(){var e,t,n,r;if("cover"===this.props.objectFit){if((this.imageRef.current||this.videoRef.current)&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect();var o=this.containerRect.width/this.containerRect.height;return((null===(e=this.imageRef.current)||void 0===e?void 0:e.naturalWidth)||(null===(t=this.videoRef.current)||void 0===t?void 0:t.videoWidth)||0)/((null===(n=this.imageRef.current)||void 0===n?void 0:n.naturalHeight)||(null===(r=this.videoRef.current)||void 0===r?void 0:r.videoHeight)||0)<o?"horizontal-cover":"vertical-cover"}return"horizontal-cover"}return this.props.objectFit},n.prototype.onPinchStart=function(e){var t=n.getTouchPoint(e.touches[0]),r=n.getTouchPoint(e.touches[1]);this.lastPinchDistance=nl(t,r),this.lastPinchRotation=rl(t,r),this.onDragStart(il(t,r))},n.prototype.onPinchMove=function(e){var t=this;if(this.currentDoc&&this.currentWindow){var r=n.getTouchPoint(e.touches[0]),o=n.getTouchPoint(e.touches[1]),a=il(r,o);this.onDrag(a),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame(function(){var e=nl(r,o),n=t.props.zoom*(e/t.lastPinchDistance);t.setNewZoom(n,a,{shouldUpdatePosition:!1}),t.lastPinchDistance=e;var i=rl(r,o),l=t.props.rotation+(i-t.lastPinchRotation);t.props.onRotationChange&&t.props.onRotationChange(l),t.lastPinchRotation=i})}},n.prototype.render=function(){var t,n=this,r=this.props,o=r.image,a=r.video,i=r.mediaProps,l=r.cropperProps,s=r.transform,c=r.crop,u=c.x,p=c.y,d=r.rotation,f=r.zoom,m=r.cropShape,h=r.showGrid,g=r.roundCropAreaPixels,x=r.style,y=x.containerStyle,v=x.cropAreaStyle,b=x.mediaStyle,Y=r.classes,M=Y.containerClassName,w=Y.cropAreaClassName,S=Y.mediaClassName,j=null!==(t=this.state.mediaObjectFit)&&void 0!==t?t:this.getObjectFit();return e.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(e){return n.containerRef
2=e},"data-testid":"container",style:y,className:cl("reactEasyCrop_Container",M)},o?e.createElement("img",_i({alt:"",className:cl("reactEasyCrop_Image","contain"===j&&"reactEasyCrop_Contain","horizontal-cover"===j&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===j&&"reactEasyCrop_Cover_Vertical",S)},i,{src:o,ref:this.imageRef,style:_i(_i({},b),{transform:s||"translate(".concat(u,"px, ").concat(p,"px) rotate(").concat(d,"deg) scale(").concat(f,")")}),onLoad:this.onMediaLoad})):a&&e.createElement("video",_i({autoPlay:!0,playsInline:!0,loop:!0,muted:!0,className:cl("reactEasyCrop_Video","contain"===j&&"reactEasyCrop_Contain","horizontal-cover"===j&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===j&&"reactEasyCrop_Cover_Vertical",S)},i,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:_i(_i({},b),{transform:s||"translate(".concat(u,"px, ").concat(p,"px) rotate(").concat(d,"deg) scale(").concat(f,")")}),controls:!1}),(Array.isArray(a)?a:[{src:a}]).map(function(t){return e.createElement("source",_i({key:t.src},t))})),this.state.cropSize&&e.createElement("div",_i({ref:this.cropperRef,style:_i(_i({},v),{width:g?Math.round(this.state.cropSize.width):this.state.cropSize.width,height:g?Math.round(this.state.cropSize.height):this.state.cropSize.height}),tabIndex:0,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,"data-testid":"cropper",className:cl("reactEasyCrop_CropArea","round"===m&&"reactEasyCrop_CropAreaRound",h&&"reactEasyCrop_CropAreaGrid",w)},l)))},n.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:3,minZoom:1,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},cropperProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0,keyboardStep:1},n.getMousePoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},n.getTouchPoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},n}(e.Component);function pl(e){return pl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pl(e)}function dl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fl(e,t,n){return(t=function(e){var t=function(e){if("object"!=pl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=pl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pl(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ml(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return hl(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hl(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const gl=function(t){var n=t.imageUrl,r=t.initialCrop,o=t.aspectRatio,a=t.onCancel,i=t.onSave,l=ml((0,e.useState)({x:0,y:0}),2),s=l[0],c=l[1],u=ml((0,e.useState)(r.zoom||1),2),p=u[0],d=u[1],f=ml((0,e.useState)(null),2),m=f[0],h=f[1],g=ml((0,e.useState)(!1),2),x=g[0],v=g[1],b=(0,e.useRef)(null),Y=ml((0,e.useState)(null),2),M=Y[0],w=Y[1],S=ml((0,e.useState)(null),2),j=S[0],T=S[1];(0,e.useEffect)(function(){if(b.current){var e=b.current,t=e.clientWidth,n=e.clientHeight;T({width:t,height:n})}},[]),(0,e.useEffect)(function(){var e=new Image;
2e.onload=function(){w({width:e.naturalWidth,height:e.naturalHeight})},e.src=n},[n]),(0,e.useEffect)(function(){if(M&&j&&!x){var e,t,n=j.width/j.height,o=M.width/M.height;o>n?(e=j.width,t=j.width/o):(t=j.height,e=j.height*o);var a=e*p,i=t*p,l=(r.x-50)/100*-1*a,s=(r.y-50)/100*-1*i;c({x:l,y:s}),v(!0)}},[M,j,x,r.x,r.y,p]);var N=(0,e.useCallback)(function(e,t){var n=Math.max(100/e.width,100/e.height),r=e.x+e.width/2,o=e.y+e.height/2;h({zoom:n,x:r,y:o})},[]);return(0,y.createPortal)((0,Zt.jsxs)("div",{className:"tpe-fixed tpe-inset-0 tpe-z-[9999] tpe-bg-black/90 tpe-flex tpe-flex-col tpe-animate-fade-in",children:[(0,Zt.jsx)("div",{className:"tpe-flex-1 tpe-relative tpe-w-full tpe-h-full tpe-bg-black",ref:b,children:x?(0,Zt.jsx)(ul,{image:n,crop:s,zoom:p,aspect:o,onCropChange:c,onCropComplete:N,onZoomChange:d,showGrid:!0,restrictPosition:!0,objectFit:"contain",minZoom:1,maxZoom:3}):(0,Zt.jsx)("div",{className:"tpe-absolute tpe-inset-0 tpe-flex tpe-items-center tpe-justify-center",children:(0,Zt.jsxs)("svg",{className:"tpe-animate-spin tpe-h-8 tpe-w-8 tpe-text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,Zt.jsx)("circle",{className:"tpe-opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,Zt.jsx)("path",{className:"tpe-opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})})}),(0,Zt.jsx)("div",{className:"tpe-bg-white tpe-p-4 tpe-pb-8 tpe-flex tpe-flex-col tpe-gap-4 tpe-z-10 tpe-shrink-0",children:(0,Zt.jsxs)("div",{className:"tpe-max-w-md tpe-mx-auto tpe-w-full tpe-space-y-4",children:[(0,Zt.jsxs)("div",{children:[(0,Zt.jsxs)("div",{className:"tpe-flex tpe-justify-between tpe-text-xs tpe-font-medium tpe-text-gray-500 tpe-mb-1",children:[(0,Zt.jsx)("label",{children:"Zoom"}),(0,Zt.jsxs)("span",{children:[(50*(p-1)+100).toFixed(0),"%"]})]}),(0,Zt.jsx)("input",{type:"range",value:p,min:1,max:3,step:.01,"aria-labelledby":"Zoom",onChange:function(e){return d(Number(e.target.value))},className:"tpe-w-full tpe-h-2 tpe-bg-gray-200 tpe-rounded-lg tpe-appearance-none tpe-cursor-pointer tpe-accent-neutral-900"})]}),(0,Zt.jsxs)("div",{className:"tpe-flex tpe-gap-3",children:[(0,Zt.jsx)("button",{onClick:a,className:"tpe-flex-1 tpe-py-3 tpe-text-sm tpe-font-bold tpe-text-gray-600 tpe-bg-gray-100 tpe-rounded-xl hover:tpe-bg-gray-200 tpe-transition-colors",children:"Cancel"}),(0,Zt.jsx)("button",{onClick:function(){i(m||function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dl(Object(n),!0).forEach(function(t){fl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},r))},className:"tpe-flex-1 tpe-py-3 tpe-text-sm tpe-font-bold tpe-text-white tpe-bg-neutral-900 tpe-rounded-xl hover:tpe-bg-neutral-800 tpe-transition-colors tpe-shadow-lg",children:"Apply Crop"})]})]})})]}),document.body)};var xl=[{min:240,level:"excellent",label:"Excellent quality",advice:"This photo has plenty of detail for this size."},{min:180,level:"good",label:"Good quality",advice:"Sharp at this size."},{min:120,level:"fair",label:"Fine at a distance",advice:"Slightly soft close up. Fine on a wall; drop a size for a crisper print."},{min:0,level:"poor",label:"Too small for this size",advice:"This photo will look blurry printed this big. Choose a smaller size or upload a higher-resolution photo."}];function yl(e,t){if(!e||!t)return null;var n=Number(e.width),r=Number(e.height);if(!(n&&r&&t.widthIn&&t.heightIn))return null;var o=Math.max(n,r),a=Math.min(n,r),i=Math.max(t.widthIn,t.heightIn),l=Math.min(t.widthIn,t.heightIn),s=Math.floor(Math.min(o/i,a/l)),c=xl.find(function(e){return s>=e.min})||xl[xl.length-1];return{level:c.level,dpi:s,label:c.label,advice:c.advice}}var vl={excellent:{bar:"tpe-bg-emerald-500",text:"tpe-text-emerald-700",fill:100},good:{bar:"tpe-bg-emerald-500",text:"tpe-text-emerald-700",fill:75},fair:{bar:"tpe-bg-amber-500",text:"tpe-text-amber-700",fill:45},poor:{bar:"tpe-bg-rose-500",text:"tpe-text-rose-700",fill:18}},bl=function(e){var t=e.verdict;if(!t)return null;var n=vl[t.level];return(0,Zt.jsxs)("div",{className:"tpe-flex tpe-flex-col tpe-gap-1.5 tpe-p-3 tpe-rounded-st tpe-bg-brand-sunk tpe-border tpe-border-brand-line",children:[(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-justify-between tpe-gap-3",children:[(0,Zt.jsx)("span",{className:"tpe-text-xs tpe-font-bold ".concat(n.text),children:t.label}),(0,Zt.jsxs)("span",{className:"tpe-text-[10px] tpe-text-brand-muted tpe-tabular-nums",children:[t.dpi," DPI at this size"]})]}),(0,Zt.jsx)("div",{className:"tpe-h-1.5 tpe-w-full tpe-rounded-full tpe-bg-brand-line tpe-overflow-hidden",children:(0,Zt.jsx)("div",{className:"tpe-h-full tpe-rounded-full ".concat(n.bar),style:{width:"".concat(n.fill,"%")}})}),(0,Zt.jsx)("p",{className:"tpe-text-[11px] tpe-text-brand-muted tpe-leading-snug",children:t.advice})]})},Yl=function(e){var t=e.verdict;if(!t)return null;var n=vl[t.level];return(0,Zt.jsx)("span",{className:"tpe-inline-block tpe-w-1.5 tpe-h-1.5 tpe-rounded-full tpe-shrink-0 ".concat(n.bar),title:"".concat(t.label," — ").concat(t.d
2pi," DPI"),"aria-label":t.label})};const Ml=function(e){var t=e.frame,n=e.isOpen,r=e.onClose;if(!n||!t)return null;var o=je[t.id]||je.default;return(0,y.createPortal)((0,Zt.jsxs)("div",{className:"tpe-font-Jost tpe-fixed tpe-inset-0 tpe-z-[9999] tpe-flex tpe-items-center tpe-justify-center tpe-p-4 tpe-animate-fade-in",children:[(0,Zt.jsx)("div",{className:"tpe-absolute tpe-inset-0 tpe-bg-black/60 tpe-backdrop-blur-sm tpe-transition-opacity",onClick:r}),(0,Zt.jsxs)("div",{className:"tpe-relative tpe-bg-white tpe-w-full tpe-max-w-lg tpe-rounded-2xl tpe-shadow-2xl tpe-overflow-hidden tpe-flex tpe-flex-col tpe-max-h-[90vh]",children:[(0,Zt.jsxs)("div",{className:"tpe-p-5 tpe-border-b tpe-border-gray-100 tpe-flex tpe-justify-between tpe-items-center tpe-bg-white tpe-z-10",children:[(0,Zt.jsx)("h3",{className:"tpe-text-xl tpe-font-bold tpe-text-gray-900",children:t.name}),(0,Zt.jsx)("button",{onClick:r,className:"tpe-p-2 tpe-bg-gray-100 hover:tpe-bg-gray-200 tpe-rounded-full tpe-transition-colors tpe-text-gray-600",children:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,Zt.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),(0,Zt.jsxs)("div",{className:"tpe-p-6 tpe-overflow-y-auto",children:[t.image&&(0,Zt.jsx)("div",{className:"tpe-mb-6 tpe-rounded-lg tpe-overflow-hidden tpe-bg-gray-50 tpe-border tpe-border-gray-100 tpe-shadow-sm",children:(0,Zt.jsx)("img",{src:t.image,alt:t.name,className:"tpe-w-full tpe-h-auto tpe-object-cover"})}),(0,Zt.jsx)("div",{className:"tpe-mb-6",children:(0,Zt.jsx)("p",{className:"tpe-text-gray-600 tpe-leading-relaxed tpe-text-sm md:tpe-text-base",children:o.description})}),(0,Zt.jsxs)("div",{className:"tpe-space-y-6",children:[(0,Zt.jsxs)("div",{className:"tpe-bg-gray-50 tpe-p-4 tpe-rounded-xl tpe-border tpe-border-gray-100",children:[(0,Zt.jsxs)("h4",{className:"tpe-font-bold tpe-text-gray-900 tpe-text-sm tpe-uppercase tpe-tracking-wide tpe-mb-2 tpe-flex tpe-items-center tpe-gap-2",children:[(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"tpe-text-blue-600",children:[(0,Zt.jsx)("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),(0,Zt.jsx)("polyline",{points:"14 2 14 8 20 8"}),(0,Zt.jsx)("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),(0,Zt.jsx)("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),(0,Zt.jsx)("polyline",{points:"10 9 9 9 8 9"})]}),"Paper Quality"]}),(0,Zt.jsx)("p",{className:"tpe-text-sm tpe-text-gray-700",children:o.paper})]}),(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("h4",{className:"tpe-font-bold tpe-text-gray-900 tpe-text-sm tpe-uppercase tpe-tracking-wide tpe-mb-3",children:"Key Features"}),(0,Zt.jsx)("ul",{className:"tpe-grid tpe-grid-cols-1 tpe-gap-2",children:o.features.map(function(e,t){return(0,Zt.jsxs)("li",{className:"tpe-flex tpe-items-start tpe-gap-3 tpe-text-sm tpe-text-gray-700",children:[(0,Zt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"tpe-text-green-500 tpe-shrink-0 tpe-mt-0.5",children:(0,Zt.jsx)("polyline",{points:"20 6 9 17 4 12"})}),(0,Zt.jsx)("span",{children:e})]},t)})})]})]})]})]})]}),document.body)},wl=function(e){var t=e.featureId,n=e.onClose;if(!t)return null;var r=et[t];return r?(0,y.createPortal)((0,Zt.jsxs)("div",{className:"tpe-font-Jost tpe-fixed tpe-inset-0 tpe-z-[9999] tpe-flex tpe-items-center tpe-justify-center tpe-p-4 tpe-animate-fade-in",children:[(0,Zt.jsx)("div",{className:"tpe-absolute tpe-inset-0 tpe-bg-black/60 tpe-backdrop-blur-sm tpe-transition-opacity",onClick:n}),(0,Zt.jsxs)("div",{className:"tpe-relative tpe-bg-white tpe-w-full tpe-max-w-lg tpe-rounded-2xl tpe-shadow-2xl tpe-overflow-hidden tpe-flex tpe-flex-col tpe-max-h-[90vh]",children:[(0,Zt.jsxs)("div",{className:"tpe-p-5 tpe-border-b tpe-border-gray-100 tpe-flex tpe-justify-between tpe-items-center tpe-bg-white tpe-z-10",children:[(0,Zt.jsx)("h3",{className:"tpe-text-xl tpe-font-bold tpe-text-gray-900",children:r.title}),(0,Zt.jsx)("button",{onClick:n,className:"tpe-p-2 tpe-bg-gray-100 hover:tpe-bg-gray-200 tpe-rounded-full tpe-transition-colors tpe-text-gray-600",children:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,Zt.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),(0,Zt.jsxs)("div",{className:"tpe-p-6 tpe-overflow-y-auto",children:[r.image&&(0,Zt.jsx)("div",{className:"tpe-mb-6 tpe-rounded-lg tpe-overflow-hidden tpe-bg-gray-50 tpe-border tpe-border-gray-100 tpe-shadow-sm",children:(0,Zt.jsx)("img",{src:r.image,alt:r.title,className:"tpe-w-full tpe-h-auto tpe-object-cover"})}),(0,Zt.jsx)("div",{className:"tpe-mb-6",children:(0,Zt.jsx)("p",{className:"tpe-text-gray-600 tpe-leading-relaxed tpe-text-sm md:tpe-text-base",children:r.description})}),r.bullets&&r.bullets.length>0&&(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("h4",{className:"tpe-font-bold tpe-text-gray-900 tpe-text-sm tpe-uppercase tpe-tracking-wide tpe-mb-3",children:"Key Features"}),(0,Zt.jsx)("ul",{className:"tpe-grid tpe-grid-cols-1 tpe-gap-2",children:r.bullets.map(function(e,t){return(0,Zt.jsxs)("li",{className:"tpe-flex tpe-items-start tpe-gap-3 tpe-text-sm tpe-text-gray-700",children:[(0,Zt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"tpe-text-green-500 tpe-shrink-0 tpe-mt-0.5",children:(0,Zt.jsx)("polyline",{points:"20 6 9 17 4 12"})}),(0,Zt.jsx)("span",{children:e})]},t)})})]})]})]})]}),document.body):null};function Sl(e){return Sl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sl(e)}function jl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Tl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?jl(Object(n),!0).forEach(function(t){Nl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Nl(e,t,n){return(t=function(e){var t=function(e){if("object"!=Sl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Sl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Sl(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wl(e){return function(e){if(Array.isArray(e))return kl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ul(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Il(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||Ul(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ul(e,t){if(e){if("string"==typeof e)return kl(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kl(e,t):void 0}}function kl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Dl=function(t){var n=t.initialLayout,r=t.onSave,o=t.onCancel,a=t.selectedSize,i=t.unitSystem,l=void 0===i?v.IMPERIAL:i,s=Il((0,e.useState)(2),2),c=s[0],u=s[1],p=Il((0,e.useState)(2),2),d=p[0],f=p[1],m=Il((0,e.useState)(1),2),h=m[0],g=m[1],x=Il((0,e.useState)(!1),2),b=x[0],Y=x[1],M=Il((0,e.useState)([]),2),w=M[0],S=M[1],j=Il((0,e.useState)([]),2),T=j[0],N=j[1],W=a.widthIn/a.heightIn;(0,e.useEffect)(function(){n.gridConfig?(u(n.gridConfig.rows),f(n.gridConfig.cols),g(n.gridConfig.spacing),S(n.gridConfig.internalSlots),Y(!!n.hasCaption)):(I(2,2),Y(!!n.hasCaption))},[]);var I=function(e,t){for(var n=[],r=0,o=0;o<e;o++)for(var a=0;a<t;a++)n.push({id:"slot-".concat(Date.now(),"-").concat(r++),row:o,col:a,rowSpan:1,colSpan:1});S(n),N([])},U=function(e,t){u(e),f(t),I(e,t)},k=(0,e.useMemo)(function(){return w.filter(function(e){return T.includes(e.id)})},[w,T]),D=(0,e.useMemo)(function(){if(k.length<2)return!1;var e=Math.min.apply(Math,Wl(k.map(function(e){return e.col}))),t=Math.max.apply(Math,Wl(k.map(function(e){return e.col+e.colSpan}))),n=Math.min.apply(Math,Wl(k.map(function(e){return e.row}))),r=Math.max.apply(Math,Wl(k.map(function(e){return e.row+e.rowSpan}))),o=(t-e)*(r-n),a=k.reduce(function(e,t){return e+t.colSpan*t.rowSpan},0);return o===a},[k]),A=1===k.length&&(k[0].colSpan>1||k[0].rowSpan>1),C=.393701,L=C/a.widthIn*100,O=C/a.heightIn*100,E=(0,e.useMemo)(function(){return{cellW:(100-2*L-(d>1?(d-1)*h:0))/d,cellH:(100-2*O-(c>1?(c-1)*h:0))/c}},[c,d,h,L,O]),V=function(e){var t=E.cellW,n=E.cellH,r=e.colSpan*t+(e.colSpan-1)*h,o=e.rowSpan*n+(e.rowSpan-1)*h,i=a.widthIn*(r/100),s=b?.8:1,c=a.heightIn*(o/100)*s;return l===v.METRIC?"".concat((2.54*i).toFixed(1)," x ").concat((2.54*c).toFixed(1)," cm"):"".concat(i.toFixed(1),'" x ').concat(c.toFixed(1),'"')};return(0,y.createPortal)((0,Zt.jsx)("div",{className:"tpe-font-Jost tpe-fixed tpe-inset-0 tpe-z-[9999] tpe-flex tpe-items-center tpe-justify-center tpe-p-4 md:tpe-p-10 tpe-animate-fade-in tpe-bg-black/80 tpe-backdrop-blur-sm",children:(0,Zt.jsxs)("div",{className:"tpe-bg-white tpe-w-full tpe-max-w-5xl tpe-h-full tpe-max-h-[90vh] tpe-rounded-2xl tpe-shadow-2xl tpe-overflow-hidden tpe-flex tpe-flex-col",children:[(0,Zt.jsxs)("div",{className:"tpe-p-4 tpe-border-b tpe-border-gray-100 tpe-flex tpe-justify-between tpe-items-center tpe-bg-white tpe-z-20",children:[(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("h2",{className:"tpe-font-bold tpe-text-lg tpe-text-gray-800",children:"Custom Grid Editor"}),(0,Zt.jsx)("div",{className:"tpe-flex tpe-items-center tpe-gap-3",children:(0,Zt.jsx)("p",{className:"tpe-text-xs tpe-text-gray-500",children:"Define your grid, then select multiple cells to merge them into larger slots."})})]}),(0,Zt.jsx)("button",{onClick:o,className:"tpe-p-2 hover:tpe-bg-gray-100 tpe-rounded-full tpe-transition-colors",children:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,Zt.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),(0,Zt.jsxs)("div",{className:"tpe-flex-1 tpe-flex tpe-flex-col md:tpe-flex-row tpe-overflow-hidden",children:[(0,Zt.jsx)("div",{className:"tpe-flex-1 tpe-bg-gray-100 tpe-p-8 tpe-flex tpe-items-center tpe-justify-center tpe-overflow-auto",children:(0,Zt.jsxs)("div",{className:"tpe-relative tpe-bg-white tpe-shadow-lg tpe-transition-all",style:{aspectRatio:"".concat(W),width:W>1?"90%":"auto",height:W<=1?"90%":"auto",maxHeight:"100%",maxWidth:"100%",display:"flex",flexDirection:"column"},children:[(0,Zt.jsx)("div",{className:"tpe-relative tpe-w-full tpe-border-b tpe-border-dashed tpe-border-gray-300",style:{height:b?"80%":"100%",transition:"height 0.3s ease-in-out"}
2,children:(0,Zt.jsx)("div",{className:"tpe-absolute",style:{top:"".concat(O,"%"),bottom:"".concat(O,"%"),left:"".concat(L,"%"),right:"".concat(L,"%"),display:"grid",gridTemplateColumns:"repeat(".concat(d,", 1fr)"),gridTemplateRows:"repeat(".concat(c,", 1fr)"),gap:"".concat(h,"%")},children:w.map(function(e){return(0,Zt.jsxs)("div",{onClick:function(t){return n=e.id,r=t.shiftKey||t.metaKey,void N(r?function(e){return e.includes(n)?e.filter(function(e){return e!==n}):[].concat(Wl(e),[n])}:[n]);var n,r},className:"\n                                        tpe-relative tpe-border-2 tpe-rounded-md tpe-transition-all tpe-cursor-pointer tpe-flex tpe-items-center tpe-justify-center tpe-group tpe-overflow-hidden\n                                        ".concat(T.includes(e.id)?"tpe-bg-blue-50 tpe-border-blue-500 tpe-z-10 tpe-shadow-md":"tpe-bg-gray-100 tpe-border-gray-300 hover:tpe-border-blue-300 hover:tpe-bg-gray-50","\n                                    "),style:{gridColumn:"".concat(e.col+1," / span ").concat(e.colSpan),gridRow:"".concat(e.row+1," / span ").concat(e.rowSpan)},children:[T.includes(e.id)&&(0,Zt.jsx)("div",{className:"tpe-absolute tpe-top-1 tpe-right-1 tpe-w-4 tpe-h-4 tpe-bg-blue-500 tpe-rounded-full tpe-flex tpe-items-center tpe-justify-center",children:(0,Zt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",className:"tpe-text-white",children:(0,Zt.jsx)("polyline",{points:"20 6 9 17 4 12"})})}),(0,Zt.jsxs)("div",{className:"tpe-flex tpe-flex-col tpe-items-center tpe-justify-center tpe-text-center tpe-p-1",children:[(0,Zt.jsx)("span",{className:"tpe-text-xs tpe-text-gray-500 tpe-font-medium tpe-select-none",children:V(e)}),(0,Zt.jsxs)("span",{className:"tpe-text-[10px] tpe-text-gray-400 tpe-opacity-0 group-hover:tpe-opacity-100 tpe-select-none tpe-mt-1",children:[e.colSpan,"x",e.rowSpan," Cells"]})]})]},e.id)})})}),b&&(0,Zt.jsx)("div",{className:"tpe-w-full tpe-flex tpe-items-center tpe-justify-center tpe-bg-gray-50",style:{height:"20%"},children:(0,Zt.jsx)("span",{className:"tpe-text-gray-400 tpe-font-serif tpe-text-lg tpe-italic",children:"Caption Area"})})]})}),(0,Zt.jsxs)("div",{className:"tpe-w-full md:tpe-w-72 tpe-bg-white tpe-border-t md:tpe-border-t-0 md:tpe-border-l tpe-border-gray-200 tpe-p-6 tpe-flex tpe-flex-col tpe-gap-6 tpe-z-10 tpe-overflow-y-auto",children:[(0,Zt.jsxs)("div",{className:"tpe-bg-gray-50 tpe-p-3 tpe-rounded-lg tpe-border tpe-border-gray-100 tpe-text-center",children:[(0,Zt.jsx)("span",{className:"tpe-text-xs tpe-text-gray-500 tpe-uppercase tpe-font-bold tpe-tracking-wide",children:"Total Image Slots"}),(0,Zt.jsx)("div",{className:"tpe-text-2xl tpe-font-bold tpe-text-gray-800",children:w.length})]}),(0,Zt.jsxs)("div",{className:"tpe-space-y-4 tpe-pb-4 tpe-border-b tpe-border-gray-100",children:[(0,Zt.jsx)("h3",{className:"tpe-font-bold tpe-text-gray-700 tpe-text-xs tpe-uppercase tpe-tracking-wide",children:"Grid Dimensions"}),(0,Zt.jsxs)("div",{className:"tpe-grid tpe-grid-cols-2 tpe-gap-4",children:[(0,Zt.jsxs)("div",{children:[(0,Zt.jsxs)("label",{className:"tpe-text-xs tpe-font-medium tpe-text-gray-500 tpe-mb-1 tpe-block",children:["Rows: ",c]}),(0,Zt.jsx)("input",{type:"range",min:"1",max:"10",value:c,onChange:function(e){return U(parseInt(e.target.value),d)},className:"tpe-w-full tpe-h-2 tpe-bg-gray-200 tpe-rounded-lg tpe-appearance-none tpe-cursor-pointer tpe-accent-neutral-900"})]}),(0,Zt.jsxs)("div",{children:[(0,Zt.jsxs)("label",{className:"tpe-text-xs tpe-font-medium tpe-text-gray-500 tpe-mb-1 tpe-block",children:["Columns: ",d]}),(0,Zt.jsx)("input",{type:"range",min:"1",max:"10",value:d,onChange:function(e){return U(c,parseInt(e.target.value))},className:"tpe-w-full tpe-h-2 tpe-bg-gray-200 tpe-rounded-lg tpe-appearance-none tpe-cursor-pointer tpe-accent-neutral-900"})]})]}),(0,Zt.jsxs)("div",{children:[(0,Zt.jsxs)("label",{className:"tpe-text-xs tpe-font-medium tpe-text-gray-500 tpe-mb-1 tpe-block",children:["Inner Tile Gap: ",h,"%"]}),(0,Zt.jsx)("input",{type:"range",min:"0",max:"5",step:"0.5",value:h,onChange:function(e){return g(parseFloat(e.target.value))},className:"tpe-w-full tpe-h-2 tpe-bg-gray-200 tpe-rounded-lg tpe-appearance-none tpe-cursor-pointer tpe-accent-neutral-900"}),(0,Zt.jsx)("p",{className:"tpe-text-[10px] tpe-text-gray-400 tpe-mt-1",children:"Outer border spacing is fixed at 1cm."})]}),(0,Zt.jsxs)("div",{className:"tpe-pt-2",children:[(0,Zt.jsxs)("label",{className:"tpe-flex tpe-items-center tpe-gap-2 tpe-cursor-pointer tpe-bg-gray-50 tpe-p-2 tpe-rounded tpe-border tpe-border-gray-200 hover:tpe-bg-gray-100 tpe-transition-colors",children:[(0,Zt.jsx)("input",{type:"checkbox",checked:b,onChange:function(e){return Y(e.target.checked)},className:"tpe-rounded tpe-border-gray-300 tpe-text-blue-600 focus:tpe-ring-blue-500"}),(0,Zt.jsx)("span",{className:"tpe-text-xs tpe-font-bold tpe-text-gray-700",children:"Include Caption"})]}),(0,Zt.jsx)("p",{className:"tpe-text-[10px] tpe-text-gray-400 tpe-mt-1 tpe-px-1",children:"Reserves bottom 20% for text."})]}),(0,Zt.jsx)("div",{className:"tpe-bg-yellow-50 tpe-text-yellow-800 tpe-p-2 tpe-rounded tpe-text-xs tpe-border tpe-border-yellow-100",children:"Note: Changing Rows/Cols resets the layout."})]}),(0,Zt.jsxs)("div",{className:"tpe-space-y-4",children:[(0,Zt.jsx)("h3",{className:"tpe-font-bold tpe-text-gray-700 tpe-text-xs tpe-uppercase tpe-tracking-wide",children:"Slot Actions"}),(0,Zt.jsx)("p",{className:"tpe-text-xs tpe-text-gray-500 tpe-mb-2",children:"Select multiple cells (Shift+Click) to merge them into a single larger slot."}),(0,Zt.jsxs)("button",{disabled:!D,onClick:function(){if(D){var e=Math.min.apply(Math,Wl(k.map(function(e){return e.col}))),t=Math.min.apply(Math,Wl(k.map(function(e){return e.row}))),n=Math.max.apply(Math,Wl(k.map(function(e){return e.col+e.colSpan}))),r=Math.max.apply(Math,Wl(k.map(function(e){return e.row+e.rowSpan}))),o={id:"merged-".concat(Date.now()),col:e,row:t,colSpan:n-e,rowSpan:r-t};S(function(e){return[].concat(Wl(e.filter(function(e){return!T.includes(e.id)}
2)),[o])}),N([o.id])}},className:"tpe-w-full tpe-flex tpe-items-center tpe-justify-center tpe-gap-2 tpe-p-3 tpe-rounded-lg tpe-border tpe-border-blue-100 tpe-bg-blue-50 tpe-text-blue-700 hover:tpe-bg-blue-100 hover:tpe-border-blue-200 disabled:tpe-opacity-50 disabled:tpe-cursor-not-allowed tpe-transition-all tpe-font-medium",children:[(0,Zt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Zt.jsx)("path",{d:"M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"})}),"Merge Selected"]}),(0,Zt.jsxs)("button",{disabled:!A,onClick:function(){if(A){for(var e=k[0],t=[],n=0,r=e.row;r<e.row+e.rowSpan;r++)for(var o=e.col;o<e.col+e.colSpan;o++)t.push({id:"restored-".concat(Date.now(),"-").concat(n++),row:r,col:o,rowSpan:1,colSpan:1});S(function(n){return[].concat(Wl(n.filter(function(t){return t.id!==e.id})),t)}),N([])}},className:"tpe-w-full tpe-flex tpe-items-center tpe-justify-center tpe-gap-2 tpe-p-3 tpe-rounded-lg tpe-border tpe-border-gray-200 hover:tpe-bg-gray-50 disabled:tpe-opacity-50 disabled:tpe-cursor-not-allowed tpe-transition-all tpe-text-gray-600 tpe-font-medium",children:[(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("rect",{x:"3",y:"3",width:"7",height:"7"}),(0,Zt.jsx)("rect",{x:"14",y:"3",width:"7",height:"7"}),(0,Zt.jsx)("rect",{x:"14",y:"14",width:"7",height:"7"}),(0,Zt.jsx)("rect",{x:"3",y:"14",width:"7",height:"7"})]}),"Unmerge Slot"]})]}),(0,Zt.jsxs)("div",{className:"tpe-mt-auto tpe-space-y-3 tpe-pt-6 tpe-border-t tpe-border-gray-100",children:[(0,Zt.jsx)("button",{onClick:function(){var e=E.cellW,t=E.cellH,o=w.map(function(n){var r=n.colSpan*e+(n.colSpan-1)*h,o=n.rowSpan*t+(n.rowSpan-1)*h,a=L+n.col*e+n.col*h,i=O+n.row*t+n.row*h;return b&&(i*=.8,o*=.8),{id:n.id,x:a,y:i,w:r,h:o}}),a=Tl(Tl({},n),{},{id:"custom-".concat(Date.now()),name:"Custom Grid Layout",type:"collage",hasCaption:b,defaultLineCount:b?2:0,slots:o,gridConfig:{rows:c,cols:d,spacing:h,internalSlots:w}});r(a)},className:"tpe-w-full tpe-py-3 tpe-rounded-xl tpe-font-bold tpe-text-white tpe-bg-gray-900 hover:tpe-bg-gray-800 tpe-shadow-lg tpe-transition-all",children:"Apply Layout"}),(0,Zt.jsx)("button",{onClick:o,className:"tpe-w-full tpe-py-3 tpe-rounded-xl tpe-font-bold tpe-text-gray-600 tpe-bg-gray-100 hover:tpe-bg-gray-200 tpe-transition-all",children:"Cancel"})]})]})]})]})}),document.body)};var Al=["2025-01-01","2025-04-18","2025-04-21","2025-05-05","2025-05-26","2025-08-25","2025-12-25","2025-12-26","2026-01-01","202
26-04-03","2026-04-06","2026-05-04","2026-05-25","2026-08-31","2026-12-25","2026-12-28"],Cl={US:["2025-01-01","2025-01-20","2025-02-17","2025-05-26","2025-06-19","2025-07-04","2025-09-01","2025-10-13","2025-11-11","2025-11-27","2025-12-25","2026-01-01","2026-01-19","2026-02-16","2026-05-25","2026-06-19","2026-07-03","2026-09-07","2026-10-12","2026-11-11","2026-11-26","2026-12-25"],CA:["2025-01-01","2025-04-18","2025-05-19","2025-07-01","2025-09-01","2025-10-13","2025-12-25","2025-12-26","2026-01-01","2026-04-03","2026-05-18","2026-07-01","2026-09-07","2026-10-12","2026-12-25","2026-12-26"],AU:["2025-01-01","2025-01-27","2025-04-18","2025-04-19","2025-04-21","2025-04-25","2025-12-25","2025-12-26","2026-01-01","2026-01-26","2026-04-03","2026-04-04","2026-04-06","2026-04-25","2026-12-25","2026-12-26"],GB:[].concat(Al)},Ll=function(e,t){var n=e.toISOString().split("T")[0];return t.includes(n)},Ol=function(e,t,n,r){for(var o=new Date(e),a=0;a<t;){o.setDate(o.getDate()+1);var i=o.getDay();r.includes(i)||Ll(o,n)||a++}return o},El=function(e){var t,n=e.shippingDays,r=e.shippingExclusions,o=e.destinationCountryCode,a=e.productionDays,i=void 0===a?1:a,l=new Date;try{var s,c=new Intl.DateTimeFormat("en-GB",{timeZone:"Europe/London",hour:"numeric",hour12:!1}).formatToParts(l);t=parseInt((null===(s=c.find(function(e){return"hour"===e.type}))||void 0===s?void 0:s.value)||"0",10)}catch(e){t=l.getHours()}var u=t>=12,p=new Date(l);u&&p.setDate(p.getDate()+1);var d=Ol(p,i,Al,[0,6]);return Ol(d,n,Cl[o]||[],r)},Vl=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-GB",n="long"===(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"long")?{weekday:"long",day:"numeric",month:"short"}:{day:"numeric",month:"short"};return e.toLocaleDateString(t,n)};function zl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Xl(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xl(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Pl=function(t){var n=t.isOpen,r=t.onClose,o=t.onApply,a=t.currency,i=t.defaultCountryCode,l=i&&$e.some(function(e){return e.code===i})?i:"GB",s=zl((0,e.useState)(l),2),c=s[0],u=s[1],p=zl((0,e.useState)("express"),2),d=p[0],f=p[1],m=zl((0,e.useState)(""),2),h=m[0],g=m[1],x=$e.find(function(e){return e.code===c})||$e.find(function(e){return"GB"===e.code}),v=(0,e.useMemo)(function(){try{var e,t,n=new Date,r=new Intl.DateTimeFormat("en-US",{timeZone:"Europe/London",hour:"numeric",minute:"numeric",hour12:!1}).formatToParts(n),o=parseInt((null===(e=r.find(function(e){return"hour"===e.type}))||void 0===e?void 0:e.value)||"0",10),a=parseInt((null===(t=r.find(function(e){return"minute"===e.type}))||void 0===t?void 0:t.value)||"0",10),i=12-o,l=0-a;return new Date(n.getTime()+36e5*i+6e4*l).toLocaleTimeString(void 0,{hour:"numeric",minute:"2-digit"})}catch(e){return"12:00 PM"}},[]);(0,e.useEffect)(function(){var e=x.methods[d],t="standard"===d&&"GB"===x.code?[0,6]:x.exclusions,n=El({shippingDays:e.max,shippingExclusions:t,destinationCountryCode:x.code});g(Vl(n,x.locale,"long"))},[x,d]);var b=(0,e.useCallback)(function(){var e=x.methods.express,t=x.methods.standard,n=El({shippingDays:e.max,shippingExclusions:x.exclusions,destinationCountryCode:x.code}),a=El({shippingDays:t.max,shippingExclusions:"GB"===c?[0,6]:x.exclusions,destinationCountryCode:x.code});o(Vl(n,x.locale,"long"),Vl(n,x.locale,"short"),x.name,Vl(a,x.locale,"long")),r()},[x,c,o,r]);return n?(0,y.createPortal)((0,Zt.jsxs)("div",{className:"tpe-font-Jost tpe-fixed tpe-inset-0 tpe-z-[9999] tpe-flex tpe-items-center tpe-justify-center tpe-p-4 tpe-animate-fade-in",children:[(0,Zt.jsx)("div",{className:"tpe-absolute tpe-inset-0 tpe-bg-black/60 tpe-backdrop-blur-sm tpe-transition-opacity",onClick:r}),(0,Zt.jsxs)("div",{className:"tpe-relative tpe-bg-white tpe-w-full tpe-max-w-md tpe-rounded-2xl tpe-shadow-2xl tpe-overflow-hidden tpe-flex tpe-flex-col",children:[(0,Zt.jsxs)("div",{className:"tpe-p-5 tpe-border-b tpe-border-gray-100 tpe-flex tpe-justify-between tpe-items-center tpe-bg-white tpe-z-10",children:[(0,Zt.jsx)("h3",{className:"tpe-text-lg tpe-font-bold tpe-text-gray-900",children:"Estimated Delivery"}),(0,Zt.jsx)("button",{onClick:r,className:"tpe-p-2 tpe-bg-gray-100 hover:tpe-bg-gray-200 tpe-rounded-full tpe-transition-colors tpe-text-gray-600",children:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,Zt.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),(0,Zt.jsxs)("div",{className:"tpe-p-6 tpe-space-y-6 tpe-overflow-y-auto tpe-max-h-[70vh]",children:[(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:"tpe-block tpe-text-xs tpe-font-bold tpe-text-gray-500 tpe-uppercase tpe-tracking-wide tpe-mb-2",children:"Shipping To"}),(0,Zt.jsxs)("div",{className:"tpe-relative",children:[(0,Zt.jsx)("select",{value:c,onChange:function(e){return u(e.target.value)},className:"tpe-w-full tpe-p-3 tpe-bg-gray-50 tpe-border tpe-border-gray-200 tpe-rounded-xl tpe-appearance-none tpe-outline-none focus:tpe-ring-2 focus:tpe-ring-blue-500 tpe-font-medium tpe-text-gray-900 tpe-text-[16
2px]",children:$e.map(function(e){return(0,Zt.jsx)("option",{value:e.code,children:e.name},e.code)})}),(0,Zt.jsx)("div",{className:"tpe-absolute tpe-right-3 tpe-top-1/2 tpe--translate-y-1/2 tpe-pointer-events-none tpe-text-gray-500",children:(0,Zt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Zt.jsx)("polyline",{points:"6 9 12 15 18 9"})})})]})]}),(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:"tpe-block tpe-text-xs tpe-font-bold tpe-text-gray-500 tpe-uppercase tpe-tracking-wide tpe-mb-2",children:"Shipping Method"}),(0,Zt.jsxs)("div",{className:"tpe-space-y-3",children:[(0,Zt.jsxs)("label",{className:"tpe-flex tpe-items-center tpe-justify-between tpe-p-4 tpe-rounded-xl tpe-border tpe-cursor-pointer tpe-transition-all ".concat("standard"===d?"tpe-border-blue-500 tpe-bg-blue-50 tpe-ring-1 tpe-ring-blue-500":"tpe-border-gray-200 hover:tpe-border-gray-300"),children:[(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-gap-3",children:[(0,Zt.jsx)("div",{className:"tpe-w-5 tpe-h-5 tpe-rounded-full tpe-border tpe-flex tpe-items-center tpe-justify-center ".concat("standard"===d?"tpe-border-blue-600":"tpe-border-gray-300"),children:"standard"===d&&(0,Zt.jsx)("div",{className:"tpe-w-2.5 tpe-h-2.5 tpe-bg-blue-600 tpe-rounded-full"})}),(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("div",{className:"tpe-font-bold tpe-text-gray-900 tpe-text-sm",children:"Standard Shipping"}),(0,Zt.jsx)("div",{className:"tpe-text-xs tpe-text-gray-500",children:"Business days only"})]})]}),(0,Zt.jsx)("div",{className:"tpe-text-sm tpe-font-bold tpe-text-gray-700",children:"".concat(a).concat(x.methods.standard.price.toFixed(2))}),(0,Zt.jsx)("input",{type:"radio",className:"tpe-hidden",name:"shipping",checked:"standard"===d,onChange:function(){return f("standard")}})]}),(0,Zt.jsxs)("label",{className:"tpe-flex tpe-items-center tpe-justify-between tpe-p-4 tpe-rounded-xl tpe-border tpe-cursor-pointer tpe-transition-all ".concat("express"===d?"tpe-border-blue-500 tpe-bg-blue-50 tpe-ring-1 tpe-ring-blue-500":"tpe-border-gray-200 hover:tpe-border-gray-300"),children:[(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-gap-3",children:[(0,Zt.jsx)("div",{className:"tpe-w-5 tpe-h-5 tpe-rounded-full tpe-border tpe-flex tpe-items-center tpe-justify-center ".concat("express"===d?"tpe-border-blue-600":"tpe-border-gray-300"),children:"express"===d&&(0,Zt.jsx)("div",{className:"tpe-w-2.5 tpe-h-2.5 tpe-bg-blue-600 tpe-rounded-full"})}),(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("div",{className:"tpe-font-bold tpe-text-gray-900 tpe-text-sm",children:"Express Shipping"}),(0,Zt.jsx)("div",{className:"tpe-text-xs tpe-text-gray-500",children:"GB"===c?"Includes Saturdays":"Priority dispatch"})]})]}),(0,Zt.jsx)("div",{className:"tpe-text-sm tpe-font-bold tpe-text-gray-700",children:"".concat(a).concat(x.methods.express.price.toFixed(2))}),(0,Zt.jsx)("input",{type:"radio",className:"tpe-hidden",name:"shipping",checked:"express"===d,onChange:function(){return f("express")}})]})]})]}),(0,Zt.jsxs)("div",{className:"tpe-bg-gray-50 tpe-rounded-xl tpe-p-4 tpe-text-center",children:[(0,Zt.jsx)("div",{className:"tpe-text-xs tpe-text-gray-500 tpe-mb-1",children:"Estimated Arrival"}),(0,Zt.jsx)("div",{className:"tpe-text-xl tpe-font-bold tpe-text-gray-900",children:h}),(0,Zt.jsxs)("div",{className:"tpe-text-[10px] tpe-text-gray-500 tpe-mt-1.5 tpe-font-medium tpe-uppercase tpe-tracking-wide",children:["Order by ",v]})]}),(0,Zt.jsxs)("div",{className:"tpe-bg-blue-50 tpe-rounded-lg tpe-p-3 tpe-flex tpe-gap-2",children:[(0,Zt.jsx)("div",{className:"tpe-shrink-0 tpe-mt-0.5 tpe-text-blue-500",children:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,Zt.jsx)("line",{x1:"12",y1:"16",x2:"12",y2:"12"}),(0,Zt.jsx)("line",{x1:"12",y1:"8",x2:"12.01",y2:"8"})]})}),(0,Zt.jsx)("p",{className:"tpe-text-xs tpe-text-blue-700 tpe-leading-relaxed",children:"Estimates allow for UK production holidays and destination public holidays."})]}),(0,Zt.jsx)("button",{onClick:b,className:"tpe-w-full tpe-py-4 tpe-bg-blue-600 hover:tpe-bg-blue-700 tpe-text-white tpe-font-bold tpe-rounded-xl tpe-shadow-lg tpe-transition-all",children:"Confirm & Update"})]})]})]}),document.body):null};function Zl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Gl=function(){var e;return!(null===(e=window.google)||void 0===e||null===(e=e.maps)||void 0===e||!e.places)};function Fl(){var t,n,r=(t=(0,e.useState)(Gl),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return Zl(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zl(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=r[0],a=r[1];return(0,e.useEffect)(function(){if(!o){var e=!1,t=setInterval(function(){Gl()&&!e&&(a(!0),clearInterval(t))},200);return function(){e=!0,clearInterval(t)}}},[o]),o}function Bl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Rl=function(t){var n,r,o=t.isOpen,a=t.onClose,i=t.onSelect,l=t.initialValue,s=void 0===l?"":l,c=t.placeholder,u=void 0===c?"Search location...":c,p=t.restrictCountry,d=(0,e.useRef)(null),f=(n=(0,e.useState)(s),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Bl(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bl(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=f[0],h=f[1],g=Fl();return(0,e.useEffect)(function(){o&&h(s)},[o,s]),(0,e.useEffect)(function(){if(o){var e=setTimeout(function(){var e;null===(e=d.current)||void 0===e||e.focus()},100);return function(){return clearTimeout(e)}}},[o]),(0,e.useEffect)(function(){if(o&&d.current&&g){document.body.classList.add("tpe-studio-pac-fixed");var e={types:["geocode","establishment"],fields:["geometry","name","formatted_address"]};p&&(e.componentRestrictions={country:p});var t=new window.google.maps.places.Autocomplete(d.current,e),n=(t.addListener("place_changed",function(){var e,n=t.getPlace();if(null!==(e=n.geometry)&&void 0!==e&&e.location){var r=n.geometry.location.lat(),o=n.geometry.location.lng(),l=n.name||n.formatted_address||"";i(r,o,l),a()}}),new Set),r=new MutationObserver(function(){document.querySelectorAll(".pac-container").forEach(function(e){var t=e;n.has(t)||(n.add(t),t.style.zIndex="200000")})});return r.observe(document.body,{childList:!0,subtree:!0}),function(){var e;null!==(e=window.google)&&void 0!==e&&null!==(e=e.maps)&&void 0!==e&&e.event&&window.google.maps.event.clearInstanceListeners(t),r.disconnect(),n.forEach(function(e){e.parentNode&&e.parentNode.removeChild(e)}),document.body.classList.remove("tpe-studio-pac-fixed")}}},[o,p,i,a,g]),o?(0,y.createPortal)((0,Zt.jsxs)("div",{className:"tpe-font-Jost tpe-fixed tpe-inset-0 tpe-z-[50000] tpe-bg-white/95 tpe-backdrop-blur-xl tpe-flex tpe-flex-col tpe-animate-fade-in",children:[(0,Zt.jsx)("div",{className:"tpe-shrink-0 tpe-p-4 tpe-border-b tpe-border-gray-200 tpe-bg-white tpe-shadow-sm tpe-safe-top",children:(0,Zt.jsxs)("div",{className:"tpe-max-w-2xl tpe-mx-auto tpe-flex tpe-items-center tpe-gap-3",children:[(0,Zt.jsx)("button",{onClick:a,className:"tpe-p-2 tpe-bg-gray-100 hover:tpe-bg-gray-200 tpe-rounded-full tpe-transition-colors tpe-text-gray-600",children:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,Zt.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),(0,Zt.jsxs)("div",{className:"tpe-flex-1 tpe-relative",children:[(0,Zt.jsx)("input",{ref:d,type:"text",value:m,onChange:function(e){return h(e.target.value)},placeholder:u,className:"tpe-w-full tpe-p-4 tpe-pl-12 tpe-bg-gray-50 tpe-border-0 tpe-rounded-xl tpe-text-[16
2px] tpe-shadow-inner focus:tpe-ring-2 focus:tpe-ring-blue-500 tpe-outline-none"}),(0,Zt.jsx)("div",{className:"tpe-absolute tpe-left-4 tpe-top-1/2 tpe--translate-y-1/2 tpe-text-gray-400",children:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,Zt.jsx)("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]})})]})]})}),(0,Zt.jsx)("div",{className:"tpe-flex-1 tpe-p-6 tpe-overflow-y-auto tpe-bg-gray-50/50",children:(0,Zt.jsxs)("div",{className:"tpe-max-w-2xl tpe-mx-auto tpe-text-center tpe-mt-10",children:[(0,Zt.jsx)("div",{className:"tpe-inline-flex tpe-items-center tpe-justify-center tpe-w-16 tpe-h-16 tpe-bg-blue-50 tpe-text-blue-500 tpe-rounded-full tpe-mb-4",children:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("circle",{cx:"12",cy:"10",r:"3"}),(0,Zt.jsx)("path",{d:"M12 21.7C17.3 17 20 13 20 10a8 8 0 1 0-16 0c0 3 2.7 7 8 11.7z"})]})}),(0,Zt.jsx)("h3",{className:"tpe-text-lg tpe-font-bold tpe-text-gray-900 tpe-mb-2",children:"Search for a location"}),(0,Zt.jsx)("p",{className:"tpe-text-gray-500",children:"Enter a city, address, or landmark to place it on your map."})]})})]}),document.body):null};function Ql(e){return Ql="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ql(e)}function Hl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Kl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hl(Object(n),!0).forEach(function(t){Jl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Jl(e,t,n){return(t=function(e){var t=function(e){if("object"!=Ql(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ql(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ql(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ql(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var $l=function(e){var t=e.value,n=e.open,r=e.onToggle,o=e.ariaLabel;return(0,Zt.jsxs)("button",{type:"button","aria-label":o,"aria-expanded":n,onClick:r,className:"tpe-flex tpe-items-center tpe-gap-1.5 tpe-p-1 tpe-pr-2 tpe-border tpe-rounded-full tpe-bg-white tpe-shadow-sm tpe-transition-colors ".concat(n?"tpe-border-gray-900":"tpe-border-gray-200 hover:tpe-border-gray-400"),children:[(0,Zt.jsx)("span",{className:"tpe-w-5 tpe-h-5 tpe-rounded-full tpe-border tpe-border-gray-300",style:{backgroundColor:t}}),(0,Zt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",className:"tpe-text-gray-500 tpe-transition-transform ".concat(n?"tpe-rotate-180":""),children:(0,Zt.jsx)("polyline",{points:"6 9 12 15 18 9"})})]})}
2,es=function(e){var t=e.value,n=e.onChange;return(0,Zt.jsx)("div",{className:"tpe-mt-2 tpe-p-3 tpe-bg-white tpe-border tpe-border-gray-200 tpe-rounded-lg tpe-shadow-sm tpe-animate-fade-in",children:(0,Zt.jsx)("div",{className:"tpe-flex tpe-flex-wrap tpe-gap-2",children:Ye.map(function(e){return(0,Zt.jsx)("button",{type:"button","aria-label":"Color ".concat(e),onClick:function(){return n(e)},className:"tpe-w-7 tpe-h-7 tpe-rounded-full tpe-border tpe-shadow-sm tpe-transition-transform hover:tpe-scale-110 ".concat(t===e?"tpe-ring-2 tpe-ring-offset-1 tpe-ring-gray-900":"tpe-border-gray-200"),style:{backgroundColor:e}},e)})})})};const ts=function(t){var n,r,o,a,i,l,s,c,u,p,d,f,m=t.marker,h=t.index,g=t.onUpdate,x=t.onRemove,y=t.mapBounds,v=t.isExpanded,b=t.onToggle,Y=t.onStartReposition,M=(0,e.useRef)(null),w=ql((0,e.useState)(""),2),S=w[0],j=w[1],T=ql((0,e.useState)(!1),2),N=T[0],W=T[1],I=ql((0,e.useState)(null),2),U=I[0],k=I[1],D=ql((0,e.useState)(!1),2),A=D[0],C=D[1],L=ql((0,e.useState)({x:0,y:0}),2),O=L[0],E=L[1],V=(0,e.useRef)(null),z=ql((0,e.useState)(!1),2),X=z[0],P=z[1],Z=(0,e.useMemo)(function(){if(!y)return!1;var e=ql(y,4),t=e[0],n=e[1],r=e[2],o=e[3],a=m.lat,i=m.lng;return a<n||a>o||i<t||i>r},[m.lat,m.lng,y]),G=function(){C(!1)},F=(0,e.useMemo)(function(){if("custom-photo"===m.styleId)return m.image?(0,Zt.jsx)("img",{src:m.image,alt:"",className:"tpe-w-5 tpe-h-5 tpe-rounded-full tpe-object-cover tpe-border-2",style:{borderColor:m.color}}):(0,Zt.jsx)("span",{className:"tpe-w-5 tpe-h-5 tpe-rounded-full tpe-flex tpe-items-center tpe-justify-center",style:{backgroundColor:m.color},children:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"#fff",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),(0,Zt.jsx)("circle",{cx:"8.5",cy:"8.5",r:"1.5"}),(0,Zt.jsx)("polyline",{points:"21 15 16 10 5 21"})]})});var e=_e.find(function(e){return e.id===m.styleId})||_e[0];return(0,Zt.jsx)("span",{className:"tpe-w-5 tpe-h-5 tpe-block",style:{color:m.color},dangerouslySetInnerHTML:{__html:e.svg}})},[m.styleId,m.image,m.color,m.imageCrop]),B=(null===(n=m.label)||void 0===n?void 0:n.trim())||S||"Marker ".concat(h+1);return(0,Zt.jsxs)("div",{className:"tpe-bg-gray-50 tpe-rounded-xl tpe-border ".concat(Z?"tpe-border-amber-300 tpe-bg-amber-50":"tpe-border-gray-200"," tpe-transition-colors tpe-overflow-hidden"),children:[(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-gap-2 tpe-p-3",children:[(0,Zt.jsxs)("button",{onClick:function(){return b(m.id)},className:"tpe-flex tpe-items-center tpe-gap-2.5 tpe-flex-1 tpe-min-w-0 tpe-text-left",title:v?"Collapse":"Edit marker",children:[(0,Zt.jsx)("span",{className:"tpe-shrink-0 tpe-flex tpe-items-center tpe-justify-center tpe-w-5 tpe-h-5",children:F}),(0,Zt.jsx)("span",{className:"tpe-truncate tpe-text-xs tpe-font-bold tpe-text-gray-900",children:B}),Z&&(0,Zt.jsxs)("span",{className:"tpe-shrink-0 tpe-flex tpe-items-center tpe-gap-1 tpe-text-[10px] tpe-font-bold tpe-text-amber-600 tpe-bg-amber-100 tpe-px-1.5 tpe-py-0.5 tpe-rounded",title:"Marker is outside visible map area",children:[(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("path",{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"}),(0,Zt.jsx)("line",{x1:"12",y1:"9",x2:"12",y2:"13"}),(0,Zt.jsx)("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]}),(0,Zt.jsx)("span",{children:"Off Map"})]}),(0,Zt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"tpe-text-gray-400 tpe-shrink-0 tpe-ml-auto tpe-transition-transform ".concat(v?"tpe-rotate-180":""),children:(0,Zt.jsx)("polyline",{points:"6 9 12 15 18 9"})})]}),(0,Zt.jsx)("button",{onClick:function(){return x(m.id)},className:"tpe-shrink-0 tpe-text-red-500 hover:tpe-text-red-700 tpe-bg-white tpe-rounded-full tpe-p-1 tpe-border tpe-border-gray-200 hover:tpe-bg-red-50 hover:tpe-border-red-200 tpe-transition-colors",title:"Remove Marker",children:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,Zt.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),v&&(0,Zt.jsxs)("div",{className:"tpe-px-4 tpe-pb-4 tpe-space-y-4 tpe-animate-fade-in",children:[(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:"tpe-text-[10px] tpe-font-bold tpe-text-gray-500 tpe-uppercase tpe-tracking-wide tpe-mb-2 tpe-block",children:"Location"}),(0,Zt.jsx)("div",{className:"tpe-relative",onClick:function(){return P(!0)},children:(0,Zt.jsxs)("div",{className:"tpe-w-full tpe-p-2 tpe-pl-8 tpe-border tpe-border-gray-200 tpe-rounded-lg tpe-text-sm tpe-shadow-sm tpe-bg-white tpe-flex tpe-items-center tpe-justify-between tpe-cursor-pointer hover:tpe-border-gray-900",children:[(0,Zt.jsx)("span",{className:"tpe-truncate",children:S||"Search to place marker..."}),(0,Zt.jsx)("div",{className:"tpe-absolute tpe-left-2.5 tpe-top-2.5 tpe-text-gray-400 tpe-pointer-events-none",children:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,Zt.jsx)("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]})})]})}),Y&&(0,Zt.jsxs)("button",{type:"button",onClick:function(){return Y(m.id)},title:"Position on map","aria-label":"Position marker on map",className:"tpe-mt-2 tpe-w-full tpe-px-3 tpe-py-2 tpe-border tpe-border-gray-200 tpe-bg-white tpe-rounded-lg tpe-text-gray-700 tpe-shadow-sm tpe-flex tpe-items-center tpe-justify-center tpe-gap-1.5 hover:tpe-border-gray-900 tpe-transition-colors",children:[(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("circle",{cx:"12",cy:"12",r:"9"}),(0,Zt.jsx)("circle",{cx:"12",cy:"12",r:"2.5"}),(0,Zt.jsx)("line",{x1:"12",y1:"2",x2:"12",y2:"6"}),(0,Zt.jsx)("line",{x1:"12",y1:"18",x2:"12",y2:"22"}),(0,Zt.jsx)("line",{x1:"2",y1:"12",x2:"6",y2:"12"}),(0,Zt.jsx)("line",{x1:"18",y1:"12",x2:"22",y2:"12"})]}),(0,Zt.jsx)("span",{className:"tpe-text-xs tpe-font-bold",children:"Position on map"})]})]}),(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:"tpe-text-[10px] tpe-font-bold tpe-text-gray-500 tpe-uppercase tpe-tracking-wide tpe-mb-2 tpe-block",children:"Icon Style"}),(0,Zt.jsxs)("div",{className:"tpe-flex tpe-flex-wrap tpe-gap-2",children:[_e.map(function(e){return(0,Zt.jsx)("button",{onClick:function(){return g(m.id,{styleId:e.id})},className:"tpe-w-10 tpe-h-10 tpe-rounded-lg tpe-flex tpe-items-center tpe-justify-center tpe-border tpe-transition-all ".concat(m.styleId===e.id?"tpe-bg-white tpe-border-gray-900 tpe-ring-1 tpe-ring-gray-900 tpe-text-gray-900":"tpe-bg-white tpe-border-gray-200 tpe-text-gray-400 hover:tpe-border-gray-300"),title:e.name,children:(0,Zt.jsx)("div",{className:"tpe-w-6 tpe-h-6",dangerouslySetInnerHTML:{__html:e.svg}})},e.id)}),(0,Zt.jsxs)("div",{className:"tpe-relative",children:[(0,Zt.jsx)("button",{onClick:function(){var e;return null===(e=M.current)||void 0===e?void 0:e.click()},className:"tpe-w-10 tpe-h-10 tpe-rounded-lg tpe-flex tpe-items-center tpe-justify-center tpe-border tpe-transition-all ".concat("custom-photo"===m.styleId?"tpe-bg-white tpe-border-gray-900 tpe-ring-1 tpe-ring-gray-900 tpe-text-gray-900":"tpe-bg-white tpe-border-gray-200 tpe-text-gray-400 hover:tpe-border-gray-300"),title:"Upload Photo",children:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"}),(0,Zt.jsx)("circle",{cx:"8.5",cy:"8.5",r:"1.5"}),(0,Zt.jsx)("polyline",{points:"21 15 16 10 5 21"})]})}),(0,Zt.jsx)("input",{type:"file",ref:M,onChange:function(e){var t,n=null===(t=e.target.files)||void 0===t?void 0:t[0];if(n){var r=new FileReader;r.onload=function(e){var t;null!==(t=e.target)&&void 0!==t&&t.result&&g(m.id,{image:e.target.result,styleId:"custom-photo",imageCrop:{x:50,y:50,zoom:1}})}
2,r.readAsDataURL(n)}},accept:"image/*",className:"tpe-hidden"})]})]})]}),"custom-photo"===m.styleId&&m.image&&(0,Zt.jsxs)("div",{className:"tpe-bg-white tpe-border tpe-border-gray-200 tpe-rounded-lg tpe-p-3 tpe-animate-fade-in",children:[(0,Zt.jsxs)("div",{className:"tpe-flex tpe-justify-between tpe-mb-2",children:[(0,Zt.jsx)("span",{className:"tpe-text-[10px] tpe-font-bold tpe-text-gray-500 tpe-uppercase",children:"Adjust Photo"}),(0,Zt.jsx)("button",{onClick:function(){var e;return null===(e=M.current)||void 0===e?void 0:e.click()},className:"tpe-text-[10px] tpe-text-blue-600 tpe-font-bold hover:tpe-underline",children:"Change"})]}),(0,Zt.jsxs)("div",{className:"tpe-flex tpe-gap-4",children:[(0,Zt.jsx)("div",{ref:V,className:"tpe-w-20 tpe-h-20 tpe-rounded-full tpe-overflow-hidden tpe-border-2 tpe-relative tpe-cursor-move tpe-shrink-0",style:{borderColor:m.color,touchAction:"none"},onPointerDown:function(e){e.currentTarget.setPointerCapture(e.pointerId),C(!0),E({x:e.clientX,y:e.clientY})},onPointerMove:function(e){var t;if(A&&m.imageCrop){e.preventDefault();var n=e.clientX,r=e.clientY,o=n-O.x,a=r-O.y,i=m.imageCrop.zoom,l=null===(t=V.current)||void 0===t?void 0:t.getBoundingClientRect(),s=(null==l?void 0:l.width)||80,c=(null==l?void 0:l.height)||80;if(i<=1)E({x:n,y:r});else{var u=m.imageCrop.x-o/s*100/(i-1),p=m.imageCrop.y-a/c*100/(i-1),d=(i-1)/(2*i)*100,f=50-d,h=50+d;u=Math.max(f,Math.min(u,h)),p=Math.max(f,Math.min(p,h)),g(m.id,{imageCrop:Kl(Kl({},m.imageCrop),{},{x:u,y:p})}),E({x:n,y:r})}}},onPointerUp:G,onPointerCancel:G,children:(0,Zt.jsx)("img",{src:m.image,alt:"Marker",className:"tpe-absolute tpe-max-w-none",style:{width:"100%",height:"100%",objectFit:"cover",transformOrigin:"".concat(null!==(r=null===(o=m.imageCrop)||void 0===o?void 0:o.x)&&void 0!==r?r:50,"% ").concat(null!==(a=null===(i=m.imageCrop)||void 0===i?void 0:i.y)&&void 0!==a?a:50,"%"),transform:"scale(".concat(null!==(l=null===(s=m.imageCrop)||void 0===s?void 0:s.zoom)&&void 0!==l?l:1,")"),pointerEvents:"none"}})}),(0,Zt.jsxs)("div",{className:"tpe-flex-1 tpe-flex tpe-flex-col tpe-justify-center",children:[(0,Zt.jsx)("label",{className:"tpe-text-[10px] tpe-font-bold tpe-text-gray-500 tpe-uppercase tpe-mb-1",children:"Zoom"}),(0,Zt.jsx)("input",{type:"range",min:"1",max:"3",step:"0.1",value:null!==(c=null===(u=m.imageCrop)||void 0===u?void 0:u.zoom)&&void 0!==c?c:1,onChange:function(e){var t,n,r,o,a=parseFloat(e.target.value);g(m.id,{imageCrop:Kl(Kl({},m.imageCrop),{},{zoom:a,x:null!==(t=null===(n=m.imageCrop)||void 0===n?void 0:n.x)&&void 0!==t?t:50,y:null!==(r=null===(o=m.imageCrop)||void 0===o?void 0:o.y)&&void 0!==r?r:50})})},className:"tpe-w-full tpe-h-1.5 tpe-bg-gray-200 tpe-rounded-lg tpe-appearance-none tpe-cursor-pointer tpe-accent-gray-900"}),(0,Zt.jsx)("p",{className:"tpe-text-[9px] tpe-text-gray-400 tpe-mt-1",children:"Drag circle to pan"})]})]})]}),(0,Zt.jsxs)("div",{className:"tpe-grid tpe-grid-cols-2 tpe-gap-4",children:[(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:"tpe-text-[10px] tpe-font-bold tpe-text-gray-500 tpe-uppercase tpe-tracking-wide tpe-mb-2 tpe-block",children:"custom-photo"===m.styleId?"Border Color":"Color"}),(0,Zt.jsx)($l,{value:m.color,open:"color"===U,onToggle:function(){return k("color"===U?null:"color")},ariaLabel:"custom-photo"===m.styleId?"Border colour":"Marker colour"})]}),(0,Zt.jsxs)("div",{className:"tpe-space-y-4",children:[(0,Zt.jsxs)("div",{children:[(0,Zt.jsxs)("label",{className:"tpe-text-[10px] tpe-font-bold tpe-text-gray-500 tpe-uppercase tpe-tracking-wide tpe-mb-2 tpe-flex tpe-justify-between",children:[(0,Zt.jsx)("span",{children:"Size"}),(0,Zt.jsxs)("span",{children:[(null===(p=m.scale)||void 0===p?void 0:p.toFixed(1))||"1.0","x"]})]}),(0,Zt.jsx)("input",{type:"range",min:"0.5",max:"5.0",step:"0.1",value:m.scale||1,onChange:function(e){return g(m.id,{scale:parseFloat(e.target.value)})},className:"tpe-w-full tpe-h-1.5 tpe-bg-gray-200 tpe-rounded-lg tpe-appearance-none tpe-cursor-pointer tpe-accent-gray-900"})]}),"custom-photo"===m.styleId&&(0,Zt.jsxs)("div",{children:[(0,Zt.jsxs)("label",{className:"tpe-text-[10px] tpe-font-bold tpe-text-gray-500 tpe-uppercase tpe-tracking-wide tpe-mb-2 tpe-flex tpe-justify-between",children:[(0,Zt.jsx)("span",{children:"Border Width"}),(0,Zt.jsxs)("span",{children:[null!==(d=m.imageBorderWidth)&&void 0!==d?d:4,"px"]})]}),(0,Zt.jsx)("input",{type:"range",min:"0",max:"15",step:"1",value:null!==(f=m.imageBorderWidth)&&void 0!==f?f:4,onChange:function(e){return g(m.id,{imageBorderWidth:parseFloat(e.target.value)})},className:"tpe-w-full tpe-h-1.5 tpe-bg-gray-200 tpe-rounded-lg tpe-appearance-none tpe-cursor-pointer tpe-accent-gray-900"})]})]})]}),"color"===U&&(0,Zt.jsx)(es,{value:m.color,onChange:function(e){g(m.id,{color:e}),k(null)}}),(0,Zt.jsxs)("div",{className:"tpe-pt-2 tpe-border-t tpe-border-gray-200",children:[(0,Zt.jsxs)("button",{onClick:function(){return W(!N)},className:"tpe-flex tpe-items-center tpe-justify-between tpe-w-full tpe-py-2 hover:tpe-bg-gray-100 tpe-rounded-lg tpe-transition-colors",children:[(0,Zt.jsx)("span",{className:"tpe-text-[10px] tpe-font-bold tpe-text-gray-500 tpe-uppercase tpe-tracking-wide",children:"Text Label"}),(0,Zt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"tpe-text-gray-400 tpe-transition-transform ".concat(N?"tpe-rotate-180":""),children:(0,Zt.jsx)("polyline",{points:"6 9 12 15 18 9"})})]}),N&&(0,Zt.jsxs)("div",{className:"tpe-mt-3 tpe-space-y-4 tpe-animate-fade-in",children:[(0,Zt.jsx)("div",{children:(0,Zt.jsx)("input",{type:"text",value:m.label||"",onChange:function(e){return g(m.id,{label:e.target.value})},placeholder:"Enter text label...",className:"tpe-w-full tpe-p-2 tpe-border tpe-border-gray-200 tpe-rounded-lg tpe-text-[16
2px] tpe-shadow-sm focus:tpe-ring-2 focus:tpe-ring-gray-900 tpe-outline-none tpe-bg-white"})}),(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:"tpe-text-[10px] tpe-font-bold tpe-text-gray-500 tpe-uppercase tpe-tracking-wide tpe-mb-2 tpe-block",children:"Font"}),(0,Zt.jsxs)("select",{value:m.labelFont||"",onChange:function(e){return g(m.id,{labelFont:e.target.value})},className:"tpe-w-full tpe-p-2 tpe-border tpe-border-gray-200 tpe-rounded-lg tpe-text-[16px] tpe-shadow-sm focus:tpe-ring-2 focus:tpe-ring-gray-900 tpe-outline-none tpe-bg-white",children:[(0,Zt.jsx)("option",{value:"",children:"Default (Sans-Serif)"}),Me.map(function(e){return(0,Zt.jsx)("option",{value:e.value,className:e.value,children:e.name},e.name)})]})]}),(0,Zt.jsxs)("div",{className:"tpe-grid tpe-grid-cols-2 tpe-gap-4",children:[(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:"tpe-text-[10px] tpe-font-bold tpe-text-gray-500 tpe-uppercase tpe-tracking-wide tpe-mb-2 tpe-block",children:"Text Color"}),(0,Zt.jsx)($l,{value:m.labelColor||m.color||"#000000",open:"labelColor"===U,onToggle:function(){return k("labelColor"===U?null:"labelColor")},ariaLabel:"Text colour"})]}),(0,Zt.jsxs)("div",{children:[(0,Zt.jsxs)("label",{className:"tpe-text-[10px] tpe-font-bold tpe-text-gray-500 tpe-uppercase tpe-tracking-wide tpe-mb-2 tpe-flex tpe-justify-between",children:[(0,Zt.jsx)("span",{children:"Text Size"}),(0,Zt.jsxs)("span",{children:[(m.labelSize||1).toFixed(1),"x"]})]}),(0,Zt.jsx)("input",{type:"range",min:"0.5",max:"5.0",step:"0.1",value:m.labelSize||1,onChange:function(e){return g(m.id,{labelSize:parseFloat(e.target.value)})},className:"tpe-w-full tpe-h-1.5 tpe-bg-gray-200 tpe-rounded-lg tpe-appearance-none tpe-cursor-pointer tpe-accent-gray-900"})]})]}),"labelColor"===U&&(0,Zt.jsx)(es,{value:m.labelColor||m.color||"#000000",onChange:function(e){g(m.id,{labelColor:e}),k(null)}})]})]})]}),(0,Zt.jsx)(Rl,{isOpen:X,onClose:function(){return P(!1)},onSelect:function(e,t,n){j(n),g(m.id,{lat:e,lng:t})},initialValue:S})]})};function ns(){return(ns=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function rs(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}function os(t){var n=(0,e.useRef)(t),r=(0,e.useRef)(function(e){n.current&&n.current(e)});return n.current=t,r.current}var as=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e<t?t:e},is=function(e){return"touches"in e},ls=function(e){return e&&e.ownerDocument.defaultView||self},ss=function(e,t,n){var r=e.getBoundingClientRect(),o=is(t)?function(e,t){for(var n=0;n<e.length;n++)if(e[n].identifier===t)return e[n];return e[0]}(t.touches,n):t;return{left:as((o.pageX-(r.left+ls(e).pageXOffset))/r.width),top:as((o.pageY-(r.top+ls(e).pageYOffset))/r.height)}},cs=function(e){!is(e)&&e.preventDefault()},us=e.memo(function(t){var n=t.onMove,r=t.onKey,o=t.onEnd,a=rs(t,["onMove","onKey","onEnd"]),i=(0,e.useRef)(null),l=os(n),s=os(r),c=os(o),u=(0,e.useRef)(null),p=(0,e.useRef)(!1),d=(0,e.useMemo)(function(){var e=function(e){cs(e),(is(e)?e.touches.length>0:e.buttons>0)&&i.current?l(ss(i.current,e,u.current)):(n(!1),c())},t=function(){n(!1),c()};function n(n){var r=p.current,o=ls(i.current),a=n?o.addEventListener:o.removeEventListener;a(r?"touchmove":"mousemove",e),a(r?"touchend":"mouseup",t)}return[function(e){var t=e.nativeEvent,r=i.current;if(r&&(cs(t),!function(e,t){return t&&!is(e)}(t,p.current)&&r)){if(is(t)){p.current=!0;var o=t.changedTouches||[];o.length&&(u.current=o[0].identifier)}r.focus(),l(ss(r,t,u.current)),n(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),s({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},function(e){var t=e.which||e.keyCode;t>=37&&t<=40&&c()},n]},[s,l,c]),f=d[0],m=d[1],h=d[2],g=d[3];return(0,e.useEffect)(function(){return g},[g]),e.createElement("div",ns({},a,{onTouchStart:f,onMouseDown:f,className:"react-colorful__interactive",ref:i,onKeyDown:m,onKeyUp:h,tabIndex:0,role:"slider"}))}),ps=function(e){return e.filter(Boolean).join(" ")},ds=function(t){var n=t.color,r=t.left,o=t.top,a=void 0===o?.5:o,i=ps(["react-colorful__pointer",t.className]);
2return e.createElement("div",{className:i,style:{top:100*a+"%",left:100*r+"%"}},e.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:n}}))},fs=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n},ms=(Math.PI,function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:fs(e.h),s:fs(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:fs(o/2),a:fs(r,2)}}),hs=function(e){var t=ms(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},gs=function(e){var t=ms(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},xs=e.memo(function(t){var n=t.hue,r=t.onChange,o=t.onChangeEnd,a=ps(["react-colorful__hue",t.className]);return e.createElement("div",{className:a},e.createElement(us,{onMove:function(e){r({h:360*e.left})},onKey:function(e){r({h:as(n+360*e.left,0,360)})},onEnd:o,"aria-label":"Hue","aria-valuenow":fs(n),"aria-valuemax":"360","aria-valuemin":"0"},e.createElement(ds,{className:"react-colorful__hue-pointer",left:n/360,color:hs({h:n,s:100,v:100,a:1})})))}),ys=e.memo(function(t){var n=t.hsva,r=t.onChange,o=t.onChangeEnd,a={backgroundColor:hs({h:n.h,s:100,v:100,a:1})};return e.createElement("div",{className:"react-colorful__saturation",style:a},e.createElement(us,{onMove:function(e){r({s:100*e.left,v:100-100*e.top})},onKey:function(e){r({s:as(n.s+100*e.left,0,100),v:as(n.v-100*e.top,0,100)})},onEnd:o,"aria-label":"Color","aria-valuetext":"Saturation "+fs(n.s)+"%, Brightness "+fs(n.v)+"%"},e.createElement(ds,{className:"react-colorful__saturation-pointer",top:1-n.v/100,left:n.s/100,color:hs(n)})))}),vs=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0};function bs(t,n,r,o){var a=os(r),i=os(o),l=(0,e.useState)(function(){return t.toHsva(n)}),s=l[0],c=l[1],u=(0,e.useRef)({color:n,hsva:s}),p=(0,e.useRef)(!1);(0,e.useEffect)(function(){if(!t.equal(n,u.current.color)){var e=t.toHsva(n);u.current={hsva:e,color:n},c(e),p.current=!1}},[n,t]),(0,e.useEffect)(function(){var e;vs(s,u.current.hsva)||t.equal(e=t.fromHsva(s),u.current.color)||(u.current={hsva:s,color:e},a(e),p.current=!0)},[s,t,a]);var d=(0,e.useCallback)(function(e){c(function(t){return Object.assign({},t,e)})},[]),f=(0,e.useCallback)(function(){p.current&&(p.current=!1,i(u.current.color))},[i]);return[s,d,f]}var Ys="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,Ms=new Map,ws=function(t){var n=t.className,r=t.hsva,o=t.onChange,a=t.onChangeEnd,i={backgroundImage:"linear-gradient(90deg, "+gs(Object.assign({},r,{a:0}))+", "+gs(Object.assign({},r,{a:1}))+")"},l=ps(["react-colorful__alpha",n]),s=fs(100*r.a);return e.createElement("div",{className:l},e.createElement("div",{className:"react-colorful__alpha-gradient",style:i}),e.createElement(us,{onMove:function(e){o({a:e.left})},onKey:function(e){o({a:as(r.a+e.left)})},onEnd:a,"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},e.createElement(ds,{className:"react-colorful__alpha-pointer",left:r.a,color:gs(r)})))},Ss=function(t){var n,r=t.className,a=t.colorModel,i=t.color,l=void 0===i?a.defaultColor:i,s=t.onChange,c=t.onChangeEnd,u=rs(t,["className","colorModel","color","onChange","onChangeEnd"]),p=(0,e.useRef)(null);n=p,Ys(function(){var e=n.current?n.current.ownerDocument:document;if(void 0!==e&&!Ms.has(e)){var t=e.createElement("style");t.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;
2left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',Ms.set(e,t);var r=o.nc;r&&t.setAttribute("nonce",r),e.head.appendChild(t)}},[]);var d=bs(a,l,s,c),f=d[0],m=d[1],h=d[2],g=ps(["react-colorful",r]);return e.createElement("div",ns({},u,{ref:p,className:g}),e.createElement(ys,{hsva:f,onChange:m,onChangeEnd:h}),e.createElement(xs,{hue:f.h,onChange:m,onChangeEnd:h}),e.createElement(ws,{hsva:f,onChange:m,onChangeEnd:h,className:"react-colorful__last-control"}))},js={defaultColor:{r:0,g:0,b:0,a:1},toHsva:function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),i=a-Math.min(t,n,r),l=i?a===t?(n-r)/i:a===n?2+(r-t)/i:4+(t-n)/i:0;return{h:fs(60*(l<0?l+6:l)),s:fs(a?i/a*100:0),v:fs(a/255*100),a:o}},fromHsva:function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),i=r*(1-n),l=r*(1-(t-a)*n),s=r*(1-(1-t+a)*n),c=a%6;return{r:fs(255*[r,l,i,i,s,r][c]),g:fs(255*[s,r,r,l,i,i][c]),b:fs(255*[i,i,s,r,r,l][c]),a:fs(o,2)}},equal:vs},Ts=function(t){return e.createElement(Ss,ns({},t,{colorModel:js}))},Ns=function(e){return Math.max(0,Math.min(255,Math.round(e)))},Ws=function(e){return Math.max(0,Math.min(1,e))},Is=function(e){var t={r:204,g:204,b:204,a:1};if(!e)return t;var n=e.trim().toLowerCase();if(n.startsWith("#")){var r=n.slice(1);return 3===r.length?{r:parseInt(r[0]+r[0],16),g:parseInt(r[1]+r[1],16),b:parseInt(r[2]+r[2],16),a:1}:6===r.length||8===r.length?{r:parseInt(r.slice(0,2),16),g:parseInt(r.slice(2,4),16),b:parseInt(r.slice(4,6),16),a:8===r.length?Ws(parseInt(r.slice(6,8),16)/255):1}:t}var o=n.match(/^rgba?\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*(?:,\s*([\d.]+)\s*)?\)$/);return o?{r:Ns(parseFloat(o[1])),g:Ns(parseFloat(o[2])),b:Ns(parseFloat(o[3])),a:void 0!==o[4]?Ws(parseFloat(o[4])):1}:t};function Us(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const ks=function(t){var n,r,o=t.value,a=t.onChange,i=t.label,l=(n=(0,e.useState)(!1),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Us(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Us(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=l[0],c=l[1],u=(0,e.useRef)(null);return(0,e.useEffect)(function(){if(s){var e=function(e){u.current&&!u.current.contains(e.target)&&c(!1)},t=function(e){"Escape"===e.key&&c(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),function(){document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}}},[s]),(0,Zt.jsxs)("div",{ref:u,className:"tpe-relative tpe-flex tpe-items-center tpe-gap-2",children:[(0,Zt.jsx)("button",{type:"button",onClick:function(){return c(function(e){return!e})},"aria-label":"Edit ".concat(i," color"),className:"tpe-h-7 tpe-w-9 tpe-rounded tpe-border tpe-border-gray-200 tpe-cursor-pointer tpe-shrink-0 tpe-overflow-hidden",style:{background:"repeating-conic-gradient(#cbcbcb 0% 25%, #ffffff 0% 50%) 50% / 10px 10px"},children:(0,Zt.jsx)("span",{className:"tpe-block tpe-w-full tpe-h-full",style:{backgroundColor:o}})}),(0,Zt.jsx)("span",{className:"tpe-text-[10px] tpe-font-medium tpe-text-gray-600 tpe-capitalize",children:i}),s&&(0,Zt.jsx)("div",{className:"tpe-absolute tpe-z-50 tpe-top-9 tpe-left-0 tpe-p-2 tpe-bg-white tpe-rounded-lg tpe-shadow-xl tpe-border tpe-border-gray-200",children:(0,Zt.jsx)(Ts,{color:Is(o),onChange:function(e){return a(function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Ns(t),i=Ns(n),l=Ns(r),s=Ws(o);if(s>=1){var c=function(e){return e.toString(16).padStart(2,"0")};return"#".concat(c(a)).concat(c(i)).concat(c(l))}return"rgba(".concat(a,", ").concat(i,", ").concat(l,", ").concat(Math.round(100*s)/100,")")}(e))}})})]})};function Ds(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return As(c,"_invoke",function(n,r,o){var a,l,s,c=0,u=o||[],p=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,d.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!p&&c&&!o&&t<u.length;t++){var o,a=u[t],f=d.p,m=a[2];n>3?(o=m===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,d.v=r,d.n=a[1]):f<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,d.n=m,l=0))}if(o||n>1)return i;throw p=!0,r}return function(o,u,m){if(c>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!p;){a||(l?l<3?(l>1&&(d.n=-1),f(l,s)):d.n=s:d.v=s);try{if(c=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(p=d.n<0)?s:n.call(r,d))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:p}}}(n,o,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(As(t={},r,function(){return this}),t),p=c.prototype=l.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,As(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=c,As(p,"constructor",c),As(c,"constructor",s),s.displayName="GeneratorFunction",As(c,o,"GeneratorFunction"),As(p),As(p,o,"Generator"),As(p,r,function(){return this}),As(p,"toString",function(){return"[object Generator]"}),(Ds=function(){return{w:a,m:d}})()}function As(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}As=function(e,t,n,r){function a(t,n){As(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},As(e,t,n,r)}function Cs(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Os(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function Ls(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||Os(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Os(e,t){if(e){if("string"==typeof e)return Es(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Es(e,t):void 0}}function Es(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Vs(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}var zs=function(e){return{geoJson:{type:"Feature",properties:{},geometry:{type:"LineString",coordinates:[]}},bounds:[0,0,0,0],stats:{distanceKm:0,distanceMi:0,pointCount:0},warnings:[],error:e}};function Xs(e){return Ps.apply(this,arguments)}function Ps(){var e;return e=Ds().m(function e(t){var n,r,o,a,i,l,s,c,u,p,d,f,m,h,g,x,y,v,b,Y,M,w,S,j,T,N;return Ds().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t){e.n=1;break}return e.a(2,zs("No file provided."));case 1:if(!(t.size>5242880)){e.n=2;break}return e.a(2,zs("File too large (".concat((t.size/1024/1024).toFixed(1)," MB). Maximum is ").concat(5," MB.")));case 2:return e.p=2,e.n=3,t.text();case 3:n=e.v,e.n=5;break;case 4:return e.p=4,e.v,e.a(2,zs("Could not read file."));case 5:if(e.p=5,o=new DOMParser,!((r=o.parseFromString(n,"text/xml")).getElementsByTagName("parsererror").length>0)){e.n=6;break}return e.a(2,zs("Not a valid GPX/XML file."));case 6:e.n=8;break;case 7:return e.p=7,e.v,e.a(2,zs("Failed to parse GPX file."));case 8:if(0===(a=Array.from(r.getElementsByTagName("trkpt"))).length&&(a=Array.from(r.getElementsByTagName("rtept"))),0!==a.length){e.n=9;break}return e.a(2,zs("No track points found in GPX file."));case 9:i=[],l=[],s=[],c=0,u=180,p=-180,d=90,f=-90,m=Cs(a),e.p=10,m.s();case 11:if((h=m.n()).done){e.n=14;break}if(x=h.value,y=parseFloat(x.getAttribute("lat")||""),v=parseFloat(x.getAttribute("lon")||""),!(!Number.isFinite(y)||!Number.isFinite(v)||y<-90||y>90||v<-180||v>180)){e.n=12;break}return c++,e.a(3,13);case 12:i.push([v,y]),b=x.getElementsByTagName("ele")[0],Y=b?parseFloat(b.textContent||""):NaN,l.push(Number.isFinite(Y)?Y:void 0),M=x.getElementsByTagName("time")[0],s.push((null==M||null===(g=M.textContent)||void 0===g?void 0:g.trim())||void 0),v<u&&(u=v),v>p&&(p=v),y<d&&(d=y),y>f&&(f=y);case 13:e.n=11;break;case 14:e.n=16;break;case 15:e.p=15,N=e.v,m.e(N);case 16:return e.p=16,m.f(),e.f(16);case 17:if(!(i.length<2)){e.n=18;break}return e.a(2,zs("GPX file has too few valid points (".concat(i.length,").")));case 18:return w=[],c>
20&&w.push("".concat(c," invalid point").concat(1===c?"":"s"," skipped.")),S=O(i,l,s),j=i,i.length>1500&&(T=Math.hypot(p-u,f-d),j=Fs(i,T/4e3,1500),w.push("Track simplified from ".concat(i.length," to ").concat(j.length," points for performance."))),e.a(2,{geoJson:{type:"Feature",properties:{},geometry:{type:"LineString",coordinates:j}},bounds:[u,d,p,f],stats:S,warnings:w})}},e,null,[[10,15,16,17],[5,7],[2,4]])}),Ps=function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){Vs(a,r,o,i,l,"next",e)}function l(e){Vs(a,r,o,i,l,"throw",e)}i(void 0)})},Ps.apply(this,arguments)}function Zs(e,t,n){var r=Ls(e,2),o=r[0],a=r[1],i=Ls(t,2),l=i[0],s=i[1],c=Ls(n,2),u=c[0]-l,p=c[1]-s;if(0===u&&0===p)return Math.hypot(o-l,a-s);var d=((o-l)*u+(a-s)*p)/(u*u+p*p),f=Math.max(0,Math.min(1,d)),m=l+f*u,h=s+f*p;return Math.hypot(o-m,a-h)}function Gs(e,t){var n=e.length;if(n<3)return e.slice();var r=new Uint8Array(n);r[0]=1,r[n-1]=1;for(var o=[[0,n-1]];o.length;){for(var a=Ls(o.pop(),2),i=a[0],l=a[1],s=0,c=-1,u=i+1;u<l;u++){var p=Zs(e[u],e[i],e[l]);p>s&&(s=p,c=u)}-1!==c&&s>t&&(r[c]=1,o.push([i,c]),o.push([c,l]))}for(var d=[],f=0;f<n;f++)r[f]&&d.push(e[f]);return d}function Fs(e,t,n){for(var r=t,o=Gs(e,r),a=0;o.length>n&&a<30;)o=Gs(e,r*=2),a++;return o}function Bs(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return Rs(c,"_invoke",function(n,r,o){var a,l,s,c=0,u=o||[],p=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,d.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!p&&c&&!o&&t<u.length;t++){var o,a=u[t],f=d.p,m=a[2];n>3?(o=m===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,d.v=r,d.n=a[1]):f<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,d.n=m,l=0))}if(o||n>1)return i;throw p=!0,r}return function(o,u,m){if(c>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!p;){a||(l?l<3?(l>1&&(d.n=-1),f(l,s)):d.n=s:d.v=s);try{if(c=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(p=d.n<0)?s:n.call(r,d))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:p}}}(n,o,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Rs(t={},r,function(){return this}),t),p=c.prototype=l.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Rs(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=c,Rs(p,"constructor",c),Rs(c,"constructor",s),s.displayName="GeneratorFunction",Rs(c,o,"GeneratorFunction"),Rs(p),Rs(p,o,"Generator"),Rs(p,r,function(){return this}),Rs(p,"toString",function(){return"[object Generator]"}),(Bs=function(){return{w:a,m:d}})()}function Rs(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Rs=function(e,t,n,r){function a(t,n){Rs(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Rs(e,t,n,r)}function Qs(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Hs(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ks(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ks(e,t):void 0}}
2(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ks(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Js=[{type:"spotify",label:"Spotify code",badge:"Branded",available:function(e){var t,n;return!(null===(t=e.metadata)||void 0===t||!t.title)||!(null===(n=e.metadata)||void 0===n||!n.spotifyUri)},unavailableReason:"Choose a song first"},{type:"apple",label:"Apple Music",badge:"QR",available:function(e){var t;return!(null===(t=e.metadata)||void 0===t||!t.appleMusicUrl)},unavailableReason:"No Apple Music link for this song"},{type:"deezer",label:"Deezer",badge:"QR",available:function(e){var t;return!(null===(t=e.metadata)||void 0===t||!t.deezerUrl)},unavailableReason:"No Deezer link for this song"},{type:"audio",label:"Link to your audio",badge:"QR",available:function(e){return!!e.audioUrl},unavailableReason:"Only for uploaded or recorded audio"}];const qs=function(t){var n,r,o=t.config,a=t.onApply,i=t.onClose,l=t.excludeTypes,s=void 0===l?[]:l,c=Js.filter(function(e){return!s.includes(e.type)}),u=Hs((0,e.useState)(!1),2),p=u[0],d=u[1],f=Hs((0,e.useState)(!1),2),m=f[0],h=f[1],g=Hs((0,e.useState)(""),2),x=g[0],v=g[1],b=Hs((0,e.useState)(""),2),Y=b[0],M=b[1];function w(){var e;return e=Bs().m(function e(t){var n,r;return Bs().w(function(e){for(;;)switch(e.p=e.n){case 0:if(o.scanCode.type!==t||!o.scanCode.enabled){e.n=1;break}return a({enabled:!1,type:"none"}),i(),e.a(2);case 1:if("spotify"!==t){e.n=8;break}if(null===(n=o.metadata)||void 0===n||!n.spotifyUri){e.n=2;break}return a({enabled:!0,type:"spotify"}),i(),e.a(2);case 2:if(o.metadata){e.n=3;break}return e.a(2);case 3:return d(!0),h(!1),e.p=4,e.n=5,Co(o.metadata);case 5:(r=e.v).spotifyUri?(a({enabled:!0,type:"spotify"},{spotifyTrackId:r.spotifyTrackId,spotifyUri:r.spotifyUri,isrc:r.isrc}),i()):h(!0);case 6:return e.p=6,d(!1),e.f(6);case 7:return e.a(2);case 8:a({enabled:!0,type:t}),i();case 9:return e.a(2)}},e,null,[[4,,6,7]])}),w=function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){Qs(a,r,o,i,l,"next",e)}function l(e){Qs(a,r,o,i,l,"throw",e)}i(void 0)})},w.apply(this,arguments)}var S=(null===(n=o.metadata)||void 0===n?void 0:n.title)||"",j=(null===(r=o.metadata)||void 0===r?void 0:r.artist)||"";return(0,y.createPortal)((0,Zt.jsxs)("div",{className:"tpe-font-Jost tpe-fixed tpe-inset-0 tpe-z-[10001] tpe-flex tpe-items-center tpe-justify-center tpe-p-4 tpe-animate-fade-in",children:[(0,Zt.jsx)("div",{className:"tpe-absolute tpe-inset-0 tpe-bg-black/60 tpe-backdrop-blur-sm",onClick:i}),(0,Zt.jsxs)("div",{className:"tpe-relative tpe-bg-white tpe-w-full tpe-max-w-sm tpe-rounded-2xl tpe-shadow-2xl tpe-overflow-hidden tpe-flex tpe-flex-col tpe-max-h-[90vh]",children:[(0,Zt.jsxs)("div",{className:"tpe-p-5 tpe-border-b tpe-border-gray-100 tpe-flex tpe-justify-between tpe-items-center",children:[(0,Zt.jsx)("h3",{className:"tpe-text-lg tpe-font-bold tpe-text-gray-900",children:"Add a scan code"}),(0,Zt.jsx)("button",{onClick:i,className:"tpe-p-2 tpe-bg-gray-100 hover:tpe-bg-gray-200 tpe-rounded-full tpe-text-gray-600",children:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,Zt.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),(0,Zt.jsxs)("div",{className:"tpe-p-5 tpe-overflow-y-auto tpe-flex tpe-flex-col tpe-gap-2",children:[(0,Zt.jsx)("p",{className:"tpe-text-xs tpe-text-gray-500 tpe-mb-1",children:"Pick how people scan to hear the song."}),c.map(function(e){var t=e.available(o),n=o.scanCode.type===e.type&&o.scanCode.enabled;return(0,Zt.jsxs)("button",{type:"button",disabled:!t||p,onClick:function(){return function(e){return w.apply(this,arguments)}(e.type)},className:"tpe-w-full tpe-flex tpe-items-center tpe-justify-between tpe-gap-2 tpe-px-3 tpe-py-3 tpe-rounded-xl tpe-border-2 tpe-text-left tpe-transition-all ".concat(n?"tpe-border-gray-900 tpe-bg-gray-50":"tpe-border-gray-200 hover:tpe-border-gray-300"," ").concat(!t||p?"tpe-opacity-40 tpe-cursor-not-allowed":""),children:[(0,Zt.jsxs)("span",{className:"tpe-flex tpe-flex-col tpe-min-w-0",children:[(0,Zt.jsx)("span",{className:"tpe-text-sm tpe-font-bold tpe-text-gray-900",children:e.label}),!t&&(0,Zt.jsx)("span",{className:"tpe-text-[11px] tpe-text-gray-400",children:e.unavailableReason})]}),(0,Zt.jsx)("span",{className:"tpe-text-[10px] tpe-font-bold tpe-uppercase tpe-tracking-wide tpe-shrink-0 ".concat(n?"tpe-text-gray-900":"tpe-text-gray-400"),children:"spotify"===e.type&&p?"Finding…":n?"On · tap to remove":e.badge})]},e.type)}),m&&(0,Zt.jsxs)("div",{className:"tpe-mt-1 tpe-rounded-xl tpe-border tpe-border-gray-200 tpe-bg-gray-50 tpe-p-3 tpe-flex tpe-flex-col tpe-gap-2",children:[(0,Zt.jsx)("p",{className:"tpe-text-[11px] tpe-text-gray-600 tpe-leading-snug",children:"Couldn't auto-find this on Spotify. Open it on Spotify, copy the share link, and paste it here."}),(0,Zt.jsxs)("a",{href:"https://open.spotify.com/search/".concat(encodeURIComponent("".concat(S," ").concat(j).trim())),target:"_blank",rel:"noopener noreferrer",className:"tpe-inline-flex tpe-items-center tpe-gap-1.5 tpe-text-xs tpe-font-bold tpe-text-gray-900 tpe-underline tpe-decoration-gray-300 tpe-underline-offset-2 tpe-self-start",children:[(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),(0,Zt.jsx)("polyline",{points:"15 3 21 3 21 9"}),(0,Zt.jsx)("line",{x1:"10",y1:"14",x2:"21",y2:"3"})]}),"Find on Spotify"]}),(0,Zt.jsxs)("div",{className:"tpe-flex tpe-gap-2",children:[(0,Zt.jsx)("input",{type:"text",value:x,onChange:function(e){v(e.target.value),M("")}
2,placeholder:"Paste Spotify link…",className:"tpe-text-[16px] tpe-w-full tpe-box-border tpe-min-w-0 tpe-px-3 tpe-py-2 tpe-bg-white tpe-border tpe-border-solid tpe-border-gray-300 tpe-rounded-lg focus:tpe-ring-2 focus:tpe-ring-gray-900 tpe-outline-none"}),(0,Zt.jsx)("button",{type:"button",onClick:function(){var e=function(e){var t=(e||"").trim();if(!t)return null;var n=t.match(Uo);if(n)return ko(n[1]);var r=t.match(/spotify:track:([A-Za-z0-9]{22})/);return r?ko(r[1]):/^[A-Za-z0-9]{22}$/.test(t)?ko(t):null}(x);e?(a({enabled:!0,type:"spotify"},{spotifyTrackId:e.id,spotifyUri:e.uri}),i()):M("That doesn't look like a Spotify track link.")},className:"tpe-shrink-0 tpe-px-3 tpe-py-2 tpe-text-xs tpe-font-bold tpe-rounded-lg tpe-bg-gray-900 tpe-text-white hover:tpe-bg-gray-800",children:"Add"})]}),Y&&(0,Zt.jsx)("p",{className:"tpe-text-[11px] tpe-text-red-600",children:Y})]})]})]})]}),document.body)};function _s(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return $s(c,"_invoke",function(n,r,o){var a,l,s,c=0,u=o||[],p=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,d.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!p&&c&&!o&&t<u.length;t++){var o,a=u[t],f=d.p,m=a[2];n>3?(o=m===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,d.v=r,d.n=a[1]):f<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,d.n=m,l=0))}if(o||n>1)return i;throw p=!0,r}return function(o,u,m){if(c>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!p;){a||(l?l<3?(l>1&&(d.n=-1),f(l,s)):d.n=s:d.v=s);try{if(c=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(p=d.n<0)?s:n.call(r,d))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:p}}}(n,o,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):($s(t={},r,function(){return this}),t),p=c.prototype=l.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,$s(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=c,$s(p,"constructor",c),$s(c,"constructor",s),s.displayName="GeneratorFunction",$s(c,o,"GeneratorFunction"),$s(p),$s(p,o,"Generator"),$s(p,r,function(){return this}),$s(p,"toString",function(){return"[object Generator]"}),(_s=function(){return{w:a,m:d}})()}function $s(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}$s=function(e,t,n,r){function a(t,n){$s(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},$s(e,t,n,r)}function ec(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function tc(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function nc(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){tc(a,r,o,i,l,"next",e)}function l(e){tc(a,r,o,i,l,"throw",e)}i(void 0)})}}var rc=null;function oc(){if(!rc){var e=window.AudioContext||window.webkitAudioContext;rc=new e}return rc}function ac(e){return ic.apply(this,arguments)}function ic(){return(ic=nc(_s().m(function e(t){var n,r;return _s().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.n=1,t.arrayBuffer();case 1:if(n=e.v,"suspended"!==(r=oc()).state){e.n=5;break}return e.p=2,e.n=3,r.resume();case 3:e.n=5;break;case 4:e.p=4,e.v;case 5:return e.n=6,new Promise(function(e,t){var o=!1,a=setTimeout(function(){o||(o=!0,t(new Error("Audio decode timed out")))},12e3);r.decodeAudioData(n.slice(0),function(t){o||(o=!0,clearTimeout(a),e(t))},function(e){o||(o=!0,clearTimeout(a),t(e||new Error("Audio decode failed")))})});case 6:return e.a(2,e.v)}},e,null,[[2,4]])}))).apply(this,arguments)}function lc(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"peak",r=function(e){var t=e.numberOfChannels,n=e.length;if(1===t)return e.getChannelData(0);for(var r=new Float32Array(n),o=0;o<t;o++)for(var a=e.getChannelData(o),i=0;i<n;i++)r[i]+=a[i];for(var l=0;l<n;l++)r[l]/=t;return r}(e),o=Math.floor(r.length/t),a=new Array(t),i=0;i<t;i++){var l=i*o,s=l+o,c=0;if("peak"===n){for(var u=0,p=l;p<s;p++){var d=Math.abs(r[p]);d>u&&(u=d)}c=u}else{for(var f=0,m=l;m<s;m++)f+=r[m]*r[m];c=Math.sqrt(f/o)}a[i]=c}return sc(a)}function sc(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.04,r=0,o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
2if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ec(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ec(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}(e);try{for(o.s();!(t=o.n()).done;){var a=t.value;a>r&&(r=a)}}catch(e){o.e(e)}finally{o.f()}return 0===r?e.map(function(){return n}):e.map(function(e){return Math.max(n,e/r)})}function cc(e,t){return uc.apply(this,arguments)}function uc(){return(uc=nc(_s().m(function e(t,n){var r,o;return _s().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,ac(t);case 1:return r=e.v,o=lc(r,1e3),e.a(2,{rawBars:o,barData:pc(o,n)})}},e)}))).apply(this,arguments)}function pc(e,t){if(!e.length||t>=e.length)return e;for(var n=e.length/t,r=new Array(t),o=0;o<t;o++){for(var a=Math.floor(o*n),i=Math.max(a+1,Math.floor((o+1)*n)),l=0,s=a;s<i;s++)e[s]>l&&(l=e[s]);r[o]=l}return sc(r)}function dc(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return fc(c,"_invoke",function(n,r,o){var a,l,s,c=0,u=o||[],p=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,d.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!p&&c&&!o&&t<u.length;t++){var o,a=u[t],f=d.p,m=a[2];n>3?(o=m===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,d.v=r,d.n=a[1]):f<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,d.n=m,l=0))}if(o||n>1)return i;throw p=!0,r}return function(o,u,m){if(c>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!p;){a||(l?l<3?(l>1&&(d.n=-1),f(l,s)):d.n=s:d.v=s);try{if(c=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(p=d.n<0)?s:n.call(r,d))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:p}}}(n,o,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(fc(t={},r,function(){return this}),t),p=c.prototype=l.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,fc(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=c,fc(p,"constructor",c),fc(c,"constructor",s),s.displayName="GeneratorFunction",fc(c,o,"GeneratorFunction"),fc(p),fc(p,o,"Generator"),fc(p,r,function(){return this}),fc(p,"toString",function(){return"[object Generator]"}),(dc=function(){return{w:a,m:d}})()}function fc(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}fc=function(e,t,n,r){function a(t,n){fc(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},fc(e,t,n,r)}function mc(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function hc(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){mc(a,r,o,i,l,"next",e)}function l(e){mc(a,r,o,i,l,"throw",e)}i(void 0)})}}function gc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return xc(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xc(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const yc=function(t){var n=t.onSelect,r=gc((0,e.useState)(""),2),o=r[0],a=r[1],i=gc((0,e.useState)([]),2),l=i[0],s=i[1],c=gc((0,e.useState)(!1),2),u=c[0],p=c[1],d=gc((0,e.useState)(null),2),f=d[0],m=d[1],h=(0,e.useRef)(null);return(0,e.useEffect)(function(){var e=new Audio;h.current=e;var t=function(){return m(null)};return e.addEventListener("ended",t),function(){e.removeEventListener("ended",t),e.pause(),h.current=null}},[]),(0,e.useEffect)(function(){if(o.trim()){var e=!1,t=setTimeout(hc(dc().m(function t(){var n;return dc().w(function(t){for(;;)switch(t.p=t.n){case 0:return p(!0),t.p=1,t.n=2,yo(o);case 2:n=t.v,e||s(n);case 3:return t.p=3,e||p(!1),t.f(3);case 4:return t.a(2)}},t,null,[[1,,3,4]])})),350);return function(){e=!0,clearTimeout(t)}}s([])},[o]),(0,e.useEffect)(function(){var e;null===(e=h.current)||void 0===e||e.pause(),m(null)},[l]),(0,Zt.jsxs)("div",{className:"tpe-flex tpe-flex-col tpe-gap-3 tpe-animate-fade-in",children:[(0,Zt.jsxs)("div",{className:"tpe-relative",children:[(0,Zt.jsx)("input",{type:"text",placeholder:"Search for a song...",value:o,onChange:function(e){return a(e.target.value)},className:"tpe-text-[16px] tpe-w-full tpe-box-border tpe-block tpe-min-w-0 tpe-p-4 tpe-pl-11 tpe-bg-white tpe-border tpe-border-solid tpe-border-gray-400 tpe-rounded-xl tpe-shadow-sm focus:tpe-ring-2 focus:tpe-ring-gray-900 tpe-outline-none tpe-transition-all tpe-text-gray-900",autoFocus:!0}),(0,Zt.jsx)("div",{className:"tpe-absolute tpe-left-4 tpe-top-1/2 tpe--translate-y-1/2 tpe-text-gray-400 tpe-pointer-events-none",children:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,Zt.jsx)("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]})})]}),u&&(0,Zt.jsx)("p",{className:"tpe-text-sm tpe-text-gray-500",children:"Searching..."}),(0,Zt.jsxs)("ul",{className:"tpe-flex tpe-flex-col tpe-gap-1 tpe-max-h-80 tpe-overflow-y-auto",children:[l.map(function(e,t){var r="".concat(e.isrc||"","-").concat(e.title,"-").concat(e.artist,"-").concat(t),o=f===r;return(0,Zt.jsx)("li",{children:(0,Zt.jsxs)("div",{className:"tpe-w-full tpe-flex tpe-items-center tpe-gap-3 tpe-p-2 tpe-rounded hover:tpe-bg-gray-100",children:[(0,Zt.jsxs)("div",{className:"tpe-relative tpe-w-12 tpe-h-12 tpe-shrink-0",children:[e.albumArtUrl?(0,Zt.jsx)("img",{src:e.albumArtUrl,alt:"",className:"tpe-w-12 tpe-h-12 tpe-rounded",style:{objectFit:"cover"}}):(0,Zt.jsx)("div",{className:"tpe-w-12 tpe-h-12 tpe-rounded tpe-bg-gray-200"}),e.previewUrl&&(0,Zt.jsx)("button",{type:"button",onClick:function(t){t.stopPropagation(),function(e,t){var n=h.current;if(n&&t){if(f===e)return n.pause(),void m(null);n.pause(),n.src=t,n.currentTime=0,n.play().then(function(){return m(e)}).catch(function(){return m(null)})}}(r,e.previewUrl)},"aria-label":o?"Pause preview":"Play preview",className:"tpe-absolute tpe-inset-0 tpe-flex tpe-items-center tpe-justify-center tpe-rounded tpe-bg-black/40 hover:tpe-bg-black/55 tpe-text-white tpe-transition-colors",children:o?(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,Zt.jsx)("rect",{x:"6",y:"5",width:"4",height:"14",rx:"1"}),(0,Zt.jsx)("rect",{x:"14",y:"5",width:"4",height:"14",rx:"1"})]}):(0,Zt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"
2currentColor",children:(0,Zt.jsx)("path",{d:"M8 5v14l11-7z"})})})]}),(0,Zt.jsxs)("button",{type:"button",onClick:function(){return n(e)},className:"tpe-flex-1 tpe-min-w-0 tpe-text-left",children:[(0,Zt.jsx)("div",{className:"tpe-font-medium tpe-truncate",children:e.title}),(0,Zt.jsxs)("div",{className:"tpe-text-sm tpe-text-gray-600 tpe-truncate",children:[e.artist,e.album?" · ".concat(e.album):""]})]})]})},r)}),!u&&o.trim()&&0===l.length&&(0,Zt.jsx)("li",{className:"tpe-text-sm tpe-text-gray-500 tpe-p-2",children:"No results"})]})]})};function vc(e){return vc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vc(e)}function bc(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(vc(e)+" is not iterable")}function Yc(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return Mc(c,"_invoke",function(n,r,o){var a,l,s,c=0,u=o||[],p=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,d.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!p&&c&&!o&&t<u.length;t++){var o,a=u[t],f=d.p,m=a[2];n>3?(o=m===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,d.v=r,d.n=a[1]):f<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,d.n=m,l=0))}if(o||n>1)return i;throw p=!0,r}return function(o,u,m){if(c>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!p;){a||(l?l<3?(l>1&&(d.n=-1),f(l,s)):d.n=s:d.v=s);try{if(c=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(p=d.n<0)?s:n.call(r,d))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:p}}}(n,o,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Mc(t={},r,function(){return this}),t),p=c.prototype=l.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Mc(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=c,Mc(p,"constructor",c),Mc(c,"constructor",s),s.displayName="GeneratorFunction",Mc(c,o,"GeneratorFunction"),Mc(p),Mc(p,o,"Generator"),Mc(p,r,function(){return this}),Mc(p,"toString",function(){return"[object Generator]"}),(Yc=function(){return{w:a,m:d}})()}function Mc(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Mc=function(e,t,n,r){function a(t,n){Mc(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Mc(e,t,n,r)}function wc(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Sc(e){return e.replace(/\r\n/g,"\n").replace(/^paroles?\s+de.*\n/i,"").trim()}function jc(e,t){return Tc.apply(this,arguments)}function Tc(){var e;return e=Yc().m(function e(t,n){var r,o,a,i,l,s;return Yc().w(function(e){for(;;)switch(e.n){case 0:if(r=(t||"").trim(),o=(n||"").trim(),r&&o){e.n=1;break}return e.a(2,null);case 1:a="".concat("https://europe-west2-pfc-uk-generatedesigns.cloudfunctions.net/PFC-SPOTIFY","?action=lyrics&artist=").concat(encodeURIComponent(r),"&title=").concat(encodeURIComponent(o)),i=Yc().m(function e(){var t,n,r,o,i;return Yc().w(function(e){for(;;)switch(e.p=e.n){case 0:return t=new AbortController,n=setTimeout(function(){return t.abort()},2e4),e.p=1,e.n=2,fetch(a,{signal:t.signal});case 2:if(!(r=e.v).ok){e.n=4;break}return e.n=3,r.json();case 3:if(o=e.v,!(i=((null==o?void 0:o.lyrics)||"").trim())){e.n=4;break}return e.a(2,{v:Sc(i)});case 4:e.n=6;break;case 5:e.p=5,e.v;case 6:return e.p=6,clearTimeout(n),e.f(6);case 7:return e.a(2)}},e,null,[[1,5,6,7]])}),s=0;case 2:if(!(s<2)){e.n=5;break}return e.d(bc(i()),3);case 3:if(!(l=e.v)){e.n=4;break}return e.a(2,l.v);case 4:s++,e.n=2;break;case 5:return e.a(2,null)}},e)}),Tc=function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){wc(a,r,o,i,l,"next",e)}function l(e){wc(a,r,o,i,l,"throw",e)}i(void 0)})},Tc.apply(this,arguments)}function Nc(e){return Nc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nc(e)}function Wc(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return Ic(c,"_invoke",function(n,r,o){var a,l,s,c=0,u=o||[],p=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,d.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!p&&c&&!o&&t<u.length;t++){var o,a=u[t],f=d.p,m=a[2];n>3?(o=m===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,d.v=r,d.n=a[1]):f<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,d.n=m,l=0))}if(o||n>1)return i;throw p=!0,r}return function(o,u,m){if(c>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!p;){a||(l?l<3?(l>1&&(d.n=-1),f(l,s)):d.n=s:d.v=s);try{if(c=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(p=d.n<0)?s:n.call(r,d))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:p}}}(n,o,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Ic(t={},r,function(){return this}),t),p=c.prototype=l.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Ic(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=c,Ic(p,"constructor",c),Ic(c,"constructor",s),s.displayName="GeneratorFunction",Ic(c,o,"GeneratorFunction"),Ic(p),Ic(p,o,"Generator"),Ic(p,r,function(){return this}),Ic(p,"toString",function(){return"[object Generator]"}),(Wc=function(){return{w:a,m:d}})()}function Ic(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Ic=function(e,t,n,r){function a(t,n){Ic(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Ic(e,t,n,r)}function Uc(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function kc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Dc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kc(Object(n),!0).forEach(function(t){Ac(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ac(e,t,n){return(t=function(e){var t=function(e){if("object"!=Nc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Nc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Nc(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Lc(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Lc(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Oc={spotify:"Spotify code",apple:"Apple Music QR",deezer:"Deezer QR",audio:"Audio QR",qr:"QR code"},Ec="tpe-text-[16px] tpe-w-full tpe-box-border tpe-px-3 tpe-py-2 tpe-bg-white tpe-border tpe-border-solid tpe-border-gray-300 tpe-rounded-lg focus:tpe-ring-2 focus:tpe-ring-gray-900 tpe-outline-none tpe-text-gray-900",Vc="tpe-text-xs tpe-font-bold tpe-text-gray-700 tpe-uppercase tpe-tracking-wide tpe-mb-2 tpe-block";var zc=[{id:"black",name:"White",labelColor:"#FFFFFF"},{id:"cream",name:"Cream",labelColor:"#EFE0C4"},{id:"sand",name:"Sand",labelColor:"#C8AF87"},{id:"charcoal",name:"Gold",labelColor:"#D4AF37"},{id:"mustard",name:"Mustard",labelColor:"#C58A11"},{id:"coral",name:"Orange",labelColor:"#E2562B"},{id:"red",name:"Red",labelColor:"#B3202C"},{id:"blush",name:"Blush",labelColor:"#E8B4BC"},{id:"wine",name:"Wine",labelColor:"#6E1F2E"},{id:"plum",name:"Plum",labelColor:"#4A2A63"},{id:"sage",name:"Sage",labelColor:"#7E9B70"},{id:"forest",name:"Forest",labelColor:"#1F4D2E"},{id:"teal",name:"Teal",labelColor:"#12615C"},{id:"sky",name:"Sky",labelColor:"#7FA9D0"},{id:"navy",name:"Navy",labelColor:"#10204A"},{id:"dark",name:"Midnight",labelColor:"#0F172A"},{id:"light",name:"White record",labelColor:"#000000",discColor:"#FFFFFF",discTextColor:"#000000"}];const Xc=function(t){var n,r,o,a=t.config,i=t.onChange,l=t.onLabelChange,s=t.onImagesUploaded,c=t.onDeleteImage,u=t.selectedLayoutId,p=Cc((0,e.useState)(!a.label.songTitle),2),d=p[0],f=p[1],m=Cc((0,e.useState)("idle"),2),h=m[0],g=m[1],x=Cc((0,e.useState)(null),2),v=x[0],b=x[1],Y=Cc((0,e.useState)(!1),2),M=Y[0],w=Y[1],S=Cc((0,e.useState)(!1),2),j=S[0],T=S[1],N=Cc((0,e.useState)(!1),2),W=N[0],I=N[1],U=a.label,k=a.scanCode,D="vinyl-photo"===u;(0,e.useEffect)(function(){D&&!a.centrePhotoId?T(!0):T(!1)},[D,a.centrePhotoId]);var A=function(e){var t=URL.createObjectURL(e),n=crypto.randomUUID?crypto.randomUUID():"vinyl-photo-"+Date.now();s([{id:n,url:t,file:e,thumbUrl:t,displayUrl:t}]),i({centrePhotoId:n}),b(t)},C=((null===(n=a.metadata)||void 0===n?void 0:n.artist)||U.artist||"").trim(),L=((null===(r=a.metadata)||void 0===r?void 0:r.title)||U.songTitle||"").trim(),O=(0,e.useRef)(!1);(0,e.useEffect)(function(){var e,t=null===(e=a.metadata)||void 0===e?void 0:e.collectionId;if(t&&U.recordLabelFetchedFor!==t)if(mr)U.recordLabel||hr("recordLabel");else if(!O.current){if(!U.recordLabel){var n=!1;return io(t).then(function(e){n||O.current||l(e?{recordLabel:e.toUpperCase(),recordLabelFetchedFor:t}:{recordLabelFetchedFor:t})}).catch(function(){n||l({recordLabelFetchedFor:t})}),function(){n=!0}}l({recordLabelFetchedFor:t})}},[null===(o=a.metadata)||void 0===o?void 0:o.collectionId,U.recordLabel,U.recordLabelFetchedFor]);var E=(0,e.useRef)("");(0,e.useEffect)(function(){if(L){if(mr)return a.lyrics&&a.lyrics.trim()||hr("lyrics"),void(a.lyricsLoading&&i({lyricsLoading:!1}));if(a.lyrics&&a.lyrics.trim())a.lyricsLoading&&i({lyricsLoading:!1});else{var e="".concat(C,"|").concat(L);if(E.current!==e){E.current=e;var t=!1;return g("loading"),a.lyricsLoading||i({lyricsLoading:!0}),jc(C,L).then(function(e){t||(e?(i({lyrics:e,lyricsLoading:!1}),g("found")):(i({lyricsLoading:!1}),g("miss")))}).catch(function(){t||(i({lyricsLoading:!1}),g("miss"))}),function(){t=!0}}}}else a.lyricsLoading&&i({lyricsLoading:!1})},[L,C,a.lyrics]);var V=function(){var e,t=(e=Wc().m(function e(){var t;return Wc().w(function(e){for(;;)switch(e.n){case 0:return g("loading"),e.n=1,jc(C,L);case 1:(t=e.v)?(i({lyrics:t}),g("found")):g("miss");case 2:return e.a(2)}},e)}),function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){Uc(a,r,o,i,l,"next",e)}function l(e){Uc(a,r,o,i,l,"throw",e)}i(void 0)})});return function(){return t.apply(this,arguments)}}(),z=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:"tpe-text-[10px] tpe-font-bold tpe-text-gray-500 tpe-uppercase tpe-tracking-wide tpe-mb-1 tpe-block",children:t}),(0,Zt.jsx)("input",{type:"text",className:Ec,placeholder:n,maxLength:r.maxLength,value:U[e],onChange:function(t){"recordLabel"===e&&(O.current=!0),l(Ac({},e,t.target.value))}}),r.maxLength||r.hint?(0,Zt.jsxs)("div",{className:"tpe-mt-1 tpe-flex tpe-items-baseline tpe-justify-between tpe-gap-2 tpe-text-[10px] tpe-text-gray-500",children:[(0,Zt.jsx)("span",{children:r.hint}),r.maxLength?(0,Zt.jsxs)("span",{className:U[e].length>=r.maxLength?"tpe-text-amber-600 tpe-font-bold":"",children:[U[e].length,"/",r.maxLength]}):null]}):null]})};return(0,Zt.jsxs)("div",{className:"tpe-space-y-5",children:[(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:Vc,children:"Find your song"}),d?(0,Zt.jsx)(yc,{onSelect:function(e){var t;i({metadata:e,lyrics:"",lyricsLoading:!0,label:Dc(Dc({},U),{},{songTitle:(e.title||"").toUpperCase(),artist:(e.artist||"").toUpperCase(),year:e.releaseYear||"",length:(t=e.durationSec,null==t?"":"".concat(Math.floor(t/60),":").concat(String(t%60).padStart(2,"0"))),recordLabel:(e.label||"").toUpperCase(),recordLabelFetchedFor:void 0})}),f(!1),O.current=!1}}):(0,Zt.jsxs)("button",{type:"button",onClick:function(){return f(!0)},className:"tpe-w-full tpe-text-left tpe-px-3 tpe-py-2 tpe-rounded-lg tpe-border tpe-border-gray-300 tpe-bg-white hover:tpe-border-gray-400 tpe-text-sm tpe-text-gray-700",children:[U.songTitle?"".concat(U.songTitle," — ").concat(U.artist):"Search for a song…"," ",(0,Zt.jsx)("span",{className:"tpe-text-gray-400",children:"(change)"})]})]}),(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:Vc,children:"Lyrics"}),(0,Zt.jsx)("textarea",{rows:6,className:"".concat(Ec," tpe-resize-y tpe-leading-snug"),placeholder:"Paste the lyrics here — or leave blank and we'll source them for you after you order.",value:a.lyrics,onChange:function(e){return i({lyrics:e.target.value})}}),(0,Zt.jsxs)("div",{className:"tpe-mt-1.5 tpe-flex tpe-items-center tpe-gap-2",children:[(0,Zt.jsx)("button",{type:"button",onClick:V,disabled:!U.songTitle,className:"tpe-text-xs tpe-font-bold tpe-px-2.5 tpe-py-1.5 tpe-rounded-lg tpe-border tpe-border-gray-300 tpe-bg-white hover:tpe-border-gray-400 disabled:tpe-opacity-40 disabled:tpe-cursor-not-allowed",children:"loading"===h?"Fetching…":"Auto-fill lyrics"}),"found"===h&&(0,Zt.jsx)("span",{className:"tpe-text-xs tpe-text-green-600",children:"Lyrics added — check & edit."}
2),"miss"===h&&(0,Zt.jsx)("span",{className:"tpe-text-xs tpe-text-amber-600",children:"Not found — paste them, or leave blank for us to source."})]}),(0,Zt.jsxs)("label",{className:"tpe-mt-2 tpe-flex tpe-items-center tpe-gap-2 tpe-text-xs tpe-text-gray-700 tpe-cursor-pointer",children:[(0,Zt.jsx)("input",{type:"checkbox",checked:!!a.cursiveLyrics,onChange:function(e){return i({cursiveLyrics:e.target.checked})}}),"Script / cursive lyric font"]})]}),(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:Vc,children:"Centre label"}),(0,Zt.jsxs)("div",{className:"tpe-grid tpe-grid-cols-2 tpe-gap-3",children:[z("line1","Top line 1","SOPHIE & JASON"),z("line2","Top line 2","12TH JANUARY 2018"),z("songTitle","Song title","THINKING OUT LOUD"),z("artist","Artist","ED SHEERAN"),z("recordLabel","Record label","ATLANTIC RECORDS",{maxLength:40,hint:"From the album credits — shorten it if you prefer"}),z("country","Country","UK"),z("year","Year","2014"),z("length","Length","4:42"),z("sideText","Side","SIDE A")]})]}),(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:Vc,children:"Theme"}),(0,Zt.jsx)("div",{className:"tpe-grid tpe-grid-cols-4 tpe-gap-2",children:zc.map(function(e){var t=function(e){var t,n,r;return{discColor:null!==(t=e.discColor)&&void 0!==t?t:"#000000",discTextColor:null!==(n=e.discTextColor)&&void 0!==n?n:"#FFFFFF",labelColor:e.labelColor,labelTextColor:(r=e.labelColor,function(e){var t=e.replace("#",""),n=3===t.length?t.split("").map(function(e){return e+e}).join(""):t;return.2126*parseInt(n.slice(0,2),16)+.7152*parseInt(n.slice(2,4),16)+.0722*parseInt(n.slice(4,6),16)}(r)>=210?"#000000":"#FFFFFF")}}(e),n=a.themeId?a.themeId===e.id:a.discColor.toLowerCase()===t.discColor.toLowerCase()&&a.labelColor.toLowerCase()===t.labelColor.toLowerCase();return(0,Zt.jsxs)("button",{type:"button",title:e.name,onClick:function(){return i(Dc(Dc({},t),{},{themeId:e.id}))},className:"tpe-flex tpe-flex-col tpe-items-center tpe-gap-1 tpe-p-1.5 tpe-rounded-lg tpe-border tpe-cursor-pointer ".concat(n?"tpe-border-gray-900 tpe-ring-1 tpe-ring-gray-900":"tpe-border-gray-200 hover:tpe-border-gray-400"),children:[(0,Zt.jsx)("span",{className:"tpe-relative tpe-w-8 tpe-h-8 tpe-rounded-full tpe-border tpe-border-black/10",style:{backgroundColor:t.discColor},children:(0,Zt.jsx)("span",{className:"tpe-absolute tpe-top-1/2 tpe-left-1/2 tpe--translate-x-1/2 tpe--translate-y-1/2 tpe-w-3 tpe-h-3 tpe-rounded-full",style:{backgroundColor:t.labelColor}})}),(0,Zt.jsx)("span",{className:"tpe-text-[9px] tpe-text-gray-600 tpe-truncate tpe-max-w-full",children:e.name})]},e.id)})})]}),D&&(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:Vc,children:"Centre photo"}),(0,Zt.jsx)("p",{className:"tpe-text-[11px] tpe-text-gray-500 tpe-mb-2 tpe--mt-1",children:"Your image fills the record label."}),a.centrePhotoId?(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-gap-3",children:[v?(0,Zt.jsx)("img",{src:v,alt:"",className:"tpe-w-14 tpe-h-14 tpe-rounded-full tpe-object-cover tpe-border tpe-border-gray-300"}):(0,Zt.jsx)("div",{className:"tpe-w-14 tpe-h-14 tpe-rounded-full tpe-bg-gray-100 tpe-border tpe-border-gray-300 tpe-flex tpe-items-center tpe-justify-center tpe-text-[10px] tpe-text-gray-500",children:"Photo"}),(0,Zt.jsx)("button",{type:"button",onClick:function(){a.centrePhotoId&&c(a.centrePhotoId),i({centrePhotoId:void 0}),b(null)},className:"tpe-text-xs tpe-font-bold tpe-px-2.5 tpe-py-1.5 tpe-rounded-lg tpe-border tpe-border-gray-300 hover:tpe-border-gray-400",children:"Remove"})]}):(0,Zt.jsxs)("label",{className:"".concat(Ec," tpe-flex tpe-items-center tpe-justify-center tpe-gap-2 tpe-cursor-pointer hover:tpe-border-gray-400 tpe-text-gray-700 tpe-font-medium"),children:[(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),(0,Zt.jsx)("polyline",{points:"17 8 12 3 7 8"}),(0,Zt.jsx)("line",{x1:"12",y1:"3",x2:"12",y2:"15"})]}),"Upload photo",(0,Zt.jsx)("input",{type:"file",accept:"image/*",className:"tpe-hidden",onChange:function(e){var t,n=null===(t=e.target.files)||void 0===t?void 0:t[0];n&&A(n)}})]})]}),(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:Vc,children:"Scan code"}),(0,Zt.jsx)("p",{className:"tpe-text-[11px] tpe-text-gray-500 tpe-mb-2 tpe--mt-1",children:"Add a Spotify code or QR so peo
2ple can scan to play the song."}),(0,Zt.jsxs)("button",{type:"button",onClick:function(){return w(!0)},className:"".concat(Ec," tpe-flex tpe-items-center tpe-justify-between tpe-cursor-pointer hover:tpe-border-gray-400 tpe-text-gray-700"),children:[(0,Zt.jsx)("span",{children:k.enabled&&"none"!==k.type?"On — ".concat(Oc[k.type]||"Scan code"):"Add a scan code"}),(0,Zt.jsx)("span",{className:"tpe-text-gray-400 tpe-text-xs tpe-font-bold tpe-uppercase",children:k.enabled&&"none"!==k.type?"Change":"Add"})]})]}),M&&(0,Zt.jsx)(qs,{config:a,onApply:function(e,t){var n;return i(Dc({scanCode:Dc(Dc({},a.scanCode),e)},t?{metadata:Dc(Dc({},null!==(n=a.metadata)&&void 0!==n?n:{title:"",artist:""}),t)}:{}))},onClose:function(){return w(!1)},excludeTypes:["audio"]}),j&&!a.centrePhotoId&&(0,y.createPortal)((0,Zt.jsxs)("div",{className:"tpe-font-Jost tpe-fixed tpe-inset-0 tpe-z-[10001] tpe-flex tpe-items-center tpe-justify-center tpe-p-4 tpe-animate-fade-in",children:[(0,Zt.jsx)("div",{className:"tpe-absolute tpe-inset-0 tpe-bg-black/60 tpe-backdrop-blur-sm",onClick:function(){return T(!1)}}),(0,Zt.jsxs)("div",{className:"tpe-relative tpe-bg-white tpe-w-full tpe-max-w-sm tpe-rounded-2xl tpe-shadow-2xl tpe-overflow-hidden tpe-flex tpe-flex-col",children:[(0,Zt.jsxs)("div",{className:"tpe-p-5 tpe-border-b tpe-border-gray-100 tpe-flex tpe-justify-between tpe-items-center",children:[(0,Zt.jsx)("h3",{className:"tpe-text-lg tpe-font-bold tpe-text-gray-900",children:"Add your centre photo"}),(0,Zt.jsx)("button",{onClick:function(){return T(!1)},className:"tpe-p-2 tpe-bg-gray-100 hover:tpe-bg-gray-200 tpe-rounded-full tpe-text-gray-600",children:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,Zt.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),(0,Zt.jsxs)("div",{className:"tpe-p-5",children:[(0,Zt.jsx)("p",{className:"tpe-text-xs tpe-text-gray-500 tpe-mb-3",children:"The Photo Centre layout puts your image on the record label. Drop a photo here or browse to upload."}),(0,Zt.jsxs)("label",{onDragOver:function(e){e.preventDefault(),I(!0)},onDragLeave:function(){return I(!1)},onDrop:function(e){var t;e.preventDefault(),I(!1);var n=null===(t=e.dataTransfer.files)||void 0===t?void 0:t[0];n&&n.type.startsWith("image/")&&A(n)},className:"tpe-flex tpe-flex-col tpe-items-center tpe-justify-center tpe-gap-3 tpe-px-4 tpe-py-10 tpe-rounded-xl tpe-border-2 tpe-border-dashed tpe-cursor-pointer tpe-text-center tpe-transition-colors ".concat(W?"tpe-border-gray-900 tpe-bg-gray-50":"tpe-border-gray-300 hover:tpe-border-gray-400"),children:[(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",className:"tpe-text-gray-400",children:[(0,Zt.jsx)("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),(0,Zt.jsx)("polyline",{points:"17 8 12 3 7 8"}),(0,Zt.jsx)("line",{x1:"12",y1:"3",x2:"12",y2:"15"})]}),(0,Zt.jsx)("span",{className:"tpe-text-sm tpe-font-bold tpe-text-gray-900",children:"Drag & drop your photo"}),(0,Zt.jsxs)("span",{className:"tpe-text-xs tpe-text-gray-500",children:["or ",(0,Zt.jsx)("span",{className:"tpe-underline",children:"browse files"})]}),(0,Zt.jsx)("input",{type:"file",accept:"image/*",className:"tpe-hidden",onChange:function(e){var t,n=null===(t=e.target.files)||void 0===t?void 0:t[0];n&&A(n)}})]}),(0,Zt.jsx)("button",{type:"button",onClick:function(){return T(!1)},className:"tpe-mt-4 tpe-w-full tpe-text-xs tpe-text-gray-500 hover:tpe-text-gray-700",children:"I’ll add it later"})]})]})]}),document.body)]})};function Pc(e){return Pc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pc(e)}function Zc(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return Gc(c,"_invoke",function(n,r,o){var a,l,s,c=0,u=o||[],p=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,d.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!p&&c&&!o&&t<u.length;t++){var o,a=u[t],f=d.p,m=a[2];n>3?(o=m===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,d.v=r,d.n=a[1]):f<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,d.n=m,l=0))}if(o||n>1)return i;throw p=!0,r}return function(o,u,m){if(c>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!p;){a||(l?l<3?(l>1&&(d.n=-1),f(l,s)):d.n=s:d.v=s);try{if(c=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(p=d.n<0)?s:n.call(r,d))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:p}}}(n,o,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Gc(t={},r,function(){return this}),t),p=c.prototype=l.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Gc(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=c,Gc(p,"constructor",c),Gc(c,"constructor",s),s.displayName="GeneratorFunction",Gc(c,o,"GeneratorFunction"),Gc(p),Gc(p,o,"Generator"),Gc(p,r,function(){return this}),Gc(p,"toString",function(){return"[object Generator]"}),(Zc=function(){return{w:a,m:d}})()}function Gc(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Gc=function(e,t,n,r){function a(t,n){Gc(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Gc(e,t,n,r)}function Fc(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Bc(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){Fc(a,r,o,i,l,"next",e)}function l(e){Fc(a,r,o,i,l,"throw",e)}i(void 0)})}}function Rc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Qc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rc(Object(n),!0).forEach(function(t){Hc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Hc(e,t,n){return(t=function(e){var t=function(e){if("object"!=Pc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Pc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Pc(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Jc(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jc(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var qc={spotify:"Spotify code",apple:"Apple Music QR",deezer:"Deezer QR",audio:"Audio QR",qr:"QR code"},_c="tpe-text-[16px] tpe-w-full tpe-box-border tpe-px-3 tpe-py-2 tpe-bg-white tpe-border tpe-border-solid tpe-border-gray-300 tpe-rounded-lg focus:tpe-ring-2 focus:tpe-ring-gray-900 tpe-outline-none tpe-text-gray-900",$c="tpe-text-xs tpe-font-bold tpe-text-gray-700 tpe-uppercase tpe-tracking-wide tpe-mb-2 tpe-block";function eu(e){return null==e?"":"".concat(Math.floor(e/60),":").concat(String(e%60).padStart(2,"0"))}const tu=function(t){var n,r,o,a=t.config,i=t.onChange,l=t.onLabelChange,s=t.onImagesUploaded,c=t.onDeleteImage,u=Kc((0,e.useState)(!a.label.songTitle),2),p=u[0],d=u[1],f=Kc((0,e.useState)("idle"),2),m=f[0],h=f[1],g=Kc((0,e.useState)(null),2),x=g[0],y=g[1],v=Kc((0,e.useState)(!1),2),b=v[0],Y=v[1],M=a.label,w=a.scanCode,S=function(){var e=Bc(Zc().m(function e(t){return Zc().w(function(e){for(;;)switch(e.n){case 0:i({metadata:t,coverArtUrl:t.albumArtUrl,useCustomCover:!1,lyrics:"",label:Qc(Qc({},M),{},{songTitle:(t.title||"").toUpperCase(),artist:(t.artist||"").toUpperCase(),year:t.releaseYear||"",length:eu(t.durationSec),recordLabel:(t.label||"").toUpperCase(),recordLabelFetchedFor:void 0})}),d(!1),N.current=!1;case 1:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),j=((null===(n=a.metadata)||void 0===n?void 0:n.artist)||M.artist||"").trim(),T=((null===(r=a.metadata)||void 0===r?void 0:r.title)||M.songTitle||"").trim(),N=(0,e.useRef)(!1);(0,e.useEffect)(function(){var e,t=null===(e=a.metadata)||void 0===e?void 0:e.collectionId;if(t&&M.recordLabelFetchedFor!==t)if(mr)M.recordLabel||hr("recordLabel");else if(!N.current){if(!M.recordLabel){var n=!1;return io(t).then(function(e){n||N.current||l(e?{recordLabel:e.toUpperCase(),recordLabelFetchedFor:t}:{recordLabelFetchedFor:t})}).catch(function(){n||l({recordLabelFetchedFor:t})}),function(){n=!0}}l({recordLabelFetchedFor:t})}},[null===(o=a.metadata)||void 0===o?void 0:o.collectionId,M.recordLabel,M.recordLabelFetchedFor]);var W=(0,e.useRef)("");(0,e.useEffect)(function(){if(T){if(mr)return a.lyrics&&a.lyrics.trim()||hr("lyrics"),void(a.lyricsLoading&&i({lyricsLoading:!1}));if(a.lyrics&&a.lyrics.trim())a.lyricsLoading&&i({lyricsLoading:!1});else{var e="".concat(j,"|").concat(T);if(W.current!==e){W.current=e;var t=!1;return h("loading"),a.lyricsLoading||i({lyricsLoading:!0}),jc(j,T).then(function(e){t||(e?(i({lyrics:e,lyricsLoading:!1}),h("found")):(i({lyricsLoading:!1}),h("miss")))}).catch(function(){t||(i({lyricsLoading:!1}),h("miss"))}),function(){t=!0}}}}else a.lyricsLoading&&i({lyricsLoading:!1})},[T,j,a.lyrics]);var I=function(){var e=Bc(Zc().m(function e(){var t;return Zc().w(function(e){for(;;)switch(e.n){case 0:return h("loading"),e.n=1,jc(j,T);case 1:(t=e.v)?(i({lyrics:t}),h("found")):h("miss");case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),U=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:"tpe-text-[10px] tpe-font-bold tpe-text-gray-500 tpe-uppercase tpe-tracking-wide tpe-mb-1 tpe-block",children:t}),(0,Zt.jsx)("input",{type:"text",className:_c,placeholder:n,value:M[e],onChange:function(t){"recordLabel"===e&&(N.current=!0),l(Hc({},e,t.target.value))}})]})},k=!!a.useCustomCover&&!!a.coverPhotoId;return(0,Zt.jsxs)("div",{className:"tpe-space-y-5",children:[(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:$c,children:"Find your song"}),p?(0,Zt.jsx)(yc,{onSelect:S}):(0,Zt.jsxs)("button",{type:"button",onClick:function(){return d(!0)},className:"tpe-w-full tpe-text-left tpe-px-3 tpe-py-2 tpe-rounded-lg tpe-border tpe-border-gray-300 tpe-bg-white hover:tpe-border-gray-400 tpe-text-sm tpe-text-gray-700",children:[M.songTitle?"".concat(M.songTitle," — ").concat(M.artist):"Search for a song…"," ",(0,Zt.jsx)("span",{className:"tpe-text-gray-400",children:"(change)"})]})]}),(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:$c,children:"Album cover"}),(0,Zt.jsx)("p",{className:"tpe-text-[11px] tpe-text-gray-500 tpe-mb-2 tpe--mt-1",children:"We print the real album artwork by default — or upload your own image instead."}),(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-gap-3",children:[k&&x?(0,Zt.jsx)("img",{src:x,alt:"",className:"tpe-w-16 tpe-h-16 tpe-rounded tpe-object-cover tpe-border tpe-border-gray-300"}
2):a.coverArtUrl?(0,Zt.jsx)("img",{src:a.coverArtUrl,alt:"",className:"tpe-w-16 tpe-h-16 tpe-rounded tpe-object-cover tpe-border tpe-border-gray-300"}):(0,Zt.jsx)("div",{className:"tpe-w-16 tpe-h-16 tpe-rounded tpe-bg-gray-100 tpe-border tpe-border-gray-300 tpe-flex tpe-items-center tpe-justify-center tpe-text-[10px] tpe-text-gray-500 tpe-text-center",children:"No cover yet"}),(0,Zt.jsxs)("div",{className:"tpe-flex tpe-flex-col tpe-gap-1.5",children:[a.coverArtUrl&&(0,Zt.jsx)("button",{type:"button",onClick:function(){return i({useCustomCover:!1})},className:"tpe-text-xs tpe-font-bold tpe-px-2.5 tpe-py-1.5 tpe-rounded-lg tpe-border ".concat(k?"tpe-border-gray-300 tpe-text-gray-600 hover:tpe-border-gray-400":"tpe-border-gray-900 tpe-text-gray-900"),children:"Use album cover"}),k?(0,Zt.jsx)("button",{type:"button",onClick:function(){a.coverPhotoId&&c(a.coverPhotoId),i({coverPhotoId:void 0,useCustomCover:!1}),y(null)},className:"tpe-text-xs tpe-font-bold tpe-px-2.5 tpe-py-1.5 tpe-rounded-lg tpe-border tpe-border-gray-300 hover:tpe-border-gray-400",children:"Remove my image"}):(0,Zt.jsxs)("label",{className:"tpe-text-xs tpe-font-bold tpe-px-2.5 tpe-py-1.5 tpe-rounded-lg tpe-border tpe-border-gray-300 hover:tpe-border-gray-400 tpe-cursor-pointer tpe-text-center",children:["Upload my own",(0,Zt.jsx)("input",{type:"file",accept:"image/*",className:"tpe-hidden",onChange:function(e){var t,n,r,o,a=null===(t=e.target.files)||void 0===t?void 0:t[0];a&&(n=a,r=URL.createObjectURL(n),o=crypto.randomUUID?crypto.randomUUID():"album-cover-"+Date.now(),s([{id:o,url:r,file:n,thumbUrl:r,displayUrl:r}]),i({coverPhotoId:o,useCustomCover:!0}),y(r))}})]})]})]})]}),(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:$c,children:"Lyrics"}),(0,Zt.jsx)("textarea",{rows:6,className:"".concat(_c," tpe-resize-y tpe-leading-snug"),placeholder:"Paste the lyrics here — or leave blank and we'll source them for you after you order.",value:a.lyrics,onChange:function(e){return i({lyrics:e.target.value})}}),(0,Zt.jsxs)("div",{className:"tpe-mt-1.5 tpe-flex tpe-items-center tpe-gap-2",children:[(0,Zt.jsx)("button",{type:"button",onClick:I,disabled:!M.songTitle,className:"tpe-text-xs tpe-font-bold tpe-px-2.5 tpe-py-1.5 tpe-rounded-lg tpe-border tpe-border-gray-300 tpe-bg-white hover:tpe-border-gray-400 disabled:tpe-opacity-40 disabled:tpe-cursor-not-allowed",children:"loading"===m?"Fetching…":"Auto-fill lyrics"}),"found"===m&&(0,Zt.jsx)("span",{className:"tpe-text-xs tpe-text-green-600",children:"Lyrics added — check & edit."}),"miss"===m&&(0,Zt.jsx)("span",{className:"tpe-text-xs tpe-text-amber-600",children:"Not found — paste them, or leave blank for us to source."})]}),(0,Zt.jsxs)("label",{className:"tpe-mt-2 tpe-flex tpe-items-center tpe-gap-2 tpe-text-xs tpe-text-gray-700 tpe-cursor-pointer",children:[(0,Zt.jsx)("input",{type:"checkbox",checked:!!a.cursiveLyrics,onChange:function(e){return i({cursiveLyrics:e.target.checked})}}),"Script / cursive lyric font"]})]}),(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:$c,children:"Text"}),(0,Zt.jsxs)("div",{className:"tpe-grid tpe-grid-cols-2 tpe-gap-3",children:[U("artist","Artist","ED SHEERAN"),U("songTitle","Song title","THINKING OUT LOUD"),U("recordLabel","Record label","ATLANTIC RECORDS"),U("year","Year","2014"),U("length","Length","4:42")]})]}),(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:$c,children:"Theme"}),(0,Zt.jsx)("div",{className:"tpe-grid tpe-grid-cols-4 tpe-gap-2",children:ve.map(function(e){var t=function(e){return{bgColor:e.background,textColor:e.textColor}}(e),n=a.bgColor.toLowerCase()===t.bgColor.toLowerCase()&&a.textColor.toLowerCase()===t.textColor.toLowerCase();return(0,Zt.jsxs)("button",{type:"button",title:e.name,onClick:function(){return i(t)},className:"tpe-flex tpe-flex-col tpe-items-center tpe-gap-1 tpe-p-1.5 tpe-rounded-lg tpe-border tpe-cursor-pointer ".concat(n?"tpe-border-gray-900 tpe-ring-1 tpe-ring-gray-900":"tpe-border-gray-200 hover:tpe-border-gray-400"),children:[(0,Zt.jsx)("span",{className:"tpe-relative tpe-w-8 tpe-h-8 tpe-rounded tpe-border tpe-border-black/10 tpe-flex tpe-items-center tpe-justify-center",style:{backgroundColor:t.bgColor},children:(0,Zt.jsx)("span",{className:"tpe-w-4 tpe-h-1.5 tpe-rounded-sm",style:{backgroundColor:t.textColor}})}),(0,Zt.jsx)("span",{className:"tpe-text-[9px] tpe-text-gray-600 tpe-truncate tpe-max-w-full",children:e.name})]},e.id)})})]}),(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:$c,children:"Scan code"}),(0,Zt.jsx)("p",{className:"tpe-text-[11px] tpe-text-gray-500 tpe-mb-2 tpe--mt-1",children:"Add a Spotify code or QR so peo
2ple can scan to play the song."}),(0,Zt.jsxs)("button",{type:"button",onClick:function(){return Y(!0)},className:"".concat(_c," tpe-flex tpe-items-center tpe-justify-between tpe-cursor-pointer hover:tpe-border-gray-400 tpe-text-gray-700"),children:[(0,Zt.jsx)("span",{children:w.enabled&&"none"!==w.type?"On — ".concat(qc[w.type]||"Scan code"):"Add a scan code"}),(0,Zt.jsx)("span",{className:"tpe-text-gray-400 tpe-text-xs tpe-font-bold tpe-uppercase",children:w.enabled&&"none"!==w.type?"Change":"Add"})]})]}),b&&(0,Zt.jsx)(qs,{config:a,onApply:function(e,t){var n;return i(Qc({scanCode:Qc(Qc({},a.scanCode),e)},t?{metadata:Qc(Qc({},null!==(n=a.metadata)&&void 0!==n?n:{title:"",artist:""}),t)}:{}))},onClose:function(){return Y(!1)},excludeTypes:["audio"]})]})};function nu(e){return nu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nu(e)}var ru=["bounds"],ou=["recropped"];function au(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return iu(c,"_invoke",function(n,r,o){var a,l,s,c=0,u=o||[],p=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,d.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!p&&c&&!o&&t<u.length;t++){var o,a=u[t],f=d.p,m=a[2];n>3?(o=m===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,d.v=r,d.n=a[1]):f<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,d.n=m,l=0))}if(o||n>1)return i;throw p=!0,r}return function(o,u,m){if(c>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!p;){a||(l?l<3?(l>1&&(d.n=-1),f(l,s)):d.n=s:d.v=s);try{if(c=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(p=d.n<0)?s:n.call(r,d))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:p}}}(n,o,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(iu(t={},r,function(){return this}),t),p=c.prototype=l.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,iu(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=c,iu(p,"constructor",c),iu(c,"constructor",s),s.displayName="GeneratorFunction",iu(c,o,"GeneratorFunction"),iu(p),iu(p,o,"Generator"),iu(p,r,function(){return this}),iu(p,"toString",function(){return"[object Generator]"}),(au=function(){return{w:a,m:d}})()}function iu(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}iu=function(e,t,n,r){function a(t,n){iu(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},iu(e,t,n,r)}function lu(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function su(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){lu(a,r,o,i,l,"next",e)}function l(e){lu(a,r,o,i,l,"throw",e)}i(void 0)})}}function cu(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function uu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function pu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?uu(Object(n),!0).forEach(function(t){du(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function du(e,t,n){return(t=function(e){var t=function(e){if("object"!=nu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=nu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==nu(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fu(e){return function(e){if(Array.isArray(e))return gu(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||hu(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||hu(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hu(e,t){if(e){if("string"==typeof e)return gu(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gu(e,t):void 0}}function gu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var xu="tpe-h-11 tpe-w-full tpe-px-3 tpe-border tpe-border-gray-400 tpe-rounded-lg tpe-text-[16px] tpe-shadow-sm focus:tpe-ring-1 focus:tpe-ring-gray-900 focus:tpe-border-gray-900 tpe-outline-none tpe-bg-white tpe-text-gray-900",yu="tpe-relative tpe-w-10 tpe-h-6 tpe-bg-gray-200 peer-focus:tpe-outline-none tpe-rounded-full tpe-peer peer-checked:after:tpe-translate-x-full peer-checked:after:tpe-border-white after:tpe-content-[''] after:tpe-absolute after:tpe-top-[2px] after:tpe-left-[2px] after:tpe-bg-white after:tpe-border-gray-300 after:tpe-border after:tpe-rounded-full after:tpe-h-5 after:tpe-w-5 after:tpe-transition-all peer-checked:tpe-bg-brand-lime",vu="tpe-font-Archivo tpe-font-bold",bu=function(e){var t=e.inline,n=void 0!==t&&t,r=e.className,o=void 0===r?"":r;return(0,Zt.jsx)("div",{className:"".concat(n?"":"tpe-absolute tpe-top-1.5 tpe-right-1.5"," tpe-w-4 tpe-h-4 tpe-bg-brand-lime tpe-rounded-full tpe-flex tpe-items-center tpe-justify-center tpe-shrink-0 tpe-shadow-sm ").concat(o),children:(0,Zt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round",className:"tpe-text-brand-accentink",children:(0,Zt.jsx)("polyline",{points:"20 6 9 17 4 12"})})})},Yu=function(e){var t,n=e.style,r=e.color,o=[.35,.7,.45,.95,.55,.8,.4,.65,.5],a=56,i=28,l=14,s=a/o.length,c=.55*s;switch(n){case"linear":case"gradient-bars":t=o.map(function(e,t){return(0,Zt.jsx)("rect",{x:t*s+(s-c)/2,y:i-e*i,width:c,height:e*i,rx:.3*c,fill:r,opacity:"gradient-bars"===n?.4+.6*e:1},t)});break;case"linear-mirror":default:t=o.map(function(e,t){return(0,Zt.jsx)("rect",{x:t*s+(s-c)/2,y:l-e*l,width:c,height:e*l*2,rx:.3*c,fill:r},t)});break;case"linear-split-3":case"linear-split-4":var u="linear-split-3"===n?3:4,p=i/u;t=Array.from({length:u}).flatMap(function(e,t){return o.slice(0,5).map(function(e,n){var o=t*p+p/2;return(0,Zt.jsx)("rect",{x:n*(a/5)+(a/5-c)/2,y:o-e*p*.4,width:c,height:e*p*.8,rx:.3*c,fill:r},"".concat(t,"-").concat(n))})});break;case"ribbon":t=(0,Zt.jsx)("path",{d:"M0 ".concat(l," ").concat(o.map(function(e,t){return"L ".concat(t*(a/(o.length-1))," ").concat(l-e*l)}).join(" ")," ").concat(o.slice().reverse().map(function(e,t){return"L ".concat((o.length-1-t)*(a/(o.length-1))," ").concat(l+e*l)}).join(" ")," Z"),fill:r});break;case"curve":t=(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)("path",{d:"M0 ".concat(l," ").concat(o.map(function(e,t){return"L ".concat(t*(a/(o.length-1))," ").concat(l-e*l)}).join(" ")),fill:"none",stroke:r,strokeWidth:1.5,strokeLinecap:"round"}),(0,Zt.jsx)("path",{d:"M0 ".concat(l," ").concat(o.map(function(e,t){return"L ".concat(t*(a/(o.length-1))," ").concat(l+e*l)}).join(" ")),fill:"none",stroke:r,strokeWidth:1.5,strokeLinecap:"round"})]});break;case"radial":case"radial-mirror":var d="radial-mirror"===n?5:3.5;t=o.map(function(e,t){var a=t/o.length*Math.PI*2-Math.PI/2,i="radial-mirror"===n?d-3*e:d,s=d+e*(14-d);return(0,Zt.jsx)("line",{x1:28+i*Math.cos(a),y1:l+i*Math.sin(a),x2:28+s*Math.cos(a),y2:l+s*Math.sin(a),stroke:r,strokeWidth:1.4,strokeLinecap:"round"},t)});break;case"concentric-rings":t=[4,8,12].map(function(e,t){return(0,Zt.jsx)("g",{children:o.map(function(t,n){var a=n/o.length*Math.PI*2;return(0,Zt.jsx)("line",{x1:28+(e-t)*Math.cos(a),y1:l+(e-t)*Math.sin(a),x2:28+(e+t)*Math.cos(a),y2:l+(e+t)*Math.sin(a),stroke:r,strokeWidth:1.1,strokeLinecap:"round"},n)})},t)});break;case"dots":t=Array.from({length:5}).flatMap(function(e,t){return o.slice(0,5).map(function(e,n){return function(e,t,n){return(0,Zt.jsx)("circle",{cx:e,cy:t,r:n,fill:r})}(n*(a/5)+5.6,5.6*t+2.8,Math.max(.6,2.52*e))})})}return(0,Zt.jsx)("svg",{width:a,height:i,viewBox:"0 0 ".concat(a," ").concat(i),style:{display:"block"},children:t})},Mu=function(t){var n=t.id,r=t.icon,o=t.title,a=t.badge,i=t.summary,l=t.defaultOpen,s=void 0===l||l,c=t.collapsible,u=void 0!==c&&c,p=t.children,d=mu((0,e.useState)(s),2),f=d[0],m=d[1],h=!u||f;return(0,Zt.jsxs)("section",{id:n,className:"tpe-border-b tpe-border-gray-100 last:tpe-border-0",children:[(0,Zt.jsxs)("button",{type:"button",onClick:function(){return u&&m(function(e){return!e})},className:"tpe-w-full tpe-flex tpe-items-center tpe-gap-3 tpe-px-6 tpe-py-3 ".concat(u?"hover:tpe-bg-gray-50 tpe-cursor-pointer":"tpe-cursor-default"," tpe-transition-colors tpe-text-left"),children:[(0,Zt.jsx)("div",{className:"tpe-w-7 tpe-h-7 tpe-rounded-md tpe-bg-gray-100 tpe-text-gray-700 tpe-flex tpe-items-center tpe-justify-center tpe-shrink-0",children:r}),(0,Zt.jsxs)("div",{className:"tpe-flex-1 tpe-min-w-0",children:[(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-gap-2",children:[(0,Zt.jsx)("h3",{style:{margin:0},className:"".concat(vu," tpe-text-gray-900 tpe-text-base tpe-tracking-tight tpe-leading-tight"),children:o}),a&&(0,Zt.jsx)("span",{className:"tpe-text-[10px] tpe-font-bold tpe-uppercase tpe-tracking-wider tpe-text-gray-600 tpe-bg-gray-100 tpe-px-1.5 tpe-py-0.5 tpe-rounded",children:a})]}),i&&(0,Zt.jsx)("div",{className:"tpe-text-xs tpe-text-gray-500 tpe-truncate tpe-leading-tight",children:i})]}),u&&(0,Zt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"tpe-text-gray-400 tpe-shrink-0 tpe-transition-transform ".concat(h?"tpe-rotate-180":""),children:(0,Zt.jsx)("polyline",{points:"6 9 12 15 18 9"})})]}),h&&(0,Zt.jsx)("div",{className:"tpe-px-6 tpe-pb-4 tpe-space-y-3",children:p})]})};const wu=function(t){var n,r,o,a,i,l,s,c,u,p,d,f,m,h,g,x,y,b,Y,M,w,S,j,T,N,W,I,U,k,D,A,C,L=t.unitSystem,X=t.setUnitSystem,P=t.sizes,Z=t.frames,G=t.selectedSizeId,F=t.selectedFrameId,B=t.selectedLayoutId,R=t.activeProductType,Q=t.design,H=t.uploadedImages,K=t.onImagesUploaded,J=t.onUpdateDesign,q=t.onSelectImageForSlot,_=t.onAutofill,$=t.activeSlotId,ee=t.onLayoutChange,ne=t.onSizeChange,re=t.totalPrice,oe=t.subTotal,ae=t.priceLines,ie=void 0===ae?[]:ae,le=t.currency,se=t.sizePrices,ce=t.salePercent,ue=void 0===ce?0:ce,pe=t.onAddToCart,de=t.isTextOverflowing,fe=t.maxFontSize,me=(t.onOpenSceneView,t.setActiveSlotId),he=t.guideStep,ge=t.onDeleteImage,xe=t.isProcessingCart,be=t.cartBlockedReason,we=void 0===be?null:be,Se=t.defaultCountryCode,je=t.isMapLoading,Ne=void 0!==je&&je,We=(t.onMapLoading,t.onOpenSoundwaveSetup),Ie=t.validMountOptions,Le=void 0===Ie?[]:Ie,Oe=t.availableFonts,Ve=t.hideFooterOnMobile,ze=void 0!==Ve&&Ve,Xe=t.mobileTab,Ze=void 0===Xe?"SIZE":Xe,Be=t.mapFeatures,Re=void 0===Be?{enableMapMarkers:!0,enableMapRoutes:!0}:Be,He=t.enableEdgeChoice,Ke=void 0!==He&&He,qe=t.onStartMarkerReposition,_e=(0,e.useState)(function(){var e,t;return(null===(e=P.find(function(e){return e.id===G}))||void 0===e?void 0:e.category)||(null===(t=P[0])||void 0===t?void 0:t.category)||"Portrait"}),et=mu(_e,2),tt=et[0],nt=et[1],rt=mu((0,e.useState)(!1),2),ot=rt[0],at=rt[1],it=mu((0,e.useState)(!1),2),lt=it[0],st=it[1],ct=mu((0,e.useState)(null),2),pt=ct[0],dt=ct[1],ft=mu((0,e.useState)(null),2),mt=ft[0],ht=ft[1],gt=mu((0,e.useState)(!1),2),xt=gt[0],yt=gt[1],vt=mu((0,e.useState)(!1),2),bt=vt[0],Yt=vt[1],Mt=mu((0,e.useState)("3-5 days"),2),wt=Mt[0],St=Mt[1],jt=mu((0,e.useState)("3-5 days"),2),Tt=(jt[0],jt[1]),Nt=mu((0,e.useState)("United Kingdom"),2),Wt=Nt[0],It=Nt[1],Ut=(0,e.useRef)(null),kt=mu((0,e.useState)(null),2),Dt=kt[0],At=kt[1],Ct=mu((0,e.useState)(!1),2),Lt=Ct[0],Ot=Ct[1],Et=mu((0,e.useState)(""),2),Vt=Et[0],zt=Et[1],Gt=(0,e.useRef)(Q),Ft=mu((0,e.useState)(null),2),Bt=Ft[0],Rt=Ft[1],Qt=mu((0,e.useState)(null),2),Ht=Qt[0],Kt=Qt[1],Jt=(0,e.useRef)(null),qt=mu((0,e.useState)(!1),2),_t=qt[0],$t=qt[1],en=mu((0,e.useState)(!1),2),tn=en[0],nn=en[1],rn=mu((0,e.useState)(null),2),on=rn[0],an=rn[1],ln=mu((0,e.useState)(!1),2),sn=ln[0],cn=ln[1];(0,e.useEffect)(function(){var e=new Audio;Jt.current=e;var t=function(){return $t(!1)};return e.addEventListener("ended",t),function(){e.removeEventListener("ended",t),e.pause(),Jt.current=null}},[]);var un=(0,e.useCallback)(function(e){var t=Jt.current;if(t&&e){if(_t)return t.pause(),void $t(!1);t.src=e,t.currentTime=0,t.play().then(function(){return $t(!0)}).catch(function(){return $t(!1)})}},[_t]),pn=mu((0,e.useState)(3),2),dn=pn[0],fn=pn[1],mn=(0,e.useRef)(null),hn=(0,e.useCallback)(function(e){mn.current&&mn.current.disconnect(),e&&(mn.current=ne
2w ResizeObserver(function(e){var t=e[0].contentRect.width,n=Math.floor(t/75);fn(Math.max(3,n))}),mn.current.observe(e))},[]),gn=P.find(function(e){return e.id===G})||P[0],xn=(0,e.useMemo)(function(){if(H.length)return fu(H).sort(function(e,t){return(t.width||0)*(t.height||0)-(e.width||0)*(e.height||0)})[0]},[H]),yn="single"===R||"collage"===R||"preset"===R,vn=(0,e.useMemo)(function(){return yn?yl(xn,gn):null},[yn,xn,gn]),bn=Z.find(function(e){return e.id===F})||Z[0],Yn=ut[R][(null==gn?void 0:gn.category)||"Portrait"]||[],Mn=Q.customLayout&&Q.customLayout.id===B?Q.customLayout:Yn.find(function(e){return e.id===B}),wn=$&&(Q.starMaps[$]||Q.oldMaps[$]||Q.osMaps[$]||Q.maps[$])?$:(null==Mn||null===(n=Mn.slots[0])||void 0===n?void 0:n.id)||"1",Sn=Q.starMaps[wn],jn=Q.oldMaps[wn],Tn=Q.osMaps[wn],Nn=Q.maps[wn];(0,e.useEffect)(function(){Gt.current=Q},[Q]),(0,e.useEffect)(function(){var e=Se||"GB",t=$e.find(function(t){return t.code===e})||$e.find(function(e){return"GB"===e.code});if(t){var n=El({shippingDays:t.methods.express.max,shippingExclusions:t.exclusions,destinationCountryCode:t.code});St(Vl(n,t.locale,"long")),Tt(Vl(n,t.locale,"short")),It(t.name)}},[Se]),(0,e.useEffect)(function(){if(null!=Sn&&Sn.date){var e,t=function(e){return String(e).padStart(2,"0")},n=Pt(Date.parse(Sn.date),null!==(e=Sn.tzOffset)&&void 0!==e?e:0),r="".concat(n.getUTCFullYear(),"-").concat(t(n.getUTCMonth()+1),"-").concat(t(n.getUTCDate())),o=Sn.showTime?"".concat(r,"T").concat(t(n.getUTCHours()),":").concat(t(n.getUTCMinutes())):r;o!==Vt&&zt(o)}},[null==Sn?void 0:Sn.date,null==Sn?void 0:Sn.showTime,null==Sn?void 0:Sn.tzOffset,wn]),(0,e.useEffect)(function(){if(Vt){var e=setTimeout(function(){var e=Gt.current.starMaps[wn];if(e){var t=mu(e.showTime?Vt.split("T"):[Vt,"22:00"],2),n=t[0],r=t[1],o=mu((n||"").split("-").map(Number),3),a=o[0],i=o[1],l=o[2],s=mu((r||"22:00").split(":").map(Number),2),c=s[0],u=s[1];if(![a,i,l,c,u].some(function(e){return isNaN(e)})){var p=Xt(e.lat,e.lng,a,i,l,c,u),d=p.utcMs,f=p.offsetMinutes,m=new Date(d).toISOString();m===e.date&&f===e.tzOffset||J("starMaps",pu(pu({},Gt.current.starMaps),{},du({},wn,pu(pu({},e),{},{date:m,tzOffset:f}))))}}},600);return function(){return clearTimeout(e)}}},[Vt,wn]);var Wn,In,Un,kn,Dn,An,Cn,Ln,On,En,Vn,zn,Xn,Pn,Zn,Gn,Fn,Bn,Rn=function(e,t){J("starMaps",pu(pu({},Q.starMaps),{},du({},wn,pu(pu({},Q.starMaps[wn]),{},du({},e,t)))))},Qn=function(e,t){var n=pu(pu({},Q.oldMaps[wn]),{},du({},e,t));"styleId"===e&&(n.scale=Qe(String(t))),J("oldMaps",pu(pu({},Q.oldMaps),{},du({},wn,n)))},Hn=function(e,t){J("osMaps",pu(pu({},Q.osMaps),{},du({},wn,pu(pu({},Q.osMaps[wn]),{},du({},e,t)))))},Kn=function(e,t){J("maps",pu(pu({},Q.maps),{},du({},wn,pu(pu({},Q.maps[wn]),{},du({},e,t)))))},Jn=Je.find(function(e){return e.id===(null==Nn?void 0:Nn.styleId)}),qn=!(null==Jn||!Jn.base),_n=(null==Nn?void 0:Nn.routes)||[],$n=null!==(r=null==Nn?void 0:Nn.activeRouteId)&&void 0!==r?r:null===(o=_n[0])||void 0===o?void 0:o.id,er=_n.find(function(e){return e.id===$n}),tr=null!==(a=null==Nn?void 0:Nn.routeUiMode)&&void 0!==a?a:"idle",nr=function(e){var t=Gt.current.maps[wn];J("maps",pu(pu({},Gt.current.maps),{},du({},wn,pu(pu({},t),e)))),Gt.current=pu(pu({},Gt.current),{},{maps:pu(pu({},Gt.current.maps),{},du({},wn,pu(pu({},t),e)))})},rr=function(e,t){var n,r=((null===(n=Gt.current.maps[wn])||void 0===n?void 0:n.routes)||[]).map(function(n){return n.id===e?pu(pu({},n),t):n});nr({routes:r})},or=function(){var e=su(au().m(function e(t){var n,r,o,a,i;return au().w(function(e){for(;;)switch(e.n){case 0:if(r=null===(n=t.target.files)||void 0===n?void 0:n[0],Ut.current&&(Ut.current.value=""),r){e.n=1;break}return e.a(2);case 1:return At(null),e.n=2,Xs(r);case 2:if(!(o=e.v).error){e.n=3;break}return At({kind:"error",title:"GPX upload failed",messages:[o.error]}),e.a(2);case 3:a="route-".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2,6)),i={id:a,source:"gpx",name:r.name.replace(/\.gpx$/i,""),geoJsonRoute:o.geoJson,color:"#FF0000",colorMode:"solid",widthMultiplier:3,visible:!0,stats:o.stats},nr({routes:[].concat(fu(_n),[i]),activeRouteId:a,bounds:o.bounds}),o.warnings.length>
20&&At({kind:"warning",title:"GPX loaded with notices",messages:o.warnings});case 4:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),ar=function(){var e=su(au().m(function e(){var t,n,r,o,a,i,l,s,c,u,p,d;return au().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!Lt){e.n=1;break}return e.a(2);case 1:return Ot(!0),At(null),e.p=2,e.n=3,te();case 3:r=e.v,o=(null===(t=Gt.current.maps[wn])||void 0===t?void 0:t.routes)||[],a=null===(n=r[r.length-1])||void 0===n?void 0:n.id,i=180,l=-180,s=90,c=-90,u=!1,r.forEach(function(e){return e.geoJsonRoute.geometry.coordinates.forEach(function(e){var t=mu(e,2),n=t[0],r=t[1];Number.isFinite(n)&&Number.isFinite(r)&&(u=!0,n<i&&(i=n),n>l&&(l=n),r<s&&(s=r),r>c&&(c=r))})}),nr(pu({routes:[].concat(fu(o),fu(r)),activeRouteId:a},u?{bounds:[i,s,l,c]}:{})),e.n=5;break;case 4:e.p=4,d=e.v,"cancelled"!==(null==(p=d)?void 0:p.code)&&At({kind:"error",title:"Strava",messages:[(null==p?void 0:p.message)||"Could not connect to Strava."]});case 5:return e.p=5,Ot(!1),e.f(5);case 6:return e.a(2)}},e,null,[[2,4,5,6]])}));return function(){return e.apply(this,arguments)}}(),ir=function(){var e=Gt.current.maps[wn],t=(null==e?void 0:e.routes)||[],n="route-".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2,6)),r={id:n,source:"custom",color:"#FF0000",colorMode:"solid",widthMultiplier:3,visible:!0,customRoutePoints:[]};nr({routes:[].concat(fu(t),[r]),activeRouteId:n,routeUiMode:"draw"})},lr=L===v.IMPERIAL,sr=function(e,t){J("mount",pu(pu({},Q.mount),{},du({},e,t)))},cr=function(e,t){if(!e&&!t)return null;var n="";return e&&t?n="Coordinates and Date Font":e?n="Coordinates Font":t&&(n="Date Font"),(0,Zt.jsxs)("div",{className:"tpe-animate-fade-in",children:[(0,Zt.jsx)("label",{className:"tpe-text-xs tpe-font-bold tpe-text-gray-700 tpe-uppercase tpe-tracking-wide tpe-mb-2 tpe-block",children:n}),(0,Zt.jsxs)("div",{className:"tpe-relative",children:[(0,Zt.jsx)("select",{value:Q.metaFontFamily||Q.fontFamily,onChange:function(e){return J("metaFontFamily",e.target.value)},className:"tpe-w-full tpe-p-3 tpe-border tpe-border-gray-200 tpe-rounded-xl tpe-text-[16px] tpe-shadow-sm focus:tpe-ring-2 focus:tpe-ring-gray-900 tpe-outline-none tpe-transition-all tpe-bg-white tpe-text-gray-900 tpe-cursor-pointer ".concat(Q.metaFontFamily||Q.fontFamily),children:(Oe||Me).map(function(e){return(0,Zt.jsx)("option",{value:e.value,className:"tpe-font-sans",children:e.name},e.name)})}),(0,Zt.jsx)("div",{className:"tpe-absolute tpe-right-3 tpe-top-1/2 tpe--translate-y-1/2 tpe-pointer-events-none tpe-text-gray-500",children:(0,Zt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Zt.jsx)("polyline",{points:"6 9 12 15 18 9"})})})]})]})},ur=function(){if(Nn){var e={id:Date.now().toString(),lat:Nn.lat,lng:Nn.lng,styleId:"pin",color:"#DC2626",scale:1};Kn("markers",[].concat(fu(Nn.markers||[]),[e])),an(e.id)}},pr=function(e){an(function(t){return t===e?null:e})},dr=function(e,t){if(Nn&&Nn.markers){var n=Nn.markers.map(function(n){return n.id===e?pu(pu({},n),t):n});Kn("markers",n)}},fr=function(e){if(Nn&&Nn.markers){var t=Nn.markers.filter(function(t){return t.id!==e});Kn("markers",t),an(function(t){return t===e?null:t})}},mr=(0,e.useMemo)(function(){if(!Nn||!Nn.markers||!Nn.bounds)return!1;var e=mu(Nn.bounds,4),t=e[0],n=e[1],r=e[2],o=e[3];return Nn.markers.some(function(e){return e.lat<n||e.lat>o||e.lng<t||e.lng>r})},[Nn]),hr=function(e){return!$||"single"!==R&&"collage"!==R&&"preset"!==R?Ze===e?"":"tpe-hidden md:tpe-block":"PHOTOS"===e?"":"tpe-hidden"},gr=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return(0,Zt.jsxs)("div",{className:"tpe-space-y-3",children:[Q.captionLines.map(function(n,r){return(0,Zt.jsxs)("div",{className:"tpe-relative tpe-bg-white tpe-border tpe-border-solid tpe-border-gray-400 tpe-rounded-lg tpe-shadow-sm tpe-overflow-hidden focus-within:tpe-ring-1 focus-within:tpe-ring-gray-900 focus-within:tpe-border-gray-900",children:[(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center",children:[(0,Zt.jsx)("input",{type:"text",value:n.text,onChange:function(e){return J("captionLine
2s",Q.captionLines.map(function(t){return t.id===n.id?pu(pu({},t),{},{text:e.target.value}):t}))},placeholder:"Line ".concat(r+1),className:"tpe-flex-1 tpe-min-w-0 tpe-h-11 tpe-px-3 tpe-text-[16px] tpe-outline-none tpe-bg-transparent tpe-text-gray-900 ".concat(n.fontFamily||Q.fontFamily||"")}),(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-gap-0.5 tpe-pr-1 tpe-shrink-0",children:[t&&(0,Zt.jsx)("button",{onClick:function(){Kt(Ht===n.id?null:n.id),Rt(null)},className:"tpe-w-8 tpe-h-8 tpe-flex tpe-items-center tpe-justify-center tpe-rounded hover:tpe-bg-gray-100 tpe-transition-colors ".concat(Ht===n.id?"tpe-text-gray-700 tpe-bg-gray-100":"tpe-text-gray-500"),title:"Font",children:(0,Zt.jsx)("span",{className:"".concat(vu," tpe-text-lg"),children:"Aa"})}),t&&(0,Zt.jsx)("button",{onClick:function(){Rt(Bt===n.id?null:n.id),Kt(null)},className:"tpe-w-6 tpe-h-6 tpe-rounded-full tpe-border tpe-border-gray-300 tpe-shadow-sm tpe-transition-transform hover:tpe-scale-110",style:{backgroundColor:n.color||Q.textColor},title:"Line Color"}),t&&(0,Zt.jsx)("button",{onClick:function(){return J("captionLines",Q.captionLines.map(function(e){return e.id===n.id?pu(pu({},e),{},{isBold:!e.isBold}):e}))},className:"tpe-w-8 tpe-h-8 tpe-flex tpe-items-center tpe-justify-center tpe-rounded hover:tpe-bg-gray-100 tpe-transition-colors ".concat(n.isBold?"tpe-text-gray-700 tpe-bg-gray-100 tpe-font-bold":"tpe-text-gray-400"),title:"Bold",children:"B"}),e&&Q.captionLines.length>1&&(0,Zt.jsx)("button",{onClick:function(){return J("captionLines",Q.captionLines.filter(function(e){return e.id!==n.id}))},className:"tpe-w-8 tpe-h-8 tpe-flex tpe-items-center tpe-justify-center tpe-text-gray-400 hover:tpe-text-red-500 tpe-transition-colors tpe-rounded hover:tpe-bg-red-50",children:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,Zt.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]})]}),t&&Bt===n.id&&(0,Zt.jsxs)("div",{className:"tpe-mt-2 tpe-p-3 tpe-bg-white tpe-border tpe-border-gray-200 tpe-rounded-lg tpe-shadow-md tpe-z-20 tpe-relative tpe-animate-fade-in",children:[(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-justify-between tpe-mb-2",children:[(0,Zt.jsx)("span",{className:"tpe-text-xs tpe-font-bold tpe-text-gray-500 tpe-uppercase",children:"Line Color"}),(0,Zt.jsx)("button",{onClick:function(){J("captionLines",Q.captionLines.map(function(e){return e.id===n.id?pu(pu({},e),{},{color:void 0}):e})),Rt(null)},className:"tpe-text-[10px] tpe-text-gray-700 hover:tpe-text-gray-900 tpe-underline",children:"Reset to Default"})]}),(0,Zt.jsx)("div",{className:"tpe-flex tpe-flex-wrap tpe-gap-2",children:Ye.map(function(e){return(0,Zt.jsx)("button",{onClick:function(){J("captionLines",Q.captionLines.map(function(t){return t.id===n.id?pu(pu({},t),{},{color:e}):t})),Rt(null)},className:"tpe-w-6 tpe-h-6 tpe-rounded-full tpe-border tpe-shadow-sm tpe-transition-transform hover:tpe-scale-110 ".concat(n.color===e?"tpe-ring-2 tpe-ring-offset-1 tpe-ring-gray-900":"tpe-border-gray-200"),style:{backgroundColor:e}},e)})})]}),t&&Ht===n.id&&(0,Zt.jsxs)("div",{className:"tpe-mt-2 tpe-p-3 tpe-bg-white tpe-border tpe-border-gray-200 tpe-rounded-lg tpe-shadow-md tpe-z-20 tpe-relative tpe-animate-fade-in",children:[(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-justify-between tpe-mb-2",children:[(0,Zt.jsx)("span",{className:"tpe-text-xs tpe-font-bold tpe-text-gray-500 tpe-uppercase",children:"Font"}),(0,Zt.jsx)("button",{onClick:function(){J("captionLines",Q.captionLines.map(function(e){return e.id===n.id?pu(pu({},e),{},{fontFamily:void 0}):e})),Kt(null)},className:"tpe-text-[10px] tpe-text-gray-700 hover:tpe-text-gray-900 tpe-underline",children:"Reset to Default"})]}),(0,Zt.jsx)("div",{className:"tpe-grid tpe-grid-cols-1 tpe-gap-1 tpe-max-h-48 tpe-overflow-y-auto",children:(Oe||Me).map(function(e){return(0,Zt.jsx)("button",{onClick:function(){J("captionLine
2s",Q.captionLines.map(function(t){return t.id===n.id?pu(pu({},t),{},{fontFamily:e.value}):t})),Kt(null)},className:"tpe-text-left tpe-px-3 tpe-py-2 tpe-text-sm tpe-rounded hover:tpe-bg-gray-100 ".concat(n.fontFamily===e.value?"tpe-bg-gray-100 tpe-text-gray-900 tpe-font-bold":"tpe-text-gray-700"),children:(0,Zt.jsx)("span",{className:e.value,children:e.name})},e.name)})})]})]},n.id)}),e&&Q.captionLines.length<5&&(0,Zt.jsxs)("button",{onClick:function(){return J("captionLines",[].concat(fu(Q.captionLines),[{id:Date.now().toString(),text:"",isBold:!1}]))},className:"tpe-text-xs tpe-font-bold tpe-text-gray-700 hover:tpe-text-gray-900 tpe-flex tpe-items-center tpe-gap-1",children:[(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),(0,Zt.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]}),"Add Line"]})]})};return(0,Zt.jsxs)("div",{className:"tpe-flex tpe-flex-col tpe-h-full tpe-relative",children:[(0,Zt.jsxs)("div",{className:"tpe-flex-1 tpe-overflow-y-auto tpe-overflow-x-hidden tpe-pb-6",children:[(0,Zt.jsx)("div",{id:"section-photos",children:(0,Zt.jsx)("div",{className:hr("PHOTOS"),children:!$||"single"!==R&&"collage"!==R&&"preset"!==R?(0,Zt.jsxs)("div",{className:"tpe-p-0",children:["preset"!==R&&"single"!==R&&"collage"!==R&&"soundwave"!==R&&"vinyl"!==R&&"album"!==R&&("UPLOAD"===he||"SELECT_SLOT"===he||"ASSIGN_IMAGE"===he)&&(0,Zt.jsx)("div",{className:"tpe-px-6 tpe-pt-4 tpe-mb-6 tpe-hidden md:tpe-block",children:(0,Zt.jsxs)("div",{className:"tpe-bg-gray-50 tpe-border tpe-border-gray-200 tpe-rounded-lg tpe-p-3 tpe-flex tpe-items-start tpe-gap-3",children:[(0,Zt.jsx)("div",{className:"tpe-bg-gray-900 tpe-text-white tpe-rounded-full tpe-w-5 tpe-h-5 tpe-flex tpe-items-center tpe-justify-center tpe-shrink-0 tpe-mt-0.5 tpe-text-[10px] tpe-font-bold",children:"UPLOAD"===he?"1":"SELECT_SLOT"===he?"2":"3"}),(0,Zt.jsxs)("div",{className:"tpe-flex-1",children:[(0,Zt.jsx)("h4",{className:"tpe-text-xs tpe-font-bold tpe-text-gray-900 tpe-uppercase tpe-tracking-wide tpe-mb-1",children:"UPLOAD"===he?"Upload Photos":"SELECT_SLOT"===he?"Select Preview Slot":"Assign Image"}),(0,Zt.jsx)("p",{className:"tpe-text-xs tpe-text-gray-500",children:"UPLOAD"===he?"Start by uploading your photos below.":"SELECT_SLOT"===he?"Tap a grey photo area in the preview on the left.":"Now tap a photo below to fill the selected slot."})]})]})}),"collage"===R&&_&&H.length>0&&function(){var e=new Set(Object.values(Q.assignedImages).map(function(e){return e.imageId}).filter(Boolean)),t=((null==Mn?void 0:Mn.slots)||[]).filter(function(e){var t;return!(null!==(t=Q.assignedImages[e.id])&&void 0!==t&&t.imageId)}).length,n=H.filter(function(t){return!e.has(t.id)}).length;if(0===t||0===n)return null;var r=Math.min(t,n);return(0,Zt.jsxs)("div",{className:"tpe-px-6 tpe-pb-4",children:[(0,Zt.jsxs)("button",{onClick:_,className:"tpe-w-full tpe-flex tpe-items-center tpe-justify-center tpe-gap-2 tpe-py-3 tpe-px-4 tpe-rounded-xl tpe-bg-gray-900 hover:tpe-bg-gray-800 tpe-text-white tpe-text-sm tpe-font-bold tpe-shadow-sm tpe-transition-colors",children:[(0,Zt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Zt.jsx)("path",{d:"M13 2L3 14h9l-1 8 10-12h-9l1-8z"})}),"Autofill ",r," empty ",1===r?"tile":"tiles"]}),(0,Zt.jsx)("p",{className:"tpe-text-[10px] tpe-text-gray-500 tpe-text-center tpe-mt-1.5",children:"Fills empty tiles with your photos in order. Won't touch tiles you've set."})]})}(),"starmap"!==R&&"oldmap"!==R&&"osmap"!==R&&"map"!==R&&"preset"!==R&&"soundwave"!==R&&"vinyl"!==R&&"album"!==R&&(0,Zt.jsxs)("div",{className:"tpe-space-y-4 tpe-px-6 tpe-pb-6",children:[(0,Zt.jsx)("h3",{className:"tpe-font-bold tpe-text-gray-900 tpe-uppercase tpe-text-xs tpe-tracking-widest",children:"Manage Photos"}),(0,Zt.jsx)(Ji,{uploadedImages:H,onImagesUploaded:K,onDeleteImage:ge})]})]}):(0,Zt.jsxs)("div",{className:"tpe-p-6 tpe-space-y-6 tpe-animate-fade-in",children:[(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-justify-between tpe-pb-4 tpe-border-b tpe-border-gray-100",children:[(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-gap-2",children:[(0,Zt.jsx)("div",{className:"tpe-w-6 tpe-h-6 tpe-rounded-full tpe-bg-gray-100 tpe-text-gray-700 tpe-flex tpe-items-center tpe-justify-center",children:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),(0,Zt.jsx)("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]})}),(0,Zt.jsx)("h3",{className:"tpe-font-bold tpe-text-gray-900 tpe-uppercase tpe-text-xs tpe-tracking-widest",children:"Edit Image Slot"})]}),(0,Zt.jsx)("button",{onClick:function(){return me(null)},className:"tpe-text-xs tpe-font-bold tpe-bg-gray-900 hover:tpe-bg-gray-800 tpe-text-white tpe-px-4 tpe-py-1.5 tpe-rounded-lg tpe-transition-colors tpe-shadow-sm",children:"Done"})]}),$&&Q.assignedImages[$]&&(0,Zt.jsxs)("div",{className:"tpe-space-y-4",children:[(0,Zt.jsx)("h3",{className:"tpe-font-bold tpe-text-gray-900 tpe-uppercase tpe-text-xs tpe-tracking-widest",children:"Selected Image Options"}),(0,Zt.jsxs)("div",{className:"tpe-flex tpe-gap-2",children:[(0,Zt.jsxs)("button",{onClick:function(){return at(!0)},className:"tpe-flex-1 tpe-py-3 tpe-px-4 tpe-rounded-xl tpe-border tpe-border-gray-200 tpe-bg-white hover:tpe-bg-gray-50 tpe-text-sm tpe-font-bold tpe-text-gray-700 tpe-shadow-sm tpe-transition-all tpe-flex tpe-items-center tpe-justify-center tpe-gap-2",children:[(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("path",{d:"M6.13 1L6 16a2 2 0 0 0 2 2h15"}),(0,Zt.jsx)("path",{d:"M1 6.13L16 6a2 2 0 0 1 2 2v15"})]}),"Crop & Zoom"]}),"preset"!==R&&(0,Zt.jsx)("button",{onClick:function(){var e=pu({},Q.assignedImages);$&&delete e[$],J("assignedImages",e)},className:"tpe-px-4 tpe-rounded-xl tpe-border tpe-border-red-100 tpe-bg-red-50 tpe-text-red-600 hover:tpe-bg-red-100 tpe-transition-colors",children:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("polyline",{points:"3 6 5 6 21 6"}),(0,Zt.jsx)("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}),(0,Zt.jsx)("line",{x1:"10",y1:"11",x2:"10",y2:"17"}),(0,Zt.jsx)("line",{x1:"14",y1:"11",x2:"14",y2:"17"})]})})]})]}),H.length>0&&"preset"!==R&&(0,Zt.jsxs)("div",{className:"tpe-space-y-4",children:[(0,Zt.jsxs)("h3",{className:"tpe-font-bold tpe-text-gray-900 tpe-uppercase tpe-text-xs tpe-tracking-widest tpe-flex tpe-items-center tpe-justify-between",children:[(0,Zt.jsx)("span",{children:"Assign Photo to Slot"}),(0,Zt.jsx)("span",{className:"tpe-text-[10px] tpe-text-gray-500 tpe-font-normal tpe-normal-case",children:"Tap to apply"})]}),(0,Zt.jsx)("div",{className:"tpe-grid tpe-grid-cols-4 tpe-gap-2",children:H.map(function(e){var t,n;return(0,Zt.jsxs)("button",{onClick:function(){return q(e.id)},className:"tpe-aspect-square tpe-rounded-lg tpe-overflow-hidden tpe-border-2 tpe-relative tpe-group tpe-transition-all ".concat($&&(null===(t=Q.assignedImages[$])||void 0===t?void 0:t.imageId)===e.id?"tpe-border-gray-900 tpe-ring-2 tpe-ring-gray-200":"tpe-border-gray-100 hover:tpe-border-gray-400"),children:[(0,Zt.jsx)("img",{src:e.thumbUrl||e.url,className:"tpe-w-full tpe-h-full tpe-object-cover",alt:"upload"}),$&&(null===(n=Q.assignedImages[$])||void 0===n?void 0:n.imageId)===e.id&&(0,Zt.jsx)("div",{className:"tpe-absolute tpe-inset-0 tpe-bg-gray-900/10 tpe-flex tpe-items-center tpe-justify-center",children:(0,Zt.jsx)("div",{className:"tpe-bg-gray-900 tpe-text-white tpe-rounded-full tpe-p-0.5",children:(0,Zt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Zt.jsx)("polyline",{points:"20 6 9 17 4 12"})})})})]},e.id)})})]}),"preset"!==R&&(0,Zt.jsxs)("div",{className:"tpe-space-y-4",children:[(0,Zt.jsx)("h3",{className:"tpe-font-bold tpe-text-gray-900 tpe-uppercase tpe-text-xs tpe-tracking-widest",children:"Upload New Photos"}),(0,Zt.jsx)(Ji,{uploadedImages:[],onImagesUploaded:K,onDeleteImage:function(){}})]})]})})}),(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("div",{className:hr("SIZE"),children:(0,Zt.jsxs)(Mu,{id:"section-size",icon:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("path",{d:"M3 3h18v18H3z"}),(0,Zt.jsx)("path",{d:"M3 9h18"}),(0,Zt.jsx)("path",{d:"M9 21V9"})]}),title:"Size",summary:gn?"".concat(L===v.IMPERIAL?gn.imperial:gn.metric," · ").concat(gn.category):void 0,children:[(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-gap-2",children:[(0,Zt.jsx)("div",{className:"tpe-flex tpe-gap-2 tpe-overflow-x-auto tpe-pb-1 tpe-scrollbar-hide tpe-flex-1",children:Array.from(new Set(P.map(function(e){return e.category}))).map(function(e){return(0,Zt.jsx)("button",{onClick:function(){return nt(e)},className:"tpe-px-3 tpe-py-1.5 tpe-rounded-full tpe-text-xs tpe-font-bold tpe-whitespace-nowrap tpe-transition-colors ".concat(tt===e?"tpe-bg-gray-900 tpe-text-white":"tpe-bg-gray-100 tpe-text-gray-600 hover:tpe-bg-gray-200"),children:e},e)})}),(0,Zt.jsxs)("div",{className:"tpe-flex tpe-gap-1 tpe-text-xs tpe-bg-gray-100 tpe-p-1 tpe-rounded-lg tpe-shrink-0",children:[(0,Zt.jsx)("button",{onClick:function(){return X(v.IMPERIAL)},className:"tpe-px-2 tpe-py-1 tpe-rounded-md tpe-transition-all ".concat(L===v.IMPERIAL?"tpe-bg-white tpe-shadow tpe-text-gray-900 tpe-font-bold":"tpe-text-gray-500"),children:"In"}),(0,Zt.jsx)("button",{onClick:function(){return X(v.METRIC)},className:"tpe-px-2 tpe-py-1 tpe-rounded-md tpe-transition-all ".concat(L===v.METRIC?"tpe-bg-white tpe-shadow tpe-text-gray-900 tpe-font-bold":"tpe-text-gray-500"),children:"cm"})]})]}),vn&&(0,Zt.jsx)(bl,{verdict:vn}),(0,Zt.jsx)("div",{className:"tpe-grid tpe-grid-cols-2 tpe-gap-1.5",children:P.filter(function(e){return e.category===tt}).map(function(e){var t=Q.sizeId===e.id;return(0,Zt.jsxs)("button",{onClick:function(){return ne(e.id)},className:"tpe-px-2.5 tpe-py-1.5 tpe-rounded-lg tpe-border tpe-text-left tpe-transition-all tpe-relative tpe-overflow-hidden tpe-bg-white ".concat(t?"tpe-border-brand-ink tpe-ring-1 tpe-ring-brand-ink/15 tpe-shadow-sm":"tpe-border-brand-line hover:tpe-border-brand-muted"),children:[(0,Zt.jsxs)("div",{className:"tpe-font-bold tpe-text-gray-900 tpe-text-sm tpe-leading-tight tpe-flex tpe-items-center tpe-gap-1.5",children:[L===v.IMPERIAL?e.imperial:e.metric,yn&&(0,Zt.jsx)(Yl,{verdict:yl(xn,e)})]}),function(){var t=se?se[e.id]:0;if(!t)return(0,Zt.jsx)("div",{className:"tpe-text-xs tpe-text-gray-500 tpe-leading-tight tpe-mt-0.5",children:"From ".concat(le).concat((10*e.priceMultiplier).toFixed(2))});var n=ue>0?t*(1-ue):0;return(0,Zt.jsx)("div",{className:"tpe-text-xs tpe-text-gray-500 tpe-leading-tight tpe-mt-0.5",children:n>0?(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)("s",{className:"tpe-mr-1 tpe-opacity-50",children:"".concat(le).concat(t.toFixed(2))}),(0,Zt.jsx)("span",{className:"tpe-text-rose-700 tpe-font-semibold",children:"".concat(le).concat(n.toFixed(2))})]}):"".concat(le).concat(t.toFixed(2))})}(),t&&(0,Zt.jsx)(bu,{})]},e.id)})})]})}),(0,Zt.jsx)("div",{className:hr("FRAME"),children:(0,Zt.jsxs)(Mu,{id:"section-frame",icon:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),(0,Zt.jsx)("rect",{x:"7",y:"7",width:"10",height:"10"})]}),title:"Frame",summary:bn?"".concat(bn.name).concat(bn.priceAddon>0?" · +".concat(le).concat(bn.priceAddon):"").concat(Q.mount.enabled&&"none"!==bn.id?" · Mount on":""):void 0,children:[(0,Zt.jsx)("div",{className:"tpe-grid tpe-grid-cols-1 tpe-gap-1.5",children:Z.map(function(e){var t=Q.frameId===e.id;return(0,Zt.jsxs)("div",{onClick:function(){return J("frameId",e.id)},className:"tpe-group tpe-flex tpe-items-center tpe-gap-2.5 tpe-px-2.5 tpe-py-1.5 tpe-rounded-lg tpe-border tpe-cursor-pointer tpe-transition-all tpe-bg-white ".concat(t?"tpe-border-gray-900 tpe-ring-1 tpe-ring-gray-900/15 tpe-shadow-sm":"tpe-border-gray-200 hover:tpe-border-gray-300"),children:[(0,Zt.jsx)("div",{className:"!tpe-block tpe-w-9 tpe-h-9 tpe-rounded-md tpe-shadow-sm tpe-border tpe-border-gray-100 tpe-flex-shrink-0 tpe-relative tpe-overflow-hidden ".concat(e.cssClass),children:e.style&&(0,Zt.jsx)("div",{className:"tpe-w-full tpe-h-full !tpe-block",style:e.style})}),(0,Zt.jsxs)("div",{className:"tpe-flex-1 tpe-min-w-0 tpe-flex tpe-items-center tpe-justify-between tpe-gap-2",children:[(0,Zt.jsx)("span",{className:"tpe-font-bold tpe-text-gray-900 tpe-text-sm tpe-truncate",children:e.name}),(0,Zt.jsx)("span",{className:"tpe-text-xs tpe-text-gray-500 tpe-shrink-0",children:e.priceAddon>0?(0,Zt.jsxs)(Zt.Fragment,{children:[e.priceAddonWas>e.priceAddon&&(0,Zt.jsx)("s",{className:"tpe-mr-1 tpe-opacity-50",children:"+".concat(le).concat(e.priceAddonWas)}),(0,Zt.jsx)("span",{className:e.priceAddonWas>e.priceAddon?"tpe-text-rose-700 tpe-font-semibold":"",children:"+".concat(le).concat(e.priceAddon)})]}):"Included"})]}),(0,Zt.jsx)("button",{type:"button",onClick:function(t){t.stopPropagation(),dt(e.id)},"aria-label":"".concat(e.name," details"),title:"Details",className:"tpe-inline-flex tpe-items-center tpe-justify-center tpe-w-5 tpe-h-5 tpe-rounded-full tpe-border tpe-border-gray-300 tpe-text-gray-500 hover:tpe-text-gray-900 hover:tpe-border-gray-500 tpe-text-[10px] tpe-font-bold tpe-shrink-0",children:"i"}),t&&(0,Zt.jsx)(bu,{inline:!0})]},e.id)})}),"none"!==bn.id&&Le.length>0&&(Bn=!(null===(Fn=window.SHOPIFY_CONFIG)||void 0===Fn||null===(Fn=Fn.features)||void 0===Fn||!Fn.requireMount),(0,Zt.jsxs)("div",{className:"tpe-pt-4 tpe-border-t tpe-border-gray-100 tpe-space-y-4",children:[(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-justify-between",children:[(0,Zt.jsx)("h4",{className:"tpe-font-bold tpe-text-gray-900 tpe-text-sm",children:Bn?"Mount / Mat":"Add Mount / Mat"}),!Bn&&(0,Zt.jsxs)("label",{className:"tpe-relative tpe-inline-flex tpe-items-center tpe-cursor-pointer",children:[(0,Zt.jsx)("input",{type:"checkbox",checked:Q.mount.enabled,onChange:function(e){return function(e){var t;if(e||null===(t=window.SHOPIFY_CONFIG)||void 0===t||null===(t=t.features)||void 0===t||!t.requireMount)if(e&&Le.length>0){var n=Le[0];J("mount",pu(pu({},Q.mount),{},{enabled:!0,widthCm:n.widthCm,top:n.borders.top,bottom:n.borders.bottom,left:n.borders.left,right:n.borders.right}))}else sr("enabled",e)}(e.target.checked)},className:"tpe-sr-only tpe-peer"}),(0,Zt.jsx)("div",{className:yu})]})]}),Q.mount.enabled&&(0,Zt.jsxs)("div",{className:"tpe-space-y-4 tpe-animate-fade-in",children:[(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:"tpe-text-xs tpe-font-bold tpe-text-gray-500 tpe-uppercase tpe-tracking-wide tpe-mb-2 tpe-block",children:"Mount Color"}),(0,Zt.jsx)("div",{className:"tpe-flex tpe-gap-2",children:Te.map(function(e){return(0,Zt.jsx)("button",{onClick:function(){sr("colorId",e.id),e.allowedCoreIds&&!e.allowedCoreIds.includes(Q.mount.coreId)&&sr("coreId",e.allowedCoreIds[0])},className:"".concat("tpe-w-9 tpe-h-9 tpe-rounded-full tpe-border-2 tpe-transition-all"," tpe-relative ").concat(Q.mount.colorId===e.id?"tpe-border-brand-lime tpe-scale-110 tpe-shadow-md tpe-ring-1 tpe-ring-gray-900/20":"tpe-border-gray-200 hover:tpe-border-gray-300"),style:{backgroundColor:e.color},title:e.name,children:"#FFFFFF"===e.
2color&&(0,Zt.jsx)("div",{className:"tpe-absolute tpe-inset-0 tpe-rounded-full tpe-border tpe-border-gray-100"})},e.id)})})]}),Le.length>0&&(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:"tpe-text-xs tpe-font-bold tpe-text-gray-500 tpe-uppercase tpe-tracking-wide tpe-mb-2 tpe-block",children:"Mount Size"}),(0,Zt.jsx)("div",{className:"tpe-grid tpe-grid-cols-1 tpe-gap-2",children:Le.map(function(e){var t=Math.abs(e.widthCm-Q.mount.widthCm)<.1&&Math.abs(e.borders.top-Q.mount.top)<.1;return(0,Zt.jsxs)("button",{onClick:function(){return function(e){J("mount",pu(pu({},Q.mount),{},{widthCm:e.widthCm,top:e.borders.top,bottom:e.borders.bottom,left:e.borders.left,right:e.borders.right}))}(e)},className:"tpe-relative tpe-p-3 tpe-rounded-lg tpe-border-2 tpe-text-left tpe-flex tpe-justify-between tpe-items-center tpe-transition-all tpe-bg-white ".concat(t?"tpe-border-brand-lime tpe-ring-2 tpe-ring-brand-lime/40 tpe-text-gray-900":"tpe-border-gray-200 hover:tpe-border-gray-300 tpe-text-gray-700"),children:[(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("div",{className:"tpe-text-xs tpe-font-bold",children:e.borderLabel}),(0,Zt.jsx)("div",{className:"tpe-text-[10px] tpe-opacity-70",children:e.frameLabel})]}),(0,Zt.jsxs)("div",{className:"tpe-text-xs tpe-font-bold tpe-flex tpe-items-center tpe-gap-2",children:["+",le,e.upsellCost.toFixed(2),t&&(0,Zt.jsx)(bu,{inline:!0})]})]},e.suffix)})})]})]})]})),Ke&&"box_float"===bn.type&&(0,Zt.jsxs)("div",{className:"tpe-pt-4 tpe-border-t tpe-border-gray-100 tpe-space-y-3",children:[(0,Zt.jsx)("h4",{className:"tpe-font-bold tpe-text-gray-900 tpe-text-sm",children:"Print Edge"}),(0,Zt.jsx)("div",{className:"tpe-grid tpe-grid-cols-2 tpe-gap-2",children:[{id:"flat",label:"Flat Edge",desc:"Clean trimmed border"},{id:"deckled",label:"Deckled Edge",desc:"Hand-torn paper edge"}].map(function(e){var t=(Q.edgeType||"flat")===e.id;return(0,Zt.jsxs)("button",{onClick:function(){return J("edgeType",e.id)},className:"tpe-relative tpe-p-3 tpe-rounded-lg tpe-border-2 tpe-text-left tpe-transition-all tpe-bg-white ".concat(t?"tpe-border-gray-900 tpe-ring-2 tpe-ring-gray-900/15 tpe-text-gray-900":"tpe-border-gray-200 hover:tpe-border-gray-300 tpe-text-gray-700"),children:[t&&(0,Zt.jsx)(bu,{}),(0,Zt.jsx)("div",{className:"tpe-text-xs tpe-font-bold",children:e.label}),(0,Zt.jsx)("div",{className:"tpe-text-[10px] tpe-opacity-70",children:e.desc})]},e.id)})})]})]})})]}),(0,Zt.jsx)("div",{id:"section-map",children:(0,Zt.jsxs)("div",{className:hr("MAP"),children:["starmap"===R&&Sn&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsxs)(Mu,{id:"section-starmap-moment",icon:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("path",{d:"M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"}),(0,Zt.jsx)("circle",{cx:"12",cy:"10",r:"3"})]}),title:"The Moment",summary:"".concat(Sn.locationLabel||"No location").concat(Sn.date?" · ".concat(new Date(Sn.date).toLocaleDateString()):""),children:[(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:"tpe-text-xs tpe-font-bold tpe-text-gray-700 tpe-uppercase tpe-tracking-wide tpe-mb-2 tpe-block",children:"Location"}),(0,Zt.jsxs)("button",{type:"button",onClick:function(){return nn(!0)},className:"".concat(xu," tpe-cursor-pointer tpe-flex tpe-items-center tpe-justify-between hover:tpe-border-gray-400 tpe-transition-colors"),children:[(0,Zt.jsx)("span",{className:"tpe-truncate tpe-text-left",children:Sn.locationLabel||(0,Zt.jsx)("span",{className:"tpe-text-gray-400",children:"Search location…"})}),(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"tpe-text-gray-400 tpe-shrink-0 tpe-ml-2",children:[(0,Zt.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,Zt.jsx)("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]})]})]}),(0,Zt.jsxs)("div",{className:"tpe-space-y-3",children:[(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-justify-between",children:[(0,Zt.jsxs)("label",{className:"tpe-text-xs tpe-font-bold tpe-text-gray-700 tpe-uppercase tpe-tracking-wide",children:["Date ",Sn.showTime?"& Time":""]}),(0,Zt.jsxs)("label",{className:"tpe-relative tpe-inline-flex tpe-items-center tpe-cursor-pointer tpe-gap-2",children:[(0,Zt.jsx)("span",{className:"tpe-text-[10px] tpe-font-bold tpe-text-gray-400 tpe-uppercase tpe-tracking-widest",children:"Time"}),(0,Zt.jsx)("input",{type:"checkbox",checked:Sn.showTime||!1,onChange:function(e){return Rn("showTime",e.target.checked)},className:"tpe-sr-only tpe-peer"}),(0,Zt.jsx)("div",{className:yu})]})]}),(0,Zt.jsx)("input",{type:Sn.showTime?"datetime-local":"date",value:Vt,onChange:function(e){return zt(e.target.value)},className:xu})]})]}),(0,Zt.jsxs)(Mu,{id:"section-starmap-look",icon:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,Zt.jsx)("path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"}),(0,Zt.jsx)("path",{d:"M2 12h20"})]}),title:"Look",summary:(null===(i=Ue.find(function(e){return e.id===Sn.themeId}))||void 0===i?void 0:i.name)||"Theme",children:[(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:"tpe-text-xs tpe-font-bold tpe-text-gray-700 tpe-uppercase tpe-tracking-wide tpe-mb-2 tpe-block",children:"Themes"}),(0,Zt.jsx)("div",{className:"tpe-grid tpe-grid-cols-4 tpe-gap-2",children:Ue.map(function(e){var t=Sn.themeId===e.id,n=e.starMapBackgroun
2d||e.background;return(0,Zt.jsxs)("button",{onClick:function(){return t=e.id,n=ke(t),J("starMaps",pu(pu({},Q.starMaps),{},du({},wn,pu(pu({},Q.starMaps[wn]),{},{themeId:t,borderColor:n})))),void J("textColor",n);var t,n},className:"tpe-h-14 tpe-rounded-lg tpe-border-2 tpe-transition-all tpe-shadow-sm tpe-relative tpe-flex tpe-flex-col tpe-items-center tpe-justify-center tpe-gap-1 tpe-overflow-hidden ".concat(t?"tpe-border-gray-900 tpe-ring-2 tpe-ring-gray-900/15":"tpe-border-gray-200 hover:tpe-border-gray-300"),style:{backgroundColor:e.background},title:e.name,children:[(0,Zt.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",style:{display:"block"},children:[(0,Zt.jsx)("circle",{cx:"10",cy:"10",r:"9",fill:n}),[[6,7],[13,6],[9,11],[14,13],[5,13],[11,15],[8,5]].map(function(t,n){var r=mu(t,2),o=r[0],a=r[1];return(0,Zt.jsx)("circle",{cx:o,cy:a,r:n%3==0?1.1:.7,fill:e.stars},n)})]}),(0,Zt.jsx)("span",{className:"tpe-text-[9px] tpe-font-bold tpe-leading-none",style:{color:n},children:e.name}),t&&(0,Zt.jsx)(bu,{})]},e.id)})})]}),(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:"tpe-text-xs tpe-font-bold tpe-text-gray-700 tpe-uppercase tpe-tracking-wide tpe-mb-2 tpe-block",children:"Border width"}),(0,Zt.jsx)("div",{className:"tpe-p-3 tpe-bg-white tpe-rounded-xl tpe-border tpe-border-gray-200 tpe-shadow-sm",children:(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-gap-3",children:[(0,Zt.jsx)("input",{type:"range",min:0,max:10,step:.5,value:null!==(l=Sn.borderWidth)&&void 0!==l?l:2,onChange:function(e){return Rn("borderWidth",parseFloat(e.target.value))},className:"tpe-flex-1 tpe-h-2 tpe-bg-gray-200 tpe-rounded-lg tpe-appearance-none tpe-cursor-pointer tpe-accent-gray-900"}),(0,Zt.jsx)("span",{className:"tpe-text-xs tpe-text-gray-600 tpe-w-6 tpe-text-right",children:null!==(s=Sn.borderWidth)&&void 0!==s?s:2})]})})]})]}),(0,Zt.jsxs)(Mu,{id:"section-starmap-advanced",icon:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("circle",{cx:"12",cy:"12",r:"3"}),(0,Zt.jsx)("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09a1.65 1.65 0 0 0-1-1.51 1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09a1.65 1.65 0 0 0 1.51-1 1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33h0a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51h0a1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82v0a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"})]}),title:"Advanced",summary:"Constellations · Milky Way · Planets · Coordinates",collapsible:!0,defaultOpen:!1,children:[(0,Zt.jsx)("div",{className:"tpe-grid tpe-grid-cols-2 tpe-gap-2",children:[{key:"showConstellations",label:"Constellations",featureId:"starmap-constellations"},{key:"showMilkyWay",label:"Milky Way",featureId:"starmap-milkyway"},{key:"showPlanets",label:"Planets",featureId:"starmap-planets"},{key:"showStarCount",label:"Star Count"},{key:"showCoordinates",label:"Coordinates"},{key:"showDate",label:"Date"},{key:"naturalColors",label:"Natural Colours"}].map(function(e){var t=!!Sn[e.key];return(0,Zt.jsx)("div",{className:"tpe-relative",children:(0,Zt.jsxs)("button",{onClick:function(){return Rn(e.key,!t)},className:"tpe-w-full tpe-p-3 tpe-rounded-lg tpe-border-2 tpe-text-xs tpe-font-bold tpe-transition-all tpe-flex tpe-justify-between tpe-items-center tpe-bg-white ".concat(t?"tpe-border-gray-900 tpe-text-gray-900 tpe-ring-2 tpe-ring-gray-900/15":"tpe-border-gray-200 tpe-text-gray-500 hover:tpe-border-gray-300"),children:[(0,Zt.jsxs)("span",{className:"tpe-flex tpe-items-center tpe-gap-1.5",children:[e.label,e.featureId&&(0,Zt.jsx)("span",{role:"button",tabIndex:0,onClick:function(t){t.stopPropagation(),ht(e.featureId)},onKeyDown:function(t){"Enter"!==t.key&&" "!==t.key||(t.stopPropagation(),ht(e.featureId))},className:"tpe-inline-flex tpe-items-center tpe-justify-center tpe-w-4 tpe-h-4 tpe-rounded-full tpe-border tpe-border-gray-300 tpe-text-gray-500 hover:tpe-text-gray-900 hover:tpe-border-gray-500 tpe-text-[10px] tpe-font-bold",title:"What is this?",children:"i"})]}),(0,Zt.jsx)("div",{className:"tpe-w-3 tpe-h-3 tpe-rounded-full ".concat(t?"tpe-bg-brand-lime tpe-ring-1 tpe-ring-gray-900/30":"tpe-bg-gray-300")})]})},e.key)})}),Sn.showDate&&(0,Zt.jsxs)("div",{className:"tpe-animate-fade-in",children:[(0,Zt.jsx)("label",{className:"tpe-text-xs tpe-font-bold tpe-text-gray-700 tpe-uppercase tpe-tracking-wide tpe-mb-2 tpe-block",children:"Date Format"}),(0,Zt.jsxs)("div",{className:"tpe-grid tpe-grid-cols-2 tpe-gap-2",children:[(0,Zt.jsxs)("button",{onClick:function(){return Rn("dateFormat","en-US")},className:"tpe-relative tpe-p-3 tpe-rounded-lg tpe-border-2 tpe-text-xs tpe-font-bold tpe-transition-all tpe-text-center tpe-bg-white ".concat("en-US"===(Sn.dateFormat||"en-US")?"tpe-border-gray-900 tpe-text-gray-900 tpe-ring-2 tpe-ring-gray-900/15":"tpe-border-gray-200 tpe-text-gray-500 hover:tpe-border-gray-300"),children:["en-US"===(Sn.dateFormat||"en-US")&&(0,Zt.jsx)(bu,{}),"Month Day, Year",(0,Zt.jsx)("span",{className:"tpe-block tpe-text-[10px] tpe-font-normal tpe-opacity-70 tpe-mt-0.5",children:"December 25, 2023"})]}),(0,Zt.jsxs)("button",{onClick:function(){return Rn("dateFormat","en-GB")},className:"tpe-relative tpe-p-3 tpe-rounded-lg tpe-border-2 tpe-text-xs tpe-font-bold tpe-transition-all tpe-text-center tpe-bg-white ".concat("en-GB"===Sn.dateFormat?"tpe-border-gray-900 tpe-text-gray-900 tpe-ring-2 tpe-ring-gray-900/15":"tpe-border-gray-200 tpe-text-gray-500 hover:tpe-border-gray-300"),children:["en-GB"===Sn.dateFormat&&(0,Zt.jsx)(bu,{}),"Day Month Year",(0,Zt.jsx)("span",{className:"tpe-block tpe-text-[10px] tpe-font-normal tpe-opacity-70 tpe-mt-0.5",children:"25 December 2023"})]})]})]}),(!!Sn.showCoordinates||!!Sn.showDate)&&cr(!!Sn.showCoordinates,!!Sn.showDate)]})]}),"oldmap"===R&&jn&&(0,Zt.jsxs)(Mu,{icon:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("polygon",{points:"1 6 1 22 8 18 16 22 23 18 23 2 16 6 8 2 1 6"}),(0,Zt.jsx)("line",{x1:"8",y1:"2",x2:"8",y2:"18"}),(0,Zt.jsx)("line",{x1:"16",y1:"6",x2:"16",y2:"22"})]}),title:"Historic Map",summary:"".concat(jn.locationLabel||"No location"," · ").concat((Gn=De.find(function(e){return e.id===jn.styleId}),Gn?Ae(Gn):"")),children:[(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:"tpe-text-xs tpe-font-bold tpe-text-gray-700 tpe-uppercase tpe-tracking-wide tpe-mb-2 tpe-block",children:"Location"}),(0,Zt.jsxs)("button",{type:"button",onClick:function(){return nn(!0)},className:"".concat(xu," tpe-cursor-pointer tpe-flex tpe-items-center tpe-justify-between hover:tpe-border-gray-400 tpe-transition-colors"),children:[(0,Zt.jsx)("span",{className:"tpe-truncate tpe-text-left",children:jn.locationLabel||(0,Zt.jsx)("span",{className:"tpe-text-gray-400",children:"Search location…"})}),(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"tpe-text-gray-400 tpe-shrink-0 tpe-ml-2",children:[(0,Zt.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,Zt.jsx)("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]})]})]}),(0,Zt.jsxs)("div",{children:[(0,Zt.jsxs)("label",{className:"tpe-text-xs tpe-font-bold tpe-text-gray-700 tpe-uppercase tpe-tracking-wide tpe-mb-2 tpe-flex tpe-items-center tpe-gap-2",children:[(0,Zt.jsx)("span",{children:"Map Style"}),(0,Zt.jsx)("button",{type:"button",onClick:function(){return ht("oldmap-styles")},className:"tpe-text-[10px] tpe-font-normal tpe-text-gray-500 hover:tpe-text-gray-900 tpe-underline tpe-decoration-gray-300 tpe-underline-offset-2 tpe-normal-case tpe-tracking-normal",children:"Details"})]}),(0,Zt.jsx)("select",{value:jn.styleId,onChange:function(e){return Qn("styleId",e.target.value)},className:xu,children:Ce(jn.lat,jn.lng).map(function(e){return(0,Zt.jsx)("option",{value:e.id,children:Ae(e)}
2,e.id)})})]}),(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-justify-between tpe-p-3 tpe-rounded-xl tpe-border tpe-border-gray-200 tpe-bg-white tpe-shadow-sm",children:[(0,Zt.jsx)("span",{className:"tpe-text-sm tpe-font-medium tpe-text-gray-700",children:"Show Coordinates"}),(0,Zt.jsxs)("label",{className:"tpe-relative tpe-inline-flex tpe-items-center tpe-cursor-pointer",children:[(0,Zt.jsx)("input",{type:"checkbox",checked:jn.showCoordinates,onChange:function(e){return Qn("showCoordinates",e.target.checked)},className:"tpe-sr-only tpe-peer"}),(0,Zt.jsx)("div",{className:yu})]})]}),!!jn.showCoordinates&&cr(!0,!1),"antique"===(null==Mn?void 0:Mn.mapFrameStyle)&&(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:"tpe-text-xs tpe-font-bold tpe-text-gray-700 tpe-uppercase tpe-tracking-wide tpe-mb-2 tpe-block",children:"Custom text"}),(0,Zt.jsx)("input",{type:"text",value:null!==(c=jn.customText)&&void 0!==c?c:"",onChange:function(e){return Qn("customText",e.target.value)},placeholder:"Optional",maxLength:60,className:xu})]})]}),"osmap"===R&&Tn&&(Zn=Ee.find(function(e){return e.id===Tn.styleId})||Ee[0],(0,Zt.jsxs)(Mu,{icon:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("polygon",{points:"1 6 1 22 8 18 16 22 23 18 23 2 16 6 8 2 1 6"}),(0,Zt.jsx)("line",{x1:"8",y1:"2",x2:"8",y2:"18"}),(0,Zt.jsx)("line",{x1:"16",y1:"6",x2:"16",y2:"22"})]}),title:"OS Map",summary:"".concat(Tn.locationLabel||"No location").concat(Tn.scale?" · ".concat(Ge(Tn.scale)):""),children:[(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:"tpe-text-xs tpe-font-bold tpe-text-gray-700 tpe-uppercase tpe-tracking-wide tpe-mb-2 tpe-block",children:"Location"}),(0,Zt.jsxs)("button",{type:"button",onClick:function(){return nn(!0)},className:"".concat(xu," tpe-cursor-pointer tpe-flex tpe-items-center tpe-justify-between hover:tpe-border-gray-400 tpe-transition-colors"),children:[(0,Zt.jsx)("span",{className:"tpe-truncate tpe-text-left",children:Tn.locationLabel||(0,Zt.jsx)("span",{className:"tpe-text-gray-400",children:"Search location…"})}),(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"tpe-text-gray-400 tpe-shrink-0 tpe-ml-2",children:[(0,Zt.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,Zt.jsx)("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]})]}),(0,Zt.jsx)("p",{className:"tpe-text-[11px] tpe-text-gray-500 tpe-mt-1.5",children:"Drag the map to pan. Use the scale to set how much ground the print covers."})]}),Tn.scale?(0,Zt.jsxs)("div",{children:[(0,Zt.jsxs)("label",{className:"tpe-text-xs tpe-font-bold tpe-text-gray-700 tpe-uppercase tpe-tracking-wide tpe-mb-2 tpe-flex tpe-items-center tpe-justify-between",children:[(0,Zt.jsx)("span",{children:"Scale"}),(0,Zt.jsx)("span",{className:"tpe-font-normal tpe-text-gray-500 tpe-normal-case",children:Fe(Tn.scale)})]}),(0,Zt.jsx)("select",{value:(Pn=Tn.scale,Pe.reduce(function(e,t){return Math.abs(t.de
2nominator-Pn)<Math.abs(e-Pn)?t.denominator:e},Pe[0].denominator)),onChange:function(e){return Hn("scale",Number(e.target.value))},className:xu,children:Pe.map(function(e){return(0,Zt.jsxs)("option",{value:e.denominator,children:[e.label," — ",e.series]},e.denominator)})}),(0,Zt.jsxs)("p",{className:"tpe-text-[11px] tpe-text-gray-500 tpe-mt-1",children:["Printed at ",Ge(Tn.scale),". The area shown is the area printed."]})]}):(0,Zt.jsxs)("div",{children:[(0,Zt.jsxs)("label",{className:"tpe-text-xs tpe-font-bold tpe-text-gray-700 tpe-uppercase tpe-tracking-wide tpe-mb-2 tpe-flex tpe-items-center tpe-justify-between",children:[(0,Zt.jsx)("span",{children:"Zoom"}),(0,Zt.jsx)("span",{className:"tpe-font-normal tpe-text-gray-500 tpe-normal-case",children:Tn.zoom})]}),(0,Zt.jsx)("input",{type:"range",min:6,max:Zn.maxZoom,step:1,value:Math.min(Math.max(Tn.zoom,6),Zn.maxZoom),onChange:function(e){return Hn("zoom",Number(e.target.value))},className:"tpe-w-full"})]}),(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:"tpe-text-xs tpe-font-bold tpe-text-gray-700 tpe-uppercase tpe-tracking-wide tpe-mb-2 tpe-block",children:"Location Label"}),(0,Zt.jsxs)("select",{value:null!==(En=Tn.coordinateMode)&&void 0!==En?En:"dms",onChange:function(e){return Hn("coordinateMode",e.target.value)},className:xu,children:[(0,Zt.jsx)("option",{value:"none",children:"None"}),(0,Zt.jsx)("option",{value:"dms",children:"Coordinates (lat/long)"}),(0,Zt.jsx)("option",{value:"gridref",children:"OS Grid Reference"})]})]}),"none"!==(null!==(Vn=Tn.coordinateMode)&&void 0!==Vn?Vn:"dms")&&cr(!0,!1),"os"===(null==Mn?void 0:Mn.mapFrameStyle)&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsxs)("label",{className:"tpe-flex tpe-items-center tpe-justify-between tpe-cursor-pointer",children:[(0,Zt.jsx)("span",{className:"tpe-text-xs tpe-font-bold tpe-text-gray-700 tpe-uppercase tpe-tracking-wide",children:"Ordnance Survey logo"}),(0,Zt.jsx)("input",{type:"checkbox",checked:null===(zn=Tn.showOsLogo)||void 0===zn||zn,onChange:function(e){return Hn("showOsLogo",e.target.checked)},className:"tpe-h-4 tpe-w-4"})]}),(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:"tpe-text-xs tpe-font-bold tpe-text-gray-700 tpe-uppercase tpe-tracking-wide tpe-mb-2 tpe-block",children:"Custom text (bottom-left)"}),(0,Zt.jsx)("input",{type:"text",value:null!==(Xn=Tn.customText)&&void 0!==Xn?Xn:"",onChange:function(e){return Hn("customText",e.target.value)},placeholder:"Optional",maxLength:60,className:xu})]})]})]})),"vinyl"===R&&(null===(u=Q.vinyls)||void 0===u?void 0:u[1])&&(0,Zt.jsx)(Mu,{id:"section-vinyl",icon:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,Zt.jsx)("circle",{cx:"12",cy:"12",r:"3"})]}),title:"Vinyl Record",summary:null!==(p=Q.vinyls[1].label)&&void 0!==p&&p.songTitle?"".concat(Q.vinyls[1].label.songTitle," — ").concat(Q.vinyls[1].label.artist||""):"Choose a song",children:(0,Zt.jsx)(Xc,{config:Q.vinyls[1],onChange:function(e){return J("vinyls",pu(pu({},Q.vinyls),{},{1:pu(pu({},Q.vinyls[1]),e)}))},onLabelChange:function(e){return J("vinyls",pu(pu({},Q.vinyls),{},{1:pu(pu({},Q.vinyls[1]),{},{label:pu(pu({},Q.vinyls[1].label),e)})}))},onImagesUploaded:K,onDeleteImage:ge,selectedLayoutId:B})}),"album"===R&&(null===(d=Q.albums)||void 0===d?void 0:d[1])&&(0,Zt.jsx)(Mu,{id:"section-album",icon:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),(0,Zt.jsx)("circle",{cx:"12",cy:"12",r:"3"}),(0,Zt.jsx)("line",{x1:"3",y1:"20",x2:"21",y2:"20"})]}),title:"Album Lyrics",summary:null!==(f=Q.albums[1].label)&&void 0!==f&&f.songTitle?"".concat(Q.albums[1].label.songTitle," — ").concat(Q.albums[1].label.artist||""):"Choose a song",children:(0,Zt.jsx)(tu,{config:Q.albums[1],onChange:function(e){return J("albums",pu(pu({},Q.albums),{},{1:pu(pu({},Q.albums[1]),e)}))},onLabelChange:function(e){return J("albums",pu(pu({},Q.albums),{},{1:pu(pu({},Q.albums[1]),{},{label:pu(pu({},Q.albums[1].label),e)})}
2))},onImagesUploaded:K,onDeleteImage:ge})}),"soundwave"===R&&(null===(m=Q.soundwaves)||void 0===m?void 0:m[1])&&(0,Zt.jsxs)(Mu,{id:"section-soundwave",icon:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("path",{d:"M2 10v3"}),(0,Zt.jsx)("path",{d:"M6 6v11"}),(0,Zt.jsx)("path",{d:"M10 3v18"}),(0,Zt.jsx)("path",{d:"M14 8v7"}),(0,Zt.jsx)("path",{d:"M18 5v13"}),(0,Zt.jsx)("path",{d:"M22 10v3"})]}),title:"Sound Wave",summary:null!==(h=Q.soundwaves[1].metadata)&&void 0!==h&&h.title?"".concat(Q.soundwaves[1].metadata.title," — ").concat(Q.soundwaves[1].metadata.artist||""):"recording"===Q.soundwaves[1].source?"Voice recording":"upload"===Q.soundwaves[1].source?"Uploaded audio":"No audio",children:[(0,Zt.jsx)("button",{type:"button",onClick:function(){return null==We?void 0:We()},className:"".concat(xu," tpe-cursor-pointer tpe-text-left hover:tpe-border-gray-400"),children:Q.soundwaves[1].barData.length>0?"Change audio":"Choose audio…"}),(null===(g=Q.soundwaves[1].metadata)||void 0===g?void 0:g.title)&&(0,Zt.jsxs)("div",{className:"tpe-mt-3 tpe-flex tpe-items-center tpe-gap-3 tpe-p-2.5 tpe-rounded-xl tpe-border tpe-border-gray-200 tpe-bg-gray-50",children:[(0,Zt.jsxs)("div",{className:"tpe-relative tpe-w-12 tpe-h-12 tpe-shrink-0",children:[null!==(x=Q.soundwaves[1].metadata)&&void 0!==x&&x.albumArtUrl?(0,Zt.jsx)("img",{src:Q.soundwaves[1].metadata.albumArtUrl,alt:"",className:"tpe-w-12 tpe-h-12 tpe-rounded-lg",style:{objectFit:"cover"}}):(0,Zt.jsx)("div",{className:"tpe-w-12 tpe-h-12 tpe-rounded-lg tpe-bg-gray-200"}),(null===(y=Q.soundwaves[1].metadata)||void 0===y?void 0:y.previewUrl)&&(0,Zt.jsx)("button",{type:"button",onClick:function(){var e;return un(null===(e=Q.soundwaves[1].metadata)||void 0===e?void 0:e.previewUrl)},"aria-label":_t?"Pause sample":"Play sample",className:"tpe-absolute tpe-inset-0 tpe-flex tpe-items-center tpe-justify-center tpe-rounded-lg tpe-bg-black/40 hover:tpe-bg-black/55 tpe-text-white tpe-transition-colors",children:_t?(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,Zt.jsx)("rect",{x:"6",y:"5",width:"4",height:"14",rx:"1"}),(0,Zt.jsx)("rect",{x:"14",y:"5",width:"4",height:"14",rx:"1"})]}):(0,Zt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Zt.jsx)("path",{d:"M8 5v14l11-7z"})})})]}),(0,Zt.jsxs)("div",{className:"tpe-flex-1 tpe-min-w-0",children:[(0,Zt.jsx)("div",{className:"tpe-text-sm tpe-font-bold tpe-text-gray-900 tpe-truncate",children:Q.soundwaves[1].metadata.title}),(0,Zt.jsxs)("div",{className:"tpe-text-xs tpe-text-gray-600 tpe-truncate",children:[Q.soundwaves[1].metadata.artist,null!==(b=Q.soundwaves[1].metadata)&&void 0!==b&&b.releaseYear?" · ".concat(Q.soundwaves[1].metadata.releaseYear):""]})]})]}),(null==Mn?void 0:Mn.posterMeta)&&(null===(Y=Q.soundwaves)||void 0===Y?void 0:Y[1])&&(Dn=null!==(Wn=Q.soundwaves[1].metadata)&&void 0!==Wn?Wn:{title:"",artist:""},An=function(e){return J("soundwaves",pu(pu({},Q.soundwaves),{},{1:pu(pu({},Q.soundwaves[1]),{},{metadata:pu(pu({},Dn),e)})}))},Cn=null!=Dn.durationSec?"".concat(Math.floor(Dn.durationSec/60),":").concat(String(Dn.durationSec%60).padStart(2,"0")):"",Ln="tpe-text-[16px] tpe-w-full tpe-box-border tpe-px-3 tpe-py-2 tpe-bg-white tpe-border tpe-border-solid tpe-border-gray-300 tpe-rounded-lg focus:tpe-ring-2 focus:tpe-ring-gray-900 tpe-outline-none tpe-text-gray-900",On="tpe-text-[10px] tpe-font-bold tpe-text-gray-500 tpe-uppercase tpe-tracking-wide tpe-mb-1 tpe-block",(0,Zt.jsxs)("div",{className:"tpe-mt-4 tpe-space-y-4",children:[(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:"tpe-text-xs tpe-font-bold tpe-text-gray-700 tpe-uppercase tpe-tracking-wide tpe-mb-2 tpe-block",children:"Title & Artist"}),gr(!1,!1)]}),(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:"tpe-text-xs tpe-font-bold tpe-text-gray-700 tpe-uppercase tpe-tracking-wide tpe-mb-2 tpe-block",children:"Print details"}),(0,Zt.jsxs)("div",{className:"tpe-flex tpe-flex-col tpe-gap-3",children:[(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:On,children:"Label / Album"}),(0,Zt.jsx)("input",{type:"text",value:null!==(In=null!==(Un=Dn.label)&&void 0!==Un?Un:Dn.album)&&void 0!==In?In:"",placeholder:"Record label or album",onCh
2ange:function(e){return An({label:e.target.value})},className:Ln})]}),(0,Zt.jsxs)("div",{className:"tpe-grid tpe-grid-cols-2 tpe-gap-3",children:[(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:On,children:"Year"}),(0,Zt.jsx)("input",{type:"text",value:null!==(kn=Dn.releaseYear)&&void 0!==kn?kn:"",placeholder:"2001",onChange:function(e){return An({releaseYear:e.target.value})},className:Ln})]}),(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:On,children:"Length"}),(0,Zt.jsx)("input",{type:"text",value:Cn,placeholder:"3:29",onChange:function(e){var t=e.target.value.match(/^(\d{1,2}):([0-5]?\d)$/);t?An({durationSec:60*parseInt(t[1])+parseInt(t[2])}):""===e.target.value.trim()&&An({durationSec:void 0})},className:Ln})]})]})]})]})]})),(0,Zt.jsxs)("div",{className:"tpe-mt-4",children:[(0,Zt.jsx)("label",{className:"tpe-text-xs tpe-font-bold tpe-text-gray-700 tpe-uppercase tpe-tracking-wide tpe-mb-2 tpe-block",children:"Style"}),(0,Zt.jsx)("div",{className:"tpe-grid tpe-grid-cols-3 tpe-gap-2",children:ye.map(function(e){var t=Q.soundwaves[1].waveformStyle===e.id;return(0,Zt.jsxs)("button",{type:"button",onClick:function(){var t=Q.soundwaves[1],n=t.rawBars;J("soundwaves",pu(pu({},Q.soundwaves),{},{1:pu(pu({},t),{},{waveformStyle:e.id,barCount:e.barCount,barData:n?pc(n,e.barCount):t.barData})}))},className:"tpe-relative tpe-flex tpe-flex-col tpe-items-center tpe-gap-1 tpe-p-2 tpe-rounded-lg tpe-border-2 tpe-transition-all tpe-bg-white ".concat(t?"tpe-border-gray-900 tpe-ring-2 tpe-ring-gray-900/15":"tpe-border-gray-200 hover:tpe-border-gray-300"),title:e.description,children:[t&&(0,Zt.jsx)(bu,{}),(0,Zt.jsx)("div",{className:"tpe-w-full tpe-h-9 tpe-rounded tpe-flex tpe-items-center tpe-justify-center",style:{backgroundColor:Q.soundwaves[1].backgroundColor},children:(0,Zt.jsx)(Yu,{style:e.id,color:Q.soundwaves[1].waveColor})}),(0,Zt.jsx)("span",{className:"tpe-text-[10px] tpe-font-bold tpe-text-gray-700 tpe-leading-tight tpe-text-center",children:e.name})]},e.id)})})]}),(0,Zt.jsxs)("div",{className:"tpe-mt-4",children:[(0,Zt.jsxs)("label",{className:"tpe-text-xs tpe-font-bold tpe-text-gray-700 tpe-uppercase tpe-tracking-wide tpe-mb-2 tpe-flex tpe-items-center tpe-justify-between",children:[(0,Zt.jsx)("span",{children:"Amplitude"}),(0,Zt.jsxs)("span",{className:"tpe-text-gray-600 tpe-normal-case tpe-tracking-normal",children:[Math.round(100*(null!==(M=Q.soundwaves[1].amplitude)&&void 0!==M?M:1)),"%"]})]}),(0,Zt.jsxs)("div",{className:"tpe-p-3 tpe-bg-white tpe-rounded-xl tpe-border tpe-border-gray-200 tpe-shadow-sm tpe-flex tpe-items-center tpe-gap-3",children:[(0,Zt.jsx)("input",{type:"range",min:.3,max:2,step:.05,value:null!==(w=Q.soundwaves[1].amplitude)&&void 0!==w?w:1,onChange:function(e){return J("soundwaves",pu(pu({},Q.soundwaves),{},{1:pu(pu({},Q.soundwaves[1]),{},{amplitude:parseFloat(e.target.value)})}))},className:"tpe-flex-1 tpe-h-2 tpe-bg-gray-200 tpe-rounded-lg tpe-appearance-none tpe-cursor-pointer tpe-accent-gray-900"}),(0,Zt.jsx)("button",{type:"button",onClick:function(){return J("soundwaves",pu(pu({},Q.soundwaves),{},{1:pu(pu({},Q.soundwaves[1]),{},{amplitude:1})}))},className:"tpe-text-[10px] tpe-font-bold tpe-text-gray-500 hover:tpe-text-gray-900 tpe-underline tpe-decoration-gray-300 tpe-underline-offset-2 tpe-shrink-0",children:"Reset"})]})]}),Q.soundwaves[1].rawBars&&(0,Zt.jsxs)("div",{className:"tpe-mt-4",children:[(0,Zt.jsxs)("label",{className:"tpe-text-xs tpe-font-bold tpe-text-gray-700 tpe-uppercase tpe-tracking-wide tpe-mb-2 tpe-flex tpe-items-center tpe-justify-between",children:[(0,Zt.jsxs)("span",{children:["Data points ",(0,Zt.jsx)("span",{className:"tpe-text-[9px] tpe-font-normal tpe-text-amber-600 tpe-normal-case",children:"(testing)"})]}),(0,Zt.jsxs)("span",{className:"tpe-text-gray-600 tpe-normal-case tpe-tracking-normal",children:[Q.soundwaves[1].barCount," bars"]})]}),(0,Zt.jsxs)("div",{className:"tpe-p-3 tpe-bg-white tpe-rounded-xl tpe-border tpe-border-gray-200 tpe-shadow-sm tpe-flex tpe-items-center tpe-gap-3",children:[(0,Zt.jsx)("input",{type:"range",min:20,max:600,step:10,value:Q.soundwaves[1].barCount,onChange:function(e){var t=Q.soundwaves[1],n=parseInt(e.target.value);J("soundwaves",pu(pu({},Q.soundwaves),{},{1:pu(pu({},t),{},{barCount:n,barData:t.rawBars?pc(t.rawBars,n):t.barData})}))},className:"tpe-flex-1 tpe-h-2 tpe-bg-gray-200 tpe-rounded-lg tpe-appearance-none tpe-cursor-pointer tpe-accent-gray-900"}),(0,Zt.jsx)("button",{type:"button",onClick:function(){var e,t,n=Q.soundwaves[1],r=null!==(e=null===(t=ye.find(function(e){return e.id===n.waveformStyle}))||void 0===t?void 0:t.barCount)&&void 0!==e?e:140;J("soundwaves",pu(pu({},Q.soundwaves),{},{1:pu(pu({},n),{},{barCount:r,barData:n.rawBars?pc(n.rawBars,r):n.barData})}))},className:"tpe-text-[10px] tpe-font-bold tpe-text-gray-500 hover:tpe-text-gray-900 tpe-underline tpe-decoration-gray-300 tpe-underline-offset-2 tpe-shrink-0",children:"Default"})]})]}),(0,Zt.jsxs)("div",{className:"tpe-mt-4",children:[(0,Zt.jsx)("label",{className:"tpe-text-xs tpe-font-bold tpe-text-gray-700 tpe-uppercase tpe-tracking-wide tpe-mb-2 tpe-block",children:"Themes"}),(0,Zt.jsx)("div",{className:"tpe-grid tpe-grid-cols-4 tpe-gap-2",children:ve.map(function(e){var t=Q.soundwaves[1].backgroundColor===e.background&&Q.soundwaves[1].waveColor===e.waveColor;return(0,Zt.jsxs)("button",{type:"button",onClick:function(){J("soundwaves",pu(pu({},Q.soundwaves),{},{1:pu(pu({},Q.soundwaves[1]),{},{backgroundColor:e.background,waveColor:e.waveColor,scanCode:pu(pu({},Q.soundwaves[1].scanCode),{},{color:e.waveColor})})})),J("textColor",e.textColor)},className:"tpe-h-14 tpe-rounded-lg tpe-border-2 tpe-transition-all tpe-shadow-sm tpe-relative tpe-flex tpe-flex-col tpe-items-center tpe-justify-center tpe-gap-1 tpe-overflow-hidden ".concat(t?"tpe-border-gray-900 tpe-ring-2 tpe-ring-gray-900/15":"tpe-border-gray-200 hover:tpe-border-gray-300"),style:{backgroundColor:e.background},title:e.name,children:[(0,Zt.jsx)("svg",{width:"34",height:"12",viewBox:"0 0 34 12",style:{display:"block"},children:[4,8,5,11,6,9,5,7].map(function(t,n){return(0,Zt.jsx)("rect",{x:4*n+1,y:(12-t)/2,width:2.2,height:t,rx:1,fill:e.waveColor},n)})}),(0,Zt.jsx)("span",{className:"tpe-text-[9px] tpe-font-bold tpe-leading-none",style:{color:e.textColor},children:e.name}),t&&(0,Zt.jsx)(bu,{})]},e.id)})})]}),(0,Zt.jsxs)("div",{className:"tpe-mt-4",children:[(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-justify-between tpe-gap-2 tpe-mb-2",children:[(0,Zt.jsx)("label",{className:"tpe-text-xs tpe-font-bold tpe-text-gray-700 tpe-uppercase tpe-tracking-wide",children:"Scan code"}),(0,Zt.jsx)("button",{type:"button",onClick:function(){return ht("soundwave-scan")},className:"tpe-text-[10px] tpe-font-normal tpe-text-gray-500 hover:tpe-text-gray-900 tpe-underline tpe-decoration-gray-300 tpe-underline-offset-2",children:"Details"})]}),(0,Zt.jsxs)("button",{type:"button",onClick:function(){return cn(!0)},className:"".concat(xu," tpe-cursor-pointer tpe-flex tpe-items-center tpe-justify-between hover:tpe-border-gray-400 tpe-transition-colors"),children:[(0,Zt.jsx)("span",{className:"tpe-text-sm tpe-text-gray-700",children:function(){switch(Q.soundwaves[1].scanCode.type){case"spotify":return"Spotify code";case"apple":return"Apple Music QR";case"deezer":return"Deezer QR";case"audio":case"qr":return"Audio QR";default:return(0,Zt.jsx)("span",{className:"tpe-text-gray-400",children:"None — add a scan code…"})}}()}),(0,Zt.jsx)("span",{className:"tpe-text-[10px] tpe-font-bold tpe-text-gray-500 tpe-uppercase",children:"none"===Q.soundwaves[1].scanCode.type?"Add":"Change"})]})]})]}),"map"===R&&Nn&&(0,Zt.jsxs)(Mu,{icon:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("path",{d:"M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"}),(0,Zt.jsx)("circle",{cx:"12",cy:"10",r:"3"})]}),title:"Map",summary:"".concat(Nn.locationLabel||"No location"," · ").concat((null===(S=Je.find(function(e){return e.id===Nn.styleId}))||void 0===S?void 0:S.name)||""),children:[(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:"tpe-text-xs tpe-font-bold tpe-text-gray-700 tpe-uppercase tpe-tracking-wide tpe-mb-2 tpe-block",children:"Location"}),(0,Zt.jsxs)("button",{type:"button",onClick:function(){return nn(!0)},className:"".concat(xu," tpe-cursor-pointer tpe-flex tpe-items-center tpe-justify-between hover:tpe-border-gray-400 tpe-transition-colors"),children:[(0,Zt.jsx)("span",{className:"tpe-truncate tpe-text-left",children:Nn.locationLabel||(0,Zt.jsx)("span",{className:"tpe-text-gray-400",children:"Search location…"})}),(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"tpe-text-gray-400 tpe-shrink-0 tpe-ml-2",children:[(0,Zt.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,Zt.jsx)("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]})]})]}),Re.enableMapMarkers&&(0,Zt.jsxs)("div",{children:[(0,Zt.jsxs)("label",{className:"tpe-text-xs tpe-font-bold tpe-text-gray-700 tpe-uppercase tpe-tracking-wide tpe-mb-2 tpe-flex tpe-items-center tpe-justify-between",children:[(0,Zt.jsxs)("span",{className:"tpe-flex tpe-items-center tpe-gap-2",children:[(0,Zt.jsx)("span",{children:"Markers"}),(0,Zt.jsx)("button",{type:"button",onClick:function(){return ht("map-markers")},className:"tpe-text-[10px] tpe-font-normal tpe-text-gray-500 hover:tpe-text-gray-900 tpe-underline tpe-decoration-gray-300 tpe-underline-offset-2 tpe-normal-case tpe-tracking-normal",children:"Details"})]}),(0,Zt.jsxs)("button",{onClick:ur,className:"tpe-text-gray-700 hover:tpe-text-gray-900 tpe-text-[10px] tpe-font-bold tpe-flex tpe-items-center tpe-gap-1",children:[(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),(0,Zt.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]}),"Add Marker"]})]}),mr&&(0,Zt.jsxs)("button",{onClick:function(){if(null!=Nn&&Nn.markers){var e=function(e){if(0===e.length)return null;var t=90,n=-90,r=180,o=-180;return e.forEach(function(e){e.lat<t&&(t=e.lat),e.lat>n&&(n=e.lat),e.lng<r&&(r=e.lng),e.lng>o&&(o=e.lng)}),[r,t,o,n]}(Nn.markers);e&&Kn("bounds",e)}},className:"tpe-w-full tpe-mb-4 tpe-py-2 tpe-bg-gray-100 tpe-text-gray-900 tpe-text-xs tpe-font-bold tpe-rounded-lg tpe-border tpe-border-gray-300 hover:tpe-bg-gray-100 tpe-transition-colors tpe-flex tpe-items-center tpe-justify-center tpe-gap-2",children:[(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("polyline",{points:"15 3 21 3 21 9"}),(0,Zt.jsx)("polyline",{points:"9 21 3 21 3 15"}),(0,Zt.jsx)("line",{x1:"21",y1:"3",x2:"14",y2:"10"}),(0,Zt.jsx)("line",{x1:"3",y1:"21",x2:"10",y2:"14"})]}),"Fit Map to Markers"]}),Nn.markers&&Nn.markers.length>0?(0,Zt.jsx)("div",{className:"tpe-space-y-2",children:Nn.markers.map(function(e,t){return(0,Zt.jsx)(ts,{marker:e,index:t,onUpdate:dr,onRemove:fr,mapBounds:Nn.bounds,isExpanded:on===e.id,onToggle:pr,onStartReposition:qe?function(e){return qe(wn,e)}:void 0},e.id)})}):(0,Zt.jsxs)("button",{onClick:ur,className:"tpe-w-full tpe-border-2 tpe-border-dashed tpe-border-gray-200 tpe-rounded-xl tpe-py-4 tpe-text-center hover:tpe-border-gray-400 hover:tpe-bg-gray-50 tpe-transition-colors tpe-flex tpe-flex-col tpe-items-center tpe-gap-1",children:[(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"tpe-text-gray-400",children:[(0,Zt.jsx)("path",{d:"M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"}),(0,Zt.jsx)("circle",{cx:"12",cy:"10",r:"3"})]}),(0,Zt.jsx)("span",{className:"tpe-text-xs tpe-font-bold tpe-text-gray-500",children:"Tap to add a marker"})]})]}),Re.enableMapRoutes&&(0,Zt.jsxs)("div",{className:"tpe-space-y-5 tpe-pt-4 tpe-border-t tpe-border-gray-100",children:[(0,Zt.jsxs)("div",{children:[(0,Zt.jsxs)("label",{className:"tpe-text-xs tpe-font-bold tpe-text-gray-700 tpe-uppercase tpe-tracking-wide tpe-mb-2 tpe-flex tpe-items-center tpe-justify-between",children:[(0,Zt.jsxs)("span",{className:"tpe-flex tpe-items-center tpe-gap-2",children:[(0,Zt.jsx)("span",{children:"Routes"}),(0,Zt.jsx)("button",{type:"button",onClick:function(){return ht("map-routes")},className:"tpe-text-[10px] tpe-font-normal tpe-text-gray-500 hover:tpe-text-gray-900 tpe-underline tpe-decoration-gray-300 tpe-underline-offset-2 tpe-normal-case tpe-tracking-normal",children:"Details"})]}),(0,Zt.jsxs)("span",{className:"tpe-flex tpe-gap-2",children:[!1!==Re.enableStrava&&(0,Zt.jsx)("button",{onClick:ar,disabled:Lt,className:"tpe-text-[10px] tpe-font-bold tpe-text-white tpe-bg-[#FC4C02] hover:tpe-bg-[#e44402] tpe-px-2 tpe-py-1 tpe-rounded-md tpe-flex tpe-items-center tpe-gap-1 disabled:tpe-opacity-60 disabled:tpe-cursor-wait",children:Lt?"Connecting…":"Strava"}),(0,Zt.jsx)("button",{onClick:function(){var e;return null===(e=Ut.current)||void 0===e?void 0:e.click()},className:"tpe-text-[10px] tpe-font-bold tpe-text-gray-700 hover:tpe-text-gray-900 tpe-bg-white tpe-border tpe-border-gray-200 tpe-px-2 tpe-py-1 tpe-rounded-md hover:tpe-bg-gray-50",children:"+ GPX"}),(0,Zt.jsx)("button",{onClick:ir,className:"tpe-text-[10px] tpe-font-bold tpe-text-gray-700 hover:tpe-text-gray-900 tpe-bg-white tpe-border tpe-border-gray-200 tpe-px-2 tpe-py-1 tpe-rounded-md hover:tpe-bg-gray-50",children:"+ Draw"})]})]}),(0,Zt.jsx)("input",{type:"file",accept:".gpx",ref:Ut,className:"tpe-hidden",onChange:or}),Dt&&(0,Zt.jsxs)("div",{role:"alert",className:"tpe-mb-3 tpe-p-3 tpe-rounded-lg tpe-text-xs tpe-flex tpe-items-start tpe-justify-between tpe-gap-2 ".concat("error"===Dt.kind?"tpe-bg-red-50 tpe-border tpe-border-red-200 tpe-text-red-800":"tpe-bg-amber-50 tpe-border tpe-border-amber-200 tpe-text-amber-900"),children:[(0,Zt.jsxs)("div",{className:"tpe-flex-1",children:[(0,Zt.jsx)("div",{className:"tpe-font-bold tpe-mb-1",children:Dt.title}),(0,Zt.jsx)("ul",{className:"tpe-list-disc tpe-list-inside tpe-space-y-0.5",children:Dt.messages.map(function(e,t){return(0,Zt.jsx)("li",{children:e},t)})})]}),(0,Zt.jsx)("button",{type:"button",onClick:function(){return At(null)},className:"tpe-shrink-0 tpe-text-current tpe-opacity-60 hover:tpe-
2opacity-100","aria-label":"Dismiss",children:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,Zt.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),0===_n.length?(0,Zt.jsx)("div",{className:"tpe-border-2 tpe-border-dashed tpe-border-gray-300 tpe-rounded-xl tpe-p-4 tpe-text-center tpe-bg-gray-50",children:(0,Zt.jsxs)("div",{className:"tpe-flex tpe-flex-col tpe-items-center tpe-gap-1",children:[(0,Zt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"tpe-text-gray-400",children:(0,Zt.jsx)("polyline",{points:"22 12 18 12 15 21 9 3 6 12 2 12"})}),(0,Zt.jsx)("span",{className:"tpe-text-xs tpe-font-bold tpe-text-gray-500",children:"Add a GPX file or draw a custom route"})]})}):(0,Zt.jsx)("div",{className:"tpe-space-y-1.5",children:_n.map(function(e,t){var n,r,o=e.id===$n,a=null!==(n=null===(r=e.customRoutePoints)||void 0===r?void 0:r.length)&&void 0!==n?n:0,i=e.name||("gpx"===e.source?"GPX Route ".concat(t+1):"Drawn Route ".concat(t+1)),l="gpx"===e.source?"GPX":"".concat(a," pts");return(0,Zt.jsxs)("div",{onClick:function(){return t=e.id,void nr({activeRouteId:t,routeUiMode:"idle"});var t},className:"tpe-relative tpe-flex tpe-items-center tpe-justify-between tpe-p-2 tpe-pl-3 tpe-rounded-lg tpe-cursor-pointer tpe-border tpe-transition-all tpe-overflow-hidden ".concat(o?"tpe-border-gray-900 tpe-bg-brand-lime tpe-shadow-md tpe-ring-2 tpe-ring-gray-900/15":"tpe-border-gray-200 hover:tpe-bg-gray-50 hover:tpe-border-gray-300"),children:[o&&(0,Zt.jsx)("span",{className:"tpe-absolute tpe-left-0 tpe-top-0 tpe-bottom-0 tpe-w-1 tpe-bg-gray-900"}),(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-gap-2 tpe-min-w-0",children:[(0,Zt.jsx)("span",{className:"tpe-w-3 tpe-h-3 tpe-rounded-full tpe-shrink-0 tpe-shadow ".concat(o?"tpe-ring-2 tpe-ring-gray-900":"tpe-border tpe-border-white"),style:{backgroundColor:e.color||"#FF0000"}}),(0,Zt.jsxs)("div",{className:"tpe-min-w-0",children:[(0,Zt.jsx)("div",{className:"tpe-text-xs tpe-font-bold tpe-truncate tpe-text-gray-900",children:i}),(0,Zt.jsx)("div",{className:"tpe-text-[10px] ".concat(o?"tpe-text-gray-800":"tpe-text-gray-500"),children:o?"Selected · ".concat(l):l})]})]}),(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-gap-1.5 tpe-shrink-0",children:[o&&(0,Zt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",className:"tpe-text-brand-accentink",children:(0,Zt.jsx)("polyline",{points:"20 6 9 17 4 12"})}),(0,Zt.jsx)("button",{type:"button",onClick:function(t){var n,r,o,a,i,l,s,c;t.stopPropagation(),n=e.id,i=(null==(a=Gt.current.maps[wn])?void 0:a.routes)||[],l=null==a?void 0:a.activeRouteId,s=null!==(r=null==a?void 0:a.routeUiMode)&&void 0!==r?r:"idle",c=i.filter(function(e){return e.id!==n}),nr({routes:c,activeRouteId:l===n?null===(o=c[0])||void 0===o?void 0:o.id:l,routeUiMode:l===n?"idle":s,customRoutePoints:void 0,geoJsonRoute:void 0,routeUrl:void 0})},className:"".concat(o?"tpe-text-gray-700 hover:tpe-text-gray-900":"tpe-text-red-500 hover:tpe-text-red-700"),"aria-label":"Remove route",children:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,Zt.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]})]},e.id)})}),_n.some(function(e){var t,n;return(null!==(t=null===(n=e.customRoutePoints)||void 0===n?void 0:n.length)&&void 0!==t?t:0)>0||e.geoJsonRoute})&&(0,Zt.jsxs)("button",{onClick:function(){var e=180,t=-180,n=90,r=-90,o=!1,a=function(a){a.forEach(function(a){var i=mu(a,2),l=i[0],s=i[1];Number.isFinite(l)&&Number.isFinite(s)&&(o=!0,l<e&&(e=l),l>t&&(t=l),s<n&&(n=s),s>r&&(r=s))})};
2_n.forEach(function(e){var t;!1!==e.visible&&("custom"===e.source?a(e.customRoutePoints||[]):null!==(t=e.geoJsonRoute)&&void 0!==t&&null!==(t=t.geometry)&&void 0!==t&&t.coordinates&&a(e.geoJsonRoute.geometry.coordinates))}),o&&nr({bounds:[e,n,t,r]})},className:"tpe-w-full tpe-mt-2 tpe-py-2 tpe-bg-gray-100 tpe-text-gray-900 tpe-text-xs tpe-font-bold tpe-rounded-lg tpe-border tpe-border-gray-300 hover:tpe-bg-gray-200 tpe-transition-colors tpe-flex tpe-items-center tpe-justify-center tpe-gap-2",children:[(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("polyline",{points:"15 3 21 3 21 9"}),(0,Zt.jsx)("polyline",{points:"9 21 3 21 3 15"}),(0,Zt.jsx)("line",{x1:"21",y1:"3",x2:"14",y2:"10"}),(0,Zt.jsx)("line",{x1:"3",y1:"21",x2:"10",y2:"14"})]}),"Fit Map to Routes"]})]}),er&&(0,Zt.jsxs)("div",{className:"tpe-pt-4 tpe-border-t tpe-border-gray-100",children:["custom"===er.source&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsxs)("div",{className:"tpe-flex tpe-gap-2 tpe-mb-4",children:[(0,Zt.jsx)("button",{onClick:function(){var e,t,n,r=Gt.current.maps[wn],o=(null==r?void 0:r.routes)||[],a=null!==(e=null==r?void 0:r.activeRouteId)&&void 0!==e?e:null===(t=o[0])||void 0===t?void 0:t.id,i=o.find(function(e){return e.id===a});"draw"!==(null!==(n=null==r?void 0:r.routeUiMode)&&void 0!==n?n:"idle")?i&&"custom"===i.source?nr({routeUiMode:"draw"}):ir():nr({routeUiMode:"idle"})},className:"tpe-flex-1 tpe-py-3 tpe-rounded-xl tpe-font-bold tpe-text-sm tpe-transition-all tpe-flex tpe-items-center tpe-justify-center tpe-gap-2 ".concat("draw"===tr?"tpe-bg-gray-900 tpe-text-white tpe-shadow-lg":"tpe-bg-white tpe-border tpe-border-gray-200 tpe-text-gray-700 hover:tpe-bg-gray-50"),children:"draw"===tr?(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Zt.jsx)("path",{d:"m15 18-6-6 6-6"})}),(0,Zt.jsx)("span",{children:"Stop Drawing"})]}):(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("path",{d:"m12 19 7-7 3 3-7 7-3-3z"}),(0,Zt.jsx)("path",{d:"m18 13-1.5-7.5L2 2l3.5 14.5L13 18l5-5z"}),(0,Zt.jsx)("circle",{cx:"11",cy:"11",r:"2"})]}),(0,Zt.jsx)("span",{children:((null===(j=er.customRoutePoints)||void 0===j?void 0:j.length)||0)>0?"Add Points":"Start Drawing"})]})}),((null===(T=er.customRoutePoints)||void 0===T?void 0:T.length)||0)>0&&(0,Zt.jsx)("button",{onClick:function(){nr("edit"!==tr?{routeUiMode:"edit"}:{routeUiMode:"idle"})},className:"tpe-flex-1 tpe-py-3 tpe-rounded-xl tpe-font-bold tpe-text-sm tpe-transition-all tpe-flex tpe-items-center tpe-justify-center tpe-gap-2 ".concat("edit"===tr?"tpe-bg-gray-900 tpe-text-white tpe-shadow-lg":"tpe-bg-white tpe-border tpe-border-gray-200 tpe-text-gray-700 hover:tpe-bg-gray-50"),children:"edit"===tr?(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,Zt.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),(0,Zt.jsx)("span",{children:"Stop Editing"})]}):(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),(0,Zt.jsx)("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]}),(0,Zt.jsx)("span",{children:"Edit Route"})]})})]}),((null===(N=er.customRoutePoints)||void 0===N?void 0:N.length)||0)>0&&(0,Zt.jsxs)("div",{className:"tpe-bg-gray-50 tpe-rounded-xl tpe-p-3 tpe-border tpe-border-gray-100 tpe-mb-4",children:[(0,Zt.jsxs)("div",{className:"tpe-flex tpe-justify-between tpe-items-center tpe-mb-3",children:[(0,Zt.jsxs)("span",{className:"tpe-text-xs tpe-font-bold tpe-text-gray-500",children:[er.customRoutePoints.length," Points"]}),(0,Zt.jsxs)("div",{className:"tpe-flex tpe-gap-2",children:[((null===(W=er.customRoutePoints)||void 0===W?void 0:W.length)||0)>=3&&(0,Zt.jsx)("button",{onClick:function(){if(er&&"custom"===er.source){var e=er.customRoutePoints||[];if(!(e.length<3)){var t=[].concat(fu(e),[e[0]]);rr(er.id,{customRoutePoints:t,stats:O(t)})}}},className:"tpe-text-[10px] tpe-font-bold tpe-text-gray-600 hover:tpe-text-gray-900 tpe-bg-white tpe-border tpe-border-gray-200 tpe-px-2 tpe-py-1 tpe-rounded-md hover:tpe-bg-gray-50",children:"Close Loop"}),(0,Zt.jsx)("button",{onClick:function(){if(er&&"custom"===er.source){var e=er.customRoutePoints||[];0!==e.length&&rr(er.id,{customRoutePoints:e.slice(0,-1)})}},className:"tpe-text-[10px] tpe-font-bold tpe-text-gray-600 hover:tpe-text-gray-900 tpe-bg-white tpe-border tpe-border-gray-200 tpe-px-2 tpe-py-1 tpe-rounded-md hover:tpe-bg-gray-50",children:"Undo"}),(0,Zt.jsx)("button",{onClick:function(){var e;if(er&&"custom"===er.source){var t=((null===(e=Gt.current.maps[wn])||void 0===e?void 0:e.routes)||[]).map(function(e){return e.id===er.id?pu(pu({},e),{},{customRoutePoints:[],stats:void 0}):e});nr({routes:t,routeUiMode:"idle",customRoutePoints:void 0})}},className:"tpe-text-[10px] tpe-font-bold tpe-text-red-600 hover:tpe-text-red-800 tpe-bg-white tpe-border tpe-border-red-100 tpe-px-2 tpe-py-1 tpe-rounded-md hover:tpe-bg-red-50",children:"Clear"})]})]}),(0,Zt.jsx)("p",{className:"tpe-text-[10px] tpe-text-gray-400 tpe-italic",children:"draw"===tr?"Click map to add points.":"edit"===tr?"Drag points to adjust position.":"Select mode to modify route."})]})]}),(0,Zt.jsxs)("div",{className:"tpe-mb-4",children:[(0,Zt.jsx)("label",{className:"tpe-text-[10px] tpe-font-bold tpe-text-gray-500 tpe-uppercase tpe-tracking-wide tpe-mb-2 tpe-block",children:"Line Style"}),(0,Zt.jsx)("div",{className:"tpe-flex tpe-gap-1 tpe-mb-3",children:["solid","gradient"].map(function(e){return(0,Zt.jsx)("button",{onClick:function(){return function(e){if(er){var t={colorMode:e};"gradient"===e&&(er.gradientStart||(t.gradientStart=er.color||"#FF0000"),er.gradientEnd||(t.gradientEnd="#0000FF")),rr(er.id,t)}}(e)},className:"tpe-flex-1 tpe-py-1.5 tpe-rounded-md tpe-text-[10px] tpe-font-bold tpe-capitalize tpe-transition-colors ".concat((er.colorMode||"solid")===e?"tpe-bg-gray-900 tpe-text-white":"tpe-bg-white tpe-border tpe-border-gray-200 tpe-text-gray-600 hover:tpe-bg-gray-100"),children:e},e)})}),"solid"===(er.colorMode||"solid")?(0,Zt.jsx)("div",{className:"tpe-flex tpe-gap-1.5 tpe-flex-wrap",children:Ye.map(function(e){return(0,Zt.jsx)("button",{onClick:function(){return rr(er.id,{color:e})},className:"tpe-w-6 tpe-h-6 tpe-rounded-full tpe-border tpe-shadow-sm tpe-transition-transform ".concat(er.color===e?"tpe-ring-2 tpe-ring-offset-1 tpe-ring-gray-900 tpe-scale-110":"hover:tpe-scale-105 tpe-border-gray-200"),style:{backgroundColor:e}},e)})}):(0,Zt.jsxs)("div",{className:"tpe-space-y-2",children:[(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-gap-2",children:[(0,Zt.jsx)("span",{className:"tpe-text-[10px] tpe-text-gray-500 tpe-w-10",children:"Start"}),(0,Zt.jsx)("input",{type:"color",value:er.gradientStart||er.color||"#FF0000",onChange:function(e){return rr(er.id,{gradientStart:e.target.value})},className:"tpe-h-7 tpe-w-full tpe-rounded tpe-cursor-pointer tpe-border tpe-border-gray-200"})]}),(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-gap-2",children:[(0,Zt.jsx)("span",{className:"tpe-text-[10px] tpe-text-gray-500 tpe-w-10",children:"End"}),(0,Zt.jsx)("input",{type:"color",value:er.gradientEnd||"#0000FF",onChange:function(e){return rr(er.id,{gradientEnd:e.target.value})},className:"tpe-h-7 tpe-w-full tpe-rounded tpe-cursor-pointer tpe-border tpe-border-gray-200"})]})]})]}),(0,Zt.jsxs)("div",{className:"tpe-mb-4",children:[(0,Zt.jsxs)("label",{className:"tpe-text-[10px] tpe-font-bold tpe-text-gray-500 tpe-uppercase tpe-tracking-wide tpe-mb-2 tpe-flex tpe-justify-between",children:[(0,Zt.jsx)("span",{children:"Route Width"}),(0,Zt.jsxs)("span",{children:[(null!==(I=er.widthMultiplier)&&void 0!==I?I:3).toFixed(1),"x"]})]}),(0,Zt.jsx)("input",{type:"range",min:"1",max:"10",step:"0.5",value:null!==(U=er.widthMultiplier)&&void 0!==U?U:3,onChange:function(e){return rr(er.id,{widthMultiplier:parseFloat(e.target.value)})},className:"tpe-w-full tpe-h-1.5 tpe-bg-gray-200 tpe-rounded-lg tpe-appearance-none tpe-cursor-pointer tpe-accent-gray-900"})]}),er.stats&&er.stats.pointCount>=2&&(0,Zt.jsxs)("div",{className:"tpe-bg-gray-50 tpe-rounded-xl tpe-p-3 tpe-border tpe-border-gray-100",children:[(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-justify-between tpe-mb-2",children:[(0,Zt.jsx)("span",{className:"tpe-text-[10px] tpe-font-bold tpe-text-gray-500 tpe-uppercase tpe-tracking-wide",children:"Route Stats"}),(0,Zt.jsx)("button",{onClick:function(){if(null!=er&&er.stats){var e=function(e,t){var n=[E(e,t)],r=V(e,t);r&&n.push(r);var o=z(e);return o&&n.push(o),n.join(" · ")}(er.stats,lr),t={id:"line-".concat(Date.now()),text:e,isBold:!1};
2J("captionLines",[].concat(fu(Q.captionLines),[t]))}},className:"tpe-text-[10px] tpe-font-bold tpe-text-gray-700 hover:tpe-text-gray-900 tpe-bg-white tpe-border tpe-border-gray-200 tpe-px-2 tpe-py-1 tpe-rounded-md hover:tpe-bg-gray-50",children:"+ Add to caption"})]}),(0,Zt.jsxs)("div",{className:"tpe-flex tpe-gap-4",children:[(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("div",{className:"tpe-text-sm tpe-font-bold tpe-text-gray-900",children:E(er.stats,lr)}),(0,Zt.jsx)("div",{className:"tpe-text-[10px] tpe-text-gray-400",children:"Distance"})]}),V(er.stats,lr)&&(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("div",{className:"tpe-text-sm tpe-font-bold tpe-text-gray-900",children:V(er.stats,lr)}),(0,Zt.jsx)("div",{className:"tpe-text-[10px] tpe-text-gray-400",children:"Elevation"})]}),z(er.stats)&&(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("div",{className:"tpe-text-sm tpe-font-bold tpe-text-gray-900",children:z(er.stats)}),(0,Zt.jsx)("div",{className:"tpe-text-[10px] tpe-text-gray-400",children:"Duration"})]})]})]})]})]}),(0,Zt.jsxs)("div",{className:"tpe-pt-4 tpe-border-t tpe-border-gray-100",children:[(0,Zt.jsxs)("div",{children:[(0,Zt.jsxs)("label",{className:"tpe-text-xs tpe-font-bold tpe-text-gray-700 tpe-uppercase tpe-tracking-wide tpe-mb-2 tpe-flex tpe-items-center tpe-gap-2",children:[(0,Zt.jsx)("span",{children:"Map Style"}),(0,Zt.jsx)("button",{type:"button",onClick:function(){return ht("map-styles")},className:"tpe-text-[10px] tpe-font-normal tpe-text-gray-500 hover:tpe-text-gray-900 tpe-underline tpe-decoration-gray-300 tpe-underline-offset-2 tpe-normal-case tpe-tracking-normal",children:"Details"})]}),(0,Zt.jsx)("div",{ref:hn,className:"tpe-grid tpe-gap-2",style:{gridTemplateColumns:"repeat(".concat(dn,", minmax(0, 1fr))")},children:Je.map(function(e){return(0,Zt.jsxs)("button",{onClick:function(){return t=e.id,r=Je.find(function(e){return e.id===t}),o=null!=r&&r.base?null===(n=r.variations)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.id:void 0,void nr({styleId:t,variationId:o,userTheme:void 0});var t,n,r,o},className:"tpe-group tpe-flex tpe-flex-col tpe-items-center tpe-gap-1.5",title:e.name,children:[(0,Zt.jsx)("div",{className:"tpe-w-12 tpe-h-12 tpe-rounded-full tpe-border-2 tpe-overflow-hidden tpe-transition-all ".concat(Nn.styleId===e.id?"tpe-border-brand-lime tpe-ring-2 tpe-ring-brand-lime/40 tpe-scale-110 tpe-shadow-md":"tpe-border-gray-200 group-hover:tpe-border-gray-400 group-hover:tpe-scale-105"),children:(0,Zt.jsx)("img",{src:e.image,alt:e.name,className:"tpe-w-full tpe-h-full tpe-object-cover"})}),(0,Zt.jsx)("span",{className:"tpe-text-[10px] tpe-font-medium tpe-text-center tpe-leading-tight tpe-max-w-[60px] ".concat(Nn.styleId===e.id?"tpe-text-gray-900 tpe-font-bold":"tpe-text-gray-500 group-hover:tpe-text-gray-700"),children:e.name})]},e.id)})})]}),qn&&(0,Zt.jsxs)("div",{className:"tpe-mt-4 tpe-pt-4 tpe-border-t tpe-border-gray-100 tpe-space-y-4",children:[(null==Jn?void 0:Jn.variations)&&Jn.variations.length>0&&(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:"tpe-text-[10px] tpe-font-bold tpe-text-gray-500 tpe-uppercase tpe-tracking-wide tpe-mb-2 tpe-block",children:"Preset"}),(0,Zt.jsx)("div",{className:"tpe-flex tpe-gap-1.5 tpe-flex-wrap",children:Jn.variations.map(function(e){var t=Nn.variationId===e.id;return(0,Zt.jsxs)("button",{onClick:function(){return t=e.id,void nr({variationId:t,userTheme:void 0});var t},title:e.name,className:"tpe-flex tpe-flex-col tpe-items-center tpe-gap-1 tpe-p-1 tpe-rounded-lg tpe-border-2 tpe-transition-all ".concat(t?"tpe-border-gray-900 tpe-bg-gray-50":"tpe-border-transparent hover:tpe-bg-gray-50"),children:[(0,Zt.jsx)("span",{className:"tpe-flex tpe-rounded-md tpe-overflow-hidden tpe-shadow-sm tpe-border tpe-border-gray-200",children:["water","land","roads","labels"].map(function(t){return(0,Zt.jsx)("span",{className:"tpe-w-2.5 tpe-h-6",style:{backgroundColor:e.theme[t]||"#ccc"}},t)})}),(0,Zt.jsx)("span",{className:"tpe-text-[9px] tpe-font-bold ".concat(t?"tpe-text-gray-900":"tpe-text-gray-500"),children:e.name})]},e.id)})})]}),(0,Zt.jsxs)("div",{children:[(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-justify-between tpe-mb-2",children:[(0,Zt.jsx)("label",{className:"tpe-text-[10px] tpe-font-bold tpe-text-gray-500 tpe-uppercase tpe-tracking-wide",children:"Customise C
2olors"}),Nn.userTheme&&Object.keys(Nn.userTheme).length>0&&(0,Zt.jsx)("button",{onClick:function(){nr({userTheme:void 0})},className:"tpe-text-[10px] tpe-font-bold tpe-text-gray-600 hover:tpe-text-gray-900 tpe-bg-white tpe-border tpe-border-gray-200 tpe-px-2 tpe-py-0.5 tpe-rounded-md hover:tpe-bg-gray-50",children:"Reset"})]}),(0,Zt.jsx)("div",{className:"tpe-grid tpe-grid-cols-2 tpe-gap-2",children:["water","land","roads","labels"].map(function(e){return(0,Zt.jsx)(ks,{label:e,value:(t=e,i=null==Jn||null===(n=Jn.variations)||void 0===n?void 0:n.find(function(e){return e.id===(null==Nn?void 0:Nn.variationId)}),(null==Nn||null===(r=Nn.userTheme)||void 0===r?void 0:r[t])||(null==i||null===(o=i.theme)||void 0===o?void 0:o[t])||(null==Jn||null===(a=Jn.theme)||void 0===a?void 0:a[t])||"#cccccc"),onChange:function(t){return function(e,t){var n,r=(null===(n=Gt.current.maps[wn])||void 0===n?void 0:n.userTheme)||{};nr({userTheme:pu(pu({},r),{},du({},e,t))})}(e,t)}},e);var t,n,r,o,a,i})})]}),(0,Zt.jsxs)("div",{className:"tpe-space-y-2",children:[(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-justify-between",children:[(0,Zt.jsx)("span",{className:"tpe-text-[10px] tpe-font-bold tpe-text-gray-500 tpe-uppercase tpe-tracking-wide",children:"Hide all labels"}),(0,Zt.jsxs)("label",{className:"tpe-relative tpe-inline-flex tpe-items-center tpe-cursor-pointer",children:[(0,Zt.jsx)("input",{type:"checkbox",checked:!!Nn.hideLabels,onChange:function(e){return Kn("hideLabels",e.target.checked)},className:"tpe-sr-only tpe-peer"}),(0,Zt.jsx)("div",{className:yu})]})]}),(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-justify-between",children:[(0,Zt.jsx)("span",{className:"tpe-text-[10px] tpe-font-bold tpe-text-gray-500 tpe-uppercase tpe-tracking-wide",children:"Hide transit & waterways"}),(0,Zt.jsxs)("label",{className:"tpe-relative tpe-inline-flex tpe-items-center tpe-cursor-pointer",children:[(0,Zt.jsx)("input",{type:"checkbox",checked:!!Nn.hideTransit,onChange:function(e){return Kn("hideTransit",e.target.checked)},className:"tpe-sr-only tpe-peer"}),(0,Zt.jsx)("div",{className:yu})]})]}),(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-justify-between",children:[(0,Zt.jsx)("span",{className:"tpe-text-[10px] tpe-font-bold tpe-text-gray-500 tpe-uppercase tpe-tracking-wide",children:"Hide buildings & airports"}),(0,Zt.jsxs)("label",{className:"tpe-relative tpe-inline-flex tpe-items-center tpe-cursor-pointer",children:[(0,Zt.jsx)("input",{type:"checkbox",checked:!!Nn.hideBuildings,onChange:function(e){return Kn("hideBuildings",e.target.checked)},className:"tpe-sr-only tpe-peer"}),(0,Zt.jsx)("div",{className:yu})]})]}),(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-justify-between",children:[(0,Zt.jsx)("span",{className:"tpe-text-[10px] tpe-font-bold tpe-text-gray-500 tpe-uppercase tpe-tracking-wide",children:"Hide state lines"}),(0,Zt.jsxs)("label",{className:"tpe-relative tpe-inline-flex tpe-items-center tpe-cursor-pointer",children:[(0,Zt.jsx)("input",{type:"checkbox",checked:!!Nn.hideStateLines,onChange:function(e){return Kn("hideStateLines",e.target.checked)},className:"tpe-sr-only tpe-peer"}),(0,Zt.jsx)("div",{className:yu})]})]}),(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-justify-between",children:[(0,Zt.jsx)("span",{className:"tpe-text-[10px] tpe-font-bold tpe-text-gray-500 tpe-uppercase tpe-tracking-wide",children:"Hide relief / terrain"}),(0,Zt.jsxs)("label",{className:"tpe-relative tpe-inline-flex tpe-items-center tpe-cursor-pointer",children:[(0,Zt.jsx)("input",{type:"checkbox",checked:!!Nn.hideRelief,onChange:function(e){return Kn("hideRelief",e.target.checked)},className:"tpe-sr-only tpe-peer"}),(0,Zt.jsx)("div",{className:yu})]})]}),!(null===(k=window.SHOPIFY_CONFIG)||void 0===k||!k.adminMode)&&(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-justify-between",children:[(0,Zt.jsx)("span",{className:"tpe-text-[10px] tpe-font-bold tpe-text-amber-600 tpe-uppercase tpe-tracking-wide",title:"Admin only. Skips the white paper fill so transparent layers stay transparent in the downloaded PNG",children:"Transparent background (admin)"}),(0,Zt.jsxs)("label",{className:"tpe-relative tpe-inline-flex tpe-items-center tpe-cursor-pointer",children:[(0,Zt.jsx)("input",{type:"checkbox",checked:!!Nn.transparentBackgroun
2d,onChange:function(e){return Kn("transparentBackground",e.target.checked)},className:"tpe-sr-only tpe-peer"}),(0,Zt.jsx)("div",{className:yu})]})]})]})]})]}),(0,Zt.jsxs)("div",{className:"tpe-pt-4 tpe-border-t tpe-border-gray-100 tpe-space-y-5",children:[(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-justify-between tpe-p-3 tpe-rounded-xl tpe-border tpe-border-gray-200 tpe-bg-white tpe-shadow-sm",children:[(0,Zt.jsx)("span",{className:"tpe-text-sm tpe-font-medium tpe-text-gray-700",children:"Show Coordinates"}),(0,Zt.jsxs)("label",{className:"tpe-relative tpe-inline-flex tpe-items-center tpe-cursor-pointer",children:[(0,Zt.jsx)("input",{type:"checkbox",checked:Nn.showCoordinates,onChange:function(e){return Kn("showCoordinates",e.target.checked)},className:"tpe-sr-only tpe-peer"}),(0,Zt.jsx)("div",{className:yu})]})]}),!!Nn.showCoordinates&&cr(!1,!1)]})]})]})}),(0,Zt.jsx)("div",{children:(0,Zt.jsx)("div",{className:"preset"===R?"tpe-hidden":hr("LAYOUT"),children:(0,Zt.jsxs)(Mu,{id:"section-layout",icon:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("rect",{x:"3",y:"3",width:"7",height:"7"}),(0,Zt.jsx)("rect",{x:"14",y:"3",width:"7",height:"7"}),(0,Zt.jsx)("rect",{x:"14",y:"14",width:"7",height:"7"}),(0,Zt.jsx)("rect",{x:"3",y:"14",width:"7",height:"7"})]}),title:"Layout",summary:null==Mn?void 0:Mn.name,children:["collage"===R&&(0,Zt.jsx)("div",{className:"tpe-flex tpe-justify-end",children:(0,Zt.jsx)("button",{onClick:function(){return st(!0)},className:"tpe-text-xs tpe-text-gray-700 tpe-font-bold hover:tpe-text-gray-900",children:"+ Custom Grid"})}),(0,Zt.jsx)("div",{className:"tpe-grid tpe-grid-cols-3 tpe-gap-3",children:Yn.map(function(e){var t=Q.layoutId===e.id;return(0,Zt.jsxs)("button",{onClick:function(){return ee(e)},className:"tpe-relative tpe-p-2 tpe-rounded-lg tpe-border-2 tpe-text-center tpe-transition-all tpe-bg-white ".concat(t?"tpe-border-gray-900 tpe-ring-2 tpe-ring-gray-900/15":"tpe-border-gray-200 hover:tpe-border-gray-300"),children:[(0,Zt.jsxs)("div",{className:"tpe-w-full tpe-aspect-square tpe-bg-white tpe-border tpe-border-gray-100 tpe-mb-2 tpe-rounded-sm tpe-relative tpe-overflow-hidden",children:[e.slots.map(function(e){return(0,Zt.jsx)("div",{className:"tpe-absolute tpe-bg-gray-200 tpe-border tpe-border-white",style:{left:"".concat(e.x,"%"),top:"".concat(e.y,"%"),width:"".concat(e.w,"%"),height:"".concat(e.h,"%")}},e.id)}),e.hasCaption&&(0,Zt.jsx)("div",{className:"tpe-absolute tpe-bottom-1 tpe-left-1 tpe-right-1 tpe-h-1 tpe-bg-gray-100 tpe-rounded-full"})]}),(0,Zt.jsx)("span",{className:"tpe-text-xs tpe-font-medium tpe-text-gray-700 tpe-block tpe-truncate",children:e.name}),t&&(0,Zt.jsx)(bu,{})]},e.id)})}),"collage"===R&&!(Q.customLayout&&Q.customLayout.id===B)&&(0,Zt.jsxs)("label",{className:"tpe-flex tpe-items-center tpe-gap-2 tpe-cursor-pointer tpe-group",children:[(0,Zt.jsx)("div",{className:"tpe-w-5 tpe-h-5 tpe-rounded tpe-border tpe-flex tpe-items-center tpe-justify-center tpe-transition-colors ".concat(Q.enableCollageCaption?"tpe-bg-gray-900 tpe-border-gray-900":"tpe-bg-white tpe-border-gray-300 group-hover:tpe-border-gray-400"),children:Q.enableCollageCaption&&(0,Zt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",className:"tpe-text-white",children:(0,Zt.jsx)("polyline",{points:"20 6 9 17 4 12"})})}),(0,Zt.jsx)("input",{type:"checkbox",className:"tpe-hidden",style:{display:"none"},checked:Q.enableCollageCaption||!1,onChange:function(e){return J("enableCollageCaption",e.target.checked)}}),(0,Zt.jsx)("span",{className:"tpe-text-sm tpe-text-gray-700",children:"Add text caption to collage"})]})]})})}),(0,Zt.jsx)("div",{children:(0,Zt.jsx)("div",{className:hr("TEXT"),children:((null==Mn?void 0:Mn.hasCaption)||"collage"===R&&Q.enableCollageCaption)&&(0,Zt.jsx)(Mu,{id:"section-text",icon:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("polyline",{points:"4 7 4 4 20 4 20 7"}),(0,Zt.jsx)("line",{x1:"9",y1:"20",x2:"15",y2:"20"}),(0,Zt.jsx)("line",{x1:"12",y1:"4",x2:"12",y2:"20"})]}),title:null!=Mn&&Mn.posterMeta?"Title & Artist":"Text",summary:Q.captionLine
2s.filter(function(e){return e.text.trim()}).map(function(e){return e.text}).join(" · ")||"No text",children:(0,Zt.jsxs)("div",{id:"text-inputs-section",className:"tpe-space-y-5",children:[!(null!=Mn&&Mn.posterMeta)&&(0,Zt.jsxs)("div",{className:"tpe-mb-4 tpe-space-y-4",children:[(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:"tpe-text-xs tpe-font-bold tpe-text-gray-500 tpe-mb-1 tpe-block",children:"Size"}),(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-gap-2",children:[(0,Zt.jsxs)(zi,{className:"tpe-relative tpe-flex tpe-items-center tpe-select-none tpe-touch-none tpe-flex-1 tpe-h-5 tpe-cursor-pointer",min:.5,max:4,step:.1,value:[Q.fontSize],onValueChange:function(e){return J("fontSize",e[0])},children:[(0,Zt.jsx)(Xi,{className:"tpe-bg-gray-200 tpe-relative tpe-grow tpe-rounded-full tpe-h-2",children:(0,Zt.jsx)(Pi,{className:"tpe-absolute tpe-bg-gray-900 tpe-rounded-full tpe-h-full"})}),(0,Zt.jsx)(Zi,{className:"tpe-block tpe-w-5 tpe-h-5 tpe-bg-gray-900 tpe-rounded-full hover:tpe-bg-gray-700 focus:tpe-outline-none focus:tpe-ring-2 focus:tpe-ring-gray-400","aria-label":"Caption font size"})]}),(0,Zt.jsx)("span",{className:"tpe-text-[10px] tpe-text-amber-600 tpe-ml-1 tpe-w-10 tpe-text-right tpe-shrink-0 ".concat(null!==fe&&Q.fontSize>fe+.001?"":"tpe-invisible"),title:"Caption capped to fit current preview. Stored size preserved.",children:null!==fe?"→".concat(fe.toFixed(1),"x"):""}),(0,Zt.jsxs)("span",{className:"tpe-text-xs tpe-font-JetBrains_Mono tpe-w-8 tpe-text-right",children:[Q.fontSize.toFixed(1),"x"]})]})]}),(null==Mn?void 0:Mn.allowCaptionAlign)&&(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:"tpe-text-xs tpe-font-bold tpe-text-gray-500 tpe-mb-1 tpe-block",children:"Align"}),(0,Zt.jsx)("div",{className:"tpe-flex tpe-gap-1",children:[{value:"left",label:"Left",lines:["tpe-w-full","tpe-w-2/3","tpe-w-5/6"],justify:"tpe-items-start"},{value:"center",label:"Centre",lines:["tpe-w-full","tpe-w-2/3","tpe-w-5/6"],justify:"tpe-items-center"},{value:"right",label:"Right",lines:["tpe-w-full","tpe-w-2/3","tpe-w-5/6"],justify:"tpe-items-end"}].map(function(e){var t,n=(null!==(t=Q.captionAlign)&&void 0!==t?t:"center")===e.value;return(0,Zt.jsx)("button",{onClick:function(){return J("captionAlign",e.value)},title:e.label,"aria-label":"Align text ".concat(e.label.toLowerCase()),"aria-pressed":n,className:"tpe-flex-1 tpe-h-9 tpe-rounded-lg tpe-border tpe-flex tpe-flex-col tpe-justify-center tpe-gap-[3px] tpe-px-3 tpe-transition-colors ".concat(e.justify," ").concat(n?"tpe-border-gray-900 tpe-bg-gray-900":"tpe-border-gray-200 hover:tpe-border-gray-400"),children:e.lines.map(function(e,t){return(0,Zt.jsx)("span",{className:"".concat(e," tpe-h-[2px] tpe-rounded-full ").concat(n?"tpe-bg-white":"tpe-bg-gray-400")},t)})},e.value)})})]})]}),gr(!0),de&&(0,Zt.jsxs)("div",{className:"tpe-mt-3 tpe-bg-red-50 tpe-text-red-600 tpe-text-xs tpe-font-medium tpe-p-3 tpe-rounded-lg tpe-flex tpe-items-center tpe-gap-2",children:[(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,Zt.jsx)("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),(0,Zt.jsx)("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]}),"Text exceeds available space. Please reduce size or text length."]})]})})})})]}),(0,Zt.jsxs)("div",{className:"tpe-p-4 tpe-border-t tpe-border-gray-200 tpe-bg-gray-50 md:tpe-block ".concat(ze?"tpe-hidden":""),children:[!(null!==(D=window.SHOPIFY_CONFIG)&&void 0!==D&&null!==(D=D.features)&&void 0!==D&&D.hideDeliveryCalculator)&&(0,Zt.jsxs)("button",{onClick:function(){return yt(!0)},className:"tpe-w-full tpe-flex tpe-items-center tpe-justify-between tpe-mb-2 tpe-group",children:[(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-gap-2 tpe-text-xs tpe-text-gray-500 group-hover:tpe-text-gray-700 tpe-transition-colors",children:[(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("rect",{x:"1",y:"3",width:"15",height:"13",rx:"2",ry:"2"}),(0,Zt.jsx)("line",{x1:"16",y1:"8",x2:"20",y2:"8"}),(0,Zt.jsx)("line",{x1:"16",y1:"16",x2:"23",y2:"16"}),(0,Zt.jsx)("line",{x1:"1",y1:"3",x2:"23",y2:"3"}),(0,Zt.jsx)("line",{x1:"16",y1:"8",x2:"16",y2:"16"})]}),(0,Zt.jsxs)("span",{children:["Get it by ",(0,Zt.jsx)("span",{className:"tpe-font-bold tpe-text-gray-900 group-hover:tpe-text-gray-700",children:wt})]})]}),(0,Zt.jsx)("span",{className:"tpe-text-[10px] tpe-font-medium tpe-text-gray-400 tpe-underline tpe-decoration-dashed group-hover:tpe-text-gray-900",children:Wt})]}),ie.length>1&&(0,Zt.jsxs)("div",{className:"tpe-mb-3",children:[(0,Zt.jsxs)("button",{onClick:function(){return Yt(function(e){return!e})},"aria-expanded":bt,className:"tpe-w-full tpe-flex tpe-items-center tpe-justify-between tpe-text-[11px] tpe-font-bold tpe-text-brand-muted hover:tpe-text-brand-ink tpe-transition-colors",children:[(0,Zt.jsx)("span",{children:bt?"Hide breakdown":"What am I paying for?"}),(0,Zt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{transform:bt?"rotate(180deg)":"none"},children:(0,Zt.jsx)("polyline",{points:"6 9 12 15 18 9"})})]}),bt&&(0,Zt.jsxs)("dl",{className:"tpe-mt-2 tpe-flex tpe-flex-col tpe-gap-1.5 tpe-p-3 tpe-rounded-st tpe-bg-brand-panel tpe-border tpe-border-brand-line",children:[ie.map(function(e){return(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-baseline tpe-justify-between tpe-gap-4 tpe-text-xs",children:[(0,Zt.jsx)("dt",{className:"tpe-text-brand-muted tpe-truncate",children:e.label}),(0,Zt.jsxs)("dd",{className:"tpe-font-bold tpe-text-brand-ink tpe-tabular-nums tpe-shrink-0",children:[le,e.amount.toFixed(2)]})]},e.label)}),oe&&oe>re?(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-baseline tpe-justify-between tpe-gap-4 tpe-text-xs tpe-pt-1.5 tpe-border-t tpe-border-brand-line",children:[(0,Zt.jsx)("dt",{className:"tpe-text-emerald-700",children:"Discount"}),(0,Zt.jsxs)("dd",{className:"tpe-font-bold tpe-text-emerald-700 tpe-tabular-nums tpe-shrink-0",children:["−",le,(oe-re).toFixed(2)]})]}):null]})]}),(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-justify-between tpe-mb-4",children:[(0,Zt.jsx)("div",{className:"tpe-flex tpe-items-center tpe-gap-2",children:(0,Zt.jsx)("span",{className:"tpe-text-sm tpe-font-bold tpe-text-gray-600",children:"Total Price"})}),(0,Zt.jsxs)("div",{className:"tpe-text-right tpe-flex tpe-gap-2 tpe-items-center",children:[oe&&oe>re&&(0,Zt.jsxs)("div",{className:"tpe-text-xs tpe-text-gray-500 tpe-line-through",children:[le,oe.toFixed(2)]}),(0,Zt.jsxs)("div",{className:"tpe-text-2xl tpe-font-bold tpe-text-brand-ink",children:[le,re.toFixed(2)]})]})]}),we&&(0,Zt.jsxs)("div",{role:"alert",className:"tpe-mb-3 tpe-p-3 tpe-rounded-lg tpe-text-xs tpe-bg-red-50 tpe-border tpe-border-red-200 tpe-text-red-800",children:[(0,Zt.jsx)("p",{className:"tpe-font-bold tpe-mb-1",children:"Map couldn’t load"}),(0,Zt.jsx)("p",{children:we})]}),(0,Zt.jsx)("button",{onClick:pe,disabled:xe||Ne||!!we,className:"tpe-w-full tpe-py-4 tpe-rounded-st tpe-font-bold tpe-text-brand-accentink tpe-shadow-st-cta tpe-transition-all tpe-flex tpe-items-center tpe-justify-center tpe-gap-3 tpe-border-[length:var(--st-border-w)] tpe-border-brand-ink ".concat(xe||Ne||we?"tpe-bg-brand-lime/70 tpe-cursor-wait tpe-opacity-80":"tpe-bg-brand-lime hover:tpe-brightness-95 hover:tpe-shadow-xl hover:tpe--translate-y-0.5"),children:xe?"Processing...":"Add to Cart"})]}),lt&&(0,Zt.jsx)(Dl,{initialLayout:Mn||Yn[0],selectedSize:gn,unitSystem:L,onCancel:function(){return st(!1)},onSave:function(e){J("customLayout",e),J("layoutId",e.id),me(null),st(!1)}}),pt&&(0,Zt.jsx)(Ml,{isOpen:!!pt,onClose:function(){return dt(null)},frame:Z.find(function(e){return e.id===pt})}),(0,Zt.jsx)(wl,{featureId:mt,onClose:function(){return ht(null)}}),!(null!==(A=window.SHOPIFY_CONFIG)&&void 0!==A&&null!==(A=A.features)&&void 0!==A&&A.hideDeliveryCalculator)&&(0,Zt.jsx)(Pl,{isOpen:xt,onClose:function(){return yt(!1)},onApply:function(e,t,n){St(e),Tt(t),It(n)},currency:le,defaultCountryCode:Se}),ot&&$&&Q.assignedImages[$]&&function(){var e=Q.assignedImages[$],t=H.find(function(t){return t.id===e.imageId});if(!t)return null;var n=null==Mn?void 0:Mn.slots.find(function(e){return e.id===$}),r=(null==gn?void 0:gn.widthIn)||1,o=(null==gn?void 0:gn.heightIn)||1,a=n?n.w*r/(n.h*o):r/o;return(0,Zt.jsx)(gl,{imageUrl:t.displayUrl||t.url,initialCrop:e.crop,aspectRatio:a,onCancel:function(){return at(!1)},onSave:function(t){e.recropped;var n=cu(e,ou);J("assignedImages",pu(pu({},Q.assignedImages),{},du({},$,pu(pu({},n),{},{crop:t})))),at(!1)}})}(),(0,Zt.jsx)(Rl,{isOpen:tn,onClose:function(){return nn(!1)},onSelect:function(e,t,n){if("starmap"===R){var r=Q.starMaps[wn],o=pu(pu({},r),{},{lat:e,lng:t,locationLabel:n});if(null!=r&&r.date){var a,i=Pt(Date.parse(r.date),null!==(a=r.tzOffset)&&void 0!==a?a:0),l=Xt(e,t,i.getUTCFullYear(),i.getUTCMonth()+1,i.getUTCDate(),i.getUTCHours(),i.getUTCMinutes()),s=l.utcMs,c=l.offsetMinutes;o.date=new Date(s).toISOString(),o.tzOffset=c}J("starMaps",pu(pu({},Q.starMaps),{},du({},wn,o)))}else if("oldmap"===R){var u=Q.oldMaps[wn],p=Ce(e,t),d=p.some(function(e){return e.id===u.styleId}),f=d?u.styleId:p[0].id;J("oldMaps",pu(pu({},Q.oldMaps),{},du({},wn,pu(pu({},u),{},{lat:e,lng:t,locationLabel:n,styleId:f},d?{}:{scale:Qe(f)}))))}else if("osmap"===R)J("osMaps",pu(pu({},Q.osMaps),{},du({},wn,pu(pu({},Q.osMaps[wn]),{},{lat:e,lng:t,locationLabel:n}))));else if("map"===R){var m=Q.maps[wn],h=(m.bounds,cu(m,ru));J("maps",pu(pu({},Q.maps),{},du({},wn,pu(pu({},h),{},{lat:e,lng:t,locationLabel:n}))))}},initialValue:"starmap"===R?null==Sn?void 0:Sn.locationLabel:"oldmap"===R?null==jn?void 0:jn.locationLabel:"osmap"===R?null==Tn?void 0:Tn.locationLabel:"map"===R?null==Nn?void 0:Nn.locationLabel:"",restrictCountry:"oldmap"===R||"osmap"===R?"gb":void 0}),sn&&"soundwave"===R&&(null===(C=Q.soundwaves)||void 0===C?void 0:C[1])&&(0,Zt.jsx)(qs,{config:Q.soundwaves[1],onClose:function(){return cn(!1)},onApply:function(e,t){var n=Q.soundwaves[1];J("soundwaves",pu(pu({},Q.soundwaves),{},{1:pu(pu({},n),{},{scanCode:pu(pu({},n.scanCode),e),metadata:t?pu(pu({},n.metadata||{title:"",artist:""}),t):n.metadata})}))}})]})};function Su(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ju(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ju(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ju(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Tu=function(t){var n=t.size,r=t.frame,o=t.layout,a=t.design,i=t.images,l=t.productType,s=t.snapshotUrl,c=t.customRoomUrl,u=t.customRoomCloseUrl,p=t.customRoomView,d=t.onCustomRoomViewChange,f=t.overrideTotalMm,m=Su((0,e.useState)(!1),2),h=m[0],g=m[1],x=(0,e.useRef)(null),y=Su((0,e.useState)({w:0,h:0}),2),v=y[0],b=y[1];(0,e.useLayoutEffect)(function(){var e=x.current;if(e){var t=new ResizeObserver(function(){return b({w:e.clientWidth,h:e.clientHeight})});return t.observe(e),b({w:e.clientWidth,h:e.clientHeight}),function(){return t.disconnect()}}},[]);var Y,M,w=.393701;if(f)Y=f.widthMm/10,M=f.heightMm/10;
2else{var S=r.thicknessCm||0,j=a.mount.enabled&&"none"!==r.id?a.mount.widthCm:0;Y=n.widthIn/w+2*j+2*S,M=n.heightIn/w+2*j+2*S}var T=v.w||600,N=v.h||420,W=.92*T/360,I=.22*N,U=Y*W,k=M*W,D=N-I,A=D-145*W-k/2,C=200*W,L=85*W,O=170*W;if("custom-framing"===l&&c){var E=(null==f?void 0:f.unit)||"cm",V=function(e){return"cm"===E?Math.round(e/10*10)/10:"in"===E?Math.round(e/25.4*10)/10:Math.round(e)},z=Math.min(Y,M),X=Math.max(Y,M),P=p||(z<=36&&X<=48?"close":"full"),Z="close"===P&&!!u,G=Z?260:400,F=Math.min(T,1.5*N),B=F/1.5,R=F/G,Q=Y*R,H=M*R,K=.83*B-145*R,J=F*(Z?.24:.22),q=F*(Z?.76:.78),_=.07*B,$=.7*B,ee=Math.min(1,(q-J)/Math.max(1,Q),($-_)/Math.max(1,H)),te=Q*ee,ne=H*ee,re=Math.max(J,Math.min(q-te,F/2-te/2)),oe=Math.max(_,Math.min($-ne,K-ne/2));return(0,Zt.jsx)("div",{ref:x,className:"tpe-h-full tpe-w-full tpe-bg-[#e9e4dc] tpe-flex tpe-items-center tpe-justify-center tpe-overflow-hidden tpe-select-none",children:(0,Zt.jsxs)("div",{className:"tpe-relative tpe-overflow-hidden tpe-shadow-[0_24px_70px_rgba(36,30,22,0.16)]",style:{width:F,height:B},children:[(0,Zt.jsx)("img",{src:c,alt:"","aria-hidden":"true",className:"tpe-absolute tpe-inset-0 tpe-h-full tpe-w-full tpe-object-fill tpe-transition-opacity tpe-duration-300 ".concat(Z?"tpe-opacity-0":"tpe-opacity-100")}),u&&(0,Zt.jsx)("img",{src:u,alt:"","aria-hidden":"true",className:"tpe-absolute tpe-inset-0 tpe-h-full tpe-w-full tpe-object-fill tpe-transition-opacity tpe-duration-300 ".concat(Z?"tpe-opacity-100":"tpe-opacity-0")}),s&&(0,Zt.jsx)("img",{src:s,alt:"Your custom frame shown to scale in a room",className:"tpe-absolute tpe-object-fill tpe-transition-all tpe-duration-300",style:{left:re,top:oe,width:te,height:ne,filter:"drop-shadow(5px 10px 9px rgba(45,34,23,0.24))"}}),(0,Zt.jsxs)("div",{className:"tpe-absolute tpe-bottom-4 tpe-right-4 tpe-rounded-lg tpe-border tpe-border-white/60 tpe-bg-white/90 tpe-px-3 tpe-py-2 tpe-text-right tpe-backdrop-blur-sm",children:[(0,Zt.jsx)("span",{className:"tpe-block tpe-text-[9px] tpe-font-semibold tpe-text-gray-500",children:"Overall framed size"}),(0,Zt.jsxs)("span",{className:"tpe-block tpe-text-xs tpe-font-bold tpe-text-gray-800",children:[V(f.widthMm)," × ",V(f.heightMm)," ",E]}),(null==f?void 0:f.artworkWidthMm)&&(null==f?void 0:f.artworkHeightMm)&&(0,Zt.jsxs)("span",{className:"tpe-block tpe-text-[9px] tpe-text-gray-500",children:["Fits ",V(f.artworkWidthMm)," × ",V(f.artworkHeightMm)," ",E," artwork"]}),ee<.999&&(0,Zt.jsx)("span",{className:"tpe-block tpe-text-[9px] tpe-text-gray-500",children:"Fitted to view"})]}),(0,Zt.jsxs)("div",{className:"tpe-absolute tpe-left-4 tpe-top-4 tpe-flex tpe-items-center tpe-gap-2",children:[(0,Zt.jsx)("div",{className:"tpe-rounded-full tpe-border tpe-border-white/60 tpe-bg-white/90 tpe-px-3 tpe-py-1.5 tpe-text-[10px] tpe-font-bold tpe-text-gray-600 tpe-backdrop-blur-sm",children:"Shown to scale"}),u&&d&&(0,Zt.jsx)("div",{className:"tpe-flex tpe-rounded-full tpe-border tpe-border-white/60 tpe-bg-white/90 tpe-p-0.5 tpe-backdrop-blur-sm","aria-label":"Room view",children:["close","full"].map(function(e){return(0,Zt.jsx)("button",{onClick:function(){return d(e)},"aria-pressed":P===e,className:"tpe-min-h-9 tpe-rounded-full tpe-px-3 tpe-py-1 tpe-text-[10px] tpe-font-semibold tpe-transition-colors ".concat(P===e?"tpe-bg-gray-900 tpe-text-white":"tpe-text-gray-600 hover:tpe-text-gray-950"),children:"close"===e?"Close view":"Full room"},e)})})]})]})})}return(0,Zt.jsxs)("div",{ref:x,className:"tpe-w-full tpe-h-full tpe-relative tpe-overflow-hidden tpe-select-none",style:{background:"linear-gradient(#efece6, #e7e3dc)"},children:[(0,Zt.jsx)("div",{className:"tpe-absolute tpe-inset-x-0 tpe-top-0",style:{height:D,background:"linear-gradient(#f4f1ec,#eae5dd)"}}),(0,Zt.jsx)("div",{className:"tpe-absolute tpe-inset-x-0",style:{to
2p:D-8,height:8,background:"#d8d2c6"}}),(0,Zt.jsx)("div",{className:"tpe-absolute tpe-inset-x-0 tpe-bottom-0",style:{height:I,background:"linear-gradient(#cdbfa8,#c2b39a)"}}),(0,Zt.jsx)("div",{className:"tpe-absolute tpe-transition-all tpe-duration-300",style:{left:"50%",transform:"translateX(-50%)",top:Math.max(8,A),width:U,height:k,boxShadow:"0 10px 25px rgba(0,0,0,0.25)",background:"#fff"},children:(0,Zt.jsx)("div",{className:"tpe-w-full tpe-h-full tpe-pointer-events-none",children:s?(0,Zt.jsx)("img",{src:s,alt:"Framed preview",width:Math.round(U),height:Math.round(k),className:"tpe-w-full tpe-h-full tpe-object-contain tpe-bg-white"}):(0,Zt.jsx)(Ja,{size:n,frame:r,layout:o,design:a,images:i,onSlotClick:function(){},activeSlotId:null,onTextOverflow:function(){},sizingMode:"fill",productType:l})})}),(0,Zt.jsxs)("svg",{className:"tpe-absolute",style:{left:"8%",top:D-L,width:C,height:L},viewBox:"0 0 200 85",preserveAspectRatio:"none",fill:"#b9ab92",children:[(0,Zt.jsx)("path",{d:"M6,40 Q6,28 18,28 L182,28 Q194,28 194,40 L194,62 Q194,66 190,66 L186,66 L186,78 L172,78 L172,66 L28,66 L28,78 L14,78 L14,66 L10,66 Q6,66 6,62 Z"}),(0,Zt.jsx)("rect",{x:"14",y:"36",width:"172",height:"22",rx:"6",fill:"#cabda5",opacity:"0.5"})]}),(0,Zt.jsx)("span",{className:"tpe-absolute tpe-text-[10px] tpe-text-gray-500 tpe-bg-white/70 tpe-px-1.5 tpe-py-0.5 tpe-rounded",style:{left:"8%",top:D-L-16},children:"3-seat sofa (2m)"}),h&&(0,Zt.jsx)("svg",{className:"tpe-absolute tpe-opacity-70",style:{right:"8%",top:D-O,height:O},viewBox:"0 0 100 300",preserveAspectRatio:"xMidYMax meet",fill:"#7a7163",children:(0,Zt.jsx)("path",{d:"M50,10 C58,10 65,17 65,25 C65,33 58,40 50,40 C42,40 35,33 35,25 C35,17 42,10 50,10 Z M30,45 L70,45 L85,110 L75,115 L65,80 L65,160 L75,290 L55,290 L50,180 L45,290 L25,290 L35,160 L35,80 L25,115 L15,110 L30,45 Z"})}),(0,Zt.jsxs)("div",{className:"tpe-absolute tpe-text-center tpe-bg-white/85 tpe-px-3 tpe-py-1.5 tpe-rounded-lg tpe-shadow-sm",style:{left:"50%",transform:"translateX(-50%)",top:Math.max(8,A)+k+8},children:[(0,Zt.jsxs)("span",{className:"tpe-text-sm tpe-font-bold tpe-text-gray-800 tpe-whitespace-nowrap",children:[Y.toFixed(0)," × ",M.toFixed(0)," cm"]}),(0,Zt.jsxs)("span",{className:"tpe-text-[11px] tpe-text-gray-400 tpe-block",children:["(",(Y*w).toFixed(1),'" × ',(M*w).toFixed(1),'")']})]}),(0,Zt.jsx)("button",{onClick:function(){return g(function(e){return!e})},className:"tpe-absolute tpe-top-3 tpe-right-3 tpe-bg-white/90 tpe-px-3 tpe-py-1 tpe-rounded-full tpe-text-xs tpe-font-medium tpe-shadow tpe-border tpe-border-gray-200",children:h?"Hide person":"Show person"}),(0,Zt.jsx)("div",{className:"tpe-absolute tpe-top-3 tpe-left-1/2 tpe--translate-x-1/2 tpe-bg-white/90 tpe-px-4 tpe-py-1 tpe-rounded-full tpe-text-xs tpe-text-gray-600 tpe-shadow tpe-border tpe-border-gray-200",children:"In-room scale"})]})};function Nu(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return Wu(c,"_invoke",function(n,r,o){var a,l,s,c=0,u=o||[],p=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,d.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!p&&c&&!o&&t<u.length;t++){var o,a=u[t],f=d.p,m=a[2];n>3?(o=m===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,d.v=r,d.n=a[1]):f<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,d.n=m,l=0))}if(o||n>1)return i;throw p=!0,r}return function(o,u,m){if(c>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!p;){a||(l?l<3?(l>1&&(d.n=-1),f(l,s)):d.n=s:d.v=s);try{if(c=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(p=d.n<0)?s:n.call(r,d))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:p}}}(n,o,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Wu(t={},r,function(){return this}),t),p=c.prototype=l.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Wu(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=c,Wu(p,"constructor",c),Wu(c,"constructor",s),s.displayName="GeneratorFunction",Wu(c,o,"GeneratorFunction"),Wu(p),Wu(p,o,"Generator"),Wu(p,r,function(){return this}),Wu(p,"toString",function(){return"[object Generator]"}),(Nu=function(){return{w:a,m:d}})()}function Wu(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Wu=function(e,t,n,r){function a(t,n){Wu(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Wu(e,t,n,r)}function Iu(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Uu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ku=null;const Du=function(t){var n,r,o,a=t.isOpen,i=t.onClose,l=t.config,s=t.starCount,c=(r=(0,e.useState)([]),o=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(r,o)||function(e,t){if(e){if("string"==typeof e)return Uu(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Uu(e,t):void 0}}(r,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=c[0],p=c[1],d=(0,e.useMemo)(function(){if(!a||!l)return[];var e=window.Celestial;if(!e)return[];try{e.date(new Date(l.date)),e.apply({projection:"stereographic",center:[l.lat,l.lng]});var t=["mer","ven","mar","jup","sat","ura","nep"].map(function(t){return e.getPlanet(t)}).filter(function(t){return t&&t.ephemeris&&t.ephemeris.pos&&e.clip(t.ephemeris.pos)}).map(function(e){return e.name});return t}catch(e){return console.warn("Failed to calculate planets",e),[]}},[a,l.date,l.lat,l.lng]);if((0,e.useEffect)(function(){if(a&&l&&l.showConstellations){var e=window.Celestial;if(e){var t=function(){var t,n=(t=Nu().m(function t(){var n,r,o,a,i,s,c;return Nu().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,ku||(ku=fetch("https://cdn.jsdelivr.net/gh/tman16/tpe-star-data/data/constellations.json").then(function(e){return e.json()})),t.n=1,ku;case 1:r=t.v,e.date(new Date(l.date)),e.apply({projection:"stereographic",center:[l.lat,l.lng]}),o=e.projection,a=e.getData(r,o),i=(null==a||null===(n=a.features)||void 0===n?void 0:n.filter(function(t){var n;return e.clip(null==t||null===(n=t.geometry)||void 0===n?void 0:n.coordinates,.9)}))||[],s=i.map(function(e){return e.properties.name||e.id}),p(Array.from(new Set(s)).sort()),t.n=3;break;case 2:t.p=2,c=t.v,console.warn("Failed to calculate constellations",c);case 3:return t.a(2)}},t,null,[[0,2]])}),function(){var e=this,n=arguments;return new Promise(function(r,o){var a=t.apply(e,n);function i(e){Iu(a,r,o,i,l,"next",e)}function l(e){Iu(a,r,o,i,l,"throw",e)}i(void 0)})});return function(){return n.apply(this,arguments)}}();t()}}else p([])},[a,l.date,l.lat,l.lng,l.showConstellations]),!a||!l)return null;var f=Pt(Date.parse(l.date),null!==(n=l.tzOffset)&&void 0!==n?n:0),m=!isNaN(f.getTime()),h=m?new Intl.DateTimeFormat("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric",timeZone:"UTC"}).format(f):"Invalid Date",g=m?new Intl.DateTimeFormat("en-US",{hour:"numeric",minute:"numeric",hour12:!0,timeZone:"UTC"}).format(f):"",x=l.showPlanets?d:[];return(0,y.createPortal)((0,Zt.jsxs)("div",{className:"tpe-font-Jost tpe-fixed tpe-inset-0 tpe-z-[9999] tpe-flex tpe-items-center tpe-justify-center tpe-p-4 tpe-animate-fade-in",children:[(0,Zt.jsx)("div",{className:"tpe-absolute tpe-inset-0 tpe-bg-black/60 tpe-backdrop-blur-sm tpe-transition-opacity",onClick:i}),(0,Zt.jsxs)("div",{className:"tpe-relative tpe-bg-white tpe-w-full tpe-max-w-md tpe-rounded-2xl tpe-shadow-2xl tpe-overflow-hidden tpe-flex tpe-flex-col",children:[(0,Zt.jsxs)("div",{className:"tpe-p-5 tpe-border-b tpe-border-gray-100 tpe-flex tpe-justify-between tpe-items-center tpe-bg-gray-50/50 tpe-z-10",children:[(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-gap-2",children:[(0,Zt.jsx)("div",{className:"tpe-p-2 tpe-bg-gray-100 tpe-text-gray-700 tpe-rounded-lg",children:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,Zt.jsx)("path",{d:"m9 12 2 2 4-4"})]})}),(0,Zt.jsx)("h3",{className:"tpe-text-lg tpe-font-bold tpe-text-gray-900",children:"Map Overview"})]}),(0,Zt.jsx)("button",{onClick:i,className:"tpe-p-2 tpe-bg-white hover:tpe-bg-gray-100 tpe-border tpe-border-gray-200 tpe-rounded-full tpe-transition-colors tpe-text-gray-500",children:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,Zt.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),(0,Zt.jsxs)("div",{className:"tpe-p-6 tpe-space-y-6 tpe-overflow-y-auto tpe-max-h-[70vh]",children:[(0,Zt.jsxs)("div",{className:"tpe-flex tpe-gap-4",children:[(0,Zt.jsx)("div",{className:"tpe-shrink-0 tpe-w-10 tpe-h-10 tpe-rounded-full tpe-bg-gray-100 tpe-flex tpe-items-center tpe-justify-center tpe-text-gray-700",children:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"}),(0,Zt.jsx)("line",{x1:"16",y1:"2",x2:"16",y2:"6"}),(0,Zt.jsx)("line",{x1:"8",y1:"2",x2:"8",y2:"6"}),(0,Zt.jsx)("line",{x1:"3",y1:"10",x2:"21",y2:"10"})]})}),(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("h4",{className:"tpe-text-xs tpe-font-bold tpe-text-gray-500 tpe-uppercase tpe-tracking-wide",children:"Date & Time"}),(0,Zt.jsx)("p",{className:"tpe-text-gray-900 tpe-font-medium",children:h}),(0,Zt.jsx)("p",{className:"tpe-text-gray-500 tpe-text-sm",children:g})]})]}),(0,Zt.jsxs)("div",{className:"tpe-flex tpe-gap-4",children:[(0,Zt.jsx)("div",{className:"tpe-shrink-0 tpe-w-10 tpe-h-10 tpe-rounded-full tpe-bg-gray-100 tpe-flex tpe-items-center tpe-justify-center tpe-text-gray-700",children:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("path",{d:"M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"}),(0,Zt.jsx)("circle",{cx:"12",cy:"10",r:"3"})]})}),(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("h4",{className:"tpe-text-xs tpe-font-bold tpe-text-gray-500 tpe-uppercase tpe-tracking-wide",children:"Location"}),(0,Zt.jsx)("p",{className:"tpe-text-gray-900 tpe-font-medium",children:l.locationLabel}),(0,Zt.jsxs)("p",{className:"tpe-text-gray-500 tpe-text-xs tpe-font-JetBrains_Mono tpe-mt-1",children:[l.lat.toFixed(4),"° N, ",l.lng.toFixed(4),"° E"]})]})]}),(0,Zt.jsx)("div",{className:"tpe-border-t tpe-border-gray-100 tpe-my-2"}),(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("h4",{className:"tpe-text-xs tpe-font-bold tpe-text-gray-500 tpe-uppercase tpe-tracking-wide tpe-mb-3",children:"Celestial Objects"}),(0,Zt.jsxs)("div",{className:"tpe-grid tpe-grid-cols-1 tpe-gap-3",children:[(0,Zt.jsxs)("div",{className:"tpe-bg-gray-50 tpe-p-3 tpe-rounded-xl tpe-border tpe-border-gray-100 tpe-flex tpe-justify-between tpe-items-center",children:[(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-gap-2",children:[(0,Zt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"tpe-text-amber-500",children:(0,Zt.jsx)("polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"})}),(0,Zt.jsx)("span",{className:"tpe-text-sm tpe-font-medium tpe-text-gray-700",children:"Total Stars"})]}),(0,Zt.jsx)("span",{className:"tpe-text-sm tpe-font-bold tpe-text-gray-900",children:s.toLocaleStr
2ing()})]}),(0,Zt.jsxs)("div",{className:"tpe-bg-gray-50 tpe-p-3 tpe-rounded-xl tpe-border tpe-border-gray-100",children:[(0,Zt.jsxs)("div",{className:"tpe-flex tpe-justify-between tpe-items-center tpe-mb-2",children:[(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-gap-2",children:[(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"tpe-text-purple-500",children:[(0,Zt.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,Zt.jsx)("path",{d:"M2 12h20"})]}),(0,Zt.jsx)("span",{className:"tpe-text-sm tpe-font-medium tpe-text-gray-700",children:"Planets"})]}),(0,Zt.jsx)("span",{className:"tpe-text-xs tpe-font-bold tpe-px-2 tpe-py-0.5 tpe-rounded-full ".concat(l.showPlanets?"tpe-bg-green-100 tpe-text-green-700":"tpe-bg-gray-200 tpe-text-gray-600"),children:l.showPlanets?"Visible":"Hidden"})]}),l.showPlanets&&(0,Zt.jsx)("p",{className:"tpe-text-xs tpe-text-gray-500 tpe-leading-relaxed tpe-pl-6",children:x.length>0?x.join(", "):"None visible above horizon"})]}),(0,Zt.jsxs)("div",{className:"tpe-bg-gray-50 tpe-p-3 tpe-rounded-xl tpe-border tpe-border-gray-100",children:[(0,Zt.jsxs)("div",{className:"tpe-flex tpe-justify-between tpe-items-center tpe-mb-2",children:[(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-gap-2",children:[(0,Zt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"tpe-text-gray-900",children:(0,Zt.jsx)("path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"})}),(0,Zt.jsx)("span",{className:"tpe-text-sm tpe-font-medium tpe-text-gray-700",children:"Constellations"})]}),(0,Zt.jsx)("span",{className:"tpe-text-xs tpe-font-bold tpe-px-2 tpe-py-0.5 tpe-rounded-full ".concat(l.showConstellations?"tpe-bg-green-100 tpe-text-green-700":"tpe-bg-gray-200 tpe-text-gray-600"),children:l.showConstellations?"Visible":"Hidden"})]}),l.showConstellations&&(0,Zt.jsx)("p",{className:"tpe-text-xs tpe-text-gray-500 tpe-leading-relaxed tpe-pl-6",children:u.length>0?u.join(", "):"None visible in map window"})]}),(0,Zt.jsxs)("div",{className:"tpe-bg-gray-50 tpe-p-3 tpe-rounded-xl tpe-border tpe-border-gray-100 tpe-flex tpe-justify-between tpe-items-center",children:[(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-gap-2",children:[(0,Zt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"tpe-text-gray-400",children:(0,Zt.jsx)("path",{d:"M17.5 19c0-1.7-1.3-3-3-3c-1.7 0-3-1.3-3-3c0-1.7-1.3-3-3-3c-1.7 0-3-1.3-3-3"})}),(0,Zt.jsx)("span",{className:"tpe-text-sm tpe-font-medium tpe-text-gray-700",children:"Milky Way"})]}),(0,Zt.jsx)("span",{className:"tpe-text-xs tpe-font-bold tpe-px-2 tpe-py-0.5 tpe-rounded-full ".concat(l.showMilkyWay?"tpe-bg-green-100 tpe-text-green-700":"tpe-bg-gray-200 tpe-text-gray-600"),children:l.showMilkyWay?"Visible":"Hidden"})]})]})]})]})]})]}),document.body)};function Au(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return Cu(c,"_invoke",function(n,r,o){var a,l,s,c=0,u=o||[],p=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,d.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!p&&c&&!o&&t<u.length;t++){var o,a=u[t],f=d.p,m=a[2];n>3?(o=m===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,d.v=r,d.n=a[1]):f<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,d.n=m,l=0))}if(o||n>1)return i;throw p=!0,r}return function(o,u,m){if(c>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!p;){a||(l?l<3?(l>1&&(d.n=-1),f(l,s)):d.n=s:d.v=s);try{if(c=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(p=d.n<0)?s:n.call(r,d))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:p}}}(n,o,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Cu(t={},r,function(){return this}),t),p=c.prototype=l.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Cu(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=c,Cu(p,"constructor",c),Cu(c,"constructor",s),s.displayName="GeneratorFunction",Cu(c,o,"GeneratorFunction"),Cu(p),Cu(p,o,"Generator"),Cu(p,r,function(){return this}),Cu(p,"toString",function(){return"[object Generator]"}),(Au=function(){return{w:a,m:d}})()}function Cu(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Cu=function(e,t,n,r){function a(t,n){Cu(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Cu(e,t,n,r)}function Lu(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Ou(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Eu(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Eu(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Eu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Vu=function(t){var n=t.isOpen,r=t.onClose,o=t.config,a=Ou((0,e.useState)(!1),2),i=a[0],l=a[1],s=Ou((0,e.useState)(null),2),c=s[0],u=s[1],p=Ou((0,e.useState)(null),2),d=p[0],f=p[1];if((0,e.useEffect)(function(){if(n&&o){var e=function(){var e,t=(e=Au().m(function e(){var t,n,r,a,i,s;return Au().w(function(e){for(;;)switch(e.p=e.n){case 0:return l(!0),f(null),u(null),e.p=1,e.n=2,Ct(o.lat,o.lng,o.styleId);case 2:if(t=e.v){e.n=3;break}return f("Could not retrieve historical details for this location."),e.a(2);case 3:if(t.sheetCount){e.n=4;break}return u({yearRange:"Historical Data",sheetCount:"Standard Coverage"}),e.a(2);case 4:n=t.minYear,r=t.maxYear,a=t.sheetCount,i=void 0===n?"Date Unknown":n===r?"Map data from ".concat(n):"Map data ranges from ".concat(n," to ").concat(r),u({yearRange:i,sheetCount:"Composed of ".concat(a," aligned OS map sheet").concat(1===a?"":"s")}),e.n=6;break;case 5:e.p=5,s=e.v,console.warn("Failed to load map metadata",s),f("Could not retrieve historical details for this location.");case 6:return e.p=6,l(!1),e.f(6);case 7:return e.a(2)}},e,null,[[1,5,6,7]])}),function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){Lu(a,r,o,i,l,"next",e)}function l(e){Lu(a,r,o,i,l,"throw",e)}i(void 0)})});return function(){return t.apply(this,arguments)}}();e()}},[n,o]),!n||!o)return null;var m=De.find(function(e){return e.id===o.styleId})||De[0];return(0,y.createPortal)((0,Zt.jsxs)("div",{className:"tpe-font-Jost tpe-fixed tpe-inset-0 tpe-z-[9999] tpe-flex tpe-items-center tpe-justify-center tpe-p-4 tpe-animate-fade-in",children:[(0,Zt.jsx)("div",{className:"tpe-absolute tpe-inset-0 tpe-bg-black/60 tpe-backdrop-blur-sm tpe-transition-opacity",onClick:r}),(0,Zt.jsxs)("div",{className:"tpe-relative tpe-bg-white tpe-w-full tpe-max-w-md tpe-rounded-2xl tpe-shadow-2xl tpe-overflow-hidden tpe-flex tpe-flex-col",children:[(0,Zt.jsxs)("div",{className:"tpe-p-5 tpe-border-b tpe-border-gray-100 tpe-flex tpe-justify-between tpe-items-center tpe-bg-amber-50/50 tpe-z-10",children:[(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-gap-2",children:[(0,Zt.jsx)("div",{className:"tpe-p-2 tpe-bg-amber-100 tpe-text-amber-700 tpe-rounded-lg",children:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("polygon",{points:"1 6 1 22 8 18 16 22 23 18 23 2 16 6 8 2 1 6"}),(0,Zt.jsx)("line",{x1:"8",y1:"2",x2:"8",y2:"18"}),(0,Zt.jsx)("line",{x1:"16",y1:"6",x2:"16",y2:"22"})]})}),(0,Zt.jsx)("h3",{className:"tpe-text-lg tpe-font-bold tpe-text-gray-900",children:"Historical Map Info"})]}),(0,Zt.jsx)("button",{onClick:r,className:"tpe-p-2 tpe-bg-white hover:tpe-bg-gray-100 tpe-border tpe-border-gray-200 tpe-rounded-full tpe-transition-colors tpe-text-gray-500",children:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,Zt.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),(0,Zt.jsxs)("div",{className:"tpe-p-6 tpe-space-y-6 tpe-overflow-y-auto tpe-max-h-[70vh]",children:[(0,Zt.jsxs)("div",{className:"tpe-flex tpe-gap-4",children:[(0,Zt.jsx)("div",{className:"tpe-shrink-0 tpe-w-10 tpe-h-10 tpe-rounded-full tpe-bg-gray-100 tpe-flex tpe-items-center tpe-justify-center tpe-text-gray-600",children:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("path",{d:"M2 12h20"}),(0,Zt.jsx)("path",{d:"M2 12l5 5"}),(0,Zt.jsx)("path",{d:"M2 12l5-5"})]})}),(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("h4",{className:"tpe-text-xs tpe-font-bold tpe-text-gray-500 tpe-uppercase tpe-tracking-wide",children:"Edition"}),(0,Zt.jsx)("p",{className:"tpe-text-gray-900 tpe-font-medium",children:Ae(m)}),(0,Zt.jsx)("p",{className:"tpe-text-gray-500 tpe-text-xs tpe-mt-1",children:m.caption})]})]}),(0,Zt.jsxs)("div",{className:"tpe-flex tpe-gap-4",children:[(0,Zt.jsx)("div",{className:"tpe-shrink-0 tpe-w-10 tpe-h-10 tpe-rounded-full tpe-bg-gray-100 tpe-flex tpe-items-center tpe-justify-center tpe-text-gray-700",children:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("path",{d:"M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"}),(0,Zt.jsx)("circle",{cx:"12",cy:"10",r:"3"})]})}),(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("h4",{className:"tpe-text-xs tpe-font-bold tpe-text-gray-500 tpe-uppercase tpe-tracking-wide",children:"Location"}),(0,Zt.jsx)("p",{className:"tpe-text-gray-900 tpe-font-medium",children:o.locationLabel}),(0,Zt.jsxs)("p",{className:"tpe-text-gray-500 tpe-text-xs tpe-font-JetBrains_Mono tpe-mt-1",children:[o.lat.toFixed(4),"° N, ",o.lng.toFixed(4),"° E"]})]})]}),(0,Zt.jsx)("div",{className:"tpe-border-t tpe-border-gray-100 tpe-my-2"}),(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("h4",{className:"tpe-text-xs tpe-font-bold tpe-text-gray-500 tpe-uppercase tpe-tracking-wide tpe-mb-3",children:"Archive Details"}),i?(0,Zt.jsxs)("div",{className:"tpe-bg-gray-50 tpe-p-6 tpe-rounded-xl tpe-border tpe-border-gray-100 tpe-flex tpe-flex-col tpe-items-center tpe-justify-center tpe-text-gray-400 tpe-gap-2",children:[(0,Zt.jsxs)("svg",{className:"tpe-animate-spin tpe-h-6 tpe-w-6 tpe-text-amber-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,Zt.jsx)("circle",{className:"tpe-opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,Zt.jsx)("path",{className:"tpe-opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),(0,Zt.jsx)("span",{className:"tpe-text-xs tpe-font-medium",children:"Retrieving records..."})]}):d?(0,Zt.jsx)("div",{className:"tpe-bg-red-50 tpe-p-4 tpe-rounded-xl tpe-border tpe-border-red-100 tpe-text-red-600 tpe-text-sm",children:d}):c?(0,Zt.jsxs)("div",{className:"tpe-grid tpe-grid-cols-1 tpe-gap-3",children:[(0,Zt.jsxs)("div",{className:"tpe-bg-gray-50 tpe-p-3 tpe-rounded-xl tpe-border tpe-border-gray-100 tpe-flex tpe-justify-between tpe-items-center",children:[(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-gap-2",children:[(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"tpe-text-blue-500",children:[(0,Zt.jsx)("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"}),(0,Zt.jsx)("line",{x1:"16",y1:"2",x2:"16",y2:"6"}),(0,Zt.jsx)("line",{x1:"8",y1:"2",x2:"8",y2:"6"}),(0,Zt.jsx)("line",{x1:"3",y1:"10",x2:"21",y2:"10"})]}),(0,Zt.jsx)("span",{className:"tpe-text-sm tpe-font-medium tpe-text-gray-700",children:"Publication Year"})]}),(0,Zt.jsx)("span",{className:"tpe-text-sm tpe-font-bold tpe-text-gray-900 tpe-text-right tpe-max-w-[50%]",children:c.yearRange})]}),(0,Zt.jsxs)("div",{className:"tpe-bg-gray-50 tpe-p-3 tpe-rounded-xl tpe-border tpe-border-gray-100",children:[(0,Zt.jsx)("div",{className:"tpe-flex tpe-justify-between tpe-items-center tpe-mb-1",children:(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-gap-2",children:[(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"tpe-text-purple-500",children:[(0,Zt.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"}),(0,Zt.jsx)("line",{x1:"3",y1:"9",x2:"21",y2:"9"}),(0,Zt.jsx)("line",{x1:"9",y1:"21",x2:"9",y2:"9"})]}),(0,Zt.jsx)("span",{className:"tpe-text-sm tpe-font-medium tpe-text-gray-700",children:"Source Sheets"})]})}),(0,Zt.jsx)("p",{className:"tpe-text-xs tpe-text-gray-500 tpe-leading-relaxed tpe-pl-6",children:c.sheetCount})]}),(0,Zt.jsx)("div",{className:"tpe-mt-2 tpe-text-[10px] tpe-text-gray-400 tpe-text-center",children:"Source: National Library of Scotland"})]}):null]})]})]})]}),document.body)};function zu(e){return function(e){if(Array.isArray(e))return Zu(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Pu(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||Pu(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pu(e,t){if(e){if("string"==typeof e)return Zu(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zu(e,t):void 0}}function Zu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Gu(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return Fu(c,"_invoke",function(n,r,o){var a,l,s,c=0,u=o||[],p=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,d.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!p&&c&&!o&&t<u.length;t++){var o,a=u[t],f=d.p,m=a[2];n>3?(o=m===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,d.v=r,d.n=a[1]):f<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,d.n=m,l=0))}if(o||n>1)return i;throw p=!0,r}return function(o,u,m){if(c>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!p;){a||(l?l<3?(l>1&&(d.n=-1),f(l,s)):d.n=s:d.v=s);try{if(c=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(p=d.n<0)?s:n.call(r,d))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:p}}}(n,o,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Fu(t={},r,function(){return this}),t),p=c.prototype=l.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Fu(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=c,Fu(p,"constructor",c),Fu(c,"constructor",s),s.displayName="GeneratorFunction",Fu(c,o,"GeneratorFunction"),Fu(p),Fu(p,o,"Generator"),Fu(p,r,function(){return this}),Fu(p,"toString",function(){return"[object Generator]"}),(Gu=function(){return{w:a,m:d}})()}function Fu(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Fu=function(e,t,n,r){function a(t,n){Fu(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Fu(e,t,n,r)}function Bu(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Ru(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){Bu(a,r,o,i,l,"next",e)}function l(e){Bu(a,r,o,i,l,"throw",e)}i(void 0)})}}var Qu=function(){var e=Ru(Gu().m(function e(t){var n,r;return Gu().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,fetch("".concat("https://europe-west2-pfc-uk-generatedesigns.cloudfunctions.net/orders-database/revisions","?rootId=").concat(encodeURIComponent(t)));case 1:if((n=e.v).ok){e.n=2;break}return e.a(2,null);case 2:return e.n=3,n.json();case 3:if(r=e.v,Array.isArray(r)){e.n=4;break}return e.a(2,null);case 4:return e.a(2,r);case 5:return e.p=5,e.v,e.a(2,null)}},e,null,[[0,5]])}));return function(t){return e.apply(this,arguments)}}(),Hu=function(e){if(!e)return"";try{return new Date(e).toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}catch(t){return e}};const Ku=function(t){var n=t.isOpen,r=t.onClose,o=t.onLoad,a=Xu((0,e.useState)(""),2),i=a[0],l=a[1],s=Xu((0,e.useState)(null),2),c=s[0],u=s[1],p=Xu((0,e.useState)(!1),2),d=p[0],f=p[1],m=Xu((0,e.useState)(null),2),h=m[0],g=m[1];if(!n)return null;var x=function(){l(""),u(null),g(null),r()},v=function(){var e=Ru(Gu().m(function e(t){return Gu().w(function(e){for(;;)switch(e.p=e.n){case 0:return f(!0),u(null),e.p=1,e.n=2,o(t);case 2:e.v?x():u("Session not found. Please check the ID and try again."),e.n=4;break;case 3:e.p=3,e.v,u("An error occurred while loading. Please try again.");case 4:return e.p=4,f(!1),e.f(4);case 5:return e.a(2)}},e,null,[[1,3,4,5]])}));return function(t){return e.apply(this,arguments)}}(),b=function(){var e=Ru(Gu().m(function e(t){var n,r,o;return Gu().w(function(e){for(;;)switch(e.n){case 0:if(t.preventDefault(),n=i.trim()){e.n=1;break}return u("Please enter a Session ID"),e.a(2);case 1:if(!(n.length<5)){e.n=2;break}return u("Session ID seems too short"),e.a(2);case 2:return u(null),f(!0),e.n=3,Qu(n);case 3:if(r=e.v,f(!1),!(r&&r.length>1)){e.n=4;break}return o=zu(r).sort(function(e,t){var n=e.timestamp?Date.parse(e.timestamp):0;return(t.timestamp?Date.parse(t.timestamp):0)-n}),g(o),e.a(2);case 4:return e.n=5,v(n);case 5:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}();return(0,y.createPortal)((0,Zt.jsxs)("div",{className:"tpe-font-Jost tpe-fixed tpe-inset-0 tpe-z-[9999] tpe-flex tpe-items-center tpe-justify-center tpe-p-4 tpe-animate-fade-in",children:[(0,Zt.jsx)("div",{className:"tpe-absolute tpe-inset-0 tpe-bg-black/60 tpe-backdrop-blur-sm tpe-transition-opacity",onClick:x}),(0,Zt.jsxs)("div",{className:"tpe-relative tpe-bg-white tpe-w-full tpe-max-w-md tpe-rounded-2xl tpe-shadow-2xl tpe-overflow-hidden tpe-flex tpe-flex-col tpe-max-h-[90vh]",children:[(0,Zt.jsxs)("div",{className:"tpe-p-5 tpe-border-b tpe-border-gray-100 tpe-flex tpe-justify-between tpe-items-center tpe-bg-white tpe-z-10",children:[(0,Zt.jsx)("h3",{className:"tpe-text-lg tpe-font-bold tpe-text-gray-900",children:h?"Choose a Version":"Load Previous Design"}),(0,Zt.jsx)("button",{onClick:x,className:"tpe-p-2 tpe-bg-gray-100 hover:tpe-bg-gray-200 tpe-rounded-full tpe-transition-colors tpe-text-gray-600",children:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,Zt.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),!h&&(0,Zt.jsxs)("div",{className:"tpe-p-6",children:[(0,Zt.jsx)("p",{className:"tpe-text-sm tpe-text-gray-600 tpe-mb-4",children:"Enter your Session ID below to restore a previously saved design configuration."}),(0,Zt.jsxs)("form",{onSubmit:b,className:"tpe-space-y-4",children:[(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:"tpe-block tpe-text-xs tpe-font-bold tpe-text-gray-500 tpe-uppercase tpe-tracking-wide tpe-mb-1",children:"Session ID"}),(0,Zt.jsx)("input",{type:"text",value:i,onChange:function(e){l(e.target.value),u(null)},placeholder:"e.g. 550e8400-e29b...",className:"tpe-w-full tpe-p-3 tpe-border tpe-rounded-xl tpe-text-[16
2px] tpe-shadow-sm tpe-outline-none tpe-transition-all tpe-font-mono ".concat(c?"tpe-border-red-300 focus:tpe-ring-red-200 tpe-bg-red-50":"tpe-border-gray-200 focus:tpe-ring-2 focus:tpe-ring-blue-500 focus:tpe-border-blue-500 tpe-bg-white"),autoFocus:!0}),c&&(0,Zt.jsxs)("p",{className:"tpe-text-xs tpe-text-red-500 tpe-mt-1.5 tpe-font-medium tpe-flex tpe-items-center tpe-gap-1",children:[(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,Zt.jsx)("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),(0,Zt.jsx)("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]}),c]})]}),(0,Zt.jsx)("div",{className:"tpe-pt-2",children:(0,Zt.jsx)("button",{type:"submit",disabled:d,className:"tpe-w-full tpe-py-3 tpe-rounded-xl tpe-font-bold tpe-text-white tpe-shadow-lg tpe-transition-all tpe-flex tpe-items-center tpe-justify-center tpe-gap-2 ".concat(d?"tpe-bg-gray-800 tpe-opacity-80 tpe-cursor-wait":"tpe-bg-gray-900 hover:tpe-bg-gray-800 hover:tpe-shadow-xl"),children:d?(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsxs)("svg",{className:"tpe-animate-spin tpe-h-4 tpe-w-4 tpe-text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,Zt.jsx)("circle",{className:"tpe-opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,Zt.jsx)("path",{className:"tpe-opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Loading..."]}):"Load Design"})})]})]}),h&&(0,Zt.jsxs)("div",{className:"tpe-p-6 tpe-overflow-y-auto tpe-space-y-3",children:[(0,Zt.jsxs)("p",{className:"tpe-text-sm tpe-text-gray-600",children:[h.length," versions found for this design. Pick which one to load."]}),c&&(0,Zt.jsx)("p",{className:"tpe-text-xs tpe-text-red-500 tpe-font-medium",children:c}),(0,Zt.jsx)("div",{className:"tpe-space-y-2",children:h.map(function(e,t){var n=0===t,r=!!e.cartSubmittedAt;return(0,Zt.jsxs)("button",{onClick:function(){return v(e.sessionID)},disabled:d,className:"tpe-w-full tpe-flex tpe-items-center tpe-gap-3 tpe-p-3 tpe-border tpe-border-gray-200 tpe-rounded-xl hover:tpe-border-gray-900 hover:tpe-bg-gray-50 tpe-transition-colors tpe-text-left disabled:tpe-opacity-60 disabled:tpe-cursor-wait",children:[(0,Zt.jsx)("div",{className:"tpe-w-16 tpe-h-16 tpe-rounded-lg tpe-bg-gray-100 tpe-overflow-hidden tpe-shrink-0 tpe-flex tpe-items-center tpe-justify-center",children:e.previewUrl?(0,Zt.jsx)("img",{src:e.previewUrl,alt:"preview",className:"tpe-w-full tpe-h-full tpe-object-cover"}):(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"tpe-text-gray-400",children:[(0,Zt.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),(0,Zt.jsx)("circle",{cx:"9",cy:"9",r:"2"}),(0,Zt.jsx)("path",{d:"M21 15l-5-5L5 21"})]})}),(0,Zt.jsxs)("div",{className:"tpe-flex-1 tpe-min-w-0",children:[(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-gap-2 tpe-mb-1 tpe-flex-wrap",children:[n&&(0,Zt.jsx)("span",{className:"tpe-text-[10px] tpe-font-bold tpe-uppercase tpe-tracking-wider tpe-bg-gray-900 tpe-text-white tpe-px-1.5 tpe-py-0.5 tpe-rounded",children:"Latest"}),r&&(0,Zt.jsx)("span",{className:"tpe-text-[10px] tpe-font-bold tpe-uppercase tpe-tracking-wider tpe-bg-green-100 tpe-text-green-800 tpe-px-1.5 tpe-py-0.5 tpe-rounded",children:"Ordered"})]}),(0,Zt.jsx)("div",{className:"tpe-text-xs tpe-text-gray-700 tpe-font-medium",children:Hu(e.timestamp)}),(0,Zt.jsx)("div",{className:"tpe-text-[10px] tpe-text-gray-400 tpe-font-mono tpe-truncate",children:e.sessionID})]})]},e.sessionID)})}),(0,Zt.jsx)("button",{onClick:function(){g(null),u(null)},className:"tpe-w-full tpe-py-2 tpe-text-xs tpe-font-bold tpe-text-gray-600 hover:tpe-text-gray-900 tpe-mt-2",children:"← Enter a different code"})]})]})]}),document.body)};function Ju(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return qu(c,"_invoke",function(n,r,o){var a,l,s,c=0,u=o||[],p=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,d.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!p&&c&&!o&&t<u.length;t++){var o,a=u[t],f=d.p,m=a[2];n>3?(o=m===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,d.v=r,d.n=a[1]):f<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,d.n=m,l=0))}if(o||n>1)return i;throw p=!0,r}return function(o,u,m){if(c>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!p;){a||(l?l<3?(l>1&&(d.n=-1),f(l,s)):d.n=s:d.v=s);try{if(c=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(p=d.n<0)?s:n.call(r,d))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:p}}}(n,o,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(qu(t={},r,function(){return this}),t),p=c.prototype=l.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,qu(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=c,qu(p,"constructor",c),qu(c,"constructor",s),s.displayName="GeneratorFunction",qu(c,o,"GeneratorFunction"),qu(p),qu(p,o,"Generator"),qu(p,r,function(){return this}),qu(p,"toString",function(){return"[object Generator]"}),(Ju=function(){return{w:a,m:d}})()}function qu(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}qu=function(e,t,n,r){function a(t,n){qu(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},qu(e,t,n,r)}function _u(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function $u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ep(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ep(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ep(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const tp=function(t){var n=t.isOpen,r=t.stage,o=t.link,a=t.errorMessage,i=t.onSubmit,l=t.onClose,s=$u((0,e.useState)(""),2),c=s[0],u=s[1],p=$u((0,e.useState)(!1),2),d=p[0],f=p[1],m=$u((0,e.useState)(!1),2),h=m[0],g=m[1],x=$u((0,e.useState)(!1),2),v=x[0],b=x[1];if(!n)return null;var Y=function(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.trim())}(c),M=function(){var e,t=(e=Ju().m(function e(){return Ju().w(function(e){for(;;)switch(e.p=e.n){case 0:if(o){e.n=1;break}return e.a(2);case 1:return e.p=1,e.n=2,navigator.clipboard.writeText(o);case 2:b(!0),setTimeout(function(){return b(!1)},2200),e.n=4;break;case 3:e.p=3,e.v,window.prompt("Copy your link:",o);case 4:return e.a(2)}},e,null,[[1,3]])}),function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){_u(a,r,o,i,l,"next",e)}function l(e){_u(a,r,o,i,l,"throw",e)}i(void 0)})});return function(){return t.apply(this,arguments)}}(),w=o?"mailto:".concat(encodeURIComponent(c),"?subject=").concat(encodeURIComponent("My design"),"&body=").concat(encodeURIComponent("Pick up where I left off:\n\n".concat(o,"\n"))):"#";return(0,y.createPortal)((0,Zt.jsx)("div",{className:"tpe-fixed tpe-inset-0 tpe-z-[100001] tpe-bg-black/50 tpe-backdrop-blur-sm tpe-flex tpe-items-center tpe-justify-center tpe-p-4 tpe-animate-fade-in",onClick:"saving"===r?void 0:l,role:"dialog","aria-modal":"true","aria-label":"Save your design",children:(0,Zt.jsxs)("div",{className:"tpe-w-full tpe-max-w-md tpe-bg-brand-panel tpe-rounded-st tpe-shadow-2xl tpe-overflow-hidden",onClick:function(e){return e.stopPropagation()},children:[("form"===r||"saving"===r||"error"===r)&&(0,Zt.jsxs)("form",{onSubmit:function(e){e.preventDefault(),g(!0),Y&&i(c.trim(),d)},children:[(0,Zt.jsxs)("div",{className:"tpe-p-5 tpe-flex tpe-flex-col tpe-gap-1",children:[(0,Zt.jsx)("h3",{className:"tpe-text-lg tpe-font-bold tpe-text-brand-ink",children:"Save your design"}),(0,Zt.jsx)("p",{className:"tpe-text-sm tpe-text-brand-muted",children:"We'll keep your design and send you a link so you can finish it later, on any device."})]}),(0,Zt.jsxs)("div",{className:"tpe-px-5 tpe-pb-5 tpe-flex tpe-flex-col tpe-gap-3",children:[(0,Zt.jsxs)("label",{className:"tpe-flex tpe-flex-col tpe-gap-1.5",children:[(0,Zt.jsx)("span",{className:"tpe-text-xs tpe-font-bold tpe-text-brand-ink",children:"Your email"}),(0,Zt.jsx)("input",{type:"email",value:c,autoFocus:!0,disabled:"saving"===r,onChange:function(e){return u(e.target.value)},onBlur:function(){return g(!0)},placeholder:"[email protected]","aria-invalid":h&&!Y,className:"tpe-w-full tpe-px-3 tpe-py-2.5 tpe-rounded-st-sm tpe-bg-brand-panel tpe-border tpe-text-sm tpe-text-brand-ink ".concat(h&&!Y?"tpe-border-rose-500":"tpe-border-brand-line")}),h&&!Y&&(0,Zt.jsx)("span",{className:"tpe-text-[11px] tpe-text-rose-600",children:"Enter an email address so we can send you the link."})]}),(0,Zt.jsxs)("label",{className:"tpe-flex tpe-items-start tpe-gap-2.5 tpe-cursor-pointer",children:[(0,Zt.jsx)("input",{type:"checkbox",checked:d,disabled:"saving"===r,onChange:function(e){return f(e.target.checked)},className:"tpe-mt-0.5 tpe-w-4 tpe-h-4 tpe-shrink-0"}),(0,Zt.jsx)("span",{className:"tpe-text-xs tpe-text-brand-muted tpe-leading-snug",children:"Email me my design link and occasional updates. You can unsubscribe at any time."})]}),"error"===r&&(0,Zt.jsx)("p",{className:"tpe-text-xs tpe-text-rose-600",children:a||"We c
2ouldn't save your design. Please try again."}),(0,Zt.jsx)("button",{type:"submit",disabled:"saving"===r,className:"tpe-w-full tpe-py-2.5 tpe-rounded-st tpe-bg-brand-lime tpe-text-brand-accentink tpe-font-bold tpe-text-sm tpe-border-[length:var(--st-border-w)] tpe-border-brand-ink hover:tpe-brightness-95 tpe-transition-all disabled:tpe-opacity-70 disabled:tpe-cursor-wait",children:"saving"===r?"Saving your design…":"Save my design"}),(0,Zt.jsx)("button",{type:"button",onClick:l,disabled:"saving"===r,className:"tpe-text-xs tpe-font-bold tpe-text-brand-muted hover:tpe-text-brand-ink tpe-transition-colors tpe-py-1 disabled:tpe-opacity-50",children:"Back to my design"})]})]}),"done"===r&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsxs)("div",{className:"tpe-p-5 tpe-flex tpe-flex-col tpe-gap-1",children:[(0,Zt.jsx)("h3",{className:"tpe-text-lg tpe-font-bold tpe-text-brand-ink",children:"Your design is saved"}),(0,Zt.jsxs)("p",{className:"tpe-text-sm tpe-text-brand-muted",children:[d?"We've sent the link to your email. Here it is too, in case you want it now.":"Here is your link. Keep it somewhere safe — open it on any device to carry on."," ","Nothing has been added to your basket."]})]}),(0,Zt.jsxs)("div",{className:"tpe-px-5 tpe-pb-5 tpe-flex tpe-flex-col tpe-gap-3",children:[(0,Zt.jsx)("input",{readOnly:!0,value:o||"",onFocus:function(e){return e.currentTarget.select()},"aria-label":"Your design link",className:"tpe-w-full tpe-px-3 tpe-py-2.5 tpe-rounded-st-sm tpe-bg-brand-sunk tpe-border tpe-border-brand-line tpe-text-xs tpe-text-brand-ink"}),(0,Zt.jsxs)("div",{className:"tpe-flex tpe-gap-2",children:[(0,Zt.jsx)("button",{onClick:M,className:"tpe-flex-1 tpe-py-2.5 tpe-rounded-st tpe-bg-brand-lime tpe-text-brand-accentink tpe-font-bold tpe-text-sm tpe-border-[length:var(--st-border-w)] tpe-border-brand-ink hover:tpe-brightness-95 tpe-transition-all",children:v?"Copied":"Copy link"}),(0,Zt.jsx)("a",{href:w,className:"tpe-flex-1 tpe-py-2.5 tpe-rounded-st tpe-bg-brand-panel tpe-border tpe-border-brand-line tpe-text-brand-ink tpe-font-bold tpe-text-sm tpe-text-center hover:tpe-bg-brand-sunk tpe-transition-colors",children:"Email it to me"})]}),(0,Zt.jsx)("button",{onClick:l,className:"tpe-text-xs tpe-font-bold tpe-text-brand-muted hover:tpe-text-brand-ink tpe-transition-colors tpe-py-1",children:"Back to my design"})]})]})]})}),document.body)};function np(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return rp(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rp(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var op=["Loading star catalog...","Aligning stars...","Calculating planet positions...","Preparing map view..."];const ap=function(t){var n=t.defaultConfig,r=t.onConfirm,o=np((0,e.useState)(n.locationLabel||""),2),a=o[0],i=o[1],l=np((0,e.useState)(n.lat||0),2),s=l[0],c=l[1],u=np((0,e.useState)(n.lng||0),2),p=u[0],d=u[1],f=np((0,e.useState)(!1),2),m=f[0],h=f[1],g=np((0,e.useState)(n.date?n.date.slice(0,10):(new Date).toISOString().slice(0,10)),2),x=g[0],y=g[1],v=np((0,e.useState)(n.date?n.date.slice(11,16):"22:00"),2),b=v[0],Y=v[1],M=np((0,e.useState)(!1),2),w=M[0],S=M[1],j=np((0,e.useState)(!0),2),T=j[0],N=j[1],W=np((0,e.useState)(0),2),I=W[0],U=W[1],k=np((0,e.useState)(!1),2),D=k[0],A=k[1],C=np((0,e.useState)(!1),2),L=C[0],O=C[1];return(0,e.useEffect)(function(){var e,t=function(){return!!(window.google&&window.google.maps&&window.google.maps.places)&&(A(!0),!0)};t()||(e=setInterval(function(){t()&&clearInterval(e)},500));var n=setTimeout(function(){A(!0),e&&clearInterval(e)},5e3);return function(){e&&clearInterval(e),clearTimeout(n)}},[]),(0,e.useEffect)(function(){if(T){if(!D){var e=setInterval(function(){U(function(e){return e>=op.length-1?e:e+1})},800);return function(){return clearInterval(e)}}N(!1)}},[T,D]),(0,Zt.jsxs)("div",{className:"tpe-fixed tpe-inset-0 tpe-z-[10000] tpe-bg-white/95 tpe-backdrop-blur-md tpe-flex tpe-items-center tpe-justify-center tpe-p-4 tpe-animate-fade-in",children:[(0,Zt.jsx)("div",{className:"tpe-min-h-[250px] tpe-max-w-md tpe-w-full tpe-bg-white tpe-shadow-2xl tpe-rounded-2xl tpe-overflow-hidden tpe-border tpe-border-gray-100 tpe-relative tpe-flex tpe-flex-col tpe-max-h-[90vh]",children:T?(0,Zt.jsxs)("div",{className:"tpe-absolute tpe-inset-0 tpe-bg-white tpe-z-20 tpe-flex tpe-flex-col tpe-items-center tpe-justify-center tpe-p-8 tpe-text-center",children:[(0,Zt.jsxs)("div",{className:"tpe-relative tpe-w-20 tpe-h-20 tpe-mb-6",children:[(0,Zt.jsxs)("svg",{className:"tpe-animate-spin tpe-w-full tpe-h-full tpe-text-gray-900",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("circle",{cx:"12",cy:"12",r:"10",className:"tpe-opacity-25"}),(0,Zt.jsx)("path",{d:"M12 2a10 10 0 0 1 10 10",className:"tpe-opacity-75"})]}),(0,Zt.jsx)("div",{className:"tpe-absolute tpe-inset-0 tpe-flex tpe-items-center tpe-justify-center",children:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"tpe-text-gray-900",children:[(0,Zt.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,Zt.jsx)("path",{d:"m9 12 2 2 4-4"})]})})]}),(0,Zt.jsx)("h3",{className:"tpe-text-xl tpe-font-bold tpe-text-gray-900 tpe-mb-2",children:"Initializing Studio"}),(0,Zt.jsx)("p",{className:"tpe-text-gray-500 tpe-text-sm tpe-transition-all tpe-duration-300 tpe-ease-in-out tpe-min-w-[200px] tpe-h-5",children:op[I]})]}):(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsxs)("div",{className:"tpe-bg-gray-900 tpe-p-6 tpe-text-center tpe-shrink-0",children:[(0,Zt.jsx)("h2",{className:"tpe-text-2xl tpe-font-bold tpe-text-white tpe-tracking-tight tpe-mb-2",children:"Create Your Star Map"}),(0,Zt.jsx)("p",{className:"tpe-text-gray-300 tpe-text-sm",children:"Enter a special date and location to see the stars exactly as they were aligned."})]}),(0,Zt.jsx)("div",{className:"tpe-flex-1 tpe-overflow-y-auto",children:(0,Zt.jsxs)("div",{className:"tpe-p-8 tpe-space-y-6 tpe-animate-fade-in",children:[(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:"tpe-block tpe-text-xs tpe-font-bold tpe-text-gray-500 tpe-uppercase tpe-tracking-wide tpe-mb-2",children:"Location"}),(0,Zt.jsxs)("div",{className:"tpe-relative",onClick:function(){return O(!0)}
2,children:[(0,Zt.jsx)("div",{className:"tpe-text-[16px] tpe-w-full tpe-box-border tpe-p-4 tpe-bg-white tpe-border tpe-border-solid tpe-border-gray-400 tpe-rounded-xl tpe-shadow-sm tpe-text-gray-900 tpe-pl-4 tpe-pr-10 tpe-cursor-pointer tpe-flex tpe-items-center hover:tpe-border-gray-900 tpe-transition-colors",children:a||(0,Zt.jsx)("span",{className:"tpe-text-gray-400",children:"Enter city or address"})}),(0,Zt.jsx)("div",{className:"tpe-absolute tpe-right-4 tpe-top-4 tpe-text-gray-400 tpe-pointer-events-none",children:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,Zt.jsx)("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]})})]})]}),(0,Zt.jsxs)("div",{className:"tpe-space-y-4",children:[(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-justify-between",children:[(0,Zt.jsx)("label",{className:"tpe-block tpe-text-xs tpe-font-bold tpe-text-gray-500 tpe-uppercase tpe-tracking-wide",children:"Select Date & Time"}),(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-gap-3",children:[(0,Zt.jsx)("span",{className:"tpe-text-[10px] tpe-font-bold tpe-text-gray-400 tpe-uppercase tpe-tracking-widest",children:"Add Time"}),(0,Zt.jsxs)("label",{className:"tpe-relative tpe-inline-flex tpe-items-center tpe-cursor-pointer",children:[(0,Zt.jsx)("input",{type:"checkbox",checked:m,onChange:function(e){return h(e.target.checked)},className:"tpe-sr-only tpe-peer"}),(0,Zt.jsx)("div",{className:"tpe-w-9 tpe-h-5 tpe-bg-gray-200 peer-focus:tpe-outline-none tpe-rounded-full tpe-peer peer-checked:after:tpe-translate-x-full peer-checked:after:tpe-border-white after:tpe-content-[''] after:tpe-absolute after:tpe-top-[2px] after:tpe-left-[2px] after:tpe-bg-white after:tpe-border-gray-300 after:tpe-border after:tpe-rounded-full after:tpe-h-4 after:tpe-w-4 after:tpe-transition-all peer-checked:tpe-bg-gray-900"})]})]})]}),(0,Zt.jsxs)("div",{className:"tpe-grid tpe-grid-cols-1 tpe-gap-3",children:[(0,Zt.jsx)("input",{type:"date",value:x,onChange:function(e){return y(e.target.value)},className:"tpe-text-[16px] tpe-w-full tpe-box-border tpe-block tpe-min-w-0 tpe-p-4 tpe-bg-white tpe-border tpe-border-solid tpe-border-gray-400 tpe-rounded-xl tpe-shadow-sm focus:tpe-ring-2 focus:tpe-ring-gray-900 tpe-outline-none tpe-transition-all tpe-text-gray-900"}),m&&(0,Zt.jsx)("input",{type:"time",value:b,onChange:function(e){return Y(e.target.value)},className:"tpe-text-[16px] tpe-w-full tpe-box-border tpe-block tpe-min-w-0 tpe-p-4 tpe-bg-white tpe-border tpe-border-solid tpe-border-gray-400 tpe-rounded-xl tpe-shadow-sm focus:tpe-ring-2 focus:tpe-ring-gray-900 tpe-outline-none tpe-transition-all tpe-text-gray-900 tpe-animate-fade-in-down"})]}),!m&&(0,Zt.jsx)("p",{className:"tpe-text-[10px] tpe-text-gray-400 tpe-italic tpe-ml-1",children:"* Defaults to 10:00 PM for optimal star viewing."})]}),(0,Zt.jsx)("button",{onClick:function(){S(!0);var e=m?b:"22:00",t=np(x.split("-").map(Number),3),n=t[0],o=t[1],i=t[2],l=np(e.split(":").map(Number),2),c=l[0],u=l[1],d=Xt(s,p,n,o,i,c,u),f=d.utcMs,h=d.offsetMinutes,g=new Date(f).toISOString();setTimeout(function(){r({lat:s,lng:p,locationLabel:a,date:g,tzOffset:h,showTime:m})},300)},disabled:w||!a||!x,className:"tpe-w-full tpe-py-4 tpe-bg-gray-900 hover:tpe-bg-gray-900 tpe-text-white tpe-font-bold tpe-rounded-xl tpe-shadow-lg tpe-transform tpe-transition-all hover:tpe--translate-y-0.5 disabled:tpe-opacity-50 disabled:tpe-cursor-not-allowed tpe-flex tpe-items-center tpe-justify-center tpe-gap-2 ".concat(w?"tpe-opacity-80":""),children:w?(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsxs)("svg",{className:"tpe-animate-spin tpe-h-5 tpe-w-5 tpe-text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,Zt.jsx)("circle",{className:"tpe-opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,Zt.jsx)("path",{className:"tpe-opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Rendering Map..."]}):(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)("span",{children:"Create Star Map"}),(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"}),(0,Zt.jsx)("polyline",{points:"12 5 19 12 12 19"})]})]})})]})})]})}),(0,Zt.jsx)(Rl,{isOpen:L,onClose:function(){return O(!1)},onSelect:function(e,t,n){c(e),d(t),i(n)},initialValue:a})]})};function ip(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return lp(c,"_invoke",function(n,r,o){var a,l,s,c=0,u=o||[],p=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,d.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!p&&c&&!o&&t<u.length;t++){var o,a=u[t],f=d.p,m=a[2];n>3?(o=m===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,d.v=r,d.n=a[1]):f<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,d.n=m,l=0))}if(o||n>1)return i;throw p=!0,r}return function(o,u,m){if(c>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!p;){a||(l?l<3?(l>1&&(d.n=-1),f(l,s)):d.n=s:d.v=s);try{if(c=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(p=d.n<0)?s:n.call(r,d))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:p}}}(n,o,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(lp(t={},r,function(){return this}),t),p=c.prototype=l.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,lp(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=c,lp(p,"constructor",c),lp(c,"constructor",s),s.displayName="GeneratorFunction",lp(c,o,"GeneratorFunction"),lp(p),lp(p,o,"Generator"),lp(p,r,function(){return this}),lp(p,"toString",function(){return"[object Generator]"}),(ip=function(){return{w:a,m:d}})()}function lp(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}lp=function(e,t,n,r){function a(t,n){lp(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},lp(e,t,n,r)}function sp(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function cp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return up(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?up(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function up(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const pp=function(t){var n=t.maxSeconds,r=void 0===n?120:n,o=t.onComplete,a=cp((0,e.useState)(!1),2),i=a[0],l=a[1],s=cp((0,e.useState)(0),2),c=s[0],u=s[1],p=cp((0,e.useState)(0),2),d=p[0],f=p[1],m=cp((0,e.useState)(""),2),h=m[0],g=m[1],x=(0,e.useRef)(null),y=(0,e.useRef)([]),v=(0,e.useRef)(null),b=(0,e.useRef)(null),Y=(0,e.useRef)(null),M=(0,e.useRef)(null),w=(0,e.useRef)(null);function S(){var e,t;b.current&&cancelAnimationFrame(b.current),Y.current&&window.clearInterval(Y.current),null===(e=v.current)||void 0===e||e.getTracks().forEach(function(e){return e.stop()}),null===(t=w.current)||void 0===t||t.close().catch(function(){}),v.current=null,M.current=null,w.current=null}function j(){var e;return e=ip().m(function e(){var t,n,a,i,s,c,p,d,m,h;return ip().w(function(e){for(;;)switch(e.p=e.n){case 0:return g(""),e.p=1,e.n=2,navigator.mediaDevices.getUserMedia({audio:!0});case 2:t=e.v,v.current=t,n=window.AudioContext||window.webkitAudioContext,a=new n,w.current=a,i=a.createMediaStreamSource(t),(s=a.createAnalyser()).fftSize=256,i.connect(s),M.current=s,c=new Uint8Array(s.frequencyBinCount),p=function(){s.getByteFrequencyData(c);for(var e=0,t=0;t<c.length;t++)e+=c[t];f(e/c.length/255),b.current=requestAnimationFrame(p)},p(),d=new MediaRecorder(t),x.current=d,y.current=[],d.ondataavailable=function(e){e.data.size>0&&y.current.push(e.data)},d.onstop=function(){var e=d.mimeType||"audio/webm",t=new Blob(y.current,{type:e});S(),l(!1),o(t)},d.start(),l(!0),u(0),m=Date.now(),Y.current=window.setInterval(function(){var e=Math.floor((Date.now()-m)/1e3);u(e),e>=r&&T()},250),e.n=4;break;case 3:e.p=3,h=e.v,g((null==h?void 0:h.message)||"Microphone access denied"),S();case 4:return e.a(2)}},e,null,[[1,3]])}),j=function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){sp(a,r,o,i,l,"next",e)}function l(e){sp(a,r,o,i,l,"throw",e)}i(void 0)})},j.apply(this,arguments)}
2function T(){x.current&&"inactive"!==x.current.state&&x.current.stop()}return(0,e.useEffect)(function(){return function(){return S()}},[]),(0,Zt.jsxs)("div",{className:"tpe-flex tpe-flex-col tpe-items-center tpe-gap-4 tpe-py-4",children:[(0,Zt.jsx)("button",{type:"button",onClick:i?T:function(){return j.apply(this,arguments)},className:"tpe-w-24 tpe-h-24 tpe-rounded-full tpe-flex tpe-items-center tpe-justify-center tpe-text-white tpe-font-semibold tpe-transition ".concat(i?"tpe-bg-red-600 tpe-animate-pulse":"tpe-bg-red-500 hover:tpe-bg-red-600"),style:{boxShadow:i?"0 0 ".concat(20+60*d,"px rgba(220,38,38,0.6)"):void 0},children:i?"Stop":"Record"}),(0,Zt.jsxs)("div",{className:"tpe-text-lg tpe-tabular-nums",children:[String(Math.floor(c/60)).padStart(2,"0"),":",String(c%60).padStart(2,"0")," / ",String(Math.floor(r/60)).padStart(2,"0"),":",String(r%60).padStart(2,"0")]}),i&&(0,Zt.jsx)("div",{className:"tpe-w-48 tpe-h-2 tpe-bg-gray-200 tpe-rounded",children:(0,Zt.jsx)("div",{className:"tpe-h-2 tpe-bg-red-500 tpe-rounded",style:{width:"".concat(Math.min(100,100*d*2),"%")}})}),h&&(0,Zt.jsx)("p",{className:"tpe-text-sm tpe-text-red-600",children:h})]})};function dp(e){return dp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dp(e)}function fp(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return mp(c,"_invoke",function(n,r,o){var a,l,s,c=0,u=o||[],p=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,d.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!p&&c&&!o&&t<u.length;t++){var o,a=u[t],f=d.p,m=a[2];n>3?(o=m===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,d.v=r,d.n=a[1]):f<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,d.n=m,l=0))}if(o||n>1)return i;throw p=!0,r}return function(o,u,m){if(c>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!p;){a||(l?l<3?(l>1&&(d.n=-1),f(l,s)):d.n=s:d.v=s);try{if(c=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(p=d.n<0)?s:n.call(r,d))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:p}}}(n,o,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(mp(t={},r,function(){return this}),t),p=c.prototype=l.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,mp(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=c,mp(p,"constructor",c),mp(c,"constructor",s),s.displayName="GeneratorFunction",mp(c,o,"GeneratorFunction"),mp(p),mp(p,o,"Generator"),mp(p,r,function(){return this}),mp(p,"toString",function(){return"[object Generator]"}),(fp=function(){return{w:a,m:d}})()}function mp(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}mp=function(e,t,n,r){function a(t,n){mp(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},mp(e,t,n,r)}function hp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function gp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hp(Object(n),!0).forEach(function(t){xp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xp(e,t,n){return(t=function(e){var t=function(e){if("object"!=dp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=dp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==dp(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yp(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function vp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return bp(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bp(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Yp=[{id:"search",label:"Search song",icon:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,Zt.jsx)("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]})},{id:"upload",label:"Upload audio",icon:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),(0,Zt.jsx)("polyline",{points:"17 8 12 3 7 8"}),(0,Zt.jsx)("line",{x1:"12",y1:"3",x2:"12",y2:"15"})]})},{id:"record",label:"Record",icon:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("path",{d:"M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"}),(0,Zt.jsx)("path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}),(0,Zt.jsx)("line",{x1:"12",y1:"19",x2:"12",y2:"23"}),(0,Zt.jsx)("line",{x1:"8",y1:"23",x2:"16",y2:"23"})]})}];function Mp(e){return[{id:"sw-1",text:(e.title||"").toUpperCase(),isBold:!0},{id:"sw-2",text:(e.artist||"").toUpperCase(),isBold:!1}]}const wp=function(t){var n=t.existing,r=t.uploadAudio,o=t.onComplete,a=t.onClose,i=vp((0,e.useState)("search"),2),l=i[0],s=i[1],c=vp((0,e.useState)(!1),2),u=c[0],p=c[1],d=vp((0,e.useState)(""),2),f=d[0],m=d[1];function h(e){return g.apply(this,arguments)}function g(){var e;return e=fp().m(function e(t){var a,i,l,s,c,u,d,f,h,g,x,y,v,b,Y;return fp().w(function(e){for(;;)switch(e.p=e.n){case 0:if(p(!0),m(""),e.p=1,l=null!=n?n:be(),s=l.barCount||120,c=t.blob,d=t.metadata,"preview"!==t.source||null===(a=d)||void 0===a||!a.previewUrl){e.n=4;break}return e.n=2,fetch(d.previewUrl);case 2:return f=e.v,e.n=3,f.blob();case 3:c=e.v;case 4:if(c){e.n=5;break}throw new Error("No audio blob");case 5:return e.n=6,cc(c,s);case 6:if(h=e.v,g=h.rawBars,x=h.barData,"preview"===t.source){e.n=8;break}return e.n=7,r(c,t.mime||c.type||"audio/mpeg");case 7:u=e.v;case 8:if("preview"!==t.source||null===(i=d)||void 0===i||!i.collectionId||d.label){e.n=10;break}return e.n=9,io(d.collectionId);case 9:(y=e.v)&&(d=gp(gp({},d),{},{label:y}));case 10:v=gp(gp({},l),{},{source:t.source,barData:x,rawBars:g,audioUrl:u,metadata:d,scanCode:gp(gp({},l.scanCode),{},{type:"preview"===t.source?"none":"qr"})}),b=d?Mp(d):[],o(v,b),e.n=12;break;case 11:e.p=11,Y=e.v,console.error(Y),m((null==Y?void 0:Y.message)||"Failed to process audio");case 12:return e.p=12,p(!1),e.f(12);case 13:return e.a(2)}},e,null,[[1,11,12,13]])}),g=function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){yp(a,r,o,i,l,"next",e)}function l(e){yp(a,r,o,i,l,"throw",e)}i(void 0)})},g.apply(this,arguments)}return(0,y.createPortal)((0,Zt.jsx)("div",{className:"tpe-font-Jost tpe-fixed tpe-inset-0 tpe-z-[10000] tpe-bg-white/95 tpe-backdrop-blur-md tpe-flex tpe-items-center tpe-justify-center tpe-p-4 tpe-animate-fade-in",children:(0,Zt.jsxs)("div",{className:"tpe-max-w-md tpe-w-full tpe-bg-white tpe-shadow-2xl tpe-rounded-2xl tpe-overflow-hidden tpe-border tpe-border-gray-100 tpe-relative tpe-flex tpe-flex-col tpe-max-h-[90vh]",children:[(0,Zt.jsxs)("div",{className:"tpe-bg-gray-900 tpe-p-6 tpe-text-center tpe-shrink-0 tpe-relative",children:[(0,Zt.jsx)("button",{onClick:a,className:"tpe-absolute tpe-top-4 tpe-right-4 tpe-p-2 tpe-bg-white/10 hover:tpe-bg-white/20 tpe-rounded-full tpe-transition-colors tpe-text-white","aria-label":"Close",children:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,Zt.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),(0,Zt.jsx)("h2",{className:"tpe-text-2xl tpe-font-bold tpe-text-white tpe-tracking-tight tpe-mb-2",children:"Choose Your Audio"}),(0,Zt.jsx)("p",{className:"tpe-text-gray-300 tpe-text-sm",children:"Search a song, upload a file, or record a voice note to turn into a soundwave."})]}),(0,Zt.jsx)("div",{className:"tpe-shrink-0 tpe-px-6 tpe-pt-5",children:(0,Zt.jsx)("div",{className:"tpe-grid tpe-grid-cols-3 tpe-gap-2 tpe-bg-gray-100 tpe-p-1 tpe-rounded-xl",children:Yp.map(function(e){return(0,Zt.jsxs)("button",{onClick:function(){return s(e.id)},className:"tpe-flex tpe-flex-col tpe-items-center tpe-justify-center tpe-gap-1 tpe-py-2.5 tpe-px-1 tpe-rounded-lg tpe-text-xs tpe-font-bold tpe-transition-all ".concat(l===e.id?"tpe-bg-white tpe-text-gray-900 tpe-shadow-sm":"tpe-text-gray-500 hover:tpe-text-gray-700"),children:[e.icon,(0,Zt.jsx)("span",{children:e.label})]},e.id)})})}),(0,Zt.jsxs)("div",{className:"tpe-flex-1 tpe-overflow-y-auto tpe-p-6",children:[u&&(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-gap-2 tpe-mb-4 tpe-text-sm tpe-text-gray-600",children:[(0,Zt.jsxs)("svg",{className:"tpe-animate-spin tpe-h-4 tpe-w-4 tpe-text-gray-900",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,Zt.jsx)("circle",{className:"tpe-opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,Zt.jsx)("path",{className:"tpe-opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Processing audio..."]}),f&&(0,Zt.jsx)("p",{className:"tpe-text-sm tpe-text-red-600 tpe-mb-4 tpe-bg-red-50 tpe-border tpe-border-red-100 tpe-rounded-lg tpe-p-3",children:f}),"search"===l&&(0,Zt.jsx)(yc,{onSelect:function(e){return h({source:"preview",metadata:e})}}),"upload"===l&&(0,Zt.jsxs)("div",{className:"tpe-flex tpe-flex-col tpe-gap-4 tpe-animate-fade-in",children:[(0,Zt.jsx)("p",{className:"tpe-text-sm tpe-text-gray-500",children:"Upload an audio file (MP3, WAV, M4A, OGG). Max ~20MB recommended."}),(0,Zt.jsxs)("label",{className:"tpe-flex tpe-flex-col tpe-items-center tpe-justify-center tpe-gap-2 tpe-p-8 tpe-border-2 tpe-border-dashed tpe-border-gray-300 tpe-rounded-xl tpe-cursor-pointer hover:tpe-border-gray-900 hover:tpe-bg-gray-50 tpe-transition-colors tpe-text-center",children:[(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"tpe-text-gray-400",children:[(0,Zt.jsx)("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),(0,Zt.jsx)("polyline",{points:"17 8 12 3 7 8"}),(0,Zt.jsx)("line",{x1:"12",y1:"3",x2:"12",y2:"15"})]}),(0,Zt.jsx)("span",{className:"tpe-text-sm tpe-font-bold tpe-text-gray-700",children:"Click to choose a file"}),(0,Zt.jsx)("input",{type:"file",accept:"audio/*",className:"tpe-hidden",onChange:function(e){var t,n=null===(t=e.target.files)||void 0===t?void 0:t[0];n&&h({source:"upload",blob:n,mime:n.type||"audio/mpeg"})}})]})]}),"record"===l&&(0,Zt.jsx)("div",{className:"tpe-animate-fade-in",children:(0,Zt.jsx)(pp,{maxSeconds:120,onComplete:function(e){return h({source:"recording",blob:e,mime:e.type||"audio/webm"})}})})]})]})}),document.body)};function Sp(e){return Sp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sp(e)}function jp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Tp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?jp(Object(n),!0).forEach(function(t){Np(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Np(e,t,n){return(t=function(e){var t=function(e){if("object"!=Sp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Sp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Sp(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Wp=function(e){var t=e.existing,n=e.onComplete,r=e.onClose;return(0,y.createPortal)((0,Zt.jsx)("div",{className:"tpe-font-Jost tpe-fixed tpe-inset-0 tpe-z-[10000] tpe-bg-white/95 tpe-backdrop-blur-md tpe-flex tpe-items-center tpe-justify-center tpe-p-4 tpe-animate-fade-in",children:(0,Zt.jsxs)("div",{className:"tpe-max-w-md tpe-w-full tpe-bg-white tpe-shadow-2xl tpe-rounded-2xl tpe-overflow-hidden tpe-border tpe-border-gray-100 tpe-relative tpe-flex tpe-flex-col tpe-max-h-[90vh]",children:[(0,Zt.jsxs)("div",{className:"tpe-bg-gray-900 tpe-p-6 tpe-text-center tpe-shrink-0 tpe-relative",children:[(0,Zt.jsx)("button",{onClick:r,className:"tpe-absolute tpe-top-4 tpe-right-4 tpe-p-2 tpe-bg-white/10 hover:tpe-bg-white/20 tpe-rounded-full tpe-transition-colors tpe-text-white","aria-label":"Close",children:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,Zt.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),(0,Zt.jsx)("h2",{className:"tpe-text-2xl tpe-font-bold tpe-text-white tpe-tracking-tight tpe-mb-2",children:"Choose Your Song"}),(0,Zt.jsx)("p",{className:"tpe-text-gray-300 tpe-text-sm",children:"Search a song to start — we’ll fill in the record label details and fetch the lyrics for you to spiral around the disc."})]}),(0,Zt.jsxs)("div",{className:"tpe-flex-1 tpe-overflow-y-auto tpe-p-6",children:[(0,Zt.jsx)(yc,{onSelect:function(e){var r,o=null!=t?t:{lyrics:"",cursiveLyrics:!1,discColor:"#000000",discTextColor:"#FFFFFF",labelColor:"#FFFFFF",labelTextColor:"#000000",themeId:"black",label:{line1:"",line2:"",recordLabel:"",country:"",year:"",length:"",sideText:"SIDE A",songTitle:"",artist:""},scanCode:{enabled:!1,type:"none",position:"br",sizePct:12,color:"#FFFFFF"}};n(Tp(Tp({},o),{},{metadata:e,lyrics:"",lyricsLoading:!0,label:Tp(Tp({},o.label),{},{songTitle:(e.title||"").toUpperCase(),artist:(e.artist||"").toUpperCase(),year:e.releaseYear||"",length:(r=e.durationSec,null==r?"":"".concat(Math.floor(r/60),":").concat(String(r%60).padStart(2,"0"))),recordLabel:(e.label||"").toUpperCase(),recordLabelFetchedFor:void 0})}))}}),(0,Zt.jsx)("button",{type:"button",onClick:r,className:"tpe-mt-4 tpe-w-full tpe-text-center tpe-text-sm tpe-font-bold tpe-text-gray-500 hover:tpe-text-gray-900 tpe-py-2",children:"I’ll enter the details myself"})]})]})}),document.body)};function Ip(e){return Ip="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ip(e)}function Up(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function kp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Up(Object(n),!0).forEach(function(t){Dp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Up(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Dp(e,t,n){return(t=function(e){var t=function(e){if("object"!=Ip(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ip(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ip(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}
2const Ap=function(e){var t=e.existing,n=e.onComplete,r=e.onClose,o=e.onSkip;return(0,y.createPortal)((0,Zt.jsx)("div",{className:"tpe-font-Jost tpe-fixed tpe-inset-0 tpe-z-[10000] tpe-bg-white/95 tpe-backdrop-blur-md tpe-flex tpe-items-center tpe-justify-center tpe-p-4 tpe-animate-fade-in",children:(0,Zt.jsxs)("div",{className:"tpe-max-w-md tpe-w-full tpe-bg-white tpe-shadow-2xl tpe-rounded-2xl tpe-overflow-hidden tpe-border tpe-border-gray-100 tpe-relative tpe-flex tpe-flex-col tpe-max-h-[90vh]",children:[(0,Zt.jsxs)("div",{className:"tpe-bg-gray-900 tpe-p-6 tpe-text-center tpe-shrink-0 tpe-relative",children:[(0,Zt.jsx)("button",{onClick:r,className:"tpe-absolute tpe-top-4 tpe-right-4 tpe-p-2 tpe-bg-white/10 hover:tpe-bg-white/20 tpe-rounded-full tpe-transition-colors tpe-text-white","aria-label":"Close designer",title:"Close designer",children:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,Zt.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),(0,Zt.jsx)("h2",{className:"tpe-text-2xl tpe-font-bold tpe-text-white tpe-tracking-tight tpe-mb-2",children:"Choose Your Song"}),(0,Zt.jsx)("p",{className:"tpe-text-gray-300 tpe-text-sm",children:"Search a song to start — we’ll pull the album artwork and details, and fetch the lyrics for you to print."})]}),(0,Zt.jsxs)("div",{className:"tpe-flex-1 tpe-overflow-y-auto tpe-p-6",children:[(0,Zt.jsx)(yc,{onSelect:function(e){var r,o=null!=t?t:{lyrics:"",cursiveLyrics:!1,bgColor:"#FFFFFF",textColor:"#000000",useCustomCover:!1,label:{artist:"",songTitle:"",recordLabel:"",year:"",length:""},scanCode:{enabled:!1,type:"none",position:"br",sizePct:12,color:"#000000"}};n(kp(kp({},o),{},{metadata:e,coverArtUrl:e.albumArtUrl,useCustomCover:!1,lyrics:"",lyricsLoading:!0,label:kp(kp({},o.label),{},{songTitle:(e.title||"").toUpperCase(),artist:(e.artist||"").toUpperCase(),year:e.releaseYear||"",length:(r=e.durationSec,null==r?"":"".concat(Math.floor(r/60),":").concat(String(r%60).padStart(2,"0"))),recordLabel:(e.label||"").toUpperCase(),recordLabelFetchedFor:void 0})}))}}),(0,Zt.jsx)("button",{type:"button",onClick:o,className:"tpe-mt-4 tpe-w-full tpe-text-center tpe-text-sm tpe-font-bold tpe-text-gray-500 hover:tpe-text-gray-900 tpe-py-2",children:"I’ll enter the details myself"})]})]})}),document.body)};function Cp(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return Lp(c,"_invoke",function(n,r,o){var a,l,s,c=0,u=o||[],p=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,d.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!p&&c&&!o&&t<u.length;t++){var o,a=u[t],f=d.p,m=a[2];n>3?(o=m===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,d.v=r,d.n=a[1]):f<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,d.n=m,l=0))}if(o||n>1)return i;throw p=!0,r}return function(o,u,m){if(c>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!p;){a||(l?l<3?(l>1&&(d.n=-1),f(l,s)):d.n=s:d.v=s);try{if(c=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(p=d.n<0)?s:n.call(r,d))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:p}}}(n,o,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Lp(t={},r,function(){return this}),t),p=c.prototype=l.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Lp(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=c,Lp(p,"constructor",c),Lp(c,"constructor",s),s.displayName="GeneratorFunction",Lp(c,o,"GeneratorFunction"),Lp(p),Lp(p,o,"Generator"),Lp(p,r,function(){return this}),Lp(p,"toString",function(){return"[object Generator]"}),(Cp=function(){return{w:a,m:d}})()}function Lp(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Lp=function(e,t,n,r){function a(t,n){Lp(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Lp(e,t,n,r)}function Op(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Ep(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){Op(a,r,o,i,l,"next",e)}function l(e){Op(a,r,o,i,l,"throw",e)}i(void 0)})}}function Vp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return zp(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zp(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Xp(e){var t=180,n=-180,r=90,o=-90,a=!1;return e.forEach(function(e){var i;return((null===(i=e.geoJsonRoute)||void 0===i||null===(i=i.geometry)||void 0===i?void 0:i.coordinates)||[]).forEach(function(e){var i=Vp(e,2),l=i[0],s=i[1];Number.isFinite(l)&&Number.isFinite(s)&&(a=!0,l<t&&(t=l),l>n&&(n=l),s<r&&(r=s),s>o&&(o=s))})}),a?[t,r,n,o]:void 0}var Pp=function(t){var n=t.placeholder,r=t.restrictCountry,o=t.onSelect,a=(0,e.useRef)(null),i=(0,e.useRef)(o);i.current=o;var l=Fl();return(0,e.useEffect)(function(){var e=setTimeout(function(){var e;return null===(e=a.current)||void 0===e?void 0:e.focus()},120);return function(){return clearTimeout(e)}},[]),(0,e.useEffect)(function(){if(a.current&&l){document.body.classList.add("tpe-studio-pac-fixed");var e={types:["geocode","establishment"],fields:["geometry","name","formatted_address"]};r&&(e.componentRestrictions={country:r});var t=new window.google.maps.places.Autocomplete(a.current,e),n=t.addListener("place_changed",function(){var e,n=t.getPlace();null!==(e=n.geometry)&&void 0!==e&&e.location&&i.current({lat:n.geometry.location.lat(),lng:n.geometry.location.lng(),label:n.name||n.formatted_address||""})}),o=new Set,s=new MutationObserver(function(){document.querySelectorAll(".pac-container").forEach(function(e){var t=e;o.has(t)||(o.add(t),t.style.zIndex="200000")})});return s.observe(document.body,{childList:!0,subtree:!0}),function(){var e,r;null!==(e=window.google)&&void 0!==e&&null!==(e=e.maps)&&void 0!==e&&e.event&&window.google.maps.event.clearInstanceListeners(t),s.disconnect(),o.forEach(function(e){e.parentNode&&e.parentNode.removeChild(e)}),document.body.classList.remove("tpe-studio-pac-fixed"),null==n||null===(r=n.remove)||void 0===r||r.call(n)}}},[r,l]),(0,Zt.jsxs)("div",{className:"tpe-relative",children:[(0,Zt.jsx)("input",{ref:a,type:"text",placeholder:n,className:"tpe-w-full tpe-p-4 tpe-pl-12 tpe-bg-gray-50 tpe-border-0 tpe-rounded-xl tpe-text-[16px] tpe-shadow-inner focus:tpe-ring-2 focus:tpe-ring-blue-500 tpe-outline-none"}),(0,Zt.jsx)("div",{className:"tpe-absolute tpe-left-4 tpe-top-1/2 tpe--translate-y-1/2 tpe-text-gray-400",children:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,Zt.jsx)("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]})})]})},Zp=function(e){var t=e.onClick,n=e.disabled,r=e.icon,o=e.title,a=e.sub,i=e.accent;return(0,Zt.jsxs)("button",{onClick:t,disabled:n,className:"tpe-flex-1 tpe-min-w-[96px] tpe-flex tpe-flex-col tpe-items-center tpe-gap-2 tpe-p-4 tpe-bg-white tpe-border tpe-border-gray-200 tpe-rounded-2xl hover:tpe-border-gray-400 hover:tpe-shadow-md tpe-transition-all disabled:tpe-opacity-50 disabled:tpe-cursor-wait",children:[(0,Zt.jsx)("span",{className:"tpe-w-10 tpe-h-10 tpe-flex tpe-items-center tpe-justify-center tpe-rounded-full tpe-text-white",style:{backgroundColor:i||"#111827"},children:r}),(0,Zt.jsx)("span",{className:"tpe-text-sm tpe-font-bold tpe-text-gray-900",children:o}),(0,Zt.jsx)("span",{className:"tpe-text-[11px] tpe-text-gray-500 tpe-text-center tpe-leading-tight",children:a})]})};const Gp=function(t){var n=t.routeMode,r=t.enableStrava,o=t.restrictCountry,a=t.onRoutesImported,i=t.onDrawAt,l=t.onLocationSet,s=t.onClose,c=Vp((0,e.useState)(n?"choose":"location"),2),u=c[0],p=c[1],d=Vp((0,e.useState)(null),2),f=d[0],m=d[1],h=Vp((0,e.useState)(null),2),g=h[0],x=h[1],v=(0,e.useRef)(null),b=function(){var e=Ep(Cp().m(function e(){var t,n,r;return Cp().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!f){e.n=1;break}return e.a(2);case 1:return m("strava"),x(null),e.p=2,e.n=3,te();case 3:t=e.v,a(t,Xp(t)),e.n=5;break;case 4:e.p=4,r=e.v,"cancelled"!==(null==(n=r)?void 0:n.code)&&x((null==n?void 0:n.message)||"Could not connect to Strava.");case 5:return e.p=5,m(null),e.f(5);case 6:return e.a(2)}},e,null,[[2,4,5,6]])}));return function(){return e.apply(this,arguments)}}(),Y=function(){var e=Ep(Cp().m(function e(t){var n,r,o,i;return Cp().w(function(e){for(;;)switch(e.p=e.n){case 0:if(r=null===(n=t.target.files)||void 0===n?void 0:n[0],v.current&&(v.current.value=""),r){e.n=1;break}return e.a(2);case 1:return m("gpx"),x(null),e.p=2,e.n=3,Xs(r);case 3:if(!(o=e.v).error){e.n=4;break}return x(o.error),e.a(2);case 4:i={id:"route-".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2,6)),source:"gpx",name:r.name.replace(/\.gpx$/i,""),geoJsonRoute:o.geoJson,color:"#FF0000",colorMode:"solid",widthMultiplier:3,visible:!0,stats:o.stats},a([i],o.bounds);case 5:return e.p=5,m(null),e.f(5);case 6:return e.a(2)}},e,null,[[2,,5,6]])}));return function(t){return e.apply(this,arguments)}}();return(0,y.createPortal)((0,Zt.jsx)("div",{className:"tpe-font-Jost tpe-fixed tpe-inset-0 tpe-z-[10000] tpe-bg-white/95 tpe-backdrop-blur-md tpe-flex tpe-items-center tpe-justify-center tpe-p-4 tpe-animate-fade-in",children:(0,Zt.jsxs)("div",{className:"tpe-max-w-md tpe-w-full tpe-bg-white tpe-shadow-2xl tpe-rounded-2xl tpe-overflow-hidden tpe-border tpe-border-gray-100 tpe-relative tpe-flex tpe-flex-col",children:[(0,Zt.jsxs)("div",{className:"tpe-bg-gray-900 tpe-p-6 tpe-text-center tpe-shrink-0 tpe-relative",children:[(0,Zt.jsx)("button",{onClick:s,"aria-label":"Close",className:"tpe-absolute tpe-top-4 tpe-right-4 tpe-p-2 tpe-bg-white/10 hover:tpe-bg-white/20 tpe-rounded-full tpe-transition-colors tpe-text-white",children:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,Zt.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),"location"===u&&n&&(0,Zt.jsx)("button",{onClick:function(){p("choose"),x(null)},"aria-label":"Back",className:"tpe-absolute tpe-top-4 tpe-left-4 tpe-p-2 tpe-bg-white/10 hover:tpe-bg-white/20 tpe-rounded-full tpe-transition-colors tpe-text-white",children:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("line",{x1:"19",y1:"12",x2:"5",y2:"12"}),(0,Zt.jsx)("polyline",{points:"12 19 5 12 12 5"})]})}),(0,Zt.jsx)("h2",{className:"tpe-text-2xl tpe-font-bold tpe-text-white tpe-tracking-tight tpe-mb-2",children:n?"choose"===u?"Add your route":"Where's your route?":"Where's your map?"}),(0,Zt.jsx)("p",{className:"tpe-text-gray-300 tpe-text-sm",children:n?"choose"===u?"Import a route from Strava or a GPX file, or draw one by hand.":"Pick the area first, then draw your route on the map.":"Search a city, address or landmark to centre your map."})]}),(0,Zt.jsxs)("div",{className:"tpe-p-6 tpe-space-y-4",children:[g&&(0,Zt.jsx)("div",{role:"alert",className:"tpe-p-3 tpe-rounded-lg tpe-text-xs tpe-bg-red-50 tpe-border tpe-border-red-200 tpe-text-red-800",children:g}),!n&&(0,Zt.jsx)(Pp,{placeholder:"Search a place…",restrictCountry:o,onSelect:l}),n&&"choose"===u&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsxs)("div",{className:"tpe-flex tpe-gap-3",children:[r&&(0,Zt.jsx)(Zp,{onClick:b,disabled:!!f,accent:"#FC4C02",title:"strava"===f?"Connecting…":"Strava",sub:"Import your activities",icon:(0,Zt.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"
2currentColor",children:(0,Zt.jsx)("path",{d:"M15.4 16.97 13.2 12.6h-3.2L15.4 24l5.4-11.4h-3.2zM8.6 0 2.1 12.6h3.9L8.6 7.5l2.6 5.1h3.9z"})})}),(0,Zt.jsx)(Zp,{onClick:function(){var e;return null===(e=v.current)||void 0===e?void 0:e.click()},disabled:!!f,title:"gpx"===f?"Reading…":"GPX",sub:"Upload a .gpx file",icon:(0,Zt.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),(0,Zt.jsx)("polyline",{points:"14 2 14 8 20 8"}),(0,Zt.jsx)("line",{x1:"12",y1:"18",x2:"12",y2:"12"}),(0,Zt.jsx)("polyline",{points:"9 15 12 12 15 15"})]})}),(0,Zt.jsx)(Zp,{onClick:function(){p("location"),x(null)},disabled:!!f,title:"Draw",sub:"Trace it by hand",icon:(0,Zt.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("path",{d:"M12 19l7-7 3 3-7 7-3-3z"}),(0,Zt.jsx)("path",{d:"M18 13l-1.5-7.5L2 2l3.5 14.5L13 18l5-5z"}),(0,Zt.jsx)("path",{d:"M2 2l7.586 7.586"}),(0,Zt.jsx)("circle",{cx:"11",cy:"11",r:"2"})]})})]}),(0,Zt.jsx)("input",{type:"file",accept:".gpx",ref:v,className:"tpe-hidden",onChange:Y}),(0,Zt.jsx)("button",{onClick:s,className:"tpe-w-full tpe-text-center tpe-text-xs tpe-font-bold tpe-text-gray-400 hover:tpe-text-gray-700 tpe-pt-1",children:"Skip — I'll set it up myself"})]}),n&&"location"===u&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Pp,{placeholder:"Search the area you ran/rode…",restrictCountry:o,onSelect:function(e){return i(e)}}),(0,Zt.jsx)("button",{onClick:function(){return i(null)},className:"tpe-w-full tpe-text-center tpe-text-xs tpe-font-bold tpe-text-gray-400 hover:tpe-text-gray-700 tpe-pt-1",children:"Skip — I'll pan the map myself"})]})]})]})}),document.body)};var Fp="#3a2c1d";function Bp(e,t,n,r,o,a,i){var l=!!(t&&t.complete&&t.naturalWidth>0&&t.naturalHeight>0),s=l?t.naturalHeight:0,c=n,u=r,p=n+o,d=r+a,f=n+i,m=r+i,h=n+o-i,g=r+a-i;function x(n,r,c,u,p,d,f,m,h,g,x,y){if(e.save(),e.beginPath(),e.moveTo(n,r),e.lineTo(c,u),e.lineTo(f,m),e.lineTo(p,d),e.closePath(),e.clip(),l){e.save(),e.translate(g,x),e.rotate(y);var v=i/s;e.scale(v,v);var b=e.createPattern(t,"repeat");if(b){e.fillStyle=b;var Y=Math.max(o,a)/v;e.fillRect(-Y,-2,3*Y,s+4)}else e.fillStyle=Fp,e.fillRect(-1e4,-2,2e4,s+4);e.restore()}else e.fillStyle=Fp,e.fill();var M="tb"===h?e.createLinearGradient(n,r,p,d):e.createLinearGradient(n,r,c,u);M.addColorStop(0,"rgba(255,255,255,0.09)"),M.addColorStop(.4,"rgba(255,255,255,0.02)"),M.addColorStop(1,"rgba(0,0,0,0.10)"),e.fillStyle=M,e.fill(),e.restore()}x(c,u,p,u,f,m,h,m,"tb",c,u,0),x(p,d,c,d,h,g,f,g,"tb",p,d,Math.PI),x(c,d,c,u,f,g,f,m,"lr",c,d,-Math.PI/2),x(p,u,p,d,h,m,h,g,"lr",p,u,Math.PI/2)}function Rp(e){return Rp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rp(e)}function Qp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Hp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qp(Object(n),!0).forEach(function(t){Kp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Kp(e,t,n){return(t=function(e){var t=function(e){if("object"!=Rp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Rp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Rp(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jp=19.05,qp=6.35;function _p(e,t){return String("mm"===t?Math.round(e):Number(("cm"===t?e/10:e/25.4).toFixed("cm"===t?1:2)))}var $p=function(e){return"in"===e?'"':e};function ed(e,t,n){return"".concat(_p(e,n),"×").concat(_p(t,n)).concat($p(n))}function td(e){var t=e.widthMm,n=e.heightMm,r=e.unit,o=e.mountBorderMm;return Hp(Hp(Kp({Size:"".concat(_p(t,r)," × ").concat(_p(n,r)," ").concat(r)},e.hasCustomPrint?"Print size":"Opening size",ed(t,n,r)),null!=o?{"Mount border":"".concat(_p(o,r)).concat($p(r)),"Mount opening":ed(t,n,r),"Mount external":ed(t+2*o,n+2*o,r)}:{}),{},{_unit:r})}
2function nd(e){return nd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nd(e)}function rd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function od(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rd(Object(n),!0).forEach(function(t){ad(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ad(e,t,n){return(t=function(e){var t=function(e){if("object"!=nd(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=nd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==nd(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function id(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||ld(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ld(e,t){if(e){if("string"==typeof e)return sd(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sd(e,t):void 0}}function sd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var cd=function(t){var n=t.patternKey,r=t.stripeHex,o=(0,e.useRef)(null);return(0,e.useEffect)(function(){var e=o.current;if(e){var t=e.getContext("2d");t&&(t.clearRect(0,0,e.width,e.height),se().paintMountFill(t,0,0,e.width,e.height,120,{premium:!0,pattern:se().patternByKey(n),stripeColour:r}))}},[n,r]),(0,Zt.jsx)("canvas",{ref:o,width:48,height:30,className:"tpe-w-full tpe-h-full tpe-block"})},ud=function(t){var n=t.moulding,r=t.large,o=void 0!==r&&r,a=(0,e.useRef)(null);return(0,e.useEffect)(function(){var e=!1,t=function(t){if(!e&&a.current){var r=a.current,i=r.getContext("2d");if(i){var l=r.width,s=r.height;i.clearRect(0,0,l,s),i.fillStyle="#fff",i.fillRect(0,0,l,s),Bp(i,t,0,0,l,s,Math.max(12,Math.min(o?29:21,9+n.mouldingWidthMm*(o?.55:.38))))}}};if(!n.textureUrl)return t(null),function(){e=!0};var r=new Image;return r.crossOrigin="anonymous",r.onload=function(){return t(r)},r.onerror=function(){return t(null)},r.src=n.textureUrl+(n.textureUrl.includes("?")?"&":"?")+"cf-picker=1",function(){e=!0}},[n.code,n.textureUrl,n.mouldingWidthMm,o]),(0,Zt.jsx)("canvas",{ref:a,width:o?168:144,height:o?104:72,className:"tpe-block tpe-h-full tpe-w-full","aria-hidden":"true"})},pd=function(t){var n=t.moulding,r=id((0,e.useState)(!1),2),o=r[0],a=r[1];return(0,e.useEffect)(function(){return a(!1)},[n.code,n.detailUrl]),!n.detailUrl||o?(0,Zt.jsx)(ud,{moulding:n,large:!0}):(0,Zt.jsx)("img",{src:n.detailUrl,alt:"".concat(n.name," mitred corner"),onError:function(){return a(!0)},className:"tpe-block tpe-h-full tpe-w-full tpe-object-cover"})},dd=function(t){var n=t.moulding,r=t.onClose,o=(0,e.useRef)(null);return(0,e.useEffect)(function(){var e,t=document.activeElement;null===(e=o.current)||void 0===e||e.focus();var n=function(e){"Escape"===e.key&&r()};return document.addEventListener("keydown",n),function(){document.removeEventListener("keydown",n),null==t||t.focus()}},[r]),(0,y.createPortal)((0,Zt.jsx)("div",{className:"tpe-fixed tpe-inset-0 tpe-z-[100001] tpe-flex tpe-items-end md:tpe-items-center tpe-justify-center tpe-bg-black/50 tpe-p-0 md:tpe-p-4",role:"dialog","aria-modal":"true","aria-labelledby":"tpe-moulding-detail-title",onClick:r,children:(0,Zt.jsxs)("div",{className:"tpe-w-full tpe-max-w-2xl tpe-overflow-hidden tpe-rounded-t-2xl md:tpe-rou
2nded-2xl tpe-bg-white tpe-shadow-2xl",onClick:function(e){return e.stopPropagation()},children:[(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-start tpe-justify-between tpe-gap-4 tpe-border-b tpe-border-gray-100 tpe-p-5",children:[(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("p",{className:"tpe-text-[10px] tpe-font-semibold tpe-text-gray-500",children:"Frame details"}),(0,Zt.jsx)("h3",{id:"tpe-moulding-detail-title",className:"tpe-mt-1 tpe-text-lg tpe-font-bold tpe-leading-tight tpe-text-gray-950",children:n.name}),(0,Zt.jsxs)("p",{className:"tpe-mt-1 tpe-text-xs tpe-text-gray-500",children:[Math.round(n.mouldingWidthMm),n.mouldingDepthMm?" × ".concat(Math.round(n.mouldingDepthMm)):"","mm · ",Yd(n)," profile"]})]}),(0,Zt.jsx)("button",{ref:o,onClick:r,"aria-label":"Close frame details",className:"tpe-flex tpe-h-9 tpe-w-9 tpe-shrink-0 tpe-items-center tpe-justify-center tpe-rounded-full hover:tpe-bg-gray-100 tpe-text-xl",children:"×"})]}),(0,Zt.jsxs)("div",{className:"tpe-grid ".concat(n.detailUrl&&n.profileUrl?"md:tpe-grid-cols-2":"tpe-grid-cols-1"," tpe-gap-4 tpe-bg-gray-50 tpe-p-5"),children:[n.detailUrl&&(0,Zt.jsxs)("figure",{className:"tpe-min-w-0",children:[(0,Zt.jsx)("img",{src:n.detailUrl,alt:"".concat(n.name," corner detail"),className:"tpe-h-56 tpe-w-full tpe-rounded-lg tpe-bg-gray-100 tpe-object-cover"}),(0,Zt.jsx)("figcaption",{className:"tpe-mt-2 tpe-text-xs tpe-font-medium tpe-text-gray-600",children:"Corner and finish"})]}),n.profileUrl&&(0,Zt.jsxs)("figure",{className:"tpe-min-w-0",children:[(0,Zt.jsx)("img",{src:n.profileUrl,alt:"".concat(n.name," profile"),className:"tpe-h-56 tpe-w-full tpe-rounded-lg tpe-bg-gray-100 tpe-object-contain",style:{mixBlendMode:"multiply"}}),(0,Zt.jsx)("figcaption",{className:"tpe-mt-2 tpe-text-xs tpe-font-medium tpe-text-gray-600",children:"Side profile"})]})]})]})}),document.body)},fd=function(e){var t=e.moulding;return(0,Zt.jsx)("span",{className:"tpe-block tpe-h-full tpe-w-full",style:t.textureUrl?{backgroundImage:"url(".concat(t.textureUrl,")"),backgroundRepeat:"repeat-x",backgroundPosition:"left center",backgroundSize:"auto 100%"}:{background:"#3a2c1d"},"aria-hidden":"true"})},md="tpe-font-Archivo tpe-font-bold",hd="tpe-text-xs tpe-font-semibold tpe-text-gray-800 tpe-mb-2 tpe-block",gd="tpe-border-gray-900 tpe-ring-1 tpe-ring-gray-900/15 tpe-text-gray-900",xd="tpe-border-gray-200 hover:tpe-border-gray-400 tpe-text-gray-700",yd="tpe-px-3 tpe-py-1.5 tpe-rounded-full tpe-text-xs tpe-font-bold tpe-border-2 tpe-transition-all tpe-bg-white",vd=function(e){var t=e.icon,n=e.title,r=e.description,o=e.summary,a=e.children,i=e.mobileHidden,l=void 0!==i&&i,s=e.desktopHidden,c=void 0!==s&&s,u=l&&c?"tpe-hidden":l?"tpe-hidden md:tpe-block":c?"md:tpe-hidden":"";return(0,Zt.jsxs)("section",{className:"tpe-cf-panel tpe-border-b tpe-border-gray-100 last:tpe-border-0 ".concat(u),children:[(0,Zt.jsxs)("div",{className:"tpe-w-full tpe-flex tpe-items-start tpe-gap-3 tpe-px-6 tpe-pt-5 tpe-pb-3 tpe-text-left",children:[(0,Zt.jsx)("div",{className:"md:tpe-hidden tpe-w-7 tpe-h-7 tpe-rounded-md tpe-bg-gray-100 tpe-text-gray-700 tpe-flex tpe-items-center tpe-justify-center tpe-shrink-0",children:t}),(0,Zt.jsxs)("div",{className:"tpe-flex-1 tpe-min-w-0",children:[(0,Zt.jsx)("h3",{style:{margin:0},className:"".concat(md," tpe-text-gray-900 tpe-text-lg tpe-tracking-tight tpe-leading-tight"),children:n}),r?(0,Zt.jsx)("p",{className:"tpe-mt-1 tpe-text-xs tpe-text-gray-500 tpe-leading-relaxed",children:r}):o&&(0,Zt.jsx)("div",{className:"tpe-mt-1 tpe-text-xs tpe-text-gray-500 tpe-truncate tpe-leading-tight",children:o})]})]}),(0,Zt.jsx)("div",{className:"tpe-px-6 tpe-pb-6 tpe-space-y-4",children:a})]})},bd=function(e){var t=e.value;return(0,Zt.jsxs)("span",{className:"tpe-inline-flex tpe-items-center tpe-gap-1.5 tpe-px-3 tpe-py-1.5 tpe-rounded-full tpe-text-xs tpe-font-bold tpe-bg-gray-100 tpe-text-gray-700",children:[(0,Zt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Zt.jsx)("polyline",{points:"20 6 9 17 4 12"})}),t]})},Yd=function(e){var t=Number(e.mouldingWidthMm)||0,n=Number(e.mouldingDepthMm)||0;return t<=10||t<=17&&n<=17?"Slim":n>=30?"Gallery":"Classic"},Md={Slim:"A minimal face that keeps the focus on the artwork. Particularly suited to smaller pieces.",Classic:"A balanced profile with more visual presence. A versatile choice across most artwork sizes.",Gallery:"A deeper, more substantial profile for a layered, gallery-style presentation."};const wd=function(t){var n,r,o,a,i,l,s=t.cfg,c=t.state,u=t.onChange,p=t.currency,d=t.previewImageUrl,f=t.imageWidthPx,m=t.imageHeightPx,h=t.onUploadImage,g=t.onRemoveImage,x=t.priceLines,y=void 0===x?[]:x,v=t.totalPrice,b=void 0===v?0:v,Y=t.countryCode,M=void 0===Y?"GB":Y,w=t.mobileSection,S=void 0===w?"SIZE":w,j=(0,e.useMemo)(function(){return ue(c,s,!!d).moulding},[c,s,d]),T=(0,e.useRef)(null),N=id((0,e.useState)("FRAME"),2),W=N[0],I=N[1],U=function(e){return u(od(od({},c),e))},k=(0,e.useMemo)(function(){var e=new Set(pe(s).map(Yd));return["Slim","Classic","Gallery"].filter(function(t){return e.has(t)})},[s]),D=function(e){var t=s.mouldings.find(function(t){return t.code===e});return t?Yd(t):k[0]||"Classic"},A=id((0,e.useState)(function(){return D(c.mouldingCode)}),2),C=A[0],L=A[1],O=(0,e.useMemo)(function(){return pe(s).filter(function(e){return Yd(e)===C})},[s,C]);(0,e.useEffect)(function(){var e=D(c.mouldingCode);e!==C&&L(e)},[c.mouldingCode,s]);var E=s.glazing.options.length>1,V=s.paper.options.length>1,z=s.mount.options.length>0,X=s.mount.options.length+(s.mount.allowNone?1:0),P=c.mountId&&s.mou
2nt.options.find(function(e){return e.id===c.mountId})||null,Z=s.glazing.options.find(function(e){return e.id===c.glazingId})||s.glazing.options[0]||null,G=s.paper.options.find(function(e){return e.id===c.paperId})||s.paper.options[0]||null,F=(null===(n=s.mouldings.find(function(e){return e.code===c.mouldingCode}))||void 0===n?void 0:n.mouldingWidthMm)||0,B=2*(c.mountId?Math.max(0,c.mountBorderMm):0)+2*F,R=Math.max(1,s.minSideMm-B),Q=null!==(r=s.maxPrintWidthMm)&&void 0!==r?r:609.6,H=null!==(o=s.maxFrameOnlyWidthMm)&&void 0!==o?o:660.4,K=null!==(a=s.maxHeightMm)&&void 0!==a?a:1300,J=null!==(i=s.maxMountedExternalMm)&&void 0!==i?i:1e3,q=null!==(l=s.maxMountBorderMm)&&void 0!==l?l:152.4,_=d?Q:H,$=function(e,t){var n=t<=_?K:_,r=c.mountId?Math.max(R,J-B):1/0;return Math.max(R,Math.min(n,r,e))},ee=de(c,s,!!d),te=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.heightMm;return $(e,t)},ne=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.widthMm;return $(e,t)},re=function(e){var t=te(e);if(c.lockAspect&&c.widthMm>0){var n=c.heightMm/c.widthMm;U({widthMm:t,heightMm:ne(Math.round(t*n),t)})}else U({widthMm:t})},oe=function(e){var t=ne(e);if(c.lockAspect&&c.heightMm>0){var n=c.widthMm/c.heightMm;U({heightMm:t,widthMm:te(Math.round(t*n),t)})}else U({heightMm:t})},ae=(0,e.useRef)(null);(0,e.useEffect)(function(){if(d&&f&&m){var e="".concat(d,"|").concat(f,"x").concat(m);if(ae.current!==e){ae.current=e;var t=m/f;U({heightMm:ne(Math.round(c.widthMm*t)),imageCrop:null})}}else d||(ae.current=null)},[d,f,m]);var ie=id((0,e.useState)(!1),2),le=ie[0],ce=ie[1],fe=id((0,e.useState)(!1),2),ye=fe[0],ve=fe[1],be=id((0,e.useState)(!1),2),Ye=be[0],Me=be[1],we=(0,e.useRef)(null),Se=function(e){I(e),requestAnimationFrame(function(){var e;return null===(e=we.current)||void 0===e||null===(e=e.parentElement)||void 0===e?void 0:e.scrollTo({top:0,behavior:"smooth"})})},je=function(e){e&&/^image\//.test(e.type)&&h&&h(e)},Te=c.unit,Ne=he(c.widthMm,Te),We=he(c.heightMm,Te),Ie="mm"===Te?1:.1,Ue=id((0,e.useState)(String(Ne)),2),ke=Ue[0],De=Ue[1],Ae=id((0,e.useState)(String(We)),2),Ce=Ae[0],Le=Ae[1],Oe=(0,e.useRef)(!1),Ee=(0,e.useRef)(!1);(0,e.useEffect)(function(){Oe.current||De(String(Ne))},[Ne,Te]),(0,e.useEffect)(function(){Ee.current||Le(String(We))},[We,Te]);var Ve,ze,Xe,Pe,Ze=(0,e.useMemo)(function(){if(!f||!m)return null;var e=Math.max(f,m),t=Math.min(f,m),n=Math.max(c.widthMm,c.heightMm),r=Math.min(c.widthMm,c.heightMm),o=xe(e,n),a=xe(t,r);return null==o||null==a?null:Math.min(o,a)},[f,m,c.widthMm,c.heightMm]),Ge=(0,e.useMemo)(function(){if(!f||!m)return null;var e=Math.min(f,m)/150*25.4,t=Math.max(c.widthMm,c.heightMm)/Math.max(1,Math.min(c.widthMm,c.heightMm));return Math.round(e*t)},[f,m,c.widthMm,c.heightMm]),Fe=(0,e.useMemo)(function(){if(!f||!m)return!1;var e=f/m,t=c.widthMm/Math.max(1,c.heightMm);return Math.abs(e-t)/Math.max(e,t)>.01},[f,m,c.widthMm,c.heightMm]),Be=function(e,t){return c.widthMm===e&&c.heightMm===t||c.widthMm===t&&c.heightMm===e},Re="".concat(he(c.widthMm,Te)," × ").concat(he(c.heightMm,Te)," ").concat(Te),Qe=[Re,(null==j?void 0:j.name)||"Choose a frame",P?"".concat(P.label,", ").concat(_p(c.mountBorderMm,Te)).concat("in"===Te?'"':Te):"No mount",d?"Print included":"Frame only"];return(0,Zt.jsxs)("div",{ref:we,className:"tpe-font-Jost",children:[(0,Zt.jsx)("nav",{"aria-label":"Custom frame options",className:"tpe-hidden md:tpe-flex tpe-sticky tpe-top-0 tpe-z-20 tpe-bg-white tpe-border-b tpe-border-gray-200 tpe-px-3 tpe-overflow-x-auto",children:[{id:"ARTWORK",label:"Artwork",optional:!0},{id:"SIZE",label:"Size"},{id:"FRAME",label:"Frame"},{id:"MOUNT",label:"Mount",optional:!0},{id:"MATERIALS",label:"Materials"}].map(function(e){return(0,Zt.jsxs)("button",{onClick:function(){return Se(e.id)},"aria-current":W===e.id?"step":void 0,className:"tpe-relative tpe-flex-1 tpe-min-w-fit tpe-px-2 tpe-py-3 tpe-text-[11px] tpe-font-semibold tpe-transition-colors ".concat(W===e.id?"tpe-text-gray-950":"tpe-text-gray-500 hover:tpe-text-gray-800"),children:[(0,Zt.jsx)("span",{children:e.label}),e.optional&&(0,Zt.jsx)("span",{className:"tpe-block tpe-text-[8px] tpe-font-medium tpe-leading-none tpe-mt-0.5 tpe-text-gray-400",children:"Optional"}),W===e.id&&(0,Zt.jsx)("span",{className:"tpe-absolute tpe-left-2 tpe-right-2 tpe-bottom-0 tpe-h-0.5 tpe-bg-gray-950"})]},e.id)})}),null!=Ze&&Ze<150&&(0,Zt.jsx)("div",{className:"tpe-px-6 tpe-pt-4 ".concat("ARTWORK"!==S&&"SIZE"!==S?"tpe-hidden md:tpe-block":""),children:(0,Zt.jsxs)("div",{className:"tpe-rounded-lg tpe-px-3 tpe-py-2 tpe-text-xs tpe-font-medium ".concat(Ze<120?"tpe-bg-red-50 tpe-text-red-700":"tpe-bg-amber-50 tpe-text-amber-700"),children:["⚠ At ",ed(c.widthMm,c.heightMm,Te)," your image prints at ~",Math.round(Ze)," DPI",Ze<120?" — likely soft.":" — may look slightly soft.",Ge?(0,Zt.jsxs)(Zt.Fragment,{children:[" Recommended max ≈ ",_p(Ge,Te),"in"===Te?'"':Te," long edge."]}):null]})}),h&&(0,Zt.jsxs)(vd,{title:"Your artwork",description:d?"Review the image, crop and print fit before ordering.":"Add artwork for us to print, or skip this for a frame-only order.",mobileHidden:"ARTWORK"!==S,desktopHidden:"ARTWORK"!==W,summary:d?c.imageCrop?"Cropped to your frame size":Fe?"Edges will crop to fit":"Whole image, nothing cropped":"Upload a photo or print",icon:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),(0,Zt.jsx)("circle",{cx:"8.5",cy:"8.5",r:"1.5"}
2),(0,Zt.jsx)("path",{d:"m21 15-5-5L5 21"})]}),children:[(0,Zt.jsx)("input",{ref:T,type:"file",accept:"image/*",className:"tpe-hidden",onChange:function(e){var t;je(null===(t=e.target.files)||void 0===t?void 0:t[0]),e.currentTarget.value=""}}),d?(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-gap-3",children:[(0,Zt.jsx)("img",{src:d,alt:"",className:"tpe-w-14 tpe-h-14 tpe-rounded-lg tpe-object-cover tpe-border tpe-border-gray-200"}),(0,Zt.jsx)("button",{onClick:function(){var e;return null===(e=T.current)||void 0===e?void 0:e.click()},className:"".concat(yd," ").concat(xd),children:"Replace"}),g&&(0,Zt.jsx)("button",{onClick:g,className:"tpe-text-xs tpe-font-bold tpe-text-gray-400 hover:tpe-text-red-600 tpe-transition-colors",children:"Remove"})]}),(0,Zt.jsxs)("div",{className:"tpe-flex tpe-gap-2",children:[(0,Zt.jsxs)("button",{onClick:function(){return ce(!0)},className:"".concat(yd," ").concat(xd," tpe-flex tpe-items-center tpe-gap-1.5"),children:[(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("path",{d:"M6 2v14a2 2 0 0 0 2 2h14"}),(0,Zt.jsx)("path",{d:"M18 22V8a2 2 0 0 0-2-2H2"})]}),c.imageCrop?"Adjust crop":"Crop / reposition"]}),Fe&&(0,Zt.jsx)("button",{onClick:function(){if(f&&m){var e=m/f;U({heightMm:ne(Math.round(c.widthMm*e)),imageCrop:null})}},className:"".concat(yd," ").concat(xd),children:"Fit frame to photo"})]}),(0,Zt.jsx)("p",{className:"tpe-text-[10px] tpe-text-gray-400 tpe-leading-tight",children:Fe?"Your frame is a different shape to your photo, so the edges crop. Crop it yourself, or resize the frame to the photo.":"The frame matches your photo’s shape — the whole image prints."})]}):(0,Zt.jsx)("div",{onDragOver:function(e){e.preventDefault(),Me(!0)},onDragLeave:function(){return Me(!1)},onDrop:function(e){var t;e.preventDefault(),Me(!1),je(null===(t=e.dataTransfer.files)||void 0===t?void 0:t[0])},children:(0,Zt.jsxs)("button",{onClick:function(){var e;return null===(e=T.current)||void 0===e?void 0:e.click()},className:"tpe-w-full tpe-py-6 tpe-rounded-xl tpe-border-2 tpe-border-dashed tpe-text-sm tpe-font-bold tpe-transition-all tpe-flex tpe-flex-col tpe-items-center tpe-gap-1.5 ".concat(Ye?"tpe-border-brand-lime tpe-bg-brand-lime/10 tpe-text-gray-800":"tpe-border-gray-300 hover:tpe-border-brand-lime tpe-text-gray-500 hover:tpe-text-gray-700"),children:[(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),(0,Zt.jsx)("polyline",{points:"17 8 12 3 7 8"}),(0,Zt.jsx)("line",{x1:"12",y1:"3",x2:"12",y2:"15"})]}),"Upload your photo or print",(0,Zt.jsx)("span",{className:"tpe-text-[10px] tpe-font-medium tpe-text-gray-400",children:"or drop it here"})]})})]}),le&&d&&(0,Zt.jsx)(gl,{imageUrl:d,initialCrop:c.imageCrop||{zoom:1,x:50,y:50},aspectRatio:c.widthMm/Math.max(1,c.heightMm),onCancel:function(){return ce(!1)},onSave:function(e){U({imageCrop:e}),ce(!1)}}),(0,Zt.jsxs)(vd,{title:"Size",description:"Enter the artwork or opening size you need. The outside frame size updates automatically.",mobileHidden:"SIZE"!==S,desktopHidden:"SIZE"!==W,summary:Re,icon:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("path",{d:"M21 6H3M21 6v12M3 6v12M21 18H3"}),(0,Zt.jsx)("path",{d:"M7 6v4M17 6v4M12 14v4"})]}),children:[(0,Zt.jsxs)("div",{children:[(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-justify-between tpe-mb-2",children:[(0,Zt.jsx)("span",{className:hd.replace(" tpe-mb-2",""),children:"Dimensions"}),(0,Zt.jsx)("div",{className:"tpe-flex tpe-gap-1",children:["cm","in","mm"].map(function(e){return(0,Zt.jsx)("button",{onClick:function(){return U(function(e,t){if("in"===t){var n=Math.max(0,Math.round((e.mountBorderMm-Jp)/qp));return{unit:t,mountBorderMm:Math.round(100*(Jp+n*qp))/100}}return{unit:t,widthMm:Math.round(e.widthMm),heightMm:Math.round(e.heightMm),mountBorderMm:Math.max(20,5*Math.round(e.mountBorderMm/5))}}(c,e))},"aria-pressed":Te===e,className:"tpe-px-2.5 tpe-py-1 tpe-rounded-md tpe-text-[11px] tpe-font-bold tpe-border-2 tpe-transition-all ".concat(Te===e?gd:xd),children:e},e)})})]}),(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-gap-2",children:[(0,Zt.jsx)("input",{type:"number",inputMode:"decimal",value:ke,step:Ie,"aria-label":"Artwork width in ".concat(Te),onFocus:function(){Oe.current=!0},onChange:function(e){De(e.target.value);var t=Number.parseFloat(e.target.value);Number.isFinite(t)&&t>0&&re(ge(t,Te))},onBlur:function(e){var t,n;Oe.current=!1,t=e.target.value,n=Number.parseFloat(t),Number.isFinite(n)&&n>0&&re(ge(n,Te)),De(String(he(Number.isFinite(n)&&n>0?te(ge(n,Te)):c.widthMm,Te)))},onKeyDown:function(e){"Enter"===e.key&&e.currentTarget.blur()},className:"tpe-flex-1 tpe-min-w-0 tpe-p-3 tpe-border tpe-border-gray-200 tpe-rounded-xl tpe-text-[16
2px] tpe-shadow-sm focus:tpe-ring-2 focus:tpe-ring-gray-900 tpe-outline-none tpe-transition-all tpe-bg-white"}),(0,Zt.jsx)("span",{className:"tpe-text-gray-400 tpe-font-bold",children:"×"}),(0,Zt.jsx)("input",{type:"number",inputMode:"decimal",value:Ce,step:Ie,"aria-label":"Artwork height in ".concat(Te),onFocus:function(){Ee.current=!0},onChange:function(e){Le(e.target.value);var t=Number.parseFloat(e.target.value);Number.isFinite(t)&&t>0&&oe(ge(t,Te))},onBlur:function(e){var t,n;Ee.current=!1,t=e.target.value,n=Number.parseFloat(t),Number.isFinite(n)&&n>0&&oe(ge(n,Te)),Le(String(he(Number.isFinite(n)&&n>0?ne(ge(n,Te)):c.heightMm,Te)))},onKeyDown:function(e){"Enter"===e.key&&e.currentTarget.blur()},className:"tpe-flex-1 tpe-min-w-0 tpe-p-3 tpe-border tpe-border-gray-200 tpe-rounded-xl tpe-text-[16px] tpe-shadow-sm focus:tpe-ring-2 focus:tpe-ring-gray-900 tpe-outline-none tpe-transition-all tpe-bg-white"})]}),(0,Zt.jsxs)("label",{className:"tpe-flex tpe-items-center tpe-gap-2 tpe-text-xs tpe-font-medium tpe-text-gray-600 tpe-mt-2 tpe-cursor-pointer",children:[(0,Zt.jsx)("input",{type:"checkbox",checked:c.lockAspect,onChange:function(e){return U({lockAspect:e.target.checked})},className:"tpe-accent-brand-lime tpe-w-4 tpe-h-4"}),"Lock aspect ratio"]}),(0,Zt.jsxs)("p",{className:"tpe-mt-2 tpe-text-[10px] tpe-leading-relaxed tpe-text-gray-500",children:[d?"With printing: up to ".concat(he(Q,Te)," × ").concat(he(K,Te)," ").concat(Te," — either way round."):"Frame only: up to ".concat(he(H,Te)," × ").concat(he(K,Te)," ").concat(Te," — either way round."),c.mountId?" Mounted frames must also fit within ".concat(he(J,Te)," × ").concat(he(J,Te)," ").concat(Te," outside."):""]}),(0,Zt.jsx)("p",{className:"tpe-mt-2 tpe-text-[10px] tpe-leading-relaxed tpe-text-gray-500",children:c.mountId?"Your chosen size refers to the artwork opening. The finished frame will be larger once the mount and frame are added.":"Your chosen size refers to the artwork opening. The finished frame will be larger once the frame is added."}),ee&&(0,Zt.jsx)("div",{className:"tpe-mt-2 tpe-rounded-lg tpe-px-3 tpe-py-2 tpe-text-xs tpe-font-medium tpe-bg-red-50 tpe-text-red-700",children:ee})]}),(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:hd,children:"Quick sizes"}),(0,Zt.jsx)("div",{className:"tpe-flex tpe-flex-wrap tpe-gap-1.5",children:me.map(function(e){return(0,Zt.jsx)("button",{onClick:function(){return U({widthMm:te(e.widthMm),heightMm:ne(e.heightMm)})},"aria-pressed":Be(e.widthMm,e.heightMm),className:"tpe-min-h-11 tpe-px-4 tpe-py-2.5 tpe-rounded-lg tpe-text-sm tpe-font-bold tpe-border-2 tpe-transition-all tpe-bg-white ".concat(Be(e.widthMm,e.heightMm)?gd:xd),children:e.label},e.label)})})]})]}),(0,Zt.jsxs)(vd,{title:"Frame",description:"Choose a profile first, then compare its available material finishes.",mobileHidden:"FRAME"!==S,desktopHidden:"FRAME"!==W,summary:null==j?void 0:j.name,icon:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"1"}),(0,Zt.jsx)("rect",{x:"7",y:"7",width:"10",height:"10",rx:"1"})]}),children:[(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:hd,children:"1. Moulding type"}),(0,Zt.jsx)("div",{className:"tpe-grid tpe-grid-cols-3 tpe-gap-1.5",children:k.map(function(e){var t=pe(s).filter(function(t){return Yd(t)===e}).length,n="Slim"===e?"Minimal profile":"Classic"===e?"More presence":"Deep profile";return(0,Zt.jsxs)("button",{onClick:function(){return function(e){L(e);var t=pe(s).filter(function(t){return Yd(t)===e});t.length&&!t.some(function(e){return e.code===c.mouldingCode})&&U({mouldingCode:t[0].code})}(e)},"aria-pressed":C===e,className:"tpe-min-w-0 tpe-rounded-lg tpe-border-2 tpe-px-2 tpe-py-2 tpe-text-left tpe-transition-all ".concat(C===e?gd:xd),children:[(0,Zt.jsxs)("span",{className:"tpe-flex tpe-items-center tpe-justify-between tpe-gap-1 tpe-text-xs tpe-font-bold",children:[(0,Zt.jsx)("span",{children:e}),(0,Zt.jsx)("span",{className:"tpe-text-[9px] tpe-text-gray-400",children:t})]}),(0,Zt.jsx)("span",{className:"tpe-block tpe-text-[9px] tpe-font-medium tpe-text-gray-400 tpe-leading-tight tpe-mt-0.5",children:n})]},e)})}),(0,Zt.jsx)("p",{className:"tpe-mt-2 tpe-text-[11px] tpe-text-gray-500 tpe-leading-relaxed",children:Md[C]})]}),j&&(0,Zt.jsxs)("div",{className:"tpe-grid tpe-grid-cols-[96px_1fr] tpe-items-center tpe-gap-3 tpe-border-y tpe-border-gray-200 tpe-py-2",children:[(0,Zt.jsx)("div",{className:"tpe-h-16 tpe-overflow-hidden tpe-rounded-md tpe-bg-gray-50",children:(0,Zt.jsx)(pd,{moulding:j})}),(0,Zt.jsxs)("div",{className:"tpe-min-w-0",children:[(0,Zt.jsx)("span",{className:"tpe-text-[10px] tpe-font-medium tpe-text-gray-500",children:"Selected frame"}),(0,Zt.jsx)("p",{className:"tpe-text-sm tpe-font-bold tpe-text-gray-900 tpe-truncate",children:j.name}),(0,Zt.jsxs)("p",{className:"tpe-text-[10px] tpe-text-gray-500",children:[Math.round(j.mouldingWidthMm),j.mouldingDepthMm?" × ".concat(Math.round(j.mouldingDepthMm)):"","mm · ",Yd(j)," profile"]}),j.family&&(0,Zt.jsx)("p",{className:"tpe-text-[10px] tpe-text-gray-500 tpe-truncate tpe-mt-0.5",children:j.family}),(j.detailUrl||j.profileUrl)&&(0,Zt.jsx)("button",{onClick:function(){return ve(!0)},className:"tpe-mt-1 tpe-text-[11px] tpe-font-semibold tpe-text-gray-700 tpe-underline tpe-underline-offset-2 hover:tpe-text-gray-950",children:"View frame details"})]})]}),j&&ye&&(0,Zt.jsx)(dd,{moulding:j,onClose:function(){return ve(!1)}}),(0,Zt.jsxs)("div",{children:[(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-end tpe-justify-between tpe-mb-2",children:[(0,Zt.jsx)("label",{className:hd.replace(" tpe-mb-2",""),children:"2. Choose a finish"}),(0,Zt.jsxs)("span",{className:"tpe-text-[9px] tpe-text-gray-400",children:[O.length," options"]})]}),(0,Zt.jsx)("div",{className:"tpe-grid tpe-grid-cols-3 tpe-gap-2",children:O.map(function(e){var t=e.mouldingWidthMm?"".concat(Math.round(e.mouldingWidthMm)).concat(e.mouldingDepthMm?"×".concat(Math.round(e.mouldingDepthMm)):"","mm"):"";return(0,Zt.jsxs)("div",{className:"tpe-flex tpe-min-w-0 tpe-flex-col tpe-gap-1",children:[(0,Zt.jsxs)("button",{title:e.name,"aria-label":"".concat(e.name).concat(t?", ".concat(t," wide by deep"):""),"aria-pressed":c.mouldingCode===e.code,onClick:function(){return U({mouldingCode:e.code})},className:"tpe-relative tpe-w-full tpe-h-14 tpe-rounded-md tpe-border tpe-overflow-hidden tpe-transition-all ".concat(c.mouldingCode===e.code?"tpe-border-gray-950 tpe-ring-1 tpe-ring-gray-950/20":"tpe-border-gray-200 hover:tpe-border-gray-500"),children:[(0,Zt.jsx)(fd,{moulding:e}),c.mouldingCode===e.code&&(0,Zt.jsx)("span",{className:"tpe-absolute tpe-right-1 tpe-top-1 tpe-flex tpe-h-4 tpe-w-4 tpe-items-center tpe-justify-center tpe-rounded-full tpe-bg-gray-950 tpe-text-[9px] tpe-font-bold tpe-text-white",children:"✓"})]}),(0,Zt.jsx)("span",{className:"tpe-truncate tpe-text-[10px] tpe-font-bold tpe-leading-tight ".concat(c.mouldingCode===e.code?"tpe-text-gray-900":"tpe-text-gray-600"),children:e.name}),t&&(0,Zt.jsx)("span",{className:"tpe-text-[9px] tpe-leading-none tpe-text-gray-400",children:t})]},e.code)})})]}),(0,Zt.jsx)("p",{className:"tpe-text-[10px] tpe-text-gray-400 tpe-leading-tight",children:"Width × depth of the frame profile."})]}),z&&(0,Zt.jsxs)(vd,{title:"Mount",description:"Add breathing room around the artwork, or choose none for a clean edge-to-edge presentation.",mobileHidden:"FINISH"!==S,desktopHidden:"MOUNT"!==W,summary:P?"".concat(P.label).concat(P.patterned?" · ".concat((Xe=c.mountPattern,se().patternByKey(Xe).label)," · ").concat((Ve=c.mountStripeHex,(null===(ze=se().STRIPE_PRESETS.find(function(e){return e.hex.toLowerCase()===Ve.toLowerCase()}))||void 0===ze?void 0:ze.label)||Ve)):" · ".concat(c.mountColour)," · ").concat(_p(c.mountBorderMm,Te)).concat("in"===Te?'"':Te," border"):"None",icon:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"1"}
2),(0,Zt.jsx)("rect",{x:"8",y:"8",width:"8",height:"8",rx:"1"})]}),children:[(0,Zt.jsxs)("div",{className:"tpe-grid tpe-gap-2 ".concat(3===X?"tpe-grid-cols-3":"tpe-grid-cols-2"),children:[s.mount.allowNone&&(0,Zt.jsx)("button",{onClick:function(){return U({mountId:null})},"aria-pressed":null===c.mountId,className:"tpe-min-w-0 tpe-rounded-lg tpe-border-2 tpe-px-2 tpe-py-2.5 tpe-text-xs tpe-font-bold tpe-transition-all ".concat(null===c.mountId?gd:xd),children:"None"}),s.mount.options.map(function(e){return(0,Zt.jsxs)("button",{onClick:function(){return U({mountId:e.id})},"aria-pressed":c.mountId===e.id,className:"tpe-min-w-0 tpe-rounded-lg tpe-border-2 tpe-px-2 tpe-py-2.5 tpe-text-[11px] tpe-font-bold tpe-leading-tight tpe-transition-all tpe-flex tpe-items-center tpe-justify-center tpe-gap-1.5 ".concat(c.mountId===e.id?gd:xd),children:[e.swatch&&(0,Zt.jsx)("span",{className:"tpe-w-3.5 tpe-h-3.5 tpe-rounded-full tpe-border tpe-border-gray-300",style:{background:e.swatch}}),e.label]},e.id)})]}),P&&!P.patterned&&(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:hd,children:"Board colour"}),(0,Zt.jsx)("div",{className:"tpe-flex tpe-gap-2",children:["white","black"].map(function(e){return(0,Zt.jsxs)("button",{onClick:function(){return U({mountColour:e})},"aria-pressed":c.mountColour===e,className:"".concat(yd," tpe-flex tpe-items-center tpe-gap-1.5 tpe-capitalize ").concat(c.mountColour===e?gd:xd),children:[(0,Zt.jsx)("span",{className:"tpe-w-3.5 tpe-h-3.5 tpe-rounded-full tpe-border tpe-border-gray-300",style:{background:"black"===e?"#1a1a1a":"#fafaf6"}}),e]},e)})})]}),P&&P.patterned&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:hd,children:"Pattern"}),(0,Zt.jsx)("div",{className:"tpe-grid tpe-grid-cols-4 tpe-gap-2",children:se().MOUNT_PATTERNS.map(function(e){return(0,Zt.jsx)("button",{title:e.label,"aria-label":e.label,"aria-pressed":c.mountPattern===e.key,onClick:function(){return U({mountPattern:e.key})},className:"tpe-rounded-lg tpe-border-2 tpe-overflow-hidden tpe-h-9 tpe-transition-all ".concat(c.mountPattern===e.key?"tpe-border-brand-lime tpe-ring-2 tpe-ring-brand-lime/40":"tpe-border-gray-200 hover:tpe-border-gray-300"),children:(0,Zt.jsx)(cd,{patternKey:e.key,stripeHex:c.mountStripeHex})},e.key)})})]}),(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:hd,children:"Pattern colour"}),(0,Zt.jsx)("div",{className:"tpe-flex tpe-flex-wrap tpe-gap-2",children:se().STRIPE_PRESETS.map(function(e){return(0,Zt.jsx)("button",{title:e.label,"aria-label":e.label,"aria-pressed":c.mountStripeHex===e.hex,onClick:function(){return U({mountStripeHex:e.hex})},className:"tpe-w-7 tpe-h-7 tpe-rounded-full tpe-border-2 tpe-transition-all ".concat(c.mountStripeHex===e.hex?"tpe-border-brand-lime tpe-ring-2 tpe-ring-brand-lime/40 tpe-scale-110":"tpe-border-gray-200 hover:tpe-border-gray-300"),style:{background:e.hex}},e.hex)})})]})]}),c.mountId&&(0,Zt.jsxs)("div",{className:"tpe-p-3 tpe-bg-white tpe-rounded-xl tpe-border tpe-border-gray-200 tpe-shadow-sm",children:[(0,Zt.jsxs)("div",{className:"tpe-flex tpe-justify-between tpe-text-xs tpe-font-bold tpe-text-gray-600 tpe-mb-2",children:[(0,Zt.jsx)("span",{children:"Border width"}),(0,Zt.jsxs)("span",{className:"tpe-text-gray-900",children:[_p(c.mountBorderMm,Te),"in"===Te?'"':Te]})]}),(0,Zt.jsxs)(zi,{className:"tpe-relative tpe-flex tpe-items-center tpe-select-none tpe-w-full tpe-h-5","aria-label":"Mount border width",min:"in"===Te?Jp:20,max:q,step:"in"===Te?qp:5,value:[c.mountBorderMm],onValueChange:function(e){var t=id(e,1)[0];return U({mountBorderMm:t})},children:[(0,Zt.jsx)(Xi,{className:"tpe-bg-gray-200 tpe-relative tpe-grow tpe-rounded-full tpe-h-1.5",children:(0,Zt.jsx)(Pi,{className:"tpe-absolute tpe-bg-brand-lime tpe-rounded-full tpe-h-full"})}),(0,Zt.jsx)(Zi,{className:"tpe-block tpe-w-5 tpe-h-5 tpe-bg-white tpe-border-2 tpe-border-gray-900 tpe-rounded-full tpe-shadow focus:tpe-outline-none focus:tpe-ring-2 focus:tpe-ring-gray-900/20"})]})]})]}),(E||s.glazing.badge)&&(0,Zt.jsx)(vd,{title:"Glazing",mobileHidden:"FINISH"!==S,desktopHidden:!0,icon:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),(0,Zt.jsx)("path",{d:"M3 9h18"})]}),children:E?(0,Zt.jsx)("div",{className:"tpe-flex tpe-flex-wrap tpe-gap-2",children:s.glazing.options.map(function(e){return(0,Zt.jsx)("button",{onClick:function(){return U({glazingId:e.id})},"aria-pressed":c.glazingId===e.id,className:"".concat(yd," ").concat(c.glazingId===e.id?gd:xd
2),children:e.label},e.id)})}):(0,Zt.jsx)(bd,{value:s.glazing.badge})}),(V||s.paper.badge)&&(0,Zt.jsx)(vd,{title:"Paper",mobileHidden:"FINISH"!==S,desktopHidden:!0,icon:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),(0,Zt.jsx)("polyline",{points:"14 2 14 8 20 8"})]}),children:V?(0,Zt.jsx)("div",{className:"tpe-flex tpe-flex-wrap tpe-gap-2",children:s.paper.options.map(function(e){return(0,Zt.jsx)("button",{onClick:function(){return U({paperId:e.id})},"aria-pressed":c.paperId===e.id,className:"".concat(yd," ").concat(c.paperId===e.id?gd:xd),children:e.label},e.id)})}):(0,Zt.jsx)(bd,{value:s.paper.badge})}),(0,Zt.jsxs)("section",{className:"".concat("MATERIALS"===W?"tpe-hidden md:tpe-block":"tpe-hidden"," tpe-cf-panel tpe-px-6 tpe-py-6"),children:[(0,Zt.jsxs)("div",{className:"tpe-mb-4",children:[(0,Zt.jsx)("span",{className:"tpe-text-[11px] tpe-font-medium tpe-text-gray-500",children:"Included with every frame"}),(0,Zt.jsx)("h3",{className:"".concat(md," tpe-mt-1 tpe-text-lg tpe-text-gray-900"),children:"Premium protection, as standard"}),(0,Zt.jsx)("p",{className:"tpe-mt-1 tpe-text-xs tpe-leading-relaxed tpe-text-gray-500",children:"We select these materials as standard for a lasting, gallery-quality finish."})]}),(0,Zt.jsxs)("div",{className:"tpe-mb-4 tpe-rounded-lg tpe-border tpe-border-gray-200 tpe-bg-gray-50 tpe-p-4",children:[(0,Zt.jsx)("p",{className:"tpe-mb-3 tpe-text-xs tpe-font-bold tpe-text-gray-900",children:"Your frame"}),(0,Zt.jsx)("div",{className:"tpe-space-y-2",children:Qe.map(function(e,t){var n=0===t?"SIZE":1===t?"FRAME":2===t?"MOUNT":"ARTWORK",r=0===t?"Artwork size":1===t?"Frame":2===t?"Mount":"Order";return(0,Zt.jsxs)("button",{type:"button",onClick:function(){return Se(n)},className:"tpe-flex tpe-w-full tpe-items-start tpe-justify-between tpe-gap-3 tpe-text-left",children:[(0,Zt.jsx)("span",{className:"tpe-text-[10px] tpe-font-medium tpe-text-gray-500",children:r}),(0,Zt.jsx)("span",{className:"tpe-text-xs tpe-font-semibold tpe-text-gray-900",children:e})]},"materials-".concat(n))})}),(0,Zt.jsxs)("div",{className:"tpe-mt-4 tpe-border-t tpe-border-gray-200 tpe-pt-3",children:[(0,Zt.jsx)("p",{className:"tpe-mb-2 tpe-text-[10px] tpe-font-bold tpe-text-gray-500",children:"Price breakdown"}),(0,Zt.jsx)("div",{className:"tpe-space-y-1.5",children:y.map(function(e){return(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-justify-between tpe-gap-3 tpe-text-xs tpe-text-gray-600",children:[(0,Zt.jsx)("span",{children:e.label}),(0,Zt.jsxs)("span",{className:"tpe-font-medium tpe-text-gray-900",children:[p,Number(e.amount).toFixed(2)]})]},e.label)})}),(0,Zt.jsxs)("div",{className:"tpe-mt-2 tpe-flex tpe-items-center tpe-justify-between tpe-border-t tpe-border-gray-200 tpe-pt-2 tpe-text-sm tpe-font-bold tpe-text-gray-900",children:[(0,Zt.jsx)("span",{children:"Total"}),(0,Zt.jsxs)("span",{children:[p,Number(b).toFixed(2)]})]})]})]}),(0,Zt.jsxs)("div",{className:"tpe-border-y tpe-border-gray-200 tpe-py-4",children:[(0,Zt.jsx)("p",{className:"tpe-mb-3 tpe-text-xs tpe-font-bold tpe-text-gray-900",children:"Included as standard"}),(0,Zt.jsx)("ul",{className:"tpe-space-y-2.5",children:[(null==Z?void 0:Z.label)||s.glazing.badge||"Cast acrylic glazing"].concat((Pe=d?[(null==G?void 0:G.label)||s.paper.badge||"Archival paper for your print"]:[],function(e){if(Array.isArray(e))return sd(e)}(Pe)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(Pe)||ld(Pe)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),["Hanging hardware included","GB"===M?"Handmade to order in our UK workshop":"Handmade to order"]).map(function(e){return(0,Zt.jsxs)("li",{className:"tpe-flex tpe-items-start tpe-gap-2.5 tpe-text-xs tpe-leading-snug tpe-text-gray-600",children:[(0,Zt.jsx)("span",{className:"tpe-mt-0.5 tpe-flex tpe-h-4 tpe-w-4 tpe-shrink-0 tpe-items-center tpe-justify-center tpe-rounded-full tpe-bg-gray-900 tpe-text-[9px] tpe-font-bold tpe-text-white",children:"✓"}),(0,Zt.jsx)("span",{children:e})]},e)})})]}),(E||d&&V)&&(0,Zt.jsxs)("div",{className:"tpe-mt-4 tpe-space-y-4",children:[E&&(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:hd,children:"Glazing"}),(0,Zt.jsx)("div",{className:"tpe-flex tpe-flex-wrap tpe-gap-2",children:s.glazing.options.map(function(e){return(0,Zt.jsx)("button",{onClick:function(){return U({glazingId:e.id})},"aria-pressed":c.glazingId===e.id,className:"".concat(yd," ").concat(c.glazingId===e.id?gd:xd
2),children:e.label},e.id)})})]}),d&&V&&(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("label",{className:hd,children:"Paper"}),(0,Zt.jsx)("div",{className:"tpe-flex tpe-flex-wrap tpe-gap-2",children:s.paper.options.map(function(e){return(0,Zt.jsx)("button",{onClick:function(){return U({paperId:e.id})},"aria-pressed":c.paperId===e.id,className:"".concat(yd," ").concat(c.paperId===e.id?gd:xd),children:e.label},e.id)})})]})]})]})]})};function Sd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||jd(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jd(e,t){if(e){if("string"==typeof e)return Td(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Td(e,t):void 0}}function Td(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Nd=[["Image Preview","Your design"],["id","Design code"],["Orientation","Orientation"],["Edge","Edge"],["Sound Wave Track","Sound Wave Track"],["Vinyl Track","Vinyl Track"],["Vinyl Lyrics Provided","Vinyl Lyrics Provided"],["Album Track","Album Track"],["Album Lyrics Provided","Album Lyrics Provided"],["Album Cover","Album Cover"],["Size","Size"],["Print size","Print size"],["Moulding","Moulding"],["Mount","Mount"],["Mount colour","Mount colour"],["Pattern","Pattern"],["Pattern colour","Pattern colour"],["Mount border","Mount border"],["Mount opening","Mount opening"],["Fit","Fit"],["Glazing","Glazing"],["Paper","Paper"]];function Wd(e){var t,n={},r=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=jd(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}(Nd);try{for(r.s();!(t=r.n()).done;){var o=Sd(t.value,2),a=o[0],i=o[1],l=e[a];if("string"==typeof l||"number"==typeof l){var s=String(l).trim();s&&(n[i]=s)}}}catch(e){r.e(e)}finally{r.f()}return Object.keys(n).length?JSON.stringify(n):null}function Id(e,t,n,r){var o=e/t,a=e,i=t;if(o>n?a=t*n:i=e/n,r&&r.zoom>0){var l=Math.max(o/n,n/o),s=Math.min(1,Math.max(.05,l/r.zoom));a*=s,i*=s}var c=r?r.x/100*e:e/2,u=r?r.y/100*t:t/2;return{sx:Math.min(Math.max(0,c-a/2),Math.max(0,e-a)),sy:Math.min(Math.max(0,u-i/2),Math.max(0,t-i)),sw:a,sh:i}}var Ud=680,kd=(0,e.forwardRef)(function(t,n){var r=t.cfg,o=t.state,a=t.previewImageUrl,i=(0,e.useRef)(null);(0,e.useImperativeHandle)(n,function(){return{getDataUrl:function(){var e=i.current;if(!e)return null;var t=c.current;if(!t)return null;try{var n=e.width/Ud,r=document.createElement("canvas");r.width=Math.max(1,Math.round(t.w*n)),r.height=Math.max(1,Math.round(t.h*n));var o=r.getContext("2d");return o?(o.drawImage(e,Math.round(t.x*n),Math.round(t.y*n),r.width,r.height,0,0,r.width,r.height),r.toDataURL("image/png")):null}catch(e){return null}},capturePrint:function(e){var t=o.widthMm,n=o.heightMm,r=Math.max(1,Math.round(e)),a=Math.max(1,Math.round(r*(n/Math.max(1,t)))),i=document.createElement("canvas");i.width=r,i.height=a;var l=i.getContext("2d"),c=s.current;if(!l||!c)return i;var u=Id(c.width,c.height,r/a,o.imageCrop),p=u.sx,d=u.sy,f=u.sw,m=u.sh;return l.drawImage(c,p,d,f,m,0,0,r,a),i}}});var l=(0,e.useRef)(null),s=(0,e.useRef)(null),c=(0,e.useRef)(null),u=r.mouldings.find(function(e){return e.code===o.mouldingCode})||r.mouldings[0];function p(){var e=i.current;if(e&&u){var t=e.getContext("2d");if(t){var n="undefined"!=typeof window&&window.devicePixelRatio||1,a=Math.round(Ud*n);e.width===a&&e.height===a||(e.width=a,e.height=a),t.setTransform(n,0,0,n,0,0),t.clearRect(0,0,680,680);var p=o.mountId?Math.max(0,o.mountBorderMm):0,d=o.widthMm+2*p,f=d/(o.heightMm+2*p),m=560,h=560;m/h>f?m=h*f:h=m/f;var g=(680-m)/2,x=(680-h)/2;c.current={x:g,y:x,w:m,h};var y=m/d,v=Math.max(6,u.mouldingWidthMm*y),b=p*y,Y=g+v+b,M=x+v+b,w=m-2*(v+b),S=h-2*(v+b),j=function(){if(!(w<=0||S<=0)){var e=s.current;if(!e)return t.fillStyle="#f3f4f6",void t.fillRect(Y,M,w,S);var n=Id(e.width,e.height,w/S,o.imageCrop),r=n.sx,a=n.sy,i=n.sw,l=n.sh;t.drawImage(e,r,a,i,l,Y,M,w,S)}};if(function(e,t,n,r,o){e.save(),e.shadowColor="rgba(60,45,25,0.22)",e.shadowBlur=26,e.shadowOffsetX=3,e.shadowOffsetY=14,e.fillStyle=Fp,e.fillRect(t,n,r,o),e.restore(
2)}(t,g,x,m,h),b>0){var T=o.mountId?r.mount.options.find(function(e){return e.id===o.mountId}):null,N=!(!T||!T.patterned),W={premium:N,pattern:N?se().patternByKey(o.mountPattern):null,stripeColour:o.mountStripeHex,plainHex:"black"===o.mountColour?"#1a1a1a":"#fafaf6"},I=g+v,U=x+v,k=m-2*v,D=h-2*v;se().paintMountFill(t,I,U,k,D,d,W),j(),w>0&&S>0&&(t.strokeStyle="rgba(0,0,0,0.28)",t.strokeRect(Y,M,w,S))}else j();var A=l.current;Bp(t,A,g,x,m,h,v),t.strokeStyle="rgba(0,0,0,0.18)",t.strokeRect(g,x,m,h),t.strokeStyle="rgba(0,0,0,0.22)",t.lineWidth=1,t.strokeRect(g+v+.5,x+v+.5,m-2*v-1,h-2*v-1)}}}return(0,e.useEffect)(function(){if(null!=u&&u.textureUrl){var e=new Image;e.crossOrigin="anonymous",e.onload=function(){l.current=e,p()},e.onerror=function(){l.current=null,p()},e.src=u.textureUrl+(-1===u.textureUrl.indexOf("?")?"?":"&")+"cf=1"}else l.current=null,p()},[null==u?void 0:u.textureUrl]),(0,e.useEffect)(function(){if(a){var e=new Image;e.crossOrigin="anonymous",e.onload=function(){s.current=e,p()},e.src=a}else s.current=null,p()},[a]),(0,e.useEffect)(function(){p()},[o,u]),(0,Zt.jsx)("div",{className:"tpe-w-full tpe-h-full tpe-flex tpe-items-center tpe-justify-center",style:{background:"linear-gradient(#f4f1ec,#e7e3dc)"},children:(0,Zt.jsx)("canvas",{ref:i,className:"tpe-max-w-full tpe-max-h-full",style:{width:Ud,height:"auto",aspectRatio:"1 / 1",objectFit:"contain"}})})});const Dd=kd;var Ad=["bounds"],Cd=["geoJsonRoute"],Ld=["_addon_bundle_pro_image"];function Od(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ed(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Gd(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function Vd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vd(Object(n),!0).forEach(function(t){Bd(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Xd(e){return Xd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xd(e)}function Pd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||Gd(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Zd(e){return function(e){if(Array.isArray(e))return Fd(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Gd(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gd(e,t){if(e){if("string"==typeof e)return Fd(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fd(e,t):void 0}}function Fd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}
2function Bd(e,t,n){return(t=function(e){var t=function(e){if("object"!=Xd(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Xd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xd(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rd(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(Xd(e)+" is not iterable")}function Qd(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return Hd(c,"_invoke",function(n,r,o){var a,l,s,c=0,u=o||[],p=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,d.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!p&&c&&!o&&t<u.length;t++){var o,a=u[t],f=d.p,m=a[2];n>3?(o=m===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,d.v=r,d.n=a[1]):f<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,d.n=m,l=0))}if(o||n>1)return i;throw p=!0,r}return function(o,u,m){if(c>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,m),l=u,s=m;(t=l<2?e:s)||!p;){a||(l?l<3?(l>1&&(d.n=-1),f(l,s)):d.n=s:d.v=s);try{if(c=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(p=d.n<0)?s:n.call(r,d))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:p}}}(n,o,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Hd(t={},r,function(){return this}),t),p=c.prototype=l.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Hd(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=c,Hd(p,"constructor",c),Hd(c,"constructor",s),s.displayName="GeneratorFunction",Hd(c,o,"GeneratorFunction"),Hd(p),Hd(p,o,"Generator"),Hd(p,r,function(){return this}),Hd(p,"toString",function(){return"[object Generator]"}),(Qd=function(){return{w:a,m:d}})()}function Hd(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Hd=function(e,t,n,r){function a(t,n){Hd(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Hd(e,t,n,r)}function Kd(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Jd(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){Kd(a,r,o,i,l,"next",e)}function l(e){Kd(a,r,o,i,l,"throw",e)}i(void 0)})}}var qd=function(){var e=Jd(Qd().m(function e(t){var n,r,o;return Qd().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,fetch("https://europe-west2-pfc-uk-generatedesigns.cloudfunctions.net/orders-database/check",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionID:t})});case 1:if((n=e.v).ok){e.n=2;break}return console.warn("Database load response not OK:",n.status),e.a(2,null);case 2:return e.n=3,n.json();case 3:return r=e.v,e.a(2,r);case 4:return e.p=4,o=e.v,console.error("Load design failed",o),e.a(2,null)}},e,null,[[0,4]])}));return function(t){return e.apply(this,arguments)}}(),_d=function(){var e=Jd(Qd().m(function e(t){var n,r,o,a;return Qd().w(function(e){for(;;)switch(e.p=e.n){case 0:if(r=null===(n=window.SHOPIFY_CONFIG)||void 0===n?void 0:n.saveContactEndpoint){e.n=1;break}return console.warn("[studio] no saveContactEndpoint configured — skipping contact registration"),e.a(2,!1);case 1:return e.p=1,e.n=2,fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t),keepalive:!0});case 2:if((o=e.v).ok){e.n=3;break}return console.warn("[studio] contact registration failed",o.status),e.a(2,!1);case 3:return e.a(2,!0);case 4:return e.p=4,a=e.v,console.warn("[studio] contact registration error",a),e.a(2,!1)}},e,null,[[1,4]])}));return function(t){return e.apply(this,arguments)}}(),$d=function(){var e=Jd(Qd().m(function e(t){var n,r,o;return Qd().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,fetch("https://europe-west2-pfc-uk-generatedesigns.cloudfunctions.net/orders-database/save",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});case 1:if((n=e.v).ok){e.n=3;break}return e.n=2,n.text().catch(function(){return""});case 2:return r=e.v,console.error("Database save failed:",n.status,n.statusText,r),e.a(2,!1);case 3:return e.a(2,!0);case 4:return e.p=4,o=e.v,console.error("Save design failed",o),e.a(2,!1)}},e,null,[[0,4]])}));return function(t){return e.apply(this,arguments)}}(),ef=function(){var e=Jd(Qd().m(function e(t,n){var r,o,a,i,l;return Qd().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,r=crypto.randomUUID?crypto.randomUUID():Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),e.n=1,fetch("https://europe-west2-pfc-uk-generatedesigns.cloudfunctions.net/PFC-AWS",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({bucket:"theposteredit-order",key:r,type:"put"})});case 1:if((o=e.v).ok){e.n=2;break}throw new Error("Failed to get upload signature");case 2:return e.n=3,o.text();case 3:if(a=e.v){e.n=4;break}throw new Error("No signed URL returned");case 4:return e.n=5,fetch(a,{method:"PUT",body:t,headers:{"Content-Type":n}});case 5:if(i=e.v,console.log("uploadResponse",i),i.ok){e.n=6;break}throw new Error("Failed to upload to S3");case 6:return e.a(2,"https://theposteredit-order.s3.amazonaws.com/".concat(r));case 7:throw e.p=7,l=e.v,console.error("AWS Upload Error:",l),l;case 8:return e.a(2)}},e,null,[[0,7]])}));return function(t,n){return e.apply(this,arguments)}}(),tf=function(){var e=Jd(Qd().m(function e(t,n){var r,o,a,i,l,s=arguments;return Qd().w(function(e){for(;;)switch(e.n){case 0:r=s.length>2&&void 0!==s[2]?s[2]:3,a=Qd().m(function e(a){var i,l;return Qd().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,ef(t,n);case 1:return i=e.v,e.a(2,{v:i});case 2:if(e.p=2,l=e.v,o=l,!(a<r-1)){e.n=3;break}return e.n=3,new Promise(function(e){return setTimeout(e,500*Math.pow(2,a))});case 3:return e.a(2)}},e,null,[[0,2]])}),l=0;case 1:if(!(l<r)){e.n=4;break}return e.d(Rd(a(l)),2);case 2:if(!(i=e.v)){e.n=3;break}return e.a(2,i.v);case 3:l++,e.n=1;break;case 4:throw o;case 5:return e.a(2)}},e)}));return function(t,n){return e.apply(this,arguments)}}(),nf=function(e){for(var t=e.split(","),n=t[0].match(/:(.*?);/),r=n?n[1]:"image/png",o=atob(t[1]),a=o.length,i=new Uint8Array(a);a--;
2)i[a]=o.charCodeAt(a);return new Blob([i],{type:r})},rf=function(e,t,n,r){var o=n/r,a=e/t;return a>o?a/o:o/a},of=Bd(Bd(Bd(Bd({basePrice:50,currency:"£",allowedProducts:"all",allowedOrientations:null,sale:.3,countryCode:"GB",adminMode:"undefined"!=typeof window&&"1"===new URLSearchParams(window.location.search).get("admin"),frameOptions:[{sku:"ALPHA180MBADDON-I-9X12",price:2200},{sku:"ALPHA180MBADDON-I-12X16",price:2900},{sku:"ALPHA180MBADDON-I-24X32",price:5400},{sku:"CREATE20X20BADDON-I-9X12",price:2700},{sku:"CREATE20X20BADDON-I-12X16",price:3400},{sku:"CREATE20X20WADDON-I-12X16",price:3400}],mountOptions:[{sku:"STDMOUNT-I-9X12",price:900},{sku:"STDMOUNT-I-12X16",price:1100},{sku:"STDMOUNT-I-24X32",price:1900}],shopify:!0,disableStagedUpload:!1,features:{enableMapMarkers:!0,enableMapRoutes:!0},defaults:{productType:"single",sizeId:"p-12x16",frameId:"black-wood",layoutId:"classic-caption"}},"frameOptions",[{id:49400361025877,title:'9" x 12"',option1:'9" x 12"',option2:null,option3:null,sku:"ALPHA180MBADDON-I-9X12",featured_image:{src:"//theposteredit.com/cdn/shop/files/ALPHA-MB-CORNER.jpg?v=1724137541"},available:!0,name:'Matt Black Frame - 9" x 12"',options:['9" x 12"'],price:2200,featured_media:{preview_image:{src:"//theposteredit.com/cdn/shop/files/ALPHA-MB-CORNER.jpg?v=1724137541"}}},{id:49782741401941,title:'32" x 40"',option1:'32" x 40"',option2:null,option3:null,sku:"B220X33BADDON-I-32X40",featured_image:{src:"//theposteredit.com/cdn/shop/files/B2-Black-Corner.jpg?v=1730069208"},available:!0,name:'Black Gallery Frame - 32" x 40"',options:['32" x 40"'],price:8e3,featured_media:{preview_image:{src:"//theposteredit.com/cdn/shop/files/B2-Black-Corner.jpg?v=1730069208"}}}]),"mountOptions",[{id:49396991623509,title:'12" x 15"',option1:'12" x 15"',option2:null,option3:null,sku:"NIELSENCONSMOUNTLWADDON-I-12X15",price:500},{id:49396991820117,title:'32" x 40"',sku:"NIELSENCONSMOUNTLWADDON-I-32X40",price:1600}]),"product",{id:9487026749781,title:"Old Ordnance Survey Maps 1800's And 1900's",handle:"custom-old-map-os-print",vendor:"The Poster Edit",price:2800,available:!0,variants:[{id:49779786252629,title:'9" x 12"',sku:"CUSTOM-OLDOSMAP-I-9X12",price:1500,cross_sell_bundles_pro_options:[]},{id:1234567892,title:'12" x 16"',sku:"CUSTOM-OLDOSMAP-I-12X16",price:2800,cross_sell_bundles_pro_options:[]},{id:49779786350933,title:'24" x 32"',sku:"CUSTOM-OLDOSMAP-I-24X32",price:5e3,cross_sell_bundles_pro_options:[]},{id:1234567890,title:'12" x 12"',sku:"CUSTOM-OLDOSMAP-I-12X12",price:2500,cross_sell_bundles_pro_options:[]},{id:1234567891,title:'20" x 20"',sku:"CUSTOM-OLDOSMAP-I-20X20",price:4500,cross_sell_bundles_pro_options:[]}],featured_image:"//theposteredit.com/cdn/shop/files/Old-OS-Map-dover.jpg?v=1722100901"}),"customFraming",{minSideMm:152,maxPrintWidthMm:609.6,maxFrameOnlyWidthMm:660.4,maxHeightMm:1300,maxMountedExternalMm:1e3,maxMountBorderMm:152.4,minOrderTotal:25,ladderPrices:{frame:Array.from({length:60},function(e,t){return 25+5*t}),mount:Array.from({length:55},function(e,t){return 30+5*t}).concat(Array.from({length:8},function(e,t){return 310+10*t}))},mouldings:[{code:"CC17X17BKC",name:"Black Box 17mm",family:"17mm x 17mm",pricePerMeter:1800,mouldingWidthMm:17,customVariantGid:"gid://shopify/ProductVariant/0000000001",hasLadder:!0,hostPrice:25},{code:"CC30X20OAK",name:"Oak 30mm",family:"30mm x 20mm",pricePerMeter:2600,mouldingWidthMm:30,customVariantGid:"gid://shopify/ProductVariant/0000000002",hasLadder:!0,hostPrice:25}],glazing:{key:"glazing",label:"Glazing",badge:"Cast Acrylic",options:[{id:"acrylic",label:"Cast Acrylic",ratePerM2:0}]},mount:{key:"mount",label:"Mount",allowNone:!0,options:[{id:"snow-white",label:"Snow White",ratePerM2:40,swatch:"#ffffff"},{id:"off-white",label:"Off White",ratePerM2:40,swatch:"#f4f1ea"},{id:"black",label:"Black",ratePerM2:40,swatch:"#1a1a1a"}]},paper:{key:"paper",label:"Paper",badge:"Archival Matt 308gsm",options:[{id:"matt-308",label:"Archival Matt 308gsm",ratePerM2:0}]}}),af="undefined"!=typeof window&&window.SHOPIFY_CONFIG?window.SHOPIFY_CONFIG:of;"undefined"==typeof window||window.SHOPIFY_CONFIG||(window.SHOPIFY_CONFIG=af);var lf=function(){var e=af.brand,t=(e&&"string"==typeof e.name?e.name:"").trim();if(!t)return null;var n=e.initials&&String(e.initials).trim()||t.split(/\s+/).map(function(e){return e.charAt(0)}).join("").toUpperCase();return{name:t,initials:n}}(),sf=lf?{"Print Frame Co":{full:{vb:"0 0 500 55",d:"m11.3 36v17h-10.8v-51.6h12.1q7 0 10 0.9 2.9 0.9 4.8 2.9 2.3 2.3 3.6 5.8 1.2 3.6 1.2 7.9 0 4.7-1.2 8.1-1.1 3.5-3.6 5.8-1.8 1.7-4.2 2.4-2.3 0.8-7.8 0.8h-2zm0-23.5v12.1h2.2q4.1 0 5.9-1.4 1.6-1.3 1.6-4.7 0-3.2-1.6-4.6-1.6-1.4-5.8-1.4zm37 40.5h-10.8v-51.6h12.1q3.5 0 5.9 0.2 2.4 0.2 4 0.6 2.7 0.8 4.8 2.7 2.3 2.1 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-7.8 0.8h-2.0zM10.8 12.5v12.1h2.2q4.1 0.0 5.9 -1.4 1.6 -1.3 1.6 
2-4.7 0.0 -3.2 -1.6 -4.6 -1.6 -1.4 -5.8 -1.4zM52 53h-11.3v-51.6h26.0v11.3h-14.7v9.0h13.9v11.0h-13.9zM108.2 3.4v15.4q-2.5 -3.3 -4.7 -4.8 -2.4 -1.4 -5.1 -1.4 -4.9 0.0 -8.1 4.1 -1.0 1.5 -1.7 3.1 -0.7 1.6 -1.0 3.6 -0.3 2.0 -0.3 4.1 0.0 6.2 3.1 10.3 3.2 4.1 8.0 4.1 2.6 0.0 5.1 -1.5 2.2 -1.4 4.7 -4.8v15.4q-3.2 1.9 -5.5 2.5 -2.8 0.8 -5.5 0.8 -3.4 0.0 -6.4 -1.0 -3.0 -1.0 -5.4 -3.1 -4.7 -3.9 -7.2 -9.7 -2.5 -6.0 -2.5 -13.3 0.0 -5.8 1.6 -10.7 0.7 -2.4 1.8 -4.5 1.2 -2.1 2.9 -4.3 3.1 -3.8 6.9 -5.7 3.7 -1.8 8.3 -1.8 2.7 0.0 5.5 0.7 2.9 0.9 5.5 2.5z"}}}[lf.name]:void 0,cf={single:"OUR MEMORIES",collage:"OUR MEMORIES",starmap:"THE NIGHT WE MET",oldmap:"WHERE IT ALL BEGAN",osmap:"WHERE IT ALL BEGAN",map:"OUR FAVOURITE PLACE",soundwave:"OUR SONG",vinyl:"OUR SONG",album:"OUR SONG"};function uf(e){return pf.apply(this,arguments)}function pf(){return(pf=Jd(Qd().m(function e(t){var n,r,o,a,i,l,s,c,u,p,d,f,m,h,g;return Qd().w(function(e){for(;;)switch(e.p=e.n){case 0:return n=t.file,r=t.mimeType,o=t.filename,a=!1,e.p=1,(l=new Headers).append("Content-Type","application/json"),l.append("Accept","application/json"),s=JSON.stringify({input:{filename:o,httpMethod:"POST",mimeType:r,fileSize:n.size.toString(),resource:"FILE"},store:"theposteredit"}),e.n=2,fetch("https://europe-west2-pfc-uk-generatedesigns.cloudfunctions.net/shopify-create-staged-url-1",{headers:l,method:"POST",body:s,redirect:"follow"});case 2:return c=e.v,e.n=3,c.json();case 3:if(u=e.v,!(p=null==u||null===(i=u.stagedUploadsCreate)||void 0===i||null===(i=i.stagedTargets)||void 0===i?void 0:i[0])){e.n=6;break}return d=p.url,f=p.parameters,m=p.resourceUrl,h=new FormData,f.forEach(function(e){var t=e.name,n=e.value;h.append(t,n)}),h.append("file",n),e.n=4,fetch(d,{method:"POST",body:h});case 4:if(e.v.ok){e.n=5;break}throw"File could not be uploaded.";case 5:a=m;case 6:e.n=8;break;case 7:e.p=7,g=e.v,console.log("err",g);case 8:return e.p=8,e.a(2,a);case 9:return e.a(2)}},e,null,[[1,7,8,9]])}))).apply(this,arguments)}function df(e){return ff.apply(this,arguments)}function ff(){return(ff=Jd(Qd().m(function e(t){var n,r,o,a,i,l,s,c,u,p;return Qd().w(function(e){for(;;)switch(e.p=e.n){case 0:return n=t.originalSource,r=t.alt,o=t.get_id,a=!1,e.p=1,e.n=2,fetch("https://europe-west2-pfc-uk-generatedesigns.cloudfunctions.net/shopify-create-file-from-url",{headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({input:{alt:r,contentType:"IMAGE",originalSource:n},store:"theposteredit"})});case 2:if(!(i=e.v).ok){e.n=5;break}return e.n=3,i.json();case 3:return s=e.v,c=s.fileCreate.files[0].id,e.n=4,mf(c);case 4:null!=(u=e.v)&&null!==(l=u.node)&&void 0!==l&&null!==(l=l.image)&&void 0!==l&&l.url&&(a=o?u.node.id:u.n
2ode.image.url);case 5:e.n=7;break;case 6:e.p=6,p=e.v,console.log(p);case 7:return e.p=7,e.a(2,a);case 8:return e.a(2)}},e,null,[[1,6,7,8]])}))).apply(this,arguments)}function mf(e){return hf.apply(this,arguments)}function hf(){return(hf=Jd(Qd().m(function e(t){var n,r,o;return Qd().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,gf(t);case 1:n=e.v,r=0;case 2:if(null!==(o=n)&&void 0!==o&&null!==(o=o.node)&&void 0!==o&&o.image||!(r<10)){e.n=5;break}return e.n=3,yf(1500);case 3:return e.n=4,gf(t);case 4:n=e.v,r++,e.n=2;break;case 5:return e.a(2,n)}},e)}))).apply(this,arguments)}function gf(e){return xf.apply(this,arguments)}function xf(){return(xf=Jd(Qd().m(function e(t){var n,r;return Qd().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch("https://europe-west2-pfc-uk-generatedesigns.cloudfunctions.net/shopify-check-file-status",{headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({id:t,store:"theposteredit"})});case 1:return n=e.v,e.n=2,n.json();case 2:return r=e.v,e.a(2,r)}},e)}))).apply(this,arguments)}function yf(e){return new Promise(function(t){return setTimeout(t,e)})}const vf=function(t){var n,r,o,a,i,l,s,c,u,p,d,f,m,h,g,x,b,Y,M=t.onClose,w=(0,e.useMemo)(function(){var e=["single","collage","starmap","oldmap","osmap","map","preset","soundwave","vinyl","album"],t=function(e){return af.customFraming?[].concat(Zd(e),["custom-framing"]):Zd(e)},n=af.allowedProducts,r=Array.isArray(n)?n.map(function(e){return String(e)}):"string"==typeof n?n.split(","):null==n?[]:[String(n)],o=r.map(function(e){return e.trim().toLowerCase()}).filter(Boolean);if(0===o.length||o.includes("all"))return t(e);var a=e.filter(function(e){return o.includes(e)}),i=o.includes("custom-framing")&&!!af.customFraming;return 0===a.length&&i?["custom-framing"]:0===a.length?(console.warn("[studio] allowedProducts matched no known product type:",n),t(e)):t(a)},[]),S=Pd((0,e.useState)(function(){var e;if(af.presetImage){var t,n=null===(t=af.defaults)||void 0===t?void 0:t.productType;if(!n||!w.includes(n))return"preset"}var r=null===(e=af.defaults)||void 0===e?void 0:e.productType;return r&&w.includes(r)?r:w[0]||"single"}),2),T=S[0],N=S[1],W=af.customFraming||null,I=Pd((0,e.useState)(function(){return W?fe(W):null}),2),D=I[0],A=I[1],C=Pd((0,e.useState)(v.IMPERIAL),2),L=C[0],E=C[1],V=Pd((0,e.useState)([]),2),z=V[0],X=V[1],P=(0,e.useRef)([]);(0,e.useEffect)(function(){P.current=z},[z]),(0,e.useEffect)(function(){return function(){P.current.forEach(function(e){[e.thumbUrl,e.displayUrl].forEach(function(e){e&&e.startsWith("blob:")&&URL.revokeObjectURL(e)})})}},[]);var Z=Pd((0,e.useState)(null),2),G=Z[0],F=Z[1],B=Pd((0,e.useState)(!1),2),R=B[0],Q=B[1],H=Pd((0,e.useState)(null),2),K=H[0],J=H[1],_=Pd((0,e.useState)(!1),2),ee=_[0],te=_[1],ne=Pd((0,e.useState)({}),2),re=ne[0],le=ne[1],ce=Pd((0,e.useState)(!1),2),pe=ce[0],me=ce[1],ge=Pd((0,e.useState)(null),2),xe=ge[0],ye=ge[1],ve=(0,e.useRef)(!1),be=Pd((0,e.useState)(!1),2),Ye=be[0],je=be[1],We=Pd((0,e.useState)(Me),2),Ie=We[0],Ae=We[1],Ce=Pd((0,e.useState)(function(){var e;return!(null===(e=af.defaults)||void 0===e||!e.starMapConfig)}),2),Le=Ce[0],Oe=Ce[1],Ve=Pd((0,e.useState)(!1),2),ze=Ve[0],Xe=Ve[1],Pe=Pd((0,e.useState)(!1),2),Ze=Pe[0],Ge=Pe[1],Fe=Pd((0,e.useState)(!1),2),Be=Fe[0],Re=Fe[1],He=(0,e.useState)(function(){var e,t=null===(e=af.defaults)||void 0===e?void 0:e.mapConfig;return!(!t||!(t.routes&&t.routes.length||t.locationLabel))}),Ke=Pd(He,2),qe=Ke[0],_e=Ke[1],$e=Pd((0,e.useState)(!1),2),et=$e[0],tt=$e[1],nt=Pd((0,e.useState)("SIZE"),2),rt=nt[0],ot=nt[1],at=Pd((0,e.useState)(300),2),it=at[0],lt=at[1],st=Pd((0,e.useState)(""),2),ct=st[0],pt=st[1],dt=Pd((0,e.useState)(!1),2),ft=(dt[0],dt[1]),mt=Pd((0,e.useState)(null),2),ht=mt[0],gt=mt[1],xt=Pd((0,e.useState)(null),2),yt=xt[0],vt=xt[1],bt=Pd((0,e.useState)(null),2),Yt=bt[0],Mt=bt[1],wt=Pd((0,e.useState)(!1),2),St=wt[0],Tt=wt[1],Nt=Pd((0,e.useState)(!1),2),Ut=Nt[0],kt=Nt[1],Dt=Pd((0,e.useState)(null),2),At=Dt[0],Ct=Dt[1],Lt=Pd((0,e.useState)("form"),2),Ot=Lt[0],Et=Lt[1],Vt=Pd((0,e.useState)(null),2),zt=Vt[0],Xt=Vt[1],Pt=Pd((0,e.useState)(null),2),Gt=Pt[0],Ft=Pt[1],Bt=Pd((0,e.useState)(!1),2),Rt=Bt[0],Qt=Bt[1],Ht=Pd((0,e.useState)(null),2),Kt=Ht[0],Jt=Ht[1],qt=Pd((0,e.useState)(!1),2),_t=qt[0],$t=qt[1],en=Pd((0,e.useState)(!1),2),tn=en[0],nn=en[1],rn=Pd((0,e.useState)(!1),2),on=rn[0],an=rn[1],ln=Pd((0,e.useState)(!1),2),sn=ln[0],cn=ln[1],un=Pd((0,e.useState)(!1),2),pn=un[0],dn=un[1],fn=(0,e.useRef)(null),mn=Pd((0,e.useState)(!1),2),hn=mn[0],gn=mn[1],xn=Pd((0,e.useState)(null),2),yn=xn[0],vn=xn[1],bn=Pd((0,e.useState)(null),2),Yn=bn[0],Mn=bn[1],wn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info";Mn({msg:e,type:t}),setTimeout(function(){return Mn(null)},"error"===t?5e3:3e3)},Sn=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"single",o=null===(e=af.defaults)||void 0===e?void 0:e.captionLine
2s;if(Array.isArray(o))return o.map(function(e,t){var n,r=e&&"object"===Xd(e);return zd({id:(Date.now()+t).toString(),text:String(r?null!==(n=e.text)&&void 0!==n?n:"":null!=e?e:""),isBold:!(!r||!e.isBold)},r&&e.color?{color:String(e.color)}:{})});var a=cf[r]||"Capture the moment";return"preset"===r&&null!==(t=af.product)&&void 0!==t&&t.title&&(a=af.product.title),Array.from({length:n}).map(function(e,t){return{id:(Date.now()+t).toString(),text:0===t?a:"",isBold:!1}})},jn=function(){var e,t;return zd({date:(new Date).toISOString(),locationLabel:"New York, NY",lat:40.7128,lng:-74.006,themeId:Ue[0].id,showConstellations:!0,showMilkyWay:!0,showPlanets:!0,magnitude:7,showStarCount:!0,showCoordinates:!1,showDate:!1,showTime:!1,dateFormat:"en-US",borderColor:ke(Ue[0].id),borderWidth:2},null!==(e=null===(t=af.defaults)||void 0===t?void 0:t.starMapConfig)&&void 0!==e?e:{})},Tn=function(){var e,t,n=zd({locationLabel:"London, UK",lat:51.5072,lng:-.1276,styleId:De[0].id,showCoordinates:!0},null!==(e=null===(t=af.defaults)||void 0===t?void 0:t.oldMapConfig)&&void 0!==e?e:{});return zd(zd({},n),{},{scale:Qe(n.styleId)})},Nn=function(){var e,t;return zd({locationLabel:"London, UK",lat:51.5072,lng:-.1276,styleId:Ee[0].id,zoom:6,scale:25e3,coordinateMode:"dms"},null!==(e=null===(t=af.defaults)||void 0===t?void 0:t.osMapConfig)&&void 0!==e?e:{})},Wn=function(){var e,t;return zd({locationLabel:"New York, NY",lat:40.7128,lng:-74.006,zoom:12,styleId:Je[0].id,showCoordinates:!0,routes:[],routeUiMode:"idle"},null!==(e=null===(t=af.defaults)||void 0===t?void 0:t.mapConfig)&&void 0!==e?e:{})},In=(0,e.useMemo)(function(){var e={},t={},n={},r={},o={},a={},i={},l={},s=function(e){var t=e.split("-");if(t.length<3)return null;var n=t[t.length-1],r=t[t.length-2],o=t[t.length-3],a=function(e){return/^A[1-4]$/i.test(e)},i=function(e){return"I"===e||"M"===e},l=0;if("L"===n&&a(r)&&i(o))l=3;else if(a(n)&&i(r))l=2;else{if(!function(e){return/^\d+X\d+$/i.test(e)}(n)||!i(r))return null;l=2}var s=t.slice(0,t.length-l),c=t.slice(t.length-l);return 0===s.length?null:{skuCode:s.join("-"),suffix:c.join("-")}};
2return af.product.variants.forEach(function(t){var n=String(t.title||"").trim(),r=Number(t.price)/100,o=n.match(/^(A[1-4])(\s+Landscape)?$/i);if(o){var a=o[1].toUpperCase(),i=o[2]?"Landscape":"Portrait",l=we.find(function(e){return e.aPaperKey===a&&e.category===i});l&&(e[l.id]=r)}else{var s=n.match(/^(\d+)cm\s*x\s*(\d+)cm$/i);if(s){var c=10*parseInt(s[1]),u=10*parseInt(s[2]),p=we.find(function(e){return"M"===e.unit&&e.widthMm===c&&e.heightMm===u&&"Portrait"===e.category});p&&(e[p.id]=r);var d=we.find(function(e){return"M"===e.unit&&e.widthMm===u&&e.heightMm===c&&"Landscape"===e.category});if(d&&(e[d.id]=r),c===u){var f=we.find(function(e){return"M"===e.unit&&e.widthMm===c&&e.heightMm===u&&"Square"===e.category});f&&(e[f.id]=r)}}else{var m=n.match(/^(\d+)"?\s*x\s*(\d+)"?$/);if(m){var h,g,x,y,v=parseInt(m[1]),b=parseInt(m[2]),Y=null===(h=we.find(function(e){return"I"===e.unit&&e.widthIn===v&&e.heightIn===b&&"Portrait"===e.category}))||void 0===h?void 0:h.id;Y&&(e[Y]=r);var M=null===(g=we.find(function(e){return"I"===e.unit&&e.widthIn===b&&e.heightIn===v&&"Landscape"===e.category}))||void 0===g?void 0:g.id;if(M&&(e[M]=r),v===b){var w,S=null===(w=we.find(function(e){return"I"===e.unit&&e.widthIn===v&&e.heightIn===b&&"Square"===e.category}))||void 0===w?void 0:w.id;S&&(e[S]=r)}var j=null===(x=we.find(function(e){return"I"===e.unit&&e.widthIn===v&&e.heightIn===b&&"Panoramic"===e.category}))||void 0===x?void 0:x.id;j&&(e[j]=r);var T=null===(y=we.find(function(e){return"I"===e.unit&&e.widthIn===v&&e.heightIn===b&&"Vertoramic"===e.category}))||void 0===y?void 0:y.id;T&&(e[T]=r)}}}}),af.frameOptions.forEach(function(e){var a=s(e.sku||"");if(a){var i=a.skuCode,l=a.suffix,c=Se.find(function(e){return e.skuCode===i});if(c){var u="".concat(c.id,"-").concat(l);t[u]=Number(e.price)/100,o[u]=String(e.id),n[u]=!0,e.featured_image&&e.featured_image.src&&(r[u]=e.featured_image.src)}}}),af.mountOptions&&af.mountOptions.forEach(function(e){var t=s(e.sku||"");t&&(a[t.suffix]=Number(e.price)/100,l[t.suffix]=String(e.id),i[t.suffix]=!0)}),{basePrices:e,framePrices:t,frameVariantIds:o,frameAvailability:n,frameImages:r,mountPrices:a,mountVariantIds:l,mountAvailability:i}},[]),Un=(0,e.useMemo)(function(){var e=[],t=Array.isArray(af.allowedOrientations)?af.allowedOrientations:null,n=function(e){return!t||t.includes(e)};
2return af.product.variants.forEach(function(t){var r=String(t.title||"").trim(),o=r.match(/^(A[1-4])(\s+Landscape)?$/i);if(o){var a=o[1].toUpperCase(),i=o[2]?"Landscape":"Portrait",l=we.find(function(e){return e.aPaperKey===a&&e.category===i});l&&n(i)&&e.push(l)}else{var s=r.match(/^(\d+)cm\s*x\s*(\d+)cm$/i);if(s){var c=10*parseInt(s[1]),u=10*parseInt(s[2]),p=we.find(function(e){return"M"===e.unit&&e.widthMm===c&&e.heightMm===u&&"Portrait"===e.category});p&&n("Portrait")&&e.push(p);var d=we.find(function(e){return"M"===e.unit&&e.widthMm===u&&e.heightMm===c&&"Landscape"===e.category});if(d&&n("Landscape")&&e.push(d),c===u){var f=we.find(function(e){return"M"===e.unit&&e.widthMm===c&&e.heightMm===u&&"Square"===e.category});f&&n("Square")&&e.push(f)}var m=we.find(function(e){return"M"===e.unit&&e.widthMm===c&&e.heightMm===u&&"Panoramic"===e.category});m&&n("Panoramic")&&e.push(m);var h=we.find(function(e){return"M"===e.unit&&e.widthMm===c&&e.heightMm===u&&"Vertoramic"===e.category});h&&n("Vertoramic")&&e.push(h)}else{var g=r.match(/^(\d+)"?\s*x\s*(\d+)"?$/);if(g){var x=parseInt(g[1]),y=parseInt(g[2]),v=we.find(function(e){return"I"===e.unit&&e.widthIn===x&&e.heightIn===y&&"Portrait"===e.category});v&&n("Portrait")&&e.push(v);var b=we.find(function(e){return"I"===e.unit&&e.widthIn===y&&e.heightIn===x&&"Landscape"===e.category});if(b&&n("Landscape")&&e.push(b),x===y&&n("Square")){var Y=we.find(function(e){return"I"===e.unit&&e.widthIn===x&&e.heightIn===y&&"Square"===e.category});Y&&e.push(Y)}var M=we.find(function(e){return"I"===e.unit&&e.widthIn===x&&e.heightIn===y&&"Panoramic"===e.category});M&&n("Panoramic")&&e.push(M);var w=we.find(function(e){return"I"===e.unit&&e.widthIn===x&&e.heightIn===y&&"Vertoramic"===e.category});w&&n("Vertoramic")&&e.push(w)}}}}),e.filter(function(t,n){return e.findIndex(function(e){return e.id===t.id})===n})},[]),kn=(0,e.useMemo)(function(){return Un.filter(function(e){return e.unit===(L===v.IMPERIAL?"I":"M")})},[Un,L]),Dn=(0,e.useState)(function(){var e,t,n,r,o,a,i,l,s,c,u,p=null!==(e=af.defaults)&&void 0!==e&&e.sizeId&&Un.find(function(e){var t;return e.id===(null===(t=af.defaults)||void 0===t?void 0:t.sizeId)})?af.defaults.sizeId:Un.length>0?Un[0].id:"p-9x12",d=!(null===(t=af.features)||void 0===t||!t.requireFrame),f=(null===(n=af.defaults)||void 0===n?void 0:n.frameId)||
2(d?"":"none"),m="single",h=null===(r=af.defaults)||void 0===r?void 0:r.productType,g=af.presetImage&&h&&w.includes(h);if(af.presetImage&&!g)m="preset";else{var x,y=null===(x=af.defaults)||void 0===x?void 0:x.productType;m=w[0]||"single",y&&w.includes(y)&&(m=y)}var v,b,Y,M,S,j,T,N,W="starmap"===m||"soundwave"===m,I=(null===(o=af.defaults)||void 0===o||null===(o=o.starMapConfig)||void 0===o?void 0:o.themeId)||Ue[0].id,U="starmap"===m?ke(I):W?"#FFFFFF":"#333333",k="preset"===m?"full-bleed":(null===(a=af.defaults)||void 0===a?void 0:a.layoutId)||"classic-caption",D=null===(i=af.defaults)||void 0===i?void 0:i.gridRows,A=null===(l=af.defaults)||void 0===l?void 0:l.gridCols,C=null===(s=af.defaults)||void 0===s?void 0:s.collageCount,L=It(we.find(function(e){return e.id===p})),O="collage"===m&&C>0?Wt(C,L):"collage"===m&&D>0&&A>0?jt(D,A):void 0,E=O?O.id:k;return{sizeId:p,frameId:f,layoutId:E,customLayout:O,assignedImages:{},captionLines:Sn(2,m),fontFamily:"font-[Inter]",metaFontFamily:"font-[Inter]",textColor:U,fontSize:1,mount:(N=null===(v=af.defaults)||void 0===v?void 0:v.mountPreset,{enabled:!(null===(b=af.features)||void 0===b||!b.requireMount)||!(null==N||!N.enabled),colorId:Te[0].id,coreId:Ne[0].id,widthCm:null!==(Y=null==N?void 0:N.widthCm)&&void 0!==Y?Y:5,top:null!==(M=null==N?void 0:N.top)&&void 0!==M?M:5,bottom:null!==(S=null==N?void 0:N.bottom)&&void 0!==S?S:5,left:null!==(j=null==N?void 0:N.left)&&void 0!==j?j:5,right:null!==(T=null==N?void 0:N.right)&&void 0!==T?T:5}),starMaps:{1:jn()},oldMaps:{1:Tn()},osMaps:{1:Nn()},maps:{1:Wn()},soundwaves:{},vinyls:"vinyl"===m?{1:{lyrics:"",cursiveLyrics:!1,discColor:"#000000",discTextColor:"#FFFFFF",labelColor:"#FFFFFF",labelTextColor:"#000000",themeId:"black",label:{line1:"",line2:"",recordLabel:"",country:"",year:"",length:"",sideText:"SIDE A",songTitle:"",artist:""},scanCode:{enabled:!1,type:"none",position:"br",sizePct:12,color:"#FFFFFF"}}}:{},albums:"album"===m?{1:{lyrics:"",cursiveLyrics:!1,bgColor:"#FFFFFF",textColor:"#000000",useCustomCover:!1,label:{artist:"",songTitle:"",recordLabel:"",year:"",length:""},scanCode:{enabled:!1,type:"none",position:"br",sizePct:12,color:"#000000"}}}:{},enableCollageCaption:null!==(c=null===(u=af.defaults)||void 0===u?void 0:u.enableCollageCaption)&&void 0!==c&&c,edgeType:"flat"}}),An=Pd(Dn,2),Cn=An[0],Ln=An[1],On=!!xe&&"map"===T,En="custom-framing"===T&&D&&W?de(D,W,!!z[0]):null,Vn=(0,e.useRef)(Cn);(0,e.useEffect)(function(){Vn.current=Cn},[Cn]);var zn=(0,e.useRef)(null),Xn=(0,e.useRef)(null);(0,e.useEffect)(function(){if(pn){var e=function(e){var t;null!==(t=fn.current)&&void 0!==t&&t.contains(e.target)||dn(!1)},t=function(e){"Escape"===e.key&&dn(!1)};return document.addEventListener("pointerdown",e),document.addEventListener("keydown",t),function(){document.removeEventListener("pointerdown",e),document.removeEventListener("keydown",t)}}},[pn]),(0,e.useEffect)(function(){return window.__tpeStudio={capture:function(e){var t;return Xn.current?Xn.current.capturePrint((null==e?void 0:e.widthPx)||3e3):null===(t=zn.current)||void 0===t?void 0:t.capturePreview(null!=e?e:{quality:"high"})},isReady:function(){var e,t;return Boolean(Xn.current)||Boolean(zn.current&&!(null!==(e=(t=zn.current).isBusy)&&void 0!==e&&e.call(t)))},getDesign:function(){return Vn.current}},function(){delete window.__tpeStudio}},[]);var Pn=function(e,t){if(e&&e.design){var n,r,o,a,i,l=e.sessionID||t||ct;pt(l),gt(l),vt(e.rootSessionId||l),w.includes(e.productType)&&N(e.productType);var s=zd(zd({},e.design),{},{starMaps:e.design.starMaps&&Object.keys(e.design.starMaps).length>0?e.design.starMaps:{1:jn()},oldMaps:e.design.oldMaps&&Object.keys(e.design.oldMaps).length>0?e.design.oldMaps:{1:Tn()},osMaps:e.design.osMaps&&Object.keys(e.design.osMaps).length>0?e.design.osMaps:{1:Nn()},maps:e.design.maps&&Object.keys(e.design.maps).length>0?Object.fromEntries(Object.entries(e.design.maps).map(function(e){var t=Pd(e,2);return[t[0],j(t[1])]})):{1:Wn()},soundwaves:e.design.soundwaves||{},vinyls:e.design.vinyls&&Object.keys(e.design.vinyls).length>0?e.design.vinyls:"vinyl"===e.productType?{1:{lyrics:"",cursiveLyrics:!1,discColor:"#000000",discTextColor:"#FFFFFF",labelColor:"#FFFFFF",labelTextColor:"#000000",themeId:"black",label:{line1:"",line2:"",recordLabel:"",country:"",year:"",length:"",sideText:"SIDE A",songTitle:"",artist:""},scanCode:{enabled:!1,type:"none",position:"br",sizePct:12,color:"#FFFFFF"}}}:{},albums:e.design.albums&&Object.keys(e.design.albums).length>0?e.design.albums:"album"===e.productType?{1:{lyrics:"",cursiveLyrics:!1,bgColor:"#FFFFFF",textColor:"#000000",useCustomCover:!1,label:{artist:"",songTitle:"",recordLabel:"",year:"",length:""},scanCode:{enabled:!1,type:"none",position:"br",sizePct:12,color:"#000000"}}}:{},assignedImages:e.design.assignedImages||{}});
2if(Ln(s),"starmap"===e.productType&&Oe(!0),"soundwave"===e.productType&&(null===(n=s.soundwaves)||void 0===n||null===(n=n[1])||void 0===n||null===(n=n.barData)||void 0===n?void 0:n.length)>0&&Xe(!0),"vinyl"===e.productType&&(null!==(r=s.vinyls)&&void 0!==r&&null!==(r=r[1])&&void 0!==r&&null!==(r=r.label)&&void 0!==r&&r.songTitle||null!==(o=s.vinyls)&&void 0!==o&&null!==(o=o[1])&&void 0!==o&&o.lyrics)&&Ge(!0),"album"===e.productType&&(null!==(a=s.albums)&&void 0!==a&&null!==(a=a[1])&&void 0!==a&&null!==(a=a.label)&&void 0!==a&&a.songTitle||null!==(i=s.albums)&&void 0!==i&&null!==(i=i[1])&&void 0!==i&&i.lyrics)&&Re(!0),"map"===e.productType){var c,u=null===(c=s.maps)||void 0===c?void 0:c[1];_e(!(!u||!(u.routes&&u.routes.length||u.locationLabel)))}if("custom-framing"===e.productType&&e.customFraming&&W&&A(zd(zd({},fe(W)),e.customFraming)),e.sourceImages){var p=Object.entries(e.sourceImages).map(function(e){var t=Pd(e,2),n=t[0],r=t[1];return{id:n,url:String(r),file:null}});X(p)}return wn("Design Restored","success"),!0}return!1};(0,e.useEffect)(function(){var e=new URLSearchParams(window.location.search),t=e.get("cfShare");if(t&&W)try{var n,r=new URLSearchParams(decodeURIComponent(t)),o=parseFloat(r.get("w")||"0"),a=parseFloat(r.get("h")||"0"),i=(r.get("moulding")||"").replace(/^PFC-FRAME-/,"").replace(/-CUSTOM$/,"");o&&a&&D&&A(zd(zd({},D),{},{widthMm:o,heightMm:a,unit:r.get("u")||D.unit,mouldingCode:(null===(n=W.mouldings.find(function(e){return e.code===i}))||void 0===n?void 0:n.code)||D.mouldingCode,mountId:r.get("mount")||null,mountBorderMm:parseFloat(r.get("mb")||String(D.mountBorderMm)),glazingId:r.get("glaze")||D.glazingId,paperId:r.get("paper")||D.paperId}))}catch(e){console.warn("cfShare parse failed",e)}var l=e.get("session");if(l)ft(!0),qd(l).then(function(e){if(e)Pn(e,l);else{wn("Could not load design","info");var t=crypto.randomUUID?crypto.randomUUID():Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15);pt(t)}ft(!1)});else{var s=crypto.randomUUID?crypto.randomUUID():Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15);if(pt(s),af.presetImage){var c="preset-image",u={id:c,url:af.presetImage,file:null};X([u]),Ln(function(e){return zd(zd({},e),{},{assignedImages:zd(zd({},e.assignedImages),{},{main:{imageId:c,crop:{x:50,y:50,zoom:1}}})})})}}},[]),(0,e.useEffect)(function(){var e=function(){var e=Jd(Qd().m(function e(){var t,n,r,o,a,i,l;return Qd().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.n=1,document.fonts.ready;case 1:t=[],n=Ed(Me),e.p=2,n.s();case 3:if((r=n.n()).done){e.n=8;break}if(o=r.value,a='16px "'.concat(o.name,'"'),!document.fonts.check(a)){e.n=4;break}t.push(o),e.n=7;break;case 4:return e.p=4,e.n=5,document.fonts.load(a);case 5:document.fonts.check(a)?t.push(o):console.warn("Font ".concat(o.name," failed to load.")),e.n=7;break;case 6:e.p=6,i=e.v,console.warn("Error checking font ".concat(o.name),i);case 7:e.n=3;break;case 8:e.n=10;break;case 9:e.p=9,l=e.v,n.e(l);case 10:return e.p=10,n.f(),e.f(10);case 11:Ae(t);case 12:return e.a(2)}},e,null,[[4,6],[2,9,10,11]])}));return function(){return e.apply(this,arguments)}}();e()},[]);var Zn=function(){var e=Jd(Qd().m(function e(t){var n;return Qd().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,qd(t);case 1:if(!(n=e.v)){e.n=2;break}return e.a(2,Pn(n,t));case 2:return e.a(2,!1)}},e)}));return function(t){return e.apply(this,arguments)}}(),Gn=we.find(function(e){return e.id===Cn.sizeId})||we[0];(0,e.useEffect)(function(){var e,t=window.__tpeStudio||{};window.__tpeStudio=zd(zd({},t),{},{loadCollage:(e=Jd(Qd().m(function e(t){var n,r,o,a,i,l,s,c,u;return Qd().w(function(e){for(;;)switch(e.n){case 0:if(o=t.count?Wt(t.count,It(Gn)):t.gridRows&&t.gridCols?jt(t.gridRows,t.gridCols):((null===(n=ut.collage)||void 0===n?void 0:n[Gn.category])||[]).find(function(e){return e.id===t.layoutId})){e.n=1;break}throw new Error("loadCollage: layout not found for "+(t.count||t.layoutId||"".concat(t.gridRows,"x").concat(t.gridCols)));case 1:return a=!!(t.count||t.gridRows&&t.gridCols),i=t.images.map(function(e,t){return{id:"hero-".concat(t),url:e.url,width:e.width,height:e.height,file:null}}),l={}
2,o.slots.forEach(function(e,t){var n=i[t%i.length],r=Gn.widthIn*(e.w/100),o=Gn.heightIn*(e.h/100),a=Math.max(1,rf(n.width,n.height,r,o));l[e.id]={imageId:n.id,crop:{zoom:a,x:50,y:50}}}),(s=t.frameId)&&(c=Qn.filter(function(e){return"none"!==e.id}),Qn.some(function(e){return e.id===s})||(s=null===(u=c.find(function(e){return/black/i.test(e.name)})||c.find(function(e){return/wood|gallery/i.test(e.name)})||c[0])||void 0===u?void 0:u.id)),N("collage"),X(i),Ln(function(e){return zd(zd({},e),{},{layoutId:o.id,customLayout:a?o:void 0,assignedImages:l},s?{frameId:s}:{})}),e.n=2,new Promise(function(e){return setTimeout(e,Math.min(9e3,1800+120*i.length))});case 2:return e.a(2,null===(r=zn.current)||void 0===r?void 0:r.capturePreview({quality:"high"}))}},e)})),function(t){return e.apply(this,arguments)})})});var Fn=(0,e.useRef)(!1);(0,e.useEffect)(function(){var e;if(!Fn.current&&Gn){Fn.current=!0;var t,n=null===(e=af.defaults)||void 0===e?void 0:e.unitSystem;(t="METRIC"===n?v.METRIC:"IMPERIAL"===n?v.IMPERIAL:"M"===Gn.unit?v.METRIC:v.IMPERIAL)!==L&&E(t)}},[Gn,L]);var Bn=(0,e.useRef)(L);(0,e.useEffect)(function(){var e,t;if(Bn.current!==L&&(Bn.current=L,Gn)){var n=L===v.IMPERIAL?"I":"M";if(Gn.unit!==n){var r=Un.filter(function(e){return e.unit===n});if(0!==r.length){var o,a=(null!==(e=Gn.widthMm)&&void 0!==e?e:25.4*Gn.widthIn)*(null!==(t=Gn.heightMm)&&void 0!==t?t:25.4*Gn.heightIn),i=r[0],l=1/0,s=Ed(r);try{for(s.s();!(o=s.n()).done;){var c,u,p=o.value,d=(null!==(c=p.widthMm)&&void 0!==c?c:25.4*p.widthIn)*(null!==(u=p.heightMm)&&void 0!==u?u:25.4*p.heightIn),f=Math.abs(d-a);f<l&&(l=f,i=p)}}catch(e){s.e(e)}finally{s.f()}Ln(function(e){return zd(zd({},e),{},{sizeId:i.id})})}}}},[L,Gn,Un]);var Rn=(0,e.useMemo)(function(){var e;if(!Gn||!In.mountPrices)return[];var t,n,r,o,a=!(null===(e=af.features)||void 0===e||!e.mountAspectMatch),i=Gn.widthIn,l=Gn.heightIn,s=[],c=.393701,u=Gn.unit;"I"===Gn.unit?(t=Gn.widthIn,n=Gn.heightIn):(t=Math.round((null!==(r=Gn.widthMm)&&void 0!==r?r:0)/10),n=Math.round((null!==(o=Gn.heightMm)&&void 0!==o?o:0)/10));var p=Gn.aPaperKey?"".concat(u,"-").concat(Gn.aPaperKey):"".concat(u,"-").concat(t,"X").concat(n);In.frameAvailability["".concat(Cn.frameId,"-").concat(p)]||Gn.aPaperKey||(p="".concat(u,"-").concat(n,"X").concat(t));var d=In.framePrices["".concat(Cn.frameId,"-").concat(p)]||0,f={A1:[594,841],A2:[420,594],A3:[297,420],A4:[210,297]};return Object.keys(In.mountPrices).forEach(function(e){var t=e.split("-");if(!(t.length<2)){var n=t[0];if(n===u){var r,o,p,m,h,g,x=t[t.length-1],y=f[x.toUpperCase()];if(y){var v=Pd(y,2),b=v[0],Y=v[1];r=b/10,o=Y/10,p=b/25.4,m=Y/25.4,h=x.toUpperCase(),g=""}else{var M=Pd(x.split("X"),2),w=M[0],S=M[1];if(r=parseInt(w),o=parseInt(S),isNaN(r)||isNaN(o))return;p=r,m=o,"M"===n&&(p=r*c,m=o*c),h=r,g=o}if(p>i&&m>l||m>i&&p>l){var j=void 0!==y,T=p,N=m,W=j?h:r,I=j?g:o;if(i<l?(T=Math.min(p,m),N=Math.max(p,m),j||(W=Math.min(r,o),I=Math.max(r,o))):(T=Math.max(p,m),N=Math.min(p,m),j||(W=Math.max(r,o),I=Math.min(r,o))),T>i&&N>l){var U=(T-i)/2,k=(N-l)/2;if(U<.5||k<.5)return;if(U>6.05||k>6.05)return;if(a){if(Math.abs(i-l)<.1!=Math.abs(T-N)<.1)return}else if(Math.abs(U-k)>.05)return;var D=2.54*U,A=2.54*k,C=Se.some(function(t){if("none"===t.id)return!1;var n="".concat(t.id,"-").concat(e);return In.frameAvailability[n]});if(C){var L=In.framePrices["".concat(Cn.frameId,"-").concat(e)]||0,O=In.mountPrices[e]||0,E=L-d+O,V="M"===Gn.unit,z=V?"cm":'"',X=V?D:U,P=V?A:k,Z=Math.abs(U-k)<.05?"".concat(X.toFixed(1)).concat(z," border"):"".concat(X.toFixed(1)).concat(z," × ").concat(P.toFixed(1)).concat(z," border"),G=void 0!==y?"Fits ".concat(W," Frame"):"Fits ".concat(W).concat(z," x ").concat(I).concat(z," Frame");s.push({borderLabel:Z,frameLabel:G,suffix:e,widthCm:D,borders:{left:D,right:D,top:A,bottom:A},upsellCost:E})}}}}}}),s.sort(function(e,t){return e.upsellCost-t.upsellCost})},[Gn,In,Cn.frameId]),Qn=(0,e.useMemo)(function(){var e,t="";if(Cn.mount.enabled&&"none"!==Cn.frameId&&Rn.length>0){var n,r=Rn.find(function(e){return Math.abs(e.borders.top-Cn.mount.top)<.1&&Math.abs(e.borders.left-Cn.mount.left)<.1});
2t=r?r.suffix:(null===(n=Rn[0])||void 0===n?void 0:n.suffix)||""}if(!t){var o=Gn.unit;if(Gn.aPaperKey)t="".concat(o,"-").concat(Gn.aPaperKey);else{var a,i,l,s;"I"===o?(a=Gn.widthIn,i=Gn.heightIn):(a=Math.round((null!==(l=Gn.widthMm)&&void 0!==l?l:0)/10),i=Math.round((null!==(s=Gn.heightMm)&&void 0!==s?s:0)/10)),t="".concat(o,"-").concat(a,"X").concat(i);var c=Se.some(function(e){return"none"!==e.id&&In.frameAvailability["".concat(e.id,"-").concat(t)]});c||(t="".concat(o,"-").concat(i,"X").concat(a))}}var u=Se.map(function(e){var n,r,o=0,a=!0;if("none"!==e.id){var i="".concat(e.id,"-").concat(t);In.frameAvailability[i]?(o=In.framePrices[i]||0,n=In.frameImages[i],r=In.frameVariantIds[i]):a=!1}return zd(zd({},e),{},{priceAddon:o,isAvailable:a,image:n,variantId:r})}).filter(function(e){return e.isAvailable});return null!==(e=af.features)&&void 0!==e&&e.requireFrame?u.filter(function(e){return"none"!==e.id}):u},[Gn,In,Cn.mount.enabled,Cn.mount.top,Cn.mount.left,Rn,Cn.frameId]);(0,e.useEffect)(function(){var e,t=Qn.some(function(e){return e.id===Cn.frameId});if(!t)if(null!==(e=af.features)&&void 0!==e&&e.requireFrame){var n,r=null===(n=Qn[0])||void 0===n?void 0:n.id;r&&r!==Cn.frameId&&Ln(function(e){return zd(zd({},e),{},{frameId:r})})}else"none"!==Cn.frameId&&Ln(function(e){return zd(zd({},e),{},{frameId:"none"})})},[Qn,Cn.frameId]),(0,e.useEffect)(function(){var e,t=!(null===(e=af.features)||void 0===e||!e.requireMount),n=!!Cn.frameId&&"none"!==Cn.frameId,r=Rn.some(function(e){return Math.abs(e.borders.top-Cn.mount.top)<.1&&Math.abs(e.borders.left-Cn.mount.left)<.1}),o=function(){var e=Rn[0];Ln(function(t){return zd(zd({},t),{},{mount:zd(zd({},t.mount),{},{enabled:!0,widthCm:e.widthCm,top:e.borders.top,bottom:e.borders.bottom,left:e.borders.left,right:e.borders.right})})})};if(t){if(0===Rn.length)return;r||o()}else Cn.mount.enabled&&(n&&0!==Rn.length?r||o():Ln(function(e){return zd(zd({},e),{},{mount:zd(zd({},e.mount),{},{enabled:!1})})}))},[Rn,Cn.mount.enabled,Cn.mount.top,Cn.mount.left,Cn.frameId]);var Hn=Qn.find(function(e){return e.id===Cn.frameId})||Qn[0]||Se[0];(0,e.useEffect)(function(){!function(e){var t,n=e.design,r=e.productType,o=e.sizeLabel,a=e.frameLabel,i=e.sessionId,l="function"==typeof(t=window.bbTrack)?t:null;if(l&&n)try{var s,c,u,p;oe(l,"Product type",r),oe(l,"Size",null!=o?o:n.sizeId),oe(l,"Frame",null!=a?a:n.frameId),oe(l,"Layout",n.layoutId),null!==(s=n.mount)&&void 0!==s&&s.enabled&&oe(l,"Mount",n.mount.colorId||"yes"),oe(l,"Design ID",i),(null!==(c=n.captionLines)&&void 0!==c?c:[]).forEach(function(e,t){oe(l,"Text ".concat(t+1),null==e?void 0:e.text)});var d=ae(n.starMaps);d&&(oe(l,"Star map date",d.date),oe(l,"Star map place",d.locationLabel));var f=null!==(u=null!==(p=ae(n.maps))&&void 0!==p?p:ae(n.osMaps))&&void 0!==u?u:ae(n.oldMaps);f&&oe(l,"Map place",f.locationLabel);var m=ae(n.soundwaves);null!=m&&m.metadata&&(oe(l,"Sound wave track",m.metadata.title),oe(l,"Sound wave artist",m.metadata.artist));var h,g,x,y=ae(n.vinyls);y&&(oe(l,"Vinyl track",null===(h=y.label)||void 0===h?void 0:h.songTitle),oe(l,"Vinyl artist",null===(g=y.label)||void 0===g?void 0:g.artist),oe(l,"Vinyl lyrics supplied",null!==(x=y.lyrics)&&void 0!==x&&x.trim()?"yes":"no"));var v,b,Y,M,w,S=ae(n.albums);S&&(oe(l,"Album track",(null===(v=S.label)||void 0===v?void 0:v.songTitle)||(null===(b=S.metadata)||void 0===b?void 0:b.title)),oe(l,"Album artist",(null===(Y=S.label)||void 0===Y?void 0:Y.artist)||(null===(M=S.metadata)||void 0===M?void 0:M.artist)),oe(l,"Album lyrics supplied",null!==(w=S.lyrics)&&void 0!==w&&w.trim()?"yes":"no"))}catch(e){}}({design:Cn,productType:T,sizeLabel:null==Gn?void 0:Gn.imperial,frameLabel:null==Hn?void 0:Hn.name,sessionId:ct})},[Cn,T,Gn,Hn,ct]);var Kn=(null===(n=ut[T])||void 0===n?void 0:n[Gn.category])||[],Jn=Cn.customLayout&&Cn.customLayout.id===Cn.layoutId?Cn.customLayout:Kn.find(function(e){return e.id===Cn.layoutId})||Kn[0],qn=(0,e.useMemo)(function(){if("custom-framing"===T)return Jn||{id:"cf-none",name:"Custom Framing",slots:[],type:"custom-framing",hasCaption:!1};if(Cn.customLayout&&Cn.layoutId===Cn.customLayout.id)return Cn.customLayout;if("collage"===T&&Cn.enableCollageCaption&&!Jn.hasCaption){var e=Jn.slots.map(function(e){return zd(zd({},e),{},{y:.8*e.y,h:.8*e.h})});return zd(zd({},Jn),{},{id:"".concat(Jn.id,"-captioned"),hasCaption:!0,slots:e})}return Jn},[Jn,T,Cn.enableCollageCaption,Cn.layoutId,Cn.customLayout]),_n=(0,e.useMemo)(function(){return"starmap"===T?"STARMAP"
2:"oldmap"===T||"osmap"===T?"OLDMAP":"map"===T?"MAP":0===z.length?"UPLOAD":G?"ASSIGN_IMAGE":"SELECT_SLOT"},[T,z.length,G]);(0,e.useEffect)(function(){"SELECT_SLOT"===_n?tt(!1):"ASSIGN_IMAGE"===_n&&tt(!0)},[_n]),(0,e.useEffect)(function(){var e=Cn.customLayout;if(e&&e.autoCount&&Cn.layoutId===e.id){var t=Wt(e.autoCount,It(Gn));t.id!==e.id&&Ln(function(n){var r=t.slots.map(function(e){return e.id}),o={};return e.slots.forEach(function(e,t){var a=r[t];a&&n.assignedImages[e.id]&&(o[a]=n.assignedImages[e.id])}),zd(zd({},n),{},{layoutId:t.id,customLayout:t,assignedImages:o})})}},[Gn.id,Cn.customLayout,Cn.layoutId]),(0,e.useEffect)(function(){if((!Cn.customLayout||Cn.layoutId!==Cn.customLayout.id)&&!Kn.some(function(e){return e.id===Cn.layoutId})&&Kn.length>0){var e=Kn[0];Ln(function(t){return zd(zd({},t),{},{layoutId:e.id,captionLines:e.hasCaption&&0===t.captionLines.length?Sn(e.defaultLineCount):t.captionLines})})}},[Gn.category,T,Kn,Cn.layoutId,Cn.customLayout]);var $n=function(e){var t,n=window.PFCBundleRate;if("function"==typeof n){var r=Number(n(null==e?void 0:e.price,null==e?void 0:e.base));if(Number.isFinite(r)&&r>0)return r}var o=null===(t=window.Shopify)||void 0===t?void 0:t.currency,a=Number(null==o?void 0:o.rate);return!o||!Number.isFinite(a)||a<=0?1:a},er=$n(),tr=!(null===(r=af.features)||void 0===r||!r.bundlePriceAuthoritative),nr=function(e,t){var n=$n(t);return 1===n?e:Math.round(e*n)},rr=(0,e.useMemo)(function(){var e;if(!Cn.mount.enabled||"none"===Hn.id||0===Rn.length)return"";var t=Rn.find(function(e){return Math.abs(e.borders.top-Cn.mount.top)<.1&&Math.abs(e.borders.left-Cn.mount.left)<.1});return(null==t?void 0:t.suffix)||(null===(e=Rn[0])||void 0===e?void 0:e.suffix)||""},[Cn.mount.enabled,Cn.mount.top,Cn.mount.left,Rn,Hn.id]),or=(0,e.useMemo)(function(){var e={baseVariant:null,frameVariantId:"",mountVariantId:"",bundle:null};if(!tr)return e;var t=[];if(Gn.aPaperKey)t.push("Landscape"===Gn.category?"".concat(Gn.aPaperKey," Landscape"):Gn.aPaperKey);else if("M"===Gn.unit){var n,r,o=Math.round((null!==(n=Gn.widthMm)&&void 0!==n?n:0)/10),a=Math.round((null!==(r=Gn.heightMm)&&void 0!==r?r:0)/10);t.push("".concat(o,"cm x ").concat(a,"cm"),"".concat(a,"cm x ").concat(o,"cm"))}else t.push("".concat(Gn.widthIn,'" x ').concat(Gn.heightIn,'"'),"".concat(Gn.heightIn,'" x ').concat(Gn.widthIn,'"'));for(var i=null,l=function(){var e,t=c[s];if(i=null===(e=af.product)||void 0===e||null===(e=e.variants)||void 0===e?void 0:e.find(function(e){return e.title===t}),i)return 1},s=0,c=t;s<c.length&&!l();s++);var u=Hn.variantId||"";if(!i||"none"===Hn.id||!u)return zd(zd({},e),{},{baseVariant:i});var p=rr&&In.mountVariantIds[rr]||"",d=i.cross_sell_bundles_pro_options||[],f=function(e,t){var n;return null===(n=e.components)||void 0===n?void 0:n.some(function(e){return String(e.id).indexOf(t)>-1})},m=(p?d.find(function(e){var t;return(null===(t=e.components)||void 0===t?void 0:t.length)>1&&f(e,u)&&f(e,p)}):d.find(function(e){var t;return 1===(null===(t=e.components)||void 0===t?void 0:t.length)&&f(e,u)}))||null;return m||console.warn("[studio] no bundle for frame",u,"mount",p||"(none)","— falling back to component prices; the cart may charge a different total"),{baseVariant:i,frameVariantId:u,mountVariantId:p,bundle:m}},[tr,Gn,Hn,rr,In]),ar=(0,e.useMemo)(function(){var e=or.baseVariant;if(!tr||!e)return Qn;var t=e.cross_sell_bundles_pro_options||[];if(!t.length)return Qn;var n=or.mountVariantId,r=rr&&In.mountPrices[rr]||0,o=function(e,t){var n;return null===(n=e.components)||void 0===n?void 0:n.some(function(e){return String(e.id).indexOf(t)>-1})};return Qn.map(function(e){var a=e.variantId;if("none"===e.id||!a)return e;var i=n?t.find(function(e){var t;return(null===(t=e.components)||void 0===t?void 0:t.length)>1&&o(e,a)&&o(e,n)}):t.find(function(e){var t;return 1===(null===(t=e.components)||void 0===t?void 0:t.length)&&o(e,a)});if(!i)return e;var l=nr(Number(i.price),or.baseVariant)-r;if(l<=0)return e;var s=Number(i.priceWas),c=Number.isFinite(s)&&s>Number(i.price)?nr(s,or.baseVariant)-r:0;return zd(zd({},e),{},c>l?{priceAddon:l,priceAddonWas:c}:{priceAddon:l})})},[Qn,or,rr,In,tr,er]),ir=(0,e.useMemo)(function(){if("custom-framing"===T&&D&&W){var e,t,n,r,o=ue(D,W,!!z[0]),a=null!==(e=null!==(t=null===(n=o.bucket)||void 0===n?void 0:n.price)&&void 0!==t?t:o.raw)&&void 0!==e?e:0,i=Number(null===(r=o.moulding)||void 0===r?void 0:r.hostPrice),l={price:100*i,base:W.minOrderTotal},s=1!==$n(l)&&Number.isFinite(i)?i+nr(Math.max(0,a-(W.minOrderTotal||0)),l):a;return{subTotal:s,discount:0,totalPrice:s,priceLines:[{label:"Made-to-measure frame",amount:s}]}}var c=In.basePrices[Cn.sizeId]||0,u=Hn.priceAddon,p=0;if(Cn.mount.enabled&&"none"!==Hn.id)if(Rn.length>
20)p=In.mountPrices[rr]||0;else{var d=Object.values(In.mountPrices||{});p=d.length?Math.max.apply(Math,d):0,d.length||console.warn("[studio] mount enabled but no mount prices configured; not charging for the mount")}var f=u,m=p,h=or.bundle?nr(Number(or.bundle.price),or.baseVariant):null;null!==h&&Number.isFinite(h)&&"none"!==Hn.id&&(p>0&&h-p>0?f=h-p:(f=h,m=0));var g=c+f+m,x=af.sale||0,y=g*x;try{var v,b,Y;window.PFC_PRICE_DEBUG={build:window.PFC_STUDIO_BUILD,size:Gn.metric||Gn.imperial,sizeId:Cn.sizeId,base:c,frameId:Cn.frameId,frameName:Hn.name,frameVariantId:Hn.variantId||null,framePriceAddon:u,mountEnabled:Cn.mount.enabled,mountBorders:{top:Cn.mount.top,left:Cn.mount.left},mountOptionSuffixes:Rn.map(function(e){return e.suffix}),mountSuffix:rr,mountVariantId:or.mountVariantId||null,bundleId:(null===(v=or.bundle)||void 0===v?void 0:v.id)||null,bundlePriceRaw:null!==(b=null===(Y=or.bundle)||void 0===Y?void 0:Y.price)&&void 0!==b?b:null,bundleRate:er,bundlePriceConverted:or.bundle?nr(Number(or.bundle.price),or.baseVariant):null,shopCurrency:af.shopCurrency,activeCurrency:af.activeCurrency,bundleResolved:!!or.bundle,frameCostShown:f,mountCostShown:m,saleDecimal:x,discount:y,total:g-y}}catch(e){}return{subTotal:g,discount:y,totalPrice:g-y,priceLines:[{label:"Print · ".concat(Gn.metric||Gn.imperial),amount:c},{label:"none"!==Hn.id?"Frame · ".concat(Hn.name):"",amount:f},{label:"Mount",amount:m}].filter(function(e){return e.label&&e.amount>0})}},[Gn,Hn,Cn.mount,In,Rn,T,D,W,or,rr,z,er]),lr=ir.subTotal,sr=ir.totalPrice,cr=ir.discount,ur=ir.priceLines,pr=((0,e.useMemo)(function(){var e;if(!D||!W)return"";var t=W,n=["".concat((null===(e=t.mouldings.find(function(e){return e.code===D.mouldingCode}))||void 0===e?void 0:e.name)||"Frame"," frame")];if(D.mountId){var r=t.mount.options.find(function(e){return e.id===D.mountId});r&&n.push("".concat(r.label.toLowerCase()," mount"))}var o=t.glazing.options.find(function(e){return e.id===D.glazingId})||(t.glazing.badge?{label:t.glazing.badge}:null);o&&n.push(o.label.toLowerCase());var a=t.paper.options.find(function(e){return e.id===D.paperId})||(t.paper.badge?{label:t.paper.badge}:null);return z[0]&&a&&n.push(a.label.toLowerCase()),n.join(" · ")},[D,W,z]),(0,e.useMemo)(function(){if(!D)return"";var e=!!D.mountId,t=!!z[0];return e&&t?"Frame + mount + print":e?"Frame + mount":t?"Frame + print":"Frame only"},[D,z])),dr=(0,e.useMemo)(function(){var e;if(!D||!W)return"";var t=(null===(e=W.mouldings.find(function(e){return e.code===D.mouldingCode}))||void 0===e?void 0:e.name)||"Custom frame",n="".concat(he(D.widthMm,D.unit)," × ").concat(he(D.heightMm,D.unit)).concat(D.unit);return"".concat(n," · ").concat(t)},[D,W]),fr=function(e,t){Ln(function(n){return zd(zd({},n),{},Bd({},e,t))})},mr=function(){var e=Jd(Qd().m(function e(t){var n,r,o;return Qd().w(function(e){for(;;)switch(e.n){case 0:if(n=t.width,r=t.height,n&&r){e.n=2;break}return(o=new Image).src=t.url,e.n=1,o.decode().catch(function(){});case 1:n=o.width,r=o.height;case 2:return e.a(2,{w:n||0,h:r||0})}},e)}));return function(t){return e.apply(this,arguments)}}(),hr=function(){var e=Jd(Qd().m(function e(t,n,r){var o,a,i,l,s,c;return Qd().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,mr(t);case 1:if(o=e.v,a=o.w,i=o.h,a&&i){e.n=2;break}return e.a(2,{x:50,y:50,zoom:1});case 2:return l=r.widthIn*(n.w/100),s=r.heightIn*(n.h/100),c=rf(a,i,l,s),e.a(2,{x:50,y:50,zoom:Math.max(1,c)})}},e)}));return function(t,n,r){return e.apply(this,arguments)}}(),gr=function(){var e=Jd(Qd().m(function e(){var t,n,r,o,a,i,l,s,c,u,p,d;return Qd().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t=qn.slots,n=new Set(Object.values(Cn.assignedImages).map(function(e){return e.imageId}).filter(Boolean)),r=z.filter(function(e){return!n.has(e.id)}),0!==r.length){e.n=1;break}return e.a(2);case 1:o=zd({},Cn.assignedImages),a=0,i=Ed(t),e.p=2,i.s();case 3:if((l=i.n()).done){e.n=8;break}if(c=l.value,null===(s=o[c.id])||void 0===s||!s.imageId){e.n=4;break}return e.a(3,7);case 4:if(u=r[a]){e.n=5;break}return e.a(3,8);case 5:return a++,e.n=6,hr(u,c,Gn);case 6:p=e.v,o[c.id]={imageId:u.id,crop:p};case 7:e.n=3;break;case 8:e.n=10;break;case 9:e.p=9,d=e.v,i.e(d);case 10:return e.p=10,i.f(),e.f(10);case 11:Ln(function(e){return zd(zd({},e),{},{assignedImages:o})});case 12:return e.a(2)}},e,null,[[2,9,10,11]])}));return function(){return e.apply(this,arguments)}}(),xr=function(){var e=Jd(Qd().m(function e(t){var n,r;return Qd().w(function(e){for(;;)switch(e.n){case 0:if(n=we.find(function(e){return e.id===t}),n&&t!==Cn.sizeId){e.n=1;break}return Ln(function(e){return zd(zd({},e),{},{sizeId:t})}),e.a(2);case 1:if(("single"===T||"collage"===T)&&0!==Object.keys(Cn.assignedImages).length){e.n=2;break}return Ln(function(e){return zd(zd({},e),{},{sizeId:t})}),e.a(2);case 2:return r=zd({},Cn.assignedImages),e.n=3,Promise.all(qn.slots.map(function(){var e=Jd(Qd().m(function e(t){var o,a,i,l,s,c,u,p;return Qd().w(function(e){for(;;
2)switch(e.p=e.n){case 0:if(o=r[t.id]){e.n=1;break}return e.a(2);case 1:if(a=z.find(function(e){return e.id===o.imageId}),a){e.n=2;break}return e.a(2);case 2:if(e.p=2,i=a.width,l=a.height,i&&l){e.n=4;break}return(s=new Image).src=a.url,e.n=3,s.decode().catch(function(){});case 3:i=s.width,l=s.height;case 4:if(i&&l){e.n=5;break}return e.a(2);case 5:c=n.widthIn*(t.w/100),u=n.heightIn*(t.h/100),p=rf(i,l,c,u),r[t.id]=zd(zd({},o),{},{crop:{x:50,y:50,zoom:Math.max(1,p)},recropped:!0}),e.n=7;break;case 6:e.p=6,e.v,console.warn("Failed to recalc crop on size change",a.id);case 7:return e.a(2)}},e,null,[[2,6]])}));return function(t){return e.apply(this,arguments)}}()));case 3:Ln(function(e){return zd(zd({},e),{},{sizeId:t,assignedImages:r})});case 4:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}();(0,e.useEffect)(function(){if("map"===T){var e=function(){if("undefined"==typeof window)return null;var e=new URLSearchParams(window.location.search),t=e.get("stoken"),n=e.get("suser");return t&&n?{stoken:t,suser:n,susername:e.get("susername")||void 0}:null}();if(e){var t=!1;return Jd(Qd().m(function n(){var r,o,a,i,l,s;return Qd().w(function(n){for(;;)switch(n.p=n.n){case 0:return n.p=0,n.n=1,$(e);case 1:if(r=n.v,!t&&0!==r.length){n.n=2;break}return n.a(2);case 2:o=180,a=-180,i=90,l=-90,s=!1,r.forEach(function(e){return e.geoJsonRoute.geometry.coordinates.forEach(function(e){var t=Pd(e,2),n=t[0],r=t[1];Number.isFinite(n)&&Number.isFinite(r)&&(s=!0,n<o&&(o=n),n>a&&(a=n),r<i&&(i=r),r>l&&(l=r))})}),Ln(function(e){var t=e.maps[1];return t?zd(zd({},e),{},{maps:zd(zd({},e.maps),{},{1:zd(zd({},t),{},{routes:[].concat(Zd(t.routes||[]),Zd(r)),activeRouteId:r[r.length-1].id},s?{bounds:[o,i,a,l]}:{})})}):e}),n.n=4;break;case 3:n.p=3,n.v;case 4:return n.p=4,q(),n.f(4);case 5:return n.a(2)}},n,null,[[0,3,4,5]])}))(),function(){t=!0}}}},[T]);var yr=function(){var e=Jd(Qd().m(function e(t){var n,r,o,a,i;return Qd().w(function(e){for(;;)switch(e.n){case 0:if(n=function(e){return Ln(function(n){return zd(zd({},n),{},{layoutId:t.id,customLayout:t.gridConfig?t:n.customLayout,assignedImages:e})})},Object.keys(Cn.assignedImages).length>0){e.n=3;break}if(!("preset"===T&&z.length>0)){e.n=2;break}if(!(r=z.find(function(e){return"preset-image"===e.id}))){e.n=2;break}return o={},e.n=1,Promise.all(t.slots.map(function(){var e=Jd(Qd().m(function e(t){var n;return Qd().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,hr(r,t,Gn);case 1:n=e.v,o[t.id]={imageId:r.id,crop:n};case 2:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}()));case 1:return n(o),e.a(2);case 2:return n({}),e.a(2);case 3:return a=qn.slots.map(function(e){return Cn.assignedImages[e.id]}).filter(function(e){return!(null==e||!e.imageId)}),i={},e.n=4,Promise.all(t.slots.map(function(){var e=Jd(Qd().m(function e(t,n){var r,o,l;return Qd().w(function(e){for(;;)switch(e.n){case 0:if(r=a[n]){e.n=1;break}return e.a(2);case 1:if(o=z.find(function(e){return e.id===r.imageId}),o){e.n=2;break}return e.a(2);case 2:return e.n=3,hr(o,t,Gn);case 3:l=e.v,i[t.id]={imageId:r.imageId,crop:l,recropped:!0};case 4:return e.a(2)}},e)}));return function(t,n){return e.apply(this,arguments)}}()));case 4:n(i);case 5:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),vr=function(e,t){var n={zoom:1,x:50,y:50},r=qn.slots.find(function(e){return e.id===t});if(!r||!e.width||!e.height)return n;var o=Gn.widthIn*(r.w/100),a=Gn.heightIn*(r.h/100),i=rf(e.width,e.height,o,a);return zd(zd({},n),{},{zoom:Math.max(1,i)})},br=Pd((0,e.useState)(null),2),Yr=br[0],Mr=br[1],wr=(0,e.useRef)(null),Sr=function(){!0===wr.current&&tt(!0),wr.current=null},jr=function(e,t,n,r){Ln(function(o){var a=o.maps[e];if(!a||!a.markers)return o;var i=a.markers.map(function(e){return e.id===t?zd(zd({},e),{},{lat:n,lng:r}):e});return zd(zd({},o),{},{maps:zd(zd({},o.maps),{},Bd({},e,zd(zd({},a),{},{markers:i})))})})},Tr=function(e){return"single"===e?"Single Print":"collage"===e?"Collage":"starmap"===e?"Star Map":"oldmap"===e?"Old Map":"osmap"===e?"OS Map":"preset"===e?"Artwork":"soundwave"===e?"Sound Wave":"vinyl"===e?"Vinyl Lyrics":"album"===e?"Album Lyrics":"custom-framing"===e?"Custom Framing":"Custom Map"},Nr=function(){var e=Jd(Qd().m(function e(){var t,n,r,o,a,i,l;return Qd().w(function(e){for(;;)switch(e.p=e.n){case 0:if(zn.current&&!pe){e.n=1;break}return e.a(2);case 1:return je(!0),wn("Generating Print File at ".concat(it," DPI..."),"info"),e.p=2,t=it,n=Math.round(Gn.widthIn*t),r=Math.round(Gn.heightIn*t),e.n=3,zn.current.capturePreview({quality:"high",widthPx:n,heightPx:r,printOnly:!0});case 3:o=e.v,a=o.toDataURL("image/png"),(i=document.createElement("a")).download="HIGHRES_".concat(T,"_").concat(Gn.imperial.replace(/ /g,""),"_").concat(ct||"draft","_").concat(t,"dpi.png"),i.href=a,document.body.appendChild(i),i.click(),document.body.removeChild(i),wn("Download Started!","success"),e.n=5;break;case 4:e.p=4,l=e.v,console.error("Admin download failed:",l),wn("Download Failed (Canvas Error)","info");case 5:return e.p=5,je(!1),e.f(5);case 6:return e.a(2)}},e,null,[[2,4,5,6]])}));return function(){return e.apply(this,arguments)}}(),Wr=Pd((0,e.useState)(!1),2),Ir=Wr[0],Ur=Wr[1],kr=function(){var e=Jd(Qd().m(function e(){var t,n,r,o,a,i,l,s,c,u,p;return Qd().w(function(e){for(;;)switch(e.p=e.n){case 0:if("custom-framing"===T&&D){e.n=1;break}return e.a(2);case 1:if(Ur(!0),e.p=2,null==(r=z[0])||!r.file||af.disableStagedUpload){e.n=8;break}return e.p=3,o="cfshare_".concat(Date.now(),".jpg"),e.n=4,uf({file:r.file,mimeType:r.file.type||"image/jpeg",filename:o});case 4:if(!(a=e.v)||"string"!=typeof a){e.n=6;break}return e.n=5,df({originalSource:a,alt:o});case 5:"string"==typeof(i=e.v)&&i&&(n=i);case 6:e.n=8;break;case 7:e.p=7,p=e.v,console.warn("share art upload failed",p);
2case 8:return(l=new URLSearchParams).set("w",String(D.widthMm)),l.set("h",String(D.heightMm)),l.set("u",D.unit),l.set("moulding","PFC-FRAME-".concat(D.mouldingCode,"-CUSTOM")),D.mountId&&(l.set("mount",D.mountId),l.set("mb",String(D.mountBorderMm))),D.glazingId&&l.set("glaze",D.glazingId),D.paperId&&l.set("paper",D.paperId),n&&l.set("img",n),s="US"===af.countryCode?"us":"uk",c=(null===(t=af.product)||void 0===t?void 0:t.handle)||"",u="https://widgets.printframeco.com/frame-share?".concat(l.toString(),"&store=").concat(s,"&handle=").concat(encodeURIComponent(c)),e.p=9,e.n=10,navigator.clipboard.writeText(u);case 10:wn("Share link copied!","success"),e.n=12;break;case 11:e.p=11,e.v,window.prompt("Copy your share link:",u);case 12:return e.p=12,Ur(!1),e.f(12);case 13:return e.a(2)}},e,null,[[9,11],[3,7],[2,,12,13]])}));return function(){return e.apply(this,arguments)}}(),Dr=function(){te(!0),setTimeout(Jd(Qd().m(function e(){var t,n,r,o,a,i,l,s,c,u,p,d,f,m,h,g,x,y,v,b,Y,w,S,j,N,I,A,C,L,O,E,V,X,P,Z,G,F,B,R,Q,H,K,J,q,_,$,ee,ne,re,oe,ae,le,ce,pe,fe,me,he,ge,xe,ye,ve,be,Ye,Me,we,Se,je,Te,Ne,We,Ie,Ue,ke,De,Ae,Ce,Le,Oe,Ee,Ve,ze,Xe,Pe,Ze,Ge,Fe,Be,Re,Qe,He,Ke,Je,qe,_e,$e,et,tt,nt,rt,ot,at,it,lt,st,ut,dt,ft,mt,xt,bt,Yt,Mt,wt,St,jt,Tt,Nt,Wt,It,Ut,kt,Dt,At,Ct,Lt,Ot,Et,Vt,zt,Xt,Pt,Zt,Gt,Ft,Bt,Rt,Qt,Ht,Kt,Jt;return Qd().w(function(e){for(;;)switch(e.p=e.n){case 0:if(e.p=0,null===(t=af.features)||void 0===t||!t.requireFrame||"none"!==Cn.frameId){e.n=1;break}return te(!1),Mn({msg:"Please choose a frame to continue.",type:"error"}),e.a(2);case 1:if(!On){e.n=2;break}return te(!1),Mn({msg:"The map couldn’t load, so this design can’t be ordered yet.",type:"error"}),e.a(2);case 2:if(null===(n=af.features)||void 0===n||!n.requireMount||Cn.mount.enabled){e.n=3;break}return te(!1),Mn({msg:"Please choose a mount to continue.",type:"error"}),e.a(2);case 3:if(!(qn.hasCaption||"collage"===T&&Cn.enableCollageCaption)){e.n=4;break}if(!Cn.captionLines.find(function(e){return!e.text.trim()})){e.n=4;break}return te(!1),wn("Please enter text or remove the empty line.","info"),null==(i=document.getElementById("text-inputs-section"))||i.scrollIntoView({behavior:"smooth",block:"center"}),e.a(2);case 4:if(l=Object.values(Cn.assignedImages).map(function(e){return e.imageId}),!(s="single"===T||"collage"===T)){e.n=5;break}if(u=(null===(c=qn.slots)||void 0===c?void 0:c.length)||1,p=Object.keys(Cn.assignedImages).filter(function(e){var t;return null===(t=Cn.assignedImages[e])||void 0===t?void 0:t.imageId}).length,!(p<u)){e.n=5;break}return te(!1),wn("Please add ".concat(u-p," more photo").concat(u-p>1?"s":""," before checkout."),"info"),e.a(2);case 5:if(d="vinyl"===T?null===(r=Cn.vinyls)||void 0===r||null===(r=r[1])||void 0===r?void 0:r.centrePhotoId:void 0,f="album"===T&&null!==(o=Cn.albums)&&void 0!==o&&null!==(o=o[1])&&void 0!==o&&o.useCustomCover?null===(a=Cn.albums)||void 0===a||null===(a=a[1])||void 0===a?void 0:a.coverPhotoId:void 0,m=d||f,h="custom-framing"===T?z[0]:void 0,g=s?z.filter(function(e){return l.includes(e.id)}):m?z.filter(function(e){return e.id===m}):h?[h]:[],x={},!(g.length>0)){e.n=7;break}return wn("Uploading ".concat(g.length," photos..."),"info"),y=[],e.n=6,Promise.all(g.map(function(){var e=Jd(Qd().m(function e(t){var n,r,o;return Qd().w(function(e){for(;;)switch(e.p=e.n){case 0:if(e.p=0,!t.url.startsWith("https://storage.googleapis.com/pfc-uk-image-store/")&&!t.url.startsWith("https://theposteredit-order.s3.amazonaws.com/")){e.n=1;break}return x[t.id]=t.url,e.a(2);case 1:if(t.url.startsWith("data:")||t.url.startsWith("blob:")){e.n=2;break}return x[t.id]=t.url,e.a(2);case 2:if(!t.file){e.n=3;break}n=t.file,r=t.file.type||"image/jpeg",e.n=5;break;case 3:if(!t.url.startsWith("data:")){e.n=4;break}n=nf(t.url),r=n.type||"image/jpeg",e.n=5;break;case 4:throw new Error("No source file for image ".concat(t.id));case 5:return e.n=6,tf(n,r);case 6:x[t.id]=e.v,e.n=8;break;case 7:e.p=7,o=e.v,console.error("Failed to upload image ".concat(t.id),o),y.push(t.id);case 8:return e.a(2)}},e,null,[[0,7]])}));return function(t){return e.apply(this,arguments)}}()));case 6:if(!((v=g.filter(function(e){return!x[e.id]})).length>0||y.length>0)){e.n=7;break}return te(!1),wn("".concat(v.length||y.length," photo").concat((v.length||y.length)>1?"s":""," failed to upload. Check your connection and try again."),"error"),e.a(2);case 7:if(b="",S=(w="custom-framing"===T)?Xn.current:zn.current,"preset"===T||!S){e.n=19;break}
2wn("Creating preview...","info"),j=null,N="image/jpeg",I=3,A=Qd().m(function e(t){var n,r,o,a,i;return Qd().w(function(e){for(;;)switch(e.p=e.n){case 0:if(e.p=0,!w){e.n=2;break}if(o=null===(r=Xn.current)||void 0===r?void 0:r.getDataUrl()){e.n=1;break}throw new Error("CF preview returned no data url");case 1:n=nf(o),e.n=5;break;case 2:return e.n=3,zn.current.capturePreview({quality:"high",widthPx:1e3,printOnly:!1});case 3:return a=e.v,e.n=4,new Promise(function(e){return a.toBlob(e,"image/jpeg",.85)});case 4:n=e.v;case 5:if(n){e.n=6;break}throw new Error("toBlob returned null");case 6:return j=n,N=n.type||"image/jpeg",e.n=7,tf(n,N);case 7:return b=e.v,e.a(2,1);case 8:if(e.p=8,i=e.v,console.error("Preview generation attempt ".concat(t+1," failed"),i),!(t<I-1)){e.n=9;break}return e.n=9,new Promise(function(e){return setTimeout(e,500*Math.pow(2,t))});case 9:return e.a(2)}},e,null,[[0,8]])}),C=0;case 8:if(!(C<I)){e.n=11;break}return e.d(Rd(A(C)),9);case 9:if(!e.v){e.n=10;break}return e.a(3,11);case 10:C++,e.n=8;break;case 11:if(b){e.n=13;break}if(!w){e.n=12;break}console.error("Custom framing preview capture failed — continuing without a saved preview"),e.n=13;break;case 12:return te(!1),wn("Couldn't create your preview. Please try again.","error"),e.a(2);case 13:if(!j||af.disableStagedUpload){e.n=19;break}return e.p=14,L=ct||"image",O=new File([j],L),e.n=15,uf({file:O,mimeType:N,filename:L});case 15:if(!(E=e.v)||"string"!=typeof E){e.n=17;break}return e.n=16,df({originalSource:E,alt:L});case 16:V=e.v,Y=V;case 17:e.n=19;break;case 18:e.p=18,Kt=e.v,console.error("Shopify staged upload failed (non-fatal)",Kt);case 19:if(X=zd({},Cn),"starmap"!==T&&delete X.starMaps,"oldmap"!==T&&delete X.oldMaps,"osmap"!==T&&delete X.osMaps,"map"!==T&&delete X.maps,"soundwave"!==T&&delete X.soundwaves,"vinyl"!==T&&delete X.vinyls,"album"!==T&&delete X.albums,"single"!==T&&"collage"!==T&&delete X.assignedImages,"map"!==T||!X.maps){e.n=26;break}X.maps=zd({},X.maps),P=Object.keys(X.maps),Z=0,G=P;case 20:if(!(Z<G.length)){e.n=26;break}if(F=G[Z],!((B=zd({},X.maps[F])).routes&&B.routes.length>0)){e.n=22;break}return e.n=21,Promise.all(B.routes.map(function(){var e=Jd(Qd().m(function e(t){var n,r,o,a,i;return Qd().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t.geoJsonRoute&&!t.routeUrl){e.n=1;break}return e.a(2,t);case 1:return e.p=1,wn("Optimizing route data...","info"),n=JSON.stringify(t.geoJsonRoute),r=new Blob([n],{type:"application/json"}),e.n=2,ef(r,"application/json");case 2:return o=e.v,t.geoJsonRoute,a=Od(t,Cd),e.a(2,zd(zd({},a),{},{routeUrl:o}));case 3:return e.p=3,i=e.v,console.error("Route upload failed, saving with inline data",i),e.a(2,t)}},e,null,[[1,3]])}));return function(t){return e.apply(this,arguments)}}()));case 21:R=e.v,B.routes=R;case 22:if(!(B.markers&&B.markers.length>0)){e.n=24;break}return e.n=23,Promise.all(B.markers.map(function(){var e=Jd(Qd().m(function e(t){var n,r,o;return Qd().w(function(e){for(;;)switch(e.p=e.n){case 0:if("custom-photo"!==t.styleId||!t.image||!t.image.startsWith("data:")){e.n=4;break}return e.p=1,wn("Uploading marker photo...","info"),n=nf(t.image),e.n=2,ef(n,n.type||"image/jpeg");case 2:return r=e.v,e.a(2,zd(zd({},t),{},{image:r}));case 3:return e.p=3,o=e.v,console.error("Marker photo upload failed",o),e.a(2,t);case 4:return e.a(2,t)}},e,null,[[1,3]])}));return function(t){return e.apply(this,arguments)}}()));case 23:B.markers=e.v;case 24:B=U(B=k(B)),X.maps[F]=B;case 25:Z++,e.n=20;break;case 26:if(H=(Q=!!ht)?crypto.randomUUID?crypto.randomUUID():Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15):ct,K=yt||ct,"preset"===T){e.n=31;break}return wn("Saving design...","info"),J={sessionID:H,productType:T,design:X,sourceImages:x,previewUrl:b,timestamp:(new Date).toISOString(),rootSessionId:K,cartSubmittedAt:(new Date).toISOString()},"custom-framing"===T&&D&&(J.customFraming=D),Q&&(J.parentSessionId=ht),e.n=27,$d(J);case 27:if(q=e.v){e.n=30;break}return e.n=28,new Promise(function(e){return setTimeout(e,600)});case 28:return e.n=29,$d(J);case 29:q=e.v;case 30:if(q){e.n=31;break}return console.error("Design save failed — aborting cart add to avoid an unloadable session id"),te(!1),wn("We couldn't save your design. Please check your connection and try again.","error"),e.a(2);case 31:if(Q){pt(H),gt(null),vt(K);try{(_=new URL(window.location.href)).searchParams.set("session",H),window.history.replaceState({},"",_.toString())}catch(e){}}
2if(!af.shopify||!window.Shopify){e.n=50;break}if(wn("Adding to Shopping Bag...","info"),"custom-framing"!==T||!D||!W){e.n=39;break}if(be=!!z[0],(Ye=ue(D,W,be)).moulding&&Ye.bucket){e.n=32;break}throw new Error("Custom framing: no moulding/bucket resolved");case 32:if(!(Me=de(D,W,be))){e.n=33;break}throw new Error(Me);case 33:return we=parseInt(String(Ye.moulding.customVariantGid).split("/").pop()||"0",10),Ye.raw>Ye.bucket.price+.001&&console.warn("Custom framing total exceeds ladder top — clamped",Ye.raw,Ye.bucket.price),Se=D.widthMm,je=D.heightMm,Te=td({widthMm:Se,heightMm:je,mountBorderMm:Ye.mountOpt?D.mountBorderMm:null,unit:D.unit,hasCustomPrint:be}),Ne=Te.Size,We=(H||"").slice(0,8)||Math.random().toString(36).slice(2,10),Ie=D.mountId&&W.mount.options.find(function(e){return e.id===D.mountId})||null,Ue=!(!Ie||!Ie.patterned),ke=se().STRIPE_PRESETS.find(function(e){return e.hex.toLowerCase()===String(D.mountStripeHex).toLowerCase()}),De=Ye.mountOpt?Ue?{Mount:"Premium",Pattern:se().patternByKey(D.mountPattern).label,"Pattern colour":"".concat(ke?ke.label:"Custom"," (").concat(D.mountStripeHex,")")}:{Mount:"Standard","Mount colour":"black"===D.mountColour?"Black":"White"}:{Mount:"None"},Ae=zd(zd(zd(zd(zd(zd(zd(zd(zd(zd(zd({Size:Te.Size,Moulding:Ye.moulding.name},De),Te),be?{Fit:D.imageCrop?"Customer crop":"Centred"}:{}),be&&D.imageCrop?{_crop_zoom:D.imageCrop.zoom.toFixed(4),_crop_x:D.imageCrop.x.toFixed(2),_crop_y:D.imageCrop.y.toFixed(2)}:{}),Ye.glazeOpt?{Glazing:Ye.glazeOpt.label}:{}),be&&Ye.paperOpt?{Paper:Ye.paperOpt.label}:{}),b?{"Image Preview":b}:{}),{},{_upsell_bundles_pro_selected:Ye.bucket.id,_pfc_custom_frame:"1",_pfc_line:We,_addon_bundle_pro_title:"".concat(Ye.moulding.name," — ").concat(Ne),"Add-ons":"Custom Framed",_frame_w_mm:String(Se),_frame_h_mm:String(je),_moulding_sku:"PFC-FRAME-".concat(Ye.moulding.code,"-CUSTOM")},Ye.glazeOpt?{_glaze_id:D.glazingId}:{}),Ye.mountOpt?{_mount_id:String(D.mountId),_mount_border_mm:String(D.mountBorderMm)}:{}),be&&Ye.paperOpt?{_paper_id:D.paperId}:{}),{},{_true_price:Ye.raw.toFixed(2),id:H},Y?{_addon_bundle_pro_image:Y}:{}),Ce={},Object.keys(Ae).forEach(function(e){"_"!==e.charAt(0)&&(Ce[e]=Ae[e])}),Ce._unit=Ae._unit,Ae._addon_bundle_pro_personalisations=JSON.stringify(Ce),(Le=Wd(Ae))&&(Ae._addon_bundle_pro_display=Le),Oe={items:[{id:we,quantity:1,properties:Ae}],sections:"cart-drawer,cart-icon-bubble,cart-live-region-text,header-drawer"},ie(),e.n=34,fetch(window.Shopify.routes.root+"cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Oe)});case 34:if(!(Ee=e.v).ok){e.n=36;break}return e.n=35,Ee.json();case 35:if(null!=(Xe=e.v)&&null!==(Ve=Xe.sections)&&void 0!==Ve&&Ve["cart-drawer"]&&document.getElementById("CartDrawer"))try{(Ze=document.createElement("div")).innerHTML=Xe.sections["cart-drawer"],(Ge=document.querySelector("cart-drawer"))&&(Ge.outerHTML=(null===(Pe=Ze.querySelector("cart-drawer"))||void 0===Pe?void 0:Pe.outerHTML)||Ge.outerHTML),Ze.remove()}catch(e){console.log("failed to add cart info",e)}if(null!=Xe&&null!==(ze=Xe.sections)&&void 0!==ze&&ze["cart-icon-bubble"]&&document.getElementById("cart-icon-bubble"))try{(Fe=document.createElement("div")).innerHTML=Xe.sections["cart-icon-bubble"],(Be=document.getElementById("cart-icon-bubble"))&&((Qe=(null===(Re=Fe.querySelector(".shopify-section"))||void 0===Re?void 0:Re.innerHTML)||Fe.innerHTML)&&(Be.innerHTML=Qe),Be.dispatchEvent(new Event("click"))),Fe.remove()}catch(e){console.log("failed to add bubble info",e)}wn("Added to Cart!","success"),M&&setTimeout(M,500),e.n=38;break;case 36:return e.n=37,Ee.text();case 37:throw He=e.v,new Error("Custom framing add-to-cart failed: ".concat(He));case 38:return e.a(2);case 39:Ke=[],Gn.aPaperKey?Ke.push("Landscape"===Gn.category?"".concat(Gn.aPaperKey," Landscape"):Gn.aPaperKey):"M"===Gn.unit?(_e=Math.round((null!==(Je=Gn.widthMm)&&void 0!==Je?Je:0)/10),$e=Math.round((null!==(qe=Gn.heightMm)&&void 0!==qe?qe:0)/10),Ke.push("".concat(_e,"cm x ").concat($e,"cm"),"".concat($e,"cm x ").concat(_e,"cm"))):Ke.push("".concat(Gn.widthIn,'" x ').concat(Gn.heightIn,'"'),"".concat(Gn.heightIn,'" x ').concat(Gn.widthIn,'"')),et=null,tt=Qd().m(function e(){var t;return Qd().w(function(e){for(;;
2)switch(e.n){case 0:if(t=rt[nt],et=af.product.variants.find(function(e){return e.title===t}),!et){e.n=1;break}return e.a(2,1);case 1:return e.a(2)}},e)}),nt=0,rt=Ke;case 40:if(!(nt<rt.length)){e.n=43;break}return e.d(Rd(tt()),41);case 41:if(!e.v){e.n=42;break}return e.a(3,43);case 42:nt++,e.n=40;break;case 43:if(et){e.n=44;break}throw new Error("Variant not found for size ".concat(Ke[0]));case 44:return ot=et.id,at=H,it="",lt="",st="",ut="",dt=Cn.mount.enabled&&"none"!==Cn.frameId?Cn.mount.colorId:"","none"===Cn.frameId?(it="printonly",lt="Custom"):(it=Hn.name,ft="",Cn.mount.enabled&&Rn.length>0&&(mt=Rn.find(function(e){return Math.abs(e.borders.top-Cn.mount.top)<.1&&Math.abs(e.borders.left-Cn.mount.left)<.1}))&&(ft=mt.suffix),ft||(xt=Gn.unit,Gn.aPaperKey?ft="".concat(xt,"-").concat(Gn.aPaperKey):("I"===xt?(bt=Gn.widthIn,Yt=Gn.heightIn):(bt=Math.round((null!==(Mt=Gn.widthMm)&&void 0!==Mt?Mt:0)/10),Yt=Math.round((null!==(wt=Gn.heightMm)&&void 0!==wt?wt:0)/10)),ft="".concat(xt,"-").concat(bt,"X").concat(Yt))),St="".concat(Hn.skuCode,"-").concat(ft),jt=af.frameOptions.find(function(e){return e.sku===St}),jt||Gn.aPaperKey||("I"===(Tt=Gn.unit)?(Nt=Gn.widthIn,Wt=Gn.heightIn):(Nt=Math.round((null!==(It=Gn.widthMm)&&void 0!==It?It:0)/10),Wt=Math.round((null!==(Ut=Gn.heightMm)&&void 0!==Ut?Ut:0)/10)),kt="".concat(Tt,"-").concat(Wt,"X").concat(Nt),Dt="".concat(Hn.skuCode,"-").concat(kt),jt=af.frameOptions.find(function(e){return e.sku===Dt})),jt?(lt=String(jt.id),st=String(jt.name)):(lt=String(Hn.id),st=String(Hn.name)),Cn.mount.enabled&&ft&&(Ct=null===(At=af.mountOptions)||void 0===At?void 0:At.find(function(e){return String(e.sku).split("-").slice(1).join("-")===ft}),Ct&&(ut=String(Ct.id)))),Lt={items:[{id:ot,quantity:1,properties:zd(zd(zd(zd(zd({Orientation:Gn.category},"deckled"===Cn.edgeType&&"box_float"===Hn.type?{Edge:"Deckled"}:{}),"soundwave"===T&&null!==($=Cn.soundwaves)&&void 0!==$&&$[1]?zd(zd(zd({},Cn.soundwaves[1].audioUrl?{"Sound Wave Audio":Cn.soundwaves[1].audioUrl}:{}),null!==(ee=Cn.soundwaves[1].metadata)&&void 0!==ee&&ee.title?{"Sound Wave Track":"".concat(Cn.soundwaves[1].metadata.title).concat(Cn.soundwaves[1].metadata.artist?" — "+Cn.soundwaves[1].metadata.artist:"")}:{}),null!==(ne=Cn.soundwaves[1].metadata)&&void 0!==ne&&ne.spotifyUri?{"Sound Wave Spotify":Cn.soundwaves[1].metadata.spotifyUri}:{}):{}),"vinyl"===T&&null!==(re=Cn.vinyls)&&void 0!==re&&re[1]?zd(zd(zd({},null!==(oe=Cn.vinyls[1].label)&&void 0!==oe&&oe.songTitle?{"Vinyl Track":"".concat(Cn.vinyls[1].label.songTitle).concat(Cn.vinyls[1].label.artist?" — "+Cn.vinyls[1].label.artist:"")}:{}),null!==(ae=Cn.vinyls[1].lyrics)&&void 0!==ae&&ae.trim()?{"Vinyl Lyrics Provided":"Yes"}:{"Vinyl Lyrics Provided":"No (source for me)"}),null!==(le=Cn.vinyls[1].metadata)&&void 0!==le&&le.spotifyUri?{"Vinyl Spotify":Cn.vinyls[1].metadata.spotifyUri}:{}):{}),"album"===T&&null!==(ce=Cn.albums)&&void 0!==ce&&ce[1]?zd(zd(zd(zd({},null!==(pe=Cn.albums[1].label)&&void 0!==pe&&pe.songTitle?{"Album Track":"".concat(Cn.albums[1].label.songTitle).concat(Cn.albums[1].label.artist?" — "+Cn.albums[1].label.artist:"")}:{}),null!==(fe=Cn.albums[1].lyrics)&&void 0!==fe&&fe.trim()?{"Album Lyrics Provided":"Yes"}:{"Album Lyrics Provided":"No (source for me)"}),{},{"Album Cover":Cn.albums[1].useCustomCover?"Customer image":"Album artwork"},!Cn.albums[1].useCustomCover&&Cn.albums[1].coverArtUrl?{"Album Art URL":Cn.albums[1].coverArtUrl}:{}),null!==(me=Cn.albums[1].metadata)&&void 0!==me&&me.spotifyUri?{"Album Spotify":Cn.albums[1].metadata.spotifyUri}:{}):{}),"printonly"===it?{id:at,"Image Preview":b,_addon_bundle_pro_title:af.product.title,_upsell_bundles_pro_selected:"ea40399a-181e-4339-9805-1990f24ee862",_addon_bundle_pro_personalisations:JSON.stringify(zd(zd({},{id:at}),{"Image Preview":b})),_addon_bundle_pro_image:Y||null,"Add-ons":"Custom"}:{id:at,"Image Preview":b,_addon_bundle_pro_title:it&&dt?af.product.title+" / "+it+" / "+dt:af.product.title+" / "+it+" / ",_upsell_bundles_pro_selected:null!==(he=null===(ge=or.bundle)||void 0===ge?void 0:ge.id)&&void 0!==he?he:null===(xe=dt&&ut?null===(ye=et.cross_sell_bundles_pro_options)||void 0===ye?void 0:ye.find(function(e){var t,n,r;return(null===(t=e.components)||void 0===t?void 0:t.length)>1&&(null===(n=e.components)||void 0===n?void 0:n.some(function(e){return e.id.indexOf(lt)>-1}))&&(null===(r=e.components)||void 0===r?void 0:r.some(function(e){return e.id.indexOf(ut)>-1}))}):null===(ve=et.cross_sell_bundles_pro_options)||void 0===ve?void 0:ve.find(function(e){var t;return null===(t=e.components)||void 0===t?void 0:t.every(function(e){return e.id.indexOf(lt)>-1})}))||void 0===xe?void 0:xe.id,_addon_bundle_pro_personalisations:JSON.stringify(zd(zd({},{id:at}),{"Image Preview":b})),_addon_bundle_pro_image:Y||null,"Add-ons":st})}],sections:"cart-drawer,cart-icon-bubble,cart-live-region-text,header-drawer"},Lt.items.find(function(e){var t;return!(null!=e&&null!==(t=e.properties)&&void 0!==t&&t["Image Preview"])})&&(Lt.items=Lt.items.map(function(e){var t=e.properties,n=(t._addon_bundle_pro_image,Od(t,Ld));return zd(zd({},e),{},{properties:n})}
2)),Lt.items.forEach(function(e){var t=e.properties||{};if(t._upsell_bundles_pro_selected){var n={};Object.keys(t).forEach(function(e){"_"!==e.charAt(0)&&(n[e]=t[e])}),t._addon_bundle_pro_personalisations=JSON.stringify(n);var r=Wd(t);r&&(t._addon_bundle_pro_display=r)}}),ie(),e.n=45,fetch(window.Shopify.routes.root+"cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Lt)});case 45:if(!(Ot=e.v).ok){e.n=47;break}return e.n=46,Ot.json();case 46:if(null!=(zt=e.v)&&null!==(Et=zt.sections)&&void 0!==Et&&Et["cart-drawer"]&&document.getElementById("CartDrawer"))try{(Pt=document.createElement("div")).innerHTML=null==zt||null===(Xt=zt.sections)||void 0===Xt?void 0:Xt["cart-drawer"],(Zt=document.querySelector("cart-drawer"))&&(Zt.outerHTML=(null===(Gt=Pt.querySelector("cart-drawer"))||void 0===Gt?void 0:Gt.outerHTML)||Zt.outerHTML),Pt.remove()}catch(e){console.log("failed to add cart info",e)}if(null!=zt&&null!==(Vt=zt.sections)&&void 0!==Vt&&Vt["cart-icon-bubble"]&&document.getElementById("cart-icon-bubble"))try{(Ft=document.createElement("div")).innerHTML=zt.sections["cart-icon-bubble"],(Bt=document.getElementById("cart-icon-bubble"))&&((Qt=(null===(Rt=Ft.querySelector(".shopify-section"))||void 0===Rt?void 0:Rt.innerHTML)||Ft.innerHTML)&&(Bt.innerHTML=Qt),Bt.dispatchEvent(new Event("click"))),Ft.remove()}catch(e){console.log("failed to add bubble info",e)}wn("Added to Cart!","success"),M&&setTimeout(M,500),e.n=49;break;case 47:return e.n=48,Ot.json();case 48:422===(Ht=e.v).status&&Ht.description?wn(Ht.description,"info"):wn("Failed to add to cart.","info");case 49:e.n=51;break;case 50:console.log("Adding to cart (Mock):",{variantId:123456,properties:{_SessionID:H,"Print Size":"M"===Gn.unit?Gn.metric:Gn.imperial,Frame:Hn.name,Product:T,"Image Preview":b}}),wn("Added to Cart (Mock)!","success"),M&&setTimeout(M,500);case 51:e.n=53;break;case 52:e.p=52,Jt=e.v,console.error(Jt),wn("Error processing order. Please try again.","info");case 53:return e.p=53,te(!1),e.f(53);case 54:return e.a(2)}},e,null,[[14,18],[0,52,53,54]])})),50)},Ar="album"===T&&!(null===(o=Cn.albums)||void 0===o||null===(o=o[1])||void 0===o||!o.lyricsLoading)||"vinyl"===T&&!(null===(a=Cn.vinyls)||void 0===a||null===(a=a[1])||void 0===a||!a.lyricsLoading),Cr=function(){var e=Jd(Qd().m(function e(t){var n,r,o,a,i,l,s,c,u,p,d,f,m,h,g,x,y,v,b,Y;return Qd().w(function(e){for(;;)switch(e.p=e.n){case 0:if(n=(null==t?void 0:t.mode)||"version",!St){e.n=1;break}return e.a(2);case 1:return Tt(!0),e.p=2,r=Object.values(Cn.assignedImages).map(function(e){return e.imageId}),o="single"===T||"collage"===T?z.filter(function(e){return r.includes(e.id)}):z,a={},i=[],e.n=3,Promise.all(o.map(function(){var e=Jd(Qd().m(function e(t){var n,r,o;return Qd().w(function(e){for(;;)switch(e.p=e.n){case 0:if(e.p=0,!t.url.startsWith("https://storage.googleapis.com/pfc-uk-image-store/")&&!t.url.startsWith("https://theposteredit-order.s3.amazonaws.com/")){e.n=1;break}return a[t.id]=t.url,e.a(2);case 1:if(t.url.startsWith("data:")||t.url.startsWith("blob:")){e.n=2;break}return a[t.id]=t.url,e.a(2);case 2:if(!t.file){e.n=3;break}n=t.file,r=t.file.type||"image/jpeg",e.n=5;break;case 3:if(!t.url.startsWith("data:")){e.n=4;break}n=nf(t.url),r=n.type||"image/jpeg",e.n=5;break;case 4:throw new Error("No source file for image ".concat(t.id));case 5:return e.n=6,tf(n,r);case 6:a[t.id]=e.v,e.n=8;break;case 7:e.p=7,o=e.v,console.error("Failed to upload image ".concat(t.id),o),i.push(t.id);case 8:return e.a(2)}},e,null,[[0,7]])}));return function(t){return e.apply(this,arguments)}}()));case 3:if(!(i.length>0)){e.n=4;break}return wn("".concat(i.length," photo(s) failed to upload. Try again."),"error"),e.a(2);case 4:if(l="",!("custom-framing"===T?Xn.current:zn.current)){e.n=13;break}if(e.p=5,"custom-framing"!==T){e.n=6;break}u=null===(c=Xn.current)||void 0===c?void 0:c.getDataUrl(),s=u?nf(u):null,e.n=9;break;case 6:return e.n=7,zn.current.capturePreview({quality:"high",widthPx:1e3,printOnly:!1});case 7:return p=e.v,e.n=8,new Promise(function(e){return p.toBlob(e,"
2image/jpeg",.85)});case 8:s=e.v;case 9:if(!s){e.n=11;break}return e.n=10,tf(s,s.type||"image/jpeg");case 10:l=e.v;case 11:e.n=13;break;case 12:e.p=12,b=e.v,console.warn("Preview capture failed for version save",b);case 13:return d=zd({},Cn),"starmap"!==T&&delete d.starMaps,"oldmap"!==T&&delete d.oldMaps,"osmap"!==T&&delete d.osMaps,"map"!==T&&delete d.maps,"soundwave"!==T&&delete d.soundwaves,"vinyl"!==T&&delete d.vinyls,"album"!==T&&delete d.albums,"single"!==T&&"collage"!==T&&delete d.assignedImages,"map"===T&&d.maps&&(d.maps=Object.fromEntries(Object.entries(d.maps).map(function(e){var t=Pd(e,2);return[t[0],U(k(t[1]))]}))),f=crypto.randomUUID?crypto.randomUUID():Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),m=yt||ht||ct,h=ht||ct,g={sessionID:f,productType:T,design:d,sourceImages:a,previewUrl:l,timestamp:(new Date).toISOString(),rootSessionId:m,parentSessionId:h},e.n=14,$d(g);case 14:if(e.v){e.n=15;break}return wn("Save failed. Please try again.","error"),"resume"===n&&(Xt(null),Et("error")),e.a(2);case 15:pt(f),gt(f),vt(m);try{(x=new URL(window.location.href)).searchParams.set("session",f),window.history.replaceState({},"",x.toString())}catch(e){}if("resume"===n){y="";try{(v=new URL(window.location.href)).searchParams.set("session",f),y=v.toString(),Ct(y)}catch(e){Ct(null)}null!=t&&t.email&&_d({email:t.email,marketingConsent:!!t.marketingConsent,sessionId:f,productType:T,resumeUrl:y,shopDomain:window.location.hostname,consentVersion:"v1"}),Et("done")}else Mt(f);e.n=17;break;case 16:e.p=16,Y=e.v,console.error("Save new version failed",Y),wn("Could not save new version.","error"),"resume"===n&&(Xt(null),Et("error"));case 17:return e.p=17,Tt(!1),e.f(17);case 18:return e.a(2)}},e,null,[[5,12],[2,16,17,18]])}));return function(t){return e.apply(this,arguments)}}(),Lr=function(){var e=Jd(Qd().m(function e(){var t,n,r,o;return Qd().w(function(e){for(;;)switch(e.p=e.n){case 0:if(gn(!0),Jt(null),e.p=1,"custom-framing"!==T){e.n=2;break}(r=null!==(t=null===(n=Xn.current)||void 0===n?void 0:n.getDataUrl())&&void 0!==t?t:null)&&(vn(r),Qt(!0)),e.n=4;break;case 2:if(!zn.current){e.n=4;break}return e.n=3,zn.current.capturePreview({quality:"medium",printOnly:!1});case 3:o=e.v,vn(o.toDataURL()),Qt(!0);case 4:return e.p=4,gn(!1),e.f(4);case 5:return e.a(2)}},e,null,[[1,,4,5]])}));return function(){return e.apply(this,arguments)}}(),Or=function(e){rt===e&&et?tt(!1):(ot(e),tt(!0))},Er=(0,e.useMemo)(function(){var e={};return z.forEach(function(t){return e[t.id]=t.thumbUrl||t.url}),e},[z]),Vr=(0,e.useMemo)(function(){var e={};return z.forEach(function(t){return e[t.id]=t.displayUrl||t.url}),e},[z]);return(0,Zt.jsxs)("div",{className:"tpe-flex tpe-flex-col tpe-h-screen tpe-h-[100dvh] tpe-bg-brand-ground tpe-font-sans tpe-text-brand-ink",children:[(0,Zt.jsxs)("header",{className:"tpe-bg-brand-panel tpe-border-b tpe-border-brand-line tpe-h-12 tpe-shrink-0 tpe-flex tpe-items-center tpe-justify-between tpe-px-4 md:tpe-px-8 tpe-z-30 tpe-shadow-sm tpe-relative",children:[(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-gap-4",children:[(0,Zt.jsx)("div",{className:"tpe-flex tpe-items-center tpe-gap-3",children:lf&&sf?(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)("svg",{version:"1.2",xmlns:"http://www.w3.org/2000/svg",viewBox:sf.mobile.vb,className:"tpe-h-7 tpe-w-auto md:tpe-hidden",role:"img","aria-label":lf.name,children:(0,Zt.jsx)("path",{fill:"currentColor",d:sf.mobile.d})}),(0,Zt.jsx)("div",{className:"tpe-hidden md:tpe-block tpe-h-6",children:(0,Zt.jsx)("svg",{version:"1.2",xmlns:"http://www.w3.org/2000/svg",viewBox:sf.full.vb,className:"tpe-h-full tpe-w-auto",role:"img","aria-label":lf.name,children:(0,Zt.jsx)("path",{fill:"currentColor",d:sf.full.d})})})]}):lf?(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)("span",{className:"tpe-text-lg tpe-font-bold tpe-tracking-tight tpe-text-brand-ink md:tpe-hidden","aria-label":lf.name,children:lf.initials}),(0,Zt.jsx)("span",{className:"tpe-hidden md:tpe-inline tpe-text-xl tpe-font-bold tpe-tracking-tight tpe-text-brand-ink","aria-label":lf.name,children:lf.name})]}):(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)("svg",{version:"1.2",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 55",className:"tpe-h-8 tpe-w-auto md:tpe-hidden",children:(0,Zt.jsx)("path",{id:"TPE",fill:"currentColor","aria-label":"TPE",d:"m-0.3 2.8h30.1v11.3h-9.4v37.9h-11.3v-37.9h-9.4zm66.2 20.9q0 4.2-1.6 7.9-1.6 3.7-4.4 6.5-2.7 2.8-6.4 4.5-3.7 1.6-7.9 1.6v7.9h-11.3v-49.1h11.3q4.2 0.1 7.9 1.8 3.7 1.6 6.4 4.4 2.8 2.8 4.4 6.6 1.6 3.7 1.6 7.9zm-20.3-9.3v18.5q1.9 0 3.5-0.8 1.7-0.8 2.9-2 1.2-1.2 1.9-2.9 0.7-1.7 0.7-3.5 0-1.9-0.7-3.6-0.7-1.7-1.9-2.9-1.2-1.2-2.9-2-1.6-0.8-3.5-0.8zm54.2-11.4v11.3h-20.2v7.4h16.4v11.3h-16.4v7.8h20.2v11.3h-31.5v-49z"})}),(0,Zt.jsx)("div",{className:"tpe-hidden md:tpe-block tpe-h-6",children:(0,Zt.jsx)("svg",{version:"1.2",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 750 80",className:"tpe-h-full tpe-w-auto",children:(0,Zt.jsx)("path",{id:"THE POSTER EDIT",fill:"
2currentColor","aria-label":"THE POSTER EDIT",d:"m1.1 3.6h45.4v17.2h-14.2v57.2h-17.1v-57.2h-14.1zm90.4 29.4v-29.1h17v74.1h-17v-28h-21.4v28h-17.1v-74.1h17.1v29.1zm73.1-29.1v17h-30.5v11.2h24.7v17.1h-24.7v11.7h30.5v17.1h-47.5v-74zm81.1 31.2q0 6.3-2.5 12-2.3 5.5-6.5 9.8-4.2 4.2-9.7 6.7-5.6 2.4-11.9 2.5v11.9h-17.1v-74.1h17.1q6.3 0.1 11.9 2.6 5.5 2.5 9.7 6.8 4.2 4.2 6.5 9.9 2.5 5.5 2.5 11.9zm-30.6-14.1v28.1q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.5-1.4-3.6-3.9-6.3-2.5-2.9-5.9-4.6-3.3-1.8-7.2-2.2zm56-16.9v74.2h-17.1v-74.2zm7-0.2h45.4v17.2h-14.2v57.2h-17v-57.2h-14.2z"})})})]})}),af.adminMode&&(0,Zt.jsx)("div",{className:"tpe-flex tpe-items-center tpe-gap-2",children:(0,Zt.jsx)("span",{className:"tpe-bg-red-100 tpe-text-red-600 tpe-text-[10px] tpe-font-bold tpe-px-2 tpe-py-0.5 tpe-rounded-full tpe-uppercase tpe-tracking-wider",children:"Admin"})})]}),(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-gap-4",children:[w.length>1&&(0,Zt.jsxs)("button",{onClick:function(){return $t(!0)},className:"tpe-text-xs tpe-font-bold tpe-text-gray-700 tpe-bg-white tpe-border tpe-border-gray-300 hover:tpe-bg-gray-50 tpe-flex tpe-items-center tpe-gap-1.5 tpe-px-3 tpe-py-1.5 tpe-rounded-lg tpe-transition-colors tpe-shadow-sm",title:"Change product type",children:[(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),(0,Zt.jsx)("path",{d:"M3 9h18M9 21V9"})]}),(0,Zt.jsx)("span",{className:"tpe-hidden sm:tpe-inline",children:Tr(T)}),(0,Zt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Zt.jsx)("polyline",{points:"6 9 12 15 18 9"})})]}),af.adminMode&&(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-gap-2",children:[(0,Zt.jsxs)("div",{className:"tpe-relative tpe-hidden md:tpe-block",children:[(0,Zt.jsxs)("select",{value:it,onChange:function(e){return lt(Number(e.target.value))},className:"tpe-text-xs tpe-border tpe-border-gray-300 tpe-rounded-lg tpe-py-1.5 tpe-pl-2 tpe-pr-6 tpe-bg-white tpe-text-gray-700 focus:tpe-ring-2 focus:tpe-ring-red-500 focus:tpe-border-red-500 tpe-appearance-none tpe-cursor-pointer hover:tpe-bg-gray-50",title:"Export Resolution (DPI)",children:[(0,Zt.jsx)("option",{value:"72",children:"72 DPI (Web)"}),(0,Zt.jsx)("option",{value:"150",children:"150 DPI (Fast)"}),(0,Zt.jsx)("option",{value:"200",children:"200 DPI (Balanced)"}),(0,Zt.jsx)("option",{value:"300",children:"300 DPI (Print)"}),(0,Zt.jsx)("option",{value:"400",children:"400 DPI (Max)"})]}),(0,Zt.jsx)("div",{className:"tpe-absolute tpe-right-2 tpe-top-1/2 tpe--translate-y-1/2 tpe-pointer-events-none tpe-text-gray-500",children:(0,Zt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Zt.jsx)("polyline",{points:"6 9 12 15 18 9"})})})]}),(0,Zt.jsx)("button",{onClick:Nr,disabled:Ye||pe,className:"tpe-text-xs tpe-font-bold tpe-text-white tpe-bg-red-600 hover:tpe-bg-red-700 tpe-flex tpe-items-center tpe-gap-1.5 tpe-px-3 tpe-py-1.5 tpe-rounded-lg tpe-transition-colors tpe-shadow-sm disabled:tpe-opacity-50 disabled:tpe-cursor-wait",children:Ye?(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsxs)("svg",{className:"tpe-animate-spin tpe-h-3 tpe-w-3 tpe-text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,Zt.jsx)("circle",{className:"tpe-opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,Zt.jsx)("path",{className:"tpe-opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Processing..."]}):(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),(0,Zt.jsx)("polyline",{points:"7 10 12 15 17 10"}),(0,Zt.jsx)("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]}),(0,Zt.jsx)("span",{className:"tpe-hidden md:tpe-inline",children:"Admin DL"}),(0,Zt.jsx)("span",{className:"md:tpe-hidden",children:"DL"})]})})]}),(0,Zt.jsxs)("div",{className:"tpe-relative",ref:fn,children:[(0,Zt.jsxs)("button",{onClick:function(){return dn(function(e){return!e})},"aria-haspopup":"menu","aria-expanded":pn,disabled:St,className:"tpe-text-xs tpe-font-bold tpe-text-gray-600 hover:tpe-text-gray-900 tpe-flex tpe-items-center tpe-gap-1.5 tpe-px-3 tpe-py-1.5 tpe-rounded-lg hover:tpe-bg-gray-50 tpe-transition-colors disabled:tpe-opacity-60 disabled:tpe-cursor-wait",children:[(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("path",{d:"M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"}),(0,Zt.jsx)("polyline",{points:"17 21 17 13 7 13 7 21"}),(0,Zt.jsx)("polyline",{points:"7 3 7 8 15 8"})]}),(0,Zt.jsx)("span",{className:"tpe-hidden md:tpe-inline",children:St?"Saving…":"My designs"}),(0,Zt.jsx)("span",{className:"md:tpe-hidden",children:St?"Saving…":"Designs"}),(0,Zt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{transform:pn?"rotate(180deg)":"none"},children:(0,Zt.jsx)("polyline",{points:"6 9 12 15 18 9"})})]}),pn&&(0,Zt.jsxs)("div",{role:"menu",className:"tpe-absolute tpe-right-0 tpe-top-full tpe-mt-1 tpe-w-56 tpe-bg-white tpe-border tpe-border-brand-line tpe-rounded-st tpe-shadow-lg tpe-z-50 tpe-overflow-hidden",children:[(0,Zt.jsxs)("button",{role:"menuitem",onClick:function(){dn(!1),Et("form"),Xt(null),Ct(null),kt(!0)},className:"tpe-w-full tpe-flex tpe-items-start tpe-gap-2.5 tpe-px-3 tpe-py-2.5 tpe-text-left hover:tpe-bg-gray-50 tpe-transition-colors",children:[(0,Zt.jsxs)("svg",{className:"tpe-mt-0.5 tpe-shrink-0 tpe-text-gray-500",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("path",{d:"M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"}),(0,Zt.jsx)("polyline",{points:"17 21 17 13 7 13 7 21"}),(0,Zt.jsx)("polyline",{points:"7 3 7 8 15 8"})]}),(0,Zt.jsxs)("span",{children:[(0,Zt.jsx)("span",{className:"tpe-block tpe-text-xs tpe-font-bold tpe-text-gray-900",children:"Save & finish later"}),(0,Zt.jsx)("span",{className:"tpe-block tpe-text-[10px] tpe-text-gray-500 tpe-leading-tight tpe-mt-0.5",children:"We’ll send you a link back to this design"})]})]}),"preset"!==T&&(0,Zt.jsxs)("button",{role:"menuitem",onClick:function(){dn(!1),cn(!0)},className:"tpe-w-full tpe-flex tpe-items-start tpe-gap-2.5 tpe-px-3 tpe-py-2.5 tpe-text-left hover:tpe-bg-gray-50 tpe-transition-colors tpe-border-t tpe-border-brand-line",children:[(0,Zt.jsxs)("svg",{className:"tpe-mt-0.5 tpe-shrink-0 tpe-text-gray-500",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),(0,Zt.jsx)("polyline",{points:"7 10 12 15 17 10"}),(0,Zt.jsx)("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]}),(0,Zt.jsxs)("span",{children:[(0,Zt.jsx)("span",{className:"tpe-block tpe-text-xs tpe-font-bold tpe-text-gray-900",children:"Load a saved design"}),(0,Zt.jsx)("span",{className:"tpe-block tpe-text-[10px] tpe-text-gray-500 tpe-leading-tight tpe-mt-0.5",children:"Pick up where you left off"})]})]}),"custom-framing"===T&&(0,Zt.jsxs)("button",{role:"menuitem",onClick:function(){dn(!1),kr()},disabled:Ir,className:"tpe-w-full tpe-flex tpe-items-start tpe-gap-2.5 tpe-px-3 tpe-py-2.5 tpe-text-left hover:tpe-bg-gray-50 tpe-transition-colors tpe-border-t tpe-border-brand-line disabled:tpe-opacity-60",children:[(0,Zt.jsxs)("svg",{className:"tpe-mt-0.5 tpe-shrink-0 tpe-text-gray-500",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("circle",{cx:"18",cy:"5",r:"3"}),(0,Zt.jsx)("circle",{cx:"6",cy:"12",r:"3"}),(0,Zt.jsx)("circle",{cx:"18",cy:"19",r:"3"}),(0,Zt.jsx)("line",{x1:"8.59",y1:"13.51",x2:"15.42",y2:"17.49"}),(0,Zt.jsx)("line",{x1:"15.41",y1:"6.51",x2:"8.59",y2:"10.49"})]}),(0,Zt.jsxs)("span",{children:[(0,Zt.jsx)("span",{className:"tpe-block tpe-text-xs tpe-font-bold tpe-text-gray-900",children:Ir?"Preparing link…":"Share this design"}),(0,Zt.jsx)("span",{className:"tpe-block tpe-text-[10px] tpe-text-gray-500 tpe-leading-tight tpe-mt-0.5",children:"Send someone a link that opens it"})]})]})]})]}),ht&&(0,Zt.jsxs)("button",{onClick:Cr,disabled:St,className:"tpe-text-xs tpe-font-bold tpe-text-white tpe-bg-gray-900 hover:tpe-bg-gray-800 tpe-flex tpe-items-center tpe-gap-1.5 tpe-px-3 tpe-py-1.5 tpe-rounded-lg tpe-transition-colors tpe-shadow-sm disabled:tpe-opacity-60 disabled:tpe-cursor-wait",title:"Save your edits as a new version. Original design is kept intact.",children:[(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("path",{d:"M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"}),(0,Zt.jsx)("polyline",{points:"17 21 17 13 7 13 7 21"}),(0,Zt.jsx)("polyline",{points:"7 3 7 8 15 8"})]}),St?"Saving…":(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)("span",{className:"tpe-hidden md:tpe-inline",children:"Save New Version"}),(0,Zt.jsx)("span",{className:"md:tpe-hidden",children:"Save"})]})]}),M&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)("div",{className:"tpe-h-6 tpe-w-px tpe-bg-gray-200 tpe-hidden md:tpe-block"}),(0,Zt.jsx)("button",{onClick:M,className:"tpe-flex tpe-items-center tpe-justify-center tpe-w-8 tpe-h-8 tpe-bg-gray-100 hover:tpe-bg-gray-200 tpe-rounded-full tpe-text-gray-600 tpe-transition-colors","aria-label":"Close Designer",children:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,Zt.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]})]})]}),(0,Zt.jsx)("div",{className:"tpe-flex-1 tpe-overflow-hidden tpe-relative",children:(0,Zt.jsxs)("div",{className:"tpe-flex tpe-flex-col md:tpe-flex-row tpe-h-full",children:[(0,Zt.jsx)("div",{onClick:function(){et&&tt(!1)}
2,className:"tpe-bg-brand-ground tpe-relative tpe-overflow-hidden tpe-flex tpe-flex-col tpe-transition-all tpe-duration-300 tpe-ease-in-out ".concat(et?"tpe-h-[25vh] md:tpe-h-full md:tpe-flex-1":"tpe-flex-1 md:tpe-flex-1"),children:(0,Zt.jsxs)("div",{className:"tpe-flex-1 tpe-relative tpe-flex tpe-flex-col tpe-items-center tpe-justify-center",children:["starmap"===T&&!Le&&(0,Zt.jsx)(ap,{defaultConfig:Cn.starMaps[1],onConfirm:function(e){var t=zd(zd({},Cn.starMaps),{},{1:zd(zd({},Cn.starMaps[1]),e)});fr("starMaps",t),Oe(!0)}}),"soundwave"===T&&!ze&&(0,Zt.jsx)(wp,{existing:null===(i=Cn.soundwaves)||void 0===i?void 0:i[1],uploadAudio:tf,onComplete:function(e,t){Ln(function(n){return zd(zd({},n),{},{soundwaves:zd(zd({},n.soundwaves),{},{1:e}),captionLines:t.length>0?t:n.captionLines})}),Xe(!0)},onClose:function(){Xe(!0)}}),"vinyl"===T&&!Ze&&(0,Zt.jsx)(Wp,{existing:null===(l=Cn.vinyls)||void 0===l?void 0:l[1],onComplete:function(e){Ln(function(t){return zd(zd({},t),{},{vinyls:zd(zd({},t.vinyls),{},{1:e})})}),Ge(!0)},onClose:function(){return Ge(!0)}}),"album"===T&&!Be&&(0,Zt.jsx)(Ap,{existing:null===(s=Cn.albums)||void 0===s?void 0:s[1],onComplete:function(e){Ln(function(t){return zd(zd({},t),{},{albums:zd(zd({},t.albums),{},{1:e})})}),Re(!0)},onClose:M||function(){return Re(!0)},onSkip:function(){return Re(!0)}}),"map"===T&&!qe&&(0,Zt.jsx)(Gp,{routeMode:!1!==(null===(c=af.features)||void 0===c?void 0:c.enableMapRoutes),enableStrava:!1!==(null===(u=af.features)||void 0===u?void 0:u.enableStrava),onRoutesImported:function(e,t){Ln(function(n){var r,o=n.maps[1];return o?zd(zd({},n),{},{maps:zd(zd({},n.maps),{},{1:zd(zd({},o),{},{routes:[].concat(Zd(o.routes||[]),Zd(e)),activeRouteId:null===(r=e[e.length-1])||void 0===r?void 0:r.id},t?{bounds:t}:{})})}):n}),_e(!0)},onDrawAt:function(e){var t="route-".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2,6));Ln(function(n){var r=n.maps[1];if(!r)return n;var o={id:t,source:"custom",color:"#FF0000",colorMode:"solid",widthMultiplier:3,visible:!0,customRoutePoints:[]};return zd(zd({},n),{},{maps:zd(zd({},n.maps),{},{1:zd(zd({},r),{},{routes:[].concat(Zd(r.routes||[]),[o]),activeRouteId:t,routeUiMode:"draw"},e?{lat:e.lat,lng:e.lng,locationLabel:e.label,bounds:void 0}:{})})})}),_e(!0)},onLocationSet:function(e){Ln(function(t){var n=t.maps[1];return n?zd(zd({},t),{},{maps:zd(zd({},t.maps),{},{1:zd(zd({},n),{},{lat:e.lat,lng:e.lng,locationLabel:e.label,bounds:void 0})})}):t}),_e(!0)},onClose:function(){return _e(!0)}}),"custom-framing"===T&&D&&W&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Dd,{ref:Xn,cfg:W,state:D,previewImageUrl:(null===(p=z[0])||void 0===p?void 0:p.displayUrl)||(null===(d=z[0])||void 0===d?void 0:d.url)||null}),(0,Zt.jsx)("div",{className:"tpe-absolute tpe-top-4 tpe-right-4 tpe-z-20",children:(0,Zt.jsxs)("button",{onClick:function(e){e.stopPropagation(),Lr()},disabled:hn,className:"tpe-bg-white/90 tpe-backdrop-blur tpe-shadow-lg tpe-border tpe-border-gray-200 tpe-text-gray-700 tpe-px-4 tpe-py-2 tpe-rounded-full tpe-text-xs tpe-font-bold tpe-flex tpe-items-center tpe-gap-2 hover:tpe-bg-white tpe-transition-all tpe-transform hover:tpe-scale-105 disabled:tpe-opacity-60 disabled:tpe-cursor-wait",children:[(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("path",{d:"M3 21h18"}),(0,Zt.jsx)("path",{d:"M5 21V8l7-5 7 5v13"}),(0,Zt.jsx)("rect",{x:"9",y:"12",width:"6",height:"5"})]}),hn?"Loading…":"See it in a room"]})}),(0,Zt.jsx)("div",{className:"md:tpe-hidden tpe-absolute tpe-bottom-3 tpe-left-3 tpe-right-3 tpe-z-20 tpe-flex tpe-justify-center tpe-pointer-events-none",children:(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-baseline tpe-gap-2 tpe-max-w-full tpe-bg-white/90 tpe-backdrop-blur tpe-shadow-lg tpe-border tpe-border-gray-200 tpe-rounded-full tpe-px-3 tpe-py-1",children:[(0,Zt.jsx)("span",{className:"tpe-text-[11px] tpe-font-bold tpe-text-brand-ink tpe-truncate",children:dr}),(0,Zt.jsx)("span",{className:"tpe-text-[10px] tpe-text-brand-muted tpe-shrink-0",children:pr})]})})]}),"custom-framing"!==T&&(0,Zt.jsx)(Zt.Fragment,{children:(0,Zt.jsx)(Ja,{ref:zn,size:Gn,frame:Hn,layout:qn,design:Cn,images:Er,imagesHighRes:Vr,onSlotClick:function(e){F(e),ot("starmap"===T||"oldmap"===T||"osmap"===T||"map"===T||"soundwave"===T||"vinyl"===T||"album"===T?"MAP":"PHOTOS"),"single"!==T&&"collage"!==T&&"preset"!==T||tt(!0)},activeSlotId:G,onTextOverflow:Q,onMaxFontSizeChange:J,onImageSwap:function(e,t){var n=zd({},Cn.assignedImages),r=n[e],o=n[t];r?n[t]=r:delete n[t],o?n[e]=o:delete n[e],Ln(function(e){return zd(zd({},e),{},{assignedImages:n})}),F(t)},onImageAssignToSlot:function(e,t){var n=z.find(function(t){return t.id===e});n&&(F(t),Ln(function(r){return zd(zd({},r),{},{assignedImages:zd(zd({},r.assignedImages),{},Bd({},t,{imageId:e,crop:vr(n,t)}))})}))},productType:T,guideStep:_n,onStarMapDataChange:function(e){return le(e)},onMapLoading:me,onMapCaptureProgress:function(e,t){return Ft(e>=t?null:{done:e,total:t})},captureProgress:Gt,isMapLoading:pe,suppressGlobalLoader:!Le,isAdmin:af.adminMode,onMarkerDrag:jr,onMapUnavailable:function(e){return ye(function(t){return ve.current?null:null!=t?t:e})},onMapRendered:function(){ve.current=!0,ye(null)},onMapZoomChange:function(e,t){var n=Math.min(Math.max(t,1),22);Ln(function(t){var r=t.maps[e];if(!r)return t;r.bounds;var o=Od(r,Ad);return zd(zd({},t),{},{maps:zd(zd({},t.maps),{},Bd({},e,zd(zd({},o),{},{zoom:n})))})})},onMapBoundsChange:function(e,t){Ln(function(n){var r=n.maps[e];return r?zd(zd({},n),{},{maps:zd(zd({},n.maps),{},Bd({},e,zd(zd({},r),{},{bounds:t})))}):n})},onOsMapViewChange:function(e,t,n,r,o){Ln(function(a){var i=a.osMaps[e];if(!i)return a;var l=i.scale?Math.min(Math.max(o||i.scale,25e3),5e4):void 0;return i.lat===t&&i.lng===n&&i.zoom===r&&i.scale===l?a:zd(zd({},a),{},{osMaps:zd(zd({},a.osMaps),{},Bd({},e,zd(zd({},i),{},{lat:t,lng:n,zoom:r},l?{scale:l}:{})))})})},onOsMapScaleChange:function(e,t){Ln(function(n){var r=n.osMaps[e];return r&&r.scale!==t?zd(zd({},n),{},{osMaps:zd(zd({},n.osMaps),{},Bd({},e,zd(zd({},r),{},{scale:t})))}):n})},onCustomRouteUpdate:function(e,t){Ln(function(n){var r=n.maps[e];if(!r)return n;var o=Zd(r.routes||[]),a=r.activeRouteId,i=o.findIndex(function(e){return e.id===a});if(-1===i){var l="route-".concat(Date.now());return o.push({id:l,source:"custom",customRoutePoints:t,color:"#FF0000",colorMode:"solid",widthMultiplier:3,visible:!0,stats:O(t)}),zd(zd({},n),{},{maps:zd(zd({},n.maps),{},Bd({},e,zd(zd({},r),{},{routes:o,activeRouteId:l})))})}return o[i]=zd(zd({},o[i]),{},{customRoutePoints:t,stats:O(t)}),zd(zd({},n),{},{maps:zd(zd({},n.maps),{},Bd({},e,zd(zd({},r),{},{routes:o})))})})},onAppendCustomRoutePoint:function(e,t,n){Ln(function(r){var o=r.maps[e];if(!o)return r;var a=Zd(o.routes||[]),i=o.activeRouteId,l=a.findIndex(function(e){return e.id===i});if(-1===l){var s="route-".concat(Date.now());return a.push({id:s,source:"custom",customRoutePoints:[[t,n]],color:"#FF0000",colorMode:"solid",widthMultiplier:3,visible:!0}),zd(zd({},r),{},{maps:zd(zd({},r.maps),{},Bd({},e,zd(zd({},o),{},{routes:a,activeRouteId:s})))})}var c=a[l];if("custom"!==c.source)return r;var u=[].concat(Zd(c.customRoutePoints||[]),[[t,n]]);return a[l]=zd(zd({},c),{},{customRoutePoints:u,stats:O(u)}),zd(zd({},r),{},{maps:zd(zd({},r.maps),{},Bd({},e,zd(zd({},o),{},{routes:a})))})})},onRoutePatch:function(e,t,n){Ln(function(r){var o=r.maps[e];if(!o)return r;var a=(o.routes||[]).map(function(e){return e.id===t?zd(zd({},e),n):e});return zd(zd({},r),{},{maps:zd(zd({},r.maps),{},Bd({},e,zd(zd({},o),{},{routes:a})))})})},onSetRouteUiMode:function(e,t){return n=e,r={routeUiMode:t},void Ln(function(e){var t=e.maps[n];return t?zd(zd({},e),{},{maps:zd(zd({},e.maps),{},Bd({},n,zd(zd({},t),r)))}):e});var n,r},repositioningMarker:Yr?{slotId:Yr.slotId,markerId:Yr.markerId}:null,onRepositionMove:jr,onCommitReposition:function(){Mr(null),Sr()},onCancelReposition:function(){Yr&&(jr(Yr.slotId,Yr.markerId,Yr.originalLat,Yr.originalLng),Mr(null),Sr())}})}),"starmap"===T&&Le&&(0,Zt.jsx)("div",{className:"tpe-absolute tpe-top-4 tpe-left-4 tpe-z-20",children:(0,Zt.jsxs)("button",{onClick:function(e){e.stopPropagation(),nn(!0)},className:"tpe-bg-white/90 tpe-backdrop-blur tpe-shadow-lg tpe-border tpe-border-gray-200 tpe-text-gray-700 tpe-px-4 tpe-py-2 tpe-rounded-full tpe-text-xs tpe-font-bold tpe-flex tpe-items-center tpe-gap-2 hover:tpe-bg-white tpe-transition-all tpe-transform hover:tpe-scale-105",children:[(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"tpe-text-gray-700",children:[(0,Zt.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,Zt.jsx)("line",{x1:"12",y1:"16",x2:"12",y2:"12"}),(0,Zt.jsx)("line",{x1:"12",y1:"8",x2:"12.01",y2:"8"})]}),(0,Zt.jsx)("span",{className:"tpe-hidden md:tpe-inline",children:"Map Info"})]})}),"oldmap"===T&&(0,Zt.jsx)("div",{className:"tpe-absolute tpe-top-4 tpe-left-4 tpe-z-20",children:(0,Zt.jsxs)("button",{onClick:function(e){e.stopPropagation(),an(!0)},className:"tpe-bg-white/90 tpe-backdrop-blur tpe-shadow-lg tpe-border tpe-border-gray-200 tpe-text-gray-700 tpe-px-4 tpe-py-2 tpe-rounded-full tpe-text-xs tpe-font-bold tpe-flex tpe-items-center tpe-gap-2 hover:tpe-bg-white tpe-transition-all tpe-transform hover:tpe-scale-105",children:[(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"tpe-text-amber-600",children:[(0,Zt.jsx)("polygon",{points:"1 6 1 22 8 18 16 22 23 18 23 2 16 6 8 2 1 6"}),(0,Zt.jsx)("line",{x1:"8",y1:"2",x2:"8",y2:"18"}),(0,Zt.jsx)("line",{x1:"16",y1:"6",x2:"16",y2:"22"})]}),(0,Zt.jsx)("span",{className:"tpe-hidden md:tpe-inline",children:"Map Info"})]})}),("starmap"===T||"oldmap"===T||"osmap"===T||"map"===T)&&(0,Zt.jsx)("div",{className:"tpe-absolute tpe-top-4 tpe-right-4 tpe-z-20",children:(0,Zt.jsxs)("button",{onClick:function(e){var t;e.stopPropagation(),null===(t=zn.current)||void 0===t||t.triggerFullScreen()},className:"tpe-bg-white/90 tpe-backdrop-blur tpe-shadow-lg tpe-border tpe-border-gray-200 tpe-text-gray-700 tpe-px-4 tpe-py-2 tpe-rounded-full tpe-text-xs tpe-font-bold tpe-flex tpe-items-center tpe-gap-2 hover:tpe-bg-white tpe-transition-all tpe-transform hover:tpe-scale-105",children:[(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("polyline",{points:"15 3 21 3 21 9"}),(0,Zt.jsx)("polyline",{points:"9 21 3 21 3 15"}),(0,Zt.jsx)("line",{x1:"21",y1:"3",x2:"14",y2:"10"}),(0,Zt.jsx)("line",{x1:"3",y1:"21",x2:"10",y2:"14"})]}),"Fullscreen"]})})]})}),(0,Zt.jsxs)("div",{className:"tpe-w-full md:tpe-w-[clamp(340px,26vw,460px)] tpe-bg-brand-panel tpe-border-l tpe-border-brand-line tpe-flex tpe-flex-col tpe-z-20 tpe-shadow-xl tpe-transition-all tpe-duration-300 tpe-ease-in-out ".concat(et?"tpe-flex-1 tpe-min-h-0 md:tpe-flex-none md:tpe-h-full":"tpe-h-0 md:tpe-h-full tpe-overflow-hidden tpe-shrink-0"),children:[(0,Zt.jsxs)("button",{onClick:function(){return tt(!1)},className:"md:tpe-hidden tpe-w-full tpe-py-2 tpe-bg-gray-50 tpe-border-b tpe-border-gray-200 tpe-flex tpe-items-center tpe-justify-center tpe-gap-2 tpe-text-xs tpe-font-bold tpe-text-gray-500 hover:tpe-text-gray-800 hover:tpe-bg-gray-100 tpe-transition-colors tpe-shrink-0",children:[(0,Zt.jsx)("span",{children:"Hide"}),(0,Zt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Zt.jsx)("polyline",{points:"6 9 12 15 18 9"})})]}),(0,Zt.jsx)("div",{className:et?"tpe-flex tpe-flex-col tpe-flex-1 tpe-min-h-0 tpe-overflow-hidden":"tpe-hidden md:tpe-flex md:tpe-flex-col md:tpe-h-full",children:"custom-framing"===T&&D&&W?(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)("div",{className:"tpe-flex-1 tpe-min-h-0 tpe-overflow-y-auto",children:(0,Zt.jsx)(wd,{cfg:W,state:D,onChange:A,currency:af.currency,previewImageUrl:(null===(f=z[0])||void 0===f?void 0:f.displayUrl)||(null===(m=z[0])||void 0===m?void 0:m.url)||null,imageWidthPx:null===(h=z[0])||void 0===h?void 0:h.width,imageHeightPx:null===(g=z[0])||void 0===g?void 0:g.height,onUploadImage:function(e){var t=URL.createObjectURL(e),n={id:crypto.randomUUID?crypto.randomUUID():"cf-"+Date.now(),url:t,file:e,thumbUrl:t,displayUrl:t},r=new Image;
2r.onload=function(){n.width=r.naturalWidth,n.height=r.naturalHeight,X([n])},r.onerror=function(){return X([n])},r.src=t},onRemoveImage:function(){return X([])},priceLines:ur,totalPrice:sr,countryCode:af.countryCode,mobileSection:rt})}),(0,Zt.jsxs)("div",{className:"tpe-hidden md:tpe-block tpe-px-4 tpe-py-3 tpe-border-t tpe-border-brand-line tpe-bg-white tpe-shrink-0 tpe-shadow-[0_-8px_24px_rgba(15,23,42,0.05)]",children:[(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-justify-between tpe-gap-3 tpe-mb-2.5",children:[(0,Zt.jsx)("p",{className:"tpe-text-[10px] tpe-font-bold tpe-uppercase tpe-tracking-wider tpe-text-brand-muted",children:"Total"}),(0,Zt.jsxs)("div",{className:"tpe-text-2xl tpe-font-bold tpe-text-gray-900 tpe-tabular-nums tpe-shrink-0",children:[af.currency,sr.toFixed(2)]})]}),(0,Zt.jsx)("button",{onClick:Dr,disabled:ee||Ar||!!En,title:En||void 0,className:"tpe-w-full tpe-py-4 tpe-rounded-st tpe-font-bold tpe-text-brand-accentink tpe-shadow-st-cta tpe-transition-all tpe-flex tpe-items-center tpe-justify-center tpe-gap-3 tpe-border-[length:var(--st-border-w)] tpe-border-brand-ink ".concat(ee||Ar||En?"tpe-bg-brand-lime/70 tpe-cursor-not-allowed tpe-opacity-80":"tpe-bg-brand-lime hover:tpe-brightness-95 hover:tpe-shadow-xl hover:tpe--translate-y-0.5"),children:ee?"Processing...":Ar?"Fetching lyrics…":"Add To Cart"})]})]}):(0,Zt.jsx)(wu,{unitSystem:L,setUnitSystem:E,sizes:kn,frames:ar,selectedSizeId:Cn.sizeId,selectedFrameId:Cn.frameId,selectedLayoutId:Cn.layoutId,activeProductType:T,design:Cn,uploadedImages:z,onImagesUploaded:function(e){var t;if(X(function(t){return[].concat(Zd(t),Zd(e))}),0!==e.length&&("single"===T||"preset"===T)){var n=qn.slots;if(1===n.length){var r=n[0].id;if(null===(t=Cn.assignedImages[r])||void 0===t||!t.imageId){var o=e[0];F(r),Ln(function(e){return zd(zd({},e),{},{assignedImages:zd(zd({},e.assignedImages),{},Bd({},r,{imageId:o.id,crop:vr(o,r)}))})})}}}},onUpdateDesign:fr,onSelectImageForSlot:function(e){if(G){var t=z.find(function(t){return t.id===e}),n=qn.slots.find(function(e){return e.id===G}),r={zoom:1,x:50,y:50},o=function(t){Ln(function(n){return zd(zd({},n),{},{assignedImages:zd(zd({},n.assignedImages),{},Bd({},G,{imageId:e,crop:t}))})})},a=function(e,t){var o=Gn.widthIn*(n.w/100),a=Gn.heightIn*(n.h/100),i=rf(e,t,o,a);return zd(zd({},r),{},{zoom:Math.max(1,i)})};if(t&&n&&t.width&&t.height)o(a(t.width,t.height));else if(t&&n){var i=new Image;i.onload=function(){return o(a(i.naturalWidth,i.naturalHeight))},i.onerror=function(){return o(r)},i.src=t.url}else o(r)}},onAutofill:gr,activeSlotId:G,onLayoutChange:yr,onSizeChange:xr,totalPrice:sr,subTotal:lr,priceLines:ur,currency:af.currency,sizePrices:In.basePrices,salePercent:af.sale||0,onAddToCart:Dr,cartBlockedReason:On?"Your browser blocked the map, so we can’t show — or print — the design. Try turning off ad/privacy blockers for this page, or open it in another browser.":null,isTextOverflowing:R,maxFontSize:K,onOpenSceneView:Lr,setActiveSlotId:F,guideStep:_n,onDeleteImage:function(e){X(function(t){var n=t.find(function(t){return t.id===e});return n&&[n.thumbUrl,n.displayUrl].forEach(function(e){e&&e.startsWith("blob:")&&URL.revokeObjectURL(e)}),t.filter(function(t){return t.id!==e})});var t=zd({},Cn.assignedImages),n=!1;Object.entries(t).forEach(function(r){var o=Pd(r,2),a=o[0],i=o[1];i&&i.imageId===e&&(delete t[a],n=!0)}),n&&Ln(function(e){return zd(zd({},e),{},{assignedImages:t})})},isProcessingCart:ee||Ar,defaultCountryCode:af.countryCode,isMapLoading:pe,onMapLoading:me,onOpenSoundwaveSetup:function(){return Xe(!1)},validMountOptions:Rn,availableFonts:Ie,hideFooterOnMobile:!0,mobileTab:rt,mapFeatures:af.features,enableEdgeChoice:!(null===(x=af.features)||void 0===x||!x.enableEdgeChoice),onStartMarkerReposition:function(e,t){var n,r=null===(n=Cn.maps[e])||void 0===n||null===(n=n.markers)||void 0===n?void 0:n.find(function(e){return e.id===t});r&&("undefined"!=typeof window&&window.matchMedia("(max-width: 767px)").matches?(wr.current=et,et&&tt(!1)):wr.current=null,Mr({slotId:e,markerId:t,originalLat:r.lat,originalLng:r.lng}))}})})]})]})}),(0,Zt.jsxs)("div",{className:"md:tpe-hidden tpe-bg-brand-panel tpe-border-t tpe-border-brand-line tpe-shrink-0 tpe-flex tpe-flex-col tpe-shadow-[0_-4px_6px_-1px_rgba(0,0,0,0.05)] tpe-z-40",children:[(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-overflow-x-auto tpe-scrollbar-hide tpe-border-b tpe-border-gray-100",children:["custom-framing"===T&&[{id:"ARTWORK",label:"Artwork",
2icon:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),(0,Zt.jsx)("circle",{cx:"8.5",cy:"8.5",r:"1.5"}),(0,Zt.jsx)("path",{d:"m21 15-5-5L5 21"})]})},{id:"SIZE",label:"Size",icon:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("path",{d:"M21 6H3M21 6v12M3 6v12M21 18H3"}),(0,Zt.jsx)("path",{d:"M7 6v4M17 6v4M12 14v4"})]})},{id:"FRAME",label:"Frame",icon:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"1"}),(0,Zt.jsx)("rect",{x:"7",y:"7",width:"10",height:"10",rx:"1"})]})},{id:"FINISH",label:"Finish",icon:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("path",{d:"M12 3v18M3 12h18"}),(0,Zt.jsx)("circle",{cx:"12",cy:"12",r:"9"})]})}].map(function(e){return(0,Zt.jsxs)("button",{onClick:function(){return Or(e.id)},"aria-pressed":rt===e.id&&et,className:"tpe-flex-1 tpe-min-w-[70px] tpe-py-2 tpe-flex tpe-flex-col tpe-items-center tpe-gap-1 tpe-transition-colors ".concat(rt===e.id&&et?"tpe-text-brand-ink tpe-bg-brand-sunk":"tpe-text-brand-muted hover:tpe-bg-brand-sunk"),children:[e.icon,(0,Zt.jsx)("span",{className:"tpe-text-[10px] tpe-font-bold tpe-uppercase",children:e.label})]},e.id)}),("starmap"===T||"oldmap"===T||"osmap"===T||"map"===T||"soundwave"===T||"vinyl"===T||"album"===T)&&(0,Zt.jsxs)("button",{onClick:function(){return Or("MAP")},className:"tpe-flex-1 tpe-min-w-[70px] tpe-py-2 tpe-flex tpe-flex-col tpe-items-center tpe-gap-1 tpe-transition-colors ".concat("MAP"===rt&&et?"tpe-text-gray-900 tpe-bg-gray-100":"tpe-text-gray-500 hover:tpe-bg-gray-50"),children:["soundwave"===T?(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("path",{d:"M2 10v3"}),(0,Zt.jsx)("path",{d:"M6 6v11"}),(0,Zt.jsx)("path",{d:"M10 3v18"}),(0,Zt.jsx)("path",{d:"M14 8v7"}),(0,Zt.jsx)("path",{d:"M18 5v13"}),(0,Zt.jsx)("path",{d:"M22 10v3"})]}):"vinyl"===T?(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,Zt.jsx)("circle",{cx:"12",cy:"12",r:"3"})]}):"album"===T?(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),(0,Zt.jsx)("circle",{cx:"12",cy:"12",r:"3"}),(0,Zt.jsx)("line",{x1:"3",y1:"20",x2:"21",y2:"20"})]}):(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("polygon",{points:"1 6 1 22 8 18 16 22 23 18 23 2 16 6 8 2 1 6"}),(0,Zt.jsx)("line",{x1:"8",y1:"2",x2:"8",y2:"18"}),(0,Zt.jsx)("line",{x1:"16",y1:"6",x2:"16",y2:"22"})]}),(0,Zt.jsx)("span",{className:"tpe-text-[10px] tpe-font-bold tpe-uppercase",children:"soundwave"===T?"Sound":"vinyl"===T?"Vinyl":"album"===T?"Album":"Map"})]}),("single"===T||"collage"===T)&&(0,Zt.jsxs)("button",{onClick:function(){return Or("PHOTOS")},className:"tpe-flex-1 tpe-min-w-[70px] tpe-py-2 tpe-flex tpe-flex-col tpe-items-center tpe-gap-1 tpe-transition-colors ".concat("PHOTOS"===rt&&et?"tpe-text-gray-900 tpe-bg-gray-100":"tpe-text-gray-500 hover:tpe-bg-gray-50"),children:[(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z"}),(0,Zt.jsx)("circle",{cx:"12",cy:"13",r:"3"})]}),(0,Zt.jsx)("span",{className:"tpe-text-[10px] tpe-font-bold tpe-uppercase",children:"Photos"})]}),"custom-framing"!==T&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsxs)("button",{onClick:function(){return Or("SIZE")},className:"tpe-flex-1 tpe-min-w-[70px] tpe-py-2 tpe-flex tpe-flex-col tpe-items-center tpe-gap-1 tpe-transition-colors ".concat("SIZE"===rt&&et?"tpe-text-gray-900 tpe-bg-gray-100":"tpe-text-gray-500 hover:tpe-bg-gray-50"),children:[(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("path",{d:"M15 14l3 3 3-3"}),(0,Zt.jsx)("path",{d:"M15 10l3-3 3 3"}),(0,Zt.jsx)("path",{d:"M4 14l3 3 3-3"}),(0,Zt.jsx)("path",{d:"M4 10l3-3 3 3"})]}),(0,Zt.jsx)("span",{className:"tpe-text-[10px] tpe-font-bold tpe-uppercase",children:"Size"})]}),(0,Zt.jsxs)("button",{onClick:function(){return Or("FRAME")},className:"tpe-flex-1 tpe-min-w-[70px] tpe-py-2 tpe-flex tpe-flex-col tpe-items-center tpe-gap-1 tpe-transition-colors ".concat("FRAME"===rt&&et?"tpe-text-gray-900 tpe-bg-gray-100":"tpe-text-gray-500 hover:tpe-bg-gray-50"),children:[(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"}),(0,Zt.jsx)("line",{x1:"3",y1:"9",x2:"21",y2:"9"}),(0,Zt.jsx)("line",{x1:"9",y1:"21",x2:"9",y2:"9"})]}),(0,Zt.jsx)("span",{className:"tpe-text-[10px] tpe-font-bold tpe-uppercase",children:"Frame"})]}),"preset"!==T&&(0,Zt.jsxs)("button",{onClick:function(){return Or("LAYOUT")},className:"tpe-flex-1 tpe-min-w-[70px] tpe-py-2 tpe-flex tpe-flex-col tpe-items-center tpe-gap-1 tpe-transition-colors ".concat("LAYOUT"===rt&&et?"tpe-text-gray-900 tpe-bg-gray-100":"tpe-text-gray-500 hover:tpe-bg-gray-50"),children:[(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("rect",{x:"3",y:"3",width:"7",height:"7"}),(0,Zt.jsx)("rect",{x:"14",y:"3",width:"7",height:"7"}),(0,Zt.jsx)("rect",{x:"14",y:"14",width:"7",height:"7"}),(0,Zt.jsx)("rect",{x:"3",y:"14",width:"7",height:"7"})]}),(0,Zt.jsx)("span",{className:"tpe-text-[10px] tpe-font-bold tpe-uppercase",children:"Layout"})]})]}),(qn.hasCaption||"collage"===T&&Cn.enableCollageCaption)&&(0,Zt.jsxs)("button",{onClick:function(){return Or("TEXT")},className:"tpe-flex-1 tpe-min-w-[70px] tpe-py-2 tpe-flex tpe-flex-col tpe-items-center tpe-gap-1 tpe-transition-colors ".concat("TEXT"===rt&&et?"tpe-text-gray-900 tpe-bg-gray-100":"tpe-text-gray-500 hover:tpe-bg-gray-50"),children:[(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("polyline",{points:"4 7 4 4 20 4 20 7"}),(0,Zt.jsx)("line",{x1:"9",y1:"20",x2:"15",y2:"20"}),(0,Zt.jsx)("line",{x1:"12",y1:"4",x2:"12",y2:"20"})]}),(0,Zt.jsx)("span",{className:"tpe-text-[10px] tpe-font-bold tpe-uppercase",children:"Text"})]})]}),(0,Zt.jsxs)("div",{className:"tpe-px-4 tpe-pt-2 tpe-pb-3",children:["custom-framing"!==T&&(0,Zt.jsxs)("div",{className:"tpe-flex tpe-justify-between tpe-items-center tpe-gap-3 tpe-mb-1 tpe-text-xs",children:[(0,Zt.jsx)("div",{className:"tpe-flex tpe-items-center tpe-gap-1.5 tpe-min-w-0 tpe-flex-1 tpe-text-gray-600",children:(0,Zt.jsxs)("span",{className:"tpe-font-bold tpe-text-xxs tpe-truncate",children:[L===v.IMPERIAL?Gn.imperial:Gn.metric," | ",Hn.name,Cn.mount.enabled&&"none"!==Hn.id&&(0,Zt.jsxs)(Zt.Fragment,{children:[" | ",null===(b=Te.find(function(e){return e.id===Cn.mount.colorId}))||void 0===b?void 0:b.name," Mount"]})]})}),(0,Zt.jsxs)("div",{className:"tpe-flex tpe-items-center tpe-gap-2 tpe-shrink-0",children:[cr>0&&(0,Zt.jsxs)("span",{className:"tpe-line-through tpe-text-gray-400",children:[af.currency,lr.toFixed(2)]}),(0,Zt.jsxs)("span",{className:"tpe-font-bold tpe-text-lg",children:[af.currency,sr.toFixed(2)]})]})]}),On&&(0,Zt.jsxs)("div",{role:"alert",className:"tpe-mb-3 tpe-p-3 tpe-rounded-lg tpe-text-xs tpe-bg-red-50 tpe-border tpe-border-red-200 tpe-text-red-800",children:[(0,Zt.jsx)("p",{className:"tpe-font-bold tpe-mb-1",children:"Map couldn’t load"}),(0,Zt.jsx)("p",{children:"Your browser blocked the map, so we can’t show — or print — the design. Try turning off ad/privacy blockers for this page, or open it in another browser. Ordering is paused until the map loads."})]}),(0,Zt.jsx)("button",{onClick:Dr,disabled:ee||pe||Ar||On,className:"tpe-w-full tpe-py-4 tpe-rounded-st tpe-font-bold tpe-text-brand-accentink tpe-border-[length:var(--st-border-w)] tpe-border-brand-ink tpe-shadow-st-cta tpe-text-base tpe-transition-all tpe-transform active:tpe-scale-95 tpe-flex tpe-items-center tpe-justify-center tpe-gap-3 ".concat(ee||pe||Ar||On?"tpe-bg-brand-lime/70 tpe-cursor-wait tpe-opacity-90":"tpe-bg-brand-lime hover:tpe-brightness-95"),children:ee?(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsxs)("svg",{className:"tpe-animate-spin tpe-h-5 tpe-w-5 tpe-text-gray-900",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,Zt.jsx)("circle",{className:"tpe-opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,Zt.jsx)("path",{className:"tpe-opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Processing..."]}):Ar?"Fetching lyrics…":"custom-framing"===T?(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)("span",{children:"Add To Cart"}),(0,Zt.jsx)("span",{"aria-hidden":"true",className:"tpe-opacity-50",children:"|"}),(0,Zt.jsxs)("span",{className:"tpe-tabular-nums",children:[af.currency,sr.toFixed(2)]})]}):"Add to Cart"})]})]}),_t&&(0,y.createPortal)((0,Zt.jsx)("div",{className:"tpe-fixed tpe-inset-0 tpe-z-[9999] tpe-bg-black/60 tpe-backdrop-blur-sm tpe-flex tpe-items-center tpe-justify-center tpe-p-4 tpe-animate-fade-in",onClick:function(){return $t(!1)},children:(0,Zt.jsxs)("div",{className:"tpe-relative tpe-w-full tpe-max-w-lg tpe-bg-white tpe-rounded-2xl tpe-shadow-2xl tpe-overflow-hidden",onClick:function(e){return e.stopPropagation()},children:[(0,Zt.jsxs)("div",{className:"tpe-p-4 tpe-border-b tpe-border-gray-100 tpe-flex tpe-justify-between tpe-items-center",children:[(0,Zt.jsx)("h3",{className:"tpe-font-bold tpe-text-gray-900 tpe-text-lg",children:"Choose a product"}),(0,Zt.jsx)("button",{onClick:function(){return $t(!1)},className:"tpe-p-2 hover:tpe-bg-gray-100 tpe-rounded-full",children:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,Zt.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),(0,Zt.jsx)("div",{className:"tpe-p-4 tpe-grid tpe-grid-cols-2 sm:tpe-grid-cols-3 tpe-gap-2",children:w.map(function(e){return(0,Zt.jsx)("button",{onClick:function(){!function(e){N(e),"custom-framing"===e&&ot("SIZE");var t,n,r="#333333";if("starmap"===e){var o=Cn.starMaps[1]||jn();r=ke(o.themeId),Oe(!1)}if("soundwave"===e&&(r="#FFFFFF",Xe(!1),Ln(function(e){var t;return zd(zd({},e),{},{soundwaves:null!==(t=e.soundwaves)&&void 0!==t&&t[1]?e.soundwaves:zd(zd({},e.soundwaves),{},{1:{source:"preview",barData:[],barCount:240,waveformStyle:"linear-split-4",amplitude:1,waveColor:"#FFFFFF",backgroundColor:"#0F172A",showAlbumArt:!1,scanCode:{enabled:!1,type:"none",position:"br",sizePct:10,color:"#FFFFFF"}}})})})),"vinyl"===e&&(Ln(function(e){var t;return zd(zd({},e),{},{vinyls:null!==(t=e.vinyls)&&void 0!==t&&t[1]?e.vinyls:zd(zd({},e.vinyls),{},{1:{lyrics:"",cursiveLyrics:!1,discColor:"#000000",discTextColor:"#FFFFFF",labelColor:"#FFFFFF",labelTextColor:"#000000",themeId:"black",label:{line1:"",line2:"",recordLabel:"",country:"",year:"",length:"",sideText:"SIDE A",songTitle:"",artist:""},scanCode:{enabled:!1,type:"none",position:"br",sizePct:12,color:"#FFFFFF"}}})})}),Ge(!(null===(t=Cn.vinyls)||void 0===t||null===(t=t[1])||void 0===t||null===(t=t.label)||void 0===t||!t.songTitle))),"album"===e&&(Ln(function(e){var t;return zd(zd({},e),{},{albums:null!==(t=e.albums)&&void 0!==t&&t[1]?e.albums:zd(zd({},e.albums),{},{1:{lyrics:"",cursiveLyrics:!1,bgColor:"#FFFFFF",textColor:"#000000",useCustomCover:!1,label:{artist:"",songTitle:"",recordLabel:"",year:"",length:""},scanCode:{enabled:!1,type:"none",position:"br",sizePct:12,color:"#000000"}}})})}),Re(!(null===(n=Cn.albums)||void 0===n||null===(n=n[1])||void 0===n||null===(n=n.label)||void 0===n||!n.songTitle))),"map"===e){var a,i=null===(a=Cn.maps)||void 0===a?void 0:a[1];_e(!(!i||!(i.routes&&i.routes.length||i.locationLabel)))}Ln(function(t){return zd(zd({},t),{}
2,{textColor:r,captionLines:Sn(t.captionLines.length||2,e)})})}(e),$t(!1)},className:"tpe-px-3 tpe-py-3 tpe-rounded-xl tpe-text-sm tpe-font-bold tpe-border-2 tpe-transition-all ".concat(T===e?"tpe-border-gray-900 tpe-bg-gray-900 tpe-text-white tpe-shadow-md":"tpe-border-gray-200 tpe-text-gray-700 hover:tpe-border-gray-400 hover:tpe-bg-gray-50"),children:Tr(e)},e)})})]})}),document.body),Rt&&(0,y.createPortal)((0,Zt.jsx)("div",{className:"tpe-fixed tpe-inset-0 tpe-z-[9999] tpe-bg-black/80 tpe-backdrop-blur-sm tpe-flex tpe-items-center tpe-justify-center tpe-p-4 tpe-animate-fade-in",children:(0,Zt.jsxs)("div",{className:"tpe-relative tpe-w-full tpe-max-w-5xl tpe-h-[80vh] tpe-bg-white tpe-rounded-2xl tpe-shadow-2xl tpe-overflow-hidden tpe-flex tpe-flex-col",children:[(0,Zt.jsxs)("div",{className:"tpe-p-4 tpe-border-b tpe-border-gray-100 tpe-flex tpe-justify-between tpe-items-center",children:[(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("h3",{className:"tpe-font-bold tpe-text-gray-900 tpe-text-lg",children:"See it in your space"}),(0,Zt.jsx)("p",{className:"tpe-text-xs tpe-text-gray-500",children:"A true-to-scale guide for choosing the right size."})]}),(0,Zt.jsx)("button",{onClick:function(){Qt(!1),Jt(null)},className:"tpe-p-2 hover:tpe-bg-gray-100 tpe-rounded-full",children:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,Zt.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),(0,Zt.jsx)("div",{className:"tpe-flex-1 tpe-relative tpe-bg-gray-50",children:(0,Zt.jsx)(Tu,{size:Gn,frame:Hn,layout:qn,design:Cn,images:{},productType:T,snapshotUrl:yn,customRoomUrl:"custom-framing"===T?af.customFramingRoomUrl:null,customRoomCloseUrl:"custom-framing"===T?af.customFramingRoomCloseUrl:null,customRoomView:Kt,onCustomRoomViewChange:Jt,overrideTotalMm:"custom-framing"===T&&D?function(e){var t=null==W?void 0:W.mouldings.find(function(e){return e.code===D.mouldingCode}),n=null!==(e=null==t?void 0:t.mouldingWidthMm)&&void 0!==e?e:0,r=D.mountId?D.mountBorderMm:0;return{widthMm:D.widthMm+2*r+2*n,heightMm:D.heightMm+2*r+2*n,artworkWidthMm:D.widthMm,artworkHeightMm:D.heightMm,unit:D.unit}}():null})})]})}),document.body),"starmap"===T&&(0,Zt.jsx)(Du,{isOpen:tn,onClose:function(){return nn(!1)},config:Cn.starMaps[1],starCount:(null===(Y=re[1])||void 0===Y?void 0:Y.count)||0}),"oldmap"===T&&(0,Zt.jsx)(Vu,{isOpen:on,onClose:function(){return an(!1)},config:Cn.oldMaps[1]}),(0,Zt.jsx)(tp,{isOpen:Ut,stage:Ot,link:At,errorMessage:zt,onSubmit:function(e,t){Et("saving"),Xt(null),Cr({mode:"resume",email:e,marketingConsent:t})},onClose:function(){return kt(!1)}}),(0,Zt.jsx)(Ku,{isOpen:sn,onClose:function(){return cn(!1)},onLoad:Zn}),Yt&&(0,y.createPortal)((0,Zt.jsxs)("div",{className:"tpe-font-Jost tpe-fixed tpe-inset-0 tpe-z-[9999] tpe-flex tpe-items-center tpe-justify-center tpe-p-4 tpe-animate-fade-in",children:[(0,Zt.jsx)("div",{className:"tpe-absolute tpe-inset-0 tpe-bg-black/60 tpe-backdrop-blur-sm",onClick:function(){return Mt(null)}}),(0,Zt.jsxs)("div",{className:"tpe-relative tpe-bg-white tpe-w-full tpe-max-w-md tpe-rounded-2xl tpe-shadow-2xl tpe-overflow-hidden",children:[(0,Zt.jsxs)("div",{className:"tpe-p-5 tpe-border-b tpe-border-gray-100 tpe-flex tpe-justify-between tpe-items-center",children:[(0,Zt.jsx)("h3",{className:"tpe-text-lg tpe-font-bold tpe-text-gray-900",children:"New Version Saved"}),(0,Zt.jsx)("button",{onClick:function(){return Mt(null)},className:"tpe-p-2 tpe-bg-gray-100 hover:tpe-bg-gray-200 tpe-rounded-full tpe-text-gray-600",children:(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,Zt.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),(0,Zt.jsxs)("div",{className:"tpe-p-6 tpe-space-y-4",children:[(0,Zt.jsx)("p",{className:"tpe-text-sm tpe-text-gray-600",children:"Your edits have been saved as a new version. Share this code so we can print your updated design. The original design is kept intact."}),(0,Zt.jsxs)("div",{className:"tpe-bg-gray-50 tpe-border tpe-border-gray-200 tpe-rounded-xl tpe-p-3 tpe-flex tpe-items-center tpe-gap-2",children:[(0,Zt.jsx)("code",{className:"tpe-flex-1 tpe-text-xs tpe-font-mono tpe-text-gray-900 tpe-break-all",children:Yt}),(0,Zt.jsx)("button",{onClick:function(){var e;
2null===(e=navigator.clipboard)||void 0===e||e.writeText(Yt),wn("Code copied","success")},className:"tpe-text-xs tpe-font-bold tpe-text-white tpe-bg-gray-900 hover:tpe-bg-gray-800 tpe-px-3 tpe-py-1.5 tpe-rounded-lg",children:"Copy"})]}),(0,Zt.jsx)("button",{onClick:function(){return Mt(null)},className:"tpe-w-full tpe-py-3 tpe-rounded-xl tpe-font-bold tpe-text-white tpe-bg-gray-900 hover:tpe-bg-gray-800",children:"Done"})]})]})]}),document.body),Yn&&(0,Zt.jsx)("div",{className:"tpe-fixed tpe-bottom-4 tpe-left-1/2 tpe--translate-x-1/2 tpe-z-[10000] tpe-px-6 tpe-py-3 tpe-rounded-full tpe-shadow-xl tpe-text-white tpe-font-bold tpe-text-sm tpe-animate-fade-in-up ".concat("success"===Yn.type?"tpe-bg-green-600":"error"===Yn.type?"tpe-bg-red-600":"tpe-bg-gray-900"),children:Yn.msg})]})};function bf(e){return bf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bf(e)}function Yf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Mf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mf(Object(n),!0).forEach(function(t){Sf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Sf(e,t,n){return(t=function(e){var t=function(e){if("object"!=bf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=bf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==bf(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jf,Tf={pfc:{"--st-accent":"51 79 180","--st-accent-ink":"255 255 255"},tpe:{"--st-accent":"230 255 61","--st-accent-ink":"17 24 39"}},Nf={today:{"--st-ground":"243 244 246","--st-wall":"229 231 235","--st-panel":"255 255 255","--st-ink":"17 24 39","--st-muted":"107 114 128","--st-line":"229 231 235","--st-sunk":"249 250 251","--st-sel":"17 24 39","--st-radius":"8px","--st-radius-sm":"6px","--st-art-shadow":"0 20px 25px -5px rgba(0, 0, 0, 0.10), 0 8px 10px -6px rgba(0, 0, 0, 0.10)","--st-cta-shadow":"0 10px 15px -3px rgba(0, 0, 0, 0.10), 0 4px 6px -4px rgba(0, 0, 0, 0.10)","--st-border-w":"1px"},workshop:{"--st-ground":"237 236 233","--st-wall":"231 229 224","--st-panel":"255 255 255","--st-ink":"20 22 27","--st-muted":"107 112 122","--st-line":"228 227 223","--st-sunk":"247 246 244","--st-sel":"20 22 27","--st-radius":"8px","--st-radius-sm":"6px","--st-art-shadow":"0 18px 30px -12px rgba(28, 25, 20, 0.28), 0 4px 8px -4px rgba(28, 25, 20, 0.14)","--st-cta-shadow":"0 8px 18px -6px rgba(51, 79, 180, 0.35)","--st-border-w":"1px"}};function Wf(e){var t=e.trim(),n=t.replace("#","");if(/^[0-9a-f]{6}$/i.test(n))return[0,2,4].map(function(e){return parseInt(n.slice(e,e+2),16)}).join(" ");if(/^[0-9a-f]{3}$/i.test(n))return n.split("").map(function(e){return parseInt(e+e,16)}).join(" ");var r=t.match(/\d+/g);return r&&r.length>=3?r.slice(0,3).join(" "):null}function If(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Uf(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Uf(e,t):void 0}}
2(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Uf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}Object.keys(Nf);var kf=function(){var t,n,r,o,a,i,l,s,c,u,p,d="undefined"!=typeof window&&!(null===(t=window.SHOPIFY_CONFIG)||void 0===t||!t.preloadLocation),f="undefined"!=typeof window&&new URLSearchParams(window.location.search).has("cfShare"),m=If((0,e.useState)(d||f),2),h=m[0],g=m[1],x=If((0,e.useState)(!1),2),v=x[0],b=x[1],Y=If((0,e.useState)(!1),2),M=Y[0],w=Y[1];(0,e.useEffect)(function(){if(h){var e=window.scrollY;return document.body.style.top="-".concat(e,"px"),document.body.classList.add("tpe-no-scroll"),function(){var e=document.body.style.top;document.body.classList.remove("tpe-no-scroll"),document.body.style.top="",e&&window.scrollTo(0,-1*parseInt(e||"0"))}}},[h]);var S=(0,e.useMemo)(function(){try{var e,t,n=new Date,r=new Intl.DateTimeFormat("en-US",{timeZone:"Europe/London",hour:"numeric",minute:"numeric",hour12:!1}).formatToParts(n),o=parseInt((null===(e=r.find(function(e){return"hour"===e.type}))||void 0===e?void 0:e.value)||"0",10),a=parseInt((null===(t=r.find(function(e){return"minute"===e.type}))||void 0===t?void 0:t.value)||"0",10);return o>12||12===o&&a>0}catch(e){return(new Date).getHours()>=12}},[]),j=(0,e.useMemo)(function(){try{var e,t,n=new Date,r=new Intl.DateTimeFormat("en-US",{timeZone:"Europe/London",hour:"numeric",minute:"numeric",hour12:!1}).formatToParts(n),o=parseInt((null===(e=r.find(function(e){return"hour"===e.type}))||void 0===e?void 0:e.value)||"0",10),a=parseInt((null===(t=r.find(function(e){return"minute"===e.type}))||void 0===t?void 0:t.value)||"0",10),i=12-o,l=0-a;return new Date(n.getTime()+36e5*i+6e4*l).toLocaleTimeString(void 0,{hour:"numeric",minute:"2-digit"})}catch(e){return"12:00 PM"}},[]),T=(null===(n=window.SHOPIFY_CONFIG)||void 0===n?void 0:n.countryCode)||"GB",N=(0,e.useMemo)(function(){return $e.find(function(e){return e.code===T})||$e.find(function(e){return"GB"===e.code})},[T]),W=If((0,e.useState)(function(){return Vl(El({shippingDays:N.methods.express.max,shippingExclusions:N.exclusions,destinationCountryCode:N.code}))}),2),I=W[0],U=W[1],k=If((0,e.useState)(function(){return Vl(El({shippingDays:N.methods.standard.max,shippingExclusions:"GB"===N.code?[0,6]:N.exclusions,destinationCountryCode:N.code}))}),2),D=k[0],A=k[1],C=If((0,e.useState)(N.name),2),L=C[0],O=C[1];return(0,Zt.jsx)(Zt.Fragment,{children:h?(0,y.createPortal)((0,Zt.jsx)("div",{className:"tpe-fixed tpe-inset-0 tpe-z-[9999] tpe-bg-white tpe-flex tpe-flex-col tpe-animate-fade-in",children:(0,Zt.jsx)("div",{className:"tpe-flex-1 tpe-relative tpe-overflow-hidden tpe-app-wrapper",children:(0,Zt.jsx)(vf,{onClose:function(){return g(!1)}})})}),document.body):(0,Zt.jsxs)("div",{className:"tpe-@container tpe-w-full tpe-flex tpe-flex-col tpe-items-center tpe-justify-center tpe-bg-gray-50 tpe-font-sans tpe-text-slate-900",style:{background:(null===(r=window.SHOPIFY_CONFIG)||void 0===r||null===(r=r.styling)||void 0===r?void 0:r.launchContainerBg)||void 0},children:[(0,Zt.jsxs)("div",{className:"tpe-bg-white tpe-p-6 @[500px]:tpe-p-12 tpe-flex tpe-flex-col tpe-items-center tpe-text-center tpe-max-w-xl tpe-w-full tpe-border tpe-border-gray-100 tpe-animate-fade-in tpe-shadow-xl tpe-rounded-2xl",style:{background:(null===(o=window.SHOPIFY_CONFIG)||void 0===o||null===(o=o.styling)||void 0===o?void 0:o.launchCardBg)||void 0,color:(null===(a=window.SHOPIFY_CONFIG)||void 0===a||null===(a=a.styling)||void 0===a?void 0:a.launchCardText)||void 0,boxShadow:(null===(i=window.SHOPIFY_CONFIG)||void 0===i||null===(i=i.styling)||void 0===i?void 0:i.launchCardShadow)||void 0,border:(null===(l=window.SHOPIFY_CONFIG)||void 0===l||null===(l=l.styling)||void 0===l?void 0:l.launchCardBorder)||void 0},children:[!(null!==(s=window.SHOPIFY_CONFIG)&&void 0!==s&&null!==(s=s.features)&&void 0!==s&&s.hideDeliveryCalculator)&&(0,Zt.jsxs)("div",{className:"tpe-mb-8 tpe-flex tpe-flex-col tpe-items-center tpe-w-full",children:[(0,Zt.jsxs)("button",{onClick:function(){return b(!0)},className:"tpe-mb-4 tpe-flex tpe-items-center tpe-gap-1.5 tpe-text-sm tpe-text-gray-500 hover:tpe-text-gray-900 tpe-transition-colors tpe-py-1 tpe-px-3 tpe-rounded-full tpe-bg-gray-50 hover:tpe-bg-gray-100 tpe-group",children:[(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Zt.jsx)("path",{d:"M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"}),(0,Zt.jsx)("circle",{cx:"12",cy:"10",r:"3"})]}),(0,Zt.jsxs)("span",{children:["Shipping to ",(0,Zt.jsx)("span",{className:"tpe-font-bold tpe-text-gray-700 group-hover:tpe-text-gray-900",children:L})]}),(0,Zt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Zt.jsx)("polyline",{points:"6 9 12 15 18 9"})})]}),(0,Zt.jsxs)("div",{className:"tpe-bg-green-100 tpe-text-green-700 tpe-text-[10px] tpe-font-bold tpe-px-3 tpe-py-1.5 tpe-rounded-full tpe-uppercase tpe-tracking-wider tpe-mb-6 tpe-flex tpe-items-center tpe-gap-2",children:[(0,Zt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Zt.jsx)("polyline",{points:"20 6 9 17 4 12"})}),(0,Zt.jsx)("span",{children:S?"Order today":"Order by ".concat(j)}),(0,Zt.jsx)("span",{className:"tpe-opacity-50",children:"•"}),(0,Zt.jsx)("span",{children:"For earliest delivery"})]}),(0,Zt.jsxs)("div",{className:"tpe-grid tpe-grid-cols-1 @[450px]:tpe-grid-cols-2 tpe-gap-4 tpe-w-full tpe-mb-2",children:[(0,Zt.jsxs)("div",{className:"tpe-p-4 tpe-rounded-2xl tpe-bg-gray-100 tpe-border tpe-border-gray-200 tpe-flex tpe-flex-col tpe-items-center",children:[(0,Zt.jsx)("div",{className:"tpe-flex tpe-items-center tpe-gap-1.5 tpe-mb-1",children:(0,Zt.jsx)("span",{className:"tpe-text-[10px] tpe-font-bold tpe-text-gray-700 tpe-uppercase tpe-tracking-widest",children:"🚀 Express"})}),(0,Zt.jsx)("div",{className:"tpe-text-lg tpe-font-bold tpe-text-slate-900",children:I})]}),(0,Zt.jsxs)("div",{className:"tpe-p-4 tpe-rounded-2xl tpe-bg-gray-50 tpe-border tpe-border-gray-100 tpe-flex tpe-flex-col tpe-items-center",children:[(0,Zt.jsx)("div",{className:"tpe-flex tpe-items-center tpe-gap-1.5 tpe-mb-1",children:(0,Zt.jsx)("span",{className:"tpe-text-[10px] tpe-font-bold tpe-text-gray-400 tpe-uppercase tpe-tracking-widest",children:"📦 Standard"})}),(0,Zt.jsx)("div",{className:"tpe-text-lg tpe-font-bold tpe-text-slate-500",children:D})]})]})]}),(0,Zt.jsxs)("div",{className:"tpe-w-full tpe-space-y-4",children:[(0,Zt.jsx)("button",{onClick:function(){w(!0),requestAnimationFrame(function(){setTimeout(function(){g(!0),w(!1)},50)})},disabled:M,className:"tpe-w-full tpe-py-5 tpe-bg-brand-lime tpe-text-gray-900 tpe-border tpe-border-gray-900 tpe-text-xl tpe-font-bold tpe-rounded-2xl tpe-shadow-lg hover:tpe-brightness-95 hover:tpe-shadow-2xl tpe-transition-all tpe-transform hover:tpe--translate-y-1 tpe-flex tpe-items-center tpe-justify-center tpe-gap-3 tpe-group ".concat(M?"tpe-opacity-80 tpe-cursor-wait":""),style:{backgroundColor:(null===(c=window.SHOPIFY_CONFIG)||void 0===c||null===(c=c.styling)||void 0===c?void 0:c.launchButtonBg)||void 0,color:(null===(u=window.SHOPIFY_CONFIG)||void 0===u||null===(u=u.styling)||void 0===u?void 0:u.launchButtonText)||void 0,borderColor:(null===(p=window.SHOPIFY_CONFIG)||void 0===p||null===(p=p.styling)||void 0===p?void 0:p.launchButtonBorder)||void 0},children:M?(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)("div",{className:"tpe-spinner"}),(0,Zt.jsx)("span",{children:"Loading Studio..."})]}):(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)("span",{children:"Launch Designer"}),(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",className:"group-hover:tpe-translate-x-1 tpe-transition-transform",children:[(0,Zt.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"}),(0,Zt.jsx)("polyline",{points:"12 5 19 12 12 19"})]})]})}),(0,Zt.jsx)("p",{className:"tpe-text-[11px] tpe-text-gray-400 tpe-font-medium",children:"Design your custom print in real-time. Worldwide shipping available."})]})]}),(0,Zt.jsx)(Pl,{isOpen:v,onClose:function(){return b(!1)},onApply:function(e,t,n,r){U(e),A(r||""),O(n)},currency:"£",defaultCountryCode:T})]})})},Df=document.getElementById("tpe-design-studio");if(!Df)throw new Error("Could not find root element to mount to");!function(e){var t=wf(wf({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),function(){if("undefined"==typeof window)return{};var e=new URLSearchParams(window.location.search),t=e.get("scheme"),n=e.get("brand");return wf(wf({},t&&Nf[t]?{scheme:t}:{}),n&&Tf[n]?{brand:n}:{})}()),n=t.scheme&&Nf[t.scheme]?t.scheme:"today",r=t.brand&&Tf[t.brand]?t.brand:"tpe",o=wf(wf({},Nf[n]),Tf[r]),a=t.accent&&Wf(t.accent);a&&(o["--st-accent"]=a);var i=t.accentInk&&Wf(t.accentInk);
2i&&(o["--st-accent-ink"]=i),Object.entries(o).forEach(function(t){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Yf(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yf(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=o[0],i=o[1];return e.style.setProperty(a,i)}),e.setAttribute("data-scheme",n),e.setAttribute("data-brand",r)}(document.documentElement,(null===(jf=window.SHOPIFY_CONFIG)||void 0===jf?void 0:jf.theme)||{}),n.createRoot(Df).render((0,Zt.jsx)(e.StrictMode,{children:(0,Zt.jsx)(kf,{})}))})()})();

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.