altair-static 4.1.0 → 4.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/build/dist/100.js +1 -0
  2. package/build/dist/108.js +1 -0
  3. package/build/dist/267.js +1 -0
  4. package/build/dist/379.js +1 -0
  5. package/build/dist/3rdpartylicenses.txt +844 -93
  6. package/build/dist/471.js +1 -0
  7. package/build/dist/527.js +1 -0
  8. package/build/dist/604.js +1 -0
  9. package/build/dist/729.js +1 -0
  10. package/build/dist/747.js +1 -0
  11. package/build/dist/790.js +1 -0
  12. package/build/dist/794.js +1 -0
  13. package/build/dist/873.js +1 -0
  14. package/build/dist/929.js +1 -0
  15. package/build/dist/934.js +1 -0
  16. package/build/dist/assets/i18n/ach-UG.json +157 -153
  17. package/build/dist/assets/i18n/cs-CZ.json +4 -0
  18. package/build/dist/assets/i18n/da-DK.json +4 -0
  19. package/build/dist/assets/i18n/de-DE.json +4 -0
  20. package/build/dist/assets/i18n/default.json +10 -1
  21. package/build/dist/assets/i18n/en-US.json +4 -0
  22. package/build/dist/assets/i18n/es-ES.json +4 -0
  23. package/build/dist/assets/i18n/fi-FI.json +4 -0
  24. package/build/dist/assets/i18n/fr-FR.json +4 -0
  25. package/build/dist/assets/i18n/hu-HU.json +4 -0
  26. package/build/dist/assets/i18n/it-IT.json +4 -0
  27. package/build/dist/assets/i18n/ja-JP.json +4 -0
  28. package/build/dist/assets/i18n/ko-KR.json +4 -0
  29. package/build/dist/assets/i18n/nl-NL.json +4 -0
  30. package/build/dist/assets/i18n/no-NO.json +4 -0
  31. package/build/dist/assets/i18n/pl-PL.json +4 -0
  32. package/build/dist/assets/i18n/pt-BR.json +4 -0
  33. package/build/dist/assets/i18n/pt-PT.json +4 -0
  34. package/build/dist/assets/i18n/ro-RO.json +4 -0
  35. package/build/dist/assets/i18n/ru-RU.json +30 -26
  36. package/build/dist/assets/i18n/sr-SP.json +4 -0
  37. package/build/dist/assets/i18n/sv-SE.json +4 -0
  38. package/build/dist/assets/i18n/tr-TR.json +4 -0
  39. package/build/dist/assets/i18n/uk-UA.json +4 -0
  40. package/build/dist/assets/i18n/vi-VN.json +4 -0
  41. package/build/dist/assets/i18n/zh-CN.json +12 -8
  42. package/build/dist/assets/i18n/zh-TW.json +4 -0
  43. package/build/dist/index.html +3 -3
  44. package/build/dist/main.js +1 -0
  45. package/build/dist/polyfills.js +1 -0
  46. package/build/dist/runtime.js +1 -0
  47. package/build/dist/styles.css +2 -2
  48. package/build/index.d.ts +1 -0
  49. package/build/index.js +4 -1
  50. package/build/index.test.d.ts +1 -0
  51. package/build/index.test.js +17 -6
  52. package/build/utils/get-altair-html.d.ts +1 -0
  53. package/build/utils/get-dist.d.ts +1 -0
  54. package/package.json +4 -4
  55. package/src/index.test.ts +21 -6
  56. package/src/index.ts +6 -3
  57. package/tsconfig.json +1 -0
  58. package/build/dist/108-es2018.js +0 -1
  59. package/build/dist/108-es5.js +0 -1
  60. package/build/dist/283-es2018.js +0 -1
  61. package/build/dist/283-es5.js +0 -1
  62. package/build/dist/379-es2018.js +0 -1
  63. package/build/dist/379-es5.js +0 -1
  64. package/build/dist/471-es2018.js +0 -1
  65. package/build/dist/471-es5.js +0 -1
  66. package/build/dist/527-es2018.js +0 -1
  67. package/build/dist/527-es5.js +0 -1
  68. package/build/dist/604-es2018.js +0 -1
  69. package/build/dist/604-es5.js +0 -1
  70. package/build/dist/672-es2018.js +0 -1
  71. package/build/dist/672-es5.js +0 -1
  72. package/build/dist/709-es2018.js +0 -1
  73. package/build/dist/709-es5.js +0 -1
  74. package/build/dist/729-es2018.js +0 -1
  75. package/build/dist/729-es5.js +0 -1
  76. package/build/dist/747-es2018.js +0 -1
  77. package/build/dist/747-es5.js +0 -1
  78. package/build/dist/790-es2018.js +0 -1
  79. package/build/dist/790-es5.js +0 -1
  80. package/build/dist/794-es2018.js +0 -1
  81. package/build/dist/794-es5.js +0 -1
  82. package/build/dist/866-es2018.js +0 -1
  83. package/build/dist/866-es5.js +0 -1
  84. package/build/dist/873-es2018.js +0 -1
  85. package/build/dist/873-es5.js +0 -1
  86. package/build/dist/934-es2018.js +0 -1
  87. package/build/dist/934-es5.js +0 -1
  88. package/build/dist/main-es2018.js +0 -1
  89. package/build/dist/main-es5.js +0 -1
  90. package/build/dist/polyfills-es2018.js +0 -1
  91. package/build/dist/polyfills-es5.js +0 -1
  92. package/build/dist/runtime-es2018.js +0 -1
  93. package/build/dist/runtime-es5.js +0 -1
  94. package/build/index.js.map +0 -1
  95. package/build/index.test.js.map +0 -1
  96. package/build/utils/get-altair-html.js.map +0 -1
  97. package/build/utils/get-dist.js.map +0 -1
  98. package/scripts/prepare_dist.js +0 -77
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkaltair_app=self.webpackChunkaltair_app||[]).push([[747],{44461:(_,T,p)=>{p.d(T,{Z:()=>I});var y=p(34248),v=p(36386);function I(m){var l=m.prototype.toJSON;"function"==typeof l||(0,y.Z)(0),m.prototype.inspect=l,v.Z&&(m.prototype[v.Z]=l)}},95897:(_,T,p)=>{p.d(T,{Z:()=>l});var y=p(36386);function v(a){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(a)}function l(a){return c(a,[])}function c(a,n){switch(v(a)){case"string":return JSON.stringify(a);case"function":return a.name?"[function ".concat(a.name,"]"):"[function]";case"object":return null===a?"null":function(a,n){if(-1!==n.indexOf(a))return"[Circular]";var e=[].concat(n,[a]),t=function(a){var n=a[String(y.Z)];return"function"==typeof n?n:"function"==typeof a.inspect?a.inspect:void 0}(a);if(void 0!==t){var i=t.call(a);if(i!==a)return"string"==typeof i?i:c(i,e)}else if(Array.isArray(a))return function(a,n){if(0===a.length)return"[]";if(n.length>2)return"[Array]";for(var e=Math.min(10,a.length),t=a.length-e,i=[],s=0;s<e;++s)i.push(c(a[s],n));return 1===t?i.push("... 1 more item"):t>1&&i.push("... ".concat(t," more items")),"["+i.join(", ")+"]"}(a,e);return function(a,n){var e=Object.keys(a);return 0===e.length?"{}":n.length>2?"["+function(a){var n=Object.prototype.toString.call(a).replace(/^\[object /,"").replace(/]$/,"");if("Object"===n&&"function"==typeof a.constructor){var e=a.constructor.name;if("string"==typeof e&&""!==e)return e}return n}(a)+"]":"{ "+e.map(function(i){return i+": "+c(a[i],n)}).join(", ")+" }"}(a,e)}(a,n);default:return String(a)}}},34248:(_,T,p)=>{function y(v,I){if(!Boolean(v))throw new Error(null!=I?I:"Unexpected invariant triggered.")}p.d(T,{Z:()=>y})},36386:(_,T,p)=>{p.d(T,{Z:()=>v});const v="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0},31279:(_,T,p)=>{p.d(T,{Ye:()=>v,WU:()=>I,UG:()=>m});var y=p(44461),v=function(){function l(r,u,o){this.start=r.start,this.end=u.end,this.startToken=r,this.endToken=u,this.source=o}return l.prototype.toJSON=function(){return{start:this.start,end:this.end}},l}();(0,y.Z)(v);var I=function(){function l(r,u,o,d,f,a,n){this.kind=r,this.start=u,this.end=o,this.line=d,this.column=f,this.value=n,this.prev=a,this.next=null}return l.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},l}();function m(l){return null!=l&&"string"==typeof l.kind}(0,y.Z)(I)},33951:(_,T,p)=>{function y(l){var c=l.split(/\r\n|[\n\r]/g),r=I(l);if(0!==r)for(var u=1;u<c.length;u++)c[u]=c[u].slice(r);for(var o=0;o<c.length&&v(c[o]);)++o;for(var d=c.length;d>o&&v(c[d-1]);)--d;return c.slice(o,d).join("\n")}function v(l){for(var c=0;c<l.length;++c)if(" "!==l[c]&&"\t"!==l[c])return!1;return!0}function I(l){for(var c,r=!0,u=!0,o=0,d=null,f=0;f<l.length;++f)switch(l.charCodeAt(f)){case 13:10===l.charCodeAt(f+1)&&++f;case 10:r=!1,u=!0,o=0;break;case 9:case 32:++o;break;default:u&&!r&&(null===d||o<d)&&(d=o),u=!1}return null!==(c=d)&&void 0!==c?c:0}function m(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],u=-1===l.indexOf("\n"),o=" "===l[0]||"\t"===l[0],d='"'===l[l.length-1],f="\\"===l[l.length-1],a=!u||d||f||r,n="";return a&&!(u&&o)&&(n+="\n"+c),n+=c?l.replace(/\n/g,"\n"+c):l,a&&(n+="\n"),'"""'+n.replace(/"""/g,'\\"""')+'"""'}p.d(T,{W7:()=>y,Z2:()=>I,LZ:()=>m})},87948:(_,T,p)=>{p.d(T,{h:()=>y});var y=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"})},71352:(_,T,p)=>{p.r(T),p.d(T,{print:()=>I});var y=p(86729),v=p(33951);function I(n){return(0,y.Vn)(n,{leave:l})}var l={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return r(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,i=e.name,s=o("(",r(e.variableDefinitions,", "),")"),E=r(e.directives," "),D=e.selectionSet;return i||E||s||"query"!==t?r([t,r([i,s]),E,D]," "):D},VariableDefinition:function(e){var E=e.directives;return e.variable+": "+e.type+o(" = ",e.defaultValue)+o(" ",r(E," "))},SelectionSet:function(e){return u(e.selections)},Field:function(e){var i=e.name,s=e.arguments,E=e.directives,D=e.selectionSet,N=o("",e.alias,": ")+i,O=N+o("(",r(s,", "),")");return O.length>80&&(O=N+o("(\n",d(r(s,"\n")),"\n)")),r([O,r(E," "),D]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+o(" ",r(e.directives," "))},InlineFragment:function(e){var i=e.directives,s=e.selectionSet;return r(["...",o("on ",e.typeCondition),r(i," "),s]," ")},FragmentDefinition:function(e){var i=e.typeCondition,s=e.variableDefinitions,E=e.directives,D=e.selectionSet;return"fragment ".concat(e.name).concat(o("(",r(s,", "),")")," ")+"on ".concat(i," ").concat(o("",r(E," ")," "))+D},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var i=e.value;return e.block?(0,v.LZ)(i,"description"===t?"":" "):JSON.stringify(i)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+r(e.values,", ")+"]"},ObjectValue:function(e){return"{"+r(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+o("(",r(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:c(function(n){var t=n.operationTypes;return r(["schema",r(n.directives," "),u(t)]," ")}),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:c(function(n){return r(["scalar",n.name,r(n.directives," ")]," ")}),ObjectTypeDefinition:c(function(n){var i=n.directives,s=n.fields;return r(["type",n.name,o("implements ",r(n.interfaces," & ")),r(i," "),u(s)]," ")}),FieldDefinition:c(function(n){var t=n.arguments,i=n.type,s=n.directives;return n.name+(a(t)?o("(\n",d(r(t,"\n")),"\n)"):o("(",r(t,", "),")"))+": "+i+o(" ",r(s," "))}),InputValueDefinition:c(function(n){var s=n.directives;return r([n.name+": "+n.type,o("= ",n.defaultValue),r(s," ")]," ")}),InterfaceTypeDefinition:c(function(n){var i=n.directives,s=n.fields;return r(["interface",n.name,o("implements ",r(n.interfaces," & ")),r(i," "),u(s)]," ")}),UnionTypeDefinition:c(function(n){var i=n.types;return r(["union",n.name,r(n.directives," "),i&&0!==i.length?"= "+r(i," | "):""]," ")}),EnumTypeDefinition:c(function(n){var i=n.values;return r(["enum",n.name,r(n.directives," "),u(i)]," ")}),EnumValueDefinition:c(function(n){return r([n.name,r(n.directives," ")]," ")}),InputObjectTypeDefinition:c(function(n){var i=n.fields;return r(["input",n.name,r(n.directives," "),u(i)]," ")}),DirectiveDefinition:c(function(n){var t=n.arguments,i=n.repeatable,s=n.locations;return"directive @"+n.name+(a(t)?o("(\n",d(r(t,"\n")),"\n)"):o("(",r(t,", "),")"))+(i?" repeatable":"")+" on "+r(s," | ")}),SchemaExtension:function(e){var i=e.operationTypes;return r(["extend schema",r(e.directives," "),u(i)]," ")},ScalarTypeExtension:function(e){return r(["extend scalar",e.name,r(e.directives," ")]," ")},ObjectTypeExtension:function(e){var s=e.directives,E=e.fields;return r(["extend type",e.name,o("implements ",r(e.interfaces," & ")),r(s," "),u(E)]," ")},InterfaceTypeExtension:function(e){var s=e.directives,E=e.fields;return r(["extend interface",e.name,o("implements ",r(e.interfaces," & ")),r(s," "),u(E)]," ")},UnionTypeExtension:function(e){var s=e.types;return r(["extend union",e.name,r(e.directives," "),s&&0!==s.length?"= "+r(s," | "):""]," ")},EnumTypeExtension:function(e){var s=e.values;return r(["extend enum",e.name,r(e.directives," "),u(s)]," ")},InputObjectTypeExtension:function(e){var s=e.fields;return r(["extend input",e.name,r(e.directives," "),u(s)]," ")}};function c(n){return function(e){return r([e.description,n(e)],"\n")}}function r(n){var e,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(e=null==n?void 0:n.filter(function(i){return i}).join(t))&&void 0!==e?e:""}function u(n){return o("{\n",d(r(n,"\n")),"\n}")}function o(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=e&&""!==e?n+e+t:""}function d(n){return o(" ",n.replace(/\n/g,"\n "))}function f(n){return-1!==n.indexOf("\n")}function a(n){return null!=n&&n.some(f)}},86729:(_,T,p)=>{p.d(T,{$_:()=>m,Vn:()=>l,j1:()=>c,CK:()=>r});var y=p(95897),v=p(31279),I={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},m=Object.freeze({});function l(u,o){var d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:I,f=void 0,a=Array.isArray(u),n=[u],e=-1,t=[],i=void 0,s=void 0,E=void 0,D=[],N=[],O=u;do{var h=++e===n.length,V=h&&0!==t.length;if(h){if(s=0===N.length?void 0:D[D.length-1],i=E,E=N.pop(),V){if(a)i=i.slice();else{for(var L={},b=0,P=Object.keys(i);b<P.length;b++){var C=P[b];L[C]=i[C]}i=L}for(var j=0,S=0;S<t.length;S++){var A=t[S][0],x=t[S][1];a&&(A-=j),a&&null===x?(i.splice(A,1),j++):i[A]=x}}e=f.index,n=f.keys,t=f.edits,a=f.inArray,f=f.prev}else{if(s=E?a?e:n[e]:void 0,null==(i=E?E[s]:O))continue;E&&D.push(s)}var F,g=void 0;if(!Array.isArray(i)){if(!(0,v.UG)(i))throw new Error("Invalid AST Node: ".concat((0,y.Z)(i),"."));var M=r(o,i.kind,h);if(M){if((g=M.call(o,i,s,E,D,N))===m)break;if(!1===g){if(!h){D.pop();continue}}else if(void 0!==g&&(t.push([s,g]),!h)){if(!(0,v.UG)(g)){D.pop();continue}i=g}}}void 0===g&&V&&t.push([s,i]),h?D.pop():(f={inArray:a,index:e,keys:n,edits:t,prev:f},n=(a=Array.isArray(i))?i:null!==(F=d[i.kind])&&void 0!==F?F:[],e=-1,t=[],E&&N.push(E),E=i)}while(void 0!==f);return 0!==t.length&&(O=t[t.length-1][1]),O}function c(u){var o=new Array(u.length);return{enter:function(f){for(var a=0;a<u.length;a++)if(null==o[a]){var n=r(u[a],f.kind,!1);if(n){var e=n.apply(u[a],arguments);if(!1===e)o[a]=f;else if(e===m)o[a]=m;else if(void 0!==e)return e}}},leave:function(f){for(var a=0;a<u.length;a++)if(null==o[a]){var n=r(u[a],f.kind,!0);if(n){var e=n.apply(u[a],arguments);if(e===m)o[a]=m;else if(void 0!==e&&!1!==e)return e}}else o[a]===f&&(o[a]=null)}}}function r(u,o,d){var f=u[o];if(f){if(!d&&"function"==typeof f)return f;var a=d?f.leave:f.enter;if("function"==typeof a)return a}else{var n=d?u.leave:u.enter;if(n){if("function"==typeof n)return n;var e=n[o];if("function"==typeof e)return e}}}},69251:(_,T,p)=>{p.r(T),p.d(T,{getOperationAST:()=>v});var y=p(87948);function v(I,m){for(var l=null,c=0,r=I.definitions;c<r.length;c++){var o,u=r[c];if(u.kind===y.h.OPERATION_DEFINITION)if(null==m){if(l)return null;l=u}else if((null===(o=u.name)||void 0===o?void 0:o.value)===m)return u}return l}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunkaltair_app=self.webpackChunkaltair_app||[]).push([[790],{98790:(m,v,f)=>{"use strict";f.r(v),f.d(v,{ActionCableSubscriptionProvider:()=>l});var g=f(71251),b=f(82475),y=f(80650),s=f.n(y);class l extends g.q{execute(t){const o=s().createConsumer(this.subscriptionUrl);return new b.y(n=>{this.subscription=o.subscriptions.create(Object.assign({},{channel:this.connectionParams.channel||"GraphqlChannel",channelId:Math.round(Date.now()+1e5*Math.random()).toString(16)},{}),{connected:function(){this.perform("execute",t)},received:function(e){(e.result.data||e.result.errors)&&n.next(e.result),e.more||n.complete()}})})}close(){var t;null==(t=this.subscription)||t.unsubscribe()}}},80650:function(m,v,f){var g,b;(function(){(function(){(function(){var l=[].slice;this.ActionCable={INTERNAL:{message_types:{welcome:"welcome",ping:"ping",confirmation:"confirm_subscription",rejection:"reject_subscription"},default_mount_path:"/cable",protocols:["actioncable-v1-json","actioncable-unsupported"]},WebSocket:window.WebSocket,logger:window.console,createConsumer:function(i){var t;return null==i&&(i=null!=(t=this.getConfig("url"))?t:this.INTERNAL.default_mount_path),new s.Consumer(this.createWebSocketURL(i))},getConfig:function(i){var t;return null!=(t=document.head.querySelector("meta[name='action-cable-"+i+"']"))?t.getAttribute("content"):void 0},createWebSocketURL:function(i){var t;return i&&!/^wss?:/i.test(i)?((t=document.createElement("a")).href=i,t.href=t.href,t.protocol=t.protocol.replace("http","ws"),t.href):i},startDebugging:function(){return this.debugging=!0},stopDebugging:function(){return this.debugging=null},log:function(){var i,t;if(i=1<=arguments.length?l.call(arguments,0):[],this.debugging)return i.push(Date.now()),(t=this.logger).log.apply(t,["[ActionCable]"].concat(l.call(i)))}}}).call(this)}).call(this);var s=this.ActionCable;(function(){(function(){s.ConnectionMonitor=function(){var i,t,o;function n(e){this.connection=e,this.visibilityDidChange=function(i,t){return function(){return i.apply(t,arguments)}}(this.visibilityDidChange,this),this.reconnectAttempts=0}return n.pollInterval={min:3,max:30},n.staleThreshold=6,n.prototype.start=function(){if(!this.isRunning())return this.startedAt=t(),delete this.stoppedAt,this.startPolling(),document.addEventListener("visibilitychange",this.visibilityDidChange),s.log("ConnectionMonitor started. pollInterval = "+this.getPollInterval()+" ms")},n.prototype.stop=function(){if(this.isRunning())return this.stoppedAt=t(),this.stopPolling(),document.removeEventListener("visibilitychange",this.visibilityDidChange),s.log("ConnectionMonitor stopped")},n.prototype.isRunning=function(){return null!=this.startedAt&&null==this.stoppedAt},n.prototype.recordPing=function(){return this.pingedAt=t()},n.prototype.recordConnect=function(){return this.reconnectAttempts=0,this.recordPing(),delete this.disconnectedAt,s.log("ConnectionMonitor recorded connect")},n.prototype.recordDisconnect=function(){return this.disconnectedAt=t(),s.log("ConnectionMonitor recorded disconnect")},n.prototype.startPolling=function(){return this.stopPolling(),this.poll()},n.prototype.stopPolling=function(){return clearTimeout(this.pollTimeout)},n.prototype.poll=function(){return this.pollTimeout=setTimeout((e=this,function(){return e.reconnectIfStale(),e.poll()}),this.getPollInterval());var e},n.prototype.getPollInterval=function(){var e,c,u,h;return u=(h=this.constructor.pollInterval).min,c=h.max,e=5*Math.log(this.reconnectAttempts+1),Math.round(1e3*i(e,u,c))},n.prototype.reconnectIfStale=function(){if(this.connectionIsStale())return s.log("ConnectionMonitor detected stale connection. reconnectAttempts = "+this.reconnectAttempts+", pollInterval = "+this.getPollInterval()+" ms, time disconnected = "+o(this.disconnectedAt)+" s, stale threshold = "+this.constructor.staleThreshold+" s"),this.reconnectAttempts++,this.disconnectedRecently()?s.log("ConnectionMonitor skipping reopening recent disconnect"):(s.log("ConnectionMonitor reopening"),this.connection.reopen())},n.prototype.connectionIsStale=function(){var e;return o(null!=(e=this.pingedAt)?e:this.startedAt)>this.constructor.staleThreshold},n.prototype.disconnectedRecently=function(){return this.disconnectedAt&&o(this.disconnectedAt)<this.constructor.staleThreshold},n.prototype.visibilityDidChange=function(){if("visible"===document.visibilityState)return setTimeout((e=this,function(){if(e.connectionIsStale()||!e.connection.isOpen())return s.log("ConnectionMonitor reopening stale connection on visibilitychange. visbilityState = "+document.visibilityState),e.connection.reopen()}),200);var e},t=function(){return(new Date).getTime()},o=function(e){return(t()-e)/1e3},i=function(e,c,u){return Math.max(c,Math.min(u,e))},n}()}).call(this),function(){var i,t,o,n,c=[].slice,h=[].indexOf||function(p){for(var r=0,a=this.length;r<a;r++)if(r in this&&this[r]===p)return r;return-1};i=(o=s.INTERNAL).message_types,n=2<=(t=o.protocols).length?c.call(t,0,t.length-1):(0,[]),s.Connection=function(){function p(r){this.consumer=r,this.open=function(p,r){return function(){return p.apply(r,arguments)}}(this.open,this),this.subscriptions=this.consumer.subscriptions,this.monitor=new s.ConnectionMonitor(this),this.disconnected=!0}return p.reopenDelay=500,p.prototype.send=function(r){return!!this.isOpen()&&(this.webSocket.send(JSON.stringify(r)),!0)},p.prototype.open=function(){return this.isActive()?(s.log("Attempted to open WebSocket, but existing socket is "+this.getState()),!1):(s.log("Opening WebSocket, current state is "+this.getState()+", subprotocols: "+t),null!=this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new s.WebSocket(this.consumer.url,t),this.installEventHandlers(),this.monitor.start(),!0)},p.prototype.close=function(r){var d;if((null!=r?r:{allowReconnect:!0}).allowReconnect||this.monitor.stop(),this.isActive())return null!=(d=this.webSocket)?d.close():void 0},p.prototype.reopen=function(){if(s.log("Reopening WebSocket, current state is "+this.getState()),!this.isActive())return this.open();try{return this.close()}catch(a){return s.log("Failed to reopen WebSocket",a)}finally{s.log("Reopening WebSocket in "+this.constructor.reopenDelay+"ms"),setTimeout(this.open,this.constructor.reopenDelay)}},p.prototype.getProtocol=function(){var r;return null!=(r=this.webSocket)?r.protocol:void 0},p.prototype.isOpen=function(){return this.isState("open")},p.prototype.isActive=function(){return this.isState("open","connecting")},p.prototype.isProtocolSupported=function(){var r;return r=this.getProtocol(),h.call(n,r)>=0},p.prototype.isState=function(){var r,a;return a=1<=arguments.length?c.call(arguments,0):[],r=this.getState(),h.call(a,r)>=0},p.prototype.getState=function(){var r,a;for(a in WebSocket)if(WebSocket[a]===(null!=(r=this.webSocket)?r.readyState:void 0))return a.toLowerCase();return null},p.prototype.installEventHandlers=function(){var r,a;for(r in this.events)a=this.events[r].bind(this),this.webSocket["on"+r]=a},p.prototype.uninstallEventHandlers=function(){var r;for(r in this.events)this.webSocket["on"+r]=function(){}},p.prototype.events={message:function(r){var a,d,S,A;if(this.isProtocolSupported())switch(S=JSON.parse(r.data),a=S.identifier,d=S.message,A=S.type,A){case i.welcome:return this.monitor.recordConnect(),this.subscriptions.reload();case i.ping:return this.monitor.recordPing();case i.confirmation:return this.subscriptions.notify(a,"connected");case i.rejection:return this.subscriptions.reject(a);default:return this.subscriptions.notify(a,"received",d)}},open:function(){if(s.log("WebSocket onopen event, using '"+this.getProtocol()+"' subprotocol"),this.disconnected=!1,!this.isProtocolSupported())return s.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close:function(r){if(s.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error:function(){return s.log("WebSocket onerror event")}},p}()}.call(this),function(){var l=[].slice;s.Subscriptions=function(){function i(t){this.consumer=t,this.subscriptions=[]}return i.prototype.create=function(t,o){var n,c;return c=new s.Subscription(this.consumer,"object"==typeof(n=t)?n:{channel:n},o),this.add(c)},i.prototype.add=function(t){return this.subscriptions.push(t),this.consumer.ensureActiveConnection(),this.notify(t,"initialized"),this.sendCommand(t,"subscribe"),t},i.prototype.remove=function(t){return this.forget(t),this.findAll(t.identifier).length||this.sendCommand(t,"unsubscribe"),t},i.prototype.reject=function(t){var o,n,e,c,u;for(c=[],o=0,n=(e=this.findAll(t)).length;o<n;o++)this.forget(u=e[o]),this.notify(u,"rejected"),c.push(u);return c},i.prototype.forget=function(t){var o;return this.subscriptions=function(){var n,e,c,u;for(u=[],n=0,e=(c=this.subscriptions).length;n<e;n++)(o=c[n])!==t&&u.push(o);return u}.call(this),t},i.prototype.findAll=function(t){var o,n,e,c,u;for(c=[],o=0,n=(e=this.subscriptions).length;o<n;o++)(u=e[o]).identifier===t&&c.push(u);return c},i.prototype.reload=function(){var t,o,n,e;for(e=[],t=0,o=(n=this.subscriptions).length;t<o;t++)e.push(this.sendCommand(n[t],"subscribe"));return e},i.prototype.notifyAll=function(){var t,o,n,e,c,u;for(o=arguments[0],t=2<=arguments.length?l.call(arguments,1):[],u=[],n=0,e=(c=this.subscriptions).length;n<e;n++)u.push(this.notify.apply(this,[c[n],o].concat(l.call(t))));return u},i.prototype.notify=function(){var t,o,n,e,c,u,h;for(u=arguments[0],o=arguments[1],t=3<=arguments.length?l.call(arguments,2):[],c=[],n=0,e=(h="string"==typeof u?this.findAll(u):[u]).length;n<e;n++)c.push("function"==typeof(u=h[n])[o]?u[o].apply(u,t):void 0);return c},i.prototype.sendCommand=function(t,o){return this.consumer.send({command:o,identifier:t.identifier})},i}()}.call(this),function(){s.Subscription=function(){var l;function i(t,o,n){this.consumer=t,null==o&&(o={}),this.identifier=JSON.stringify(o),l(this,n)}return i.prototype.perform=function(t,o){return null==o&&(o={}),o.action=t,this.send(o)},i.prototype.send=function(t){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(t)})},i.prototype.unsubscribe=function(){return this.consumer.subscriptions.remove(this)},l=function(t,o){var n;if(null!=o)for(n in o)t[n]=o[n];return t},i}()}.call(this),function(){s.Consumer=function(){function l(i){this.url=i,this.subscriptions=new s.Subscriptions(this),this.connection=new s.Connection(this)}return l.prototype.send=function(i){return this.connection.send(i)},l.prototype.connect=function(){return this.connection.open()},l.prototype.disconnect=function(){return this.connection.close({allowReconnect:!1})},l.prototype.ensureActiveConnection=function(){if(!this.connection.isActive())return this.connection.open()},l}()}.call(this)}).call(this),m.exports?m.exports=s:void 0!==(b="function"==typeof(g=s)?g.call(v,f,v,m):g)&&(m.exports=b)}).call(this)}}]);