/*
                 对矩阵进行插值时，需要保证矩阵不为空，为空则使用单位矩阵
                 TODO: 二维和三维场景下单位矩阵不同，之后 WebGL 版需要做进一步处理
                 */

/*
        * Assesses the query, turning on all handlers if it matches, turning them off if it doesn't match
        */

/*
      R pretty:
      https://svn.r-project.org/R/trunk/src/appl/pretty.c
      https://www.rdocumentation.org/packages/base/versions/3.5.2/topics/pretty
      */

/*
     * 开启或者关闭动画。
     *
     * ```ts
     * view.animate(false);
     * ```
     *
     * @param status 动画状态，true 表示开始，false 表示关闭
     * @returns View
     */

/*
  `(${flashMeetingTopicsTotal}个议题)`
  */

/*
 *  根据如下规则尝试放置label
 *                5
 *        ------------------
 *        |    1   |   0   |
 *    8   —————————4————————   7
 *        |    2   |   3   |
 *        ——————————————————
 *                 6
 */

/*
 * Device is an iPhone
 *
 * @type {Boolean}
 * @constant
 * @private
 */

/*
 * https://en.wikipedia.org/wiki/Levenshtein_distance
 * 计算两条path的编辑距离
 */

/*
 * 抽取pathSegment中的关键点
 * M,L,A,Q,H,V一个端点
 * Q, S抽取一个端点，一个控制点
 * C抽取一个端点，两个控制点
 */

/*
* @description 用于检测是否支持 'dingtalk.xxx.xxx'
* @param {string} method - 需要检测的api，如'dingtalk.window.toast'.
* @return {boolean} - 返回布尔值.
* */

/* $$PROTOCOL_VALUE */

/* ------------------------------------------------------------ */

/* .$$PROTOCOL_VALUE */

/* .Action */

/* .ActionButtonDirection.Vertical */

/* .ActionStatus.Disabled */

/* .ActionType.Jump */

/* .ActionType.Submit */

/* .ActionType.async */

/* .ActionType.sync */

/* .AttachmentTypeEnum.LINK */

/* .AvatarList */

/* .BILog */

/* .Color */

/* .Content */

/* .ContentType.Description */

/* .ContentType.Image */

/* .ContentType.Paragraph */

/* .ContentType.Title */

/* .GrayManager.getInstance */

/* .HOUR */

/* .Header */

/* .Image */

/* .ImgFallbackReplacer */

/* .MINUTE */

/* .MONTH */

/* .ModuleName.IM */

/* .RPC_PROTOCOL */

/* .Rgb */

/* .SECOND */

/* .ToastType.ERROR */

/* .ToastType.SUCCESS */

/* .UserAvatar */

/* .VideoConfJoined.joined */

/* .VideoConfStatus.ON */

/* .YEAR */

/* .addFormatToken */

/* .addParseToken */

/* .addRegexToken */

/* .addUnitAlias */

/* .addUnitPriority */

/* .addWeekParseToken */

/* .basis */

/* .browserUrl */

/* .createLocalOrUTC */

/* .createUTC */

/* .createUTCDate */

/* .daysInMonth */

/* .daysInYear */

/* .degrees */

/* .destroyFns */

/* .destroyFns.length */

/* .destroyFns.push */

/* .destroyFns.splice */

/* .extend */

/* .featureKeys.INTERACTIVE_CARD_IMAGE_RATIO_ROLLBACK */

/* .formattingTokens */

/* .gamma */

/* .genSrc */

/* .genUniqId */

/* .genericArray */

/* .get */

/* .getActionClickHandler */

/* .getActions */

/* .getConfirmLocale */

/* .getContentClickHandler */

/* .getPrioritizedUnits */

/* .getReporter */

/* .getResourceProtocol */

/* .getSendMsgSchemeParam */

/* .getServerTime */

/* .getShowName */

/* .getSticker */

/* .hcl */

/* .hooks.deprecationHandler */

/* .hooks.momentProperties */

/* .hooks.parseTwoDigitYear */

/* .hooks.suppressDeprecationWarnings */

/* .hooks.updateOffset */

/* .hsl */

/* .hue */

/* .isLeapYear */

/* .isM1Arm */

/* .isNeedOpenTab */

/* .isNumberArray */

/* .isSendMsgScheme */

/* .loadScript */

/* .logOpenLink */

/* .logSendOutData */

/* .logger.log */

/* .makeGetSet */

/* .match1to2 */

/* .match1to4 */

/* .match1to6 */

/* .match2 */

/* .match3to4 */

/* .match4 */

/* .match5to6 */

/* .match6 */

/* .matchSigned */

/* .matchWord */

/* .normalizeObjectUnits */

/* .normalizeUnits */

/* .postReporter */

/* .radians */

/* .regexEscape */

/* .rgb */

/* .rgbConvert */

/* .rpc_type.CALL */

/* .rpc_type.CALLBACK_FAIL */

/* .rpc_type.CALLBACK_SUCCESS */

/* .rpc_type.EVENT */

/* .safeMid2Url */

/* .toast */

/* .transformI18nText */

/* .transformLDMLTimeFormat */

/* .triggerScheme */

/* .useCardData */

/* .useFallback */

/* .useIconSize */

/* .useImageListAdapter */

/* .weekOfYear */

/* 0 */

/* 1 */

/* 10 */

/* 11 */

/* 12 */

/* 2 */

/* 3 */

/* 4 */

/* 5 */

/* 6 */

/* 7 */

/* 8 */

/* 9 */

/* @__PURE__ */

/* Action */

/* ActionButtonDirection.Vertical */

/* ActionType.async */

/* ActionType.sync */

/* AllDayEventEnum.YES */

/* AvatarList */

/* BILog */

/* BigPlayButton */

/* Btn */

/* CalendarCardMeetingStatusEnum.CANCEL */

/* CalendarCardMeetingStatusEnum.NORMAL */

/* CalendarRangeEnum.DEFAULT */

/* Color */

/* Content */

/* ContentType.CenterUserAvatar */

/* ContentType.Description */

/* ContentType.Image */

/* ContentType.Input */

/* ContentType.Paragraph */

/* ContentType.QUOTE */

/* ContentType.Rank */

/* ContentType.Title */

/* ControlBar */

/* CurrentTimeDisplay */

/* DATE */

/* DDJSAPIPlugin */

/* DingContentType.FORWARD_COMBINE */

/* DingContentType.IMAGE */

/* DingContentType.LINK */

/* DingContentType.SPACE_FILE */

/* DurationDisplay */

/* EmotionStore */

/* Flex Item 相关属性 */

/* FontIcon */

/* From FvD 13.37, CSS Color Module Level 3 */

/* G2 的一个壳子，不包含 Geometry，由开发者自己定义和引入 */

/* GrayManager.getInstance */

/* HOUR */

/* Header */

/* IFrameRuntime */

/* IMG_FILE_AE */

/* IMG_FILE_AFORM */

/* IMG_FILE_AI */

/* IMG_FILE_AXURE */

/* IMG_FILE_C4D */

/* IMG_FILE_CSS */

/* IMG_FILE_DEFAULT */

/* IMG_FILE_DOC */

/* IMG_FILE_EDIT */

/* IMG_FILE_EXCEL */

/* IMG_FILE_EXE */

/* IMG_FILE_FOLDER */

/* IMG_FILE_FONT */

/* IMG_FILE_HTML */

/* IMG_FILE_IMG */

/* IMG_FILE_JAVA */

/* IMG_FILE_JS */

/* IMG_FILE_JSON */

/* IMG_FILE_KEYNOTE */

/* IMG_FILE_LINK */

/* IMG_FILE_MD */

/* IMG_FILE_MIND */

/* IMG_FILE_MOVIE */

/* IMG_FILE_MUSIC */

/* IMG_FILE_NUMBERS */

/* IMG_FILE_OFFICE_EXCEL */

/* IMG_FILE_OFFICE_PPT */

/* IMG_FILE_OFFICE_WORD */

/* IMG_FILE_PDF */

/* IMG_FILE_PS */

/* IMG_FILE_SKETCH */

/* IMG_FILE_TEXT */

/* IMG_FILE_XD */

/* IMG_FILE_XMIND */

/* IMG_FILE_ZIP */

/* Image */

/* ImgFallbackReplacer */

/* Locale */

/* Locale.prototype */

/* MILLISECOND */

/* MINUTE */

/* MONTH */

/* ModuleName.CSPACE */

/* ModuleName.IM */

/* Moment */

/* Moment.prototype */

/* MsgContentType.IM_SPACE_FILE */

/* MsgContentType.MAIL */

/* MsgContentType.OA */

/* MsgContentType.ORG_SPACE_FILE */

/* NeedRenderType.yes */

/* OPEN_FILE_TYPE.file */

/* OPEN_FILE_TYPE.folder */

/* PickerPanel */

/* Player */

/* ProgressControl */

/* RPC_ARGS */

/* RPC_ID */

/* RPC_NAME */

/* RPC_PROTOCOL */

/* RPC_TYPE */

/* RankActionStatus.Normal */

/* RankActionType.Button */

/* RankActionType.Static */

/* Rgb */

/* SECOND */

/* SchemeEnum.CLIENT_ACTION_OPENAPP */

/* Shortcut */

/* Subject */

/* TimeDivider */

/* ToastType.ERROR */

/* ToastType.INFO */

/* ToastType.SUCCESS */

/* UpdateCard.yes */

/* UserAvatar */

/* VideoConfStatus.OFF */

/* VideoConfStatus.ON */

/* View 管理相关的 API */

/* WEEK */

/* WEEKDAY */

/* WaterMarkContainer */

/* WebWorkerRuntime */

/* YEAR */

/* ["default"] */

/* ["default"].Modal */

/* ["default"].call */

/* ["default"].callHookApi */

/* ["default"].getI18next */

/* ["default"].hasHookApi */

/* adaptFontSize */

/* addFormatToken */

/* addParseToken */

/* addRegexToken */

/* addTimeToArrayFromToken */

/* addUnitAlias */

/* addUnitPriority */

/* addWeekParseToken */

/* arrayAppend */

/* atOpenIdType.ALL */

/* batchUserProfiles$ */

/* binding */

/* brighter */

/* browserUrl */

/* bubble */

/* calcChartData */

/* calendar */

/* clientVersion */

/* concated harmony reexport */

/* copyConfig */

/* createDate */

/* createI18nInstance */

/* createInvalid */

/* createLocal */

/* createLocal.apply */

/* createUTC */

/* createUTCDate */

/* createUTCDate.apply */

/* darker */

/* dayOfYearFromWeeks */

/* daysInMonth */

/* daysInYear */

/* daysToMonths */

/* default */

/* default.actionBar */

/* default.approval */

/* default.auth-content */

/* default.call */

/* default.callHookApi */

/* default.card */

/* default.content */

/* default.daily-report-workspace */

/* default.description */

/* default.dingdrive-action-card */

/* default.doc-title-bar */

/* default.getI18next */

/* default.hasHookApi */

/* default.head */

/* default.msg-content */

/* default.noCardInfo */

/* default.popMenu */

/* default.question-card */

/* default.quote */

/* default.report-detail-card */

/* default.report-invite-card */

/* default.service-window-card */

/* default.smart-assistant */

/* default.smart-assistant_notice */

/* default.smart-assistant_other */

/* default.smart-assistant_report */

/* default.task-card */

/* default.thumbnail */

/* default.workspace-task-item */

/* defaultCalendar */

/* defaultDayOfMonthOrdinalParse */

/* defaultInvalidDate */

/* defaultLocaleMeridiemParse */

/* defaultLocaleMonths */

/* defaultLocaleMonthsShort */

/* defaultLocaleMonthsShort.indexOf */

/* defaultLocaleWeek */

/* defaultLocaleWeekdays */

/* defaultLocaleWeekdaysMin */

/* defaultLocaleWeekdaysShort */

/* defaultLocaleWeekdaysShort.indexOf */

/* defaultLongDateFormat */

/* defaultOrdinal */

/* defaultRelativeTime */

/* defineLocale */

/* degrees */

/* deprecate */

/* deprecateSimple */

/* destroyFns.length */

/* destroyFns.pop */

/* dtDesktopButtonPrefix */

/* dtDesktopPrefix */

/* dtEmojiReg */

/* end */

/* end View 管理相关的 API */

/* end 一系列传入配置的 API */

/* end 生命周期函数 */

/* escapeXML */

/* eslint no-loop-func: 0 */

/* eslint-disable */

/* eslint-disable @typescript-eslint/indent */

/* eslint-disable @typescript-eslint/no-unused-vars */

/* eslint-disable max-len */

/* eslint-disable no-lone-blocks */

/* eslint-disable no-mixed-operators */

/* eslint-disable no-nested-ternary */

/* eslint-disable no-param-reassign */

/* eslint-disable no-redeclare */

/* eslint-disable no-undef */

/* eslint-disable no-var, prefer-template */

/* eslint-disable react/no-multi-comp */

/* eslint-enable */

/* event-emitter */

/* expandFormat */

/* export default binding */

/* extend */

/* featureKeys */

/* featureKeys.BIRTHDAY_CARD_WIDTH_ROLLBACK */

/* featureKeys.SAVE_LINK_AS_DINGDOC */

/* filterList */

/* formatMoment */

/* formatTime */

/* formatTokenFunctions */

/* formattingTokens */

/* genUniqId */

/* get */

/* getActionClickHandler */

/* getActions */

/* getConfirmLocale */

/* getContentClickHandler */

/* getDaysInMonth */

/* getEmojiUrl */

/* getFrameworkId */

/* getFrameworkUrl */

/* getImagePreviewRule */

/* getImagePreviewUrl */

/* getIsLeapYear */

/* getItem */

/* getLanguage */

/* getLocale */

/* getParseRegexForToken */

/* getReporter */

/* getServerTime */

/* getSetDayOfWeek */

/* getSetGlobalLocale */

/* getSetHour */

/* getSetISODayOfWeek */

/* getSetISOWeek */

/* getSetLocaleDayOfWeek */

/* getSetMonth */

/* getSetWeek */

/* getSetYear */

/* getSticker */

/* getTopic$ */

/* getTopicReplys$ */

/* global Reflect, Promise */

/* global indexedDB,webkitIndexedDB,mozIndexedDB,OIndexedDB,msIndexedDB */

/* hack: 别名兼容，此处应该在编译环节解决掉 */

/* harmony default export */

/* harmony export (binding) */

/* harmony export */

/* harmony import */

/* hexToRgb */

/* hooks */

/* hooks.HTML5_FMT */

/* hooks.ISO_8601 */

/* hooks.RFC_2822 */

/* hooks.calendarFormat */

/* hooks.createFromInputFallback */

/* hooks.defaultFormat */

/* hooks.defaultFormatUtc */

/* hooks.defineLocale */

/* hooks.duration */

/* hooks.fn */

/* hooks.invalid */

/* hooks.isDate */

/* hooks.isDuration */

/* hooks.isMoment */

/* hooks.lang */

/* hooks.langData */

/* hooks.locale */

/* hooks.localeData */

/* hooks.locales */

/* hooks.max */

/* hooks.min */

/* hooks.months */

/* hooks.monthsShort */

/* hooks.normalizeUnits */

/* hooks.now */

/* hooks.parseTwoDigitYear */

/* hooks.parseZone */

/* hooks.prototype */

/* hooks.relativeTimeRounding */

/* hooks.relativeTimeThreshold */

/* hooks.unix */

/* hooks.updateLocale */

/* hooks.updateOffset */

/* hooks.utc */

/* hooks.version */

/* hooks.weekdays */

/* hooks.weekdaysMin */

/* hooks.weekdaysShort */

/* hue */

/* identity */

/* invalidDate */

/* invokeWithGuardWithoutThrow */

/* isCall */

/* isCallback */

/* isCardRuntimeMessage */

/* isErrorCallback */

/* isEvent */

/* isHttpLink */

/* isLightMode */

/* isMoment */

/* isSuccessCallback */

/* isValid */

/* isWin */

/* istanbul ignore next */

/* jsonToXML */

/* label长度是否超过约束值 */

/* limitAtOpenIdsLength */

/* listLocales */

/* localeFirstDayOfWeek */

/* localeFirstDayOfYear */

/* localeIsPM */

/* localeMeridiem */

/* localeMonths */

/* localeMonthsParse */

/* localeMonthsShort */

/* localeWeek */

/* localeWeekdays */

/* localeWeekdaysMin */

/* localeWeekdaysParse */

/* localeWeekdaysShort */

/* logOpenLink */

/* logger.error */

/* logger.info */

/* logger.log */

/* longDateFormat */

/* makeGetSet */

/* mapAppend */

/* match1 */

/* match1to2 */

/* match1to3 */

/* match1to4 */

/* match1to6 */

/* match2 */

/* match3 */

/* match4 */

/* match6 */

/* matchOffset */

/* matchShortOffset */

/* matchSigned */

/* matchTimestamp */

/* matchUnsigned */

/* mergeConfigs */

/* mid2Object */

/* mid2Url */

/* modalGlobalConfig */

/* modalPrefixCls */

/* module decorator */

/* monthsRegex */

/* monthsShortRegex */

/* monthsToDays */

/* normalizeObjectUnits */

/* normalizeUnits */

/* now */

/* openImageViewerWithUrl */

/* openModal */

/* openSlidePanel */

/* ordinal */

/* parseRgba */

/* pastFuture */

/* prepareConfig */

/* radians */

/* reexport */

/* reexport safe */

/* regexEscape */

/* relativeTime */

/* rgbConvert */

/* rpc_type.CALL */

/* rpc_type.CALLBACK_FAIL */

/* rpc_type.CALLBACK_SUCCESS */

/* safeMid2Url */

/* sendAction */

/* sendMsg */

/* sendOutData */

/* sendOutDataWithoutContext */

/* serverTimeStamp */

/* set */

/* setFrameworkUrl */

/* setHookCallback */

/* setItem */

/* setMonth */

/* splitTextWithEmoji */

/* strToBoolean */

/* stringGet */

/* stringSet */

/* textReplace */

/* timeFormat */

/* toDingAttachmentModels */

/* toast */

/* toastPrefixCls */

/* transform */

/* transformI18nText */

/* transformLDMLTimeFormat */

/* triggerScheme */

/* tslint:disable */

/* tslint:disable:max-line-length */

/* tslint:disable:no-console */

/* tslint:disable:no-unused-variable */

/* tslint:disable:no-use-before-declare */

/* tslint:disable:no-var-keyword */

/* tslint:enable */

/* tslint:enable:max-line-length */

/* tslint:enable:no-unused-variable */

/* unused harmony default export */

/* unused harmony export changeConfirmLocale */

/* unused harmony export hslConvert */

/* unused harmony export limitStringEllipsisInMiddle */

/* unused harmony export splitByRegExp */

/* unused harmony exports BILogCode, BILogWithRawMessage, initBILog, BILogWithCode, searchClickLog, searchVvipLog */

/* unused harmony exports CalendarAction, CheckInResult, IRecurRuleModelFreq, IRuleDayEnum, IScope, ICalendarReceverListTypeEnum, ChangePushAction, CalendarStatusEnum, CalendarIdentityEnum, IAclEnum, OpenCreateCalendarModalBizType, ReminderMinutesEnum, NotificationTypeEnum, ReceiverType, CheckInStatus, CommentTypeEnum, CommentContentTypeEnum, CalendarShareTypeEnum, CheckInConfigUpdateTypeEnum, ActionCardStatusEnum */

/* unused harmony exports ErrorMessage, useAppVisibilitySubject, useErrorRecord */

/* unused harmony exports IOpenMsgBoxResultEnum, IMsgBoxExTypeEnum, ELocalPageExHostType, EOpenWindowIdEnum */

/* unused harmony exports IOpenMsgBoxResultEnum, IMsgBoxExTypeEnum, ELocalPageExHostType, EOpenWindowIdEnum, openMsgBox, openModal, openWindowWithURL, closeWindowById, openSelectUserWnd, hide, closeChatFile, closeModalWnd, close, setSlidePanelTitle, closeLocalSlidePanel, closeGroupSetting, openModalWithURL, openConfirm */

/* unused harmony exports IScope, DingNoticeType, DingInviteSubBizType, RemindTypeEnum, DingStatus, DingSendStatus, DingConfirmStatus, DingListQueryRequestType */

/* unused harmony exports LogLevel, log */

/* unused harmony exports WMContent, WMContentText, WMFooter */

/* unused harmony exports getCardInfo, batchDisposeCard */

/* unused harmony exports gray, Lab, lch, Hcl */

/* unused harmony exports isAtomShell, isMac, isTaurus, isDingTalkWin, isNw, isDTWKWebView, higherThanXp */

/* unused harmony exports selectType, ResponseStatus, CardComponentMap, GetCardInfoStatus */

/* unused harmony exports selectType, ResponseStatus, CardComponentMap, GetCardInfoStatus, IMAGE_SIZE, VipModuleName, SubType, VideoConfJoined, FeedMediaTypeEnum */

/* unused harmony exports toCalendarAttachments, toDingAttachments */

/* unused harmony exports utReporter, genKeyForCard */

/* updateLocale */

/* url2Mid */

/* urlDecode */

/* urlEncode */

/* useCardData */

/* utStat */

/* weekOfYear */

/* weekdaysMinRegex */

/* weekdaysRegex */

/* weekdaysShortRegex */

/* weeksInYear */

/* withConfirm */

/* withError */

/* withInfo */

/* withSuccess */

/* withWarn */

/* 事件 */

/* 依赖的模块，在这里统一引入，方便打包优化 */

/* 其他 */

/* 字符串操作 */

/* 当前所有的事件 */

/* 数字操作 */

/* 渲染 */

/* 类型转换 */

/* 组件更新的 cache，组件配置 object : 组件 */

/* 缓存下载任务 */

/* 表达式解析 */

/* 词法分析 */

/* 逻辑操作 */

/* 钉盘 */

/* 钉盘相关 begin */

/* 集合操作 */

/* 音视频 */

/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */

/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */

/*!{id:msgpack.codec.js,ver:1.05,license:"MIT",author:"uupaa.js@gmail.com"}*/

/*#__PURE__*/

/**
             * 1. 初始化，全部 checked。此时，点击 radio, clickItem 进入聚焦
             * 2. 当前只选中一个
             *    2.1 且选中 item 等于 clickItem，退出聚焦，全部重新选中
             *    2.2 替换聚焦的 item
             * 3. 其它，同 2.2
             */

/**
             * @private
             * 是否初始状态，一旦 render，update 后，这个状态就变成 false, clear 后恢复
             */

/**
             * @private
             * 缓存图形的 Map
             */

/**
             * @private 是否正在更新
             * @type {false}
             */

/**
             * @private 组件或者图形是否允许注册
             * @type {false}
             */

/**
             * tooltip 限制的区域
             * @type {Region}
             */

/**
             * 中心点
             * @type {object}
             */

/**
             * 垂直于坐标轴方向的因子，决定文本、title、tickLine 在坐标轴的哪一侧
             */

/**
             * 布局方式： horizontal，vertical
             * @type {String}
             */

/**
             * 当用户设置的 callback 返回 null 时, 应该返回默认 callback 中的值
             */

/**
             * 文本标签的配置项
             */

/**
             * 栅格线是否封闭
             * @type {true}
             */

/**
             * 水平情况下的滑块，上面顶点处是 x,y
             *  /   \
             * | | | |
             * | | | |
             *  -----
             */

/**
             * 竖直情况下的滑块 handler，左侧顶点是 x,y
             *  /----|
             *    -- |
             *    -- |
             *  \----|
             */

/**
             * 结束点, x, y
             * @type {object}
             */

/**
             * 起始点, x, y
             * @type {object}
             */

/**
           *
           * @param {function} fn - 自定义模版 url processor
           *
           *
           * fn 定义
           *
           * param {string} url - 待处理的模版 url
           *
           * returns {Object} 模版处理结果
           * @property {string} url  - 模版下载地址
           * @property {string} name - 模版名称，模版内容中 d_tpl 的 key 值
           * @property {number} version - 模版版本号
           */

/**
           * options
           * 
           * update 或重新解析模版时还会触发 parser 404, view 404，不要重复上报错误了
           * 
           * {
           *   type: ERROR_PARSER_404,
           *   templateName: options._tplName,
           *   parser: name
           * } 
           */

/**
           * 上报错误信息，并触发额外监听，由于jsTracker只接受string，因此stringfy后传入，后续处理再行在odps中解析
           * @param {Error} error - 原始错误对象
           * @param {Object.<string, string>} options - 额外信息对象
           */

/**
           * 创建长按事件的处理函数
           * @param {domEl} element dom节点
           * @param {event} touch 触摸事件对象
           */

/**
           * 增加一个模版到下载队列并立即开始下载
           * @param {string} url - 模版url
           */

/**
           * 数据埋点
           * 
           * @param {string} type - 数据类型
           * @param {Object.<string, string>|string} msg - 消息内容
           * @param {Object.<string, string>} options - 消息内容
           */

/**
           * 更新数据，并驱动目标组件重渲染
           * @param {string} name - 关系名称
           * @param {Object.<string, string>} dataMap - 数据集合，key对应relation的key，value为需要设置的数据
           */

/**
           * 绑定组件关系
           * 
           * @param {Object} context - 目标组件实例上下文
           * @param {string} name - 关系名称
           * @param {Object.<string, string>} relation - 关系描述，prop可以对应目标组件的实例内部变量或者state
           */

/**
           * 自行捕获组件报错
           * @param {Function} callback - 回调函数
           */

/**
           * 获取已经绑定的目标组件实例
           * @param {string} name - 关系名称
           */

/**
           * 获取模版缓存内容
           * @param {ProcessedTemplateInfo} template - 模版信息
           */

/**
           * 设置模版缓存
           * @param {TemplateInfo[]} tplList - 缓存列表
           */

/**
         * @example
         *
         * // 仅使用百分比或像素值
         * // 横向间隔为 10%，纵向间隔为 10%
         * ['10%', '10%']
         * // 横向间隔为 10px，纵向间隔为 10px
         * [10, 10]
         *
         * // 同时使用百分比和像素值
         * ['10%', 10]
         * // 横向间隔为 10%，纵向间隔为 10px
         */

/**
         * @protected
         * 图形属性
         * @type {ShapeAttrs}
         */

/**
         * changed​Touches对象用于处理多指控制的场景，且在不同的事件中有对应的处理逻辑
         * 对于 touchstart 事件, 这个 TouchList 对象列出在此次事件中新增加的触点。
         * 对于 touchmove 事件，列出和上一次事件相比较，发生了变化的触点。
         * 对于touchend事件，changedTouches 是已经从触摸面的离开的触点的集合（也就是说，手指已经离开了屏幕/触摸面）
         */

/**
         * ratio * num + spacing * (num - 1) = 1
         * => ratio = (1 - (spacing * (num - 1))) / num
         *          = (1 + spacing) / num - spacing
         *
         * num 对应 cols/rows
         * spacing 对应 xSpacing/ySpacing
         */

/**
         * view、parser 缺失、模版下载失败等错误默认抛给 window.onerror
         * 考虑到 jserror 治理，提供此开关，将错误上报到业务监控而不是 jserror
         */

/**
         * when container size changed, change chart size props, and re-render.
         */

/**
         * 不使用模版的 localstorage 缓存
         */

/**
         * 事件工厂函数，on方法是为了保持和原有事件机制相同的api
         */

/**
         * 事件结束时的触发图形
         * @type {IShape}
         */

/**
         * 关闭 textview 的 linebreakmode: char 的字符截断功能
         */

/**
         * 关闭事件绑定，业务层自己处理
         * 千牛 pc 场景，将 dx 渲染结果通过 html 字符串缓存
         */

/**
         * 图片不做优化，使用原图
         */

/**
         * 在支持 css grid 的设备上，优先使用 grid 实现的 FrameLayout 等基础布局
         * chrome57+，android 8.0+，ios10+
         */

/**
         * 委托事件监听对象的代理对象，即 ev.delegateObject = ev.currentTarget.get('delegateObject')
         * @type {object}
         */

/**
         * 委托对象
         * @type {object}
         */

/**
         * 定时器
         * @type {d3Timer.Timer}
         */

/**
         * 度量的类型
         */

/**
         * 开始触发事件的图形
         * @type {IShape}
         */

/**
         * 强制使用 pc 模式
         * 部分 windows 设备 gesture 组件有问题，通过开关绕过
         */

/**
         * 当前时间
         * @type {number}
         */

/**
         * 性能埋点采样率
         */

/**
         * 执行动画的元素列表
         * @type {IElement[]}
         */

/**
         * 找到两个结点共同的最小根结点
         * 如果跟结点不存在，则返回null
         *
         * @param  {Element} el1 第一个结点
         * @param  {Element} el2 第二个结点
         * @return {Element}     根结点
         */

/**
         * 捕获touchcancel事件
         *
         * 1. 如果当前触点数为2，则触发dualtouchend手势
         *
         * 2. 遍历每个触点：
         *  如果处于panning状态，则触发panend手势
         *
         * 3. 解绑定所有相关事件
         *
         * @event
         * @param  {event} event
         */

/**
         * 捕获touchend事件
         *
         * 1. 如果当前触点数为2，则触发dualtouchend手势
         *
         * 2. 遍历每个触点：
         * > 如果处于tapping状态，则触发tap手势
         * 如果之前300毫秒出现过tap手势，则升级为doubletap手势
         * > 如果处于panning状态，则根据滑出的速度，触发panend/flick手势
         *
         * 3. 解绑定所有相关事件
         *
         * @event
         * @param  {event} event
         */

/**
         * 捕获touchmove事件，处理pan和dual的相关手势
         *
         * 1. 遍历每个触点：
         * 如果触点之前处于tapping状态，且位移超过10像素，则认定为进入panning状态
         * 先触发panstart手势，然后根据移动的方向选择性触发horizontalpanstart或verticalpanstart手势
         * 如果触点之前处于panning状态，则根据pan的初始方向触发horizontalpan或verticalpan手势
         *
         * 2. 如果当前触点数为2，则计算出几何变换的各项参数，触发dualtouch手势
         *
         * @event
         * @param  {event} event
         */

/**
         * 捕获touchstart事件，将每一个新增的触点添加到gestrues
         * 如果之前尚无被记录的触点，则绑定touchmove, touchend, touchcancel事件
         *
         * 新增触点默认处于tapping状态
         * 500毫秒之后如果还处于tapping状态，则触发longTap手势
         * 如果触点数为2，则触发dualtouchstart手势，该手势的目标结点为两个触点共同的最小根结点
         *
         * @event
         * @param  {event} event
         */

/**
         * 是否作用于当前 view 的 siblings，默认是 false 仅作用于自己
         */

/**
         * 是否允许冒泡
         * @type {boolean}
         */

/**
         * 是否分类类型的度量
         */

/**
         * 是否受 element 的数据影响，还是受包围盒的影响
         */

/**
         * 是否开启layout任务切片，开启后有助于提升fps，但会出现渐进渲染效果（一个一个出现）
         * 
         * @memberof config
         */

/**
         * 是否开启linearLayout hack
         * hack主要为了解决两个问题，这个是flexbox无法完整模拟的：
         * 1. 宽度为0的子元素，不占位；如已经为不可见元素，则不添加
         * 2. match_parent hack: 如果 子view 绝对外层宽度大于或等于layout宽度，则增加宽度自动缩放
         * 
         * @memberof config
         */

/**
         * 是否是常量的度量，传入和传出一致
         */

/**
         * 是否线性度量，有linear, time 度量
         */

/**
         * 是否被销毁
         * @type {boolean}
         */

/**
         * 是否连续类型的度量，linear,time,log, pow, quantile, quantize 都支持
         */

/**
         * 是否阻止了原生事件
         * @type {boolean}
         */

/**
         * 是否阻止传播（向上冒泡）
         * @type {boolean}
         */

/**
         * 模版延迟渲染
         */

/**
         * 清除测量
         */

/**
         * 滑块滑动的时候出发
         * @param v
         */

/**
         * 状态名称
         */

/**
         * 监听对象
         * @type {object}
         */

/**
         * 自动化测试模式，需要增加一些无障碍字段标识
         */

/**
         * 自定义上报信息
         * @param {String} extraInfo - 全局附加上报信息
         * @param {Boolean} defaultReport - 是否开启默认上报
         */

/**
         * 范围过滤生效的字段/维度，可以是 x, y
         */

/**
         * 触发一个事件
         *
         * @param  {Element} $el 目标结点
         * @param  {string}  eventName    事件类型
         * @param  {object}  extra   对事件对象的扩展
         */

/**
         * 触发事件之后
         * @param evt
         */

/**
         * 触发事件的图形
         * @type {IShape}
         */

/**
         * 触发对象
         * @type {object}
         */

/**
         * 触发画布更新的三种 changeType
         * 1. attr: 修改画布的绘图属性
         * 2. sort: 画布排序，图形的层次会发生变化
         * 3. changeSize: 改变画布大小
         */

/**
         * 计算变换效果
         * 假设坐标系上有4个点ABCD
         * > 旋转：从AB旋转到CD的角度
         * > 缩放：从AB长度变换到CD长度的比例
         * > 位移：从A点位移到C点的横纵位移
         *
         * @param  {number} x1 上述第1个点的横坐标
         * @param  {number} y1 上述第1个点的纵坐标
         * @param  {number} x2 上述第2个点的横坐标
         * @param  {number} y2 上述第2个点的纵坐标
         * @param  {number} x3 上述第3个点的横坐标
         * @param  {number} y3 上述第3个点的纵坐标
         * @param  {number} x4 上述第4个点的横坐标
         * @param  {number} y4 上述第4个点的纵坐标
         * @return {object}    变换效果，形如{rotate, scale, translate[2], matrix[3][3]}
         */

/**
         * 部分浏览器内核（钉钉），whitespace: pre 仍然会换行，不符合规范
         * 通过此开关，强制使用 nowrap 代替 pre
         */

/**
         * 面积图是否从 0 基准线开始填充。
         * 1. 默认值为 `true`，表现如下：
         * ![image](https://gw.alipayobjects.com/zos/rmsportal/ZQqwUCczalrKqGgagOVp.png)
         * 2. 当值为 `false` 时，表现如下：
         * ![image](https://gw.alipayobjects.com/zos/rmsportal/yPswkaXvUpCYOdhocGwB.png)
         */

/**
       * DinamicX 模版管理
       *
       * @module Downloader
       */

/**
       * Template Class
       * 封装模版请求和渲染过程
       * 提供生命周期函数使得整体过程外部可控
       * 提供插件机制，使得外部可以对所有模版做通用控制
       *
       * @class Template
       * @property {Object} url - 模版Url
       * @property {JSON} tpl - 模版对应的节点树. 通过 '@ali/dinamic-template' 组件导出
       * @property {JSON} data - 模版数据
       * @property {string} className
       * @property {Object} style
       * @property {Object} extraAttrs
       * @property {function} componentWillBindEvent - 【控件】生命周期回调，绑定事件前触发
       * @property {function} componentFinishFirstPaint - 【控件】生命周期回调，控件首次渲染完成，可以拿到控件属性userId、dom element以及模版信息
       * @property {function} templateWillDownload - 【模版】生命周期回调，下载前触发
       * @property {function} templateFinishDownload - 【模版】生命周期回调，下载完成触发
       * @property {function} templateDownloadError - 【模版】生命周期回调，下载失败触发
       * @property {function} templateWillRender - 【模版】生命周期回调，渲染前触发
       * @property {function} templateFinishFirstPaint - 【模版】生命周期回调，首次渲染完成触发
       * @property {function} templateFinishUpdate - 【模版】生命周期回调，更新完成触发（2 - n次重渲染完成）
       * @property {string} [templateName] - 模版名称（如果传入url，会自动解析，如果是写死的模版，则推荐自行传入）
       * @property {string} [customTemplateId] - 特殊模版id
       * @example
       * import * as Dinamic from '@ali/dinamic';
       * import '@ali/dinamic-views';
       *
       * const url = xx;
       * const data = xx;
       *
       * const {Template, Fragment} = Dinamic;
       *
       * Dinamic.render((
       *   <Fragment>
       *     <Template url={url} data={data}></Template>
       *     <Template url={url} data={data}></Template>
       *   </Fragment>
       * ), document.querySelector('#app'));
       *
       */

/**
       * 本地图片缓存管理
       * 
       * @module LocalImage
       */

/**
       *  TODO: pieChartStyle 暂时没找到办法实现, 需要手动计算数值和百分比
       *  case: 要考虑选中和非选中态的表现
       *  case: 数据中存在重复的 type
       *  case: 数据项不是数字
       */

/**
       * @callback DinamicXEventHandler
       * @param {string[]} args - DinamicX 模版显式传递的参数
       * @param {Object} data - 当前模版数据
       * @param {Object} options - 配置信息，主要包含 tplId
       * @param {string} options.tplId - 当前模版ID
       * @param {Object} options.context - 当前绑定事件的控件的上下文
       * @param {Event} options.event - 原始事件对象
       */

/**
       * @param {string} xml - xml 模版源码
       * @param {function} [errorHandler] - 解析错误后的自定义 hanlder
       */

/**
       * @typedef CacheTemplateInfo
       * @type {Object}
       * @property {string} name - 模版名称
       * @property {string} content - 模版内容
       * @property {string} version - 模版版本
       */

/**
       * @typedef Plugin
       * @type {Object}
       * @property {function} componentWillBindEvent - 【控件】生命周期回调，绑定事件前触发
       * @property {function} componentFinishFirstPaint - 【控件】生命周期回调，控件首次渲染完成，可以拿到控件属性userId和dom element
       * @property {function} templateWillDownload - 【模版】生命周期回调，下载前触发
       * @property {function} templateFinishDownload - 【模版】生命周期回调，下载完成触发
       * @property {function} templateDownloadError - 【模版】生命周期回调，下载失败触发
       * @property {function} templateWillRender - 【模版】生命周期回调，渲染前触发
       * @property {function} templateFinishFirstPaint - 【模版】生命周期回调，首次渲染完成触发
       * @property {function} templateFinishUpdate - 【模版】生命周期回调，更新完成触发（2 - n次重渲染完成）
       */

/**
       * @typedef ProcessedTemplateInfo
       * @type {Object}
       * @property {string} url  - 模版url
       * @property {string} name - 模版名称
       * @property {string} version - 模版版本号
       * @property {string} env - 模版环境（>3.0.0 才有）
       * @property {boolean} shouldCombo - url是否需要combo
       */

/**
       * @typedef TemplateInfo - 模版信息
       * @type {Object}
       * @property {string} name    - 模版名称
       * @property {string} content - 模版内容
       * @property {string} version - 模版版本
       */

/**
       * DinamicX 事件处理
       * 
       * @module EventHandler
       */

/**
       * The minimal observable subscription method.
       * @param {Object} observer Any object that can be used as an observer.
       * The observer object should have a `next` method.
       * @returns {subscription} An object with an `unsubscribe` method that can
       * be used to unsubscribe the observable from the store, and prevent further
       * emission of values from the observable.
       */

/**
       * https://yuque.antfin-inc.com/dinamicx/document/gridlayout
       */

/**
       * https://yuque.antfin-inc.com/dinamicx/document/krm6bl
       */

/**
       * ls 设置模版缓存列表，覆盖式增量添加
       * 
       * @static
       * @param {Object.<string, TemplateInfo>} tplMap - 模版缓存列表
       */

/**
       * 做全局缓存和当前队列缓存
       * @type {Object.<string, CacheTemplateInfo>}
       */

/**
       * 内置常量表
       * 
       * @inner
       * @module Constant
       */

/**
       * 取模版的默认高度，延迟渲染 placeholder 使用
       */

/**
       * 增加模版插件
       *
       * @param {Plugin[]} list - 插件列表
       */

/**
       * 探测是否是 layout 的第一个子节点，根据 indexset 中的 id pid 判断
       * @param {*} props 
       */

/**
       * 注册 DinamicX 事件
       * 
       * @param {string} name - 事件名称
       * @param {DinamicXEventHandler} handler - 事件回调函数
       */

/**
       * 注册 DinamicX 控件
       * @param {string} name - 控件名称
       * @param {View} View - 控件实现类
       */

/**
       * 清理队列
       */

/**
       * 渲染管理
       *
       * @module View
       */

/**
       * 空组件，用于做为jsx外层包裹
       * 同 React.Fragment，preact无法使用
       * @class
       */

/**
       * 简单的错误处理
       */

/**
       * 获取下载完成的模版
       *
       * @param {string} tplName - 模版名称
       */

/**
       * 获取图片裁剪等优化参数
       * @param {string} width 
       * @param {string} height 
       * @param {string} imgUrl 
       * @returns {string}
       */

/**
       * 获取已注册的 DinamicX 事件
       * @param {string} name - 事件名称
       */

/**
       * 获取已注册的 DinamicX 控件
       * @param {string} name - 控件名称
       */

/**
       * 获取已设置的本地缓存图片
       * @param {string} name - 图片名称
       */

/**
       * 表达式管理
       *
       * @module Parser
       */

/**
       * 解析模版url
       *
       * @param {string} url - 模版url
       * @returns {ProcessedTemplateInfo} 模版解析结果
       *
       */

/**
       * 设置设备宽度，用于非全屏渲染
       * 默认会同时设定模版最大宽度CSS样式，可以在业务内通过样式覆盖掉
       *
       * @param {Number} width - 设备宽度
       */

/**
       * 设置一组本地缓存图片，可以支持url或者base64等格式
       * @param {Object.<string, string>} imageMap - 图片集合
       */

/**
       * 轻量级的跨组件数据驱动重渲染机制
       * 
       * @module Ravel
       */

/**
       * 过滤并启动下载队列
       * @param {ProcessedTemplateInfo} template - 即将下载的模版
       */

/**
       * 返回值结构控制
       */

/**
       * 通过 Url 创建 DinamicX View，提供自动模版链接聚合请求以及缓存功能
       * @inner
       * @param {JSON} tplNodeTree 模版对应的节点树. 通过 `@ali/dinamic-template` 组件导出
       * @param {JSON} data 模版数据
       * @param {Object} options  - 模版属性信息
       * @param {Object} options._tplId   - 模版id
       * @param {Object} options._context - 模版上下文
       * @param {Object} children 组件的子元素
       */

/**
      * 当前（2021 年 9 月）BitInt 的支持还不够好，Safari 要到 15 版本才支持，但当前我们还有大量的 9， 10， 11 等版本。
      * source: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getBigInt64
      * 
      * 由于 msgpack 的 integer 编码方式都是 big-endian ，这里简单使用 getInt32 + getUint32 来兼容 getBigInt64 API
      * source: https://github.com/msgpack/msgpack/blob/master/spec.md
      * 
      * 这会导致返回值在支持 BigInt 的浏览器上，返回 BigInt，不支持的浏览器上返回 Number 。类型不一致。
      * 当前这个库几乎仅被 mediaid 依赖，mediaid 中的 uid 可能是 int64 ，但端上解析 mediaid，实际不依赖这个字端，
      * 类型不一致，以及 Number 无法处理大于 int53 的问题，目前看起来还好。
      * 
      * 4294967296 === 2 ** 32 , 由于 IE 不支持 exponentiation operator (**) , 这里直接计算出来写上来。
      * source: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Exponentiation  
      */

/**
     *  p1 → p2
     *  ↑    ↓
     *  p0 ← p3
     *
     *  负数的情况，关键点会变成下面的形式
     *
     *  p0 ← p3               p2 ← p1
     *  ↓    ↑                ↓     ↑
     *  p1 → p2  --> (转置下)  p3 → p0
     */

/**
     * 0～1 points 转 画布 points
     * @param points 节点集合
     * @returns
     */

/**
     * @callback DinamicXEventChainHandler
     * @param {string[]} args - DinamicX 模版显式传递的参数
     * @param {Object} data - 当前模版数据
     * @param {Object} options - 配置信息，主要包含 tplId
     * @param {string} options.tplId - 当前模版ID
     * @param {Object} options.context - 当前绑定事件的控件的上下文
     * @param {Event} options.event - 原始事件对象
     */

/**
     * @deprecated
     * This method will be removed at G2 V4.1. Please use `getScale`.
     */

/**
     * @deprecated
     * This method will be removed at G2 V4.1. Replaced by {@link #coordinate()}
     */

/**
     * @deprecated
     * This method will be removed at G2 V4.1. Replaced by {@link #createView()}
     */

/**
     * @deprecated
     * This method will be removed at G2 V4.1. Replaced by {@link #data(data)}
     */

/**
     * @deprecated
     * This method will be removed at G2 V4.1. Replaced by {@link #guide()}
     */

/**
     * @desc 获取 label offset
     */

/**
     * @override
     * @desc 获取 label offset
     * polar & theta coordinate support「string」type, should transform to 「number」
     */

/**
     * @override
     * 获取 label 的位置
     * @param labelCfg
     * @param mappingData
     * @param index
     */

/**
     * @override
     * 获取 labelItems, 增加切片 percent
     * @param mapppingArray
     */

/**
     * @override
     * 获取文本的对齐方式
     * @param point
     */

/**
     * @override
     */

/**
     * @overrider 添加事件
     */

/**
     * @protected
     * 一些方法调用会引起画布变化
     * @param {ChangeType} changeType 改变的类型
     */

/**
     * @protected
     * 不同的图形自己实现是否在图形内部的逻辑，要判断边和填充区域
     * @param  {number}  refX 相对于图形的坐标 x
     * @param  {number}  refY 相对于图形的坐标 Y
     * @return {boolean} 点是否在图形内部
     */

/**
     * @protected
     * 修改画布对应的 DOM 的大小
     * @param {number} width  宽度
     * @param {number} height 高度
     */

/**
     * @protected
     * 初始化 DOM
     */

/**
     * @protected
     * 初始化事件
     */

/**
     * @protected
     * 初始化动画
     */

/**
     * @protected
     * 初始化容器
     */

/**
     * @protected
     * 初始化属性，有些属性需要加工
     * @param {object} attrs 属性值
     */

/**
     * @protected
     * 初始化时间轴
     */

/**
     * @protected
     * 初始化绑定的事件
     */

/**
     * @protected
     * 初始化，用于具体的组件继承
     */

/**
     * @protected
     * 在组件上添加分组，主要解决 isReigeter 的问题
     * @param {IGroup} parent 父元素
     * @param {object} cfg    分组的配置项
     */

/**
     * @protected
     * 在组件上添加图形，主要解决 isReigeter 的问题
     * @param {IGroup} parent 父元素
     * @param {object} cfg    分组的配置项
     */

/**
     * @protected
     * 填充图形
     * @param {CanvasRenderingContext2D} context context 上下文
     */

/**
     * @protected
     * 属性值发生改变
     * @param {string} name 属性名
     * @param {any} value 属性值
     * @param {any} originValue 属性值
     */

/**
     * @protected
     * 清理 DOM
     */

/**
     * @protected
     * 清理事件
     */

/**
     * @protected
     * 清理所有的事件
     */

/**
     * @protected
     * 清理缓存的 bbox
     */

/**
     * @protected
     * 绘制图形的路径
     * @param {CanvasRenderingContext2D} context 上下文
     */

/**
     * @protected
     * 绘制图形的路径
     * @param {Defs} context 上下文
     * @param {ShapeAttrs} targetAttrs 渲染的目标属性
     */

/**
     * @protected
     * 绘制图形边框
     * @param {CanvasRenderingContext2D} context context 上下文
     */

/**
     * @protected
     * 获取默认的属相
     */

/**
     * @protected
     * 获取默认的矩阵
     * @returns {number[]|null} 默认的矩阵
     */

/**
     * @protected
     * 销毁 DOM 容器
     */

/**
     * @protected
     * 默认的配置项
     * @returns {object} 默认的配置项
     */

/**
     * @protected
     */

/**
     * Active Element
     */

/**
     * Call the interaction based on the interaction name
     *
     * ```ts
     * view.interaction('my-interaction', { extra: 'hello world' });
     * ```
     * 详细文档可以参考：https://g2.antv.vision/zh/docs/api/general/interaction
     * @param name interaction name
     * @param cfg interaction config
     * @returns
     */

/**
     * Clears all handlers and unbinds events
     */

/**
     * Convert an object into an observable sequence of [key, value] pairs
     * using an optional IScheduler to enumerate the object.
     *
     * @example <caption>Converts a javascript object to an Observable</caption>
     * var obj = {
     *   foo: 42,
     *   bar: 56,
     *   baz: 78
     * };
     *
     * var source = Rx.Observable.pairs(obj);
     *
     * var subscription = source.subscribe(
     *   function (x) {
     *     console.log('Next: %s', x);
     *   },
     *   function (err) {
     *     console.log('Error: %s', err);
     *   },
     *   function () {
     *     console.log('Completed');
     *   });
     *
     * @param {Object} obj The object to inspect and turn into an
     * Observable sequence.
     * @param {Scheduler} [scheduler] An optional IScheduler to run the
     * enumeration of the input sequence on.
     * @returns {(Observable<Array<string | T>>)} An observable sequence of
     * [key, value] pairs from the object.
     */

/**
     * Converts a Node.js-style callback API to a function that returns an
     * Observable.
     *
     * <span class="informal">It's just like {@link bindCallback}, but the
     * callback is expected to be of type `callback(error, result)`.</span>
     *
     * `bindNodeCallback` is not an operator because its input and output are not
     * Observables. The input is a function `func` with some parameters, but the
     * last parameter must be a callback function that `func` calls when it is
     * done. The callback function is expected to follow Node.js conventions,
     * where the first argument to the callback is an error object, signaling
     * whether call was successful. If that object is passed to callback, it means
     * something went wrong.
     *
     * The output of `bindNodeCallback` is a function that takes the same
     * parameters as `func`, except the last one (the callback). When the output
     * function is called with arguments, it will return an Observable.
     * If `func` calls its callback with error parameter present, Observable will
     * error with that value as well. If error parameter is not passed, Observable will emit
     * second parameter. If there are more parameters (third and so on),
     * Observable will emit an array with all arguments, except first error argument.
     *
     * Optionally `bindNodeCallback` accepts selector function, which allows you to
     * make resulting Observable emit value computed by selector, instead of regular
     * callback arguments. It works similarly to {@link bindCallback} selector, but
     * Node.js-style error argument will never be passed to that function.
     *
     * Note that `func` will not be called at the same time output function is,
     * but rather whenever resulting Observable is subscribed. By default call to
     * `func` will happen synchronously after subscription, but that can be changed
     * with proper {@link Scheduler} provided as optional third parameter. Scheduler
     * can also control when values from callback will be emitted by Observable.
     * To find out more, check out documentation for {@link bindCallback}, where
     * Scheduler works exactly the same.
     *
     * As in {@link bindCallback}, context (`this` property) of input function will be set to context
     * of returned function, when it is called.
     *
     * After Observable emits value, it will complete immediately. This means
     * even if `func` calls callback again, values from second and consecutive
     * calls will never appear on the stream. If you need to handle functions
     * that call callbacks multiple times, check out {@link fromEvent} or
     * {@link fromEventPattern} instead.
     *
     * Note that `bindNodeCallback` can be used in non-Node.js environments as well.
     * "Node.js-style" callbacks are just a convention, so if you write for
     * browsers or any other environment and API you use implements that callback style,
     * `bindNodeCallback` can be safely used on that API functions as well.
     *
     * Remember that Error object passed to callback does not have to be an instance
     * of JavaScript built-in `Error` object. In fact, it does not even have to an object.
     * Error parameter of callback function is interpreted as "present", when value
     * of that parameter is truthy. It could be, for example, non-zero number, non-empty
     * string or boolean `true`. In all of these cases resulting Observable would error
     * with that value. This means usually regular style callbacks will fail very often when
     * `bindNodeCallback` is used. If your Observable errors much more often then you
     * would expect, check if callback really is called in Node.js-style and, if not,
     * switch to {@link bindCallback} instead.
     *
     * Note that even if error parameter is technically present in callback, but its value
     * is falsy, it still won't appear in array emitted by Observable or in selector function.
     *
     *
     * @example <caption>Read a file from the filesystem and get the data as an Observable</caption>
     * import * as fs from 'fs';
     * var readFileAsObservable = Rx.Observable.bindNodeCallback(fs.readFile);
     * var result = readFileAsObservable('./roadNames.txt', 'utf8');
     * result.subscribe(x => console.log(x), e => console.error(e));
     *
     *
     * @example <caption>Use on function calling callback with multiple arguments</caption>
     * someFunction((err, a, b) => {
     *   console.log(err); // null
     *   console.log(a); // 5
     *   console.log(b); // "some string"
     * });
     * var boundSomeFunction = Rx.Observable.bindNodeCallback(someFunction);
     * boundSomeFunction()
     * .subscribe(value => {
     *   console.log(value); // [5, "some string"]
     * });
     *
     *
     * @example <caption>Use with selector function</caption>
     * someFunction((err, a, b) => {
     *   console.log(err); // undefined
     *   console.log(a); // "abc"
     *   console.log(b); // "DEF"
     * });
     * var boundSomeFunction = Rx.Observable.bindNodeCallback(someFunction, (a, b) => a + b);
     * boundSomeFunction()
     * .subscribe(value => {
     *   console.log(value); // "abcDEF"
     * });
     *
     *
     * @example <caption>Use on function calling callback in regular style</caption>
     * someFunction(a => {
     *   console.log(a); // 5
     * });
     * var boundSomeFunction = Rx.Observable.bindNodeCallback(someFunction);
     * boundSomeFunction()
     * .subscribe(
     *   value => {}             // never gets called
     *   err => console.log(err) // 5
     *);
     *
     *
     * @see {@link bindCallback}
     * @see {@link from}
     * @see {@link fromPromise}
     *
     * @param {function} func Function with a Node.js-style callback as the last parameter.
     * @param {function} [selector] A function which takes the arguments from the
     * callback and maps those to a value to emit on the output Observable.
     * @param {Scheduler} [scheduler] The scheduler on which to schedule the
     * callbacks.
     * @return {function(...params: *): Observable} A function which returns the
     * Observable that delivers the same values the Node.js callback would
     * deliver.
     * @static true
     * @name bindNodeCallback
     * @owner Observable
     */

/**
     * Converts a callback API to a function that returns an Observable.
     *
     * <span class="informal">Give it a function `f` of type `f(x, callback)` and
     * it will return a function `g` that when called as `g(x)` will output an
     * Observable.</span>
     *
     * `bindCallback` is not an operator because its input and output are not
     * Observables. The input is a function `func` with some parameters, the
     * last parameter must be a callback function that `func` calls when it is
     * done.
     *
     * The output of `bindCallback` is a function that takes the same parameters
     * as `func`, except the last one (the callback). When the output function
     * is called with arguments it will return an Observable. If function `func`
     * calls its callback with one argument the Observable will emit that value.
     * If on the other hand the callback is called with multiple values the resulting
     * Observable will emit an array with said values as arguments.
     *
     * It is very important to remember that input function `func` is not called
     * when the output function is, but rather when the Observable returned by the output
     * function is subscribed. This means if `func` makes an AJAX request, that request
     * will be made every time someone subscribes to the resulting Observable, but not before.
     *
     * Optionally, a selector function can be passed to `bindObservable`. The selector function
     * takes the same arguments as the callback and returns the value that will be emitted by the Observable.
     * Even though by default multiple arguments passed to callback appear in the stream as an array
     * the selector function will be called with arguments directly, just as the callback would.
     * This means you can imagine the default selector (when one is not provided explicitly)
     * as a function that aggregates all its arguments into an array, or simply returns first argument
     * if there is only one.
     *
     * The last optional parameter - {@link Scheduler} - can be used to control when the call
     * to `func` happens after someone subscribes to Observable, as well as when results
     * passed to callback will be emitted. By default, the subscription to  an Observable calls `func`
     * synchronously, but using `Scheduler.async` as the last parameter will defer the call to `func`,
     * just like wrapping the call in `setTimeout` with a timeout of `0` would. If you use the async Scheduler
     * and call `subscribe` on the output Observable all function calls that are currently executing
     * will end before `func` is invoked.
     *
     * By default results passed to the callback are emitted immediately after `func` invokes the callback.
     * In particular, if the callback is called synchronously the subscription of the resulting Observable
     * will call the `next` function synchronously as well.  If you want to defer that call,
     * you may use `Scheduler.async` just as before.  This means that by using `Scheduler.async` you can
     * ensure that `func` always calls its callback asynchronously, thus avoiding terrifying Zalgo.
     *
     * Note that the Observable created by the output function will always emit a single value
     * and then complete immediately. If `func` calls the callback multiple times, values from subsequent
     * calls will not appear in the stream. If you need to listen for multiple calls,
     *  you probably want to use {@link fromEvent} or {@link fromEventPattern} instead.
     *
     * If `func` depends on some context (`this` property) and is not already bound the context of `func`
     * will be the context that the output function has at call time. In particular, if `func`
     * is called as a method of some objec and if `func` is not already bound, in order to preserve the context
     * it is recommended that the context of the output function is set to that object as well.
     *
     * If the input function calls its callback in the "node style" (i.e. first argument to callback is
     * optional error parameter signaling whether the call failed or not), {@link bindNodeCallback}
     * provides convenient error handling and probably is a better choice.
     * `bindCallback` will treat such functions the same as any other and error parameters
     * (whether passed or not) will always be interpreted as regular callback argument.
     *
     *
     * @example <caption>Convert jQuery's getJSON to an Observable API</caption>
     * // Suppose we have jQuery.getJSON('/my/url', callback)
     * var getJSONAsObservable = Rx.Observable.bindCallback(jQuery.getJSON);
     * var result = getJSONAsObservable('/my/url');
     * result.subscribe(x => console.log(x), e => console.error(e));
     *
     *
     * @example <caption>Receive an array of arguments passed to a callback</caption>
     * someFunction((a, b, c) => {
     *   console.log(a); // 5
     *   console.log(b); // 'some string'
     *   console.log(c); // {someProperty: 'someValue'}
     * });
     *
     * const boundSomeFunction = Rx.Observable.bindCallback(someFunction);
     * boundSomeFunction().subscribe(values => {
     *   console.log(values) // [5, 'some string', {someProperty: 'someValue'}]
     * });
     *
     *
     * @example <caption>Use bindCallback with a selector function</caption>
     * someFunction((a, b, c) => {
     *   console.log(a); // 'a'
     *   console.log(b); // 'b'
     *   console.log(c); // 'c'
     * });
     *
     * const boundSomeFunction = Rx.Observable.bindCallback(someFunction, (a, b, c) => a + b + c);
     * boundSomeFunction().subscribe(value => {
     *   console.log(value) // 'abc'
     * });
     *
     *
     * @example <caption>Compare behaviour with and without async Scheduler</caption>
     * function iCallMyCallbackSynchronously(cb) {
     *   cb();
     * }
     *
     * const boundSyncFn = Rx.Observable.bindCallback(iCallMyCallbackSynchronously);
     * const boundAsyncFn = Rx.Observable.bindCallback(iCallMyCallbackSynchronously, null, Rx.Scheduler.async);
     *
     * boundSyncFn().subscribe(() => console.log('I was sync!'));
     * boundAsyncFn().subscribe(() => console.log('I was async!'));
     * console.log('This happened...');
     *
     * // Logs:
     * // I was sync!
     * // This happened...
     * // I was async!
     *
     *
     * @example <caption>Use bindCallback on an object method</caption>
     * const boundMethod = Rx.Observable.bindCallback(someObject.methodWithCallback);
     * boundMethod.call(someObject) // make sure methodWithCallback has access to someObject
     * .subscribe(subscriber);
     *
     *
     * @see {@link bindNodeCallback}
     * @see {@link from}
     * @see {@link fromPromise}
     *
     * @param {function} func A function with a callback as the last parameter.
     * @param {function} [selector] A function which takes the arguments from the
     * callback and maps them to a value that is emitted on the output Observable.
     * @param {Scheduler} [scheduler] The scheduler on which to schedule the
     * callbacks.
     * @return {function(...params: *): Observable} A function which returns the
     * Observable that delivers the same values the callback would deliver.
     * @static true
     * @name bindCallback
     * @owner Observable
     */

/**
     * Creates an Observable from an API based on addHandler/removeHandler
     * functions.
     *
     * <span class="informal">Converts any addHandler/removeHandler API to an
     * Observable.</span>
     *
     * <img src="./img/fromEventPattern.png" width="100%">
     *
     * Creates an Observable by using the `addHandler` and `removeHandler`
     * functions to add and remove the handlers, with an optional selector
     * function to project the event arguments to a result. The `addHandler` is
     * called when the output Observable is subscribed, and `removeHandler` is
     * called when the Subscription is unsubscribed.
     *
     * @example <caption>Emits clicks happening on the DOM document</caption>
     * function addClickHandler(handler) {
     *   document.addEventListener('click', handler);
     * }
     *
     * function removeClickHandler(handler) {
     *   document.removeEventListener('click', handler);
     * }
     *
     * var clicks = Rx.Observable.fromEventPattern(
     *   addClickHandler,
     *   removeClickHandler
     * );
     * clicks.subscribe(x => console.log(x));
     *
     * @see {@link from}
     * @see {@link fromEvent}
     *
     * @param {function(handler: Function): any} addHandler A function that takes
     * a `handler` function as argument and attaches it somehow to the actual
     * source of events.
     * @param {function(handler: Function, signal?: any): void} [removeHandler] An optional function that
     * takes a `handler` function as argument and removes it in case it was
     * previously attached using `addHandler`. if addHandler returns signal to teardown when remove,
     * removeHandler function will forward it.
     * @param {function(...args: any): T} [selector] An optional function to
     * post-process results. It takes the arguments from the event handler and
     * should return a single value.
     * @return {Observable<T>}
     * @static true
     * @name fromEventPattern
     * @owner Observable
     */

/**
     * Creates an Observable that emits a sequence of numbers within a specified
     * range.
     *
     * <span class="informal">Emits a sequence of numbers in a range.</span>
     *
     * <img src="./img/range.png" width="100%">
     *
     * `range` operator emits a range of sequential integers, in order, where you
     * select the `start` of the range and its `length`. By default, uses no
     * IScheduler and just delivers the notifications synchronously, but may use
     * an optional IScheduler to regulate those deliveries.
     *
     * @example <caption>Emits the numbers 1 to 10</caption>
     * var numbers = Rx.Observable.range(1, 10);
     * numbers.subscribe(x => console.log(x));
     *
     * @see {@link timer}
     * @see {@link interval}
     *
     * @param {number} [start=0] The value of the first integer in the sequence.
     * @param {number} [count=0] The number of sequential integers to generate.
     * @param {Scheduler} [scheduler] A {@link IScheduler} to use for scheduling
     * the emissions of the notifications.
     * @return {Observable} An Observable of numbers that emits a finite range of
     * sequential integers.
     * @static true
     * @name range
     * @owner Observable
     */

/**
     * Creates an Observable that emits events of a specific type coming from the
     * given event target.
     *
     * <span class="informal">Creates an Observable from DOM events, or Node.js
     * EventEmitter events or others.</span>
     *
     * <img src="./img/fromEvent.png" width="100%">
     *
     * `fromEvent` accepts as a first argument event target, which is an object with methods
     * for registering event handler functions. As a second argument it takes string that indicates
     * type of event we want to listen for. `fromEvent` supports selected types of event targets,
     * which are described in detail below. If your event target does not match any of the ones listed,
     * you should use {@link fromEventPattern}, which can be used on arbitrary APIs.
     * When it comes to APIs supported by `fromEvent`, their methods for adding and removing event
     * handler functions have different names, but they all accept a string describing event type
     * and function itself, which will be called whenever said event happens.
     *
     * Every time resulting Observable is subscribed, event handler function will be registered
     * to event target on given event type. When that event fires, value
     * passed as a first argument to registered function will be emitted by output Observable.
     * When Observable is unsubscribed, function will be unregistered from event target.
     *
     * Note that if event target calls registered function with more than one argument, second
     * and following arguments will not appear in resulting stream. In order to get access to them,
     * you can pass to `fromEvent` optional project function, which will be called with all arguments
     * passed to event handler. Output Observable will then emit value returned by project function,
     * instead of the usual value.
     *
     * Remember that event targets listed below are checked via duck typing. It means that
     * no matter what kind of object you have and no matter what environment you work in,
     * you can safely use `fromEvent` on that object if it exposes described methods (provided
     * of course they behave as was described above). So for example if Node.js library exposes
     * event target which has the same method names as DOM EventTarget, `fromEvent` is still
     * a good choice.
     *
     * If the API you use is more callback then event handler oriented (subscribed
     * callback function fires only once and thus there is no need to manually
     * unregister it), you should use {@link bindCallback} or {@link bindNodeCallback}
     * instead.
     *
     * `fromEvent` supports following types of event targets:
     *
     * **DOM EventTarget**
     *
     * This is an object with `addEventListener` and `removeEventListener` methods.
     *
     * In the browser, `addEventListener` accepts - apart from event type string and event
     * handler function arguments - optional third parameter, which is either an object or boolean,
     * both used for additional configuration how and when passed function will be called. When
     * `fromEvent` is used with event target of that type, you can provide this values
     * as third parameter as well.
     *
     * **Node.js EventEmitter**
     *
     * An object with `addListener` and `removeListener` methods.
     *
     * **JQuery-style event target**
     *
     * An object with `on` and `off` methods
     *
     * **DOM NodeList**
     *
     * List of DOM Nodes, returned for example by `document.querySelectorAll` or `Node.childNodes`.
     *
     * Although this collection is not event target in itself, `fromEvent` will iterate over all Nodes
     * it contains and install event handler function in every of them. When returned Observable
     * is unsubscribed, function will be removed from all Nodes.
     *
     * **DOM HtmlCollection**
     *
     * Just as in case of NodeList it is a collection of DOM nodes. Here as well event handler function is
     * installed and removed in each of elements.
     *
     *
     * @example <caption>Emits clicks happening on the DOM document</caption>
     * var clicks = Rx.Observable.fromEvent(document, 'click');
     * clicks.subscribe(x => console.log(x));
     *
     * // Results in:
     * // MouseEvent object logged to console every time a click
     * // occurs on the document.
     *
     *
     * @example <caption>Use addEventListener with capture option</caption>
     * var clicksInDocument = Rx.Observable.fromEvent(document, 'click', true); // note optional configuration parameter
     *                                                                          // which will be passed to addEventListener
     * var clicksInDiv = Rx.Observable.fromEvent(someDivInDocument, 'click');
     *
     * clicksInDocument.subscribe(() => console.log('document'));
     * clicksInDiv.subscribe(() => console.log('div'));
     *
     * // By default events bubble UP in DOM tree, so normally
     * // when we would click on div in document
     * // "div" would be logged first and then "document".
     * // Since we specified optional `capture` option, document
     * // will catch event when it goes DOWN DOM tree, so console
     * // will log "document" and then "div".
     *
     * @see {@link bindCallback}
     * @see {@link bindNodeCallback}
     * @see {@link fromEventPattern}
     *
     * @param {EventTargetLike} target The DOM EventTarget, Node.js
     * EventEmitter, JQuery-like event target, NodeList or HTMLCollection to attach the event handler to.
     * @param {string} eventName The event name of interest, being emitted by the
     * `target`.
     * @param {EventListenerOptions} [options] Options to pass through to addEventListener
     * @param {SelectorMethodSignature<T>} [selector] An optional function to
     * post-process results. It takes the arguments from the event handler and
     * should return a single value.
     * @return {Observable<T>}
     * @static true
     * @name fromEvent
     * @owner Observable
     */

/**
     * Creates an Observable that emits no items to the Observer and immediately
     * emits an error notification.
     *
     * <span class="informal">Just emits 'error', and nothing else.
     * </span>
     *
     * <img src="./img/throw.png" width="100%">
     *
     * This static operator is useful for creating a simple Observable that only
     * emits the error notification. It can be used for composing with other
     * Observables, such as in a {@link mergeMap}.
     *
     * @example <caption>Emit the number 7, then emit an error.</caption>
     * var result = Rx.Observable.throw(new Error('oops!')).startWith(7);
     * result.subscribe(x => console.log(x), e => console.error(e));
     *
     * @example <caption>Map and flatten numbers to the sequence 'a', 'b', 'c', but throw an error for 13</caption>
     * var interval = Rx.Observable.interval(1000);
     * var result = interval.mergeMap(x =>
     *   x === 13 ?
     *     Rx.Observable.throw('Thirteens are bad') :
     *     Rx.Observable.of('a', 'b', 'c')
     * );
     * result.subscribe(x => console.log(x), e => console.error(e));
     *
     * @see {@link create}
     * @see {@link empty}
     * @see {@link never}
     * @see {@link of}
     *
     * @param {any} error The particular Error to pass to the error notification.
     * @param {Scheduler} [scheduler] A {@link IScheduler} to use for scheduling
     * the emission of the error notification.
     * @return {Observable} An error Observable: emits only the error notification
     * using the given error argument.
     * @static true
     * @name throw
     * @owner Observable
     */

/**
     * Creates an Observable that emits no items to the Observer.
     *
     * <span class="informal">An Observable that never emits anything.</span>
     *
     * <img src="./img/never.png" width="100%">
     *
     * This static operator is useful for creating a simple Observable that emits
     * neither values nor errors nor the completion notification. It can be used
     * for testing purposes or for composing with other Observables. Please note
     * that by never emitting a complete notification, this Observable keeps the
     * subscription from being disposed automatically. Subscriptions need to be
     * manually disposed.
     *
     * @example <caption>Emit the number 7, then never emit anything else (not even complete).</caption>
     * function info() {
     *   console.log('Will not be called');
     * }
     * var result = Rx.Observable.never().startWith(7);
     * result.subscribe(x => console.log(x), info, info);
     *
     * @see {@link create}
     * @see {@link empty}
     * @see {@link of}
     * @see {@link throw}
     *
     * @return {Observable} A "never" Observable: never emits anything.
     * @static true
     * @name never
     * @owner Observable
     */

/**
     * Creates an Observable that emits sequential numbers every specified
     * interval of time, on a specified IScheduler.
     *
     * <span class="informal">Emits incremental numbers periodically in time.
     * </span>
     *
     * <img src="./img/interval.png" width="100%">
     *
     * `interval` returns an Observable that emits an infinite sequence of
     * ascending integers, with a constant interval of time of your choosing
     * between those emissions. The first emission is not sent immediately, but
     * only after the first period has passed. By default, this operator uses the
     * `async` IScheduler to provide a notion of time, but you may pass any
     * IScheduler to it.
     *
     * @example <caption>Emits ascending numbers, one every second (1000ms)</caption>
     * var numbers = Rx.Observable.interval(1000);
     * numbers.subscribe(x => console.log(x));
     *
     * @see {@link timer}
     * @see {@link delay}
     *
     * @param {number} [period=0] The interval size in milliseconds (by default)
     * or the time unit determined by the scheduler's clock.
     * @param {Scheduler} [scheduler=async] The IScheduler to use for scheduling
     * the emission of values, and providing a notion of "time".
     * @return {Observable} An Observable that emits a sequential number each time
     * interval.
     * @static true
     * @name interval
     * @owner Observable
     */

/**
     * Creates an Observable that starts emitting after an `initialDelay` and
     * emits ever increasing numbers after each `period` of time thereafter.
     *
     * <span class="informal">Its like {@link interval}, but you can specify when
     * should the emissions start.</span>
     *
     * <img src="./img/timer.png" width="100%">
     *
     * `timer` returns an Observable that emits an infinite sequence of ascending
     * integers, with a constant interval of time, `period` of your choosing
     * between those emissions. The first emission happens after the specified
     * `initialDelay`. The initial delay may be a {@link Date}. By default, this
     * operator uses the `async` IScheduler to provide a notion of time, but you
     * may pass any IScheduler to it. If `period` is not specified, the output
     * Observable emits only one value, `0`. Otherwise, it emits an infinite
     * sequence.
     *
     * @example <caption>Emits ascending numbers, one every second (1000ms), starting after 3 seconds</caption>
     * var numbers = Rx.Observable.timer(3000, 1000);
     * numbers.subscribe(x => console.log(x));
     *
     * @example <caption>Emits one number after five seconds</caption>
     * var numbers = Rx.Observable.timer(5000);
     * numbers.subscribe(x => console.log(x));
     *
     * @see {@link interval}
     * @see {@link delay}
     *
     * @param {number|Date} initialDelay The initial delay time to wait before
     * emitting the first value of `0`.
     * @param {number} [period] The period of time between emissions of the
     * subsequent numbers.
     * @param {Scheduler} [scheduler=async] The IScheduler to use for scheduling
     * the emission of values, and providing a notion of "time".
     * @return {Observable} An Observable that emits a `0` after the
     * `initialDelay` and ever increasing numbers after each `period` of time
     * thereafter.
     * @static true
     * @name timer
     * @owner Observable
     */

/**
     * Creates an Observable that, on subscribe, calls an Observable factory to
     * make an Observable for each new Observer.
     *
     * <span class="informal">Creates the Observable lazily, that is, only when it
     * is subscribed.
     * </span>
     *
     * <img src="./img/defer.png" width="100%">
     *
     * `defer` allows you to create the Observable only when the Observer
     * subscribes, and create a fresh Observable for each Observer. It waits until
     * an Observer subscribes to it, and then it generates an Observable,
     * typically with an Observable factory function. It does this afresh for each
     * subscriber, so although each subscriber may think it is subscribing to the
     * same Observable, in fact each subscriber gets its own individual
     * Observable.
     *
     * @example <caption>Subscribe to either an Observable of clicks or an Observable of interval, at random</caption>
     * var clicksOrInterval = Rx.Observable.defer(function () {
     *   if (Math.random() > 0.5) {
     *     return Rx.Observable.fromEvent(document, 'click');
     *   } else {
     *     return Rx.Observable.interval(1000);
     *   }
     * });
     * clicksOrInterval.subscribe(x => console.log(x));
     *
     * // Results in the following behavior:
     * // If the result of Math.random() is greater than 0.5 it will listen
     * // for clicks anywhere on the "document"; when document is clicked it
     * // will log a MouseEvent object to the console. If the result is less
     * // than 0.5 it will emit ascending numbers, one every second(1000ms).
     *
     * @see {@link create}
     *
     * @param {function(): SubscribableOrPromise} observableFactory The Observable
     * factory function to invoke for each Observer that subscribes to the output
     * Observable. May also return a Promise, which will be converted on the fly
     * to an Observable.
     * @return {Observable} An Observable whose Observers' subscriptions trigger
     * an invocation of the given Observable factory function.
     * @static true
     * @name defer
     * @owner Observable
     */

/**
     * Creates an observable for an Ajax request with either a request object with
     * url, headers, etc or a string for a URL.
     *
     * @example
     * source = Rx.Observable.ajax('/products');
     * source = Rx.Observable.ajax({ url: 'products', method: 'GET' });
     *
     * @param {string|Object} request Can be one of the following:
     *   A string of the URL to make the Ajax call.
     *   An object with the following properties
     *   - url: URL of the request
     *   - body: The body of the request
     *   - method: Method of the request, such as GET, POST, PUT, PATCH, DELETE
     *   - async: Whether the request is async
     *   - headers: Optional headers
     *   - crossDomain: true if a cross domain request, else false
     *   - createXHR: a function to override if you need to use an alternate
     *   XMLHttpRequest implementation.
     *   - resultSelector: a function to use to alter the output value type of
     *   the Observable. Gets {@link AjaxResponse} as an argument.
     * @return {Observable} An observable sequence containing the XMLHttpRequest.
     * @static true
     * @name ajax
     * @owner Observable
    */

/**
     * Destroys action
     */

/**
     * Determine whether the media query should be considered a match
     *
     * @return {Boolean} true if media query can be considered a match, false otherwise
     */

/**
     * Element Highlight
     */

/**
     * Fires when the playing speed of the audio/video is changed
     */

/**
     * Geometry 动画配置。
     *
     * + `animate(false)` 关闭动画
     * + `animate(true)` 开启动画，默认开启。
     *
     * 我们将动画分为四个场景：
     * 1. appear: 图表第一次加载时的入场动画；
     * 2. enter: 图表绘制完成，发生更新后，产生的新图形的进场动画；
     * 3. update: 图表绘制完成，数据发生变更后，有状态变更的图形的更新动画；
     * 4. leave: 图表绘制完成，数据发生变更后，被销毁图形的销毁动画。
     *
     * @example
     * ```typescript
     * animate({
     *   enter: {
     *     duration: 1000, // enter 动画执行时间
     *   },
     *   leave: false, // 关闭 leave 销毁动画
     * });
     * ```
     *
     * @param cfg 动画配置
     * @returns
     */

/**
     * Geometry 更新。
     * @param [cfg] 更新的配置
     */

/**
     * Get end tangent vector
     * @return {Array}
     */

/**
     * Get length of line
     * @return {number} length
     */

/**
     * Get length of polyline
     * @return {number} length
     */

/**
     * Get percentage of video played
     *
     * @return {Number} Percentage played
     * @method getPercent
     */

/**
     * Get point according to ratio
     * @param {number} ratio
     * @return {Point} point
     */

/**
     * Get start tangent vector
     * @return {Array}
     */

/**
     * Get total length of path
     * @return {number} length
     */

/**
     * Get total length of path
     * 尽管通过浏览器的 SVGPathElement.getTotalLength() 接口获取的 path 长度，
     * 与 Canvas 版本通过数学计算的方式得到的长度有一些细微差异，但最大误差在个位数像素，精度上可以能接受
     * @return {number} length
     */

/**
     * Inits action，提供给子类用于继承
     */

/**
     * Joins last values emitted by passed Observables.
     *
     * <span class="informal">Wait for Observables to complete and then combine last values they emitted.</span>
     *
     * <img src="./img/forkJoin.png" width="100%">
     *
     * `forkJoin` is an operator that takes any number of Observables which can be passed either as an array
     * or directly as arguments. If no input Observables are provided, resulting stream will complete
     * immediately.
     *
     * `forkJoin` will wait for all passed Observables to complete and then it will emit an array with last
     * values from corresponding Observables. So if you pass `n` Observables to the operator, resulting
     * array will have `n` values, where first value is the last thing emitted by the first Observable,
     * second value is the last thing emitted by the second Observable and so on. That means `forkJoin` will
     * not emit more than once and it will complete after that. If you need to emit combined values not only
     * at the end of lifecycle of passed Observables, but also throughout it, try out {@link combineLatest}
     * or {@link zip} instead.
     *
     * In order for resulting array to have the same length as the number of input Observables, whenever any of
     * that Observables completes without emitting any value, `forkJoin` will complete at that moment as well
     * and it will not emit anything either, even if it already has some last values from other Observables.
     * Conversely, if there is an Observable that never completes, `forkJoin` will never complete as well,
     * unless at any point some other Observable completes without emitting value, which brings us back to
     * the previous case. Overall, in order for `forkJoin` to emit a value, all Observables passed as arguments
     * have to emit something at least once and complete.
     *
     * If any input Observable errors at some point, `forkJoin` will error as well and all other Observables
     * will be immediately unsubscribed.
     *
     * Optionally `forkJoin` accepts project function, that will be called with values which normally
     * would land in emitted array. Whatever is returned by project function, will appear in output
     * Observable instead. This means that default project can be thought of as a function that takes
     * all its arguments and puts them into an array. Note that project function will be called only
     * when output Observable is supposed to emit a result.
     *
     * @example <caption>Use forkJoin with operator emitting immediately</caption>
     * const observable = Rx.Observable.forkJoin(
     *   Rx.Observable.of(1, 2, 3, 4),
     *   Rx.Observable.of(5, 6, 7, 8)
     * );
     * observable.subscribe(
     *   value => console.log(value),
     *   err => {},
     *   () => console.log('This is how it ends!')
     * );
     *
     * // Logs:
     * // [4, 8]
     * // "This is how it ends!"
     *
     *
     * @example <caption>Use forkJoin with operator emitting after some time</caption>
     * const observable = Rx.Observable.forkJoin(
     *   Rx.Observable.interval(1000).take(3), // emit 0, 1, 2 every second and complete
     *   Rx.Observable.interval(500).take(4) // emit 0, 1, 2, 3 every half a second and complete
     * );
     * observable.subscribe(
     *   value => console.log(value),
     *   err => {},
     *   () => console.log('This is how it ends!')
     * );
     *
     * // Logs:
     * // [2, 3] after 3 seconds
     * // "This is how it ends!" immediately after
     *
     *
     * @example <caption>Use forkJoin with project function</caption>
     * const observable = Rx.Observable.forkJoin(
     *   Rx.Observable.interval(1000).take(3), // emit 0, 1, 2 every second and complete
     *   Rx.Observable.interval(500).take(4), // emit 0, 1, 2, 3 every half a second and complete
     *   (n, m) => n + m
     * );
     * observable.subscribe(
     *   value => console.log(value),
     *   err => {},
     *   () => console.log('This is how it ends!')
     * );
     *
     * // Logs:
     * // 5 after 3 seconds
     * // "This is how it ends!" immediately after
     *
     * @see {@link combineLatest}
     * @see {@link zip}
     *
     * @param {...SubscribableOrPromise} sources Any number of Observables provided either as an array or as an arguments
     * passed directly to the operator.
     * @param {function} [project] Function that takes values emitted by input Observables and returns value
     * that will appear in resulting Observable instead of default array.
     * @return {Observable} Observable emitting either an array of last values emitted by passed Observables
     * or value from project function.
     * @static true
     * @name forkJoin
     * @owner Observable
     */

/**
     * Prompt the Scheduler to execute all of its queued actions, therefore
     * clearing its queue.
     * @return {void}
     */

/**
     * Registers a handler for the given media query
     *
     * @param {string} q the media query
     * @param {object || Array || Function} options either a single query handler object, a function, or an array of query handlers
     * @param {function} options.match fired when query matched
     * @param {function} [options.unmatch] fired when a query is no longer matched
     * @param {function} [options.setup] fired when handler first triggered
     * @param {boolean} [options.deferSetup=false] whether setup should be run immediately or deferred until query is first matched
     * @param {boolean} [shouldDegrade=false] whether this particular media query should always run on incapable browsers
     */

/**
     * Return a human readable representation of a moment that can
     * also be evaluated to get a new moment which is the same
     *
     * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
     */

/**
     * Shows tooltip
     * @param point
     */

/**
     * Use math calculation to get length of line
     * @return {number} length
     */

/**
     * Use math calculation to get point according to ratio as same sa Canvas version
     * @param {number} ratio
     * @return {Point} point
     */

/**
     * Wrapper around the w3c-compatible WebSocket object provided by the browser.
     *
     * @example <caption>Wraps browser WebSocket</caption>
     *
     * let socket$ = Observable.webSocket('ws://localhost:8081');
     *
     * socket$.subscribe(
     *    (msg) => console.log('message received: ' + msg),
     *    (err) => console.log(err),
     *    () => console.log('complete')
     *  );
     *
     * socket$.next(JSON.stringify({ op: 'hello' }));
     *
     * @example <caption>Wraps WebSocket from nodejs-websocket (using node.js)</caption>
     *
     * import { w3cwebsocket } from 'websocket';
     *
     * let socket$ = Observable.webSocket({
     *   url: 'ws://localhost:8081',
     *   WebSocketCtor: w3cwebsocket
     * });
     *
     * socket$.subscribe(
     *    (msg) => console.log('message received: ' + msg),
     *    (err) => console.log(err),
     *    () => console.log('complete')
     *  );
     *
     * socket$.next(JSON.stringify({ op: 'hello' }));
     *
     * @param {string | WebSocketSubjectConfig} urlConfigOrSource the source of the websocket as an url or a structure defining the websocket object
     * @return {WebSocketSubject}
     * @static true
     * @name webSocket
     * @owner Observable
     */

/**
     * add a handler for this query, triggering if already active
     *
     * @param {object} handler
     * @param {function} handler.match callback for when query is activated
     * @param {function} [handler.unmatch] callback for when query is deactivated
     * @param {function} [handler.setup] callback for immediate execution when a query handler is registered
     * @param {boolean} [handler.deferSetup=false] should the setup callback be deferred until the first time the handler is matched?
     */

/**
     * bbox 剪裁
     * @param subBBox
     * @param direction
     */

/**
     * called when a handler is to be destroyed.
     * delegates to the destroy or unmatch callbacks, depending on availability.
     *
     * @function
     */

/**
     * change visibility of component
     * @param visible
     */

/**
     * checked 图例项
     */

/**
     * clear
     * @param includeOption 是否清空 option 配置项（used in annotation）
     */

/**
     * clear
     */

/**
     * clone a new event with same attributes
     * @returns [[Event]]
     */

/**
     * clone 一个 padding cal
     */

/**
     * const arr = [1, 2, 3, 4]
     * const evens = remove(arr, n => n % 2 == 0)
     * console.log(arr) // => [1, 3]
     * console.log(evens) // => [2, 4]
     */

/**
     * coordinate 实例执行 actions
     * @params includeActions 如果没有指定，则执行全部，否则，执行指定的 action
     */

/**
     * coordinates setup and triggering of the handler
     *
     * @function
     */

/**
     * coordinates setup of the handler
     *
     * @function
     */

/**
     * coordinates the unmatch event for the handler
     *
     * @function
     */

/**
     * destroy the component
     */

/**
     * determines equality by reference.
     * if object is supplied compare options, if function, compare match callback
     *
     * @function
     * @param {object || function} [target] the target for comparison
     */

/**
     * event string
     * @returns string
     */

/**
     * facet title
     */

/**
     * generate circle axis cfg
     * @param scale
     * @param axisOption
     * @param direction
     * @return circle axis cfg
     */

/**
     * generate circle grid cfg
     * @param scale
     * @param axisOption
     * @param direction
     * @return circle grid cfg
     */

/**
     * generate line axis cfg
     * @param scale
     * @param axisOption
     * @param direction
     * @return line axis cfg
     */

/**
     * generate line grid cfg
     * @param scale
     * @param axisOption
     * @param direction
     * @param dim
     * @return line grid cfg
     */

/**
     * get all components
     * @returns components array
     */

/**
     * get annotation component config by different type
     * @param type
     * @param option 用户的配置
     * @param theme
     */

/**
     * get coordinate bbox
     */

/**
     * get legend config, use option > suggestion > theme
     * @param baseCfg
     * @param legendOption
     * @param direction
     */

/**
     * get sync key
     * @param sm
     */

/**
     * get the container by option.top
     * default is on top
     * @param option
     * @returns the container
     */

/**
     * get the gap of two bbox, if not exceed, then 0
     * @param bbox
     * @returns [top, right, bottom, left]
     */

/**
     * highlight 图例项（坐标轴文本）
     */

/**
     * https://github.com/ant-design/ant-design/issues/23623
     *
     * Sync render blocks React event. Let's make this async.
     */

/**
     * is annotation render on top
     * @param option
     * @return whethe on top
     */

/**
     * isArrayLike([1, 2, 3]) => true
     * isArrayLike(document.body.children) => true
     * isArrayLike('abc') => true
     * isArrayLike(Function) => false
     */

/**
     * isEmpty(null) => true
     * isEmpty() => true
     * isEmpty(true) => true
     * isEmpty(1) => true
     * isEmpty([1, 2, 3]) => false
     * isEmpty('abc') => false
     * isEmpty({ a: 1 }) => false
     */

/**
     * isNil(null) => true
     * isNil() => true
     */

/**
     * isObject({}) => true
     * isObject([1, 2, 3]) => true
     * isObject(Function) => true
     * isObject(null) => false
     */

/**
     * isObjectLike(new Foo) => false
     * isObjectLike([1, 2, 3]) => false
     * isObjectLike({ x: 0, y: 0 }) => true
     * isObjectLike(Object.create(null)) => true
     */

/**
     * isObjectLike({}) => true
     * isObjectLike([1, 2, 3]) => true
     * isObjectLike(Function) => false
     * isObjectLike(null) => false
     */

/**
     * isTooltipLocked
     */

/**
     * layout legend
     * 计算出 legend 的 direction 位置 x, y
     */

/**
     * legend 的更新逻辑
     */

/**
     * lockTooltip
     */

/**
     * parse all the points between start and end
     * @param start
     * @param end
     * @return Point[]
     */

/**
     * parse percent position
     * @param position
     */

/**
     * parse the point position to [x, y]
     * @param p Position
     * @returns { x, y }
     */

/**
     * region filter 比较特殊的渲染时机
     * @param doWhat
     */

/**
     * removes the given handler from the collection, and calls it's destroy methods
     *
     * @param {object || function} handler the handler to remove
     */

/**
     * render the legend component by legend options
     */

/**
     * scale
     * @param sx
     * @param sy
     */

/**
     * scale key 的创建方式
     * @param field
     */

/**
     * tooltip 提示信息配置。
     *
     * ```ts
     * view.tooltip(false); // 关闭 tooltip
     *
     * view.tooltip({
     *   shared: true
     * });
     * ```
     *
     * @param cfg Tooltip 配置，更详细的配置项参考：https://github.com/antvis/component#tooltip
     * @returns View
     */

/**
     * unlockTooltip
     */

/**
     * unregisters a query and all it's handlers, or a specific handler for a query
     *
     * @param {string} q the media query to target
     * @param {object || function} [handler] specific handler to unregister
     */

/**
     * view 分面绘制。
     *
     * ```ts
     * view.facet('rect', {
     *   rowField: 'province',
     *   columnField: 'category',
     *   eachView: (innerView: View, facet?: FacetData) => {
     *     innerView.line().position('city*sale');
     *   },
     * });
     * ```
     *
     * @param type 分面类型
     * @param cfg 分面配置， [[FacetCfgMap]]
     * @returns View
     */

/**
     * whether has reflect
     * @param dim
     */

/**
     * x 字段
     * @returns
     */

/**
     * x: 目标值
     * lo: 起始位置
     * hi: 结束位置
     */

/**
     * y 字段
     * @returns
     */

/**
     * 一些方法调用会引起画布变化
     * @param {ChangeType} changeType 改变的类型
     */

/**
     * 从 view 中清除 facetView
     */

/**
     * 从 view 中获取数据，缩略轴使用全量的数据
     */

/**
     * 以任意点 (x, y) 为中心旋转元素
     * @param {number} radian 旋转角度(弧度值)
     * @return {IElement} 元素
     */

/**
     * 以画布左上角 (0, 0) 为中心旋转元素
     * @param {number} radian 旋转角度(弧度值)
     * @return {IElement} 元素
     */

/**
     * 以起始点为中心旋转元素
     * @param {number} radian 旋转角度(弧度值)
     * @return {IElement} 元素
     */

/**
     * 使用静态方法创建一个
     * @param top
     * @param right
     * @param bottom
     * @param left
     */

/**
     * 修改数据，数据更新逻辑，数据更新仅仅影响当前这一层的 view
     *
     * ```ts
     * view.changeData([{ city: '北京', sale: '200' }]);
     * ```
     *
     * @param data
     * @returns void
     */

/**
     * 停止动画
     * @param {boolean} toEnd 是否到动画的最终状态
     */

/**
     * 停止定时器
     */

/**
     * 停止时间轴上所有元素的动画，并置空动画元素列表
     * @param {boolean} toEnd 是否到动画的最终状态，用来透传给动画元素的 stopAnimate 方法
     */

/**
     * 光标指示可以在上下方向移动
     */

/**
     * 光标指示可以在左右方向移动
     */

/**
     * 光标指示可移动的方向 右上方（东北）
     */

/**
     * 光标指示可移动的方向 左上方（西北）
     */

/**
     * 光标指示可移动的方向右下方（东南）
     */

/**
     * 光标指示可移动的方向左下方（西南）
     */

/**
     * 克隆包围盒
     * @returns 包围盒
     */

/**
     * 内部设置属性值的接口
     * @param {string} name 属性名
     * @param {any} value 属性值
     */

/**
     * 切换状态
     */

/**
     * 切换状态.
     * 1. 当全部选中的时候 或者 当前 item 未选中时，进行激活操作
     * 2. 否则，重置
     * @override
     */

/**
     * 切换选中，只允许选中一个
     */

/**
     * 创建 Arc
     * @param option
     * @returns AnnotationController
     */

/**
     * 创建 DataMarker
     * @param option
     * @returns AnnotationController
     */

/**
     * 创建 DataRegion
     * @param option
     * @returns AnnotationController
     */

/**
     * 创建 Element 实例。
     * @param mappingDatum Element 对应的绘制数据
     * @param [isUpdate] 是否处于更新阶段
     * @returns element 返回创建的 Element 实例
     */

/**
     * 创建 Geometry 实例。
     * @param cfg
     */

/**
     * 创建 HtmlAnnotation
     * @param option
     */

/**
     * 创建 Line
     * @param option
     * @returns AnnotationController
     */

/**
     * 创建 Region
     * @param option
     * @returns AnnotationController
     */

/**
     * 创建 RegionFilter
     * @param option
     * @returns AnnotationController
     */

/**
     * 创建 ShapeAnnotation
     * @param option
     */

/**
     * 创建 Text
     * @param option
     * @returns AnnotationController
     */

/**
     * 创建 image
     * @param option
     * @returns AnnotationController
     */

/**
     * 创建 line axis
     * @param scale
     * @param option
     * @param layer
     * @param direction
     * @param dim
     */

/**
     * 创建 scale
     * @param field
     * @param data
     * @param scaleDef
     * @param key
     */

/**
     * 创建 scale，递归到顶层 view 去创建和缓存 scale
     * @param field
     * @param data
     * @param scaleDef
     * @param key
     */

/**
     * 创建 slider 组件
     */

/**
     * 创建 分面 view
     */

/**
     * 创建一个 legend
     * @param geometry
     * @param attr
     * @param scale
     */

/**
     * 创建分类图例
     * @param geometry
     * @param attr
     * @param scale
     * @param legendOption
     */

/**
     * 创建坐标系
     * @private
     */

/**
     * 创建坐标系对象
     * @param start 起始位置
     * @param end   结束位置
     * @return 坐标系实例
     */

/**
     * 创建子 view
     *
     * ```ts
     * const innerView = view.createView({
     *   start: { x: 0, y: 0 },
     *   end: { x: 0.5, y: 0.5 },
     *   padding: 8,
     * });
     * ```
     *
     * @param cfg
     * @returns View
     */

/**
     * 创建或者更新 annotation
     * @param option
     */

/**
     * 创建所有的 Element 实例，对于 Path、Line、Area，一组数据对应一个 Element。
     * @param mappingData
     * @param [isUpdate]
     * @returns elements
     */

/**
     * 创建连续图例
     * @param geometry
     * @param attr
     * @param scale
     * @param legendOption
     */

/**
     * 初始化
     */

/**
     * 初始化 Geometries
     * @private
     */

/**
     * 初始化 Geomtry 实例：
     * 创建 [[Attribute]] and [[Scale]] 实例，进行数据处理，包括分组、数值化以及数据调整。
     */

/**
     * 初始化 view
     */

/**
     * 初始化。
     */

/**
     * 初始化事件机制：G 4.0 底层内置支持 name:event 的机制，那么只要所有组件都有自己的 name 即可。
     *
     * G2 的事件只是获取事件委托，然后在 view 嵌套结构中，形成事件冒泡机制。
     * 当前 view 只委托自己 view 中的 Component 和 Geometry 事件，并向上冒泡
     * @private
     */

/**
     * 初始化定时器
     */

/**
     * 初始化插件
     */

/**
     * 初始化流程
     */

/**
     * 初始化过程
     */

/**
     * 初始的 padding 数据
     * @param top
     * @param right
     * @param bottom
     * @param left
     */

/**
     * 删除 sync scale 引用
     * @param key
     */

/**
     * 删除一个子 view
     * @param view
     * @return removedView
     */

/**
     * 刷新图形元素，这里仅仅是放入队列，下次绘制时进行绘制
     * @param {IElement} element 图形元素
     */

/**
     * 包围盒是否相等
     * @param {BBox} bbox 包围盒
     * @returns      包围盒是否相等
     */

/**
     * 包围盒计算
     * @param {number} x  椭圆中心 x
     * @param {number} y  椭圆中心 y
     * @param {number} rx 椭圆 x 方向半径
     * @param {number} ry 椭圆 y 方向半径
     * @return {object} 包围盒
     */

/**
     * 包装配置的默认值
     * @param option
     */

/**
     * 取交集
     * @param subBBox
     */

/**
     * 取并集
     * @param subBBox
     */

/**
     * 取最大区间
     * @param padding
     */

/**
     * 取消勾选
     */

/**
     * 取消同当前 Action 相关的过滤，指定的 x,y
     */

/**
     * 取消当前时间影响的状态
     */

/**
     * 取消状态
     */

/**
     * 取消监听一个事件，或者一个channel
     * @param evt
     * @param callback
     */

/**
     * 取消连接 elements
     */

/**
     * 同步 scale
     */

/**
     * 四周增加 padding
     * @param padding
     */

/**
     * 回滚
     */

/**
     * 因为 annotation 需要依赖坐标系信息，所以 render 阶段为空方法，实际的创建逻辑都在 layout 中
     */

/**
     * 图形元素新出现时的动画，默认图形从透明度 0 到当前透明度
     * @protected
     * @param {string} elmentName 图形元素名称
     * @param {IElement} newElement  新的图形元素
     * @param {object} animateCfg 动画的配置项
     */

/**
     * 图形元素新出现时的动画，默认图形从透明度 0 到当前透明度
     * @protected
     * @param {string} elmentName 图形元素名称
     * @param {IElement} originElement 要删除的图形元素
     * @param {object} animateCfg 动画的配置项
     */

/**
     * 图形元素的更新动画
     * @param {string} elmentName 图形元素名称
     * @param {IElement} originElement 现有的图形元素
     * @param {object} newAttrs  新的图形元素
     * @param {object} animateCfg 动画的配置项
     */

/**
     * 图表元素 Active
     */

/**
     * 在 view 销毁的时候，删除 scale 实例，防止内存泄露
     * @param key
     */

/**
     * 在某一个方向增加 padding
     * @param bbox
     * @param direction
     */

/**
     * 在组件上添加子组件
     *
     * @param parent 父元素
     * @param cfg 子组件配置项
     */

/**
     * 坐标系反射变换
     * @param dim 反射维度
     * @return    返回坐标系对象
     */

/**
     * 坐标系平移变换
     * @param x x 方向平移像素
     * @param y y 方向平移像素
     * @return    返回坐标系对象
     */

/**
     * 坐标系旋转变换
     * @param  radian 旋转弧度
     * @return        返回坐标系对象
     */

/**
     * 坐标系比例变换
     * @param s1 x 方向缩放比例
     * @param s2 y 方向缩放比例
     * @return     返回坐标系对象
     */

/**
     * 填充一些默认的配置项目
     */

/**
     * 增加动画元素
     */

/**
     * 处理 PLOT_EVENTS
     * plot event 需要处理所有的基础事件，并判断是否在画布中，然后再决定是否要 emit。
     * 对于 mouseenter、mouseleave 比较特殊，需要做一下数学比较。
     * @param e
     */

/**
     * 处理 axis 的默认配置
     * @param view
     * @param facet
     */

/**
     * 处理 scale 同步逻辑
     */

/**
     * 处理筛选器，筛选数据
     * @private
     */

/**
     * 复写 init，主要是初始化 DOM 和事件
     */

/**
     * 复写基类的方法
     */

/**
     * 大小变化
     */

/**
     * 如果进行线性映射，返回对应的映射值
     * @param percent
     */

/**
     * 子元素的数量
     * @return {number} 子元素数量
     */

/**
     * 存在镜像
     */

/**
     * 对 view 进行过滤
     * @param view
     * @param field
     * @param filter
     */

/**
     * 对 view 进行过滤
     */

/**
     * 对外暴露方法，判断一个点是否在绘图区域（即坐标系范围）内部。
     * @param point 坐标点
     */

/**
     * 对数据进行分组adjustData
     * @param data 数据
     * @param dim 分组的字段
     * @return 分组结果
     */

/**
     * 对某一个字段进行过滤
     * @param field
     * @param data
     */

/**
     * 对角变换
     */

/**
     * 将 data 数据进行过滤。
     * @param data
     * @returns 过滤之后的数据
     */

/**
     * 将 tooltip 锁定到当前位置不能移动。
     * @returns View
     */

/**
     * 将 tooltip 锁定解除。
     * @returns View
     */

/**
     * 将原始数据映射至图形空间，同时创建图形对象。
     */

/**
     * 将坐标点进行矩阵变换
     * @param x   对应 x 轴画布坐标
     * @param y   对应 y 轴画布坐标
     * @param tag 默认为 0，可取值 0, 1
     * @return    返回变换后的三阶向量 [x, y, z]
     */

/**
     * 将坐标点进行矩阵逆变换
     * @param x   对应 x 轴画布坐标
     * @param y   对应 y 轴画布坐标
     * @param tag 默认为 0，可取值 0, 1
     * @return    返回矩阵逆变换后的三阶向量 [x, y, z]
     */

/**
     * 将坐标系 x y 两个轴进行转置
     * @return 返回坐标系对象
     */

/**
     * 将屏幕坐标点还原成百分比数据
     * @param point 屏幕坐标
     * @return      返回对应的归一化后的数据
     */

/**
     * 将归一化的 path 转换成坐标系下的 path
     * @param path 归一化的路径
     * @returns
     */

/**
     * 将归一化的坐标点数据转换为画布坐标，并根据坐标系当前矩阵进行变换
     * @param point 归一化的坐标点
     * @return      返回进行矩阵变换后的画布坐标
     */

/**
     * 将归一化的坐标转换成画布坐标
     * @param point 归一化的坐标点数据
     * @returns
     */

/**
     * 将时间转换成数字
     * @override
     */

/**
     * 将百分比数据变成屏幕坐标
     * @param point 归一化的点坐标
     * @return      返回对应的屏幕坐标
     */

/**
     * 将进行过矩阵变换画布坐标转换为归一化坐标
     * @param point 画布坐标
     * @return      返回归一化的坐标点
     */

/**
     * 属性更改后需要做的事情
     * @protected
     * @param {ShapeAttrs} targetAttrs 渲染的图像属性
     */

/**
     * 属性更改后需要做的事情
     * @protected
     */

/**
     * 布局
     */

/**
     * 平移
     */

/**
     * 开始
     */

/**
     * 开始移动
     */

/**
     * 开始范围过滤，记录范围过滤的起点
     */

/**
     * 开始，记录开始选中的位置
     */

/**
     * 当前事件相关的 Element Active
     */

/**
     * 当前数据分组（index）中，按照维度 dim 进行 jitter 调整
     * @param dim
     * @param values
     * @param dataArray
     */

/**
     * 当前的触发是否在 View 内
     */

/**
     * 当前的触发是组件内部
     * @param name 组件名，可以为空
     */

/**
     * 当前鼠标点是在 enter tooltip 中
     * @param point
     */

/**
     * 往 `view.options` 属性中存储配置项。
     * @param name 属性名称
     * @param opt 属性值
     * @returns view
     */

/**
     * 恢复动画
     */

/**
     * 恢复发生的过滤，保持同 data-filter 命名的一致
     */

/**
     * 所有同一层级的 tooltip 显示
     * @param view
     * @param point
     */

/**
     * 执行
     */

/**
     * 执行动画，支持多种函数签名
     * 1. animate(toAttrs: ElementAttrs, duration: number, easing?: string, callback?: () => void, delay?: number)
     * 2. animate(onFrame: OnFrame, duration: number, easing?: string, callback?: () => void, delay?: number)
     * 3. animate(toAttrs: ElementAttrs, cfg: AnimateCfg)
     * 4. animate(onFrame: OnFrame, cfg: AnimateCfg)
     * 各个参数的含义为:
     *   toAttrs  动画最终状态
     *   onFrame  自定义帧动画函数
     *   duration 动画执行时间
     *   easing   动画缓动效果
     *   callback 动画执行后的回调
     *   delay    动画延迟时间
     */

/**
     * 扩张形成新的
     * @param gap
     */

/**
     * 批量注册 DinamicX 事件链原子能力 handler
     *
     * @param {Object} handlers - 事件回调函数集合
     */

/**
     * 拖拽
     */

/**
     * 指定点到多折线的距离
     * @param {array} points 点的集合 [x,y] 的形式
     * @param {number} x 指定点的 x
     * @param {number} y 指定点的 y
     * @return {number} 点到多折线的距离
     */

/**
     * 指定点到多边形的距离
     * @param {array} points 点的集合 [x,y] 的形式
     * @param {number} x 指定点的 x
     * @param {number} y 指定点的 y
     * @return {number} 点到多边形的距离
     */

/**
     * 收缩形成新的
     * @param gap
     */

/**
     * 改变图表大小，同时重新渲染。
     * @param width 图表宽度
     * @param height 图表高度
     * @returns
     */

/**
     * 放大
     */

/**
     * 方法入参是经过数据分组、数据数字化之后的二维数组
     * @param groupDataArray 分组之后的数据
     */

/**
     * 旋转弧度
     * @param angle
     */

/**
     * 时间轴构造函数，依赖于画布
     * @param {}
     */

/**
     * 映射的值组成的数组
     * @param params 对应 scale 顺序的值传入
     */

/**
     * 是否仅仅使用 BBox 检测就可以判定拾取到图形
     * 默认是 false，但是有些图形例如 image、marker 等都可直接使用 BBox 的检测而不需要使用图形拾取
     * @return {Boolean} 仅仅使用 BBox 进行拾取
     */

/**
     * 是否允许捕捉事件
     * @param capture 事件捕捉
     */

/**
     * 是否具有某个状态
     * @param element 图表 Element 元素
     */

/**
     * 是否包含了另一个包围盒
     * @param child
     */

/**
     * 是否包含对应元素
     * @param {IElement} element 元素
     * @return {boolean}
     */

/**
     * 是否可以执行某一 overlap
     * @param name
     */

/**
     * 是否在指定的图形内
     * @param name shape 的 name
     */

/**
     * 是否处于动画暂停状态
     * @return {boolean} 是否处于动画暂停状态
     */

/**
     * 是否存在指定的状态
     * @param {ListItem} item  列表项
     * @param {boolean} state 状态名
     */

/**
     * 是否存在某一个 action
     * @param actionName
     */

/**
     * 是否有动画在执行
     */

/**
     * 是否碰撞
     * @param bbox
     */

/**
     * 是否锁定 tooltip。
     * @returns 是否锁定
     */

/**
     * 是否需要进行群组入场动画
     * 规则：
     * 1. 如果发生更新，则不进行
     * 2. 如果用户关闭 geometry 动画，则不进行
     * 3. 如果用户关闭了 appear 动画，则不进行
     * 4. 如果用户配置了 appear.animation，则不进行
     */

/**
     * 显示
     * @param {ShapeAttrs} style region-path 的样式
     * @param {number} appendRatio 适用于笛卡尔坐标系. 对于 x 轴非 linear 类型: 默认：0.25, x 轴 linear 类型: 默认 0
     * @param {number} appendWidth  适用于笛卡尔坐标系. 像素级别，优先级 > appendRatio
     */

/**
     * 显示
     */

/**
     * 显示 Tooltip
     * @returns
     */

/**
     * 显示 Tooltip (展示在上方)
     * @returns
     */

/**
     * 显示 point 坐标点对应的 tooltip。
     * @param point 画布坐标点
     * @returns View
     */

/**
     * 显示。
     */

/**
     * 显示或者隐藏 element。
     * @param visible 是否可见。
     */

/**
     * 显示或者隐藏 geometry。
     * @param visible
     */

/**
     * 显示或者隐藏。
     * @param visible
     * @returns
     */

/**
     * 显示或者隐藏整个 view。
     * @param visible 是否可见
     * @returns View
     */

/**
     * 显示或隐藏图表
     * @param visible 是否可见，true 表示显示，false 表示隐藏
     * @returns
     */

/**
     * 显示组件
     */

/**
     * 暂停动画
     */

/**
     * 更新
     */

/**
     * 更新 axis 组件
     */

/**
     * 更新 facet
     */

/**
     * 更新 view 过滤数据
     * @param min
     * @param max
     */

/**
     * 更新 x axis
     * @param updatedCache
     */

/**
     * 更新分页器 arrow 组件
     */

/**
     * 更新列表项
     * @param {ListItem} item 列表项
     * @param {object}   cfg  列表项
     */

/**
     * 更新图形。
     * @param model 更新的绘制数据。
     */

/**
     * 更新坐标系对象
     * @param start 起始位置
     * @param end   结束位置
     * @return 坐标系实例
     */

/**
     * 更新组件
     * @param {object} cfg 更新属性
     */

/**
     * 更新组件布局，位置大小
     */

/**
     * 更新缓存，以及销毁组件
     * @param updated 更新或者创建的组件
     */

/**
     * 更新配置
     * @param cfg
     */

/**
     * 更新配置
     * @param option
     */

/**
     * 更新配置
     */

/**
     * 更新配置项，用于配置项式声明。
     * @param options 配置项
     */

/**
     * 最后的绘制组件
     * @param isUpdate
     */

/**
     * 最终递归绘制组件和图形
     * @param isUpdate
     */

/**
     * 查找元素，找到第一个返回
     * @param  {ElementFilterFn} fn    匹配函数
     * @return {IElement|null} 元素，可以为空
     */

/**
     * 查找所有匹配的元素
     * @param  {ElementFilterFn}   fn  匹配函数
     * @return {IElement[]} 元素数组
     */

/**
     * 查看维度是否是 adjust 字段
     * @param dim
     */

/**
     * 查询当前 Element 上是否已设置 `stateName` 对应的状态。
     * @param stateName 状态名称。
     * @returns true 表示存在，false 表示不存在。
     */

/**
     * 根据 Geometry 的所有字段创建 scales
     * 如果存在，则更新，不存在则创建
     */

/**
     * 根据 ID 查找元素
     * @param {string} id 元素 id
     * @return {IElement|null} 元素
     */

/**
     * 根据 facet 生成 view，可以给上层自定义使用
     * @param facet
     */

/**
     * 根据 id 来获取组件
     * @param id
     */

/**
     * 根据 name 查找元素列表
     * @param {string}      name 元素名称
     * @return {IElement[]} 元素
     */

/**
     * 根据 optimize 配置对 ticks 进行抽样，对抽样过后的 ticks 才进行真实的渲染
     */

/**
     * 根据 options 配置、Geometry 字段配置，自动生成 components
     * @param isUpdate 是否是更新
     * @private
     */

/**
     * 根据 options 配置自动渲染 geometry
     * @private
     */

/**
     * 根据 shape 类型获取具体的 shape 实例
     * @param shapeType string shape 的类型
     * @returns
     */

/**
     * 根据 start/end 和当前数据计算出当前的 minText/maxText
     * @param min
     * @param max
     */

/**
     * 根据一定的规则查找 Geometry 的 Elements。
     *
     * ```typescript
     * getElementsBy((element) => {
     *   const data = element.getData();
     *
     *   return data.a === 'a';
     * });
     * ```
     *
     * @param condition 定义查找规则的回调函数。
     * @returns
     */

/**
     * 根据名字获取图形属性实例。
     */

/**
     * 根据名称获取度量
     * @param name
     */

/**
     * 根据字段名去获取 scale 实例。
     * @param field 数据字段名称
     * @param key id
     */

/**
     * 根据度量获取属性名
     */

/**
     * 根据总数和当前索引，计算分面的 region
     * @param count
     * @param index
     */

/**
     * 根据比例获取多折线的切线角度
     * @param {array} points 点的集合 [x,y] 的形式
     * @param {number} t 在多折线的长度上的比例
     * @return {object} 根据比例值计算出来的角度
     */

/**
     * 根据比例获取多折线的点
     * @param {array} points 点的集合 [x,y] 的形式
     * @param {number} t 在多折线的长度上的比例
     * @return {object} 根据比例值计算出来的点
     */

/**
     * 根据比例获取多边形的切线角度
     * @param {array} points 点的集合 [x,y] 的形式
     * @param {number} t 在多边形的长度上的比例
     * @return {object} 根据比例值计算出来的角度
     */

/**
     * 根据比例获取多边形的点
     * @param {array} points 点的集合 [x,y] 的形式
     * @param {number} t 在多边形的长度上的比例
     * @return {object} 根据比例值计算出来的点
     */

/**
     * 根据比例获取点
     * @param {number} x 椭圆中心 x
     * @param {number} y 椭圆中心 y
     * @param {number} rx 椭圆 x 方向半径
     * @param {number} ry 椭圆 y 方向半径
     * @param {number} t 指定比例，x轴方向为 0
     * @return {object} 点
     */

/**
     * 根据比例获取点
     * @param {number} x1 起始点 x
     * @param {number} y1 起始点 y
     * @param {number} x2 结束点 x
     * @param {number} y2 结束点 y
     * @param {number} t 指定比例
     * @return {object} 包含 x, y 的点
     */

/**
     * 根据比例计算切线角度
     * @param {number} x 椭圆中心 x
     * @param {number} y 椭圆中心 y
     * @param {number} rx 椭圆 x 方向半径
     * @param {number} ry 椭圆 y 方向半径
     * @param {number} t 指定比例 0 - 1 之间，x轴方向为 0。在 0-1 范围之外是循环还是返回 null，还需要调整
     * @return {number} 角度，在 0 - 2PI 之间
     */

/**
     * 根据状态获取图例项
     * @param  {string}     state [description]
     * @return {ListItem[]}       [description]
     */

/**
     * 根据用户配置的 items 配置，来进行用户自定义的处理，并返回最终的 items
     * 默认不做任何处理
     */

/**
     * 根据索引获取子元素
     * @return {IElement} 第一个元素
     */

/**
     * 此光标指示矩形框的边缘可被向上（北）移动。
     */

/**
     * 此光标指示矩形框的边缘可被向下（南）移动。
     */

/**
     * 此光标指示矩形框的边缘可被向右（东）移动。
     */

/**
     * 此光标指示矩形框的边缘可被向左（西）移动。
     */

/**
     * 注册 DinamicX 事件链原子能力 handler
     *
     * @param {string} name - 事件名称
     * @param {DinamicXEventChainHandler} handler - 事件回调函数
     */

/**
     * 添加一个点
     */

/**
     * 清楚所有列表项的状态
     * @param {string} state 状态值
     */

/**
     * 清理所有隐藏的图形
     */

/**
     * 清理组件的内容，一般配合 render 使用
     * @example
     * axis.clear();
     * axis.render();
     */

/**
     * 清理绑定的事件
     */

/**
     * 清理资源
     */

/**
     * 清空
     * @param includeOption 是否清空 option 配置项
     */

/**
     * 清空
     */

/**
     * 清空列表
     */

/**
     * 清空图表，同时清除掉 aria 配置
     */

/**
     * 清空当前 Geometry，配置项仍保留，但是内部创建的对象全部清空。
     * @override
     */

/**
     * 清空状量态，恢复至初始状态。
     */

/**
     * 清空，clear 之后如果还需要使用，需要重新调用 init 初始化过程
     * 一般在数据有变更的时候调用，重新进行数据的分面逻辑
     */

/**
     * 清除当前的组件
     */

/**
     * 清除所有 Element 的状态
     */

/**
     * 清除所有连接
     */

/**
     * 清除过滤
     */

/**
     * 渲染
     */

/**
     * 渲染分面，会在其中进行数据分面，然后进行子 view 创建
     * @param isUpdate
     */

/**
     * 渲染分面，由上层 view 调用。包括：
     *  - 分面 view
     *  - 轴
     *  - title
     *
     *  子类可以复写，添加一些其他组件，比如滚动条等
     */

/**
     * 渲染文本
     */

/**
     * 渲染背景样式的 shape。
     * 放到 view 中创建的原因是让使用 view 绘制图形的时候，也能够处理背景色
     */

/**
     * 激活选项
     */

/**
     * 点到椭圆最近的距离
     * @param {number} x  椭圆中心 x
     * @param {number} y  椭圆中心 y
     * @param {number} rx 椭圆 x 方向半径
     * @param {number} ry 椭圆 y 方向半径
     * @param {number} x0  指定的点 x
     * @param {number} y0  指定的点 y
     * @return {number} 点到椭圆的距离
     */

/**
     * 点到直线的距离，而不是点到线段的距离
     * @param {number} x1 起始点 x
     * @param {number} y1 起始点 y
     * @param {number} x2 结束点 x
     * @param {number} y2 结束点 y
     * @param {number} x  测试点 x
     * @param {number} y  测试点 y
     * @return {number} 距离
     */

/**
     * 点到线段的距离
     * @param {number} x1 起始点 x
     * @param {number} y1 起始点 y
     * @param {number} x2 结束点 x
     * @param {number} y2 结束点 y
     * @param {number} x  测试点 x
     * @param {number} y  测试点 y
     * @return {number} 距离
     */

/**
     * 点是否在 bbox 中
     * @param p
     */

/**
     * 生命周期：初始化
     * @returns voids
     */

/**
     * 生命周期：清空图表上所有的绘制内容，但是不销毁图表，chart 仍可使用。
     * @returns void
     */

/**
     * 生命周期：渲染流程，渲染过程需要处理数据更新的情况。
     * render 函数仅仅会处理 view 和子 view。
     * @param isUpdate 是否触发更新流程。
     * @param params render 事件参数
     */

/**
     * 生命周期：销毁，完全无法使用。
     * @returns void
     */

/**
     * 生成 id
     * @param key
     */

/**
     * 生成 slider 配置
     */

/**
     * 生成矩阵分面的分面数据
     * @param data
     */

/**
     * 用于向 shape 中传入自定义的数据。目前可能仅仅可能用于在自定义 shape 的时候，像自定义 shape 中传入自定义的数据，方便实现自定义 shape 的配置能力。
     *
     * @example
     * ```ts
     * chart.interval().customInfo({ yourData: 'hello, g2!' });
     * ```
     *
     * 然后在自定义 shape 的时候，可以拿到这个信息。
     *
     * ```ts
     * registerShape('interval', 'your-shape', {
     *   draw(shapeInfo, container) {
     *     const { customInfo } = shapeInfo;
     *     console.log(customInfo); // will log { yourData: 'hello, g2!' }.
     *   }
     * });
     * ```
     *
     * @param cfg
     */

/**
     * 由于时间类型数据需要转换一下，所以复写 getText
     * @override
     */

/**
     * 监听一个事件
     * @param evt
     * @param callback
     * @param once
     */

/**
     * 监听一个事件一次
     * @param evt
     * @param callback
     */

/**
     * 移动
     */

/**
     * 移动 mask
     */

/**
     * 移动元素
     * @param {number} translateX 水平移动距离
     * @param {number} translateY 垂直移动距离
     * @return {IElement} 元素
     */

/**
     * 移动元素到目标位置
     * @param {number} targetX 目标位置的水平坐标
     * @param {number} targetX 目标位置的垂直坐标
     * @return {IElement} 元素
     */

/**
     * 移动元素到目标位置，等价于 move 方法。由于 moveTo 的语义性更强，因此在文档中推荐使用 moveTo 方法
     * @param {number} targetX 目标位置的 x 轴坐标
     * @param {number} targetY 目标位置的 y 轴坐标
     * @return {IElement} 元素
     */

/**
     * 移除 Action
     * @param action Action 对象
     */

/**
     * 移除动画元素
     */

/**
     * 移除对应子元素
     * @param {IElement} element 子元素
     * @param {boolean} destroy 是否销毁子元素，默认为 true
     */

/**
     * 移除当前 View 的 interaction
     * ```ts
     * view.removeInteraction('my-interaction');
     * ```
     * @param name interaction name
     */

/**
     * 索引值在哪一页
     * @param index
     * @param pageSize
     */

/**
     * 线段的角度
     * @param {number} x1 起始点 x
     * @param {number} y1 起始点 y
     * @param {number} x2 结束点 x
     * @param {number} y2 结束点 y
     * @return {number} 导数
     */

/**
     * 线段的长度
     * @param {number} x1 起始点 x
     * @param {number} y1 起始点 y
     * @param {number} x2 结束点 x
     * @param {number} y2 结束点 y
     * @return {number} 距离
     */

/**
     * 绑定事件
     */

/**
     * 结束
     */

/**
     * 结束移动
     */

/**
     * 绘制 shape
     * @override
     * @param shapeType 绘制的 shape 类型
     * @param cfg 绘制 shape 需要的信息
     * @param element Element 实例
     * @returns
     */

/**
     * 绘制 shape
     * @override
     */

/**
     * 绘制分组的路径
     * @param {Defs} context 上下文
     * @param {ShapeAttrs} targetAttrs 渲染的目标属性
     */

/**
     * 绘制分页器
     */

/**
     * 绘制图形。
     * @param model 绘制数据。
     * @param isUpdate 可选，是否是更新发生后的绘制。
     */

/**
     * 绘制图形的路径
     * @param {CanvasRenderingContext2D} context 上下文
     */

/**
     * 绘制完成 path 后的操作
     * @param {CanvasRenderingContext2D} context 上下文
     */

/**
     * 绘制标签背景
     * @param labelItems
     */

/**
     * 绘制组件
     */

/**
     * 缓存一个 scale
     * @param scale
     * @param scaleDef
     * @param key
     */

/**
     * 缓存信息
     * @param params 缓存的字段
     *  - 如果一个字段则获取缓存
     *  - 两个字段则设置缓存
     */

/**
     * 缩小
     */

/**
     * 缩放元素
     * @param {number} ratioX 水平缩放比例
     * @param {number} ratioY 垂直缩放比例
     * @return {IElement} 元素
     */

/**
     * 自动根据容器大小 resize 画布
     */

/**
     * 自定义图例使用 category 图例去渲染
     * @param geometry
     * @param attr
     * @param scale
     * @param legendOption
     */

/**
     * 获取 Action
     * @param action Action 对象
     */

/**
     * 获取 Action
     * @param name Action 的名称
     */

/**
     * 获取 Element 对应的原始数据。
     * @returns 原始数据。
     */

/**
     * 获取 Element 对应的图形绘制数据。
     * @returns 图形绘制数据。
     */

/**
     * 获取 G.Canvas 实例。
     * @returns G.Canvas 画布实例。
     */

/**
     * 获取 Geometry 的所有 Elements。
     *
     * ```typescript
     * getElements();
     * ```
     */

/**
     * 获取 Shape 的关键点数据。
     * @param obj
     * @returns
     */

/**
     * 获取 Shape 的关键点数据。
     * @param record
     * @returns
     */

/**
     * 获取 Y 轴上的最小值
     * @returns y 字段最小值
     */

/**
     * 获取 Y 轴上的最小值。
     */

/**
     * 获取 interval label 的方向，取决于 value 的值是正还是负
     * @param labelCfg
     */

/**
     * 获取 label 的旋转角度
     * @param angle
     * @param offset
     * @param isLabelEmit
     */

/**
     * 获取 label 的默认配置
     */

/**
     * 获取 name 对应的 controller 实例
     * @param name
     */

/**
     * 获取 scrollbar 的主题配置
     */

/**
     * 获取 scrollbar 组件的主题样式
     */

/**
     * 获取 shape 对应的 marker 样式。
     * @param shapeName shape 具体名字
     * @param cfg marker 信息
     * @returns
     */

/**
     * 获取 shape 对应的缩略图配置信息。
     * @param shapeType shape 类型
     * @param color 颜色
     * @param isInPolar 是否在极坐标系下
     * @returns 返回缩略图 marker 配置。
     */

/**
     * 获取 shape 的默认关键点
     * @override
     */

/**
     * 获取 shape 的默认绘制样式 (内置的 shapeFactory 均有注册默认样式)
     */

/**
     * 获取 shape 绘制需要的关键点
     * @param shapeType shape 类型
     * @param shapePoint 每条数据映射后的坐标点以及 size 数值
     * @returns 图形关键点信息
     */

/**
     * 获取 slider 的主题配置
     */

/**
     * 获取 view 中的所有 geome
     */

/**
     * 获取 view 的数据（过滤后的数据）。
     * @returns 处理过滤器之后的数据。
     */

/**
     * 获取 x 轴或者 y 轴对应的所有 scale 实例。
     * @param dimType x | y
     * @returns x 轴或者 y 轴对应的所有 scale 实例。
     */

/**
     * 获取 y 轴字段的 scales 实例。
     * @returns view 中 Geometry 对于的 y scale 数组
     */

/**
     * 获取一个点的绘制信息。
     * @param mappingDatum
     * @returns draw cfg
     */

/**
     * 获取决定分组的图形属性实例。
     */

/**
     * 获取决定分组的图形属性对应的 scale 实例。
     * @returns
     */

/**
     * 获取分类图例的配置项
     * @param geometry
     * @param attr
     * @param scale
     * @param custom
     * @param legendOption
     */

/**
     * 获取分面数据
     * @param conditions
     */

/**
     * 获取包围盒大小
     * @returns 包围盒大小
     */

/**
     * 获取原始数据
     * @returns 传入 G2 的原始数据
     */

/**
     * 获取可调整度量对应的值
     * @param mergedData 数据
     * @return 值的映射
     */

/**
     * 获取图例项
     * @return {ListItem[]} 列表项集合
     */

/**
     * 获取图形绘制的关键点以及数据
     * @param mappingData 映射后的数据
     */

/**
     * 获取圆弧的位置
     */

/**
     * 获取圆弧的长度，计算圆弧长度时不考虑旋转角度，
     * 仅跟 rx, ry, startAngle, endAngle 相关
     * @param {number} cx         圆心 x
     * @param {number} cy         圆心 y
     * @param {number} rx         x 轴方向的半径
     * @param {number} ry         y 轴方向的半径
     * @param {number} xRotation  旋转角度
     * @param {number} startAngle 起始角度
     * @param {number} endAngle   结束角度
     */

/**
     * 获取坐标点与圆心形成的圆的位置信息
     * @param angle
     * @param offset
     * @param point
     * @param isLabelEmit
     */

/**
     * 获取对应的 adjust 实例
     * @param adjustType
     * @returns
     */

/**
     * 获取屏幕像素比
     */

/**
     * 获取布局后的边距 padding
     * @returns
     */

/**
     * 获取当前 Element 上所有的状态。
     * @returns 当前 Element 上所有的状态数组。
     */

/**
     * 获取当前 Geometry 对应的 Shape 工厂实例。
     */

/**
     * 获取当前 label 的最终配置
     * @param labelCfg
     */

/**
     * 获取当前 point 对应的 tooltip 数据项。
     * @param point 坐标点
     * @returns tooltip 数据项
     */

/**
     * 获取当前 shape
     * @returns current shape
     */

/**
     * 获取当前 view 有的 geometries
     * @returns
     */

/**
     * 获取当前 view 的主题配置。
     * @returns themeObject
     */

/**
     * 获取当前坐标系实例。
     * @returns [[Coordinate]]
     */

/**
     * 获取当前时间
     */

/**
     * 获取当前的渲染引擎
     * @return {Renderer} 返回当前的渲染引擎
     */

/**
     * 获取当前的点
     */

/**
     * 获取当前配置中的所有分组 & 分类的字段。
     * @return fields string[]
     */

/**
     * 获取所有的 pure component 组件，用于布局。
     */

/**
     * 获取所有的分组字段的 scale 实例。
     * @returns 获得分组字段的 scale 实例数组。
     */

/**
     * 获取所有的维度名
     */

/**
     * 获取所有需要创建 scale 的字段名称。
     */

/**
     * 获取指定点到圆弧的最近距离的点
     * @param {number} cx         圆心 x
     * @param {number} cy         圆心 y
     * @param {number} rx         x 轴方向的半径
     * @param {number} ry         y 轴方向的半径
     * @param {number} xRotation  旋转角度
     * @param {number} startAngle 起始角度
     * @param {number} endAngle   结束角度
     * @param {number} x0         指定点的 x
     * @param {number} y0         指定点的 y
     * @return {object} 到指定点最近距离的点
     */

/**
     * 获取数据
     */

/**
     * 获取数据对应的唯一 id。
     * @param data Element 对应的绘制数据
     * @returns
     */

/**
     * 获取文本的对齐方式
     * @param item
     * @param index
     * @param total
     * @returns
     */

/**
     * 获取最后一个子元素
     * @return {IElement} 元素
     */

/**
     * 获取栅格线的类型
     * @return {string} 栅格线类型
     */

/**
     * 获取每一个 label 的唯一 id
     * @param mappingData label 对应的图形的绘制数据
     */

/**
     * 获取每个 Shape 对应的关键点数据。
     * @param obj 经过分组 -> 数字化 -> adjust 调整后的数据记录
     * @returns
     */

/**
     * 获取每个 label 的位置
     * @param labelCfg
     * @param mappingData
     * @param index
     * @returns label point
     */

/**
     * 获取每个 label 的偏移量 (矢量)
     * @param labelCfg
     * @param index
     * @param total
     * @return {Point} offsetPoint
     */

/**
     * 获取每条数据对应的图形绘制数据。
     * @param mappingDatum 映射后的数据
     * @returns draw cfg
     */

/**
     * 获取每条数据的 Shape 绘制信息
     * @param obj 经过分组 -> 数字化 -> adjust 调整后的数据记录
     * @returns
     */

/**
     * 获取渲染的 label 类型。
     */

/**
     * 获取画布的 cursor 样式
     * @return {Cursor}
     */

/**
     * 获取第一个子元素
     * @return {IElement} 第一个元素
     */

/**
     * 获取线拾取的宽度
     * @returns {number} 线的拾取宽度
     */

/**
     * 获取组成一条线（一组数据）的所有点以及数据
     * @param mappingData 映射后的数组
     */

/**
     * 获取虚拟 Group。
     * @returns
     */

/**
     * 获取该 Geometry 下所有生成的 shapes。
     * @returns shapes
     */

/**
     * 获取该数据发生图形映射后对应的 Attribute 图形空间数据。
     * @param attr Attribute 图形属性实例。
     * @param obj 需要进行映射的原始数据。
     * @returns
     */

/**
     * 获取该数据在可视化后，对应的画布坐标点。
     * @param data 原始数据记录
     * @returns 对应的画布坐标点
     */

/**
     * 获取这个字段对应的所有值，数组
     * @protected
     * @param data 数据
     * @param field 字段名
     * @return 字段对应的值
     */

/**
     * 获取逼近的点的数据集合
     * @param point 当前坐标点
     * @returns  数据
     */

/**
     * 获取配置
     */

/**
     * 获得 Geometry 中的 scale 对象
     */

/**
     * 获得 coordinate 实例
     * @returns
     */

/**
     * 获得 coordinate 实例
     */

/**
     * 获得 x 轴字段的 scale 实例。
     * @returns view 中 Geometry 对于的 x scale
     */

/**
     * 获得图形的 x y 字段。
     */

/**
     * 获得所有的 legend 对应的 attribute 实例。
     * @returns 维度字段的 Attribute 数组
     */

/**
     * 获得所有的字段
     */

/**
     * 获得最终的 padding
     */

/**
     * 获得根节点 view。
     */

/**
     * 获得每个分面的 region，平分区域
     * @param rows row 总数
     * @param cols col 总数
     * @param xIndex x 方向 index
     * @param yIndex y 方向 index
     */

/**
     * 获得绘制的层级 group。
     * @param layer 层级名称。
     * @returns 对应层级的 Group。
     */

/**
     * 获得缓存组件的 key
     * @param option
     */

/**
     * 获得连续图例的配置
     * @param geometry
     * @param attr
     * @param scale
     * @param legendOption
     */

/**
     * 装载数据源。
     *
     * ```ts
     * view.data([{ city: '杭州', sale: 100 }, { city: '上海', sale: 110 } ]);
     * ```
     *
     * @param data 数据源，json 数组。
     * @returns View
     */

/**
     * 覆写父类方法
     */

/**
     * 覆盖父类
     */

/**
     * 解析 spacing
     */

/**
     * 触发一个事件
     * @param evt
     * @param args
     */

/**
     * 触发委托事件
     * @param  {string}     type 事件类型
     * @param  {GraphEvent} eventObj 事件对象
     */

/**
     * 计算 region，计算实际的像素范围坐标
     * @private
     */

/**
     * 计算分页数
     * @param total
     * @param pageSize
     */

/**
     * 计算包围盒
     * @param {number} cx         圆心 x
     * @param {number} cy         圆心 y
     * @param {number} rx         x 轴方向的半径
     * @param {number} ry         y 轴方向的半径
     * @param {number} xRotation  旋转角度
     * @param {number} startAngle 起始角度
     * @param {number} endAngle   结束角度
     * @return {object} 包围盒对象
     */

/**
     * 计算周长，使用近似法
     * @param {number} x  椭圆中心 x
     * @param {number} y  椭圆中心 y
     * @param {number} rx 椭圆 x 方向半径
     * @param {number} ry 椭圆 y 方向半径
     * @return {number} 椭圆周长
     */

/**
     * 计算坐标线点在极坐标系下角度
     * @param point
     */

/**
     * 计算多折线的包围盒
     * @param {array} points 点的集合 [x,y] 的形式
     * @return {object} 包围盒
     */

/**
     * 计算多折线的长度
     * @param {array} points 点的集合 [x,y] 的形式
     * @return {object} 多条边的长度
     */

/**
     * 计算多边形的包围盒
     * @param {array} points 点的集合 [x,y] 的形式
     * @return {object} 包围盒
     */

/**
     * 计算多边形的长度
     * @param {array} points 点的集合 [x,y] 的形式
     * @return {object} 多边形边的长度
     */

/**
     * 计算相对于画布的包围盒，默认等同于 bbox
     * @return {BBox} 包围盒
     */

/**
     * 计算线段的包围盒
     * @param {number} x1 起始点 x
     * @param {number} y1 起始点 y
     * @param {number} x2 结束点 x
     * @param {number} y2 结束点 y
     * @return {object} 包围盒对象
     */

/**
     * 设置 Element 的状态。
     *
     * 目前 Element 开放三种状态：
     * 1. active
     * 2. selected
     * 3. inactive
     *
     * 这三种状态相互独立，可以进行叠加。
     *
     * 这三种状态的样式可在 [[Theme]] 主题中或者通过 `geometry.state()` 接口进行配置。
     *
     * ```ts
     * // 激活 active 状态
     * setState('active', true);
     * ```
     *
     * @param stateName 状态名
     * @param stateStatus 是否开启状态
     */

/**
     * 设置 WAI-ARIA 无障碍标签。如何根据图形语法自动生成 arial 内容？
     * @param ariaOption
     */

/**
     * 设置 highlight
     */

/**
     * 设置 label 位置
     * @param labelPointCfg
     * @param mappingData
     * @param index
     * @param position
     */

/**
     * 设置 layout 布局函数
     * @param layout 布局函数
     * @returns void
     */

/**
     * 设置 x 坐标轴的文本、title 是否显示
     * @param x
     * @param axes
     * @param option
     * @param facet
     */

/**
     * 设置 y 坐标轴的文本、title 是否显示
     * @param y
     * @param axes
     * @param option
     * @param facet
     */

/**
     * 设置主题。
     *
     * ```ts
     * view.theme('dark'); // 'dark' 需要事先通过 `registerTheme()` 接口注册完成
     *
     * view.theme({ defaultColor: 'red' });
     * ```
     *
     * @param theme 主题名或者主题配置
     * @returns View
     */

/**
     * 设置列表项
     * @param {ListItem[]} items 列表项集合
     */

/**
     * 设置列表项的状态
     * @param {ListItem} item  列表项
     * @param {string}   state 状态名
     * @param {boolean}  value 状态值, true, false
     */

/**
     * 设置数据筛选规则。
     *
     * ```ts
     * view.filter('city', (value: any, datum: Datum) => value !== '杭州');
     *
     * // 删除 'city' 字段对应的筛选规则。
     * view.filter('city', null);
     * ```
     *
     * @param field 数据字段
     * @param condition 筛选规则
     * @returns View
     */

/**
     * 设置数据调整方式。G2 目前内置了四种类型：
     * 1. dodge
     * 2. stack
     * 3. symmetric
     * 4. jitter
     *
     *
     * **Tip**
     * + 对于 'dodge' 类型，可以额外进行如下属性的配置:
     * ```typescript
     * geometry.adjust('dodge', {
     *   marginRatio: 0, // 取 0 到 1 范围的值（相对于每个柱子宽度），用于控制一个分组中柱子之间的间距
     *   dodgeBy: 'x', // 该属性只对 'dodge' 类型生效，声明以哪个数据字段为分组依据
     * });
     * ```
     *
     * + 对于 'stack' 类型，可以额外进行如下属性的配置:
     * ```typescript
     * geometry.adjust('stack', {
     *   reverseOrder: false, // 用于控制是否对数据进行反序操作
     * });
     * ```
     *
     * @example
     * ```typescript
     * geometry.adjust('stack');
     *
     * geometry.adjust({
     *   type: 'stack',
     *   reverseOrder: false,
     * });
     *
     * // 组合使用 adjust
     * geometry.adjust([ 'stack', 'dodge' ]);
     *
     * geometry.adjust([
     *   { type: 'stack' },
     *   { type: 'dodge', dodgeBy: 'x' },
     * ]);
     * ```
     *
     * @param adjustCfg 数据调整配置
     * @returns
     */

/**
     * 设置状态
     */

/**
     * 设置状态对应的样式。
     *
     * @example
     * ```ts
     * chart.interval().state({
     *   selected: {
     *     animate: { duration: 100, easing: 'easeLinear' },
     *     style: {
     *       lineWidth: 2,
     *       stroke: '#000',
     *     },
     *   },
     * });
     * ```
     *
     * 如果图形 shape 是由多个 shape 组成，即为一个 G.Group 对象，那么针对 group 中的每个 shape，我们需要使用下列方式进行状态样式设置：
     * 如果我们为 group 中的每个 shape 设置了 'name' 属性(shape.set('name', 'xx'))，则以 'name' 作为 key，否则默认以索引值（即 shape 的 添加顺序）为 key。
     *
     * ```ts
     * chart.interval().shape('groupShape').state({
     *   selected: {
     *     style: {
     *       0: { lineWidth: 2 },
     *       1: { fillOpacity: 1 },
     *     }
     *   }
     * });
     * ```
     *
     * @param cfg 状态样式
     */

/**
     * 设置状态激活
     * @param enable 状态值
     */

/**
     * 设置画布的 cursor 样式
     * @param {Cursor} cursor  cursor 样式
     */

/**
     * 设置配置项传入的值
     * @param cfg
     */

/**
     * 该方法即将废弃，不建议使用
     * 根据 className 查找元素
     * TODO: 该方式定义暂时只给 G6 3.3 以后的版本使用，待 G6 中的 findByClassName 方法移除后，G 也需要同步移除
     * @param {string} className 元素 className
     * @return {IElement | null} 元素
     */

/**
     * 调整 coordinate 的坐标范围。
     */

/**
     * 调整 offsetRange，因为一些范围的限制
     * @param offsetRange
     */

/**
     * 调整 scale 配置
     * @private
     */

/**
     * 调整 text 的位置，自动躲避
     * 根据位置，调整返回新的位置
     * @param range
     */

/**
     * 调整 y 轴的 scale 范围。
     * 对于 Y 轴为数值轴柱状图，默认从 0 开始 生长。
     */

/**
     * 调整分类 scale 的 range，防止超出坐标系外面
     * @private
     */

/**
     * 调整度量范围。主要针对发生层叠以及一些特殊需求的 Geometry，比如 Interval 下的柱状图 Y 轴默认从 0 开始。
     */

/**
     * 距离椭圆最近的点
     * @param {number} x  椭圆中心 x
     * @param {number} y  椭圆中心 y
     * @param {number} rx 椭圆 x 方向半径
     * @param {number} ry 椭圆 y 方向半径
     * @param {number} x0  指定的点 x
     * @param {number} y0  指定的点 y
     * @return {object} 椭圆上距离指定点最近的点
     */

/**
     * 辅助标记配置。
     *
     * ```ts
     * view.annotation().line({
     *   start: ['min', 85],
     *   end: ['max', 85],
     *   style: {
     *     stroke: '#595959',
     *     lineWidth: 1,
     *     lineDash: [3, 3],
     *   },
     * });
     * ```
     * 更详细的配置项：https://github.com/antvis/component#annotation
     * @returns [[Annotation]]
     */

/**
     * 过滤
     */

/**
     * 过滤数据
     */

/**
     * 过滤隐藏图形
     */

/**
     * 过滤，以开始的点和当前点对数据进行过滤
     */

/**
     * 返回 Element 元素整体的 bbox，包含文本及文本连线（有的话）。
     * @returns 整体包围盒。
     */

/**
     * 返回所有配置信息。
     * @returns 所有的 view API 配置。
     */

/**
     * 进行测量操作
     */

/**
     * 连接 elements
     *
     * @usage
     * registerInteraction('xxx', {
     *   start: [
     *    {
     *      trigger: 'interval:mouseenter',
     *      action: 'element-link-by-color:link',
     *      arg: {
     *        // style: { fill: 'red' }
     *        style: (style, element) => ({ fill: 'red' })
     *     },
     *   },
     *  ],
     * });
     */

/**
     * 选中
     */

/**
     * 选中节点，允许多选
     */

/**
     * 递归处理 view 的布局，最终是计算各个 view 的 coordinateBBox 和 coordinateInstance
     * @param isUpdate
     */

/**
     * 递归渲染中的数据处理
     * @param isUpdate
     */

/**
     * 递归获取所有的 Geometry
     */

/**
     * 递归计算每个 view 的 padding 值，coordinateBBox 和 coordinateInstance
     * @param isUpdate
     */

/**
     * 通过 key 获取 scale
     * @param key
     */

/**
     * 通过 scale 拿到数据对应的原始的参数
     * @param param
     * @param scale
     * @private
     */

/**
     * 遍历 Geometry，处理 legend 逻辑
     * @param doEach 每个 loop 中的处理方法
     */

/**
     * 配置 position 通道映射规则。
     *
     * @example
     * ```typescript
     * // 数据结构: [{ x: 'A', y: 10, color: 'red' }]
     * geometry.position('x*y');
     * geometry.position([ 'x', 'y' ]);
     * geometry.position({
     *   fields: [ 'x', 'y' ],
     * });
     * ```
     *
     * @param cfg 映射规则
     * @returns
     */

/**
     * 重新渲染
     * @param view
     */

/**
     * 重置 matrix
     * @param matrix 如果传入，则使用，否则使用构造函数中传入的默认 matrix
     */

/**
     * 重置，需要全部清理 checked 和 unchecked
     */

/**
     * 重载：定制 interval label 的默认主题配置
     * @param labelCfg
     */

/**
     * 重载：根据 interval 值的正负来调整 label 偏移量
     * @param labelCfg
     * @param index
     * @param total
     */

/**
     * 销毁
     */

/**
     * 销毁 Geometry 实例。
     */

/**
     * 销毁 element 实例。
     */

/**
     * 销毁。
     */

/**
     * 销毁事件
     */

/**
     * 销毁图表，同时解绑事件，销毁创建的 G.Canvas 实例。
     * @returns void
     */

/**
     * 镜像
     * @param dim
     */

/**
     * 阻止冒泡
     */

/**
     * 阻止浏览器默认的行为
     */

/**
     * 隐藏
     */

/**
     * 隐藏 Tooltip。
     * @returns
     */

/**
     * 隐藏 tooltip。
     * @returns View
     */

/**
     * 隐藏。
     */

/**
     * 隐藏同一层级的 tooltip
     * @param view
     */

/**
     * 隐藏组件
     */

/**
     * 非交互产生的事件
     * @param view
     * @param type
     * @param data
     */

/**
     * 默认光标（通常是一个箭头）
     */

/**
     * 默认的 title 样式，因为有的分面是 title，有的分面配置是 columnTitle、rowTitle
     */

/**
     * 默认的回调函数（用户没有自定义 callback，或者用户自定义 callback 返回空的时候，使用 values 映射）
     * @param params
     */

/**
     * 默认的配置项
     * @returns {object} 默认的配置项
     */

/**
    * 加载对应表情资源，后加入的优先级更高
    * @param plugin
    */

/**
    * 清除 plugin
    * @param name 
    */

/**
    * 设置肤色表情
    * @param emotionId
    */

/**
   *  IM 相关
   */

/**
   * Adds a change listener. It will be called any time an action is dispatched,
   * and some part of the state tree may potentially have changed. You may then
   * call `getState()` to read the current state tree inside the callback.
   *
   * You may call `dispatch()` from a change listener, with the following
   * caveats:
   *
   * 1. The subscriptions are snapshotted just before every `dispatch()` call.
   * If you subscribe or unsubscribe while the listeners are being invoked, this
   * will not have any effect on the `dispatch()` that is currently in progress.
   * However, the next `dispatch()` call, whether nested or not, will use a more
   * recent snapshot of the subscription list.
   *
   * 2. The listener should not expect to see all state changes, as the state
   * might have been updated multiple times during a nested `dispatch()` before
   * the listener is called. It is, however, guaranteed that all subscribers
   * registered before the `dispatch()` started will be called with the latest
   * state by the time it exits.
   *
   * @param {Function} listener A callback to be invoked on every dispatch.
   * @returns {Function} A function to remove this change listener.
   */

/**
   * Dispatches an action. It is the only way to trigger a state change.
   *
   * The `reducer` function, used to create the store, will be called with the
   * current state tree and the given `action`. Its return value will
   * be considered the **next** state of the tree, and the change listeners
   * will be notified.
   *
   * The base implementation only supports plain object actions. If you want to
   * dispatch a Promise, an Observable, a thunk, or something else, you need to
   * wrap your store creating function into the corresponding middleware. For
   * example, see the documentation for the `redux-thunk` package. Even the
   * middleware will eventually dispatch plain object actions using this method.
   *
   * @param {Object} action A plain object representing “what changed”. It is
   * a good idea to keep actions serializable so you can record and replay user
   * sessions, or use the time travelling `redux-devtools`. An action must have
   * a `type` property which may not be `undefined`. It is a good idea to use
   * string constants for action types.
   *
   * @returns {Object} For convenience, the same action object you dispatched.
   *
   * Note that, if you use a custom middleware, it may wrap `dispatch()` to
   * return something else (for example, a Promise you can await).
   */

/**
   * Interoperability point for observable/reactive libraries.
   * @returns {observable} A minimal observable of state changes.
   * For more information, see the observable proposal:
   * https://github.com/tc39/proposal-observable
   */

/**
   * Parse a date string into a Javascript Date object /
   * @method parse
   * @param {string} dateStr Date string
   * @param {string} format Date parse format
   * @param {i18n} I18nSettingsOptional Full or subset of I18N settings
   * @returns {Date|null} Returns Date object. Returns null what date string is invalid or doesn't match format
   */

/**
   * Reads the state tree managed by the store.
   *
   * @returns {any} The current state tree of your application.
   */

/**
   * Replaces the reducer currently used by the store to calculate the state.
   *
   * You might need this if your app implements code splitting and you want to
   * load some of the reducers dynamically. You might also need this if you
   * implement a hot reloading mechanism for Redux.
   *
   * @param {Function} nextReducer The reducer for the store to use instead.
   * @returns {void}
   */

/**
   * This makes a shallow copy of currentListeners so we can use
   * nextListeners as a temporary list while dispatching.
   *
   * This prevents any bugs around consumers calling
   * subscribe/unsubscribe in the middle of a dispatch.
   */

/**
   * gdt Android mpaas 容器
   */

/**
   * gdt Android 标准 容器
   */

/**
   * gdt Ios mpaas 容器
   */

/**
   * gdt Ios 标准 容器
   */

/**
   * mac 不包含 hostVersion
   */

/**
   * 印尼语
   */

/**
   * 在模版里直接写字面量，经过 dx 解析后都会变成 string 类型
   * 目前只对 null 进行处理
   */

/**
   * 尼泊尔语
   */

/**
   * 执行架构相关
   */

/**
   * 新版任务
   */

/**
   * 日文
   */

/**
   * 朝鲜语，韩语
   */

/**
   * 泰语
   */

/**
   * 简体中文
   */

/**
   * 繁体中文（台湾）
   */

/**
   * 繁体中文（香港）
   */

/**
   * 群文件相关
   */

/**
   * 英文
   */

/**
   * 获取已注册的 DinamicX 事件链原子能力 handler
   * @param {string} name - 事件名称
   */

/**
   * 葡萄牙语
   */

/**
   * 越南语
   */

/**
   * 配置中间件，最晚加入的中间件最先被调用，并最后返回
   * @param fn 中间件函数
   * @remark
   * context 中携带接口请求的参数和传递中间变量
   * 1. 总是存在的字段代表入口参数，可以读取，请勿修改
   * 2. 可选的字段代表内部中间件可能产生的中间变量，请勿依赖和改动
   * 3. 尽可能不要使用 context 传递中间变量
   *
   * next 是一个异步函数，代表下一个中间件，Promise 的结果代表调用的结果。
   * 同理，当前中间件需要返回内容（or 抛出异常）作为结果，不可不返回任何内容。
   *
   * 若需要获取 sdk 的 protected 字段，可以参考 src/lib/sdk/middlewares/ 目录
   * 下的内部中间件的函数 this 参数声明，使用时记得通过 fn.bind(sdk) 绑定 this 变量
   */

/**
   * 马来语
   */

/**
  * 生成兜底表情
  * 
  const convertDingtalkEmotionToServerEmotion = (item) => {
  const names = Object.keys(item.names).reduce((names, i18n) => {
    names[i18n] = `[${item.names[i18n]}]`;
    return names;
  }, {});
  return {
    emotionVersion: item.version || '44',
    emotionKey: JSON.stringify(names),
    emotionId: item.emotionId,
    dynamicEmotionId: item.dynamicEmotionId,
    showType: +item.showType,
    skinList: item.skinList,
  };
  }
  */

/**
 *
 * @ignore
 * custom legend 的 items 获取
 * @param themeMarker
 * @param userMarker
 * @param customItems
 */

/**
 *
 * @param direction
 * @param coordinate
 */

/**
 *
 * @param group 分组
 * @param eventName 事件名
 * @param eventObject 事件对象
 */

/**
 *
 * @param styleSheet
 */

/**
 *
 * Animation Frame Scheduler
 *
 * <span class="informal">Perform task when `window.requestAnimationFrame` would fire</span>
 *
 * When `animationFrame` scheduler is used with delay, it will fall back to {@link async} scheduler
 * behaviour.
 *
 * Without delay, `animationFrame` scheduler can be used to create smooth browser animations.
 * It makes sure scheduled task will happen just before next browser content repaint,
 * thus performing animations as efficiently as possible.
 *
 * @example <caption>Schedule div height animation</caption>
 * const div = document.querySelector('.some-div');
 *
 * Rx.Scheduler.schedule(function(height) {
 *   div.style.height = height + "px";
 *
 *   this.schedule(height + 1);  // `this` references currently executing Action,
 *                               // which we reschedule with new state
 * }, 0, 0);
 *
 * // You will see .some-div element growing in height
 *
 *
 * @static true
 * @name animationFrame
 * @owner Scheduler
 */

/**
 *
 * Asap Scheduler
 *
 * <span class="informal">Perform task as fast as it can be performed asynchronously</span>
 *
 * `asap` scheduler behaves the same as {@link async} scheduler when you use it to delay task
 * in time. If however you set delay to `0`, `asap` will wait for current synchronously executing
 * code to end and then it will try to execute given task as fast as possible.
 *
 * `asap` scheduler will do its best to minimize time between end of currently executing code
 * and start of scheduled task. This makes it best candidate for performing so called "deferring".
 * Traditionally this was achieved by calling `setTimeout(deferredTask, 0)`, but that technique involves
 * some (although minimal) unwanted delay.
 *
 * Note that using `asap` scheduler does not necessarily mean that your task will be first to process
 * after currently executing code. In particular, if some task was also scheduled with `asap` before,
 * that task will execute first. That being said, if you need to schedule task asynchronously, but
 * as soon as possible, `asap` scheduler is your best bet.
 *
 * @example <caption>Compare async and asap scheduler</caption>
 *
 * Rx.Scheduler.async.schedule(() => console.log('async')); // scheduling 'async' first...
 * Rx.Scheduler.asap.schedule(() => console.log('asap'));
 *
 * // Logs:
 * // "asap"
 * // "async"
 * // ... but 'asap' goes first!
 *
 * @static true
 * @name asap
 * @owner Scheduler
 */

/**
 *
 * Errors if Observable does not emit a value in given time span, in case of which
 * subscribes to the second Observable.
 *
 * <span class="informal">It's a version of `timeout` operator that let's you specify fallback Observable.</span>
 *
 * <img src="./img/timeoutWith.png" width="100%">
 *
 * `timeoutWith` is a variation of `timeout` operator. It behaves exactly the same,
 * still accepting as a first argument either a number or a Date, which control - respectively -
 * when values of source Observable should be emitted or when it should complete.
 *
 * The only difference is that it accepts a second, required parameter. This parameter
 * should be an Observable which will be subscribed when source Observable fails any timeout check.
 * So whenever regular `timeout` would emit an error, `timeoutWith` will instead start re-emitting
 * values from second Observable. Note that this fallback Observable is not checked for timeouts
 * itself, so it can emit values and complete at arbitrary points in time. From the moment of a second
 * subscription, Observable returned from `timeoutWith` simply mirrors fallback stream. When that
 * stream completes, it completes as well.
 *
 * Scheduler, which in case of `timeout` is provided as as second argument, can be still provided
 * here - as a third, optional parameter. It still is used to schedule timeout checks and -
 * as a consequence - when second Observable will be subscribed, since subscription happens
 * immediately after failing check.
 *
 * @example <caption>Add fallback observable</caption>
 * const seconds = Rx.Observable.interval(1000);
 * const minutes = Rx.Observable.interval(60 * 1000);
 *
 * seconds.timeoutWith(900, minutes)
 *     .subscribe(
 *         value => console.log(value), // After 900ms, will start emitting `minutes`,
 *                                      // since first value of `seconds` will not arrive fast enough.
 *         err => console.log(err) // Would be called after 900ms in case of `timeout`,
 *                                 // but here will never be called.
 *     );
 *
 * @param {number|Date} due Number specifying period within which Observable must emit values
 *                          or Date specifying before when Observable should complete
 * @param {Observable<T>} withObservable Observable which will be subscribed if source fails timeout check.
 * @param {Scheduler} [scheduler] Scheduler controlling when timeout checks occur.
 * @return {Observable<T>} Observable that mirrors behaviour of source or, when timeout check fails, of an Observable
 *                          passed as a second parameter.
 * @method timeoutWith
 * @owner Observable
 */

/**
 *
 * Errors if Observable does not emit a value in given time span.
 *
 * <span class="informal">Timeouts on Observable that doesn't emit values fast enough.</span>
 *
 * <img src="./img/timeout.png" width="100%">
 *
 * `timeout` operator accepts as an argument either a number or a Date.
 *
 * If number was provided, it returns an Observable that behaves like a source
 * Observable, unless there is a period of time where there is no value emitted.
 * So if you provide `100` as argument and first value comes after 50ms from
 * the moment of subscription, this value will be simply re-emitted by the resulting
 * Observable. If however after that 100ms passes without a second value being emitted,
 * stream will end with an error and source Observable will be unsubscribed.
 * These checks are performed throughout whole lifecycle of Observable - from the moment
 * it was subscribed to, until it completes or errors itself. Thus every value must be
 * emitted within specified period since previous value.
 *
 * If provided argument was Date, returned Observable behaves differently. It throws
 * if Observable did not complete before provided Date. This means that periods between
 * emission of particular values do not matter in this case. If Observable did not complete
 * before provided Date, source Observable will be unsubscribed. Other than that, resulting
 * stream behaves just as source Observable.
 *
 * `timeout` accepts also a Scheduler as a second parameter. It is used to schedule moment (or moments)
 * when returned Observable will check if source stream emitted value or completed.
 *
 * @example <caption>Check if ticks are emitted within certain timespan</caption>
 * const seconds = Rx.Observable.interval(1000);
 *
 * seconds.timeout(1100) // Let's use bigger timespan to be safe,
 *                       // since `interval` might fire a bit later then scheduled.
 * .subscribe(
 *     value => console.log(value), // Will emit numbers just as regular `interval` would.
 *     err => console.log(err) // Will never be called.
 * );
 *
 * seconds.timeout(900).subscribe(
 *     value => console.log(value), // Will never be called.
 *     err => console.log(err) // Will emit error before even first value is emitted,
 *                             // since it did not arrive within 900ms period.
 * );
 *
 * @example <caption>Use Date to check if Observable completed</caption>
 * const seconds = Rx.Observable.interval(1000);
 *
 * seconds.timeout(new Date("December 17, 2020 03:24:00"))
 * .subscribe(
 *     value => console.log(value), // Will emit values as regular `interval` would
 *                                  // until December 17, 2020 at 03:24:00.
 *     err => console.log(err) // On December 17, 2020 at 03:24:00 it will emit an error,
 *                             // since Observable did not complete by then.
 * );
 *
 * @see {@link timeoutWith}
 *
 * @param {number|Date} due Number specifying period within which Observable must emit values
 *                          or Date specifying before when Observable should complete
 * @param {Scheduler} [scheduler] Scheduler controlling when timeout checks occur.
 * @return {Observable<T>} Observable that mirrors behaviour of source, unless timeout checks fail.
 * @method timeout
 * @owner Observable
 */

/**
 *
 * Queue Scheduler
 *
 * <span class="informal">Put every next task on a queue, instead of executing it immediately</span>
 *
 * `queue` scheduler, when used with delay, behaves the same as {@link async} scheduler.
 *
 * When used without delay, it schedules given task synchronously - executes it right when
 * it is scheduled. However when called recursively, that is when inside the scheduled task,
 * another task is scheduled with queue scheduler, instead of executing immediately as well,
 * that task will be put on a queue and wait for current one to finish.
 *
 * This means that when you execute task with `queue` scheduler, you are sure it will end
 * before any other task scheduled with that scheduler will start.
 *
 * @examples <caption>Schedule recursively first, then do something</caption>
 *
 * Rx.Scheduler.queue.schedule(() => {
 *   Rx.Scheduler.queue.schedule(() => console.log('second')); // will not happen now, but will be put on a queue
 *
 *   console.log('first');
 * });
 *
 * // Logs:
 * // "first"
 * // "second"
 *
 *
 * @example <caption>Reschedule itself recursively</caption>
 *
 * Rx.Scheduler.queue.schedule(function(state) {
 *   if (state !== 0) {
 *     console.log('before', state);
 *     this.schedule(state - 1); // `this` references currently executing Action,
 *                               // which we reschedule with new state
 *     console.log('after', state);
 *   }
 * }, 0, 3);
 *
 * // In scheduler that runs recursively, you would expect:
 * // "before", 3
 * // "before", 2
 * // "before", 1
 * // "after", 1
 * // "after", 2
 * // "after", 3
 *
 * // But with queue it logs:
 * // "before", 3
 * // "after", 3
 * // "before", 2
 * // "after", 2
 * // "before", 1
 * // "after", 1
 *
 *
 * @static true
 * @name queue
 * @owner Scheduler
 */

/**
 *
 * Re-emits all notifications from source Observable with specified scheduler.
 *
 * <span class="informal">Ensure a specific scheduler is used, from outside of an Observable.</span>
 *
 * `observeOn` is an operator that accepts a scheduler as a first parameter, which will be used to reschedule
 * notifications emitted by the source Observable. It might be useful, if you do not have control over
 * internal scheduler of a given Observable, but want to control when its values are emitted nevertheless.
 *
 * Returned Observable emits the same notifications (nexted values, complete and error events) as the source Observable,
 * but rescheduled with provided scheduler. Note that this doesn't mean that source Observables internal
 * scheduler will be replaced in any way. Original scheduler still will be used, but when the source Observable emits
 * notification, it will be immediately scheduled again - this time with scheduler passed to `observeOn`.
 * An anti-pattern would be calling `observeOn` on Observable that emits lots of values synchronously, to split
 * that emissions into asynchronous chunks. For this to happen, scheduler would have to be passed into the source
 * Observable directly (usually into the operator that creates it). `observeOn` simply delays notifications a
 * little bit more, to ensure that they are emitted at expected moments.
 *
 * As a matter of fact, `observeOn` accepts second parameter, which specifies in milliseconds with what delay notifications
 * will be emitted. The main difference between {@link delay} operator and `observeOn` is that `observeOn`
 * will delay all notifications - including error notifications - while `delay` will pass through error
 * from source Observable immediately when it is emitted. In general it is highly recommended to use `delay` operator
 * for any kind of delaying of values in the stream, while using `observeOn` to specify which scheduler should be used
 * for notification emissions in general.
 *
 * @example <caption>Ensure values in subscribe are called just before browser repaint.</caption>
 * const intervals = Rx.Observable.interval(10); // Intervals are scheduled
 *                                               // with async scheduler by default...
 *
 * intervals
 * .observeOn(Rx.Scheduler.animationFrame)       // ...but we will observe on animationFrame
 * .subscribe(val => {                           // scheduler to ensure smooth animation.
 *   someDiv.style.height = val + 'px';
 * });
 *
 * @see {@link delay}
 *
 * @param {IScheduler} scheduler Scheduler that will be used to reschedule notifications from source Observable.
 * @param {number} [delay] Number of milliseconds that states with what delay every notification should be rescheduled.
 * @return {Observable<T>} Observable that emits the same notifications as the source Observable,
 * but with provided scheduler.
 *
 * @method observeOn
 * @owner Observable
 */

/**
 * 2 Dimensional Vector
 * @module vec2
 */

/**
 * 2x2 Matrix
 * @module mat2
 */

/**
 * 2x3 Matrix
 * @module mat2d
 * @description
 * A mat2d contains six elements defined as:
 * <pre>
 * [a, b,
 *  c, d,
 *  tx, ty]
 * </pre>
 * This is a short form for the 3x3 matrix:
 * <pre>
 * [a, b, 0,
 *  c, d, 0,
 *  tx, ty, 1]
 * </pre>
 * The last column is ignored so the array is shorter and operations are faster.
 */

/**
 * 3 Dimensional Vector
 * @module vec3
 */

/**
 * 3x3 Matrix
 * @module mat3
 */

/**
 * 3阶矩阵同2阶向量相乘
 * @param {number[]} m 矩阵
 * @param {number[]} v 二阶向量
 */

/**
 * 3阶矩阵相乘
 * @param {number[]} a 矩阵1
 * @param {number[]} b 矩阵2
 */

/**
 * 4 Dimensional Vector
 * @module vec4
 */

/**
 * 4x4 Matrix<br>Format: column-major, when typed out it looks like row-major<br>The matrices are being post multiplied.
 * @module mat4
 */

/**
 * @deprecated
 *
 * **We recommend using the `configureStore` method
 * of the `@reduxjs/toolkit` package**, which replaces `createStore`.
 *
 * Redux Toolkit is our recommended approach for writing Redux logic today,
 * including store setup, reducers, data fetching, and more.
 *
 * **For more details, please read this Redux docs page:**
 * **https://redux.js.org/introduction/why-rtk-is-redux-today**
 *
 * `configureStore` from Redux Toolkit is an improved version of `createStore` that
 * simplifies setup and helps avoid common bugs.
 *
 * You should not be using the `redux` core package by itself today, except for learning purposes.
 * The `createStore` method from the core `redux` package will not be removed, but we encourage
 * all users to migrate to using Redux Toolkit for all Redux code.
 *
 * If you want to use `createStore` without this visual deprecation warning, use
 * the `legacy_createStore` import instead:
 *
 * `import { legacy_createStore as createStore} from 'redux'`
 *
 */

/**
 * @deprecated
 * @param cardInstanceId
 * @param authContext
 * @param dataSource
 * @returns
 */

/**
 * @deprecated recommend use navigator.language to get current language
 */

/**
 * @deprecated 兼容老接口，可用 `dd.env.platform === 'ios'` 代替
 */

/**
 * @deprecated 兼容老接口，可用 `dd.env.platform === 'notInDingTalk'` 代替
 */

/**
 * @deprecated 兼容老接口，可用 `dd.env.platform === 'pc'` 代替
 */

/**
 * @deprecated 用于比较版本号，适用于钉钉内业务简易的版本比较
 * 例如3.5.0 > 3.4.9, 而semver的版本号则不支持
 * semver的版本号会忽略tag，例如3.5.0-realse.1 跟 3.5.0-realse.2 相等
 */

/**
 * @desc 更新 label (目前没有根据 id 索引，还是会存在一点小问题的，只能根据 idx 索引)
 * @done shape 属性更新
 * @done shape delete
 * @done shape append
 *
 * @param fromShape old labelShape
 * @param toShape new labelShape
 * @param cfg
 */

/**
 * @description 扩展方法，提供 gl-matrix 为提供的方法
 * */

/**
 * @file format-time.js
 *
 * Format seconds as a time string, H:MM:SS or M:SS
 * Supplying a guide (in seconds) will force a number of leading zeros
 * to cover the length of the guide
 *
 * @param  {Number} seconds Number of seconds to be turned into a string
 * @param  {Number} guide   Number (in seconds) to model the string after
 * @return {String}         Time formatted as H:MM:SS or M:SS
 * @private
 * @function formatTime
 */

/**
 * @file utils of label
 */

/**
 * @fileoverview G 的基础接口定义和所有的抽象类
 * @author dxq613@gmail.com
 */

/**
 * @fileoverview Marker
 * @author dxq613@gmail.com
 */

/**
 * @fileoverview arrow
 * @author dengfuping_develop@163.com
 */

/**
 * @fileoverview circle
 * @author dengfuping_develop@163.com
 */

/**
 * @fileoverview clip
 * @author dengfuping_develop@163.com
 */

/**
 * @fileoverview defs
 * @author dengfuping_develop@163.com
 */

/**
 * @fileoverview dom
 * @author dengfuping_develop@163.com
 */

/**
 * @fileoverview ellipse
 * @author dengfuping_develop@163.com
 */

/**
 * @fileoverview gradient
 * @author dengfuping_develop@163.com
 */

/**
 * @fileoverview image
 * @author dengfuping_develop@163.com
 */

/**
 * @fileoverview line
 * @author dengfuping_develop@163.com
 */

/**
 * @fileoverview marker
 * @author dengfuping_develop@163.com
 */

/**
 * @fileoverview path 的一些工具
 * @author dxq613@gmail.com
 */

/**
 * @fileoverview pattern
 * @author dengfuping_develop@163.com
 */

/**
 * @fileoverview polygon
 * @author dengfuping_develop@163.com
 */

/**
 * @fileoverview rect
 * @author dengfuping_develop@163.com
 */

/**
 * @fileoverview shadow
 * @author dengfuping_develop@163.com
 */

/**
 * @fileoverview text
 * @author dengfuping_develop@163.com
 */

/**
 * @fileoverview 事件处理器
 * @author dxq613@gmail.com
 */

/**
 * @fileoverview 判断点是否在多边形内
 * @author dxq613@gmail.com
 */

/**
 * @fileoverview 图片
 * @author dxq613@gmail.com
 */

/**
 * @fileoverview 圆
 * @author dxq613@gmail.com
 */

/**
 * @fileoverview 多边形
 * @author dxq613@gmail.com
 */

/**
 * @fileoverview 文本
 * @author dxq613@gmail.com
 */

/**
 * @fileoverview 椭圆
 * @author dxq613@gmail.com
 */

/**
 * @fileoverview 椭圆的一些计算，
 *  - 周长计算参考：https://www.mathsisfun.com/geometry/ellipse-perimeter.html
 *  - 距离计算参考：https://wet-robots.ghost.io/simple-method-for-distance-to-ellipse/
 * @author dxq613@gmail.com
 */

/**
 * @fileoverview 矩形
 * @author dxq613@gmail.com
 */

/**
 * @fileoverview 矩阵运算，本来是要引入 gl-matrix, 但是考虑到 g-mobile 对大小有限制，同时 g-webgl 使用的 matrix 不一致
 * 所以，这里仅实现 2D 几个运算，上层自己引入 gl-matrix
 * @author dxq613@gmail.com
 */

/**
 * @fileoverview 线
 * @author dxq613@gmail.com
 */

/**
 * @fileoverview 设置画布的箭头，参看：https://www.w3school.com.cn/jsref/prop_style_cursor.asp
 * @author dxq613
 */

/**
 * @function y轴scale的max
 * @param {yScale}
 */

/**
 * @ignore
 * @param sourceArray
 * @param targetArray
 * @param map
 */

/**
 * @ignore
 * Determines whether between is
 * @param value
 * @param start
 * @param end
 * @returns true if between
 */

/**
 * @ignore
 * Determines whether full circle is
 * @param coordinate
 * @returns true if full circle
 */

/**
 * @ignore
 * Determines whether model is change
 * @param currentModel
 * @param preModel
 * @returns
 */

/**
 * @ignore
 * Draws points
 * @param shape
 * @param cfg
 * @param container
 * @param shapeName
 * @param isStroke
 * @returns points
 */

/**
 * @ignore
 * Finds data from geometry by point
 * @param point canvas point
 * @param data an item of geometry.dataArray
 * @param geometry
 * @returns
 */

/**
 * @ignore
 * G2 默认提供的 layout 函数
 * 内置布局函数处理的逻辑：
 *
 * 1. 如果 padding = 'auto'，那么自动根据组件的 direction 来计算 padding 数组
 * 2. 根据 padding 和 direction 去分配对应方向的 padding 数值
 * 3. 移动组件位置
 *
 * 前面 1，2 步骤在 view 中已经做掉了。对于组件响应式布局，可以尝试使用约束布局的方式去求解位置信息。
 * @param view
 */

/**
 * @ignore
 * Gets arc path
 * @param centerX
 * @param centerY
 * @param radius
 * @param startAngleInRadian
 * @param endAngleInRadian
 * @returns
 */

/**
 * @ignore
 * Gets constraint
 * @param coordinate
 * @returns constraint
 */

/**
 * @ignore
 * Gets cpath
 * @param from
 * @param to
 * @returns
 */

/**
 * @ignore
 * Gets qpath
 * @param to
 * @param center
 * @returns
 */

/**
 * @ignore
 * Gets shape attrs
 * @param cfg
 * @param isStroke
 * @param smooth
 * @param registeredShape
 * @param [constraint]
 * @returns
 */

/**
 * @ignore
 * Gets tooltip items
 * @param data
 * @param geometry
 * @param [title]
 * @returns
 */

/**
 * @ignore
 * Gets x dimension length
 * @param coordinate
 * @returns x dimension length
 */

/**
 * @ignore
 * calculate the chart size
 * @param ele DOM element
 * @param autoFit should auto fit
 * @param width chart width which is set by user
 * @param height chart height which is set by user
 * @returns the chart width and height
 */

/**
 * @ignore
 * get
 * @param coordinate
 * @param xScale
 * @param yScale
 * @param dim
 * @returns items
 */

/**
 * @ignore
 * get axis factor
 * @param coordinate
 * @param direction
 * @returns factor
 */

/**
 * @ignore
 * get axis grid items
 * @param coordinate
 * @param scale
 * @param dim
 * @return items
 */

/**
 * @ignore
 * get axis relative region ( 0 ~ 1) by direction when coordinate is polar
 * @param coordinate
 * @returns axis coordinate region
 */

/**
 * @ignore
 * get axis relative region ( 0 ~ 1) by direction when coordinate is rect
 * @param direction
 * @returns axis coordinate region
 */

/**
 * @ignore
 * get circle axis center and radius
 * @param coordinate
 */

/**
 * @ignore
 * get direction after coordinate translate
 * @param direction
 * @param coordinate
 */

/**
 * @ignore
 * get factor by region (real position)
 * @param region
 * @param center
 * @returns factor
 */

/**
 * @ignore
 * get the axis cfg from theme, will mix the common cfg of legend theme
 *
 * @param theme view theme object
 * @param direction axis direction
 * @returns axis theme cfg
 */

/**
 * @ignore
 * get the axis region from coordinate
 * @param coordinate
 * @param direction
 * @returns the axis region (start point, end point)
 */

/**
 * @ignore
 * get the grid theme by type, will mix the common cfg of axis
 * @param theme
 * @param direction
 * @returns theme object
 */

/**
 * @ignore
 * get the legend items
 * @param view
 * @param geometry
 * @param attr
 * @param themeMarker
 * @param markerCfg
 * @returns legend items
 */

/**
 * @ignore
 * get the legend layout from direction
 * @param direction
 * @returns layout 'horizontal' | 'vertical'
 */

/**
 * @ignore
 * get the mapping value by attribute, if mapping value is nil, return def
 * @param attr
 * @param value
 * @param def
 * @returns get mapping value
 */

/**
 * @ignore
 * get the scale name, if alias exist, return alias, or else field
 * @param scale
 * @returns the name of field
 */

/**
 * @ignore
 * highlight，指定图形高亮，其他图形变暗
 */

/**
 * @ignore
 * label 防遮挡布局：为了防止 label 之间相互覆盖同时保证尽可能多 的 label 展示，通过尝试将 label 向**四周偏移**来剔除放不下的 label
 * @param labels 参与布局调整的 label 数组集合
 */

/**
 * @ignore
 * label 防遮挡布局：在不改变 label 位置的情况下对相互重叠的 label 进行调整。
 * 不同于 'overlap' 类型的布局，该布局不会对 label 的位置进行偏移调整。
 * @param labels 参与布局调整的 label 数组集合
 */

/**
 * @ignore
 * legend Controller
 */

/**
 * @ignore
 * omit keys of an object.
 * @param obj
 * @param keys
 */

/**
 * @ignore
 * padding 的解析逻辑
 * @param padding
 * @return [ top, right, bottom, left ]
 */

/**
 * @ignore
 * pads the current string/array with a given value (repeated, if needed) so that the resulting reaches a given length.
 * The padding is applied from the end of the current value.
 *
 * @param source
 * @param targetLength
 * @param padValue
 * @returns
 */

/**
 * @ignore
 * remove html element from its parent
 * @param dom
 */

/**
 * @ignore
 * show grid or not
 * @param axisTheme
 * @param axisOption
 */

/**
 * @ignore
 * whether the axis isVertical
 * @param region
 * @returns isVertical
 */

/**
 * @ignore
 * 为指定的 `field` 字段数据创建 scale
 * @param field 字段名
 * @param [data] 数据集，可为空
 * @param [scaleDef] 列定义，可为空
 * @returns scale 返回创建的 Scale 实例
 */

/**
 * @ignore
 * 从数据模型中的 points 换算角度
 * @param shapeModel
 * @param coordinate
 * @returns
 */

/**
 * @ignore
 * 从配置中获取单个字段的 axis 配置
 * @param axes
 * @param field
 * @returns the axis option of field
 */

/**
 * @ignore
 * 入场
 * 中心点的向四周的生长动画
 * @param element 执行动画的元素
 * @param animateCfg 动画配置
 * @param cfg 额外信息
 */

/**
 * @ignore
 * 入场动画
 * path 的入场动画
 * @param element 执行动画的元素
 * @param animateCfg 动画配置
 * @param cfg 额外信息
 */

/**
 * @ignore
 * 入场动画
 * x 方向的生长
 * @param element 执行动画的元素
 * @param animateCfg 动画配置
 * @param cfg 额外信息
 */

/**
 * @ignore
 * 入场动画
 * y 轴方向上的生长
 * @param element 执行动画的元素
 * @param animateCfg 动画配置
 * @param cfg 额外信息
 */

/**
 * @ignore
 * 分割数据，用于处理在一组点数据中，y 对应的数值存在 null/undefined/NaN 的情况
 * 应用于折线图、区域图以及路径图
 *
 * ```typescript
 * // return [[{x: 1, y: 2}, {x: 3, y: 3}]]
 * getPathPoints([{x: 1, y: 2}, {x: 2, y: null}, {x: 3, y: 3}], true);
 * // return [[{x: 1, y: 2}], [{x: 3, y: 3}]]
 * getPathPoints([{x: 1, y: 2}, {x: 2, y: null}, {x: 3, y: 3}], false);
 * // return [[[{ x: 1, y: 10 }, { x: 2, y: 2 }], [{ x: 9, y: 34 }, { x: 1, y: 1 }]]]
 * getPathPoints([
 *   [{ x: 1, y: 10 }, { x: 2, y: 2 }],
 *   [{ x: 4, y: 2 }, { x: 8, y: NaN }],
 *   [{ x: 9, y: 34 }, { x: 1, y: 1 }],
 * ], true);
 * ```
 *
 * @param points 要进行处理点集合
 * @param connectNulls 是否连接空值数据
 * @param showSinglePoint 是否展示孤立点
 * @returns 返回处理后的点集合
 */

/**
 * @ignore
 * 区域 highlight 的 Action
 */

/**
 * @ignore
 * 单个 shape 动画
 * shape 以自身中心点逐渐放大的进入动画
 * @param shape 参与动画的图形元素
 * @param animateCfg 动画配置
 * @param cfg 额外信息
 */

/**
 * @ignore
 * 单个 shape 动画
 * 消失动画，shape 以自身为中心点的逐渐缩小
 * @param shape 参与动画的图形元素
 * @param animateCfg 动画配置
 * @param cfg 额外信息
 */

/**
 * @ignore
 * 单个 shape 动画
 * 渐现动画
 * @param shape 执行动画的图形元素
 * @param animateCfg 动画配置
 * @param cfg 额外信息
 */

/**
 * @ignore
 * 单个 shape 动画
 * 渐隐动画
 * @param shape 执行动画的图形元素
 * @param animateCfg 动画配置
 * @param cfg 额外信息
 */

/**
 * @ignore
 * 同步 scale
 * @todo 是否可以通过 scale.update() 方法进行更新
 * @param scale 需要同步的 scale 实例
 * @param newScale 同步源 Scale
 */

/**
 * @ignore
 * 坐标点是否在坐标系中
 * @param coordinate
 * @param point
 */

/**
 * @ignore
 * 坐标移动动画
 * @param shape 图形
 * @param animateCfg
 * @param cfg
 */

/**
 * @ignore
 * 如果配置了 position，则使用配置
 * @param axisOption
 * @param def
 */

/**
 * @ignore
 * 对图形元素进行矩阵变换，同时返回变换前的图形矩阵
 * @param shape 进行矩阵变换的图形
 * @param vector 矩阵变换的中心点
 * @param direct 矩阵变换的类型
 */

/**
 * @ignore
 * 将 label 限制在 Plot 范围内，将超出 Plot 范围的 label 可选择进行隐藏或者移动位置
 * @param labels
 * @param cfg
 */

/**
 * @ignore
 * 将 label 限制在画布范围内，简单得将超出画布的 label 往画布内调整
 * @param labels
 * @param cfg
 */

/**
 * @ignore
 * 将归一化后的路径数据转换成坐标
 */

/**
 * @ignore
 * 将点连接成路径 path
 */

/**
 * @ignore
 * 将路径转换为极坐标下的真实路径
 */

/**
 * @ignore
 * 工具函数
 * 根据用户传入的配置为 shape 执行动画
 * @param shape 执行动画的图形元素
 * @param animateCfg 动画配置
 * @param cfg 额外的信息
 */

/**
 * @ignore
 * 执行 Geometry 群组入场动画
 * @param container 执行群组动画的图形元素
 * @param animateCfg 动画配置
 * @param geometryType geometry 类型
 * @param coordinate 坐标系对象
 * @param minYPoint y 轴最小值对应的画布坐标点
 */

/**
 * @ignore
 * 拆分点数据
 * @example
 * // result: [{x: 20, y: 20}, {x: 20, y: 30}]
 * splitPoints({x: 20,y: [20, 30]});
 * @example
 * // result: [{x: 20, y: 20}, {x: 30, y: 30}]
 * splitPoints({x: [20, 30],y: [20, 30]});
 * @param obj
 */

/**
 * @ignore
 * 整体动画
 * 划入入场动画效果
 * @todo 放两张直角坐标系和极坐标系的图
 * @param element 参与动画的图形元素
 * @param animateCfg 动画配置
 * @param cfg 额外信息
 */

/**
 * @ignore
 * 方位常量转实际的 bbox 位置大小
 * @param parentBBox
 * @param bbox
 * @param direction
 */

/**
 * @ignore
 * 是否是自动 padding
 * @param padding
 */

/**
 * @ignore
 * 根据 funnel 关键点绘制漏斗图的 path
 * @param points 图形关键点信息
 * @param nextPoints 下一个数据的图形关键点信息
 * @param isPyramid 是否为尖底漏斗图
 * @returns 返回漏斗图的图形 path
 */

/**
 * @ignore
 * 根据 view 中的组件，计算实际的 padding 数值
 * @param view
 */

/**
 * @ignore
 * 根据关键点获取限定了范围的平滑线
 */

/**
 * @ignore
 * 根据图形元素以及 label 的 bbox 进行调整，如果 label 超出了 shape 的 bbox 则不展示
 */

/**
 * @ignore
 * 根据弧度计算极坐标系下的坐标点
 * @param centerX
 * @param centerY
 * @param radius
 * @param angleInRadian
 * @returns
 */

/**
 * @ignore
 * 根据数据点生成矩形的四个关键点
 * @param pointInfo 数据点信息
 * @param [isPyramid] 是否为尖底漏斗图
 * @returns rect points 返回矩形四个顶点信息
 */

/**
 * @ignore
 * 根据矩形关键点绘制 path
 * @param points 关键点数组
 * @param isClosed path 是否需要闭合
 * @returns 返回矩形的 path
 */

/**
 * @ignore
 * 根据矩形关键点绘制 path
 * @param points 关键点数组
 * @param lineCap 'round'圆角样式
 * @param coor 坐标
 * @returns 返回矩形的 path
 */

/**
 * @ignore
 * 根据角度，获取 ○ 上的点
 * @param center
 * @param r
 * @param angle
 */

/**
 * @ignore
 * 根据起始角度计算绘制扇形的 path
 * @param centerX
 * @param centerY
 * @param radius
 * @param startAngleInRadian
 * @param endAngleInRadian
 * @returns
 */

/**
 * @ignore
 * 沿着 x 方向放大的动画
 * @param shape
 * @param animateCfg
 * @param shapeModel
 */

/**
 * @ignore
 * 沿着 y 方向放大的动画
 * @param shape
 * @param animateCfg
 * @param shapeModel
 */

/**
 * @ignore
 * 清理 highlight 效果
 * @param view View 或者 Chart
 */

/**
 * @ignore
 * 获取 Shape 的图形属性
 * @param cfg
 * @param isStroke 是否需要描边
 * @param isFill 是否需要填充
 * @param [sizeName] 可选，表示图形大小的属性，lineWidth 或者 r
 * @returns
 */

/**
 * @ignore
 * 获取 elementName 对应的动画配置，当声明了 `animateType`，则返回 `animateType` 对应的动画配置
 * @param elementName 元素名称
 * @param coordinate 做表弟类型
 * @param animateType 可选，动画类型
 */

/**
 * @ignore
 * 获取 facet title 的最佳默认配置，防止
 */

/**
 * @ignore
 * 获取同坐标系范围相同的剪切区域
 * @param coordinate
 * @returns
 */

/**
 * @ignore
 * 获取当前点到坐标系圆心的距离
 * @param coordinate 坐标系
 * @param point 当前点
 * @returns distance to center
 */

/**
 * @ignore
 * 获取点到圆心的连线与水平方向的夹角
 */

/**
 * @ignore
 * 获取需要替换的属性，如果原先图形元素存在，而新图形不存在，则设置 undefined
 */

/**
 * @ignore
 * 计算光滑的贝塞尔曲线
 */

/**
 * @ignore
 * 计算多边形重心: https://en.wikipedia.org/wiki/Centroid#Of_a_polygon
 */

/**
 * @ignore
 * 设置多个元素的 highlight
 * @param elements 元素集合
 * @param callback 设置回调函数
 * @param enable 设置或者取消
 */

/**
 * @ignore
 * 贝塞尔曲线
 */

/**
 * @ignore
 * 饼图更新动画
 * @param shape 文本图形
 * @param animateCfg
 * @param cfg
 */

/**
 * @ignore
 */

/**
 * @method shareReplay
 * @owner Observable
 */

/**
 * @param bufferSize
 * @param windowTime
 * @param selectorOrScheduler
 * @param scheduler
 * @return {Observable<T> | ConnectableObservable<T>}
 * @method publishReplay
 * @owner Observable
 */

/**
 * @param func
 * @return {Observable<R>}
 * @method let
 * @owner Observable
 */

/**
 * @param observables
 * @return {Observable<R>}
 * @method zip
 * @owner Observable
 */

/**
 * @param project
 * @return {Observable<R>|WebSocketSubject<T>|Observable<T>}
 * @method zipAll
 * @owner Observable
 */

/**
 * @param scheduler
 * @return {Observable<TimeInterval<any>>|WebSocketSubject<T>|Observable<T>}
 * @method timeInterval
 * @owner Observable
 */

/**
 * @param scheduler
 * @return {Observable<Timestamp<any>>|WebSocketSubject<T>|Observable<T>}
 * @method timestamp
 * @owner Observable
 */

/**
 * @param value
 * @return {ConnectableObservable<T>}
 * @method publishBehavior
 * @owner Observable
 */

/**
 * @param { Promise } promise
 * @param { Object= } errorExt - Additional Information you can pass to the err object
 * @return { Promise }
 */

/**
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @param {Function} [fn] The function to customize comparisons.
 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
 * @example
 *
 * function isGreeting(value) {
 *   return /^h(?:i|ello)$/.test(value);
 * }
 *
 * function customizer(objValue, othValue) {
 *   if (isGreeting(objValue) && isGreeting(othValue)) {
 *     return true;
 *   }
 * }
 *
 * var array = ['hello', 'goodbye'];
 * var other = ['hi', 'goodbye'];
 *
 * isEqualWith(array, other, customizer);  // => true
 */

/**
 * @param {Array} arr The array to iterate over.
 * @param {Function} [fn] The iteratee invoked per element.
 * @return {*} Returns the maximum value.
 * @example
 *
 * var objects = [{ 'n': 1 }, { 'n': 2 }];
 *
 * maxBy(objects, function(o) { return o.n; });
 * // => { 'n': 2 }
 *
 * maxBy(objects, 'n');
 * // => { 'n': 2 }
 */

/**
 * @param {Array} arr The array to iterate over.
 * @param {Function} [fn] The iteratee invoked per element.
 * @return {*} Returns the minimum value.
 * @example
 *
 * var objects = [{ 'n': 1 }, { 'n': 2 }];
 *
 * minBy(objects, function(o) { return o.n; });
 * // => { 'n': 1 }
 *
 * minBy(objects, 'n');
 * // => { 'n': 1 }
 */

/**
 * @param {Array} arr The array to iterate over.
 * @return {*} Returns the maximum value.
 * @example
 *
 * max([1, 2]);
 * // => 2
 *
 * max([]);
 * // => undefined
 *
 * const data = new Array(1250010).fill(1).map((d,idx) => idx);
 *
 * max(data);
 * // => 1250010
 * // Math.max(...data) will encounter "Maximum call stack size exceeded" error
 */

/**
 * @param {Array} arr The array to iterate over.
 * @return {*} Returns the minimum value.
 * @example
 *
 * min([1, 2]);
 * // => 1
 *
 * min([]);
 * // => undefined
 *
 * const data = new Array(1250010).fill(1).map((d,idx) => idx);
 *
 * min(data);
 * // => 1250010
 * // Math.min(...data) will encounter "Maximum call stack size exceeded" error
 */

/**
 * @param {any} obj The object to inspect.
 * @returns {boolean} True if the argument appears to be a plain object.
 */

/**
 * @private
 * 1. 获取投影轴
 */

/**
 * @private
 * 2. 获取多边形在投影轴上的投影
 *
 * 向量的点积的其中一个几何含义是：一个向量在平行于另一个向量方向上的投影的数值乘积。
 * 由于投影轴是单位向量（长度为1），投影的长度为 x1 * x2 + y1 * y2
 */

/**
 * @private
 * 绕指定点顺时针旋转后的点坐标
 * 默认绕原点旋转
 */

/**
 * @private
 * 转化为顶点坐标数组
 *
 * @param {Object} box
 */

/**
 * @return {ConnectableObservable<T>}
 * @method publishLast
 * @owner Observable
 */

/**
 * @see {@link ajax}
 *
 * @class AjaxTimeoutError
 */

/**
 * @todo Whether it can(or necessary to) keep consistent with the structure of G.Event or directly use the structure of G.Event
 * G2 事件的事件包装类，基于 G.Event
 */

/**
 * A normalized AJAX error.
 *
 * @see {@link ajax}
 *
 * @class AjaxError
 */

/**
 * A normalized AJAX response.
 *
 * @see {@link ajax}
 *
 * @class AjaxResponse
 */

/**
 * Action 的基类
 */

/**
 * ActionSheet控件 单选列表
 * @apiName device.notification.actionSheet
 * @supportVersion  pc: 3.0.0 ios: 2.4.0 android: 2.4.0
 */

/**
 * Adapted from React: https://github.com/facebook/react/blob/master/packages/shared/formatProdErrorMessage.js
 *
 * Do not require this module directly! Use normal throw error calls. These messages will be replaced with error codes
 * during build.
 * @param {number} code
 */

/**
 * Adds two dual quat's
 *
 * @param {quat2} out the receiving dual quaternion
 * @param {ReadonlyQuat2} a the first operand
 * @param {ReadonlyQuat2} b the second operand
 * @returns {quat2} out
 * @function
 */

/**
 * Adds two mat2's
 *
 * @param {mat2} out the receiving matrix
 * @param {ReadonlyMat2} a the first operand
 * @param {ReadonlyMat2} b the second operand
 * @returns {mat2} out
 */

/**
 * Adds two mat2's after multiplying each element of the second operand by a scalar value.
 *
 * @param {mat2} out the receiving vector
 * @param {ReadonlyMat2} a the first operand
 * @param {ReadonlyMat2} b the second operand
 * @param {Number} scale the amount to scale b's elements by before adding
 * @returns {mat2} out
 */

/**
 * Adds two mat2d's
 *
 * @param {mat2d} out the receiving matrix
 * @param {ReadonlyMat2d} a the first operand
 * @param {ReadonlyMat2d} b the second operand
 * @returns {mat2d} out
 */

/**
 * Adds two mat2d's after multiplying each element of the second operand by a scalar value.
 *
 * @param {mat2d} out the receiving vector
 * @param {ReadonlyMat2d} a the first operand
 * @param {ReadonlyMat2d} b the second operand
 * @param {Number} scale the amount to scale b's elements by before adding
 * @returns {mat2d} out
 */

/**
 * Adds two mat3's
 *
 * @param {mat3} out the receiving matrix
 * @param {ReadonlyMat3} a the first operand
 * @param {ReadonlyMat3} b the second operand
 * @returns {mat3} out
 */

/**
 * Adds two mat3's after multiplying each element of the second operand by a scalar value.
 *
 * @param {mat3} out the receiving vector
 * @param {ReadonlyMat3} a the first operand
 * @param {ReadonlyMat3} b the second operand
 * @param {Number} scale the amount to scale b's elements by before adding
 * @returns {mat3} out
 */

/**
 * Adds two mat4's
 *
 * @param {mat4} out the receiving matrix
 * @param {ReadonlyMat4} a the first operand
 * @param {ReadonlyMat4} b the second operand
 * @returns {mat4} out
 */

/**
 * Adds two mat4's after multiplying each element of the second operand by a scalar value.
 *
 * @param {mat4} out the receiving vector
 * @param {ReadonlyMat4} a the first operand
 * @param {ReadonlyMat4} b the second operand
 * @param {Number} scale the amount to scale b's elements by before adding
 * @returns {mat4} out
 */

/**
 * Adds two quat's
 *
 * @param {quat} out the receiving quaternion
 * @param {ReadonlyQuat} a the first operand
 * @param {ReadonlyQuat} b the second operand
 * @returns {quat} out
 * @function
 */

/**
 * Adds two vec2's
 *
 * @param {vec2} out the receiving vector
 * @param {ReadonlyVec2} a the first operand
 * @param {ReadonlyVec2} b the second operand
 * @returns {vec2} out
 */

/**
 * Adds two vec2's after scaling the second operand by a scalar value
 *
 * @param {vec2} out the receiving vector
 * @param {ReadonlyVec2} a the first operand
 * @param {ReadonlyVec2} b the second operand
 * @param {Number} scale the amount to scale b by before adding
 * @returns {vec2} out
 */

/**
 * Adds two vec3's
 *
 * @param {vec3} out the receiving vector
 * @param {ReadonlyVec3} a the first operand
 * @param {ReadonlyVec3} b the second operand
 * @returns {vec3} out
 */

/**
 * Adds two vec3's after scaling the second operand by a scalar value
 *
 * @param {vec3} out the receiving vector
 * @param {ReadonlyVec3} a the first operand
 * @param {ReadonlyVec3} b the second operand
 * @param {Number} scale the amount to scale b by before adding
 * @returns {vec3} out
 */

/**
 * Adds two vec4's
 *
 * @param {vec4} out the receiving vector
 * @param {ReadonlyVec4} a the first operand
 * @param {ReadonlyVec4} b the second operand
 * @returns {vec4} out
 */

/**
 * Adds two vec4's after scaling the second operand by a scalar value
 *
 * @param {vec4} out the receiving vector
 * @param {ReadonlyVec4} a the first operand
 * @param {ReadonlyVec4} b the second operand
 * @param {Number} scale the amount to scale b by before adding
 * @returns {vec4} out
 */

/**
 * Alias for {@link mat2.multiply}
 * @function
 */

/**
 * Alias for {@link mat2.subtract}
 * @function
 */

/**
 * Alias for {@link mat2d.multiply}
 * @function
 */

/**
 * Alias for {@link mat2d.subtract}
 * @function
 */

/**
 * Alias for {@link mat3.multiply}
 * @function
 */

/**
 * Alias for {@link mat3.subtract}
 * @function
 */

/**
 * Alias for {@link mat4.multiply}
 * @function
 */

/**
 * Alias for {@link mat4.orthoNO}
 * @function
 */

/**
 * Alias for {@link mat4.perspectiveNO}
 * @function
 */

/**
 * Alias for {@link mat4.subtract}
 * @function
 */

/**
 * Alias for {@link quat.length}
 * @function
 */

/**
 * Alias for {@link quat.multiply}
 * @function
 */

/**
 * Alias for {@link quat.squaredLength}
 * @function
 */

/**
 * Alias for {@link quat2.length}
 * @function
 */

/**
 * Alias for {@link quat2.multiply}
 * @function
 */

/**
 * Alias for {@link quat2.squaredLength}
 * @function
 */

/**
 * Alias for {@link vec2.distance}
 * @function
 */

/**
 * Alias for {@link vec2.divide}
 * @function
 */

/**
 * Alias for {@link vec2.length}
 * @function
 */

/**
 * Alias for {@link vec2.multiply}
 * @function
 */

/**
 * Alias for {@link vec2.squaredDistance}
 * @function
 */

/**
 * Alias for {@link vec2.squaredLength}
 * @function
 */

/**
 * Alias for {@link vec2.subtract}
 * @function
 */

/**
 * Alias for {@link vec3.distance}
 * @function
 */

/**
 * Alias for {@link vec3.divide}
 * @function
 */

/**
 * Alias for {@link vec3.length}
 * @function
 */

/**
 * Alias for {@link vec3.multiply}
 * @function
 */

/**
 * Alias for {@link vec3.squaredDistance}
 * @function
 */

/**
 * Alias for {@link vec3.squaredLength}
 * @function
 */

/**
 * Alias for {@link vec3.subtract}
 * @function
 */

/**
 * Alias for {@link vec4.distance}
 * @function
 */

/**
 * Alias for {@link vec4.divide}
 * @function
 */

/**
 * Alias for {@link vec4.length}
 * @function
 */

/**
 * Alias for {@link vec4.multiply}
 * @function
 */

/**
 * Alias for {@link vec4.squaredDistance}
 * @function
 */

/**
 * Alias for {@link vec4.squaredLength}
 * @function
 */

/**
 * Alias for {@link vec4.subtract}
 * @function
 */

/**
 * Allows for registration of query handlers.
 * Manages the query handler's state and is responsible for wiring up browser events
 *
 * @constructor
 */

/**
 * Allows source Observable to be subscribed only once with a Subject of choice,
 * while still sharing its values between multiple subscribers.
 *
 * <span class="informal">Subscribe to Observable once, but send its values to multiple subscribers.</span>
 *
 * <img src="./img/multicast.png" width="100%">
 *
 * `multicast` is an operator that works in two modes.
 *
 * In the first mode you provide a single argument to it, which can be either an initialized Subject or a Subject
 * factory. As a result you will get a special kind of an Observable - a {@link ConnectableObservable}. It can be
 * subscribed multiple times, just as regular Observable, but it won't subscribe to the source Observable at that
 * moment. It will do it only if you call its `connect` method. This means you can essentially control by hand, when
 * source Observable will be actually subscribed. What is more, ConnectableObservable will share this one subscription
 * between all of its subscribers. This means that, for example, `ajax` Observable will only send a request once,
 * even though usually it would send a request per every subscriber. Since it sends a request at the moment of
 * subscription, here request would be sent when the `connect` method of a ConnectableObservable is called.
 *
 * The most common pattern of using ConnectableObservable is calling `connect` when the first consumer subscribes,
 * keeping the subscription alive while several consumers come and go and finally unsubscribing from the source
 * Observable, when the last consumer unsubscribes. To not implement that logic over and over again,
 * ConnectableObservable has a special operator, `refCount`. When called, it returns an Observable, which will count
 * the number of consumers subscribed to it and keep ConnectableObservable connected as long as there is at least
 * one consumer. So if you don't actually need to decide yourself when to connect and disconnect a
 * ConnectableObservable, use `refCount`.
 *
 * The second mode is invoked by calling `multicast` with an additional, second argument - selector function.
 * This function accepts an Observable - which basically mirrors the source Observable - and returns Observable
 * as well, which should be the input stream modified by any operators you want. Note that in this
 * mode you cannot provide initialized Subject as a first argument - it has to be a Subject factory. If
 * you provide selector function, `multicast` returns just a regular Observable, instead of ConnectableObservable.
 * Thus, as usual, each subscription to this stream triggers subscription to the source Observable. However,
 * if inside the selector function you subscribe to the input Observable multiple times, actual source stream
 * will be subscribed only once. So if you have a chain of operators that use some Observable many times,
 * but you want to subscribe to that Observable only once, this is the mode you would use.
 *
 * Subject provided as a first parameter of `multicast` is used as a proxy for the single subscription to the
 * source Observable. It means that all values from the source stream go through that Subject. Thus, if a Subject
 * has some special properties, Observable returned by `multicast` will have them as well. If you want to use
 * `multicast` with a Subject that is one of the ones included in RxJS by default - {@link Subject},
 * {@link AsyncSubject}, {@link BehaviorSubject}, or {@link ReplaySubject} - simply use {@link publish},
 * {@link publishLast}, {@link publishBehavior} or {@link publishReplay} respectively. These are actually
 * just wrappers around `multicast`, with a specific Subject hardcoded inside.
 *
 * Also, if you use {@link publish} or {@link publishReplay} with a ConnectableObservables `refCount` operator,
 * you can simply use {@link share} and {@link shareReplay} respectively, which chain these two.
 *
 * @example <caption>Use ConnectableObservable</caption>
 * const seconds = Rx.Observable.interval(1000);
 * const connectableSeconds = seconds.multicast(new Subject());
 *
 * connectableSeconds.subscribe(value => console.log('first: ' + value));
 * connectableSeconds.subscribe(value => console.log('second: ' + value));
 *
 * // At this point still nothing happens, even though we subscribed twice.
 *
 * connectableSeconds.connect();
 *
 * // From now on `seconds` are being logged to the console,
 * // twice per every second. `seconds` Observable was however only subscribed once,
 * // so under the hood Observable.interval had only one clock started.
 *
 * @example <caption>Use selector</caption>
 * const seconds = Rx.Observable.interval(1000);
 *
 * seconds
 *     .multicast(
 *         () => new Subject(),
 *         seconds => seconds.zip(seconds) // Usually zip would subscribe to `seconds` twice.
 *                                         // Because we are inside selector, `seconds` is subscribed once,
 *     )                                   // thus starting only one clock used internally by Observable.interval.
 *     .subscribe();
 *
 * @see {@link publish}
 * @see {@link publishLast}
 * @see {@link publishBehavior}
 * @see {@link publishReplay}
 * @see {@link share}
 * @see {@link shareReplay}
 *
 * @param {Function|Subject} subjectOrSubjectFactory - Factory function to create an intermediate Subject through
 * which the source sequence's elements will be multicast to the selector function input Observable or
 * ConnectableObservable returned by the operator.
 * @param {Function} [selector] - Optional selector function that can use the input stream
 * as many times as needed, without causing multiple subscriptions to the source stream.
 * Subscribers to the input source will receive all notifications of the source from the
 * time of the subscription forward.
 * @return {Observable<T>|ConnectableObservable<T>} An Observable that emits the results of invoking the selector
 * on the source stream or a special {@link ConnectableObservable}, if selector was not provided.
 *
 * @method multicast
 * @owner Observable
 */

/**
 * An Extension of Wilkinson's Algorithm for Position Tick Labels on Axes
 * https://www.yuque.com/preview/yuque/0/2019/pdf/185317/1546999150858-45c3b9c2-4e86-4223-bf1a-8a732e8195ed.pdf
 * @param dMin 最小值
 * @param dMax 最大值
 * @param m tick个数
 * @param onlyLoose 是否允许扩展min、max，不绝对强制，例如[3, 97]
 * @param Q nice numbers集合
 * @param w 四个优化组件的权重
 */

/**
 * An error thrown when an Observable or a sequence was queried but has no
 * elements.
 *
 * @see {@link first}
 * @see {@link last}
 * @see {@link single}
 *
 * @class EmptyError
 */

/**
 * An error thrown when an element was queried at a certain index of an
 * Observable, but no such index or position exists in that sequence.
 *
 * @see {@link elementAt}
 * @see {@link take}
 * @see {@link takeLast}
 *
 * @class ArgumentOutOfRangeError
 */

/**
 * An error thrown when duetime elapses.
 *
 * @see {@link timeout}
 *
 * @class TimeoutError
 */

/**
 * Applies an accumulator function over the source Observable where the
 * accumulator function itself returns an Observable, then each intermediate
 * Observable returned is merged into the output Observable.
 *
 * <span class="informal">It's like {@link scan}, but the Observables returned
 * by the accumulator are merged into the outer Observable.</span>
 *
 * @example <caption>Count the number of click events</caption>
 * const click$ = Rx.Observable.fromEvent(document, 'click');
 * const one$ = click$.mapTo(1);
 * const seed = 0;
 * const count$ = one$.mergeScan((acc, one) => Rx.Observable.of(acc + one), seed);
 * count$.subscribe(x => console.log(x));
 *
 * // Results:
 * 1
 * 2
 * 3
 * 4
 * // ...and so on for each click
 *
 * @param {function(acc: R, value: T): Observable<R>} accumulator
 * The accumulator function called on each source value.
 * @param seed The initial accumulation value.
 * @param {number} [concurrent=Number.POSITIVE_INFINITY] Maximum number of
 * input Observables being subscribed to concurrently.
 * @return {Observable<R>} An observable of the accumulated values.
 * @method mergeScan
 * @owner Observable
 */

/**
 * Applies an accumulator function over the source Observable, and returns each
 * intermediate result, with an optional seed value.
 *
 * <span class="informal">It's like {@link reduce}, but emits the current
 * accumulation whenever the source emits a value.</span>
 *
 * <img src="./img/scan.png" width="100%">
 *
 * Combines together all values emitted on the source, using an accumulator
 * function that knows how to join a new source value into the accumulation from
 * the past. Is similar to {@link reduce}, but emits the intermediate
 * accumulations.
 *
 * Returns an Observable that applies a specified `accumulator` function to each
 * item emitted by the source Observable. If a `seed` value is specified, then
 * that value will be used as the initial value for the accumulator. If no seed
 * value is specified, the first item of the source is used as the seed.
 *
 * @example <caption>Count the number of click events</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var ones = clicks.mapTo(1);
 * var seed = 0;
 * var count = ones.scan((acc, one) => acc + one, seed);
 * count.subscribe(x => console.log(x));
 *
 * @see {@link expand}
 * @see {@link mergeScan}
 * @see {@link reduce}
 *
 * @param {function(acc: R, value: T, index: number): R} accumulator
 * The accumulator function called on each source value.
 * @param {T|R} [seed] The initial accumulation value.
 * @return {Observable<R>} An observable of the accumulated values.
 * @method scan
 * @owner Observable
 */

/**
 * Applies an accumulator function over the source Observable, and returns the
 * accumulated result when the source completes, given an optional seed value.
 *
 * <span class="informal">Combines together all values emitted on the source,
 * using an accumulator function that knows how to join a new source value into
 * the accumulation from the past.</span>
 *
 * <img src="./img/reduce.png" width="100%">
 *
 * Like
 * [Array.prototype.reduce()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce),
 * `reduce` applies an `accumulator` function against an accumulation and each
 * value of the source Observable (from the past) to reduce it to a single
 * value, emitted on the output Observable. Note that `reduce` will only emit
 * one value, only when the source Observable completes. It is equivalent to
 * applying operator {@link scan} followed by operator {@link last}.
 *
 * Returns an Observable that applies a specified `accumulator` function to each
 * item emitted by the source Observable. If a `seed` value is specified, then
 * that value will be used as the initial value for the accumulator. If no seed
 * value is specified, the first item of the source is used as the seed.
 *
 * @example <caption>Count the number of click events that happened in 5 seconds</caption>
 * var clicksInFiveSeconds = Rx.Observable.fromEvent(document, 'click')
 *   .takeUntil(Rx.Observable.interval(5000));
 * var ones = clicksInFiveSeconds.mapTo(1);
 * var seed = 0;
 * var count = ones.reduce((acc, one) => acc + one, seed);
 * count.subscribe(x => console.log(x));
 *
 * @see {@link count}
 * @see {@link expand}
 * @see {@link mergeScan}
 * @see {@link scan}
 *
 * @param {function(acc: R, value: T, index: number): R} accumulator The accumulator function
 * called on each source value.
 * @param {R} [seed] The initial accumulation value.
 * @return {Observable<R>} An Observable that emits a single value that is the
 * result of accumulating the values emitted by the source Observable.
 * @method reduce
 * @owner Observable
 */

/**
 * Area 几何标记类。
 * 常用于绘制面积图。
 */

/**
 * Asynchronously subscribes Observers to this Observable on the specified IScheduler.
 *
 * <img src="./img/subscribeOn.png" width="100%">
 *
 * @param {Scheduler} scheduler - The IScheduler to perform subscription actions on.
 * @return {Observable<T>} The source Observable modified so that its subscriptions happen on the specified IScheduler.
 .
 * @method subscribeOn
 * @owner Observable
 */

/**
 * Branch out the source Observable values as a nested Observable starting from
 * an emission from `openings` and ending when the output of `closingSelector`
 * emits.
 *
 * <span class="informal">It's like {@link bufferToggle}, but emits a nested
 * Observable instead of an array.</span>
 *
 * <img src="./img/windowToggle.png" width="100%">
 *
 * Returns an Observable that emits windows of items it collects from the source
 * Observable. The output Observable emits windows that contain those items
 * emitted by the source Observable between the time when the `openings`
 * Observable emits an item and when the Observable returned by
 * `closingSelector` emits an item.
 *
 * @example <caption>Every other second, emit the click events from the next 500ms</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var openings = Rx.Observable.interval(1000);
 * var result = clicks.windowToggle(openings, i =>
 *   i % 2 ? Rx.Observable.interval(500) : Rx.Observable.empty()
 * ).mergeAll();
 * result.subscribe(x => console.log(x));
 *
 * @see {@link window}
 * @see {@link windowCount}
 * @see {@link windowTime}
 * @see {@link windowWhen}
 * @see {@link bufferToggle}
 *
 * @param {Observable<O>} openings An observable of notifications to start new
 * windows.
 * @param {function(value: O): Observable} closingSelector A function that takes
 * the value emitted by the `openings` observable and returns an Observable,
 * which, when it emits (either `next` or `complete`), signals that the
 * associated window should complete.
 * @return {Observable<Observable<T>>} An observable of windows, which in turn
 * are Observables.
 * @method windowToggle
 * @owner Observable
 */

/**
 * Branch out the source Observable values as a nested Observable using a
 * factory function of closing Observables to determine when to start a new
 * window.
 *
 * <span class="informal">It's like {@link bufferWhen}, but emits a nested
 * Observable instead of an array.</span>
 *
 * <img src="./img/windowWhen.png" width="100%">
 *
 * Returns an Observable that emits windows of items it collects from the source
 * Observable. The output Observable emits connected, non-overlapping windows.
 * It emits the current window and opens a new one whenever the Observable
 * produced by the specified `closingSelector` function emits an item. The first
 * window is opened immediately when subscribing to the output Observable.
 *
 * @example <caption>Emit only the first two clicks events in every window of [1-5] random seconds</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var result = clicks
 *   .windowWhen(() => Rx.Observable.interval(1000 + Math.random() * 4000))
 *   .map(win => win.take(2)) // each window has at most 2 emissions
 *   .mergeAll(); // flatten the Observable-of-Observables
 * result.subscribe(x => console.log(x));
 *
 * @see {@link window}
 * @see {@link windowCount}
 * @see {@link windowTime}
 * @see {@link windowToggle}
 * @see {@link bufferWhen}
 *
 * @param {function(): Observable} closingSelector A function that takes no
 * arguments and returns an Observable that signals (on either `next` or
 * `complete`) when to close the previous window and start a new one.
 * @return {Observable<Observable<T>>} An observable of windows, which in turn
 * are Observables.
 * @method windowWhen
 * @owner Observable
 */

/**
 * Branch out the source Observable values as a nested Observable whenever
 * `windowBoundaries` emits.
 *
 * <span class="informal">It's like {@link buffer}, but emits a nested Observable
 * instead of an array.</span>
 *
 * <img src="./img/window.png" width="100%">
 *
 * Returns an Observable that emits windows of items it collects from the source
 * Observable. The output Observable emits connected, non-overlapping
 * windows. It emits the current window and opens a new one whenever the
 * Observable `windowBoundaries` emits an item. Because each window is an
 * Observable, the output is a higher-order Observable.
 *
 * @example <caption>In every window of 1 second each, emit at most 2 click events</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var interval = Rx.Observable.interval(1000);
 * var result = clicks.window(interval)
 *   .map(win => win.take(2)) // each window has at most 2 emissions
 *   .mergeAll(); // flatten the Observable-of-Observables
 * result.subscribe(x => console.log(x));
 *
 * @see {@link windowCount}
 * @see {@link windowTime}
 * @see {@link windowToggle}
 * @see {@link windowWhen}
 * @see {@link buffer}
 *
 * @param {Observable<any>} windowBoundaries An Observable that completes the
 * previous window and starts a new window.
 * @return {Observable<Observable<T>>} An Observable of windows, which are
 * Observables emitting values of the source Observable.
 * @method window
 * @owner Observable
 */

/**
 * Branch out the source Observable values as a nested Observable with each
 * nested Observable emitting at most `windowSize` values.
 *
 * <span class="informal">It's like {@link bufferCount}, but emits a nested
 * Observable instead of an array.</span>
 *
 * <img src="./img/windowCount.png" width="100%">
 *
 * Returns an Observable that emits windows of items it collects from the source
 * Observable. The output Observable emits windows every `startWindowEvery`
 * items, each containing no more than `windowSize` items. When the source
 * Observable completes or encounters an error, the output Observable emits
 * the current window and propagates the notification from the source
 * Observable. If `startWindowEvery` is not provided, then new windows are
 * started immediately at the start of the source and when each window completes
 * with size `windowSize`.
 *
 * @example <caption>Ignore every 3rd click event, starting from the first one</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var result = clicks.windowCount(3)
 *   .map(win => win.skip(1)) // skip first of every 3 clicks
 *   .mergeAll(); // flatten the Observable-of-Observables
 * result.subscribe(x => console.log(x));
 *
 * @example <caption>Ignore every 3rd click event, starting from the third one</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var result = clicks.windowCount(2, 3)
 *   .mergeAll(); // flatten the Observable-of-Observables
 * result.subscribe(x => console.log(x));
 *
 * @see {@link window}
 * @see {@link windowTime}
 * @see {@link windowToggle}
 * @see {@link windowWhen}
 * @see {@link bufferCount}
 *
 * @param {number} windowSize The maximum number of values emitted by each
 * window.
 * @param {number} [startWindowEvery] Interval at which to start a new window.
 * For example if `startWindowEvery` is `2`, then a new window will be started
 * on every other value from the source. A new window is started at the
 * beginning of the source by default.
 * @return {Observable<Observable<T>>} An Observable of windows, which in turn
 * are Observable of values.
 * @method windowCount
 * @owner Observable
 */

/**
 * Buffers the source Observable values for a specific time period.
 *
 * <span class="informal">Collects values from the past as an array, and emits
 * those arrays periodically in time.</span>
 *
 * <img src="./img/bufferTime.png" width="100%">
 *
 * Buffers values from the source for a specific time duration `bufferTimeSpan`.
 * Unless the optional argument `bufferCreationInterval` is given, it emits and
 * resets the buffer every `bufferTimeSpan` milliseconds. If
 * `bufferCreationInterval` is given, this operator opens the buffer every
 * `bufferCreationInterval` milliseconds and closes (emits and resets) the
 * buffer every `bufferTimeSpan` milliseconds. When the optional argument
 * `maxBufferSize` is specified, the buffer will be closed either after
 * `bufferTimeSpan` milliseconds or when it contains `maxBufferSize` elements.
 *
 * @example <caption>Every second, emit an array of the recent click events</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var buffered = clicks.bufferTime(1000);
 * buffered.subscribe(x => console.log(x));
 *
 * @example <caption>Every 5 seconds, emit the click events from the next 2 seconds</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var buffered = clicks.bufferTime(2000, 5000);
 * buffered.subscribe(x => console.log(x));
 *
 * @see {@link buffer}
 * @see {@link bufferCount}
 * @see {@link bufferToggle}
 * @see {@link bufferWhen}
 * @see {@link windowTime}
 *
 * @param {number} bufferTimeSpan The amount of time to fill each buffer array.
 * @param {number} [bufferCreationInterval] The interval at which to start new
 * buffers.
 * @param {number} [maxBufferSize] The maximum buffer size.
 * @param {Scheduler} [scheduler=async] The scheduler on which to schedule the
 * intervals that determine buffer boundaries.
 * @return {Observable<T[]>} An observable of arrays of buffered values.
 * @method bufferTime
 * @owner Observable
 */

/**
 * Buffers the source Observable values starting from an emission from
 * `openings` and ending when the output of `closingSelector` emits.
 *
 * <span class="informal">Collects values from the past as an array. Starts
 * collecting only when `opening` emits, and calls the `closingSelector`
 * function to get an Observable that tells when to close the buffer.</span>
 *
 * <img src="./img/bufferToggle.png" width="100%">
 *
 * Buffers values from the source by opening the buffer via signals from an
 * Observable provided to `openings`, and closing and sending the buffers when
 * a Subscribable or Promise returned by the `closingSelector` function emits.
 *
 * @example <caption>Every other second, emit the click events from the next 500ms</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var openings = Rx.Observable.interval(1000);
 * var buffered = clicks.bufferToggle(openings, i =>
 *   i % 2 ? Rx.Observable.interval(500) : Rx.Observable.empty()
 * );
 * buffered.subscribe(x => console.log(x));
 *
 * @see {@link buffer}
 * @see {@link bufferCount}
 * @see {@link bufferTime}
 * @see {@link bufferWhen}
 * @see {@link windowToggle}
 *
 * @param {SubscribableOrPromise<O>} openings A Subscribable or Promise of notifications to start new
 * buffers.
 * @param {function(value: O): SubscribableOrPromise} closingSelector A function that takes
 * the value emitted by the `openings` observable and returns a Subscribable or Promise,
 * which, when it emits, signals that the associated buffer should be emitted
 * and cleared.
 * @return {Observable<T[]>} An observable of arrays of buffered values.
 * @method bufferToggle
 * @owner Observable
 */

/**
 * Buffers the source Observable values until the size hits the maximum
 * `bufferSize` given.
 *
 * <span class="informal">Collects values from the past as an array, and emits
 * that array only when its size reaches `bufferSize`.</span>
 *
 * <img src="./img/bufferCount.png" width="100%">
 *
 * Buffers a number of values from the source Observable by `bufferSize` then
 * emits the buffer and clears it, and starts a new buffer each
 * `startBufferEvery` values. If `startBufferEvery` is not provided or is
 * `null`, then new buffers are started immediately at the start of the source
 * and when each buffer closes and is emitted.
 *
 * @example <caption>Emit the last two click events as an array</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var buffered = clicks.bufferCount(2);
 * buffered.subscribe(x => console.log(x));
 *
 * @example <caption>On every click, emit the last two click events as an array</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var buffered = clicks.bufferCount(2, 1);
 * buffered.subscribe(x => console.log(x));
 *
 * @see {@link buffer}
 * @see {@link bufferTime}
 * @see {@link bufferToggle}
 * @see {@link bufferWhen}
 * @see {@link pairwise}
 * @see {@link windowCount}
 *
 * @param {number} bufferSize The maximum size of the buffer emitted.
 * @param {number} [startBufferEvery] Interval at which to start a new buffer.
 * For example if `startBufferEvery` is `2`, then a new buffer will be started
 * on every other value from the source. A new buffer is started at the
 * beginning of the source by default.
 * @return {Observable<T[]>} An Observable of arrays of buffered values.
 * @method bufferCount
 * @owner Observable
 */

/**
 * Buffers the source Observable values, using a factory function of closing
 * Observables to determine when to close, emit, and reset the buffer.
 *
 * <span class="informal">Collects values from the past as an array. When it
 * starts collecting values, it calls a function that returns an Observable that
 * tells when to close the buffer and restart collecting.</span>
 *
 * <img src="./img/bufferWhen.png" width="100%">
 *
 * Opens a buffer immediately, then closes the buffer when the observable
 * returned by calling `closingSelector` function emits a value. When it closes
 * the buffer, it immediately opens a new buffer and repeats the process.
 *
 * @example <caption>Emit an array of the last clicks every [1-5] random seconds</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var buffered = clicks.bufferWhen(() =>
 *   Rx.Observable.interval(1000 + Math.random() * 4000)
 * );
 * buffered.subscribe(x => console.log(x));
 *
 * @see {@link buffer}
 * @see {@link bufferCount}
 * @see {@link bufferTime}
 * @see {@link bufferToggle}
 * @see {@link windowWhen}
 *
 * @param {function(): Observable} closingSelector A function that takes no
 * arguments and returns an Observable that signals buffer closure.
 * @return {Observable<T[]>} An observable of arrays of buffered values.
 * @method bufferWhen
 * @owner Observable
 */

/**
 * Calculate the exponential of a unit quaternion.
 *
 * @param {quat} out the receiving quaternion
 * @param {ReadonlyQuat} a quat to calculate the exponential of
 * @returns {quat} out
 */

/**
 * Calculate the natural logarithm of a unit quaternion.
 *
 * @param {quat} out the receiving quaternion
 * @param {ReadonlyQuat} a quat to calculate the exponential of
 * @returns {quat} out
 */

/**
 * Calculate the scalar power of a unit quaternion.
 *
 * @param {quat} out the receiving quaternion
 * @param {ReadonlyQuat} a quat to calculate the exponential of
 * @param {Number} b amount to scale the quaternion by
 * @returns {quat} out
 */

/**
 * Calculates a 3x3 matrix from the given quaternion
 *
 * @param {mat3} out mat3 receiving operation result
 * @param {ReadonlyQuat} q Quaternion to create matrix from
 *
 * @returns {mat3} out
 */

/**
 * Calculates a 3x3 normal matrix (transpose inverse) from the 4x4 matrix
 *
 * @param {mat3} out mat3 receiving operation result
 * @param {ReadonlyMat4} a Mat4 to derive the normal matrix from
 *
 * @returns {mat3} out
 */

/**
 * Calculates a 4x4 matrix from the given quaternion
 *
 * @param {mat4} out mat4 receiving operation result
 * @param {ReadonlyQuat} q Quaternion to create matrix from
 *
 * @returns {mat4} out
 */

/**
 * Calculates the W component of a quat from the X, Y, and Z components.
 * Assumes that quaternion is 1 unit in length.
 * Any existing W component will be ignored.
 *
 * @param {quat} out the receiving quaternion
 * @param {ReadonlyQuat} a quat to calculate W component of
 * @returns {quat} out
 */

/**
 * Calculates the adjugate of a mat2
 *
 * @param {mat2} out the receiving matrix
 * @param {ReadonlyMat2} a the source matrix
 * @returns {mat2} out
 */

/**
 * Calculates the adjugate of a mat3
 *
 * @param {mat3} out the receiving matrix
 * @param {ReadonlyMat3} a the source matrix
 * @returns {mat3} out
 */

/**
 * Calculates the adjugate of a mat4
 *
 * @param {mat4} out the receiving matrix
 * @param {ReadonlyMat4} a the source matrix
 * @returns {mat4} out
 */

/**
 * Calculates the conjugate of a dual quat
 * If the dual quaternion is normalized, this function is faster than quat2.inverse and produces the same result.
 *
 * @param {quat2} out the receiving quaternion
 * @param {ReadonlyQuat2} a quat to calculate conjugate of
 * @returns {quat2} out
 */

/**
 * Calculates the conjugate of a quat
 * If the quaternion is normalized, this function is faster than quat.inverse and produces the same result.
 *
 * @param {quat} out the receiving quaternion
 * @param {ReadonlyQuat} a quat to calculate conjugate of
 * @returns {quat} out
 */

/**
 * Calculates the determinant of a mat2
 *
 * @param {ReadonlyMat2} a the source matrix
 * @returns {Number} determinant of a
 */

/**
 * Calculates the determinant of a mat2d
 *
 * @param {ReadonlyMat2d} a the source matrix
 * @returns {Number} determinant of a
 */

/**
 * Calculates the determinant of a mat3
 *
 * @param {ReadonlyMat3} a the source matrix
 * @returns {Number} determinant of a
 */

/**
 * Calculates the determinant of a mat4
 *
 * @param {ReadonlyMat4} a the source matrix
 * @returns {Number} determinant of a
 */

/**
 * Calculates the dot product of two dual quat's (The dot product of the real parts)
 *
 * @param {ReadonlyQuat2} a the first operand
 * @param {ReadonlyQuat2} b the second operand
 * @returns {Number} dot product of a and b
 * @function
 */

/**
 * Calculates the dot product of two quat's
 *
 * @param {ReadonlyQuat} a the first operand
 * @param {ReadonlyQuat} b the second operand
 * @returns {Number} dot product of a and b
 * @function
 */

/**
 * Calculates the dot product of two vec2's
 *
 * @param {ReadonlyVec2} a the first operand
 * @param {ReadonlyVec2} b the second operand
 * @returns {Number} dot product of a and b
 */

/**
 * Calculates the dot product of two vec3's
 *
 * @param {ReadonlyVec3} a the first operand
 * @param {ReadonlyVec3} b the second operand
 * @returns {Number} dot product of a and b
 */

/**
 * Calculates the dot product of two vec4's
 *
 * @param {ReadonlyVec4} a the first operand
 * @param {ReadonlyVec4} b the second operand
 * @returns {Number} dot product of a and b
 */

/**
 * Calculates the euclidian distance between two vec2's
 *
 * @param {ReadonlyVec2} a the first operand
 * @param {ReadonlyVec2} b the second operand
 * @returns {Number} distance between a and b
 */

/**
 * Calculates the euclidian distance between two vec3's
 *
 * @param {ReadonlyVec3} a the first operand
 * @param {ReadonlyVec3} b the second operand
 * @returns {Number} distance between a and b
 */

/**
 * Calculates the euclidian distance between two vec4's
 *
 * @param {ReadonlyVec4} a the first operand
 * @param {ReadonlyVec4} b the second operand
 * @returns {Number} distance between a and b
 */

/**
 * Calculates the inverse of a dual quat. If they are normalized, conjugate is cheaper
 *
 * @param {quat2} out the receiving dual quaternion
 * @param {ReadonlyQuat2} a dual quat to calculate inverse of
 * @returns {quat2} out
 */

/**
 * Calculates the inverse of a quat
 *
 * @param {quat} out the receiving quaternion
 * @param {ReadonlyQuat} a quat to calculate inverse of
 * @returns {quat} out
 */

/**
 * Calculates the length of a dual quat
 *
 * @param {ReadonlyQuat2} a dual quat to calculate length of
 * @returns {Number} length of a
 * @function
 */

/**
 * Calculates the length of a quat
 *
 * @param {ReadonlyQuat} a vector to calculate length of
 * @returns {Number} length of a
 */

/**
 * Calculates the length of a vec2
 *
 * @param {ReadonlyVec2} a vector to calculate length of
 * @returns {Number} length of a
 */

/**
 * Calculates the length of a vec3
 *
 * @param {ReadonlyVec3} a vector to calculate length of
 * @returns {Number} length of a
 */

/**
 * Calculates the length of a vec4
 *
 * @param {ReadonlyVec4} a vector to calculate length of
 * @returns {Number} length of a
 */

/**
 * Calculates the squared euclidian distance between two vec2's
 *
 * @param {ReadonlyVec2} a the first operand
 * @param {ReadonlyVec2} b the second operand
 * @returns {Number} squared distance between a and b
 */

/**
 * Calculates the squared euclidian distance between two vec3's
 *
 * @param {ReadonlyVec3} a the first operand
 * @param {ReadonlyVec3} b the second operand
 * @returns {Number} squared distance between a and b
 */

/**
 * Calculates the squared euclidian distance between two vec4's
 *
 * @param {ReadonlyVec4} a the first operand
 * @param {ReadonlyVec4} b the second operand
 * @returns {Number} squared distance between a and b
 */

/**
 * Calculates the squared length of a dual quat
 *
 * @param {ReadonlyQuat2} a dual quat to calculate squared length of
 * @returns {Number} squared length of a
 * @function
 */

/**
 * Calculates the squared length of a quat
 *
 * @param {ReadonlyQuat} a vector to calculate squared length of
 * @returns {Number} squared length of a
 * @function
 */

/**
 * Calculates the squared length of a vec2
 *
 * @param {ReadonlyVec2} a vector to calculate squared length of
 * @returns {Number} squared length of a
 */

/**
 * Calculates the squared length of a vec3
 *
 * @param {ReadonlyVec3} a vector to calculate squared length of
 * @returns {Number} squared length of a
 */

/**
 * Calculates the squared length of a vec4
 *
 * @param {ReadonlyVec4} a vector to calculate squared length of
 * @returns {Number} squared length of a
 */

/**
 * Checks if `value` is classified as a `Symbol` primitive or object.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
 * @example
 *
 * _.isSymbol(Symbol.iterator);
 * // => true
 *
 * _.isSymbol('abc');
 * // => false
 */

/**
 * Checks if `value` is object-like. A value is object-like if it's not `null`
 * and has a `typeof` result of "object".
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
 * @example
 *
 * _.isObjectLike({});
 * // => true
 *
 * _.isObjectLike([1, 2, 3]);
 * // => true
 *
 * _.isObjectLike(_.noop);
 * // => false
 *
 * _.isObjectLike(null);
 * // => false
 */

/**
 * Checks if `value` is the
 * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
 * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an object, else `false`.
 * @example
 *
 * _.isObject({});
 * // => true
 *
 * _.isObject([1, 2, 3]);
 * // => true
 *
 * _.isObject(_.noop);
 * // => true
 *
 * _.isObject(null);
 * // => false
 */

/**
 * Collects all source emissions and emits them as an array when the source completes.
 *
 * <span class="informal">Get all values inside an array when the source completes</span>
 *
 * <img src="./img/toArray.png" width="100%">
 *
 * `toArray` will wait until the source Observable completes
 * before emitting the array containing all emissions.
 * When the source Observable errors no array will be emitted.
 *
 * @example <caption>Create array from input</caption>
 * const input = Rx.Observable.interval(100).take(4);
 *
 * input.toArray()
 *   .subscribe(arr => console.log(arr)); // [0,1,2,3]
 *
 * @see {@link buffer}
 *
 * @return {Observable<any[]>|WebSocketSubject<T>|Observable<T>}
 * @method toArray
 * @owner Observable
 */

/**
 * Combines multiple Observables to create an Observable whose values are
 * calculated from the latest values of each of its input Observables.
 *
 * <span class="informal">Whenever any input Observable emits a value, it
 * computes a formula using the latest values from all the inputs, then emits
 * the output of that formula.</span>
 *
 * <img src="./img/combineLatest.png" width="100%">
 *
 * `combineLatest` combines the values from all the Observables passed as
 * arguments. This is done by subscribing to each Observable in order and,
 * whenever any Observable emits, collecting an array of the most recent
 * values from each Observable. So if you pass `n` Observables to operator,
 * returned Observable will always emit an array of `n` values, in order
 * corresponding to order of passed Observables (value from the first Observable
 * on the first place and so on).
 *
 * Static version of `combineLatest` accepts either an array of Observables
 * or each Observable can be put directly as an argument. Note that array of
 * Observables is good choice, if you don't know beforehand how many Observables
 * you will combine. Passing empty array will result in Observable that
 * completes immediately.
 *
 * To ensure output array has always the same length, `combineLatest` will
 * actually wait for all input Observables to emit at least once,
 * before it starts emitting results. This means if some Observable emits
 * values before other Observables started emitting, all that values but last
 * will be lost. On the other hand, is some Observable does not emit value but
 * completes, resulting Observable will complete at the same moment without
 * emitting anything, since it will be now impossible to include value from
 * completed Observable in resulting array. Also, if some input Observable does
 * not emit any value and never completes, `combineLatest` will also never emit
 * and never complete, since, again, it will wait for all streams to emit some
 * value.
 *
 * If at least one Observable was passed to `combineLatest` and all passed Observables
 * emitted something, resulting Observable will complete when all combined
 * streams complete. So even if some Observable completes, result of
 * `combineLatest` will still emit values when other Observables do. In case
 * of completed Observable, its value from now on will always be the last
 * emitted value. On the other hand, if any Observable errors, `combineLatest`
 * will error immediately as well, and all other Observables will be unsubscribed.
 *
 * `combineLatest` accepts as optional parameter `project` function, which takes
 * as arguments all values that would normally be emitted by resulting Observable.
 * `project` can return any kind of value, which will be then emitted by Observable
 * instead of default array. Note that `project` does not take as argument that array
 * of values, but values themselves. That means default `project` can be imagined
 * as function that takes all its arguments and puts them into an array.
 *
 *
 * @example <caption>Combine two timer Observables</caption>
 * const firstTimer = Rx.Observable.timer(0, 1000); // emit 0, 1, 2... after every second, starting from now
 * const secondTimer = Rx.Observable.timer(500, 1000); // emit 0, 1, 2... after every second, starting 0,5s from now
 * const combinedTimers = Rx.Observable.combineLatest(firstTimer, secondTimer);
 * combinedTimers.subscribe(value => console.log(value));
 * // Logs
 * // [0, 0] after 0.5s
 * // [1, 0] after 1s
 * // [1, 1] after 1.5s
 * // [2, 1] after 2s
 *
 *
 * @example <caption>Combine an array of Observables</caption>
 * const observables = [1, 5, 10].map(
 *   n => Rx.Observable.of(n).delay(n * 1000).startWith(0) // emit 0 and then emit n after n seconds
 * );
 * const combined = Rx.Observable.combineLatest(observables);
 * combined.subscribe(value => console.log(value));
 * // Logs
 * // [0, 0, 0] immediately
 * // [1, 0, 0] after 1s
 * // [1, 5, 0] after 5s
 * // [1, 5, 10] after 10s
 *
 *
 * @example <caption>Use project function to dynamically calculate the Body-Mass Index</caption>
 * var weight = Rx.Observable.of(70, 72, 76, 79, 75);
 * var height = Rx.Observable.of(1.76, 1.77, 1.78);
 * var bmi = Rx.Observable.combineLatest(weight, height, (w, h) => w / (h * h));
 * bmi.subscribe(x => console.log('BMI is ' + x));
 *
 * // With output to console:
 * // BMI is 24.212293388429753
 * // BMI is 23.93948099205209
 * // BMI is 23.671253629592222
 *
 *
 * @see {@link combineAll}
 * @see {@link merge}
 * @see {@link withLatestFrom}
 *
 * @param {ObservableInput} observable1 An input Observable to combine with other Observables.
 * @param {ObservableInput} observable2 An input Observable to combine with other Observables.
 * More than one input Observables may be given as arguments
 * or an array of Observables may be given as the first argument.
 * @param {function} [project] An optional function to project the values from
 * the combined latest values into a new value on the output Observable.
 * @param {Scheduler} [scheduler=null] The IScheduler to use for subscribing to
 * each input Observable.
 * @return {Observable} An Observable of projected values from the most recent
 * values from each input Observable, or an array of the most recent values from
 * each input Observable.
 * @static true
 * @name combineLatest
 * @owner Observable
 */

/**
 * Combines multiple Observables to create an Observable whose values are
 * calculated from the latest values of each of its input Observables.
 *
 * <span class="informal">Whenever any input Observable emits a value, it
 * computes a formula using the latest values from all the inputs, then emits
 * the output of that formula.</span>
 *
 * <img src="./img/combineLatest.png" width="100%">
 *
 * `combineLatest` combines the values from this Observable with values from
 * Observables passed as arguments. This is done by subscribing to each
 * Observable, in order, and collecting an array of each of the most recent
 * values any time any of the input Observables emits, then either taking that
 * array and passing it as arguments to an optional `project` function and
 * emitting the return value of that, or just emitting the array of recent
 * values directly if there is no `project` function.
 *
 * @example <caption>Dynamically calculate the Body-Mass Index from an Observable of weight and one for height</caption>
 * var weight = Rx.Observable.of(70, 72, 76, 79, 75);
 * var height = Rx.Observable.of(1.76, 1.77, 1.78);
 * var bmi = weight.combineLatest(height, (w, h) => w / (h * h));
 * bmi.subscribe(x => console.log('BMI is ' + x));
 *
 * // With output to console:
 * // BMI is 24.212293388429753
 * // BMI is 23.93948099205209
 * // BMI is 23.671253629592222
 *
 * @see {@link combineAll}
 * @see {@link merge}
 * @see {@link withLatestFrom}
 *
 * @param {ObservableInput} other An input Observable to combine with the source
 * Observable. More than one input Observables may be given as argument.
 * @param {function} [project] An optional function to project the values from
 * the combined latest values into a new value on the output Observable.
 * @return {Observable} An Observable of projected values from the most recent
 * values from each input Observable, or an array of the most recent values from
 * each input Observable.
 * @method combineLatest
 * @owner Observable
 */

/**
 * Combines multiple Observables to create an Observable whose values are calculated from the values, in order, of each
 * of its input Observables.
 *
 * If the latest parameter is a function, this function is used to compute the created value from the input values.
 * Otherwise, an array of the input values is returned.
 *
 * @example <caption>Combine age and name from different sources</caption>
 *
 * let age$ = Observable.of<number>(27, 25, 29);
 * let name$ = Observable.of<string>('Foo', 'Bar', 'Beer');
 * let isDev$ = Observable.of<boolean>(true, true, false);
 *
 * Observable
 *     .zip(age$,
 *          name$,
 *          isDev$,
 *          (age: number, name: string, isDev: boolean) => ({ age, name, isDev }))
 *     .subscribe(x => console.log(x));
 *
 * // outputs
 * // { age: 27, name: 'Foo', isDev: true }
 * // { age: 25, name: 'Bar', isDev: true }
 * // { age: 29, name: 'Beer', isDev: false }
 *
 * @param observables
 * @return {Observable<R>}
 * @static true
 * @name zip
 * @owner Observable
 */

/**
 * Combines the source Observable with other Observables to create an Observable
 * whose values are calculated from the latest values of each, only when the
 * source emits.
 *
 * <span class="informal">Whenever the source Observable emits a value, it
 * computes a formula using that value plus the latest values from other input
 * Observables, then emits the output of that formula.</span>
 *
 * <img src="./img/withLatestFrom.png" width="100%">
 *
 * `withLatestFrom` combines each value from the source Observable (the
 * instance) with the latest values from the other input Observables only when
 * the source emits a value, optionally using a `project` function to determine
 * the value to be emitted on the output Observable. All input Observables must
 * emit at least one value before the output Observable will emit a value.
 *
 * @example <caption>On every click event, emit an array with the latest timer event plus the click event</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var timer = Rx.Observable.interval(1000);
 * var result = clicks.withLatestFrom(timer);
 * result.subscribe(x => console.log(x));
 *
 * @see {@link combineLatest}
 *
 * @param {ObservableInput} other An input Observable to combine with the source
 * Observable. More than one input Observables may be given as argument.
 * @param {Function} [project] Projection function for combining values
 * together. Receives all values in order of the Observables passed, where the
 * first parameter is a value from the source Observable. (e.g.
 * `a.withLatestFrom(b, c, (a1, b1, c1) => a1 + b1 + c1)`). If this is not
 * passed, arrays will be emitted on the output Observable.
 * @return {Observable} An Observable of projected values from the most recent
 * values from each input Observable, or an array of the most recent values from
 * each input Observable.
 * @method withLatestFrom
 * @owner Observable
 */

/**
 * Common utilities
 * @module glMatrix
 */

/**
 * Compares all values of two observables in sequence using an optional comparor function
 * and returns an observable of a single boolean value representing whether or not the two sequences
 * are equal.
 *
 * <span class="informal">Checks to see of all values emitted by both observables are equal, in order.</span>
 *
 * <img src="./img/sequenceEqual.png" width="100%">
 *
 * `sequenceEqual` subscribes to two observables and buffers incoming values from each observable. Whenever either
 * observable emits a value, the value is buffered and the buffers are shifted and compared from the bottom
 * up; If any value pair doesn't match, the returned observable will emit `false` and complete. If one of the
 * observables completes, the operator will wait for the other observable to complete; If the other
 * observable emits before completing, the returned observable will emit `false` and complete. If one observable never
 * completes or emits after the other complets, the returned observable will never complete.
 *
 * @example <caption>figure out if the Konami code matches</caption>
 * var code = Rx.Observable.from([
 *  "ArrowUp",
 *  "ArrowUp",
 *  "ArrowDown",
 *  "ArrowDown",
 *  "ArrowLeft",
 *  "ArrowRight",
 *  "ArrowLeft",
 *  "ArrowRight",
 *  "KeyB",
 *  "KeyA",
 *  "Enter" // no start key, clearly.
 * ]);
 *
 * var keys = Rx.Observable.fromEvent(document, 'keyup')
 *  .map(e => e.code);
 * var matches = keys.bufferCount(11, 1)
 *  .mergeMap(
 *    last11 =>
 *      Rx.Observable.from(last11)
 *        .sequenceEqual(code)
 *   );
 * matches.subscribe(matched => console.log('Successful cheat at Contra? ', matched));
 *
 * @see {@link combineLatest}
 * @see {@link zip}
 * @see {@link withLatestFrom}
 *
 * @param {Observable} compareTo The observable sequence to compare the source sequence to.
 * @param {function} [comparor] An optional function to compare each value pair
 * @return {Observable} An Observable of a single boolean value representing whether or not
 * the values emitted by both observables were equal in sequence.
 * @method sequenceEqual
 * @owner Observable
 */

/**
 * Component Controller 规范需要定义的基类
 * 1. 规范的 option 输入
 * 2. 统一的信息获取 API
 * 3. 明确定义的组件事件（名称、数据）
 */

/**
 * Composes single-argument functions from right to left. The rightmost
 * function can take multiple arguments as it provides the signature for
 * the resulting composite function.
 *
 * @param {...Function} funcs The functions to compose.
 * @returns {Function} A function obtained by composing the argument functions
 * from right to left. For example, compose(f, g, h) is identical to doing
 * (...args) => f(g(h(...args))).
 */

/**
 * Computes the cross product of two vec2's
 * Note that the cross product must by definition produce a 3D vector
 *
 * @param {vec3} out the receiving vector
 * @param {ReadonlyVec2} a the first operand
 * @param {ReadonlyVec2} b the second operand
 * @returns {vec3} out
 */

/**
 * Computes the cross product of two vec3's
 *
 * @param {vec3} out the receiving vector
 * @param {ReadonlyVec3} a the first operand
 * @param {ReadonlyVec3} b the second operand
 * @returns {vec3} out
 */

/**
 * Convert Degree To Radian
 *
 * @param {Number} a Angle in Degrees
 */

/**
 * Converts `value` to a number.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to process.
 * @returns {number} Returns the number.
 * @example
 *
 * _.toNumber(3.2);
 * // => 3.2
 *
 * _.toNumber(Number.MIN_VALUE);
 * // => 5e-324
 *
 * _.toNumber(Infinity);
 * // => Infinity
 *
 * _.toNumber('3.2');
 * // => 3.2
 */

/**
 * Converts a higher-order Observable into a first-order Observable by
 * concatenating the inner Observables in order.
 *
 * <span class="informal">Flattens an Observable-of-Observables by putting one
 * inner Observable after the other.</span>
 *
 * <img src="./img/concatAll.png" width="100%">
 *
 * Joins every Observable emitted by the source (a higher-order Observable), in
 * a serial fashion. It subscribes to each inner Observable only after the
 * previous inner Observable has completed, and merges all of their values into
 * the returned observable.
 *
 * __Warning:__ If the source Observable emits Observables quickly and
 * endlessly, and the inner Observables it emits generally complete slower than
 * the source emits, you can run into memory issues as the incoming Observables
 * collect in an unbounded buffer.
 *
 * Note: `concatAll` is equivalent to `mergeAll` with concurrency parameter set
 * to `1`.
 *
 * @example <caption>For each click event, tick every second from 0 to 3, with no concurrency</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var higherOrder = clicks.map(ev => Rx.Observable.interval(1000).take(4));
 * var firstOrder = higherOrder.concatAll();
 * firstOrder.subscribe(x => console.log(x));
 *
 * // Results in the following:
 * // (results are not concurrent)
 * // For every click on the "document" it will emit values 0 to 3 spaced
 * // on a 1000ms interval
 * // one click = 1000ms-> 0 -1000ms-> 1 -1000ms-> 2 -1000ms-> 3
 *
 * @see {@link combineAll}
 * @see {@link concat}
 * @see {@link concatMap}
 * @see {@link concatMapTo}
 * @see {@link exhaust}
 * @see {@link mergeAll}
 * @see {@link switch}
 * @see {@link zipAll}
 *
 * @return {Observable} An Observable emitting values from all the inner
 * Observables concatenated.
 * @method concatAll
 * @owner Observable
 */

/**
 * Converts a higher-order Observable into a first-order Observable by
 * subscribing to only the most recently emitted of those inner Observables.
 *
 * <span class="informal">Flattens an Observable-of-Observables by dropping the
 * previous inner Observable once a new one appears.</span>
 *
 * <img src="./img/switch.png" width="100%">
 *
 * `switch` subscribes to an Observable that emits Observables, also known as a
 * higher-order Observable. Each time it observes one of these emitted inner
 * Observables, the output Observable subscribes to the inner Observable and
 * begins emitting the items emitted by that. So far, it behaves
 * like {@link mergeAll}. However, when a new inner Observable is emitted,
 * `switch` unsubscribes from the earlier-emitted inner Observable and
 * subscribes to the new inner Observable and begins emitting items from it. It
 * continues to behave like this for subsequent inner Observables.
 *
 * @example <caption>Rerun an interval Observable on every click event</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * // Each click event is mapped to an Observable that ticks every second
 * var higherOrder = clicks.map((ev) => Rx.Observable.interval(1000));
 * var switched = higherOrder.switch();
 * // The outcome is that `switched` is essentially a timer that restarts
 * // on every click. The interval Observables from older clicks do not merge
 * // with the current interval Observable.
 * switched.subscribe(x => console.log(x));
 *
 * @see {@link combineAll}
 * @see {@link concatAll}
 * @see {@link exhaust}
 * @see {@link mergeAll}
 * @see {@link switchMap}
 * @see {@link switchMapTo}
 * @see {@link zipAll}
 *
 * @return {Observable<T>} An Observable that emits the items emitted by the
 * Observable most recently emitted by the source Observable.
 * @method switch
 * @name switch
 * @owner Observable
 */

/**
 * Converts a higher-order Observable into a first-order Observable by dropping
 * inner Observables while the previous inner Observable has not yet completed.
 *
 * <span class="informal">Flattens an Observable-of-Observables by dropping the
 * next inner Observables while the current inner is still executing.</span>
 *
 * <img src="./img/exhaust.png" width="100%">
 *
 * `exhaust` subscribes to an Observable that emits Observables, also known as a
 * higher-order Observable. Each time it observes one of these emitted inner
 * Observables, the output Observable begins emitting the items emitted by that
 * inner Observable. So far, it behaves like {@link mergeAll}. However,
 * `exhaust` ignores every new inner Observable if the previous Observable has
 * not yet completed. Once that one completes, it will accept and flatten the
 * next inner Observable and repeat this process.
 *
 * @example <caption>Run a finite timer for each click, only if there is no currently active timer</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var higherOrder = clicks.map((ev) => Rx.Observable.interval(1000).take(5));
 * var result = higherOrder.exhaust();
 * result.subscribe(x => console.log(x));
 *
 * @see {@link combineAll}
 * @see {@link concatAll}
 * @see {@link switch}
 * @see {@link mergeAll}
 * @see {@link exhaustMap}
 * @see {@link zipAll}
 *
 * @return {Observable} An Observable that takes a source of Observables and propagates the first observable
 * exclusively until it completes before subscribing to the next.
 * @method exhaust
 * @owner Observable
 */

/**
 * Converts a higher-order Observable into a first-order Observable by waiting
 * for the outer Observable to complete, then applying {@link combineLatest}.
 *
 * <span class="informal">Flattens an Observable-of-Observables by applying
 * {@link combineLatest} when the Observable-of-Observables completes.</span>
 *
 * <img src="./img/combineAll.png" width="100%">
 *
 * Takes an Observable of Observables, and collects all Observables from it.
 * Once the outer Observable completes, it subscribes to all collected
 * Observables and combines their values using the {@link combineLatest}
 * strategy, such that:
 * - Every time an inner Observable emits, the output Observable emits.
 * - When the returned observable emits, it emits all of the latest values by:
 *   - If a `project` function is provided, it is called with each recent value
 *     from each inner Observable in whatever order they arrived, and the result
 *     of the `project` function is what is emitted by the output Observable.
 *   - If there is no `project` function, an array of all of the most recent
 *     values is emitted by the output Observable.
 *
 * @example <caption>Map two click events to a finite interval Observable, then apply combineAll</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var higherOrder = clicks.map(ev =>
 *   Rx.Observable.interval(Math.random()*2000).take(3)
 * ).take(2);
 * var result = higherOrder.combineAll();
 * result.subscribe(x => console.log(x));
 *
 * @see {@link combineLatest}
 * @see {@link mergeAll}
 *
 * @param {function} [project] An optional function to map the most recent
 * values from each inner Observable into a new result. Takes each of the most
 * recent values from each collected inner Observable as arguments, in order.
 * @return {Observable} An Observable of projected results or arrays of recent
 * values.
 * @method combineAll
 * @owner Observable
 */

/**
 * Converts a higher-order Observable into a first-order Observable which
 * concurrently delivers all values that are emitted on the inner Observables.
 *
 * <span class="informal">Flattens an Observable-of-Observables.</span>
 *
 * <img src="./img/mergeAll.png" width="100%">
 *
 * `mergeAll` subscribes to an Observable that emits Observables, also known as
 * a higher-order Observable. Each time it observes one of these emitted inner
 * Observables, it subscribes to that and delivers all the values from the
 * inner Observable on the output Observable. The output Observable only
 * completes once all inner Observables have completed. Any error delivered by
 * a inner Observable will be immediately emitted on the output Observable.
 *
 * @example <caption>Spawn a new interval Observable for each click event, and blend their outputs as one Observable</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var higherOrder = clicks.map((ev) => Rx.Observable.interval(1000));
 * var firstOrder = higherOrder.mergeAll();
 * firstOrder.subscribe(x => console.log(x));
 *
 * @example <caption>Count from 0 to 9 every second for each click, but only allow 2 concurrent timers</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var higherOrder = clicks.map((ev) => Rx.Observable.interval(1000).take(10));
 * var firstOrder = higherOrder.mergeAll(2);
 * firstOrder.subscribe(x => console.log(x));
 *
 * @see {@link combineAll}
 * @see {@link concatAll}
 * @see {@link exhaust}
 * @see {@link merge}
 * @see {@link mergeMap}
 * @see {@link mergeMapTo}
 * @see {@link mergeScan}
 * @see {@link switch}
 * @see {@link zipAll}
 *
 * @param {number} [concurrent=Number.POSITIVE_INFINITY] Maximum number of inner
 * Observables being subscribed to concurrently.
 * @return {Observable} An Observable that emits values coming from all the
 * inner Observables emitted by the source Observable.
 * @method mergeAll
 * @owner Observable
 */

/**
 * Converts an Observable of {@link Notification} objects into the emissions
 * that they represent.
 *
 * <span class="informal">Unwraps {@link Notification} objects as actual `next`,
 * `error` and `complete` emissions. The opposite of {@link materialize}.</span>
 *
 * <img src="./img/dematerialize.png" width="100%">
 *
 * `dematerialize` is assumed to operate an Observable that only emits
 * {@link Notification} objects as `next` emissions, and does not emit any
 * `error`. Such Observable is the output of a `materialize` operation. Those
 * notifications are then unwrapped using the metadata they contain, and emitted
 * as `next`, `error`, and `complete` on the output Observable.
 *
 * Use this operator in conjunction with {@link materialize}.
 *
 * @example <caption>Convert an Observable of Notifications to an actual Observable</caption>
 * var notifA = new Rx.Notification('N', 'A');
 * var notifB = new Rx.Notification('N', 'B');
 * var notifE = new Rx.Notification('E', void 0,
 *   new TypeError('x.toUpperCase is not a function')
 * );
 * var materialized = Rx.Observable.of(notifA, notifB, notifE);
 * var upperCase = materialized.dematerialize();
 * upperCase.subscribe(x => console.log(x), e => console.error(e));
 *
 * // Results in:
 * // A
 * // B
 * // TypeError: x.toUpperCase is not a function
 *
 * @see {@link Notification}
 * @see {@link materialize}
 *
 * @return {Observable} An Observable that emits items and notifications
 * embedded in Notification objects emitted by the source Observable.
 * @method dematerialize
 * @owner Observable
 */

/**
 * Copies the upper-left 3x3 values into the given mat3.
 *
 * @param {mat3} out the receiving 3x3 matrix
 * @param {ReadonlyMat4} a   the source 4x4 matrix
 * @returns {mat3} out
 */

/**
 * Copies the values from a mat2d into a mat3
 *
 * @param {mat3} out the receiving matrix
 * @param {ReadonlyMat2d} a the matrix to copy
 * @returns {mat3} out
 **/

/**
 * Copy the values from one dual quat to another
 *
 * @param {quat2} out the receiving dual quaternion
 * @param {ReadonlyQuat2} a the source dual quaternion
 * @returns {quat2} out
 * @function
 */

/**
 * Copy the values from one mat2 to another
 *
 * @param {mat2} out the receiving matrix
 * @param {ReadonlyMat2} a the source matrix
 * @returns {mat2} out
 */

/**
 * Copy the values from one mat2d to another
 *
 * @param {mat2d} out the receiving matrix
 * @param {ReadonlyMat2d} a the source matrix
 * @returns {mat2d} out
 */

/**
 * Copy the values from one mat3 to another
 *
 * @param {mat3} out the receiving matrix
 * @param {ReadonlyMat3} a the source matrix
 * @returns {mat3} out
 */

/**
 * Copy the values from one mat4 to another
 *
 * @param {mat4} out the receiving matrix
 * @param {ReadonlyMat4} a the source matrix
 * @returns {mat4} out
 */

/**
 * Copy the values from one quat to another
 *
 * @param {quat} out the receiving quaternion
 * @param {ReadonlyQuat} a the source quaternion
 * @returns {quat} out
 * @function
 */

/**
 * Copy the values from one vec2 to another
 *
 * @param {vec2} out the receiving vector
 * @param {ReadonlyVec2} a the source vector
 * @returns {vec2} out
 */

/**
 * Copy the values from one vec3 to another
 *
 * @param {vec3} out the receiving vector
 * @param {ReadonlyVec3} a the source vector
 * @returns {vec3} out
 */

/**
 * Copy the values from one vec4 to another
 *
 * @param {vec4} out the receiving vector
 * @param {ReadonlyVec4} a the source vector
 * @returns {vec4} out
 */

/**
 * Copyright (c) 2014-present, Facebook, Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

/**
 * Counts the number of emissions on the source and emits that number when the
 * source completes.
 *
 * <span class="informal">Tells how many values were emitted, when the source
 * completes.</span>
 *
 * <img src="./img/count.png" width="100%">
 *
 * `count` transforms an Observable that emits values into an Observable that
 * emits a single value that represents the number of values emitted by the
 * source Observable. If the source Observable terminates with an error, `count`
 * will pass this error notification along without emitting a value first. If
 * the source Observable does not terminate at all, `count` will neither emit
 * a value nor terminate. This operator takes an optional `predicate` function
 * as argument, in which case the output emission will represent the number of
 * source values that matched `true` with the `predicate`.
 *
 * @example <caption>Counts how many seconds have passed before the first click happened</caption>
 * var seconds = Rx.Observable.interval(1000);
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var secondsBeforeClick = seconds.takeUntil(clicks);
 * var result = secondsBeforeClick.count();
 * result.subscribe(x => console.log(x));
 *
 * @example <caption>Counts how many odd numbers are there between 1 and 7</caption>
 * var numbers = Rx.Observable.range(1, 7);
 * var result = numbers.count(i => i % 2 === 1);
 * result.subscribe(x => console.log(x));
 *
 * // Results in:
 * // 4
 *
 * @see {@link max}
 * @see {@link min}
 * @see {@link reduce}
 *
 * @param {function(value: T, i: number, source: Observable<T>): boolean} [predicate] A
 * boolean function to select what values are to be counted. It is provided with
 * arguments of:
 * - `value`: the value from the source Observable.
 * - `index`: the (zero-based) "index" of the value from the source Observable.
 * - `source`: the source Observable instance itself.
 * @return {Observable} An Observable of one number that represents the count as
 * described above.
 * @method count
 * @owner Observable
 */

/**
 * Create By Bruce Too
 * On 2020-02-10
 */

/**
 * Create a new mat2 with the given values
 *
 * @param {Number} m00 Component in column 0, row 0 position (index 0)
 * @param {Number} m01 Component in column 0, row 1 position (index 1)
 * @param {Number} m10 Component in column 1, row 0 position (index 2)
 * @param {Number} m11 Component in column 1, row 1 position (index 3)
 * @returns {mat2} out A new 2x2 matrix
 */

/**
 * Create a new mat2d with the given values
 *
 * @param {Number} a Component A (index 0)
 * @param {Number} b Component B (index 1)
 * @param {Number} c Component C (index 2)
 * @param {Number} d Component D (index 3)
 * @param {Number} tx Component TX (index 4)
 * @param {Number} ty Component TY (index 5)
 * @returns {mat2d} A new mat2d
 */

/**
 * Create a new mat3 with the given values
 *
 * @param {Number} m00 Component in column 0, row 0 position (index 0)
 * @param {Number} m01 Component in column 0, row 1 position (index 1)
 * @param {Number} m02 Component in column 0, row 2 position (index 2)
 * @param {Number} m10 Component in column 1, row 0 position (index 3)
 * @param {Number} m11 Component in column 1, row 1 position (index 4)
 * @param {Number} m12 Component in column 1, row 2 position (index 5)
 * @param {Number} m20 Component in column 2, row 0 position (index 6)
 * @param {Number} m21 Component in column 2, row 1 position (index 7)
 * @param {Number} m22 Component in column 2, row 2 position (index 8)
 * @returns {mat3} A new mat3
 */

/**
 * Create a new mat4 with the given values
 *
 * @param {Number} m00 Component in column 0, row 0 position (index 0)
 * @param {Number} m01 Component in column 0, row 1 position (index 1)
 * @param {Number} m02 Component in column 0, row 2 position (index 2)
 * @param {Number} m03 Component in column 0, row 3 position (index 3)
 * @param {Number} m10 Component in column 1, row 0 position (index 4)
 * @param {Number} m11 Component in column 1, row 1 position (index 5)
 * @param {Number} m12 Component in column 1, row 2 position (index 6)
 * @param {Number} m13 Component in column 1, row 3 position (index 7)
 * @param {Number} m20 Component in column 2, row 0 position (index 8)
 * @param {Number} m21 Component in column 2, row 1 position (index 9)
 * @param {Number} m22 Component in column 2, row 2 position (index 10)
 * @param {Number} m23 Component in column 2, row 3 position (index 11)
 * @param {Number} m30 Component in column 3, row 0 position (index 12)
 * @param {Number} m31 Component in column 3, row 1 position (index 13)
 * @param {Number} m32 Component in column 3, row 2 position (index 14)
 * @param {Number} m33 Component in column 3, row 3 position (index 15)
 * @returns {mat4} A new mat4
 */

/**
 * Created by hognwei.huhw on 2017/7/14.
 */

/**
 * Creates a Redux store that holds the state tree.
 *
 * **We recommend using `configureStore` from the
 * `@reduxjs/toolkit` package**, which replaces `createStore`:
 * **https://redux.js.org/introduction/why-rtk-is-redux-today**
 *
 * The only way to change the data in the store is to call `dispatch()` on it.
 *
 * There should only be a single store in your app. To specify how different
 * parts of the state tree respond to actions, you may combine several reducers
 * into a single reducer function by using `combineReducers`.
 *
 * @param {Function} reducer A function that returns the next state tree, given
 * the current state tree and the action to handle.
 *
 * @param {any} [preloadedState] The initial state. You may optionally specify it
 * to hydrate the state from the server in universal apps, or to restore a
 * previously serialized user session.
 * If you use `combineReducers` to produce the root reducer function, this must be
 * an object with the same shape as `combineReducers` keys.
 *
 * @param {Function} [enhancer] The store enhancer. You may optionally specify it
 * to enhance the store with third-party capabilities such as middleware,
 * time travel, persistence, etc. The only store enhancer that ships with Redux
 * is `applyMiddleware()`.
 *
 * @returns {Store} A Redux store that lets you read the state, dispatch actions
 * and subscribe to changes.
 */

/**
 * Creates a debounced function that delays invoking `func` until after `wait`
 * milliseconds have elapsed since the last time the debounced function was
 * invoked. The debounced function comes with a `cancel` method to cancel
 * delayed `func` invocations and a `flush` method to immediately invoke them.
 * Provide `options` to indicate whether `func` should be invoked on the
 * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
 * with the last arguments provided to the debounced function. Subsequent
 * calls to the debounced function return the result of the last `func`
 * invocation.
 *
 * **Note:** If `leading` and `trailing` options are `true`, `func` is
 * invoked on the trailing edge of the timeout only if the debounced function
 * is invoked more than once during the `wait` timeout.
 *
 * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
 * until to the next tick, similar to `setTimeout` with a timeout of `0`.
 *
 * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
 * for details over the differences between `_.debounce` and `_.throttle`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Function
 * @param {Function} func The function to debounce.
 * @param {number} [wait=0] The number of milliseconds to delay.
 * @param {Object} [options={}] The options object.
 * @param {boolean} [options.leading=false]
 *  Specify invoking on the leading edge of the timeout.
 * @param {number} [options.maxWait]
 *  The maximum time `func` is allowed to be delayed before it's invoked.
 * @param {boolean} [options.trailing=true]
 *  Specify invoking on the trailing edge of the timeout.
 * @returns {Function} Returns the new debounced function.
 * @example
 *
 * // Avoid costly calculations while the window size is in flux.
 * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
 *
 * // Invoke `sendMail` when clicked, debouncing subsequent calls.
 * jQuery(element).on('click', _.debounce(sendMail, 300, {
 *   'leading': true,
 *   'trailing': false
 * }));
 *
 * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
 * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
 * var source = new EventSource('/stream');
 * jQuery(source).on('message', debounced);
 *
 * // Cancel the trailing debounced invocation.
 * jQuery(window).on('popstate', debounced.cancel);
 */

/**
 * Creates a dual quat from a quaternion
 *
 * @param {ReadonlyQuat2} dual quaternion receiving operation result
 * @param {ReadonlyQuat} q the quaternion
 * @returns {quat2} dual quaternion receiving operation result
 * @function
 */

/**
 * Creates a dual quat from a quaternion and a translation
 *
 * @param {ReadonlyQuat2} dual quaternion receiving operation result
 * @param {ReadonlyQuat} q a normalized quaternion
 * @param {ReadonlyVec3} t tranlation vector
 * @returns {quat2} dual quaternion receiving operation result
 * @function
 */

/**
 * Creates a dual quat from a translation
 *
 * @param {ReadonlyQuat2} dual quaternion receiving operation result
 * @param {ReadonlyVec3} t translation vector
 * @returns {quat2} dual quaternion receiving operation result
 * @function
 */

/**
 * Creates a matrix from a given angle
 * This is equivalent to (but much faster than):
 *
 *     mat2.identity(dest);
 *     mat2.rotate(dest, dest, rad);
 *
 * @param {mat2} out mat2 receiving operation result
 * @param {Number} rad the angle to rotate the matrix by
 * @returns {mat2} out
 */

/**
 * Creates a matrix from a given angle
 * This is equivalent to (but much faster than):
 *
 *     mat2d.identity(dest);
 *     mat2d.rotate(dest, dest, rad);
 *
 * @param {mat2d} out mat2d receiving operation result
 * @param {Number} rad the angle to rotate the matrix by
 * @returns {mat2d} out
 */

/**
 * Creates a matrix from a given angle
 * This is equivalent to (but much faster than):
 *
 *     mat3.identity(dest);
 *     mat3.rotate(dest, dest, rad);
 *
 * @param {mat3} out mat3 receiving operation result
 * @param {Number} rad the angle to rotate the matrix by
 * @returns {mat3} out
 */

/**
 * Creates a matrix from a given angle around a given axis
 * This is equivalent to (but much faster than):
 *
 *     mat4.identity(dest);
 *     mat4.rotate(dest, dest, rad, axis);
 *
 * @param {mat4} out mat4 receiving operation result
 * @param {Number} rad the angle to rotate the matrix by
 * @param {ReadonlyVec3} axis the axis to rotate around
 * @returns {mat4} out
 */

/**
 * Creates a matrix from a quaternion rotation and vector translation
 * This is equivalent to (but much faster than):
 *
 *     mat4.identity(dest);
 *     mat4.translate(dest, vec);
 *     let quatMat = mat4.create();
 *     quat4.toMat4(quat, quatMat);
 *     mat4.multiply(dest, quatMat);
 *
 * @param {mat4} out mat4 receiving operation result
 * @param {quat4} q Rotation quaternion
 * @param {ReadonlyVec3} v Translation vector
 * @returns {mat4} out
 */

/**
 * Creates a matrix from a quaternion rotation, vector translation and vector scale
 * This is equivalent to (but much faster than):
 *
 *     mat4.identity(dest);
 *     mat4.translate(dest, vec);
 *     let quatMat = mat4.create();
 *     quat4.toMat4(quat, quatMat);
 *     mat4.multiply(dest, quatMat);
 *     mat4.scale(dest, scale)
 *
 * @param {mat4} out mat4 receiving operation result
 * @param {quat4} q Rotation quaternion
 * @param {ReadonlyVec3} v Translation vector
 * @param {ReadonlyVec3} s Scaling vector
 * @returns {mat4} out
 */

/**
 * Creates a matrix from a quaternion rotation, vector translation and vector scale, rotating and scaling around the given origin
 * This is equivalent to (but much faster than):
 *
 *     mat4.identity(dest);
 *     mat4.translate(dest, vec);
 *     mat4.translate(dest, origin);
 *     let quatMat = mat4.create();
 *     quat4.toMat4(quat, quatMat);
 *     mat4.multiply(dest, quatMat);
 *     mat4.scale(dest, scale)
 *     mat4.translate(dest, negativeOrigin);
 *
 * @param {mat4} out mat4 receiving operation result
 * @param {quat4} q Rotation quaternion
 * @param {ReadonlyVec3} v Translation vector
 * @param {ReadonlyVec3} s Scaling vector
 * @param {ReadonlyVec3} o The origin vector around which to scale and rotate
 * @returns {mat4} out
 */

/**
 * Creates a matrix from a vector scaling
 * This is equivalent to (but much faster than):
 *
 *     mat2.identity(dest);
 *     mat2.scale(dest, dest, vec);
 *
 * @param {mat2} out mat2 receiving operation result
 * @param {ReadonlyVec2} v Scaling vector
 * @returns {mat2} out
 */

/**
 * Creates a matrix from a vector scaling
 * This is equivalent to (but much faster than):
 *
 *     mat2d.identity(dest);
 *     mat2d.scale(dest, dest, vec);
 *
 * @param {mat2d} out mat2d receiving operation result
 * @param {ReadonlyVec2} v Scaling vector
 * @returns {mat2d} out
 */

/**
 * Creates a matrix from a vector scaling
 * This is equivalent to (but much faster than):
 *
 *     mat3.identity(dest);
 *     mat3.scale(dest, dest, vec);
 *
 * @param {mat3} out mat3 receiving operation result
 * @param {ReadonlyVec2} v Scaling vector
 * @returns {mat3} out
 */

/**
 * Creates a matrix from a vector scaling
 * This is equivalent to (but much faster than):
 *
 *     mat4.identity(dest);
 *     mat4.scale(dest, dest, vec);
 *
 * @param {mat4} out mat4 receiving operation result
 * @param {ReadonlyVec3} v Scaling vector
 * @returns {mat4} out
 */

/**
 * Creates a matrix from a vector translation
 * This is equivalent to (but much faster than):
 *
 *     mat2d.identity(dest);
 *     mat2d.translate(dest, dest, vec);
 *
 * @param {mat2d} out mat2d receiving operation result
 * @param {ReadonlyVec2} v Translation vector
 * @returns {mat2d} out
 */

/**
 * Creates a matrix from a vector translation
 * This is equivalent to (but much faster than):
 *
 *     mat3.identity(dest);
 *     mat3.translate(dest, dest, vec);
 *
 * @param {mat3} out mat3 receiving operation result
 * @param {ReadonlyVec2} v Translation vector
 * @returns {mat3} out
 */

/**
 * Creates a matrix from a vector translation
 * This is equivalent to (but much faster than):
 *
 *     mat4.identity(dest);
 *     mat4.translate(dest, dest, vec);
 *
 * @param {mat4} out mat4 receiving operation result
 * @param {ReadonlyVec3} v Translation vector
 * @returns {mat4} out
 */

/**
 * Creates a matrix from the given angle around the X axis
 * This is equivalent to (but much faster than):
 *
 *     mat4.identity(dest);
 *     mat4.rotateX(dest, dest, rad);
 *
 * @param {mat4} out mat4 receiving operation result
 * @param {Number} rad the angle to rotate the matrix by
 * @returns {mat4} out
 */

/**
 * Creates a matrix from the given angle around the Y axis
 * This is equivalent to (but much faster than):
 *
 *     mat4.identity(dest);
 *     mat4.rotateY(dest, dest, rad);
 *
 * @param {mat4} out mat4 receiving operation result
 * @param {Number} rad the angle to rotate the matrix by
 * @returns {mat4} out
 */

/**
 * Creates a matrix from the given angle around the Z axis
 * This is equivalent to (but much faster than):
 *
 *     mat4.identity(dest);
 *     mat4.rotateZ(dest, dest, rad);
 *
 * @param {mat4} out mat4 receiving operation result
 * @param {Number} rad the angle to rotate the matrix by
 * @returns {mat4} out
 */

/**
 * Creates a new dual quat from a matrix (4x4)
 *
 * @param {quat2} out the dual quaternion
 * @param {ReadonlyMat4} a the matrix
 * @returns {quat2} dual quat receiving operation result
 * @function
 */

/**
 * Creates a new dual quat from the given values (quat and translation)
 *
 * @param {Number} x1 X component
 * @param {Number} y1 Y component
 * @param {Number} z1 Z component
 * @param {Number} w1 W component
 * @param {Number} x2 X component (translation)
 * @param {Number} y2 Y component (translation)
 * @param {Number} z2 Z component (translation)
 * @returns {quat2} new dual quaternion
 * @function
 */

/**
 * Creates a new dual quat initialized with the given values
 *
 * @param {Number} x1 X component
 * @param {Number} y1 Y component
 * @param {Number} z1 Z component
 * @param {Number} w1 W component
 * @param {Number} x2 X component
 * @param {Number} y2 Y component
 * @param {Number} z2 Z component
 * @param {Number} w2 W component
 * @returns {quat2} new dual quaternion
 * @function
 */

/**
 * Creates a new identity dual quat
 *
 * @returns {quat2} a new dual quaternion [real -> rotation, dual -> translation]
 */

/**
 * Creates a new identity mat2
 *
 * @returns {mat2} a new 2x2 matrix
 */

/**
 * Creates a new identity mat2d
 *
 * @returns {mat2d} a new 2x3 matrix
 */

/**
 * Creates a new identity mat3
 *
 * @returns {mat3} a new 3x3 matrix
 */

/**
 * Creates a new identity mat4
 *
 * @returns {mat4} a new 4x4 matrix
 */

/**
 * Creates a new identity quat
 *
 * @returns {quat} a new quaternion
 */

/**
 * Creates a new mat2 initialized with values from an existing matrix
 *
 * @param {ReadonlyMat2} a matrix to clone
 * @returns {mat2} a new 2x2 matrix
 */

/**
 * Creates a new mat2d initialized with values from an existing matrix
 *
 * @param {ReadonlyMat2d} a matrix to clone
 * @returns {mat2d} a new 2x3 matrix
 */

/**
 * Creates a new mat3 initialized with values from an existing matrix
 *
 * @param {ReadonlyMat3} a matrix to clone
 * @returns {mat3} a new 3x3 matrix
 */

/**
 * Creates a new mat4 from a dual quat.
 *
 * @param {mat4} out Matrix
 * @param {ReadonlyQuat2} a Dual Quaternion
 * @returns {mat4} mat4 receiving operation result
 */

/**
 * Creates a new mat4 initialized with values from an existing matrix
 *
 * @param {ReadonlyMat4} a matrix to clone
 * @returns {mat4} a new 4x4 matrix
 */

/**
 * Creates a new quat initialized with the given values
 *
 * @param {Number} x X component
 * @param {Number} y Y component
 * @param {Number} z Z component
 * @param {Number} w W component
 * @returns {quat} a new quaternion
 * @function
 */

/**
 * Creates a new quat initialized with values from an existing quaternion
 *
 * @param {ReadonlyQuat2} a dual quaternion to clone
 * @returns {quat2} new dual quaternion
 * @function
 */

/**
 * Creates a new quat initialized with values from an existing quaternion
 *
 * @param {ReadonlyQuat} a quaternion to clone
 * @returns {quat} a new quaternion
 * @function
 */

/**
 * Creates a new vec2 initialized with the given values
 *
 * @param {Number} x X component
 * @param {Number} y Y component
 * @returns {vec2} a new 2D vector
 */

/**
 * Creates a new vec2 initialized with values from an existing vector
 *
 * @param {ReadonlyVec2} a vector to clone
 * @returns {vec2} a new 2D vector
 */

/**
 * Creates a new vec3 initialized with the given values
 *
 * @param {Number} x X component
 * @param {Number} y Y component
 * @param {Number} z Z component
 * @returns {vec3} a new 3D vector
 */

/**
 * Creates a new vec3 initialized with values from an existing vector
 *
 * @param {ReadonlyVec3} a vector to clone
 * @returns {vec3} a new 3D vector
 */

/**
 * Creates a new vec4 initialized with the given values
 *
 * @param {Number} x X component
 * @param {Number} y Y component
 * @param {Number} z Z component
 * @param {Number} w W component
 * @returns {vec4} a new 4D vector
 */

/**
 * Creates a new vec4 initialized with values from an existing vector
 *
 * @param {ReadonlyVec4} a vector to clone
 * @returns {vec4} a new 4D vector
 */

/**
 * Creates a new, empty vec2
 *
 * @returns {vec2} a new 2D vector
 */

/**
 * Creates a new, empty vec3
 *
 * @returns {vec3} a new 3D vector
 */

/**
 * Creates a new, empty vec4
 *
 * @returns {vec4} a new 4D vector
 */

/**
 * Creates a quaternion from the given 3x3 rotation matrix.
 *
 * NOTE: The resultant quaternion is not normalized, so you should be sure
 * to renormalize the quaternion yourself where necessary.
 *
 * @param {quat} out the receiving quaternion
 * @param {ReadonlyMat3} m rotation matrix
 * @returns {quat} out
 * @function
 */

/**
 * Creates a quaternion from the given euler angle x, y, z.
 *
 * @param {quat} out the receiving quaternion
 * @param {x} Angle to rotate around X axis in degrees.
 * @param {y} Angle to rotate around Y axis in degrees.
 * @param {z} Angle to rotate around Z axis in degrees.
 * @returns {quat} out
 * @function
 */

/**
 * Creates a store enhancer that applies middleware to the dispatch method
 * of the Redux store. This is handy for a variety of tasks, such as expressing
 * asynchronous actions in a concise manner, or logging every action payload.
 *
 * See `redux-thunk` package as an example of the Redux middleware.
 *
 * Because middleware is potentially asynchronous, this should be the first
 * store enhancer in the composition chain.
 *
 * Note that each middleware will be given the `dispatch` and `getState` functions
 * as named arguments.
 *
 * @param {...Function} middlewares The middleware chain to be applied.
 * @returns {Function} A store enhancer applying the middleware.
 */

/**
 * Creates a throttled function that only invokes `func` at most once per
 * every `wait` milliseconds. The throttled function comes with a `cancel`
 * method to cancel delayed `func` invocations and a `flush` method to
 * immediately invoke them. Provide `options` to indicate whether `func`
 * should be invoked on the leading and/or trailing edge of the `wait`
 * timeout. The `func` is invoked with the last arguments provided to the
 * throttled function. Subsequent calls to the throttled function return the
 * result of the last `func` invocation.
 *
 * **Note:** If `leading` and `trailing` options are `true`, `func` is
 * invoked on the trailing edge of the timeout only if the throttled function
 * is invoked more than once during the `wait` timeout.
 *
 * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
 * until to the next tick, similar to `setTimeout` with a timeout of `0`.
 *
 * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
 * for details over the differences between `_.throttle` and `_.debounce`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Function
 * @param {Function} func The function to throttle.
 * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
 * @param {Object} [options={}] The options object.
 * @param {boolean} [options.leading=true]
 *  Specify invoking on the leading edge of the timeout.
 * @param {boolean} [options.trailing=true]
 *  Specify invoking on the trailing edge of the timeout.
 * @returns {Function} Returns the new throttled function.
 * @example
 *
 * // Avoid excessively updating the position while scrolling.
 * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
 *
 * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
 * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
 * jQuery(element).on('click', throttled);
 *
 * // Cancel the trailing throttled invocation.
 * jQuery(window).on('popstate', throttled.cancel);
 */

/**
 * Creates an object composed of the picked `object` properties.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Object
 * @param {Object} object The source object.
 * @param {...(string|string[])} [paths] The property paths to pick.
 * @returns {Object} Returns the new object.
 * @example
 *
 * var object = { 'a': 1, 'b': '2', 'c': 3 };
 *
 * _.pick(object, ['a', 'c']);
 * // => { 'a': 1, 'c': 3 }
 */

/**
 * Creates an output Observable which concurrently emits all values from every
 * given input Observable.
 *
 * <span class="informal">Flattens multiple Observables together by blending
 * their values into one Observable.</span>
 *
 * <img src="./img/merge.png" width="100%">
 *
 * `merge` subscribes to each given input Observable (either the source or an
 * Observable given as argument), and simply forwards (without doing any
 * transformation) all the values from all the input Observables to the output
 * Observable. The output Observable only completes once all input Observables
 * have completed. Any error delivered by an input Observable will be immediately
 * emitted on the output Observable.
 *
 * @example <caption>Merge together two Observables: 1s interval and clicks</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var timer = Rx.Observable.interval(1000);
 * var clicksOrTimer = clicks.merge(timer);
 * clicksOrTimer.subscribe(x => console.log(x));
 *
 * @example <caption>Merge together 3 Observables, but only 2 run concurrently</caption>
 * var timer1 = Rx.Observable.interval(1000).take(10);
 * var timer2 = Rx.Observable.interval(2000).take(6);
 * var timer3 = Rx.Observable.interval(500).take(10);
 * var concurrent = 2; // the argument
 * var merged = timer1.merge(timer2, timer3, concurrent);
 * merged.subscribe(x => console.log(x));
 *
 * @see {@link mergeAll}
 * @see {@link mergeMap}
 * @see {@link mergeMapTo}
 * @see {@link mergeScan}
 *
 * @param {ObservableInput} other An input Observable to merge with the source
 * Observable. More than one input Observables may be given as argument.
 * @param {number} [concurrent=Number.POSITIVE_INFINITY] Maximum number of input
 * Observables being subscribed to concurrently.
 * @param {Scheduler} [scheduler=null] The IScheduler to use for managing
 * concurrency of input Observables.
 * @return {Observable} An Observable that emits items that are the result of
 * every input Observable.
 * @method merge
 * @owner Observable
 */

/**
 * Creates an output Observable which sequentially emits all values from every
 * given input Observable after the current Observable.
 *
 * <span class="informal">Concatenates multiple Observables together by
 * sequentially emitting their values, one Observable after the other.</span>
 *
 * <img src="./img/concat.png" width="100%">
 *
 * Joins this Observable with multiple other Observables by subscribing to them
 * one at a time, starting with the source, and merging their results into the
 * output Observable. Will wait for each Observable to complete before moving
 * on to the next.
 *
 * @example <caption>Concatenate a timer counting from 0 to 3 with a synchronous sequence from 1 to 10</caption>
 * var timer = Rx.Observable.interval(1000).take(4);
 * var sequence = Rx.Observable.range(1, 10);
 * var result = timer.concat(sequence);
 * result.subscribe(x => console.log(x));
 *
 * // results in:
 * // 1000ms-> 0 -1000ms-> 1 -1000ms-> 2 -1000ms-> 3 -immediate-> 1 ... 10
 *
 * @example <caption>Concatenate 3 Observables</caption>
 * var timer1 = Rx.Observable.interval(1000).take(10);
 * var timer2 = Rx.Observable.interval(2000).take(6);
 * var timer3 = Rx.Observable.interval(500).take(10);
 * var result = timer1.concat(timer2, timer3);
 * result.subscribe(x => console.log(x));
 *
 * // results in the following:
 * // (Prints to console sequentially)
 * // -1000ms-> 0 -1000ms-> 1 -1000ms-> ... 9
 * // -2000ms-> 0 -2000ms-> 1 -2000ms-> ... 5
 * // -500ms-> 0 -500ms-> 1 -500ms-> ... 9
 *
 * @see {@link concatAll}
 * @see {@link concatMap}
 * @see {@link concatMapTo}
 *
 * @param {ObservableInput} other An input Observable to concatenate after the source
 * Observable. More than one input Observables may be given as argument.
 * @param {Scheduler} [scheduler=null] An optional IScheduler to schedule each
 * Observable subscription on.
 * @return {Observable} All values of each passed Observable merged into a
 * single Observable, in order, in serial fashion.
 * @method concat
 * @owner Observable
 */

/**
 * Creates an output Observable which sequentially emits all values from given
 * Observable and then moves on to the next.
 *
 * <span class="informal">Concatenates multiple Observables together by
 * sequentially emitting their values, one Observable after the other.</span>
 *
 * <img src="./img/concat.png" width="100%">
 *
 * `concat` joins multiple Observables together, by subscribing to them one at a time and
 * merging their results into the output Observable. You can pass either an array of
 * Observables, or put them directly as arguments. Passing an empty array will result
 * in Observable that completes immediately.
 *
 * `concat` will subscribe to first input Observable and emit all its values, without
 * changing or affecting them in any way. When that Observable completes, it will
 * subscribe to then next Observable passed and, again, emit its values. This will be
 * repeated, until the operator runs out of Observables. When last input Observable completes,
 * `concat` will complete as well. At any given moment only one Observable passed to operator
 * emits values. If you would like to emit values from passed Observables concurrently, check out
 * {@link merge} instead, especially with optional `concurrent` parameter. As a matter of fact,
 * `concat` is an equivalent of `merge` operator with `concurrent` parameter set to `1`.
 *
 * Note that if some input Observable never completes, `concat` will also never complete
 * and Observables following the one that did not complete will never be subscribed. On the other
 * hand, if some Observable simply completes immediately after it is subscribed, it will be
 * invisible for `concat`, which will just move on to the next Observable.
 *
 * If any Observable in chain errors, instead of passing control to the next Observable,
 * `concat` will error immediately as well. Observables that would be subscribed after
 * the one that emitted error, never will.
 *
 * If you pass to `concat` the same Observable many times, its stream of values
 * will be "replayed" on every subscription, which means you can repeat given Observable
 * as many times as you like. If passing the same Observable to `concat` 1000 times becomes tedious,
 * you can always use {@link repeat}.
 *
 * @example <caption>Concatenate a timer counting from 0 to 3 with a synchronous sequence from 1 to 10</caption>
 * var timer = Rx.Observable.interval(1000).take(4);
 * var sequence = Rx.Observable.range(1, 10);
 * var result = Rx.Observable.concat(timer, sequence);
 * result.subscribe(x => console.log(x));
 *
 * // results in:
 * // 0 -1000ms-> 1 -1000ms-> 2 -1000ms-> 3 -immediate-> 1 ... 10
 *
 *
 * @example <caption>Concatenate an array of 3 Observables</caption>
 * var timer1 = Rx.Observable.interval(1000).take(10);
 * var timer2 = Rx.Observable.interval(2000).take(6);
 * var timer3 = Rx.Observable.interval(500).take(10);
 * var result = Rx.Observable.concat([timer1, timer2, timer3]); // note that array is passed
 * result.subscribe(x => console.log(x));
 *
 * // results in the following:
 * // (Prints to console sequentially)
 * // -1000ms-> 0 -1000ms-> 1 -1000ms-> ... 9
 * // -2000ms-> 0 -2000ms-> 1 -2000ms-> ... 5
 * // -500ms-> 0 -500ms-> 1 -500ms-> ... 9
 *
 *
 * @example <caption>Concatenate the same Observable to repeat it</caption>
 * const timer = Rx.Observable.interval(1000).take(2);
 *
 * Rx.Observable.concat(timer, timer) // concating the same Observable!
 * .subscribe(
 *   value => console.log(value),
 *   err => {},
 *   () => console.log('...and it is done!')
 * );
 *
 * // Logs:
 * // 0 after 1s
 * // 1 after 2s
 * // 0 after 3s
 * // 1 after 4s
 * // "...and it is done!" also after 4s
 *
 * @see {@link concatAll}
 * @see {@link concatMap}
 * @see {@link concatMapTo}
 *
 * @param {ObservableInput} input1 An input Observable to concatenate with others.
 * @param {ObservableInput} input2 An input Observable to concatenate with others.
 * More than one input Observables may be given as argument.
 * @param {Scheduler} [scheduler=null] An optional IScheduler to schedule each
 * Observable subscription on.
 * @return {Observable} All values of each passed Observable merged into a
 * single Observable, in order, in serial fashion.
 * @static true
 * @name concat
 * @owner Observable
 */

/**
 * Delays the emission of items from the source Observable by a given time span
 * determined by the emissions of another Observable.
 *
 * <span class="informal">It's like {@link delay}, but the time span of the
 * delay duration is determined by a second Observable.</span>
 *
 * <img src="./img/delayWhen.png" width="100%">
 *
 * `delayWhen` time shifts each emitted value from the source Observable by a
 * time span determined by another Observable. When the source emits a value,
 * the `delayDurationSelector` function is called with the source value as
 * argument, and should return an Observable, called the "duration" Observable.
 * The source value is emitted on the output Observable only when the duration
 * Observable emits a value or completes.
 *
 * Optionally, `delayWhen` takes a second argument, `subscriptionDelay`, which
 * is an Observable. When `subscriptionDelay` emits its first value or
 * completes, the source Observable is subscribed to and starts behaving like
 * described in the previous paragraph. If `subscriptionDelay` is not provided,
 * `delayWhen` will subscribe to the source Observable as soon as the output
 * Observable is subscribed.
 *
 * @example <caption>Delay each click by a random amount of time, between 0 and 5 seconds</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var delayedClicks = clicks.delayWhen(event =>
 *   Rx.Observable.interval(Math.random() * 5000)
 * );
 * delayedClicks.subscribe(x => console.log(x));
 *
 * @see {@link debounce}
 * @see {@link delay}
 *
 * @param {function(value: T): Observable} delayDurationSelector A function that
 * returns an Observable for each value emitted by the source Observable, which
 * is then used to delay the emission of that item on the output Observable
 * until the Observable returned from this function emits a value.
 * @param {Observable} subscriptionDelay An Observable that triggers the
 * subscription to the source Observable once it emits any value.
 * @return {Observable} An Observable that delays the emissions of the source
 * Observable by an amount of time specified by the Observable returned by
 * `delayDurationSelector`.
 * @method delayWhen
 * @owner Observable
 */

/**
 * Delegate to handle a media query being matched and unmatched.
 *
 * @param {object} options
 * @param {function} options.match callback for when the media query is matched
 * @param {function} [options.unmatch] callback for when the media query is unmatched
 * @param {function} [options.setup] one-time callback triggered the first time a query is matched
 * @param {boolean} [options.deferSetup=false] should the setup callback be run immediately, rather than first time query is matched?
 * @constructor
 */

/**
 * Divides two vec2's
 *
 * @param {vec2} out the receiving vector
 * @param {ReadonlyVec2} a the first operand
 * @param {ReadonlyVec2} b the second operand
 * @returns {vec2} out
 */

/**
 * Divides two vec3's
 *
 * @param {vec3} out the receiving vector
 * @param {ReadonlyVec3} a the first operand
 * @param {ReadonlyVec3} b the second operand
 * @returns {vec3} out
 */

/**
 * Divides two vec4's
 *
 * @param {vec4} out the receiving vector
 * @param {ReadonlyVec4} a the first operand
 * @param {ReadonlyVec4} b the second operand
 * @returns {vec4} out
 */

/**
 * Dual Quaternion<br>
 * Format: [real, dual]<br>
 * Quaternion format: XYZW<br>
 * Make sure to have normalized dual quaternions, otherwise the functions may not work as intended.<br>
 * @module quat2
 */

/**
 * Edge 几何标记，用于绘制关系图中的**边**图形，如：
 * 1. 流程图
 * 2. 树
 * 3. 弧长连接图
 * 4. 和弦图
 * 5. 桑基图
 */

/**
 * Emits a given value if the source Observable completes without emitting any
 * `next` value, otherwise mirrors the source Observable.
 *
 * <span class="informal">If the source Observable turns out to be empty, then
 * this operator will emit a default value.</span>
 *
 * <img src="./img/defaultIfEmpty.png" width="100%">
 *
 * `defaultIfEmpty` emits the values emitted by the source Observable or a
 * specified default value if the source Observable is empty (completes without
 * having emitted any `next` value).
 *
 * @example <caption>If no clicks happen in 5 seconds, then emit "no clicks"</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var clicksBeforeFive = clicks.takeUntil(Rx.Observable.interval(5000));
 * var result = clicksBeforeFive.defaultIfEmpty('no clicks');
 * result.subscribe(x => console.log(x));
 *
 * @see {@link empty}
 * @see {@link last}
 *
 * @param {any} [defaultValue=null] The default value used if the source
 * Observable is empty.
 * @return {Observable} An Observable that emits either the specified
 * `defaultValue` if the source Observable emits no items, or the values emitted
 * by the source Observable.
 * @method defaultIfEmpty
 * @owner Observable
 */

/**
 * Emits a value from the source Observable only after a particular time span
 * determined by another Observable has passed without another source emission.
 *
 * <span class="informal">It's like {@link debounceTime}, but the time span of
 * emission silence is determined by a second Observable.</span>
 *
 * <img src="./img/debounce.png" width="100%">
 *
 * `debounce` delays values emitted by the source Observable, but drops previous
 * pending delayed emissions if a new value arrives on the source Observable.
 * This operator keeps track of the most recent value from the source
 * Observable, and spawns a duration Observable by calling the
 * `durationSelector` function. The value is emitted only when the duration
 * Observable emits a value or completes, and if no other value was emitted on
 * the source Observable since the duration Observable was spawned. If a new
 * value appears before the duration Observable emits, the previous value will
 * be dropped and will not be emitted on the output Observable.
 *
 * Like {@link debounceTime}, this is a rate-limiting operator, and also a
 * delay-like operator since output emissions do not necessarily occur at the
 * same time as they did on the source Observable.
 *
 * @example <caption>Emit the most recent click after a burst of clicks</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var result = clicks.debounce(() => Rx.Observable.interval(1000));
 * result.subscribe(x => console.log(x));
 *
 * @see {@link audit}
 * @see {@link debounceTime}
 * @see {@link delayWhen}
 * @see {@link throttle}
 *
 * @param {function(value: T): SubscribableOrPromise} durationSelector A function
 * that receives a value from the source Observable, for computing the timeout
 * duration for each source value, returned as an Observable or a Promise.
 * @return {Observable} An Observable that delays the emissions of the source
 * Observable by the specified duration Observable returned by
 * `durationSelector`, and may drop some values if they occur too frequently.
 * @method debounce
 * @owner Observable
 */

/**
 * Emits a value from the source Observable only after a particular time span
 * has passed without another source emission.
 *
 * <span class="informal">It's like {@link delay}, but passes only the most
 * recent value from each burst of emissions.</span>
 *
 * <img src="./img/debounceTime.png" width="100%">
 *
 * `debounceTime` delays values emitted by the source Observable, but drops
 * previous pending delayed emissions if a new value arrives on the source
 * Observable. This operator keeps track of the most recent value from the
 * source Observable, and emits that only when `dueTime` enough time has passed
 * without any other value appearing on the source Observable. If a new value
 * appears before `dueTime` silence occurs, the previous value will be dropped
 * and will not be emitted on the output Observable.
 *
 * This is a rate-limiting operator, because it is impossible for more than one
 * value to be emitted in any time window of duration `dueTime`, but it is also
 * a delay-like operator since output emissions do not occur at the same time as
 * they did on the source Observable. Optionally takes a {@link IScheduler} for
 * managing timers.
 *
 * @example <caption>Emit the most recent click after a burst of clicks</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var result = clicks.debounceTime(1000);
 * result.subscribe(x => console.log(x));
 *
 * @see {@link auditTime}
 * @see {@link debounce}
 * @see {@link delay}
 * @see {@link sampleTime}
 * @see {@link throttleTime}
 *
 * @param {number} dueTime The timeout duration in milliseconds (or the time
 * unit determined internally by the optional `scheduler`) for the window of
 * time required to wait for emission silence before emitting the most recent
 * source value.
 * @param {Scheduler} [scheduler=async] The {@link IScheduler} to use for
 * managing the timers that handle the timeout for each value.
 * @return {Observable} An Observable that delays the emissions of the source
 * Observable by the specified `dueTime`, and may drop some values if they occur
 * too frequently.
 * @method debounceTime
 * @owner Observable
 */

/**
 * Emits a value from the source Observable, then ignores subsequent source
 * values for `duration` milliseconds, then repeats this process.
 *
 * <span class="informal">Lets a value pass, then ignores source values for the
 * next `duration` milliseconds.</span>
 *
 * <img src="./img/throttleTime.png" width="100%">
 *
 * `throttleTime` emits the source Observable values on the output Observable
 * when its internal timer is disabled, and ignores source values when the timer
 * is enabled. Initially, the timer is disabled. As soon as the first source
 * value arrives, it is forwarded to the output Observable, and then the timer
 * is enabled. After `duration` milliseconds (or the time unit determined
 * internally by the optional `scheduler`) has passed, the timer is disabled,
 * and this process repeats for the next source value. Optionally takes a
 * {@link IScheduler} for managing timers.
 *
 * @example <caption>Emit clicks at a rate of at most one click per second</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var result = clicks.throttleTime(1000);
 * result.subscribe(x => console.log(x));
 *
 * @see {@link auditTime}
 * @see {@link debounceTime}
 * @see {@link delay}
 * @see {@link sampleTime}
 * @see {@link throttle}
 *
 * @param {number} duration Time to wait before emitting another value after
 * emitting the last value, measured in milliseconds or the time unit determined
 * internally by the optional `scheduler`.
 * @param {Scheduler} [scheduler=async] The {@link IScheduler} to use for
 * managing the timers that handle the throttling.
 * @return {Observable<T>} An Observable that performs the throttle operation to
 * limit the rate of emissions from the source.
 * @method throttleTime
 * @owner Observable
 */

/**
 * Emits a value from the source Observable, then ignores subsequent source
 * values for a duration determined by another Observable, then repeats this
 * process.
 *
 * <span class="informal">It's like {@link throttleTime}, but the silencing
 * duration is determined by a second Observable.</span>
 *
 * <img src="./img/throttle.png" width="100%">
 *
 * `throttle` emits the source Observable values on the output Observable
 * when its internal timer is disabled, and ignores source values when the timer
 * is enabled. Initially, the timer is disabled. As soon as the first source
 * value arrives, it is forwarded to the output Observable, and then the timer
 * is enabled by calling the `durationSelector` function with the source value,
 * which returns the "duration" Observable. When the duration Observable emits a
 * value or completes, the timer is disabled, and this process repeats for the
 * next source value.
 *
 * @example <caption>Emit clicks at a rate of at most one click per second</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var result = clicks.throttle(ev => Rx.Observable.interval(1000));
 * result.subscribe(x => console.log(x));
 *
 * @see {@link audit}
 * @see {@link debounce}
 * @see {@link delayWhen}
 * @see {@link sample}
 * @see {@link throttleTime}
 *
 * @param {function(value: T): SubscribableOrPromise} durationSelector A function
 * that receives a value from the source Observable, for computing the silencing
 * duration for each source value, returned as an Observable or a Promise.
 * @param {Object} config a configuration object to define `leading` and `trailing` behavior. Defaults
 * to `{ leading: true, trailing: false }`.
 * @return {Observable<T>} An Observable that performs the throttle operation to
 * limit the rate of emissions from the source.
 * @method throttle
 * @owner Observable
 */

/**
 * Emits only the first `count` values emitted by the source Observable.
 *
 * <span class="informal">Takes the first `count` values from the source, then
 * completes.</span>
 *
 * <img src="./img/take.png" width="100%">
 *
 * `take` returns an Observable that emits only the first `count` values emitted
 * by the source Observable. If the source emits fewer than `count` values then
 * all of its values are emitted. After that, it completes, regardless if the
 * source completes.
 *
 * @example <caption>Take the first 5 seconds of an infinite 1-second interval Observable</caption>
 * var interval = Rx.Observable.interval(1000);
 * var five = interval.take(5);
 * five.subscribe(x => console.log(x));
 *
 * @see {@link takeLast}
 * @see {@link takeUntil}
 * @see {@link takeWhile}
 * @see {@link skip}
 *
 * @throws {ArgumentOutOfRangeError} When using `take(i)`, it delivers an
 * ArgumentOutOrRangeError to the Observer's `error` callback if `i < 0`.
 *
 * @param {number} count The maximum number of `next` values to emit.
 * @return {Observable<T>} An Observable that emits only the first `count`
 * values emitted by the source Observable, or all of the values from the source
 * if the source emits fewer than `count` values.
 * @method take
 * @owner Observable
 */

/**
 * Emits only the first value (or the first value that meets some condition)
 * emitted by the source Observable.
 *
 * <span class="informal">Emits only the first value. Or emits only the first
 * value that passes some test.</span>
 *
 * <img src="./img/first.png" width="100%">
 *
 * If called with no arguments, `first` emits the first value of the source
 * Observable, then completes. If called with a `predicate` function, `first`
 * emits the first value of the source that matches the specified condition. It
 * may also take a `resultSelector` function to produce the output value from
 * the input value, and a `defaultValue` to emit in case the source completes
 * before it is able to emit a valid value. Throws an error if `defaultValue`
 * was not provided and a matching element is not found.
 *
 * @example <caption>Emit only the first click that happens on the DOM</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var result = clicks.first();
 * result.subscribe(x => console.log(x));
 *
 * @example <caption>Emits the first click that happens on a DIV</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var result = clicks.first(ev => ev.target.tagName === 'DIV');
 * result.subscribe(x => console.log(x));
 *
 * @see {@link filter}
 * @see {@link find}
 * @see {@link take}
 *
 * @throws {EmptyError} Delivers an EmptyError to the Observer's `error`
 * callback if the Observable completes before any `next` notification was sent.
 *
 * @param {function(value: T, index: number, source: Observable<T>): boolean} [predicate]
 * An optional function called with each item to test for condition matching.
 * @param {function(value: T, index: number): R} [resultSelector] A function to
 * produce the value on the output Observable based on the values
 * and the indices of the source Observable. The arguments passed to this
 * function are:
 * - `value`: the value that was emitted on the source.
 * - `index`: the "index" of the value from the source.
 * @param {R} [defaultValue] The default value emitted in case no valid value
 * was found on the source.
 * @return {Observable<T|R>} An Observable of the first item that matches the
 * condition.
 * @method first
 * @owner Observable
 */

/**
 * Emits only the first value emitted by the source Observable that meets some
 * condition.
 *
 * <span class="informal">Finds the first value that passes some test and emits
 * that.</span>
 *
 * <img src="./img/find.png" width="100%">
 *
 * `find` searches for the first item in the source Observable that matches the
 * specified condition embodied by the `predicate`, and returns the first
 * occurrence in the source. Unlike {@link first}, the `predicate` is required
 * in `find`, and does not emit an error if a valid value is not found.
 *
 * @example <caption>Find and emit the first click that happens on a DIV element</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var result = clicks.find(ev => ev.target.tagName === 'DIV');
 * result.subscribe(x => console.log(x));
 *
 * @see {@link filter}
 * @see {@link first}
 * @see {@link findIndex}
 * @see {@link take}
 *
 * @param {function(value: T, index: number, source: Observable<T>): boolean} predicate
 * A function called with each item to test for condition matching.
 * @param {any} [thisArg] An optional argument to determine the value of `this`
 * in the `predicate` function.
 * @return {Observable<T>} An Observable of the first item that matches the
 * condition.
 * @method find
 * @owner Observable
 */

/**
 * Emits only the index of the first value emitted by the source Observable that
 * meets some condition.
 *
 * <span class="informal">It's like {@link find}, but emits the index of the
 * found value, not the value itself.</span>
 *
 * <img src="./img/findIndex.png" width="100%">
 *
 * `findIndex` searches for the first item in the source Observable that matches
 * the specified condition embodied by the `predicate`, and returns the
 * (zero-based) index of the first occurrence in the source. Unlike
 * {@link first}, the `predicate` is required in `findIndex`, and does not emit
 * an error if a valid value is not found.
 *
 * @example <caption>Emit the index of first click that happens on a DIV element</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var result = clicks.findIndex(ev => ev.target.tagName === 'DIV');
 * result.subscribe(x => console.log(x));
 *
 * @see {@link filter}
 * @see {@link find}
 * @see {@link first}
 * @see {@link take}
 *
 * @param {function(value: T, index: number, source: Observable<T>): boolean} predicate
 * A function called with each item to test for condition matching.
 * @param {any} [thisArg] An optional argument to determine the value of `this`
 * in the `predicate` function.
 * @return {Observable} An Observable of the index of the first item that
 * matches the condition.
 * @method find
 * @owner Observable
 */

/**
 * Emits only the last `count` values emitted by the source Observable.
 *
 * <span class="informal">Remembers the latest `count` values, then emits those
 * only when the source completes.</span>
 *
 * <img src="./img/takeLast.png" width="100%">
 *
 * `takeLast` returns an Observable that emits at most the last `count` values
 * emitted by the source Observable. If the source emits fewer than `count`
 * values then all of its values are emitted. This operator must wait until the
 * `complete` notification emission from the source in order to emit the `next`
 * values on the output Observable, because otherwise it is impossible to know
 * whether or not more values will be emitted on the source. For this reason,
 * all values are emitted synchronously, followed by the complete notification.
 *
 * @example <caption>Take the last 3 values of an Observable with many values</caption>
 * var many = Rx.Observable.range(1, 100);
 * var lastThree = many.takeLast(3);
 * lastThree.subscribe(x => console.log(x));
 *
 * @see {@link take}
 * @see {@link takeUntil}
 * @see {@link takeWhile}
 * @see {@link skip}
 *
 * @throws {ArgumentOutOfRangeError} When using `takeLast(i)`, it delivers an
 * ArgumentOutOrRangeError to the Observer's `error` callback if `i < 0`.
 *
 * @param {number} count The maximum number of values to emit from the end of
 * the sequence of values emitted by the source Observable.
 * @return {Observable<T>} An Observable that emits at most the last count
 * values emitted by the source Observable.
 * @method takeLast
 * @owner Observable
 */

/**
 * Emits the given constant value on the output Observable every time the source
 * Observable emits a value.
 *
 * <span class="informal">Like {@link map}, but it maps every source value to
 * the same output value every time.</span>
 *
 * <img src="./img/mapTo.png" width="100%">
 *
 * Takes a constant `value` as argument, and emits that whenever the source
 * Observable emits a value. In other words, ignores the actual source value,
 * and simply uses the emission moment to know when to emit the given `value`.
 *
 * @example <caption>Map every click to the string 'Hi'</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var greetings = clicks.mapTo('Hi');
 * greetings.subscribe(x => console.log(x));
 *
 * @see {@link map}
 *
 * @param {any} value The value to map each source value to.
 * @return {Observable} An Observable that emits the given `value` every time
 * the source Observable emits something.
 * @method mapTo
 * @owner Observable
 */

/**
 * Emits the most recently emitted value from the source Observable whenever
 * another Observable, the `notifier`, emits.
 *
 * <span class="informal">It's like {@link sampleTime}, but samples whenever
 * the `notifier` Observable emits something.</span>
 *
 * <img src="./img/sample.png" width="100%">
 *
 * Whenever the `notifier` Observable emits a value or completes, `sample`
 * looks at the source Observable and emits whichever value it has most recently
 * emitted since the previous sampling, unless the source has not emitted
 * anything since the previous sampling. The `notifier` is subscribed to as soon
 * as the output Observable is subscribed.
 *
 * @example <caption>On every click, sample the most recent "seconds" timer</caption>
 * var seconds = Rx.Observable.interval(1000);
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var result = seconds.sample(clicks);
 * result.subscribe(x => console.log(x));
 *
 * @see {@link audit}
 * @see {@link debounce}
 * @see {@link sampleTime}
 * @see {@link throttle}
 *
 * @param {Observable<any>} notifier The Observable to use for sampling the
 * source Observable.
 * @return {Observable<T>} An Observable that emits the results of sampling the
 * values emitted by the source Observable whenever the notifier Observable
 * emits value or completes.
 * @method sample
 * @owner Observable
 */

/**
 * Emits the most recently emitted value from the source Observable within
 * periodic time intervals.
 *
 * <span class="informal">Samples the source Observable at periodic time
 * intervals, emitting what it samples.</span>
 *
 * <img src="./img/sampleTime.png" width="100%">
 *
 * `sampleTime` periodically looks at the source Observable and emits whichever
 * value it has most recently emitted since the previous sampling, unless the
 * source has not emitted anything since the previous sampling. The sampling
 * happens periodically in time every `period` milliseconds (or the time unit
 * defined by the optional `scheduler` argument). The sampling starts as soon as
 * the output Observable is subscribed.
 *
 * @example <caption>Every second, emit the most recent click at most once</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var result = clicks.sampleTime(1000);
 * result.subscribe(x => console.log(x));
 *
 * @see {@link auditTime}
 * @see {@link debounceTime}
 * @see {@link delay}
 * @see {@link sample}
 * @see {@link throttleTime}
 *
 * @param {number} period The sampling period expressed in milliseconds or the
 * time unit determined internally by the optional `scheduler`.
 * @param {Scheduler} [scheduler=async] The {@link IScheduler} to use for
 * managing the timers that handle the sampling.
 * @return {Observable<T>} An Observable that emits the results of sampling the
 * values emitted by the source Observable at the specified time interval.
 * @method sampleTime
 * @owner Observable
 */

/**
 * Emits the single value at the specified `index` in a sequence of emissions
 * from the source Observable.
 *
 * <span class="informal">Emits only the i-th value, then completes.</span>
 *
 * <img src="./img/elementAt.png" width="100%">
 *
 * `elementAt` returns an Observable that emits the item at the specified
 * `index` in the source Observable, or a default value if that `index` is out
 * of range and the `default` argument is provided. If the `default` argument is
 * not given and the `index` is out of range, the output Observable will emit an
 * `ArgumentOutOfRangeError` error.
 *
 * @example <caption>Emit only the third click event</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var result = clicks.elementAt(2);
 * result.subscribe(x => console.log(x));
 *
 * // Results in:
 * // click 1 = nothing
 * // click 2 = nothing
 * // click 3 = MouseEvent object logged to console
 *
 * @see {@link first}
 * @see {@link last}
 * @see {@link skip}
 * @see {@link single}
 * @see {@link take}
 *
 * @throws {ArgumentOutOfRangeError} When using `elementAt(i)`, it delivers an
 * ArgumentOutOrRangeError to the Observer's `error` callback if `i < 0` or the
 * Observable has completed before emitting the i-th `next` notification.
 *
 * @param {number} index Is the number `i` for the i-th source emission that has
 * happened since the subscription, starting from the number `0`.
 * @param {T} [defaultValue] The default value returned for missing indices.
 * @return {Observable} An Observable that emits a single item, if it is found.
 * Otherwise, will emit the default value if given. If not, then emits an error.
 * @method elementAt
 * @owner Observable
 */

/**
 * Emits values emitted by the source Observable so long as each value satisfies
 * the given `predicate`, and then completes as soon as this `predicate` is not
 * satisfied.
 *
 * <span class="informal">Takes values from the source only while they pass the
 * condition given. When the first value does not satisfy, it completes.</span>
 *
 * <img src="./img/takeWhile.png" width="100%">
 *
 * `takeWhile` subscribes and begins mirroring the source Observable. Each value
 * emitted on the source is given to the `predicate` function which returns a
 * boolean, representing a condition to be satisfied by the source values. The
 * output Observable emits the source values until such time as the `predicate`
 * returns false, at which point `takeWhile` stops mirroring the source
 * Observable and completes the output Observable.
 *
 * @example <caption>Emit click events only while the clientX property is greater than 200</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var result = clicks.takeWhile(ev => ev.clientX > 200);
 * result.subscribe(x => console.log(x));
 *
 * @see {@link take}
 * @see {@link takeLast}
 * @see {@link takeUntil}
 * @see {@link skip}
 *
 * @param {function(value: T, index: number): boolean} predicate A function that
 * evaluates a value emitted by the source Observable and returns a boolean.
 * Also takes the (zero-based) index as the second argument.
 * @return {Observable<T>} An Observable that emits the values from the source
 * Observable so long as each value satisfies the condition defined by the
 * `predicate`, then completes.
 * @method takeWhile
 * @owner Observable
 */

/**
 * Escapes the `RegExp` special characters "^", "$", "\", ".", "*", "+",
 * "?", "(", ")", "[", "]", "{", "}", and "|" in `string`.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category String
 * @param {string} [string=''] The string to escape.
 * @returns {string} Returns the escaped string.
 * @example
 *
 * _.escapeRegExp('[lodash](https://lodash.com/)');
 * // => '\[lodash\]\(https://lodash\.com/\)'
 */

/**
 * Flattens `array` a single level deep.
 *
 * @param {Array} arr The array to flatten.
 * @param {Array} result The array to return.
 * @return {Array} Returns the new flattened array.
 * @example
 *
 * flattenDeep([1, [2, [3, [4]], 5]]);  // => [1, 2, 3, 4, 5]
 */

/**
 * Flattens `array` a single level deep.
 *
 * @param {Array} arr The array to flatten.
 * @return {Array} Returns the new flattened array.
 * @example
 *
 * flatten([1, [2, [3, [4]], 5]]);  // => [1, 2, [3, [4]], 5]
 */

/**
 * Generates a 2D projection matrix with the given bounds
 *
 * @param {mat3} out mat3 frustum matrix will be written into
 * @param {number} width Width of your gl context
 * @param {number} height Height of gl context
 * @returns {mat3} out
 */

/**
 * Generates a frustum matrix with the given bounds
 *
 * @param {mat4} out mat4 frustum matrix will be written into
 * @param {Number} left Left bound of the frustum
 * @param {Number} right Right bound of the frustum
 * @param {Number} bottom Bottom bound of the frustum
 * @param {Number} top Top bound of the frustum
 * @param {Number} near Near bound of the frustum
 * @param {Number} far Far bound of the frustum
 * @returns {mat4} out
 */

/**
 * Generates a look-at matrix with the given eye position, focal point, and up axis.
 * If you want a matrix that actually makes an object look at another object, you should use targetTo instead.
 *
 * @param {mat4} out mat4 frustum matrix will be written into
 * @param {ReadonlyVec3} eye Position of the viewer
 * @param {ReadonlyVec3} center Point the viewer is looking at
 * @param {ReadonlyVec3} up vec3 pointing up
 * @returns {mat4} out
 */

/**
 * Generates a matrix that makes something look at something else.
 *
 * @param {mat4} out mat4 frustum matrix will be written into
 * @param {ReadonlyVec3} eye Position of the viewer
 * @param {ReadonlyVec3} center Point the viewer is looking at
 * @param {ReadonlyVec3} up vec3 pointing up
 * @returns {mat4} out
 */

/**
 * Generates a orthogonal projection matrix with the given bounds.
 * The near/far clip planes correspond to a normalized device coordinate Z range of [-1, 1],
 * which matches WebGL/OpenGL's clip volume.
 *
 * @param {mat4} out mat4 frustum matrix will be written into
 * @param {number} left Left bound of the frustum
 * @param {number} right Right bound of the frustum
 * @param {number} bottom Bottom bound of the frustum
 * @param {number} top Top bound of the frustum
 * @param {number} near Near bound of the frustum
 * @param {number} far Far bound of the frustum
 * @returns {mat4} out
 */

/**
 * Generates a orthogonal projection matrix with the given bounds.
 * The near/far clip planes correspond to a normalized device coordinate Z range of [0, 1],
 * which matches WebGPU/Vulkan/DirectX/Metal's clip volume.
 *
 * @param {mat4} out mat4 frustum matrix will be written into
 * @param {number} left Left bound of the frustum
 * @param {number} right Right bound of the frustum
 * @param {number} bottom Bottom bound of the frustum
 * @param {number} top Top bound of the frustum
 * @param {number} near Near bound of the frustum
 * @param {number} far Far bound of the frustum
 * @returns {mat4} out
 */

/**
 * Generates a perspective projection matrix suitable for WebGPU with the given bounds.
 * The near/far clip planes correspond to a normalized device coordinate Z range of [0, 1],
 * which matches WebGPU/Vulkan/DirectX/Metal's clip volume.
 * Passing null/undefined/no value for far will generate infinite projection matrix.
 *
 * @param {mat4} out mat4 frustum matrix will be written into
 * @param {number} fovy Vertical field of view in radians
 * @param {number} aspect Aspect ratio. typically viewport width/height
 * @param {number} near Near bound of the frustum
 * @param {number} far Far bound of the frustum, can be null or Infinity
 * @returns {mat4} out
 */

/**
 * Generates a perspective projection matrix with the given bounds.
 * The near/far clip planes correspond to a normalized device coordinate Z range of [-1, 1],
 * which matches WebGL/OpenGL's clip volume.
 * Passing null/undefined/no value for far will generate infinite projection matrix.
 *
 * @param {mat4} out mat4 frustum matrix will be written into
 * @param {number} fovy Vertical field of view in radians
 * @param {number} aspect Aspect ratio. typically viewport width/height
 * @param {number} near Near bound of the frustum
 * @param {number} far Far bound of the frustum, can be null or Infinity
 * @returns {mat4} out
 */

/**
 * Generates a perspective projection matrix with the given field of view.
 * This is primarily useful for generating projection matrices to be used
 * with the still experiemental WebVR API.
 *
 * @param {mat4} out mat4 frustum matrix will be written into
 * @param {Object} fov Object containing the following values: upDegrees, downDegrees, leftDegrees, rightDegrees
 * @param {number} near Near bound of the frustum
 * @param {number} far Far bound of the frustum
 * @returns {mat4} out
 */

/**
 * Generates a random unit quaternion
 *
 * @param {quat} out the receiving quaternion
 * @returns {quat} out
 */

/**
 * Generates a random vector with the given scale
 *
 * @param {vec2} out the receiving vector
 * @param {Number} [scale] Length of the resulting vector. If ommitted, a unit vector will be returned
 * @returns {vec2} out
 */

/**
 * Generates a random vector with the given scale
 *
 * @param {vec3} out the receiving vector
 * @param {Number} [scale] Length of the resulting vector. If ommitted, a unit vector will be returned
 * @returns {vec3} out
 */

/**
 * Generates a random vector with the given scale
 *
 * @param {vec4} out the receiving vector
 * @param {Number} [scale] Length of the resulting vector. If ommitted, a unit vector will be returned
 * @returns {vec4} out
 */

/**
 * Geometry Label 基类，用于生成 Geometry 下所有 label 的配置项信息
 */

/**
 * Geometry 几何标记基类，主要负责数据到图形属性的映射以及绘制逻辑。
 */

/**
 * Get pointer position in a React Node ref
 * Returns an object with x and y coordinates.
 * The base on the coordinates are the bottom left of the element.
 *
 * @function getPointerPosition
 * @param {ReactNodeRef} el React Node ref on which to get the pointer position on
 * @param {Event} event Event object
 * @return {Object} This object will have x and y coordinates corresponding to the mouse position
 */

/**
 * Get the angle between two 2D vectors
 * @param {ReadonlyVec2} a The first operand
 * @param {ReadonlyVec2} b The second operand
 * @returns {Number} The angle in radians
 */

/**
 * Get the angle between two 3D vectors
 * @param {ReadonlyVec3} a The first operand
 * @param {ReadonlyVec3} b The second operand
 * @returns {Number} The angle in radians
 */

/**
 * Gets line marker
 * @ignore
 * @param markerCfg
 * @param shapeType
 * @returns 返回 Line 的 marker 配置
 */

/**
 * Gets the angular distance between two unit quaternions
 *
 * @param  {ReadonlyQuat} a     Origin unit quaternion
 * @param  {ReadonlyQuat} b     Destination unit quaternion
 * @return {Number}     Angle, in radians, between the two quaternions
 */

/**
 * Gets the dual part of a dual quat
 * @param  {quat} out dual part
 * @param  {ReadonlyQuat2} a Dual Quaternion
 * @return {quat} dual part
 */

/**
 * Gets the real part of a dual quat
 * @param  {quat} out real part
 * @param  {ReadonlyQuat2} a Dual Quaternion
 * @return {quat} real part
 */

/**
 * Gets the rotation axis and angle for a given
 *  quaternion. If a quaternion is created with
 *  setAxisAngle, this method will return the same
 *  values as providied in the original parameter list
 *  OR functionally equivalent values.
 * Example: The quaternion formed by axis [0, 0, 1] and
 *  angle -90 is the same as the quaternion formed by
 *  [0, 0, 1] and 270. This method favors the latter.
 * @param  {vec3} out_axis  Vector receiving the axis of rotation
 * @param  {ReadonlyQuat} q     Quaternion to be decomposed
 * @return {Number}     Angle, in radians, of the rotation
 */

/**
 * Gets the translation of a normalized dual quat
 * @param  {vec3} out translation
 * @param  {ReadonlyQuat2} a Dual Quaternion to be decomposed
 * @return {vec3} translation
 */

/**
 * Groups pairs of consecutive emissions together and emits them as an array of
 * two values.
 *
 * <span class="informal">Puts the current value and previous value together as
 * an array, and emits that.</span>
 *
 * <img src="./img/pairwise.png" width="100%">
 *
 * The Nth emission from the source Observable will cause the output Observable
 * to emit an array [(N-1)th, Nth] of the previous and the current value, as a
 * pair. For this reason, `pairwise` emits on the second and subsequent
 * emissions from the source Observable, but not on the first emission, because
 * there is no previous value in that case.
 *
 * @example <caption>On every click (starting from the second), emit the relative distance to the previous click</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var pairs = clicks.pairwise();
 * var distance = pairs.map(pair => {
 *   var x0 = pair[0].clientX;
 *   var y0 = pair[0].clientY;
 *   var x1 = pair[1].clientX;
 *   var y1 = pair[1].clientY;
 *   return Math.sqrt(Math.pow(x0 - x1, 2) + Math.pow(y0 - y1, 2));
 * });
 * distance.subscribe(x => console.log(x));
 *
 * @see {@link buffer}
 * @see {@link bufferCount}
 *
 * @return {Observable<Array<T>>} An Observable of pairs (as arrays) of
 * consecutive values from the source Observable.
 * @method pairwise
 * @owner Observable
 */

/**
 * Groups the items emitted by an Observable according to a specified criterion,
 * and emits these grouped items as `GroupedObservables`, one
 * {@link GroupedObservable} per group.
 *
 * <img src="./img/groupBy.png" width="100%">
 *
 * @example <caption>Group objects by id and return as array</caption>
 * Observable.of<Obj>({id: 1, name: 'aze1'},
 *                    {id: 2, name: 'sf2'},
 *                    {id: 2, name: 'dg2'},
 *                    {id: 1, name: 'erg1'},
 *                    {id: 1, name: 'df1'},
 *                    {id: 2, name: 'sfqfb2'},
 *                    {id: 3, name: 'qfs3'},
 *                    {id: 2, name: 'qsgqsfg2'}
 *     )
 *     .groupBy(p => p.id)
 *     .flatMap( (group$) => group$.reduce((acc, cur) => [...acc, cur], []))
 *     .subscribe(p => console.log(p));
 *
 * // displays:
 * // [ { id: 1, name: 'aze1' },
 * //   { id: 1, name: 'erg1' },
 * //   { id: 1, name: 'df1' } ]
 * //
 * // [ { id: 2, name: 'sf2' },
 * //   { id: 2, name: 'dg2' },
 * //   { id: 2, name: 'sfqfb2' },
 * //   { id: 2, name: 'qsgqsfg2' } ]
 * //
 * // [ { id: 3, name: 'qfs3' } ]
 *
 * @example <caption>Pivot data on the id field</caption>
 * Observable.of<Obj>({id: 1, name: 'aze1'},
 *                    {id: 2, name: 'sf2'},
 *                    {id: 2, name: 'dg2'},
 *                    {id: 1, name: 'erg1'},
 *                    {id: 1, name: 'df1'},
 *                    {id: 2, name: 'sfqfb2'},
 *                    {id: 3, name: 'qfs1'},
 *                    {id: 2, name: 'qsgqsfg2'}
 *                   )
 *     .groupBy(p => p.id, p => p.name)
 *     .flatMap( (group$) => group$.reduce((acc, cur) => [...acc, cur], ["" + group$.key]))
 *     .map(arr => ({'id': parseInt(arr[0]), 'values': arr.slice(1)}))
 *     .subscribe(p => console.log(p));
 *
 * // displays:
 * // { id: 1, values: [ 'aze1', 'erg1', 'df1' ] }
 * // { id: 2, values: [ 'sf2', 'dg2', 'sfqfb2', 'qsgqsfg2' ] }
 * // { id: 3, values: [ 'qfs1' ] }
 *
 * @param {function(value: T): K} keySelector A function that extracts the key
 * for each item.
 * @param {function(value: T): R} [elementSelector] A function that extracts the
 * return element for each item.
 * @param {function(grouped: GroupedObservable<K,R>): Observable<any>} [durationSelector]
 * A function that returns an Observable to determine how long each group should
 * exist.
 * @return {Observable<GroupedObservable<K,R>>} An Observable that emits
 * GroupedObservables, each of which corresponds to a unique key value and each
 * of which emits those items from the source Observable that share that key
 * value.
 * @method groupBy
 * @owner Observable
 */

/**
 * Helper function for determining whether target object is a function
 *
 * @param target the object under test
 * @return {Boolean} true if function, false otherwise
 */

/**
 * Helper function for determining whether target object is an array
 *
 * @param target the object under test
 * @return {Boolean} true if array, false otherwise
 */

/**
 * Helper function for iterating over a collection
 *
 * @param collection
 * @param fn
 */

/**
 * If the source Observable is empty it returns an Observable that emits true, otherwise it emits false.
 *
 * <img src="./img/isEmpty.png" width="100%">
 *
 * @return {Observable} An Observable that emits a Boolean.
 * @method isEmpty
 * @owner Observable
 */

/**
 * Ignores all items emitted by the source Observable and only passes calls of `complete` or `error`.
 *
 * <img src="./img/ignoreElements.png" width="100%">
 *
 * @return {Observable} An empty Observable that only calls `complete`
 * or `error`, based on which one is called by the source Observable.
 * @method ignoreElements
 * @owner Observable
 */

/**
 * Ignores source values for `duration` milliseconds, then emits the most recent
 * value from the source Observable, then repeats this process.
 *
 * <span class="informal">When it sees a source values, it ignores that plus
 * the next ones for `duration` milliseconds, and then it emits the most recent
 * value from the source.</span>
 *
 * <img src="./img/auditTime.png" width="100%">
 *
 * `auditTime` is similar to `throttleTime`, but emits the last value from the
 * silenced time window, instead of the first value. `auditTime` emits the most
 * recent value from the source Observable on the output Observable as soon as
 * its internal timer becomes disabled, and ignores source values while the
 * timer is enabled. Initially, the timer is disabled. As soon as the first
 * source value arrives, the timer is enabled. After `duration` milliseconds (or
 * the time unit determined internally by the optional `scheduler`) has passed,
 * the timer is disabled, then the most recent source value is emitted on the
 * output Observable, and this process repeats for the next source value.
 * Optionally takes a {@link IScheduler} for managing timers.
 *
 * @example <caption>Emit clicks at a rate of at most one click per second</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var result = clicks.auditTime(1000);
 * result.subscribe(x => console.log(x));
 *
 * @see {@link audit}
 * @see {@link debounceTime}
 * @see {@link delay}
 * @see {@link sampleTime}
 * @see {@link throttleTime}
 *
 * @param {number} duration Time to wait before emitting the most recent source
 * value, measured in milliseconds or the time unit determined internally
 * by the optional `scheduler`.
 * @param {Scheduler} [scheduler=async] The {@link IScheduler} to use for
 * managing the timers that handle the rate-limiting behavior.
 * @return {Observable<T>} An Observable that performs rate-limiting of
 * emissions from the source Observable.
 * @method auditTime
 * @owner Observable
 */

/**
 * Ignores source values for a duration determined by another Observable, then
 * emits the most recent value from the source Observable, then repeats this
 * process.
 *
 * <span class="informal">It's like {@link auditTime}, but the silencing
 * duration is determined by a second Observable.</span>
 *
 * <img src="./img/audit.png" width="100%">
 *
 * `audit` is similar to `throttle`, but emits the last value from the silenced
 * time window, instead of the first value. `audit` emits the most recent value
 * from the source Observable on the output Observable as soon as its internal
 * timer becomes disabled, and ignores source values while the timer is enabled.
 * Initially, the timer is disabled. As soon as the first source value arrives,
 * the timer is enabled by calling the `durationSelector` function with the
 * source value, which returns the "duration" Observable. When the duration
 * Observable emits a value or completes, the timer is disabled, then the most
 * recent source value is emitted on the output Observable, and this process
 * repeats for the next source value.
 *
 * @example <caption>Emit clicks at a rate of at most one click per second</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var result = clicks.audit(ev => Rx.Observable.interval(1000));
 * result.subscribe(x => console.log(x));
 *
 * @see {@link auditTime}
 * @see {@link debounce}
 * @see {@link delayWhen}
 * @see {@link sample}
 * @see {@link throttle}
 *
 * @param {function(value: T): SubscribableOrPromise} durationSelector A function
 * that receives a value from the source Observable, for computing the silencing
 * duration, returned as an Observable or a Promise.
 * @return {Observable<T>} An Observable that performs rate-limiting of
 * emissions from the source Observable.
 * @method audit
 * @owner Observable
 */

/**
 * Inverts a mat2
 *
 * @param {mat2} out the receiving matrix
 * @param {ReadonlyMat2} a the source matrix
 * @returns {mat2} out
 */

/**
 * Inverts a mat2d
 *
 * @param {mat2d} out the receiving matrix
 * @param {ReadonlyMat2d} a the source matrix
 * @returns {mat2d} out
 */

/**
 * Inverts a mat3
 *
 * @param {mat3} out the receiving matrix
 * @param {ReadonlyMat3} a the source matrix
 * @returns {mat3} out
 */

/**
 * Inverts a mat4
 *
 * @param {mat4} out the receiving matrix
 * @param {ReadonlyMat4} a the source matrix
 * @returns {mat4} out
 */

/**
 * Line 几何标记。
 * 常用于折线图的绘制。
 */

/**
 * Logic:
 *  When `mode` === `picker`,
 *  click will trigger `onSelect` (if value changed trigger `onChange` also).
 *  Panel change will not trigger `onSelect` but trigger `onPanelChange`
 */

/**
 * Maps each source value (an object) to its specified nested property.
 *
 * <span class="informal">Like {@link map}, but meant only for picking one of
 * the nested properties of every emitted object.</span>
 *
 * <img src="./img/pluck.png" width="100%">
 *
 * Given a list of strings describing a path to an object property, retrieves
 * the value of a specified nested property from all values in the source
 * Observable. If a property can't be resolved, it will return `undefined` for
 * that value.
 *
 * @example <caption>Map every click to the tagName of the clicked target element</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var tagNames = clicks.pluck('target', 'tagName');
 * tagNames.subscribe(x => console.log(x));
 *
 * @see {@link map}
 *
 * @param {...string} properties The nested properties to pluck from each source
 * value (an object).
 * @return {Observable} A new Observable of property values from the source values.
 * @method pluck
 * @owner Observable
 */

/**
 * Math.ceil the components of a vec2
 *
 * @param {vec2} out the receiving vector
 * @param {ReadonlyVec2} a vector to ceil
 * @returns {vec2} out
 */

/**
 * Math.ceil the components of a vec3
 *
 * @param {vec3} out the receiving vector
 * @param {ReadonlyVec3} a vector to ceil
 * @returns {vec3} out
 */

/**
 * Math.ceil the components of a vec4
 *
 * @param {vec4} out the receiving vector
 * @param {ReadonlyVec4} a vector to ceil
 * @returns {vec4} out
 */

/**
 * Math.floor the components of a vec2
 *
 * @param {vec2} out the receiving vector
 * @param {ReadonlyVec2} a vector to floor
 * @returns {vec2} out
 */

/**
 * Math.floor the components of a vec3
 *
 * @param {vec3} out the receiving vector
 * @param {ReadonlyVec3} a vector to floor
 * @returns {vec3} out
 */

/**
 * Math.floor the components of a vec4
 *
 * @param {vec4} out the receiving vector
 * @param {ReadonlyVec4} a vector to floor
 * @returns {vec4} out
 */

/**
 * Math.round the components of a vec2
 *
 * @param {vec2} out the receiving vector
 * @param {ReadonlyVec2} a vector to round
 * @returns {vec2} out
 */

/**
 * Math.round the components of a vec3
 *
 * @param {vec3} out the receiving vector
 * @param {ReadonlyVec3} a vector to round
 * @returns {vec3} out
 */

/**
 * Math.round the components of a vec4
 *
 * @param {vec4} out the receiving vector
 * @param {ReadonlyVec4} a vector to round
 * @returns {vec4} out
 */

/**
 * Multiplies two dual quat's
 *
 * @param {quat2} out the receiving dual quaternion
 * @param {ReadonlyQuat2} a the first operand
 * @param {ReadonlyQuat2} b the second operand
 * @returns {quat2} out
 */

/**
 * Multiplies two mat2's
 *
 * @param {mat2} out the receiving matrix
 * @param {ReadonlyMat2} a the first operand
 * @param {ReadonlyMat2} b the second operand
 * @returns {mat2} out
 */

/**
 * Multiplies two mat2d's
 *
 * @param {mat2d} out the receiving matrix
 * @param {ReadonlyMat2d} a the first operand
 * @param {ReadonlyMat2d} b the second operand
 * @returns {mat2d} out
 */

/**
 * Multiplies two mat3's
 *
 * @param {mat3} out the receiving matrix
 * @param {ReadonlyMat3} a the first operand
 * @param {ReadonlyMat3} b the second operand
 * @returns {mat3} out
 */

/**
 * Multiplies two mat4s
 *
 * @param {mat4} out the receiving matrix
 * @param {ReadonlyMat4} a the first operand
 * @param {ReadonlyMat4} b the second operand
 * @returns {mat4} out
 */

/**
 * Multiplies two quat's
 *
 * @param {quat} out the receiving quaternion
 * @param {ReadonlyQuat} a the first operand
 * @param {ReadonlyQuat} b the second operand
 * @returns {quat} out
 */

/**
 * Multiplies two vec2's
 *
 * @param {vec2} out the receiving vector
 * @param {ReadonlyVec2} a the first operand
 * @param {ReadonlyVec2} b the second operand
 * @returns {vec2} out
 */

/**
 * Multiplies two vec3's
 *
 * @param {vec3} out the receiving vector
 * @param {ReadonlyVec3} a the first operand
 * @param {ReadonlyVec3} b the second operand
 * @returns {vec3} out
 */

/**
 * Multiplies two vec4's
 *
 * @param {vec4} out the receiving vector
 * @param {ReadonlyVec4} a the first operand
 * @param {ReadonlyVec4} b the second operand
 * @returns {vec4} out
 */

/**
 * Multiply each element of the matrix by a scalar.
 *
 * @param {mat2d} out the receiving matrix
 * @param {ReadonlyMat2d} a the matrix to scale
 * @param {Number} b amount to scale the matrix's elements by
 * @returns {mat2d} out
 */

/**
 * Multiply each element of the matrix by a scalar.
 *
 * @param {mat2} out the receiving matrix
 * @param {ReadonlyMat2} a the matrix to scale
 * @param {Number} b amount to scale the matrix's elements by
 * @returns {mat2} out
 */

/**
 * Multiply each element of the matrix by a scalar.
 *
 * @param {mat3} out the receiving matrix
 * @param {ReadonlyMat3} a the matrix to scale
 * @param {Number} b amount to scale the matrix's elements by
 * @returns {mat3} out
 */

/**
 * Multiply each element of the matrix by a scalar.
 *
 * @param {mat4} out the receiving matrix
 * @param {ReadonlyMat4} a the matrix to scale
 * @param {Number} b amount to scale the matrix's elements by
 * @returns {mat4} out
 */

/**
 * Name of Background Shape
 */

/**
 * Negates the components of a vec2
 *
 * @param {vec2} out the receiving vector
 * @param {ReadonlyVec2} a vector to negate
 * @returns {vec2} out
 */

/**
 * Negates the components of a vec3
 *
 * @param {vec3} out the receiving vector
 * @param {ReadonlyVec3} a vector to negate
 * @returns {vec3} out
 */

/**
 * Negates the components of a vec4
 *
 * @param {vec4} out the receiving vector
 * @param {ReadonlyVec4} a vector to negate
 * @returns {vec4} out
 */

/**
 * Normalize a dual quat
 *
 * @param {quat2} out the receiving dual quaternion
 * @param {ReadonlyQuat2} a dual quaternion to normalize
 * @returns {quat2} out
 * @function
 */

/**
 * Normalize a quat
 *
 * @param {quat} out the receiving quaternion
 * @param {ReadonlyQuat} a quaternion to normalize
 * @returns {quat} out
 * @function
 */

/**
 * Normalize a vec2
 *
 * @param {vec2} out the receiving vector
 * @param {ReadonlyVec2} a vector to normalize
 * @returns {vec2} out
 */

/**
 * Normalize a vec3
 *
 * @param {vec3} out the receiving vector
 * @param {ReadonlyVec3} a vector to normalize
 * @returns {vec3} out
 */

/**
 * Normalize a vec4
 *
 * @param {vec4} out the receiving vector
 * @param {ReadonlyVec4} a vector to normalize
 * @returns {vec4} out
 */

/**
 * Offset Left
 * getBoundingClientRect technique from
 * John Resig http://ejohn.org/blog/getboundingclientrect-is-awesome/
 *
 * @function findElPosition
 * @param {ReactNodeRef} el React Node ref from which to get offset
 * @return {Object}
 */

/**
 * Perform some operation over an array of vec2s.
 *
 * @param {Array} a the array of vectors to iterate over
 * @param {Number} stride Number of elements between the start of each vec2. If 0 assumes tightly packed
 * @param {Number} offset Number of elements to skip at the beginning of the array
 * @param {Number} count Number of vec2s to iterate over. If 0 iterates over entire array
 * @param {Function} fn Function to call for each vector in the array
 * @param {Object} [arg] additional argument to pass to fn
 * @returns {Array} a
 * @function
 */

/**
 * Perform some operation over an array of vec3s.
 *
 * @param {Array} a the array of vectors to iterate over
 * @param {Number} stride Number of elements between the start of each vec3. If 0 assumes tightly packed
 * @param {Number} offset Number of elements to skip at the beginning of the array
 * @param {Number} count Number of vec3s to iterate over. If 0 iterates over entire array
 * @param {Function} fn Function to call for each vector in the array
 * @param {Object} [arg] additional argument to pass to fn
 * @returns {Array} a
 * @function
 */

/**
 * Perform some operation over an array of vec4s.
 *
 * @param {Array} a the array of vectors to iterate over
 * @param {Number} stride Number of elements between the start of each vec4. If 0 assumes tightly packed
 * @param {Number} offset Number of elements to skip at the beginning of the array
 * @param {Number} count Number of vec4s to iterate over. If 0 iterates over entire array
 * @param {Function} fn Function to call for each vector in the array
 * @param {Object} [arg] additional argument to pass to fn
 * @returns {Array} a
 * @function
 */

/**
 * Performs a bezier interpolation with two control points
 *
 * @param {vec3} out the receiving vector
 * @param {ReadonlyVec3} a the first operand
 * @param {ReadonlyVec3} b the second operand
 * @param {ReadonlyVec3} c the third operand
 * @param {ReadonlyVec3} d the fourth operand
 * @param {Number} t interpolation amount, in the range [0-1], between the two inputs
 * @returns {vec3} out
 */

/**
 * Performs a hermite interpolation with two control points
 *
 * @param {vec3} out the receiving vector
 * @param {ReadonlyVec3} a the first operand
 * @param {ReadonlyVec3} b the second operand
 * @param {ReadonlyVec3} c the third operand
 * @param {ReadonlyVec3} d the fourth operand
 * @param {Number} t interpolation amount, in the range [0-1], between the two inputs
 * @returns {vec3} out
 */

/**
 * Performs a linear interpolation between two dual quats's
 * NOTE: The resulting dual quaternions won't always be normalized (The error is most noticeable when t = 0.5)
 *
 * @param {quat2} out the receiving dual quat
 * @param {ReadonlyQuat2} a the first operand
 * @param {ReadonlyQuat2} b the second operand
 * @param {Number} t interpolation amount, in the range [0-1], between the two inputs
 * @returns {quat2} out
 */

/**
 * Performs a linear interpolation between two quat's
 *
 * @param {quat} out the receiving quaternion
 * @param {ReadonlyQuat} a the first operand
 * @param {ReadonlyQuat} b the second operand
 * @param {Number} t interpolation amount, in the range [0-1], between the two inputs
 * @returns {quat} out
 * @function
 */

/**
 * Performs a linear interpolation between two vec2's
 *
 * @param {vec2} out the receiving vector
 * @param {ReadonlyVec2} a the first operand
 * @param {ReadonlyVec2} b the second operand
 * @param {Number} t interpolation amount, in the range [0-1], between the two inputs
 * @returns {vec2} out
 */

/**
 * Performs a linear interpolation between two vec3's
 *
 * @param {vec3} out the receiving vector
 * @param {ReadonlyVec3} a the first operand
 * @param {ReadonlyVec3} b the second operand
 * @param {Number} t interpolation amount, in the range [0-1], between the two inputs
 * @returns {vec3} out
 */

/**
 * Performs a linear interpolation between two vec4's
 *
 * @param {vec4} out the receiving vector
 * @param {ReadonlyVec4} a the first operand
 * @param {ReadonlyVec4} b the second operand
 * @param {Number} t interpolation amount, in the range [0-1], between the two inputs
 * @returns {vec4} out
 */

/**
 * Performs a spherical linear interpolation between two quat
 *
 * @param {quat} out the receiving quaternion
 * @param {ReadonlyQuat} a the first operand
 * @param {ReadonlyQuat} b the second operand
 * @param {Number} t interpolation amount, in the range [0-1], between the two inputs
 * @returns {quat} out
 */

/**
 * Performs a spherical linear interpolation with two control points
 *
 * @param {quat} out the receiving quaternion
 * @param {ReadonlyQuat} a the first operand
 * @param {ReadonlyQuat} b the second operand
 * @param {ReadonlyQuat} c the third operand
 * @param {ReadonlyQuat} d the fourth operand
 * @param {Number} t interpolation amount, in the range [0-1], between the two inputs
 * @returns {quat} out
 */

/**
 * Point 几何标记。
 * 常用于绘制点图。
 */

/**
 * Polygon 几何标记。
 * 常用于绘制色块图、日历图等。
 */

/**
 * Prints a warning in the console if it exists.
 *
 * @param {String} message The warning message.
 * @returns {void}
 */

/**
 * Projects each source value to an Observable which is merged in the output
 * Observable only if the previous projected Observable has completed.
 *
 * <span class="informal">Maps each value to an Observable, then flattens all of
 * these inner Observables using {@link exhaust}.</span>
 *
 * <img src="./img/exhaustMap.png" width="100%">
 *
 * Returns an Observable that emits items based on applying a function that you
 * supply to each item emitted by the source Observable, where that function
 * returns an (so-called "inner") Observable. When it projects a source value to
 * an Observable, the output Observable begins emitting the items emitted by
 * that projected Observable. However, `exhaustMap` ignores every new projected
 * Observable if the previous projected Observable has not yet completed. Once
 * that one completes, it will accept and flatten the next projected Observable
 * and repeat this process.
 *
 * @example <caption>Run a finite timer for each click, only if there is no currently active timer</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var result = clicks.exhaustMap((ev) => Rx.Observable.interval(1000).take(5));
 * result.subscribe(x => console.log(x));
 *
 * @see {@link concatMap}
 * @see {@link exhaust}
 * @see {@link mergeMap}
 * @see {@link switchMap}
 *
 * @param {function(value: T, ?index: number): ObservableInput} project A function
 * that, when applied to an item emitted by the source Observable, returns an
 * Observable.
 * @param {function(outerValue: T, innerValue: I, outerIndex: number, innerIndex: number): any} [resultSelector]
 * A function to produce the value on the output Observable based on the values
 * and the indices of the source (outer) emission and the inner Observable
 * emission. The arguments passed to this function are:
 * - `outerValue`: the value that came from the source
 * - `innerValue`: the value that came from the projected Observable
 * - `outerIndex`: the "index" of the value that came from the source
 * - `innerIndex`: the "index" of the value from the projected Observable
 * @return {Observable} An Observable containing projected Observables
 * of each item of the source, ignoring projected Observables that start before
 * their preceding Observable has completed.
 * @method exhaustMap
 * @owner Observable
 */

/**
 * Projects each source value to an Observable which is merged in the output
 * Observable, in a serialized fashion waiting for each one to complete before
 * merging the next.
 *
 * <span class="informal">Maps each value to an Observable, then flattens all of
 * these inner Observables using {@link concatAll}.</span>
 *
 * <img src="./img/concatMap.png" width="100%">
 *
 * Returns an Observable that emits items based on applying a function that you
 * supply to each item emitted by the source Observable, where that function
 * returns an (so-called "inner") Observable. Each new inner Observable is
 * concatenated with the previous inner Observable.
 *
 * __Warning:__ if source values arrive endlessly and faster than their
 * corresponding inner Observables can complete, it will result in memory issues
 * as inner Observables amass in an unbounded buffer waiting for their turn to
 * be subscribed to.
 *
 * Note: `concatMap` is equivalent to `mergeMap` with concurrency parameter set
 * to `1`.
 *
 * @example <caption>For each click event, tick every second from 0 to 3, with no concurrency</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var result = clicks.concatMap(ev => Rx.Observable.interval(1000).take(4));
 * result.subscribe(x => console.log(x));
 *
 * // Results in the following:
 * // (results are not concurrent)
 * // For every click on the "document" it will emit values 0 to 3 spaced
 * // on a 1000ms interval
 * // one click = 1000ms-> 0 -1000ms-> 1 -1000ms-> 2 -1000ms-> 3
 *
 * @see {@link concat}
 * @see {@link concatAll}
 * @see {@link concatMapTo}
 * @see {@link exhaustMap}
 * @see {@link mergeMap}
 * @see {@link switchMap}
 *
 * @param {function(value: T, ?index: number): ObservableInput} project A function
 * that, when applied to an item emitted by the source Observable, returns an
 * Observable.
 * @param {function(outerValue: T, innerValue: I, outerIndex: number, innerIndex: number): any} [resultSelector]
 * A function to produce the value on the output Observable based on the values
 * and the indices of the source (outer) emission and the inner Observable
 * emission. The arguments passed to this function are:
 * - `outerValue`: the value that came from the source
 * - `innerValue`: the value that came from the projected Observable
 * - `outerIndex`: the "index" of the value that came from the source
 * - `innerIndex`: the "index" of the value from the projected Observable
 * @return {Observable} An Observable that emits the result of applying the
 * projection function (and the optional `resultSelector`) to each item emitted
 * by the source Observable and taking values from each projected inner
 * Observable sequentially.
 * @method concatMap
 * @owner Observable
 */

/**
 * Projects each source value to the same Observable which is flattened multiple
 * times with {@link switch} in the output Observable.
 *
 * <span class="informal">It's like {@link switchMap}, but maps each value
 * always to the same inner Observable.</span>
 *
 * <img src="./img/switchMapTo.png" width="100%">
 *
 * Maps each source value to the given Observable `innerObservable` regardless
 * of the source value, and then flattens those resulting Observables into one
 * single Observable, which is the output Observable. The output Observables
 * emits values only from the most recently emitted instance of
 * `innerObservable`.
 *
 * @example <caption>Rerun an interval Observable on every click event</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var result = clicks.switchMapTo(Rx.Observable.interval(1000));
 * result.subscribe(x => console.log(x));
 *
 * @see {@link concatMapTo}
 * @see {@link switch}
 * @see {@link switchMap}
 * @see {@link mergeMapTo}
 *
 * @param {ObservableInput} innerObservable An Observable to replace each value from
 * the source Observable.
 * @param {function(outerValue: T, innerValue: I, outerIndex: number, innerIndex: number): any} [resultSelector]
 * A function to produce the value on the output Observable based on the values
 * and the indices of the source (outer) emission and the inner Observable
 * emission. The arguments passed to this function are:
 * - `outerValue`: the value that came from the source
 * - `innerValue`: the value that came from the projected Observable
 * - `outerIndex`: the "index" of the value that came from the source
 * - `innerIndex`: the "index" of the value from the projected Observable
 * @return {Observable} An Observable that emits items from the given
 * `innerObservable` (and optionally transformed through `resultSelector`) every
 * time a value is emitted on the source Observable, and taking only the values
 * from the most recently projected inner Observable.
 * @method switchMapTo
 * @owner Observable
 */

/**
 * Projects each source value to the same Observable which is merged multiple
 * times in a serialized fashion on the output Observable.
 *
 * <span class="informal">It's like {@link concatMap}, but maps each value
 * always to the same inner Observable.</span>
 *
 * <img src="./img/concatMapTo.png" width="100%">
 *
 * Maps each source value to the given Observable `innerObservable` regardless
 * of the source value, and then flattens those resulting Observables into one
 * single Observable, which is the output Observable. Each new `innerObservable`
 * instance emitted on the output Observable is concatenated with the previous
 * `innerObservable` instance.
 *
 * __Warning:__ if source values arrive endlessly and faster than their
 * corresponding inner Observables can complete, it will result in memory issues
 * as inner Observables amass in an unbounded buffer waiting for their turn to
 * be subscribed to.
 *
 * Note: `concatMapTo` is equivalent to `mergeMapTo` with concurrency parameter
 * set to `1`.
 *
 * @example <caption>For each click event, tick every second from 0 to 3, with no concurrency</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var result = clicks.concatMapTo(Rx.Observable.interval(1000).take(4));
 * result.subscribe(x => console.log(x));
 *
 * // Results in the following:
 * // (results are not concurrent)
 * // For every click on the "document" it will emit values 0 to 3 spaced
 * // on a 1000ms interval
 * // one click = 1000ms-> 0 -1000ms-> 1 -1000ms-> 2 -1000ms-> 3
 *
 * @see {@link concat}
 * @see {@link concatAll}
 * @see {@link concatMap}
 * @see {@link mergeMapTo}
 * @see {@link switchMapTo}
 *
 * @param {ObservableInput} innerObservable An Observable to replace each value from
 * the source Observable.
 * @param {function(outerValue: T, innerValue: I, outerIndex: number, innerIndex: number): any} [resultSelector]
 * A function to produce the value on the output Observable based on the values
 * and the indices of the source (outer) emission and the inner Observable
 * emission. The arguments passed to this function are:
 * - `outerValue`: the value that came from the source
 * - `innerValue`: the value that came from the projected Observable
 * - `outerIndex`: the "index" of the value that came from the source
 * - `innerIndex`: the "index" of the value from the projected Observable
 * @return {Observable} An observable of values merged together by joining the
 * passed observable with itself, one after the other, for each value emitted
 * from the source.
 * @method concatMapTo
 * @owner Observable
 */

/**
 * Projects each source value to the same Observable which is merged multiple
 * times in the output Observable.
 *
 * <span class="informal">It's like {@link mergeMap}, but maps each value always
 * to the same inner Observable.</span>
 *
 * <img src="./img/mergeMapTo.png" width="100%">
 *
 * Maps each source value to the given Observable `innerObservable` regardless
 * of the source value, and then merges those resulting Observables into one
 * single Observable, which is the output Observable.
 *
 * @example <caption>For each click event, start an interval Observable ticking every 1 second</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var result = clicks.mergeMapTo(Rx.Observable.interval(1000));
 * result.subscribe(x => console.log(x));
 *
 * @see {@link concatMapTo}
 * @see {@link merge}
 * @see {@link mergeAll}
 * @see {@link mergeMap}
 * @see {@link mergeScan}
 * @see {@link switchMapTo}
 *
 * @param {ObservableInput} innerObservable An Observable to replace each value from
 * the source Observable.
 * @param {function(outerValue: T, innerValue: I, outerIndex: number, innerIndex: number): any} [resultSelector]
 * A function to produce the value on the output Observable based on the values
 * and the indices of the source (outer) emission and the inner Observable
 * emission. The arguments passed to this function are:
 * - `outerValue`: the value that came from the source
 * - `innerValue`: the value that came from the projected Observable
 * - `outerIndex`: the "index" of the value that came from the source
 * - `innerIndex`: the "index" of the value from the projected Observable
 * @param {number} [concurrent=Number.POSITIVE_INFINITY] Maximum number of input
 * Observables being subscribed to concurrently.
 * @return {Observable} An Observable that emits items from the given
 * `innerObservable` (and optionally transformed through `resultSelector`) every
 * time a value is emitted on the source Observable.
 * @method mergeMapTo
 * @owner Observable
 */

/**
 * Quaternion
 * @module quat
 */

/**
 * Recursively projects each source value to an Observable which is merged in
 * the output Observable.
 *
 * <span class="informal">It's similar to {@link mergeMap}, but applies the
 * projection function to every source value as well as every output value.
 * It's recursive.</span>
 *
 * <img src="./img/expand.png" width="100%">
 *
 * Returns an Observable that emits items based on applying a function that you
 * supply to each item emitted by the source Observable, where that function
 * returns an Observable, and then merging those resulting Observables and
 * emitting the results of this merger. *Expand* will re-emit on the output
 * Observable every source value. Then, each output value is given to the
 * `project` function which returns an inner Observable to be merged on the
 * output Observable. Those output values resulting from the projection are also
 * given to the `project` function to produce new output values. This is how
 * *expand* behaves recursively.
 *
 * @example <caption>Start emitting the powers of two on every click, at most 10 of them</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var powersOfTwo = clicks
 *   .mapTo(1)
 *   .expand(x => Rx.Observable.of(2 * x).delay(1000))
 *   .take(10);
 * powersOfTwo.subscribe(x => console.log(x));
 *
 * @see {@link mergeMap}
 * @see {@link mergeScan}
 *
 * @param {function(value: T, index: number) => Observable} project A function
 * that, when applied to an item emitted by the source or the output Observable,
 * returns an Observable.
 * @param {number} [concurrent=Number.POSITIVE_INFINITY] Maximum number of input
 * Observables being subscribed to concurrently.
 * @param {Scheduler} [scheduler=null] The IScheduler to use for subscribing to
 * each projected inner Observable.
 * @return {Observable} An Observable that emits the source values and also
 * result of applying the projection function to each value emitted on the
 * output Observable and and merging the results of the Observables obtained
 * from this transformation.
 * @method expand
 * @owner Observable
 */

/**
 * Removed:
 *  - getCalendarContainer: use `getPopupContainer` instead
 *  - onOk
 *
 * New Feature:
 *  - picker
 *  - allowEmpty
 *  - selectable
 *
 * Tips: Should add faq about `datetime` mode with `defaultValue`
 */

/**
 * Represents a single media query, manages it's state and registered handlers for this query
 *
 * @constructor
 * @param {string} query the media query string
 * @param {boolean} [isUnconditional=false] whether the media query should run regardless of whether the conditions are met. Primarily for helping older browsers deal with mobile-first design
 */

/**
 * Represents all of the notifications from the source Observable as `next`
 * emissions marked with their original types within {@link Notification}
 * objects.
 *
 * <span class="informal">Wraps `next`, `error` and `complete` emissions in
 * {@link Notification} objects, emitted as `next` on the output Observable.
 * </span>
 *
 * <img src="./img/materialize.png" width="100%">
 *
 * `materialize` returns an Observable that emits a `next` notification for each
 * `next`, `error`, or `complete` emission of the source Observable. When the
 * source Observable emits `complete`, the output Observable will emit `next` as
 * a Notification of type "complete", and then it will emit `complete` as well.
 * When the source Observable emits `error`, the output will emit `next` as a
 * Notification of type "error", and then `complete`.
 *
 * This operator is useful for producing metadata of the source Observable, to
 * be consumed as `next` emissions. Use it in conjunction with
 * {@link dematerialize}.
 *
 * @example <caption>Convert a faulty Observable to an Observable of Notifications</caption>
 * var letters = Rx.Observable.of('a', 'b', 13, 'd');
 * var upperCase = letters.map(x => x.toUpperCase());
 * var materialized = upperCase.materialize();
 * materialized.subscribe(x => console.log(x));
 *
 * // Results in the following:
 * // - Notification {kind: "N", value: "A", error: undefined, hasValue: true}
 * // - Notification {kind: "N", value: "B", error: undefined, hasValue: true}
 * // - Notification {kind: "E", value: undefined, error: TypeError:
 * //   x.toUpperCase is not a function at MapSubscriber.letters.map.x
 * //   [as project] (http://1…, hasValue: false}
 *
 * @see {@link Notification}
 * @see {@link dematerialize}
 *
 * @return {Observable<Notification<T>>} An Observable that emits
 * {@link Notification} objects that wrap the original emissions from the source
 * Observable with metadata.
 * @method materialize
 * @owner Observable
 */

/**
 * Return a human readable representation of a moment that can
 * also be evaluated to get a new moment which is the same
 *
 * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
 */

/**
 * Returns Frobenius norm of a mat2
 *
 * @param {ReadonlyMat2} a the matrix to calculate Frobenius norm of
 * @returns {Number} Frobenius norm
 */

/**
 * Returns Frobenius norm of a mat2d
 *
 * @param {ReadonlyMat2d} a the matrix to calculate Frobenius norm of
 * @returns {Number} Frobenius norm
 */

/**
 * Returns Frobenius norm of a mat3
 *
 * @param {ReadonlyMat3} a the matrix to calculate Frobenius norm of
 * @returns {Number} Frobenius norm
 */

/**
 * Returns Frobenius norm of a mat4
 *
 * @param {ReadonlyMat4} a the matrix to calculate Frobenius norm of
 * @returns {Number} Frobenius norm
 */

/**
 * Returns L, D and U matrices (Lower triangular, Diagonal and Upper triangular) by factorizing the input matrix
 * @param {ReadonlyMat2} L the lower triangular matrix
 * @param {ReadonlyMat2} D the diagonal matrix
 * @param {ReadonlyMat2} U the upper triangular matrix
 * @param {ReadonlyMat2} a the input matrix to factorize
 */

/**
 * Returns a ConnectableObservable, which is a variety of Observable that waits until its connect method is called
 * before it begins emitting items to those Observers that have subscribed to it.
 *
 * <img src="./img/publish.png" width="100%">
 *
 * @param {Function} [selector] - Optional selector function which can use the multicasted source sequence as many times
 * as needed, without causing multiple subscriptions to the source sequence.
 * Subscribers to the given source will receive all notifications of the source from the time of the subscription on.
 * @return A ConnectableObservable that upon connection causes the source Observable to emit items to its Observers.
 * @method publish
 * @owner Observable
 */

/**
 * Returns a new Observable that multicasts (shares) the original Observable. As long as there is at least one
 * Subscriber this Observable will be subscribed and emitting data. When all subscribers have unsubscribed it will
 * unsubscribe from the source Observable. Because the Observable is multicasting it makes the stream `hot`.
 *
 * This behaves similarly to .publish().refCount(), with a behavior difference when the source observable emits complete.
 * .publish().refCount() will not resubscribe to the original source, however .share() will resubscribe to the original source.
 * Observable.of("test").publish().refCount() will not re-emit "test" on new subscriptions, Observable.of("test").share() will
 * re-emit "test" to new subscriptions.
 *
 * <img src="./img/share.png" width="100%">
 *
 * @return {Observable<T>} An Observable that upon connection causes the source Observable to emit items to its Observers.
 * @method share
 * @owner Observable
 */

/**
 * Returns a new Observable that multicasts (shares) the original Observable. As long as there is at least one
 * Subscriber this Observable will be subscribed and emitting data. When all subscribers have unsubscribed it will
 * unsubscribe from the source Observable. Because the Observable is multicasting it makes the stream `hot`.
 * This is an alias for .multicast(() => new Subject()).refCount().
 *
 * <img src="./img/share.png" width="100%">
 *
 * @return {Observable<T>} An Observable that upon connection causes the source Observable to emit items to its Observers.
 * @method share
 * @owner Observable
 */

/**
 * Returns a quaternion representing the rotational component
 *  of a transformation matrix. If a matrix is built with
 *  fromRotationTranslation, the returned quaternion will be the
 *  same as the quaternion originally supplied.
 * @param {quat} out Quaternion to receive the rotation component
 * @param {ReadonlyMat4} mat Matrix to be decomposed (input)
 * @return {quat} out
 */

/**
 * Returns a string representation of a dual quatenion
 *
 * @param {ReadonlyQuat2} a dual quaternion to represent as a string
 * @returns {String} string representation of the dual quat
 */

/**
 * Returns a string representation of a mat2
 *
 * @param {ReadonlyMat2} a matrix to represent as a string
 * @returns {String} string representation of the matrix
 */

/**
 * Returns a string representation of a mat2d
 *
 * @param {ReadonlyMat2d} a matrix to represent as a string
 * @returns {String} string representation of the matrix
 */

/**
 * Returns a string representation of a mat3
 *
 * @param {ReadonlyMat3} a matrix to represent as a string
 * @returns {String} string representation of the matrix
 */

/**
 * Returns a string representation of a mat4
 *
 * @param {ReadonlyMat4} a matrix to represent as a string
 * @returns {String} string representation of the matrix
 */

/**
 * Returns a string representation of a quatenion
 *
 * @param {ReadonlyQuat} a vector to represent as a string
 * @returns {String} string representation of the vector
 */

/**
 * Returns a string representation of a vector
 *
 * @param {ReadonlyVec2} a vector to represent as a string
 * @returns {String} string representation of the vector
 */

/**
 * Returns a string representation of a vector
 *
 * @param {ReadonlyVec3} a vector to represent as a string
 * @returns {String} string representation of the vector
 */

/**
 * Returns a string representation of a vector
 *
 * @param {ReadonlyVec4} a vector to represent as a string
 * @returns {String} string representation of the vector
 */

/**
 * Returns an Observable that emits all items emitted by the source Observable that are distinct by comparison from previous items.
 *
 * If a keySelector function is provided, then it will project each value from the source observable into a new value that it will
 * check for equality with previously projected values. If a keySelector function is not provided, it will use each value from the
 * source observable directly with an equality check against previous values.
 *
 * In JavaScript runtimes that support `Set`, this operator will use a `Set` to improve performance of the distinct value checking.
 *
 * In other runtimes, this operator will use a minimal implementation of `Set` that relies on an `Array` and `indexOf` under the
 * hood, so performance will degrade as more values are checked for distinction. Even in newer browsers, a long-running `distinct`
 * use might result in memory leaks. To help alleviate this in some scenarios, an optional `flushes` parameter is also provided so
 * that the internal `Set` can be "flushed", basically clearing it of values.
 *
 * @example <caption>A simple example with numbers</caption>
 * Observable.of(1, 1, 2, 2, 2, 1, 2, 3, 4, 3, 2, 1)
 *   .distinct()
 *   .subscribe(x => console.log(x)); // 1, 2, 3, 4
 *
 * @example <caption>An example using a keySelector function</caption>
 * interface Person {
 *    age: number,
 *    name: string
 * }
 *
 * Observable.of<Person>(
 *     { age: 4, name: 'Foo'},
 *     { age: 7, name: 'Bar'},
 *     { age: 5, name: 'Foo'})
 *     .distinct((p: Person) => p.name)
 *     .subscribe(x => console.log(x));
 *
 * // displays:
 * // { age: 4, name: 'Foo' }
 * // { age: 7, name: 'Bar' }
 *
 * @see {@link distinctUntilChanged}
 * @see {@link distinctUntilKeyChanged}
 *
 * @param {function} [keySelector] Optional function to select which value you want to check as distinct.
 * @param {Observable} [flushes] Optional Observable for flushing the internal HashSet of the operator.
 * @return {Observable} An Observable that emits items from the source Observable with distinct values.
 * @method distinct
 * @owner Observable
 */

/**
 * Returns an Observable that emits all items emitted by the source Observable that are distinct by comparison from the previous item,
 * using a property accessed by using the key provided to check if the two items are distinct.
 *
 * If a comparator function is provided, then it will be called for each item to test for whether or not that value should be emitted.
 *
 * If a comparator function is not provided, an equality check is used by default.
 *
 * @example <caption>An example comparing the name of persons</caption>
 *
 *  interface Person {
 *     age: number,
 *     name: string
 *  }
 *
 * Observable.of<Person>(
 *     { age: 4, name: 'Foo'},
 *     { age: 7, name: 'Bar'},
 *     { age: 5, name: 'Foo'},
 *     { age: 6, name: 'Foo'})
 *     .distinctUntilKeyChanged('name')
 *     .subscribe(x => console.log(x));
 *
 * // displays:
 * // { age: 4, name: 'Foo' }
 * // { age: 7, name: 'Bar' }
 * // { age: 5, name: 'Foo' }
 *
 * @example <caption>An example comparing the first letters of the name</caption>
 *
 * interface Person {
 *     age: number,
 *     name: string
 *  }
 *
 * Observable.of<Person>(
 *     { age: 4, name: 'Foo1'},
 *     { age: 7, name: 'Bar'},
 *     { age: 5, name: 'Foo2'},
 *     { age: 6, name: 'Foo3'})
 *     .distinctUntilKeyChanged('name', (x: string, y: string) => x.substring(0, 3) === y.substring(0, 3))
 *     .subscribe(x => console.log(x));
 *
 * // displays:
 * // { age: 4, name: 'Foo1' }
 * // { age: 7, name: 'Bar' }
 * // { age: 5, name: 'Foo2' }
 *
 * @see {@link distinct}
 * @see {@link distinctUntilChanged}
 *
 * @param {string} key String key for object property lookup on each item.
 * @param {function} [compare] Optional comparison function called to test if an item is distinct from the previous item in the source.
 * @return {Observable} An Observable that emits items from the source Observable with distinct values based on the key specified.
 * @method distinctUntilKeyChanged
 * @owner Observable
 */

/**
 * Returns an Observable that emits all items emitted by the source Observable that are distinct by comparison from the previous item.
 *
 * If a comparator function is provided, then it will be called for each item to test for whether or not that value should be emitted.
 *
 * If a comparator function is not provided, an equality check is used by default.
 *
 * @example <caption>A simple example with numbers</caption>
 * Observable.of(1, 1, 2, 2, 2, 1, 1, 2, 3, 3, 4)
 *   .distinctUntilChanged()
 *   .subscribe(x => console.log(x)); // 1, 2, 1, 2, 3, 4
 *
 * @example <caption>An example using a compare function</caption>
 * interface Person {
 *    age: number,
 *    name: string
 * }
 *
 * Observable.of<Person>(
 *     { age: 4, name: 'Foo'},
 *     { age: 7, name: 'Bar'},
 *     { age: 5, name: 'Foo'})
 *     { age: 6, name: 'Foo'})
 *     .distinctUntilChanged((p: Person, q: Person) => p.name === q.name)
 *     .subscribe(x => console.log(x));
 *
 * // displays:
 * // { age: 4, name: 'Foo' }
 * // { age: 7, name: 'Bar' }
 * // { age: 5, name: 'Foo' }
 *
 * @see {@link distinct}
 * @see {@link distinctUntilKeyChanged}
 *
 * @param {function} [compare] Optional comparison function called to test if an item is distinct from the previous item in the source.
 * @return {Observable} An Observable that emits items from the source Observable with distinct values.
 * @method distinctUntilChanged
 * @owner Observable
 */

/**
 * Returns an Observable that emits only the last item emitted by the source Observable.
 * It optionally takes a predicate function as a parameter, in which case, rather than emitting
 * the last item from the source Observable, the resulting Observable will emit the last item
 * from the source Observable that satisfies the predicate.
 *
 * <img src="./img/last.png" width="100%">
 *
 * @throws {EmptyError} Delivers an EmptyError to the Observer's `error`
 * callback if the Observable completes before any `next` notification was sent.
 * @param {function} predicate - The condition any source emitted item has to satisfy.
 * @return {Observable} An Observable that emits only the last item satisfying the given condition
 * from the source, or an NoSuchElementException if no such items are emitted.
 * @throws - Throws if no items that match the predicate are emitted by the source Observable.
 * @method last
 * @owner Observable
 */

/**
 * Returns an Observable that emits the items you specify as arguments before it begins to emit
 * items emitted by the source Observable.
 *
 * <img src="./img/startWith.png" width="100%">
 *
 * @param {...T} values - Items you want the modified Observable to emit first.
 * @param {Scheduler} [scheduler] - A {@link IScheduler} to use for scheduling
 * the emissions of the `next` notifications.
 * @return {Observable} An Observable that emits the items in the specified Iterable and then emits the items
 * emitted by the source Observable.
 * @method startWith
 * @owner Observable
 */

/**
 * Returns an Observable that emits the results of invoking a specified selector on items
 * emitted by a ConnectableObservable that shares a single subscription to the underlying stream.
 *
 * <img src="./img/multicast.png" width="100%">
 *
 * @param {Function|Subject} subjectOrSubjectFactory - Factory function to create an intermediate subject through
 * which the source sequence's elements will be multicast to the selector function
 * or Subject to push source elements into.
 * @param {Function} [selector] - Optional selector function that can use the multicasted source stream
 * as many times as needed, without causing multiple subscriptions to the source stream.
 * Subscribers to the given source will receive all notifications of the source from the
 * time of the subscription forward.
 * @return {Observable} An Observable that emits the results of invoking the selector
 * on the items emitted by a `ConnectableObservable` that shares a single subscription to
 * the underlying stream.
 * @method multicast
 * @owner Observable
 */

/**
 * Returns an Observable that emits the single item emitted by the source Observable that matches a specified
 * predicate, if that Observable emits one such item. If the source Observable emits more than one such item or no
 * such items, notify of an IllegalArgumentException or NoSuchElementException respectively.
 *
 * <img src="./img/single.png" width="100%">
 *
 * @throws {EmptyError} Delivers an EmptyError to the Observer's `error`
 * callback if the Observable completes before any `next` notification was sent.
 * @param {Function} predicate - A predicate function to evaluate items emitted by the source Observable.
 * @return {Observable<T>} An Observable that emits the single item emitted by the source Observable that matches
 * the predicate.
 .
 * @method single
 * @owner Observable
 */

/**
 * Returns an Observable that emits whether or not every item of the source satisfies the condition specified.
 *
 * @example <caption>A simple example emitting true if all elements are less than 5, false otherwise</caption>
 *  Observable.of(1, 2, 3, 4, 5, 6)
 *     .every(x => x < 5)
 *     .subscribe(x => console.log(x)); // -> false
 *
 * @param {function} predicate A function for determining if an item meets a specified condition.
 * @param {any} [thisArg] Optional object to use for `this` in the callback.
 * @return {Observable} An Observable of booleans that determines if all items of the source Observable meet the condition specified.
 * @method every
 * @owner Observable
 */

/**
 * Returns an Observable that mirrors the first source Observable to emit an item
 * from the combination of this Observable and supplied Observables.
 * @param {...Observables} ...observables Sources used to race for which Observable emits first.
 * @return {Observable} An Observable that mirrors the output of the first Observable to emit an item.
 * @method race
 * @owner Observable
 */

/**
 * Returns an Observable that mirrors the source Observable with the exception of a `complete`. If the source
 * Observable calls `complete`, this method will emit to the Observable returned from `notifier`. If that Observable
 * calls `complete` or `error`, then this method will call `complete` or `error` on the child subscription. Otherwise
 * this method will resubscribe to the source Observable.
 *
 * <img src="./img/repeatWhen.png" width="100%">
 *
 * @param {function(notifications: Observable): Observable} notifier - Receives an Observable of notifications with
 * which a user can `complete` or `error`, aborting the repetition.
 * @return {Observable} The source Observable modified with repeat logic.
 * @method repeatWhen
 * @owner Observable
 */

/**
 * Returns an Observable that mirrors the source Observable with the exception of an `error`. If the source Observable
 * calls `error`, this method will emit the Throwable that caused the error to the Observable returned from `notifier`.
 * If that Observable calls `complete` or `error` then this method will call `complete` or `error` on the child
 * subscription. Otherwise this method will resubscribe to the source Observable.
 *
 * <img src="./img/retryWhen.png" width="100%">
 *
 * @param {function(errors: Observable): Observable} notifier - Receives an Observable of notifications with which a
 * user can `complete` or `error`, aborting the retry.
 * @return {Observable} The source Observable modified with retry logic.
 * @method retryWhen
 * @owner Observable
 */

/**
 * Returns an Observable that mirrors the source Observable with the exception of an `error`. If the source Observable
 * calls `error`, this method will resubscribe to the source Observable for a maximum of `count` resubscriptions (given
 * as a number parameter) rather than propagating the `error` call.
 *
 * <img src="./img/retry.png" width="100%">
 *
 * Any and all items emitted by the source Observable will be emitted by the resulting Observable, even those emitted
 * during failed subscriptions. For example, if an Observable fails at first but emits [1, 2] then succeeds the second
 * time and emits: [1, 2, 3, 4, 5] then the complete stream of emissions and notifications
 * would be: [1, 2, 1, 2, 3, 4, 5, `complete`].
 * @param {number} count - Number of retry attempts before failing.
 * @return {Observable} The source Observable modified with the retry logic.
 * @method retry
 * @owner Observable
 */

/**
 * Returns an Observable that mirrors the source Observable, but will call a specified function when
 * the source terminates on complete or error.
 * @param {function} callback Function to be called when source terminates.
 * @return {Observable} An Observable that mirrors the source, but will call the specified function on termination.
 * @method finally
 * @owner Observable
 */

/**
 * Returns an Observable that repeats the stream of items emitted by the source Observable at most count times.
 *
 * <img src="./img/repeat.png" width="100%">
 *
 * @param {number} [count] The number of times the source Observable items are repeated, a count of 0 will yield
 * an empty Observable.
 * @return {Observable} An Observable that repeats the stream of items emitted by the source Observable at most
 * count times.
 * @method repeat
 * @owner Observable
 */

/**
 * Returns an Observable that skips all items emitted by the source Observable as long as a specified condition holds
 * true, but emits all further source items as soon as the condition becomes false.
 *
 * <img src="./img/skipWhile.png" width="100%">
 *
 * @param {Function} predicate - A function to test each item emitted from the source Observable.
 * @return {Observable<T>} An Observable that begins emitting items emitted by the source Observable when the
 * specified predicate becomes false.
 * @method skipWhile
 * @owner Observable
 */

/**
 * Returns an Observable that skips items emitted by the source Observable until a second Observable emits an item.
 *
 * <img src="./img/skipUntil.png" width="100%">
 *
 * @param {Observable} notifier - The second Observable that has to emit an item before the source Observable's elements begin to
 * be mirrored by the resulting Observable.
 * @return {Observable<T>} An Observable that skips items from the source Observable until the second Observable emits
 * an item, then emits the remaining items.
 * @method skipUntil
 * @owner Observable
 */

/**
 * Returns an Observable that skips the first `count` items emitted by the source Observable.
 *
 * <img src="./img/skip.png" width="100%">
 *
 * @param {Number} count - The number of times, items emitted by source Observable should be skipped.
 * @return {Observable} An Observable that skips values emitted by the source Observable.
 *
 * @method skip
 * @owner Observable
 */

/**
 * Returns the cross-product of three vectors in a 4-dimensional space
 *
 * @param {ReadonlyVec4} result the receiving vector
 * @param {ReadonlyVec4} U the first vector
 * @param {ReadonlyVec4} V the second vector
 * @param {ReadonlyVec4} W the third vector
 * @returns {vec4} result
 */

/**
 * Returns the inverse of the components of a vec2
 *
 * @param {vec2} out the receiving vector
 * @param {ReadonlyVec2} a vector to invert
 * @returns {vec2} out
 */

/**
 * Returns the inverse of the components of a vec3
 *
 * @param {vec3} out the receiving vector
 * @param {ReadonlyVec3} a vector to invert
 * @returns {vec3} out
 */

/**
 * Returns the inverse of the components of a vec4
 *
 * @param {vec4} out the receiving vector
 * @param {ReadonlyVec4} a vector to invert
 * @returns {vec4} out
 */

/**
 * Returns the maximum of two vec2's
 *
 * @param {vec2} out the receiving vector
 * @param {ReadonlyVec2} a the first operand
 * @param {ReadonlyVec2} b the second operand
 * @returns {vec2} out
 */

/**
 * Returns the maximum of two vec3's
 *
 * @param {vec3} out the receiving vector
 * @param {ReadonlyVec3} a the first operand
 * @param {ReadonlyVec3} b the second operand
 * @returns {vec3} out
 */

/**
 * Returns the maximum of two vec4's
 *
 * @param {vec4} out the receiving vector
 * @param {ReadonlyVec4} a the first operand
 * @param {ReadonlyVec4} b the second operand
 * @returns {vec4} out
 */

/**
 * Returns the minimum of two vec2's
 *
 * @param {vec2} out the receiving vector
 * @param {ReadonlyVec2} a the first operand
 * @param {ReadonlyVec2} b the second operand
 * @returns {vec2} out
 */

/**
 * Returns the minimum of two vec3's
 *
 * @param {vec3} out the receiving vector
 * @param {ReadonlyVec3} a the first operand
 * @param {ReadonlyVec3} b the second operand
 * @returns {vec3} out
 */

/**
 * Returns the minimum of two vec4's
 *
 * @param {vec4} out the receiving vector
 * @param {ReadonlyVec4} a the first operand
 * @param {ReadonlyVec4} b the second operand
 * @returns {vec4} out
 */

/**
 * Returns the scaling factor component of a transformation
 *  matrix. If a matrix is built with fromRotationTranslationScale
 *  with a normalized Quaternion paramter, the returned vector will be
 *  the same as the scaling vector
 *  originally supplied.
 * @param  {vec3} out Vector to receive scaling factor component
 * @param  {ReadonlyMat4} mat Matrix to be decomposed (input)
 * @return {vec3} out
 */

/**
 * Returns the translation vector component of a transformation
 *  matrix. If a matrix is built with fromRotationTranslation,
 *  the returned vector will be the same as the translation vector
 *  originally supplied.
 * @param  {vec3} out Vector to receive translation component
 * @param  {ReadonlyMat4} mat Matrix to be decomposed (input)
 * @return {vec3} out
 */

/**
 * Returns whether or not the dual quaternions have approximately the same elements in the same position.
 *
 * @param {ReadonlyQuat2} a the first dual quat.
 * @param {ReadonlyQuat2} b the second dual quat.
 * @returns {Boolean} true if the dual quats are equal, false otherwise.
 */

/**
 * Returns whether or not the dual quaternions have exactly the same elements in the same position (when compared with ===)
 *
 * @param {ReadonlyQuat2} a the first dual quaternion.
 * @param {ReadonlyQuat2} b the second dual quaternion.
 * @returns {Boolean} true if the dual quaternions are equal, false otherwise.
 */

/**
 * Returns whether or not the matrices have approximately the same elements in the same position.
 *
 * @param {ReadonlyMat2d} a The first matrix.
 * @param {ReadonlyMat2d} b The second matrix.
 * @returns {Boolean} True if the matrices are equal, false otherwise.
 */

/**
 * Returns whether or not the matrices have approximately the same elements in the same position.
 *
 * @param {ReadonlyMat2} a The first matrix.
 * @param {ReadonlyMat2} b The second matrix.
 * @returns {Boolean} True if the matrices are equal, false otherwise.
 */

/**
 * Returns whether or not the matrices have approximately the same elements in the same position.
 *
 * @param {ReadonlyMat3} a The first matrix.
 * @param {ReadonlyMat3} b The second matrix.
 * @returns {Boolean} True if the matrices are equal, false otherwise.
 */

/**
 * Returns whether or not the matrices have approximately the same elements in the same position.
 *
 * @param {ReadonlyMat4} a The first matrix.
 * @param {ReadonlyMat4} b The second matrix.
 * @returns {Boolean} True if the matrices are equal, false otherwise.
 */

/**
 * Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===)
 *
 * @param {ReadonlyMat2d} a The first matrix.
 * @param {ReadonlyMat2d} b The second matrix.
 * @returns {Boolean} True if the matrices are equal, false otherwise.
 */

/**
 * Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===)
 *
 * @param {ReadonlyMat2} a The first matrix.
 * @param {ReadonlyMat2} b The second matrix.
 * @returns {Boolean} True if the matrices are equal, false otherwise.
 */

/**
 * Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===)
 *
 * @param {ReadonlyMat3} a The first matrix.
 * @param {ReadonlyMat3} b The second matrix.
 * @returns {Boolean} True if the matrices are equal, false otherwise.
 */

/**
 * Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===)
 *
 * @param {ReadonlyMat4} a The first matrix.
 * @param {ReadonlyMat4} b The second matrix.
 * @returns {Boolean} True if the matrices are equal, false otherwise.
 */

/**
 * Returns whether or not the quaternions have approximately the same elements in the same position.
 *
 * @param {ReadonlyQuat} a The first vector.
 * @param {ReadonlyQuat} b The second vector.
 * @returns {Boolean} True if the vectors are equal, false otherwise.
 */

/**
 * Returns whether or not the quaternions have exactly the same elements in the same position (when compared with ===)
 *
 * @param {ReadonlyQuat} a The first quaternion.
 * @param {ReadonlyQuat} b The second quaternion.
 * @returns {Boolean} True if the vectors are equal, false otherwise.
 */

/**
 * Returns whether or not the vectors exactly have the same elements in the same position (when compared with ===)
 *
 * @param {ReadonlyVec2} a The first vector.
 * @param {ReadonlyVec2} b The second vector.
 * @returns {Boolean} True if the vectors are equal, false otherwise.
 */

/**
 * Returns whether or not the vectors have approximately the same elements in the same position.
 *
 * @param {ReadonlyVec2} a The first vector.
 * @param {ReadonlyVec2} b The second vector.
 * @returns {Boolean} True if the vectors are equal, false otherwise.
 */

/**
 * Returns whether or not the vectors have approximately the same elements in the same position.
 *
 * @param {ReadonlyVec3} a The first vector.
 * @param {ReadonlyVec3} b The second vector.
 * @returns {Boolean} True if the vectors are equal, false otherwise.
 */

/**
 * Returns whether or not the vectors have approximately the same elements in the same position.
 *
 * @param {ReadonlyVec4} a The first vector.
 * @param {ReadonlyVec4} b The second vector.
 * @returns {Boolean} True if the vectors are equal, false otherwise.
 */

/**
 * Returns whether or not the vectors have exactly the same elements in the same position (when compared with ===)
 *
 * @param {ReadonlyVec3} a The first vector.
 * @param {ReadonlyVec3} b The second vector.
 * @returns {Boolean} True if the vectors are equal, false otherwise.
 */

/**
 * Returns whether or not the vectors have exactly the same elements in the same position (when compared with ===)
 *
 * @param {ReadonlyVec4} a The first vector.
 * @param {ReadonlyVec4} b The second vector.
 * @returns {Boolean} True if the vectors are equal, false otherwise.
 */

/**
 * Rotate a 2D vector
 * @param {vec2} out The receiving vec2
 * @param {ReadonlyVec2} a The vec2 point to rotate
 * @param {ReadonlyVec2} b The origin of the rotation
 * @param {Number} rad The angle of rotation in radians
 * @returns {vec2} out
 */

/**
 * Rotate a 3D vector around the x-axis
 * @param {vec3} out The receiving vec3
 * @param {ReadonlyVec3} a The vec3 point to rotate
 * @param {ReadonlyVec3} b The origin of the rotation
 * @param {Number} rad The angle of rotation in radians
 * @returns {vec3} out
 */

/**
 * Rotate a 3D vector around the y-axis
 * @param {vec3} out The receiving vec3
 * @param {ReadonlyVec3} a The vec3 point to rotate
 * @param {ReadonlyVec3} b The origin of the rotation
 * @param {Number} rad The angle of rotation in radians
 * @returns {vec3} out
 */

/**
 * Rotate a 3D vector around the z-axis
 * @param {vec3} out The receiving vec3
 * @param {ReadonlyVec3} a The vec3 point to rotate
 * @param {ReadonlyVec3} b The origin of the rotation
 * @param {Number} rad The angle of rotation in radians
 * @returns {vec3} out
 */

/**
 * Rotates a dual quat around a given axis. Does the normalisation automatically
 *
 * @param {quat2} out the receiving dual quaternion
 * @param {ReadonlyQuat2} a the dual quaternion to rotate
 * @param {ReadonlyVec3} axis the axis to rotate around
 * @param {Number} rad how far the rotation should be
 * @returns {quat2} out
 */

/**
 * Rotates a dual quat around the X axis
 *
 * @param {quat2} out the receiving dual quaternion
 * @param {ReadonlyQuat2} a the dual quaternion to rotate
 * @param {number} rad how far should the rotation be
 * @returns {quat2} out
 */

/**
 * Rotates a dual quat around the Y axis
 *
 * @param {quat2} out the receiving dual quaternion
 * @param {ReadonlyQuat2} a the dual quaternion to rotate
 * @param {number} rad how far should the rotation be
 * @returns {quat2} out
 */

/**
 * Rotates a dual quat around the Z axis
 *
 * @param {quat2} out the receiving dual quaternion
 * @param {ReadonlyQuat2} a the dual quaternion to rotate
 * @param {number} rad how far should the rotation be
 * @returns {quat2} out
 */

/**
 * Rotates a dual quat by a given quaternion (a * q)
 *
 * @param {quat2} out the receiving dual quaternion
 * @param {ReadonlyQuat2} a the dual quaternion to rotate
 * @param {ReadonlyQuat} q quaternion to rotate by
 * @returns {quat2} out
 */

/**
 * Rotates a dual quat by a given quaternion (q * a)
 *
 * @param {quat2} out the receiving dual quaternion
 * @param {ReadonlyQuat} q quaternion to rotate by
 * @param {ReadonlyQuat2} a the dual quaternion to rotate
 * @returns {quat2} out
 */

/**
 * Rotates a mat2 by the given angle
 *
 * @param {mat2} out the receiving matrix
 * @param {ReadonlyMat2} a the matrix to rotate
 * @param {Number} rad the angle to rotate the matrix by
 * @returns {mat2} out
 */

/**
 * Rotates a mat2d by the given angle
 *
 * @param {mat2d} out the receiving matrix
 * @param {ReadonlyMat2d} a the matrix to rotate
 * @param {Number} rad the angle to rotate the matrix by
 * @returns {mat2d} out
 */

/**
 * Rotates a mat3 by the given angle
 *
 * @param {mat3} out the receiving matrix
 * @param {ReadonlyMat3} a the matrix to rotate
 * @param {Number} rad the angle to rotate the matrix by
 * @returns {mat3} out
 */

/**
 * Rotates a mat4 by the given angle around the given axis
 *
 * @param {mat4} out the receiving matrix
 * @param {ReadonlyMat4} a the matrix to rotate
 * @param {Number} rad the angle to rotate the matrix by
 * @param {ReadonlyVec3} axis the axis to rotate around
 * @returns {mat4} out
 */

/**
 * Rotates a matrix by the given angle around the X axis
 *
 * @param {mat4} out the receiving matrix
 * @param {ReadonlyMat4} a the matrix to rotate
 * @param {Number} rad the angle to rotate the matrix by
 * @returns {mat4} out
 */

/**
 * Rotates a matrix by the given angle around the Y axis
 *
 * @param {mat4} out the receiving matrix
 * @param {ReadonlyMat4} a the matrix to rotate
 * @param {Number} rad the angle to rotate the matrix by
 * @returns {mat4} out
 */

/**
 * Rotates a matrix by the given angle around the Z axis
 *
 * @param {mat4} out the receiving matrix
 * @param {ReadonlyMat4} a the matrix to rotate
 * @param {Number} rad the angle to rotate the matrix by
 * @returns {mat4} out
 */

/**
 * Rotates a quaternion by the given angle about the X axis
 *
 * @param {quat} out quat receiving operation result
 * @param {ReadonlyQuat} a quat to rotate
 * @param {number} rad angle (in radians) to rotate
 * @returns {quat} out
 */

/**
 * Rotates a quaternion by the given angle about the Y axis
 *
 * @param {quat} out quat receiving operation result
 * @param {ReadonlyQuat} a quat to rotate
 * @param {number} rad angle (in radians) to rotate
 * @returns {quat} out
 */

/**
 * Rotates a quaternion by the given angle about the Z axis
 *
 * @param {quat} out quat receiving operation result
 * @param {ReadonlyQuat} a quat to rotate
 * @param {number} rad angle (in radians) to rotate
 * @returns {quat} out
 */

/**
 * Scales a dual quat by a scalar number
 *
 * @param {quat2} out the receiving dual quat
 * @param {ReadonlyQuat2} a the dual quat to scale
 * @param {Number} b amount to scale the dual quat by
 * @returns {quat2} out
 * @function
 */

/**
 * Scales a quat by a scalar number
 *
 * @param {quat} out the receiving vector
 * @param {ReadonlyQuat} a the vector to scale
 * @param {Number} b amount to scale the vector by
 * @returns {quat} out
 * @function
 */

/**
 * Scales a vec2 by a scalar number
 *
 * @param {vec2} out the receiving vector
 * @param {ReadonlyVec2} a the vector to scale
 * @param {Number} b amount to scale the vector by
 * @returns {vec2} out
 */

/**
 * Scales a vec3 by a scalar number
 *
 * @param {vec3} out the receiving vector
 * @param {ReadonlyVec3} a the vector to scale
 * @param {Number} b amount to scale the vector by
 * @returns {vec3} out
 */

/**
 * Scales a vec4 by a scalar number
 *
 * @param {vec4} out the receiving vector
 * @param {ReadonlyVec4} a the vector to scale
 * @param {Number} b amount to scale the vector by
 * @returns {vec4} out
 */

/**
 * Scales the mat2 by the dimensions in the given vec2
 *
 * @param {mat2} out the receiving matrix
 * @param {ReadonlyMat2} a the matrix to rotate
 * @param {ReadonlyVec2} v the vec2 to scale the matrix by
 * @returns {mat2} out
 **/

/**
 * Scales the mat2d by the dimensions in the given vec2
 *
 * @param {mat2d} out the receiving matrix
 * @param {ReadonlyMat2d} a the matrix to translate
 * @param {ReadonlyVec2} v the vec2 to scale the matrix by
 * @returns {mat2d} out
 **/

/**
 * Scales the mat3 by the dimensions in the given vec2
 *
 * @param {mat3} out the receiving matrix
 * @param {ReadonlyMat3} a the matrix to rotate
 * @param {ReadonlyVec2} v the vec2 to scale the matrix by
 * @returns {mat3} out
 **/

/**
 * Scales the mat4 by the dimensions in the given vec3 not using vectorization
 *
 * @param {mat4} out the receiving matrix
 * @param {ReadonlyMat4} a the matrix to scale
 * @param {ReadonlyVec3} v the vec3 to scale the matrix by
 * @returns {mat4} out
 **/

/**
 * Schema 几何标记，用于一些自定义图形的绘制，比如箱型图、股票图等。
 */

/**
 * Set a dual quat to the identity dual quaternion
 *
 * @param {quat2} out the receiving quaternion
 * @returns {quat2} out
 */

/**
 * Set a mat2 to the identity matrix
 *
 * @param {mat2} out the receiving matrix
 * @returns {mat2} out
 */

/**
 * Set a mat2d to the identity matrix
 *
 * @param {mat2d} out the receiving matrix
 * @returns {mat2d} out
 */

/**
 * Set a mat3 to the identity matrix
 *
 * @param {mat3} out the receiving matrix
 * @returns {mat3} out
 */

/**
 * Set a mat4 to the identity matrix
 *
 * @param {mat4} out the receiving matrix
 * @returns {mat4} out
 */

/**
 * Set a quat to the identity quaternion
 *
 * @param {quat} out the receiving quaternion
 * @returns {quat} out
 */

/**
 * Set the components of a dual quat to the given values
 *
 * @param {quat2} out the receiving quaternion
 * @param {Number} x1 X component
 * @param {Number} y1 Y component
 * @param {Number} z1 Z component
 * @param {Number} w1 W component
 * @param {Number} x2 X component
 * @param {Number} y2 Y component
 * @param {Number} z2 Z component
 * @param {Number} w2 W component
 * @returns {quat2} out
 * @function
 */

/**
 * Set the components of a mat2 to the given values
 *
 * @param {mat2} out the receiving matrix
 * @param {Number} m00 Component in column 0, row 0 position (index 0)
 * @param {Number} m01 Component in column 0, row 1 position (index 1)
 * @param {Number} m10 Component in column 1, row 0 position (index 2)
 * @param {Number} m11 Component in column 1, row 1 position (index 3)
 * @returns {mat2} out
 */

/**
 * Set the components of a mat2d to the given values
 *
 * @param {mat2d} out the receiving matrix
 * @param {Number} a Component A (index 0)
 * @param {Number} b Component B (index 1)
 * @param {Number} c Component C (index 2)
 * @param {Number} d Component D (index 3)
 * @param {Number} tx Component TX (index 4)
 * @param {Number} ty Component TY (index 5)
 * @returns {mat2d} out
 */

/**
 * Set the components of a mat3 to the given values
 *
 * @param {mat3} out the receiving matrix
 * @param {Number} m00 Component in column 0, row 0 position (index 0)
 * @param {Number} m01 Component in column 0, row 1 position (index 1)
 * @param {Number} m02 Component in column 0, row 2 position (index 2)
 * @param {Number} m10 Component in column 1, row 0 position (index 3)
 * @param {Number} m11 Component in column 1, row 1 position (index 4)
 * @param {Number} m12 Component in column 1, row 2 position (index 5)
 * @param {Number} m20 Component in column 2, row 0 position (index 6)
 * @param {Number} m21 Component in column 2, row 1 position (index 7)
 * @param {Number} m22 Component in column 2, row 2 position (index 8)
 * @returns {mat3} out
 */

/**
 * Set the components of a mat4 to the given values
 *
 * @param {mat4} out the receiving matrix
 * @param {Number} m00 Component in column 0, row 0 position (index 0)
 * @param {Number} m01 Component in column 0, row 1 position (index 1)
 * @param {Number} m02 Component in column 0, row 2 position (index 2)
 * @param {Number} m03 Component in column 0, row 3 position (index 3)
 * @param {Number} m10 Component in column 1, row 0 position (index 4)
 * @param {Number} m11 Component in column 1, row 1 position (index 5)
 * @param {Number} m12 Component in column 1, row 2 position (index 6)
 * @param {Number} m13 Component in column 1, row 3 position (index 7)
 * @param {Number} m20 Component in column 2, row 0 position (index 8)
 * @param {Number} m21 Component in column 2, row 1 position (index 9)
 * @param {Number} m22 Component in column 2, row 2 position (index 10)
 * @param {Number} m23 Component in column 2, row 3 position (index 11)
 * @param {Number} m30 Component in column 3, row 0 position (index 12)
 * @param {Number} m31 Component in column 3, row 1 position (index 13)
 * @param {Number} m32 Component in column 3, row 2 position (index 14)
 * @param {Number} m33 Component in column 3, row 3 position (index 15)
 * @returns {mat4} out
 */

/**
 * Set the components of a quat to the given values
 *
 * @param {quat} out the receiving quaternion
 * @param {Number} x X component
 * @param {Number} y Y component
 * @param {Number} z Z component
 * @param {Number} w W component
 * @returns {quat} out
 * @function
 */

/**
 * Set the components of a vec2 to the given values
 *
 * @param {vec2} out the receiving vector
 * @param {Number} x X component
 * @param {Number} y Y component
 * @returns {vec2} out
 */

/**
 * Set the components of a vec2 to zero
 *
 * @param {vec2} out the receiving vector
 * @returns {vec2} out
 */

/**
 * Set the components of a vec3 to the given values
 *
 * @param {vec3} out the receiving vector
 * @param {Number} x X component
 * @param {Number} y Y component
 * @param {Number} z Z component
 * @returns {vec3} out
 */

/**
 * Set the components of a vec3 to zero
 *
 * @param {vec3} out the receiving vector
 * @returns {vec3} out
 */

/**
 * Set the components of a vec4 to the given values
 *
 * @param {vec4} out the receiving vector
 * @param {Number} x X component
 * @param {Number} y Y component
 * @param {Number} z Z component
 * @param {Number} w W component
 * @returns {vec4} out
 */

/**
 * Set the components of a vec4 to zero
 *
 * @param {vec4} out the receiving vector
 * @returns {vec4} out
 */

/**
 * Set the dual component of a dual quat to the given quaternion
 *
 * @param {quat2} out the receiving quaternion
 * @param {ReadonlyQuat} q a quaternion representing the dual part
 * @returns {quat2} out
 * @function
 */

/**
 * Set the real component of a dual quat to the given quaternion
 *
 * @param {quat2} out the receiving quaternion
 * @param {ReadonlyQuat} q a quaternion representing the real part
 * @returns {quat2} out
 * @function
 */

/**
 * Sets a quat from the given angle and rotation axis,
 * then returns it.
 *
 * @param {quat} out the receiving quaternion
 * @param {ReadonlyVec3} axis the axis around which to rotate
 * @param {Number} rad the angle in radians
 * @returns {quat} out
 **/

/**
 * Sets a quaternion to represent the shortest rotation from one
 * vector to another.
 *
 * Both vectors are assumed to be unit length.
 *
 * @param {quat} out the receiving quaternion.
 * @param {ReadonlyVec3} a the initial vector
 * @param {ReadonlyVec3} b the destination vector
 * @returns {quat} out
 */

/**
 * Sets the specified quaternion with values corresponding to the given
 * axes. Each axis is a vec3 and is expected to be unit length and
 * perpendicular to all other specified axes.
 *
 * @param {ReadonlyVec3} view  the vector representing the viewing direction
 * @param {ReadonlyVec3} right the vector representing the local "right" direction
 * @param {ReadonlyVec3} up    the vector representing the local "up" direction
 * @returns {quat} out
 */

/**
 * Sets the type of array used when creating new vectors and matrices
 *
 * @param {Float32ArrayConstructor | ArrayConstructor} type Array type, such as Float32Array or Array
 */

/**
 * Skip the last `count` values emitted by the source Observable.
 *
 * <img src="./img/skipLast.png" width="100%">
 *
 * `skipLast` returns an Observable that accumulates a queue with a length
 * enough to store the first `count` values. As more values are received,
 * values are taken from the front of the queue and produced on the result
 * sequence. This causes values to be delayed.
 *
 * @example <caption>Skip the last 2 values of an Observable with many values</caption>
 * var many = Rx.Observable.range(1, 5);
 * var skipLastTwo = many.skipLast(2);
 * skipLastTwo.subscribe(x => console.log(x));
 *
 * // Results in:
 * // 1 2 3
 *
 * @see {@link skip}
 * @see {@link skipUntil}
 * @see {@link skipWhile}
 * @see {@link take}
 *
 * @throws {ArgumentOutOfRangeError} When using `skipLast(i)`, it throws
 * ArgumentOutOrRangeError if `i < 0`.
 *
 * @param {number} count Number of elements to skip from the end of the source Observable.
 * @returns {Observable<T>} An Observable that skips the last count values
 * emitted by the source Observable.
 * @method skipLast
 * @owner Observable
 */

/**
 * Splits the source Observable into two, one with values that satisfy a
 * predicate, and another with values that don't satisfy the predicate.
 *
 * <span class="informal">It's like {@link filter}, but returns two Observables:
 * one like the output of {@link filter}, and the other with values that did not
 * pass the condition.</span>
 *
 * <img src="./img/partition.png" width="100%">
 *
 * `partition` outputs an array with two Observables that partition the values
 * from the source Observable through the given `predicate` function. The first
 * Observable in that array emits source values for which the predicate argument
 * returns true. The second Observable emits source values for which the
 * predicate returns false. The first behaves like {@link filter} and the second
 * behaves like {@link filter} with the predicate negated.
 *
 * @example <caption>Partition click events into those on DIV elements and those elsewhere</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var parts = clicks.partition(ev => ev.target.tagName === 'DIV');
 * var clicksOnDivs = parts[0];
 * var clicksElsewhere = parts[1];
 * clicksOnDivs.subscribe(x => console.log('DIV clicked: ', x));
 * clicksElsewhere.subscribe(x => console.log('Other clicked: ', x));
 *
 * @see {@link filter}
 *
 * @param {function(value: T, index: number): boolean} predicate A function that
 * evaluates each value emitted by the source Observable. If it returns `true`,
 * the value is emitted on the first Observable in the returned array, if
 * `false` the value is emitted on the second Observable in the array. The
 * `index` parameter is the number `i` for the i-th source emission that has
 * happened since the subscription, starting from the number `0`.
 * @param {any} [thisArg] An optional argument to determine the value of `this`
 * in the `predicate` function.
 * @return {[Observable<T>, Observable<T>]} An array with two Observables: one
 * with values that passed the predicate, and another with values that did not
 * pass the predicate.
 * @method partition
 * @owner Observable
 */

/**
 * Subtracts matrix b from matrix a
 *
 * @param {mat2d} out the receiving matrix
 * @param {ReadonlyMat2d} a the first operand
 * @param {ReadonlyMat2d} b the second operand
 * @returns {mat2d} out
 */

/**
 * Subtracts matrix b from matrix a
 *
 * @param {mat2} out the receiving matrix
 * @param {ReadonlyMat2} a the first operand
 * @param {ReadonlyMat2} b the second operand
 * @returns {mat2} out
 */

/**
 * Subtracts matrix b from matrix a
 *
 * @param {mat3} out the receiving matrix
 * @param {ReadonlyMat3} a the first operand
 * @param {ReadonlyMat3} b the second operand
 * @returns {mat3} out
 */

/**
 * Subtracts matrix b from matrix a
 *
 * @param {mat4} out the receiving matrix
 * @param {ReadonlyMat4} a the first operand
 * @param {ReadonlyMat4} b the second operand
 * @returns {mat4} out
 */

/**
 * Subtracts vector b from vector a
 *
 * @param {vec2} out the receiving vector
 * @param {ReadonlyVec2} a the first operand
 * @param {ReadonlyVec2} b the second operand
 * @returns {vec2} out
 */

/**
 * Subtracts vector b from vector a
 *
 * @param {vec3} out the receiving vector
 * @param {ReadonlyVec3} a the first operand
 * @param {ReadonlyVec3} b the second operand
 * @returns {vec3} out
 */

/**
 * Subtracts vector b from vector a
 *
 * @param {vec4} out the receiving vector
 * @param {ReadonlyVec4} a the first operand
 * @param {ReadonlyVec4} b the second operand
 * @returns {vec4} out
 */

/**
 * TODO(https://github.com/ReactiveX/rxjs/issues/2900): Add back subscribeOn once it can be
 * treeshaken. Currently if this export is added back, it
 * forces apps to bring in asap scheduler along with
 * Immediate, root, and other supporting code.
 */

/**
 * Temporary utility for generating the warnings
 */

/**
 * Tests whether or not the arguments have approximately the same value, within an absolute
 * or relative tolerance of glMatrix.EPSILON (an absolute tolerance is used for values less
 * than or equal to 1.0, and a relative tolerance is used for larger values)
 *
 * @param {Number} a The first number to test.
 * @param {Number} b The second number to test.
 * @returns {Boolean} True if the numbers are approximately equal, false otherwise.
 */

/**
 * The Max operator operates on an Observable that emits numbers (or items that can be compared with a provided function),
 * and when source Observable completes it emits a single item: the item with the largest value.
 *
 * <img src="./img/max.png" width="100%">
 *
 * @example <caption>Get the maximal value of a series of numbers</caption>
 * Rx.Observable.of(5, 4, 7, 2, 8)
 *   .max()
 *   .subscribe(x => console.log(x)); // -> 8
 *
 * @example <caption>Use a comparer function to get the maximal item</caption>
 * interface Person {
 *   age: number,
 *   name: string
 * }
 * Observable.of<Person>({age: 7, name: 'Foo'},
 *                       {age: 5, name: 'Bar'},
 *                       {age: 9, name: 'Beer'})
 *           .max<Person>((a: Person, b: Person) => a.age < b.age ? -1 : 1)
 *           .subscribe((x: Person) => console.log(x.name)); // -> 'Beer'
 * }
 *
 * @see {@link min}
 *
 * @param {Function} [comparer] - Optional comparer function that it will use instead of its default to compare the
 * value of two items.
 * @return {Observable} An Observable that emits item with the largest value.
 * @method max
 * @owner Observable
 */

/**
 * The Min operator operates on an Observable that emits numbers (or items that can be compared with a provided function),
 * and when source Observable completes it emits a single item: the item with the smallest value.
 *
 * <img src="./img/min.png" width="100%">
 *
 * @example <caption>Get the minimal value of a series of numbers</caption>
 * Rx.Observable.of(5, 4, 7, 2, 8)
 *   .min()
 *   .subscribe(x => console.log(x)); // -> 2
 *
 * @example <caption>Use a comparer function to get the minimal item</caption>
 * interface Person {
 *   age: number,
 *   name: string
 * }
 * Observable.of<Person>({age: 7, name: 'Foo'},
 *                       {age: 5, name: 'Bar'},
 *                       {age: 9, name: 'Beer'})
 *           .min<Person>( (a: Person, b: Person) => a.age < b.age ? -1 : 1)
 *           .subscribe((x: Person) => console.log(x.name)); // -> 'Bar'
 * }
 *
 * @see {@link max}
 *
 * @param {Function} [comparer] - Optional comparer function that it will use instead of its default to compare the
 * value of two items.
 * @return {Observable<R>} An Observable that emits item with the smallest value.
 * @method min
 * @owner Observable
 */

/**
 * The base implementation of  `_.pickBy` without support for iteratee shorthands.
 *
 * @private
 * @param {Object} object The source object.
 * @param {string[]} paths The property paths to pick.
 * @param {Function} predicate The function invoked per property.
 * @returns {Object} Returns the new object.
 */

/**
 * The base implementation of `_.pick` without support for individual
 * property identifiers.
 *
 * @private
 * @param {Object} object The source object.
 * @param {string[]} paths The property paths to pick.
 * @returns {Object} Returns the new object.
 */

/**
 * These are private action types reserved by Redux.
 * For any unknown actions, you must return the current state.
 * If the current state is undefined, you must return the initial state.
 * Do not reference these action types directly in your code.
 */

/**
 * This method is like `_.assign` except that it accepts `customizer`
 * which is invoked to produce the assigned values. If `customizer` returns
 * `undefined`, assignment is handled by the method instead. The `customizer`
 * is invoked with five arguments: (objValue, srcValue, key, object, source).
 *
 * **Note:** This method mutates `object`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Object
 * @param {Object} object The destination object.
 * @param {...Object} sources The source objects.
 * @param {Function} [customizer] The function to customize assigned values.
 * @returns {Object} Returns `object`.
 * @see _.assignInWith
 * @example
 *
 * function customizer(objValue, srcValue) {
 *   return _.isUndefined(objValue) ? srcValue : objValue;
 * }
 *
 * var defaults = _.partialRight(_.assignWith, customizer);
 *
 * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
 * // => { 'a': 1, 'b': 2 }
 */

/**
 * This method is like `_.intersection` except that it accepts `iteratee`
 * which is invoked for each element of each `arrays` to generate the criterion
 * by which they're compared. The order and references of result values are
 * determined by the first array. The iteratee is invoked with one argument:
 * (value).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Array
 * @param {...Array} [arrays] The arrays to inspect.
 * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
 * @returns {Array} Returns the new array of intersecting values.
 * @example
 *
 * _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor);
 * // => [2.1]
 *
 * // The `_.property` iteratee shorthand.
 * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
 * // => [{ 'x': 1 }]
 */

/**
 * Transforms the vec2 with a mat2
 *
 * @param {vec2} out the receiving vector
 * @param {ReadonlyVec2} a the vector to transform
 * @param {ReadonlyMat2} m matrix to transform with
 * @returns {vec2} out
 */

/**
 * Transforms the vec2 with a mat2d
 *
 * @param {vec2} out the receiving vector
 * @param {ReadonlyVec2} a the vector to transform
 * @param {ReadonlyMat2d} m matrix to transform with
 * @returns {vec2} out
 */

/**
 * Transforms the vec2 with a mat3
 * 3rd vector component is implicitly '1'
 *
 * @param {vec2} out the receiving vector
 * @param {ReadonlyVec2} a the vector to transform
 * @param {ReadonlyMat3} m matrix to transform with
 * @returns {vec2} out
 */

/**
 * Transforms the vec2 with a mat4
 * 3rd vector component is implicitly '0'
 * 4th vector component is implicitly '1'
 *
 * @param {vec2} out the receiving vector
 * @param {ReadonlyVec2} a the vector to transform
 * @param {ReadonlyMat4} m matrix to transform with
 * @returns {vec2} out
 */

/**
 * Transforms the vec3 with a mat3.
 *
 * @param {vec3} out the receiving vector
 * @param {ReadonlyVec3} a the vector to transform
 * @param {ReadonlyMat3} m the 3x3 matrix to transform with
 * @returns {vec3} out
 */

/**
 * Transforms the vec3 with a mat4.
 * 4th vector component is implicitly '1'
 *
 * @param {vec3} out the receiving vector
 * @param {ReadonlyVec3} a the vector to transform
 * @param {ReadonlyMat4} m matrix to transform with
 * @returns {vec3} out
 */

/**
 * Transforms the vec3 with a quat
 * Can also be used for dual quaternions. (Multiply it with the real part)
 *
 * @param {vec3} out the receiving vector
 * @param {ReadonlyVec3} a the vector to transform
 * @param {ReadonlyQuat} q quaternion to transform with
 * @returns {vec3} out
 */

/**
 * Transforms the vec4 with a mat4.
 *
 * @param {vec4} out the receiving vector
 * @param {ReadonlyVec4} a the vector to transform
 * @param {ReadonlyMat4} m matrix to transform with
 * @returns {vec4} out
 */

/**
 * Transforms the vec4 with a quat
 *
 * @param {vec4} out the receiving vector
 * @param {ReadonlyVec4} a the vector to transform
 * @param {ReadonlyQuat} q quaternion to transform with
 * @returns {vec4} out
 */

/**
 * Translate a mat3 by the given vector
 *
 * @param {mat3} out the receiving matrix
 * @param {ReadonlyMat3} a the matrix to translate
 * @param {ReadonlyVec2} v vector to translate by
 * @returns {mat3} out
 */

/**
 * Translate a mat4 by the given vector
 *
 * @param {mat4} out the receiving matrix
 * @param {ReadonlyMat4} a the matrix to translate
 * @param {ReadonlyVec3} v vector to translate by
 * @returns {mat4} out
 */

/**
 * Translates a dual quat by the given vector
 *
 * @param {quat2} out the receiving dual quaternion
 * @param {ReadonlyQuat2} a the dual quaternion to translate
 * @param {ReadonlyVec3} v vector to translate by
 * @returns {quat2} out
 */

/**
 * Translates the mat2d by the dimensions in the given vec2
 *
 * @param {mat2d} out the receiving matrix
 * @param {ReadonlyMat2d} a the matrix to translate
 * @param {ReadonlyVec2} v the vec2 to translate the matrix by
 * @returns {mat2d} out
 **/

/**
 * Transpose the values of a mat2
 *
 * @param {mat2} out the receiving matrix
 * @param {ReadonlyMat2} a the source matrix
 * @returns {mat2} out
 */

/**
 * Transpose the values of a mat3
 *
 * @param {mat3} out the receiving matrix
 * @param {ReadonlyMat3} a the source matrix
 * @returns {mat3} out
 */

/**
 * Transpose the values of a mat4
 *
 * @param {mat4} out the receiving matrix
 * @param {ReadonlyMat4} a the source matrix
 * @returns {mat4} out
 */

/**
 * Turns an object whose values are action creators, into an object with the
 * same keys, but with every function wrapped into a `dispatch` call so they
 * may be invoked directly. This is just a convenience method, as you can call
 * `store.dispatch(MyActionCreators.doSomething())` yourself just fine.
 *
 * For convenience, you can also pass an action creator as the first argument,
 * and get a dispatch wrapped function in return.
 *
 * @param {Function|Object} actionCreators An object whose values are action
 * creator functions. One handy way to obtain it is to use ES6 `import * as`
 * syntax. You may also pass a single function.
 *
 * @param {Function} dispatch The `dispatch` function available on your Redux
 * store.
 *
 * @returns {Function|Object} The object mimicking the original object, but with
 * every action creator wrapped into the `dispatch` call. If you passed a
 * function as `actionCreators`, the return value will also be a single
 * function.
 */

/**
 * Turns an object whose values are different reducer functions, into a single
 * reducer function. It will call every child reducer, and gather their results
 * into a single state object, whose keys correspond to the keys of the passed
 * reducer functions.
 *
 * @param {Object} reducers An object whose values correspond to different
 * reducer functions that need to be combined into one. One handy way to obtain
 * it is to use ES6 `import * as reducers` syntax. The reducers may never return
 * undefined for any action. Instead, they should return their initial state
 * if the state passed to them was undefined, and the current state for any
 * unrecognized action.
 *
 * @returns {Function} A reducer function that invokes every reducer inside the
 * passed object, and builds a state object with the same shape.
 */

/**
 * Used to both remove the possible variant
 *  and to convert utf16 into code points
 * @param   string    the emoji surrogate pair
 * @param   string    the optional variant char, if any
 */

/**
 * Used to match `RegExp`
 * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
 */

/**
 * Violin 几何标记。
 * 用于绘制小提琴图。
 */

/**
 * WIN 对齐 MAC
 * @param text
 * @returns
 */

/**
 * We need this JSDoc comment for affecting ESDoc
 * @ignore
 * @extends {Ignored}
 */

/**
 * We need this JSDoc comment for affecting ESDoc.
 * @extends {Ignored}
 * @hide true
 */

/**
 * We need this JSDoc comment for affecting ESDoc.
 * @ignore
 * @extends {Ignored}
 */

/**
 * When any of the provided Observable emits an complete or error notification, it immediately subscribes to the next one
 * that was passed.
 *
 * <span class="informal">Execute series of Observables no matter what, even if it means swallowing errors.</span>
 *
 * <img src="./img/onErrorResumeNext.png" width="100%">
 *
 * `onErrorResumeNext` is an operator that accepts a series of Observables, provided either directly as
 * arguments or as an array. If no single Observable is provided, returned Observable will simply behave the same
 * as the source.
 *
 * `onErrorResumeNext` returns an Observable that starts by subscribing and re-emitting values from the source Observable.
 * When its stream of values ends - no matter if Observable completed or emitted an error - `onErrorResumeNext`
 * will subscribe to the first Observable that was passed as an argument to the method. It will start re-emitting
 * its values as well and - again - when that stream ends, `onErrorResumeNext` will proceed to subscribing yet another
 * Observable in provided series, no matter if previous Observable completed or ended with an error. This will
 * be happening until there is no more Observables left in the series, at which point returned Observable will
 * complete - even if the last subscribed stream ended with an error.
 *
 * `onErrorResumeNext` can be therefore thought of as version of {@link concat} operator, which is more permissive
 * when it comes to the errors emitted by its input Observables. While `concat` subscribes to the next Observable
 * in series only if previous one successfully completed, `onErrorResumeNext` subscribes even if it ended with
 * an error.
 *
 * Note that you do not get any access to errors emitted by the Observables. In particular do not
 * expect these errors to appear in error callback passed to {@link subscribe}. If you want to take
 * specific actions based on what error was emitted by an Observable, you should try out {@link catch} instead.
 *
 *
 * @example <caption>Subscribe to the next Observable after map fails</caption>
 * Rx.Observable.of(1, 2, 3, 0)
 *   .map(x => {
 *       if (x === 0) { throw Error(); }
         return 10 / x;
 *   })
 *   .onErrorResumeNext(Rx.Observable.of(1, 2, 3))
 *   .subscribe(
 *     val => console.log(val),
 *     err => console.log(err),          // Will never be called.
 *     () => console.log('that\'s it!')
 *   );
 *
 * // Logs:
 * // 10
 * // 5
 * // 3.3333333333333335
 * // 1
 * // 2
 * // 3
 * // "that's it!"
 *
 * @see {@link concat}
 * @see {@link catch}
 *
 * @param {...ObservableInput} observables Observables passed either directly or as an array.
 * @return {Observable} An Observable that emits values from source Observable, but - if it errors - subscribes
 * to the next passed Observable and so on, until it completes or runs out of Observables.
 * @method onErrorResumeNext
 * @owner Observable
 */

/**
 * _.memoize(calColor);
 * _.memoize(calColor, (...args) => args[0]);
 * @param f
 * @param resolver
 */

/**
 * create bezier spline from catmull rom spline
 * @param {Array} crp Catmull Rom Points
 * @param {boolean} z Spline is loop
 * @param {Array} constraint Constraint
 */

/**
 * detect whether two shape is intersected, useful when shape is been rotated
 * 判断两个矩形是否重叠（相交和包含, 是否旋转）
 *
 * - 原理: 分离轴定律
 */

/**
 * get direction after coordinate transpose
 * @param direction
 * @param coordinate
 * @returns direction after transpose or not
 */

/**
 * get direction after coordinate.scale
 * @param direction
 * @param coordinate
 */

/**
 * get the element's bounding size
 * @param ele dom element
 * @returns the element width and height
 */

/**
 * get the legend cfg from theme, will mix the common cfg of legend theme
 *
 * @param theme view theme object
 * @param direction legend direction
 * @returns legend theme cfg
 */

/**
 * get the options of axis title，mix the cfg from theme, avoid common themeCfg not work
 * @param theme
 * @param direction
 * @param axisOptions
 * @returns axis title options
 */

/**
 * https://github.com/developit/dlv/blob/master/index.js
 * @param obj
 * @param key
 * @param defaultValue
 */

/**
 * https://github.com/developit/dlv/blob/master/index.js
 * @param obj
 * @param path
 * @param value
 */

/**
 * is value a valid number
 * @param v the input value
 * @returns whether it is a number
 */

/**
 * k-v 存储
 */

/**
 * label 防遮挡布局：在不改变 label 位置的情况下对相互重叠的 label 进行隐藏（非移除）
 * 不同于 'overlap' 类型的布局，该布局不会对 label 的位置进行偏移调整。
 * @param labels 参与布局调整的 label 数组集合
 */

/**
 * lodash (Custom Build) <https://lodash.com/>
 * Build: `lodash modularize exports="npm" -o ./`
 * Copyright jQuery Foundation and other contributors <https://jquery.org/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */

/**
 * parse the value position
 * @param val
 * @param scale
 */

/**
 * path 存在以下情况
 * 1. 饼图不为整圆的 path，命令为 M, L, A, L, Z
 * 2. 饼图为整圆的 path，命令为 M, M, A, A, M, Z
 * 3. 环图不为整圆的 path，命令为 M, A, L, A, L, Z
 * 4. 环图为整圆的 path，命令为 M, A, A, M, A, A, M, Z
 * 5. radial-line, 不为整圆时的 path, 命令为 M, A, A, Z
 * 6. radial-line, 为整圆时的 path，命令为 M, A, A, A, A, Z
 * @param path theta 坐标系下圆弧的 path 命令
 */

/**
 * using the scale type if user specified, otherwise infer the type
 */

/**
 * view 中缓存 scale 的类
 */

/**
 * when origin >= target ,return true
 * 关于为什么没有跟otherApi保持一致，主要是当初因为otherApi里的方法是复制旧版jsapi的，有一定缺陷
 * 但是担心线上环境利用了缺陷来做逻辑，所以没有保持一致使用同一个方法
 * TODO: 但其实另起方法太冗余，以及丑陋，后续还是需要整个统一掉
 * @param origin
 * @param target
 */

/**
 * 一些默认的样式配置
 */

/**
 * 三层 group 的 z index
 */

/**
 * 上报埋点
 * @apiName biz.util.ut
 * @supportVersion  pc: 3.0.0 ios: 2.4.0 android: 2.4.0
 */

/**
 * 不使用 mid 工具的资源，例如部分头像直接使用 userProfile.avatarUrl， 使用此方法添加 bizType
 * bizType https://aone.alibaba-inc.com/task/22508773
 */

/**
 * 不进行递归查找
 */

/**
 * 专属钉钉获取用户信息
 * @apiName biz.realm.getUserExclusiveInfo
 * @supportVersion ios: 6.0.14 android: 6.0.14
 * @author Android：晤歌; iOS：路客; winodows： 秋酷
 */

/**
 * 两个包围盒是否相交
 * @param box1 包围盒1
 * @param box2 包围盒2
 * @ignore
 */

/**
 * 两点之间的距离
 * @param {number} x1 起始点 x
 * @param {number} y1 起始点 y
 * @param {number} x2 结束点 x
 * @param {number} y2 结束点 y
 * @return {number} 距离
 */

/**
 * 两点之间的距离
 * @param {number} x1 起始点 x
 * @param {number} y1 起始点 y
 * @param {number} x2 结束点 x
 * @param {number} y2 结束点 y
 */

/**
 * 为 interval geometry 定制的数据标签重叠自动隐藏布局方法
 * @param items
 * @param labels
 * @param shapes
 */

/**
 * 二分右侧查找
 * https://github.com/d3/d3-array/blob/master/src/bisector.js
 */

/**
 * 二维向量 v1 到 v2 的夹角
 * @param v1
 * @param v2
 * @param direct
 */

/**
 * 交互的基类。
 */

/**
 * 交换两个对象
 */

/**
 * 从配置中获取单个字段的 legend 配置
 * @param legends
 * @param field
 * @returns the option of one legend field
 */

/**
 * 使用 ratio 进行插值计算来更新属性
 * @param {IElement}  shape    元素
 * @param {Animation} animation 动画
 * @param {number}    ratio    比例
 * @return {boolean}  动画是否执行完成
 */

/**
 * 使用牛顿切割法求最近的点
 * @param {number[]} xArr      点的 x 数组
 * @param {number[]} yArr      点的 y 数组
 * @param {number}   x         指定的点 x
 * @param {number}   y         指定的点 y
 * @param {Function} tCallback 差值函数
 */

/**
 * 保证 label 均匀显示 和 不出现重叠，主要解决文本层叠的问题，对于 limitLength 不处理
 * @param {boolean} isVertical  是否垂直
 * @param {IGroup}  labelsGroup label 的分组
 * @param {number} limitLength 另一个方向的长度限制，autoHide 不关心
 * @param {AxisLabelAutoHideCfg} autoHideCfg autoHide overlap 的可选配置参数
 */

/**
 * 保证最后一个 label 可见，即使超过 limitLength 也不隐藏
 * @param {boolean} isVertical  是否垂直
 * @param {IGroup}  labelsGroup label 的分组
 * @param {number} limitLength 另一个方向的长度限制，autoHide 不关心
 * @param {AxisLabelAutoHideCfg} autoHideCfg autoHide overlap 的可选配置参数
 */

/**
 * 保证第一个最后一个 label 可见，即使超过 limitLength 也不隐藏
 * @param {boolean} isVertical  是否垂直
 * @param {IGroup}  labelsGroup label 的分组
 * @param {number} limitLength 另一个方向的长度限制，autoHide 不关心
 * @param {AxisLabelAutoHideCfg} autoHideCfg autoHide overlap 的可选配置参数
 */

/**
 * 保证首个 label 可见，即使超过 limitLength 也不隐藏
 * @param {boolean} isVertical  是否垂直
 * @param {IGroup}  labelsGroup label 的分组
 * @param {number} limitLength 另一个方向的长度限制，autoHide 不关心
 * @param {AxisLabelAutoHideCfg} autoHideCfg autoHide overlap 的可选配置参数
 */

/**
 * 全局注册组件。
 * @param name 组件名称
 * @param plugin 注册的组件类
 * @returns void
 */

/**
 * 关闭webview
 * 调用此接口可以关闭当前浏览器窗口
 * @apiName biz.navigation.close
 * @supportVersion  ios: 2.4.0 android: 2.4.0 pc: 4.3.5
 */

/**
 * 创建DOM 节点
 * @param  {String} str Dom 字符串
 * @return {HTMLElement}  DOM 节点
 */

/**
 * 创建交互实例
 * @param name 交互名
 * @param view 交互应用的 View 实例
 * @param cfg 交互行为配置
 */

/**
 * 创建并返回图形的 dom 元素
 * @param  {IShape} shape 图形
 * @return {SVGElement}
 */

/**
 * 创建并返回图形的 svg 元素
 * @param type svg类型
 */

/**
 * 初始化 JSBridge，设置 context.JSBridge
 */

/**
 * 初始化默认表情
 * @param defaultEmotionList
 */

/**
 * 删除全局组件。
 * @param name 组件名
 * @returns void
 */

/**
 * 判断两个数值 是否接近
 * - 解决精度问题（由于无法确定精度上限，根据具体场景可传入 精度 参数）
 */

/**
 * 判断两个点是否重合，点坐标的格式为 [x, y]
 * @param {Array} point1 第一个点
 * @param {Array} point2 第二个点
 */

/**
 * 判断新添加的 Label 是否和已存在的发生重叠
 * @param dones
 * @param current
 */

/**
 * 判断是否为有限数
 * @return {Boolean}
 */

/**
 * 判断是否数字
 * @return {Boolean} 是否数字
 */

/**
 * 加工埋点规则
 * @param trackingRuleModel
 * @param trackingSourceDataModel
 * @returns
 */

/**
 * 加载兜底表情资源，定期更新，可能和线上不同步
 */

/**
 * 动态卡片发送交互事件
 * @apiName internal.interactiveCard.sendAction
 * @supportVersion ios: 4.7.8 android: 4.7.8
 * @author android: 卧岩, iOS: 鱼非
 */

/**
 * 卡片交互请求
 * @param userInteractionReq 交互请求
 * @return 交互作用后的卡片
 */

/**
 * 取消注册 Action
 * @param actionName action 名称
 */

/**
 * 可能使用dingtalk api只能在桌面端使用
 */

/**
 * 同 equidistance， 首先会保证 labels 均匀显示，然后会保留首尾
 * @param isVertical
 * @param labelsGroup
 * @param {number} limitLength 另一个方向的长度限制，autoHide 不关心
 * @param {AxisLabelAutoHideCfg} autoHideCfg autoHide overlap 的可选配置参数
 */

/**
 * 向量 v1 到 向量 v2 夹角的方向
 * @param  {Array} v1 向量
 * @param  {Array} v2 向量
 * @return {Boolean} >= 0 顺时针 < 0 逆时针
 */

/**
 * 响应用户交互（强鉴权）
 *
 * @param userInteractionModel
 * @return 响应卡片对象
 */

/**
 * 围绕图形中心点进行缩放
 * @param element 进行缩放的图形元素
 * @param ratio 缩放比例
 */

/**
 * 固定角度旋转文本
 * @param  {boolean} isVertical  是否垂直方向
 * @param  {IGroup}  labelsGroup 文本的 group
 * @param  {number}  limitLength 限定长度
 * @param  {number}  customRotate 自定义旋转角度
 * @return {boolean}             是否发生了旋转
 */

/**
 * 在初次失败后根据配置 context.apiConfig 等选择是否重试
 */

/**
 * 在新零售的场景下，支持在本地进行预览视频
 * @apiName biz.util.previewVideo
 * @supportVersion ios: 4.3.7 android: 4.3.7 pc: 4.6.33
 */

/**
 * 基于 JSAPI， 适合用在移动端端内 H5
 * @returns
 */

/**
 * 基于原生 GridLayout
 * * 支持了 rowCount 设置
 */

/**
 * 填充的平滑曲面图
 */

/**
 * 处理 rect path 的 radius
 * @returns 返回矩形 path 的四个角的 arc 半径
 */

/**
 * 如果自定义箭头并且有 d 需要做偏移，如果直接画，线条会超出箭头尖端，因此需要根据箭头偏移 d, 返回线需要缩短的距离
 * |----------------
 * |<|--------------
 * |
 * @param {number} x1 起始点 x
 * @param {number} y1 起始点 y
 * @param {number} x2 箭头作用点 x
 * @param {number} y2 箭头作用点 y
 * @param {number} d  箭头沿线条方向的偏移距离
 * @return {{dx: number, dy: number}} 返回线条偏移距离
 */

/**
 * 字体宽度
 * @param text 文本
 * @param font 字体
 */

/**
 * 客户端批量获取卡片实例（强鉴权）
 *
 * @param detailReqModels 实例ID
 * @return 卡片实例
 */

/**
 * 客户端接口偶尔不会触发回调，添加超时逻辑
 */

/**
 * 客户端获取卡片实例（强鉴权）
 *
 * @param detailReqModel 实例ID
 * @return 卡片实例
 */

/**
 * 对 dom 元素进行排序
 * @param {IElement} element  元素
 * @param {sorter}   function 排序函数
 */

/**
 * 对元素进行平移操作。
 * @param element 进行变换的元素
 * @param x x 方向位移
 * @param y y 方向位移
 */

/**
 * 对元素进行旋转操作。
 * @param element 进行变换的元素
 * @param rotateRadian 旋转弧度
 */

/**
 * 对同一组(相同 xField )的 Label 进行排序：第一个、最后一个、其他...
 * @param geometry
 * @param labels
 */

/**
 * 对图形元素进行剪切动画
 * @param element 进行动画的图形元素
 * @param animateCfg 动画配置
 * @param coordinate 当前坐标系
 * @param yMinPoint y 轴的最小值对应的图形坐标点
 * @param type 剪切动画的类型
 */

/**
 * 对比当前元素和之前的元素，返回 added, updated, removed
 * @param keyItem 之前的元素的，按照 key-item 的 object 的形式存储
 * @param keys 现在的元素，按照 array 的形式存储
 * @returns 由 added, updated, removed array 构成的 object
 */

/**
 * 封装事件，便于使用上下文this,和便于解除事件时使用
 * @protected
 * @param  {Object} obj   对象
 * @param  {String} action 事件名称
 * @return {Function}        返回事件处理函数
 */

/**
 * 将 bbox 转换成 points
 * @param bbox
 */

/**
 * 将 dom 元素移动到父元素下的指定位置
 * @param {SVGElement} element     dom 元素
 * @param {number}     targetIndex 目标位置(从 0 开始)
 */

/**
 * 将 value 的值序列化
 * @param value
 * @returns
 */

/**
 * 将 view 上的一点转换成另一个 view 的点
 * @param view 当前的 view
 * @param sibling 同一层级的 view
 * @param point 指定点
 * @ignore
 */

/**
 * 将数据分组成 map
 * @param data
 * @param condition
 */

/**
 * 将数据转成 path，利用 scale 的归一化能力
 * @param data
 * @param width
 * @param height
 * @param smooth
 */

/**
 * 将点连成平滑的曲线
 * @param points
 */

/**
 * 将点连接成路径 path
 * @param points
 */

/**
 * 将边和填充设置的颜色转换成圆形渐变对象
 * @param {CanvasRenderingContext2D} context canvas 上下文
 * @param {IElement}                 element  图形元素
 * @param {string}                   gradientStr   颜色
 * @returns {any} 渐变对象
 */

/**
 * 将边和填充设置的颜色转换成线性渐变对象
 * @param {CanvasRenderingContext2D} context canvas 上下文
 * @param {IElement}                 element  图形元素
 * @param {string}                   gradientStr   颜色
 * @returns {any} 渐变对象
 */

/**
 * 平滑边界的小提琴图
 */

/**
 * 平滑边界的空心小提琴图
 */

/**
 * 弹窗alert
 * @description 调用此api，将显示一个图片浏览器
 * @apiName biz.util.previewImage
 * @supportVersion  pc: 2.7.0 ios: 2.4.0 android: 2.4.0
 * @author Android：石涅 iOS：驽良
 */

/**
 * 弹窗confirm
 * @apiName device.notification.confirm
 * @supportVersion  pc: 2.5.0 ios: 2.4.0 android: 2.4.0
 */

/**
 * 快速判断两个无旋转矩形是否遮挡
 */

/**
 * 所有的 Facet 类
 */

/**
 * 批量拉取多个卡片的动态数据源
 * @param modelList
 * @return
 */

/**
 * 拉取单个卡片的动态数据源
 * @param model 动态请求数据请求
 * @return 卡片中动态数据源的数据
 */

/**
 * 按照比例在数据片段中获取切线的角度
 * @param {array} points 点的集合
 * @param {number} t 百分比 0-1
 */

/**
 * 按照比例在数据片段中获取点
 * @param {array} points 点的集合
 * @param {number} t 百分比 0-1
 * @return {object} 点的坐标
 */

/**
 * 按照给定的 minLimit/maxLimit/tickCount 均匀计算出刻度 ticks
 *
 * @param cfg Scale 配置项
 * @return ticks
 */

/**
 * 描边但不填充的区域图
 */

/**
 * 提取出内部的闭合多边形和非闭合的多边形，假设 path 不存在圆弧
 * @param {Array} path 路径
 * @returns {Array} 点的集合
 */

/**
 * 支持语法的交互类
 */

/**
 * 是否为函数
 * @param  {*} fn 对象
 * @return {Boolean}  是否函数
 */

/**
 * 是否在包围盒内
 * @param {number} minX   包围盒开始的点 x
 * @param {number} minY   包围盒开始的点 y
 * @param {number} width  宽度
 * @param {number} height 高度
 * @param {[type]} x      检测点的 x
 * @param {[type]} y      监测点的 y
 */

/**
 * 是否在记录中，临时因为所有的 view 中的数据不是引用，而使用的方法
 * 不同 view 上对数据的引用不相等，导致无法直接用 includes
 * 假设 x, y 值相等时是同一条数据，这个假设不完全正确，而改成 isEqual 则成本太高
 * 后面改成同一个引用时可以修改回来
 * @param records
 * @param record
 * @param xFiled
 * @param yField
 * @returns
 * @ignore
 */

/**
 * 是否是列表组件
 * @param delegateObject 委托对象
 * @ignore
 */

/**
 * 是否是参数类型
 *
 * @param {Object} value 测试的值
 * @return {Boolean}
 */

/**
 * 是否是布尔类型
 *
 * @param {Object} value 测试的值
 * @return {Boolean}
 */

/**
 * 是否是滑块组件
 * @param delegateObject 委托对象
 * @ignore
 */

/**
 * 是否由 mask 触发
 * @param context 上下文
 * @ignore
 */

/**
 * 更新元素，包括 group 和 shape
 * @param {IElement} element       SVG 元素
 * @param {ChangeType} changeType  更新类型
 */

/**
 * 查找 Label Group 中的文本 shape 对象
 * @param label
 */

/**
 * 根据 action 的 name 获取定义的类
 * @param actionName action 的 name
 */

/**
 * 根据 actions 来做 transform
 * @param m
 * @param actions
 */

/**
 * 根据 context.apiConfig 进行出入参处理，设置 context.{callParams, invokeName}
 */

/**
 * 根据 marker 是否为线条形 symbol, 来调整下样式
 * @param symbol
 * @param style
 * @param color
 */

/**
 * 根据 scale values 和 coordinate 获取分类默认 range
 * @param scale 需要获取的 scale 实例
 * @param coordinate coordinate 实例
 * @param theme theme
 */

/**
 * 根据 type 获取 facet 类
 * @param type 分面类型
 */

/**
 * 根据messageId在会话页面跳转到对应的位置
 * @apiName internal.chat.focusMessage
 * @supportVersion ios: 4.6.25 android: 4.6.25
 */

/**
 * 根据messageId跳转消息详情页
 * @apiName internal.chat.previewMessage
 * @supportVersion ios: 4.6.25 android: 4.6.25
 */

/**
 * 根据主题样式表生成主题结构
 * @param styleSheet 主题样式表
 */

/**
 * 根据交互行为名字获取对应的交互类
 * @param name 交互名字
 * @returns 交互类
 */

/**
 * 根据名称获取 Action 实例
 * @param actionName - action 的名称
 * @param context 上下文
 * @returns Action 实例
 */

/**
 * 根据名称获取对应的动画执行函数
 * @param type 动画函数名称
 */

/**
 * 根据名称获取对应的动画缓动函数
 * @param type 动画缓动函数名称
 */

/**
 * 根据回调函数获取 Action 实例
 * @param callback - action 的回调函数
 * @param context 上下文
 * @returns Action 实例
 */

/**
 * 根据样式表创建 axis 组件主题样式
 * @param styleSheet
 */

/**
 * 根据样式表创建 legend 组件主题样式
 * @param styleSheet
 */

/**
 * 根据状态名获取图表元素
 * @param view View/Chart
 * @param stateName 状态名
 * @ignore
 */

/**
 * 根据类型获取 Adjust 类
 * @param type
 */

/**
 * 根据组件名获取组件类。
 * @param name 组件名
 * @returns 返回组件类
 */

/**
 * 根据自定义帧动画函数 onFrame 来更新属性
 * @param {IElement}  shape    元素
 * @param {Animation} animation 动画
 * @param {number}    elapsed  动画执行时间(毫秒)
 * @return {boolean}  动画是否执行完成
 */

/**
 * 根据话题id获取对用的话题
 * @apiName internal.chat.getTopic
 * @supportVersion ios: 4.6.25 android: 4.6.25
 */

/**
 * 检查 API 配置，设置 context.apiConfig
 */

/**
 * 检测点是否在包围盒内
 * @param box 包围盒
 * @param point 点
 * @ignore
 */

/**
 * 注册 Action
 * @param actionName - action 的名称
 * @param ActionClass - 继承自 action 的类
 */

/**
 * 注册 ShapeFactory。
 * @param factoryName  ShapeFactory 名称，对应 Geometry 几何标记名称。
 * @param cfg 注册 ShapeFactory 需要覆写定义的属性。
 * @returns 返回 ShapeFactory 对象。
 */

/**
 * 注册 Shape。
 * @param factoryName 对应的 ShapeFactory 名称。
 * @param shapeType 注册的 shape 名称。
 * @param cfg 注册 Shape 需要覆写定义的属性。
 * @returns shape 返回注册的 shape 对象。
 */

/**
 * 注册 geometry 组件
 * @param name
 * @param Ctor
 * @returns Geometry
 */

/**
 * 注册交互行为
 * @param name 交互行为名字
 * @param interaction 交互类
 */

/**
 * 注册动画执行函数
 * @param type 动画执行函数名称
 * @param animation 动画执行函数
 */

/**
 * 注册动画缓动函数
 * @param type 动画缓动函数名称
 * @param easeFn 动画缓动函数
 */

/**
 * 注册定义的 GeometryLabel 类
 * @param type GeometryLabel 类型名称
 * @param ctor GeometryLabel 类
 */

/**
 * 注册定义的 label 布局函数
 * @param type label 布局函数名称
 * @param layoutFn label 布局函数
 */

/**
 * 注册新的主题配置信息。
 * @param theme 主题名。
 * @param value 具体的主题配置。
 */

/**
 * 注册渲染引擎
 * @param name
 * @param engine
 */

/**
 * 注册计算 ticks 的方法
 * @param key 键值
 * @param method 方法
 */

/**
 * 注册计算包围盒的算法
 * @param type 方法名
 * @param method 方法
 */

/**
 * 清理图例的 Highlight 效果
 * @param list 列表组件，图例或者坐标轴
 * @ignore
 */

/**
 * 点数组转 path
 * @param points
 */

/**
 * 状态量 Action 的基类，允许多个 Element 同时拥有某个状态
 * @class
 * @ignore
 */

/**
 * 用于 main 与 thread 通信
 * 1. 协议封装
 * 2. request 接口封装(promise 化)
 * 3. response 接口封装
 */

/**
 * 相较于V1版本，为了性能以及与服务端命名保持一致，此版本更新为
 * 导出 变量 => 方法
 */

/**
 * 矩阵的逆
 * @param {number[]} a 矩阵
 */

/**
 * 碰撞检测算法
 */

/**
 * 空心小提琴图
 */

/**
 * 简易的 logger
 * @deprecated 不再内置
 */

/**
 * 箭头 path 的设置要求
 * 1. 箭头顶点坐标需要为 (0, 0)
 * 2. 箭头夹角的中心分割线需要与 X 轴正方向对齐
 */

/**
 * 线 path 转 area path
 * @param path
 * @param width
 * @param height
 */

/**
 * 绘制结束箭头
 * @param {IShape} shape 图形
 * @param {ShapeAttrs} attrs shape 的绘图属性
 * @param {number} x1 起始点 x
 * @param {number} y1 起始点 y
 * @param {number} x2 箭头作用点 x
 * @param {number} y2 箭头作用点 y
 */

/**
 * 绘制起始箭头
 * @param {IShape} shape 图形
 * @param {ShapeAttrs} attrs shape 的绘图属性
 * @param {number} x1 起始点 x
 * @param {number} y1 起始点 y
 * @param {number} x2 箭头作用点 x
 * @param {number} y2 箭头作用点 y
 */

/**
 * 背景框的 Action. 只作用于 interval 和 schema geometry
 * @ignore
 */

/**
 * 范围过滤的 Action
 * @ignore
 */

/**
 * 获取 Top Bridge
 */

/**
 * 获取 `type` 对应的 [[GeometryLabel]] 类
 * @param type
 * @returns
 */

/**
 * 获取 `type` 对应的 [[GeometryLabelsLayoutFn]] label 布局函数
 * @param type 布局函数名称
 * @returns
 */

/**
 * 获取 axis 的 title 文本
 * @param scale
 * @param axisOption
 */

/**
 * 获取 canvas context
 */

/**
 * 获取 factoryName 对应的 shapeFactory
 * @param factoryName
 * @returns shape factory
 */

/**
 * 获取 interval 矩形背景的 path
 * @param cfg 关键点的信息
 * @param points 已转化为画布坐标的 4 个关键点
 * @param coordinate 坐标系
 * @returns 返回矩形背景的 path
 */

/**
 * 获取 倒角 矩形
 * - 目前只适用于笛卡尔坐标系下
 */

/**
 * 获取 矩形背景 的样式
 * @param cfg
 */

/**
 * 获取主题配置信息。
 * @param theme 主题名
 */

/**
 * 获取交互动态卡片信息
 * @apiName internal.interactiveCard.getCardInfo
 * @supportVersion ios: 4.7.8 android: 4.7.8
 * @author android: 卧岩, iOS: 鱼非
 */

/**
 * 获取以注册的组件名。
 * @returns string[] 返回已注册的组件名称
 */

/**
 * 获取元矩阵。
 * @returns identity matrix
 */

/**
 * 获取元素旋转矩阵 (以元素的左上角为旋转点)
 * @param element 进行变换的元素
 * @param rotateRadian 旋转弧度
 */

/**
 * 获取包围盒内的图表元素
 * @param view View/Chart
 * @param box 包围盒
 * @ignore
 */

/**
 * 获取包围盒内的图表元素
 * @param view View/Chart
 * @param path 路径
 * @ignore
 */

/**
 * 获取卡片
 * @param queryRequest 需要获取的卡片上下文信息
 * @return 卡片数据
 */

/**
 * 获取同 view 同一级的 views
 * @param view 当前 view
 * @returns 同一级的 views
 * @ignore
 */

/**
 * 获取图表元素对应字段的值
 * @param element 图表元素
 * @param field 字段名
 * @ignore
 */

/**
 * 获取坐标系范围的 BBox
 * @param coordinate
 * @param margin
 */

/**
 * 获取委托对象
 * @param context 上下文
 * @ignore
 */

/**
 * 获取字段对应数据的类型
 * @param field 数据字段名
 * @param data 数据源
 * @returns default type 返回对应的数据类型
 */

/**
 * 获取封装的事件
 * @protected
 * @param  {Object} obj   对象
 * @param  {String} action 事件名称
 * @return {Function}        返回事件处理函数
 */

/**
 * 获取小提琴图 平滑的边界 path
 * @param points
 * @returns
 */

/**
 * 获取小提琴图的边界 path
 * @param points
 * @returns
 */

/**
 * 获取当前 View 的所有组件
 * @param view View/Chart
 * @ignore
 */

/**
 * 获取当前事件相关的图表元素
 * @param context 交互的上下文
 * @ignore
 */

/**
 * 获取当前登录用户信息
 * @apiName biz.user.get
 * @supportVersion  pc: 3.0.0 ios: 2.4.0 android: 2.4.0
 */

/**
 * 获取所有的图表元素
 * @param view View/Chart
 * @ignore
 */

/**
 * 获取所有的图表元素
 * @param view View/Chart
 * @param field 字段名
 * @param value 字段值
 * @ignore
 */

/**
 * 获取折线图 path
 */

/**
 * 获取文本的 ... 文本。
 * 算法（减少每次 measureText 的长度，measureText 的性能跟字符串时间相关）：
 * 1. 先通过 STEP 逐步计算，找到最后一个小于 maxWidth 的字符串
 * 2. 然后对最后这个字符串二分计算
 * @param text 需要计算的文本, 由于历史原因 除了支持string，还支持空值,number和数组等
 * @param maxWidth 最大宽度
 * @param font 字体
 * @param str 要替换的文本
 */

/**
 * 获取文本的高度
 * @param text 文本
 * @param fontSize 字体大小
 * @param lineHeight 行高，可以为空
 */

/**
 * 获取标签背景信息: box (无旋转) + rotation (旋转角度)
 */

/**
 * 获取样式
 * @param  {Object} dom DOM节点
 * @param  {String} name 样式名
 * @param  {Any} defaultValue 默认值
 * @return {String} 属性值
 */

/**
 * 获取行间距如果文本多行，需要获取文本间距
 * @param fontSize 字体大小
 * @param lineHeight 行高
 */

/**
 * 获取被遮挡的 elements
 * @param context 上下文
 * @ignore
 */

/**
 * 获取计算 ticks 的方法
 * @param key 键值
 * @returns 计算 ticks 的方法
 */

/**
 * 获取计算包围盒的算法
 * @param type 方法名
 */

/**
 * 获取话题回复的表情列表
 * @apiName internal.chat.getTopicStickers
 * @supportVersion ios: 4.6.25 android: 4.6.25
 */

/**
 * 获取话题的回复列表
 * @apiName internal.chat.getTopicReplys
 * @supportVersion ios: 4.6.25 android: 4.6.25
 */

/**
 * 获得 area 面积的横向连接线的 px 位置
 * @param data
 * @param width
 * @param height
 */

/**
 * 获得 tooltip 的 title
 * @param originData
 * @param geometry
 * @param title
 */

/**
 * 获得中位数
 * @param array
 */

/**
 * 获得平均值
 * @param array
 */

/**
 * 表情回复接口
 * @apiName internal.chat.stickerReply
 * @supportVersion ios: 4.6.25 android: 4.6.25
 */

/**
 * 计算 Pow 的 ticks
 * @param cfg 度量的配置项
 * @returns 计算后的 ticks
 */

/**
 * 计算 log 的 ticks，考虑 min = 0 的场景
 * @param cfg 度量的配置项
 * @returns 计算后的 ticks
 */

/**
 * 计算 time 的 ticks，对 month, year 进行 pretty 处理
 * @param cfg 度量的配置项
 * @returns 计算后的 ticks
 */

/**
 * 计算两个矩形之间的堆叠区域面积
 */

/**
 * 计算二维向量的垂直向量
 * @param out
 * @param v
 * @param flag
 */

/**
 * 计算几分位 https://github.com/simple-statistics/simple-statistics/blob/master/src/quantile_sorted.js
 * @param x  数组
 * @param p  百分比
 */

/**
 * 计算分类 ticks
 * @param cfg 度量的配置项
 * @returns 计算后的 ticks
 */

/**
 * 计算文本在画布中的宽度
 */

/**
 * 计算文本的宽度
 */

/**
 * 计算时间分类的 ticks, 保头，保尾
 * @param cfg 度量的配置项
 * @returns 计算后的 ticks
 */

/**
 * 计算线性的 ticks，使用 R's pretty 方法
 * @param cfg 度量的配置项
 * @returns 计算后的 ticks
 */

/**
 * 计算线性的 ticks，使用 wilkinson extended 方法
 * @param cfg 度量的配置项
 * @returns 计算后的 ticks
 */

/**
 * 设置 canvas
 * @param {IElement} element 元素
 * @param {ICanvas}  canvas  画布
 */

/**
 * 设置 marker 的 symbol，将 字符串的 symbol 转换为真正的绘制命令
 * @param marker
 */

/**
 * 设置 timeline
 * @param {IElement} element  元素
 * @param {Timeline} timeline 时间轴
 */

/**
 * 诊断信息采用单 Code 模式对应一个 Message 的模式
 * 采用 4 位 Code 表示错误码，当遇到一个解决方案，
 * 1xxx => 一些警告信息
 * 4xxx => 用户使用上的问题
 * 5xxx => 框架或者客户端造成的异常
 */

/**
 * 调用 onBeforeInvokeAPI 及 onAfterInvokeAPI
 */

/**
 * 转化钉钉品牌文案的内容为正则
 */

/**
 * 转换 unicode 表情为图片
 * @param text
 * @returns
 */

/**
 * 转换成时间戳
 * @param value 时间值
 */

/**
 * 边和填充设置的颜色转换成 pattern
 * @param {CanvasRenderingContext2D} context canvas 上下文
 * @param {IElement}                 element  图形元素
 * @param {string}                   patternStr   生成 pattern 的字符串
 */

/**
 * 适用于 interval geometry 的数据标签位置自动调整布局方法
 * @param items
 * @param labels
 * @param shapes
 */

/**
 * 适用于 point geometry 的数据标签位置自动调整布局方法
 * @param items
 * @param labels
 * @param shapes
 * @param region
 * @param cfg
 */

/**
 * 通过 JSBridge 调用 native 接口，读取 context.{method, invokeName, callParams, JSBridge}
 */

/**
 * 通过名字获取渲染 engine
 * @param name 渲染引擎名字
 * @returns G engine
 */

/**
 * 通过类型获得 Attribute 类
 * @param type
 */

/**
 * 配置 labelline
 * @param item PolarLabelItem
 */

/**
 * 针对大数据量做优化的 getMaxLabelWidth，做法不是直接去比较每一个 label 的最大宽度
 * 而是先通过比较每个 label 每个的字符串的长度，这里区分了下中英文字符
 * 最终是去字符串最“长”的那个 label 的宽度。
 * @param labels
 */

/**
 * 非固定角度旋转文本
 * @param  {boolean} isVertical  是否垂直方向
 * @param  {IGroup}  labelsGroup 文本的 group
 * @param  {number}  limitLength 限定长度
 * @return {boolean}             是否发生了旋转
 */

/**
 * 饼图 outer-label 布局, 适用于 type = pie 且 label offset > 0 的标签
 */

/**
 * 饼图标签 spider 布局, 只适用于 pie-spider 的标签类型
 * region 应该是 labelsRenderer 容器的范围限制(便于后续组件间布局)
 */

/**
 * 高精度加法，解决 0.1 + 0.2 !== 0.3 的经典问题
 *
 * @param num1 加数
 * @param num2 被加数
 * @return {number} 返回值
 */

/**
 * 默认的 syncViewPadding 逻辑
 * @param chart
 * @param views
 * @param PC: PaddingCalCtor
 */

/**
Some credit for this helper goes to http://github.com/YuzuJS/setImmediate
*/

/** (单色)顺序色板 */

/** 0~1转定义域 */

/** @class */

/** @deprecated internal use only */

/** @deprecated 即容器版本号, 推荐使用 dd.env.version */

/** @ignore */

/** @jsx Dinamic.h */

/** @override */

/** Attribute map  */

/** Between in date but not equal of date */

/** Element map */

/** Error message constants. */

/** Geometry innerLabel 文本字体大小 */

/** Geometry innerLabel 文本字体粗细 */

/** Geometry innerLabel 文本描边粗细 */

/** Geometry innerLabel 文本描边颜色 */

/** Geometry innerLabel 文本行高 */

/** Geometry innerLabel 文本颜色 */

/** Geometry label 文本字体大小 */

/** Geometry label 文本字体粗细 */

/** Geometry label 文本描边粗细 */

/** Geometry label 文本描边颜色 */

/** Geometry label 文本行高 */

/** Geometry label 文本连接线粗细 */

/** Geometry label 文本连接线颜色 */

/** Geometry label 文本颜色 */

/** Geometry overflowLabel 文本字体大小 */

/** Geometry overflowLabel 文本字体粗细 */

/** Geometry overflowLabel 文本描边粗细 */

/** Geometry overflowLabel 文本描边颜色 */

/** Geometry overflowLabel 文本行高 */

/** Geometry overflowLabel 文本颜色 */

/** Geometry 几何标记类型。 */

/** I 形状柱状图，常用于 error bar chart */

/** Inerval 默认 shape，填充的矩形 */

/** PolarLabelItem */

/** Slider 字体标签大小 */

/** Slider 字体标签字重 */

/** Slider 字体标签描边粗细 */

/** Slider 字体标签描边色 */

/** Slider 字体标签行高 */

/** Slider 字体标签透明度 */

/** Slider 字体标签颜色 */

/** Slider 手柄宽度 */

/** Slider 手柄背景色 */

/** Slider 手柄背景色透明度 */

/** Slider 手柄边框圆角 */

/** Slider 手柄边框粗细 */

/** Slider 手柄边框色 */

/** Slider 手柄高亮背景色 */

/** TODO: compatible */

/** TODO: 统一卡片 SDK 和 utils 的类型 */

/** Trigger when element is visible in view */

/** Used as references for various `Number` constants. */

/** Used as the `TypeError` message for "Functions" methods. */

/** animate 配置项 */

/** annotation 组件 */

/** arc 图形标注描边颜色 */

/** arc 图形标注粗细 */

/** area inactive 状态下填充透明度 */

/** area 在 active 状态下的填充透明度 */

/** area 在 selected 状态下的填充透明度 */

/** area 填充透明度 */

/** area 填充颜色 */

/** at 人类型 */

/** at人，1.0 版本实现 */

/** axis 组件 */

/** dataMarker 图形标注线的长度 */

/** grid 组件 */

/** hollowArea active 状态下的边框粗细 */

/** hollowArea inactive 状态下的边框透明度 */

/** hollowArea selected 状态下的边框粗细 */

/** hollowArea 边框粗细 */

/** hollowArea 边框透明度 */

/** hollowArea 颜色 */

/** hollowInterval active 状态下边框粗细 */

/** hollowInterval active 状态下边框颜色 */

/** hollowInterval inactive 状态下边框透明度 */

/** hollowInterval selected 状态下边框粗细 */

/** hollowInterval selected 状态下边框透明度 */

/** hollowInterval selected 状态下边框颜色 */

/** hollowInterval 边框透明度 */

/** hollowInterval 边框颜色 */

/** imageView img 包裹 div 的类名 */

/** interval active 状态下边框粗细 */

/** interval active 状态下边框颜色 */

/** interval inactive 状态下填充透明度 */

/** interval inactive 状态下边框透明度 */

/** interval selected 状态下边框粗细 */

/** interval selected 状态下边框透明度 */

/** interval selected 状态下边框颜色 */

/** interval 填充透明度 */

/** interval 填充颜色 */

/** interval 边框粗细 */

/** labels 容器的范围(后续根据组件的布局设计进行调整) */

/** legend 组件 */

/** lemon - im */

/** line 图形标注粗细 */

/** line 图形标注颜色 */

/** lube 图形标注的虚线间隔 */

/** nothing */

/** range-filter 只用于：brush-filter, brush-x-filter, brush-y-filter */

/** region 图形标注填充颜色 */

/** region 图形标注填充颜色透明色 */

/** region 图形标注描边粗细 */

/** region 图形标注描边颜色 */

/** slider 手柄高度 */

/** slider 滑道前景色 */

/** slider 滑道前景色透明度 */

/** slider 滑道背景色 */

/** slider 滑道背景色透明度 */

/** slider 滑道高度 */

/** text 图形标注文本字体大小 */

/** text 图形标注文本字体粗细 */

/** text 图形标注文本行高 */

/** text 图形标注文本边框粗细 */

/** text 图形标注文本边框颜色 */

/** text 图形标注文本颜色 */

/** the real trigger shape of the event */

/** tooltip crosshairs 辅助线粗细 */

/** tooltip crosshairs 辅助线虚线间隔 */

/** tooltip crosshairs 辅助线颜色 */

/** tooltip 内容框圆角 */

/** tooltip 内容框背景色 */

/** tooltip 内容框阴影 */

/** tooltip 文本字体大小 */

/** tooltip 文本字体粗细 */

/** tooltip 文本行高 */

/** tooltip 文本颜色 */

/** tooltip 组件 */

/** vertical-align: middle */

/** x 画布坐标 */

/** x 窗口坐标 */

/** y 画布坐标 */

/** y 窗口坐标 */

/** 一般柱状图宽度占比，geometry中已添加默认值，为了geometry配置生效默认值为null */

/** 中间层 */

/** 主题样式 */

/** 主题色 */

/** 交互Id */

/** 交互内容 */

/** 交互类型 0:同步; 1:异步 */

/** 从 pos.x 移动到 item.x */

/** 从当前这个 view 创建的 scale key */

/** 使用 key-value 结构存储 Element，key 为每个 Element 实例对应的唯一 ID */

/** 使用 object 存储组件 */

/** 使用共用的表情标记类名 */

/** 光标呈现为十字线。 */

/** 光标呈现为指示链接的指针（一只手） */

/** 其他组件，自定义组件 */

/** 分类色板 1，在数据量小于等于 10 时使用 */

/** 分类色板 2，在数据量大于 10 时使用 */

/** 分面之后的所有分面数据结构 */

/** 判断是否在PC Dingtalk环境下 */

/** 判断是否在android Dingtalk环境下 */

/** 判断是否在iOS Dingtalk环境下 */

/** 判断是否在微信终端 */

/** 判断是否是XueXi客户端下 */

/** 判断是否是android终端 */

/** 判断是否是iOS终端 */

/** 判断是否是专有钉mpaas环境 */

/** 判断是否是专有钉环境 */

/** 判断是否是在DingTalk容器内 */

/** 判断是否是移动终端 */

/** 判断是否是钉钉国际版 */

/** 前景层 */

/** 加载文案 */

/** 参与分组的图形属性名 */

/** 可交互卡片 */

/** 图例 'circle' marker 半径 */

/** 图例 'line' marker 半径 */

/** 图例 'square' marker 半径 */

/** 图例 marker 距离图例文本的间距 */

/** 图例 marker 颜色 */

/** 图例 marker 默认半径大小 */

/** 图例与图表绘图区域的偏移距离  */

/** 图例分页器 marker 填充色 */

/** 图例分页器 marker 填充色透明度 */

/** 图例分页器 marker 大小 */

/** 图例分页器 marker 激活状态填充色 */

/** 图例分页器 marker 激活状态填充色透明度 */

/** 图例分页器 marker 非激活状态填充色 */

/** 图例分页器 marker 非激活状态填充色透明度 */

/** 图例分页器文本字体大小 */

/** 图例分页器文本颜色 */

/** 图例标题文本字体大小 */

/** 图例标题文本字体粗细 */

/** 图例标题文本行高 */

/** 图例标题颜色 */

/** 图例项之间的水平间距 */

/** 图例项垂直方向的间隔 */

/** 图例项文本字体大小 */

/** 图例项文本行高 */

/** 图例项文本颜色 */

/** 图例项粗细 */

/** 图形容器 */

/** 图形属性映射配置 */

/** 图片类型 */

/** 图片，1.1 版本实现 */

/** 图表背景色 */

/** 图表辅助色 */

/** 圆半径 */

/** 坐标圆心 */

/** 坐标系 */

/** 坐标系对象 */

/** 坐标轴刻度文本字体大小 */

/** 坐标轴刻度文本字体粗细 */

/** 坐标轴刻度文本行高 */

/** 坐标轴刻度文本距离坐标轴线的间距 */

/** 坐标轴刻度文本颜色 */

/** 坐标轴刻度线粗细 */

/** 坐标轴刻度线长度 */

/** 坐标轴刻度线颜色 */

/** 坐标轴标题文本字体大小 */

/** 坐标轴标题文本字体粗细 */

/** 坐标轴标题文本行高 */

/** 坐标轴标题详细说明icon颜色 */

/** 坐标轴标题距离坐标轴文本的间距 */

/** 坐标轴标题颜色 */

/** 坐标轴次刻度线粗细 */

/** 坐标轴次刻度线长度 */

/** 坐标轴次刻度线颜色 */

/** 坐标轴线 lineDash 设置 */

/** 坐标轴线粗细 */

/** 坐标轴线颜色 */

/** 坐标轴网格线粗细 */

/** 坐标轴网格线虚线设置 */

/** 坐标轴网格线颜色 */

/** 垂直布局的图例与绘图区域偏移距离 */

/** 处理 text shape 的自动省略 */

/** 多层饼图/环图占比 */

/** 多边形的关键点 */

/** 字体 */

/** 存储上一次渲染时的 element 映射表，用于更新逻辑 */

/** 存储原始数据的字段名 */

/** 存储发生图形属性映射前的数据 */

/** 存储当前 shape 的映射表，键值为 shape id */

/** 定义域转 0~1 */

/** 布局函数 */

/** 引入 Path 对应的 ShapeFactory */

/** 引入 Point 对应的 ShapeFactory */

/** 引入对应的 ShapeFactory */

/** 引用类型 */

/** 引用，1.1 版本实现 */

/** 当前事件对象 */

/** 当前所有的 Action */

/** 当前鼠标是否在 plot 内（CoordinateBBox） */

/** 成功文案 */

/** 所有的 Interaction 实例。 */

/** 所有的 component */

/** 所有的 geometry 实例。 */

/** 所有的 scales */

/** 所有的子 view。 */

/** 所有的组件 controllers。 */

/** 描边柱状图 */

/** 描边的平滑曲面图 */

/** 文本省略 */

/** 文本类型 */

/** 文本，1.0 版本实现 */

/** 新版默认注入BILOG */

/** 是否可见 */

/** 是否在 第三象限 */

/** 是否在 第二象限 */

/** 是否在 第四象限 */

/** 是否在第一象限 */

/** 是否存在指定的状态 */

/** 是否对超出坐标系范围的 Geometry 进行剪切 */

/** 是否属于ASCII编码范畴 */

/** 是否生成多个点来绘制图形。 */

/** 是否销毁 */

/** 最小的图表宽度 */

/** 最小的图表高度 */

/** 本地缓存数据 */

/** 本地缓存数据类型 0:内存; 1:DB */

/** 柱状图最大宽度 */

/** 柱状图最小宽度 */

/** 标志该 IMG 是 emoji 类型 */

/** 标识对象是否已销毁 */

/** 检测是否和已布局的堆叠 */

/** 模版-下载错误 */

/** 模版-渲染错误 */

/** 此光标指示可用的帮助（通常是一个问号或一个气球）。 */

/** 此光标指示文本。 */

/** 此光标指示某对象可被移动。 */

/** 此光标指示程序正忙（通常是一只表或沙漏）。 */

/** 水平布局的图例与绘图区域偏移距离 */

/** 清理组件的状态 */

/** 清除当前 labels */

/** 滚动条 滑块填充色 */

/** 滚动条 滑块高亮填充色 */

/** 滚动条 滚道填充色 */

/** 滚动条组件 */

/** 漏斗图 */

/** 点图 active 状态下描边颜色 */

/** 点图 inactive 状态下填充颜色透明度 */

/** 点图 inactive 状态下描边透明度 */

/** 点图 selected 状态下描边粗细 */

/** 点图 selected 状态下描边颜色 */

/** 点图填充颜色 */

/** 点图填充颜色透明度 */

/** 点图大小 */

/** 点图描边粗细 */

/** 点图描边透明度 */

/** 点图描边颜色 */

/** 热力图暂时不支持 callback 回调（文档需要说明下） */

/** 玫瑰图占比 */

/** 生成图形关键点 */

/** 用于判断坐标系范围是否发生变化的标志位 */

/** 空心点图 active 状态下描边粗细 */

/** 空心点图 active 状态下描边透明度 */

/** 空心点图 active 状态下描边颜色 */

/** 空心点图 inactive 状态下描边透明度 */

/** 空心点图 selected 状态下描边粗细 */

/** 空心点图 selected 状态下描边透明度 */

/** 空心点图 selected 状态下描边颜色 */

/** 空心点图大小 */

/** 空心点图描边粗细 */

/** 空心点图描边透明度 */

/** 空心点图描边颜色 */

/** 线图 Active 状态下粗细 */

/** 线图 inactive 状态下透明度 */

/** 线图 selected 状态下粗细 */

/** 线图粗细 */

/** 线图透明度 */

/** 线图颜色 */

/** 组件的选项是否同 element 匹配 */

/** 缩略轴组件 */

/** 背景层 */

/** 获取 x 轴对应的 scale 实例。 */

/** 获取 y 轴对应的 scale 实例。 */

/** 获取Tick的格式化结果 */

/** 获取label长度 */

/** 获取图形属性默认的映射值。 */

/** 获取坐标轴需要的ticks */

/** 获取字符串长度 */

/** 获取对应的 dom 原生时间 */

/** 获取最长的 label */

/** 获取触发的列表组件 */

/** 获得滚动条位置  */

/** 设置滚动条位置  */

/** 设置状态是否激活 */

/** 语义色 */

/** 负数情况 */

/** 起始点 */

/** 轮播图指示器小点点击事件（手动翻页时触发） */

/** 轮播图页码变化事件（自动轮播、手动翻页时触发） */

/** 辅助组件占图表的尺寸的最大比例：如图表上方的图例最多占图表高度的25% */

/** 连续图例文本字体大小 */

/** 连续图例文本字体粗细 */

/** 连续图例文本行高 */

/** 连续图例文本颜色 */

/** 连续图例滑块填充色 */

/** 连续图例滑块宽度 */

/** 连续图例滑块边框粗细 */

/** 连续图例滑块边框颜色 */

/** 连续图例滑块颜色 */

/** 连续图例滑块高度 */

/** 逆时针 */

/** 配置开启的组件插件，默认为全局配置的组件。 */

/** 重新初始化 */

/** 金字塔图，尖底漏斗图 */

/** 链接类型 */

/** 链接，1.0 版本实现 */

/** 销毁 */

/** 需要同步的 scale 分组， key: scaleKeyArray */

/** 默认标识位，用于判定数据是否更新 */

/** 默认绘制的 Shape 类型 */

/** 鼠标离开指示器事件 */

/** 鼠标进入指示器事件 */

/************************************************************************/

/******/

/***/

/*, ...nodes */

/*break*/

/*if (x.length === 0) { // 当前场景这些条件不可能命中
      throw new Error('quantile requires at least one value.');
    } else if (p < 0 || p > 1) {
      throw new Error('quantiles must be between 0 and 1');
    } else */

/*return*/

/*yield*/

//

// minColumnWidth可能设置为0

// 对剪切图形做动画

//       + (t ** 3) * p2x,

//       + (t ** 3) * p2y,

//       + t1 * 3 * t * t * c2x

//       + t1 * 3 * t * t * c2y

//       + t1 * t1 * 3 * t * c1x

//       + t1 * t1 * 3 * t * c1y

//       0 - 9

//       0 - 99

//       0 - 999

//       0 - 9999

//       0 - inf

//       needs to implement call(observer: Subscriber<R>): Subscriber<Observable<T>>

//      00 - 99

//      Subscription yet, or,

//      to the shared connection Subscription

//     // 如果没限制 limitLength 则直接返回 false

//     000 - 999

//     999 - 9999

//     code: `dx-${errorType}`,

//     isOut = canvasBBox.height > limitLength;

//     isOut = canvasBBox.width > limitLength;

//     message: JSON.stringify(msg),

//     return false;

//     sampling: 10,

//     success: false,

//     x: (t1 ** 3) * p1x

//     y: (t1 ** 3) * p1y

//     |

//    -inf - inf

//    0000 - 9999

//    http://jsperf.com/quaternion-slerp-implementations

//    this is legit because `next()` will never be called by a subscription in this case.

//   .publish()

//   .refCount()

//   .subscribe();

//   .take(5)

//   // 如果这时候

//   // 将之前的 clipShape 销毁

//   99999 - 999999

//   [ 0, 0 ],

//   [ 1, 1 ],

//   a. RefCountSubscriber doesn't have a reference to the shared connection

//   b. RefCountSubscriber's connection Subscription reference is identical

//   break;

//   buffer 16  11011000  0xd8

//   buffer 32  11011001  0xd9

//   canvas.refreshElement(element, changeType, canvas);

//   const ax = a[0];

//   const ay = a[1];

//   const bx = b[0];

//   const by = b[1];

//   const canvasBBox = label.getCanvasBBox();

//   const group = this.get('group');

//   const newGroup = this.createOffScreenGroup();

//   const point = this.getTickPoint(tick.value + tickSegment / 2);

//   const t1 = 1 - t;

//   const tick = ticks[tickCount - 1];

//   if (!limitLength) {

//   if (isVertical) {

//   let isOut = false;

//   newGroup.destroy(); // 销毁虚拟分组

//   preShape.destroy();

//   refresh = intersectRect(bbox, region);

//   result = IMG_FILE_MAIL;

//   return NaN;

//   return [ax + (bx - ax) * t, ay + (by - ay) * t];

//   return false;

//   return isOut;

//   return {

//   rowData.push({});

//   tangentAngle += Math.PI;

//   this._emitEvent('mouseleave', ev, pointInfo, this.currentShape, this.currentShape, null);

//   this.applyOffset();

//   this.currentShape = null;

//   this.deleteElements();

//   this.jsTracker.reportCustom({

//   this.props.onLazyLoad([leftMostSlide])

//   this.renderInner(newGroup);

//   this.updateElements(newGroup, group);

//   undefined  11000100  0xc4

//   }

//   } else {

//   });

//   };

//  * days do not bubble at all

//  * milliseconds bubble up until they become hours

//  * months bubble up until they become years

//  ... so we can do a linear interpolation

//  else { // 暂时仅处理连续字段

//  first init for dingtalk-i18n SDK

//  去掉原始文案中所有的钉钉品牌

//  差值函数

//  替换原始文案中所有的钉钉品牌为客户品牌

//  正反选数据: 只有当 radio === truthy 的时候才会有 legend-item-radio 这个元素

//  浏览器环境下处理品牌化（暂不支持）

//  策略1纯净版(忽略value)

//  策略2品牌替换处理（忽略value）

//  策略3完全自定义

//  计算品牌化的结果

//  过滤不支持的语言（如果是不支持的语言，就可以不需要处理了）

// !imgFallback && setVisible(false);

// "consumed" by the delegate iterator. If context.method was

// "from" and "to" quaternions are very close

// "return", allow the original .return call to continue in the

// ## Build Metadata

// ## Build Metadata Identifier

// ## Full Version String

// ## Main Version

// ## Non-numeric Identifier

// ## Numeric Identifier

// ## Pre-release Version

// ## Pre-release Version Identifier

// #2279 修复resize之后tooltip越界的问题

// '%'

// '+10:00' > ['10',  '00']

// '-' is false for all relational operators (e.g. <, >=) so this setting

// '-1530'  > ['-15', '30']

// 'C' 的参数，1、2 为第一个控制点，3、4 为第二个控制点，5、6 为结束点

// 'O'

// 'd'

// 'j'

// 'line' 默认折线；'dot' 点线 ···；'dash' 断线 - - -

// 'o'

// 's'

// 'test_icon' 当本没有对应图片时，取默认值

// 'too much recursion' error.

// ()

// (5)

// (fmt)

// (fmt, 5)

// (mx > nx || my < ny) && (alpha += 180);

// (think of clock changes)

// (true)

// (true, 5)

// (true, fmt)

// (true, fmt, 5)

// (x - cx)^2 + (y - cy)^2 = totalR^2

// * http://www.whatwg.org/specs/web-apps/current-work/multipage/comms.html#crossDocumentMessages

// * https://developer.mozilla.org/en/DOM/window.postMessage

// * if day of month is given, default month and year

// * if month is given, default only year

// * if no year, month, day of month are given, default to today

// * if year is given, don't default anything

// +00 -00 +00:00 -00:00 +0000 -0000 or Z

// +00:00 -00:00 +0000 -0000 or Z

// +0200, so we adjust the time as needed, to be valid.

// -------------------- Annotation，图形标注 --------------------

// -------------------- Geometry labels --------------------

// -------------------- Geometry 图形样式--------------------

// -------------------- Scrollbar 组件样式--------------------

// -------------------- Slider 组件样式--------------------

// -------------------- Tooltip --------------------

// -------------------- 图例 --------------------

// -------------------- 坐标轴 --------------------

// -1 means should display AM

// -999999 - 999999

// ...but misinterprets leading-number strings, particularly hex literals ("0x...")

// .constructor.prototype properties for functions that return Generator

// .throw, and .return (see defineIteratorMethods).

// .throw, and .return methods.

// // 对于定宽不定高的情况，需要通过图片本身的宽高比来进行图片的展示

// 0

// 0 ---- 3

// 0 到 positiveMin的占比

// 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)

// 1 ---- 2

// 1 秒钟刷新一次

// 1. do axis update

// 1. foreground

// 1. match tag start

// 1. x, y 都不是数组

// 1. 不存在则创建

// 1. 之前图形在视窗内，但是现在不再视窗内

// 1. 保存数据

// 1. 先处理需要在图形渲染之后的辅助组件 需要在 Geometry 完成之后，拿到图形信息

// 1. 合并 field 对应的 scaleDef，合并原则是底层覆盖顶层（就近原则）

// 1. 同步子 view padding

// 1. 处理数据

// 1. 如果触点之前处于tapping状态，且位移超过10像素，则认定为进入panning状态

// 1. 子 view 大小相对 coordinateBBox，changeSize 的时候需要重新计算

// 1. 宽度为0的子元素，不占位；如已经为不可见元素，则不添加

// 1. 检查 全局

// 1. 清空缓存和计算数据

// 1. 渲染几何标记

// 1. 空的 group

// 1. 缓存到 scales

// 1. 背景

// 1. 表达式名称解析

// 1. 遍历求得最大最小值，values 等

// 1. 遍历触点 保存在gestures中

// 1. 重置 matrix

// 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.

// 1.0.0-5 bumps to 1.0.0

// 1.0000000001. This causes `segments` to be greater than one, which is an

// 1.1.0 bumps to 2.0.0

// 1.2.0 patches to 1.2.1

// 1.2.0-5 bumps to 1.2.0

// 1.2.0-5 patches to 1.2.0

// 1.2.0-beta.1 bumps to 1.2.0-beta.2,

// 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0

// 1.2.1 bumps to 1.3.0

// 1/(4w)

// 100% pie slice

// 1000

// 1000 * 60

// 1000 * 60 * 60

// 1000 * 60 * 60 * 24 * 7, negate dst

// 1000 * 60 * 60 * 24, negate dst

// 100ms 内发生过点击事件，则从点击位置动画展示

// 12 Hours

// 12 months -> 1 year

// 123456789 123456789.123

// 1代表视频流样式，2代表IM消息流样式

// 2 - 0 - 3

// 2. clone shape & color it

// 2. do grid update

// 2. match tag attrs

// 2. match_parent hack: 如果 子view 绝对外层宽度大于或等于layout宽度，则增加宽度自动缩放

// 2. y是数组，x不是

// 2. 创建实例

// 2. 右滑块的滑动

// 2. 同步

// 2. 处理双指情况

// 2. 处理非 regionFilter

// 2. 如果当前的图形以及父元素都没有发生过变化，refresh = false 不会走到这里，所以这里的图形都是父元素发生变化，但是没有在视图内的元素

// 2. 如果触点之前处于panning状态，则根据pan的初始方向触发horizontalpan或verticalpan手势

// 2. 存储当前点击位置

// 2. 左侧滑块和文字位置

// 2. 左右文字

// 2. 所有 elements 没有在绘图区域

// 2. 是否存在父 view，在则递归，否则创建

// 2. 更新 coordinate

// 2. 有了 shape 之后设置背景，位置（更新的时候）

// 2. 清空 geometries

// 2. 渲染

// 2. 绘制组件

// 2. 缓存到 syncScales，构造 Record<sync, string[]> 数据结构

// 2. 表达式参数解析

// 2. 重新执行作用于 matrix 的 action

// 2.1 横向为主轴，用 flex-shrink做伸缩

// 2.2 纵向为主轴时，flex-shrink失效，最大宽度计算，如果横向最大长度已经超出屏宽，则最后一个view的宽度压缩

// 2022.03.21 改为通过能力来判断，去除 ua 相关的判断

// 2w

// 2维

// 3+ 新版 ossgw 地址，共分三个状态

// 3. clip

// 3. group 下面的 elements 隐藏掉

// 3. match tag end

// 3. x是数组，y不是

// 3. 初始化 Geometry

// 3. 初始化组件 component

// 3. 前景选中区域

// 3. 右侧滑块和文字位置

// 3. 在根节点 view 通过 scalePool 创建

// 3. 将 view 中的组件按照 view padding 移动到对应的位置

// 3. 开始滑动的时候，绑定 move 和 up 事件

// 3. 添加默认 action

// 3. 清空 controllers

// 3. 触发长按

// 3. 遍历子 view 进行 change data

// 3600 seconds -> 60 minutes -> 1 hour

// 3s 后自动上报

// 4 - 1 - 5

// 4. x, y 都是数组

// 4. 删除 scale 缓存

// 4. 处理分面逻辑，最终都是生成子 view 和 geometry

// 4. 左右滑块

// 4. 布局计算每隔 view 的 padding 值

// 4. 执行 action

// 4.1. 自动加 auto padding -> absolute padding，并且增加 appendPadding

// 4.2. 计算出新的 coordinateBBox，更新 Coordinate

// 400 years have 12 months === 4800

// 400 years have 146097 days (taking into account leap year rules)

// 5.0 版本开关

// 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset

// <-- must stay first

// <MyComponent isVideoChild />

// <input type="date" />

// <input type="datetime-local" />

// <input type="datetime-local" step="0.001" />

// <input type="datetime-local" step="1" />

// <input type="time" />

// <input type="time" step="0.001" />

// <input type="time" step="1" />

// <input type="week" />

// === msgpack ===

// ==================== View Operation ====================

// ===================== Format =====================

// ====================== Mode ======================

// ====================== Operations ======================

// ======================= Keyboard =======================

// ======================== Events ========================

// ======================== Render ========================

// ========================= Disable Date ==========================

// ========================== Effect ==========================

// =========================== Hook ===========================

// ============================ Effect ============================

// ============================ Footer ============================

// ============================ Private ============================

// ============================ Ranges =============================

// ============================ Return =============================

// ============================ Trigger ============================

// ============================= Icons =============================

// ============================= Misc ==============================

// ============================= Panel =============================

// ============================= State =============================

// ============================= Sync ==============================

// ============================= Text ==============================

// =============================== Body ===============================

// >=0.0.0 is like a star

// >>>>> Format start & end values

// >>>>> Open picker when

// >>>>> Trigger `onChange` event

// @2018-07-25 by blue.lb 这里去掉浮动，火狐上存在样式错位

// @@iterator function is called on it. Some browsers' implementations of the

// @all转DING

// @see https://github.com/antvis/g/issues/634

// @see https://github.com/antvis/util/issues/68

// @todo G 中事件定义为 object 不正确，这里先 ignore

// @ts-ignore

// @ts-ignore FIXME coordinate 包问题导致 type 不正确

// @ts-ignore ex

// @ts-ignore 允许调整

// @ts-ignore 库里面导出了，但是没有声明

// @ts-ignore ，这个地方调用过于频繁

// @type {Attrs} 坐标轴线的图形属性,如果设置成null，则不显示轴线

// @type {Attrs} 标注坐标线的图形属性

// A .throw or .return when the delegate iterator has no .throw

// A 0:rx 1:ry 2:x-axis-rotation 3:large-arc-flag 4:sweep-flag 5: x 6: y

// A Generator should always return itself as the iterator object when the

// A handler for events that

// A is the only command

// A linked list to keep track of recently-used-ness

// A main version, followed optionally by a pre-release version and

// A numeric identifier, or a non-numeric identifier.

// A previous serialized cache has the most recent items first

// A simple gt/lt/eq thing, or just "" to indicate "any version"

// A single `0`, or a non-zero digit followed by zero or more digits.

// ALIASES

// API 只会返回字符串，如果设置成false，可能会引起判断问题，如果只是开关判断，建议使用 getLemonGrayBoolean 实现

// APIs for creating annotation component

// ASP.NET json date format regex

// Action 开始，不等同于 拖拽开始，需要判定移动的范围

// Active picker

// Add a new text track to the video

// Add back all the literals after

// Add remains of b.

// Add startTangent and endTangent

// Adding is smart enough around DST

// Adjust the track back to it's original position.

// Algorithm in Ken Shoemake's article in 1987 SIGGRAPH course notes

// Also I've added a type for `undefined`

// Always open another picker if possible

// Always set back in case `onBlur` prevented by user

// Always show at least one digit of minutes.

// An expression to strip any whitespace between the gtlt and the thing

// And make a reflection similar

// And reflect the previous

// Android sometimes returns slightly off decimal values, so need to round

// Any combination of digits, letters, or hyphens.

// Any reducers that existed in both the new and old rootReducer

// Apply formatting rules

// Apply timezone offset from input. The actual utcOffset can be changed

// Area 几何标记默认的 shape：填充的区域图

// Arrow offset

// Assign the result of the finished delegate to the temporary

// AsyncIterator objects; they just return a Promise for the value of

// Avoid bugs when hasOwnProperty is shadowed

// Avoid propagating failures to Promises returned by later

// Avoid regular expression denial of service, fail early for really long strings

// Avoid scrolling to bottom

// Be forgiving, per 25.3.3.3.3 of the spec:

// Because of dateAddRemove treats 24 hours as different from a

// Boolean

// Boolean, null, undefined

// But since the VirtualTimeScheduler is used for testing, VirtualActions

// C is not saved yet, because it may be result of conversion

// CONCATENATED MODULE: ./index.js

// CONCATENATED MODULE: ./node_modules/@ali/calendar-biz/es/components/FlashMeetingDesc/pure.js

// CONCATENATED MODULE: ./node_modules/@ali/calendar-biz/node_modules/@ali/pc-ding-sdk/es/api/native/my/getMyOpenId.js

// CONCATENATED MODULE: ./node_modules/@ali/calendar-biz/node_modules/@ali/pc-ding-sdk/es/lib/sdk/index.js

// CONCATENATED MODULE: ./node_modules/@ali/calendar-biz/node_modules/@ali/pc-ding-sdk/es/service/native/index.js

// CONCATENATED MODULE: ./node_modules/@ali/dd-rt-view/node_modules/@ali/dingtalk-im-emoji/lib/EmotionPlugin/AutoEmotion/index.js

// CONCATENATED MODULE: ./node_modules/@ali/dd-rt-view/node_modules/@ali/dingtalk-im-emoji/lib/EmotionPlugin/DefaultEmotion/assets.js

// CONCATENATED MODULE: ./node_modules/@ali/dd-rt-view/node_modules/@ali/dingtalk-im-emoji/lib/EmotionPlugin/DefaultEmotion/index.js

// CONCATENATED MODULE: ./node_modules/@ali/dd-rt-view/node_modules/@ali/dingtalk-im-emoji/lib/EmotionPlugin/DingtalkEmotion/index.js

// CONCATENATED MODULE: ./node_modules/@ali/dd-rt-view/node_modules/@ali/dingtalk-im-emoji/lib/EmotionPlugin/JSAPIEmotion/index.js

// CONCATENATED MODULE: ./node_modules/@ali/dd-rt-view/node_modules/@ali/dingtalk-im-emoji/lib/EmotionPlugin/base.js

// CONCATENATED MODULE: ./node_modules/@ali/dd-rt-view/node_modules/@ali/dingtalk-im-emoji/lib/EmotionPlugin/getDefaultEmotion.js

// CONCATENATED MODULE: ./node_modules/@ali/dd-rt-view/node_modules/@ali/dingtalk-im-emoji/lib/EmotionPlugin/utils.js

// CONCATENATED MODULE: ./node_modules/@ali/dd-rt-view/node_modules/@ali/dingtalk-im-emoji/lib/index.js

// CONCATENATED MODULE: ./node_modules/@ali/dd-rt-view/node_modules/@ali/dingtalk-im-emoji/lib/utils/textTransform.js

// CONCATENATED MODULE: ./node_modules/@ali/desktop-awesome-component/i18nResource/translation_en_US.ts

// CONCATENATED MODULE: ./node_modules/@ali/desktop-awesome-component/node_modules/@ali/exclusive-brand/lib/bizApi.js

// CONCATENATED MODULE: ./node_modules/@ali/desktop-awesome-component/src/component/common/displayName/displayName.tsx

// CONCATENATED MODULE: ./node_modules/@ali/desktop-awesome-component/src/component/common/svgIcon/index.tsx

// CONCATENATED MODULE: ./node_modules/@ali/desktop-awesome-component/src/component/interactive/morningNews/header/index.tsx

// CONCATENATED MODULE: ./node_modules/@ali/desktop-awesome-component/src/component/interactive/morningNews/newsItem/index.tsx

// CONCATENATED MODULE: ./node_modules/@ali/desktop-awesome-component/src/component/interactive/newsletter/header/index.tsx

// CONCATENATED MODULE: ./node_modules/@ali/desktop-awesome-component/src/component/interactive/newsletter/newsItem/index.tsx

// CONCATENATED MODULE: ./node_modules/@ali/desktop-awesome-component/src/component/interactive/notice/index.tsx

// CONCATENATED MODULE: ./node_modules/@ali/desktop-awesome-component/src/component/interactive/summaryNews/summaryHeader/index.tsx

// CONCATENATED MODULE: ./node_modules/@ali/desktop-awesome-component/src/component/interactive/summaryNews/summaryNewsItem/index.tsx

// CONCATENATED MODULE: ./node_modules/@ali/desktop-awesome-component/src/component/interactive/workCircleRank/index.tsx

// CONCATENATED MODULE: ./node_modules/@ali/desktop-awesome-component/src/service/i18next/i18nText.ts

// CONCATENATED MODULE: ./node_modules/@ali/desktop-awesome-component/src/service/mediaId/decode.ts

// CONCATENATED MODULE: ./node_modules/@ali/desktop-awesome-component/src/service/richText/face.ts

// CONCATENATED MODULE: ./node_modules/@ali/desktop-awesome-component/src/service/url/urlSchemeTransform.ts

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/node_modules/@ali/calendarx-icons/es/CalendarFilled.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/node_modules/@ali/calendarx-icons/es/V2arrow.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/node_modules/@ali/calendarx-icons/es/V2chongfu.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/node_modules/@ali/calendarx-icons/es/V2dingshanhui.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/node_modules/@ali/calendarx-icons/es/V2fujian.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/node_modules/@ali/calendarx-icons/es/V2guanbi.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/node_modules/@ali/calendarx-icons/es/V2huiyijiyaov2.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/node_modules/@ali/calendarx-icons/es/V2huiyishi.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/node_modules/@ali/calendarx-icons/es/V2newVideo.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/node_modules/@ali/calendarx-icons/es/V2shizhong.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/node_modules/@ali/calendarx-icons/es/V2weizhi.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/node_modules/@ali/calendarx-icons/es/V2yicheng.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/node_modules/@ali/calendarx-icons/es/V2youjiantou.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/node_modules/@ali/calendarx-icons/es/V2zhaiyaov2.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/common/svgIcon/index.tsx

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/birthday/content.tsx

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/calendar/CalendarConfStatus.tsx

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/calendar/CalendarFooter.tsx

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/calendar/CalendarRoomCode.tsx

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/calendar/FlashMeeting.tsx

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/calendar/FlashMeetingV2.tsx

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/calendar/i18n/i18nResource/translation_en_US.ts

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/calendar/index.tsx

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/calendar/service/extensionPoint.ts

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/dingDriveShare/i18nResource/dingDriveShare_en_US.ts

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/dingDriveShare/index.tsx

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/inputCard/input.tsx

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/questionCard/i18nResource/questionCard_en_US.ts

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/questionCard/index.tsx

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/rankingCard/index.tsx

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/rankingCard/rank.tsx

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/reportDetail/i18nResource/translation_en_US.ts

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/reportDetail/index.tsx

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/reportInvite/i18nResource/translation_en_US.ts

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/reportInvite/index.tsx

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/serviceWindow/i18nResource/translation_en_US.ts

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/serviceWindow/index.tsx

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/smartAssistant/i18nResource/translation_en_US.ts

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/smartAssistant/index.tsx

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/smartDoc/authorizingCard/permissionApproval.tsx

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/smartDoc/i18nResource/smartDoc_en_US.ts

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/smartDoc/icon.tsx

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/smartDoc/index.tsx

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/smartDoc/sharingCard/actionbar.tsx

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/smartDoc/utils.tsx

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/smartDoc/wikiAuthorizingNoticeCard/actionBar.tsx

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/smartDoc/wikiSharingCard/actionBar.tsx

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/smartDoc/wikiSharingCard/request.ts

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/task/components/common/taskDueDate.tsx

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/task/components/dailyReport/components/footer.tsx

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/task/components/dailyReport/components/header.tsx

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/task/components/taskActivity/from.tsx

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/task/components/taskDetail/footer.tsx

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/task/components/taskList/shareInfo.tsx

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/task/components/textLayoutTask/components/item.tsx

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/task/components/textLayoutTask/index.tsx

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/task/i18nResource/groupTask_en_US.ts

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/task/utils/track/aplus.ts

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/task/utils/track/index.ts

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/transferCard/i18nResource/transferCard_zh_CN.ts

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/transferCard/index.tsx

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-service/dist/nativeSDK/rpc.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-service/dist/nativeSDK/todomatter.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-service/dist/nativeSDK/utLog.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-service/src/interactiveCard/utLog.ts

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-service/src/nativeSDK/utLog.ts

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/Template.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/assets/iconfont.json

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/components/actionSheet.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/components/datetimePicker.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/components/multiSelect.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/components/popupContainer.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/components/select.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/components/videoPlayer/BigPlayButton.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/components/videoPlayer/FullscreenToggle.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/components/videoPlayer/PlayToggle.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/components/videoPlayer/VolumeMenuButton.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/components/videoPlayer/index.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/eventHandlers/actionsheet.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/eventHandlers/callJsFunc.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/eventHandlers/conditionalHandler.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/eventHandlers/confirm.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/eventHandlers/copy.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/eventHandlers/datePicker.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/eventHandlers/datetimePicker.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/eventHandlers/eventHandler.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/eventHandlers/invokeJSAPI.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/eventHandlers/multiSelect.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/eventHandlers/previewImage.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/eventHandlers/previewVideo.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/eventHandlers/select.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/eventHandlers/selectUser.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/eventHandlers/selectUsers.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/eventHandlers/timePicker.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/eventHandlers/toast.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/lib/eventChain.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/lib/eventChainManager.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/lib/videoManager.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/parsers/darkModeAdapter.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/parsers/getEventChainData.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/parsers/i18NAdapter.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/parsers/mediaHeight.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/parsers/mediaId2Url.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/parsers/mediaWidth.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/parsers/parserAvailable.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/parsers/versionEqualOrNewerThan.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/parsers/widgetAvaialble.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/runtime/main/endPointPlugins/ddReporterPlugin.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/runtime/main/index.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/runtime/shared/EndPoint.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/utils/hooks.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/views/CountDownView.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/views/DDChartView.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/views/DDExposeView.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/views/DDFlowLayout.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/views/DDHoverLinearLayout/index.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/views/DDLoadingView/index.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/views/DDRichTextView.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/views/DDToolTipRichText.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/views/DDToolTipText.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/views/DDVideoView.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/views/DtTimingView.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/views/FastTextView.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/views/GridLayout.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/views/IconView/index.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/views/LinearLayout.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/views/ListLayout.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/views/PageIndicator/index.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/views/SliderLayout/index.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/views/emotionTextView.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/views/imageView.js

// CONCATENATED MODULE: ./node_modules/@ali/dingtalk-url-regex/src/index.ts

// CONCATENATED MODULE: ./node_modules/@ali/interactionSdk/lib/mock/index.js

// CONCATENATED MODULE: ./node_modules/@ali/pc-ding-sdk/api/native/calendar/getRecurRuleLocalizedDesc.ts

// CONCATENATED MODULE: ./node_modules/@ali/pc-ding-sdk/api/native/message/previewFile.ts

// CONCATENATED MODULE: ./node_modules/@ali/pc-ding-sdk/dataHub/defaultEmotion.ts

// CONCATENATED MODULE: ./node_modules/@ali/pc-ding-sdk/service/calendar/index.ts

// CONCATENATED MODULE: ./node_modules/@ali/pc-ding-sdk/service/i18nLocale/isI18nLngZhCn.ts

// CONCATENATED MODULE: ./node_modules/@ali/pc-ding-sdk/service/native/index.ts

// CONCATENATED MODULE: ./node_modules/@ali/pc-ding-sdk/service/storage/storageKey.ts

// CONCATENATED MODULE: ./node_modules/@ali/pc-ding-sdk/service/ua/index.ts

// CONCATENATED MODULE: ./node_modules/@ali/pc-ding-sdk/service/uriResolve/resolver.ts

// CONCATENATED MODULE: ./node_modules/@ali/pc-ding-sdk/service/url/urlSchemeTransform.ts

// CONCATENATED MODULE: ./node_modules/@ali/pc-ding-sdk/types/emotion/index.ts

// CONCATENATED MODULE: ./node_modules/@ali/pc-ding-sdk/types/scheme/openAppParams.ts

// CONCATENATED MODULE: ./node_modules/_inline-style-prefixer@5.1.2@inline-style-prefixer/es/createPrefixer.js

// CONCATENATED MODULE: ./node_modules/_inline-style-prefixer@5.1.2@inline-style-prefixer/es/data.js

// CONCATENATED MODULE: ./node_modules/_inline-style-prefixer@5.1.2@inline-style-prefixer/es/index.js

// CONCATENATED MODULE: ./node_modules/_inline-style-prefixer@5.1.2@inline-style-prefixer/es/plugins/backgroundClip.js

// CONCATENATED MODULE: ./node_modules/_inline-style-prefixer@5.1.2@inline-style-prefixer/es/plugins/cursor.js

// CONCATENATED MODULE: ./node_modules/_inline-style-prefixer@5.1.2@inline-style-prefixer/es/plugins/filter.js

// CONCATENATED MODULE: ./node_modules/_inline-style-prefixer@5.1.2@inline-style-prefixer/es/plugins/flex.js

// CONCATENATED MODULE: ./node_modules/_inline-style-prefixer@5.1.2@inline-style-prefixer/es/plugins/flexboxOld.js

// CONCATENATED MODULE: ./node_modules/_inline-style-prefixer@5.1.2@inline-style-prefixer/es/plugins/gradient.js

// CONCATENATED MODULE: ./node_modules/_inline-style-prefixer@5.1.2@inline-style-prefixer/es/plugins/grid.js

// CONCATENATED MODULE: ./node_modules/_inline-style-prefixer@5.1.2@inline-style-prefixer/es/plugins/imageSet.js

// CONCATENATED MODULE: ./node_modules/_inline-style-prefixer@5.1.2@inline-style-prefixer/es/plugins/logical.js

// CONCATENATED MODULE: ./node_modules/_inline-style-prefixer@5.1.2@inline-style-prefixer/es/plugins/position.js

// CONCATENATED MODULE: ./node_modules/_inline-style-prefixer@5.1.2@inline-style-prefixer/es/plugins/sizing.js

// CONCATENATED MODULE: ./node_modules/_inline-style-prefixer@5.1.2@inline-style-prefixer/es/utils/addNewValuesOnly.js

// CONCATENATED MODULE: ./node_modules/_inline-style-prefixer@5.1.2@inline-style-prefixer/es/utils/capitalizeString.js

// CONCATENATED MODULE: ./node_modules/_inline-style-prefixer@5.1.2@inline-style-prefixer/es/utils/isObject.js

// CONCATENATED MODULE: ./node_modules/_inline-style-prefixer@5.1.2@inline-style-prefixer/es/utils/prefixProperty.js

// CONCATENATED MODULE: ./node_modules/_inline-style-prefixer@5.1.2@inline-style-prefixer/es/utils/prefixValue.js

// CONCATENATED MODULE: ./node_modules/d3-interpolate/src/cubehelix.js

// CONCATENATED MODULE: ./node_modules/d3-interpolate/src/transform/index.js

// CONCATENATED MODULE: ./node_modules/dingtalk-design-desktop/es/modal/AntdModal.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/create/check-overflow.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/create/from-array.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/create/from-object.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/create/from-string-and-array.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/create/from-string-and-format.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/create/valid.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/duration/abs.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/duration/add-subtract.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/duration/as.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/duration/clone.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/duration/constructor.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/duration/create.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/duration/get.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/duration/humanize.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/duration/iso-string.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/duration/prototype.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/locale/en.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/locale/lists.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/locale/locale.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/locale/locales.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/locale/pre-post-format.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/moment/add-subtract.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/moment/calendar.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/moment/clone.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/moment/compare.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/moment/creation-data.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/moment/diff.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/moment/format.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/moment/from.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/moment/locale.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/moment/moment.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/moment/prototype.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/moment/start-end-of.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/moment/to-type.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/moment/to.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/moment/valid.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/units/day-of-month.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/units/day-of-year.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/units/era.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/units/millisecond.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/units/minute.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/units/offset.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/units/quarter.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/units/second.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/units/timestamp.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/units/timezone.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/units/week-year.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/utils/abs-round.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/utils/is-moment-input.js

// CONCATENATED MODULE: ./node_modules/moment/src/moment.js

// CONCATENATED MODULE: ./src/components/AdaptiveLinearLayout.jsx

// CONCATENATED MODULE: ./src/components/BaseLayout.jsx

// CONCATENATED MODULE: ./src/components/CheckBox.jsx

// CONCATENATED MODULE: ./src/components/FastTextView.jsx

// CONCATENATED MODULE: ./src/components/FlexLayout.jsx

// CONCATENATED MODULE: ./src/components/FrameLayoutNG.jsx

// CONCATENATED MODULE: ./src/components/GridLayout.jsx

// CONCATENATED MODULE: ./src/components/HGifView.jsx

// CONCATENATED MODULE: ./src/components/HImageView.jsx

// CONCATENATED MODULE: ./src/components/HVideoView.jsx

// CONCATENATED MODULE: ./src/components/LinearLayout.jsx

// CONCATENATED MODULE: ./src/components/ListLayout.jsx

// CONCATENATED MODULE: ./src/components/ScrollerLayout.jsx

// CONCATENATED MODULE: ./src/components/Switch.jsx

// CONCATENATED MODULE: ./src/components/TImageView.jsx

// CONCATENATED MODULE: ./src/components/Template.jsx

// CONCATENATED MODULE: ./src/components/TextInput.jsx

// CONCATENATED MODULE: ./src/components/TextView.jsx

// CONCATENATED MODULE: ./src/components/View.jsx

// CONCATENATED MODULE: ./src/data-parser/custom.js

// CONCATENATED MODULE: ./src/event-handler.js

// CONCATENATED MODULE: ./src/framework-adaptor.js

// CONCATENATED MODULE: ./src/local-image.js

// CONCATENATED MODULE: ./src/parser.js

// CONCATENATED MODULE: ./src/utils/isSupportWebp.js

// CONCATENATED MODULE: ./src/verdorDetect.js

// CSP to forbid Function, and you're not willing to fix either of those

// CSS transform 目前尚未经过长时间验证，为了避免影响上层业务，默认关闭，上层按需开启

// Caching this value is nessecary if out == a

// Calculate the determinant

// Call delegate.iterator[context.method](context.arg) and handle the

// Caret ranges.

// Change every token that we find into the correct regex

// Change picker should sync back with text value

// Change the video source and re-load the video:

// Chart, View 类

// Check all the required fields are present

// Check for 24:00:00.000

// Check if leading zero is need for seconds

// Check if module is in cache

// Check if the date string matches the format. If it doesn't return null

// Check if the element belongs to a video element

// Check if the person has specified the same field twice. This will lead to confusing results.

// Check if there are any required fields. For instance, 12 hour time requires AM/PM specified

// Check if we need to show hours

// Check if your browser can play different types of video:

// Check to make sure the date field is within the allowed range. Javascript dates allows values

// Check to see if the format is actually a mask

// Children may contain false or null, so we should filter them

// Chrome passes an MediaQueryListEvent object, while other browsers pass MediaQueryList directly

// Clean up async

// Clean up cache since invalidate

// Clean up end date when start date is after end date

// Click on dots

// Click on the slides

// Clone a new list to avoid repeat trigger events

// Close should sync back with text value

// Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript

// Coerce inputs to strings.

// Coercion.

// Compare

// Compare the local RefCountSubscriber's connection Subscription to the

// Configuration Constants

// Construct the elements of the rotation matrix

// Container Types

// Context should be immutable for the render preformance

// Create a new module (and put it into the cache)

// Create pattern

// D    = d    // day of month

// DD   = dd   // day of month

// DDD  = D    // day of year

// DDDD = DDD  // day of year

// DING

// Date with time defaultValue

// Date.UTC remaps years 0-99 to 1900-1999

// Day

// Day of Week

// Decrease speed

// Decrease volume 5%

// Default to current date.

// Default to current week.

// Default to the beginning of the year.

// Define Generator.prototype.{next,throw,return} in terms of the

// Define the unified helper method that is used to implement .next,

// Delay by doing a setTimeout. setImmediate was tried instead, but in Firefox 7 it generated a

// Delay to focus to avoid input blur trigger expired selectedValues

// Delay to prevent 'range' focus transitions from firing resulting in incorrect out-of-focus events

// Deliberately forget the last sent value so that we don't

// Depends mode to implement different actions

// Deprecated! Use color.formatHex.

// Deprecated: update.extend, update.isEquals and update.newContext

// Deprecations

// Detect overlapping labels

// Dinamic.utils.log.warn(e);

// Disabled part

// Disabled range

// Dispatch the exception by looping back around to the

// Do not use RegExp for split operation as some browser do not support it (See: http://blog.stevenlevithan.com/archives/cross-browser-split)

// Don't allow invalid dates

// Don't get fooled by e.g. browserify environments.

// Don't let video end while scrubbing.

// Down (40) key press

// Down arrow

// Dummy constructor functions that we use as the .constructor and

// ESM COMPAT FLAG

// EXPORTS

// EXTERNAL MODULE: ./node_modules/@ali/calendar-biz/node_modules/@ali/pc-ding-sdk/es/lib/apiTransform/callbackToPromise.js

// EXTERNAL MODULE: ./node_modules/@ali/dd-image-assets/lib/index.js

// EXTERNAL MODULE: ./node_modules/@ali/desktop-awesome-component/node_modules/@ali/dingtalk-jsapi/platform/android.js

// EXTERNAL MODULE: ./node_modules/@ali/desktop-awesome-component/node_modules/@ali/dingtalk-jsapi/platform/ios.js

// EXTERNAL MODULE: ./node_modules/@ali/desktop-awesome-component/src/base/modelDef/interactiveCard.ts

// EXTERNAL MODULE: ./node_modules/@ali/desktop-awesome-component/src/component/common/avatar/userAvatar.tsx

// EXTERNAL MODULE: ./node_modules/@ali/desktop-awesome-component/src/component/common/imgReplacer/ImgFallbackReplacer.tsx

// EXTERNAL MODULE: ./node_modules/@ali/desktop-awesome-component/src/service/i18next/sdk.ts

// EXTERNAL MODULE: ./node_modules/@ali/desktop-awesome-component/src/service/log/BILog.ts

// EXTERNAL MODULE: ./node_modules/@ali/desktop-awesome-component/src/service/log/pinoLogger.ts

// EXTERNAL MODULE: ./node_modules/@ali/desktop-awesome-component/src/service/nativeSDK/interactiveCard.ts

// EXTERNAL MODULE: ./node_modules/@ali/desktop-awesome-component/src/service/nativeSDK/window.ts

// EXTERNAL MODULE: ./node_modules/@ali/desktop-awesome-component/src/service/util.ts

// EXTERNAL MODULE: ./node_modules/@ali/dinamic-views/build/index.js

// EXTERNAL MODULE: ./node_modules/@ali/dinamic/build/index.js

// EXTERNAL MODULE: ./node_modules/@ali/ding-mediaid/index.js

// EXTERNAL MODULE: ./node_modules/@ali/ding-watermark/index.js + 4 modules

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/node_modules/@ali/dingtalk-jsapi/core.js

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/node_modules/@ali/dingtalk-jsapi/entry/union.js

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/common/avatar/userAvatar.tsx

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/actionCard/index.tsx + 1 modules

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/birthday/index.styl

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/calendar/CalendarConfStatus.styl

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/calendar/index.styl

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/calendar/service/stroage.ts

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/dingDriveShare/iconfont.css

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/dingDriveShare/index.styl

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/inputCard/index.styl

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/questionCard/iconfont.js

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/questionCard/index.styl

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/rankingCard/index.styl

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/serviceWindow/iconfont.js

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/smartAssistant/index.styl

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/smartDoc/iconfont.css

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/smartDoc/sharingCardV2/index.styl

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/smartDoc/wikiSharingCard/style.styl

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/task/components/textLayoutTask/components/item.styl

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/task/components/textLayoutTask/index.styl

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/textCard/cardDataHook.ts

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/textCard/utils.ts

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-component/src/component/interactive/transferCard/index.styl

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-model/dist/featureKeys.js

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-model/dist/interactiveCard.js

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-service/dist/i18next/i18nText.js

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-service/dist/i18next/index.js

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-service/dist/interactiveCard/utLog.js + 1 modules

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-service/dist/log/pinoLogger.js

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-service/dist/nativeSDK/callbackToPromise.js

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-service/dist/nativeSDK/interactiveCard.js

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-service/dist/nativeSDK/window.js

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-service/dist/url/urlSchemeTransform.js + 1 modules

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-service/dist/util.js

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-desktop-fe-base-service/src/log/BILog.ts

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/Template.js + 5 modules

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/assets/iconfont.js

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/eventHandlers/openLink.js

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/eventHandlers/sendOutData.js

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/eventHandlers/utStat.js

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/parsers/filterList.js

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/parsers/mapAppend.js

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/parsers/serverTimestamp.js

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/runtime/main/IframePlugin.js

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/runtime/main/endPointPlugins/ddJSAPIPlugin.js

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/types.js

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/utils/color.js

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/utils/system.js

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-dx-utils/lib/views/DDEventView.js

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-dx-utils/node_modules/@ali/dd-rt-view/lib/index.js

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-dx-utils/node_modules/react-slick/lib/index.js

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-i18n/dist/commonjs/index.js

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-jsapi/api/internal/chat/getTopic.js

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-jsapi/core.js

// EXTERNAL MODULE: ./node_modules/@ali/dingtalk-jsapi/entry/mobile.js

// EXTERNAL MODULE: ./node_modules/@ali/interactionSdk/node_modules/immutability-helper/index.js

// EXTERNAL MODULE: ./node_modules/@ali/pc-ding-sdk/api/native/message/openImageViewerWithUrl.ts

// EXTERNAL MODULE: ./node_modules/@ali/pc-ding-sdk/api/rpc/index.ts

// EXTERNAL MODULE: ./node_modules/@ali/pc-ding-sdk/lib/sdk/index.ts

// EXTERNAL MODULE: ./node_modules/@ali/pc-ding-sdk/service/cspace/getImagePreviewRule.ts

// EXTERNAL MODULE: ./node_modules/@ali/pc-ding-sdk/service/cspace/getImagePreviewUrl.ts

// EXTERNAL MODULE: ./node_modules/@ali/pc-ding-sdk/service/textTransform/util.ts

// EXTERNAL MODULE: ./node_modules/@ali/pc-ding-sdk/types/conversation/atOpenIdType.ts

// EXTERNAL MODULE: ./node_modules/@ali/pc-ding-sdk/types/ding/index.ts

// EXTERNAL MODULE: ./node_modules/@ali/pc-ding-sdk/types/message/msgContentType.ts

// EXTERNAL MODULE: ./node_modules/@ali/text-transform/index.js

// EXTERNAL MODULE: ./node_modules/@antv/g2/lib/index.js

// EXTERNAL MODULE: ./node_modules/_@ali_dinamic-gesture@1.2.9@@ali/dinamic-gesture/dist/index.js

// EXTERNAL MODULE: ./node_modules/_css-in-js-utils@2.0.1@css-in-js-utils/lib/hyphenateProperty.js

// EXTERNAL MODULE: ./node_modules/_css-in-js-utils@2.0.1@css-in-js-utils/lib/isPrefixedValue.js

// EXTERNAL MODULE: ./node_modules/classnames/index.js

// EXTERNAL MODULE: ./node_modules/d3-color/src/color.js

// EXTERNAL MODULE: ./node_modules/d3-color/src/define.js

// EXTERNAL MODULE: ./node_modules/d3-interpolate/src/color.js

// EXTERNAL MODULE: ./node_modules/d3-interpolate/src/number.js

// EXTERNAL MODULE: ./node_modules/d3-interpolate/src/transform/decompose.js

// EXTERNAL MODULE: ./node_modules/dd-icons/lib/CloseOutlined.js

// EXTERNAL MODULE: ./node_modules/dd-icons/lib/index.js

// EXTERNAL MODULE: ./node_modules/dingtalk-design-desktop/es/modal/Modal.js + 1 modules

// EXTERNAL MODULE: ./node_modules/dingtalk-design-desktop/es/modal/locale.js

// EXTERNAL MODULE: ./node_modules/dingtalk-design-desktop/es/popover/index.js

// EXTERNAL MODULE: ./node_modules/dingtalk-design-desktop/es/popover/style/index.js

// EXTERNAL MODULE: ./node_modules/dingtalk-design-desktop/es/tooltip/index.js + 1 modules

// EXTERNAL MODULE: ./node_modules/dingtalk-design-desktop/node_modules/antd/lib/button/index.js

// EXTERNAL MODULE: ./node_modules/dingtalk-design-desktop/node_modules/antd/lib/message/index.js

// EXTERNAL MODULE: ./node_modules/intersection-observer/intersection-observer.js

// EXTERNAL MODULE: ./node_modules/jsuri/Uri.js

// EXTERNAL MODULE: ./node_modules/lodash/escapeRegExp.js

// EXTERNAL MODULE: ./node_modules/lodash/get.js

// EXTERNAL MODULE: ./node_modules/moment/dist/moment.js

// EXTERNAL MODULE: ./node_modules/moment/locale/zh-cn.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/create/date-from-array.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/create/local.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/create/parsing-flags.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/create/utc.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/duration/bubble.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/locale/calendar.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/locale/constructor.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/locale/formats.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/locale/relative.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/locale/set.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/moment/get-set.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/moment/now.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/parse/regex.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/parse/token.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/units/aliases.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/units/constants.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/units/day-of-week.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/units/hour.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/units/priorities.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/units/week-calendar-utils.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/units/week.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/units/year.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/utils/abs-floor.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/utils/deprecate.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/utils/extend.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/utils/hooks.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/utils/is-array.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/utils/is-calendar-spec.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/utils/is-function.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/utils/is-number.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/utils/is-object.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/utils/is-undefined.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/utils/zero-fill.js

// EXTERNAL MODULE: ./node_modules/moment/src/locale/zh-cn.js

// EXTERNAL MODULE: ./node_modules/moment/src/locale/zh-tw.js

// EXTERNAL MODULE: ./node_modules/rc-dialog/lib/index.js

// EXTERNAL MODULE: ./node_modules/react/index.js

// EXTERNAL MODULE: ./node_modules/rxjs/Rx.js

// EXTERNAL MODULE: ./node_modules/tslib/tslib.es6.js

// EXTERNAL MODULE: ./node_modules/video-react/lib/components/popup/PopupButton.js

// EXTERNAL MODULE: ./node_modules/video-react/lib/index.js

// EXTERNAL MODULE: ./src/utils/index.js

// EXTERNAL MODULE: external {"amd":"@ali/dinamic","commonjs":"@ali/dinamic","commonjs2":"@ali/dinamic","root":"Dinamic"}

// EXTERNAL MODULE: external {"amd":"react","commonjs":"react","commonjs2":"react","root":"React"}

// EXTERNAL MODULE: external {"amd":"react-dom","commonjs":"react-dom","commonjs2":"react-dom","root":"ReactDOM"}

// Each Hit object has a reference to its Yallist.Node.  This

// Either this is the first call, activity has stopped and we're at the

// Element 类

// Emit error when catch promise reject

// Encode string as utf8 into dataview at offset

// End

// Enter (13) key

// Era

// Eras

// Escape (27) key

// Exception thrown outside of any try block that could handle

// Execute the module function

// Extract anything that could conceivably be a part of a valid semver

// FIXME 子 view 有自己的数据的情况，该如何处理？

// FIXME: Mutable param should be forbidden in static lang.

// FIXME: hack 方法

// FORMATTING

// Facet 基类

// Fallback

// Fallback for IE8

// Fallback to fuzzy matching, this should always not reach match or need fire a issue

// Fill disabled unit

// Filter duplicates, use `name`, `color`, `value` and `title` property values as condition

// Final attempt, use Input Fallback

// Fired when the duration of

// Fired when the end of the media resource

// Fired when the player has

// Fired when the user agent

// Fired whenever the media begins waiting

// Fired whenever the media has been paused

// Fired whenever the media has been started

// Fired whenever the player

// Fired while the user agent

// Fires when an error occurred

// Fires when the browser has loaded

// Fires when the browser is

// Fires when the browser is trying to

// Fires when the current

// Fires when the current playlist is empty

// Fires when the loading of an audio/video is aborted

// Fires when the volume has been changed

// Fix onload() bug in IE9

// FixArray

// FixMap

// FixRaw

// Flag the module as loaded

// Floating Point

// For Firefox <= 38

// For IE 6–8

// For IE6+, Firefox >= 39, Chrome, Safari, Opera

// For Node.js before 0.9

// For each match, call the parser function for that date part

// For example:

// For non-IE10 modern browsers

// For older browsers

// For the 'subtitles-off' button, the first condition will never match

// For the native GeneratorFunction constructor, the best we can

// For this reason, we have to check it here at the original call site

// For web workers, where supported

// Four bytes of UTF-8

// From the spec: 'Wait until any invocations of this algorithm started before this one have completed.'

// Function to be called when pattern loads

// G

// G engine 管理相关

// G2 tooltip 组件基类

// G2 旧的拉线

// G2 组件基类

// GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效

// GenStateExecuting and loop back for another invocation.

// Geometry Label 基类

// Geometry 初始化之后，生成了 scale，然后进行调整 scale 配置

// Geometry 基类

// Get digit length of e

// Get the current time, if not already set.

// Getting start-of-today depends on whether we're local/utc/offset or not.

// Global click handler

// Go to end of video

// HACK(benlesh): TypeScript shennanigans

// HELPERS

// HOOKS

// Handle Fullscreen Change

// Handle invocations in a tight loop.

// Heatmap 没有 Element

// Helper for defining the .next, .throw, and .return methods of the

// Home

// Hour

// Hours

// Hyphen, followed by one or more dot-separated pre-release version

// I know

// I've extended the protocol to have two new types that were previously reserved.

// IE 8 has a broken Object.defineProperty that only works on DOM objects.

// IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays

// IE8 will treat undefined and null as object if it wasn't for

// IM_SERVICE_GROUP_V2 = 'service_group_v2',

// INTERACTIVE_CARD_DX_H5_SWITCH = 'interactive_card_dx_h5_switch_windows',

// INTERACTIVE_CARD_RENDER_OPTS_ROLLBACK = 'interactive_card_render_opts_rollback_frontend',

// INTERACTIVE_CARD_SYNC_ROLLBACK = 'interactive_card_sync_rollback_frontend',

// If 'ang2' == 90.0000000001, then `ratio` will evaluate to

// If 90 degree circular arc, use a constant

// If Width contains "auto", set "auto" in style

// If a rejected Promise was yielded, throw the rejection back

// If an action is rescheduled, we save allocations by mutating its state,

// If an exception is thrown from innerFn, we leave state ===

// If arrowOffsetLeft > arrowLeft, arrowMarginLeft = arrowOffsetLeft - arrowLeft

// If context.method was "throw" but the delegate handled the

// If delay exists and is greater than 0, or if the delay is null (the

// If delay is greater than 0, request as an async action.

// If enqueue has been called before, then we want to wait until

// If hours are showing, we may need to add a leading zero.

// If it is a pre-release it will bump up to the same patch version.

// If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.

// If panelWidth - arrowWidth - arrowMarginLeft < arrowLeft, panel should move to right side.

// If passed a locale key, it will set the locale for this

// If s is zero, return any axis (no rotation - axis does not matter)

// If set default view date, use it

// If source URL is not a data URL

// If the delegate iterator has a return method, give it a

// If the dispatched exception was caught by a catch block,

// If the event's persisted property is `true` the page is about

// If the event's persisted property is not `true` the page is

// If the input is a non-prerelease version, this acts the same as

// If the parser can't make sense of the value, return null

// If the scheduler queue is empty, cancel the requested animation frame and

// If the scheduler queue is empty, cancel the requested microtask and

// If the source and destination differ, copy the unchanged last row

// If the source and destination differ, copy the unchanged rows

// If this is a pre-major version, bump up to the same major version.

// If this is a pre-minor version, bump up to the same minor version.

// If this is already a prerelease, it will bump to the next version

// If this is not a pre-release version, it will increment the patch.

// If we are transposing ourselves we can skip a few steps but have to cache

// If we are transposing ourselves we can skip a few steps but have to cache some values

// Ignore the finally entry if control is not jumping to a

// Implementation of http://planning.cs.uiuc.edu/node198.html

// In "S" case we have to take into account, if the previous command is C/S.

// In "T" case we have to take into account, if the previous command is Q/T.

// In Autoplay the focus stays on clicked button even after transition

// In order to account for this case, RefCountSubscriber should only dispose

// In the freeze event, the next state is always frozen.

// Increase speed

// Increase volume 5%

// Infinity + Infinity = Infinity

// Infinity - Infinity = NaN

// Inline literal values back into the formatted value

// Inlined / shortened version of `kindOf` from https://github.com/jonschlinkert/kind-of

// Inlined version of the `symbol-observable` polyfill

// Installs an event handler on `global` for the `message` event: see

// Integers

// Interaction Action 基类

// Interaction, Action 基类

// InteractiveCardI_listInteractiveCards

// Interpolate pairs of numbers in a & b.

// Invoke the leading edge.

// It is impossible to translate months into days without knowing

// It is intended to keep the offset in sync with the timezone.

// It's unnecessary to set loading=false, for the Modal will be unmounted after close.

// Iterator interface in terms of a single ._invoke method.

// Its weird event positions make the player seek a wrong time.

// JSBridge(...)

// JSRuntime 中修改 localData 和 remoteData 是独立的 API 调用

// Keeping the time actually adds/subtracts (one hour)

// Kind of weird to have a default max of Infinity, but oh well.

// L 和 Z 都是直线， M 不进行拾取

// LOCALES

// Left and Down Arrows

// Left arrow

// Lenient ordinal parsing accepts just a number in addition to

// Let popup panel handle keyboard

// Linear 类型用户有可能设置了 min, max 范围所以需要根据数据最小区间计算 count

// Load entry module and return exports

// MERGE

// MOMENTS

// MSG_CLICK_INTERACTION_PC_V3 = 'msg_click_interaction_pc_rollback',

// Mac/Win 本地资源不添加 bizType，mac 为 /Users/name/... win 为 LocalHostName

// Make literals inactive by replacing them with @@@

// Marsaglia, George. Choosing a Point from the Surface of a

// Math.floor prevents floating point math errors here

// Math.min(Math.max(cosine, -1), 1) clamps the cosine between -1 and 1

// Meaning is "at least and backwards compatible with"

// Meaning is "reasonably at or greater than"

// MessagePack -> http://msgpack.sourceforge.net/

// Millisecond

// Minute

// Misc

// Moment prototype object

// Monday is the first day of the week.

// Month

// Must be writable: true, enumerable: false, configurable: true

// NOT having a prerelease is > having one

// NOTE: deprecated test name instead

// NOTE: there is actually a name collision here with Subscriber.next and Iterator.next

// NOTE: to support backwards compatability with 5.4.* and lower

// NaN if l=0 or l=1

// Negative Fixnum

// No op

// Normal disabled check

// Not necessarily the package version of this code.

// Not sure about the optimal order of these conditions:

// Note that "x.x" is a valid xRange identifer, meaning "any version"

// Note that simple async functions are implemented on top of

// Note that the only major, minor, patch, and pre-release sections of

// Note that these all use the loose form, because they'll be

// Note: ["return"] must be used for ES3 parsing compatibility.

// Note: this is the semver.org version of the spec that it implements

// Note：regionFilter/shape 特殊处理，regionFilter/shape 需要取到 Geometry 中的 Shape，需要在 view render 之后处理

// Object.prototype.hasOwnProperty.call

// Observable.range(0, 10)

// Occurs when accessing file resources or on Android 4.1 stock browser

// Offset

// On Firefox.24 Date#getTimezoneOffset returns a floating point.

// On iOS safari, a subsequent mouseup event will be fired after touchend.

// One byte of UTF-8

// Only invoke if we have `lastArgs` which means `func` has been

// Only the first item is strictly required.

// Open to reset view date

// Operate on current active panel

// Other non-TimePicker compare date

// Otherwise flush the scheduler starting with this action.

// Otherwise increment major.

// Otherwise increment minor.

// Otherwise the progress events will not fire.

// Otherwise, interpolate each of the numbers and rejoin the string.

// PARSING

// PC 端没有可以设置字号的地方，因此这里直接返回原大小

// PRIORITIES

// PRIORITY

// Panel ref

// Parses given path string into an array of arrays of path segments

// Pass mode into parent function

// Path 的每个 element 对应一组数据

// Perform axis-specific matrix multiplication

// Perform rotation-specific matrix multiplication

// Pick a moment m from moments so that m[fn](other) is true for all

// Pick the first defined of two or three arguments.

// Plugins that add properties should also add the key here (null value),

// Plus sign, followed by one or more period-separated build metadata

// Positive FixNum

// Pretend we’ve set an alarm, if we haven’t already.

// Prevent infinite loop in case updateOffset creates new moment

// Prevent names that look like filesystem paths, i.e contain '/' or '\'

// Prevent the 'blur' event from firing when there is currently a focused input

// Previous path command is inputted to processPath

// Protect against no duration and other division issues

// Push the action to the end of the scheduler queue.

// Quarter

// Quaternion math

// QuotaPicker only compare week

// RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3

// Rather than returning an object with a next method, we keep

// Raw Bytes

// Recycle the action if we've already scheduled one. All the production

// Regardless of whether this script is executing as a CommonJS module

// Register media query for full screen. Need to support resize from small to large

// Remove comments and folding whitespace and replace multiple-spaces with a single space

// Remove event listener

// Render additional column

// Reorder when in same date

// Reset all when has values when `viewDate` is `null` which means from open trigger

// Reset another one when not have value

// Reset any `maxWait` timer.

// Resetting context._sent for legacy support of Babel's

// Restart the timer.

// Resume execution at the desired location (see delegateYield).

// Return a moment from input, that is local/utc/zone equivalent to model.

// Return an iterator with no values.

// Return the exports of the module

// Return undefined so the action knows to request a new async id if it's rescheduled.

// Right arrow

// SEE: https://code.aone.alibaba-inc.com/dingding/nuvajs/codereview/3324234

// SEE: https://work.aone.alibaba-inc.com/issue/29105600

// SVG 中分组对应实体标签 <g>

// Safely stringify Object.create(null)

// Save current path command

// Scheduler Actions mutate their state/delay time and return themeselves.

// Second

// See https://github.com/facebook/regenerator/issues/274 for more details.

// See: https://github.com/ant-design/ant-design/issues/6183

// Set abbr so it will have a name (getters return

// Set crossOrigin for this image

// Set new time (tell video to seek to new time)

// Set view date will clean up default one

// Setting context._sent for legacy support of Babel's

// Setting the hour should keep the time, because the user explicitly

// Shift + <

// Shift + >

// Should additional logic to handle 12 hours

// Should always be an array

// Shows load progress

// Shows play progress

// Side effect imports

// Skip over if undefined or null

// So if we're currently running a task, we'll need to delay this invocation.

// Something like "2.*" or "1.2.x".

// Something like `1.2.3 - 1.2.4`

// Soonest alarm already set, or will be.

// Sorting makes sure if one month (or abbr) is a prefix of another

// Sorting makes sure if one month (or abbr) is a prefix of another it

// Sorting makes sure if one weekday (or abbr) is a prefix of another it

// Special case for u0 ≅ u1.

// Special logic: when in mobile miniApp runtime, only use dd.addDTChannelEventListener to listener

// Special optimization for only a single match.

// Sphere. Ann. Math. Statist. 43 (1972), no. 2, 645--646.

// Star ranges basically just allow anything at all.

// Start at the front of the list. Break early once

// Start the timer for the trailing edge.

// Strictly less than if we recomputed clockNow.

// Strings Bytes

// Subject extends Observable and Observable references Subject in it's

// Subject imported before Observable to bypass circular dependency issue since

// Sunday is the first day of the week.

// Support Observable-of-Observables

// Support Space (32) or Enter (13) key operation to fire a click event

// Support for single parameter, formats only overload to the calendar function

// Switch active panel

// Switch first active panel if operate without panel

// Sync innerValue with control mode

// Sync select value

// THIS IS NOT a full impl of Set, this is just the minimum

// TODO

// TODO 逍为 tooltip 的区域不应该是 canvas，而应该是整个 特别是在图比较小的时候

// TODO:  i18n

// TODO: 1 / 3 等默认值需要有一个全局的配置的地方

// TODO: Another silent failure?

// TODO: Calling random 3 times is probably not the fastest solution

// TODO: Figure out correct signature here: an Operator<Observable<T>, R>

// TODO: Find a better way to register and load all the locales in Node

// TODO: Move this to another part of the creation flow to prevent circular deps

// TODO: Remove "ordinalParse" fallback in next major release.

// TODO: Use [].sort instead?

// TODO: Use this.as('ms')?

// TODO: We need to take the current isoWeekYear, but that depends on

// TODO: Would be faster to return [0,0,0,0] immediately if dot == 0

// TODO: add sorting

// TODO: factor this out to be a proper Operator/Subscriber implementation and eliminate closures

// TODO: i18n

// TODO: listlayout 等情况更新数据情况节点重用 bug

// TODO: ployfill safari@9

// TODO: remove 'name' arg after deprecation is removed

// TODO: setClip 的传参既 shape 配置，也支持 shape 对象

// TODO: support CSS transform

// TODO: use decorator

// TODO: 以下逻辑应该是通用的，先灰度验证一段时间

// TODO: 使用包围盒的计算方法

// TODO: 先做隐藏处理 https://yuque.antfin.com/dinamicx/qzvpry/iwgxxt

// TODO: 双指的旋转缩放等操作需要在这里进行更多的判断处理,暂时先不写了

// TODO: 可优化

// TODO: 如果支持 quote 类型后，需要完善

// TODO: 此处判断有问题，当 drag 图形时，也会触发一次 dragleave 事件，因为此时 toShape 为 null，这不是所期望的

// Tab (9) key

// The ._invoke method unifies the implementations of the .next,

// The Facebook app's UIWebView identifies as both an iPhone and iPad, so

// The aspect ratio is either used directly or to calculate width and height.

// The context.catch method must only be called with a location

// The delegate iterator is finished, so forget it and continue with

// The following Regular Expressions can be used for tokenizing,

// The following code bubbles up values, see the tests for

// The module cache

// The require function

// The root entry object (effectively a try statement without a catch

// The test against `importScripts` prevents this implementation from being installed inside a web worker,

// These lifecycle events can all use the same listener to observe state

// These work just like raw16 and raw32 except they are node buffers instead of strings.

// This action has a similiar effect to ActionTypes.INIT.

// This array is used to make a Date, either with `new Date` or `Date.UTC`

// This environment has a native %IteratorPrototype%; use it instead

// This function accepts the same arguments as setImmediate, but

// This function allows you to set a threshold for relative time strings

// This function allows you to set the rounding function for relative time strings

// This function will be called whenever a moment is mutated.

// This function will load locale and then set the global locale.  If

// This is a polyfill for %IteratorPrototype% for environments that

// This is because there is no context-free conversion between hours and days

// This is done to register the method called with moment()

// This is used to make sure we don't warn about the same

// This makes ref not quick refresh in case user open another input with blur trigger

// This module should not be running in strict mode, so the above

// This probably shouldn't be used publicly.

// Three bytes of UTF-8.

// Three dot-separated numeric identifiers.

// Tilde ranges.

// Timezone

// To avoid creating an additional object, we just hang the .value

// Tooltip

// Trigger onChange only when value is validate

// Trim events that fall out of the time window.

// Try/catch helper to minimize deoptimizations. Returns a completion

// Two bytes of UTF-8

// TypeError if undefined or null

// UNUSED EXPORTS: BaseSmartAssistant

// UNUSED EXPORTS: Bottom, Item, Top

// UNUSED EXPORTS: CalendarCardActionEnum, IVideoConferenceType

// UNUSED EXPORTS: Confirm, RichText, SeeDetail, ThemeImage, TitleBar

// UNUSED EXPORTS: DataFlowType, DisplayNameModel, ENV, EmotionType, InteractionSdkManager, SortType, closePage, focusMessage, getTopicEmotions, previewMsg

// UNUSED EXPORTS: EActionBtnListLayout, ECardBtnType

// UNUSED EXPORTS: ECardBtnType, FeedMediaTypeEnum

// UNUSED EXPORTS: appendParamToUrl, isUrlHostHasPunycode, makeUrlOpenInApp, makeUrlOpenInWorkspace, transformUrlToPageLink, transformUrlToWorkspaceLink, tryTransformUrlToPageLink, urlSafeFilter, wrapperWithQrcode

// UNUSED EXPORTS: i18next

// Up (38) key

// Up and Right Arrows

// Up arrow

// Update existing child locale in-place to avoid memory-leaks

// Update state so the next render will show the fallback UI.

// Use any height that's been specifically set

// Use any width that's been specifically set

// Use low-level api, because this fn is low-level api.

// Use setTimeout to make sure panel DOM exists

// Using charAt should be more compatible.

// V,H,S,T 都在前面被转换成标准形式

// View基础样式

// VirtualActions are immutable, so they create and return a clone. In this

// WARNING: config object could override important members here.

// We can't validate dates in another timezone unfortunately. Do a basic check instead

// We know that we're about to delete this one, and also

// We need to deep clone this object.

// We want to compare the start of today, vs this.

// We will convert data format back to first format

// We'd normally use ~~inp for this, but unfortunately it also

// Week

// Week Year

// WeekPicker only compare week

// When a store is created, an "INIT" action is dispatched so that every

// When a yielded Promise is resolved, its final value becomes

// When click inside the picker & outside the picker's input elements

// When user typing disabledDate with keyboard and enter, this value will be empty

// When value is null and set showTime

// Whether cellDate is disabled in range

// Win 本地资源不添加 bizType: LocalHostName

// Within the body of any async function, `await x` is transformed to

// Wrap with class component to enable pass generic with instance method

// Year

// You can also log the error to an error reporting service

// You need to add the event listeners before calling open() on the request.

// Zero or more digits, followed by a letter or hyphen, and then zero or

// Zero out whatever was not defaulted, including time

// [ 'grade', 'class' ]

// [year, month, day , hour, minute, second, millisecond]

// ];

// __webpack_public_path__

// _changeInProgress == true case, then we have to adjust, because

// ```

// `hasOwn.call(value, "__await")` to determine if the yielded value is

// `pair([obs1, obs2, ...])`

// `race([obs1, obs2, ...])`

// `useLayoutEffect` here to avoid blink by duration is 0

// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test

// a few seconds to seconds

// a new timezone) makes sense. Adding/subtracting hours does not follow

// a now version of current config (take local/utc/offset flags, and

// a second time. In case it wants us to change the offset again

// a string precedes the next number in b

// abort if not all of them have values

// abort out of the list early if we hit a cycle

// about to be unloaded.

// accidentally pass it on to the delegate.

// action wasn't rescheduled) but was originally scheduled as an async

// action, then recycle as an async action.

// active 效果内置

// activeStyle

// actual modulo - handles negative numbers (for dates before 1970):

// add child elements to represent the individual buffered time ranges

// add if support for Symbol.iterator is present

// add lines with it's children

// add onError to <source />

// add remaining unparsed input length to the string

// adding 1 corrects loss of precision from parseFloat (#15100)

// adjust

// adjust group data

// adjust labelLines

// adjust labelShape

// adjust signs (if necessary)

// adjust y position of labels to avoid overlapping

// affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->

// all previous Promises have been resolved before calling invoke,

// already have an existing method we want to call, so there's no need

// also check for already prefixed transitions

// also ensures that the minifier will not anonymize the function.

// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty

// and .done properties off the next function object itself. This

// and also not between days and months (28-31 days per month)

// and further modified to allow for strings containing both week and day

// android 6.0兼容

// animateCfg 中的设置优先级更高

// animating state should be cleared while resizing, otherwise autoplay stops working

// any necessary setup in a predictable way. This predictability

// any of such methods are called

// any word (or two) characters or numbers including two/three word month in arabic.

// ap = number / 375 * ScreenWidth

// append

// apply sign while we're at it

// are any timers active?

// area

// area 区域上部分

// area 区域下部分

// area 基本标记的绘制需要获取上下两边的顶点

// argument that corresponds to a known catch block.

// array

// array 16

// array 32

// article "Quaternion Calculus and Fast Animation".

// as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)

// as a setter, sunday should belong to the previous week.

// as all plugin criteria are unique

// as derived from http://spencermortensen.com/articles/bezier-circle

// asNavForIndex check is to avoid recursive calls of slideHandler in waitForAnimate=false mode

// assignment should always work unless something is misconfigured. Just

// assume it's been called with `combineLatest([obs1, obs2, obs3], project)`

// assume it's been called with `forkJoin([obs1, obs2, obs3], resultSelector)`

// async functions in terms of async generators, it is especially

// at

// attr

// auto, 在 top-right

// autohide 不再考虑超出限制

// axis

// b is in (anchor - 1 month, anchor + 1 month)

// background shape 不进行状态样式设置

// backwards compat for now: also set the locale

// bbox calculation should ignore NaN for path attribute

// be a cache

// because group could not effect text-shape, should set text-shape position manually

// before/after InvokeApi

// begins looking for media data

// behaves the same as moment#day except

// below props are proxy props of G.event convenient

// benchmarks:

// benchmarks: https://jsperf.com/quaternion-transform-vec3-implementations-fixed

// bindings can only be objects, so reference equality check via indexOf is fine

// bits of functionality we need for this library.

// blur an element

// bottom

// bottom;

// box shape

// bridge init

// bring active slide to the beginning of visual area

// buffer 16

// buffer 32

// build metadata.

// by any plugin to prevent unnecessary mutations

// cache is a Map (or PseudoMap) that matches the keys to

// calc cosine

// calculate coefficients

// calculate final values

// calculate result * inverse quat

// call invoke immediately, without waiting on a callback to fire,

// callback: function () { this.month() + 1 }

// calling preventDefault (at touchend phase) will prevent the mouseup event

// can't just apply() to create a date:

// cancel it

// canvas size

// canvas 上的 mouseenter， mouseleave 事件，仅当进入或者移出 canvas 时触发

// canvas,

// capturing group, because it should not ever be used in version

// case 'mail-icon':

// case, we need to set the action reference to the most recent VirtualAction,

// catchSDKJSError 默认为 false，同时抛错到 window.onerror 触发 jserror 上报

// category field, create category legend

// center、width、height

// chance to clean up.

// changes (they call the `getState()` function to determine the next state).

// check for mismatching day of week

// check if an element has a class name

// check if close tag

// check if two components are the same type

// check if value changed

// check to see if it's completed now that you've gotten

// check: https://github.com/moment/moment/issues/2166

// checkConfig

// checked against either the strict or loose comparator form

// checks for null or undefined

// children may also contain string filled with spaces (in certain cases where we use jsx strings)

// clean the cache about current eventName

// clear _12h flag if hour is <= 12

// clear all component instance

// clear all option

// clear hover value style

// clear hover value when panel change

// click 事件

// clone 一份

// common in the npm registry.

// compare two arrays, return the number of differences

// comparison.

// compatibility

// compatible with FireFox browser, ref: https://github.com/antvis/g/issues/119

// compatible with fillStyle

// compatible with strokeStyle

// component

// component 里的缩略处理做得很糟糕，文字长度测算完全不准确

// condition 为空，则表示删除过滤条件

// condition 返回 true，则保留

// connection Subscription exists, *and* either:

// connection Subscription on the shared ConnectableObservable. In cases

// console

// console.info('logCount:::', content);

// console.info('logDetail:::', content);

// console.log(e, 'Video is not ready.')

// console.log(perfInfo, CACHE[prefix]);

// console.log(templateId, entries)

// console.log(token.value.trim())

// console.warn('Error catch ExclusiveBrandInit');

// console.warn('[Error][Fetch Emotion Fail]', e);

// const appleWebkitVersion = webkitVersionMap ? parseFloat(webkitVersionMap.pop()) : null;

// const bbox = child.cfg.canvasBBox;

// const constraint = [ // 范围

// const cos = Math.cos(Math.PI / 180 * angle);

// const cp1 = getPointAtSegLength.apply(0, p0.concat(p2, p4, p6, t));

// const cp2 = getPointAtSegLength.apply(0, p6.concat(p5, p3, p1, 0));

// const id = get(option, 'id');

// const lineHeight = get(this.geometry.theme, ['pieLabels', 'labelHeight'], 14);

// const ni = i + 1;

// const p0 = [x1, y1];

// const p1 = [x2, y2];

// const p2 = midPoint(p0, p1, t);

// const p3 = midPoint(p1, p2, t);

// const p4 = midPoint(p2, p3, t);

// const p5 = midPoint(p3, p4, t);

// const p6 = midPoint(p4, p5, t);

// const point = this.pointAt(0, 0, rx, ry, t); // 椭圆的切线同椭圆的中心不相关

// const preShape = this.get('clipShape');

// const sin = Math.sin(Math.PI / 180 * angle);

// const source = clone(beforeMappingData);

// const t = 0.5;

// const webkitVersionMap = (/AppleWebKit\/([\d.]+)/i).exec(USER_AGENT);

// const { identify, payload, success, fail } = params;

// const { width: cw, height: ch } = this.view.coordinateBBox;

// constant that refers to the ISO standard

// constant that refers to the RFC 2822 form

// context.dispatchException(context.arg) call above.

// context.method was "next", forget context.arg since it has been

// continue

// convert an array to a date.

// convert days to months

// convert javascript object to media query string

// converts floats to ints.

// coordinate

// coordinate 更新之后，center 也变化了

// create 3 group layers for views.

// create a fake namespace object

// create now).

// createPath(context) {

// created, so we won't end up with the child locale set.

// crosshair 的限制区域

// css style for tooltip

// css 和 g 的渐变起始角度不同

// current floor tag

// current iteration.

// current match in a

// current match in b

// currently HTML5 input type only supports 24-hour formats

// cursor: 当前布局需要展示可点击的小手

// d    = e    // day of week number

// data 为 listlayout 的外层data，options.data 才是当前 item 的 data

// date and time from ref 2822 format

// date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict

// date from iso format

// date from string and array of format strings

// date from string and format string

// day when working around DST, we need to store them separately

// days than the end month.

// days to month/week

// ddd  = eee  // day of week name

// dddd = eeee // day of week name

// debounced at least once.

// default to beginning of week

// default webview

// defaultCfg 需要判断 innerLabels & labels

// define __esModule on exports

// define getter function for harmony exports

// definition

// delegate iterator, or by modifying context.method and context.arg,

// deliberate, catching objects, arrays

// deprecated - rax支持后会更新为

// descriptionIcon theme

// description字段存在时，显示icon

// destroy all components

// destroy 后所有属性都拿不到，所以需要暂存一下

// detect overlapping and join boxes

// didn't increment anything

// difference in months

// dinamic:hImageUrl="$const{https://gw.alicdn.com/tfs/TB1RldEnY9YBuNjy0FgXXcxcXXa-195-72.png?getAvatar=avatar}

// disableEventBinding 模式，事件数据渲染在 dom 节点上

// dispose of the old one before overwriting

// do is to check its .name property.

// do nothing

// do nothing;

// dom

// don't natively support it.

// don't parse if it's not a known token

// don't run into trouble passing this.options around.

// don't set trackStyle hence don't break animation

// dont add already expired items

// double

// down to pre-release. premajor and prepatch work the same way.

// drag 完成后，有可能 draggingShape 已经移动到了当前位置，所以不能直接取当前图形

// drag 完成后，需要做一些清理工作

// dragover 不等同于 mouseover，而等同于 mousemove

// draw line width points

// drawTicks 包括 drawLabels 和 drawTickLines

// drop any prereleases that might already exist, since they are not

// during the loading of an audio/video

// each label will hide the next one because the next one always has lower rank.

// eevent.button === 0 表示鼠标左键事件，此处加上判断主要是为了避免右键鼠标会触发 mouseup 和 click 事件

// el maybe null for canvas

// el maybe null for group

// element 实例同 label 进行绑定

// elements

// else container 是 DOM

// emoji

// empty

// end API

// end Get 方法

// end for proxy events

// end 计算属性

// end-of-month calculations work correct when the start month has more

// end: abc…

// enqueue has not been called before, then it is important to

// ensure content type is set

// enter or exist full screen

// error callback

// error log

// eslint-disable-next-line @typescript-eslint/consistent-type-assertions

// eslint-disable-next-line @typescript-eslint/member-ordering

// eslint-disable-next-line @typescript-eslint/no-unused-vars

// eslint-disable-next-line @typescript-eslint/no-use-before-define

// eslint-disable-next-line consistent-return

// eslint-disable-next-line max-len

// eslint-disable-next-line no-cond-assign

// eslint-disable-next-line no-console

// eslint-disable-next-line no-constant-condition

// eslint-disable-next-line no-nested-ternary

// eslint-disable-next-line no-param-reassign

// eslint-disable-next-line no-useless-escape

// eslint-disable-next-line prefer-rest-params

// eslint-disable-next-line react/jsx-key

// eslint-disable-next-line require-atomic-updates

// event

// event.preventDefault();

// event.stopPropagation();

// evt 为空全部清除

// evt 存在，callback 为空，清除事件所有方法

// evt 存在，callback 存在，清除匹配的

// evt.preventDefault();

// examples of what that means.

// exception, let the outer generator proceed normally. If

// execute code before the first await. Since we implement simple

// execution continues to here before the RefCountOperator has a chance to

// execution once rather than once for the test and for the exec again below

// executor callback, and why async functions synchronously

// exist, destroy

// exist, update

// expand the filter region to fill in shadows

// export default hasNativeApi;

// export function

// export function getPointAtSegLength(p1x: number, p1y: number, c1x: number, c1y: number, c2x: number, c2y: number, p2x: number, p2y: number, t: number) {

// export function midPoint(a: number[], b: number[], t: number) {

// export { InteractiveCardDetailReqModel };

// export { subscribeOn } from './operators/subscribeOn';

// expose the module cache

// expose the modules object (__webpack_modules__)

// f

// false

// fill: 'red',

// filling grid

// filling x edges

// filling y edges

// filter data

// filter them by `disabled` property

// finished jumping to a new time

// first element is an array of moment objects.

// first-week day -- which january is always in the first week (4 for iso, 1 for other)

// fitXY或fitCenter或centerCrop

// fix raw

// fix status code when it is 0 (0 status is undocumented).

// fix: 原始数据中可能会包含 'xxx5%xxx' 这样的数据，需要判断下 https://github.com/antvis/f2/issues/590

// fix: 如果说开发者的 label content 是一个 group，此处的偏移无法对 整个 content group 生效；场景类似 饼图 spider label 是一个含 2 个 textShape 的 gorup

// fix: 需要兼容，否则调用方直接取值会报错

// fixArc adds also the right amount of A:s to pcoms1

// fixed https://github.com/antvis/G2Plot/issues/1243

// fixme 干啥要删掉

// flatten

// flex 子节点默认可缩小；当配置 width 有明确值时，设为不可缩小

// flex:row 时，保证 match_content 的子节点可以正常展示

// float

// focus an element

// focus root when switching fullscreen mode to avoid confusion #276

// for ISO strings we do not use the normal bubbling rules:

// for JSRuntime

// for lint

// for more information of where this math came from visit:

// force CORS if requested

// force scrolling by one if centerMode is on

// force showing one slide and scrolling by one if the fade mode is on

// format

// format date using native date object

// frame Vue

// from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html

// from milliseconds

// from the actual represented time. That is why we call updateOffset

// function isOutLimit(isVertical: boolean, label: IElement, limitLength: number) {

// function.sent implementation.

// futureTime, currentTime 改变需要重新渲染

// gc

// geometry 可见同时未关闭 tooltip

// geometry 更新之后，对应的 Coordinate 也会更新，为了获取到最新鲜的 Coordinate，故使用方法获取

// geometry 有可能会有多个 item，因为用户可以设置 geometry.tooltip('x*y*z')

// geometry 的 paint 阶段

// geometry 类型有: edge,heatmap,interval,line,path,point,polygon,schema,voilin等；理论上，interval 下，可以用 linear scale 作为分组字段

// get

// get all video properties

// get candle shape's key points

// get child

// get facet use level

// get fist level except root node

// get gradient color from opacity value

// get initialized state

// get media data, but data is not available

// get playback rate

// get redux state

// get tCache from cache

// get target if in shadow dom

// get the percent width of a time compared to the total end

// get totalLength from cache

// get width of an element

// get('maxWidth')

// getDefaultExport function for compatibility with non-harmony modules

// given an object and a list of keys, return new object with given keys

// given specifications/props for a slide, fetch all the classes that need to be applied to the slide

// go ahead and set it now.

// grid

// grid 动画以 axis 为准

// grid, flex-wrap 都有兼容性问题，这里自己计算换行

// grid，极坐标下的 x 轴网格线沿着半径方向绘制

// group 上的矩阵和属性也会应用到上下文上

// group.set('visible', visible) 不会触发自动刷新

// hack, 兼容 /examples/bar/basic/demo/radial-line.ts 动画

// hack: h5当前判断事件依赖 on开头，但是这个是一个个例

// hack: 兼容数组包裹的对象

// hack: 动态计算子 View 宽度，其实由于calc计算match_parent，此处已经不必要

// hack：获取 prop setter，兼容 < 3.0.0 模版版本，会尝试去掉前缀

// handle array values

// handle era

// handle invalid times

// handle meridiem

// handle milliseconds separately because of floating point math errors (issue #1867)

// handle nested objects

// handle user's style settings

// handles responsive breakpoints

// has a stable shape and so hopefully should be cheap to allocate.

// hasSeed! so don't use `seed !== undefined` checks!

// hash of items by key

// have been (and was previously) designed to take a closure to be

// height 为主

// helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize

// hide crosshairs

// hide it after 0.5s

// hide the tooltipMarkers

// high.u.bias

// hook

// hooks is actually the exported moment object

// horizontal line, eg. ['C', 100, 100, 100, 100, 200, 200]

// hour

// hours to day

// hover highlight by x，允许取消

// hover highlight by y，允许取消

// hover highlight，允许取消

// hover-color-*: 当前布局在 hover 态的背景颜色

// how frequently we check for clock skew

// how we interpret now (local, utc, fixed offset). So create

// html 类型不使用 G container

// html 组件需要指定 parent

// http://artsy.github.io/blog/2012/10/18/the-perils-of-ios-user-agent-sniffing/

// http://caniuse.com/#feat=css-filter-function

// http://caniuse.com/#feat=css-image-set

// http://projecteuclid.org/euclid.aoms/1177692644;

// http://schepers.cc/getting-to-the-point

// http://wiki.msgpack.org/display/MSGPACK/Format+specification

// http://www.w3.org/TR/SVG11/implnote.html#ArcImplementationNotes

// https://d3js.org/d3-ease/ v1.0.7 Copyright 2020 Mike Bostock

// https://d3js.org/d3-timer/ v1.0.10 Copyright 2019 Mike Bostock

// https://developer.mozilla.org/en-US/docs/Web/CSS/background-clip#Browser_compatibility

// https://developer.mozilla.org/en/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest

// https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Errors/Invalid_array_length

// https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday

// https://github.com/ant-design/ant-design/issues/23358

// https://github.com/moment/moment/issues/1423

// https://github.com/moment/moment/pull/1871

// https://github.com/openlayers/openlayers/issues/9291

// https://observablehq.com/@mbostock/lab-and-rgb

// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume

// https://stackoverflow.com/q/181348

// https://stackoverflow.com/questions/52532614/total-canvas-memory-use-exceeds-the-maximum-limit-safari-12

// https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS

// iFrame 下沿用宿主环境

// id 在 sequence 中的 index

// identifiers.

// identity scale 直接返回

// if (!alignTick && tickCount > 0) {

// if (!bbox) {

// if (angle >= 0 && angle <= Math.PI) {

// if (bbox) {

// if (canvas.get('localRefresh')) {

// if (imgPX > LARGE_IMG_PX) {

// if (order < this.min - 0.5 || order > this.max + 0.5) {

// if (preShape) {

// if (this.currentShape) {

// if (this.jsTracker.reportCustom) {

// if (this.props.onLazyLoad) {

// if a Content Security Policy forbids using Function, but in that case

// if any unit's disabled status is different, the units should be re-evaluted

// if autoFit, use the container size, to avoid the graph render twice.

// if created multiple C:s, their original seg is saved

// if it shows the `Off` menu, the first item is `Off`

// if next scroll doesn't have enough children, just reach till the end of original slides instead of shifting slidesToScroll children

// if position is not set, use top as default

// if slide needs to be precloned or postcloned

// if the facet has children , make it's column index in the middle of it's children

// if the first and only other argument besides the resultSelector is an array

// if the legend option is not false, means legend should be created.

// if the only argument is an array, it was most likely called with

// if the property is already prefixed

// if there is any input that was not parsed add a penalty for that format

// if variant is present as \uFE0F

// if we didn't find a month name, mark the date as invalid.

// if we didn't get a weekday name, mark the date as invalid

// if we have a mix of positive and negative values, bubble down first

// ignore invalid text track kind

// ignore order from parent

// image

// image 不计算 stroke

// image 使用 rect 的包围盒计算

// import '../../icon/style/';

// import '../../style/index';

// important to get this right, even though it requires care.

// in case of lazyLoad, whether or not we want to fetch the slide

// in case runtime.js accidentally runs in strict mode, in modern engines

// in every case, so we don't have to touch the arguments object. The

// includes scottish gaelic two word and hyphenated months

// index in s

// init

// init 完成后保证 min, max 包含 ticks 的范围

// injected easily by `bin/regenerator --include-runtime script.js`.

// inp may be undefined, so careful calling replace on it.

// input != null

// input组件在tap时需要阻止冒泡

// inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js

// instance.  Otherwise, it will return the locale configuration

// int 16

// int 32

// int 64

// int 8

// intentionally not getting media data

// internal storage for locale config files

// interpolate non-matching numbers

// interval > 1 时需要对 label 进行隐藏

// into the async generator function so it can be handled there.

// invariants

// invocations of the iterator.

// invoked without arguments, but in all the cases we care about we

// ios fit-content border-box padding 同时使用有问题

// is  a leaf without children

// is a timeout pending?

// is an animation frame pending?

// is downloading media data

// is jumping to a new time

// is reached (currentTime == duration)

// is why the Promise constructor synchronously invokes its

// isInview 的判定是一旦图形或者分组渲染就要计算是否在视图内，

// iso 8601 regex

// iso time formats and regexes

// it as the trailing edge, or we've hit the `maxWait` limit.

// it modifies, so that `> 1.2.3` ==> `>1.2.3`

// it separately.

// it's just for the key down event

// it, so set the completion value of the entire function to

// item, and the tail is the oldest.  the list contains the Hit

// item.selected

// iterator prototype chain incorrectly implement this, causing the Generator

// its own.

// j

// javascript handler for  css media query

// join all prefixes and create a new value

// js 极大值极小值问题，差值小于 1e-15 会导致计算出错

// js 超大值问题

// jump back x seconds

// jump forward x seconds

// jump to target if duration zero

// k

// k line shape

// keep Z command account for lineJoin

// keepLocalTime = true means only change the timezone, without

// keys multiple times.

// l

// label 在布局调整环节被删除了（doLayout）

// label 需要使用

// labelCfg priority: defaultCfg < cfg < callbackCfg

// labelLine: true

// lastEnd === curStart 刚开始就匹配到的情况，不需要 push 两次

// later.

// layout 的 mark 可能不存在，通过 didmount + layout 计算出 dom 渲染稳定的耗时

// layoutng 不做计算

// layout有序列表缓存

// layout边界限制

// left

// left center

// legend

// legend hover，element active

// lemon switch

// let dinamic view update

// let refresh = true;

// let tangentAngle = -1 * Math.atan((ry * ry * point.x) / (rx * rx * point.y));

// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.

// limitLength 为 0 或者 null 时不生效

// line 的判空在调用 drawLine 之前，不在这里判定

// linear field, create continuous legend

// linear 度量平移

// link

// list of items in order of use recency

// list 子节点更新引起 _id 变化，需要重新绑定事件

// live

// loading 过程中不绘制

// local weekday -- counting starts from beginning of week

// localData: actionData.localData ? JSON.stringify(actionData.localData) : '',

// locale key.

// location outside the try/catch block.

// locations where there is no enclosing try statement.

// logErrorToMyService(error, errorInfo);

// loop next frame

// lruList is a yallist where the head is the youngest

// mag &&.. short circuits if mag == 0

// mag is the product of the magnitudes of a and b

// make CEF happy

// make sure changes to properties don't modify parent config

// make sure the children can get the video property

// make sure we set the locale AFTER all child locales have been

// make the regex if we don't have it already

// make wkwebview happy

// makes sure that children is an array, even when there is only 1 child

// map 16

// map 32

// mark as not found to avoid repeating expensive file require call causing high CPU

// marker 使用 circle 的计算方案

// marker 需要左对齐，所以不能占用左侧的空间

// mask 图形

// mask 过小时返回为 null，不能是空数组，否则同未框选到混淆

// match tag name

// match[2] should be 'T' or space

// matching against regexp is expensive, do it on demand

// math

// maxWidth 限制加上

// maxwidth weight 优先级更高，避免同时设置 minWidth 冲突

// means they didn't provide anything or if they literally provided `undefined`

// meant to be awaited.

// media query for each breakpoint

// median

// mention

// merge default children

// merge the shortcuts from props

// meta data for the audio/video

// method, or a missing .next mehtod, always terminate the

// middle of the label

// middle: ab…yz

// min, max, values, ranges

// minifier not to mangle the names of these two functions.

// minute

// minutes to hour

// mix 默认的配置和用户配置

// mode & 1: value is a module id, require it

// mode & 2: merge all properties of value into the ns

// mode & 4: return value when already ns object

// mode & 8|1: behave like require

// moment IDML

// moment.duration._locale = moment._locale = data;

// moments should either be an array of moment objects or an array, whose

// more letters, digits, or hyphens.

// mouse 事件

// mouseenter 和 mouseover 同时触发

// mouseleave 和 mouseenter 都是成对存在的

// move Alpha to the end

// must be immutable so they can be inspected later.

// name 在原型上，说明可能是内置 API，存在 option 被覆盖的风险，不处理

// nan 也会导致异常

// native implementation is ~50x faster, use it when we can

// need to set `none` to avoid default value

// negative fixnum

// never changes.

// new Date(NaN).toJSON() === null

// new superclass(),//实例化父类作为子类的prototype

// nil

// no NaN

// no arguments are passed in, it will simply return the current global

// no direction information

// nocursor: 当前布局不需要展示可点击的小手

// none: xyz

// noop

// normalize IE9 bug (http://bugs.jquery.com/ticket/1450)

// not exist, create

// not support

// note labelHeight 可以控制 label 的行高

// note: all values past the year are optional and will default to the lowest possible value.

// nothing

// nothing to do

// null

// null means not found

// null 或者 undefined 时，宽度为 0

// number + (possibly) stuff coming from _dayOfMonthOrdinalParse.

// number interpolators

// numberify any prerelease numeric ids

// numbers in a & b match

// numbers less than this is considered as 0

// obj with keys in a consistent order.

// object

// object construction must be done this way.

// object to not be returned from this call. This ensures that doesn't happen.

// object 形式的配置方式：包括 处理方法 type， 和可选参数配置 cfg

// objects as the entries.

// objects.

// objects. For full spec compliance, you may wish to configure your

// of the polyfill.

// omit 掉一些属性，比如 container 等

// onTap 事件的话，会让 React 的所有 onClick 都失效。所以目前只能通过手动监听 click 事件来做处理

// only accept <source />, <track />,

// only additional allocation required is the completion record, which

// only allow non-integers for smallest unit

// only displays for shortcut so far

// only if player is active and player is ready

// only keep <source />, <track />, <MyComponent isVideoChild /> elements

// only modify the value if it was touched

// only split multi values, not cubic beziers

// opacity 效果可以叠加，子元素的 opacity 需要与父元素 opacity 相乘

// opted for using reduce here rather than Array#first with a regex.test call

// option 中已经找不到，那么就是删除的

// or a finally block) gives us a place to store values thrown from

// or not, return the runtime object so that we can declare the variable

// or some else or nothing

// or something else or nothing

// ordinal:  'Mo'

// org switch

// originElement.attrs = replaceAttrs; // 直接替换

// other

// other. This relies on the function fn to be transitive.

// otherwise inside Operator/Subscriber we won't know if `undefined`

// out of range, hidden

// outer generator.

// outside the allowed range. If the values don't match the value was invalid

// overflow, shift up

// overlapping

// override

// oversized objects fall out of cache automatically.

// p0 = [ux0, uy0, w0]

// p1 = [ux1, uy1, w1]

// p1a = p1p.p1p2/|p1p2| * (p1p 的单位向量)

// padded:   ['MM', 2]

// params/result deal

// parentNode maybe null for group

// parse out just the options we care about so we always get a consistent

// parseFloat NaNs numeric-cast false positives (null|true|false|"")

// parser和事件处理逻辑

// pass null for config to unupdate, useful for tests

// path 相关属性更改时，清理缓存

// path 路径图，无序，有可能存在相同 x 不同 y 的情况，需要通过 x y 来确定唯一 id

// path.push('Q', `${breakPoint.x}`, `${breakPoint.y}`, `${endPoint.x}`, `${endPoint.y}`);

// pause the video

// pauseType  is 'hovered'

// pc 模式只支持 click 事件，不要绑 touch 事件，一些 windows 触摸屏设备有 js error

// performance monitoring

// pick the locale from the array

// pie chart

// play the video

// playback position has changed

// player resize

// points 中的 x/y 和 transpose 无关

// polar y axis, by angle

// position 之类的生成多个字段的属性

// positive fixnum

// preminor will bump the version up to the next minor release, and immediately

// prepare shadow canvas context

// prepatch.

// preserve leap years using a full 400 year cycle, then reset

// prevent warning: setting state on unmounted component (server side rendering)

// previous animation is not finished

// private cacheRange = null;

// private translateCategory(dim, scale, normalPoint) {

// private updateInner() {

// probably something that needs to be benchmarked though

// problems, please detail your unique predicament in a GitHub issue.

// process customContent

// properly serialize body

// providing a seed of `undefined` *should* be valid and trigger

// push a cloned element of the desired slide

// pushing it to the end of the scheduler queue, and recycling the action.

// range 的最大值

// range 的最小值

// raw 16

// raw 32

// record like context.tryEntries[i].completion. This interface could

// records.includes(record) 不生效，应该是数据的引用被改了

// rect coordinate, by direction

// reducer returns their initial state. This effectively populates

// ref: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button

// ref: https://github.com/antvis/G2/issues/3109

// ref: https://github.com/antvis/g/issues/210

// regeneratorRuntime in the outer scope, which allows this module to be

// regexLG.test(color)

// regexPR.test(color)

// regexRG.test(color)

// register build-in components

// relative: https://github.com/antvis/g2/issues/1221

// relevant at this point.

// remove className

// removing box

// render region

// render text

// representation for dateAddRemove

// request its own.

// reset

// reset the cache

// resize the cache when the lengthCalculator changes.

// resize the cache when the max changes.

// result, either by returning a { value, done } result from the

// retry

// return (source: Observable<T>) => source.lift(new TimestampOperator(scheduler));

// return <br className="rich-text-element" type="newLine" style={{ lineHeight: lineHeight || undefined }} />;

// return HitUtil.isHitShape(this, refX, refY);

// return [cp1.x, cp1.y, cp2.x, cp2.y, x2, y2];

// return id ? id : option;

// return list of slides that need to be present

// return vec3.add(out, a, vec3.add(out, uv, uuv));

// returns a function that requires no arguments.

// returns locale data

// returns no of slides on the left of active slide

// returns no of slides on the right of active slide

// revert rotate

// rgb 颜色转换成数组

// right

// right or center will be put on the right side

// rows and slidesPerRow logic is handled here

// save current path command

// scale

// scale.init 的时候清除缓存

// scale初始化

// scan index for next number in b

// seconds to minute

// see sorting in computeMonthsParse

// seek video by time

// set

// set default cursor style for canvas

// set headers

// set innerHTML

// set playback rate

// set the scheduled flag to undefined so the next AnimationFrameAction will

// set the scheduled flag to undefined so the next AsapAction will schedule

// set up the events before open XHR

// setState({ loading: false });

// setting context.delegate to null, and returning the ContinueSentinel.

// shape 的一些操作方法

// shape('a', ['dot', 'dash']), color('a', ['red', 'yellow'])

// shape({ values: [ 'funnel' ] })

// shared: false 代表只显示当前拾取到的 shape 的数据，但是一个 view 会有多个 Geometry，所以有可能会拾取到多个 shape

// shift current slide to center of the frame

// shortest path

// should calculate by self for other cases, like Safari in ios

// shouldn't affect input elements if picker is active

// show enable 不计入正常的流程，其他情况则设置当前的 step

// show it

// signal that waiting has ended

// size color 区别的配置

// size 的选中前景色，对于 color，则直接使用 color 标识

// size(3)

// skip if already destroyed

// slider handlerStyle 手柄样式

// slider textStyle 字体标签样式

// so all subtitles will be turned off

// so that results are always delivered in the correct order. If

// so that the async generator function has the opportunity to do

// so we can properly clone ourselves.

// so we have to make sure that C is also C in original path

// solves curveArrays ending in Z

// some values

// somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere

// sort by percentage DESC

// sort by y ASC

// sort them by `order` property

// sort them in increasing order of their numerical value

// sorted by y, mutable

// source尾部补齐

// spacebar

// spec also contains listRef, trackRef

// spec also contains, trackRef and slideIndex

// specified which hour they want. So trying to maintain the same hour (in

// speed of video

// split out into 2 ifs for better coverage tracking

// src/cardData/component.tsx

// src/cardData/useInteractiveCardData.ts

// src/common/index.ts

// src/error/useErrorRecord.ts

// src/index.tsx

// src/lifecycle.ts

// standard case (slerp)

// start-of-first-week - start-of-year

// start: …xyz

// startIndex that needs to be present

// statics

// step 1: adjust items to spider

// step 1: 在虚拟 group 中创建 shapes

// step 1: 更新 shape 携带的信息

// step 2: reduce labels

// step 2: 使用虚拟 Group 重新绘制 shape，然后更新当前 shape

// step 2: 根据布局，调整 labels

// step 3.1: 绘制 labelLine

// step 3.2: 绘制 labelBackground

// step 3: antiCollision

// step 3: distribute position (x and y)

// step 3: 同步 shape 样式

// step 4: normalize y and adjust x

// step 4: 根据用户设置的偏移量调整 label

// step line

// step1. draw points with shadow

// step1: 移动至起点

// step1: 连接结束点

// step2. convert pixels

// step2: 绘制 curve line (起点 & 结合点与圆心的斜率不等时, 由于存在误差, 使用近似处理)

// step2: 连接拐点

// step3: 绘制圆弧 至 结束点

// step3: 连接至起点

// step4: applyTo labels and adjust labelLines

// step4: 连接结束点

// strict mode using a global Function call. This could conceivably fail

// strict-limit 方式

// string

// string constants and placeholders

// string preceding current number in b, if any

// stroke and fill

// style dependencies

// sub menu 优化以及图片menu

// subscribe state change

// subscribe to operation state change

// subscribe to player state change

// substring from most specific to least, but move to the next array item if it's a more specific variant than the current root

// subtraction forces infinities to NaN

// success callback

// supply the RefCountSubscriber with the shared connection Subscription.

// supports only 2.0-style add(1, 's') or add(duration)

// supports only 2.0-style subtract(1, 's') or subtract(duration)

// svg 中点小于 3 个时，不显示，也无法被拾取

// switch的颜色 依赖于 dSwitchOn 选中状态

// t * t * t 的性能大概是 Math.pow(t, 3) 的三倍

// test the regex

// text

// textShape 发生过调整

// the .value of the Promise<{value,done}> result for the

// the ConnectableObservable's shared connection Subscription if the

// the Date.UTC function remaps years 0-99 to 1900-1999

// the RefCountSubscriber's downstream Observers synchronously unsubscribe,

// the Video component

// the Yallist.Node object.

// the array should mirror the parameters below

// the cfg order should be ensure

// the current frame of the audio/video

// the date constructor remaps years 0-99 to 1900-1999

// the final result produced by the iterator.

// the html5 video

// the initial state tree.

// the item was created without expiration in a non aged cache

// the marker configure order should be ensure

// the media resource is first known or changed

// the method takes exactly one argument, since that happens to be true

// the new state tree with any relevant data from the old one.

// the next value.

// the only allowed military tz is Z

// the outer generator.

// the panel should still be opened

// the proper solution is to fix the accidental strict mode problem. If

// the reverse of daysToMonths

// the same as above

// the same procedures is done to p2

// the version string are capturing groups.  The build metadata is not a

// the width of the progress bar

// theme 原因同上

// then let that catch block handle the exception normally.

// there is no such time in the given timezone.

// these are actually numbers

// things simple and return the next function itself.

// this and fellow methods are wrapped in setTimeout

// this component dose not render anything

// this is not used

// this is primarily because using the reduce we only perform the regex

// this isn't actually relevant for versions, but keep it so that we

// this issue, we round to 1.0 when the ratio is close to 1.0.

// this rule.

// this._afterDraw();

// this._lineHeight 有值，则有传入 lineHeight 属性，否则不使用 dx 默认的 lineHeight，而是 chatBox 的默认行高

// this.clear(); // 不全部清理，会导致闪烁

// this.customLog(level, [`<== "${method}" ${status} result: `, payload]);

// this.invokeAPIConfigMapByMethod[method] = config;

// this.regionPath = null;

// this.set('cacheCanvasBBox', this.getCanvasBBox());

// this.set('imgSrc', img);

// this.set('isUpdating', false);

// this.translateCategory(dim, scale, normalPoint);

// this.tryUnSubscribeEvent(eventName);

// this.updateInner();

// this.zoomCategory(dim, scale, normalPoint);

// throw the exception.

// tick 关键点顺序

// tickLine 不同 tick 对齐时需要调整 point

// time 类型不做调整

// timeout, responseType and withCredentials can be set once the XHR is open

// timezone chunker

// title 和 items 需要清空, 否则 tooltip 内容会出现置空的情况

// to create a new function object. We can even get away with assuming

// to ensure that's the one we clone from next time.

// to enter the Back-Forward Cache, which is also in the frozen state.

// to identify iPhones, we need to exclude iPads.

// to make bridge script run first, to avoid conflict with DingTalkPC.js (old pc jsapi script)

// to make sure initialize setState has happened before

// to make sure the children can get video property

// to next slide. That only goes away by click somewhere outside

// todo 是否应该取 _origin？因为 y 可能取到的值不正确，比如先 symmetric，再 stack！

// todo 添加 labelrank

// todo 这个到底目的是什么？

// todo 重写

// toggle play

// token:    'M'

// toolong2 全量/增量

// tooltip contianer 可捕获事件

// tooltip dom 样式

// tooltip 渲染时，渲染 title，items 和 corosshairs

// tooltip 相关 dom 的 css 类名

// tooltip 限制的区域

// top

// totalMatrix 没有发生变化时，这里仅考虑两者都为 null 时

// touch 事件只绑定一次

// touch 模拟的 tap 事件延迟触发，解决和 blur 事件顺序错乱问题

// touchstart开始后，如果在500ms内没有发生了touchend则会触发长按事件，在事件过程中清除延时器。

// tpmt is two power minus ten times t scaled to [0,1]

// trailing edge, the system time has gone backwards and we're treating

// trendCfg 因为有数据数组，所以使用浅替换

// trigger by element

// triggerChange will also update selected values

// triggerChangeOld(selectedValue);

// trim blank

// trim double-quo

// true

// true 形式的配置：使用 overlap 默认的的处理方法进行处理

// truncate time

// try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each

// tslint:disable-next-line

// tslint:disable-next-line: forin

// tslint:disable-next-line:max-line-length

// tslint:disable-next-line:no-any latest TS seems to think xhr is "never" here.

// tslint:disable-next-line:no-console

// tslint:disable-next-line:no-string-literal

// tslint:disable-next-line:no-unused-expression

// type

// type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined

// type 用于部分选中复制的标识

// u.v/|u||v|，计算夹角的余弦值

// uint 16

// uint 32

// uint 64

// uint 8

// uint8

// undefined

// undefined otherwise).

// undefined 情况默认为 true

// unecessary split, and adds extra points to the bezier curve. To alleviate

// unified ._invoke helper method.

// unique

// unsigned int 64

// update initial matrix

// update operation

// update 的情况不再做 lazyrender

// updateLocale is called for creating a new locale

// update_to_view_v2 关闭开关

// url: JS_TRACKER_URL + '/log/' + type,

// use `getCanvasBBox`, because if Shape is been translated, `getBBox` is not the actual box position

// use named function instance to avoid closure.

// use named function to pass values in without closure

// useCSS is true by default so it can be undefined

// useCache for AppId

// used by swipeEvent. differentites between touch and swipe.

// used in Player

// useful for testing

// utils.log.warn(`send log - [${type}]`, msg, options);

// v1

// v1 不需要返回值，支持多个 handler

// validating, and parsing SemVer version strings.

// values 是无序的

// values.length === 1 的判断是以下情况，获取用户设置的图形属性值

// value为index

// var yIndex = maxLevel - i;

// variable specified by delegate.resultName (see delegateYield).

// variables for this instance.

// vec3.scale(uuv, uuv, 2);

// video height

// video width

// view 中使用 geometry 的时候，还需要清空它的容器，不然下一次 chart.geometry() 的时候，又创建了一个，导致泄露， #2799。

// view 生命周期 —— 渲染流程

// viewBBox 发生变化的时候进行更新

// void;

// we can explicitly access globalThis. In older engines we can escape

// we can stop processing if a value is returned

// we encounter an event that falls within the window.

// webpackBootstrap

// weekday -- low day numbers are considered next week

// weeks to month

// what the next least recently used key will be, so just

// when arrow config exists

// when not using server side rendering

// when parse error , continue next opration

// when pc

// when trying to find en-US, en_US, en-us for every format call

// where `root.postMessage` means something completely different and can't be used for this purpose.

// where the ConnectableObservable source synchronously emits values, and

// whether or not we can go next

// which may produce multiple C:s

// which months you are are talking about, so we have to store

// while (rowData.length < this._columnCount) {

// while retrieving files from application cache.

// whiteSpace: 'nowrap',

// width > 0 用于排除 weight=1; width=0 的用法

// width 为主

// width: 0,

// will add the minimum number of fields specified by the guide

// will match the longer piece.

// will receive the previous state. This effectively populates

// with parseZone.

// without creating circular dependencies.

// x axis

// x y 都是数组时，不做处理

// x 是数组

// x 的极值

// x 轴对应的值如果是非 cat 类型，在整圆的情况下坐标轴第一个和最后一个文本会重叠，默认只展示第一个文本

// x 轴对应的数据为线性以及时间类型，进行二分查找，性能更好

// x 轴对应的数据为非线性以及非时间类型的数据采用遍历查找

// x 轴方向扩展, y 轴方向占满全部

// x, y, xy

// x,y 是否生效

// x: 0,

// xField 中只有一个值，不需要做 dodge

// xValue 在 originData[xField] 的数值区间内

// xn--11b4c3d

// xn--1ck2e1b

// xn--1qqw23a

// xn--2scrj9c

// xn--30rr7y

// xn--3bst00m

// xn--3ds443g

// xn--3e0b707e

// xn--3hcrj9c

// xn--3oq18vl8pn36a

// xn--3pxu8k

// xn--42c2d9a

// xn--45br5cyl

// xn--45brj9c

// xn--45q11c

// xn--4gbrim

// xn--54b7fta0cc

// xn--55qw42g

// xn--55qx5d

// xn--5su34j936bgsg

// xn--5tzm5g

// xn--6frz82g

// xn--6qq986b3xl

// xn--80adxhks

// xn--80ao21a

// xn--80aqecdr1a

// xn--80asehdb

// xn--80aswg

// xn--8y0a063a

// xn--90a3ac

// xn--90ae

// xn--90ais

// xn--9dbq2a

// xn--9et52u

// xn--9krt00a

// xn--b4w605ferd

// xn--bck1b9a5dre4c

// xn--c1avg

// xn--c2br7g

// xn--cck2b3b

// xn--cg4bki

// xn--clchc0ea0b2g2a9gcd

// xn--czr694b

// xn--czrs0t

// xn--czru2d

// xn--d1acj3b

// xn--d1alf

// xn--e1a4c

// xn--eckvdtc9d

// xn--efvy88h

// xn--estv75g

// xn--fct429k

// xn--fhbei

// xn--fiq228c5hs

// xn--fiq64b

// xn--fiqs8s

// xn--fiqz9s

// xn--fjq720a

// xn--flw351e

// xn--fpcrj9c3d

// xn--fzc2c9e2c

// xn--fzys8d69uvgm

// xn--g2xx48c

// xn--gckr3f0f

// xn--gecrj9c

// xn--gk3at1e

// xn--h2breg3eve

// xn--h2brj9c

// xn--h2brj9c8c

// xn--hxt814e

// xn--i1b6b1a6a2e

// xn--imr513n

// xn--io0a7i

// xn--j1aef

// xn--j1amh

// xn--j6w193g

// xn--jlq61u9w7b

// xn--jvr189m

// xn--kcrx77d1x4a

// xn--kprw13d

// xn--kpry57d

// xn--kpu716f

// xn--kput3i

// xn--l1acc

// xn--lgbbat1ad8j

// xn--mgb9awbf

// xn--mgba3a3ejt

// xn--mgba3a4f16a

// xn--mgba7c0bbn0a

// xn--mgbaakc7dvf

// xn--mgbaam7a8h

// xn--mgbab2bd

// xn--mgbai9azgqp6j

// xn--mgbayh7gpa

// xn--mgbb9fbpob

// xn--mgbbh1a

// xn--mgbbh1a71e

// xn--mgbc0a9azcg

// xn--mgbca7dzdo

// xn--mgberp4a5d4ar

// xn--mgbgu82a

// xn--mgbi4ecexp

// xn--mgbpl2fh

// xn--mgbt3dhd

// xn--mgbtx2b

// xn--mgbx4cd0ab

// xn--mix891f

// xn--mk1bu44c

// xn--mxtq1m

// xn--ngbc5azd

// xn--ngbe9e0a

// xn--ngbrx

// xn--node

// xn--nqv7f

// xn--nqv7fs00ema

// xn--nyqy26a

// xn--o3cw4h

// xn--ogbpf8fl

// xn--otu796d

// xn--p1acf

// xn--p1ai

// xn--pbt977c

// xn--pgbs0dh

// xn--pssy2u

// xn--q9jyb4c

// xn--qcka1pmc

// xn--qxam

// xn--rhqv96g

// xn--rovu88b

// xn--rvc1e0am3e

// xn--s9brj9c

// xn--ses554g

// xn--t60b56a

// xn--tckwe

// xn--tiq49xqyj

// xn--unup4y

// xn--vermgensberater-ctb

// xn--vermgensberatung-pwb

// xn--vhquv

// xn--vuq861b

// xn--w4r85el8fhu5dnra

// xn--w4rs40l

// xn--wgbh1c

// xn--wgbl6a

// xn--xhq521b

// xn--xkc2al3hye2a

// xn--xkc2dl3a5ee0h

// xn--y9a3aq

// xn--yfro4i67o

// xn--ygbi2ammx

// xn--zfr164b

// x轴方向的每个分面的偏移

// y axes

// y 不相等，所以直接转换

// y 是数组

// y 有可能是数组，对应原始数据中 y 为一个区间数据，如 [19, 30]，为了统一也将 x 转换为数组

// y 的极值

// y 轴方向扩展, x 轴方向占满全部

// y 轴过滤仅取第一个 yScale

// yield* loop.

// you've misconfigured your bundler to force strict mode and applied a

// { player, operation }

// |      |

// |w| <= 1/2

// |w| > 1/2, may as well choose w > 1/2

// }

// ① 创建样式表 (默认创建 light 的样式表)

// ② 创建主题

// 一些 get 方法

// 一些工具方法导出

// 一旦 remove，则无法在 element 上拿到包围盒

// 一旦执行，则缓存标记为，一直保持到跳出改环节

// 一维的情况下获取高度和默认size

// 一般不会走到这个逻辑，dom.style 获取的是标签 style 属性，也不准确

// 一般发生在设置了 localRefresh ,在没有图形发生变化的情况下，用户调用了 draw

// 三层

// 三层 group 中的 shape 事件都会通过 G 冒泡上来的

// 三态函数，判断两个double在eps精度下的大小关系

// 三次贝塞尔曲线有两个控制点

// 三角形

// 上一个控制点必须要在上一个点和这一个点之间

// 上一层级的 subdata

// 上一段结束位置, 即 C 的起始点

// 上层分组设置 matrix

// 上方或者下方超出

// 上边

// 下一个控制点必须在这个点和下一个点之间

// 下方,从左到右、上方,从右到做

// 下边

// 下面计算得到的 k = 0

// 不但应用到自己身上还要应用于子元素

// 不做任何处理

// 不允许 fill

// 不允许多选

// 不允许捕获事件

// 不允许被拾取

// 不允许被拾取，则返回 null

// 不再考虑在 shape 的 parent 内的情况

// 不再视窗内 cacheCanvasBBox 设置成 null，会提升局部渲染的性能，

// 不再调用 element.remove() 方法，会出现循环调用

// 不创建

// 不同的 Shape 各自实现

// 不在同一年

// 不在处理中的

// 不在数据范围内

// 不存在 filters，则不需要进行数据过滤

// 不存在 transpose，为其自动设置一个 action

// 不存在则 create

// 不存在则创建

// 不存在这个 syncKey，则创建一个空数组

// 不存在，则创建

// 不存在，则是所有需要被销毁的组件

// 不存在，创建

// 不支持 touch 的设备，tap 替换为 click

// 不是所有的 component 都能进行 active，目前仅支持分类 scale 对应的组件

// 不是最后一个

// 不是高频操作直接使用 set

// 不显示 crosshair，都移除，没有设定 region 也都移除掉

// 不用缓存

// 不直接使用 href 属性，避免浏览器直接跳转了

// 不相交，则直接返回 null

// 不知道 🤷‍♀️ 只认 unchecked status

// 不知道为什么，需要把这个 export，不然 ts 会报类型错误

// 不继续向下传递矩阵

// 不能 display none 删除节点，否则会影响 flex 节点布局

// 不能用 linebreak, iOS 使用部分字体时会导致异常截断

// 不能直接修改 tag.name，会影响模版本地缓存

// 不要点击在 mask 上重新开始

// 不足 1 的取 1，超出 1 的取整

// 不过由于android < 4.4仍不支持calc，所以暂时保留

// 不进行 transpose 时，用户又没有设置这个参数时，默认从上向下

// 不重叠的坐标文本间距个数

// 不限制位置

// 与 Crosshairs 组件的 type 冲突故删除

// 两个多边形都需要判定

// 两根竖线

// 两点以内直接绘制成路径

// 为 shape 设置剪切区域

// 为了使固定的 clip 生效，clip 设置在 itemContainerGroup 上，itemGroup 需要在翻页时会设置 matrix

// 为了保证划出 canvas containerDom 时还没触发 mouseup

// 为了兼容旧版本，增加判断win.nuva.isReady === undefined

// 为了加速 path 的绘制、拾取和计算，这个地方可以缓存很多东西

// 为了加速绘制，可以提供参数的缓存，各个图形自己缓存

// 为了解决 js 运算的精度问题

// 为自动换行特殊处理的逻辑

// 之前分组之后的数据，然后有合并回去（和分组前可以理解成是一样的）

// 之后更新属性需要计算动画已经执行的时长，如果暂停了，就把初始时间调后

// 之所以不拆成 isInStroke 和 isInPath 在于两者存在一些共同的计算

// 也可以 通过 get('center') 类似的方式逐个获取

// 也可以使用指定点的切线方程计算，成本有些高

// 也就是说 xs 里面的值都相同，比如：[1, 1, 1, 1]

// 事件传入参数被注解 @eventChainEventData 读取，见 https://yuque.antfin-inc.com/dinamicx/document/oaxwpl

// 事件冒泡, enter 和 leave 需要对 fromShape 和 toShape 进行判同

// 事件冒泡停止，不能妨碍委托事件

// 事件名称可能在委托过程中被修改，因此事件冒泡时需要重新设置事件名称

// 事件在 view 嵌套中冒泡（暂不提供阻止冒泡的机制）

// 事件委托机制

// 事件委托的形式 name:type

// 事件的x,y应该是基于画布左上角的，与canvas的matrix无关

// 事件绑定

// 事件链协议：https://yuque.antfin.com/dinamicx/swleln/tyf8um#gdzqM

// 二次贝塞尔曲线只有一个控制点

// 二次贝塞尔曲线的终点为 currentPoint

// 交换

// 仅 linearlayout flexlayout 子节点支持 weight

// 仅仅使用包围盒检测来进行拾取

// 仅保留被整除的 label

// 仅在这个场景下判定

// 仅填充

// 仅填充时带有圆角的矩形直接通过图形拾取

// 仅当只有一个 M，没有 Z 时会发生这种情况

// 仅支持单个状态量的元素，只能由 element 触发

// 仅显示 x 的 crosshair，y 移除

// 仅显示 y 的 crosshair，x 移除

// 仅考虑 mask 导致的过滤

// 从 view 中移除分面 view

// 从主题中获取对应状态量的样式

// 从当前 group 开始触发 delegation

// 从矩阵获取旋转的角度

// 从第二个栅格线开始绘制

// 以 x, y 为中心的，上一个控制点的对称点

// 以 x,y 为中心，取上一个控制点，

// 以后可以改成纯数学的近似拾取，将圆弧切割成多边形

// 优先执行plugin

// 优先走缓存，如果没有缓存，则重新解析ast

// 会话中ding消息存在选中文字时点击不跳详情页

// 会附加 element 的 name

// 但对于 https://github.com/antvis/g/issues/422 的场景，全局渲染的模式下也需要记录更新的元素队列

// 但是始终要标记为 hasChanged，便于后面进行局部渲染

// 但是目前 10W 图形的拾取在 2-5ms 内，这个优化意义不大，可以后期观察再看

// 位移量比较纵横滑动

// 位置计算

// 低于 4.4 的安卓不支持 initCustomEvent 无法补充信息到自定义事件

// 作为其静态属性

// 你可以自定义降级后的 UI 并渲染

// 使用 box-shadow 去模拟无宽度的边框，主要是为了三端统一（设置 border-box 也可以，兼容以前的）

// 使用 shape stroke 值

// 使用一个循环，计算min,max,secondMin

// 使用使用原始度量作为缩放标准

// 使用分面数据 创建分面 view

// 使用图形连接

// 使用方法构造 key，如果不存在 resolver，则直接取第一个参数作为 key

// 使用椭圆的公式： x*x/rx*rx + y*y/ry*ry = 1;

// 使用用户返回的值处理

// 使用虚拟 group 重新绘制 shape，然后对这个 shape 应用状态样式后，更新当前 shape。

// 使用迭代法取贝塞尔曲线的长度

// 使用迭代法取贝塞尔曲线的长度，二阶和三阶分开写，更清晰和便于调试

// 依赖 dinamic 升级，老版本没有 childrenLen 字段，额外判断 undefined

// 保存上下文，设置 clip

// 保存监听的listener以及option

// 保持 scales 引用不要变化

// 保持和 grid 相同的数据结构

// 保留第一个或者最后一个

// 保证执行前的 context.event 是正确的

// 保证检测时的 event

// 修复了 mouseleave 的 bug 后不再出现这种情况

// 修改本地数据

// 修改远程数据

// 倒三角形

// 倒计时结束

// 值为 null的时候，忽视

// 值应该在 0 ~ 1 范围内

// 假如椭圆半径为0则返回圆心

// 偏导数 x

// 偏导数 y

// 偏移之后，间距

// 做一下坐标系转化

// 做为 LinearLayout 在 PC 端的一个扩展字段，是一个字符串，用空格来隔开每个配置项。目前的配置项有：

// 兄弟节点

// 先从 view 本身查找

// 先从数组中移除，然后放到合适的位置

// 先全部清空，然后 render

// 先创建 gridContainer，将 grid 放到 axis 底层

// 先判断 hasChanged，因为它的优先级判断应该高于 refresh

// 先将 attrs 应用到上下文中，再设置 clip。因为 clip 应该被当前元素的 matrix 所影响

// 先排序

// 先更新 maxSize，更新 layoutBBox，以便计算正确的 x y

// 先检查是否需要合并属性。若有相同的动画，将该属性从前一个动画中删除,直接用后一个动画中

// 先清理事件

// 先看是否有 regionFilter/shape 要更新

// 先结束当前 container 动画

// 先触发 mouseup 再触发 click

// 先触发panstart手势，然后根据移动的方向选择性触发horizontalpanstart或verticalpanstart手势

// 先进入画布

// 先进行排序，便于 tooltip 查找

// 先遍历需要刷新的元素，将这些元素的父元素也设置 refresh

// 先销毁 action 再清空，一边遍历，一边删除，所以数组需要更新引用

// 先销毁掉之前的分面

// 入参是 [24, 24] 这类时

// 入参是 object 结构，数据点

// 入群安全提升

// 入群申请

// 全局自定义图例

// 全局设置一个唯一离屏的 ctx，用于计算 isPointInPath

// 全部 setZIndex 之后，再执行 sort

// 关闭状态，但是状态未设置过

// 关闭默认的 X 轴数据排序

// 其他 Geometry 类型按照 x 字段数据进行查找

// 其他 element 状态不变

// 其他一些提供给子类使用的方法

// 其他如果不是 active，则设置成 unactive

// 其他情况不裁剪，原样返回

// 其他情况，只去四个

// 其他组

// 其他组件使用外层的统一 render 逻辑

// 其他组件布局

// 其实不用做任何事情，因为 facet 最终生成的 View 和 Geometry 都在父 view 的更新中处理了

// 具体的指定阶段是否允许执行

// 兼容 3.0 中的写法，onFrame 和 repeat 可在 toAttrs 中设置

// 兼容 r 和 radius 两种写法，推荐使用 r

// 兼容 switch 组件不规范的属性名定义

// 兼容Theme配置

// 兼容rax下 children非数组的场景

// 兼容theme配置

// 兼容不支持 overflow-wrap: anywhere 属性的 webkit 内核

// 兼容带透明度的 8 位 hex 颜色

// 兼容支持 0.5px 细线

// 兼容方法和 字符串的写法

// 兼容移动端获取数据

// 兼容老版本名称

// 兼容老版本的接口

// 兼容详情带 content 的结构

// 兼容逻辑

// 兼容颜色 token

// 内容发生变化了更新 tooltip

// 内容未发生变化，则更新位置

// 内层裁切，外层需要限定超出之后隐藏

// 内置 symbol 的 path 都是绝对路径，直接绘制即可，不需要对 path 进行特殊处理

// 内部产生的属性

// 内部小圆距离外部有 1px 的距离，此处单独处理一下

// 内部虚拟 state

// 再触发离开画布事件

// 减小, 同时未出边界

// 出现溢出直接应用 overflowLabel 样式

// 出现背景框

// 分别更新 label 和 tickLine

// 分别获取 4 个关键点

// 分割贝塞尔曲线

// 分多种输入情况

// 分段数量

// 分类 scale，调整 range 范围

// 分类或者 identity 的 scale 才进行处理

// 分类数据允许 0.5 范围内调整

// 分组字段的 scale 使用未过滤的数据创建

// 分组柱状图

// 划分点

// 列表类的组件能够触发

// 则将连续空格转换为单个空格

// 则用 appName=true/userName=true/phone=true 兜底

// 创建

// 创建 coordinate controller

// 创建 geometry 实例

// 创建 interactions 实例

// 创建 mask

// 创建 view 实例

// 创建图形属性

// 创建图形属性相关的配置项

// 创建容器

// 创建控件索引表

// 创建新的分面

// 创建滑块的 shape

// 创建滑道的 shape

// 创建离屏的 group ,不添加在 canvas 中

// 创建虚拟分组

// 初始化 theme

// 初始化 tick

// 初始化上下文，并初始化 action

// 初始化为空

// 初始化动画

// 初始化图形、组件位置，计算 padding

// 初始化图形的之前，先创建 / 更新 scales

// 初始化坐标系大小，保证 padding 计算正确

// 初始化容器

// 初始化时组合 font，同时判断 text 是否换行

// 初始化样式

// 初始化模版下载

// 初始化组件 controller

// 初始化计算frame

// 初始状态下的 view 数据过滤

// 初始的 coordinate bbox 大小

// 初次创建

// 初次渲染和更新渲染的逻辑有所不同: 初次渲染值为空时，需要设置为 none，否则就会是黑色，而更新渲染则不需要

// 删除 scale 实例

// 删除图形元素

// 删除空数组值

// 判定包围盒是否相交，比判定点是否在多边形内要快的多，可以筛选掉大多数情况

// 判定点是否在多边形内部，一旦有一个点在另一个多边形内，则返回

// 判断两者是否相等，主要是进行 null 的判定

// 判断投影轴上的投影是否存在重叠，若检测到存在间隙则立刻退出判断，消除不必要的运算。

// 判断是否小于0

// 判断是否影响 siblings

// 判断点P在多边形内-射线法

// 判断点Q是否在p1和p2的线段上

// 利用 HOC 给原组件增加水印，也方便后续对卡片渲染做扩展而不入侵卡片代码

// 利用 scale 来获取 y 上的映射

// 别名

// 刷新图形元素(Shape 或者 Group)

// 刻度线的数量大于 2 时，才绘制子刻度

// 前一个判断min(p1[1],p2[1])<P.y<=max(p1[1],p2[1])

// 前端的复制粘贴 API 只在 mac 系统上生效，  Windows 并不生效。所以 Windows 通过

// 前置判断缓存

// 前置钩子

// 前面已经匹配到的图形元素，用于

// 前面已经有更新的图形或者插入的图形，则在这个图形后面插入

// 加一个 cache，提升性能

// 加上分页器并重新排序 items

// 加载中占位图

// 加载完成后绘制

// 动态 frame

// 动态生成执行的方法，执行对应 action 的名称

// 动态计算frame宽高

// 动态计算子节点位置

// 动画停止时的回调

// 动画已执行完

// 动画暂停时的回调

// 动画未执行完

// 包含包围盒的 bbox

// 包含有基本事件、组合事件

// 包围盒计算依赖于绘制，如果还没有生成对应的 Dom 元素，则包围盒的长宽均为 0

// 匹配事件回调函数名称和参数

// 匹配带前缀的属性，暂时仅去掉 “d” 前缀

// 匹配所有数组下标

// 单个 item 设置状态

// 单个元素设置和取消 highlight

// 单条 path

// 单聊控制

// 即 y 值为空的场景

// 即已经重绘完、但 hasChanged 标记没有清除的元素，需要统一清除掉。主要是 Group 存在问题，具体原因待排查

// 即：需要走进 !isEqual(lastTitle, title) || !isEqual(lastItems, items) 的逻辑，更新 tooltip 的内容

// 原始数据

// 去掉 d开头前缀

// 去重

// 去重、去除 Nil 值

// 去除引用

// 去除引用关系

// 参数

// 参考 https://github.com/dankogai/js-base64/blob/master/base64.js#L80

// 发生冲突，则隐藏前一个保留后一个

// 发生过 stack 调整，yScale 的 max 被调整过，this.updateStackRange()

// 发送事件

// 发送全局事件，通知页面已经跳转

// 取 rail 的高度，作为高度

// 取出原生事件

// 受 mask 影响

// 变成 interval 的倍数

// 另外和 options 进行对比，删除

// 只上报一次

// 只有 element 是 Group 或者 Canvas 的时候，才需要判断 isParent

// 只有g.alicdn支持combo，ossgw不支持

// 只有view才进行比较，layout无差别更新

// 只有一个child时，children是对象而非数组

// 只有一个分类时,防止计算出现 [0.5,0.5] 的状态

// 只有一个维度

// 只有一维的情况下，同时调整 y，赋予默认值

// 只有一项数据时取当前值

// 只有存在于 canvas 上时生效

// 只有存在这个 scale 时才生效

// 只有当前是 start 时，才允许 processing

// 只有挂载到画布下，才对元素进行实际渲染

// 只有根节点才处理

// 只有根节点渲染完成后执行一次重计算

// 只有点击事件支持从鼠标位置动画展开

// 只有版本相同时才用缓存

// 只有第一次缓存，否则无法回滚

// 只有进行中，才会允许大小变化

// 只有长图要裁剪

// 只有鼠标左键的 mousedown 事件才会设置 mousedownShape 等属性，避免鼠标右键的 mousedown 事件引起其他事件发生

// 只能返回本地时间

// 只要属性发生变化，都调整一些位置

// 可以加缓冲，&& this.get('imgSrc') !== value

// 可以考虑缓存机制，通过 hasUpdate 来避免一些运算

// 可能不在 currentInPlot 中

// 可能存在用户设置 values ，但是数据中没有对应的字段，则这时候 arr 就为 null

// 可能触发新的事件，保证执行前的 context.event 是正确的

// 右侧超出

// 右侧躲避

// 右边

// 各个 Geometry 默认的动画执行函数

// 各个 Geometry 默认的群组出场动画

// 合并两个区域

// 合并主题，用户配置优先级高于默认主题

// 合并包围盒

// 合并箭头的包围盒

// 同 shape 中的方法重复了

// 同初始化时相反顺序调用

// 同时填充和带有边框

// 同样递归处理子 views

// 同步 padding 之后，更新 coordinate

// 后一个判断被测点 在 射线与边交点 的左边

// 后一个动画开始执行的时间 < 前一个动画的结束时间 && 后一个动画的执行时间 > 前一个动画的延迟

// 后续扩展 id 用

// 后置钩子

// 向量角度

// 向量长度

// 否则会在touchend的处理过程中清除延时器。

// 否则在 canvas 上触发 drag 事件

// 否则将图形添加到动画元素队列

// 否则直接 zoom 展示

// 否则直接销毁

// 否则，按照高度均分

// 命中dtmd安全策略直接禁用 dtmd 链接的打开

// 和 update 逻辑保持一致

// 响应用户交互

// 嗅探器

// 回滚开关 消息转便签开关

// 回调函数形式的配置： 用户可以传入回调函数

// 因为 Annotation 不参与布局，但是渲染的位置依赖于坐标系，所以可以将绘制阶段延迟到 layout() 进行

// 因为 DX 事件处理机制，会在 DX 的容器里面把事件都 stopPropagation 了，导致如果在 DDVideoView 里面添加了

// 因为 legend x y 要和 coordinateBBox 对齐，所以要做一个简单的判断

// 因为 tooltip 的交互是挂载在 Chart 上，所以当chart 上没有绘制 Geometry 的时候，就查找不到数据，并且绘图区域同子 View 的区域不同

// 因为 typescript 部分版本不支持 export * as 语法。

// 因为元素已经销毁所以无法获取到缓存的包围盒

// 因为在局部渲染影响的包围盒计算时不考虑这个图形的包围盒

// 因为存储的 start、end 可能不一定是按大小存储的，所以排序一下，对外是 end >= start

// 因为存在更新 scale 机制，所以在缓存之前，先从原 syncScales 中去除 sync 的缓存引用

// 因为已经计算了包围盒，所以仅需要计算到直线的距离即可，可以显著提升性能

// 因为有可能 shape 还在进行动画，导致 shape.getBBox() 获取到的值不是最终态，所以需要从 offscreenGroup 获取

// 因为有样式，所以深层覆盖

// 因为目前的方案是计算点到直线的距离，而有可能会在延长线上，所以要先判断是否在包围盒内

// 因为这里缓存了 shapeFactory，但是外部可能会变更 coordinate，导致无法重新设置到 shapeFactory 中

// 固定宽/高的情况下，图片缩放裁切、降质

// 固定宽高，则放弃计算

// 图例分页器

// 图例项需要逆序

// 图形发生更新

// 图形的包围盒与重绘区域不相交时，也需要清除标记

// 图片

// 图片使用适宽或者适高单位，宽高比未定义，使用图片原始宽高比，在dynamicImageLoaded时计算尺寸

// 图片加载失败时可能会出现，但是还有不明原因的ref找不到元素的情况，待查

// 图片异步加载 ，包含适宽或者适高情况

// 图片未加载完，则已经被销毁

// 圆

// 圆和椭圆的点坐标属性不是 x, y，而是 cx, cy

// 在 defaultLayoutFn 中只会在 coordinateBBox 发生变化的时候会调用 adjustCoordinate()，所以不用担心被置位

// 在 document 上处理拖拽到外面，释放鼠标时触发 dragend

// 在 document 处理拖拽到画布外的事件，处理从图形上移除画布未被捕捉的问题

// 在 path 的基础上，增加两个坐标点

// 在plot 内部却离开画布

// 在width设为"match_content"的情况下，限制其最大宽度。默认是-1，即没有限制。

// 在同一个 element 内部移动，label 和 shape 之间

// 在同一个 element 内部移动，忽视 label 和 shape 之间

// 在后面

// 在子元素上设置矩阵

// 在对组件分组之后，先对 axis 进行处理，然后取最大的超出即可。

// 在更新过程中数据变为空，同时 key 对应的 scale 已存在则保持 scale 同类型

// 在每一个分组中，将数据再按照 dim 分组，用于散列

// 在每个维度上，所有的值

// 在自定义容器下, 可以渲染 g2-tooltip 的样式, 以兼容线上场景, 但是不应该设置 visibility

// 在视窗外的 Group 元素会加入到更新队列里，但实际却没有执行 draw() 逻辑，也就没有清除 hasChanged 标记

// 在转换过程中进行了缓存

// 在这阻断为保证刷新情况 enabled 变化仍能响应事件

// 在页面切换不可见的时候，暂停正在播放的视频

// 均匀抽样隐藏标签，注意这里假设 label/tick 是均匀的

// 坐标与原点的连线不可能小于最小r值，但不排除因小数计算产生的略小于rMin的情况

// 坐标与原点的连线在第一圈上的交点，最小r值

// 坐标系有可能发生 transpose 等变换，所有通过两点之间的距离进行计算

// 坐标系类型也作为组件的 key

// 垂直

// 垂直布局的所有的文本都左对齐

// 垂直方向投影

// 垂直方向限制的长度，对文本自适应有很大影响

// 垂直方向，逆时针方向

// 垂直方向：柱形图系列

// 垂直时不需要判定 limitLength > maxWidth ，因为此时不会 overlap

// 垂直时计算 y

// 垂直的坐标轴计算垂直方向的间距

// 基础柱状图

// 基础配置，从当前数据中读到的配置

// 增加 x 轴的过滤器

// 增加一层 stackHeight

// 增加缓存

// 处理  timeCat 类型的 tick，在均匀的基础上，再次检查出现重叠的进行隐藏

// 处理 plot 事件

// 处理 sync scale 的逻辑

// 处理 边界值

// 处理完后再进行 style 回调处理

// 处理完成之后，更新 cache

// 处理完成之后，销毁删除的

// 处理小于 0 和小数的 tickCount

// 处理并缓存模版数据

// 处理拖拽到外部的问题

// 处理拖拽过程中在外部释放鼠标的问题

// 处理数据：分组 -> 数字化 -> adjust 调整

// 处理漏斗图

// 处理漏斗图文本位置

// 处理移动到外面没有触发 shape mouse leave 的事件

// 处理精度问题，保证这三个数没有精度问题

// 处理触发源由 element 导致的状态变化

// 处理转义符：https://yuque.antfin.com/dinamicx/community/lgklw5

// 复位

// 复写 clear

// 复写 on, off, emit 透传到 group

// 复写 setLocation 方法，不需要重新创建 text

// 复写基类方法

// 复写基类的 draw 方法

// 复写基类的方法生成标签

// 复写填充逻辑

// 复写属性

// 复写清空函数，因为有模板的存在，所以默认的写法不合适

// 复写父类定义的绘制方法

// 复写绘制和填充的逻辑：对于文本，应该先绘制边框，再进行填充

// 复写绘制边框的逻辑

// 复制到state 可能会引发bug，所以复制到私有变量

// 复制属性

// 复制数组

// 复制数组，删除时不会出错

// 外部容器带有border, 取height值作为borderRadius

// 多个 item 设置状态

// 多个元素设置、取消 highlight

// 多个点有可能重合

// 多参数映射，阻止程序报错

// 多边形场景，多用于地图

// 多边形的射线检测，参考：https://blog.csdn.net/WilliamSun0122/article/details/77994526

// 大于分钟

// 大于天

// 大于小时

// 大于月时

// 大于结束圆弧

// 大于限制的长度

// 大概能够节省全局渲染 15-20% 的性能，如果不在这里加缓存优化后 10W 个节点无法达到 5-6 ms，大概能够 30-40ms

// 大量的图形事件，都通过 mousemove 模拟

// 夹角为空、 0 或 PI 时，不需要计算夹角处的额外宽度

// 奇数

// 如倒计时五秒，是显示 4-3-2-1-0，所以减掉 1 秒展示

// 如有 customContent 则根据 customContent 设置 container

// 如果 action 既不是字符串，也不是函数，则不会生成 actionObject

// 如果 bbox 过小则不返回

// 如果 cfg 为空，则不在 updated 标记，那么会在后面逻辑中删除

// 如果 content 是 Group 或者 Shape，根据 textAlign 调整位置后，直接将其加入 labelGroup

// 如果 crosshair 对应的 dom 不存在，则创建

// 如果 customContent 不为空，就重新生成 tooltip

// 如果 geometry 开启，则监听

// 如果 interval label position 设置为 middle，则将主题中的 offset 覆盖为 0

// 如果 item 有配置 marker.spacing，采用 item 的配置

// 如果 item.name 匹配，则设置 highlight 以及取消

// 如果 items 空的话就不进行绘制调整操作

// 如果 label 支持 position 属性

// 如果 marker 是单填充或者单描边的话，就不要额外添加 stroke 或这 fill 属性，否则会影响 unchecked 后的显示

// 如果 nice = false ,补充 min, max

// 如果 setter不是function，则跳过

// 如果 sync = true，则直接使用字段名作为 syncKey

// 如果 this.animate === false 或者 cfg.animate === false/null 则不进行动画，否则进行动画配置的合并

// 如果 tickLine 不居中对齐，则需要在最后面补充一个 tickLine

// 如果 view 不执行动画，那么 view 下所有的 geometry 都不执行动画

// 如果 view 关闭了 tooltip

// 如果 view 关闭动画，则不执行

// 如果 x 的值是数组

// 如果 x 轴是数值类型，如直方图，默认不需要加额外的宽度

// 如果 x,y 翻转，则偏移 x，否则偏移 y

// 如果min == 0, 则根据比0大的最小值，计算比例关系。这个最小值作为坐标轴上的第二个tick，第一个是0但是不显示

// 如果source和target不是完全不相等

// 如果width不存在，四点共其实点

// 如果x,y都是分类

// 如果上面对齐检测上面，不检测下面

// 如果下一个点的命令为 Z，则下一个点直接指向最近一个 M 点

// 如果下一个点的命令为 Z，则最近一个 M 点的前一个点为当前点

// 如果不 clone 则会多个 interaction 实例共享 step 的定义

// 如果不存在相对命令，则直接返回

// 如果不对 dragover 进行 preventDefault，则不会在 canvas 上触发 drop 事件

// 如果不支持拾取，则直接返回

// 如果不支持，则使用圆来绘制，进行变形

// 如果不是 auto padding，那么直接解析之后返回

// 如果不是 component 的事件触发，则所有满足触发条件的组件都清除该状态

// 如果不是layout的子节点，则忽略 dGravity

// 如果不是都要取消 highlight, 则设置匹配的 element 的状态为 unactive

// 如果不进行清理 hasChanged 的状态会不正确

// 如果两个 box 中有一个是不合法的 box，也就是不会被渲染出来的，那么它们就不相交。

// 如果两个矩形没有旋转，使用快速判断

// 如果为空则不进行矩阵变化，防止报错

// 如果交换了位置，则对应的 min max 也交互

// 如果仅一个 label，多个 y, 取最后一个 y

// 如果以其开头，则取之，否则取他前面一个

// 如果以其结尾，则取之，否则取他后面一个

// 如果传入回调函数，则直接生成 CallbackAction

// 如果传入的值不等于 identity 的值，则直接返回，用于一维图时的 dodge

// 如果值小于等于0，则按照0处理

// 如果元素是新增加的元素，则遍历注册所有的子节点

// 如果全部渲染时，存在局部渲染，则抛弃掉局部渲染

// 如果分组没有子元素，则直接跳过

// 如果前段数据只有一个字段并且不需要展示时则不加入

// 如果加载的已经是当前图片，则不再处理

// 如果动画元素队列中已经有这个图形了

// 如果动画重复执行，则 elapsed > duration，计算 ratio 时需取模

// 如果卡片重新渲染距离上次获取动态数据源的时间超过了时间间隔，立即获取一次动态数据， 避免动态数据一直不会刷新

// 如果取消 highlight，则要检测是否全部取消 highlight

// 如果只提供父类构造函数，则自动生成子类构造函数

// 如果图形元素隐藏了，怎不再 tooltip 上展示相关数据

// 如果在state中发现相同key，使用 setState 去触发 ui 更新

// 如果在业务上都写绝对路径，这种方式最快，仅做了一次检测

// 如果在前面已经生成过包围盒，直接按照包围盒计算

// 如果在视觉通道上映射常量值，如 size(2) shape('circle') 不创建 legend

// 如果坐标系发生直角坐标系与极坐标的切换操作

// 如果垂直布局

// 如果存在 alternateColor 则绘制矩形

// 如果存在 callback，才绑定，有时候会出现无 callback 的情况

// 如果存在 clip

// 如果存在 draggingShape 则会在 draggingShape 上触发 drag 事件，冒泡到 canvas 上

// 如果存在 id，则使用 id string，否则直接使用 option 引用作为 key

// 如果存在 shadow 则计算 shadow

// 如果存在分组类型，取第一个分组类型

// 如果存在小写的命令或者 V,H,T,S 则需要处理

// 如果存在拖拽的图形，则也触发 drop 事件

// 如果存在渐变、pattern 这个开销有些大

// 如果存在点，则说明没有遇到 'Z'，开始了一个新的多边形

// 如果存在相对位置的命令，则中断返回

// 如果定义了 end, 只有 end 时才允许回滚

// 如果定义了箭头，并且是自定义箭头，线条相应缩进

// 如果容器是 group

// 如果宽度没指定则使用 100% 宽度。

// 如果宽高一致，那么 changeSize 不执行任何操作

// 如果封闭，则计算起始点和结束点的边

// 如果小于最小值，则调整最小值

// 如果已经 enterable + 已经在 tooltip 上，那么不隐藏

// 如果已经定义过这个度量 (fix-later 单纯从数据中，推断 scale type 是不精确的)

// 如果已经是 rgb的格式

// 如果已经被缓存，不重复执行

// 如果已经被销毁，直接移出队列

// 如果开启灰度开关、服务端返回开启水印，且大客户水印没有开，则渲染水印，否则直接返回children

// 如果当前元素的父元素发生了改变，可以不放入队列，这句话大概能够提升 15% 的初次渲染性能

// 如果当前图形/分组 refresh = true，说明其子节点存在 changed

// 如果当前是 processing，则无法 start，必须等待 end 后才能执行

// 如果当前点与最近一个 M 点相同，则最近一个 M 点的前一个点为当前点的前一个点

// 如果当前点的命令为 Z，相当于当前点为最近一个 M 点，则下一个点直接指向最近一个 M 点的下一个点

// 如果当前触点数为2，则计算出几何变换的各项参数，触发dualtouch手势

// 如果想关闭 jserror 需要业务主动配置此开关

// 如果想进一步提升局部渲染性能，可以进一步优化 refresh 的判定，依然有潜力

// 如果拖拽了 shape 会触发 dragenter, dragleave, dragover 和 drag 事件

// 如果指定了 region，同时不允许刷新时，直接返回

// 如果指定字段是非 position 的，同时是连续的

// 如果数值小于次小值，那么就计算 value / 次小值 占整体的比例

// 如果数据发生过 stack adjust，需要调整下 yScale 的数据范围

// 如果数据格式是 ['50%', '50%'] 的格式

// 如果数量小于 2 则直接返回，等于 2 时可能也会重合

// 如果数量小于或等于 2 则直接返回

// 如果文本位置位于圆心，则不展示

// 如果文本多行，需要获取文本间距

// 如果文本换行，则缓存数组

// 如果是 auto，默认 tooltip 在右上角，仅需要判定右侧和上测冲突即可

// 如果是 x 轴作为半径轴，那么只需要取圆弧收尾两个即可

// 如果是 xScale 数值类型，则进行排序

// 如果是一个 image 对象，则设置宽高

// 如果是允许的阶段，则验证 isEnable 方法

// 如果是分类类型，保持 values

// 如果是分组，则继续执行

// 如果是在本环节内仅允许触发一次，同时已经触发过，则不允许再触发

// 如果是字符串

// 如果是字符串，则按照 a*b 风格成数组

// 如果是当前画布整体发生了变化，则直接重绘整个画布

// 如果是数组

// 如果是数组时，则依次执行

// 如果是普通的图形

// 如果是监听事件，删除原始调用onSuccess的回调

// 如果是设置 highlight ，则将匹配的 element 设置成 active，

// 如果是非线性的字段，直接从 values 中取值即可

// 如果最后一个被隐藏了

// 如果有 atId 则返回 atIdMapping[atId]，否则返回 uid

// 如果有指定 y 字段，那么按照 y 字段来 stack

// 如果有自定义的 item，那么就直接使用，并合并主题的 marker 配置

// 如果未发现相同key, 则直接用 forceUpdate 触发更新

// 如果未定义 end, 则判断是否是开始

// 如果未组装 font

// 如果未设置filter或者filter命中，则复制此节点

// 如果未通过验证，则事件不要绑定在上面

// 如果本来已经大写，则不处理

// 如果模版名称未取到，则兜底使用id作为name

// 如果正在拖拽图形, 则触发 dragleave

// 如果水平布局

// 如果没有定义，取最大范围  最小值 为 values 中的最小值， 如果最小值 超过了 定义的最大值 则 做限制  最大值 反之

// 如果没有开始，则不允许范围设置状态，保护性质

// 如果没有开始，则不执行过滤

// 如果没有指定 titleOffset 也没有渲染 label，这里需要自动计算 offset

// 如果没有数值则直接返回0

// 如果没有状态，则需要恢复至原始状态

// 如果没有缓存 bbox，则说明不可见

// 如果没有设置 id，默认使用 name

// 如果没有设置 limitLength，则使用固定的角度旋转

// 如果父元素正在清理，当前元素不触发 remove

// 如果用户在 style() 中配置了 fill

// 如果用户在 style() 中配置了 lineWidth 或者 r 属性

// 如果用户在 style() 中配置了 stroke，则以用户配置的为准

// 如果用户声明了使用哪些字段作为 id 值

// 如果用户打开了隐藏的坐标轴 chart.axis(true)/chart.axis('x', true)

// 如果用户没有设置 name，则默认根据索引值

// 如果用户没有设置 offset，则自动计算

// 如果用户没有配置 appear.animation，就默认走整体动画

// 如果目标节点存在

// 如果目标节点的下一个节点存在，插入到该节点之前

// 如果相关图形同当前图形在同一个容器内，不触发事件

// 如果端点相等，则判定点到点的距离

// 如果第一个被隐藏了

// 如果考虑到在加载过程中可能替换 img 属性，则情况更加复杂

// 如果自动旋转

// 如果自定义箭头，线条相应缩进

// 如果节点发生了 change，则需要级联设置子元素的 refresh

// 如果触发源时列表，图例、坐标轴

// 如果设置了 canvas 对象

// 如果设置了 debounce

// 如果设置了 min,max 则转换成时间戳

// 如果设置了最小间距，则使用最小间距

// 如果该节点不存在，则追加到末尾

// 如果跟随 label 显示，则检测是否存在对应的 label

// 如果还没有开始执行或暂停，先不更新

// 如果这个地方判定 isInView == false 设置 bbox 为 false 的话，拾取的性能会更高

// 如果进入、移出画布时存在图形，则要分别触发事件

// 如果都没有增加字符，说明都不适合则中断

// 如果配置了限制的 component name，则要进行检测

// 如果配置项为 null，则不移除 clipShape

// 如果间距大于 1 年，则将开始日期从整年开始

// 如果需要刷新当前节点，所有的子元素设置 refresh

// 如果需要刷新，说明子元素也需要刷新，继续进行判定

// 如果需要跟随鼠标移动，就需要将当前鼠标坐标点转换为对应的数值

// 如果颜色是单值，则是仅绘制偶数时的区域

// 如果高度已指定，那么简单处理，直接给图片设置宽度和高度进行渲染。其中，宽度如果有指定固定值则使用固定值。但最大不超过 100% 宽度。

// 始终填充

// 始终触发移动

// 始终通过图形拾取

// 委托事件要先触发

// 子 view 共享 options 配置数据

// 子 view 共用三层 group

// 子类上覆盖某些属性，不能直接在类上声明，否则会被覆盖

// 字段数据为null ,undefined时不显示

// 字段数据为null, undefined 时不显示

// 字符串字段或者数组字段

// 字符串整体没有超出

// 字符串类型的配置：按照名称执行 overlap 处理方法

// 存储到 map 中

// 存储原始数据

// 存储已经处理过的

// 存储当前开启的状态

// 存储映射后的数据,

// 存储绘图数据

// 存入到 option 中

// 存在 3 层 结构了

// 存在 NaN 时，min,max 判定会出问题

// 存在 enableFormatJS 时做 format 操作

// 存在 parent， 那么就是通过父容器大小计算

// 存在 shape 触发，则进行冒泡处理

// 存在 sync 标记才进行 sync

// 存在 value 值，且用户没有配置 range 配置 to fix https://github.com/antvis/G2/issues/2996

// 存在则 update

// 存在则先销毁已有的

// 存在则更新

// 存在则更新，不存在在创建

// 存在则更新，同时检测类型是否一致

// 存在可以拖拽的图形，同时拖拽到其他图形上时触发 drag 事件

// 存在多个值时，设置最小间距

// 存在多种情形需要更新 cacheCanvasBBox 和 isInview 的判定

// 存在曲线时，暂时使用 canvas 的 api 计算，后续可以进行多边形切割

// 存在没有 y 的情况

// 存在点

// 存在过滤器，则逐个执行过滤，过滤器之间是 与 的关系

// 存起来

// 定宽 适高

// 定高 适宽

// 实例化 Geometry，然后 view 将所有的 scale 管理起来

// 实现 IList 接口

// 实现 ILocation 接口的 getLocation

// 实现 IPointLocation 的接口

// 实现接口

// 实现接口的方法

// 客户端提供的 dingtalk.clip API 来实现复制粘贴功能

// 宽 13px，高 8px

// 富文本小尾巴开关

// 富文本开启编辑颜色和展示颜色

// 富文本超过1080px出展开按钮, 降级开关

// 对 autoRotate，如果配置了旋转角度，直接进行固定角度旋转

// 对 dtmd 协议做特殊处理

// 对source进行增删path

// 对于 clip，不仅需要将 clipShape 对于的 SVG 元素删除，还需要将上层的 clipPath 元素也删除

// 对于 defs 下的 dom 节点，parent 为空，通过 context 统一挂载到 defs 节点下

// 对于 https://github.com/antvis/g/issues/422 的场景，全局渲染的模式下也会记录更新的元素队列，因此全局渲染完后也需要置空

// 对于 mouseenter, mouseleave 的计算处理

// 对于 regionFilter/shape，因为生命周期的原因，需要额外 render

// 对于 shape="line" path 不应该闭合，否则会造成 lineCap 绘图属性失效

// 对于 syncScales 中每一个 syncKey 下面的 scale 数组进行同步处理

// 对于 url 参数有带 ddtab=true 的链接需要使用 window.open 来打开，这样才会使用钉钉的浏览器窗口打开

// 对于下发的图片中包含 _200x200.jpg 等优化过尺寸的图片，取到原始地址使用新的优化

// 对于内置的 option，避免覆盖。

// 对于原始值的必要转换，如分类、时间字段需转换成数值，用transform/map命名可能更好

// 对于双指的情况肯定是发生在一个元素上的，所以寻找最小根节点触发

// 对于还没有挂载到画布下的元素，canvas 可能为空

// 对于通配符 *，事件名称 = 委托事件名称

// 对图形进行拾取判断

// 对数据进行分组

// 对数据进行排序

// 对直方图的label X 方向的位置居中

// 对结束箭头进行拾取判断

// 对绘制区域边缘取整，避免浮点数问题

// 对虚线偏移量做动画

// 对起始箭头进行拾取判断

// 对齐 Native，不能对字符串取下标

// 对齐方式，默认垂直方向都居中，水平方向可选；left, center, right

// 导出 Action 基类

// 导致返回的值是 [NaN, NaN]

// 封闭时，绘制整个圆

// 将 S 命令变换为 C 命令

// 将 S 命令变换为 SQ 命令

// 将 clip 的属性挂载到 context 上

// 将 label 同 element 进行关联

// 将 label 平移至 x, y 指定的位置

// 将 path 保持原始态，否则会影响 setState() 的动画

// 将 path 转成绝对路径

// 将 path 转换成绝对路径

// 将 point 画布坐标转换为原始数据值

// 将 update 更新到 cache

// 将 x, y 转换成对应于 group 的局部坐标

// 将 x、y 转换成画布坐标

// 将“,.”转为空格，如果导致出现连续空格（如原字符为", "，则转换后会为"  "），

// 将两个点均分成count个点

// 将会在 4.1 版本中移除递归嵌套 view，仅仅只允许 chart - view 两层。

// 将传入的颜色转换成渐变色

// 将分类数据翻译成数据, 仅对位置相关的度量进行数字化处理

// 将动画执行到最后一帧

// 将向量应用设置的矩阵

// 将四个边看做矩形来检测，比边的检测算法要快

// 将夹角转为锐角

// 将委托事件的监听对象 delegateObject 挂载到事件对象上

// 将字符串转换成 action

// 将开始的点记录下来

// 将归一化的坐标值转换成画布坐标

// 将当前容器的矩阵应用到子元素

// 将数值从 0-255 转换成16进制字符串

// 将数据归一化

// 将数据数组展开一层

// 将数据映射至图形空间

// 将数据映射至图形空间前的操作：排序以及关键点的生成

// 将数组打平（dim value 有可能是数组，比如 stack 之后的）

// 将更新的数据用 key 索引

// 将最近距离问题转换成到椭圆中心 0,0 没有旋转的椭圆问题

// 将清空后的 defs 元素挂载到 el 下

// 将组件默认的配置项设置合并到传入的配置项

// 小于1像素的圆在图像上无法识别

// 小于分钟

// 小于起始圆弧

// 少用乘法：防止出现 -1.2 + 1.2 * 3 = 2.3999999999999995 的情况

// 尝试注册事件，如果返回了数据，则作为缓存事件抛出

// 尝试注销事件

// 尾部没有被匹配到的情况，要对尾部特殊处理

// 局部刷新需要判定

// 层叠直方图场景，x 和 y 都是数组区间

// 层叠顺序翻转

// 居中的文本需要调整旋转度

// 展示 tooltip

// 展示 tooltip 内容框才渲染 tooltip

// 展示 tooltip 辅助线

// 展示 tooltipMarkers，tooltipMarkers 跟随数据

// 属性恢复至出厂状态

// 嵌套子组件更新

// 左下角

// 左侧超出

// 左侧躲避

// 左右留白

// 左方,从下到上、右方,从上到下

// 左边

// 左边 padding

// 左边因为偏移被隐藏的 dot 数量

// 差值公式

// 已执行时间

// 已经在渲染树上的 shape

// 已经处理过的 legend

// 已经排序后的数据查找距离最小的

// 已经注册过了，则删除

// 布局图形、组件

// 平移分类的度量

// 平移度量

// 应用 offset

// 应用到单个 DOM

// 应用当前状态

// 应用所有的样式

// 应用样式

// 应该不需要 return，先留着

// 应该只设置当前元素的 clip，不应该去修改 clip 本身，方便 clip 被复用

// 应该在 group 加个 insertAt 的方法

// 延迟启动下载任务，可以聚合一个tick内的下载任务

// 延迟生成

// 延迟生成 path，在动画场景下可能不会有拾取

// 开关打开后，vip 的特权消失

// 开关打开后，恢复班级群非老师的已读未读逻辑

// 开启状态

// 开始 mask 的标记

// 开始执行动画的生命周期

// 开始时设置 capture: false，可以避免创建、resize 时触发事件

// 开始时，保证移动结束

// 开始的时候清理之前的状态

// 开始移动的标记

// 开始计算子View宽度

// 开始请求时设置 loading 态

// 异常 case：enable=true/appName=false/userName=false/phone=false/timestamp=false

// 引入所有内置的 shapes

// 弧形的起点和终点相同时，长轴和短轴的长度按 0 处理

// 弧线包括笛卡尔坐标系下的半圆弧线、极坐标系下以圆心为控制点的二阶曲线、笛卡尔坐标系下带权重的三阶曲线、极坐标系下带权重的以圆心为控制点的二阶曲线

// 归一化

// 当 path 不连续时，segmentL 可能为空，为空时需要作为 0 处理

// 当初加 clone 是因为 points 的引用关系，导致更新失败，可是现在貌似复现不出来了，所以暂时不进行 clone

// 当前 index 在那个行列

// 当前 subdata

// 当前图形

// 当前点位于第index圈

// 当前点和上一个点一样的时候，忽略掉

// 当前索引 < 目标索引

// 当前索引 > 目标索引，直接插入到目标节点之前即可

// 当前节点是作为下一层的 parent

// 当前选中的范围

// 当前鼠标/touch所在位置的图形

// 当同时配置了 callback 和 cfg 时，以 callback 为准

// 当在桌面端容器内，判断为 PC 环境

// 当存在 unchecked 状态时不触发

// 当存在一个向量的长度为 0 时，夹角也为 0，即夹角的余弦值为 1

// 当存在整体的圆时，去除圆前面和后面的线，防止出现直线穿过整个圆的情形

// 当是小程序组件环境时

// 当是最后一行或者下面没有 view 时文本不显示

// 当曲线全部为负数时，取最大值，当曲线全部为正数时，取最小值，当曲线有正有负，则取零点

// 当某个父元素发生改变时，调用这个方法级联设置 refresh

// 当第一次监听的时候(内存里没有数据)

// 当触发浏览器的 dragover 事件时，不会再触发 mousemove ，所以这时候的 dragenter, dragleave 事件需要重新处理

// 当设置了 maxWidth, maxHeight 时调整 rail 的宽度，

// 当这个 polygon 的点在一条线上的时候

// 当鼠标从 fromShape 移动到画布上时，重置鼠标样式

// 当鼠标从画布移动到 shape 或者从 preShape 移动到 shape 时，应用 shape 上的鼠标样式

// 当鼠标点击下去，同时移动时，进行 drag 判定

// 径向渐变

// 循环将subdata加入到子视图

// 忽略宽度

// 忽略掉一些配置

// 忽略高度

// 总共有几行

// 恢复可以拾取

// 或者说 ys 里面的值都相同，比如：[0, 0, 0, 0]

// 所以不需要复写 isInStrokeOrPath 的方法

// 所以这里做相应的处理

// 所有 shape 都是 canvas 的子元素

// 所有不占位隐藏的子节点，需要计算margin

// 所有子节点增加 subdata 缓存

// 所有的 Coordinate map

// 所有的 SHAPES 都注册一下

// 所有的 attribute map

// 所有的 shape 都需要同步 clip

// 所有的 value 值

// 所有的 view 的 autoPadding 指向同一个引用

// 所有的值可能在画布的可视区外

// 所有的条件都通过，才算通过

// 所有调整维度的值数组

// 手动设置组件 displayName，方便后续调试

// 手工调用绘制接口

// 打印警告提示

// 打标规则详见 ./label/base.ts#L263

// 执行 Action

// 执行入场动画

// 执行冒泡

// 执行完更新后设置状态位为更新

// 执行完更新后设置状态位为添加

// 执行完某个触发和反馈（子环节）

// 扩大事件响应区域

// 扩展信息，存储当前模版相关信息等

// 找到终止循环

// 找得到

// 投影距离 x1, y1 的向量，假设 p, p1, p2 三个点，投影点为 a

// 折线图以及区域图，一条线会对应一组数据，即多个 labels，为了区分这些 labels，需要在 line id 的前提下加上 x 字段值

// 抛出委托对象

// 拖动鼠标点下时的 shape

// 拖拽完成后，进行 enter，leave 的判定

// 拖拽开始

// 拖拽滑块的事件回调

// 拾取前的检测，只有通过检测才能继续拾取

// 拿到所有的 Geometry 的 Y scale，然后去重

// 拿到所有的 Geometry 的 分组字段 scale，然后打平去重

// 拿到缓存的内容

// 拿第一个 Geometry 的 X scale

// 指定 tickInterval 后 tickCount 不生效，需要重新计算

// 指定了动画配置则执行销毁动画

// 指定子类的prototype

// 按照 dim 维度分组

// 按照先保存第一个的逻辑循环一遍，最后一个不参与循环

// 按照方向计算 padding

// 按照每一个分组来进行调整

// 按照角度进行计算，而不按照周长计算

// 按钮框框

// 按键抬起时，会终止拖拽、触发点击

// 按需构建 map

// 按顺序解析依赖属性，并创建缓存队列

// 捕获 nuvajs bootstrap 启动失败, 增加一个 runtime error 事件监听

// 换行

// 换行方式,

// 排序

// 排除不可见元素

// 排除宽度是适应父级的元素

// 接受父 view 传入的参数

// 提供语法糖，使用更简单

// 提前终止

// 提前获取状态

// 提取出来的多边形包含闭合的和非闭合的，在这里统一按照多边形处理

// 插值的图形

// 插值的图形path，不考虑null

// 插入索引表

// 操作不同的组件，反馈不一样

// 支持 ; 分割的顺序多个表达式

// 支持传入{ icon: null }来隐藏`Modal.confirm`默认的Icon

// 支持单独设置箭头的 stroke 和 lineWidth，若为空则使用 shape 的值

// 支持富文本V2 的 内容

// 改变 range

// 改变 zIndex 不应该立即触发渲染 (调用 onCanvasChange('zIndex'))，需要经过 sort 再触发

// 改成原生的rect方法

// 放大

// 散点分开之后，距离边界的距离

// 数字会默认为 ap 的单位

// 数学定义上的参数，便于后面的计算

// 数据加工：分组 -> 数字化 -> adjust

// 数据发生变化

// 数据发生更新

// 数据埋点，失败下载量记录

// 数据埋点，成功下载量记录

// 数据点位置

// 数组处理逻辑

// 数组嵌套对象的场景不考虑

// 数组转换成颜色

// 整个圆是分割成两个圆

// 整体超出右侧

// 整体超出底部

// 整体超出顶部

// 整圆

// 文件生命周期提示降级

// 文件过期标灰度开关

// 文字更新后，尝试重计算

// 文字样式，normal, bold, italic

// 文本

// 文本内容，默认空

// 文本旋转后，文本的对齐方式可能就不合适了

// 文本是否旋转

// 文本有可能发生旋转

// 文本的位置

// 文本被调整下去了，则添加拐点连接线

// 文本颜色，默认黑色，#FF000000

// 新建 element

// 新建交互实例

// 新版本 mediaId v2 灰度key

// 新生成的 shape

// 新的 element 没有 clip

// 新设置的属性与默认值进行合并

// 旋转

// 旋转到 xRotation 的角度

// 旋转前的起点坐标，且当长半轴和短半轴的长度为 0 时，坐标按 (0, 0) 处理

// 旋转文本

// 无 falseIndex，或 falseIndex 不为当前 index，不解析（三目表达式场景）

// 无 gravity （top left right bottom）的元素，ios 10 兼容问题，绝对定位带 left 才会生效

// 无内容则不展示，同时 tooltip 需要隐藏

// 无圆角时的策略

// 无标识位，认为是首次渲染

// 无短路逻辑的 parser，直接解析所有参数

// 无缓存情况，需要异步下载模版，didmount 很短，不具参考意义

// 无缓存，启动下载

// 日期类型的 values 经常上文本类型，所以需要转换一下

// 日程支持暂定

// 时序有点复杂，后续考虑不调用unSubscribeEvent

// 时间类型需要 translate

// 映射发生改变，则重新创建图形属性

// 是 auto padding，根据组件的情况，来计算 padding

// 是可捕获的，并且点在 tooltip dom 上

// 是否使用快速拾取的方案，默认为 false，上层可以打开

// 是否使用统一水印组件

// 是否允许局部刷新图表

// 是否允许指定阶段名称执行

// 是否元素的父容器

// 是否关闭机器人会话的已读/未读指示器：https://aone.alibaba-inc.com/req/36041851

// 是否在包围盒内

// 是否在多个多边形内部

// 是否在视图内自动裁剪

// 是否垂直

// 是否居中

// 是否开启富文本转DING

// 是否忽略触发的列表项

// 是否支持对应字段的平移

// 是否是有效 bbox 判定，一些 NaN 或者 宽高为 0 的情况过滤掉

// 是否相交需要考虑 clip 的包围盒

// 是否自动绘制，不需要用户调用 draw 方法

// 是否被裁剪，被裁剪则不显示，不参与拾取

// 是否设置了 min, max，而不是直接取 this.min, this.max

// 是否重叠

// 是线性，直接返回

// 显示坐标轴标题详情信息

// 普通群人数限制

// 普通色块图，xs 和 ys 是数值

// 暂定跟 name 绑定

// 暂时不考虑分页

// 暴露一些常量

// 更新

// 更新 _startPos

// 更新 coordinate controller

// 更新 coordinate 配置

// 更新 element

// 更新 left-arrow marker

// 更新 range

// 更新 region

// 更新 right-arrow marker

// 更新 start end range 范围

// 更新 state 使下一次渲染能够显示降级后的 UI

// 更新 ui

// 更新位置

// 更新内容

// 更新内部

// 更新则走更新逻辑；否则清空载重绘

// 更新动画配置，用户有可能在更新之前有对动画进行配置操作

// 更新发生层叠后的数据对应的度量范围

// 更新坐标系大小的时候，需要：

// 更新字符串

// 更新属性时，检测是否更改了 font、text

// 更新属性时，检测是否更改了 path

// 更新属性时，检测是否更改了 points

// 更新属性时，检测是否更改了箭头

// 更新属性的同时，可能会引起 DOM 的变化，这里对可能引起 DOM 变化的场景做了处理

// 更新当前 shape 的样式

// 更新当前已有的 components

// 更新数据

// 更新整个分组

// 更新时考虑capture

// 更新时考虑显示、隐藏

// 更新标题

// 更新样式

// 更新第一个节点

// 更新组件的图形

// 更新缓存

// 最下的最后一个 STEP，使用 1 递增（用二分效果更高）

// 最后一个

// 最后一组

// 最后一行显示

// 最外层识别

// 最多显示 500 个数据标签

// 最大和最小限制

// 最大行数，默认1

// 最大高度，会导致出现分页

// 最好是能从算法能解决这个问题，但是如果指定了 tickInterval，计算 ticks，也只能这么算，所以

// 最小值 <= 0 时显示 0

// 最终形态 l(0) 0:colors[0] 0.5:colors[1] 1:colors[2];

// 最终的绘制 render

// 最终调用 root view 的

// 有 4 种情况，

// 有 padding 的组件布局

// 有 trueIndex，并且 trueIndex 不为当前 index，不解析

// 有state情况下，无差别更新

// 有了 Z 后，当前节点从开始 M 的点开始

// 有可能 coordinate 变化

// 有可能已经销毁，设置了 undefined

// 有模版缓存的情况，didmoount 是所有节点 mount 完成时间，再加上布局时间就是模版渲染稳定时间（包含重排引起的抖动）

// 有缓存直接使用，触发成功回掉

// 有裁剪就剪切

// 未发生过排序

// 未指定 container 则创建

// 未设置时返回 Null，保证一致性

// 本来只有局部渲染模式下，才需要记录更新的元素队列

// 本来就是传递的url，或者base64

// 极坐标下 x 轴上的 crosshairs 表现为半径

// 极坐标下 y 轴上的 crosshairs 表现为圆弧

// 极坐标下使用通用的极坐标文本，转置则使用饼图

// 极坐标下多层环图

// 极坐标场景

// 极坐标系下 width 为弧长

// 构造 callback 方法

// 构造tpl的容器，即使没有views也会渲染出空容器

// 构造views

// 某个触发和反馈在本环节是否执行或

// 柱当柱状图全为负值时也需要从 0 开始生长，但是如果用户设置了则以用户的为准

// 柱状图数值轴默认从 0 开始

// 柱状图的 Y 轴要从 0 开始生长，但是如果用户设置了则以用户的为准

// 柱状图间隔与宽度相关配置

// 标记为新的

// 标记为更新

// 标题单独在一行

// 标题对应的坐标轴上的点

// 标题的属性

// 样式需要进行合并，不能单纯的替换，否则使用非常不方便

// 核心基类导出

// 根据 bbox 计算背景框的面积区域

// 根据 connectNulls 值处理 points

// 根据 customContent 渲染

// 根据 elementId 查找对应的 label，因为有可能一个 element 对应多个 labels，所以在给 labels 打标识时做了处理

// 根据 region 计算当前 view 的 bbox 大小。

// 根据 tick 关键点绘制 path

// 根据ASL生成HTML

// 根据ASL类型生成HTML

// 根据columnWidthRatio/defaultSize/maxColumnWidth/minColumnWidth调整宽度

// 根据type对label布局

// 根据不同的度量分别调整位置

// 根据值分组

// 根据原始数据获取 tooltip item 中 name 值

// 根据圆心和半径获取点

// 根据坐标系类型获取整体的剪切区域配置信息

// 根据子节点确定 BBox

// 根据字段列表的值，拼接成 key

// 根据富文本payload类型生成ASL

// 根据当前值获取占比

// 根据数值个数使用对应的色板

// 根据数据点生成 Line 的两个关键点

// 根据数据点生成 tick shape 的 6 个关键点

// 根据方向设置渐变方向

// 根据最新的 coordinate 重新布局组件

// 根据条件设置 checked

// 根据条件设置 highlight

// 根据框选的记录来做过滤

// 根据椭圆公式计算 x*x/rx*rx + y*y/ry*ry;

// 根据点获取图形，提取成独立方法，便于后续优化

// 根据被框选的包围盒做过滤

// 根据角度求 x 坐标

// 根据角度求 y 坐标

// 根据角度获取，x,y

// 根据设置的矩阵，将向量转换相对于图形/分组的位置

// 根据选中的 element 的数据进行设置状态

// 根据配置获取 padding

// 格式，这样四端显示出来的才一致

// 框选

// 检查 localstorage并保存全局

// 检查所有子元素是否可以刷新

// 检查所有的子元素是否应该更新

// 检测 activeItems 是否要全部取消

// 检测各边是否超出

// 检测左右位置

// 检测所有 activeElements 都要取消 highlight

// 检测是否允许触发对应的状态改变事件

// 检测是否换行

// 模版事件绑定回调触发

// 模版控件索引有序列表（自顶向下）

// 横向布局

// 正在加载则不绘制

// 正在拖拽中

// 正在拖拽时

// 正在被拖拽的图形

// 正方形

// 此刻属性

// 此处统一处理onColor, offColor, 不再为该2个函数单独设置 set 函数

// 此处需执行三次重计算，解决循环依赖下的计算问题

// 每两个分面区域横向间隔xSPacing, 纵向间隔ySpacing

// 每个分类间的平均间距

// 每个分组中，分别按照不同的 dim 进行调整

// 每个分组内每条柱子的宽度占比，用户不可指定，用户需要通过 columnWidthRatio 指定

// 每个分面区域的横纵占比

// 每次 16，调参工程师

// 每次更新前，调用预处理程序

// 每次都获取图形有一定成本，后期可以考虑进行缓存策略

// 每行有几列数据

// 水平 LinearLayout 容器中；设置最小宽度，避免多个子元素时被压缩

// 水平坐标轴

// 水平布局

// 水平方向投影

// 水平方向的向量

// 水平方向：条形图系列

// 水平时至少有两个时才旋转

// 求以a为次幂，结果为b的基数，如 x^^a = b;求x

// 求出数组的最大值

// 求极值

// 没有 callback 或者用户 callback 返回值为空，则使用默认的逻辑处理

// 没有 diff 时直接返回最终 attrs，不需要额外动画

// 没有 params 的情况，是指没有指定 fields，直接返回配置的 values 常量

// 没有 y 字段，但是需要根据 y 调整

// 没有修改，则直接返回

// 没有动画

// 没有声明，则根据 toAttrs 做差值动画

// 没有对应的图形，则插入当前图形

// 没有按键按下时，则直接触发 mouse over 相关的各种事件

// 没有条件，则自身改成数组

// 没有设置 min, max 时

// 没有设置 stroke 不能被拾取, 没有线宽不能被拾取

// 没有超出，则计算剩余宽度

// 没有通过检测，则返回 null

// 没有配置背景色

// 沿着 rail 方向

// 注册 ComponentController

// 注册 G 渲染引擎

// 注册 G2 内置的 geometry

// 注册 Geometry

// 注册 Geometry Shape

// 注册 Geometry label 以及 Geometry Label 布局函数

// 注册 Geometry label 内置的布局函数

// 注册 Geometry 内置的 label

// 注册 Interaction Action

// 注册 facet

// 注册 interaction

// 注册 tooltip 的 interaction

// 注册主题

// 注册事件

// 注册内置的 Component

// 注册内置的 Facet

// 注册内置的 adjust

// 注册动画函数

// 注册的时候，需要校验 type 重名，不区分大小写

// 注册节点

// 注册需要的动画执行函数

// 注册黑暗主题

// 注册默认的 Interaction 交互行为

// 注意 ios8 上的兼容问题

// 注意: 由于计算精度问题，夹角为 0 的情况计算出来的角度可能是一个很小的值，还需要判断其与 0 是否近似相等

// 注意不能改为数组，否则继承 textview 的 textinput 等组件会受影响，无法覆盖 text 方法

// 注意第二参数用 true，意思是即时 autoFit = false，forceFit() 调用之后一样是适配容器

// 注释掉的这段可能会加速拾取，上面的语句改写成 const bbox = element.cfg.cacheCanvasBBox;

// 添加 hollowShape

// 添加 label

// 添加 slider 组件

// 添加到跟 tooltip 同级的目录下

// 添加图形

// 添加图形或者分组时，需要把当前图元的矩阵设置进去

// 添加该 shape 对应的 hollow-shape

// 添加连接的图形

// 添加透明的背景，便于拾取和包围盒计算

// 清理 DOM

// 清理事件

// 清理指定区域

// 清理按下鼠标时缓存的值

// 清理掉所有的 active， unactive 状态

// 清理掉更新状态

// 清理掉缓存的包围盒

// 清理离屏缓存

// 清理缓存

// 清理缓存的对象

// 清理还在进行的绘制

// 清空

// 清空 SVG 元素

// 清空 defs 元素

// 清空宽度设置，防止frame限制内层

// 清空标题

// 清除已有的 clip

// 渲染 x 轴上的 tooltip 辅助线

// 渲染 y 轴上的辅助线

// 渲染前绑定上下文，使所有控件均可在渲染结束后调用 calc

// 渲染文本

// 渲染文本背景

// 渲染组件和 views

// 滑动过程中，计算偏移，更新滑块，然后 emit 数据出去

// 滑块相关的大小信息

// 漏斗图最底部

// 漏斗图的 size 是柱状图的两倍

// 点击滑道的事件回调,移动滑块位置

// 点击热区，设置透明矩形

// 点击选中，允许取消

// 点在多边形一条边上

// 点对称

// 点没有在圆弧上

// 热力图采用最小逼近策略查找 point 击中的数据

// 父元素 cacheCanvasBBox 计算的时候也不计算

// 父节点 match_content，子节点 height 不能设置 100%

// 父节点未设置 childGravity 时，什么都不用设置，flex alignitems 默认 stretch，会撑满父元素

// 特殊处理 area 的关键点数据，其关键点结构为 [{x: 0, y: 1}, {x: 0, y: 2}]

// 特殊逻辑：饼图需要填充满整个空间

// 环半径为0时，默认无渐变，取渐变序列的最后一个颜色

// 现在还调用 element.getCanvasBBox(); 一个很大的原因是便于单元测试

// 生成 mask 的路径

// 生成 shape 的关键点

// 生成ASL

// 生成templateId

// 生成具体的 Action

// 生成分面布局信息

// 用于交互时

// 用于去重过滤

// 用户传入的 id, 作为 container

// 用户在初始化的时候声明 visible: false

// 用户在图形通道上声明了常量字段 color('red'), size(5)

// 用户在进行 dodge 类型的 adjust 调整的时候设置了 dodgeBy 属性

// 用户声明了动画执行函数

// 用户如果在列定义中定义了 max

// 用户如果在列定义中定义了 min，则以用户定义的为准

// 用户定义了回调函数

// 用户指定的字符串标识，必须在模板内唯一（相当于控件id）

// 用户有可能设置 min

// 用户未定义，则进行默认的逻辑

// 用户未配置 content，则默认为映射的第一个字段的值

// 用户没有指定任何规则，则使用默认的映射规则

// 用户没有设定旋转角度，同时设置自动旋转

// 用户直接配置样式属性

// 用户通过 view.scale() 接口指定了 values 属性

// 用户配置的数据，优先级更高

// 由于 crosshair 没有在 container 内，所以需要单独清理

// 由于 矩形的平行原理，所以只有 2 条投影轴: A -> B, B -> C

// 由于Native border内伸展且不计算宽度（原因参见官网文档），此处采用inset box-shadow模拟

// 由于单个图例项变化，会引起全局变化，所以全部更新

// 由于对改变的图形放入 refreshElements 时做了优化，判定父元素 changed 时不加入

// 由于箭头的绘制依赖于 line 的诸多 attrs，因此这里不再对每个 attr 进行判断，attr 每次变化都会影响箭头的更新

// 由于计算圆弧的参数成本很大，所以要缓存

// 画布半径

// 画布圆心

// 画布销毁时自动停止动画

// 监听事件，绑定交互

// 监听指示器点击事件

// 目前 SliderLayout 和 PageIndicator 必须为兄弟节点

// 目前 legend 的布局是以 viewBBox 为参照

// 目前先处理 平行矩形 的场景, 其他多边形不处理

// 目前先处理矩形的场景

// 目前采用特殊属性 h5RavelBind的方式作为ravel联动的绑定标识

// 目前针对配置项还没有特别好的 view 更新机制，为了不影响主流流程，所以在这里直接销毁

// 直接使用 x,y 的导数计算， x' = -rx * sin(t); y' = ry * cos(t);

// 直接使用 分类图例渲染

// 直接使用椭圆的 api

// 直接参数赋值，用于dinamic属性修改原值

// 直接控制显示、隐藏

// 直接用距离，如果同时存在边和填充时，可以减少两次计算

// 直接触发 canvas 上的事件

// 直接设置

// 直接设置样式，不等待鼠标移动时再设置

// 直线坐标轴下任一点的向量方向都相同

// 直线的文本需要同直线垂直

// 直角坐标系

// 直角坐标系 非转置：最小值直接取 坐标系 minY

// 直角坐标系下绘制曲线时限制最大值、最小值

// 相关问题列表

// 相同位置不重复展示

// 相同的阶段允许同时执行

// 看看绑定的 Slider 上面的 showIndicator 是否为 false，如果是，则隐藏

// 矩形的四个关键点，结构如下（左下角顺时针连接）

// 矩阵 * 向量

// 矩阵中行列相等，等于指定的字段个数

// 短路逻辑，不必解析所有参数，尤其事件场景

// 确保tooltip已经创建的情况下

// 确认更新的元素，这个优化可以提升 10 倍左右的性能，10W 个带有 group 的节点，局部渲染会从 90ms 下降到 5-6 ms

// 示能在整个过程中都可用

// 禁止私聊群，去除快速 OK， 降级开关

// 禁止继续拾取，否则无法进行 dragover,dragenter,dragleave,drop的判定

// 禁用 cookie 或 storage 时可能报错，SecurityError The operation is insecure

// 离屏渲染

// 离散 scale 变换成索引

// 离职后，解密成功消息也需展示为 无法解密，非降级开关： https://work.aone.alibaba-inc.com/issue/37080066

// 移动元素

// 移动到 element 上 active

// 移动端事件

// 移动端存在软键盘收起过程，80ms 是测试得出的魔数

// 移除

// 移除 action

// 移除同步的关系

// 移除多余的元素

// 移除连接

// 稳定排序

// 空或者只有一个点并配置不展示时

// 空数组，或者一个点返回 false

// 第一个 mouseenter 和 mouseleave 的停止即可，因为后面的都是前面的 Parent

// 第一个子节点，仅设置 top, left 的情况，absolute 与 relative 效果相同，可以替换为 relative 减少抖动

// 第一列显示

// 第一次主要完成初始计算，第二次修正计算宽度相关内容，第三次修正计算高度相关内容

// 第一组

// 第一象限

// 第三个参数，既可以是缓动参数 easing，也可以是回调函数 callback

// 第三象限

// 第三象限 & 第四象限

// 第二个参数，既可以是动画最终状态 toAttrs，也可以是自定义帧动画函数 onFrame

// 第二个参数，既可以是执行时间 duration，也可以是动画参数 animateCfg

// 第二象限

// 第四个参数，既可以是回调函数 callback，也可以是延迟时间 delay

// 第四象限

// 筛选图形

// 筛选数据

// 箭头是否填充需要手动设置，不会继承自 shape 的值

// 约束值在 scale 的 range 之间

// 约束到 0 - 1 范围内

// 级联清理

// 级联获取 field 对应的 scale，如果 view 上没有，遍历子 view

// 纵向做了 y 轴镜像之后，数据也需要镜像反转

// 线

// 线性则使用线性值

// 线性情况下count值

// 线性方程

// 线性渐变

// 组件的名称

// 组件递归创建 vdom实例

// 组合 plot 事件

// 组成 mask 的各个点

// 组装字体

// 组间距和组内间距均未配置

// 终止 crosshair

// 终止循环

// 终点状态

// 经过空白区域

// 绑定内置事件

// 绑定所有手势事件

// 绑定生命周期函数

// 绑定组件联动

// 结束之后，取消绑定的事件

// 绘制

// 绘制 Button 和 文本

// 绘制 arc

// 绘制 clip 路径

// 绘制 crosshair

// 绘制 label

// 绘制 legend 的选项

// 绘制 marker

// 绘制 path

// 绘制 shape

// 绘制 ticks 包括文本和 tickLine

// 绘制两条横线

// 绘制两条竖线

// 绘制后消除标记

// 绘制后，消除更新标记

// 绘制图例项

// 绘制图形

// 绘制图形时需要考虑 region 限制

// 绘制图片

// 绘制坐标轴刻度线

// 绘制坐标轴刻度线，包括子刻度线

// 绘制坐标轴线

// 绘制子元素

// 绘制完成后，再定位

// 绘制局部

// 绘制或者填充

// 绘制所有图形

// 绘制所有的图例选项

// 绘制文本

// 绘制文本的背景

// 绘制文本，同时考虑填充和绘制边框

// 绘制文本，考虑多行的场景

// 绘制时被跳过，一般发生在分组隐藏时

// 绘制栅格

// 绘制栅格线

// 绘制栅格线间的间隔

// 绘制标题

// 绘制标题，标题在图例项的上面

// 绘制的时候缓存包围盒

// 绘制线

// 绘制背景

// 绝对定位的子节点，需要把父节点的 padding 也去除

// 统一处理所有的回调

// 统一小数位数

// 统一移动到对应的位置

// 统一设置文本的角度

// 缓存

// 缓存 context 对象

// 缓存 template 信息到 options 内

// 缓存从当前 view 创建的 scale key

// 缓存原始地址，可以做对比，防止重复加载图片

// 缓存开始时的矩阵，防止反复拖拽

// 缓存更新表，用于解决部分ui框架未提供 setState 批量更新功能

// 缓存模板设置的各种 DOM

// 缓存模版名称列表

// 缓存模版数据

// 缓存自增序列 componentId，用于唯一确定component

// 缓存起来

// 缓存透明度

// 缓存，用于更新

// 缩放度量

// 群角色功能开关

// 群设置

// 翻转

// 考虑 size(10), shape('circle') 等场景

// 考虑 x 维度相同，y 是数组区间的情况

// 背景

// 背景从 (0,0) 开始绘制

// 背景色 shape

// 背景色 shape 不设置事件捕获

// 自动播放的逻辑是视频曝光1秒后就开始播放，而不是视频渲染出来就自动播放

// 自动裁剪不在 view 内的区域

// 自定义 shape 有可能返回空 shape

// 自身属性

// 自适应大小

// 至少有一个对象，且第一个对象为 shape

// 节点不一定有parentNode

// 若弧的起始点和终点重叠则错开一点

// 范围

// 范围大于整个 view 的范围，则返回 null

// 获取 itemWidth 的最终设置

// 获取 label 上的字段

// 获取 label 的位置

// 获取 label 的配置项

// 获取 label 相关的 x，y 的值，获取具体的 x, y，防止存在数组

// 获取 labels 组件

// 获取 layout props

// 获取 step 的回调函数，如果已经生成，则直接返回，如果未生成，则创建

// 获取 style 配置

// 获取 tooltip crosshairs 存储的容器

// 获取 tooltip 上的字段

// 获取 tooltip 配置，因为用户可能会通过 view.tooltip() 重新配置 tooltip，所以就不做缓存，每次直接读取

// 获取 tooltipMarkers 存储的容器

// 获取 touch 事件的 clientX 和 clientY 需要单独处理

// 获取 track 的属性，由 path 和 颜色构成

// 获取 四个关键点

// 获取CardInstance

// 获取fromPath的pathSegment的端点，根据toPath的指令对其改造

// 获取业务设置的模板缓存

// 获取中心的位置

// 获取事件的当前点的信息

// 获取从source到target所需改动

// 获取分组的构造函数

// 获取动画配置

// 获取卡片详情

// 获取发生委托时的对象，在事件中抛出

// 获取向量

// 获取图例项的高度，如果未定义，则按照 name 的高度计算

// 获取图形属性上的 fields

// 获取图形的包围盒

// 获取坐标轴的向量

// 获取坐标轴线的 path

// 获取垂直于坐标轴的向量

// 获取多个状态量的合并值

// 获取存储 tooltipMarkers 和 crosshairs 的容器

// 获取对应的 scale

// 获取属性值，将值映射到视觉通道

// 获取度量计算时，value占的定义域百分比

// 获取当前的位置

// 获取当前绘制的点

// 获取总的 matrix

// 获取所有允许执行 Action 的组件

// 获取扇形 path

// 获取扇形 path（其实是一个圆环，从 coordinate 的起始角度到结束角度）

// 获取文本的位置

// 获取文本的对齐方式，为了自适应真实操碎了心

// 获取映射至常量的值

// 获取最终的 offset

// 获取构造函数

// 获取某个环节的唯一的键值

// 获取每个 x 对应的最大的值

// 获取每个 xField 值中的最大值

// 获取每个维度对应的数据配置片段

// 获取沿坐标轴方向的向量

// 获取滑块的 path

// 获取滑轨的宽高信息

// 获取点在椭圆上的角度

// 获取画布的包围盒

// 获取目标节点的下一个节点

// 获取离屏的 ctx 进行计算

// 获取组件内部布局占的包围盒

// 获取组件的 layout bbox

// 获取缓存的 bbox，如果这个 bbox 还存在则说明父元素不是矩阵发生了改变

// 获取虚拟 Group

// 获取调整的位置

// 获取路径的配置项

// 获取连接的 path

// 获取配置项中的值，当前 scale 上的值可能会被修改

// 获取需要替换的属性，如果原先图形元素存在，而新图形不存在，则设置 undefined

// 获取顺时针方向的向量

// 获取颜色对应的 scale

// 获取默认样式

// 获得更新数据所有的 keys

// 菱形

// 落到 0 - positiveMin 之间

// 虽然数学上 b 不支持负数，但是这里需要支持 负数

// 螺线圈数

// 螺线系数

// 补充 BILog ，用于 Bi 分析数据

// 补充 tick 的 id，为动画和更新做准备

// 补全 ticks

// 补齐数据空数据为默认值

// 表情

// 表情相关

// 表示弧线的方向，0 表示从起点到终点沿逆时针画弧, 1 表示顺时针

// 表达式2.0版本，事件与表达式统一

// 表达式识别标志

// 被组件触发

// 被裁减掉的和不在包围盒内的不进行计算

// 裁剪

// 要求为元素节点，且不能为 defs 节点

// 要注意处理解析表达式结果为 'undefined' 的情况

// 覆盖 Container 中通过遍历的方式获取 shape 对象的逻辑，直接走 SVG 的 dom 拾取即可

// 覆盖基类的 afterAttrsChange 方法

// 覆盖配置项，而不替代

// 视频上屏后自动播放

// 视频移出屏幕时自动暂停播放视频

// 解析用户的动画配置

// 解析目标属性

// 解析配置

// 触发 mask 的事件

// 触发 shape 上的事件

// 触发事件

// 触发事件的路径

// 触发源由于 element 导致

// 触发源由组件导致

// 触发目标事件，目标只能是 shape 或 canvas

// 触发绘制

// 计算 4 个顶点

// 计算 verticalLimitLength

// 计算出来的应该保存的长度

// 计算分面数据

// 计算包围盒时，需要缓存，这是一个高频的操作

// 计算原始值值占的百分比

// 计算宽度

// 计算当前值在刻度中的占比

// 计算框选区域

// 计算每个 shape 的 size

// 计算每段的长度和总的长度

// 计算比例

// 计算点到椭圆圆弧的距离，暂时使用近似算法，后面可以改成切割法求最近距离

// 计算画布的 viewBBox

// 计算相对于画布的包围盒

// 记录下是在什么时候暂停的

// 记录下点击的位置、图形，便于拖拽事件、click 事件的判定

// 记录取消监听的promise

// 记录当前 x 的位置

// 记录当前是否已经有播放过，会用于判断是否要自动播放

// 记录正在监听的promise

// 许多环境不支持 < 1px 的 box-shadow

// 设定 crosshair 的位置，需要区分 x,y

// 设置

// 设置 annotation

// 设置 canvas 元素的宽度和高度，会重置缩放，因此 context.scale 需要在每次设置宽、高后调用

// 设置 checked 时，保留之前已经 checked 的项

// 设置 clip

// 设置 events

// 设置 highlight 时，保留之前已经 Highlight 的项

// 设置 min, max

// 设置 shape 上需要携带的信息

// 设置 sync 同步的 key

// 设置 text

// 设置 throttle

// 设置 title 文本

// 设置 x 方向的 filter

// 设置 y 方向的 filter

// 设置了 draggable 的 canvas 才能触发 drag 相关的事件

// 设置了 draggable 的 shape 才能触发 drag 相关的事件

// 设置了 item 的最大宽度限制，并且超出了，进行省略处理

// 设置了使用缓存的才吐回缓存

// 设置了最大宽度

// 设置元素的 highlight

// 设置兄弟 view 的状态

// 设置全局的 legend 配置

// 设置分面的数据

// 设置初始宽度

// 设置初始显示状态

// 设置初始样式

// 设置动画配置，如果 geometry 的动画关闭了，那么 label 的动画也会关闭

// 设置单独的 Group 用于 setClip

// 设置坐标系

// 设置尺寸，重计算

// 设置文本

// 设置标志位，防止头尾都没有附加字符

// 设置渲染引擎为 canvas，只读属性

// 设置状态

// 设置由组件选项导致的状态变化

// 设置矩阵

// 设置组件的 item active

// 设置组间距但未设置组内间距情况，避免组间距过小导致图形重叠，需乘以wr

// 设置虚线样式

// 设置虚线，只支持数组形式，非数组形式不做任何操作

// 设置跨域

// 设置默认值

// 设置默认值，并存储配置

// 试验特性，仅有一个子节点的情况不使用 absloute 定位

// 话题

// 该函数进行渲染前的选中、非选中图片替换

// 该状态已经开启，则返回

// 语法糖，在 view API 上增加原型方法

// 说明 points 未放入 polygons 或者 polyline

// 说明从某个图形直接移动到了画布外面，

// 请求失败时设置 failed 状态

// 请求成功时设置 success 状态

// 调整 handler 的位置，如果未存在则绘制

// 调整 scale

// 调整 title 的 offset

// 调整位置

// 调整各个图形位置，适应宽高的限制

// 调整数据

// 调整目前包括：

// 调整组内间隔

// 调整组间距

// 调整范围

// 调用 view 的创建

// 调用根节点 view 的方法获取

// 贴近圆周

// 赋新的状态值

// 走 CDN 时就当作已经 ready 了

// 起始状态

// 超出右侧

// 超出右边界

// 超出左侧

// 超出左边界

// 超出左边界， 则取第一个

// 超出底部

// 超出自动省略

// 超出顶部

// 超长的时候，tooltip tip 最大宽度为 50%，然后可以换行

// 趋势图数据

// 跟 attr 相关的配置

// 跳出循环

// 跳过图形的拾取，在某些图形中可以省略一倍的检测成本

// 转成 object

// 转换 path 的格式

// 转换一下不与 canvas 兼容的属性名

// 转换为原始值

// 转换为画布坐标

// 转换到 0 - 2 * Math.PI 之间

// 转换到 0 - 2PI 内

// 转换成 0， 0 为中心的椭圆计算

// 转换成像素值

// 轮播图事件监听：广播轮播变更事件

// 辅助线是否要跟随鼠标

// 边界判断

// 过滤values[]中 NaN/undefined/null 等

// 过滤为非字符串的水印值，否则水印组件会报错

// 过滤出全部满足条件的数据

// 过滤多余的直线

// 过滤队列, 判断当前模版是否本次队列已经下载，如果已经下载，则跳过

// 近似求解 https://community.khronos.org/t/3d-cubic-bezier-segment-length/62363/2

// 返回一个函数

// 返回值

// 还在拖拽过程中

// 这个 API 理论上用户量不多，所以暂时不发大版本，所以先暂时打一个 warning。

// 这个分支说明此次局部刷新，所有的节点和父元素没有发生变化，仅需要检查包围盒（缓存）是否相交即可

// 这个判定 10W 个图形下差不多能够节省 5-6 ms 的开销

// 这个地方如果用户添加了 name, 则附加 name ，否则就添加自己的 name

// 这个地方的逻辑比较复杂，简单画了一张图：https://www.yuque.com/antv/ou292n/pcgt5g#OW1QE

// 这个地方需要判定，在 G6 的场景每个 group 都有 transform 的场景下性能会开销非常大

// 这个方法以前直接使用的 getCanvasBBox，由于 group 上没有缓存，所以每次重新计算，导致性能开销比较大

// 这个方法在 text 时没有可以做的事情，如果要支持文字背景时可以考虑

// 这个方法复写了 g-base 的 getShape

// 这些缓存都是第一次需要时计算和存储，虽然增加了复杂度，但是频繁调用的方法，性能有很大提升

// 这时候的拾取假设图形/分组在上一次绘制都在视窗内，但是上面已经判定了 isInView 所以意义不大

// 这是一段 hack 的代码

// 这样可以兼容非点击方式展开

// 这段应该改成局部渲染

// 这种方式如果发生遮挡会出现问题

// 这种方案会在水平或者竖直的情况下载线的延长线上有半 lineWidth 的误差

// 这里会循环调用 _setImage 方法，但不会再走这个分支

// 这里因为代码公用，所以直接全部注册

// 这里必须保留，原因是后面子 view 的 viewBBox 或根据 parent 的 coordinateBBox

// 这里是 dom 原生事件，绑定在 dom 元素上的

// 这里暂时只对 tail 做处理

// 这里的成本比较大，如果不绘制则不再

// 进行 adjust 数据调整

// 进行坐标轴布局，应该是取 padding 的并集，而不是进行相加

// 进行添加、更新、销毁操作

// 迭代 4 次

// 迭代三次，划分成 8 段求长度

// 适宽，适高，使用原始尺寸即可

// 逆时针，需要将 startAngle 和 endAngle 转置，因为 G2 极坐标系为顺时针方向

// 递归 view 中所有的 Geometry，进行创建 legend

// 递归处理子 view

// 递归查找，并合并结果

// 递归渲染

// 通知指示器更新下标

// 通讯录相关

// 通过 refresh 的判定，可以不刷新没有发生过变化的分组，不在视窗内的分组等等

// 通过方法判断是否支持

// 通过绘制数据的变更来判断是否需要更新，因为用户有可能会修改图形属性映射

// 通过选区生成payloadV2

// 逻辑和 render 保持一致

// 遇到 'M' 判定是否是新数组，新数组中没有点

// 遍历处理每一个创建逻辑

// 遍历所有数据集合

// 遍历每一个 attrOption，各自创建 Attribute 实例

// 遍历每个触点：

// 遍历获取需要删除的图形元素

// 避免 random 为 0，要用此随机值作为当前模版 uuid，

// 避免出现null、undefined

// 避免出现数字作为Key的情况，会进行按照数字的排序

// 避免遮挡，如果还不够的话，再考虑开放用户配置

// 避让规则，优先显示在两侧，只有显示不下的时候，才显示在中间

// 那么对于转置了的极坐标，半径轴显示的是 x 轴对应的数据

// 那么有可能会出现 elements 都为空，所以最终 group

// 部分 android webview 兼容

// 部分节点不存在，避免报错，如 comment

// 都只有一个点，绘制一条竖线

// 都要取消，则取消所有的 active，unactive 状态

// 配置 labelLine

// 配置了背景色

// 配置信息存储

// 配置的相对值，相对于画布

// 重复位置，直接隐藏

// 重新构建缓存

// 重新渲染

// 重新获取事件引用，数据变更后，引用会变化

// 重新计算 cp1 的值

// 重新计算 layout bbox，考虑到 line 不显示

// 重新计算 nextCp0 的值

// 重新计算 totalPagesCnt

// 重新计算最大最小值

// 重新设置 text 位置

// 重新调整位置

// 重置 capture 属性

// 重置 title

// 重置位置

// 重置滑块 handler

// 重置绘制 path 存储的缓存

// 重置绘制时开始的位置，如果绘制边框，考虑边框的 padding

// 重设 device width

// 金字塔最底部

// 针对不同的滑动组件，处理的方式不同

// 针对大数据量进行优化配置

// 针对宽度 match_parent的特殊处理

// 针对时间分类类型，会将时间统一转换为时间戳

// 针对高度 match_parent 的特殊处理

// 钉闪会降级开关

// 链接

// 销毁 controller 中的组件

// 销毁 interactions

// 销毁前事件，销毁之后已经没有意义了，所以不抛出事件

// 销毁原先的离线 Group

// 销毁子元素

// 销毁被删除的 elements

// 销毁，减少内存占用

// 锁定 tooltip 时不隐藏

// 镜像最多两个

// 防止一个字段创建两个 legend

// 防止出错

// 防止反复刷新

// 防止发生改变的 elements 没有 region 的场景，这会发生在多个情况下

// 防止未设置 id

// 防止浮点数加法出现问题

// 防止滑动到 canvas 外部之后，状态丢失

// 防止第一个命令不是 'M'

// 防止被 clear 了，offScreenBBox 不存在

// 防止闪烁

// 防止防止在页头报错

// 阻止继续冒泡，防止重复事件触发

// 阻止继续向上冒泡

// 附加 element 的 name, name 现在支持数组了，很好用了

// 附加委托信息，用于事件

// 附加状态对应的样式

// 随机出来的字段值

// 随机的范围

// 隐藏逻辑：一个 view 中的 Geometry 必须 x 字段一致

// 需要假设上一个线段为 C 或者 S

// 需要假设上一个节点的命令为 Q

// 需要全部清理 active 和 unactive

// 需要判定，asin 的参数 -1， 1

// 需要动画结束时移除图形

// 需要在外面统一做，同时处理 V,H,S,T 等特殊指令

// 需要处理 active 和 unactive 的互斥

// 需要将 format token 进行一次转换，传进来的是 LDML 格式，需要转成 moment 自己的

// 需要展示文本

// 需要把已存在的 view 销毁，否则会重复创建

// 需要更新 visible 变量

// 需要注意可能没有 region 的场景

// 需要清理 canvas 画布内容，否则ios下 创建的canvas垃圾未回收，导致Total canvas memory use exceeds问题

// 需要清理掉延迟绘制的帧

// 需要清空配置项

// 需要生成关键点

// 需要考虑数组嵌套数组的场景

// 需要进行动画

// 需要闭合

// 非函数类型的值才能做插值

// 非垂直，或者非水平时不处理遮挡问题

// 非委托事件

// 非常奇葩的 js 特性

// 非数组处理逻辑

// 非最后一行

// 非极坐标场景

// 非根 view，不处理 legend

// 非漏斗图底部

// 非线性，使用 scale 变换

// 非自动渲染模式下，手动调用 canvas.draw() 重新渲染

// 顶层容器，从 canvas 中取值 宽高

// 顺时针还是逆时针

// 预处理 ticks 确定位置和补充 id

// 首位参数直接解析

// 首先通过 step 计算，找出最大的未超出长度的

// 首次创建dom前，调起预处理程序

// 高亮的颜色

// 高频率调用的地方直接使用 this.cfg.xxx

// 黄金令箭

// 默认 smooth, undefined 也为 smooth

// 默认不渲染转置极坐标下的坐标轴

// 默认为 true

// 默认从 d3-ease 中获取

// 默认使用 tick.name 作为id

// 默认使用 update

// 默认全部解析，针对短路配置，剔除不解析的参数

// 默认填充一维 1*xx

// 默认展示 x 轴上的辅助线

// 默认情况

// 默认所有 overlap 都可执行

// 默认放在 bottom

// 默认文本属性

// 默认样式

// 默认的 y 的值

// 默认的动画参数配置

// 默认箭头的边长为 10，夹角为 60 度

// 默认背景色，copy from active-region

// 默认返回 getBBox，不同的组件内部单独实现

// 鼠标 hover 的样式

// （对齐大客户水印的兜底逻辑）

//! author : Anthony : https://github.com/anthonylau

//! author : Ben : https://github.com/ben-lin

//! author : Chris Lam : https://github.com/hehachris

//! author : Konstantin : https://github.com/skfd

//! author : LI Long : https://github.com/baryon

//! author : Zeno Zeng : https://github.com/zenozeng

//! author : suupic : https://github.com/suupic

//! author : uu109 : https://github.com/uu109

//! authors : Tim Wood, Iskren Chernev, Moment.js contributors

//! license : MIT

//! locale : Chinese (China) [zh-cn]

//! locale : Chinese (Hong Kong) [zh-hk]

//! locale : Chinese (Taiwan) [zh-tw]

//! locale : Japanese [ja]

//! moment.js

//! moment.js locale configuration

//! momentjs.com

//! version : 2.29.4

//# sourceMappingURL=AnimationFrame.js.map

//# sourceMappingURL=BoundCallbackObservable.js.map

//# sourceMappingURL=BoundNodeCallbackObservable.js.map

//# sourceMappingURL=DeferObservable.js.map

//# sourceMappingURL=FastMap.js.map

//# sourceMappingURL=ForkJoinObservable.js.map

//# sourceMappingURL=IfObservable.js.map

//# sourceMappingURL=Immediate.js.map

//# sourceMappingURL=Map.js.map

//# sourceMappingURL=MapPolyfill.js.map

//# sourceMappingURL=ReplaySubject.js.map

//# sourceMappingURL=Rx.js.map

//# sourceMappingURL=Set.js.map

//# sourceMappingURL=SubscriptionLog.js.map

//# sourceMappingURL=SubscriptionLoggable.js.map

//# sourceMappingURL=UsingObservable.js.map

//# sourceMappingURL=active-region.js.map

//# sourceMappingURL=active.js.map

//# sourceMappingURL=add-event-listener.js.map

//# sourceMappingURL=adjust-color.js.map

//# sourceMappingURL=adjust-position.js.map

//# sourceMappingURL=adjust.js.map

//# sourceMappingURL=ajax.js.map

//# sourceMappingURL=align.js.map

//# sourceMappingURL=animationFrame.js.map

//# sourceMappingURL=annotation.js.map

//# sourceMappingURL=applyMixins.js.map

//# sourceMappingURL=arc-2-cubic.js.map

//# sourceMappingURL=arc-params.js.map

//# sourceMappingURL=arc.js.map

//# sourceMappingURL=area.js.map

//# sourceMappingURL=arrow.js.map

//# sourceMappingURL=asap.js.map

//# sourceMappingURL=assign.js.map

//# sourceMappingURL=attr.js.map

//# sourceMappingURL=audit.js.map

//# sourceMappingURL=auditTime.js.map

//# sourceMappingURL=augment.js.map

//# sourceMappingURL=auto-ellipsis.js.map

//# sourceMappingURL=auto-hide.js.map

//# sourceMappingURL=auto-rotate.js.map

//# sourceMappingURL=auto.js.map

//# sourceMappingURL=await-to-js.umd.js.map

//# sourceMappingURL=axis-description.js.map

//# sourceMappingURL=axis.js.map

//# sourceMappingURL=base.js.map

//# sourceMappingURL=bbox.js.map

//# sourceMappingURL=bezier.js.map

//# sourceMappingURL=bindCallback.js.map

//# sourceMappingURL=bindNodeCallback.js.map

//# sourceMappingURL=bisector.js.map

//# sourceMappingURL=box.js.map

//# sourceMappingURL=bufferCount.js.map

//# sourceMappingURL=bufferTime.js.map

//# sourceMappingURL=bufferToggle.js.map

//# sourceMappingURL=bufferWhen.js.map

//# sourceMappingURL=button.js.map

//# sourceMappingURL=cache.js.map

//# sourceMappingURL=callback.js.map

//# sourceMappingURL=candle.js.map

//# sourceMappingURL=canvas.js.map

//# sourceMappingURL=cartesian.js.map

//# sourceMappingURL=cat.js.map

//# sourceMappingURL=category.js.map

//# sourceMappingURL=catmull-rom-2-bezier.js.map

//# sourceMappingURL=chart.js.map

//# sourceMappingURL=circle.js.map

//# sourceMappingURL=clamp.js.map

//# sourceMappingURL=clear-animation-frame.js.map

//# sourceMappingURL=clip.js.map

//# sourceMappingURL=clone.js.map

//# sourceMappingURL=collision-detect.js.map

//# sourceMappingURL=color.js.map

//# sourceMappingURL=combineAll.js.map

//# sourceMappingURL=combineLatest.js.map

//# sourceMappingURL=component.js.map

//# sourceMappingURL=concat.js.map

//# sourceMappingURL=concatAll.js.map

//# sourceMappingURL=concatMap.js.map

//# sourceMappingURL=concatMapTo.js.map

//# sourceMappingURL=constant.js.map

//# sourceMappingURL=container.js.map

//# sourceMappingURL=contains.js.map

//# sourceMappingURL=context.js.map

//# sourceMappingURL=continuous.js.map

//# sourceMappingURL=coordinate.js.map

//# sourceMappingURL=core.js.map

//# sourceMappingURL=count.js.map

//# sourceMappingURL=create-by-style-sheet.js.map

//# sourceMappingURL=create-dom.js.map

//# sourceMappingURL=create-theme.js.map

//# sourceMappingURL=css-const.js.map

//# sourceMappingURL=cubic.js.map

//# sourceMappingURL=cursor.js.map

//# sourceMappingURL=d3-linear.js.map

//# sourceMappingURL=dark.js.map

//# sourceMappingURL=data-marker.js.map

//# sourceMappingURL=data-region.js.map

//# sourceMappingURL=debounce.js.map

//# sourceMappingURL=debounceTime.js.map

//# sourceMappingURL=deep-mix.js.map

//# sourceMappingURL=defaultIfEmpty.js.map

//# sourceMappingURL=defer.js.map

//# sourceMappingURL=delayWhen.js.map

//# sourceMappingURL=dematerialize.js.map

//# sourceMappingURL=dependents.js.map

//# sourceMappingURL=diff.js.map

//# sourceMappingURL=difference.js.map

//# sourceMappingURL=dim-rect.js.map

//# sourceMappingURL=direction.js.map

//# sourceMappingURL=distinct.js.map

//# sourceMappingURL=distinctUntilChanged.js.map

//# sourceMappingURL=distinctUntilKeyChanged.js.map

//# sourceMappingURL=distribute.js.map

//# sourceMappingURL=dodge.js.map

//# sourceMappingURL=dom.js.map

//# sourceMappingURL=drag.js.map

//# sourceMappingURL=draw.js.map

//# sourceMappingURL=each.js.map

//# sourceMappingURL=edge.js.map

//# sourceMappingURL=element.js.map

//# sourceMappingURL=elementAt.js.map

//# sourceMappingURL=ellipse.js.map

//# sourceMappingURL=ellipsis-text.js.map

//# sourceMappingURL=ends-with.js.map

//# sourceMappingURL=event-contoller.js.map

//# sourceMappingURL=event.js.map

//# sourceMappingURL=every.js.map

//# sourceMappingURL=exhaust.js.map

//# sourceMappingURL=exhaustMap.js.map

//# sourceMappingURL=expand.js.map

//# sourceMappingURL=ext.js.map

//# sourceMappingURL=extend.js.map

//# sourceMappingURL=extended.js.map

//# sourceMappingURL=facet.js.map

//# sourceMappingURL=factory.js.map

//# sourceMappingURL=fade.js.map

//# sourceMappingURL=fecha.umd.js.map

//# sourceMappingURL=fill-path-by-diff.js.map

//# sourceMappingURL=fill-path.js.map

//# sourceMappingURL=filter.js.map

//# sourceMappingURL=finally.js.map

//# sourceMappingURL=find-index.js.map

//# sourceMappingURL=find.js.map

//# sourceMappingURL=findIndex.js.map

//# sourceMappingURL=first-value.js.map

//# sourceMappingURL=first.js.map

//# sourceMappingURL=fixed-base.js.map

//# sourceMappingURL=flatten-deep.js.map

//# sourceMappingURL=flatten.js.map

//# sourceMappingURL=for-in.js.map

//# sourceMappingURL=forkJoin.js.map

//# sourceMappingURL=format-path.js.map

//# sourceMappingURL=format.js.map

//# sourceMappingURL=from.js.map

//# sourceMappingURL=fromEvent.js.map

//# sourceMappingURL=fromEventPattern.js.map

//# sourceMappingURL=funnel.js.map

//# sourceMappingURL=generate.js.map

//# sourceMappingURL=geometry.js.map

//# sourceMappingURL=get-arc-params.js.map

//# sourceMappingURL=get-ellipsis-text.js.map

//# sourceMappingURL=get-height.js.map

//# sourceMappingURL=get-line-intersect.js.map

//# sourceMappingURL=get-outer-height.js.map

//# sourceMappingURL=get-outer-width.js.map

//# sourceMappingURL=get-path-points.js.map

//# sourceMappingURL=get-range.js.map

//# sourceMappingURL=get-ratio.js.map

//# sourceMappingURL=get-style.js.map

//# sourceMappingURL=get-type.js.map

//# sourceMappingURL=get-width.js.map

//# sourceMappingURL=get-wrap-behavior.js.map

//# sourceMappingURL=get.js.map

//# sourceMappingURL=gradient.js.map

//# sourceMappingURL=grammar-interaction.js.map

//# sourceMappingURL=graph-event.js.map

//# sourceMappingURL=graphic.js.map

//# sourceMappingURL=graphics.js.map

//# sourceMappingURL=grid.js.map

//# sourceMappingURL=group-by.js.map

//# sourceMappingURL=group-component.js.map

//# sourceMappingURL=group-data.js.map

//# sourceMappingURL=group-to-map.js.map

//# sourceMappingURL=group.js.map

//# sourceMappingURL=groupBy.js.map

//# sourceMappingURL=grow-in.js.map

//# sourceMappingURL=handler.js.map

//# sourceMappingURL=has-key.js.map

//# sourceMappingURL=has-value.js.map

//# sourceMappingURL=has.js.map

//# sourceMappingURL=head.js.map

//# sourceMappingURL=heatmap.js.map

//# sourceMappingURL=helix.js.map

//# sourceMappingURL=helper.js.map

//# sourceMappingURL=hide-overlap.js.map

//# sourceMappingURL=highlight-by-color.js.map

//# sourceMappingURL=highlight-by-x.js.map

//# sourceMappingURL=highlight-util.js.map

//# sourceMappingURL=highlight.js.map

//# sourceMappingURL=hit.js.map

//# sourceMappingURL=hollow-rect.js.map

//# sourceMappingURL=hollow.js.map

//# sourceMappingURL=html-component.js.map

//# sourceMappingURL=html-theme.js.map

//# sourceMappingURL=html.js.map

//# sourceMappingURL=identity.js.map

//# sourceMappingURL=if.js.map

//# sourceMappingURL=ignoreElements.js.map

//# sourceMappingURL=image.js.map

//# sourceMappingURL=index-of.js.map

//# sourceMappingURL=index.js.map

//# sourceMappingURL=interaction.js.map

//# sourceMappingURL=interface.js.map

//# sourceMappingURL=interfaces.js.map

//# sourceMappingURL=interval.js.map

//# sourceMappingURL=is-arguments.js.map

//# sourceMappingURL=is-array-like.js.map

//# sourceMappingURL=is-array.js.map

//# sourceMappingURL=is-boolean.js.map

//# sourceMappingURL=is-date.js.map

//# sourceMappingURL=is-decimal.js.map

//# sourceMappingURL=is-element.js.map

//# sourceMappingURL=is-empty.js.map

//# sourceMappingURL=is-equal-with.js.map

//# sourceMappingURL=is-equal.js.map

//# sourceMappingURL=is-error.js.map

//# sourceMappingURL=is-even.js.map

//# sourceMappingURL=is-finite.js.map

//# sourceMappingURL=is-function.js.map

//# sourceMappingURL=is-integer.js.map

//# sourceMappingURL=is-match.js.map

//# sourceMappingURL=is-model-change.js.map

//# sourceMappingURL=is-negative.js.map

//# sourceMappingURL=is-nil.js.map

//# sourceMappingURL=is-null.js.map

//# sourceMappingURL=is-number-equal.js.map

//# sourceMappingURL=is-number.js.map

//# sourceMappingURL=is-object-like.js.map

//# sourceMappingURL=is-object.js.map

//# sourceMappingURL=is-odd.js.map

//# sourceMappingURL=is-plain-object.js.map

//# sourceMappingURL=is-polygons-intersect.js.map

//# sourceMappingURL=is-positive.js.map

//# sourceMappingURL=is-prototype.js.map

//# sourceMappingURL=is-reg-exp.js.map

//# sourceMappingURL=is-string.js.map

//# sourceMappingURL=is-type.js.map

//# sourceMappingURL=is-undefined.js.map

//# sourceMappingURL=isEmpty.js.map

//# sourceMappingURL=isNumeric.js.map

//# sourceMappingURL=jitter.js.map

//# sourceMappingURL=keys.js.map

//# sourceMappingURL=label.js.map

//# sourceMappingURL=labels.js.map

//# sourceMappingURL=last.js.map

//# sourceMappingURL=legend.js.map

//# sourceMappingURL=let.js.map

//# sourceMappingURL=light.js.map

//# sourceMappingURL=limit-in-canvas.js.map

//# sourceMappingURL=limit-in-plot.js.map

//# sourceMappingURL=limit-in-shape.js.map

//# sourceMappingURL=line-2-cubic.js.map

//# sourceMappingURL=line.js.map

//# sourceMappingURL=linear.js.map

//# sourceMappingURL=link-by-color.js.map

//# sourceMappingURL=list-active.js.map

//# sourceMappingURL=list-checked.js.map

//# sourceMappingURL=list-focus.js.map

//# sourceMappingURL=list-highlight-util.js.map

//# sourceMappingURL=list-highlight.js.map

//# sourceMappingURL=list-radio.js.map

//# sourceMappingURL=list-selected.js.map

//# sourceMappingURL=list-state.js.map

//# sourceMappingURL=list-unchecked.js.map

//# sourceMappingURL=list.js.map

//# sourceMappingURL=log.js.map

//# sourceMappingURL=lower-case.js.map

//# sourceMappingURL=lower-first.js.map

//# sourceMappingURL=map-values.js.map

//# sourceMappingURL=map.js.map

//# sourceMappingURL=mapTo.js.map

//# sourceMappingURL=marker.js.map

//# sourceMappingURL=materialize.js.map

//# sourceMappingURL=math.js.map

//# sourceMappingURL=matrix.js.map

//# sourceMappingURL=max-by.js.map

//# sourceMappingURL=max.js.map

//# sourceMappingURL=measure-text-width.js.map

//# sourceMappingURL=memoize.js.map

//# sourceMappingURL=merge.js.map

//# sourceMappingURL=mergeAll.js.map

//# sourceMappingURL=mergeMapTo.js.map

//# sourceMappingURL=mergeScan.js.map

//# sourceMappingURL=min-by.js.map

//# sourceMappingURL=min.js.map

//# sourceMappingURL=mirror.js.map

//# sourceMappingURL=mix.js.map

//# sourceMappingURL=mod.js.map

//# sourceMappingURL=modify-css.js.map

//# sourceMappingURL=mousewheel-scroll.js.map

//# sourceMappingURL=move.js.map

//# sourceMappingURL=multicast.js.map

//# sourceMappingURL=never.js.map

//# sourceMappingURL=noop.js.map

//# sourceMappingURL=not.js.map

//# sourceMappingURL=number2color.js.map

//# sourceMappingURL=observeOn.js.map

//# sourceMappingURL=offscreen.js.map

//# sourceMappingURL=omit.js.map

//# sourceMappingURL=onErrorResumeNext.js.map

//# sourceMappingURL=opacity.js.map

//# sourceMappingURL=operators.js.map

//# sourceMappingURL=outer.js.map

//# sourceMappingURL=overlap.js.map

//# sourceMappingURL=padding-cal.js.map

//# sourceMappingURL=padding.js.map

//# sourceMappingURL=pairs.js.map

//# sourceMappingURL=pairwise.js.map

//# sourceMappingURL=parse-fields.js.map

//# sourceMappingURL=parse-path-array.js.map

//# sourceMappingURL=parse-path-string.js.map

//# sourceMappingURL=parse-path.js.map

//# sourceMappingURL=parse-radius.js.map

//# sourceMappingURL=parse.js.map

//# sourceMappingURL=partition.js.map

//# sourceMappingURL=path-2-absolute.js.map

//# sourceMappingURL=path-2-curve.js.map

//# sourceMappingURL=path-2-segments.js.map

//# sourceMappingURL=path-in.js.map

//# sourceMappingURL=path-intersection.js.map

//# sourceMappingURL=path.js.map

//# sourceMappingURL=pattern.js.map

//# sourceMappingURL=pick.js.map

//# sourceMappingURL=pie.js.map

//# sourceMappingURL=pluck.js.map

//# sourceMappingURL=point-in-path.js.map

//# sourceMappingURL=point-in-polygon.js.map

//# sourceMappingURL=point.js.map

//# sourceMappingURL=polar.js.map

//# sourceMappingURL=polygon.js.map

//# sourceMappingURL=polyline.js.map

//# sourceMappingURL=position-update.js.map

//# sourceMappingURL=position.js.map

//# sourceMappingURL=pow.js.map

//# sourceMappingURL=pretty-number.js.map

//# sourceMappingURL=pretty.js.map

//# sourceMappingURL=publish.js.map

//# sourceMappingURL=publishBehavior.js.map

//# sourceMappingURL=publishLast.js.map

//# sourceMappingURL=publishReplay.js.map

//# sourceMappingURL=pull-at.js.map

//# sourceMappingURL=pull.js.map

//# sourceMappingURL=pyramid.js.map

//# sourceMappingURL=quad-2-cubic.js.map

//# sourceMappingURL=quadratic.js.map

//# sourceMappingURL=quantile.js.map

//# sourceMappingURL=quantize.js.map

//# sourceMappingURL=queue.js.map

//# sourceMappingURL=r-prettry.js.map

//# sourceMappingURL=race.js.map

//# sourceMappingURL=range-active.js.map

//# sourceMappingURL=range-filter.js.map

//# sourceMappingURL=range-highlight.js.map

//# sourceMappingURL=range-selected.js.map

//# sourceMappingURL=range-state.js.map

//# sourceMappingURL=range.js.map

//# sourceMappingURL=rect-path.js.map

//# sourceMappingURL=rect-radius.js.map

//# sourceMappingURL=rect.js.map

//# sourceMappingURL=reduce.js.map

//# sourceMappingURL=region-filter.js.map

//# sourceMappingURL=region.js.map

//# sourceMappingURL=register.js.map

//# sourceMappingURL=remove.js.map

//# sourceMappingURL=repeat.js.map

//# sourceMappingURL=repeatWhen.js.map

//# sourceMappingURL=request-animation-frame.js.map

//# sourceMappingURL=retry.js.map

//# sourceMappingURL=retryWhen.js.map

//# sourceMappingURL=sample.js.map

//# sourceMappingURL=sampleTime.js.map

//# sourceMappingURL=scale-in.js.map

//# sourceMappingURL=scale-pool.js.map

//# sourceMappingURL=scale-transform.js.map

//# sourceMappingURL=scale-translate.js.map

//# sourceMappingURL=scale-zoom.js.map

//# sourceMappingURL=scale.js.map

//# sourceMappingURL=scan.js.map

//# sourceMappingURL=schema.js.map

//# sourceMappingURL=scrollbar.js.map

//# sourceMappingURL=sector-path-update.js.map

//# sourceMappingURL=segment-2-cubic.js.map

//# sourceMappingURL=segments.js.map

//# sourceMappingURL=selected.js.map

//# sourceMappingURL=sequenceEqual.js.map

//# sourceMappingURL=set.js.map

//# sourceMappingURL=shadow.js.map

//# sourceMappingURL=shape-size.js.map

//# sourceMappingURL=shape.js.map

//# sourceMappingURL=share.js.map

//# sourceMappingURL=shareReplay.js.map

//# sourceMappingURL=sibling-filter.js.map

//# sourceMappingURL=sibling.js.map

//# sourceMappingURL=single-active.js.map

//# sourceMappingURL=single-highlight.js.map

//# sourceMappingURL=single-selected.js.map

//# sourceMappingURL=single-state.js.map

//# sourceMappingURL=single.js.map

//# sourceMappingURL=size.js.map

//# sourceMappingURL=skip.js.map

//# sourceMappingURL=skipLast.js.map

//# sourceMappingURL=skipUntil.js.map

//# sourceMappingURL=skipWhile.js.map

//# sourceMappingURL=slider.js.map

//# sourceMappingURL=smooth-line.js.map

//# sourceMappingURL=smooth-path.js.map

//# sourceMappingURL=smooth.js.map

//# sourceMappingURL=solid.js.map

//# sourceMappingURL=some.js.map

//# sourceMappingURL=sort-by.js.map

//# sourceMappingURL=spider.js.map

//# sourceMappingURL=split-points.js.map

//# sourceMappingURL=square.js.map

//# sourceMappingURL=stack.js.map

//# sourceMappingURL=startWith.js.map

//# sourceMappingURL=starts-with.js.map

//# sourceMappingURL=stat.js.map

//# sourceMappingURL=state-base.js.map

//# sourceMappingURL=state.js.map

//# sourceMappingURL=step.js.map

//# sourceMappingURL=strict-limit.js.map

//# sourceMappingURL=subscribeOn.js.map

//# sourceMappingURL=substitute.js.map

//# sourceMappingURL=svg.js.map

//# sourceMappingURL=switch.js.map

//# sourceMappingURL=switchAll.js.map

//# sourceMappingURL=switchMap.js.map

//# sourceMappingURL=switchMapTo.js.map

//# sourceMappingURL=symbols.js.map

//# sourceMappingURL=symmetric.js.map

//# sourceMappingURL=sync-view-padding.js.map

//# sourceMappingURL=take.js.map

//# sourceMappingURL=takeLast.js.map

//# sourceMappingURL=takeWhile.js.map

//# sourceMappingURL=text.js.map

//# sourceMappingURL=theme.js.map

//# sourceMappingURL=throttle.js.map

//# sourceMappingURL=throttleTime.js.map

//# sourceMappingURL=throw.js.map

//# sourceMappingURL=tick.js.map

//# sourceMappingURL=time-cat.js.map

//# sourceMappingURL=time-pretty.js.map

//# sourceMappingURL=time.js.map

//# sourceMappingURL=timeInterval.js.map

//# sourceMappingURL=timeline.js.map

//# sourceMappingURL=timeout.js.map

//# sourceMappingURL=timeoutWith.js.map

//# sourceMappingURL=timer.js.map

//# sourceMappingURL=timestamp.js.map

//# sourceMappingURL=to-array.js.map

//# sourceMappingURL=to-degree.js.map

//# sourceMappingURL=to-integer.js.map

//# sourceMappingURL=to-radian.js.map

//# sourceMappingURL=to-string.js.map

//# sourceMappingURL=toArray.js.map

//# sourceMappingURL=tooltip.js.map

//# sourceMappingURL=transform.js.map

//# sourceMappingURL=tree.js.map

//# sourceMappingURL=trend.js.map

//# sourceMappingURL=types.js.map

//# sourceMappingURL=union.js.map

//# sourceMappingURL=uniq.js.map

//# sourceMappingURL=unique-id.js.map

//# sourceMappingURL=update-label.js.map

//# sourceMappingURL=upper-case.js.map

//# sourceMappingURL=upper-first.js.map

//# sourceMappingURL=using.js.map

//# sourceMappingURL=util.js.map

//# sourceMappingURL=values-of-key.js.map

//# sourceMappingURL=values.js.map

//# sourceMappingURL=vhv.js.map

//# sourceMappingURL=view.js.map

//# sourceMappingURL=violin.js.map

//# sourceMappingURL=wave-in.js.map

//# sourceMappingURL=webSocket.js.map

//# sourceMappingURL=window.js.map

//# sourceMappingURL=windowCount.js.map

//# sourceMappingURL=windowTime.js.map

//# sourceMappingURL=windowToggle.js.map

//# sourceMappingURL=windowWhen.js.map

//# sourceMappingURL=withLatestFrom.js.map

//# sourceMappingURL=wrap-behavior.js.map

//# sourceMappingURL=zip.js.map

//# sourceMappingURL=zipAll.js.map

//# sourceMappingURL=zoom.js.map

///

//Only scale if it makes sense

//Special case for rad = 0

//TODO Optimize this

//TODO(benlesh): correct type-flow through here.

//TODO: determine whether or not to forward to error handler

//TODO: evaluate use of glm_invsqrt here?

//Translate point to the origin

//check for negative zero, return zero if negative zero

//compute day of the year from weeks and weekdays

//const { whyDidYouUpdate } = require('why-did-you-update')

//dom

//if (process.env.NODE_ENV !== 'production') {

//if the day of the year is set, figure out what it is

//invert the arguments, but complain about it

//normalise to object in an array

//operators

//or tokens

//perform rotation

//perform rotation and translate to correct position

//remove from array and exit each early

//short-circuit everything else

//the next array item is better than a shallower substring of this one

//translate to correct position

//using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978

//warn user if arguments are passed but the locale could not be set

//whyDidYouUpdate(React)

//}

//得到版本号4.2.2

//生成dimValuesMap
