PageSourceSearch

https://www.authy.com/etc.clientlibs/twilio-foundation/clientlibs/…/resources/173.d42709877371cd8a6cca.js

js authy.com collected 2026-10-01 08:29:08 UTC 8,267 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunktwilio_foundation_frontend=self.webpackChunktwilio_foundation_frontend||[]).push([[173],{10173:function(t,e,n){n.r(e),n.d(e,{registerTimeToRead:function(){return u}});var i,o=n(91072);!function(t){t.SELF=".cmp-time-to-read",t.TIME_TO_READ_SPAN=".cmp-time-to-read__text__estimation",t.IMAGES="figure.media, img:not(figure *)",t.CONTENT_CONTAINERS=".cmp-longform-body__content__main,.cmp-customerstory-body__content__main__container,.cmp-longform-body__content__main__container,.cmp-blog__body"}(i||(i={}));const r=t=>t.replaceAll(/([\r\n\t]+)|(\s{2,})/gi," ").trim(),s={estimate:t=>r(t??"").split(/\s+/).filter(t=>t.length>0).length/265},c={en:s,ja:{estimate:t=>r(t??"").replaceAll(/[\u3000-\u303F\uFF00-\uFFEF\s]+/g,"").length/600}},a=()=>{document.querySelectorAll(i.SELF).forEach(t=>{const e=t.querySelector(i.TIME_TO_READ_SPAN),n=document.querySelector(i.CONTENT_CONTAINERS)??document.querySelector("main");if(!n||!e)return;const r=(()=>{const t=(0,o.JK)();return c[t]||s})().estimate(n.textContent),a=(t=>{const e=t.querySelectorAll(i.IMAGES).length;return 0===e?0:Array.from({length:e},(t,e)=>e).reduce((t,e,n)=>n<10?t+(12-n):t+3,0)/60})(n),u=Math.round(r+a),{labelMinute:l,labelMinutes:h,labelLessThanOneMinute:d}=t.dataset??{};e.textContent=u<1?d??"Less than a minute":1===u?`${u} ${l??"minute"}`:`${u} ${h??"minutes"}`,e.classList.remove("spinner-dual-ring")})},u=()=>{"loading"!==document.readyState?a():window.addEventListener("DOMContentLoaded",a)}},42430:function(t,e,n){var i=n(94598);const o="e507005",r="e682286",s="e555348",c="e555373",a=(t,e=!1)=>e&&window.location.hostname.startsWith("author-")?`.author-p62254-${t}.adobeaemcloud.com`:`.publish-p62254-${t}.adobeaemcloud.com`,u={setCookie(t,e,n,u=!1,l=!1){const h=((t=!1)=>(0,i.YW)(window.location.hostname).when(t=>t.includes("localhost"),()=>"localhost").when(t=>t.includes("127.0.0.1"),()=>"127.0.0.1").when(t=>t.includes(o),()=>a(o,t)).when(t=>t.includes(r),()=>a(r,t)).when(t=>t.includes(s),()=>a(s,t)).when(t=>t.includes(c),()=>a(c,t)).when(t=>t.includes("sendgrid.com"),()=>".sendgrid.com").when(t=>t.includes("twilio.org"),()=>".twilio.org").when(t=>t.includes("segment.com"),()=>".segment.com").otherwise(()=>".twilio.com"))(l);if(n){const i=new Date;i.setTime(i.getTime()+n),document.cookie=`${t}=${e}; expires=${i.toUTCString()}; domain=${h}; path=/`}else document.cookie=u?`${t}=${e}; domain=${h}; path=/`:`${t}=${e}; path=/`},getCookie(t){const e=`; ${document.cookie}`.split(`; ${t}=`);return 2===e.length&&e.pop()?.split(";").shift()||""},deleteCookie(t){const e=new Date;e.setTime(e.getTime()-864e5),document.cookie=`${t}=; expires=${e.toUTCString()}; path=/`}};e.A=u},91072:function(t,e,n){n.d(e,{JK:function(){return o}});var i=n(42430);const o=()=>{const t=(()=>{const t=window.location.pathname,e=[{key:"en",paths:["/en/","/en-us"]},{key:"es",paths:["/es/","/es-mx"]},{key:"pt",paths:["/pt/","/pt-br"]},{key:"fr",paths:["/fr/","/fr-fr"]},{key:"de",paths:["/de/","/de-de"]},{key:"ja",paths:["/ja/","/ja-jp"]}].find(e=>e.paths.some(e=>t.includes(e)));return e?e.key:null})(),e=(()=>{const t=i.A.getCookie("tw-content-language").split("-")[0];return t&&t.split("-")[0]||null})();return t||e||"en"}},94598:function(t,e,n){n.d(e,{YW:function(){return A}});const i=Symbol.for("@ts-pattern/matcher"),o=Symbol.for("@ts-pattern/isVariadic"),r="@ts-pattern/anonymous-select-key",s=t=>Boolean(t&&"object"==typeof t),c=t=>t&&!!t[i],a=(t,e,n)=>{if(c(t)){const o=t[i](),{matched:r,selections:s}=o.match(e);return r&&s&&Object.keys(s).forEach(t=>n(t,s[t])),r}if(s(t)){if(!s(e))return!1;if(Array.isArray(t)){if(!Array.isArray(e))return!1;let i=[],r=[],s=[];for(const e of t.keys()){const n=t[e];c(n)&&n[o]?s.push(n):s.length?r.push(n):i.push(n)}if(s.length){if(s.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(e.length<i.length+r.length)return!1;const t=e.slice(0,i.length),o=0===r.length?[]:e.slice(-r.length),c=e.slice(i.length,0===r.length?1/0:-r.length);return i.every((e,i)=>a(e,t[i],n))&&r.every((t,e)=>a(t,o[e],n))&&(0===s.length||a(s[0],c,n))}return t.length===e.length&&t.every((t,i)=>a(t,e[i],n))}return Reflect.ownKeys(t).every(o=>{const r=t[o];return(o in e||c(s=r)&&"optional"===s[i]().matcherType)&&a(r,e[o],n);var s})}return Object.is(e,t)},u=t=>{var e,n,o;return s(t)?c(t)?null!=(e=null==(n=(o=t[i]()).getSelectionKeys)?void 0:n.call(o))?e:[]:Array.isArray(t)?l(t,u):l(Object.values(t),u):[]},l=(t,e)=>t.reduce((t,n)=>t.concat(e(n)),[]);function h(t){return Object.assign(t,{optional:()=>d(t),and:e=>m(t,e),or:e=>p(t,e),select:e=>void 0===e?f(t):f(e,t)})}function d(t){return h({[i]:()=>({match:e=>{let n={};const i=(t,e)=>{n[t]=e};return void 0===e?(u(t).forEach(t=>i(t,void 0)),{matched:!0,selections:n}):{matched:a(t,e,i),selections:n}},getSelectionKeys:()=>u(t),matcherType:"optional"})})}function m(...t){return h({[i]:()=>({match:e=>{let n={};const i=(t,e)=>{n[t]=e};return{matched:t.every(t=>a(t,e,i)),selections:n}},getSelectionKeys:()=>l(t,u),matcherType:"and"})})}function p(...t){return h({[i]:()=>({match:e=>{let n={};const i=(t,e)=>{n[t]=e};return l(t,u).forEach(t=>i(t,void 0)),{matched:t.some(t=>a(t,e,i)),selections:n}},getSelectionKeys:()=>l(t,u),matcherType:"or"})})}function g(t){return{[i]:()=>({match:e=>({matched:Boolean(t(e))})})}}function f(...t){const e="string"==typeof t[0]?t[0]:void 0,n=2===t.length?t[1]:"string"==typeof t[0]?void 0:t[0];return h({[i]:()=>({match:t=>{let i={[null!=e?e:r]:t};return{matched:void 0===n||a(n,t,(t,e)=>{i[t]=e}),selections:i}},getSelectionKeys:()=>[null!=e?e:r].concat(void 0===n?[]:u(n))})})}function y(t){return"number"==typeof t}function v(t){return"string"==typeof t}function w(t){return"bigint"==typeof t}h(g(function(t){return!0}));const _=t=>Object.assign(h(t),{startsWith:e=>{return _(m(t,(n=e,g(t=>
1v(t)&&t.startsWith(n)))));var n},endsWith:e=>{return _(m(t,(n=e,g(t=>v(t)&&t.endsWith(n)))));var n},minLength:e=>_(m(t,(t=>g(e=>v(e)&&e.length>=t))(e))),length:e=>_(m(t,(t=>g(e=>v(e)&&e.length===t))(e))),maxLength:e=>_(m(t,(t=>g(e=>v(e)&&e.length<=t))(e))),includes:e=>{return _(m(t,(n=e,g(t=>v(t)&&t.includes(n)))));var n},regex:e=>{return _(m(t,(n=e,g(t=>v(t)&&Boolean(t.match(n))))));var n}}),b=(_(g(v)),t=>Object.assign(h(t),{between:(e,n)=>b(m(t,((t,e)=>g(n=>y(n)&&t<=n&&e>=n))(e,n))),lt:e=>b(m(t,(t=>g(e=>y(e)&&e<t))(e))),gt:e=>b(m(t,(t=>g(e=>y(e)&&e>t))(e))),lte:e=>b(m(t,(t=>g(e=>y(e)&&e<=t))(e))),gte:e=>b(m(t,(t=>g(e=>y(e)&&e>=t))(e))),int:()=>b(m(t,g(t=>y(t)&&Number.isInteger(t)))),finite:()=>b(m(t,g(t=>y(t)&&Number.isFinite(t)))),positive:()=>b(m(t,g(t=>y(t)&&t>0))),negative:()=>b(m(t,g(t=>y(t)&&t<0)))})),S=(b(g(y)),t=>Object.assign(h(t),{between:(e,n)=>S(m(t,((t,e)=>g(n=>w(n)&&t<=n&&e>=n))(e,n))),lt:e=>S(m(t,(t=>g(e=>w(e)&&e<t))(e))),gt:e=>S(m(t,(t=>g(e=>w(e)&&e>t))(e))),lte:e=>S(m(t,(t=>g(e=>w(e)&&e<=t))(e))),gte:e=>S(m(t,(t=>g(e=>w(e)&&e>=t))(e))),positive:()=>S(m(t,g(t=>w(t)&&t>0))),negative:()=>S(m(t,g(t=>w(t)&&t<0)))}));S(g(w)),h(g(function(t){return"boolean"==typeof t})),h(g(function(t){return"symbol"==typeof t})),h(g(function(t){return null==t})),h(g(function(t){return null!=t}));class T extends Error{constructor(t){let e;try{e=JSON.stringify(t)}catch(n){e=t}super(`Pattern matching error: no pattern matches value ${e}`),this.input=void 0,this.input=t}}const k={matched:!1,value:void 0};function A(t){return new E(t,k)}class E{constructor(t,e){this.input=void 0,this.state=void 0,this.input=t,this.state=e}with(...t){if(this.state.matched)return this;const e=t[t.length-1],n=[t[0]];let i;3===t.length&&"function"==typeof t[1]?i=t[1]:t.length>2&&n.push(...t.slice(1,t.length-1));let o=!1,s={};const c=(t,e)=>{o=!0,s[t]=e},u=!n.some(t=>a(t,this.input,c))||i&&!Boolean(i(this.input))?k:{matched:!0,value:e(o?r in s?s[r]:s:this.input,this.input)};return new E(this.input,u)}when(t,e){if(this.state.matched)return this;const n=Boolean(t(this.input));return new E(this.input,n?{matched:!0,value:e(this.input,this.input)}:k)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(t=$){return this.state.matched?this.state.value:t(this.input)}run(){return this.exhaustive()}returnType(){return this}narrow(){return this}}function $(t){throw new T(t)}}}]);

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.