journal/templates/js/webflow.js

37 lines
50 KiB
JavaScript
Raw Permalink Normal View History

2024-04-07 13:22:31 -04:00
/*!
* Webflow: Front-end site library
* @license MIT
* Inline scripts may access the api using an async handler:
* var Webflow = Webflow || [];
* Webflow.push(readyFunction);
*/
(()=>{var be=(t,f)=>()=>(f||t((f={exports:{}}).exports,f),f.exports);var Ke=be(()=>{"use strict";window.tram=function(t){function f(e,r){var o=new h.Bare;return o.init(e,r)}function v(e){return e.replace(/[A-Z]/g,function(r){return"-"+r.toLowerCase()})}function A(e){var r=parseInt(e.slice(1),16),o=r>>16&255,a=r>>8&255,i=255&r;return[o,a,i]}function $(e,r,o){return"#"+(1<<24|e<<16|r<<8|o).toString(16).slice(1)}function L(){}function N(e,r){J("Type warning: Expected: ["+e+"] Got: ["+typeof r+"] "+r)}function S(e,r,o){J("Units do not match ["+e+"]: "+r+", "+o)}function W(e,r,o){if(r!==void 0&&(o=r),e===void 0)return o;var a=o;return Re.test(e)||!Se.test(e)?a=parseInt(e,10):Se.test(e)&&(a=1e3*parseFloat(e)),0>a&&(a=0),a===a?a:o}function J(e){te.debug&&window&&window.console.warn(e)}function se(e){for(var r=-1,o=e?e.length:0,a=[];++r<o;){var i=e[r];i&&a.push(i)}return a}var K=function(e,r,o){function a(D){return typeof D=="object"}function i(D){return typeof D=="function"}function s(){}function O(D,oe){function m(){var pe=new z;return i(pe.init)&&pe.init.apply(pe,arguments),pe}function z(){}oe===o&&(oe=D,D=Object),m.Bare=z;var X,fe=s[e]=D[e],_e=z[e]=m[e]=new s;return _e.constructor=m,m.mixin=function(pe){return z[e]=m[e]=O(m,pe)[e],m},m.open=function(pe){if(X={},i(pe)?X=pe.call(m,_e,fe,m,D):a(pe)&&(X=pe),a(X))for(var Ne in X)r.call(X,Ne)&&(_e[Ne]=X[Ne]);return i(_e.init)||(_e.init=D),m},m.open(oe)}return O}("prototype",{}.hasOwnProperty),G={ease:["ease",function(e,r,o,a){var i=(e/=a)*e,s=i*e;return r+o*(-2.75*s*i+11*i*i+-15.5*s+8*i+.25*e)}],"ease-in":["ease-in",function(e,r,o,a){var i=(e/=a)*e,s=i*e;return r+o*(-1*s*i+3*i*i+-3*s+2*i)}],"ease-out":["ease-out",function(e,r,o,a){var i=(e/=a)*e,s=i*e;return r+o*(.3*s*i+-1.6*i*i+2.2*s+-1.8*i+1.9*e)}],"ease-in-out":["ease-in-out",function(e,r,o,a){var i=(e/=a)*e,s=i*e;return r+o*(2*s*i+-5*i*i+2*s+2*i)}],linear:["linear",function(e,r,o,a){return o*e/a+r}],"ease-in-quad":["cubic-bezier(0.550, 0.085, 0.680, 0.530)",function(e,r,o,a){return o*(e/=a)*e+r}],"ease-out-quad":["cubic-bezier(0.250, 0.460, 0.450, 0.940)",function(e,r,o,a){return-o*(e/=a)*(e-2)+r}],"ease-in-out-quad":["cubic-bezier(0.455, 0.030, 0.515, 0.955)",function(e,r,o,a){return(e/=a/2)<1?o/2*e*e+r:-o/2*(--e*(e-2)-1)+r}],"ease-in-cubic":["cubic-bezier(0.550, 0.055, 0.675, 0.190)",function(e,r,o,a){return o*(e/=a)*e*e+r}],"ease-out-cubic":["cubic-bezier(0.215, 0.610, 0.355, 1)",function(e,r,o,a){return o*((e=e/a-1)*e*e+1)+r}],"ease-in-out-cubic":["cubic-bezier(0.645, 0.045, 0.355, 1)",function(e,r,o,a){return(e/=a/2)<1?o/2*e*e*e+r:o/2*((e-=2)*e*e+2)+r}],"ease-in-quart":["cubic-bezier(0.895, 0.030, 0.685, 0.220)",function(e,r,o,a){return o*(e/=a)*e*e*e+r}],"ease-out-quart":["cubic-bezier(0.165, 0.840, 0.440, 1)",function(e,r,o,a){return-o*((e=e/a-1)*e*e*e-1)+r}],"ease-in-out-quart":["cubic-bezier(0.770, 0, 0.175, 1)",function(e,r,o,a){return(e/=a/2)<1?o/2*e*e*e*e+r:-o/2*((e-=2)*e*e*e-2)+r}],"ease-in-quint":["cubic-bezier(0.755, 0.050, 0.855, 0.060)",function(e,r,o,a){return o*(e/=a)*e*e*e*e+r}],"ease-out-quint":["cubic-bezier(0.230, 1, 0.320, 1)",function(e,r,o,a){return o*((e=e/a-1)*e*e*e*e+1)+r}],"ease-in-out-quint":["cubic-bezier(0.860, 0, 0.070, 1)",function(e,r,o,a){return(e/=a/2)<1?o/2*e*e*e*e*e+r:o/2*((e-=2)*e*e*e*e+2)+r}],"ease-in-sine":["cubic-bezier(0.470, 0, 0.745, 0.715)",function(e,r,o,a){return-o*Math.cos(e/a*(Math.PI/2))+o+r}],"ease-out-sine":["cubic-bezier(0.390, 0.575, 0.565, 1)",function(e,r,o,a){return o*Math.sin(e/a*(Math.PI/2))+r}],"ease-in-out-sine":["cubic-bezier(0.445, 0.050, 0.550, 0.950)",function(e,r,o,a){return-o/2*(Math.cos(Math.PI*e/a)-1)+r}],"ease-in-expo":["cubic-bezier(0.950, 0.050, 0.795, 0.035)",function(e,r,o,a){return e===0?r:o*Math.pow(2,10*(e/a-1))+r}],"ease-out-expo":["cubic-bezier(0.190, 1, 0.220, 1)",function(e,r,o,a){return e===a?r+o:o*(-Math.pow(2,-10*e/a)+1)+r}],"ease-in-out-expo":["cubic-bezier(1, 0, 0, 1)",function(e,r,o,a){return e===0?r:e===a?r+o:(e/=a/2)<1?o/2*Math.pow(2,10*(e-1))+r:o/2*(-Math.pow(2,-10*--e)+2)+r}],"ease-in-circ":["cubic-bezier(0.600, 0.040, 0.980, 0.335)"
((__t=(`+d+`))==null?'':_.escape(__t))+
'`:T?I+=`'+
((__t=(`+T+`))==null?'':__t)+
'`:B&&(I+=`';
`+B+`
__p+='`),h}),I+=`';
`;var c=l.variable;if(c){if(!x.test(c))throw new Error("variable is not a bare identifier: "+c)}else I=`with(obj||{}){
`+I+`}
`,c="obj";I=`var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};
`+I+`return __p;
`;var y;try{y=new Function(l.variable||"obj","_",I)}catch(h){throw h.source=I,h}var k=function(h){return y.call(this,h,t)};return k.source="function("+c+`){
`+I+"}",k},t}()});var Te=be((nn,ct)=>{"use strict";var re={},De={},Pe=[],Ye=window.Webflow||[],Me=window.jQuery,ke=Me(window),zt=Me(document),Oe=Me.isFunction,xe=re._=tt(),rt=re.tram=Ke()&&Me.tram,He=!1,Ge=!1;rt.config.hideBackface=!1;rt.config.keepInherited=!0;re.define=function(t,f,v){De[t]&&ot(De[t]);var A=De[t]=f(Me,xe,v)||{};return it(A),A};re.require=function(t){return De[t]};function it(t){re.env()&&(Oe(t.design)&&ke.on("__wf_design",t.design),Oe(t.preview)&&ke.on("__wf_preview",t.preview)),Oe(t.destroy)&&ke.on("__wf_destroy",t.destroy),t.ready&&Oe(t.ready)&&Ht(t)}function Ht(t){if(He){t.ready();return}xe.contains(Pe,t.ready)||Pe.push(t.ready)}function ot(t){Oe(t.design)&&ke.off("__wf_design",t.design),Oe(t.preview)&&ke.off("__wf_preview",t.preview),Oe(t.destroy)&&ke.off("__wf_destroy",t.destroy),t.ready&&Oe(t.ready)&&Ut(t)}function Ut(t){Pe=xe.filter(Pe,function(f){return f!==t.ready})}re.push=function(t){if(He){Oe(t)&&t();return}Ye.push(t)};re.env=function(t){var f=window.__wf_design,v=typeof f<"u";if(!t)return v;if(t==="design")return v&&f;if(t==="preview")return v&&!f;if(t==="slug")return v&&window.__wf_slug;if(t==="editor")return window.WebflowEditor;if(t==="test")return window.__wf_test;if(t==="frame")return window!==window.top};var ze=navigator.userAgent.toLowerCase(),at=re.env.touch="ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch,Bt=re.env.chrome=/chrome/.test(ze)&&/Google/.test(navigator.vendor)&&parseInt(ze.match(/chrome\/(\d+)\./)[1],10),$t=re.env.ios=/(ipod|iphone|ipad)/.test(ze);re.env.safari=/safari/.test(ze)&&!Bt&&!$t;var Ve;at&&zt.on("touchstart mousedown",function(t){Ve=t.target});re.validClick=at?function(t){return t===Ve||Me.contains(t,Ve)}:function(){return!0};var st="resize.webflow orientationchange.webflow load.webflow",Xt="scroll.webflow "+st;re.resize=Ze(ke,st);re.scroll=Ze(ke,Xt);re.redraw=Ze();function Ze(t,f){var v=[],A={};return A.up=xe.throttle(function($){xe.each(v,function(L){L($)})}),t&&f&&t.on(f,A.up),A.on=function($){typeof $=="function"&&(xe.contains(v,$)||v.push($))},A.off=function($){if(!arguments.length){v=[];return}v=xe.filter(v,function(L){return L!==$})},A}re.location=function(t){window.location=t};re.env()&&(re.location=function(){});re.ready=function(){He=!0,Ge?Kt():xe.each(Pe,nt),xe.each(Ye,nt),re.resize.up()};function nt(t){Oe(t)&&t()}function Kt(){Ge=!1,xe.each(De,it)}var Ie;re.load=function(t){Ie.then(t)};function ut(){Ie&&(Ie.reject(),ke.off("load",Ie.resolve)),Ie=new Me.Deferred,ke.on("load",Ie.resolve)}re.destroy=function(t){t=t||{},Ge=!0,ke.triggerHandler("__wf_destroy"),t.domready!=null&&(He=t.domready),xe.each(De,ot),re.resize.off(),re.scroll.off(),re.redraw.off(),Pe=[],Ye=[],Ie.state()==="pending"&&ut()};Me(re.ready);ut();ct.exports=window.Webflow=re});var dt=be((rn,lt)=>{"use strict";var ft=Te();ft.define("brand",lt.exports=function(t){var f={},v=document,A=t("html"),$=t("body"),L=".w-webflow-badge",N=window.location,S=/PhantomJS/i.test(navigator.userAgent),W="fullscreenchange webkitfullscreenchange mozfullscreenchange msfullscreenchange",J;f.ready=function(){var M=A.attr("data-wf-status"),Z=A.attr("data-wf-domain")||"";/\.webflow\.io$/i.test(Z)&&N.hostname!==Z&&(M=!0),M&&!S&&(J=J||K(),G(),setTimeout(G,500),t(v).off(W,se).on(W,se))};function se(){var M=v.fullScreen||v.mozFullScreen||v.webkitIsFullScreen||v.msFullscreenElement||!!v.webkitFullscreenElement;t(J).attr("style",M?"display: none !important;":"")}function K(){var M=t('<a class="w-webflow-badge"></a>').attr("href","https://webflow.com?utm_campaign=brandjs"),Z=t("<img>").attr("src","https://d3e54v103j8qbb.cloudfront.net/img/webflow-badge-icon-d2.89e12c322e.svg").attr("alt","").css({marginRight:"4px",width:"26px"}),ee=t("<img>").attr("src","https://d3e54v103j8qbb.cloudfront.net/img/webflow-badge-text-d2.c82cec3b78.svg").attr("alt","Made in Webflow");return M.append(Z,ee),M[0]}function G(){var M=$.children(L),Z=M.length&&M.get(0)===J,ee=ft.env("editor");if(Z){ee&&M.remove();return}M.length&&M.remove(),ee||$.append(J)}return f})});var vt=be((on,ht)=>{"use strict";va
/*!
* tram.js v0.8.2-global
* Cross-browser CSS3 transitions in JavaScript
* https://github.com/bkwld/tram
* MIT License
*/
/*!
* Webflow._ (aka) Underscore.js 1.6.0 (custom build)
*
* http://underscorejs.org
* (c) 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
* Underscore may be freely distributed under the MIT license.
* @license MIT
*/