/*! For license information please see dags.8eecf21a60bc28e1511a.js.LICENSE.txt */
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.Airflow=n():(t.Airflow=t.Airflow||{},t.Airflow.dags=n())}(self,(()=>(()=>{var t={6298:(t,n,e)=>{"use strict";e.d(n,{dagTZ:()=>c});var r=e(5962),o=e(9747),u=e(5509);const i=(0,r.vE)("dag_id"),a=(0,r.vE)("paused_url"),c=(0,r.vE)("dag_timezone"),f=(0,r.vE)("datasets_url"),s={createAfter:(0,r.vE)("next_dagrun_create_after"),intervalStart:(0,r.vE)("next_dagrun_data_interval_start"),intervalEnd:(0,r.vE)("next_dagrun_data_interval_end")};let l,p=[];const h=(t,n)=>{p=t,l=n};$(window).on("load",(function(){$(`a[href*="${this.location.pathname}"]`).parent().addClass("active"),$(".never_active").removeClass("active");const t=$("#next-dataset-tooltip");$(t).data("uri")||(0,u.k)(i,t,h)})),$("#pause_resume").on("change",(function(){const t=$(this),n=t.data("dag-id"),e=t.is(":checked");if(t.is("[data-require-confirmation]")){if(!window.confirm(`Are you sure you want to ${e?"resume":"pause"} this DAG?`))return void t.prop("checked",!e)}const r=`${a}?is_paused=${e}&dag_id=${encodeURIComponent(n)}`;t.trigger("blur"),t.removeClass("switch-input--error");const o=new CustomEvent("paused",{detail:e});document.dispatchEvent(o),$.post(r).fail((()=>{setTimeout((()=>{t.prop("checked",!e),t.addClass("switch-input--error"),o.value=!e,document.dispatchEvent(o)}),500)}))})),$("#next-run").on("mouseover",(()=>{$("#next-run").attr("data-original-title",(()=>{let t="";return s.createAfter&&(t+=`Run After: ${(0,o.r6)(s.createAfter)}
`,t+=`Next Run: ${(0,o.ch)(s.createAfter)}
`),s.intervalStart&&s.intervalEnd&&(t+="Data Interval
",t+=`Start: ${(0,o.r6)(s.intervalStart)}
`,t+=`End: ${(0,o.r6)(s.intervalEnd)}`),t}))})),$(".next-dataset-triggered").on("click",(t=>{const n=$("#next-dataset-tooltip"),e=$(t.target).data("summary"),r=$(n).data("uri");r?window.location.href=`${f}?uri=${encodeURIComponent(r)}`:(0,u._)(i,e,p,l)}))},5509:(t,n,e)=>{"use strict";e.d(n,{_:()=>o,k:()=>u});var r=e(5962);function o(t,n,e,o){const u=e.events||[],i=e.dataset_expression,a=(0,r.vE)("datasets_url");$("#dataset_expression").empty(),$("#datasets_tbody").empty(),$("#datasets_error").hide(),$("#dag_id").text(t),$("#dataset_expression").text(JSON.stringify(i,null,2)),$("#datasetNextRunModal").modal({}),n&&$("#next_run_summary").text(n),u.forEach((t=>{const n=document.createElement("tr"),e=document.createElement("td"),r=document.createElement("a");r.href=`${a}?uri=${encodeURIComponent(t.uri)}`,r.innerText=t.uri,e.append(r);const o=document.createElement("td");t.lastUpdate&&o.append(isoDateToTimeEl(t.lastUpdate)),n.append(e),n.append(o),$("#datasets_tbody").append(n)})),o&&($("#datasets_error_msg").text(o),$("#datasets_error").show())}function u(t,n,e){let o=(0,r.vE)("next_run_datasets_url");t&&(o.includes("__DAG_ID__")&&(o=o.replace("__DAG_ID__",t)),$.get(o).done((t=>{const r=t.events;let o=0,u="Pending datasets:
";e(t),r.forEach((t=>{t.created_at||(o<4&&(u+=`${t.uri}
`),o+=1)})),o>4&&(u+=`
And ${o-4} more.`),u+="
Click to see more details.",$(n).attr("data-original-title",(()=>u))})).fail(((t,n,r)=>{const o=t.responseJSON&&t.responseJSON.error||"Something went wrong.";e([],`${n}: ${r} ${o}`)})))}},9747:(t,n,e)=>{"use strict";e.d(n,{By:()=>l,DF:()=>r,Mg:()=>a,O6:()=>i,VP:()=>f,ch:()=>p,nn:()=>c,r6:()=>s});const r="YYYY-MM-DD, HH:mm:ss",o="YYYY-MM-DD, HH:mm:ss z",u="z (Z)",i="YYYY-MM-DDThh:mm:ssZ",a="timezone";function c(t){return t instanceof moment?t.isUTC()?"UTC":t.format(u):"UTC"===t?t:moment().tz(t).format(u)}function f(t,n){const e=moment(t),o=$.extend({title:!0},n).title,u=document.createElement("time");return u.setAttribute("datetime",e.format()),o&&u.setAttribute("title",e.isUTC()?"":`UTC: ${e.clone().utc().format()}`),u.innerText=e.format(r),u}const s=t=>moment(t).format(o);function l(t){moment.tz.setDefault(t),$('time[data-datetime-convert!="false"]').each(((t,n)=>{const e=$(n),u=moment(e.attr("datetime"));u._isValid&&e.text(u.format(e.data("with-tz")?o:r)),void 0!==e.attr("title")&&e.attr("title",u.isUTC()?"":`UTC: ${u.clone().utc().format()}`)})),$(".datetime input").each(((t,n)=>{n.value=moment(n.value).format()}))}const p=t=>`${moment(t).fromNow()}`},4797:(t,n,e)=>{"use strict";e.d(n,{escapeHtml:()=>a});var r=e(9747);function o(){const t=moment();$("#clock").attr("datetime",t.format(r.O6)).html(`${t.format("HH:mm")} ${(0,r.nn)(t)}`)}function u(t){localStorage.setItem("selected-timezone",t);const n=new CustomEvent(r.Mg,{detail:t});document.dispatchEvent(n),(0,r.By)(t),o(),$("body").trigger({type:"airflow.timezone-change",timezone:t})}window.isoDateToTimeEl=r.VP,window.moment=Airflow.moment;const i=document.createElement("span");function a(t){return i.textContent=t,i.innerHTML}function c(t){const n=$(t),e=$(".filter_val.form-control",n.parents("tr"));"Is Null"===n.text()||"Is not Null"===n.text()?(void 0!==e.attr("required")&&(e.removeAttr("required"),e.attr("airflow-required",!0)),1===e.parent(".datetime").length?e.parent(".datetime").hide():e.hide()):("true"===e.attr("airflow-required")&&(e.attr("required",!0),e.removeAttr("airflow-required")),1===e.parent(".datetime").length?e.parent(".datetime").show():e.show())}window.escapeHtml=a,window.convertSecsToHumanReadable=function(t){let n=t;const e=t,r=e-Math.floor(e);n=Math.floor(n);const o=Math.floor(n/3600);n-=3600*o;const u=Math.floor(n/60);n-=60*u;let i="";return o>0&&(i+=`${o}Hours `),u>0&&(i+=`${u}Min `),n+r>0&&(Math.floor(e)===e?i+=`${n}Sec`:(n+=r,i+=`${n.toFixed(3)}Sec`)),i},window.postAsForm=function(t,n){const e=$("
");e.attr("method","POST"),e.attr("action",t),$.each(n||{},((t,n)=>{const r=$("");r.attr("type","hidden"),r.attr("name",t),r.attr("value",n),e.append(r)}));const r=$("");r.attr("type","hidden"),r.attr("name","csrf_token"),r.attr("value",csrfToken),e.append(r),$(document.body).append(e),e.submit()},$(document).ready((()=>{!function(){const t=moment.tz.guess(),n=localStorage.getItem("selected-timezone"),e=localStorage.getItem("chosen-timezone");function o(n){localStorage.setItem("chosen-timezone",n),n!==t||n!==Airflow.serverTimezone?($("#timezone-manual a").data("timezone",n).text((0,r.nn)(n)),$("#timezone-manual").show()):$("#timezone-manual").hide()}e&&o(e),u(n||Airflow.defaultUITimezone),"UTC"!==Airflow.serverTimezone&&($("#timezone-server a").html(`${(0,r.nn)(Airflow.serverTimezone)} Server`),$("#timezone-server").show()),Airflow.serverTimezone!==t?$("#timezone-local a").attr("data-timezone",t).html(`${(0,r.nn)(t)} Local`):$("#timezone-local").hide(),$("a[data-timezone]").click((t=>{u($(t.currentTarget).data("timezone"))})),$("#timezone-other").typeahead({source:$(moment.tz.names().map((t=>({category:t.split("/",1)[0],name:t.replace("_"," "),tzName:t})))),showHintOnFocus:"all",showCategoryHeader:!0,items:"all",afterSelect(t){this.$element.val(""),o(t.tzName),u(t.tzName),setTimeout((()=>{document.activeElement.blur(),this.shown=!1,this.focused=!1}),1)}})}(),$("#clock").attr("data-original-title",hostName).attr("data-placement","bottom").parent().show(),o(),setInterval(o,1e3),$.ajaxSetup({beforeSend(t,n){/^(GET|HEAD|OPTIONS|TRACE)$/i.test(n.type)||this.crossDomain||t.setRequestHeader("X-CSRFToken",csrfToken)}}),$.fn.datetimepicker.defaults.sideBySide=!0,$(".datetimepicker").datetimepicker({format:"YYYY-MM-DDTHH:mm:ssZ"}),$(".datepicker").datetimepicker({format:"YYYY-MM-DD"}),$(".timepicker").datetimepicker({format:"HH:mm:ss"}),$(".filters .select2-chosen").each(((t,n)=>{c(n)})),$(".filters .select2-chosen").on("DOMNodeInserted",(t=>{c(t.target)})),$("#filter_form a.filter").click((()=>{$(".datetimepicker").datetimepicker(),$(".filters .select2-chosen").on("DOMNodeInserted",(t=>{c(t.target)}))})),$(".js-tooltip").tooltip()}))},2974:(t,n,e)=>{"use strict";e.d(n,{default:()=>f});var r=e(4797),o=e(9747),u=e(6298),i=e(5962);function a(t,n){const e=n&&n instanceof moment&&n.isValid();return`Started: ${t.format(o.DF)}
Ended: ${e?n.format(o.DF):"Not ended yet"}
`}function c(t,n,e){if(!t)return"
Not yet started";const r="z (Z)",o=moment.defaultZone.name.toUpperCase(),u=moment.utc(t),i=moment.utc(n),c=e.toUpperCase();let f="
UTC:
";if(f+=a(u,i),"UTC"!==o){u.tz(o),f+=`
Local: ${u.format(r)}
`;f+=a(u,i&&i instanceof moment?i.tz(o):i)}if("UTC"!==c&&c!==o){u.tz(c),f+=`
DAG's TZ: ${u.format(r)}
`;f+=a(u,i&&i instanceof moment?i.tz(c):i)}return f}function f(t,n){let{includeTryNumber:e=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a="";if(void 0!==t.state&&(a+=`Status: ${(0,r.escapeHtml)(t.state)}
`),t.mapped_states){const n=(0,i.fJ)();t.mapped_states.forEach((t=>{const e=t||"no_status";n.has(e)&&n.set(e,n.get(e)+1)})),a+=`${(0,r.escapeHtml)(t.mapped_states.length)} ${1===t.mapped_states.length?"Task":"Tasks"} Mapped
`,n.forEach(((t,n)=>{t>0&&(a+=`${(0,r.escapeHtml)(n)}: ${(0,r.escapeHtml)(t)}
`)})),a+="
"}if(void 0!==t.task_id&&(a+=`Task_id: ${(0,r.escapeHtml)(t.task_id)}
`),void 0!==t.execution_date&&(a+=`Run: ${(0,o.r6)(t.execution_date)}
`),void 0!==t.run_id&&(a+=`Run Id: ${(0,r.escapeHtml)(t.run_id)}
`),t.map_index>=0&&!t.mapped_states&&(a+=`Map Index: ${(0,r.escapeHtml)(t.map_index)}
`),void 0!==t.operator_name&&(a+=`Operator: ${(0,r.escapeHtml)(t.operator_name)}
`),n&&n.trigger_rule&&(a+=`Trigger Rule: ${n.trigger_rule}
`),"running"===t.state){const n=t.start_date instanceof moment?t.start_date:moment(t.start_date);t.duration=moment().diff(n,"second")}else if(!t.duration&&t.end_date){const n=t.start_date instanceof moment?t.start_date:moment(t.start_date),e=t.end_date instanceof moment?t.end_date:moment(t.end_date);t.duration=moment(e).diff(n,"second")}a+=`Duration: ${(0,r.escapeHtml)(convertSecsToHumanReadable(t.duration))}
`;const f=t.data_interval_start,s=t.data_interval_end;return f&&s&&(a+="
Data Interval:
",a+=`Start: ${(0,o.r6)(f)}
`,a+=`End: ${(0,o.r6)(s)}
`),e&&(a+=`Try Number: ${(0,r.escapeHtml)(t.try_number)}
`),a+=c(t.start_date,t.end_date,u.dagTZ||"UTC"),a}},5962:(t,n,e)=>{"use strict";e.d(n,{fJ:()=>o,vE:()=>r});e(3999);function r(t){const n=document.querySelector(`meta[name="${t}"]`);return n&&n.getAttribute("content")||""}const o=()=>new Map([["success",0],["failed",0],["upstream_failed",0],["up_for_retry",0],["up_for_reschedule",0],["running",0],["deferred",0],["queued",0],["scheduled",0],["skipped",0],["no_status",0]])},3999:(t,n,e)=>{"use strict";e(2543),e(6540)},2543:function(t,n,e){var r;t=e.nmd(t),function(){var o,u="Expected a function",i="__lodash_hash_undefined__",a="__lodash_placeholder__",c=16,f=32,s=64,l=128,p=256,h=1/0,d=9007199254740991,v=NaN,_=4294967295,g=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",c],["flip",512],["partial",f],["partialRight",s],["rearg",p]],y="[object Arguments]",m="[object Array]",b="[object Boolean]",w="[object Date]",$="[object Error]",x="[object Function]",k="[object GeneratorFunction]",S="[object Map]",j="[object Number]",A="[object Object]",E="[object Promise]",R="[object RegExp]",T="[object Set]",O="[object String]",z="[object Symbol]",I="[object WeakMap]",C="[object ArrayBuffer]",D="[object DataView]",U="[object Float32Array]",M="[object Float64Array]",L="[object Int8Array]",N="[object Int16Array]",P="[object Int32Array]",F="[object Uint8Array]",W="[object Uint8ClampedArray]",B="[object Uint16Array]",q="[object Uint32Array]",H=/\b__p \+= '';/g,Y=/\b(__p \+=) '' \+/g,Z=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,J=/[&<>"']/g,V=RegExp(G.source),X=RegExp(J.source),K=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,tt=/<%=([\s\S]+?)%>/g,nt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,et=/^\w*$/,rt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ot=/[\\^$.*+?()[\]{}|]/g,ut=RegExp(ot.source),it=/^\s+/,at=/\s/,ct=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ft=/\{\n\/\* \[wrapped with (.+)\] \*/,st=/,? & /,lt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pt=/[()=,{}\[\]\/\s]/,ht=/\\(\\)?/g,dt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,vt=/\w*$/,_t=/^[-+]0x[0-9a-f]+$/i,gt=/^0b[01]+$/i,yt=/^\[object .+?Constructor\]$/,mt=/^0o[0-7]+$/i,bt=/^(?:0|[1-9]\d*)$/,wt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,$t=/($^)/,xt=/['\n\r\u2028\u2029\\]/g,kt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",St="\\u2700-\\u27bf",jt="a-z\\xdf-\\xf6\\xf8-\\xff",At="A-Z\\xc0-\\xd6\\xd8-\\xde",Et="\\ufe0e\\ufe0f",Rt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Tt="['’]",Ot="[\\ud800-\\udfff]",zt="["+Rt+"]",It="["+kt+"]",Ct="\\d+",Dt="[\\u2700-\\u27bf]",Ut="["+jt+"]",Mt="[^\\ud800-\\udfff"+Rt+Ct+St+jt+At+"]",Lt="\\ud83c[\\udffb-\\udfff]",Nt="[^\\ud800-\\udfff]",Pt="(?:\\ud83c[\\udde6-\\uddff]){2}",Ft="[\\ud800-\\udbff][\\udc00-\\udfff]",Wt="["+At+"]",Bt="(?:"+Ut+"|"+Mt+")",qt="(?:"+Wt+"|"+Mt+")",Ht="(?:['’](?:d|ll|m|re|s|t|ve))?",Yt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Zt="(?:"+It+"|"+Lt+")"+"?",Gt="[\\ufe0e\\ufe0f]?",Jt=Gt+Zt+("(?:\\u200d(?:"+[Nt,Pt,Ft].join("|")+")"+Gt+Zt+")*"),Vt="(?:"+[Dt,Pt,Ft].join("|")+")"+Jt,Xt="(?:"+[Nt+It+"?",It,Pt,Ft,Ot].join("|")+")",Kt=RegExp(Tt,"g"),Qt=RegExp(It,"g"),tn=RegExp(Lt+"(?="+Lt+")|"+Xt+Jt,"g"),nn=RegExp([Wt+"?"+Ut+"+"+Ht+"(?="+[zt,Wt,"$"].join("|")+")",qt+"+"+Yt+"(?="+[zt,Wt+Bt,"$"].join("|")+")",Wt+"?"+Bt+"+"+Ht,Wt+"+"+Yt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ct,Vt].join("|"),"g"),en=RegExp("[\\u200d\\ud800-\\udfff"+kt+Et+"]"),rn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,on=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],un=-1,an={};an[U]=an[M]=an[L]=an[N]=an[P]=an[F]=an[W]=an[B]=an[q]=!0,an[y]=an[m]=an[C]=an[b]=an[D]=an[w]=an[$]=an[x]=an[S]=an[j]=an[A]=an[R]=an[T]=an[O]=an[I]=!1;var cn={};cn[y]=cn[m]=cn[C]=cn[D]=cn[b]=cn[w]=cn[U]=cn[M]=cn[L]=cn[N]=cn[P]=cn[S]=cn[j]=cn[A]=cn[R]=cn[T]=cn[O]=cn[z]=cn[F]=cn[W]=cn[B]=cn[q]=!0,cn[$]=cn[x]=cn[I]=!1;var fn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},sn=parseFloat,ln=parseInt,pn="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g,hn="object"==typeof self&&self&&self.Object===Object&&self,dn=pn||hn||Function("return this")(),vn=n&&!n.nodeType&&n,_n=vn&&t&&!t.nodeType&&t,gn=_n&&_n.exports===vn,yn=gn&&pn.process,mn=function(){try{var t=_n&&_n.require&&_n.require("util").types;return t||yn&&yn.binding&&yn.binding("util")}catch(t){}}(),bn=mn&&mn.isArrayBuffer,wn=mn&&mn.isDate,$n=mn&&mn.isMap,xn=mn&&mn.isRegExp,kn=mn&&mn.isSet,Sn=mn&&mn.isTypedArray;function jn(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}function An(t,n,e,r){for(var o=-1,u=null==t?0:t.length;++o-1}function In(t,n,e){for(var r=-1,o=null==t?0:t.length;++r-1;);return e}function ee(t,n){for(var e=t.length;e--&&Wn(n,t[e],0)>-1;);return e}function re(t,n){for(var e=t.length,r=0;e--;)t[e]===n&&++r;return r}var oe=Zn({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),ue=Zn({"&":"&","<":"<",">":">",'"':""","'":"'"});function ie(t){return"\\"+fn[t]}function ae(t){return en.test(t)}function ce(t){var n=-1,e=Array(t.size);return t.forEach((function(t,r){e[++n]=[r,t]})),e}function fe(t,n){return function(e){return t(n(e))}}function se(t,n){for(var e=-1,r=t.length,o=0,u=[];++e",""":'"',"'":"'"});var ge=function t(n){var e,r=(n=null==n?dn:ge.defaults(dn.Object(),n,ge.pick(dn,on))).Array,at=n.Date,kt=n.Error,St=n.Function,jt=n.Math,At=n.Object,Et=n.RegExp,Rt=n.String,Tt=n.TypeError,Ot=r.prototype,zt=St.prototype,It=At.prototype,Ct=n["__core-js_shared__"],Dt=zt.toString,Ut=It.hasOwnProperty,Mt=0,Lt=(e=/[^.]+$/.exec(Ct&&Ct.keys&&Ct.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"",Nt=It.toString,Pt=Dt.call(At),Ft=dn._,Wt=Et("^"+Dt.call(Ut).replace(ot,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Bt=gn?n.Buffer:o,qt=n.Symbol,Ht=n.Uint8Array,Yt=Bt?Bt.allocUnsafe:o,Zt=fe(At.getPrototypeOf,At),Gt=At.create,Jt=It.propertyIsEnumerable,Vt=Ot.splice,Xt=qt?qt.isConcatSpreadable:o,tn=qt?qt.iterator:o,en=qt?qt.toStringTag:o,fn=function(){try{var t=du(At,"defineProperty");return t({},"",{}),t}catch(t){}}(),pn=n.clearTimeout!==dn.clearTimeout&&n.clearTimeout,hn=at&&at.now!==dn.Date.now&&at.now,vn=n.setTimeout!==dn.setTimeout&&n.setTimeout,_n=jt.ceil,yn=jt.floor,mn=At.getOwnPropertySymbols,Nn=Bt?Bt.isBuffer:o,Zn=n.isFinite,ye=Ot.join,me=fe(At.keys,At),be=jt.max,we=jt.min,$e=at.now,xe=n.parseInt,ke=jt.random,Se=Ot.reverse,je=du(n,"DataView"),Ae=du(n,"Map"),Ee=du(n,"Promise"),Re=du(n,"Set"),Te=du(n,"WeakMap"),Oe=du(At,"create"),ze=Te&&new Te,Ie={},Ce=Fu(je),De=Fu(Ae),Ue=Fu(Ee),Me=Fu(Re),Le=Fu(Te),Ne=qt?qt.prototype:o,Pe=Ne?Ne.valueOf:o,Fe=Ne?Ne.toString:o;function We(t){if(oa(t)&&!Zi(t)&&!(t instanceof Ye)){if(t instanceof He)return t;if(Ut.call(t,"__wrapped__"))return Wu(t)}return new He(t)}var Be=function(){function t(){}return function(n){if(!ra(n))return{};if(Gt)return Gt(n);t.prototype=n;var e=new t;return t.prototype=o,e}}();function qe(){}function He(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=o}function Ye(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=_,this.__views__=[]}function Ze(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n=n?t:n)),t}function sr(t,n,e,r,u,i){var a,c=1&n,f=2&n,s=4&n;if(e&&(a=u?e(t,r,u,i):e(t)),a!==o)return a;if(!ra(t))return t;var l=Zi(t);if(l){if(a=function(t){var n=t.length,e=new t.constructor(n);n&&"string"==typeof t[0]&&Ut.call(t,"index")&&(e.index=t.index,e.input=t.input);return e}(t),!c)return zo(t,a)}else{var p=gu(t),h=p==x||p==k;if(Xi(t))return jo(t,c);if(p==A||p==y||h&&!u){if(a=f||h?{}:mu(t),!c)return f?function(t,n){return Io(t,_u(t),n)}(t,function(t,n){return t&&Io(n,Da(n),t)}(a,t)):function(t,n){return Io(t,vu(t),n)}(t,ir(a,t))}else{if(!cn[p])return u?t:{};a=function(t,n,e){var r=t.constructor;switch(n){case C:return Ao(t);case b:case w:return new r(+t);case D:return function(t,n){var e=n?Ao(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}(t,e);case U:case M:case L:case N:case P:case F:case W:case B:case q:return Eo(t,e);case S:return new r;case j:case O:return new r(t);case R:return function(t){var n=new t.constructor(t.source,vt.exec(t));return n.lastIndex=t.lastIndex,n}(t);case T:return new r;case z:return o=t,Pe?At(Pe.call(o)):{}}var o}(t,p,c)}}i||(i=new Xe);var d=i.get(t);if(d)return d;i.set(t,a),fa(t)?t.forEach((function(r){a.add(sr(r,n,e,r,t,i))})):ua(t)&&t.forEach((function(r,o){a.set(o,sr(r,n,e,o,t,i))}));var v=l?o:(s?f?au:iu:f?Da:Ca)(t);return En(v||t,(function(r,o){v&&(r=t[o=r]),rr(a,o,sr(r,n,e,o,t,i))})),a}function lr(t,n,e){var r=e.length;if(null==t)return!r;for(t=At(t);r--;){var u=e[r],i=n[u],a=t[u];if(a===o&&!(u in t)||!i(a))return!1}return!0}function pr(t,n,e){if("function"!=typeof t)throw new Tt(u);return Cu((function(){t.apply(o,e)}),n)}function hr(t,n,e,r){var o=-1,u=zn,i=!0,a=t.length,c=[],f=n.length;if(!a)return c;e&&(n=Cn(n,Kn(e))),r?(u=In,i=!1):n.length>=200&&(u=te,i=!1,n=new Ve(n));t:for(;++o-1},Ge.prototype.set=function(t,n){var e=this.__data__,r=or(e,t);return r<0?(++this.size,e.push([t,n])):e[r][1]=n,this},Je.prototype.clear=function(){this.size=0,this.__data__={hash:new Ze,map:new(Ae||Ge),string:new Ze}},Je.prototype.delete=function(t){var n=pu(this,t).delete(t);return this.size-=n?1:0,n},Je.prototype.get=function(t){return pu(this,t).get(t)},Je.prototype.has=function(t){return pu(this,t).has(t)},Je.prototype.set=function(t,n){var e=pu(this,t),r=e.size;return e.set(t,n),this.size+=e.size==r?0:1,this},Ve.prototype.add=Ve.prototype.push=function(t){return this.__data__.set(t,i),this},Ve.prototype.has=function(t){return this.__data__.has(t)},Xe.prototype.clear=function(){this.__data__=new Ge,this.size=0},Xe.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},Xe.prototype.get=function(t){return this.__data__.get(t)},Xe.prototype.has=function(t){return this.__data__.has(t)},Xe.prototype.set=function(t,n){var e=this.__data__;if(e instanceof Ge){var r=e.__data__;if(!Ae||r.length<199)return r.push([t,n]),this.size=++e.size,this;e=this.__data__=new Je(r)}return e.set(t,n),this.size=e.size,this};var dr=Uo($r),vr=Uo(xr,!0);function _r(t,n){var e=!0;return dr(t,(function(t,r,o){return e=!!n(t,r,o)})),e}function gr(t,n,e){for(var r=-1,u=t.length;++r0&&e(a)?n>1?mr(a,n-1,e,r,o):Dn(o,a):r||(o[o.length]=a)}return o}var br=Mo(),wr=Mo(!0);function $r(t,n){return t&&br(t,n,Ca)}function xr(t,n){return t&&wr(t,n,Ca)}function kr(t,n){return On(n,(function(n){return ta(t[n])}))}function Sr(t,n){for(var e=0,r=(n=$o(n,t)).length;null!=t&&en}function Rr(t,n){return null!=t&&Ut.call(t,n)}function Tr(t,n){return null!=t&&n in At(t)}function Or(t,n,e){for(var u=e?In:zn,i=t[0].length,a=t.length,c=a,f=r(a),s=1/0,l=[];c--;){var p=t[c];c&&n&&(p=Cn(p,Kn(n))),s=we(p.length,s),f[c]=!e&&(n||i>=120&&p.length>=120)?new Ve(c&&p):o}p=t[0];var h=-1,d=f[0];t:for(;++h=a?c:c*("desc"==e[r]?-1:1)}return t.index-n.index}(t,n,e)}))}function Zr(t,n,e){for(var r=-1,o=n.length,u={};++r-1;)a!==t&&Vt.call(a,c,1),Vt.call(t,c,1);return t}function Jr(t,n){for(var e=t?n.length:0,r=e-1;e--;){var o=n[e];if(e==r||o!==u){var u=o;wu(o)?Vt.call(t,o,1):ho(t,o)}}return t}function Vr(t,n){return t+yn(ke()*(n-t+1))}function Xr(t,n){var e="";if(!t||n<1||n>d)return e;do{n%2&&(e+=t),(n=yn(n/2))&&(t+=t)}while(n);return e}function Kr(t,n){return Du(Ru(t,n,ic),t+"")}function Qr(t){return Qe(Ba(t))}function to(t,n){var e=Ba(t);return Lu(e,fr(n,0,e.length))}function no(t,n,e,r){if(!ra(t))return t;for(var u=-1,i=(n=$o(n,t)).length,a=i-1,c=t;null!=c&&++uu?0:u+n),(e=e>u?u:e)<0&&(e+=u),u=n>e?0:e-n>>>0,n>>>=0;for(var i=r(u);++o>>1,i=t[u];null!==i&&!la(i)&&(e?i<=n:i=200){var f=n?null:Ko(t);if(f)return le(f);i=!1,o=te,c=new Ve}else c=n?[]:a;t:for(;++r=r?t:uo(t,n,e)}var So=pn||function(t){return dn.clearTimeout(t)};function jo(t,n){if(n)return t.slice();var e=t.length,r=Yt?Yt(e):new t.constructor(e);return t.copy(r),r}function Ao(t){var n=new t.constructor(t.byteLength);return new Ht(n).set(new Ht(t)),n}function Eo(t,n){var e=n?Ao(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}function Ro(t,n){if(t!==n){var e=t!==o,r=null===t,u=t==t,i=la(t),a=n!==o,c=null===n,f=n==n,s=la(n);if(!c&&!s&&!i&&t>n||i&&a&&f&&!c&&!s||r&&a&&f||!e&&f||!u)return 1;if(!r&&!i&&!s&&t1?e[u-1]:o,a=u>2?e[2]:o;for(i=t.length>3&&"function"==typeof i?(u--,i):o,a&&$u(e[0],e[1],a)&&(i=u<3?o:i,u=1),n=At(n);++r-1?u[i?n[a]:a]:o}}function Wo(t){return uu((function(n){var e=n.length,r=e,i=He.prototype.thru;for(t&&n.reverse();r--;){var a=n[r];if("function"!=typeof a)throw new Tt(u);if(i&&!c&&"wrapper"==fu(a))var c=new He([],!0)}for(r=c?r:e;++r1&&m.reverse(),h&&sc))return!1;var s=i.get(t),l=i.get(n);if(s&&l)return s==n&&l==t;var p=-1,h=!0,d=2&e?new Ve:o;for(i.set(t,n),i.set(n,t);++p-1&&t%1==0&&t1?"& ":"")+n[r],n=n.join(e>2?", ":" "),t.replace(ct,"{\n/* [wrapped with "+n+"] */\n")}(r,function(t,n){return En(g,(function(e){var r="_."+e[0];n&e[1]&&!zn(t,r)&&t.push(r)})),t.sort()}(function(t){var n=t.match(ft);return n?n[1].split(st):[]}(r),e)))}function Mu(t){var n=0,e=0;return function(){var r=$e(),u=16-(r-e);if(e=r,u>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(o,arguments)}}function Lu(t,n){var e=-1,r=t.length,u=r-1;for(n=n===o?r:n;++e1?t[n-1]:o;return e="function"==typeof e?(t.pop(),e):o,ci(t,e)}));function vi(t){var n=We(t);return n.__chain__=!0,n}function _i(t,n){return n(t)}var gi=uu((function(t){var n=t.length,e=n?t[0]:0,r=this.__wrapped__,u=function(n){return cr(n,t)};return!(n>1||this.__actions__.length)&&r instanceof Ye&&wu(e)?((r=r.slice(e,+e+(n?1:0))).__actions__.push({func:_i,args:[u],thisArg:o}),new He(r,this.__chain__).thru((function(t){return n&&!t.length&&t.push(o),t}))):this.thru(u)}));var yi=Co((function(t,n,e){Ut.call(t,e)?++t[e]:ar(t,e,1)}));var mi=Fo(Yu),bi=Fo(Zu);function wi(t,n){return(Zi(t)?En:dr)(t,lu(n,3))}function $i(t,n){return(Zi(t)?Rn:vr)(t,lu(n,3))}var xi=Co((function(t,n,e){Ut.call(t,e)?t[e].push(n):ar(t,e,[n])}));var ki=Kr((function(t,n,e){var o=-1,u="function"==typeof n,i=Ji(t)?r(t.length):[];return dr(t,(function(t){i[++o]=u?jn(n,t,e):zr(t,n,e)})),i})),Si=Co((function(t,n,e){ar(t,e,n)}));function ji(t,n){return(Zi(t)?Cn:Fr)(t,lu(n,3))}var Ai=Co((function(t,n,e){t[e?0:1].push(n)}),(function(){return[[],[]]}));var Ei=Kr((function(t,n){if(null==t)return[];var e=n.length;return e>1&&$u(t,n[0],n[1])?n=[]:e>2&&$u(n[0],n[1],n[2])&&(n=[n[0]]),Yr(t,mr(n,1),[])})),Ri=hn||function(){return dn.Date.now()};function Ti(t,n,e){return n=e?o:n,n=t&&null==n?t.length:n,tu(t,l,o,o,o,o,n)}function Oi(t,n){var e;if("function"!=typeof n)throw new Tt(u);return t=ga(t),function(){return--t>0&&(e=n.apply(this,arguments)),t<=1&&(n=o),e}}var zi=Kr((function(t,n,e){var r=1;if(e.length){var o=se(e,su(zi));r|=f}return tu(t,r,n,e,o)})),Ii=Kr((function(t,n,e){var r=3;if(e.length){var o=se(e,su(Ii));r|=f}return tu(n,r,t,e,o)}));function Ci(t,n,e){var r,i,a,c,f,s,l=0,p=!1,h=!1,d=!0;if("function"!=typeof t)throw new Tt(u);function v(n){var e=r,u=i;return r=i=o,l=n,c=t.apply(u,e)}function _(t){return l=t,f=Cu(y,n),p?v(t):c}function g(t){var e=t-s;return s===o||e>=n||e<0||h&&t-l>=a}function y(){var t=Ri();if(g(t))return m(t);f=Cu(y,function(t){var e=n-(t-s);return h?we(e,a-(t-l)):e}(t))}function m(t){return f=o,d&&r?v(t):(r=i=o,c)}function b(){var t=Ri(),e=g(t);if(r=arguments,i=this,s=t,e){if(f===o)return _(s);if(h)return So(f),f=Cu(y,n),v(s)}return f===o&&(f=Cu(y,n)),c}return n=ma(n)||0,ra(e)&&(p=!!e.leading,a=(h="maxWait"in e)?be(ma(e.maxWait)||0,n):a,d="trailing"in e?!!e.trailing:d),b.cancel=function(){f!==o&&So(f),l=0,r=s=i=f=o},b.flush=function(){return f===o?c:m(Ri())},b}var Di=Kr((function(t,n){return pr(t,1,n)})),Ui=Kr((function(t,n,e){return pr(t,ma(n)||0,e)}));function Mi(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new Tt(u);var e=function(){var r=arguments,o=n?n.apply(this,r):r[0],u=e.cache;if(u.has(o))return u.get(o);var i=t.apply(this,r);return e.cache=u.set(o,i)||u,i};return e.cache=new(Mi.Cache||Je),e}function Li(t){if("function"!=typeof t)throw new Tt(u);return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2])}return!t.apply(this,n)}}Mi.Cache=Je;var Ni=xo((function(t,n){var e=(n=1==n.length&&Zi(n[0])?Cn(n[0],Kn(lu())):Cn(mr(n,1),Kn(lu()))).length;return Kr((function(r){for(var o=-1,u=we(r.length,e);++o=n})),Yi=Ir(function(){return arguments}())?Ir:function(t){return oa(t)&&Ut.call(t,"callee")&&!Jt.call(t,"callee")},Zi=r.isArray,Gi=bn?Kn(bn):function(t){return oa(t)&&Ar(t)==C};function Ji(t){return null!=t&&ea(t.length)&&!ta(t)}function Vi(t){return oa(t)&&Ji(t)}var Xi=Nn||mc,Ki=wn?Kn(wn):function(t){return oa(t)&&Ar(t)==w};function Qi(t){if(!oa(t))return!1;var n=Ar(t);return n==$||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!aa(t)}function ta(t){if(!ra(t))return!1;var n=Ar(t);return n==x||n==k||"[object AsyncFunction]"==n||"[object Proxy]"==n}function na(t){return"number"==typeof t&&t==ga(t)}function ea(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=d}function ra(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}function oa(t){return null!=t&&"object"==typeof t}var ua=$n?Kn($n):function(t){return oa(t)&&gu(t)==S};function ia(t){return"number"==typeof t||oa(t)&&Ar(t)==j}function aa(t){if(!oa(t)||Ar(t)!=A)return!1;var n=Zt(t);if(null===n)return!0;var e=Ut.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&Dt.call(e)==Pt}var ca=xn?Kn(xn):function(t){return oa(t)&&Ar(t)==R};var fa=kn?Kn(kn):function(t){return oa(t)&&gu(t)==T};function sa(t){return"string"==typeof t||!Zi(t)&&oa(t)&&Ar(t)==O}function la(t){return"symbol"==typeof t||oa(t)&&Ar(t)==z}var pa=Sn?Kn(Sn):function(t){return oa(t)&&ea(t.length)&&!!an[Ar(t)]};var ha=Jo(Pr),da=Jo((function(t,n){return t<=n}));function va(t){if(!t)return[];if(Ji(t))return sa(t)?de(t):zo(t);if(tn&&t[tn])return function(t){for(var n,e=[];!(n=t.next()).done;)e.push(n.value);return e}(t[tn]());var n=gu(t);return(n==S?ce:n==T?le:Ba)(t)}function _a(t){return t?(t=ma(t))===h||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function ga(t){var n=_a(t),e=n%1;return n==n?e?n-e:n:0}function ya(t){return t?fr(ga(t),0,_):0}function ma(t){if("number"==typeof t)return t;if(la(t))return v;if(ra(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=ra(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=Xn(t);var e=gt.test(t);return e||mt.test(t)?ln(t.slice(2),e?2:8):_t.test(t)?v:+t}function ba(t){return Io(t,Da(t))}function wa(t){return null==t?"":lo(t)}var $a=Do((function(t,n){if(ju(n)||Ji(n))Io(n,Ca(n),t);else for(var e in n)Ut.call(n,e)&&rr(t,e,n[e])})),xa=Do((function(t,n){Io(n,Da(n),t)})),ka=Do((function(t,n,e,r){Io(n,Da(n),t,r)})),Sa=Do((function(t,n,e,r){Io(n,Ca(n),t,r)})),ja=uu(cr);var Aa=Kr((function(t,n){t=At(t);var e=-1,r=n.length,u=r>2?n[2]:o;for(u&&$u(n[0],n[1],u)&&(r=1);++e1),n})),Io(t,au(t),e),r&&(e=sr(e,7,ru));for(var o=n.length;o--;)ho(e,n[o]);return e}));var Na=uu((function(t,n){return null==t?{}:function(t,n){return Zr(t,n,(function(n,e){return Ta(t,e)}))}(t,n)}));function Pa(t,n){if(null==t)return{};var e=Cn(au(t),(function(t){return[t]}));return n=lu(n),Zr(t,e,(function(t,e){return n(t,e[0])}))}var Fa=Qo(Ca),Wa=Qo(Da);function Ba(t){return null==t?[]:Qn(t,Ca(t))}var qa=No((function(t,n,e){return n=n.toLowerCase(),t+(e?Ha(n):n)}));function Ha(t){return Qa(wa(t).toLowerCase())}function Ya(t){return(t=wa(t))&&t.replace(wt,oe).replace(Qt,"")}var Za=No((function(t,n,e){return t+(e?"-":"")+n.toLowerCase()})),Ga=No((function(t,n,e){return t+(e?" ":"")+n.toLowerCase()})),Ja=Lo("toLowerCase");var Va=No((function(t,n,e){return t+(e?"_":"")+n.toLowerCase()}));var Xa=No((function(t,n,e){return t+(e?" ":"")+Qa(n)}));var Ka=No((function(t,n,e){return t+(e?" ":"")+n.toUpperCase()})),Qa=Lo("toUpperCase");function tc(t,n,e){return t=wa(t),(n=e?o:n)===o?function(t){return rn.test(t)}(t)?function(t){return t.match(nn)||[]}(t):function(t){return t.match(lt)||[]}(t):t.match(n)||[]}var nc=Kr((function(t,n){try{return jn(t,o,n)}catch(t){return Qi(t)?t:new kt(t)}})),ec=uu((function(t,n){return En(n,(function(n){n=Pu(n),ar(t,n,zi(t[n],t))})),t}));function rc(t){return function(){return t}}var oc=Wo(),uc=Wo(!0);function ic(t){return t}function ac(t){return Mr("function"==typeof t?t:sr(t,1))}var cc=Kr((function(t,n){return function(e){return zr(e,t,n)}})),fc=Kr((function(t,n){return function(e){return zr(t,e,n)}}));function sc(t,n,e){var r=Ca(n),o=kr(n,r);null!=e||ra(n)&&(o.length||!r.length)||(e=n,n=t,t=this,o=kr(n,Ca(n)));var u=!(ra(e)&&"chain"in e&&!e.chain),i=ta(t);return En(o,(function(e){var r=n[e];t[e]=r,i&&(t.prototype[e]=function(){var n=this.__chain__;if(u||n){var e=t(this.__wrapped__),o=e.__actions__=zo(this.__actions__);return o.push({func:r,args:arguments,thisArg:t}),e.__chain__=n,e}return r.apply(t,Dn([this.value()],arguments))})})),t}function lc(){}var pc=Yo(Cn),hc=Yo(Tn),dc=Yo(Ln);function vc(t){return xu(t)?Yn(Pu(t)):function(t){return function(n){return Sr(n,t)}}(t)}var _c=Go(),gc=Go(!0);function yc(){return[]}function mc(){return!1}var bc=Ho((function(t,n){return t+n}),0),wc=Xo("ceil"),$c=Ho((function(t,n){return t/n}),1),xc=Xo("floor");var kc,Sc=Ho((function(t,n){return t*n}),1),jc=Xo("round"),Ac=Ho((function(t,n){return t-n}),0);return We.after=function(t,n){if("function"!=typeof n)throw new Tt(u);return t=ga(t),function(){if(--t<1)return n.apply(this,arguments)}},We.ary=Ti,We.assign=$a,We.assignIn=xa,We.assignInWith=ka,We.assignWith=Sa,We.at=ja,We.before=Oi,We.bind=zi,We.bindAll=ec,We.bindKey=Ii,We.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Zi(t)?t:[t]},We.chain=vi,We.chunk=function(t,n,e){n=(e?$u(t,n,e):n===o)?1:be(ga(n),0);var u=null==t?0:t.length;if(!u||n<1)return[];for(var i=0,a=0,c=r(_n(u/n));iu?0:u+e),(r=r===o||r>u?u:ga(r))<0&&(r+=u),r=e>r?0:ya(r);e>>0)?(t=wa(t))&&("string"==typeof n||null!=n&&!ca(n))&&!(n=lo(n))&&ae(t)?ko(de(t),0,e):t.split(n,e):[]},We.spread=function(t,n){if("function"!=typeof t)throw new Tt(u);return n=null==n?0:be(ga(n),0),Kr((function(e){var r=e[n],o=ko(e,0,n);return r&&Dn(o,r),jn(t,this,o)}))},We.tail=function(t){var n=null==t?0:t.length;return n?uo(t,1,n):[]},We.take=function(t,n,e){return t&&t.length?uo(t,0,(n=e||n===o?1:ga(n))<0?0:n):[]},We.takeRight=function(t,n,e){var r=null==t?0:t.length;return r?uo(t,(n=r-(n=e||n===o?1:ga(n)))<0?0:n,r):[]},We.takeRightWhile=function(t,n){return t&&t.length?_o(t,lu(n,3),!1,!0):[]},We.takeWhile=function(t,n){return t&&t.length?_o(t,lu(n,3)):[]},We.tap=function(t,n){return n(t),t},We.throttle=function(t,n,e){var r=!0,o=!0;if("function"!=typeof t)throw new Tt(u);return ra(e)&&(r="leading"in e?!!e.leading:r,o="trailing"in e?!!e.trailing:o),Ci(t,n,{leading:r,maxWait:n,trailing:o})},We.thru=_i,We.toArray=va,We.toPairs=Fa,We.toPairsIn=Wa,We.toPath=function(t){return Zi(t)?Cn(t,Pu):la(t)?[t]:zo(Nu(wa(t)))},We.toPlainObject=ba,We.transform=function(t,n,e){var r=Zi(t),o=r||Xi(t)||pa(t);if(n=lu(n,4),null==e){var u=t&&t.constructor;e=o?r?new u:[]:ra(t)&&ta(u)?Be(Zt(t)):{}}return(o?En:$r)(t,(function(t,r,o){return n(e,t,r,o)})),e},We.unary=function(t){return Ti(t,1)},We.union=oi,We.unionBy=ui,We.unionWith=ii,We.uniq=function(t){return t&&t.length?po(t):[]},We.uniqBy=function(t,n){return t&&t.length?po(t,lu(n,2)):[]},We.uniqWith=function(t,n){return n="function"==typeof n?n:o,t&&t.length?po(t,o,n):[]},We.unset=function(t,n){return null==t||ho(t,n)},We.unzip=ai,We.unzipWith=ci,We.update=function(t,n,e){return null==t?t:vo(t,n,wo(e))},We.updateWith=function(t,n,e,r){return r="function"==typeof r?r:o,null==t?t:vo(t,n,wo(e),r)},We.values=Ba,We.valuesIn=function(t){return null==t?[]:Qn(t,Da(t))},We.without=fi,We.words=tc,We.wrap=function(t,n){return Pi(wo(n),t)},We.xor=si,We.xorBy=li,We.xorWith=pi,We.zip=hi,We.zipObject=function(t,n){return mo(t||[],n||[],rr)},We.zipObjectDeep=function(t,n){return mo(t||[],n||[],no)},We.zipWith=di,We.entries=Fa,We.entriesIn=Wa,We.extend=xa,We.extendWith=ka,sc(We,We),We.add=bc,We.attempt=nc,We.camelCase=qa,We.capitalize=Ha,We.ceil=wc,We.clamp=function(t,n,e){return e===o&&(e=n,n=o),e!==o&&(e=(e=ma(e))==e?e:0),n!==o&&(n=(n=ma(n))==n?n:0),fr(ma(t),n,e)},We.clone=function(t){return sr(t,4)},We.cloneDeep=function(t){return sr(t,5)},We.cloneDeepWith=function(t,n){return sr(t,5,n="function"==typeof n?n:o)},We.cloneWith=function(t,n){return sr(t,4,n="function"==typeof n?n:o)},We.conformsTo=function(t,n){return null==n||lr(t,n,Ca(n))},We.deburr=Ya,We.defaultTo=function(t,n){return null==t||t!=t?n:t},We.divide=$c,We.endsWith=function(t,n,e){t=wa(t),n=lo(n);var r=t.length,u=e=e===o?r:fr(ga(e),0,r);return(e-=n.length)>=0&&t.slice(e,u)==n},We.eq=Bi,We.escape=function(t){return(t=wa(t))&&X.test(t)?t.replace(J,ue):t},We.escapeRegExp=function(t){return(t=wa(t))&&ut.test(t)?t.replace(ot,"\\$&"):t},We.every=function(t,n,e){var r=Zi(t)?Tn:_r;return e&&$u(t,n,e)&&(n=o),r(t,lu(n,3))},We.find=mi,We.findIndex=Yu,We.findKey=function(t,n){return Pn(t,lu(n,3),$r)},We.findLast=bi,We.findLastIndex=Zu,We.findLastKey=function(t,n){return Pn(t,lu(n,3),xr)},We.floor=xc,We.forEach=wi,We.forEachRight=$i,We.forIn=function(t,n){return null==t?t:br(t,lu(n,3),Da)},We.forInRight=function(t,n){return null==t?t:wr(t,lu(n,3),Da)},We.forOwn=function(t,n){return t&&$r(t,lu(n,3))},We.forOwnRight=function(t,n){return t&&xr(t,lu(n,3))},We.get=Ra,We.gt=qi,We.gte=Hi,We.has=function(t,n){return null!=t&&yu(t,n,Rr)},We.hasIn=Ta,We.head=Ju,We.identity=ic,We.includes=function(t,n,e,r){t=Ji(t)?t:Ba(t),e=e&&!r?ga(e):0;var o=t.length;return e<0&&(e=be(o+e,0)),sa(t)?e<=o&&t.indexOf(n,e)>-1:!!o&&Wn(t,n,e)>-1},We.indexOf=function(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var o=null==e?0:ga(e);return o<0&&(o=be(r+o,0)),Wn(t,n,o)},We.inRange=function(t,n,e){return n=_a(n),e===o?(e=n,n=0):e=_a(e),function(t,n,e){return t>=we(n,e)&&t=-9007199254740991&&t<=d},We.isSet=fa,We.isString=sa,We.isSymbol=la,We.isTypedArray=pa,We.isUndefined=function(t){return t===o},We.isWeakMap=function(t){return oa(t)&&gu(t)==I},We.isWeakSet=function(t){return oa(t)&&"[object WeakSet]"==Ar(t)},We.join=function(t,n){return null==t?"":ye.call(t,n)},We.kebabCase=Za,We.last=Qu,We.lastIndexOf=function(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var u=r;return e!==o&&(u=(u=ga(e))<0?be(r+u,0):we(u,r-1)),n==n?function(t,n,e){for(var r=e+1;r--;)if(t[r]===n)return r;return r}(t,n,u):Fn(t,qn,u,!0)},We.lowerCase=Ga,We.lowerFirst=Ja,We.lt=ha,We.lte=da,We.max=function(t){return t&&t.length?gr(t,ic,Er):o},We.maxBy=function(t,n){return t&&t.length?gr(t,lu(n,2),Er):o},We.mean=function(t){return Hn(t,ic)},We.meanBy=function(t,n){return Hn(t,lu(n,2))},We.min=function(t){return t&&t.length?gr(t,ic,Pr):o},We.minBy=function(t,n){return t&&t.length?gr(t,lu(n,2),Pr):o},We.stubArray=yc,We.stubFalse=mc,We.stubObject=function(){return{}},We.stubString=function(){return""},We.stubTrue=function(){return!0},We.multiply=Sc,We.nth=function(t,n){return t&&t.length?Hr(t,ga(n)):o},We.noConflict=function(){return dn._===this&&(dn._=Ft),this},We.noop=lc,We.now=Ri,We.pad=function(t,n,e){t=wa(t);var r=(n=ga(n))?he(t):0;if(!n||r>=n)return t;var o=(n-r)/2;return Zo(yn(o),e)+t+Zo(_n(o),e)},We.padEnd=function(t,n,e){t=wa(t);var r=(n=ga(n))?he(t):0;return n&&rn){var r=t;t=n,n=r}if(e||t%1||n%1){var u=ke();return we(t+u*(n-t+sn("1e-"+((u+"").length-1))),n)}return Vr(t,n)},We.reduce=function(t,n,e){var r=Zi(t)?Un:Gn,o=arguments.length<3;return r(t,lu(n,4),e,o,dr)},We.reduceRight=function(t,n,e){var r=Zi(t)?Mn:Gn,o=arguments.length<3;return r(t,lu(n,4),e,o,vr)},We.repeat=function(t,n,e){return n=(e?$u(t,n,e):n===o)?1:ga(n),Xr(wa(t),n)},We.replace=function(){var t=arguments,n=wa(t[0]);return t.length<3?n:n.replace(t[1],t[2])},We.result=function(t,n,e){var r=-1,u=(n=$o(n,t)).length;for(u||(u=1,t=o);++rd)return[];var e=_,r=we(t,_);n=lu(n),t-=_;for(var o=Vn(r,n);++e=i)return t;var c=e-he(r);if(c<1)return r;var f=a?ko(a,0,c).join(""):t.slice(0,c);if(u===o)return f+r;if(a&&(c+=f.length-c),ca(u)){if(t.slice(c).search(u)){var s,l=f;for(u.global||(u=Et(u.source,wa(vt.exec(u))+"g")),u.lastIndex=0;s=u.exec(l);)var p=s.index;f=f.slice(0,p===o?c:p)}}else if(t.indexOf(lo(u),c)!=c){var h=f.lastIndexOf(u);h>-1&&(f=f.slice(0,h))}return f+r},We.unescape=function(t){return(t=wa(t))&&V.test(t)?t.replace(G,_e):t},We.uniqueId=function(t){var n=++Mt;return wa(t)+n},We.upperCase=Ka,We.upperFirst=Qa,We.each=wi,We.eachRight=$i,We.first=Ju,sc(We,(kc={},$r(We,(function(t,n){Ut.call(We.prototype,n)||(kc[n]=t)})),kc),{chain:!1}),We.VERSION="4.17.21",En(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){We[t].placeholder=We})),En(["drop","take"],(function(t,n){Ye.prototype[t]=function(e){e=e===o?1:be(ga(e),0);var r=this.__filtered__&&!n?new Ye(this):this.clone();return r.__filtered__?r.__takeCount__=we(e,r.__takeCount__):r.__views__.push({size:we(e,_),type:t+(r.__dir__<0?"Right":"")}),r},Ye.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}})),En(["filter","map","takeWhile"],(function(t,n){var e=n+1,r=1==e||3==e;Ye.prototype[t]=function(t){var n=this.clone();return n.__iteratees__.push({iteratee:lu(t,3),type:e}),n.__filtered__=n.__filtered__||r,n}})),En(["head","last"],(function(t,n){var e="take"+(n?"Right":"");Ye.prototype[t]=function(){return this[e](1).value()[0]}})),En(["initial","tail"],(function(t,n){var e="drop"+(n?"":"Right");Ye.prototype[t]=function(){return this.__filtered__?new Ye(this):this[e](1)}})),Ye.prototype.compact=function(){return this.filter(ic)},Ye.prototype.find=function(t){return this.filter(t).head()},Ye.prototype.findLast=function(t){return this.reverse().find(t)},Ye.prototype.invokeMap=Kr((function(t,n){return"function"==typeof t?new Ye(this):this.map((function(e){return zr(e,t,n)}))})),Ye.prototype.reject=function(t){return this.filter(Li(lu(t)))},Ye.prototype.slice=function(t,n){t=ga(t);var e=this;return e.__filtered__&&(t>0||n<0)?new Ye(e):(t<0?e=e.takeRight(-t):t&&(e=e.drop(t)),n!==o&&(e=(n=ga(n))<0?e.dropRight(-n):e.take(n-t)),e)},Ye.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Ye.prototype.toArray=function(){return this.take(_)},$r(Ye.prototype,(function(t,n){var e=/^(?:filter|find|map|reject)|While$/.test(n),r=/^(?:head|last)$/.test(n),u=We[r?"take"+("last"==n?"Right":""):n],i=r||/^find/.test(n);u&&(We.prototype[n]=function(){var n=this.__wrapped__,a=r?[1]:arguments,c=n instanceof Ye,f=a[0],s=c||Zi(n),l=function(t){var n=u.apply(We,Dn([t],a));return r&&p?n[0]:n};s&&e&&"function"==typeof f&&1!=f.length&&(c=s=!1);var p=this.__chain__,h=!!this.__actions__.length,d=i&&!p,v=c&&!h;if(!i&&s){n=v?n:new Ye(this);var _=t.apply(n,a);return _.__actions__.push({func:_i,args:[l],thisArg:o}),new He(_,p)}return d&&v?t.apply(this,a):(_=this.thru(l),d?r?_.value()[0]:_.value():_)})})),En(["pop","push","shift","sort","splice","unshift"],(function(t){var n=Ot[t],e=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);We.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var o=this.value();return n.apply(Zi(o)?o:[],t)}return this[e]((function(e){return n.apply(Zi(e)?e:[],t)}))}})),$r(Ye.prototype,(function(t,n){var e=We[n];if(e){var r=e.name+"";Ut.call(Ie,r)||(Ie[r]=[]),Ie[r].push({name:n,func:e})}})),Ie[Bo(o,2).name]=[{name:"wrapper",func:o}],Ye.prototype.clone=function(){var t=new Ye(this.__wrapped__);return t.__actions__=zo(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=zo(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=zo(this.__views__),t},Ye.prototype.reverse=function(){if(this.__filtered__){var t=new Ye(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Ye.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,e=Zi(t),r=n<0,o=e?t.length:0,u=function(t,n,e){var r=-1,o=e.length;for(;++r=this.__values__.length;return{done:t,value:t?o:this.__values__[this.__index__++]}},We.prototype.plant=function(t){for(var n,e=this;e instanceof qe;){var r=Wu(e);r.__index__=0,r.__values__=o,n?u.__wrapped__=r:n=r;var u=r;e=e.__wrapped__}return u.__wrapped__=t,n},We.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Ye){var n=t;return this.__actions__.length&&(n=new Ye(this)),(n=n.reverse()).__actions__.push({func:_i,args:[ri],thisArg:o}),new He(n,this.__chain__)}return this.thru(ri)},We.prototype.toJSON=We.prototype.valueOf=We.prototype.value=function(){return go(this.__wrapped__,this.__actions__)},We.prototype.first=We.prototype.head,tn&&(We.prototype[tn]=function(){return this}),We}();dn._=ge,(r=function(){return ge}.call(n,e,n,t))===o||(t.exports=r)}.call(this)},5287:(t,n)=>{"use strict";var e=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.iterator;var d={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,_={};function g(t,n,e){this.props=t,this.context=n,this.refs=_,this.updater=e||d}function y(){}function m(t,n,e){this.props=t,this.context=n,this.refs=_,this.updater=e||d}g.prototype.isReactComponent={},g.prototype.setState=function(t,n){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,n,"setState")},g.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},y.prototype=g.prototype;var b=m.prototype=new y;b.constructor=m,v(b,g.prototype),b.isPureReactComponent=!0;var w=Array.isArray,$=Object.prototype.hasOwnProperty,x={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function S(t,n,r){var o,u={},i=null,a=null;if(null!=n)for(o in void 0!==n.ref&&n.ref,void 0!==n.key&&""+n.key,n)$.call(n,o)&&!k.hasOwnProperty(o)&&(u[o]=n[o]);var c=arguments.length-2;if(1===c)u.children=r;else if(1{"use strict";e(5287)}},n={};function e(r){var o=n[r];if(void 0!==o)return o.exports;var u=n[r]={id:r,loaded:!1,exports:{}};return t[r].call(u.exports,u,u.exports,e),u.loaded=!0,u.exports}e.n=t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},e.d=(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),e.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),e.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var r={};return(()=>{"use strict";e.r(r);var t=e(2543),n=e(5962),o=e(2974),u=e(9747),i=e(5509);const a=(0,n.vE)("dags_index"),c=(0,n.vE)("paused_url"),f=(0,n.vE)("status_filter"),s=(0,n.vE)("autocomplete_url"),l=(0,n.vE)("graph_url"),p=(0,n.vE)("dag_run_url"),h=(0,n.vE)("task_instance_url"),d=(0,n.vE)("blocked_url"),v=(0,n.vE)("csrf_token"),_=(0,n.vE)("last_dag_runs_url"),g=(0,n.vE)("dag_stats_url"),y=(0,n.vE)("task_stats_url"),m=(0,n.vE)("grid_url"),b=(0,n.vE)("datasets_url"),w=(0,n.vE)("next_run_datasets_summary_url"),x={};let k;const S="dag-run",j="task-instance",A=2e3;$("#tags_filter").select2({placeholder:"Filter DAGs by tag",allowClear:!0}),$("#tags_filter").on("change",(t=>{t.preventDefault();const n=new URLSearchParams(window.location.search),e=$(t.target).select2("val");e.length?(n.has("tags")&&n.delete("tags"),e.forEach((t=>{n.append("tags",t)}))):(n.delete("tags"),n.set("reset_tags","reset")),n.has("page")&&n.delete("page"),window.location=`${a}?${n.toString()}`})),$("#tags_form").on("reset",(t=>{t.preventDefault();const n=new URLSearchParams(window.location.search);n.delete("tags"),n.has("page")&&n.delete("page"),n.set("reset_tags","reset"),window.location=`${a}?${n.toString()}`})),$("#dag_query").on("keypress",(t=>{if(13===t.which){const n=new URLSearchParams(window.location.search);n.set("search",t.target.value.trim()),n.delete("page"),window.location=`${a}?${n.toString()}`,t.preventDefault()}})),$.each($("[id^=toggle]"),(function(){const t=$(this),n=t.data("dag-id");t.on("change",(()=>{const e=t.is(":checked"),r=`${c}?is_paused=${e}&dag_id=${encodeURIComponent(n)}`;t.removeClass("switch-input--error"),t.trigger("blur"),$.post(r).fail((()=>{setTimeout((()=>{t.prop("checked",!e),t.addClass("switch-input--error")}),500)}))}))})),$(".typeahead").typeahead({source:(t,n)=>$.ajax(s,{data:{query:encodeURIComponent(t),status:f},success:n}),displayText:t=>t.dag_display_name||t.name,autoSelect:!1,afterSelect(t){const n=new URLSearchParams(window.location.search);n.set("search",t.name),"owner"===t.type&&(window.location=`${a}?${n}`),"dag"===t.type&&(window.location=`${m.replace("__DAG_ID__",t.name)}?${n}`)}}),$("#search_form").on("reset",(()=>{const t=new URLSearchParams(window.location.search);t.delete("search"),t.delete("page"),window.location=`${a}?${t}`})),$("#main_content").show(250);function E(t,n){$.each(n,(function(){const t=document.querySelector(`[data-dag-id="${this.dag_id}"]`);t.title=`${this.active_dag_run}/${this.max_active_runs} active dag runs`,this.active_dag_run>=this.max_active_runs&&(t.style.color="#e43921")}))}function R(t,n){$(".js-loading-last-run").remove(),Object.keys(n).forEach((t=>{const e=n[t].dag_id,r=n[t].execution_date,o=d3.select(`#last-run-${t}`);o.selectAll("a").attr("href",`${l}?dag_id=${encodeURIComponent(e)}&execution_date=${encodeURIComponent(r)}`).html("").insert(isoDateToTimeEl.bind(null,r,{title:!1})),o.selectAll("span").style("display",null).attr("data-lastrun",JSON.stringify(n[t]))}))}function T(t,n,e){const r=d3.select(`svg#${t}-${n.replace(/\./g,"__dot__")}`).attr("height",37).attr("width",29*e.length+4).selectAll("g").data(e).enter().append("g").attr("transform",((t,n)=>`translate(${29*n+16.5},18.5)`));r.append("svg:a").attr("href",(e=>{const r=new URLSearchParams;switch(r.append("_flt_3_dag_id",n),e.state?r.append("_flt_3_state",e.state):r.append("_flt_8_state",""),t){case S:return`${p}?${r.toString()}`;case j:return`${h}?${r.toString()}`;default:return""}})).append("circle").attr("id",(e=>`${t}-${n.replace(/\./g,"_")}-${e.state||"none"}`)).attr("class","has-svg-tooltip").attr("stroke-width",(t=>t.count>0?2:1)).attr("stroke",(t=>t.count>0?STATE_COLOR[t.state]:"gainsboro")).attr("fill","#fff").attr("r",12.5).attr("title",(t=>`${t.state||"none"}: ${t.count}`)).on("mouseover",(t=>{t.count>0&&d3.select(d3.event.currentTarget).transition().duration(400).attr("fill","#e2e2e2").style("stroke-width",6)})).on("mouseout",(t=>{t.count>0&&d3.select(d3.event.currentTarget).transition().duration(400).attr("fill","#fff").style("stroke-width",2)})).style("opacity",0).transition().duration(300).delay(((t,n)=>50*n)).style("opacity",1),d3.select(`.js-loading-${t}-stats`).remove(),r.append("text").attr("fill","#51504f").attr("text-anchor","middle").attr("vertical-align","middle").attr("font-size",9).attr("y",3).style("pointer-events","none").text((t=>{return t.count>0?(n=t.count)>=1e6?`${Math.floor(n/1e6)}M`:n>=1e3?`${Math.floor(n/1e3)}k`:n:"";var n}))}function O(t,n){Object.keys(n).forEach((e=>{const r=n[e];T(t,e,r)}))}function z(t,n){[...document.getElementsByClassName("next-dataset-triggered")].forEach((t=>{const e=$(t).attr("data-dag-id"),r=$(t).attr("data-summary"),o=n[e];if(o&&!o.uri){const n=`${o.ready} of ${o.total} datasets updated`;r!==n&&($(t).attr("data-summary",n),$(t).text(n))}}))}function I(){let{activeDagsOnly:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=$("[id^=toggle]");return t&&(n=n.filter(":checked")),n=n.map((function(){return $(this).data("dag-id")})).get(),n}let C;function D(t,n){t===S&&function(t){0===Object.keys(t).filter((n=>t[n].filter((t=>{let{state:n}=t;return"running"===n||"queued"===n})).filter((t=>t.count>0)).length>0)).length&&($("#auto_refresh").prop("checked",!1),clearInterval(C))}(n),Object.keys(n).forEach((e=>{const r=n[e];!function(t,n,e){d3.select(`svg#${t}-${n.replace(/\./g,"__dot__")}`).selectAll("circle").data(e).attr("stroke-width",(t=>t.count>0?2:1)).attr("stroke",(t=>t.count>0?STATE_COLOR[t.state]:"gainsboro")),d3.select(`svg#${t}-${n.replace(/\./g,"__dot__")}`).selectAll("text").data(e).text((t=>t.count>0?t.count:""))}(t,e,r)}))}function U(){let{activeDagsOnly:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=I({activeDagsOnly:t}),e=new URLSearchParams;n.forEach((t=>{e.append("dag_ids",t)})),$("#loading-dots").css("display","inline-block"),e.has("dag_ids")&&(d3.json(_).header("X-CSRFToken",v).post(e,R),d3.json(g).header("X-CSRFToken",v).post(e,((t,n)=>D(S,n))),d3.json(y).header("X-CSRFToken",v).post(e,((t,n)=>D(j,n))),d3.json(w).header("X-CSRFToken",v).post(e,z)),setTimeout((()=>{$("#loading-dots").css("display","none")}),A)}function M(){$("#auto_refresh").is(":checked")?C=setInterval((()=>{U({activeDagsOnly:!0})}),autoRefreshInterval*A):clearInterval(C)}function L(){const t=localStorage.getItem("dagsDisableAutoRefresh");$("#auto_refresh").prop("checked",!t),M(),d3.select("#refresh_button").on("click",(()=>U()))}d3.selectAll(".js-last-run-tooltip").on("mouseover",(function(){const t=JSON.parse(d3.select(this).attr("data-lastrun"));d3.select(this).attr("data-original-title",(0,o.default)(t))}));document.addEventListener("visibilitychange",(()=>{document.hidden?clearInterval(C):L()})),$(window).on("load",(()=>{L(),$("body").on("mouseover",".has-svg-tooltip",(t=>{const n=t.target;!function(t,n){const e=$("#svg-tooltip");e.children(".tooltip-inner").text(t);const r=e.width()/2;e.css({display:"block",left:n.left+12.5-r+"px",top:n.top-25+"px"})}(n.getAttribute("title"),n.getBoundingClientRect())})),$("body").on("mouseout",".has-svg-tooltip",(()=>{$("#svg-tooltip").css("display","none")})),function(){const t=I(),n=new URLSearchParams;t.forEach((t=>{n.append("dag_ids",t)})),n.has("dag_ids")?(d3.json(d).header("X-CSRFToken",v).post(n,E),d3.json(_).header("X-CSRFToken",v).post(n,R),d3.json(g).header("X-CSRFToken",v).post(n,((t,n)=>O(S,n))),d3.json(y).header("X-CSRFToken",v).post(n,((t,n)=>O(j,n)))):($(".js-loading-dag-run-stats").remove(),$(".js-loading-task-instance-stats").remove())}()})),$(".js-next-run-tooltip").each(((t,n)=>{$(n).on("mouseover",(()=>{$(n).attr("data-original-title",(()=>{const t=$(n).attr("data-nextrun"),[e,r,o]=t.split(",");let i="";return i+=`Run After: ${(0,u.r6)(e)}
`,i+=`Next Run: ${(0,u.ch)(e)}
`,i+="Data Interval
",i+=`Start: ${(0,u.r6)(r)}
`,i+=`End: ${(0,u.r6)(o)}`,i}))}))})),$("#auto_refresh").change((()=>{$("#auto_refresh").is(":checked")?(U({activeDagsOnly:!0}),localStorage.removeItem("dagsDisableAutoRefresh")):(localStorage.setItem("dagsDisableAutoRefresh","true"),$("#loading-dots").css("display","none")),M()})),$(".next-dataset-triggered").on("click",(t=>{const n=$(t.target).data("dag-id"),e=$(t.target).data("summary"),r=$(t.target).data("uri");r?window.location.href=`${b}?uri=${encodeURIComponent(r)}`:n&&(0,i._)(n,e,x[n],k)}));const N=(0,t.throttle)(((t,n,e)=>(0,i.k)(t,n,e)),1e3);$(".js-dataset-triggered").each(((t,n)=>{$(n).on("mouseover",(()=>{const t=$(n).children(),e=$(t).data("dag-id");$(t).data("uri")||N(e,t,((t,n)=>{x[e]=t,k=n}))}))}))})(),r})()));