text: /*!
   * name: @jswork/next-priority-queue
   * description: Priority queue for next.
   * homepage: https://github.com/afeiship/next-priority-queue
   * version: 1.0.0
   * date: 2020-11-22 19:53:08
   * license: MIT
   */
  !function(){var r=(this||window||Function("return this")()).nx||require("@jswork/next"),e=r.Queue||require("@jswork/next-queue"),u=r.declare({methods:{init:function(e,t){this.element=e,this.priority=t}}}),e=r.declare("nx.PriorityQueue",{extends:e,statics:{Element:u},methods:{enqueue:function(e,t){var i=new u(e,t),n=!1;r.forEach(this.data,function(e,t){if(i.priority<t.priority)return this.data.splice(e,0,i),n=!0,r.BREAKER},this),n||this.data.push(i)}}});"undefined"!=typeof module&&module.exports&&(module.exports=e)}();