(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0aa765"],{"10b2":function(e,n,t){(function(e){e(t("56b3"))})((function(e){var n={pairs:"()[]{}''\"\"",closeBefore:")]}'\":;>",triples:"",explode:"[]{}"},t=e.Pos;function r(e,t){return"pairs"==t&&"string"==typeof e?e:"object"==typeof e&&null!=e[t]?e[t]:n[t]}e.defineOption("autoCloseBrackets",!1,(function(n,t,s){s&&s!=e.Init&&(n.removeKeyMap(i),n.state.closeBrackets=null),t&&(a(r(t,"pairs")),n.state.closeBrackets=t,n.addKeyMap(i))}));var i={Backspace:l,Enter:c};function a(e){for(var n=0;n<e.length;n++){var t=e.charAt(n),r="'"+t+"'";i[r]||(i[r]=s(t))}}function s(e){return function(n){return f(n,e)}}function o(e){var n=e.state.closeBrackets;if(!n||n.override)return n;var t=e.getModeAt(e.getCursor());return t.closeBrackets||n}function l(n){var i=o(n);if(!i||n.getOption("disableInput"))return e.Pass;for(var a=r(i,"pairs"),s=n.listSelections(),l=0;l<s.length;l++){if(!s[l].empty())return e.Pass;var c=p(n,s[l].head);if(!c||a.indexOf(c)%2!=0)return e.Pass}for(l=s.length-1;l>=0;l--){var h=s[l].head;n.replaceRange("",t(h.line,h.ch-1),t(h.line,h.ch+1),"+delete")}}function c(n){var t=o(n),i=t&&r(t,"explode");if(!i||n.getOption("disableInput"))return e.Pass;for(var a=n.listSelections(),s=0;s<a.length;s++){if(!a[s].empty())return e.Pass;var l=p(n,a[s].head);if(!l||i.indexOf(l)%2!=0)return e.Pass}n.operation((function(){var e=n.lineSeparator()||"\n";n.replaceSelection(e+e,null),h(n,-1),a=n.listSelections();for(var t=0;t<a.length;t++){var r=a[t].head.line;n.indentLine(r,null,!0),n.indentLine(r+1,null,!0)}}))}function h(e,n){for(var t=[],r=e.listSelections(),i=0,a=0;a<r.length;a++){var s=r[a];s.head==e.getCursor()&&(i=a);var o=s.head.ch||n>0?{line:s.head.line,ch:s.head.ch+n}:{line:s.head.line-1};t.push({anchor:o,head:o})}e.setSelections(t,i)}function u(n){var r=e.cmpPos(n.anchor,n.head)>0;return{anchor:new t(n.anchor.line,n.anchor.ch+(r?-1:1)),head:new t(n.head.line,n.head.ch+(r?1:-1))}}function f(n,i){var a=o(n);if(!a||n.getOption("disableInput"))return e.Pass;var s=r(a,"pairs"),l=s.indexOf(i);if(-1==l)return e.Pass;for(var c,f=r(a,"closeBefore"),p=r(a,"triples"),g=s.charAt(l+1)==i,v=n.listSelections(),b=l%2==0,k=0;k<v.length;k++){var P,S=v[k],y=S.head,O=n.getRange(y,t(y.line,y.ch+1));if(b&&!S.empty())P="surround";else if(!g&&b||O!=i)if(g&&y.ch>1&&p.indexOf(i)>=0&&n.getRange(t(y.line,y.ch-2),y)==i+i){if(y.ch>2&&/\bstring/.test(n.getTokenTypeAt(t(y.line,y.ch-2))))return e.Pass;P="addFour"}else if(g){var w=0==y.ch?" ":n.getRange(t(y.line,y.ch-1),y);if(e.isWordChar(O)||w==i||e.isWordChar(w))return e.Pass;P="both"}else{if(!b||!(0===O.length||/\s/.test(O)||f.indexOf(O)>-1))return e.Pass;P="both"}else P=g&&d(n,y)?"both":p.indexOf(i)>=0&&n.getRange(y,t(y.line,y.ch+3))==i+i+i?"skipThree":"skip";if(c){if(c!=P)return e.Pass}else c=P}var x=l%2?s.charAt(l-1):i,A=l%2?i:s.charAt(l+1);n.operation((function(){if("skip"==c)h(n,1);else if("skipThree"==c)h(n,3);else if("surround"==c){for(var e=n.getSelections(),t=0;t<e.length;t++)e[t]=x+e[t]+A;n.replaceSelections(e,"around"),e=n.listSelections().slice();for(t=0;t<e.length;t++)e[t]=u(e[t]);n.setSelections(e)}else"both"==c?(n.replaceSelection(x+A,null),n.triggerElectric(x+A),h(n,-1)):"addFour"==c&&(n.replaceSelection(x+x+x+x,"before"),h(n,1))}))}function p(e,n){var r=e.getRange(t(n.line,n.ch-1),t(n.line,n.ch+1));return 2==r.length?r:null}function d(e,n){var r=e.getTokenAt(t(n.line,n.ch+1));return/\bstring/.test(r.type)&&r.start==n.ch&&(0==n.ch||!/\bstring/.test(e.getTokenTypeAt(n)))}a(n.pairs+"`")}))}}]);