Notification

We're currently experiencing high contact volumes. If you contact us, you may notice longer than normal wait times.

YouTube Researcher Program Application

This form will ask for information about:

(i) your research,

(ii) your research institution and affiliation,

(iii) your API Client, and

(iv) your API Client's access to and usage of YouTube API Services (current and proposed use, as applicable)

We will use the information you provide in accordance with our Privacy Policy and the Researcher Program Policy & Terms 

* Required field

Please select the option applicable *
Have there been any changes to the Research related details since your last application? (Example: Research proposal, publication date, field of research etc) *
General Information
About your organization as it relates to YouTube
Actively monitored email address for service announcements or contacts for further information.
Select the organization from the drop-down.
If your university is not listed, please select the option "Other" and enter it manually
Job Title *
Project Information
Reason for filling the form *
Researchers are granted quotas and access to the YouTube’s API systems and data for the period of their research, subject to periodic compliance audits. Quota and access to the program may be revoked following completion of research or publication, whichever is first.
Please provide a project proposal that includes: research problem to be solved, YouTube Data to be used, project timeline, key milestones and outcomes, and how YouTube can support your research in the future. Please include a link to your shared Google Doc OR copy and paste text in the field below. (1500 characters maximum)
Character count must be between 50-1500 characters.
Is your research affiliated or sponsored by government or non-government entity *

API Client Information

An "API Client" is, as defined in the YouTube API Developer Policies, any website or software application that accesses or uses the YouTube API Services and includes, without limitation, any and all software applications you use to access and collect YouTube data with the YouTube API Services

The project number is a series of digits that can be found alongside the Project ID in your Google Cloud Console. Please comma separate the project numbers without additional spaces
A project number must contain exclusively numeric values
Is this a publicly or privately available API Client? *
Please include similar data and interface as if a user was using the account.
Does your API Client commercialize YouTube Data? *
Does this API Client display data from, or provide features or services across, multiple platforms (ex: Facebook, Twitter, etc.)? *
For example, does this API Client display data obtained from YouTube beside or in conjunction with data from other sources?
Are you requesting additional quota? *
Are you requesting additional quota *
Quota Information
Only fill out and submit this section if you are nearing your allocated quota limit
Enter your project number as shown on Google Developer Console
Must be a numeric value
Enter your organization number as shown on Google Developer Console
Must be a numeric value
Provide a detailed breakdown :
- Expected growth and timelines
- Arithmetic calculations justifying the additional quota
- Daily usage pattern (total number of calls and peak QPS)
- Expected number of calls
Character count must be between 50-1500 characters.
Character count must be between 50-1500 characters.
Ex: decreased feature set, estimated change in usage, etc.
Character count must be between 50-1500 characters.
Note : Please upload one file smaller than 10MBMultiple file uploads and file size greater than 10 MB will result in an error during submission
Acknowledgement of API ToS and DP
I have read and agree to the YouTube API Services Terms of Service (including the Developer Policies and Google Privacy Policy) and my current and proposed access to, and use of, YouTube API Service(s) does and will comply with the YouTube API Services Terms of Service. *
If I provide a demo account and instructions on how Google can access my API Client, I understand and agree that Google is not bound to any terms of service or policies that applies to such account or access to my API Client. *
I have read and agree to the the Researcher Program Policy & Terms and agree and understand

(i) my acceptance by and participation in the YouTube Researcher Program is subject to the Researcher Program Policy & Terms and

(ii) my access to, and use of, YouTube API Service(s), including without limitation all data obtained by me through the YouTube API Service(s), does and will comply with the Researcher Program Policy and Terms.
*
The above facts are true to the best of my knowledge and I understand that should the above facts be found to be untrue, YouTube may terminate my API Client's access to the YouTube API Services as per YouTube's Terms of Service and Developer Policies *
https://myaccount.google.com/privacypolicy?hl=$0
Some account and system information will be sent to Google, and support calls and chats may be recorded. We will use this information to improve support quality and training, to help address technical issues, and to improve our products and services, subject to our Privacy Policy and Terms of Service. Translation services may be used in chats and email.
Additional info
Search
Clear search
Close search
Main menu
16093452069665730746
true
Search Help Center
true
true
true
true
true
59
'); a=ln("data:text/html;charset=UTF-8;base64,"+btoa(c.toString()));b.srcdoc=Bn(c)}else{a=new Map([["nonce",a]]);c=mn(Z3a).toString();var e=c.split(/[?#]/),f=/[?]/.test(c)?"?"+e[1]:"";a=l3a(e[0],f,/[#]/.test(c)?"#"+(f?e[2]:e[1]):"",a)}b.src=mn(a).toString();b.style.cssText="height: 0; left: 0; position: absolute; top: 0; width: 0;";b.setAttribute("aria-hidden","true");return b} ;var D0={BU:!1},E0;function F0(a){this.options=a=a===void 0?D0:a;d4a(this.options)||typeof navigator.msSaveOrOpenBlob==="function"||(this.sandbox=new C0)} F0.download=function(a,b,c,e){c=c===void 0?"":c;e=e===void 0?D0:e;return Ya(function(f){if(f.o==1)return f.yield(e4a(a,b,c,e),2);if(f.ma)return f.return();E0||(E0=new F0,E0.init());return f.yield(f4a(E0,a,b,c),0)})}; F0.prototype.init=function(){var a=this;return Ya(function(b){return a.sandbox==null?b.return():b.yield(a.sandbox.load(),0)})}; F0.prototype.download=function(a,b,c){c=c===void 0?"":c;var e=this;return Ya(function(f){return f.o==1?f.yield(e4a(a,b,c,e.options),2):f.ma?f.return():f.yield(f4a(e,a,b,c),0)})}; function f4a(a,b,c,e){e=e===void 0?"":e;var f,h;return Ya(function(k){switch(k.o){case 1:f=b instanceof Blob?b:new Blob([b],{type:e});if(typeof navigator.msSaveOrOpenBlob!=="function"){k.Na(2);break}navigator.msSaveOrOpenBlob(f,c);return k.yield(G0(),3);case 3:return k.return();case 2:if(!hc()||Mb(s3a(),16)>=0||!bc()&&(!Vb("iPad")&&!Vb("iPhone")||ac()||bc()||(Wb()?0:Vb("Coast"))||$b()||!Vb("AppleWebKit"))){k.Na(4);break}h=new FileReader;h.onload=function(){var n=qp("A"),p=un(String(h.result));wn(n, p);n.download=c;n.click()}; h.readAsDataURL(f);return k.yield(G0(),5);case 5:return k.return();case 4:return a.sandbox==null&&(a.sandbox=new C0,a.sandbox.load()),k.yield(a.sandbox.exec('var url=URL.createObjectURL(blob);var a=document.createElement("a");if(!("download" in a)){throw new Error("Downloading not supported on this browser");}a.href=url;a.download=filename;document.body.appendChild(a);a.click();setTimeout(function(){document.body.removeChild(a);URL.revokeObjectURL(url);},250);',[{name:"blob",value:f,transfer:!1}, {name:"filename",value:c,transfer:!1}]),6);case 6:return k.yield(G0(),0)}})} function e4a(a,b,c,e){c=c===void 0?"":c;e=e===void 0?D0:e;var f;return Ya(function(h){switch(h.o){case 1:if(!d4a(e))return h.return(!1);Pa(h,2);return h.yield(g4a(a,b,c),4);case 4:Qa(h,3);break;case 2:f=Sa(h);if(f instanceof DOMException&&f.name==="SecurityError")return h.return(!1);throw f;case 3:return h.return(!0)}})} function d4a(a){a=a===void 0?D0:a;return a.BU&&!!window.showSaveFilePicker} function g4a(a,b,c){c=c===void 0?"":c;var e,f,h,k;return Ya(function(n){switch(n.o){case 1:var p=c,r={suggestedName:b},t;(t=b.match(/\..+$/))?(t=t[0],t=t.length>16?null:t):t=null;if(t){p=p.replace(/;[^]*/,"");var w={};r.types=[{description:"*"+t,accept:(w[/^\s*[a-zA-Z0-9+._-]+\/[a-zA-Z0-9+._-]+?\s*$/.test(p)?p:"*/*"]=[t],w)}]}e=r;Pa(n,2);return n.yield(window.showSaveFilePicker(e),4);case 4:f=n.ma;Qa(n,3);break;case 2:h=Sa(n);if(h instanceof DOMException&&h.name==="AbortError")return n.return();throw h; case 3:return n.yield(f.createWritable(),5);case 5:return k=n.ma,n.ua=0,n.oa=6,n.yield(k.write(a),6);case 6:return Ta(n),n.yield(k.close(),9);case 9:Va(n,7);break;case 7:return n.return()}})} F0.prototype.dispose=function(){this.sandbox!=null&&this.sandbox.dispose()}; function G0(){return new Promise(function(a){setTimeout(a,500)})} tb("SafeDownloader",F0);function h4a(a,b,c){var e=this;this.element=a;this.model=b;this.flags=c;this.validateOnly=mo("validate_only")==="true";this.page=1;this.fields=[];this.Ra=[];this.Ha=new Map;this.bubbles=[];this.Pa=[];this.caseId=null;this.ya=new Map;this.Ec=new Map;this.c2c=null;this.listeners=[];this.qb=0;this.Ka=!0;this.o=null;this.oa=this.Bb=this.Ma=!1;this.va=this.Ia=this.recaptcha=null;this.ld=[];this.gcmRegistrationId="";this.productSpecificData={};this.ma=[];this.Fa=[];this.Pd="";this.kb=[];this.parentCaseName= "";this.wc=[];this.ub=!1;this.Qa=[];this.ua=[];this.targetVerified=this.Ua=!1;this.qa=[];this.chatPoolId="";this.Ld=this.model.show_recaptcha;this.Rb=this.querySelector(".form-screenshot");this.Mt=new Map;this.submissionChannel=0;this.Ca=new gD("HelpcenterFields/Form");this.submitId=io;this.dispatchEvent("startinginitialization");a=this.querySelectorAll(".field");for(b=0;b0&&h.parents.push(p)}}}); I0(this);this.dispatchEvent("fieldsinitialized");this.Ld&&j4a(this);k4a(this);J0(this,!1);l4a(this);m4a(this);n4a(this);this.prepopulateFields();this.element.addEventListener("submit",function(h){h.preventDefault();e.submitForm()}); this.model.c2c_configured&&(this.c2c=(0,window.sc_initFormClickToCall)(this));this.model.is_chat_form&&!this.shouldSubmitToCasesV2()&&K0(this);o4a(this);this.dispatchEvent("validatorinitialized");this.dispatchEvent("initializationcomplete");L0(20);if(a=this.element.getAttribute("data-form-sc-frd-values"))for(a=u(JSON.parse(a)),b=a.next();!b.done;b=a.next())b=new Yz(new tm(b.value)),this.kb.push(bA(b)),this.ma.push(sP(b));a=u(this.fields);for(b=a.next();!b.done;b=a.next())if(b=b.value,c=b.getFrdIdentifier()){this.Ra.push(b); var f=this.Ha.get(c);f?f.push(b):this.Ha.set(c,[b])}p4a(this,this.element.getAttribute("data-helpcenter-frd-fields-confg"));q4a(this)} l=h4a.prototype;l.querySelector=function(a){return this.element.querySelector(a)}; function M0(a,b){return a.element.querySelector(b)} l.querySelectorAll=function(a){return this.element.querySelectorAll(a)}; function H0(a,b){for(var c=0;c=a.model.total_pages;jo(a.Rb,"hidden",!b);b?a.va.activate():a.va.deactivate()}} function k4a(a){if(window.sc_createSpinner){a.o=window.sc_createSpinner("small");jo(a.o.getElement(),"submit-spin",!0);var b=a.element.querySelector(".submit-button");b&&b.parentNode.appendChild(a.o.getElement())}} function J0(a,b){var c=a.page>=a.model.total_pages,e=a.querySelector(".submit-button");e&&(jo(e,"hidden",!c),e.disabled=!a.Ka||b);a.oa&&jo(a.querySelector(".recaptcha"),"hidden",!c);if(c=a.querySelector(".previous-button"))jo(c,"hidden",a.page===1),c.disabled=b;if(c=a.querySelector(".next-button"))jo(c,"hidden",a.page===a.model.total_pages),c.disabled=!a.Ka||b;a.o&&(b?a.o.show():a.o.hide())} function l4a(a){var b=a.querySelector(".submit-button");b&&(!z().li&&a.model.is_chat_form?(b.disabled=!0,M0(a,".notification-area").textContent=a.model.strings.CHAT_UNAVAILABLE):b.addEventListener("click",a.submitForm.bind(a)));(b=a.querySelector(".previous-button"))&&b.addEventListener("click",function(){r4a(a,a.page-1)&&(a.dispatchEvent("previouspage"),L0(7))}); (b=a.querySelector(".next-button"))&&b.addEventListener("click",a.submitForm.bind(a))} function m4a(a){a=a.element.getElementsByTagName("textarea");for(var b=0;b0)for(c.is_assistive=!0,c.assistive_flow_results=[],k=u(a.ua),n=k.next();!n.done;n=k.next())p=n.value,r=p.answer,p.translatedAnswer&&(r+=" ***** "+p.translatedAnswer),c.header.push({name:p.questionId,value:r}),c.content+=p.questionId+": "+r+"\n",c.assistive_flow_results.push({question:p.questionId,answer:r,prediction_id:p.predictionId,recommendation_id:p.recommendationId});t=a.getFieldValues();w=z4a(a,!0);E=new Map(a.getHcfNameScFrdValueMap().entries()); a.qa.map(function(lb){return lb.model}).forEach(function(lb){lb.isValid()&&E.set(lb.getName(),sP(lb.Ed()))}); for(la=0;la0&&(c.product_specific_data=Ua);a.Ua&&(c.target_submission_details={used_target_selector:!0,is_target_selector_verified:a.targetVerified});return Fb.return(c)})} function u4a(a,b){var c=R0(a,1);wo({httpMethod:"POST",endpoint:"escalationavailability",params:{v:"1",psd:JSON.stringify(a.productSpecificData)},requestBody:a.shouldSubmitToCasesV2()?c.serialize():"",onLoadCallback:function(e){var f=null;try{f=JSON.parse(e.responseText)}catch(r){f={}}var h,k,n,p;((h=f.chat_channel)==null?0:(k=h.common_options)==null?0:k.available_to_user)||((n=f.hangout_channel)==null?0:(p=n.common_options)==null?0:p.available_to_user)?v4a(a,b):(a.o&&a.o.hide(),K0(a))}, Hd:function(e){window.sc_trackStatsEvent(52,21,"escalationavailability: - "+e.statusText);a.o&&a.o.hide();if(e=a.querySelector(".submit-button"))e.disabled=!1;P0(a,a.model.strings.BACKEND_ERROR);a.dispatchEvent("validationend")}})} l.getChatAvailability=function(){var a=this;return Ya(function(b){return b.return(A4a(a))})}; function w4a(a,b){var c,e,f,h,k,n;Ya(function(p){if(p.o==1)return c={contact_flow:b},a.oa?(c.recaptcha_response=a.Ia.getResponse(),p.Na(2)):a.Bb?p.yield(a.recaptcha.getResponse(),4):p.Na(2);p.o!=2&&(c.recaptcha_response_v3=p.ma);a.c2c.populateCallParameters(c);a.shouldSubmitToCasesV2()&&(e={},f=R0(a,5),Kh(f,2)&&(e.form_id=eh(f,2)),dh(f,4)!=null&&(e.redwood_form_id=dh(f,4)),e.channel=[5],ag(f,OP,7)?e.sc_frd_values=q3a(new MQ(f.getScFrdValues())):ag(f,im,1)&&(e.frd_values=r3a(new MQ(Lg(f,im,1)))),c.escalation= e);h={v:"1",psd:JSON.stringify(a.productSpecificData)};(k=mo("test"))&&(h.test=k);(n=mo("cases2"))&&(h.cases2=n);b.submit_id=a.submitId;wo({httpMethod:"POST",endpoint:"createcall",params:h,requestBody:c,onLoadCallback:function(r){var t=null;try{t=JSON.parse(r.responseText)}catch(w){}S0(a,{type:"c2c",response:t})}, Hd:function(){S0(a,{type:"c2c",response:!1})}}); Oa(p)})} function v4a(a,b){var c,e,f,h;Ya(function(k){if(k.o==1)return c={v:"0",psd:JSON.stringify(a.productSpecificData)},(e=mo("test"))&&(c.test=e),(f=mo("cases2"))&&(c.cases2=f),b.submit_id=a.submitId,h={common_params:{context_params:{view_id:z().vid}},resource:b},a.oa?(h.recaptcha_response=a.Ia.getResponse(),k.Na(2)):a.Bb?k.yield(a.recaptcha.getResponse(),4):k.Na(2);k.o!=2&&(h.recaptcha_response_v3=k.ma);a.model.is_chat_form&&(a.shouldSubmitToCasesV2()||f)&&(a.Ma=!0);wo({httpMethod:"POST",endpoint:"cufinsert", params:c,requestBody:h,onLoadCallback:function(n){var p=null;try{p=JSON.parse(n.responseText)}catch(r){S0(a,{type:"cuf",response:n.responseText});return}S0(a,{type:"cuf",response:p})}, Hd:function(){S0(a,{type:"cuf",response:!1})}, Jr:!0});Oa(k)})} function Q0(a){if(!a.model.fix_multi_page)return!1;var b=!1;H0(a,function(c){Number(c.fk())>a.fk()&&c.hasSatisfiedDependencies()&&(b=!0)}); return b} l.getSubjectFieldId=function(){return M0(this,'input[name="subject-line-field-id"]').value}; l.getBodyFieldId=function(){return M0(this,'input[name="body-text-field-id"]').value}; function z4a(a,b){var c=[];H0(a,function(p){if(p.hasSatisfiedDependencies())for(var r=p.getValues(b),t=0;t0){P0(a,G4a(e),e);a.dispatchEvent("validationend");break a}H4a(a,e)}else P0(a,a.model.strings.BACKEND_ERROR,e)}else P0(a,a.model.strings.CONNECTION_ERROR);a.dispatchEvent("validationend")}else{b=b.response;e=typeof b==="object"?b==null?void 0:(c=b.result)==null?void 0:c[0]:void 0;c=!1;if(b&&typeof b==="object")if(!b.error&&b.result&&e&&e.indexOf("PERM_FAILURE")!==0)if(e==="ACCEPTED"||e==="SUCCESS"||e==="RETRIED")if(Q0(a))T0(a);else{c=mo("cases2");if(c=a.model.is_chat_form&&(a.shouldSubmitToCasesV2()|| c))a.chatPoolId=b.chat_pool_id||"",a.model.chat_support_request_id=b.chat_support_request_id||"";a.dispatchEvent("validated");b.case_id&&(a.caseId=b.case_id,E4a(a));a.validateOnly||(!c||O0()||z().rs===79&&a.flags.enableChatMoleMigration||((0,window.sc_ensureSubscribed)(),a.dispatchEvent("chatrequested")),F4a(a));U0(!0);c=!0}else H4a(a,b);else P0(a,G4a(b),b);else P0(a,a.model.strings.CONNECTION_ERROR);b=mo("cases2");!c&&a.model.is_chat_form&&(a.shouldSubmitToCasesV2()||b)&&(a.Ma=!1);a.dispatchEvent("validationend")}} function I4a(a,b){switch(a){case 22:switch(b){case 6:return"To work with a Support Specialist, ask a parent or guardian to contact Support for you.";case 4:case 3:return"Refresh this page and try again. Sorry, there was a problem with the form.";case 5:return"Sorry, no contact options are available.";case 2:return"To access support, sign in to a Google account based in a supported region, or go to a supported location.";default:return"Please try again later."}case 21:switch(b){case 1:case 2:return"Please try again later. All specialists are currently busy."; case 3:return"To work with a Support Specialist, use the chat session you have open.";case 4:case 5:return"You\u2019re already in line to work with a specialist.";case 7:case 8:return"Please try again during support hours.";case 6:case 9:case 10:case 11:case 12:return"Refresh this page and try again. Sorry, there was a problem with the form.";case 13:return"Try again later. Sorry, there was a problem with the form.";default:return"Please try again later."}default:return"Please try again later."}} function G4a(a){var b;return((b=a.submit_error)==null?0:b.length)?(a=a.submit_error[0],I4a(a.code,a.sub_code)):""} function J4a(a,b){(a=a.querySelector(".recaptcha"))&&jo(a,"invalid",b)} function H4a(a,b){for(var c=!1,e=a.model.strings.VALIDATION_NOTE,f=u(b.result||[]),h=f.next();!h.done;h=f.next())if(h=h.value.split(":"),h[0]==="REQUIRED_FORM_FRD_VALUE"){if(h=K4a(a,h[1],h[2]))h.isVisible()?JQ(h,!0,a.model.strings.REQUIRED_FIELD):e=a.model.strings.REQUIRED_FIELD+": "+h.model.getName(),c=!0}else{var k=a.qf(h[1]);if(h[0]==="REQUIRED_RECAPTCHA")a.page===a.model.total_pages&&(e=a,e.model.fallback_to_recaptcha_v2&&(e.oa||(jo(e.querySelector(".g-recaptcha"),"hidden",!0),y4a(e)),J4a(e,!0)), c=!0,e=a.model.strings.REQUIRED_RECAPTCHA_NOTIFICATION);else if(h[0]==="CHAT_UNAVAILABLE")K0(a),c=!0;else if(k&&k.isVisible()){if(c=k.getType()==="PHONE_NUMBER"&&a.c2c)a:{c=a;var n=k.getValues(!0)[0];if(n&&n.value){n=JSON.parse(n.value);var p;if(p=n){n=n.country;p=[];var r=c.model.phone_type_required_countries;r&&(p=r.split(","));p=p.indexOf(n)!==-1}if(p){z0(k,!1,c.model.strings.PHONE_TYPE_VALIDATION,!0);c=!0;break a}}c=!1}c||z0(k,!1,a.model.strings[h[0]]||a.model.strings.DEFAULT);c=!0}}c?(N0(a,"invalid", e+L4a(a,b)),a.dispatchEvent("invalidated"),L0(17)):T0(a)} function D4a(a){var b=a.querySelector(".notification-area");b&&(jo(b,"error",!1),jo(b,"invalid",!1),b.textContent="");H0(a,function(e){z0(e,!0)}); b=u(a.qa);for(var c=b.next();!c.done;c=b.next())JQ(c.value,!1);a.oa&&J4a(a,!1)} function N0(a,b,c){var e=a.querySelector(".notification-area");e&&(jo(e,b,!0),e.textContent=c,b==="invalid"?(e.setAttribute("role","alert"),(b=a.element.querySelector('[aria-invalid="true"]'))&&b.focus(),(a=a.element.querySelector(".invalid .validation-message"))&&a.setAttribute("aria-live","polite")):e.setAttribute("role","status"))} l.getStatusMessage=function(){var a;return((a=this.querySelector(".notification-area"))==null?void 0:a.innerText)||""}; l.setErrorMessage=function(a){N0(this,"error",a)}; function P0(a,b,c){a.setErrorMessage(b+L4a(a,c));a.dispatchEvent("error");U0(!1)} function L4a(a,b){if(!b||!a.model.show_debug_info)return"";a=["\n\nDebug info for Googlers:"];var c;((c=b.submit_error)==null?0:c.length)&&a.push.apply(a,["\nSubmit Errors:"].concat(Aa(b.submit_error.map(function(f){return JSON.stringify(f)})))); var e;((e=b.result)==null?0:e.length)&&a.push.apply(a,["\nResult:"].concat(Aa(b.result)));return a.join("\n")} function T0(a){r4a(a,a.page+1);a.dispatchEvent("nextpage");L0(6)} function F4a(a){a.dispatchEvent("submitstart");if(!a.model.is_chat_form||a.ua.length>0)M4a(a),N4a(a);if(a.model.is_chat_form){var b=a.querySelector(".submit-button");b&&(b.disabled=!0);window.sc_enableFormSubmissionDetailsAndDownloadUi&&(O4a(a),P4a(a,M0(a,".submission-details-chat__content")),Q4a(a),b=M0(a,".submission-details-chat__download-button"),b.addEventListener("click",function(){R4a(a)}),M0(a,".submission-details-chat__edit-button").addEventListener("click",function(){S4a(a)}),window.sc_trackStatsEvent(182, 4,z().pid),jo(M0(a,".submission-details-chat"),"hidden",!1),b.focus()); M0(a,".notification-area").textContent=a.model.strings.CHAT_CREATING;a.dispatchEvent("chatrequested")}L0(22);a.dispatchEvent("submitend");a.dispatchEvent("cleancomplete");So("FormSurveysFeature__enable_hats")==="true"&&x4a()} function M4a(a){for(var b=a.model.is_chat_form&&a.ua.length>0,c=0;c0&&a.Ec.set(c.getId(),e)}b=u(a.qa);for(c=b.next();!c.done;c=b.next())c=c.value,e=c.Vg(),c.isVisible()&&e&&a.ya.set(e,c.getDisplayValues())} function P4a(a,b){a=u(a.ya.entries());for(var c=a.next();!c.done;c=a.next()){var e=u(c.value);c=e.next().value;var f=e.next().value;e=c;c=document.createElement("div");var h=document.createElement("span");c.appendChild(h);h.innerText=e;if(f)for(h.innerText+=": ",jo(c,"multi-value",f.length>1),e=u(f),f=e.next();!f.done;f=e.next())f=f.value,h=document.createElement("span"),jo(h,"submission-value",!0),h.innerText=f,c.appendChild(h);b.appendChild(c)}} function R4a(a){for(var b="",c=u(a.ya.entries()),e=c.next();!e.done;e=c.next()){var f=u(e.value);e=f.next().value;f=f.next().value;b+=e;if(f)for(b+=":",e=u(f),f=e.next();!f.done;f=e.next())b+="\n"+f.value;b+="\n\n"}var h;c=((h=a.caseId)!=null?h:a.getId())+".txt";F0.download(b,c,"text/plain");window.sc_trackStatsEvent(182,47,z().pid);To("contact_form_submission_download")} function S4a(a){var b=new URLSearchParams;a=u(a.Ec.entries());for(var c=a.next();!c.done;c=a.next()){var e=u(c.value);c=e.next().value;e=e.next().value;e=u(e);for(var f=e.next();!f.done;f=e.next())b.append("pcff",c+":"+f.value)}To("contact_form_submission_edit");window.sc_trackStatsEvent(182,24,z().pid);b=new URL(""+window.location.origin+window.location.pathname+"?"+b);Ho(b.toString())} function U0(a){wo({httpMethod:"POST",endpoint:"cufz",requestBody:{success:a,page_view_id:z().pvid}})} function K4a(a,b,c){return b&&c?a.qa.find(function(e){return tP(e.model.Ed(),nP(oP(new Yz,+b),+b).rd(+c))}):null} l.qf=function(a){var b=null;H0(this,function(c){var e=c.cidSelector&&c.getElement().querySelector(".cid-selector");return c.getId()===a&&c.getType()!=="EXTERNAL_SOURCE"||e!==null&&e.getAttribute("id")===a?(b=c,!1):!0}); return b}; function r4a(a,b){if(b===a.page||b<1||b>a.model.total_pages)return!1;a.page=b;I0(a);J0(a,!1);return!0} function L0(a,b){window.sc_trackStatsEvent(b===void 0?21:b,a,z().pid)} function T4a(a,b){var c=R0(a,b),e=a.productSpecificData;e.country_code=a.element.querySelector('.additional-request-data input[name="country_code"]').value;return new Promise(function(f,h){wo({httpMethod:"POST",endpoint:"escalationavailability",params:{v:1,psd:JSON.stringify(e)},requestBody:c.serialize(),onLoadCallback:function(k){try{f(JSON.parse(k.responseText))}catch(n){h(Error("Could not parse escalationavailability response"))}}, Hd:function(){h(Error("escalationavailability endpoint returned an error"))}, Jr:!0})})} function R0(a,b){var c=new LQ,e=a.getId();Fh(c,2,e);e=Number(a.getRedwoodId());Dh(c,4,e);xg(c,3,[b],oe);if(a.selectedSymptomFrdValues){b=[];e=u(a.selectedSymptomFrdValues);for(var f=e.next();!f.done;f=e.next()){var h=void 0;b.push.apply(b,Aa((h=pP(f.value))!=null?h:[]))}a=oNa(QQ(OQ(new MQ,NQ(a.selectedSymptomFrdValues)).Vd(a.selectedSymptomFrdValues.Ch()),[qP(nP(oP(new Yz,8000072),8000072).rd(15),b)]));Pg(c,OP,7,a)}return c} l.getEscalationChannelAvailabilityInformation=function(a){var b=this,c,e,f,h,k,n,p,r,t;return Ya(function(w){if(w.o==1)return w.yield(T4a(b,a),2);if(c=w.ma)switch(a){case 1:return w.return((f=(e=c.chat_channel)==null?void 0:e.common_options)!=null?f:null);case 3:return w.return((n=(h=c)==null?void 0:(k=h.email_channel)==null?void 0:k.common_options)!=null?n:null);case 5:return w.return((t=(p=c)==null?void 0:(r=p.c2c_channel)==null?void 0:r.common_options)!=null?t:null)}return w.return(null)})}; function A4a(a){var b,c,e;return Ya(function(f){return f.o==1?f.yield(T4a(a,1),2):(b=f.ma)?f.return(((c=b.chat_channel)==null?void 0:(e=c.common_options)==null?void 0:e.open_now)==="CS_OPEN"):f.return(!1)})} function o4a(a){var b=a.querySelector(".contact-form__gdpr-dialog");if(b){var c=function(e){var f=this.Fb().strings,h=this.Fb().style_params,k=this.Fb().gdpr_privacy_policy_url,n=z().lang,p={};f=new mD(z().lang,(p["gdpr_dialog.trigger_needing_privacy_policy_url"]=f.GDPR_DIALOG_TRIGGER,p["gdpr_dialog.title"]=f.GDPR_DIALOG_TITLE,p["gdpr_dialog.ok"]=f.GDPR_DIALOG_OK,p));var r=new SQ({Oa:f,locale:n,privacyPolicyUrl:k,rp:h?{"font-family":h.font_family.title}:void 0,En:h?{"font-family":h.font_family.body}: void 0,Jn:h?{"font-weight":String(h.strong_font_weight)}:void 0});Zp(e,function(){r.render()}); return r}.call(a,b); sNa(c,function(){c.data=new Map;c.Ja();for(var e=u(a.getFieldValues()),f=e.next();!f.done;f=e.next())f=f.value,f.type!=="HIDDEN"&&f.type!=="FROM_EMAIL_ADDRESS_HIDDEN"&&f.type!=="ADDITIONAL_DATA"||!f.value||TQ(c,f.name,f.value);e=u(Object.keys(a.productSpecificData));for(f=e.next();!f.done;f=e.next())f=f.value,TQ(c,f,a.productSpecificData[f]);a.gcmRegistrationId&&TQ(c,"GCM",a.gcmRegistrationId)})}} function i4a(a,b){b.addEventListener("uploadstart",function(){++a.qb}); b.addEventListener("uploadend",function(){--a.qb;Wo(a.element,"uploadend")})} function K0(a){if(!a.Ma){var b=a.querySelector(".submit-button");b&&(b.disabled=!0);b=M0(a,".notification-area");jo(b,"invalid",!0);b.textContent=a.model.strings.CHAT_UNAVAILABLE}} l.getId=function(){return this.element.getAttribute("id")}; l.getRedwoodId=function(){return this.element.dataset.contactFormRedwoodId}; l.getContactType=function(){return this.model.contact_type}; l.shouldSubmitToCasesV2=function(){return this.model.should_submit_to_cases_v2}; l.getTitle=function(){var a=this.element.querySelector(".contact-form__title");return a?a.textContent:""}; l.Fb=function(){return this.model}; l.getElement=function(){return this.element}; l.getCaseId=function(){return this.caseId}; l.getChatPoolId=function(){return this.chatPoolId}; l.getChatSupportRequestId=function(){return this.model.chat_support_request_id||""}; l.yP=function(){var a=[];H0(this,function(b){a.push(U4a(b))}); Array.prototype.push.apply(a,B4a(this));return a}; function U4a(a){return{getValues:a.getValues.bind(a),getType:a.getType.bind(a),isVisible:a.isVisible.bind(a),isConditional:a.isConditional.bind(a),hasSatisfiedDependencies:a.hasSatisfiedDependencies.bind(a),getId:a.getId.bind(a),getDisplayName:a.getDisplayName.bind(a),getFrdV1Identifier:a.getFrdV1Identifier.bind(a),getFrdV2Identifier:a.getFrdV2Identifier.bind(a),getFrdIdentifier:a.getFrdIdentifier.bind(a),getFrdContext:a.getFrdContext.bind(a),isCasesTarget:a.isCasesTarget.bind(a),setValues:a.setValues.bind(a), getElement:a.getElement.bind(a),targetVerified:a.targetVerified.bind(a),setTargetVerified:a.setTargetVerified.bind(a),hide:a.hide.bind(a)}} l.zP=function(){var a=[];H0(this,function(b){b.isVisible()&&a.push(U4a(b))}); return a}; l.setValidateOnly=function(a){this.validateOnly=a}; l.listen=function(a,b,c,e){this.listeners.push({type:a,listener:b,scope:e})}; l.unlisten=function(a,b,c,e){for(c=0;c0&&!a.ub;)a.Qa.shift()()} l.gt=function(){var a=this;if(NP(W0(this))){var b=document.activeElement;X0(this,!0);var c=new dQ;W4a(this,c);wo({httpMethod:"POST",endpoint:"getavailablevaluesforgraph",params:{v:"1"},requestBody:c.serialize(),onLoadCallback:function(e){try{for(var f=nMa(e.responseText),h=u(Ng(f,eQ,2,mg())),k=h.next();!k.done;k=h.next()){var n=Lg(k.value,Wl,1),p=n.getFrdContext(),r=p?fh(p,2):null,t=a.Ha.get(B0(n));if(t)for(var w=u(t),E=w.next();!E.done;E=w.next()){var la=E.value,pa=fh(W3a(la),2);if(!(r&&pa&&r!== pa||!x0(la))){var ta=Nl(Pl(Zl(n)),Nd);switch(la.getType()){case "CHECKBOX":case "RADIOBUTTON":for(var za=u(la.querySelectorAll(".list-item")),Ca=za.next();!Ca.done;Ca=za.next()){var Ia=Ca.value,Na=ta.indexOf(Ia.querySelector("input").value)===-1;jo(Ia,"hidden-by-vrg",Na)}break;case "DROPDOWN":for(var Ra=u(la.querySelectorAll("option")),Ua=Ra.next();!Ua.done;Ua=Ra.next()){var db=Ua.value;if(db!==la.querySelector("option")){var xb=ta.indexOf(db.value)===-1;jo(db,"hidden-by-vrg",xb)}}la.element.querySelector("select").dispatchEvent(new Event("selectvrgupdate"))}}}}}catch(Jb){}X0(a, !1);b.focus();V4a(a)}, Hd:function(){X0(a,!1);b.focus();V4a(a)}})}}; function X0(a,b){a.ub=b;a=u(a.Ra);for(var c=a.next();!c.done;c=a.next())c=c.value,x0(c)&&Y3a(c,b)} function W4a(a,b){var c=W0(a);c=NP(c);kMa(b,yh(c,1));lMa(b,zh(c,2));c=[];for(var e=[],f=!1,h=u(a.Ra),k=h.next();!k.done;k=h.next()){k=k.value;if(x0(k)){var n=k.getFrdIdentifier();n&&c.push(n)}if(v0(k)&&k.hasSatisfiedDependencies()){n=[];for(var p=u(k.getValues()),r=p.next();!r.done;r=p.next())n.push(r.value.value);n.length!==0&&(p=new Ol,k.getType()==="HIDDEN"?X4a(X3a(k),n[0],p):k.getFrdIdentifier()===8000001?p.hh((new Hl).Dg(n.map(function(w){return Number(w)||0}))):Rl(p,(new Ml).Dg(n)),n=$l(new Wl, p),p=W3a(k),(r=Ah(p,2))&&Xl(n,El(new Dl,Ah(p,1)).rd(r)),(k=k.getFrdV2Identifier())&&Yl(n,k),e.push(n),!f&&B0(n)===8000072&&(f=!0))}}if(window.sc_filter_promoted_by_selected_symptom&&!f){var t; h=(t=a.selectedSymptomFrdValues)==null?void 0:NQ(t);t=Wg(b,2);if(a.selectedSymptomFrdValues&&h&&t&&h===t){t=u(a.kb);for(h=t.next();!h.done;h=t.next())if(B0(h.value)===8000072){f=!0;break}if(!f){f=[];t=u(a.selectedSymptomFrdValues);for(h=t.next();!h.done;h=t.next())k=void 0,f.push.apply(f,Aa((k=pP(h.value))!=null?k:[]));e.push(bA(qP(nP(oP(new Yz,8000072),8000072).rd(15),f)))}}}xg(b,3,c,oe);n3a(b,a.kb.concat(e));Hh(b,5,a.model.content_publish_state)} function X4a(a,b,c){switch(a){case 1:c.hh((new Hl).Dg([Number(b)]));break;case 2:case 5:c.Cg((new Ml).Dg([b]));break;case 3:Tl(c,Vba(new Gl,[Number(b)]));break;case 4:a=b.split(",");Rl(c,(new Ml).Dg(a));break;case 9:c.Lh(b==="true");break;case 8:a=b.split(",").map(function(e){return Number(e)}); c.Wu(Ll(new Jl,[(new Hl).Dg(a)]));break;case 11:case 6:case 7:case 10:Vl(c,(new Fl).Dg([b]))}} function W0(a){a=JSON.parse(a.element.getAttribute("data-form-service-vrg"));return new MP(a)} l.getServiceVrgTaxonomyId=function(){var a=NP(W0(this));return a?Wg(a,1):null}; l.getServiceVrgTaxonomyView=function(){var a=NP(W0(this));return a?eh(a,2):null}; l.setSupportJourneyId=function(a){this.submitId=a}; function E4a(a){window.sc_log&&window.sc_log("Form","INFO","Case ID: "+a.caseId)} l.setIncludesTargetSelector=function(a){this.Ua=a}; l.setTargetVerified=function(a){this.targetVerified=a}; function p4a(a,b){var c,e,f,h,k,n,p,r,t;Ya(function(w){if(w.o==1){if(!b)return w.return();c=new bQ(JSON.parse(b));a.Pd=(e=lh(c,7))!=null?e:"";a.Pd&&window.sc_log&&window.sc_log("Helpcenter Field","INFO","Form Helpcenter Fields User-based FRD Value Lookup EventID: "+a.Pd);return w.yield(KQ({helpCenterFrdFieldsConfg:c,locale:z().lang,neoTaxonomy:cQ(),placements:[a.Ps(1),a.Ps(2)],Nu:"*"}),2)}f=w.ma;h=a.getScFrdValues().map(function(E){return new Yz(E)}); k=u(a.Ha.keys());for(n=k.next();!n.done;n=k.next())p=n.value,h.push(oP(new Yz,p));r=a.getHcfNameScFrdValueMap();t=f.Sk;Y4a(a,t,2,h,r,".cf div.helpcenter-fields-container.top");Y4a(a,t,1,h,r,".cf div.helpcenter-fields-container.bottom");xP(a.Ca,a.qa.concat(f.Cq).map(function(E){return E.model})); Oa(w)})} l.Ps=function(a){var b=new AP,c=new zP,e=this.getContactType();Bg(c,3,yP,pe(e));Hh(c,2,a);Sg(b,1,zP,c);c=new zP;e=this.getRedwoodId();Bg(c,1,yP,Ve(e));Hh(c,2,a);Sg(b,1,zP,c);a=new FP;Qg(a,1,EP,b);return a}; function Y4a(a,b,c,e,f,h){if(h=a.element.querySelector(h)){var k=b.filter(function(n){if(n.model.placements.length||e.some(function(la){return tP(la,n.model.Ed())})||!n.model.Ed().getId()&&f.has(n.model.getName()))return!1; for(var p=u(n.model.ua),r=p.next();!r.done;r=p.next()){r=r.value;var t=void 0,w=void 0,E=u((w=(t=r.At())==null?void 0:t.o())!=null?w:[]);for(t=E.next();!t.done;t=E.next())t.value.As()===c&&n.model.placements.push(r)}return!!n.model.placements.length}); k.length&&Zp(h,function(){for(var n=u(k),p=n.next();!p.done;p=n.next())p=p.value,p.render(),a.qa.push(p)})}} l.getHelpCenterFieldFrds=function(a){return this.Ca.Oc(a===void 0?!1:a).map(function(b){return sP(b)})}; l.setHelpCenterFieldFrd=function(a){a=new Yz(a);for(var b=u(vP(this.Ca)),c=b.next();!c.done;c=b.next())if(c=c.value,tP(c.Ed(),a)){o3a(c,a);break}}; function q4a(a){var b=[];z().is_render_api||b.push("direct_to_form");mo("cse")==="gse"&&b.push("gse");b.length&&a.addScFrdValue(sP(qP(nP(oP(new Yz,8000104),8000104).rd(15),b)))} function O0(){switch(z().rs){case 3:case 8:return!0;default:return!1}} window.sc_initForm=function(a,b,c){a=new h4a(a,b,c);return{getEscalationChannelAvailabilityInformation:a.getEscalationChannelAvailabilityInformation.bind(a),getContactType:a.getContactType.bind(a),submitForm:a.submitForm.bind(a),getFields:a.yP.bind(a),getVisibleFields:a.zP.bind(a),getSubjectFieldId:a.getSubjectFieldId.bind(a),getBodyFieldId:a.getBodyFieldId.bind(a),getFieldValues:a.getFieldValues.bind(a),getChatPoolId:a.getChatPoolId.bind(a),getChatSupportRequestId:a.getChatSupportRequestId.bind(a), setScreenshotter:a.setScreenshotter.bind(a),setGcmRegistrationId:a.setGcmRegistrationId.bind(a),getProductSpecificData:a.getProductSpecificData.bind(a),setProductSpecificData:a.setProductSpecificData.bind(a),setValidateOnly:a.setValidateOnly.bind(a),listen:a.listen.bind(a),unlisten:a.unlisten.bind(a),getInternalHelpcenterName:a.getInternalHelpcenterName.bind(a),setReenableOnValidated:function(){}, getCaseId:a.getCaseId.bind(a),getScFrdValues:a.getScFrdValues.bind(a),setScFrdValue:a.setScFrdValue.bind(a),addScFrdValue:a.addScFrdValue.bind(a),getHcfNameScFrdValueMap:a.getHcfNameScFrdValueMap.bind(a),setHcfNameScFrdValueMap:a.setHcfNameScFrdValueMap.bind(a),setSelectedSymptomFrdValues:a.setSelectedSymptomFrdValues.bind(a),setParentCaseName:a.setParentCaseName.bind(a),setSubmissionChannel:a.setSubmissionChannel.bind(a),shouldSubmitToCasesV2:a.shouldSubmitToCasesV2.bind(a),addCasesAttachment:a.addCasesAttachment.bind(a), setChatType:function(){}, getChatAvailability:a.getChatAvailability.bind(a),getRedwoodId:a.getRedwoodId.bind(a),prepopulateFields:a.prepopulateFields.bind(a),setAssistiveQuestionAnswers:a.setAssistiveQuestionAnswers.bind(a),getId:a.getId.bind(a),getServiceVrgTaxonomyId:a.getServiceVrgTaxonomyId.bind(a),getServiceVrgTaxonomyView:a.getServiceVrgTaxonomyView.bind(a),setSupportJourneyId:a.setSupportJourneyId.bind(a),getInjectedScFrdValues:a.getInjectedScFrdValues.bind(a),setInjectedScFrdValue:a.setInjectedScFrdValue.bind(a),getInjectedFrdValuesEventId:a.getInjectedFrdValuesEventId.bind(a), setIncludesTargetSelector:a.setIncludesTargetSelector.bind(a),setTargetVerified:a.setTargetVerified.bind(a),getStatusMessage:a.getStatusMessage.bind(a),setErrorMessage:a.setErrorMessage.bind(a),getHelpCenterFieldFrds:a.getHelpCenterFieldFrds.bind(a),setHelpCenterFieldFrd:a.setHelpCenterFieldFrd.bind(a)}};
false
false
false