mirror of
https://github.com/Sea-Haven-Industries/seahaven-site.git
synced 2026-10-03 17:43:14 +00:00
2 lines
89 KiB
JavaScript
2 lines
89 KiB
JavaScript
|
|
/*! elementor-pro - v3.27.0 - 03-02-2025 */
|
||
|
|
(()=>{var e={4047:()=>{},1260:()=>{},9652:()=>{},3762:()=>{},8515:()=>{},734:()=>{},1402:()=>{},5043:()=>{},3040:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Link:()=>z,Location:()=>M,LocationProvider:()=>A,Match:()=>Q,Redirect:()=>J,Router:()=>B,ServerLocation:()=>N,createHistory:()=>T,createMemorySource:()=>P,globalHistory:()=>O,isRedirect:()=>V,matchPath:()=>d,navigate:()=>w,redirectTo:()=>K,useLocation:()=>Z,useMatch:()=>te,useNavigate:()=>X,useParams:()=>ee});var r=n(1594),o=n.n(r),i=n(2091),a=n.n(i),s=n(3070),u=n.n(s);function componentWillMount(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function componentWillReceiveProps(e){this.setState(function updater(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function componentWillUpdate(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}componentWillMount.__suppressDeprecationWarning=!0,componentWillReceiveProps.__suppressDeprecationWarning=!0,componentWillUpdate.__suppressDeprecationWarning=!0;var l=function startsWith(e,t){return e.substr(0,t.length)===t},c=function pick(e,t){for(var n=void 0,r=void 0,o=t.split("?")[0],i=_(o),s=""===i[0],u=y(e),l=0,c=u.length;l<c;l++){var d=!1,p=u[l].route;if(p.default)r={route:p,params:{},uri:t};else{for(var f=_(p.path),h={},g=Math.max(i.length,f.length),b=0;b<g;b++){var E=f[b],S=i[b];if(v(E)){h[E.slice(1)||"*"]=i.slice(b).map(decodeURIComponent).join("/");break}if(void 0===S){d=!0;break}var T=m.exec(E);if(T&&!s){-1===C.indexOf(T[1])||a()(!1);var P=decodeURIComponent(S);h[T[1]]=P}else if(E!==S){d=!0;break}}if(!d){n={route:p,params:h,uri:"/"+i.slice(0,b).join("/")};break}}}return n||r||null},d=function match(e,t){return c([{path:e}],t)},p=function resolve(e,t){if(l(e,"/"))return e;var n=e.split("?"),r=n[0],o=n[1],i=t.split("?")[0],a=_(r),s=_(i);if(""===a[0])return b(i,o);if(!l(a[0],".")){var u=s.concat(a).join("/");return b(("/"===i?"":"/")+u,o)}for(var c=s.concat(a),d=[],p=0,f=c.length;p<f;p++){var m=c[p];".."===m?d.pop():"."!==m&&d.push(m)}return b("/"+d.join("/"),o)},f=function insertParams(e,t){var n=e.split("?"),r=n[0],o=n[1],i=void 0===o?"":o,a="/"+_(r).map((function(e){var n=m.exec(e);return n?t[n[1]]:e})).join("/"),s=t.location,u=(s=void 0===s?{}:s).search,l=(void 0===u?"":u).split("?")[1]||"";return a=b(a,i,l)},m=/^:(.+)/,h=function isDynamic(e){return m.test(e)},v=function isSplat(e){return e&&"*"===e[0]},g=function rankRoute(e,t){return{route:e,score:e.default?0:_(e.path).reduce((function(e,t){return e+=4,!function isRootSegment(e){return""===e}(t)?h(t)?e+=2:v(t)?e-=5:e+=3:e+=1,e}),0),index:t}},y=function rankRoutes(e){return e.map(g).sort((function(e,t){return e.score<t.score?1:e.score>t.score?-1:e.index-t.index}))},_=function segmentize(e){return e.replace(/(^\/+|\/+$)/g,"").split("/")},b=function addQuery(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e+((n=n.filter((function(e){return e&&e.length>0})))&&n.length>0?"?"+n.join("&"):"")},C=["uri","path"],E=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},S=function getLocation(e){var t=e.location,n=t.search,r=t.hash,o=t.href,i=t.origin,a=t.protocol,s=t.host,u=t.hostname,l=t.port,c=e.location.pathname;!c&&o&&x&&(c=new URL(o).pathname);return{pathname:encodeURI(decodeURI(c)),search:n,hash:r,href:o,origin:i,protocol:a,host:s,hostname:u,port:l,state:e.history.state,key:e.history.state&&e.history.state.key||"initial"}},T=function createHistory(e,t){var n=[],r=S(e),o=!1,i=function resolveTransition(){};return{get location(){return r},get transitioning(){return o},_onTransitionComplete:function _onTransitionComplete(){o=!1,i()},listen:function listen(t){n.push(t);var o=function popstateListener(){r=S(e),t({location:r,action:"POP"})};return e.addEventListener("popstate",o),function(){e.removeEve
|