error TS2339: Property 'map' does not exist on type 'Subscription'. code example
Example: Property 'map' does not exist on type 'Observable'.ts(2339)
typescript by Outrageous Octopus
on Feb 05 2021 Donate
Comment
0
const request = this.evidenceService.get().pipe(
map((res) => res.data)),
catchError(error => Observable.of(null))
);
Source: stackoverflow.com
Add a Grepper Answer
TypeScript answers related to “error TS2339: Property 'map' does not exist on type 'Subscription'.”
'push' does not exist on type 'Observable' property 'do' does not exist on type 'observable>'. angular 9 property 'length' does not exist on type 'T' Property 'of' does not exist on type 'typeof Observable'. Property 'orderBy' does not exist on type 'AngularFirestoreCollection Property 'router' does not exist on type 'LoginComponent' nativescript property 'unsubscribe' does not exist on type 'Observable' Property 'value' does not exist on type 'HTMLElement'. union type property does not exist
TypeScript queries related to “error TS2339: Property 'map' does not exist on type 'Subscription'.”
Property 'map' does not exist on type 'Observable[]>'. Property 'map' does not exist on type 'Element'. Property 'map' does not exist on type 'Observable'. any property 'map' does not exist on type .ts(2339) react typescript Property 'map' does not exist on type .ts(2339) react Property 'map' does not exist on type .ts(2339) Property 'map' does not exist on type 'number | typescript property 'map' does not exist on type 'observable object ' Node Property 'map' does not exist on type Object Node Property 'map' does not exist on type '{}' Property 'map' does not exist on type 'Observab Property 'map' does not exist on type 'Observable Property 'map' does not exist on type 'Observable' solved: Property 'map' does not exist on type 'Observable'.ts Property 'map' does not exist on type 'Observable'.(2339) Property 'success' does not exist on type 'Object' map typescript Property 'map' does not exist on type 'Observable'.ts(2339) Property 'map' does not exist on type 'Observable'. angular Property 'map' does not exist on type 'Observable'. TS2339: Property 'map' does not exist on type 'Observable '. Property 'map' does not exist on type 'never'.ts(2339) Property 'map' does not exist on type 'State' error TS2339: Property 'map' does not exist on type 'Subscription'. map does not exist on type observable object Property 'map' does not exist on type 'Observable[]> Property 'map' does not exist on type 'Observable[]>' any Property 'map' does not exist on type 'Observable Property 'map' does not exist on type 'Observable Property 'map' does not exist on type 'Observable'.ts(2339) property map does not exist on object angular frontend property map does not exist on object angular any Property 'map' does not exist on type 'Observable'. Property 'map' does not exist on type 'Dispatch ts Property 'map' does not exist on type {} ts Property 'map' does not exist on type error TS2339: Property 'map' does not exist on type 'Observable' Property 'map' does not exist on type '{ 1: string; 2: string; 3: string; } Property 'map' does not exist on type 'Observable'.ts(2339) react Property 'map' does not exist on type '{}' Property 'map' does not exist on type '{}' property map does not exist on type observer object property 'map' does not exist on type 'unknown'.ts(2339) Property 'map' does not exist on type 'Observable property map doesn't exist on Property 'map' does not exist on type 'Observable[]> Property 'map' does not exist on type 'void'. Property 'Map' does not exist on type 'void' Property 'map' does not exist on type react Property 'map' does not exist on type 'Observable '. ts Property 'map' does not exist on type 'unknown' Property 'map' does not exist on type 'Observable' Property 'map' does not exist on type 'Object'. ionic Property 'map' does not exist on type 'Observable>' Property 'map' does not exist on type 'string | string[]' Property 'map' does not exist on type 'Observable ' 'map' does not exist on type 'Observable'. Property 'map' does not exist on type 'Observable'.ts(2339) Property 'map' does not exist on type '{} | (string | number | Partial>)[]'. Property 'map' does not exist on type '{} Property 'map' does not exist on type 'Observable<[PlanetaKinoV2City[] Typescript Property 'map' does not exist on type 'string' Property 'map' does not exist on type 'Observable' any property 'map' does not exist on type 'observable object ' Property 'map' does not exist on type 'Observable> Property 'map' does not exist on type '{} | (string | number | Partial>)[]'. angular Property 'map' does not exist on type ts file Property 'map' does not exist on type property map does not exist typescript Property 'map' does not exist on type 'Observable'.t Property 'map' does not exist on type 'Subject>'. property map dos=es not exist on type observable Property 'map' does not exist on type 'Observable' Property 'map' does not exist on type 'Observable' any Property 'map' does not exist on type 'Observable' Property 'map' does not exist on type 'Subscription'.ts(2339) property 'map' does not exist on type 'object'.ts(2339) Property 'map' does not exist on type 'object' tsx Property 'map' does not exist on type 'object' tsx .3 Property 'map' does not exist on type 'object' react Property 'map' does not exist on type 'object'.ts(2 Property 'map' does not exist on type 'Observable'. TS2339: Property 'map' does not exist on type 'Subject >' Property 'map' does not exist on type 'Observable[]>'. Property 'map' does not exist on type 'string'. map does not exist on type observable object angular 8 Property 'map' does not exist on type 'Observable'.ts(2339) angular Property 'map' does not exist on type 'Observable' in mock data angular ]Property 'map' does not exist on type 'Observable' in mock data angulkar ]Property 'map' does not exist on type 'Observable' in mock data Property 'map' does not exist on type 'Observable' in mock data Property 'map' does not exist on type '(barcodeArray: []) => any'.ts(2339) Property 'map' does not exist on type 'Observable'. Property 'map' does not exist on type 'Observable'. 'map' does not exist on type 'Observable<[Category[], Category[]]>' Property 'map' does not exist on type 'Observable'. Property 'map' does not exist on type 'Observable'.ts(2339) Property 'map' does not exist on type 'Observable typescript property 'map' does not exist on type Property 'map' does not exist on type 'Observable Property 'map' does not exist on type 'Observable>'. in rxjs 6.6.0 Property 'map' does not exist on type 'Subscription' Property 'map' does not exist on type 'Observable'. property 'map' does not exist on type 'element' Property 'map' does not exist on type Element Property 'map' does not exist on type '(Element | Element[]) & ReactNode'. property 'map' does not exist on type typescript Property 'map' does not exist on type property 'map' does not exist on type 'object' Property 'map' does not exist on type 'Observable' error TS2339: Property 'map' does not exist on type 'Observable' typescript object Property 'map' does not exist on type Property 'map' does not exist on type 'Object'. Property 'map' does not exist on type ' property map does not exist on type {} roperty 'map' does not exist on type 'Observable'. map does not exist on type observable Property 'map' does not exist on type 'Observable ngrx Property 'map' does not exist on type 'Observable typescript any Property 'map' does not exist on type Property 'map' does not exist on type 'Observable>' Property 'map' does not exist on type angular 10 Property 'map' does not exist on type 'Observable' Property 'map' does not exist on type 'Observable[]>' property 'map' does not exist on type 'observable response ' angular 9 Property 'map' does not exist on type 'Observable[] firebase Property 'map' does not exist on type firestore angular Property 'map' does not exist on type 'Observable[] Property map does not exist on type "Map" "Property map does not exist on type Map" "Property 'map' does not exist on type 'Map" Property 'map' does not exist on type 'Map property map does not exist on type object Property 'map' does not exist on type 'IBook'.ts(2339) react-redux Property 'map' does not exist on type 'I react Property 'map' does not exist on type 'I Property 'map' does not exist on type 'IBook'.ts(2339) Property 'map' does not exist on type 'IBook'. property map does not exist on type typescript property map does not exist on type {}[] property map does not exist on type observable error TS2339 Property 'map' does not exist on type error TS2339: Property 'map' does not exist on type 'Observable error TS2339: Property 'map' does not exist on type 'Observable'. Property 'map' does not exist on type 'Observable' Property 'map' does not exist on type 'Promise'.ts Property 'map' does not exist on type 'Observable'.ts(2339)
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.TaysCodeMirror=t()}(this,function(){"use strict";var e=navigator.userAgent,t=navigator.platform,r=/gecko\/\d/i.test(e),n=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),l=n||i||o,a=l&&(n?document.documentMode||6:+(o||i)[1]),s=!o&&/WebKit\//.test(e),u=s&&/Qt\/\d+\.\d+/.test(e),c=!o&&/Chrome\//.test(e),f=/Opera\//.test(e),h=/Apple Computer/.test(navigator.vendor),d=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),p=/PhantomJS/.test(e),g=!o&&/AppleWebKit/.test(e)&&/Mobile\/\w+/.test(e),v=/Android/.test(e),m=g||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),y=g||/Mac/.test(t),b=/\bCrOS\b/.test(e),w=/win/i.test(t),x=f&&e.match(/Version\/(\d*\.\d*)/);x&&(x=Number(x[1])),x&&x>=15&&(f=!1,s=!0);var C=y&&(u||f&&(null==x||x<12.11)),k=r||l&&a>=9;function S(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var T,L=function(e,t){var r=e.className,n=S(t).exec(r);if(n){var i=r.slice(n.index+n[0].length);e.className=r.slice(0,n.index)+(i?n[1]+i:"")}};function M(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function N(e,t){return M(e).appendChild(t)}function A(e,t,r,n){var i=document.createElement(e);if(r&&(i.className=r),n&&(i.style.cssText=n),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return l+(t-o);l+=a-o,l+=r-l%r,o=a+1}}g?F=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:l&&(F=function(e){try{e.select()}catch(e){}});var R=function(){this.id=null,this.f=null,this.time=0,this.handler=P(this.onTimeout,this)};function B(e,t){for(var r=0;r=t)return n+Math.min(l,t-i);if(i+=o-n,n=o+1,(i+=r-i%r)>=t)return n}}var $=[""];function _(e){for(;$.length<=e;)$.push(Y($)+" ");return $[e]}function Y(e){return e[e.length-1]}function q(e,t){for(var r=[],n=0;n""&&(e.toUpperCase()!=e.toLowerCase()||J.test(e))}function te(e,t){return t?!!(t.source.indexOf("\\w")>-1&&ee(e))||t.test(e):ee(e)}function re(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ne=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ie(e){return e.charCodeAt(0)>=768&&ne.test(e)}function oe(e,t,r){for(;(r<0?t>0:tr?-1:1;;){if(t==r)return t;var i=(t+r)/2,o=n<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:r;e(o)?r=o:t=o+n}}var ae=null;function se(e,t,r){var n;ae=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&"before"==r?n=i:ae=i),o.from==t&&(o.from!=o.to&&"before"!=r?n=i:ae=i)}return null!=n?n:ae}var ue=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,n=/[stwN]/,i=/[LRr]/,o=/[Lb1n]/,l=/[1n]/;function a(e,t,r){this.level=e,this.from=t,this.to=r}return function(s,u){var c="ltr"==u?"L":"R";if(0==s.length||"ltr"==u&&!r.test(s))return!1;for(var f,h=s.length,d=[],p=0;p-1&&(n[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function ge(e,t){var r=de(e,t);if(r.length)for(var n=Array.prototype.slice.call(arguments,2),i=0;i0}function be(e){e.prototype.on=function(e,t){he(this,e,t)},e.prototype.off=function(e,t){pe(this,e,t)}}function we(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function xe(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ce(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function ke(e){we(e),xe(e)}function Se(e){return e.target||e.srcElement}function Te(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),y&&e.ctrlKey&&1==t&&(t=3),t}var Le,Me,Ne=function(){if(l&&a<9)return!1;var e=A("div");return"draggable"in e||"dragDrop"in e}();function Ae(e){if(null==Le){var t=A("span","");N(e,A("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Le=t.offsetWidth<=1&&t.offsetHeight>2&&!(l&&a<8))}var r=Le?A("span",""):A("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}function Oe(e){if(null!=Me)return Me;var t=N(e,document.createTextNode("AخA")),r=T(t,0,1).getBoundingClientRect(),n=T(t,1,2).getBoundingClientRect();return M(e),!(!r||r.left==r.right)&&(Me=n.right-r.right<3)}var De,We=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,r=[],n=e.length;t<=n;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),l=o.indexOf("\r");-1!=l?(r.push(o.slice(0,l)),t+=l+1):(r.push(o),t=i+1)}return r}:function(e){return e.split(/\r\n?|\n/)},He=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Ee="oncopy"in(De=A("div"))||(De.setAttribute("oncopy","return;"),"function"==typeof De.oncopy),Fe=null;var Pe={},Ie={};function ze(e){if("string"==typeof e&&Ie.hasOwnProperty(e))e=Ie[e];else if(e&&"string"==typeof e.name&&Ie.hasOwnProperty(e.name)){var t=Ie[e.name];"string"==typeof t&&(t={name:t}),(e=Q(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return ze("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return ze("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Re(e,t){t=ze(t);var r=Pe[t.name];if(!r)return Re(e,"text/plain");var n=r(e,t);if(Be.hasOwnProperty(t.name)){var i=Be[t.name];for(var o in i)i.hasOwnProperty(o)&&(n.hasOwnProperty(o)&&(n["_"+o]=n[o]),n[o]=i[o])}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var l in t.modeProps)n[l]=t.modeProps[l];return n}var Be={};function Ve(e,t){I(t,Be.hasOwnProperty(e)?Be[e]:Be[e]={})}function je(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var r={};for(var n in t){var i=t[n];i instanceof Array&&(i=i.concat([])),r[n]=i}return r}function Ge(e,t){for(var r;e.innerMode&&(r=e.innerMode(t))&&r.mode!=e;)t=r.state,e=r.mode;return r||{mode:e,state:t}}function Ue(e,t,r){return!e.startState||e.startState(t,r)}var Ke=function(e,t,r){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=r};function Xe(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var r=e;!r.lines;)for(var n=0;;++n){var i=r.children[n],o=i.chunkSize();if(t=e.first&&tr?et(r,Xe(e,r).text.length):function(e,t){var r=e.ch;return null==r||r>t?et(e.line,t):r<0?et(e.line,0):e}(t,Xe(e,t.line).text.length)}function st(e,t){for(var r=[],n=0;n=this.string.length},Ke.prototype.sol=function(){return this.pos==this.lineStart},Ke.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ke.prototype.next=function(){if(this.post},Ke.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ke.prototype.skipToEnd=function(){this.pos=this.string.length},Ke.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ke.prototype.backUp=function(e){this.pos-=e},Ke.prototype.column=function(){return this.lastColumnPos0?null:(n&&!1!==t&&(this.pos+=n[0].length),n)}var i=function(e){return r?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},Ke.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ke.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ke.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ke.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var ut=function(e,t){this.state=e,this.lookAhead=t},ct=function(e,t,r,n){this.state=t,this.doc=e,this.line=r,this.maxLookAhead=n||0,this.baseTokens=null,this.baseTokenPos=1};function ft(e,t,r,n){var i=[e.state.modeGen],o={};wt(e,t.text,e.doc.mode,r,function(e,t){return i.push(e,t)},o,n);for(var l=r.state,a=function(n){r.baseTokens=i;var a=e.state.overlays[n],s=1,u=0;r.state=!0,wt(e,t.text,a.mode,r,function(e,t){for(var r=s;ue&&i.splice(s,1,e,i[s+1],n),s+=2,u=Math.min(e,n)}if(t)if(a.opaque)i.splice(r,s-r,e,"overlay "+t),s=r+2;else for(;re.options.maxHighlightLength&&je(e.doc.mode,n.state),o=ft(e,t,n);i&&(n.state=i),t.stateAfter=n.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),r===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function dt(e,t,r){var n=e.doc,i=e.display;if(!n.mode.startState)return new ct(n,!0,t);var o=function(e,t,r){for(var n,i,o=e.doc,l=r?-1:t-(e.doc.mode.innerMode?1e3:100),a=t;a>l;--a){if(a<=o.first)return o.first;var s=Xe(o,a-1),u=s.stateAfter;if(u&&(!r||a+(u instanceof ut?u.lookAhead:0)<=o.modeFrontier))return a;var c=z(s.text,null,e.options.tabSize);(null==i||n>c)&&(i=a-1,n=c)}return i}(e,t,r),l=o>n.first&&Xe(n,o-1).stateAfter,a=l?ct.fromSaved(n,l,o):new ct(n,Ue(n.mode),o);return n.iter(o,t,function(r){pt(e,r.text,a);var n=a.line;r.stateAfter=n==t-1||n%5==0||n>=i.viewFrom&&nt.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}ct.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},ct.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},ct.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ct.fromSaved=function(e,t,r){return t instanceof ut?new ct(e,je(e.mode,t.state),r,t.lookAhead):new ct(e,je(e.mode,t),r)},ct.prototype.save=function(e){var t=!1!==e?je(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ut(t,this.maxLookAhead):t};var mt=function(e,t,r){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=r};function yt(e,t,r,n){var i,o,l=e.doc,a=l.mode,s=Xe(l,(t=at(l,t)).line),u=dt(e,t.line,r),c=new Ke(s.text,e.options.tabSize,u);for(n&&(o=[]);(n||c.pose.options.maxHighlightLength?(a=!1,l&&pt(e,t,n,f.pos),f.pos=t.length,s=null):s=bt(vt(r,f,n.state,h),o),h){var d=h[0].name;d&&(s="m-"+(s?d+" "+s:d))}if(!a||c!=s){for(;u=t:o.to>t);(n||(n=[])).push(new kt(l,o.from,a?null:o.to))}}return n}(r,i,l),s=function(e,t,r){var n;if(e)for(var i=0;i=t:o.to>t)||o.from==t&&"bookmark"==l.type&&(!r||o.marker.insertLeft)){var a=null==o.from||(l.inclusiveLeft?o.from<=t:o.from0&&a)for(var b=0;bt)&&(!r||Wt(r,o.marker)<0)&&(r=o.marker)}return r}function It(e,t,r,n,i){var o=Xe(e,t),l=Ct&&o.markedSpans;if(l)for(var a=0;a=0&&f<=0||c<=0&&f>=0)&&(c<=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?tt(u.to,r)>=0:tt(u.to,r)>0)||c>=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?tt(u.from,n)<=0:tt(u.from,n)<0)))return!0}}}function zt(e){for(var t;t=Et(e);)e=t.find(-1,!0).line;return e}function Rt(e,t){var r=Xe(e,t),n=zt(r);return r==n?t:qe(n)}function Bt(e,t){if(t>e.lastLine())return t;var r,n=Xe(e,t);if(!Vt(e,n))return t;for(;r=Ft(n);)n=r.find(1,!0).line;return qe(n)+1}function Vt(e,t){var r=Ct&&t.markedSpans;if(r)for(var n=void 0,i=0;it.maxLineLength&&(t.maxLineLength=r,t.maxLine=e)})}var Xt=function(e,t,r){this.text=e,At(this,t),this.height=r?r(this):1};function $t(e){e.parent=null,Nt(e)}Xt.prototype.lineNo=function(){return qe(this)},be(Xt);var _t={},Yt={};function qt(e,t){if(!e||/^\s*$/.test(e))return null;var r=t.addModeClass?Yt:_t;return r[e]||(r[e]=e.replace(/\S+/g,"cm-$&"))}function Zt(e,t){var r=O("span",null,null,s?"padding-right: .1px":null),n={pre:O("pre",[r],"TaysCodeMirror-line"),content:r,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,l=void 0;n.pos=0,n.addToken=Jt,Oe(e.display.measure)&&(l=ce(o,e.doc.direction))&&(n.addToken=er(n.addToken,l)),n.map=[],rr(o,n,ht(e,o,t!=e.display.externalMeasured&&qe(o))),o.styleClasses&&(o.styleClasses.bgClass&&(n.bgClass=E(o.styleClasses.bgClass,n.bgClass||"")),o.styleClasses.textClass&&(n.textClass=E(o.styleClasses.textClass,n.textClass||""))),0==n.map.length&&n.map.push(0,0,n.content.appendChild(Ae(e.display.measure))),0==i?(t.measure.map=n.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(n.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(s){var a=n.content.lastChild;(/\bcm-tab\b/.test(a.className)||a.querySelector&&a.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return ge(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=E(n.pre.className,n.textClass||"")),n}function Qt(e){var t=A("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Jt(e,t,r,n,i,o,s){if(t){var u,c=e.splitSpaces?function(e,t){if(e.length>1&&!/ /.test(e))return e;for(var r=t,n="",i=0;iu&&f.from<=u);h++);if(f.to>=c)return e(r,n,i,o,l,a,s);e(r,n.slice(0,f.to-u),i,o,null,a,s),o=null,n=n.slice(f.to-u),u=f.to}}}function tr(e,t,r,n){var i=!n&&r.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!n&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",r.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function rr(e,t,r){var n=e.markedSpans,i=e.text,o=0;if(n)for(var l,a,s,u,c,f,h,d=i.length,p=0,g=1,v="",m=0;;){if(m==p){s=u=c=a="",h=null,f=null,m=1/0;for(var y=[],b=void 0,w=0;wp||C.collapsed&&x.to==p&&x.from==p)){if(null!=x.to&&x.to!=p&&m>x.to&&(m=x.to,u=""),C.className&&(s+=" "+C.className),C.css&&(a=(a?a+";":"")+C.css),C.startStyle&&x.from==p&&(c+=" "+C.startStyle),C.endStyle&&x.to==m&&(b||(b=[])).push(C.endStyle,x.to),C.title&&((h||(h={})).title=C.title),C.attributes)for(var k in C.attributes)(h||(h={}))[k]=C.attributes[k];C.collapsed&&(!f||Wt(f.marker,C)<0)&&(f=x)}else x.from>p&&m>x.from&&(m=x.from)}if(b)for(var S=0;S=d)break;for(var L=Math.min(d,m);;){if(v){var M=p+v.length;if(!f){var N=M>L?v.slice(0,L-p):v;t.addToken(t,N,l?l+s:s,c,p+N.length==m?u:"",a,h)}if(M>=L){v=v.slice(L-p),p=L;break}p=M,c=""}v=i.slice(o,o=r[g++]),l=qt(r[g++],t.cm.options)}}else for(var A=1;Ar)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function Ar(e,t,r,n){return Wr(e,Dr(e,t),r,n)}function Or(e,t){if(t>=e.display.viewFrom&&t=r.lineN&&t2&&o.push((s.bottom+u.top)/2-r.top)}}o.push(r.bottom-r.top)}}(e,t.view,t.rect),t.hasHeights=!0),(o=function(e,t,r,n){var i,o=Fr(t.map,r,n),s=o.node,u=o.start,c=o.end,f=o.collapse;if(3==s.nodeType){for(var h=0;h<4;h++){for(;u&&ie(t.line.text.charAt(o.coverStart+u));)--u;for(;o.coverStart+c1}(e))return t;var r=screen.logicalXDPI/screen.deviceXDPI,n=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*r,right:t.right*r,top:t.top*n,bottom:t.bottom*n}}(e.display.measure,i))}else{var d;u>0&&(f=n="right"),i=e.options.lineWrapping&&(d=s.getClientRects()).length>1?d["right"==n?d.length-1:0]:s.getBoundingClientRect()}if(l&&a<9&&!u&&(!i||!i.left&&!i.right)){var p=s.parentNode.getClientRects()[0];i=p?{left:p.left,right:p.left+tn(e.display),top:p.top,bottom:p.bottom}:Er}for(var g=i.top-t.rect.top,v=i.bottom-t.rect.top,m=(g+v)/2,y=t.view.measure.heights,b=0;bt)&&(i=(o=s-a)-1,t>=s&&(l="right")),null!=i){if(n=e[u+2],a==s&&r==(n.insertLeft?"left":"right")&&(l=r),"left"==r&&0==i)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)n=e[2+(u-=3)],l="left";if("right"==r&&i==s-a)for(;u=0&&(r=e[i]).left==r.right;i--);return r}function Ir(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t=n.text.length?(s=n.text.length,u="before"):s<=0&&(s=0,u="after"),!a)return l("before"==u?s-1:s,"before"==u);function c(e,t,r){return l(r?e-1:e,1==a[t].level!=r)}var f=se(a,s,u),h=ae,d=c(s,f,"before"==u);return null!=h&&(d.other=c(s,h,"before"!=u)),d}function $r(e,t){var r=0;t=at(e.doc,t),e.options.lineWrapping||(r=tn(e.display)*t.ch);var n=Xe(e.doc,t.line),i=Gt(n)+Cr(e.display);return{left:r,right:r,top:i,bottom:i+n.height}}function _r(e,t,r,n,i){var o=et(e,t,r);return o.xRel=i,n&&(o.outside=n),o}function Yr(e,t,r){var n=e.doc;if((r+=e.display.viewOffset)<0)return _r(n.first,0,null,-1,-1);var i=Ze(n,r),o=n.first+n.size-1;if(i>o)return _r(n.first+n.size-1,Xe(n,o).text.length,null,1,1);t<0&&(t=0);for(var l=Xe(n,i);;){var a=Jr(e,l,i,t,r),s=Pt(l,a.ch+(a.xRel>0||a.outside>0?1:0));if(!s)return a;var u=s.find(1);if(u.line==i)return u;l=Xe(n,i=u.line)}}function qr(e,t,r,n){n-=jr(t);var i=t.text.length,o=le(function(t){return Wr(e,r,t-1).bottom<=n},i,0);return{begin:o,end:i=le(function(t){return Wr(e,r,t).top>n},o,i)}}function Zr(e,t,r,n){return r||(r=Dr(e,t)),qr(e,t,r,Gr(e,t,Wr(e,r,n),"line").top)}function Qr(e,t,r,n){return!(e.bottom<=r)&&(e.top>r||(n?e.left:e.right)>t)}function Jr(e,t,r,n,i){i-=Gt(t);var o=Dr(e,t),l=jr(t),a=0,s=t.text.length,u=!0,c=ce(t,e.doc.direction);if(c){var f=(e.options.lineWrapping?function(e,t,r,n,i,o,l){var a=qr(e,t,n,l),s=a.begin,u=a.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,f=null,h=0;h=u||d.to<=s)){var p=1!=d.level,g=Wr(e,n,p?Math.min(u,d.to)-1:Math.max(s,d.from)).right,v=gv)&&(c=d,f=v)}}c||(c=i[i.length-1]);c.fromu&&(c={from:c.from,to:u,level:c.level});return c}:function(e,t,r,n,i,o,l){var a=le(function(a){var s=i[a],u=1!=s.level;return Qr(Xr(e,et(r,u?s.to:s.from,u?"before":"after"),"line",t,n),o,l,!0)},0,i.length-1),s=i[a];if(a>0){var u=1!=s.level,c=Xr(e,et(r,u?s.from:s.to,u?"after":"before"),"line",t,n);Qr(c,o,l,!0)&&c.top>l&&(s=i[a-1])}return s})(e,t,r,o,c,n,i);a=(u=1!=f.level)?f.from:f.to-1,s=u?f.to:f.from-1}var h,d,p=null,g=null,v=le(function(t){var r=Wr(e,o,t);return r.top+=l,r.bottom+=l,!!Qr(r,n,i,!1)&&(r.top<=i&&r.left<=n&&(p=t,g=r),!0)},a,s),m=!1;if(g){var y=n-g.left=w.bottom?1:0}return _r(r,v=oe(t.text,v,1),d,m,n-h)}function en(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Hr){Hr=A("pre",null,"TaysCodeMirror-line-like");for(var t=0;t<49;++t)Hr.appendChild(document.createTextNode("x")),Hr.appendChild(A("br"));Hr.appendChild(document.createTextNode("x"))}N(e.measure,Hr);var r=Hr.offsetHeight/50;return r>3&&(e.cachedTextHeight=r),M(e.measure),r||1}function tn(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=A("span","xxxxxxxxxx"),r=A("pre",[t],"TaysCodeMirror-line-like");N(e.measure,r);var n=t.getBoundingClientRect(),i=(n.right-n.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function rn(e){for(var t=e.display,r={},n={},i=t.gutters.clientLeft,o=t.gutters.firstChild,l=0;o;o=o.nextSibling,++l){var a=e.display.gutterSpecs[l].className;r[a]=o.offsetLeft+o.clientLeft+i,n[a]=o.clientWidth}return{fixedPos:nn(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:r,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function nn(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function on(e){var t=en(e.display),r=e.options.lineWrapping,n=r&&Math.max(5,e.display.scroller.clientWidth/tn(e.display)-3);return function(i){if(Vt(e.doc,i))return 0;var o=0;if(i.widgets)for(var l=0;l0&&(s=Xe(e.doc,u.line).text).length==u.ch){var c=z(s,s.length,e.options.tabSize)-s.length;u=et(u.line,Math.max(0,Math.round((o-Sr(e.display).left)/tn(e.display))-c))}return u}function sn(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var r=e.display.view,n=0;nt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Ct&&Rt(e.doc,t)i.viewFrom?fn(e):(i.viewFrom+=n,i.viewTo+=n);else if(t<=i.viewFrom&&r>=i.viewTo)fn(e);else if(t<=i.viewFrom){var o=hn(e,r,r+n,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=n):fn(e)}else if(r>=i.viewTo){var l=hn(e,t,t,-1);l?(i.view=i.view.slice(0,l.index),i.viewTo=l.lineN):fn(e)}else{var a=hn(e,t,t,-1),s=hn(e,r,r+n,1);a&&s?(i.view=i.view.slice(0,a.index).concat(ir(e,a.lineN,s.lineN)).concat(i.view.slice(s.index)),i.viewTo+=n):fn(e)}var u=i.externalMeasured;u&&(r=i.lineN&&t=n.viewTo)){var o=n.view[sn(e,t)];if(null!=o.node){var l=o.changes||(o.changes=[]);-1==B(l,r)&&l.push(r)}}}function fn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function hn(e,t,r,n){var i,o=sn(e,t),l=e.display.view;if(!Ct||r==e.doc.first+e.doc.size)return{index:o,lineN:r};for(var a=e.display.viewFrom,s=0;s0){if(o==l.length-1)return null;i=a+l[o].size-t,o++}else i=a-t;t+=i,r+=i}for(;Rt(e.doc,r)!=r;){if(o==(n<0?0:l.length-1))return null;r+=n*l[o-(n<0?1:0)].size,o+=n}return{index:o,lineN:r}}function dn(e){for(var t=e.display.view,r=0,n=0;n=e.display.viewTo||a.to().linet||t==r&&l.to==t)&&(n(Math.max(l.from,t),Math.min(l.to,r),1==l.level?"rtl":"ltr",o),i=!0)}i||n(t,r,"ltr")}(g,r||0,null==n?h:n,function(e,t,i,f){var v="ltr"==i,m=d(e,v?"left":"right"),y=d(t-1,v?"right":"left"),b=null==r&&0==e,w=null==n&&t==h,x=0==f,C=!g||f==g.length-1;if(y.top-m.top<=3){var k=(u?w:b)&&C,S=(u?b:w)&&x?a:(v?m:y).left,T=k?s:(v?y:m).right;c(S,m.top,T-S,m.bottom)}else{var L,M,N,A;v?(L=u&&b&&x?a:m.left,M=u?s:p(e,i,"before"),N=u?a:p(t,i,"after"),A=u&&w&&C?s:y.right):(L=u?p(e,i,"before"):a,M=!u&&b&&x?s:m.right,N=!u&&w&&C?a:y.left,A=u?p(t,i,"after"):s),c(L,m.top,M-L,m.bottom),m.bottom0?t.blinker=setInterval(function(){return t.cursorDiv.style.visibility=(r=!r)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function wn(e){e.state.focused||(e.display.input.focus(),Cn(e))}function xn(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,kn(e))},100)}function Cn(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(ge(e,"focus",e,t),e.state.focused=!0,H(e.display.wrapper,"TaysCodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),s&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),bn(e))}function kn(e,t){e.state.delayingBlurEvent||(e.state.focused&&(ge(e,"blur",e,t),e.state.focused=!1,L(e.display.wrapper,"TaysCodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Sn(e){for(var t=e.display,r=t.lineDiv.offsetTop,n=0;n.005||h<-.005)&&(Ye(i.line,s),Tn(i.line),i.rest))for(var d=0;de.display.sizerWidth){var p=Math.ceil(u/tn(e.display));p>e.display.maxLineLength&&(e.display.maxLineLength=p,e.display.maxLine=i.line,e.display.maxLineChanged=!0)}}}}function Tn(e){if(e.widgets)for(var t=0;t=l&&(o=Ze(t,Gt(Xe(t,s))-e.wrapper.clientHeight),l=s)}return{from:o,to:Math.max(l,o+1)}}function Mn(e,t){var r=e.display,n=en(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:r.scroller.scrollTop,o=Mr(e),l={};t.bottom-t.top>o&&(t.bottom=t.top+o);var a=e.doc.height+kr(r),s=t.topa-n;if(t.topi+o){var c=Math.min(t.top,(u?a:t.bottom)-o);c!=i&&(l.scrollTop=c)}var f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:r.scroller.scrollLeft,h=Lr(e)-(e.options.fixedGutter?r.gutters.offsetWidth:0),d=t.right-t.left>h;return d&&(t.right=t.left+h),t.left<10?l.scrollLeft=0:t.lefth+f-3&&(l.scrollLeft=t.right+(d?0:10)-h),l}function Nn(e,t){null!=t&&(Dn(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function An(e){Dn(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function On(e,t,r){null==t&&null==r||Dn(e),null!=t&&(e.curOp.scrollLeft=t),null!=r&&(e.curOp.scrollTop=r)}function Dn(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Wn(e,$r(e,t.from),$r(e,t.to),t.margin))}function Wn(e,t,r,n){var i=Mn(e,{left:Math.min(t.left,r.left),top:Math.min(t.top,r.top)-n,right:Math.max(t.right,r.right),bottom:Math.max(t.bottom,r.bottom)+n});On(e,i.scrollLeft,i.scrollTop)}function Hn(e,t){Math.abs(e.doc.scrollTop-t)<2||(r||oi(e,{top:t}),En(e,t,!0),r&&oi(e),ei(e,100))}function En(e,t,r){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||r)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Fn(e,t,r,n){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(r?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n||(e.doc.scrollLeft=t,si(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Pn(e){var t=e.display,r=t.gutters.offsetWidth,n=Math.round(e.doc.height+kr(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?r:0,docHeight:n,scrollHeight:n+Tr(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:r}}var In=function(e,t,r){this.cm=r;var n=this.vert=A("div",[A("div",null,null,"min-width: 1px")],"TaysCodeMirror-vscrollbar"),i=this.horiz=A("div",[A("div",null,null,"height: 100%; min-height: 1px")],"TaysCodeMirror-hscrollbar");n.tabIndex=i.tabIndex=-1,e(n),e(i),he(n,"scroll",function(){n.clientHeight&&t(n.scrollTop,"vertical")}),he(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,l&&a<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};In.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,r=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(r){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var i=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=r?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(r?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==n&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:r?n:0,bottom:t?n:0}},In.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},In.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},In.prototype.zeroWidthHack=function(){var e=y&&!d?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new R,this.disableVert=new R},In.prototype.enableZeroWidthBar=function(e,t,r){e.style.pointerEvents="auto",t.set(1e3,function n(){var i=e.getBoundingClientRect();("vert"==r?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,n)})},In.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var zn=function(){};function Rn(e,t){t||(t=Pn(e));var r=e.display.barWidth,n=e.display.barHeight;Bn(e,t);for(var i=0;i<4&&r!=e.display.barWidth||n!=e.display.barHeight;i++)r!=e.display.barWidth&&e.options.lineWrapping&&Sn(e),Bn(e,Pn(e)),r=e.display.barWidth,n=e.display.barHeight}function Bn(e,t){var r=e.display,n=r.scrollbars.update(t);r.sizer.style.paddingRight=(r.barWidth=n.right)+"px",r.sizer.style.paddingBottom=(r.barHeight=n.bottom)+"px",r.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(r.scrollbarFiller.style.display="block",r.scrollbarFiller.style.height=n.bottom+"px",r.scrollbarFiller.style.width=n.right+"px"):r.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(r.gutterFiller.style.display="block",r.gutterFiller.style.height=n.bottom+"px",r.gutterFiller.style.width=t.gutterWidth+"px"):r.gutterFiller.style.display=""}zn.prototype.update=function(){return{bottom:0,right:0}},zn.prototype.setScrollLeft=function(){},zn.prototype.setScrollTop=function(){},zn.prototype.clear=function(){};var Vn={native:In,null:zn};function jn(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&L(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Vn[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),he(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,r){"horizontal"==r?Fn(e,t):Hn(e,t)},e),e.display.scrollbars.addClass&&H(e.display.wrapper,e.display.scrollbars.addClass)}var Gn=0;function Un(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Gn},t=e.curOp,or?or.ops.push(t):t.ownsGroup=or={ops:[t],delayedCallbacks:[]}}function Kn(e){var t=e.curOp;t&&function(e,t){var r=e.ownsGroup;if(r)try{!function(e){var t=e.delayedCallbacks,r=0;do{for(;r=r.viewTo)||r.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new ri(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function $n(e){var t=e.cm,r=t.display;e.updatedDisplay&&Sn(t),e.barMeasure=Pn(t),r.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Ar(t,r.maxLine,r.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(r.scroller.clientWidth,r.sizer.offsetLeft+e.adjustWidthTo+Tr(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,r.sizer.offsetLeft+e.adjustWidthTo-Lr(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=r.input.prepareSelection())}function _n(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!p){var o=A("div","",null,"position: absolute;\n top: "+(t.top-r.viewOffset-Cr(e.display))+"px;\n height: "+(t.bottom-t.top+Tr(e)+r.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}(t,function(e,t,r,n){var i;null==n&&(n=0),e.options.lineWrapping||t!=r||(r="before"==(t=t.ch?et(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t).sticky?et(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var l=!1,a=Xr(e,t),s=r&&r!=t?Xr(e,r):a,u=Mn(e,i={left:Math.min(a.left,s.left),top:Math.min(a.top,s.top)-n,right:Math.max(a.left,s.left),bottom:Math.max(a.bottom,s.bottom)+n}),c=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=u.scrollTop&&(Hn(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(l=!0)),null!=u.scrollLeft&&(Fn(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-f)>1&&(l=!0)),!l)break}return i}(t,at(n,e.scrollToPos.from),at(n,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var l=0;l=e.display.viewTo)){var r=+new Date+e.options.workTime,n=dt(e,t.highlightFrontier),i=[];t.iter(n.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(n.line>=e.display.viewFrom){var l=o.styles,a=o.text.length>e.options.maxHighlightLength?je(t.mode,n.state):null,s=ft(e,o,n,!0);a&&(n.state=a),o.styles=s.styles;var u=o.styleClasses,c=s.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var f=!l||l.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),h=0;!f&&hr)return ei(e,e.options.workDelay),!0}),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),i.length&&qn(e,function(){for(var t=0;t=r.viewFrom&&t.visible.to<=r.viewTo&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&0==dn(e))return!1;ui(e)&&(fn(e),t.dims=rn(e));var i=n.first+n.size,o=Math.max(t.visible.from-e.options.viewportMargin,n.first),l=Math.min(i,t.visible.to+e.options.viewportMargin);r.viewFroml&&r.viewTo-l<20&&(l=Math.min(i,r.viewTo)),Ct&&(o=Rt(e.doc,o),l=Bt(e.doc,l));var a=o!=r.viewFrom||l!=r.viewTo||r.lastWrapHeight!=t.wrapperHeight||r.lastWrapWidth!=t.wrapperWidth;!function(e,t,r){var n=e.display;0==n.view.length||t>=n.viewTo||r<=n.viewFrom?(n.view=ir(e,t,r),n.viewFrom=t):(n.viewFrom>t?n.view=ir(e,t,n.viewFrom).concat(n.view):n.viewFromr&&(n.view=n.view.slice(0,sn(e,r)))),n.viewTo=r}(e,o,l),r.viewOffset=Gt(Xe(e.doc,r.viewFrom)),e.display.mover.style.top=r.viewOffset+"px";var u=dn(e);if(!a&&0==u&&!t.force&&r.renderedView==r.view&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo))return!1;var c=function(e){if(e.hasFocus())return null;var t=W();if(!t||!D(e.display.lineDiv,t))return null;var r={activeElt:t};if(window.getSelection){var n=window.getSelection();n.anchorNode&&n.extend&&D(e.display.lineDiv,n.anchorNode)&&(r.anchorNode=n.anchorNode,r.anchorOffset=n.anchorOffset,r.focusNode=n.focusNode,r.focusOffset=n.focusOffset)}return r}(e);return u>4&&(r.lineDiv.style.display="none"),function(e,t,r){var n=e.display,i=e.options.lineNumbers,o=n.lineDiv,l=o.firstChild;function a(t){var r=t.nextSibling;return s&&y&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),r}for(var u=n.view,c=n.viewFrom,f=0;f-1&&(d=!1),ur(e,h,c,r)),d&&(M(h.lineNumber),h.lineNumber.appendChild(document.createTextNode(Je(e.options,c)))),l=h.node.nextSibling}else{var p=vr(e,h,c,r);o.insertBefore(p,l)}c+=h.size}for(;l;)l=a(l)}(e,r.updateLineNumbers,t.dims),u>4&&(r.lineDiv.style.display=""),r.renderedView=r.view,function(e){if(e&&e.activeElt&&e.activeElt!=W()&&(e.activeElt.focus(),e.anchorNode&&D(document.body,e.anchorNode)&&D(document.body,e.focusNode))){var t=window.getSelection(),r=document.createRange();r.setEnd(e.anchorNode,e.anchorOffset),r.collapse(!1),t.removeAllRanges(),t.addRange(r),t.extend(e.focusNode,e.focusOffset)}}(c),M(r.cursorDiv),M(r.selectionDiv),r.gutters.style.height=r.sizer.style.minHeight=0,a&&(r.lastWrapHeight=t.wrapperHeight,r.lastWrapWidth=t.wrapperWidth,ei(e,400)),r.updateLineNumbers=null,!0}function ii(e,t){for(var r=t.viewport,n=!0;(n&&e.options.lineWrapping&&t.oldDisplayWidth!=Lr(e)||(r&&null!=r.top&&(r={top:Math.min(e.doc.height+kr(e.display)-Mr(e),r.top)}),t.visible=Ln(e.display,e.doc,r),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&ni(e,t);n=!1){Sn(e);var i=Pn(e);pn(e),Rn(e,i),ai(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function oi(e,t){var r=new ri(e,t);if(ni(e,r)){Sn(e),ii(e,r);var n=Pn(e);pn(e),Rn(e,n),ai(e,n),r.finish()}}function li(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function ai(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Tr(e)+"px"}function si(e){var t=e.display,r=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var n=nn(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=n+"px",l=0;la.clientWidth,c=a.scrollHeight>a.clientHeight;if(i&&u||o&&c){if(o&&y&&s)e:for(var h=t.target,d=l.view;h!=a;h=h.parentNode)for(var p=0;p=0&&tt(e,n.to())<=0)return r}return-1};var wi=function(e,t){this.anchor=e,this.head=t};function xi(e,t,r){var n=e&&e.options.selectionsMayTouch,i=t[r];t.sort(function(e,t){return tt(e.from(),t.from())}),r=B(t,i);for(var o=1;o0:s>=0){var u=ot(a.from(),l.from()),c=it(a.to(),l.to()),f=a.empty()?l.from()==l.head:a.from()==a.head;o<=r&&--r,t.splice(--o,2,new wi(f?c:u,f?u:c))}}return new bi(t,r)}function Ci(e,t){return new bi([new wi(e,t||e)],0)}function ki(e){return e.text?et(e.from.line+e.text.length-1,Y(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Si(e,t){if(tt(e,t.from)<0)return e;if(tt(e,t.to)<=0)return ki(t);var r=e.line+t.text.length-(t.to.line-t.from.line)-1,n=e.ch;return e.line==t.to.line&&(n+=ki(t).ch-t.to.ch),et(r,n)}function Ti(e,t){for(var r=[],n=0;n1&&e.remove(a.line+1,p-1),e.insert(a.line+1,m)}ar(e,"change",e,t)}function Di(e,t,r){!function e(n,i,o){if(n.linked)for(var l=0;la-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=function(e,t){return t?(Pi(e.done),Y(e.done)):e.done.length&&!Y(e.done).ranges?Y(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),Y(e.done)):void 0}(i,i.lastOp==n)))l=Y(o.changes),0==tt(t.from,t.to)&&0==tt(t.from,l.to)?l.to=ki(t):o.changes.push(Fi(e,t));else{var s=Y(i.done);for(s&&s.ranges||Ri(e.sel,i.done),o={changes:[Fi(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(r),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=a,i.lastOp=i.lastSelOp=n,i.lastOrigin=i.lastSelOrigin=t.origin,l||ge(e,"historyAdded")}function zi(e,t,r,n){var i=e.history,o=n&&n.origin;r==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||function(e,t,r,n){var i=t.charAt(0);return"*"==i||"+"==i&&r.ranges.length==n.ranges.length&&r.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}(e,o,Y(i.done),t))?i.done[i.done.length-1]=t:Ri(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=r,n&&!1!==n.clearRedo&&Pi(i.undone)}function Ri(e,t){var r=Y(t);r&&r.ranges&&r.equals(e)||t.push(e)}function Bi(e,t,r,n){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,r),Math.min(e.first+e.size,n),function(r){r.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=r.markedSpans),++o})}function Vi(e){if(!e)return null;for(var t,r=0;r-1&&(Y(a)[f]=u[f],delete u[f])}}}return n}function Ui(e,t,r,n){if(n){var i=e.anchor;if(r){var o=tt(t,i)<0;o!=tt(r,i)<0?(i=t,t=r):o!=tt(t,r)<0&&(t=r)}return new wi(i,t)}return new wi(r||t,t)}function Ki(e,t,r,n,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),qi(e,new bi([Ui(e.sel.primary(),t,r,i)],0),n)}function Xi(e,t,r){for(var n=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:a.to>t.ch))){if(i&&(ge(s,"beforeCursorEnter"),s.explicitlyCleared)){if(o.markedSpans){--l;continue}break}if(!s.atomic)continue;if(r){var f=s.find(n<0?1:-1),h=void 0;if((n<0?c:u)&&(f=no(e,f,-n,f&&f.line==t.line?o:null)),f&&f.line==t.line&&(h=tt(f,r))&&(n<0?h<0:h>0))return to(e,f,t,n,i)}var d=s.find(n<0?-1:1);return(n<0?u:c)&&(d=no(e,d,n,d.line==t.line?o:null)),d?to(e,d,t,n,i):null}}return t}function ro(e,t,r,n,i){var o=n||1,l=to(e,t,r,o,i)||!i&&to(e,t,r,o,!0)||to(e,t,r,-o,i)||!i&&to(e,t,r,-o,!0);return l||(e.cantEdit=!0,et(e.first,0))}function no(e,t,r,n){return r<0&&0==t.ch?t.line>e.first?at(e,et(t.line-1)):null:r>0&&t.ch==(n||Xe(e,t.line)).text.length?t.line0)){var c=[s,1],f=tt(u.from,a.from),h=tt(u.to,a.to);(f<0||!l.inclusiveLeft&&!f)&&c.push({from:u.from,to:a.from}),(h>0||!l.inclusiveRight&&!h)&&c.push({from:a.to,to:u.to}),i.splice.apply(i,c),s+=c.length-3}}return i}(e,t.from,t.to);if(n)for(var i=n.length-1;i>=0;--i)ao(e,{from:n[i].from,to:n[i].to,text:i?[""]:t.text,origin:t.origin});else ao(e,t)}}function ao(e,t){if(1!=t.text.length||""!=t.text[0]||0!=tt(t.from,t.to)){var r=Ti(e,t);Ii(e,t,r,e.cm?e.cm.curOp.id:NaN),co(e,t,r,Lt(e,t));var n=[];Di(e,function(e,r){r||-1!=B(n,e.history)||(go(e.history,t),n.push(e.history)),co(e,t,null,Lt(e,t))})}}function so(e,t,r){var n=e.cm&&e.cm.state.suppressEdits;if(!n||r){for(var i,o=e.history,l=e.sel,a="undo"==t?o.done:o.undone,s="undo"==t?o.undone:o.done,u=0;u=0;--d){var p=h(d);if(p)return p.v}}}}function uo(e,t){if(0!=t&&(e.first+=t,e.sel=new bi(q(e.sel.ranges,function(e){return new wi(et(e.anchor.line+t,e.anchor.ch),et(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){un(e.cm,e.first,e.first-t,t);for(var r=e.cm.display,n=r.viewFrom;ne.lastLine())){if(t.from.lineo&&(t={from:t.from,to:et(o,Xe(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=$e(e,t.from,t.to),r||(r=Ti(e,t)),e.cm?function(e,t,r){var n=e.doc,i=e.display,o=t.from,l=t.to,a=!1,s=o.line;e.options.lineWrapping||(s=qe(zt(Xe(n,o.line))),n.iter(s,l.line+1,function(e){if(e==i.maxLine)return a=!0,!0}));n.sel.contains(t.from,t.to)>-1&&me(e);Oi(n,t,r,on(e)),e.options.lineWrapping||(n.iter(s,o.line+t.text.length,function(e){var t=Ut(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,a=!1)}),a&&(e.curOp.updateMaxLine=!0));(function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontierr;n--){var i=Xe(e,n).stateAfter;if(i&&(!(i instanceof ut)||n+i.lookAhead1||!(this.children[0]instanceof mo))){var a=[];this.collapse(a),this.children=[new mo(a)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var l=i.lines.length%25+25,a=l;a10);e.parent.maybeSpill()}},iterN:function(e,t,r){for(var n=0;n0||0==l&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=O("span",[o.replacedWith],"TaysCodeMirror-widget"),n.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(It(e,t.line,t,r,o)||t.line!=r.line&&It(e,r.line,t,r,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ct=!0}o.addToHistory&&Ii(e,{from:t,to:r,origin:"markText"},e.sel,NaN);var a,s=t.line,u=e.cm;if(e.iter(s,r.line+1,function(e){u&&o.collapsed&&!u.options.lineWrapping&&zt(e)==u.display.maxLine&&(a=!0),o.collapsed&&s!=t.line&&Ye(e,0),function(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}(e,new kt(o,s==t.line?t.ch:null,s==r.line?r.ch:null)),++s}),o.collapsed&&e.iter(t.line,r.line+1,function(t){Vt(e,t)&&Ye(t,0)}),o.clearOnEnter&&he(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(xt=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++xo,o.atomic=!0),u){if(a&&(u.curOp.updateMaxLine=!0),o.collapsed)un(u,t.line,r.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=t.line;c<=r.line;c++)cn(u,c,"text");o.atomic&&Ji(u.doc),ar(u,"markerAdded",u,o)}return o}Co.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Un(e),ye(this,"clear")){var r=this.find();r&&ar(this,"clear",r.from,r.to)}for(var n=null,i=null,o=0;oe.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=n&&e&&this.collapsed&&un(e,n,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Ji(e.doc)),e&&ar(e,"markerCleared",e,this,n,i),t&&Kn(e),this.parent&&this.parent.clear()}},Co.prototype.find=function(e,t){var r,n;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i=0;s--)lo(this,n[s]);a?Yi(this,a):this.cm&&An(this.cm)}),undo:Jn(function(){so(this,"undo")}),redo:Jn(function(){so(this,"redo")}),undoSelection:Jn(function(){so(this,"undo",!0)}),redoSelection:Jn(function(){so(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,r=0,n=0;n=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,r){e=at(this,e),t=at(this,t);var n=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var l=o.markedSpans;if(l)for(var a=0;a=s.to||null==s.from&&i!=e.line||null!=s.from&&i==t.line&&s.from>=t.ch||r&&!r(s.marker)||n.push(s.marker.parent||s.marker)}++i}),n},getAllMarks:function(){var e=[];return this.iter(function(t){var r=t.markedSpans;if(r)for(var n=0;ne)return t=e,!0;e-=o,++r}),at(this,et(r,t))},indexFromPos:function(e){var t=(e=at(this,e)).ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var f=e.dataTransfer.getData("Text");if(f){var h;if(t.state.draggingText&&!t.state.draggingText.copy&&(h=t.listSelections()),Zi(t.doc,Ci(r,r)),h)for(var d=0;d=0;t--)fo(e.doc,"",n[t].from,n[t].to,"+delete");An(e)})}function Yo(e,t,r){var n=oe(e.text,t+r,r);return n<0||n>e.text.length?null:n}function qo(e,t,r){var n=Yo(e,t.ch,r);return null==n?null:new et(t.line,n,r<0?"after":"before")}function Zo(e,t,r,n,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=ce(r,t.doc.direction);if(o){var l,a=i<0?Y(o):o[0],s=i<0==(1==a.level)?"after":"before";if(a.level>0||"rtl"==t.doc.direction){var u=Dr(t,r);l=i<0?r.text.length-1:0;var c=Wr(t,u,l).top;l=le(function(e){return Wr(t,u,e).top==c},i<0==(1==a.level)?a.from:a.to-1,l),"before"==s&&(l=Yo(r,l,1))}else l=i<0?a.to:a.from;return new et(n,l,s)}}return new et(n,i<0?r.text.length:0,i<0?"before":"after")}Bo.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Bo.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Bo.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Bo.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Bo.default=y?Bo.macDefault:Bo.pcDefault;var Qo={selectAll:io,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),G)},killLine:function(e){return _o(e,function(t){if(t.empty()){var r=Xe(e.doc,t.head.line).text.length;return t.head.ch==r&&t.head.line0)i=new et(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),et(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var l=Xe(e.doc,i.line-1).text;l&&(i=new et(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+l.charAt(l.length-1),et(i.line-1,l.length-1),i,"+transpose"))}r.push(new wi(i,i))}e.setSelections(r)})},newlineAndIndent:function(e){return qn(e,function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange(e.doc.lineSeparator(),t[r].anchor,t[r].head,"+input");t=e.listSelections();for(var n=0;n-1&&(tt((i=u.ranges[i]).from(),t)<0||t.xRel>0)&&(tt(i.to(),t)>0||t.xRel<0)?function(e,t,r,n){var i=e.display,o=!1,u=Zn(e,function(t){s&&(i.scroller.draggable=!1),e.state.draggingText=!1,pe(i.wrapper.ownerDocument,"mouseup",u),pe(i.wrapper.ownerDocument,"mousemove",c),pe(i.scroller,"dragstart",f),pe(i.scroller,"drop",u),o||(we(t),n.addNew||Ki(e.doc,r,null,null,n.extend),s||l&&9==a?setTimeout(function(){i.wrapper.ownerDocument.body.focus(),i.input.focus()},20):i.input.focus())}),c=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},f=function(){return o=!0};s&&(i.scroller.draggable=!0);e.state.draggingText=u,u.copy=!n.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop();he(i.wrapper.ownerDocument,"mouseup",u),he(i.wrapper.ownerDocument,"mousemove",c),he(i.scroller,"dragstart",f),he(i.scroller,"drop",u),xn(e),setTimeout(function(){return i.input.focus()},20)}(e,n,t,o):function(e,t,r,n){var i=e.display,o=e.doc;we(t);var l,a,s=o.sel,u=s.ranges;n.addNew&&!n.extend?(a=o.sel.contains(r),l=a>-1?u[a]:new wi(r,r)):(l=o.sel.primary(),a=o.sel.primIndex);if("rectangle"==n.unit)n.addNew||(l=new wi(r,r)),r=an(e,t,!0,!0),a=-1;else{var c=pl(e,r,n.unit);l=n.extend?Ui(l,c.anchor,c.head,n.extend):c}n.addNew?-1==a?(a=u.length,qi(o,xi(e,u.concat([l]),a),{scroll:!1,origin:"*mouse"})):u.length>1&&u[a].empty()&&"char"==n.unit&&!n.extend?(qi(o,xi(e,u.slice(0,a).concat(u.slice(a+1)),0),{scroll:!1,origin:"*mouse"}),s=o.sel):$i(o,a,l,U):(a=0,qi(o,new bi([l],0),U),s=o.sel);var f=r;function h(t){if(0!=tt(f,t))if(f=t,"rectangle"==n.unit){for(var i=[],u=e.options.tabSize,c=z(Xe(o,r.line).text,r.ch,u),h=z(Xe(o,t.line).text,t.ch,u),d=Math.min(c,h),p=Math.max(c,h),g=Math.min(r.line,t.line),v=Math.min(e.lastLine(),Math.max(r.line,t.line));g<=v;g++){var m=Xe(o,g).text,y=X(m,d,u);d==p?i.push(new wi(et(g,y),et(g,y))):m.length>y&&i.push(new wi(et(g,y),et(g,X(m,p,u))))}i.length||i.push(new wi(r,r)),qi(o,xi(e,s.ranges.slice(0,a).concat(i),a),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,w=l,x=pl(e,t,n.unit),C=w.anchor;tt(x.anchor,C)>0?(b=x.head,C=ot(w.from(),x.anchor)):(b=x.anchor,C=it(w.to(),x.head));var k=s.ranges.slice(0);k[a]=function(e,t){var r=t.anchor,n=t.head,i=Xe(e.doc,r.line);if(0==tt(r,n)&&r.sticky==n.sticky)return t;var o=ce(i);if(!o)return t;var l=se(o,r.ch,r.sticky),a=o[l];if(a.from!=r.ch&&a.to!=r.ch)return t;var s,u=l+(a.from==r.ch==(1!=a.level)?0:1);if(0==u||u==o.length)return t;if(n.line!=r.line)s=(n.line-r.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=se(o,n.ch,n.sticky),f=c-l||(n.ch-r.ch)*(1==a.level?-1:1);s=c==u-1||c==u?f<0:f>0}var h=o[u+(s?-1:0)],d=s==(1==h.level),p=d?h.from:h.to,g=d?"after":"before";return r.ch==p&&r.sticky==g?t:new wi(new et(r.line,p,g),n)}(e,new wi(at(o,C),b)),qi(o,xi(e,k,a),U)}}var d=i.wrapper.getBoundingClientRect(),p=0;function g(t){e.state.selectingText=!1,p=1/0,t&&(we(t),i.input.focus()),pe(i.wrapper.ownerDocument,"mousemove",v),pe(i.wrapper.ownerDocument,"mouseup",m),o.history.lastSelOrigin=null}var v=Zn(e,function(t){0!==t.buttons&&Te(t)?function t(r){var l=++p;var a=an(e,r,!0,"rectangle"==n.unit);if(!a)return;if(0!=tt(a,f)){e.curOp.focus=W(),h(a);var s=Ln(i,o);(a.line>=s.to||a.lined.bottom?20:0;u&&setTimeout(Zn(e,function(){p==l&&(i.scroller.scrollTop+=u,t(r))}),50)}}(t):g(t)}),m=Zn(e,g);e.state.selectingText=m,he(i.wrapper.ownerDocument,"mousemove",v),he(i.wrapper.ownerDocument,"mouseup",m)}(e,n,t,o)}(t,n,o,e):Se(e)==r.scroller&&we(e):2==i?(n&&Ki(t.doc,n),setTimeout(function(){return r.input.focus()},20)):3==i&&(k?t.display.input.onContextMenu(e):xn(t)))}}function pl(e,t,r){if("char"==r)return new wi(t,t);if("word"==r)return e.findWordAt(t);if("line"==r)return new wi(et(t.line,0),at(e.doc,et(t.line+1,0)));var n=r(e,t);return new wi(n.from,n.to)}function gl(e,t,r,n){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(t){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&we(t);var l=e.display,a=l.lineDiv.getBoundingClientRect();if(o>a.bottom||!ye(e,r))return Ce(t);o-=a.top-l.viewOffset;for(var s=0;s=i)return ge(e,r,e,Ze(e.doc,o),e.display.gutterSpecs[s].className,t),Ce(t)}}function vl(e,t){return gl(e,t,"gutterClick",!0)}function ml(e,t){xr(e.display,t)||function(e,t){if(!ye(e,"gutterContextMenu"))return!1;return gl(e,t,"gutterContextMenu",!1)}(e,t)||ve(e,t,"contextmenu")||k||e.display.input.onContextMenu(t)}function yl(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Rr(e)}hl.prototype.compare=function(e,t,r){return this.time+400>e&&0==tt(t,this.pos)&&r==this.button};var bl={toString:function(){return"TaysCodeMirror.Init"}},wl={},xl={};function Cl(e,t,r){if(!t!=!(r&&r!=bl)){var n=e.display.dragFunctions,i=t?he:pe;i(e.display.scroller,"dragstart",n.start),i(e.display.scroller,"dragenter",n.enter),i(e.display.scroller,"dragover",n.over),i(e.display.scroller,"dragleave",n.leave),i(e.display.scroller,"drop",n.drop)}}function kl(e){e.options.lineWrapping?(H(e.display.wrapper,"TaysCodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(L(e.display.wrapper,"TaysCodeMirror-wrap"),Kt(e)),ln(e),un(e),Rr(e),setTimeout(function(){return Rn(e)},100)}function Sl(e,t){var r=this;if(!(this instanceof Sl))return new Sl(e,t);this.options=t=t?I(t):{},I(wl,t,!1);var n=t.value;"string"==typeof n?n=new No(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var i=new Sl.inputStyles[t.inputStyle](this),o=this.display=new di(e,n,i,t);for(var u in o.wrapper.TaysCodeMirror=this,yl(this),t.lineWrapping&&(this.display.wrapper.className+=" TaysCodeMirror-wrap"),jn(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new R,keySeq:null,specialChars:null},t.autofocus&&!m&&o.input.focus(),l&&a<11&&setTimeout(function(){return r.display.input.reset(!0)},20),function(e){var t=e.display;he(t.scroller,"mousedown",Zn(e,dl)),he(t.scroller,"dblclick",l&&a<11?Zn(e,function(t){if(!ve(e,t)){var r=an(e,t);if(r&&!vl(e,t)&&!xr(e.display,t)){we(t);var n=e.findWordAt(r);Ki(e.doc,n.anchor,n.head)}}}):function(t){return ve(e,t)||we(t)});he(t.scroller,"contextmenu",function(t){return ml(e,t)}),he(t.input.getField(),"contextmenu",function(r){t.scroller.contains(r.target)||ml(e,r)});var r,n={end:0};function i(){t.activeTouch&&(r=setTimeout(function(){return t.activeTouch=null},1e3),(n=t.activeTouch).end=+new Date)}function o(e,t){if(null==t.left)return!0;var r=t.left-e.left,n=t.top-e.top;return r*r+n*n>400}he(t.scroller,"touchstart",function(i){if(!ve(e,i)&&!function(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}(i)&&!vl(e,i)){t.input.ensurePolled(),clearTimeout(r);var o=+new Date;t.activeTouch={start:o,moved:!1,prev:o-n.end<=300?n:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}}),he(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),he(t.scroller,"touchend",function(r){var n=t.activeTouch;if(n&&!xr(t,r)&&null!=n.left&&!n.moved&&new Date-n.start<300){var l,a=e.coordsChar(t.activeTouch,"page");l=!n.prev||o(n,n.prev)?new wi(a,a):!n.prev.prev||o(n,n.prev.prev)?e.findWordAt(a):new wi(et(a.line,0),at(e.doc,et(a.line+1,0))),e.setSelection(l.anchor,l.head),e.focus(),we(r)}i()}),he(t.scroller,"touchcancel",i),he(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Hn(e,t.scroller.scrollTop),Fn(e,t.scroller.scrollLeft,!0),ge(e,"scroll",e))}),he(t.scroller,"mousewheel",function(t){return yi(e,t)}),he(t.scroller,"DOMMouseScroll",function(t){return yi(e,t)}),he(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(t){ve(e,t)||ke(t)},over:function(t){ve(e,t)||(!function(e,t){var r=an(e,t);if(r){var n=document.createDocumentFragment();vn(e,r,n),e.display.dragCursor||(e.display.dragCursor=A("div",null,"TaysCodeMirror-cursors TaysCodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),N(e.display.dragCursor,n)}}(e,t),ke(t))},start:function(t){return function(e,t){if(l&&(!e.state.draggingText||+new Date-Ao<100))ke(t);else if(!ve(e,t)&&!xr(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!h)){var r=A("img",null,null,"position: fixed; left: 0; top: 0;");r.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",f&&(r.width=r.height=1,e.display.wrapper.appendChild(r),r._top=r.offsetTop),t.dataTransfer.setDragImage(r,0,0),f&&r.parentNode.removeChild(r)}}(e,t)},drop:Zn(e,Oo),leave:function(t){ve(e,t)||Do(e)}};var s=t.input.getField();he(s,"keyup",function(t){return sl.call(e,t)}),he(s,"keydown",Zn(e,al)),he(s,"keypress",Zn(e,ul)),he(s,"focus",function(t){return Cn(e,t)}),he(s,"blur",function(t){return kn(e,t)})}(this),Eo(),Un(this),this.curOp.forceUpdate=!0,Wi(this,n),t.autofocus&&!m||this.hasFocus()?setTimeout(P(Cn,this),20):kn(this),xl)xl.hasOwnProperty(u)&&xl[u](r,t[u],bl);ui(this),t.finishInit&&t.finishInit(this);for(var c=0;c150)){if(!n)return;r="prev"}}else u=0,r="not";"prev"==r?u=t>o.first?z(Xe(o,t-1).text,null,l):0:"add"==r?u=s+e.options.indentUnit:"subtract"==r?u=s-e.options.indentUnit:"number"==typeof r&&(u=s+r),u=Math.max(0,u);var f="",h=0;if(e.options.indentWithTabs)for(var d=Math.floor(u/l);d;--d)h+=l,f+="\t";if(hl,s=We(t),u=null;if(a&&n.ranges.length>1)if(Ml&&Ml.text.join("\n")==t){if(n.ranges.length%Ml.text.length==0){u=[];for(var c=0;c=0;h--){var d=n.ranges[h],p=d.from(),g=d.to();d.empty()&&(r&&r>0?p=et(p.line,p.ch-r):e.state.overwrite&&!a?g=et(g.line,Math.min(Xe(o,g.line).text.length,g.ch+Y(s).length)):a&&Ml&&Ml.lineWise&&Ml.text.join("\n")==t&&(p=g=et(p.line,0)));var v={from:p,to:g,text:u?u[h%u.length]:s,origin:i||(a?"paste":e.state.cutIncoming>l?"cut":"+input")};lo(e.doc,v),ar(e,"inputRead",e,v)}t&&!a&&Dl(e,t),An(e),e.curOp.updateInput<2&&(e.curOp.updateInput=f),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Ol(e,t){var r=e.clipboardData&&e.clipboardData.getData("Text");if(r)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||qn(t,function(){return Al(t,r,0,null,"paste")}),!0}function Dl(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var r=e.doc.sel,n=r.ranges.length-1;n>=0;n--){var i=r.ranges[n];if(!(i.head.ch>100||n&&r.ranges[n-1].head.line==i.head.line)){var o=e.getModeAt(i.head),l=!1;if(o.electricChars){for(var a=0;a-1){l=Ll(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Xe(e.doc,i.head.line).text.slice(0,i.head.ch))&&(l=Ll(e,i.head.line,"smart"));l&&ar(e,"electricInput",e,i.head.line)}}}function Wl(e){for(var t=[],r=[],n=0;n=t.text.length?(r.ch=t.text.length,r.sticky="before"):r.ch<=0&&(r.ch=0,r.sticky="after");var o=se(i,r.ch,r.sticky),l=i[o];if("ltr"==e.doc.direction&&l.level%2==0&&(n>0?l.to>r.ch:l.from=l.from&&h>=c.begin)){var d=f?"before":"after";return new et(r.line,h,d)}}var p=function(e,t,n){for(var o=function(e,t){return t?new et(r.line,s(e,1),"before"):new et(r.line,e,"after")};e>=0&&e0==(1!=l.level),u=a?n.begin:s(n.end,-1);if(l.from<=u&&u0?c.end:s(c.begin,-1);return null==v||n>0&&v==t.text.length||!(g=p(n>0?0:i.length-1,n,u(v)))?null:g}(e.cm,a,t,r):qo(a,t,r))){if(n||(l=t.line+s)=e.first+e.size||(t=new et(l,t.ch,t.sticky),!(a=Xe(e,l))))return!1;t=Zo(i,e.cm,a,t.line,s)}else t=o;return!0}if("char"==n)u();else if("column"==n)u(!0);else if("word"==n||"group"==n)for(var c=null,f="group"==n,h=e.cm&&e.cm.getHelper(t,"wordChars"),d=!0;!(r<0)||u(!d);d=!1){var p=a.text.charAt(t.ch)||"\n",g=te(p,h)?"w":f&&"\n"==p?"n":!f||/\s/.test(p)?null:"p";if(!f||d||g||(g="s"),c&&c!=g){r<0&&(r=1,u(),t.sticky="after");break}if(g&&(c=g),r>0&&!u(!d))break}var v=ro(e,t,o,l,!0);return rt(o,v)&&(v.hitSide=!0),v}function Pl(e,t,r,n){var i,o,l=e.doc,a=t.left;if("page"==n){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),u=Math.max(s-.5*en(e.display),3);i=(r>0?t.bottom:t.top)+r*u}else"line"==n&&(i=r>0?t.bottom+3:t.top-3);for(;(o=Yr(e,a,i)).outside;){if(r<0?i<=0:i>=l.height){o.hitSide=!0;break}i+=5*r}return o}var Il=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new R,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function zl(e,t){var r=Or(e,t.line);if(!r||r.hidden)return null;var n=Xe(e.doc,t.line),i=Nr(r,n,t.line),o=ce(n,e.doc.direction),l="left";o&&(l=se(o,t.ch)%2?"right":"left");var a=Fr(i.map,t.ch,l);return a.offset="right"==a.collapse?a.end:a.start,a}function Rl(e,t){return t&&(e.bad=!0),e}function Bl(e,t,r){var n;if(t==e.display.lineDiv){if(!(n=e.display.lineDiv.childNodes[r]))return Rl(e.clipPos(et(e.display.viewTo-1)),!0);t=null,r=0}else for(n=t;;n=n.parentNode){if(!n||n==e.display.lineDiv)return null;if(n.parentNode&&n.parentNode==e.display.lineDiv)break}for(var i=0;i=t.display.viewTo||o.line=t.display.viewFrom&&zl(t,i)||{node:s[0].measure.map[2],offset:0},c=o.linen.firstLine()&&(l=et(l.line-1,Xe(n.doc,l.line-1).length)),a.ch==Xe(n.doc,a.line).text.length&&a.linei.viewTo-1)return!1;l.line==i.viewFrom||0==(e=sn(n,l.line))?(t=qe(i.view[0].line),r=i.view[0].node):(t=qe(i.view[e].line),r=i.view[e-1].node.nextSibling);var s,u,c=sn(n,a.line);if(c==i.view.length-1?(s=i.viewTo-1,u=i.lineDiv.lastChild):(s=qe(i.view[c+1].line)-1,u=i.view[c+1].node.previousSibling),!r)return!1;for(var f=n.doc.splitLines(function(e,t,r,n,i){var o="",l=!1,a=e.doc.lineSeparator(),s=!1;function u(){l&&(o+=a,s&&(o+=a),l=s=!1)}function c(e){e&&(u(),o+=e)}function f(t){if(1==t.nodeType){var r=t.getAttribute("cm-text");if(r)return void c(r);var o,h=t.getAttribute("cm-marker");if(h){var d=e.findMarks(et(n,0),et(i+1,0),(v=+h,function(e){return e.id==v}));return void(d.length&&(o=d[0].find(0))&&c($e(e.doc,o.from,o.to).join(a)))}if("false"==t.getAttribute("contenteditable"))return;var p=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;p&&u();for(var g=0;g1&&h.length>1;)if(Y(f)==Y(h))f.pop(),h.pop(),s--;else{if(f[0]!=h[0])break;f.shift(),h.shift(),t++}for(var d=0,p=0,g=f[0],v=h[0],m=Math.min(g.length,v.length);dl.ch&&y.charCodeAt(y.length-p-1)==b.charCodeAt(b.length-p-1);)d--,p++;f[f.length-1]=y.slice(0,y.length-p).replace(/^\u200b+/,""),f[0]=f[0].slice(d).replace(/\u200b+$/,"");var x=et(t,d),C=et(s,h.length?Y(h).length-p:0);return f.length>1||f[0]||tt(x,C)?(fo(n.doc,f,x,C,"+input"),!0):void 0},Il.prototype.ensurePolled=function(){this.forceCompositionEnd()},Il.prototype.reset=function(){this.forceCompositionEnd()},Il.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Il.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},Il.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||qn(this.cm,function(){return un(e.cm)})},Il.prototype.setUneditable=function(e){e.contentEditable="false"},Il.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Zn(this.cm,Al)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Il.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Il.prototype.onContextMenu=function(){},Il.prototype.resetPosition=function(){},Il.prototype.needsContentAttribute=!0;var jl=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new R,this.hasSelection=!1,this.composing=null};jl.prototype.init=function(e){var t=this,r=this,n=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!ve(n,e)){if(n.somethingSelected())Nl({lineWise:!1,text:n.getSelections()});else{if(!n.options.lineWiseCopyCut)return;var t=Wl(n);Nl({lineWise:!0,text:t.text}),"cut"==e.type?n.setSelections(t.ranges,null,G):(r.prevInput="",i.value=t.text.join("\n"),F(i))}"cut"==e.type&&(n.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(i.style.width="0px"),he(i,"input",function(){l&&a>=9&&t.hasSelection&&(t.hasSelection=null),r.poll()}),he(i,"paste",function(e){ve(n,e)||Ol(e,n)||(n.state.pasteIncoming=+new Date,r.fastPoll())}),he(i,"cut",o),he(i,"copy",o),he(e.scroller,"paste",function(t){if(!xr(e,t)&&!ve(n,t)){if(!i.dispatchEvent)return n.state.pasteIncoming=+new Date,void r.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}}),he(e.lineSpace,"selectstart",function(t){xr(e,t)||we(t)}),he(i,"compositionstart",function(){var e=n.getCursor("from");r.composing&&r.composing.range.clear(),r.composing={start:e,range:n.markText(e,n.getCursor("to"),{className:"TaysCodeMirror-composing"})}}),he(i,"compositionend",function(){r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)})},jl.prototype.createField=function(e){this.wrapper=El(),this.textarea=this.wrapper.firstChild},jl.prototype.prepareSelection=function(){var e=this.cm,t=e.display,r=e.doc,n=gn(e);if(e.options.moveInputWithCursor){var i=Xr(e,r.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),l=t.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+l.top-o.top)),n.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+l.left-o.left))}return n},jl.prototype.showSelection=function(e){var t=this.cm.display;N(t.cursorDiv,e.cursors),N(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},jl.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var r=t.getSelection();this.textarea.value=r,t.state.focused&&F(this.textarea),l&&a>=9&&(this.hasSelection=r)}else e||(this.prevInput=this.textarea.value="",l&&a>=9&&(this.hasSelection=null))}},jl.prototype.getField=function(){return this.textarea},jl.prototype.supportsTouch=function(){return!1},jl.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!m||W()!=this.textarea))try{this.textarea.focus()}catch(e){}},jl.prototype.blur=function(){this.textarea.blur()},jl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},jl.prototype.receivedFocus=function(){this.slowPoll()},jl.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},jl.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,function r(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,r))})},jl.prototype.poll=function(){var e=this,t=this.cm,r=this.textarea,n=this.prevInput;if(this.contextMenuPending||!t.state.focused||He(r)&&!n&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=r.value;if(i==n&&!t.somethingSelected())return!1;if(l&&a>=9&&this.hasSelection===i||y&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||n||(n=""),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var s=0,u=Math.min(n.length,i.length);s1e3||i.indexOf("\n")>-1?r.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"TaysCodeMirror-composing"}))}),!0},jl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},jl.prototype.onKeyPress=function(){l&&a>=9&&(this.hasSelection=null),this.fastPoll()},jl.prototype.onContextMenu=function(e){var t=this,r=t.cm,n=r.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=an(r,e),u=n.scroller.scrollTop;if(o&&!f){r.options.resetSelectionOnContextMenu&&-1==r.doc.sel.contains(o)&&Zn(r,qi)(r.doc,Ci(o),G);var c,h=i.style.cssText,d=t.wrapper.style.cssText,p=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-p.top-5)+"px; left: "+(e.clientX-p.left-5)+"px;\n z-index: 1000; background: "+(l?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",s&&(c=window.scrollY),n.input.focus(),s&&window.scrollTo(null,c),n.input.reset(),r.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=m,n.selForContextMenu=r.doc.sel,clearTimeout(n.detectingSelectAll),l&&a>=9&&v(),k){ke(e);var g=function(){pe(window,"mouseup",g),setTimeout(m,20)};he(window,"mouseup",g)}else setTimeout(m,50)}function v(){if(null!=i.selectionStart){var e=r.somethingSelected(),o=""+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"",i.selectionStart=1,i.selectionEnd=o.length,n.selForContextMenu=r.doc.sel}}function m(){if(t.contextMenuPending==m&&(t.contextMenuPending=!1,t.wrapper.style.cssText=d,i.style.cssText=h,l&&a<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=u),null!=i.selectionStart)){(!l||l&&a<9)&&v();var e=0,o=function(){n.selForContextMenu==r.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&""==t.prevInput?Zn(r,io)(r):e++<10?n.detectingSelectAll=setTimeout(o,500):(n.selForContextMenu=null,n.input.reset())};n.detectingSelectAll=setTimeout(o,200)}}},jl.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e},jl.prototype.setUneditable=function(){},jl.prototype.needsContentAttribute=!1,function(e){var t=e.optionHandlers;function r(r,n,i,o){e.defaults[r]=n,i&&(t[r]=o?function(e,t,r){r!=bl&&i(e,t,r)}:i)}e.defineOption=r,e.Init=bl,r("value","",function(e,t){return e.setValue(t)},!0),r("mode",null,function(e,t){e.doc.modeOption=t,Mi(e)},!0),r("indentUnit",2,Mi,!0),r("indentWithTabs",!1),r("smartIndent",!0),r("tabSize",4,function(e){Ni(e),Rr(e),un(e)},!0),r("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var r=[],n=e.doc.first;e.doc.iter(function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,r.push(et(n,o))}n++});for(var i=r.length-1;i>=0;i--)fo(e.doc,t,r[i],et(r[i].line,r[i].ch+t.length))}}),r("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(e,t,r){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),r!=bl&&e.refresh()}),r("specialCharPlaceholder",Qt,function(e){return e.refresh()},!0),r("electricChars",!0),r("inputStyle",m?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),r("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),r("autocorrect",!1,function(e,t){return e.getInputField().autocorrect=t},!0),r("autocapitalize",!1,function(e,t){return e.getInputField().autocapitalize=t},!0),r("rtlMoveVisually",!w),r("wholeLineUpdateBefore",!0),r("theme","default",function(e){yl(e),hi(e)},!0),r("keyMap","default",function(e,t,r){var n=$o(t),i=r!=bl&&$o(r);i&&i.detach&&i.detach(e,n),n.attach&&n.attach(e,i||null)}),r("extraKeys",null),r("configureMouse",null),r("lineWrapping",!1,kl,!0),r("gutters",[],function(e,t){e.display.gutterSpecs=ci(t,e.options.lineNumbers),hi(e)},!0),r("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?nn(e.display)+"px":"0",e.refresh()},!0),r("coverGutterNextToScrollbar",!1,function(e){return Rn(e)},!0),r("scrollbarStyle","native",function(e){jn(e),Rn(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),r("lineNumbers",!1,function(e,t){e.display.gutterSpecs=ci(e.options.gutters,t),hi(e)},!0),r("firstLineNumber",1,hi,!0),r("lineNumberFormatter",function(e){return e},hi,!0),r("showCursorWhenSelecting",!1,pn,!0),r("resetSelectionOnContextMenu",!0),r("lineWiseCopyCut",!0),r("pasteLinesPerSelection",!0),r("selectionsMayTouch",!1),r("readOnly",!1,function(e,t){"nocursor"==t&&(kn(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),r("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),r("dragDrop",!0,Cl),r("allowDropFileTypes",null),r("cursorBlinkRate",530),r("cursorScrollMargin",0),r("cursorHeight",1,pn,!0),r("singleCursorHeightPerLine",!0,pn,!0),r("workTime",100),r("workDelay",100),r("flattenSpans",!0,Ni,!0),r("addModeClass",!1,Ni,!0),r("pollInterval",100),r("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),r("historyEventDelay",1250),r("viewportMargin",10,function(e){return e.refresh()},!0),r("maxHighlightLength",1e4,Ni,!0),r("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),r("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),r("autofocus",null),r("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0),r("phrases",null)}(Sl),function(e){var t=e.optionHandlers,r=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,r){var n=this.options,i=n[e];n[e]==r&&"mode"!=e||(n[e]=r,t.hasOwnProperty(e)&&Zn(this,t[e])(this,r,i),ge(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"]($o(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,r=0;rr&&(Ll(this,i.head.line,e,!0),r=i.head.line,n==this.doc.sel.primIndex&&An(this));else{var o=i.from(),l=i.to(),a=Math.max(r,o.line);r=Math.min(this.lastLine(),l.line-(l.ch?0:1))+1;for(var s=a;s0&&$i(this.doc,n,new wi(o,u[n].to()),G)}}}),getTokenAt:function(e,t){return yt(this,e,t)},getLineTokens:function(e,t){return yt(this,et(e),t,!0)},getTokenTypeAt:function(e){e=at(this.doc,e);var t,r=ht(this,Xe(this.doc,e.line)),n=0,i=(r.length-1)/2,o=e.ch;if(0==o)t=r[2];else for(;;){var l=n+i>>1;if((l?r[2*l-1]:0)>=o)i=l;else{if(!(r[2*l+1]o&&(e=o,i=!0),n=Xe(this.doc,e)}else n=e;return Gr(this,n,{top:0,left:0},t||"page",r||i).top+(i?this.doc.height-Gt(n):0)},defaultTextHeight:function(){return en(this.display)},defaultCharWidth:function(){return tn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,r,n,i){var o,l,a,s=this.display,u=(e=Xr(this,at(this.doc,e))).bottom,c=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),s.sizer.appendChild(t),"over"==n)u=e.top;else if("above"==n||"near"==n){var f=Math.max(s.wrapper.clientHeight,this.doc.height),h=Math.max(s.sizer.clientWidth,s.lineSpace.clientWidth);("above"==n||e.bottom+t.offsetHeight>f)&&e.top>t.offsetHeight?u=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=f&&(u=e.bottom),c+t.offsetWidth>h&&(c=h-t.offsetWidth)}t.style.top=u+"px",t.style.left=t.style.right="","right"==i?(c=s.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?c=0:"middle"==i&&(c=(s.sizer.clientWidth-t.offsetWidth)/2),t.style.left=c+"px"),r&&(o=this,l={left:c,top:u,right:c+t.offsetWidth,bottom:u+t.offsetHeight},null!=(a=Mn(o,l)).scrollTop&&Hn(o,a.scrollTop),null!=a.scrollLeft&&Fn(o,a.scrollLeft))},triggerOnKeyDown:Qn(al),triggerOnKeyPress:Qn(ul),triggerOnKeyUp:sl,triggerOnMouseDown:Qn(dl),execCommand:function(e){if(Qo.hasOwnProperty(e))return Qo[e].call(null,this)},triggerElectric:Qn(function(e){Dl(this,e)}),findPosH:function(e,t,r,n){var i=1;t<0&&(i=-1,t=-t);for(var o=at(this.doc,e),l=0;l0&&l(t.charAt(r-1));)--r;for(;n.5)&&ln(this),ge(this,"refresh",this)}),swapDoc:Qn(function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),Wi(this,e),Rr(this),this.display.input.reset(),On(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,ar(this,"swapDoc",this,t),t}),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},be(e),e.registerHelper=function(t,n,i){r.hasOwnProperty(t)||(r[t]=e[t]={_global:[]}),r[t][n]=i},e.registerGlobalHelper=function(t,n,i,o){e.registerHelper(t,n,o),r[t]._global.push({pred:i,val:o})}}(Sl);var Gl="iter insert remove copy getEditor constructor".split(" ");for(var Ul in No.prototype)No.prototype.hasOwnProperty(Ul)&&B(Gl,Ul)<0&&(Sl.prototype[Ul]=function(e){return function(){return e.apply(this.doc,arguments)}}(No.prototype[Ul]));return be(No),Sl.inputStyles={textarea:jl,contenteditable:Il},Sl.defineMode=function(e){Sl.defaults.mode||"null"==e||(Sl.defaults.mode=e),function(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Pe[e]=t}.apply(this,arguments)},Sl.defineMIME=function(e,t){Ie[e]=t},Sl.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Sl.defineMIME("text/plain","null"),Sl.defineExtension=function(e,t){Sl.prototype[e]=t},Sl.defineDocExtension=function(e,t){No.prototype[e]=t},Sl.fromTextArea=function(e,t){if((t=t?I(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var r=W();t.autofocus=r==e||null!=e.getAttribute("autofocus")&&r==document.body}function n(){e.value=a.getValue()}var i;if(e.form&&(he(e.form,"submit",n),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var l=o.submit=function(){n(),o.submit=i,o.submit(),o.submit=l}}catch(e){}}t.finishInit=function(r){r.save=n,r.getTextArea=function(){return e},r.toTextArea=function(){r.toTextArea=isNaN,n(),e.parentNode.removeChild(r.getWrapperElement()),e.style.display="",e.form&&(pe(e.form,"submit",n),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var a=Sl(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return a},function(e){e.off=pe,e.on=he,e.wheelEventPixels=mi,e.Doc=No,e.splitLines=We,e.countColumn=z,e.findColumn=X,e.isWordChar=ee,e.Pass=j,e.signal=ge,e.Line=Xt,e.changeEnd=ki,e.scrollbarModel=Vn,e.Pos=et,e.cmpPos=tt,e.modes=Pe,e.mimeModes=Ie,e.resolveMode=ze,e.getMode=Re,e.modeExtensions=Be,e.extendMode=Ve,e.copyState=je,e.startState=Ue,e.innerMode=Ge,e.commands=Qo,e.keyMap=Bo,e.keyName=Xo,e.isModifierKey=Uo,e.lookupKey=Go,e.normalizeKeyMap=jo,e.StringStream=Ke,e.SharedTextMarker=So,e.TextMarker=Co,e.LineWidget=bo,e.e_preventDefault=we,e.e_stopPropagation=xe,e.e_stop=ke,e.addClass=H,e.contains=D,e.rmClass=L,e.keyNames=Po}(Sl),Sl.version="5.52.0",Sl}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(TaysCodeMirror)}(function(e){"use strict";e.defineMode("javascript",function(t,r){var n,i,o=t.indentUnit,l=r.statementIndent,a=r.jsonld,s=r.json||a,u=r.typescript,c=r.wordCharacters||/[\w$\xa1-\uffff]/,f=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),r=e("keyword b"),n=e("keyword c"),i=e("keyword d"),o=e("operator"),l={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:r,do:r,try:r,finally:r,return:i,break:i,continue:i,new:e("new"),delete:n,void:n,throw:n,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:l,false:l,null:l,undefined:l,NaN:l,Infinity:l,this:e("this"),class:e("class"),super:e("atom"),yield:n,export:e("export"),import:e("import"),extends:n,await:n}}(),h=/[+\-*&%=<>!?|~^@]/,d=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function p(e,t,r){return n=e,i=r,t}function g(e,t){var r,n=e.next();if('"'==n||"'"==n)return t.tokenize=(r=n,function(e,t){var n,i=!1;if(a&&"@"==e.peek()&&e.match(d))return t.tokenize=g,p("jsonld-keyword","meta");for(;null!=(n=e.next())&&(n!=r||i);)i=!i&&"\\"==n;return i||(t.tokenize=g),p("string","string")}),t.tokenize(e,t);if("."==n&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return p("number","number");if("."==n&&e.match(".."))return p("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(n))return p(n);if("="==n&&e.eat(">"))return p("=>","operator");if("0"==n&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return p("number","number");if(/\d/.test(n))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),p("number","number");if("/"==n)return e.eat("*")?(t.tokenize=v,v(e,t)):e.eat("/")?(e.skipToEnd(),p("comment","comment")):_e(e,t,1)?(function(e){for(var t,r=!1,n=!1;null!=(t=e.next());){if(!r){if("/"==t&&!n)return;"["==t?n=!0:n&&"]"==t&&(n=!1)}r=!r&&"\\"==t}}(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),p("regexp","string-2")):(e.eat("="),p("operator","operator",e.current()));if("`"==n)return t.tokenize=m,m(e,t);if("#"==n)return e.skipToEnd(),p("error","error");if("<"==n&&e.match("!--")||"-"==n&&e.match("->"))return e.skipToEnd(),p("comment","comment");if(h.test(n))return">"==n&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=n&&"="!=n||e.eat("="):/[<>*+\-]/.test(n)&&(e.eat(n),">"==n&&e.eat(n))),p("operator","operator",e.current());if(c.test(n)){e.eatWhile(c);var i=e.current();if("."!=t.lastType){if(f.propertyIsEnumerable(i)){var o=f[i];return p(o.type,o.style,i)}if("async"==i&&e.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return p("async","keyword",i)}return p("variable","variable",i)}}function v(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=g;break}n="*"==r}return p("comment","comment")}function m(e,t){for(var r,n=!1;null!=(r=e.next());){if(!n&&("`"==r||"$"==r&&e.eat("{"))){t.tokenize=g;break}n=!n&&"\\"==r}return p("quasi","string-2",e.current())}var y="([{}])";function b(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var r=e.string.indexOf("=>",e.start);if(!(r<0)){if(u){var n=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,r));n&&(r=n.index)}for(var i=0,o=!1,l=r-1;l>=0;--l){var a=e.string.charAt(l),s=y.indexOf(a);if(s>=0&&s<3){if(!i){++l;break}if(0==--i){"("==a&&(o=!0);break}}else if(s>=3&&s<6)++i;else if(c.test(a))o=!0;else if(/["'\/`]/.test(a))for(;;--l){if(0==l)return;if(e.string.charAt(l-1)==a&&"\\"!=e.string.charAt(l-2)){l--;break}}else if(o&&!i){++l;break}}o&&!i&&(t.fatArrowAt=l)}}var w={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function x(e,t,r,n,i,o){this.indented=e,this.column=t,this.type=r,this.prev=i,this.info=o,null!=n&&(this.align=n)}function C(e,t){for(var r=e.localVars;r;r=r.next)if(r.name==t)return!0;for(var n=e.context;n;n=n.prev)for(r=n.vars;r;r=r.next)if(r.name==t)return!0}var k={state:null,column:null,marked:null,cc:null};function S(){for(var e=arguments.length-1;e>=0;e--)k.cc.push(arguments[e])}function T(){return S.apply(null,arguments),!0}function L(e,t){for(var r=t;r;r=r.next)if(r.name==e)return!0;return!1}function M(e){var t=k.state;if(k.marked="def",t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var n=function e(t,r){if(r){if(r.block){var n=e(t,r.prev);return n?n==r.prev?r:new A(n,r.vars,!0):null}return L(t,r.vars)?r:new A(r.prev,new O(t,r.vars),!1)}return null}(e,t.context);if(null!=n)return void(t.context=n)}else if(!L(e,t.localVars))return void(t.localVars=new O(e,t.localVars));r.globalVars&&!L(e,t.globalVars)&&(t.globalVars=new O(e,t.globalVars))}function N(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function A(e,t,r){this.prev=e,this.vars=t,this.block=r}function O(e,t){this.name=e,this.next=t}var D=new O("this",new O("arguments",null));function W(){k.state.context=new A(k.state.context,k.state.localVars,!1),k.state.localVars=D}function H(){k.state.context=new A(k.state.context,k.state.localVars,!0),k.state.localVars=null}function E(){k.state.localVars=k.state.context.vars,k.state.context=k.state.context.prev}function F(e,t){var r=function(){var r=k.state,n=r.indented;if("stat"==r.lexical.type)n=r.lexical.indented;else for(var i=r.lexical;i&&")"==i.type&&i.align;i=i.prev)n=i.indented;r.lexical=new x(n,k.stream.column(),e,null,r.lexical,t)};return r.lex=!0,r}function P(){var e=k.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function I(e){return function t(r){return r==e?T():";"==e||"}"==r||")"==r||"]"==r?S():T(t)}}function z(e,t){return"var"==e?T(F("vardef",t),be,I(";"),P):"keyword a"==e?T(F("form"),j,z,P):"keyword b"==e?T(F("form"),z,P):"keyword d"==e?k.stream.match(/^\s*$/,!1)?T():T(F("stat"),U,I(";"),P):"debugger"==e?T(I(";")):"{"==e?T(F("}"),H,le,P,E):";"==e?T():"if"==e?("else"==k.state.lexical.info&&k.state.cc[k.state.cc.length-1]==P&&k.state.cc.pop()(),T(F("form"),j,z,P,Te)):"function"==e?T(Ae):"for"==e?T(F("form"),Le,z,P):"class"==e||u&&"interface"==t?(k.marked="keyword",T(F("form","class"==e?e:t),Ee,P)):"variable"==e?u&&"declare"==t?(k.marked="keyword",T(z)):u&&("module"==t||"enum"==t||"type"==t)&&k.stream.match(/^\s*\w/,!1)?(k.marked="keyword","enum"==t?T(Xe):"type"==t?T(De,I("operator"),fe,I(";")):T(F("form"),we,I("{"),F("}"),le,P,P)):u&&"namespace"==t?(k.marked="keyword",T(F("form"),B,z,P)):u&&"abstract"==t?(k.marked="keyword",T(z)):T(F("stat"),J):"switch"==e?T(F("form"),j,I("{"),F("}","switch"),H,le,P,P,E):"case"==e?T(B,I(":")):"default"==e?T(I(":")):"catch"==e?T(F("form"),W,R,z,P,E):"export"==e?T(F("stat"),ze,P):"import"==e?T(F("stat"),Be,P):"async"==e?T(z):"@"==t?T(B,z):S(F("stat"),B,I(";"),P)}function R(e){if("("==e)return T(We,I(")"))}function B(e,t){return G(e,t,!1)}function V(e,t){return G(e,t,!0)}function j(e){return"("!=e?S():T(F(")"),B,I(")"),P)}function G(e,t,r){if(k.state.fatArrowAt==k.stream.start){var n=r?q:Y;if("("==e)return T(W,F(")"),ie(We,")"),P,I("=>"),n,E);if("variable"==e)return S(W,we,I("=>"),n,E)}var i=r?X:K;return w.hasOwnProperty(e)?T(i):"function"==e?T(Ae,i):"class"==e||u&&"interface"==t?(k.marked="keyword",T(F("form"),He,P)):"keyword c"==e||"async"==e?T(r?V:B):"("==e?T(F(")"),U,I(")"),P,i):"operator"==e||"spread"==e?T(r?V:B):"["==e?T(F("]"),Ke,P,i):"{"==e?oe(te,"}",null,i):"quasi"==e?S($,i):"new"==e?T(function(e){return function(t){return"."==t?T(e?Q:Z):"variable"==t&&u?T(ve,e?X:K):S(e?V:B)}}(r)):"import"==e?T(B):T()}function U(e){return e.match(/[;\}\)\],]/)?S():S(B)}function K(e,t){return","==e?T(U):X(e,t,!1)}function X(e,t,r){var n=0==r?K:X,i=0==r?B:V;return"=>"==e?T(W,r?q:Y,E):"operator"==e?/\+\+|--/.test(t)||u&&"!"==t?T(n):u&&"<"==t&&k.stream.match(/^([^>]|<.*?>)*>\s*\(/,!1)?T(F(">"),ie(fe,">"),P,n):"?"==t?T(B,I(":"),i):T(i):"quasi"==e?S($,n):";"!=e?"("==e?oe(V,")","call",n):"."==e?T(ee,n):"["==e?T(F("]"),U,I("]"),P,n):u&&"as"==t?(k.marked="keyword",T(fe,n)):"regexp"==e?(k.state.lastType=k.marked="operator",k.stream.backUp(k.stream.pos-k.stream.start-1),T(i)):void 0:void 0}function $(e,t){return"quasi"!=e?S():"${"!=t.slice(t.length-2)?T($):T(B,_)}function _(e){if("}"==e)return k.marked="string-2",k.state.tokenize=m,T($)}function Y(e){return b(k.stream,k.state),S("{"==e?z:B)}function q(e){return b(k.stream,k.state),S("{"==e?z:V)}function Z(e,t){if("target"==t)return k.marked="keyword",T(K)}function Q(e,t){if("target"==t)return k.marked="keyword",T(X)}function J(e){return":"==e?T(P,z):S(K,I(";"),P)}function ee(e){if("variable"==e)return k.marked="property",T()}function te(e,t){return"async"==e?(k.marked="property",T(te)):"variable"==e||"keyword"==k.style?(k.marked="property","get"==t||"set"==t?T(re):(u&&k.state.fatArrowAt==k.stream.start&&(r=k.stream.match(/^\s*:\s*/,!1))&&(k.state.fatArrowAt=k.stream.pos+r[0].length),T(ne))):"number"==e||"string"==e?(k.marked=a?"property":k.style+" property",T(ne)):"jsonld-keyword"==e?T(ne):u&&N(t)?(k.marked="keyword",T(te)):"["==e?T(B,ae,I("]"),ne):"spread"==e?T(V,ne):"*"==t?(k.marked="keyword",T(te)):":"==e?S(ne):void 0;var r}function re(e){return"variable"!=e?S(ne):(k.marked="property",T(Ae))}function ne(e){return":"==e?T(V):"("==e?S(Ae):void 0}function ie(e,t,r){function n(i,o){if(r?r.indexOf(i)>-1:","==i){var l=k.state.lexical;return"call"==l.info&&(l.pos=(l.pos||0)+1),T(function(r,n){return r==t||n==t?S():S(e)},n)}return i==t||o==t?T():r&&r.indexOf(";")>-1?S(e):T(I(t))}return function(r,i){return r==t||i==t?T():S(e,n)}}function oe(e,t,r){for(var n=3;n"),fe):void 0}function he(e){if("=>"==e)return T(fe)}function de(e,t){return"variable"==e||"keyword"==k.style?(k.marked="property",T(de)):"?"==t||"number"==e||"string"==e?T(de):":"==e?T(fe):"["==e?T(I("variable"),se,I("]"),de):"("==e?S(Oe,de):void 0}function pe(e,t){return"variable"==e&&k.stream.match(/^\s*[?:]/,!1)||"?"==t?T(pe):":"==e?T(fe):"spread"==e?T(pe):S(fe)}function ge(e,t){return"<"==t?T(F(">"),ie(fe,">"),P,ge):"|"==t||"."==e||"&"==t?T(fe):"["==e?T(fe,I("]"),ge):"extends"==t||"implements"==t?(k.marked="keyword",T(fe)):"?"==t?T(fe,I(":"),fe):void 0}function ve(e,t){if("<"==t)return T(F(">"),ie(fe,">"),P,ge)}function me(){return S(fe,ye)}function ye(e,t){if("="==t)return T(fe)}function be(e,t){return"enum"==t?(k.marked="keyword",T(Xe)):S(we,ae,ke,Se)}function we(e,t){return u&&N(t)?(k.marked="keyword",T(we)):"variable"==e?(M(t),T()):"spread"==e?T(we):"["==e?oe(Ce,"]"):"{"==e?oe(xe,"}"):void 0}function xe(e,t){return"variable"!=e||k.stream.match(/^\s*:/,!1)?("variable"==e&&(k.marked="property"),"spread"==e?T(we):"}"==e?S():"["==e?T(B,I("]"),I(":"),xe):T(I(":"),we,ke)):(M(t),T(ke))}function Ce(){return S(we,ke)}function ke(e,t){if("="==t)return T(V)}function Se(e){if(","==e)return T(be)}function Te(e,t){if("keyword b"==e&&"else"==t)return T(F("form","else"),z,P)}function Le(e,t){return"await"==t?T(Le):"("==e?T(F(")"),Me,P):void 0}function Me(e){return"var"==e?T(be,Ne):"variable"==e?T(Ne):S(Ne)}function Ne(e,t){return")"==e?T():";"==e?T(Ne):"in"==t||"of"==t?(k.marked="keyword",T(B,Ne)):S(B,Ne)}function Ae(e,t){return"*"==t?(k.marked="keyword",T(Ae)):"variable"==e?(M(t),T(Ae)):"("==e?T(W,F(")"),ie(We,")"),P,ue,z,E):u&&"<"==t?T(F(">"),ie(me,">"),P,Ae):void 0}function Oe(e,t){return"*"==t?(k.marked="keyword",T(Oe)):"variable"==e?(M(t),T(Oe)):"("==e?T(W,F(")"),ie(We,")"),P,ue,E):u&&"<"==t?T(F(">"),ie(me,">"),P,Oe):void 0}function De(e,t){return"keyword"==e||"variable"==e?(k.marked="type",T(De)):"<"==t?T(F(">"),ie(me,">"),P):void 0}function We(e,t){return"@"==t&&T(B,We),"spread"==e?T(We):u&&N(t)?(k.marked="keyword",T(We)):u&&"this"==e?T(ae,ke):S(we,ae,ke)}function He(e,t){return"variable"==e?Ee(e,t):Fe(e,t)}function Ee(e,t){if("variable"==e)return M(t),T(Fe)}function Fe(e,t){return"<"==t?T(F(">"),ie(me,">"),P,Fe):"extends"==t||"implements"==t||u&&","==e?("implements"==t&&(k.marked="keyword"),T(u?fe:B,Fe)):"{"==e?T(F("}"),Pe,P):void 0}function Pe(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||u&&N(t))&&k.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(k.marked="keyword",T(Pe)):"variable"==e||"keyword"==k.style?(k.marked="property",T(u?Ie:Ae,Pe)):"number"==e||"string"==e?T(u?Ie:Ae,Pe):"["==e?T(B,ae,I("]"),u?Ie:Ae,Pe):"*"==t?(k.marked="keyword",T(Pe)):u&&"("==e?S(Oe,Pe):";"==e||","==e?T(Pe):"}"==e?T():"@"==t?T(B,Pe):void 0}function Ie(e,t){if("?"==t)return T(Ie);if(":"==e)return T(fe,ke);if("="==t)return T(V);var r=k.state.lexical.prev;return S(r&&"interface"==r.info?Oe:Ae)}function ze(e,t){return"*"==t?(k.marked="keyword",T(Ue,I(";"))):"default"==t?(k.marked="keyword",T(B,I(";"))):"{"==e?T(ie(Re,"}"),Ue,I(";")):S(z)}function Re(e,t){return"as"==t?(k.marked="keyword",T(I("variable"))):"variable"==e?S(V,Re):void 0}function Be(e){return"string"==e?T():"("==e?S(B):S(Ve,je,Ue)}function Ve(e,t){return"{"==e?oe(Ve,"}"):("variable"==e&&M(t),"*"==t&&(k.marked="keyword"),T(Ge))}function je(e){if(","==e)return T(Ve,je)}function Ge(e,t){if("as"==t)return k.marked="keyword",T(Ve)}function Ue(e,t){if("from"==t)return k.marked="keyword",T(B)}function Ke(e){return"]"==e?T():S(ie(V,"]"))}function Xe(){return S(F("form"),we,I("{"),F("}"),ie($e,"}"),P,P)}function $e(){return S(we,ke)}function _e(e,t,r){return t.tokenize==g&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(r||0)))}return E.lex=!0,P.lex=!0,{startState:function(e){var t={tokenize:g,lastType:"sof",cc:[],lexical:new x((e||0)-o,0,"block",!1),localVars:r.localVars,context:r.localVars&&new A(null,null,!1),indented:e||0};return r.globalVars&&"object"==typeof r.globalVars&&(t.globalVars=r.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),b(e,t)),t.tokenize!=v&&e.eatSpace())return null;var r=t.tokenize(e,t);return"comment"==n?r:(t.lastType="operator"!=n||"++"!=i&&"--"!=i?n:"incdec",function(e,t,r,n,i){var o=e.cc;for(k.state=e,k.stream=i,k.marked=null,k.cc=o,k.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():s?B:z)(r,n)){for(;o.length&&o[o.length-1].lex;)o.pop()();return k.marked?k.marked:"variable"==r&&C(e,n)?"variable-2":t}}(t,r,n,i,e))},indent:function(t,n){if(t.tokenize==v)return e.Pass;if(t.tokenize!=g)return 0;var i,a=n&&n.charAt(0),s=t.lexical;if(!/^\s*else\b/.test(n))for(var u=t.cc.length-1;u>=0;--u){var c=t.cc[u];if(c==P)s=s.prev;else if(c!=Te)break}for(;("stat"==s.type||"form"==s.type)&&("}"==a||(i=t.cc[t.cc.length-1])&&(i==K||i==X)&&!/^[,\.=+\-*:?[\(]/.test(n));)s=s.prev;l&&")"==s.type&&"stat"==s.prev.type&&(s=s.prev);var f=s.type,d=a==f;return"vardef"==f?s.indented+("operator"==t.lastType||","==t.lastType?s.info.length+1:0):"form"==f&&"{"==a?s.indented:"form"==f?s.indented+o:"stat"==f?s.indented+(function(e,t){return"operator"==e.lastType||","==e.lastType||h.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}(t,n)?l||o:0):"switch"!=s.info||d||0==r.doubleIndentSwitch?s.align?s.column+(d?0:1):s.indented+(d?0:o):s.indented+(/^(?:case|default)\b/.test(n)?o:2*o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:s?null:"/*",blockCommentEnd:s?null:"*/",blockCommentContinue:s?null:" * ",lineComment:s?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:s?"json":"javascript",jsonldMode:a,jsonMode:s,expressionAllowed:_e,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=B&&t!=V||e.cc.pop()}}}),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})});
var codes = document.getElementsByClassName("code_mirror_code");
for(var i =0;i remove dots from ul dart check if string is contained in list of strings how to get all the elements in xpath java how to check if its a character in r dist subplots in seaborn python randomly choose n elements from a text file linux unity lists number of add column if not exists postgresql how to write lists to text file python requests python no proxy how to make a class that takes no arguments in python bullet points on same line overleaf add elements to middle of array using splice sheets column number to letter regex replace certain string how to print a character with its ascii value in c++ sum of digits in c++ how to import requests in python check if list of objects contains value c# how to get rid of bullet points in css check if dict key exists python how to check if a directory exists or not using python change how many plots you view r drop table if it exists mysql how to create multiple sheets in excel using python in openpyxml delete contents of folder java divide all elements of list by an integer python all elements in list in another list how to print certain elements of an array how to save plots in r find a value in list of objects in c# remove dots from ul li sort list of objects by attribute java Return the Objects Keys and Values adding elements in a specified column or row in a two dimensional array java flutter text button shape append to lists python mongo change all documents on field plot 3d points in python mongo count elements in array how to check if a string is composed only of alphabets in python Sum of digits of a number using recursion function c how to count positive elements numpy difference between dictionary and sets in python remove bullets css how to align text inside an li to its center git remove commits from branch after push java what are the comments before a method add a background color for all h1 elements in css python count number of digits in integer get all the game objects in a scene unity python how to check if all elements in list are the same python get elements from list of dictionaries how to check if var exists python how to append to a list of lists in python if key exists in hashmap java how to separate a number into digits java print elements in map java find elements array lamda python how to align contents of div in center how to create a dataframe from two lists in python how to initialize vector in c++ with all elements 0 sort array of objects by 2 key value get subplots in matplotlib python check if attribute exists in class install requests python how do i remove the brackets around a list in python when a vector in c++ is resized what happens to the elements of the vector all elements that begin with r two plots side by side r how to put the contents of a file into an array in bash adjust distance of subplots in python find max of array of objects key python find the number of elements in a list list of lists python python shuffle two lists together Java program to find the sum of all the digits in the inputted number python program to print the contents of a directory using os module how to make lists in python find element vs find elements in selenium Which of the following data structure can’t store the non homogeneous data elements? combine two lists c# python check if value exists in any key check if column exists in dataframe python how to target all child elements css laravel get all inputs from request python program to find frequency of elements in a list mysql insert exists update how to get value_counts output in dataframe format how to remove digits in string in python? Python Requests kali linux group objects in javascript response.json results in pretty data python mongoose modify all elements in array how to combine two lists in python Given an array of integers, find the pair of adjacent elements that has the largest product and return that product. how to sort the arraylist of objects in java how to add a new propety into all documents in mongodb convert object to list of objects c# java check if element exists in array upload file requests python subplots in seaborn python lists in python how to add elements in string array in java intersection of lists in python structs in c++ To add all the digits of a number till you get a single digit. html collection of elements to array remove bullets from ul python headers requests fake multiple scatter plots in python python remove multipl eelements from list pandas value_counts multiple columns Query a list of CITY names from STATION for cities that have an even ID number. Print the results in any order, but exclude duplicates from the answer. how to get command line arguments in python array objects java How many bits are in a single byte? react div style how to convert int into int array of digits in java list of objects to string c# count occu elements in list python c how many digits has a number python all elements not in list match a string that starts and ends with the same vowel how to shuffle the elements in a string python how to center all elements in a linearlayout embed python in html create and return a merged list of all the elements in sorted order value_counts pandas java sort arraylist of objects by field descending area of circle array of objects how to check if property has duplicate how to print list contents in java how to change elements of a string in python number of elements in c++ array li elements horizontally css count the number of digits in an integer in java creating array of objects in java max value array of object javascript python requests exceptions use of slice and splice add elements array remove duplicates from a list of lists python geodataframe from lat lon points python linq check if exists in list check only digits in dart plot value counts pandas multiple where statements sql how to count the number of the digits in an input in python get string in brackets python how to combine 2 lists in python how to find a combination of all elements in a python list hackerrank between two sets solution in python subplots matplotlib Clipping input data to the valid range for imshow with RGB data ([0..1] for floats or [0..255] for integers) two lists into one list of tules swap two elements of a vector mark occurances of elements in array cpp how to true elements in an array python c# linq get list of objects based on another list center elemnts css dart unique list beautifulsoup search for elements with attributes difference between arrays and lists in python output percentage of vowels and consonants in a given file in python reading multiple objects from file in java DAX check if value exists in another table Determine the sum of al digits of n Print all the triplets having sum equal to k checking if a substring exists in a string r how to get user input of list of lists in python mongodb find documents where two fields are equal dicts python python get first n elements of list insert if not exists mysql react setstate in hooks to array of objects value between two sets problem hackerrank solution in c Give each of the radio and checkbox inputs the value attribute. Use the input label text, in lowercase, as the value for the attribute. number of elements in list in python dataframe value counts sort python add elements of two lists together remove one element using splice if not exists in sql how push objects into a local stotage array how to make array of objects in java and use it convert list to list of lists on every n elements python sort list of objects python how to pass arguments to filter function in python sort a list of ints python in descending order flutter border between expansiontile block elements in html search an array of objects with specific object property value how to clear all the dropdown elements in jquery array with objects read element with the lowest value add bullet points in text widget flutter how to extract the first elements from a list of tuples select all inputs that arent checkboxes swap two elements in a list python Write a program to find max and min element in an array. User must input 5 elements in the array. i comparer for lists c# how to find contain elements in array in java how to get match percentage of lists in python java lambda list of objects cast unique elements in array java MySQL update if exists else insert google sheets add all numbers in a column with condition sorting vector of structs c++ separate subplots in python java check if key exists in list split list into sublists with linq iterate through objects with python python convert long floats to usd Write a function digitsum that calculates the digit sum of an integer. The digit sum of an integer is the sum of all its digits. check if array values exists in another array java list of objects example most common elements in a list python sorting a vector of objects c++ how to loop through arraylist of objects in java no of bits in a number increase space between border dots css get one property from list of objects linq remove item from array if exists in another array how to compare two lists element by element in python and return matched element if exits python sql lua print all elements table sort two lists that refence each other increment all elements list python check if string can be a number and then make a number check if document exists mongodb python mysql error count(): Parameter must be an array or an object that implements Countable create plots with multiple dataframes python how to change the bullet points in css diff 2 lists python how to make floats output with 2 decimals c++ Lists - Learn C# add dots to line matplotlib structs in c how to show array of objects in flatlist react native keys of array exist in array R merge lists override alphabets range using re how to get duplicate elements in sql Write a shell script that accepts a file name starting and ending line numbers as arguments and displays all the lines between the given line numbers Write a program that asks the user to enter an integer and prints two integers, root and pwr, such that 0 < pwr < 6 and root**pwr is equal to the integer entered by the user. If no such pair of integers exists, it should print a message to that effect. elements in string is unique in java "ValueError: Solver lbfgs supports only 'l2' or 'none' penalties, got l1 penalty." in machine learning how to make a rounded button how to move block elements in css how to get class weights while using keras imagedatagenerator how to remove dulplicate elements from an unsorted linked list how to convert lists to xml in python JAVA Program than read an integer and calculate the sum of its digits and write the number of each digit of the sum in English dictionary comprehension using while copying elements from another dictionary in python how to keep only certian objects python print array elements with space c++ include? enumerable check against different arrays print all objects linked list python how arrange order of boxplots matplotlib fwrite() expects parameter 2 to be string, array given find smallest number whose sum of digits equal to n How to delete Tkinter widgets from a window? how to destroy bullets when they hit a collider unity 2d how to find uncommon elements in two lists in python Implement a groupByOwners function that: Accepts an associative array find common elements in two flutter how to get label for points from a column in dataframe for scatter plot in python inbuild method to sum of an arraylist elements in java c++ check if the number is equal to the sum of its divisors excluding itself how to concate a string to all elements in a list in python get elements by id like jquery how to make a program that sorts two digit numbers in python sum of diagonal elements of a matrix in c accessing elements in DictReader how to take multiple inputs in one propmt how to make a dictionary of indices and lists python how to value counts of two columns in pandas distance subplots matplotlib python combine two lists into matrix have_posts args concatenate lists c++ product of two vector accessing the elements of a char* in c how to remove empty elements in a list python remove dots from li reverse digits of an integer c++ sort array elements in descending order based on object key making barplots in r how to check if a string contains only alphabets and space in java how to label points in scatter plot in python how to remove last 2 elements from list in python adding two lists using lambda function use of value_counts in python how to make all elements in array int python how remove decimal points in java python convert two lists with duplicates to dictiona mongo find documents that have a certain key empty form elements except jquery intersection between two sets python value_counts pandas condition how to get all elements of column in pandas dataframe get n random elements from list java add key value pair to all objects in array how to compare two arraylists are equal in java java write arraylist of objects to file remove all the elements from a numpy array python c# merge two lists different types check if a key exists in a dictionary python finding diagonal elements in matlab merge lists in list python how to add elements in 2d array in python how to write a class with inputs in python python list arguments of function combine list of lists python c number of elements in array remove elements from dictionary python python add all elements of a list how to check how many elements in a set java get elements of array matlab make a vector of an objects c++ Error: Objects are not valid as a React child (found: object with keys {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}). If you meant to render a collection of children, use an array instead. Given an array of integers, find the sum of its elements. For example, if the array , , so return . htmlspecialchars() expects parameter 1 to be string array given in laravel blade findelements in selenium get only parent child elements beautiful soup plot multiple plots in r compare two lists and remove duplicates java best possible run time for finding a pair of elements whose sum equals k Describe a recursive algorithm that counts the number of nodes in a singly linked list. Try out the enumerate function for yourself in this quick exercise. Complete the skip_elements function to return every other element from the list, this time using the enumerate function to check if an element is on an even position or an odd position. fprmaatting lists python c# copy the elements of a list to another list Write a function that takes in two sorted arrays and returns a new array with all elements sorted not using array method sort. c# check list of objects for value loop two lists python abs(p1[1] - p2[1])Given a non-negative number represented as an array of digits, add 1 to the number ( increment the number represented by the digits ). The digits are stored such that the most significant digit is at the head of the list how to trake muyltiple inputs in same line in python give all element in a list starts with string how to make if else statments in java check if value exists in hashmap java how many elements can be stored in an array Evenly distribute points inside a circle python Create a program that takes in an even sized String and prints out the first half concatenated with second half string separated by a single space, and the first half must be turned all capital letters whereas the second part turn to all lowercase check if all array elements match closure swift bash file exists with list does casting have a higher precedence than dots java how to use variables with if statements python Given an array, A, of integers, print N's elements in reverse order as a single line of space-separated numbers. how to invert sortField primeng java 8 collect multiple lists into single list 1 positional arguments expected but 2 were given python program that gives the user a positive integer N, prints the number in the N position of the Fibonacci sequence does key repeats in hashmap how to make a list of gameobjects unity and make them move separatly arranging array objects in custom order Two sets of parentheses after function call exists id in the table in laravel validation jquery loop through elements starting with c# get all elements from list FindObjectsWithTag in list how to calculate distance between 2 points in knex postgis how to select a column with brackets in jupyter notebook calling from a list elements in steps Given a positive integer A, the task is to count the total number of set bits in the binary representation of all the numbers from 1 to A. Objective: Given two polynomials, represent them by two linked lists and add these lists. java linux Write a command to list all contents of files whose names start by a and end by z append contents of one file to another 3 inputs in a row how to separate elements in list python passing functions and objects as arguments in java c program to print array elements using recursion write a bash script that accepts a text file as argument and calculates number of occurrences of each words in it and return them as key value pairs how to erase elemts accoding to index c++ filename requests python Write a function that constructs a list by “zig-zag” two other lists: def zig_zag(A:list, B:list) -> list: """ >>> zig_zag([1, 2], [3, 4]) [1, 3, 2, 4] >>> zig_zag([1, 2, 3], [4, 5]) [1, 4, 2, 5, 3] >>> zig_zag([1, 2], [3, 4, 5]) [1, 3, 2, 4, 5] """ sum of boundary elements of matrix in java read/write linked lists to file python compare lists unordered how to make the score add on while its in a loop in python How to check that tuple A contains all elements of tuple B python? subplots dash plotly remove dots from image python how to extract comments from word python update item if id exists mysql deleting a generated lib in nx how to get all the elements in Hashtable java call_user_func_array() expects parameter 1 how to install downloaded requirements pip with python pywavelets tutorial c program to find sum of array elements using recursion how to store data in objects java avoid intertwining subplots in python to find max and min using command line arguments in java django model get all documents with a given foreign key how to check whther the brackets are balanced for pythom tcl check if value exists in list unpack list of lists python how to save plots into raster format from r minimum number of cycle shifts for each string if it can be made palindrome how to collect array of objects in one value key in laravel array for (... in ...) statements must be filtered with an if statement (forin) How to check that tuple contains unique elements how to fix takes 0 positional arguments but 2 were given check if element exists in array golang bootstrap get elements id python multiply digits of a number list elements not in indices how to make game objects spread in a specific vector how to get the corners of 2 points on a matrix depth-first search that chooses values for one variable at a time and returns when a variable has no legal values left to assign elements without corner css If there are an odd number of elements in the array, return the element in the middle of the array. list item in text file in listview asssets android return tru if one of the objects in a aray has a fild match craeting a method that can take any number of arguments in python number of increments and decrements to make array sorted Copy the first two array elements to the last two array elements Javascriptt loop array using log how can we find number of digits for a number in java add all elements in a list c# collection that accepts duplicate keys join elements in a list with , java create array of structs cpp acces arrey lements without comma python set remove duplicate elements get last n elements from list java element of an array is the same as any of the previous elements pandas HHow to append lists elixir common legend for multiple plots in r how to concatenate lists in haskell transfer elements to another list python Can we nested try statements in java Given three ints, a b c, return true if it is possible to add two of the ints to get the third. PYTHON STACK FUNCTION count the valid number of brackets Returns the total number of valid brackets in the string how to access contents of an array from another class in java loc multiple conditions string and integer python requests query string "Complete the following Python syntax to evaluate the contents of variable a. The print should only work when a is negative" python multiple named imports on one line how can i get 2 inputs in singal line seprated by space 2d array of strings and ints python group list into sublists python text size in plots in r how to remove one object in an array of objects in mongoose python requests use many proxy Python Program to Count Vowels and Consonants in a String array of linked lists in cpp why are lower case alphabets more preffered in html maximum subset sum such that no two elements are adjacent deleting a comnent from arrays of comments in mongodb flutter reorderable list view dividers Write a java program to create a arraylist of students perform sorting based on roll no and name filtering objects in django templates how many sets of 3 in 4 How can I create an array with a range of decimal increments in SwiftUI ? if statements equals same value python in another method display sum of elements in different arrays in c# open and append to file python if exists if not create products = product.object.all() python show all digits in python validate int have 3 digits c# flutter widgets example how to check git folder exists or not eeclaring arrayLists in javba longest increasing subsequence when elements hae duplicates how to print selected elements from a list heterogeneous objects in java how to remove second square brackets in an array add multiple constraints in create table sql method swap to the Pair class of that swaps the first and second elements value of the pair in generic Pair class in java Write a function called valTimesIndex which accepts an array of numbers and returns a new array with each value multiplied by the index it is at in the array: permutation of elements in array of k length function that, given the number of rows N and a list of reserved seats as string S returns the maximum of four-person families that can be seated in the remaining unreserved seats c++ hide elements in 2s jquery how to medrge lists of lists dart descending order in of objects array Create 2 set A and B of size n1 and n2 . Print sets A and B. how to get only positive number in javasscropt css input 2 rows how to checka query to return User whose first name starts with R or last name starts with D in django Implement 16 bits algorithm as a subroutine python unix get 5 minuts from now sort students in alphabetical order check whether sum of digits is a factor Mongodb count based on array of ids Python program to extract characters from various text files and puts them into a list Create a class with a method that prints "This is parent class" and its subclass with another method that prints "This is child class". Now, create an object for each of the class and call Check if value exisits update or insert sQL test valeurs 2 flottants python can interface have objects in java how to delete objects in unity linux shell loop through all inputs except last two form in rasa merge two lists together ruby rstudio plots arrows(), text() remove dots and commas java multiple plots using px.line next bigger number with the same digits java Write a function that accepts as input two sets represented as lists and produces at output a list representing the intersection of the two sets. Example: >(union ’(a b c d e f) ’(a c f e x y)) ; Value: (a b c d e f x y) Find next greater number with same set of digits C# changing the elements of an array using a for loop java python remove accents pandas code to find diagonal elements of matrix of n rows columns Construct a binary tree from inorder and preorder traversal calculator IN/EXISTS predicate sub-queries can only be used in a Filter: first k digits of n*n public class IntMod implements Field, Ordered { private int n, m; public IntMod(int n, int m) { if(m <= 0) throw new IllegalArgumentException("Not a positive divisor"); dart check if variable is list how to make the inputs become a sum python c# get amount of elements in enum How to compute all digits of the number how to cycle through an array js display entry count for specific column using value_counts spyder. MInus points of exploration removing directories in linux program to find the largest and smallest elements in array. how to delete a struct in a arra of strcts c hashMap.put("name", fruits Names[i]); check if username exists in database django create n sublists python multiple clients in socket programming python warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘int’ loop trhough list of lists in python and find single elements how to get all the points of the circufrence python c code for insrting elements in set how to get data from an array of objects in dart python append elements from one list to anoter python arbitrary arguments *args mcqs python double check if wants to execute funtion can subclass method infere exceptions of its superclass method bibtex remove brackets in note field terrform variable list type Using the while loop, write a program that prints the line ‘I am so smart’ an infinite number of times. Create a variable to keep track of the number of times the line is printed. how are uv rays produced Update multiple documents with different field value by id set. Mongoose hhow to remove elements from java function accepts INTEGER n as parameter. Round a float two decimal points Cannot use empty array elements in arrays subsets of sql how to find the total of the products added to the shopping cart in java program merge lists c++ how to check element of 2 large lists python how to remove brackets from list in python text file representation of graph usig sets and hash in python minimum and maximum numbers of elements in a heap of height h Write a program in C to create two sets and perform the Symmetric Difference operation. how to add multiple if statements in python number of unique elements in list python cluster on lists of values that start with a certain value sum all elements using each_with_object ruby run a python module with imports from parent combine results from two columns in ms sql choose random elements from vector without repetition and adding to another vector c++ Given a string number convert it into its closest decimal point What types of Collections/Data structures you have used count number of elements in multi-dimensional array python compare two lists and find at least one equal python replace floats in dataframe python sort list according to two elements in tuple Types and CoProducts in scala check for common elements between two lists how to add space between inputs in a text file python group elements in list with some attributes interactive plots python Remove brackets from an algebraic string containing + and – operators reading list of elements in python Write a program that outputs all possibilities to put + or - or nothing between the numbers 1, 2, …, 9 (in this order) such that the result is always 100. For example 1 + 2 + 3 - 4 + 5 + 6 + 78 + 9 = 100 when new item added in array its not refreshing the list in ember find distance between two points in opencv python datasets in python github how to get the table contents from a file in python Pip install requirements txt not found algorithm that prints if one of the numbers is multiple of the other how to check if an entry exists in a model django classes and objects in python ppt Give an O (n lg k)-time algorithm to merge k sorted lists into one sorted list array elements double next to each other Write a program that creates a string that represents an 8×8 grid, using newline characters to separate lines. how to delete elements in figma find unique values between 2 lists R Shuffle a given array of elements (Fisher–Yates shuffle) python how to separate inputs into separate tuples dart clone list android java loop through all objects in layout tkinter widgets overview How to compare two lists and return the number of times they match at each index in python Given an array of integers, every element appears thrice except for one which occurs once. tokenizing tweets python jquery if key exists in object mergensherts meaning how to take list as command line arguments in python Write a program that takes a list of numbers as input and do the following remove all objects in R subplots in subplots howt o make sure its a valid sudoku in python How to loop through objects in java using streams storing custom objects in set c++ error: The method assertThat(T, Matcher super T>) in the type MatcherAssert is not applicable for the arguments (List, Matcher>) python get list elements missing in one list flutter too many positional arguments 0 expected but 1 found how to find the slope of a line with two points in c how to print list without brackets python 2 positional arguments but 3 were given regex remove brackets and contents merge two sorted lists python Sometimes elements overlap one another. Which property specifies the stacking order of the elements how to create a vector from elements of an existing vector in cpp keyword arguments python check list exists in list python check if that inex exisits array c# Structure of Structs in c The algorithm should count the the total number of parts entered and the number of old model parts and output these totals how to use true or false statements on python how to copy elements from hash to vector c++ c++ get digits of integer queryselectorall of multiple tags randbits python good python projects list github write a program that accepts a sentence and calculate the number of letters and digits enter elements in array in python Write a C program to count total number of duplicate elements in an array. what is lexicographically smallest string whats a group of pandas called bar plots subplots prolog check if element in different lists are same builtins.TypeError: choice() takes 2 positional arguments but 4 were given React update state array of objects hooks returning objects in alphabetical order in ruby python search all txts in a folder how to convert price data into charts in python creating lists in C gonz Add two more statements to main() to test inputs 3 and -1. Use print statements similar to the existing one (don't use assert). product of lists in python rest api django return value if exists in another table how to separate a string into 2 lists of numbers and letters python develop an algorithm that prints 2 numbers so that one is a multiple of the other how many continents are there pass arguments ipython how to get the elements that missing in other tables sql python fancy way to get arguments from the command line c++ sort vector of objects by property how to Write a program that accepts three decimal numbers as input and outputs their sum on python Count array elements having sum of digits equal to K get all elements with id starts and class Write a function called keys, which accepts an object and returns an array of all of the keys in the object. generate random numbers in python within a range how to input elements in list in python using for loop Python write a program that asks the user for a weight in kilograms and converts it to pounds _swapbatch.foreach multiple statements c# dataframe function to match its index with values of list HIGHER-ORDER FUNCTIONS with two parameters 3d plot goes across limits python random letter generator no repeats in c++ Koa the Koala and her best friend want to play a game. The game starts with an array a of length n consisting of non-negative integers. Koa and her best friend move in turns and each have initially a score equal to 0 . Koa starts. spritesheets in pyqt unity destroy all objects with tag You’re asked to read a file a line at a time. For each line, you have to split it into fields. Which of the following sets of pseudo class definitions is likely to be more orthogonal? on input inset - afetr 5 digits jquery set number of decimals python list of elements in watir multicolor points in one legend entry python how to remove the white space between two plots in r haskell get specific elements of a String convert all size units to terabytes in python requests python-passlib python-pil -y ubuntu 18.04 How to return a new string with its first and last characters swapped get number of objects in enum c++ how to compra vales on lists python how to find nuber of tweets per day using python Write a program that generates and prints 50 random integers, each between 3 and 6 how to check is value exists in array use sample weights fit model multiclass react protected routes typescript ngfor ionic example Write a function that takes in two sorted arrays and returns a new array with all elements sorted not using array method sort. c++ too few arguments in function call angular navigate using component How to download windows 10 ISO React with Typescript how to see all commits in git bootstrap angular comments in css angular date pipe typescript config how to check list of open ports in linux for loop typescript cannot be loaded because running scripts is disabled on this system ngFor Can't bind to 'formGroup' since it isn't a known property of 'form install typescript install typescript using npm use google fonts in css angular number pipe see what ports are in use show conflicts git typescript remove object from array typescript foreach google fonts roboto voting results 2020 live mat-form-field must contain a MatFormFieldControl font awesome angular How to Reload a Component in Angular typescript optional parameters create react app with typescript config react children typescript windows hosts file location get arguments from url flask check if file exists bash react tsx component example foreach typescript typescript switch case angular font awesome Angular 8 ngClass If react typescript props firestore get all documents in collection [email protected] : Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. typescript check if element in array typescript switch react onclick typescript type how to check typescript version react functional component typescript if exists sql server how to check the ports in use in windows cmd angular switch component react event typescript Argument of type 'string | null' is not assignable to parameter of type 'string'. Type 'null' is not assignable to type 'string' wallstreetbets reddit typescript generic mongoose example npx react typescript typescript keyof how to pass in arguments into c++ main running scripts is disabled on this system cannot find module typescript how to see all the environments in Conda create react app ts events on checkbox in jquery email validation pattern angular mongodb exists and not null angular email regular expression formgroup addcontrol session not created: This version of ChromeDriver only supports Chrome version 85 how to check for open ports in windows block of comments in matlab An unhandled exception occurred: Cannot find module '@angular-devkit/build-angular/package.json' date pipe angular angular reload component replace string in typescript typescript onclick event type props create next app typescript ionic generate resources google fonts for flutte object iteration in typescript how to display server count on discord.js regex get content between brackets without brackets installing bootstrap in angular 9 using nodemon with typescript typescript sort array of objects cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170. typescript check type of variable ts switch string to int typescript how to make s3 bucet objects publicj add typescript in node typescript random number typescript type object loop through object typescript show timestamp as yyyy mm dd html angular how to read excel file with multiple sheets in python because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170. bootstrap dropdown menu not showing how to delete old commits in github react native typescript children prop angular get url param all rights reserved number to string typescript typescript enum to array github screenshots resize initialize empty array typescript timeout typescript typescript react onchange event type typescript dictionary typing running scripts is disabled on this system loop an object properties in ts how to do limits in latex responsive breakpoints 2020 scroll to top angular typescript singleton comments in htlm angular refresh page without reloading firebaseError: Firebase: Firebase App named '[DEFAULT'] already exists (app/duplicate-app). conditional style angular how to install typescript in windows 10 ERROR in The Angular Compiler requires TypeScript >=4.0.0 and <4.1.0 but 3.4.5 was found instead. Please make sure you have the correct access rights and the repository exists. styled components hover cannot be loaded because running scripts is disabled on this system. Composer install : Your requirements could not be resolved to an installable set of packages convert image path to base64 typescript how to run resources in ionic laravel exists validation react native elements button with icon hosts file path windows 10 testing inputs with react testing library typescript add global variable to window css inputs outofill color subtracting two date objects in javacript ERR_TOO_MANY_REDIRECTS wordpress can't bind to 'ngmodeloptions' since it isn't a known property of 'input' angular No provider for HttpClient what does lts stand for Storing Objects in HTML5 localStorage how to store objects in localstorage useref input typescript \ng.ps1 cannot be loaded because running scripts is disabled on this system. Cannot find module '../../images/home.svg' or its corresponding type declarations how to get index for ngfor angular get current date yyyy-mm-dd router navigate pass params init empty object typescript type script edeode url types of irony eslint no-unused-vars typescript for of loop in ts with index c# check if a file exists in a folder sort array by date typescript Property 'value' does not exist on type 'HTMLElement'. angular scroll to top Firestore increment field Updates were rejected because a pushed branch tip is behind its remote getter and setter in typescript typescript loop over map with value as array Cannot find module '@angular/core' or its corresponding type declarations ionic toast 'mat-form-field' is not a known element: ng.ps1 cannot be loaded because running scripts is disabled on this system vscode typescript string interpolation date time format typescript how to link locally installed fonts to css typescript current date/time ng-bootstrap npm install typescript static class equivalent File C:\Users\SHUBHAM KUNWAR\AppData\Roaming\npm\nodemon.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170. check if file exists laravel multi line comments latex require('dotenv').config() typescript sqlite3.ProgrammingError: SQLite objects created in a thread can only be used in that same thread lofi hip hop beats to study to typescript comments set default route angular ionic web platform google chrome extensions content scripts matches artillery annot be loaded because running scripts is disabled on this system ERROR in node_modules/rxjs/internal/types.d.ts(81,44): error TS1005: ';' expected. constructor in typescript count all results codeigniter react native typescript template ionic 5 formarray promise to observable typescript convert object object to array typescript react router install ts change date format lua print contents of table font family system 'mat-form-field' is not a known element react native elements install loaded because running scripts is disabled on this s squash commits in remote branch Property 'of' does not exist on type 'typeof Observable'. tsc.ps1 cannot be loaded because running scripts is disabled on this system dev/storage/logs" and its not buildable: Permission denied ion modal dismiss pass data through router angular Firebase: Firebase App named '[DEFAULT]' already exists (app/duplicate-app). string substring typescript vscode auto line break your account has reached its concurrent builds limit npx create react app typescript Generic type 'ModuleWithProviders' requires 1 type argument(s). whats the binary nmber system e typescript check ports in use docker cheats for dino game chrome how to Store Objects in HTML5 localStorage material ui icon npm how to add image from assets inside as a decoration image in container Firestore decrement field tsc types.ts 'tsc' is not recognized as an internal or external command, operable program or batch file. typescriprt specify type of key javscripts input form validation typescript on window resize unity rich text options empty observable rxjs gets is in which header file File C:\Users\skill\AppData\Roaming\npm\yarn.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170. typescript while typescript react input type default allow all zoom participants to share screen create constant in class typescript google sheets count cells if not blank how to make a leaderstats script Property 'value' does not exist on type 'EventTarget & Element'. jquery id that starts with mat dialog disable close lo-fi beats to study to Cannot find module '@angular/material/radio' or its corresponding type declarations. big brackets latex AND-OR-AND + brackets with Eloquent round up number typescript html css how to position elements on right of div angular 8 ts refresh page wordpress directory and its permissions Google Sheets How to Count the Days Between Two Dates ails to pass a sanity check due to a bug in the windows runtime vue 3 setup props typescript expected 2 arguments but got 1. viewchild angular vscode change comments color useStae with array of strings typescript simple firestore cloud function update document mat input formatter tel typescript initialize map inline useref react typescript typescript react class component typescript string null or white space ion alert checkbox typescript sum all array values RenderFlex children have non-zero flex but incoming height constraints are unbounded. git writing objects slow how to use multiple custom fonts in css comments in .gitignore check if key exists in json typescript Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning properties of all electromagnetic waves Module not found: Error: Can't resolve 'core-js/es7/reflect' google sheets concatenate angular formgroup mark as touched how to install typescript in visual studio code File C:\Users\Tariqul\AppData\Roaming\npm\ng.ps1 cannot be loaded because running scripts is disabled on this system. equalsignorecase typescript iterate object ngfor multiline comments coding ionic modal pass data convert string to uppercase typescript push elements of array to another array typescript typescript init results of 1812 merge properties of object typescript wordpress robots txt file how to map array of objects in react destroying assets is not permitted to avoid data loss length of object in typescript write in file in typescript set array of objects in localstorage typescript array of strings typescript space between capital letters auto fix tslint rules how to update typescript ionic camera ion datetime time current set Visual Studio Code Typescript region folding how to find roots of quadratic equation in c conditionally add property to object ts eslint missing file extension ts react native elements input highlight onfous No suitable injection token for parameter 'path' of class 'BaseModel' The Angular CLI process did not start listening for requests within the timeout period of 0 seconds. typescript get the mime type from base64 string ts reverse array 'mat-label' is not a known element: angular innerhtml style not working lua table to string angular convert boolean to string find total commits in git Google Sheets How to Count business Days Between Two Dates how to create a fetch function kick bots command cs go create database and grant user rights mariadb reset specific field in reactive form its is me dio reload page in typescript using chai in typescript python requests firefox headers style mat-dialog-container powershell see ports in use ion slides next by button stretch grid column to fit page mui get posts from selected taxonomy Can't bind to 'mat-dialog-close' since it isn't a known property of 'button' flutter unfocus textfield filter duplicate value in array of object typescript typescript type for intervalId MySQL cheatsheets enabletrace angular featured products woocommerce shortcode npm run serve https Require statement not part of import statement.eslint@typescript-eslint/no-var-requires string to date in typescript is assigned a value but never used add module tslib print contents of cpp file nuxt typescript $axios types remove contraints command psql ignore typescript error @angular/fire/angularfire2.d.ts:37:49 - error TS2344: Type 'T[K]' does not satisfy the constraint '(...args: any) => any python convert a csv to a tsv rename table of contents latex typescript override interface property where do you get your test data loop through form controls angular install typescript global install typescript mac - laravel/ui[v3.2.0, ..., 3.x-dev] require illuminate/console ^8.0 -> found illuminate/console[v8.0.0, ..., 8.x-dev] but these were not loaded, likely because it conflicts with another require. typescript format string How to do Email validation using Regular expression in Typescript add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message skip test angular yarn create react app typescript Cannot read property 'valueChanges' of undefined google sheets how to count all non empty cells vue router mode history typescript ionic copy to clipboard import lodash issue angular 'mat-icon' is not a known element: Enable Template Path Hints for Storefront angular onclick toggle class save struct array to UserDefaults swift file_get_contents header disable button typescript Cannot find name 'require'. Do you need to install type definitions for node? Try `npm i @types/node` and then add `node` to the types field in your tsconfig. ionic set mode ios to whle app tweepy stream tweets from user advantages of automation angular material button css not working mat autocomplete async components of selenium google sheets remove characters from string js split at index Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15. An unhandled exception occurred: Schematic "Module" not found in collection "@schematics/angular". google sheets remove first character rscript arguments input react protected routes typescript Keras cheatsheets pdfs how to check if file exists lua typescript algorithm to find repeating number sequences over time typescript array of react elements ionic save base64 as file difference between accept and content type header react typescript scss typescript check if string is number Cannot find module 'fs' or its corresponding type declarations. angular formgroup validate manually typescript sleep angular change element style on click how to choose automation over manual testing calculate distance between two latitude longitude points in google maps api from sklearn.datasets import fetch_mldata error Nmap to find open ports kali linux Type 'CameraOriginal' is not assignable to type 'Provider'. property 'unsubscribe' does not exist on type 'Observable' whats the cheapsdt csgo kniofe nodemon cannot be loaded because running scripts is disabled on this system FIRST principle in testing mat selection list form control unity rigidbody constraints unfreeze DOMException: Failed to set the 'adoptedStyleSheets' property on 'ShadowRoot': Sharing constructed stylesheets in multiple documents is not allowed at addStyle angular change how date looks ValueError: Cannot run multiple SparkContexts at once; typescript create guid ion-datetime min date today NASDAQ: TSLA how to make a bool appear in all scripts unity can switch statements in java work with boolean organize imports on save vscode wordpress get posts with meta data rest api Cannot find name 'switchMap' flutter get height of status bar como crear un bot para whatsapp prevent row click event when button is clicked angular html node_modules/angularx-flatpickr/flatpickr.module.d.ts:6:64 - error TS2314: Generic type 'ModuleWithProviders' requires 1 type argument(s). unity objects disappearing when close how to make a react project that has tsx google sheets paste comma delimited text into separate cells deno web server typescript switch test per case mat input datetime-local now css fonts system typescript export import in the same time edit card-deck breakingpoints bootstrap sonar ignore rule import exec ts modal controller get data on dismiss when to choose automation over manual testing ionic input mask typescript req.query.query typescript event keyCode No directive found with exportAs 'matAutocomplete' is declared by more than one NgModule. 'mat-checkbox' is not a known element vscode add command palette code for posting comments using mvc c# angular hide element from component when on certain page wordpress loop over posts but exclude current post c# events handler geeksforgeeks magento 2 enable template hints command line move items from one log to another typescript swift code of paytm payments bank reactive forms get value of control check if file.properties is exits android how to get ip address in angular 8 objects referencing objects stack overflow Property 'val' does not exist on type 'Readonly<{}> how to make 2 lights blink with the GPIO pins with python what is the blood vessel that carries oxygenand nutrients to the heart muscle tissue itslef google sheets return multiple columns with vlookup full call signature in ts download and run exploits from exploit-db global d ts how to use mutliple layouts in recyclerview how to check when a number varibal = nan in ts what is endurance testing NullInjectorError: R3InjectorError(ProfilePageModule)[Camera -> Camera -> Camera 'mat-date-range-picker' is not a known element: "ion-calendar" default date selected not able to use fonts awesome in react bot stats discord.js ion input ngmodel not working ionic 6 wordpress have_posts not working Using Objects for Lookups ionic pasword visible inside ion-input notificationManager has not been initialized google sheets how to allow partial matches in vlookup No provider for ChildrenOutletContexts Angular javascript audio delay what is the name of belt around the orbits of earth and mars MySQL cheatsheets pdf download testing without requirements typescript add property if not exist, merge if it exists select code between brackets android studio typescripts swithc mat datepicker pt-br Why does the Circum-Pacific belt of earthquakes coincide with the Pacific ring of fire ionic Can't resolve all parameters for What were four effects of the War of 1812? concat string typescript exists query elasticsearch 5.4 how to configure email alerts in grafana container measurement technique of total fiber attenuation gives how to set the contents of a div with jquery react routes not working after build typescript disable next line Using shell script, display the contents of the present working directory. If it is an ordinary file print its permission and change the permissions to r--r--r-- how to view documents folder simulator swift how to give curly brackets in latex angular typescript set meta data import on save typescript webintent plugin cordova test should not automated start blender from terminal rror: failed to init transaction (unable to lock database) error: could not lock database: File exists if you're sure a package manager is not already running, you can remove /var/lib/pacman/db.lck ionic modal controller pass parameter typescript object key from other object No provider for ChildrenOutletContexts binding reference of type discards qualifiers object.assign() in NgRx according to all known laws of aviation Error: ./src/main.ts Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js): TypeError: Cannot read property 'createUniqueName' of undefined see sheets of excel file python challenges in agile facts aboutdavid oliveira hello world flutter assets stackoverflow Should robots have faces? ionic 4 set root page when logout agm map infowindow close all we have to do is decide what to do with the time that is given to us 'Missing locale data for the locale "pt-BR".' for pipe 'DatePipe'
Browse Popular Code Answers by Language
.pop_code_langs{
}
SQL sql update query sql insert query sql add column create table sql sql order by sql case when sql foreign key insert into mysql mysql create user create table in mysql mysql add foreign key sql select unique sql delete row create database mysql sql server delete column alter table delete column ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) update value postgresql mysql format date insert into select alter table add column postgresql list db mysql list databases mysql grant all privileges to a user mysql delete row update column sql server sql server convert string to date mysql auto increment install postgresql ubuntu sql server substringShell/Bash delete local branch create remore git branch install node js ubuntu delete a branch in git install angular cli git add remote remove directory linux git command to create a branch how to install docker ubuntu git force pull delete local branch git git switch branch how to switch branch how to revert back to previous commit in git oh my zsh install deb file linux how to see ports in use install jupyter notebook git undo last commit install react bootstrap how to see all branches in git install latest npm how to uninstall npm packages git push to branch set up git repository delete branch git rename branch git git delete branch git discard local changes git rename branchSwift swift for loop how to loop swift use timer swift create dictionary swift time formats swift swift generate random number create alert in swift show alert swiftui Split a String into an array in Swift convert string to int swift dart capitalize first letter of each word swift change navigation bar color display image from url swift swift get current time add navigation bar button swiftui set image width and height swiftui fnb swift code swift filter array swift hide navigation bar conert data to string swift swift loop through array center text swiftui swift append element to array ios swift convert int to string add top corner radius swift format decimal place swift give background color swiftui replace character in swift play sound swift stack overflow add buton border swiftJavascript Javascript remove array item by value remove element from array javascript remove a particular element from array javascript removing item from array javascript array remove element javascript remove element from array js remove speific item from array array remove element js how do you remove a remove element from array in javascript Javascript Remove Element By Id Code Example parse integer javascript Javascript string to int string to number js javascript to integer string to int javascript javascript string to integer javascript convert string to number javascript parse a json string js json to object Javascript parse json string javascript json decode json parse string javascript parse json javascript json parse create react app javascript for loop how to convert string to int js js switch case javascript set and get cookie javascript get cookieVBA excel vba find get last row in column vba for loop vba for next loop skip excel vba for next loop skip message box VBA regex numeric digits excel vba find last column excel date to string conversion vba range to array excel vba array vba array from worksheet data excel formula how to create strings containing double quotes xlvba double quotes in string literal xl vba double quotes in string literal excelvba declare global constant xl-vba declare global constant xlvba declare globals vba global vs public excel vba how to declare a global variable excel vba check cell not empty excel add leading zeros to existing values excel vba wait string to date vb excel vba how to check if a worksheet cell is empty xlvba function sheet exists excel vba test or check if sheet exists xl-vba function sheet exists xlvba check if sheet exists vba function sheet exists vb switch casePython python split string python if else python write to file python remove element from list python list to string python iterate dictionary key value python virtual environment install opencv python try except python python string to int python read json file enumerate in python python date and time get index of list python how to add a column to a pandas df random number python python sort list drop a column pandas code how pandas save csv file csv python write python check if file exists api in python python project ideas virtual env create python python date format python read file line by line python zip function python pip install python dictionary methods python list lengthR bootstrap cdn link read csv in r r install package r for loop simple data frame in R read csv file in r r remove na from dataset how to do linear regression in r r remove row dataframe how to import csv file in r r write to csv r replace na with 0 how to read excel file in r r create a vector fuction in r print in r r combine strings write to csv in r how to change column names in r r language legend parameters write csv in r r read file rep in r r set dataframe column names normalization in r r create a list drop na in R rename column in r read xlsx in r r data typesRuby how create migration rails ruby for loop ruby each do method ruby each with index how to add column to table rails how to delete a table in rails ruby array has element change column rails example rails kill server comment in ruby how to check ruby version how to I change the name of a column in rails uruby to lower case A Ruby write to file example Add references rails migration how to remove columns from rails how to add to an array ruby ruby find in array if string contain string ruby default value rails migration ruby replace certain character get size of array in ruby ruby each array string interpolation ruby append array in ruby drop rails all db rails remove column from model ruby get current datetime heroku restart rails server rails link_to classRust hello world rust for loops in rust rust convertinging string to int how to make an array in rust rust match string read file rust rustlang error: linker `link.exe` not found how to index a string in rust range in rust rust get command line arguments how to read from stdin rust array as a parameter rust how to concatenate two &str in rust if let some rust how to split a string by spaces rust casting in rust rust get current directory rust printing string on stdout how to create a window in rust lang display trait rust how to convert int to float in rust rust non derived debug trait example check if a file exists rust rust replace characters rust trait inheritance rust random number in range rust lang sleep rust reverse range rust impl display rustlang try fromPHP php append to array php format date php check if string contains word php string contains substring php string to int php parse json php length of array php split string php sql insert php get current date and time php try catch laravel clear cache laravel run seed php loop through array count array php Allowed memory size of 1610612736 bytes exhausted in array php php connect to mysql php array length php sql connection php json encode query sql in php php array to string array_search in php php date now php for loop phhp for loop php delete array item by value not key common array methods php php delete element by valueJava int to string java java scanner stack overflow java random number java array declaration How to split a string in Java sort array java java string to int string to int java how to get a user input in java java split string convert string to int java java how to get current date array in java scanner in java how to create an array in java how to take input in java java string to char array convert char to string java list in java .length array java java convert String to int java parse ineger java read from file writing to a file in java length of string java java how to print an array string replace java java data types java check if string is number java check for string lengthHtml bootstrap text color bootstarp btn colors radio buttons html HTML button onclick html drop down list how to link css to html bootstrap login form html navigation bar html input types commenting in html html form checkbox bootstrap 4 dropdown html input textarea http status codes bootstrap border color bootstrap 4 center div html background image html select list new line html create a dropdown in html bootstrap bootstrap select box how to use the label tag in html html center button include script in html bootstrap align right video tag html html a href bootstrap display none import js in html html font sizeC++ change int to string cpp getline in c++ c++ get length of array range of long long in c++ length of string c++ how to sort a vector in c++ convert stirng to int c++ how to reverse a string in c++ string to int c++ c++ reverse string remove value from vector c++ array length c++ linkedlist implementation in c++ find vector in c++ c++ switch case statement remove element by index from vector c++ declaring 2d vector in c++ read a file c++ flutter datetime format convert entire string to lowercase c++ making random numbers in c++ c++ for loop input a string in c++ c++ template function string in cpp convert decimal to binary in c++ list conda environments random number in c++ how to declare a function in c++ how to sort an array c++CSS css background image css media queries background color gradient css center a div in css css center image bootstrap btn classes Attack on titan css box shadow background image size css css align center link css with html css bold text css opacity example table border css linear gradient css css flex center background image css css rounded corners box shadow css font size css hide scrollbar css css style placeholder media query css image cover css image size css justify content css text shadow css position sticky css css align items vertical center css media queryTypeScript angular navigate using component check if dict key exists python How to download windows 10 ISO React with Typescript how to see all commits in git comments in css angular date pipe how to check whether file exists in python how to check list of open ports in linux how to print array elements in java for loop typescript cannot be loaded because running scripts is disabled on this system Can't bind to 'formGroup' since it isn't a known property of 'form install typescript using npm use google fonts in css angular number pipe see what ports are in use typescript remove object from array looping through two lists python voting results 2020 live google fonts roboto font awesome angular python requests get proxy How to Reload a Component in Angular typescript optional parameters mat-form-field must contain a MatFormFieldControl append to lists python create react app with typescript config get arguments from url flask react children typescriptC# c sharp split string c# switct case foreach syntax c# c# get set c# date formats custom string to int c# c# two dimensional array c sharp substring c# string to datetime try catch c# csharp datetime string format how to make a for loop in c# c# how to convert string to int c sharp string replace regex in c# c# initialize array c# user input c sharp int to string c sharp how to read a text file c# create array asp.net c# write string to text file c# length of array c# throw new exception population of the world c sharp string interpolation movement script c# .sh script: check if file exist how to rotate object unity c sharp tryparse for loop c#Kotlin for loop kotlin coroutines kotlin android dependency toast in kotlin make array list kotlin setOnClickListener example kotlin kotlin static method user input in kotlin make hashmap kotlin intent kotlin example how to write hello world in kotlin Kotlin round double string 2d array in kotlin kotlin add element to array what is difference between val and var kotlin comments in kotlin kotlin remove name from an activity how to declare string array in kotlin kotlin list add implement spinner in android kotlin Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6. Please specify proper '-jvm-target' option on click in kotlin android recyclerview scroll to bottom android custom AlertDialog theme how to call a function after delay in kotlin android android disable landscape mode kotlin not configured android studio create empty array in kotlin kotlin mutable list implementation random string generator kotlin kotlin in how to set without findviewbyidC struct in C size of an array c for loop c ModuleNotFoundError: No module named 'cv2' string to int c read files in c c int to string write in file in c switch statement in c c concatenate strings for loop in c string length c merge sort in c latex font sizes c bubble sort fahrenheit to celsius formula c data types switch case c visual studio code fibonacci series using recursion enum in c c user input how to run a update comand in linux factorial of a given number in c typedef in c fibonacci series in c bool in c how to print in c boolean in c how to print int in cLua lua for loop where can i learn lua where do lua tables start loop true childs roblox lua how to make a loop lua while loops lua add table to value lua click detection roblox on touch script length of table lua block commenting lua wait function lua while in lua Lua array add item lua in pairs repeating loop roblox lua How to remove index from table lua not equal print table lua how to get a random number in lua lua string to number roblox check if player has gamepass lua loop through table lua variable types lua round number sleep function lua break in lua Roblox Studio TweenService Example in lua 2020 lua for each in table how to execute scripts when a button gui is pressed robloxMatlab ModuleNotFoundError: No module named 'tkinter' to detect if a data frame has nan values matlab matrix zeros matlab zero vector matlab matrix index matlab matrix size find location of max value in array matlab zsh corrupt history file matlab length of array No module named 'imblearn' break loop for matlab matlab read image num to string matlab wait time matlab matlab clear plot fprintf in directory matlab multiple of value matlab if directory exist matlab save mat file script in matlab directory diff(x) matrix matlab matlab time function mean without nan matlab eval matlab variable name matlab read audio isnull in matlab matlab unix time to datetime Unrecognized function or variable 'matlab.internal.addons.updates.file exchange addon.getType FromPackageInfoUrl'. wait until job matlab load value inside job matlab nan size matlabDart Flutter turn string to int flutter push route flutter image asset how to show snackbar in flutter flutter list tile how to use hexadecimal color in flutter color() in flutter flutter container rounded corners timer in flutter flutter get current date rounded raisedbutton in flutter switch case in dart how to add padding flutter loop in dart dart card outline container flutter border radius flutter button border radius how to create a toast in flutter generate random int dart declaring and initializing a list in dart text fieldform color flutter toast in flutter New Year's Eve tabs flutter example dart random number text overflow ellipsis flutter text in column flutter overflow ellipsis not working conditionalstatement in widget flutter flutter container margin flutter center rowGo mongo console find by id throw new TypeError('Router.use() requires a middleware function but got a ' + gettype(fn)) drop mongo database signIn google firebase flutter golang convert int to string connect google drive to colab drop a collection in mongodb google forms answers golang string split golang convert string to int go add to slice set up google analytics make image go to center of page how to see number of words in google docs mongodb export entire database golang convert string to int64 initialize map in golang google cloudb pricing golang array syntax Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test (default-test) on project upload drop mongodb database cross out google docs csgo jump throw bind go string to byte array how to stop google colab from disconnecting mongo db show datbae unzip a file in google colab go for loop how to search google how to delete google projectBASIC Microsoft Flight Simulator. how to send basic auth using fetch basic latex document visual basic how to declare a variable vb string to int32 how to open d drive using conda prompt add combobox in datagridview vb.net visual basic script msgbox how to add basic authentication on haproxy backend server mid visual basic function itextsharp landscape a4 Custom exception visual basic shortcut to rename the file on lenovo s340 Delete all data in neo4j removing illlegal char from filename How to configure cryptodredge docker-compose.yml reusable variablesAssembly the answer to life the universe and everything hello world in assembly using shape property in flutter for circular corner appending a vector in vector boku ni pico start learning assembly MOD OPERATOR for register in arm assembly array month name hello world x64 assembly cancel shutdown timer No assembly found containing an OwinStartupAttribute. array days of the week Arm assembly fibonacci dot net core 3.1 The type or namespace name 'TestClassAttribute' could not be found (are you missing a using directive or an assembly reference?) matlab machine epsilon program in assembly language to find even numbers from 1 to 10Perl perl for loop perl print array perl get date perl array loop perl set date perl print hash perl string length perl set a specific datetime perl http request perl replace substring perl datetime formatting perl last characters perl hash size perl get first characters perl validate integer perl validate id numberDelphi groblersdal to middelburg How to read text files in delphi for loop delphi delphi read file get current date delphi Delphi how copy works delete in delphi how to make message in delphi Erro ao inserir invalid byte sequence for encoding “UTF8”: 0x00 delphi postgresql length of string in delphi criar procedure/function delphi atalho delphi keydown enter Multi thread delphi get last element of array delphi delphi asking for inpot via dialog boxObjective-C get product image woocommerce xcode format code Error: EPERM: operation not permitted, mkdir 'C:\Users\SHUBHAM~KUNWAR' command not found: create-react-app uialertcontroller example objective c nstimer example objective c loop array objective c Error: EPERM: operation not permitted, mkdir 'C:\Users\Anubhab' command not found: create-react-app obj c write file worst programming language vc_map type number how to add undelete texts to textfield in ios obj c get point of intersection of 2 linesScala ValueError: If using all scalar values, you must pass an index scala hello world how to add comment in scala comments in scala scala get the first element of a seq how to get the nth element in a list in scala scala get file from url as string scala last element in listHaskell list comprehension haskell haskell multiline comment haskell get last element of list last element of list haskell string to list haskell hello world in haskell get first char from string haskellPascal pascal online compiler comment in pascal comments in pascal producto de matrices pascalJulia how to push an element to array in julia remove character from string julia julia dereference pointerGroovy for loop groovy groovy wait time groovy implementation of the interfaceElixir map merge elixir elixir random number elixir length of listFortran fortran do while fortran int to string write integer value in name fortran 90ActionScript visual studio code change terminal color TypeError: Cannot read property 'version' of undefinedClojure clojure get list first item how to make a range clojureAbap abap concatenate table abap loop exampleScheme how to pass unction in scheme how to make a list in scheme
Browse Other Code Languages
Abap
ActionScript
Assembly
BASIC
C
Clojure
Cobol
C++
C#
CSS
Dart
Delphi
Elixir
Erlang
Fortran
F#
Go
Groovy
Haskell
Html
Java
Javascript
Julia
Kotlin
Lisp
Lua
Matlab
Objective-C
Pascal
Perl
PHP
PostScript
Prolog
Python
R
Ruby
Rust
Scala
Scheme
Shell/Bash
Smalltalk
SQL
Swift
TypeScript
VBA
WebAssembly
Whatever
Grepper
Features
Reviews
Code Answers
Search Code Snippets
Pricing
FAQ
Welcome
Browsers Supported
Grepper Teams
Documentation
Adding a Code Snippet
Viewing & Copying Snippets
Social
Twitter
Facebook
Legal
Privacy Policy
Terms
Contact
[email protected]
//gets the type of browser
function detectBrowser() {
if((navigator.userAgent.indexOf("Opera") || navigator.userAgent.indexOf('OPR')) != -1 ) {
return 'Opera';
} else if(navigator.userAgent.indexOf("Chrome") != -1 ) {
return 'Chrome';
} else if(navigator.userAgent.indexOf("Safari") != -1) {
return 'Safari';
} else if(navigator.userAgent.indexOf("Firefox") != -1 ){
return 'Firefox';
} else if((navigator.userAgent.indexOf("MSIE") != -1 ) || (!!document.documentMode == true )) {
return 'IE';//crap
} else {
return 'Unknown';
}
}
function convertToFireFox(){
var els = document.getElementsByClassName("lead_click");
for(var i = 0; i < els.length; i++) {
els[i].innerHTML = els[i].innerHTML.replace("CHROME","FIREFOX");
els[i].href = "https://addons.mozilla.org/en-US/firefox/addon/grepper/"
//els[i].classList.remove("class_name");
els[i].className += " firefox_icon"
}
}
if(detectBrowser()==="Firefox"){
convertToFireFox();
}
function makeRequestToApp (method, url, data) {
var id = localStorage.getItem('user_id');
var token = localStorage.getItem('access_token');
return new Promise(function (resolve, reject) {
var xhr = new XMLHttpRequest();
window.currentHTTPRequest = xhr;
xhr.open(method, url);
if(typeof id !=='undefined'){
xhr.setRequestHeader("x-auth-id", id);
}
if(typeof token !=='undefined'){
xhr.setRequestHeader("x-auth-token", token);
}
xhr.onload = function () {
if (this.status >= 200 && this.status < 300) {
resolve(xhr.response);
} else {
reject({
status: this.status,
statusText: xhr.statusText
});
}
};
xhr.onerror = function () {
reject({
status: this.status,
statusText: xhr.statusText
});
};
if(method=="POST" && data){
xhr.send(data);
}else{
xhr.send();
}
});
}
function loginOrRegister(is_login){
var user_id = localStorage.getItem('user_id');
var token = localStorage.getItem('access_token');
if(!user_id || !token){
showLoginPopup(is_login);
}else{
makeRequestToApp('POST', "/api/start_session.php?id="+user_id).then(function(d){
if(d != 1){
showLoginPopup(is_login);
}else{
window.location="/app/index.php";
}
});
}
}
function showLoginPopup(is_login){
var tp = document.createElement("div");
tp.classList.add('tays_popup2');
tp.setAttribute('id','tays_login_popup');
tp.addEventListener('mousedown',function(event){
if(event.target === this || event.target.classList.contains('tays_popup2_close_button')){
tp.parentNode.removeChild(tp);
}
}, false);
var tpi = document.createElement("div");
tpi.classList.add('tays_popup2_inner');
var tpi_close= document.createElement("div");
tpi_close.classList.add('tays_popup2_close_button');
tpi_close.textContent="X";
tpi.appendChild(tpi_close);
var tpic = document.createElement("div");
tpic.classList.add('tays_popup2_content');
var tpici = document.createElement("div");
tpici.classList.add('tays_popup2_content_inner');
tpic.appendChild(tpici);
tpi.appendChild(tpic);
tp.appendChild(tpi);
tp.style.display="block";
document.body.appendChild(tp);
if (typeof makeRequest !== "function") {
// This function exists
function makeRequest (method, url, data) {
return new Promise(function (resolve, reject) {
var xhr = new XMLHttpRequest();
window.currentHTTPRequest = xhr;
xhr.open(method, url);
xhr.onload = function () {
if (this.status >= 200 && this.status < 300) {
resolve(xhr.response);
} else {
reject({
status: this.status,
statusText: xhr.statusText
});
}
};
xhr.onerror = function () {
reject({
status: this.status,
statusText: xhr.statusText
});
};
if(method=="POST" && data){
xhr.send(data);
}else{
xhr.send();
}
});
}
}
makeRequest('GET',"/app/register_html.php").then(function(html){
tpici.innerHTML=html;
window.isRegistrationPopup=true;
var loginScript = document.createElement('script');
loginScript.src="/app/js/register.js?v=4";
document.head.appendChild(loginScript);
loginScript.onload=function(){
var gScript = document.createElement('script');
gScript.src = "https://apis.google.com/js/client:platform.js?onload=renderSigninButton";
document.head.appendChild(gScript);
setIsLoginStatus(is_login);
}
});
}
#tays_login_popup{
background: rgba(0,0,0,.6);
}
#tays_login_popup.tays_popup2{
background:rgba(0,0,0,.4);
cursor:pointer;
display:block;
display:none;
height:100%;
position:fixed;
text-align:center;
top:0;
left:0;
width:100%;
z-index:999999999;
}
#tays_login_popup .tays_popup2_inner {
background-color: #fff ;
box-shadow: 5px 5px 30px #555 ;
display: inline-block ;
position:relative ;
height: auto ;
min-height: 100px ;
vertical-align: middle ;
width: 400px;
position: relative ;
top:10% ;
border-radius: 8px ;
padding: 0px ;
text-align:left ;
overflow:hidden ;
cursor:auto ;
}
#tays_login_popup .tays_popup2_content{
width:100%;
min-height:200px;
}
#tays_login_popup .tays_popup2_close_button {
background-color:#24292e;
color:#fff;
/*border-radius: 50px;*/
cursor: pointer;
display: inline-block;
font-family: arial;
position: absolute;
top: 10px;
right: 10px;
font-size: 14px;
line-height: 20px;
width: 20px;
height: 20px;
text-align: center;
z-index:10000000;
}
//var doPageLog=true;
//var doPageLogStrat='old_search';
function saveImage(){
//var search=getUrlParameter("search_term");
// search=search.replace(/\+/g, "");
// search=search.replace(/\s/g, "");
var search='error-ts2339:-property-'map'-does-not-exist-on-type-'subscription'.';
search=search.toLowerCase();
console.log(document.querySelector(".CodeMirror"));
html2canvas(document.querySelector(".CodeMirror")).then(canvas => {
document.body.appendChild(canvas);
theCanvas = canvas;
canvas.toBlob(function(blob) {
var name=search+".png";
fetch(`/add_image.php?name=`+name, {method:"POST", body:blob})
.then(response => console.log(response.text()))
});
});
}
var size = {
width: window.innerWidth || document.body.clientWidth,
height: window.innerHeight || document.body.clientHeight
}
/*
if(size.width > 1400){
setTimeout(function(){
saveImage();
}, 3000);
}
*/
#google_register_box{
width:310px;
margin:0 auto;
}
#gSignIn{
border:1px solid #333;
color:#333;
width:300px;
margin:0 auto;
}
X
Register to vote on and add code examples. Join our developer community to improve your dev skills and code like a boss!
No Good?
Help us improve our code examples by registering to vote on and add answers. Join our developer community to improve your dev skills and code like a boss!
Continue with Google
By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
function hideRegisterPopup(){
document.getElementById("web_register_popup").style.display="none";
document.getElementById("blur_me").style.filter= "none";
document.getElementById("web_register_popup_downvote_text").style.display="none";
document.getElementById("web_register_popup_standard_text").style.display="none";
}
//put show login logic here
function showLoginRequiredIfNeeded(goodOrBad){
goodOrBad = (typeof goodOrBad !== 'undefined') ? goodOrBad : 0
if(goodOrBad === 1){
//upvote
document.getElementById("web_register_popup_standard_text").style.display="block";
}else if(goodOrBad === 2){
//downtvote
document.getElementById("web_register_popup_downvote_text_image").src="/images/sorry_fixed.gif";
document.getElementById("web_register_popup_downvote_text").style.display="block";
}else{
document.getElementById("web_register_popup_standard_text").style.display="block";
}
document.getElementById("web_register_popup").style.display="block";
document.getElementById("blur_me").style.filter= "blur(6px)";
//document.getElementById("blur_me").addEventListener("click", function() {
// hideRegisterPopup();
//});
}
function autoLogin() {
gapi.signin2.render('gSignIn', {
'scope': 'profile email',
'width': 300,
'height': 50,
'longtitle': true,
'theme': 'light',
'onsuccess': function(user){
var id_token = user.getAuthResponse().id_token;
var profile = user.getBasicProfile();
var formData = new FormData();
formData.append('credential',id_token);
makeRequest('POST', "/api/google_login.php",formData).then(function(r){
window.location.reload();
//if(r =="just_created"){
// showHeroPopup();
//}else{
// //showHeroPopup();
// window.location.reload();
//}
});
},
'onfailure':function(error) {
// console.log("no good");
//showLoginRequiredIfNeeded();
}
});
}
//non logged in user
//What should logic be?
//At least 5 page hits?
X
Grepper Account Login Required
Oops, You will need to install Grepper and log-in to perform this action.
Install Grepper Here
document.getElementById("tays_popup2_close_button").addEventListener("click",
function(e){
document.getElementById("must_register_popup").style.display="none";
});
document.getElementById("must_register_popup").addEventListener("click",
function(e){
if(e.target== this){
document.getElementById("must_register_popup").style.display="none";
}
});
var box1holder= document.getElementById("answer_box1_holder");
var box1Height = box1holder.offsetHeight;
if(box1Height > 1300){
document.getElementById("right_add_long1_2").style.display="block";
//document.getElementById("right_add_long1_2").innerHTML=' ';
document.getElementById("right_add_long1_2").innerHTML='
';
//I dont think we ever want this
//(adsbygoogle = window.adsbygoogle || []).push({});
}
/*
if(box1Height > 2300){
document.getElementById("right_add_long1_3").style.display="block";
document.getElementById("right_add_long1_3").innerHTML=' ';
(adsbygoogle = window.adsbygoogle || []).push({});
}
var box2holder= document.getElementById("language_snipper_cats_holder");
var box2Height = box2holder.offsetHeight;
if(box2Height > 2000){
document.getElementById("right_add_long_2_2").style.display="block";
document.getElementById("right_add_long_2_2").innerHTML=' ';
(adsbygoogle = window.adsbygoogle || []).push({});
}
if(box2Height > 3400){
document.getElementById("right_add_long_2_3").style.display="block";
document.getElementById("right_add_long_2_3").innerHTML=' ';
(adsbygoogle = window.adsbygoogle || []).push({});
}
*/
const request = this . evidenceService. get ( ) . pipe (
map ( ( res) => res. data) ) ,
catchError ( error => Observable. of ( null ) )
) ;