$table->integer('user_id'); code example
Example 1: DB::table('users')->get(); id 1
$users = DB::table('users')where('id','=', $userid)->get();
Example 2: whatever by Foolish Fowl
on Mar 28 2020 Donate
0
Add a Grepper Answer
Whatever answers related to “$table->integer('user_id');” ?id=$1&user=$2 AUTO TRANSFER OF DATA FROM SYBASE TABLE TO PHPMYSQL TABLE Base table or view not found: 1146 Table could not find driver (SQL: select * from information_schema.tables where table_schema = francis_koopmart and table_name = migrations and table_type = 'BASE TABLE') could not find driver (SQL: select * from information_schema.tables where table_schema = pics and table_name = migrations and table_type = 'BASE TABLE') create id to primary using query create table laravel give name table create user defined table type in sql data id data type for phone number in sql DB::table('users')->get(); exists id in the table in laravel validation how to add data table th id to tr id in php how to create table for every user in laravel how to input data as id in database sql c# html table serial number intext:”Dumping data for table ‘orders’” laravel base table or view not found hasmany laravel create get id laravel get ID from insert laravel model tablename laravel query builder get last insert id PHP?ID=1 SELECT table_name FROM user_tables; SQLite3::SQLException: table "categories" already exists: CREATE TABLE "categories" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL SQLSTATE[HY000] [2054] The server requested authenticatio n method unknown to the client (SQL: select * from information_schema.tables where table_schema = todos_app and table_name = migrations and table_type = 'BASE TABLE') var data =""+ data.data[i].name" | "+""+ data.data[i].email" | "+""+ data.data[i].create_at" |
"; wp assign users table view actionWhatever queries related to “$table->integer('user_id');” $table->integer('user_id'); how to get a row from a table based on id in laravel 5.8 get selected record from table laravel query buidler where $id left joni and create array laravel laravel left joni function return array leftJoin select and createa rray larvel array of id using laravel query bbuilder db::table()->value() jointure laravel eloquent php laravel query builder ids in laravel get alll how to make row query in laravel data query in array laravel 4 table get data in lravael select laravel to arrya get with id laravel sql laravel select by id single row dub in sql in laravel agregators db query laravel how to add to a existing query builder in laravel find table data by id with where condition in laravel laravel select id from table get all data laravel laravel get amount value laravel get rows from table where column values laravel get rows from table find a record in laravel database DB::table() where laravel selct by id get next item in query builders laravel laravel docs insert and get id orderByDesc laravel get create raw id in laravel query builder laravel select all laravel table get all how many types of query does laravel have where id select table in laravel controller laravel select id name from table get froing table value laravel fatch data name by id in join query in laravel where id laravel element where id laravel select one user blade laravel ->with(array('drivers'=>function ($query) in laravel pluck with wherenotin clause in laravel select users where id laravel query builder selectraw select whole instance as an array laravel using select usingh koins select whole instance as an array laravel using select use with table data in laravel latrave; left join laravel whereId laravel select 2 column make suma table row column value laravel select table in onther table laravel get all data from table in laravel laravel select raw count count laravel laravel raw count query laravel db::select row laravel database get sprecific user laravel query where multiple select parameters laravel using take after get laravel get table how to write query for fetching values as array in laravel laravel leftjoin laravel count queries get row in laravel select where id laravel get data table in laravel raw query in laravel eloquent how to use havingRaw in laravel orderBy id value laravel gettin all recorde from first table joins laravel check like in db with laravel laravel prepend table name to columns on select query laravel raw query relationship laravel laravel get row list query 4 row laravel laravel query builder get columns as rows laravel select user by id laravel insert row to db able where we write join query in laravel how to get 3 database table rows from in laravel how get table value in laravel laravel get all data of joined whay attach will return in laravel how to make a table with regions delimited by rows laravel laravel 4 query builder laravel db table get id laravel join and list laravel union how to get entry from first table table laravel union how to get entry from which table laravel selecct all where id laravel builder from id laravel select id from table where where condition row array in laravel leftjoin laravel db leftjoin laravel laravel query table with list of values laravel 4.2 DB::table('reasons')->insert slect raw eloquent laravel get all records find data in laravel laravel get table value laravel query array difference of two categorues laravel quer ybuilder laravel query builder insert single value laravel select new id from table laravel next row querybuilder create table users mysql laravel insert or get laravel query buildery with array laravel count rows create table mysql username password how to setup a users table with id Learn how Grepper helps you improve as a Developer!
INSTALL GREPPER FOR CHROME
(adsbygoogle = window.adsbygoogle || []).push({});
(adsbygoogle = window.adsbygoogle || []).push({});
More “Kinda” Related Whatever Answers
View All Whatever Answers »
elasticsearch show indexes postgres check size table check postgres version spring boot run command how to migrate refresh only one table what is specialization and generalization in dbms kafka list topics aws s3 get size in gb migrate fresh specific table create rails app with postgres check rabbitmq service status influxdb add measurement psycopg2 select example add mysql to path seed specific table how to migrate database to heroku create postgres database maven spring boot run rabbitmq docker what is transitive relation acid properties in dbms undo specific migration sequelize mariadb find version rabbitmq list queues how to connect to remote postgres database from command line set unique true sequelize spring jackson mapper ignore unknown fields Carbon 1 is deprecated, see how to migrate to Carbon 2. https://carbon.nesbot.com/docs/#api-carbon-2 You can run './vendor/bin/upgrade-carbon' to get help in updating carbon and other frameworks and libraries that depend on it. drupal 8 get entity load by properties sql_mode=only_full_group_by how to use between in active record mariadb create database fixtures symfony datastore developer products queued elastic create index mongodb spring boot index usage 0 seeder class does not exist doctrine migrations down seq in r how to Truncate the table using entity framework elasticsearch reindex insert now in codeigniter database persist Uint8List to shared preference how to delete document in cosmos db using document documentclient lookup relationship in salesforce findonebyid hibernate keeps deleting tables times db NASM how to return variable from transaction Laravel eloquent batch insert mysql ilike sql config.factory method syntax rails SQLSTATE[HY000] [2002] Connection refused (SQL: select * from information_schema.tables where table_schema = ipris and table_name = migrations and table_type = 'BASE TABLE') The DBMS_OUTPUT gives programmers an easy-to-use interface to see, for instance, the current value of a loop counter, or whether or not a program reaches a particular branch of an IF statement. (True or False?) dual table in aql sqlite get matching rows from two tables laravel update return updated row, laravel update return pyspark save machine learning model to aws s3 where is your data stored after commit how to list all the views of the tables artisan migration rollback running test from maven vs cucumber test runner spark read parquet s3 product price wordpress graphql rdd get a random item multiset operators in oracle syntax display all databases terms aggregation elasticsearch using Key order super key in dbms with example see index size elasticsearch sequelize count in include postgres jdbc lookup relationship vs master detail relationship linq group by multiple linq object list contains postgres enable gen_random_uuid nested table syntex in oracle how to migrate zookeeper how to query in firestore acid property db has many through rails add migration ef core yii2 migration enum write many2many odoo where do you keep your data ef code first unique constraint where do you use overloading in framework how to store data ef migrations how to migrate spisipic migration drupal 8 attach library how to add postgres to spring boot reset database active record change lookup to master detail salesforce sqlite describe table elasticsearch query gettign fields sequelize update not working ruby select c# distinct by property group test in testng sap job transaction laravel faker seeder update insert raw query JPA rails check if key exists replace postgresql dbeaver generate guid kafka create topic insert multiple data codeigniter is a relationship vs has a relationship codeigniter query builder where not null query parameter swagger ef core delete all migrations Spatial Aggregation pgrestore schema backup to a container run maven spring boot project command line microsoft sql server import bak file kafkacat topic info enable management plugin rabbitmq ef database first generate models entity framework core what is collection in postman where do you use abstraction in your project where is maven update project mariadb rename field what is hierarchical clustering linq sum group by delete relationship neo4j how to see detail from process id where not equal to in codeigniter adonis migration run single migration sequelize cli model generate mariadb clone database to another name postgres add unique constraint to column start postgres server connect to database springboot not where in codeigniter typeorm enum postgres update gem mqtt full form entity integrity constraints db insert codeigniter create index in oracle commanf syntax of function in oracle jpa query methods count show queries tinker linq where in list foreign_key_checks output parameter use with stored procedure there is no unique constraint matching given keys for referenced table see active transactions postgres get data in from a collection firestore extent report maven heroku run knex migrations doctrine/dbal package groupby in linq left join codeigniter General error: 3780 Referencing column 'user_id' and referenced column 'id' in foreign key constraint 'blog_posts_user_id_foreign' are incompatible. syntax of procedure in oracle drupal 8 database query or condition start rabbit mq server run postgres locally What is a Conceptual Data Model? Laravel migrate fresh and seed sql latlng psycopg2 query elasticsearch list indexes define relation in database eloquent where between get spark context from sparksession update you can't specify target table for update in from clause jq get by name entity framework linq multiple joins set up elasticsearch mac rabbitmq clustering Edit the .env file and use the correct database name in the DB_DATABASE key. delete consumer group kafka difference between req.query and req.params elasticsearch alias mapping Difference between HashMap and HashTable QUERY vs PATH parameters where clause in sequelize op in sequelize postgres change column type to uuid create database schema automatically in jpa spring boot maven dependency for restassured queryselectorall postgres active connections create migration with model laravel collection framework how to check if data is an array or not ruby where not null query codeigniter swagger query parameter entity framework migration Laravel Drop All Tables & Migrate create sequelize seed file postgres list databases php PDO database connection org.hibernate.tool.schema.spi.CommandAcceptanceException: Error executing DDL "drop table topic" via JDBC Statement rollback laravel transaction DB::table('users')->get(); id 1 graphql first 20 items SLocationWhenInUseUsageDescription include with where clause in sequelize postgres find locked row mysqldump csv insertafter elasticsearch get mapping postgres generate uuid belongsTo called with something that's not a subclass of Sequelize.Model. sequelize on_member_join not working elasticsearch check status entity framework database sequence datatypes.string sequelize add columns to cassandra fbq('track' 'lead') add new row postgresql aws local endpoint dynamodb spring boot interview questions get one document based on id in firestore firebase search into every child elastic drop index samtools mapq filter how to start kafka in windows svn sqllite database malformed copy command to load data from s3 to redshift sequelize test connection check if key is present in dictionary start rabbitmq server pg_restore, pg_dump set search path postgres prisma migrate down how to define sharding while creating an index in elasticsearch truncate table postgres get item dynamodb boto3 sequelize .all() postgres get size of database TypeError: sequelize.import is not a function elasticsearch curl to get indices kubectl get only pod name oracle change tablespace size go map check key exists pgadmin reset layout hashtable Export / Import Large Database from MAMP using Terminal hiberfil.sys large how to create er diagram in dbeaver integrity constraint violation: 1452 cannot add or update a child row: a foreign key constraint fails doctrine fixture bundle quartz initialize-schema firebase orderbychild update postgres get last value cfloop coldfusion sqlite update active record skip-grant-tables exec stored procedure with named parameters spring delete mapping connect database springboot connect to database spring kafka how to delete all topics linq group by model mapper maven all in one migration slow issue cosmos db ru Laravel query builder toSql what are active record enum sequelize run only one seeder install postgresql join linq lambda typeorm raw query what is database management system knex migration relation does not exist postgresql query parameters Cannot delete or update a parent row: a foreign key constraint fails ( MySQL repeated values Connect to sql C# lambda update-code display arraylist messages realtime database on delete of foreign key delete corresponding rows in other table Create Table kubectl create pod imperative command what do we need to test in database testing linq distinct foreign key query alb logs database.update salesforce sr.getid null classic asp get recordset count hadoop report command Failed to load class of driverClassName com.sap.db.jdbc.Driver Hikari adding queryparams resttemplate prepared statement call procedure show all the document in elasticsearch mysqli_query print result alter table add column redshift select if h2.jdbc query files in related list salesforce snowflake merge how to mixing aggregate and non aggregate in influxdb knex migrations tinyint multiple mapping @requestmapping goods_goodsinfo_goods_cag_id_a7b17a2d_fk_goods_goodscategory_id create database collation What are tables and Fields? gdb real type sequelize is not null robo 3t copy collections from one DB to other DB generate entities symfony how to switch database in psql laravel query builder join coldfusion querynew display index in sql mql5 adx indicator how to combine diff colmun value using group by postgres activerecord references foreign key SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client (SQL: select * from information_schema.tables where table_schema = blog_inertia and table_name = migrations and table_type = 'BASE TABLE') Illuminate\Database\QueryException sqlite truncate tables command what is relational database graphql pass array as argument flutter firestore combine user data to result ruby on rails validates presence of multiple fields increase query in vitoria metrics intext:”Dumping data for table ‘orders’” one to one relationship raw query in codeigniter intellij scala useful plugin no module bulk_update sql running total Updating JSON Column in laravel jackson serialize xml data provider in your framework used to retrieve dat from firebase realtime datastore how to change dynamodb port number select * from pg_stat_activity An explicit value for the identity column in table entity framework return count of records pyspark check if s3 path exists Corvid insert data to database wix asp classic connect to database How to write rollup summary for lookup and how to update roll up summary using lookup. Error: Chunk.entrypoints: Use Chunks.groupsIterable and filter by instanceof Entrypoint instead elasticsearch get indices fbq('track' ) check if an element is in data base linq lambda aws cli filter vs query generate guid t-sql shards in elasticsearch codeigniter create table Ruby on rails execute query encrypt data in postgresql master file table how to check if sidekiq is running Laravel Rolling Back Migrations No qualifying bean of type 'com.richoco.demo.Customers' available kafka empty consumer group Laravel Rollback & Migrate In Single Command copy database from one heroku app to another cucumber reports goose db migration how to get last id in database where do you use interface in your framework postgres container psql oracle utl_http rest example exception in oracle example updating indices intellij restart postgreSql from terminal partition and bucketing code in hive doctrine findby criteria sequelize-auto -o laravel eloquent relationship req.params req.query cloudwatch log message parse fields query sample kubectl to show label of pod how do you get row count in jdbc database testing in framework Truncate the table using entity framework laravel migrate command imperative command kubectl update replicas count deployment hibernate session management knex datatypes how to update record using entity framework 5 how to return multiple types in graphql schema how to write manual querry in drf how to open a branch and make a merge request sql logo sqlexception: the insert statement conflicted with the foreign key constraint a["default"].serialize(n) ef core db update database and php connect insert into relational database fastapi self join database types from where in list linq dbscan clustering algorithm active storage has_many_attached place war file in tomcat eureka discovery server spring boot example what is relational database management system linq to update a list case when postgres dynamodb get all items boto3 The primary purpose of maven is to provide uniform, easy, and standardized: in database, outline characteristics of transactions List of Pydantic model. List[BaseModel] typeorm raw query params Djngo: Design your model "foreign key constraint is incorrectly formed oracle alter database open restricted session acceso denegado en msql what is foreign key how to migrate from filterBuilder to higher version of elasticsearch Extend the 2.1 case study to implement below listed queries. Write separate operations/method to implement each query. a.Query all books in database. eachfeature leaflet type and field in type graphql displaying different entities from different tables at once pass parameters into postgres bash key characteristics of rest required a bean of type 'org.springframework.jdbc.core.JdbcTemplate wwqeqe graphq fetch query psql alter type numeric postgresql duplicate entry for key laravel unique except, some operation on query the great gatsby chapeter 7 spark notes To ignore duplicate keys during 'copy from' in postgresql migration primary key rails register temporary table pyspark what to test in database testing alter table add foregein key how to export/import a mysql database via ssh what is indexing in a database FQDN.IN oracle group a href from database oracle synonym package dblink Spring Data Elasticsearch update document example Data returned from queries is read-only what is a dbms gatsby graphql queries grouping vs aliases using graphql to query multiple table in dynamodb copy in pl/pgsql kubectl top metrics api not available Join Distinct Use LINQ to get items in one List<>, that are not in another List<> faq structured data and schema markup sql query pass running rabbitmq without Console.ReadLine(); mssql php using guid how can i get database data from database select only distinct values another table pdo query memory difference between factory and dataprovider in postgres zookeeper 2 Save Uint8List to shared-preference how to prevent marvel to have indices elasticsearch spark aggregatebykey https://pgadmission.nust.edu.pk/FinancialAid/document_checklist.aspx pgadmin terminal connect Resolving types in GQL myconnect what is compact database srop database create database hive mamp backup database wqd populating db through sequilize adding a book oracle sequence nextval ast querysyntaxexception is not mapped decision tree drools using spring boot linq select from array random record get with pagination in karavel 8 db_pass sequelize update index column graphql polylang same sqs to multiple lambda crud typeorm relationship add atomic false to the migration class create new elemetn with jq how do you implement data provider in your framework Import zipped mysql dumps laravel tinker insert DB record activerecord postgres regex LDAP query to test if user is member or group insert multiple records on the Database in Entity Framework Core union-find data structure Change row to Uppercase SQL jol-core printing memory use for object entity fast insert recordset postgres limit Define the "integrity rules" extracting json data haskell DB::table("jobs")->select("sites.name")->join("sites","sites.site_id","=","jobs.site_id")->join("shifts","sites.site_id","=","shifts.site_id")->get(); why is not working SaveSearch ResultsWeb results firebase update return result azure data studio search tables where do you get your data Unable to load class [org.hibernate.spatial.GeometryType] DataTypes sequelize mssql-cli usage how to integrate the activemq with ejb dckr sonarqube/postgres data annotation for passwords subreads featureCounts example Type '()' cannot conform to 'View'; only struct/enum/class types can conform to protocols foreach select only distinct values from another table factory vs dataprovider pgp no changes in database schema were found - cannot generate a migration. to create a new empty migration use "typeorm migration:create" command schema to pojo stored procedure data to table what is the conflict called that occurs in onself loads the given relationships for all models in the collection if the relationships are not already loaded recommended instance class rds function criarCombo($table,$id,$valor) datagrip synchronize not working Target class [Database\Seeders\VoyagerDatabaseSeeder] does not exist. extend vs include ruby difference between structure and union prestashop alter table if not exists custom management command to populate the database with some dummy data, what is a database Manual Custom Queries in spring boot shoulda matchers foreign key Select id,name,(select id from contacts)(select id from Opportunity) from Account how to creat table in dbms CREATE table schema using select jq get value without quotes how to validate if field is unique based on id using fluentValidation how to run migration in shared hosting reports cucumber IDbConnection get count how to check tables without schema realtionships in salesforce myObj.key using The composite tool in planet data how to create joblet in talend how to set datcollate to en_US.UTF-8 in postgres Create Nova User on custom User table database testing merge master into branch okta postgresql sidekiq perform_at rails prepare testing db what are the collections types : s = 'Hi hi hi bye bye bye word count’ sc.parallelize(seq).map(lambda word: (word, 1)).reduceByKey(add).collect() statement_timeout postgres postgres check idle transaction attempt ot compare number with table fivem sequelize dialect and dialect options Zend_Db_Adapter_Exception: @entity dependency maven findone in spring boot 2.4.1 mql5 list length oracle select version from dual fast api postgres add array type to sequelize migration post mapping in spring boot sequelize special methods alter database open restricted mode sitecore glassmapper getitem select only distinct values from another table and excluding from current table dataprovider vs factory jooq join salesforce DmlException referencing column and referenced column in foreign key constraint are incompatible. type orm database connection Last recode of DB using laravel datagrip refresh schema Write a trigger to count number of new tuples inserted using each insert statement. How did you use Collections in your framework? dynamic path in microsoft ace oledb 12.0 in sp coldfusion get datasource information dictionary of all english words for my project c why do we have to use pthread_join extract specific key values from nested dictionary code for searching and displaying data database how to dump a database using manage.py --all-or-nothing[=ALL-OR-NOTHING] command doctrine firebase realtime database correct architecture django two foreignkeys to same model admin error graphql drupal get paragraphs data provider new Sequelize('featherstutorial', 'databaseUser', 'databasePassword' Print each index value in the hash table followed by all the key fields (names) of the entries stored at that index. if there is no schema add where clause in elasticsearch select database in mysql print data that will be inserted in the database update data in sequelize alter dbms GraphQLError: String cannot represent value: { dataValues: activemq management console rest api sqlserver: reverse like search {', '.join(["'" + x + "'" for x in schema_fields name])} how to firebase.database().ref push unique id in same unique id firebase how to add some rows in database when migration swagger parameters multiple query example diffrence between Elasticsearch logstash kibana stack and elasticserach fluentd kibana stack sequelize mysql dialect and dialect optionss sequelize 4 sort on joined table attribute what is increment in delphi store data entity framework core update one to many relationship how update any database value in knex Msg 8101, Level 16, State 1, Line 7 An explicit value for the identity column in table 'department' can only be specified when a column list is used and IDENTITY_INSERT is ON. Conditional Clause in query, run query if something true open database restricted mode oracle Kafka only provides a _________ order over messages within a partition. select only unique values from and to current table how to update database from stripe postgres insert knex clojure get key from map entry postgress if escape-character-in-sql-server how to acces db knex serialization vs deserialization datagrip schema not updating what is a query in coding automate test database what do we mean by lossless join property in dbms graphql useQuery child to parent and grandparent soql salesforce alter table in SAP IQ What are the advantages of DBMS over conventional file processing system? return query builder result to array deseq2 design two conditions LINQ stands for ________. extract specific tuple values from two different keys from nested dictionary seq.POSIXt hikari cp oracle jdbc configuration Your filters contain a field ' createdAt.desc' that doesn't appear on your model definition nor it's relations" how to connect to datbase in springboot database stuck on restoring databasehelper in databasehelper cannot be applied to how to get database schema if no schema how to create your own haar cascade ruby permutation rails destroy something from db What is Correlated Subquery in DBMS? hadoop straming allow a funciton to pass through a linkedserver open query in short form insert into with 3 tables INSERT new record sqp query sequnce graphql influx db add measurement generate poco from db efcore hibernate repository findby multiple fields redshift write to s3 schema how to join tables with many to many relationships CREATE TABLE researcher ( researcherid serial PRIMARY KEY, name text ); defining your schema read from elasticsearch in spark Conditional Clause in query, run query if something true with multiple clause firebase database get child count migrate ec2 database to aurora query missing create db with go valadate mysql how to write query to to display record having maximum value datagrip schema update not updating entity framework string comparison case sensitive how to search for a nested value using where firestore DbSchema license how many types of printer configuration based on users factual description on my role model eav database primary data information bad __typename remove graphql keep incrimenting post offset in a custom query check if the substring is present in the column of the record rails console db create all mariadb alter table modify column spring down load db= new DatabaseHelper( this ); firebase db.collection (specific id) does view contains data azure configuration array SQL Order of execution ienumerable vs iqueryable vs ilist vs icollection How can you get the alternate records from the table in the SQL? hadoop streaming mysqli auto increment id what is slr model terraform ternary graphql double values get in spring boot firebase get doc collection add query in code igniter firebase realtime database store array how to run sequelize migration on heroku queryselector get each element postgre update too slow than select qcm pig hadoop aws glue decompress file long query running script decode url name by delphi where do you use abstraction in your framework db: vertex.nedb() flashback in bigquery Method not found: 'Void Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping array join pgp database connection import tag list in mautic db baexpg2ym spark operator helm Hibernate: How does SetMaxresult work in pagination how to count null values with collections linq cheat sheet mysql set variable in a session cloud builder triggers how to add foreign key examole of a schematic model db access postgres peer make full laravel model ( with migration, controller and resource ) oracle trigger compuesto Linq Select string fields concat as one fieldsub query in linq endpoint to upload and retrieve image in database using spring boot Laravel Migration - Update Enum Options create GUID string in postgres firebase query multiple keys how to give select privileges to user in db2 podio api field update crud operation without entity framework in mvc retrieve dynamod db streams example reverse manytoone dapper reactive kafka Can't take lock to run migrations: Migration table is already locked If you are sure migrations are not running you can release the lock manually by running 'knex migrate:unlock' format created_at slurm specific node constraints dbml name attribute of the Type element is already used by another type. Inner join sql postgres map ssh blazor application to connect to database mssql pdo install mysql in ubuntu How is the pattern matching done in the SQL? putting data in the kafka producer in windows filter by list of ids in linq batch operation spring jdbc cosmos order by dynamodb post request boto3 difference running test from maven vs cucumber test runner dynamo meaning Django url with primary key UserModel._default_manager.filter(**{case_insensitive_username_field:username}).exists()): laravel relationship sequelize add column existing model golang migrate date for migration names CREATE TABLE my_first_table ( id BIGINT, name STRING, PRIMARY KEY(id) ) PARTITION BY HASH PARTITIONS 16 STORED AS KUDU; update queryset in django tomcat session clustering schema.fieldsetmember in salesforce create laravel update how to calculate the hascode of a hash table golang mysql Hibernate, how do we define the primary key value generation logic as auto? WPDB Insert or if exists Update drools spring boot how to count row in jdbc codeigniter insert if not exist swagger ruby on rails command for running dynamodb local What are optimization technique in spark or what optimization you have done during your spark project . form inout to database cgi mql5 < ILLEGAL OPERATION monk close db check if div is collpased jqeruy how to change current cluster config populate datalist from database how to structure an entity framework data layer class checking for DB4 major version Microsoft Graph Room query trncate table with relationships how to update ui with increase of database changes accessing varchar array from sql Calling postgres function from spring boot apply elastic search to file system where we write business logic in mvc You can initiate many values in statement 1 (separated by comma): mariadb check constraint example? To overcome the need to backtrack in constraint satisfaction problem can be eliminated by waahygswhvgqvqgvdh sqlalchemy how to use sequence dbms interview questions spark densevector to list Table has no primary key. Doctrine does not support reverse engineering from tables that don't have a primary key. how to add postgres table in netbeans database spring mix ecto.migrate use variable in hibernate query request AnnotationException: @OneToOne or @ManyToOne secondary namenode vs standby namenode uilabel without constraint h2 database spring boot spring boot entitymanager example spring boot jpa entity column only for display @seqReaderPlugin how to use stored procedure in dapper SQL MANHATTAN DISTANCE pyqs by rbr Monitor your K8s cluster generatedata sequel foreign_key uuid Error SQL query: Documentation SELECT * FROM q3.quection LIMIT 0, 25 MySQL said: Documentation #1044 - Access denied for user 'id16867214_root'@'%' to database 'q3' hibernate query many to many merge master to a branch Spring Boot Hibernate remove underscore naming strategy form builder transaction code How to save a ManyToManyField as a value instead of id include for sprintf invalid object name sql ruby include? implementation of levenshtein table request entity too large limit: 102400 feathers mysql database manager what is query dsl in aws elasticsearch hibernate session factory varient wise product database design quantopian.pipeline.data.fact_Set chsarp dict example Validating databases (splunkd validatedb) failed with code '1'. If you cannot resolve the issue(s) above after consulting documentation, please file a case online at http://www.splunk.com/page/submit_issue App Development with Salesforce DX last select in rails SQL RIGHT JOIN Example test spring cloud stream kubectl apply database mediumint, bigint, int goose create migration deseq2 save results to file sub to mqtt Sending a persistent message in RabbitMQ via HTTP API .where ruby how to increase spark.driver.memory neo4j having lodash groupby unique array of objects (models.W042) Auto-created primary key how database migration work Table 'performance_schema.session_variables' doesn't exist stored procedure based on Postal code springboot validator manually validate spring boot hibernate entitymanager aws list-queue-tags for multiple queues @PrimaryKeyColumn(ordinal = 3,type = PrimaryKeyType.CLUSTERED) jpa repository spring boot query table not mapped active record validates entitytypemanager entity query conditions There are multiple records in a table and some are duplicates. Which command will fetch only one copy of the duplicate records? Pick ONE option SELECT DISTINCT SELECT UNIQUE SELECT DIFFERENT All of the above infytq questions 2021 how to view all the document available in indices in kibana cred generic field view select get native query result to map column names What are the tables in test plans? Multi threading Models LINQ update on segment tree Natural JOIn baeldung eureka spring preauthorize two roles deseq2 output explained hibernate getList of a table medium generate-tsql-stored-procedures i've customized transportclient of elasticsearch and I want to migrate to RestClient rename migration laravel storage problems in RDBMS larqavel migration @query with generics newdata had 1 row but variables found have realtime firebase database : How to check if document exists sql like % how to log queries with triggers JPA hibernates left join how to select level of netcdf with cdo pundit elasticsearch duplicate key value violates unique constraint "pg_type_typname_nsp_index" System.Collections.Specialized.BitVector32.CreateMask pymongo insert if not exists azure data factory rest api pagination with sharepoint list where composite attribute sql mapping page entity to dto django foriegn key filter sample sequelize queryinterface select ncbi protein database download mysqldump restore jpa postgis geometry PL/SQL journalctl log reviews catalog mysqldump with WHERE clause Using .include in linq how to create local postgres database insert into table impala rails migration populate data paging entity framework core djb2 hash function c explained life processes class 10 mcq intellij database tool window not available spring boot eureka management.endpoints.web.exposure.include odata core select does not work ignore foreign key constraint in sequelize joining multiple documents in cloud firestore Argument 1 passed to Doctrine\Inflector\Inflector::singularize() must be of the type string, null given, entity framework delete record with foreign key constraint sequelize log Special methods odoo computed many2one update is running even if data is not present in dynamodb rspec model test inclusion xampp mysql command to import a large database drupal 8 get query string parameters database utility class The row in table 'cal_event' with primary key '1' has an invalid foreign key: cal_event.event_creator_id contains a value '0' that does not have a corresponding value in auth_user.id. codeigniter grocery crud error has occurred on insert insert validation import mysql dump active record create association mysql root issues how to get fields of a table in rails show dbs hibernate vs suspend View the execution performance statistics for a query: show specific partition hive query reset umbraco password in database reverse data query apollo not working arabic wordnet database download mongorepository spring boot custom query sequelize array of strings add foreign key anottation weqbwr8222 show database cmd dynamic soql escape the single quote sql query transaction fee in paystack customization cosmos db alter table add column postgres firebase realtime database read data Serialization and Deserialization sqlite insert Base table or view not found: 1146 Table how to do database testing in your framework duplicate key value violates unique constraint "django_migrations_pkey" drupal 8 preprocess field You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column. how do you use data provider how to add a tomcat server in intellij through maven elasticsearch select fields if elif bqsh parent soql query spark ar opacity patch constraint how to fetch data from etherscan better-sqlite3 difference between primary key and foreign key modele sequelize serialization table are you using management tool how to embedded tableau sharepoint graph api update item content type entity framework generate script "// Call our database and ask for a subset of the user posts" getting invoice total using linq write parallel to database system.schema key/value storage Create a variable named ourBirds and assign to it a LINQ query that is the result of a join from myBirds onto yourBirds using the Name property as the key. Make sure to return the birds that are the same between the two lists. count the number of times data apears in firebase database partition sml jpg w bazie danych mysgl golang + sigs.k8s.io/structured-merge-diff/v3/value tutorials on appsync graphql transformation erreur de l initialisation du cluster matchcollection join all values into one firebase copy child data to another self.new_from_db "zip_mass_appdata_for_map.rds" why is my primary key displaying as none How to query two separate metrics from different entities in new relic m language join tables pdo insert or update if exists how do you enforce business rules on a database [bibtex file=intelligence.bib sort=author order=asc group=entrytype group_order=asc format=ieee ] [/bibshow] X-DBP-APIKEY m language merge tables sesonal freq for 1 minute data statsmodels value does not fall within the expected range. sharepoint join spquery package com.couchbase.client.core.deps.com.fasterxml.jackson.annotation does not exist LoadWith "where" linqtodb coloneqq package sellect one proporty linq typo3 check if query result is empty sp to create unique id if a new value is found duplicate data found in servlet doing a multiple db on drupal nuwave graphql schema resultsnames deseq2 on 3 conditions returns two specification table code no invulnerability on join plugin ruby activerecord find where less than disable source in elasticsearch one lin3r bookshelf update multiple [mydb.insert] one of _writer, _creator is required for this request rdate documentation salesforce move records from sandbox to production how to use UUID with binary in query builder rails fixture without timestamping grok patterns for elastic load balancer logs jpa entity geographic with postgis splunk rex field=_raw xcode archive disabled what does tbh & idk mean how to keep page from scrolling sideways ng generate component in subfolder matrix latex pemantauan in english how to make array uniq adding resources pom.xml coldfusion loop structure bootstrap script delete conda environment apache enable mod headers PANIC: Missing emulator engine program for 'x86' CPU. unity random range how to use grepper bootstrap4 navbar flutter sign apk switch tab in selenium String Formatting with the % Operator shortcut icon how to set fillstyle color in hexadecimal how to find a list of columns containing null values delete an item from db collection mongodb client.user.setActivity("YouTube", {type: "WATCHING}) docker build supress build output What is (object sender, EventArgs e) mathf.ceil google ipad mini xcode simulator xml array of objects push changes to github phpstorm imovie export mp4 udg:///dev/ttyUSB0 arduino wifi code connecting to timescaledb from terminal snapshot testing The Schedule Performance Index is equal to: how to get mocha ae plugin free download multiple fine uploader in one page that is something leaderstat script chains tree listing in mac how to get the player character roblox script london 50's buildings print("Minus - 12") tutorials on appsync graphql transformation punk creeper platform shoes cheap scrapy itemloader example bitcoin visual studio code vsc download google transalte german english traductor google japanese translator malay to english pashto to urdu google translate english to german trad traduction espagnol traduction spanish english english to german traductor español ingles english to latin traductor serbian to english google trad googl trad google translate to japanese eng to hin teranslate google calculator google trasnslate google translate english to chinese google tradutor oversetter translate néerlandais japanses to english spanish to englihs googleübersetzer rotar in english translate engels ne google translator google traduction english to japanese English to french afrikaans to english translate spanish german to english translator översättning svenska till engelska English to punjabi french open 2020 scores eng to span french to english google übersetzer google trAanslate översätt starring in french translate english to urdu spanish to english transalte übersetzer english to spanish french english japanese to english återvändsgränd engelska tyranslate translate google translate jap to eng google translate afrikaans to english traduttore google traduttore google.traduttore twitch tech dogecoin price gme stock friday night funkin dotenv chess bobbt fischer minesweeper alphabet border radius bootstrap tradutor ingles spanish to english] english to hindi tradutor google translte google trsnlate suggestions tradutor AMC Stock bootstrap 4 font bold grepper godott godot http status codes oculus quest 2 you tube ytouube youtube find my phone gamestop stock nodemon what is an api instagram bootstrap list group spanish dictionary eng to bangla responsive img statistiques Coronavirus France Who is the current leader of france corona statistics laurent gaudé voyages en terres inconnues corrigées corona tracker who will be the next leader of north korea npm clear cache flexbox align right and left what time is it code grepper like cheat bootstrap width 100 create vue project markdown link twitter netflix degrees to radians bootstrap link visual studio speed of light cardano pip freeze requirements.txt pacman 30th anniversary ustify-content: flex-end; bootstrap Snapchat clion asdf float right bootstrap preventdefault url shortener free bootstrap navbar fixed top attack on titan season 4 text field flutter set background image opacity 2*sqrt(3)*sqrt(4) mongodb local connection string how to make image responsive bootstrap 4 col offset in bootstrap urban dictionary avatar the last airbender rainbow six siege failed to push some refs to latex tabular rainmeter December global festivities black color code Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? roboto font lodash npm redit reddit tinder hacker news how to get list of docker containers docker list fo dockiers pacman hypixel ip eclipse bootstrap center align columns rule 34 body-parser npm cookie clicker flutter listview builder image responsive bootstrap 4 microsoft flight simulator 2020 delete all records from table download videos from instagram npm update bootstrap breakpoints clear cmd conda list environments spotify open.,spo dropdown button flutter example ModuleNotFoundError: No module named 'requests' flutter svg jake paul font awesome define size usestate array push which sign is greater than npm font awesome twitch.tv flutter drawer docker access container predicted growt before earth population badlion client world population find out process using port windows show collections in mongodb markdown table latex text size how to update pip cookies wattpad tesla stock Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable) boku no pico 4k resolution docker list containers blue hex code todays corona numbers covid stats random photo lorem ipsum TypeError: 'NoneType' object is not subscriptable red ants https processing where am i how to change to dark mode visual studio markdown image boostrap shadow sonic VScode duplicate line how to plot a scatter plot in matplotlib stack overflow How to set a image as a backgroung image ngif else gold color code play minesweeper my anime list Markdown new line 20 minute timer image align center how to align two divs side by side bootstrap 4.5 cdn flutter build android release apk small create db user postgres Can't bind to 'ngModel' since it isn't a known property of 'input'. stackoverflow create a venv search and replace vim npm ERR! missing script: start what is brainfuck for centre align image in div lorem ipsum dolor sit amet jupyter notebook cmd table in markdown npm check package version redux-devtools-extension npm intellij bootstrap 4 image circle Uncaught ReferenceError: $ is not defined amazon prime how to insert an image in markdown typing racer mr robot orange color code ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none) ERROR: No matching distribution found for tensorflow proptypes oneof cool math games fun code games monkey stock market wordpress .htaccess file code how to list docker images heroku logs checkbox in flutter include picture in latex bootstrap media query breakpoints media breakpoints google french translate thank you coronavirus helpers center text in div container sublime text add image to readme [core/no-app] No Firebase App '[DEFAULT]' has been created - call Firebase.initializeApp() flutter what is bootstrap flutter future builder code grepper responsive media query breakpoints yarn update all dependencies to latest english alphabet adding a preview image in readme.md update npm blocks for beacon on hover change cursor eth price pip freeze accii art what is an IDE include image latex flutter alertdialog flutter container border bootstrap script how many seconds in 1 hour activate virtualenv windows less than video bootstrap league of legends download how to activate a venv in windows chrome download unity download bootstrap button group bootstrap cdn link bootstrap cdn image intervention README.md image Could not initialize class org.codehaus.groovy.runtime.InvokerHelper godzilla vs kong npm update all Could not find module "@angular-devkit/build-angular December global holidays image center in div electromagnetic spectrum flutter apk build white color code vim download coding challenges next link use npm to update packages to latest version import axios covid cases MOVIES myspace border for container in flutter soap vs rest assembly firebase deploy only function steins gate npm version median password regex latex sum how to know the ip address of my pc using cmd switch case in flutter Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch heroku flutter appbar widget how to make a conda environment traversy media using pip windows cmd build apk flutter command format code discord fontawesome.com search icon flex force div right side ngstyle cloudflare dns 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte put vs patch latex new line word reference format code intellij delete conda environment how to enable flutter web ddos bootstrap glyphicons LF will be replaced by CRLF in assets npm cache clean latex bullet points what is regression testing headers in axios.get nand gate prune volume docker stripe test card green hex code flutter font bold less equal latex download ram Benoit Mandelbrot ng add @angular/material light blue hex code internet explorer get ip of mac no module named numpy select search bootstrap windows keyboard shortcut switch desktop Module not found: Can't resolve 'react-router-dom' E Unable to locate package sl latex bold font Hex editor Cannot read property 'length' of undefined text input max length flutter navigate to new screen pac man happy new year postgres download postgres setup windows clear terminal windows How to get free domain nok stock xcrun: error: invalid active developer path (/Applications/Xcode.app/Contents/Developer), color gradient in flutter how to check flutter version deprecated how to create link in readme.md how to get current product key windows 10 covid cases in india docker tag covid map ada price Flutter give image rounded corners dotenv npm delta Arsenal open previous closed tab chrome purple hex code facebook covid vaccine registration vi line number how to put container in center of page how to check wifi password using cmd pm2 start npm start docker get container ip how to open anaconda in terminal Property 'firstName' has no initializer and is not definitely assigned in the constructor black hex m to cm Flutter Navigator to new page visual studio comment out block tailwind flex align items center spinner android flutter add shadow to container carpe diem csgo metafrash Error: Cannot find module 'webpack-cli/bin/config-yargs' how to add image overleaf metasploit ping centre text bootstrap delete docker containers http methods carpal tunnel? radio button vue adb is not recognized crontab every 5 minutes itemize latex pink hex code flutter input text in container flutter raisedbutton example bootstrap text center in div 200 status code gentoo df fetch value nitric acid moment format date nvm set default onclick href contains text xpath npm start reset cache put header at bottom of div black jack conda write environment.yml minecraft stan lee host file windows 10 fontawsome flutter find gameobject with tag codecrepper npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree jojo's bizarre adventure flush dns authentication vs authorization adblocker extension chrome clip studio paint run cron every hour error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor' npm webpack infinity war EADDRINUSE: address already in use has been blocked by CORS policy: Request header field content-type is not allowed by Access-Control-Allow-Headers in preflight response. bootstrap modal center matplotlib subplots window host file PIL module not detected how to center a form in bootstrap display grid markdown embed image mac active developer path fontawesome.com mak icon bigger import error no module pip container decoration box flutter anaconda remove environment text align center bootstrap text-align: center; tailwind cdn textfield border flutter gson dependency android minecraft server startup code add image in markdown in url charmap' codec can't encode character '\u010d' in position 97: character maps to prettier don't format line System has not been booted with systemd as init system (PID 1). Can't operate url in latex email regex text-decoration:none; bootstrap whitespace regex glorious model o columns center bootstrap 3 Error: listen EADDRINUSE: address already in use :::3000 The Legend of Korra No module named 'sklearn' portainer mp3 to ogg\ toast code in android studio response api Hvad er definitionen på en art? fr-us riprendere un programma stoppato su emacs how images button work in android studio handler delay android retrieve selenium first-of-type for loop how to switch flutter channels let x1 x2....x10 follows iid exponential distribution Joey Tribbiani learn c++ applescript voice control Fatal error: Uncaught GuzzleHttp\Exception\RequestException: cURL error 60: SSL certificate problem: unable to get local issuer certificate get longest shortest word in list python text color in latex mr robot case in bat extension unexpectedly stopped in vs code -4048 EPERM npm error runtime exception corona how to kill someone android viewmodel dependency blurb meaning liber primus height form the top to the element text color tkinter find only one field mongodb how to make array empty numbering figure in document class beamer This is Grepper say how to make jpanel not resizable when did the battle of dieppe happen sh: /Applications/PyCharm: No such file or directory self.new_from_db polylang integratred site show all blogs without language differnce what is suspension criteria mat-table limit height bootstrap4 cdn Console.ReadKey(); wdio config firefox geckodriver what is inline flex singly even magic square creation algorithm Could not open input file: composer visual studio code spawn multiple cursors sweet alert example how to make your name a different color on minecraft postgres find locked row e.preventDefault non-docker root printf output with color what is your role how to free draw on screen in kubuntu session_start cookie lifetime jira rce payload yii2 get value from params max res for discord emoji how much is 19 dollars in albanian lek datatable width column clear all but matlab add application to startup windows obs studio use script APACHE MULTIPLE HOstnames plotly mesh3d example learn c language procrastination best games simposio if the symbol for cobalt is written as co what would be wrong with it background color and background image 'App\Http\Controllers\Storage' arduino send messasge tempdata object to int redo of healer season 3 Illuminate\Database\QueryException could not find driver windows what do i like to eat earbuds olx how to left tab code in vscode what are the tags in selenium tpl regex any numbers sh in docker container window relocation from navbar void vs return type HTML started template for bootstrap get an object speed unity rigidbody published net core did not have wwwroot nuxt disable ssr concurrent.futures No matching function for call to 'RCTBridgeModuleNameForClass' sudo pure-pw useradd upload -u $USER -g ftpgroup -d "$PWD" -m <=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= 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='$table->integer('user_id');';
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;
}
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?
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='';
(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({});
}
<table id='userTable'>