1"use strict";(self.webpackChunk_kaggle_workspace=self.webpackChunk_kaggle_workspace||[]).push([["2101"],{89613(e,t,n){n.d(t,{H:()=>w});var r=n(45391),a=n(60506),o=n(10494),i=n(50523),s=n(3151),c=n(26260),u=n(62510),l=n(17229),d=n(96540);function p(e,t,n,r,a,o,i){try{var s=e[o](i),c=s.value}catch(e){n(e);return}s.done?t(c):Promise.resolve(c).then(r,a)}function f(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function i(e){p(o,r,a,i,s,"next",e)}function s(e){p(o,r,a,i,s,"throw",e)}i(void 0)})}}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function S(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(S=function(){return!!e})()}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){b(e,t,n[t])})}return e}function v(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e,t){var n,r,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(i,"next",{value:c(0)}),s(i,"throw",{value:c(1)}),s(i,"return",{value:c(2)}),"function"==typeof Symbol&&s(i,Symbol.iterator,{value:function(){return this}}),i;function c(s){return function(c){var u=[s,c];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,r=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(6===u[0]&&o.label<a[1]){o.label=a[1],a=u;break}
1if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function C(e,t,n){if(e)return t||(e.onCreateVersion=void 0),n||(e.onUpdateVersion=void 0),e}var w=function(e){var t;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function n(){var e,t,d;if(!(this instanceof n))throw TypeError("Cannot call a class as a function");return t=n,d=arguments,t=h(t),b(e=function(e,t){var n;if(t&&("object"==((n=t)&&"u">typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,S()?Reflect.construct(t,d||[],h(this).constructor):t.apply(this,d)),"state",v(g({},a.fJ),{dataLoadingState:{type:"loading"},selection:{},allowCreateVersion:!0,allowCreateVersionByRefresh:!0})),b(e,"loadData",function(){return f(function(){var t,n,o,d,p,f,b,h,S,y,C,w,x,O;return m(this,function(m){switch(m.label){case 0:n=(t=e.props).reference,o=t.isMobile,d=t.suggestionSettings,m.label=1;case 1:switch(m.trys.push([1,13,,14]),(0,c.HF)("datasets","data-explorer-v3-loadData",{reference:n}),f=v(g({},a.fJ.uxSettings),{treeCollapsed:o||a.fJ.uxSettings.treeCollapsed}),n.type){case"dataset":return[3,2];case"model_instance_version":return[3,4];case"competition":return[3,6];case"competition_rerun":return[3,8];case"notebook":return[3,10]}return[3,12];case 2:return[4,u.gW.databundleService.getDatabundleExternal({verificationInfo:{databundleVersionId:n.databundleVersionId,datasetId:n.id,datasetHashLink:n.hashLink?n.hashLink:void 0}})];case 3:return b=m.sent(),p=(0,i.x)(b.dataSource.databundleVersion,!0,d),e.setState({dataLoadingState:{type:"success"},dataSources:[b.dataSource],expanded:{},previewCache:{},itemColumnCache:{},uxSettings:f,selection:{selectedObject:p,selectedSource:b.dataSource,selectedTableQuery:void 0},allowCreateVersion:(0,r.zB)((0,r.Hh)(b.dataSource.databundleVersion)),allowCreateVersionByRefresh:(0,r.NT)((0,r.Hh)(b.dataSource.databundleVersion))}),[3,12];case 4:return[4,u.gW.databundleService.getDatabundleExternal({verificationInfo:{databundleVersionId:n.databundleVersionId,modelInstanceVersionId:n.id}})];case 5:return h=m.sent(),p=(0,i.x)(h.dataSource.databundleVersion,!0),e.setState({dataLoadingState:{type:"success"},dataSources:[h.dataSource],expanded:{},previewCache:{},itemColumnCache:{},uxSettings:f,selection:{selectedObject:p,selectedSource:h.dataSource,selectedTableQuery:void 0},allowCreateVersion:(0,r.zB)((0,r.Hh)(h.dataSource.databundleVersion)),allowCreateVersionByRefresh:(0,r.NT)((0,r.Hh)(h.dataSource.databundleVersion))}),[3,12];case 6:return[4,u.gW.databundleService.getDatabundleExternal({verificationInfo:{databundleVersionId:n.databundleVersionId,competitionId:n.id}})];case 7:return S=m.sent(),p=(0,i.x)(S.dataSource.databundleVersion,!0),e.setState({dataLoadingState:{type:"success"},dataSources:[S.dataSource],expanded:{},previewCache:{},itemColumnCache:{},uxSettings:f,selection:{selectedObject:p,selectedSource:S.dataSource,selectedTableQuery:void 0},allowCreateVersion:(0,r.zB)((0,r.Hh)(S.dataSource.databundleVersion)),allowCreateVersionByRefresh:(0,r.NT)((0,r.Hh)(S.dataSource.databundleVersion))}),[3,12];case 8:return[4,u.gW.databundleService.getDatabundleExternal({verificationInfo:{databundleVersionId:n.databundleVersionId,privateDatabundleCompetitionId:n.id}})];case 9:return y=m.sent(),p=(0,i.x)(y.dataSource.databundleVersion,!0),e.setState({dataLoadingState:{type:"success"},dataSources:[y.dataSource],expanded:{},previewCache:{},itemColumnCache:{},uxSettings:f,selection:{selectedObject:p,selectedSource:y.dataSource,selectedTableQuery:void 0},allowCreateVersion:(0,r.zB)((0,r.Hh)(y.dataSource.databundleVersion)),allowCreateVersionByRefresh:(0,r.NT)((0,r.Hh)(y.dataSource.databundleVersion))}),[3,12];case 10:return[4,l.gK6.kernelsService.getKernelSessionDataSources({kernelSessionId:n.kernelRunId,includeOutputFiles:!0,hierarchicalOutputFiles:!1})];case 11:return p=(w=(C=m.sent()).dataSources.length>0?C.dataSources[0]:void 0)?(0,i.x)(w.databundleVersion,!0):w,e.setState({dataLoadingState:{type:"success"},dataSources:C.dataSources,expanded:{},previewCache:{},itemColumnCache:{},uxSettings:f,selection:{selectedObject:p,selectedSource:w,selectedTableQuery:void 0},allowCreateVersion:!!w&&(0,r.zB)((0,r.Hh)(w.databundleVersion)),allowCreateVersionByRefresh:!!w&&(0,r.NT)((0,r.Hh)(w.databundleVersion))}),[3,12];case 12:return p&&e.state.selection&&e.dispatch({type:"select",newItem:p,selectionContainer:v(g({},e.state.selection),{select:e.select,setTableQuery:e.setTableQuery}),updateUrl:!1}),[3,14];case 13:return x=m.sent(),O=(0,s.r)("DefaultDataExplorer",x),e.setState({dataLoadingState:{type:"error",message:O}}),[3,14];case 14:return[2]}})})()}),b(e,"dispatch",function(t){e.setState(function(n){var r=e.props,a=r.reference,i=r.userSettings,s=r.suggestionSettings,c=r.externalCallbacks,u=n.dataLoadingState,l=n.dataSources,d=n.expanded,p=n.previewCache,f=n.itemColumnCache,b=n.uxSettings,h=n.selection,S=n.allowCreateVersion,g=n.allowCreateVersionByRefresh,v=(0,o.J)({dataLoadingState:u,reference:a,dataSources:l,expanded:d,previewCache:p,itemColumnCache:f,uxSettings:b,userSettings:i,suggestionSettings:s,dispatch:e.dispatch,dispatchAsync:e.dispatchAsync,externalCallbacks:C(c,S,g)},t);return{dataLoadingState:v.dataLoadingState,dataSources:v.dataSources,expanded:v.expanded,previewCache:v.previewCache,itemColumnCache:v.itemColumnCache,uxSettings:v.uxSettings,userSettings:v.userSettings,selection:h,allowCreateVersion:S,allowCreateVersionByRefresh:g}})}),b(e,"dispatchAsync",function(t){var n=e.props,r=n.reference,a=n.userSettings,i=n.suggestionSettings,s=n.externalCallbacks,c=e.state,u=c.dataLoadingState,l=c.dataSources,d=c.expanded,p=c.previewCache,f=c.itemColumnCache,b=c.uxSettings,h=c.allowCreateVersion,S=c.allowCreateVersionByRefresh;(0,o.T)({dataLoadingState:u,reference:r,dataSources:l,expanded:d,previewCache:p,itemColumnCache:f,uxSettings:b,userSettings:a,suggestionSettings:i,dispatch:e.dispatch,dispatchAsync:e.dispatchAsync,externalCallbacks:C(s,h,S)},t)}),b(e,"select",function(t,n){e.setState({selection:{selectedObject:n,selectedSource:t,selectedTableQuery:void 0}})}),b(e,"setTableQuery",function(t){e.setState(function(e){return v(g({},e),{selection:v(g({},e.selection),{selectedTableQuery:t})})})}),e}return n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&y(n,e),t=[{key:"componentDidMount",value:function(){return f(function(){return m(this,function(e){switch(e.label){case 0:return[4,this.loadData()];case 1:return e.sent(),[2]}})}).call(this)}},{key:"componentDidUpdate",value:function(e,t){(e.reference.type!==this.props.reference.type||e.reference.id!==this.props.reference.id||e.isMobile!==this.props.isMobile)&&(this.setState(v(g({},a.fJ),{dataLoadingState:{type:"loading"},selection:{},allowCreateVersion:!0,allowCreateVersionByRefresh:!0})),this.loadData());var n,r,o,s,c=null==(r=this.props.suggestionSettings)||null==(n=r.selectedSuggestionBundle)?void 0:n.id,u=(null==(s=e.suggestionSettings)||null==(o=s.selectedSuggestionBundle)?void 0:o.id)!==c&&"dataset"===this.props.reference.type,l="success"===this.state.dataLoadingState.type,d="success"!==t.dataLoadingState.type&&l;if(u&&l||c&&d){var p=this.state.dataSources[0],f=null==p?void 0:p.databundleVersion;if(f){var b=(0,i.x)(f,!0,this.props.suggestionSettings);b&&this.setState(v(g({},this.state),{selection:{selectedObject:b,selectedSource:p}}))}}}},{key:"render",value:function(){var e=this.props,t=e.reference,n=e.userSettings,r=e.suggestionSettings,o=e.children,i=e.externalCallbacks,s=this.state,c=s.dataLoadingState,u=s.dataSources,l=s.expanded,p=s.previewCache,f=s.itemColumnCache,b=s.uxSettings,h=s.selection,S=s.allowCreateVersion,y=s.allowCreateVersionByRefresh;return d.createElement(a.G2.Provider,{value:{dataLoadingState:c,reference:t,dataSources:u,expanded:l,previewCache:p,itemColumnCache:f,uxSettings:b,userSettings:n,suggestionSettings:r,dispatch:this.dispatch,dispatchAsync:this.dispatchAsync,externalCallbacks:C(i,S,y)}},d.createElement(a.uW.Provider,{value:v(g({},h),{select:this.select,setTableQuery:this.setTableQuery})},o))}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(n.prototype,t),n}(d.Component)},29303(e,t,n){n.d(t,{H:()=>i});var r=n(96540);function a(){var e,t,n=(e=["\n position: fixed;\n top: 0px;\n bottom: 0px;\n left: 0px;\n right: 0px;\n z-index: ",";\n background-color: ",";\n"],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return a=function(){return n},n}var o=n(52575).default.div(a(),function(e){return e.theme.km.zIndex.overlay},function(e){return e.theme.km.color.background.normal}),i=function(e){var t=e.maximized,n=e.children;return t?r.createElement(o,null,n):r.createElement(r.Fragment,null,n)}},11301(e,t,n){n.d(t,{y:()=>o});var r=n(51135);function a(){var e,t,n=(e=["\n display: flex;\n width: ",";\n border: "," solid\n ",";\n border-radius: ",";\n"],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return a=function(){return n},n}var o=n(52575).default.div(a(),function(e){return e.mobile?"calc(100% + ".concat((0,r.RG)(e.collapsed,e.maximized),")"):"100%"},function(e){return e.mobile?"1px":"0"},function(e){return e.theme.km.color.outline.normal},function(e){return e.theme.km.borderRadius.m})},52237(e,t,n){function r(){var e,t,n=(e=["\n flex: 1 1 auto;\n min-width: 0;\n"],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return r=function(){return n},n}n.d(t,{A:()=>a});var a=n(52575).default.div(r())},47283(e,t,n){function r(){var e,t,n=(e=["\n position: relative;\n overflow-x: hidden;\n margin: 16px ",";\n"],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return r=function(){return n},n}n.d(t,{m:()=>a});var a=n(52575).default.div(r(),function(e){return e.maximized?"16px":"0px"})}}]); 2//# sourceMappingURL=2101.8e3f405854c16335.js.map
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.