1import{_ as M}from"./preload-helper-ICK8sbMsE0SP.js";import{a as f}from"./axios_chunk-CLxAxl5Wb_6r.js";import{a as y}from"./log-COEE0D_sNqpN.js";import{L as b}from"./auth-BDM2NH9H1bVF.js";import{H as k}from"./errors-DH6DCUGuIYZQ.js";const v={productTourWait:"productTourWait",coachMarkSaveWait:"coachMarkSaveWait"},C="https://cdn-v1.udocz-assets.com/static/img/avatar-1.svg",W=e=>{e.target.src=C},q=e=>e.charAt(0).toUpperCase()+e.slice(1),z=["application/vnd.google-apps.document","application/vnd.google-apps.spreadsheet","application/vnd.google-apps.presentation","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","text/csv","application/vnd.oasis.opendocument.text","application/vnd.oasis.opendocument.spreadsheet","application/vnd.oasis.opendocument.presentation","application/x-iwork-pages-sffpages","application/x-iwork-keynote-sffkey","application/x-iwork-numbers-sffnumbers"],Y=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],G=(e,t=2)=>{t=Math.pow(10,t);const s=["k","m","b","t"];for(let n=s.length-1;n>=0;n--){const o=Math.pow(10,(n+1)*3);if(o<=e){e=Math.round(e*t/o)/t,e===1e3&&n<s.length-1&&(e=1,n++),e+=` ${s[n].toUpperCase()}`;break}}return e},Z=(e,t=void 0)=>e?e.startsWith("https://storage.googleapis.com")?(e=e.replace("https://storage.googleapis.com/cdnv1udoczassetscom",window.img_server_url),`${e.split("?")[0]}${t?`?width=${t}`:""}`):e:"https://cdn-v1.udocz-assets.com/static/img/blank_cover.jpg",J=e=>{e.target.src="https://cdn-v1.udocz-assets.com/static/img/blank_cover.jpg"},K=()=>{const e=localStorage.getItem(b.downloadClick);e&&(localStorage.removeItem(b.downloadClick),localStorage.setItem("download",e),localStorage.setItem(v.productTourWait,!0),localStorage.setItem(v.coachMarkSaveWait,!0))},E=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,""),x=e=>e.slice(-2)==="es"?e.slice(0,-2):e.slice(-1)==="s"?e.slice(0,-1):e,X=(e="",t="")=>{const s=E(e).toLowerCase(),n=E(t).toLowerCase();if(s===n)return!0;const o=x(s),a=x(n);return o===a},Q=()=>{const e=window.innerHeight*.01;document.documentElement.style.setProperty("--vh",`${e}px`)},ee=e=>e.trim().toLowerCase().replace(/[^a-zA-Z0-9 -]/,"").replace(/\s/g,"-"),te=(e,t)=>{let s=e;return e&&e.length>t&&(s=e.slice(0,t)+"..."),s},u=(e,t)=>{const s=document.getElementById(e);s&&(s.innerHTML=t)},I=e=>{u(e.countDownID,"")},O=e=>{u(e.countDays,"0"),u(e.countHours,"00"),u(e.countMinutes,"00"),u(e.countSeconds,"00")},T=(e,t)=>{let s="";t.days()>0&&(s=`<b>${t.days()}</b>d : `);const n=`${s}<b>${t.hours()}</b>hrs : <b>${t.minutes()}</b>min : <b>${t.seconds()}</b>seg`;u(e.countDownID,n)},g=e=>`${parseInt(e,10)>=0&&parseInt(e,10)<10?"0":""}${e}`,L=(e,t)=>{u(e.countDays,t.days()),u(e.countHours,g(t.hours())),u(e.countMinutes,g(t.minutes())),u(e.countSeconds,g(t.seconds()))},se=(e,t={})=>{const s=e.replace(/-/g,"/"),n=t.customDate?s:`${s} 23:59:59`,o=window.dayjs(n,"MM/DD/YYYY HH:mm:ss"),a=t.startAt?window.dayjs(t.startAt,"MM/DD/YYYY HH:mm:ss"):window.dayjs();let r=window.dayjs.duration(o.diff(a));const i=t.countHours?L:T,c=t.countHours?O:I,d=t.callback,h=1e3,l=setInterval(()=>{r=window.dayjs.duration(r.asMilliseconds()-h,"milliseconds"),r.seconds()>-1?i(t,r):(c(t),d&&d(),clearInterval(l))},h)},$=()=>{const e=navigator.userAgent;return/(tablet|ipad|playbook|silk)|(android(?!.*mobi))/i.test(e)?"tablet":/Mobile|Android|iP(hone|od)|IEMobile|BlackBerry|Kindle|Silk-Accelerated|(hpw|web)OS|Opera M(obi|ini)/.test(e)?"mobile":"desktop"},ne=()=>document.referrer.search("https?://(.*)google.([^/?]*)")===0?"Google":document.referrer.search("https?://(.*)bing.([^/?]*)")===0?"Bing":document.referrer.search("https?://(.*)yahoo.([^/?]*)")===0?"Yahoo":document.referrer.search("https?://(.*)facebook.([^/?]*)")===0?"Facebook":document.referrer.search("https?://(.*)twitter.([^/?]*)")===0?"Twitter":"Other",oe=e=>({data:e.data,emptyOptionsMessage:e.emptyOptionsMessage?e.emptyOptionsMessage:"Ningún resultado coincide con su búsqueda.",focusedOptionIndex:null,name:e.name,open:!1,options:{},placeholder:e.placeholder?e.placeholder:"Selecciona una opción",search:"",value:e.value,dataAjax:e.dataAjax?e.dataAjax:!1,urlDataAjax:e.urlDataAjax?e.urlDataAjax:"",urlExtraParam:e.urlExtraParam?e.urlExtraParam:"",showEmptyResult:!1,closeListbox:function(){this.open=!1,this.focusedOptionIndex=null,this.value||(this.options=this.data),this.search="",this.showEmptyResult=!1},init:function(){this.options=this.data,this.value in this.options||(this.value=null),this.$watch("search",t=>{this.dataAjax&&this.search!==""?this.searchApi():Object.keys(this.data).length>0&&(this.options=Object.keys(this.data).filter(s=>this.data[s].toLowerCase().includes(t.toLowerCase())).reduce((s,n)=>(s[n]=this.data[n],s),{}))}),this.dataAjax&&R("searchButton_"+this.name,"searchBox_"+this.name,"searchInput_"+this.name)},selectOption:function(t=!1){if(!this.open)return this.toggleListboxVisibility();if(t){const s=this.orderBy()[this.focusedOptionIndex];this.value=s[0]}else this.value=Object.keys(this.options)[this.focusedOptionIndex];this.closeListbox()},toggleListboxVisibility:function(){if(this.open)return this.closeListbox();this.open=!0,this.$nextTick(()=>{this.$refs&&this.$refs.search&&(new Promise(t=>{this.$refs.search.style.display="flex",t()}).then(()=>{this.$refs.search.focus()}),this.$refs.search.click(),this.$refs.search.focus()),this.$refs&&this.$refs.listbox&&this.$refs.listbox.children[this.focusedOptionIndex].scrollIntoView({block:"center"})}),this.focusedOptionIndex=Object.keys(this.options).indexOf(this.value),this.focusedOptionIndex<0&&(this.focusedOptionIndex=0)},orderBy:function(t=1){const s=[];for(const n in this.options)s.push([n,this.options[n][0],this.options[n][1]]);return s.sort((n,o)=>o[t]-n[t]),s},cancelSearchApi:void 0,searchApi:function(){this.showEmptyResult=!1,typeof this.cancelSearchApi<"u"&&this.cancelSearchApi.cancel(),this.cancelSearchApi=f.CancelToken.source();const t=`${this.urlDataAjax}?query=${this.search}&format_search=true${this.urlExtraParam}`;f.get(t,{cancelToken:this.cancelSearchApi.token}).then(s=>{this.options=s.data,Object.keys(this.options).length<1&&(this.showEmptyResult=!0)}).catch(s=>{f.isCancel(s)||(y("PROMISE REQ"),y(s))})}}),R=(e,t,s)=>{const n=document.getElementById(e),o=document.getElementById(t);n&&o&&(n.onclick=()=>{new Promise(a=>{o.style.display="flex",a()}).then(()=>{const a=document.getElementById(s);a&&a.focus()})})},ae=(e,t)=>{const s=[{value:1,symbol:""},{value:1e3,symbol:"k"},{value:1e6,symbol:"M"},{value:1e9,symbol:"G"},{value:1e12,symbol:"T"},{value:1e15,symbol:"P"}
1,{value:1e18,symbol:"E"}],n=/\.0+$|(\.[0-9]*[1-9])0+$/,o=s.slice().reverse().find(function(a){return e>=a.value});return o?(e/o.value).toFixed(t).replace(n,"$1")+o.symbol:"0"},re=e=>{setTimeout(()=>{const t=document.getElementById("popupConfirmEmail"),s=e?"block":"none";t&&$()!=="mobile"&&(t.style.display=s)},300)},ie=(e,t)=>{e.target.value.length>=t&&e.preventDefault()},ce=(e,t,s)=>{let n="",o=e.split("?");const a=o[0],r=o[1];let i="";if(r){o=r.split("&");for(let d=0;d<o.length;d++)o[d].split("=")[0]!==t&&(n+=i+o[d],i="&")}const c=i+""+t+"="+s;return a+"?"+n+c},le=(e,t)=>{let s=e.split("?")[0],n,o=[];const a=e.indexOf("?")!==-1?e.split("?")[1]:"";if(a!==""){o=a.split("&");for(let r=o.length-1;r>=0;r-=1)n=o[r].split("=")[0],n===t&&o.splice(r,1);o.length&&(s=s+"?"+o.join("&"))}return s},de=e=>e.split(" ").filter(s=>s!=="").length,D=(e="",t={})=>{const s={"&":"&","<":"<",">":">",'"':""","'":"'",...t};return e.replace(/[&<>"']/g,n=>s[n])},ue=(e="",t={})=>e?D(e,t).trim().split(/\n\n+/).map(n=>`<p>${n.replace(/\n/g,"<br>")}</p>`).join(""):"",he=async({host:e,apiKey:t})=>{const{default:s}=await M(async()=>{const{default:n}=await import("./meilisearch_chunk-Bu1_DSe1XTvt.js").then(o=>o.m);return{default:n}},[]);return new s({host:e,apiKey:t})},pe=(e,t,s,n)=>{window.dispatchEvent(new CustomEvent("risealert",{detail:{type:e,message:t,autoClose:s??e!=="error",timeClose:n}}))},me="signal is aborted",j=(e,t,s,n,o,a)=>{const r={type:e,message:t,autoClose:s??e!=="error",timeClose:n,details:o,customClasses:a};let i;try{i=JSON.parse(sessionStorage.getItem("enqueuedAlerts"))||[]}catch{i=[]}i.push(r),sessionStorage.setItem("enqueuedAlerts",JSON.stringify(i))},fe=(e,t={})=>{const{autoClose:s=!0,timeClose:n=7e3,customClasses:o}=t;window.dispatchEvent(new CustomEvent("risealert",{detail:{type:"points-usage",message:"",details:e,autoClose:s,timeClose:n,customClasses:o}}))},ge=(e,t={})=>{const{autoClose:s=!0,timeClose:n=7e3,customClasses:o}=t;j("points-usage","",s,n,e,o)},we=(e,t)=>{const s=document.createElement("div");s.style.width=`${e.offsetWidth}px`,s.style.whiteSpace="pre-wrap",s.className=`absolute -z-5 invisible ${t}`,s.innerHTML=e.value.replaceAll(` 2`,"<br> "),document.body.appendChild(s);const n=s.offsetHeight;return e.style.height=`${n}px`,s.remove(),n},ye=e=>e.replace(/-./g,t=>t[1].toUpperCase()),be=e=>e?e.replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/([A-Z]+)([A-Z][a-z\d]+)/g,"$1_$2").replace(/[-\s]+/g,"_").toLowerCase():"",ve=async(e,t,s)=>{const n=[];for(let o=0;o<e.length;o+=t)n.push(e.slice(o,o+t));for(const o of n)await s(o)},Ee=e=>{let t="/home";if(e&&e.location&&e.location.pathname){const{location:s}=e;!["/login","/register"].some(a=>s.pathname.includes(a))&&(t=s.pathname+s.search)}return t},xe=e=>e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","),Ae=({iso:e,locale:t,exchangeRate:s=1})=>{t=["pe","co","mx","ec","cl","ar"].includes(t)?`es-${t}`:void 0;const n=new Intl.NumberFormat(t,{style:"currency",currency:e,currencyDisplay:"symbol",minimumFractionDigits:2});return o=>(s&&(o=o*s),n.format(Math.round(o*100)/100))},Se=()=>Math.min(Math.max(parseInt(Math.random()*100),10),35).toString(36)+Math.random().toString(36).substring(2,15),ke=(e,t,s)=>{const n=Math.cos(s),o=Math.sin(s);return[e*n+t*o,-e*o+t*n]},Me=(e,t,s)=>{const n=Math.cos(s),o=Math.sin(s);return[e*n-t*o,e*o+t*n]},Ce=(e,t)=>{const[s,n,o,a]=e,[r,i,c,d]=t,h=Math.max(s,r),l=Math.max(n,i),p=Math.min(s+o,r+c)-h,m=Math.min(n+a,i+d)-l;return p<=0||m<=0?null:[h,l,p,m]},Ie=(e,t)=>{const s=e.indexOf(t);return s>-1?(e.splice(s,1),!0):!1},A=(e,t=new FormData,s="")=>(Object.entries(e).forEach(([n,o])=>{let a=n;s&&(a=n.match(/^\d+$/)?s:`${s}[${n}]`),o instanceof Object&&o.constructor===Object?A(o,t,a):o instanceof Array?o.forEach((r,i)=>{A({[i]:r},t,`${a}[]`)}):o!==void 0&&t.append(a,o)}),t),S=(e,t)=>{const n=(S.canvas||(S.canvas=document.createElement("canvas"))).getContext("2d");return n.font=t,n.measureText(e).width},F=["button:not(:disabled)","[href]:not(use)","input:not(:disabled)","select:not(:disabled)","textarea:not(:disabled)",'[tabindex]:not([tabindex="-1"])','[contenteditable]:not([contenteditable="false"])',"details > summary","iframe","audio[controls]","video[controls]"].join(", "),Oe=e=>{const t=new Set(e.querySelectorAll(F)),s={};return t.forEach(n=>{let o=!1;"checkVisibility"in e&&!n.checkVisibility()||n.closest("[inert]")?o=!0:n instanceof HTMLInputElement&&n.type==="radio"&&(s[n.name]?n.checked?(t.delete(s[n.name]),s[n.name]=n):o=!0:s[n.name]=n),o&&t.delete(n)}),Array.from(t)},Te=(e,t,s={})=>{e.dispatchEvent(new CustomEvent(t,{detail:s,bubbles:!0,cancelable:!0,composed:!0}))},Le=async(e,{removeDataUrlPrefix:t=!1}={})=>
2{if(typeof e=="string"){const s=await fetch(e);if(!s.ok)throw new k(s);e=await s.blob()}return new Promise((s,n)=>{const o=new FileReader;o.onload=()=>s(t?o.result.replace(/^data:.+;base64,/,""):o.result),o.onerror=n,o.readAsDataURL(e)})},$e=(e,t=[])=>{let s="";return t.length&&(s=`.${t.join(".")}`),`@${e}${s}`},H=20,Re=(e,t,s=H)=>{let n=s;const o=()=>{if(e.offsetHeight||n<=0)return t();n-=1,requestAnimationFrame(o)};o()},De=e=>{if("checkVisibility"in e)return e.checkVisibility();const t=e.getBoundingClientRect(),{width:s,height:n}=t,{innerWidth:o,innerHeight:a}=window,r=s>0&&n>0&&t.top>=0&&t.left>=0&&t.bottom<=a&&t.right<=o,i=window.getComputedStyle(e),c=i.display==="none"||i.visibility==="hidden";return r&&!c},je=()=>"randomUUID"in crypto?crypto.randomUUID():("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)),Fe=e=>{const t=[...e];for(let s=t.length-1;s>0;s--){const n=Math.floor(Math.random()*(s+1));[t[s],t[n]]=[t[n],t[s]]}return t},He=["nada","estudiante","ama-de-casa","colegio","aun-nada","soy-estudiante","magisterio","bachiller","licenciatura","licencistura","ninguna","ninguns","nose","no-se","primero-basico","segundo-basico","tercero-basico","primer-grado","segundo-grado","tercer-grado","barismo","chofer","secundaria","bachillerato","aun-no-se"],Pe=(e,{toBlob:t=!1,quality:s=1,timeout:n=1e4,frameTime:o=.1,crossOrigin:a="anonymous"}={})=>new Promise((r,i)=>{const c=document.createElement("video"),d=()=>{c.parentNode&&c.parentNode.removeChild(c)};c.preload="metadata",c.crossOrigin=a,c.muted=!0,c.style.display="none",document.body.appendChild(c);let h=!1;c.addEventListener("error",l=>{d(),i(new Error("Video loading failed"))}),c.addEventListener("loadedmetadata",()=>{c.currentTime=o}),c.addEventListener("seeked",()=>{if(!h){h=!0;try{const l=document.createElement("canvas"),p=l.getContext("2d");if(l.width=c.videoWidth,l.height=c.videoHeight,c.videoWidth===0||c.videoHeight===0){d(),i(new Error("Video has no video track or invalid dimensions"));return}if(p.drawImage(c,0,0,l.width,l.height),d(),t){l.toBlob(w=>{if(!w){i(new Error("Failed to create Blob from canvas"));return}r({dataURL:null,width:l.width,height:l.height,blob:w})},"image/jpeg",s);return}const m=l.toDataURL("image/jpeg",s);r({dataURL:m,width:l.width,height:l.height,blob:null})}catch(l){d(),i(new Error(`Frame capture failed: ${l.message}`))}}}),c.src=e,setTimeout(()=>{h||(d(),i(new Error("Timeout: Failed to capture frame within 10 seconds")))},n)}),P=e=>{const t=Object.prototype.toString,s=a=>t.call(a)==="[object Error]",n=new Set(["network error","Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Load failed","Network request failed","fetch failed","terminated"]);return e&&s(e)&&e.name==="TypeError"&&typeof e.message=="string"?e.message==="Load failed"?e.stack===void 0:n.has(e.message):!1},_e=()=>{const e=document.querySelector('meta[name="csrf-token"]')?.content;return e?{"X-CSRF-Token":e}:{}},Ue=e=>{let t=0;if(e.length===0)return t;for(let s=0;s<e.length;s++){const n=e.charCodeAt(s);t=(t<<5)-t+n,t|=0}return t},Be=async(e,t,s={})=>{const o={...{retryOnNetworkError:!0,retries:3,retryDelay:1e3,throwOnHTTPError:!0,reloadOnAuthError:!1},...s};let a=0;for(;a<=o.retries;)try{const r=await fetch(e,t);if(o.throwOnHTTPError&&!r.ok){if(o.reloadOnAuthError&&r.status===401){window.location.reload();return}throw new k(r)}return r}catch(r){if(o.retryOnNetworkError&&P(r)){if(a++,a>o.retries)throw r;await new Promise(i=>setTimeout(i,o.retryDelay))}else throw r}};export{ce as $,fe as A,z as B,C,Fe as D,Oe as E,Se as F,Be as G,Re as H,De as I,ne as J,se as K,Z as L,re as M,Le as N,X as O,Y as P,ae as Q,Ee as R,ye as S,J as T,oe as U,R as V,he as W,Q as X,ge as Y,le as Z,ve as _,$ as a,me as a0,de as a1,S as a2,ke as a3,Me as a4,Ce as a5,Ie as a6,pe as b,K as c,Te as d,q as e,E as f,Ue as g,je as h,Pe as i,P as j,_e as k,we as l,D as m,G as n,He as o,ee as p,te as q,$e as r,ue as s,be as t,W as u,Ae as v,j as w,xe as x,A as y,ie as z};
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.